@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
package/script/commands/iam/{user-role-association.create.js → role-associations/link-user-role.js}
RENAMED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.LinkUserRoleCommand = exports.UserRoleLinkSchema = void 0;
|
|
4
|
+
const sdk_1 = require("@flowcore/sdk");
|
|
4
5
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
const command_js_1 = require("../../common/command.js");
|
|
6
|
-
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
7
6
|
/**
|
|
8
|
-
* The
|
|
7
|
+
* The schema for a user role link response
|
|
9
8
|
*/
|
|
10
|
-
|
|
9
|
+
exports.UserRoleLinkSchema = typebox_1.Type.Object({
|
|
11
10
|
roleId: typebox_1.Type.String(),
|
|
12
11
|
organizationId: typebox_1.Type.String(),
|
|
13
12
|
userId: typebox_1.Type.String(),
|
|
14
13
|
});
|
|
15
14
|
/**
|
|
16
|
-
*
|
|
15
|
+
* Link a role to a user
|
|
17
16
|
*/
|
|
18
|
-
class
|
|
17
|
+
class LinkUserRoleCommand extends sdk_1.Command {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the command should retry on failure
|
|
20
|
+
*/
|
|
21
|
+
retryOnFailure = false;
|
|
19
22
|
/**
|
|
20
23
|
* Get the method
|
|
21
24
|
*/
|
|
@@ -32,13 +35,21 @@ class UserRoleAssociationCreateCommand extends command_js_1.Command {
|
|
|
32
35
|
* Get the path
|
|
33
36
|
*/
|
|
34
37
|
getPath() {
|
|
35
|
-
return `/api/v1/role-associations/user/${this.input.userId}
|
|
38
|
+
return `/api/v1/role-associations/user/${this.input.userId}/`;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Get the body
|
|
42
|
+
*/
|
|
43
|
+
getBody() {
|
|
44
|
+
return {
|
|
45
|
+
roleId: this.input.roleId,
|
|
46
|
+
};
|
|
36
47
|
}
|
|
37
48
|
/**
|
|
38
49
|
* Parse the response
|
|
39
50
|
*/
|
|
40
51
|
parseResponse(rawResponse) {
|
|
41
|
-
return (0,
|
|
52
|
+
return (0, sdk_1.parseResponseHelper)(exports.UserRoleLinkSchema, rawResponse);
|
|
42
53
|
}
|
|
43
54
|
}
|
|
44
|
-
exports.
|
|
55
|
+
exports.LinkUserRoleCommand = LinkUserRoleCommand;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Command } from "@flowcore/sdk";
|
|
2
|
+
import { type KeyRoleLink } from "./link-key-role.js";
|
|
3
|
+
/**
|
|
4
|
+
* The input for the unlink key role command
|
|
5
|
+
*/
|
|
6
|
+
export interface UnlinkKeyRoleInput {
|
|
7
|
+
/** The key id */
|
|
8
|
+
keyId: string;
|
|
9
|
+
/** The role id */
|
|
10
|
+
roleId: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Unlink a role from a key
|
|
14
|
+
*/
|
|
15
|
+
export declare class UnlinkKeyRoleCommand extends Command<UnlinkKeyRoleInput, KeyRoleLink> {
|
|
16
|
+
/**
|
|
17
|
+
* Whether the command should retry on failure
|
|
18
|
+
*/
|
|
19
|
+
protected retryOnFailure: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Get the method
|
|
22
|
+
*/
|
|
23
|
+
protected getMethod(): string;
|
|
24
|
+
/**
|
|
25
|
+
* Get the base url
|
|
26
|
+
*/
|
|
27
|
+
protected getBaseUrl(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Get the path
|
|
30
|
+
*/
|
|
31
|
+
protected getPath(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Get the body
|
|
34
|
+
*/
|
|
35
|
+
protected getBody(): Record<string, unknown>;
|
|
36
|
+
/**
|
|
37
|
+
* Parse the response
|
|
38
|
+
*/
|
|
39
|
+
protected parseResponse(rawResponse: unknown): KeyRoleLink;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=unlink-key-role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unlink-key-role.d.ts","sourceRoot":"","sources":["../../../../src/commands/iam/role-associations/unlink-key-role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,oBAAoB,CAAA;AAExE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,OAAO,CAC/C,kBAAkB,EAClB,WAAW,CACZ;IACC;;OAEG;IACH,UAAmB,cAAc,UAAQ;IAEzC;;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;IAMrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,WAAW;CAGpE"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnlinkKeyRoleCommand = void 0;
|
|
4
|
+
const sdk_1 = require("@flowcore/sdk");
|
|
5
|
+
const link_key_role_js_1 = require("./link-key-role.js");
|
|
6
|
+
/**
|
|
7
|
+
* Unlink a role from a key
|
|
8
|
+
*/
|
|
9
|
+
class UnlinkKeyRoleCommand 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 "DELETE";
|
|
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/role-associations/key/${this.input.keyId}/`;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get the body
|
|
34
|
+
*/
|
|
35
|
+
getBody() {
|
|
36
|
+
return {
|
|
37
|
+
roleId: this.input.roleId,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Parse the response
|
|
42
|
+
*/
|
|
43
|
+
parseResponse(rawResponse) {
|
|
44
|
+
return (0, sdk_1.parseResponseHelper)(link_key_role_js_1.KeyRoleLinkSchema, rawResponse);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.UnlinkKeyRoleCommand = UnlinkKeyRoleCommand;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Command } from "@flowcore/sdk";
|
|
2
|
+
import { type UserRoleLink } from "./link-user-role.js";
|
|
3
|
+
/**
|
|
4
|
+
* The input for the unlink user role command
|
|
5
|
+
*/
|
|
6
|
+
export interface UnlinkUserRoleInput {
|
|
7
|
+
/** The user id */
|
|
8
|
+
userId: string;
|
|
9
|
+
/** The role id */
|
|
10
|
+
roleId: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Unlink a role from a user
|
|
14
|
+
*/
|
|
15
|
+
export declare class UnlinkUserRoleCommand extends Command<UnlinkUserRoleInput, UserRoleLink> {
|
|
16
|
+
/**
|
|
17
|
+
* Whether the command should retry on failure
|
|
18
|
+
*/
|
|
19
|
+
protected retryOnFailure: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Get the method
|
|
22
|
+
*/
|
|
23
|
+
protected getMethod(): string;
|
|
24
|
+
/**
|
|
25
|
+
* Get the base url
|
|
26
|
+
*/
|
|
27
|
+
protected getBaseUrl(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Get the path
|
|
30
|
+
*/
|
|
31
|
+
protected getPath(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Get the body
|
|
34
|
+
*/
|
|
35
|
+
protected getBody(): Record<string, unknown>;
|
|
36
|
+
/**
|
|
37
|
+
* Parse the response
|
|
38
|
+
*/
|
|
39
|
+
protected parseResponse(rawResponse: unknown): UserRoleLink;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=unlink-user-role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unlink-user-role.d.ts","sourceRoot":"","sources":["../../../../src/commands/iam/role-associations/unlink-user-role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,qBAAqB,CAAA;AAE3E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAChD,mBAAmB,EACnB,YAAY,CACb;IACC;;OAEG;IACH,UAAmB,cAAc,UAAQ;IAEzC;;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;IAMrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,YAAY;CAGrE"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnlinkUserRoleCommand = void 0;
|
|
4
|
+
const sdk_1 = require("@flowcore/sdk");
|
|
5
|
+
const link_user_role_js_1 = require("./link-user-role.js");
|
|
6
|
+
/**
|
|
7
|
+
* Unlink a role from a user
|
|
8
|
+
*/
|
|
9
|
+
class UnlinkUserRoleCommand 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 "DELETE";
|
|
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/role-associations/user/${this.input.userId}/`;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get the body
|
|
34
|
+
*/
|
|
35
|
+
getBody() {
|
|
36
|
+
return {
|
|
37
|
+
roleId: this.input.roleId,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Parse the response
|
|
42
|
+
*/
|
|
43
|
+
parseResponse(rawResponse) {
|
|
44
|
+
return (0, sdk_1.parseResponseHelper)(link_user_role_js_1.UserRoleLinkSchema, rawResponse);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.UnlinkUserRoleCommand = UnlinkUserRoleCommand;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Command } from "@flowcore/sdk";
|
|
2
|
+
import { type Static, type TBoolean, type TObject, type TOptional, type TString } from "@sinclair/typebox";
|
|
3
|
+
/**
|
|
4
|
+
* The schema for a role
|
|
5
|
+
*/
|
|
6
|
+
export declare const RoleSchema: TObject<{
|
|
7
|
+
id: TString;
|
|
8
|
+
organizationId: TString;
|
|
9
|
+
name: TString;
|
|
10
|
+
description: TOptional<TString>;
|
|
11
|
+
flowcoreManaged: TOptional<TBoolean>;
|
|
12
|
+
archived: TBoolean;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* The Role type
|
|
16
|
+
*/
|
|
17
|
+
export type Role = Static<typeof RoleSchema>;
|
|
18
|
+
/**
|
|
19
|
+
* The input for the role create command
|
|
20
|
+
*/
|
|
21
|
+
export interface RoleCreateInput {
|
|
22
|
+
/** The organization id */
|
|
23
|
+
organizationId: string;
|
|
24
|
+
/** The name of the role */
|
|
25
|
+
name: string;
|
|
26
|
+
/** The description of the role */
|
|
27
|
+
description?: string;
|
|
28
|
+
/** Whether the role is managed by Flowcore */
|
|
29
|
+
flowcoreManaged?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Create a role
|
|
33
|
+
*/
|
|
34
|
+
export declare class RoleCreateCommand extends Command<RoleCreateInput, Role> {
|
|
35
|
+
/**
|
|
36
|
+
* Whether the command should retry on failure
|
|
37
|
+
*/
|
|
38
|
+
protected retryOnFailure: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Get the method
|
|
41
|
+
*/
|
|
42
|
+
protected getMethod(): string;
|
|
43
|
+
/**
|
|
44
|
+
* Get the base url
|
|
45
|
+
*/
|
|
46
|
+
protected getBaseUrl(): string;
|
|
47
|
+
/**
|
|
48
|
+
* Get the path
|
|
49
|
+
*/
|
|
50
|
+
protected getPath(): string;
|
|
51
|
+
/**
|
|
52
|
+
* Get the body
|
|
53
|
+
*/
|
|
54
|
+
protected getBody(): Record<string, unknown>;
|
|
55
|
+
/**
|
|
56
|
+
* Parse the response
|
|
57
|
+
*/
|
|
58
|
+
protected parseResponse(rawResponse: unknown): Role;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=create-role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-role.d.ts","sourceRoot":"","sources":["../../../../src/commands/iam/roles/create-role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAEhH;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC;IAC/B,EAAE,EAAE,OAAO,CAAA;IACX,cAAc,EAAE,OAAO,CAAA;IACvB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IAC/B,eAAe,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAA;IACpC,QAAQ,EAAE,QAAQ,CAAA;CACnB,CAOC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAA;AAE5C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,0BAA0B;IAC1B,cAAc,EAAE,MAAM,CAAA;IACtB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8CAA8C;IAC9C,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,OAAO,CAAC,eAAe,EAAE,IAAI,CAAC;IACnE;;OAEG;IACH,UAAmB,cAAc,UAAQ;IAEzC;;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;IAOrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI;CAG7D"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoleCreateCommand = exports.RoleSchema = void 0;
|
|
4
|
+
const sdk_1 = require("@flowcore/sdk");
|
|
5
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
6
|
+
/**
|
|
7
|
+
* The schema for a role
|
|
8
|
+
*/
|
|
9
|
+
exports.RoleSchema = typebox_1.Type.Object({
|
|
10
|
+
id: typebox_1.Type.String(),
|
|
11
|
+
organizationId: typebox_1.Type.String(),
|
|
12
|
+
name: typebox_1.Type.String(),
|
|
13
|
+
description: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
14
|
+
flowcoreManaged: typebox_1.Type.Optional(typebox_1.Type.Boolean({ default: false })),
|
|
15
|
+
archived: typebox_1.Type.Boolean(),
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Create a role
|
|
19
|
+
*/
|
|
20
|
+
class RoleCreateCommand extends sdk_1.Command {
|
|
21
|
+
/**
|
|
22
|
+
* Whether the command should retry on failure
|
|
23
|
+
*/
|
|
24
|
+
retryOnFailure = false;
|
|
25
|
+
/**
|
|
26
|
+
* Get the method
|
|
27
|
+
*/
|
|
28
|
+
getMethod() {
|
|
29
|
+
return "POST";
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get the base url
|
|
33
|
+
*/
|
|
34
|
+
getBaseUrl() {
|
|
35
|
+
return "https://iam.api.flowcore.io";
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Get the path
|
|
39
|
+
*/
|
|
40
|
+
getPath() {
|
|
41
|
+
return "/api/v1/roles/";
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get the body
|
|
45
|
+
*/
|
|
46
|
+
getBody() {
|
|
47
|
+
return {
|
|
48
|
+
...this.input,
|
|
49
|
+
flowcoreManaged: this.input.flowcoreManaged ?? false,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Parse the response
|
|
54
|
+
*/
|
|
55
|
+
parseResponse(rawResponse) {
|
|
56
|
+
return (0, sdk_1.parseResponseHelper)(exports.RoleSchema, rawResponse);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.RoleCreateCommand = RoleCreateCommand;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { Command } from "
|
|
2
|
-
import { type Role } from "
|
|
1
|
+
import { Command } from "@flowcore/sdk";
|
|
2
|
+
import { type Role } from "./create-role.js";
|
|
3
3
|
/**
|
|
4
4
|
* The input for the role list command
|
|
5
5
|
*/
|
|
6
6
|
export interface RoleListInput {
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
/** the role name */
|
|
10
|
-
name?: string;
|
|
7
|
+
/** Optional organization id to filter by */
|
|
8
|
+
organizationId?: string;
|
|
11
9
|
}
|
|
12
10
|
/**
|
|
13
|
-
*
|
|
11
|
+
* List roles for the current user
|
|
14
12
|
*/
|
|
15
13
|
export declare class RoleListCommand extends Command<RoleListInput, Role[]> {
|
|
14
|
+
/**
|
|
15
|
+
* Whether the command should retry on failure
|
|
16
|
+
*/
|
|
17
|
+
protected retryOnFailure: boolean;
|
|
16
18
|
/**
|
|
17
19
|
* Get the method
|
|
18
20
|
*/
|
|
@@ -30,4 +32,4 @@ export declare class RoleListCommand extends Command<RoleListInput, Role[]> {
|
|
|
30
32
|
*/
|
|
31
33
|
protected parseResponse(rawResponse: unknown): Role[];
|
|
32
34
|
}
|
|
33
|
-
//# sourceMappingURL=
|
|
35
|
+
//# sourceMappingURL=get-roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-roles.d.ts","sourceRoot":"","sources":["../../../../src/commands/iam/roles/get-roles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAE5D,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,kBAAkB,CAAA;AAExD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,4CAA4C;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,OAAO,CAAC,aAAa,EAAE,IAAI,EAAE,CAAC;IACjE;;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,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,EAAE;CAG/D"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoleListCommand = void 0;
|
|
4
|
+
const sdk_1 = require("@flowcore/sdk");
|
|
5
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
6
|
+
const create_role_js_1 = require("./create-role.js");
|
|
7
|
+
/**
|
|
8
|
+
* List roles for the current user
|
|
9
|
+
*/
|
|
10
|
+
class RoleListCommand extends sdk_1.Command {
|
|
11
|
+
/**
|
|
12
|
+
* Whether the command should retry on failure
|
|
13
|
+
*/
|
|
14
|
+
retryOnFailure = true;
|
|
15
|
+
/**
|
|
16
|
+
* Get the method
|
|
17
|
+
*/
|
|
18
|
+
getMethod() {
|
|
19
|
+
return "GET";
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get the base url
|
|
23
|
+
*/
|
|
24
|
+
getBaseUrl() {
|
|
25
|
+
return "https://iam.api.flowcore.io";
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get the path
|
|
29
|
+
*/
|
|
30
|
+
getPath() {
|
|
31
|
+
return "/api/v1/roles/";
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Parse the response
|
|
35
|
+
*/
|
|
36
|
+
parseResponse(rawResponse) {
|
|
37
|
+
return (0, sdk_1.parseResponseHelper)(typebox_1.Type.Array(create_role_js_1.RoleSchema), rawResponse);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.RoleListCommand = RoleListCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Command } from "@flowcore/sdk";
|
|
2
|
+
import { type Static, type TObject, type TString } from "@sinclair/typebox";
|
|
3
|
+
/**
|
|
4
|
+
* The input for the role archive command
|
|
5
|
+
*/
|
|
6
|
+
export interface RoleArchiveInput {
|
|
7
|
+
/** The role id */
|
|
8
|
+
roleId: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The schema for the archive role response
|
|
12
|
+
*/
|
|
13
|
+
export declare const ArchiveRoleResponseSchema: TObject<{
|
|
14
|
+
message: TString;
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* The archive role response type
|
|
18
|
+
*/
|
|
19
|
+
export type ArchiveRoleResponse = Static<typeof ArchiveRoleResponseSchema>;
|
|
20
|
+
/**
|
|
21
|
+
* Archive a role by ID
|
|
22
|
+
*/
|
|
23
|
+
export declare class RoleArchiveCommand extends Command<RoleArchiveInput, ArchiveRoleResponse> {
|
|
24
|
+
/**
|
|
25
|
+
* Whether the command should retry on failure
|
|
26
|
+
*/
|
|
27
|
+
protected retryOnFailure: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Get the method
|
|
30
|
+
*/
|
|
31
|
+
protected getMethod(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Get the base url
|
|
34
|
+
*/
|
|
35
|
+
protected getBaseUrl(): string;
|
|
36
|
+
/**
|
|
37
|
+
* Get the path
|
|
38
|
+
*/
|
|
39
|
+
protected getPath(): string;
|
|
40
|
+
/**
|
|
41
|
+
* Parse the response
|
|
42
|
+
*/
|
|
43
|
+
protected parseResponse(rawResponse: unknown): ArchiveRoleResponse;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=archive-role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive-role.d.ts","sourceRoot":"","sources":["../../../../../src/commands/iam/roles/id/archive-role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAEjF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAC;IAC9C,OAAO,EAAE,OAAO,CAAA;CACjB,CAEC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE1E;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,OAAO,CAC7C,gBAAgB,EAChB,mBAAmB,CACpB;IACC;;OAEG;IACH,UAAmB,cAAc,UAAQ;IAEzC;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,mBAAmB;CAG5E"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoleArchiveCommand = exports.ArchiveRoleResponseSchema = void 0;
|
|
4
|
+
const sdk_1 = require("@flowcore/sdk");
|
|
5
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
6
|
+
/**
|
|
7
|
+
* The schema for the archive role response
|
|
8
|
+
*/
|
|
9
|
+
exports.ArchiveRoleResponseSchema = typebox_1.Type.Object({
|
|
10
|
+
message: typebox_1.Type.String(),
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* Archive a role by ID
|
|
14
|
+
*/
|
|
15
|
+
class RoleArchiveCommand extends sdk_1.Command {
|
|
16
|
+
/**
|
|
17
|
+
* Whether the command should retry on failure
|
|
18
|
+
*/
|
|
19
|
+
retryOnFailure = false;
|
|
20
|
+
/**
|
|
21
|
+
* Get the method
|
|
22
|
+
*/
|
|
23
|
+
getMethod() {
|
|
24
|
+
return "DELETE";
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Get the base url
|
|
28
|
+
*/
|
|
29
|
+
getBaseUrl() {
|
|
30
|
+
return "https://iam.api.flowcore.io";
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get the path
|
|
34
|
+
*/
|
|
35
|
+
getPath() {
|
|
36
|
+
return `/api/v1/roles/${this.input.roleId}`;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Parse the response
|
|
40
|
+
*/
|
|
41
|
+
parseResponse(rawResponse) {
|
|
42
|
+
return (0, sdk_1.parseResponseHelper)(exports.ArchiveRoleResponseSchema, rawResponse);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.RoleArchiveCommand = RoleArchiveCommand;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command } from "@flowcore/sdk";
|
|
2
|
+
import { type Role } from "../create-role.js";
|
|
3
|
+
/**
|
|
4
|
+
* The input for the role get command
|
|
5
|
+
*/
|
|
6
|
+
export interface RoleGetInput {
|
|
7
|
+
/** The role id */
|
|
8
|
+
roleId: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get a role by ID
|
|
12
|
+
*/
|
|
13
|
+
export declare class RoleGetCommand extends Command<RoleGetInput, Role> {
|
|
14
|
+
/**
|
|
15
|
+
* Whether the command should retry on failure
|
|
16
|
+
*/
|
|
17
|
+
protected retryOnFailure: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Get the method
|
|
20
|
+
*/
|
|
21
|
+
protected getMethod(): string;
|
|
22
|
+
/**
|
|
23
|
+
* Get the base url
|
|
24
|
+
*/
|
|
25
|
+
protected getBaseUrl(): string;
|
|
26
|
+
/**
|
|
27
|
+
* Get the path
|
|
28
|
+
*/
|
|
29
|
+
protected getPath(): string;
|
|
30
|
+
/**
|
|
31
|
+
* Parse the response
|
|
32
|
+
*/
|
|
33
|
+
protected parseResponse(rawResponse: unknown): Role;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=get-role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-role.d.ts","sourceRoot":"","sources":["../../../../../src/commands/iam/roles/id/get-role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,mBAAmB,CAAA;AAEzD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC;IAC7D;;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,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI;CAG7D"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoleGetCommand = void 0;
|
|
4
|
+
const sdk_1 = require("@flowcore/sdk");
|
|
5
|
+
const create_role_js_1 = require("../create-role.js");
|
|
6
|
+
/**
|
|
7
|
+
* Get a role by ID
|
|
8
|
+
*/
|
|
9
|
+
class RoleGetCommand 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 "GET";
|
|
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
|
+
* Parse the response
|
|
34
|
+
*/
|
|
35
|
+
parseResponse(rawResponse) {
|
|
36
|
+
return (0, sdk_1.parseResponseHelper)(create_role_js_1.RoleSchema, rawResponse);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.RoleGetCommand = RoleGetCommand;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Command } from "@flowcore/sdk";
|
|
2
|
+
import { type Role } from "../create-role.js";
|
|
3
|
+
/**
|
|
4
|
+
* The input for the role update command
|
|
5
|
+
*/
|
|
6
|
+
export interface RoleUpdateInput {
|
|
7
|
+
/** The role id */
|
|
8
|
+
roleId: string;
|
|
9
|
+
/** The organization id */
|
|
10
|
+
organizationId: string;
|
|
11
|
+
/** The name of the role */
|
|
12
|
+
name: string;
|
|
13
|
+
/** The description of the role */
|
|
14
|
+
description?: string;
|
|
15
|
+
/** Whether the role is managed by Flowcore */
|
|
16
|
+
flowcoreManaged?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Update a role by ID
|
|
20
|
+
*/
|
|
21
|
+
export declare class RoleUpdateCommand extends Command<RoleUpdateInput, Role> {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the command should retry on failure
|
|
24
|
+
*/
|
|
25
|
+
protected retryOnFailure: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Get the method
|
|
28
|
+
*/
|
|
29
|
+
protected getMethod(): string;
|
|
30
|
+
/**
|
|
31
|
+
* Get the base url
|
|
32
|
+
*/
|
|
33
|
+
protected getBaseUrl(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Get the path
|
|
36
|
+
*/
|
|
37
|
+
protected getPath(): string;
|
|
38
|
+
/**
|
|
39
|
+
* Get the body
|
|
40
|
+
*/
|
|
41
|
+
protected getBody(): Record<string, unknown>;
|
|
42
|
+
/**
|
|
43
|
+
* Parse the response
|
|
44
|
+
*/
|
|
45
|
+
protected parseResponse(rawResponse: unknown): Role;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=update-role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-role.d.ts","sourceRoot":"","sources":["../../../../../src/commands/iam/roles/id/update-role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,mBAAmB,CAAA;AAEzD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,0BAA0B;IAC1B,cAAc,EAAE,MAAM,CAAA;IACtB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8CAA8C;IAC9C,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,OAAO,CAAC,eAAe,EAAE,IAAI,CAAC;IACnE;;OAEG;IACH,UAAmB,cAAc,UAAQ;IAEzC;;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;IASrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI;CAG7D"}
|