@compilot/js-sdk 2.15.2-staging → 2.15.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 +15 -13
- package/dist/compilot-js-sdk.cjs.prod.js +15 -13
- package/dist/compilot-js-sdk.esm.js +15 -13
- package/dist/declarations/src/actions/getTxAuthDataSignature.d.ts +1 -1
- package/dist/declarations/src/actions/getTxAuthDataSignature.d.ts.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +5 -5
|
@@ -1017,7 +1017,7 @@ function _objectSpread2(e) {
|
|
|
1017
1017
|
* functionName: "mintNFTGated",
|
|
1018
1018
|
* args: [account.address],
|
|
1019
1019
|
* userAddress: account.address,
|
|
1020
|
-
* chainId: EvmChainId.parse(chainId),
|
|
1020
|
+
* chainId: EvmChainId.parse(chainId.toString()),
|
|
1021
1021
|
* });
|
|
1022
1022
|
*
|
|
1023
1023
|
* if (!signatureResponse.isAuthorized) {
|
|
@@ -1052,21 +1052,22 @@ var getTxAuthDataSignatureFactory = function getTxAuthDataSignatureFactory(deps)
|
|
|
1052
1052
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1053
1053
|
while (1) switch (_context.prev = _context.next) {
|
|
1054
1054
|
case 0:
|
|
1055
|
-
if (!(params.namespace !== "eip155")) {
|
|
1055
|
+
if (!(params.txAuthInput.namespace !== "eip155")) {
|
|
1056
1056
|
_context.next = 2;
|
|
1057
1057
|
break;
|
|
1058
1058
|
}
|
|
1059
|
-
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1059
|
+
throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
|
|
1060
1060
|
case 2:
|
|
1061
1061
|
_context.next = 4;
|
|
1062
|
-
return deps.compilotApiClient.
|
|
1063
|
-
requestBody: params
|
|
1062
|
+
return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTxAuthDataSignature({
|
|
1063
|
+
requestBody: params.txAuthInput,
|
|
1064
|
+
workflowId: params.workflowId
|
|
1064
1065
|
});
|
|
1065
1066
|
case 4:
|
|
1066
1067
|
res = _context.sent;
|
|
1067
1068
|
return _context.abrupt("return", identitySchemas.ExtendedTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1068
|
-
namespace: params.namespace,
|
|
1069
|
-
userAddress: params.userAddress
|
|
1069
|
+
namespace: params.txAuthInput.namespace,
|
|
1070
|
+
userAddress: params.txAuthInput.userAddress
|
|
1070
1071
|
}, res)));
|
|
1071
1072
|
case 6:
|
|
1072
1073
|
case "end":
|
|
@@ -1085,21 +1086,22 @@ var getTxAuthDataSignatureFactory = function getTxAuthDataSignatureFactory(deps)
|
|
|
1085
1086
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1086
1087
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1087
1088
|
case 0:
|
|
1088
|
-
if (!(params.namespace !== "tezos")) {
|
|
1089
|
+
if (!(params.txAuthInput.namespace !== "tezos")) {
|
|
1089
1090
|
_context2.next = 2;
|
|
1090
1091
|
break;
|
|
1091
1092
|
}
|
|
1092
|
-
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1093
|
+
throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
|
|
1093
1094
|
case 2:
|
|
1094
1095
|
_context2.next = 4;
|
|
1095
|
-
return deps.compilotApiClient.
|
|
1096
|
-
requestBody: params
|
|
1096
|
+
return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTezosTxAuthDataSignature({
|
|
1097
|
+
requestBody: params.txAuthInput,
|
|
1098
|
+
workflowId: params.workflowId
|
|
1097
1099
|
});
|
|
1098
1100
|
case 4:
|
|
1099
1101
|
res = _context2.sent;
|
|
1100
1102
|
return _context2.abrupt("return", identitySchemas.ExtendedTezosTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1101
|
-
namespace: params.namespace,
|
|
1102
|
-
userAddress: params.userAddress
|
|
1103
|
+
namespace: params.txAuthInput.namespace,
|
|
1104
|
+
userAddress: params.txAuthInput.userAddress
|
|
1103
1105
|
}, res)));
|
|
1104
1106
|
case 6:
|
|
1105
1107
|
case "end":
|
|
@@ -1017,7 +1017,7 @@ function _objectSpread2(e) {
|
|
|
1017
1017
|
* functionName: "mintNFTGated",
|
|
1018
1018
|
* args: [account.address],
|
|
1019
1019
|
* userAddress: account.address,
|
|
1020
|
-
* chainId: EvmChainId.parse(chainId),
|
|
1020
|
+
* chainId: EvmChainId.parse(chainId.toString()),
|
|
1021
1021
|
* });
|
|
1022
1022
|
*
|
|
1023
1023
|
* if (!signatureResponse.isAuthorized) {
|
|
@@ -1052,21 +1052,22 @@ var getTxAuthDataSignatureFactory = function getTxAuthDataSignatureFactory(deps)
|
|
|
1052
1052
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1053
1053
|
while (1) switch (_context.prev = _context.next) {
|
|
1054
1054
|
case 0:
|
|
1055
|
-
if (!(params.namespace !== "eip155")) {
|
|
1055
|
+
if (!(params.txAuthInput.namespace !== "eip155")) {
|
|
1056
1056
|
_context.next = 2;
|
|
1057
1057
|
break;
|
|
1058
1058
|
}
|
|
1059
|
-
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1059
|
+
throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
|
|
1060
1060
|
case 2:
|
|
1061
1061
|
_context.next = 4;
|
|
1062
|
-
return deps.compilotApiClient.
|
|
1063
|
-
requestBody: params
|
|
1062
|
+
return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTxAuthDataSignature({
|
|
1063
|
+
requestBody: params.txAuthInput,
|
|
1064
|
+
workflowId: params.workflowId
|
|
1064
1065
|
});
|
|
1065
1066
|
case 4:
|
|
1066
1067
|
res = _context.sent;
|
|
1067
1068
|
return _context.abrupt("return", identitySchemas.ExtendedTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1068
|
-
namespace: params.namespace,
|
|
1069
|
-
userAddress: params.userAddress
|
|
1069
|
+
namespace: params.txAuthInput.namespace,
|
|
1070
|
+
userAddress: params.txAuthInput.userAddress
|
|
1070
1071
|
}, res)));
|
|
1071
1072
|
case 6:
|
|
1072
1073
|
case "end":
|
|
@@ -1085,21 +1086,22 @@ var getTxAuthDataSignatureFactory = function getTxAuthDataSignatureFactory(deps)
|
|
|
1085
1086
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1086
1087
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1087
1088
|
case 0:
|
|
1088
|
-
if (!(params.namespace !== "tezos")) {
|
|
1089
|
+
if (!(params.txAuthInput.namespace !== "tezos")) {
|
|
1089
1090
|
_context2.next = 2;
|
|
1090
1091
|
break;
|
|
1091
1092
|
}
|
|
1092
|
-
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1093
|
+
throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
|
|
1093
1094
|
case 2:
|
|
1094
1095
|
_context2.next = 4;
|
|
1095
|
-
return deps.compilotApiClient.
|
|
1096
|
-
requestBody: params
|
|
1096
|
+
return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTezosTxAuthDataSignature({
|
|
1097
|
+
requestBody: params.txAuthInput,
|
|
1098
|
+
workflowId: params.workflowId
|
|
1097
1099
|
});
|
|
1098
1100
|
case 4:
|
|
1099
1101
|
res = _context2.sent;
|
|
1100
1102
|
return _context2.abrupt("return", identitySchemas.ExtendedTezosTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1101
|
-
namespace: params.namespace,
|
|
1102
|
-
userAddress: params.userAddress
|
|
1103
|
+
namespace: params.txAuthInput.namespace,
|
|
1104
|
+
userAddress: params.txAuthInput.userAddress
|
|
1103
1105
|
}, res)));
|
|
1104
1106
|
case 6:
|
|
1105
1107
|
case "end":
|
|
@@ -1015,7 +1015,7 @@ function _objectSpread2(e) {
|
|
|
1015
1015
|
* functionName: "mintNFTGated",
|
|
1016
1016
|
* args: [account.address],
|
|
1017
1017
|
* userAddress: account.address,
|
|
1018
|
-
* chainId: EvmChainId.parse(chainId),
|
|
1018
|
+
* chainId: EvmChainId.parse(chainId.toString()),
|
|
1019
1019
|
* });
|
|
1020
1020
|
*
|
|
1021
1021
|
* if (!signatureResponse.isAuthorized) {
|
|
@@ -1050,21 +1050,22 @@ var getTxAuthDataSignatureFactory = function getTxAuthDataSignatureFactory(deps)
|
|
|
1050
1050
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1051
1051
|
while (1) switch (_context.prev = _context.next) {
|
|
1052
1052
|
case 0:
|
|
1053
|
-
if (!(params.namespace !== "eip155")) {
|
|
1053
|
+
if (!(params.txAuthInput.namespace !== "eip155")) {
|
|
1054
1054
|
_context.next = 2;
|
|
1055
1055
|
break;
|
|
1056
1056
|
}
|
|
1057
|
-
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1057
|
+
throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
|
|
1058
1058
|
case 2:
|
|
1059
1059
|
_context.next = 4;
|
|
1060
|
-
return deps.compilotApiClient.
|
|
1061
|
-
requestBody: params
|
|
1060
|
+
return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTxAuthDataSignature({
|
|
1061
|
+
requestBody: params.txAuthInput,
|
|
1062
|
+
workflowId: params.workflowId
|
|
1062
1063
|
});
|
|
1063
1064
|
case 4:
|
|
1064
1065
|
res = _context.sent;
|
|
1065
1066
|
return _context.abrupt("return", ExtendedTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1066
|
-
namespace: params.namespace,
|
|
1067
|
-
userAddress: params.userAddress
|
|
1067
|
+
namespace: params.txAuthInput.namespace,
|
|
1068
|
+
userAddress: params.txAuthInput.userAddress
|
|
1068
1069
|
}, res)));
|
|
1069
1070
|
case 6:
|
|
1070
1071
|
case "end":
|
|
@@ -1083,21 +1084,22 @@ var getTxAuthDataSignatureFactory = function getTxAuthDataSignatureFactory(deps)
|
|
|
1083
1084
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1084
1085
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1085
1086
|
case 0:
|
|
1086
|
-
if (!(params.namespace !== "tezos")) {
|
|
1087
|
+
if (!(params.txAuthInput.namespace !== "tezos")) {
|
|
1087
1088
|
_context2.next = 2;
|
|
1088
1089
|
break;
|
|
1089
1090
|
}
|
|
1090
|
-
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1091
|
+
throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
|
|
1091
1092
|
case 2:
|
|
1092
1093
|
_context2.next = 4;
|
|
1093
|
-
return deps.compilotApiClient.
|
|
1094
|
-
requestBody: params
|
|
1094
|
+
return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTezosTxAuthDataSignature({
|
|
1095
|
+
requestBody: params.txAuthInput,
|
|
1096
|
+
workflowId: params.workflowId
|
|
1095
1097
|
});
|
|
1096
1098
|
case 4:
|
|
1097
1099
|
res = _context2.sent;
|
|
1098
1100
|
return _context2.abrupt("return", ExtendedTezosTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1099
|
-
namespace: params.namespace,
|
|
1100
|
-
userAddress: params.userAddress
|
|
1101
|
+
namespace: params.txAuthInput.namespace,
|
|
1102
|
+
userAddress: params.txAuthInput.userAddress
|
|
1101
1103
|
}, res)));
|
|
1102
1104
|
case 6:
|
|
1103
1105
|
case "end":
|
|
@@ -25,7 +25,7 @@ import { ExtendedTezosTxAuthDataSignatureResponse } from "@nexeraid/identity-sch
|
|
|
25
25
|
* functionName: "mintNFTGated",
|
|
26
26
|
* args: [account.address],
|
|
27
27
|
* userAddress: account.address,
|
|
28
|
-
* chainId: EvmChainId.parse(chainId),
|
|
28
|
+
* chainId: EvmChainId.parse(chainId.toString()),
|
|
29
29
|
* });
|
|
30
30
|
*
|
|
31
31
|
* if (!signatureResponse.isAuthorized) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTxAuthDataSignature.d.ts","sourceRoot":"../../../../src/actions","sources":["getTxAuthDataSignature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"getTxAuthDataSignature.d.ts","sourceRoot":"../../../../src/actions","sources":["getTxAuthDataSignature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAIV,wBAAwB,EACxB,mBAAmB,EACnB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,wCAAwC,EAEzC,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACpE,CACE,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,wCAAwC,CAAC,CAAC;CACtD,CAAC;AAEF,cAAc;AACd,eAAO,MAAM,6BAA6B,SAAU;IAClD,iBAAiB,EAAE,eAAe,CAAC;CACpC,KAAG,wBA2DH,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.15.
|
|
3
|
+
"version": "2.15.3-dev",
|
|
4
4
|
"description": "ComPilot JS SDK",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "ISC",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"pino": "^9.5.0",
|
|
35
35
|
"svix": "1.21.0",
|
|
36
36
|
"zod": "^3.23.8",
|
|
37
|
-
"@nexeraid/api-client": "2.15.1-
|
|
38
|
-
"@nexeraid/identity-api-client": "2.15.1-
|
|
39
|
-
"@nexeraid/identity-schemas": "2.
|
|
40
|
-
"@nexeraid/logger": "2.15.1-
|
|
37
|
+
"@nexeraid/api-client": "2.15.1-dev",
|
|
38
|
+
"@nexeraid/identity-api-client": "2.15.1-dev",
|
|
39
|
+
"@nexeraid/identity-schemas": "2.17.0-dev",
|
|
40
|
+
"@nexeraid/logger": "2.15.1-dev"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"prettier": "^3.3.3",
|