@dfns/sdk 0.2.1 → 0.2.3-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/baseAuthApi.ts +236 -0
- package/codegen/Assets/AssetsClient.ts +137 -0
- package/codegen/Assets/DelegatedAssetsClient.ts +201 -0
- package/codegen/Assets/index.ts +3 -0
- package/codegen/Assets/types.ts +45 -0
- package/codegen/Auth/AuthClient.ts +729 -0
- package/codegen/Auth/DelegatedAuthClient.ts +1508 -0
- package/codegen/Auth/index.ts +3 -0
- package/codegen/Auth/types.ts +262 -0
- package/codegen/Blockchains/BlockchainsClient.ts +25 -0
- package/codegen/Blockchains/DelegatedBlockchainsClient.ts +25 -0
- package/codegen/Blockchains/index.ts +3 -0
- package/codegen/Blockchains/types.ts +8 -0
- package/codegen/Callbacks/CallbacksClient.ts +107 -0
- package/codegen/Callbacks/DelegatedCallbacksClient.ts +172 -0
- package/codegen/Callbacks/index.ts +3 -0
- package/codegen/Callbacks/{types.d.ts → types.ts} +26 -18
- package/codegen/Permissions/DelegatedPermissionsClient.ts +468 -0
- package/codegen/Permissions/PermissionsClient.ts +223 -0
- package/codegen/Permissions/index.ts +3 -0
- package/codegen/Permissions/types.ts +82 -0
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.ts +99 -0
- package/codegen/PolicyExecution/PolicyExecutionClient.ts +63 -0
- package/codegen/PolicyExecution/index.ts +3 -0
- package/codegen/PolicyExecution/types.ts +24 -0
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.ts +384 -0
- package/codegen/PolicyManagement/PolicyManagementClient.ts +205 -0
- package/codegen/PolicyManagement/index.ts +3 -0
- package/codegen/PolicyManagement/{types.d.ts → types.ts} +56 -40
- package/codegen/PublicKeys/DelegatedPublicKeysClient.ts +299 -0
- package/codegen/PublicKeys/PublicKeysClient.ts +179 -0
- package/codegen/PublicKeys/index.ts +3 -0
- package/codegen/PublicKeys/types.ts +68 -0
- package/codegen/Signers/DelegatedSignersClient.ts +22 -0
- package/codegen/Signers/SignersClient.ts +22 -0
- package/codegen/Signers/index.ts +3 -0
- package/codegen/Signers/types.ts +3 -0
- package/codegen/Wallets/DelegatedWalletsClient.ts +511 -0
- package/codegen/Wallets/WalletsClient.ts +310 -0
- package/codegen/Wallets/index.ts +3 -0
- package/codegen/Wallets/types.ts +137 -0
- package/codegen/datamodel/ApiKeys/errors.ts +9 -0
- package/codegen/datamodel/ApiKeys/index.ts +3 -0
- package/codegen/datamodel/ApiKeys/responses.ts +68 -0
- package/codegen/datamodel/ApiKeys/types.ts +81 -0
- package/codegen/datamodel/Assets/errors.ts +24 -0
- package/codegen/datamodel/Assets/index.ts +3 -0
- package/codegen/datamodel/Assets/responses.ts +146 -0
- package/codegen/datamodel/Assets/types.ts +417 -0
- package/codegen/datamodel/Auth/index.ts +2 -0
- package/codegen/datamodel/Auth/responses.ts +1110 -0
- package/codegen/datamodel/Auth/types.ts +1404 -0
- package/codegen/datamodel/BlockchainIndexing/index.ts +1 -0
- package/codegen/datamodel/BlockchainIndexing/{responses.d.ts → responses.ts} +10 -5
- package/codegen/datamodel/Blockchains/index.ts +2 -0
- package/codegen/datamodel/Blockchains/responses.ts +41 -0
- package/codegen/datamodel/Blockchains/types.ts +695 -0
- package/codegen/datamodel/Callbacks/index.ts +2 -0
- package/codegen/datamodel/Callbacks/responses.ts +110 -0
- package/codegen/datamodel/Callbacks/types.ts +100 -0
- package/codegen/datamodel/Foundations/errors.ts +299 -0
- package/codegen/datamodel/Foundations/index.ts +2 -0
- package/codegen/datamodel/Foundations/types.ts +57921 -0
- package/codegen/datamodel/Orgs/index.ts +2 -0
- package/codegen/datamodel/Orgs/responses.ts +104 -0
- package/codegen/datamodel/Orgs/types.ts +322 -0
- package/codegen/datamodel/Permissions/index.ts +2 -0
- package/codegen/datamodel/Permissions/responses.ts +258 -0
- package/codegen/datamodel/Permissions/types.ts +221 -0
- package/codegen/datamodel/PolicyExecution/errors.ts +24 -0
- package/codegen/datamodel/PolicyExecution/index.ts +3 -0
- package/codegen/datamodel/PolicyExecution/responses.ts +59 -0
- package/codegen/datamodel/PolicyExecution/types.ts +122 -0
- package/codegen/datamodel/PolicyManagement/index.ts +2 -0
- package/codegen/datamodel/PolicyManagement/responses.ts +255 -0
- package/codegen/datamodel/PolicyManagement/types.ts +711 -0
- package/codegen/datamodel/PublicKeys/index.ts +2 -0
- package/codegen/datamodel/PublicKeys/responses.ts +190 -0
- package/codegen/datamodel/PublicKeys/types.ts +558 -0
- package/codegen/datamodel/Signers/index.ts +2 -0
- package/codegen/datamodel/Signers/responses.ts +64 -0
- package/codegen/datamodel/Signers/types.ts +31 -0
- package/codegen/datamodel/Wallets/errors.ts +0 -0
- package/codegen/datamodel/Wallets/index.ts +2 -0
- package/codegen/datamodel/Wallets/responses.ts +318 -0
- package/codegen/datamodel/Wallets/types.ts +1268 -0
- package/dfnsApiClient.ts +76 -0
- package/dfnsAuthenticator.ts +59 -0
- package/dfnsDelegatedApiClient.ts +75 -0
- package/dfnsError.ts +5 -0
- package/generated/permissions/client.ts +125 -0
- package/generated/permissions/delegatedClient.ts +266 -0
- package/generated/permissions/index.ts +3 -0
- package/generated/permissions/types.ts +202 -0
- package/generated/policies/client.ts +110 -0
- package/generated/policies/delegatedClient.ts +223 -0
- package/generated/policies/index.ts +3 -0
- package/generated/policies/{types.d.ts → types.ts} +29 -17
- package/generated/signers/client.ts +22 -0
- package/generated/signers/delegatedClient.ts +23 -0
- package/generated/signers/index.ts +3 -0
- package/generated/signers/{types.d.ts → types.ts} +1 -0
- package/generated/wallets/client.ts +282 -0
- package/generated/wallets/delegatedClient.ts +507 -0
- package/generated/wallets/index.ts +3 -0
- package/generated/wallets/{types.d.ts → types.ts} +120 -48
- package/generated/webhooks/client.ts +124 -0
- package/generated/webhooks/delegatedClient.ts +237 -0
- package/generated/webhooks/index.ts +3 -0
- package/generated/webhooks/{types.d.ts → types.ts} +34 -16
- package/index.ts +7 -0
- package/package.json +1 -8
- package/project.json +14 -0
- package/signer.ts +60 -0
- package/store.ts +99 -0
- package/tsconfig.json +7 -0
- package/typedoc.json +21 -0
- package/types/policies.ts +1 -0
- package/types/signers.ts +1 -0
- package/types/wallets.ts +1 -0
- package/types/webhooks.ts +1 -0
- package/utils/base64.ts +19 -0
- package/utils/fetch.ts +130 -0
- package/utils/index.ts +4 -0
- package/utils/nonce.ts +12 -0
- package/utils/url.ts +19 -0
- package/baseAuthApi.d.ts +0 -113
- package/baseAuthApi.js +0 -97
- package/codegen/Assets/AssetsClient.d.ts +0 -13
- package/codegen/Assets/AssetsClient.js +0 -93
- package/codegen/Assets/DelegatedAssetsClient.d.ts +0 -16
- package/codegen/Assets/DelegatedAssetsClient.js +0 -124
- package/codegen/Assets/index.d.ts +0 -3
- package/codegen/Assets/index.js +0 -19
- package/codegen/Assets/types.d.ts +0 -37
- package/codegen/Assets/types.js +0 -2
- package/codegen/Auth/AuthClient.d.ts +0 -50
- package/codegen/Auth/AuthClient.js +0 -518
- package/codegen/Auth/DelegatedAuthClient.d.ts +0 -78
- package/codegen/Auth/DelegatedAuthClient.js +0 -936
- package/codegen/Auth/index.d.ts +0 -3
- package/codegen/Auth/index.js +0 -19
- package/codegen/Auth/types.d.ts +0 -177
- package/codegen/Auth/types.js +0 -2
- package/codegen/Blockchains/BlockchainsClient.d.ts +0 -7
- package/codegen/Blockchains/BlockchainsClient.js +0 -23
- package/codegen/Blockchains/DelegatedBlockchainsClient.d.ts +0 -7
- package/codegen/Blockchains/DelegatedBlockchainsClient.js +0 -23
- package/codegen/Blockchains/index.d.ts +0 -3
- package/codegen/Blockchains/index.js +0 -19
- package/codegen/Blockchains/types.d.ts +0 -6
- package/codegen/Blockchains/types.js +0 -2
- package/codegen/Callbacks/CallbacksClient.d.ts +0 -12
- package/codegen/Callbacks/CallbacksClient.js +0 -78
- package/codegen/Callbacks/DelegatedCallbacksClient.d.ts +0 -15
- package/codegen/Callbacks/DelegatedCallbacksClient.js +0 -110
- package/codegen/Callbacks/index.d.ts +0 -3
- package/codegen/Callbacks/index.js +0 -19
- package/codegen/Callbacks/types.js +0 -2
- package/codegen/Permissions/DelegatedPermissionsClient.d.ts +0 -27
- package/codegen/Permissions/DelegatedPermissionsClient.js +0 -284
- package/codegen/Permissions/PermissionsClient.d.ts +0 -18
- package/codegen/Permissions/PermissionsClient.js +0 -156
- package/codegen/Permissions/index.d.ts +0 -3
- package/codegen/Permissions/index.js +0 -19
- package/codegen/Permissions/types.d.ts +0 -62
- package/codegen/Permissions/types.js +0 -2
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.d.ts +0 -11
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.js +0 -61
- package/codegen/PolicyExecution/PolicyExecutionClient.d.ts +0 -9
- package/codegen/PolicyExecution/PolicyExecutionClient.js +0 -45
- package/codegen/PolicyExecution/index.d.ts +0 -3
- package/codegen/PolicyExecution/index.js +0 -19
- package/codegen/PolicyExecution/types.d.ts +0 -18
- package/codegen/PolicyExecution/types.js +0 -2
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.d.ts +0 -25
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.js +0 -240
- package/codegen/PolicyManagement/PolicyManagementClient.d.ts +0 -18
- package/codegen/PolicyManagement/PolicyManagementClient.js +0 -146
- package/codegen/PolicyManagement/index.d.ts +0 -3
- package/codegen/PolicyManagement/index.js +0 -19
- package/codegen/PolicyManagement/types.js +0 -2
- package/codegen/PublicKeys/DelegatedPublicKeysClient.d.ts +0 -21
- package/codegen/PublicKeys/DelegatedPublicKeysClient.js +0 -189
- package/codegen/PublicKeys/PublicKeysClient.d.ts +0 -16
- package/codegen/PublicKeys/PublicKeysClient.js +0 -128
- package/codegen/PublicKeys/index.d.ts +0 -3
- package/codegen/PublicKeys/index.js +0 -19
- package/codegen/PublicKeys/types.d.ts +0 -51
- package/codegen/PublicKeys/types.js +0 -2
- package/codegen/Signers/DelegatedSignersClient.d.ts +0 -7
- package/codegen/Signers/DelegatedSignersClient.js +0 -22
- package/codegen/Signers/SignersClient.d.ts +0 -7
- package/codegen/Signers/SignersClient.js +0 -22
- package/codegen/Signers/index.d.ts +0 -3
- package/codegen/Signers/index.js +0 -19
- package/codegen/Signers/types.d.ts +0 -2
- package/codegen/Signers/types.js +0 -2
- package/codegen/Wallets/DelegatedWalletsClient.d.ts +0 -32
- package/codegen/Wallets/DelegatedWalletsClient.js +0 -325
- package/codegen/Wallets/WalletsClient.d.ts +0 -24
- package/codegen/Wallets/WalletsClient.js +0 -219
- package/codegen/Wallets/index.d.ts +0 -3
- package/codegen/Wallets/index.js +0 -19
- package/codegen/Wallets/types.d.ts +0 -101
- package/codegen/Wallets/types.js +0 -2
- package/codegen/datamodel/ApiKeys/errors.d.ts +0 -6
- package/codegen/datamodel/ApiKeys/errors.js +0 -15
- package/codegen/datamodel/ApiKeys/index.d.ts +0 -3
- package/codegen/datamodel/ApiKeys/index.js +0 -19
- package/codegen/datamodel/ApiKeys/responses.d.ts +0 -25
- package/codegen/datamodel/ApiKeys/responses.js +0 -2
- package/codegen/datamodel/ApiKeys/types.d.ts +0 -32
- package/codegen/datamodel/ApiKeys/types.js +0 -11
- package/codegen/datamodel/Assets/errors.d.ts +0 -11
- package/codegen/datamodel/Assets/errors.js +0 -17
- package/codegen/datamodel/Assets/index.d.ts +0 -3
- package/codegen/datamodel/Assets/index.js +0 -19
- package/codegen/datamodel/Assets/responses.d.ts +0 -47
- package/codegen/datamodel/Assets/responses.js +0 -2
- package/codegen/datamodel/Assets/types.d.ts +0 -225
- package/codegen/datamodel/Assets/types.js +0 -75
- package/codegen/datamodel/Auth/errors.js +0 -1
- package/codegen/datamodel/Auth/index.d.ts +0 -2
- package/codegen/datamodel/Auth/index.js +0 -18
- package/codegen/datamodel/Auth/responses.d.ts +0 -358
- package/codegen/datamodel/Auth/responses.js +0 -2
- package/codegen/datamodel/Auth/types.d.ts +0 -615
- package/codegen/datamodel/Auth/types.js +0 -127
- package/codegen/datamodel/BlockchainIndexing/errors.js +0 -1
- package/codegen/datamodel/BlockchainIndexing/index.d.ts +0 -1
- package/codegen/datamodel/BlockchainIndexing/index.js +0 -17
- package/codegen/datamodel/BlockchainIndexing/responses.js +0 -2
- package/codegen/datamodel/BlockchainIndexing/types.js +0 -1
- package/codegen/datamodel/Blockchains/errors.js +0 -1
- package/codegen/datamodel/Blockchains/index.d.ts +0 -2
- package/codegen/datamodel/Blockchains/index.js +0 -18
- package/codegen/datamodel/Blockchains/responses.d.ts +0 -12
- package/codegen/datamodel/Blockchains/responses.js +0 -2
- package/codegen/datamodel/Blockchains/types.d.ts +0 -270
- package/codegen/datamodel/Blockchains/types.js +0 -53
- package/codegen/datamodel/Callbacks/errors.js +0 -1
- package/codegen/datamodel/Callbacks/index.d.ts +0 -2
- package/codegen/datamodel/Callbacks/index.js +0 -18
- package/codegen/datamodel/Callbacks/responses.d.ts +0 -36
- package/codegen/datamodel/Callbacks/responses.js +0 -2
- package/codegen/datamodel/Callbacks/types.d.ts +0 -43
- package/codegen/datamodel/Callbacks/types.js +0 -39
- package/codegen/datamodel/Foundations/errors.d.ts +0 -131
- package/codegen/datamodel/Foundations/errors.js +0 -182
- package/codegen/datamodel/Foundations/index.d.ts +0 -2
- package/codegen/datamodel/Foundations/index.js +0 -18
- package/codegen/datamodel/Foundations/responses.js +0 -1
- package/codegen/datamodel/Foundations/types.d.ts +0 -9759
- package/codegen/datamodel/Foundations/types.js +0 -57755
- package/codegen/datamodel/Orgs/errors.js +0 -1
- package/codegen/datamodel/Orgs/index.d.ts +0 -2
- package/codegen/datamodel/Orgs/index.js +0 -18
- package/codegen/datamodel/Orgs/responses.d.ts +0 -45
- package/codegen/datamodel/Orgs/responses.js +0 -2
- package/codegen/datamodel/Orgs/types.d.ts +0 -240
- package/codegen/datamodel/Orgs/types.js +0 -39
- package/codegen/datamodel/Permissions/errors.js +0 -1
- package/codegen/datamodel/Permissions/index.d.ts +0 -2
- package/codegen/datamodel/Permissions/index.js +0 -18
- package/codegen/datamodel/Permissions/responses.d.ts +0 -75
- package/codegen/datamodel/Permissions/responses.js +0 -2
- package/codegen/datamodel/Permissions/types.d.ts +0 -93
- package/codegen/datamodel/Permissions/types.js +0 -43
- package/codegen/datamodel/PolicyExecution/errors.d.ts +0 -11
- package/codegen/datamodel/PolicyExecution/errors.js +0 -17
- package/codegen/datamodel/PolicyExecution/index.d.ts +0 -3
- package/codegen/datamodel/PolicyExecution/index.js +0 -19
- package/codegen/datamodel/PolicyExecution/responses.d.ts +0 -19
- package/codegen/datamodel/PolicyExecution/responses.js +0 -2
- package/codegen/datamodel/PolicyExecution/types.d.ts +0 -60
- package/codegen/datamodel/PolicyExecution/types.js +0 -17
- package/codegen/datamodel/PolicyManagement/errors.js +0 -1
- package/codegen/datamodel/PolicyManagement/index.d.ts +0 -2
- package/codegen/datamodel/PolicyManagement/index.js +0 -18
- package/codegen/datamodel/PolicyManagement/responses.d.ts +0 -83
- package/codegen/datamodel/PolicyManagement/responses.js +0 -2
- package/codegen/datamodel/PolicyManagement/types.d.ts +0 -391
- package/codegen/datamodel/PolicyManagement/types.js +0 -95
- package/codegen/datamodel/PublicKeys/errors.js +0 -1
- package/codegen/datamodel/PublicKeys/index.d.ts +0 -2
- package/codegen/datamodel/PublicKeys/index.js +0 -18
- package/codegen/datamodel/PublicKeys/responses.d.ts +0 -56
- package/codegen/datamodel/PublicKeys/responses.js +0 -2
- package/codegen/datamodel/PublicKeys/types.d.ts +0 -223
- package/codegen/datamodel/PublicKeys/types.js +0 -59
- package/codegen/datamodel/Signers/errors.js +0 -1
- package/codegen/datamodel/Signers/index.d.ts +0 -2
- package/codegen/datamodel/Signers/index.js +0 -18
- package/codegen/datamodel/Signers/responses.d.ts +0 -27
- package/codegen/datamodel/Signers/responses.js +0 -2
- package/codegen/datamodel/Signers/types.d.ts +0 -21
- package/codegen/datamodel/Signers/types.js +0 -2
- package/codegen/datamodel/Wallets/errors.js +0 -1
- package/codegen/datamodel/Wallets/index.d.ts +0 -2
- package/codegen/datamodel/Wallets/index.js +0 -18
- package/codegen/datamodel/Wallets/responses.d.ts +0 -92
- package/codegen/datamodel/Wallets/responses.js +0 -2
- package/codegen/datamodel/Wallets/types.d.ts +0 -677
- package/codegen/datamodel/Wallets/types.js +0 -251
- package/dfnsApiClient.d.ts +0 -39
- package/dfnsApiClient.js +0 -63
- package/dfnsAuthenticator.d.ts +0 -17
- package/dfnsAuthenticator.js +0 -29
- package/dfnsDelegatedApiClient.d.ts +0 -38
- package/dfnsDelegatedApiClient.js +0 -63
- package/dfnsError.d.ts +0 -5
- package/dfnsError.js +0 -11
- package/generated/policies/client.d.ts +0 -13
- package/generated/policies/client.js +0 -92
- package/generated/policies/delegatedClient.d.ts +0 -18
- package/generated/policies/delegatedClient.js +0 -153
- package/generated/policies/index.d.ts +0 -3
- package/generated/policies/index.js +0 -19
- package/generated/policies/types.js +0 -2
- package/generated/signers/client.d.ts +0 -7
- package/generated/signers/client.js +0 -22
- package/generated/signers/delegatedClient.d.ts +0 -7
- package/generated/signers/delegatedClient.js +0 -22
- package/generated/signers/index.d.ts +0 -3
- package/generated/signers/index.js +0 -19
- package/generated/signers/types.js +0 -2
- package/generated/wallets/client.d.ts +0 -25
- package/generated/wallets/client.js +0 -228
- package/generated/wallets/delegatedClient.d.ts +0 -34
- package/generated/wallets/delegatedClient.js +0 -349
- package/generated/wallets/index.d.ts +0 -3
- package/generated/wallets/index.js +0 -19
- package/generated/wallets/types.js +0 -2
- package/generated/webhooks/client.d.ts +0 -14
- package/generated/webhooks/client.js +0 -103
- package/generated/webhooks/delegatedClient.d.ts +0 -19
- package/generated/webhooks/delegatedClient.js +0 -164
- package/generated/webhooks/index.d.ts +0 -3
- package/generated/webhooks/index.js +0 -19
- package/generated/webhooks/types.js +0 -2
- package/index.d.ts +0 -7
- package/index.js +0 -23
- package/signer.d.ts +0 -52
- package/signer.js +0 -2
- package/store.d.ts +0 -79
- package/store.js +0 -2
- package/types/policies.d.ts +0 -1
- package/types/policies.js +0 -17
- package/types/signers.d.ts +0 -1
- package/types/signers.js +0 -17
- package/types/wallets.d.ts +0 -1
- package/types/wallets.js +0 -17
- package/types/webhooks.d.ts +0 -1
- package/types/webhooks.js +0 -17
- package/utils/base64.d.ts +0 -3
- package/utils/base64.js +0 -20
- package/utils/fetch.d.ts +0 -12
- package/utils/fetch.js +0 -94
- package/utils/index.d.ts +0 -4
- package/utils/index.js +0 -20
- package/utils/nonce.d.ts +0 -1
- package/utils/nonce.js +0 -12
- package/utils/url.d.ts +0 -4
- package/utils/url.js +0 -16
- /package/{codegen/datamodel/Auth/errors.d.ts → README.md} +0 -0
- /package/codegen/datamodel/{BlockchainIndexing/errors.d.ts → Auth/errors.ts} +0 -0
- /package/codegen/datamodel/BlockchainIndexing/{types.d.ts → errors.ts} +0 -0
- /package/codegen/datamodel/{Blockchains/errors.d.ts → BlockchainIndexing/types.ts} +0 -0
- /package/codegen/datamodel/{Callbacks/errors.d.ts → Blockchains/errors.ts} +0 -0
- /package/codegen/datamodel/{Foundations/responses.d.ts → Callbacks/errors.ts} +0 -0
- /package/codegen/datamodel/{Orgs/errors.d.ts → Foundations/responses.ts} +0 -0
- /package/codegen/datamodel/{Permissions/errors.d.ts → Orgs/errors.ts} +0 -0
- /package/codegen/datamodel/{PolicyManagement/errors.d.ts → Permissions/errors.ts} +0 -0
- /package/codegen/datamodel/{PublicKeys/errors.d.ts → PolicyManagement/errors.ts} +0 -0
- /package/codegen/datamodel/{Signers/errors.d.ts → PublicKeys/errors.ts} +0 -0
- /package/codegen/datamodel/{Wallets/errors.d.ts → Signers/errors.ts} +0 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { EntityId, IsoDatetime } from '../Foundations'
|
|
2
|
+
|
|
3
|
+
// FIXME: Missing documentation for Permission
|
|
4
|
+
export type Permission = {
|
|
5
|
+
// FIXME: Missing documentation for id
|
|
6
|
+
id: EntityId
|
|
7
|
+
|
|
8
|
+
// FIXME: Missing documentation for orgId
|
|
9
|
+
orgId: EntityId
|
|
10
|
+
|
|
11
|
+
// FIXME: Missing documentation for name
|
|
12
|
+
name: string
|
|
13
|
+
|
|
14
|
+
// FIXME: Missing documentation for operations
|
|
15
|
+
operations: string[]
|
|
16
|
+
|
|
17
|
+
// FIXME: Missing documentation for status
|
|
18
|
+
status: PermissionStatus
|
|
19
|
+
|
|
20
|
+
// FIXME: Missing documentation for resourceId
|
|
21
|
+
resourceId?: string
|
|
22
|
+
|
|
23
|
+
// FIXME: Missing documentation for isImmutable
|
|
24
|
+
isImmutable: boolean
|
|
25
|
+
|
|
26
|
+
// FIXME: Missing documentation for predicates
|
|
27
|
+
predicates?: PermissionPredicate[]
|
|
28
|
+
|
|
29
|
+
// FIXME: Missing documentation for dateCreated
|
|
30
|
+
dateCreated: IsoDatetime
|
|
31
|
+
|
|
32
|
+
// FIXME: Missing documentation for dateUpdated
|
|
33
|
+
dateUpdated: IsoDatetime
|
|
34
|
+
|
|
35
|
+
// FIXME: Missing documentation for isArchived
|
|
36
|
+
isArchived: boolean
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// FIXME: Missing documentation for PermissionPredicate
|
|
40
|
+
export type PermissionPredicate = {
|
|
41
|
+
// FIXME: Missing documentation for id
|
|
42
|
+
id: EntityId
|
|
43
|
+
|
|
44
|
+
// FIXME: Missing documentation for permissionId
|
|
45
|
+
permissionId: EntityId
|
|
46
|
+
|
|
47
|
+
// FIXME: Missing documentation for fieldName
|
|
48
|
+
fieldName: string
|
|
49
|
+
|
|
50
|
+
// FIXME: Missing documentation for evaluatorKind
|
|
51
|
+
evaluatorKind: FieldEvaluatorKind
|
|
52
|
+
|
|
53
|
+
// FIXME: Missing documentation for parameters
|
|
54
|
+
parameters: string[]
|
|
55
|
+
|
|
56
|
+
// FIXME: Missing documentation for isImmutable
|
|
57
|
+
isImmutable: boolean
|
|
58
|
+
|
|
59
|
+
// FIXME: Missing documentation for dateCreated
|
|
60
|
+
dateCreated: IsoDatetime
|
|
61
|
+
|
|
62
|
+
// FIXME: Missing documentation for dateUpdated
|
|
63
|
+
dateUpdated: IsoDatetime
|
|
64
|
+
|
|
65
|
+
// FIXME: Missing documentation for isArchived
|
|
66
|
+
isArchived: boolean
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// FIXME: Missing documentation for PermissionAssignment
|
|
70
|
+
export type PermissionAssignment = {
|
|
71
|
+
// FIXME: Missing documentation for id
|
|
72
|
+
id: EntityId
|
|
73
|
+
|
|
74
|
+
// FIXME: Missing documentation for permissionId
|
|
75
|
+
permissionId: string
|
|
76
|
+
|
|
77
|
+
// FIXME: Missing documentation for identityId
|
|
78
|
+
identityId: EntityId
|
|
79
|
+
|
|
80
|
+
// FIXME: Missing documentation for dateCreated
|
|
81
|
+
dateCreated: IsoDatetime
|
|
82
|
+
|
|
83
|
+
// FIXME: Missing documentation for dateUpdated
|
|
84
|
+
dateUpdated: IsoDatetime
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// FIXME: Missing documentation for DeletionAcknowledgement
|
|
88
|
+
export type DeletionAcknowledgement = {
|
|
89
|
+
// FIXME: Missing documentation for id
|
|
90
|
+
id: string
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// FIXME: Missing documentation for ResourceOwnership
|
|
94
|
+
export type ResourceOwnership = {
|
|
95
|
+
// FIXME: Missing documentation for id
|
|
96
|
+
id: EntityId
|
|
97
|
+
|
|
98
|
+
// FIXME: Missing documentation for orgId
|
|
99
|
+
orgId: EntityId
|
|
100
|
+
|
|
101
|
+
// FIXME: Missing documentation for resourceId
|
|
102
|
+
resourceId: EntityId
|
|
103
|
+
|
|
104
|
+
// FIXME: Missing documentation for resourceKind
|
|
105
|
+
resourceKind: string
|
|
106
|
+
|
|
107
|
+
// FIXME: Missing documentation for ownerId
|
|
108
|
+
ownerId: EntityId
|
|
109
|
+
|
|
110
|
+
// FIXME: Missing documentation for ownerKind
|
|
111
|
+
ownerKind: OwnerKind
|
|
112
|
+
|
|
113
|
+
// FIXME: Missing documentation for dateCreated
|
|
114
|
+
dateCreated: IsoDatetime
|
|
115
|
+
|
|
116
|
+
// FIXME: Missing documentation for dateUpdated
|
|
117
|
+
dateUpdated: IsoDatetime
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// FIXME: Missing documentation for CreatePermissionInput
|
|
121
|
+
export type CreatePermissionInput = {
|
|
122
|
+
// FIXME: Missing documentation for name
|
|
123
|
+
name: string
|
|
124
|
+
|
|
125
|
+
// FIXME: Missing documentation for operations
|
|
126
|
+
operations: string[]
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// FIXME: Missing documentation for UpdatePermissionInput
|
|
130
|
+
export type UpdatePermissionInput = {
|
|
131
|
+
// FIXME: Missing documentation for name
|
|
132
|
+
name?: string
|
|
133
|
+
|
|
134
|
+
// FIXME: Missing documentation for operations
|
|
135
|
+
operations?: string[]
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// FIXME: Missing documentation for ArchivePermissionInput
|
|
139
|
+
export type ArchivePermissionInput = {
|
|
140
|
+
// FIXME: Missing documentation for isArchived
|
|
141
|
+
isArchived: boolean
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// FIXME: Missing documentation for CreatePermissionPredicateInput
|
|
145
|
+
export type CreatePermissionPredicateInput = {
|
|
146
|
+
// FIXME: Missing documentation for fieldName
|
|
147
|
+
fieldName: string
|
|
148
|
+
|
|
149
|
+
// FIXME: Missing documentation for evaluatorKind
|
|
150
|
+
evaluatorKind: FieldEvaluatorKind
|
|
151
|
+
|
|
152
|
+
// FIXME: Missing documentation for parameters
|
|
153
|
+
parameters: string[]
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// FIXME: Missing documentation for UpdatePermissionPredicateInput
|
|
157
|
+
export type UpdatePermissionPredicateInput = {
|
|
158
|
+
// FIXME: Missing documentation for fieldName
|
|
159
|
+
fieldName?: string
|
|
160
|
+
|
|
161
|
+
// FIXME: Missing documentation for evaluatorKind
|
|
162
|
+
evaluatorKind?: FieldEvaluatorKind
|
|
163
|
+
|
|
164
|
+
// FIXME: Missing documentation for parameters
|
|
165
|
+
parameters?: string[]
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// FIXME: Missing documentation for ArchivePermissionPredicateInput
|
|
169
|
+
export type ArchivePermissionPredicateInput = {
|
|
170
|
+
// FIXME: Missing documentation for isArchived
|
|
171
|
+
isArchived: boolean
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// FIXME: Missing documentation for CreatePermissionAssignmentInput
|
|
175
|
+
export type CreatePermissionAssignmentInput = {
|
|
176
|
+
// FIXME: Missing documentation for permissionId
|
|
177
|
+
permissionId: string
|
|
178
|
+
|
|
179
|
+
// FIXME: Missing documentation for identityId
|
|
180
|
+
identityId: string
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// FIXME: Missing documentation for FieldEvaluatorKind
|
|
184
|
+
export enum FieldEvaluatorKind {
|
|
185
|
+
// FIXME: Missing documentation for ContainsAll
|
|
186
|
+
ContainsAll = 'ContainsAll',
|
|
187
|
+
// FIXME: Missing documentation for ContainsOneOf
|
|
188
|
+
ContainsOneOf = 'ContainsOneOf',
|
|
189
|
+
// FIXME: Missing documentation for DateAfter
|
|
190
|
+
DateAfter = 'DateAfter',
|
|
191
|
+
// FIXME: Missing documentation for DateBefore
|
|
192
|
+
DateBefore = 'DateBefore',
|
|
193
|
+
// FIXME: Missing documentation for Is
|
|
194
|
+
Is = 'Is',
|
|
195
|
+
// FIXME: Missing documentation for ValueGreaterThan
|
|
196
|
+
ValueGreaterThan = 'ValueGreaterThan',
|
|
197
|
+
// FIXME: Missing documentation for ValueLessThan
|
|
198
|
+
ValueLessThan = 'ValueLessThan',
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// FIXME: Missing documentation for PermissionStatus
|
|
202
|
+
export enum PermissionStatus {
|
|
203
|
+
// FIXME: Missing documentation for Active
|
|
204
|
+
Active = 'Active',
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// FIXME: Missing documentation for OwnerKind
|
|
208
|
+
export enum OwnerKind {
|
|
209
|
+
// FIXME: Missing documentation for LegalPerson
|
|
210
|
+
LegalPerson = 'LegalPerson',
|
|
211
|
+
// FIXME: Missing documentation for NaturalPerson
|
|
212
|
+
NaturalPerson = 'NaturalPerson',
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// FIXME: Missing documentation for ResourceKind
|
|
216
|
+
export enum ResourceKind {
|
|
217
|
+
// FIXME: Missing documentation for Wallet
|
|
218
|
+
Wallet = 'Wallet',
|
|
219
|
+
// FIXME: Missing documentation for PublicKey
|
|
220
|
+
PublicKey = 'PublicKey',
|
|
221
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DfnsError } from '../Foundations'
|
|
2
|
+
export class PolicyApprovalNotAllowedError extends DfnsError {
|
|
3
|
+
name: string = 'PolicyApprovalNotAllowedError'
|
|
4
|
+
// FIXME: Missing documentation for serviceName
|
|
5
|
+
serviceName: string
|
|
6
|
+
|
|
7
|
+
// FIXME: Missing documentation for message
|
|
8
|
+
message: string
|
|
9
|
+
|
|
10
|
+
// FIXME: Missing documentation for causes
|
|
11
|
+
causes?: string[]
|
|
12
|
+
|
|
13
|
+
// FIXME: Missing documentation for shouldTriggerInvestigaton
|
|
14
|
+
shouldTriggerInvestigaton: boolean
|
|
15
|
+
|
|
16
|
+
// FIXME: Missing documentation for isDfnsError
|
|
17
|
+
isDfnsError: boolean = true
|
|
18
|
+
|
|
19
|
+
// FIXME: Missing documentation for httpStatus
|
|
20
|
+
httpStatus: number = 403
|
|
21
|
+
|
|
22
|
+
// FIXME: Missing documentation for errorName
|
|
23
|
+
errorName: string = 'Policy Approval Not Allowed'
|
|
24
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BadRequestError,
|
|
3
|
+
EntityNotFoundError,
|
|
4
|
+
ForbiddenError,
|
|
5
|
+
UnauthorizedError,
|
|
6
|
+
} from '../Foundations'
|
|
7
|
+
import { PolicyControlExecution } from './types'
|
|
8
|
+
|
|
9
|
+
// Response for ListPolicyControlExecutions
|
|
10
|
+
|
|
11
|
+
export type ListPolicyControlExecutionsSuccess = {
|
|
12
|
+
items: PolicyControlExecution[]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type ListPolicyControlExecutionsError = {
|
|
16
|
+
error:
|
|
17
|
+
| UnauthorizedError
|
|
18
|
+
| ForbiddenError
|
|
19
|
+
| BadRequestError
|
|
20
|
+
| EntityNotFoundError
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type ListPolicyControlExecutionsResponse =
|
|
24
|
+
| ListPolicyControlExecutionsSuccess
|
|
25
|
+
| ListPolicyControlExecutionsError
|
|
26
|
+
|
|
27
|
+
// Response for GetPolicyControlExecutionById
|
|
28
|
+
|
|
29
|
+
export type GetPolicyControlExecutionByIdSuccess = PolicyControlExecution
|
|
30
|
+
|
|
31
|
+
export type GetPolicyControlExecutionByIdError = {
|
|
32
|
+
error:
|
|
33
|
+
| EntityNotFoundError
|
|
34
|
+
| UnauthorizedError
|
|
35
|
+
| ForbiddenError
|
|
36
|
+
| BadRequestError
|
|
37
|
+
| EntityNotFoundError
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type GetPolicyControlExecutionByIdResponse =
|
|
41
|
+
| GetPolicyControlExecutionByIdSuccess
|
|
42
|
+
| GetPolicyControlExecutionByIdError
|
|
43
|
+
|
|
44
|
+
// Response for UpdatePolicyControlExecution
|
|
45
|
+
|
|
46
|
+
export type UpdatePolicyControlExecutionSuccess = PolicyControlExecution
|
|
47
|
+
|
|
48
|
+
export type UpdatePolicyControlExecutionError = {
|
|
49
|
+
error:
|
|
50
|
+
| EntityNotFoundError
|
|
51
|
+
| UnauthorizedError
|
|
52
|
+
| ForbiddenError
|
|
53
|
+
| BadRequestError
|
|
54
|
+
| EntityNotFoundError
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type UpdatePolicyControlExecutionResponse =
|
|
58
|
+
| UpdatePolicyControlExecutionSuccess
|
|
59
|
+
| UpdatePolicyControlExecutionError
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DocumentSnapshot,
|
|
3
|
+
EntityId,
|
|
4
|
+
InitiatorKind,
|
|
5
|
+
IsoDatetime,
|
|
6
|
+
} from '../Foundations'
|
|
7
|
+
import { PolicyActivityKind, PolicyControlKind } from '../PolicyManagement'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated use the new policy engine instead
|
|
11
|
+
*/
|
|
12
|
+
export type PolicyExecution = {
|
|
13
|
+
// FIXME: Missing documentation for id
|
|
14
|
+
id: EntityId
|
|
15
|
+
|
|
16
|
+
// FIXME: Missing documentation for kind
|
|
17
|
+
kind: PolicyActivityKind
|
|
18
|
+
|
|
19
|
+
// FIXME: Missing documentation for status
|
|
20
|
+
status: ExecutionStatus
|
|
21
|
+
|
|
22
|
+
// FIXME: Missing documentation for orgId
|
|
23
|
+
orgId: EntityId
|
|
24
|
+
|
|
25
|
+
// FIXME: Missing documentation for dateCreated
|
|
26
|
+
dateCreated: IsoDatetime
|
|
27
|
+
|
|
28
|
+
// FIXME: Missing documentation for initiatorKind
|
|
29
|
+
initiatorKind: InitiatorKind
|
|
30
|
+
|
|
31
|
+
// FIXME: Missing documentation for initiatingEventId
|
|
32
|
+
initiatingEventId: EntityId
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Applied poliies stored along with PolicyExecution status as-raw-json-string. This ensures that even if somebody tampers with policy, the audit log would have actual-literal representation of what was executed.
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
documentedPolicies?: DocumentSnapshot[]
|
|
39
|
+
|
|
40
|
+
// FIXME: Missing documentation for documentedActivity
|
|
41
|
+
documentedActivity: DocumentSnapshot
|
|
42
|
+
|
|
43
|
+
// FIXME: Missing documentation for controlExecutions
|
|
44
|
+
controlExecutions?: PolicyControlExecution[]
|
|
45
|
+
|
|
46
|
+
// FIXME: Missing documentation for policyId
|
|
47
|
+
policyId: EntityId
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated use the new policy engine instead
|
|
52
|
+
*/
|
|
53
|
+
export type PolicyControlExecution = {
|
|
54
|
+
// FIXME: Missing documentation for id
|
|
55
|
+
id: EntityId
|
|
56
|
+
|
|
57
|
+
// FIXME: Missing documentation for status
|
|
58
|
+
status: ExecutionStatus
|
|
59
|
+
|
|
60
|
+
// FIXME: Missing documentation for controlId
|
|
61
|
+
controlId: EntityId
|
|
62
|
+
|
|
63
|
+
// FIXME: Missing documentation for dateExecuted
|
|
64
|
+
dateExecuted: IsoDatetime
|
|
65
|
+
|
|
66
|
+
// FIXME: Missing documentation for dateFullfiled
|
|
67
|
+
dateFullfiled?: IsoDatetime
|
|
68
|
+
|
|
69
|
+
// FIXME: Missing documentation for policyExecutionId
|
|
70
|
+
policyExecutionId: EntityId
|
|
71
|
+
|
|
72
|
+
// FIXME: Missing documentation for approvals
|
|
73
|
+
approvals?: string[]
|
|
74
|
+
|
|
75
|
+
// FIXME: Missing documentation for documentedActivity
|
|
76
|
+
documentedActivity: DocumentSnapshot
|
|
77
|
+
|
|
78
|
+
// FIXME: Missing documentation for controlKind
|
|
79
|
+
controlKind: PolicyControlKind
|
|
80
|
+
|
|
81
|
+
// FIXME: Missing documentation for author
|
|
82
|
+
author: EntityId
|
|
83
|
+
|
|
84
|
+
// FIXME: Missing documentation for approverUsernames
|
|
85
|
+
approverUsernames?: string[]
|
|
86
|
+
|
|
87
|
+
// FIXME: Missing documentation for activityKind
|
|
88
|
+
activityKind: PolicyActivityKind
|
|
89
|
+
|
|
90
|
+
// FIXME: Missing documentation for numApprovals
|
|
91
|
+
numApprovals?: number
|
|
92
|
+
|
|
93
|
+
// FIXME: Missing documentation for activityId
|
|
94
|
+
activityId: string
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated use the new policy engine instead
|
|
99
|
+
*/
|
|
100
|
+
export type AppraisableActivity = {}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated use the new policy engine instead
|
|
104
|
+
*/
|
|
105
|
+
export type UpdatePolicyControlExecutionInput = {
|
|
106
|
+
// FIXME: Missing documentation for status
|
|
107
|
+
status: ExecutionStatus
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated use the new policy engine instead
|
|
112
|
+
*/
|
|
113
|
+
export enum ExecutionStatus {
|
|
114
|
+
// FIXME: Missing documentation for Awaiting
|
|
115
|
+
Awaiting = 'Awaiting',
|
|
116
|
+
// FIXME: Missing documentation for Passed
|
|
117
|
+
Passed = 'Passed',
|
|
118
|
+
// FIXME: Missing documentation for Failed
|
|
119
|
+
Failed = 'Failed',
|
|
120
|
+
// FIXME: Missing documentation for Timedout
|
|
121
|
+
Timedout = 'Timedout',
|
|
122
|
+
}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BadRequestError,
|
|
3
|
+
EntityNotFoundError,
|
|
4
|
+
ForbiddenError,
|
|
5
|
+
UnauthorizedError,
|
|
6
|
+
} from '../Foundations'
|
|
7
|
+
import { Policy, PolicyControl, PolicyRule } from './types'
|
|
8
|
+
|
|
9
|
+
// Response for CreatePolicy
|
|
10
|
+
|
|
11
|
+
export type CreatePolicySuccess = Policy
|
|
12
|
+
|
|
13
|
+
export type CreatePolicyError = {
|
|
14
|
+
error:
|
|
15
|
+
| BadRequestError
|
|
16
|
+
| UnauthorizedError
|
|
17
|
+
| ForbiddenError
|
|
18
|
+
| BadRequestError
|
|
19
|
+
| EntityNotFoundError
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type CreatePolicyResponse = CreatePolicySuccess | CreatePolicyError
|
|
23
|
+
|
|
24
|
+
// Response for UpdatePolicy
|
|
25
|
+
|
|
26
|
+
export type UpdatePolicySuccess = Policy
|
|
27
|
+
|
|
28
|
+
export type UpdatePolicyError = {
|
|
29
|
+
error:
|
|
30
|
+
| BadRequestError
|
|
31
|
+
| EntityNotFoundError
|
|
32
|
+
| UnauthorizedError
|
|
33
|
+
| ForbiddenError
|
|
34
|
+
| BadRequestError
|
|
35
|
+
| EntityNotFoundError
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type UpdatePolicyResponse = UpdatePolicySuccess | UpdatePolicyError
|
|
39
|
+
|
|
40
|
+
// Response for GetPolicyById
|
|
41
|
+
|
|
42
|
+
export type GetPolicyByIdSuccess = Policy
|
|
43
|
+
|
|
44
|
+
export type GetPolicyByIdError = {
|
|
45
|
+
error:
|
|
46
|
+
| EntityNotFoundError
|
|
47
|
+
| UnauthorizedError
|
|
48
|
+
| ForbiddenError
|
|
49
|
+
| BadRequestError
|
|
50
|
+
| EntityNotFoundError
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type GetPolicyByIdResponse = GetPolicyByIdSuccess | GetPolicyByIdError
|
|
54
|
+
|
|
55
|
+
// Response for ListPolicies
|
|
56
|
+
|
|
57
|
+
export type ListPoliciesSuccess = {
|
|
58
|
+
items: Policy[]
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type ListPoliciesError = {
|
|
62
|
+
error:
|
|
63
|
+
| UnauthorizedError
|
|
64
|
+
| ForbiddenError
|
|
65
|
+
| BadRequestError
|
|
66
|
+
| EntityNotFoundError
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type ListPoliciesResponse = ListPoliciesSuccess | ListPoliciesError
|
|
70
|
+
|
|
71
|
+
// Response for ArchivePolicy
|
|
72
|
+
|
|
73
|
+
export type ArchivePolicySuccess = Policy
|
|
74
|
+
|
|
75
|
+
export type ArchivePolicyError = {
|
|
76
|
+
error:
|
|
77
|
+
| EntityNotFoundError
|
|
78
|
+
| UnauthorizedError
|
|
79
|
+
| ForbiddenError
|
|
80
|
+
| BadRequestError
|
|
81
|
+
| EntityNotFoundError
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type ArchivePolicyResponse = ArchivePolicySuccess | ArchivePolicyError
|
|
85
|
+
|
|
86
|
+
// Response for CreatePolicyControl
|
|
87
|
+
|
|
88
|
+
export type CreatePolicyControlSuccess = PolicyControl
|
|
89
|
+
|
|
90
|
+
export type CreatePolicyControlError = {
|
|
91
|
+
error:
|
|
92
|
+
| BadRequestError
|
|
93
|
+
| UnauthorizedError
|
|
94
|
+
| ForbiddenError
|
|
95
|
+
| BadRequestError
|
|
96
|
+
| EntityNotFoundError
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export type CreatePolicyControlResponse =
|
|
100
|
+
| CreatePolicyControlSuccess
|
|
101
|
+
| CreatePolicyControlError
|
|
102
|
+
|
|
103
|
+
// Response for UpdatePolicyControl
|
|
104
|
+
|
|
105
|
+
export type UpdatePolicyControlSuccess = PolicyControl
|
|
106
|
+
|
|
107
|
+
export type UpdatePolicyControlError = {
|
|
108
|
+
error:
|
|
109
|
+
| BadRequestError
|
|
110
|
+
| EntityNotFoundError
|
|
111
|
+
| UnauthorizedError
|
|
112
|
+
| ForbiddenError
|
|
113
|
+
| BadRequestError
|
|
114
|
+
| EntityNotFoundError
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type UpdatePolicyControlResponse =
|
|
118
|
+
| UpdatePolicyControlSuccess
|
|
119
|
+
| UpdatePolicyControlError
|
|
120
|
+
|
|
121
|
+
// Response for GetPolicyControlById
|
|
122
|
+
|
|
123
|
+
export type GetPolicyControlByIdSuccess = PolicyControl
|
|
124
|
+
|
|
125
|
+
export type GetPolicyControlByIdError = {
|
|
126
|
+
error:
|
|
127
|
+
| EntityNotFoundError
|
|
128
|
+
| UnauthorizedError
|
|
129
|
+
| ForbiddenError
|
|
130
|
+
| BadRequestError
|
|
131
|
+
| EntityNotFoundError
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export type GetPolicyControlByIdResponse =
|
|
135
|
+
| GetPolicyControlByIdSuccess
|
|
136
|
+
| GetPolicyControlByIdError
|
|
137
|
+
|
|
138
|
+
// Response for ListPolicyControls
|
|
139
|
+
|
|
140
|
+
export type ListPolicyControlsSuccess = {
|
|
141
|
+
items: PolicyControl[]
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type ListPolicyControlsError = {
|
|
145
|
+
error:
|
|
146
|
+
| UnauthorizedError
|
|
147
|
+
| ForbiddenError
|
|
148
|
+
| BadRequestError
|
|
149
|
+
| EntityNotFoundError
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export type ListPolicyControlsResponse =
|
|
153
|
+
| ListPolicyControlsSuccess
|
|
154
|
+
| ListPolicyControlsError
|
|
155
|
+
|
|
156
|
+
// Response for ArchivePolicyControl
|
|
157
|
+
|
|
158
|
+
export type ArchivePolicyControlSuccess = PolicyControl
|
|
159
|
+
|
|
160
|
+
export type ArchivePolicyControlError = {
|
|
161
|
+
error:
|
|
162
|
+
| EntityNotFoundError
|
|
163
|
+
| UnauthorizedError
|
|
164
|
+
| ForbiddenError
|
|
165
|
+
| BadRequestError
|
|
166
|
+
| EntityNotFoundError
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type ArchivePolicyControlResponse =
|
|
170
|
+
| ArchivePolicyControlSuccess
|
|
171
|
+
| ArchivePolicyControlError
|
|
172
|
+
|
|
173
|
+
// Response for CreatePolicyRule
|
|
174
|
+
|
|
175
|
+
export type CreatePolicyRuleSuccess = PolicyRule
|
|
176
|
+
|
|
177
|
+
export type CreatePolicyRuleError = {
|
|
178
|
+
error:
|
|
179
|
+
| BadRequestError
|
|
180
|
+
| UnauthorizedError
|
|
181
|
+
| ForbiddenError
|
|
182
|
+
| BadRequestError
|
|
183
|
+
| EntityNotFoundError
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export type CreatePolicyRuleResponse =
|
|
187
|
+
| CreatePolicyRuleSuccess
|
|
188
|
+
| CreatePolicyRuleError
|
|
189
|
+
|
|
190
|
+
// Response for UpdatePolicyRule
|
|
191
|
+
|
|
192
|
+
export type UpdatePolicyRuleSuccess = PolicyRule
|
|
193
|
+
|
|
194
|
+
export type UpdatePolicyRuleError = {
|
|
195
|
+
error:
|
|
196
|
+
| UnauthorizedError
|
|
197
|
+
| ForbiddenError
|
|
198
|
+
| BadRequestError
|
|
199
|
+
| EntityNotFoundError
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export type UpdatePolicyRuleResponse =
|
|
203
|
+
| UpdatePolicyRuleSuccess
|
|
204
|
+
| UpdatePolicyRuleError
|
|
205
|
+
|
|
206
|
+
// Response for GetPolicyRuleById
|
|
207
|
+
|
|
208
|
+
export type GetPolicyRuleByIdSuccess = PolicyRule
|
|
209
|
+
|
|
210
|
+
export type GetPolicyRuleByIdError = {
|
|
211
|
+
error:
|
|
212
|
+
| UnauthorizedError
|
|
213
|
+
| ForbiddenError
|
|
214
|
+
| BadRequestError
|
|
215
|
+
| EntityNotFoundError
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export type GetPolicyRuleByIdResponse =
|
|
219
|
+
| GetPolicyRuleByIdSuccess
|
|
220
|
+
| GetPolicyRuleByIdError
|
|
221
|
+
|
|
222
|
+
// Response for ListPolicyRules
|
|
223
|
+
|
|
224
|
+
export type ListPolicyRulesSuccess = {
|
|
225
|
+
items: PolicyRule[]
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export type ListPolicyRulesError = {
|
|
229
|
+
error:
|
|
230
|
+
| UnauthorizedError
|
|
231
|
+
| ForbiddenError
|
|
232
|
+
| BadRequestError
|
|
233
|
+
| EntityNotFoundError
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export type ListPolicyRulesResponse =
|
|
237
|
+
| ListPolicyRulesSuccess
|
|
238
|
+
| ListPolicyRulesError
|
|
239
|
+
|
|
240
|
+
// Response for ArchivePolicyRule
|
|
241
|
+
|
|
242
|
+
export type ArchivePolicyRuleSuccess = PolicyRule
|
|
243
|
+
|
|
244
|
+
export type ArchivePolicyRuleError = {
|
|
245
|
+
error:
|
|
246
|
+
| EntityNotFoundError
|
|
247
|
+
| UnauthorizedError
|
|
248
|
+
| ForbiddenError
|
|
249
|
+
| BadRequestError
|
|
250
|
+
| EntityNotFoundError
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export type ArchivePolicyRuleResponse =
|
|
254
|
+
| ArchivePolicyRuleSuccess
|
|
255
|
+
| ArchivePolicyRuleError
|