@botpress/api 0.38.1 → 0.38.3
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/dist/index.js +47 -2
- package/dist/src/gen/state.d.ts +40 -0
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +47 -2
package/dist/index.js
CHANGED
|
@@ -291201,6 +291201,38 @@ var state = {
|
|
|
291201
291201
|
}
|
|
291202
291202
|
}
|
|
291203
291203
|
},
|
|
291204
|
+
"requestIntegrationVerification": {
|
|
291205
|
+
"name": "requestIntegrationVerification",
|
|
291206
|
+
"description": "Request Integration Verification",
|
|
291207
|
+
"method": "post",
|
|
291208
|
+
"section": "integration",
|
|
291209
|
+
"path": "/v1/admin/integrations/request-verification",
|
|
291210
|
+
"requestBody": {
|
|
291211
|
+
"description": "Integration",
|
|
291212
|
+
"schema": {
|
|
291213
|
+
"type": "object",
|
|
291214
|
+
"properties": {
|
|
291215
|
+
"integrationId": {
|
|
291216
|
+
"type": "string"
|
|
291217
|
+
}
|
|
291218
|
+
},
|
|
291219
|
+
"required": [
|
|
291220
|
+
"integrationId"
|
|
291221
|
+
],
|
|
291222
|
+
"title": "requestIntegrationVerificationBody",
|
|
291223
|
+
"additionalProperties": false
|
|
291224
|
+
}
|
|
291225
|
+
},
|
|
291226
|
+
"response": {
|
|
291227
|
+
"description": "Success",
|
|
291228
|
+
"schema": {
|
|
291229
|
+
"type": "object",
|
|
291230
|
+
"title": "requestIntegrationVerificationResponse",
|
|
291231
|
+
"additionalProperties": false
|
|
291232
|
+
}
|
|
291233
|
+
},
|
|
291234
|
+
"parameters": {}
|
|
291235
|
+
},
|
|
291204
291236
|
"createInterface": {
|
|
291205
291237
|
"name": "createInterface",
|
|
291206
291238
|
"description": "Create Interface",
|
|
@@ -293748,7 +293780,7 @@ var state = {
|
|
|
293748
293780
|
"title": "Botpress API",
|
|
293749
293781
|
"description": "API for Botpress Cloud",
|
|
293750
293782
|
"server": "https://api.botpress.cloud",
|
|
293751
|
-
"version": "0.38.
|
|
293783
|
+
"version": "0.38.3",
|
|
293752
293784
|
"prefix": "v1"
|
|
293753
293785
|
},
|
|
293754
293786
|
"errors": [
|
|
@@ -293914,6 +293946,7 @@ var state = {
|
|
|
293914
293946
|
"createIntegrationApiKeyBody": true,
|
|
293915
293947
|
"createIntegrationBody": true,
|
|
293916
293948
|
"updateIntegrationBody": true,
|
|
293949
|
+
"requestIntegrationVerificationBody": true,
|
|
293917
293950
|
"createInterfaceBody": true,
|
|
293918
293951
|
"updateInterfaceBody": true,
|
|
293919
293952
|
"changeAISpendQuotaBody": true,
|
|
@@ -294030,6 +294063,7 @@ var state = {
|
|
|
294030
294063
|
"getIntegrationLogsResponse": true,
|
|
294031
294064
|
"getIntegrationByNameResponse": true,
|
|
294032
294065
|
"deleteIntegrationResponse": true,
|
|
294066
|
+
"requestIntegrationVerificationResponse": true,
|
|
294033
294067
|
"createInterfaceResponse": true,
|
|
294034
294068
|
"getInterfaceResponse": true,
|
|
294035
294069
|
"getInterfaceByNameResponse": true,
|
|
@@ -296209,6 +296243,7 @@ var state = {
|
|
|
296209
296243
|
"type": "string",
|
|
296210
296244
|
"enum": [
|
|
296211
296245
|
"ai",
|
|
296246
|
+
"code",
|
|
296212
296247
|
"workflow"
|
|
296213
296248
|
]
|
|
296214
296249
|
},
|
|
@@ -296223,6 +296258,10 @@ var state = {
|
|
|
296223
296258
|
"type": "string",
|
|
296224
296259
|
"description": 'Prompt when action is "ai"'
|
|
296225
296260
|
},
|
|
296261
|
+
"code": {
|
|
296262
|
+
"type": "string",
|
|
296263
|
+
"description": 'Code to execute when action is "code"'
|
|
296264
|
+
},
|
|
296226
296265
|
"model": {
|
|
296227
296266
|
"default": "gpt-4o",
|
|
296228
296267
|
"type": "string",
|
|
@@ -296366,6 +296405,7 @@ var state = {
|
|
|
296366
296405
|
"type": "string",
|
|
296367
296406
|
"enum": [
|
|
296368
296407
|
"ai",
|
|
296408
|
+
"code",
|
|
296369
296409
|
"workflow"
|
|
296370
296410
|
]
|
|
296371
296411
|
},
|
|
@@ -296380,6 +296420,10 @@ var state = {
|
|
|
296380
296420
|
"type": "string",
|
|
296381
296421
|
"description": 'Prompt when action is "ai"'
|
|
296382
296422
|
},
|
|
296423
|
+
"code": {
|
|
296424
|
+
"type": "string",
|
|
296425
|
+
"description": 'Code to execute when action is "code"'
|
|
296426
|
+
},
|
|
296383
296427
|
"model": {
|
|
296384
296428
|
"default": "gpt-4o",
|
|
296385
296429
|
"type": "string",
|
|
@@ -296714,7 +296758,8 @@ var state = {
|
|
|
296714
296758
|
"getIntegration",
|
|
296715
296759
|
"getIntegrationLogs",
|
|
296716
296760
|
"getIntegrationByName",
|
|
296717
|
-
"deleteIntegration"
|
|
296761
|
+
"deleteIntegration",
|
|
296762
|
+
"requestIntegrationVerification"
|
|
296718
296763
|
],
|
|
296719
296764
|
"schema": "Integration"
|
|
296720
296765
|
},
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -7566,6 +7566,36 @@ export declare const state: {
|
|
|
7566
7566
|
};
|
|
7567
7567
|
};
|
|
7568
7568
|
};
|
|
7569
|
+
requestIntegrationVerification: {
|
|
7570
|
+
name: string;
|
|
7571
|
+
description: string;
|
|
7572
|
+
method: "post";
|
|
7573
|
+
section: "integration";
|
|
7574
|
+
path: string;
|
|
7575
|
+
requestBody: {
|
|
7576
|
+
description: string;
|
|
7577
|
+
schema: {
|
|
7578
|
+
type: "object";
|
|
7579
|
+
properties: {
|
|
7580
|
+
integrationId: {
|
|
7581
|
+
type: "string";
|
|
7582
|
+
};
|
|
7583
|
+
};
|
|
7584
|
+
required: string[];
|
|
7585
|
+
title: string;
|
|
7586
|
+
additionalProperties: false;
|
|
7587
|
+
};
|
|
7588
|
+
};
|
|
7589
|
+
response: {
|
|
7590
|
+
description: string;
|
|
7591
|
+
schema: {
|
|
7592
|
+
type: "object";
|
|
7593
|
+
title: string;
|
|
7594
|
+
additionalProperties: false;
|
|
7595
|
+
};
|
|
7596
|
+
};
|
|
7597
|
+
parameters: {};
|
|
7598
|
+
};
|
|
7569
7599
|
createInterface: {
|
|
7570
7600
|
name: string;
|
|
7571
7601
|
description: string;
|
|
@@ -9903,6 +9933,7 @@ export declare const state: {
|
|
|
9903
9933
|
createIntegrationApiKeyBody: true;
|
|
9904
9934
|
createIntegrationBody: true;
|
|
9905
9935
|
updateIntegrationBody: true;
|
|
9936
|
+
requestIntegrationVerificationBody: true;
|
|
9906
9937
|
createInterfaceBody: true;
|
|
9907
9938
|
updateInterfaceBody: true;
|
|
9908
9939
|
changeAISpendQuotaBody: true;
|
|
@@ -10019,6 +10050,7 @@ export declare const state: {
|
|
|
10019
10050
|
getIntegrationLogsResponse: true;
|
|
10020
10051
|
getIntegrationByNameResponse: true;
|
|
10021
10052
|
deleteIntegrationResponse: true;
|
|
10053
|
+
requestIntegrationVerificationResponse: true;
|
|
10022
10054
|
createInterfaceResponse: true;
|
|
10023
10055
|
getInterfaceResponse: true;
|
|
10024
10056
|
getInterfaceByNameResponse: true;
|
|
@@ -11838,6 +11870,10 @@ export declare const state: {
|
|
|
11838
11870
|
type: "string";
|
|
11839
11871
|
description: string;
|
|
11840
11872
|
};
|
|
11873
|
+
code: {
|
|
11874
|
+
type: "string";
|
|
11875
|
+
description: string;
|
|
11876
|
+
};
|
|
11841
11877
|
model: {
|
|
11842
11878
|
default: string;
|
|
11843
11879
|
type: "string";
|
|
@@ -11966,6 +12002,10 @@ export declare const state: {
|
|
|
11966
12002
|
type: "string";
|
|
11967
12003
|
description: string;
|
|
11968
12004
|
};
|
|
12005
|
+
code: {
|
|
12006
|
+
type: "string";
|
|
12007
|
+
description: string;
|
|
12008
|
+
};
|
|
11969
12009
|
model: {
|
|
11970
12010
|
default: string;
|
|
11971
12011
|
type: "string";
|
package/package.json
CHANGED
package/src/gen/metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sections":[{"description":"","title":"User","name":"user","operations":["createUser","getUser","listUsers","getOrCreateUser","updateUser","deleteUser"],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":["createConversation","getConversation","listConversations","getOrCreateConversation","updateConversation","deleteConversation","listParticipants","addParticipant","getParticipant","removeParticipant"],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":["createEvent","getEvent","listEvents"],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":["createMessage","getOrCreateMessage","getMessage","updateMessage","listMessages","deleteMessage"],"schema":"Message"},{"description":"","title":"State","name":"state","operations":["getState","setState","getOrSetState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Task","name":"task","operations":["getTask","createTask","updateTask","deleteTask","listTasks"],"schema":"Task"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents","listBotVersions","getBotVersion","createBotVersion","deployBotVersion"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Interface","description":"","name":"interface","operations":["createInterface","getInterface","getInterfaceByName","updateInterface","deleteInterface","listInterfaces"],"schema":"Interface"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","listPublicWorkspaces","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","getWorkspaceMember","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage","getMultipleUsages"],"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":["listTables","getTable","getOrCreateTable","createTable","duplicateTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"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":["upsertFile","deleteFile","listFiles","getFile","updateFileMetadata","searchFiles","listFilePassages"],"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":["createUser","getUser","listUsers","getOrCreateUser","updateUser","deleteUser"],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":["createConversation","getConversation","listConversations","getOrCreateConversation","updateConversation","deleteConversation","listParticipants","addParticipant","getParticipant","removeParticipant"],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":["createEvent","getEvent","listEvents"],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":["createMessage","getOrCreateMessage","getMessage","updateMessage","listMessages","deleteMessage"],"schema":"Message"},{"description":"","title":"State","name":"state","operations":["getState","setState","getOrSetState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Task","name":"task","operations":["getTask","createTask","updateTask","deleteTask","listTasks"],"schema":"Task"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents","listBotVersions","getBotVersion","createBotVersion","deployBotVersion"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration","requestIntegrationVerification"],"schema":"Integration"},{"title":"Interface","description":"","name":"interface","operations":["createInterface","getInterface","getInterfaceByName","updateInterface","deleteInterface","listInterfaces"],"schema":"Interface"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","listPublicWorkspaces","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","getWorkspaceMember","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage","getMultipleUsages"],"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":["listTables","getTable","getOrCreateTable","createTable","duplicateTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"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":["upsertFile","deleteFile","listFiles","getFile","updateFileMetadata","searchFiles","listFilePassages"],"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."}]}
|