@turnkey/sdk-types 0.4.0-beta.6 → 0.4.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 +2 -0
- package/dist/__generated__/types.d.ts +96 -26
- package/dist/__generated__/types.d.ts.map +1 -1
- package/dist/__inputs__/public_api.types.d.ts +114 -26
- package/dist/__inputs__/public_api.types.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -71,7 +71,7 @@ export type externalactivityv1PolicyEvaluation = {
|
|
|
71
71
|
/** Unique identifier for the Vote associated with this policy evaluation. */
|
|
72
72
|
voteId: string;
|
|
73
73
|
/** Detailed evaluation result for each Policy that was run. */
|
|
74
|
-
policyEvaluations:
|
|
74
|
+
policyEvaluations: immutablecommonv1PolicyEvaluation[];
|
|
75
75
|
createdAt: externaldatav1Timestamp;
|
|
76
76
|
};
|
|
77
77
|
export type externaldatav1Address = {
|
|
@@ -89,24 +89,6 @@ export type externaldatav1Quorum = {
|
|
|
89
89
|
/** Unique identifiers of quorum set members. */
|
|
90
90
|
userIds: string[];
|
|
91
91
|
};
|
|
92
|
-
export type externaldatav1SmartContractInterface = {
|
|
93
|
-
/** The Organization the Smart Contract Interface belongs to. */
|
|
94
|
-
organizationId: string;
|
|
95
|
-
/** Unique identifier for a given Smart Contract Interface (ABI or IDL). */
|
|
96
|
-
smartContractInterfaceId: string;
|
|
97
|
-
/** The address corresponding to the Smart Contract or Program. */
|
|
98
|
-
smartContractAddress: string;
|
|
99
|
-
/** The JSON corresponding to the Smart Contract Interface (ABI or IDL). */
|
|
100
|
-
smartContractInterface: string;
|
|
101
|
-
/** The type corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
|
|
102
|
-
type: string;
|
|
103
|
-
/** The label corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
|
|
104
|
-
label: string;
|
|
105
|
-
/** The notes corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
|
|
106
|
-
notes: string;
|
|
107
|
-
createdAt: externaldatav1Timestamp;
|
|
108
|
-
updatedAt: externaldatav1Timestamp;
|
|
109
|
-
};
|
|
110
92
|
export type externaldatav1Timestamp = {
|
|
111
93
|
seconds: string;
|
|
112
94
|
nanos: string;
|
|
@@ -115,7 +97,7 @@ export type immutableactivityv1Address = {
|
|
|
115
97
|
format?: v1AddressFormat;
|
|
116
98
|
address?: string;
|
|
117
99
|
};
|
|
118
|
-
export type
|
|
100
|
+
export type immutablecommonv1PolicyEvaluation = {
|
|
119
101
|
policyId?: string;
|
|
120
102
|
outcome?: v1Outcome;
|
|
121
103
|
};
|
|
@@ -280,6 +262,26 @@ export type v1AuthenticatorParamsV2 = {
|
|
|
280
262
|
attestation: v1Attestation;
|
|
281
263
|
};
|
|
282
264
|
export type v1AuthenticatorTransport = "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
|
|
265
|
+
export type v1BootProof = {
|
|
266
|
+
/** The hex encoded Ephemeral Public Key. */
|
|
267
|
+
ephemeralPublicKeyHex: string;
|
|
268
|
+
/** The DER encoded COSE Sign1 struct Attestation doc. */
|
|
269
|
+
awsAttestationDocB64: string;
|
|
270
|
+
/** The borsch serialized base64 encoded Manifest. */
|
|
271
|
+
qosManifestB64: string;
|
|
272
|
+
/** The borsch serialized base64 encoded Manifest Envelope. */
|
|
273
|
+
qosManifestEnvelopeB64: string;
|
|
274
|
+
/** The label under which the enclave app was deployed. */
|
|
275
|
+
deploymentLabel: string;
|
|
276
|
+
/** Name of the enclave app */
|
|
277
|
+
enclaveApp: string;
|
|
278
|
+
/** Owner of the app i.e. 'tkhq' */
|
|
279
|
+
owner: string;
|
|
280
|
+
createdAt: externaldatav1Timestamp;
|
|
281
|
+
};
|
|
282
|
+
export type v1BootProofResponse = {
|
|
283
|
+
bootProof: v1BootProof;
|
|
284
|
+
};
|
|
283
285
|
export type v1Config = {
|
|
284
286
|
features?: v1Feature[];
|
|
285
287
|
quorum?: externaldatav1Quorum;
|
|
@@ -1298,6 +1300,18 @@ export type v1GetAuthenticatorsResponse = {
|
|
|
1298
1300
|
/** A list of authenticators. */
|
|
1299
1301
|
authenticators: v1Authenticator[];
|
|
1300
1302
|
};
|
|
1303
|
+
export type v1GetBootProofRequest = {
|
|
1304
|
+
/** Unique identifier for a given Organization. */
|
|
1305
|
+
organizationId: string;
|
|
1306
|
+
/** Hex encoded ephemeral public key. */
|
|
1307
|
+
ephemeralKey: string;
|
|
1308
|
+
};
|
|
1309
|
+
export type v1GetLatestBootProofRequest = {
|
|
1310
|
+
/** Unique identifier for a given Organization. */
|
|
1311
|
+
organizationId: string;
|
|
1312
|
+
/** Name of enclave app. */
|
|
1313
|
+
appName: string;
|
|
1314
|
+
};
|
|
1301
1315
|
export type v1GetOauth2CredentialRequest = {
|
|
1302
1316
|
/** Unique identifier for a given Organization. */
|
|
1303
1317
|
organizationId: string;
|
|
@@ -1386,7 +1400,7 @@ export type v1GetSmartContractInterfaceRequest = {
|
|
|
1386
1400
|
};
|
|
1387
1401
|
export type v1GetSmartContractInterfaceResponse = {
|
|
1388
1402
|
/** Object to be used in conjunction with policies to guard transaction signing. */
|
|
1389
|
-
smartContractInterface:
|
|
1403
|
+
smartContractInterface: v1SmartContractInterface;
|
|
1390
1404
|
};
|
|
1391
1405
|
export type v1GetSmartContractInterfacesRequest = {
|
|
1392
1406
|
/** Unique identifier for a given organization. */
|
|
@@ -1394,7 +1408,7 @@ export type v1GetSmartContractInterfacesRequest = {
|
|
|
1394
1408
|
};
|
|
1395
1409
|
export type v1GetSmartContractInterfacesResponse = {
|
|
1396
1410
|
/** A list of smart contract interfaces. */
|
|
1397
|
-
smartContractInterfaces:
|
|
1411
|
+
smartContractInterfaces: v1SmartContractInterface[];
|
|
1398
1412
|
};
|
|
1399
1413
|
export type v1GetSubOrgIdsRequest = {
|
|
1400
1414
|
/** Unique identifier for the parent organization. This is used to find sub-organizations within it. */
|
|
@@ -1574,6 +1588,8 @@ export type v1InitFiatOnRampIntent = {
|
|
|
1574
1588
|
countrySubdivisionCode?: string;
|
|
1575
1589
|
/** Optional flag to indicate whether to use the sandbox mode to simulate transactions for the on-ramp provider. Default is false. */
|
|
1576
1590
|
sandboxMode?: boolean;
|
|
1591
|
+
/** Optional MoonPay Widget URL to sign when using MoonPay client SDKs with URL Signing enabled. */
|
|
1592
|
+
urlForSignature?: string;
|
|
1577
1593
|
};
|
|
1578
1594
|
export type v1InitFiatOnRampRequest = {
|
|
1579
1595
|
type: string;
|
|
@@ -1588,6 +1604,8 @@ export type v1InitFiatOnRampResult = {
|
|
|
1588
1604
|
onRampUrl: string;
|
|
1589
1605
|
/** Unique identifier used to retrieve transaction statuses for a given fiat on-ramp flow. */
|
|
1590
1606
|
onRampTransactionId: string;
|
|
1607
|
+
/** Optional signature of the MoonPay Widget URL. The signature is generated if the Init Fiat On Ramp intent includes the urlForSignature field. The signature can be used to initialize the MoonPay SDKs when URL signing is enabled for your project. */
|
|
1608
|
+
onRampUrlSignature?: string;
|
|
1591
1609
|
};
|
|
1592
1610
|
export type v1InitImportPrivateKeyIntent = {
|
|
1593
1611
|
/** The ID of the User importing a Private Key. */
|
|
@@ -2437,6 +2455,24 @@ export type v1SimpleClientExtensionResults = {
|
|
|
2437
2455
|
appidExclude?: boolean;
|
|
2438
2456
|
credProps?: v1CredPropsAuthenticationExtensionsClientOutputs;
|
|
2439
2457
|
};
|
|
2458
|
+
export type v1SmartContractInterface = {
|
|
2459
|
+
/** The Organization the Smart Contract Interface belongs to. */
|
|
2460
|
+
organizationId: string;
|
|
2461
|
+
/** Unique identifier for a given Smart Contract Interface (ABI or IDL). */
|
|
2462
|
+
smartContractInterfaceId: string;
|
|
2463
|
+
/** The address corresponding to the Smart Contract or Program. */
|
|
2464
|
+
smartContractAddress: string;
|
|
2465
|
+
/** The JSON corresponding to the Smart Contract Interface (ABI or IDL). */
|
|
2466
|
+
smartContractInterface: string;
|
|
2467
|
+
/** The type corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
|
|
2468
|
+
type: string;
|
|
2469
|
+
/** The label corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
|
|
2470
|
+
label: string;
|
|
2471
|
+
/** The notes corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
|
|
2472
|
+
notes: string;
|
|
2473
|
+
createdAt: externaldatav1Timestamp;
|
|
2474
|
+
updatedAt: externaldatav1Timestamp;
|
|
2475
|
+
};
|
|
2440
2476
|
export type v1SmartContractInterfaceReference = {
|
|
2441
2477
|
smartContractInterfaceId?: string;
|
|
2442
2478
|
smartContractAddress?: string;
|
|
@@ -2512,8 +2548,6 @@ export type v1UpdateAuthProxyConfigIntent = {
|
|
|
2512
2548
|
otpAlphanumeric?: boolean;
|
|
2513
2549
|
/** Desired OTP code length (6–9). */
|
|
2514
2550
|
otpLength?: number;
|
|
2515
|
-
/** A map of OAuth 2.0 provider and their respective credential ID to use for the OAuth 2.0 authentication flow. */
|
|
2516
|
-
oauth2ProviderCredentialIds?: Record<string, any>;
|
|
2517
2551
|
};
|
|
2518
2552
|
export type v1UpdateAuthProxyConfigResult = {
|
|
2519
2553
|
/** Unique identifier for a given User. (representing the turnkey signer user id) */
|
|
@@ -2895,6 +2929,10 @@ export type v1WalletAccountParams = {
|
|
|
2895
2929
|
export type v1WalletKitSettingsParams = {
|
|
2896
2930
|
/** List of enabled social login providers (e.g., 'apple', 'google', 'facebook') */
|
|
2897
2931
|
enabledSocialProviders?: string[];
|
|
2932
|
+
/** Mapping of social login providers to their Oauth client IDs. */
|
|
2933
|
+
oauthClientIds?: Record<string, any>;
|
|
2934
|
+
/** Oauth redirect URL to be used for social login flows. */
|
|
2935
|
+
oauthRedirectUrl?: string;
|
|
2898
2936
|
};
|
|
2899
2937
|
export type v1WalletParams = {
|
|
2900
2938
|
/** Human-readable name for a Wallet. */
|
|
@@ -2991,6 +3029,28 @@ export type TGetAuthenticatorsBody = {
|
|
|
2991
3029
|
export type TGetAuthenticatorsInput = {
|
|
2992
3030
|
body: TGetAuthenticatorsBody;
|
|
2993
3031
|
};
|
|
3032
|
+
export type TGetBootProofResponse = {
|
|
3033
|
+
bootProof: v1BootProof;
|
|
3034
|
+
};
|
|
3035
|
+
export type TGetBootProofBody = {
|
|
3036
|
+
organizationId?: string;
|
|
3037
|
+
/** Hex encoded ephemeral public key. */
|
|
3038
|
+
ephemeralKey: string;
|
|
3039
|
+
};
|
|
3040
|
+
export type TGetBootProofInput = {
|
|
3041
|
+
body: TGetBootProofBody;
|
|
3042
|
+
};
|
|
3043
|
+
export type TGetLatestBootProofResponse = {
|
|
3044
|
+
bootProof: v1BootProof;
|
|
3045
|
+
};
|
|
3046
|
+
export type TGetLatestBootProofBody = {
|
|
3047
|
+
organizationId?: string;
|
|
3048
|
+
/** Name of enclave app. */
|
|
3049
|
+
appName: string;
|
|
3050
|
+
};
|
|
3051
|
+
export type TGetLatestBootProofInput = {
|
|
3052
|
+
body: TGetLatestBootProofBody;
|
|
3053
|
+
};
|
|
2994
3054
|
export type TGetOauth2CredentialResponse = {
|
|
2995
3055
|
oauth2Credential: v1Oauth2Credential;
|
|
2996
3056
|
};
|
|
@@ -3071,7 +3131,7 @@ export type TGetPrivateKeyInput = {
|
|
|
3071
3131
|
};
|
|
3072
3132
|
export type TGetSmartContractInterfaceResponse = {
|
|
3073
3133
|
/** Object to be used in conjunction with policies to guard transaction signing. */
|
|
3074
|
-
smartContractInterface:
|
|
3134
|
+
smartContractInterface: v1SmartContractInterface;
|
|
3075
3135
|
};
|
|
3076
3136
|
export type TGetSmartContractInterfaceBody = {
|
|
3077
3137
|
organizationId?: string;
|
|
@@ -3178,7 +3238,7 @@ export type TGetPrivateKeysInput = {
|
|
|
3178
3238
|
};
|
|
3179
3239
|
export type TGetSmartContractInterfacesResponse = {
|
|
3180
3240
|
/** A list of smart contract interfaces. */
|
|
3181
|
-
smartContractInterfaces:
|
|
3241
|
+
smartContractInterfaces: v1SmartContractInterface[];
|
|
3182
3242
|
};
|
|
3183
3243
|
export type TGetSmartContractInterfacesBody = {
|
|
3184
3244
|
organizationId?: string;
|
|
@@ -3963,6 +4023,8 @@ export type TInitFiatOnRampResponse = {
|
|
|
3963
4023
|
onRampUrl: string;
|
|
3964
4024
|
/** Unique identifier used to retrieve transaction statuses for a given fiat on-ramp flow. */
|
|
3965
4025
|
onRampTransactionId: string;
|
|
4026
|
+
/** Optional signature of the MoonPay Widget URL. The signature is generated if the Init Fiat On Ramp intent includes the urlForSignature field. The signature can be used to initialize the MoonPay SDKs when URL signing is enabled for your project. */
|
|
4027
|
+
onRampUrlSignature?: string;
|
|
3966
4028
|
};
|
|
3967
4029
|
export type TInitFiatOnRampBody = {
|
|
3968
4030
|
timestampMs?: string;
|
|
@@ -3987,6 +4049,8 @@ export type TInitFiatOnRampBody = {
|
|
|
3987
4049
|
countrySubdivisionCode?: string;
|
|
3988
4050
|
/** Optional flag to indicate whether to use the sandbox mode to simulate transactions for the on-ramp provider. Default is false. */
|
|
3989
4051
|
sandboxMode?: boolean;
|
|
4052
|
+
/** Optional MoonPay Widget URL to sign when using MoonPay client SDKs with URL Signing enabled. */
|
|
4053
|
+
urlForSignature?: string;
|
|
3990
4054
|
};
|
|
3991
4055
|
export type TInitFiatOnRampInput = {
|
|
3992
4056
|
body: TInitFiatOnRampBody;
|
|
@@ -4603,6 +4667,8 @@ export type ProxyTOAuth2AuthenticateBody = {
|
|
|
4603
4667
|
codeVerifier: string;
|
|
4604
4668
|
/** An optional nonce used by the client to prevent replay/substitution of an ID token */
|
|
4605
4669
|
nonce?: string;
|
|
4670
|
+
/** The client ID registered with the OAuth 2.0 provider */
|
|
4671
|
+
clientId: string;
|
|
4606
4672
|
};
|
|
4607
4673
|
export type ProxyTOAuth2AuthenticateInput = {
|
|
4608
4674
|
body: ProxyTOAuth2AuthenticateBody;
|
|
@@ -4692,6 +4758,10 @@ export type ProxyTGetWalletKitConfigResponse = {
|
|
|
4692
4758
|
sessionExpirationSeconds: string;
|
|
4693
4759
|
/** The organization ID this configuration applies to */
|
|
4694
4760
|
organizationId: string;
|
|
4761
|
+
/** Mapping of social login providers to their OAuth client IDs. */
|
|
4762
|
+
oauthClientIds?: Record<string, any>;
|
|
4763
|
+
/** OAuth redirect URL to be used for social login flows. */
|
|
4764
|
+
oauthRedirectUrl?: string;
|
|
4695
4765
|
};
|
|
4696
4766
|
export type ProxyTGetWalletKitConfigBody = {};
|
|
4697
4767
|
export type ProxyTGetWalletKitConfigInput = {
|