@dfns/sdk 0.7.13 → 0.7.14
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/generated/auth/client.d.ts +3 -0
- package/generated/auth/client.js +36 -0
- package/generated/auth/delegatedClient.d.ts +4 -0
- package/generated/auth/delegatedClient.js +51 -0
- package/generated/auth/types.d.ts +111 -15
- package/generated/exchanges/types.d.ts +12 -0
- package/generated/keys/types.d.ts +8 -0
- package/generated/networks/types.d.ts +9 -0
- package/generated/permissions/types.d.ts +2 -2
- package/generated/policies/types.d.ts +66 -0
- package/generated/signers/client.d.ts +1 -0
- package/generated/signers/client.js +11 -0
- package/generated/signers/delegatedClient.d.ts +1 -0
- package/generated/signers/delegatedClient.js +11 -0
- package/generated/signers/types.d.ts +7 -0
- package/generated/staking/types.d.ts +6 -0
- package/generated/swaps/types.d.ts +118 -0
- package/generated/wallets/types.d.ts +40 -0
- package/package.json +1 -1
|
@@ -69,6 +69,9 @@ export declare class AuthClient {
|
|
|
69
69
|
sendLoginCode(request: T.SendLoginCodeRequest): Promise<T.SendLoginCodeResponse>;
|
|
70
70
|
sendRecoveryCode(request: T.SendRecoveryCodeRequest): Promise<T.SendRecoveryCodeResponse>;
|
|
71
71
|
socialLogin(request: T.SocialLoginRequest): Promise<T.SocialLoginResponse>;
|
|
72
|
+
sSOLogin(request: T.SSOLoginRequest): Promise<T.SSOLoginResponse>;
|
|
73
|
+
sSOLoginInit(request: T.SSOLoginInitRequest): Promise<T.SSOLoginInitResponse>;
|
|
72
74
|
updatePersonalAccessToken(request: T.UpdatePersonalAccessTokenRequest): Promise<T.UpdatePersonalAccessTokenResponse>;
|
|
73
75
|
updateServiceAccount(request: T.UpdateServiceAccountRequest): Promise<T.UpdateServiceAccountResponse>;
|
|
76
|
+
updateUser(request: T.UpdateUserRequest): Promise<T.UpdateUserResponse>;
|
|
74
77
|
}
|
package/generated/auth/client.js
CHANGED
|
@@ -610,6 +610,30 @@ class AuthClient {
|
|
|
610
610
|
});
|
|
611
611
|
return response.json();
|
|
612
612
|
}
|
|
613
|
+
async sSOLogin(request) {
|
|
614
|
+
const path = (0, url_1.buildPathAndQuery)('/auth/login/sso', {
|
|
615
|
+
path: request ?? {},
|
|
616
|
+
query: {},
|
|
617
|
+
});
|
|
618
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
619
|
+
method: 'POST',
|
|
620
|
+
body: request.body,
|
|
621
|
+
apiOptions: this.apiOptions,
|
|
622
|
+
});
|
|
623
|
+
return response.json();
|
|
624
|
+
}
|
|
625
|
+
async sSOLoginInit(request) {
|
|
626
|
+
const path = (0, url_1.buildPathAndQuery)('/auth/login/sso/init', {
|
|
627
|
+
path: request ?? {},
|
|
628
|
+
query: {},
|
|
629
|
+
});
|
|
630
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
631
|
+
method: 'POST',
|
|
632
|
+
body: request.body,
|
|
633
|
+
apiOptions: this.apiOptions,
|
|
634
|
+
});
|
|
635
|
+
return response.json();
|
|
636
|
+
}
|
|
613
637
|
async updatePersonalAccessToken(request) {
|
|
614
638
|
const path = (0, url_1.buildPathAndQuery)('/auth/pats/:tokenId', {
|
|
615
639
|
path: request ?? {},
|
|
@@ -634,5 +658,17 @@ class AuthClient {
|
|
|
634
658
|
});
|
|
635
659
|
return response.json();
|
|
636
660
|
}
|
|
661
|
+
async updateUser(request) {
|
|
662
|
+
const path = (0, url_1.buildPathAndQuery)('/auth/users/:userId', {
|
|
663
|
+
path: request ?? {},
|
|
664
|
+
query: {},
|
|
665
|
+
});
|
|
666
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
667
|
+
method: 'PUT',
|
|
668
|
+
body: request.body,
|
|
669
|
+
apiOptions: this.apiOptions,
|
|
670
|
+
});
|
|
671
|
+
return response.json();
|
|
672
|
+
}
|
|
637
673
|
}
|
|
638
674
|
exports.AuthClient = AuthClient;
|
|
@@ -81,8 +81,12 @@ export declare class DelegatedAuthClient {
|
|
|
81
81
|
sendLoginCode(request: T.SendLoginCodeRequest): Promise<T.SendLoginCodeResponse>;
|
|
82
82
|
sendRecoveryCode(request: T.SendRecoveryCodeRequest): Promise<T.SendRecoveryCodeResponse>;
|
|
83
83
|
socialLogin(request: T.SocialLoginRequest): Promise<T.SocialLoginResponse>;
|
|
84
|
+
sSOLogin(request: T.SSOLoginRequest): Promise<T.SSOLoginResponse>;
|
|
85
|
+
sSOLoginInit(request: T.SSOLoginInitRequest): Promise<T.SSOLoginInitResponse>;
|
|
84
86
|
updatePersonalAccessTokenInit(request: T.UpdatePersonalAccessTokenRequest): Promise<UserActionChallengeResponse>;
|
|
85
87
|
updatePersonalAccessTokenComplete(request: T.UpdatePersonalAccessTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdatePersonalAccessTokenResponse>;
|
|
86
88
|
updateServiceAccountInit(request: T.UpdateServiceAccountRequest): Promise<UserActionChallengeResponse>;
|
|
87
89
|
updateServiceAccountComplete(request: T.UpdateServiceAccountRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdateServiceAccountResponse>;
|
|
90
|
+
updateUserInit(request: T.UpdateUserRequest): Promise<UserActionChallengeResponse>;
|
|
91
|
+
updateUserComplete(request: T.UpdateUserRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdateUserResponse>;
|
|
88
92
|
}
|
|
@@ -878,6 +878,30 @@ class DelegatedAuthClient {
|
|
|
878
878
|
});
|
|
879
879
|
return response.json();
|
|
880
880
|
}
|
|
881
|
+
async sSOLogin(request) {
|
|
882
|
+
const path = (0, url_1.buildPathAndQuery)('/auth/login/sso', {
|
|
883
|
+
path: request ?? {},
|
|
884
|
+
query: {},
|
|
885
|
+
});
|
|
886
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
887
|
+
method: 'POST',
|
|
888
|
+
body: request.body,
|
|
889
|
+
apiOptions: this.apiOptions,
|
|
890
|
+
});
|
|
891
|
+
return response.json();
|
|
892
|
+
}
|
|
893
|
+
async sSOLoginInit(request) {
|
|
894
|
+
const path = (0, url_1.buildPathAndQuery)('/auth/login/sso/init', {
|
|
895
|
+
path: request ?? {},
|
|
896
|
+
query: {},
|
|
897
|
+
});
|
|
898
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
899
|
+
method: 'POST',
|
|
900
|
+
body: request.body,
|
|
901
|
+
apiOptions: this.apiOptions,
|
|
902
|
+
});
|
|
903
|
+
return response.json();
|
|
904
|
+
}
|
|
881
905
|
async updatePersonalAccessTokenInit(request) {
|
|
882
906
|
const path = (0, url_1.buildPathAndQuery)('/auth/pats/:tokenId', {
|
|
883
907
|
path: request ?? {},
|
|
@@ -932,5 +956,32 @@ class DelegatedAuthClient {
|
|
|
932
956
|
});
|
|
933
957
|
return response.json();
|
|
934
958
|
}
|
|
959
|
+
async updateUserInit(request) {
|
|
960
|
+
const path = (0, url_1.buildPathAndQuery)('/auth/users/:userId', {
|
|
961
|
+
path: request ?? {},
|
|
962
|
+
query: {},
|
|
963
|
+
});
|
|
964
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
965
|
+
userActionHttpMethod: 'PUT',
|
|
966
|
+
userActionHttpPath: path,
|
|
967
|
+
userActionPayload: JSON.stringify(request.body),
|
|
968
|
+
userActionServerKind: 'Api',
|
|
969
|
+
}, this.apiOptions);
|
|
970
|
+
return challenge;
|
|
971
|
+
}
|
|
972
|
+
async updateUserComplete(request, signedChallenge) {
|
|
973
|
+
const path = (0, url_1.buildPathAndQuery)('/auth/users/:userId', {
|
|
974
|
+
path: request ?? {},
|
|
975
|
+
query: {},
|
|
976
|
+
});
|
|
977
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
978
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
979
|
+
method: 'PUT',
|
|
980
|
+
body: request.body,
|
|
981
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
982
|
+
apiOptions: this.apiOptions,
|
|
983
|
+
});
|
|
984
|
+
return response.json();
|
|
985
|
+
}
|
|
935
986
|
}
|
|
936
987
|
exports.DelegatedAuthClient = DelegatedAuthClient;
|
|
@@ -15,7 +15,7 @@ export type ActivatePersonalAccessTokenResponse = {
|
|
|
15
15
|
dateCreated: string;
|
|
16
16
|
credId: string;
|
|
17
17
|
isActive: boolean;
|
|
18
|
-
/** Access token kind */
|
|
18
|
+
/** Access token kind. */
|
|
19
19
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
20
20
|
linkedUserId: string;
|
|
21
21
|
linkedAppId: string;
|
|
@@ -38,7 +38,9 @@ export type ActivateServiceAccountResponse = {
|
|
|
38
38
|
userInfo: {
|
|
39
39
|
username: string;
|
|
40
40
|
name: string;
|
|
41
|
+
/** User id. */
|
|
41
42
|
userId: string;
|
|
43
|
+
/** User kind. */
|
|
42
44
|
kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
|
|
43
45
|
credentialUuid: string;
|
|
44
46
|
orgId: string;
|
|
@@ -58,7 +60,7 @@ export type ActivateServiceAccountResponse = {
|
|
|
58
60
|
dateCreated: string;
|
|
59
61
|
credId: string;
|
|
60
62
|
isActive: boolean;
|
|
61
|
-
/** Access token kind */
|
|
63
|
+
/** Access token kind. */
|
|
62
64
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
63
65
|
linkedUserId: string;
|
|
64
66
|
linkedAppId: string;
|
|
@@ -81,7 +83,9 @@ export type ActivateUserParams = {
|
|
|
81
83
|
export type ActivateUserResponse = {
|
|
82
84
|
username: string;
|
|
83
85
|
name: string;
|
|
86
|
+
/** User id. */
|
|
84
87
|
userId: string;
|
|
88
|
+
/** User kind. */
|
|
85
89
|
kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
|
|
86
90
|
credentialUuid: string;
|
|
87
91
|
orgId: string;
|
|
@@ -89,6 +93,7 @@ export type ActivateUserResponse = {
|
|
|
89
93
|
isActive: boolean;
|
|
90
94
|
isServiceAccount: boolean;
|
|
91
95
|
isRegistered: boolean;
|
|
96
|
+
isSSORequired: boolean;
|
|
92
97
|
permissionAssignments: {
|
|
93
98
|
permissionName: string;
|
|
94
99
|
permissionId: string;
|
|
@@ -105,7 +110,7 @@ export type ArchivePersonalAccessTokenResponse = {
|
|
|
105
110
|
dateCreated: string;
|
|
106
111
|
credId: string;
|
|
107
112
|
isActive: boolean;
|
|
108
|
-
/** Access token kind */
|
|
113
|
+
/** Access token kind. */
|
|
109
114
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
110
115
|
linkedUserId: string;
|
|
111
116
|
linkedAppId: string;
|
|
@@ -128,7 +133,9 @@ export type ArchiveServiceAccountResponse = {
|
|
|
128
133
|
userInfo: {
|
|
129
134
|
username: string;
|
|
130
135
|
name: string;
|
|
136
|
+
/** User id. */
|
|
131
137
|
userId: string;
|
|
138
|
+
/** User kind. */
|
|
132
139
|
kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
|
|
133
140
|
credentialUuid: string;
|
|
134
141
|
orgId: string;
|
|
@@ -148,7 +155,7 @@ export type ArchiveServiceAccountResponse = {
|
|
|
148
155
|
dateCreated: string;
|
|
149
156
|
credId: string;
|
|
150
157
|
isActive: boolean;
|
|
151
|
-
/** Access token kind */
|
|
158
|
+
/** Access token kind. */
|
|
152
159
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
153
160
|
linkedUserId: string;
|
|
154
161
|
linkedAppId: string;
|
|
@@ -171,7 +178,9 @@ export type ArchiveUserParams = {
|
|
|
171
178
|
export type ArchiveUserResponse = {
|
|
172
179
|
username: string;
|
|
173
180
|
name: string;
|
|
181
|
+
/** User id. */
|
|
174
182
|
userId: string;
|
|
183
|
+
/** User kind. */
|
|
175
184
|
kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
|
|
176
185
|
credentialUuid: string;
|
|
177
186
|
orgId: string;
|
|
@@ -179,6 +188,7 @@ export type ArchiveUserResponse = {
|
|
|
179
188
|
isActive: boolean;
|
|
180
189
|
isServiceAccount: boolean;
|
|
181
190
|
isRegistered: boolean;
|
|
191
|
+
isSSORequired: boolean;
|
|
182
192
|
permissionAssignments: {
|
|
183
193
|
permissionName: string;
|
|
184
194
|
permissionId: string;
|
|
@@ -837,7 +847,9 @@ export type CreateServiceAccountResponse = {
|
|
|
837
847
|
userInfo: {
|
|
838
848
|
username: string;
|
|
839
849
|
name: string;
|
|
850
|
+
/** User id. */
|
|
840
851
|
userId: string;
|
|
852
|
+
/** User kind. */
|
|
841
853
|
kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
|
|
842
854
|
credentialUuid: string;
|
|
843
855
|
orgId: string;
|
|
@@ -857,7 +869,7 @@ export type CreateServiceAccountResponse = {
|
|
|
857
869
|
dateCreated: string;
|
|
858
870
|
credId: string;
|
|
859
871
|
isActive: boolean;
|
|
860
|
-
/** Access token kind */
|
|
872
|
+
/** Access token kind. */
|
|
861
873
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
862
874
|
linkedUserId: string;
|
|
863
875
|
linkedAppId: string;
|
|
@@ -926,11 +938,15 @@ export type CreateUserBody = {
|
|
|
926
938
|
publicKey?: string | undefined;
|
|
927
939
|
/** Value that can be used to correlate the entity with an external system. */
|
|
928
940
|
externalId?: string | undefined;
|
|
941
|
+
/** If set to true, the user will have to authenticate via SSO */
|
|
942
|
+
isSSORequired?: boolean;
|
|
929
943
|
};
|
|
930
944
|
export type CreateUserResponse = {
|
|
931
945
|
username: string;
|
|
932
946
|
name: string;
|
|
947
|
+
/** User id. */
|
|
933
948
|
userId: string;
|
|
949
|
+
/** User kind. */
|
|
934
950
|
kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
|
|
935
951
|
credentialUuid: string;
|
|
936
952
|
orgId: string;
|
|
@@ -938,6 +954,7 @@ export type CreateUserResponse = {
|
|
|
938
954
|
isActive: boolean;
|
|
939
955
|
isServiceAccount: boolean;
|
|
940
956
|
isRegistered: boolean;
|
|
957
|
+
isSSORequired: boolean;
|
|
941
958
|
permissionAssignments: {
|
|
942
959
|
permissionName: string;
|
|
943
960
|
permissionId: string;
|
|
@@ -1077,7 +1094,7 @@ export type DeactivatePersonalAccessTokenResponse = {
|
|
|
1077
1094
|
dateCreated: string;
|
|
1078
1095
|
credId: string;
|
|
1079
1096
|
isActive: boolean;
|
|
1080
|
-
/** Access token kind */
|
|
1097
|
+
/** Access token kind. */
|
|
1081
1098
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
1082
1099
|
linkedUserId: string;
|
|
1083
1100
|
linkedAppId: string;
|
|
@@ -1100,7 +1117,9 @@ export type DeactivateServiceAccountResponse = {
|
|
|
1100
1117
|
userInfo: {
|
|
1101
1118
|
username: string;
|
|
1102
1119
|
name: string;
|
|
1120
|
+
/** User id. */
|
|
1103
1121
|
userId: string;
|
|
1122
|
+
/** User kind. */
|
|
1104
1123
|
kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
|
|
1105
1124
|
credentialUuid: string;
|
|
1106
1125
|
orgId: string;
|
|
@@ -1120,7 +1139,7 @@ export type DeactivateServiceAccountResponse = {
|
|
|
1120
1139
|
dateCreated: string;
|
|
1121
1140
|
credId: string;
|
|
1122
1141
|
isActive: boolean;
|
|
1123
|
-
/** Access token kind */
|
|
1142
|
+
/** Access token kind. */
|
|
1124
1143
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
1125
1144
|
linkedUserId: string;
|
|
1126
1145
|
linkedAppId: string;
|
|
@@ -1143,7 +1162,9 @@ export type DeactivateUserParams = {
|
|
|
1143
1162
|
export type DeactivateUserResponse = {
|
|
1144
1163
|
username: string;
|
|
1145
1164
|
name: string;
|
|
1165
|
+
/** User id. */
|
|
1146
1166
|
userId: string;
|
|
1167
|
+
/** User kind. */
|
|
1147
1168
|
kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
|
|
1148
1169
|
credentialUuid: string;
|
|
1149
1170
|
orgId: string;
|
|
@@ -1151,6 +1172,7 @@ export type DeactivateUserResponse = {
|
|
|
1151
1172
|
isActive: boolean;
|
|
1152
1173
|
isServiceAccount: boolean;
|
|
1153
1174
|
isRegistered: boolean;
|
|
1175
|
+
isSSORequired: boolean;
|
|
1154
1176
|
permissionAssignments: {
|
|
1155
1177
|
permissionName: string;
|
|
1156
1178
|
permissionId: string;
|
|
@@ -1190,7 +1212,7 @@ export type GetApplicationResponse = {
|
|
|
1190
1212
|
dateCreated: string;
|
|
1191
1213
|
credId: string;
|
|
1192
1214
|
isActive: boolean;
|
|
1193
|
-
/** Access token kind */
|
|
1215
|
+
/** Access token kind. */
|
|
1194
1216
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
1195
1217
|
linkedUserId: string;
|
|
1196
1218
|
linkedAppId: string;
|
|
@@ -1237,7 +1259,7 @@ export type GetPersonalAccessTokenResponse = {
|
|
|
1237
1259
|
dateCreated: string;
|
|
1238
1260
|
credId: string;
|
|
1239
1261
|
isActive: boolean;
|
|
1240
|
-
/** Access token kind */
|
|
1262
|
+
/** Access token kind. */
|
|
1241
1263
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
1242
1264
|
linkedUserId: string;
|
|
1243
1265
|
linkedAppId: string;
|
|
@@ -1260,7 +1282,9 @@ export type GetServiceAccountResponse = {
|
|
|
1260
1282
|
userInfo: {
|
|
1261
1283
|
username: string;
|
|
1262
1284
|
name: string;
|
|
1285
|
+
/** User id. */
|
|
1263
1286
|
userId: string;
|
|
1287
|
+
/** User kind. */
|
|
1264
1288
|
kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
|
|
1265
1289
|
credentialUuid: string;
|
|
1266
1290
|
orgId: string;
|
|
@@ -1280,7 +1304,7 @@ export type GetServiceAccountResponse = {
|
|
|
1280
1304
|
dateCreated: string;
|
|
1281
1305
|
credId: string;
|
|
1282
1306
|
isActive: boolean;
|
|
1283
|
-
/** Access token kind */
|
|
1307
|
+
/** Access token kind. */
|
|
1284
1308
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
1285
1309
|
linkedUserId: string;
|
|
1286
1310
|
linkedAppId: string;
|
|
@@ -1303,7 +1327,9 @@ export type GetUserParams = {
|
|
|
1303
1327
|
export type GetUserResponse = {
|
|
1304
1328
|
username: string;
|
|
1305
1329
|
name: string;
|
|
1330
|
+
/** User id. */
|
|
1306
1331
|
userId: string;
|
|
1332
|
+
/** User kind. */
|
|
1307
1333
|
kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
|
|
1308
1334
|
credentialUuid: string;
|
|
1309
1335
|
orgId: string;
|
|
@@ -1311,6 +1337,7 @@ export type GetUserResponse = {
|
|
|
1311
1337
|
isActive: boolean;
|
|
1312
1338
|
isServiceAccount: boolean;
|
|
1313
1339
|
isRegistered: boolean;
|
|
1340
|
+
isSSORequired: boolean;
|
|
1314
1341
|
permissionAssignments: {
|
|
1315
1342
|
permissionName: string;
|
|
1316
1343
|
permissionId: string;
|
|
@@ -1339,7 +1366,7 @@ export type ListApplicationsResponse = {
|
|
|
1339
1366
|
dateCreated: string;
|
|
1340
1367
|
credId: string;
|
|
1341
1368
|
isActive: boolean;
|
|
1342
|
-
/** Access token kind */
|
|
1369
|
+
/** Access token kind. */
|
|
1343
1370
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
1344
1371
|
linkedUserId: string;
|
|
1345
1372
|
linkedAppId: string;
|
|
@@ -1384,7 +1411,7 @@ export type ListPersonalAccessTokensResponse = {
|
|
|
1384
1411
|
dateCreated: string;
|
|
1385
1412
|
credId: string;
|
|
1386
1413
|
isActive: boolean;
|
|
1387
|
-
/** Access token kind */
|
|
1414
|
+
/** Access token kind. */
|
|
1388
1415
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
1389
1416
|
linkedUserId: string;
|
|
1390
1417
|
linkedAppId: string;
|
|
@@ -1405,7 +1432,9 @@ export type ListServiceAccountsResponse = {
|
|
|
1405
1432
|
userInfo: {
|
|
1406
1433
|
username: string;
|
|
1407
1434
|
name: string;
|
|
1435
|
+
/** User id. */
|
|
1408
1436
|
userId: string;
|
|
1437
|
+
/** User kind. */
|
|
1409
1438
|
kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
|
|
1410
1439
|
credentialUuid: string;
|
|
1411
1440
|
orgId: string;
|
|
@@ -1425,7 +1454,7 @@ export type ListServiceAccountsResponse = {
|
|
|
1425
1454
|
dateCreated: string;
|
|
1426
1455
|
credId: string;
|
|
1427
1456
|
isActive: boolean;
|
|
1428
|
-
/** Access token kind */
|
|
1457
|
+
/** Access token kind. */
|
|
1429
1458
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
1430
1459
|
linkedUserId: string;
|
|
1431
1460
|
linkedAppId: string;
|
|
@@ -1451,7 +1480,9 @@ export type ListUsersResponse = {
|
|
|
1451
1480
|
items: {
|
|
1452
1481
|
username: string;
|
|
1453
1482
|
name: string;
|
|
1483
|
+
/** User id. */
|
|
1454
1484
|
userId: string;
|
|
1485
|
+
/** User kind. */
|
|
1455
1486
|
kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
|
|
1456
1487
|
credentialUuid: string;
|
|
1457
1488
|
orgId: string;
|
|
@@ -1459,6 +1490,7 @@ export type ListUsersResponse = {
|
|
|
1459
1490
|
isActive: boolean;
|
|
1460
1491
|
isServiceAccount: boolean;
|
|
1461
1492
|
isRegistered: boolean;
|
|
1493
|
+
isSSORequired: boolean;
|
|
1462
1494
|
permissionAssignments: {
|
|
1463
1495
|
permissionName: string;
|
|
1464
1496
|
permissionId: string;
|
|
@@ -1539,6 +1571,8 @@ export type LoginBody = {
|
|
|
1539
1571
|
};
|
|
1540
1572
|
export type LoginResponse = {
|
|
1541
1573
|
token: string;
|
|
1574
|
+
} | {
|
|
1575
|
+
ssoClientId: string;
|
|
1542
1576
|
};
|
|
1543
1577
|
export type LoginRequest = {
|
|
1544
1578
|
body: LoginBody;
|
|
@@ -1851,6 +1885,7 @@ export type RegisterEndUserResponse = {
|
|
|
1851
1885
|
address?: string | undefined;
|
|
1852
1886
|
/** Details about the key underlying the wallet. */
|
|
1853
1887
|
signingKey: {
|
|
1888
|
+
/** Key id. */
|
|
1854
1889
|
id: string;
|
|
1855
1890
|
/** Key scheme. */
|
|
1856
1891
|
scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
|
|
@@ -1864,6 +1899,8 @@ export type RegisterEndUserResponse = {
|
|
|
1864
1899
|
status: "Active" | "Archived";
|
|
1865
1900
|
/** [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date string when wallet was created. */
|
|
1866
1901
|
dateCreated: string;
|
|
1902
|
+
/** [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date string when wallet was deleted. */
|
|
1903
|
+
dateDeleted?: string | undefined;
|
|
1867
1904
|
/** Wallet nickname. */
|
|
1868
1905
|
name?: string | undefined;
|
|
1869
1906
|
/** Whether the wallet is owned by an end user (non-custodial), or by your organization (custodial). */
|
|
@@ -1920,6 +1957,33 @@ export type SocialLoginResponse = {
|
|
|
1920
1957
|
export type SocialLoginRequest = {
|
|
1921
1958
|
body: SocialLoginBody;
|
|
1922
1959
|
};
|
|
1960
|
+
export type SSOLoginBody = {
|
|
1961
|
+
/** Authorization code obtained from the IdP */
|
|
1962
|
+
code: string;
|
|
1963
|
+
/** State forwarded by the IdP */
|
|
1964
|
+
state: string;
|
|
1965
|
+
};
|
|
1966
|
+
export type SSOLoginResponse = {
|
|
1967
|
+
token: string;
|
|
1968
|
+
};
|
|
1969
|
+
export type SSOLoginRequest = {
|
|
1970
|
+
body: SSOLoginBody;
|
|
1971
|
+
};
|
|
1972
|
+
export type SSOLoginInitBody = {
|
|
1973
|
+
/** Organization id. */
|
|
1974
|
+
orgId: string;
|
|
1975
|
+
/** Client Id obtained from the IdP */
|
|
1976
|
+
clientId: string;
|
|
1977
|
+
/** Redirect URI used for the authentication flow */
|
|
1978
|
+
redirectUri: string;
|
|
1979
|
+
};
|
|
1980
|
+
export type SSOLoginInitResponse = {
|
|
1981
|
+
/** The URL to redirect the user to authenticate with the IdP */
|
|
1982
|
+
ssoRedirectUrl: string;
|
|
1983
|
+
};
|
|
1984
|
+
export type SSOLoginInitRequest = {
|
|
1985
|
+
body: SSOLoginInitBody;
|
|
1986
|
+
};
|
|
1923
1987
|
export type UpdatePersonalAccessTokenBody = {
|
|
1924
1988
|
name?: string | undefined;
|
|
1925
1989
|
externalId?: string | undefined;
|
|
@@ -1932,7 +1996,7 @@ export type UpdatePersonalAccessTokenResponse = {
|
|
|
1932
1996
|
dateCreated: string;
|
|
1933
1997
|
credId: string;
|
|
1934
1998
|
isActive: boolean;
|
|
1935
|
-
/** Access token kind */
|
|
1999
|
+
/** Access token kind. */
|
|
1936
2000
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
1937
2001
|
linkedUserId: string;
|
|
1938
2002
|
linkedAppId: string;
|
|
@@ -1961,7 +2025,9 @@ export type UpdateServiceAccountResponse = {
|
|
|
1961
2025
|
userInfo: {
|
|
1962
2026
|
username: string;
|
|
1963
2027
|
name: string;
|
|
2028
|
+
/** User id. */
|
|
1964
2029
|
userId: string;
|
|
2030
|
+
/** User kind. */
|
|
1965
2031
|
kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
|
|
1966
2032
|
credentialUuid: string;
|
|
1967
2033
|
orgId: string;
|
|
@@ -1981,7 +2047,7 @@ export type UpdateServiceAccountResponse = {
|
|
|
1981
2047
|
dateCreated: string;
|
|
1982
2048
|
credId: string;
|
|
1983
2049
|
isActive: boolean;
|
|
1984
|
-
/** Access token kind */
|
|
2050
|
+
/** Access token kind. */
|
|
1985
2051
|
kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
|
|
1986
2052
|
linkedUserId: string;
|
|
1987
2053
|
linkedAppId: string;
|
|
@@ -2000,3 +2066,33 @@ export type UpdateServiceAccountResponse = {
|
|
|
2000
2066
|
export type UpdateServiceAccountRequest = UpdateServiceAccountParams & {
|
|
2001
2067
|
body: UpdateServiceAccountBody;
|
|
2002
2068
|
};
|
|
2069
|
+
export type UpdateUserBody = {
|
|
2070
|
+
isSSORequired: boolean;
|
|
2071
|
+
};
|
|
2072
|
+
export type UpdateUserParams = {
|
|
2073
|
+
userId: string;
|
|
2074
|
+
};
|
|
2075
|
+
export type UpdateUserResponse = {
|
|
2076
|
+
username: string;
|
|
2077
|
+
name: string;
|
|
2078
|
+
/** User id. */
|
|
2079
|
+
userId: string;
|
|
2080
|
+
/** User kind. */
|
|
2081
|
+
kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
|
|
2082
|
+
credentialUuid: string;
|
|
2083
|
+
orgId: string;
|
|
2084
|
+
permissions?: string[] | undefined;
|
|
2085
|
+
isActive: boolean;
|
|
2086
|
+
isServiceAccount: boolean;
|
|
2087
|
+
isRegistered: boolean;
|
|
2088
|
+
isSSORequired: boolean;
|
|
2089
|
+
permissionAssignments: {
|
|
2090
|
+
permissionName: string;
|
|
2091
|
+
permissionId: string;
|
|
2092
|
+
assignmentId: string;
|
|
2093
|
+
operations?: string[] | undefined;
|
|
2094
|
+
}[];
|
|
2095
|
+
};
|
|
2096
|
+
export type UpdateUserRequest = UpdateUserParams & {
|
|
2097
|
+
body: UpdateUserBody;
|
|
2098
|
+
};
|
|
@@ -983,14 +983,18 @@ export type ListAccountAssetsParams = {
|
|
|
983
983
|
accountId: string;
|
|
984
984
|
};
|
|
985
985
|
export type ListAccountAssetsQuery = {
|
|
986
|
+
/** Maximum number of items to return. */
|
|
986
987
|
limit?: number | undefined;
|
|
988
|
+
/** Opaque token used to retrieve the next page. Returned as `nextPageToken` from the previous request. */
|
|
987
989
|
paginationToken?: string | undefined;
|
|
988
990
|
};
|
|
989
991
|
export type ListAccountAssetsResponse = {
|
|
992
|
+
/** Current page items. */
|
|
990
993
|
items: {
|
|
991
994
|
symbol: string;
|
|
992
995
|
balance: string;
|
|
993
996
|
}[];
|
|
997
|
+
/** token to use as `paginationToken` to request the next page. */
|
|
994
998
|
nextPageToken?: string | undefined;
|
|
995
999
|
};
|
|
996
1000
|
export type ListAccountAssetsRequest = ListAccountAssetsParams & {
|
|
@@ -1000,16 +1004,20 @@ export type ListAccountsParams = {
|
|
|
1000
1004
|
exchangeId: string;
|
|
1001
1005
|
};
|
|
1002
1006
|
export type ListAccountsQuery = {
|
|
1007
|
+
/** Maximum number of items to return. */
|
|
1003
1008
|
limit?: number | undefined;
|
|
1009
|
+
/** Opaque token used to retrieve the next page. Returned as `nextPageToken` from the previous request. */
|
|
1004
1010
|
paginationToken?: string | undefined;
|
|
1005
1011
|
};
|
|
1006
1012
|
export type ListAccountsResponse = {
|
|
1013
|
+
/** Current page items. */
|
|
1007
1014
|
items: {
|
|
1008
1015
|
id: string;
|
|
1009
1016
|
name?: string | undefined;
|
|
1010
1017
|
exchangeId: string;
|
|
1011
1018
|
exchangeName?: string | undefined;
|
|
1012
1019
|
}[];
|
|
1020
|
+
/** token to use as `paginationToken` to request the next page. */
|
|
1013
1021
|
nextPageToken?: string | undefined;
|
|
1014
1022
|
};
|
|
1015
1023
|
export type ListAccountsRequest = ListAccountsParams & {
|
|
@@ -1059,16 +1067,20 @@ export type ListAssetWithdrawalNetworksResponse = (({
|
|
|
1059
1067
|
})[];
|
|
1060
1068
|
export type ListAssetWithdrawalNetworksRequest = ListAssetWithdrawalNetworksParams;
|
|
1061
1069
|
export type ListExchangesQuery = {
|
|
1070
|
+
/** Maximum number of items to return. */
|
|
1062
1071
|
limit?: number | undefined;
|
|
1072
|
+
/** Opaque token used to retrieve the next page. Returned as `nextPageToken` from the previous request. */
|
|
1063
1073
|
paginationToken?: string | undefined;
|
|
1064
1074
|
};
|
|
1065
1075
|
export type ListExchangesResponse = {
|
|
1076
|
+
/** Current page items. */
|
|
1066
1077
|
items: {
|
|
1067
1078
|
id: string;
|
|
1068
1079
|
name?: string | undefined;
|
|
1069
1080
|
kind: "Binance" | "Kraken" | "CoinbaseApp" | "CoinbasePrime";
|
|
1070
1081
|
dateCreated: string;
|
|
1071
1082
|
}[];
|
|
1083
|
+
/** token to use as `paginationToken` to request the next page. */
|
|
1072
1084
|
nextPageToken?: string | undefined;
|
|
1073
1085
|
};
|
|
1074
1086
|
export type ListExchangesRequest = {
|
|
@@ -2,6 +2,7 @@ export type CreateKeyBody = {
|
|
|
2
2
|
scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
|
|
3
3
|
curve: "ed25519" | "secp256k1" | "stark";
|
|
4
4
|
name?: string | undefined;
|
|
5
|
+
storeId?: string | undefined;
|
|
5
6
|
delegateTo?: string | undefined;
|
|
6
7
|
delayDelegation?: boolean | undefined;
|
|
7
8
|
};
|
|
@@ -17,6 +18,7 @@ export type CreateKeyResponse = {
|
|
|
17
18
|
imported?: boolean | undefined;
|
|
18
19
|
exported?: boolean | undefined;
|
|
19
20
|
dateExported?: string | undefined;
|
|
21
|
+
dateDeleted?: string | undefined;
|
|
20
22
|
};
|
|
21
23
|
export type CreateKeyRequest = {
|
|
22
24
|
body: CreateKeyBody;
|
|
@@ -49,6 +51,7 @@ export type DeleteKeyResponse = {
|
|
|
49
51
|
imported?: boolean | undefined;
|
|
50
52
|
exported?: boolean | undefined;
|
|
51
53
|
dateExported?: string | undefined;
|
|
54
|
+
dateDeleted?: string | undefined;
|
|
52
55
|
};
|
|
53
56
|
export type DeleteKeyRequest = DeleteKeyParams;
|
|
54
57
|
export type DeriveKeyBody = {
|
|
@@ -470,11 +473,13 @@ export type GetKeyResponse = {
|
|
|
470
473
|
imported?: boolean | undefined;
|
|
471
474
|
exported?: boolean | undefined;
|
|
472
475
|
dateExported?: string | undefined;
|
|
476
|
+
dateDeleted?: string | undefined;
|
|
473
477
|
wallets: {
|
|
474
478
|
id: string;
|
|
475
479
|
network: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "KadenaTestnet4" | "KadenaTestnet4:1" | "KadenaTestnet4:2" | "KadenaTestnet4:3" | "KadenaTestnet4:4" | "KadenaTestnet4:5" | "KadenaTestnet4:6" | "KadenaTestnet4:7" | "KadenaTestnet4:8" | "KadenaTestnet4:9" | "KadenaTestnet4:10" | "KadenaTestnet4:11" | "KadenaTestnet4:12" | "KadenaTestnet4:13" | "KadenaTestnet4:14" | "KadenaTestnet4:15" | "KadenaTestnet4:16" | "KadenaTestnet4:17" | "KadenaTestnet4:18" | "KadenaTestnet4:19" | "Kadena" | "Kadena:1" | "Kadena:2" | "Kadena:3" | "Kadena:4" | "Kadena:5" | "Kadena:6" | "Kadena:7" | "Kadena:8" | "Kadena:9" | "Kadena:10" | "Kadena:11" | "Kadena:12" | "Kadena:13" | "Kadena:14" | "Kadena:15" | "Kadena:16" | "Kadena:17" | "Kadena:18" | "Kadena:19" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tsc" | "TscTestnet1" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | ("KeyECDSA" | "KeyEdDSA" | "KeyECDSAStark");
|
|
476
480
|
}[];
|
|
477
481
|
store: {
|
|
482
|
+
id: string;
|
|
478
483
|
kind: "Hsm" | "Mpc";
|
|
479
484
|
keyId: string;
|
|
480
485
|
};
|
|
@@ -702,6 +707,7 @@ export type ImportKeyResponse = {
|
|
|
702
707
|
imported?: boolean | undefined;
|
|
703
708
|
exported?: boolean | undefined;
|
|
704
709
|
dateExported?: string | undefined;
|
|
710
|
+
dateDeleted?: string | undefined;
|
|
705
711
|
};
|
|
706
712
|
export type ImportKeyRequest = {
|
|
707
713
|
body: ImportKeyBody;
|
|
@@ -724,6 +730,7 @@ export type ListKeysResponse = {
|
|
|
724
730
|
imported?: boolean | undefined;
|
|
725
731
|
exported?: boolean | undefined;
|
|
726
732
|
dateExported?: string | undefined;
|
|
733
|
+
dateDeleted?: string | undefined;
|
|
727
734
|
}[];
|
|
728
735
|
nextPageToken?: string | undefined;
|
|
729
736
|
};
|
|
@@ -957,6 +964,7 @@ export type UpdateKeyResponse = {
|
|
|
957
964
|
imported?: boolean | undefined;
|
|
958
965
|
exported?: boolean | undefined;
|
|
959
966
|
dateExported?: string | undefined;
|
|
967
|
+
dateDeleted?: string | undefined;
|
|
960
968
|
};
|
|
961
969
|
export type UpdateKeyRequest = UpdateKeyParams & {
|
|
962
970
|
body: UpdateKeyBody;
|