@privy-io/api-types 0.14.0 → 0.16.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 +119 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +33 -27
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -27
- package/client.d.ts.map +1 -1
- package/client.js +17 -3
- package/client.js.map +1 -1
- package/client.mjs +17 -3
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/accounts.d.mts +6 -2
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +6 -2
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts +14 -4
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +14 -4
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/analytics.d.mts +1 -1
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +1 -1
- package/resources/analytics.d.ts.map +1 -1
- package/resources/analytics.mjs.map +1 -1
- package/resources/apps.d.mts +42 -37
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +42 -37
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +176 -217
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +176 -217
- 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/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/cross-app.mjs.map +1 -1
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/fiat.d.mts.map +1 -1
- package/resources/fiat.d.ts.map +1 -1
- package/resources/fiat.mjs.map +1 -1
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +15 -13
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +15 -13
- 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 +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +112 -79
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +112 -79
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +9 -8
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +9 -8
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +252 -154
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +252 -154
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/kraken-embed.js.map +1 -1
- package/resources/kraken-embed.mjs.map +1 -1
- package/resources/oauth.d.mts +77 -0
- package/resources/oauth.d.mts.map +1 -0
- package/resources/oauth.d.ts +77 -0
- package/resources/oauth.d.ts.map +1 -0
- package/resources/oauth.js +9 -0
- package/resources/oauth.js.map +1 -0
- package/resources/oauth.mjs +5 -0
- package/resources/oauth.mjs.map +1 -0
- package/resources/onramps.d.mts +458 -0
- package/resources/onramps.d.mts.map +1 -0
- package/resources/onramps.d.ts +458 -0
- package/resources/onramps.d.ts.map +1 -0
- package/resources/onramps.js +9 -0
- package/resources/onramps.js.map +1 -0
- package/resources/onramps.mjs +5 -0
- package/resources/onramps.mjs.map +1 -0
- package/resources/organizations.d.mts.map +1 -1
- package/resources/organizations.d.ts.map +1 -1
- package/resources/organizations.mjs.map +1 -1
- package/resources/policies.d.mts +73 -18
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +73 -18
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +38 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +38 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/swaps.d.mts +44 -5
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +44 -5
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +3 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +3 -0
- package/resources/users.d.ts.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +207 -9
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +207 -9
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallet-actions.js.map +1 -1
- package/resources/wallet-actions.mjs.map +1 -1
- package/resources/wallets/balance.d.mts +8 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +8 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.mjs.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 +5 -1
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +5 -1
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +749 -84
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +749 -84
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +15 -2
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +15 -2
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/wallets.d.mts.map +1 -1
- package/resources/wallets.d.ts.map +1 -1
- package/resources/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +314 -54
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +314 -54
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +26 -27
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +26 -27
- package/resources/yield.d.ts.map +1 -1
- package/resources/yield.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +389 -65
- package/src/resources/accounts.ts +7 -1
- package/src/resources/aggregations.ts +16 -3
- package/src/resources/analytics.ts +1 -1
- package/src/resources/apps.ts +57 -51
- package/src/resources/client-auth.ts +215 -308
- package/src/resources/index.ts +180 -25
- package/src/resources/intents.ts +132 -91
- package/src/resources/key-quorums.ts +11 -9
- package/src/resources/kraken-embed.ts +591 -432
- package/src/resources/oauth.ts +96 -0
- package/src/resources/onramps.ts +652 -0
- package/src/resources/policies.ts +106 -16
- package/src/resources/shared.ts +53 -0
- package/src/resources/swaps.ts +52 -5
- package/src/resources/users.ts +3 -0
- package/src/resources/wallet-actions.ts +274 -8
- package/src/resources/wallets/balance.ts +13 -1
- package/src/resources/wallets/index.ts +43 -0
- package/src/resources/wallets/transactions.ts +6 -0
- package/src/resources/wallets/wallets.ts +969 -93
- package/src/resources/webhooks.ts +383 -57
- package/src/resources/yield.ts +29 -30
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/intents.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
-
import * as IntentsAPI from './intents';
|
|
5
4
|
import * as KeyQuorumsAPI from './key-quorums';
|
|
6
5
|
import * as PoliciesAPI from './policies';
|
|
7
6
|
import * as SharedAPI from './shared';
|
|
@@ -123,108 +122,83 @@ export interface IntentAuthorization {
|
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
/**
|
|
126
|
-
* A
|
|
125
|
+
* A key member of an intent authorization quorum.
|
|
127
126
|
*/
|
|
128
|
-
export
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
export interface UserMember {
|
|
134
|
-
/**
|
|
135
|
-
* Unix timestamp when this member signed, or null if not yet signed.
|
|
136
|
-
*/
|
|
137
|
-
signed_at: number | null;
|
|
138
|
-
|
|
139
|
-
type: 'user';
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* User ID of the key quorum member
|
|
143
|
-
*/
|
|
144
|
-
user_id: string;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export interface KeyMember {
|
|
148
|
-
/**
|
|
149
|
-
* Public key of the key quorum member
|
|
150
|
-
*/
|
|
151
|
-
public_key: string;
|
|
127
|
+
export interface IntentAuthorizationKeyMember {
|
|
128
|
+
/**
|
|
129
|
+
* Public key of the key quorum member
|
|
130
|
+
*/
|
|
131
|
+
public_key: string;
|
|
152
132
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
133
|
+
/**
|
|
134
|
+
* Unix timestamp when this member signed, or null if not yet signed.
|
|
135
|
+
*/
|
|
136
|
+
signed_at: number | null;
|
|
157
137
|
|
|
158
|
-
|
|
159
|
-
}
|
|
138
|
+
type: 'key';
|
|
160
139
|
}
|
|
161
140
|
|
|
162
141
|
/**
|
|
163
|
-
* A member of an intent authorization quorum.
|
|
164
|
-
* quorum.
|
|
142
|
+
* A nested key quorum member of an intent authorization quorum.
|
|
165
143
|
*/
|
|
166
|
-
export
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
export namespace IntentAuthorizationMember {
|
|
172
|
-
export interface UserMember {
|
|
173
|
-
/**
|
|
174
|
-
* Unix timestamp when this member signed, or null if not yet signed.
|
|
175
|
-
*/
|
|
176
|
-
signed_at: number | null;
|
|
177
|
-
|
|
178
|
-
type: 'user';
|
|
144
|
+
export interface IntentAuthorizationKeyQuorum {
|
|
145
|
+
/**
|
|
146
|
+
* ID of the child key quorum member
|
|
147
|
+
*/
|
|
148
|
+
key_quorum_id: string;
|
|
179
149
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
150
|
+
/**
|
|
151
|
+
* Members of this child quorum
|
|
152
|
+
*/
|
|
153
|
+
members: Array<IntentAuthorizationKeyQuorumMember>;
|
|
185
154
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
public_key: string;
|
|
155
|
+
/**
|
|
156
|
+
* Number of signatures required from this child quorum
|
|
157
|
+
*/
|
|
158
|
+
threshold: number;
|
|
191
159
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
160
|
+
/**
|
|
161
|
+
* Whether this child key quorum has met its signature threshold
|
|
162
|
+
*/
|
|
163
|
+
threshold_met: boolean;
|
|
196
164
|
|
|
197
|
-
|
|
198
|
-
}
|
|
165
|
+
type: 'key_quorum';
|
|
199
166
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
167
|
+
/**
|
|
168
|
+
* Display name for the child key quorum (if any)
|
|
169
|
+
*/
|
|
170
|
+
display_name?: string;
|
|
171
|
+
}
|
|
205
172
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
173
|
+
/**
|
|
174
|
+
* A leaf member (user or key) of a nested key quorum in an intent authorization.
|
|
175
|
+
*/
|
|
176
|
+
export type IntentAuthorizationKeyQuorumMember = IntentAuthorizationUserMember | IntentAuthorizationKeyMember;
|
|
210
177
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
178
|
+
/**
|
|
179
|
+
* A member of an intent authorization quorum. Can be a user, key, or nested key
|
|
180
|
+
* quorum.
|
|
181
|
+
*/
|
|
182
|
+
export type IntentAuthorizationMember =
|
|
183
|
+
| IntentAuthorizationUserMember
|
|
184
|
+
| IntentAuthorizationKeyMember
|
|
185
|
+
| IntentAuthorizationKeyQuorum;
|
|
215
186
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
187
|
+
/**
|
|
188
|
+
* A user member of an intent authorization quorum.
|
|
189
|
+
*/
|
|
190
|
+
export interface IntentAuthorizationUserMember {
|
|
191
|
+
/**
|
|
192
|
+
* Unix timestamp when this member signed, or null if not yet signed.
|
|
193
|
+
*/
|
|
194
|
+
signed_at: number | null;
|
|
220
195
|
|
|
221
|
-
|
|
196
|
+
type: 'user';
|
|
222
197
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
198
|
+
/**
|
|
199
|
+
* User ID of the key quorum member
|
|
200
|
+
*/
|
|
201
|
+
user_id: string;
|
|
228
202
|
}
|
|
229
203
|
|
|
230
204
|
/**
|
|
@@ -474,6 +448,34 @@ export namespace RpcIntentResponse {
|
|
|
474
448
|
}
|
|
475
449
|
}
|
|
476
450
|
|
|
451
|
+
/**
|
|
452
|
+
* Response for a delete rule intent
|
|
453
|
+
*/
|
|
454
|
+
export interface RuleDeleteIntentResponse extends BaseIntentResponse {
|
|
455
|
+
intent_type: 'RULE';
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Request details for deleting a rule via intent.
|
|
459
|
+
*/
|
|
460
|
+
request_details: RuleIntentDeleteRequestDetails;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Result of rule execution (only present if status is 'executed' or 'failed')
|
|
464
|
+
*/
|
|
465
|
+
action_result?: BaseActionResult;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* A rule that defines the conditions and action to take if the conditions are
|
|
469
|
+
* true.
|
|
470
|
+
*/
|
|
471
|
+
current_resource_data?: PoliciesAPI.PolicyRuleResponse;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* A policy for controlling wallet operations.
|
|
475
|
+
*/
|
|
476
|
+
policy?: PoliciesAPI.Policy;
|
|
477
|
+
}
|
|
478
|
+
|
|
477
479
|
/**
|
|
478
480
|
* Request details for creating a rule via intent.
|
|
479
481
|
*/
|
|
@@ -488,6 +490,11 @@ export interface RuleIntentCreateRequestDetails {
|
|
|
488
490
|
url: string;
|
|
489
491
|
}
|
|
490
492
|
|
|
493
|
+
/**
|
|
494
|
+
* Empty request body for a rule delete intent.
|
|
495
|
+
*/
|
|
496
|
+
export interface RuleIntentDeleteRequestBody {}
|
|
497
|
+
|
|
491
498
|
/**
|
|
492
499
|
* Request details for deleting a rule via intent.
|
|
493
500
|
*/
|
|
@@ -496,11 +503,10 @@ export interface RuleIntentDeleteRequestDetails {
|
|
|
496
503
|
|
|
497
504
|
url: string;
|
|
498
505
|
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
export interface Body {}
|
|
506
|
+
/**
|
|
507
|
+
* Empty request body for a rule delete intent.
|
|
508
|
+
*/
|
|
509
|
+
body?: RuleIntentDeleteRequestBody;
|
|
504
510
|
}
|
|
505
511
|
|
|
506
512
|
/**
|
|
@@ -555,6 +561,35 @@ export interface RuleIntentUpdateRequestDetails {
|
|
|
555
561
|
url: string;
|
|
556
562
|
}
|
|
557
563
|
|
|
564
|
+
/**
|
|
565
|
+
* Response for a create or update rule intent
|
|
566
|
+
*/
|
|
567
|
+
export interface RuleMutateIntentResponse extends BaseIntentResponse {
|
|
568
|
+
intent_type: 'RULE';
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* The original rule request. Method is POST (create), PATCH (update), or DELETE
|
|
572
|
+
* (delete)
|
|
573
|
+
*/
|
|
574
|
+
request_details: RuleIntentRequestDetails;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Result of rule execution (only present if status is 'executed' or 'failed')
|
|
578
|
+
*/
|
|
579
|
+
action_result?: BaseActionResult;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* A rule that defines the conditions and action to take if the conditions are
|
|
583
|
+
* true.
|
|
584
|
+
*/
|
|
585
|
+
current_resource_data?: PoliciesAPI.PolicyRuleResponse;
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* A policy for controlling wallet operations.
|
|
589
|
+
*/
|
|
590
|
+
policy?: PoliciesAPI.Policy;
|
|
591
|
+
}
|
|
592
|
+
|
|
558
593
|
/**
|
|
559
594
|
* Request details for a transfer intent.
|
|
560
595
|
*/
|
|
@@ -681,8 +716,11 @@ export declare namespace Intents {
|
|
|
681
716
|
type BaseActionResult as BaseActionResult,
|
|
682
717
|
type BaseIntentResponse as BaseIntentResponse,
|
|
683
718
|
type IntentAuthorization as IntentAuthorization,
|
|
719
|
+
type IntentAuthorizationKeyMember as IntentAuthorizationKeyMember,
|
|
720
|
+
type IntentAuthorizationKeyQuorum as IntentAuthorizationKeyQuorum,
|
|
684
721
|
type IntentAuthorizationKeyQuorumMember as IntentAuthorizationKeyQuorumMember,
|
|
685
722
|
type IntentAuthorizationMember as IntentAuthorizationMember,
|
|
723
|
+
type IntentAuthorizationUserMember as IntentAuthorizationUserMember,
|
|
686
724
|
type IntentAuthorizeInput as IntentAuthorizeInput,
|
|
687
725
|
type IntentCreationHeaders as IntentCreationHeaders,
|
|
688
726
|
type IntentResponse as IntentResponse,
|
|
@@ -693,11 +731,14 @@ export declare namespace Intents {
|
|
|
693
731
|
type PolicyIntentResponse as PolicyIntentResponse,
|
|
694
732
|
type RpcIntentRequestDetails as RpcIntentRequestDetails,
|
|
695
733
|
type RpcIntentResponse as RpcIntentResponse,
|
|
734
|
+
type RuleDeleteIntentResponse as RuleDeleteIntentResponse,
|
|
696
735
|
type RuleIntentCreateRequestDetails as RuleIntentCreateRequestDetails,
|
|
736
|
+
type RuleIntentDeleteRequestBody as RuleIntentDeleteRequestBody,
|
|
697
737
|
type RuleIntentDeleteRequestDetails as RuleIntentDeleteRequestDetails,
|
|
698
738
|
type RuleIntentRequestDetails as RuleIntentRequestDetails,
|
|
699
739
|
type RuleIntentResponse as RuleIntentResponse,
|
|
700
740
|
type RuleIntentUpdateRequestDetails as RuleIntentUpdateRequestDetails,
|
|
741
|
+
type RuleMutateIntentResponse as RuleMutateIntentResponse,
|
|
701
742
|
type TransferIntentRequestDetails as TransferIntentRequestDetails,
|
|
702
743
|
type TransferIntentResponse as TransferIntentResponse,
|
|
703
744
|
type WalletIntentResponse as WalletIntentResponse,
|
|
@@ -4,13 +4,22 @@ import { APIResource } from '../core/resource';
|
|
|
4
4
|
|
|
5
5
|
export class KeyQuorums extends APIResource {}
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* A public key authorized to sign on a key quorum.
|
|
9
|
+
*/
|
|
10
|
+
export interface AuthorizationKey {
|
|
11
|
+
display_name: string | null;
|
|
12
|
+
|
|
13
|
+
public_key: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
7
16
|
/**
|
|
8
17
|
* A key quorum for authorizing wallet operations.
|
|
9
18
|
*/
|
|
10
19
|
export interface KeyQuorum {
|
|
11
20
|
id: string;
|
|
12
21
|
|
|
13
|
-
authorization_keys: Array<
|
|
22
|
+
authorization_keys: Array<AuthorizationKey>;
|
|
14
23
|
|
|
15
24
|
authorization_threshold: number | null;
|
|
16
25
|
|
|
@@ -24,14 +33,6 @@ export interface KeyQuorum {
|
|
|
24
33
|
key_quorum_ids?: Array<string>;
|
|
25
34
|
}
|
|
26
35
|
|
|
27
|
-
export namespace KeyQuorum {
|
|
28
|
-
export interface AuthorizationKey {
|
|
29
|
-
display_name: string | null;
|
|
30
|
-
|
|
31
|
-
public_key: string;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
36
|
/**
|
|
36
37
|
* Headers required to authorize modifications to key quorums.
|
|
37
38
|
*/
|
|
@@ -123,6 +124,7 @@ export interface KeyQuorumUpdateRequestBody {
|
|
|
123
124
|
|
|
124
125
|
export declare namespace KeyQuorums {
|
|
125
126
|
export {
|
|
127
|
+
type AuthorizationKey as AuthorizationKey,
|
|
126
128
|
type KeyQuorum as KeyQuorum,
|
|
127
129
|
type KeyQuorumAuthorizationHeaders as KeyQuorumAuthorizationHeaders,
|
|
128
130
|
type KeyQuorumCreateRequestBody as KeyQuorumCreateRequestBody,
|