@botpress/client 1.46.0 → 1.48.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/bundle.cjs +13 -13
- 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 +713 -145
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +4 -4
- package/package.json +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -2438,6 +2438,40 @@ interface CallActionResponse$1 {
|
|
|
2438
2438
|
};
|
|
2439
2439
|
}
|
|
2440
2440
|
|
|
2441
|
+
interface UnlinkIntegrationIdentifierRequestHeaders$1 {
|
|
2442
|
+
}
|
|
2443
|
+
interface UnlinkIntegrationIdentifierRequestQuery$1 {
|
|
2444
|
+
value: string;
|
|
2445
|
+
}
|
|
2446
|
+
interface UnlinkIntegrationIdentifierRequestParams$1 {
|
|
2447
|
+
}
|
|
2448
|
+
interface UnlinkIntegrationIdentifierRequestBody$1 {
|
|
2449
|
+
}
|
|
2450
|
+
type UnlinkIntegrationIdentifierInput$1 = UnlinkIntegrationIdentifierRequestBody$1 & UnlinkIntegrationIdentifierRequestHeaders$1 & UnlinkIntegrationIdentifierRequestQuery$1 & UnlinkIntegrationIdentifierRequestParams$1;
|
|
2451
|
+
interface UnlinkIntegrationIdentifierResponse$1 {
|
|
2452
|
+
/**
|
|
2453
|
+
* Number of integration instances that had the identifier removed
|
|
2454
|
+
*/
|
|
2455
|
+
count: number;
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
interface GetIntegrationIdentifierAvailabilityRequestHeaders$1 {
|
|
2459
|
+
}
|
|
2460
|
+
interface GetIntegrationIdentifierAvailabilityRequestQuery$1 {
|
|
2461
|
+
value: string;
|
|
2462
|
+
}
|
|
2463
|
+
interface GetIntegrationIdentifierAvailabilityRequestParams$1 {
|
|
2464
|
+
}
|
|
2465
|
+
interface GetIntegrationIdentifierAvailabilityRequestBody$1 {
|
|
2466
|
+
}
|
|
2467
|
+
type GetIntegrationIdentifierAvailabilityInput$1 = GetIntegrationIdentifierAvailabilityRequestBody$1 & GetIntegrationIdentifierAvailabilityRequestHeaders$1 & GetIntegrationIdentifierAvailabilityRequestQuery$1 & GetIntegrationIdentifierAvailabilityRequestParams$1;
|
|
2468
|
+
interface GetIntegrationIdentifierAvailabilityResponse$1 {
|
|
2469
|
+
/**
|
|
2470
|
+
* `available` means no integration instance uses this identifier. `shareable` means it is already in use, but it can be shared. `unavailable` means it is already in use and cannot be shared.
|
|
2471
|
+
*/
|
|
2472
|
+
status: "available" | "shareable" | "unavailable";
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2441
2475
|
interface ConfigureIntegrationRequestHeaders$1 {
|
|
2442
2476
|
}
|
|
2443
2477
|
interface ConfigureIntegrationRequestQuery$1 {
|
|
@@ -3133,6 +3167,8 @@ declare class Client$b {
|
|
|
3133
3167
|
readonly getOrSetState: (input: GetOrSetStateInput$1) => Promise<GetOrSetStateResponse$1>;
|
|
3134
3168
|
readonly patchState: (input: PatchStateInput$1) => Promise<PatchStateResponse$1>;
|
|
3135
3169
|
readonly callAction: (input: CallActionInput$1) => Promise<CallActionResponse$1>;
|
|
3170
|
+
readonly unlinkIntegrationIdentifier: (input: UnlinkIntegrationIdentifierInput$1) => Promise<UnlinkIntegrationIdentifierResponse$1>;
|
|
3171
|
+
readonly getIntegrationIdentifierAvailability: (input: GetIntegrationIdentifierAvailabilityInput$1) => Promise<GetIntegrationIdentifierAvailabilityResponse$1>;
|
|
3136
3172
|
readonly configureIntegration: (input: ConfigureIntegrationInput$1) => Promise<ConfigureIntegrationResponse$1>;
|
|
3137
3173
|
readonly createWorkflow: (input: CreateWorkflowInput$1) => Promise<CreateWorkflowResponse$1>;
|
|
3138
3174
|
readonly getWorkflow: (input: GetWorkflowInput$1) => Promise<GetWorkflowResponse$1>;
|
|
@@ -3161,10 +3197,10 @@ declare class Client$a extends Client$b {
|
|
|
3161
3197
|
constructor(clientProps: ClientProps$a);
|
|
3162
3198
|
get list(): {
|
|
3163
3199
|
conversations: (props: {
|
|
3200
|
+
channel?: string | undefined;
|
|
3164
3201
|
tags?: {
|
|
3165
3202
|
[x: string]: string;
|
|
3166
3203
|
} | undefined;
|
|
3167
|
-
channel?: string | undefined;
|
|
3168
3204
|
integrationName?: string | undefined;
|
|
3169
3205
|
pageSize?: number | undefined;
|
|
3170
3206
|
sortField?: "createdAt" | "updatedAt" | undefined;
|
|
@@ -3209,13 +3245,13 @@ declare class Client$a extends Client$b {
|
|
|
3209
3245
|
};
|
|
3210
3246
|
}>;
|
|
3211
3247
|
events: (props: {
|
|
3212
|
-
status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
|
|
3213
|
-
type?: string | undefined;
|
|
3214
3248
|
pageSize?: number | undefined;
|
|
3215
3249
|
userId?: string | undefined;
|
|
3250
|
+
type?: string | undefined;
|
|
3216
3251
|
conversationId?: string | undefined;
|
|
3217
3252
|
workflowId?: string | undefined;
|
|
3218
3253
|
messageId?: string | undefined;
|
|
3254
|
+
status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
|
|
3219
3255
|
}) => AsyncCollection<{
|
|
3220
3256
|
id: string;
|
|
3221
3257
|
createdAt: string;
|
|
@@ -3284,7 +3320,8 @@ declare class Client$a extends Client$b {
|
|
|
3284
3320
|
}
|
|
3285
3321
|
|
|
3286
3322
|
declare namespace index$4 {
|
|
3287
|
-
export { Client$a as Client
|
|
3323
|
+
export { Client$a as Client };
|
|
3324
|
+
export type { ClientInputs$5 as ClientInputs, ClientOutputs$5 as ClientOutputs, ClientProps$a as ClientProps, Operation$5 as Operation };
|
|
3288
3325
|
}
|
|
3289
3326
|
|
|
3290
3327
|
type Primitive$4 = string | number | boolean;
|
|
@@ -4474,10 +4511,6 @@ interface ListPublicPluginsResponse$1 {
|
|
|
4474
4511
|
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
4475
4512
|
*/
|
|
4476
4513
|
iconUrl: string;
|
|
4477
|
-
/**
|
|
4478
|
-
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
4479
|
-
*/
|
|
4480
|
-
readmeUrl: string;
|
|
4481
4514
|
/**
|
|
4482
4515
|
* @deprecated
|
|
4483
4516
|
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
@@ -5706,17 +5739,6 @@ interface CreateBotRequestBody$1 {
|
|
|
5706
5739
|
};
|
|
5707
5740
|
};
|
|
5708
5741
|
};
|
|
5709
|
-
/**
|
|
5710
|
-
* Subscriptions of the bot
|
|
5711
|
-
*/
|
|
5712
|
-
subscriptions?: {
|
|
5713
|
-
/**
|
|
5714
|
-
* Events that the bot is currently subscribed on (ex: "slack:reactionAdded"). If null, the bot is subscribed to all events.
|
|
5715
|
-
*/
|
|
5716
|
-
events: {
|
|
5717
|
-
[k: string]: {};
|
|
5718
|
-
} | null;
|
|
5719
|
-
};
|
|
5720
5742
|
/**
|
|
5721
5743
|
* Actions definition
|
|
5722
5744
|
*/
|
|
@@ -5824,6 +5846,58 @@ interface CreateBotRequestBody$1 {
|
|
|
5824
5846
|
tags?: {
|
|
5825
5847
|
[k: string]: string;
|
|
5826
5848
|
};
|
|
5849
|
+
/**
|
|
5850
|
+
* Maximum execution time (in seconds).
|
|
5851
|
+
*/
|
|
5852
|
+
maxExecutionTime?: number;
|
|
5853
|
+
/**
|
|
5854
|
+
* Subscriptions of the bot
|
|
5855
|
+
*/
|
|
5856
|
+
subscriptions?: {
|
|
5857
|
+
/**
|
|
5858
|
+
* Subscriptions for events coming from specific integrations. Keyed by integration alias.
|
|
5859
|
+
*/
|
|
5860
|
+
integrations?: {
|
|
5861
|
+
[k: string]: {
|
|
5862
|
+
/**
|
|
5863
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
5864
|
+
*/
|
|
5865
|
+
events: {
|
|
5866
|
+
include?: string[];
|
|
5867
|
+
exclude?: string[];
|
|
5868
|
+
} | null;
|
|
5869
|
+
};
|
|
5870
|
+
};
|
|
5871
|
+
/**
|
|
5872
|
+
* Subscriptions for events coming from specific plugins. Keyed by plugin alias.
|
|
5873
|
+
*/
|
|
5874
|
+
plugins?: {
|
|
5875
|
+
[k: string]: {
|
|
5876
|
+
/**
|
|
5877
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
5878
|
+
*/
|
|
5879
|
+
events: {
|
|
5880
|
+
include?: string[];
|
|
5881
|
+
exclude?: string[];
|
|
5882
|
+
} | null;
|
|
5883
|
+
};
|
|
5884
|
+
};
|
|
5885
|
+
bot?: {
|
|
5886
|
+
/**
|
|
5887
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
5888
|
+
*/
|
|
5889
|
+
events: {
|
|
5890
|
+
include?: string[];
|
|
5891
|
+
exclude?: string[];
|
|
5892
|
+
} | null;
|
|
5893
|
+
};
|
|
5894
|
+
/**
|
|
5895
|
+
* [DEPRECATED] Use `integrations`, `plugins`, and `bot` instead. Mapped onto the new per-source fields incrementally (each entry adds or removes its own event type). Cannot be combined with the new fields in the same request. If null, the bot is subscribed to all events.
|
|
5896
|
+
*/
|
|
5897
|
+
events?: {
|
|
5898
|
+
[k: string]: {} | null;
|
|
5899
|
+
} | null;
|
|
5900
|
+
};
|
|
5827
5901
|
/**
|
|
5828
5902
|
* JavaScript code of the bot
|
|
5829
5903
|
*/
|
|
@@ -5857,14 +5931,7 @@ interface CreateBotRequestBody$1 {
|
|
|
5857
5931
|
* Indicates if the [Bot](#schema_bot) is a development bot; Development bots run locally and can install dev integrations
|
|
5858
5932
|
*/
|
|
5859
5933
|
dev?: boolean;
|
|
5860
|
-
|
|
5861
|
-
* Type of the [Bot](#schema_bot)
|
|
5862
|
-
*/
|
|
5863
|
-
type?: "studio" | "adk" | "desk";
|
|
5864
|
-
/**
|
|
5865
|
-
* Maximum execution time (in seconds).
|
|
5866
|
-
*/
|
|
5867
|
-
maxExecutionTime?: number;
|
|
5934
|
+
type?: "studio" | "adk";
|
|
5868
5935
|
}
|
|
5869
5936
|
type CreateBotInput$1 = CreateBotRequestBody$1 & CreateBotRequestHeaders$1 & CreateBotRequestQuery$1 & CreateBotRequestParams$1;
|
|
5870
5937
|
interface CreateBotResponse$1 {
|
|
@@ -6016,10 +6083,6 @@ interface CreateBotResponse$1 {
|
|
|
6016
6083
|
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
6017
6084
|
*/
|
|
6018
6085
|
iconUrl: string;
|
|
6019
|
-
/**
|
|
6020
|
-
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
6021
|
-
*/
|
|
6022
|
-
readmeUrl: string;
|
|
6023
6086
|
/**
|
|
6024
6087
|
* @deprecated
|
|
6025
6088
|
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
@@ -6191,11 +6254,48 @@ interface CreateBotResponse$1 {
|
|
|
6191
6254
|
*/
|
|
6192
6255
|
subscriptions: {
|
|
6193
6256
|
/**
|
|
6194
|
-
*
|
|
6257
|
+
* [DEPRECATED] Use `integrations`, `plugins`, and `bot` instead. Mapped onto the new per-source fields incrementally (each entry adds or removes its own event type). Cannot be combined with the new fields in the same request. If null, the bot is subscribed to all events.
|
|
6195
6258
|
*/
|
|
6196
6259
|
events: {
|
|
6197
6260
|
[k: string]: {};
|
|
6198
6261
|
} | null;
|
|
6262
|
+
/**
|
|
6263
|
+
* Subscriptions for events coming from specific integrations. Keyed by integration alias.
|
|
6264
|
+
*/
|
|
6265
|
+
integrations?: {
|
|
6266
|
+
[k: string]: {
|
|
6267
|
+
/**
|
|
6268
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
6269
|
+
*/
|
|
6270
|
+
events: {
|
|
6271
|
+
include?: string[];
|
|
6272
|
+
exclude?: string[];
|
|
6273
|
+
} | null;
|
|
6274
|
+
};
|
|
6275
|
+
};
|
|
6276
|
+
/**
|
|
6277
|
+
* Subscriptions for events coming from specific plugins. Keyed by plugin alias.
|
|
6278
|
+
*/
|
|
6279
|
+
plugins?: {
|
|
6280
|
+
[k: string]: {
|
|
6281
|
+
/**
|
|
6282
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
6283
|
+
*/
|
|
6284
|
+
events: {
|
|
6285
|
+
include?: string[];
|
|
6286
|
+
exclude?: string[];
|
|
6287
|
+
} | null;
|
|
6288
|
+
};
|
|
6289
|
+
};
|
|
6290
|
+
bot?: {
|
|
6291
|
+
/**
|
|
6292
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
6293
|
+
*/
|
|
6294
|
+
events: {
|
|
6295
|
+
include?: string[];
|
|
6296
|
+
exclude?: string[];
|
|
6297
|
+
} | null;
|
|
6298
|
+
};
|
|
6199
6299
|
};
|
|
6200
6300
|
/**
|
|
6201
6301
|
* Actions definition
|
|
@@ -6321,11 +6421,11 @@ interface UpdateBotRequestBody$1 {
|
|
|
6321
6421
|
[k: string]: any;
|
|
6322
6422
|
};
|
|
6323
6423
|
};
|
|
6324
|
-
blocked?: boolean;
|
|
6325
6424
|
/**
|
|
6326
6425
|
* Maximum execution time (in seconds).
|
|
6327
6426
|
*/
|
|
6328
6427
|
maxExecutionTime?: number;
|
|
6428
|
+
blocked?: boolean;
|
|
6329
6429
|
/**
|
|
6330
6430
|
* Indicates if the [Bot](#schema_bot) should be in always alive mode
|
|
6331
6431
|
*/
|
|
@@ -6524,8 +6624,51 @@ interface UpdateBotRequestBody$1 {
|
|
|
6524
6624
|
};
|
|
6525
6625
|
} | null;
|
|
6526
6626
|
};
|
|
6627
|
+
/**
|
|
6628
|
+
* Subscriptions of the bot
|
|
6629
|
+
*/
|
|
6527
6630
|
subscriptions?: {
|
|
6528
|
-
|
|
6631
|
+
/**
|
|
6632
|
+
* Subscriptions for events coming from specific integrations. Keyed by integration alias.
|
|
6633
|
+
*/
|
|
6634
|
+
integrations?: {
|
|
6635
|
+
[k: string]: {
|
|
6636
|
+
/**
|
|
6637
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
6638
|
+
*/
|
|
6639
|
+
events: {
|
|
6640
|
+
include?: string[];
|
|
6641
|
+
exclude?: string[];
|
|
6642
|
+
} | null;
|
|
6643
|
+
};
|
|
6644
|
+
};
|
|
6645
|
+
/**
|
|
6646
|
+
* Subscriptions for events coming from specific plugins. Keyed by plugin alias.
|
|
6647
|
+
*/
|
|
6648
|
+
plugins?: {
|
|
6649
|
+
[k: string]: {
|
|
6650
|
+
/**
|
|
6651
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
6652
|
+
*/
|
|
6653
|
+
events: {
|
|
6654
|
+
include?: string[];
|
|
6655
|
+
exclude?: string[];
|
|
6656
|
+
} | null;
|
|
6657
|
+
};
|
|
6658
|
+
};
|
|
6659
|
+
bot?: {
|
|
6660
|
+
/**
|
|
6661
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
6662
|
+
*/
|
|
6663
|
+
events: {
|
|
6664
|
+
include?: string[];
|
|
6665
|
+
exclude?: string[];
|
|
6666
|
+
} | null;
|
|
6667
|
+
};
|
|
6668
|
+
/**
|
|
6669
|
+
* [DEPRECATED] Use `integrations`, `plugins`, and `bot` instead. Mapped onto the new per-source fields incrementally (each entry adds or removes its own event type). Cannot be combined with the new fields in the same request. If null, the bot is subscribed to all events.
|
|
6670
|
+
*/
|
|
6671
|
+
events?: {
|
|
6529
6672
|
[k: string]: {} | null;
|
|
6530
6673
|
} | null;
|
|
6531
6674
|
};
|
|
@@ -6555,10 +6698,7 @@ interface UpdateBotRequestBody$1 {
|
|
|
6555
6698
|
[k: string]: string | null;
|
|
6556
6699
|
};
|
|
6557
6700
|
layers?: string[];
|
|
6558
|
-
|
|
6559
|
-
* Type of the [Bot](#schema_bot)
|
|
6560
|
-
*/
|
|
6561
|
-
type?: "studio" | "adk" | "desk";
|
|
6701
|
+
type?: "studio" | "adk";
|
|
6562
6702
|
}
|
|
6563
6703
|
type UpdateBotInput$1 = UpdateBotRequestBody$1 & UpdateBotRequestHeaders$1 & UpdateBotRequestQuery$1 & UpdateBotRequestParams$1;
|
|
6564
6704
|
interface UpdateBotResponse$1 {
|
|
@@ -6710,10 +6850,6 @@ interface UpdateBotResponse$1 {
|
|
|
6710
6850
|
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
6711
6851
|
*/
|
|
6712
6852
|
iconUrl: string;
|
|
6713
|
-
/**
|
|
6714
|
-
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
6715
|
-
*/
|
|
6716
|
-
readmeUrl: string;
|
|
6717
6853
|
/**
|
|
6718
6854
|
* @deprecated
|
|
6719
6855
|
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
@@ -6885,11 +7021,48 @@ interface UpdateBotResponse$1 {
|
|
|
6885
7021
|
*/
|
|
6886
7022
|
subscriptions: {
|
|
6887
7023
|
/**
|
|
6888
|
-
*
|
|
7024
|
+
* [DEPRECATED] Use `integrations`, `plugins`, and `bot` instead. Mapped onto the new per-source fields incrementally (each entry adds or removes its own event type). Cannot be combined with the new fields in the same request. If null, the bot is subscribed to all events.
|
|
6889
7025
|
*/
|
|
6890
7026
|
events: {
|
|
6891
7027
|
[k: string]: {};
|
|
6892
7028
|
} | null;
|
|
7029
|
+
/**
|
|
7030
|
+
* Subscriptions for events coming from specific integrations. Keyed by integration alias.
|
|
7031
|
+
*/
|
|
7032
|
+
integrations?: {
|
|
7033
|
+
[k: string]: {
|
|
7034
|
+
/**
|
|
7035
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
7036
|
+
*/
|
|
7037
|
+
events: {
|
|
7038
|
+
include?: string[];
|
|
7039
|
+
exclude?: string[];
|
|
7040
|
+
} | null;
|
|
7041
|
+
};
|
|
7042
|
+
};
|
|
7043
|
+
/**
|
|
7044
|
+
* Subscriptions for events coming from specific plugins. Keyed by plugin alias.
|
|
7045
|
+
*/
|
|
7046
|
+
plugins?: {
|
|
7047
|
+
[k: string]: {
|
|
7048
|
+
/**
|
|
7049
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
7050
|
+
*/
|
|
7051
|
+
events: {
|
|
7052
|
+
include?: string[];
|
|
7053
|
+
exclude?: string[];
|
|
7054
|
+
} | null;
|
|
7055
|
+
};
|
|
7056
|
+
};
|
|
7057
|
+
bot?: {
|
|
7058
|
+
/**
|
|
7059
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
7060
|
+
*/
|
|
7061
|
+
events: {
|
|
7062
|
+
include?: string[];
|
|
7063
|
+
exclude?: string[];
|
|
7064
|
+
} | null;
|
|
7065
|
+
};
|
|
6893
7066
|
};
|
|
6894
7067
|
/**
|
|
6895
7068
|
* Actions definition
|
|
@@ -7232,10 +7405,6 @@ interface GetBotResponse$1 {
|
|
|
7232
7405
|
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
7233
7406
|
*/
|
|
7234
7407
|
iconUrl: string;
|
|
7235
|
-
/**
|
|
7236
|
-
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
7237
|
-
*/
|
|
7238
|
-
readmeUrl: string;
|
|
7239
7408
|
/**
|
|
7240
7409
|
* @deprecated
|
|
7241
7410
|
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
@@ -7407,11 +7576,48 @@ interface GetBotResponse$1 {
|
|
|
7407
7576
|
*/
|
|
7408
7577
|
subscriptions: {
|
|
7409
7578
|
/**
|
|
7410
|
-
*
|
|
7579
|
+
* [DEPRECATED] Use `integrations`, `plugins`, and `bot` instead. Mapped onto the new per-source fields incrementally (each entry adds or removes its own event type). Cannot be combined with the new fields in the same request. If null, the bot is subscribed to all events.
|
|
7411
7580
|
*/
|
|
7412
7581
|
events: {
|
|
7413
7582
|
[k: string]: {};
|
|
7414
7583
|
} | null;
|
|
7584
|
+
/**
|
|
7585
|
+
* Subscriptions for events coming from specific integrations. Keyed by integration alias.
|
|
7586
|
+
*/
|
|
7587
|
+
integrations?: {
|
|
7588
|
+
[k: string]: {
|
|
7589
|
+
/**
|
|
7590
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
7591
|
+
*/
|
|
7592
|
+
events: {
|
|
7593
|
+
include?: string[];
|
|
7594
|
+
exclude?: string[];
|
|
7595
|
+
} | null;
|
|
7596
|
+
};
|
|
7597
|
+
};
|
|
7598
|
+
/**
|
|
7599
|
+
* Subscriptions for events coming from specific plugins. Keyed by plugin alias.
|
|
7600
|
+
*/
|
|
7601
|
+
plugins?: {
|
|
7602
|
+
[k: string]: {
|
|
7603
|
+
/**
|
|
7604
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
7605
|
+
*/
|
|
7606
|
+
events: {
|
|
7607
|
+
include?: string[];
|
|
7608
|
+
exclude?: string[];
|
|
7609
|
+
} | null;
|
|
7610
|
+
};
|
|
7611
|
+
};
|
|
7612
|
+
bot?: {
|
|
7613
|
+
/**
|
|
7614
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
7615
|
+
*/
|
|
7616
|
+
events: {
|
|
7617
|
+
include?: string[];
|
|
7618
|
+
exclude?: string[];
|
|
7619
|
+
} | null;
|
|
7620
|
+
};
|
|
7415
7621
|
};
|
|
7416
7622
|
/**
|
|
7417
7623
|
* Actions definition
|
|
@@ -7584,7 +7790,7 @@ interface GetBotAnalyticsResponse$1 {
|
|
|
7584
7790
|
*/
|
|
7585
7791
|
startDateTimeUtc: string;
|
|
7586
7792
|
/**
|
|
7587
|
-
* ISO 8601 date string of the end (
|
|
7793
|
+
* ISO 8601 date string of the end (exclusive) of the period
|
|
7588
7794
|
*/
|
|
7589
7795
|
endDateTimeUtc: string;
|
|
7590
7796
|
returningUsers: number;
|
|
@@ -7597,12 +7803,46 @@ interface GetBotAnalyticsResponse$1 {
|
|
|
7597
7803
|
userMessages: number;
|
|
7598
7804
|
botMessages: number;
|
|
7599
7805
|
events: number;
|
|
7806
|
+
/**
|
|
7807
|
+
* Number of conversations created during the period
|
|
7808
|
+
*/
|
|
7809
|
+
conversationsCreated: number;
|
|
7600
7810
|
eventTypes: {
|
|
7601
7811
|
[k: string]: number;
|
|
7602
7812
|
};
|
|
7603
7813
|
customEvents: {
|
|
7604
7814
|
[k: string]: number;
|
|
7605
7815
|
};
|
|
7816
|
+
workflows: {
|
|
7817
|
+
created: number;
|
|
7818
|
+
completed: number;
|
|
7819
|
+
failed: number;
|
|
7820
|
+
timedout: number;
|
|
7821
|
+
cancelled: number;
|
|
7822
|
+
duration: {
|
|
7823
|
+
count: number;
|
|
7824
|
+
sum: number;
|
|
7825
|
+
mean: number;
|
|
7826
|
+
min: number;
|
|
7827
|
+
max: number;
|
|
7828
|
+
};
|
|
7829
|
+
byName: {
|
|
7830
|
+
[k: string]: {
|
|
7831
|
+
created: number;
|
|
7832
|
+
completed: number;
|
|
7833
|
+
failed: number;
|
|
7834
|
+
timedout: number;
|
|
7835
|
+
cancelled: number;
|
|
7836
|
+
duration: {
|
|
7837
|
+
count: number;
|
|
7838
|
+
sum: number;
|
|
7839
|
+
mean: number;
|
|
7840
|
+
min: number;
|
|
7841
|
+
max: number;
|
|
7842
|
+
};
|
|
7843
|
+
};
|
|
7844
|
+
};
|
|
7845
|
+
};
|
|
7606
7846
|
llm: {
|
|
7607
7847
|
calls: number;
|
|
7608
7848
|
errors: number;
|
|
@@ -14702,10 +14942,6 @@ interface ListPluginsResponse$1 {
|
|
|
14702
14942
|
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
14703
14943
|
*/
|
|
14704
14944
|
iconUrl: string;
|
|
14705
|
-
/**
|
|
14706
|
-
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
14707
|
-
*/
|
|
14708
|
-
readmeUrl: string;
|
|
14709
14945
|
/**
|
|
14710
14946
|
* @deprecated
|
|
14711
14947
|
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
@@ -15113,7 +15349,6 @@ declare class Client$8 extends Client$9 {
|
|
|
15113
15349
|
constructor(clientProps: ClientProps$8);
|
|
15114
15350
|
get list(): {
|
|
15115
15351
|
publicIntegrations: (props: {
|
|
15116
|
-
search?: string | undefined;
|
|
15117
15352
|
pageSize?: number | undefined;
|
|
15118
15353
|
name?: string | undefined;
|
|
15119
15354
|
limit?: number | undefined;
|
|
@@ -15122,6 +15357,7 @@ declare class Client$8 extends Client$9 {
|
|
|
15122
15357
|
interfaceName?: string | undefined;
|
|
15123
15358
|
installedByBotId?: string | undefined;
|
|
15124
15359
|
verificationStatus?: "unapproved" | "pending" | "approved" | "rejected" | undefined;
|
|
15360
|
+
search?: string | undefined;
|
|
15125
15361
|
sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount" | undefined;
|
|
15126
15362
|
direction?: "asc" | "desc" | undefined;
|
|
15127
15363
|
}) => AsyncCollection<{
|
|
@@ -15203,8 +15439,8 @@ declare class Client$8 extends Client$9 {
|
|
|
15203
15439
|
handle?: string | undefined;
|
|
15204
15440
|
}) => AsyncCollection<UpdateWorkspaceResponse$2>;
|
|
15205
15441
|
publicWorkspaces: (props: {
|
|
15206
|
-
search?: string | undefined;
|
|
15207
15442
|
pageSize?: number | undefined;
|
|
15443
|
+
search?: string | undefined;
|
|
15208
15444
|
workspaceIds?: string[] | undefined;
|
|
15209
15445
|
}) => AsyncCollection<GetPublicWorkspaceResponse$2>;
|
|
15210
15446
|
workspaceMembers: (props: {
|
|
@@ -15219,7 +15455,6 @@ declare class Client$8 extends Client$9 {
|
|
|
15219
15455
|
displayName?: string;
|
|
15220
15456
|
}>;
|
|
15221
15457
|
integrations: (props: {
|
|
15222
|
-
search?: string | undefined;
|
|
15223
15458
|
pageSize?: number | undefined;
|
|
15224
15459
|
name?: string | undefined;
|
|
15225
15460
|
limit?: number | undefined;
|
|
@@ -15228,6 +15463,7 @@ declare class Client$8 extends Client$9 {
|
|
|
15228
15463
|
interfaceName?: string | undefined;
|
|
15229
15464
|
installedByBotId?: string | undefined;
|
|
15230
15465
|
verificationStatus?: "unapproved" | "pending" | "approved" | "rejected" | undefined;
|
|
15466
|
+
search?: string | undefined;
|
|
15231
15467
|
sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount" | undefined;
|
|
15232
15468
|
direction?: "asc" | "desc" | undefined;
|
|
15233
15469
|
dev?: boolean | undefined;
|
|
@@ -15278,8 +15514,8 @@ declare class Client$8 extends Client$9 {
|
|
|
15278
15514
|
public: boolean;
|
|
15279
15515
|
}>;
|
|
15280
15516
|
activities: (props: {
|
|
15281
|
-
botId: string;
|
|
15282
15517
|
pageSize?: number | undefined;
|
|
15518
|
+
botId: string;
|
|
15283
15519
|
taskId: string;
|
|
15284
15520
|
}) => AsyncCollection<{
|
|
15285
15521
|
id: string;
|
|
@@ -15292,9 +15528,9 @@ declare class Client$8 extends Client$9 {
|
|
|
15292
15528
|
createdAt: string;
|
|
15293
15529
|
}>;
|
|
15294
15530
|
usageActivity: (props: {
|
|
15295
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
15296
15531
|
id: string;
|
|
15297
15532
|
pageSize?: number | undefined;
|
|
15533
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
15298
15534
|
timestampFrom?: string | undefined;
|
|
15299
15535
|
timestampUntil?: string | undefined;
|
|
15300
15536
|
}) => AsyncCollection<{
|
|
@@ -15306,9 +15542,9 @@ declare class Client$8 extends Client$9 {
|
|
|
15306
15542
|
};
|
|
15307
15543
|
}>;
|
|
15308
15544
|
usageActivityDaily: (props: {
|
|
15309
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
15310
15545
|
id: string;
|
|
15311
15546
|
pageSize?: number | undefined;
|
|
15547
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
15312
15548
|
dateFrom?: string | undefined;
|
|
15313
15549
|
dateUntil?: string | undefined;
|
|
15314
15550
|
}) => AsyncCollection<{
|
|
@@ -15326,7 +15562,8 @@ declare class Client$8 extends Client$9 {
|
|
|
15326
15562
|
}
|
|
15327
15563
|
|
|
15328
15564
|
declare namespace index$3 {
|
|
15329
|
-
export { Client$8 as Client
|
|
15565
|
+
export { Client$8 as Client };
|
|
15566
|
+
export type { ClientInputs$4 as ClientInputs, ClientOutputs$4 as ClientOutputs, ClientProps$8 as ClientProps, Operation$4 as Operation };
|
|
15330
15567
|
}
|
|
15331
15568
|
|
|
15332
15569
|
type Primitive$3 = string | number | boolean;
|
|
@@ -15370,11 +15607,11 @@ interface GetBillingAddressRequestBody {
|
|
|
15370
15607
|
type GetBillingAddressInput = GetBillingAddressRequestBody & GetBillingAddressRequestHeaders & GetBillingAddressRequestQuery & GetBillingAddressRequestParams;
|
|
15371
15608
|
interface GetBillingAddressResponse {
|
|
15372
15609
|
address: {
|
|
15373
|
-
lineOne
|
|
15610
|
+
lineOne?: string;
|
|
15374
15611
|
lineTwo?: string;
|
|
15375
|
-
city
|
|
15612
|
+
city?: string;
|
|
15376
15613
|
state?: string;
|
|
15377
|
-
postalCode
|
|
15614
|
+
postalCode?: string;
|
|
15378
15615
|
country: string;
|
|
15379
15616
|
} | null;
|
|
15380
15617
|
}
|
|
@@ -15386,11 +15623,11 @@ interface SetBillingAddressRequestQuery {
|
|
|
15386
15623
|
interface SetBillingAddressRequestParams {
|
|
15387
15624
|
}
|
|
15388
15625
|
interface SetBillingAddressRequestBody {
|
|
15389
|
-
lineOne
|
|
15626
|
+
lineOne?: string;
|
|
15390
15627
|
lineTwo?: string;
|
|
15391
|
-
city
|
|
15628
|
+
city?: string;
|
|
15392
15629
|
state?: string;
|
|
15393
|
-
postalCode
|
|
15630
|
+
postalCode?: string;
|
|
15394
15631
|
country: string;
|
|
15395
15632
|
}
|
|
15396
15633
|
type SetBillingAddressInput = SetBillingAddressRequestBody & SetBillingAddressRequestHeaders & SetBillingAddressRequestQuery & SetBillingAddressRequestParams;
|
|
@@ -15408,11 +15645,11 @@ interface GetCustomerRequestBody {
|
|
|
15408
15645
|
type GetCustomerInput = GetCustomerRequestBody & GetCustomerRequestHeaders & GetCustomerRequestQuery & GetCustomerRequestParams;
|
|
15409
15646
|
interface GetCustomerResponse {
|
|
15410
15647
|
address: {
|
|
15411
|
-
lineOne
|
|
15648
|
+
lineOne?: string;
|
|
15412
15649
|
lineTwo?: string;
|
|
15413
|
-
city
|
|
15650
|
+
city?: string;
|
|
15414
15651
|
state?: string;
|
|
15415
|
-
postalCode
|
|
15652
|
+
postalCode?: string;
|
|
15416
15653
|
country: string;
|
|
15417
15654
|
} | null;
|
|
15418
15655
|
name: string | null;
|
|
@@ -15430,11 +15667,11 @@ interface SetCustomerRequestParams {
|
|
|
15430
15667
|
}
|
|
15431
15668
|
interface SetCustomerRequestBody {
|
|
15432
15669
|
address?: {
|
|
15433
|
-
lineOne
|
|
15670
|
+
lineOne?: string;
|
|
15434
15671
|
lineTwo?: string;
|
|
15435
|
-
city
|
|
15672
|
+
city?: string;
|
|
15436
15673
|
state?: string;
|
|
15437
|
-
postalCode
|
|
15674
|
+
postalCode?: string;
|
|
15438
15675
|
country: string;
|
|
15439
15676
|
};
|
|
15440
15677
|
name?: string;
|
|
@@ -15446,11 +15683,11 @@ interface SetCustomerRequestBody {
|
|
|
15446
15683
|
type SetCustomerInput = SetCustomerRequestBody & SetCustomerRequestHeaders & SetCustomerRequestQuery & SetCustomerRequestParams;
|
|
15447
15684
|
interface SetCustomerResponse {
|
|
15448
15685
|
address: {
|
|
15449
|
-
lineOne
|
|
15686
|
+
lineOne?: string;
|
|
15450
15687
|
lineTwo?: string;
|
|
15451
|
-
city
|
|
15688
|
+
city?: string;
|
|
15452
15689
|
state?: string;
|
|
15453
|
-
postalCode
|
|
15690
|
+
postalCode?: string;
|
|
15454
15691
|
country: string;
|
|
15455
15692
|
} | null;
|
|
15456
15693
|
name: string | null;
|
|
@@ -16297,6 +16534,24 @@ interface GetWorkspaceUsagesResponse {
|
|
|
16297
16534
|
};
|
|
16298
16535
|
}
|
|
16299
16536
|
|
|
16537
|
+
interface ListFeatureGatesRequestHeaders {
|
|
16538
|
+
}
|
|
16539
|
+
interface ListFeatureGatesRequestQuery {
|
|
16540
|
+
}
|
|
16541
|
+
interface ListFeatureGatesRequestParams {
|
|
16542
|
+
}
|
|
16543
|
+
interface ListFeatureGatesRequestBody {
|
|
16544
|
+
}
|
|
16545
|
+
type ListFeatureGatesInput = ListFeatureGatesRequestBody & ListFeatureGatesRequestHeaders & ListFeatureGatesRequestQuery & ListFeatureGatesRequestParams;
|
|
16546
|
+
interface ListFeatureGatesResponse {
|
|
16547
|
+
featureGates: {
|
|
16548
|
+
[k: string]: {
|
|
16549
|
+
enabled: boolean;
|
|
16550
|
+
overridden: boolean;
|
|
16551
|
+
};
|
|
16552
|
+
};
|
|
16553
|
+
}
|
|
16554
|
+
|
|
16300
16555
|
type ClientProps$7 = {
|
|
16301
16556
|
toAxiosRequest: typeof toAxiosRequest$3;
|
|
16302
16557
|
toApiError: typeof toApiError$3;
|
|
@@ -16333,6 +16588,7 @@ declare class Client$7 {
|
|
|
16333
16588
|
readonly getQuotas: (input: GetQuotasInput) => Promise<GetQuotasResponse>;
|
|
16334
16589
|
readonly getWorkspaceUsage: (input: GetWorkspaceUsageInput) => Promise<GetWorkspaceUsageResponse>;
|
|
16335
16590
|
readonly getWorkspaceUsages: (input: GetWorkspaceUsagesInput) => Promise<GetWorkspaceUsagesResponse>;
|
|
16591
|
+
readonly listFeatureGates: (input: ListFeatureGatesInput) => Promise<ListFeatureGatesResponse>;
|
|
16336
16592
|
}
|
|
16337
16593
|
declare function toApiError$3(err: unknown): Error;
|
|
16338
16594
|
|
|
@@ -16365,7 +16621,8 @@ declare class Client$6 extends Client$7 {
|
|
|
16365
16621
|
}
|
|
16366
16622
|
|
|
16367
16623
|
declare namespace index$2 {
|
|
16368
|
-
export { Client$6 as Client
|
|
16624
|
+
export { Client$6 as Client };
|
|
16625
|
+
export type { ClientInputs$3 as ClientInputs, ClientOutputs$3 as ClientOutputs, ClientProps$6 as ClientProps, Operation$3 as Operation };
|
|
16369
16626
|
}
|
|
16370
16627
|
|
|
16371
16628
|
type Primitive$2 = string | number | boolean;
|
|
@@ -17367,6 +17624,10 @@ interface CreateKnowledgeBaseRequestBody$1 {
|
|
|
17367
17624
|
* Name of the knowledge base.
|
|
17368
17625
|
*/
|
|
17369
17626
|
name: string;
|
|
17627
|
+
/**
|
|
17628
|
+
* Description of the knowledge base.
|
|
17629
|
+
*/
|
|
17630
|
+
description?: string;
|
|
17370
17631
|
tags?: {
|
|
17371
17632
|
[k: string]: string;
|
|
17372
17633
|
};
|
|
@@ -17382,6 +17643,10 @@ interface CreateKnowledgeBaseResponse$1 {
|
|
|
17382
17643
|
* Name of the knowledge base.
|
|
17383
17644
|
*/
|
|
17384
17645
|
name: string;
|
|
17646
|
+
/**
|
|
17647
|
+
* Description of the knowledge base.
|
|
17648
|
+
*/
|
|
17649
|
+
description?: string;
|
|
17385
17650
|
tags: {
|
|
17386
17651
|
[k: string]: string;
|
|
17387
17652
|
};
|
|
@@ -17413,6 +17678,10 @@ interface UpdateKnowledgeBaseRequestBody$1 {
|
|
|
17413
17678
|
* New name of the knowledge base.
|
|
17414
17679
|
*/
|
|
17415
17680
|
name: string;
|
|
17681
|
+
/**
|
|
17682
|
+
* Description of the knowledge base. Omit to keep the existing description; set to `null` to clear it.
|
|
17683
|
+
*/
|
|
17684
|
+
description?: string | null;
|
|
17416
17685
|
/**
|
|
17417
17686
|
* The knowledge base tags to update as an object of key-value pairs with `string` (text) values. Omit to keep existing tags intact. Any existing tags not included will be preserved. New tags will be added. To delete a tag, set its value to `null`.
|
|
17418
17687
|
*/
|
|
@@ -17431,6 +17700,10 @@ interface UpdateKnowledgeBaseResponse$1 {
|
|
|
17431
17700
|
* Name of the knowledge base.
|
|
17432
17701
|
*/
|
|
17433
17702
|
name: string;
|
|
17703
|
+
/**
|
|
17704
|
+
* Description of the knowledge base.
|
|
17705
|
+
*/
|
|
17706
|
+
description?: string;
|
|
17434
17707
|
tags: {
|
|
17435
17708
|
[k: string]: string;
|
|
17436
17709
|
};
|
|
@@ -17459,6 +17732,10 @@ interface ListKnowledgeBasesResponse$1 {
|
|
|
17459
17732
|
* Name of the knowledge base.
|
|
17460
17733
|
*/
|
|
17461
17734
|
name: string;
|
|
17735
|
+
/**
|
|
17736
|
+
* Description of the knowledge base.
|
|
17737
|
+
*/
|
|
17738
|
+
description?: string;
|
|
17462
17739
|
/**
|
|
17463
17740
|
* Knowledge base creation timestamp in ISO 8601 format
|
|
17464
17741
|
*/
|
|
@@ -17586,6 +17863,7 @@ declare class Client$4 extends Client$5 implements IClient$2 {
|
|
|
17586
17863
|
}) => AsyncCollection<{
|
|
17587
17864
|
id: string;
|
|
17588
17865
|
name: string;
|
|
17866
|
+
description?: string;
|
|
17589
17867
|
createdAt: string;
|
|
17590
17868
|
tags: {
|
|
17591
17869
|
[k: string]: string;
|
|
@@ -17599,7 +17877,8 @@ declare class Client$4 extends Client$5 implements IClient$2 {
|
|
|
17599
17877
|
}
|
|
17600
17878
|
|
|
17601
17879
|
declare namespace index$1 {
|
|
17602
|
-
export { Client$4 as Client
|
|
17880
|
+
export { Client$4 as Client };
|
|
17881
|
+
export type { ClientInputs$2 as ClientInputs, ClientOutputs$2 as ClientOutputs, ClientProps$4 as ClientProps, Operation$2 as Operation };
|
|
17603
17882
|
}
|
|
17604
17883
|
|
|
17605
17884
|
type Primitive$1 = string | number | boolean;
|
|
@@ -19344,7 +19623,8 @@ declare class Client$2 extends Client$3 {
|
|
|
19344
19623
|
}
|
|
19345
19624
|
|
|
19346
19625
|
declare namespace index {
|
|
19347
|
-
export { Client$2 as Client
|
|
19626
|
+
export { Client$2 as Client };
|
|
19627
|
+
export type { ClientInputs$1 as ClientInputs, ClientOutputs$1 as ClientOutputs, ClientProps$2 as ClientProps, Operation$1 as Operation };
|
|
19348
19628
|
}
|
|
19349
19629
|
|
|
19350
19630
|
type Primitive = string | number | boolean;
|
|
@@ -21727,6 +22007,40 @@ interface CallActionResponse {
|
|
|
21727
22007
|
};
|
|
21728
22008
|
}
|
|
21729
22009
|
|
|
22010
|
+
interface UnlinkIntegrationIdentifierRequestHeaders {
|
|
22011
|
+
}
|
|
22012
|
+
interface UnlinkIntegrationIdentifierRequestQuery {
|
|
22013
|
+
value: string;
|
|
22014
|
+
}
|
|
22015
|
+
interface UnlinkIntegrationIdentifierRequestParams {
|
|
22016
|
+
}
|
|
22017
|
+
interface UnlinkIntegrationIdentifierRequestBody {
|
|
22018
|
+
}
|
|
22019
|
+
type UnlinkIntegrationIdentifierInput = UnlinkIntegrationIdentifierRequestBody & UnlinkIntegrationIdentifierRequestHeaders & UnlinkIntegrationIdentifierRequestQuery & UnlinkIntegrationIdentifierRequestParams;
|
|
22020
|
+
interface UnlinkIntegrationIdentifierResponse {
|
|
22021
|
+
/**
|
|
22022
|
+
* Number of integration instances that had the identifier removed
|
|
22023
|
+
*/
|
|
22024
|
+
count: number;
|
|
22025
|
+
}
|
|
22026
|
+
|
|
22027
|
+
interface GetIntegrationIdentifierAvailabilityRequestHeaders {
|
|
22028
|
+
}
|
|
22029
|
+
interface GetIntegrationIdentifierAvailabilityRequestQuery {
|
|
22030
|
+
value: string;
|
|
22031
|
+
}
|
|
22032
|
+
interface GetIntegrationIdentifierAvailabilityRequestParams {
|
|
22033
|
+
}
|
|
22034
|
+
interface GetIntegrationIdentifierAvailabilityRequestBody {
|
|
22035
|
+
}
|
|
22036
|
+
type GetIntegrationIdentifierAvailabilityInput = GetIntegrationIdentifierAvailabilityRequestBody & GetIntegrationIdentifierAvailabilityRequestHeaders & GetIntegrationIdentifierAvailabilityRequestQuery & GetIntegrationIdentifierAvailabilityRequestParams;
|
|
22037
|
+
interface GetIntegrationIdentifierAvailabilityResponse {
|
|
22038
|
+
/**
|
|
22039
|
+
* `available` means no integration instance uses this identifier. `shareable` means it is already in use, but it can be shared. `unavailable` means it is already in use and cannot be shared.
|
|
22040
|
+
*/
|
|
22041
|
+
status: "available" | "shareable" | "unavailable";
|
|
22042
|
+
}
|
|
22043
|
+
|
|
21730
22044
|
interface ConfigureIntegrationRequestHeaders {
|
|
21731
22045
|
}
|
|
21732
22046
|
interface ConfigureIntegrationRequestQuery {
|
|
@@ -23551,10 +23865,6 @@ interface ListPublicPluginsResponse {
|
|
|
23551
23865
|
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
23552
23866
|
*/
|
|
23553
23867
|
iconUrl: string;
|
|
23554
|
-
/**
|
|
23555
|
-
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
23556
|
-
*/
|
|
23557
|
-
readmeUrl: string;
|
|
23558
23868
|
/**
|
|
23559
23869
|
* @deprecated
|
|
23560
23870
|
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
@@ -24783,17 +25093,6 @@ interface CreateBotRequestBody {
|
|
|
24783
25093
|
};
|
|
24784
25094
|
};
|
|
24785
25095
|
};
|
|
24786
|
-
/**
|
|
24787
|
-
* Subscriptions of the bot
|
|
24788
|
-
*/
|
|
24789
|
-
subscriptions?: {
|
|
24790
|
-
/**
|
|
24791
|
-
* Events that the bot is currently subscribed on (ex: "slack:reactionAdded"). If null, the bot is subscribed to all events.
|
|
24792
|
-
*/
|
|
24793
|
-
events: {
|
|
24794
|
-
[k: string]: {};
|
|
24795
|
-
} | null;
|
|
24796
|
-
};
|
|
24797
25096
|
/**
|
|
24798
25097
|
* Actions definition
|
|
24799
25098
|
*/
|
|
@@ -24901,6 +25200,58 @@ interface CreateBotRequestBody {
|
|
|
24901
25200
|
tags?: {
|
|
24902
25201
|
[k: string]: string;
|
|
24903
25202
|
};
|
|
25203
|
+
/**
|
|
25204
|
+
* Maximum execution time (in seconds).
|
|
25205
|
+
*/
|
|
25206
|
+
maxExecutionTime?: number;
|
|
25207
|
+
/**
|
|
25208
|
+
* Subscriptions of the bot
|
|
25209
|
+
*/
|
|
25210
|
+
subscriptions?: {
|
|
25211
|
+
/**
|
|
25212
|
+
* Subscriptions for events coming from specific integrations. Keyed by integration alias.
|
|
25213
|
+
*/
|
|
25214
|
+
integrations?: {
|
|
25215
|
+
[k: string]: {
|
|
25216
|
+
/**
|
|
25217
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
25218
|
+
*/
|
|
25219
|
+
events: {
|
|
25220
|
+
include?: string[];
|
|
25221
|
+
exclude?: string[];
|
|
25222
|
+
} | null;
|
|
25223
|
+
};
|
|
25224
|
+
};
|
|
25225
|
+
/**
|
|
25226
|
+
* Subscriptions for events coming from specific plugins. Keyed by plugin alias.
|
|
25227
|
+
*/
|
|
25228
|
+
plugins?: {
|
|
25229
|
+
[k: string]: {
|
|
25230
|
+
/**
|
|
25231
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
25232
|
+
*/
|
|
25233
|
+
events: {
|
|
25234
|
+
include?: string[];
|
|
25235
|
+
exclude?: string[];
|
|
25236
|
+
} | null;
|
|
25237
|
+
};
|
|
25238
|
+
};
|
|
25239
|
+
bot?: {
|
|
25240
|
+
/**
|
|
25241
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
25242
|
+
*/
|
|
25243
|
+
events: {
|
|
25244
|
+
include?: string[];
|
|
25245
|
+
exclude?: string[];
|
|
25246
|
+
} | null;
|
|
25247
|
+
};
|
|
25248
|
+
/**
|
|
25249
|
+
* [DEPRECATED] Use `integrations`, `plugins`, and `bot` instead. Mapped onto the new per-source fields incrementally (each entry adds or removes its own event type). Cannot be combined with the new fields in the same request. If null, the bot is subscribed to all events.
|
|
25250
|
+
*/
|
|
25251
|
+
events?: {
|
|
25252
|
+
[k: string]: {} | null;
|
|
25253
|
+
} | null;
|
|
25254
|
+
};
|
|
24904
25255
|
/**
|
|
24905
25256
|
* JavaScript code of the bot
|
|
24906
25257
|
*/
|
|
@@ -24934,14 +25285,7 @@ interface CreateBotRequestBody {
|
|
|
24934
25285
|
* Indicates if the [Bot](#schema_bot) is a development bot; Development bots run locally and can install dev integrations
|
|
24935
25286
|
*/
|
|
24936
25287
|
dev?: boolean;
|
|
24937
|
-
|
|
24938
|
-
* Type of the [Bot](#schema_bot)
|
|
24939
|
-
*/
|
|
24940
|
-
type?: "studio" | "adk" | "desk";
|
|
24941
|
-
/**
|
|
24942
|
-
* Maximum execution time (in seconds).
|
|
24943
|
-
*/
|
|
24944
|
-
maxExecutionTime?: number;
|
|
25288
|
+
type?: "studio" | "adk";
|
|
24945
25289
|
}
|
|
24946
25290
|
type CreateBotInput = CreateBotRequestBody & CreateBotRequestHeaders & CreateBotRequestQuery & CreateBotRequestParams;
|
|
24947
25291
|
interface CreateBotResponse {
|
|
@@ -25093,10 +25437,6 @@ interface CreateBotResponse {
|
|
|
25093
25437
|
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
25094
25438
|
*/
|
|
25095
25439
|
iconUrl: string;
|
|
25096
|
-
/**
|
|
25097
|
-
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
25098
|
-
*/
|
|
25099
|
-
readmeUrl: string;
|
|
25100
25440
|
/**
|
|
25101
25441
|
* @deprecated
|
|
25102
25442
|
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
@@ -25268,11 +25608,48 @@ interface CreateBotResponse {
|
|
|
25268
25608
|
*/
|
|
25269
25609
|
subscriptions: {
|
|
25270
25610
|
/**
|
|
25271
|
-
*
|
|
25611
|
+
* [DEPRECATED] Use `integrations`, `plugins`, and `bot` instead. Mapped onto the new per-source fields incrementally (each entry adds or removes its own event type). Cannot be combined with the new fields in the same request. If null, the bot is subscribed to all events.
|
|
25272
25612
|
*/
|
|
25273
25613
|
events: {
|
|
25274
25614
|
[k: string]: {};
|
|
25275
25615
|
} | null;
|
|
25616
|
+
/**
|
|
25617
|
+
* Subscriptions for events coming from specific integrations. Keyed by integration alias.
|
|
25618
|
+
*/
|
|
25619
|
+
integrations?: {
|
|
25620
|
+
[k: string]: {
|
|
25621
|
+
/**
|
|
25622
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
25623
|
+
*/
|
|
25624
|
+
events: {
|
|
25625
|
+
include?: string[];
|
|
25626
|
+
exclude?: string[];
|
|
25627
|
+
} | null;
|
|
25628
|
+
};
|
|
25629
|
+
};
|
|
25630
|
+
/**
|
|
25631
|
+
* Subscriptions for events coming from specific plugins. Keyed by plugin alias.
|
|
25632
|
+
*/
|
|
25633
|
+
plugins?: {
|
|
25634
|
+
[k: string]: {
|
|
25635
|
+
/**
|
|
25636
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
25637
|
+
*/
|
|
25638
|
+
events: {
|
|
25639
|
+
include?: string[];
|
|
25640
|
+
exclude?: string[];
|
|
25641
|
+
} | null;
|
|
25642
|
+
};
|
|
25643
|
+
};
|
|
25644
|
+
bot?: {
|
|
25645
|
+
/**
|
|
25646
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
25647
|
+
*/
|
|
25648
|
+
events: {
|
|
25649
|
+
include?: string[];
|
|
25650
|
+
exclude?: string[];
|
|
25651
|
+
} | null;
|
|
25652
|
+
};
|
|
25276
25653
|
};
|
|
25277
25654
|
/**
|
|
25278
25655
|
* Actions definition
|
|
@@ -25398,11 +25775,11 @@ interface UpdateBotRequestBody {
|
|
|
25398
25775
|
[k: string]: any;
|
|
25399
25776
|
};
|
|
25400
25777
|
};
|
|
25401
|
-
blocked?: boolean;
|
|
25402
25778
|
/**
|
|
25403
25779
|
* Maximum execution time (in seconds).
|
|
25404
25780
|
*/
|
|
25405
25781
|
maxExecutionTime?: number;
|
|
25782
|
+
blocked?: boolean;
|
|
25406
25783
|
/**
|
|
25407
25784
|
* Indicates if the [Bot](#schema_bot) should be in always alive mode
|
|
25408
25785
|
*/
|
|
@@ -25601,8 +25978,51 @@ interface UpdateBotRequestBody {
|
|
|
25601
25978
|
};
|
|
25602
25979
|
} | null;
|
|
25603
25980
|
};
|
|
25981
|
+
/**
|
|
25982
|
+
* Subscriptions of the bot
|
|
25983
|
+
*/
|
|
25604
25984
|
subscriptions?: {
|
|
25605
|
-
|
|
25985
|
+
/**
|
|
25986
|
+
* Subscriptions for events coming from specific integrations. Keyed by integration alias.
|
|
25987
|
+
*/
|
|
25988
|
+
integrations?: {
|
|
25989
|
+
[k: string]: {
|
|
25990
|
+
/**
|
|
25991
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
25992
|
+
*/
|
|
25993
|
+
events: {
|
|
25994
|
+
include?: string[];
|
|
25995
|
+
exclude?: string[];
|
|
25996
|
+
} | null;
|
|
25997
|
+
};
|
|
25998
|
+
};
|
|
25999
|
+
/**
|
|
26000
|
+
* Subscriptions for events coming from specific plugins. Keyed by plugin alias.
|
|
26001
|
+
*/
|
|
26002
|
+
plugins?: {
|
|
26003
|
+
[k: string]: {
|
|
26004
|
+
/**
|
|
26005
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
26006
|
+
*/
|
|
26007
|
+
events: {
|
|
26008
|
+
include?: string[];
|
|
26009
|
+
exclude?: string[];
|
|
26010
|
+
} | null;
|
|
26011
|
+
};
|
|
26012
|
+
};
|
|
26013
|
+
bot?: {
|
|
26014
|
+
/**
|
|
26015
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
26016
|
+
*/
|
|
26017
|
+
events: {
|
|
26018
|
+
include?: string[];
|
|
26019
|
+
exclude?: string[];
|
|
26020
|
+
} | null;
|
|
26021
|
+
};
|
|
26022
|
+
/**
|
|
26023
|
+
* [DEPRECATED] Use `integrations`, `plugins`, and `bot` instead. Mapped onto the new per-source fields incrementally (each entry adds or removes its own event type). Cannot be combined with the new fields in the same request. If null, the bot is subscribed to all events.
|
|
26024
|
+
*/
|
|
26025
|
+
events?: {
|
|
25606
26026
|
[k: string]: {} | null;
|
|
25607
26027
|
} | null;
|
|
25608
26028
|
};
|
|
@@ -25632,10 +26052,7 @@ interface UpdateBotRequestBody {
|
|
|
25632
26052
|
[k: string]: string | null;
|
|
25633
26053
|
};
|
|
25634
26054
|
layers?: string[];
|
|
25635
|
-
|
|
25636
|
-
* Type of the [Bot](#schema_bot)
|
|
25637
|
-
*/
|
|
25638
|
-
type?: "studio" | "adk" | "desk";
|
|
26055
|
+
type?: "studio" | "adk";
|
|
25639
26056
|
}
|
|
25640
26057
|
type UpdateBotInput = UpdateBotRequestBody & UpdateBotRequestHeaders & UpdateBotRequestQuery & UpdateBotRequestParams;
|
|
25641
26058
|
interface UpdateBotResponse {
|
|
@@ -25787,10 +26204,6 @@ interface UpdateBotResponse {
|
|
|
25787
26204
|
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
25788
26205
|
*/
|
|
25789
26206
|
iconUrl: string;
|
|
25790
|
-
/**
|
|
25791
|
-
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
25792
|
-
*/
|
|
25793
|
-
readmeUrl: string;
|
|
25794
26207
|
/**
|
|
25795
26208
|
* @deprecated
|
|
25796
26209
|
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
@@ -25962,11 +26375,48 @@ interface UpdateBotResponse {
|
|
|
25962
26375
|
*/
|
|
25963
26376
|
subscriptions: {
|
|
25964
26377
|
/**
|
|
25965
|
-
*
|
|
26378
|
+
* [DEPRECATED] Use `integrations`, `plugins`, and `bot` instead. Mapped onto the new per-source fields incrementally (each entry adds or removes its own event type). Cannot be combined with the new fields in the same request. If null, the bot is subscribed to all events.
|
|
25966
26379
|
*/
|
|
25967
26380
|
events: {
|
|
25968
26381
|
[k: string]: {};
|
|
25969
26382
|
} | null;
|
|
26383
|
+
/**
|
|
26384
|
+
* Subscriptions for events coming from specific integrations. Keyed by integration alias.
|
|
26385
|
+
*/
|
|
26386
|
+
integrations?: {
|
|
26387
|
+
[k: string]: {
|
|
26388
|
+
/**
|
|
26389
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
26390
|
+
*/
|
|
26391
|
+
events: {
|
|
26392
|
+
include?: string[];
|
|
26393
|
+
exclude?: string[];
|
|
26394
|
+
} | null;
|
|
26395
|
+
};
|
|
26396
|
+
};
|
|
26397
|
+
/**
|
|
26398
|
+
* Subscriptions for events coming from specific plugins. Keyed by plugin alias.
|
|
26399
|
+
*/
|
|
26400
|
+
plugins?: {
|
|
26401
|
+
[k: string]: {
|
|
26402
|
+
/**
|
|
26403
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
26404
|
+
*/
|
|
26405
|
+
events: {
|
|
26406
|
+
include?: string[];
|
|
26407
|
+
exclude?: string[];
|
|
26408
|
+
} | null;
|
|
26409
|
+
};
|
|
26410
|
+
};
|
|
26411
|
+
bot?: {
|
|
26412
|
+
/**
|
|
26413
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
26414
|
+
*/
|
|
26415
|
+
events: {
|
|
26416
|
+
include?: string[];
|
|
26417
|
+
exclude?: string[];
|
|
26418
|
+
} | null;
|
|
26419
|
+
};
|
|
25970
26420
|
};
|
|
25971
26421
|
/**
|
|
25972
26422
|
* Actions definition
|
|
@@ -26309,10 +26759,6 @@ interface GetBotResponse {
|
|
|
26309
26759
|
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
26310
26760
|
*/
|
|
26311
26761
|
iconUrl: string;
|
|
26312
|
-
/**
|
|
26313
|
-
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
26314
|
-
*/
|
|
26315
|
-
readmeUrl: string;
|
|
26316
26762
|
/**
|
|
26317
26763
|
* @deprecated
|
|
26318
26764
|
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
@@ -26484,11 +26930,48 @@ interface GetBotResponse {
|
|
|
26484
26930
|
*/
|
|
26485
26931
|
subscriptions: {
|
|
26486
26932
|
/**
|
|
26487
|
-
*
|
|
26933
|
+
* [DEPRECATED] Use `integrations`, `plugins`, and `bot` instead. Mapped onto the new per-source fields incrementally (each entry adds or removes its own event type). Cannot be combined with the new fields in the same request. If null, the bot is subscribed to all events.
|
|
26488
26934
|
*/
|
|
26489
26935
|
events: {
|
|
26490
26936
|
[k: string]: {};
|
|
26491
26937
|
} | null;
|
|
26938
|
+
/**
|
|
26939
|
+
* Subscriptions for events coming from specific integrations. Keyed by integration alias.
|
|
26940
|
+
*/
|
|
26941
|
+
integrations?: {
|
|
26942
|
+
[k: string]: {
|
|
26943
|
+
/**
|
|
26944
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
26945
|
+
*/
|
|
26946
|
+
events: {
|
|
26947
|
+
include?: string[];
|
|
26948
|
+
exclude?: string[];
|
|
26949
|
+
} | null;
|
|
26950
|
+
};
|
|
26951
|
+
};
|
|
26952
|
+
/**
|
|
26953
|
+
* Subscriptions for events coming from specific plugins. Keyed by plugin alias.
|
|
26954
|
+
*/
|
|
26955
|
+
plugins?: {
|
|
26956
|
+
[k: string]: {
|
|
26957
|
+
/**
|
|
26958
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
26959
|
+
*/
|
|
26960
|
+
events: {
|
|
26961
|
+
include?: string[];
|
|
26962
|
+
exclude?: string[];
|
|
26963
|
+
} | null;
|
|
26964
|
+
};
|
|
26965
|
+
};
|
|
26966
|
+
bot?: {
|
|
26967
|
+
/**
|
|
26968
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
26969
|
+
*/
|
|
26970
|
+
events: {
|
|
26971
|
+
include?: string[];
|
|
26972
|
+
exclude?: string[];
|
|
26973
|
+
} | null;
|
|
26974
|
+
};
|
|
26492
26975
|
};
|
|
26493
26976
|
/**
|
|
26494
26977
|
* Actions definition
|
|
@@ -26661,7 +27144,7 @@ interface GetBotAnalyticsResponse {
|
|
|
26661
27144
|
*/
|
|
26662
27145
|
startDateTimeUtc: string;
|
|
26663
27146
|
/**
|
|
26664
|
-
* ISO 8601 date string of the end (
|
|
27147
|
+
* ISO 8601 date string of the end (exclusive) of the period
|
|
26665
27148
|
*/
|
|
26666
27149
|
endDateTimeUtc: string;
|
|
26667
27150
|
returningUsers: number;
|
|
@@ -26674,12 +27157,46 @@ interface GetBotAnalyticsResponse {
|
|
|
26674
27157
|
userMessages: number;
|
|
26675
27158
|
botMessages: number;
|
|
26676
27159
|
events: number;
|
|
27160
|
+
/**
|
|
27161
|
+
* Number of conversations created during the period
|
|
27162
|
+
*/
|
|
27163
|
+
conversationsCreated: number;
|
|
26677
27164
|
eventTypes: {
|
|
26678
27165
|
[k: string]: number;
|
|
26679
27166
|
};
|
|
26680
27167
|
customEvents: {
|
|
26681
27168
|
[k: string]: number;
|
|
26682
27169
|
};
|
|
27170
|
+
workflows: {
|
|
27171
|
+
created: number;
|
|
27172
|
+
completed: number;
|
|
27173
|
+
failed: number;
|
|
27174
|
+
timedout: number;
|
|
27175
|
+
cancelled: number;
|
|
27176
|
+
duration: {
|
|
27177
|
+
count: number;
|
|
27178
|
+
sum: number;
|
|
27179
|
+
mean: number;
|
|
27180
|
+
min: number;
|
|
27181
|
+
max: number;
|
|
27182
|
+
};
|
|
27183
|
+
byName: {
|
|
27184
|
+
[k: string]: {
|
|
27185
|
+
created: number;
|
|
27186
|
+
completed: number;
|
|
27187
|
+
failed: number;
|
|
27188
|
+
timedout: number;
|
|
27189
|
+
cancelled: number;
|
|
27190
|
+
duration: {
|
|
27191
|
+
count: number;
|
|
27192
|
+
sum: number;
|
|
27193
|
+
mean: number;
|
|
27194
|
+
min: number;
|
|
27195
|
+
max: number;
|
|
27196
|
+
};
|
|
27197
|
+
};
|
|
27198
|
+
};
|
|
27199
|
+
};
|
|
26683
27200
|
llm: {
|
|
26684
27201
|
calls: number;
|
|
26685
27202
|
errors: number;
|
|
@@ -33780,10 +34297,6 @@ interface ListPluginsResponse {
|
|
|
33780
34297
|
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
33781
34298
|
*/
|
|
33782
34299
|
iconUrl: string;
|
|
33783
|
-
/**
|
|
33784
|
-
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
33785
|
-
*/
|
|
33786
|
-
readmeUrl: string;
|
|
33787
34300
|
/**
|
|
33788
34301
|
* @deprecated
|
|
33789
34302
|
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
@@ -35039,6 +35552,10 @@ interface CreateKnowledgeBaseRequestBody {
|
|
|
35039
35552
|
* Name of the knowledge base.
|
|
35040
35553
|
*/
|
|
35041
35554
|
name: string;
|
|
35555
|
+
/**
|
|
35556
|
+
* Description of the knowledge base.
|
|
35557
|
+
*/
|
|
35558
|
+
description?: string;
|
|
35042
35559
|
tags?: {
|
|
35043
35560
|
[k: string]: string;
|
|
35044
35561
|
};
|
|
@@ -35054,6 +35571,10 @@ interface CreateKnowledgeBaseResponse {
|
|
|
35054
35571
|
* Name of the knowledge base.
|
|
35055
35572
|
*/
|
|
35056
35573
|
name: string;
|
|
35574
|
+
/**
|
|
35575
|
+
* Description of the knowledge base.
|
|
35576
|
+
*/
|
|
35577
|
+
description?: string;
|
|
35057
35578
|
tags: {
|
|
35058
35579
|
[k: string]: string;
|
|
35059
35580
|
};
|
|
@@ -35085,6 +35606,10 @@ interface UpdateKnowledgeBaseRequestBody {
|
|
|
35085
35606
|
* New name of the knowledge base.
|
|
35086
35607
|
*/
|
|
35087
35608
|
name: string;
|
|
35609
|
+
/**
|
|
35610
|
+
* Description of the knowledge base. Omit to keep the existing description; set to `null` to clear it.
|
|
35611
|
+
*/
|
|
35612
|
+
description?: string | null;
|
|
35088
35613
|
/**
|
|
35089
35614
|
* The knowledge base tags to update as an object of key-value pairs with `string` (text) values. Omit to keep existing tags intact. Any existing tags not included will be preserved. New tags will be added. To delete a tag, set its value to `null`.
|
|
35090
35615
|
*/
|
|
@@ -35103,6 +35628,10 @@ interface UpdateKnowledgeBaseResponse {
|
|
|
35103
35628
|
* Name of the knowledge base.
|
|
35104
35629
|
*/
|
|
35105
35630
|
name: string;
|
|
35631
|
+
/**
|
|
35632
|
+
* Description of the knowledge base.
|
|
35633
|
+
*/
|
|
35634
|
+
description?: string;
|
|
35106
35635
|
tags: {
|
|
35107
35636
|
[k: string]: string;
|
|
35108
35637
|
};
|
|
@@ -35131,6 +35660,10 @@ interface ListKnowledgeBasesResponse {
|
|
|
35131
35660
|
* Name of the knowledge base.
|
|
35132
35661
|
*/
|
|
35133
35662
|
name: string;
|
|
35663
|
+
/**
|
|
35664
|
+
* Description of the knowledge base.
|
|
35665
|
+
*/
|
|
35666
|
+
description?: string;
|
|
35134
35667
|
/**
|
|
35135
35668
|
* Knowledge base creation timestamp in ISO 8601 format
|
|
35136
35669
|
*/
|
|
@@ -36977,10 +37510,6 @@ interface Bot {
|
|
|
36977
37510
|
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
36978
37511
|
*/
|
|
36979
37512
|
iconUrl: string;
|
|
36980
|
-
/**
|
|
36981
|
-
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
36982
|
-
*/
|
|
36983
|
-
readmeUrl: string;
|
|
36984
37513
|
/**
|
|
36985
37514
|
* @deprecated
|
|
36986
37515
|
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
@@ -37152,11 +37681,48 @@ interface Bot {
|
|
|
37152
37681
|
*/
|
|
37153
37682
|
subscriptions: {
|
|
37154
37683
|
/**
|
|
37155
|
-
*
|
|
37684
|
+
* [DEPRECATED] Use `integrations`, `plugins`, and `bot` instead. Mapped onto the new per-source fields incrementally (each entry adds or removes its own event type). Cannot be combined with the new fields in the same request. If null, the bot is subscribed to all events.
|
|
37156
37685
|
*/
|
|
37157
37686
|
events: {
|
|
37158
37687
|
[k: string]: {};
|
|
37159
37688
|
} | null;
|
|
37689
|
+
/**
|
|
37690
|
+
* Subscriptions for events coming from specific integrations. Keyed by integration alias.
|
|
37691
|
+
*/
|
|
37692
|
+
integrations?: {
|
|
37693
|
+
[k: string]: {
|
|
37694
|
+
/**
|
|
37695
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
37696
|
+
*/
|
|
37697
|
+
events: {
|
|
37698
|
+
include?: string[];
|
|
37699
|
+
exclude?: string[];
|
|
37700
|
+
} | null;
|
|
37701
|
+
};
|
|
37702
|
+
};
|
|
37703
|
+
/**
|
|
37704
|
+
* Subscriptions for events coming from specific plugins. Keyed by plugin alias.
|
|
37705
|
+
*/
|
|
37706
|
+
plugins?: {
|
|
37707
|
+
[k: string]: {
|
|
37708
|
+
/**
|
|
37709
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
37710
|
+
*/
|
|
37711
|
+
events: {
|
|
37712
|
+
include?: string[];
|
|
37713
|
+
exclude?: string[];
|
|
37714
|
+
} | null;
|
|
37715
|
+
};
|
|
37716
|
+
};
|
|
37717
|
+
bot?: {
|
|
37718
|
+
/**
|
|
37719
|
+
* Event filter for a source. Provide exactly one of `include` (deliver only the listed event types) or `exclude` (deliver all but the listed types); they are mutually exclusive, and providing both or neither is rejected. Set the entire `events` record to `null` to remove all filters for this source.
|
|
37720
|
+
*/
|
|
37721
|
+
events: {
|
|
37722
|
+
include?: string[];
|
|
37723
|
+
exclude?: string[];
|
|
37724
|
+
} | null;
|
|
37725
|
+
};
|
|
37160
37726
|
};
|
|
37161
37727
|
/**
|
|
37162
37728
|
* Actions definition
|
|
@@ -38782,6 +39348,8 @@ declare class Client$1 {
|
|
|
38782
39348
|
readonly getOrSetState: (input: GetOrSetStateInput) => Promise<GetOrSetStateResponse>;
|
|
38783
39349
|
readonly patchState: (input: PatchStateInput) => Promise<PatchStateResponse>;
|
|
38784
39350
|
readonly callAction: (input: CallActionInput) => Promise<CallActionResponse>;
|
|
39351
|
+
readonly unlinkIntegrationIdentifier: (input: UnlinkIntegrationIdentifierInput) => Promise<UnlinkIntegrationIdentifierResponse>;
|
|
39352
|
+
readonly getIntegrationIdentifierAvailability: (input: GetIntegrationIdentifierAvailabilityInput) => Promise<GetIntegrationIdentifierAvailabilityResponse>;
|
|
38785
39353
|
readonly configureIntegration: (input: ConfigureIntegrationInput) => Promise<ConfigureIntegrationResponse>;
|
|
38786
39354
|
readonly createWorkflow: (input: CreateWorkflowInput) => Promise<CreateWorkflowResponse>;
|
|
38787
39355
|
readonly getWorkflow: (input: GetWorkflowInput) => Promise<GetWorkflowResponse>;
|
|
@@ -38956,10 +39524,10 @@ declare class Client extends Client$1 implements IClient {
|
|
|
38956
39524
|
constructor(clientProps?: ClientProps);
|
|
38957
39525
|
get list(): {
|
|
38958
39526
|
conversations: (props: {
|
|
39527
|
+
channel?: string | undefined;
|
|
38959
39528
|
tags?: {
|
|
38960
39529
|
[x: string]: string;
|
|
38961
39530
|
} | undefined;
|
|
38962
|
-
channel?: string | undefined;
|
|
38963
39531
|
integrationName?: string | undefined;
|
|
38964
39532
|
pageSize?: number | undefined;
|
|
38965
39533
|
sortField?: "createdAt" | "updatedAt" | undefined;
|
|
@@ -39004,13 +39572,13 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39004
39572
|
};
|
|
39005
39573
|
}>;
|
|
39006
39574
|
events: (props: {
|
|
39007
|
-
status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
|
|
39008
|
-
type?: string | undefined;
|
|
39009
39575
|
pageSize?: number | undefined;
|
|
39010
39576
|
userId?: string | undefined;
|
|
39577
|
+
type?: string | undefined;
|
|
39011
39578
|
conversationId?: string | undefined;
|
|
39012
39579
|
workflowId?: string | undefined;
|
|
39013
39580
|
messageId?: string | undefined;
|
|
39581
|
+
status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
|
|
39014
39582
|
}) => AsyncCollection<{
|
|
39015
39583
|
id: string;
|
|
39016
39584
|
createdAt: string;
|
|
@@ -39076,7 +39644,6 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39076
39644
|
};
|
|
39077
39645
|
}>;
|
|
39078
39646
|
publicIntegrations: (props: {
|
|
39079
|
-
search?: string | undefined;
|
|
39080
39647
|
pageSize?: number | undefined;
|
|
39081
39648
|
name?: string | undefined;
|
|
39082
39649
|
limit?: number | undefined;
|
|
@@ -39085,6 +39652,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39085
39652
|
interfaceName?: string | undefined;
|
|
39086
39653
|
installedByBotId?: string | undefined;
|
|
39087
39654
|
verificationStatus?: "unapproved" | "pending" | "approved" | "rejected" | undefined;
|
|
39655
|
+
search?: string | undefined;
|
|
39088
39656
|
sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount" | undefined;
|
|
39089
39657
|
direction?: "asc" | "desc" | undefined;
|
|
39090
39658
|
}) => AsyncCollection<{
|
|
@@ -39166,15 +39734,14 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39166
39734
|
handle?: string | undefined;
|
|
39167
39735
|
}) => AsyncCollection<UpdateWorkspaceResponse>;
|
|
39168
39736
|
publicWorkspaces: (props: {
|
|
39169
|
-
search?: string | undefined;
|
|
39170
39737
|
pageSize?: number | undefined;
|
|
39738
|
+
search?: string | undefined;
|
|
39171
39739
|
workspaceIds?: string[] | undefined;
|
|
39172
39740
|
}) => AsyncCollection<GetPublicWorkspaceResponse>;
|
|
39173
39741
|
workspaceMembers: (props: {
|
|
39174
39742
|
pageSize?: number | undefined;
|
|
39175
39743
|
}) => AsyncCollection<UpdateWorkspaceMemberResponse$1>;
|
|
39176
39744
|
integrations: (props: {
|
|
39177
|
-
search?: string | undefined;
|
|
39178
39745
|
pageSize?: number | undefined;
|
|
39179
39746
|
name?: string | undefined;
|
|
39180
39747
|
limit?: number | undefined;
|
|
@@ -39183,6 +39750,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39183
39750
|
interfaceName?: string | undefined;
|
|
39184
39751
|
installedByBotId?: string | undefined;
|
|
39185
39752
|
verificationStatus?: "unapproved" | "pending" | "approved" | "rejected" | undefined;
|
|
39753
|
+
search?: string | undefined;
|
|
39186
39754
|
sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount" | undefined;
|
|
39187
39755
|
direction?: "asc" | "desc" | undefined;
|
|
39188
39756
|
dev?: boolean | undefined;
|
|
@@ -39261,7 +39829,6 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39261
39829
|
title: string;
|
|
39262
39830
|
description: string;
|
|
39263
39831
|
iconUrl: string;
|
|
39264
|
-
readmeUrl: string;
|
|
39265
39832
|
public: boolean;
|
|
39266
39833
|
visibility: "public" | "private" | "unlisted";
|
|
39267
39834
|
lifecycleStatus: "published" | "deprecated";
|
|
@@ -39279,14 +39846,13 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39279
39846
|
title: string;
|
|
39280
39847
|
description: string;
|
|
39281
39848
|
iconUrl: string;
|
|
39282
|
-
readmeUrl: string;
|
|
39283
39849
|
public: boolean;
|
|
39284
39850
|
visibility: "public" | "private" | "unlisted";
|
|
39285
39851
|
lifecycleStatus: "published" | "deprecated";
|
|
39286
39852
|
}>;
|
|
39287
39853
|
activities: (props: {
|
|
39288
|
-
botId: string;
|
|
39289
39854
|
pageSize?: number | undefined;
|
|
39855
|
+
botId: string;
|
|
39290
39856
|
taskId: string;
|
|
39291
39857
|
}) => AsyncCollection<{
|
|
39292
39858
|
id: string;
|
|
@@ -39361,15 +39927,16 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39361
39927
|
}) => AsyncCollection<{
|
|
39362
39928
|
id: string;
|
|
39363
39929
|
name: string;
|
|
39930
|
+
description?: string;
|
|
39364
39931
|
createdAt: string;
|
|
39365
39932
|
tags: {
|
|
39366
39933
|
[k: string]: string;
|
|
39367
39934
|
};
|
|
39368
39935
|
}>;
|
|
39369
39936
|
usageActivity: (props: {
|
|
39370
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
39371
39937
|
id: string;
|
|
39372
39938
|
pageSize?: number | undefined;
|
|
39939
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
39373
39940
|
timestampFrom?: string | undefined;
|
|
39374
39941
|
timestampUntil?: string | undefined;
|
|
39375
39942
|
}) => AsyncCollection<{
|
|
@@ -39381,9 +39948,9 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39381
39948
|
};
|
|
39382
39949
|
}>;
|
|
39383
39950
|
usageActivityDaily: (props: {
|
|
39384
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
39385
39951
|
id: string;
|
|
39386
39952
|
pageSize?: number | undefined;
|
|
39953
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
39387
39954
|
dateFrom?: string | undefined;
|
|
39388
39955
|
dateUntil?: string | undefined;
|
|
39389
39956
|
}) => AsyncCollection<{
|
|
@@ -39406,7 +39973,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39406
39973
|
conversationId?: string | undefined;
|
|
39407
39974
|
name?: string | undefined;
|
|
39408
39975
|
parentWorkflowId?: string | undefined;
|
|
39409
|
-
statuses?: ("pending" | "failed" | "in_progress" | "
|
|
39976
|
+
statuses?: ("pending" | "failed" | "in_progress" | "completed" | "listening" | "paused" | "timedout" | "cancelled")[] | undefined;
|
|
39410
39977
|
}) => AsyncCollection<{
|
|
39411
39978
|
id: string;
|
|
39412
39979
|
name: string;
|
|
@@ -39671,4 +40238,5 @@ declare class UploadFileError extends Error {
|
|
|
39671
40238
|
constructor(message: string, innerError?: AxiosError | undefined, file?: UpsertFileResponse["file"] | undefined);
|
|
39672
40239
|
}
|
|
39673
40240
|
|
|
39674
|
-
export {
|
|
40241
|
+
export { AlreadyExistsError, BreakingChangesError, Client, ForbiddenError, InternalError, InvalidDataFormatError, InvalidIdentifierError, InvalidJsonSchemaError, InvalidPayloadError, InvalidQueryError, LimitExceededError, MethodNotFoundError, OperationTimeoutError, PayloadTooLargeError, PaymentRequiredError, QuotaExceededError, RateLimitedError, ReferenceConstraintError, ReferenceNotFoundError, RelationConflictError, ResourceGoneError, ResourceLockedConflictError, ResourceNotFoundError, RuntimeError, UnauthorizedError, UnknownError, UnsupportedMediaTypeError, UploadFileError, index$3 as admin, index$2 as billing, errorFrom, index$1 as files, isApiError, index$4 as runtime, index as tables };
|
|
40242
|
+
export type { Account, Activity, ApiError, Bot, ClientConfig, ClientInputs, ClientOutputs, ClientProps, Column, Conversation, ErrorType, Event, File, Headers, Integration, Interface, Issue, IssueEvent, Message, Operation, Plugin, RetryConfig, Row, State, Table, Usage, User, Version, Workflow, Workspace, WorkspaceMember };
|