@botpress/api 1.31.0 → 1.33.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 +235 -15
- package/dist/src/gen/admin/state.d.ts +89 -0
- package/dist/src/gen/files/state.d.ts +7 -0
- package/dist/src/gen/state.d.ts +96 -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 +104 -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 +1 -1
- package/src/gen/state.ts +116 -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
|
@@ -8141,6 +8141,92 @@ export declare const state: {
|
|
|
8141
8141
|
};
|
|
8142
8142
|
};
|
|
8143
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
|
+
users: {
|
|
8210
|
+
type: "object";
|
|
8211
|
+
additionalProperties: {
|
|
8212
|
+
type: "boolean";
|
|
8213
|
+
description: string;
|
|
8214
|
+
};
|
|
8215
|
+
};
|
|
8216
|
+
};
|
|
8217
|
+
title: string;
|
|
8218
|
+
additionalProperties: false;
|
|
8219
|
+
};
|
|
8220
|
+
};
|
|
8221
|
+
response: {
|
|
8222
|
+
description: string;
|
|
8223
|
+
schema: {
|
|
8224
|
+
type: "object";
|
|
8225
|
+
title: string;
|
|
8226
|
+
additionalProperties: false;
|
|
8227
|
+
};
|
|
8228
|
+
};
|
|
8229
|
+
};
|
|
8144
8230
|
listWorkspaceInvoices: {
|
|
8145
8231
|
name: string;
|
|
8146
8232
|
description: string;
|
|
@@ -15454,6 +15540,11 @@ export declare const state: {
|
|
|
15454
15540
|
type: "boolean";
|
|
15455
15541
|
description: string;
|
|
15456
15542
|
};
|
|
15543
|
+
withContext: {
|
|
15544
|
+
in: "query";
|
|
15545
|
+
type: "boolean";
|
|
15546
|
+
description: string;
|
|
15547
|
+
};
|
|
15457
15548
|
};
|
|
15458
15549
|
response: {
|
|
15459
15550
|
description: string;
|
|
@@ -15544,6 +15635,7 @@ export declare const state: {
|
|
|
15544
15635
|
id: {
|
|
15545
15636
|
type: "string";
|
|
15546
15637
|
format: string;
|
|
15638
|
+
description: string;
|
|
15547
15639
|
};
|
|
15548
15640
|
text: {
|
|
15549
15641
|
type: "string";
|
|
@@ -15560,6 +15652,7 @@ export declare const state: {
|
|
|
15560
15652
|
};
|
|
15561
15653
|
required: string[];
|
|
15562
15654
|
};
|
|
15655
|
+
description: string;
|
|
15563
15656
|
};
|
|
15564
15657
|
};
|
|
15565
15658
|
required: string[];
|
|
@@ -17164,6 +17257,7 @@ export declare const state: {
|
|
|
17164
17257
|
deployBotVersionBody: true;
|
|
17165
17258
|
createIntegrationShareableIdBody: true;
|
|
17166
17259
|
createBotApiKeyBody: true;
|
|
17260
|
+
updateBotAllowlistBody: true;
|
|
17167
17261
|
chargeWorkspaceUnpaidInvoicesBody: true;
|
|
17168
17262
|
createWorkspaceBody: true;
|
|
17169
17263
|
updateWorkspaceBody: true;
|
|
@@ -17294,6 +17388,8 @@ export declare const state: {
|
|
|
17294
17388
|
listBotApiKeysResponse: true;
|
|
17295
17389
|
createBotApiKeyResponse: true;
|
|
17296
17390
|
deleteBotApiKeyResponse: true;
|
|
17391
|
+
getBotAllowlistResponse: true;
|
|
17392
|
+
updateBotAllowlistResponse: true;
|
|
17297
17393
|
listWorkspaceInvoicesResponse: true;
|
|
17298
17394
|
getUpcomingInvoiceResponse: true;
|
|
17299
17395
|
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."}]}
|