@botpress/api 0.16.2 → 0.16.3

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
@@ -11,6 +11,7 @@ export type State = opapi.State<
11
11
  | "Usage"
12
12
  | "Issue"
13
13
  | "IssueEvent"
14
+ | "Activity"
14
15
  | "User"
15
16
  | "Conversation"
16
17
  | "Event"
@@ -39,6 +40,7 @@ export type State = opapi.State<
39
40
  | "usage"
40
41
  | "quotas"
41
42
  | "helper"
43
+ | "activity"
42
44
  | "tables"
43
45
  >;
44
46
  export const state = {
@@ -1578,16 +1580,20 @@ export const state = {
1578
1580
  properties: {
1579
1581
  title: {
1580
1582
  type: "string",
1583
+ maxLength: 2000,
1581
1584
  description: "Title describing the task",
1582
1585
  },
1583
- instruction: {
1586
+ description: {
1584
1587
  type: "string",
1588
+ maxLength: 20000,
1585
1589
  description:
1586
1590
  "All the notes related to the execution of the current task",
1587
1591
  },
1588
1592
  type: {
1589
1593
  type: "string",
1590
- description: "Type of the task",
1594
+ maxLength: 200,
1595
+ description:
1596
+ "Unique identifier of the integration that was installed on the bot",
1591
1597
  },
1592
1598
  data: {
1593
1599
  type: "object",
@@ -1622,7 +1628,7 @@ export const state = {
1622
1628
  description: "Tags for the [Task](#schema_task)",
1623
1629
  },
1624
1630
  },
1625
- required: ["title", "type", "conversationId"],
1631
+ required: ["type", "conversationId"],
1626
1632
  title: "createTaskBody",
1627
1633
  additionalProperties: false,
1628
1634
  },
@@ -1668,7 +1674,7 @@ export const state = {
1668
1674
  type: "string",
1669
1675
  description: "Title describing the task",
1670
1676
  },
1671
- instruction: {
1677
+ description: {
1672
1678
  type: "string",
1673
1679
  description:
1674
1680
  "All the notes related to the execution of the current task",
@@ -1693,6 +1699,8 @@ export const state = {
1693
1699
  "completed",
1694
1700
  "blocked",
1695
1701
  "paused",
1702
+ "timeout",
1703
+ "cancelled",
1696
1704
  ],
1697
1705
  description: "Status of the task",
1698
1706
  },
@@ -1790,7 +1798,7 @@ export const state = {
1790
1798
  },
1791
1799
  status: {
1792
1800
  in: "query",
1793
- type: "string",
1801
+ type: "string[]",
1794
1802
  description: "Status",
1795
1803
  enum: [
1796
1804
  "pending",
@@ -1799,6 +1807,8 @@ export const state = {
1799
1807
  "completed",
1800
1808
  "blocked",
1801
1809
  "paused",
1810
+ "timeout",
1811
+ "cancelled",
1802
1812
  ],
1803
1813
  },
1804
1814
  type: {
@@ -5215,7 +5225,7 @@ export const state = {
5215
5225
  linkTemplateScript: {
5216
5226
  type: "string",
5217
5227
  maxLength: 2000,
5218
- description: "Signing secret of the [Bot](#schema_bot)",
5228
+ description: "Title describing the task",
5219
5229
  },
5220
5230
  },
5221
5231
  additionalProperties: false,
@@ -5320,12 +5330,12 @@ export const state = {
5320
5330
  fallbackHandlerScript: {
5321
5331
  type: "string",
5322
5332
  maxLength: 2000,
5323
- description: "Signing secret of the [Bot](#schema_bot)",
5333
+ description: "Title describing the task",
5324
5334
  },
5325
5335
  extractScript: {
5326
5336
  type: "string",
5327
5337
  maxLength: 2000,
5328
- description: "Signing secret of the [Bot](#schema_bot)",
5338
+ description: "Title describing the task",
5329
5339
  },
5330
5340
  },
5331
5341
  additionalProperties: false,
@@ -5588,7 +5598,7 @@ export const state = {
5588
5598
  linkTemplateScript: {
5589
5599
  type: "string",
5590
5600
  maxLength: 2000,
5591
- description: "Signing secret of the [Bot](#schema_bot)",
5601
+ description: "Title describing the task",
5592
5602
  nullable: true,
5593
5603
  },
5594
5604
  required: {
@@ -5719,13 +5729,13 @@ export const state = {
5719
5729
  extractScript: {
5720
5730
  type: "string",
5721
5731
  maxLength: 2000,
5722
- description: "Signing secret of the [Bot](#schema_bot)",
5732
+ description: "Title describing the task",
5723
5733
  nullable: true,
5724
5734
  },
5725
5735
  fallbackHandlerScript: {
5726
5736
  type: "string",
5727
5737
  maxLength: 2000,
5728
- description: "Signing secret of the [Bot](#schema_bot)",
5738
+ description: "Title describing the task",
5729
5739
  nullable: true,
5730
5740
  },
5731
5741
  },
@@ -6342,6 +6352,64 @@ export const state = {
6342
6352
  },
6343
6353
  parameters: {},
6344
6354
  },
6355
+ listActivities: {
6356
+ name: "listActivities",
6357
+ description: "List activities of a task",
6358
+ method: "get",
6359
+ section: "activity",
6360
+ path: "/v1/admin/activities",
6361
+ disableDefaultParameters: {
6362
+ "x-workspace-id": true,
6363
+ },
6364
+ parameters: {
6365
+ nextToken: {
6366
+ in: "query",
6367
+ description:
6368
+ "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
6369
+ type: "string",
6370
+ },
6371
+ taskId: {
6372
+ in: "query",
6373
+ description: "ID of the task to list activities for",
6374
+ type: "string",
6375
+ required: true,
6376
+ },
6377
+ botId: {
6378
+ in: "query",
6379
+ description: "ID of the bot to list activities for",
6380
+ type: "string",
6381
+ required: true,
6382
+ },
6383
+ },
6384
+ response: {
6385
+ description: "Success",
6386
+ schema: {
6387
+ type: "object",
6388
+ properties: {
6389
+ activities: {
6390
+ type: "array",
6391
+ items: {
6392
+ $ref: "#/components/schemas/Activity",
6393
+ },
6394
+ },
6395
+ meta: {
6396
+ type: "object",
6397
+ properties: {
6398
+ nextToken: {
6399
+ type: "string",
6400
+ description:
6401
+ "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.",
6402
+ },
6403
+ },
6404
+ additionalProperties: false,
6405
+ },
6406
+ },
6407
+ required: ["activities", "meta"],
6408
+ title: "listActivitiesResponse",
6409
+ additionalProperties: false,
6410
+ },
6411
+ },
6412
+ },
6345
6413
  introspect: {
6346
6414
  name: "introspect",
6347
6415
  description: "Introspect the API",
@@ -6563,7 +6631,7 @@ export const state = {
6563
6631
  title: "Botpress API",
6564
6632
  description: "API for Botpress Cloud",
6565
6633
  server: "https://api.botpress.cloud",
6566
- version: "0.16.2",
6634
+ version: "0.16.3",
6567
6635
  prefix: "v1",
6568
6636
  },
6569
6637
  errors: [
@@ -6811,6 +6879,7 @@ export const state = {
6811
6879
  getUsageResponse: true,
6812
6880
  listUsageHistoryResponse: true,
6813
6881
  changeAISpendQuotaResponse: true,
6882
+ listActivitiesResponse: true,
6814
6883
  introspectResponse: true,
6815
6884
  createFileResponse: true,
6816
6885
  getFileResponse: true,
@@ -6827,6 +6896,7 @@ export const state = {
6827
6896
  Usage: true,
6828
6897
  Issue: true,
6829
6898
  IssueEvent: true,
6899
+ Activity: true,
6830
6900
  User: true,
6831
6901
  Conversation: true,
6832
6902
  Event: true,
@@ -6866,7 +6936,7 @@ export const state = {
6866
6936
  signingSecret: {
6867
6937
  type: "string",
6868
6938
  maxLength: 2000,
6869
- description: "Signing secret of the [Bot](#schema_bot)",
6939
+ description: "Title describing the task",
6870
6940
  },
6871
6941
  integrations: {
6872
6942
  type: "object",
@@ -6879,30 +6949,27 @@ export const state = {
6879
6949
  name: {
6880
6950
  type: "string",
6881
6951
  maxLength: 200,
6882
- description:
6883
- "Type of the [Message](#schema_message) represents the resource type that the message is related to",
6952
+ description: "Type of the task",
6884
6953
  },
6885
6954
  version: {
6886
6955
  type: "string",
6887
6956
  maxLength: 200,
6888
- description:
6889
- "Type of the [Message](#schema_message) represents the resource type that the message is related to",
6957
+ description: "Type of the task",
6890
6958
  },
6891
6959
  webhookUrl: {
6892
6960
  type: "string",
6893
6961
  maxLength: 2000,
6894
- description: "Signing secret of the [Bot](#schema_bot)",
6962
+ description: "Title describing the task",
6895
6963
  },
6896
6964
  webhookId: {
6897
6965
  type: "string",
6898
6966
  maxLength: 200,
6899
- description:
6900
- "Type of the [Message](#schema_message) represents the resource type that the message is related to",
6967
+ description: "Type of the task",
6901
6968
  },
6902
6969
  identifier: {
6903
6970
  type: "string",
6904
6971
  maxLength: 2000,
6905
- description: "Signing secret of the [Bot](#schema_bot)",
6972
+ description: "Title describing the task",
6906
6973
  },
6907
6974
  configuration: {
6908
6975
  type: "object",
@@ -6922,7 +6989,7 @@ export const state = {
6922
6989
  statusReason: {
6923
6990
  type: "string",
6924
6991
  maxLength: 2000,
6925
- description: "Signing secret of the [Bot](#schema_bot)",
6992
+ description: "Title describing the task",
6926
6993
  nullable: true,
6927
6994
  },
6928
6995
  id: {
@@ -7154,8 +7221,7 @@ export const state = {
7154
7221
  cron: {
7155
7222
  type: "string",
7156
7223
  maxLength: 200,
7157
- description:
7158
- "Type of the [Message](#schema_message) represents the resource type that the message is related to",
7224
+ description: "Type of the task",
7159
7225
  },
7160
7226
  },
7161
7227
  required: ["cron"],
@@ -7164,8 +7230,7 @@ export const state = {
7164
7230
  type: {
7165
7231
  type: "string",
7166
7232
  maxLength: 200,
7167
- description:
7168
- "Type of the [Message](#schema_message) represents the resource type that the message is related to",
7233
+ description: "Type of the task",
7169
7234
  },
7170
7235
  payload: {
7171
7236
  type: "object",
@@ -7332,14 +7397,12 @@ export const state = {
7332
7397
  name: {
7333
7398
  type: "string",
7334
7399
  maxLength: 200,
7335
- description:
7336
- "Type of the [Message](#schema_message) represents the resource type that the message is related to",
7400
+ description: "Type of the task",
7337
7401
  },
7338
7402
  version: {
7339
7403
  type: "string",
7340
7404
  maxLength: 200,
7341
- description:
7342
- "Type of the [Message](#schema_message) represents the resource type that the message is related to",
7405
+ description: "Type of the task",
7343
7406
  },
7344
7407
  configuration: {
7345
7408
  type: "object",
@@ -7350,7 +7413,7 @@ export const state = {
7350
7413
  linkTemplateScript: {
7351
7414
  type: "string",
7352
7415
  maxLength: 2000,
7353
- description: "Signing secret of the [Bot](#schema_bot)",
7416
+ description: "Title describing the task",
7354
7417
  },
7355
7418
  required: {
7356
7419
  type: "boolean",
@@ -7979,6 +8042,56 @@ export const state = {
7979
8042
  additionalProperties: false,
7980
8043
  },
7981
8044
  },
8045
+ Activity: {
8046
+ section: "activity",
8047
+ schema: {
8048
+ type: "object",
8049
+ properties: {
8050
+ id: {
8051
+ type: "string",
8052
+ },
8053
+ description: {
8054
+ type: "string",
8055
+ },
8056
+ taskId: {
8057
+ type: "string",
8058
+ },
8059
+ category: {
8060
+ type: "string",
8061
+ enum: [
8062
+ "unknown",
8063
+ "capture",
8064
+ "bot_message",
8065
+ "user_message",
8066
+ "agent_message",
8067
+ "event",
8068
+ "action",
8069
+ "task_status",
8070
+ "subtask_status",
8071
+ "exception",
8072
+ ],
8073
+ },
8074
+ data: {
8075
+ type: "object",
8076
+ additionalProperties: true,
8077
+ },
8078
+ createdAt: {
8079
+ type: "string",
8080
+ format: "date-time",
8081
+ description: "Creation date of the activity in ISO 8601 format",
8082
+ },
8083
+ },
8084
+ required: [
8085
+ "id",
8086
+ "description",
8087
+ "taskId",
8088
+ "category",
8089
+ "data",
8090
+ "createdAt",
8091
+ ],
8092
+ additionalProperties: false,
8093
+ },
8094
+ },
7982
8095
  User: {
7983
8096
  section: "user",
7984
8097
  schema: {
@@ -8108,8 +8221,7 @@ export const state = {
8108
8221
  type: {
8109
8222
  type: "string",
8110
8223
  maxLength: 200,
8111
- description:
8112
- "Type of the [Message](#schema_message) represents the resource type that the message is related to",
8224
+ description: "Type of the task",
8113
8225
  },
8114
8226
  payload: {
8115
8227
  type: "object",
@@ -8180,8 +8292,7 @@ export const state = {
8180
8292
  type: {
8181
8293
  type: "string",
8182
8294
  maxLength: 200,
8183
- description:
8184
- "Type of the [Message](#schema_message) represents the resource type that the message is related to",
8295
+ description: "Type of the task",
8185
8296
  },
8186
8297
  payload: {
8187
8298
  type: "object",
@@ -8274,8 +8385,7 @@ export const state = {
8274
8385
  name: {
8275
8386
  type: "string",
8276
8387
  maxLength: 200,
8277
- description:
8278
- "Type of the [Message](#schema_message) represents the resource type that the message is related to",
8388
+ description: "Type of the task",
8279
8389
  },
8280
8390
  type: {
8281
8391
  type: "string",
@@ -8320,7 +8430,7 @@ export const state = {
8320
8430
  maxLength: 64,
8321
8431
  description: "Title describing the task",
8322
8432
  },
8323
- instruction: {
8433
+ description: {
8324
8434
  type: "string",
8325
8435
  maxLength: 256,
8326
8436
  description:
@@ -8344,6 +8454,8 @@ export const state = {
8344
8454
  "completed",
8345
8455
  "blocked",
8346
8456
  "paused",
8457
+ "timeout",
8458
+ "cancelled",
8347
8459
  ],
8348
8460
  description: "Status of the task",
8349
8461
  },
@@ -8399,7 +8511,7 @@ export const state = {
8399
8511
  required: [
8400
8512
  "id",
8401
8513
  "title",
8402
- "instruction",
8514
+ "description",
8403
8515
  "type",
8404
8516
  "data",
8405
8517
  "status",
@@ -8530,7 +8642,9 @@ export const state = {
8530
8642
  },
8531
8643
  additionalProperties: {
8532
8644
  type: "boolean",
8533
- enum: [false],
8645
+ enum: [true],
8646
+ description:
8647
+ "Additional properties can be provided, but they will be ignored if no column matches.",
8534
8648
  },
8535
8649
  required: {
8536
8650
  type: "array",
@@ -8848,6 +8962,13 @@ export const state = {
8848
8962
  name: "helper",
8849
8963
  operations: ["runVrl"],
8850
8964
  },
8965
+ {
8966
+ title: "Activity",
8967
+ description: "",
8968
+ name: "activity",
8969
+ operations: ["listActivities"],
8970
+ schema: "Activity",
8971
+ },
8851
8972
  {
8852
8973
  title: "Tables",
8853
8974
  description: "Operations related to table management.",