@dfns/sdk 0.7.13-rc.0 → 0.7.13

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.
@@ -69,9 +69,6 @@ export declare class AuthClient {
69
69
  sendLoginCode(request: T.SendLoginCodeRequest): Promise<T.SendLoginCodeResponse>;
70
70
  sendRecoveryCode(request: T.SendRecoveryCodeRequest): Promise<T.SendRecoveryCodeResponse>;
71
71
  socialLogin(request: T.SocialLoginRequest): Promise<T.SocialLoginResponse>;
72
- sSOLogin(request: T.SSOLoginRequest): Promise<T.SSOLoginResponse>;
73
- sSOLoginInit(request: T.SSOLoginInitRequest): Promise<T.SSOLoginInitResponse>;
74
72
  updatePersonalAccessToken(request: T.UpdatePersonalAccessTokenRequest): Promise<T.UpdatePersonalAccessTokenResponse>;
75
73
  updateServiceAccount(request: T.UpdateServiceAccountRequest): Promise<T.UpdateServiceAccountResponse>;
76
- updateUser(request: T.UpdateUserRequest): Promise<T.UpdateUserResponse>;
77
74
  }
@@ -610,30 +610,6 @@ class AuthClient {
610
610
  });
611
611
  return response.json();
612
612
  }
613
- async sSOLogin(request) {
614
- const path = (0, url_1.buildPathAndQuery)('/auth/login/sso', {
615
- path: request ?? {},
616
- query: {},
617
- });
618
- const response = await (0, fetch_1.simpleFetch)(path, {
619
- method: 'POST',
620
- body: request.body,
621
- apiOptions: this.apiOptions,
622
- });
623
- return response.json();
624
- }
625
- async sSOLoginInit(request) {
626
- const path = (0, url_1.buildPathAndQuery)('/auth/login/sso/init', {
627
- path: request ?? {},
628
- query: {},
629
- });
630
- const response = await (0, fetch_1.simpleFetch)(path, {
631
- method: 'POST',
632
- body: request.body,
633
- apiOptions: this.apiOptions,
634
- });
635
- return response.json();
636
- }
637
613
  async updatePersonalAccessToken(request) {
638
614
  const path = (0, url_1.buildPathAndQuery)('/auth/pats/:tokenId', {
639
615
  path: request ?? {},
@@ -658,17 +634,5 @@ class AuthClient {
658
634
  });
659
635
  return response.json();
660
636
  }
661
- async updateUser(request) {
662
- const path = (0, url_1.buildPathAndQuery)('/auth/users/:userId', {
663
- path: request ?? {},
664
- query: {},
665
- });
666
- const response = await (0, userActionFetch_1.userActionFetch)(path, {
667
- method: 'PUT',
668
- body: request.body,
669
- apiOptions: this.apiOptions,
670
- });
671
- return response.json();
672
- }
673
637
  }
674
638
  exports.AuthClient = AuthClient;
@@ -81,12 +81,8 @@ export declare class DelegatedAuthClient {
81
81
  sendLoginCode(request: T.SendLoginCodeRequest): Promise<T.SendLoginCodeResponse>;
82
82
  sendRecoveryCode(request: T.SendRecoveryCodeRequest): Promise<T.SendRecoveryCodeResponse>;
83
83
  socialLogin(request: T.SocialLoginRequest): Promise<T.SocialLoginResponse>;
84
- sSOLogin(request: T.SSOLoginRequest): Promise<T.SSOLoginResponse>;
85
- sSOLoginInit(request: T.SSOLoginInitRequest): Promise<T.SSOLoginInitResponse>;
86
84
  updatePersonalAccessTokenInit(request: T.UpdatePersonalAccessTokenRequest): Promise<UserActionChallengeResponse>;
87
85
  updatePersonalAccessTokenComplete(request: T.UpdatePersonalAccessTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdatePersonalAccessTokenResponse>;
88
86
  updateServiceAccountInit(request: T.UpdateServiceAccountRequest): Promise<UserActionChallengeResponse>;
89
87
  updateServiceAccountComplete(request: T.UpdateServiceAccountRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdateServiceAccountResponse>;
90
- updateUserInit(request: T.UpdateUserRequest): Promise<UserActionChallengeResponse>;
91
- updateUserComplete(request: T.UpdateUserRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdateUserResponse>;
92
88
  }
@@ -878,30 +878,6 @@ class DelegatedAuthClient {
878
878
  });
879
879
  return response.json();
880
880
  }
881
- async sSOLogin(request) {
882
- const path = (0, url_1.buildPathAndQuery)('/auth/login/sso', {
883
- path: request ?? {},
884
- query: {},
885
- });
886
- const response = await (0, fetch_1.simpleFetch)(path, {
887
- method: 'POST',
888
- body: request.body,
889
- apiOptions: this.apiOptions,
890
- });
891
- return response.json();
892
- }
893
- async sSOLoginInit(request) {
894
- const path = (0, url_1.buildPathAndQuery)('/auth/login/sso/init', {
895
- path: request ?? {},
896
- query: {},
897
- });
898
- const response = await (0, fetch_1.simpleFetch)(path, {
899
- method: 'POST',
900
- body: request.body,
901
- apiOptions: this.apiOptions,
902
- });
903
- return response.json();
904
- }
905
881
  async updatePersonalAccessTokenInit(request) {
906
882
  const path = (0, url_1.buildPathAndQuery)('/auth/pats/:tokenId', {
907
883
  path: request ?? {},
@@ -956,32 +932,5 @@ class DelegatedAuthClient {
956
932
  });
957
933
  return response.json();
958
934
  }
959
- async updateUserInit(request) {
960
- const path = (0, url_1.buildPathAndQuery)('/auth/users/:userId', {
961
- path: request ?? {},
962
- query: {},
963
- });
964
- const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
965
- userActionHttpMethod: 'PUT',
966
- userActionHttpPath: path,
967
- userActionPayload: JSON.stringify(request.body),
968
- userActionServerKind: 'Api',
969
- }, this.apiOptions);
970
- return challenge;
971
- }
972
- async updateUserComplete(request, signedChallenge) {
973
- const path = (0, url_1.buildPathAndQuery)('/auth/users/:userId', {
974
- path: request ?? {},
975
- query: {},
976
- });
977
- const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
978
- const response = await (0, fetch_1.simpleFetch)(path, {
979
- method: 'PUT',
980
- body: request.body,
981
- headers: { 'x-dfns-useraction': userAction },
982
- apiOptions: this.apiOptions,
983
- });
984
- return response.json();
985
- }
986
935
  }
