@compilot/js-sdk 2.0.46-dev → 2.1.3-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.
- package/dist/compilot-js-sdk.cjs.dev.js +6 -2
- package/dist/compilot-js-sdk.cjs.prod.js +6 -2
- package/dist/compilot-js-sdk.esm.js +1 -1
- package/dist/declarations/src/actions/createWeb3Challenge.d.ts +2 -2
- package/dist/declarations/src/actions/createWeb3Challenge.d.ts.map +1 -1
- package/dist/declarations/src/actions/verifyWeb3Challenge.d.ts +2 -2
- package/dist/declarations/src/actions/verifyWeb3Challenge.d.ts.map +1 -1
- package/dist/declarations/src/configuration/createSdk.d.ts +1 -1
- package/dist/declarations/src/configuration/createSdk.d.ts.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +5 -5
|
@@ -1448,9 +1448,13 @@ var createSdk = function createSdk(_ref) {
|
|
|
1448
1448
|
};
|
|
1449
1449
|
};
|
|
1450
1450
|
|
|
1451
|
-
Object.defineProperty(exports, '
|
|
1451
|
+
Object.defineProperty(exports, 'GenerateWalletChallengeRequest', {
|
|
1452
1452
|
enumerable: true,
|
|
1453
|
-
get: function () { return identitySchemas.
|
|
1453
|
+
get: function () { return identitySchemas.GenerateWalletChallengeRequest; }
|
|
1454
|
+
});
|
|
1455
|
+
Object.defineProperty(exports, 'VerifyWalletChallengeRequest', {
|
|
1456
|
+
enumerable: true,
|
|
1457
|
+
get: function () { return identitySchemas.VerifyWalletChallengeRequest; }
|
|
1454
1458
|
});
|
|
1455
1459
|
Object.defineProperty(exports, 'AllNexeraEventTypes', {
|
|
1456
1460
|
enumerable: true,
|
|
@@ -1448,9 +1448,13 @@ var createSdk = function createSdk(_ref) {
|
|
|
1448
1448
|
};
|
|
1449
1449
|
};
|
|
1450
1450
|
|
|
1451
|
-
Object.defineProperty(exports, '
|
|
1451
|
+
Object.defineProperty(exports, 'GenerateWalletChallengeRequest', {
|
|
1452
1452
|
enumerable: true,
|
|
1453
|
-
get: function () { return identitySchemas.
|
|
1453
|
+
get: function () { return identitySchemas.GenerateWalletChallengeRequest; }
|
|
1454
|
+
});
|
|
1455
|
+
Object.defineProperty(exports, 'VerifyWalletChallengeRequest', {
|
|
1456
|
+
enumerable: true,
|
|
1457
|
+
get: function () { return identitySchemas.VerifyWalletChallengeRequest; }
|
|
1454
1458
|
});
|
|
1455
1459
|
Object.defineProperty(exports, 'AllNexeraEventTypes', {
|
|
1456
1460
|
enumerable: true,
|
|
@@ -2,7 +2,7 @@ import { createNexeraAPIClient } from '@nexeraid/api-client';
|
|
|
2
2
|
import { createIdentityApiClient } from '@nexeraid/identity-api-client';
|
|
3
3
|
import { createLogger } from '@nexeraid/logger';
|
|
4
4
|
import { ExternalCustomerId, AdditionalCustomerInformationParams, ExtendedTxAuthDataSignatureResponse, ExtendedTezosTxAuthDataSignatureResponse } from '@nexeraid/identity-schemas';
|
|
5
|
-
export {
|
|
5
|
+
export { GenerateWalletChallengeRequest, VerifyWalletChallengeRequest } from '@nexeraid/identity-schemas';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { WebhookEventPayload } from '@nexeraid/identity-schemas/webhooks';
|
|
8
8
|
export { AllNexeraEventTypes } from '@nexeraid/identity-schemas/webhooks';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IdentityApiClient } from "@nexeraid/identity-api-client";
|
|
2
|
-
import type { ChallengeResponse,
|
|
2
|
+
import type { ChallengeResponse, GenerateWalletChallengeRequest } from "@nexeraid/identity-schemas";
|
|
3
3
|
/**
|
|
4
4
|
* Create a challenge for a wallet. The web-sdk will use this to sign a message and prove ownership of a wallet.
|
|
5
5
|
*
|
|
@@ -56,7 +56,7 @@ import type { ChallengeResponse, WalletChallengeRequest } from "@nexeraid/identi
|
|
|
56
56
|
* }
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
|
-
export type CreateWeb3ChallengeFn = (params:
|
|
59
|
+
export type CreateWeb3ChallengeFn = (params: GenerateWalletChallengeRequest) => Promise<ChallengeResponse>;
|
|
60
60
|
export declare const createWeb3ChallengeFactory: (deps: {
|
|
61
61
|
identityApiClient: IdentityApiClient;
|
|
62
62
|
}) => CreateWeb3ChallengeFn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createWeb3Challenge.d.ts","sourceRoot":"../../../../src/actions","sources":["createWeb3Challenge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EACV,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"createWeb3Challenge.d.ts","sourceRoot":"../../../../src/actions","sources":["createWeb3Challenge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EACV,iBAAiB,EACjB,8BAA8B,EAC/B,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAClC,MAAM,EAAE,8BAA8B,KACnC,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEhC,eAAO,MAAM,0BAA0B,SAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE,KAAG,qBAMjD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IdentityApiClient } from "@nexeraid/identity-api-client";
|
|
2
|
-
import type { AuthSession,
|
|
2
|
+
import type { AuthSession, VerifyWalletChallengeRequest } from "@nexeraid/identity-schemas";
|
|
3
3
|
/**
|
|
4
4
|
* Verify a challenge for a wallet. The web-sdk can use this to verify a signed message and prove ownership of a wallet.
|
|
5
5
|
*
|
|
@@ -57,7 +57,7 @@ import type { AuthSession, VerifyChallengeParams } from "@nexeraid/identity-sche
|
|
|
57
57
|
* }
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
|
-
export type VerifyWeb3ChallengeFn = (params:
|
|
60
|
+
export type VerifyWeb3ChallengeFn = (params: VerifyWalletChallengeRequest) => Promise<AuthSession>;
|
|
61
61
|
export declare const verifyWeb3ChallengeFactory: (deps: {
|
|
62
62
|
identityApiClient: IdentityApiClient;
|
|
63
63
|
}) => VerifyWeb3ChallengeFn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifyWeb3Challenge.d.ts","sourceRoot":"../../../../src/actions","sources":["verifyWeb3Challenge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EACV,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"verifyWeb3Challenge.d.ts","sourceRoot":"../../../../src/actions","sources":["verifyWeb3Challenge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EACV,WAAW,EACX,4BAA4B,EAC7B,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAClC,MAAM,EAAE,4BAA4B,KACjC,OAAO,CAAC,WAAW,CAAC,CAAC;AAE1B,eAAO,MAAM,0BAA0B,SAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE,KAAG,qBAMjD,CAAC"}
|
|
@@ -21,5 +21,5 @@ export declare const createSdk: ({ apiKey, webhookSecret, }: {
|
|
|
21
21
|
getCustomerWallets: import("../actions/getCustomerWallets.js").GetCustomerWalletsFn;
|
|
22
22
|
validateWebhookEvent: import("../actions/validateWebhookEvent.js").ValidateWebhookEventFn;
|
|
23
23
|
};
|
|
24
|
-
export {
|
|
24
|
+
export { GenerateWalletChallengeRequest, VerifyWalletChallengeRequest, } from "@nexeraid/identity-schemas";
|
|
25
25
|
//# sourceMappingURL=createSdk.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSdk.d.ts","sourceRoot":"../../../../src/configuration","sources":["createSdk.ts"],"names":[],"mappings":"AAiBA;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,+BAGnB;IACD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;;;;;;;;;;;CA2CA,CAAC;AAEF,OAAO,
|
|
1
|
+
{"version":3,"file":"createSdk.d.ts","sourceRoot":"../../../../src/configuration","sources":["createSdk.ts"],"names":[],"mappings":"AAiBA;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,+BAGnB;IACD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;;;;;;;;;;;CA2CA,CAAC;AAEF,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,GAC7B,MAAM,4BAA4B,CAAC"}
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compilot/js-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.3-dev",
|
|
4
4
|
"description": "ComPilot JS SDK",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "ISC",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"pino": "^9.4.0",
|
|
28
28
|
"svix": "1.21.0",
|
|
29
29
|
"zod": "^3.23.8",
|
|
30
|
-
"@nexeraid/api-client": "1.
|
|
31
|
-
"@nexeraid/identity-api-client": "1.
|
|
32
|
-
"@nexeraid/identity-schemas": "1.
|
|
33
|
-
"@nexeraid/logger": "
|
|
30
|
+
"@nexeraid/api-client": "2.1.2-dev",
|
|
31
|
+
"@nexeraid/identity-api-client": "2.1.2-dev",
|
|
32
|
+
"@nexeraid/identity-schemas": "2.1.3-dev",
|
|
33
|
+
"@nexeraid/logger": "2.1.2-dev"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"prettier": "^3.3.3",
|