@botpress/api 0.59.1 → 0.61.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 +217 -1
- package/dist/src/gen/state.d.ts +186 -1
- package/dist/src/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +218 -2
package/dist/index.js
CHANGED
|
@@ -283921,6 +283921,74 @@ var state = {
|
|
|
283921
283921
|
},
|
|
283922
283922
|
"parameters": {}
|
|
283923
283923
|
},
|
|
283924
|
+
"listTagValues": {
|
|
283925
|
+
"name": "listTagValues",
|
|
283926
|
+
"description": "Get a bot tag values",
|
|
283927
|
+
"method": "get",
|
|
283928
|
+
"path": "/v1/chat/tags/{key}/values",
|
|
283929
|
+
"section": "tag",
|
|
283930
|
+
"parameters": {
|
|
283931
|
+
"nextToken": {
|
|
283932
|
+
"in": "query",
|
|
283933
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
283934
|
+
"type": "string"
|
|
283935
|
+
},
|
|
283936
|
+
"key": {
|
|
283937
|
+
"in": "path",
|
|
283938
|
+
"type": "string",
|
|
283939
|
+
"description": "Tag key"
|
|
283940
|
+
},
|
|
283941
|
+
"type": {
|
|
283942
|
+
"in": "query",
|
|
283943
|
+
"type": "string",
|
|
283944
|
+
"description": "Tag type",
|
|
283945
|
+
"required": true,
|
|
283946
|
+
"enum": [
|
|
283947
|
+
"user",
|
|
283948
|
+
"conversation",
|
|
283949
|
+
"message"
|
|
283950
|
+
]
|
|
283951
|
+
}
|
|
283952
|
+
},
|
|
283953
|
+
"response": {
|
|
283954
|
+
"description": "Empty response",
|
|
283955
|
+
"schema": {
|
|
283956
|
+
"type": "object",
|
|
283957
|
+
"properties": {
|
|
283958
|
+
"tags": {
|
|
283959
|
+
"type": "array",
|
|
283960
|
+
"items": {
|
|
283961
|
+
"type": "object",
|
|
283962
|
+
"properties": {
|
|
283963
|
+
"value": {
|
|
283964
|
+
"type": "string"
|
|
283965
|
+
}
|
|
283966
|
+
},
|
|
283967
|
+
"required": [
|
|
283968
|
+
"value"
|
|
283969
|
+
]
|
|
283970
|
+
}
|
|
283971
|
+
},
|
|
283972
|
+
"meta": {
|
|
283973
|
+
"type": "object",
|
|
283974
|
+
"properties": {
|
|
283975
|
+
"nextToken": {
|
|
283976
|
+
"type": "string",
|
|
283977
|
+
"description": "The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint."
|
|
283978
|
+
}
|
|
283979
|
+
},
|
|
283980
|
+
"additionalProperties": false
|
|
283981
|
+
}
|
|
283982
|
+
},
|
|
283983
|
+
"required": [
|
|
283984
|
+
"tags",
|
|
283985
|
+
"meta"
|
|
283986
|
+
],
|
|
283987
|
+
"title": "listTagValuesResponse",
|
|
283988
|
+
"additionalProperties": false
|
|
283989
|
+
}
|
|
283990
|
+
}
|
|
283991
|
+
},
|
|
283924
283992
|
"trackAnalytics": {
|
|
283925
283993
|
"name": "trackAnalytics",
|
|
283926
283994
|
"description": "Add an event to the analytics",
|
|
@@ -291886,6 +291954,42 @@ var state = {
|
|
|
291886
291954
|
},
|
|
291887
291955
|
"code": {
|
|
291888
291956
|
"type": "string"
|
|
291957
|
+
},
|
|
291958
|
+
"dependencies": {
|
|
291959
|
+
"type": "object",
|
|
291960
|
+
"properties": {
|
|
291961
|
+
"interfaces": {
|
|
291962
|
+
"type": "object",
|
|
291963
|
+
"additionalProperties": {
|
|
291964
|
+
"type": "object",
|
|
291965
|
+
"properties": {
|
|
291966
|
+
"id": {
|
|
291967
|
+
"type": "string"
|
|
291968
|
+
}
|
|
291969
|
+
},
|
|
291970
|
+
"required": [
|
|
291971
|
+
"id"
|
|
291972
|
+
],
|
|
291973
|
+
"additionalProperties": false
|
|
291974
|
+
}
|
|
291975
|
+
},
|
|
291976
|
+
"integrations": {
|
|
291977
|
+
"type": "object",
|
|
291978
|
+
"additionalProperties": {
|
|
291979
|
+
"type": "object",
|
|
291980
|
+
"properties": {
|
|
291981
|
+
"id": {
|
|
291982
|
+
"type": "string"
|
|
291983
|
+
}
|
|
291984
|
+
},
|
|
291985
|
+
"required": [
|
|
291986
|
+
"id"
|
|
291987
|
+
],
|
|
291988
|
+
"additionalProperties": false
|
|
291989
|
+
}
|
|
291990
|
+
}
|
|
291991
|
+
},
|
|
291992
|
+
"additionalProperties": false
|
|
291889
291993
|
}
|
|
291890
291994
|
},
|
|
291891
291995
|
"required": [
|
|
@@ -292175,6 +292279,44 @@ var state = {
|
|
|
292175
292279
|
},
|
|
292176
292280
|
"code": {
|
|
292177
292281
|
"type": "string"
|
|
292282
|
+
},
|
|
292283
|
+
"dependencies": {
|
|
292284
|
+
"type": "object",
|
|
292285
|
+
"properties": {
|
|
292286
|
+
"interfaces": {
|
|
292287
|
+
"type": "object",
|
|
292288
|
+
"additionalProperties": {
|
|
292289
|
+
"type": "object",
|
|
292290
|
+
"properties": {
|
|
292291
|
+
"id": {
|
|
292292
|
+
"type": "string"
|
|
292293
|
+
}
|
|
292294
|
+
},
|
|
292295
|
+
"required": [
|
|
292296
|
+
"id"
|
|
292297
|
+
],
|
|
292298
|
+
"nullable": true,
|
|
292299
|
+
"additionalProperties": false
|
|
292300
|
+
}
|
|
292301
|
+
},
|
|
292302
|
+
"integrations": {
|
|
292303
|
+
"type": "object",
|
|
292304
|
+
"additionalProperties": {
|
|
292305
|
+
"type": "object",
|
|
292306
|
+
"properties": {
|
|
292307
|
+
"id": {
|
|
292308
|
+
"type": "string"
|
|
292309
|
+
}
|
|
292310
|
+
},
|
|
292311
|
+
"required": [
|
|
292312
|
+
"id"
|
|
292313
|
+
],
|
|
292314
|
+
"nullable": true,
|
|
292315
|
+
"additionalProperties": false
|
|
292316
|
+
}
|
|
292317
|
+
}
|
|
292318
|
+
},
|
|
292319
|
+
"additionalProperties": false
|
|
292178
292320
|
}
|
|
292179
292321
|
},
|
|
292180
292322
|
"title": "updatePluginBody",
|
|
@@ -294960,7 +295102,7 @@ var state = {
|
|
|
294960
295102
|
"title": "Botpress API",
|
|
294961
295103
|
"description": "API for Botpress Cloud",
|
|
294962
295104
|
"server": "https://api.botpress.cloud",
|
|
294963
|
-
"version": "0.
|
|
295105
|
+
"version": "0.61.0",
|
|
294964
295106
|
"prefix": "v1"
|
|
294965
295107
|
},
|
|
294966
295108
|
"errors": [
|
|
@@ -295194,6 +295336,7 @@ var state = {
|
|
|
295194
295336
|
"deleteWorkflowResponse": true,
|
|
295195
295337
|
"listWorkflowsResponse": true,
|
|
295196
295338
|
"getOrCreateWorkflowResponse": true,
|
|
295339
|
+
"listTagValuesResponse": true,
|
|
295197
295340
|
"trackAnalyticsResponse": true,
|
|
295198
295341
|
"runVrlResponse": true,
|
|
295199
295342
|
"getAccountResponse": true,
|
|
@@ -296873,6 +297016,70 @@ var state = {
|
|
|
296873
297016
|
"additionalProperties": false
|
|
296874
297017
|
}
|
|
296875
297018
|
},
|
|
297019
|
+
"dependencies": {
|
|
297020
|
+
"type": "object",
|
|
297021
|
+
"properties": {
|
|
297022
|
+
"interfaces": {
|
|
297023
|
+
"type": "object",
|
|
297024
|
+
"additionalProperties": {
|
|
297025
|
+
"type": "object",
|
|
297026
|
+
"properties": {
|
|
297027
|
+
"id": {
|
|
297028
|
+
"type": "string",
|
|
297029
|
+
"minLength": 28,
|
|
297030
|
+
"maxLength": 36
|
|
297031
|
+
},
|
|
297032
|
+
"name": {
|
|
297033
|
+
"type": "string",
|
|
297034
|
+
"maxLength": 200
|
|
297035
|
+
},
|
|
297036
|
+
"version": {
|
|
297037
|
+
"type": "string",
|
|
297038
|
+
"maxLength": 200
|
|
297039
|
+
}
|
|
297040
|
+
},
|
|
297041
|
+
"required": [
|
|
297042
|
+
"id",
|
|
297043
|
+
"name",
|
|
297044
|
+
"version"
|
|
297045
|
+
],
|
|
297046
|
+
"additionalProperties": false
|
|
297047
|
+
}
|
|
297048
|
+
},
|
|
297049
|
+
"integrations": {
|
|
297050
|
+
"type": "object",
|
|
297051
|
+
"additionalProperties": {
|
|
297052
|
+
"type": "object",
|
|
297053
|
+
"properties": {
|
|
297054
|
+
"id": {
|
|
297055
|
+
"type": "string",
|
|
297056
|
+
"minLength": 28,
|
|
297057
|
+
"maxLength": 36
|
|
297058
|
+
},
|
|
297059
|
+
"name": {
|
|
297060
|
+
"type": "string",
|
|
297061
|
+
"maxLength": 200
|
|
297062
|
+
},
|
|
297063
|
+
"version": {
|
|
297064
|
+
"type": "string",
|
|
297065
|
+
"maxLength": 200
|
|
297066
|
+
}
|
|
297067
|
+
},
|
|
297068
|
+
"required": [
|
|
297069
|
+
"id",
|
|
297070
|
+
"name",
|
|
297071
|
+
"version"
|
|
297072
|
+
],
|
|
297073
|
+
"additionalProperties": false
|
|
297074
|
+
}
|
|
297075
|
+
}
|
|
297076
|
+
},
|
|
297077
|
+
"required": [
|
|
297078
|
+
"interfaces",
|
|
297079
|
+
"integrations"
|
|
297080
|
+
],
|
|
297081
|
+
"additionalProperties": false
|
|
297082
|
+
},
|
|
296876
297083
|
"user": {
|
|
296877
297084
|
"type": "object",
|
|
296878
297085
|
"properties": {
|
|
@@ -296917,6 +297124,7 @@ var state = {
|
|
|
296917
297124
|
"states",
|
|
296918
297125
|
"events",
|
|
296919
297126
|
"actions",
|
|
297127
|
+
"dependencies",
|
|
296920
297128
|
"user",
|
|
296921
297129
|
"code"
|
|
296922
297130
|
],
|
|
@@ -298523,6 +298731,14 @@ var state = {
|
|
|
298523
298731
|
],
|
|
298524
298732
|
"schema": "Workflow"
|
|
298525
298733
|
},
|
|
298734
|
+
{
|
|
298735
|
+
"description": "",
|
|
298736
|
+
"title": "Tag",
|
|
298737
|
+
"name": "tag",
|
|
298738
|
+
"operations": [
|
|
298739
|
+
"listTagValues"
|
|
298740
|
+
]
|
|
298741
|
+
},
|
|
298526
298742
|
{
|
|
298527
298743
|
"title": "Bot",
|
|
298528
298744
|
"description": "",
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as opapi from '@bpinternal/opapi';
|
|
2
|
-
export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Plugin' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'Version' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Workflow' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'bot' | 'integration' | 'interface' | 'plugin' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>;
|
|
2
|
+
export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Plugin' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'Version' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Workflow' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'tag' | 'bot' | 'integration' | 'interface' | 'plugin' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>;
|
|
3
3
|
export declare const state: {
|
|
4
4
|
operations: {
|
|
5
5
|
createConversation: {
|
|
@@ -2213,6 +2213,65 @@ export declare const state: {
|
|
|
2213
2213
|
};
|
|
2214
2214
|
parameters: {};
|
|
2215
2215
|
};
|
|
2216
|
+
listTagValues: {
|
|
2217
|
+
name: string;
|
|
2218
|
+
description: string;
|
|
2219
|
+
method: "get";
|
|
2220
|
+
path: string;
|
|
2221
|
+
section: "tag";
|
|
2222
|
+
parameters: {
|
|
2223
|
+
nextToken: {
|
|
2224
|
+
in: "query";
|
|
2225
|
+
description: string;
|
|
2226
|
+
type: "string";
|
|
2227
|
+
};
|
|
2228
|
+
key: {
|
|
2229
|
+
in: "path";
|
|
2230
|
+
type: "string";
|
|
2231
|
+
description: string;
|
|
2232
|
+
};
|
|
2233
|
+
type: {
|
|
2234
|
+
in: "query";
|
|
2235
|
+
type: "string";
|
|
2236
|
+
description: string;
|
|
2237
|
+
required: true;
|
|
2238
|
+
enum: string[];
|
|
2239
|
+
};
|
|
2240
|
+
};
|
|
2241
|
+
response: {
|
|
2242
|
+
description: string;
|
|
2243
|
+
schema: {
|
|
2244
|
+
type: "object";
|
|
2245
|
+
properties: {
|
|
2246
|
+
tags: {
|
|
2247
|
+
type: "array";
|
|
2248
|
+
items: {
|
|
2249
|
+
type: "object";
|
|
2250
|
+
properties: {
|
|
2251
|
+
value: {
|
|
2252
|
+
type: "string";
|
|
2253
|
+
};
|
|
2254
|
+
};
|
|
2255
|
+
required: string[];
|
|
2256
|
+
};
|
|
2257
|
+
};
|
|
2258
|
+
meta: {
|
|
2259
|
+
type: "object";
|
|
2260
|
+
properties: {
|
|
2261
|
+
nextToken: {
|
|
2262
|
+
type: "string";
|
|
2263
|
+
description: string;
|
|
2264
|
+
};
|
|
2265
|
+
};
|
|
2266
|
+
additionalProperties: false;
|
|
2267
|
+
};
|
|
2268
|
+
};
|
|
2269
|
+
required: string[];
|
|
2270
|
+
title: string;
|
|
2271
|
+
additionalProperties: false;
|
|
2272
|
+
};
|
|
2273
|
+
};
|
|
2274
|
+
};
|
|
2216
2275
|
trackAnalytics: {
|
|
2217
2276
|
name: string;
|
|
2218
2277
|
description: string;
|
|
@@ -9167,6 +9226,38 @@ export declare const state: {
|
|
|
9167
9226
|
code: {
|
|
9168
9227
|
type: "string";
|
|
9169
9228
|
};
|
|
9229
|
+
dependencies: {
|
|
9230
|
+
type: "object";
|
|
9231
|
+
properties: {
|
|
9232
|
+
interfaces: {
|
|
9233
|
+
type: "object";
|
|
9234
|
+
additionalProperties: {
|
|
9235
|
+
type: "object";
|
|
9236
|
+
properties: {
|
|
9237
|
+
id: {
|
|
9238
|
+
type: "string";
|
|
9239
|
+
};
|
|
9240
|
+
};
|
|
9241
|
+
required: string[];
|
|
9242
|
+
additionalProperties: false;
|
|
9243
|
+
};
|
|
9244
|
+
};
|
|
9245
|
+
integrations: {
|
|
9246
|
+
type: "object";
|
|
9247
|
+
additionalProperties: {
|
|
9248
|
+
type: "object";
|
|
9249
|
+
properties: {
|
|
9250
|
+
id: {
|
|
9251
|
+
type: "string";
|
|
9252
|
+
};
|
|
9253
|
+
};
|
|
9254
|
+
required: string[];
|
|
9255
|
+
additionalProperties: false;
|
|
9256
|
+
};
|
|
9257
|
+
};
|
|
9258
|
+
};
|
|
9259
|
+
additionalProperties: false;
|
|
9260
|
+
};
|
|
9170
9261
|
};
|
|
9171
9262
|
required: string[];
|
|
9172
9263
|
title: string;
|
|
@@ -9425,6 +9516,40 @@ export declare const state: {
|
|
|
9425
9516
|
code: {
|
|
9426
9517
|
type: "string";
|
|
9427
9518
|
};
|
|
9519
|
+
dependencies: {
|
|
9520
|
+
type: "object";
|
|
9521
|
+
properties: {
|
|
9522
|
+
interfaces: {
|
|
9523
|
+
type: "object";
|
|
9524
|
+
additionalProperties: {
|
|
9525
|
+
type: "object";
|
|
9526
|
+
properties: {
|
|
9527
|
+
id: {
|
|
9528
|
+
type: "string";
|
|
9529
|
+
};
|
|
9530
|
+
};
|
|
9531
|
+
required: string[];
|
|
9532
|
+
nullable: true;
|
|
9533
|
+
additionalProperties: false;
|
|
9534
|
+
};
|
|
9535
|
+
};
|
|
9536
|
+
integrations: {
|
|
9537
|
+
type: "object";
|
|
9538
|
+
additionalProperties: {
|
|
9539
|
+
type: "object";
|
|
9540
|
+
properties: {
|
|
9541
|
+
id: {
|
|
9542
|
+
type: "string";
|
|
9543
|
+
};
|
|
9544
|
+
};
|
|
9545
|
+
required: string[];
|
|
9546
|
+
nullable: true;
|
|
9547
|
+
additionalProperties: false;
|
|
9548
|
+
};
|
|
9549
|
+
};
|
|
9550
|
+
};
|
|
9551
|
+
additionalProperties: false;
|
|
9552
|
+
};
|
|
9428
9553
|
};
|
|
9429
9554
|
title: string;
|
|
9430
9555
|
additionalProperties: false;
|
|
@@ -11993,6 +12118,7 @@ export declare const state: {
|
|
|
11993
12118
|
deleteWorkflowResponse: true;
|
|
11994
12119
|
listWorkflowsResponse: true;
|
|
11995
12120
|
getOrCreateWorkflowResponse: true;
|
|
12121
|
+
listTagValuesResponse: true;
|
|
11996
12122
|
trackAnalyticsResponse: true;
|
|
11997
12123
|
runVrlResponse: true;
|
|
11998
12124
|
getAccountResponse: true;
|
|
@@ -13438,6 +13564,59 @@ export declare const state: {
|
|
|
13438
13564
|
additionalProperties: false;
|
|
13439
13565
|
};
|
|
13440
13566
|
};
|
|
13567
|
+
dependencies: {
|
|
13568
|
+
type: "object";
|
|
13569
|
+
properties: {
|
|
13570
|
+
interfaces: {
|
|
13571
|
+
type: "object";
|
|
13572
|
+
additionalProperties: {
|
|
13573
|
+
type: "object";
|
|
13574
|
+
properties: {
|
|
13575
|
+
id: {
|
|
13576
|
+
type: "string";
|
|
13577
|
+
minLength: number;
|
|
13578
|
+
maxLength: number;
|
|
13579
|
+
};
|
|
13580
|
+
name: {
|
|
13581
|
+
type: "string";
|
|
13582
|
+
maxLength: number;
|
|
13583
|
+
};
|
|
13584
|
+
version: {
|
|
13585
|
+
type: "string";
|
|
13586
|
+
maxLength: number;
|
|
13587
|
+
};
|
|
13588
|
+
};
|
|
13589
|
+
required: string[];
|
|
13590
|
+
additionalProperties: false;
|
|
13591
|
+
};
|
|
13592
|
+
};
|
|
13593
|
+
integrations: {
|
|
13594
|
+
type: "object";
|
|
13595
|
+
additionalProperties: {
|
|
13596
|
+
type: "object";
|
|
13597
|
+
properties: {
|
|
13598
|
+
id: {
|
|
13599
|
+
type: "string";
|
|
13600
|
+
minLength: number;
|
|
13601
|
+
maxLength: number;
|
|
13602
|
+
};
|
|
13603
|
+
name: {
|
|
13604
|
+
type: "string";
|
|
13605
|
+
maxLength: number;
|
|
13606
|
+
};
|
|
13607
|
+
version: {
|
|
13608
|
+
type: "string";
|
|
13609
|
+
maxLength: number;
|
|
13610
|
+
};
|
|
13611
|
+
};
|
|
13612
|
+
required: string[];
|
|
13613
|
+
additionalProperties: false;
|
|
13614
|
+
};
|
|
13615
|
+
};
|
|
13616
|
+
};
|
|
13617
|
+
required: string[];
|
|
13618
|
+
additionalProperties: false;
|
|
13619
|
+
};
|
|
13441
13620
|
user: {
|
|
13442
13621
|
type: "object";
|
|
13443
13622
|
properties: {
|
|
@@ -14725,6 +14904,12 @@ export declare const state: {
|
|
|
14725
14904
|
name: "workflow";
|
|
14726
14905
|
operations: string[];
|
|
14727
14906
|
schema: string;
|
|
14907
|
+
} | {
|
|
14908
|
+
description: string;
|
|
14909
|
+
title: string;
|
|
14910
|
+
name: "tag";
|
|
14911
|
+
operations: string[];
|
|
14912
|
+
schema?: undefined;
|
|
14728
14913
|
} | {
|
|
14729
14914
|
title: string;
|
|
14730
14915
|
description: string;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './gen/state';
|
|
2
2
|
export declare const api: {
|
|
3
3
|
getModelRef: (name: "Bot" | "Integration" | "Interface" | "Plugin" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "Activity" | "Version" | "User" | "Conversation" | "Event" | "Message" | "State" | "Task" | "Workflow" | "Table" | "Column" | "Row" | "File") => import("@bpinternal/opapi").OpenApiZodAny;
|
|
4
|
-
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-integration-id" | "x-workspace-id", "user" | "conversation" | "event" | "message" | "state" | "hub" | "action" | "task" | "workflow" | "bot" | "integration" | "interface" | "plugin" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "activity" | "tables" | "files", Path, "zod-schema">) => void;
|
|
4
|
+
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-integration-id" | "x-workspace-id", "user" | "conversation" | "event" | "message" | "state" | "hub" | "action" | "task" | "workflow" | "tag" | "bot" | "integration" | "interface" | "plugin" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "activity" | "tables" | "files", Path, "zod-schema">) => void;
|
|
5
5
|
exportClient: {
|
|
6
6
|
(dir: string, openapiGeneratorEndpoint: string, postProcessors?: import("@bpinternal/opapi").OpenApiPostProcessors | undefined): Promise<void>;
|
|
7
7
|
(dir: string, props: import("@bpinternal/opapi").GenerateClientProps): Promise<void>;
|
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":"Plugin","description":"","name":"plugin","operations":["createPlugin","getPlugin","getPluginByName","updatePlugin","deletePlugin","listPlugins"],"schema":"Plugin"},{"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","exportTable","getTableJobs","importTable","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":["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"},{"description":"","title":"Tag","name":"tag","operations":["listTagValues"]},{"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":"Plugin","description":"","name":"plugin","operations":["createPlugin","getPlugin","getPluginByName","updatePlugin","deletePlugin","listPlugins"],"schema":"Plugin"},{"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","exportTable","getTableJobs","importTable","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."}]}
|