@botpress/api 1.30.0 → 1.32.0
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/.turbo/turbo-openapi.log +5 -5
- package/dist/index.js +263 -15
- package/dist/src/gen/admin/state.d.ts +93 -0
- package/dist/src/gen/files/state.d.ts +7 -0
- package/dist/src/gen/runtime/state.d.ts +8 -0
- package/dist/src/gen/state.d.ts +108 -0
- package/package.json +1 -1
- package/src/gen/admin/metadata.json +1 -1
- package/src/gen/admin/openapi.json +1 -1
- package/src/gen/admin/state.ts +110 -2
- package/src/gen/files/openapi.json +1 -1
- package/src/gen/files/state.ts +13 -5
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/runtime/openapi.json +1 -1
- package/src/gen/runtime/state.ts +9 -1
- package/src/gen/state.ts +130 -6
- package/src/gen/tables/openapi.json +1 -1
- package/src/gen/tables/state.ts +1 -1
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -2230,6 +2230,14 @@ export declare const state: {
|
|
|
2230
2230
|
type: "string";
|
|
2231
2231
|
description: string;
|
|
2232
2232
|
};
|
|
2233
|
+
discriminateByTags: {
|
|
2234
|
+
type: "array";
|
|
2235
|
+
items: {
|
|
2236
|
+
type: "string";
|
|
2237
|
+
maxLength: number;
|
|
2238
|
+
};
|
|
2239
|
+
description: string;
|
|
2240
|
+
};
|
|
2233
2241
|
};
|
|
2234
2242
|
required: string[];
|
|
2235
2243
|
title: string;
|
|
@@ -8133,6 +8141,96 @@ export declare const state: {
|
|
|
8133
8141
|
};
|
|
8134
8142
|
};
|
|
8135
8143
|
};
|
|
8144
|
+
getBotAllowlist: {
|
|
8145
|
+
name: string;
|
|
8146
|
+
description: string;
|
|
8147
|
+
method: "get";
|
|
8148
|
+
section: "bot";
|
|
8149
|
+
path: string;
|
|
8150
|
+
parameters: {
|
|
8151
|
+
botId: {
|
|
8152
|
+
type: "string";
|
|
8153
|
+
description: string;
|
|
8154
|
+
in: "path";
|
|
8155
|
+
};
|
|
8156
|
+
};
|
|
8157
|
+
response: {
|
|
8158
|
+
description: string;
|
|
8159
|
+
schema: {
|
|
8160
|
+
type: "object";
|
|
8161
|
+
properties: {
|
|
8162
|
+
setting: {
|
|
8163
|
+
type: "string";
|
|
8164
|
+
enum: string[];
|
|
8165
|
+
description: string;
|
|
8166
|
+
};
|
|
8167
|
+
users: {
|
|
8168
|
+
type: "array";
|
|
8169
|
+
items: {
|
|
8170
|
+
type: "object";
|
|
8171
|
+
properties: {
|
|
8172
|
+
id: {
|
|
8173
|
+
type: "string";
|
|
8174
|
+
};
|
|
8175
|
+
};
|
|
8176
|
+
required: string[];
|
|
8177
|
+
};
|
|
8178
|
+
};
|
|
8179
|
+
};
|
|
8180
|
+
required: string[];
|
|
8181
|
+
title: string;
|
|
8182
|
+
additionalProperties: false;
|
|
8183
|
+
};
|
|
8184
|
+
};
|
|
8185
|
+
};
|
|
8186
|
+
updateBotAllowlist: {
|
|
8187
|
+
name: string;
|
|
8188
|
+
description: string;
|
|
8189
|
+
method: "put";
|
|
8190
|
+
section: "bot";
|
|
8191
|
+
path: string;
|
|
8192
|
+
parameters: {
|
|
8193
|
+
botId: {
|
|
8194
|
+
type: "string";
|
|
8195
|
+
description: string;
|
|
8196
|
+
in: "path";
|
|
8197
|
+
};
|
|
8198
|
+
};
|
|
8199
|
+
requestBody: {
|
|
8200
|
+
description: string;
|
|
8201
|
+
schema: {
|
|
8202
|
+
type: "object";
|
|
8203
|
+
properties: {
|
|
8204
|
+
setting: {
|
|
8205
|
+
type: "string";
|
|
8206
|
+
enum: string[];
|
|
8207
|
+
description: string;
|
|
8208
|
+
};
|
|
8209
|
+
modifiedUsers: {
|
|
8210
|
+
type: "array";
|
|
8211
|
+
items: {
|
|
8212
|
+
type: "object";
|
|
8213
|
+
additionalProperties: {
|
|
8214
|
+
type: "boolean";
|
|
8215
|
+
description: string;
|
|
8216
|
+
};
|
|
8217
|
+
};
|
|
8218
|
+
};
|
|
8219
|
+
};
|
|
8220
|
+
required: string[];
|
|
8221
|
+
title: string;
|
|
8222
|
+
additionalProperties: false;
|
|
8223
|
+
};
|
|
8224
|
+
};
|
|
8225
|
+
response: {
|
|
8226
|
+
description: string;
|
|
8227
|
+
schema: {
|
|
8228
|
+
type: "object";
|
|
8229
|
+
title: string;
|
|
8230
|
+
additionalProperties: false;
|
|
8231
|
+
};
|
|
8232
|
+
};
|
|
8233
|
+
};
|
|
8136
8234
|
listWorkspaceInvoices: {
|
|
8137
8235
|
name: string;
|
|
8138
8236
|
description: string;
|
|
@@ -15446,6 +15544,11 @@ export declare const state: {
|
|
|
15446
15544
|
type: "boolean";
|
|
15447
15545
|
description: string;
|
|
15448
15546
|
};
|
|
15547
|
+
withContext: {
|
|
15548
|
+
in: "query";
|
|
15549
|
+
type: "boolean";
|
|
15550
|
+
description: string;
|
|
15551
|
+
};
|
|
15449
15552
|
};
|
|
15450
15553
|
response: {
|
|
15451
15554
|
description: string;
|
|
@@ -15536,6 +15639,7 @@ export declare const state: {
|
|
|
15536
15639
|
id: {
|
|
15537
15640
|
type: "string";
|
|
15538
15641
|
format: string;
|
|
15642
|
+
description: string;
|
|
15539
15643
|
};
|
|
15540
15644
|
text: {
|
|
15541
15645
|
type: "string";
|
|
@@ -15552,6 +15656,7 @@ export declare const state: {
|
|
|
15552
15656
|
};
|
|
15553
15657
|
required: string[];
|
|
15554
15658
|
};
|
|
15659
|
+
description: string;
|
|
15555
15660
|
};
|
|
15556
15661
|
};
|
|
15557
15662
|
required: string[];
|
|
@@ -17156,6 +17261,7 @@ export declare const state: {
|
|
|
17156
17261
|
deployBotVersionBody: true;
|
|
17157
17262
|
createIntegrationShareableIdBody: true;
|
|
17158
17263
|
createBotApiKeyBody: true;
|
|
17264
|
+
updateBotAllowlistBody: true;
|
|
17159
17265
|
chargeWorkspaceUnpaidInvoicesBody: true;
|
|
17160
17266
|
createWorkspaceBody: true;
|
|
17161
17267
|
updateWorkspaceBody: true;
|
|
@@ -17286,6 +17392,8 @@ export declare const state: {
|
|
|
17286
17392
|
listBotApiKeysResponse: true;
|
|
17287
17393
|
createBotApiKeyResponse: true;
|
|
17288
17394
|
deleteBotApiKeyResponse: true;
|
|
17395
|
+
getBotAllowlistResponse: true;
|
|
17396
|
+
updateBotAllowlistResponse: true;
|
|
17289
17397
|
listWorkspaceInvoicesResponse: true;
|
|
17290
17398
|
getUpcomingInvoiceResponse: true;
|
|
17291
17399
|
chargeWorkspaceUnpaidInvoicesResponse: true;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sections":[{"description":"","title":"User","name":"user","operations":[],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":[],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":[],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":[],"schema":"Message"},{"description":"","title":"State","name":"state","operations":[],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration","listPublicPlugins","getPublicPluginById","getDereferencedPublicPluginById","getPublicPlugin","getPublicPluginCode","listPublicInterfaces","getPublicInterfaceById","getPublicInterface"]},{"description":"","title":"Action","name":"action","operations":[]},{"description":"","title":"Task","name":"task","operations":[],"schema":"Task"},{"description":"","title":"Workflow","name":"workflow","operations":[],"schema":"Workflow"},{"description":"","title":"Tag","name":"tag","operations":[]},{"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"],"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":"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"},{"title":"Tables","description":"Manage and interact with table structures, including creation, updates, and querying of tables and their rows.","name":"tables","operations":[],"schema":"Table"},{"title":"Files","description":"The Files API allows you to create, manage, and index files that can be used by your bots and integrations. Files can be in any text or binary format, and documents (such as PDF, Microsoft Word, HTML, Markdown, etc.) can be indexed to be used for semantic search in RAG (Retrieval Augmented Generation) implementations. Files are private by default but can be made publicly accessible through a permanent URL that's unique for each file.","name":"files","operations":[],"schema":"File"}],"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":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."}]}
|
|
1
|
+
{"sections":[{"description":"","title":"User","name":"user","operations":[],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":[],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":[],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":[],"schema":"Message"},{"description":"","title":"State","name":"state","operations":[],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration","listPublicPlugins","getPublicPluginById","getDereferencedPublicPluginById","getPublicPlugin","getPublicPluginCode","listPublicInterfaces","getPublicInterfaceById","getPublicInterface"]},{"description":"","title":"Action","name":"action","operations":[]},{"description":"","title":"Task","name":"task","operations":[],"schema":"Task"},{"description":"","title":"Workflow","name":"workflow","operations":[],"schema":"Workflow"},{"description":"","title":"Tag","name":"tag","operations":[]},{"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":"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"},{"title":"Tables","description":"Manage and interact with table structures, including creation, updates, and querying of tables and their rows.","name":"tables","operations":[],"schema":"Table"},{"title":"Files","description":"The Files API allows you to create, manage, and index files that can be used by your bots and integrations. Files can be in any text or binary format, and documents (such as PDF, Microsoft Word, HTML, Markdown, etc.) can be indexed to be used for semantic search in RAG (Retrieval Augmented Generation) implementations. Files are private by default but can be made publicly accessible through a permanent URL that's unique for each file.","name":"files","operations":[],"schema":"File"}],"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":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."}]}
|