@compilot/js-sdk 2.3.53-dev → 2.15.2-staging

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.
@@ -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.toString()),
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.txAuthInput.namespace !== "eip155")) {
1055
+ if (!(params.namespace !== "eip155")) {
1056
1056
  _context.next = 2;
1057
1057
  break;
1058
1058
  }
1059
- throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
1059
+ throw new Error("Unsupported namespace: ".concat(params.namespace));
1060
1060
  case 2:
1061
1061
  _context.next = 4;
1062
- return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTxAuthDataSignature({
1063
- requestBody: params.txAuthInput,
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.txAuthInput.namespace,
1070
- userAddress: params.txAuthInput.userAddress
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.txAuthInput.namespace !== "tezos")) {
1088
+ if (!(params.namespace !== "tezos")) {
1090
1089
  _context2.next = 2;
1091
1090
  break;
1092
1091
  }
1093
- throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
1092
+ throw new Error("Unsupported namespace: ".concat(params.namespace));
1094
1093
  case 2:
1095
1094
  _context2.next = 4;
1096
- return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTezosTxAuthDataSignature({
1097
- requestBody: params.txAuthInput,
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.txAuthInput.namespace,
1104
- userAddress: params.txAuthInput.userAddress
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.toString()),
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.txAuthInput.namespace !== "eip155")) {
1055
+ if (!(params.namespace !== "eip155")) {
1056
1056
  _context.next = 2;
1057
1057
  break;
1058
1058
  }
1059
- throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
1059
+ throw new Error("Unsupported namespace: ".concat(params.namespace));
1060
1060
  case 2:
1061
1061
  _context.next = 4;
1062
- return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTxAuthDataSignature({
1063
- requestBody: params.txAuthInput,
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.txAuthInput.namespace,
1070
- userAddress: params.txAuthInput.userAddress
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.txAuthInput.namespace !== "tezos")) {
1088
+ if (!(params.namespace !== "tezos")) {
1090
1089
  _context2.next = 2;
1091
1090
  break;
1092
1091
  }
1093
- throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
1092
+ throw new Error("Unsupported namespace: ".concat(params.namespace));
1094
1093
  case 2:
1095
1094
  _context2.next = 4;
1096
- return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTezosTxAuthDataSignature({
1097
- requestBody: params.txAuthInput,
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.txAuthInput.namespace,
1104
- userAddress: params.txAuthInput.userAddress
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.toString()),
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.txAuthInput.namespace !== "eip155")) {
1053
+ if (!(params.namespace !== "eip155")) {
1054
1054
  _context.next = 2;
1055
1055
  break;
1056
1056
  }
1057
- throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
1057
+ throw new Error("Unsupported namespace: ".concat(params.namespace));
1058
1058
  case 2:
1059
1059
  _context.next = 4;
1060
- return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTxAuthDataSignature({
1061
- requestBody: params.txAuthInput,
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.txAuthInput.namespace,
1068
- userAddress: params.txAuthInput.userAddress
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.txAuthInput.namespace !== "tezos")) {
1086
+ if (!(params.namespace !== "tezos")) {
1088
1087
  _context2.next = 2;
1089
1088
  break;
1090
1089
  }
1091
- throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
1090
+ throw new Error("Unsupported namespace: ".concat(params.namespace));
1092
1091
  case 2:
1093
1092
  _context2.next = 4;
1094
- return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTezosTxAuthDataSignature({
1095
- requestBody: params.txAuthInput,
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.txAuthInput.namespace,
1102
- userAddress: params.txAuthInput.userAddress
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.toString()),
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,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"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilot/js-sdk",
3
- "version": "2.3.53-dev",
3
+ "version": "2.15.2-staging",
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.3.53-dev",
3
+ "version": "2.15.2-staging",
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.3.41-dev",
38
- "@nexeraid/identity-api-client": "2.3.41-dev",
39
- "@nexeraid/identity-schemas": "2.14.0-dev",
40
- "@nexeraid/logger": "2.3.41-dev"
37
+ "@nexeraid/api-client": "2.15.1-staging",
38
+ "@nexeraid/identity-api-client": "2.15.1-staging",
39
+ "@nexeraid/identity-schemas": "2.16.0-staging",
40
+ "@nexeraid/logger": "2.15.1-staging"
41
41
  },
42
42
  "devDependencies": {
43
43
  "prettier": "^3.3.3",