@dfns/sdk 0.6.12 → 0.7.1-alpha.1

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.
@@ -1,41 +1,3 @@
1
- export type ActivateApplicationParams = {
2
- appId: string;
3
- };
4
- export type ActivateApplicationResponse = {
5
- appId: string;
6
- kind: "ServerSideApplication" | "ClientSideApplication";
7
- orgId: string;
8
- expectedRpId?: string | undefined;
9
- name: string;
10
- isActive: boolean;
11
- expectedOrigin?: string | undefined;
12
- permissionAssignments: {
13
- permissionName: string;
14
- permissionId: string;
15
- assignmentId: string;
16
- operations?: string[] | undefined;
17
- }[];
18
- accessTokens: {
19
- accessToken?: string | undefined;
20
- dateCreated: string;
21
- credId: string;
22
- isActive: boolean;
23
- kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
24
- linkedUserId: string;
25
- linkedAppId: string;
26
- name: string;
27
- orgId: string;
28
- permissionAssignments: {
29
- permissionName: string;
30
- permissionId: string;
31
- assignmentId: string;
32
- operations?: string[] | undefined;
33
- }[];
34
- publicKey: string;
35
- tokenId: string;
36
- }[];
37
- };
38
- export type ActivateApplicationRequest = ActivateApplicationParams;
39
1
  export type ActivateCredentialBody = {
40
2
  credentialUuid: string;
41
3
  };
@@ -133,44 +95,6 @@ export type ActivateUserResponse = {
133
95
  }[];
134
96
  };
135
97
  export type ActivateUserRequest = ActivateUserParams;
136
- export type ArchiveApplicationParams = {
137
- appId: string;
138
- };
139
- export type ArchiveApplicationResponse = {
140
- appId: string;
141
- kind: "ServerSideApplication" | "ClientSideApplication";
142
- orgId: string;
143
- expectedRpId?: string | undefined;
144
- name: string;
145
- isActive: boolean;
146
- expectedOrigin?: string | undefined;
147
- permissionAssignments: {
148
- permissionName: string;
149
- permissionId: string;
150
- assignmentId: string;
151
- operations?: string[] | undefined;
152
- }[];
153
- accessTokens: {
154
- accessToken?: string | undefined;
155
- dateCreated: string;
156
- credId: string;
157
- isActive: boolean;
158
- kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
159
- linkedUserId: string;
160
- linkedAppId: string;
161
- name: string;
162
- orgId: string;
163
- permissionAssignments: {
164
- permissionName: string;
165
- permissionId: string;
166
- assignmentId: string;
167
- operations?: string[] | undefined;
168
- }[];
169
- publicKey: string;
170
- tokenId: string;
171
- }[];
172
- };
173
- export type ArchiveApplicationRequest = ArchiveApplicationParams;
174
98
  export type ArchivePersonalAccessTokenParams = {
175
99
  tokenId: string;
176
100
  };
@@ -259,60 +183,6 @@ export type ArchiveUserResponse = {
259
183
  }[];
260
184
  };
261
185
  export type ArchiveUserRequest = ArchiveUserParams;
