@compilot/js-sdk 2.0.40-dev → 2.0.41-dev

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.
@@ -1304,6 +1304,8 @@ var getEnv = function getEnv() {
1304
1304
  * Create an API client for the ComPilot API
1305
1305
  *
1306
1306
  * @param config.apiKey The API key to use for the client
1307
+ * @param config.webhookSecret The webhook secret to use for the client
1308
+ *
1307
1309
  * @returns The API client
1308
1310
  */
1309
1311
  var createSdk = function createSdk(_ref) {
@@ -1304,6 +1304,8 @@ var getEnv = function getEnv() {
1304
1304
  * Create an API client for the ComPilot API
1305
1305
  *
1306
1306
  * @param config.apiKey The API key to use for the client
1307
+ * @param config.webhookSecret The webhook secret to use for the client
1308
+ *
1307
1309
  * @returns The API client
1308
1310
  */
1309
1311
  var createSdk = function createSdk(_ref) {
@@ -1302,6 +1302,8 @@ var getEnv = function getEnv() {
1302
1302
  * Create an API client for the ComPilot API
1303
1303
  *
1304
1304
  * @param config.apiKey The API key to use for the client
1305
+ * @param config.webhookSecret The webhook secret to use for the client
1306
+ *
1305
1307
  * @returns The API client
1306
1308
  */
1307
1309
  var createSdk = function createSdk(_ref) {
@@ -16,6 +16,6 @@ export type ValidateWebhookEventFn = (params: {
16
16
  }) => WebhookEventPayload;
17
17
  export declare const validateWebhookEventFactory: ({ logger, webhookSecret, }: {
18
18
  logger: Logger;
19
- webhookSecret: string;
19
+ webhookSecret?: string;
20
20
  }) => ValidateWebhookEventFn;
21
21
  //# sourceMappingURL=validateWebhookEvent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validateWebhookEvent.d.ts","sourceRoot":"../../../../src/actions","sources":["validateWebhookEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAO/C;;;;;;;;;GASG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,MAAM,EAAE;IAC5C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,KAAK,mBAAmB,CAAC;AAE1B,eAAO,MAAM,2BAA2B,+BAGrC;IACD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACvB,KAAG,sBAsCH,CAAC"}
1
+ {"version":3,"file":"validateWebhookEvent.d.ts","sourceRoot":"../../../../src/actions","sources":["validateWebhookEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAO/C;;;;;;;;;GASG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,MAAM,EAAE;IAC5C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,KAAK,mBAAmB,CAAC;AAE1B,eAAO,MAAM,2BAA2B,+BAGrC;IACD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,KAAG,sBAsCH,CAAC"}
@@ -2,11 +2,13 @@
2
2
  * Create an API client for the ComPilot API
3
3
  *
4
4
  * @param config.apiKey The API key to use for the client
5
+ * @param config.webhookSecret The webhook secret to use for the client
6
+ *
5
7
  * @returns The API client
6
8
  */
7
9
  export declare const createSdk: ({ apiKey, webhookSecret, }: {
8
10
  apiKey: string;
9
- webhookSecret: string;
11
+ webhookSecret?: string;
10
12
  }) => {
11
13
  createWeb3Challenge: import("../actions/createWeb3Challenge.js").CreateWeb3ChallengeFn;
12
14
  createSession: import("../actions/createWeb2Session.js").CreateWeb2SessionFn;
@@ -1 +1 @@
1
- {"version":3,"file":"createSdk.d.ts","sourceRoot":"../../../../src/configuration","sources":["createSdk.ts"],"names":[],"mappings":"AAgBA;;;;;GAKG;AACH,eAAO,MAAM,SAAS,+BAGnB;IACD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACvB;;;;;;;;;;CA0CA,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"createSdk.d.ts","sourceRoot":"../../../../src/configuration","sources":["createSdk.ts"],"names":[],"mappings":"AAgBA;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,+BAGnB;IACD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;;;;;;;;;;CA0CA,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilot/js-sdk",
3
- "version": "2.0.40",
3
+ "version": "2.0.41",
4
4
  "description": "ComPilot JS SDK",
5
5
  "keywords": [],
6
6
  "license": "ISC",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilot/js-sdk",
3
- "version": "2.0.40-dev",
3
+ "version": "2.0.41-dev",
4
4
  "description": "ComPilot JS SDK",
5
5
  "keywords": [],
6
6
  "license": "ISC",