@botpress/cognitive 0.3.1 → 0.3.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/dist/index.d.ts CHANGED
@@ -1305,6 +1305,10 @@ interface UpsertFileResponse$1 {
1305
1305
  * This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
1306
1306
  */
1307
1307
  name?: string;
1308
+ /**
1309
+ * This field is present if the `type` is "integration". If `type` is "integration", this is the integration instance alias.
1310
+ */
1311
+ alias?: string;
1308
1312
  };
1309
1313
  /**
1310
1314
  * 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.
@@ -2384,6 +2388,8 @@ interface ListMessagesRequestQuery {
2384
2388
  tags?: {
2385
2389
  [k: string]: string;
2386
2390
  };
2391
+ afterDate?: string;
2392
+ beforeDate?: string;
2387
2393
  }
2388
2394
  interface ListMessagesRequestParams {
2389
2395
  }
@@ -4341,6 +4347,10 @@ interface ListPublicIntegrationsResponse {
4341
4347
  * Status of the integration version verification
4342
4348
  */
4343
4349
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
4350
+ /**
4351
+ * The lifecycle status of the integration. When an integration is deprecated, it can no longer be installed.
4352
+ */
4353
+ lifecycleStatus: "published" | "deprecated";
4344
4354
  ownerWorkspace: {
4345
4355
  id: string;
4346
4356
  handle: string | null;
@@ -4779,6 +4789,10 @@ interface GetPublicIntegrationByIdResponse {
4779
4789
  * Status of the integration version verification
4780
4790
  */
4781
4791
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
4792
+ /**
4793
+ * The lifecycle status of the integration. When an integration is deprecated, it can no longer be installed.
4794
+ */
4795
+ lifecycleStatus: "published" | "deprecated";
4782
4796
  /**
4783
4797
  * Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
4784
4798
  */
@@ -5191,6 +5205,10 @@ interface GetPublicIntegrationResponse {
5191
5205
  * Status of the integration version verification
5192
5206
  */
5193
5207
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
5208
+ /**
5209
+ * The lifecycle status of the integration. When an integration is deprecated, it can no longer be installed.
5210
+ */
5211
+ lifecycleStatus: "published" | "deprecated";
5194
5212
  /**
5195
5213
  * Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
5196
5214
  */
@@ -5266,6 +5284,10 @@ interface ListPublicPluginsResponse {
5266
5284
  * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
5267
5285
  */
5268
5286
  visibility: "public" | "private" | "unlisted";
5287
+ /**
5288
+ * The lifecycle status of the plugin. When a plugin is deprecated, it can no longer be installed.
5289
+ */
5290
+ lifecycleStatus: "published" | "deprecated";
5269
5291
  }[];
5270
5292
  meta: {
5271
5293
  /**
@@ -5488,6 +5510,10 @@ interface GetPublicPluginByIdResponse {
5488
5510
  * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
5489
5511
  */
5490
5512
  visibility: "public" | "private" | "unlisted";
5513
+ /**
5514
+ * The lifecycle status of the plugin. When a plugin is deprecated, it can no longer be installed.
5515
+ */
5516
+ lifecycleStatus: "published" | "deprecated";
5491
5517
  };
5492
5518
  }
5493
5519
 
@@ -5713,6 +5739,10 @@ interface GetDereferencedPublicPluginByIdResponse {
5713
5739
  * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
5714
5740
  */
5715
5741
  visibility: "public" | "private" | "unlisted";
5742
+ /**
5743
+ * The lifecycle status of the plugin. When a plugin is deprecated, it can no longer be installed.
5744
+ */
5745
+ lifecycleStatus: "published" | "deprecated";
5716
5746
  };
5717
5747
  }
5718
5748
 
@@ -5930,6 +5960,10 @@ interface GetPublicPluginResponse {
5930
5960
  * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
5931
5961
  */
5932
5962
  visibility: "public" | "private" | "unlisted";
5963
+ /**
5964
+ * The lifecycle status of the plugin. When a plugin is deprecated, it can no longer be installed.
5965
+ */
5966
+ lifecycleStatus: "published" | "deprecated";
5933
5967
  };
5934
5968
  }
5935
5969
 
@@ -6534,6 +6568,10 @@ interface CreateBotRequestBody {
6534
6568
  * Optional name for the bot, if not provided will be auto-generated
6535
6569
  */
6536
6570
  name?: string;
6571
+ /**
6572
+ * Optional description for the bot
6573
+ */
6574
+ description?: string;
6537
6575
  /**
6538
6576
  * Media files associated with the [Bot](#schema_bot)
6539
6577
  */
@@ -6633,6 +6671,10 @@ interface CreateBotResponse {
6633
6671
  * Status of the integration version verification
6634
6672
  */
6635
6673
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
6674
+ /**
6675
+ * The lifecycle status of the integration. When an integration is deprecated, it can no longer be installed.
6676
+ */
6677
+ lifecycleStatus: "published" | "deprecated";
6636
6678
  };
6637
6679
  };
