@botpress/api 0.16.2 → 0.16.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 CHANGED
@@ -427103,6 +427103,9 @@ var state = {
427103
427103
  schema: {
427104
427104
  type: "object",
427105
427105
  properties: {
427106
+ currentTaskId: {
427107
+ type: "string"
427108
+ },
427106
427109
  tags: {
427107
427110
  type: "object",
427108
427111
  additionalProperties: {
@@ -427111,7 +427114,6 @@ var state = {
427111
427114
  description: "Tags for the [Conversation](#schema_conversation)"
427112
427115
  }
427113
427116
  },
427114
- required: ["tags"],
427115
427117
  title: "updateConversationBody",
427116
427118
  additionalProperties: false
427117
427119
  }
@@ -428076,7 +428078,7 @@ var state = {
428076
428078
  in: "path",
428077
428079
  type: "string",
428078
428080
  description: "State type",
428079
- enum: ["conversation", "user", "bot", "integration"]
428081
+ enum: ["conversation", "user", "bot", "integration", "task"]
428080
428082
  },
428081
428083
  id: {
428082
428084
  in: "path",
@@ -428115,7 +428117,7 @@ var state = {
428115
428117
  in: "path",
428116
428118
  type: "string",
428117
428119
  description: "State type",
428118
- enum: ["conversation", "user", "bot", "integration"]
428120
+ enum: ["conversation", "user", "bot", "integration", "task"]
428119
428121
  },
428120
428122
  id: {
428121
428123
  in: "path",
@@ -428177,7 +428179,7 @@ var state = {
428177
428179
  in: "path",
428178
428180
  type: "string",
428179
428181
  description: "State type",
428180
- enum: ["conversation", "user", "bot", "integration"]
428182
+ enum: ["conversation", "user", "bot", "integration", "task"]
428181
428183
  },
428182
428184
  id: {
428183
428185
  in: "path",
@@ -428338,15 +428340,18 @@ var state = {
428338
428340
  properties: {
428339
428341
  title: {
428340
428342
  type: "string",
428343
+ maxLength: 2e3,
428341
428344
  description: "Title describing the task"
428342
428345
  },
428343
- instruction: {
428346
+ description: {
428344
428347
  type: "string",
428348
+ maxLength: 2e4,
428345
428349
  description: "All the notes related to the execution of the current task"
428346
428350
  },
428347
428351
  type: {
428348
428352
  type: "string",
428349
- description: "Type of the task"
428353
+ maxLength: 200,
428354
+ description: "Unique identifier of the integration that was installed on the bot"
428350
428355
  },
428351
428356
  data: {
428352
428357
  type: "object",
@@ -428379,7 +428384,7 @@ var state = {
428379
428384
  description: "Tags for the [Task](#schema_task)"
428380
428385
  }
428381
428386
  },
428382
- required: ["title", "type", "conversationId"],
428387
+ required: ["type", "conversationId"],
428383
428388
  title: "createTaskBody",
428384
428389
  additionalProperties: false
428385
428390
  }
@@ -428423,7 +428428,7 @@ var state = {
428423
428428
  type: "string",
428424
428429
  description: "Title describing the task"
428425
428430
  },
428426
- instruction: {
428431
+ description: {
428427
428432
  type: "string",
428428
428433
  description: "All the notes related to the execution of the current task"
428429
428434
  },
@@ -428445,7 +428450,9 @@ var state = {
428445
428450
  "failed",
428446
428451
  "completed",
428447
428452
  "blocked",
428448
- "paused"
428453
+ "paused",
428454
+ "timeout",
428455
+ "cancelled"
428449
428456
  ],
428450
428457
  description: "Status of the task"
428451
428458
  },
@@ -428539,7 +428546,7 @@ var state = {
428539
428546
  },
428540
428547
  status: {
428541
428548
  in: "query",
428542
- type: "string",
428549
+ type: "string[]",
428543
428550
  description: "Status",
428544
428551
  enum: [
428545
428552
  "pending",
@@ -428547,7 +428554,9 @@ var state = {
428547
428554
  "failed",
428548
428555
  "completed",
428549
428556
  "blocked",
428550
- "paused"
428557
+ "paused",
428558
+ "timeout",
428559
+ "cancelled"
428551
428560
  ]
428552
428561
  },
428553
428562
  type: {
@@ -429053,8 +429062,8 @@ var state = {
429053
429062
  properties: {
429054
429063
  type: {
429055
429064
  type: "string",
429056
- enum: ["conversation", "user", "bot"],
429057
- description: "Type of the [State](#schema_state) (`conversation`, `user` or `bot`)"
429065
+ enum: ["conversation", "user", "bot", "task"],
429066
+ description: "Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)"
429058
429067
  },
429059
429068
  schema: {
429060
429069
  type: "object",
@@ -429460,8 +429469,8 @@ var state = {
429460
429469
  properties: {
429461
429470
  type: {
429462
429471
  type: "string",
429463
- enum: ["conversation", "user", "bot"],
429464
- description: "Type of the [State](#schema_state) (`conversation`, `user` or `bot`)"
429472
+ enum: ["conversation", "user", "bot", "task"],
429473
+ description: "Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)"
429465
429474
  },
429466
429475
  schema: {
429467
429476
  type: "object",
@@ -431894,7 +431903,7 @@ var state = {
431894
431903
  linkTemplateScript: {
431895
431904
  type: "string",
431896
431905
  maxLength: 2e3,
431897
- description: "Signing secret of the [Bot](#schema_bot)"
431906
+ description: "Title describing the task"
431898
431907
  }
431899
431908
  },
431900
431909
  additionalProperties: false
@@ -431997,12 +432006,12 @@ var state = {
431997
432006
  fallbackHandlerScript: {
431998
432007
  type: "string",
431999
432008
  maxLength: 2e3,
432000
- description: "Signing secret of the [Bot](#schema_bot)"
432009
+ description: "Title describing the task"
432001
432010
  },
432002
432011
  extractScript: {
432003
432012
  type: "string",
432004
432013
  maxLength: 2e3,
432005
- description: "Signing secret of the [Bot](#schema_bot)"
432014
+ description: "Title describing the task"
432006
432015
  }
432007
432016
  },
432008
432017
  additionalProperties: false
@@ -432250,7 +432259,7 @@ var state = {
432250
432259
  linkTemplateScript: {
432251
432260
  type: "string",
432252
432261
  maxLength: 2e3,
432253
- description: "Signing secret of the [Bot](#schema_bot)",
432262
+ description: "Title describing the task",
432254
432263
  nullable: true
432255
432264
  },
432256
432265
  required: {
@@ -432377,13 +432386,13 @@ var state = {
432377
432386
  extractScript: {
432378
432387
  type: "string",
432379
432388
  maxLength: 2e3,
432380
- description: "Signing secret of the [Bot](#schema_bot)",
432389
+ description: "Title describing the task",
432381
432390
  nullable: true
432382
432391
  },
432383
432392
  fallbackHandlerScript: {
432384
432393
  type: "string",
432385
432394
  maxLength: 2e3,
432386
- description: "Signing secret of the [Bot](#schema_bot)",
432395
+ description: "Title describing the task",
432387
432396
  nullable: true
432388
432397
  }
432389
432398
  },
@@ -432975,6 +432984,62 @@ var state = {
432975
432984
  },
432976
432985
  parameters: {}
432977
432986
  },
432987
+ listActivities: {
432988
+ name: "listActivities",
432989
+ description: "List activities of a task",
432990
+ method: "get",
432991
+ section: "activity",
432992
+ path: "/v1/admin/activities",
432993
+ disableDefaultParameters: {
432994
+ "x-workspace-id": true
432995
+ },
432996
+ parameters: {
432997
+ nextToken: {
432998
+ in: "query",
432999
+ description: "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
433000
+ type: "string"
433001
+ },
433002
+ taskId: {
433003
+ in: "query",
433004
+ description: "ID of the task to list activities for",
433005
+ type: "string",
433006
+ required: true
433007
+ },
433008
+ botId: {
433009
+ in: "query",
433010
+ description: "ID of the bot to list activities for",
433011
+ type: "string",
433012
+ required: true
433013
+ }
433014
+ },
433015
+ response: {
433016
+ description: "Success",
433017
+ schema: {
433018
+ type: "object",
433019
+ properties: {
433020
+ activities: {
433021
+ type: "array",
433022
+ items: {
433023
+ $ref: "#/components/schemas/Activity"
433024
+ }
433025
+ },
433026
+ meta: {
433027
+ type: "object",
433028
+ properties: {
433029
+ nextToken: {
433030
+ type: "string",
433031
+ 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."
433032
+ }
433033
+ },
433034
+ additionalProperties: false
433035
+ }
433036
+ },
433037
+ required: ["activities", "meta"],
433038
+ title: "listActivitiesResponse",
433039
+ additionalProperties: false
433040
+ }
433041
+ }
433042
+ },
432978
433043
  introspect: {
432979
433044
  name: "introspect",
432980
433045
  description: "Introspect the API",
@@ -433193,7 +433258,7 @@ var state = {
433193
433258
  title: "Botpress API",
433194
433259
  description: "API for Botpress Cloud",
433195
433260
  server: "https://api.botpress.cloud",
433196
- version: "0.16.2",
433261
+ version: "0.16.4",
433197
433262
  prefix: "v1"
433198
433263
  },
433199
433264
  errors: [
@@ -433432,6 +433497,7 @@ var state = {
433432
433497
  getUsageResponse: true,
433433
433498
  listUsageHistoryResponse: true,
433434
433499
  changeAISpendQuotaResponse: true,
433500
+ listActivitiesResponse: true,
433435
433501
  introspectResponse: true,
433436
433502
  createFileResponse: true,
433437
433503
  getFileResponse: true,
@@ -433448,6 +433514,7 @@ var state = {
433448
433514
  Usage: true,
433449
433515
  Issue: true,
433450
433516
  IssueEvent: true,
433517
+ Activity: true,
433451
433518
  User: true,
433452
433519
  Conversation: true,
433453
433520
  Event: true,
@@ -433485,7 +433552,7 @@ var state = {
433485
433552
  signingSecret: {
433486
433553
  type: "string",
433487
433554
  maxLength: 2e3,
433488
- description: "Signing secret of the [Bot](#schema_bot)"
433555
+ description: "Title describing the task"
433489
433556
  },
433490
433557
  integrations: {
433491
433558
  type: "object",
@@ -433498,27 +433565,27 @@ var state = {
433498
433565
  name: {
433499
433566
  type: "string",
433500
433567
  maxLength: 200,
433501
- description: "Type of the [Message](#schema_message) represents the resource type that the message is related to"
433568
+ description: "Type of the task"
433502
433569
  },
433503
433570
  version: {
433504
433571
  type: "string",
433505
433572
  maxLength: 200,
433506
- description: "Type of the [Message](#schema_message) represents the resource type that the message is related to"
433573
+ description: "Type of the task"
433507
433574
  },
433508
433575
  webhookUrl: {
433509
433576
  type: "string",
433510
433577
  maxLength: 2e3,
433511
- description: "Signing secret of the [Bot](#schema_bot)"
433578
+ description: "Title describing the task"
433512
433579
  },
433513
433580
  webhookId: {
433514
433581
  type: "string",
433515
433582
  maxLength: 200,
433516
- description: "Type of the [Message](#schema_message) represents the resource type that the message is related to"
433583
+ description: "Type of the task"
433517
433584
  },
433518
433585
  identifier: {
433519
433586
  type: "string",
433520
433587
  maxLength: 2e3,
433521
- description: "Signing secret of the [Bot](#schema_bot)"
433588
+ description: "Title describing the task"
433522
433589
  },
433523
433590
  configuration: {
433524
433591
  type: "object",
@@ -433538,7 +433605,7 @@ var state = {
433538
433605
  statusReason: {
433539
433606
  type: "string",
433540
433607
  maxLength: 2e3,
433541
- description: "Signing secret of the [Bot](#schema_bot)",
433608
+ description: "Title describing the task",
433542
433609
  nullable: true
433543
433610
  },
433544
433611
  id: {
@@ -433684,8 +433751,8 @@ var state = {
433684
433751
  properties: {
433685
433752
  type: {
433686
433753
  type: "string",
433687
- enum: ["conversation", "user", "bot"],
433688
- description: "Type of the [State](#schema_state) (`conversation`, `user` or `bot`)"
433754
+ enum: ["conversation", "user", "bot", "task"],
433755
+ description: "Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)"
433689
433756
  },
433690
433757
  schema: {
433691
433758
  type: "object",
@@ -433758,7 +433825,7 @@ var state = {
433758
433825
  cron: {
433759
433826
  type: "string",
433760
433827
  maxLength: 200,
433761
- description: "Type of the [Message](#schema_message) represents the resource type that the message is related to"
433828
+ description: "Type of the task"
433762
433829
  }
433763
433830
  },
433764
433831
  required: ["cron"],
@@ -433767,7 +433834,7 @@ var state = {
433767
433834
  type: {
433768
433835
  type: "string",
433769
433836
  maxLength: 200,
433770
- description: "Type of the [Message](#schema_message) represents the resource type that the message is related to"
433837
+ description: "Type of the task"
433771
433838
  },
433772
433839
  payload: {
433773
433840
  type: "object",
@@ -433923,12 +433990,12 @@ var state = {
433923
433990
  name: {
433924
433991
  type: "string",
433925
433992
  maxLength: 200,
433926
- description: "Type of the [Message](#schema_message) represents the resource type that the message is related to"
433993
+ description: "Type of the task"
433927
433994
  },
433928
433995
  version: {
433929
433996
  type: "string",
433930
433997
  maxLength: 200,
433931
- description: "Type of the [Message](#schema_message) represents the resource type that the message is related to"
433998
+ description: "Type of the task"
433932
433999
  },
433933
434000
  configuration: {
433934
434001
  type: "object",
@@ -433939,7 +434006,7 @@ var state = {
433939
434006
  linkTemplateScript: {
433940
434007
  type: "string",
433941
434008
  maxLength: 2e3,
433942
- description: "Signing secret of the [Bot](#schema_bot)"
434009
+ description: "Title describing the task"
433943
434010
  },
433944
434011
  required: {
433945
434012
  type: "boolean"
@@ -434549,6 +434616,56 @@ var state = {
434549
434616
  additionalProperties: false
434550
434617
  }
434551
434618
  },
434619
+ Activity: {
434620
+ section: "activity",
434621
+ schema: {
434622
+ type: "object",
434623
+ properties: {
434624
+ id: {
434625
+ type: "string"
434626
+ },
434627
+ description: {
434628
+ type: "string"
434629
+ },
434630
+ taskId: {
434631
+ type: "string"
434632
+ },
434633
+ category: {
434634
+ type: "string",
434635
+ enum: [
434636
+ "unknown",
434637
+ "capture",
434638
+ "bot_message",
434639
+ "user_message",
434640
+ "agent_message",
434641
+ "event",
434642
+ "action",
434643
+ "task_status",
434644
+ "subtask_status",
434645
+ "exception"
434646
+ ]
434647
+ },
434648
+ data: {
434649
+ type: "object",
434650
+ additionalProperties: true
434651
+ },
434652
+ createdAt: {
434653
+ type: "string",
434654
+ format: "date-time",
434655
+ description: "Creation date of the activity in ISO 8601 format"
434656
+ }
434657
+ },
434658
+ required: [
434659
+ "id",
434660
+ "description",
434661
+ "taskId",
434662
+ "category",
434663
+ "data",
434664
+ "createdAt"
434665
+ ],
434666
+ additionalProperties: false
434667
+ }
434668
+ },
434552
434669
  User: {
434553
434670
  section: "user",
434554
434671
  schema: {
@@ -434667,7 +434784,7 @@ var state = {
434667
434784
  type: {
434668
434785
  type: "string",
434669
434786
  maxLength: 200,
434670
- description: "Type of the [Message](#schema_message) represents the resource type that the message is related to"
434787
+ description: "Type of the task"
434671
434788
  },
434672
434789
  payload: {
434673
434790
  type: "object",
@@ -434734,7 +434851,7 @@ var state = {
434734
434851
  type: {
434735
434852
  type: "string",
434736
434853
  maxLength: 200,
434737
- description: "Type of the [Message](#schema_message) represents the resource type that the message is related to"
434854
+ description: "Type of the task"
434738
434855
  },
434739
434856
  payload: {
434740
434857
  type: "object",
@@ -434822,12 +434939,12 @@ var state = {
434822
434939
  name: {
434823
434940
  type: "string",
434824
434941
  maxLength: 200,
434825
- description: "Type of the [Message](#schema_message) represents the resource type that the message is related to"
434942
+ description: "Type of the task"
434826
434943
  },
434827
434944
  type: {
434828
434945
  type: "string",
434829
- enum: ["conversation", "user", "bot", "integration"],
434830
- description: "Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot` or `integration`) that the state is related to"
434946
+ enum: ["conversation", "user", "bot", "task", "integration"],
434947
+ description: "Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `integration`) that the state is related to"
434831
434948
  },
434832
434949
  payload: {
434833
434950
  type: "object",
@@ -434864,7 +434981,7 @@ var state = {
434864
434981
  maxLength: 64,
434865
434982
  description: "Title describing the task"
434866
434983
  },
434867
- instruction: {
434984
+ description: {
434868
434985
  type: "string",
434869
434986
  maxLength: 256,
434870
434987
  description: "All the notes related to the execution of the current task"
@@ -434886,7 +435003,9 @@ var state = {
434886
435003
  "failed",
434887
435004
  "completed",
434888
435005
  "blocked",
434889
- "paused"
435006
+ "paused",
435007
+ "timeout",
435008
+ "cancelled"
434890
435009
  ],
434891
435010
  description: "Status of the task"
434892
435011
  },
@@ -434939,7 +435058,7 @@ var state = {
434939
435058
  required: [
434940
435059
  "id",
434941
435060
  "title",
434942
- "instruction",
435061
+ "description",
434943
435062
  "type",
434944
435063
  "data",
434945
435064
  "status",
@@ -435044,6 +435163,10 @@ var state = {
435044
435163
  index: {
435045
435164
  type: "integer"
435046
435165
  },
435166
+ id: {
435167
+ type: "string",
435168
+ description: "[deprecated] ID of the column."
435169
+ },
435047
435170
  searchable: {
435048
435171
  type: "boolean",
435049
435172
  description: "Indicates if the column is vectorized and searchable."
@@ -435064,7 +435187,8 @@ var state = {
435064
435187
  },
435065
435188
  additionalProperties: {
435066
435189
  type: "boolean",
435067
- enum: [false]
435190
+ enum: [true],
435191
+ description: "Additional properties can be provided, but they will be ignored if no column matches."
435068
435192
  },
435069
435193
  required: {
435070
435194
  type: "array",
@@ -435377,6 +435501,13 @@ var state = {
435377
435501
  name: "helper",
435378
435502
  operations: ["runVrl"]
435379
435503
  },
435504
+ {
435505
+ title: "Activity",
435506
+ description: "",
435507
+ name: "activity",
435508
+ operations: ["listActivities"],
435509
+ schema: "Activity"
435510
+ },
435380
435511
  {
435381
435512
  title: "Tables",
435382
435513
  description: "Operations related to table management.",