@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,57 @@
|
|
|
1
|
+
import { Command, parseResponseHelper } from "@flowcore/sdk";
|
|
2
|
+
import { Type } from "@sinclair/typebox";
|
|
3
|
+
/**
|
|
4
|
+
* The schema for a valid policy
|
|
5
|
+
*/
|
|
6
|
+
export const ValidPolicySchema = Type.Object({
|
|
7
|
+
policyFrn: Type.String(),
|
|
8
|
+
statementId: Type.String(),
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* The schema for a validation response
|
|
12
|
+
*/
|
|
13
|
+
export const ValidationResponseSchema = Type.Object({
|
|
14
|
+
valid: Type.Boolean(),
|
|
15
|
+
checksum: Type.String(),
|
|
16
|
+
validPolicies: Type.Array(ValidPolicySchema),
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* Validate if a user can perform actions
|
|
20
|
+
*/
|
|
21
|
+
export class ValidateUserCommand extends Command {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the command should retry on failure
|
|
24
|
+
*/
|
|
25
|
+
retryOnFailure = true;
|
|
26
|
+
/**
|
|
27
|
+
* Get the method
|
|
28
|
+
*/
|
|
29
|
+
getMethod() {
|
|
30
|
+
return "POST";
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get the base url
|
|
34
|
+
*/
|
|
35
|
+
getBaseUrl() {
|
|
36
|
+
return "https://iam.api.flowcore.io";
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Get the path
|
|
40
|
+
*/
|
|
41
|
+
getPath() {
|
|
42
|
+
return `/api/v1/validate/users/${this.input.userId}`;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Get the body
|
|
46
|
+
*/
|
|
47
|
+
getBody() {
|
|
48
|
+
const { ...rest } = this.input;
|
|
49
|
+
return rest;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Parse the response
|
|
53
|
+
*/
|
|
54
|
+
parseResponse(rawResponse) {
|
|
55
|
+
return parseResponseHelper(ValidationResponseSchema, rawResponse);
|
|
56
|
+
}
|
|
57
|
+
}
|
package/esm/commands/index.d.ts
CHANGED
|
@@ -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,CAAA;AAC3D,cAAc,mCAAmC,CAAA;AAGjD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAG3C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"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"}
|
package/esm/commands/index.js
CHANGED
|
@@ -4,6 +4,8 @@ export * from "./tenant/tenant.enable-sensitive-data.js";
|
|
|
4
4
|
export * from "./tenant/tenant.fetch.js";
|
|
5
5
|
export * from "./tenant/tenant.list.js";
|
|
6
6
|
export * from "./tenant/tenant.translate-name-to-id.js";
|
|
7
|
+
// Adapter
|
|
8
|
+
export * from "./adapter/reset-adapter.js";
|
|
7
9
|
// Api Key
|
|
8
10
|
export * from "./api-key/api-key.create.js";
|
|
9
11
|
export * from "./api-key/api-key.delete.js";
|
|
@@ -44,14 +46,6 @@ export * from "./event-type/event-type.update.js";
|
|
|
44
46
|
// Ingestion
|
|
45
47
|
export * from "./ingestion/ingest.batch.js";
|
|
46
48
|
export * from "./ingestion/ingest.event.js";
|
|
47
|
-
// IAM
|
|
48
|
-
export * from "./iam/api-key-role-association.create.js";
|
|
49
|
-
export * from "./iam/api-key-role-association.delete.js";
|
|
50
|
-
export * from "./iam/api-key-role-association.list.js";
|
|
51
|
-
export * from "./iam/role.list.js";
|
|
52
|
-
export * from "./iam/user-role-association.create.js";
|
|
53
|
-
export * from "./iam/user-role-association.delete.js";
|
|
54
|
-
export * from "./iam/user-role-association.list.js";
|
|
55
49
|
// Events
|
|
56
50
|
export * from "./events/event.list.js";
|
|
57
51
|
export * from "./events/events.fetch-time-buckets-by-names.js";
|
|
@@ -76,3 +70,37 @@ export * from "./scenario/scenario.delete.js";
|
|
|
76
70
|
export * from "./scenario/scenario.fetch.js";
|
|
77
71
|
export * from "./scenario/scenario.list.js";
|
|
78
72
|
export * from "./scenario/scenario.update.js";
|
|
73
|
+
// Identity and Access Management
|
|
74
|
+
export * from "./iam/permissions/get-user-permissions.js";
|
|
75
|
+
export * from "./iam/policies/create-policy.js";
|
|
76
|
+
export * from "./iam/policies/get-policy.js";
|
|
77
|
+
export * from "./iam/policies/id/archive-policy.js";
|
|
78
|
+
export * from "./iam/policies/id/get-policy.js";
|
|
79
|
+
export * from "./iam/policies/id/update-policy.js";
|
|
80
|
+
export * from "./iam/policy-associations/get-key-policies.js";
|
|
81
|
+
export * from "./iam/policy-associations/get-organization-policies.js";
|
|
82
|
+
export * from "./iam/policy-associations/get-policy-associations.js";
|
|
83
|
+
export * from "./iam/policy-associations/get-role-policies.js";
|
|
84
|
+
export * from "./iam/policy-associations/get-user-policies.js";
|
|
85
|
+
export * from "./iam/policy-associations/link-key-policy.js";
|
|
86
|
+
export * from "./iam/policy-associations/link-role-policy.js";
|
|
87
|
+
export * from "./iam/policy-associations/link-user-policy.js";
|
|
88
|
+
export * from "./iam/policy-associations/unlink-key-policy.js";
|
|
89
|
+
export * from "./iam/policy-associations/unlink-role-policy.js";
|
|
90
|
+
export * from "./iam/policy-associations/unlink-user-policy.js";
|
|
91
|
+
export * from "./iam/role-associations/get-key-roles.js";
|
|
92
|
+
export * from "./iam/role-associations/get-organization-roles.js";
|
|
93
|
+
export * from "./iam/role-associations/get-role-associations.js";
|
|
94
|
+
export * from "./iam/role-associations/get-user-roles.js";
|
|
95
|
+
export * from "./iam/role-associations/link-key-role.js";
|
|
96
|
+
export * from "./iam/role-associations/link-user-role.js";
|
|
97
|
+
export * from "./iam/role-associations/unlink-key-role.js";
|
|
98
|
+
export * from "./iam/role-associations/unlink-user-role.js";
|
|
99
|
+
export * from "./iam/roles/create-role.js";
|
|
100
|
+
export * from "./iam/roles/get-roles.js";
|
|
101
|
+
export * from "./iam/roles/id/archive-role.js";
|
|
102
|
+
export * from "./iam/roles/id/get-role.js";
|
|
103
|
+
export * from "./iam/roles/id/update-role.js";
|
|
104
|
+
export * from "./iam/tenant-iam-audit/get-audit-for-tenant.js";
|
|
105
|
+
export * from "./iam/validate/validate-key.js";
|
|
106
|
+
export * from "./iam/validate/validate-user.js";
|
|
@@ -12,24 +12,11 @@ const responseSchema = Type.Object({
|
|
|
12
12
|
* Ingest a batch of events
|
|
13
13
|
*/
|
|
14
14
|
export class IngestBatchCommand extends Command {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Object.defineProperty(this, "dedicatedSubdomain", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
configurable: true,
|
|
23
|
-
writable: true,
|
|
24
|
-
value: "webhook"
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(this, "allowedModes", {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
configurable: true,
|
|
29
|
-
writable: true,
|
|
30
|
-
value: ["apiKey"]
|
|
31
|
-
});
|
|
32
|
-
}
|
|
15
|
+
/**
|
|
16
|
+
* The dedicated subdomain for the command
|
|
17
|
+
*/
|
|
18
|
+
dedicatedSubdomain = "webhook";
|
|
19
|
+
allowedModes = ["apiKey"];
|
|
33
20
|
getMethod() {
|
|
34
21
|
return "POST";
|
|
35
22
|
}
|
|
@@ -12,24 +12,11 @@ const responseSchema = Type.Object({
|
|
|
12
12
|
* Ingest an event
|
|
13
13
|
*/
|
|
14
14
|
export class IngestEventCommand extends Command {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Object.defineProperty(this, "dedicatedSubdomain", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
configurable: true,
|
|
23
|
-
writable: true,
|
|
24
|
-
value: "webhook"
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(this, "allowedModes", {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
configurable: true,
|
|
29
|
-
writable: true,
|
|
30
|
-
value: ["apiKey"]
|
|
31
|
-
});
|
|
32
|
-
}
|
|
15
|
+
/**
|
|
16
|
+
* The dedicated subdomain for the command
|
|
17
|
+
*/
|
|
18
|
+
dedicatedSubdomain = "webhook";
|
|
19
|
+
allowedModes = ["apiKey"];
|
|
33
20
|
getMethod() {
|
|
34
21
|
return "POST";
|
|
35
22
|
}
|
|
@@ -5,18 +5,10 @@ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
|
5
5
|
* Create a scenario
|
|
6
6
|
*/
|
|
7
7
|
export class ScenarioCreateCommand extends Command {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(this, "retryOnFailure", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: false
|
|
18
|
-
});
|
|
19
|
-
}
|
|
8
|
+
/**
|
|
9
|
+
* Whether the command should retry on failure
|
|
10
|
+
*/
|
|
11
|
+
retryOnFailure = false;
|
|
20
12
|
/**
|
|
21
13
|
* Get the method
|
|
22
14
|
*/
|
|
@@ -8,18 +8,10 @@ const ScenarioDeleteOutputSchema = Type.Object({
|
|
|
8
8
|
* Delete a scenario
|
|
9
9
|
*/
|
|
10
10
|
export class ScenarioDeleteCommand extends Command {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*/
|
|
16
|
-
Object.defineProperty(this, "retryOnFailure", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
configurable: true,
|
|
19
|
-
writable: true,
|
|
20
|
-
value: false
|
|
21
|
-
});
|
|
22
|
-
}
|
|
11
|
+
/**
|
|
12
|
+
* Whether the command should retry on failure
|
|
13
|
+
*/
|
|
14
|
+
retryOnFailure = false;
|
|
23
15
|
/**
|
|
24
16
|
* Get the method
|
|
25
17
|
*/
|
|
@@ -12,18 +12,10 @@ function isScenarioFetchByNameAndTenantInput(input) {
|
|
|
12
12
|
* fetch a scenario
|
|
13
13
|
*/
|
|
14
14
|
export class ScenarioFetchCommand extends Command {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*/
|
|
20
|
-
Object.defineProperty(this, "retryOnFailure", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
configurable: true,
|
|
23
|
-
writable: true,
|
|
24
|
-
value: false
|
|
25
|
-
});
|
|
26
|
-
}
|
|
15
|
+
/**
|
|
16
|
+
* Whether the command should retry on failure
|
|
17
|
+
*/
|
|
18
|
+
retryOnFailure = false;
|
|
27
19
|
/**
|
|
28
20
|
* Get the method
|
|
29
21
|
*/
|
|
@@ -10,18 +10,10 @@ const ScenarioListOutputSchema = Type.Object({
|
|
|
10
10
|
* list all scenarios
|
|
11
11
|
*/
|
|
12
12
|
export class ScenarioListCommand extends Command {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*/
|
|
18
|
-
Object.defineProperty(this, "retryOnFailure", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
configurable: true,
|
|
21
|
-
writable: true,
|
|
22
|
-
value: false
|
|
23
|
-
});
|
|
24
|
-
}
|
|
13
|
+
/**
|
|
14
|
+
* Whether the command should retry on failure
|
|
15
|
+
*/
|
|
16
|
+
retryOnFailure = false;
|
|
25
17
|
/**
|
|
26
18
|
* Get the method
|
|
27
19
|
*/
|
|
@@ -5,18 +5,10 @@ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
|
5
5
|
* Update a scenario
|
|
6
6
|
*/
|
|
7
7
|
export class ScenarioUpdateCommand extends Command {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(this, "retryOnFailure", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: false
|
|
18
|
-
});
|
|
19
|
-
}
|
|
8
|
+
/**
|
|
9
|
+
* Whether the command should retry on failure
|
|
10
|
+
*/
|
|
11
|
+
retryOnFailure = false;
|
|
20
12
|
/**
|
|
21
13
|
* Get the method
|
|
22
14
|
*/
|
|
@@ -23,18 +23,10 @@ const responseSchema = Type.Object({
|
|
|
23
23
|
* List secrets
|
|
24
24
|
*/
|
|
25
25
|
export class SecretCreateCommand extends GraphQlCommand {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
*/
|
|
31
|
-
Object.defineProperty(this, "allowedModes", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true,
|
|
35
|
-
value: ["bearer"]
|
|
36
|
-
});
|
|
37
|
-
}
|
|
26
|
+
/**
|
|
27
|
+
* The allowed modes for the command
|
|
28
|
+
*/
|
|
29
|
+
allowedModes = ["bearer"];
|
|
38
30
|
/**
|
|
39
31
|
* Parse the response
|
|
40
32
|
*/
|
|
@@ -23,18 +23,10 @@ const responseSchema = Type.Object({
|
|
|
23
23
|
* List secrets
|
|
24
24
|
*/
|
|
25
25
|
export class SecretDeleteCommand extends GraphQlCommand {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
*/
|
|
31
|
-
Object.defineProperty(this, "allowedModes", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true,
|
|
35
|
-
value: ["bearer"]
|
|
36
|
-
});
|
|
37
|
-
}
|
|
26
|
+
/**
|
|
27
|
+
* The allowed modes for the command
|
|
28
|
+
*/
|
|
29
|
+
allowedModes = ["bearer"];
|
|
38
30
|
/**
|
|
39
31
|
* Parse the response
|
|
40
32
|
*/
|
|
@@ -26,18 +26,10 @@ const responseSchema = Type.Object({
|
|
|
26
26
|
* List secrets
|
|
27
27
|
*/
|
|
28
28
|
export class SecretListCommand extends GraphQlCommand {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*/
|
|
34
|
-
Object.defineProperty(this, "allowedModes", {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
configurable: true,
|
|
37
|
-
writable: true,
|
|
38
|
-
value: ["bearer"]
|
|
39
|
-
});
|
|
40
|
-
}
|
|
29
|
+
/**
|
|
30
|
+
* The allowed modes for the command
|
|
31
|
+
*/
|
|
32
|
+
allowedModes = ["bearer"];
|
|
41
33
|
/**
|
|
42
34
|
* Parse the response
|
|
43
35
|
*/
|
|
@@ -5,18 +5,10 @@ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
|
5
5
|
* Create a Personal Access Token (PAT)
|
|
6
6
|
*/
|
|
7
7
|
export class SecurityCreatePATCommand extends Command {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(this, "retryOnFailure", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: false
|
|
18
|
-
});
|
|
19
|
-
}
|
|
8
|
+
/**
|
|
9
|
+
* Whether the command should retry on failure
|
|
10
|
+
*/
|
|
11
|
+
retryOnFailure = false;
|
|
20
12
|
/**
|
|
21
13
|
* Get the method
|
|
22
14
|
*/
|
|
@@ -5,18 +5,10 @@ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
|
5
5
|
* Delete a Personal Access Token (PAT)
|
|
6
6
|
*/
|
|
7
7
|
export class SecurityDeletePATCommand extends Command {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(this, "retryOnFailure", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: false
|
|
18
|
-
});
|
|
19
|
-
}
|
|
8
|
+
/**
|
|
9
|
+
* Whether the command should retry on failure
|
|
10
|
+
*/
|
|
11
|
+
retryOnFailure = false;
|
|
20
12
|
/**
|
|
21
13
|
* Get the method
|
|
22
14
|
*/
|
|
@@ -5,18 +5,10 @@ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
|
5
5
|
* Exchange a Personal Access Token (PAT) for an access token
|
|
6
6
|
*/
|
|
7
7
|
export class SecurityExchangePATCommand extends Command {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(this, "retryOnFailure", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: false
|
|
18
|
-
});
|
|
19
|
-
}
|
|
8
|
+
/**
|
|
9
|
+
* Whether the command should retry on failure
|
|
10
|
+
*/
|
|
11
|
+
retryOnFailure = false;
|
|
20
12
|
/**
|
|
21
13
|
* Get the method
|
|
22
14
|
*/
|
|
@@ -5,18 +5,10 @@ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
|
5
5
|
* Get a Personal Access Token (PAT)
|
|
6
6
|
*/
|
|
7
7
|
export class SecurityGetPATCommand extends Command {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(this, "retryOnFailure", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: false
|
|
18
|
-
});
|
|
19
|
-
}
|
|
8
|
+
/**
|
|
9
|
+
* Whether the command should retry on failure
|
|
10
|
+
*/
|
|
11
|
+
retryOnFailure = false;
|
|
20
12
|
/**
|
|
21
13
|
* Get the method
|
|
22
14
|
*/
|
|
@@ -6,18 +6,10 @@ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
|
6
6
|
* List all your Personal Access Token (PAT)
|
|
7
7
|
*/
|
|
8
8
|
export class SecurityListPATCommand extends Command {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
Object.defineProperty(this, "retryOnFailure", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
configurable: true,
|
|
17
|
-
writable: true,
|
|
18
|
-
value: false
|
|
19
|
-
});
|
|
20
|
-
}
|
|
9
|
+
/**
|
|
10
|
+
* Whether the command should retry on failure
|
|
11
|
+
*/
|
|
12
|
+
retryOnFailure = false;
|
|
21
13
|
/**
|
|
22
14
|
* Get the method
|
|
23
15
|
*/
|
|
@@ -45,18 +45,10 @@ const responseSchema = Type.Object({
|
|
|
45
45
|
* List tenants
|
|
46
46
|
*/
|
|
47
47
|
export class TenantListCommand extends GraphQlCommand {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
*/
|
|
53
|
-
Object.defineProperty(this, "allowedModes", {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
configurable: true,
|
|
56
|
-
writable: true,
|
|
57
|
-
value: ["bearer"]
|
|
58
|
-
});
|
|
59
|
-
}
|
|
48
|
+
/**
|
|
49
|
+
* The allowed modes for the command
|
|
50
|
+
*/
|
|
51
|
+
allowedModes = ["bearer"];
|
|
60
52
|
/**
|
|
61
53
|
* Parse the response
|
|
62
54
|
*/
|
|
@@ -26,18 +26,10 @@ const responseSchema = Type.Object({
|
|
|
26
26
|
* Create a variable
|
|
27
27
|
*/
|
|
28
28
|
export class VariableCreateCommand extends GraphQlCommand {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*/
|
|
34
|
-
Object.defineProperty(this, "allowedModes", {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
configurable: true,
|
|
37
|
-
writable: true,
|
|
38
|
-
value: ["bearer"]
|
|
39
|
-
});
|
|
40
|
-
}
|
|
29
|
+
/**
|
|
30
|
+
* The allowed modes for the command
|
|
31
|
+
*/
|
|
32
|
+
allowedModes = ["bearer"];
|
|
41
33
|
/**
|
|
42
34
|
* Parse the response
|
|
43
35
|
*/
|
|
@@ -26,18 +26,10 @@ const responseSchema = Type.Object({
|
|
|
26
26
|
* Create a variable
|
|
27
27
|
*/
|
|
28
28
|
export class VariableDeleteCommand extends GraphQlCommand {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*/
|
|
34
|
-
Object.defineProperty(this, "allowedModes", {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
configurable: true,
|
|
37
|
-
writable: true,
|
|
38
|
-
value: ["bearer"]
|
|
39
|
-
});
|
|
40
|
-
}
|
|
29
|
+
/**
|
|
30
|
+
* The allowed modes for the command
|
|
31
|
+
*/
|
|
32
|
+
allowedModes = ["bearer"];
|
|
41
33
|
/**
|
|
42
34
|
* Parse the response
|
|
43
35
|
*/
|
|
@@ -32,18 +32,10 @@ const responseSchema = Type.Object({
|
|
|
32
32
|
* List variables
|
|
33
33
|
*/
|
|
34
34
|
export class VariableListCommand extends GraphQlCommand {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
*/
|
|
40
|
-
Object.defineProperty(this, "allowedModes", {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
configurable: true,
|
|
43
|
-
writable: true,
|
|
44
|
-
value: ["bearer"]
|
|
45
|
-
});
|
|
46
|
-
}
|
|
35
|
+
/**
|
|
36
|
+
* The allowed modes for the command
|
|
37
|
+
*/
|
|
38
|
+
allowedModes = ["bearer"];
|
|
47
39
|
/**
|
|
48
40
|
* Parse the response
|
|
49
41
|
*/
|