262
- export type CreateApplicationBody = {
263
- name: string;
264
- relyingPartyId?: string | undefined;
265
- origin?: string | undefined;
266
- permissionId?: string | undefined;
267
- externalId?: string | undefined;
268
- kind: "ClientSideApplication";
269
- } | {
270
- name: string;
271
- relyingPartyId?: string | undefined;
272
- origin?: string | undefined;
273
- permissionId?: string | undefined;
274
- externalId?: string | undefined;
275
- kind: "ServerSideApplication";
276
- publicKey: string;
277
- daysValid?: number | undefined;
278
- };
279
- export type CreateApplicationResponse = {
280
- appId: string;
281
- kind: "ServerSideApplication" | "ClientSideApplication";
282
- orgId: string;
283
- expectedRpId?: string | undefined;
284
- name: string;
285
- isActive: boolean;
286
- expectedOrigin?: string | undefined;
287
- permissionAssignments: {
288
- permissionName: string;
289
- permissionId: string;
290
- assignmentId: string;
291
- operations?: string[] | undefined;
292
- }[];
293
- accessTokens: {
294
- accessToken?: string | undefined;
295
- dateCreated: string;
296
- credId: string;
297
- isActive: boolean;
298
- kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
299
- linkedUserId: string;
300
- linkedAppId: string;
301
- name: string;
302
- orgId: string;
303
- permissionAssignments: {
304
- permissionName: string;
305
- permissionId: string;
306
- assignmentId: string;
307
- operations?: string[] | undefined;
308
- }[];
309
- publicKey: string;
310
- tokenId: string;
311
- }[];
312
- };
313
- export type CreateApplicationRequest = {
314
- body: CreateApplicationBody;
315
- };
316
186
  export type CreateCredentialBody = {
317
187
  credentialKind: "Fido2";
318
188
  credentialInfo: {
@@ -757,7 +627,7 @@ export type CreateDelegatedRecoveryChallengeRequest = {
757
627
  };
758
628
  export type CreateDelegatedRegistrationChallengeBody = {
759
629
  email: string;
760
- kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
630
+ kind: "EndUser";
761
631
  externalId?: string | undefined;
762
632
  };
763
633
  export type CreateDelegatedRegistrationChallengeResponse = {
@@ -1002,6 +872,7 @@ export type CreateServiceAccountRequest = {
1002
872
  body: CreateServiceAccountBody;
1003
873
  };
1004
874
  export type CreateSocialRegistrationChallengeBody = {
875
+ orgId?: string | undefined;
1005
876
  socialLoginProviderKind: "Oidc";
1006
877
  idToken: string;
1007
878
  };
@@ -1177,44 +1048,6 @@ export type CreateUserActionSignatureResponse = {
1177
1048
  export type CreateUserActionSignatureRequest = {
1178
1049
  body: CreateUserActionSignatureBody;
1179
1050
  };
1180
- export type DeactivateApplicationParams = {
1181
- appId: string;
1182
- };
1183
- export type DeactivateApplicationResponse = {
1184
- appId: string;
1185
- kind: "ServerSideApplication" | "ClientSideApplication";
1186
- orgId: string;
1187
- expectedRpId?: string | undefined;
1188
- name: string;
1189
- isActive: boolean;
1190
- expectedOrigin?: string | undefined;
1191
- permissionAssignments: {
1192
- permissionName: string;
1193
- permissionId: string;
1194
- assignmentId: string;
1195
- operations?: string[] | undefined;
1196
- }[];
1197
- accessTokens: {
1198
- accessToken?: string | undefined;
1199
- dateCreated: string;
1200
- credId: string;
1201
- isActive: boolean;
1202
- kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
1203
- linkedUserId: string;
1204
- linkedAppId: string;
1205
- name: string;
1206
- orgId: string;
1207
- permissionAssignments: {
1208
- permissionName: string;
1209
- permissionId: string;
1210
- assignmentId: string;
1211
- operations?: string[] | undefined;
1212
- }[];
1213
- publicKey: string;
1214
- tokenId: string;
1215
- }[];
1216
- };
1217
- export type DeactivateApplicationRequest = DeactivateApplicationParams;
1218
1051
  export type DeactivateCredentialBody = {
1219
1052
  credentialUuid: string;
1220
1053
  };
@@ -1767,47 +1600,6 @@ export type RecoverResponse = {
1767
1600
  export type RecoverRequest = {
1768
1601
  body: RecoverBody;
1769
1602
  };
1770
- export type RecreateDelegatedRegistrationChallengeBody = {
1771
- email: string;
1772
- kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
1773
- externalId?: string | undefined;
1774
- };
1775
- export type RecreateDelegatedRegistrationChallengeResponse = {
1776
- user: {
1777
- id: string;
1778
- displayName: string;
1779
- name: string;
1780
- };
1781
- temporaryAuthenticationToken: string;
1782
- challenge: string;
1783
- rp?: {
1784
- id: string;
1785
- name: string;
1786
- } | undefined;
1787
- supportedCredentialKinds: {
1788
- firstFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey")[];
1789
- secondFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey")[];
1790
- };
1791
- authenticatorSelection: {
1792
- authenticatorAttachment?: ("platform" | "cross-platform") | undefined;
1793
- residentKey: "required" | "preferred" | "discouraged";
1794
- requireResidentKey: boolean;
1795
- userVerification: "required" | "preferred" | "discouraged";
1796
- };
1797
- attestation: "none" | "indirect" | "direct" | "enterprise";
1798
- pubKeyCredParams: {
1799
- type: "public-key";
1800
- alg: number;
1801
- }[];
1802
- excludeCredentials: {
1803
- type: "public-key";
1804
- id: string;
1805
- }[];
1806
- otpUrl: string;
1807
- };
1808
- export type RecreateDelegatedRegistrationChallengeRequest = {
1809
- body: RecreateDelegatedRegistrationChallengeBody;
1810
- };
1811
1603
  export type RegisterBody = {
1812
1604
  firstFactorCredential: {
1813
1605
  credentialKind: "Fido2";
@@ -2048,6 +1840,7 @@ export type SendRecoveryCodeRequest = {
2048
1840
  body: SendRecoveryCodeBody;
2049
1841
  };
2050
1842
  export type SocialLoginBody = {
1843
+ orgId?: string | undefined;
2051
1844
  socialLoginProviderKind: "Oidc";
2052
1845
  idToken: string;
2053
1846
  };
@@ -2057,50 +1850,6 @@ export type SocialLoginResponse = {
2057
1850
  export type SocialLoginRequest = {
2058
1851
  body: SocialLoginBody;
2059
1852
  };
2060
- export type UpdateApplicationBody = {
2061
- externalId?: string | undefined;
2062
- name?: string | undefined;
2063
- };
2064
- export type UpdateApplicationParams = {
2065
- appId: string;
2066
- };
2067
- export type UpdateApplicationResponse = {
2068
- appId: string;
2069
- kind: "ServerSideApplication" | "ClientSideApplication";
2070
- orgId: string;
2071
- expectedRpId?: string | undefined;
2072
- name: string;
2073
- isActive: boolean;
2074
- expectedOrigin?: string | undefined;
2075
- permissionAssignments: {
2076
- permissionName: string;
2077
- permissionId: string;
2078
- assignmentId: string;
2079
- operations?: string[] | undefined;
2080
- }[];
2081
- accessTokens: {
2082
- accessToken?: string | undefined;
2083
- dateCreated: string;
2084
- credId: string;
2085
- isActive: boolean;
2086
- kind: "Pat" | "ServiceAccount" | "Token" | "Code" | "Recovery" | "Temp" | "Application";
2087
- linkedUserId: string;
2088
- linkedAppId: string;
2089
- name: string;
2090
- orgId: string;
2091
- permissionAssignments: {
2092
- permissionName: string;
2093
- permissionId: string;
2094
- assignmentId: string;
2095
- operations?: string[] | undefined;
2096
- }[];
2097
- publicKey: string;
2098
- tokenId: string;
2099
- }[];
2100
- };
2101
- export type UpdateApplicationRequest = UpdateApplicationParams & {
2102
- body: UpdateApplicationBody;
2103
- };
2104
1853
  export type UpdatePersonalAccessTokenBody = {
2105
1854
  name?: string | undefined;
2106
1855
  externalId?: string | undefined;