@botpress/cognitive 0.1.24 → 0.1.26
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 +5 -5
- package/build.ts +4 -3
- package/dist/index.d.ts +267 -16
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/cognitive@0.1.
|
|
2
|
+
> @botpress/cognitive@0.1.26 build /home/runner/work/botpress/botpress/packages/cognitive
|
|
3
3
|
> pnpm build:type && pnpm build:neutral && size-limit
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @botpress/cognitive@0.1.
|
|
6
|
+
> @botpress/cognitive@0.1.26 build:type /home/runner/work/botpress/botpress/packages/cognitive
|
|
7
7
|
> tsup --tsconfig tsconfig.build.json ./src/index.ts --dts-resolve --dts-only --clean
|
|
8
8
|
|
|
9
9
|
CLI Building entry: ./src/index.ts
|
|
10
10
|
CLI Using tsconfig: tsconfig.build.json
|
|
11
11
|
CLI tsup v8.0.2
|
|
12
12
|
DTS Build start
|
|
13
|
-
DTS ⚡️ Build success in
|
|
14
|
-
DTS dist/index.d.ts
|
|
13
|
+
DTS ⚡️ Build success in 16044ms
|
|
14
|
+
DTS dist/index.d.ts 586.94 KB
|
|
15
15
|
|
|
16
|
-
> @botpress/cognitive@0.1.
|
|
16
|
+
> @botpress/cognitive@0.1.26 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
|
|
17
17
|
> ts-node -T ./build.ts --neutral
|
|
18
18
|
|
|
19
19
|
Done
|
package/build.ts
CHANGED
|
@@ -13,11 +13,12 @@ const common: esbuild.BuildOptions = {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
async function generateTypes() {
|
|
16
|
-
const code =
|
|
16
|
+
const code =
|
|
17
|
+
`export type GenerateContentInput = ${llm.schemas.GenerateContentInputSchema(z.any()).toTypescriptType()};
|
|
17
18
|
|
|
18
|
-
export type GenerateContentOutput = ${llm.schemas.GenerateContentOutputSchema.
|
|
19
|
+
export type GenerateContentOutput = ${llm.schemas.GenerateContentOutputSchema.toTypescriptType()};
|
|
19
20
|
|
|
20
|
-
export type Model = ${llm.schemas.ModelSchema.
|
|
21
|
+
export type Model = ${llm.schemas.ModelSchema.toTypescriptType()};
|
|
21
22
|
`.trim()
|
|
22
23
|
|
|
23
24
|
const filePath = './src/schemas.gen.ts'
|
package/dist/index.d.ts
CHANGED
|
@@ -1072,7 +1072,7 @@ interface UpsertFileRequestBody$1 {
|
|
|
1072
1072
|
*/
|
|
1073
1073
|
size: number;
|
|
1074
1074
|
/**
|
|
1075
|
-
* Set to a value of 'true' to index the file in vector storage. Only certain file formats are currently supported for indexing. Note that if a file is indexed, it will count towards both the Vector DB Storage quota and the File Storage quota of the workspace.
|
|
1075
|
+
* Set to a value of 'true' to index the file in vector storage. Only certain file formats are currently supported for indexing. Files larger than 95 MB cannot be indexed. Note that if a file is indexed, it will count towards both the Vector DB Storage quota and the File Storage quota of the workspace.
|
|
1076
1076
|
*/
|
|
1077
1077
|
index?: boolean;
|
|
1078
1078
|
indexing?: {
|
|
@@ -1279,6 +1279,17 @@ interface UpsertFileResponse$1 {
|
|
|
1279
1279
|
* File expiry timestamp in ISO 8601 format
|
|
1280
1280
|
*/
|
|
1281
1281
|
expiresAt?: string;
|
|
1282
|
+
owner: {
|
|
1283
|
+
type: "bot" | "integration" | "user";
|
|
1284
|
+
/**
|
|
1285
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
1286
|
+
*/
|
|
1287
|
+
id?: string;
|
|
1288
|
+
/**
|
|
1289
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
1290
|
+
*/
|
|
1291
|
+
name?: string;
|
|
1292
|
+
};
|
|
1282
1293
|
/**
|
|
1283
1294
|
* URL to upload the file content. File content needs to be sent to this URL via a PUT request.
|
|
1284
1295
|
*/
|
|
@@ -2625,7 +2636,7 @@ interface UpdateUserRequestBody {
|
|
|
2625
2636
|
/**
|
|
2626
2637
|
* Name of the user
|
|
2627
2638
|
*/
|
|
2628
|
-
name?: string;
|
|
2639
|
+
name?: string | null;
|
|
2629
2640
|
/**
|
|
2630
2641
|
* URI of the user picture
|
|
2631
2642
|
*/
|
|
@@ -4098,6 +4109,18 @@ interface UpdateAccountResponse {
|
|
|
4098
4109
|
};
|
|
4099
4110
|
}
|
|
4100
4111
|
|
|
4112
|
+
interface DeleteAccountRequestHeaders {
|
|
4113
|
+
}
|
|
4114
|
+
interface DeleteAccountRequestQuery {
|
|
4115
|
+
}
|
|
4116
|
+
interface DeleteAccountRequestParams {
|
|
4117
|
+
}
|
|
4118
|
+
interface DeleteAccountRequestBody {
|
|
4119
|
+
}
|
|
4120
|
+
type DeleteAccountInput = DeleteAccountRequestBody & DeleteAccountRequestHeaders & DeleteAccountRequestQuery & DeleteAccountRequestParams;
|
|
4121
|
+
interface DeleteAccountResponse {
|
|
4122
|
+
}
|
|
4123
|
+
|
|
4101
4124
|
interface ListPersonalAccessTokensRequestHeaders {
|
|
4102
4125
|
}
|
|
4103
4126
|
interface ListPersonalAccessTokensRequestQuery {
|
|
@@ -6291,6 +6314,14 @@ interface CreateBotResponse {
|
|
|
6291
6314
|
configuration: {
|
|
6292
6315
|
[k: string]: any;
|
|
6293
6316
|
};
|
|
6317
|
+
/**
|
|
6318
|
+
* A mapping of plugin interface aliases to their backing integrations
|
|
6319
|
+
*/
|
|
6320
|
+
interfaces?: {
|
|
6321
|
+
[k: string]: {
|
|
6322
|
+
integrationId: string;
|
|
6323
|
+
};
|
|
6324
|
+
};
|
|
6294
6325
|
/**
|
|
6295
6326
|
* ID of the [Plugin](#schema_plugin)
|
|
6296
6327
|
*/
|
|
@@ -6763,8 +6794,20 @@ interface UpdateBotRequestBody {
|
|
|
6763
6794
|
configuration?: {
|
|
6764
6795
|
[k: string]: any;
|
|
6765
6796
|
};
|
|
6797
|
+
/**
|
|
6798
|
+
* A mapping of plugin interface aliases to their backing integrations
|
|
6799
|
+
*/
|
|
6800
|
+
interfaces?: {
|
|
6801
|
+
[k: string]: {
|
|
6802
|
+
integrationId: string;
|
|
6803
|
+
};
|
|
6804
|
+
};
|
|
6766
6805
|
} | null;
|
|
6767
6806
|
};
|
|
6807
|
+
/**
|
|
6808
|
+
* 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
|
|
6809
|
+
*/
|
|
6810
|
+
shouldMergePlugins?: boolean;
|
|
6768
6811
|
subscriptions?: {
|
|
6769
6812
|
events: {
|
|
6770
6813
|
[k: string]: {} | null;
|
|
@@ -6884,6 +6927,14 @@ interface UpdateBotResponse {
|
|
|
6884
6927
|
configuration: {
|
|
6885
6928
|
[k: string]: any;
|
|
6886
6929
|
};
|
|
6930
|
+
/**
|
|
6931
|
+
* A mapping of plugin interface aliases to their backing integrations
|
|
6932
|
+
*/
|
|
6933
|
+
interfaces?: {
|
|
6934
|
+
[k: string]: {
|
|
6935
|
+
integrationId: string;
|
|
6936
|
+
};
|
|
6937
|
+
};
|
|
6887
6938
|
/**
|
|
6888
6939
|
* ID of the [Plugin](#schema_plugin)
|
|
6889
6940
|
*/
|
|
@@ -7328,6 +7379,14 @@ interface GetBotResponse {
|
|
|
7328
7379
|
configuration: {
|
|
7329
7380
|
[k: string]: any;
|
|
7330
7381
|
};
|
|
7382
|
+
/**
|
|
7383
|
+
* A mapping of plugin interface aliases to their backing integrations
|
|
7384
|
+
*/
|
|
7385
|
+
interfaces?: {
|
|
7386
|
+
[k: string]: {
|
|
7387
|
+
integrationId: string;
|
|
7388
|
+
};
|
|
7389
|
+
};
|
|
7331
7390
|
/**
|
|
7332
7391
|
* ID of the [Plugin](#schema_plugin)
|
|
7333
7392
|
*/
|
|
@@ -7679,7 +7738,7 @@ interface GetBotAnalyticsResponse {
|
|
|
7679
7738
|
*/
|
|
7680
7739
|
startDateTimeUtc: string;
|
|
7681
7740
|
/**
|
|
7682
|
-
* ISO 8601 date string of the end (
|
|
7741
|
+
* ISO 8601 date string of the end (inclusive) of the period
|
|
7683
7742
|
*/
|
|
7684
7743
|
endDateTimeUtc: string;
|
|
7685
7744
|
returningUsers: number;
|
|
@@ -7735,6 +7794,50 @@ interface GetBotAnalyticsResponse {
|
|
|
7735
7794
|
}[];
|
|
7736
7795
|
}
|
|
7737
7796
|
|
|
7797
|
+
interface ListActionRunsRequestHeaders {
|
|
7798
|
+
}
|
|
7799
|
+
interface ListActionRunsRequestQuery {
|
|
7800
|
+
integrationName: string;
|
|
7801
|
+
timestampFrom?: string;
|
|
7802
|
+
timestampUntil?: string;
|
|
7803
|
+
nextToken?: string;
|
|
7804
|
+
}
|
|
7805
|
+
interface ListActionRunsRequestParams {
|
|
7806
|
+
id: string;
|
|
7807
|
+
}
|
|
7808
|
+
interface ListActionRunsRequestBody {
|
|
7809
|
+
}
|
|
7810
|
+
type ListActionRunsInput = ListActionRunsRequestBody & ListActionRunsRequestHeaders & ListActionRunsRequestQuery & ListActionRunsRequestParams;
|
|
7811
|
+
interface ListActionRunsResponse {
|
|
7812
|
+
data: {
|
|
7813
|
+
/**
|
|
7814
|
+
* ISO 8601 timestamp of the action run
|
|
7815
|
+
*/
|
|
7816
|
+
timestamp: string;
|
|
7817
|
+
integrationName?: string;
|
|
7818
|
+
actionType: string;
|
|
7819
|
+
/**
|
|
7820
|
+
* Input of the action
|
|
7821
|
+
*/
|
|
7822
|
+
input: {
|
|
7823
|
+
[k: string]: any;
|
|
7824
|
+
};
|
|
7825
|
+
/**
|
|
7826
|
+
* Output of the action
|
|
7827
|
+
*/
|
|
7828
|
+
output: {
|
|
7829
|
+
[k: string]: any;
|
|
7830
|
+
} | null;
|
|
7831
|
+
status: "SUCCESS" | "FAILURE";
|
|
7832
|
+
durationMs: number;
|
|
7833
|
+
cached: boolean;
|
|
7834
|
+
errorMessage?: string | null;
|
|
7835
|
+
}[];
|
|
7836
|
+
meta: {
|
|
7837
|
+
nextToken?: string;
|
|
7838
|
+
};
|
|
7839
|
+
}
|
|
7840
|
+
|
|
7738
7841
|
interface GetBotIssueRequestHeaders {
|
|
7739
7842
|
}
|
|
7740
7843
|
interface GetBotIssueRequestQuery {
|
|
@@ -7874,6 +7977,37 @@ interface GetBotVersionResponse {
|
|
|
7874
7977
|
url: string;
|
|
7875
7978
|
}
|
|
7876
7979
|
|
|
7980
|
+
interface GetBotJsonRequestHeaders {
|
|
7981
|
+
}
|
|
7982
|
+
interface GetBotJsonRequestQuery {
|
|
7983
|
+
}
|
|
7984
|
+
interface GetBotJsonRequestParams {
|
|
7985
|
+
id: string;
|
|
7986
|
+
}
|
|
7987
|
+
interface GetBotJsonRequestBody {
|
|
7988
|
+
}
|
|
7989
|
+
type GetBotJsonInput = GetBotJsonRequestBody & GetBotJsonRequestHeaders & GetBotJsonRequestQuery & GetBotJsonRequestParams;
|
|
7990
|
+
interface GetBotJsonResponse {
|
|
7991
|
+
[k: string]: any;
|
|
7992
|
+
}
|
|
7993
|
+
|
|
7994
|
+
interface PublishFromBotJsonRequestHeaders {
|
|
7995
|
+
}
|
|
7996
|
+
interface PublishFromBotJsonRequestQuery {
|
|
7997
|
+
}
|
|
7998
|
+
interface PublishFromBotJsonRequestParams {
|
|
7999
|
+
id: string;
|
|
8000
|
+
}
|
|
8001
|
+
interface PublishFromBotJsonRequestBody {
|
|
8002
|
+
botJson: {
|
|
8003
|
+
[k: string]: any;
|
|
8004
|
+
};
|
|
8005
|
+
}
|
|
8006
|
+
type PublishFromBotJsonInput = PublishFromBotJsonRequestBody & PublishFromBotJsonRequestHeaders & PublishFromBotJsonRequestQuery & PublishFromBotJsonRequestParams;
|
|
8007
|
+
interface PublishFromBotJsonResponse {
|
|
8008
|
+
[k: string]: any;
|
|
8009
|
+
}
|
|
8010
|
+
|
|
7877
8011
|
interface CreateBotVersionRequestHeaders {
|
|
7878
8012
|
}
|
|
7879
8013
|
interface CreateBotVersionRequestQuery {
|
|
@@ -8989,6 +9123,10 @@ interface CreateIntegrationRequestBody {
|
|
|
8989
9123
|
};
|
|
8990
9124
|
};
|
|
8991
9125
|
};
|
|
9126
|
+
/**
|
|
9127
|
+
* **EXPERIMENTAL** Whether the integration should be notified when the message status changes
|
|
9128
|
+
*/
|
|
9129
|
+
messageStatusChangeNotificationsEnabled?: boolean;
|
|
8992
9130
|
/**
|
|
8993
9131
|
* Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
|
|
8994
9132
|
*/
|
|
@@ -9705,6 +9843,10 @@ interface ValidateIntegrationCreationRequestBody {
|
|
|
9705
9843
|
};
|
|
9706
9844
|
};
|
|
9707
9845
|
};
|
|
9846
|
+
/**
|
|
9847
|
+
* **EXPERIMENTAL** Whether the integration should be notified when the message status changes
|
|
9848
|
+
*/
|
|
9849
|
+
messageStatusChangeNotificationsEnabled?: boolean;
|
|
9708
9850
|
/**
|
|
9709
9851
|
* Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
|
|
9710
9852
|
*/
|
|
@@ -9805,6 +9947,10 @@ interface UpdateIntegrationRequestBody {
|
|
|
9805
9947
|
};
|
|
9806
9948
|
} | null;
|
|
9807
9949
|
};
|
|
9950
|
+
/**
|
|
9951
|
+
* **EXPERIMENTAL** Whether the integration should be notified when the message status changes
|
|
9952
|
+
*/
|
|
9953
|
+
messageStatusChangeNotificationsEnabled?: boolean;
|
|
9808
9954
|
channels?: {
|
|
9809
9955
|
[k: string]: {
|
|
9810
9956
|
/**
|
|
@@ -10022,10 +10168,6 @@ interface UpdateIntegrationRequestBody {
|
|
|
10022
10168
|
};
|
|
10023
10169
|
} | null;
|
|
10024
10170
|
};
|
|
10025
|
-
sandbox?: {
|
|
10026
|
-
identifierExtractScript?: string | null;
|
|
10027
|
-
messageExtractScript?: string | null;
|
|
10028
|
-
};
|
|
10029
10171
|
/**
|
|
10030
10172
|
* Optional attributes. Set attributes to null to remove them
|
|
10031
10173
|
*/
|
|
@@ -10508,6 +10650,10 @@ interface ValidateIntegrationUpdateRequestBody {
|
|
|
10508
10650
|
};
|
|
10509
10651
|
} | null;
|
|
10510
10652
|
};
|
|
10653
|
+
/**
|
|
10654
|
+
* **EXPERIMENTAL** Whether the integration should be notified when the message status changes
|
|
10655
|
+
*/
|
|
10656
|
+
messageStatusChangeNotificationsEnabled?: boolean;
|
|
10511
10657
|
channels?: {
|
|
10512
10658
|
[k: string]: {
|
|
10513
10659
|
/**
|
|
@@ -10725,10 +10871,6 @@ interface ValidateIntegrationUpdateRequestBody {
|
|
|
10725
10871
|
};
|
|
10726
10872
|
} | null;
|
|
10727
10873
|
};
|
|
10728
|
-
sandbox?: {
|
|
10729
|
-
identifierExtractScript?: string | null;
|
|
10730
|
-
messageExtractScript?: string | null;
|
|
10731
|
-
};
|
|
10732
10874
|
/**
|
|
10733
10875
|
* Optional attributes. Set attributes to null to remove them
|
|
10734
10876
|
*/
|
|
@@ -14172,8 +14314,8 @@ interface ListUsageActivityDailyResponse {
|
|
|
14172
14314
|
value: number;
|
|
14173
14315
|
metadata?: {
|
|
14174
14316
|
botId: string;
|
|
14175
|
-
type: "IntegrationAction" | "FileIndexing";
|
|
14176
|
-
subtype
|
|
14317
|
+
type: "IntegrationAction" | "FileIndexing" | "BingSearch" | "WebSearch";
|
|
14318
|
+
subtype?: string;
|
|
14177
14319
|
source?: string;
|
|
14178
14320
|
};
|
|
14179
14321
|
}[];
|
|
@@ -14267,7 +14409,7 @@ interface UpsertFileRequestBody {
|
|
|
14267
14409
|
*/
|
|
14268
14410
|
size: number;
|
|
14269
14411
|
/**
|
|
14270
|
-
* Set to a value of 'true' to index the file in vector storage. Only certain file formats are currently supported for indexing. Note that if a file is indexed, it will count towards both the Vector DB Storage quota and the File Storage quota of the workspace.
|
|
14412
|
+
* Set to a value of 'true' to index the file in vector storage. Only certain file formats are currently supported for indexing. Files larger than 95 MB cannot be indexed. Note that if a file is indexed, it will count towards both the Vector DB Storage quota and the File Storage quota of the workspace.
|
|
14271
14413
|
*/
|
|
14272
14414
|
index?: boolean;
|
|
14273
14415
|
indexing?: {
|
|
@@ -14474,6 +14616,17 @@ interface UpsertFileResponse {
|
|
|
14474
14616
|
* File expiry timestamp in ISO 8601 format
|
|
14475
14617
|
*/
|
|
14476
14618
|
expiresAt?: string;
|
|
14619
|
+
owner: {
|
|
14620
|
+
type: "bot" | "integration" | "user";
|
|
14621
|
+
/**
|
|
14622
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
14623
|
+
*/
|
|
14624
|
+
id?: string;
|
|
14625
|
+
/**
|
|
14626
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
14627
|
+
*/
|
|
14628
|
+
name?: string;
|
|
14629
|
+
};
|
|
14477
14630
|
/**
|
|
14478
14631
|
* URL to upload the file content. File content needs to be sent to this URL via a PUT request.
|
|
14479
14632
|
*/
|
|
@@ -14585,6 +14738,17 @@ interface ListFilesResponse {
|
|
|
14585
14738
|
* File expiry timestamp in ISO 8601 format
|
|
14586
14739
|
*/
|
|
14587
14740
|
expiresAt?: string;
|
|
14741
|
+
owner: {
|
|
14742
|
+
type: "bot" | "integration" | "user";
|
|
14743
|
+
/**
|
|
14744
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
14745
|
+
*/
|
|
14746
|
+
id?: string;
|
|
14747
|
+
/**
|
|
14748
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
14749
|
+
*/
|
|
14750
|
+
name?: string;
|
|
14751
|
+
};
|
|
14588
14752
|
}[];
|
|
14589
14753
|
meta: {
|
|
14590
14754
|
/**
|
|
@@ -14678,6 +14842,17 @@ interface GetFileResponse {
|
|
|
14678
14842
|
* File expiry timestamp in ISO 8601 format
|
|
14679
14843
|
*/
|
|
14680
14844
|
expiresAt?: string;
|
|
14845
|
+
owner: {
|
|
14846
|
+
type: "bot" | "integration" | "user";
|
|
14847
|
+
/**
|
|
14848
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
14849
|
+
*/
|
|
14850
|
+
id?: string;
|
|
14851
|
+
/**
|
|
14852
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
14853
|
+
*/
|
|
14854
|
+
name?: string;
|
|
14855
|
+
};
|
|
14681
14856
|
};
|
|
14682
14857
|
}
|
|
14683
14858
|
|
|
@@ -14785,6 +14960,17 @@ interface UpdateFileMetadataResponse {
|
|
|
14785
14960
|
* File expiry timestamp in ISO 8601 format
|
|
14786
14961
|
*/
|
|
14787
14962
|
expiresAt?: string;
|
|
14963
|
+
owner: {
|
|
14964
|
+
type: "bot" | "integration" | "user";
|
|
14965
|
+
/**
|
|
14966
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
14967
|
+
*/
|
|
14968
|
+
id?: string;
|
|
14969
|
+
/**
|
|
14970
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
14971
|
+
*/
|
|
14972
|
+
name?: string;
|
|
14973
|
+
};
|
|
14788
14974
|
};
|
|
14789
14975
|
}
|
|
14790
14976
|
|
|
@@ -14880,6 +15066,17 @@ interface CopyFileResponse {
|
|
|
14880
15066
|
* File expiry timestamp in ISO 8601 format
|
|
14881
15067
|
*/
|
|
14882
15068
|
expiresAt?: string;
|
|
15069
|
+
owner: {
|
|
15070
|
+
type: "bot" | "integration" | "user";
|
|
15071
|
+
/**
|
|
15072
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
15073
|
+
*/
|
|
15074
|
+
id?: string;
|
|
15075
|
+
/**
|
|
15076
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
15077
|
+
*/
|
|
15078
|
+
name?: string;
|
|
15079
|
+
};
|
|
14883
15080
|
};
|
|
14884
15081
|
}
|
|
14885
15082
|
|
|
@@ -16881,6 +17078,7 @@ declare class Client$1 {
|
|
|
16881
17078
|
readonly runVrl: (input: RunVrlInput) => Promise<RunVrlResponse>;
|
|
16882
17079
|
readonly getAccount: (input: GetAccountInput) => Promise<GetAccountResponse>;
|
|
16883
17080
|
readonly updateAccount: (input: UpdateAccountInput) => Promise<UpdateAccountResponse>;
|
|
17081
|
+
readonly deleteAccount: (input: DeleteAccountInput) => Promise<DeleteAccountResponse>;
|
|
16884
17082
|
readonly listPersonalAccessTokens: (input: ListPersonalAccessTokensInput) => Promise<ListPersonalAccessTokensResponse>;
|
|
16885
17083
|
readonly createPersonalAccessToken: (input: CreatePersonalAccessTokenInput) => Promise<CreatePersonalAccessTokenResponse>;
|
|
16886
17084
|
readonly deletePersonalAccessToken: (input: DeletePersonalAccessTokenInput) => Promise<DeletePersonalAccessTokenResponse>;
|
|
@@ -16905,12 +17103,15 @@ declare class Client$1 {
|
|
|
16905
17103
|
readonly getBotLogs: (input: GetBotLogsInput) => Promise<GetBotLogsResponse>;
|
|
16906
17104
|
readonly getBotWebchat: (input: GetBotWebchatInput) => Promise<GetBotWebchatResponse>;
|
|
16907
17105
|
readonly getBotAnalytics: (input: GetBotAnalyticsInput) => Promise<GetBotAnalyticsResponse>;
|
|
17106
|
+
readonly listActionRuns: (input: ListActionRunsInput) => Promise<ListActionRunsResponse>;
|
|
16908
17107
|
readonly getBotIssue: (input: GetBotIssueInput) => Promise<GetBotIssueResponse>;
|
|
16909
17108
|
readonly listBotIssues: (input: ListBotIssuesInput) => Promise<ListBotIssuesResponse>;
|
|
16910
17109
|
readonly deleteBotIssue: (input: DeleteBotIssueInput) => Promise<DeleteBotIssueResponse>;
|
|
16911
17110
|
readonly listBotIssueEvents: (input: ListBotIssueEventsInput) => Promise<ListBotIssueEventsResponse>;
|
|
16912
17111
|
readonly listBotVersions: (input: ListBotVersionsInput) => Promise<ListBotVersionsResponse>;
|
|
16913
17112
|
readonly getBotVersion: (input: GetBotVersionInput) => Promise<GetBotVersionResponse>;
|
|
17113
|
+
readonly getBotJson: (input: GetBotJsonInput) => Promise<GetBotJsonResponse>;
|
|
17114
|
+
readonly publishFromBotJson: (input: PublishFromBotJsonInput) => Promise<PublishFromBotJsonResponse>;
|
|
16914
17115
|
readonly createBotVersion: (input: CreateBotVersionInput) => Promise<CreateBotVersionResponse>;
|
|
16915
17116
|
readonly deployBotVersion: (input: DeployBotVersionInput) => Promise<DeployBotVersionResponse>;
|
|
16916
17117
|
readonly createIntegrationShareableId: (input: CreateIntegrationShareableIdInput) => Promise<CreateIntegrationShareableIdResponse>;
|
|
@@ -17275,6 +17476,51 @@ declare class Client extends Client$1 implements IClient {
|
|
|
17275
17476
|
readmeUrl: string;
|
|
17276
17477
|
public: boolean;
|
|
17277
17478
|
}>;
|
|
17479
|
+
publicInterfaces: (props: {
|
|
17480
|
+
name?: string | undefined;
|
|
17481
|
+
version?: string | undefined;
|
|
17482
|
+
}) => AsyncCollection<{
|
|
17483
|
+
id: string;
|
|
17484
|
+
createdAt: string;
|
|
17485
|
+
updatedAt: string;
|
|
17486
|
+
name: string;
|
|
17487
|
+
version: string;
|
|
17488
|
+
title: string;
|
|
17489
|
+
description: string;
|
|
17490
|
+
iconUrl: string;
|
|
17491
|
+
readmeUrl: string;
|
|
17492
|
+
public: boolean;
|
|
17493
|
+
}>;
|
|
17494
|
+
plugins: (props: {
|
|
17495
|
+
name?: string | undefined;
|
|
17496
|
+
version?: string | undefined;
|
|
17497
|
+
}) => AsyncCollection<{
|
|
17498
|
+
id: string;
|
|
17499
|
+
createdAt: string;
|
|
17500
|
+
updatedAt: string;
|
|
17501
|
+
name: string;
|
|
17502
|
+
version: string;
|
|
17503
|
+
title: string;
|
|
17504
|
+
description: string;
|
|
17505
|
+
iconUrl: string;
|
|
17506
|
+
readmeUrl: string;
|
|
17507
|
+
public: boolean;
|
|
17508
|
+
}>;
|
|
17509
|
+
publicPlugins: (props: {
|
|
17510
|
+
name?: string | undefined;
|
|
17511
|
+
version?: string | undefined;
|
|
17512
|
+
}) => AsyncCollection<{
|
|
17513
|
+
id: string;
|
|
17514
|
+
createdAt: string;
|
|
17515
|
+
updatedAt: string;
|
|
17516
|
+
name: string;
|
|
17517
|
+
version: string;
|
|
17518
|
+
title: string;
|
|
17519
|
+
description: string;
|
|
17520
|
+
iconUrl: string;
|
|
17521
|
+
readmeUrl: string;
|
|
17522
|
+
public: boolean;
|
|
17523
|
+
}>;
|
|
17278
17524
|
activities: (props: {
|
|
17279
17525
|
botId: string;
|
|
17280
17526
|
taskId: string;
|
|
@@ -17313,6 +17559,11 @@ declare class Client extends Client$1 implements IClient {
|
|
|
17313
17559
|
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
17314
17560
|
failedStatusReason?: string;
|
|
17315
17561
|
expiresAt?: string;
|
|
17562
|
+
owner: {
|
|
17563
|
+
type: "bot" | "integration" | "user";
|
|
17564
|
+
id?: string;
|
|
17565
|
+
name?: string;
|
|
17566
|
+
};
|
|
17316
17567
|
}>;
|
|
17317
17568
|
filePassages: (props: {
|
|
17318
17569
|
id: string;
|
|
@@ -17352,8 +17603,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
17352
17603
|
value: number;
|
|
17353
17604
|
metadata?: {
|
|
17354
17605
|
botId: string;
|
|
17355
|
-
type: "IntegrationAction" | "FileIndexing";
|
|
17356
|
-
subtype
|
|
17606
|
+
type: "IntegrationAction" | "FileIndexing" | "BingSearch" | "WebSearch";
|
|
17607
|
+
subtype?: string;
|
|
17357
17608
|
source?: string;
|
|
17358
17609
|
};
|
|
17359
17610
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/cognitive",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"description": "Wrapper around the Botpress Client to call LLMs",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@botpress/client": "workspace:*",
|
|
32
32
|
"@botpress/common": "workspace:*",
|
|
33
|
-
"@bpinternal/zui": "0.
|
|
33
|
+
"@bpinternal/zui": "^1.0.0",
|
|
34
34
|
"@size-limit/file": "^11.1.6",
|
|
35
35
|
"@types/axios": "^0.14.4",
|
|
36
36
|
"@types/debug": "^4.1.12",
|