@privy-io/api-types 0.9.0 → 0.11.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/CHANGELOG.md +46 -0
- package/client.d.mts +40 -43
- package/client.d.mts.map +1 -1
- package/client.d.ts +40 -43
- package/client.d.ts.map +1 -1
- package/client.js +28 -20
- package/client.js.map +1 -1
- package/client.mjs +29 -21
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +128 -86
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +128 -86
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +43 -43
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +43 -43
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +169 -135
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +169 -135
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +931 -947
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +931 -947
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/embedded-wallets.d.mts +122 -122
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +122 -122
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/fiat.d.mts +110 -0
- package/resources/fiat.d.mts.map +1 -0
- package/resources/fiat.d.ts +110 -0
- package/resources/fiat.d.ts.map +1 -0
- package/resources/fiat.js +9 -0
- package/resources/fiat.js.map +1 -0
- package/resources/fiat.mjs +5 -0
- package/resources/fiat.mjs.map +1 -0
- package/resources/funding.d.mts +86 -86
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +86 -86
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +20 -18
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +20 -18
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +269 -265
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +269 -265
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +15 -146
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +15 -146
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +0 -92
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +0 -92
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +12 -20
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +12 -20
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/organizations.d.mts +65 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +65 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +9 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +5 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/policies.d.mts +261 -553
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +261 -553
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +0 -229
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +0 -229
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +28 -28
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +28 -28
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +6 -9
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +6 -9
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.js.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts +80 -96
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +80 -96
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +0 -17
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +0 -17
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +480 -815
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +480 -815
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +0 -272
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +0 -272
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +302 -145
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +302 -145
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +7 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +7 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/wallets.d.mts +1592 -1580
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +1592 -1580
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +45 -103
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +45 -103
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +935 -877
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +935 -877
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +157 -157
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +157 -157
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +650 -618
- package/src/internal/types.ts +6 -8
- package/src/resources/accounts.ts +157 -103
- package/src/resources/aggregations.ts +55 -55
- package/src/resources/apps.ts +221 -178
- package/src/resources/client-auth.ts +1271 -1315
- package/src/resources/embedded-wallets.ts +160 -160
- package/src/resources/fiat.ts +177 -0
- package/src/resources/funding.ts +130 -130
- package/src/resources/index.ts +551 -542
- package/src/resources/intents.ts +326 -322
- package/src/resources/key-quorums.ts +16 -218
- package/src/resources/kraken-embed.ts +14 -22
- package/src/resources/organizations.ts +82 -0
- package/src/resources/policies.ts +383 -848
- package/src/resources/shared.ts +34 -34
- package/src/resources/swaps.ts +5 -10
- package/src/resources/transactions.ts +116 -136
- package/src/resources/users.ts +693 -1160
- package/src/resources/wallet-actions.ts +392 -185
- package/src/resources/wallets/index.ts +160 -156
- package/src/resources/wallets/transactions.ts +18 -3
- package/src/resources/wallets/wallets.ts +2123 -2113
- package/src/resources/webhooks.ts +1172 -1100
- package/src/resources/yield.ts +188 -188
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -1,65 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import * as SharedAPI from "./shared.mjs";
|
|
3
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
-
/**
|
|
6
|
-
* Operations related to key quorums
|
|
7
|
-
*/
|
|
8
2
|
export declare class KeyQuorums extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create a new key quorum.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const keyQuorum = await client.keyQuorums.create({
|
|
15
|
-
* authorization_threshold: 1,
|
|
16
|
-
* display_name: 'Prod key quorum',
|
|
17
|
-
* public_keys: [
|
|
18
|
-
* 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
|
|
19
|
-
* 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==',
|
|
20
|
-
* ],
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
create(body: KeyQuorumCreateParams, options?: RequestOptions): APIPromise<KeyQuorum>;
|
|
25
|
-
/**
|
|
26
|
-
* Delete a key quorum by key quorum ID.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const successResponse = await client.keyQuorums._delete(
|
|
31
|
-
* 'string',
|
|
32
|
-
* );
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
_delete(keyQuorumID: SharedAPI.KeyQuorumID, params?: KeyQuorumDeleteParams | null | undefined, options?: RequestOptions): APIPromise<SharedAPI.SuccessResponse>;
|
|
36
|
-
/**
|
|
37
|
-
* Update a key quorum by key quorum ID.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* const keyQuorum = await client.keyQuorums._update(
|
|
42
|
-
* 'string',
|
|
43
|
-
* {
|
|
44
|
-
* authorization_threshold: 1,
|
|
45
|
-
* display_name: 'Prod key quorum',
|
|
46
|
-
* public_keys: [
|
|
47
|
-
* 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
|
|
48
|
-
* ],
|
|
49
|
-
* },
|
|
50
|
-
* );
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
_update(keyQuorumID: SharedAPI.KeyQuorumID, params: KeyQuorumUpdateParams, options?: RequestOptions): APIPromise<KeyQuorum>;
|
|
54
|
-
/**
|
|
55
|
-
* Get a key quorum by ID.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* const keyQuorum = await client.keyQuorums.get('string');
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
get(keyQuorumID: SharedAPI.KeyQuorumID, options?: RequestOptions): APIPromise<KeyQuorum>;
|
|
63
3
|
}
|
|
64
4
|
/**
|
|
65
5
|
* A key quorum for authorizing wallet operations.
|
|
@@ -82,35 +22,28 @@ export declare namespace KeyQuorum {
|
|
|
82
22
|
}
|
|
83
23
|
}
|
|
84
24
|
/**
|
|
85
|
-
*
|
|
25
|
+
* Headers required to authorize modifications to key quorums.
|
|
86
26
|
*/
|
|
87
|
-
export interface
|
|
88
|
-
/**
|
|
89
|
-
* The number of keys that must sign for an action to be valid. Must be less than
|
|
90
|
-
* or equal to total number of key quorum members.
|
|
91
|
-
*/
|
|
92
|
-
authorization_threshold?: number;
|
|
93
|
-
display_name?: string;
|
|
27
|
+
export interface KeyQuorumAuthorizationHeaders {
|
|
94
28
|
/**
|
|
95
|
-
*
|
|
96
|
-
* can only be nested 1 level deep.
|
|
29
|
+
* ID of your Privy app.
|
|
97
30
|
*/
|
|
98
|
-
|
|
31
|
+
'privy-app-id': string;
|
|
99
32
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
33
|
+
* Request authorization signature. If multiple signatures are required, they
|
|
34
|
+
* should be comma separated.
|
|
102
35
|
*/
|
|
103
|
-
|
|
36
|
+
'privy-authorization-signature'?: string;
|
|
104
37
|
/**
|
|
105
|
-
*
|
|
106
|
-
*
|
|
38
|
+
* Request expiry. Value is a Unix timestamp in milliseconds representing the
|
|
39
|
+
* deadline by which the request must be processed.
|
|
107
40
|
*/
|
|
108
|
-
|
|
41
|
+
'privy-request-expiry'?: string;
|
|
109
42
|
}
|
|
110
43
|
/**
|
|
111
|
-
* Request input for
|
|
44
|
+
* Request input for creating a key quorum.
|
|
112
45
|
*/
|
|
113
|
-
export interface
|
|
46
|
+
export interface KeyQuorumCreateRequestBody {
|
|
114
47
|
/**
|
|
115
48
|
* The number of keys that must sign for an action to be valid. Must be less than
|
|
116
49
|
* or equal to total number of key quorum members.
|
|
@@ -134,25 +67,9 @@ export interface KeyQuorumUpdateRequestBody {
|
|
|
134
67
|
user_ids?: Array<string>;
|
|
135
68
|
}
|
|
136
69
|
/**
|
|
137
|
-
*
|
|
70
|
+
* Request input for updating an existing key quorum.
|
|
138
71
|
*/
|
|
139
|
-
export interface
|
|
140
|
-
/**
|
|
141
|
-
* ID of your Privy app.
|
|
142
|
-
*/
|
|
143
|
-
'privy-app-id': string;
|
|
144
|
-
/**
|
|
145
|
-
* Request authorization signature. If multiple signatures are required, they
|
|
146
|
-
* should be comma separated.
|
|
147
|
-
*/
|
|
148
|
-
'privy-authorization-signature'?: string;
|
|
149
|
-
/**
|
|
150
|
-
* Request expiry. Value is a Unix timestamp in milliseconds representing the
|
|
151
|
-
* deadline by which the request must be processed.
|
|
152
|
-
*/
|
|
153
|
-
'privy-request-expiry'?: string;
|
|
154
|
-
}
|
|
155
|
-
export interface KeyQuorumCreateParams {
|
|
72
|
+
export interface KeyQuorumUpdateRequestBody {
|
|
156
73
|
/**
|
|
157
74
|
* The number of keys that must sign for an action to be valid. Must be less than
|
|
158
75
|
* or equal to total number of key quorum members.
|
|
@@ -175,55 +92,7 @@ export interface KeyQuorumCreateParams {
|
|
|
175
92
|
*/
|
|
176
93
|
user_ids?: Array<string>;
|
|
177
94
|
}
|
|
178
|
-
export interface KeyQuorumDeleteParams {
|
|
179
|
-
/**
|
|
180
|
-
* Request authorization signature. If multiple signatures are required, they
|
|
181
|
-
* should be comma separated.
|
|
182
|
-
*/
|
|
183
|
-
'privy-authorization-signature'?: string;
|
|
184
|
-
/**
|
|
185
|
-
* Request expiry. Value is a Unix timestamp in milliseconds representing the
|
|
186
|
-
* deadline by which the request must be processed.
|
|
187
|
-
*/
|
|
188
|
-
'privy-request-expiry'?: string;
|
|
189
|
-
}
|
|
190
|
-
export interface KeyQuorumUpdateParams {
|
|
191
|
-
/**
|
|
192
|
-
* Body param: The number of keys that must sign for an action to be valid. Must be
|
|
193
|
-
* less than or equal to total number of key quorum members.
|
|
194
|
-
*/
|
|
195
|
-
authorization_threshold?: number;
|
|
196
|
-
/**
|
|
197
|
-
* Body param
|
|
198
|
-
*/
|
|
199
|
-
display_name?: string;
|
|
200
|
-
/**
|
|
201
|
-
* Body param: List of key quorum IDs that should be members of this key quorum.
|
|
202
|
-
* Key quorums can only be nested 1 level deep.
|
|
203
|
-
*/
|
|
204
|
-
key_quorum_ids?: Array<string>;
|
|
205
|
-
/**
|
|
206
|
-
* Body param: List of P-256 public keys of the keys that should be authorized to
|
|
207
|
-
* sign on the key quorum, in base64-encoded DER format.
|
|
208
|
-
*/
|
|
209
|
-
public_keys?: Array<string>;
|
|
210
|
-
/**
|
|
211
|
-
* Body param: List of user IDs of the users that should be authorized to sign on
|
|
212
|
-
* the key quorum.
|
|
213
|
-
*/
|
|
214
|
-
user_ids?: Array<string>;
|
|
215
|
-
/**
|
|
216
|
-
* Header param: Request authorization signature. If multiple signatures are
|
|
217
|
-
* required, they should be comma separated.
|
|
218
|
-
*/
|
|
219
|
-
'privy-authorization-signature'?: string;
|
|
220
|
-
/**
|
|
221
|
-
* Header param: Request expiry. Value is a Unix timestamp in milliseconds
|
|
222
|
-
* representing the deadline by which the request must be processed.
|
|
223
|
-
*/
|
|
224
|
-
'privy-request-expiry'?: string;
|
|
225
|
-
}
|
|
226
95
|
export declare namespace KeyQuorums {
|
|
227
|
-
export { type KeyQuorum as KeyQuorum, type
|
|
96
|
+
export { type KeyQuorum as KeyQuorum, type KeyQuorumAuthorizationHeaders as KeyQuorumAuthorizationHeaders, type KeyQuorumCreateRequestBody as KeyQuorumCreateRequestBody, type KeyQuorumUpdateRequestBody as KeyQuorumUpdateRequestBody, };
|
|
228
97
|
}
|
|
229
98
|
//# sourceMappingURL=key-quorums.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-quorums.d.mts","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"key-quorums.d.mts","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,UAAW,SAAQ,WAAW;CAAG;AAE9C;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IAEX,kBAAkB,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAEtD,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC;AAED,yBAAiB,SAAS,CAAC;IACzB,UAAiB,gBAAgB;QAC/B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B,UAAU,EAAE,MAAM,CAAC;KACpB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;IAEzC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE/B;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE/B;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -1,65 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import * as SharedAPI from "./shared.js";
|
|
3
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
-
/**
|
|
6
|
-
* Operations related to key quorums
|
|
7
|
-
*/
|
|
8
2
|
export declare class KeyQuorums extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create a new key quorum.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const keyQuorum = await client.keyQuorums.create({
|
|
15
|
-
* authorization_threshold: 1,
|
|
16
|
-
* display_name: 'Prod key quorum',
|
|
17
|
-
* public_keys: [
|
|
18
|
-
* 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
|
|
19
|
-
* 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==',
|
|
20
|
-
* ],
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
create(body: KeyQuorumCreateParams, options?: RequestOptions): APIPromise<KeyQuorum>;
|
|
25
|
-
/**
|
|
26
|
-
* Delete a key quorum by key quorum ID.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const successResponse = await client.keyQuorums._delete(
|
|
31
|
-
* 'string',
|
|
32
|
-
* );
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
_delete(keyQuorumID: SharedAPI.KeyQuorumID, params?: KeyQuorumDeleteParams | null | undefined, options?: RequestOptions): APIPromise<SharedAPI.SuccessResponse>;
|
|
36
|
-
/**
|
|
37
|
-
* Update a key quorum by key quorum ID.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* const keyQuorum = await client.keyQuorums._update(
|
|
42
|
-
* 'string',
|
|
43
|
-
* {
|
|
44
|
-
* authorization_threshold: 1,
|
|
45
|
-
* display_name: 'Prod key quorum',
|
|
46
|
-
* public_keys: [
|
|
47
|
-
* 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
|
|
48
|
-
* ],
|
|
49
|
-
* },
|
|
50
|
-
* );
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
_update(keyQuorumID: SharedAPI.KeyQuorumID, params: KeyQuorumUpdateParams, options?: RequestOptions): APIPromise<KeyQuorum>;
|
|
54
|
-
/**
|
|
55
|
-
* Get a key quorum by ID.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* const keyQuorum = await client.keyQuorums.get('string');
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
get(keyQuorumID: SharedAPI.KeyQuorumID, options?: RequestOptions): APIPromise<KeyQuorum>;
|
|
63
3
|
}
|
|
64
4
|
/**
|
|
65
5
|
* A key quorum for authorizing wallet operations.
|
|
@@ -82,35 +22,28 @@ export declare namespace KeyQuorum {
|
|
|
82
22
|
}
|
|
83
23
|
}
|
|
84
24
|
/**
|
|
85
|
-
*
|
|
25
|
+
* Headers required to authorize modifications to key quorums.
|
|
86
26
|
*/
|
|
87
|
-
export interface
|
|
88
|
-
/**
|
|
89
|
-
* The number of keys that must sign for an action to be valid. Must be less than
|
|
90
|
-
* or equal to total number of key quorum members.
|
|
91
|
-
*/
|
|
92
|
-
authorization_threshold?: number;
|
|
93
|
-
display_name?: string;
|
|
27
|
+
export interface KeyQuorumAuthorizationHeaders {
|
|
94
28
|
/**
|
|
95
|
-
*
|
|
96
|
-
* can only be nested 1 level deep.
|
|
29
|
+
* ID of your Privy app.
|
|
97
30
|
*/
|
|
98
|
-
|
|
31
|
+
'privy-app-id': string;
|
|
99
32
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
33
|
+
* Request authorization signature. If multiple signatures are required, they
|
|
34
|
+
* should be comma separated.
|
|
102
35
|
*/
|
|
103
|
-
|
|
36
|
+
'privy-authorization-signature'?: string;
|
|
104
37
|
/**
|
|
105
|
-
*
|
|
106
|
-
*
|
|
38
|
+
* Request expiry. Value is a Unix timestamp in milliseconds representing the
|
|
39
|
+
* deadline by which the request must be processed.
|
|
107
40
|
*/
|
|
108
|
-
|
|
41
|
+
'privy-request-expiry'?: string;
|
|
109
42
|
}
|
|
110
43
|
/**
|
|
111
|
-
* Request input for
|
|
44
|
+
* Request input for creating a key quorum.
|
|
112
45
|
*/
|
|
113
|
-
export interface
|
|
46
|
+
export interface KeyQuorumCreateRequestBody {
|
|
114
47
|
/**
|
|
115
48
|
* The number of keys that must sign for an action to be valid. Must be less than
|
|
116
49
|
* or equal to total number of key quorum members.
|
|
@@ -134,25 +67,9 @@ export interface KeyQuorumUpdateRequestBody {
|
|
|
134
67
|
user_ids?: Array<string>;
|
|
135
68
|
}
|
|
136
69
|
/**
|
|
137
|
-
*
|
|
70
|
+
* Request input for updating an existing key quorum.
|
|
138
71
|
*/
|
|
139
|
-
export interface
|
|
140
|
-
/**
|
|
141
|
-
* ID of your Privy app.
|
|
142
|
-
*/
|
|
143
|
-
'privy-app-id': string;
|
|
144
|
-
/**
|
|
145
|
-
* Request authorization signature. If multiple signatures are required, they
|
|
146
|
-
* should be comma separated.
|
|
147
|
-
*/
|
|
148
|
-
'privy-authorization-signature'?: string;
|
|
149
|
-
/**
|
|
150
|
-
* Request expiry. Value is a Unix timestamp in milliseconds representing the
|
|
151
|
-
* deadline by which the request must be processed.
|
|
152
|
-
*/
|
|
153
|
-
'privy-request-expiry'?: string;
|
|
154
|
-
}
|
|
155
|
-
export interface KeyQuorumCreateParams {
|
|
72
|
+
export interface KeyQuorumUpdateRequestBody {
|
|
156
73
|
/**
|
|
157
74
|
* The number of keys that must sign for an action to be valid. Must be less than
|
|
158
75
|
* or equal to total number of key quorum members.
|
|
@@ -175,55 +92,7 @@ export interface KeyQuorumCreateParams {
|
|
|
175
92
|
*/
|
|
176
93
|
user_ids?: Array<string>;
|
|
177
94
|
}
|
|
178
|
-
export interface KeyQuorumDeleteParams {
|
|
179
|
-
/**
|
|
180
|
-
* Request authorization signature. If multiple signatures are required, they
|
|
181
|
-
* should be comma separated.
|
|
182
|
-
*/
|
|
183
|
-
'privy-authorization-signature'?: string;
|
|
184
|
-
/**
|
|
185
|
-
* Request expiry. Value is a Unix timestamp in milliseconds representing the
|
|
186
|
-
* deadline by which the request must be processed.
|
|
187
|
-
*/
|
|
188
|
-
'privy-request-expiry'?: string;
|
|
189
|
-
}
|
|
190
|
-
export interface KeyQuorumUpdateParams {
|
|
191
|
-
/**
|
|
192
|
-
* Body param: The number of keys that must sign for an action to be valid. Must be
|
|
193
|
-
* less than or equal to total number of key quorum members.
|
|
194
|
-
*/
|
|
195
|
-
authorization_threshold?: number;
|
|
196
|
-
/**
|
|
197
|
-
* Body param
|
|
198
|
-
*/
|
|
199
|
-
display_name?: string;
|
|
200
|
-
/**
|
|
201
|
-
* Body param: List of key quorum IDs that should be members of this key quorum.
|
|
202
|
-
* Key quorums can only be nested 1 level deep.
|
|
203
|
-
*/
|
|
204
|
-
key_quorum_ids?: Array<string>;
|
|
205
|
-
/**
|
|
206
|
-
* Body param: List of P-256 public keys of the keys that should be authorized to
|
|
207
|
-
* sign on the key quorum, in base64-encoded DER format.
|
|
208
|
-
*/
|
|
209
|
-
public_keys?: Array<string>;
|
|
210
|
-
/**
|
|
211
|
-
* Body param: List of user IDs of the users that should be authorized to sign on
|
|
212
|
-
* the key quorum.
|
|
213
|
-
*/
|
|
214
|
-
user_ids?: Array<string>;
|
|
215
|
-
/**
|
|
216
|
-
* Header param: Request authorization signature. If multiple signatures are
|
|
217
|
-
* required, they should be comma separated.
|
|
218
|
-
*/
|
|
219
|
-
'privy-authorization-signature'?: string;
|
|
220
|
-
/**
|
|
221
|
-
* Header param: Request expiry. Value is a Unix timestamp in milliseconds
|
|
222
|
-
* representing the deadline by which the request must be processed.
|
|
223
|
-
*/
|
|
224
|
-
'privy-request-expiry'?: string;
|
|
225
|
-
}
|
|
226
95
|
export declare namespace KeyQuorums {
|
|
227
|
-
export { type KeyQuorum as KeyQuorum, type
|
|
96
|
+
export { type KeyQuorum as KeyQuorum, type KeyQuorumAuthorizationHeaders as KeyQuorumAuthorizationHeaders, type KeyQuorumCreateRequestBody as KeyQuorumCreateRequestBody, type KeyQuorumUpdateRequestBody as KeyQuorumUpdateRequestBody, };
|
|
228
97
|
}
|
|
229
98
|
//# sourceMappingURL=key-quorums.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-quorums.d.ts","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"key-quorums.d.ts","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,UAAW,SAAQ,WAAW;CAAG;AAE9C;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IAEX,kBAAkB,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAEtD,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC;AAED,yBAAiB,SAAS,CAAC;IACzB,UAAiB,gBAAgB;QAC/B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B,UAAU,EAAE,MAAM,CAAC;KACpB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;IAEzC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE/B;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE/B;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
package/resources/key-quorums.js
CHANGED
|
@@ -3,99 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.KeyQuorums = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
-
const headers_1 = require("../internal/headers.js");
|
|
7
|
-
const path_1 = require("../internal/utils/path.js");
|
|
8
|
-
/**
|
|
9
|
-
* Operations related to key quorums
|
|
10
|
-
*/
|
|
11
6
|
class KeyQuorums extends resource_1.APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Create a new key quorum.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* const keyQuorum = await client.keyQuorums.create({
|
|
18
|
-
* authorization_threshold: 1,
|
|
19
|
-
* display_name: 'Prod key quorum',
|
|
20
|
-
* public_keys: [
|
|
21
|
-
* 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
|
|
22
|
-
* 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==',
|
|
23
|
-
* ],
|
|
24
|
-
* });
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
create(body, options) {
|
|
28
|
-
return this._client.post('/v1/key_quorums', { body, ...options });
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Delete a key quorum by key quorum ID.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* const successResponse = await client.keyQuorums._delete(
|
|
36
|
-
* 'string',
|
|
37
|
-
* );
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
_delete(keyQuorumID, params = {}, options) {
|
|
41
|
-
const { 'privy-authorization-signature': privyAuthorizationSignature, 'privy-request-expiry': privyRequestExpiry, } = params ?? {};
|
|
42
|
-
return this._client.delete((0, path_1.path) `/v1/key_quorums/${keyQuorumID}`, {
|
|
43
|
-
...options,
|
|
44
|
-
headers: (0, headers_1.buildHeaders)([
|
|
45
|
-
{
|
|
46
|
-
...(privyAuthorizationSignature != null ?
|
|
47
|
-
{ 'privy-authorization-signature': privyAuthorizationSignature }
|
|
48
|
-
: undefined),
|
|
49
|
-
...(privyRequestExpiry != null ? { 'privy-request-expiry': privyRequestExpiry } : undefined),
|
|
50
|
-
},
|
|
51
|
-
options?.headers,
|
|
52
|
-
]),
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Update a key quorum by key quorum ID.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* const keyQuorum = await client.keyQuorums._update(
|
|
61
|
-
* 'string',
|
|
62
|
-
* {
|
|
63
|
-
* authorization_threshold: 1,
|
|
64
|
-
* display_name: 'Prod key quorum',
|
|
65
|
-
* public_keys: [
|
|
66
|
-
* 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
|
|
67
|
-
* ],
|
|
68
|
-
* },
|
|
69
|
-
* );
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
_update(keyQuorumID, params, options) {
|
|
73
|
-
const { 'privy-authorization-signature': privyAuthorizationSignature, 'privy-request-expiry': privyRequestExpiry, ...body } = params;
|
|
74
|
-
return this._client.patch((0, path_1.path) `/v1/key_quorums/${keyQuorumID}`, {
|
|
75
|
-
body,
|
|
76
|
-
...options,
|
|
77
|
-
headers: (0, headers_1.buildHeaders)([
|
|
78
|
-
{
|
|
79
|
-
...(privyAuthorizationSignature != null ?
|
|
80
|
-
{ 'privy-authorization-signature': privyAuthorizationSignature }
|
|
81
|
-
: undefined),
|
|
82
|
-
...(privyRequestExpiry != null ? { 'privy-request-expiry': privyRequestExpiry } : undefined),
|
|
83
|
-
},
|
|
84
|
-
options?.headers,
|
|
85
|
-
]),
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Get a key quorum by ID.
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
* ```ts
|
|
93
|
-
* const keyQuorum = await client.keyQuorums.get('string');
|
|
94
|
-
* ```
|
|
95
|
-
*/
|
|
96
|
-
get(keyQuorumID, options) {
|
|
97
|
-
return this._client.get((0, path_1.path) `/v1/key_quorums/${keyQuorumID}`, options);
|
|
98
|
-
}
|
|
99
7
|
}
|
|
100
8
|
exports.KeyQuorums = KeyQuorums;
|
|
101
9
|
//# sourceMappingURL=key-quorums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-quorums.js","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"key-quorums.js","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,MAAa,UAAW,SAAQ,sBAAW;CAAG;AAA9C,gCAA8C"}
|
|
@@ -1,97 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
-
import { path } from "../internal/utils/path.mjs";
|
|
5
|
-
/**
|
|
6
|
-
* Operations related to key quorums
|
|
7
|
-
*/
|
|
8
3
|
export class KeyQuorums extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create a new key quorum.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const keyQuorum = await client.keyQuorums.create({
|
|
15
|
-
* authorization_threshold: 1,
|
|
16
|
-
* display_name: 'Prod key quorum',
|
|
17
|
-
* public_keys: [
|
|
18
|
-
* 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
|
|
19
|
-
* 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==',
|
|
20
|
-
* ],
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
create(body, options) {
|
|
25
|
-
return this._client.post('/v1/key_quorums', { body, ...options });
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Delete a key quorum by key quorum ID.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const successResponse = await client.keyQuorums._delete(
|
|
33
|
-
* 'string',
|
|
34
|
-
* );
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
_delete(keyQuorumID, params = {}, options) {
|
|
38
|
-
const { 'privy-authorization-signature': privyAuthorizationSignature, 'privy-request-expiry': privyRequestExpiry, } = params ?? {};
|
|
39
|
-
return this._client.delete(path `/v1/key_quorums/${keyQuorumID}`, {
|
|
40
|
-
...options,
|
|
41
|
-
headers: buildHeaders([
|
|
42
|
-
{
|
|
43
|
-
...(privyAuthorizationSignature != null ?
|
|
44
|
-
{ 'privy-authorization-signature': privyAuthorizationSignature }
|
|
45
|
-
: undefined),
|
|
46
|
-
...(privyRequestExpiry != null ? { 'privy-request-expiry': privyRequestExpiry } : undefined),
|
|
47
|
-
},
|
|
48
|
-
options?.headers,
|
|
49
|
-
]),
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Update a key quorum by key quorum ID.
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* const keyQuorum = await client.keyQuorums._update(
|
|
58
|
-
* 'string',
|
|
59
|
-
* {
|
|
60
|
-
* authorization_threshold: 1,
|
|
61
|
-
* display_name: 'Prod key quorum',
|
|
62
|
-
* public_keys: [
|
|
63
|
-
* 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
|
|
64
|
-
* ],
|
|
65
|
-
* },
|
|
66
|
-
* );
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
_update(keyQuorumID, params, options) {
|
|
70
|
-
const { 'privy-authorization-signature': privyAuthorizationSignature, 'privy-request-expiry': privyRequestExpiry, ...body } = params;
|
|
71
|
-
return this._client.patch(path `/v1/key_quorums/${keyQuorumID}`, {
|
|
72
|
-
body,
|
|
73
|
-
...options,
|
|
74
|
-
headers: buildHeaders([
|
|
75
|
-
{
|
|
76
|
-
...(privyAuthorizationSignature != null ?
|
|
77
|
-
{ 'privy-authorization-signature': privyAuthorizationSignature }
|
|
78
|
-
: undefined),
|
|
79
|
-
...(privyRequestExpiry != null ? { 'privy-request-expiry': privyRequestExpiry } : undefined),
|
|
80
|
-
},
|
|
81
|
-
options?.headers,
|
|
82
|
-
]),
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Get a key quorum by ID.
|
|
87
|
-
*
|
|
88
|
-
* @example
|
|
89
|
-
* ```ts
|
|
90
|
-
* const keyQuorum = await client.keyQuorums.get('string');
|
|
91
|
-
* ```
|
|
92
|
-
*/
|
|
93
|
-
get(keyQuorumID, options) {
|
|
94
|
-
return this._client.get(path `/v1/key_quorums/${keyQuorumID}`, options);
|
|
95
|
-
}
|
|
96
4
|
}
|
|
97
5
|
//# sourceMappingURL=key-quorums.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-quorums.mjs","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"key-quorums.mjs","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,UAAW,SAAQ,WAAW;CAAG"}
|