@botpress/api 0.45.2 → 0.46.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/dist/index.js +430 -152
- package/dist/src/gen/state.d.ts +38 -78
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +54 -101
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -2703,6 +2703,18 @@ export declare const state: {
|
|
|
2703
2703
|
};
|
|
2704
2704
|
required: string[];
|
|
2705
2705
|
};
|
|
2706
|
+
meta: {
|
|
2707
|
+
type: "object";
|
|
2708
|
+
properties: {
|
|
2709
|
+
installs: {
|
|
2710
|
+
type: "number";
|
|
2711
|
+
};
|
|
2712
|
+
views: {
|
|
2713
|
+
type: "number";
|
|
2714
|
+
};
|
|
2715
|
+
};
|
|
2716
|
+
required: string[];
|
|
2717
|
+
};
|
|
2706
2718
|
};
|
|
2707
2719
|
required: string[];
|
|
2708
2720
|
};
|
|
@@ -3286,6 +3298,19 @@ export declare const state: {
|
|
|
3286
3298
|
required: string[];
|
|
3287
3299
|
additionalProperties: false;
|
|
3288
3300
|
};
|
|
3301
|
+
meta: {
|
|
3302
|
+
type: "object";
|
|
3303
|
+
properties: {
|
|
3304
|
+
installs: {
|
|
3305
|
+
type: "number";
|
|
3306
|
+
};
|
|
3307
|
+
views: {
|
|
3308
|
+
type: "number";
|
|
3309
|
+
};
|
|
3310
|
+
};
|
|
3311
|
+
required: string[];
|
|
3312
|
+
additionalProperties: false;
|
|
3313
|
+
};
|
|
3289
3314
|
};
|
|
3290
3315
|
required: string[];
|
|
3291
3316
|
additionalProperties: false;
|
|
@@ -3864,6 +3889,19 @@ export declare const state: {
|
|
|
3864
3889
|
required: string[];
|
|
3865
3890
|
additionalProperties: false;
|
|
3866
3891
|
};
|
|
3892
|
+
meta: {
|
|
3893
|
+
type: "object";
|
|
3894
|
+
properties: {
|
|
3895
|
+
installs: {
|
|
3896
|
+
type: "number";
|
|
3897
|
+
};
|
|
3898
|
+
views: {
|
|
3899
|
+
type: "number";
|
|
3900
|
+
};
|
|
3901
|
+
};
|
|
3902
|
+
required: string[];
|
|
3903
|
+
additionalProperties: false;
|
|
3904
|
+
};
|
|
3867
3905
|
};
|
|
3868
3906
|
required: string[];
|
|
3869
3907
|
additionalProperties: false;
|
|
@@ -5404,82 +5442,6 @@ export declare const state: {
|
|
|
5404
5442
|
};
|
|
5405
5443
|
};
|
|
5406
5444
|
};
|
|
5407
|
-
setWorkspacePaymentMethod: {
|
|
5408
|
-
name: string;
|
|
5409
|
-
description: string;
|
|
5410
|
-
method: "put";
|
|
5411
|
-
path: string;
|
|
5412
|
-
disableDefaultParameters: {
|
|
5413
|
-
"x-workspace-id": boolean;
|
|
5414
|
-
};
|
|
5415
|
-
parameters: {
|
|
5416
|
-
id: {
|
|
5417
|
-
type: "string";
|
|
5418
|
-
description: string;
|
|
5419
|
-
in: "path";
|
|
5420
|
-
};
|
|
5421
|
-
};
|
|
5422
|
-
section: "workspace";
|
|
5423
|
-
requestBody: {
|
|
5424
|
-
description: string;
|
|
5425
|
-
schema: {
|
|
5426
|
-
type: "object";
|
|
5427
|
-
properties: {
|
|
5428
|
-
stripePaymentMethodId: {
|
|
5429
|
-
type: "string";
|
|
5430
|
-
description: string;
|
|
5431
|
-
};
|
|
5432
|
-
};
|
|
5433
|
-
required: string[];
|
|
5434
|
-
title: string;
|
|
5435
|
-
additionalProperties: false;
|
|
5436
|
-
};
|
|
5437
|
-
};
|
|
5438
|
-
response: {
|
|
5439
|
-
description: string;
|
|
5440
|
-
schema: {
|
|
5441
|
-
type: "object";
|
|
5442
|
-
properties: {
|
|
5443
|
-
stripePaymentMethodId: {
|
|
5444
|
-
type: "string";
|
|
5445
|
-
};
|
|
5446
|
-
paymentMethod: {
|
|
5447
|
-
type: "object";
|
|
5448
|
-
properties: {
|
|
5449
|
-
type: {
|
|
5450
|
-
type: "string";
|
|
5451
|
-
};
|
|
5452
|
-
lastDigits: {
|
|
5453
|
-
type: "string";
|
|
5454
|
-
};
|
|
5455
|
-
};
|
|
5456
|
-
required: string[];
|
|
5457
|
-
nullable: true;
|
|
5458
|
-
additionalProperties: false;
|
|
5459
|
-
};
|
|
5460
|
-
status: {
|
|
5461
|
-
type: "string";
|
|
5462
|
-
enum: string[];
|
|
5463
|
-
};
|
|
5464
|
-
nextAction: {
|
|
5465
|
-
type: "object";
|
|
5466
|
-
properties: {
|
|
5467
|
-
redirectToUrl: {
|
|
5468
|
-
type: "string";
|
|
5469
|
-
format: string;
|
|
5470
|
-
};
|
|
5471
|
-
};
|
|
5472
|
-
required: string[];
|
|
5473
|
-
description: string;
|
|
5474
|
-
additionalProperties: false;
|
|
5475
|
-
};
|
|
5476
|
-
};
|
|
5477
|
-
required: string[];
|
|
5478
|
-
title: string;
|
|
5479
|
-
additionalProperties: false;
|
|
5480
|
-
};
|
|
5481
|
-
};
|
|
5482
|
-
};
|
|
5483
5445
|
listWorkspaceInvoices: {
|
|
5484
5446
|
name: string;
|
|
5485
5447
|
description: string;
|
|
@@ -10928,7 +10890,6 @@ export declare const state: {
|
|
|
10928
10890
|
transferBotBody: true;
|
|
10929
10891
|
createBotVersionBody: true;
|
|
10930
10892
|
deployBotVersionBody: true;
|
|
10931
|
-
setWorkspacePaymentMethodBody: true;
|
|
10932
10893
|
chargeWorkspaceUnpaidInvoicesBody: true;
|
|
10933
10894
|
createWorkspaceBody: true;
|
|
10934
10895
|
updateWorkspaceBody: true;
|
|
@@ -11029,7 +10990,6 @@ export declare const state: {
|
|
|
11029
10990
|
getBotVersionResponse: true;
|
|
11030
10991
|
createBotVersionResponse: true;
|
|
11031
10992
|
deployBotVersionResponse: true;
|
|
11032
|
-
setWorkspacePaymentMethodResponse: true;
|
|
11033
10993
|
listWorkspaceInvoicesResponse: true;
|
|
11034
10994
|
getUpcomingInvoiceResponse: true;
|
|
11035
10995
|
chargeWorkspaceUnpaidInvoicesResponse: true;
|
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":["setStateExpiry","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"},{"description":"","title":"Workflow","name":"workflow","operations":["createWorkflow","getWorkflow","updateWorkflow","deleteWorkflow","listWorkflows","getOrCreateWorkflow"],"schema":"Workflow"},{"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":["
|
|
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":["setStateExpiry","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"},{"description":"","title":"Workflow","name":"workflow","operations":["createWorkflow","getWorkflow","updateWorkflow","deleteWorkflow","listWorkflows","getOrCreateWorkflow"],"schema":"Workflow"},{"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":["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."}]}
|