@dfns/sdk 0.5.2 → 0.5.4
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 +1 -1
- package/generated/auth/client.js +12 -12
- package/generated/auth/delegatedClient.d.ts +1 -2
- package/generated/auth/delegatedClient.js +12 -27
- package/generated/auth/types.d.ts +206 -69
- package/generated/permissions/types.d.ts +2 -2
- package/generated/policies/types.d.ts +159 -42
- package/generated/wallets/types.d.ts +102 -34
- package/package.json +1 -1
|
@@ -74,12 +74,12 @@ export type ActivateServiceAccountParams = {
|
|
|
74
74
|
export type ActivateServiceAccountResponse = {
|
|
75
75
|
userInfo: {
|
|
76
76
|
username: string;
|
|
77
|
+
name: string;
|
|
77
78
|
userId: string;
|
|
78
79
|
kind: "EndUser" | "CustomerEmployee" | "DfnsStaff";
|
|
79
80
|
credentialUuid: string;
|
|
80
81
|
orgId: string;
|
|
81
82
|
permissions?: string[] | undefined;
|
|
82
|
-
scopes?: string[] | undefined;
|
|
83
83
|
isActive: boolean;
|
|
84
84
|
isServiceAccount: boolean;
|
|
85
85
|
isRegistered: boolean;
|
|
@@ -116,12 +116,12 @@ export type ActivateUserParams = {
|
|
|
116
116
|
};
|
|
117
117
|
export type ActivateUserResponse = {
|
|
118
118
|
username: string;
|
|
119
|
+
name: string;
|
|
119
120
|
userId: string;
|
|
120
121
|
kind: "EndUser" | "CustomerEmployee" | "DfnsStaff";
|
|
121
122
|
credentialUuid: string;
|
|
122
123
|
orgId: string;
|
|
123
124
|
permissions?: string[] | undefined;
|
|
124
|
-
scopes?: string[] | undefined;
|
|
125
125
|
isActive: boolean;
|
|
126
126
|
isServiceAccount: boolean;
|
|
127
127
|
isRegistered: boolean;
|
|
@@ -200,12 +200,12 @@ export type ArchiveServiceAccountParams = {
|
|
|
200
200
|
export type ArchiveServiceAccountResponse = {
|
|
201
201
|
userInfo: {
|
|
202
202
|
username: string;
|
|
203
|
+
name: string;
|
|
203
204
|
userId: string;
|
|
204
205
|
kind: "EndUser" | "CustomerEmployee" | "DfnsStaff";
|
|
205
206
|
credentialUuid: string;
|
|
206
207
|
orgId: string;
|
|
207
208
|
permissions?: string[] | undefined;
|
|
208
|
-
scopes?: string[] | undefined;
|
|
209
209
|
isActive: boolean;
|
|
210
210
|
isServiceAccount: boolean;
|
|
211
211
|
isRegistered: boolean;
|
|
@@ -242,12 +242,12 @@ export type ArchiveUserParams = {
|
|
|
242
242
|
};
|
|
243
243
|
export type ArchiveUserResponse = {
|
|
244
244
|
username: string;
|
|
245
|
+
name: string;
|
|
245
246
|
userId: string;
|
|
246
247
|
kind: "EndUser" | "CustomerEmployee" | "DfnsStaff";
|
|
247
248
|
credentialUuid: string;
|
|
248
249
|
orgId: string;
|
|
249
250
|
permissions?: string[] | undefined;
|
|
250
|
-
scopes?: string[] | undefined;
|
|
251
251
|
isActive: boolean;
|
|
252
252
|
isServiceAccount: boolean;
|
|
253
253
|
isRegistered: boolean;
|
|
@@ -331,6 +331,16 @@ export type CreateCredentialBody = {
|
|
|
331
331
|
};
|
|
332
332
|
credentialName: string;
|
|
333
333
|
challengeIdentifier: string;
|
|
334
|
+
} | {
|
|
335
|
+
credentialKind: "PasswordProtectedKey";
|
|
336
|
+
credentialInfo: {
|
|
337
|
+
credId: string;
|
|
338
|
+
clientData: string;
|
|
339
|
+
attestationData: string;
|
|
340
|
+
};
|
|
341
|
+
encryptedPrivateKey: string;
|
|
342
|
+
credentialName: string;
|
|
343
|
+
challengeIdentifier: string;
|
|
334
344
|
} | {
|
|
335
345
|
credentialKind: "Password";
|
|
336
346
|
credentialInfo: {
|
|
@@ -357,7 +367,7 @@ export type CreateCredentialBody = {
|
|
|
357
367
|
challengeIdentifier: string;
|
|
358
368
|
};
|
|
359
369
|
export type CreateCredentialResponse = {
|
|
360
|
-
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey";
|
|
370
|
+
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey";
|
|
361
371
|
credentialId: string;
|
|
362
372
|
credentialUuid: string;
|
|
363
373
|
dateCreated: string;
|
|
@@ -371,7 +381,7 @@ export type CreateCredentialRequest = {
|
|
|
371
381
|
body: CreateCredentialBody;
|
|
372
382
|
};
|
|
373
383
|
export type CreateCredentialChallengeBody = {
|
|
374
|
-
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey";
|
|
384
|
+
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey";
|
|
375
385
|
};
|
|
376
386
|
export type CreateCredentialChallengeResponse = {
|
|
377
387
|
kind: "Password";
|
|
@@ -453,6 +463,26 @@ export type CreateCredentialChallengeResponse = {
|
|
|
453
463
|
}[];
|
|
454
464
|
/** @deprecated use challengeIdentifier instead */
|
|
455
465
|
temporaryAuthenticationToken: string;
|
|
466
|
+
} | {
|
|
467
|
+
kind: "PasswordProtectedKey";
|
|
468
|
+
user: {
|
|
469
|
+
id: string;
|
|
470
|
+
displayName: string;
|
|
471
|
+
name: string;
|
|
472
|
+
};
|
|
473
|
+
challengeIdentifier: string;
|
|
474
|
+
challenge: string;
|
|
475
|
+
rp: {
|
|
476
|
+
id: string;
|
|
477
|
+
name: string;
|
|
478
|
+
};
|
|
479
|
+
attestation: "none" | "indirect" | "direct" | "enterprise";
|
|
480
|
+
pubKeyCredParams: {
|
|
481
|
+
type: "public-key";
|
|
482
|
+
alg: number;
|
|
483
|
+
}[];
|
|
484
|
+
/** @deprecated use challengeIdentifier instead */
|
|
485
|
+
temporaryAuthenticationToken: string;
|
|
456
486
|
} | {
|
|
457
487
|
kind: "RecoveryKey";
|
|
458
488
|
user: {
|
|
@@ -478,7 +508,7 @@ export type CreateCredentialChallengeRequest = {
|
|
|
478
508
|
body: CreateCredentialChallengeBody;
|
|
479
509
|
};
|
|
480
510
|
export type CreateCredentialChallengeWithCodeBody = {
|
|
481
|
-
credentialKind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey";
|
|
511
|
+
credentialKind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey";
|
|
482
512
|
code: string;
|
|
483
513
|
};
|
|
484
514
|
export type CreateCredentialChallengeWithCodeResponse = {
|
|
@@ -561,6 +591,26 @@ export type CreateCredentialChallengeWithCodeResponse = {
|
|
|
561
591
|
}[];
|
|
562
592
|
/** @deprecated use challengeIdentifier instead */
|
|
563
593
|
temporaryAuthenticationToken: string;
|
|
594
|
+
} | {
|
|
595
|
+
kind: "PasswordProtectedKey";
|
|
596
|
+
user: {
|
|
597
|
+
id: string;
|
|
598
|
+
displayName: string;
|
|
599
|
+
name: string;
|
|
600
|
+
};
|
|
601
|
+
challengeIdentifier: string;
|
|
602
|
+
challenge: string;
|
|
603
|
+
rp: {
|
|
604
|
+
id: string;
|
|
605
|
+
name: string;
|
|
606
|
+
};
|
|
607
|
+
attestation: "none" | "indirect" | "direct" | "enterprise";
|
|
608
|
+
pubKeyCredParams: {
|
|
609
|
+
type: "public-key";
|
|
610
|
+
alg: number;
|
|
611
|
+
}[];
|
|
612
|
+
/** @deprecated use challengeIdentifier instead */
|
|
613
|
+
temporaryAuthenticationToken: string;
|
|
564
614
|
} | {
|
|
565
615
|
kind: "RecoveryKey";
|
|
566
616
|
user: {
|
|
@@ -614,6 +664,16 @@ export type CreateCredentialWithCodeBody = {
|
|
|
614
664
|
};
|
|
615
665
|
credentialName: string;
|
|
616
666
|
challengeIdentifier: string;
|
|
667
|
+
} | {
|
|
668
|
+
credentialKind: "PasswordProtectedKey";
|
|
669
|
+
credentialInfo: {
|
|
670
|
+
credId: string;
|
|
671
|
+
clientData: string;
|
|
672
|
+
attestationData: string;
|
|
673
|
+
};
|
|
674
|
+
encryptedPrivateKey: string;
|
|
675
|
+
credentialName: string;
|
|
676
|
+
challengeIdentifier: string;
|
|
617
677
|
} | {
|
|
618
678
|
credentialKind: "Password";
|
|
619
679
|
credentialInfo: {
|
|
@@ -640,7 +700,7 @@ export type CreateCredentialWithCodeBody = {
|
|
|
640
700
|
challengeIdentifier: string;
|
|
641
701
|
};
|
|
642
702
|
export type CreateCredentialWithCodeResponse = {
|
|
643
|
-
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey";
|
|
703
|
+
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey";
|
|
644
704
|
credentialId: string;
|
|
645
705
|
credentialUuid: string;
|
|
646
706
|
dateCreated: string;
|
|
@@ -670,8 +730,8 @@ export type CreateDelegatedRecoveryChallengeResponse = {
|
|
|
670
730
|
name: string;
|
|
671
731
|
};
|
|
672
732
|
supportedCredentialKinds: {
|
|
673
|
-
firstFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey")[];
|
|
674
|
-
secondFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey")[];
|
|
733
|
+
firstFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey")[];
|
|
734
|
+
secondFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey")[];
|
|
675
735
|
};
|
|
676
736
|
authenticatorSelection: {
|
|
677
737
|
authenticatorAttachment?: ("platform" | "cross-platform") | undefined;
|
|
@@ -716,8 +776,8 @@ export type CreateDelegatedRegistrationChallengeResponse = {
|
|
|
716
776
|
name: string;
|
|
717
777
|
};
|
|
718
778
|
supportedCredentialKinds: {
|
|
719
|
-
firstFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey")[];
|
|
720
|
-
secondFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey")[];
|
|
779
|
+
firstFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey")[];
|
|
780
|
+
secondFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey")[];
|
|
721
781
|
};
|
|
722
782
|
authenticatorSelection: {
|
|
723
783
|
authenticatorAttachment?: ("platform" | "cross-platform") | undefined;
|
|
@@ -743,6 +803,7 @@ export type CreateDelegatedRegistrationChallengeRequest = {
|
|
|
743
803
|
export type CreateLoginChallengeBody = {
|
|
744
804
|
username: string;
|
|
745
805
|
orgId: string;
|
|
806
|
+
loginCode?: string | undefined;
|
|
746
807
|
};
|
|
747
808
|
export type CreateLoginChallengeResponse = {
|
|
748
809
|
challenge: string;
|
|
@@ -752,7 +813,7 @@ export type CreateLoginChallengeResponse = {
|
|
|
752
813
|
name: string;
|
|
753
814
|
};
|
|
754
815
|
supportedCredentialKinds: {
|
|
755
|
-
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey";
|
|
816
|
+
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey";
|
|
756
817
|
factor: "first" | "second" | "either";
|
|
757
818
|
requiresSecondFactor: boolean;
|
|
758
819
|
}[];
|
|
@@ -764,6 +825,11 @@ export type CreateLoginChallengeResponse = {
|
|
|
764
825
|
id: string;
|
|
765
826
|
transports?: ("usb" | "nfc" | "ble" | "smart-card" | "hybrid" | "internal") | undefined;
|
|
766
827
|
}[];
|
|
828
|
+
passwordProtectedKey?: {
|
|
829
|
+
type: "public-key";
|
|
830
|
+
id: string;
|
|
831
|
+
encryptedPrivateKey: string;
|
|
832
|
+
}[] | undefined;
|
|
767
833
|
webauthn: {
|
|
768
834
|
type: "public-key";
|
|
769
835
|
id: string;
|
|
@@ -824,8 +890,8 @@ export type CreateRecoveryChallengeResponse = {
|
|
|
824
890
|
name: string;
|
|
825
891
|
};
|
|
826
892
|
supportedCredentialKinds: {
|
|
827
|
-
firstFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey")[];
|
|
828
|
-
secondFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey")[];
|
|
893
|
+
firstFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey")[];
|
|
894
|
+
secondFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey")[];
|
|
829
895
|
};
|
|
830
896
|
authenticatorSelection: {
|
|
831
897
|
authenticatorAttachment?: ("platform" | "cross-platform") | undefined;
|
|
@@ -870,8 +936,8 @@ export type CreateRegistrationChallengeResponse = {
|
|
|
870
936
|
name: string;
|
|
871
937
|
};
|
|
872
938
|
supportedCredentialKinds: {
|
|
873
|
-
firstFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey")[];
|
|
874
|
-
secondFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey")[];
|
|
939
|
+
firstFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey")[];
|
|
940
|
+
secondFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey")[];
|
|
875
941
|
};
|
|
876
942
|
authenticatorSelection: {
|
|
877
943
|
authenticatorAttachment?: ("platform" | "cross-platform") | undefined;
|
|
@@ -904,12 +970,12 @@ export type CreateServiceAccountBody = {
|
|
|
904
970
|
export type CreateServiceAccountResponse = {
|
|
905
971
|
userInfo: {
|
|
906
972
|
username: string;
|
|
973
|
+
name: string;
|
|
907
974
|
userId: string;
|
|
908
975
|
kind: "EndUser" | "CustomerEmployee" | "DfnsStaff";
|
|
909
976
|
credentialUuid: string;
|
|
910
977
|
orgId: string;
|
|
911
978
|
permissions?: string[] | undefined;
|
|
912
|
-
scopes?: string[] | undefined;
|
|
913
979
|
isActive: boolean;
|
|
914
980
|
isServiceAccount: boolean;
|
|
915
981
|
isRegistered: boolean;
|
|
@@ -960,8 +1026,8 @@ export type CreateSocialRegistrationChallengeResponse = {
|
|
|
960
1026
|
name: string;
|
|
961
1027
|
};
|
|
962
1028
|
supportedCredentialKinds: {
|
|
963
|
-
firstFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey")[];
|
|
964
|
-
secondFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey")[];
|
|
1029
|
+
firstFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey")[];
|
|
1030
|
+
secondFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey")[];
|
|
965
1031
|
};
|
|
966
1032
|
authenticatorSelection: {
|
|
967
1033
|
authenticatorAttachment?: ("platform" | "cross-platform") | undefined;
|
|
@@ -992,12 +1058,12 @@ export type CreateUserBody = {
|
|
|
992
1058
|
};
|
|
993
1059
|
export type CreateUserResponse = {
|
|
994
1060
|
username: string;
|
|
1061
|
+
name: string;
|
|
995
1062
|
userId: string;
|
|
996
1063
|
kind: "EndUser" | "CustomerEmployee" | "DfnsStaff";
|
|
997
1064
|
credentialUuid: string;
|
|
998
1065
|
orgId: string;
|
|
999
1066
|
permissions?: string[] | undefined;
|
|
1000
|
-
scopes?: string[] | undefined;
|
|
1001
1067
|
isActive: boolean;
|
|
1002
1068
|
isServiceAccount: boolean;
|
|
1003
1069
|
isRegistered: boolean;
|
|
@@ -1025,7 +1091,7 @@ export type CreateUserActionChallengeResponse = {
|
|
|
1025
1091
|
name: string;
|
|
1026
1092
|
};
|
|
1027
1093
|
supportedCredentialKinds: {
|
|
1028
|
-
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey";
|
|
1094
|
+
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey";
|
|
1029
1095
|
factor: "first" | "second" | "either";
|
|
1030
1096
|
requiresSecondFactor: boolean;
|
|
1031
1097
|
}[];
|
|
@@ -1037,6 +1103,11 @@ export type CreateUserActionChallengeResponse = {
|
|
|
1037
1103
|
id: string;
|
|
1038
1104
|
transports?: ("usb" | "nfc" | "ble" | "smart-card" | "hybrid" | "internal") | undefined;
|
|
1039
1105
|
}[];
|
|
1106
|
+
passwordProtectedKey?: {
|
|
1107
|
+
type: "public-key";
|
|
1108
|
+
id: string;
|
|
1109
|
+
encryptedPrivateKey: string;
|
|
1110
|
+
}[] | undefined;
|
|
1040
1111
|
webauthn: {
|
|
1041
1112
|
type: "public-key";
|
|
1042
1113
|
id: string;
|
|
@@ -1055,8 +1126,9 @@ export type CreateUserActionSignatureBody = {
|
|
|
1055
1126
|
credentialAssertion: {
|
|
1056
1127
|
credId: string;
|
|
1057
1128
|
clientData: string;
|
|
1058
|
-
authenticatorData: string;
|
|
1059
1129
|
signature: string;
|
|
1130
|
+
algorithm?: string | undefined;
|
|
1131
|
+
authenticatorData: string;
|
|
1060
1132
|
userHandle?: string | undefined;
|
|
1061
1133
|
};
|
|
1062
1134
|
} | {
|
|
@@ -1070,14 +1142,23 @@ export type CreateUserActionSignatureBody = {
|
|
|
1070
1142
|
} | {
|
|
1071
1143
|
kind: "Password";
|
|
1072
1144
|
password: string;
|
|
1145
|
+
} | {
|
|
1146
|
+
kind: "PasswordProtectedKey";
|
|
1147
|
+
credentialAssertion: {
|
|
1148
|
+
credId: string;
|
|
1149
|
+
clientData: string;
|
|
1150
|
+
signature: string;
|
|
1151
|
+
algorithm?: string | undefined;
|
|
1152
|
+
};
|
|
1073
1153
|
};
|
|
1074
1154
|
secondFactor?: ({
|
|
1075
1155
|
kind: "Fido2";
|
|
1076
1156
|
credentialAssertion: {
|
|
1077
1157
|
credId: string;
|
|
1078
1158
|
clientData: string;
|
|
1079
|
-
authenticatorData: string;
|
|
1080
1159
|
signature: string;
|
|
1160
|
+
algorithm?: string | undefined;
|
|
1161
|
+
authenticatorData: string;
|
|
1081
1162
|
userHandle?: string | undefined;
|
|
1082
1163
|
};
|
|
1083
1164
|
} | {
|
|
@@ -1091,6 +1172,14 @@ export type CreateUserActionSignatureBody = {
|
|
|
1091
1172
|
} | {
|
|
1092
1173
|
kind: "Totp";
|
|
1093
1174
|
otpCode: string;
|
|
1175
|
+
} | {
|
|
1176
|
+
kind: "PasswordProtectedKey";
|
|
1177
|
+
credentialAssertion: {
|
|
1178
|
+
credId: string;
|
|
1179
|
+
clientData: string;
|
|
1180
|
+
signature: string;
|
|
1181
|
+
algorithm?: string | undefined;
|
|
1182
|
+
};
|
|
1094
1183
|
}) | undefined;
|
|
1095
1184
|
};
|
|
1096
1185
|
export type CreateUserActionSignatureResponse = {
|
|
@@ -1175,12 +1264,12 @@ export type DeactivateServiceAccountParams = {
|
|
|
1175
1264
|
export type DeactivateServiceAccountResponse = {
|
|
1176
1265
|
userInfo: {
|
|
1177
1266
|
username: string;
|
|
1267
|
+
name: string;
|
|
1178
1268
|
userId: string;
|
|
1179
1269
|
kind: "EndUser" | "CustomerEmployee" | "DfnsStaff";
|
|
1180
1270
|
credentialUuid: string;
|
|
1181
1271
|
orgId: string;
|
|
1182
1272
|
permissions?: string[] | undefined;
|
|
1183
|
-
scopes?: string[] | undefined;
|
|
1184
1273
|
isActive: boolean;
|
|
1185
1274
|
isServiceAccount: boolean;
|
|
1186
1275
|
isRegistered: boolean;
|
|
@@ -1217,12 +1306,12 @@ export type DeactivateUserParams = {
|
|
|
1217
1306
|
};
|
|
1218
1307
|
export type DeactivateUserResponse = {
|
|
1219
1308
|
username: string;
|
|
1309
|
+
name: string;
|
|
1220
1310
|
userId: string;
|
|
1221
1311
|
kind: "EndUser" | "CustomerEmployee" | "DfnsStaff";
|
|
1222
1312
|
credentialUuid: string;
|
|
1223
1313
|
orgId: string;
|
|
1224
1314
|
permissions?: string[] | undefined;
|
|
1225
|
-
scopes?: string[] | undefined;
|
|
1226
1315
|
isActive: boolean;
|
|
1227
1316
|
isServiceAccount: boolean;
|
|
1228
1317
|
isRegistered: boolean;
|
|
@@ -1310,12 +1399,12 @@ export type GetServiceAccountParams = {
|
|
|
1310
1399
|
export type GetServiceAccountResponse = {
|
|
1311
1400
|
userInfo: {
|
|
1312
1401
|
username: string;
|
|
1402
|
+
name: string;
|
|
1313
1403
|
userId: string;
|
|
1314
1404
|
kind: "EndUser" | "CustomerEmployee" | "DfnsStaff";
|
|
1315
1405
|
credentialUuid: string;
|
|
1316
1406
|
orgId: string;
|
|
1317
1407
|
permissions?: string[] | undefined;
|
|
1318
|
-
scopes?: string[] | undefined;
|
|
1319
1408
|
isActive: boolean;
|
|
1320
1409
|
isServiceAccount: boolean;
|
|
1321
1410
|
isRegistered: boolean;
|
|
@@ -1352,12 +1441,12 @@ export type GetUserParams = {
|
|
|
1352
1441
|
};
|
|
1353
1442
|
export type GetUserResponse = {
|
|
1354
1443
|
username: string;
|
|
1444
|
+
name: string;
|
|
1355
1445
|
userId: string;
|
|
1356
1446
|
kind: "EndUser" | "CustomerEmployee" | "DfnsStaff";
|
|
1357
1447
|
credentialUuid: string;
|
|
1358
1448
|
orgId: string;
|
|
1359
1449
|
permissions?: string[] | undefined;
|
|
1360
|
-
scopes?: string[] | undefined;
|
|
1361
1450
|
isActive: boolean;
|
|
1362
1451
|
isServiceAccount: boolean;
|
|
1363
1452
|
isRegistered: boolean;
|
|
@@ -1422,7 +1511,7 @@ export type ListAvailableOrgsRequest = {
|
|
|
1422
1511
|
};
|
|
1423
1512
|
export type ListCredentialsResponse = {
|
|
1424
1513
|
items: {
|
|
1425
|
-
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey";
|
|
1514
|
+
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey";
|
|
1426
1515
|
credentialId: string;
|
|
1427
1516
|
credentialUuid: string;
|
|
1428
1517
|
dateCreated: string;
|
|
@@ -1458,12 +1547,12 @@ export type ListServiceAccountsResponse = {
|
|
|
1458
1547
|
items: {
|
|
1459
1548
|
userInfo: {
|
|
1460
1549
|
username: string;
|
|
1550
|
+
name: string;
|
|
1461
1551
|
userId: string;
|
|
1462
1552
|
kind: "EndUser" | "CustomerEmployee" | "DfnsStaff";
|
|
1463
1553
|
credentialUuid: string;
|
|
1464
1554
|
orgId: string;
|
|
1465
1555
|
permissions?: string[] | undefined;
|
|
1466
|
-
scopes?: string[] | undefined;
|
|
1467
1556
|
isActive: boolean;
|
|
1468
1557
|
isServiceAccount: boolean;
|
|
1469
1558
|
isRegistered: boolean;
|
|
@@ -1503,12 +1592,12 @@ export type ListUsersQuery = {
|
|
|
1503
1592
|
export type ListUsersResponse = {
|
|
1504
1593
|
items: {
|
|
1505
1594
|
username: string;
|
|
1595
|
+
name: string;
|
|
1506
1596
|
userId: string;
|
|
1507
1597
|
kind: "EndUser" | "CustomerEmployee" | "DfnsStaff";
|
|
1508
1598
|
credentialUuid: string;
|
|
1509
1599
|
orgId: string;
|
|
1510
1600
|
permissions?: string[] | undefined;
|
|
1511
|
-
scopes?: string[] | undefined;
|
|
1512
1601
|
isActive: boolean;
|
|
1513
1602
|
isServiceAccount: boolean;
|
|
1514
1603
|
isRegistered: boolean;
|
|
@@ -1531,8 +1620,9 @@ export type LoginBody = {
|
|
|
1531
1620
|
credentialAssertion: {
|
|
1532
1621
|
credId: string;
|
|
1533
1622
|
clientData: string;
|
|
1534
|
-
authenticatorData: string;
|
|
1535
1623
|
signature: string;
|
|
1624
|
+
algorithm?: string | undefined;
|
|
1625
|
+
authenticatorData: string;
|
|
1536
1626
|
userHandle?: string | undefined;
|
|
1537
1627
|
};
|
|
1538
1628
|
} | {
|
|
@@ -1546,14 +1636,23 @@ export type LoginBody = {
|
|
|
1546
1636
|
} | {
|
|
1547
1637
|
kind: "Password";
|
|
1548
1638
|
password: string;
|
|
1639
|
+
} | {
|
|
1640
|
+
kind: "PasswordProtectedKey";
|
|
1641
|
+
credentialAssertion: {
|
|
1642
|
+
credId: string;
|
|
1643
|
+
clientData: string;
|
|
1644
|
+
signature: string;
|
|
1645
|
+
algorithm?: string | undefined;
|
|
1646
|
+
};
|
|
1549
1647
|
};
|
|
1550
1648
|
secondFactor?: ({
|
|
1551
1649
|
kind: "Fido2";
|
|
1552
1650
|
credentialAssertion: {
|
|
1553
1651
|
credId: string;
|
|
1554
1652
|
clientData: string;
|
|
1555
|
-
authenticatorData: string;
|
|
1556
1653
|
signature: string;
|
|
1654
|
+
algorithm?: string | undefined;
|
|
1655
|
+
authenticatorData: string;
|
|
1557
1656
|
userHandle?: string | undefined;
|
|
1558
1657
|
};
|
|
1559
1658
|
} | {
|
|
@@ -1567,6 +1666,14 @@ export type LoginBody = {
|
|
|
1567
1666
|
} | {
|
|
1568
1667
|
kind: "Totp";
|
|
1569
1668
|
otpCode: string;
|
|
1669
|
+
} | {
|
|
1670
|
+
kind: "PasswordProtectedKey";
|
|
1671
|
+
credentialAssertion: {
|
|
1672
|
+
credId: string;
|
|
1673
|
+
clientData: string;
|
|
1674
|
+
signature: string;
|
|
1675
|
+
algorithm?: string | undefined;
|
|
1676
|
+
};
|
|
1570
1677
|
}) | undefined;
|
|
1571
1678
|
};
|
|
1572
1679
|
export type LoginResponse = {
|
|
@@ -1608,6 +1715,14 @@ export type RecoverBody = {
|
|
|
1608
1715
|
credentialInfo: {
|
|
1609
1716
|
password: string;
|
|
1610
1717
|
};
|
|
1718
|
+
} | {
|
|
1719
|
+
credentialKind: "PasswordProtectedKey";
|
|
1720
|
+
credentialInfo: {
|
|
1721
|
+
credId: string;
|
|
1722
|
+
clientData: string;
|
|
1723
|
+
attestationData: string;
|
|
1724
|
+
};
|
|
1725
|
+
encryptedPrivateKey: string;
|
|
1611
1726
|
};
|
|
1612
1727
|
secondFactorCredential?: ({
|
|
1613
1728
|
credentialKind: "Fido2";
|
|
@@ -1628,6 +1743,14 @@ export type RecoverBody = {
|
|
|
1628
1743
|
credentialInfo: {
|
|
1629
1744
|
otpCode: string;
|
|
1630
1745
|
};
|
|
1746
|
+
} | {
|
|
1747
|
+
credentialKind: "PasswordProtectedKey";
|
|
1748
|
+
credentialInfo: {
|
|
1749
|
+
credId: string;
|
|
1750
|
+
clientData: string;
|
|
1751
|
+
attestationData: string;
|
|
1752
|
+
};
|
|
1753
|
+
encryptedPrivateKey: string;
|
|
1631
1754
|
}) | undefined;
|
|
1632
1755
|
recoveryCredential?: {
|
|
1633
1756
|
credentialKind: "RecoveryKey";
|
|
@@ -1643,7 +1766,7 @@ export type RecoverBody = {
|
|
|
1643
1766
|
export type RecoverResponse = {
|
|
1644
1767
|
credential: {
|
|
1645
1768
|
uuid: string;
|
|
1646
|
-
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey";
|
|
1769
|
+
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey";
|
|
1647
1770
|
name: string;
|
|
1648
1771
|
};
|
|
1649
1772
|
user: {
|
|
@@ -1673,8 +1796,8 @@ export type RecreateDelegatedRegistrationChallengeResponse = {
|
|
|
1673
1796
|
name: string;
|
|
1674
1797
|
};
|
|
1675
1798
|
supportedCredentialKinds: {
|
|
1676
|
-
firstFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey")[];
|
|
1677
|
-
secondFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey")[];
|
|
1799
|
+
firstFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey")[];
|
|
1800
|
+
secondFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey")[];
|
|
1678
1801
|
};
|
|
1679
1802
|
authenticatorSelection: {
|
|
1680
1803
|
authenticatorAttachment?: ("platform" | "cross-platform") | undefined;
|
|
@@ -1717,6 +1840,14 @@ export type RegisterBody = {
|
|
|
1717
1840
|
credentialInfo: {
|
|
1718
1841
|
password: string;
|
|
1719
1842
|
};
|
|
1843
|
+
} | {
|
|
1844
|
+
credentialKind: "PasswordProtectedKey";
|
|
1845
|
+
credentialInfo: {
|
|
1846
|
+
credId: string;
|
|
1847
|
+
clientData: string;
|
|
1848
|
+
attestationData: string;
|
|
1849
|
+
};
|
|
1850
|
+
encryptedPrivateKey: string;
|
|
1720
1851
|
};
|
|
1721
1852
|
secondFactorCredential?: ({
|
|
1722
1853
|
credentialKind: "Fido2";
|
|
@@ -1737,6 +1868,14 @@ export type RegisterBody = {
|
|
|
1737
1868
|
credentialInfo: {
|
|
1738
1869
|
otpCode: string;
|
|
1739
1870
|
};
|
|
1871
|
+
} | {
|
|
1872
|
+
credentialKind: "PasswordProtectedKey";
|
|
1873
|
+
credentialInfo: {
|
|
1874
|
+
credId: string;
|
|
1875
|
+
clientData: string;
|
|
1876
|
+
attestationData: string;
|
|
1877
|
+
};
|
|
1878
|
+
encryptedPrivateKey: string;
|
|
1740
1879
|
}) | undefined;
|
|
1741
1880
|
recoveryCredential?: {
|
|
1742
1881
|
credentialKind: "RecoveryKey";
|
|
@@ -1751,7 +1890,7 @@ export type RegisterBody = {
|
|
|
1751
1890
|
export type RegisterResponse = {
|
|
1752
1891
|
credential: {
|
|
1753
1892
|
uuid: string;
|
|
1754
|
-
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey";
|
|
1893
|
+
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey";
|
|
1755
1894
|
name: string;
|
|
1756
1895
|
};
|
|
1757
1896
|
user: {
|
|
@@ -1783,6 +1922,14 @@ export type RegisterEndUserBody = {
|
|
|
1783
1922
|
credentialInfo: {
|
|
1784
1923
|
password: string;
|
|
1785
1924
|
};
|
|
1925
|
+
} | {
|
|
1926
|
+
credentialKind: "PasswordProtectedKey";
|
|
1927
|
+
credentialInfo: {
|
|
1928
|
+
credId: string;
|
|
1929
|
+
clientData: string;
|
|
1930
|
+
attestationData: string;
|
|
1931
|
+
};
|
|
1932
|
+
encryptedPrivateKey: string;
|
|
1786
1933
|
};
|
|
1787
1934
|
secondFactorCredential?: ({
|
|
1788
1935
|
credentialKind: "Fido2";
|
|
@@ -1803,6 +1950,14 @@ export type RegisterEndUserBody = {
|
|
|
1803
1950
|
credentialInfo: {
|
|
1804
1951
|
otpCode: string;
|
|
1805
1952
|
};
|
|
1953
|
+
} | {
|
|
1954
|
+
credentialKind: "PasswordProtectedKey";
|
|
1955
|
+
credentialInfo: {
|
|
1956
|
+
credId: string;
|
|
1957
|
+
clientData: string;
|
|
1958
|
+
attestationData: string;
|
|
1959
|
+
};
|
|
1960
|
+
encryptedPrivateKey: string;
|
|
1806
1961
|
}) | undefined;
|
|
1807
1962
|
recoveryCredential?: {
|
|
1808
1963
|
credentialKind: "RecoveryKey";
|
|
@@ -1814,14 +1969,14 @@ export type RegisterEndUserBody = {
|
|
|
1814
1969
|
encryptedPrivateKey?: string | undefined;
|
|
1815
1970
|
} | undefined;
|
|
1816
1971
|
wallets: {
|
|
1817
|
-
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
1972
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
1818
1973
|
name?: string | undefined;
|
|
1819
1974
|
}[];
|
|
1820
1975
|
};
|
|
1821
1976
|
export type RegisterEndUserResponse = {
|
|
1822
1977
|
credential: {
|
|
1823
1978
|
uuid: string;
|
|
1824
|
-
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey";
|
|
1979
|
+
kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey";
|
|
1825
1980
|
name: string;
|
|
1826
1981
|
};
|
|
1827
1982
|
user: {
|
|
@@ -1834,7 +1989,7 @@ export type RegisterEndUserResponse = {
|
|
|
1834
1989
|
};
|
|
1835
1990
|
wallets: {
|
|
1836
1991
|
id: string;
|
|
1837
|
-
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
1992
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "Ton" | "TonTestnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
1838
1993
|
address?: string | undefined;
|
|
1839
1994
|
signingKey: {
|
|
1840
1995
|
scheme: "ECDSA" | "EdDSA";
|
|
@@ -1865,6 +2020,16 @@ export type ResendRegistrationCodeResponse = {
|
|
|
1865
2020
|
export type ResendRegistrationCodeRequest = {
|
|
1866
2021
|
body: ResendRegistrationCodeBody;
|
|
1867
2022
|
};
|
|
2023
|
+
export type SendLoginCodeBody = {
|
|
2024
|
+
username: string;
|
|
2025
|
+
orgId: string;
|
|
2026
|
+
};
|
|
2027
|
+
export type SendLoginCodeResponse = {
|
|
2028
|
+
message: string;
|
|
2029
|
+
};
|
|
2030
|
+
export type SendLoginCodeRequest = {
|
|
2031
|
+
body: SendLoginCodeBody;
|
|
2032
|
+
};
|
|
1868
2033
|
export type SendRecoveryCodeBody = {
|
|
1869
2034
|
username: string;
|
|
1870
2035
|
orgId: string;
|
|
@@ -1968,12 +2133,12 @@ export type UpdateServiceAccountParams = {
|
|
|
1968
2133
|
export type UpdateServiceAccountResponse = {
|
|
1969
2134
|
userInfo: {
|
|
1970
2135
|
username: string;
|
|
2136
|
+
name: string;
|
|
1971
2137
|
userId: string;
|
|
1972
2138
|
kind: "EndUser" | "CustomerEmployee" | "DfnsStaff";
|
|
1973
2139
|
credentialUuid: string;
|
|
1974
2140
|
orgId: string;
|
|
1975
2141
|
permissions?: string[] | undefined;
|
|
1976
|
-
scopes?: string[] | undefined;
|
|
1977
2142
|
isActive: boolean;
|
|
1978
2143
|
isServiceAccount: boolean;
|
|
1979
2144
|
isRegistered: boolean;
|
|
@@ -2007,31 +2172,3 @@ export type UpdateServiceAccountResponse = {
|
|
|
2007
2172
|
export type UpdateServiceAccountRequest = UpdateServiceAccountParams & {
|
|
2008
2173
|
body: UpdateServiceAccountBody;
|
|
2009
2174
|
};
|
|
2010
|
-
export type UpdateUserBody = {
|
|
2011
|
-
externalId?: string | undefined;
|
|
2012
|
-
publicKey?: string | undefined;
|
|
2013
|
-
};
|
|
2014
|
-
export type UpdateUserParams = {
|
|
2015
|
-
userId: string;
|
|
2016
|
-
};
|
|
2017
|
-
export type UpdateUserResponse = {
|
|
2018
|
-
username: string;
|
|
2019
|
-
userId: string;
|
|
2020
|
-
kind: "EndUser" | "CustomerEmployee" | "DfnsStaff";
|
|
2021
|
-
credentialUuid: string;
|
|
2022
|
-
orgId: string;
|
|
2023
|
-
permissions?: string[] | undefined;
|
|
2024
|
-
scopes?: string[] | undefined;
|
|
2025
|
-
isActive: boolean;
|
|
2026
|
-
isServiceAccount: boolean;
|
|
2027
|
-
isRegistered: boolean;
|
|
2028
|
-
permissionAssignments: {
|
|
2029
|
-
permissionName: string;
|
|
2030
|
-
permissionId: string;
|
|
2031
|
-
assignmentId: string;
|
|
2032
|
-
operations?: string[] | undefined;
|
|
2033
|
-
}[];
|
|
2034
|
-
};
|
|
2035
|
-
export type UpdateUserRequest = UpdateUserParams & {
|
|
2036
|
-
body: UpdateUserBody;
|
|
2037
|
-
};
|