@botpress/api 1.47.0 → 1.48.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +6 -0
- package/.turbo/turbo-openapi.log +6 -6
- package/dist/index.js +19056 -30211
- package/dist/src/gen/admin/state.d.ts +11 -1004
- package/dist/src/gen/files/state.d.ts +44 -3041
- package/dist/src/gen/runtime/state.d.ts +115 -2700
- package/dist/src/gen/state.d.ts +7 -0
- package/dist/src/gen/tables/state.d.ts +19 -2762
- package/dist/src/index.d.ts +10 -10
- package/package.json +5 -3
- package/src/gen/admin/metadata.json +1 -1
- package/src/gen/admin/openapi.json +1 -1
- package/src/gen/admin/state.ts +97 -1296
- package/src/gen/files/metadata.json +1 -1
- package/src/gen/files/openapi.json +1 -1
- package/src/gen/files/state.ts +83 -3667
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/runtime/metadata.json +1 -1
- package/src/gen/runtime/openapi.json +1 -1
- package/src/gen/runtime/state.ts +16 -3122
- package/src/gen/state.ts +12 -4
- package/src/gen/tables/metadata.json +1 -1
- package/src/gen/tables/openapi.json +1 -1
- package/src/gen/tables/state.ts +98 -3392
package/dist/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './gen/state';
|
|
2
2
|
export declare const api: {
|
|
3
|
-
getModelRef: (name: "
|
|
4
|
-
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-workspace-id", "user" | "conversation" | "event" | "message" | "state" | "hub" | "action" | "task" | "workflow" | "tag" | "bot" | "integration" | "interface" | "plugin" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "activity" | "
|
|
3
|
+
getModelRef: (name: "User" | "Conversation" | "Event" | "Message" | "State" | "Task" | "Workflow" | "Bot" | "Integration" | "Interface" | "Plugin" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "Activity" | "Version" | "File" | "Table" | "Column" | "Row") => import("@bpinternal/opapi").OpenApiZodAny;
|
|
4
|
+
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-workspace-id", "user" | "conversation" | "event" | "message" | "state" | "hub" | "action" | "task" | "workflow" | "tag" | "bot" | "integration" | "interface" | "plugin" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "activity" | "files" | "tables", Path, "zod-schema">) => void;
|
|
5
5
|
exportClient: {
|
|
6
6
|
(dir: string, openapiGeneratorEndpoint: string, postProcessors?: import("@bpinternal/opapi").OpenApiPostProcessors | undefined): Promise<void>;
|
|
7
7
|
(dir: string, props: import("@bpinternal/opapi").GenerateClientProps): Promise<void>;
|
|
@@ -17,8 +17,8 @@ export declare const api: {
|
|
|
17
17
|
};
|
|
18
18
|
export * as runtime from './gen/runtime/state';
|
|
19
19
|
export declare const runtimeApi: {
|
|
20
|
-
getModelRef: (name: "
|
|
21
|
-
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<string, "user" | "conversation" | "event" | "message" | "state" | "hub" | "action" | "task" | "workflow" | "tag"
|
|
20
|
+
getModelRef: (name: "User" | "Conversation" | "Event" | "Message" | "State" | "Task" | "Workflow") => import("@bpinternal/opapi").OpenApiZodAny;
|
|
21
|
+
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<string, "user" | "conversation" | "event" | "message" | "state" | "hub" | "action" | "task" | "workflow" | "tag", Path, "zod-schema">) => void;
|
|
22
22
|
exportClient: {
|
|
23
23
|
(dir: string, openapiGeneratorEndpoint: string, postProcessors?: import("@bpinternal/opapi").OpenApiPostProcessors | undefined): Promise<void>;
|
|
24
24
|
(dir: string, props: import("@bpinternal/opapi").GenerateClientProps): Promise<void>;
|
|
@@ -34,8 +34,8 @@ export declare const runtimeApi: {
|
|
|
34
34
|
};
|
|
35
35
|
export * as admin from './gen/admin/state';
|
|
36
36
|
export declare const adminApi: {
|
|
37
|
-
getModelRef: (name: "Bot" | "Integration" | "Interface" | "Plugin" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "Activity" | "Version"
|
|
38
|
-
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-workspace-id", "
|
|
37
|
+
getModelRef: (name: "Bot" | "Integration" | "Interface" | "Plugin" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "Activity" | "Version") => import("@bpinternal/opapi").OpenApiZodAny;
|
|
38
|
+
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-workspace-id", "hub" | "bot" | "integration" | "interface" | "plugin" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "activity", Path, "zod-schema">) => void;
|
|
39
39
|
exportClient: {
|
|
40
40
|
(dir: string, openapiGeneratorEndpoint: string, postProcessors?: import("@bpinternal/opapi").OpenApiPostProcessors | undefined): Promise<void>;
|
|
41
41
|
(dir: string, props: import("@bpinternal/opapi").GenerateClientProps): Promise<void>;
|
|
@@ -51,8 +51,8 @@ export declare const adminApi: {
|
|
|
51
51
|
};
|
|
52
52
|
export * as files from './gen/files/state';
|
|
53
53
|
export declare const filesApi: {
|
|
54
|
-
getModelRef: (name: "
|
|
55
|
-
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<string, "
|
|
54
|
+
getModelRef: (name: "File") => import("@bpinternal/opapi").OpenApiZodAny;
|
|
55
|
+
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<string, "files", Path, "zod-schema">) => void;
|
|
56
56
|
exportClient: {
|
|
57
57
|
(dir: string, openapiGeneratorEndpoint: string, postProcessors?: import("@bpinternal/opapi").OpenApiPostProcessors | undefined): Promise<void>;
|
|
58
58
|
(dir: string, props: import("@bpinternal/opapi").GenerateClientProps): Promise<void>;
|
|
@@ -68,8 +68,8 @@ export declare const filesApi: {
|
|
|
68
68
|
};
|
|
69
69
|
export * as tables from './gen/tables/state';
|
|
70
70
|
export declare const tablesApi: {
|
|
71
|
-
getModelRef: (name: "
|
|
72
|
-
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<string, "
|
|
71
|
+
getModelRef: (name: "Table" | "Column" | "Row") => import("@bpinternal/opapi").OpenApiZodAny;
|
|
72
|
+
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<string, "tables", Path, "zod-schema">) => void;
|
|
73
73
|
exportClient: {
|
|
74
74
|
(dir: string, openapiGeneratorEndpoint: string, postProcessors?: import("@bpinternal/opapi").OpenApiPostProcessors | undefined): Promise<void>;
|
|
75
75
|
(dir: string, props: import("@bpinternal/opapi").GenerateClientProps): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.48.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
"check:type": "tsc --noEmit",
|
|
10
10
|
"build:type": "tsc -p tsconfig.package.json --emitDeclarationOnly",
|
|
11
11
|
"build:impl": "esbuild --bundle --platform=node --outfile=dist/index.js src/index.ts",
|
|
12
|
-
"build": "pnpm run build:type && pnpm run build:impl"
|
|
12
|
+
"build": "pnpm run build:type && pnpm run build:impl",
|
|
13
|
+
"check:lint": "eslint --max-warnings 0 --cache --ext .ts,.tsx .",
|
|
14
|
+
"fix:lint": "eslint --fix --cache --ext .ts,.tsx ."
|
|
13
15
|
},
|
|
14
16
|
"devDependencies": {
|
|
15
17
|
"@botpress/bridge": "workspace:*",
|
|
@@ -23,6 +25,6 @@
|
|
|
23
25
|
"zod": "^3.24.4"
|
|
24
26
|
},
|
|
25
27
|
"dependencies": {
|
|
26
|
-
"@bpinternal/opapi": "
|
|
28
|
+
"@bpinternal/opapi": "catalog:"
|
|
27
29
|
}
|
|
28
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sections":[{"
|
|
1
|
+
{"sections":[{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","listActionRuns","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents","listBotVersions","getBotVersion","getBotJson","publishFromBotJson","createBotVersion","deployBotVersion","createIntegrationShareableId","deleteIntegrationShareableId","getIntegrationShareableId","unlinkSandboxedConversations","listBotApiKeys","createBotApiKey","deleteBotApiKey","getBotAllowlist","updateBotAllowlist"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","validateIntegrationCreation","updateIntegration","validateIntegrationUpdate","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration","requestIntegrationVerification"],"schema":"Integration"},{"title":"Interface","description":"","name":"interface","operations":["createInterface","getInterface","getInterfaceByName","updateInterface","deleteInterface","listInterfaces"],"schema":"Interface"},{"title":"Plugin","description":"","name":"plugin","operations":["createPlugin","getPlugin","getDereferencedPlugin","getPluginByName","updatePlugin","deletePlugin","listPlugins","getPluginCode"],"schema":"Plugin"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration","listPublicPlugins","getPublicPluginById","getDereferencedPublicPluginById","getPublicPlugin","getPublicPluginCode","listPublicInterfaces","getPublicInterfaceById","getPublicInterface"]},{"title":"Workspace","description":"","name":"workspace","operations":["listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","listPublicWorkspaces","deleteWorkspace","getAuditRecords","setWorkspacePreference","getWorkspacePreference"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","getWorkspaceMember","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","deleteAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage","getMultipleUsages","listUsageActivityDaily"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]},{"title":"Helper","description":"","name":"helper","operations":["runVrl"]},{"title":"Activity","description":"","name":"activity","operations":["listActivities"],"schema":"Activity"}],"errors":[{"status":500,"type":"Unknown","description":"An unknown error occurred"},{"status":500,"type":"Internal","description":"An internal error occurred"},{"status":401,"type":"Unauthorized","description":"The request requires to be authenticated."},{"status":403,"type":"Forbidden","description":"The requested action can't be peform by this resource."},{"status":413,"type":"PayloadTooLarge","description":"The request payload is too large."},{"status":400,"type":"InvalidPayload","description":"The request payload is invalid."},{"status":415,"type":"UnsupportedMediaType","description":"The request is invalid because the content-type is not supported."},{"status":405,"type":"MethodNotFound","description":"The requested method does not exist."},{"status":404,"type":"ResourceNotFound","description":"The requested resource does not exist."},{"status":400,"type":"InvalidJsonSchema","description":"The provided JSON schema is invalid."},{"status":400,"type":"InvalidDataFormat","description":"The provided data doesn't respect the provided JSON schema."},{"status":400,"type":"InvalidIdentifier","description":"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters."},{"status":409,"type":"RelationConflict","description":"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together."},{"status":409,"type":"ReferenceConstraint","description":"The resource cannot be deleted because it's referenced by another resource"},{"status":409,"type":"ResourceLockedConflict","description":"The resource is current locked and cannot be operated on until the lock is released."},{"status":410,"type":"ResourceGone","description":"The requested resource is no longer available."},{"status":400,"type":"ReferenceNotFound","description":"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request."},{"status":400,"type":"InvalidQuery","description":"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource."},{"status":400,"type":"Runtime","description":"An error happened during the execution of a runtime (bot or integration)."},{"status":409,"type":"AlreadyExists","description":"The record attempted to be created already exists."},{"status":429,"type":"RateLimited","description":"The request has been rate limited."},{"status":402,"type":"PaymentRequired","description":"A payment is required to perform this request."},{"status":403,"type":"QuotaExceeded","description":"The request exceeds the allowed quota. Quotas are a soft limit that can be increased."},{"status":413,"type":"LimitExceeded","description":"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased."},{"status":400,"type":"BreakingChanges","description":"Request payload contains breaking changes which is not allowed for this resource without a version increment."}]}
|