@botpress/api 0.29.6 → 0.30.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 +167 -7
- package/dist/src/gen/state.d.ts +148 -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 +167 -7
package/src/gen/state.ts
CHANGED
|
@@ -5669,7 +5669,7 @@ export const state = {
|
|
|
5669
5669
|
},
|
|
5670
5670
|
"type": {
|
|
5671
5671
|
"in": "query",
|
|
5672
|
-
"description": "
|
|
5672
|
+
"description": "Usage type",
|
|
5673
5673
|
"type": "string",
|
|
5674
5674
|
"enum": [
|
|
5675
5675
|
"invocation_timeout",
|
|
@@ -5732,7 +5732,7 @@ export const state = {
|
|
|
5732
5732
|
},
|
|
5733
5733
|
"type": {
|
|
5734
5734
|
"in": "query",
|
|
5735
|
-
"description": "
|
|
5735
|
+
"description": "Usage type",
|
|
5736
5736
|
"type": "string",
|
|
5737
5737
|
"enum": [
|
|
5738
5738
|
"invocation_timeout",
|
|
@@ -5856,7 +5856,7 @@ export const state = {
|
|
|
5856
5856
|
},
|
|
5857
5857
|
"type": {
|
|
5858
5858
|
"in": "query",
|
|
5859
|
-
"description": "
|
|
5859
|
+
"description": "Usage type",
|
|
5860
5860
|
"type": "string",
|
|
5861
5861
|
"enum": [
|
|
5862
5862
|
"invocation_timeout",
|
|
@@ -6353,6 +6353,113 @@ export const state = {
|
|
|
6353
6353
|
}
|
|
6354
6354
|
}
|
|
6355
6355
|
},
|
|
6356
|
+
"listPublicWorkspaces": {
|
|
6357
|
+
"name": "listPublicWorkspaces",
|
|
6358
|
+
"description": "List public workspaces",
|
|
6359
|
+
"section": "workspace",
|
|
6360
|
+
"method": "get",
|
|
6361
|
+
"path": "/v1/admin/workspaces/public",
|
|
6362
|
+
"disableDefaultParameters": {
|
|
6363
|
+
"x-workspace-id": true
|
|
6364
|
+
},
|
|
6365
|
+
"parameters": {
|
|
6366
|
+
"nextToken": {
|
|
6367
|
+
"in": "query",
|
|
6368
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
6369
|
+
"type": "string"
|
|
6370
|
+
},
|
|
6371
|
+
"workspaceIds": {
|
|
6372
|
+
"in": "query",
|
|
6373
|
+
"description": "Ids of the workspaces to list",
|
|
6374
|
+
"type": "string[]",
|
|
6375
|
+
"required": false
|
|
6376
|
+
},
|
|
6377
|
+
"search": {
|
|
6378
|
+
"in": "query",
|
|
6379
|
+
"description": "Search query",
|
|
6380
|
+
"type": "string",
|
|
6381
|
+
"required": false
|
|
6382
|
+
}
|
|
6383
|
+
},
|
|
6384
|
+
"response": {
|
|
6385
|
+
"description": "Success",
|
|
6386
|
+
"schema": {
|
|
6387
|
+
"type": "object",
|
|
6388
|
+
"properties": {
|
|
6389
|
+
"workspaces": {
|
|
6390
|
+
"type": "array",
|
|
6391
|
+
"items": {
|
|
6392
|
+
"type": "object",
|
|
6393
|
+
"properties": {
|
|
6394
|
+
"id": {
|
|
6395
|
+
"type": "string"
|
|
6396
|
+
},
|
|
6397
|
+
"name": {
|
|
6398
|
+
"type": "string"
|
|
6399
|
+
},
|
|
6400
|
+
"createdAt": {
|
|
6401
|
+
"type": "string"
|
|
6402
|
+
},
|
|
6403
|
+
"updatedAt": {
|
|
6404
|
+
"type": "string"
|
|
6405
|
+
},
|
|
6406
|
+
"about": {
|
|
6407
|
+
"default": "",
|
|
6408
|
+
"type": "string"
|
|
6409
|
+
},
|
|
6410
|
+
"profilePicture": {
|
|
6411
|
+
"default": "",
|
|
6412
|
+
"type": "string"
|
|
6413
|
+
},
|
|
6414
|
+
"contactEmail": {
|
|
6415
|
+
"default": "",
|
|
6416
|
+
"type": "string"
|
|
6417
|
+
},
|
|
6418
|
+
"website": {
|
|
6419
|
+
"default": "",
|
|
6420
|
+
"type": "string"
|
|
6421
|
+
},
|
|
6422
|
+
"socialAccounts": {
|
|
6423
|
+
"default": [],
|
|
6424
|
+
"type": "array",
|
|
6425
|
+
"items": {
|
|
6426
|
+
"type": "string"
|
|
6427
|
+
}
|
|
6428
|
+
},
|
|
6429
|
+
"handle": {
|
|
6430
|
+
"default": "",
|
|
6431
|
+
"type": "string"
|
|
6432
|
+
}
|
|
6433
|
+
},
|
|
6434
|
+
"required": [
|
|
6435
|
+
"id",
|
|
6436
|
+
"name",
|
|
6437
|
+
"createdAt",
|
|
6438
|
+
"updatedAt"
|
|
6439
|
+
],
|
|
6440
|
+
"title": "getPublicWorkspaceResponse"
|
|
6441
|
+
}
|
|
6442
|
+
},
|
|
6443
|
+
"meta": {
|
|
6444
|
+
"type": "object",
|
|
6445
|
+
"properties": {
|
|
6446
|
+
"nextToken": {
|
|
6447
|
+
"type": "string",
|
|
6448
|
+
"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."
|
|
6449
|
+
}
|
|
6450
|
+
},
|
|
6451
|
+
"additionalProperties": false
|
|
6452
|
+
}
|
|
6453
|
+
},
|
|
6454
|
+
"required": [
|
|
6455
|
+
"workspaces",
|
|
6456
|
+
"meta"
|
|
6457
|
+
],
|
|
6458
|
+
"title": "listPublicWorkspacesResponse",
|
|
6459
|
+
"additionalProperties": false
|
|
6460
|
+
}
|
|
6461
|
+
}
|
|
6462
|
+
},
|
|
6356
6463
|
"deleteWorkspace": {
|
|
6357
6464
|
"name": "deleteWorkspace",
|
|
6358
6465
|
"description": "Delete workspace",
|
|
@@ -8180,7 +8287,7 @@ export const state = {
|
|
|
8180
8287
|
"parameters": {
|
|
8181
8288
|
"type": {
|
|
8182
8289
|
"in": "query",
|
|
8183
|
-
"description": "
|
|
8290
|
+
"description": "Usage type",
|
|
8184
8291
|
"type": "string",
|
|
8185
8292
|
"enum": [
|
|
8186
8293
|
"invocation_timeout",
|
|
@@ -8228,6 +8335,55 @@ export const state = {
|
|
|
8228
8335
|
}
|
|
8229
8336
|
}
|
|
8230
8337
|
},
|
|
8338
|
+
"getMultipleUsages": {
|
|
8339
|
+
"name": "getMultipleUsages",
|
|
8340
|
+
"path": "/v1/admin/usages/multiple",
|
|
8341
|
+
"description": "Get multiple usages",
|
|
8342
|
+
"method": "get",
|
|
8343
|
+
"section": "usage",
|
|
8344
|
+
"disableDefaultParameters": {
|
|
8345
|
+
"x-workspace-id": true
|
|
8346
|
+
},
|
|
8347
|
+
"parameters": {
|
|
8348
|
+
"types": {
|
|
8349
|
+
"in": "query",
|
|
8350
|
+
"description": "Usage types to retrieve. All types have to belong to the same type of entity (e.g. workspace or bot).",
|
|
8351
|
+
"type": "string[]",
|
|
8352
|
+
"required": true
|
|
8353
|
+
},
|
|
8354
|
+
"ids": {
|
|
8355
|
+
"in": "query",
|
|
8356
|
+
"type": "string[]",
|
|
8357
|
+
"description": "IDs of either workspaces or bots to retrieve usages for.",
|
|
8358
|
+
"required": true
|
|
8359
|
+
},
|
|
8360
|
+
"period": {
|
|
8361
|
+
"in": "query",
|
|
8362
|
+
"description": "Period to get",
|
|
8363
|
+
"type": "string",
|
|
8364
|
+
"required": false
|
|
8365
|
+
}
|
|
8366
|
+
},
|
|
8367
|
+
"response": {
|
|
8368
|
+
"description": "Success",
|
|
8369
|
+
"schema": {
|
|
8370
|
+
"type": "object",
|
|
8371
|
+
"properties": {
|
|
8372
|
+
"usages": {
|
|
8373
|
+
"type": "array",
|
|
8374
|
+
"items": {
|
|
8375
|
+
"$ref": "#/components/schemas/Usage"
|
|
8376
|
+
}
|
|
8377
|
+
}
|
|
8378
|
+
},
|
|
8379
|
+
"required": [
|
|
8380
|
+
"usages"
|
|
8381
|
+
],
|
|
8382
|
+
"title": "getMultipleUsagesResponse",
|
|
8383
|
+
"additionalProperties": false
|
|
8384
|
+
}
|
|
8385
|
+
}
|
|
8386
|
+
},
|
|
8231
8387
|
"listUsageHistory": {
|
|
8232
8388
|
"name": "listUsageHistory",
|
|
8233
8389
|
"path": "/v1/admin/usages/{id}/history",
|
|
@@ -8236,7 +8392,7 @@ export const state = {
|
|
|
8236
8392
|
"parameters": {
|
|
8237
8393
|
"type": {
|
|
8238
8394
|
"in": "query",
|
|
8239
|
-
"description": "
|
|
8395
|
+
"description": "Usage type",
|
|
8240
8396
|
"type": "string",
|
|
8241
8397
|
"enum": [
|
|
8242
8398
|
"invocation_timeout",
|
|
@@ -10033,7 +10189,7 @@ export const state = {
|
|
|
10033
10189
|
"title": "Botpress API",
|
|
10034
10190
|
"description": "API for Botpress Cloud",
|
|
10035
10191
|
"server": "https://api.botpress.cloud",
|
|
10036
|
-
"version": "0.
|
|
10192
|
+
"version": "0.30.1",
|
|
10037
10193
|
"prefix": "v1"
|
|
10038
10194
|
},
|
|
10039
10195
|
"errors": [
|
|
@@ -10284,6 +10440,7 @@ export const state = {
|
|
|
10284
10440
|
"updateWorkspaceResponse": true,
|
|
10285
10441
|
"checkHandleAvailabilityResponse": true,
|
|
10286
10442
|
"listWorkspacesResponse": true,
|
|
10443
|
+
"listPublicWorkspacesResponse": true,
|
|
10287
10444
|
"deleteWorkspaceResponse": true,
|
|
10288
10445
|
"getAuditRecordsResponse": true,
|
|
10289
10446
|
"listWorkspaceMembersResponse": true,
|
|
@@ -10302,6 +10459,7 @@ export const state = {
|
|
|
10302
10459
|
"getIntegrationByNameResponse": true,
|
|
10303
10460
|
"deleteIntegrationResponse": true,
|
|
10304
10461
|
"getUsageResponse": true,
|
|
10462
|
+
"getMultipleUsagesResponse": true,
|
|
10305
10463
|
"listUsageHistoryResponse": true,
|
|
10306
10464
|
"changeAISpendQuotaResponse": true,
|
|
10307
10465
|
"listActivitiesResponse": true,
|
|
@@ -12817,6 +12975,7 @@ export const state = {
|
|
|
12817
12975
|
"updateWorkspace",
|
|
12818
12976
|
"checkHandleAvailability",
|
|
12819
12977
|
"listWorkspaces",
|
|
12978
|
+
"listPublicWorkspaces",
|
|
12820
12979
|
"deleteWorkspace",
|
|
12821
12980
|
"getAuditRecords"
|
|
12822
12981
|
],
|
|
@@ -12855,7 +13014,8 @@ export const state = {
|
|
|
12855
13014
|
"description": "",
|
|
12856
13015
|
"name": "usage",
|
|
12857
13016
|
"operations": [
|
|
12858
|
-
"getUsage"
|
|
13017
|
+
"getUsage",
|
|
13018
|
+
"getMultipleUsages"
|
|
12859
13019
|
],
|
|
12860
13020
|
"schema": "Usage"
|
|
12861
13021
|
},
|