@botpress/cognitive 0.3.12 → 0.3.13

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.
@@ -1,19 +1,19 @@
1
1
 
2
- > @botpress/cognitive@0.3.12 build /home/runner/work/botpress/botpress/packages/cognitive
2
+ > @botpress/cognitive@0.3.13 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.3.12 build:type /home/runner/work/botpress/botpress/packages/cognitive
6
+ > @botpress/cognitive@0.3.13 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 6815ms
14
- DTS dist/index.d.ts 665.56 KB
13
+ DTS ⚡️ Build success in 7148ms
14
+ DTS dist/index.d.ts 669.01 KB
15
15
 
16
- > @botpress/cognitive@0.3.12 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
16
+ > @botpress/cognitive@0.3.13 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
17
17
  > ts-node -T ./build.ts --neutral
18
18
 
19
19
  Done
package/dist/index.d.ts CHANGED
@@ -4805,6 +4805,10 @@ interface GetPublicIntegrationByIdResponse {
4805
4805
  * URL of the [Integration](#schema_integration)
4806
4806
  */
4807
4807
  url: string;
4808
+ /**
4809
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
4810
+ */
4811
+ signingSecret: string;
4808
4812
  /**
4809
4813
  * Name of the [Integration](#schema_integration)
4810
4814
  */
@@ -5221,6 +5225,10 @@ interface GetPublicIntegrationResponse {
5221
5225
  * URL of the [Integration](#schema_integration)
5222
5226
  */
5223
5227
  url: string;
5228
+ /**
5229
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
5230
+ */
5231
+ signingSecret: string;
5224
5232
  /**
5225
5233
  * Name of the [Integration](#schema_integration)
5226
5234
  */
@@ -6960,7 +6968,7 @@ interface CreateBotResponse {
6960
6968
  */
6961
6969
  updatedAt: string;
6962
6970
  /**
6963
- * Signing secret of the [Bot](#schema_bot)
6971
+ * Signing secret of the [Bot](#schema_bot). This field is only visible when creating a new bot or when rotating the signing secret of an existing bot.
6964
6972
  */
6965
6973
  signingSecret: string;
6966
6974
  /**
@@ -7374,9 +7382,9 @@ interface UpdateBotRequestBody {
7374
7382
  */
7375
7383
  url?: string | null;
7376
7384
  /**
7377
- * Type of the [Bot](#schema_bot) authentication (`iam`)
7385
+ * Type of the [Bot](#schema_bot) authentication (`iam` or `hmac-sha256`)
7378
7386
  */
7379
- authentication?: "iam";
7387
+ authentication?: "iam" | "hmac-sha256";
7380
7388
  configuration?: {
7381
7389
  /**
7382
7390
  * Configuration data
@@ -7640,7 +7648,7 @@ interface UpdateBotResponse {
7640
7648
  */
7641
7649
  updatedAt: string;
7642
7650
  /**
7643
- * Signing secret of the [Bot](#schema_bot)
7651
+ * Signing secret of the [Bot](#schema_bot). This field is only visible when creating a new bot or when rotating the signing secret of an existing bot.
7644
7652
  */
7645
7653
  signingSecret: string;
7646
7654
  /**
@@ -8041,6 +8049,23 @@ interface UpdateBotResponse {
8041
8049
  };
8042
8050
  }
8043
8051
 
8052
+ interface RotateBotSigningSecretsRequestHeaders {
8053
+ }
8054
+ interface RotateBotSigningSecretsRequestQuery {
8055
+ }
8056
+ interface RotateBotSigningSecretsRequestParams {
8057
+ id: string;
8058
+ }
8059
+ interface RotateBotSigningSecretsRequestBody {
8060
+ }
8061
+ type RotateBotSigningSecretsInput = RotateBotSigningSecretsRequestBody & RotateBotSigningSecretsRequestHeaders & RotateBotSigningSecretsRequestQuery & RotateBotSigningSecretsRequestParams;
8062
+ interface RotateBotSigningSecretsResponse {
8063
+ /**
8064
+ * The new signing secret that can be used immediately. The old signing secret(s) will continue to work for 24 hours after this operation to allow for a smooth transition.
8065
+ */
8066
+ newSigningSecret: string;
8067
+ }
8068
+
8044
8069
  interface TransferBotRequestHeaders {
8045
8070
  }
8046
8071
  interface TransferBotRequestQuery {
@@ -8131,7 +8156,7 @@ interface GetBotResponse {
8131
8156
  */
8132
8157
  updatedAt: string;
8133
8158
  /**
8134
- * Signing secret of the [Bot](#schema_bot)
8159
+ * Signing secret of the [Bot](#schema_bot). This field is only visible when creating a new bot or when rotating the signing secret of an existing bot.
8135
8160
  */
8136
8161
  signingSecret: string;
8137
8162
  /**
@@ -10184,6 +10209,10 @@ interface CreateIntegrationResponse {
10184
10209
  * URL of the [Integration](#schema_integration)
10185
10210
  */
10186
10211
  url: string;
10212
+ /**
10213
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
10214
+ */
10215
+ signingSecret: string;
10187
10216
  /**
10188
10217
  * Name of the [Integration](#schema_integration)
10189
10218
  */
@@ -11264,6 +11293,10 @@ interface UpdateIntegrationResponse {
11264
11293
  * URL of the [Integration](#schema_integration)
11265
11294
  */
11266
11295
  url: string;
11296
+ /**
11297
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
11298
+ */
11299
+ signingSecret: string;
11267
11300
  /**
11268
11301
  * Name of the [Integration](#schema_integration)
11269
11302
  */
@@ -11615,6 +11648,23 @@ interface UpdateIntegrationResponse {
11615
11648
  };
11616
11649
  }
11617
11650
 
11651
+ interface RotateIntegrationSigningSecretsRequestHeaders {
11652
+ }
11653
+ interface RotateIntegrationSigningSecretsRequestQuery {
11654
+ }
11655
+ interface RotateIntegrationSigningSecretsRequestParams {
11656
+ id: string;
11657
+ }
11658
+ interface RotateIntegrationSigningSecretsRequestBody {
11659
+ }
11660
+ type RotateIntegrationSigningSecretsInput = RotateIntegrationSigningSecretsRequestBody & RotateIntegrationSigningSecretsRequestHeaders & RotateIntegrationSigningSecretsRequestQuery & RotateIntegrationSigningSecretsRequestParams;
11661
+ interface RotateIntegrationSigningSecretsResponse {
11662
+ /**
11663
+ * The new signing secret that can be used immediately. The old signing secret(s) will continue to work for 24 hours after this operation to allow for a smooth transition.
11664
+ */
11665
+ newSigningSecret: string;
11666
+ }
11667
+
11618
11668
  interface ValidateIntegrationUpdateRequestHeaders {
11619
11669
  }
11620
11670
  interface ValidateIntegrationUpdateRequestQuery {
@@ -12119,6 +12169,10 @@ interface GetIntegrationResponse {
12119
12169
  * URL of the [Integration](#schema_integration)
12120
12170
  */
12121
12171
  url: string;
12172
+ /**
12173
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
12174
+ */
12175
+ signingSecret: string;
12122
12176
  /**
12123
12177
  * Name of the [Integration](#schema_integration)
12124
12178
  */
@@ -12555,6 +12609,10 @@ interface GetIntegrationByNameResponse {
12555
12609
  * URL of the [Integration](#schema_integration)
12556
12610
  */
12557
12611
  url: string;
12612
+ /**
12613
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
12614
+ */
12615
+ signingSecret: string;
12558
12616
  /**
12559
12617
  * Name of the [Integration](#schema_integration)
12560
12618
  */
@@ -18640,6 +18698,7 @@ declare class Client$1 {
18640
18698
  readonly getPublicInterface: (input: GetPublicInterfaceInput) => Promise<GetPublicInterfaceResponse>;
18641
18699
  readonly createBot: (input: CreateBotInput) => Promise<CreateBotResponse>;
18642
18700
  readonly updateBot: (input: UpdateBotInput) => Promise<UpdateBotResponse>;
18701
+ readonly rotateBotSigningSecrets: (input: RotateBotSigningSecretsInput) => Promise<RotateBotSigningSecretsResponse>;
18643
18702
  readonly transferBot: (input: TransferBotInput) => Promise<TransferBotResponse>;
18644
18703
  readonly listBots: (input: ListBotsInput) => Promise<ListBotsResponse>;
18645
18704
  readonly getBot: (input: GetBotInput) => Promise<GetBotResponse>;
@@ -18697,6 +18756,7 @@ declare class Client$1 {
18697
18756
  readonly createIntegration: (input: CreateIntegrationInput) => Promise<CreateIntegrationResponse>;
18698
18757
  readonly validateIntegrationCreation: (input: ValidateIntegrationCreationInput) => Promise<ValidateIntegrationCreationResponse>;
18699
18758
  readonly updateIntegration: (input: UpdateIntegrationInput) => Promise<UpdateIntegrationResponse>;
18759
+ readonly rotateIntegrationSigningSecrets: (input: RotateIntegrationSigningSecretsInput) => Promise<RotateIntegrationSigningSecretsResponse>;
18700
18760
  readonly validateIntegrationUpdate: (input: ValidateIntegrationUpdateInput) => Promise<ValidateIntegrationUpdateResponse>;
18701
18761
  readonly listIntegrations: (input: ListIntegrationsInput) => Promise<ListIntegrationsResponse>;
18702
18762
  readonly getIntegration: (input: GetIntegrationInput) => Promise<GetIntegrationResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/cognitive",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "description": "Wrapper around the Botpress Client to call LLMs",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",