@dfns/sdk 0.7.13 → 0.7.14-rc.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.
@@ -69,6 +69,9 @@ 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>;
72
74
  updatePersonalAccessToken(request: T.UpdatePersonalAccessTokenRequest): Promise<T.UpdatePersonalAccessTokenResponse>;
73
75
  updateServiceAccount(request: T.UpdateServiceAccountRequest): Promise<T.UpdateServiceAccountResponse>;
76
+ updateUser(request: T.UpdateUserRequest): Promise<T.UpdateUserResponse>;
74
77
  }
@@ -610,6 +610,30 @@ 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
+ }
613
637
  async updatePersonalAccessToken(request) {
614
638
  const path = (0, url_1.buildPathAndQuery)('/auth/pats/:tokenId', {
615
639
  path: request ?? {},
@@ -634,5 +658,17 @@ class AuthClient {
634
658
  });
635
659
  return response.json();
636
660
  }
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
+ }
637
673
  }
638
674
  exports.AuthClient = AuthClient;
@@ -81,8 +81,12 @@ 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>;
84
86
  updatePersonalAccessTokenInit(request: T.UpdatePersonalAccessTokenRequest): Promise<UserActionChallengeResponse>;
85
87
  updatePersonalAccessTokenComplete(request: T.UpdatePersonalAccessTokenRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdatePersonalAccessTokenResponse>;
86
88
  updateServiceAccountInit(request: T.UpdateServiceAccountRequest): Promise<UserActionChallengeResponse>;
87
89
  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>;
88
92
  }
@@ -878,6 +878,30 @@ 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
+ }
881
905
  async updatePersonalAccessTokenInit(request) {
882
906
  const path = (0, url_1.buildPathAndQuery)('/auth/pats/:tokenId', {
883
907
  path: request ?? {},
@@ -932,5 +956,32 @@ class DelegatedAuthClient {
932
956
  });
933
957
  return response.json();
934
958
  }
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
+ }
935
986
  }
936
987
  exports.DelegatedAuthClient = DelegatedAuthClient;
@@ -89,6 +89,7 @@ export type ActivateUserResponse = {
89
89
  isActive: boolean;
90
90
  isServiceAccount: boolean;
91
91
  isRegistered: boolean;
92
+ isSSORequired: boolean;
92
93
  permissionAssignments: {
93
94
  permissionName: string;
94
95
  permissionId: string;
@@ -179,6 +180,7 @@ export type ArchiveUserResponse = {
179
180
  isActive: boolean;
180
181
  isServiceAccount: boolean;
181
182
  isRegistered: boolean;
183
+ isSSORequired: boolean;
182
184
  permissionAssignments: {
183
185
  permissionName: string;
184
186
  permissionId: string;
@@ -926,6 +928,8 @@ export type CreateUserBody = {
926
928
  publicKey?: string | undefined;
927
929
  /** Value that can be used to correlate the entity with an external system. */
928
930
  externalId?: string | undefined;
931
+ /** If set to true, the user will have to authenticate via SSO */
932
+ isSSORequired?: boolean;
929
933
  };
930
934
  export type CreateUserResponse = {
931
935
  username: string;
@@ -938,6 +942,7 @@ export type CreateUserResponse = {
938
942
  isActive: boolean;
939
943
  isServiceAccount: boolean;
940
944
  isRegistered: boolean;
945
+ isSSORequired: boolean;
941
946
  permissionAssignments: {
942
947
  permissionName: string;
943
948
  permissionId: string;
@@ -1151,6 +1156,7 @@ export type DeactivateUserResponse = {
1151
1156
  isActive: boolean;
1152
1157
  isServiceAccount: boolean;
1153
1158
  isRegistered: boolean;
1159
+ isSSORequired: boolean;
1154
1160
  permissionAssignments: {
1155
1161
  permissionName: string;
1156
1162
  permissionId: string;
@@ -1311,6 +1317,7 @@ export type GetUserResponse = {
1311
1317
  isActive: boolean;
1312
1318
  isServiceAccount: boolean;
1313
1319
  isRegistered: boolean;
1320
+ isSSORequired: boolean;
1314
1321
  permissionAssignments: {
1315
1322
  permissionName: string;
1316
1323
  permissionId: string;
@@ -1459,6 +1466,7 @@ export type ListUsersResponse = {
1459
1466
  isActive: boolean;
1460
1467
  isServiceAccount: boolean;
1461
1468
  isRegistered: boolean;
1469
+ isSSORequired: boolean;
1462
1470
  permissionAssignments: {
1463
1471
  permissionName: string;
1464
1472
  permissionId: string;
@@ -1539,6 +1547,8 @@ export type LoginBody = {
1539
1547
  };
1540
1548
  export type LoginResponse = {
1541
1549
  token: string;
1550
+ } | {
1551
+ ssoClientId: string;
1542
1552
  };
1543
1553
  export type LoginRequest = {
1544
1554
  body: LoginBody;
@@ -1920,6 +1930,32 @@ export type SocialLoginResponse = {
1920
1930
  export type SocialLoginRequest = {
1921
1931
  body: SocialLoginBody;
1922
1932
  };
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
+ };
1923
1959
  export type UpdatePersonalAccessTokenBody = {
1924
1960
  name?: string | undefined;
1925
1961
  externalId?: string | undefined;
@@ -2000,3 +2036,31 @@ export type UpdateServiceAccountResponse = {
2000
2036
  export type UpdateServiceAccountRequest = UpdateServiceAccountParams & {
2001
2037
  body: UpdateServiceAccountBody;
2002
2038
  };
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
+ };
@@ -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: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"))[];
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" | "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" | "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: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;
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" | "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" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[] | undefined;
187
187
  };
188
188
  export type UpdatePermissionParams = {
189
189
  permissionId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfns/sdk",
3
- "version": "0.7.13",
3
+ "version": "0.7.14-rc.0",
4
4
  "dependencies": {
5
5
  "buffer": "^6.0.3",
6
6
  "cross-fetch": "^3.1.6"