@botpress/api 0.29.0 → 0.29.1
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 +107 -1
- package/dist/src/gen/state.d.ts +85 -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 +107 -1
package/dist/index.js
CHANGED
|
@@ -269508,6 +269508,110 @@ var state = {
|
|
|
269508
269508
|
}
|
|
269509
269509
|
}
|
|
269510
269510
|
},
|
|
269511
|
+
"getBotIssue": {
|
|
269512
|
+
"name": "getBotIssue",
|
|
269513
|
+
"description": "Get Bot Issue",
|
|
269514
|
+
"method": "get",
|
|
269515
|
+
"path": "/v1/admin/bots/{id}/issues/{issueId}",
|
|
269516
|
+
"section": "bot",
|
|
269517
|
+
"parameters": {
|
|
269518
|
+
"id": {
|
|
269519
|
+
"type": "string",
|
|
269520
|
+
"description": "Bot ID",
|
|
269521
|
+
"in": "path"
|
|
269522
|
+
},
|
|
269523
|
+
"issueId": {
|
|
269524
|
+
"in": "path",
|
|
269525
|
+
"description": "Issue ID",
|
|
269526
|
+
"type": "string"
|
|
269527
|
+
}
|
|
269528
|
+
},
|
|
269529
|
+
"response": {
|
|
269530
|
+
"description": "Success",
|
|
269531
|
+
"schema": {
|
|
269532
|
+
"type": "object",
|
|
269533
|
+
"properties": {
|
|
269534
|
+
"issue": {
|
|
269535
|
+
"type": "object",
|
|
269536
|
+
"properties": {
|
|
269537
|
+
"id": {
|
|
269538
|
+
"type": "string"
|
|
269539
|
+
},
|
|
269540
|
+
"code": {
|
|
269541
|
+
"type": "string"
|
|
269542
|
+
},
|
|
269543
|
+
"createdAt": {
|
|
269544
|
+
"type": "string",
|
|
269545
|
+
"format": "date-time"
|
|
269546
|
+
},
|
|
269547
|
+
"lastSeenAt": {
|
|
269548
|
+
"type": "string",
|
|
269549
|
+
"format": "date-time"
|
|
269550
|
+
},
|
|
269551
|
+
"title": {
|
|
269552
|
+
"type": "string"
|
|
269553
|
+
},
|
|
269554
|
+
"description": {
|
|
269555
|
+
"type": "string"
|
|
269556
|
+
},
|
|
269557
|
+
"groupedData": {
|
|
269558
|
+
"type": "object",
|
|
269559
|
+
"additionalProperties": {
|
|
269560
|
+
"type": "object",
|
|
269561
|
+
"properties": {
|
|
269562
|
+
"raw": {
|
|
269563
|
+
"type": "string"
|
|
269564
|
+
},
|
|
269565
|
+
"pretty": {
|
|
269566
|
+
"type": "string"
|
|
269567
|
+
}
|
|
269568
|
+
},
|
|
269569
|
+
"required": [
|
|
269570
|
+
"raw"
|
|
269571
|
+
],
|
|
269572
|
+
"additionalProperties": false
|
|
269573
|
+
}
|
|
269574
|
+
},
|
|
269575
|
+
"eventsCount": {
|
|
269576
|
+
"type": "number"
|
|
269577
|
+
},
|
|
269578
|
+
"category": {
|
|
269579
|
+
"type": "string",
|
|
269580
|
+
"enum": [
|
|
269581
|
+
"user_code",
|
|
269582
|
+
"limits",
|
|
269583
|
+
"configuration",
|
|
269584
|
+
"other"
|
|
269585
|
+
]
|
|
269586
|
+
},
|
|
269587
|
+
"resolutionLink": {
|
|
269588
|
+
"type": "string",
|
|
269589
|
+
"nullable": true
|
|
269590
|
+
}
|
|
269591
|
+
},
|
|
269592
|
+
"required": [
|
|
269593
|
+
"id",
|
|
269594
|
+
"code",
|
|
269595
|
+
"createdAt",
|
|
269596
|
+
"lastSeenAt",
|
|
269597
|
+
"title",
|
|
269598
|
+
"description",
|
|
269599
|
+
"groupedData",
|
|
269600
|
+
"eventsCount",
|
|
269601
|
+
"category",
|
|
269602
|
+
"resolutionLink"
|
|
269603
|
+
],
|
|
269604
|
+
"additionalProperties": false
|
|
269605
|
+
}
|
|
269606
|
+
},
|
|
269607
|
+
"required": [
|
|
269608
|
+
"issue"
|
|
269609
|
+
],
|
|
269610
|
+
"title": "getBotIssueResponse",
|
|
269611
|
+
"additionalProperties": false
|
|
269612
|
+
}
|
|
269613
|
+
}
|
|
269614
|
+
},
|
|
269511
269615
|
"listBotIssues": {
|
|
269512
269616
|
"name": "listBotIssues",
|
|
269513
269617
|
"description": "List Bot Issues",
|
|
@@ -274589,7 +274693,7 @@ var state = {
|
|
|
274589
274693
|
"title": "Botpress API",
|
|
274590
274694
|
"description": "API for Botpress Cloud",
|
|
274591
274695
|
"server": "https://api.botpress.cloud",
|
|
274592
|
-
"version": "0.29.
|
|
274696
|
+
"version": "0.29.1",
|
|
274593
274697
|
"prefix": "v1"
|
|
274594
274698
|
},
|
|
274595
274699
|
"errors": [
|
|
@@ -274821,6 +274925,7 @@ var state = {
|
|
|
274821
274925
|
"getBotLogsResponse": true,
|
|
274822
274926
|
"getBotWebchatResponse": true,
|
|
274823
274927
|
"getBotAnalyticsResponse": true,
|
|
274928
|
+
"getBotIssueResponse": true,
|
|
274824
274929
|
"listBotIssuesResponse": true,
|
|
274825
274930
|
"deleteBotIssueResponse": true,
|
|
274826
274931
|
"listBotIssueEventsResponse": true,
|
|
@@ -277258,6 +277363,7 @@ var state = {
|
|
|
277258
277363
|
"getBotLogs",
|
|
277259
277364
|
"getBotWebchat",
|
|
277260
277365
|
"getBotAnalytics",
|
|
277366
|
+
"getBotIssue",
|
|
277261
277367
|
"listBotIssues",
|
|
277262
277368
|
"deleteBotIssue",
|
|
277263
277369
|
"listBotIssueEvents"
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -4121,6 +4121,90 @@ export declare const state: {
|
|
|
4121
4121
|
};
|
|
4122
4122
|
};
|
|
4123
4123
|
};
|
|
4124
|
+
getBotIssue: {
|
|
4125
|
+
name: string;
|
|
4126
|
+
description: string;
|
|
4127
|
+
method: "get";
|
|
4128
|
+
path: string;
|
|
4129
|
+
section: "bot";
|
|
4130
|
+
parameters: {
|
|
4131
|
+
id: {
|
|
4132
|
+
type: "string";
|
|
4133
|
+
description: string;
|
|
4134
|
+
in: "path";
|
|
4135
|
+
};
|
|
4136
|
+
issueId: {
|
|
4137
|
+
in: "path";
|
|
4138
|
+
description: string;
|
|
4139
|
+
type: "string";
|
|
4140
|
+
};
|
|
4141
|
+
};
|
|
4142
|
+
response: {
|
|
4143
|
+
description: string;
|
|
4144
|
+
schema: {
|
|
4145
|
+
type: "object";
|
|
4146
|
+
properties: {
|
|
4147
|
+
issue: {
|
|
4148
|
+
type: "object";
|
|
4149
|
+
properties: {
|
|
4150
|
+
id: {
|
|
4151
|
+
type: "string";
|
|
4152
|
+
};
|
|
4153
|
+
code: {
|
|
4154
|
+
type: "string";
|
|
4155
|
+
};
|
|
4156
|
+
createdAt: {
|
|
4157
|
+
type: "string";
|
|
4158
|
+
format: string;
|
|
4159
|
+
};
|
|
4160
|
+
lastSeenAt: {
|
|
4161
|
+
type: "string";
|
|
4162
|
+
format: string;
|
|
4163
|
+
};
|
|
4164
|
+
title: {
|
|
4165
|
+
type: "string";
|
|
4166
|
+
};
|
|
4167
|
+
description: {
|
|
4168
|
+
type: "string";
|
|
4169
|
+
};
|
|
4170
|
+
groupedData: {
|
|
4171
|
+
type: "object";
|
|
4172
|
+
additionalProperties: {
|
|
4173
|
+
type: "object";
|
|
4174
|
+
properties: {
|
|
4175
|
+
raw: {
|
|
4176
|
+
type: "string";
|
|
4177
|
+
};
|
|
4178
|
+
pretty: {
|
|
4179
|
+
type: "string";
|
|
4180
|
+
};
|
|
4181
|
+
};
|
|
4182
|
+
required: string[];
|
|
4183
|
+
additionalProperties: false;
|
|
4184
|
+
};
|
|
4185
|
+
};
|
|
4186
|
+
eventsCount: {
|
|
4187
|
+
type: "number";
|
|
4188
|
+
};
|
|
4189
|
+
category: {
|
|
4190
|
+
type: "string";
|
|
4191
|
+
enum: string[];
|
|
4192
|
+
};
|
|
4193
|
+
resolutionLink: {
|
|
4194
|
+
type: "string";
|
|
4195
|
+
nullable: true;
|
|
4196
|
+
};
|
|
4197
|
+
};
|
|
4198
|
+
required: string[];
|
|
4199
|
+
additionalProperties: false;
|
|
4200
|
+
};
|
|
4201
|
+
};
|
|
4202
|
+
required: string[];
|
|
4203
|
+
title: string;
|
|
4204
|
+
additionalProperties: false;
|
|
4205
|
+
};
|
|
4206
|
+
};
|
|
4207
|
+
};
|
|
4124
4208
|
listBotIssues: {
|
|
4125
4209
|
name: string;
|
|
4126
4210
|
description: string;
|
|
@@ -8677,6 +8761,7 @@ export declare const state: {
|
|
|
8677
8761
|
getBotLogsResponse: true;
|
|
8678
8762
|
getBotWebchatResponse: true;
|
|
8679
8763
|
getBotAnalyticsResponse: true;
|
|
8764
|
+
getBotIssueResponse: true;
|
|
8680
8765
|
listBotIssuesResponse: true;
|
|
8681
8766
|
deleteBotIssueResponse: true;
|
|
8682
8767
|
listBotIssueEventsResponse: 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":"File","name":"file","operations":[]},{"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":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","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"],"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":"Operations related to file management.","name":"files","operations":["createFile","deleteFile","listFiles","getFile","updateFile","searchFiles"],"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":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":"File","name":"file","operations":[]},{"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"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","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"],"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":"Operations related to file management.","name":"files","operations":["createFile","deleteFile","listFiles","getFile","updateFile","searchFiles"],"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":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."}]}
|