mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
refactor(editor): Extract API Requests into @n8n/rest-api-client package (no-changelog) (#15930)
This commit is contained in:
1
packages/@n8n/constants/src/browser.ts
Normal file
1
packages/@n8n/constants/src/browser.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export const BROWSER_ID_STORAGE_KEY = 'n8n-browserId';
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
export * from './browser';
|
||||||
|
|
||||||
export const LICENSE_FEATURES = {
|
export const LICENSE_FEATURES = {
|
||||||
SHARING: 'feat:sharing',
|
SHARING: 'feat:sharing',
|
||||||
LDAP: 'feat:ldap',
|
LDAP: 'feat:ldap',
|
||||||
|
|||||||
@@ -6,6 +6,11 @@
|
|||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"exports": {
|
"exports": {
|
||||||
|
"./dist/*": {
|
||||||
|
"types": "./dist/*.d.ts",
|
||||||
|
"import": "./dist/*.js",
|
||||||
|
"require": "./dist/*.cjs"
|
||||||
|
},
|
||||||
"./*": {
|
"./*": {
|
||||||
"types": "./dist/*.d.ts",
|
"types": "./dist/*.d.ts",
|
||||||
"import": "./dist/*.js",
|
"import": "./dist/*.js",
|
||||||
|
|||||||
5
packages/@n8n/vitest-config/frontend.d.ts
vendored
5
packages/@n8n/vitest-config/frontend.d.ts
vendored
@@ -1,3 +1,6 @@
|
|||||||
import type { UserConfig } from 'vitest/node';
|
import type { InlineConfig } from 'vitest/node';
|
||||||
|
import type { UserConfig } from 'vite';
|
||||||
|
|
||||||
|
export const createVitestConfig: (options?: InlineConfig) => UserConfig;
|
||||||
|
|
||||||
export const vitestConfig: UserConfig;
|
export const vitestConfig: UserConfig;
|
||||||
|
|||||||
@@ -2,34 +2,41 @@ import { defineConfig as defineVitestConfig } from 'vitest/config';
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Define a Vitest configuration
|
* Define a Vitest configuration
|
||||||
*
|
* @param {import('vitest/node').InlineConfig} options - The options to pass to the Vitest configuration
|
||||||
* @returns {import('vitest/node').UserConfig}
|
* @returns {import('vite').UserConfig}
|
||||||
*/
|
*/
|
||||||
export const vitestConfig = defineVitestConfig({
|
export const createVitestConfig = (options = {}) => {
|
||||||
test: {
|
const vitestConfig = defineVitestConfig({
|
||||||
silent: true,
|
test: {
|
||||||
globals: true,
|
silent: true,
|
||||||
environment: 'jsdom',
|
globals: true,
|
||||||
setupFiles: ['./src/__tests__/setup.ts'],
|
environment: 'jsdom',
|
||||||
coverage: {
|
setupFiles: ['./src/__tests__/setup.ts'],
|
||||||
enabled: false,
|
coverage: {
|
||||||
all: false,
|
enabled: false,
|
||||||
provider: 'v8',
|
all: false,
|
||||||
reporter: ['text-summary', 'lcov', 'html-spa'],
|
provider: 'v8',
|
||||||
},
|
reporter: ['text-summary', 'lcov', 'html-spa'],
|
||||||
css: {
|
|
||||||
modules: {
|
|
||||||
classNameStrategy: 'non-scoped',
|
|
||||||
},
|
},
|
||||||
|
css: {
|
||||||
|
modules: {
|
||||||
|
classNameStrategy: 'non-scoped',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
...options,
|
||||||
},
|
},
|
||||||
},
|
});
|
||||||
});
|
|
||||||
|
|
||||||
if (process.env.COVERAGE_ENABLED === 'true') {
|
if (process.env.COVERAGE_ENABLED === 'true') {
|
||||||
const { coverage } = vitestConfig.test;
|
const { coverage } = vitestConfig.test;
|
||||||
coverage.enabled = true;
|
coverage.enabled = true;
|
||||||
if (process.env.CI === 'true') {
|
if (process.env.CI === 'true') {
|
||||||
coverage.all = true;
|
coverage.all = true;
|
||||||
coverage.reporter = ['cobertura'];
|
coverage.reporter = ['cobertura'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
return vitestConfig;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const vitestConfig = createVitestConfig();
|
||||||
|
|||||||
10
packages/frontend/@n8n/rest-api-client/.eslintrc.cjs
Normal file
10
packages/frontend/@n8n/rest-api-client/.eslintrc.cjs
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
const sharedOptions = require('@n8n/eslint-config/shared');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {import('@types/eslint').ESLint.ConfigData}
|
||||||
|
*/
|
||||||
|
module.exports = {
|
||||||
|
extends: ['@n8n/eslint-config/frontend'],
|
||||||
|
|
||||||
|
...sharedOptions(__dirname, 'frontend'),
|
||||||
|
};
|
||||||
24
packages/frontend/@n8n/rest-api-client/.gitignore
vendored
Normal file
24
packages/frontend/@n8n/rest-api-client/.gitignore
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
dist-ssr
|
||||||
|
*.local
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/extensions.json
|
||||||
|
.idea
|
||||||
|
.DS_Store
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
||||||
22
packages/frontend/@n8n/rest-api-client/README.md
Normal file
22
packages/frontend/@n8n/rest-api-client/README.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# @n8n/rest-api-client
|
||||||
|
|
||||||
|
This package contains the REST API calls for n8n.
|
||||||
|
|
||||||
|
## Table of Contents
|
||||||
|
|
||||||
|
- [Features](#features)
|
||||||
|
- [Contributing](#contributing)
|
||||||
|
- [License](#license)
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Provides a REST API for n8n
|
||||||
|
- Supports authentication and authorization
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
For more details, please read our [CONTRIBUTING.md](CONTRIBUTING.md).
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
For more details, please read our [LICENSE.md](LICENSE.md).
|
||||||
4
packages/frontend/@n8n/rest-api-client/biome.jsonc
Normal file
4
packages/frontend/@n8n/rest-api-client/biome.jsonc
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"$schema": "../../../../node_modules/@biomejs/biome/configuration_schema.json",
|
||||||
|
"extends": ["../../../../biome.jsonc"]
|
||||||
|
}
|
||||||
58
packages/frontend/@n8n/rest-api-client/package.json
Normal file
58
packages/frontend/@n8n/rest-api-client/package.json
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
{
|
||||||
|
"name": "@n8n/rest-api-client",
|
||||||
|
"type": "module",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
|
"main": "./dist/index.cjs",
|
||||||
|
"module": "./dist/index.js",
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"import": "./dist/index.js",
|
||||||
|
"require": "./dist/index.cjs"
|
||||||
|
},
|
||||||
|
"./*": {
|
||||||
|
"types": "./dist/*.d.ts",
|
||||||
|
"import": "./dist/*.js",
|
||||||
|
"require": "./dist/*.cjs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"dev": "vite",
|
||||||
|
"build": "pnpm run typecheck && tsup",
|
||||||
|
"preview": "vite preview",
|
||||||
|
"typecheck": "vue-tsc --noEmit",
|
||||||
|
"test": "vitest run",
|
||||||
|
"test:dev": "vitest --silent=false",
|
||||||
|
"lint": "eslint src --ext .js,.ts,.vue --quiet",
|
||||||
|
"lintfix": "eslint src --ext .js,.ts,.vue --fix",
|
||||||
|
"format": "biome format --write . && prettier --write . --ignore-path ../../../../.prettierignore",
|
||||||
|
"format:check": "biome ci . && prettier --check . --ignore-path ../../../../.prettierignore"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@n8n/api-types": "workspace:*",
|
||||||
|
"@n8n/constants": "workspace:*",
|
||||||
|
"@n8n/permissions": "workspace:*",
|
||||||
|
"@n8n/utils": "workspace:*",
|
||||||
|
"js-base64": "catalog:",
|
||||||
|
"n8n-workflow": "workspace:*",
|
||||||
|
"axios": "catalog:",
|
||||||
|
"flatted": "catalog:"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@n8n/eslint-config": "workspace:*",
|
||||||
|
"@n8n/i18n": "workspace:*",
|
||||||
|
"@n8n/typescript-config": "workspace:*",
|
||||||
|
"@n8n/vitest-config": "workspace:*",
|
||||||
|
"@testing-library/jest-dom": "catalog:frontend",
|
||||||
|
"@testing-library/user-event": "catalog:frontend",
|
||||||
|
"tsup": "catalog:",
|
||||||
|
"typescript": "catalog:frontend",
|
||||||
|
"vite": "catalog:frontend",
|
||||||
|
"vitest": "catalog:frontend"
|
||||||
|
},
|
||||||
|
"license": "See LICENSE.md file in the root of the repository"
|
||||||
|
}
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
import type { IRestApiContext } from '@/Interface';
|
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
|
||||||
import type {
|
import type {
|
||||||
CreateApiKeyRequestDto,
|
CreateApiKeyRequestDto,
|
||||||
UpdateApiKeyRequestDto,
|
UpdateApiKeyRequestDto,
|
||||||
@@ -8,6 +6,9 @@ import type {
|
|||||||
} from '@n8n/api-types';
|
} from '@n8n/api-types';
|
||||||
import type { ApiKeyScope } from '@n8n/permissions';
|
import type { ApiKeyScope } from '@n8n/permissions';
|
||||||
|
|
||||||
|
import type { IRestApiContext } from '../types';
|
||||||
|
import { makeRestApiRequest } from '../utils';
|
||||||
|
|
||||||
export async function getApiKeys(context: IRestApiContext): Promise<ApiKey[]> {
|
export async function getApiKeys(context: IRestApiContext): Promise<ApiKey[]> {
|
||||||
return await makeRestApiRequest(context, 'GET', '/api-keys');
|
return await makeRestApiRequest(context, 'GET', '/api-keys');
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import type { IRestApiContext } from '@/Interface';
|
|
||||||
import type { PublicInstalledPackage } from 'n8n-workflow';
|
import type { PublicInstalledPackage } from 'n8n-workflow';
|
||||||
import { get, post, makeRestApiRequest } from '@/utils/apiUtils';
|
|
||||||
|
import type { IRestApiContext } from '../types';
|
||||||
|
import { get, post, makeRestApiRequest } from '../utils';
|
||||||
|
|
||||||
export async function getInstalledCommunityNodes(
|
export async function getInstalledCommunityNodes(
|
||||||
context: IRestApiContext,
|
context: IRestApiContext,
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { IRestApiContext } from '@/Interface';
|
import type { IRestApiContext } from '../types';
|
||||||
import { get } from '@/utils/apiUtils';
|
import { get } from '../utils';
|
||||||
|
|
||||||
export async function getBecomeCreatorCta(context: IRestApiContext): Promise<boolean> {
|
export async function getBecomeCreatorCta(context: IRestApiContext): Promise<boolean> {
|
||||||
const response = await get(context.baseUrl, '/cta/become-creator');
|
const response = await get(context.baseUrl, '/cta/become-creator');
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
import type { IRestApiContext } from '@/Interface';
|
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
|
||||||
import type { IDataObject, MessageEventBusDestinationOptions } from 'n8n-workflow';
|
import type { IDataObject, MessageEventBusDestinationOptions } from 'n8n-workflow';
|
||||||
|
|
||||||
|
import type { IRestApiContext } from '../types';
|
||||||
|
import { makeRestApiRequest } from '../utils';
|
||||||
|
|
||||||
export type ApiMessageEventBusDestinationOptions = MessageEventBusDestinationOptions & {
|
export type ApiMessageEventBusDestinationOptions = MessageEventBusDestinationOptions & {
|
||||||
id: string;
|
id: string;
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { IRestApiContext } from '@/Interface';
|
import type { IRestApiContext } from '../types';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import { makeRestApiRequest } from '../utils';
|
||||||
|
|
||||||
export async function sessionStarted(context: IRestApiContext): Promise<void> {
|
export async function sessionStarted(context: IRestApiContext): Promise<void> {
|
||||||
return await makeRestApiRequest(context, 'GET', '/events/session-started');
|
return await makeRestApiRequest(context, 'GET', '/events/session-started');
|
||||||
12
packages/frontend/@n8n/rest-api-client/src/api/index.ts
Normal file
12
packages/frontend/@n8n/rest-api-client/src/api/index.ts
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
export * from './api-keys';
|
||||||
|
export * from './communityNodes';
|
||||||
|
export * from './ctas';
|
||||||
|
export * from './eventbus.ee';
|
||||||
|
export * from './events';
|
||||||
|
export * from './mfa';
|
||||||
|
export * from './nodeTypes';
|
||||||
|
export * from './npsSurvey';
|
||||||
|
export * from './orchestration';
|
||||||
|
export * from './roles';
|
||||||
|
export * from './ui';
|
||||||
|
export * from './webhooks';
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { IRestApiContext } from '@/Interface';
|
import type { IRestApiContext } from '../types';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import { makeRestApiRequest } from '../utils';
|
||||||
|
|
||||||
export async function canEnableMFA(context: IRestApiContext) {
|
export async function canEnableMFA(context: IRestApiContext) {
|
||||||
return await makeRestApiRequest(context, 'POST', '/mfa/can-enable');
|
return await makeRestApiRequest(context, 'POST', '/mfa/can-enable');
|
||||||
@@ -5,19 +5,20 @@ import type {
|
|||||||
ResourceLocatorRequestDto,
|
ResourceLocatorRequestDto,
|
||||||
ResourceMapperFieldsRequestDto,
|
ResourceMapperFieldsRequestDto,
|
||||||
} from '@n8n/api-types';
|
} from '@n8n/api-types';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
|
||||||
import type { IRestApiContext } from '@/Interface';
|
|
||||||
import type { INodeTranslationHeaders } from '@n8n/i18n';
|
import type { INodeTranslationHeaders } from '@n8n/i18n';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import {
|
import type {
|
||||||
type INodeListSearchResult,
|
INodeListSearchResult,
|
||||||
type INodePropertyOptions,
|
INodePropertyOptions,
|
||||||
type INodeTypeDescription,
|
INodeTypeDescription,
|
||||||
type INodeTypeNameVersion,
|
INodeTypeNameVersion,
|
||||||
type NodeParameterValueType,
|
NodeParameterValueType,
|
||||||
type ResourceMapperFields,
|
ResourceMapperFields,
|
||||||
sleep,
|
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
import { sleep } from 'n8n-workflow';
|
||||||
|
|
||||||
|
import type { IRestApiContext } from '../types';
|
||||||
|
import { makeRestApiRequest } from '../utils';
|
||||||
|
|
||||||
async function fetchNodeTypesJsonWithRetry(url: string, retries = 5, delay = 500) {
|
async function fetchNodeTypesJsonWithRetry(url: string, retries = 5, delay = 500) {
|
||||||
for (let attempt = 0; attempt < retries; attempt++) {
|
for (let attempt = 0; attempt < retries; attempt++) {
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
import type { IRestApiContext } from '@/Interface';
|
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
|
||||||
import type { NpsSurveyState } from 'n8n-workflow';
|
import type { NpsSurveyState } from 'n8n-workflow';
|
||||||
|
|
||||||
|
import type { IRestApiContext } from '../types';
|
||||||
|
import { makeRestApiRequest } from '../utils';
|
||||||
|
|
||||||
export async function updateNpsSurveyState(context: IRestApiContext, state: NpsSurveyState) {
|
export async function updateNpsSurveyState(context: IRestApiContext, state: NpsSurveyState) {
|
||||||
await makeRestApiRequest(context, 'PATCH', '/user-settings/nps-survey', state);
|
await makeRestApiRequest(context, 'PATCH', '/user-settings/nps-survey', state);
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { IRestApiContext } from '@/Interface';
|
import type { IRestApiContext } from '../types';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import { makeRestApiRequest } from '../utils';
|
||||||
|
|
||||||
const GET_STATUS_ENDPOINT = '/orchestration/worker/status';
|
const GET_STATUS_ENDPOINT = '/orchestration/worker/status';
|
||||||
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import type { AllRolesMap } from '@n8n/permissions';
|
import type { AllRolesMap } from '@n8n/permissions';
|
||||||
import type { IRestApiContext } from '@/Interface';
|
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import type { IRestApiContext } from '../types';
|
||||||
|
import { makeRestApiRequest } from '../utils';
|
||||||
|
|
||||||
export const getRoles = async (context: IRestApiContext): Promise<AllRolesMap> => {
|
export const getRoles = async (context: IRestApiContext): Promise<AllRolesMap> => {
|
||||||
return await makeRestApiRequest(context, 'GET', '/roles');
|
return await makeRestApiRequest(context, 'GET', '/roles');
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
import type { IRestApiContext } from '@/Interface';
|
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
|
||||||
import type { BannerName } from '@n8n/api-types';
|
import type { BannerName } from '@n8n/api-types';
|
||||||
|
|
||||||
|
import type { IRestApiContext } from '../types';
|
||||||
|
import { makeRestApiRequest } from '../utils';
|
||||||
|
|
||||||
export async function dismissBannerPermanently(
|
export async function dismissBannerPermanently(
|
||||||
context: IRestApiContext,
|
context: IRestApiContext,
|
||||||
data: { bannerName: BannerName; dismissedBanners: string[] },
|
data: { bannerName: BannerName; dismissedBanners: string[] },
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
|
||||||
import type { IRestApiContext } from '@/Interface';
|
|
||||||
import type { IHttpRequestMethods } from 'n8n-workflow';
|
import type { IHttpRequestMethods } from 'n8n-workflow';
|
||||||
|
|
||||||
|
import type { IRestApiContext } from '../types';
|
||||||
|
import { makeRestApiRequest } from '../utils';
|
||||||
|
|
||||||
type WebhookData = {
|
type WebhookData = {
|
||||||
workflowId: string;
|
workflowId: string;
|
||||||
webhookPath: string;
|
webhookPath: string;
|
||||||
3
packages/frontend/@n8n/rest-api-client/src/index.ts
Normal file
3
packages/frontend/@n8n/rest-api-client/src/index.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export * from './api';
|
||||||
|
export * from './types';
|
||||||
|
export * from './utils';
|
||||||
1
packages/frontend/@n8n/rest-api-client/src/shims.d.ts
vendored
Normal file
1
packages/frontend/@n8n/rest-api-client/src/shims.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/// <reference types="vite/client" />
|
||||||
4
packages/frontend/@n8n/rest-api-client/src/types.ts
Normal file
4
packages/frontend/@n8n/rest-api-client/src/types.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export interface IRestApiContext {
|
||||||
|
baseUrl: string;
|
||||||
|
pushRef: string;
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { ResponseError, STREAM_SEPERATOR, streamRequest } from './apiUtils';
|
import { ResponseError, STREAM_SEPERATOR, streamRequest } from './utils';
|
||||||
|
|
||||||
describe('streamRequest', () => {
|
describe('streamRequest', () => {
|
||||||
it('should stream data from the API endpoint', async () => {
|
it('should stream data from the API endpoint', async () => {
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
|
import { BROWSER_ID_STORAGE_KEY } from '@n8n/constants';
|
||||||
|
import { assert } from '@n8n/utils/assert';
|
||||||
import type { AxiosRequestConfig, Method, RawAxiosRequestHeaders } from 'axios';
|
import type { AxiosRequestConfig, Method, RawAxiosRequestHeaders } from 'axios';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { ApplicationError, jsonParse, type GenericValue, type IDataObject } from 'n8n-workflow';
|
import { ApplicationError, jsonParse } from 'n8n-workflow';
|
||||||
import { parse } from 'flatted';
|
import type { GenericValue, IDataObject } from 'n8n-workflow';
|
||||||
import { assert } from '@n8n/utils/assert';
|
|
||||||
|
|
||||||
import { BROWSER_ID_STORAGE_KEY } from '@/constants';
|
import type { IRestApiContext } from './types';
|
||||||
import type { IExecutionFlattedResponse, IExecutionResponse, IRestApiContext } from '@/Interface';
|
|
||||||
|
|
||||||
const getBrowserId = () => {
|
const getBrowserId = () => {
|
||||||
let browserId = localStorage.getItem(BROWSER_ID_STORAGE_KEY);
|
let browserId = localStorage.getItem(BROWSER_ID_STORAGE_KEY);
|
||||||
@@ -170,7 +170,7 @@ export async function makeRestApiRequest<T>(
|
|||||||
data,
|
data,
|
||||||
});
|
});
|
||||||
|
|
||||||
// @ts-ignore all cli rest api endpoints return data wrapped in `data` key
|
// All cli rest api endpoints return data wrapped in `data` key
|
||||||
return response.data as T;
|
return response.data as T;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -201,28 +201,6 @@ export async function patch(
|
|||||||
return await request({ method: 'PATCH', baseURL, endpoint, headers, data: params });
|
return await request({ method: 'PATCH', baseURL, endpoint, headers, data: params });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Unflattens the Execution data.
|
|
||||||
*
|
|
||||||
* @param {IExecutionFlattedResponse} fullExecutionData The data to unflatten
|
|
||||||
*/
|
|
||||||
export function unflattenExecutionData(fullExecutionData: IExecutionFlattedResponse) {
|
|
||||||
// Unflatten the data
|
|
||||||
const returnData: IExecutionResponse = {
|
|
||||||
...fullExecutionData,
|
|
||||||
workflowData: fullExecutionData.workflowData,
|
|
||||||
data: parse(fullExecutionData.data),
|
|
||||||
};
|
|
||||||
|
|
||||||
returnData.finished = returnData.finished ? returnData.finished : false;
|
|
||||||
|
|
||||||
if (fullExecutionData.id) {
|
|
||||||
returnData.id = fullExecutionData.id;
|
|
||||||
}
|
|
||||||
|
|
||||||
return returnData;
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function streamRequest<T extends object>(
|
export async function streamRequest<T extends object>(
|
||||||
context: IRestApiContext,
|
context: IRestApiContext,
|
||||||
apiEndpoint: string,
|
apiEndpoint: string,
|
||||||
@@ -306,6 +284,6 @@ export async function streamRequest<T extends object>(
|
|||||||
}
|
}
|
||||||
} catch (e: unknown) {
|
} catch (e: unknown) {
|
||||||
assert(e instanceof Error);
|
assert(e instanceof Error);
|
||||||
onError?.(e);
|
onError?.(e as Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
14
packages/frontend/@n8n/rest-api-client/tsconfig.json
Normal file
14
packages/frontend/@n8n/rest-api-client/tsconfig.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"extends": "@n8n/typescript-config/tsconfig.frontend.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": ".",
|
||||||
|
"outDir": "dist",
|
||||||
|
"useUnknownInCatchVariables": false,
|
||||||
|
"types": ["vite/client", "vitest/globals"],
|
||||||
|
"isolatedModules": true,
|
||||||
|
"paths": {
|
||||||
|
"@n8n/utils/*": ["../../../@n8n/utils/src/*"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"include": ["src/**/*.ts", "vite.config.ts", "tsup.config.ts"]
|
||||||
|
}
|
||||||
11
packages/frontend/@n8n/rest-api-client/tsup.config.ts
Normal file
11
packages/frontend/@n8n/rest-api-client/tsup.config.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
entry: ['src/**/*.ts', '!src/**/*.test.ts', '!src/**/*.d.ts', '!src/__tests__/**/*'],
|
||||||
|
format: ['cjs', 'esm'],
|
||||||
|
clean: true,
|
||||||
|
dts: true,
|
||||||
|
cjsInterop: true,
|
||||||
|
splitting: true,
|
||||||
|
sourcemap: true,
|
||||||
|
});
|
||||||
4
packages/frontend/@n8n/rest-api-client/vite.config.ts
Normal file
4
packages/frontend/@n8n/rest-api-client/vite.config.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
import { defineConfig, mergeConfig } from 'vite';
|
||||||
|
import { createVitestConfig } from '@n8n/vitest-config/frontend';
|
||||||
|
|
||||||
|
export default mergeConfig(defineConfig({}), createVitestConfig({ setupFiles: [] }));
|
||||||
@@ -31,11 +31,13 @@
|
|||||||
"@codemirror/view": "^6.26.3",
|
"@codemirror/view": "^6.26.3",
|
||||||
"@dagrejs/dagre": "^1.1.4",
|
"@dagrejs/dagre": "^1.1.4",
|
||||||
"@lezer/common": "1.1.0",
|
"@lezer/common": "1.1.0",
|
||||||
|
"@n8n/rest-api-client": "workspace:*",
|
||||||
"@n8n/api-types": "workspace:*",
|
"@n8n/api-types": "workspace:*",
|
||||||
"@n8n/chat": "workspace:*",
|
"@n8n/chat": "workspace:*",
|
||||||
"@n8n/codemirror-lang": "workspace:*",
|
"@n8n/codemirror-lang": "workspace:*",
|
||||||
"@n8n/codemirror-lang-sql": "^1.0.2",
|
"@n8n/codemirror-lang-sql": "^1.0.2",
|
||||||
"@n8n/composables": "workspace:*",
|
"@n8n/composables": "workspace:*",
|
||||||
|
"@n8n/constants": "workspace:*",
|
||||||
"@n8n/design-system": "workspace:*",
|
"@n8n/design-system": "workspace:*",
|
||||||
"@n8n/i18n": "workspace:*",
|
"@n8n/i18n": "workspace:*",
|
||||||
"@n8n/permissions": "workspace:*",
|
"@n8n/permissions": "workspace:*",
|
||||||
|
|||||||
@@ -1177,11 +1177,6 @@ export interface CommunityNodesState {
|
|||||||
installedPackages: CommunityPackageMap;
|
installedPackages: CommunityPackageMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IRestApiContext {
|
|
||||||
baseUrl: string;
|
|
||||||
pushRef: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IZoomConfig {
|
export interface IZoomConfig {
|
||||||
scale: number;
|
scale: number;
|
||||||
offset: XYPosition;
|
offset: XYPosition;
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { useAIAssistantHelpers } from '@/composables/useAIAssistantHelpers';
|
import { useAIAssistantHelpers } from '@/composables/useAIAssistantHelpers';
|
||||||
import { AI_ASSISTANT_MAX_CONTENT_LENGTH } from '@/constants';
|
import { AI_ASSISTANT_MAX_CONTENT_LENGTH } from '@/constants';
|
||||||
import type { ICredentialsResponse, IRestApiContext } from '@/Interface';
|
import type { ICredentialsResponse } from '@/Interface';
|
||||||
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
import type { AskAiRequest, ChatRequest, ReplaceCodeRequest } from '@/types/assistant.types';
|
import type { AskAiRequest, ChatRequest, ReplaceCodeRequest } from '@/types/assistant.types';
|
||||||
import { makeRestApiRequest, streamRequest } from '@/utils/apiUtils';
|
import { makeRestApiRequest, streamRequest } from '@n8n/rest-api-client';
|
||||||
import { getObjectSizeInKB } from '@/utils/objectUtils';
|
import { getObjectSizeInKB } from '@/utils/objectUtils';
|
||||||
import type { IDataObject } from 'n8n-workflow';
|
import type { IDataObject } from 'n8n-workflow';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import type { Cloud, IRestApiContext, InstanceUsage } from '@/Interface';
|
import type { Cloud, InstanceUsage } from '@/Interface';
|
||||||
import { get, post } from '@/utils/apiUtils';
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
|
import { get, post } from '@n8n/rest-api-client';
|
||||||
|
|
||||||
export async function getCurrentPlan(context: IRestApiContext): Promise<Cloud.PlanData> {
|
export async function getCurrentPlan(context: IRestApiContext): Promise<Cloud.PlanData> {
|
||||||
return await get(context.baseUrl, '/admin/cloud-plan');
|
return await get(context.baseUrl, '/admin/cloud-plan');
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import type { ICredentialsResponse, IRestApiContext, IShareCredentialsPayload } from '@/Interface';
|
import type { ICredentialsResponse, IShareCredentialsPayload } from '@/Interface';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
import type { IDataObject } from 'n8n-workflow';
|
import type { IDataObject } from 'n8n-workflow';
|
||||||
|
|
||||||
export async function setCredentialSharedWith(
|
export async function setCredentialSharedWith(
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
import type {
|
import type { ICredentialsDecryptedResponse, ICredentialsResponse } from '@/Interface';
|
||||||
ICredentialsDecryptedResponse,
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
ICredentialsResponse,
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
IRestApiContext,
|
|
||||||
} from '@/Interface';
|
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
|
||||||
import type {
|
import type {
|
||||||
ICredentialsDecrypted,
|
ICredentialsDecrypted,
|
||||||
ICredentialType,
|
ICredentialType,
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import type { EnvironmentVariable, IRestApiContext } from '@/Interface';
|
import type { EnvironmentVariable } from '@/Interface';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
import type { IDataObject } from 'n8n-workflow';
|
import type { IDataObject } from 'n8n-workflow';
|
||||||
|
|
||||||
export async function getVariables(context: IRestApiContext): Promise<EnvironmentVariable[]> {
|
export async function getVariables(context: IRestApiContext): Promise<EnvironmentVariable[]> {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { IRestApiContext } from '@/Interface';
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
import { makeRestApiRequest, request } from '@/utils/apiUtils';
|
import { makeRestApiRequest, request } from '@n8n/rest-api-client';
|
||||||
|
|
||||||
export interface TestRunRecord {
|
export interface TestRunRecord {
|
||||||
id: string;
|
id: string;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import type { IRestApiContext, ExternalSecretsProvider } from '@/Interface';
|
import type { ExternalSecretsProvider } from '@/Interface';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
|
|
||||||
export const getExternalSecrets = async (
|
export const getExternalSecrets = async (
|
||||||
context: IRestApiContext,
|
context: IRestApiContext,
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
import type {
|
import type { CurrentUserResponse, IInviteResponse, InvitableRoleName } from '@/Interface';
|
||||||
CurrentUserResponse,
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
IInviteResponse,
|
|
||||||
IRestApiContext,
|
|
||||||
InvitableRoleName,
|
|
||||||
} from '@/Interface';
|
|
||||||
import type { IDataObject } from 'n8n-workflow';
|
import type { IDataObject } from 'n8n-workflow';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
|
|
||||||
type AcceptInvitationParams = {
|
type AcceptInvitationParams = {
|
||||||
inviterId: string;
|
inviterId: string;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import type { ILdapConfig, ILdapSyncData, IRestApiContext } from '@/Interface';
|
import type { ILdapConfig, ILdapSyncData } from '@/Interface';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
import type { IDataObject } from 'n8n-workflow';
|
import type { IDataObject } from 'n8n-workflow';
|
||||||
|
|
||||||
export async function getLdapConfig(context: IRestApiContext): Promise<ILdapConfig> {
|
export async function getLdapConfig(context: IRestApiContext): Promise<ILdapConfig> {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { IRestApiContext } from '@/Interface';
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
import type { Project, ProjectListItem, ProjectsCount } from '@/types/projects.types';
|
import type { Project, ProjectListItem, ProjectsCount } from '@/types/projects.types';
|
||||||
import type { CreateProjectDto, UpdateProjectDto } from '@n8n/api-types';
|
import type { CreateProjectDto, UpdateProjectDto } from '@n8n/api-types';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { getSchemaPreview } from './schemaPreview';
|
import { getSchemaPreview } from './schemaPreview';
|
||||||
import * as apiUtils from '@/utils/apiUtils';
|
import * as apiUtils from '@n8n/rest-api-client';
|
||||||
|
|
||||||
vi.mock('@/utils/apiUtils');
|
vi.mock('@n8n/rest-api-client');
|
||||||
|
|
||||||
describe('API: schemaPreview', () => {
|
describe('API: schemaPreview', () => {
|
||||||
describe('getSchemaPreview', () => {
|
describe('getSchemaPreview', () => {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { request } from '@/utils/apiUtils';
|
import { request } from '@n8n/rest-api-client';
|
||||||
import type { JSONSchema7 } from 'json-schema';
|
import type { JSONSchema7 } from 'json-schema';
|
||||||
import type { NodeParameterValueType } from 'n8n-workflow';
|
import type { NodeParameterValueType } from 'n8n-workflow';
|
||||||
import { isEmpty } from '@/utils/typesUtils';
|
import { isEmpty } from '@/utils/typesUtils';
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import type { IRestApiContext, IN8nPrompts, IN8nPromptResponse } from '../Interface';
|
import type { IN8nPrompts, IN8nPromptResponse } from '../Interface';
|
||||||
import { makeRestApiRequest, get, post } from '@/utils/apiUtils';
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
|
import { makeRestApiRequest, get, post } from '@n8n/rest-api-client';
|
||||||
import { N8N_IO_BASE_URL, NPM_COMMUNITY_NODE_SEARCH_API_URL } from '@/constants';
|
import { N8N_IO_BASE_URL, NPM_COMMUNITY_NODE_SEARCH_API_URL } from '@/constants';
|
||||||
import type { FrontendSettings } from '@n8n/api-types';
|
import type { FrontendSettings } from '@n8n/api-types';
|
||||||
|
|
||||||
|
|||||||
@@ -3,14 +3,14 @@ import type {
|
|||||||
PushWorkFolderRequestDto,
|
PushWorkFolderRequestDto,
|
||||||
SourceControlledFile,
|
SourceControlledFile,
|
||||||
} from '@n8n/api-types';
|
} from '@n8n/api-types';
|
||||||
import type { IRestApiContext } from '@/Interface';
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
import type {
|
import type {
|
||||||
SourceControlPreferences,
|
SourceControlPreferences,
|
||||||
SourceControlStatus,
|
SourceControlStatus,
|
||||||
SshKeyTypes,
|
SshKeyTypes,
|
||||||
} from '@/types/sourceControl.types';
|
} from '@/types/sourceControl.types';
|
||||||
|
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
import type { TupleToUnion } from '@/utils/typeHelpers';
|
import type { TupleToUnion } from '@/utils/typeHelpers';
|
||||||
|
|
||||||
const sourceControlApiRoot = '/source-control';
|
const sourceControlApiRoot = '/source-control';
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import type { SamlPreferences, SamlToggleDto } from '@n8n/api-types';
|
import type { SamlPreferences, SamlToggleDto } from '@n8n/api-types';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
import type { IRestApiContext, SamlPreferencesExtractedData } from '@/Interface';
|
import type { SamlPreferencesExtractedData } from '@/Interface';
|
||||||
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
|
|
||||||
export const initSSO = async (context: IRestApiContext, redirectUrl = ''): Promise<string> => {
|
export const initSSO = async (context: IRestApiContext, redirectUrl = ''): Promise<string> => {
|
||||||
return await makeRestApiRequest(context, 'GET', `/sso/saml/initsso?redirect=${redirectUrl}`);
|
return await makeRestApiRequest(context, 'GET', `/sso/saml/initsso?redirect=${redirectUrl}`);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import type { IRestApiContext, ITag } from '@/Interface';
|
import type { ITag } from '@/Interface';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
import type { CreateOrUpdateTagRequestDto, RetrieveTagQueryDto } from '@n8n/api-types';
|
import type { CreateOrUpdateTagRequestDto, RetrieveTagQueryDto } from '@n8n/api-types';
|
||||||
|
|
||||||
type TagsApiEndpoint = '/tags' | '/annotation-tags';
|
type TagsApiEndpoint = '/tags' | '/annotation-tags';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import type {
|
|||||||
IWorkflowTemplate,
|
IWorkflowTemplate,
|
||||||
TemplateSearchFacet,
|
TemplateSearchFacet,
|
||||||
} from '@/Interface';
|
} from '@/Interface';
|
||||||
import { get } from '@/utils/apiUtils';
|
import { get } from '@n8n/rest-api-client';
|
||||||
|
|
||||||
function stringifyArray(arr: string[]) {
|
function stringifyArray(arr: string[]) {
|
||||||
return arr.join(',');
|
return arr.join(',');
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import type { CommunityRegisteredRequestDto } from '@n8n/api-types';
|
import type { CommunityRegisteredRequestDto } from '@n8n/api-types';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
import type { IRestApiContext, UsageState } from '@/Interface';
|
import type { UsageState } from '@/Interface';
|
||||||
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
|
|
||||||
export const getLicense = async (context: IRestApiContext): Promise<UsageState['data']> => {
|
export const getLicense = async (context: IRestApiContext): Promise<UsageState['data']> => {
|
||||||
return await makeRestApiRequest(context, 'GET', '/license');
|
return await makeRestApiRequest(context, 'GET', '/license');
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ import type {
|
|||||||
import type {
|
import type {
|
||||||
CurrentUserResponse,
|
CurrentUserResponse,
|
||||||
IPersonalizationLatestVersion,
|
IPersonalizationLatestVersion,
|
||||||
IRestApiContext,
|
|
||||||
IUserResponse,
|
IUserResponse,
|
||||||
InvitableRoleName,
|
InvitableRoleName,
|
||||||
} from '@/Interface';
|
} from '@/Interface';
|
||||||
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
import type { IDataObject, IUserSettings } from 'n8n-workflow';
|
import type { IDataObject, IUserSettings } from 'n8n-workflow';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
|
|
||||||
export async function loginCurrentUser(
|
export async function loginCurrentUser(
|
||||||
context: IRestApiContext,
|
context: IRestApiContext,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { IVersion } from '@/Interface';
|
import type { IVersion } from '@/Interface';
|
||||||
import { INSTANCE_ID_HEADER } from '@/constants';
|
import { INSTANCE_ID_HEADER } from '@/constants';
|
||||||
import { get } from '@/utils/apiUtils';
|
import { get } from '@n8n/rest-api-client';
|
||||||
|
|
||||||
export async function getNextVersions(
|
export async function getNextVersions(
|
||||||
endpoint: string,
|
endpoint: string,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { IUser } from '@/Interface';
|
import type { IUser } from '@/Interface';
|
||||||
import { post } from '@/utils/apiUtils';
|
import { post } from '@n8n/rest-api-client';
|
||||||
|
|
||||||
const N8N_API_BASE_URL = 'https://api.n8n.io/api';
|
const N8N_API_BASE_URL = 'https://api.n8n.io/api';
|
||||||
const CONTACT_EMAIL_SUBMISSION_ENDPOINT = '/accounts/onboarding';
|
const CONTACT_EMAIL_SUBMISSION_ENDPOINT = '/accounts/onboarding';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { IRestApiContext } from '@/Interface';
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
import { get } from '@/utils/apiUtils';
|
import { get } from '@n8n/rest-api-client';
|
||||||
import type {
|
import type {
|
||||||
WorkflowHistory,
|
WorkflowHistory,
|
||||||
WorkflowVersion,
|
WorkflowVersion,
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import type { TransferWorkflowBodyDto } from '@n8n/api-types';
|
import type { TransferWorkflowBodyDto } from '@n8n/api-types';
|
||||||
import type { IRestApiContext, IShareWorkflowsPayload, IWorkflowsShareResponse } from '@/Interface';
|
import type { IShareWorkflowsPayload, IWorkflowsShareResponse } from '@/Interface';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
import type { IDataObject } from 'n8n-workflow';
|
import type { IDataObject } from 'n8n-workflow';
|
||||||
|
|
||||||
export async function setWorkflowSharedWith(
|
export async function setWorkflowSharedWith(
|
||||||
|
|||||||
@@ -4,19 +4,19 @@ import type {
|
|||||||
FolderTreeResponseItem,
|
FolderTreeResponseItem,
|
||||||
IExecutionResponse,
|
IExecutionResponse,
|
||||||
IExecutionsCurrentSummaryExtended,
|
IExecutionsCurrentSummaryExtended,
|
||||||
IRestApiContext,
|
|
||||||
IUsedCredential,
|
IUsedCredential,
|
||||||
IWorkflowDb,
|
IWorkflowDb,
|
||||||
NewWorkflowResponse,
|
NewWorkflowResponse,
|
||||||
WorkflowListResource,
|
WorkflowListResource,
|
||||||
} from '@/Interface';
|
} from '@/Interface';
|
||||||
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
import type {
|
import type {
|
||||||
ExecutionFilters,
|
ExecutionFilters,
|
||||||
ExecutionOptions,
|
ExecutionOptions,
|
||||||
ExecutionSummary,
|
ExecutionSummary,
|
||||||
IDataObject,
|
IDataObject,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
import { getFullApiResponse, makeRestApiRequest } from '@/utils/apiUtils';
|
import { getFullApiResponse, makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
|
|
||||||
export async function getNewWorkflow(context: IRestApiContext, data?: IDataObject) {
|
export async function getNewWorkflow(context: IRestApiContext, data?: IDataObject) {
|
||||||
const response = await makeRestApiRequest<NewWorkflowResponse>(
|
const response = await makeRestApiRequest<NewWorkflowResponse>(
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { STORES } from '@n8n/stores';
|
|||||||
import { useCloudPlanStore } from '@/stores/cloudPlan.store';
|
import { useCloudPlanStore } from '@/stores/cloudPlan.store';
|
||||||
import { useStorage } from '@/composables/useStorage';
|
import { useStorage } from '@/composables/useStorage';
|
||||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||||
import { getBecomeCreatorCta } from '@/api/ctas';
|
import { getBecomeCreatorCta } from '@n8n/rest-api-client/api/ctas';
|
||||||
|
|
||||||
const LOCAL_STORAGE_KEY = 'N8N_BECOME_TEMPLATE_CREATOR_CTA_DISMISSED_AT';
|
const LOCAL_STORAGE_KEY = 'N8N_BECOME_TEMPLATE_CREATOR_CTA_DISMISSED_AT';
|
||||||
const RESHOW_DISMISSED_AFTER_DAYS = 30;
|
const RESHOW_DISMISSED_AFTER_DAYS = 30;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import { useTagsStore } from '@/stores/tags.store';
|
|||||||
import { useUIStore } from '@/stores/ui.store';
|
import { useUIStore } from '@/stores/ui.store';
|
||||||
import { createTestNode, createTestWorkflow } from '@/__tests__/mocks';
|
import { createTestNode, createTestWorkflow } from '@/__tests__/mocks';
|
||||||
import { WEBHOOK_NODE_TYPE, type AssignmentCollectionValue } from 'n8n-workflow';
|
import { WEBHOOK_NODE_TYPE, type AssignmentCollectionValue } from 'n8n-workflow';
|
||||||
import * as apiWebhooks from '../api/webhooks';
|
import * as apiWebhooks from '@n8n/rest-api-client/api/webhooks';
|
||||||
import { mockedStore } from '@/__tests__/utils';
|
import { mockedStore } from '@/__tests__/utils';
|
||||||
import { nodeTypes } from '@/components/CanvasChat/__test__/data';
|
import { nodeTypes } from '@/components/CanvasChat/__test__/data';
|
||||||
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
|
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ import { useTelemetry } from '@/composables/useTelemetry';
|
|||||||
import { useProjectsStore } from '@/stores/projects.store';
|
import { useProjectsStore } from '@/stores/projects.store';
|
||||||
import { useTagsStore } from '@/stores/tags.store';
|
import { useTagsStore } from '@/stores/tags.store';
|
||||||
import { useWorkflowsEEStore } from '@/stores/workflows.ee.store';
|
import { useWorkflowsEEStore } from '@/stores/workflows.ee.store';
|
||||||
import { findWebhook } from '../api/webhooks';
|
import { findWebhook } from '@n8n/rest-api-client/api/webhooks';
|
||||||
|
|
||||||
export type ResolveParameterOptions = {
|
export type ResolveParameterOptions = {
|
||||||
targetItem?: TargetItem;
|
targetItem?: TargetItem;
|
||||||
|
|||||||
@@ -919,8 +919,6 @@ export const IsInPiPWindowSymbol = 'IsInPipWindow' as unknown as InjectionKey<
|
|||||||
>;
|
>;
|
||||||
|
|
||||||
/** Auth */
|
/** Auth */
|
||||||
export const BROWSER_ID_STORAGE_KEY = 'n8n-browserId';
|
|
||||||
|
|
||||||
export const APP_MODALS_ELEMENT_ID = 'app-modals';
|
export const APP_MODALS_ELEMENT_ID = 'app-modals';
|
||||||
|
|
||||||
export const AI_NODES_PACKAGE_NAME = '@n8n/n8n-nodes-langchain';
|
export const AI_NODES_PACKAGE_NAME = '@n8n/n8n-nodes-langchain';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
import type { IRestApiContext } from '@/Interface';
|
import type { IRestApiContext } from '@n8n/rest-api-client';
|
||||||
import type {
|
import type {
|
||||||
InsightsSummary,
|
InsightsSummary,
|
||||||
InsightsByTime,
|
InsightsByTime,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type * as Sentry from '@sentry/vue';
|
import type * as Sentry from '@sentry/vue';
|
||||||
import { beforeSend } from '@/plugins/sentry';
|
import { beforeSend } from '@/plugins/sentry';
|
||||||
import { AxiosError } from 'axios';
|
import { AxiosError } from 'axios';
|
||||||
import { ResponseError } from '@/utils/apiUtils';
|
import { ResponseError } from '@n8n/rest-api-client';
|
||||||
|
|
||||||
function createErrorEvent(): Sentry.ErrorEvent {
|
function createErrorEvent(): Sentry.ErrorEvent {
|
||||||
return {} as Sentry.ErrorEvent;
|
return {} as Sentry.ErrorEvent;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { Plugin } from 'vue';
|
import type { Plugin } from 'vue';
|
||||||
import { AxiosError } from 'axios';
|
import { AxiosError } from 'axios';
|
||||||
import { ResponseError } from '@/utils/apiUtils';
|
import { ResponseError } from '@n8n/rest-api-client';
|
||||||
import * as Sentry from '@sentry/vue';
|
import * as Sentry from '@sentry/vue';
|
||||||
|
|
||||||
const ignoredErrors = [
|
const ignoredErrors = [
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { STORES } from '@n8n/stores';
|
|||||||
import { defineStore } from 'pinia';
|
import { defineStore } from 'pinia';
|
||||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||||
|
|
||||||
import * as publicApiApi from '@/api/api-keys';
|
import * as publicApiApi from '@n8n/rest-api-client/api/api-keys';
|
||||||
import { computed, ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
import type { ApiKey, CreateApiKeyRequestDto, UpdateApiKeyRequestDto } from '@n8n/api-types';
|
import type { ApiKey, CreateApiKeyRequestDto, UpdateApiKeyRequestDto } from '@n8n/api-types';
|
||||||
import type { ApiKeyScope } from '@n8n/permissions';
|
import type { ApiKeyScope } from '@n8n/permissions';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import * as communityNodesApi from '@/api/communityNodes';
|
import * as communityNodesApi from '@n8n/rest-api-client/api/communityNodes';
|
||||||
import { getAvailableCommunityPackageCount } from '@/api/settings';
|
import { getAvailableCommunityPackageCount } from '@/api/settings';
|
||||||
import { defineStore } from 'pinia';
|
import { defineStore } from 'pinia';
|
||||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import { EnterpriseEditionFeature } from '@/constants';
|
|||||||
import { STORES } from '@n8n/stores';
|
import { STORES } from '@n8n/stores';
|
||||||
import { i18n } from '@n8n/i18n';
|
import { i18n } from '@n8n/i18n';
|
||||||
import type { ProjectSharingData } from '@/types/projects.types';
|
import type { ProjectSharingData } from '@/types/projects.types';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
import { getAppNameFromCredType } from '@/utils/nodeTypesUtils';
|
import { getAppNameFromCredType } from '@/utils/nodeTypesUtils';
|
||||||
import { splitName } from '@/utils/projects.utils';
|
import { splitName } from '@/utils/projects.utils';
|
||||||
import { isEmpty, isPresent } from '@/utils/typesUtils';
|
import { isEmpty, isPresent } from '@/utils/typesUtils';
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { setActivePinia, createPinia } from 'pinia';
|
|||||||
import type { ExecutionSummaryWithScopes } from '@/Interface';
|
import type { ExecutionSummaryWithScopes } from '@/Interface';
|
||||||
import { useExecutionsStore } from '@/stores/executions.store';
|
import { useExecutionsStore } from '@/stores/executions.store';
|
||||||
|
|
||||||
vi.mock('@/utils/apiUtils', () => ({
|
vi.mock('@n8n/rest-api-client', () => ({
|
||||||
makeRestApiRequest: vi.fn(),
|
makeRestApiRequest: vi.fn(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,8 @@ import type {
|
|||||||
IExecutionsStopData,
|
IExecutionsStopData,
|
||||||
} from '@/Interface';
|
} from '@/Interface';
|
||||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||||
import { makeRestApiRequest, unflattenExecutionData } from '@/utils/apiUtils';
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
|
import { unflattenExecutionData } from '@/utils/executionUtils';
|
||||||
import { executionFilterToQueryFilter, getDefaultExecutionFilters } from '@/utils/executionUtils';
|
import { executionFilterToQueryFilter, getDefaultExecutionFilters } from '@/utils/executionUtils';
|
||||||
import { useProjectsStore } from '@/stores/projects.store';
|
import { useProjectsStore } from '@/stores/projects.store';
|
||||||
import { useSettingsStore } from '@/stores/settings.store';
|
import { useSettingsStore } from '@/stores/settings.store';
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
hasDestinationId,
|
hasDestinationId,
|
||||||
saveDestinationToDb,
|
saveDestinationToDb,
|
||||||
sendTestMessageToDestination,
|
sendTestMessageToDestination,
|
||||||
} from '@/api/eventbus.ee';
|
} from '@n8n/rest-api-client/api/eventbus.ee';
|
||||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import type {
|
|||||||
ResourceLocatorRequestDto,
|
ResourceLocatorRequestDto,
|
||||||
ResourceMapperFieldsRequestDto,
|
ResourceMapperFieldsRequestDto,
|
||||||
} from '@n8n/api-types';
|
} from '@n8n/api-types';
|
||||||
import * as nodeTypesApi from '@/api/nodeTypes';
|
import * as nodeTypesApi from '@n8n/rest-api-client/api/nodeTypes';
|
||||||
import { HTTP_REQUEST_NODE_TYPE, CREDENTIAL_ONLY_HTTP_NODE_VERSION } from '@/constants';
|
import { HTTP_REQUEST_NODE_TYPE, CREDENTIAL_ONLY_HTTP_NODE_VERSION } from '@/constants';
|
||||||
import { STORES } from '@n8n/stores';
|
import { STORES } from '@n8n/stores';
|
||||||
import type { NodeTypesByTypeNameAndVersion } from '@/Interface';
|
import type { NodeTypesByTypeNameAndVersion } from '@/Interface';
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ vi.mock('@/stores/ui.store', () => ({
|
|||||||
})),
|
})),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
vi.mock('@/api/npsSurvey', () => ({
|
vi.mock('@n8n/rest-api-client/api/npsSurvey', () => ({
|
||||||
updateNpsSurveyState,
|
updateNpsSurveyState,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||||
import type { IUserSettings, NpsSurveyState } from 'n8n-workflow';
|
import type { IUserSettings, NpsSurveyState } from 'n8n-workflow';
|
||||||
import { useSettingsStore } from './settings.store';
|
import { useSettingsStore } from './settings.store';
|
||||||
import { updateNpsSurveyState } from '@/api/npsSurvey';
|
import { updateNpsSurveyState } from '@n8n/rest-api-client/api/npsSurvey';
|
||||||
import type { IN8nPrompts } from '@/Interface';
|
import type { IN8nPrompts } from '@/Interface';
|
||||||
import { getPromptsData } from '@/api/settings';
|
import { getPromptsData } from '@/api/settings';
|
||||||
import { assert } from '@n8n/utils/assert';
|
import { assert } from '@n8n/utils/assert';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { defineStore } from 'pinia';
|
|||||||
import type { WorkerStatus } from '@n8n/api-types';
|
import type { WorkerStatus } from '@n8n/api-types';
|
||||||
|
|
||||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||||
import { sendGetWorkerStatus } from '../api/orchestration';
|
import { sendGetWorkerStatus } from '@n8n/rest-api-client/api/orchestration';
|
||||||
|
|
||||||
export const WORKER_HISTORY_LENGTH = 100;
|
export const WORKER_HISTORY_LENGTH = 100;
|
||||||
const STALE_SECONDS = 120 * 1000;
|
const STALE_SECONDS = 120 * 1000;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useRolesStore } from '@/stores/roles.store';
|
import { useRolesStore } from '@/stores/roles.store';
|
||||||
import * as rolesApi from '@/api/roles.api';
|
import * as rolesApi from '@n8n/rest-api-client/api/roles';
|
||||||
import { createPinia, setActivePinia } from 'pinia';
|
import { createPinia, setActivePinia } from 'pinia';
|
||||||
|
|
||||||
let rolesStore: ReturnType<typeof useRolesStore>;
|
let rolesStore: ReturnType<typeof useRolesStore>;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { ProjectRole, AllRolesMap } from '@n8n/permissions';
|
import type { ProjectRole, AllRolesMap } from '@n8n/permissions';
|
||||||
import { defineStore } from 'pinia';
|
import { defineStore } from 'pinia';
|
||||||
import { ref, computed } from 'vue';
|
import { ref, computed } from 'vue';
|
||||||
import * as rolesApi from '@/api/roles.api';
|
import * as rolesApi from '@n8n/rest-api-client/api/roles';
|
||||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||||
|
|
||||||
export const useRolesStore = defineStore('roles', () => {
|
export const useRolesStore = defineStore('roles', () => {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ vi.mock('@/api/settings', () => ({
|
|||||||
getSettings,
|
getSettings,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
vi.mock('@/api/events', () => ({
|
vi.mock('@n8n/rest-api-client/api/events', () => ({
|
||||||
sessionStarted,
|
sessionStarted,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { computed, ref } from 'vue';
|
|||||||
import Bowser from 'bowser';
|
import Bowser from 'bowser';
|
||||||
import type { IUserManagementSettings, FrontendSettings } from '@n8n/api-types';
|
import type { IUserManagementSettings, FrontendSettings } from '@n8n/api-types';
|
||||||
|
|
||||||
import * as eventsApi from '@/api/events';
|
import * as eventsApi from '@n8n/rest-api-client/api/events';
|
||||||
import * as ldapApi from '@/api/ldap';
|
import * as ldapApi from '@/api/ldap';
|
||||||
import * as settingsApi from '@/api/settings';
|
import * as settingsApi from '@/api/settings';
|
||||||
import { testHealthEndpoint } from '@/api/templates';
|
import { testHealthEndpoint } from '@/api/templates';
|
||||||
@@ -19,7 +19,7 @@ import { useRootStore } from '@n8n/stores/useRootStore';
|
|||||||
import { useUIStore } from './ui.store';
|
import { useUIStore } from './ui.store';
|
||||||
import { useUsersStore } from './users.store';
|
import { useUsersStore } from './users.store';
|
||||||
import { useVersionsStore } from './versions.store';
|
import { useVersionsStore } from './versions.store';
|
||||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
import { makeRestApiRequest } from '@n8n/rest-api-client';
|
||||||
import { useToast } from '@/composables/useToast';
|
import { useToast } from '@/composables/useToast';
|
||||||
import { useI18n } from '@n8n/i18n';
|
import { useI18n } from '@n8n/i18n';
|
||||||
import { useLocalStorage } from '@vueuse/core';
|
import { useLocalStorage } from '@vueuse/core';
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ import { useRootStore } from '@n8n/stores/useRootStore';
|
|||||||
import { useWorkflowsStore } from '@/stores/workflows.store';
|
import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||||
import { useSettingsStore } from '@/stores/settings.store';
|
import { useSettingsStore } from '@/stores/settings.store';
|
||||||
import { useUsersStore } from '@/stores/users.store';
|
import { useUsersStore } from '@/stores/users.store';
|
||||||
import { dismissBannerPermanently } from '@/api/ui';
|
import { dismissBannerPermanently } from '@n8n/rest-api-client';
|
||||||
import type { BannerName } from '@n8n/api-types';
|
import type { BannerName } from '@n8n/api-types';
|
||||||
import {
|
import {
|
||||||
addThemeToBody,
|
addThemeToBody,
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ import type {
|
|||||||
} from '@n8n/api-types';
|
} from '@n8n/api-types';
|
||||||
import type { UpdateGlobalRolePayload } from '@/api/users';
|
import type { UpdateGlobalRolePayload } from '@/api/users';
|
||||||
import * as usersApi from '@/api/users';
|
import * as usersApi from '@/api/users';
|
||||||
import { BROWSER_ID_STORAGE_KEY, PERSONALIZATION_MODAL_KEY, ROLE } from '@/constants';
|
import { BROWSER_ID_STORAGE_KEY } from '@n8n/constants';
|
||||||
|
import { PERSONALIZATION_MODAL_KEY, ROLE } from '@/constants';
|
||||||
import { STORES } from '@n8n/stores';
|
import { STORES } from '@n8n/stores';
|
||||||
import type {
|
import type {
|
||||||
Cloud,
|
Cloud,
|
||||||
@@ -22,7 +23,7 @@ import { useRootStore } from '@n8n/stores/useRootStore';
|
|||||||
import { usePostHog } from './posthog.store';
|
import { usePostHog } from './posthog.store';
|
||||||
import { useUIStore } from './ui.store';
|
import { useUIStore } from './ui.store';
|
||||||
import { useCloudPlanStore } from './cloudPlan.store';
|
import { useCloudPlanStore } from './cloudPlan.store';
|
||||||
import * as mfaApi from '@/api/mfa';
|
import * as mfaApi from '@n8n/rest-api-client/api/mfa';
|
||||||
import * as cloudApi from '@/api/cloudPlans';
|
import * as cloudApi from '@/api/cloudPlans';
|
||||||
import { useRBACStore } from '@/stores/rbac.store';
|
import { useRBACStore } from '@/stores/rbac.store';
|
||||||
import type { Scope } from '@n8n/permissions';
|
import type { Scope } from '@n8n/permissions';
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import { flushPromises } from '@vue/test-utils';
|
|||||||
import { useNDVStore } from '@/stores/ndv.store';
|
import { useNDVStore } from '@/stores/ndv.store';
|
||||||
import { mock } from 'vitest-mock-extended';
|
import { mock } from 'vitest-mock-extended';
|
||||||
import { mockedStore, type MockedStore } from '@/__tests__/utils';
|
import { mockedStore, type MockedStore } from '@/__tests__/utils';
|
||||||
import * as apiUtils from '@/utils/apiUtils';
|
import * as apiUtils from '@n8n/rest-api-client';
|
||||||
import { useSettingsStore } from '@/stores/settings.store';
|
import { useSettingsStore } from '@/stores/settings.store';
|
||||||
import { useLocalStorage } from '@vueuse/core';
|
import { useLocalStorage } from '@vueuse/core';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|||||||
@@ -75,7 +75,8 @@ import { dataPinningEventBus } from '@/event-bus';
|
|||||||
import { isObject } from '@/utils/objectUtils';
|
import { isObject } from '@/utils/objectUtils';
|
||||||
import { getPairedItemsMapping } from '@/utils/pairedItemUtils';
|
import { getPairedItemsMapping } from '@/utils/pairedItemUtils';
|
||||||
import { isJsonKeyObject, isEmpty, stringSizeInBytes, isPresent } from '@/utils/typesUtils';
|
import { isJsonKeyObject, isEmpty, stringSizeInBytes, isPresent } from '@/utils/typesUtils';
|
||||||
import { makeRestApiRequest, unflattenExecutionData, ResponseError } from '@/utils/apiUtils';
|
import { makeRestApiRequest, ResponseError } from '@n8n/rest-api-client';
|
||||||
|
import { unflattenExecutionData } from '@/utils/executionUtils';
|
||||||
import { useNDVStore } from '@/stores/ndv.store';
|
import { useNDVStore } from '@/stores/ndv.store';
|
||||||
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
|
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
|
||||||
import { getCredentialOnlyNodeTypeName } from '@/utils/credentialOnlyNodes';
|
import { getCredentialOnlyNodeTypeName } from '@/utils/credentialOnlyNodes';
|
||||||
|
|||||||
@@ -8,7 +8,13 @@ import type {
|
|||||||
IRunData,
|
IRunData,
|
||||||
ExecutionError,
|
ExecutionError,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
import type { ExecutionFilterType, ExecutionsQueryFilter, INodeUi } from '@/Interface';
|
import type {
|
||||||
|
ExecutionFilterType,
|
||||||
|
ExecutionsQueryFilter,
|
||||||
|
IExecutionFlattedResponse,
|
||||||
|
IExecutionResponse,
|
||||||
|
INodeUi,
|
||||||
|
} from '@/Interface';
|
||||||
import { isEmpty } from '@/utils/typesUtils';
|
import { isEmpty } from '@/utils/typesUtils';
|
||||||
import { FORM_NODE_TYPE, FORM_TRIGGER_NODE_TYPE, GITHUB_NODE_TYPE } from '../constants';
|
import { FORM_NODE_TYPE, FORM_TRIGGER_NODE_TYPE, GITHUB_NODE_TYPE } from '../constants';
|
||||||
import { useWorkflowsStore } from '@/stores/workflows.store';
|
import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||||
@@ -16,6 +22,7 @@ import { useRootStore } from '@n8n/stores/useRootStore';
|
|||||||
import { i18n } from '@n8n/i18n';
|
import { i18n } from '@n8n/i18n';
|
||||||
import { h } from 'vue';
|
import { h } from 'vue';
|
||||||
import NodeExecutionErrorMessage from '@/components/NodeExecutionErrorMessage.vue';
|
import NodeExecutionErrorMessage from '@/components/NodeExecutionErrorMessage.vue';
|
||||||
|
import { parse } from 'flatted';
|
||||||
|
|
||||||
export function getDefaultExecutionFilters(): ExecutionFilterType {
|
export function getDefaultExecutionFilters(): ExecutionFilterType {
|
||||||
return {
|
return {
|
||||||
@@ -356,3 +363,25 @@ export function getExecutionErrorToastConfiguration({
|
|||||||
message,
|
message,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unflattens the Execution data.
|
||||||
|
*
|
||||||
|
* @param {IExecutionFlattedResponse} fullExecutionData The data to unflatten
|
||||||
|
*/
|
||||||
|
export function unflattenExecutionData(fullExecutionData: IExecutionFlattedResponse) {
|
||||||
|
// Unflatten the data
|
||||||
|
const returnData: IExecutionResponse = {
|
||||||
|
...fullExecutionData,
|
||||||
|
workflowData: fullExecutionData.workflowData,
|
||||||
|
data: parse(fullExecutionData.data),
|
||||||
|
};
|
||||||
|
|
||||||
|
returnData.finished = returnData.finished ? returnData.finished : false;
|
||||||
|
|
||||||
|
if (fullExecutionData.id) {
|
||||||
|
returnData.id = fullExecutionData.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnData;
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { useI18n } from '@n8n/i18n';
|
|||||||
import type { ExecutionFilterType, IWorkflowDb } from '@/Interface';
|
import type { ExecutionFilterType, IWorkflowDb } from '@/Interface';
|
||||||
import { useWorkflowsStore } from '@/stores/workflows.store';
|
import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||||
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
|
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
|
||||||
import { NO_NETWORK_ERROR_CODE } from '@/utils/apiUtils';
|
import { NO_NETWORK_ERROR_CODE } from '@n8n/rest-api-client';
|
||||||
import { useToast } from '@/composables/useToast';
|
import { useToast } from '@/composables/useToast';
|
||||||
import { NEW_WORKFLOW_ID, PLACEHOLDER_EMPTY_WORKFLOW_ID, VIEWS } from '@/constants';
|
import { NEW_WORKFLOW_ID, PLACEHOLDER_EMPTY_WORKFLOW_ID, VIEWS } from '@/constants';
|
||||||
import { useRoute, useRouter } from 'vue-router';
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
"extends": "@n8n/typescript-config/tsconfig.frontend.json",
|
"extends": "@n8n/typescript-config/tsconfig.frontend.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"rootDirs": [".", "../@n8n/composables/src", "../@n8n/chat/src", "../@n8n/design-system/src"],
|
"rootDirs": [
|
||||||
|
".",
|
||||||
|
"../@n8n/rest-api-client/src",
|
||||||
|
"../@n8n/composables/src",
|
||||||
|
"../@n8n/chat/src",
|
||||||
|
"../@n8n/design-system/src"
|
||||||
|
],
|
||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
"types": [
|
"types": [
|
||||||
"vitest/globals",
|
"vitest/globals",
|
||||||
@@ -11,7 +17,9 @@
|
|||||||
],
|
],
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"],
|
"@/*": ["./src/*"],
|
||||||
|
"@n8n/rest-api-client*": ["../@n8n/rest-api-client/src*"],
|
||||||
"@n8n/composables*": ["../@n8n/composables/src*"],
|
"@n8n/composables*": ["../@n8n/composables/src*"],
|
||||||
|
"@n8n/constants*": ["../../@n8n/constants/src*"],
|
||||||
"@n8n/chat*": ["../@n8n/chat/src*"],
|
"@n8n/chat*": ["../@n8n/chat/src*"],
|
||||||
"@n8n/design-system*": ["../@n8n/design-system/src*"],
|
"@n8n/design-system*": ["../@n8n/design-system/src*"],
|
||||||
"@n8n/i18n*": ["../@n8n/i18n/src*"],
|
"@n8n/i18n*": ["../@n8n/i18n/src*"],
|
||||||
|
|||||||
@@ -27,10 +27,18 @@ const alias = [
|
|||||||
find: /^@n8n\/chat(.+)$/,
|
find: /^@n8n\/chat(.+)$/,
|
||||||
replacement: resolve(packagesDir, 'frontend', '@n8n', 'chat', 'src$1'),
|
replacement: resolve(packagesDir, 'frontend', '@n8n', 'chat', 'src$1'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
find: /^@n8n\/api-requests(.+)$/,
|
||||||
|
replacement: resolve(packagesDir, 'frontend', '@n8n', 'api-requests', 'src$1'),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
find: /^@n8n\/composables(.+)$/,
|
find: /^@n8n\/composables(.+)$/,
|
||||||
replacement: resolve(packagesDir, 'frontend', '@n8n', 'composables', 'src$1'),
|
replacement: resolve(packagesDir, 'frontend', '@n8n', 'composables', 'src$1'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
find: /^@n8n\/constants(.+)$/,
|
||||||
|
replacement: resolve(packagesDir, '@n8n', 'constants', 'src$1'),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
find: /^@n8n\/design-system(.+)$/,
|
find: /^@n8n\/design-system(.+)$/,
|
||||||
replacement: resolve(packagesDir, 'frontend', '@n8n', 'design-system', 'src$1'),
|
replacement: resolve(packagesDir, 'frontend', '@n8n', 'design-system', 'src$1'),
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
"esprima-next": "5.8.4",
|
"esprima-next": "5.8.4",
|
||||||
"form-data": "catalog:",
|
"form-data": "catalog:",
|
||||||
"jmespath": "0.16.0",
|
"jmespath": "0.16.0",
|
||||||
"js-base64": "3.7.2",
|
"js-base64": "catalog:",
|
||||||
"jssha": "3.3.1",
|
"jssha": "3.3.1",
|
||||||
"lodash": "catalog:",
|
"lodash": "catalog:",
|
||||||
"luxon": "catalog:",
|
"luxon": "catalog:",
|
||||||
|
|||||||
202
pnpm-lock.yaml
generated
202
pnpm-lock.yaml
generated
@@ -66,6 +66,9 @@ catalogs:
|
|||||||
iconv-lite:
|
iconv-lite:
|
||||||
specifier: 0.6.3
|
specifier: 0.6.3
|
||||||
version: 0.6.3
|
version: 0.6.3
|
||||||
|
js-base64:
|
||||||
|
specifier: 3.7.2
|
||||||
|
version: 3.7.2
|
||||||
jsonwebtoken:
|
jsonwebtoken:
|
||||||
specifier: 9.0.2
|
specifier: 9.0.2
|
||||||
version: 9.0.2
|
version: 9.0.2
|
||||||
@@ -756,7 +759,7 @@ importers:
|
|||||||
version: 4.3.0
|
version: 4.3.0
|
||||||
'@getzep/zep-cloud':
|
'@getzep/zep-cloud':
|
||||||
specifier: 1.0.12
|
specifier: 1.0.12
|
||||||
version: 1.0.12(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))(encoding@0.1.13)(langchain@0.3.11(d71d1df33a22803bba4e47303d410a51))
|
version: 1.0.12(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))(encoding@0.1.13)(langchain@0.3.11(a9c8f655d0ec4bd70e0f938ef73f85da))
|
||||||
'@getzep/zep-js':
|
'@getzep/zep-js':
|
||||||
specifier: 0.9.0
|
specifier: 0.9.0
|
||||||
version: 0.9.0
|
version: 0.9.0
|
||||||
@@ -783,7 +786,7 @@ importers:
|
|||||||
version: 0.3.2(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))(encoding@0.1.13)
|
version: 0.3.2(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))(encoding@0.1.13)
|
||||||
'@langchain/community':
|
'@langchain/community':
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 0.3.24(3a2fa23b4df734da256fae2a3bd4f738)
|
version: 0.3.24(0f15853497e304ae94801fc86723d997)
|
||||||
'@langchain/core':
|
'@langchain/core':
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1))
|
version: 0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1))
|
||||||
@@ -888,7 +891,7 @@ importers:
|
|||||||
version: 23.0.1
|
version: 23.0.1
|
||||||
langchain:
|
langchain:
|
||||||
specifier: 0.3.11
|
specifier: 0.3.11
|
||||||
version: 0.3.11(d71d1df33a22803bba4e47303d410a51)
|
version: 0.3.11(a9c8f655d0ec4bd70e0f938ef73f85da)
|
||||||
lodash:
|
lodash:
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 4.17.21
|
version: 4.17.21
|
||||||
@@ -1945,6 +1948,64 @@ importers:
|
|||||||
specifier: ^2.2.8
|
specifier: ^2.2.8
|
||||||
version: 2.2.8(patch_hash=e2aee939ccac8a57fe449bfd92bedd8117841579526217bc39aca26c6b8c317f)(typescript@5.8.2)
|
version: 2.2.8(patch_hash=e2aee939ccac8a57fe449bfd92bedd8117841579526217bc39aca26c6b8c317f)(typescript@5.8.2)
|
||||||
|
|
||||||
|
packages/frontend/@n8n/rest-api-client:
|
||||||
|
dependencies:
|
||||||
|
'@n8n/api-types':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../../@n8n/api-types
|
||||||
|
'@n8n/constants':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../../@n8n/constants
|
||||||
|
'@n8n/permissions':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../../@n8n/permissions
|
||||||
|
'@n8n/utils':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../../@n8n/utils
|
||||||
|
axios:
|
||||||
|
specifier: 'catalog:'
|
||||||
|
version: 1.8.3
|
||||||
|
flatted:
|
||||||
|
specifier: 'catalog:'
|
||||||
|
version: 3.2.7
|
||||||
|
js-base64:
|
||||||
|
specifier: 'catalog:'
|
||||||
|
version: 3.7.2
|
||||||
|
n8n-workflow:
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../../workflow
|
||||||
|
devDependencies:
|
||||||
|
'@n8n/eslint-config':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../../@n8n/eslint-config
|
||||||
|
'@n8n/i18n':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../i18n
|
||||||
|
'@n8n/typescript-config':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../../@n8n/typescript-config
|
||||||
|
'@n8n/vitest-config':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../../@n8n/vitest-config
|
||||||
|
'@testing-library/jest-dom':
|
||||||
|
specifier: catalog:frontend
|
||||||
|
version: 6.6.3
|
||||||
|
'@testing-library/user-event':
|
||||||
|
specifier: catalog:frontend
|
||||||
|
version: 14.6.1(@testing-library/dom@10.4.0)
|
||||||
|
tsup:
|
||||||
|
specifier: 'catalog:'
|
||||||
|
version: 8.4.0(@microsoft/api-extractor@7.52.1(@types/node@20.17.57))(jiti@1.21.0)(postcss@8.5.3)(tsx@4.19.3)(typescript@5.8.2)
|
||||||
|
typescript:
|
||||||
|
specifier: ^5.8.2
|
||||||
|
version: 5.8.2
|
||||||
|
vite:
|
||||||
|
specifier: catalog:frontend
|
||||||
|
version: 6.3.5(@types/node@20.17.57)(jiti@1.21.0)(sass@1.64.1)(terser@5.16.1)(tsx@4.19.3)
|
||||||
|
vitest:
|
||||||
|
specifier: catalog:frontend
|
||||||
|
version: 3.1.3(@types/debug@4.1.12)(@types/node@20.17.57)(jiti@1.21.0)(jsdom@23.0.1)(sass@1.64.1)(terser@5.16.1)(tsx@4.19.3)
|
||||||
|
|
||||||
packages/frontend/@n8n/stores:
|
packages/frontend/@n8n/stores:
|
||||||
dependencies:
|
dependencies:
|
||||||
n8n-workflow:
|
n8n-workflow:
|
||||||
@@ -2068,6 +2129,9 @@ importers:
|
|||||||
'@n8n/composables':
|
'@n8n/composables':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../@n8n/composables
|
version: link:../@n8n/composables
|
||||||
|
'@n8n/constants':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../@n8n/constants
|
||||||
'@n8n/design-system':
|
'@n8n/design-system':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../@n8n/design-system
|
version: link:../@n8n/design-system
|
||||||
@@ -2077,6 +2141,9 @@ importers:
|
|||||||
'@n8n/permissions':
|
'@n8n/permissions':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../@n8n/permissions
|
version: link:../../@n8n/permissions
|
||||||
|
'@n8n/rest-api-client':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../@n8n/rest-api-client
|
||||||
'@n8n/stores':
|
'@n8n/stores':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../@n8n/stores
|
version: link:../@n8n/stores
|
||||||
@@ -2675,7 +2742,7 @@ importers:
|
|||||||
specifier: 0.16.0
|
specifier: 0.16.0
|
||||||
version: 0.16.0
|
version: 0.16.0
|
||||||
js-base64:
|
js-base64:
|
||||||
specifier: 3.7.2
|
specifier: 'catalog:'
|
||||||
version: 3.7.2
|
version: 3.7.2
|
||||||
jssha:
|
jssha:
|
||||||
specifier: 3.3.1
|
specifier: 3.3.1
|
||||||
@@ -4011,15 +4078,9 @@ packages:
|
|||||||
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0, npm: '>=6.14.13'}
|
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0, npm: '>=6.14.13'}
|
||||||
deprecated: Please update to a newer version
|
deprecated: Please update to a newer version
|
||||||
|
|
||||||
'@floating-ui/core@1.3.1':
|
|
||||||
resolution: {integrity: sha512-Bu+AMaXNjrpjh41znzHqaz3r2Nr8hHuHZT6V2LBKMhyMl0FgKA62PNYbqnfgmzOhoWZj70Zecisbo4H1rotP5g==}
|
|
||||||
|
|
||||||
'@floating-ui/core@1.7.0':
|
'@floating-ui/core@1.7.0':
|
||||||
resolution: {integrity: sha512-FRdBLykrPPA6P76GGGqlex/e7fbe0F1ykgxHYNXQsH/iTEtjMj/f9bpY5oQqbjt5VgZvgz/uKXbGuROijh3VLA==}
|
resolution: {integrity: sha512-FRdBLykrPPA6P76GGGqlex/e7fbe0F1ykgxHYNXQsH/iTEtjMj/f9bpY5oQqbjt5VgZvgz/uKXbGuROijh3VLA==}
|
||||||
|
|
||||||
'@floating-ui/dom@1.4.5':
|
|
||||||
resolution: {integrity: sha512-96KnRWkRnuBSSFbj0sFGwwOUd8EkiecINVl0O9wiZlZ64EkpyAOG3Xc2vKKNJmru0Z7RqWNymA+6b8OZqjgyyw==}
|
|
||||||
|
|
||||||
'@floating-ui/dom@1.7.0':
|
'@floating-ui/dom@1.7.0':
|
||||||
resolution: {integrity: sha512-lGTor4VlXcesUMh1cupTUTDoCxMb0V6bm3CnxHzQcw8Eaf1jQbgQX4i02fYgT0vJ82tb5MZ4CZk1LRGkktJCzg==}
|
resolution: {integrity: sha512-lGTor4VlXcesUMh1cupTUTDoCxMb0V6bm3CnxHzQcw8Eaf1jQbgQX4i02fYgT0vJ82tb5MZ4CZk1LRGkktJCzg==}
|
||||||
|
|
||||||
@@ -4375,10 +4436,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-tPKQNMPuXgvdOn2/Lg9HNfUvjYVGolt04Hp03f5hAk878uwOLikN+JzeLY0HcVgKgFl9Hs3EIqpu3WX27XNhnw==}
|
resolution: {integrity: sha512-tPKQNMPuXgvdOn2/Lg9HNfUvjYVGolt04Hp03f5hAk878uwOLikN+JzeLY0HcVgKgFl9Hs3EIqpu3WX27XNhnw==}
|
||||||
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
|
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
|
||||||
|
|
||||||
'@jridgewell/gen-mapping@0.3.5':
|
|
||||||
resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==}
|
|
||||||
engines: {node: '>=6.0.0'}
|
|
||||||
|
|
||||||
'@jridgewell/gen-mapping@0.3.8':
|
'@jridgewell/gen-mapping@0.3.8':
|
||||||
resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==}
|
resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==}
|
||||||
engines: {node: '>=6.0.0'}
|
engines: {node: '>=6.0.0'}
|
||||||
@@ -8752,10 +8809,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-j0PupcmELoVbYS2NNrsn5zcLLEsryQwP02x8fRawh7c2eEaPHwJFAxltZsqV7HJjsF57+SMpYyVRWgbVLfOagg==}
|
resolution: {integrity: sha512-j0PupcmELoVbYS2NNrsn5zcLLEsryQwP02x8fRawh7c2eEaPHwJFAxltZsqV7HJjsF57+SMpYyVRWgbVLfOagg==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
es-define-property@1.0.0:
|
|
||||||
resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==}
|
|
||||||
engines: {node: '>= 0.4'}
|
|
||||||
|
|
||||||
es-define-property@1.0.1:
|
es-define-property@1.0.1:
|
||||||
resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}
|
resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
@@ -8770,10 +8823,6 @@ packages:
|
|||||||
es-module-lexer@1.7.0:
|
es-module-lexer@1.7.0:
|
||||||
resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}
|
resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}
|
||||||
|
|
||||||
es-object-atoms@1.0.0:
|
|
||||||
resolution: {integrity: sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==}
|
|
||||||
engines: {node: '>= 0.4'}
|
|
||||||
|
|
||||||
es-object-atoms@1.1.1:
|
es-object-atoms@1.1.1:
|
||||||
resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}
|
resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
@@ -9567,9 +9616,6 @@ packages:
|
|||||||
deprecated: Package is no longer maintained
|
deprecated: Package is no longer maintained
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
gopd@1.0.1:
|
|
||||||
resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}
|
|
||||||
|
|
||||||
gopd@1.2.0:
|
gopd@1.2.0:
|
||||||
resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
|
resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
@@ -9614,10 +9660,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==}
|
resolution: {integrity: sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
has-symbols@1.0.3:
|
|
||||||
resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==}
|
|
||||||
engines: {node: '>= 0.4'}
|
|
||||||
|
|
||||||
has-symbols@1.1.0:
|
has-symbols@1.1.0:
|
||||||
resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}
|
resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
@@ -14509,7 +14551,7 @@ snapshots:
|
|||||||
|
|
||||||
'@ampproject/remapping@2.3.0':
|
'@ampproject/remapping@2.3.0':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@jridgewell/gen-mapping': 0.3.5
|
'@jridgewell/gen-mapping': 0.3.8
|
||||||
'@jridgewell/trace-mapping': 0.3.25
|
'@jridgewell/trace-mapping': 0.3.25
|
||||||
|
|
||||||
'@antfu/install-pkg@0.1.1':
|
'@antfu/install-pkg@0.1.1':
|
||||||
@@ -15665,7 +15707,7 @@ snapshots:
|
|||||||
'@babel/helper-validator-option': 7.25.9
|
'@babel/helper-validator-option': 7.25.9
|
||||||
browserslist: 4.24.4
|
browserslist: 4.24.4
|
||||||
lru-cache: 5.1.1
|
lru-cache: 5.1.1
|
||||||
semver: 7.6.0
|
semver: 7.7.2
|
||||||
|
|
||||||
'@babel/helper-create-class-features-plugin@7.26.9(@babel/core@7.26.10)':
|
'@babel/helper-create-class-features-plugin@7.26.9(@babel/core@7.26.10)':
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -16699,16 +16741,10 @@ snapshots:
|
|||||||
|
|
||||||
'@faker-js/faker@8.0.2': {}
|
'@faker-js/faker@8.0.2': {}
|
||||||
|
|
||||||
'@floating-ui/core@1.3.1': {}
|
|
||||||
|
|
||||||
'@floating-ui/core@1.7.0':
|
'@floating-ui/core@1.7.0':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@floating-ui/utils': 0.2.9
|
'@floating-ui/utils': 0.2.9
|
||||||
|
|
||||||
'@floating-ui/dom@1.4.5':
|
|
||||||
dependencies:
|
|
||||||
'@floating-ui/core': 1.3.1
|
|
||||||
|
|
||||||
'@floating-ui/dom@1.7.0':
|
'@floating-ui/dom@1.7.0':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@floating-ui/core': 1.7.0
|
'@floating-ui/core': 1.7.0
|
||||||
@@ -16749,7 +16785,7 @@ snapshots:
|
|||||||
'@gar/promisify@1.1.3':
|
'@gar/promisify@1.1.3':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@getzep/zep-cloud@1.0.12(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))(encoding@0.1.13)(langchain@0.3.11(d71d1df33a22803bba4e47303d410a51))':
|
'@getzep/zep-cloud@1.0.12(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))(encoding@0.1.13)(langchain@0.3.11(a9c8f655d0ec4bd70e0f938ef73f85da))':
|
||||||
dependencies:
|
dependencies:
|
||||||
form-data: 4.0.0
|
form-data: 4.0.0
|
||||||
node-fetch: 2.7.0(encoding@0.1.13)
|
node-fetch: 2.7.0(encoding@0.1.13)
|
||||||
@@ -16758,7 +16794,7 @@ snapshots:
|
|||||||
zod: 3.24.1
|
zod: 3.24.1
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@langchain/core': 0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1))
|
'@langchain/core': 0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1))
|
||||||
langchain: 0.3.11(d71d1df33a22803bba4e47303d410a51)
|
langchain: 0.3.11(a9c8f655d0ec4bd70e0f938ef73f85da)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- encoding
|
- encoding
|
||||||
|
|
||||||
@@ -17181,12 +17217,6 @@ snapshots:
|
|||||||
'@types/yargs': 17.0.19
|
'@types/yargs': 17.0.19
|
||||||
chalk: 4.1.2
|
chalk: 4.1.2
|
||||||
|
|
||||||
'@jridgewell/gen-mapping@0.3.5':
|
|
||||||
dependencies:
|
|
||||||
'@jridgewell/set-array': 1.2.1
|
|
||||||
'@jridgewell/sourcemap-codec': 1.5.0
|
|
||||||
'@jridgewell/trace-mapping': 0.3.25
|
|
||||||
|
|
||||||
'@jridgewell/gen-mapping@0.3.8':
|
'@jridgewell/gen-mapping@0.3.8':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@jridgewell/set-array': 1.2.1
|
'@jridgewell/set-array': 1.2.1
|
||||||
@@ -17288,7 +17318,7 @@ snapshots:
|
|||||||
- aws-crt
|
- aws-crt
|
||||||
- encoding
|
- encoding
|
||||||
|
|
||||||
'@langchain/community@0.3.24(3a2fa23b4df734da256fae2a3bd4f738)':
|
'@langchain/community@0.3.24(0f15853497e304ae94801fc86723d997)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@browserbasehq/stagehand': 1.9.0(@playwright/test@1.49.1)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.78.1(encoding@0.1.13)(zod@3.24.1))(zod@3.24.1)
|
'@browserbasehq/stagehand': 1.9.0(@playwright/test@1.49.1)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.78.1(encoding@0.1.13)(zod@3.24.1))(zod@3.24.1)
|
||||||
'@ibm-cloud/watsonx-ai': 1.1.2
|
'@ibm-cloud/watsonx-ai': 1.1.2
|
||||||
@@ -17299,7 +17329,7 @@ snapshots:
|
|||||||
flat: 5.0.2
|
flat: 5.0.2
|
||||||
ibm-cloud-sdk-core: 5.3.2
|
ibm-cloud-sdk-core: 5.3.2
|
||||||
js-yaml: 4.1.0
|
js-yaml: 4.1.0
|
||||||
langchain: 0.3.11(d71d1df33a22803bba4e47303d410a51)
|
langchain: 0.3.11(a9c8f655d0ec4bd70e0f938ef73f85da)
|
||||||
langsmith: 0.2.15(openai@4.78.1(encoding@0.1.13)(zod@3.24.1))
|
langsmith: 0.2.15(openai@4.78.1(encoding@0.1.13)(zod@3.24.1))
|
||||||
openai: 4.78.1(encoding@0.1.13)(zod@3.24.1)
|
openai: 4.78.1(encoding@0.1.13)(zod@3.24.1)
|
||||||
uuid: 10.0.0
|
uuid: 10.0.0
|
||||||
@@ -17314,7 +17344,7 @@ snapshots:
|
|||||||
'@aws-sdk/credential-provider-node': 3.808.0
|
'@aws-sdk/credential-provider-node': 3.808.0
|
||||||
'@azure/storage-blob': 12.26.0
|
'@azure/storage-blob': 12.26.0
|
||||||
'@browserbasehq/sdk': 2.6.0(encoding@0.1.13)
|
'@browserbasehq/sdk': 2.6.0(encoding@0.1.13)
|
||||||
'@getzep/zep-cloud': 1.0.12(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))(encoding@0.1.13)(langchain@0.3.11(d71d1df33a22803bba4e47303d410a51))
|
'@getzep/zep-cloud': 1.0.12(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))(encoding@0.1.13)(langchain@0.3.11(a9c8f655d0ec4bd70e0f938ef73f85da))
|
||||||
'@getzep/zep-js': 0.9.0
|
'@getzep/zep-js': 0.9.0
|
||||||
'@google-ai/generativelanguage': 2.6.0(encoding@0.1.13)
|
'@google-ai/generativelanguage': 2.6.0(encoding@0.1.13)
|
||||||
'@google-cloud/storage': 7.12.1(encoding@0.1.13)
|
'@google-cloud/storage': 7.12.1(encoding@0.1.13)
|
||||||
@@ -20833,14 +20863,6 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- debug
|
- debug
|
||||||
|
|
||||||
axios@1.9.0:
|
|
||||||
dependencies:
|
|
||||||
follow-redirects: 1.15.9(debug@4.3.6)
|
|
||||||
form-data: 4.0.2
|
|
||||||
proxy-from-env: 1.1.0
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- debug
|
|
||||||
|
|
||||||
axios@1.9.0(debug@4.3.6):
|
axios@1.9.0(debug@4.3.6):
|
||||||
dependencies:
|
dependencies:
|
||||||
follow-redirects: 1.15.9(debug@4.3.6)
|
follow-redirects: 1.15.9(debug@4.3.6)
|
||||||
@@ -20859,7 +20881,7 @@ snapshots:
|
|||||||
|
|
||||||
axios@1.9.0(debug@4.4.1):
|
axios@1.9.0(debug@4.4.1):
|
||||||
dependencies:
|
dependencies:
|
||||||
follow-redirects: 1.15.9(debug@4.4.1)
|
follow-redirects: 1.15.9(debug@4.3.6)
|
||||||
form-data: 4.0.2
|
form-data: 4.0.2
|
||||||
proxy-from-env: 1.1.0
|
proxy-from-env: 1.1.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
@@ -20900,7 +20922,7 @@ snapshots:
|
|||||||
'@babel/compat-data': 7.26.8
|
'@babel/compat-data': 7.26.8
|
||||||
'@babel/core': 7.26.10
|
'@babel/core': 7.26.10
|
||||||
'@babel/helper-define-polyfill-provider': 0.6.3(@babel/core@7.26.10)
|
'@babel/helper-define-polyfill-provider': 0.6.3(@babel/core@7.26.10)
|
||||||
semver: 7.6.0
|
semver: 7.7.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
@@ -21012,7 +21034,7 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
bytes: 3.1.2
|
bytes: 3.1.2
|
||||||
content-type: 1.0.5
|
content-type: 1.0.5
|
||||||
debug: 4.4.0
|
debug: 4.4.1(supports-color@8.1.1)
|
||||||
http-errors: 2.0.0
|
http-errors: 2.0.0
|
||||||
iconv-lite: 0.6.3
|
iconv-lite: 0.6.3
|
||||||
on-finished: 2.4.1
|
on-finished: 2.4.1
|
||||||
@@ -21964,8 +21986,8 @@ snapshots:
|
|||||||
object-is: 1.1.6
|
object-is: 1.1.6
|
||||||
object-keys: 1.1.1
|
object-keys: 1.1.1
|
||||||
object.assign: 4.1.5
|
object.assign: 4.1.5
|
||||||
regexp.prototype.flags: 1.5.2
|
regexp.prototype.flags: 1.5.3
|
||||||
side-channel: 1.0.6
|
side-channel: 1.1.0
|
||||||
which-boxed-primitive: 1.0.2
|
which-boxed-primitive: 1.0.2
|
||||||
which-collection: 1.0.1
|
which-collection: 1.0.1
|
||||||
which-typed-array: 1.1.15
|
which-typed-array: 1.1.15
|
||||||
@@ -22155,7 +22177,7 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@ctrl/tinycolor': 3.6.0
|
'@ctrl/tinycolor': 3.6.0
|
||||||
'@element-plus/icons-vue': 2.3.1(vue@3.5.13(typescript@5.8.2))
|
'@element-plus/icons-vue': 2.3.1(vue@3.5.13(typescript@5.8.2))
|
||||||
'@floating-ui/dom': 1.4.5
|
'@floating-ui/dom': 1.7.0
|
||||||
'@popperjs/core': '@sxzz/popperjs-es@2.11.7'
|
'@popperjs/core': '@sxzz/popperjs-es@2.11.7'
|
||||||
'@types/lodash': 4.17.17
|
'@types/lodash': 4.17.17
|
||||||
'@types/lodash-es': 4.17.12
|
'@types/lodash-es': 4.17.12
|
||||||
@@ -22289,19 +22311,19 @@ snapshots:
|
|||||||
data-view-buffer: 1.0.1
|
data-view-buffer: 1.0.1
|
||||||
data-view-byte-length: 1.0.1
|
data-view-byte-length: 1.0.1
|
||||||
data-view-byte-offset: 1.0.0
|
data-view-byte-offset: 1.0.0
|
||||||
es-define-property: 1.0.0
|
es-define-property: 1.0.1
|
||||||
es-errors: 1.3.0
|
es-errors: 1.3.0
|
||||||
es-object-atoms: 1.0.0
|
es-object-atoms: 1.1.1
|
||||||
es-set-tostringtag: 2.1.0
|
es-set-tostringtag: 2.1.0
|
||||||
es-to-primitive: 1.2.1
|
es-to-primitive: 1.2.1
|
||||||
function.prototype.name: 1.1.6
|
function.prototype.name: 1.1.6
|
||||||
get-intrinsic: 1.2.4
|
get-intrinsic: 1.3.0
|
||||||
get-symbol-description: 1.0.2
|
get-symbol-description: 1.0.2
|
||||||
globalthis: 1.0.4
|
globalthis: 1.0.4
|
||||||
gopd: 1.0.1
|
gopd: 1.2.0
|
||||||
has-property-descriptors: 1.0.2
|
has-property-descriptors: 1.0.2
|
||||||
has-proto: 1.0.3
|
has-proto: 1.0.3
|
||||||
has-symbols: 1.0.3
|
has-symbols: 1.1.0
|
||||||
hasown: 2.0.2
|
hasown: 2.0.2
|
||||||
internal-slot: 1.0.7
|
internal-slot: 1.0.7
|
||||||
is-array-buffer: 3.0.4
|
is-array-buffer: 3.0.4
|
||||||
@@ -22340,10 +22362,6 @@ snapshots:
|
|||||||
has-property-descriptors: 1.0.2
|
has-property-descriptors: 1.0.2
|
||||||
set-function-name: 2.0.2
|
set-function-name: 2.0.2
|
||||||
|
|
||||||
es-define-property@1.0.0:
|
|
||||||
dependencies:
|
|
||||||
get-intrinsic: 1.3.0
|
|
||||||
|
|
||||||
es-define-property@1.0.1: {}
|
es-define-property@1.0.1: {}
|
||||||
|
|
||||||
es-errors@1.3.0: {}
|
es-errors@1.3.0: {}
|
||||||
@@ -22362,10 +22380,6 @@ snapshots:
|
|||||||
|
|
||||||
es-module-lexer@1.7.0: {}
|
es-module-lexer@1.7.0: {}
|
||||||
|
|
||||||
es-object-atoms@1.0.0:
|
|
||||||
dependencies:
|
|
||||||
es-errors: 1.3.0
|
|
||||||
|
|
||||||
es-object-atoms@1.1.1:
|
es-object-atoms@1.1.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
es-errors: 1.3.0
|
es-errors: 1.3.0
|
||||||
@@ -22986,7 +23000,7 @@ snapshots:
|
|||||||
|
|
||||||
finalhandler@2.1.0:
|
finalhandler@2.1.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
debug: 4.4.0
|
debug: 4.4.1(supports-color@8.1.1)
|
||||||
encodeurl: 2.0.0
|
encodeurl: 2.0.0
|
||||||
escape-html: 1.0.3
|
escape-html: 1.0.3
|
||||||
on-finished: 2.4.1
|
on-finished: 2.4.1
|
||||||
@@ -23040,10 +23054,6 @@ snapshots:
|
|||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
debug: 4.4.0
|
debug: 4.4.0
|
||||||
|
|
||||||
follow-redirects@1.15.9(debug@4.4.1):
|
|
||||||
optionalDependencies:
|
|
||||||
debug: 4.4.1(supports-color@8.1.1)
|
|
||||||
|
|
||||||
for-each@0.3.3:
|
for-each@0.3.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
is-callable: 1.2.7
|
is-callable: 1.2.7
|
||||||
@@ -23216,7 +23226,7 @@ snapshots:
|
|||||||
es-errors: 1.3.0
|
es-errors: 1.3.0
|
||||||
function-bind: 1.1.2
|
function-bind: 1.1.2
|
||||||
has-proto: 1.0.3
|
has-proto: 1.0.3
|
||||||
has-symbols: 1.0.3
|
has-symbols: 1.1.0
|
||||||
hasown: 2.0.2
|
hasown: 2.0.2
|
||||||
|
|
||||||
get-intrinsic@1.3.0:
|
get-intrinsic@1.3.0:
|
||||||
@@ -23412,10 +23422,6 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
node-forge: 1.3.1
|
node-forge: 1.3.1
|
||||||
|
|
||||||
gopd@1.0.1:
|
|
||||||
dependencies:
|
|
||||||
get-intrinsic: 1.3.0
|
|
||||||
|
|
||||||
gopd@1.2.0: {}
|
gopd@1.2.0: {}
|
||||||
|
|
||||||
graceful-fs@4.2.11: {}
|
graceful-fs@4.2.11: {}
|
||||||
@@ -23474,8 +23480,6 @@ snapshots:
|
|||||||
|
|
||||||
has-proto@1.0.3: {}
|
has-proto@1.0.3: {}
|
||||||
|
|
||||||
has-symbols@1.0.3: {}
|
|
||||||
|
|
||||||
has-symbols@1.1.0: {}
|
has-symbols@1.1.0: {}
|
||||||
|
|
||||||
has-tostringtag@1.0.2:
|
has-tostringtag@1.0.2:
|
||||||
@@ -23663,7 +23667,7 @@ snapshots:
|
|||||||
isstream: 0.1.2
|
isstream: 0.1.2
|
||||||
jsonwebtoken: 9.0.2
|
jsonwebtoken: 9.0.2
|
||||||
mime-types: 2.1.35
|
mime-types: 2.1.35
|
||||||
retry-axios: 2.6.0(axios@1.9.0)
|
retry-axios: 2.6.0(axios@1.9.0(debug@4.4.1))
|
||||||
tough-cookie: 4.1.4
|
tough-cookie: 4.1.4
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -23728,7 +23732,7 @@ snapshots:
|
|||||||
|
|
||||||
infisical-node@1.3.0:
|
infisical-node@1.3.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
axios: 1.9.0
|
axios: 1.9.0(debug@4.4.1)
|
||||||
dotenv: 16.3.1
|
dotenv: 16.3.1
|
||||||
tweetnacl: 1.0.3
|
tweetnacl: 1.0.3
|
||||||
tweetnacl-util: 0.15.1
|
tweetnacl-util: 0.15.1
|
||||||
@@ -24653,7 +24657,7 @@ snapshots:
|
|||||||
|
|
||||||
kuler@2.0.0: {}
|
kuler@2.0.0: {}
|
||||||
|
|
||||||
langchain@0.3.11(d71d1df33a22803bba4e47303d410a51):
|
langchain@0.3.11(a9c8f655d0ec4bd70e0f938ef73f85da):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@langchain/core': 0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1))
|
'@langchain/core': 0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1))
|
||||||
'@langchain/openai': 0.3.17(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))(encoding@0.1.13)
|
'@langchain/openai': 0.3.17(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))(encoding@0.1.13)
|
||||||
@@ -24677,7 +24681,7 @@ snapshots:
|
|||||||
'@langchain/groq': 0.1.3(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))(encoding@0.1.13)
|
'@langchain/groq': 0.1.3(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))(encoding@0.1.13)
|
||||||
'@langchain/mistralai': 0.2.0(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))
|
'@langchain/mistralai': 0.2.0(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))
|
||||||
'@langchain/ollama': 0.1.4(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))
|
'@langchain/ollama': 0.1.4(@langchain/core@0.3.39(openai@4.78.1(encoding@0.1.13)(zod@3.24.1)))
|
||||||
axios: 1.9.0
|
axios: 1.9.0(debug@4.4.1)
|
||||||
cheerio: 1.0.0
|
cheerio: 1.0.0
|
||||||
handlebars: 4.7.8
|
handlebars: 4.7.8
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
@@ -25734,7 +25738,7 @@ snapshots:
|
|||||||
|
|
||||||
node-abi@3.54.0:
|
node-abi@3.54.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
semver: 7.6.0
|
semver: 7.7.2
|
||||||
|
|
||||||
node-abort-controller@3.1.1: {}
|
node-abort-controller@3.1.1: {}
|
||||||
|
|
||||||
@@ -26462,7 +26466,7 @@ snapshots:
|
|||||||
|
|
||||||
posthog-node@3.2.1:
|
posthog-node@3.2.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
axios: 1.9.0
|
axios: 1.9.0(debug@4.4.1)
|
||||||
rusha: 0.8.14
|
rusha: 0.8.14
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- debug
|
- debug
|
||||||
@@ -27039,9 +27043,9 @@ snapshots:
|
|||||||
onetime: 5.1.2
|
onetime: 5.1.2
|
||||||
signal-exit: 3.0.7
|
signal-exit: 3.0.7
|
||||||
|
|
||||||
retry-axios@2.6.0(axios@1.9.0):
|
retry-axios@2.6.0(axios@1.9.0(debug@4.4.1)):
|
||||||
dependencies:
|
dependencies:
|
||||||
axios: 1.9.0
|
axios: 1.9.0(debug@4.4.1)
|
||||||
|
|
||||||
retry-request@7.0.2(encoding@0.1.13):
|
retry-request@7.0.2(encoding@0.1.13):
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -27118,7 +27122,7 @@ snapshots:
|
|||||||
|
|
||||||
router@2.2.0:
|
router@2.2.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
debug: 4.4.0
|
debug: 4.4.1(supports-color@8.1.1)
|
||||||
depd: 2.0.0
|
depd: 2.0.0
|
||||||
is-promise: 4.0.0
|
is-promise: 4.0.0
|
||||||
parseurl: 1.3.3
|
parseurl: 1.3.3
|
||||||
@@ -27237,7 +27241,7 @@ snapshots:
|
|||||||
|
|
||||||
send@1.2.0:
|
send@1.2.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
debug: 4.4.0
|
debug: 4.4.1(supports-color@8.1.1)
|
||||||
encodeurl: 2.0.0
|
encodeurl: 2.0.0
|
||||||
escape-html: 1.0.3
|
escape-html: 1.0.3
|
||||||
etag: 1.8.1
|
etag: 1.8.1
|
||||||
@@ -27501,7 +27505,7 @@ snapshots:
|
|||||||
asn1.js: 5.4.1
|
asn1.js: 5.4.1
|
||||||
asn1.js-rfc2560: 5.0.1(asn1.js@5.4.1)
|
asn1.js-rfc2560: 5.0.1(asn1.js@5.4.1)
|
||||||
asn1.js-rfc5280: 3.0.0
|
asn1.js-rfc5280: 3.0.0
|
||||||
axios: 1.9.0
|
axios: 1.9.0(debug@4.4.1)
|
||||||
big-integer: 1.6.52
|
big-integer: 1.6.52
|
||||||
bignumber.js: 9.1.2
|
bignumber.js: 9.1.2
|
||||||
binascii: 0.0.2
|
binascii: 0.0.2
|
||||||
@@ -29197,7 +29201,7 @@ snapshots:
|
|||||||
yargs@17.7.2:
|
yargs@17.7.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
cliui: 8.0.1
|
cliui: 8.0.1
|
||||||
escalade: 3.1.1
|
escalade: 3.2.0
|
||||||
get-caller-file: 2.0.5
|
get-caller-file: 2.0.5
|
||||||
require-directory: 2.1.1
|
require-directory: 2.1.1
|
||||||
string-width: 4.2.3
|
string-width: 4.2.3
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ catalog:
|
|||||||
form-data: 4.0.0
|
form-data: 4.0.0
|
||||||
iconv-lite: 0.6.3
|
iconv-lite: 0.6.3
|
||||||
jsonwebtoken: 9.0.2
|
jsonwebtoken: 9.0.2
|
||||||
|
js-base64: 3.7.2
|
||||||
lodash: 4.17.21
|
lodash: 4.17.21
|
||||||
luxon: 3.4.4
|
luxon: 3.4.4
|
||||||
nanoid: 3.3.8
|
nanoid: 3.3.8
|
||||||
|
|||||||
Reference in New Issue
Block a user