@xkova/sdk 0.1.0-alpha.1 → 0.1.0-alpha.10
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 +324 -32
- package/dist/abi.d.ts +40 -0
- package/dist/abi.js +25 -0
- package/dist/client.d.ts +4 -0
- package/dist/client.js +62 -3
- package/dist/generated/types.d.ts +8629 -5182
- package/dist/held-approval.d.ts +41 -0
- package/dist/held-approval.js +33 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/member-action-intents.js +2 -2
- package/dist/member-bff.d.ts +60 -21
- package/dist/member-bff.js +81 -79
- package/dist/member-resources.d.ts +67 -1
- package/dist/member-resources.js +9 -5
- package/dist/request-signing.js +6 -0
- package/dist/resources/account-holders.d.ts +131 -1
- package/dist/resources/account-holders.js +44 -9
- package/dist/resources/branding.d.ts +10 -0
- package/dist/resources/branding.js +2 -0
- package/dist/resources/contacts.d.ts +2 -2
- package/dist/resources/contacts.js +3 -3
- package/dist/resources/escrows.d.ts +3 -0
- package/dist/resources/payment-requests.d.ts +4 -0
- package/dist/resources/payments.d.ts +13 -0
- package/dist/resources/payments.js +7 -0
- package/dist/resources/ramps.d.ts +73 -64
- package/dist/resources/ramps.js +2 -2
- package/dist/resources/rwa.d.ts +9 -9
- package/dist/resources/tenant.d.ts +15 -0
- package/dist/resources/tenant.js +6 -1
- package/dist/resources/tokenization.d.ts +30 -11
- package/dist/resources/tokenization.js +10 -10
- package/dist/resources/treasury.d.ts +404 -0
- package/dist/resources/treasury.js +115 -0
- package/dist/resources/wallets.d.ts +2 -0
- package/dist/resources/webhooks.d.ts +1 -1
- package/dist/resources/webhooks.js +2 -2
- package/dist/resources/workflows.d.ts +7 -6
- package/dist/resources/workflows.js +87 -24
- package/dist/resources/workforce-wallets.d.ts +34 -0
- package/dist/resources/workforce-wallets.js +19 -0
- package/dist/url.d.ts +1 -0
- package/dist/url.js +4 -0
- package/dist/webhook.js +1 -1
- package/dist/workforce-bff.d.ts +202 -0
- package/dist/workforce-bff.js +462 -0
- package/examples/postgres-checkpoint-store.mjs +116 -0
- package/examples/postgres-checkpoints.sql +9 -0
- package/llms.txt +29 -9
- package/package.json +8 -3
|
@@ -11,31 +11,34 @@ export declare class RampsResource extends Resource {
|
|
|
11
11
|
has_more: boolean;
|
|
12
12
|
}>;
|
|
13
13
|
createFunding(body: ReqBody<'createFundingRequest'>, opts?: RampRequestOptions): Promise<{
|
|
14
|
-
id
|
|
15
|
-
tenant_id
|
|
16
|
-
workspace_id
|
|
14
|
+
id: import("../generated/types.js").components["schemas"]["FundingRequestId"];
|
|
15
|
+
tenant_id: string;
|
|
16
|
+
workspace_id: string;
|
|
17
17
|
chain: import("../generated/types.js").components["schemas"]["ChainDescriptor"];
|
|
18
|
-
account_holder_id
|
|
19
|
-
amount
|
|
20
|
-
currency
|
|
21
|
-
state
|
|
22
|
-
failure_reason_code
|
|
23
|
-
x_partner_reference
|
|
24
|
-
quote_id
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
account_holder_id: import("../generated/types.js").components["schemas"]["AccountHolderId"];
|
|
19
|
+
amount: import("../generated/types.js").components["schemas"]["Money"];
|
|
20
|
+
currency: string;
|
|
21
|
+
state: "pending_compliance" | "pending_issuance" | "settled" | "failed";
|
|
22
|
+
failure_reason_code: string | null;
|
|
23
|
+
x_partner_reference: string | null;
|
|
24
|
+
quote_id: string | null;
|
|
25
|
+
quote_rate: string | null;
|
|
26
|
+
quote_stablecoin_amount: import("../generated/types.js").components["schemas"]["Money"] | null;
|
|
27
|
+
quote_partner_fee_fiat: import("../generated/types.js").components["schemas"]["Money"] | null;
|
|
28
|
+
bank_debit_transfer_id: string | null;
|
|
29
|
+
partner_status: string | null;
|
|
30
|
+
last_event_at: import("../generated/types.js").components["schemas"]["TimestampUtc"] | null;
|
|
31
|
+
metadata: {
|
|
29
32
|
[key: string]: unknown;
|
|
30
33
|
} | null;
|
|
31
34
|
settlement_order: "hold_first" | "debit_first" | null;
|
|
32
|
-
idempotency_key
|
|
33
|
-
correlation_id
|
|
34
|
-
ramp_profile
|
|
35
|
-
hosted_redirect_url
|
|
36
|
-
created_at
|
|
37
|
-
updated_at
|
|
38
|
-
settled_at
|
|
35
|
+
idempotency_key: string;
|
|
36
|
+
correlation_id: string;
|
|
37
|
+
ramp_profile: "mock" | "sandbox" | "coinbase";
|
|
38
|
+
hosted_redirect_url: string | null;
|
|
39
|
+
created_at: import("../generated/types.js").components["schemas"]["TimestampUtc"];
|
|
40
|
+
updated_at: import("../generated/types.js").components["schemas"]["TimestampUtc"];
|
|
41
|
+
settled_at: import("../generated/types.js").components["schemas"]["TimestampUtc"] | null;
|
|
39
42
|
}>;
|
|
40
43
|
/**
|
|
41
44
|
* One-call sandbox funding convenience. This invokes the normal funding
|
|
@@ -43,58 +46,64 @@ export declare class RampsResource extends Resource {
|
|
|
43
46
|
* resource, state transitions, webhooks, and idempotency behavior.
|
|
44
47
|
*/
|
|
45
48
|
fundSandboxWallet(body: SandboxFundingBody, opts?: RampRequestOptions): Promise<{
|
|
46
|
-
id
|
|
47
|
-
tenant_id
|
|
48
|
-
workspace_id
|
|
49
|
+
id: import("../generated/types.js").components["schemas"]["FundingRequestId"];
|
|
50
|
+
tenant_id: string;
|
|
51
|
+
workspace_id: string;
|
|
49
52
|
chain: import("../generated/types.js").components["schemas"]["ChainDescriptor"];
|
|
50
|
-
account_holder_id
|
|
51
|
-
amount
|
|
52
|
-
currency
|
|
53
|
-
state
|
|
54
|
-
failure_reason_code
|
|
55
|
-
x_partner_reference
|
|
56
|
-
quote_id
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
account_holder_id: import("../generated/types.js").components["schemas"]["AccountHolderId"];
|
|
54
|
+
amount: import("../generated/types.js").components["schemas"]["Money"];
|
|
55
|
+
currency: string;
|
|
56
|
+
state: "pending_compliance" | "pending_issuance" | "settled" | "failed";
|
|
57
|
+
failure_reason_code: string | null;
|
|
58
|
+
x_partner_reference: string | null;
|
|
59
|
+
quote_id: string | null;
|
|
60
|
+
quote_rate: string | null;
|
|
61
|
+
quote_stablecoin_amount: import("../generated/types.js").components["schemas"]["Money"] | null;
|
|
62
|
+
quote_partner_fee_fiat: import("../generated/types.js").components["schemas"]["Money"] | null;
|
|
63
|
+
bank_debit_transfer_id: string | null;
|
|
64
|
+
partner_status: string | null;
|
|
65
|
+
last_event_at: import("../generated/types.js").components["schemas"]["TimestampUtc"] | null;
|
|
66
|
+
metadata: {
|
|
61
67
|
[key: string]: unknown;
|
|
62
68
|
} | null;
|
|
63
69
|
settlement_order: "hold_first" | "debit_first" | null;
|
|
64
|
-
idempotency_key
|
|
65
|
-
correlation_id
|
|
66
|
-
ramp_profile
|
|
67
|
-
hosted_redirect_url
|
|
68
|
-
created_at
|
|
69
|
-
updated_at
|
|
70
|
-
settled_at
|
|
70
|
+
idempotency_key: string;
|
|
71
|
+
correlation_id: string;
|
|
72
|
+
ramp_profile: "mock" | "sandbox" | "coinbase";
|
|
73
|
+
hosted_redirect_url: string | null;
|
|
74
|
+
created_at: import("../generated/types.js").components["schemas"]["TimestampUtc"];
|
|
75
|
+
updated_at: import("../generated/types.js").components["schemas"]["TimestampUtc"];
|
|
76
|
+
settled_at: import("../generated/types.js").components["schemas"]["TimestampUtc"] | null;
|
|
71
77
|
}>;
|
|
72
78
|
getFunding(id: string): Promise<{
|
|
73
|
-
id
|
|
74
|
-
tenant_id
|
|
75
|
-
workspace_id
|
|
79
|
+
id: import("../generated/types.js").components["schemas"]["FundingRequestId"];
|
|
80
|
+
tenant_id: string;
|
|
81
|
+
workspace_id: string;
|
|
76
82
|
chain: import("../generated/types.js").components["schemas"]["ChainDescriptor"];
|
|
77
|
-
account_holder_id
|
|
78
|
-
amount
|
|
79
|
-
currency
|
|
80
|
-
state
|
|
81
|
-
failure_reason_code
|
|
82
|
-
x_partner_reference
|
|
83
|
-
quote_id
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
account_holder_id: import("../generated/types.js").components["schemas"]["AccountHolderId"];
|
|
84
|
+
amount: import("../generated/types.js").components["schemas"]["Money"];
|
|
85
|
+
currency: string;
|
|
86
|
+
state: "pending_compliance" | "pending_issuance" | "settled" | "failed";
|
|
87
|
+
failure_reason_code: string | null;
|
|
88
|
+
x_partner_reference: string | null;
|
|
89
|
+
quote_id: string | null;
|
|
90
|
+
quote_rate: string | null;
|
|
91
|
+
quote_stablecoin_amount: import("../generated/types.js").components["schemas"]["Money"] | null;
|
|
92
|
+
quote_partner_fee_fiat: import("../generated/types.js").components["schemas"]["Money"] | null;
|
|
93
|
+
bank_debit_transfer_id: string | null;
|
|
94
|
+
partner_status: string | null;
|
|
95
|
+
last_event_at: import("../generated/types.js").components["schemas"]["TimestampUtc"] | null;
|
|
96
|
+
metadata: {
|
|
88
97
|
[key: string]: unknown;
|
|
89
98
|
} | null;
|
|
90
99
|
settlement_order: "hold_first" | "debit_first" | null;
|
|
91
|
-
idempotency_key
|
|
92
|
-
correlation_id
|
|
93
|
-
ramp_profile
|
|
94
|
-
hosted_redirect_url
|
|
95
|
-
created_at
|
|
96
|
-
updated_at
|
|
97
|
-
settled_at
|
|
100
|
+
idempotency_key: string;
|
|
101
|
+
correlation_id: string;
|
|
102
|
+
ramp_profile: "mock" | "sandbox" | "coinbase";
|
|
103
|
+
hosted_redirect_url: string | null;
|
|
104
|
+
created_at: import("../generated/types.js").components["schemas"]["TimestampUtc"];
|
|
105
|
+
updated_at: import("../generated/types.js").components["schemas"]["TimestampUtc"];
|
|
106
|
+
settled_at: import("../generated/types.js").components["schemas"]["TimestampUtc"] | null;
|
|
98
107
|
}>;
|
|
99
108
|
listOffRamp(query?: Query<'listOffRampRequests'>): Promise<{
|
|
100
109
|
data: import("../generated/types.js").components["schemas"]["OffRampRequest"][];
|
|
@@ -152,7 +161,7 @@ export declare class RampsResource extends Resource {
|
|
|
152
161
|
settled_at?: import("../generated/types.js").components["schemas"]["TimestampUtc"] | null;
|
|
153
162
|
}>;
|
|
154
163
|
/** Resolve the partner redeem (burn) address for an off-ramp. */
|
|
155
|
-
offRampBurnAddress(query: Query<'getOffRampBurnAddress'
|
|
164
|
+
offRampBurnAddress(query: Query<'getOffRampBurnAddress'>, control?: XKOVARequestControl): Promise<{
|
|
156
165
|
burn_address: string;
|
|
157
166
|
stablecoin: "USDC" | "dUSDC";
|
|
158
167
|
chain: {
|
package/dist/resources/ramps.js
CHANGED
|
@@ -38,7 +38,7 @@ export class RampsResource extends Resource {
|
|
|
38
38
|
return this.getJson(`/off-ramp-requests/${this.enc(id)}`);
|
|
39
39
|
}
|
|
40
40
|
/** Resolve the partner redeem (burn) address for an off-ramp. */
|
|
41
|
-
offRampBurnAddress(query) {
|
|
42
|
-
return this.getJson('/off-ramp-requests/burn-address', query);
|
|
41
|
+
offRampBurnAddress(query, control) {
|
|
42
|
+
return this.getJson('/off-ramp-requests/burn-address', query, control);
|
|
43
43
|
}
|
|
44
44
|
}
|
package/dist/resources/rwa.d.ts
CHANGED
|
@@ -75,10 +75,10 @@ export declare class RwaResource extends Resource {
|
|
|
75
75
|
bound_at: string;
|
|
76
76
|
}>;
|
|
77
77
|
proposeSchemaRebind(body: ReqBody<'proposeRwaSchemaRebind'>, opts?: XKOVAMutationOptions): Promise<{
|
|
78
|
-
ceremony_id:
|
|
78
|
+
ceremony_id: import("../generated/types.js").components["schemas"]["SchemaRebindId"];
|
|
79
79
|
}>;
|
|
80
80
|
getSchemaRebind(id: string): Promise<{
|
|
81
|
-
id:
|
|
81
|
+
id: import("../generated/types.js").components["schemas"]["SchemaRebindId"];
|
|
82
82
|
status: "proposed" | "dry_run_passed" | "dry_run_failed" | "attested" | "committed" | "failed";
|
|
83
83
|
asset_schema_id: string;
|
|
84
84
|
from_version: number;
|
|
@@ -119,7 +119,7 @@ export declare class RwaResource extends Resource {
|
|
|
119
119
|
submitAttestedEntry(tokenId: string, fieldPath: string, body: ReqBody<'submitRwaAttestedEntry'>, opts?: XKOVAMutationOptions): Promise<{
|
|
120
120
|
committed: boolean;
|
|
121
121
|
deduped: boolean;
|
|
122
|
-
attester_id:
|
|
122
|
+
attester_id: import("../generated/types.js").components["schemas"]["RwaAttesterId"];
|
|
123
123
|
attester_address: string;
|
|
124
124
|
attested_digest: string;
|
|
125
125
|
}>;
|
|
@@ -183,7 +183,7 @@ export declare class RwaResource extends Resource {
|
|
|
183
183
|
created_at: string;
|
|
184
184
|
}>;
|
|
185
185
|
createCorporateAction(tokenId: string, body: ReqBody<'createRwaCorporateAction'>, opts?: XKOVAMutationOptions): Promise<{
|
|
186
|
-
id:
|
|
186
|
+
id: import("../generated/types.js").components["schemas"]["CorporateActionId"];
|
|
187
187
|
customer_token_id: string;
|
|
188
188
|
kind: "redemption" | "split" | "consolidation" | "additional_issuance" | "capital_call" | "mandatory_conversion";
|
|
189
189
|
state: string;
|
|
@@ -201,7 +201,7 @@ export declare class RwaResource extends Resource {
|
|
|
201
201
|
created_at: string;
|
|
202
202
|
}>;
|
|
203
203
|
getCorporateAction(tokenId: string, caId: string): Promise<{
|
|
204
|
-
id:
|
|
204
|
+
id: import("../generated/types.js").components["schemas"]["CorporateActionId"];
|
|
205
205
|
customer_token_id: string;
|
|
206
206
|
kind: "redemption" | "split" | "consolidation" | "additional_issuance" | "capital_call" | "mandatory_conversion";
|
|
207
207
|
state: string;
|
|
@@ -219,7 +219,7 @@ export declare class RwaResource extends Resource {
|
|
|
219
219
|
created_at: string;
|
|
220
220
|
}>;
|
|
221
221
|
advanceCorporateAction(tokenId: string, caId: string, opts?: XKOVAMutationOptions): Promise<{
|
|
222
|
-
id:
|
|
222
|
+
id: import("../generated/types.js").components["schemas"]["CorporateActionId"];
|
|
223
223
|
customer_token_id: string;
|
|
224
224
|
kind: "redemption" | "split" | "consolidation" | "additional_issuance" | "capital_call" | "mandatory_conversion";
|
|
225
225
|
state: string;
|
|
@@ -285,7 +285,7 @@ export declare class RwaResource extends Resource {
|
|
|
285
285
|
reason: string;
|
|
286
286
|
}>;
|
|
287
287
|
listAttesters(tokenId: string): Promise<{
|
|
288
|
-
id:
|
|
288
|
+
id: import("../generated/types.js").components["schemas"]["RwaAttesterId"];
|
|
289
289
|
customer_token_id: string | null;
|
|
290
290
|
display_name: string;
|
|
291
291
|
attester_address: string;
|
|
@@ -294,7 +294,7 @@ export declare class RwaResource extends Resource {
|
|
|
294
294
|
created_at: string;
|
|
295
295
|
}[]>;
|
|
296
296
|
registerAttester(tokenId: string, body: ReqBody<'registerRwaAttester'>, opts?: XKOVAMutationOptions): Promise<{
|
|
297
|
-
id:
|
|
297
|
+
id: import("../generated/types.js").components["schemas"]["RwaAttesterId"];
|
|
298
298
|
customer_token_id: string | null;
|
|
299
299
|
display_name: string;
|
|
300
300
|
attester_address: string;
|
|
@@ -303,7 +303,7 @@ export declare class RwaResource extends Resource {
|
|
|
303
303
|
created_at: string;
|
|
304
304
|
}>;
|
|
305
305
|
revokeAttester(tokenId: string, attesterId: string, opts?: XKOVAMutationOptions): Promise<{
|
|
306
|
-
id:
|
|
306
|
+
id: import("../generated/types.js").components["schemas"]["RwaAttesterId"];
|
|
307
307
|
customer_token_id: string | null;
|
|
308
308
|
display_name: string;
|
|
309
309
|
attester_address: string;
|
|
@@ -47,6 +47,12 @@ export declare class TenantResource extends Resource {
|
|
|
47
47
|
publishable_key: string;
|
|
48
48
|
name: string;
|
|
49
49
|
provider_kind: "xkova_hosted" | "oidc" | "signed_launch";
|
|
50
|
+
provider_namespace: string;
|
|
51
|
+
issuer: string | null;
|
|
52
|
+
audience: string | null;
|
|
53
|
+
jwks_uri: string | null;
|
|
54
|
+
allowed_jwt_algorithms: ("RS256" | "PS256" | "ES256" | "EdDSA")[];
|
|
55
|
+
proof_binding_mode: "authorization_nonce" | "server_assertion_jti";
|
|
50
56
|
enrollment_mode: import("../generated/types.js").components["schemas"]["MemberAuthEnrollmentMode"];
|
|
51
57
|
is_default: boolean;
|
|
52
58
|
status: "active" | "principal_disabled";
|
|
@@ -73,6 +79,12 @@ export declare class TenantResource extends Resource {
|
|
|
73
79
|
publishable_key: string;
|
|
74
80
|
name: string;
|
|
75
81
|
provider_kind: "xkova_hosted" | "oidc" | "signed_launch";
|
|
82
|
+
provider_namespace: string;
|
|
83
|
+
issuer: string | null;
|
|
84
|
+
audience: string | null;
|
|
85
|
+
jwks_uri: string | null;
|
|
86
|
+
allowed_jwt_algorithms: ("RS256" | "PS256" | "ES256" | "EdDSA")[];
|
|
87
|
+
proof_binding_mode: "authorization_nonce" | "server_assertion_jti";
|
|
76
88
|
enrollment_mode: import("../generated/types.js").components["schemas"]["MemberAuthEnrollmentMode"];
|
|
77
89
|
is_default: boolean;
|
|
78
90
|
status: "active" | "principal_disabled";
|
|
@@ -90,6 +102,9 @@ export declare class TenantResource extends Resource {
|
|
|
90
102
|
created_at: import("../generated/types.js").components["schemas"]["TimestampUtc"];
|
|
91
103
|
updated_at: import("../generated/types.js").components["schemas"]["TimestampUtc"];
|
|
92
104
|
}>;
|
|
105
|
+
/** Disables the exact Hosted Auth or OIDC member application. */
|
|
106
|
+
disableMemberAuthApplication(id: string, opts?: XKOVAMutationOptions): Promise<void>;
|
|
107
|
+
/** Existing Hosted Auth convenience name. */
|
|
93
108
|
disableHostedApplication(id: string, opts?: XKOVAMutationOptions): Promise<void>;
|
|
94
109
|
configureOidcApplication(body: ReqBody<'configureMemberAuthOidcApplication'>, opts?: XKOVAMutationOptions): Promise<{
|
|
95
110
|
id: string;
|
package/dist/resources/tenant.js
CHANGED
|
@@ -15,9 +15,14 @@ export class TenantResource extends Resource {
|
|
|
15
15
|
updateHostedApplication(id, body, opts) {
|
|
16
16
|
return this.patchJson(`/tenant/member-auth/applications/${this.enc(id)}`, body, opts);
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
/** Disables the exact Hosted Auth or OIDC member application. */
|
|
19
|
+
disableMemberAuthApplication(id, opts) {
|
|
19
20
|
return this.deleteJson(`/tenant/member-auth/applications/${this.enc(id)}`, opts);
|
|
20
21
|
}
|
|
22
|
+
/** Existing Hosted Auth convenience name. */
|
|
23
|
+
disableHostedApplication(id, opts) {
|
|
24
|
+
return this.disableMemberAuthApplication(id, opts);
|
|
25
|
+
}
|
|
21
26
|
configureOidcApplication(body, opts) {
|
|
22
27
|
return this.putJson('/tenant/member-auth/application', body, opts);
|
|
23
28
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource, type ReqBody, type Query } from './base.js';
|
|
2
|
-
import type { XKOVAMutationOptions } from '../client.js';
|
|
2
|
+
import type { XKOVAMutationOptions, XKOVARequestControl } from '../client.js';
|
|
3
3
|
export declare class TokenizationResource extends Resource {
|
|
4
4
|
deployErc20(body: ReqBody<'deployCustomerErc20'>, opts?: XKOVAMutationOptions): Promise<{
|
|
5
5
|
operation_id: import("../generated/types.js").components["schemas"]["TokenizationOperationId"];
|
|
@@ -22,7 +22,7 @@ export declare class TokenizationResource extends Resource {
|
|
|
22
22
|
list(query?: Query<'listCustomerTokens'>): Promise<{
|
|
23
23
|
data: import("../generated/types.js").components["schemas"]["CustomerToken"][];
|
|
24
24
|
}>;
|
|
25
|
-
retrieve(id: string): Promise<{
|
|
25
|
+
retrieve(id: string, control?: XKOVARequestControl): Promise<{
|
|
26
26
|
id: import("../generated/types.js").components["schemas"]["CustomerTokenId"];
|
|
27
27
|
standard: "erc20" | "erc721" | "erc1155";
|
|
28
28
|
symbol: string;
|
|
@@ -56,6 +56,7 @@ export declare class TokenizationResource extends Resource {
|
|
|
56
56
|
kind: "server_key" | "safe";
|
|
57
57
|
purpose: "operator" | "service_account";
|
|
58
58
|
safe_purpose: ("fund_vault" | "token_control" | "multi_purpose") | null;
|
|
59
|
+
managed_safe_state: ("deploying" | "active" | "decommissioned") | null;
|
|
59
60
|
address: string;
|
|
60
61
|
label: string | null;
|
|
61
62
|
managed_safe_id: import("../generated/types.js").components["schemas"]["ManagedSafeId"] | null;
|
|
@@ -68,6 +69,7 @@ export declare class TokenizationResource extends Resource {
|
|
|
68
69
|
kind: "server_key" | "safe";
|
|
69
70
|
purpose: "operator" | "service_account";
|
|
70
71
|
safe_purpose: ("fund_vault" | "token_control" | "multi_purpose") | null;
|
|
72
|
+
managed_safe_state: ("deploying" | "active" | "decommissioned") | null;
|
|
71
73
|
address: string;
|
|
72
74
|
label: string | null;
|
|
73
75
|
managed_safe_id: import("../generated/types.js").components["schemas"]["ManagedSafeId"] | null;
|
|
@@ -82,6 +84,7 @@ export declare class TokenizationResource extends Resource {
|
|
|
82
84
|
kind: "server_key" | "safe";
|
|
83
85
|
purpose: "operator" | "service_account";
|
|
84
86
|
safe_purpose: ("fund_vault" | "token_control" | "multi_purpose") | null;
|
|
87
|
+
managed_safe_state: ("deploying" | "active" | "decommissioned") | null;
|
|
85
88
|
address: string;
|
|
86
89
|
label: string | null;
|
|
87
90
|
managed_safe_id: import("../generated/types.js").components["schemas"]["ManagedSafeId"] | null;
|
|
@@ -100,6 +103,7 @@ export declare class TokenizationResource extends Resource {
|
|
|
100
103
|
kind: "server_key" | "safe";
|
|
101
104
|
purpose: "operator" | "service_account";
|
|
102
105
|
safe_purpose: ("fund_vault" | "token_control" | "multi_purpose") | null;
|
|
106
|
+
managed_safe_state: ("deploying" | "active" | "decommissioned") | null;
|
|
103
107
|
address: string;
|
|
104
108
|
label: string | null;
|
|
105
109
|
managed_safe_id: import("../generated/types.js").components["schemas"]["ManagedSafeId"] | null;
|
|
@@ -125,7 +129,7 @@ export declare class TokenizationResource extends Resource {
|
|
|
125
129
|
access_control: "allowlist" | "denylist";
|
|
126
130
|
status: string;
|
|
127
131
|
}>;
|
|
128
|
-
disableAccessRegistry(id: string, opts?: XKOVAMutationOptions): Promise<{
|
|
132
|
+
disableAccessRegistry(id: string, opts?: XKOVAMutationOptions, body?: ReqBody<'disableAccessRegistryCustomerToken'>): Promise<{
|
|
129
133
|
operation_id: import("../generated/types.js").components["schemas"]["TokenizationOperationId"];
|
|
130
134
|
safe_tx_hash: string;
|
|
131
135
|
typed_data: import("../generated/types.js").components["schemas"]["SafeEip712TypedData"];
|
|
@@ -158,7 +162,7 @@ export declare class TokenizationResource extends Resource {
|
|
|
158
162
|
id: import("../generated/types.js").components["schemas"]["TokenizationOperationId"];
|
|
159
163
|
customer_token_id: import("../generated/types.js").components["schemas"]["CustomerTokenId"];
|
|
160
164
|
chain: import("../generated/types.js").components["schemas"]["ChainDescriptor"];
|
|
161
|
-
kind: "mint" | "burn" | "recover" | "grant_role" | "revoke_role" | "set_policy" | "set_mint_policy" | "access_list_add" | "access_list_remove" | "policy_mint" | "gasless_relay" | "pause" | "unpause" | "raw_safe_tx";
|
|
165
|
+
kind: "mint" | "burn" | "recover" | "grant_role" | "revoke_role" | "set_policy" | "set_mint_policy" | "access_list_add" | "access_list_remove" | "policy_mint" | "gasless_relay" | "nft_transfer_relay" | "pause" | "unpause" | "raw_safe_tx" | "revoke_policy" | "disable_access_registry";
|
|
162
166
|
status: import("../generated/types.js").components["schemas"]["TokenizationOperationStatus"];
|
|
163
167
|
to: string | null;
|
|
164
168
|
amount: string | null;
|
|
@@ -182,6 +186,9 @@ export declare class TokenizationResource extends Resource {
|
|
|
182
186
|
raw_contract: string | null;
|
|
183
187
|
raw_function: string | null;
|
|
184
188
|
raw_args: string[] | null;
|
|
189
|
+
failure_reason_code: string | null;
|
|
190
|
+
failure_reason_detail: string | null;
|
|
191
|
+
failure_retryable: boolean;
|
|
185
192
|
created_at: string;
|
|
186
193
|
updated_at: string;
|
|
187
194
|
}>;
|
|
@@ -194,7 +201,7 @@ export declare class TokenizationResource extends Resource {
|
|
|
194
201
|
id: import("../generated/types.js").components["schemas"]["TokenizationOperationId"];
|
|
195
202
|
customer_token_id: import("../generated/types.js").components["schemas"]["CustomerTokenId"];
|
|
196
203
|
chain: import("../generated/types.js").components["schemas"]["ChainDescriptor"];
|
|
197
|
-
kind: "mint" | "burn" | "recover" | "grant_role" | "revoke_role" | "set_policy" | "set_mint_policy" | "access_list_add" | "access_list_remove" | "policy_mint" | "gasless_relay" | "pause" | "unpause" | "raw_safe_tx";
|
|
204
|
+
kind: "mint" | "burn" | "recover" | "grant_role" | "revoke_role" | "set_policy" | "set_mint_policy" | "access_list_add" | "access_list_remove" | "policy_mint" | "gasless_relay" | "nft_transfer_relay" | "pause" | "unpause" | "raw_safe_tx" | "revoke_policy" | "disable_access_registry";
|
|
198
205
|
status: import("../generated/types.js").components["schemas"]["TokenizationOperationStatus"];
|
|
199
206
|
to: string | null;
|
|
200
207
|
amount: string | null;
|
|
@@ -218,6 +225,9 @@ export declare class TokenizationResource extends Resource {
|
|
|
218
225
|
raw_contract: string | null;
|
|
219
226
|
raw_function: string | null;
|
|
220
227
|
raw_args: string[] | null;
|
|
228
|
+
failure_reason_code: string | null;
|
|
229
|
+
failure_reason_detail: string | null;
|
|
230
|
+
failure_retryable: boolean;
|
|
221
231
|
created_at: string;
|
|
222
232
|
updated_at: string;
|
|
223
233
|
}>;
|
|
@@ -229,11 +239,11 @@ export declare class TokenizationResource extends Resource {
|
|
|
229
239
|
listOperations(id: string, query?: Query<'listTokenizationOperations'>): Promise<{
|
|
230
240
|
data: import("../generated/types.js").components["schemas"]["TokenizationOperation"][];
|
|
231
241
|
}>;
|
|
232
|
-
getOperation(id: string, opId: string): Promise<{
|
|
242
|
+
getOperation(id: string, opId: string, control?: XKOVARequestControl): Promise<{
|
|
233
243
|
id: import("../generated/types.js").components["schemas"]["TokenizationOperationId"];
|
|
234
244
|
customer_token_id: import("../generated/types.js").components["schemas"]["CustomerTokenId"];
|
|
235
245
|
chain: import("../generated/types.js").components["schemas"]["ChainDescriptor"];
|
|
236
|
-
kind: "mint" | "burn" | "recover" | "grant_role" | "revoke_role" | "set_policy" | "set_mint_policy" | "access_list_add" | "access_list_remove" | "policy_mint" | "gasless_relay" | "pause" | "unpause" | "raw_safe_tx";
|
|
246
|
+
kind: "mint" | "burn" | "recover" | "grant_role" | "revoke_role" | "set_policy" | "set_mint_policy" | "access_list_add" | "access_list_remove" | "policy_mint" | "gasless_relay" | "nft_transfer_relay" | "pause" | "unpause" | "raw_safe_tx" | "revoke_policy" | "disable_access_registry";
|
|
237
247
|
status: import("../generated/types.js").components["schemas"]["TokenizationOperationStatus"];
|
|
238
248
|
to: string | null;
|
|
239
249
|
amount: string | null;
|
|
@@ -257,6 +267,9 @@ export declare class TokenizationResource extends Resource {
|
|
|
257
267
|
raw_contract: string | null;
|
|
258
268
|
raw_function: string | null;
|
|
259
269
|
raw_args: string[] | null;
|
|
270
|
+
failure_reason_code: string | null;
|
|
271
|
+
failure_reason_detail: string | null;
|
|
272
|
+
failure_retryable: boolean;
|
|
260
273
|
created_at: string;
|
|
261
274
|
updated_at: string;
|
|
262
275
|
}>;
|
|
@@ -264,7 +277,7 @@ export declare class TokenizationResource extends Resource {
|
|
|
264
277
|
id: import("../generated/types.js").components["schemas"]["TokenizationOperationId"];
|
|
265
278
|
customer_token_id: import("../generated/types.js").components["schemas"]["CustomerTokenId"];
|
|
266
279
|
chain: import("../generated/types.js").components["schemas"]["ChainDescriptor"];
|
|
267
|
-
kind: "mint" | "burn" | "recover" | "grant_role" | "revoke_role" | "set_policy" | "set_mint_policy" | "access_list_add" | "access_list_remove" | "policy_mint" | "gasless_relay" | "pause" | "unpause" | "raw_safe_tx";
|
|
280
|
+
kind: "mint" | "burn" | "recover" | "grant_role" | "revoke_role" | "set_policy" | "set_mint_policy" | "access_list_add" | "access_list_remove" | "policy_mint" | "gasless_relay" | "nft_transfer_relay" | "pause" | "unpause" | "raw_safe_tx" | "revoke_policy" | "disable_access_registry";
|
|
268
281
|
status: import("../generated/types.js").components["schemas"]["TokenizationOperationStatus"];
|
|
269
282
|
to: string | null;
|
|
270
283
|
amount: string | null;
|
|
@@ -288,6 +301,9 @@ export declare class TokenizationResource extends Resource {
|
|
|
288
301
|
raw_contract: string | null;
|
|
289
302
|
raw_function: string | null;
|
|
290
303
|
raw_args: string[] | null;
|
|
304
|
+
failure_reason_code: string | null;
|
|
305
|
+
failure_reason_detail: string | null;
|
|
306
|
+
failure_retryable: boolean;
|
|
291
307
|
created_at: string;
|
|
292
308
|
updated_at: string;
|
|
293
309
|
}>;
|
|
@@ -295,7 +311,7 @@ export declare class TokenizationResource extends Resource {
|
|
|
295
311
|
id: import("../generated/types.js").components["schemas"]["TokenizationOperationId"];
|
|
296
312
|
customer_token_id: import("../generated/types.js").components["schemas"]["CustomerTokenId"];
|
|
297
313
|
chain: import("../generated/types.js").components["schemas"]["ChainDescriptor"];
|
|
298
|
-
kind: "mint" | "burn" | "recover" | "grant_role" | "revoke_role" | "set_policy" | "set_mint_policy" | "access_list_add" | "access_list_remove" | "policy_mint" | "gasless_relay" | "pause" | "unpause" | "raw_safe_tx";
|
|
314
|
+
kind: "mint" | "burn" | "recover" | "grant_role" | "revoke_role" | "set_policy" | "set_mint_policy" | "access_list_add" | "access_list_remove" | "policy_mint" | "gasless_relay" | "nft_transfer_relay" | "pause" | "unpause" | "raw_safe_tx" | "revoke_policy" | "disable_access_registry";
|
|
299
315
|
status: import("../generated/types.js").components["schemas"]["TokenizationOperationStatus"];
|
|
300
316
|
to: string | null;
|
|
301
317
|
amount: string | null;
|
|
@@ -319,16 +335,19 @@ export declare class TokenizationResource extends Resource {
|
|
|
319
335
|
raw_contract: string | null;
|
|
320
336
|
raw_function: string | null;
|
|
321
337
|
raw_args: string[] | null;
|
|
338
|
+
failure_reason_code: string | null;
|
|
339
|
+
failure_reason_detail: string | null;
|
|
340
|
+
failure_retryable: boolean;
|
|
322
341
|
created_at: string;
|
|
323
342
|
updated_at: string;
|
|
324
343
|
}>;
|
|
325
|
-
pause(id: string, opts?: XKOVAMutationOptions): Promise<{
|
|
344
|
+
pause(id: string, opts?: XKOVAMutationOptions, body?: ReqBody<'pauseCustomerToken'>): Promise<{
|
|
326
345
|
operation_id: import("../generated/types.js").components["schemas"]["TokenizationOperationId"];
|
|
327
346
|
safe_tx_hash: string;
|
|
328
347
|
typed_data: import("../generated/types.js").components["schemas"]["SafeEip712TypedData"];
|
|
329
348
|
status: import("../generated/types.js").components["schemas"]["TokenizationOperationStatus"];
|
|
330
349
|
}>;
|
|
331
|
-
unpause(id: string, opts?: XKOVAMutationOptions): Promise<{
|
|
350
|
+
unpause(id: string, opts?: XKOVAMutationOptions, body?: ReqBody<'unpauseCustomerToken'>): Promise<{
|
|
332
351
|
operation_id: import("../generated/types.js").components["schemas"]["TokenizationOperationId"];
|
|
333
352
|
safe_tx_hash: string;
|
|
334
353
|
typed_data: import("../generated/types.js").components["schemas"]["SafeEip712TypedData"];
|
|
@@ -12,8 +12,8 @@ export class TokenizationResource extends Resource {
|
|
|
12
12
|
list(query = {}) {
|
|
13
13
|
return this.getJson('/tokenization/tokens', query);
|
|
14
14
|
}
|
|
15
|
-
retrieve(id) {
|
|
16
|
-
return this.getJson(`/tokenization/tokens/${this.enc(id)}
|
|
15
|
+
retrieve(id, control) {
|
|
16
|
+
return this.getJson(`/tokenization/tokens/${this.enc(id)}`, undefined, control);
|
|
17
17
|
}
|
|
18
18
|
mint(id, body, opts) {
|
|
19
19
|
return this.postJson(`/tokenization/tokens/${this.enc(id)}/mint`, body, opts);
|
|
@@ -48,8 +48,8 @@ export class TokenizationResource extends Resource {
|
|
|
48
48
|
enableAccessRegistry(id, body, opts) {
|
|
49
49
|
return this.postJson(`/tokenization/tokens/${this.enc(id)}/access-registry`, body, opts);
|
|
50
50
|
}
|
|
51
|
-
disableAccessRegistry(id, opts) {
|
|
52
|
-
return this.postJson(`/tokenization/tokens/${this.enc(id)}/access-registry/disable`,
|
|
51
|
+
disableAccessRegistry(id, opts, body) {
|
|
52
|
+
return this.postJson(`/tokenization/tokens/${this.enc(id)}/access-registry/disable`, body, opts);
|
|
53
53
|
}
|
|
54
54
|
listContracts(id) {
|
|
55
55
|
return this.getJson(`/tokenization/tokens/${this.enc(id)}/contracts`);
|
|
@@ -78,8 +78,8 @@ export class TokenizationResource extends Resource {
|
|
|
78
78
|
listOperations(id, query = {}) {
|
|
79
79
|
return this.getJson(`/tokenization/tokens/${this.enc(id)}/operations`, query);
|
|
80
80
|
}
|
|
81
|
-
getOperation(id, opId) {
|
|
82
|
-
return this.getJson(`/tokenization/tokens/${this.enc(id)}/operations/${this.enc(opId)}
|
|
81
|
+
getOperation(id, opId, control) {
|
|
82
|
+
return this.getJson(`/tokenization/tokens/${this.enc(id)}/operations/${this.enc(opId)}`, undefined, control);
|
|
83
83
|
}
|
|
84
84
|
submitModuleSignature(id, opId, body, opts) {
|
|
85
85
|
return this.postJson(`/tokenization/tokens/${this.enc(id)}/operations/${this.enc(opId)}/module-signature`, body, opts);
|
|
@@ -87,11 +87,11 @@ export class TokenizationResource extends Resource {
|
|
|
87
87
|
submitOperationSignature(id, opId, body, opts) {
|
|
88
88
|
return this.postJson(`/tokenization/tokens/${this.enc(id)}/operations/${this.enc(opId)}/signatures`, body, opts);
|
|
89
89
|
}
|
|
90
|
-
pause(id, opts) {
|
|
91
|
-
return this.postJson(`/tokenization/tokens/${this.enc(id)}/pause`,
|
|
90
|
+
pause(id, opts, body) {
|
|
91
|
+
return this.postJson(`/tokenization/tokens/${this.enc(id)}/pause`, body, opts);
|
|
92
92
|
}
|
|
93
|
-
unpause(id, opts) {
|
|
94
|
-
return this.postJson(`/tokenization/tokens/${this.enc(id)}/unpause`,
|
|
93
|
+
unpause(id, opts, body) {
|
|
94
|
+
return this.postJson(`/tokenization/tokens/${this.enc(id)}/unpause`, body, opts);
|
|
95
95
|
}
|
|
96
96
|
setMintPolicy(id, body, opts) {
|
|
97
97
|
return this.postJson(`/tokenization/tokens/${this.enc(id)}/policies`, body, opts);
|