@dfns/sdk 0.4.3 → 0.5.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/dfnsApiClient.d.ts +0 -6
- package/dfnsApiClient.js +0 -12
- package/dfnsDelegatedApiClient.d.ts +0 -6
- package/dfnsDelegatedApiClient.js +0 -12
- package/generated/auth/client.d.ts +2 -0
- package/generated/auth/client.js +24 -0
- package/generated/auth/delegatedClient.d.ts +2 -0
- package/generated/auth/delegatedClient.js +24 -0
- package/generated/auth/types.d.ts +66 -12
- package/generated/permissions/types.d.ts +2 -2
- package/generated/policies/types.d.ts +15 -0
- package/generated/wallets/types.d.ts +105 -18
- package/package.json +1 -1
- package/store.d.ts +3 -32
- package/codegen/Assets/AssetsClient.d.ts +0 -13
- package/codegen/Assets/AssetsClient.js +0 -93
- package/codegen/Assets/DelegatedAssetsClient.d.ts +0 -16
- package/codegen/Assets/DelegatedAssetsClient.js +0 -124
- package/codegen/Assets/index.d.ts +0 -3
- package/codegen/Assets/index.js +0 -19
- package/codegen/Assets/types.d.ts +0 -37
- package/codegen/Assets/types.js +0 -2
- package/codegen/Auth/AuthClient.d.ts +0 -50
- package/codegen/Auth/AuthClient.js +0 -518
- package/codegen/Auth/DelegatedAuthClient.d.ts +0 -78
- package/codegen/Auth/DelegatedAuthClient.js +0 -936
- package/codegen/Auth/index.d.ts +0 -3
- package/codegen/Auth/index.js +0 -19
- package/codegen/Auth/types.d.ts +0 -177
- package/codegen/Auth/types.js +0 -2
- package/codegen/Callbacks/CallbacksClient.d.ts +0 -12
- package/codegen/Callbacks/CallbacksClient.js +0 -78
- package/codegen/Callbacks/DelegatedCallbacksClient.d.ts +0 -15
- package/codegen/Callbacks/DelegatedCallbacksClient.js +0 -110
- package/codegen/Callbacks/index.d.ts +0 -3
- package/codegen/Callbacks/index.js +0 -19
- package/codegen/Callbacks/types.d.ts +0 -23
- package/codegen/Callbacks/types.js +0 -2
- package/codegen/PublicKeys/DelegatedPublicKeysClient.d.ts +0 -21
- package/codegen/PublicKeys/DelegatedPublicKeysClient.js +0 -189
- package/codegen/PublicKeys/PublicKeysClient.d.ts +0 -16
- package/codegen/PublicKeys/PublicKeysClient.js +0 -128
- package/codegen/PublicKeys/index.d.ts +0 -3
- package/codegen/PublicKeys/index.js +0 -19
- package/codegen/PublicKeys/types.d.ts +0 -51
- package/codegen/PublicKeys/types.js +0 -2
- package/codegen/Wallets/DelegatedWalletsClient.d.ts +0 -32
- package/codegen/Wallets/DelegatedWalletsClient.js +0 -325
- package/codegen/Wallets/WalletsClient.d.ts +0 -24
- package/codegen/Wallets/WalletsClient.js +0 -219
- package/codegen/Wallets/index.d.ts +0 -3
- package/codegen/Wallets/index.js +0 -19
- package/codegen/Wallets/types.d.ts +0 -101
- package/codegen/Wallets/types.js +0 -2
- package/codegen/datamodel/Assets/errors.d.ts +0 -11
- package/codegen/datamodel/Assets/errors.js +0 -17
- package/codegen/datamodel/Assets/index.d.ts +0 -3
- package/codegen/datamodel/Assets/index.js +0 -19
- package/codegen/datamodel/Assets/responses.d.ts +0 -47
- package/codegen/datamodel/Assets/responses.js +0 -2
- package/codegen/datamodel/Assets/types.d.ts +0 -219
- package/codegen/datamodel/Assets/types.js +0 -75
- package/codegen/datamodel/Auth/errors.d.ts +0 -0
- package/codegen/datamodel/Auth/errors.js +0 -1
- package/codegen/datamodel/Auth/index.d.ts +0 -2
- package/codegen/datamodel/Auth/index.js +0 -18
- package/codegen/datamodel/Auth/responses.d.ts +0 -358
- package/codegen/datamodel/Auth/responses.js +0 -2
- package/codegen/datamodel/Auth/types.d.ts +0 -933
- package/codegen/datamodel/Auth/types.js +0 -149
- package/codegen/datamodel/Callbacks/errors.d.ts +0 -0
- package/codegen/datamodel/Callbacks/errors.js +0 -1
- package/codegen/datamodel/Callbacks/index.d.ts +0 -2
- package/codegen/datamodel/Callbacks/index.js +0 -18
- package/codegen/datamodel/Callbacks/responses.d.ts +0 -36
- package/codegen/datamodel/Callbacks/responses.js +0 -2
- package/codegen/datamodel/Callbacks/types.d.ts +0 -43
- package/codegen/datamodel/Callbacks/types.js +0 -39
- package/codegen/datamodel/Foundations/errors.d.ts +0 -131
- package/codegen/datamodel/Foundations/errors.js +0 -182
- package/codegen/datamodel/Foundations/index.d.ts +0 -2
- package/codegen/datamodel/Foundations/index.js +0 -18
- package/codegen/datamodel/Foundations/responses.d.ts +0 -0
- package/codegen/datamodel/Foundations/responses.js +0 -1
- package/codegen/datamodel/Foundations/types.d.ts +0 -9795
- package/codegen/datamodel/Foundations/types.js +0 -57763
- package/codegen/datamodel/PublicKeys/errors.d.ts +0 -0
- package/codegen/datamodel/PublicKeys/errors.js +0 -1
- package/codegen/datamodel/PublicKeys/index.d.ts +0 -2
- package/codegen/datamodel/PublicKeys/index.js +0 -18
- package/codegen/datamodel/PublicKeys/responses.d.ts +0 -56
- package/codegen/datamodel/PublicKeys/responses.js +0 -2
- package/codegen/datamodel/PublicKeys/types.d.ts +0 -223
- package/codegen/datamodel/PublicKeys/types.js +0 -59
- package/codegen/datamodel/Wallets/errors.d.ts +0 -0
- package/codegen/datamodel/Wallets/errors.js +0 -1
- package/codegen/datamodel/Wallets/index.d.ts +0 -2
- package/codegen/datamodel/Wallets/index.js +0 -18
- package/codegen/datamodel/Wallets/responses.d.ts +0 -92
- package/codegen/datamodel/Wallets/responses.js +0 -2
- package/codegen/datamodel/Wallets/types.d.ts +0 -790
- package/codegen/datamodel/Wallets/types.js +0 -293
|
@@ -1,933 +0,0 @@
|
|
|
1
|
-
import { Email, EntityId, IntegerPositiveStrict, IsoDatetime, Username } from '../Foundations';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
4
|
-
*/
|
|
5
|
-
export type Application = {
|
|
6
|
-
appId: EntityId;
|
|
7
|
-
apiToken?: Jwt;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
11
|
-
*/
|
|
12
|
-
export type GenericSuccessMessage = {
|
|
13
|
-
message: string;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
17
|
-
*/
|
|
18
|
-
export type UserRegistration = {
|
|
19
|
-
credential: UserCredentialInformation;
|
|
20
|
-
user: UserRegistrationInformation;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
24
|
-
*/
|
|
25
|
-
export type UserRegistrationChallenge = {
|
|
26
|
-
temporaryAuthenticationToken: Jwt;
|
|
27
|
-
rp: RelyingParty;
|
|
28
|
-
user: AuthenticationUserInformation;
|
|
29
|
-
supportedCredentialKinds: SupportedCredentialKinds;
|
|
30
|
-
otpUrl: string;
|
|
31
|
-
challenge: string;
|
|
32
|
-
authenticatorSelection: AuthenticatorSelection;
|
|
33
|
-
attestation: AuthenticatorAttestationOptions;
|
|
34
|
-
pubKeyCredParams: PubKeyCredParams[];
|
|
35
|
-
excludeCredentials: AllowCredential[];
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
39
|
-
*/
|
|
40
|
-
export type UserLoginChallenge = {
|
|
41
|
-
supportedCredentialKinds: SupportedCredentials[];
|
|
42
|
-
rp: RelyingParty;
|
|
43
|
-
challenge: string;
|
|
44
|
-
challengeIdentifier: Jwt;
|
|
45
|
-
externalAuthenticationUrl: string;
|
|
46
|
-
allowCredentials: AllowCredentials;
|
|
47
|
-
attestation: AuthenticatorAttestationOptions;
|
|
48
|
-
userVerification: AuthenticatorRequirementOptions;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
52
|
-
*/
|
|
53
|
-
export type UserLogin = {
|
|
54
|
-
token: Jwt;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
58
|
-
*/
|
|
59
|
-
export type UserActionSignature = {
|
|
60
|
-
userAction: string;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
64
|
-
*/
|
|
65
|
-
export type AccessTokenInfoWithPublicKey = {
|
|
66
|
-
accessToken?: Jwt;
|
|
67
|
-
dateCreated: IsoDatetime;
|
|
68
|
-
credId: string;
|
|
69
|
-
isActive: boolean;
|
|
70
|
-
kind: AccessTokenKind;
|
|
71
|
-
linkedUserId: EntityId;
|
|
72
|
-
linkedAppId: string;
|
|
73
|
-
name: string;
|
|
74
|
-
orgId: EntityId;
|
|
75
|
-
permissionAssignments: PermissionAssignmentInfo[];
|
|
76
|
-
publicKey: string;
|
|
77
|
-
tokenId: EntityId;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
81
|
-
*/
|
|
82
|
-
export type UserInfo = {
|
|
83
|
-
username: string;
|
|
84
|
-
userId: EntityId;
|
|
85
|
-
kind: UserAuthKind;
|
|
86
|
-
credentialUuid: EntityId;
|
|
87
|
-
orgId: EntityId;
|
|
88
|
-
permissions?: string[];
|
|
89
|
-
scopes?: string[];
|
|
90
|
-
isActive: boolean;
|
|
91
|
-
isServiceAccount: boolean;
|
|
92
|
-
isRegistered: boolean;
|
|
93
|
-
permissionAssignments: PermissionAssignmentInfo[];
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
97
|
-
*/
|
|
98
|
-
export type UserAccessTokenInformation = {
|
|
99
|
-
userInfo: UserInfo;
|
|
100
|
-
accessTokens: AccessTokenInfoWithPublicKey[];
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
104
|
-
*/
|
|
105
|
-
export type AppInfoWithPublicKey = {
|
|
106
|
-
appId: EntityId;
|
|
107
|
-
kind: ApplicationKind;
|
|
108
|
-
orgId: EntityId;
|
|
109
|
-
expectedRpId: string;
|
|
110
|
-
name: string;
|
|
111
|
-
isActive: boolean;
|
|
112
|
-
expectedOrigin: string;
|
|
113
|
-
permissionAssignments: PermissionAssignmentInfo[];
|
|
114
|
-
accessTokens: AccessTokenInfoWithPublicKey[];
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
118
|
-
*/
|
|
119
|
-
export type CredentialInfo = {
|
|
120
|
-
credentialId: string;
|
|
121
|
-
credentialUuid: EntityId;
|
|
122
|
-
dateCreated: IsoDatetime;
|
|
123
|
-
isActive: boolean;
|
|
124
|
-
kind: CredentialKind;
|
|
125
|
-
name: string;
|
|
126
|
-
publicKey?: string;
|
|
127
|
-
relyingPartyId: string;
|
|
128
|
-
origin: string;
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
132
|
-
*/
|
|
133
|
-
export type AvailableOrg = {
|
|
134
|
-
/**
|
|
135
|
-
* The ID of the organization.
|
|
136
|
-
*/
|
|
137
|
-
orgId: EntityId;
|
|
138
|
-
/**
|
|
139
|
-
* The ID of an application that can be used to log into the given org.
|
|
140
|
-
*/
|
|
141
|
-
appId: EntityId;
|
|
142
|
-
};
|
|
143
|
-
/**
|
|
144
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
145
|
-
*/
|
|
146
|
-
export type UserRecoveryChallenge = {
|
|
147
|
-
temporaryAuthenticationToken: Jwt;
|
|
148
|
-
rp: RelyingParty;
|
|
149
|
-
user: AuthenticationUserInformation;
|
|
150
|
-
supportedCredentialKinds: SupportedCredentialKinds;
|
|
151
|
-
otpUrl: string;
|
|
152
|
-
challenge: string;
|
|
153
|
-
authenticatorSelection: AuthenticatorSelection;
|
|
154
|
-
attestation: AuthenticatorAttestationOptions;
|
|
155
|
-
pubKeyCredParams: PubKeyCredParams[];
|
|
156
|
-
excludeCredentials: AllowCredential[];
|
|
157
|
-
allowedRecoveryCredentials: AllowRecoveryCredential[];
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
161
|
-
*/
|
|
162
|
-
export type UserRegistrationBase = {
|
|
163
|
-
temporaryAuthenticationToken: Jwt;
|
|
164
|
-
rp: RelyingParty;
|
|
165
|
-
user: AuthenticationUserInformation;
|
|
166
|
-
};
|
|
167
|
-
/**
|
|
168
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
169
|
-
*/
|
|
170
|
-
export type Fido2Options = {
|
|
171
|
-
temporaryAuthenticationToken: Jwt;
|
|
172
|
-
rp: RelyingParty;
|
|
173
|
-
user: AuthenticationUserInformation;
|
|
174
|
-
kind: CredentialKind.Fido2;
|
|
175
|
-
challenge: string;
|
|
176
|
-
excludeCredentials: ExcludeCredentials[];
|
|
177
|
-
authenticatorSelection: AuthenticatorSelection;
|
|
178
|
-
/**
|
|
179
|
-
* Tells the authenticator that it needs to identify itself to the server, so that the server can verify the device is secure.
|
|
180
|
-
*
|
|
181
|
-
* none: Tells the authenticator that it does not need to provide an attestation document.
|
|
182
|
-
*
|
|
183
|
-
* indirect: Tells the authenticator, that it needs to provide attestation information, but it doesn't need to provide any identifying information about the device.
|
|
184
|
-
*
|
|
185
|
-
* direct: Tells the authenticator, that it needs to provide attestation information, including information to identify the device.
|
|
186
|
-
*
|
|
187
|
-
* enterprise: Tells the authenticator, that it should use enterprise certificates configured on the device for the credentials. For example, smart cards can be supported on Fido2 devices if an enterprise certificate is registered on the device.
|
|
188
|
-
*/
|
|
189
|
-
attestation: AuthenticatorAttestationOptions;
|
|
190
|
-
pubKeyCredParams: PubKeyCredParams[];
|
|
191
|
-
};
|
|
192
|
-
/**
|
|
193
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
194
|
-
*/
|
|
195
|
-
export type PublicKeyOptions = {
|
|
196
|
-
temporaryAuthenticationToken: Jwt;
|
|
197
|
-
rp: RelyingParty;
|
|
198
|
-
user: AuthenticationUserInformation;
|
|
199
|
-
kind: CredentialKind.Key;
|
|
200
|
-
challenge: string;
|
|
201
|
-
pubKeyCredParams: PubKeyCredParams[];
|
|
202
|
-
attestation: AuthenticatorAttestationOptions;
|
|
203
|
-
};
|
|
204
|
-
/**
|
|
205
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
206
|
-
*/
|
|
207
|
-
export type AllowCredential = {
|
|
208
|
-
/**
|
|
209
|
-
* Must be 'public-key'
|
|
210
|
-
*/
|
|
211
|
-
type: string;
|
|
212
|
-
id: string;
|
|
213
|
-
transports?: string;
|
|
214
|
-
};
|
|
215
|
-
/**
|
|
216
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
217
|
-
*/
|
|
218
|
-
export type RelyingParty = {
|
|
219
|
-
id: string;
|
|
220
|
-
name: string;
|
|
221
|
-
};
|
|
222
|
-
/**
|
|
223
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
224
|
-
*/
|
|
225
|
-
export type AuthenticationUserInformation = {
|
|
226
|
-
id: EntityId;
|
|
227
|
-
displayName: string;
|
|
228
|
-
name: string;
|
|
229
|
-
};
|
|
230
|
-
/**
|
|
231
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
232
|
-
*/
|
|
233
|
-
export type PubKeyCredParams = {
|
|
234
|
-
/**
|
|
235
|
-
* Must be 'public-key'
|
|
236
|
-
*/
|
|
237
|
-
type: string;
|
|
238
|
-
alg: number;
|
|
239
|
-
};
|
|
240
|
-
/**
|
|
241
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
242
|
-
*/
|
|
243
|
-
export type AuthenticatorSelection = {
|
|
244
|
-
/**
|
|
245
|
-
* If not given, any authenticator type can be used.
|
|
246
|
-
*
|
|
247
|
-
* platform: Authenticator must be built into the system. For example, Windows Hello or Apple Touch ID use a TPM that are integrated into the system.
|
|
248
|
-
*
|
|
249
|
-
* cross-platform: Authenticator must be able to move between systems. For example, a yubikey is a USB device that can be plugged into any system.
|
|
250
|
-
*/
|
|
251
|
-
authenticatorAttachment?: string;
|
|
252
|
-
/**
|
|
253
|
-
* discouraged: This tells the authenticator to not use resident keys.
|
|
254
|
-
*
|
|
255
|
-
* preferred: This tells the authenticator that resident keys should be used if available.
|
|
256
|
-
*
|
|
257
|
-
* required: This tells the authenticator that a resident key is required.
|
|
258
|
-
*/
|
|
259
|
-
residentKey: AuthenticatorRequirementOptions;
|
|
260
|
-
requireResidentKey: boolean;
|
|
261
|
-
/**
|
|
262
|
-
* Required: Tells the authenticator that the user needs to verify they are in possession of the authenticator device. This usually means the user is prompted for a pin, passcode, or to complete a biometric challenge.
|
|
263
|
-
*
|
|
264
|
-
* Preferred: Tells the authenticator that the user should be asked to verify they are in possession of the authenticator device. This usually means the user is prompted for a pin, passcode, or to complete a biometric challenge.
|
|
265
|
-
* If the user has recently verified their possession the device may choose not to ask the user to verify again.
|
|
266
|
-
*
|
|
267
|
-
* Discouraged: Tells the authenticator that the user should not be prompted for possession. This is generally only used when WebAuthn is a second factor.
|
|
268
|
-
*/
|
|
269
|
-
userVerification: AuthenticatorRequirementOptions;
|
|
270
|
-
};
|
|
271
|
-
/**
|
|
272
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
273
|
-
*/
|
|
274
|
-
export type ExcludeCredentials = {
|
|
275
|
-
/**
|
|
276
|
-
* Must be 'public-key'
|
|
277
|
-
*/
|
|
278
|
-
type: string;
|
|
279
|
-
id: string;
|
|
280
|
-
transports: FidoCredentialsTransportKind;
|
|
281
|
-
};
|
|
282
|
-
/**
|
|
283
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
284
|
-
*/
|
|
285
|
-
export type UserCredentialInformation = {
|
|
286
|
-
uuid: EntityId;
|
|
287
|
-
kind: CredentialKind;
|
|
288
|
-
name: string;
|
|
289
|
-
};
|
|
290
|
-
/**
|
|
291
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
292
|
-
*/
|
|
293
|
-
export type UserRegistrationInformation = {
|
|
294
|
-
id: EntityId;
|
|
295
|
-
username: string;
|
|
296
|
-
orgId: EntityId;
|
|
297
|
-
};
|
|
298
|
-
/**
|
|
299
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
300
|
-
*/
|
|
301
|
-
export type AuthenticateUserPasswordInput = {
|
|
302
|
-
kind: CredentialKind.Password;
|
|
303
|
-
password: string;
|
|
304
|
-
};
|
|
305
|
-
/**
|
|
306
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
307
|
-
*/
|
|
308
|
-
export type AuthenticateUserFido2Input = {
|
|
309
|
-
kind: CredentialKind.Fido2;
|
|
310
|
-
credentialAssertion: Fido2CredentialAssertion;
|
|
311
|
-
};
|
|
312
|
-
/**
|
|
313
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
314
|
-
*/
|
|
315
|
-
export type Fido2CredentialAssertion = {
|
|
316
|
-
credId: string;
|
|
317
|
-
clientData: string;
|
|
318
|
-
authenticatorData: string;
|
|
319
|
-
signature: string;
|
|
320
|
-
userHandle?: string;
|
|
321
|
-
};
|
|
322
|
-
/**
|
|
323
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
324
|
-
*/
|
|
325
|
-
export type KeyCredentialAssertion = {
|
|
326
|
-
credId: string;
|
|
327
|
-
clientData: string;
|
|
328
|
-
signature: string;
|
|
329
|
-
algorithm?: string;
|
|
330
|
-
};
|
|
331
|
-
/**
|
|
332
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
333
|
-
*/
|
|
334
|
-
export type AuthenticateUserKeyInput = {
|
|
335
|
-
kind: CredentialKind.Key;
|
|
336
|
-
credentialAssertion: KeyCredentialAssertion;
|
|
337
|
-
};
|
|
338
|
-
/**
|
|
339
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
340
|
-
*/
|
|
341
|
-
export type SupportedCredentialKinds = {
|
|
342
|
-
firstFactor: CredentialKind[];
|
|
343
|
-
secondFactor: CredentialKind[];
|
|
344
|
-
};
|
|
345
|
-
/**
|
|
346
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
347
|
-
*/
|
|
348
|
-
export type RegistrationConfirmationFido2 = {
|
|
349
|
-
credentialKind: CredentialKind.Fido2;
|
|
350
|
-
credentialInfo: CredentialAssertion;
|
|
351
|
-
};
|
|
352
|
-
/**
|
|
353
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
354
|
-
*/
|
|
355
|
-
export type RegistrationConfirmationKey = {
|
|
356
|
-
credentialKind: CredentialKind.Key;
|
|
357
|
-
credentialInfo: CredentialAssertion;
|
|
358
|
-
};
|
|
359
|
-
/**
|
|
360
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
361
|
-
*/
|
|
362
|
-
export type RegistrationConfirmationRecoveryKey = {
|
|
363
|
-
encryptedPrivateKey?: string;
|
|
364
|
-
credentialInfo: CredentialAssertion;
|
|
365
|
-
credentialKind: CredentialKind.RecoveryKey;
|
|
366
|
-
};
|
|
367
|
-
/**
|
|
368
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
369
|
-
*/
|
|
370
|
-
export type CredentialAssertion = {
|
|
371
|
-
credId: string;
|
|
372
|
-
clientData: string;
|
|
373
|
-
attestationData: string;
|
|
374
|
-
};
|
|
375
|
-
/**
|
|
376
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
377
|
-
*/
|
|
378
|
-
export type RegistrationConfirmationPassword = {
|
|
379
|
-
credentialKind: CredentialKind.Password;
|
|
380
|
-
credentialInfo: PasswordCredentialInformation;
|
|
381
|
-
};
|
|
382
|
-
/**
|
|
383
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
384
|
-
*/
|
|
385
|
-
export type PasswordCredentialInformation = {
|
|
386
|
-
password: string;
|
|
387
|
-
};
|
|
388
|
-
/**
|
|
389
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
390
|
-
*/
|
|
391
|
-
export type RegistrationConfirmationTotp = {
|
|
392
|
-
credentialKind: CredentialKind.Totp;
|
|
393
|
-
credentialInfo: TotpCredentialInformation;
|
|
394
|
-
};
|
|
395
|
-
/**
|
|
396
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
397
|
-
*/
|
|
398
|
-
export type TotpCredentialInformation = {
|
|
399
|
-
otpCode: string;
|
|
400
|
-
};
|
|
401
|
-
/**
|
|
402
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
403
|
-
*/
|
|
404
|
-
export type AllowCredentials = {
|
|
405
|
-
webauthn: AllowCredential[];
|
|
406
|
-
key: AllowCredential[];
|
|
407
|
-
};
|
|
408
|
-
/**
|
|
409
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
410
|
-
*/
|
|
411
|
-
export type SupportedCredentials = {
|
|
412
|
-
kind: CredentialKind;
|
|
413
|
-
factor: CredentialFactor;
|
|
414
|
-
requiresSecondFactor: boolean;
|
|
415
|
-
};
|
|
416
|
-
/**
|
|
417
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
418
|
-
*/
|
|
419
|
-
export type AuthenticateUserTotpInput = {
|
|
420
|
-
kind: CredentialKind.Totp;
|
|
421
|
-
otpCode: string;
|
|
422
|
-
};
|
|
423
|
-
/**
|
|
424
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
425
|
-
*/
|
|
426
|
-
export type TotpCredential = {
|
|
427
|
-
temporaryAuthenticationToken: Jwt;
|
|
428
|
-
rp: RelyingParty;
|
|
429
|
-
user: AuthenticationUserInformation;
|
|
430
|
-
kind: CredentialKind.Totp;
|
|
431
|
-
otpUrl: string;
|
|
432
|
-
};
|
|
433
|
-
/**
|
|
434
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
435
|
-
*/
|
|
436
|
-
export type PasswordCredential = {
|
|
437
|
-
temporaryAuthenticationToken: Jwt;
|
|
438
|
-
rp: RelyingParty;
|
|
439
|
-
user: AuthenticationUserInformation;
|
|
440
|
-
kind: CredentialKind.Password;
|
|
441
|
-
};
|
|
442
|
-
/**
|
|
443
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
444
|
-
*/
|
|
445
|
-
export type CreateUserCredentialInputBase = {
|
|
446
|
-
challengeIdentifier: Jwt;
|
|
447
|
-
credentialName: string;
|
|
448
|
-
};
|
|
449
|
-
/**
|
|
450
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
451
|
-
*/
|
|
452
|
-
export type CreateUserCredentialTotpInput = {
|
|
453
|
-
challengeIdentifier: Jwt;
|
|
454
|
-
credentialName: string;
|
|
455
|
-
credentialKind: CredentialKind.Totp;
|
|
456
|
-
credentialInfo: TotpCredentialInformation;
|
|
457
|
-
};
|
|
458
|
-
/**
|
|
459
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
460
|
-
*/
|
|
461
|
-
export type CreateUserCredentialPasswordInput = {
|
|
462
|
-
credentialKind: CredentialKind.Password;
|
|
463
|
-
credentialInfo: PasswordCredentialInformation;
|
|
464
|
-
challengeIdentifier: Jwt;
|
|
465
|
-
credentialName: string;
|
|
466
|
-
};
|
|
467
|
-
/**
|
|
468
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
469
|
-
*/
|
|
470
|
-
export type CreateUserCredentialPublicKeyInput = {
|
|
471
|
-
challengeIdentifier: Jwt;
|
|
472
|
-
credentialName: string;
|
|
473
|
-
credentialKind: CredentialKind.Key;
|
|
474
|
-
credentialInfo: CredentialAssertion;
|
|
475
|
-
};
|
|
476
|
-
/**
|
|
477
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
478
|
-
*/
|
|
479
|
-
export type CreateUserCredentialFido2Input = {
|
|
480
|
-
credentialKind: CredentialKind.Fido2;
|
|
481
|
-
credentialInfo: CredentialAssertion;
|
|
482
|
-
challengeIdentifier: Jwt;
|
|
483
|
-
credentialName: string;
|
|
484
|
-
};
|
|
485
|
-
/**
|
|
486
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
487
|
-
*/
|
|
488
|
-
export type HttpRequestInformation = {
|
|
489
|
-
method: string;
|
|
490
|
-
scheme: string;
|
|
491
|
-
authority: string;
|
|
492
|
-
path: string;
|
|
493
|
-
};
|
|
494
|
-
/**
|
|
495
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
496
|
-
*/
|
|
497
|
-
export type LegacyAuthAttestation = {
|
|
498
|
-
token: Jwt;
|
|
499
|
-
decodedToken: DecodedJwt;
|
|
500
|
-
authIdentity: AuthIdentity;
|
|
501
|
-
};
|
|
502
|
-
/**
|
|
503
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
504
|
-
*/
|
|
505
|
-
export type OrgEmployeeIdentity = {
|
|
506
|
-
kind: AuthIdentityKind.OrgEmployeeIdentity;
|
|
507
|
-
orgId: EntityId;
|
|
508
|
-
employeeId: EntityId;
|
|
509
|
-
username: Username;
|
|
510
|
-
scope: string;
|
|
511
|
-
permissions: string[];
|
|
512
|
-
};
|
|
513
|
-
/**
|
|
514
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
515
|
-
*/
|
|
516
|
-
export type OrgApiKeyIdentity = {
|
|
517
|
-
kind: AuthIdentityKind.OrgApiKeyIdentity;
|
|
518
|
-
orgId: EntityId;
|
|
519
|
-
apiKeyId: EntityId;
|
|
520
|
-
scope: string;
|
|
521
|
-
permissions: string[];
|
|
522
|
-
};
|
|
523
|
-
/**
|
|
524
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
525
|
-
*/
|
|
526
|
-
export type DfnsStaffIdentity = {
|
|
527
|
-
kind: AuthIdentityKind.DfnsStaffIdentity;
|
|
528
|
-
orgId: EntityId;
|
|
529
|
-
employeeId: EntityId;
|
|
530
|
-
username: Username;
|
|
531
|
-
scope: string;
|
|
532
|
-
permissions: string[];
|
|
533
|
-
};
|
|
534
|
-
/**
|
|
535
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
536
|
-
*/
|
|
537
|
-
export type DfnsServiceIdentity = {
|
|
538
|
-
kind: AuthIdentityKind.DfnsService;
|
|
539
|
-
serviceName: string;
|
|
540
|
-
};
|
|
541
|
-
/**
|
|
542
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
543
|
-
*/
|
|
544
|
-
export type AuthV2SignedAuthAttestation = {
|
|
545
|
-
authBlock: AuthBlock;
|
|
546
|
-
};
|
|
547
|
-
/**
|
|
548
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
549
|
-
*/
|
|
550
|
-
export type JwtHeader = {
|
|
551
|
-
alg?: string;
|
|
552
|
-
b64?: boolean;
|
|
553
|
-
kid?: string;
|
|
554
|
-
typ?: string;
|
|
555
|
-
};
|
|
556
|
-
/**
|
|
557
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
558
|
-
*/
|
|
559
|
-
export type DecodedJwt = {
|
|
560
|
-
payload: JwtPayload;
|
|
561
|
-
header: JwtHeader;
|
|
562
|
-
};
|
|
563
|
-
/**
|
|
564
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
565
|
-
*/
|
|
566
|
-
export type AuthBlock = {
|
|
567
|
-
request: Jwt;
|
|
568
|
-
auth: Jwt;
|
|
569
|
-
};
|
|
570
|
-
/**
|
|
571
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
572
|
-
*/
|
|
573
|
-
export type CreateUserCredentialRecoveryKeyInput = {
|
|
574
|
-
encryptedPrivateKey?: string;
|
|
575
|
-
credentialInfo: CredentialAssertion;
|
|
576
|
-
credentialKind: CredentialKind.RecoveryKey;
|
|
577
|
-
challengeIdentifier: Jwt;
|
|
578
|
-
credentialName: string;
|
|
579
|
-
};
|
|
580
|
-
/**
|
|
581
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
582
|
-
*/
|
|
583
|
-
export type PermissionAssignmentInfo = {
|
|
584
|
-
permissionName: string;
|
|
585
|
-
permissionId: EntityId;
|
|
586
|
-
assignmentId: EntityId;
|
|
587
|
-
operations?: string[];
|
|
588
|
-
};
|
|
589
|
-
/**
|
|
590
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
591
|
-
*/
|
|
592
|
-
export type AllowRecoveryCredential = {
|
|
593
|
-
id: string;
|
|
594
|
-
encryptedRecoveryKey: string;
|
|
595
|
-
};
|
|
596
|
-
/**
|
|
597
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
598
|
-
*/
|
|
599
|
-
export type RecoverUserInput = {
|
|
600
|
-
kind: CredentialKind.RecoveryKey;
|
|
601
|
-
credentialAssertion: KeyCredentialAssertion;
|
|
602
|
-
};
|
|
603
|
-
/**
|
|
604
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
605
|
-
*/
|
|
606
|
-
export type UserRecoveryCredentials = {
|
|
607
|
-
firstFactorCredential: RegistrationFirstFactor;
|
|
608
|
-
secondFactorCredential?: RegistrationSecondFactor;
|
|
609
|
-
recoveryCredential?: RegistrationConfirmationRecoveryKey;
|
|
610
|
-
};
|
|
611
|
-
export type Jwt = string;
|
|
612
|
-
export type JwtPayload = Record<string, unknown>;
|
|
613
|
-
/**
|
|
614
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
615
|
-
*/
|
|
616
|
-
export type CreateUserActionSignatureChallengeInput = {
|
|
617
|
-
/**
|
|
618
|
-
* Human readable explanation of the activity, so that person can understand what is being signed.
|
|
619
|
-
*/
|
|
620
|
-
userActionPayload: string;
|
|
621
|
-
userActionHttpMethod: string;
|
|
622
|
-
userActionHttpPath: string;
|
|
623
|
-
userActionServerKind?: ServerKind;
|
|
624
|
-
};
|
|
625
|
-
/**
|
|
626
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
627
|
-
*/
|
|
628
|
-
export type CreateDelegatedUserLoginInput = {
|
|
629
|
-
username: string;
|
|
630
|
-
};
|
|
631
|
-
/**
|
|
632
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
633
|
-
*/
|
|
634
|
-
export type CreateUserInput = {
|
|
635
|
-
email: string;
|
|
636
|
-
kind: UserAuthKind;
|
|
637
|
-
publicKey?: string;
|
|
638
|
-
externalId?: string;
|
|
639
|
-
};
|
|
640
|
-
/**
|
|
641
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
642
|
-
*/
|
|
643
|
-
export type CreateUserRegistrationChallengeInput = {
|
|
644
|
-
username: string;
|
|
645
|
-
registrationCode: string;
|
|
646
|
-
orgId: EntityId;
|
|
647
|
-
};
|
|
648
|
-
/**
|
|
649
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
650
|
-
*/
|
|
651
|
-
export type CreateUserRegistrationInput = {
|
|
652
|
-
firstFactorCredential: RegistrationFirstFactor;
|
|
653
|
-
secondFactorCredential?: RegistrationSecondFactor;
|
|
654
|
-
recoveryCredential?: RegistrationConfirmationRecoveryKey;
|
|
655
|
-
};
|
|
656
|
-
/**
|
|
657
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
658
|
-
*/
|
|
659
|
-
export type CreateUserLoginChallengeInput = {
|
|
660
|
-
username: string;
|
|
661
|
-
orgId: EntityId;
|
|
662
|
-
};
|
|
663
|
-
/**
|
|
664
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
665
|
-
*/
|
|
666
|
-
export type CreateUserLoginInput = {
|
|
667
|
-
challengeIdentifier: Jwt;
|
|
668
|
-
firstFactor: AuthenticateUserFirstFactor;
|
|
669
|
-
secondFactor?: AuthenticateUserSecondFactor;
|
|
670
|
-
};
|
|
671
|
-
/**
|
|
672
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
673
|
-
*/
|
|
674
|
-
export type CreateUserCredentialChallengeInput = {
|
|
675
|
-
kind: CredentialKind;
|
|
676
|
-
};
|
|
677
|
-
/**
|
|
678
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
679
|
-
*/
|
|
680
|
-
export type ActivateCredentialInput = {
|
|
681
|
-
credentialUuid: EntityId;
|
|
682
|
-
};
|
|
683
|
-
/**
|
|
684
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
685
|
-
*/
|
|
686
|
-
export type CreateSignedAuthAttestationInput = {
|
|
687
|
-
body?: string;
|
|
688
|
-
headers: Record<string, string>;
|
|
689
|
-
isBase64Encoded: boolean;
|
|
690
|
-
http: HttpRequestInformation;
|
|
691
|
-
};
|
|
692
|
-
/**
|
|
693
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
694
|
-
*/
|
|
695
|
-
export type CreateCodeLoginChallengeInput = {
|
|
696
|
-
code: string;
|
|
697
|
-
};
|
|
698
|
-
/**
|
|
699
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
700
|
-
*/
|
|
701
|
-
export type CreateUserLoginFromCodeInput = {
|
|
702
|
-
challengeIdentifier: Jwt;
|
|
703
|
-
};
|
|
704
|
-
/**
|
|
705
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
706
|
-
*/
|
|
707
|
-
export type CreateOrgOwnerInput = {
|
|
708
|
-
email: Email;
|
|
709
|
-
publicKey?: string;
|
|
710
|
-
orgId: EntityId;
|
|
711
|
-
authBlock: AuthBlock;
|
|
712
|
-
};
|
|
713
|
-
/**
|
|
714
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
715
|
-
*/
|
|
716
|
-
export type CreateAvailableOrgListInput = {
|
|
717
|
-
/**
|
|
718
|
-
* The username of the user that is logging into the system.
|
|
719
|
-
*/
|
|
720
|
-
username: Username;
|
|
721
|
-
/**
|
|
722
|
-
* If specified, the API will return only the matching application for the given org ID. This would be used when the user has already given the org they want to log into, but the caller doesn't know the Auth V2 Application ID to use.
|
|
723
|
-
*/
|
|
724
|
-
orgId?: EntityId;
|
|
725
|
-
/**
|
|
726
|
-
* A list of permission names that the caller will be using in their application.
|
|
727
|
-
*
|
|
728
|
-
* If the list is not empty, the API will attempt to find an Auth V2 Application that has the majority of the permissions provided.
|
|
729
|
-
*
|
|
730
|
-
* If the list is empty or not provided, the API will select the Auth V2 Application with the largest set of permissions.
|
|
731
|
-
*/
|
|
732
|
-
permissions?: string[];
|
|
733
|
-
/**
|
|
734
|
-
* The origin (scheme, hostname, and port) of the server where the request is originating. For example: https://dashboard.dfns.io
|
|
735
|
-
*
|
|
736
|
-
* The API will only return orgs that have a Auth V2 Application with a matching origin.
|
|
737
|
-
*/
|
|
738
|
-
origin: string;
|
|
739
|
-
};
|
|
740
|
-
/**
|
|
741
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
742
|
-
*/
|
|
743
|
-
export type CreateAccessTokenInput = {
|
|
744
|
-
daysValid?: IntegerPositiveStrict;
|
|
745
|
-
name: string;
|
|
746
|
-
permissionId?: EntityId;
|
|
747
|
-
publicKey: string;
|
|
748
|
-
externalId?: string;
|
|
749
|
-
};
|
|
750
|
-
/**
|
|
751
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
752
|
-
*/
|
|
753
|
-
export type UpdateAccessTokenInput = {
|
|
754
|
-
name?: string;
|
|
755
|
-
externalId?: string;
|
|
756
|
-
};
|
|
757
|
-
/**
|
|
758
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
759
|
-
*/
|
|
760
|
-
export type UpdateUserInput = {
|
|
761
|
-
externalId?: string;
|
|
762
|
-
publicKey?: string;
|
|
763
|
-
};
|
|
764
|
-
/**
|
|
765
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
766
|
-
*/
|
|
767
|
-
export type UpdateApplicationInput = {
|
|
768
|
-
externalId?: string;
|
|
769
|
-
name?: string;
|
|
770
|
-
};
|
|
771
|
-
/**
|
|
772
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
773
|
-
*/
|
|
774
|
-
export type CreateApplicationInput = {
|
|
775
|
-
name: string;
|
|
776
|
-
relyingPartyId: string;
|
|
777
|
-
origin: string;
|
|
778
|
-
permissionId?: EntityId;
|
|
779
|
-
kind: ApplicationKind;
|
|
780
|
-
daysValid?: IntegerPositiveStrict;
|
|
781
|
-
publicKey?: string;
|
|
782
|
-
externalId?: string;
|
|
783
|
-
};
|
|
784
|
-
/**
|
|
785
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
786
|
-
*/
|
|
787
|
-
export type CreateUserRecoveryInput = {
|
|
788
|
-
recovery: RecoverUserInput;
|
|
789
|
-
newCredentials: UserRecoveryCredentials;
|
|
790
|
-
};
|
|
791
|
-
/**
|
|
792
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
793
|
-
*/
|
|
794
|
-
export type CreateUserRecoveryChallengeInput = {
|
|
795
|
-
username: string;
|
|
796
|
-
verificationCode: string;
|
|
797
|
-
orgId: EntityId;
|
|
798
|
-
credentialId: string;
|
|
799
|
-
};
|
|
800
|
-
/**
|
|
801
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
802
|
-
*/
|
|
803
|
-
export type CreateDelegatedUserRecoveryInput = {
|
|
804
|
-
username: string;
|
|
805
|
-
credentialId: string;
|
|
806
|
-
};
|
|
807
|
-
/**
|
|
808
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
809
|
-
*/
|
|
810
|
-
export type CreateUserCredentialInput = CreateUserCredentialTotpInput | CreateUserCredentialPasswordInput | CreateUserCredentialPublicKeyInput | CreateUserCredentialFido2Input | CreateUserCredentialRecoveryKeyInput;
|
|
811
|
-
/**
|
|
812
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
813
|
-
*/
|
|
814
|
-
export type UserCredentialChallenge = Fido2Options | PublicKeyOptions | TotpCredential | PasswordCredential;
|
|
815
|
-
/**
|
|
816
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
817
|
-
*/
|
|
818
|
-
export type SignedAuthAttestation = LegacyAuthAttestation | AuthV2SignedAuthAttestation;
|
|
819
|
-
/**
|
|
820
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
821
|
-
*/
|
|
822
|
-
export type RegistrationFirstFactor = RegistrationConfirmationFido2 | RegistrationConfirmationKey | RegistrationConfirmationPassword;
|
|
823
|
-
/**
|
|
824
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
825
|
-
*/
|
|
826
|
-
export type RegistrationSecondFactor = RegistrationConfirmationFido2 | RegistrationConfirmationKey | RegistrationConfirmationTotp;
|
|
827
|
-
/**
|
|
828
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
829
|
-
*/
|
|
830
|
-
export type AuthenticateUserFirstFactor = AuthenticateUserPasswordInput | AuthenticateUserFido2Input | AuthenticateUserKeyInput;
|
|
831
|
-
/**
|
|
832
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
833
|
-
*/
|
|
834
|
-
export type AuthenticateUserSecondFactor = AuthenticateUserFido2Input | AuthenticateUserKeyInput | AuthenticateUserTotpInput;
|
|
835
|
-
/**
|
|
836
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
837
|
-
*/
|
|
838
|
-
export type AuthIdentity = OrgEmployeeIdentity | OrgApiKeyIdentity | DfnsStaffIdentity | DfnsServiceIdentity;
|
|
839
|
-
/**
|
|
840
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
841
|
-
*/
|
|
842
|
-
export declare enum CredentialKind {
|
|
843
|
-
Fido2 = "Fido2",
|
|
844
|
-
Key = "Key",
|
|
845
|
-
Password = "Password",
|
|
846
|
-
Totp = "Totp",
|
|
847
|
-
RecoveryKey = "RecoveryKey"
|
|
848
|
-
}
|
|
849
|
-
/**
|
|
850
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
851
|
-
*/
|
|
852
|
-
export declare enum UserKind {
|
|
853
|
-
CustomerEmployee = "CustomerEmployee",
|
|
854
|
-
DfnsStaff = "DfnsStaff",
|
|
855
|
-
EndUser = "EndUser",
|
|
856
|
-
Pat = "Pat",
|
|
857
|
-
Application = "Application",
|
|
858
|
-
ServiceAccount = "ServiceAccount"
|
|
859
|
-
}
|
|
860
|
-
/**
|
|
861
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
862
|
-
*/
|
|
863
|
-
export declare enum AuthenticatorRequirementOptions {
|
|
864
|
-
required = "required",
|
|
865
|
-
preferred = "preferred",
|
|
866
|
-
discouraged = "discouraged"
|
|
867
|
-
}
|
|
868
|
-
/**
|
|
869
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
870
|
-
*/
|
|
871
|
-
export declare enum AuthenticatorAttestationOptions {
|
|
872
|
-
none = "none",
|
|
873
|
-
indirect = "indirect",
|
|
874
|
-
direct = "direct",
|
|
875
|
-
enterprise = "enterprise"
|
|
876
|
-
}
|
|
877
|
-
/**
|
|
878
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
879
|
-
*/
|
|
880
|
-
export declare enum ApplicationKind {
|
|
881
|
-
ServerSideApplication = "ServerSideApplication",
|
|
882
|
-
ClientSideApplication = "ClientSideApplication"
|
|
883
|
-
}
|
|
884
|
-
/**
|
|
885
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
886
|
-
*/
|
|
887
|
-
export declare enum FidoCredentialsTransportKind {
|
|
888
|
-
usb = "usb",
|
|
889
|
-
nfc = "nfc",
|
|
890
|
-
ble = "ble",
|
|
891
|
-
internal = "internal",
|
|
892
|
-
hybrid = "hybrid"
|
|
893
|
-
}
|
|
894
|
-
/**
|
|
895
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
896
|
-
*/
|
|
897
|
-
export declare enum CredentialFactor {
|
|
898
|
-
first = "first",
|
|
899
|
-
second = "second",
|
|
900
|
-
either = "either"
|
|
901
|
-
}
|
|
902
|
-
/**
|
|
903
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
904
|
-
*/
|
|
905
|
-
export declare enum ServerKind {
|
|
906
|
-
Api = "Api",
|
|
907
|
-
Staff = "Staff"
|
|
908
|
-
}
|
|
909
|
-
/**
|
|
910
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
911
|
-
*/
|
|
912
|
-
export declare enum AccessTokenKind {
|
|
913
|
-
ServiceAccount = "ServiceAccount",
|
|
914
|
-
Pat = "Pat",
|
|
915
|
-
Application = "Application"
|
|
916
|
-
}
|
|
917
|
-
/**
|
|
918
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
919
|
-
*/
|
|
920
|
-
export declare enum UserAuthKind {
|
|
921
|
-
EndUser = "EndUser",
|
|
922
|
-
CustomerEmployee = "CustomerEmployee",
|
|
923
|
-
DfnsStaff = "DfnsStaff"
|
|
924
|
-
}
|
|
925
|
-
/**
|
|
926
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/auth' instead
|
|
927
|
-
*/
|
|
928
|
-
export declare enum AuthIdentityKind {
|
|
929
|
-
DfnsStaffIdentity = "DfnsStaffIdentity",
|
|
930
|
-
OrgEmployeeIdentity = "OrgEmployeeIdentity",
|
|
931
|
-
OrgApiKeyIdentity = "OrgApiKeyIdentity",
|
|
932
|
-
DfnsService = "DfnsService"
|
|
933
|
-
}
|