@layerzerolabs/onesig-model 1.2.24 → 1.2.26
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/.turbo/turbo-build.log +33 -33
- package/.turbo/turbo-lint.log +1 -1
- package/dist/{4SXXOLRO.js → EIDT3C6X.js} +3 -3
- package/dist/EIDT3C6X.js.map +1 -0
- package/dist/{KG3IN4CA.js → MLOBZFUZ.js} +44 -3
- package/dist/MLOBZFUZ.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/model/index.js +2 -2
- package/dist/model/onesig-config/index.d.ts +7 -0
- package/dist/model/onesig-config/index.d.ts.map +1 -1
- package/dist/model/onesig-config/index.js +2 -2
- package/dist/model/onesig-config/onesig-config.d.ts +72 -28
- package/dist/model/onesig-config/onesig-config.d.ts.map +1 -1
- package/dist/model/onesig-config/onesig-config.js +1 -1
- package/package.json +3 -3
- package/src/model/onesig-config/index.ts +7 -0
- package/src/model/onesig-config/onesig-config.ts +76 -32
- package/dist/4SXXOLRO.js.map +0 -1
- package/dist/KG3IN4CA.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -14,92 +14,92 @@ Generated an empty chunk: "PNCMGEVV".
|
|
|
14
14
|
Generated an empty chunk: "P2ZSGLQK".
|
|
15
15
|
Generated an empty chunk: "JSB7JUTG".
|
|
16
16
|
Generated an empty chunk: "YKZ5WATU".
|
|
17
|
-
[32mESM[39m [1mdist/index.js [22m[32m2.
|
|
18
|
-
[32mESM[39m [1mdist/4SXXOLRO.js [22m[32m290.00 B[39m
|
|
19
|
-
[32mESM[39m [1mdist/PNCMGEVV.js [22m[32m74.00 B[39m
|
|
17
|
+
[32mESM[39m [1mdist/index.js [22m[32m2.43 KB[39m
|
|
20
18
|
[32mESM[39m [1mdist/45W5UJ2Y.js [22m[32m332.00 B[39m
|
|
19
|
+
[32mESM[39m [1mdist/PNCMGEVV.js [22m[32m74.00 B[39m
|
|
20
|
+
[32mESM[39m [1mdist/EIDT3C6X.js [22m[32m290.00 B[39m
|
|
21
21
|
[32mESM[39m [1mdist/P2ZSGLQK.js [22m[32m74.00 B[39m
|
|
22
|
-
[32mESM[39m [1mdist/KG3IN4CA.js [22m[32m3.17 KB[39m
|
|
23
22
|
[32mESM[39m [1mdist/5UA4EFKV.js [22m[32m270.00 B[39m
|
|
24
|
-
[32mESM[39m [1mdist/XBWMHWDY.js [22m[32m2.95 KB[39m
|
|
25
23
|
[32mESM[39m [1mdist/JSB7JUTG.js [22m[32m74.00 B[39m
|
|
26
24
|
[32mESM[39m [1mdist/YKZ5WATU.js [22m[32m74.00 B[39m
|
|
25
|
+
[32mESM[39m [1mdist/MLOBZFUZ.js [22m[32m5.14 KB[39m
|
|
27
26
|
[32mESM[39m [1mdist/WJMHUJYW.js [22m[32m677.00 B[39m
|
|
28
27
|
[32mESM[39m [1mdist/H5SPEHGQ.js [22m[32m1.44 KB[39m
|
|
29
28
|
[32mESM[39m [1mdist/H3AGSGWO.js [22m[32m378.00 B[39m
|
|
30
|
-
[32mESM[39m [1mdist/
|
|
29
|
+
[32mESM[39m [1mdist/K2YC5FPR.js [22m[32m526.00 B[39m
|
|
31
30
|
[32mESM[39m [1mdist/2R5P2UAC.js [22m[32m1.82 KB[39m
|
|
31
|
+
[32mESM[39m [1mdist/67YT6YWQ.js [22m[32m651.00 B[39m
|
|
32
|
+
[32mESM[39m [1mdist/WVUE7QAU.js [22m[32m846.00 B[39m
|
|
32
33
|
[32mESM[39m [1mdist/CMEEOEP5.js [22m[32m787.00 B[39m
|
|
33
|
-
[32mESM[39m [1mdist/2YKLV2BS.js [22m[32m445.00 B[39m
|
|
34
34
|
[32mESM[39m [1mdist/NU4PKL7P.js [22m[32m11.50 KB[39m
|
|
35
|
-
[32mESM[39m [1mdist/WVUE7QAU.js [22m[32m846.00 B[39m
|
|
36
|
-
[32mESM[39m [1mdist/K2YC5FPR.js [22m[32m526.00 B[39m
|
|
37
35
|
[32mESM[39m [1mdist/EA2O3IZ5.js [22m[32m613.00 B[39m
|
|
36
|
+
[32mESM[39m [1mdist/2YKLV2BS.js [22m[32m445.00 B[39m
|
|
37
|
+
[32mESM[39m [1mdist/XBWMHWDY.js [22m[32m2.95 KB[39m
|
|
38
38
|
[32mESM[39m [1mdist/VUOMXK5T.js [22m[32m222.00 B[39m
|
|
39
39
|
[32mESM[39m [1mdist/YJC3WODI.js [22m[32m540.00 B[39m
|
|
40
40
|
[32mESM[39m [1mdist/model/onesig-bundle/calls/index.js [22m[32m978.00 B[39m
|
|
41
41
|
[32mESM[39m [1mdist/model/onesig-bundle/onesig-proposer-signature.js [22m[32m196.00 B[39m
|
|
42
|
-
[32mESM[39m [1mdist/model/onesig-config/index.js [22m[
|
|
43
|
-
[32mESM[39m [1mdist/model/onesig-peer-to-peer/index.js [22m[32m180.00 B[39m
|
|
42
|
+
[32mESM[39m [1mdist/model/onesig-config/index.js [22m[32m721.00 B[39m
|
|
44
43
|
[32mESM[39m [1mdist/model/onesig-headers/index.js [22m[32m178.00 B[39m
|
|
44
|
+
[32mESM[39m [1mdist/model/onesig-peer-to-peer/index.js [22m[32m180.00 B[39m
|
|
45
45
|
[32mESM[39m [1mdist/model/onesig-api-errors/index.js [22m[32m424.00 B[39m
|
|
46
46
|
[32mESM[39m [1mdist/model/onesig-bundle/onesig-signer-signature.js [22m[32m190.00 B[39m
|
|
47
|
-
[32mESM[39m [1mdist/model/onesig-config/onesig-config.js [22m[32m403.00 B[39m
|
|
48
|
-
[32mESM[39m [1mdist/model/index.js [22m[32m2.19 KB[39m
|
|
49
47
|
[32mESM[39m [1mdist/model/config-change.js [22m[32m108.00 B[39m
|
|
48
|
+
[32mESM[39m [1mdist/model/onesig-config/onesig-config.js [22m[32m670.00 B[39m
|
|
49
|
+
[32mESM[39m [1mdist/model/index.js [22m[32m2.45 KB[39m
|
|
50
50
|
[32mESM[39m [1mdist/model/onesig-peer-to-peer/onesig-session.js [22m[32m170.00 B[39m
|
|
51
51
|
[32mESM[39m [1mdist/model/onesig-bundle/index.js [22m[32m1.37 KB[39m
|
|
52
52
|
[32mESM[39m [1mdist/model/onesig-bundle/onesig-entity.js [22m[32m503.00 B[39m
|
|
53
53
|
[32mESM[39m [1mdist/model/onesig-bundle/onesig-leaf.js [22m[32m447.00 B[39m
|
|
54
54
|
[32mESM[39m [1mdist/model/onesig-bundle/onesig-overrides.js [22m[32m185.00 B[39m
|
|
55
55
|
[32mESM[39m [1mdist/index.js.map [22m[32m69.00 B[39m
|
|
56
|
-
[32mESM[39m [1mdist/4SXXOLRO.js.map [22m[32m639.00 B[39m
|
|
57
|
-
[32mESM[39m [1mdist/PNCMGEVV.js.map [22m[32m72.00 B[39m
|
|
58
56
|
[32mESM[39m [1mdist/45W5UJ2Y.js.map [22m[32m828.00 B[39m
|
|
57
|
+
[32mESM[39m [1mdist/PNCMGEVV.js.map [22m[32m72.00 B[39m
|
|
58
|
+
[32mESM[39m [1mdist/EIDT3C6X.js.map [22m[32m845.00 B[39m
|
|
59
59
|
[32mESM[39m [1mdist/P2ZSGLQK.js.map [22m[32m72.00 B[39m
|
|
60
|
-
[32mESM[39m [1mdist/KG3IN4CA.js.map [22m[32m7.13 KB[39m
|
|
61
60
|
[32mESM[39m [1mdist/5UA4EFKV.js.map [22m[32m554.00 B[39m
|
|
62
|
-
[32mESM[39m [1mdist/XBWMHWDY.js.map [22m[32m5.23 KB[39m
|
|
63
61
|
[32mESM[39m [1mdist/JSB7JUTG.js.map [22m[32m72.00 B[39m
|
|
64
62
|
[32mESM[39m [1mdist/YKZ5WATU.js.map [22m[32m72.00 B[39m
|
|
65
|
-
[32mESM[39m [1mdist/
|
|
63
|
+
[32mESM[39m [1mdist/MLOBZFUZ.js.map [22m[32m11.58 KB[39m
|
|
66
64
|
[32mESM[39m [1mdist/WJMHUJYW.js.map [22m[32m1.44 KB[39m
|
|
65
|
+
[32mESM[39m [1mdist/H3AGSGWO.js.map [22m[32m839.00 B[39m
|
|
67
66
|
[32mESM[39m [1mdist/H5SPEHGQ.js.map [22m[32m3.33 KB[39m
|
|
68
|
-
[32mESM[39m [1mdist/
|
|
69
|
-
[32mESM[39m [1mdist/2YKLV2BS.js.map [22m[32m1.03 KB[39m
|
|
70
|
-
[32mESM[39m [1mdist/CMEEOEP5.js.map [22m[32m2.04 KB[39m
|
|
67
|
+
[32mESM[39m [1mdist/K2YC5FPR.js.map [22m[32m1.24 KB[39m
|
|
71
68
|
[32mESM[39m [1mdist/2R5P2UAC.js.map [22m[32m4.03 KB[39m
|
|
72
69
|
[32mESM[39m [1mdist/WVUE7QAU.js.map [22m[32m1.94 KB[39m
|
|
73
|
-
[32mESM[39m [1mdist/
|
|
70
|
+
[32mESM[39m [1mdist/CMEEOEP5.js.map [22m[32m2.04 KB[39m
|
|
71
|
+
[32mESM[39m [1mdist/67YT6YWQ.js.map [22m[32m1.37 KB[39m
|
|
72
|
+
[32mESM[39m [1mdist/EA2O3IZ5.js.map [22m[32m1.28 KB[39m
|
|
74
73
|
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-canton-call.js [22m[32m635.00 B[39m
|
|
75
|
-
[32mESM[39m [1mdist/
|
|
76
|
-
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-stellar-call.js [22m[32m190.00 B[39m
|
|
74
|
+
[32mESM[39m [1mdist/NU4PKL7P.js.map [22m[32m27.96 KB[39m
|
|
77
75
|
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-evm-call.js [22m[32m178.00 B[39m
|
|
78
|
-
[32mESM[39m [1mdist/
|
|
79
|
-
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-ton-call.js [22m[32m178.00 B[39m
|
|
76
|
+
[32mESM[39m [1mdist/2YKLV2BS.js.map [22m[32m1.03 KB[39m
|
|
80
77
|
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-solana-call.js [22m[32m187.00 B[39m
|
|
78
|
+
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-stellar-call.js [22m[32m190.00 B[39m
|
|
79
|
+
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-ton-call.js [22m[32m178.00 B[39m
|
|
81
80
|
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-starknet-call.js [22m[32m193.00 B[39m
|
|
82
81
|
[32mESM[39m [1mdist/VUOMXK5T.js.map [22m[32m72.00 B[39m
|
|
82
|
+
[32mESM[39m [1mdist/XBWMHWDY.js.map [22m[32m5.23 KB[39m
|
|
83
83
|
[32mESM[39m [1mdist/YJC3WODI.js.map [22m[32m1.14 KB[39m
|
|
84
84
|
[32mESM[39m [1mdist/model/onesig-bundle/calls/index.js.map [22m[32m69.00 B[39m
|
|
85
85
|
[32mESM[39m [1mdist/model/onesig-bundle/onesig-proposer-signature.js.map [22m[32m89.00 B[39m
|
|
86
86
|
[32mESM[39m [1mdist/model/onesig-config/index.js.map [22m[32m69.00 B[39m
|
|
87
|
-
[32mESM[39m [1mdist/model/onesig-peer-to-peer/index.js.map [22m[32m69.00 B[39m
|
|
88
87
|
[32mESM[39m [1mdist/model/onesig-headers/index.js.map [22m[32m69.00 B[39m
|
|
88
|
+
[32mESM[39m [1mdist/model/onesig-peer-to-peer/index.js.map [22m[32m69.00 B[39m
|
|
89
89
|
[32mESM[39m [1mdist/model/onesig-api-errors/index.js.map [22m[32m69.00 B[39m
|
|
90
90
|
[32mESM[39m [1mdist/model/onesig-bundle/onesig-signer-signature.js.map [22m[32m87.00 B[39m
|
|
91
|
-
[32mESM[39m [1mdist/model/onesig-config/onesig-config.js.map [22m[32m77.00 B[39m
|
|
92
|
-
[32mESM[39m [1mdist/model/index.js.map [22m[32m69.00 B[39m
|
|
93
91
|
[32mESM[39m [1mdist/model/config-change.js.map [22m[32m77.00 B[39m
|
|
94
|
-
[32mESM[39m [1mdist/model/
|
|
92
|
+
[32mESM[39m [1mdist/model/index.js.map [22m[32m69.00 B[39m
|
|
93
|
+
[32mESM[39m [1mdist/model/onesig-config/onesig-config.js.map [22m[32m77.00 B[39m
|
|
95
94
|
[32mESM[39m [1mdist/model/onesig-bundle/onesig-entity.js.map [22m[32m77.00 B[39m
|
|
96
95
|
[32mESM[39m [1mdist/model/onesig-bundle/index.js.map [22m[32m69.00 B[39m
|
|
96
|
+
[32mESM[39m [1mdist/model/onesig-peer-to-peer/onesig-session.js.map [22m[32m78.00 B[39m
|
|
97
97
|
[32mESM[39m [1mdist/model/onesig-bundle/onesig-leaf.js.map [22m[32m75.00 B[39m
|
|
98
98
|
[32mESM[39m [1mdist/model/onesig-bundle/onesig-overrides.js.map [22m[32m80.00 B[39m
|
|
99
99
|
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-canton-call.js.map [22m[32m82.00 B[39m
|
|
100
|
+
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-evm-call.js.map [22m[32m79.00 B[39m
|
|
101
|
+
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-solana-call.js.map [22m[32m82.00 B[39m
|
|
100
102
|
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-stellar-call.js.map [22m[32m83.00 B[39m
|
|
101
103
|
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-ton-call.js.map [22m[32m79.00 B[39m
|
|
102
|
-
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-solana-call.js.map [22m[32m82.00 B[39m
|
|
103
|
-
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-evm-call.js.map [22m[32m79.00 B[39m
|
|
104
104
|
[32mESM[39m [1mdist/model/onesig-bundle/calls/onesig-starknet-call.js.map [22m[32m84.00 B[39m
|
|
105
|
-
[32mESM[39m ⚡️ Build success in
|
|
105
|
+
[32mESM[39m ⚡️ Build success in 216ms
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
> @layerzerolabs/onesig-model@0.0.0 lint /home/runner/work/monorepo-internal/monorepo-internal/packages/onesig/onesig-model
|
|
3
3
|
> eslint . --max-warnings 0 || (eslint . --fix --max-warnings 0 && false)
|
|
4
4
|
|
|
5
|
-
(node:
|
|
5
|
+
(node:59306) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/eslint.config.js?mtime=1785514771749 is not specified and it doesn't parse as CommonJS.
|
|
6
6
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
7
7
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
8
8
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { oneSigConfigSchema } from './
|
|
1
|
+
import { oneSigConfigSchema } from './MLOBZFUZ.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
var oneSigConfigApiResponseSchema = z.object({
|
|
@@ -6,5 +6,5 @@ var oneSigConfigApiResponseSchema = z.object({
|
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
export { oneSigConfigApiResponseSchema };
|
|
9
|
-
//# sourceMappingURL=
|
|
10
|
-
//# sourceMappingURL=
|
|
9
|
+
//# sourceMappingURL=EIDT3C6X.js.map
|
|
10
|
+
//# sourceMappingURL=EIDT3C6X.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/model/onesig-config/index.ts"],"names":["oneSigConfigApiResponseSchema","z","object","oneSigConfigs","array","oneSigConfigSchema"],"mappings":";;;AAUO,IAAMA,6BAAAA,GAAgCC,EAAEC,MAAAA,CAAO;EAClDC,aAAAA,EAAeF,CAAAA,CAAEG,MAAMC,kBAAAA;AAC3B,CAAA","file":"EIDT3C6X.js","sourcesContent":["import { z } from 'zod';\n\nimport { oneSigConfigSchema } from './onesig-config';\n\nexport * from './onesig-config';\n\n/**\n * @deprecated Legacy `GET /onesigs` list response. Prefer\n * {@link listOneSigInstancesResponseSchema} (`GET /instances`).\n */\nexport const oneSigConfigApiResponseSchema = z.object({\n oneSigConfigs: z.array(oneSigConfigSchema),\n});\n\n/**\n * @deprecated Prefer {@link ListOneSigInstancesResponse}.\n */\nexport type OneSigConfigApiResponse = z.infer<typeof oneSigConfigApiResponseSchema>;\n"]}
|
|
@@ -48,11 +48,52 @@ var ManageMemberRole = /* @__PURE__ */ (function(ManageMemberRole2) {
|
|
|
48
48
|
ManageMemberRole2["WITNESS"] = "WITNESS";
|
|
49
49
|
return ManageMemberRole2;
|
|
50
50
|
})({});
|
|
51
|
+
var oneSigRoleSchema = z.enum(OneSigRole);
|
|
51
52
|
var oneSigSigningConfigSchema = z.object({
|
|
52
53
|
seed: z.string(),
|
|
53
54
|
threshold: z.number(),
|
|
54
55
|
signers: z.array(z.string())
|
|
55
56
|
});
|
|
57
|
+
var oneSigInstanceSummarySchema = z.object({
|
|
58
|
+
name: z.string(),
|
|
59
|
+
role: oneSigRoleSchema
|
|
60
|
+
});
|
|
61
|
+
var oneSigPerChainConfigSchema = z.object({
|
|
62
|
+
contractAddress: z.string(),
|
|
63
|
+
signingConfig: z.string().describe("Hash referencing an entry in signingConfigs"),
|
|
64
|
+
executionConfig: z.string().optional().describe("Hash referencing an entry in executionConfigs"),
|
|
65
|
+
createdAt: z.number().optional().describe("When this chain config was created, unix ms"),
|
|
66
|
+
updatedAt: z.number().optional().describe("When this chain config was last refreshed from chain, unix ms")
|
|
67
|
+
});
|
|
68
|
+
var oneSigInstanceMembersSchema = z.object({
|
|
69
|
+
proposers: z.array(z.string()),
|
|
70
|
+
witnesses: z.array(z.string())
|
|
71
|
+
});
|
|
72
|
+
var oneSigPartitionSchema = z.object({
|
|
73
|
+
signingConfigHash: z.string(),
|
|
74
|
+
chains: z.array(z.string())
|
|
75
|
+
});
|
|
76
|
+
var oneSigInstanceConfigSchema = z.object({
|
|
77
|
+
name: z.string(),
|
|
78
|
+
members: oneSigInstanceMembersSchema,
|
|
79
|
+
signingConfigs: z.record(z.string(), oneSigSigningConfigSchema).describe("Signing configs keyed by content hash"),
|
|
80
|
+
executionConfigs: z.record(z.string(), oneSigExecutorConfigSchema).describe("Execution configs keyed by content hash"),
|
|
81
|
+
perChainConfigs: z.record(z.string(), oneSigPerChainConfigSchema),
|
|
82
|
+
version: z.string().optional(),
|
|
83
|
+
createdAt: z.number().optional(),
|
|
84
|
+
updatedAt: z.number().optional()
|
|
85
|
+
});
|
|
86
|
+
var listOneSigInstancesResponseSchema = z.object({
|
|
87
|
+
instances: z.array(oneSigInstanceSummarySchema),
|
|
88
|
+
nextToken: z.string().nullable()
|
|
89
|
+
});
|
|
90
|
+
var manageMemberActionSchema = z.enum(ManageMemberAction);
|
|
91
|
+
var manageMemberRoleSchema = z.enum(ManageMemberRole);
|
|
92
|
+
var manageMemberRequestSchema = z.object({
|
|
93
|
+
action: manageMemberActionSchema,
|
|
94
|
+
role: manageMemberRoleSchema,
|
|
95
|
+
addresses: z.array(z.string())
|
|
96
|
+
});
|
|
56
97
|
var DeployOneSigOrchestratorStatus = /* @__PURE__ */ (function(DeployOneSigOrchestratorStatus2) {
|
|
57
98
|
DeployOneSigOrchestratorStatus2["INIT"] = "INIT";
|
|
58
99
|
DeployOneSigOrchestratorStatus2["ONE_SIG_CONFIG_NOT_FOUND"] = "ONE_SIG_CONFIG_NOT_FOUND";
|
|
@@ -64,6 +105,6 @@ var DeployOneSigOrchestratorStatus = /* @__PURE__ */ (function(DeployOneSigOrche
|
|
|
64
105
|
return DeployOneSigOrchestratorStatus2;
|
|
65
106
|
})({});
|
|
66
107
|
|
|
67
|
-
export { DeployOneSigOrchestratorStatus, ManageMemberAction, ManageMemberRole, OneSigConfigOwner, OneSigRole, oneSigConfigOwnerSchema, oneSigConfigSchema, oneSigExecutorConfigSchema, oneSigOffchainConfigSchema, oneSigOnchainConfigSchema, oneSigSigningConfigSchema };
|
|
68
|
-
//# sourceMappingURL=
|
|
69
|
-
//# sourceMappingURL=
|
|
108
|
+
export { DeployOneSigOrchestratorStatus, ManageMemberAction, ManageMemberRole, OneSigConfigOwner, OneSigRole, listOneSigInstancesResponseSchema, manageMemberActionSchema, manageMemberRequestSchema, manageMemberRoleSchema, oneSigConfigOwnerSchema, oneSigConfigSchema, oneSigExecutorConfigSchema, oneSigInstanceConfigSchema, oneSigInstanceMembersSchema, oneSigInstanceSummarySchema, oneSigOffchainConfigSchema, oneSigOnchainConfigSchema, oneSigPartitionSchema, oneSigPerChainConfigSchema, oneSigRoleSchema, oneSigSigningConfigSchema };
|
|
109
|
+
//# sourceMappingURL=MLOBZFUZ.js.map
|
|
110
|
+
//# sourceMappingURL=MLOBZFUZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/model/onesig-config/onesig-config.ts"],"names":["oneSigExecutorConfigSchema","z","object","executors","array","string","executorRequired","boolean","oneSigOnchainConfigSchema","signers","threshold","number","seed","executorConfigByChainType","record","oneSigOffchainConfigSchema","name","contractAddresses","proposers","witnesses","optional","OneSigConfigOwner","oneSigConfigOwnerSchema","enum","oneSigConfigSchema","extend","shape","version","leafEncodingVersion","owner","describe","lastValidatedAt","createdAt","updatedAt","updatedBy","OneSigRole","ManageMemberAction","ManageMemberRole","oneSigRoleSchema","oneSigSigningConfigSchema","oneSigInstanceSummarySchema","role","oneSigPerChainConfigSchema","contractAddress","signingConfig","executionConfig","oneSigInstanceMembersSchema","oneSigPartitionSchema","signingConfigHash","chains","oneSigInstanceConfigSchema","members","signingConfigs","executionConfigs","perChainConfigs","listOneSigInstancesResponseSchema","instances","nextToken","nullable","manageMemberActionSchema","manageMemberRoleSchema","manageMemberRequestSchema","action","addresses","DeployOneSigOrchestratorStatus"],"mappings":";;;AAMO,IAAMA,0BAAAA,GAA6BC,EAAEC,MAAAA,CAAO;AAC/CC,EAAAA,SAAAA,EAAWF,CAAAA,CAAEG,KAAAA,CAAMH,CAAAA,CAAEI,MAAAA,EAAM,CAAA;AAC3BC,EAAAA,gBAAAA,EAAkBL,EAAEM,OAAAA;AACxB,CAAA;AAIO,IAAMC,yBAAAA,GAA4BP,EAAEC,MAAAA,CAAO;AAC9CO,EAAAA,OAAAA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AAS1B,CAAAA,CAAEI,MAAAA,EAAM,CAAGe,QAAAA,EAAQ;EAC5BY,SAAAA,EAAW/B,CAAAA,CAAEU,MAAAA,EAAM,CAAGS,QAAAA,EAAQ;EAC9Ba,SAAAA,EAAWhC,CAAAA,CAAEU,MAAAA,EAAM,CAAGS,QAAAA;AAC1B,CAAA;AAIO,IAAMmC,iCAAAA,GAAoCtD,EAAEC,MAAAA,CAAO;EACtDsD,SAAAA,EAAWvD,CAAAA,CAAEG,MAAMoC,2BAAAA,CAAAA;EACnBiB,SAAAA,EAAWxD,CAAAA,CAAEI,MAAAA,EAAM,CAAGqD,QAAAA;AAC1B,CAAA;AAIO,IAAMC,wBAAAA,GAA2B1D,CAAAA,CAAEsB,IAAAA,CAAKa,kBAAAA;AACxC,IAAMwB,sBAAAA,GAAyB3D,CAAAA,CAAEsB,IAAAA,CAAKc,gBAAAA;AAEtC,IAAMwB,yBAAAA,GAA4B5D,EAAEC,MAAAA,CAAO;EAC9C4D,MAAAA,EAAQH,wBAAAA;EACRlB,IAAAA,EAAMmB,sBAAAA;AACNG,EAAAA,SAAAA,EAAW9D,CAAAA,CAAEG,KAAAA,CAAMH,CAAAA,CAAEI,MAAAA,EAAM;AAC/B,CAAA;AAIO,IAAK2D,8BAAAA,6BAAAA,+BAAAA,EAAAA;;;;;;AAM+D,EAAAA,+BAAAA,CAAA,iBAAA,CAAA,GAAA,iBAAA;;AAN/DA,EAAAA,OAAAA,+BAAAA","file":"MLOBZFUZ.js","sourcesContent":["import { z } from 'zod';\n\n/**\n * Executor configuration for a specific chain type.\n * All chains of the same type share the same executor configuration.\n */\nexport const oneSigExecutorConfigSchema = z.object({\n executors: z.array(z.string()), // Chain-specific addresses\n executorRequired: z.boolean(),\n});\n\nexport type OneSigExecutorConfig = z.infer<typeof oneSigExecutorConfigSchema>;\n\nexport const oneSigOnchainConfigSchema = z.object({\n signers: z.array(z.string()),\n threshold: z.number(),\n seed: z.string(),\n executorConfigByChainType: z.record(z.string(), oneSigExecutorConfigSchema),\n});\n\nexport type OneSigOnchainConfig = z.infer<typeof oneSigOnchainConfigSchema>;\n\nexport const oneSigOffchainConfigSchema = z.object({\n name: z.string(),\n contractAddresses: z.record(z.string(), z.string()),\n proposers: z.array(z.string()),\n witnesses: z.array(z.string()).optional(),\n});\n\nexport type OneSigOffchainConfig = z.infer<typeof oneSigOffchainConfigSchema>;\n\n/** Identifies who owns/manages this OneSig config. Absent means it was created via the standard flow. */\nexport enum OneSigConfigOwner {\n PRIVATE_API = 'private-api',\n}\n\nexport const oneSigConfigOwnerSchema = z.enum(OneSigConfigOwner);\n\n/**\n * Full OneSig configuration including both on-chain and off-chain values.\n * Extends onchain config with off-chain fields (proposers, witnesses) and metadata.\n */\nexport const oneSigConfigSchema = oneSigOnchainConfigSchema.extend({\n ...oneSigOffchainConfigSchema.shape,\n\n version: z.string().optional(),\n leafEncodingVersion: z.string().optional(),\n owner: oneSigConfigOwnerSchema\n .optional()\n .describe('Who owns/manages this config. Absent means standard flow.'),\n lastValidatedAt: z\n .number()\n .optional()\n .describe('When the config was last validated, unix timestamp in milliseconds'),\n createdAt: z\n .number()\n .optional()\n .describe('When the config was created, unix timestamp in milliseconds'),\n updatedAt: z\n .number()\n .optional()\n .describe('When the config was last updated, unix timestamp in milliseconds'),\n updatedBy: z.string().optional().describe('Who made the last update (workflow ID, user, etc.)'),\n});\n\n/**\n * @deprecated Use {@link OneSigInstanceConfig} instead. This flat config type is\n * retained for legacy backend consumers only and should not be used in new code.\n */\nexport type OneSigConfig = z.infer<typeof oneSigConfigSchema>;\n\n// ============================================================================\n// Instance & Member Types (V3 endpoints)\n// ============================================================================\n\nexport enum OneSigRole {\n SIGNER = 'SIGNER',\n PROPOSER = 'PROPOSER',\n WITNESS = 'WITNESS',\n}\n\nexport enum ManageMemberAction {\n ADD = 'ADD',\n REMOVE = 'REMOVE',\n}\n\nexport enum ManageMemberRole {\n PROPOSER = 'PROPOSER',\n WITNESS = 'WITNESS',\n}\n\nexport const oneSigRoleSchema = z.enum(OneSigRole);\n\nexport const oneSigSigningConfigSchema = z.object({\n seed: z.string(),\n threshold: z.number(),\n signers: z.array(z.string()),\n});\nexport type OneSigSigningConfig = z.infer<typeof oneSigSigningConfigSchema>;\n\nexport const oneSigInstanceSummarySchema = z.object({\n name: z.string(),\n role: oneSigRoleSchema,\n});\nexport type OneSigInstanceSummary = z.infer<typeof oneSigInstanceSummarySchema>;\n\nexport const oneSigPerChainConfigSchema = z.object({\n contractAddress: z.string(),\n signingConfig: z.string().describe('Hash referencing an entry in signingConfigs'),\n executionConfig: z\n .string()\n .optional()\n .describe('Hash referencing an entry in executionConfigs'),\n createdAt: z.number().optional().describe('When this chain config was created, unix ms'),\n updatedAt: z\n .number()\n .optional()\n .describe('When this chain config was last refreshed from chain, unix ms'),\n});\n\nexport type OneSigPerChainConfig = z.infer<typeof oneSigPerChainConfigSchema>;\n\nexport const oneSigInstanceMembersSchema = z.object({\n proposers: z.array(z.string()),\n witnesses: z.array(z.string()),\n});\n\nexport type OneSigInstanceMembers = z.infer<typeof oneSigInstanceMembersSchema>;\n\n/**\n * Partition of chains that share the same signing config.\n * Present when the API includes partition metadata; otherwise derive from\n * signingConfigs + perChainConfigs. Unused by legacy flat-config consumers.\n */\nexport const oneSigPartitionSchema = z.object({\n signingConfigHash: z.string(),\n chains: z.array(z.string()),\n});\n\nexport type OneSigPartition = z.infer<typeof oneSigPartitionSchema>;\n\nexport const oneSigInstanceConfigSchema = z.object({\n name: z.string(),\n members: oneSigInstanceMembersSchema,\n signingConfigs: z\n .record(z.string(), oneSigSigningConfigSchema)\n .describe('Signing configs keyed by content hash'),\n executionConfigs: z\n .record(z.string(), oneSigExecutorConfigSchema)\n .describe('Execution configs keyed by content hash'),\n perChainConfigs: z.record(z.string(), oneSigPerChainConfigSchema),\n version: z.string().optional(),\n createdAt: z.number().optional(),\n updatedAt: z.number().optional(),\n});\n\nexport type OneSigInstanceConfig = z.infer<typeof oneSigInstanceConfigSchema>;\n\nexport const listOneSigInstancesResponseSchema = z.object({\n instances: z.array(oneSigInstanceSummarySchema),\n nextToken: z.string().nullable(),\n});\n\nexport type ListOneSigInstancesResponse = z.infer<typeof listOneSigInstancesResponseSchema>;\n\nexport const manageMemberActionSchema = z.enum(ManageMemberAction);\nexport const manageMemberRoleSchema = z.enum(ManageMemberRole);\n\nexport const manageMemberRequestSchema = z.object({\n action: manageMemberActionSchema,\n role: manageMemberRoleSchema,\n addresses: z.array(z.string()),\n});\n\nexport type ManageMemberRequest = z.infer<typeof manageMemberRequestSchema>;\n\nexport enum DeployOneSigOrchestratorStatus {\n INIT = 'INIT',\n ONE_SIG_CONFIG_NOT_FOUND = 'ONE_SIG_CONFIG_NOT_FOUND',\n DEPLOYING = 'DEPLOYING',\n STORING_CONFIG = 'STORING_CONFIG',\n STORE_CONFIG_FAILED = 'STORE_CONFIG_FAILED',\n /** Some chain deployments failed, but partial config was stored to DB */\n PARTIAL_SUCCESS = 'PARTIAL_SUCCESS',\n SUCCEEDED = 'SUCCEEDED',\n}\n"]}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './PNCMGEVV.js';
|
|
2
|
-
export { oneSigConfigApiResponseSchema } from './
|
|
3
|
-
export { DeployOneSigOrchestratorStatus, ManageMemberAction, ManageMemberRole, OneSigConfigOwner, OneSigRole, oneSigConfigOwnerSchema, oneSigConfigSchema, oneSigExecutorConfigSchema, oneSigOffchainConfigSchema, oneSigOnchainConfigSchema, oneSigSigningConfigSchema } from './
|
|
2
|
+
export { oneSigConfigApiResponseSchema } from './EIDT3C6X.js';
|
|
3
|
+
export { DeployOneSigOrchestratorStatus, ManageMemberAction, ManageMemberRole, OneSigConfigOwner, OneSigRole, listOneSigInstancesResponseSchema, manageMemberActionSchema, manageMemberRequestSchema, manageMemberRoleSchema, oneSigConfigOwnerSchema, oneSigConfigSchema, oneSigExecutorConfigSchema, oneSigInstanceConfigSchema, oneSigInstanceMembersSchema, oneSigInstanceSummarySchema, oneSigOffchainConfigSchema, oneSigOnchainConfigSchema, oneSigPartitionSchema, oneSigPerChainConfigSchema, oneSigRoleSchema, oneSigSigningConfigSchema } from './MLOBZFUZ.js';
|
|
4
4
|
export { ONESIG_AUTH_HEADERS, ONESIG_AUTH_HEADER_NAMES } from './45W5UJ2Y.js';
|
|
5
5
|
import './P2ZSGLQK.js';
|
|
6
6
|
export { oneSigSessionSchema } from './5UA4EFKV.js';
|
package/dist/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../PNCMGEVV.js';
|
|
2
|
-
export { oneSigConfigApiResponseSchema } from '../
|
|
3
|
-
export { DeployOneSigOrchestratorStatus, ManageMemberAction, ManageMemberRole, OneSigConfigOwner, OneSigRole, oneSigConfigOwnerSchema, oneSigConfigSchema, oneSigExecutorConfigSchema, oneSigOffchainConfigSchema, oneSigOnchainConfigSchema, oneSigSigningConfigSchema } from '../
|
|
2
|
+
export { oneSigConfigApiResponseSchema } from '../EIDT3C6X.js';
|
|
3
|
+
export { DeployOneSigOrchestratorStatus, ManageMemberAction, ManageMemberRole, OneSigConfigOwner, OneSigRole, listOneSigInstancesResponseSchema, manageMemberActionSchema, manageMemberRequestSchema, manageMemberRoleSchema, oneSigConfigOwnerSchema, oneSigConfigSchema, oneSigExecutorConfigSchema, oneSigInstanceConfigSchema, oneSigInstanceMembersSchema, oneSigInstanceSummarySchema, oneSigOffchainConfigSchema, oneSigOnchainConfigSchema, oneSigPartitionSchema, oneSigPerChainConfigSchema, oneSigRoleSchema, oneSigSigningConfigSchema } from '../MLOBZFUZ.js';
|
|
4
4
|
export { ONESIG_AUTH_HEADERS, ONESIG_AUTH_HEADER_NAMES } from '../45W5UJ2Y.js';
|
|
5
5
|
import '../P2ZSGLQK.js';
|
|
6
6
|
export { oneSigSessionSchema } from '../5UA4EFKV.js';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export * from './onesig-config';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Legacy `GET /onesigs` list response. Prefer
|
|
5
|
+
* {@link listOneSigInstancesResponseSchema} (`GET /instances`).
|
|
6
|
+
*/
|
|
3
7
|
export declare const oneSigConfigApiResponseSchema: z.ZodObject<{
|
|
4
8
|
oneSigConfigs: z.ZodArray<z.ZodObject<{
|
|
5
9
|
signers: z.ZodArray<z.ZodString>;
|
|
@@ -22,5 +26,8 @@ export declare const oneSigConfigApiResponseSchema: z.ZodObject<{
|
|
|
22
26
|
witnesses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
27
|
}, z.core.$strip>>;
|
|
24
28
|
}, z.core.$strip>;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Prefer {@link ListOneSigInstancesResponse}.
|
|
31
|
+
*/
|
|
25
32
|
export type OneSigConfigApiResponse = z.infer<typeof oneSigConfigApiResponseSchema>;
|
|
26
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/model/onesig-config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,cAAc,iBAAiB,CAAC;AAEhC,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;iBAExC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/model/onesig-config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,cAAc,iBAAiB,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;iBAExC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { oneSigConfigApiResponseSchema } from '../../
|
|
2
|
-
export { DeployOneSigOrchestratorStatus, ManageMemberAction, ManageMemberRole, OneSigConfigOwner, OneSigRole, oneSigConfigOwnerSchema, oneSigConfigSchema, oneSigExecutorConfigSchema, oneSigOffchainConfigSchema, oneSigOnchainConfigSchema, oneSigSigningConfigSchema } from '../../
|
|
1
|
+
export { oneSigConfigApiResponseSchema } from '../../EIDT3C6X.js';
|
|
2
|
+
export { DeployOneSigOrchestratorStatus, ManageMemberAction, ManageMemberRole, OneSigConfigOwner, OneSigRole, listOneSigInstancesResponseSchema, manageMemberActionSchema, manageMemberRequestSchema, manageMemberRoleSchema, oneSigConfigOwnerSchema, oneSigConfigSchema, oneSigExecutorConfigSchema, oneSigInstanceConfigSchema, oneSigInstanceMembersSchema, oneSigInstanceSummarySchema, oneSigOffchainConfigSchema, oneSigOnchainConfigSchema, oneSigPartitionSchema, oneSigPerChainConfigSchema, oneSigRoleSchema, oneSigSigningConfigSchema } from '../../MLOBZFUZ.js';
|
|
3
3
|
import '../../VUOMXK5T.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -72,40 +72,84 @@ export declare enum ManageMemberRole {
|
|
|
72
72
|
PROPOSER = "PROPOSER",
|
|
73
73
|
WITNESS = "WITNESS"
|
|
74
74
|
}
|
|
75
|
-
export
|
|
76
|
-
name: string;
|
|
77
|
-
role: OneSigRole;
|
|
78
|
-
};
|
|
75
|
+
export declare const oneSigRoleSchema: z.ZodEnum<typeof OneSigRole>;
|
|
79
76
|
export declare const oneSigSigningConfigSchema: z.ZodObject<{
|
|
80
77
|
seed: z.ZodString;
|
|
81
78
|
threshold: z.ZodNumber;
|
|
82
79
|
signers: z.ZodArray<z.ZodString>;
|
|
83
80
|
}, z.core.$strip>;
|
|
84
81
|
export type OneSigSigningConfig = z.infer<typeof oneSigSigningConfigSchema>;
|
|
85
|
-
export
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
export
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
82
|
+
export declare const oneSigInstanceSummarySchema: z.ZodObject<{
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
role: z.ZodEnum<typeof OneSigRole>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export type OneSigInstanceSummary = z.infer<typeof oneSigInstanceSummarySchema>;
|
|
87
|
+
export declare const oneSigPerChainConfigSchema: z.ZodObject<{
|
|
88
|
+
contractAddress: z.ZodString;
|
|
89
|
+
signingConfig: z.ZodString;
|
|
90
|
+
executionConfig: z.ZodOptional<z.ZodString>;
|
|
91
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type OneSigPerChainConfig = z.infer<typeof oneSigPerChainConfigSchema>;
|
|
95
|
+
export declare const oneSigInstanceMembersSchema: z.ZodObject<{
|
|
96
|
+
proposers: z.ZodArray<z.ZodString>;
|
|
97
|
+
witnesses: z.ZodArray<z.ZodString>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
export type OneSigInstanceMembers = z.infer<typeof oneSigInstanceMembersSchema>;
|
|
100
|
+
/**
|
|
101
|
+
* Partition of chains that share the same signing config.
|
|
102
|
+
* Present when the API includes partition metadata; otherwise derive from
|
|
103
|
+
* signingConfigs + perChainConfigs. Unused by legacy flat-config consumers.
|
|
104
|
+
*/
|
|
105
|
+
export declare const oneSigPartitionSchema: z.ZodObject<{
|
|
106
|
+
signingConfigHash: z.ZodString;
|
|
107
|
+
chains: z.ZodArray<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
export type OneSigPartition = z.infer<typeof oneSigPartitionSchema>;
|
|
110
|
+
export declare const oneSigInstanceConfigSchema: z.ZodObject<{
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
members: z.ZodObject<{
|
|
113
|
+
proposers: z.ZodArray<z.ZodString>;
|
|
114
|
+
witnesses: z.ZodArray<z.ZodString>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
signingConfigs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
117
|
+
seed: z.ZodString;
|
|
118
|
+
threshold: z.ZodNumber;
|
|
119
|
+
signers: z.ZodArray<z.ZodString>;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
executionConfigs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
122
|
+
executors: z.ZodArray<z.ZodString>;
|
|
123
|
+
executorRequired: z.ZodBoolean;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
perChainConfigs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
126
|
+
contractAddress: z.ZodString;
|
|
127
|
+
signingConfig: z.ZodString;
|
|
128
|
+
executionConfig: z.ZodOptional<z.ZodString>;
|
|
129
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
130
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
}, z.core.$strip>>;
|
|
132
|
+
version: z.ZodOptional<z.ZodString>;
|
|
133
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export type OneSigInstanceConfig = z.infer<typeof oneSigInstanceConfigSchema>;
|
|
137
|
+
export declare const listOneSigInstancesResponseSchema: z.ZodObject<{
|
|
138
|
+
instances: z.ZodArray<z.ZodObject<{
|
|
139
|
+
name: z.ZodString;
|
|
140
|
+
role: z.ZodEnum<typeof OneSigRole>;
|
|
141
|
+
}, z.core.$strip>>;
|
|
142
|
+
nextToken: z.ZodNullable<z.ZodString>;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
export type ListOneSigInstancesResponse = z.infer<typeof listOneSigInstancesResponseSchema>;
|
|
145
|
+
export declare const manageMemberActionSchema: z.ZodEnum<typeof ManageMemberAction>;
|
|
146
|
+
export declare const manageMemberRoleSchema: z.ZodEnum<typeof ManageMemberRole>;
|
|
147
|
+
export declare const manageMemberRequestSchema: z.ZodObject<{
|
|
148
|
+
action: z.ZodEnum<typeof ManageMemberAction>;
|
|
149
|
+
role: z.ZodEnum<typeof ManageMemberRole>;
|
|
150
|
+
addresses: z.ZodArray<z.ZodString>;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
export type ManageMemberRequest = z.infer<typeof manageMemberRequestSchema>;
|
|
109
153
|
export declare enum DeployOneSigOrchestratorStatus {
|
|
110
154
|
INIT = "INIT",
|
|
111
155
|
ONE_SIG_CONFIG_NOT_FOUND = "ONE_SIG_CONFIG_NOT_FOUND",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onesig-config.d.ts","sourceRoot":"","sources":["../../../src/model/onesig-config/onesig-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,yBAAyB;;;;;;;;iBAKpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,0BAA0B;;;;;iBAKrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OA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B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,eAAO,MAAM,wBAAwB,sCAA6B,CAAC;AACnE,eAAO,MAAM,sBAAsB,oCAA2B,CAAC;AAE/D,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,oBAAY,8BAA8B;IACtC,IAAI,SAAS;IACb,wBAAwB,6BAA6B;IACrD,SAAS,cAAc;IACvB,cAAc,mBAAmB;IACjC,mBAAmB,wBAAwB;IAC3C,yEAAyE;IACzE,eAAe,oBAAoB;IACnC,SAAS,cAAc;CAC1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DeployOneSigOrchestratorStatus, ManageMemberAction, ManageMemberRole, OneSigConfigOwner, OneSigRole, oneSigConfigOwnerSchema, oneSigConfigSchema, oneSigExecutorConfigSchema, oneSigOffchainConfigSchema, oneSigOnchainConfigSchema, oneSigSigningConfigSchema } from '../../
|
|
1
|
+
export { DeployOneSigOrchestratorStatus, ManageMemberAction, ManageMemberRole, OneSigConfigOwner, OneSigRole, listOneSigInstancesResponseSchema, manageMemberActionSchema, manageMemberRequestSchema, manageMemberRoleSchema, oneSigConfigOwnerSchema, oneSigConfigSchema, oneSigExecutorConfigSchema, oneSigInstanceConfigSchema, oneSigInstanceMembersSchema, oneSigInstanceSummarySchema, oneSigOffchainConfigSchema, oneSigOnchainConfigSchema, oneSigPartitionSchema, oneSigPerChainConfigSchema, oneSigRoleSchema, oneSigSigningConfigSchema } from '../../MLOBZFUZ.js';
|
|
2
2
|
import '../../VUOMXK5T.js';
|
|
3
3
|
//# sourceMappingURL=onesig-config.js.map
|
|
4
4
|
//# sourceMappingURL=onesig-config.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/onesig-model",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.26",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"tsup": "^8.4.0",
|
|
20
20
|
"vitest": "^3.2.6",
|
|
21
|
-
"@layerzerolabs/tsup-configuration": "1.2.
|
|
22
|
-
"@layerzerolabs/typescript-configuration": "1.2.
|
|
21
|
+
"@layerzerolabs/tsup-configuration": "1.2.26",
|
|
22
|
+
"@layerzerolabs/typescript-configuration": "1.2.26"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public",
|
|
@@ -4,8 +4,15 @@ import { oneSigConfigSchema } from './onesig-config';
|
|
|
4
4
|
|
|
5
5
|
export * from './onesig-config';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Legacy `GET /onesigs` list response. Prefer
|
|
9
|
+
* {@link listOneSigInstancesResponseSchema} (`GET /instances`).
|
|
10
|
+
*/
|
|
7
11
|
export const oneSigConfigApiResponseSchema = z.object({
|
|
8
12
|
oneSigConfigs: z.array(oneSigConfigSchema),
|
|
9
13
|
});
|
|
10
14
|
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Prefer {@link ListOneSigInstancesResponse}.
|
|
17
|
+
*/
|
|
11
18
|
export type OneSigConfigApiResponse = z.infer<typeof oneSigConfigApiResponseSchema>;
|
|
@@ -89,46 +89,90 @@ export enum ManageMemberRole {
|
|
|
89
89
|
WITNESS = 'WITNESS',
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
export
|
|
93
|
-
name: string;
|
|
94
|
-
role: OneSigRole;
|
|
95
|
-
};
|
|
92
|
+
export const oneSigRoleSchema = z.enum(OneSigRole);
|
|
96
93
|
|
|
97
94
|
export const oneSigSigningConfigSchema = z.object({
|
|
98
95
|
seed: z.string(),
|
|
99
96
|
threshold: z.number(),
|
|
100
97
|
signers: z.array(z.string()),
|
|
101
98
|
});
|
|
102
|
-
|
|
103
99
|
export type OneSigSigningConfig = z.infer<typeof oneSigSigningConfigSchema>;
|
|
104
100
|
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
export
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
export
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
101
|
+
export const oneSigInstanceSummarySchema = z.object({
|
|
102
|
+
name: z.string(),
|
|
103
|
+
role: oneSigRoleSchema,
|
|
104
|
+
});
|
|
105
|
+
export type OneSigInstanceSummary = z.infer<typeof oneSigInstanceSummarySchema>;
|
|
106
|
+
|
|
107
|
+
export const oneSigPerChainConfigSchema = z.object({
|
|
108
|
+
contractAddress: z.string(),
|
|
109
|
+
signingConfig: z.string().describe('Hash referencing an entry in signingConfigs'),
|
|
110
|
+
executionConfig: z
|
|
111
|
+
.string()
|
|
112
|
+
.optional()
|
|
113
|
+
.describe('Hash referencing an entry in executionConfigs'),
|
|
114
|
+
createdAt: z.number().optional().describe('When this chain config was created, unix ms'),
|
|
115
|
+
updatedAt: z
|
|
116
|
+
.number()
|
|
117
|
+
.optional()
|
|
118
|
+
.describe('When this chain config was last refreshed from chain, unix ms'),
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
export type OneSigPerChainConfig = z.infer<typeof oneSigPerChainConfigSchema>;
|
|
122
|
+
|
|
123
|
+
export const oneSigInstanceMembersSchema = z.object({
|
|
124
|
+
proposers: z.array(z.string()),
|
|
125
|
+
witnesses: z.array(z.string()),
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
export type OneSigInstanceMembers = z.infer<typeof oneSigInstanceMembersSchema>;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Partition of chains that share the same signing config.
|
|
132
|
+
* Present when the API includes partition metadata; otherwise derive from
|
|
133
|
+
* signingConfigs + perChainConfigs. Unused by legacy flat-config consumers.
|
|
134
|
+
*/
|
|
135
|
+
export const oneSigPartitionSchema = z.object({
|
|
136
|
+
signingConfigHash: z.string(),
|
|
137
|
+
chains: z.array(z.string()),
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
export type OneSigPartition = z.infer<typeof oneSigPartitionSchema>;
|
|
141
|
+
|
|
142
|
+
export const oneSigInstanceConfigSchema = z.object({
|
|
143
|
+
name: z.string(),
|
|
144
|
+
members: oneSigInstanceMembersSchema,
|
|
145
|
+
signingConfigs: z
|
|
146
|
+
.record(z.string(), oneSigSigningConfigSchema)
|
|
147
|
+
.describe('Signing configs keyed by content hash'),
|
|
148
|
+
executionConfigs: z
|
|
149
|
+
.record(z.string(), oneSigExecutorConfigSchema)
|
|
150
|
+
.describe('Execution configs keyed by content hash'),
|
|
151
|
+
perChainConfigs: z.record(z.string(), oneSigPerChainConfigSchema),
|
|
152
|
+
version: z.string().optional(),
|
|
153
|
+
createdAt: z.number().optional(),
|
|
154
|
+
updatedAt: z.number().optional(),
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
export type OneSigInstanceConfig = z.infer<typeof oneSigInstanceConfigSchema>;
|
|
158
|
+
|
|
159
|
+
export const listOneSigInstancesResponseSchema = z.object({
|
|
160
|
+
instances: z.array(oneSigInstanceSummarySchema),
|
|
161
|
+
nextToken: z.string().nullable(),
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
export type ListOneSigInstancesResponse = z.infer<typeof listOneSigInstancesResponseSchema>;
|
|
165
|
+
|
|
166
|
+
export const manageMemberActionSchema = z.enum(ManageMemberAction);
|
|
167
|
+
export const manageMemberRoleSchema = z.enum(ManageMemberRole);
|
|
168
|
+
|
|
169
|
+
export const manageMemberRequestSchema = z.object({
|
|
170
|
+
action: manageMemberActionSchema,
|
|
171
|
+
role: manageMemberRoleSchema,
|
|
172
|
+
addresses: z.array(z.string()),
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
export type ManageMemberRequest = z.infer<typeof manageMemberRequestSchema>;
|
|
132
176
|
|
|
133
177
|
export enum DeployOneSigOrchestratorStatus {
|
|
134
178
|
INIT = 'INIT',
|
package/dist/4SXXOLRO.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/model/onesig-config/index.ts"],"names":["oneSigConfigApiResponseSchema","z","object","oneSigConfigs","array","oneSigConfigSchema"],"mappings":";;;AAMO,IAAMA,6BAAAA,GAAgCC,EAAEC,MAAAA,CAAO;EAClDC,aAAAA,EAAeF,CAAAA,CAAEG,MAAMC,kBAAAA;AAC3B,CAAA","file":"4SXXOLRO.js","sourcesContent":["import { z } from 'zod';\n\nimport { oneSigConfigSchema } from './onesig-config';\n\nexport * from './onesig-config';\n\nexport const oneSigConfigApiResponseSchema = z.object({\n oneSigConfigs: z.array(oneSigConfigSchema),\n});\n\nexport type OneSigConfigApiResponse = z.infer<typeof oneSigConfigApiResponseSchema>;\n"]}
|
package/dist/KG3IN4CA.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/model/onesig-config/onesig-config.ts"],"names":["oneSigExecutorConfigSchema","z","object","executors","array","string","executorRequired","boolean","oneSigOnchainConfigSchema","signers","threshold","number","seed","executorConfigByChainType","record","oneSigOffchainConfigSchema","name","contractAddresses","proposers","witnesses","optional","OneSigConfigOwner","oneSigConfigOwnerSchema","enum","oneSigConfigSchema","extend","shape","version","leafEncodingVersion","owner","describe","lastValidatedAt","createdAt","updatedAt","updatedBy","OneSigRole","ManageMemberAction","ManageMemberRole","oneSigSigningConfigSchema","DeployOneSigOrchestratorStatus"],"mappings":";;;AAMO,IAAMA,0BAAAA,GAA6BC,EAAEC,MAAAA,CAAO;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n * Executor configuration for a specific chain type.\n * All chains of the same type share the same executor configuration.\n */\nexport const oneSigExecutorConfigSchema = z.object({\n executors: z.array(z.string()), // Chain-specific addresses\n executorRequired: z.boolean(),\n});\n\nexport type OneSigExecutorConfig = z.infer<typeof oneSigExecutorConfigSchema>;\n\nexport const oneSigOnchainConfigSchema = z.object({\n signers: z.array(z.string()),\n threshold: z.number(),\n seed: z.string(),\n executorConfigByChainType: z.record(z.string(), oneSigExecutorConfigSchema),\n});\n\nexport type OneSigOnchainConfig = z.infer<typeof oneSigOnchainConfigSchema>;\n\nexport const oneSigOffchainConfigSchema = z.object({\n name: z.string(),\n contractAddresses: z.record(z.string(), z.string()),\n proposers: z.array(z.string()),\n witnesses: z.array(z.string()).optional(),\n});\n\nexport type OneSigOffchainConfig = z.infer<typeof oneSigOffchainConfigSchema>;\n\n/** Identifies who owns/manages this OneSig config. Absent means it was created via the standard flow. */\nexport enum OneSigConfigOwner {\n PRIVATE_API = 'private-api',\n}\n\nexport const oneSigConfigOwnerSchema = z.enum(OneSigConfigOwner);\n\n/**\n * Full OneSig configuration including both on-chain and off-chain values.\n * Extends onchain config with off-chain fields (proposers, witnesses) and metadata.\n */\nexport const oneSigConfigSchema = oneSigOnchainConfigSchema.extend({\n ...oneSigOffchainConfigSchema.shape,\n\n version: z.string().optional(),\n leafEncodingVersion: z.string().optional(),\n owner: oneSigConfigOwnerSchema\n .optional()\n .describe('Who owns/manages this config. Absent means standard flow.'),\n lastValidatedAt: z\n .number()\n .optional()\n .describe('When the config was last validated, unix timestamp in milliseconds'),\n createdAt: z\n .number()\n .optional()\n .describe('When the config was created, unix timestamp in milliseconds'),\n updatedAt: z\n .number()\n .optional()\n .describe('When the config was last updated, unix timestamp in milliseconds'),\n updatedBy: z.string().optional().describe('Who made the last update (workflow ID, user, etc.)'),\n});\n\n/**\n * @deprecated Use {@link OneSigInstanceConfig} instead. This flat config type is\n * retained for legacy backend consumers only and should not be used in new code.\n */\nexport type OneSigConfig = z.infer<typeof oneSigConfigSchema>;\n\n// ============================================================================\n// Instance & Member Types (V3 endpoints)\n// ============================================================================\n\nexport enum OneSigRole {\n SIGNER = 'SIGNER',\n PROPOSER = 'PROPOSER',\n WITNESS = 'WITNESS',\n}\n\nexport enum ManageMemberAction {\n ADD = 'ADD',\n REMOVE = 'REMOVE',\n}\n\nexport enum ManageMemberRole {\n PROPOSER = 'PROPOSER',\n WITNESS = 'WITNESS',\n}\n\nexport type OneSigInstanceSummary = {\n name: string;\n role: OneSigRole;\n};\n\nexport const oneSigSigningConfigSchema = z.object({\n seed: z.string(),\n threshold: z.number(),\n signers: z.array(z.string()),\n});\n\nexport type OneSigSigningConfig = z.infer<typeof oneSigSigningConfigSchema>;\n\nexport type OneSigPerChainConfig = {\n contractAddress: string;\n signingConfig: string;\n executionConfig?: string;\n};\n\nexport type OneSigInstanceMembers = {\n proposers: string[];\n witnesses: string[];\n};\n\nexport type OneSigInstanceConfig = {\n name: string;\n members: OneSigInstanceMembers;\n signingConfigs: Record<string, OneSigSigningConfig>;\n executionConfigs: Record<string, OneSigExecutorConfig>;\n perChainConfigs: Record<string, OneSigPerChainConfig>;\n version?: string;\n createdAt?: number;\n updatedAt?: number;\n};\n\nexport type ManageMemberRequest = {\n action: ManageMemberAction;\n role: ManageMemberRole;\n addresses: string[];\n};\n\nexport enum DeployOneSigOrchestratorStatus {\n INIT = 'INIT',\n ONE_SIG_CONFIG_NOT_FOUND = 'ONE_SIG_CONFIG_NOT_FOUND',\n DEPLOYING = 'DEPLOYING',\n STORING_CONFIG = 'STORING_CONFIG',\n STORE_CONFIG_FAILED = 'STORE_CONFIG_FAILED',\n /** Some chain deployments failed, but partial config was stored to DB */\n PARTIAL_SUCCESS = 'PARTIAL_SUCCESS',\n SUCCEEDED = 'SUCCEEDED',\n}\n"]}
|