@botpress/client 1.21.0 → 1.22.2
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 +1 -1
- package/dist/bundle.cjs.map +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +242 -84
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2872,8 +2872,8 @@ declare class Client$8 extends Client$9 {
|
|
|
2872
2872
|
} | undefined;
|
|
2873
2873
|
channel?: string | undefined;
|
|
2874
2874
|
integrationName?: string | undefined;
|
|
2875
|
-
sortField?: "createdAt" | "updatedAt" | undefined;
|
|
2876
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
2875
|
+
sortField?: ("createdAt" | "updatedAt") | undefined;
|
|
2876
|
+
sortDirection?: ("asc" | "desc") | undefined;
|
|
2877
2877
|
participantIds?: string[] | undefined;
|
|
2878
2878
|
}) => AsyncCollection<{
|
|
2879
2879
|
id: string;
|
|
@@ -2904,7 +2904,7 @@ declare class Client$8 extends Client$9 {
|
|
|
2904
2904
|
userId?: string | undefined;
|
|
2905
2905
|
conversationId?: string | undefined;
|
|
2906
2906
|
messageId?: string | undefined;
|
|
2907
|
-
status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
|
|
2907
|
+
status?: ("pending" | "ignored" | "processed" | "failed" | "scheduled") | undefined;
|
|
2908
2908
|
}) => AsyncCollection<{
|
|
2909
2909
|
id: string;
|
|
2910
2910
|
createdAt: string;
|
|
@@ -6030,10 +6030,6 @@ interface UpdateBotRequestBody$1 {
|
|
|
6030
6030
|
};
|
|
6031
6031
|
} | null;
|
|
6032
6032
|
};
|
|
6033
|
-
/**
|
|
6034
|
-
* If true, plugins will be merged into the bot and entity references will be resolved. If you are uncertain about this field, you should probably set it to true
|
|
6035
|
-
*/
|
|
6036
|
-
shouldMergePlugins?: boolean;
|
|
6037
6033
|
subscriptions?: {
|
|
6038
6034
|
events: {
|
|
6039
6035
|
[k: string]: {} | null;
|
|
@@ -6055,6 +6051,10 @@ interface UpdateBotRequestBody$1 {
|
|
|
6055
6051
|
name: string;
|
|
6056
6052
|
}[];
|
|
6057
6053
|
layers?: string[];
|
|
6054
|
+
/**
|
|
6055
|
+
* UNUSED. Please ignore this field. It will be removed in the near future.
|
|
6056
|
+
*/
|
|
6057
|
+
shouldMergePlugins?: boolean;
|
|
6058
6058
|
}
|
|
6059
6059
|
type UpdateBotInput$1 = UpdateBotRequestBody$1 & UpdateBotRequestHeaders$1 & UpdateBotRequestQuery$1 & UpdateBotRequestParams$1;
|
|
6060
6060
|
interface UpdateBotResponse$1 {
|
|
@@ -12411,18 +12411,6 @@ interface CreatePluginRequestBody$1 {
|
|
|
12411
12411
|
};
|
|
12412
12412
|
};
|
|
12413
12413
|
};
|
|
12414
|
-
dependencies?: {
|
|
12415
|
-
interfaces?: {
|
|
12416
|
-
[k: string]: {
|
|
12417
|
-
id: string;
|
|
12418
|
-
};
|
|
12419
|
-
};
|
|
12420
|
-
integrations?: {
|
|
12421
|
-
[k: string]: {
|
|
12422
|
-
id: string;
|
|
12423
|
-
};
|
|
12424
|
-
};
|
|
12425
|
-
};
|
|
12426
12414
|
/**
|
|
12427
12415
|
* Optional attributes
|
|
12428
12416
|
*/
|
|
@@ -12459,6 +12447,46 @@ interface CreatePluginRequestBody$1 {
|
|
|
12459
12447
|
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
12460
12448
|
*/
|
|
12461
12449
|
public?: boolean;
|
|
12450
|
+
dependencies?: {
|
|
12451
|
+
/**
|
|
12452
|
+
* Mapping of interface aliases to interface references
|
|
12453
|
+
*/
|
|
12454
|
+
interfaces?: {
|
|
12455
|
+
[k: string]: {
|
|
12456
|
+
/**
|
|
12457
|
+
* Id of the interface. If provided, "name" and "version" are ignored
|
|
12458
|
+
*/
|
|
12459
|
+
id?: string;
|
|
12460
|
+
/**
|
|
12461
|
+
* Name of the interface
|
|
12462
|
+
*/
|
|
12463
|
+
name?: string;
|
|
12464
|
+
/**
|
|
12465
|
+
* Version of the interface. Accepts semver versions and version ranges
|
|
12466
|
+
*/
|
|
12467
|
+
version?: string;
|
|
12468
|
+
};
|
|
12469
|
+
};
|
|
12470
|
+
/**
|
|
12471
|
+
* Mapping of integration aliases to integration references
|
|
12472
|
+
*/
|
|
12473
|
+
integrations?: {
|
|
12474
|
+
[k: string]: {
|
|
12475
|
+
/**
|
|
12476
|
+
* Id of the integration. If provided, "name" and "version" are ignored
|
|
12477
|
+
*/
|
|
12478
|
+
id?: string;
|
|
12479
|
+
/**
|
|
12480
|
+
* Name of the integration
|
|
12481
|
+
*/
|
|
12482
|
+
name?: string;
|
|
12483
|
+
/**
|
|
12484
|
+
* Version of the integration. Accepts semver versions and version ranges
|
|
12485
|
+
*/
|
|
12486
|
+
version?: string;
|
|
12487
|
+
};
|
|
12488
|
+
};
|
|
12489
|
+
};
|
|
12462
12490
|
}
|
|
12463
12491
|
type CreatePluginInput$1 = CreatePluginRequestBody$1 & CreatePluginRequestHeaders$1 & CreatePluginRequestQuery$1 & CreatePluginRequestParams$1;
|
|
12464
12492
|
interface CreatePluginResponse$1 {
|
|
@@ -13435,18 +13463,6 @@ interface UpdatePluginRequestBody$1 {
|
|
|
13435
13463
|
} | null;
|
|
13436
13464
|
};
|
|
13437
13465
|
};
|
|
13438
|
-
dependencies?: {
|
|
13439
|
-
interfaces?: {
|
|
13440
|
-
[k: string]: {
|
|
13441
|
-
id: string;
|
|
13442
|
-
} | null;
|
|
13443
|
-
};
|
|
13444
|
-
integrations?: {
|
|
13445
|
-
[k: string]: {
|
|
13446
|
-
id: string;
|
|
13447
|
-
} | null;
|
|
13448
|
-
};
|
|
13449
|
-
};
|
|
13450
13466
|
/**
|
|
13451
13467
|
* Optional attributes. Set attributes to null to remove them
|
|
13452
13468
|
*/
|
|
@@ -13483,6 +13499,46 @@ interface UpdatePluginRequestBody$1 {
|
|
|
13483
13499
|
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
13484
13500
|
*/
|
|
13485
13501
|
public?: boolean;
|
|
13502
|
+
dependencies?: {
|
|
13503
|
+
/**
|
|
13504
|
+
* Mapping of interface aliases to interface references
|
|
13505
|
+
*/
|
|
13506
|
+
interfaces?: {
|
|
13507
|
+
[k: string]: {
|
|
13508
|
+
/**
|
|
13509
|
+
* Id of the interface. If provided, "name" and "version" are ignored
|
|
13510
|
+
*/
|
|
13511
|
+
id?: string;
|
|
13512
|
+
/**
|
|
13513
|
+
* Name of the interface
|
|
13514
|
+
*/
|
|
13515
|
+
name?: string;
|
|
13516
|
+
/**
|
|
13517
|
+
* Version of the interface. Accepts semver versions and version ranges
|
|
13518
|
+
*/
|
|
13519
|
+
version?: string;
|
|
13520
|
+
} | null;
|
|
13521
|
+
};
|
|
13522
|
+
/**
|
|
13523
|
+
* Mapping of integration aliases to integration references
|
|
13524
|
+
*/
|
|
13525
|
+
integrations?: {
|
|
13526
|
+
[k: string]: {
|
|
13527
|
+
/**
|
|
13528
|
+
* Id of the integration. If provided, "name" and "version" are ignored
|
|
13529
|
+
*/
|
|
13530
|
+
id?: string;
|
|
13531
|
+
/**
|
|
13532
|
+
* Name of the integration
|
|
13533
|
+
*/
|
|
13534
|
+
name?: string;
|
|
13535
|
+
/**
|
|
13536
|
+
* Version of the integration. Accepts semver versions and version ranges
|
|
13537
|
+
*/
|
|
13538
|
+
version?: string;
|
|
13539
|
+
} | null;
|
|
13540
|
+
};
|
|
13541
|
+
};
|
|
13486
13542
|
}
|
|
13487
13543
|
type UpdatePluginInput$1 = UpdatePluginRequestBody$1 & UpdatePluginRequestHeaders$1 & UpdatePluginRequestQuery$1 & UpdatePluginRequestParams$1;
|
|
13488
13544
|
interface UpdatePluginResponse$1 {
|
|
@@ -14148,9 +14204,9 @@ declare class Client$6 extends Client$7 {
|
|
|
14148
14204
|
interfaceId?: string | undefined;
|
|
14149
14205
|
interfaceName?: string | undefined;
|
|
14150
14206
|
installedByBotId?: string | undefined;
|
|
14151
|
-
verificationStatus?: "unapproved" | "pending" | "approved" | "rejected" | undefined;
|
|
14152
|
-
sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount" | undefined;
|
|
14153
|
-
direction?: "asc" | "desc" | undefined;
|
|
14207
|
+
verificationStatus?: ("unapproved" | "pending" | "approved" | "rejected") | undefined;
|
|
14208
|
+
sortBy?: ("popularity" | "name" | "createdAt" | "updatedAt" | "installCount") | undefined;
|
|
14209
|
+
direction?: ("asc" | "desc") | undefined;
|
|
14154
14210
|
}) => AsyncCollection<{
|
|
14155
14211
|
id: string;
|
|
14156
14212
|
name: string;
|
|
@@ -14184,8 +14240,8 @@ declare class Client$6 extends Client$7 {
|
|
|
14184
14240
|
tags?: {
|
|
14185
14241
|
[x: string]: string;
|
|
14186
14242
|
} | undefined;
|
|
14187
|
-
sortField?: "createdAt" | "updatedAt" | undefined;
|
|
14188
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
14243
|
+
sortField?: ("createdAt" | "updatedAt") | undefined;
|
|
14244
|
+
sortDirection?: ("asc" | "desc") | undefined;
|
|
14189
14245
|
dev?: boolean | undefined;
|
|
14190
14246
|
}) => AsyncCollection<{
|
|
14191
14247
|
id: string;
|
|
@@ -14240,11 +14296,11 @@ declare class Client$6 extends Client$7 {
|
|
|
14240
14296
|
interfaceId?: string | undefined;
|
|
14241
14297
|
interfaceName?: string | undefined;
|
|
14242
14298
|
installedByBotId?: string | undefined;
|
|
14243
|
-
verificationStatus?: "unapproved" | "pending" | "approved" | "rejected" | undefined;
|
|
14244
|
-
sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount" | undefined;
|
|
14245
|
-
direction?: "asc" | "desc" | undefined;
|
|
14299
|
+
verificationStatus?: ("unapproved" | "pending" | "approved" | "rejected") | undefined;
|
|
14300
|
+
sortBy?: ("popularity" | "name" | "createdAt" | "updatedAt" | "installCount") | undefined;
|
|
14301
|
+
direction?: ("asc" | "desc") | undefined;
|
|
14246
14302
|
dev?: boolean | undefined;
|
|
14247
|
-
visibility?: "public" | "private" | undefined;
|
|
14303
|
+
visibility?: ("public" | "private") | undefined;
|
|
14248
14304
|
}) => AsyncCollection<{
|
|
14249
14305
|
id: string;
|
|
14250
14306
|
name: string;
|
|
@@ -15278,6 +15334,9 @@ interface CreateKnowledgeBaseRequestBody$1 {
|
|
|
15278
15334
|
* Name of the knowledge base.
|
|
15279
15335
|
*/
|
|
15280
15336
|
name: string;
|
|
15337
|
+
tags?: {
|
|
15338
|
+
[k: string]: string;
|
|
15339
|
+
};
|
|
15281
15340
|
}
|
|
15282
15341
|
type CreateKnowledgeBaseInput$1 = CreateKnowledgeBaseRequestBody$1 & CreateKnowledgeBaseRequestHeaders$1 & CreateKnowledgeBaseRequestQuery$1 & CreateKnowledgeBaseRequestParams$1;
|
|
15283
15342
|
interface CreateKnowledgeBaseResponse$1 {
|
|
@@ -15290,6 +15349,9 @@ interface CreateKnowledgeBaseResponse$1 {
|
|
|
15290
15349
|
* Name of the knowledge base.
|
|
15291
15350
|
*/
|
|
15292
15351
|
name: string;
|
|
15352
|
+
tags: {
|
|
15353
|
+
[k: string]: string;
|
|
15354
|
+
};
|
|
15293
15355
|
};
|
|
15294
15356
|
}
|
|
15295
15357
|
|
|
@@ -15318,6 +15380,12 @@ interface UpdateKnowledgeBaseRequestBody$1 {
|
|
|
15318
15380
|
* New name of the knowledge base.
|
|
15319
15381
|
*/
|
|
15320
15382
|
name: string;
|
|
15383
|
+
/**
|
|
15384
|
+
* 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`.
|
|
15385
|
+
*/
|
|
15386
|
+
tags?: {
|
|
15387
|
+
[k: string]: string | null;
|
|
15388
|
+
};
|
|
15321
15389
|
}
|
|
15322
15390
|
type UpdateKnowledgeBaseInput$1 = UpdateKnowledgeBaseRequestBody$1 & UpdateKnowledgeBaseRequestHeaders$1 & UpdateKnowledgeBaseRequestQuery$1 & UpdateKnowledgeBaseRequestParams$1;
|
|
15323
15391
|
interface UpdateKnowledgeBaseResponse$1 {
|
|
@@ -15330,6 +15398,9 @@ interface UpdateKnowledgeBaseResponse$1 {
|
|
|
15330
15398
|
* Name of the knowledge base.
|
|
15331
15399
|
*/
|
|
15332
15400
|
name: string;
|
|
15401
|
+
tags: {
|
|
15402
|
+
[k: string]: string;
|
|
15403
|
+
};
|
|
15333
15404
|
};
|
|
15334
15405
|
}
|
|
15335
15406
|
|
|
@@ -15337,6 +15408,7 @@ interface ListKnowledgeBasesRequestHeaders$1 {
|
|
|
15337
15408
|
}
|
|
15338
15409
|
interface ListKnowledgeBasesRequestQuery$1 {
|
|
15339
15410
|
nextToken?: string;
|
|
15411
|
+
tags?: any;
|
|
15340
15412
|
}
|
|
15341
15413
|
interface ListKnowledgeBasesRequestParams$1 {
|
|
15342
15414
|
}
|
|
@@ -15357,6 +15429,9 @@ interface ListKnowledgeBasesResponse$1 {
|
|
|
15357
15429
|
* Knowledge base creation timestamp in ISO 8601 format
|
|
15358
15430
|
*/
|
|
15359
15431
|
createdAt: string;
|
|
15432
|
+
tags: {
|
|
15433
|
+
[k: string]: string;
|
|
15434
|
+
};
|
|
15360
15435
|
}[];
|
|
15361
15436
|
meta: {
|
|
15362
15437
|
/**
|
|
@@ -15415,8 +15490,8 @@ declare class Client$4 extends Client$5 implements IClient$2 {
|
|
|
15415
15490
|
get list(): {
|
|
15416
15491
|
files: (props: {
|
|
15417
15492
|
tags?: any;
|
|
15418
|
-
sortField?: "key" | "size" | "createdAt" | "updatedAt" | "status" | undefined;
|
|
15419
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
15493
|
+
sortField?: ("key" | "size" | "createdAt" | "updatedAt" | "status") | undefined;
|
|
15494
|
+
sortDirection?: ("asc" | "desc") | undefined;
|
|
15420
15495
|
ids?: string[] | undefined;
|
|
15421
15496
|
}) => AsyncCollection<{
|
|
15422
15497
|
id: string;
|
|
@@ -15458,6 +15533,10 @@ declare class Client$4 extends Client$5 implements IClient$2 {
|
|
|
15458
15533
|
sourceUrl?: string;
|
|
15459
15534
|
};
|
|
15460
15535
|
}>;
|
|
15536
|
+
fileTags: (props: {}) => AsyncCollection<string>;
|
|
15537
|
+
fileTagValues: (props: {
|
|
15538
|
+
tag: string;
|
|
15539
|
+
}) => AsyncCollection<string>;
|
|
15461
15540
|
};
|
|
15462
15541
|
/**
|
|
15463
15542
|
* Create/update and upload a file in a single step. Returns an object containing the file metadata and the URL to retrieve the file.
|
|
@@ -22923,10 +23002,6 @@ interface UpdateBotRequestBody {
|
|
|
22923
23002
|
};
|
|
22924
23003
|
} | null;
|
|
22925
23004
|
};
|
|
22926
|
-
/**
|
|
22927
|
-
* If true, plugins will be merged into the bot and entity references will be resolved. If you are uncertain about this field, you should probably set it to true
|
|
22928
|
-
*/
|
|
22929
|
-
shouldMergePlugins?: boolean;
|
|
22930
23005
|
subscriptions?: {
|
|
22931
23006
|
events: {
|
|
22932
23007
|
[k: string]: {} | null;
|
|
@@ -22948,6 +23023,10 @@ interface UpdateBotRequestBody {
|
|
|
22948
23023
|
name: string;
|
|
22949
23024
|
}[];
|
|
22950
23025
|
layers?: string[];
|
|
23026
|
+
/**
|
|
23027
|
+
* UNUSED. Please ignore this field. It will be removed in the near future.
|
|
23028
|
+
*/
|
|
23029
|
+
shouldMergePlugins?: boolean;
|
|
22951
23030
|
}
|
|
22952
23031
|
type UpdateBotInput = UpdateBotRequestBody & UpdateBotRequestHeaders & UpdateBotRequestQuery & UpdateBotRequestParams;
|
|
22953
23032
|
interface UpdateBotResponse {
|
|
@@ -29305,18 +29384,6 @@ interface CreatePluginRequestBody {
|
|
|
29305
29384
|
};
|
|
29306
29385
|
};
|
|
29307
29386
|
};
|
|
29308
|
-
dependencies?: {
|
|
29309
|
-
interfaces?: {
|
|
29310
|
-
[k: string]: {
|
|
29311
|
-
id: string;
|
|
29312
|
-
};
|
|
29313
|
-
};
|
|
29314
|
-
integrations?: {
|
|
29315
|
-
[k: string]: {
|
|
29316
|
-
id: string;
|
|
29317
|
-
};
|
|
29318
|
-
};
|
|
29319
|
-
};
|
|
29320
29387
|
/**
|
|
29321
29388
|
* Optional attributes
|
|
29322
29389
|
*/
|
|
@@ -29353,6 +29420,46 @@ interface CreatePluginRequestBody {
|
|
|
29353
29420
|
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
29354
29421
|
*/
|
|
29355
29422
|
public?: boolean;
|
|
29423
|
+
dependencies?: {
|
|
29424
|
+
/**
|
|
29425
|
+
* Mapping of interface aliases to interface references
|
|
29426
|
+
*/
|
|
29427
|
+
interfaces?: {
|
|
29428
|
+
[k: string]: {
|
|
29429
|
+
/**
|
|
29430
|
+
* Id of the interface. If provided, "name" and "version" are ignored
|
|
29431
|
+
*/
|
|
29432
|
+
id?: string;
|
|
29433
|
+
/**
|
|
29434
|
+
* Name of the interface
|
|
29435
|
+
*/
|
|
29436
|
+
name?: string;
|
|
29437
|
+
/**
|
|
29438
|
+
* Version of the interface. Accepts semver versions and version ranges
|
|
29439
|
+
*/
|
|
29440
|
+
version?: string;
|
|
29441
|
+
};
|
|
29442
|
+
};
|
|
29443
|
+
/**
|
|
29444
|
+
* Mapping of integration aliases to integration references
|
|
29445
|
+
*/
|
|
29446
|
+
integrations?: {
|
|
29447
|
+
[k: string]: {
|
|
29448
|
+
/**
|
|
29449
|
+
* Id of the integration. If provided, "name" and "version" are ignored
|
|
29450
|
+
*/
|
|
29451
|
+
id?: string;
|
|
29452
|
+
/**
|
|
29453
|
+
* Name of the integration
|
|
29454
|
+
*/
|
|
29455
|
+
name?: string;
|
|
29456
|
+
/**
|
|
29457
|
+
* Version of the integration. Accepts semver versions and version ranges
|
|
29458
|
+
*/
|
|
29459
|
+
version?: string;
|
|
29460
|
+
};
|
|
29461
|
+
};
|
|
29462
|
+
};
|
|
29356
29463
|
}
|
|
29357
29464
|
type CreatePluginInput = CreatePluginRequestBody & CreatePluginRequestHeaders & CreatePluginRequestQuery & CreatePluginRequestParams;
|
|
29358
29465
|
interface CreatePluginResponse {
|
|
@@ -30329,18 +30436,6 @@ interface UpdatePluginRequestBody {
|
|
|
30329
30436
|
} | null;
|
|
30330
30437
|
};
|
|
30331
30438
|
};
|
|
30332
|
-
dependencies?: {
|
|
30333
|
-
interfaces?: {
|
|
30334
|
-
[k: string]: {
|
|
30335
|
-
id: string;
|
|
30336
|
-
} | null;
|
|
30337
|
-
};
|
|
30338
|
-
integrations?: {
|
|
30339
|
-
[k: string]: {
|
|
30340
|
-
id: string;
|
|
30341
|
-
} | null;
|
|
30342
|
-
};
|
|
30343
|
-
};
|
|
30344
30439
|
/**
|
|
30345
30440
|
* Optional attributes. Set attributes to null to remove them
|
|
30346
30441
|
*/
|
|
@@ -30377,6 +30472,46 @@ interface UpdatePluginRequestBody {
|
|
|
30377
30472
|
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
30378
30473
|
*/
|
|
30379
30474
|
public?: boolean;
|
|
30475
|
+
dependencies?: {
|
|
30476
|
+
/**
|
|
30477
|
+
* Mapping of interface aliases to interface references
|
|
30478
|
+
*/
|
|
30479
|
+
interfaces?: {
|
|
30480
|
+
[k: string]: {
|
|
30481
|
+
/**
|
|
30482
|
+
* Id of the interface. If provided, "name" and "version" are ignored
|
|
30483
|
+
*/
|
|
30484
|
+
id?: string;
|
|
30485
|
+
/**
|
|
30486
|
+
* Name of the interface
|
|
30487
|
+
*/
|
|
30488
|
+
name?: string;
|
|
30489
|
+
/**
|
|
30490
|
+
* Version of the interface. Accepts semver versions and version ranges
|
|
30491
|
+
*/
|
|
30492
|
+
version?: string;
|
|
30493
|
+
} | null;
|
|
30494
|
+
};
|
|
30495
|
+
/**
|
|
30496
|
+
* Mapping of integration aliases to integration references
|
|
30497
|
+
*/
|
|
30498
|
+
integrations?: {
|
|
30499
|
+
[k: string]: {
|
|
30500
|
+
/**
|
|
30501
|
+
* Id of the integration. If provided, "name" and "version" are ignored
|
|
30502
|
+
*/
|
|
30503
|
+
id?: string;
|
|
30504
|
+
/**
|
|
30505
|
+
* Name of the integration
|
|
30506
|
+
*/
|
|
30507
|
+
name?: string;
|
|
30508
|
+
/**
|
|
30509
|
+
* Version of the integration. Accepts semver versions and version ranges
|
|
30510
|
+
*/
|
|
30511
|
+
version?: string;
|
|
30512
|
+
} | null;
|
|
30513
|
+
};
|
|
30514
|
+
};
|
|
30380
30515
|
}
|
|
30381
30516
|
type UpdatePluginInput = UpdatePluginRequestBody & UpdatePluginRequestHeaders & UpdatePluginRequestQuery & UpdatePluginRequestParams;
|
|
30382
30517
|
interface UpdatePluginResponse {
|
|
@@ -31831,6 +31966,9 @@ interface CreateKnowledgeBaseRequestBody {
|
|
|
31831
31966
|
* Name of the knowledge base.
|
|
31832
31967
|
*/
|
|
31833
31968
|
name: string;
|
|
31969
|
+
tags?: {
|
|
31970
|
+
[k: string]: string;
|
|
31971
|
+
};
|
|
31834
31972
|
}
|
|
31835
31973
|
type CreateKnowledgeBaseInput = CreateKnowledgeBaseRequestBody & CreateKnowledgeBaseRequestHeaders & CreateKnowledgeBaseRequestQuery & CreateKnowledgeBaseRequestParams;
|
|
31836
31974
|
interface CreateKnowledgeBaseResponse {
|
|
@@ -31843,6 +31981,9 @@ interface CreateKnowledgeBaseResponse {
|
|
|
31843
31981
|
* Name of the knowledge base.
|
|
31844
31982
|
*/
|
|
31845
31983
|
name: string;
|
|
31984
|
+
tags: {
|
|
31985
|
+
[k: string]: string;
|
|
31986
|
+
};
|
|
31846
31987
|
};
|
|
31847
31988
|
}
|
|
31848
31989
|
|
|
@@ -31871,6 +32012,12 @@ interface UpdateKnowledgeBaseRequestBody {
|
|
|
31871
32012
|
* New name of the knowledge base.
|
|
31872
32013
|
*/
|
|
31873
32014
|
name: string;
|
|
32015
|
+
/**
|
|
32016
|
+
* 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`.
|
|
32017
|
+
*/
|
|
32018
|
+
tags?: {
|
|
32019
|
+
[k: string]: string | null;
|
|
32020
|
+
};
|
|
31874
32021
|
}
|
|
31875
32022
|
type UpdateKnowledgeBaseInput = UpdateKnowledgeBaseRequestBody & UpdateKnowledgeBaseRequestHeaders & UpdateKnowledgeBaseRequestQuery & UpdateKnowledgeBaseRequestParams;
|
|
31876
32023
|
interface UpdateKnowledgeBaseResponse {
|
|
@@ -31883,6 +32030,9 @@ interface UpdateKnowledgeBaseResponse {
|
|
|
31883
32030
|
* Name of the knowledge base.
|
|
31884
32031
|
*/
|
|
31885
32032
|
name: string;
|
|
32033
|
+
tags: {
|
|
32034
|
+
[k: string]: string;
|
|
32035
|
+
};
|
|
31886
32036
|
};
|
|
31887
32037
|
}
|
|
31888
32038
|
|
|
@@ -31890,6 +32040,7 @@ interface ListKnowledgeBasesRequestHeaders {
|
|
|
31890
32040
|
}
|
|
31891
32041
|
interface ListKnowledgeBasesRequestQuery {
|
|
31892
32042
|
nextToken?: string;
|
|
32043
|
+
tags?: any;
|
|
31893
32044
|
}
|
|
31894
32045
|
interface ListKnowledgeBasesRequestParams {
|
|
31895
32046
|
}
|
|
@@ -31910,6 +32061,9 @@ interface ListKnowledgeBasesResponse {
|
|
|
31910
32061
|
* Knowledge base creation timestamp in ISO 8601 format
|
|
31911
32062
|
*/
|
|
31912
32063
|
createdAt: string;
|
|
32064
|
+
tags: {
|
|
32065
|
+
[k: string]: string;
|
|
32066
|
+
};
|
|
31913
32067
|
}[];
|
|
31914
32068
|
meta: {
|
|
31915
32069
|
/**
|
|
@@ -35622,8 +35776,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
35622
35776
|
} | undefined;
|
|
35623
35777
|
channel?: string | undefined;
|
|
35624
35778
|
integrationName?: string | undefined;
|
|
35625
|
-
sortField?: "createdAt" | "updatedAt" | undefined;
|
|
35626
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
35779
|
+
sortField?: ("createdAt" | "updatedAt") | undefined;
|
|
35780
|
+
sortDirection?: ("asc" | "desc") | undefined;
|
|
35627
35781
|
participantIds?: string[] | undefined;
|
|
35628
35782
|
}) => AsyncCollection<{
|
|
35629
35783
|
id: string;
|
|
@@ -35654,7 +35808,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
35654
35808
|
userId?: string | undefined;
|
|
35655
35809
|
conversationId?: string | undefined;
|
|
35656
35810
|
messageId?: string | undefined;
|
|
35657
|
-
status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
|
|
35811
|
+
status?: ("pending" | "ignored" | "processed" | "failed" | "scheduled") | undefined;
|
|
35658
35812
|
}) => AsyncCollection<{
|
|
35659
35813
|
id: string;
|
|
35660
35814
|
createdAt: string;
|
|
@@ -35740,9 +35894,9 @@ declare class Client extends Client$1 implements IClient {
|
|
|
35740
35894
|
interfaceId?: string | undefined;
|
|
35741
35895
|
interfaceName?: string | undefined;
|
|
35742
35896
|
installedByBotId?: string | undefined;
|
|
35743
|
-
verificationStatus?: "unapproved" | "pending" | "approved" | "rejected" | undefined;
|
|
35744
|
-
sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount" | undefined;
|
|
35745
|
-
direction?: "asc" | "desc" | undefined;
|
|
35897
|
+
verificationStatus?: ("unapproved" | "pending" | "approved" | "rejected") | undefined;
|
|
35898
|
+
sortBy?: ("popularity" | "name" | "createdAt" | "updatedAt" | "installCount") | undefined;
|
|
35899
|
+
direction?: ("asc" | "desc") | undefined;
|
|
35746
35900
|
}) => AsyncCollection<{
|
|
35747
35901
|
id: string;
|
|
35748
35902
|
name: string;
|
|
@@ -35776,8 +35930,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
35776
35930
|
tags?: {
|
|
35777
35931
|
[x: string]: string;
|
|
35778
35932
|
} | undefined;
|
|
35779
|
-
sortField?: "createdAt" | "updatedAt" | undefined;
|
|
35780
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
35933
|
+
sortField?: ("createdAt" | "updatedAt") | undefined;
|
|
35934
|
+
sortDirection?: ("asc" | "desc") | undefined;
|
|
35781
35935
|
dev?: boolean | undefined;
|
|
35782
35936
|
}) => AsyncCollection<{
|
|
35783
35937
|
id: string;
|
|
@@ -35824,11 +35978,11 @@ declare class Client extends Client$1 implements IClient {
|
|
|
35824
35978
|
interfaceId?: string | undefined;
|
|
35825
35979
|
interfaceName?: string | undefined;
|
|
35826
35980
|
installedByBotId?: string | undefined;
|
|
35827
|
-
verificationStatus?: "unapproved" | "pending" | "approved" | "rejected" | undefined;
|
|
35828
|
-
sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount" | undefined;
|
|
35829
|
-
direction?: "asc" | "desc" | undefined;
|
|
35981
|
+
verificationStatus?: ("unapproved" | "pending" | "approved" | "rejected") | undefined;
|
|
35982
|
+
sortBy?: ("popularity" | "name" | "createdAt" | "updatedAt" | "installCount") | undefined;
|
|
35983
|
+
direction?: ("asc" | "desc") | undefined;
|
|
35830
35984
|
dev?: boolean | undefined;
|
|
35831
|
-
visibility?: "public" | "private" | undefined;
|
|
35985
|
+
visibility?: ("public" | "private") | undefined;
|
|
35832
35986
|
}) => AsyncCollection<{
|
|
35833
35987
|
id: string;
|
|
35834
35988
|
name: string;
|
|
@@ -35929,8 +36083,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
35929
36083
|
}>;
|
|
35930
36084
|
files: (props: {
|
|
35931
36085
|
tags?: any;
|
|
35932
|
-
sortField?: "key" | "size" | "createdAt" | "updatedAt" | "status" | undefined;
|
|
35933
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
36086
|
+
sortField?: ("key" | "size" | "createdAt" | "updatedAt" | "status") | undefined;
|
|
36087
|
+
sortDirection?: ("asc" | "desc") | undefined;
|
|
35934
36088
|
ids?: string[] | undefined;
|
|
35935
36089
|
}) => AsyncCollection<{
|
|
35936
36090
|
id: string;
|
|
@@ -35972,6 +36126,10 @@ declare class Client extends Client$1 implements IClient {
|
|
|
35972
36126
|
sourceUrl?: string;
|
|
35973
36127
|
};
|
|
35974
36128
|
}>;
|
|
36129
|
+
fileTags: (props: {}) => AsyncCollection<string>;
|
|
36130
|
+
fileTagValues: (props: {
|
|
36131
|
+
tag: string;
|
|
36132
|
+
}) => AsyncCollection<string>;
|
|
35975
36133
|
usageActivity: (props: {
|
|
35976
36134
|
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";
|
|
35977
36135
|
id: string;
|