6638
6680
  /**
@@ -6709,6 +6751,10 @@ interface CreateBotResponse {
6709
6751
  * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
6710
6752
  */
6711
6753
  visibility: "public" | "private" | "unlisted";
6754
+ /**
6755
+ * The lifecycle status of the plugin. When a plugin is deprecated, it can no longer be installed.
6756
+ */
6757
+ lifecycleStatus: "published" | "deprecated";
6712
6758
  };
6713
6759
  };
6714
6760
  /**
@@ -6919,6 +6965,10 @@ interface CreateBotResponse {
6919
6965
  * Name of the [Bot](#schema_bot)
6920
6966
  */
6921
6967
  name: string;
6968
+ /**
6969
+ * Description of the [Bot](#schema_bot)
6970
+ */
6971
+ description?: string;
6922
6972
  /**
6923
6973
  * Last deployment date of the [Bot](#schema_bot) in the ISO 8601 format
6924
6974
  */
@@ -7201,6 +7251,10 @@ interface UpdateBotRequestBody {
7201
7251
  * Optional name for the bot, if not provided will be auto-generated
7202
7252
  */
7203
7253
  name?: string;
7254
+ /**
7255
+ * Optional description for the bot
7256
+ */
7257
+ description?: string;
7204
7258
  /**
7205
7259
  * Media files associated with the [Bot](#schema_bot)
7206
7260
  */
@@ -7297,6 +7351,10 @@ interface UpdateBotResponse {
7297
7351
  * Status of the integration version verification
7298
7352
  */
7299
7353
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
7354
+ /**
7355
+ * The lifecycle status of the integration. When an integration is deprecated, it can no longer be installed.
7356
+ */
7357
+ lifecycleStatus: "published" | "deprecated";
7300
7358
  };
7301
7359
  };
7302
7360
  /**
@@ -7373,6 +7431,10 @@ interface UpdateBotResponse {
7373
7431
  * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
7374
7432
  */
7375
7433
  visibility: "public" | "private" | "unlisted";
7434
+ /**
7435
+ * The lifecycle status of the plugin. When a plugin is deprecated, it can no longer be installed.
7436
+ */
7437
+ lifecycleStatus: "published" | "deprecated";
7376
7438
  };
7377
7439
  };
7378
7440
  /**
@@ -7583,6 +7645,10 @@ interface UpdateBotResponse {
7583
7645
  * Name of the [Bot](#schema_bot)
7584
7646
  */
7585
7647
  name: string;
7648
+ /**
7649
+ * Description of the [Bot](#schema_bot)
7650
+ */
7651
+ description?: string;
7586
7652
  /**
7587
7653
  * Last deployment date of the [Bot](#schema_bot) in the ISO 8601 format
7588
7654
  */
@@ -7776,6 +7842,10 @@ interface GetBotResponse {
7776
7842
  * Status of the integration version verification
7777
7843
  */
7778
7844
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
7845
+ /**
7846
+ * The lifecycle status of the integration. When an integration is deprecated, it can no longer be installed.
7847
+ */
7848
+ lifecycleStatus: "published" | "deprecated";
7779
7849
  };
7780
7850
  };
7781
7851
  /**
@@ -7852,6 +7922,10 @@ interface GetBotResponse {
7852
7922
  * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
7853
7923
  */
7854
7924
  visibility: "public" | "private" | "unlisted";
7925
+ /**
7926
+ * The lifecycle status of the plugin. When a plugin is deprecated, it can no longer be installed.
7927
+ */
7928
+ lifecycleStatus: "published" | "deprecated";
7855
7929
  };
7856
7930
  };
7857
7931
  /**
@@ -8062,6 +8136,10 @@ interface GetBotResponse {
8062
8136
  * Name of the [Bot](#schema_bot)
8063
8137
  */
8064
8138
  name: string;
8139
+ /**
8140
+ * Description of the [Bot](#schema_bot)
8141
+ */
8142
+ description?: string;
8065
8143
  /**
8066
8144
  * Last deployment date of the [Bot](#schema_bot) in the ISO 8601 format
8067
8145
  */
