@botpress/client 1.26.0 → 1.27.1
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/bundle.cjs +14 -14
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +206 -14
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +4 -4
- package/package.json +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -635,7 +635,7 @@ interface CreateEventResponse$1 {
|
|
|
635
635
|
* ID of the [Message](#schema_message) to link the event to.
|
|
636
636
|
*/
|
|
637
637
|
messageId?: string;
|
|
638
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
638
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
639
639
|
/**
|
|
640
640
|
* Reason why the event failed to be processed
|
|
641
641
|
*/
|
|
@@ -688,7 +688,7 @@ interface GetEventResponse$1 {
|
|
|
688
688
|
* ID of the [Message](#schema_message) to link the event to.
|
|
689
689
|
*/
|
|
690
690
|
messageId?: string;
|
|
691
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
691
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
692
692
|
/**
|
|
693
693
|
* Reason why the event failed to be processed
|
|
694
694
|
*/
|
|
@@ -744,7 +744,7 @@ interface ListEventsResponse$1 {
|
|
|
744
744
|
* ID of the [Message](#schema_message) to link the event to.
|
|
745
745
|
*/
|
|
746
746
|
messageId?: string;
|
|
747
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
747
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
748
748
|
/**
|
|
749
749
|
* Reason why the event failed to be processed
|
|
750
750
|
*/
|
|
@@ -758,6 +758,19 @@ interface ListEventsResponse$1 {
|
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
760
|
|
|
761
|
+
interface CancelScheduledEventRequestHeaders$1 {
|
|
762
|
+
}
|
|
763
|
+
interface CancelScheduledEventRequestQuery$1 {
|
|
764
|
+
}
|
|
765
|
+
interface CancelScheduledEventRequestParams$1 {
|
|
766
|
+
id: string;
|
|
767
|
+
}
|
|
768
|
+
interface CancelScheduledEventRequestBody$1 {
|
|
769
|
+
}
|
|
770
|
+
type CancelScheduledEventInput$1 = CancelScheduledEventRequestBody$1 & CancelScheduledEventRequestHeaders$1 & CancelScheduledEventRequestQuery$1 & CancelScheduledEventRequestParams$1;
|
|
771
|
+
interface CancelScheduledEventResponse$1 {
|
|
772
|
+
}
|
|
773
|
+
|
|
761
774
|
interface CreateMessageRequestHeaders$1 {
|
|
762
775
|
}
|
|
763
776
|
interface CreateMessageRequestQuery$1 {
|
|
@@ -2716,6 +2729,10 @@ interface GetOrCreateWorkflowRequestBody$1 {
|
|
|
2716
2729
|
* 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.
|
|
2717
2730
|
*/
|
|
2718
2731
|
discriminateByTags?: string[];
|
|
2732
|
+
/**
|
|
2733
|
+
* When provided, will only match workflows whose status corresponds to the status group.
|
|
2734
|
+
*/
|
|
2735
|
+
discriminateByStatusGroup?: "active" | "finished";
|
|
2719
2736
|
}
|
|
2720
2737
|
type GetOrCreateWorkflowInput$1 = GetOrCreateWorkflowRequestBody$1 & GetOrCreateWorkflowRequestHeaders$1 & GetOrCreateWorkflowRequestQuery$1 & GetOrCreateWorkflowRequestParams$1;
|
|
2721
2738
|
interface GetOrCreateWorkflowResponse$1 {
|
|
@@ -2847,6 +2864,7 @@ declare class Client$9 {
|
|
|
2847
2864
|
readonly createEvent: (input: CreateEventInput$1) => Promise<CreateEventResponse$1>;
|
|
2848
2865
|
readonly getEvent: (input: GetEventInput$1) => Promise<GetEventResponse$1>;
|
|
2849
2866
|
readonly listEvents: (input: ListEventsInput$1) => Promise<ListEventsResponse$1>;
|
|
2867
|
+
readonly cancelScheduledEvent: (input: CancelScheduledEventInput$1) => Promise<CancelScheduledEventResponse$1>;
|
|
2850
2868
|
readonly createMessage: (input: CreateMessageInput$1) => Promise<CreateMessageResponse$1>;
|
|
2851
2869
|
readonly getOrCreateMessage: (input: GetOrCreateMessageInput$1) => Promise<GetOrCreateMessageResponse$1>;
|
|
2852
2870
|
readonly getMessage: (input: GetMessageInput$1) => Promise<GetMessageResponse$1>;
|
|
@@ -2946,7 +2964,7 @@ declare class Client$8 extends Client$9 {
|
|
|
2946
2964
|
conversationId?: string;
|
|
2947
2965
|
userId?: string;
|
|
2948
2966
|
messageId?: string;
|
|
2949
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
2967
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
2950
2968
|
failureReason: string | null;
|
|
2951
2969
|
}>;
|
|
2952
2970
|
messages: (props: {
|
|
@@ -5565,9 +5583,20 @@ interface CreateBotResponse$1 {
|
|
|
5565
5583
|
interfaces?: {
|
|
5566
5584
|
[k: string]: {
|
|
5567
5585
|
integrationId: string;
|
|
5586
|
+
integrationAlias: string;
|
|
5587
|
+
integrationInterfaceAlias?: string;
|
|
5568
5588
|
interfaceId: string;
|
|
5569
5589
|
};
|
|
5570
5590
|
};
|
|
5591
|
+
/**
|
|
5592
|
+
* A mapping of plugin integration aliases to their backing integrations
|
|
5593
|
+
*/
|
|
5594
|
+
integrations?: {
|
|
5595
|
+
[k: string]: {
|
|
5596
|
+
integrationId: string;
|
|
5597
|
+
integrationAlias: string;
|
|
5598
|
+
};
|
|
5599
|
+
};
|
|
5571
5600
|
/**
|
|
5572
5601
|
* ID of the [Plugin](#schema_plugin)
|
|
5573
5602
|
*/
|
|
@@ -6058,6 +6087,23 @@ interface UpdateBotRequestBody$1 {
|
|
|
6058
6087
|
interfaces?: {
|
|
6059
6088
|
[k: string]: {
|
|
6060
6089
|
integrationId: string;
|
|
6090
|
+
/**
|
|
6091
|
+
* 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.
|
|
6092
|
+
*/
|
|
6093
|
+
integrationAlias?: string;
|
|
6094
|
+
/**
|
|
6095
|
+
* When an alias is provided, the plugin will use the integration interface corresponding to this alias.
|
|
6096
|
+
*/
|
|
6097
|
+
integrationInterfaceAlias?: string;
|
|
6098
|
+
};
|
|
6099
|
+
};
|
|
6100
|
+
/**
|
|
6101
|
+
* A mapping of plugin integration aliases to their backing integrations
|
|
6102
|
+
*/
|
|
6103
|
+
integrations?: {
|
|
6104
|
+
[k: string]: {
|
|
6105
|
+
integrationId: string;
|
|
6106
|
+
integrationAlias: string;
|
|
6061
6107
|
};
|
|
6062
6108
|
};
|
|
6063
6109
|
} | null;
|
|
@@ -6196,9 +6242,20 @@ interface UpdateBotResponse$1 {
|
|
|
6196
6242
|
interfaces?: {
|
|
6197
6243
|
[k: string]: {
|
|
6198
6244
|
integrationId: string;
|
|
6245
|
+
integrationAlias: string;
|
|
6246
|
+
integrationInterfaceAlias?: string;
|
|
6199
6247
|
interfaceId: string;
|
|
6200
6248
|
};
|
|
6201
6249
|
};
|
|
6250
|
+
/**
|
|
6251
|
+
* A mapping of plugin integration aliases to their backing integrations
|
|
6252
|
+
*/
|
|
6253
|
+
integrations?: {
|
|
6254
|
+
[k: string]: {
|
|
6255
|
+
integrationId: string;
|
|
6256
|
+
integrationAlias: string;
|
|
6257
|
+
};
|
|
6258
|
+
};
|
|
6202
6259
|
/**
|
|
6203
6260
|
* ID of the [Plugin](#schema_plugin)
|
|
6204
6261
|
*/
|
|
@@ -6659,9 +6716,20 @@ interface GetBotResponse$1 {
|
|
|
6659
6716
|
interfaces?: {
|
|
6660
6717
|
[k: string]: {
|
|
6661
6718
|
integrationId: string;
|
|
6719
|
+
integrationAlias: string;
|
|
6720
|
+
integrationInterfaceAlias?: string;
|
|
6662
6721
|
interfaceId: string;
|
|
6663
6722
|
};
|
|
6664
6723
|
};
|
|
6724
|
+
/**
|
|
6725
|
+
* A mapping of plugin integration aliases to their backing integrations
|
|
6726
|
+
*/
|
|
6727
|
+
integrations?: {
|
|
6728
|
+
[k: string]: {
|
|
6729
|
+
integrationId: string;
|
|
6730
|
+
integrationAlias: string;
|
|
6731
|
+
};
|
|
6732
|
+
};
|
|
6665
6733
|
/**
|
|
6666
6734
|
* ID of the [Plugin](#schema_plugin)
|
|
6667
6735
|
*/
|
|
@@ -7324,6 +7392,7 @@ interface DeployBotVersionResponse$1 {
|
|
|
7324
7392
|
interface CreateIntegrationShareableIdRequestHeaders$1 {
|
|
7325
7393
|
}
|
|
7326
7394
|
interface CreateIntegrationShareableIdRequestQuery$1 {
|
|
7395
|
+
integrationInstanceAlias?: string;
|
|
7327
7396
|
}
|
|
7328
7397
|
interface CreateIntegrationShareableIdRequestParams$1 {
|
|
7329
7398
|
botId: string;
|
|
@@ -7339,6 +7408,7 @@ interface CreateIntegrationShareableIdResponse$1 {
|
|
|
7339
7408
|
interface DeleteIntegrationShareableIdRequestHeaders$1 {
|
|
7340
7409
|
}
|
|
7341
7410
|
interface DeleteIntegrationShareableIdRequestQuery$1 {
|
|
7411
|
+
integrationInstanceAlias?: string;
|
|
7342
7412
|
}
|
|
7343
7413
|
interface DeleteIntegrationShareableIdRequestParams$1 {
|
|
7344
7414
|
botId: string;
|
|
@@ -7353,6 +7423,7 @@ interface DeleteIntegrationShareableIdResponse$1 {
|
|
|
7353
7423
|
interface GetIntegrationShareableIdRequestHeaders$1 {
|
|
7354
7424
|
}
|
|
7355
7425
|
interface GetIntegrationShareableIdRequestQuery$1 {
|
|
7426
|
+
integrationInstanceAlias?: string;
|
|
7356
7427
|
}
|
|
7357
7428
|
interface GetIntegrationShareableIdRequestParams$1 {
|
|
7358
7429
|
botId: string;
|
|
@@ -7369,6 +7440,7 @@ interface GetIntegrationShareableIdResponse$1 {
|
|
|
7369
7440
|
interface UnlinkSandboxedConversationsRequestHeaders$1 {
|
|
7370
7441
|
}
|
|
7371
7442
|
interface UnlinkSandboxedConversationsRequestQuery$1 {
|
|
7443
|
+
integrationInstanceAlias?: string;
|
|
7372
7444
|
}
|
|
7373
7445
|
interface UnlinkSandboxedConversationsRequestParams$1 {
|
|
7374
7446
|
botId: string;
|
|
@@ -7639,6 +7711,7 @@ interface CreateWorkspaceResponse$1 {
|
|
|
7639
7711
|
socialAccounts?: string[];
|
|
7640
7712
|
isPublic?: boolean;
|
|
7641
7713
|
handle?: string;
|
|
7714
|
+
activeTrialId: string | null;
|
|
7642
7715
|
}
|
|
7643
7716
|
|
|
7644
7717
|
interface GetPublicWorkspaceRequestHeaders$1 {
|
|
@@ -7692,6 +7765,7 @@ interface GetWorkspaceResponse$1 {
|
|
|
7692
7765
|
socialAccounts?: string[];
|
|
7693
7766
|
isPublic?: boolean;
|
|
7694
7767
|
handle?: string;
|
|
7768
|
+
activeTrialId: string | null;
|
|
7695
7769
|
}
|
|
7696
7770
|
|
|
7697
7771
|
interface ListWorkspaceUsagesRequestHeaders$1 {
|
|
@@ -7863,6 +7937,7 @@ interface UpdateWorkspaceResponse$3 {
|
|
|
7863
7937
|
socialAccounts?: string[];
|
|
7864
7938
|
isPublic?: boolean;
|
|
7865
7939
|
handle?: string;
|
|
7940
|
+
activeTrialId: string | null;
|
|
7866
7941
|
}
|
|
7867
7942
|
|
|
7868
7943
|
interface CheckHandleAvailabilityRequestHeaders$1 {
|
|
@@ -7919,6 +7994,7 @@ interface UpdateWorkspaceResponse$2 {
|
|
|
7919
7994
|
socialAccounts?: string[];
|
|
7920
7995
|
isPublic?: boolean;
|
|
7921
7996
|
handle?: string;
|
|
7997
|
+
activeTrialId: string | null;
|
|
7922
7998
|
}
|
|
7923
7999
|
|
|
7924
8000
|
interface ListPublicWorkspacesRequestHeaders$1 {
|
|
@@ -7988,7 +8064,7 @@ interface GetAuditRecordsResponse$1 {
|
|
|
7988
8064
|
resourceId: string | null;
|
|
7989
8065
|
resourceName?: string | null;
|
|
7990
8066
|
value?: string | null;
|
|
7991
|
-
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";
|
|
8067
|
+
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";
|
|
7992
8068
|
}[];
|
|
7993
8069
|
meta: {
|
|
7994
8070
|
/**
|
|
@@ -15215,6 +15291,12 @@ interface SearchFilesResponse$1 {
|
|
|
15215
15291
|
* MIME type of the file's content
|
|
15216
15292
|
*/
|
|
15217
15293
|
contentType: string;
|
|
15294
|
+
/**
|
|
15295
|
+
* Metadata of the file as an object of key-value pairs.
|
|
15296
|
+
*/
|
|
15297
|
+
metadata: {
|
|
15298
|
+
[k: string]: any | null;
|
|
15299
|
+
};
|
|
15218
15300
|
/**
|
|
15219
15301
|
* The tags of the file as an object of key-value pairs.
|
|
15220
15302
|
*/
|
|
@@ -16944,6 +17026,10 @@ interface FindTableRowsRequestBody$1 {
|
|
|
16944
17026
|
* 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.
|
|
16945
17027
|
*/
|
|
16946
17028
|
search?: string;
|
|
17029
|
+
/**
|
|
17030
|
+
* 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.
|
|
17031
|
+
*/
|
|
17032
|
+
select?: string[];
|
|
16947
17033
|
/**
|
|
16948
17034
|
* Specifies the column by which to order the results. By default it is ordered by id. Build-in columns: id, createdAt, updatedAt
|
|
16949
17035
|
*/
|
|
@@ -17878,7 +17964,7 @@ interface CreateEventResponse {
|
|
|
17878
17964
|
* ID of the [Message](#schema_message) to link the event to.
|
|
17879
17965
|
*/
|
|
17880
17966
|
messageId?: string;
|
|
17881
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
17967
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
17882
17968
|
/**
|
|
17883
17969
|
* Reason why the event failed to be processed
|
|
17884
17970
|
*/
|
|
@@ -17931,7 +18017,7 @@ interface GetEventResponse {
|
|
|
17931
18017
|
* ID of the [Message](#schema_message) to link the event to.
|
|
17932
18018
|
*/
|
|
17933
18019
|
messageId?: string;
|
|
17934
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
18020
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
17935
18021
|
/**
|
|
17936
18022
|
* Reason why the event failed to be processed
|
|
17937
18023
|
*/
|
|
@@ -17987,7 +18073,7 @@ interface ListEventsResponse {
|
|
|
17987
18073
|
* ID of the [Message](#schema_message) to link the event to.
|
|
17988
18074
|
*/
|
|
17989
18075
|
messageId?: string;
|
|
17990
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
18076
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
17991
18077
|
/**
|
|
17992
18078
|
* Reason why the event failed to be processed
|
|
17993
18079
|
*/
|
|
@@ -18001,6 +18087,19 @@ interface ListEventsResponse {
|
|
|
18001
18087
|
};
|
|
18002
18088
|
}
|
|
18003
18089
|
|
|
18090
|
+
interface CancelScheduledEventRequestHeaders {
|
|
18091
|
+
}
|
|
18092
|
+
interface CancelScheduledEventRequestQuery {
|
|
18093
|
+
}
|
|
18094
|
+
interface CancelScheduledEventRequestParams {
|
|
18095
|
+
id: string;
|
|
18096
|
+
}
|
|
18097
|
+
interface CancelScheduledEventRequestBody {
|
|
18098
|
+
}
|
|
18099
|
+
type CancelScheduledEventInput = CancelScheduledEventRequestBody & CancelScheduledEventRequestHeaders & CancelScheduledEventRequestQuery & CancelScheduledEventRequestParams;
|
|
18100
|
+
interface CancelScheduledEventResponse {
|
|
18101
|
+
}
|
|
18102
|
+
|
|
18004
18103
|
interface CreateMessageRequestHeaders {
|
|
18005
18104
|
}
|
|
18006
18105
|
interface CreateMessageRequestQuery {
|
|
@@ -19959,6 +20058,10 @@ interface GetOrCreateWorkflowRequestBody {
|
|
|
19959
20058
|
* 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.
|
|
19960
20059
|
*/
|
|
19961
20060
|
discriminateByTags?: string[];
|
|
20061
|
+
/**
|
|
20062
|
+
* When provided, will only match workflows whose status corresponds to the status group.
|
|
20063
|
+
*/
|
|
20064
|
+
discriminateByStatusGroup?: "active" | "finished";
|
|
19962
20065
|
}
|
|
19963
20066
|
type GetOrCreateWorkflowInput = GetOrCreateWorkflowRequestBody & GetOrCreateWorkflowRequestHeaders & GetOrCreateWorkflowRequestQuery & GetOrCreateWorkflowRequestParams;
|
|
19964
20067
|
interface GetOrCreateWorkflowResponse {
|
|
@@ -22597,9 +22700,20 @@ interface CreateBotResponse {
|
|
|
22597
22700
|
interfaces?: {
|
|
22598
22701
|
[k: string]: {
|
|
22599
22702
|
integrationId: string;
|
|
22703
|
+
integrationAlias: string;
|
|
22704
|
+
integrationInterfaceAlias?: string;
|
|
22600
22705
|
interfaceId: string;
|
|
22601
22706
|
};
|
|
22602
22707
|
};
|
|
22708
|
+
/**
|
|
22709
|
+
* A mapping of plugin integration aliases to their backing integrations
|
|
22710
|
+
*/
|
|
22711
|
+
integrations?: {
|
|
22712
|
+
[k: string]: {
|
|
22713
|
+
integrationId: string;
|
|
22714
|
+
integrationAlias: string;
|
|
22715
|
+
};
|
|
22716
|
+
};
|
|
22603
22717
|
/**
|
|
22604
22718
|
* ID of the [Plugin](#schema_plugin)
|
|
22605
22719
|
*/
|
|
@@ -23090,6 +23204,23 @@ interface UpdateBotRequestBody {
|
|
|
23090
23204
|
interfaces?: {
|
|
23091
23205
|
[k: string]: {
|
|
23092
23206
|
integrationId: string;
|
|
23207
|
+
/**
|
|
23208
|
+
* 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.
|
|
23209
|
+
*/
|
|
23210
|
+
integrationAlias?: string;
|
|
23211
|
+
/**
|
|
23212
|
+
* When an alias is provided, the plugin will use the integration interface corresponding to this alias.
|
|
23213
|
+
*/
|
|
23214
|
+
integrationInterfaceAlias?: string;
|
|
23215
|
+
};
|
|
23216
|
+
};
|
|
23217
|
+
/**
|
|
23218
|
+
* A mapping of plugin integration aliases to their backing integrations
|
|
23219
|
+
*/
|
|
23220
|
+
integrations?: {
|
|
23221
|
+
[k: string]: {
|
|
23222
|
+
integrationId: string;
|
|
23223
|
+
integrationAlias: string;
|
|
23093
23224
|
};
|
|
23094
23225
|
};
|
|
23095
23226
|
} | null;
|
|
@@ -23228,9 +23359,20 @@ interface UpdateBotResponse {
|
|
|
23228
23359
|
interfaces?: {
|
|
23229
23360
|
[k: string]: {
|
|
23230
23361
|
integrationId: string;
|
|
23362
|
+
integrationAlias: string;
|
|
23363
|
+
integrationInterfaceAlias?: string;
|
|
23231
23364
|
interfaceId: string;
|
|
23232
23365
|
};
|
|
23233
23366
|
};
|
|
23367
|
+
/**
|
|
23368
|
+
* A mapping of plugin integration aliases to their backing integrations
|
|
23369
|
+
*/
|
|
23370
|
+
integrations?: {
|
|
23371
|
+
[k: string]: {
|
|
23372
|
+
integrationId: string;
|
|
23373
|
+
integrationAlias: string;
|
|
23374
|
+
};
|
|
23375
|
+
};
|
|
23234
23376
|
/**
|
|
23235
23377
|
* ID of the [Plugin](#schema_plugin)
|
|
23236
23378
|
*/
|
|
@@ -23691,9 +23833,20 @@ interface GetBotResponse {
|
|
|
23691
23833
|
interfaces?: {
|
|
23692
23834
|
[k: string]: {
|
|
23693
23835
|
integrationId: string;
|
|
23836
|
+
integrationAlias: string;
|
|
23837
|
+
integrationInterfaceAlias?: string;
|
|
23694
23838
|
interfaceId: string;
|
|
23695
23839
|
};
|
|
23696
23840
|
};
|
|
23841
|
+
/**
|
|
23842
|
+
* A mapping of plugin integration aliases to their backing integrations
|
|
23843
|
+
*/
|
|
23844
|
+
integrations?: {
|
|
23845
|
+
[k: string]: {
|
|
23846
|
+
integrationId: string;
|
|
23847
|
+
integrationAlias: string;
|
|
23848
|
+
};
|
|
23849
|
+
};
|
|
23697
23850
|
/**
|
|
23698
23851
|
* ID of the [Plugin](#schema_plugin)
|
|
23699
23852
|
*/
|
|
@@ -24356,6 +24509,7 @@ interface DeployBotVersionResponse {
|
|
|
24356
24509
|
interface CreateIntegrationShareableIdRequestHeaders {
|
|
24357
24510
|
}
|
|
24358
24511
|
interface CreateIntegrationShareableIdRequestQuery {
|
|
24512
|
+
integrationInstanceAlias?: string;
|
|
24359
24513
|
}
|
|
24360
24514
|
interface CreateIntegrationShareableIdRequestParams {
|
|
24361
24515
|
botId: string;
|
|
@@ -24371,6 +24525,7 @@ interface CreateIntegrationShareableIdResponse {
|
|
|
24371
24525
|
interface DeleteIntegrationShareableIdRequestHeaders {
|
|
24372
24526
|
}
|
|
24373
24527
|
interface DeleteIntegrationShareableIdRequestQuery {
|
|
24528
|
+
integrationInstanceAlias?: string;
|
|
24374
24529
|
}
|
|
24375
24530
|
interface DeleteIntegrationShareableIdRequestParams {
|
|
24376
24531
|
botId: string;
|
|
@@ -24385,6 +24540,7 @@ interface DeleteIntegrationShareableIdResponse {
|
|
|
24385
24540
|
interface GetIntegrationShareableIdRequestHeaders {
|
|
24386
24541
|
}
|
|
24387
24542
|
interface GetIntegrationShareableIdRequestQuery {
|
|
24543
|
+
integrationInstanceAlias?: string;
|
|
24388
24544
|
}
|
|
24389
24545
|
interface GetIntegrationShareableIdRequestParams {
|
|
24390
24546
|
botId: string;
|
|
@@ -24401,6 +24557,7 @@ interface GetIntegrationShareableIdResponse {
|
|
|
24401
24557
|
interface UnlinkSandboxedConversationsRequestHeaders {
|
|
24402
24558
|
}
|
|
24403
24559
|
interface UnlinkSandboxedConversationsRequestQuery {
|
|
24560
|
+
integrationInstanceAlias?: string;
|
|
24404
24561
|
}
|
|
24405
24562
|
interface UnlinkSandboxedConversationsRequestParams {
|
|
24406
24563
|
botId: string;
|
|
@@ -24671,6 +24828,7 @@ interface CreateWorkspaceResponse {
|
|
|
24671
24828
|
socialAccounts?: string[];
|
|
24672
24829
|
isPublic?: boolean;
|
|
24673
24830
|
handle?: string;
|
|
24831
|
+
activeTrialId: string | null;
|
|
24674
24832
|
}
|
|
24675
24833
|
|
|
24676
24834
|
interface GetPublicWorkspaceRequestHeaders {
|
|
@@ -24724,6 +24882,7 @@ interface GetWorkspaceResponse {
|
|
|
24724
24882
|
socialAccounts?: string[];
|
|
24725
24883
|
isPublic?: boolean;
|
|
24726
24884
|
handle?: string;
|
|
24885
|
+
activeTrialId: string | null;
|
|
24727
24886
|
}
|
|
24728
24887
|
|
|
24729
24888
|
interface ListWorkspaceUsagesRequestHeaders {
|
|
@@ -24895,6 +25054,7 @@ interface UpdateWorkspaceResponse$1 {
|
|
|
24895
25054
|
socialAccounts?: string[];
|
|
24896
25055
|
isPublic?: boolean;
|
|
24897
25056
|
handle?: string;
|
|
25057
|
+
activeTrialId: string | null;
|
|
24898
25058
|
}
|
|
24899
25059
|
|
|
24900
25060
|
interface CheckHandleAvailabilityRequestHeaders {
|
|
@@ -24951,6 +25111,7 @@ interface UpdateWorkspaceResponse {
|
|
|
24951
25111
|
socialAccounts?: string[];
|
|
24952
25112
|
isPublic?: boolean;
|
|
24953
25113
|
handle?: string;
|
|
25114
|
+
activeTrialId: string | null;
|
|
24954
25115
|
}
|
|
24955
25116
|
|
|
24956
25117
|
interface ListPublicWorkspacesRequestHeaders {
|
|
@@ -25020,7 +25181,7 @@ interface GetAuditRecordsResponse {
|
|
|
25020
25181
|
resourceId: string | null;
|
|
25021
25182
|
resourceName?: string | null;
|
|
25022
25183
|
value?: string | null;
|
|
25023
|
-
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";
|
|
25184
|
+
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";
|
|
25024
25185
|
}[];
|
|
25025
25186
|
meta: {
|
|
25026
25187
|
/**
|
|
@@ -31907,6 +32068,12 @@ interface SearchFilesResponse {
|
|
|
31907
32068
|
* MIME type of the file's content
|
|
31908
32069
|
*/
|
|
31909
32070
|
contentType: string;
|
|
32071
|
+
/**
|
|
32072
|
+
* Metadata of the file as an object of key-value pairs.
|
|
32073
|
+
*/
|
|
32074
|
+
metadata: {
|
|
32075
|
+
[k: string]: any | null;
|
|
32076
|
+
};
|
|
31910
32077
|
/**
|
|
31911
32078
|
* The tags of the file as an object of key-value pairs.
|
|
31912
32079
|
*/
|
|
@@ -33501,6 +33668,10 @@ interface FindTableRowsRequestBody {
|
|
|
33501
33668
|
* 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.
|
|
33502
33669
|
*/
|
|
33503
33670
|
search?: string;
|
|
33671
|
+
/**
|
|
33672
|
+
* 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.
|
|
33673
|
+
*/
|
|
33674
|
+
select?: string[];
|
|
33504
33675
|
/**
|
|
33505
33676
|
* Specifies the column by which to order the results. By default it is ordered by id. Build-in columns: id, createdAt, updatedAt
|
|
33506
33677
|
*/
|
|
@@ -33917,9 +34088,20 @@ interface Bot {
|
|
|
33917
34088
|
interfaces?: {
|
|
33918
34089
|
[k: string]: {
|
|
33919
34090
|
integrationId: string;
|
|
34091
|
+
integrationAlias: string;
|
|
34092
|
+
integrationInterfaceAlias?: string;
|
|
33920
34093
|
interfaceId: string;
|
|
33921
34094
|
};
|
|
33922
34095
|
};
|
|
34096
|
+
/**
|
|
34097
|
+
* A mapping of plugin integration aliases to their backing integrations
|
|
34098
|
+
*/
|
|
34099
|
+
integrations?: {
|
|
34100
|
+
[k: string]: {
|
|
34101
|
+
integrationId: string;
|
|
34102
|
+
integrationAlias: string;
|
|
34103
|
+
};
|
|
34104
|
+
};
|
|
33923
34105
|
/**
|
|
33924
34106
|
* ID of the [Plugin](#schema_plugin)
|
|
33925
34107
|
*/
|
|
@@ -34953,6 +35135,7 @@ interface Workspace {
|
|
|
34953
35135
|
socialAccounts?: string[];
|
|
34954
35136
|
isPublic?: boolean;
|
|
34955
35137
|
handle?: string;
|
|
35138
|
+
activeTrialId: string | null;
|
|
34956
35139
|
}
|
|
34957
35140
|
interface WorkspaceMember {
|
|
34958
35141
|
id: string;
|
|
@@ -35145,7 +35328,7 @@ interface Event {
|
|
|
35145
35328
|
* ID of the [Message](#schema_message) to link the event to.
|
|
35146
35329
|
*/
|
|
35147
35330
|
messageId?: string;
|
|
35148
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
35331
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
35149
35332
|
/**
|
|
35150
35333
|
* Reason why the event failed to be processed
|
|
35151
35334
|
*/
|
|
@@ -35699,6 +35882,7 @@ declare class Client$1 {
|
|
|
35699
35882
|
readonly createEvent: (input: CreateEventInput) => Promise<CreateEventResponse>;
|
|
35700
35883
|
readonly getEvent: (input: GetEventInput) => Promise<GetEventResponse>;
|
|
35701
35884
|
readonly listEvents: (input: ListEventsInput) => Promise<ListEventsResponse>;
|
|
35885
|
+
readonly cancelScheduledEvent: (input: CancelScheduledEventInput) => Promise<CancelScheduledEventResponse>;
|
|
35702
35886
|
readonly createMessage: (input: CreateMessageInput) => Promise<CreateMessageResponse>;
|
|
35703
35887
|
readonly getOrCreateMessage: (input: GetOrCreateMessageInput) => Promise<GetOrCreateMessageResponse>;
|
|
35704
35888
|
readonly getMessage: (input: GetMessageInput) => Promise<GetMessageResponse>;
|
|
@@ -35941,7 +36125,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
35941
36125
|
conversationId?: string;
|
|
35942
36126
|
userId?: string;
|
|
35943
36127
|
messageId?: string;
|
|
35944
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
36128
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
35945
36129
|
failureReason: string | null;
|
|
35946
36130
|
}>;
|
|
35947
36131
|
messages: (props: {
|
|
@@ -36340,6 +36524,7 @@ declare const codes: {
|
|
|
36340
36524
|
readonly HTTP_STATUS_METHOD_NOT_ALLOWED: 405;
|
|
36341
36525
|
readonly HTTP_STATUS_REQUEST_TIMEOUT: 408;
|
|
36342
36526
|
readonly HTTP_STATUS_CONFLICT: 409;
|
|
36527
|
+
readonly HTTP_STATUS_GONE: 410;
|
|
36343
36528
|
readonly HTTP_STATUS_PAYLOAD_TOO_LARGE: 413;
|
|
36344
36529
|
readonly HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE: 415;
|
|
36345
36530
|
readonly HTTP_STATUS_DEPENDENCY_FAILED: 424;
|
|
@@ -36478,6 +36663,13 @@ type ResourceLockedConflictType = 'ResourceLockedConflict';
|
|
|
36478
36663
|
declare class ResourceLockedConflictError extends BaseApiError<409, ResourceLockedConflictType, 'The resource is current locked and cannot be operated on until the lock is released.'> {
|
|
36479
36664
|
constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
|
|
36480
36665
|
}
|
|
36666
|
+
type ResourceGoneType = 'ResourceGone';
|
|
36667
|
+
/**
|
|
36668
|
+
* The requested resource is no longer available.
|
|
36669
|
+
*/
|
|
36670
|
+
declare class ResourceGoneError extends BaseApiError<410, ResourceGoneType, 'The requested resource is no longer available.'> {
|
|
36671
|
+
constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
|
|
36672
|
+
}
|
|
36481
36673
|
type ReferenceNotFoundType = 'ReferenceNotFound';
|
|
36482
36674
|
/**
|
|
36483
36675
|
* The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.
|
|
@@ -36541,8 +36733,8 @@ type BreakingChangesType = 'BreakingChanges';
|
|
|
36541
36733
|
declare class BreakingChangesError extends BaseApiError<400, BreakingChangesType, 'Request payload contains breaking changes which is not allowed for this resource without a version increment.'> {
|
|
36542
36734
|
constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>);
|
|
36543
36735
|
}
|
|
36544
|
-
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';
|
|
36545
|
-
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;
|
|
36736
|
+
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';
|
|
36737
|
+
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;
|
|
36546
36738
|
declare const errorFrom: (err: unknown) => ApiError;
|
|
36547
36739
|
|
|
36548
36740
|
declare class UploadFileError extends Error {
|
|
@@ -36551,4 +36743,4 @@ declare class UploadFileError extends Error {
|
|
|
36551
36743
|
constructor(message: string, innerError?: AxiosError | undefined, file?: UpsertFileResponse["file"] | undefined);
|
|
36552
36744
|
}
|
|
36553
36745
|
|
|
36554
|
-
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 };
|
|
36746
|
+
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 };
|