@botpress/client 1.43.0 → 1.45.0

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
@@ -311,10 +311,10 @@ interface GetOrCreateConversationRequestBody$1 {
311
311
  */
312
312
  channel: string;
313
313
  /**
314
- * Tags for the [Conversation](#schema_conversation)
314
+ * Tags for the [Conversation](#schema_conversation). Set to null or empty string to remove.
315
315
  */
316
316
  tags: {
317
- [k: string]: string;
317
+ [k: string]: string | null;
318
318
  };
319
319
  /**
320
320
  * @deprecated
@@ -322,10 +322,10 @@ interface GetOrCreateConversationRequestBody$1 {
322
322
  */
323
323
  integrationName?: string;
324
324
  /**
325
- * **EXPERIMENTAL** - Optional shared properties that can be accessed and modified by both the bot and any of its integrations.
325
+ * **EXPERIMENTAL** - Optional shared properties. Set individual properties to null or empty string to remove them.
326
326
  */
327
327
  properties?: {
328
- [k: string]: string;
328
+ [k: string]: string | null;
329
329
  };
330
330
  /**
331
331
  * Optional list of tag names to use for strict matching when looking up existing conversations. If provided, all specified tags must match exactly for a conversation to be considered a match. For example, with an existing conversation whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
@@ -403,10 +403,10 @@ interface UpdateConversationRequestBody$1 {
403
403
  */
404
404
  currentTaskId?: string;
405
405
  /**
406
- * Tags for the [Conversation](#schema_conversation)
406
+ * Tags for the [Conversation](#schema_conversation). Set to null or empty string to remove.
407
407
  */
408
408
  tags?: {
409
- [k: string]: string;
409
+ [k: string]: string | null;
410
410
  };
411
411
  /**
412
412
  * **EXPERIMENTAL** - Optional shared properties that can be accessed and modified by both the bot and any of its integrations. Set individual properties to null to remove them.
@@ -1019,10 +1019,10 @@ interface GetOrCreateMessageRequestBody$1 {
1019
1019
  */
1020
1020
  type: string;
1021
1021
  /**
1022
- * Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Message](#schema_message). The set of [Tags](/docs/developers/concepts/tags) available on a [Message](#schema_message) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
1022
+ * Tags for the message. Set to null or empty string to remove.
1023
1023
  */
1024
1024
  tags: {
1025
- [k: string]: string;
1025
+ [k: string]: string | null;
1026
1026
  };
1027
1027
  /**
1028
1028
  * Schedule the Message to be sent at a specific time. Either dateTime or delay must be provided.
@@ -1170,10 +1170,10 @@ interface UpdateMessageRequestParams$1 {
1170
1170
  }
1171
1171
  interface UpdateMessageRequestBody$1 {
1172
1172
  /**
1173
- * Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
1173
+ * Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Message](#schema_message). The set of [Tags](/docs/developers/concepts/tags) available on a [Message](#schema_message) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Set to null or empty string to remove.
1174
1174
  */
1175
- tags: {
1176
- [k: string]: string;
1175
+ tags?: {
1176
+ [k: string]: string | null;
1177
1177
  };
1178
1178
  /**
1179
1179
  * Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location
@@ -1879,10 +1879,10 @@ interface GetOrCreateUserRequestParams$1 {
1879
1879
  }
1880
1880
  interface GetOrCreateUserRequestBody$1 {
1881
1881
  /**
1882
- * Tags for the [User](#schema_user)
1882
+ * Tags for the user. Set to null or empty string to remove.
1883
1883
  */
1884
1884
  tags: {
1885
- [k: string]: string;
1885
+ [k: string]: string | null;
1886
1886
  };
1887
1887
  /**
1888
1888
  * @deprecated
@@ -1898,17 +1898,17 @@ interface GetOrCreateUserRequestBody$1 {
1898
1898
  */
1899
1899
  pictureUrl?: string;
1900
1900
  /**
1901
- * **EXPERIMENTAL** - Optional shared properties that can be accessed and modified by both the bot and any of its integrations.
1901
+ * **EXPERIMENTAL** - Optional shared properties. Set individual properties to null or empty string to remove them.
1902
1902
  */
1903
1903
  properties?: {
1904
- [k: string]: string;
1904
+ [k: string]: string | null;
1905
1905
  };
1906
1906
  /**
1907
1907
  * @deprecated
1908
1908
  * DEPRECATED - Use properties instead.
1909
1909
  */
1910
1910
  attributes?: {
1911
- [k: string]: string;
1911
+ [k: string]: string | null;
1912
1912
  };
1913
1913
  /**
1914
1914
  * Optional list of tag names to use for strict matching when looking up existing users. If provided, all specified tags must match exactly for a user to be considered a match. For example, with an existing user whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
@@ -1974,10 +1974,10 @@ interface UpdateUserRequestParams$1 {
1974
1974
  }
1975
1975
  interface UpdateUserRequestBody$1 {
1976
1976
  /**
1977
- * Tags for the [User](#schema_user)
1977
+ * Tags for the [User](#schema_user). Set to null or empty string to remove.
1978
1978
  */
1979
1979
  tags?: {
1980
- [k: string]: string;
1980
+ [k: string]: string | null;
1981
1981
  };
1982
1982
  /**
1983
1983
  * Name of the user
@@ -2709,10 +2709,10 @@ interface UpdateWorkflowRequestBody$1 {
2709
2709
  */
2710
2710
  failureReason?: string;
2711
2711
  /**
2712
- * Tags for the [Workflow](#schema_workflow)
2712
+ * Tags for the [Workflow](#schema_workflow). Set to null or empty string to remove.
2713
2713
  */
2714
2714
  tags?: {
2715
- [k: string]: string;
2715
+ [k: string]: string | null;
2716
2716
  };
2717
2717
  /**
2718
2718
  * Specific user related to this workflow
@@ -6346,12 +6346,6 @@ interface UpdateBotRequestBody$1 {
6346
6346
  [k: string]: any;
6347
6347
  };
6348
6348
  };
6349
- /**
6350
- * Optional attributes of the [Bot](#schema_bot)
6351
- */
6352
- tags?: {
6353
- [k: string]: string;
6354
- };
6355
6349
  blocked?: boolean;
6356
6350
  /**
6357
6351
  * Maximum execution time (in seconds).
@@ -6361,6 +6355,12 @@ interface UpdateBotRequestBody$1 {
6361
6355
  * Indicates if the [Bot](#schema_bot) should be in always alive mode
6362
6356
  */
6363
6357
  alwaysAlive?: boolean;
6358
+ /**
6359
+ * Optional attributes of the [Bot](#schema_bot). Set to null or empty string to remove.
6360
+ */
6361
+ tags?: {
6362
+ [k: string]: string | null;
6363
+ };
6364
6364
  user?: {
6365
6365
  tags?: {
6366
6366
  /**
@@ -8241,6 +8241,7 @@ interface CreateWorkspaceRequestParams$1 {
8241
8241
  }
8242
8242
  interface CreateWorkspaceRequestBody$1 {
8243
8243
  name: string;
8244
+ billingVersion?: "v4";
8244
8245
  }
8245
8246
  type CreateWorkspaceInput$1 = CreateWorkspaceRequestBody$1 & CreateWorkspaceRequestHeaders$1 & CreateWorkspaceRequestQuery$1 & CreateWorkspaceRequestParams$1;
8246
8247
  interface CreateWorkspaceResponse$1 {
@@ -15511,13 +15512,17 @@ interface GetAddonResponse$1 {
15511
15512
  id: string;
15512
15513
  name: string;
15513
15514
  description: string;
15514
- /**
15515
- * Addon unit price in dollars per month
15516
- */
15517
- price: number;
15518
- feature: "incoming_messages_events" | "integration_spend" | "table_rows" | "bot_count" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "indexed_file_count" | "conversation_sessions";
15519
- increment: number;
15520
- increments?: {
15515
+ prices: {
15516
+ [k: string]: {
15517
+ /**
15518
+ * Price in dollars
15519
+ */
15520
+ amount: number;
15521
+ currency: string;
15522
+ interval: "month" | "year";
15523
+ };
15524
+ };
15525
+ increments: {
15521
15526
  [k: string]: number;
15522
15527
  };
15523
15528
  metadata?: {
@@ -15539,13 +15544,17 @@ interface GetAddonResponse {
15539
15544
  id: string;
15540
15545
  name: string;
15541
15546
  description: string;
15542
- /**
15543
- * Addon unit price in dollars per month
15544
- */
15545
- price: number;
15546
- feature: "incoming_messages_events" | "integration_spend" | "table_rows" | "bot_count" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "indexed_file_count" | "conversation_sessions";
15547
- increment: number;
15548
- increments?: {
15547
+ prices: {
15548
+ [k: string]: {
15549
+ /**
15550
+ * Price in dollars
15551
+ */
15552
+ amount: number;
15553
+ currency: string;
15554
+ interval: "month" | "year";
15555
+ };
15556
+ };
15557
+ increments: {
15549
15558
  [k: string]: number;
15550
15559
  };
15551
15560
  metadata?: {
@@ -16064,7 +16073,7 @@ interface CreateCreditGrantResponse {
16064
16073
  * Dollar value of the credit grant (e.g. 10 = $10.00 USD)
16065
16074
  */
16066
16075
  amount: number;
16067
- feature: "incoming_messages_events" | "integration_spend" | "table_rows" | "bot_count" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "indexed_file_count" | "conversation_sessions";
16076
+ feature: "incoming_messages_events" | "integration_spend" | "table_rows" | "bot_count" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "indexed_file_count" | "conversation_sessions" | "ai_spend";
16068
16077
  /**
16069
16078
  * Start of the period (inclusive)
16070
16079
  */
@@ -16212,7 +16221,7 @@ interface GetQuotasResponse {
16212
16221
  interface GetWorkspaceUsageRequestHeaders {
16213
16222
  }
16214
16223
  interface GetWorkspaceUsageRequestQuery {
16215
- feature: "incoming_messages_events" | "integration_spend" | "table_rows" | "bot_count" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "indexed_file_count" | "conversation_sessions";
16224
+ feature: "incoming_messages_events" | "integration_spend" | "table_rows" | "bot_count" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "indexed_file_count" | "conversation_sessions" | "ai_spend";
16216
16225
  /**
16217
16226
  * Any datetime within the desired billing month, ISO 8601. The month is inferred from this value.
16218
16227
  */
@@ -19551,10 +19560,10 @@ interface GetOrCreateConversationRequestBody {
19551
19560
  */
19552
19561
  channel: string;
19553
19562
  /**
19554
- * Tags for the [Conversation](#schema_conversation)
19563
+ * Tags for the [Conversation](#schema_conversation). Set to null or empty string to remove.
19555
19564
  */
19556
19565
  tags: {
19557
- [k: string]: string;
19566
+ [k: string]: string | null;
19558
19567
  };
19559
19568
  /**
19560
19569
  * @deprecated
@@ -19562,10 +19571,10 @@ interface GetOrCreateConversationRequestBody {
19562
19571
  */
19563
19572
  integrationName?: string;
19564
19573
  /**
19565
- * **EXPERIMENTAL** - Optional shared properties that can be accessed and modified by both the bot and any of its integrations.
19574
+ * **EXPERIMENTAL** - Optional shared properties. Set individual properties to null or empty string to remove them.
19566
19575
  */
19567
19576
  properties?: {
19568
- [k: string]: string;
19577
+ [k: string]: string | null;
19569
19578
  };
19570
19579
  /**
19571
19580
  * Optional list of tag names to use for strict matching when looking up existing conversations. If provided, all specified tags must match exactly for a conversation to be considered a match. For example, with an existing conversation whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
@@ -19643,10 +19652,10 @@ interface UpdateConversationRequestBody {
19643
19652
  */
19644
19653
  currentTaskId?: string;
19645
19654
  /**
19646
- * Tags for the [Conversation](#schema_conversation)
19655
+ * Tags for the [Conversation](#schema_conversation). Set to null or empty string to remove.
19647
19656
  */
19648
19657
  tags?: {
19649
- [k: string]: string;
19658
+ [k: string]: string | null;
19650
19659
  };
19651
19660
  /**
19652
19661
  * **EXPERIMENTAL** - Optional shared properties that can be accessed and modified by both the bot and any of its integrations. Set individual properties to null to remove them.
@@ -20259,10 +20268,10 @@ interface GetOrCreateMessageRequestBody {
20259
20268
  */
20260
20269
  type: string;
20261
20270
  /**
20262
- * Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Message](#schema_message). The set of [Tags](/docs/developers/concepts/tags) available on a [Message](#schema_message) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
20271
+ * Tags for the message. Set to null or empty string to remove.
20263
20272
  */
20264
20273
  tags: {
20265
- [k: string]: string;
20274
+ [k: string]: string | null;
20266
20275
  };
20267
20276
  /**
20268
20277
  * Schedule the Message to be sent at a specific time. Either dateTime or delay must be provided.
@@ -20410,10 +20419,10 @@ interface UpdateMessageRequestParams {
20410
20419
  }
20411
20420
  interface UpdateMessageRequestBody {
20412
20421
  /**
20413
- * Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
20422
+ * Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Message](#schema_message). The set of [Tags](/docs/developers/concepts/tags) available on a [Message](#schema_message) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Set to null or empty string to remove.
20414
20423
  */
20415
- tags: {
20416
- [k: string]: string;
20424
+ tags?: {
20425
+ [k: string]: string | null;
20417
20426
  };
20418
20427
  /**
20419
20428
  * Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location
@@ -21119,10 +21128,10 @@ interface GetOrCreateUserRequestParams {
21119
21128
  }
21120
21129
  interface GetOrCreateUserRequestBody {
21121
21130
  /**
21122
- * Tags for the [User](#schema_user)
21131
+ * Tags for the user. Set to null or empty string to remove.
21123
21132
  */
21124
21133
  tags: {
21125
- [k: string]: string;
21134
+ [k: string]: string | null;
21126
21135
  };
21127
21136
  /**
21128
21137
  * @deprecated
@@ -21138,17 +21147,17 @@ interface GetOrCreateUserRequestBody {
21138
21147
  */
21139
21148
  pictureUrl?: string;
21140
21149
  /**
21141
- * **EXPERIMENTAL** - Optional shared properties that can be accessed and modified by both the bot and any of its integrations.
21150
+ * **EXPERIMENTAL** - Optional shared properties. Set individual properties to null or empty string to remove them.
21142
21151
  */
21143
21152
  properties?: {
21144
- [k: string]: string;
21153
+ [k: string]: string | null;
21145
21154
  };
21146
21155
  /**
21147
21156
  * @deprecated
21148
21157
  * DEPRECATED - Use properties instead.
21149
21158
  */
21150
21159
  attributes?: {
21151
- [k: string]: string;
21160
+ [k: string]: string | null;
21152
21161
  };
21153
21162
  /**
21154
21163
  * Optional list of tag names to use for strict matching when looking up existing users. If provided, all specified tags must match exactly for a user to be considered a match. For example, with an existing user whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
@@ -21214,10 +21223,10 @@ interface UpdateUserRequestParams {
21214
21223
  }
21215
21224
  interface UpdateUserRequestBody {
21216
21225
  /**
21217
- * Tags for the [User](#schema_user)
21226
+ * Tags for the [User](#schema_user). Set to null or empty string to remove.
21218
21227
  */
21219
21228
  tags?: {
21220
- [k: string]: string;
21229
+ [k: string]: string | null;
21221
21230
  };
21222
21231
  /**
21223
21232
  * Name of the user
@@ -21949,10 +21958,10 @@ interface UpdateWorkflowRequestBody {
21949
21958
  */
21950
21959
  failureReason?: string;
21951
21960
  /**
21952
- * Tags for the [Workflow](#schema_workflow)
21961
+ * Tags for the [Workflow](#schema_workflow). Set to null or empty string to remove.
21953
21962
  */
21954
21963
  tags?: {
21955
- [k: string]: string;
21964
+ [k: string]: string | null;
21956
21965
  };
21957
21966
  /**
21958
21967
  * Specific user related to this workflow
@@ -25373,12 +25382,6 @@ interface UpdateBotRequestBody {
25373
25382
  [k: string]: any;
25374
25383
  };
25375
25384
  };
25376
- /**
25377
- * Optional attributes of the [Bot](#schema_bot)
25378
- */
25379
- tags?: {
25380
- [k: string]: string;
25381
- };
25382
25385
  blocked?: boolean;
25383
25386
  /**
25384
25387
  * Maximum execution time (in seconds).
@@ -25388,6 +25391,12 @@ interface UpdateBotRequestBody {
25388
25391
  * Indicates if the [Bot](#schema_bot) should be in always alive mode
25389
25392
  */
25390
25393
  alwaysAlive?: boolean;
25394
+ /**
25395
+ * Optional attributes of the [Bot](#schema_bot). Set to null or empty string to remove.
25396
+ */
25397
+ tags?: {
25398
+ [k: string]: string | null;
25399
+ };
25391
25400
  user?: {
25392
25401
  tags?: {
25393
25402
  /**
@@ -27268,6 +27277,7 @@ interface CreateWorkspaceRequestParams {
27268
27277
  }
27269
27278
  interface CreateWorkspaceRequestBody {
27270
27279
  name: string;
27280
+ billingVersion?: "v4";
27271
27281
  }
27272
27282
  type CreateWorkspaceInput = CreateWorkspaceRequestBody & CreateWorkspaceRequestHeaders & CreateWorkspaceRequestQuery & CreateWorkspaceRequestParams;
27273
27283
  interface CreateWorkspaceResponse {