@@ -10079,6 +10157,10 @@ interface CreateIntegrationResponse {
10079
10157
  * Status of the integration version verification
10080
10158
  */
10081
10159
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
10160
+ /**
10161
+ * The lifecycle status of the integration. When an integration is deprecated, it can no longer be installed.
10162
+ */
10163
+ lifecycleStatus: "published" | "deprecated";
10082
10164
  /**
10083
10165
  * Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
10084
10166
  */
@@ -11155,6 +11237,10 @@ interface UpdateIntegrationResponse {
11155
11237
  * Status of the integration version verification
11156
11238
  */
11157
11239
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
11240
+ /**
11241
+ * The lifecycle status of the integration. When an integration is deprecated, it can no longer be installed.
11242
+ */
11243
+ lifecycleStatus: "published" | "deprecated";
11158
11244
  /**
11159
11245
  * Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
11160
11246
  */
@@ -11568,6 +11654,10 @@ interface ListIntegrationsResponse {
11568
11654
  * Status of the integration version verification
11569
11655
  */
11570
11656
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
11657
+ /**
11658
+ * The lifecycle status of the integration. When an integration is deprecated, it can no longer be installed.
11659
+ */
11660
+ lifecycleStatus: "published" | "deprecated";
11571
11661
  /**
11572
11662
  * Metadata about which fields matched the search criteria
11573
11663
  */
@@ -12002,6 +12092,10 @@ interface GetIntegrationResponse {
12002
12092
  * Status of the integration version verification
12003
12093
  */
12004
12094
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
12095
+ /**
12096
+ * The lifecycle status of the integration. When an integration is deprecated, it can no longer be installed.
12097
+ */
12098
+ lifecycleStatus: "published" | "deprecated";
12005
12099
  /**
12006
12100
  * Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
12007
12101
  */
@@ -12434,6 +12528,10 @@ interface GetIntegrationByNameResponse {
12434
12528
  * Status of the integration version verification
12435
12529
  */
12436
12530
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
12531
+ /**
12532
+ * The lifecycle status of the integration. When an integration is deprecated, it can no longer be installed.
12533
+ */
12534
+ lifecycleStatus: "published" | "deprecated";
12437
12535
  /**
12438
12536
  * Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
12439
12537
  */
@@ -13903,6 +14001,10 @@ interface CreatePluginResponse {
13903
14001
  * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
13904
14002
  */
13905
14003
  visibility: "public" | "private" | "unlisted";
14004
+ /**
14005
+ * The lifecycle status of the plugin. When a plugin is deprecated, it can no longer be installed.
14006
+ */
14007
+ lifecycleStatus: "published" | "deprecated";
13906
14008
  };
13907
14009
  }
13908
14010
 
@@ -14119,6 +14221,10 @@ interface GetPluginResponse {
14119
14221
  * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
14120
14222
  */
14121
14223
  visibility: "public" | "private" | "unlisted";
14224
+ /**
14225
+ * The lifecycle status of the plugin. When a plugin is deprecated, it can no longer be installed.
14226
+ */
14227
+ lifecycleStatus: "published" | "deprecated";
14122
14228
  };
14123
14229
  }
14124
14230
 
@@ -14344,6 +14450,10 @@ interface GetDereferencedPluginResponse {
14344
14450
  * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
14345
14451
  */
14346
14452
  visibility: "public" | "private" | "unlisted";
14453
+ /**
14454
+ * The lifecycle status of the plugin. When a plugin is deprecated, it can no longer be installed.
14455
+ */
14456
+ lifecycleStatus: "published" | "deprecated";
14347
14457
  };
14348
14458
  }
14349
14459
 
@@ -14561,6 +14671,10 @@ interface GetPluginByNameResponse {
14561
14671
  * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
14562
14672
  */
14563
14673
  visibility: "public" | "private" | "unlisted";
14674
+ /**
14675
+ * The lifecycle status of the plugin. When a plugin is deprecated, it can no longer be installed.
14676
+ */
14677
+ lifecycleStatus: "published" | "deprecated";
14564
14678
  };
14565
14679
  }
14566
14680
 
@@ -14981,6 +15095,10 @@ interface UpdatePluginResponse {
14981
15095
  * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
14982
15096
  */
14983
15097
  visibility: "public" | "private" | "unlisted";
15098
+ /**
15099
+ * The lifecycle status of the plugin. When a plugin is deprecated, it can no longer be installed.
15100
+ */
15101
+ lifecycleStatus: "published" | "deprecated";
14984
15102
  };
14985
15103
  }
14986
15104
 
@@ -15056,6 +15174,10 @@ interface ListPluginsResponse {
15056
15174
  * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
15057
15175
  */
15058
15176
  visibility: "public" | "private" | "unlisted";
15177
+ /**
15178
+ * The lifecycle status of the plugin. When a plugin is deprecated, it can no longer be installed.
15179
+ */
15180
+ lifecycleStatus: "published" | "deprecated";
15059
15181
  }[];
