@botpress/api 0.18.2 → 0.18.4
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 +434 -177
- package/dist/src/gen/state.d.ts +148 -0
- package/package.json +2 -2
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +164 -2
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -1810,6 +1810,74 @@ export declare const state: {
|
|
|
1810
1810
|
email: {
|
|
1811
1811
|
type: "string";
|
|
1812
1812
|
};
|
|
1813
|
+
displayName: {
|
|
1814
|
+
type: "string";
|
|
1815
|
+
};
|
|
1816
|
+
profilePicture: {
|
|
1817
|
+
type: "string";
|
|
1818
|
+
};
|
|
1819
|
+
createdAt: {
|
|
1820
|
+
type: "string";
|
|
1821
|
+
format: string;
|
|
1822
|
+
description: string;
|
|
1823
|
+
};
|
|
1824
|
+
};
|
|
1825
|
+
required: string[];
|
|
1826
|
+
additionalProperties: false;
|
|
1827
|
+
};
|
|
1828
|
+
};
|
|
1829
|
+
required: string[];
|
|
1830
|
+
title: string;
|
|
1831
|
+
additionalProperties: false;
|
|
1832
|
+
};
|
|
1833
|
+
};
|
|
1834
|
+
parameters: {};
|
|
1835
|
+
};
|
|
1836
|
+
updateAccount: {
|
|
1837
|
+
name: string;
|
|
1838
|
+
description: string;
|
|
1839
|
+
method: "put";
|
|
1840
|
+
path: string;
|
|
1841
|
+
section: "account";
|
|
1842
|
+
disableDefaultParameters: {
|
|
1843
|
+
"x-workspace-id": boolean;
|
|
1844
|
+
};
|
|
1845
|
+
requestBody: {
|
|
1846
|
+
description: string;
|
|
1847
|
+
schema: {
|
|
1848
|
+
type: "object";
|
|
1849
|
+
properties: {
|
|
1850
|
+
displayName: {
|
|
1851
|
+
type: "string";
|
|
1852
|
+
};
|
|
1853
|
+
profilePicture: {
|
|
1854
|
+
type: "string";
|
|
1855
|
+
};
|
|
1856
|
+
};
|
|
1857
|
+
title: string;
|
|
1858
|
+
additionalProperties: false;
|
|
1859
|
+
};
|
|
1860
|
+
};
|
|
1861
|
+
response: {
|
|
1862
|
+
description: string;
|
|
1863
|
+
schema: {
|
|
1864
|
+
type: "object";
|
|
1865
|
+
properties: {
|
|
1866
|
+
account: {
|
|
1867
|
+
type: "object";
|
|
1868
|
+
properties: {
|
|
1869
|
+
id: {
|
|
1870
|
+
type: "string";
|
|
1871
|
+
};
|
|
1872
|
+
email: {
|
|
1873
|
+
type: "string";
|
|
1874
|
+
};
|
|
1875
|
+
displayName: {
|
|
1876
|
+
type: "string";
|
|
1877
|
+
};
|
|
1878
|
+
profilePicture: {
|
|
1879
|
+
type: "string";
|
|
1880
|
+
};
|
|
1813
1881
|
createdAt: {
|
|
1814
1882
|
type: "string";
|
|
1815
1883
|
format: string;
|
|
@@ -3694,6 +3762,73 @@ export declare const state: {
|
|
|
3694
3762
|
};
|
|
3695
3763
|
parameters: {};
|
|
3696
3764
|
};
|
|
3765
|
+
getPublicWorkspace: {
|
|
3766
|
+
name: string;
|
|
3767
|
+
description: string;
|
|
3768
|
+
section: "workspace";
|
|
3769
|
+
method: "get";
|
|
3770
|
+
path: string;
|
|
3771
|
+
disableDefaultParameters: {
|
|
3772
|
+
"x-workspace-id": boolean;
|
|
3773
|
+
};
|
|
3774
|
+
parameters: {
|
|
3775
|
+
id: {
|
|
3776
|
+
type: "string";
|
|
3777
|
+
description: string;
|
|
3778
|
+
in: "path";
|
|
3779
|
+
};
|
|
3780
|
+
};
|
|
3781
|
+
response: {
|
|
3782
|
+
description: string;
|
|
3783
|
+
schema: {
|
|
3784
|
+
type: "object";
|
|
3785
|
+
properties: {
|
|
3786
|
+
id: {
|
|
3787
|
+
type: "string";
|
|
3788
|
+
};
|
|
3789
|
+
name: {
|
|
3790
|
+
type: "string";
|
|
3791
|
+
};
|
|
3792
|
+
createdAt: {
|
|
3793
|
+
type: "string";
|
|
3794
|
+
};
|
|
3795
|
+
updatedAt: {
|
|
3796
|
+
type: "string";
|
|
3797
|
+
};
|
|
3798
|
+
about: {
|
|
3799
|
+
default: string;
|
|
3800
|
+
type: "string";
|
|
3801
|
+
};
|
|
3802
|
+
profilePicture: {
|
|
3803
|
+
default: string;
|
|
3804
|
+
type: "string";
|
|
3805
|
+
};
|
|
3806
|
+
contactEmail: {
|
|
3807
|
+
default: string;
|
|
3808
|
+
type: "string";
|
|
3809
|
+
};
|
|
3810
|
+
website: {
|
|
3811
|
+
default: string;
|
|
3812
|
+
type: "string";
|
|
3813
|
+
};
|
|
3814
|
+
socialAccounts: {
|
|
3815
|
+
default: never[];
|
|
3816
|
+
type: "array";
|
|
3817
|
+
items: {
|
|
3818
|
+
type: "string";
|
|
3819
|
+
};
|
|
3820
|
+
};
|
|
3821
|
+
handle: {
|
|
3822
|
+
default: string;
|
|
3823
|
+
type: "string";
|
|
3824
|
+
};
|
|
3825
|
+
};
|
|
3826
|
+
required: string[];
|
|
3827
|
+
title: string;
|
|
3828
|
+
additionalProperties: false;
|
|
3829
|
+
};
|
|
3830
|
+
};
|
|
3831
|
+
};
|
|
3697
3832
|
getWorkspace: {
|
|
3698
3833
|
name: string;
|
|
3699
3834
|
description: string;
|
|
@@ -4536,6 +4671,10 @@ export declare const state: {
|
|
|
4536
4671
|
type: "string";
|
|
4537
4672
|
nullable: true;
|
|
4538
4673
|
};
|
|
4674
|
+
value: {
|
|
4675
|
+
type: "string";
|
|
4676
|
+
nullable: true;
|
|
4677
|
+
};
|
|
4539
4678
|
action: {
|
|
4540
4679
|
type: "string";
|
|
4541
4680
|
enum: string[];
|
|
@@ -6890,6 +7029,7 @@ export declare const state: {
|
|
|
6890
7029
|
createTaskBody: true;
|
|
6891
7030
|
updateTaskBody: true;
|
|
6892
7031
|
runVrlBody: true;
|
|
7032
|
+
updateAccountBody: true;
|
|
6893
7033
|
createPersonalAccessTokenBody: true;
|
|
6894
7034
|
setAccountPreferenceBody: true;
|
|
6895
7035
|
createBotBody: true;
|
|
@@ -6956,6 +7096,7 @@ export declare const state: {
|
|
|
6956
7096
|
listTasksResponse: true;
|
|
6957
7097
|
runVrlResponse: true;
|
|
6958
7098
|
getAccountResponse: true;
|
|
7099
|
+
updateAccountResponse: true;
|
|
6959
7100
|
listPersonalAccessTokensResponse: true;
|
|
6960
7101
|
createPersonalAccessTokenResponse: true;
|
|
6961
7102
|
deletePersonalAccessTokenResponse: true;
|
|
@@ -6981,6 +7122,7 @@ export declare const state: {
|
|
|
6981
7122
|
listWorkspaceInvoicesResponse: true;
|
|
6982
7123
|
chargeWorkspaceUnpaidInvoicesResponse: true;
|
|
6983
7124
|
createWorkspaceResponse: true;
|
|
7125
|
+
getPublicWorkspaceResponse: true;
|
|
6984
7126
|
getWorkspaceResponse: true;
|
|
6985
7127
|
listWorkspaceUsagesResponse: true;
|
|
6986
7128
|
breakDownWorkspaceUsageByBotResponse: true;
|
|
@@ -7922,6 +8064,12 @@ export declare const state: {
|
|
|
7922
8064
|
email: {
|
|
7923
8065
|
type: "string";
|
|
7924
8066
|
};
|
|
8067
|
+
displayName: {
|
|
8068
|
+
type: "string";
|
|
8069
|
+
};
|
|
8070
|
+
profilePicture: {
|
|
8071
|
+
type: "string";
|
|
8072
|
+
};
|
|
7925
8073
|
createdAt: {
|
|
7926
8074
|
type: "string";
|
|
7927
8075
|
format: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/api",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"zod": "^3.22.4"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@bpinternal/opapi": "0.7.
|
|
26
|
+
"@bpinternal/opapi": "0.7.10"
|
|
27
27
|
}
|
|
28
28
|
}
|
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":"File","name":"file","operations":["createFile","getFile","downloadFile","deleteFile","listFiles"],"schema":"File"},{"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","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["getWorkspaceBillingDetails","setWorkspacePaymentMethod","listWorkspaceInvoices","chargeWorkspaceUnpaidInvoices","createWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","changeWorkspacePlan","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage"],"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","createTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"}],"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":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."}]}
|
|
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":"File","name":"file","operations":["createFile","getFile","downloadFile","deleteFile","listFiles"],"schema":"File"},{"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","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["getWorkspaceBillingDetails","setWorkspacePaymentMethod","listWorkspaceInvoices","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","changeWorkspacePlan","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","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"],"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","createTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"}],"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":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."}]}
|