@botpress/client 0.30.2 → 0.32.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/.turbo/turbo-build.log +7 -7
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +12 -12
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +238 -20
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +4 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5168,7 +5168,7 @@ interface GetAuditRecordsResponse {
|
|
|
5168
5168
|
resourceId: string | null;
|
|
5169
5169
|
resourceName?: string | null;
|
|
5170
5170
|
value?: string | null;
|
|
5171
|
-
action: "UNKNOWN" | "ADD_WORKSPACE_MEMBER" | "REMOVE_WORKSPACE_MEMBER" | "UPDATE_WORKSPACE_MEMBER" | "CLOSE_WORKSPACE" | "CREATE_BOT" | "CREATE_WORKSPACE" | "DELETE_BOT" | "DEPLOY_BOT" | "TRANSFER_BOT" | "DOWNLOAD_BOT_ARCHIVE" | "UPDATE_BOT" | "UPDATE_BOT_CHANNEL" | "UPDATE_BOT_CONFIG" | "UPDATE_PAYMENT_METHOD" | "UPDATE_WORKSPACE" | "SET_SPENDING_LIMIT" | "SET_AI_SPENDING_LIMIT";
|
|
5171
|
+
action: "UNKNOWN" | "ADD_WORKSPACE_MEMBER" | "REMOVE_WORKSPACE_MEMBER" | "UPDATE_WORKSPACE_MEMBER" | "CLOSE_WORKSPACE" | "CREATE_BOT" | "CREATE_WORKSPACE" | "DELETE_BOT" | "DEPLOY_BOT" | "TRANSFER_BOT" | "DOWNLOAD_BOT_ARCHIVE" | "UPDATE_BOT" | "UPDATE_BOT_CHANNEL" | "UPDATE_BOT_CONFIG" | "UPDATE_PAYMENT_METHOD" | "UPDATE_WORKSPACE" | "SET_SPENDING_LIMIT" | "SET_AI_SPENDING_LIMIT" | "UPDATE_WORKSPACE_BILLING_READONLY";
|
|
5172
5172
|
}[];
|
|
5173
5173
|
meta: {
|
|
5174
5174
|
/**
|
|
@@ -7516,6 +7516,13 @@ interface CreateInterfaceRequestBody {
|
|
|
7516
7516
|
};
|
|
7517
7517
|
};
|
|
7518
7518
|
};
|
|
7519
|
+
/**
|
|
7520
|
+
* Template string optionaly used at build time by integrations implementing this interface to pick a name for actions and events.
|
|
7521
|
+
*/
|
|
7522
|
+
nameTemplate?: {
|
|
7523
|
+
script: string;
|
|
7524
|
+
language: string;
|
|
7525
|
+
};
|
|
7519
7526
|
}
|
|
7520
7527
|
type CreateInterfaceInput = CreateInterfaceRequestBody & CreateInterfaceRequestHeaders & CreateInterfaceRequestQuery & CreateInterfaceRequestParams;
|
|
7521
7528
|
interface CreateInterfaceResponse {
|
|
@@ -7603,6 +7610,13 @@ interface CreateInterfaceResponse {
|
|
|
7603
7610
|
};
|
|
7604
7611
|
};
|
|
7605
7612
|
};
|
|
7613
|
+
/**
|
|
7614
|
+
* Template string optionaly used at build time by integrations implementing this interface to pick a name for actions and events.
|
|
7615
|
+
*/
|
|
7616
|
+
nameTemplate?: {
|
|
7617
|
+
script: string;
|
|
7618
|
+
language: string;
|
|
7619
|
+
};
|
|
7606
7620
|
};
|
|
7607
7621
|
}
|
|
7608
7622
|
|
|
@@ -7701,6 +7715,13 @@ interface GetInterfaceResponse {
|
|
|
7701
7715
|
};
|
|
7702
7716
|
};
|
|
7703
7717
|
};
|
|
7718
|
+
/**
|
|
7719
|
+
* Template string optionaly used at build time by integrations implementing this interface to pick a name for actions and events.
|
|
7720
|
+
*/
|
|
7721
|
+
nameTemplate?: {
|
|
7722
|
+
script: string;
|
|
7723
|
+
language: string;
|
|
7724
|
+
};
|
|
7704
7725
|
};
|
|
7705
7726
|
}
|
|
7706
7727
|
|
|
@@ -7800,6 +7821,13 @@ interface GetInterfaceByNameResponse {
|
|
|
7800
7821
|
};
|
|
7801
7822
|
};
|
|
7802
7823
|
};
|
|
7824
|
+
/**
|
|
7825
|
+
* Template string optionaly used at build time by integrations implementing this interface to pick a name for actions and events.
|
|
7826
|
+
*/
|
|
7827
|
+
nameTemplate?: {
|
|
7828
|
+
script: string;
|
|
7829
|
+
language: string;
|
|
7830
|
+
};
|
|
7803
7831
|
};
|
|
7804
7832
|
}
|
|
7805
7833
|
|
|
@@ -7874,6 +7902,13 @@ interface UpdateInterfaceRequestBody {
|
|
|
7874
7902
|
};
|
|
7875
7903
|
} | null;
|
|
7876
7904
|
};
|
|
7905
|
+
/**
|
|
7906
|
+
* Template string optionaly used at build time by integrations implementing this interface to pick a name for actions and events.
|
|
7907
|
+
*/
|
|
7908
|
+
nameTemplate?: {
|
|
7909
|
+
script: string;
|
|
7910
|
+
language: string;
|
|
7911
|
+
} | null;
|
|
7877
7912
|
}
|
|
7878
7913
|
type UpdateInterfaceInput = UpdateInterfaceRequestBody & UpdateInterfaceRequestHeaders & UpdateInterfaceRequestQuery & UpdateInterfaceRequestParams;
|
|
7879
7914
|
interface UpdateInterfaceResponse {
|
|
@@ -7961,6 +7996,13 @@ interface UpdateInterfaceResponse {
|
|
|
7961
7996
|
};
|
|
7962
7997
|
};
|
|
7963
7998
|
};
|
|
7999
|
+
/**
|
|
8000
|
+
* Template string optionaly used at build time by integrations implementing this interface to pick a name for actions and events.
|
|
8001
|
+
*/
|
|
8002
|
+
nameTemplate?: {
|
|
8003
|
+
script: string;
|
|
8004
|
+
language: string;
|
|
8005
|
+
};
|
|
7964
8006
|
};
|
|
7965
8007
|
}
|
|
7966
8008
|
|
|
@@ -8328,9 +8370,11 @@ interface ListFilesRequestHeaders {
|
|
|
8328
8370
|
}
|
|
8329
8371
|
interface ListFilesRequestQuery {
|
|
8330
8372
|
nextToken?: string;
|
|
8331
|
-
tags?:
|
|
8332
|
-
|
|
8333
|
-
|
|
8373
|
+
tags?: any;
|
|
8374
|
+
/**
|
|
8375
|
+
* @maxItems 50
|
|
8376
|
+
*/
|
|
8377
|
+
ids?: string[];
|
|
8334
8378
|
}
|
|
8335
8379
|
interface ListFilesRequestParams {
|
|
8336
8380
|
}
|
|
@@ -8593,12 +8637,11 @@ interface UpdateFileMetadataResponse {
|
|
|
8593
8637
|
interface SearchFilesRequestHeaders {
|
|
8594
8638
|
}
|
|
8595
8639
|
interface SearchFilesRequestQuery {
|
|
8596
|
-
tags?:
|
|
8597
|
-
[k: string]: string;
|
|
8598
|
-
};
|
|
8640
|
+
tags?: any;
|
|
8599
8641
|
query: string;
|
|
8600
8642
|
contextDepth?: number;
|
|
8601
8643
|
limit?: number;
|
|
8644
|
+
consolidate?: boolean;
|
|
8602
8645
|
includeBreadcrumb?: boolean;
|
|
8603
8646
|
}
|
|
8604
8647
|
interface SearchFilesRequestParams {
|
|
@@ -8623,7 +8666,7 @@ interface SearchFilesResponse {
|
|
|
8623
8666
|
/**
|
|
8624
8667
|
* The type of passage
|
|
8625
8668
|
*/
|
|
8626
|
-
type?: "chunk";
|
|
8669
|
+
type?: "chunk" | "summary" | "consolidated";
|
|
8627
8670
|
/**
|
|
8628
8671
|
* The subtype of passage, if available.
|
|
8629
8672
|
*/
|
|
@@ -8697,7 +8740,7 @@ interface ListFilePassagesResponse {
|
|
|
8697
8740
|
/**
|
|
8698
8741
|
* The type of passage
|
|
8699
8742
|
*/
|
|
8700
|
-
type?: "chunk";
|
|
8743
|
+
type?: "chunk" | "summary" | "consolidated";
|
|
8701
8744
|
/**
|
|
8702
8745
|
* The subtype of passage, if available.
|
|
8703
8746
|
*/
|
|
@@ -8757,10 +8800,31 @@ interface ListTablesResponse {
|
|
|
8757
8800
|
*/
|
|
8758
8801
|
properties: {
|
|
8759
8802
|
[k: string]: {
|
|
8760
|
-
type: "string" | "number" | "boolean" | "object" | "null";
|
|
8803
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
8761
8804
|
format?: "date-time";
|
|
8762
8805
|
description?: string;
|
|
8806
|
+
/**
|
|
8807
|
+
* String properties must match this pattern
|
|
8808
|
+
*/
|
|
8809
|
+
pattern?: string;
|
|
8810
|
+
/**
|
|
8811
|
+
* String properties must be one of these values
|
|
8812
|
+
*/
|
|
8813
|
+
enum?: string[];
|
|
8814
|
+
/**
|
|
8815
|
+
* Defines the shape of items in an array
|
|
8816
|
+
*/
|
|
8817
|
+
items?: {
|
|
8818
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
8819
|
+
[k: string]: any;
|
|
8820
|
+
};
|
|
8763
8821
|
nullable?: boolean;
|
|
8822
|
+
properties?: {
|
|
8823
|
+
[k: string]: {
|
|
8824
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
8825
|
+
[k: string]: any;
|
|
8826
|
+
};
|
|
8827
|
+
};
|
|
8764
8828
|
"x-zui": {
|
|
8765
8829
|
index: number;
|
|
8766
8830
|
/**
|
|
@@ -8877,10 +8941,31 @@ interface GetTableResponse {
|
|
|
8877
8941
|
*/
|
|
8878
8942
|
properties: {
|
|
8879
8943
|
[k: string]: {
|
|
8880
|
-
type: "string" | "number" | "boolean" | "object" | "null";
|
|
8944
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
8881
8945
|
format?: "date-time";
|
|
8882
8946
|
description?: string;
|
|
8947
|
+
/**
|
|
8948
|
+
* String properties must match this pattern
|
|
8949
|
+
*/
|
|
8950
|
+
pattern?: string;
|
|
8951
|
+
/**
|
|
8952
|
+
* String properties must be one of these values
|
|
8953
|
+
*/
|
|
8954
|
+
enum?: string[];
|
|
8955
|
+
/**
|
|
8956
|
+
* Defines the shape of items in an array
|
|
8957
|
+
*/
|
|
8958
|
+
items?: {
|
|
8959
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
8960
|
+
[k: string]: any;
|
|
8961
|
+
};
|
|
8883
8962
|
nullable?: boolean;
|
|
8963
|
+
properties?: {
|
|
8964
|
+
[k: string]: {
|
|
8965
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
8966
|
+
[k: string]: any;
|
|
8967
|
+
};
|
|
8968
|
+
};
|
|
8884
8969
|
"x-zui": {
|
|
8885
8970
|
index: number;
|
|
8886
8971
|
/**
|
|
@@ -9033,10 +9118,31 @@ interface GetOrCreateTableResponse {
|
|
|
9033
9118
|
*/
|
|
9034
9119
|
properties: {
|
|
9035
9120
|
[k: string]: {
|
|
9036
|
-
type: "string" | "number" | "boolean" | "object" | "null";
|
|
9121
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9037
9122
|
format?: "date-time";
|
|
9038
9123
|
description?: string;
|
|
9124
|
+
/**
|
|
9125
|
+
* String properties must match this pattern
|
|
9126
|
+
*/
|
|
9127
|
+
pattern?: string;
|
|
9128
|
+
/**
|
|
9129
|
+
* String properties must be one of these values
|
|
9130
|
+
*/
|
|
9131
|
+
enum?: string[];
|
|
9132
|
+
/**
|
|
9133
|
+
* Defines the shape of items in an array
|
|
9134
|
+
*/
|
|
9135
|
+
items?: {
|
|
9136
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9137
|
+
[k: string]: any;
|
|
9138
|
+
};
|
|
9039
9139
|
nullable?: boolean;
|
|
9140
|
+
properties?: {
|
|
9141
|
+
[k: string]: {
|
|
9142
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9143
|
+
[k: string]: any;
|
|
9144
|
+
};
|
|
9145
|
+
};
|
|
9040
9146
|
"x-zui": {
|
|
9041
9147
|
index: number;
|
|
9042
9148
|
/**
|
|
@@ -9196,10 +9302,31 @@ interface CreateTableResponse {
|
|
|
9196
9302
|
*/
|
|
9197
9303
|
properties: {
|
|
9198
9304
|
[k: string]: {
|
|
9199
|
-
type: "string" | "number" | "boolean" | "object" | "null";
|
|
9305
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9200
9306
|
format?: "date-time";
|
|
9201
9307
|
description?: string;
|
|
9308
|
+
/**
|
|
9309
|
+
* String properties must match this pattern
|
|
9310
|
+
*/
|
|
9311
|
+
pattern?: string;
|
|
9312
|
+
/**
|
|
9313
|
+
* String properties must be one of these values
|
|
9314
|
+
*/
|
|
9315
|
+
enum?: string[];
|
|
9316
|
+
/**
|
|
9317
|
+
* Defines the shape of items in an array
|
|
9318
|
+
*/
|
|
9319
|
+
items?: {
|
|
9320
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9321
|
+
[k: string]: any;
|
|
9322
|
+
};
|
|
9202
9323
|
nullable?: boolean;
|
|
9324
|
+
properties?: {
|
|
9325
|
+
[k: string]: {
|
|
9326
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9327
|
+
[k: string]: any;
|
|
9328
|
+
};
|
|
9329
|
+
};
|
|
9203
9330
|
"x-zui": {
|
|
9204
9331
|
index: number;
|
|
9205
9332
|
/**
|
|
@@ -9325,10 +9452,31 @@ interface DuplicateTableResponse {
|
|
|
9325
9452
|
*/
|
|
9326
9453
|
properties: {
|
|
9327
9454
|
[k: string]: {
|
|
9328
|
-
type: "string" | "number" | "boolean" | "object" | "null";
|
|
9455
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9329
9456
|
format?: "date-time";
|
|
9330
9457
|
description?: string;
|
|
9458
|
+
/**
|
|
9459
|
+
* String properties must match this pattern
|
|
9460
|
+
*/
|
|
9461
|
+
pattern?: string;
|
|
9462
|
+
/**
|
|
9463
|
+
* String properties must be one of these values
|
|
9464
|
+
*/
|
|
9465
|
+
enum?: string[];
|
|
9466
|
+
/**
|
|
9467
|
+
* Defines the shape of items in an array
|
|
9468
|
+
*/
|
|
9469
|
+
items?: {
|
|
9470
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9471
|
+
[k: string]: any;
|
|
9472
|
+
};
|
|
9331
9473
|
nullable?: boolean;
|
|
9474
|
+
properties?: {
|
|
9475
|
+
[k: string]: {
|
|
9476
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9477
|
+
[k: string]: any;
|
|
9478
|
+
};
|
|
9479
|
+
};
|
|
9332
9480
|
"x-zui": {
|
|
9333
9481
|
index: number;
|
|
9334
9482
|
/**
|
|
@@ -9473,10 +9621,31 @@ interface UpdateTableResponse {
|
|
|
9473
9621
|
*/
|
|
9474
9622
|
properties: {
|
|
9475
9623
|
[k: string]: {
|
|
9476
|
-
type: "string" | "number" | "boolean" | "object" | "null";
|
|
9624
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9477
9625
|
format?: "date-time";
|
|
9478
9626
|
description?: string;
|
|
9627
|
+
/**
|
|
9628
|
+
* String properties must match this pattern
|
|
9629
|
+
*/
|
|
9630
|
+
pattern?: string;
|
|
9631
|
+
/**
|
|
9632
|
+
* String properties must be one of these values
|
|
9633
|
+
*/
|
|
9634
|
+
enum?: string[];
|
|
9635
|
+
/**
|
|
9636
|
+
* Defines the shape of items in an array
|
|
9637
|
+
*/
|
|
9638
|
+
items?: {
|
|
9639
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9640
|
+
[k: string]: any;
|
|
9641
|
+
};
|
|
9479
9642
|
nullable?: boolean;
|
|
9643
|
+
properties?: {
|
|
9644
|
+
[k: string]: {
|
|
9645
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9646
|
+
[k: string]: any;
|
|
9647
|
+
};
|
|
9648
|
+
};
|
|
9480
9649
|
"x-zui": {
|
|
9481
9650
|
index: number;
|
|
9482
9651
|
/**
|
|
@@ -9605,10 +9774,31 @@ interface RenameTableColumnResponse {
|
|
|
9605
9774
|
*/
|
|
9606
9775
|
properties: {
|
|
9607
9776
|
[k: string]: {
|
|
9608
|
-
type: "string" | "number" | "boolean" | "object" | "null";
|
|
9777
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9609
9778
|
format?: "date-time";
|
|
9610
9779
|
description?: string;
|
|
9780
|
+
/**
|
|
9781
|
+
* String properties must match this pattern
|
|
9782
|
+
*/
|
|
9783
|
+
pattern?: string;
|
|
9784
|
+
/**
|
|
9785
|
+
* String properties must be one of these values
|
|
9786
|
+
*/
|
|
9787
|
+
enum?: string[];
|
|
9788
|
+
/**
|
|
9789
|
+
* Defines the shape of items in an array
|
|
9790
|
+
*/
|
|
9791
|
+
items?: {
|
|
9792
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9793
|
+
[k: string]: any;
|
|
9794
|
+
};
|
|
9611
9795
|
nullable?: boolean;
|
|
9796
|
+
properties?: {
|
|
9797
|
+
[k: string]: {
|
|
9798
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
9799
|
+
[k: string]: any;
|
|
9800
|
+
};
|
|
9801
|
+
};
|
|
9612
9802
|
"x-zui": {
|
|
9613
9803
|
index: number;
|
|
9614
9804
|
/**
|
|
@@ -10808,6 +10998,13 @@ interface Interface {
|
|
|
10808
10998
|
};
|
|
10809
10999
|
};
|
|
10810
11000
|
};
|
|
11001
|
+
/**
|
|
11002
|
+
* Template string optionaly used at build time by integrations implementing this interface to pick a name for actions and events.
|
|
11003
|
+
*/
|
|
11004
|
+
nameTemplate?: {
|
|
11005
|
+
script: string;
|
|
11006
|
+
language: string;
|
|
11007
|
+
};
|
|
10811
11008
|
}
|
|
10812
11009
|
interface Workspace {
|
|
10813
11010
|
id: string;
|
|
@@ -11111,10 +11308,31 @@ interface Table {
|
|
|
11111
11308
|
*/
|
|
11112
11309
|
properties: {
|
|
11113
11310
|
[k: string]: {
|
|
11114
|
-
type: "string" | "number" | "boolean" | "object" | "null";
|
|
11311
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
11115
11312
|
format?: "date-time";
|
|
11116
11313
|
description?: string;
|
|
11314
|
+
/**
|
|
11315
|
+
* String properties must match this pattern
|
|
11316
|
+
*/
|
|
11317
|
+
pattern?: string;
|
|
11318
|
+
/**
|
|
11319
|
+
* String properties must be one of these values
|
|
11320
|
+
*/
|
|
11321
|
+
enum?: string[];
|
|
11322
|
+
/**
|
|
11323
|
+
* Defines the shape of items in an array
|
|
11324
|
+
*/
|
|
11325
|
+
items?: {
|
|
11326
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
11327
|
+
[k: string]: any;
|
|
11328
|
+
};
|
|
11117
11329
|
nullable?: boolean;
|
|
11330
|
+
properties?: {
|
|
11331
|
+
[k: string]: {
|
|
11332
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
11333
|
+
[k: string]: any;
|
|
11334
|
+
};
|
|
11335
|
+
};
|
|
11118
11336
|
"x-zui": {
|
|
11119
11337
|
index: number;
|
|
11120
11338
|
/**
|
|
@@ -11812,8 +12030,8 @@ declare class AsyncCollection<T> {
|
|
|
11812
12030
|
}): Promise<T[]>;
|
|
11813
12031
|
}
|
|
11814
12032
|
declare class Lister {
|
|
11815
|
-
private
|
|
11816
|
-
constructor(
|
|
12033
|
+
private _client;
|
|
12034
|
+
constructor(_client: Client$1);
|
|
11817
12035
|
readonly conversations: (props: ListInputs['listConversations']) => AsyncCollection<{
|
|
11818
12036
|
id: string;
|
|
11819
12037
|
currentTaskId?: string | undefined;
|
|
@@ -11995,7 +12213,7 @@ declare class Lister {
|
|
|
11995
12213
|
id: string;
|
|
11996
12214
|
content: string;
|
|
11997
12215
|
meta: {
|
|
11998
|
-
type?: "chunk" | undefined;
|
|
12216
|
+
type?: "chunk" | "summary" | "consolidated" | undefined;
|
|
11999
12217
|
subtype?: "code" | "title" | "subtitle" | "paragraph" | "list" | "blockquote" | "table" | undefined;
|
|
12000
12218
|
pageNumber?: number | undefined;
|
|
12001
12219
|
position?: number | undefined;
|