@decaf-ts/integrations 0.11.0 → 0.12.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/README.md +164 -0
- package/dist/integrations.cjs +1 -1
- package/dist/integrations.cjs.map +1 -1
- package/dist/integrations.js +1 -1
- package/dist/integrations.js.map +1 -1
- package/docker/mailpit-compose.yml +17 -0
- package/docker/postgres-compose.yml +26 -0
- package/lib/cjs/blob/azure/AzureBlobStoreService.cjs +12 -23
- package/lib/cjs/blob/azure/AzureBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/core/BlobStoreService.cjs +26 -25
- package/lib/cjs/blob/core/BlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/gcp/GcsBlobStoreService.cjs +12 -23
- package/lib/cjs/blob/gcp/GcsBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/s3/S3BlobStoreService.cjs +11 -16
- package/lib/cjs/blob/s3/S3BlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/s3/S3CompatibleBlobStoreService.cjs +14 -16
- package/lib/cjs/blob/s3/S3CompatibleBlobStoreService.cjs.map +1 -1
- package/lib/cjs/comms/email/EmailService.cjs +376 -0
- package/lib/cjs/comms/email/EmailService.cjs.map +1 -0
- package/lib/cjs/comms/email/index.cjs +29 -0
- package/lib/cjs/comms/email/index.cjs.map +1 -0
- package/lib/cjs/comms/email/mime.cjs +225 -0
- package/lib/cjs/comms/email/mime.cjs.map +1 -0
- package/lib/cjs/comms/email/smtp.cjs +204 -0
- package/lib/cjs/comms/email/smtp.cjs.map +1 -0
- package/lib/cjs/comms/environment.cjs +63 -0
- package/lib/cjs/comms/environment.cjs.map +1 -0
- package/lib/cjs/comms/gmail/GmailService.cjs +235 -0
- package/lib/cjs/comms/gmail/GmailService.cjs.map +1 -0
- package/lib/cjs/comms/gmail/index.cjs +24 -0
- package/lib/cjs/comms/gmail/index.cjs.map +1 -0
- package/lib/cjs/comms/index.cjs +31 -0
- package/lib/cjs/comms/index.cjs.map +1 -0
- package/lib/cjs/comms/slack/SlackService.cjs +264 -0
- package/lib/cjs/comms/slack/SlackService.cjs.map +1 -0
- package/lib/cjs/comms/slack/index.cjs +24 -0
- package/lib/cjs/comms/slack/index.cjs.map +1 -0
- package/lib/cjs/comms/teams/TeamsService.cjs +212 -0
- package/lib/cjs/comms/teams/TeamsService.cjs.map +1 -0
- package/lib/cjs/comms/teams/index.cjs +24 -0
- package/lib/cjs/comms/teams/index.cjs.map +1 -0
- package/lib/cjs/comms/telegram/TelegramService.cjs +196 -0
- package/lib/cjs/comms/telegram/TelegramService.cjs.map +1 -0
- package/lib/cjs/comms/telegram/index.cjs +24 -0
- package/lib/cjs/comms/telegram/index.cjs.map +1 -0
- package/lib/cjs/devops/environment.cjs +43 -0
- package/lib/cjs/devops/environment.cjs.map +1 -0
- package/lib/cjs/devops/github/GithubService.cjs +302 -0
- package/lib/cjs/devops/github/GithubService.cjs.map +1 -0
- package/lib/cjs/devops/github/index.cjs +24 -0
- package/lib/cjs/devops/github/index.cjs.map +1 -0
- package/lib/cjs/devops/gitlab/GitlabService.cjs +282 -0
- package/lib/cjs/devops/gitlab/GitlabService.cjs.map +1 -0
- package/lib/cjs/devops/gitlab/index.cjs +24 -0
- package/lib/cjs/devops/gitlab/index.cjs.map +1 -0
- package/lib/cjs/devops/index.cjs +28 -0
- package/lib/cjs/devops/index.cjs.map +1 -0
- package/lib/cjs/feature-flags/models/FeatureFlag.model.cjs +2 -0
- package/lib/cjs/feature-flags/models/FeatureFlag.model.cjs.map +1 -1
- package/lib/cjs/feature-flags/models/FeatureFlagAccess.model.cjs +2 -0
- package/lib/cjs/feature-flags/models/FeatureFlagAccess.model.cjs.map +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/cjs/io/airtable/AirtableService.cjs +266 -0
- package/lib/cjs/io/airtable/AirtableService.cjs.map +1 -0
- package/lib/cjs/io/airtable/index.cjs +24 -0
- package/lib/cjs/io/airtable/index.cjs.map +1 -0
- package/lib/cjs/io/environment.cjs +46 -0
- package/lib/cjs/io/environment.cjs.map +1 -0
- package/lib/cjs/io/google-sheets/GoogleSheetsService.cjs +288 -0
- package/lib/cjs/io/google-sheets/GoogleSheetsService.cjs.map +1 -0
- package/lib/cjs/io/google-sheets/index.cjs +24 -0
- package/lib/cjs/io/google-sheets/index.cjs.map +1 -0
- package/lib/cjs/io/graphql/GraphqlService.cjs +143 -0
- package/lib/cjs/io/graphql/GraphqlService.cjs.map +1 -0
- package/lib/cjs/io/graphql/index.cjs +24 -0
- package/lib/cjs/io/graphql/index.cjs.map +1 -0
- package/lib/cjs/io/index.cjs +30 -0
- package/lib/cjs/io/index.cjs.map +1 -0
- package/lib/cjs/io/spreadsheet/SpreadsheetService.cjs +205 -0
- package/lib/cjs/io/spreadsheet/SpreadsheetService.cjs.map +1 -0
- package/lib/cjs/io/spreadsheet/index.cjs +25 -0
- package/lib/cjs/io/spreadsheet/index.cjs.map +1 -0
- package/lib/cjs/namespaces/index.cjs +1 -0
- package/lib/cjs/namespaces/index.cjs.map +1 -1
- package/lib/cjs/namespaces/models/credential.model.cjs +115 -0
- package/lib/cjs/namespaces/models/credential.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/effective-permission.model.cjs +2 -0
- package/lib/cjs/namespaces/models/effective-permission.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/group-membership.model.cjs +2 -0
- package/lib/cjs/namespaces/models/group-membership.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/group.model.cjs +2 -0
- package/lib/cjs/namespaces/models/group.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/index.cjs +1 -0
- package/lib/cjs/namespaces/models/index.cjs.map +1 -1
- package/lib/cjs/namespaces/models/inheritance-block.model.cjs +2 -0
- package/lib/cjs/namespaces/models/inheritance-block.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/org-unit-closure.model.cjs +2 -0
- package/lib/cjs/namespaces/models/org-unit-closure.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/org-unit-membership.model.cjs +2 -0
- package/lib/cjs/namespaces/models/org-unit-membership.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/org-unit-profile.model.cjs +2 -0
- package/lib/cjs/namespaces/models/org-unit-profile.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/org-unit.model.cjs +2 -0
- package/lib/cjs/namespaces/models/org-unit.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/permission.model.cjs +2 -0
- package/lib/cjs/namespaces/models/permission.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/principal.model.cjs +2 -0
- package/lib/cjs/namespaces/models/principal.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/protected-resource.model.cjs +2 -0
- package/lib/cjs/namespaces/models/protected-resource.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/resource-grant.model.cjs +2 -0
- package/lib/cjs/namespaces/models/resource-grant.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/role-assignment.model.cjs +2 -0
- package/lib/cjs/namespaces/models/role-assignment.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/role-permission.model.cjs +2 -0
- package/lib/cjs/namespaces/models/role-permission.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/role.model.cjs +2 -0
- package/lib/cjs/namespaces/models/role.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/storage-binding.model.cjs +2 -0
- package/lib/cjs/namespaces/models/storage-binding.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/tenant-membership.model.cjs +2 -0
- package/lib/cjs/namespaces/models/tenant-membership.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/tenant-profile.model.cjs +2 -0
- package/lib/cjs/namespaces/models/tenant-profile.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/tenant.model.cjs +2 -0
- package/lib/cjs/namespaces/models/tenant.model.cjs.map +1 -1
- package/lib/cjs/namespaces/models/user.model.cjs +2 -0
- package/lib/cjs/namespaces/models/user.model.cjs.map +1 -1
- package/lib/cjs/namespaces/rls/index.cjs +28 -0
- package/lib/cjs/namespaces/rls/index.cjs.map +1 -0
- package/lib/cjs/namespaces/rls/principal-resolver.cjs +66 -0
- package/lib/cjs/namespaces/rls/principal-resolver.cjs.map +1 -0
- package/lib/cjs/namespaces/rls/rls-bootstrap.service.cjs +269 -0
- package/lib/cjs/namespaces/rls/rls-bootstrap.service.cjs.map +1 -0
- package/lib/cjs/namespaces/rls/rls.constants.cjs +79 -0
- package/lib/cjs/namespaces/rls/rls.constants.cjs.map +1 -0
- package/lib/cjs/namespaces/rls/rls.template.cjs +719 -0
- package/lib/cjs/namespaces/rls/rls.template.cjs.map +1 -0
- package/lib/cjs/namespaces/rls/rls.types.cjs +4 -0
- package/lib/cjs/namespaces/rls/rls.types.cjs.map +1 -0
- package/lib/cjs/namespaces/rls/session-binding.cjs +70 -0
- package/lib/cjs/namespaces/rls/session-binding.cjs.map +1 -0
- package/lib/cjs/namespaces/services/credential.service.cjs +327 -0
- package/lib/cjs/namespaces/services/credential.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/index.cjs +1 -0
- package/lib/cjs/namespaces/services/index.cjs.map +1 -1
- package/lib/cjs/namespaces/types.cjs +6 -1
- package/lib/cjs/namespaces/types.cjs.map +1 -1
- package/lib/cjs/redis/adapter.cjs +7 -1
- package/lib/cjs/redis/adapter.cjs.map +1 -1
- package/lib/cjs/secrets/InfraCredentialBootstrap.cjs +80 -0
- package/lib/cjs/secrets/InfraCredentialBootstrap.cjs.map +1 -0
- package/lib/cjs/secrets/aws/AwsSecretService.cjs +2 -15
- package/lib/cjs/secrets/aws/AwsSecretService.cjs.map +1 -1
- package/lib/cjs/secrets/azure/AzureKeyVaultSecretService.cjs +2 -16
- package/lib/cjs/secrets/azure/AzureKeyVaultSecretService.cjs.map +1 -1
- package/lib/cjs/secrets/core/SecretReference.cjs +1 -0
- package/lib/cjs/secrets/core/SecretReference.cjs.map +1 -1
- package/lib/cjs/secrets/fs/FsSecretEnvironment.cjs +28 -0
- package/lib/cjs/secrets/fs/FsSecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/fs/FsSecretService.cjs +420 -0
- package/lib/cjs/secrets/fs/FsSecretService.cjs.map +1 -0
- package/lib/cjs/secrets/fs/FsSecretServiceConfig.cjs +25 -0
- package/lib/cjs/secrets/fs/FsSecretServiceConfig.cjs.map +1 -0
- package/lib/cjs/secrets/fs/index.cjs +27 -0
- package/lib/cjs/secrets/fs/index.cjs.map +1 -0
- package/lib/cjs/secrets/gcp/GcpSecretManagerService.cjs +2 -16
- package/lib/cjs/secrets/gcp/GcpSecretManagerService.cjs.map +1 -1
- package/lib/cjs/secrets/index.cjs +2 -0
- package/lib/cjs/secrets/index.cjs.map +1 -1
- package/lib/cjs/secrets/model/ModelSecretService.cjs +335 -43
- package/lib/cjs/secrets/model/ModelSecretService.cjs.map +1 -1
- package/lib/cjs/secrets/model/Secret.cjs +83 -5
- package/lib/cjs/secrets/model/Secret.cjs.map +1 -1
- package/lib/cjs/secrets/onepassword/OnePasswordSecretService.cjs +2 -16
- package/lib/cjs/secrets/onepassword/OnePasswordSecretService.cjs.map +1 -1
- package/lib/cjs/secrets/vault/VaultSecretService.cjs +2 -16
- package/lib/cjs/secrets/vault/VaultSecretService.cjs.map +1 -1
- package/lib/cjs/shared/environmentValue.cjs +24 -0
- package/lib/cjs/shared/environmentValue.cjs.map +1 -1
- package/lib/cjs/shared/http/HttpApiService.cjs +190 -0
- package/lib/cjs/shared/http/HttpApiService.cjs.map +1 -0
- package/lib/cjs/shared/http/hermeticBoot.cjs +150 -0
- package/lib/cjs/shared/http/hermeticBoot.cjs.map +1 -0
- package/lib/cjs/shared/http/index.cjs +28 -0
- package/lib/cjs/shared/http/index.cjs.map +1 -0
- package/lib/esm/blob/azure/AzureBlobStoreService.js +13 -21
- package/lib/esm/blob/azure/AzureBlobStoreService.js.map +1 -1
- package/lib/esm/blob/core/BlobStoreService.js +26 -25
- package/lib/esm/blob/core/BlobStoreService.js.map +1 -1
- package/lib/esm/blob/gcp/GcsBlobStoreService.js +13 -21
- package/lib/esm/blob/gcp/GcsBlobStoreService.js.map +1 -1
- package/lib/esm/blob/s3/S3BlobStoreService.js +12 -14
- package/lib/esm/blob/s3/S3BlobStoreService.js.map +1 -1
- package/lib/esm/blob/s3/S3CompatibleBlobStoreService.js +14 -16
- package/lib/esm/blob/s3/S3CompatibleBlobStoreService.js.map +1 -1
- package/lib/esm/comms/email/EmailService.js +338 -0
- package/lib/esm/comms/email/EmailService.js.map +1 -0
- package/lib/esm/comms/email/index.js +12 -0
- package/lib/esm/comms/email/index.js.map +1 -0
- package/lib/esm/comms/email/mime.js +218 -0
- package/lib/esm/comms/email/mime.js.map +1 -0
- package/lib/esm/comms/email/smtp.js +166 -0
- package/lib/esm/comms/email/smtp.js.map +1 -0
- package/lib/esm/comms/environment.js +59 -0
- package/lib/esm/comms/environment.js.map +1 -0
- package/lib/esm/comms/gmail/GmailService.js +230 -0
- package/lib/esm/comms/gmail/GmailService.js.map +1 -0
- package/lib/esm/comms/gmail/index.js +7 -0
- package/lib/esm/comms/gmail/index.js.map +1 -0
- package/lib/esm/comms/index.js +14 -0
- package/lib/esm/comms/index.js.map +1 -0
- package/lib/esm/comms/slack/SlackService.js +259 -0
- package/lib/esm/comms/slack/SlackService.js.map +1 -0
- package/lib/esm/comms/slack/index.js +7 -0
- package/lib/esm/comms/slack/index.js.map +1 -0
- package/lib/esm/comms/teams/TeamsService.js +204 -0
- package/lib/esm/comms/teams/TeamsService.js.map +1 -0
- package/lib/esm/comms/teams/index.js +7 -0
- package/lib/esm/comms/teams/index.js.map +1 -0
- package/lib/esm/comms/telegram/TelegramService.js +191 -0
- package/lib/esm/comms/telegram/TelegramService.js.map +1 -0
- package/lib/esm/comms/telegram/index.js +7 -0
- package/lib/esm/comms/telegram/index.js.map +1 -0
- package/lib/esm/devops/environment.js +39 -0
- package/lib/esm/devops/environment.js.map +1 -0
- package/lib/esm/devops/github/GithubService.js +297 -0
- package/lib/esm/devops/github/GithubService.js.map +1 -0
- package/lib/esm/devops/github/index.js +7 -0
- package/lib/esm/devops/github/index.js.map +1 -0
- package/lib/esm/devops/gitlab/GitlabService.js +277 -0
- package/lib/esm/devops/gitlab/GitlabService.js.map +1 -0
- package/lib/esm/devops/gitlab/index.js +7 -0
- package/lib/esm/devops/gitlab/index.js.map +1 -0
- package/lib/esm/devops/index.js +11 -0
- package/lib/esm/devops/index.js.map +1 -0
- package/lib/esm/feature-flags/models/FeatureFlag.model.js +2 -0
- package/lib/esm/feature-flags/models/FeatureFlag.model.js.map +1 -1
- package/lib/esm/feature-flags/models/FeatureFlagAccess.model.js +2 -0
- package/lib/esm/feature-flags/models/FeatureFlagAccess.model.js.map +1 -1
- package/lib/esm/index.js +3 -3
- package/lib/esm/io/airtable/AirtableService.js +261 -0
- package/lib/esm/io/airtable/AirtableService.js.map +1 -0
- package/lib/esm/io/airtable/index.js +7 -0
- package/lib/esm/io/airtable/index.js.map +1 -0
- package/lib/esm/io/environment.js +42 -0
- package/lib/esm/io/environment.js.map +1 -0
- package/lib/esm/io/google-sheets/GoogleSheetsService.js +283 -0
- package/lib/esm/io/google-sheets/GoogleSheetsService.js.map +1 -0
- package/lib/esm/io/google-sheets/index.js +7 -0
- package/lib/esm/io/google-sheets/index.js.map +1 -0
- package/lib/esm/io/graphql/GraphqlService.js +138 -0
- package/lib/esm/io/graphql/GraphqlService.js.map +1 -0
- package/lib/esm/io/graphql/index.js +7 -0
- package/lib/esm/io/graphql/index.js.map +1 -0
- package/lib/esm/io/index.js +13 -0
- package/lib/esm/io/index.js.map +1 -0
- package/lib/esm/io/spreadsheet/SpreadsheetService.js +200 -0
- package/lib/esm/io/spreadsheet/SpreadsheetService.js.map +1 -0
- package/lib/esm/io/spreadsheet/index.js +8 -0
- package/lib/esm/io/spreadsheet/index.js.map +1 -0
- package/lib/esm/namespaces/index.js +1 -0
- package/lib/esm/namespaces/index.js.map +1 -1
- package/lib/esm/namespaces/models/credential.model.js +106 -0
- package/lib/esm/namespaces/models/credential.model.js.map +1 -0
- package/lib/esm/namespaces/models/effective-permission.model.js +2 -0
- package/lib/esm/namespaces/models/effective-permission.model.js.map +1 -1
- package/lib/esm/namespaces/models/group-membership.model.js +2 -0
- package/lib/esm/namespaces/models/group-membership.model.js.map +1 -1
- package/lib/esm/namespaces/models/group.model.js +2 -0
- package/lib/esm/namespaces/models/group.model.js.map +1 -1
- package/lib/esm/namespaces/models/index.js +1 -0
- package/lib/esm/namespaces/models/index.js.map +1 -1
- package/lib/esm/namespaces/models/inheritance-block.model.js +2 -0
- package/lib/esm/namespaces/models/inheritance-block.model.js.map +1 -1
- package/lib/esm/namespaces/models/org-unit-closure.model.js +2 -0
- package/lib/esm/namespaces/models/org-unit-closure.model.js.map +1 -1
- package/lib/esm/namespaces/models/org-unit-membership.model.js +2 -0
- package/lib/esm/namespaces/models/org-unit-membership.model.js.map +1 -1
- package/lib/esm/namespaces/models/org-unit-profile.model.js +2 -0
- package/lib/esm/namespaces/models/org-unit-profile.model.js.map +1 -1
- package/lib/esm/namespaces/models/org-unit.model.js +2 -0
- package/lib/esm/namespaces/models/org-unit.model.js.map +1 -1
- package/lib/esm/namespaces/models/permission.model.js +2 -0
- package/lib/esm/namespaces/models/permission.model.js.map +1 -1
- package/lib/esm/namespaces/models/principal.model.js +2 -0
- package/lib/esm/namespaces/models/principal.model.js.map +1 -1
- package/lib/esm/namespaces/models/protected-resource.model.js +2 -0
- package/lib/esm/namespaces/models/protected-resource.model.js.map +1 -1
- package/lib/esm/namespaces/models/resource-grant.model.js +2 -0
- package/lib/esm/namespaces/models/resource-grant.model.js.map +1 -1
- package/lib/esm/namespaces/models/role-assignment.model.js +2 -0
- package/lib/esm/namespaces/models/role-assignment.model.js.map +1 -1
- package/lib/esm/namespaces/models/role-permission.model.js +2 -0
- package/lib/esm/namespaces/models/role-permission.model.js.map +1 -1
- package/lib/esm/namespaces/models/role.model.js +2 -0
- package/lib/esm/namespaces/models/role.model.js.map +1 -1
- package/lib/esm/namespaces/models/storage-binding.model.js +2 -0
- package/lib/esm/namespaces/models/storage-binding.model.js.map +1 -1
- package/lib/esm/namespaces/models/tenant-membership.model.js +2 -0
- package/lib/esm/namespaces/models/tenant-membership.model.js.map +1 -1
- package/lib/esm/namespaces/models/tenant-profile.model.js +2 -0
- package/lib/esm/namespaces/models/tenant-profile.model.js.map +1 -1
- package/lib/esm/namespaces/models/tenant.model.js +2 -0
- package/lib/esm/namespaces/models/tenant.model.js.map +1 -1
- package/lib/esm/namespaces/models/user.model.js +2 -0
- package/lib/esm/namespaces/models/user.model.js.map +1 -1
- package/lib/esm/namespaces/rls/index.js +11 -0
- package/lib/esm/namespaces/rls/index.js.map +1 -0
- package/lib/esm/namespaces/rls/principal-resolver.js +61 -0
- package/lib/esm/namespaces/rls/principal-resolver.js.map +1 -0
- package/lib/esm/namespaces/rls/rls-bootstrap.service.js +261 -0
- package/lib/esm/namespaces/rls/rls-bootstrap.service.js.map +1 -0
- package/lib/esm/namespaces/rls/rls.constants.js +75 -0
- package/lib/esm/namespaces/rls/rls.constants.js.map +1 -0
- package/lib/esm/namespaces/rls/rls.template.js +711 -0
- package/lib/esm/namespaces/rls/rls.template.js.map +1 -0
- package/lib/esm/namespaces/rls/rls.types.js +9 -0
- package/lib/esm/namespaces/rls/rls.types.js.map +1 -0
- package/lib/esm/namespaces/rls/session-binding.js +65 -0
- package/lib/esm/namespaces/rls/session-binding.js.map +1 -0
- package/lib/esm/namespaces/services/credential.service.js +322 -0
- package/lib/esm/namespaces/services/credential.service.js.map +1 -0
- package/lib/esm/namespaces/services/index.js +1 -0
- package/lib/esm/namespaces/services/index.js.map +1 -1
- package/lib/esm/namespaces/types.js +6 -0
- package/lib/esm/namespaces/types.js.map +1 -1
- package/lib/esm/redis/adapter.js +7 -1
- package/lib/esm/redis/adapter.js.map +1 -1
- package/lib/esm/secrets/InfraCredentialBootstrap.js +74 -0
- package/lib/esm/secrets/InfraCredentialBootstrap.js.map +1 -0
- package/lib/esm/secrets/aws/AwsSecretService.js +3 -13
- package/lib/esm/secrets/aws/AwsSecretService.js.map +1 -1
- package/lib/esm/secrets/azure/AzureKeyVaultSecretService.js +2 -13
- package/lib/esm/secrets/azure/AzureKeyVaultSecretService.js.map +1 -1
- package/lib/esm/secrets/core/SecretReference.js +1 -0
- package/lib/esm/secrets/core/SecretReference.js.map +1 -1
- package/lib/esm/secrets/fs/FsSecretEnvironment.js +24 -0
- package/lib/esm/secrets/fs/FsSecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/fs/FsSecretService.js +412 -0
- package/lib/esm/secrets/fs/FsSecretService.js.map +1 -0
- package/lib/esm/secrets/fs/FsSecretServiceConfig.js +21 -0
- package/lib/esm/secrets/fs/FsSecretServiceConfig.js.map +1 -0
- package/lib/esm/secrets/fs/index.js +10 -0
- package/lib/esm/secrets/fs/index.js.map +1 -0
- package/lib/esm/secrets/gcp/GcpSecretManagerService.js +2 -13
- package/lib/esm/secrets/gcp/GcpSecretManagerService.js.map +1 -1
- package/lib/esm/secrets/index.js +2 -0
- package/lib/esm/secrets/index.js.map +1 -1
- package/lib/esm/secrets/model/ModelSecretService.js +337 -42
- package/lib/esm/secrets/model/ModelSecretService.js.map +1 -1
- package/lib/esm/secrets/model/Secret.js +86 -7
- package/lib/esm/secrets/model/Secret.js.map +1 -1
- package/lib/esm/secrets/onepassword/OnePasswordSecretService.js +2 -13
- package/lib/esm/secrets/onepassword/OnePasswordSecretService.js.map +1 -1
- package/lib/esm/secrets/vault/VaultSecretService.js +2 -13
- package/lib/esm/secrets/vault/VaultSecretService.js.map +1 -1
- package/lib/esm/shared/environmentValue.js +24 -0
- package/lib/esm/shared/environmentValue.js.map +1 -1
- package/lib/esm/shared/http/HttpApiService.js +181 -0
- package/lib/esm/shared/http/HttpApiService.js.map +1 -0
- package/lib/esm/shared/http/hermeticBoot.js +146 -0
- package/lib/esm/shared/http/hermeticBoot.js.map +1 -0
- package/lib/esm/shared/http/index.js +11 -0
- package/lib/esm/shared/http/index.js.map +1 -0
- package/lib/types/blob/azure/AzureBlobStoreService.d.cts +7 -7
- package/lib/types/blob/azure/AzureBlobStoreService.d.mts +7 -7
- package/lib/types/blob/core/BlobStoreService.d.cts +28 -27
- package/lib/types/blob/core/BlobStoreService.d.mts +28 -27
- package/lib/types/blob/gcp/GcsBlobStoreService.d.cts +7 -7
- package/lib/types/blob/gcp/GcsBlobStoreService.d.mts +7 -7
- package/lib/types/blob/s3/S3BlobStoreService.d.cts +9 -1
- package/lib/types/blob/s3/S3BlobStoreService.d.mts +9 -1
- package/lib/types/blob/s3/S3CompatibleBlobStoreService.d.cts +11 -15
- package/lib/types/blob/s3/S3CompatibleBlobStoreService.d.mts +11 -15
- package/lib/types/comms/email/EmailService.d.cts +184 -0
- package/lib/types/comms/email/EmailService.d.mts +184 -0
- package/lib/types/comms/email/index.d.cts +11 -0
- package/lib/types/comms/email/index.d.mts +11 -0
- package/lib/types/comms/email/mime.d.cts +84 -0
- package/lib/types/comms/email/mime.d.mts +84 -0
- package/lib/types/comms/email/smtp.d.cts +107 -0
- package/lib/types/comms/email/smtp.d.mts +107 -0
- package/lib/types/comms/environment.d.cts +84 -0
- package/lib/types/comms/environment.d.mts +84 -0
- package/lib/types/comms/gmail/GmailService.d.cts +190 -0
- package/lib/types/comms/gmail/GmailService.d.mts +190 -0
- package/lib/types/comms/gmail/index.d.cts +6 -0
- package/lib/types/comms/gmail/index.d.mts +6 -0
- package/lib/types/comms/index.d.cts +13 -0
- package/lib/types/comms/index.d.mts +13 -0
- package/lib/types/comms/slack/SlackService.d.cts +259 -0
- package/lib/types/comms/slack/SlackService.d.mts +259 -0
- package/lib/types/comms/slack/index.d.cts +6 -0
- package/lib/types/comms/slack/index.d.mts +6 -0
- package/lib/types/comms/teams/TeamsService.d.cts +172 -0
- package/lib/types/comms/teams/TeamsService.d.mts +172 -0
- package/lib/types/comms/teams/index.d.cts +6 -0
- package/lib/types/comms/teams/index.d.mts +6 -0
- package/lib/types/comms/telegram/TelegramService.d.cts +202 -0
- package/lib/types/comms/telegram/TelegramService.d.mts +202 -0
- package/lib/types/comms/telegram/index.d.cts +6 -0
- package/lib/types/comms/telegram/index.d.mts +6 -0
- package/lib/types/devops/environment.d.cts +62 -0
- package/lib/types/devops/environment.d.mts +62 -0
- package/lib/types/devops/github/GithubService.d.cts +287 -0
- package/lib/types/devops/github/GithubService.d.mts +287 -0
- package/lib/types/devops/github/index.d.cts +6 -0
- package/lib/types/devops/github/index.d.mts +6 -0
- package/lib/types/devops/gitlab/GitlabService.d.cts +277 -0
- package/lib/types/devops/gitlab/GitlabService.d.mts +277 -0
- package/lib/types/devops/gitlab/index.d.cts +6 -0
- package/lib/types/devops/gitlab/index.d.mts +6 -0
- package/lib/types/devops/index.d.cts +10 -0
- package/lib/types/devops/index.d.mts +10 -0
- package/lib/types/index.d.cts +2 -2
- package/lib/types/index.d.mts +2 -2
- package/lib/types/io/airtable/AirtableService.d.cts +268 -0
- package/lib/types/io/airtable/AirtableService.d.mts +268 -0
- package/lib/types/io/airtable/index.d.cts +6 -0
- package/lib/types/io/airtable/index.d.mts +6 -0
- package/lib/types/io/environment.d.cts +67 -0
- package/lib/types/io/environment.d.mts +67 -0
- package/lib/types/io/google-sheets/GoogleSheetsService.d.cts +204 -0
- package/lib/types/io/google-sheets/GoogleSheetsService.d.mts +204 -0
- package/lib/types/io/google-sheets/index.d.cts +6 -0
- package/lib/types/io/google-sheets/index.d.mts +6 -0
- package/lib/types/io/graphql/GraphqlService.d.cts +173 -0
- package/lib/types/io/graphql/GraphqlService.d.mts +173 -0
- package/lib/types/io/graphql/index.d.cts +6 -0
- package/lib/types/io/graphql/index.d.mts +6 -0
- package/lib/types/io/index.d.cts +12 -0
- package/lib/types/io/index.d.mts +12 -0
- package/lib/types/io/spreadsheet/SpreadsheetService.d.cts +144 -0
- package/lib/types/io/spreadsheet/SpreadsheetService.d.mts +144 -0
- package/lib/types/io/spreadsheet/index.d.cts +7 -0
- package/lib/types/io/spreadsheet/index.d.mts +7 -0
- package/lib/types/namespaces/index.d.cts +1 -0
- package/lib/types/namespaces/index.d.mts +1 -0
- package/lib/types/namespaces/models/credential.model.d.cts +23 -0
- package/lib/types/namespaces/models/credential.model.d.mts +23 -0
- package/lib/types/namespaces/models/index.d.cts +1 -0
- package/lib/types/namespaces/models/index.d.mts +1 -0
- package/lib/types/namespaces/rls/index.d.cts +10 -0
- package/lib/types/namespaces/rls/index.d.mts +10 -0
- package/lib/types/namespaces/rls/principal-resolver.d.cts +47 -0
- package/lib/types/namespaces/rls/principal-resolver.d.mts +47 -0
- package/lib/types/namespaces/rls/rls-bootstrap.service.d.cts +157 -0
- package/lib/types/namespaces/rls/rls-bootstrap.service.d.mts +157 -0
- package/lib/types/namespaces/rls/rls.constants.d.cts +52 -0
- package/lib/types/namespaces/rls/rls.constants.d.mts +52 -0
- package/lib/types/namespaces/rls/rls.template.d.cts +42 -0
- package/lib/types/namespaces/rls/rls.template.d.mts +42 -0
- package/lib/types/namespaces/rls/rls.types.d.cts +77 -0
- package/lib/types/namespaces/rls/rls.types.d.mts +77 -0
- package/lib/types/namespaces/rls/session-binding.d.cts +87 -0
- package/lib/types/namespaces/rls/session-binding.d.mts +87 -0
- package/lib/types/namespaces/services/credential.service.d.cts +175 -0
- package/lib/types/namespaces/services/credential.service.d.mts +175 -0
- package/lib/types/namespaces/services/index.d.cts +1 -0
- package/lib/types/namespaces/services/index.d.mts +1 -0
- package/lib/types/namespaces/types.d.cts +37 -0
- package/lib/types/namespaces/types.d.mts +37 -0
- package/lib/types/redis/adapter.d.cts +2 -0
- package/lib/types/redis/adapter.d.mts +2 -0
- package/lib/types/redis/types.d.cts +27 -2
- package/lib/types/redis/types.d.mts +27 -2
- package/lib/types/secrets/InfraCredentialBootstrap.d.cts +100 -0
- package/lib/types/secrets/InfraCredentialBootstrap.d.mts +100 -0
- package/lib/types/secrets/core/SecretTypes.d.cts +15 -1
- package/lib/types/secrets/core/SecretTypes.d.mts +15 -1
- package/lib/types/secrets/fs/FsSecretEnvironment.d.cts +42 -0
- package/lib/types/secrets/fs/FsSecretEnvironment.d.mts +42 -0
- package/lib/types/secrets/fs/FsSecretService.d.cts +207 -0
- package/lib/types/secrets/fs/FsSecretService.d.mts +207 -0
- package/lib/types/secrets/fs/FsSecretServiceConfig.d.cts +37 -0
- package/lib/types/secrets/fs/FsSecretServiceConfig.d.mts +37 -0
- package/lib/types/secrets/fs/index.d.cts +9 -0
- package/lib/types/secrets/fs/index.d.mts +9 -0
- package/lib/types/secrets/index.d.cts +2 -0
- package/lib/types/secrets/index.d.mts +2 -0
- package/lib/types/secrets/model/ModelSecretService.d.cts +190 -1
- package/lib/types/secrets/model/ModelSecretService.d.mts +190 -1
- package/lib/types/secrets/model/Secret.d.cts +44 -3
- package/lib/types/secrets/model/Secret.d.mts +44 -3
- package/lib/types/shared/environmentValue.d.cts +24 -0
- package/lib/types/shared/environmentValue.d.mts +24 -0
- package/lib/types/shared/http/HttpApiService.d.cts +193 -0
- package/lib/types/shared/http/HttpApiService.d.mts +193 -0
- package/lib/types/shared/http/hermeticBoot.d.cts +84 -0
- package/lib/types/shared/http/hermeticBoot.d.mts +84 -0
- package/lib/types/shared/http/index.d.cts +10 -0
- package/lib/types/shared/http/index.d.mts +10 -0
- package/package.json +180 -3
- package/sql/002_rls.sql +660 -15
- package/sql/004_credentials.sql +46 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* @module integrations/io/google-sheets
|
|
19
|
+
* @summary Google Sheets REST v4 service (values read/write/append/clear, spreadsheet creation).
|
|
20
|
+
* @description Re-exports the Google Sheets client-based service and its types.
|
|
21
|
+
*/
|
|
22
|
+
__exportStar(require("./GoogleSheetsService.cjs"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
24
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io/google-sheets/index.cjs","sourceRoot":"","sources":["io/google-sheets/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,2DAAyC;AACzC,iCAAiC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphqlService = void 0;
|
|
4
|
+
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
5
|
+
const environment_js_1 = require("./../environment.cjs");
|
|
6
|
+
const environmentValue_js_1 = require("./../../shared/environmentValue.cjs");
|
|
7
|
+
const index_js_1 = require("./../../shared/http/index.cjs");
|
|
8
|
+
/**
|
|
9
|
+
* @description Generic GraphQL endpoint integration service
|
|
10
|
+
* @summary An undecorated HTTP service that `POST`s GraphQL
|
|
11
|
+
* documents to any endpoint. Unlike the other integration services there is
|
|
12
|
+
* no default base URL — the endpoint must come from the config (`endpoint` or
|
|
13
|
+
* `baseUrl`) or the `io.graphql` environment slice. Initialization normalizes
|
|
14
|
+
* the `endpoint` alias to `baseUrl` before delegating to the shared
|
|
15
|
+
* {@link HttpApiService.initialize}; the optional token is sent as a bearer
|
|
16
|
+
* header and per-request headers extend it. Transport failures are mapped to
|
|
17
|
+
* decaf errors via {@link httpError}, while GraphQL field-level `errors` are
|
|
18
|
+
* returned in the response for the caller to interpret.
|
|
19
|
+
* @class GraphqlService
|
|
20
|
+
* @category IO
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* import { GraphqlService } from "@decaf-ts/integrations/io/graphql";
|
|
24
|
+
*
|
|
25
|
+
* const graphql = new GraphqlService();
|
|
26
|
+
* await graphql.initialize({
|
|
27
|
+
* endpoint: "https://api.example.com/graphql",
|
|
28
|
+
* token: process.env.GRAPH_CREDENTIAL_GRAPHQL_TOKEN,
|
|
29
|
+
* });
|
|
30
|
+
* const response = await graphql.request<{ user: { name: string } }>({
|
|
31
|
+
* query: `query GetUser($id: ID!) {
|
|
32
|
+
* user(id: $id) { name }
|
|
33
|
+
* }`,
|
|
34
|
+
* variables: { id: "123" },
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
* @memberOf module:integrations/io/graphql/service
|
|
38
|
+
*/
|
|
39
|
+
class GraphqlService extends index_js_1.HttpApiService {
|
|
40
|
+
constructor() {
|
|
41
|
+
super(...arguments);
|
|
42
|
+
/**
|
|
43
|
+
* @description The provider name used in error messages
|
|
44
|
+
*/
|
|
45
|
+
this.serviceName = "GraphQL";
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @description The absence of a default GraphQL endpoint
|
|
49
|
+
* @summary Returns an empty string because GraphQL endpoints are
|
|
50
|
+
* provider-specific; {@link GraphqlService.request} rejects execution when
|
|
51
|
+
* no endpoint was configured.
|
|
52
|
+
* @returns {string} An empty string.
|
|
53
|
+
*/
|
|
54
|
+
defaultBaseUrl() {
|
|
55
|
+
return "";
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @description Normalizes the `endpoint` alias before shared initialization
|
|
59
|
+
* @summary When the provided config carries no `baseUrl` but an `endpoint`,
|
|
60
|
+
* copies `endpoint` into `baseUrl` and delegates to
|
|
61
|
+
* {@link HttpApiService.initialize}, which merges the environment slice and
|
|
62
|
+
* builds the Axios client.
|
|
63
|
+
* @param {...MaybeContextualArg<any>} args - An optional `Partial<GraphqlServiceConfig>`, optionally followed by a decaf `Context`.
|
|
64
|
+
* @returns {Promise<{config: GraphqlServiceConfig, client: AxiosInstance}>} The merged configuration and the configured Axios instance.
|
|
65
|
+
* @throws {InternalError} When no base URL can be resolved from the config or environment.
|
|
66
|
+
*/
|
|
67
|
+
async initialize(...args) {
|
|
68
|
+
const provided = (args[0] ?? {});
|
|
69
|
+
if (!provided.baseUrl && provided.endpoint) {
|
|
70
|
+
args[0] = { ...provided, baseUrl: provided.endpoint };
|
|
71
|
+
}
|
|
72
|
+
return super.initialize(...args);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @description Builds the GraphQL bearer authorization headers
|
|
76
|
+
* @summary Returns the `Authorization: Bearer <token>` header when the
|
|
77
|
+
* config carries a token, and no headers otherwise.
|
|
78
|
+
* @param {GraphqlServiceConfig} config - The resolved service configuration.
|
|
79
|
+
* @returns {Record<string, string>} The authorization headers (empty without a token).
|
|
80
|
+
*/
|
|
81
|
+
authHeaders(config) {
|
|
82
|
+
return config.token ? { Authorization: `Bearer ${config.token}` } : {};
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* @description Reads the GraphQL endpoint and token from the environment
|
|
86
|
+
* @summary Reads the `io.graphql` environment slice and returns a partial
|
|
87
|
+
* config (with `endpoint` also mirrored to `baseUrl`) when an endpoint is
|
|
88
|
+
* configured, `undefined` otherwise. Values pass through
|
|
89
|
+
* `envString`/`envNumber` to reject unset-leaf proxies.
|
|
90
|
+
* @returns {Partial<GraphqlServiceConfig> | undefined} A partial config, or `undefined` when no GraphQL endpoint is configured.
|
|
91
|
+
*/
|
|
92
|
+
configFromEnvironment() {
|
|
93
|
+
const env = environment_js_1.IoEnvironment.io.graphql;
|
|
94
|
+
const endpoint = (0, environmentValue_js_1.envString)(env?.endpoint);
|
|
95
|
+
if (!endpoint)
|
|
96
|
+
return undefined;
|
|
97
|
+
return {
|
|
98
|
+
endpoint,
|
|
99
|
+
baseUrl: endpoint,
|
|
100
|
+
token: (0, environmentValue_js_1.envString)(env.token),
|
|
101
|
+
timeout: (0, environmentValue_js_1.envNumber)(env.timeout),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @description Executes a GraphQL query or mutation against the configured endpoint
|
|
106
|
+
* @summary `POST`s the standard GraphQL request body (`query`,
|
|
107
|
+
* `variables`, `operationName`) to the resolved endpoint with the optional
|
|
108
|
+
* per-request headers merged over the client defaults. Requires a
|
|
109
|
+
* non-empty query and a configured endpoint. Returns the raw execution
|
|
110
|
+
* envelope: field-level `errors` are reported in `GraphqlResponse.errors`
|
|
111
|
+
* rather than thrown, so callers must inspect them for partial failures.
|
|
112
|
+
* @template T - The expected type of the `data` payload.
|
|
113
|
+
* @param {GraphqlRequest} input - The query document, variables, operation name, and per-request headers.
|
|
114
|
+
* @returns {Promise<GraphqlResponse<T>>} The execution envelope with `data`, `errors`, and `extensions`.
|
|
115
|
+
* @throws {InternalError} When the query is empty or no endpoint is configured.
|
|
116
|
+
* @throws {NotFoundError} When the endpoint answers with HTTP 404.
|
|
117
|
+
* @throws {ConflictError} When the endpoint answers with HTTP 409.
|
|
118
|
+
* @throws {BadRequestError} When the endpoint answers with any other HTTP error status.
|
|
119
|
+
*/
|
|
120
|
+
async request(input) {
|
|
121
|
+
if (!input.query || input.query.trim().length === 0) {
|
|
122
|
+
throw new db_decorators_1.InternalError("GraphQL request requires a query");
|
|
123
|
+
}
|
|
124
|
+
const endpoint = this.config.endpoint ?? this.config.baseUrl;
|
|
125
|
+
if (!endpoint) {
|
|
126
|
+
throw new db_decorators_1.InternalError("GraphQL requires an endpoint");
|
|
127
|
+
}
|
|
128
|
+
try {
|
|
129
|
+
const response = await this.client.post(endpoint, {
|
|
130
|
+
query: input.query,
|
|
131
|
+
variables: input.variables,
|
|
132
|
+
operationName: input.operationName,
|
|
133
|
+
}, { headers: input.headers });
|
|
134
|
+
return response.data;
|
|
135
|
+
}
|
|
136
|
+
catch (error) {
|
|
137
|
+
throw (0, index_js_1.httpError)("GraphQL", "request", error);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
exports.GraphqlService = GraphqlService;
|
|
142
|
+
//# sourceMappingURL=GraphqlService.js.map
|
|
143
|
+
//# sourceMappingURL=GraphqlService.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io/graphql/GraphqlService.cjs","sourceRoot":"","sources":["io/graphql/GraphqlService.js"],"names":[],"mappings":";;;AAAA,2DAAwD;AACxD,wDAAoD;AACpD,4EAA0E;AAC1E,2DAA0E;AAC1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,cAAe,SAAQ,yBAAc;IAC9C;QACI,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;QACpB;;WAEG;QACH,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;IACjC,CAAC;IACD;;;;;;OAMG;IACH,cAAc;QACV,OAAO,EAAE,CAAC;IACd,CAAC;IACD;;;;;;;;;OASG;IACH,KAAK,CAAC,UAAU,CAAC,GAAG,IAAI;QACpB,MAAM,QAAQ,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QACjC,IAAI,CAAC,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC;YACzC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC;QAC1D,CAAC;QACD,OAAO,KAAK,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC;IACrC,CAAC;IACD;;;;;;OAMG;IACH,WAAW,CAAC,MAAM;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EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;YAC/B,OAAO,QAAQ,CAAC,IAAI,CAAC;QACzB,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACX,MAAM,IAAA,oBAAS,EAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QACjD,CAAC;IACL,CAAC;CACJ;AArGD,wCAqGC;AACD,0CAA0C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* @module integrations/io/graphql
|
|
19
|
+
* @summary Generic GraphQL endpoint client (queries and mutations).
|
|
20
|
+
* @description Re-exports the GraphQL client-based service and its types.
|
|
21
|
+
*/
|
|
22
|
+
__exportStar(require("./GraphqlService.cjs"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
24
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io/graphql/index.cjs","sourceRoot":"","sources":["io/graphql/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,sDAAoC;AACpC,iCAAiC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* @module integrations/io
|
|
19
|
+
* @summary IO integration services (Google Sheets, Airtable, GraphQL, Spreadsheet).
|
|
20
|
+
* @description Re-exports the data-source services, their per-service modules,
|
|
21
|
+
* and the shared `io` environment slice. Each sub-module is also available
|
|
22
|
+
* through its own package subpath export.
|
|
23
|
+
*/
|
|
24
|
+
__exportStar(require("./airtable/index.cjs"), exports);
|
|
25
|
+
__exportStar(require("./google-sheets/index.cjs"), exports);
|
|
26
|
+
__exportStar(require("./graphql/index.cjs"), exports);
|
|
27
|
+
__exportStar(require("./spreadsheet/index.cjs"), exports);
|
|
28
|
+
__exportStar(require("./environment.cjs"), exports);
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
30
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io/index.cjs","sourceRoot":"","sources":["io/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;GAMG;AACH,sDAAoC;AACpC,2DAAyC;AACzC,qDAAmC;AACnC,yDAAuC;AACvC,mDAAiC;AACjC,iCAAiC"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpreadsheetService = void 0;
|
|
4
|
+
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
5
|
+
const DELIMITERS = {
|
|
6
|
+
csv: ",",
|
|
7
|
+
tsv: "\t",
|
|
8
|
+
json: "",
|
|
9
|
+
};
|
|
10
|
+
function resolveFormat(format, delimiter) {
|
|
11
|
+
if (format)
|
|
12
|
+
return format;
|
|
13
|
+
if (delimiter === "\t")
|
|
14
|
+
return "tsv";
|
|
15
|
+
return "csv";
|
|
16
|
+
}
|
|
17
|
+
function parseDelimited(content, delimiter) {
|
|
18
|
+
const rows = [];
|
|
19
|
+
let row = [];
|
|
20
|
+
let field = "";
|
|
21
|
+
let quoted = false;
|
|
22
|
+
for (let index = 0; index < content.length; index += 1) {
|
|
23
|
+
const character = content[index];
|
|
24
|
+
if (quoted) {
|
|
25
|
+
if (character === '"') {
|
|
26
|
+
if (content[index + 1] === '"') {
|
|
27
|
+
field += '"';
|
|
28
|
+
index += 1;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
quoted = false;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
field += character;
|
|
36
|
+
}
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if (character === '"' && field.length === 0) {
|
|
40
|
+
quoted = true;
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
if (character === delimiter) {
|
|
44
|
+
row.push(field);
|
|
45
|
+
field = "";
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if (character === "\n") {
|
|
49
|
+
row.push(field.replace(/\r$/, ""));
|
|
50
|
+
rows.push(row);
|
|
51
|
+
row = [];
|
|
52
|
+
field = "";
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
field += character;
|
|
56
|
+
}
|
|
57
|
+
if (field.length > 0 || row.length > 0) {
|
|
58
|
+
row.push(field.replace(/\r$/, ""));
|
|
59
|
+
rows.push(row);
|
|
60
|
+
}
|
|
61
|
+
return rows.filter((entry) => entry.length > 1 || (entry[0] ?? "").trim().length > 0);
|
|
62
|
+
}
|
|
63
|
+
function quoteField(value, delimiter) {
|
|
64
|
+
if (value.includes(delimiter) ||
|
|
65
|
+
value.includes('"') ||
|
|
66
|
+
value.includes("\n") ||
|
|
67
|
+
value.includes("\r")) {
|
|
68
|
+
return `"${value.replace(/"/g, '""')}"`;
|
|
69
|
+
}
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
function cell(value) {
|
|
73
|
+
if (value === undefined || value === null)
|
|
74
|
+
return "";
|
|
75
|
+
if (typeof value === "object") {
|
|
76
|
+
try {
|
|
77
|
+
return JSON.stringify(value);
|
|
78
|
+
}
|
|
79
|
+
catch {
|
|
80
|
+
return String(value);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return String(value);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @description Dependency-free spreadsheet parsing and serialization service
|
|
87
|
+
* @summary A stateless (no configuration, no HTTP client) service that
|
|
88
|
+
* converts between tabular strings and row arrays. `parse` handles CSV and
|
|
89
|
+
* TSV with a quoted-field parser (double-quote escaping, CRLF stripping,
|
|
90
|
+
* blank-row filtering) and JSON arrays of rows or records; `serialize`
|
|
91
|
+
* writes CSV/TSV with RFC 4180-style quoting of fields containing the
|
|
92
|
+
* delimiter, quotes, or line breaks, or pretty-printed JSON records. Values
|
|
93
|
+
* are stringified with `null`/`undefined` as empty cells and objects as JSON.
|
|
94
|
+
* @class SpreadsheetService
|
|
95
|
+
* @category IO
|
|
96
|
+
* @example
|
|
97
|
+
* ```ts
|
|
98
|
+
* import { SpreadsheetService } from "@decaf-ts/integrations/io/spreadsheet";
|
|
99
|
+
*
|
|
100
|
+
* const spreadsheets = new SpreadsheetService();
|
|
101
|
+
* const parsed = spreadsheets.parse("name,count\nalpha,1\nbeta,2", {
|
|
102
|
+
* format: "csv",
|
|
103
|
+
* });
|
|
104
|
+
* // parsed.header === ["name", "count"], parsed.rows === [["alpha", "1"], ["beta", "2"]]
|
|
105
|
+
* ```
|
|
106
|
+
* @memberOf module:integrations/io/spreadsheet/service
|
|
107
|
+
*/
|
|
108
|
+
class SpreadsheetService {
|
|
109
|
+
/**
|
|
110
|
+
* @description Parses spreadsheet text into a header and data rows
|
|
111
|
+
* @summary Dispatches on the resolved format. `"json"` content must be an
|
|
112
|
+
* array: either an array of arrays (the first row becomes the header unless
|
|
113
|
+
* `header: false`) or an array of records (the union of the first record's
|
|
114
|
+
* keys becomes the header). CSV/TSV content is parsed with a quoted-field
|
|
115
|
+
* parser honoring `""` escapes and CR/LF line endings, dropping blank rows;
|
|
116
|
+
* the first row becomes the header unless `header: false`.
|
|
117
|
+
* @param {string} content - The spreadsheet text content to parse.
|
|
118
|
+
* @param {SpreadsheetParseOptions} [options] - Format, delimiter, and header options.
|
|
119
|
+
* @returns {SpreadsheetParseResult} The resolved format, header row, and data rows.
|
|
120
|
+
* @throws {InternalError} When the content is not a string, the JSON payload is invalid, or the JSON payload is not an array.
|
|
121
|
+
* @example
|
|
122
|
+
* ```ts
|
|
123
|
+
* // TSV with an explicit delimiter and no header row
|
|
124
|
+
* const tsv = spreadsheets.parse("alpha\t1\nbeta\t2", { delimiter: "\t", header: false });
|
|
125
|
+
* // JSON records infer the header from the first record's keys
|
|
126
|
+
* const json = spreadsheets.parse('[{"name":"alpha","count":1}]', { format: "json" });
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
parse(content, options = {}) {
|
|
130
|
+
if (typeof content !== "string") {
|
|
131
|
+
throw new db_decorators_1.InternalError("Spreadsheet parse requires text content");
|
|
132
|
+
}
|
|
133
|
+
const format = resolveFormat(options.format, options.delimiter);
|
|
134
|
+
if (format === "json") {
|
|
135
|
+
let parsed;
|
|
136
|
+
try {
|
|
137
|
+
parsed = JSON.parse(content);
|
|
138
|
+
}
|
|
139
|
+
catch (error) {
|
|
140
|
+
throw new db_decorators_1.InternalError(`Spreadsheet JSON parse failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
141
|
+
}
|
|
142
|
+
if (!Array.isArray(parsed)) {
|
|
143
|
+
throw new db_decorators_1.InternalError("Spreadsheet JSON content must be an array of rows or records");
|
|
144
|
+
}
|
|
145
|
+
if (parsed.length === 0)
|
|
146
|
+
return { format, header: [], rows: [] };
|
|
147
|
+
if (Array.isArray(parsed[0])) {
|
|
148
|
+
const rows = parsed.map((row) => row.map(cell));
|
|
149
|
+
const header = options.header === false ? [] : (rows.shift() ?? []);
|
|
150
|
+
return { format, header: header.map(cell), rows };
|
|
151
|
+
}
|
|
152
|
+
const records = parsed;
|
|
153
|
+
const header = Object.keys(records[0] ?? {});
|
|
154
|
+
const rows = records.map((record) => header.map((field) => cell(record[field])));
|
|
155
|
+
return { format, header, rows };
|
|
156
|
+
}
|
|
157
|
+
const delimiter = options.delimiter ?? DELIMITERS[format];
|
|
158
|
+
const rows = parseDelimited(content, delimiter);
|
|
159
|
+
const header = options.header === false ? [] : (rows.shift() ?? []);
|
|
160
|
+
return { format, header: header.map(cell), rows };
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* @description Serializes rows into spreadsheet text
|
|
164
|
+
* @summary Stringifies each cell (objects become JSON, `null`/`undefined`
|
|
165
|
+
* become empty cells) and dispatches on the resolved format. For `"json"`,
|
|
166
|
+
* the optional `header` values (or the first data row) become the record
|
|
167
|
+
* keys and the output is pretty-printed JSON records. For `"csv"`/`"tsv"`,
|
|
168
|
+
* fields containing the delimiter, quotes, or line breaks are wrapped in
|
|
169
|
+
* double quotes with inner quotes escaped, and the optional `header` row is
|
|
170
|
+
* written first. Non-array rows are treated as single-cell rows.
|
|
171
|
+
* @param {unknown[][]} rows - The data rows to serialize.
|
|
172
|
+
* @param {SpreadsheetWriteOptions} [options] - Format, delimiter, and header options.
|
|
173
|
+
* @returns {string} The serialized spreadsheet content.
|
|
174
|
+
* @throws {InternalError} When `rows` is not an array.
|
|
175
|
+
* @example
|
|
176
|
+
* ```ts
|
|
177
|
+
* const csv = spreadsheets.serialize(
|
|
178
|
+
* [["alpha", 1], ["beta, gamma", 2]],
|
|
179
|
+
* { format: "csv", header: ["name", "count"] }
|
|
180
|
+
* );
|
|
181
|
+
* // "name,count\nalpha,1\n\"beta, gamma\",2"
|
|
182
|
+
* ```
|
|
183
|
+
*/
|
|
184
|
+
serialize(rows, options = {}) {
|
|
185
|
+
if (!Array.isArray(rows)) {
|
|
186
|
+
throw new db_decorators_1.InternalError("Spreadsheet write requires rows as an array of arrays");
|
|
187
|
+
}
|
|
188
|
+
const format = resolveFormat(options.format, options.delimiter);
|
|
189
|
+
const header = options.header;
|
|
190
|
+
const materialized = rows.map((row) => Array.isArray(row) ? row.map(cell) : [cell(row)]);
|
|
191
|
+
if (format === "json") {
|
|
192
|
+
const fields = header ?? materialized.shift() ?? [];
|
|
193
|
+
return JSON.stringify(materialized.map((row) => Object.fromEntries(fields.map((field, index) => [field, row[index] ?? ""]))), null, 2);
|
|
194
|
+
}
|
|
195
|
+
const delimiter = options.delimiter ?? DELIMITERS[format];
|
|
196
|
+
const lines = [
|
|
197
|
+
...(header ? [header] : []),
|
|
198
|
+
...materialized,
|
|
199
|
+
].map((row) => row.map((value) => quoteField(cell(value), delimiter)).join(delimiter));
|
|
200
|
+
return lines.join("\n");
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
exports.SpreadsheetService = SpreadsheetService;
|
|
204
|
+
//# sourceMappingURL=SpreadsheetService.js.map
|
|
205
|
+
//# sourceMappingURL=SpreadsheetService.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io/spreadsheet/SpreadsheetService.cjs","sourceRoot":"","sources":["io/spreadsheet/SpreadsheetService.js"],"names":[],"mappings":";;;AAAA,2DAAwD;AACxD,MAAM,UAAU,GAAG;IACf,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,IAAI,EAAE,EAAE;CACX,CAAC;AACF,SAAS,aAAa,CAAC,MAAM,EAAE,SAAS;IACpC,IAAI,MAAM;QACN,OAAO,MAAM,CAAC;IAClB,IAAI,SAAS,KAAK,IAAI;QAClB,OAAO,KAAK,CAAC;IACjB,OAAO,KAAK,CAAC;AACjB,CAAC;AACD,SAAS,cAAc,CAAC,OAAO,EAAE,SAAS;IACtC,MAAM,IAAI,GAAG,EAAE,CAAC;IAChB,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QACrD,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;QACjC,IAAI,MAAM,EAAE,CAAC;YACT,IAAI,SAAS,KAAK,GAAG,EAAE,CAAC;gBACpB,IAAI,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;oBAC7B,KAAK,IAAI,GAAG,CAAC;oBACb,KAAK,IAAI,CAAC,CAAC;gBACf,CAAC;qBACI,CAAC;oBACF,MAAM,GAAG,KAAK,CAAC;gBACnB,CAAC;YACL,CAAC;iBACI,CAAC;gBACF,KAAK,IAAI,SAAS,CAAC;YACvB,CAAC;YACD,SAAS;QACb,CAAC;QACD,IAAI,SAAS,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC1C,MAAM,GAAG,IAAI,CAAC;YACd,SAAS;QACb,CAAC;QACD,IAAI,SAAS,K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AAC;QAC1D,MAAM,KAAK,GAAG;YACV,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC3B,GAAG,YAAY;SAClB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;QACvF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;CACJ;AA9FD,gDA8FC;AACD,8CAA8C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* @module integrations/io/spreadsheet
|
|
19
|
+
* @summary Tabular text parse/serialize service (CSV, TSV, JSON lines).
|
|
20
|
+
* @description Re-exports the offline spreadsheet service and its types; no
|
|
21
|
+
* network or credentials are involved.
|
|
22
|
+
*/
|
|
23
|
+
__exportStar(require("./SpreadsheetService.cjs"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
25
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io/spreadsheet/index.cjs","sourceRoot":"","sources":["io/spreadsheet/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;GAKG;AACH,0DAAwC;AACxC,iCAAiC"}
|
|
@@ -22,5 +22,6 @@ __exportStar(require("./types.cjs"), exports);
|
|
|
22
22
|
__exportStar(require("./utils.cjs"), exports);
|
|
23
23
|
__exportStar(require("./models/index.cjs"), exports);
|
|
24
24
|
__exportStar(require("./services/index.cjs"), exports);
|
|
25
|
+
__exportStar(require("./rls/index.cjs"), exports);
|
|
25
26
|
//# sourceMappingURL=index.js.map
|
|
26
27
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces/index.cjs","sourceRoot":"","sources":["namespaces/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,6CAA2B;AAC3B,6CAA2B;AAC3B,oDAAkC;AAClC,sDAAoC;AACpC,iCAAiC"}
|
|
1
|
+
{"version":3,"file":"namespaces/index.cjs","sourceRoot":"","sources":["namespaces/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,6CAA2B;AAC3B,6CAA2B;AAC3B,oDAAkC;AAClC,sDAAoC;AACpC,iDAA+B;AAC/B,iCAAiC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Credential = void 0;
|
|
4
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
+
else
|
|
9
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
+
if (d = decorators[i])
|
|
11
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
+
};
|
|
14
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
+
return Reflect.metadata(k, v);
|
|
17
|
+
};
|
|
18
|
+
const core_1 = require("@decaf-ts/core");
|
|
19
|
+
const decoration_1 = require("@decaf-ts/decoration");
|
|
20
|
+
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
21
|
+
const types_js_1 = require("./../types.cjs");
|
|
22
|
+
const utils_js_1 = require("./../utils.cjs");
|
|
23
|
+
const authorization_model_js_1 = require("./authorization-model.cjs");
|
|
24
|
+
const tenant_model_js_1 = require("./tenant.model.cjs");
|
|
25
|
+
const org_unit_model_js_1 = require("./org-unit.model.cjs");
|
|
26
|
+
const principal_model_js_1 = require("./principal.model.cjs");
|
|
27
|
+
let Credential = class Credential extends authorization_model_js_1.AuthorizationModel {
|
|
28
|
+
constructor(data) {
|
|
29
|
+
super(data);
|
|
30
|
+
this.enabled = true;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.Credential = Credential;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, core_1.pk)({ type: String }),
|
|
36
|
+
(0, core_1.uuid)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Credential.prototype, "id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, core_1.manyToOne)(() => tenant_model_js_1.Tenant, utils_js_1.REL_RESTRICT, false, undefined, "fk_credentials_tenant"),
|
|
41
|
+
(0, decorator_validation_1.required)(),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], Credential.prototype, "tenant", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, core_1.manyToOne)(() => org_unit_model_js_1.OrgUnit, utils_js_1.REL_NULLIFY, false, undefined, "fk_credentials_org_unit"),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], Credential.prototype, "orgUnit", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, core_1.manyToOne)(() => principal_model_js_1.Principal, utils_js_1.REL_NULLIFY, false, undefined, "fk_credentials_owner"),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], Credential.prototype, "owner", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, decorator_validation_1.required)(),
|
|
54
|
+
(0, decorator_validation_1.type)(String),
|
|
55
|
+
(0, core_1.column)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Credential.prototype, "name", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, decorator_validation_1.required)(),
|
|
60
|
+
(0, decorator_validation_1.type)(String),
|
|
61
|
+
(0, core_1.column)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], Credential.prototype, "credentialType", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, decorator_validation_1.required)(),
|
|
66
|
+
(0, decorator_validation_1.type)(String),
|
|
67
|
+
(0, core_1.column)(),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], Credential.prototype, "secretName", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, decorator_validation_1.required)(),
|
|
72
|
+
(0, decorator_validation_1.type)(String),
|
|
73
|
+
(0, decorator_validation_1.option)(types_js_1.CredentialProviderOptions),
|
|
74
|
+
(0, core_1.column)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], Credential.prototype, "provider", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, decorator_validation_1.type)(String),
|
|
79
|
+
(0, core_1.column)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], Credential.prototype, "description", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, decorator_validation_1.type)(Boolean),
|
|
84
|
+
(0, core_1.column)(),
|
|
85
|
+
__metadata("design:type", Boolean)
|
|
86
|
+
], Credential.prototype, "enabled", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, decorator_validation_1.type)(Object),
|
|
89
|
+
(0, core_1.column)(),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], Credential.prototype, "metadata", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, core_1.column)(),
|
|
94
|
+
__metadata("design:type", Date)
|
|
95
|
+
], Credential.prototype, "expiresAt", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, core_1.column)(),
|
|
98
|
+
__metadata("design:type", Date)
|
|
99
|
+
], Credential.prototype, "lastUsedAt", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, core_1.createdAt)(),
|
|
102
|
+
__metadata("design:type", Date)
|
|
103
|
+
], Credential.prototype, "createdAt", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, core_1.updatedAt)(),
|
|
106
|
+
__metadata("design:type", Date)
|
|
107
|
+
], Credential.prototype, "updatedAt", void 0);
|
|
108
|
+
exports.Credential = Credential = __decorate([
|
|
109
|
+
(0, core_1.table)("credentials"),
|
|
110
|
+
(0, decorator_validation_1.model)(),
|
|
111
|
+
(0, decoration_1.description)("Namespaced credential metadata record referencing an encrypted secret value"),
|
|
112
|
+
__metadata("design:paramtypes", [Object])
|
|
113
|
+
], Credential);
|
|
114
|
+
//# sourceMappingURL=credential.model.js.map
|
|
115
|
+
//# sourceMappingURL=credential.model.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespaces/models/credential.model.cjs","sourceRoot":"","sources":["namespaces/models/credential.model.js"],"names":[],"mappings":";;;AAAA,IAAI,U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,EAAE,CAAC,MAAM,CAAC,CAAC;CAC5C,EAAE,UAAU,CAAC,CAAC;AAEf,4CAA4C"}
|
|
@@ -15,6 +15,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
15
15
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
16
|
return Reflect.metadata(k, v);
|
|
17
17
|
};
|
|
18
|
+
const decoration_1 = require("@decaf-ts/decoration");
|
|
18
19
|
const core_1 = require("@decaf-ts/core");
|
|
19
20
|
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
20
21
|
const types_js_1 = require("./../types.cjs");
|
|
@@ -87,6 +88,7 @@ __decorate([
|
|
|
87
88
|
__metadata("design:type", Date)
|
|
88
89
|
], EffectivePermission.prototype, "createdAt", void 0);
|
|
89
90
|
exports.EffectivePermission = EffectivePermission = __decorate([
|
|
91
|
+
(0, decoration_1.description)("Materialized effective permission granted to a principal within a scope"),
|
|
90
92
|
(0, core_1.table)("effective_permissions"),
|
|
91
93
|
(0, decorator_validation_1.model)(),
|
|
92
94
|
__metadata("design:paramtypes", [Object])
|