@botpress/api 0.12.3 → 0.12.6

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
@@ -312,6 +312,21 @@ export const state = {
312
312
  "Schedule the Event to be sent at a specific time. Either dateTime or delay must be provided.",
313
313
  additionalProperties: false,
314
314
  },
315
+ conversationId: {
316
+ type: "string",
317
+ description:
318
+ "ID of the [Conversation](#schema_conversation) to link the event to.",
319
+ },
320
+ userId: {
321
+ type: "string",
322
+ description:
323
+ "ID of the [User](#schema_user) to link the event to.",
324
+ },
325
+ messageId: {
326
+ type: "string",
327
+ description:
328
+ "ID of the [Message](#schema_message) to link the event to.",
329
+ },
315
330
  },
316
331
  required: ["type", "payload"],
317
332
  title: "createEventBody",
@@ -385,6 +400,21 @@ export const state = {
385
400
  type: "string",
386
401
  description: "Filter by event type",
387
402
  },
403
+ conversationId: {
404
+ in: "query",
405
+ type: "string",
406
+ description: "Filter by conversation id",
407
+ },
408
+ userId: {
409
+ in: "query",
410
+ type: "string",
411
+ description: "Filter by user id",
412
+ },
413
+ messageId: {
414
+ in: "query",
415
+ type: "string",
416
+ description: "Filter by message id",
417
+ },
388
418
  },
389
419
  response: {
390
420
  description: "Returns a list of [Event](#schema_event) objects",
@@ -1472,7 +1502,7 @@ export const state = {
1472
1502
  properties: {
1473
1503
  id: {
1474
1504
  type: "string",
1475
- description: "Id of the [Integration](#schema_integration)",
1505
+ description: "ID of the [Integration](#schema_integration)",
1476
1506
  },
1477
1507
  name: {
1478
1508
  type: "string",
@@ -4172,6 +4202,9 @@ export const state = {
4172
4202
  identifier: {
4173
4203
  type: "object",
4174
4204
  properties: {
4205
+ fallbackHandlerScript: {
4206
+ type: "string",
4207
+ },
4175
4208
  extractScript: {
4176
4209
  type: "string",
4177
4210
  },
@@ -4558,6 +4591,10 @@ export const state = {
4558
4591
  type: "string",
4559
4592
  nullable: true,
4560
4593
  },
4594
+ fallbackHandlerScript: {
4595
+ type: "string",
4596
+ nullable: true,
4597
+ },
4561
4598
  },
4562
4599
  additionalProperties: false,
4563
4600
  },
@@ -4793,7 +4830,7 @@ export const state = {
4793
4830
  properties: {
4794
4831
  id: {
4795
4832
  type: "string",
4796
- description: "Id of the [Integration](#schema_integration)",
4833
+ description: "ID of the [Integration](#schema_integration)",
4797
4834
  },
4798
4835
  name: {
4799
4836
  type: "string",
@@ -5337,7 +5374,7 @@ export const state = {
5337
5374
  title: "Botpress API",
5338
5375
  description: "API for Botpress Cloud",
5339
5376
  server: "https://api.botpress.cloud",
5340
- version: "0.12.3",
5377
+ version: "0.12.6",
5341
5378
  prefix: "v1",
5342
5379
  },
5343
5380
  errors: [
@@ -5636,6 +5673,9 @@ export const state = {
5636
5673
  webhookId: {
5637
5674
  type: "string",
5638
5675
  },
5676
+ identifier: {
5677
+ type: "string",
5678
+ },
5639
5679
  configuration: {
5640
5680
  type: "object",
5641
5681
  additionalProperties: true,
@@ -5657,7 +5697,7 @@ export const state = {
5657
5697
  },
5658
5698
  id: {
5659
5699
  type: "string",
5660
- description: "Id of the [Integration](#schema_integration)",
5700
+ description: "ID of the [Integration](#schema_integration)",
5661
5701
  },
5662
5702
  createdAt: {
5663
5703
  type: "string",
@@ -5964,7 +6004,7 @@ export const state = {
5964
6004
  properties: {
5965
6005
  id: {
5966
6006
  type: "string",
5967
- description: "Id of the [Integration](#schema_integration)",
6007
+ description: "ID of the [Integration](#schema_integration)",
5968
6008
  },
5969
6009
  createdAt: {
5970
6010
  type: "string",
@@ -5981,6 +6021,11 @@ export const state = {
5981
6021
  identifier: {
5982
6022
  type: "object",
5983
6023
  properties: {
6024
+ fallbackHandlerScript: {
6025
+ type: "string",
6026
+ description:
6027
+ "VRL Script of the [Integration](#schema_integration) to handle incoming requests for a request that doesn't have an identifier",
6028
+ },
5984
6029
  extractScript: {
5985
6030
  type: "string",
5986
6031
  description:
@@ -6708,6 +6753,20 @@ export const state = {
6708
6753
  description:
6709
6754
  "Payload is the content of the event defined by the integration installed on your bot or one of the default events created by our api.",
6710
6755
  },
6756
+ conversationId: {
6757
+ type: "string",
6758
+ description:
6759
+ "ID of the [Conversation](#schema_conversation) to link the event to.",
6760
+ },
6761
+ userId: {
6762
+ type: "string",
6763
+ description: "ID of the [User](#schema_user) to link the event to.",
6764
+ },
6765
+ messageId: {
6766
+ type: "string",
6767
+ description:
6768
+ "ID of the [Message](#schema_message) to link the event to.",
6769
+ },
6711
6770
  },
6712
6771
  required: ["id", "createdAt", "type", "payload"],
6713
6772
  description: "The event object represents an action or an occurrence.",