@botpress/api 0.45.3 → 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 +1 -98
- package/dist/src/gen/state.d.ts +0 -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 +1 -98
package/dist/index.js
CHANGED
|
@@ -287878,100 +287878,6 @@ var state = {
|
|
|
287878
287878
|
}
|
|
287879
287879
|
}
|
|
287880
287880
|
},
|
|
287881
|
-
"setWorkspacePaymentMethod": {
|
|
287882
|
-
"name": "setWorkspacePaymentMethod",
|
|
287883
|
-
"description": "Set the Stripe PaymentMethod to use for billing the workspace. To create a PaymentMethod, use the Stripe API or SDK with our Stripe Publishable Key which is listed in this documentation.",
|
|
287884
|
-
"method": "put",
|
|
287885
|
-
"path": "/v1/admin/workspaces/{id}/billing/payment-method",
|
|
287886
|
-
"disableDefaultParameters": {
|
|
287887
|
-
"x-workspace-id": true
|
|
287888
|
-
},
|
|
287889
|
-
"parameters": {
|
|
287890
|
-
"id": {
|
|
287891
|
-
"type": "string",
|
|
287892
|
-
"description": "Workspace ID",
|
|
287893
|
-
"in": "path"
|
|
287894
|
-
}
|
|
287895
|
-
},
|
|
287896
|
-
"section": "workspace",
|
|
287897
|
-
"requestBody": {
|
|
287898
|
-
"description": "",
|
|
287899
|
-
"schema": {
|
|
287900
|
-
"type": "object",
|
|
287901
|
-
"properties": {
|
|
287902
|
-
"stripePaymentMethodId": {
|
|
287903
|
-
"type": "string",
|
|
287904
|
-
"description": "ID of the Stripe PaymentMethod to attach to the workspace."
|
|
287905
|
-
}
|
|
287906
|
-
},
|
|
287907
|
-
"required": [
|
|
287908
|
-
"stripePaymentMethodId"
|
|
287909
|
-
],
|
|
287910
|
-
"title": "setWorkspacePaymentMethodBody",
|
|
287911
|
-
"additionalProperties": false
|
|
287912
|
-
}
|
|
287913
|
-
},
|
|
287914
|
-
"response": {
|
|
287915
|
-
"description": "Success",
|
|
287916
|
-
"schema": {
|
|
287917
|
-
"type": "object",
|
|
287918
|
-
"properties": {
|
|
287919
|
-
"stripePaymentMethodId": {
|
|
287920
|
-
"type": "string"
|
|
287921
|
-
},
|
|
287922
|
-
"paymentMethod": {
|
|
287923
|
-
"type": "object",
|
|
287924
|
-
"properties": {
|
|
287925
|
-
"type": {
|
|
287926
|
-
"type": "string"
|
|
287927
|
-
},
|
|
287928
|
-
"lastDigits": {
|
|
287929
|
-
"type": "string"
|
|
287930
|
-
}
|
|
287931
|
-
},
|
|
287932
|
-
"required": [
|
|
287933
|
-
"type",
|
|
287934
|
-
"lastDigits"
|
|
287935
|
-
],
|
|
287936
|
-
"nullable": true,
|
|
287937
|
-
"additionalProperties": false
|
|
287938
|
-
},
|
|
287939
|
-
"status": {
|
|
287940
|
-
"type": "string",
|
|
287941
|
-
"enum": [
|
|
287942
|
-
"succeeded",
|
|
287943
|
-
"processing",
|
|
287944
|
-
"canceled",
|
|
287945
|
-
"requires_confirmation",
|
|
287946
|
-
"requires_action",
|
|
287947
|
-
"requires_payment_method"
|
|
287948
|
-
]
|
|
287949
|
-
},
|
|
287950
|
-
"nextAction": {
|
|
287951
|
-
"type": "object",
|
|
287952
|
-
"properties": {
|
|
287953
|
-
"redirectToUrl": {
|
|
287954
|
-
"type": "string",
|
|
287955
|
-
"format": "uri"
|
|
287956
|
-
}
|
|
287957
|
-
},
|
|
287958
|
-
"required": [
|
|
287959
|
-
"redirectToUrl"
|
|
287960
|
-
],
|
|
287961
|
-
"description": "If the payment needs to be confirmed, this will contain a URL to redirect the user to so they can complete the verification process to confirm it.",
|
|
287962
|
-
"additionalProperties": false
|
|
287963
|
-
}
|
|
287964
|
-
},
|
|
287965
|
-
"required": [
|
|
287966
|
-
"stripePaymentMethodId",
|
|
287967
|
-
"paymentMethod",
|
|
287968
|
-
"status"
|
|
287969
|
-
],
|
|
287970
|
-
"title": "setWorkspacePaymentMethodResponse",
|
|
287971
|
-
"additionalProperties": false
|
|
287972
|
-
}
|
|
287973
|
-
}
|
|
287974
|
-
},
|
|
287975
287881
|
"listWorkspaceInvoices": {
|
|
287976
287882
|
"name": "listWorkspaceInvoices",
|
|
287977
287883
|
"description": "List invoices billed to workspace",
|
|
@@ -294128,7 +294034,7 @@ var state = {
|
|
|
294128
294034
|
"title": "Botpress API",
|
|
294129
294035
|
"description": "API for Botpress Cloud",
|
|
294130
294036
|
"server": "https://api.botpress.cloud",
|
|
294131
|
-
"version": "0.
|
|
294037
|
+
"version": "0.46.0",
|
|
294132
294038
|
"prefix": "v1"
|
|
294133
294039
|
},
|
|
294134
294040
|
"errors": [
|
|
@@ -294288,7 +294194,6 @@ var state = {
|
|
|
294288
294194
|
"transferBotBody": true,
|
|
294289
294195
|
"createBotVersionBody": true,
|
|
294290
294196
|
"deployBotVersionBody": true,
|
|
294291
|
-
"setWorkspacePaymentMethodBody": true,
|
|
294292
294197
|
"chargeWorkspaceUnpaidInvoicesBody": true,
|
|
294293
294198
|
"createWorkspaceBody": true,
|
|
294294
294199
|
"updateWorkspaceBody": true,
|
|
@@ -294389,7 +294294,6 @@ var state = {
|
|
|
294389
294294
|
"getBotVersionResponse": true,
|
|
294390
294295
|
"createBotVersionResponse": true,
|
|
294391
294296
|
"deployBotVersionResponse": true,
|
|
294392
|
-
"setWorkspacePaymentMethodResponse": true,
|
|
294393
294297
|
"listWorkspaceInvoicesResponse": true,
|
|
294394
294298
|
"getUpcomingInvoiceResponse": true,
|
|
294395
294299
|
"chargeWorkspaceUnpaidInvoicesResponse": true,
|
|
@@ -297497,7 +297401,6 @@ var state = {
|
|
|
297497
297401
|
"description": "",
|
|
297498
297402
|
"name": "workspace",
|
|
297499
297403
|
"operations": [
|
|
297500
|
-
"setWorkspacePaymentMethod",
|
|
297501
297404
|
"listWorkspaceInvoices",
|
|
297502
297405
|
"getUpcomingInvoice",
|
|
297503
297406
|
"chargeWorkspaceUnpaidInvoices",
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -5442,82 +5442,6 @@ export declare const state: {
|
|
|
5442
5442
|
};
|
|
5443
5443
|
};
|
|
5444
5444
|
};
|
|
5445
|
-
setWorkspacePaymentMethod: {
|
|
5446
|
-
name: string;
|
|
5447
|
-
description: string;
|
|
5448
|
-
method: "put";
|
|
5449
|
-
path: string;
|
|
5450
|
-
disableDefaultParameters: {
|
|
5451
|
-
"x-workspace-id": boolean;
|
|
5452
|
-
};
|
|
5453
|
-
parameters: {
|
|
5454
|
-
id: {
|
|
5455
|
-
type: "string";
|
|
5456
|
-
description: string;
|
|
5457
|
-
in: "path";
|
|
5458
|
-
};
|
|
5459
|
-
};
|
|
5460
|
-
section: "workspace";
|
|
5461
|
-
requestBody: {
|
|
5462
|
-
description: string;
|
|
5463
|
-
schema: {
|
|
5464
|
-
type: "object";
|
|
5465
|
-
properties: {
|
|
5466
|
-
stripePaymentMethodId: {
|
|
5467
|
-
type: "string";
|
|
5468
|
-
description: string;
|
|
5469
|
-
};
|
|
5470
|
-
};
|
|
5471
|
-
required: string[];
|
|
5472
|
-
title: string;
|
|
5473
|
-
additionalProperties: false;
|
|
5474
|
-
};
|
|
5475
|
-
};
|
|
5476
|
-
response: {
|
|
5477
|
-
description: string;
|
|
5478
|
-
schema: {
|
|
5479
|
-
type: "object";
|
|
5480
|
-
properties: {
|
|
5481
|
-
stripePaymentMethodId: {
|
|
5482
|
-
type: "string";
|
|
5483
|
-
};
|
|
5484
|
-
paymentMethod: {
|
|
5485
|
-
type: "object";
|
|
5486
|
-
properties: {
|
|
5487
|
-
type: {
|
|
5488
|
-
type: "string";
|
|
5489
|
-
};
|
|
5490
|
-
lastDigits: {
|
|
5491
|
-
type: "string";
|
|
5492
|
-
};
|
|
5493
|
-
};
|
|
5494
|
-
required: string[];
|
|
5495
|
-
nullable: true;
|
|
5496
|
-
additionalProperties: false;
|
|
5497
|
-
};
|
|
5498
|
-
status: {
|
|
5499
|
-
type: "string";
|
|
5500
|
-
enum: string[];
|
|
5501
|
-
};
|
|
5502
|
-
nextAction: {
|
|
5503
|
-
type: "object";
|
|
5504
|
-
properties: {
|
|
5505
|
-
redirectToUrl: {
|
|
5506
|
-
type: "string";
|
|
5507
|
-
format: string;
|
|
5508
|
-
};
|
|
5509
|
-
};
|
|
5510
|
-
required: string[];
|
|
5511
|
-
description: string;
|
|
5512
|
-
additionalProperties: false;
|
|
5513
|
-
};
|
|
5514
|
-
};
|
|
5515
|
-
required: string[];
|
|
5516
|
-
title: string;
|
|
5517
|
-
additionalProperties: false;
|
|
5518
|
-
};
|
|
5519
|
-
};
|
|
5520
|
-
};
|
|
5521
5445
|
listWorkspaceInvoices: {
|
|
5522
5446
|
name: string;
|
|
5523
5447
|
description: string;
|
|
@@ -10966,7 +10890,6 @@ export declare const state: {
|
|
|
10966
10890
|
transferBotBody: true;
|
|
10967
10891
|
createBotVersionBody: true;
|
|
10968
10892
|
deployBotVersionBody: true;
|
|
10969
|
-
setWorkspacePaymentMethodBody: true;
|
|
10970
10893
|
chargeWorkspaceUnpaidInvoicesBody: true;
|
|
10971
10894
|
createWorkspaceBody: true;
|
|
10972
10895
|
updateWorkspaceBody: true;
|
|
@@ -11067,7 +10990,6 @@ export declare const state: {
|
|
|
11067
10990
|
getBotVersionResponse: true;
|
|
11068
10991
|
createBotVersionResponse: true;
|
|
11069
10992
|
deployBotVersionResponse: true;
|
|
11070
|
-
setWorkspacePaymentMethodResponse: true;
|
|
11071
10993
|
listWorkspaceInvoicesResponse: true;
|
|
11072
10994
|
getUpcomingInvoiceResponse: true;
|
|
11073
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."}]}
|