@flowcore/sdk 1.49.0 → 1.51.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.
- package/CHANGELOG.md +31 -0
- package/README.md +47 -0
- package/esm/_dnt.shims.d.ts +1 -1
- package/esm/commands/adapter/reset-adapter.d.ts +52 -0
- package/esm/commands/adapter/reset-adapter.d.ts.map +1 -0
- package/esm/commands/adapter/reset-adapter.js +38 -0
- package/esm/commands/ai-agent-coordinator/conversation-stream.command.js +1 -6
- package/esm/commands/api-key/api-key.create.js +8 -21
- package/esm/commands/api-key/api-key.delete.js +4 -12
- package/esm/commands/api-key/api-key.list.js +4 -12
- package/esm/commands/data-core/data-core.create.js +4 -12
- package/esm/commands/data-core/data-core.request-delete.js +4 -12
- package/esm/commands/event-type/event-type.create.js +4 -12
- package/esm/commands/event-type/event-type.request-delete.js +4 -12
- package/esm/commands/event-type/event-type.request-truncate.js +4 -12
- package/esm/commands/events/event.list.js +4 -12
- package/esm/commands/events/events.fetch-time-buckets-by-names.js +4 -12
- package/esm/commands/events/events.fetch.js +4 -12
- package/esm/commands/events/time-bucket.list.js +4 -12
- package/esm/commands/flow-type/flow-type.create.js +4 -12
- package/esm/commands/flow-type/flow-type.request-delete.js +4 -12
- package/esm/commands/iam/permissions/get-user-permissions.d.ts +48 -0
- package/esm/commands/iam/permissions/get-user-permissions.d.ts.map +1 -0
- package/esm/commands/iam/permissions/get-user-permissions.js +44 -0
- package/esm/commands/iam/policies/create-policy.d.ts +89 -0
- package/esm/commands/iam/policies/create-policy.d.ts.map +1 -0
- package/esm/commands/iam/policies/create-policy.js +68 -0
- package/esm/commands/iam/policies/get-policy.d.ts +35 -0
- package/esm/commands/iam/policies/get-policy.d.ts.map +1 -0
- package/esm/commands/iam/policies/get-policy.js +36 -0
- package/esm/commands/iam/policies/id/archive-policy.d.ts +45 -0
- package/esm/commands/iam/policies/id/archive-policy.d.ts.map +1 -0
- package/esm/commands/iam/policies/id/archive-policy.js +41 -0
- package/esm/commands/iam/policies/id/get-policy.d.ts +45 -0
- package/esm/commands/iam/policies/id/get-policy.d.ts.map +1 -0
- package/esm/commands/iam/policies/id/get-policy.js +39 -0
- package/esm/commands/iam/policies/id/update-policy.d.ts +53 -0
- package/esm/commands/iam/policies/id/update-policy.d.ts.map +1 -0
- package/esm/commands/iam/policies/id/update-policy.js +45 -0
- package/esm/commands/iam/policy-associations/get-key-policies.d.ts +35 -0
- package/esm/commands/iam/policy-associations/get-key-policies.d.ts.map +1 -0
- package/esm/commands/iam/policy-associations/get-key-policies.js +76 -0
- package/esm/commands/iam/policy-associations/get-organization-policies.d.ts +35 -0
- package/esm/commands/iam/policy-associations/get-organization-policies.d.ts.map +1 -0
- package/esm/commands/iam/policy-associations/get-organization-policies.js +79 -0
- package/esm/commands/iam/policy-associations/get-policy-associations.d.ts +83 -0
- package/esm/commands/iam/policy-associations/get-policy-associations.d.ts.map +1 -0
- package/esm/commands/iam/policy-associations/get-policy-associations.js +108 -0
- package/esm/commands/iam/policy-associations/get-role-policies.d.ts +35 -0
- package/esm/commands/iam/policy-associations/get-role-policies.d.ts.map +1 -0
- package/esm/commands/iam/policy-associations/get-role-policies.js +64 -0
- package/esm/commands/iam/policy-associations/get-user-policies.d.ts +37 -0
- package/esm/commands/iam/policy-associations/get-user-policies.d.ts.map +1 -0
- package/esm/commands/iam/policy-associations/get-user-policies.js +36 -0
- package/esm/commands/iam/policy-associations/link-key-policy.d.ts +53 -0
- package/esm/commands/iam/policy-associations/link-key-policy.d.ts.map +1 -0
- package/esm/commands/iam/policy-associations/link-key-policy.js +51 -0
- package/esm/commands/iam/policy-associations/link-role-policy.d.ts +53 -0
- package/esm/commands/iam/policy-associations/link-role-policy.d.ts.map +1 -0
- package/esm/commands/iam/policy-associations/link-role-policy.js +51 -0
- package/esm/commands/iam/policy-associations/link-user-policy.d.ts +53 -0
- package/esm/commands/iam/policy-associations/link-user-policy.d.ts.map +1 -0
- package/esm/commands/iam/policy-associations/link-user-policy.js +51 -0
- package/esm/commands/iam/policy-associations/unlink-key-policy.d.ts +41 -0
- package/esm/commands/iam/policy-associations/unlink-key-policy.d.ts.map +1 -0
- package/esm/commands/iam/policy-associations/unlink-key-policy.js +43 -0
- package/esm/commands/iam/policy-associations/unlink-role-policy.d.ts +41 -0
- package/esm/commands/iam/policy-associations/unlink-role-policy.d.ts.map +1 -0
- package/esm/commands/iam/policy-associations/unlink-role-policy.js +43 -0
- package/esm/commands/iam/policy-associations/unlink-user-policy.d.ts +41 -0
- package/esm/commands/iam/policy-associations/unlink-user-policy.d.ts.map +1 -0
- package/esm/commands/iam/policy-associations/unlink-user-policy.js +43 -0
- package/esm/commands/iam/role-associations/get-key-roles.d.ts +35 -0
- package/esm/commands/iam/role-associations/get-key-roles.d.ts.map +1 -0
- package/esm/commands/iam/role-associations/get-key-roles.js +36 -0
- package/esm/commands/iam/role-associations/get-organization-roles.d.ts +35 -0
- package/esm/commands/iam/role-associations/get-organization-roles.d.ts.map +1 -0
- package/esm/commands/iam/role-associations/get-organization-roles.js +53 -0
- package/esm/commands/iam/role-associations/get-role-associations.d.ts +70 -0
- package/esm/commands/iam/role-associations/get-role-associations.d.ts.map +1 -0
- package/esm/commands/iam/role-associations/get-role-associations.js +58 -0
- package/esm/commands/iam/role-associations/get-user-roles.d.ts +37 -0
- package/esm/commands/iam/role-associations/get-user-roles.d.ts.map +1 -0
- package/esm/commands/iam/role-associations/get-user-roles.js +41 -0
- package/esm/commands/iam/role-associations/link-key-role.d.ts +53 -0
- package/esm/commands/iam/role-associations/link-key-role.d.ts.map +1 -0
- package/esm/commands/iam/role-associations/link-key-role.js +51 -0
- package/esm/commands/iam/role-associations/link-user-role.d.ts +53 -0
- package/esm/commands/iam/role-associations/link-user-role.d.ts.map +1 -0
- package/esm/commands/iam/{user-role-association.create.js → role-associations/link-user-role.js} +19 -8
- package/esm/commands/iam/role-associations/unlink-key-role.d.ts +41 -0
- package/esm/commands/iam/role-associations/unlink-key-role.d.ts.map +1 -0
- package/esm/commands/iam/role-associations/unlink-key-role.js +43 -0
- package/esm/commands/iam/role-associations/unlink-user-role.d.ts +41 -0
- package/esm/commands/iam/role-associations/unlink-user-role.d.ts.map +1 -0
- package/esm/commands/iam/role-associations/unlink-user-role.js +43 -0
- package/esm/commands/iam/roles/create-role.d.ts +60 -0
- package/esm/commands/iam/roles/create-role.d.ts.map +1 -0
- package/esm/commands/iam/roles/create-role.js +55 -0
- package/{script/commands/iam/role.list.d.ts → esm/commands/iam/roles/get-roles.d.ts} +10 -8
- package/esm/commands/iam/roles/get-roles.d.ts.map +1 -0
- package/esm/commands/iam/roles/get-roles.js +36 -0
- package/esm/commands/iam/roles/id/archive-role.d.ts +45 -0
- package/esm/commands/iam/roles/id/archive-role.d.ts.map +1 -0
- package/esm/commands/iam/roles/id/archive-role.js +41 -0
- package/esm/commands/iam/roles/id/get-role.d.ts +35 -0
- package/esm/commands/iam/roles/id/get-role.d.ts.map +1 -0
- package/esm/commands/iam/roles/id/get-role.js +35 -0
- package/esm/commands/iam/roles/id/update-role.d.ts +47 -0
- package/esm/commands/iam/roles/id/update-role.d.ts.map +1 -0
- package/esm/commands/iam/roles/id/update-role.js +46 -0
- package/esm/commands/iam/tenant-iam-audit/get-audit-for-tenant.d.ts +88 -0
- package/esm/commands/iam/tenant-iam-audit/get-audit-for-tenant.d.ts.map +1 -0
- package/esm/commands/iam/tenant-iam-audit/get-audit-for-tenant.js +101 -0
- package/esm/commands/iam/validate/validate-key.d.ts +43 -0
- package/esm/commands/iam/validate/validate-key.d.ts.map +1 -0
- package/esm/commands/iam/validate/validate-key.js +42 -0
- package/esm/commands/iam/validate/validate-user.d.ts +77 -0
- package/esm/commands/iam/validate/validate-user.d.ts.map +1 -0
- package/esm/commands/iam/validate/validate-user.js +57 -0
- package/esm/commands/index.d.ts +34 -7
- package/esm/commands/index.d.ts.map +1 -1
- package/esm/commands/index.js +36 -8
- package/esm/commands/ingestion/ingest.batch.js +5 -18
- package/esm/commands/ingestion/ingest.event.js +5 -18
- package/esm/commands/scenario/scenario.create.js +4 -12
- package/esm/commands/scenario/scenario.delete.js +4 -12
- package/esm/commands/scenario/scenario.fetch.js +4 -12
- package/esm/commands/scenario/scenario.list.js +4 -12
- package/esm/commands/scenario/scenario.update.js +4 -12
- package/esm/commands/secret/secret.create.js +4 -12
- package/esm/commands/secret/secret.delete.js +4 -12
- package/esm/commands/secret/secret.list.js +4 -12
- package/esm/commands/security/pat.create.js +4 -12
- package/esm/commands/security/pat.delete.js +4 -12
- package/esm/commands/security/pat.exchange.js +4 -12
- package/esm/commands/security/pat.get.js +4 -12
- package/esm/commands/security/pat.list.js +4 -12
- package/esm/commands/tenant/tenant.list.js +4 -12
- package/esm/commands/variable/variable.create.js +4 -12
- package/esm/commands/variable/variable.delete.js +4 -12
- package/esm/commands/variable/variable.list.js +4 -12
- package/esm/common/command-graphql.js +4 -12
- package/esm/common/command.js +20 -45
- package/esm/common/flowcore-client.js +4 -18
- package/esm/common/notification-client.js +15 -72
- package/esm/common/websocket-client.js +16 -80
- package/esm/exceptions/client-error.js +6 -18
- package/esm/exceptions/invalid-response.js +2 -6
- package/esm/utils/local-cache.js +5 -19
- package/package.json +1 -1
- package/script/_dnt.shims.d.ts +1 -1
- package/script/commands/adapter/reset-adapter.d.ts +52 -0
- package/script/commands/adapter/reset-adapter.d.ts.map +1 -0
- package/script/commands/adapter/reset-adapter.js +42 -0
- package/script/commands/ai-agent-coordinator/conversation-stream.command.js +1 -6
- package/script/commands/api-key/api-key.create.js +8 -21
- package/script/commands/api-key/api-key.delete.js +4 -12
- package/script/commands/api-key/api-key.list.js +4 -12
- package/script/commands/data-core/data-core.create.js +4 -12
- package/script/commands/data-core/data-core.request-delete.js +4 -12
- package/script/commands/event-type/event-type.create.js +4 -12
- package/script/commands/event-type/event-type.request-delete.js +4 -12
- package/script/commands/event-type/event-type.request-truncate.js +4 -12
- package/script/commands/events/event.list.js +4 -12
- package/script/commands/events/events.fetch-time-buckets-by-names.js +4 -12
- package/script/commands/events/events.fetch.js +4 -12
- package/script/commands/events/time-bucket.list.js +4 -12
- package/script/commands/flow-type/flow-type.create.js +4 -12
- package/script/commands/flow-type/flow-type.request-delete.js +4 -12
- package/script/commands/iam/permissions/get-user-permissions.d.ts +48 -0
- package/script/commands/iam/permissions/get-user-permissions.d.ts.map +1 -0
- package/script/commands/iam/permissions/get-user-permissions.js +48 -0
- package/script/commands/iam/policies/create-policy.d.ts +89 -0
- package/script/commands/iam/policies/create-policy.d.ts.map +1 -0
- package/script/commands/iam/policies/create-policy.js +72 -0
- package/script/commands/iam/policies/get-policy.d.ts +35 -0
- package/script/commands/iam/policies/get-policy.d.ts.map +1 -0
- package/script/commands/iam/policies/get-policy.js +40 -0
- package/script/commands/iam/policies/id/archive-policy.d.ts +45 -0
- package/script/commands/iam/policies/id/archive-policy.d.ts.map +1 -0
- package/script/commands/iam/policies/id/archive-policy.js +45 -0
- package/script/commands/iam/policies/id/get-policy.d.ts +45 -0
- package/script/commands/iam/policies/id/get-policy.d.ts.map +1 -0
- package/script/commands/iam/policies/id/get-policy.js +43 -0
- package/script/commands/iam/policies/id/update-policy.d.ts +53 -0
- package/script/commands/iam/policies/id/update-policy.d.ts.map +1 -0
- package/script/commands/iam/policies/id/update-policy.js +49 -0
- package/script/commands/iam/policy-associations/get-key-policies.d.ts +35 -0
- package/script/commands/iam/policy-associations/get-key-policies.d.ts.map +1 -0
- package/script/commands/iam/policy-associations/get-key-policies.js +80 -0
- package/script/commands/iam/policy-associations/get-organization-policies.d.ts +35 -0
- package/script/commands/iam/policy-associations/get-organization-policies.d.ts.map +1 -0
- package/script/commands/iam/policy-associations/get-organization-policies.js +83 -0
- package/script/commands/iam/policy-associations/get-policy-associations.d.ts +83 -0
- package/script/commands/iam/policy-associations/get-policy-associations.d.ts.map +1 -0
- package/script/commands/iam/policy-associations/get-policy-associations.js +112 -0
- package/script/commands/iam/policy-associations/get-role-policies.d.ts +35 -0
- package/script/commands/iam/policy-associations/get-role-policies.d.ts.map +1 -0
- package/script/commands/iam/policy-associations/get-role-policies.js +68 -0
- package/script/commands/iam/policy-associations/get-user-policies.d.ts +37 -0
- package/script/commands/iam/policy-associations/get-user-policies.d.ts.map +1 -0
- package/script/commands/iam/policy-associations/get-user-policies.js +40 -0
- package/script/commands/iam/policy-associations/link-key-policy.d.ts +53 -0
- package/script/commands/iam/policy-associations/link-key-policy.d.ts.map +1 -0
- package/script/commands/iam/policy-associations/link-key-policy.js +55 -0
- package/script/commands/iam/policy-associations/link-role-policy.d.ts +53 -0
- package/script/commands/iam/policy-associations/link-role-policy.d.ts.map +1 -0
- package/script/commands/iam/policy-associations/link-role-policy.js +55 -0
- package/script/commands/iam/policy-associations/link-user-policy.d.ts +53 -0
- package/script/commands/iam/policy-associations/link-user-policy.d.ts.map +1 -0
- package/script/commands/iam/policy-associations/link-user-policy.js +55 -0
- package/script/commands/iam/policy-associations/unlink-key-policy.d.ts +41 -0
- package/script/commands/iam/policy-associations/unlink-key-policy.d.ts.map +1 -0
- package/script/commands/iam/policy-associations/unlink-key-policy.js +47 -0
- package/script/commands/iam/policy-associations/unlink-role-policy.d.ts +41 -0
- package/script/commands/iam/policy-associations/unlink-role-policy.d.ts.map +1 -0
- package/script/commands/iam/policy-associations/unlink-role-policy.js +47 -0
- package/script/commands/iam/policy-associations/unlink-user-policy.d.ts +41 -0
- package/script/commands/iam/policy-associations/unlink-user-policy.d.ts.map +1 -0
- package/script/commands/iam/policy-associations/unlink-user-policy.js +47 -0
- package/script/commands/iam/role-associations/get-key-roles.d.ts +35 -0
- package/script/commands/iam/role-associations/get-key-roles.d.ts.map +1 -0
- package/script/commands/iam/role-associations/get-key-roles.js +40 -0
- package/script/commands/iam/role-associations/get-organization-roles.d.ts +35 -0
- package/script/commands/iam/role-associations/get-organization-roles.d.ts.map +1 -0
- package/script/commands/iam/role-associations/get-organization-roles.js +57 -0
- package/script/commands/iam/role-associations/get-role-associations.d.ts +70 -0
- package/script/commands/iam/role-associations/get-role-associations.d.ts.map +1 -0
- package/script/commands/iam/role-associations/get-role-associations.js +62 -0
- package/script/commands/iam/role-associations/get-user-roles.d.ts +37 -0
- package/script/commands/iam/role-associations/get-user-roles.d.ts.map +1 -0
- package/script/commands/iam/role-associations/get-user-roles.js +45 -0
- package/script/commands/iam/role-associations/link-key-role.d.ts +53 -0
- package/script/commands/iam/role-associations/link-key-role.d.ts.map +1 -0
- package/script/commands/iam/role-associations/link-key-role.js +55 -0
- package/script/commands/iam/role-associations/link-user-role.d.ts +53 -0
- package/script/commands/iam/role-associations/link-user-role.d.ts.map +1 -0
- package/script/commands/iam/{user-role-association.create.js → role-associations/link-user-role.js} +21 -10
- package/script/commands/iam/role-associations/unlink-key-role.d.ts +41 -0
- package/script/commands/iam/role-associations/unlink-key-role.d.ts.map +1 -0
- package/script/commands/iam/role-associations/unlink-key-role.js +47 -0
- package/script/commands/iam/role-associations/unlink-user-role.d.ts +41 -0
- package/script/commands/iam/role-associations/unlink-user-role.d.ts.map +1 -0
- package/script/commands/iam/role-associations/unlink-user-role.js +47 -0
- package/script/commands/iam/roles/create-role.d.ts +60 -0
- package/script/commands/iam/roles/create-role.d.ts.map +1 -0
- package/script/commands/iam/roles/create-role.js +59 -0
- package/{esm/commands/iam/role.list.d.ts → script/commands/iam/roles/get-roles.d.ts} +10 -8
- package/script/commands/iam/roles/get-roles.d.ts.map +1 -0
- package/script/commands/iam/roles/get-roles.js +40 -0
- package/script/commands/iam/roles/id/archive-role.d.ts +45 -0
- package/script/commands/iam/roles/id/archive-role.d.ts.map +1 -0
- package/script/commands/iam/roles/id/archive-role.js +45 -0
- package/script/commands/iam/roles/id/get-role.d.ts +35 -0
- package/script/commands/iam/roles/id/get-role.d.ts.map +1 -0
- package/script/commands/iam/roles/id/get-role.js +39 -0
- package/script/commands/iam/roles/id/update-role.d.ts +47 -0
- package/script/commands/iam/roles/id/update-role.d.ts.map +1 -0
- package/script/commands/iam/roles/id/update-role.js +50 -0
- package/script/commands/iam/tenant-iam-audit/get-audit-for-tenant.d.ts +88 -0
- package/script/commands/iam/tenant-iam-audit/get-audit-for-tenant.d.ts.map +1 -0
- package/script/commands/iam/tenant-iam-audit/get-audit-for-tenant.js +105 -0
- package/script/commands/iam/validate/validate-key.d.ts +43 -0
- package/script/commands/iam/validate/validate-key.d.ts.map +1 -0
- package/script/commands/iam/validate/validate-key.js +46 -0
- package/script/commands/iam/validate/validate-user.d.ts +77 -0
- package/script/commands/iam/validate/validate-user.d.ts.map +1 -0
- package/script/commands/iam/validate/validate-user.js +61 -0
- package/script/commands/index.d.ts +34 -7
- package/script/commands/index.d.ts.map +1 -1
- package/script/commands/index.js +36 -8
- package/script/commands/ingestion/ingest.batch.js +5 -18
- package/script/commands/ingestion/ingest.event.js +5 -18
- package/script/commands/scenario/scenario.create.js +4 -12
- package/script/commands/scenario/scenario.delete.js +4 -12
- package/script/commands/scenario/scenario.fetch.js +4 -12
- package/script/commands/scenario/scenario.list.js +4 -12
- package/script/commands/scenario/scenario.update.js +4 -12
- package/script/commands/secret/secret.create.js +4 -12
- package/script/commands/secret/secret.delete.js +4 -12
- package/script/commands/secret/secret.list.js +4 -12
- package/script/commands/security/pat.create.js +4 -12
- package/script/commands/security/pat.delete.js +4 -12
- package/script/commands/security/pat.exchange.js +4 -12
- package/script/commands/security/pat.get.js +4 -12
- package/script/commands/security/pat.list.js +4 -12
- package/script/commands/tenant/tenant.list.js +4 -12
- package/script/commands/variable/variable.create.js +4 -12
- package/script/commands/variable/variable.delete.js +4 -12
- package/script/commands/variable/variable.list.js +4 -12
- package/script/common/command-graphql.js +4 -12
- package/script/common/command.js +20 -45
- package/script/common/flowcore-client.js +4 -18
- package/script/common/notification-client.js +15 -72
- package/script/common/websocket-client.js +16 -80
- package/script/exceptions/client-error.js +6 -18
- package/script/exceptions/invalid-response.js +2 -6
- package/script/utils/local-cache.js +5 -19
- package/esm/commands/iam/api-key-role-association.create.d.ts +0 -45
- package/esm/commands/iam/api-key-role-association.create.d.ts.map +0 -1
- package/esm/commands/iam/api-key-role-association.create.js +0 -44
- package/esm/commands/iam/api-key-role-association.delete.d.ts +0 -45
- package/esm/commands/iam/api-key-role-association.delete.d.ts.map +0 -1
- package/esm/commands/iam/api-key-role-association.delete.js +0 -44
- package/esm/commands/iam/api-key-role-association.list.d.ts +0 -31
- package/esm/commands/iam/api-key-role-association.list.d.ts.map +0 -1
- package/esm/commands/iam/api-key-role-association.list.js +0 -37
- package/esm/commands/iam/role.list.d.ts.map +0 -1
- package/esm/commands/iam/role.list.js +0 -41
- package/esm/commands/iam/user-role-association.create.d.ts +0 -42
- package/esm/commands/iam/user-role-association.create.d.ts.map +0 -1
- package/esm/commands/iam/user-role-association.delete.d.ts +0 -42
- package/esm/commands/iam/user-role-association.delete.d.ts.map +0 -1
- package/esm/commands/iam/user-role-association.delete.js +0 -40
- package/esm/commands/iam/user-role-association.list.d.ts +0 -33
- package/esm/commands/iam/user-role-association.list.d.ts.map +0 -1
- package/esm/commands/iam/user-role-association.list.js +0 -39
- package/esm/contracts/iam.d.ts +0 -13
- package/esm/contracts/iam.d.ts.map +0 -1
- package/esm/contracts/iam.js +0 -9
- package/script/commands/iam/api-key-role-association.create.d.ts +0 -45
- package/script/commands/iam/api-key-role-association.create.d.ts.map +0 -1
- package/script/commands/iam/api-key-role-association.create.js +0 -48
- package/script/commands/iam/api-key-role-association.delete.d.ts +0 -45
- package/script/commands/iam/api-key-role-association.delete.d.ts.map +0 -1
- package/script/commands/iam/api-key-role-association.delete.js +0 -48
- package/script/commands/iam/api-key-role-association.list.d.ts +0 -31
- package/script/commands/iam/api-key-role-association.list.d.ts.map +0 -1
- package/script/commands/iam/api-key-role-association.list.js +0 -41
- package/script/commands/iam/role.list.d.ts.map +0 -1
- package/script/commands/iam/role.list.js +0 -45
- package/script/commands/iam/user-role-association.create.d.ts +0 -42
- package/script/commands/iam/user-role-association.create.d.ts.map +0 -1
- package/script/commands/iam/user-role-association.delete.d.ts +0 -42
- package/script/commands/iam/user-role-association.delete.d.ts.map +0 -1
- package/script/commands/iam/user-role-association.delete.js +0 -44
- package/script/commands/iam/user-role-association.list.d.ts +0 -33
- package/script/commands/iam/user-role-association.list.d.ts.map +0 -1
- package/script/commands/iam/user-role-association.list.js +0 -43
- package/script/contracts/iam.d.ts +0 -13
- package/script/contracts/iam.d.ts.map +0 -1
- package/script/contracts/iam.js +0 -12
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoleUpdateCommand = void 0;
|
|
4
|
+
const sdk_1 = require("@flowcore/sdk");
|
|
5
|
+
const create_role_js_1 = require("../create-role.js");
|
|
6
|
+
/**
|
|
7
|
+
* Update a role by ID
|
|
8
|
+
*/
|
|
9
|
+
class RoleUpdateCommand extends sdk_1.Command {
|
|
10
|
+
/**
|
|
11
|
+
* Whether the command should retry on failure
|
|
12
|
+
*/
|
|
13
|
+
retryOnFailure = false;
|
|
14
|
+
/**
|
|
15
|
+
* Get the method
|
|
16
|
+
*/
|
|
17
|
+
getMethod() {
|
|
18
|
+
return "PATCH";
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Get the base url
|
|
22
|
+
*/
|
|
23
|
+
getBaseUrl() {
|
|
24
|
+
return "https://iam.api.flowcore.io";
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Get the path
|
|
28
|
+
*/
|
|
29
|
+
getPath() {
|
|
30
|
+
return `/api/v1/roles/${this.input.roleId}`;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get the body
|
|
34
|
+
*/
|
|
35
|
+
getBody() {
|
|
36
|
+
const { roleId, ...rest } = this.input;
|
|
37
|
+
return {
|
|
38
|
+
id: roleId,
|
|
39
|
+
...rest,
|
|
40
|
+
flowcoreManaged: rest.flowcoreManaged ?? false,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Parse the response
|
|
45
|
+
*/
|
|
46
|
+
parseResponse(rawResponse) {
|
|
47
|
+
return (0, sdk_1.parseResponseHelper)(create_role_js_1.RoleSchema, rawResponse);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.RoleUpdateCommand = RoleUpdateCommand;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Command } from "@flowcore/sdk";
|
|
2
|
+
import { type Static, type TArray, type TNull, type TNumber, type TObject, type TProperties, type TString, type TUnion } from "@sinclair/typebox";
|
|
3
|
+
/**
|
|
4
|
+
* Audit log entry type
|
|
5
|
+
*/
|
|
6
|
+
export declare const AuditLogEntrySchema: TObject<{
|
|
7
|
+
id: TString;
|
|
8
|
+
event: TString;
|
|
9
|
+
resourceName: TString;
|
|
10
|
+
performedBy: TUnion<[TString, TObject<TProperties>, TNull]>;
|
|
11
|
+
timestamp: TString;
|
|
12
|
+
status: TString;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* Pagination information
|
|
16
|
+
*/
|
|
17
|
+
export declare const PaginationSchema: TObject<{
|
|
18
|
+
page: TNumber;
|
|
19
|
+
pageSize: TNumber;
|
|
20
|
+
totalItems: TNumber;
|
|
21
|
+
totalPages: TNumber;
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* Audit log response schema
|
|
25
|
+
*/
|
|
26
|
+
export declare const AuditLogResponseSchema: TObject<{
|
|
27
|
+
logs: TArray<typeof AuditLogEntrySchema>;
|
|
28
|
+
pagination: typeof PaginationSchema;
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* Audit log entry type
|
|
32
|
+
*/
|
|
33
|
+
export type AuditLogEntry = Static<typeof AuditLogEntrySchema>;
|
|
34
|
+
/**
|
|
35
|
+
* Pagination information
|
|
36
|
+
*/
|
|
37
|
+
export type Pagination = Static<typeof PaginationSchema>;
|
|
38
|
+
/**
|
|
39
|
+
* Audit log response type
|
|
40
|
+
*/
|
|
41
|
+
export type AuditLogResponse = Static<typeof AuditLogResponseSchema>;
|
|
42
|
+
/**
|
|
43
|
+
* The input for the tenant audit logs command
|
|
44
|
+
*/
|
|
45
|
+
export interface TenantAuditLogsInput {
|
|
46
|
+
/** The tenant id */
|
|
47
|
+
tenantId: string;
|
|
48
|
+
/** Page number (1-based) */
|
|
49
|
+
page?: number;
|
|
50
|
+
/** Page size */
|
|
51
|
+
pageSize?: number;
|
|
52
|
+
/** Filter by resource type */
|
|
53
|
+
resourceType?: string;
|
|
54
|
+
/** Filter by user who performed the action */
|
|
55
|
+
performedBy?: string;
|
|
56
|
+
/** Filter by status (success or failure) */
|
|
57
|
+
status?: "success" | "failure";
|
|
58
|
+
/** Filter by start date */
|
|
59
|
+
startDate?: string;
|
|
60
|
+
/** Filter by end date */
|
|
61
|
+
endDate?: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Fetch audit logs for a tenant
|
|
65
|
+
*/
|
|
66
|
+
export declare class TenantAuditLogsCommand extends Command<TenantAuditLogsInput, AuditLogResponse> {
|
|
67
|
+
/**
|
|
68
|
+
* Whether the command should retry on failure
|
|
69
|
+
*/
|
|
70
|
+
protected retryOnFailure: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Get the method
|
|
73
|
+
*/
|
|
74
|
+
protected getMethod(): string;
|
|
75
|
+
/**
|
|
76
|
+
* Get the base url
|
|
77
|
+
*/
|
|
78
|
+
protected getBaseUrl(): string;
|
|
79
|
+
/**
|
|
80
|
+
* Get the path
|
|
81
|
+
*/
|
|
82
|
+
protected getPath(): string;
|
|
83
|
+
/**
|
|
84
|
+
* Parse the response
|
|
85
|
+
*/
|
|
86
|
+
protected parseResponse(rawResponse: unknown): AuditLogResponse;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=get-audit-for-tenant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-audit-for-tenant.d.ts","sourceRoot":"","sources":["../../../../src/commands/iam/tenant-iam-audit/get-audit-for-tenant.ts"],"names":[],"m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,QAAQ,EAAE,MAAM,CAAA;IAChB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,gBAAgB;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,8BAA8B;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAC9B,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CACjD,oBAAoB,EACpB,gBAAgB,CACjB;IACC;;OAEG;IACH,UAAmB,cAAc,UAAO;IAExC;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAmDpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,gBAAgB;CAUzE"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TenantAuditLogsCommand = exports.AuditLogResponseSchema = exports.PaginationSchema = exports.AuditLogEntrySchema = void 0;
|
|
4
|
+
const sdk_1 = require("@flowcore/sdk");
|
|
5
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
6
|
+
/**
|
|
7
|
+
* Audit log entry type
|
|
8
|
+
*/
|
|
9
|
+
exports.AuditLogEntrySchema = typebox_1.Type.Object({
|
|
10
|
+
id: typebox_1.Type.String(),
|
|
11
|
+
event: typebox_1.Type.String(),
|
|
12
|
+
resourceName: typebox_1.Type.String(),
|
|
13
|
+
performedBy: typebox_1.Type.Union([
|
|
14
|
+
typebox_1.Type.String(),
|
|
15
|
+
typebox_1.Type.Object({}), // Allow performedBy to be any object
|
|
16
|
+
typebox_1.Type.Null(), // Or null
|
|
17
|
+
]),
|
|
18
|
+
timestamp: typebox_1.Type.String(),
|
|
19
|
+
status: typebox_1.Type.String(),
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* Pagination information
|
|
23
|
+
*/
|
|
24
|
+
exports.PaginationSchema = typebox_1.Type.Object({
|
|
25
|
+
page: typebox_1.Type.Number(),
|
|
26
|
+
pageSize: typebox_1.Type.Number(),
|
|
27
|
+
totalItems: typebox_1.Type.Number(),
|
|
28
|
+
totalPages: typebox_1.Type.Number(),
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* Audit log response schema
|
|
32
|
+
*/
|
|
33
|
+
exports.AuditLogResponseSchema = typebox_1.Type.Object({
|
|
34
|
+
logs: typebox_1.Type.Array(exports.AuditLogEntrySchema),
|
|
35
|
+
pagination: exports.PaginationSchema,
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* Fetch audit logs for a tenant
|
|
39
|
+
*/
|
|
40
|
+
class TenantAuditLogsCommand extends sdk_1.Command {
|
|
41
|
+
/**
|
|
42
|
+
* Whether the command should retry on failure
|
|
43
|
+
*/
|
|
44
|
+
retryOnFailure = true;
|
|
45
|
+
/**
|
|
46
|
+
* Get the method
|
|
47
|
+
*/
|
|
48
|
+
getMethod() {
|
|
49
|
+
return "GET";
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Get the base url
|
|
53
|
+
*/
|
|
54
|
+
getBaseUrl() {
|
|
55
|
+
return "https://iam.api.flowcore.io";
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get the path
|
|
59
|
+
*/
|
|
60
|
+
getPath() {
|
|
61
|
+
// Build base path
|
|
62
|
+
let path = `/api/v1/tenant-iam-audit/${this.input.tenantId}`;
|
|
63
|
+
// Add query parameters directly to the path
|
|
64
|
+
const queryParams = [];
|
|
65
|
+
if (this.input.page !== undefined) {
|
|
66
|
+
queryParams.push(`page=${encodeURIComponent(this.input.page.toString())}`);
|
|
67
|
+
}
|
|
68
|
+
if (this.input.pageSize !== undefined) {
|
|
69
|
+
queryParams.push(`pageSize=${encodeURIComponent(this.input.pageSize.toString())}`);
|
|
70
|
+
}
|
|
71
|
+
if (this.input.resourceType) {
|
|
72
|
+
queryParams.push(`resourceType=${encodeURIComponent(this.input.resourceType)}`);
|
|
73
|
+
}
|
|
74
|
+
if (this.input.performedBy) {
|
|
75
|
+
queryParams.push(`performedBy=${encodeURIComponent(this.input.performedBy)}`);
|
|
76
|
+
}
|
|
77
|
+
if (this.input.status) {
|
|
78
|
+
queryParams.push(`status=${encodeURIComponent(this.input.status)}`);
|
|
79
|
+
}
|
|
80
|
+
if (this.input.startDate) {
|
|
81
|
+
queryParams.push(`startDate=${encodeURIComponent(this.input.startDate)}`);
|
|
82
|
+
}
|
|
83
|
+
if (this.input.endDate) {
|
|
84
|
+
queryParams.push(`endDate=${encodeURIComponent(this.input.endDate)}`);
|
|
85
|
+
}
|
|
86
|
+
// Add query parameters to path if there are any
|
|
87
|
+
if (queryParams.length > 0) {
|
|
88
|
+
path += `?${queryParams.join("&")}`;
|
|
89
|
+
}
|
|
90
|
+
return path;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Parse the response
|
|
94
|
+
*/
|
|
95
|
+
parseResponse(rawResponse) {
|
|
96
|
+
if (!rawResponse) {
|
|
97
|
+
return {
|
|
98
|
+
logs: [],
|
|
99
|
+
pagination: { page: 1, pageSize: 20, totalItems: 0, totalPages: 0 },
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
return (0, sdk_1.parseResponseHelper)(exports.AuditLogResponseSchema, rawResponse);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.TenantAuditLogsCommand = TenantAuditLogsCommand;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Command } from "@flowcore/sdk";
|
|
2
|
+
import { type ValidationMode, type ValidationRequestAccessItem, type ValidationResponse } from "./validate-user.js";
|
|
3
|
+
/**
|
|
4
|
+
* The input for the key validation command
|
|
5
|
+
*/
|
|
6
|
+
export interface ValidateKeyInput {
|
|
7
|
+
/** The key id */
|
|
8
|
+
keyId: string;
|
|
9
|
+
/** The mode of validation */
|
|
10
|
+
mode: ValidationMode;
|
|
11
|
+
/** The requested access */
|
|
12
|
+
requestedAccess: ValidationRequestAccessItem[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Validate if a key can perform actions
|
|
16
|
+
*/
|
|
17
|
+
export declare class ValidateKeyCommand extends Command<ValidateKeyInput, ValidationResponse> {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the command should retry on failure
|
|
20
|
+
*/
|
|
21
|
+
protected retryOnFailure: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Get the method
|
|
24
|
+
*/
|
|
25
|
+
protected getMethod(): string;
|
|
26
|
+
/**
|
|
27
|
+
* Get the base url
|
|
28
|
+
*/
|
|
29
|
+
protected getBaseUrl(): string;
|
|
30
|
+
/**
|
|
31
|
+
* Get the path
|
|
32
|
+
*/
|
|
33
|
+
protected getPath(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Get the body
|
|
36
|
+
*/
|
|
37
|
+
protected getBody(): Record<string, unknown>;
|
|
38
|
+
/**
|
|
39
|
+
* Parse the response
|
|
40
|
+
*/
|
|
41
|
+
protected parseResponse(rawResponse: unknown): ValidationResponse;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=validate-key.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-key.d.ts","sourceRoot":"","sources":["../../../../src/commands/iam/validate/validate-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAC5D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EAExB,MAAM,oBAAoB,CAAA;AAE3B;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,6BAA6B;IAC7B,IAAI,EAAE,cAAc,CAAA;IACpB,2BAA2B;IAC3B,eAAe,EAAE,2BAA2B,EAAE,CAAA;CAC/C;AAED;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,OAAO,CAC7C,gBAAgB,EAChB,kBAAkB,CACnB;IACC;;OAEG;IACH,UAAmB,cAAc,UAAO;IAExC;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAKrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,kBAAkB;CAG3E"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidateKeyCommand = void 0;
|
|
4
|
+
const sdk_1 = require("@flowcore/sdk");
|
|
5
|
+
const validate_user_js_1 = require("./validate-user.js");
|
|
6
|
+
/**
|
|
7
|
+
* Validate if a key can perform actions
|
|
8
|
+
*/
|
|
9
|
+
class ValidateKeyCommand extends sdk_1.Command {
|
|
10
|
+
/**
|
|
11
|
+
* Whether the command should retry on failure
|
|
12
|
+
*/
|
|
13
|
+
retryOnFailure = true;
|
|
14
|
+
/**
|
|
15
|
+
* Get the method
|
|
16
|
+
*/
|
|
17
|
+
getMethod() {
|
|
18
|
+
return "POST";
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Get the base url
|
|
22
|
+
*/
|
|
23
|
+
getBaseUrl() {
|
|
24
|
+
return "https://iam.api.flowcore.io";
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Get the path
|
|
28
|
+
*/
|
|
29
|
+
getPath() {
|
|
30
|
+
return `/api/v1/validate/keys/${this.input.keyId}`;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get the body
|
|
34
|
+
*/
|
|
35
|
+
getBody() {
|
|
36
|
+
const { ...rest } = this.input;
|
|
37
|
+
return rest;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Parse the response
|
|
41
|
+
*/
|
|
42
|
+
parseResponse(rawResponse) {
|
|
43
|
+
return (0, sdk_1.parseResponseHelper)(validate_user_js_1.ValidationResponseSchema, rawResponse);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ValidateKeyCommand = ValidateKeyCommand;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Command } from "@flowcore/sdk";
|
|
2
|
+
import { type Static, type TArray, type TBoolean, type TObject, type TString } from "@sinclair/typebox";
|
|
3
|
+
/**
|
|
4
|
+
* The mode of validation
|
|
5
|
+
*/
|
|
6
|
+
export type ValidationMode = "tenant" | "organization";
|
|
7
|
+
/**
|
|
8
|
+
* The validation request access item
|
|
9
|
+
*/
|
|
10
|
+
export interface ValidationRequestAccessItem {
|
|
11
|
+
action: string;
|
|
12
|
+
resource: string[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The schema for a valid policy
|
|
16
|
+
*/
|
|
17
|
+
export declare const ValidPolicySchema: TObject<{
|
|
18
|
+
policyFrn: TString;
|
|
19
|
+
statementId: TString;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* The schema for a validation response
|
|
23
|
+
*/
|
|
24
|
+
export declare const ValidationResponseSchema: TObject<{
|
|
25
|
+
valid: TBoolean;
|
|
26
|
+
checksum: TString;
|
|
27
|
+
validPolicies: TArray<typeof ValidPolicySchema>;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* The valid policy type
|
|
31
|
+
*/
|
|
32
|
+
export type ValidPolicy = Static<typeof ValidPolicySchema>;
|
|
33
|
+
/**
|
|
34
|
+
* The validation response type
|
|
35
|
+
*/
|
|
36
|
+
export type ValidationResponse = Static<typeof ValidationResponseSchema>;
|
|
37
|
+
/**
|
|
38
|
+
* The input for the user validation command
|
|
39
|
+
*/
|
|
40
|
+
export interface ValidateUserInput {
|
|
41
|
+
/** The user id */
|
|
42
|
+
userId: string;
|
|
43
|
+
/** The mode of validation */
|
|
44
|
+
mode: ValidationMode;
|
|
45
|
+
/** The requested access */
|
|
46
|
+
requestedAccess: ValidationRequestAccessItem[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Validate if a user can perform actions
|
|
50
|
+
*/
|
|
51
|
+
export declare class ValidateUserCommand extends Command<ValidateUserInput, ValidationResponse> {
|
|
52
|
+
/**
|
|
53
|
+
* Whether the command should retry on failure
|
|
54
|
+
*/
|
|
55
|
+
protected retryOnFailure: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Get the method
|
|
58
|
+
*/
|
|
59
|
+
protected getMethod(): string;
|
|
60
|
+
/**
|
|
61
|
+
* Get the base url
|
|
62
|
+
*/
|
|
63
|
+
protected getBaseUrl(): string;
|
|
64
|
+
/**
|
|
65
|
+
* Get the path
|
|
66
|
+
*/
|
|
67
|
+
protected getPath(): string;
|
|
68
|
+
/**
|
|
69
|
+
* Get the body
|
|
70
|
+
*/
|
|
71
|
+
protected getBody(): Record<string, unknown>;
|
|
72
|
+
/**
|
|
73
|
+
* Parse the response
|
|
74
|
+
*/
|
|
75
|
+
protected parseResponse(rawResponse: unknown): ValidationResponse;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=validate-user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-user.d.ts","sourceRoot":"","sources":["../../../../src/commands/iam/validate/validate-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,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G;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,kBAAkB;CAG3E"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidateUserCommand = exports.ValidationResponseSchema = exports.ValidPolicySchema = void 0;
|
|
4
|
+
const sdk_1 = require("@flowcore/sdk");
|
|
5
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
6
|
+
/**
|
|
7
|
+
* The schema for a valid policy
|
|
8
|
+
*/
|
|
9
|
+
exports.ValidPolicySchema = typebox_1.Type.Object({
|
|
10
|
+
policyFrn: typebox_1.Type.String(),
|
|
11
|
+
statementId: typebox_1.Type.String(),
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* The schema for a validation response
|
|
15
|
+
*/
|
|
16
|
+
exports.ValidationResponseSchema = typebox_1.Type.Object({
|
|
17
|
+
valid: typebox_1.Type.Boolean(),
|
|
18
|
+
checksum: typebox_1.Type.String(),
|
|
19
|
+
validPolicies: typebox_1.Type.Array(exports.ValidPolicySchema),
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* Validate if a user can perform actions
|
|
23
|
+
*/
|
|
24
|
+
class ValidateUserCommand extends sdk_1.Command {
|
|
25
|
+
/**
|
|
26
|
+
* Whether the command should retry on failure
|
|
27
|
+
*/
|
|
28
|
+
retryOnFailure = true;
|
|
29
|
+
/**
|
|
30
|
+
* Get the method
|
|
31
|
+
*/
|
|
32
|
+
getMethod() {
|
|
33
|
+
return "POST";
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Get the base url
|
|
37
|
+
*/
|
|
38
|
+
getBaseUrl() {
|
|
39
|
+
return "https://iam.api.flowcore.io";
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Get the path
|
|
43
|
+
*/
|
|
44
|
+
getPath() {
|
|
45
|
+
return `/api/v1/validate/users/${this.input.userId}`;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Get the body
|
|
49
|
+
*/
|
|
50
|
+
getBody() {
|
|
51
|
+
const { ...rest } = this.input;
|
|
52
|
+
return rest;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Parse the response
|
|
56
|
+
*/
|
|
57
|
+
parseResponse(rawResponse) {
|
|
58
|
+
return (0, sdk_1.parseResponseHelper)(exports.ValidationResponseSchema, rawResponse);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.ValidateUserCommand = ValidateUserCommand;
|
|
@@ -3,6 +3,7 @@ export * from "./tenant/tenant.enable-sensitive-data.js";
|
|
|
3
3
|
export * from "./tenant/tenant.fetch.js";
|
|
4
4
|
export * from "./tenant/tenant.list.js";
|
|
5
5
|
export * from "./tenant/tenant.translate-name-to-id.js";
|
|
6
|
+
export * from "./adapter/reset-adapter.js";
|
|
6
7
|
export * from "./api-key/api-key.create.js";
|
|
7
8
|
export * from "./api-key/api-key.delete.js";
|
|
8
9
|
export * from "./api-key/api-key.list.js";
|
|
@@ -36,13 +37,6 @@ export * from "./event-type/event-type.request-truncate.js";
|
|
|
36
37
|
export * from "./event-type/event-type.update.js";
|
|
37
38
|
export * from "./ingestion/ingest.batch.js";
|
|
38
39
|
export * from "./ingestion/ingest.event.js";
|
|
39
|
-
export * from "./iam/api-key-role-association.create.js";
|
|
40
|
-
export * from "./iam/api-key-role-association.delete.js";
|
|
41
|
-
export * from "./iam/api-key-role-association.list.js";
|
|
42
|
-
export * from "./iam/role.list.js";
|
|
43
|
-
export * from "./iam/user-role-association.create.js";
|
|
44
|
-
export * from "./iam/user-role-association.delete.js";
|
|
45
|
-
export * from "./iam/user-role-association.list.js";
|
|
46
40
|
export * from "./events/event.list.js";
|
|
47
41
|
export * from "./events/events.fetch-time-buckets-by-names.js";
|
|
48
42
|
export * from "./events/events.fetch.js";
|
|
@@ -63,4 +57,37 @@ export * from "./scenario/scenario.delete.js";
|
|
|
63
57
|
export * from "./scenario/scenario.fetch.js";
|
|
64
58
|
export * from "./scenario/scenario.list.js";
|
|
65
59
|
export * from "./scenario/scenario.update.js";
|
|
60
|
+
export * from "./iam/permissions/get-user-permissions.js";
|
|
61
|
+
export * from "./iam/policies/create-policy.js";
|
|
62
|
+
export * from "./iam/policies/get-policy.js";
|
|
63
|
+
export * from "./iam/policies/id/archive-policy.js";
|
|
64
|
+
export * from "./iam/policies/id/get-policy.js";
|
|
65
|
+
export * from "./iam/policies/id/update-policy.js";
|
|
66
|
+
export * from "./iam/policy-associations/get-key-policies.js";
|
|
67
|
+
export * from "./iam/policy-associations/get-organization-policies.js";
|
|
68
|
+
export * from "./iam/policy-associations/get-policy-associations.js";
|
|
69
|
+
export * from "./iam/policy-associations/get-role-policies.js";
|
|
70
|
+
export * from "./iam/policy-associations/get-user-policies.js";
|
|
71
|
+
export * from "./iam/policy-associations/link-key-policy.js";
|
|
72
|
+
export * from "./iam/policy-associations/link-role-policy.js";
|
|
73
|
+
export * from "./iam/policy-associations/link-user-policy.js";
|
|
74
|
+
export * from "./iam/policy-associations/unlink-key-policy.js";
|
|
75
|
+
export * from "./iam/policy-associations/unlink-role-policy.js";
|
|
76
|
+
export * from "./iam/policy-associations/unlink-user-policy.js";
|
|
77
|
+
export * from "./iam/role-associations/get-key-roles.js";
|
|
78
|
+
export * from "./iam/role-associations/get-organization-roles.js";
|
|
79
|
+
export * from "./iam/role-associations/get-role-associations.js";
|
|
80
|
+
export * from "./iam/role-associations/get-user-roles.js";
|
|
81
|
+
export * from "./iam/role-associations/link-key-role.js";
|
|
82
|
+
export * from "./iam/role-associations/link-user-role.js";
|
|
83
|
+
export * from "./iam/role-associations/unlink-key-role.js";
|
|
84
|
+
export * from "./iam/role-associations/unlink-user-role.js";
|
|
85
|
+
export * from "./iam/roles/create-role.js";
|
|
86
|
+
export * from "./iam/roles/get-roles.js";
|
|
87
|
+
export * from "./iam/roles/id/archive-role.js";
|
|
88
|
+
export * from "./iam/roles/id/get-role.js";
|
|
89
|
+
export * from "./iam/roles/id/update-role.js";
|
|
90
|
+
export * from "./iam/tenant-iam-audit/get-audit-for-tenant.js";
|
|
91
|
+
export * from "./iam/validate/validate-key.js";
|
|
92
|
+
export * from "./iam/validate/validate-user.js";
|
|
66
93
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,cAAc,2CAA2C,CAAA;AACzD,cAAc,0CAA0C,CAAA;AACxD,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,yCAAyC,CAAA;AAGvD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AAGzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AAGvC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAG3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,mCAAmC,CAAA;AACjD,cAAc,mCAAmC,CAAA;AACjD,cAAc,kCAAkC,CAAA;AAChD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,wDAAwD,CAAA;AACtE,cAAc,iCAAiC,CAAA;AAC/C,cAAc,kDAAkD,CAAA;AAChE,cAAc,2CAA2C,CAAA;AACzD,cAAc,6CAA6C,C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E3D,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0BAA0B,CAAA;AACxC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAE7C,cAAc,gDAAgD,CAAA;AAE9D,cAAc,gCAAgC,CAAA;AAC9C,cAAc,iCAAiC,CAAA"}
|
package/script/commands/index.js
CHANGED
|
@@ -20,6 +20,8 @@ __exportStar(require("./tenant/tenant.enable-sensitive-data.js"), exports);
|
|
|
20
20
|
__exportStar(require("./tenant/tenant.fetch.js"), exports);
|
|
21
21
|
__exportStar(require("./tenant/tenant.list.js"), exports);
|
|
22
22
|
__exportStar(require("./tenant/tenant.translate-name-to-id.js"), exports);
|
|
23
|
+
// Adapter
|
|
24
|
+
__exportStar(require("./adapter/reset-adapter.js"), exports);
|
|
23
25
|
// Api Key
|
|
24
26
|
__exportStar(require("./api-key/api-key.create.js"), exports);
|
|
25
27
|
__exportStar(require("./api-key/api-key.delete.js"), exports);
|
|
@@ -60,14 +62,6 @@ __exportStar(require("./event-type/event-type.update.js"), exports);
|
|
|
60
62
|
// Ingestion
|
|
61
63
|
__exportStar(require("./ingestion/ingest.batch.js"), exports);
|
|
62
64
|
__exportStar(require("./ingestion/ingest.event.js"), exports);
|
|
63
|
-
// IAM
|
|
64
|
-
__exportStar(require("./iam/api-key-role-association.create.js"), exports);
|
|
65
|
-
__exportStar(require("./iam/api-key-role-association.delete.js"), exports);
|
|
66
|
-
__exportStar(require("./iam/api-key-role-association.list.js"), exports);
|
|
67
|
-
__exportStar(require("./iam/role.list.js"), exports);
|
|
68
|
-
__exportStar(require("./iam/user-role-association.create.js"), exports);
|
|
69
|
-
__exportStar(require("./iam/user-role-association.delete.js"), exports);
|
|
70
|
-
__exportStar(require("./iam/user-role-association.list.js"), exports);
|
|
71
65
|
// Events
|
|
72
66
|
__exportStar(require("./events/event.list.js"), exports);
|
|
73
67
|
__exportStar(require("./events/events.fetch-time-buckets-by-names.js"), exports);
|
|
@@ -92,3 +86,37 @@ __exportStar(require("./scenario/scenario.delete.js"), exports);
|
|
|
92
86
|
__exportStar(require("./scenario/scenario.fetch.js"), exports);
|
|
93
87
|
__exportStar(require("./scenario/scenario.list.js"), exports);
|
|
94
88
|
__exportStar(require("./scenario/scenario.update.js"), exports);
|
|
89
|
+
// Identity and Access Management
|
|
90
|
+
__exportStar(require("./iam/permissions/get-user-permissions.js"), exports);
|
|
91
|
+
__exportStar(require("./iam/policies/create-policy.js"), exports);
|
|
92
|
+
__exportStar(require("./iam/policies/get-policy.js"), exports);
|
|
93
|
+
__exportStar(require("./iam/policies/id/archive-policy.js"), exports);
|
|
94
|
+
__exportStar(require("./iam/policies/id/get-policy.js"), exports);
|
|
95
|
+
__exportStar(require("./iam/policies/id/update-policy.js"), exports);
|
|
96
|
+
__exportStar(require("./iam/policy-associations/get-key-policies.js"), exports);
|
|
97
|
+
__exportStar(require("./iam/policy-associations/get-organization-policies.js"), exports);
|
|
98
|
+
__exportStar(require("./iam/policy-associations/get-policy-associations.js"), exports);
|
|
99
|
+
__exportStar(require("./iam/policy-associations/get-role-policies.js"), exports);
|
|
100
|
+
__exportStar(require("./iam/policy-associations/get-user-policies.js"), exports);
|
|
101
|
+
__exportStar(require("./iam/policy-associations/link-key-policy.js"), exports);
|
|
102
|
+
__exportStar(require("./iam/policy-associations/link-role-policy.js"), exports);
|
|
103
|
+
__exportStar(require("./iam/policy-associations/link-user-policy.js"), exports);
|
|
104
|
+
__exportStar(require("./iam/policy-associations/unlink-key-policy.js"), exports);
|
|
105
|
+
__exportStar(require("./iam/policy-associations/unlink-role-policy.js"), exports);
|
|
106
|
+
__exportStar(require("./iam/policy-associations/unlink-user-policy.js"), exports);
|
|
107
|
+
__exportStar(require("./iam/role-associations/get-key-roles.js"), exports);
|
|
108
|
+
__exportStar(require("./iam/role-associations/get-organization-roles.js"), exports);
|
|
109
|
+
__exportStar(require("./iam/role-associations/get-role-associations.js"), exports);
|
|
110
|
+
__exportStar(require("./iam/role-associations/get-user-roles.js"), exports);
|
|
111
|
+
__exportStar(require("./iam/role-associations/link-key-role.js"), exports);
|
|
112
|
+
__exportStar(require("./iam/role-associations/link-user-role.js"), exports);
|
|
113
|
+
__exportStar(require("./iam/role-associations/unlink-key-role.js"), exports);
|
|
114
|
+
__exportStar(require("./iam/role-associations/unlink-user-role.js"), exports);
|
|
115
|
+
__exportStar(require("./iam/roles/create-role.js"), exports);
|
|
116
|
+
__exportStar(require("./iam/roles/get-roles.js"), exports);
|
|
117
|
+
__exportStar(require("./iam/roles/id/archive-role.js"), exports);
|
|
118
|
+
__exportStar(require("./iam/roles/id/get-role.js"), exports);
|
|
119
|
+
__exportStar(require("./iam/roles/id/update-role.js"), exports);
|
|
120
|
+
__exportStar(require("./iam/tenant-iam-audit/get-audit-for-tenant.js"), exports);
|
|
121
|
+
__exportStar(require("./iam/validate/validate-key.js"), exports);
|
|
122
|
+
__exportStar(require("./iam/validate/validate-user.js"), exports);
|
|
@@ -15,24 +15,11 @@ const responseSchema = typebox_1.Type.Object({
|
|
|
15
15
|
* Ingest a batch of events
|
|
16
16
|
*/
|
|
17
17
|
class IngestBatchCommand extends command_js_1.Command {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Object.defineProperty(this, "dedicatedSubdomain", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
configurable: true,
|
|
26
|
-
writable: true,
|
|
27
|
-
value: "webhook"
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(this, "allowedModes", {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
configurable: true,
|
|
32
|
-
writable: true,
|
|
33
|
-
value: ["apiKey"]
|
|
34
|
-
});
|
|
35
|
-
}
|
|
18
|
+
/**
|
|
19
|
+
* The dedicated subdomain for the command
|
|
20
|
+
*/
|
|
21
|
+
dedicatedSubdomain = "webhook";
|
|
22
|
+
allowedModes = ["apiKey"];
|
|
36
23
|
getMethod() {
|
|
37
24
|
return "POST";
|
|
38
25
|
}
|