@botpress/client 1.24.0 → 1.24.2

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.d.ts CHANGED
@@ -588,6 +588,10 @@ interface CreateEventRequestBody$1 {
588
588
  * ID of the [User](#schema_user) to link the event to.
589
589
  */
590
590
  userId?: string;
591
+ /**
592
+ * ID of the [Workflow](#schema_workflow) to link the event to.
593
+ */
594
+ workflowId?: string;
591
595
  /**
592
596
  * ID of the [Message](#schema_message) to link the event to.
593
597
  */
@@ -698,6 +702,7 @@ interface ListEventsRequestQuery$1 {
698
702
  conversationId?: string;
699
703
  userId?: string;
700
704
  messageId?: string;
705
+ workflowId?: string;
701
706
  status?: "pending" | "ignored" | "processed" | "failed" | "scheduled";
702
707
  }
703
708
  interface ListEventsRequestParams$1 {
@@ -2872,8 +2877,8 @@ declare class Client$8 extends Client$9 {
2872
2877
  } | undefined;
2873
2878
  channel?: string | undefined;
2874
2879
  integrationName?: string | undefined;
2875
- sortField?: ("createdAt" | "updatedAt") | undefined;
2876
- sortDirection?: ("asc" | "desc") | undefined;
2880
+ sortField?: "createdAt" | "updatedAt" | undefined;
2881
+ sortDirection?: "asc" | "desc" | undefined;
2877
2882
  participantIds?: string[] | undefined;
2878
2883
  }) => AsyncCollection<{
2879
2884
  id: string;
@@ -2903,8 +2908,9 @@ declare class Client$8 extends Client$9 {
2903
2908
  type?: string | undefined;
2904
2909
  userId?: string | undefined;
2905
2910
  conversationId?: string | undefined;
2911
+ workflowId?: string | undefined;
2906
2912
  messageId?: string | undefined;
2907
- status?: ("pending" | "ignored" | "processed" | "failed" | "scheduled") | undefined;
2913
+ status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
2908
2914
  }) => AsyncCollection<{
2909
2915
  id: string;
2910
2916
  createdAt: string;
@@ -5445,7 +5451,7 @@ interface CreateBotResponse$1 {
5445
5451
  */
5446
5452
  signingSecret: string;
5447
5453
  /**
5448
- * A mapping of integrations to their configuration
5454
+ * A mapping of integrations to their configuration. If the `x-multiple-integrations` header is present, this object is keyed by integration aliases. Otherwise, this object is keyed by integration ids.
5449
5455
  */
5450
5456
  integrations: {
5451
5457
  [k: string]: {
@@ -6076,7 +6082,7 @@ interface UpdateBotResponse$1 {
6076
6082
  */
6077
6083
  signingSecret: string;
6078
6084
  /**
6079
- * A mapping of integrations to their configuration
6085
+ * A mapping of integrations to their configuration. If the `x-multiple-integrations` header is present, this object is keyed by integration aliases. Otherwise, this object is keyed by integration ids.
6080
6086
  */
6081
6087
  integrations: {
6082
6088
  [k: string]: {
@@ -6539,7 +6545,7 @@ interface GetBotResponse$1 {
6539
6545
  */
6540
6546
  signingSecret: string;
6541
6547
  /**
6542
- * A mapping of integrations to their configuration
6548
+ * A mapping of integrations to their configuration. If the `x-multiple-integrations` header is present, this object is keyed by integration aliases. Otherwise, this object is keyed by integration ids.
6543
6549
  */
6544
6550
  integrations: {
6545
6551
  [k: string]: {
@@ -14204,9 +14210,9 @@ declare class Client$6 extends Client$7 {
14204
14210
  interfaceId?: string | undefined;
14205
14211
  interfaceName?: string | undefined;
14206
14212
  installedByBotId?: string | undefined;
14207
- verificationStatus?: ("unapproved" | "pending" | "approved" | "rejected") | undefined;
14208
- sortBy?: ("popularity" | "name" | "createdAt" | "updatedAt" | "installCount") | undefined;
14209
- direction?: ("asc" | "desc") | undefined;
14213
+ verificationStatus?: "unapproved" | "pending" | "approved" | "rejected" | undefined;
14214
+ sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount" | undefined;
14215
+ direction?: "asc" | "desc" | undefined;
14210
14216
  }) => AsyncCollection<{
14211
14217
  id: string;
14212
14218
  name: string;
@@ -14240,8 +14246,8 @@ declare class Client$6 extends Client$7 {
14240
14246
  tags?: {
14241
14247
  [x: string]: string;
14242
14248
  } | undefined;
14243
- sortField?: ("createdAt" | "updatedAt") | undefined;
14244
- sortDirection?: ("asc" | "desc") | undefined;
14249
+ sortField?: "createdAt" | "updatedAt" | undefined;
14250
+ sortDirection?: "asc" | "desc" | undefined;
14245
14251
  dev?: boolean | undefined;
14246
14252
  }) => AsyncCollection<{
14247
14253
  id: string;
@@ -14296,11 +14302,11 @@ declare class Client$6 extends Client$7 {
14296
14302
  interfaceId?: string | undefined;
14297
14303
  interfaceName?: string | undefined;
14298
14304
  installedByBotId?: string | undefined;
14299
- verificationStatus?: ("unapproved" | "pending" | "approved" | "rejected") | undefined;
14300
- sortBy?: ("popularity" | "name" | "createdAt" | "updatedAt" | "installCount") | undefined;
14301
- direction?: ("asc" | "desc") | undefined;
14305
+ verificationStatus?: "unapproved" | "pending" | "approved" | "rejected" | undefined;
14306
+ sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount" | undefined;
14307
+ direction?: "asc" | "desc" | undefined;
14302
14308
  dev?: boolean | undefined;
14303
- visibility?: ("public" | "private") | undefined;
14309
+ visibility?: "public" | "private" | undefined;
14304
14310
  }) => AsyncCollection<{
14305
14311
  id: string;
14306
14312
  name: string;
@@ -14646,6 +14652,10 @@ interface UpsertFileResponse$1 {
14646
14652
  */
14647
14653
  name?: string;
14648
14654
  };
14655
+ /**
14656
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
14657
+ */
14658
+ indexingStack?: "v1" | "v2";
14649
14659
  /**
14650
14660
  * URL to upload the file content. File content needs to be sent to this URL via a PUT request.
14651
14661
  */
@@ -14768,6 +14778,10 @@ interface ListFilesResponse$1 {
14768
14778
  */
14769
14779
  name?: string;
14770
14780
  };
14781
+ /**
14782
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
14783
+ */
14784
+ indexingStack?: "v1" | "v2";
14771
14785
  }[];
14772
14786
  meta: {
14773
14787
  /**
@@ -14872,6 +14886,10 @@ interface GetFileResponse$1 {
14872
14886
  */
14873
14887
  name?: string;
14874
14888
  };
14889
+ /**
14890
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
14891
+ */
14892
+ indexingStack?: "v1" | "v2";
14875
14893
  };
14876
14894
  }
14877
14895
 
@@ -14990,6 +15008,10 @@ interface UpdateFileMetadataResponse$1 {
14990
15008
  */
14991
15009
  name?: string;
14992
15010
  };
15011
+ /**
15012
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
15013
+ */
15014
+ indexingStack?: "v1" | "v2";
14993
15015
  };
14994
15016
  }
14995
15017
 
@@ -15096,6 +15118,10 @@ interface CopyFileResponse$1 {
15096
15118
  */
15097
15119
  name?: string;
15098
15120
  };
15121
+ /**
15122
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
15123
+ */
15124
+ indexingStack?: "v1" | "v2";
15099
15125
  };
15100
15126
  }
15101
15127
 
@@ -15490,8 +15516,8 @@ declare class Client$4 extends Client$5 implements IClient$2 {
15490
15516
  get list(): {
15491
15517
  files: (props: {
15492
15518
  tags?: any;
15493
- sortField?: ("key" | "size" | "createdAt" | "updatedAt" | "status") | undefined;
15494
- sortDirection?: ("asc" | "desc") | undefined;
15519
+ sortField?: "key" | "size" | "createdAt" | "updatedAt" | "status" | undefined;
15520
+ sortDirection?: "asc" | "desc" | undefined;
15495
15521
  ids?: string[] | undefined;
15496
15522
  }) => AsyncCollection<{
15497
15523
  id: string;
@@ -15518,6 +15544,7 @@ declare class Client$4 extends Client$5 implements IClient$2 {
15518
15544
  id?: string;
15519
15545
  name?: string;
15520
15546
  };
15547
+ indexingStack?: "v1" | "v2";
15521
15548
  }>;
15522
15549
  filePassages: (props: {
15523
15550
  id: string;
@@ -17778,6 +17805,10 @@ interface CreateEventRequestBody {
17778
17805
  * ID of the [User](#schema_user) to link the event to.
17779
17806
  */
17780
17807
  userId?: string;
17808
+ /**
17809
+ * ID of the [Workflow](#schema_workflow) to link the event to.
17810
+ */
17811
+ workflowId?: string;
17781
17812
  /**
17782
17813
  * ID of the [Message](#schema_message) to link the event to.
17783
17814
  */
@@ -17888,6 +17919,7 @@ interface ListEventsRequestQuery {
17888
17919
  conversationId?: string;
17889
17920
  userId?: string;
17890
17921
  messageId?: string;
17922
+ workflowId?: string;
17891
17923
  status?: "pending" | "ignored" | "processed" | "failed" | "scheduled";
17892
17924
  }
17893
17925
  interface ListEventsRequestParams {
@@ -22427,7 +22459,7 @@ interface CreateBotResponse {
22427
22459
  */
22428
22460
  signingSecret: string;
22429
22461
  /**
22430
- * A mapping of integrations to their configuration
22462
+ * A mapping of integrations to their configuration. If the `x-multiple-integrations` header is present, this object is keyed by integration aliases. Otherwise, this object is keyed by integration ids.
22431
22463
  */
22432
22464
  integrations: {
22433
22465
  [k: string]: {
@@ -23058,7 +23090,7 @@ interface UpdateBotResponse {
23058
23090
  */
23059
23091
  signingSecret: string;
23060
23092
  /**
23061
- * A mapping of integrations to their configuration
23093
+ * A mapping of integrations to their configuration. If the `x-multiple-integrations` header is present, this object is keyed by integration aliases. Otherwise, this object is keyed by integration ids.
23062
23094
  */
23063
23095
  integrations: {
23064
23096
  [k: string]: {
@@ -23521,7 +23553,7 @@ interface GetBotResponse {
23521
23553
  */
23522
23554
  signingSecret: string;
23523
23555
  /**
23524
- * A mapping of integrations to their configuration
23556
+ * A mapping of integrations to their configuration. If the `x-multiple-integrations` header is present, this object is keyed by integration aliases. Otherwise, this object is keyed by integration ids.
23525
23557
  */
23526
23558
  integrations: {
23527
23559
  [k: string]: {
@@ -31288,6 +31320,10 @@ interface UpsertFileResponse {
31288
31320
  */
31289
31321
  name?: string;
31290
31322
  };
31323
+ /**
31324
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
31325
+ */
31326
+ indexingStack?: "v1" | "v2";
31291
31327
  /**
31292
31328
  * URL to upload the file content. File content needs to be sent to this URL via a PUT request.
31293
31329
  */
@@ -31410,6 +31446,10 @@ interface ListFilesResponse {
31410
31446
  */
31411
31447
  name?: string;
31412
31448
  };
31449
+ /**
31450
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
31451
+ */
31452
+ indexingStack?: "v1" | "v2";
31413
31453
  }[];
31414
31454
  meta: {
31415
31455
  /**
@@ -31514,6 +31554,10 @@ interface GetFileResponse {
31514
31554
  */
31515
31555
  name?: string;
31516
31556
  };
31557
+ /**
31558
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
31559
+ */
31560
+ indexingStack?: "v1" | "v2";
31517
31561
  };
31518
31562
  }
31519
31563
 
@@ -31632,6 +31676,10 @@ interface UpdateFileMetadataResponse {
31632
31676
  */
31633
31677
  name?: string;
31634
31678
  };
31679
+ /**
31680
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
31681
+ */
31682
+ indexingStack?: "v1" | "v2";
31635
31683
  };
31636
31684
  }
31637
31685
 
@@ -31738,6 +31786,10 @@ interface CopyFileResponse {
31738
31786
  */
31739
31787
  name?: string;
31740
31788
  };
31789
+ /**
31790
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
31791
+ */
31792
+ indexingStack?: "v1" | "v2";
31741
31793
  };
31742
31794
  }
31743
31795
 
@@ -33727,7 +33779,7 @@ interface Bot {
33727
33779
  */
33728
33780
  signingSecret: string;
33729
33781
  /**
33730
- * A mapping of integrations to their configuration
33782
+ * A mapping of integrations to their configuration. If the `x-multiple-integrations` header is present, this object is keyed by integration aliases. Otherwise, this object is keyed by integration ids.
33731
33783
  */
33732
33784
  integrations: {
33733
33785
  [k: string]: {
@@ -35566,6 +35618,10 @@ interface File {
35566
35618
  */
35567
35619
  name?: string;
35568
35620
  };
35621
+ /**
35622
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
35623
+ */
35624
+ indexingStack?: "v1" | "v2";
35569
35625
  }
35570
35626
 
35571
35627
  type ClientProps$1 = {
@@ -35786,8 +35842,8 @@ declare class Client extends Client$1 implements IClient {
35786
35842
  } | undefined;
35787
35843
  channel?: string | undefined;
35788
35844
  integrationName?: string | undefined;
35789
- sortField?: ("createdAt" | "updatedAt") | undefined;
35790
- sortDirection?: ("asc" | "desc") | undefined;
35845
+ sortField?: "createdAt" | "updatedAt" | undefined;
35846
+ sortDirection?: "asc" | "desc" | undefined;
35791
35847
  participantIds?: string[] | undefined;
35792
35848
  }) => AsyncCollection<{
35793
35849
  id: string;
@@ -35817,8 +35873,9 @@ declare class Client extends Client$1 implements IClient {
35817
35873
  type?: string | undefined;
35818
35874
  userId?: string | undefined;
35819
35875
  conversationId?: string | undefined;
35876
+ workflowId?: string | undefined;
35820
35877
  messageId?: string | undefined;
35821
- status?: ("pending" | "ignored" | "processed" | "failed" | "scheduled") | undefined;
35878
+ status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
35822
35879
  }) => AsyncCollection<{
35823
35880
  id: string;
35824
35881
  createdAt: string;
@@ -35904,9 +35961,9 @@ declare class Client extends Client$1 implements IClient {
35904
35961
  interfaceId?: string | undefined;
35905
35962
  interfaceName?: string | undefined;
35906
35963
  installedByBotId?: string | undefined;
35907
- verificationStatus?: ("unapproved" | "pending" | "approved" | "rejected") | undefined;
35908
- sortBy?: ("popularity" | "name" | "createdAt" | "updatedAt" | "installCount") | undefined;
35909
- direction?: ("asc" | "desc") | undefined;
35964
+ verificationStatus?: "unapproved" | "pending" | "approved" | "rejected" | undefined;
35965
+ sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount" | undefined;
35966
+ direction?: "asc" | "desc" | undefined;
35910
35967
  }) => AsyncCollection<{
35911
35968
  id: string;
35912
35969
  name: string;
@@ -35940,8 +35997,8 @@ declare class Client extends Client$1 implements IClient {
35940
35997
  tags?: {
35941
35998
  [x: string]: string;
35942
35999
  } | undefined;
35943
- sortField?: ("createdAt" | "updatedAt") | undefined;
35944
- sortDirection?: ("asc" | "desc") | undefined;
36000
+ sortField?: "createdAt" | "updatedAt" | undefined;
36001
+ sortDirection?: "asc" | "desc" | undefined;
35945
36002
  dev?: boolean | undefined;
35946
36003
  }) => AsyncCollection<{
35947
36004
  id: string;
@@ -35988,11 +36045,11 @@ declare class Client extends Client$1 implements IClient {
35988
36045
  interfaceId?: string | undefined;
35989
36046
  interfaceName?: string | undefined;
35990
36047
  installedByBotId?: string | undefined;
35991
- verificationStatus?: ("unapproved" | "pending" | "approved" | "rejected") | undefined;
35992
- sortBy?: ("popularity" | "name" | "createdAt" | "updatedAt" | "installCount") | undefined;
35993
- direction?: ("asc" | "desc") | undefined;
36048
+ verificationStatus?: "unapproved" | "pending" | "approved" | "rejected" | undefined;
36049
+ sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount" | undefined;
36050
+ direction?: "asc" | "desc" | undefined;
35994
36051
  dev?: boolean | undefined;
35995
- visibility?: ("public" | "private") | undefined;
36052
+ visibility?: "public" | "private" | undefined;
35996
36053
  }) => AsyncCollection<{
35997
36054
  id: string;
35998
36055
  name: string;
@@ -36093,8 +36150,8 @@ declare class Client extends Client$1 implements IClient {
36093
36150
  }>;
36094
36151
  files: (props: {
36095
36152
  tags?: any;
36096
- sortField?: ("key" | "size" | "createdAt" | "updatedAt" | "status") | undefined;
36097
- sortDirection?: ("asc" | "desc") | undefined;
36153
+ sortField?: "key" | "size" | "createdAt" | "updatedAt" | "status" | undefined;
36154
+ sortDirection?: "asc" | "desc" | undefined;
36098
36155
  ids?: string[] | undefined;
36099
36156
  }) => AsyncCollection<{
36100
36157
  id: string;
@@ -36121,6 +36178,7 @@ declare class Client extends Client$1 implements IClient {
36121
36178
  id?: string;
36122
36179
  name?: string;
36123
36180
  };
36181
+ indexingStack?: "v1" | "v2";
36124
36182
  }>;
36125
36183
  filePassages: (props: {
36126
36184
  id: string;