@cubist-labs/cubesigner-sdk 0.4.279 → 0.4.281
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/dist/package.json +1 -1
- package/dist/spec/env/beta.json +0 -6
- package/dist/src/client/api_client.d.ts +12 -11
- package/dist/src/client/api_client.d.ts.map +1 -1
- package/dist/src/client/api_client.js +7 -10
- package/dist/src/client.d.ts +1 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/key.d.ts +35 -2
- package/dist/src/key.d.ts.map +1 -1
- package/dist/src/key.js +34 -1
- package/dist/src/mfa.d.ts +16 -3
- package/dist/src/mfa.d.ts.map +1 -1
- package/dist/src/mfa.js +8 -4
- package/dist/src/org.d.ts.map +1 -1
- package/dist/src/role.d.ts +2 -2
- package/dist/src/role.d.ts.map +1 -1
- package/dist/src/schema.d.ts +101 -5
- package/dist/src/schema.d.ts.map +1 -1
- package/dist/src/schema.js +1 -1
- package/dist/src/scopes.d.ts.map +1 -1
- package/dist/src/scopes.js +2 -1
- package/package.json +1 -1
- package/src/client/api_client.ts +11 -11
- package/src/key.ts +50 -0
- package/src/mfa.ts +7 -3
- package/src/schema.ts +101 -4
- package/src/scopes.ts +1 -0
package/src/schema.ts
CHANGED
|
@@ -5289,6 +5289,11 @@ export interface components {
|
|
|
5289
5289
|
*/
|
|
5290
5290
|
ContactLabel: "cubist:erc20_token" | "cubist:spl_token";
|
|
5291
5291
|
CreateAndUpdateKeyProperties: {
|
|
5292
|
+
/**
|
|
5293
|
+
* @description Set this key's access-control entries.
|
|
5294
|
+
* For an existing key, this overwrites the current acl, if any.
|
|
5295
|
+
*/
|
|
5296
|
+
acl?: unknown;
|
|
5292
5297
|
edit_policy?: components["schemas"]["EditPolicy"] | null;
|
|
5293
5298
|
/**
|
|
5294
5299
|
* @description Set this key's metadata. If this value is `null`, the metadata is erased. If the field is
|
|
@@ -6183,7 +6188,7 @@ export interface components {
|
|
|
6183
6188
|
/** @default null */
|
|
6184
6189
|
Empty: unknown;
|
|
6185
6190
|
EmptyImpl: {
|
|
6186
|
-
status:
|
|
6191
|
+
status: components["schemas"]["StatusOk"];
|
|
6187
6192
|
};
|
|
6188
6193
|
/**
|
|
6189
6194
|
* @description Request to create a set of EOTS nonces for a specified chain-id, starting
|
|
@@ -6742,6 +6747,7 @@ export interface components {
|
|
|
6742
6747
|
| "manage:key:update:*"
|
|
6743
6748
|
| "manage:key:update:owner"
|
|
6744
6749
|
| "manage:key:update:policy"
|
|
6750
|
+
| "manage:key:update:acl"
|
|
6745
6751
|
| "manage:key:update:enabled"
|
|
6746
6752
|
| "manage:key:update:region"
|
|
6747
6753
|
| "manage:key:update:metadata"
|
|
@@ -6945,6 +6951,19 @@ export interface components {
|
|
|
6945
6951
|
};
|
|
6946
6952
|
/** @description Declares intent to register a new FIDO key */
|
|
6947
6953
|
FidoCreateRequest: {
|
|
6954
|
+
/**
|
|
6955
|
+
* @description If set, the attestation answering this registration challenge additionally counts as an
|
|
6956
|
+
* approving vote on pending MFA request `mfa_id`.
|
|
6957
|
+
*
|
|
6958
|
+
* This exists so that a user who must register their first second factor in order to complete
|
|
6959
|
+
* an operation (most commonly logging in) does not have to perform two authenticator
|
|
6960
|
+
* ceremonies back to back: one to enroll the credential and another to immediately prove
|
|
6961
|
+
* possession of it. The attestation is a full WebAuthn ceremony over a server-issued
|
|
6962
|
+
* challenge, so it is no weaker than the separate assertion it replaces.
|
|
6963
|
+
*
|
|
6964
|
+
* Requires the 'manage:mfa:vote:fido' scope in addition to 'manage:mfa:register:fido'.
|
|
6965
|
+
*/
|
|
6966
|
+
approve_mfa?: string | null;
|
|
6948
6967
|
/** @description Whether this key can be used for passwordless login */
|
|
6949
6968
|
discoverable?: boolean;
|
|
6950
6969
|
/**
|
|
@@ -6961,6 +6980,11 @@ export interface components {
|
|
|
6961
6980
|
*/
|
|
6962
6981
|
request_device_identifier?: boolean;
|
|
6963
6982
|
};
|
|
6983
|
+
/** @description Result of registering a FIDO key */
|
|
6984
|
+
FidoRegisterResponse: {
|
|
6985
|
+
mfa?: components["schemas"]["MfaRequestInfo"];
|
|
6986
|
+
status: components["schemas"]["StatusOk"];
|
|
6987
|
+
};
|
|
6964
6988
|
/** @enum {string} */
|
|
6965
6989
|
ForbiddenErrorCode:
|
|
6966
6990
|
| "AlienKeyCreate"
|
|
@@ -7696,6 +7720,20 @@ export interface components {
|
|
|
7696
7720
|
role_id: string;
|
|
7697
7721
|
};
|
|
7698
7722
|
KeyInfo: components["schemas"]["CommonFields"] & {
|
|
7723
|
+
/**
|
|
7724
|
+
* @description Key access-control entries
|
|
7725
|
+
* @example [
|
|
7726
|
+
* {
|
|
7727
|
+
* "actions": [
|
|
7728
|
+
* "manage:key:properties"
|
|
7729
|
+
* ],
|
|
7730
|
+
* "subjects": [
|
|
7731
|
+
* "User#c3b9379c-4e8c-4216-bd0a-65ace53cf98f"
|
|
7732
|
+
* ]
|
|
7733
|
+
* }
|
|
7734
|
+
* ]
|
|
7735
|
+
*/
|
|
7736
|
+
acl?: unknown[] | null;
|
|
7699
7737
|
derivation_info?: components["schemas"]["KeyDerivationInfo"] | null;
|
|
7700
7738
|
/** @description Whether the key is enabled (only enabled keys may be used for signing) */
|
|
7701
7739
|
enabled: boolean;
|
|
@@ -10717,6 +10755,16 @@ export interface components {
|
|
|
10717
10755
|
};
|
|
10718
10756
|
};
|
|
10719
10757
|
};
|
|
10758
|
+
/**
|
|
10759
|
+
* @description The `status` field carried by [`Empty`] responses. Always serializes as `"ok"`.
|
|
10760
|
+
*
|
|
10761
|
+
* Endpoints that used to return [`Empty`] and now return something richer must keep emitting
|
|
10762
|
+
* this field, because generated clients bind [`Empty`] to a struct with a *required* `status`
|
|
10763
|
+
* and would otherwise fail to deserialize a successful response. Use this type rather than a
|
|
10764
|
+
* bare `String` so the one acceptable value is not something anyone has to remember.
|
|
10765
|
+
* @enum {string}
|
|
10766
|
+
*/
|
|
10767
|
+
StatusOk: "ok";
|
|
10720
10768
|
/**
|
|
10721
10769
|
* @description A single asset balance entry returned by [`SubAccountAssetsResponse`].
|
|
10722
10770
|
*
|
|
@@ -11137,8 +11185,25 @@ export interface components {
|
|
|
11137
11185
|
*/
|
|
11138
11186
|
totp_url: string;
|
|
11139
11187
|
};
|
|
11188
|
+
/** @description Result of registering (resetting) TOTP */
|
|
11189
|
+
TotpRegisterResponse: {
|
|
11190
|
+
mfa?: components["schemas"]["MfaRequestInfo"];
|
|
11191
|
+
status: components["schemas"]["StatusOk"];
|
|
11192
|
+
};
|
|
11140
11193
|
/** @description Request to reset TOTP. */
|
|
11141
11194
|
TotpResetRequest: {
|
|
11195
|
+
/**
|
|
11196
|
+
* @description If set, the code answering this challenge additionally counts as an approving vote on
|
|
11197
|
+
* pending MFA request `mfa_id`.
|
|
11198
|
+
*
|
|
11199
|
+
* This exists so that a user who must register their first second factor in order to complete
|
|
11200
|
+
* an operation (most commonly logging in) does not have to enter two TOTP codes back to back:
|
|
11201
|
+
* one to confirm enrollment and another to immediately approve the pending request. Answering
|
|
11202
|
+
* the challenge already proves possession of the new secret.
|
|
11203
|
+
*
|
|
11204
|
+
* Requires the 'manage:mfa:vote:totp' scope in addition to 'manage:mfa:register:totp'.
|
|
11205
|
+
*/
|
|
11206
|
+
approve_mfa?: string | null;
|
|
11142
11207
|
/** @description The name of the issuer; defaults to "Cubist". */
|
|
11143
11208
|
issuer?: string | null;
|
|
11144
11209
|
};
|
|
@@ -12774,7 +12839,7 @@ export interface components {
|
|
|
12774
12839
|
EmptyImpl: {
|
|
12775
12840
|
content: {
|
|
12776
12841
|
"application/json": {
|
|
12777
|
-
status:
|
|
12842
|
+
status: components["schemas"]["StatusOk"];
|
|
12778
12843
|
};
|
|
12779
12844
|
};
|
|
12780
12845
|
};
|
|
@@ -12840,6 +12905,15 @@ export interface components {
|
|
|
12840
12905
|
};
|
|
12841
12906
|
};
|
|
12842
12907
|
};
|
|
12908
|
+
/** @description Result of registering a FIDO key */
|
|
12909
|
+
FidoRegisterResponse: {
|
|
12910
|
+
content: {
|
|
12911
|
+
"application/json": {
|
|
12912
|
+
mfa?: components["schemas"]["MfaRequestInfo"];
|
|
12913
|
+
status: components["schemas"]["StatusOk"];
|
|
12914
|
+
};
|
|
12915
|
+
};
|
|
12916
|
+
};
|
|
12843
12917
|
/** @description The email sender configuration (without sensitive auth details) */
|
|
12844
12918
|
GetEmailConfigResponse: {
|
|
12845
12919
|
content: {
|
|
@@ -13012,6 +13086,20 @@ export interface components {
|
|
|
13012
13086
|
KeyInfo: {
|
|
13013
13087
|
content: {
|
|
13014
13088
|
"application/json": components["schemas"]["CommonFields"] & {
|
|
13089
|
+
/**
|
|
13090
|
+
* @description Key access-control entries
|
|
13091
|
+
* @example [
|
|
13092
|
+
* {
|
|
13093
|
+
* "actions": [
|
|
13094
|
+
* "manage:key:properties"
|
|
13095
|
+
* ],
|
|
13096
|
+
* "subjects": [
|
|
13097
|
+
* "User#c3b9379c-4e8c-4216-bd0a-65ace53cf98f"
|
|
13098
|
+
* ]
|
|
13099
|
+
* }
|
|
13100
|
+
* ]
|
|
13101
|
+
*/
|
|
13102
|
+
acl?: unknown[] | null;
|
|
13015
13103
|
derivation_info?: components["schemas"]["KeyDerivationInfo"] | null;
|
|
13016
13104
|
/** @description Whether the key is enabled (only enabled keys may be used for signing) */
|
|
13017
13105
|
enabled: boolean;
|
|
@@ -14030,6 +14118,15 @@ export interface components {
|
|
|
14030
14118
|
};
|
|
14031
14119
|
};
|
|
14032
14120
|
};
|
|
14121
|
+
/** @description Result of registering (resetting) TOTP */
|
|
14122
|
+
TotpRegisterResponse: {
|
|
14123
|
+
content: {
|
|
14124
|
+
"application/json": {
|
|
14125
|
+
mfa?: components["schemas"]["MfaRequestInfo"];
|
|
14126
|
+
status: components["schemas"]["StatusOk"];
|
|
14127
|
+
};
|
|
14128
|
+
};
|
|
14129
|
+
};
|
|
14033
14130
|
/** @description A response to sign an eth2 unstake request. */
|
|
14034
14131
|
UnstakeResponse: {
|
|
14035
14132
|
content: {
|
|
@@ -19500,7 +19597,7 @@ export interface operations {
|
|
|
19500
19597
|
};
|
|
19501
19598
|
};
|
|
19502
19599
|
responses: {
|
|
19503
|
-
200: components["responses"]["
|
|
19600
|
+
200: components["responses"]["FidoRegisterResponse"];
|
|
19504
19601
|
default: {
|
|
19505
19602
|
content: {
|
|
19506
19603
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
@@ -19647,7 +19744,7 @@ export interface operations {
|
|
|
19647
19744
|
};
|
|
19648
19745
|
};
|
|
19649
19746
|
responses: {
|
|
19650
|
-
200: components["responses"]["
|
|
19747
|
+
200: components["responses"]["TotpRegisterResponse"];
|
|
19651
19748
|
default: {
|
|
19652
19749
|
content: {
|
|
19653
19750
|
"application/json": components["schemas"]["ErrorResponse"];
|
package/src/scopes.ts
CHANGED
|
@@ -123,6 +123,7 @@ export const AllScopes: Record<ExplicitScope, string> =
|
|
|
123
123
|
"manage:key:update:owner" : "Allows access only to the key 'update' endpoint, but restricting updates to the key 'owner' property",
|
|
124
124
|
"manage:key:update:region" : "Allows access only to the key 'update' endpoint, but restricting updates to the key 'region' property",
|
|
125
125
|
"manage:key:update:policy" : "Allows access only to the key 'update' endpoint, but restricting updates to the key 'policy' property",
|
|
126
|
+
"manage:key:update:acl" : "Allows access only to the key 'update' endpoint, but restricting updates to the key 'acl' property",
|
|
126
127
|
"manage:key:update:enabled" : "Allows access only to the key 'update' endpoint, but restricting updates to the key 'enabled' property",
|
|
127
128
|
"manage:key:update:metadata" : "Allows access only to the key 'update' endpoint and restricts updates to the key 'metadata' property",
|
|
128
129
|
"manage:key:update:properties" : "Allows access only to the key 'update' endpoint and restricts updates to the key 'properties' property",
|