987
936
  exports.DelegatedAuthClient = DelegatedAuthClient;
@@ -89,7 +89,6 @@ export type ActivateUserResponse = {
89
89
  isActive: boolean;
90
90
  isServiceAccount: boolean;
91
91
  isRegistered: boolean;
92
- isSSORequired: boolean;
93
92
  permissionAssignments: {
94
93
  permissionName: string;
95
94
  permissionId: string;
@@ -180,7 +179,6 @@ export type ArchiveUserResponse = {
180
179
  isActive: boolean;
181
180
  isServiceAccount: boolean;
182
181
  isRegistered: boolean;
183
- isSSORequired: boolean;
184
182
  permissionAssignments: {
185
183
  permissionName: string;
186
184
  permissionId: string;
@@ -928,8 +926,6 @@ export type CreateUserBody = {
928
926
  publicKey?: string | undefined;
929
927
  /** Value that can be used to correlate the entity with an external system. */
930
928
  externalId?: string | undefined;
931
- /** If set to true, the user will have to authenticate via SSO */
932
- isSSORequired?: boolean;
933
929
  };
934
930
  export type CreateUserResponse = {
935
931
  username: string;
@@ -942,7 +938,6 @@ export type CreateUserResponse = {
942
938
  isActive: boolean;
943
939
  isServiceAccount: boolean;
944
940
  isRegistered: boolean;
945
- isSSORequired: boolean;
946
941
  permissionAssignments: {
947
942
  permissionName: string;
948
943
  permissionId: string;
@@ -1156,7 +1151,6 @@ export type DeactivateUserResponse = {
1156
1151
  isActive: boolean;
1157
1152
  isServiceAccount: boolean;
1158
1153
  isRegistered: boolean;
1159
- isSSORequired: boolean;
1160
1154
  permissionAssignments: {
1161
1155
  permissionName: string;
1162
1156
  permissionId: string;
@@ -1317,7 +1311,6 @@ export type GetUserResponse = {
1317
1311
  isActive: boolean;
1318
1312
  isServiceAccount: boolean;
1319
1313
  isRegistered: boolean;
1320
- isSSORequired: boolean;
1321
1314
  permissionAssignments: {
1322
1315
  permissionName: string;
1323
1316
  permissionId: string;
@@ -1466,7 +1459,6 @@ export type ListUsersResponse = {
1466
1459
  isActive: boolean;
1467
1460
  isServiceAccount: boolean;
1468
1461
  isRegistered: boolean;
1469
- isSSORequired: boolean;
1470
1462
  permissionAssignments: {
1471
1463
  permissionName: string;
1472
1464
  permissionId: string;
@@ -1547,8 +1539,6 @@ export type LoginBody = {
1547
1539
  };
1548
1540
  export type LoginResponse = {
1549
1541
  token: string;
1550
- } | {
1551
- ssoClientId: string;
1552
1542
  };
1553
1543
  export type LoginRequest = {
1554
1544
  body: LoginBody;
@@ -1930,32 +1920,6 @@ export type SocialLoginResponse = {
1930
1920
  export type SocialLoginRequest = {
1931
1921
  body: SocialLoginBody;
1932
1922
  };
1933
- export type SSOLoginBody = {
1934
- /** Authorization code obtained from the IdP */
1935
- code: string;
1936
- /** State forwarded by the IdP */
1937
- state: string;
1938
- };
1939
- export type SSOLoginResponse = {
1940
- token: string;
1941
- };
1942
- export type SSOLoginRequest = {
1943
- body: SSOLoginBody;
1944
- };
1945
- export type SSOLoginInitBody = {
1946
- orgId: string;
1947
- /** Client Id obtained from the IdP */
1948
- clientId: string;
1949
- /** Redirect URI used for the authentication flow */
1950
- redirectUri: string;
1951
- };
1952
- export type SSOLoginInitResponse = {
1953
- /** The URL to redirect the user to authenticate with the IdP */
1954
- ssoRedirectUrl: string;
1955
- };
1956
- export type SSOLoginInitRequest = {
1957
- body: SSOLoginInitBody;
1958
- };
1959
1923
  export type UpdatePersonalAccessTokenBody = {
1960
1924
  name?: string | undefined;
1961
1925
  externalId?: string | undefined;
@@ -2036,31 +2000,3 @@ export type UpdateServiceAccountResponse = {
2036
2000
  export type UpdateServiceAccountRequest = UpdateServiceAccountParams & {
2037
2001
  body: UpdateServiceAccountBody;
2038
2002
  };
2039
- export type UpdateUserBody = {
2040
- isSSORequired: boolean;
2041
- };
2042
- export type UpdateUserParams = {
2043
- userId: string;
2044
- };
2045
- export type UpdateUserResponse = {
2046
- username: string;
2047
- name: string;
2048
- userId: string;
2049
- kind: "CustomerEmployee" | "DfnsStaff" | "EndUser";
2050
- credentialUuid: string;
2051
- orgId: string;
2052
- permissions?: string[] | undefined;
2053
- isActive: boolean;
2054
- isServiceAccount: boolean;
2055
- isRegistered: boolean;
2056
- isSSORequired: boolean;
2057
- permissionAssignments: {
2058
- permissionName: string;
2059
- permissionId: string;
2060
- assignmentId: string;
2061
- operations?: string[] | undefined;
2062
- }[];
2063
- };
2064
- export type UpdateUserRequest = UpdateUserParams & {
2065
- body: UpdateUserBody;
2066
- };
@@ -8,11 +8,13 @@ export type ActivateFeeSponsorResponse = {
8
8
  network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "KadenaTestnet4" | "KadenaTestnet4:1" | "KadenaTestnet4:2" | "KadenaTestnet4:3" | "KadenaTestnet4:4" | "KadenaTestnet4:5" | "KadenaTestnet4:6" | "KadenaTestnet4:7" | "KadenaTestnet4:8" | "KadenaTestnet4:9" | "KadenaTestnet4:10" | "KadenaTestnet4:11" | "KadenaTestnet4:12" | "KadenaTestnet4:13" | "KadenaTestnet4:14" | "KadenaTestnet4:15" | "KadenaTestnet4:16" | "KadenaTestnet4:17" | "KadenaTestnet4:18" | "KadenaTestnet4:19" | "Kadena" | "Kadena:1" | "Kadena:2" | "Kadena:3" | "Kadena:4" | "Kadena:5" | "Kadena:6" | "Kadena:7" | "Kadena:8" | "Kadena:9" | "Kadena:10" | "Kadena:11" | "Kadena:12" | "Kadena:13" | "Kadena:14" | "Kadena:15" | "Kadena:16" | "Kadena:17" | "Kadena:18" | "Kadena:19" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tsc" | "TscTestnet1" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
9
9
  status: "Active" | "Deactivated" | "Archived";
10
10
  dateCreated: string;
11
+ allowEndUser?: boolean | undefined;
11
12
  };
12
13
  export type ActivateFeeSponsorRequest = ActivateFeeSponsorParams;
13
14
  export type CreateFeeSponsorBody = {
14
15
  name?: string | undefined;
15
16
  walletId: string;
17
+ allowEndUser?: boolean;
16
18
  };
17
19
  export type CreateFeeSponsorResponse = {
18
20
  id: string;
@@ -21,6 +23,7 @@ export type CreateFeeSponsorResponse = {
21
23
  network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "KadenaTestnet4" | "KadenaTestnet4:1" | "KadenaTestnet4:2" | "KadenaTestnet4:3" | "KadenaTestnet4:4" | "KadenaTestnet4:5" | "KadenaTestnet4:6" | "KadenaTestnet4:7" | "KadenaTestnet4:8" | "KadenaTestnet4:9" | "KadenaTestnet4:10" | "KadenaTestnet4:11" | "KadenaTestnet4:12" | "KadenaTestnet4:13" | "KadenaTestnet4:14" | "KadenaTestnet4:15" | "KadenaTestnet4:16" | "KadenaTestnet4:17" | "KadenaTestnet4:18" | "KadenaTestnet4:19" | "Kadena" | "Kadena:1" | "Kadena:2" | "Kadena:3" | "Kadena:4" | "Kadena:5" | "Kadena:6" | "Kadena:7" | "Kadena:8" | "Kadena:9" | "Kadena:10" | "Kadena:11" | "Kadena:12" | "Kadena:13" | "Kadena:14" | "Kadena:15" | "Kadena:16" | "Kadena:17" | "Kadena:18" | "Kadena:19" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tsc" | "TscTestnet1" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
22
24
  status: "Active" | "Deactivated" | "Archived";
23
25
  dateCreated: string;
26
+ allowEndUser?: boolean | undefined;
24
27
  };
25
28
  export type CreateFeeSponsorRequest = {
26
29
  body: CreateFeeSponsorBody;
@@ -35,6 +38,7 @@ export type DeactivateFeeSponsorResponse = {
35
38
  network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "KadenaTestnet4" | "KadenaTestnet4:1" | "KadenaTestnet4:2" | "KadenaTestnet4:3" | "KadenaTestnet4:4" | "KadenaTestnet4:5" | "KadenaTestnet4:6" | "KadenaTestnet4:7" | "KadenaTestnet4:8" | "KadenaTestnet4:9" | "KadenaTestnet4:10" | "KadenaTestnet4:11" | "KadenaTestnet4:12" | "KadenaTestnet4:13" | "KadenaTestnet4:14" | "KadenaTestnet4:15" | "KadenaTestnet4:16" | "KadenaTestnet4:17" | "KadenaTestnet4:18" | "KadenaTestnet4:19" | "Kadena" | "Kadena:1" | "Kadena:2" | "Kadena:3" | "Kadena:4" | "Kadena:5" | "Kadena:6" | "Kadena:7" | "Kadena:8" | "Kadena:9" | "Kadena:10" | "Kadena:11" | "Kadena:12" | "Kadena:13" | "Kadena:14" | "Kadena:15" | "Kadena:16" | "Kadena:17" | "Kadena:18" | "Kadena:19" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tsc" | "TscTestnet1" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
36
39
  status: "Active" | "Deactivated" | "Archived";
37
40
  dateCreated: string;
41
+ allowEndUser?: boolean | undefined;
38
42
  };
39
43
  export type DeactivateFeeSponsorRequest = DeactivateFeeSponsorParams;
40
44
  export type DeleteFeeSponsorParams = {
@@ -47,6 +51,7 @@ export type DeleteFeeSponsorResponse = {
47
51
  network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "KadenaTestnet4" | "KadenaTestnet4:1" | "KadenaTestnet4:2" | "KadenaTestnet4:3" | "KadenaTestnet4:4" | "KadenaTestnet4:5" | "KadenaTestnet4:6" | "KadenaTestnet4:7" | "KadenaTestnet4:8" | "KadenaTestnet4:9" | "KadenaTestnet4:10" | "KadenaTestnet4:11" | "KadenaTestnet4:12" | "KadenaTestnet4:13" | "KadenaTestnet4:14" | "KadenaTestnet4:15" | "KadenaTestnet4:16" | "KadenaTestnet4:17" | "KadenaTestnet4:18" | "KadenaTestnet4:19" | "Kadena" | "Kadena:1" | "Kadena:2" | "Kadena:3" | "Kadena:4" | "Kadena:5" | "Kadena:6" | "Kadena:7" | "Kadena:8" | "Kadena:9" | "Kadena:10" | "Kadena:11" | "Kadena:12" | "Kadena:13" | "Kadena:14" | "Kadena:15" | "Kadena:16" | "Kadena:17" | "Kadena:18" | "Kadena:19" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tsc" | "TscTestnet1" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
48
52
  status: "Active" | "Deactivated" | "Archived";
49
53
  dateCreated: string;
54
+ allowEndUser?: boolean | undefined;
50
55
  };
51
56
  export type DeleteFeeSponsorRequest = DeleteFeeSponsorParams;
52
57
  export type GetFeeSponsorParams = {
@@ -59,6 +64,7 @@ export type GetFeeSponsorResponse = {
59
64
  network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "KadenaTestnet4" | "KadenaTestnet4:1" | "KadenaTestnet4:2" | "KadenaTestnet4:3" | "KadenaTestnet4:4" | "KadenaTestnet4:5" | "KadenaTestnet4:6" | "KadenaTestnet4:7" | "KadenaTestnet4:8" | "KadenaTestnet4:9" | "KadenaTestnet4:10" | "KadenaTestnet4:11" | "KadenaTestnet4:12" | "KadenaTestnet4:13" | "KadenaTestnet4:14" | "KadenaTestnet4:15" | "KadenaTestnet4:16" | "KadenaTestnet4:17" | "KadenaTestnet4:18" | "KadenaTestnet4:19" | "Kadena" | "Kadena:1" | "Kadena:2" | "Kadena:3" | "Kadena:4" | "Kadena:5" | "Kadena:6" | "Kadena:7" | "Kadena:8" | "Kadena:9" | "Kadena:10" | "Kadena:11" | "Kadena:12" | "Kadena:13" | "Kadena:14" | "Kadena:15" | "Kadena:16" | "Kadena:17" | "Kadena:18" | "Kadena:19" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tsc" | "TscTestnet1" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
60
65
  status: "Active" | "Deactivated" | "Archived";
61
66
  dateCreated: string;
67
+ allowEndUser?: boolean | undefined;
62
68
  };
63
69
  export type GetFeeSponsorRequest = GetFeeSponsorParams;
64
70
  export type ListFeeSponsorsQuery = {
@@ -73,6 +79,7 @@ export type ListFeeSponsorsResponse = {
73
79
  network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "KadenaTestnet4" | "KadenaTestnet4:1" | "KadenaTestnet4:2" | "KadenaTestnet4:3" | "KadenaTestnet4:4" | "KadenaTestnet4:5" | "KadenaTestnet4:6" | "KadenaTestnet4:7" | "KadenaTestnet4:8" | "KadenaTestnet4:9" | "KadenaTestnet4:10" | "KadenaTestnet4:11" | "KadenaTestnet4:12" | "KadenaTestnet4:13" | "KadenaTestnet4:14" | "KadenaTestnet4:15" | "KadenaTestnet4:16" | "KadenaTestnet4:17" | "KadenaTestnet4:18" | "KadenaTestnet4:19" | "Kadena" | "Kadena:1" | "Kadena:2" | "Kadena:3" | "Kadena:4" | "Kadena:5" | "Kadena:6" | "Kadena:7" | "Kadena:8" | "Kadena:9" | "Kadena:10" | "Kadena:11" | "Kadena:12" | "Kadena:13" | "Kadena:14" | "Kadena:15" | "Kadena:16" | "Kadena:17" | "Kadena:18" | "Kadena:19" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tsc" | "TscTestnet1" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
74
80
  status: "Active" | "Deactivated" | "Archived";
75
81
  dateCreated: string;
82
+ allowEndUser?: boolean | undefined;
76
83
  }[];
77
84
  nextPageToken?: string | undefined;
78
85
  };
@@ -36,7 +36,7 @@ export type CreateAssignmentRequest = CreateAssignmentParams & {
36
36
  };
37
37
  export type CreatePermissionBody = {
38
38
  name: string;
39
- operations: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Update" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Wallets:Offers:Read" | "Wallets:Offers:Settle" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "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" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[];
39
+ operations: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "FeeSponsors:Use" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Wallets:Offers:Read" | "Wallets:Offers:Settle" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "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" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "Auth:Users:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[];
40
40
  };
41
41
  export type CreatePermissionResponse = {
42
42
  id: string;
@@ -183,7 +183,7 @@ export type ListPermissionsRequest = {
183
183
  };
184
184
  export type UpdatePermissionBody = {
185
185
  name?: string | undefined;
186
- operations?: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Update" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Wallets:Offers:Read" | "Wallets:Offers:Settle" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "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" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[] | undefined;
186
+ operations?: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "FeeSponsors:Use" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Wallets:Offers:Read" | "Wallets:Offers:Settle" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "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" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "Auth:Users:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[] | undefined;
187
187
  };
188
188
  export type UpdatePermissionParams = {
189
189
  permissionId: string;
@@ -1008,7 +1008,6 @@ export type CreateApprovalDecisionResponse = {
1008
1008
  id: string;
1009
1009
  quoteId: string;
1010
1010
  reference: string | null;
1011
- sourceWalletId: string;
1012
1011
  walletId: string;
1013
1012
  targetWalletId: string;
1014
1013
  status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed" | "Rejected";
@@ -1045,35 +1044,32 @@ export type CreateApprovalDecisionResponse = {
1045
1044
  tid?: string | undefined;
1046
1045
  };
1047
1046
  };
1048
- slippageToleranceInBps: number;
1049
1047
  slippageBps: number;
1050
1048
  dateCreated: string;
1051
1049
  requestBody: {
1052
1050
  quoteId: string;
1053
1051
  reference?: string | undefined;
1054
- provider?: ("UniswapX" | "UniswapClassic") | undefined;
1055
- sourceWalletId?: string | undefined;
1056
- walletId?: string | undefined;
1052
+ provider: "UniswapX" | "UniswapClassic";
1053
+ walletId: string;
1057
1054
  targetWalletId?: string | undefined;
1058
- slippageToleranceInBps?: number | undefined;
1059
- slippageBps?: number | undefined;
1060
- sourceAsset?: ({
1055
+ slippageBps: number;
1056
+ sourceAsset: {
1061
1057
  kind: "Native";
1062
1058
  amount: string;
1063
1059
  } | {
1064
1060
  kind: "Erc20";
1065
1061
  contract: string;
1066
1062
  amount: string;
1067
- }) | undefined;
1068
- targetAsset?: ({
1063
+ };
1064
+ targetAsset: {
1069
1065
  kind: "Native";
1070
1066
  amount: string;
1071
1067
  } | {
1072
1068
  kind: "Erc20";
1073
1069
  contract: string;
1074
1070
  amount: string;
1075
- }) | undefined;
1076
- };
1071
+ };
1072
+ } | {};
1077
1073
  requester: {
1078
1074
  userId: string;
1079
1075
  tokenId?: string | undefined;
@@ -3331,7 +3327,6 @@ export type GetApprovalResponse = {
3331
3327
  id: string;
3332
3328
  quoteId: string;
3333
3329
  reference: string | null;
3334
- sourceWalletId: string;
3335
3330
  walletId: string;
3336
3331
  targetWalletId: string;
3337
3332
  status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed" | "Rejected";
@@ -3368,35 +3363,32 @@ export type GetApprovalResponse = {
3368
3363
  tid?: string | undefined;
3369
3364
  };
3370
3365
  };
3371
- slippageToleranceInBps: number;
3372
3366
  slippageBps: number;
3373
3367
  dateCreated: string;
3374
3368
  requestBody: {
3375
3369
  quoteId: string;
3376
3370
  reference?: string | undefined;
3377
- provider?: ("UniswapX" | "UniswapClassic") | undefined;
3378
- sourceWalletId?: string | undefined;
3379
- walletId?: string | undefined;
3371
+ provider: "UniswapX" | "UniswapClassic";
3372
+ walletId: string;
3380
3373
  targetWalletId?: string | undefined;
3381
- slippageToleranceInBps?: number | undefined;
3382
- slippageBps?: number | undefined;
3383
- sourceAsset?: ({
3374
+ slippageBps: number;
3375
+ sourceAsset: {
3384
3376
  kind: "Native";
3385
3377
  amount: string;
3386
3378
  } | {
3387
3379
  kind: "Erc20";
3388
3380
  contract: string;
3389
3381
  amount: string;
3390
- }) | undefined;
3391
- targetAsset?: ({
3382
+ };
3383
+ targetAsset: {
3392
3384
  kind: "Native";
3393
3385
  amount: string;
3394
3386
  } | {
3395
3387
  kind: "Erc20";
3396
3388
  contract: string;
3397
3389
  amount: string;
3398
- }) | undefined;
3399
- };
3390
+ };
3391
+ } | {};
3400
3392
  requester: {
3401
3393
  userId: string;
3402
3394
  tokenId?: string | undefined;
@@ -5698,7 +5690,6 @@ export type ListApprovalsResponse = {
5698
5690
  id: string;
5699
5691
  quoteId: string;
5700
5692
  reference: string | null;
5701
- sourceWalletId: string;
5702
5693
  walletId: string;
5703
5694
  targetWalletId: string;
5704
5695
  status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed" | "Rejected";
@@ -5735,35 +5726,32 @@ export type ListApprovalsResponse = {
5735
5726
  tid?: string | undefined;
5736
5727
  };
5737
5728
  };
5738
- slippageToleranceInBps: number;
5739
5729
  slippageBps: number;
5740
5730
  dateCreated: string;
5741
5731
  requestBody: {
5742
5732
  quoteId: string;
5743
5733
  reference?: string | undefined;
5744
- provider?: ("UniswapX" | "UniswapClassic") | undefined;
5745
- sourceWalletId?: string | undefined;
5746
- walletId?: string | undefined;
5734
+ provider: "UniswapX" | "UniswapClassic";
5735
+ walletId: string;
5747
5736
  targetWalletId?: string | undefined;
5748
- slippageToleranceInBps?: number | undefined;
5749
- slippageBps?: number | undefined;
5750
- sourceAsset?: ({
5737
+ slippageBps: number;
5738
+ sourceAsset: {
5751
5739
  kind: "Native";
5752
5740
  amount: string;
5753
5741
  } | {
5754
5742
  kind: "Erc20";
5755
5743
  contract: string;
5756
5744
  amount: string;
5757
- }) | undefined;
5758
- targetAsset?: ({
5745
+ };
5746
+ targetAsset: {
5759
5747
  kind: "Native";
5760
5748
  amount: string;
5761
5749
  } | {
5762
5750
  kind: "Erc20";
5763
5751
  contract: string;
5764
5752
  amount: string;
5765
- }) | undefined;
5766
- };
5753
+ };
5754
+ } | {};
5767
5755
  requester: {
5768
5756
  userId: string;
5769
5757
  tokenId?: string | undefined;
@@ -162,11 +162,11 @@ export type CreateStakeResponse = ({
162
162
  dateCreated: string;
163
163
  protocol: "Ethereum";
164
164
  data: {
165
- validators: {
165
+ validator: {
166
166
  pubkey: string;
167
167
  withdrawalAddress: string;
168
- }[];
169
- };
168
+ };
169
+ } | null;
170
170
  }) & {
171
171
  actions: {
172
172
  id: string;
@@ -393,11 +393,11 @@ export type CreateStakeActionResponse = ({
393
393
  dateCreated: string;
394
394
  protocol: "Ethereum";
395
395
  data: {
396
- validators: {
396
+ validator: {
397
397
  pubkey: string;
398
398
  withdrawalAddress: string;
399
- }[];
400
- };
399
+ };
400
+ } | null;
401
401
  }) & {
402
402
  actions: {
403
403
  id: string;
@@ -615,11 +615,11 @@ export type GetStakesResponse = ({
615
615
  dateCreated: string;
616
616
  protocol: "Ethereum";
617
617
  data: {
618
- validators: {
618
+ validator: {
619
619
  pubkey: string;
620
620
  withdrawalAddress: string;
621
- }[];
622
- };
621
+ };
622
+ } | null;
623
623
  }) & {
624
624
  actions: {
625
625
  id: string;
@@ -901,11 +901,11 @@ export type ListStakesResponse = {
901
901
  dateCreated: string;
902
902
  protocol: "Ethereum";
903
903
  data: {
904
- validators: {
904
+ validator: {
905
905
  pubkey: string;
906
906
  withdrawalAddress: string;
907
- }[];
908
- };
907
+ };
908
+ } | null;
909
909
  })[];
910
910
  nextPageToken?: string | undefined;
911
911
  };
@@ -1,34 +1,31 @@
1
1
  export type CreateSwapBody = {
2
2
  quoteId: string;
3
3
  reference?: string | undefined;
4
- provider?: ("UniswapX" | "UniswapClassic") | undefined;
5
- sourceWalletId?: string | undefined;
6
- walletId?: string | undefined;
4
+ provider: "UniswapX" | "UniswapClassic";
5
+ walletId: string;
7
6
  targetWalletId?: string | undefined;
8
- slippageToleranceInBps?: number | undefined;
9
- slippageBps?: number | undefined;
10
- sourceAsset?: ({
7
+ slippageBps: number;
8
+ sourceAsset: {
11
9
  kind: "Native";
12
10
  amount: string;
13
11
  } | {
14
12
  kind: "Erc20";
15
13
  contract: string;
16
14
  amount: string;
17
- }) | undefined;
18
- targetAsset?: ({
15
+ };
16
+ targetAsset: {
19
17
  kind: "Native";
20
18
  amount: string;
21
19
  } | {
22
20
  kind: "Erc20";
23
21
  contract: string;
24
22
  amount: string;
25
- }) | undefined;
23
+ };
26
24
  };
27
25
  export type CreateSwapResponse = {
28
26
  id: string;
29
27
  quoteId: string;
30
28
  reference: string | null;
31
- sourceWalletId: string;
32
29
  walletId: string;
33
30
  targetWalletId: string;
34
31
  status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed" | "Rejected";
@@ -65,35 +62,32 @@ export type CreateSwapResponse = {
65
62
  tid?: string | undefined;
66
63
  };
67
64
  };
68
- slippageToleranceInBps: number;
69
65
  slippageBps: number;
70
66
  dateCreated: string;
71
67
  requestBody: {
72
68
  quoteId: string;
73
69
  reference?: string | undefined;
74
- provider?: ("UniswapX" | "UniswapClassic") | undefined;
75
- sourceWalletId?: string | undefined;
76
- walletId?: string | undefined;
70
+ provider: "UniswapX" | "UniswapClassic";
71
+ walletId: string;
77
72
  targetWalletId?: string | undefined;
78
- slippageToleranceInBps?: number | undefined;
79
- slippageBps?: number | undefined;
80
- sourceAsset?: ({
73
+ slippageBps: number;
74
+ sourceAsset: {
81
75
  kind: "Native";
82
76
  amount: string;
83
77
  } | {
84
78
  kind: "Erc20";
85
79
  contract: string;
86
80
  amount: string;
87
- }) | undefined;
88
- targetAsset?: ({
81
+ };
82
+ targetAsset: {
89
83
  kind: "Native";
90
84
  amount: string;
91
85
  } | {
92
86
  kind: "Erc20";
93
87
  contract: string;
94
88
  amount: string;
95
- }) | undefined;
96
- };
89
+ };
90
+ } | {};
97
91
  requester: {
98
92
  userId: string;
99
93
  tokenId?: string | undefined;
@@ -104,9 +98,8 @@ export type CreateSwapRequest = {
104
98
  };
105
99
  export type CreateSwapQuoteBody = {
106
100
  provider: "UniswapX" | "UniswapClassic";
107
- sourceWalletId?: string | undefined;
108
- walletId?: string | undefined;
109
- targetWalletId: string;
101
+ walletId: string;
102
+ targetWalletId?: string | undefined;
110
103
  sourceAsset: {
111
104
  kind: "Native";
112
105
  amount: string;
@@ -121,14 +114,13 @@ export type CreateSwapQuoteBody = {
121
114
  kind: "Erc20";
122
115
  contract: string;
123
116
  };
124
- slippageToleranceInBps?: number | undefined;
125
- slippageBps?: number | undefined;
117
+ slippageBps: number;
126
118
  };
127
119
  export type CreateSwapQuoteResponse = {
128
120
  id: string;
129
- sourceWalletId: string;
130
121
  walletId: string;
131
- targetWalletId: string;
122
+ /** If not provided, the walletId is used as the target wallet. If provided, this field is currently required to be the same as walletId */
123
+ targetWalletId?: string | undefined;
132
124
  provider: "UniswapX" | "UniswapClassic";
133
125
  sourceAsset: ({
134
126
  kind: "Native";
@@ -162,14 +154,12 @@ export type CreateSwapQuoteResponse = {
162
154
  tid?: string | undefined;
163
155
  };
164
156
  };
165
- slippageToleranceInBps: number;
166
157
  slippageBps: number;
167
158
  dateCreated: string;
168
159
  requestBody: {
169
160
  provider: "UniswapX" | "UniswapClassic";
170
- sourceWalletId?: string | undefined;
171
- walletId?: string | undefined;
172
- targetWalletId: string;
161
+ walletId: string;
162
+ targetWalletId?: string | undefined;
173
163
  sourceAsset: {
174
164
  kind: "Native";
175
165
  amount: string;
@@ -184,9 +174,8 @@ export type CreateSwapQuoteResponse = {
184
174
  kind: "Erc20";
185
175
  contract: string;
186
176
  };
187
- slippageToleranceInBps?: number | undefined;
188
- slippageBps?: number | undefined;
189
- };
177
+ slippageBps: number;
178
+ } | {};
190
179
  requester: {
191
180
  userId: string;
192
181
  tokenId?: string | undefined;
@@ -202,7 +191,6 @@ export type GetSwapResponse = {
202
191
  id: string;
203
192
  quoteId: string;
204
193
  reference: string | null;
205
- sourceWalletId: string;
206
194
  walletId: string;
207
195
  targetWalletId: string;
208
196
  status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed" | "Rejected";
@@ -239,35 +227,32 @@ export type GetSwapResponse = {
239
227
  tid?: string | undefined;
240
228
  };
241
229
  };
242
- slippageToleranceInBps: number;
243
230
  slippageBps: number;
244
231
  dateCreated: string;
245
232
  requestBody: {
246
233
  quoteId: string;
247
234
  reference?: string | undefined;
248
- provider?: ("UniswapX" | "UniswapClassic") | undefined;
249
- sourceWalletId?: string | undefined;
250
- walletId?: string | undefined;
235
+ provider: "UniswapX" | "UniswapClassic";
236
+ walletId: string;
251
237
  targetWalletId?: string | undefined;
252
- slippageToleranceInBps?: number | undefined;
253
- slippageBps?: number | undefined;
254
- sourceAsset?: ({
238
+ slippageBps: number;
239
+ sourceAsset: {
255
240
  kind: "Native";
256
241
  amount: string;
257
242
  } | {
258
243
  kind: "Erc20";
259
244
  contract: string;
260
245
  amount: string;
261
- }) | undefined;
262
- targetAsset?: ({
246
+ };
247
+ targetAsset: {
263
248
  kind: "Native";
264
249
  amount: string;
265
250
  } | {
266
251
  kind: "Erc20";
267
252
  contract: string;
268
253
  amount: string;
269
- }) | undefined;
270
- };
254
+ };
255
+ } | {};
271
256
  requester: {
272
257
  userId: string;
273
258
  tokenId?: string | undefined;
@@ -279,9 +264,9 @@ export type GetSwapQuoteParams = {
279
264
  };
280
265
  export type GetSwapQuoteResponse = {
281
266
  id: string;
282
- sourceWalletId: string;
283
267
  walletId: string;
284
- targetWalletId: string;
268
+ /** If not provided, the walletId is used as the target wallet. If provided, this field is currently required to be the same as walletId */
269
+ targetWalletId?: string | undefined;
285
270
  provider: "UniswapX" | "UniswapClassic";
286
271
  sourceAsset: ({
287
272
  kind: "Native";
@@ -315,14 +300,12 @@ export type GetSwapQuoteResponse = {
315
300
  tid?: string | undefined;
316
301
  };
317
302
  };
318
- slippageToleranceInBps: number;
319
303
  slippageBps: number;
320
304
  dateCreated: string;
321
305
  requestBody: {
322
306
  provider: "UniswapX" | "UniswapClassic";
323
- sourceWalletId?: string | undefined;
324
- walletId?: string | undefined;
325
- targetWalletId: string;
307
+ walletId: string;
308
+ targetWalletId?: string | undefined;
326
309
  sourceAsset: {
327
310
  kind: "Native";
328
311
  amount: string;
@@ -337,9 +320,8 @@ export type GetSwapQuoteResponse = {
337
320
  kind: "Erc20";
338
321
  contract: string;
339
322
  };
340
- slippageToleranceInBps?: number | undefined;
341
- slippageBps?: number | undefined;
342
- };
323
+ slippageBps: number;
324
+ } | {};
343
325
  requester: {
344
326
  userId: string;
345
327
  tokenId?: string | undefined;
@@ -355,7 +337,6 @@ export type ListSwapsResponse = {
355
337
  id: string;
356
338
  quoteId: string;
357
339
  reference: string | null;
358
- sourceWalletId: string;
359
340
  walletId: string;
360
341
  targetWalletId: string;
361
342
  status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed" | "Rejected";
@@ -392,35 +373,32 @@ export type ListSwapsResponse = {
392
373
  tid?: string | undefined;
393
374
  };
394
375
  };
395
- slippageToleranceInBps: number;
396
376
  slippageBps: number;
397
377
  dateCreated: string;
398
378
  requestBody: {
399
379
  quoteId: string;
400
380
  reference?: string | undefined;
401
- provider?: ("UniswapX" | "UniswapClassic") | undefined;
402
- sourceWalletId?: string | undefined;
403
- walletId?: string | undefined;
381
+ provider: "UniswapX" | "UniswapClassic";
382
+ walletId: string;
404
383
  targetWalletId?: string | undefined;
405
- slippageToleranceInBps?: number | undefined;
406
- slippageBps?: number | undefined;
407
- sourceAsset?: ({
384
+ slippageBps: number;
385
+ sourceAsset: {
408
386
  kind: "Native";
409
387
  amount: string;
410
388
  } | {
411
389
  kind: "Erc20";
412
390
  contract: string;
413
391
  amount: string;
414
- }) | undefined;
415
- targetAsset?: ({
392
+ };
393
+ targetAsset: {
416
394
  kind: "Native";
417
395
  amount: string;
418
396
  } | {
419
397
  kind: "Erc20";
420
398
  contract: string;
421
399
  amount: string;
422
- }) | undefined;
423
- };
400
+ };
401
+ } | {};
424
402
  requester: {
425
403
  userId: string;
426
404
  tokenId?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfns/sdk",
3
- "version": "0.7.13-rc.0",
3
+ "version": "0.7.13",
4
4
  "dependencies": {
5
5
  "buffer": "^6.0.3",
6
6
  "cross-fetch": "^3.1.6"