@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.
Files changed (102) hide show
  1. package/dfnsApiClient.d.ts +0 -6
  2. package/dfnsApiClient.js +0 -12
  3. package/dfnsDelegatedApiClient.d.ts +0 -6
  4. package/dfnsDelegatedApiClient.js +0 -12
  5. package/generated/auth/client.d.ts +2 -0
  6. package/generated/auth/client.js +24 -0
  7. package/generated/auth/delegatedClient.d.ts +2 -0
  8. package/generated/auth/delegatedClient.js +24 -0
  9. package/generated/auth/types.d.ts +66 -12
  10. package/generated/permissions/types.d.ts +2 -2
  11. package/generated/policies/types.d.ts +15 -0
  12. package/generated/wallets/types.d.ts +105 -18
  13. package/package.json +1 -1
  14. package/store.d.ts +3 -32
  15. package/codegen/Assets/AssetsClient.d.ts +0 -13
  16. package/codegen/Assets/AssetsClient.js +0 -93
  17. package/codegen/Assets/DelegatedAssetsClient.d.ts +0 -16
  18. package/codegen/Assets/DelegatedAssetsClient.js +0 -124
  19. package/codegen/Assets/index.d.ts +0 -3
  20. package/codegen/Assets/index.js +0 -19
  21. package/codegen/Assets/types.d.ts +0 -37
  22. package/codegen/Assets/types.js +0 -2
  23. package/codegen/Auth/AuthClient.d.ts +0 -50
  24. package/codegen/Auth/AuthClient.js +0 -518
  25. package/codegen/Auth/DelegatedAuthClient.d.ts +0 -78
  26. package/codegen/Auth/DelegatedAuthClient.js +0 -936
  27. package/codegen/Auth/index.d.ts +0 -3
  28. package/codegen/Auth/index.js +0 -19
  29. package/codegen/Auth/types.d.ts +0 -177
  30. package/codegen/Auth/types.js +0 -2
  31. package/codegen/Callbacks/CallbacksClient.d.ts +0 -12
  32. package/codegen/Callbacks/CallbacksClient.js +0 -78
  33. package/codegen/Callbacks/DelegatedCallbacksClient.d.ts +0 -15
  34. package/codegen/Callbacks/DelegatedCallbacksClient.js +0 -110
  35. package/codegen/Callbacks/index.d.ts +0 -3
  36. package/codegen/Callbacks/index.js +0 -19
  37. package/codegen/Callbacks/types.d.ts +0 -23
  38. package/codegen/Callbacks/types.js +0 -2
  39. package/codegen/PublicKeys/DelegatedPublicKeysClient.d.ts +0 -21
  40. package/codegen/PublicKeys/DelegatedPublicKeysClient.js +0 -189
  41. package/codegen/PublicKeys/PublicKeysClient.d.ts +0 -16
  42. package/codegen/PublicKeys/PublicKeysClient.js +0 -128
  43. package/codegen/PublicKeys/index.d.ts +0 -3
  44. package/codegen/PublicKeys/index.js +0 -19
  45. package/codegen/PublicKeys/types.d.ts +0 -51
  46. package/codegen/PublicKeys/types.js +0 -2
  47. package/codegen/Wallets/DelegatedWalletsClient.d.ts +0 -32
  48. package/codegen/Wallets/DelegatedWalletsClient.js +0 -325
  49. package/codegen/Wallets/WalletsClient.d.ts +0 -24
  50. package/codegen/Wallets/WalletsClient.js +0 -219
  51. package/codegen/Wallets/index.d.ts +0 -3
  52. package/codegen/Wallets/index.js +0 -19
  53. package/codegen/Wallets/types.d.ts +0 -101
  54. package/codegen/Wallets/types.js +0 -2
  55. package/codegen/datamodel/Assets/errors.d.ts +0 -11
  56. package/codegen/datamodel/Assets/errors.js +0 -17
  57. package/codegen/datamodel/Assets/index.d.ts +0 -3
  58. package/codegen/datamodel/Assets/index.js +0 -19
  59. package/codegen/datamodel/Assets/responses.d.ts +0 -47
  60. package/codegen/datamodel/Assets/responses.js +0 -2
  61. package/codegen/datamodel/Assets/types.d.ts +0 -219
  62. package/codegen/datamodel/Assets/types.js +0 -75
  63. package/codegen/datamodel/Auth/errors.d.ts +0 -0
  64. package/codegen/datamodel/Auth/errors.js +0 -1
  65. package/codegen/datamodel/Auth/index.d.ts +0 -2
  66. package/codegen/datamodel/Auth/index.js +0 -18
  67. package/codegen/datamodel/Auth/responses.d.ts +0 -358
  68. package/codegen/datamodel/Auth/responses.js +0 -2
  69. package/codegen/datamodel/Auth/types.d.ts +0 -933
  70. package/codegen/datamodel/Auth/types.js +0 -149
  71. package/codegen/datamodel/Callbacks/errors.d.ts +0 -0
  72. package/codegen/datamodel/Callbacks/errors.js +0 -1
  73. package/codegen/datamodel/Callbacks/index.d.ts +0 -2
  74. package/codegen/datamodel/Callbacks/index.js +0 -18
  75. package/codegen/datamodel/Callbacks/responses.d.ts +0 -36
  76. package/codegen/datamodel/Callbacks/responses.js +0 -2
  77. package/codegen/datamodel/Callbacks/types.d.ts +0 -43
  78. package/codegen/datamodel/Callbacks/types.js +0 -39
  79. package/codegen/datamodel/Foundations/errors.d.ts +0 -131
  80. package/codegen/datamodel/Foundations/errors.js +0 -182
  81. package/codegen/datamodel/Foundations/index.d.ts +0 -2
  82. package/codegen/datamodel/Foundations/index.js +0 -18
  83. package/codegen/datamodel/Foundations/responses.d.ts +0 -0
  84. package/codegen/datamodel/Foundations/responses.js +0 -1
  85. package/codegen/datamodel/Foundations/types.d.ts +0 -9795
  86. package/codegen/datamodel/Foundations/types.js +0 -57763
  87. package/codegen/datamodel/PublicKeys/errors.d.ts +0 -0
  88. package/codegen/datamodel/PublicKeys/errors.js +0 -1
  89. package/codegen/datamodel/PublicKeys/index.d.ts +0 -2
  90. package/codegen/datamodel/PublicKeys/index.js +0 -18
  91. package/codegen/datamodel/PublicKeys/responses.d.ts +0 -56
  92. package/codegen/datamodel/PublicKeys/responses.js +0 -2
  93. package/codegen/datamodel/PublicKeys/types.d.ts +0 -223
  94. package/codegen/datamodel/PublicKeys/types.js +0 -59
  95. package/codegen/datamodel/Wallets/errors.d.ts +0 -0
  96. package/codegen/datamodel/Wallets/errors.js +0 -1
  97. package/codegen/datamodel/Wallets/index.d.ts +0 -2
  98. package/codegen/datamodel/Wallets/index.js +0 -18
  99. package/codegen/datamodel/Wallets/responses.d.ts +0 -92
  100. package/codegen/datamodel/Wallets/responses.js +0 -2
  101. package/codegen/datamodel/Wallets/types.d.ts +0 -790
  102. package/codegen/datamodel/Wallets/types.js +0 -293
