@compilot/js-sdk 2.30.2-dev → 2.30.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.cjs +10 -11
- package/dist/compilot-js-sdk.cjs.prod.cjs +10 -11
- package/dist/compilot-js-sdk.esm.mjs +10 -11
- package/dist/declarations/src/actions/getTxAuthDataSignature.d.ts +3 -4
- package/dist/declarations/src/actions/getTxAuthDataSignature.d.ts.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +5 -5
|
@@ -1012,7 +1012,6 @@ function _objectSpread2(e) {
|
|
|
1012
1012
|
* const compilotSdk = createSdk({ apiKey });
|
|
1013
1013
|
*
|
|
1014
1014
|
* const txAuthDataSignature = await compilotSdk.getTxAuthDataSignature({
|
|
1015
|
-
* workflowId: "123", // this has to be a workflow of type "SignatureGating"
|
|
1016
1015
|
* namespace: "eip155",
|
|
1017
1016
|
* contractAbi: ExampleGatedNFTMinterABI,
|
|
1018
1017
|
* contractAddress: "0x123",
|
|
@@ -1054,22 +1053,22 @@ var getTxAuthDataSignatureFactory = function getTxAuthDataSignatureFactory(deps)
|
|
|
1054
1053
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1055
1054
|
while (1) switch (_context.prev = _context.next) {
|
|
1056
1055
|
case 0:
|
|
1057
|
-
if (!(params.namespace !== "eip155")) {
|
|
1056
|
+
if (!(params.txAuthInput.namespace !== "eip155")) {
|
|
1058
1057
|
_context.next = 2;
|
|
1059
1058
|
break;
|
|
1060
1059
|
}
|
|
1061
|
-
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1060
|
+
throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
|
|
1062
1061
|
case 2:
|
|
1063
1062
|
_context.next = 4;
|
|
1064
1063
|
return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTxAuthDataSignature({
|
|
1065
|
-
requestBody: params,
|
|
1064
|
+
requestBody: params.txAuthInput,
|
|
1066
1065
|
workflowId: params.workflowId
|
|
1067
1066
|
});
|
|
1068
1067
|
case 4:
|
|
1069
1068
|
res = _context.sent;
|
|
1070
1069
|
return _context.abrupt("return", identitySchemas.ExtendedTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1071
|
-
namespace: params.namespace,
|
|
1072
|
-
userAddress: params.userAddress
|
|
1070
|
+
namespace: params.txAuthInput.namespace,
|
|
1071
|
+
userAddress: params.txAuthInput.userAddress
|
|
1073
1072
|
}, res)));
|
|
1074
1073
|
case 6:
|
|
1075
1074
|
case "end":
|
|
@@ -1088,22 +1087,22 @@ var getTxAuthDataSignatureFactory = function getTxAuthDataSignatureFactory(deps)
|
|
|
1088
1087
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1089
1088
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1090
1089
|
case 0:
|
|
1091
|
-
if (!(params.namespace !== "tezos")) {
|
|
1090
|
+
if (!(params.txAuthInput.namespace !== "tezos")) {
|
|
1092
1091
|
_context2.next = 2;
|
|
1093
1092
|
break;
|
|
1094
1093
|
}
|
|
1095
|
-
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1094
|
+
throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
|
|
1096
1095
|
case 2:
|
|
1097
1096
|
_context2.next = 4;
|
|
1098
1097
|
return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTezosTxAuthDataSignature({
|
|
1099
|
-
requestBody: params,
|
|
1098
|
+
requestBody: params.txAuthInput,
|
|
1100
1099
|
workflowId: params.workflowId
|
|
1101
1100
|
});
|
|
1102
1101
|
case 4:
|
|
1103
1102
|
res = _context2.sent;
|
|
1104
1103
|
return _context2.abrupt("return", identitySchemas.ExtendedTezosTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1105
|
-
namespace: params.namespace,
|
|
1106
|
-
userAddress: params.userAddress
|
|
1104
|
+
namespace: params.txAuthInput.namespace,
|
|
1105
|
+
userAddress: params.txAuthInput.userAddress
|
|
1107
1106
|
}, res)));
|
|
1108
1107
|
case 6:
|
|
1109
1108
|
case "end":
|
|
@@ -1012,7 +1012,6 @@ function _objectSpread2(e) {
|
|
|
1012
1012
|
* const compilotSdk = createSdk({ apiKey });
|
|
1013
1013
|
*
|
|
1014
1014
|
* const txAuthDataSignature = await compilotSdk.getTxAuthDataSignature({
|
|
1015
|
-
* workflowId: "123", // this has to be a workflow of type "SignatureGating"
|
|
1016
1015
|
* namespace: "eip155",
|
|
1017
1016
|
* contractAbi: ExampleGatedNFTMinterABI,
|
|
1018
1017
|
* contractAddress: "0x123",
|
|
@@ -1054,22 +1053,22 @@ var getTxAuthDataSignatureFactory = function getTxAuthDataSignatureFactory(deps)
|
|
|
1054
1053
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1055
1054
|
while (1) switch (_context.prev = _context.next) {
|
|
1056
1055
|
case 0:
|
|
1057
|
-
if (!(params.namespace !== "eip155")) {
|
|
1056
|
+
if (!(params.txAuthInput.namespace !== "eip155")) {
|
|
1058
1057
|
_context.next = 2;
|
|
1059
1058
|
break;
|
|
1060
1059
|
}
|
|
1061
|
-
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1060
|
+
throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
|
|
1062
1061
|
case 2:
|
|
1063
1062
|
_context.next = 4;
|
|
1064
1063
|
return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTxAuthDataSignature({
|
|
1065
|
-
requestBody: params,
|
|
1064
|
+
requestBody: params.txAuthInput,
|
|
1066
1065
|
workflowId: params.workflowId
|
|
1067
1066
|
});
|
|
1068
1067
|
case 4:
|
|
1069
1068
|
res = _context.sent;
|
|
1070
1069
|
return _context.abrupt("return", identitySchemas.ExtendedTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1071
|
-
namespace: params.namespace,
|
|
1072
|
-
userAddress: params.userAddress
|
|
1070
|
+
namespace: params.txAuthInput.namespace,
|
|
1071
|
+
userAddress: params.txAuthInput.userAddress
|
|
1073
1072
|
}, res)));
|
|
1074
1073
|
case 6:
|
|
1075
1074
|
case "end":
|
|
@@ -1088,22 +1087,22 @@ var getTxAuthDataSignatureFactory = function getTxAuthDataSignatureFactory(deps)
|
|
|
1088
1087
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1089
1088
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1090
1089
|
case 0:
|
|
1091
|
-
if (!(params.namespace !== "tezos")) {
|
|
1090
|
+
if (!(params.txAuthInput.namespace !== "tezos")) {
|
|
1092
1091
|
_context2.next = 2;
|
|
1093
1092
|
break;
|
|
1094
1093
|
}
|
|
1095
|
-
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1094
|
+
throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
|
|
1096
1095
|
case 2:
|
|
1097
1096
|
_context2.next = 4;
|
|
1098
1097
|
return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTezosTxAuthDataSignature({
|
|
1099
|
-
requestBody: params,
|
|
1098
|
+
requestBody: params.txAuthInput,
|
|
1100
1099
|
workflowId: params.workflowId
|
|
1101
1100
|
});
|
|
1102
1101
|
case 4:
|
|
1103
1102
|
res = _context2.sent;
|
|
1104
1103
|
return _context2.abrupt("return", identitySchemas.ExtendedTezosTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1105
|
-
namespace: params.namespace,
|
|
1106
|
-
userAddress: params.userAddress
|
|
1104
|
+
namespace: params.txAuthInput.namespace,
|
|
1105
|
+
userAddress: params.txAuthInput.userAddress
|
|
1107
1106
|
}, res)));
|
|
1108
1107
|
case 6:
|
|
1109
1108
|
case "end":
|
|
@@ -1010,7 +1010,6 @@ function _objectSpread2(e) {
|
|
|
1010
1010
|
* const compilotSdk = createSdk({ apiKey });
|
|
1011
1011
|
*
|
|
1012
1012
|
* const txAuthDataSignature = await compilotSdk.getTxAuthDataSignature({
|
|
1013
|
-
* workflowId: "123", // this has to be a workflow of type "SignatureGating"
|
|
1014
1013
|
* namespace: "eip155",
|
|
1015
1014
|
* contractAbi: ExampleGatedNFTMinterABI,
|
|
1016
1015
|
* contractAddress: "0x123",
|
|
@@ -1052,22 +1051,22 @@ var getTxAuthDataSignatureFactory = function getTxAuthDataSignatureFactory(deps)
|
|
|
1052
1051
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1053
1052
|
while (1) switch (_context.prev = _context.next) {
|
|
1054
1053
|
case 0:
|
|
1055
|
-
if (!(params.namespace !== "eip155")) {
|
|
1054
|
+
if (!(params.txAuthInput.namespace !== "eip155")) {
|
|
1056
1055
|
_context.next = 2;
|
|
1057
1056
|
break;
|
|
1058
1057
|
}
|
|
1059
|
-
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1058
|
+
throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
|
|
1060
1059
|
case 2:
|
|
1061
1060
|
_context.next = 4;
|
|
1062
1061
|
return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTxAuthDataSignature({
|
|
1063
|
-
requestBody: params,
|
|
1062
|
+
requestBody: params.txAuthInput,
|
|
1064
1063
|
workflowId: params.workflowId
|
|
1065
1064
|
});
|
|
1066
1065
|
case 4:
|
|
1067
1066
|
res = _context.sent;
|
|
1068
1067
|
return _context.abrupt("return", ExtendedTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1069
|
-
namespace: params.namespace,
|
|
1070
|
-
userAddress: params.userAddress
|
|
1068
|
+
namespace: params.txAuthInput.namespace,
|
|
1069
|
+
userAddress: params.txAuthInput.userAddress
|
|
1071
1070
|
}, res)));
|
|
1072
1071
|
case 6:
|
|
1073
1072
|
case "end":
|
|
@@ -1086,22 +1085,22 @@ 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.namespace !== "tezos")) {
|
|
1088
|
+
if (!(params.txAuthInput.namespace !== "tezos")) {
|
|
1090
1089
|
_context2.next = 2;
|
|
1091
1090
|
break;
|
|
1092
1091
|
}
|
|
1093
|
-
throw new Error("Unsupported namespace: ".concat(params.namespace));
|
|
1092
|
+
throw new Error("Unsupported namespace: ".concat(params.txAuthInput.namespace));
|
|
1094
1093
|
case 2:
|
|
1095
1094
|
_context2.next = 4;
|
|
1096
1095
|
return deps.compilotApiClient.sigGating.publicRouterSignatureGatingGetTezosTxAuthDataSignature({
|
|
1097
|
-
requestBody: params,
|
|
1096
|
+
requestBody: params.txAuthInput,
|
|
1098
1097
|
workflowId: params.workflowId
|
|
1099
1098
|
});
|
|
1100
1099
|
case 4:
|
|
1101
1100
|
res = _context2.sent;
|
|
1102
1101
|
return _context2.abrupt("return", ExtendedTezosTxAuthDataSignatureResponse.parse(_objectSpread2({
|
|
1103
|
-
namespace: params.namespace,
|
|
1104
|
-
userAddress: params.userAddress
|
|
1102
|
+
namespace: params.txAuthInput.namespace,
|
|
1103
|
+
userAddress: params.txAuthInput.userAddress
|
|
1105
1104
|
}, res)));
|
|
1106
1105
|
case 6:
|
|
1107
1106
|
case "end":
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NexeraAPIClient } from "@nexeraid/api-client";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ExtendedTezosTxAuthInput, ExtendedTxAuthInput, TxAuthDataSignatureResponse } from "@nexeraid/identity-schemas";
|
|
3
3
|
import { ExtendedTezosTxAuthDataSignatureResponse } from "@nexeraid/identity-schemas";
|
|
4
4
|
/**
|
|
5
5
|
* Get the signature of the transaction authorization data
|
|
@@ -19,7 +19,6 @@ import { ExtendedTezosTxAuthDataSignatureResponse } from "@nexeraid/identity-sch
|
|
|
19
19
|
* const compilotSdk = createSdk({ apiKey });
|
|
20
20
|
*
|
|
21
21
|
* const txAuthDataSignature = await compilotSdk.getTxAuthDataSignature({
|
|
22
|
-
* workflowId: "123", // this has to be a workflow of type "SignatureGating"
|
|
23
22
|
* namespace: "eip155",
|
|
24
23
|
* contractAbi: ExampleGatedNFTMinterABI,
|
|
25
24
|
* contractAddress: "0x123",
|
|
@@ -51,8 +50,8 @@ import { ExtendedTezosTxAuthDataSignatureResponse } from "@nexeraid/identity-sch
|
|
|
51
50
|
* ```
|
|
52
51
|
*/
|
|
53
52
|
export type GetTxAuthDataSignatureFn = {
|
|
54
|
-
(params:
|
|
55
|
-
(params:
|
|
53
|
+
(params: ExtendedTxAuthInput): Promise<TxAuthDataSignatureResponse>;
|
|
54
|
+
(params: ExtendedTezosTxAuthInput): Promise<ExtendedTezosTxAuthDataSignatureResponse>;
|
|
56
55
|
};
|
|
57
56
|
/** @hidden */
|
|
58
57
|
export declare const getTxAuthDataSignatureFactory: (deps: {
|
|
@@ -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.30.2
|
|
3
|
+
"version": "2.30.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.30.1
|
|
38
|
-
"@nexeraid/identity-api-client": "2.30.1
|
|
39
|
-
"@nexeraid/identity-schemas": "2.31.0
|
|
40
|
-
"@nexeraid/logger": "2.30.1
|
|
37
|
+
"@nexeraid/api-client": "2.30.1",
|
|
38
|
+
"@nexeraid/identity-api-client": "2.30.1",
|
|
39
|
+
"@nexeraid/identity-schemas": "2.31.0",
|
|
40
|
+
"@nexeraid/logger": "2.30.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"prettier": "^3.3.3",
|