@compilot/js-sdk 2.15.2-dev → 2.15.2
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 +13 -15
- package/dist/compilot-js-sdk.cjs.prod.js +13 -15
- package/dist/compilot-js-sdk.esm.js +13 -15
- 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),
|
|
1021
1021
|
* });
|
|
1022
1022
|
*
|
|
1023
1023
|
* if (!signatureResponse.isAuthorized) {
|
|
@@ -1052,22 +1052,21 @@ 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.
|
|
1055
|
+
if (!(params.namespace !== "eip155")) {
|
|
1056
1056
|
_context.next = 2;
|
|
1057
1057
|
break;
|
|
1058
1058
|
}
|
|
1059
|
-
throw new Error("Unsupported namespace: ".concat(params.
|
|
1059
|
+
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1060
1060
|
case 2:
|
|
1061
1061
|
_context.next = 4;
|
|
1062
|
-
return deps.compilotApiClient.
|
|
1063
|
-
requestBody: params
|
|
1064
|
-
workflowId: params.workflowId
|
|
1062
|
+
return deps.compilotApiClient.customers.publicRouterCustomerRouterGetTxAuthDataSignature({
|
|
1063
|
+
requestBody: params
|
|
1065
1064
|
});
|
|
1066
1065
|
case 4:
|
|
1067
1066
|
res = _context.sent;
|
|
1068
1067
|
return _context.abrupt("return", identitySchemas.ExtendedTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1069
|
-
namespace: params.
|
|
1070
|
-
userAddress: params.
|
|
1068
|
+
namespace: params.namespace,
|
|
1069
|
+
userAddress: params.userAddress
|
|
1071
1070
|
}, res)));
|
|
1072
1071
|
case 6:
|
|
1073
1072
|
case "end":
|
|
@@ -1086,22 +1085,21 @@ var getTxAuthDataSignatureFactory = function getTxAuthDataSignatureFactory(deps)
|
|
|
1086
1085
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1087
1086
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1088
1087
|
case 0:
|
|
1089
|
-
if (!(params.
|
|
1088
|
+
if (!(params.namespace !== "tezos")) {
|
|
1090
1089
|
_context2.next = 2;
|
|
1091
1090
|
break;
|
|
1092
1091
|
}
|
|
1093
|
-
throw new Error("Unsupported namespace: ".concat(params.
|
|
1092
|
+
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1094
1093
|
case 2:
|
|
1095
1094
|
_context2.next = 4;
|
|
1096
|
-
return deps.compilotApiClient.
|
|
1097
|
-
requestBody: params
|
|
1098
|
-
workflowId: params.workflowId
|
|
1095
|
+
return deps.compilotApiClient.customers.publicRouterCustomerRouterGetTezosTxAuthDataSignature({
|
|
1096
|
+
requestBody: params
|
|
1099
1097
|
});
|
|
1100
1098
|
case 4:
|
|
1101
1099
|
res = _context2.sent;
|
|
1102
1100
|
return _context2.abrupt("return", identitySchemas.ExtendedTezosTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1103
|
-
namespace: params.
|
|
1104
|
-
userAddress: params.
|
|
1101
|
+
namespace: params.namespace,
|
|
1102
|
+
userAddress: params.userAddress
|
|
1105
1103
|
}, res)));
|
|
1106
1104
|
case 6:
|
|
1107
1105
|
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),
|
|
1021
1021
|
* });
|
|
1022
1022
|
*
|
|
1023
1023
|
* if (!signatureResponse.isAuthorized) {
|
|
@@ -1052,22 +1052,21 @@ 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.
|
|
1055
|
+
if (!(params.namespace !== "eip155")) {
|
|
1056
1056
|
_context.next = 2;
|
|
1057
1057
|
break;
|
|
1058
1058
|
}
|
|
1059
|
-
throw new Error("Unsupported namespace: ".concat(params.
|
|
1059
|
+
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1060
1060
|
case 2:
|
|
1061
1061
|
_context.next = 4;
|
|
1062
|
-
return deps.compilotApiClient.
|
|
1063
|
-
requestBody: params
|
|
1064
|
-
workflowId: params.workflowId
|
|
1062
|
+
return deps.compilotApiClient.customers.publicRouterCustomerRouterGetTxAuthDataSignature({
|
|
1063
|
+
requestBody: params
|
|
1065
1064
|
});
|
|
1066
1065
|
case 4:
|
|
1067
1066
|
res = _context.sent;
|
|
1068
1067
|
return _context.abrupt("return", identitySchemas.ExtendedTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1069
|
-
namespace: params.
|
|
1070
|
-
userAddress: params.
|
|
1068
|
+
namespace: params.namespace,
|
|
1069
|
+
userAddress: params.userAddress
|
|
1071
1070
|
}, res)));
|
|
1072
1071
|
case 6:
|
|
1073
1072
|
case "end":
|
|
@@ -1086,22 +1085,21 @@ var getTxAuthDataSignatureFactory = function getTxAuthDataSignatureFactory(deps)
|
|
|
1086
1085
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1087
1086
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1088
1087
|
case 0:
|
|
1089
|
-
if (!(params.
|
|
1088
|
+
if (!(params.namespace !== "tezos")) {
|
|
1090
1089
|
_context2.next = 2;
|
|
1091
1090
|
break;
|
|
1092
1091
|
}
|
|
1093
|
-
throw new Error("Unsupported namespace: ".concat(params.
|
|
1092
|
+
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1094
1093
|
case 2:
|
|
1095
1094
|
_context2.next = 4;
|
|
1096
|
-
return deps.compilotApiClient.
|
|
1097
|
-
requestBody: params
|
|
1098
|
-
workflowId: params.workflowId
|
|
1095
|
+
return deps.compilotApiClient.customers.publicRouterCustomerRouterGetTezosTxAuthDataSignature({
|
|
1096
|
+
requestBody: params
|
|
1099
1097
|
});
|
|
1100
1098
|
case 4:
|
|
1101
1099
|
res = _context2.sent;
|
|
1102
1100
|
return _context2.abrupt("return", identitySchemas.ExtendedTezosTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1103
|
-
namespace: params.
|
|
1104
|
-
userAddress: params.
|
|
1101
|
+
namespace: params.namespace,
|
|
1102
|
+
userAddress: params.userAddress
|
|
1105
1103
|
}, res)));
|
|
1106
1104
|
case 6:
|
|
1107
1105
|
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),
|
|
1019
1019
|
* });
|
|
1020
1020
|
*
|
|
1021
1021
|
* if (!signatureResponse.isAuthorized) {
|
|
@@ -1050,22 +1050,21 @@ 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.
|
|
1053
|
+
if (!(params.namespace !== "eip155")) {
|
|
1054
1054
|
_context.next = 2;
|
|
1055
1055
|
break;
|
|
1056
1056
|
}
|
|
1057
|
-
throw new Error("Unsupported namespace: ".concat(params.
|
|
1057
|
+
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1058
1058
|
case 2:
|
|
1059
1059
|
_context.next = 4;
|
|
1060
|
-
return deps.compilotApiClient.
|
|
1061
|
-
requestBody: params
|
|
1062
|
-
workflowId: params.workflowId
|
|
1060
|
+
return deps.compilotApiClient.customers.publicRouterCustomerRouterGetTxAuthDataSignature({
|
|
1061
|
+
requestBody: params
|
|
1063
1062
|
});
|
|
1064
1063
|
case 4:
|
|
1065
1064
|
res = _context.sent;
|
|
1066
1065
|
return _context.abrupt("return", ExtendedTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1067
|
-
namespace: params.
|
|
1068
|
-
userAddress: params.
|
|
1066
|
+
namespace: params.namespace,
|
|
1067
|
+
userAddress: params.userAddress
|
|
1069
1068
|
}, res)));
|
|
1070
1069
|
case 6:
|
|
1071
1070
|
case "end":
|
|
@@ -1084,22 +1083,21 @@ var getTxAuthDataSignatureFactory = function getTxAuthDataSignatureFactory(deps)
|
|
|
1084
1083
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1085
1084
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1086
1085
|
case 0:
|
|
1087
|
-
if (!(params.
|
|
1086
|
+
if (!(params.namespace !== "tezos")) {
|
|
1088
1087
|
_context2.next = 2;
|
|
1089
1088
|
break;
|
|
1090
1089
|
}
|
|
1091
|
-
throw new Error("Unsupported namespace: ".concat(params.
|
|
1090
|
+
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1092
1091
|
case 2:
|
|
1093
1092
|
_context2.next = 4;
|
|
1094
|
-
return deps.compilotApiClient.
|
|
1095
|
-
requestBody: params
|
|
1096
|
-
workflowId: params.workflowId
|
|
1093
|
+
return deps.compilotApiClient.customers.publicRouterCustomerRouterGetTezosTxAuthDataSignature({
|
|
1094
|
+
requestBody: params
|
|
1097
1095
|
});
|
|
1098
1096
|
case 4:
|
|
1099
1097
|
res = _context2.sent;
|
|
1100
1098
|
return _context2.abrupt("return", ExtendedTezosTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1101
|
-
namespace: params.
|
|
1102
|
-
userAddress: params.
|
|
1099
|
+
namespace: params.namespace,
|
|
1100
|
+
userAddress: params.userAddress
|
|
1103
1101
|
}, res)));
|
|
1104
1102
|
case 6:
|
|
1105
1103
|
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),
|
|
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,EAGV,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,wBAiDH,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.2
|
|
3
|
+
"version": "2.15.2",
|
|
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.16.0
|
|
40
|
-
"@nexeraid/logger": "2.15.1
|
|
37
|
+
"@nexeraid/api-client": "2.15.1",
|
|
38
|
+
"@nexeraid/identity-api-client": "2.15.1",
|
|
39
|
+
"@nexeraid/identity-schemas": "2.16.0",
|
|
40
|
+
"@nexeraid/logger": "2.15.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"prettier": "^3.3.3",
|