@botpress/client 1.25.0 → 1.27.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
@@ -12,6 +12,7 @@ type ClientConfig = {
12
12
  headers: Headers;
13
13
  withCredentials: boolean;
14
14
  timeout: number;
15
+ debug: boolean;
15
16
  };
16
17
 
17
18
  type CommonClientProps = {
@@ -19,6 +20,7 @@ type CommonClientProps = {
19
20
  timeout?: number;
20
21
  headers?: Headers;
21
22
  retry?: RetryConfig;
23
+ debug?: boolean;
22
24
  };
23
25
  type Cast<T, U> = T extends U ? T : U;
24
26
  type AsyncFunc = (...args: any[]) => Promise<any>;
@@ -2714,6 +2716,10 @@ interface GetOrCreateWorkflowRequestBody$1 {
2714
2716
  * Optional list of tag names to use for strict matching when looking up existing workflows. If provided, all specified tags must match exactly for a workflow to be considered a match. For example, with an existing workflow 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.
2715
2717
  */
2716
2718
  discriminateByTags?: string[];
2719
+ /**
2720
+ * When provided, will only match workflows whose status corresponds to the status group.
2721
+ */
2722
+ discriminateByStatusGroup?: "active" | "finished";
2717
2723
  }
2718
2724
  type GetOrCreateWorkflowInput$1 = GetOrCreateWorkflowRequestBody$1 & GetOrCreateWorkflowRequestHeaders$1 & GetOrCreateWorkflowRequestQuery$1 & GetOrCreateWorkflowRequestParams$1;
2719
2725
  interface GetOrCreateWorkflowResponse$1 {
@@ -2888,6 +2894,7 @@ type ClientProps$8 = CommonClientProps & {
2888
2894
  token: string;
2889
2895
  botId: string;
2890
2896
  integrationId?: string;
2897
+ integrationAlias?: string;
2891
2898
  };
2892
2899
  declare class Client$8 extends Client$9 {
2893
2900
  readonly config: Readonly<ClientConfig>;
@@ -2927,12 +2934,12 @@ declare class Client$8 extends Client$9 {
2927
2934
  pictureUrl?: string;
2928
2935
  }>;
2929
2936
  events: (props: {
2937
+ status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
2930
2938
  type?: string | undefined;
2931
2939
  userId?: string | undefined;
2932
2940
  conversationId?: string | undefined;
2933
2941
  workflowId?: string | undefined;
2934
2942
  messageId?: string | undefined;
2935
- status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
2936
2943
  }) => AsyncCollection<{
2937
2944
  id: string;
2938
2945
  createdAt: string;
@@ -2983,13 +2990,13 @@ declare class Client$8 extends Client$9 {
2983
2990
  pictureUrl?: string;
2984
2991
  }>;
2985
2992
  tasks: (props: {
2993
+ status?: ("timeout" | "pending" | "failed" | "in_progress" | "completed" | "blocked" | "paused" | "cancelled")[] | undefined;
2986
2994
  tags?: {
2987
2995
  [x: string]: string;
2988
2996
  } | undefined;
2989
2997
  type?: string | undefined;
2990
2998
  userId?: string | undefined;
2991
2999
  conversationId?: string | undefined;
2992
- status?: ("pending" | "failed" | "in_progress" | "completed" | "blocked" | "paused" | "timeout" | "cancelled")[] | undefined;
2993
3000
  parentTaskId?: string | undefined;
2994
3001
  }) => AsyncCollection<{
2995
3002
  id: string;
@@ -5562,9 +5569,20 @@ interface CreateBotResponse$1 {
5562
5569
  interfaces?: {
5563
5570
  [k: string]: {
5564
5571
  integrationId: string;
5572
+ integrationAlias: string;
5573
+ integrationInterfaceAlias?: string;
5565
5574
  interfaceId: string;
5566
5575
  };
5567
5576
  };
5577
+ /**
5578
+ * A mapping of plugin integration aliases to their backing integrations
5579
+ */
5580
+ integrations?: {
5581
+ [k: string]: {
5582
+ integrationId: string;
5583
+ integrationAlias: string;
5584
+ };
5585
+ };
5568
5586
  /**
5569
5587
  * ID of the [Plugin](#schema_plugin)
5570
5588
  */
@@ -6055,6 +6073,23 @@ interface UpdateBotRequestBody$1 {
6055
6073
  interfaces?: {
6056
6074
  [k: string]: {
6057
6075
  integrationId: string;
6076
+ /**
6077
+ * When an alias is provided, the plugin will use the integration corresponding to this alias. If not provided, the first integration matching the integrationId will be used.
6078
+ */
6079
+ integrationAlias?: string;
6080
+ /**
6081
+ * When an alias is provided, the plugin will use the integration interface corresponding to this alias.
6082
+ */
6083
+ integrationInterfaceAlias?: string;
6084
+ };
6085
+ };
6086
+ /**
6087
+ * A mapping of plugin integration aliases to their backing integrations
6088
+ */
6089
+ integrations?: {
6090
+ [k: string]: {
6091
+ integrationId: string;
6092
+ integrationAlias: string;
6058
6093
  };
6059
6094
  };
6060
6095
  } | null;
@@ -6193,9 +6228,20 @@ interface UpdateBotResponse$1 {
6193
6228
  interfaces?: {
6194
6229
  [k: string]: {
6195
6230
  integrationId: string;
6231
+ integrationAlias: string;
6232
+ integrationInterfaceAlias?: string;
6196
6233
  interfaceId: string;
6197
6234
  };
6198
6235
  };
6236
+ /**
6237
+ * A mapping of plugin integration aliases to their backing integrations
6238
+ */
6239
+ integrations?: {
6240
+ [k: string]: {
6241
+ integrationId: string;
6242
+ integrationAlias: string;
6243
+ };
6244
+ };
6199
6245
  /**
6200
6246
  * ID of the [Plugin](#schema_plugin)
6201
6247
  */
@@ -6656,9 +6702,20 @@ interface GetBotResponse$1 {
6656
6702
  interfaces?: {
6657
6703
  [k: string]: {
6658
6704
  integrationId: string;
6705
+ integrationAlias: string;
6706
+ integrationInterfaceAlias?: string;
6659
6707
  interfaceId: string;
6660
6708
  };
6661
6709
  };
6710
+ /**
6711
+ * A mapping of plugin integration aliases to their backing integrations
6712
+ */
6713
+ integrations?: {
6714
+ [k: string]: {
6715
+ integrationId: string;
6716
+ integrationAlias: string;
6717
+ };
6718
+ };
6662
6719
  /**
6663
6720
  * ID of the [Plugin](#schema_plugin)
6664
6721
  */
@@ -7321,6 +7378,7 @@ interface DeployBotVersionResponse$1 {
7321
7378
  interface CreateIntegrationShareableIdRequestHeaders$1 {
7322
7379
  }
7323
7380
  interface CreateIntegrationShareableIdRequestQuery$1 {
7381
+ integrationInstanceAlias?: string;
7324
7382
  }
7325
7383
  interface CreateIntegrationShareableIdRequestParams$1 {
7326
7384
  botId: string;
@@ -7336,6 +7394,7 @@ interface CreateIntegrationShareableIdResponse$1 {
7336
7394
  interface DeleteIntegrationShareableIdRequestHeaders$1 {
7337
7395
  }
7338
7396
  interface DeleteIntegrationShareableIdRequestQuery$1 {
7397
+ integrationInstanceAlias?: string;
7339
7398
  }
7340
7399
  interface DeleteIntegrationShareableIdRequestParams$1 {
7341
7400
  botId: string;
@@ -7350,6 +7409,7 @@ interface DeleteIntegrationShareableIdResponse$1 {
7350
7409
  interface GetIntegrationShareableIdRequestHeaders$1 {
7351
7410
  }
7352
7411
  interface GetIntegrationShareableIdRequestQuery$1 {
7412
+ integrationInstanceAlias?: string;
7353
7413
  }
7354
7414
  interface GetIntegrationShareableIdRequestParams$1 {
7355
7415
  botId: string;
@@ -7366,6 +7426,7 @@ interface GetIntegrationShareableIdResponse$1 {
7366
7426
  interface UnlinkSandboxedConversationsRequestHeaders$1 {
7367
7427
  }
7368
7428
  interface UnlinkSandboxedConversationsRequestQuery$1 {
7429
+ integrationInstanceAlias?: string;
7369
7430
  }
7370
7431
  interface UnlinkSandboxedConversationsRequestParams$1 {
7371
7432
  botId: string;
@@ -7636,6 +7697,7 @@ interface CreateWorkspaceResponse$1 {
7636
7697
  socialAccounts?: string[];
7637
7698
  isPublic?: boolean;
7638
7699
  handle?: string;
7700
+ activeTrialId: string | null;
7639
7701
  }
7640
7702
 
7641
7703
  interface GetPublicWorkspaceRequestHeaders$1 {
@@ -7689,6 +7751,7 @@ interface GetWorkspaceResponse$1 {
7689
7751
  socialAccounts?: string[];
7690
7752
  isPublic?: boolean;
7691
7753
  handle?: string;
7754
+ activeTrialId: string | null;
7692
7755
  }
7693
7756
 
7694
7757
  interface ListWorkspaceUsagesRequestHeaders$1 {
@@ -7860,6 +7923,7 @@ interface UpdateWorkspaceResponse$3 {
7860
7923
  socialAccounts?: string[];
7861
7924
  isPublic?: boolean;
7862
7925
  handle?: string;
7926
+ activeTrialId: string | null;
7863
7927
  }
7864
7928
 
7865
7929
  interface CheckHandleAvailabilityRequestHeaders$1 {
@@ -7916,6 +7980,7 @@ interface UpdateWorkspaceResponse$2 {
7916
7980
  socialAccounts?: string[];
7917
7981
  isPublic?: boolean;
7918
7982
  handle?: string;
7983
+ activeTrialId: string | null;
7919
7984
  }
7920
7985
 
7921
7986
  interface ListPublicWorkspacesRequestHeaders$1 {
@@ -7985,7 +8050,7 @@ interface GetAuditRecordsResponse$1 {
7985
8050
  resourceId: string | null;
7986
8051
  resourceName?: string | null;
7987
8052
  value?: string | null;
7988
- action: "UNKNOWN" | "ADD_WORKSPACE_MEMBER" | "REMOVE_WORKSPACE_MEMBER" | "UPDATE_WORKSPACE_MEMBER" | "CLOSE_WORKSPACE" | "CREATE_BOT" | "CREATE_WORKSPACE" | "DELETE_BOT" | "DEPLOY_BOT" | "TRANSFER_BOT" | "DOWNLOAD_BOT_ARCHIVE" | "UPDATE_BOT" | "UPDATE_BOT_CHANNEL" | "UPDATE_BOT_CONFIG" | "UPDATE_PAYMENT_METHOD" | "UPDATE_WORKSPACE" | "SET_SPENDING_LIMIT" | "SET_AI_SPENDING_LIMIT" | "UPDATE_WORKSPACE_BILLING_READONLY";
8053
+ action: "UNKNOWN" | "ADD_WORKSPACE_MEMBER" | "REMOVE_WORKSPACE_MEMBER" | "UPDATE_WORKSPACE_MEMBER" | "CLOSE_WORKSPACE" | "CREATE_BOT" | "CREATE_WORKSPACE" | "DELETE_BOT" | "DEPLOY_BOT" | "TRANSFER_BOT" | "DOWNLOAD_BOT_ARCHIVE" | "UPDATE_BOT" | "UPDATE_BOT_CHANNEL" | "UPDATE_BOT_CONFIG" | "UPDATE_PAYMENT_METHOD" | "UPDATE_WORKSPACE" | "SET_SPENDING_LIMIT" | "SET_AI_SPENDING_LIMIT" | "UPDATE_WORKSPACE_BILLING_READONLY" | "EXECUTE_AUTO_RECHARGE_SUCCESS" | "EXECUTE_AUTO_RECHARGE_FAILED";
7989
8054
  }[];
7990
8055
  meta: {
7991
8056
  /**
@@ -15532,6 +15597,7 @@ type ClientProps$4 = CommonClientProps & {
15532
15597
  token: string;
15533
15598
  botId: string;
15534
15599
  integrationId?: string;
15600
+ integrationAlias?: string;
15535
15601
  };
15536
15602
  declare class Client$4 extends Client$5 implements IClient$2 {
15537
15603
  readonly config: Readonly<ClientConfig>;
@@ -16940,6 +17006,10 @@ interface FindTableRowsRequestBody$1 {
16940
17006
  * Search term to apply to the row search. When using this parameter, some rows which doesn't match the search term will be returned, use the similarity field to know how much the row matches the search term.
16941
17007
  */
16942
17008
  search?: string;
17009
+ /**
17010
+ * Specify which columns to return in the response. Supports both top-level columns (e.g., "name") and nested attributes using dot notation (e.g., "attributes.price"). System columns (id, createdAt, updatedAt, etc.) are always included. If omitted, all columns are returned.
17011
+ */
17012
+ select?: string[];
16943
17013
  /**
16944
17014
  * Specifies the column by which to order the results. By default it is ordered by id. Build-in columns: id, createdAt, updatedAt
16945
17015
  */
@@ -17286,6 +17356,7 @@ type ClientProps$2 = CommonClientProps & {
17286
17356
  token: string;
17287
17357
  botId: string;
17288
17358
  integrationId?: string;
17359
+ integrationAlias?: string;
17289
17360
  };
17290
17361
  declare class Client$2 extends Client$3 {
17291
17362
  readonly config: Readonly<ClientConfig>;
@@ -19954,6 +20025,10 @@ interface GetOrCreateWorkflowRequestBody {
19954
20025
  * Optional list of tag names to use for strict matching when looking up existing workflows. If provided, all specified tags must match exactly for a workflow to be considered a match. For example, with an existing workflow 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.
19955
20026
  */
19956
20027
  discriminateByTags?: string[];
20028
+ /**
20029
+ * When provided, will only match workflows whose status corresponds to the status group.
20030
+ */
20031
+ discriminateByStatusGroup?: "active" | "finished";
19957
20032
  }
19958
20033
  type GetOrCreateWorkflowInput = GetOrCreateWorkflowRequestBody & GetOrCreateWorkflowRequestHeaders & GetOrCreateWorkflowRequestQuery & GetOrCreateWorkflowRequestParams;
19959
20034
  interface GetOrCreateWorkflowResponse {
@@ -22592,9 +22667,20 @@ interface CreateBotResponse {
22592
22667
  interfaces?: {
22593
22668
  [k: string]: {
22594
22669
  integrationId: string;
22670
+ integrationAlias: string;
22671
+ integrationInterfaceAlias?: string;
22595
22672
  interfaceId: string;
22596
22673
  };
22597
22674
  };
22675
+ /**
22676
+ * A mapping of plugin integration aliases to their backing integrations
22677
+ */
22678
+ integrations?: {
22679
+ [k: string]: {
22680
+ integrationId: string;
22681
+ integrationAlias: string;
22682
+ };
22683
+ };
22598
22684
  /**
22599
22685
  * ID of the [Plugin](#schema_plugin)
22600
22686
  */
@@ -23085,6 +23171,23 @@ interface UpdateBotRequestBody {
23085
23171
  interfaces?: {
23086
23172
  [k: string]: {
23087
23173
  integrationId: string;
23174
+ /**
23175
+ * When an alias is provided, the plugin will use the integration corresponding to this alias. If not provided, the first integration matching the integrationId will be used.
23176
+ */
23177
+ integrationAlias?: string;
23178
+ /**
23179
+ * When an alias is provided, the plugin will use the integration interface corresponding to this alias.
23180
+ */
23181
+ integrationInterfaceAlias?: string;
23182
+ };
23183
+ };
23184
+ /**
23185
+ * A mapping of plugin integration aliases to their backing integrations
23186
+ */
23187
+ integrations?: {
23188
+ [k: string]: {
23189
+ integrationId: string;
23190
+ integrationAlias: string;
23088
23191
  };
23089
23192
  };
23090
23193
  } | null;
@@ -23223,9 +23326,20 @@ interface UpdateBotResponse {
23223
23326
  interfaces?: {
23224
23327
  [k: string]: {
23225
23328
  integrationId: string;
23329
+ integrationAlias: string;
23330
+ integrationInterfaceAlias?: string;
23226
23331
  interfaceId: string;
23227
23332
  };
23228
23333
  };
23334
+ /**
23335
+ * A mapping of plugin integration aliases to their backing integrations
23336
+ */
23337
+ integrations?: {
23338
+ [k: string]: {
23339
+ integrationId: string;
23340
+ integrationAlias: string;
23341
+ };
23342
+ };
23229
23343
  /**
23230
23344
  * ID of the [Plugin](#schema_plugin)
23231
23345
  */
@@ -23686,9 +23800,20 @@ interface GetBotResponse {
23686
23800
  interfaces?: {
23687
23801
  [k: string]: {
23688
23802
  integrationId: string;
23803
+ integrationAlias: string;
23804
+ integrationInterfaceAlias?: string;
23689
23805
  interfaceId: string;
23690
23806
  };
23691
23807
  };
23808
+ /**
23809
+ * A mapping of plugin integration aliases to their backing integrations
23810
+ */
23811
+ integrations?: {
23812
+ [k: string]: {
23813
+ integrationId: string;
23814
+ integrationAlias: string;
23815
+ };
23816
+ };
23692
23817
  /**
23693
23818
  * ID of the [Plugin](#schema_plugin)
23694
23819
  */
@@ -24351,6 +24476,7 @@ interface DeployBotVersionResponse {
24351
24476
  interface CreateIntegrationShareableIdRequestHeaders {
24352
24477
  }
24353
24478
  interface CreateIntegrationShareableIdRequestQuery {
24479
+ integrationInstanceAlias?: string;
24354
24480
  }
24355
24481
  interface CreateIntegrationShareableIdRequestParams {
24356
24482
  botId: string;
@@ -24366,6 +24492,7 @@ interface CreateIntegrationShareableIdResponse {
24366
24492
  interface DeleteIntegrationShareableIdRequestHeaders {
24367
24493
  }
24368
24494
  interface DeleteIntegrationShareableIdRequestQuery {
24495
+ integrationInstanceAlias?: string;
24369
24496
  }
24370
24497
  interface DeleteIntegrationShareableIdRequestParams {
24371
24498
  botId: string;
@@ -24380,6 +24507,7 @@ interface DeleteIntegrationShareableIdResponse {
24380
24507
  interface GetIntegrationShareableIdRequestHeaders {
24381
24508
  }
24382
24509
  interface GetIntegrationShareableIdRequestQuery {
24510
+ integrationInstanceAlias?: string;
24383
24511
  }
24384
24512
  interface GetIntegrationShareableIdRequestParams {
24385
24513
  botId: string;
@@ -24396,6 +24524,7 @@ interface GetIntegrationShareableIdResponse {
24396
24524
  interface UnlinkSandboxedConversationsRequestHeaders {
24397
24525
  }
24398
24526
  interface UnlinkSandboxedConversationsRequestQuery {
24527
+ integrationInstanceAlias?: string;
24399
24528
  }
24400
24529
  interface UnlinkSandboxedConversationsRequestParams {
24401
24530
  botId: string;
@@ -24666,6 +24795,7 @@ interface CreateWorkspaceResponse {
24666
24795
  socialAccounts?: string[];
24667
24796
  isPublic?: boolean;
24668
24797
  handle?: string;
24798
+ activeTrialId: string | null;
24669
24799
  }
24670
24800
 
24671
24801
  interface GetPublicWorkspaceRequestHeaders {
@@ -24719,6 +24849,7 @@ interface GetWorkspaceResponse {
24719
24849
  socialAccounts?: string[];
24720
24850
  isPublic?: boolean;
24721
24851
  handle?: string;
24852
+ activeTrialId: string | null;
24722
24853
  }
24723
24854
 
24724
24855
  interface ListWorkspaceUsagesRequestHeaders {
@@ -24890,6 +25021,7 @@ interface UpdateWorkspaceResponse$1 {
24890
25021
  socialAccounts?: string[];
24891
25022
  isPublic?: boolean;
24892
25023
  handle?: string;
25024
+ activeTrialId: string | null;
24893
25025
  }
24894
25026
 
24895
25027
  interface CheckHandleAvailabilityRequestHeaders {
@@ -24946,6 +25078,7 @@ interface UpdateWorkspaceResponse {
24946
25078
  socialAccounts?: string[];
24947
25079
  isPublic?: boolean;
24948
25080
  handle?: string;
25081
+ activeTrialId: string | null;
24949
25082
  }
24950
25083
 
24951
25084
  interface ListPublicWorkspacesRequestHeaders {
@@ -25015,7 +25148,7 @@ interface GetAuditRecordsResponse {
25015
25148
  resourceId: string | null;
25016
25149
  resourceName?: string | null;
25017
25150
  value?: string | null;
25018
- action: "UNKNOWN" | "ADD_WORKSPACE_MEMBER" | "REMOVE_WORKSPACE_MEMBER" | "UPDATE_WORKSPACE_MEMBER" | "CLOSE_WORKSPACE" | "CREATE_BOT" | "CREATE_WORKSPACE" | "DELETE_BOT" | "DEPLOY_BOT" | "TRANSFER_BOT" | "DOWNLOAD_BOT_ARCHIVE" | "UPDATE_BOT" | "UPDATE_BOT_CHANNEL" | "UPDATE_BOT_CONFIG" | "UPDATE_PAYMENT_METHOD" | "UPDATE_WORKSPACE" | "SET_SPENDING_LIMIT" | "SET_AI_SPENDING_LIMIT" | "UPDATE_WORKSPACE_BILLING_READONLY";
25151
+ action: "UNKNOWN" | "ADD_WORKSPACE_MEMBER" | "REMOVE_WORKSPACE_MEMBER" | "UPDATE_WORKSPACE_MEMBER" | "CLOSE_WORKSPACE" | "CREATE_BOT" | "CREATE_WORKSPACE" | "DELETE_BOT" | "DEPLOY_BOT" | "TRANSFER_BOT" | "DOWNLOAD_BOT_ARCHIVE" | "UPDATE_BOT" | "UPDATE_BOT_CHANNEL" | "UPDATE_BOT_CONFIG" | "UPDATE_PAYMENT_METHOD" | "UPDATE_WORKSPACE" | "SET_SPENDING_LIMIT" | "SET_AI_SPENDING_LIMIT" | "UPDATE_WORKSPACE_BILLING_READONLY" | "EXECUTE_AUTO_RECHARGE_SUCCESS" | "EXECUTE_AUTO_RECHARGE_FAILED";
25019
25152
  }[];
25020
25153
  meta: {
25021
25154
  /**
@@ -33496,6 +33629,10 @@ interface FindTableRowsRequestBody {
33496
33629
  * Search term to apply to the row search. When using this parameter, some rows which doesn't match the search term will be returned, use the similarity field to know how much the row matches the search term.
33497
33630
  */
33498
33631
  search?: string;
33632
+ /**
33633
+ * Specify which columns to return in the response. Supports both top-level columns (e.g., "name") and nested attributes using dot notation (e.g., "attributes.price"). System columns (id, createdAt, updatedAt, etc.) are always included. If omitted, all columns are returned.
33634
+ */
33635
+ select?: string[];
33499
33636
  /**
33500
33637
  * Specifies the column by which to order the results. By default it is ordered by id. Build-in columns: id, createdAt, updatedAt
33501
33638
  */
@@ -33912,9 +34049,20 @@ interface Bot {
33912
34049
  interfaces?: {
33913
34050
  [k: string]: {
33914
34051
  integrationId: string;
34052
+ integrationAlias: string;
34053
+ integrationInterfaceAlias?: string;
33915
34054
  interfaceId: string;
33916
34055
  };
33917
34056
  };
34057
+ /**
34058
+ * A mapping of plugin integration aliases to their backing integrations
34059
+ */
34060
+ integrations?: {
34061
+ [k: string]: {
34062
+ integrationId: string;
34063
+ integrationAlias: string;
34064
+ };
34065
+ };
33918
34066
  /**
33919
34067
  * ID of the [Plugin](#schema_plugin)
33920
34068
  */
@@ -34948,6 +35096,7 @@ interface Workspace {
34948
35096
  socialAccounts?: string[];
34949
35097
  isPublic?: boolean;
34950
35098
  handle?: string;
35099
+ activeTrialId: string | null;
34951
35100
  }
34952
35101
  interface WorkspaceMember {
34953
35102
  id: string;
@@ -35877,6 +36026,7 @@ type ClientInputs = Inputs<IClient>;
35877
36026
  type ClientOutputs = Outputs<IClient>;
35878
36027
  type ClientProps = CommonClientProps & {
35879
36028
  integrationId?: string;
36029
+ integrationAlias?: string;
35880
36030
  workspaceId?: string;
35881
36031
  botId?: string;
35882
36032
  token?: string;
@@ -35919,12 +36069,12 @@ declare class Client extends Client$1 implements IClient {
35919
36069
  pictureUrl?: string;
35920
36070
  }>;
35921
36071
  events: (props: {
36072
+ status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
35922
36073
  type?: string | undefined;
35923
36074
  userId?: string | undefined;
35924
36075
  conversationId?: string | undefined;
35925
36076
  workflowId?: string | undefined;
35926
36077
  messageId?: string | undefined;
35927
- status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
35928
36078
  }) => AsyncCollection<{
35929
36079
  id: string;
35930
36080
  createdAt: string;
@@ -35975,13 +36125,13 @@ declare class Client extends Client$1 implements IClient {
35975
36125
  pictureUrl?: string;
35976
36126
  }>;
35977
36127
  tasks: (props: {
36128
+ status?: ("timeout" | "pending" | "failed" | "in_progress" | "completed" | "blocked" | "paused" | "cancelled")[] | undefined;
35978
36129
  tags?: {
35979
36130
  [x: string]: string;
35980
36131
  } | undefined;
35981
36132
  type?: string | undefined;
35982
36133
  userId?: string | undefined;
35983
36134
  conversationId?: string | undefined;
35984
- status?: ("pending" | "failed" | "in_progress" | "completed" | "blocked" | "paused" | "timeout" | "cancelled")[] | undefined;
35985
36135
  parentTaskId?: string | undefined;
35986
36136
  }) => AsyncCollection<{
35987
36137
  id: string;
@@ -36334,6 +36484,7 @@ declare const codes: {
36334
36484
  readonly HTTP_STATUS_METHOD_NOT_ALLOWED: 405;
36335
36485
  readonly HTTP_STATUS_REQUEST_TIMEOUT: 408;
36336
36486
  readonly HTTP_STATUS_CONFLICT: 409;
36487
+ readonly HTTP_STATUS_GONE: 410;
36337
36488
  readonly HTTP_STATUS_PAYLOAD_TOO_LARGE: 413;
36338
36489
  readonly HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE: 415;
36339
36490
  readonly HTTP_STATUS_DEPENDENCY_FAILED: 424;
@@ -36472,6 +36623,13 @@ type ResourceLockedConflictType = 'ResourceLockedConflict';
36472
36623
  declare class ResourceLockedConflictError extends BaseApiError<409, ResourceLockedConflictType, 'The resource is current locked and cannot be operated on until the lock is released.'> {
36473
36624
  constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
36474
36625
  }
36626
+ type ResourceGoneType = 'ResourceGone';
36627
+ /**
36628
+ * The requested resource is no longer available.
36629
+ */
36630
+ declare class ResourceGoneError extends BaseApiError<410, ResourceGoneType, 'The requested resource is no longer available.'> {
36631
+ constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
36632
+ }
36475
36633
  type ReferenceNotFoundType = 'ReferenceNotFound';
36476
36634
  /**
36477
36635
  * The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.
@@ -36535,8 +36693,8 @@ type BreakingChangesType = 'BreakingChanges';
36535
36693
  declare class BreakingChangesError extends BaseApiError<400, BreakingChangesType, 'Request payload contains breaking changes which is not allowed for this resource without a version increment.'> {
36536
36694
  constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
36537
36695
  }
36538
- type ErrorType = 'Unknown' | 'Internal' | 'Unauthorized' | 'Forbidden' | 'PayloadTooLarge' | 'InvalidPayload' | 'UnsupportedMediaType' | 'MethodNotFound' | 'ResourceNotFound' | 'InvalidJsonSchema' | 'InvalidDataFormat' | 'InvalidIdentifier' | 'RelationConflict' | 'ReferenceConstraint' | 'ResourceLockedConflict' | 'ReferenceNotFound' | 'InvalidQuery' | 'Runtime' | 'AlreadyExists' | 'RateLimited' | 'PaymentRequired' | 'QuotaExceeded' | 'LimitExceeded' | 'BreakingChanges';
36539
- type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenError | PayloadTooLargeError | InvalidPayloadError | UnsupportedMediaTypeError | MethodNotFoundError | ResourceNotFoundError | InvalidJsonSchemaError | InvalidDataFormatError | InvalidIdentifierError | RelationConflictError | ReferenceConstraintError | ResourceLockedConflictError | ReferenceNotFoundError | InvalidQueryError | RuntimeError | AlreadyExistsError | RateLimitedError | PaymentRequiredError | QuotaExceededError | LimitExceededError | BreakingChangesError;
36696
+ type ErrorType = 'Unknown' | 'Internal' | 'Unauthorized' | 'Forbidden' | 'PayloadTooLarge' | 'InvalidPayload' | 'UnsupportedMediaType' | 'MethodNotFound' | 'ResourceNotFound' | 'InvalidJsonSchema' | 'InvalidDataFormat' | 'InvalidIdentifier' | 'RelationConflict' | 'ReferenceConstraint' | 'ResourceLockedConflict' | 'ResourceGone' | 'ReferenceNotFound' | 'InvalidQuery' | 'Runtime' | 'AlreadyExists' | 'RateLimited' | 'PaymentRequired' | 'QuotaExceeded' | 'LimitExceeded' | 'BreakingChanges';
36697
+ type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenError | PayloadTooLargeError | InvalidPayloadError | UnsupportedMediaTypeError | MethodNotFoundError | ResourceNotFoundError | InvalidJsonSchemaError | InvalidDataFormatError | InvalidIdentifierError | RelationConflictError | ReferenceConstraintError | ResourceLockedConflictError | ResourceGoneError | ReferenceNotFoundError | InvalidQueryError | RuntimeError | AlreadyExistsError | RateLimitedError | PaymentRequiredError | QuotaExceededError | LimitExceededError | BreakingChangesError;
36540
36698
  declare const errorFrom: (err: unknown) => ApiError;
36541
36699
 
36542
36700
  declare class UploadFileError extends Error {
@@ -36545,4 +36703,4 @@ declare class UploadFileError extends Error {
36545
36703
  constructor(message: string, innerError?: AxiosError | undefined, file?: UpsertFileResponse["file"] | undefined);
36546
36704
  }
36547
36705
 
36548
- export { type Account, type Activity, AlreadyExistsError, type ApiError, type Bot, BreakingChangesError, Client, type ClientConfig, type ClientInputs, type ClientOutputs, type ClientProps, type Column, type Conversation, type ErrorType, type Event, type File, ForbiddenError, type Headers, type Integration, type Interface, InternalError, InvalidDataFormatError, InvalidIdentifierError, InvalidJsonSchemaError, InvalidPayloadError, InvalidQueryError, type Issue, type IssueEvent, LimitExceededError, type Message, MethodNotFoundError, type Operation, PayloadTooLargeError, PaymentRequiredError, type Plugin, QuotaExceededError, RateLimitedError, ReferenceConstraintError, ReferenceNotFoundError, RelationConflictError, ResourceLockedConflictError, ResourceNotFoundError, type RetryConfig, type Row, RuntimeError, type State, type Table, type Task, UnauthorizedError, UnknownError, UnsupportedMediaTypeError, UploadFileError, type Usage, type User, type Version, type Workflow, type Workspace, type WorkspaceMember, index$2 as admin, errorFrom, index$1 as files, isApiError, index$3 as runtime, index as tables };
36706
+ export { type Account, type Activity, AlreadyExistsError, type ApiError, type Bot, BreakingChangesError, Client, type ClientConfig, type ClientInputs, type ClientOutputs, type ClientProps, type Column, type Conversation, type ErrorType, type Event, type File, ForbiddenError, type Headers, type Integration, type Interface, InternalError, InvalidDataFormatError, InvalidIdentifierError, InvalidJsonSchemaError, InvalidPayloadError, InvalidQueryError, type Issue, type IssueEvent, LimitExceededError, type Message, MethodNotFoundError, type Operation, PayloadTooLargeError, PaymentRequiredError, type Plugin, QuotaExceededError, RateLimitedError, ReferenceConstraintError, ReferenceNotFoundError, RelationConflictError, ResourceGoneError, ResourceLockedConflictError, ResourceNotFoundError, type RetryConfig, type Row, RuntimeError, type State, type Table, type Task, UnauthorizedError, UnknownError, UnsupportedMediaTypeError, UploadFileError, type Usage, type User, type Version, type Workflow, type Workspace, type WorkspaceMember, index$2 as admin, errorFrom, index$1 as files, isApiError, index$3 as runtime, index as tables };