@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/src/gen/state.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /* prettier-ignore */
4
4
  import * as opapi from '@bpinternal/opapi'
5
- 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'>
5
+ 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'>
6
6
  export const state = {
7
7
  "operations": {
8
8
  "createConversation": {
@@ -2442,6 +2442,74 @@ export const state = {
2442
2442
  },
2443
2443
  "parameters": {}
2444
2444
  },
2445
+ "listTagValues": {
2446
+ "name": "listTagValues",
2447
+ "description": "Get a bot tag values",
2448
+ "method": "get",
2449
+ "path": "/v1/chat/tags/{key}/values",
2450
+ "section": "tag",
2451
+ "parameters": {
2452
+ "nextToken": {
2453
+ "in": "query",
2454
+ "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
2455
+ "type": "string"
2456
+ },
2457
+ "key": {
2458
+ "in": "path",
2459
+ "type": "string",
2460
+ "description": "Tag key"
2461
+ },
2462
+ "type": {
2463
+ "in": "query",
2464
+ "type": "string",
2465
+ "description": "Tag type",
2466
+ "required": true,
2467
+ "enum": [
2468
+ "user",
2469
+ "conversation",
2470
+ "message"
2471
+ ]
2472
+ }
2473
+ },
2474
+ "response": {
2475
+ "description": "Empty response",
2476
+ "schema": {
2477
+ "type": "object",
2478
+ "properties": {
2479
+ "tags": {
2480
+ "type": "array",
2481
+ "items": {
2482
+ "type": "object",
2483
+ "properties": {
2484
+ "value": {
2485
+ "type": "string"
2486
+ }
2487
+ },
2488
+ "required": [
2489
+ "value"
2490
+ ]
2491
+ }
2492
+ },
2493
+ "meta": {
2494
+ "type": "object",
2495
+ "properties": {
2496
+ "nextToken": {
2497
+ "type": "string",
2498
+ "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."
2499
+ }
2500
+ },
2501
+ "additionalProperties": false
2502
+ }
2503
+ },
2504
+ "required": [
2505
+ "tags",
2506
+ "meta"
2507
+ ],
2508
+ "title": "listTagValuesResponse",
2509
+ "additionalProperties": false
2510
+ }
2511
+ }
2512
+ },
2445
2513
  "trackAnalytics": {
2446
2514
  "name": "trackAnalytics",
2447
2515
  "description": "Add an event to the analytics",
@@ -10407,6 +10475,42 @@ export const state = {
10407
10475
  },
10408
10476
  "code": {
10409
10477
  "type": "string"
10478
+ },
10479
+ "dependencies": {
10480
+ "type": "object",
10481
+ "properties": {
10482
+ "interfaces": {
10483
+ "type": "object",
10484
+ "additionalProperties": {
10485
+ "type": "object",
10486
+ "properties": {
10487
+ "id": {
10488
+ "type": "string"
10489
+ }
10490
+ },
10491
+ "required": [
10492
+ "id"
10493
+ ],
10494
+ "additionalProperties": false
10495
+ }
10496
+ },
10497
+ "integrations": {
10498
+ "type": "object",
10499
+ "additionalProperties": {
10500
+ "type": "object",
10501
+ "properties": {
10502
+ "id": {
10503
+ "type": "string"
10504
+ }
10505
+ },
10506
+ "required": [
10507
+ "id"
10508
+ ],
10509
+ "additionalProperties": false
10510
+ }
10511
+ }
10512
+ },
10513
+ "additionalProperties": false
10410
10514
  }
10411
10515
  },
10412
10516
  "required": [
@@ -10696,6 +10800,44 @@ export const state = {
10696
10800
  },
10697
10801
  "code": {
10698
10802
  "type": "string"
10803
+ },
10804
+ "dependencies": {
10805
+ "type": "object",
10806
+ "properties": {
10807
+ "interfaces": {
10808
+ "type": "object",
10809
+ "additionalProperties": {
10810
+ "type": "object",
10811
+ "properties": {
10812
+ "id": {
10813
+ "type": "string"
10814
+ }
10815
+ },
10816
+ "required": [
10817
+ "id"
10818
+ ],
10819
+ "nullable": true,
10820
+ "additionalProperties": false
10821
+ }
10822
+ },
10823
+ "integrations": {
10824
+ "type": "object",
10825
+ "additionalProperties": {
10826
+ "type": "object",
10827
+ "properties": {
10828
+ "id": {
10829
+ "type": "string"
10830
+ }
10831
+ },
10832
+ "required": [
10833
+ "id"
10834
+ ],
10835
+ "nullable": true,
10836
+ "additionalProperties": false
10837
+ }
10838
+ }
10839
+ },
10840
+ "additionalProperties": false
10699
10841
  }
10700
10842
  },
10701
10843
  "title": "updatePluginBody",
@@ -13481,7 +13623,7 @@ export const state = {
13481
13623
  "title": "Botpress API",
13482
13624
  "description": "API for Botpress Cloud",
13483
13625
  "server": "https://api.botpress.cloud",
13484
- "version": "0.59.1",
13626
+ "version": "0.61.0",
13485
13627
  "prefix": "v1"
13486
13628
  },
13487
13629
  "errors": [
@@ -13715,6 +13857,7 @@ export const state = {
13715
13857
  "deleteWorkflowResponse": true,
13716
13858
  "listWorkflowsResponse": true,
13717
13859
  "getOrCreateWorkflowResponse": true,
13860
+ "listTagValuesResponse": true,
13718
13861
  "trackAnalyticsResponse": true,
13719
13862
  "runVrlResponse": true,
13720
13863
  "getAccountResponse": true,
@@ -15394,6 +15537,70 @@ export const state = {
15394
15537
  "additionalProperties": false
15395
15538
  }
15396
15539
  },
15540
+ "dependencies": {
15541
+ "type": "object",
15542
+ "properties": {
15543
+ "interfaces": {
15544
+ "type": "object",
15545
+ "additionalProperties": {
15546
+ "type": "object",
15547
+ "properties": {
15548
+ "id": {
15549
+ "type": "string",
15550
+ "minLength": 28,
15551
+ "maxLength": 36
15552
+ },
15553
+ "name": {
15554
+ "type": "string",
15555
+ "maxLength": 200
15556
+ },
15557
+ "version": {
15558
+ "type": "string",
15559
+ "maxLength": 200
15560
+ }
15561
+ },
15562
+ "required": [
15563
+ "id",
15564
+ "name",
15565
+ "version"
15566
+ ],
15567
+ "additionalProperties": false
15568
+ }
15569
+ },
15570
+ "integrations": {
15571
+ "type": "object",
15572
+ "additionalProperties": {
15573
+ "type": "object",
15574
+ "properties": {
15575
+ "id": {
15576
+ "type": "string",
15577
+ "minLength": 28,
15578
+ "maxLength": 36
15579
+ },
15580
+ "name": {
15581
+ "type": "string",
15582
+ "maxLength": 200
15583
+ },
15584
+ "version": {
15585
+ "type": "string",
15586
+ "maxLength": 200
15587
+ }
15588
+ },
15589
+ "required": [
15590
+ "id",
15591
+ "name",
15592
+ "version"
15593
+ ],
15594
+ "additionalProperties": false
15595
+ }
15596
+ }
15597
+ },
15598
+ "required": [
15599
+ "interfaces",
15600
+ "integrations"
15601
+ ],
15602
+ "additionalProperties": false
15603
+ },
15397
15604
  "user": {
15398
15605
  "type": "object",
15399
15606
  "properties": {
@@ -15438,6 +15645,7 @@ export const state = {
15438
15645
  "states",
15439
15646
  "events",
15440
15647
  "actions",
15648
+ "dependencies",
15441
15649
  "user",
15442
15650
  "code"
15443
15651
  ],
@@ -17044,6 +17252,14 @@ export const state = {
17044
17252
  ],
17045
17253
  "schema": "Workflow"
17046
17254
  },
17255
+ {
17256
+ "description": "",
17257
+ "title": "Tag",
17258
+ "name": "tag",
17259
+ "operations": [
17260
+ "listTagValues"
17261
+ ]
17262
+ },
17047
17263
  {
17048
17264
  "title": "Bot",
17049
17265
  "description": "",