15060
15182
  meta: {
15061
15183
  /**
@@ -15555,6 +15677,10 @@ interface UpsertFileResponse {
15555
15677
  * This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
15556
15678
  */
15557
15679
  name?: string;
15680
+ /**
15681
+ * This field is present if the `type` is "integration". If `type` is "integration", this is the integration instance alias.
15682
+ */
15683
+ alias?: string;
15558
15684
  };
15559
15685
  /**
15560
15686
  * 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.
@@ -15681,6 +15807,10 @@ interface ListFilesResponse {
15681
15807
  * This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
15682
15808
  */
15683
15809
  name?: string;
15810
+ /**
15811
+ * This field is present if the `type` is "integration". If `type` is "integration", this is the integration instance alias.
15812
+ */
15813
+ alias?: string;
15684
15814
  };
15685
15815
  /**
15686
15816
  * 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.
@@ -15789,6 +15919,10 @@ interface GetFileResponse {
15789
15919
  * This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
15790
15920
  */
15791
15921
  name?: string;
15922
+ /**
15923
+ * This field is present if the `type` is "integration". If `type` is "integration", this is the integration instance alias.
15924
+ */
15925
+ alias?: string;
15792
15926
  };
15793
15927
  /**
15794
15928
  * 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.
@@ -15911,6 +16045,10 @@ interface UpdateFileMetadataResponse {
15911
16045
  * This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
15912
16046
  */
15913
16047
  name?: string;
16048
+ /**
16049
+ * This field is present if the `type` is "integration". If `type` is "integration", this is the integration instance alias.
16050
+ */
16051
+ alias?: string;
15914
16052
  };
15915
16053
  /**
15916
16054
  * 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.
@@ -16021,6 +16159,10 @@ interface CopyFileResponse {
16021
16159
  * This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
16022
16160
  */
16023
16161
  name?: string;
16162
+ /**
16163
+ * This field is present if the `type` is "integration". If `type` is "integration", this is the integration instance alias.
16164
+ */
16165
+ alias?: string;
16024
16166
  };
16025
16167
  /**
16026
16168
  * 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.
@@ -16407,6 +16549,10 @@ interface ListTablesResponse {
16407
16549
  * A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.
16408
16550
  */
16409
16551
  frozen?: boolean;
