@compass-labs/api-sdk 2.2.34-rc.9 → 2.2.35-rc.0
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/README.md +3 -1
- package/codeSamples_typescript.yaml +6 -0
- package/dist/commonjs/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.d.ts +23 -0
- package/dist/commonjs/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.d.ts.map +1 -0
- package/dist/commonjs/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.js +123 -0
- package/dist/commonjs/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/traditionalinvestingensureleveragerequest.d.ts +23 -0
- package/dist/commonjs/models/components/traditionalinvestingensureleveragerequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/traditionalinvestingensureleveragerequest.js +50 -0
- package/dist/commonjs/models/components/traditionalinvestingensureleveragerequest.js.map +1 -0
- package/dist/commonjs/models/components/traditionalinvestingensureleverageresponse.d.ts +37 -0
- package/dist/commonjs/models/components/traditionalinvestingensureleverageresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/traditionalinvestingensureleverageresponse.js +59 -0
- package/dist/commonjs/models/components/traditionalinvestingensureleverageresponse.js.map +1 -0
- package/dist/commonjs/sdk/traditionalinvesting.d.ts +12 -0
- package/dist/commonjs/sdk/traditionalinvesting.d.ts.map +1 -1
- package/dist/commonjs/sdk/traditionalinvesting.js +15 -0
- package/dist/commonjs/sdk/traditionalinvesting.js.map +1 -1
- package/dist/esm/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.d.ts +23 -0
- package/dist/esm/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.d.ts.map +1 -0
- package/dist/esm/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.js +87 -0
- package/dist/esm/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/traditionalinvestingensureleveragerequest.d.ts +23 -0
- package/dist/esm/models/components/traditionalinvestingensureleveragerequest.d.ts.map +1 -0
- package/dist/esm/models/components/traditionalinvestingensureleveragerequest.js +13 -0
- package/dist/esm/models/components/traditionalinvestingensureleveragerequest.js.map +1 -0
- package/dist/esm/models/components/traditionalinvestingensureleverageresponse.d.ts +37 -0
- package/dist/esm/models/components/traditionalinvestingensureleverageresponse.d.ts.map +1 -0
- package/dist/esm/models/components/traditionalinvestingensureleverageresponse.js +22 -0
- package/dist/esm/models/components/traditionalinvestingensureleverageresponse.js.map +1 -0
- package/dist/esm/sdk/traditionalinvesting.d.ts +12 -0
- package/dist/esm/sdk/traditionalinvesting.d.ts.map +1 -1
- package/dist/esm/sdk/traditionalinvesting.js +15 -0
- package/dist/esm/sdk/traditionalinvesting.js.map +1 -1
- package/docs/models/components/traditionalinvestingensureleveragerequest.md +21 -0
- package/docs/models/components/traditionalinvestingensureleverageresponse.md +25 -0
- package/docs/sdks/traditionalinvesting/README.md +82 -0
- package/examples/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/examples/node_modules/@esbuild/linux-x64/package.json +1 -1
- package/examples/node_modules/@types/node/README.md +1 -1
- package/examples/node_modules/@types/node/net.d.ts +21 -2
- package/examples/node_modules/@types/node/package.json +3 -3
- package/examples/node_modules/@types/node/stream/web.d.ts +5 -5
- package/examples/node_modules/@types/node/stream.d.ts +27 -4
- package/examples/node_modules/esbuild/bin/esbuild +1 -1
- package/examples/node_modules/esbuild/lib/main.js +9 -9
- package/examples/node_modules/esbuild/package.json +27 -27
- package/examples/package-lock.json +110 -110
- package/package.json +1 -1
- package/src/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.ts +180 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +2 -0
- package/src/models/components/traditionalinvestingensureleveragerequest.ts +47 -0
- package/src/models/components/traditionalinvestingensureleverageresponse.ts +67 -0
- package/src/sdk/traditionalinvesting.ts +23 -0
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"link": true
|
|
37
37
|
},
|
|
38
38
|
"node_modules/@esbuild/aix-ppc64": {
|
|
39
|
-
"version": "0.27.
|
|
40
|
-
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.
|
|
41
|
-
"integrity": "sha512-
|
|
39
|
+
"version": "0.27.7",
|
|
40
|
+
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz",
|
|
41
|
+
"integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==",
|
|
42
42
|
"cpu": [
|
|
43
43
|
"ppc64"
|
|
44
44
|
],
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"node_modules/@esbuild/android-arm": {
|
|
56
|
-
"version": "0.27.
|
|
57
|
-
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.
|
|
58
|
-
"integrity": "sha512-
|
|
56
|
+
"version": "0.27.7",
|
|
57
|
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz",
|
|
58
|
+
"integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==",
|
|
59
59
|
"cpu": [
|
|
60
60
|
"arm"
|
|
61
61
|
],
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"node_modules/@esbuild/android-arm64": {
|
|
73
|
-
"version": "0.27.
|
|
74
|
-
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.
|
|
75
|
-
"integrity": "sha512-
|
|
73
|
+
"version": "0.27.7",
|
|
74
|
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz",
|
|
75
|
+
"integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==",
|
|
76
76
|
"cpu": [
|
|
77
77
|
"arm64"
|
|
78
78
|
],
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
"node_modules/@esbuild/android-x64": {
|
|
90
|
-
"version": "0.27.
|
|
91
|
-
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.
|
|
92
|
-
"integrity": "sha512-
|
|
90
|
+
"version": "0.27.7",
|
|
91
|
+
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz",
|
|
92
|
+
"integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==",
|
|
93
93
|
"cpu": [
|
|
94
94
|
"x64"
|
|
95
95
|
],
|
|
@@ -104,9 +104,9 @@
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
"node_modules/@esbuild/darwin-arm64": {
|
|
107
|
-
"version": "0.27.
|
|
108
|
-
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.
|
|
109
|
-
"integrity": "sha512-
|
|
107
|
+
"version": "0.27.7",
|
|
108
|
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz",
|
|
109
|
+
"integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==",
|
|
110
110
|
"cpu": [
|
|
111
111
|
"arm64"
|
|
112
112
|
],
|
|
@@ -121,9 +121,9 @@
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
"node_modules/@esbuild/darwin-x64": {
|
|
124
|
-
"version": "0.27.
|
|
125
|
-
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.
|
|
126
|
-
"integrity": "sha512-
|
|
124
|
+
"version": "0.27.7",
|
|
125
|
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz",
|
|
126
|
+
"integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==",
|
|
127
127
|
"cpu": [
|
|
128
128
|
"x64"
|
|
129
129
|
],
|
|
@@ -138,9 +138,9 @@
|
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
"node_modules/@esbuild/freebsd-arm64": {
|
|
141
|
-
"version": "0.27.
|
|
142
|
-
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.
|
|
143
|
-
"integrity": "sha512-
|
|
141
|
+
"version": "0.27.7",
|
|
142
|
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz",
|
|
143
|
+
"integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==",
|
|
144
144
|
"cpu": [
|
|
145
145
|
"arm64"
|
|
146
146
|
],
|
|
@@ -155,9 +155,9 @@
|
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
"node_modules/@esbuild/freebsd-x64": {
|
|
158
|
-
"version": "0.27.
|
|
159
|
-
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.
|
|
160
|
-
"integrity": "sha512-
|
|
158
|
+
"version": "0.27.7",
|
|
159
|
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz",
|
|
160
|
+
"integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==",
|
|
161
161
|
"cpu": [
|
|
162
162
|
"x64"
|
|
163
163
|
],
|
|
@@ -172,9 +172,9 @@
|
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
"node_modules/@esbuild/linux-arm": {
|
|
175
|
-
"version": "0.27.
|
|
176
|
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.
|
|
177
|
-
"integrity": "sha512-
|
|
175
|
+
"version": "0.27.7",
|
|
176
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz",
|
|
177
|
+
"integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==",
|
|
178
178
|
"cpu": [
|
|
179
179
|
"arm"
|
|
180
180
|
],
|
|
@@ -189,9 +189,9 @@
|
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
191
|
"node_modules/@esbuild/linux-arm64": {
|
|
192
|
-
"version": "0.27.
|
|
193
|
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.
|
|
194
|
-
"integrity": "sha512-
|
|
192
|
+
"version": "0.27.7",
|
|
193
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz",
|
|
194
|
+
"integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==",
|
|
195
195
|
"cpu": [
|
|
196
196
|
"arm64"
|
|
197
197
|
],
|
|
@@ -206,9 +206,9 @@
|
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
208
|
"node_modules/@esbuild/linux-ia32": {
|
|
209
|
-
"version": "0.27.
|
|
210
|
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.
|
|
211
|
-
"integrity": "sha512-
|
|
209
|
+
"version": "0.27.7",
|
|
210
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz",
|
|
211
|
+
"integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==",
|
|
212
212
|
"cpu": [
|
|
213
213
|
"ia32"
|
|
214
214
|
],
|
|
@@ -223,9 +223,9 @@
|
|
|
223
223
|
}
|
|
224
224
|
},
|
|
225
225
|
"node_modules/@esbuild/linux-loong64": {
|
|
226
|
-
"version": "0.27.
|
|
227
|
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.
|
|
228
|
-
"integrity": "sha512-
|
|
226
|
+
"version": "0.27.7",
|
|
227
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz",
|
|
228
|
+
"integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==",
|
|
229
229
|
"cpu": [
|
|
230
230
|
"loong64"
|
|
231
231
|
],
|
|
@@ -240,9 +240,9 @@
|
|
|
240
240
|
}
|
|
241
241
|
},
|
|
242
242
|
"node_modules/@esbuild/linux-mips64el": {
|
|
243
|
-
"version": "0.27.
|
|
244
|
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.
|
|
245
|
-
"integrity": "sha512-
|
|
243
|
+
"version": "0.27.7",
|
|
244
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz",
|
|
245
|
+
"integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==",
|
|
246
246
|
"cpu": [
|
|
247
247
|
"mips64el"
|
|
248
248
|
],
|
|
@@ -257,9 +257,9 @@
|
|
|
257
257
|
}
|
|
258
258
|
},
|
|
259
259
|
"node_modules/@esbuild/linux-ppc64": {
|
|
260
|
-
"version": "0.27.
|
|
261
|
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.
|
|
262
|
-
"integrity": "sha512-
|
|
260
|
+
"version": "0.27.7",
|
|
261
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz",
|
|
262
|
+
"integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==",
|
|
263
263
|
"cpu": [
|
|
264
264
|
"ppc64"
|
|
265
265
|
],
|
|
@@ -274,9 +274,9 @@
|
|
|
274
274
|
}
|
|
275
275
|
},
|
|
276
276
|
"node_modules/@esbuild/linux-riscv64": {
|
|
277
|
-
"version": "0.27.
|
|
278
|
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.
|
|
279
|
-
"integrity": "sha512-
|
|
277
|
+
"version": "0.27.7",
|
|
278
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz",
|
|
279
|
+
"integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==",
|
|
280
280
|
"cpu": [
|
|
281
281
|
"riscv64"
|
|
282
282
|
],
|
|
@@ -291,9 +291,9 @@
|
|
|
291
291
|
}
|
|
292
292
|
},
|
|
293
293
|
"node_modules/@esbuild/linux-s390x": {
|
|
294
|
-
"version": "0.27.
|
|
295
|
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.
|
|
296
|
-
"integrity": "sha512
|
|
294
|
+
"version": "0.27.7",
|
|
295
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz",
|
|
296
|
+
"integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==",
|
|
297
297
|
"cpu": [
|
|
298
298
|
"s390x"
|
|
299
299
|
],
|
|
@@ -308,9 +308,9 @@
|
|
|
308
308
|
}
|
|
309
309
|
},
|
|
310
310
|
"node_modules/@esbuild/linux-x64": {
|
|
311
|
-
"version": "0.27.
|
|
312
|
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.
|
|
313
|
-
"integrity": "sha512-
|
|
311
|
+
"version": "0.27.7",
|
|
312
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz",
|
|
313
|
+
"integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==",
|
|
314
314
|
"cpu": [
|
|
315
315
|
"x64"
|
|
316
316
|
],
|
|
@@ -325,9 +325,9 @@
|
|
|
325
325
|
}
|
|
326
326
|
},
|
|
327
327
|
"node_modules/@esbuild/netbsd-arm64": {
|
|
328
|
-
"version": "0.27.
|
|
329
|
-
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.
|
|
330
|
-
"integrity": "sha512-
|
|
328
|
+
"version": "0.27.7",
|
|
329
|
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz",
|
|
330
|
+
"integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==",
|
|
331
331
|
"cpu": [
|
|
332
332
|
"arm64"
|
|
333
333
|
],
|
|
@@ -342,9 +342,9 @@
|
|
|
342
342
|
}
|
|
343
343
|
},
|
|
344
344
|
"node_modules/@esbuild/netbsd-x64": {
|
|
345
|
-
"version": "0.27.
|
|
346
|
-
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.
|
|
347
|
-
"integrity": "sha512-
|
|
345
|
+
"version": "0.27.7",
|
|
346
|
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz",
|
|
347
|
+
"integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==",
|
|
348
348
|
"cpu": [
|
|
349
349
|
"x64"
|
|
350
350
|
],
|
|
@@ -359,9 +359,9 @@
|
|
|
359
359
|
}
|
|
360
360
|
},
|
|
361
361
|
"node_modules/@esbuild/openbsd-arm64": {
|
|
362
|
-
"version": "0.27.
|
|
363
|
-
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.
|
|
364
|
-
"integrity": "sha512-
|
|
362
|
+
"version": "0.27.7",
|
|
363
|
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz",
|
|
364
|
+
"integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==",
|
|
365
365
|
"cpu": [
|
|
366
366
|
"arm64"
|
|
367
367
|
],
|
|
@@ -376,9 +376,9 @@
|
|
|
376
376
|
}
|
|
377
377
|
},
|
|
378
378
|
"node_modules/@esbuild/openbsd-x64": {
|
|
379
|
-
"version": "0.27.
|
|
380
|
-
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.
|
|
381
|
-
"integrity": "sha512
|
|
379
|
+
"version": "0.27.7",
|
|
380
|
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz",
|
|
381
|
+
"integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==",
|
|
382
382
|
"cpu": [
|
|
383
383
|
"x64"
|
|
384
384
|
],
|
|
@@ -393,9 +393,9 @@
|
|
|
393
393
|
}
|
|
394
394
|
},
|
|
395
395
|
"node_modules/@esbuild/openharmony-arm64": {
|
|
396
|
-
"version": "0.27.
|
|
397
|
-
"resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.
|
|
398
|
-
"integrity": "sha512
|
|
396
|
+
"version": "0.27.7",
|
|
397
|
+
"resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz",
|
|
398
|
+
"integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==",
|
|
399
399
|
"cpu": [
|
|
400
400
|
"arm64"
|
|
401
401
|
],
|
|
@@ -410,9 +410,9 @@
|
|
|
410
410
|
}
|
|
411
411
|
},
|
|
412
412
|
"node_modules/@esbuild/sunos-x64": {
|
|
413
|
-
"version": "0.27.
|
|
414
|
-
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.
|
|
415
|
-
"integrity": "sha512
|
|
413
|
+
"version": "0.27.7",
|
|
414
|
+
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz",
|
|
415
|
+
"integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==",
|
|
416
416
|
"cpu": [
|
|
417
417
|
"x64"
|
|
418
418
|
],
|
|
@@ -427,9 +427,9 @@
|
|
|
427
427
|
}
|
|
428
428
|
},
|
|
429
429
|
"node_modules/@esbuild/win32-arm64": {
|
|
430
|
-
"version": "0.27.
|
|
431
|
-
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.
|
|
432
|
-
"integrity": "sha512-
|
|
430
|
+
"version": "0.27.7",
|
|
431
|
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz",
|
|
432
|
+
"integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==",
|
|
433
433
|
"cpu": [
|
|
434
434
|
"arm64"
|
|
435
435
|
],
|
|
@@ -444,9 +444,9 @@
|
|
|
444
444
|
}
|
|
445
445
|
},
|
|
446
446
|
"node_modules/@esbuild/win32-ia32": {
|
|
447
|
-
"version": "0.27.
|
|
448
|
-
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.
|
|
449
|
-
"integrity": "sha512-
|
|
447
|
+
"version": "0.27.7",
|
|
448
|
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz",
|
|
449
|
+
"integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==",
|
|
450
450
|
"cpu": [
|
|
451
451
|
"ia32"
|
|
452
452
|
],
|
|
@@ -461,9 +461,9 @@
|
|
|
461
461
|
}
|
|
462
462
|
},
|
|
463
463
|
"node_modules/@esbuild/win32-x64": {
|
|
464
|
-
"version": "0.27.
|
|
465
|
-
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.
|
|
466
|
-
"integrity": "sha512
|
|
464
|
+
"version": "0.27.7",
|
|
465
|
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz",
|
|
466
|
+
"integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==",
|
|
467
467
|
"cpu": [
|
|
468
468
|
"x64"
|
|
469
469
|
],
|
|
@@ -478,9 +478,9 @@
|
|
|
478
478
|
}
|
|
479
479
|
},
|
|
480
480
|
"node_modules/@types/node": {
|
|
481
|
-
"version": "20.19.
|
|
482
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.
|
|
483
|
-
"integrity": "sha512-
|
|
481
|
+
"version": "20.19.39",
|
|
482
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.39.tgz",
|
|
483
|
+
"integrity": "sha512-orrrD74MBUyK8jOAD/r0+lfa1I2MO6I+vAkmAWzMYbCcgrN4lCrmK52gRFQq/JRxfYPfonkr4b0jcY7Olqdqbw==",
|
|
484
484
|
"dev": true,
|
|
485
485
|
"license": "MIT",
|
|
486
486
|
"dependencies": {
|
|
@@ -501,9 +501,9 @@
|
|
|
501
501
|
}
|
|
502
502
|
},
|
|
503
503
|
"node_modules/esbuild": {
|
|
504
|
-
"version": "0.27.
|
|
505
|
-
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.
|
|
506
|
-
"integrity": "sha512-
|
|
504
|
+
"version": "0.27.7",
|
|
505
|
+
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz",
|
|
506
|
+
"integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==",
|
|
507
507
|
"dev": true,
|
|
508
508
|
"hasInstallScript": true,
|
|
509
509
|
"license": "MIT",
|
|
@@ -514,32 +514,32 @@
|
|
|
514
514
|
"node": ">=18"
|
|
515
515
|
},
|
|
516
516
|
"optionalDependencies": {
|
|
517
|
-
"@esbuild/aix-ppc64": "0.27.
|
|
518
|
-
"@esbuild/android-arm": "0.27.
|
|
519
|
-
"@esbuild/android-arm64": "0.27.
|
|
520
|
-
"@esbuild/android-x64": "0.27.
|
|
521
|
-
"@esbuild/darwin-arm64": "0.27.
|
|
522
|
-
"@esbuild/darwin-x64": "0.27.
|
|
523
|
-
"@esbuild/freebsd-arm64": "0.27.
|
|
524
|
-
"@esbuild/freebsd-x64": "0.27.
|
|
525
|
-
"@esbuild/linux-arm": "0.27.
|
|
526
|
-
"@esbuild/linux-arm64": "0.27.
|
|
527
|
-
"@esbuild/linux-ia32": "0.27.
|
|
528
|
-
"@esbuild/linux-loong64": "0.27.
|
|
529
|
-
"@esbuild/linux-mips64el": "0.27.
|
|
530
|
-
"@esbuild/linux-ppc64": "0.27.
|
|
531
|
-
"@esbuild/linux-riscv64": "0.27.
|
|
532
|
-
"@esbuild/linux-s390x": "0.27.
|
|
533
|
-
"@esbuild/linux-x64": "0.27.
|
|
534
|
-
"@esbuild/netbsd-arm64": "0.27.
|
|
535
|
-
"@esbuild/netbsd-x64": "0.27.
|
|
536
|
-
"@esbuild/openbsd-arm64": "0.27.
|
|
537
|
-
"@esbuild/openbsd-x64": "0.27.
|
|
538
|
-
"@esbuild/openharmony-arm64": "0.27.
|
|
539
|
-
"@esbuild/sunos-x64": "0.27.
|
|
540
|
-
"@esbuild/win32-arm64": "0.27.
|
|
541
|
-
"@esbuild/win32-ia32": "0.27.
|
|
542
|
-
"@esbuild/win32-x64": "0.27.
|
|
517
|
+
"@esbuild/aix-ppc64": "0.27.7",
|
|
518
|
+
"@esbuild/android-arm": "0.27.7",
|
|
519
|
+
"@esbuild/android-arm64": "0.27.7",
|
|
520
|
+
"@esbuild/android-x64": "0.27.7",
|
|
521
|
+
"@esbuild/darwin-arm64": "0.27.7",
|
|
522
|
+
"@esbuild/darwin-x64": "0.27.7",
|
|
523
|
+
"@esbuild/freebsd-arm64": "0.27.7",
|
|
524
|
+
"@esbuild/freebsd-x64": "0.27.7",
|
|
525
|
+
"@esbuild/linux-arm": "0.27.7",
|
|
526
|
+
"@esbuild/linux-arm64": "0.27.7",
|
|
527
|
+
"@esbuild/linux-ia32": "0.27.7",
|
|
528
|
+
"@esbuild/linux-loong64": "0.27.7",
|
|
529
|
+
"@esbuild/linux-mips64el": "0.27.7",
|
|
530
|
+
"@esbuild/linux-ppc64": "0.27.7",
|
|
531
|
+
"@esbuild/linux-riscv64": "0.27.7",
|
|
532
|
+
"@esbuild/linux-s390x": "0.27.7",
|
|
533
|
+
"@esbuild/linux-x64": "0.27.7",
|
|
534
|
+
"@esbuild/netbsd-arm64": "0.27.7",
|
|
535
|
+
"@esbuild/netbsd-x64": "0.27.7",
|
|
536
|
+
"@esbuild/openbsd-arm64": "0.27.7",
|
|
537
|
+
"@esbuild/openbsd-x64": "0.27.7",
|
|
538
|
+
"@esbuild/openharmony-arm64": "0.27.7",
|
|
539
|
+
"@esbuild/sunos-x64": "0.27.7",
|
|
540
|
+
"@esbuild/win32-arm64": "0.27.7",
|
|
541
|
+
"@esbuild/win32-ia32": "0.27.7",
|
|
542
|
+
"@esbuild/win32-x64": "0.27.7"
|
|
543
543
|
}
|
|
544
544
|
},
|
|
545
545
|
"node_modules/fsevents": {
|
package/package.json
CHANGED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { CompassApiSDKCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import * as components from "../models/components/index.js";
|
|
14
|
+
import { CompassAPISDKError } from "../models/errors/compassapisdkerror.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Ensure 1x cross leverage
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Check leverage and prepare an updateLeverage action if not 1x cross.
|
|
33
|
+
*
|
|
34
|
+
* If the asset is already at 1x cross leverage, returns leverage_ok=true
|
|
35
|
+
* with null typed_data — no signing needed. Otherwise, returns EIP-712
|
|
36
|
+
* typed data for the user to sign. After signing, submit the signature
|
|
37
|
+
* via the /execute endpoint.
|
|
38
|
+
*/
|
|
39
|
+
export function traditionalInvestingTraditionalInvestingEnsureLeverage(
|
|
40
|
+
client: CompassApiSDKCore,
|
|
41
|
+
request: components.TraditionalInvestingEnsureLeverageRequest,
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): APIPromise<
|
|
44
|
+
Result<
|
|
45
|
+
components.TraditionalInvestingEnsureLeverageResponse,
|
|
46
|
+
| errors.HTTPValidationError
|
|
47
|
+
| CompassAPISDKError
|
|
48
|
+
| ResponseValidationError
|
|
49
|
+
| ConnectionError
|
|
50
|
+
| RequestAbortedError
|
|
51
|
+
| RequestTimeoutError
|
|
52
|
+
| InvalidRequestError
|
|
53
|
+
| UnexpectedClientError
|
|
54
|
+
| SDKValidationError
|
|
55
|
+
>
|
|
56
|
+
> {
|
|
57
|
+
return new APIPromise($do(
|
|
58
|
+
client,
|
|
59
|
+
request,
|
|
60
|
+
options,
|
|
61
|
+
));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
async function $do(
|
|
65
|
+
client: CompassApiSDKCore,
|
|
66
|
+
request: components.TraditionalInvestingEnsureLeverageRequest,
|
|
67
|
+
options?: RequestOptions,
|
|
68
|
+
): Promise<
|
|
69
|
+
[
|
|
70
|
+
Result<
|
|
71
|
+
components.TraditionalInvestingEnsureLeverageResponse,
|
|
72
|
+
| errors.HTTPValidationError
|
|
73
|
+
| CompassAPISDKError
|
|
74
|
+
| ResponseValidationError
|
|
75
|
+
| ConnectionError
|
|
76
|
+
| RequestAbortedError
|
|
77
|
+
| RequestTimeoutError
|
|
78
|
+
| InvalidRequestError
|
|
79
|
+
| UnexpectedClientError
|
|
80
|
+
| SDKValidationError
|
|
81
|
+
>,
|
|
82
|
+
APICall,
|
|
83
|
+
]
|
|
84
|
+
> {
|
|
85
|
+
const parsed = safeParse(
|
|
86
|
+
request,
|
|
87
|
+
(value) =>
|
|
88
|
+
components.TraditionalInvestingEnsureLeverageRequest$outboundSchema.parse(
|
|
89
|
+
value,
|
|
90
|
+
),
|
|
91
|
+
"Input validation failed",
|
|
92
|
+
);
|
|
93
|
+
if (!parsed.ok) {
|
|
94
|
+
return [parsed, { status: "invalid" }];
|
|
95
|
+
}
|
|
96
|
+
const payload = parsed.value;
|
|
97
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
98
|
+
|
|
99
|
+
const path = pathToFunc("/v2/traditional_investing/ensure_leverage")();
|
|
100
|
+
|
|
101
|
+
const headers = new Headers(compactMap({
|
|
102
|
+
"Content-Type": "application/json",
|
|
103
|
+
Accept: "application/json",
|
|
104
|
+
}));
|
|
105
|
+
|
|
106
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
107
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
108
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
109
|
+
|
|
110
|
+
const context = {
|
|
111
|
+
options: client._options,
|
|
112
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
113
|
+
operationID: "v2_traditional_investing_ensure_leverage",
|
|
114
|
+
oAuth2Scopes: null,
|
|
115
|
+
|
|
116
|
+
resolvedSecurity: requestSecurity,
|
|
117
|
+
|
|
118
|
+
securitySource: client._options.apiKeyAuth,
|
|
119
|
+
retryConfig: options?.retries
|
|
120
|
+
|| client._options.retryConfig
|
|
121
|
+
|| { strategy: "none" },
|
|
122
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
const requestRes = client._createRequest(context, {
|
|
126
|
+
security: requestSecurity,
|
|
127
|
+
method: "POST",
|
|
128
|
+
baseURL: options?.serverURL,
|
|
129
|
+
path: path,
|
|
130
|
+
headers: headers,
|
|
131
|
+
body: body,
|
|
132
|
+
userAgent: client._options.userAgent,
|
|
133
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
134
|
+
}, options);
|
|
135
|
+
if (!requestRes.ok) {
|
|
136
|
+
return [requestRes, { status: "invalid" }];
|
|
137
|
+
}
|
|
138
|
+
const req = requestRes.value;
|
|
139
|
+
|
|
140
|
+
const doResult = await client._do(req, {
|
|
141
|
+
context,
|
|
142
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
143
|
+
retryConfig: context.retryConfig,
|
|
144
|
+
retryCodes: context.retryCodes,
|
|
145
|
+
});
|
|
146
|
+
if (!doResult.ok) {
|
|
147
|
+
return [doResult, { status: "request-error", request: req }];
|
|
148
|
+
}
|
|
149
|
+
const response = doResult.value;
|
|
150
|
+
|
|
151
|
+
const responseFields = {
|
|
152
|
+
HttpMeta: { Response: response, Request: req },
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const [result] = await M.match<
|
|
156
|
+
components.TraditionalInvestingEnsureLeverageResponse,
|
|
157
|
+
| errors.HTTPValidationError
|
|
158
|
+
| CompassAPISDKError
|
|
159
|
+
| ResponseValidationError
|
|
160
|
+
| ConnectionError
|
|
161
|
+
| RequestAbortedError
|
|
162
|
+
| RequestTimeoutError
|
|
163
|
+
| InvalidRequestError
|
|
164
|
+
| UnexpectedClientError
|
|
165
|
+
| SDKValidationError
|
|
166
|
+
>(
|
|
167
|
+
M.json(
|
|
168
|
+
200,
|
|
169
|
+
components.TraditionalInvestingEnsureLeverageResponse$inboundSchema,
|
|
170
|
+
),
|
|
171
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
172
|
+
M.fail("4XX"),
|
|
173
|
+
M.fail("5XX"),
|
|
174
|
+
)(response, req, { extraFields: responseFields });
|
|
175
|
+
if (!result.ok) {
|
|
176
|
+
return [result, { status: "complete", request: req, response }];
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
return [result, { status: "complete", request: req, response }];
|
|
180
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -62,7 +62,7 @@ export const SDK_METADATA = {
|
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.1",
|
|
64
64
|
sdkVersion: "2.0.0",
|
|
65
|
-
genVersion: "2.879.
|
|
65
|
+
genVersion: "2.879.6",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 2.0.0 2.879.
|
|
67
|
+
"speakeasy-sdk/typescript 2.0.0 2.879.6 0.0.1 @compass-labs/api-sdk",
|
|
68
68
|
} as const;
|
|
@@ -249,6 +249,8 @@ export * from "./traditionalinvestingdepositrequest.js";
|
|
|
249
249
|
export * from "./traditionalinvestingdepositresponse.js";
|
|
250
250
|
export * from "./traditionalinvestingenableunifiedaccountrequest.js";
|
|
251
251
|
export * from "./traditionalinvestingenableunifiedaccountresponse.js";
|
|
252
|
+
export * from "./traditionalinvestingensureleveragerequest.js";
|
|
253
|
+
export * from "./traditionalinvestingensureleverageresponse.js";
|
|
252
254
|
export * from "./traditionalinvestingexecuterequest.js";
|
|
253
255
|
export * from "./traditionalinvestingexecuteresponse.js";
|
|
254
256
|
export * from "./traditionalinvestinglimitorderrequest.js";
|