@@ -1,8 +1,5 @@
1
1
  import { DfnsBaseApiOptions } from './baseAuthApi';
2
- import { AssetsClient } from './codegen/Assets';
3
2
  import { AuthClient } from './generated/auth';
4
- import { CallbacksClient } from './codegen/Callbacks';
5
- import { PublicKeysClient } from './codegen/PublicKeys';
6
3
  import { NetworksClient } from './generated/networks';
7
4
  import { PermissionsClient } from './generated/permissions';
8
5
  import { PoliciesClient } from './generated/policies';
@@ -17,13 +14,10 @@ export type DfnsApiClientOptions = DfnsBaseApiOptions & {
17
14
  export declare class DfnsApiClient {
18
15
  private apiOptions;
19
16
  constructor(apiOptions: DfnsApiClientOptions);
20
- get assets(): AssetsClient;
21
17
  get auth(): AuthClient;
22
- get callbacks(): CallbacksClient;
23
18
  get networks(): NetworksClient;
24
19
  get permissions(): PermissionsClient;
25
20
  get policies(): PoliciesClient;
26
- get publicKeys(): PublicKeysClient;
27
21
  get wallets(): WalletsClient;
28
22
  get webhooks(): WebhooksClient;
29
23
  get signers(): SignersClient;
package/dfnsApiClient.js CHANGED
@@ -1,10 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DfnsApiClient = void 0;
4
- const Assets_1 = require("./codegen/Assets");
5
4
  const auth_1 = require("./generated/auth");
6
- const Callbacks_1 = require("./codegen/Callbacks");
7
- const PublicKeys_1 = require("./codegen/PublicKeys");
8
5
  const networks_1 = require("./generated/networks");
9
6
  const permissions_1 = require("./generated/permissions");
10
7
  const policies_1 = require("./generated/policies");
@@ -15,15 +12,9 @@ class DfnsApiClient {
15
12
  constructor(apiOptions) {
16
13
  this.apiOptions = apiOptions;
17
14
  }
18
- get assets() {
19
- return new Assets_1.AssetsClient(this.apiOptions);
20
- }
21
15
  get auth() {
22
16
  return new auth_1.AuthClient(this.apiOptions);
23
17
  }
24
- get callbacks() {
25
- return new Callbacks_1.CallbacksClient(this.apiOptions);
26
- }
27
18
  get networks() {
28
19
  return new networks_1.NetworksClient(this.apiOptions);
29
20
  }
@@ -33,9 +24,6 @@ class DfnsApiClient {
33
24
  get policies() {
34
25
  return new policies_1.PoliciesClient(this.apiOptions);
35
26
  }
36
- get publicKeys() {
37
- return new PublicKeys_1.PublicKeysClient(this.apiOptions);
38
- }
39
27
  get wallets() {
40
28
  return new wallets_1.WalletsClient(this.apiOptions);
41
29
  }
@@ -1,8 +1,5 @@
1
1
  import { DfnsBaseApiOptions } from './baseAuthApi';
2
- import { DelegatedAssetsClient } from './codegen/Assets';
3
2
  import { DelegatedAuthClient } from './generated/auth';
4
- import { DelegatedCallbacksClient } from './codegen/Callbacks';
5
- import { DelegatedPublicKeysClient } from './codegen/PublicKeys';
6
3
  import { DelegatedNetworksClient } from './generated/networks';
7
4
  import { DelegatedPermissionsClient } from './generated/permissions';
8
5
  import { DelegatedPoliciesClient } from './generated/policies';
@@ -13,13 +10,10 @@ export type DfnsDelegatedApiClientOptions = DfnsBaseApiOptions;
13
10
  export declare class DfnsDelegatedApiClient {
14
11
  private apiOptions;
15
12
  constructor(apiOptions: DfnsDelegatedApiClientOptions);
16
- get assets(): DelegatedAssetsClient;
17
13
  get auth(): DelegatedAuthClient;
18
- get callbacks(): DelegatedCallbacksClient;
19
14
  get networks(): DelegatedNetworksClient;
20
15
  get permissions(): DelegatedPermissionsClient;
21
16
  get policies(): DelegatedPoliciesClient;
22
- get publicKeys(): DelegatedPublicKeysClient;
23
17
  get wallets(): DelegatedWalletsClient;
24
18
  get webhooks(): DelegatedWebhooksClient;
25
19
  get signers(): DelegatedSignersClient;
@@ -1,10 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DfnsDelegatedApiClient = void 0;
4
- const Assets_1 = require("./codegen/Assets");
5
4
  const auth_1 = require("./generated/auth");
6
- const Callbacks_1 = require("./codegen/Callbacks");
7
- const PublicKeys_1 = require("./codegen/PublicKeys");
8
5
  const networks_1 = require("./generated/networks");
9
6
  const permissions_1 = require("./generated/permissions");
10
7
  const policies_1 = require("./generated/policies");
@@ -15,15 +12,9 @@ class DfnsDelegatedApiClient {
15
12
  constructor(apiOptions) {
16
13
  this.apiOptions = apiOptions;
17
14
  }
18
- get assets() {
19
- return new Assets_1.DelegatedAssetsClient(this.apiOptions);
20
- }
21
15
  get auth() {
22
16
  return new auth_1.DelegatedAuthClient(this.apiOptions);
23
17
  }
24
- get callbacks() {
25
- return new Callbacks_1.DelegatedCallbacksClient(this.apiOptions);
26
- }
27
18
  get networks() {
28
19
  return new networks_1.DelegatedNetworksClient(this.apiOptions);
29
20
  }
@@ -33,9 +24,6 @@ class DfnsDelegatedApiClient {
33
24
  get policies() {
34
25
  return new policies_1.DelegatedPoliciesClient(this.apiOptions);
35
26
  }
36
- get publicKeys() {
37
- return new PublicKeys_1.DelegatedPublicKeysClient(this.apiOptions);
38
- }
39
27
  get wallets() {
40
28
  return new wallets_1.DelegatedWalletsClient(this.apiOptions);
41
29
  }
@@ -33,6 +33,7 @@ export declare class AuthClient {
33
33
  createRecoveryChallenge(request: T.CreateRecoveryChallengeRequest): Promise<T.CreateRecoveryChallengeResponse>;
34
34
  createRegistrationChallenge(request: T.CreateRegistrationChallengeRequest): Promise<T.CreateRegistrationChallengeResponse>;
35
35
  createServiceAccount(request: T.CreateServiceAccountRequest): Promise<T.CreateServiceAccountResponse>;
36
+ createSocialRegistrationChallenge(request: T.CreateSocialRegistrationChallengeRequest): Promise<T.CreateSocialRegistrationChallengeResponse>;
36
37
  createUser(request: T.CreateUserRequest): Promise<T.CreateUserResponse>;
37
38
  createUserActionChallenge(request: T.CreateUserActionChallengeRequest): Promise<T.CreateUserActionChallengeResponse>;
38
39
  /** @deprecated, use createUserActionChallenge instead */
@@ -72,6 +73,7 @@ export declare class AuthClient {
72
73
  registerEndUser(request: T.RegisterEndUserRequest): Promise<T.RegisterEndUserResponse>;
73
74
  resendRegistrationCode(request: T.ResendRegistrationCodeRequest): Promise<T.ResendRegistrationCodeResponse>;
74
75
  sendRecoveryCode(request: T.SendRecoveryCodeRequest): Promise<T.SendRecoveryCodeResponse>;
76
+ socialLogin(request: T.SocialLoginRequest): Promise<T.SocialLoginResponse>;
75
77
  updateApplication(request: T.UpdateApplicationRequest): Promise<T.UpdateApplicationResponse>;
76
78
  updatePersonalAccessToken(request: T.UpdatePersonalAccessTokenRequest): Promise<T.UpdatePersonalAccessTokenResponse>;
77
79
  updateServiceAccount(request: T.UpdateServiceAccountRequest): Promise<T.UpdateServiceAccountResponse>;
@@ -287,6 +287,18 @@ class AuthClient {
287
287
  });
288
288
  return response.json();
289
289
  }
290
+ async createSocialRegistrationChallenge(request) {
291
+ const path = (0, url_1.buildPathAndQuery)('/auth/registration/social', {
292
+ path: request ?? {},
293
+ query: {},
294
+ });
295
+ const response = await (0, fetch_1.simpleFetch)(path, {
296
+ method: 'POST',
297
+ body: request.body,
298
+ apiOptions: this.apiOptions,
299
+ });
300
+ return response.json();
301
+ }
290
302
  async createUser(request) {
291
303
  const path = (0, url_1.buildPathAndQuery)('/auth/users', {
292
304
  path: request ?? {},
@@ -625,6 +637,18 @@ class AuthClient {
625
637
  });
626
638
  return response.json();
627
639
  }
640
+ async socialLogin(request) {
641
+ const path = (0, url_1.buildPathAndQuery)('/auth/login/social', {
642
+ path: request ?? {},
643
+ query: {},
644
+ });
645
+ const response = await (0, fetch_1.simpleFetch)(path, {
646
+ method: 'POST',
647
+ body: request.body,
648
+ apiOptions: this.apiOptions,
649
+ });
650
+ return response.json();
651
+ }
628
652
  async updateApplication(request) {
629
653
  const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId', {
630
654
  path: request ?? {},
@@ -44,6 +44,7 @@ export declare class DelegatedAuthClient {
44
44
  createRegistrationChallenge(request: T.CreateRegistrationChallengeRequest): Promise<T.CreateRegistrationChallengeResponse>;
45
45
  createServiceAccountInit(request: T.CreateServiceAccountRequest): Promise<UserActionChallengeResponse>;
46
46
  createServiceAccountComplete(request: T.CreateServiceAccountRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateServiceAccountResponse>;
47
+ createSocialRegistrationChallenge(request: T.CreateSocialRegistrationChallengeRequest): Promise<T.CreateSocialRegistrationChallengeResponse>;
47
48
  createUserInit(request: T.CreateUserRequest): Promise<UserActionChallengeResponse>;
48
49
  createUserComplete(request: T.CreateUserRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateUserResponse>;
49
50
  createUserActionChallenge(request: T.CreateUserActionChallengeRequest): Promise<T.CreateUserActionChallengeResponse>;
@@ -88,6 +89,7 @@ export declare class DelegatedAuthClient {
88
89
  resendRegistrationCodeInit(request: T.ResendRegistrationCodeRequest): Promise<UserActionChallengeResponse>;
89
90
  resendRegistrationCodeComplete(request: T.ResendRegistrationCodeRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ResendRegistrationCodeResponse>;
90
91
  sendRecoveryCode(request: T.SendRecoveryCodeRequest): Promise<T.SendRecoveryCodeResponse>;
92
+ socialLogin(request: T.SocialLoginRequest): Promise<T.SocialLoginResponse>;
91
93
  updateApplicationInit(request: T.UpdateApplicationRequest): Promise<UserActionChallengeResponse>;
92
94
  updateApplicationComplete(request: T.UpdateApplicationRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdateApplicationResponse>;
93
95
  updatePersonalAccessTokenInit(request: T.UpdatePersonalAccessTokenRequest): Promise<UserActionChallengeResponse>;
@@ -516,6 +516,18 @@ class DelegatedAuthClient {
516
516
  });
517
517
  return response.json();
518
518
  }
519
+ async createSocialRegistrationChallenge(request) {
520
+ const path = (0, url_1.buildPathAndQuery)('/auth/registration/social', {
521
+ path: request ?? {},
522
+ query: {},
523
+ });
524
+ const response = await (0, fetch_1.simpleFetch)(path, {
525
+ method: 'POST',
526
+ body: request.body,
527
+ apiOptions: this.apiOptions,
528
+ });
529
+ return response.json();
530
+ }
519
531
  async createUserInit(request) {
520
532
  const path = (0, url_1.buildPathAndQuery)('/auth/users', {
521
533
  path: request ?? {},
@@ -981,6 +993,18 @@ class DelegatedAuthClient {
981
993
  });
982
994
  return response.json();
983
995
  }
996
+ async socialLogin(request) {
997
+ const path = (0, url_1.buildPathAndQuery)('/auth/login/social', {
998
+ path: request ?? {},
999
+ query: {},
1000
+ });
1001
+ const response = await (0, fetch_1.simpleFetch)(path, {
1002
+ method: 'POST',
1003
+ body: request.body,
1004
+ apiOptions: this.apiOptions,
1005
+ });
1006
+ return response.json();
1007
+ }
984
1008
  async updateApplicationInit(request) {
985
1009
  const path = (0, url_1.buildPathAndQuery)('/auth/apps/:appId', {
986
1010
  path: request ?? {},
@@ -423,7 +423,7 @@ export type CreateCredentialChallengeResponse = {
423
423
  };
424
424
  attestation: "none" | "indirect" | "direct" | "enterprise";
425
425
  pubKeyCredParams: {
426
- type: string;
426
+ type: "public-key";
427
427
  alg: number;
428
428
  }[];
429
429
  excludeCredentials: {
@@ -448,7 +448,7 @@ export type CreateCredentialChallengeResponse = {
448
448
  };
449
449
  attestation: "none" | "indirect" | "direct" | "enterprise";
450
450
  pubKeyCredParams: {
451
- type: string;
451
+ type: "public-key";
452
452
  alg: number;
453
453
  }[];
454
454
  /** @deprecated use challengeIdentifier instead */
@@ -468,7 +468,7 @@ export type CreateCredentialChallengeResponse = {
468
468
  };
469
469
  attestation: "none" | "indirect" | "direct" | "enterprise";
470
470
  pubKeyCredParams: {
471
- type: string;
471
+ type: "public-key";
472
472
  alg: number;
473
473
  }[];
474
474
  /** @deprecated use challengeIdentifier instead */
@@ -531,7 +531,7 @@ export type CreateCredentialChallengeWithCodeResponse = {
531
531
  };
532
532
  attestation: "none" | "indirect" | "direct" | "enterprise";
533
533
  pubKeyCredParams: {
534
- type: string;
534
+ type: "public-key";
535
535
  alg: number;
536
536
  }[];
537
537
  excludeCredentials: {
@@ -556,7 +556,7 @@ export type CreateCredentialChallengeWithCodeResponse = {
556
556
  };
557
557
  attestation: "none" | "indirect" | "direct" | "enterprise";
558
558
  pubKeyCredParams: {
559
- type: string;
559
+ type: "public-key";
560
560
  alg: number;
561
561
  }[];
562
562
  /** @deprecated use challengeIdentifier instead */
@@ -576,7 +576,7 @@ export type CreateCredentialChallengeWithCodeResponse = {
576
576
  };
577
577
  attestation: "none" | "indirect" | "direct" | "enterprise";
578
578
  pubKeyCredParams: {
579
- type: string;
579
+ type: "public-key";
580
580
  alg: number;
581
581
  }[];
582
582
  /** @deprecated use challengeIdentifier instead */
@@ -681,7 +681,7 @@ export type CreateDelegatedRecoveryChallengeResponse = {
681
681
  };
682
682
  attestation: "none" | "indirect" | "direct" | "enterprise";
683
683
  pubKeyCredParams: {
684
- type: string;
684
+ type: "public-key";
685
685
  alg: number;
686
686
  }[];
687
687
  excludeCredentials: {
@@ -727,7 +727,7 @@ export type CreateDelegatedRegistrationChallengeResponse = {
727
727
  };
728
728
  attestation: "none" | "indirect" | "direct" | "enterprise";
729
729
  pubKeyCredParams: {
730
- type: string;
730
+ type: "public-key";
731
731
  alg: number;
732
732
  }[];
733
733
  excludeCredentials: {
@@ -835,7 +835,7 @@ export type CreateRecoveryChallengeResponse = {
835
835
  };
836
836
  attestation: "none" | "indirect" | "direct" | "enterprise";
837
837
  pubKeyCredParams: {
838
- type: string;
838
+ type: "public-key";
839
839
  alg: number;
840
840
  }[];
841
841
  excludeCredentials: {
@@ -881,7 +881,7 @@ export type CreateRegistrationChallengeResponse = {
881
881
  };
882
882
  attestation: "none" | "indirect" | "direct" | "enterprise";
883
883
  pubKeyCredParams: {
884
- type: string;
884
+ type: "public-key";
885
885
  alg: number;
886
886
  }[];
887
887
  excludeCredentials: {
@@ -943,6 +943,47 @@ export type CreateServiceAccountResponse = {
943
943
  export type CreateServiceAccountRequest = {
944
944
  body: CreateServiceAccountBody;
945
945
  };
946
+ export type CreateSocialRegistrationChallengeBody = {
947
+ socialLoginProviderKind: "Oidc";
948
+ idToken: string;
949
+ };
950
+ export type CreateSocialRegistrationChallengeResponse = {
951
+ user: {
952
+ id: string;
953
+ displayName: string;
954
+ name: string;
955
+ };
956
+ temporaryAuthenticationToken: string;
957
+ challenge: string;
958
+ rp: {
959
+ id: string;
960
+ name: string;
961
+ };
962
+ supportedCredentialKinds: {
963
+ firstFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey")[];
964
+ secondFactor: ("Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey")[];
965
+ };
966
+ authenticatorSelection: {
967
+ authenticatorAttachment?: ("platform" | "cross-platform") | undefined;
968
+ residentKey: "required" | "preferred" | "discouraged";
969
+ requireResidentKey: boolean;
970
+ userVerification: "required" | "preferred" | "discouraged";
971
+ };
972
+ attestation: "none" | "indirect" | "direct" | "enterprise";
973
+ pubKeyCredParams: {
974
+ type: "public-key";
975
+ alg: number;
976
+ }[];
977
+ excludeCredentials: {
978
+ type: "public-key";
979
+ id: string;
980
+ transports?: ("usb" | "nfc" | "ble" | "smart-card" | "hybrid" | "internal") | undefined;
981
+ }[];
982
+ otpUrl: string;
983
+ };
984
+ export type CreateSocialRegistrationChallengeRequest = {
985
+ body: CreateSocialRegistrationChallengeBody;
986
+ };
946
987
  export type CreateUserBody = {
947
988
  email: string;
948
989
  kind: "CustomerEmployee" | "DfnsStaff";
@@ -1643,7 +1684,7 @@ export type RecreateDelegatedRegistrationChallengeResponse = {
1643
1684
  };
1644
1685
  attestation: "none" | "indirect" | "direct" | "enterprise";
1645
1686
  pubKeyCredParams: {
1646
- type: string;
1687
+ type: "public-key";
1647
1688
  alg: number;
1648
1689
  }[];
1649
1690
  excludeCredentials: {
@@ -1773,7 +1814,7 @@ export type RegisterEndUserBody = {
1773
1814
  encryptedPrivateKey?: string | undefined;
1774
1815
  } | undefined;
1775
1816
  wallets: {
1776
- network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Stellar" | "StellarTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
1817
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "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";
1777
1818
  name?: string | undefined;
1778
1819
  }[];
1779
1820
  };
@@ -1788,6 +1829,9 @@ export type RegisterEndUserResponse = {
1788
1829
  username: string;
1789
1830
  orgId: string;
1790
1831
  };
1832
+ authentication: {
1833
+ token: string;
1834
+ };
1791
1835
  wallets: {
1792
1836
  id: string;
1793
1837
  network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "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";
@@ -1831,6 +1875,16 @@ export type SendRecoveryCodeResponse = {
1831
1875
  export type SendRecoveryCodeRequest = {
1832
1876
  body: SendRecoveryCodeBody;
1833
1877
  };
1878
+ export type SocialLoginBody = {
1879
+ socialLoginProviderKind: "Oidc";
1880
+ idToken: string;
1881
+ };
1882
+ export type SocialLoginResponse = {
1883
+ token: string;
1884
+ };
1885
+ export type SocialLoginRequest = {
1886
+ body: SocialLoginBody;
1887
+ };
1834
1888
  export type UpdateApplicationBody = {
1835
1889
  externalId?: string | undefined;
1836
1890
  name?: string | undefined;
@@ -36,7 +36,7 @@ export type CreateAssignmentRequest = CreateAssignmentParams & {
36
36
  };
37
37
  export type CreatePermissionBody = {
38
38
  name: string;
39
- operations: ("AssetAccounts:Archive" | "AssetAccounts:Create" | "AssetAccounts:Read" | "Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Balances:Read" | "CallbackEvents:Read" | "CallbackSubscriptions:Archive" | "CallbackSubscriptions:Create" | "CallbackSubscriptions:Read" | "Payments:Create" | "Payments:Read" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "PolicyControlExecutions:Read" | "PolicyControlExecutions:Update" | "PolicyControls:Archive" | "PolicyControls:Create" | "PolicyControls:Read" | "PolicyControls:Update" | "PolicyRules:Archive" | "PolicyRules:Create" | "PolicyRules:Read" | "PolicyRules:Update" | "PublicKeyAddresses:Read" | "PublicKeys:Create" | "PublicKeys:Read" | "Signatures:Create" | "Signatures:Read" | "Signers:ListSigners" | "Transactions:Create" | "Transactions:Read" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[];
39
+ operations: ("Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[];
40
40
  };
41
41
  export type CreatePermissionResponse = {
42
42
  id: string;
@@ -178,7 +178,7 @@ export type ListPermissionsRequest = {
178
178
  };
179
179
  export type UpdatePermissionBody = {
180
180
  name?: string | undefined;
181
- operations?: ("AssetAccounts:Archive" | "AssetAccounts:Create" | "AssetAccounts:Read" | "Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Balances:Read" | "CallbackEvents:Read" | "CallbackSubscriptions:Archive" | "CallbackSubscriptions:Create" | "CallbackSubscriptions:Read" | "Payments:Create" | "Payments:Read" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "PolicyControlExecutions:Read" | "PolicyControlExecutions:Update" | "PolicyControls:Archive" | "PolicyControls:Create" | "PolicyControls:Read" | "PolicyControls:Update" | "PolicyRules:Archive" | "PolicyRules:Create" | "PolicyRules:Read" | "PolicyRules:Update" | "PublicKeyAddresses:Read" | "PublicKeys:Create" | "PublicKeys:Read" | "Signatures:Create" | "Signatures:Read" | "Signers:ListSigners" | "Transactions:Create" | "Transactions:Read" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[] | undefined;
181
+ operations?: ("Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[] | undefined;
182
182
  };
183
183
  export type UpdatePermissionParams = {
184
184
  permissionId: string;
@@ -219,6 +219,11 @@ export type CreateApprovalDecisionResponse = {
219
219
  to: string;
220
220
  amount: string;
221
221
  memo?: string | undefined;
222
+ } | {
223
+ kind: "Spl" | "Spl2022";
224
+ to: string;
225
+ amount: string;
226
+ mint: string;
222
227
  };
223
228
  metadata: {
224
229
  asset: {
@@ -941,6 +946,11 @@ export type GetApprovalResponse = {
941
946
  to: string;
942
947
  amount: string;
943
948
  memo?: string | undefined;
949
+ } | {
950
+ kind: "Spl" | "Spl2022";
951
+ to: string;
952
+ amount: string;
953
+ mint: string;
944
954
  };
945
955
  metadata: {
946
956
  asset: {
@@ -1700,6 +1710,11 @@ export type ListApprovalsResponse = {
1700
1710
  to: string;
1701
1711
  amount: string;
1702
1712
  memo?: string | undefined;
1713
+ } | {
1714
+ kind: "Spl" | "Spl2022";
1715
+ to: string;
1716
+ amount: string;
1717
+ mint: string;
1703
1718
  };
1704
1719
  metadata: {
1705
1720
  asset: {