16552
+ /**
16553
+ * Designate a column as the primary unique identifier for this table. When set, a unique index is automatically created on this column, enabling significantly faster upsert operations. All values in this column must be unique across the table. When set to null, the key index is removed.
16554
+ */
16555
+ keyColumn?: string | null;
16410
16556
  schema: {
16411
16557
  $schema?: string;
16412
16558
  /**
@@ -16552,6 +16698,10 @@ interface GetTableResponse {
16552
16698
  * A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.
16553
16699
  */
16554
16700
  frozen?: boolean;
16701
+ /**
16702
+ * Designate a column as the primary unique identifier for this table. When set, a unique index is automatically created on this column, enabling significantly faster upsert operations. All values in this column must be unique across the table. When set to null, the key index is removed.
16703
+ */
16704
+ keyColumn?: string | null;
16555
16705
  schema: {
16556
16706
  $schema?: string;
16557
16707
  /**
@@ -16697,6 +16847,10 @@ interface GetOrCreateTableRequestBody {
16697
16847
  * A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.
16698
16848
  */
16699
16849
  frozen?: boolean;
16850
+ /**
16851
+ * Designate a column as the primary unique identifier for this table. When set, a unique index is automatically created on this column, enabling significantly faster upsert operations. All values in this column must be unique across the table. When set to null, the key index is removed.
16852
+ */
16853
+ keyColumn?: string | null;
16700
16854
  /**
16701
16855
  * Provide an object or a JSON schema to define the columns of the table. A maximum of 20 keys in the object/schema is allowed.
16702
16856
  */
@@ -16733,6 +16887,10 @@ interface GetOrCreateTableResponse {
16733
16887
  * A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.
16734
16888
  */
16735
16889
  frozen?: boolean;
16890
+ /**
16891
+ * Designate a column as the primary unique identifier for this table. When set, a unique index is automatically created on this column, enabling significantly faster upsert operations. All values in this column must be unique across the table. When set to null, the key index is removed.
16892
+ */
16893
+ keyColumn?: string | null;
16736
16894
  schema: {
16737
16895
  $schema?: string;
16738
16896
  /**
@@ -16885,6 +17043,10 @@ interface CreateTableRequestBody {
16885
17043
  * A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.
16886
17044
  */
16887
17045
  frozen?: boolean;
17046
+ /**
17047
+ * Designate a column as the primary unique identifier for this table. When set, a unique index is automatically created on this column, enabling significantly faster upsert operations. All values in this column must be unique across the table. When set to null, the key index is removed.
17048
+ */
17049
+ keyColumn?: string | null;
16888
17050
  /**
16889
17051
  * Provide an object or a JSON schema to define the columns of the table. A maximum of 20 keys in the object/schema is allowed.
16890
17052
  */
@@ -16921,6 +17083,10 @@ interface CreateTableResponse {
16921
17083
  * A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.
16922
17084
  */
16923
17085
  frozen?: boolean;
17086
+ /**
17087
+ * Designate a column as the primary unique identifier for this table. When set, a unique index is automatically created on this column, enabling significantly faster upsert operations. All values in this column must be unique across the table. When set to null, the key index is removed.
17088
+ */
17089
+ keyColumn?: string | null;
16924
17090
  schema: {
16925
17091
  $schema?: string;
16926
17092
  /**
@@ -17075,6 +17241,10 @@ interface DuplicateTableResponse {
17075
17241
  * A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.
17076
17242
  */
17077
17243
  frozen?: boolean;
17244
+ /**
17245
+ * Designate a column as the primary unique identifier for this table. When set, a unique index is automatically created on this column, enabling significantly faster upsert operations. All values in this column must be unique across the table. When set to null, the key index is removed.
17246
+ */
17247
+ keyColumn?: string | null;
17078
17248
  schema: {
17079
17249
  $schema?: string;
17080
17250
  /**
@@ -17293,6 +17463,10 @@ interface UpdateTableRequestBody {
17293
17463
  * A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.
17294
17464
  */
17295
17465
  frozen?: boolean;
17466
+ /**
17467
+ * Designate a column as the primary unique identifier for this table. When set, a unique index is automatically created on this column, enabling significantly faster upsert operations. All values in this column must be unique across the table. When set to null, the key index is removed.
17468
+ */
17469
+ keyColumn?: string | null;
17296
17470
  /**
17297
17471
  * Provide an object or a JSON schema to define the columns of the table. A maximum of 20 keys in the object/schema is allowed.
17298
17472
  */
@@ -17333,6 +17507,10 @@ interface UpdateTableResponse {
17333
17507
  * A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.
17334
17508
  */
17335
17509
  frozen?: boolean;
17510
+ /**
17511
+ * Designate a column as the primary unique identifier for this table. When set, a unique index is automatically created on this column, enabling significantly faster upsert operations. All values in this column must be unique across the table. When set to null, the key index is removed.
17512
+ */
17513
+ keyColumn?: string | null;
17336
17514
  schema: {
17337
17515
  $schema?: string;
17338
17516
  /**
@@ -17490,6 +17668,10 @@ interface RenameTableColumnResponse {
17490
17668
  * A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.
17491
17669
  */
17492
17670
  frozen?: boolean;
17671
+ /**
17672
+ * Designate a column as the primary unique identifier for this table. When set, a unique index is automatically created on this column, enabling significantly faster upsert operations. All values in this column must be unique across the table. When set to null, the key index is removed.
17673
+ */
17674
+ keyColumn?: string | null;
17493
17675
  schema: {
17494
17676
  $schema?: string;
17495
17677
  /**
@@ -18281,6 +18463,8 @@ declare class Client extends Client$1 implements IClient {
18281
18463
  tags?: {
18282
18464
  [x: string]: string;
18283
18465
  } | undefined;
18466
+ afterDate?: string | undefined;
18467
+ beforeDate?: string | undefined;
18284
18468
  conversationId?: string | undefined;
18285
18469
  }) => AsyncCollection<{
18286
18470
  id: string;
@@ -18365,6 +18549,7 @@ declare class Client extends Client$1 implements IClient {
18365
18549
  public: boolean;
18366
18550
  visibility: "public" | "private" | "unlisted";
18367
18551
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
18552
+ lifecycleStatus: "published" | "deprecated";
18368
18553
  ownerWorkspace: {
18369
18554
  id: string;
18370
18555
  handle: string | null;
@@ -18451,6 +18636,7 @@ declare class Client extends Client$1 implements IClient {
18451
18636
  public: boolean;
18452
18637
  visibility: "public" | "private" | "unlisted";
18453
18638
  verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
18639
+ lifecycleStatus: "published" | "deprecated";
18454
18640
  matchedOn?: {
18455
18641
  name?: boolean;
18456
18642
  title?: boolean;
@@ -18509,6 +18695,7 @@ declare class Client extends Client$1 implements IClient {
18509
18695
  readmeUrl: string;
18510
18696
  public: boolean;
18511
18697
  visibility: "public" | "private" | "unlisted";
18698
+ lifecycleStatus: "published" | "deprecated";
18512
18699
  }>;
18513
18700
  publicPlugins: (props: {
18514
18701
  name?: string | undefined;
@@ -18525,6 +18712,7 @@ declare class Client extends Client$1 implements IClient {
18525
18712
  readmeUrl: string;
18526
18713
  public: boolean;
18527
18714
  visibility: "public" | "private" | "unlisted";
18715
+ lifecycleStatus: "published" | "deprecated";
18528
18716
  }>;
18529
18717
  activities: (props: {
18530
18718
  botId: string;
@@ -18568,6 +18756,7 @@ declare class Client extends Client$1 implements IClient {
18568
18756
  type: "bot" | "integration" | "user";
18569
18757
  id?: string;
18570
18758
  name?: string;
18759
+ alias?: string;
18571
18760
  };
18572
18761
  indexingStack?: "v1" | "v2";
18573
18762
  }>;
@@ -19171,7 +19360,7 @@ declare class Cognitive {
19171
19360
  private _generateContent;
19172
19361
  }
19173
19362
 
19174
- type Models = 'auto' | 'best' | 'fast' | 'anthropic:claude-3-5-haiku-20241022' | 'anthropic:claude-3-7-sonnet-20250219' | 'anthropic:claude-3-haiku-20240307' | 'anthropic:claude-haiku-4-5-20251001' | 'anthropic:claude-haiku-4-5-reasoning-20251001' | 'anthropic:claude-sonnet-4-20250514' | 'anthropic:claude-sonnet-4-5-20250929' | 'cerebras:gpt-oss-120b' | 'cerebras:llama-4-scout-17b-16e-instruct' | 'cerebras:llama3.1-8b' | 'cerebras:llama3.3-70b' | 'cerebras:qwen-3-32b' | 'fireworks-ai:deepseek-r1-0528' | 'fireworks-ai:deepseek-v3-0324' | 'fireworks-ai:gpt-oss-120b' | 'fireworks-ai:gpt-oss-20b' | 'fireworks-ai:llama-v3p1-8b-instruct' | 'fireworks-ai:llama-v3p3-70b-instruct' | 'fireworks-ai:llama4-maverick-instruct-basic' | 'fireworks-ai:llama4-scout-instruct-basic' | 'google-ai:gemini-2.0-flash' | 'google-ai:gemini-2.5-flash' | 'google-ai:gemini-2.5-pro' | 'groq:gpt-oss-120b' | 'groq:gpt-oss-20b' | 'groq:llama-3.1-8b-instant' | 'groq:llama-3.3-70b-versatile' | 'openai:gpt-4.1-2025-04-14' | 'openai:gpt-4.1-mini-2025-04-14' | 'openai:gpt-4.1-nano-2025-04-14' | 'openai:gpt-4o-2024-11-20' | 'openai:gpt-4o-mini-2024-07-18' | 'openai:gpt-5-2025-08-07' | 'openai:gpt-5-mini-2025-08-07' | 'openai:gpt-5-nano-2025-08-07' | 'openai:gpt-5.1-2025-11-13' | 'openai:o1-2024-12-17' | 'openai:o1-mini-2024-09-12' | 'openai:o3-2025-04-16' | 'openai:o3-mini-2025-01-31' | 'openai:o4-mini-2025-04-16' | 'openrouter:gpt-oss-120b' | 'xai:grok-3' | 'xai:grok-3-mini' | 'xai:grok-4-0709' | 'xai:grok-4-fast-non-reasoning' | 'xai:grok-4-fast-reasoning' | 'xai:grok-code-fast-1' | 'openai:gpt-5' | 'openai:gpt-5-mini' | 'openai:gpt-5-nano' | 'openai:o4-mini' | 'openai:o3' | 'openai:gpt-4.1' | 'openai:gpt-4.1-mini' | 'openai:gpt-4.1-nano' | 'openai:o3-mini' | 'openai:o1-mini' | 'openai:gpt-4o-mini' | 'openai:gpt-4o' | 'anthropic:claude-sonnet-4-5' | 'anthropic:claude-sonnet-4' | 'anthropic:claude-sonnet-4-reasoning' | 'anthropic:claude-haiku-4-5' | 'anthropic:claude-haiku-4-5-reasoning' | 'google-ai:models/gemini-2.0-flash' | 'groq:openai/gpt-oss-20b' | 'groq:openai/gpt-oss-120b' | 'fireworks-ai:accounts/fireworks/models/gpt-oss-20b' | 'fireworks-ai:accounts/fireworks/models/gpt-oss-120b' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1-0528' | 'fireworks-ai:accounts/fireworks/models/deepseek-v3-0324' | 'fireworks-ai:accounts/fireworks/models/llama4-maverick-instruct-basic' | 'fireworks-ai:accounts/fireworks/models/llama4-scout-instruct-basic' | 'fireworks-ai:accounts/fireworks/models/llama-v3p3-70b-instruct' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1-basic' | 'fireworks-ai:accounts/fireworks/models/deepseek-v3' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-405b-instruct' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-70b-instruct' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-8b-instruct' | 'fireworks-ai:accounts/fireworks/models/mixtral-8x22b-instruct' | 'fireworks-ai:accounts/fireworks/models/mixtral-8x7b-instruct' | 'fireworks-ai:accounts/fireworks/models/mythomax-l2-13b' | 'fireworks-ai:accounts/fireworks/models/gemma2-9b-it' | ({} & string);
19363
+ type Models = 'auto' | 'best' | 'fast' | 'anthropic:claude-3-5-haiku-20241022' | 'anthropic:claude-3-7-sonnet-20250219' | 'anthropic:claude-3-haiku-20240307' | 'anthropic:claude-haiku-4-5-20251001' | 'anthropic:claude-haiku-4-5-reasoning-20251001' | 'anthropic:claude-sonnet-4-20250514' | 'anthropic:claude-sonnet-4-5-20250929' | 'cerebras:gpt-oss-120b' | 'cerebras:llama-4-scout-17b-16e-instruct' | 'cerebras:llama3.1-8b' | 'cerebras:llama3.3-70b' | 'cerebras:qwen-3-32b' | 'fireworks-ai:deepseek-r1-0528' | 'fireworks-ai:deepseek-v3-0324' | 'fireworks-ai:gpt-oss-120b' | 'fireworks-ai:gpt-oss-20b' | 'fireworks-ai:llama-v3p1-8b-instruct' | 'fireworks-ai:llama-v3p3-70b-instruct' | 'fireworks-ai:llama4-maverick-instruct-basic' | 'fireworks-ai:llama4-scout-instruct-basic' | 'google-ai:gemini-2.0-flash' | 'google-ai:gemini-2.5-flash' | 'google-ai:gemini-2.5-pro' | 'groq:gpt-oss-120b' | 'groq:gpt-oss-20b' | 'groq:llama-3.1-8b-instant' | 'groq:llama-3.3-70b-versatile' | 'openai:gpt-4.1-2025-04-14' | 'openai:gpt-4.1-mini-2025-04-14' | 'openai:gpt-4.1-nano-2025-04-14' | 'openai:gpt-4o-2024-11-20' | 'openai:gpt-4o-mini-2024-07-18' | 'openai:gpt-5-2025-08-07' | 'openai:gpt-5-mini-2025-08-07' | 'openai:gpt-5-nano-2025-08-07' | 'openai:gpt-5.1-2025-11-13' | 'openai:gpt-5.2-2025-12-11' | 'openai:o1-2024-12-17' | 'openai:o1-mini-2024-09-12' | 'openai:o3-2025-04-16' | 'openai:o3-mini-2025-01-31' | 'openai:o4-mini-2025-04-16' | 'openrouter:gpt-oss-120b' | 'xai:grok-3' | 'xai:grok-3-mini' | 'xai:grok-4-0709' | 'xai:grok-4-fast-non-reasoning' | 'xai:grok-4-fast-reasoning' | 'xai:grok-code-fast-1' | 'openai:gpt-5' | 'openai:gpt-5-mini' | 'openai:gpt-5-nano' | 'openai:o4-mini' | 'openai:o3' | 'openai:gpt-4.1' | 'openai:gpt-4.1-mini' | 'openai:gpt-4.1-nano' | 'openai:o3-mini' | 'openai:o1-mini' | 'openai:gpt-4o-mini' | 'openai:gpt-4o' | 'anthropic:claude-sonnet-4-5' | 'anthropic:claude-sonnet-4' | 'anthropic:claude-sonnet-4-reasoning' | 'anthropic:claude-haiku-4-5' | 'anthropic:claude-haiku-4-5-reasoning' | 'google-ai:models/gemini-2.0-flash' | 'groq:openai/gpt-oss-20b' | 'groq:openai/gpt-oss-120b' | 'fireworks-ai:accounts/fireworks/models/gpt-oss-20b' | 'fireworks-ai:accounts/fireworks/models/gpt-oss-120b' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1-0528' | 'fireworks-ai:accounts/fireworks/models/deepseek-v3-0324' | 'fireworks-ai:accounts/fireworks/models/llama4-maverick-instruct-basic' | 'fireworks-ai:accounts/fireworks/models/llama4-scout-instruct-basic' | 'fireworks-ai:accounts/fireworks/models/llama-v3p3-70b-instruct' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1-basic' | 'fireworks-ai:accounts/fireworks/models/deepseek-v3' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-405b-instruct' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-70b-instruct' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-8b-instruct' | 'fireworks-ai:accounts/fireworks/models/mixtral-8x22b-instruct' | 'fireworks-ai:accounts/fireworks/models/mixtral-8x7b-instruct' | 'fireworks-ai:accounts/fireworks/models/mythomax-l2-13b' | 'fireworks-ai:accounts/fireworks/models/gemma2-9b-it' | ({} & string);
19175
19364
  type CognitiveRequest = {
19176
19365
  /**
19177
19366
  * @minItems 1
package/dist/index.mjs CHANGED
@@ -605,10 +605,6 @@ var getExtendedClient = (_client) => {
605
605
  if (typeof client.constructor !== "function" || typeof client.callAction !== "function" || !client.config || typeof client.config !== "object" || !client.config.headers) {
606
606
  throw new Error("Client must be a valid instance of a Botpress client (@botpress/client)");
607
607
  }
608
- const botId = client.config.headers["x-bot-id"];
609
- if (!botId?.length) {
610
- throw new Error("Client must be instanciated with Bot ID");
611
- }
612
608
  const clone = () => {
613
609
  const c = client;
614
610
  if (c.clone && typeof c.clone === "function") {
@@ -618,7 +614,6 @@ var getExtendedClient = (_client) => {
618
614
  };
619
615
  return {
620
616
  ...client,
621
- botId,
622
617
  axios: client.axiosInstance,
623
618
  clone,
624
619
  abortable: (signal) => {
@@ -636,6 +631,21 @@ import axios from "axios";
636
631
 
637
632
  // src/cognitive-v2/models.ts
638
633
  var models = {
634
+ "openai:gpt-5.2-2025-12-11": {
635
+ id: "openai:gpt-5.2-2025-12-11",
636
+ name: "GPT-5.2",
637
+ description: "GPT-5.2 is the latest frontier-grade model in the GPT-5 series, offering stronger agentic and long context perfomance compared to GPT-5.1. It uses adaptive reasoning to allocate computation dynamically, responding quickly to simple queries while spending more depth on complex tasks.",
638
+ input: {
639
+ maxTokens: 4e5,
640
+ costPer1MTokens: 1.75
641
+ },
642
+ output: {
643
+ maxTokens: 128e3,
644
+ costPer1MTokens: 14
645
+ },
646
+ tags: ["recommended", "reasoning", "general-purpose", "vision"],
647
+ lifecycle: "production"
648
+ },
639
649
  "openai:gpt-5.1-2025-11-13": {
640
650
  id: "openai:gpt-5.1-2025-11-13",
641
651
  name: "GPT-5.1",
@@ -648,7 +658,7 @@ var models = {
648
658
  maxTokens: 128e3,
649
659
  costPer1MTokens: 10
650
660
  },
651
- tags: ["recommended", "reasoning", "general-purpose"],
661
+ tags: ["recommended", "reasoning", "general-purpose", "vision"],
652
662
  lifecycle: "production"
653
663
  },
654
664
  "openai:gpt-5-2025-08-07": {
@@ -663,7 +673,7 @@ var models = {
663
673
  maxTokens: 128e3,
664
674
  costPer1MTokens: 10
665
675
  },
666
- tags: ["reasoning", "general-purpose"],
676
+ tags: ["reasoning", "general-purpose", "vision"],
667
677
  lifecycle: "production",
668
678
  aliases: ["gpt-5"]
669
679
  },
@@ -679,7 +689,7 @@ var models = {
679
689
  maxTokens: 128e3,
680
690
  costPer1MTokens: 2
681
691
  },
682
- tags: ["recommended", "reasoning", "general-purpose"],
692
+ tags: ["recommended", "reasoning", "general-purpose", "vision"],
683
693
  lifecycle: "production",
684
694
  aliases: ["gpt-5-mini"]
685
695
  },
@@ -695,7 +705,7 @@ var models = {
695
705
  maxTokens: 128e3,
696
706
  costPer1MTokens: 0.4
697
707
  },
698
- tags: ["low-cost", "reasoning", "general-purpose"],
708
+ tags: ["low-cost", "reasoning", "general-purpose", "vision"],
699
709
  lifecycle: "production",
700
710
  aliases: ["gpt-5-nano"]
701
711
  },