@appconda/sdk 1.0.194 → 1.0.409
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/.github/workflows/autoclose.yml +11 -0
- package/.github/workflows/publish.yml +42 -0
- package/.travis.yml +32 -0
- package/CHANGELOG.md +1 -0
- package/LICENSE +12 -0
- package/README.md +0 -0
- package/dist/actions/_authOptions.d.ts +5 -0
- package/dist/actions/_authOptions.js +235 -0
- package/dist/actions/actionClient.d.ts +10 -0
- package/dist/actions/actionClient.js +41 -0
- package/dist/actions/auth.d.ts +1 -0
- package/dist/actions/auth.js +7 -0
- package/dist/actions/authOptions.d.ts +5 -0
- package/dist/actions/authOptions.js +133 -0
- package/dist/actions/index.d.ts +3 -0
- package/dist/actions/index.js +4 -0
- package/dist/actions/nextAuthHandler.d.ts +1 -0
- package/dist/actions/nextAuthHandler.js +6 -0
- package/dist/client.d.ts +141 -0
- package/dist/client.js +335 -0
- package/dist/decorators/Cache.d.ts +1 -0
- package/dist/decorators/Cache.js +79 -0
- package/dist/decorators/CacheKey.d.ts +1 -0
- package/dist/decorators/CacheKey.js +9 -0
- package/dist/decorators/Invalidate.d.ts +1 -0
- package/dist/decorators/Invalidate.js +47 -0
- package/dist/enums/api-service.d.ts +13 -0
- package/dist/enums/api-service.js +15 -0
- package/dist/enums/api.d.ts +5 -0
- package/dist/enums/api.js +7 -0
- package/dist/enums/auth-method.d.ts +9 -0
- package/dist/enums/auth-method.js +11 -0
- package/dist/enums/browser.d.ts +16 -0
- package/dist/enums/browser.js +18 -0
- package/dist/enums/compression.d.ts +5 -0
- package/dist/enums/compression.js +7 -0
- package/dist/enums/credit-card.d.ts +18 -0
- package/dist/enums/credit-card.js +20 -0
- package/dist/enums/database-usage-range.d.ts +5 -0
- package/dist/enums/database-usage-range.js +7 -0
- package/dist/enums/email-template-locale.d.ts +133 -0
- package/dist/enums/email-template-locale.js +135 -0
- package/dist/enums/email-template-type.d.ts +9 -0
- package/dist/enums/email-template-type.js +11 -0
- package/dist/enums/entities/EntityLimitType.d.ts +4 -0
- package/dist/enums/entities/EntityLimitType.js +6 -0
- package/dist/enums/entities/PropertyAttributeName.d.ts +27 -0
- package/dist/enums/entities/PropertyAttributeName.js +29 -0
- package/dist/enums/entities/PropertyCondition.d.ts +7 -0
- package/dist/enums/entities/PropertyCondition.js +10 -0
- package/dist/enums/entities/PropertyType.d.ts +12 -0
- package/dist/enums/entities/PropertyType.js +18 -0
- package/dist/enums/entities/PropertyValueType.d.ts +6 -0
- package/dist/enums/entities/PropertyValueType.js +8 -0
- package/dist/enums/entities/RowAccess.d.ts +2 -0
- package/dist/enums/entities/RowAccess.js +2 -0
- package/dist/enums/entities/ViewFilterCondition.d.ts +12 -0
- package/dist/enums/entities/ViewFilterCondition.js +14 -0
- package/dist/enums/execution-method.d.ts +8 -0
- package/dist/enums/execution-method.js +10 -0
- package/dist/enums/flag.d.ts +197 -0
- package/dist/enums/flag.js +199 -0
- package/dist/enums/function-usage-range.d.ts +5 -0
- package/dist/enums/function-usage-range.js +7 -0
- package/dist/enums/image-format.d.ts +7 -0
- package/dist/enums/image-format.js +9 -0
- package/dist/enums/image-gravity.d.ts +11 -0
- package/dist/enums/image-gravity.js +13 -0
- package/dist/enums/index-type.d.ts +5 -0
- package/dist/enums/index-type.js +7 -0
- package/dist/enums/messaging-provider-type.d.ts +5 -0
- package/dist/enums/messaging-provider-type.js +7 -0
- package/dist/enums/name.d.ts +14 -0
- package/dist/enums/name.js +16 -0
- package/dist/enums/o-auth-provider copy.d.ts +41 -0
- package/dist/enums/o-auth-provider copy.js +43 -0
- package/dist/enums/password-hash.d.ts +13 -0
- package/dist/enums/password-hash.js +15 -0
- package/dist/enums/platform-type.d.ts +17 -0
- package/dist/enums/platform-type.js +19 -0
- package/dist/enums/project-usage-range.d.ts +4 -0
- package/dist/enums/project-usage-range.js +6 -0
- package/dist/enums/region.d.ts +4 -0
- package/dist/enums/region.js +6 -0
- package/dist/enums/relation-mutate.d.ts +5 -0
- package/dist/enums/relation-mutate.js +7 -0
- package/dist/enums/relationship-type.d.ts +6 -0
- package/dist/enums/relationship-type.js +8 -0
- package/dist/enums/resource-type.d.ts +4 -0
- package/dist/enums/resource-type.js +6 -0
- package/dist/enums/runtime.d.ts +48 -0
- package/dist/enums/runtime.js +50 -0
- package/dist/enums/s-m-t-p-secure.d.ts +3 -0
- package/dist/enums/s-m-t-p-secure.js +5 -0
- package/dist/enums/shared/ApplicationLayout.d.ts +4 -0
- package/dist/enums/shared/ApplicationLayout.js +6 -0
- package/dist/enums/shared/Colors.d.ts +24 -0
- package/dist/enums/shared/Colors.js +26 -0
- package/dist/enums/shared/InputType.d.ts +6 -0
- package/dist/enums/shared/InputType.js +8 -0
- package/dist/enums/shared/Periodicity.d.ts +7 -0
- package/dist/enums/shared/Periodicity.js +9 -0
- package/dist/enums/shared/SvgIcon.d.ts +37 -0
- package/dist/enums/shared/SvgIcon.js +39 -0
- package/dist/enums/shared/Theme.d.ts +4 -0
- package/dist/enums/shared/Theme.js +6 -0
- package/dist/enums/sms-template-locale.d.ts +133 -0
- package/dist/enums/sms-template-locale.js +135 -0
- package/dist/enums/sms-template-type.d.ts +6 -0
- package/dist/enums/sms-template-type.js +8 -0
- package/dist/enums/smtp-encryption.d.ts +5 -0
- package/dist/enums/smtp-encryption.js +7 -0
- package/dist/enums/storage-usage-range.d.ts +5 -0
- package/dist/enums/storage-usage-range.js +7 -0
- package/dist/enums/subscriptions/PricingModel.d.ts +11 -0
- package/dist/enums/subscriptions/PricingModel.js +12 -0
- package/dist/enums/subscriptions/SubscriptionBillingPeriod.d.ts +10 -0
- package/dist/enums/subscriptions/SubscriptionBillingPeriod.js +11 -0
- package/dist/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +10 -0
- package/dist/enums/subscriptions/SubscriptionFeatureLimitType.js +13 -0
- package/dist/enums/subscriptions/SubscriptionPriceType.d.ts +7 -0
- package/dist/enums/subscriptions/SubscriptionPriceType.js +8 -0
- package/dist/enums/tenants/LinkedAccountStatus.d.ts +5 -0
- package/dist/enums/tenants/LinkedAccountStatus.js +7 -0
- package/dist/enums/tenants/TenantUserJoined.d.ts +6 -0
- package/dist/enums/tenants/TenantUserJoined.js +8 -0
- package/dist/enums/tenants/TenantUserStatus.d.ts +6 -0
- package/dist/enums/tenants/TenantUserStatus.js +8 -0
- package/dist/enums/tenants/TenantUserType.d.ts +5 -0
- package/dist/enums/tenants/TenantUserType.js +7 -0
- package/dist/enums/user-usage-range.d.ts +5 -0
- package/dist/enums/user-usage-range.js +7 -0
- package/dist/getAppcondaClient.d.ts +3 -0
- package/dist/getAppcondaClient.js +71 -0
- package/dist/getSDKForCurrentUser.d.ts +59 -0
- package/dist/getSDKForCurrentUser.js +100 -0
- package/dist/getSDKForService.d.ts +18 -0
- package/dist/getSDKForService.js +67 -0
- package/dist/getSDKForTenant.d.ts +20 -0
- package/dist/getSDKForTenant.js +44 -0
- package/dist/id.d.ts +20 -0
- package/dist/id.js +45 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/inputFile.d.ts +6 -0
- package/dist/inputFile.js +17 -0
- package/dist/lib/Cache/Adapter.d.ts +10 -0
- package/dist/lib/Cache/Adapter.js +2 -0
- package/dist/lib/Cache/Adapters/Filesystem.d.ts +16 -0
- package/dist/lib/Cache/Adapters/Filesystem.js +103 -0
- package/dist/lib/Cache/Adapters/Memory.d.ts +18 -0
- package/dist/lib/Cache/Adapters/Memory.js +47 -0
- package/dist/lib/Cache/Adapters/None.d.ts +12 -0
- package/dist/lib/Cache/Adapters/None.js +28 -0
- package/dist/lib/Cache/Adapters/Sharding.d.ts +17 -0
- package/dist/lib/Cache/Adapters/Sharding.js +73 -0
- package/dist/lib/Cache/Cache.d.ts +16 -0
- package/dist/lib/Cache/Cache.js +52 -0
- package/dist/lib/Cache/index.d.ts +4 -0
- package/dist/lib/Cache/index.js +5 -0
- package/dist/lib/Cache/test.d.ts +0 -0
- package/dist/lib/Cache/test.js +1 -0
- package/dist/lib/Registry/Registry.d.ts +38 -0
- package/dist/lib/Registry/Registry.js +56 -0
- package/dist/lib/Registry/index.d.ts +1 -0
- package/dist/lib/Registry/index.js +2 -0
- package/dist/lib/Services.d.ts +6 -0
- package/dist/lib/Services.js +14 -0
- package/dist/lib/crypto.d.ts +23 -0
- package/dist/lib/crypto.js +78 -0
- package/dist/lib/env.d.ts +1 -0
- package/dist/lib/env.js +137 -0
- package/dist/lib/errors.d.ts +70 -0
- package/dist/lib/errors.js +79 -0
- package/dist/lib/index.d.ts +0 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/jwt.d.ts +12 -0
- package/dist/lib/jwt.js +103 -0
- package/dist/lib/types.d.ts +5 -0
- package/dist/lib/types.js +2 -0
- package/dist/models.d.ts +3272 -0
- package/dist/models.js +2 -0
- package/dist/modules/account/actions.d.ts +11 -0
- package/dist/modules/account/actions.js +49 -0
- package/dist/modules/account/enums/authentication-factor.d.ts +6 -0
- package/dist/modules/account/enums/authentication-factor.js +8 -0
- package/dist/modules/account/enums/authenticator-type.d.ts +3 -0
- package/dist/modules/account/enums/authenticator-type.js +5 -0
- package/dist/modules/account/enums/o-auth-provider.d.ts +41 -0
- package/dist/modules/account/enums/o-auth-provider.js +43 -0
- package/dist/modules/account/index.d.ts +2 -0
- package/dist/modules/account/index.js +3 -0
- package/dist/modules/account/schema.d.ts +7 -0
- package/dist/modules/account/schema.js +8 -0
- package/dist/modules/account/service.d.ts +530 -0
- package/dist/modules/account/service.js +1263 -0
- package/dist/modules/account/types.d.ts +411 -0
- package/dist/modules/account/types.js +2 -0
- package/dist/modules/accounv1/action.d.ts +9 -0
- package/dist/modules/accounv1/action.js +88 -0
- package/dist/modules/accounv1/index.d.ts +3 -0
- package/dist/modules/accounv1/index.js +4 -0
- package/dist/modules/accounv1/schema.d.ts +43 -0
- package/dist/modules/accounv1/schema.js +44 -0
- package/dist/modules/accounv1/service.d.ts +14 -0
- package/dist/modules/accounv1/service.js +28 -0
- package/dist/modules/accounv1/types.d.ts +14 -0
- package/dist/modules/accounv1/types.js +2 -0
- package/dist/modules/acl/service.d.ts +26 -0
- package/dist/modules/acl/service.js +27 -0
- package/dist/modules/agent/action.d.ts +29 -0
- package/dist/modules/agent/action.js +53 -0
- package/dist/modules/agent/index.d.ts +4 -0
- package/dist/modules/agent/index.js +5 -0
- package/dist/modules/agent/schema.d.ts +20 -0
- package/dist/modules/agent/schema.js +21 -0
- package/dist/modules/agent/service.d.ts +12 -0
- package/dist/modules/agent/service.js +22 -0
- package/dist/modules/agent/types.d.ts +11 -0
- package/dist/modules/agent/types.js +2 -0
- package/dist/modules/ai/index.d.ts +1 -0
- package/dist/modules/ai/index.js +2 -0
- package/dist/modules/ai/node/actions.d.ts +4 -0
- package/dist/modules/ai/node/actions.js +14 -0
- package/dist/modules/ai/node/index.d.ts +2 -0
- package/dist/modules/ai/node/index.js +3 -0
- package/dist/modules/ai/node/service.d.ts +5 -0
- package/dist/modules/ai/node/service.js +12 -0
- package/dist/modules/bpm/action.d.ts +7 -0
- package/dist/modules/bpm/action.js +60 -0
- package/dist/modules/bpm/index.d.ts +3 -0
- package/dist/modules/bpm/index.js +4 -0
- package/dist/modules/bpm/schema.d.ts +18 -0
- package/dist/modules/bpm/schema.js +19 -0
- package/dist/modules/bpm/service.d.ts +11 -0
- package/dist/modules/bpm/service.js +19 -0
- package/dist/modules/bpm/types.d.ts +9 -0
- package/dist/modules/bpm/types.js +2 -0
- package/dist/modules/builder/action.d.ts +18 -0
- package/dist/modules/builder/action.js +214 -0
- package/dist/modules/builder/index.d.ts +4 -0
- package/dist/modules/builder/index.js +5 -0
- package/dist/modules/builder/schema.d.ts +80 -0
- package/dist/modules/builder/schema.js +81 -0
- package/dist/modules/builder/service.d.ts +22 -0
- package/dist/modules/builder/service.js +52 -0
- package/dist/modules/builder/types.d.ts +62 -0
- package/dist/modules/builder/types.js +2 -0
- package/dist/modules/datasource/action.d.ts +14 -0
- package/dist/modules/datasource/action.js +172 -0
- package/dist/modules/datasource/index.d.ts +4 -0
- package/dist/modules/datasource/index.js +5 -0
- package/dist/modules/datasource/schema.d.ts +55 -0
- package/dist/modules/datasource/schema.js +56 -0
- package/dist/modules/datasource/service.d.ts +19 -0
- package/dist/modules/datasource/service.js +43 -0
- package/dist/modules/datasource/types.d.ts +28 -0
- package/dist/modules/datasource/types.js +2 -0
- package/dist/modules/emploid/action.d.ts +73 -0
- package/dist/modules/emploid/action.js +984 -0
- package/dist/modules/emploid/index.d.ts +4 -0
- package/dist/modules/emploid/index.js +5 -0
- package/dist/modules/emploid/schema.d.ts +386 -0
- package/dist/modules/emploid/schema.js +331 -0
- package/dist/modules/emploid/service.d.ts +77 -0
- package/dist/modules/emploid/service.js +217 -0
- package/dist/modules/emploid/types.d.ts +114 -0
- package/dist/modules/emploid/types.js +2 -0
- package/dist/modules/google/action.d.ts +5 -0
- package/dist/modules/google/action.js +46 -0
- package/dist/modules/google/index.d.ts +4 -0
- package/dist/modules/google/index.js +5 -0
- package/dist/modules/google/schema.d.ts +13 -0
- package/dist/modules/google/schema.js +14 -0
- package/dist/modules/google/service.d.ts +10 -0
- package/dist/modules/google/service.js +16 -0
- package/dist/modules/google/types.d.ts +12 -0
- package/dist/modules/google/types.js +2 -0
- package/dist/modules/hooks/index.d.ts +3 -0
- package/dist/modules/hooks/index.js +4 -0
- package/dist/modules/hooks/lib/Hooks.d.ts +32 -0
- package/dist/modules/hooks/lib/Hooks.js +64 -0
- package/dist/modules/hooks/lib/handler.d.ts +12 -0
- package/dist/modules/hooks/lib/handler.js +23 -0
- package/dist/modules/hooks/lib/jobs/index.d.ts +2 -0
- package/dist/modules/hooks/lib/jobs/index.js +3 -0
- package/dist/modules/hooks/lib/jobs/job1.d.ts +1 -0
- package/dist/modules/hooks/lib/jobs/job1.js +16 -0
- package/dist/modules/hooks/lib/jobs/log-job.d.ts +1 -0
- package/dist/modules/hooks/lib/jobs/log-job.js +9 -0
- package/dist/modules/hooks/lib/wait.d.ts +8 -0
- package/dist/modules/hooks/lib/wait.js +13 -0
- package/dist/modules/index.d.ts +17 -0
- package/dist/modules/index.js +18 -0
- package/dist/modules/mail/action.d.ts +3 -0
- package/dist/modules/mail/action.js +18 -0
- package/dist/modules/mail/index.d.ts +4 -0
- package/dist/modules/mail/index.js +5 -0
- package/dist/modules/mail/schema.d.ts +6 -0
- package/dist/modules/mail/schema.js +7 -0
- package/dist/modules/mail/service.d.ts +8 -0
- package/dist/modules/mail/service.js +10 -0
- package/dist/modules/mail/types.d.ts +6 -0
- package/dist/modules/mail/types.js +2 -0
- package/dist/modules/notion/action.d.ts +5 -0
- package/dist/modules/notion/action.js +46 -0
- package/dist/modules/notion/index.d.ts +4 -0
- package/dist/modules/notion/index.js +5 -0
- package/dist/modules/notion/schema.d.ts +13 -0
- package/dist/modules/notion/schema.js +14 -0
- package/dist/modules/notion/service.d.ts +10 -0
- package/dist/modules/notion/service.js +19 -0
- package/dist/modules/notion/types.d.ts +11 -0
- package/dist/modules/notion/types.js +2 -0
- package/dist/modules/organization/action.d.ts +7 -0
- package/dist/modules/organization/action.js +60 -0
- package/dist/modules/organization/index.d.ts +4 -0
- package/dist/modules/organization/index.js +5 -0
- package/dist/modules/organization/schema.d.ts +24 -0
- package/dist/modules/organization/schema.js +20 -0
- package/dist/modules/organization/service.d.ts +11 -0
- package/dist/modules/organization/service.js +19 -0
- package/dist/modules/organization/types.d.ts +11 -0
- package/dist/modules/organization/types.js +2 -0
- package/dist/modules/scheduled-job/action.d.ts +70 -0
- package/dist/modules/scheduled-job/action.js +173 -0
- package/dist/modules/scheduled-job/index.d.ts +7 -0
- package/dist/modules/scheduled-job/index.js +8 -0
- package/dist/modules/scheduled-job/lib/Schedules.d.ts +34 -0
- package/dist/modules/scheduled-job/lib/Schedules.js +65 -0
- package/dist/modules/scheduled-job/lib/handler.d.ts +13 -0
- package/dist/modules/scheduled-job/lib/handler.js +23 -0
- package/dist/modules/scheduled-job/lib/jobs/index.d.ts +1 -0
- package/dist/modules/scheduled-job/lib/jobs/index.js +2 -0
- package/dist/modules/scheduled-job/lib/jobs/job1.d.ts +1 -0
- package/dist/modules/scheduled-job/lib/jobs/job1.js +10 -0
- package/dist/modules/scheduled-job/lib/wait.d.ts +8 -0
- package/dist/modules/scheduled-job/lib/wait.js +13 -0
- package/dist/modules/scheduled-job/schema.d.ts +39 -0
- package/dist/modules/scheduled-job/schema.js +40 -0
- package/dist/modules/scheduled-job/service.d.ts +20 -0
- package/dist/modules/scheduled-job/service.js +46 -0
- package/dist/modules/scheduled-job/types.d.ts +66 -0
- package/dist/modules/scheduled-job/types.js +2 -0
- package/dist/modules/task/action.d.ts +64 -0
- package/dist/modules/task/action.js +758 -0
- package/dist/modules/task/index.d.ts +4 -0
- package/dist/modules/task/index.js +5 -0
- package/dist/modules/task/schema.d.ts +355 -0
- package/dist/modules/task/schema.js +371 -0
- package/dist/modules/task/service.d.ts +69 -0
- package/dist/modules/task/service.js +193 -0
- package/dist/modules/task/types.d.ts +293 -0
- package/dist/modules/task/types.js +37 -0
- package/dist/modules/tenant/actions.d.ts +10 -0
- package/dist/modules/tenant/actions.js +160 -0
- package/dist/modules/tenant/index.d.ts +3 -0
- package/dist/modules/tenant/index.js +4 -0
- package/dist/modules/tenant/schema.d.ts +26 -0
- package/dist/modules/tenant/schema.js +28 -0
- package/dist/modules/tenant/service.d.ts +14 -0
- package/dist/modules/tenant/service.js +28 -0
- package/dist/modules/tenant/tenant.d.ts +32 -0
- package/dist/modules/tenant/tenant.js +125 -0
- package/dist/modules/tenant/types.d.ts +20 -0
- package/dist/modules/tenant/types.js +2 -0
- package/dist/modules/waitlist/action.d.ts +6 -0
- package/dist/modules/waitlist/action.js +78 -0
- package/dist/modules/waitlist/index.d.ts +4 -0
- package/dist/modules/waitlist/index.js +5 -0
- package/dist/modules/waitlist/schema.d.ts +17 -0
- package/dist/modules/waitlist/schema.js +18 -0
- package/dist/modules/waitlist/service.d.ts +13 -0
- package/dist/modules/waitlist/service.js +28 -0
- package/dist/modules/waitlist/types.d.ts +14 -0
- package/dist/modules/waitlist/types.js +2 -0
- package/dist/permission.d.ts +43 -0
- package/dist/permission.js +54 -0
- package/dist/query.d.ts +194 -0
- package/dist/query.js +204 -0
- package/dist/role.d.ts +70 -0
- package/dist/role.js +94 -0
- package/dist/schemas/nodes.d.ts +0 -0
- package/dist/schemas/nodes.js +1 -0
- package/dist/service-client.d.ts +8 -0
- package/dist/service-client.js +22 -0
- package/dist/service.d.ts +11 -0
- package/dist/service.js +23 -0
- package/dist/services/applets.d.ts +9 -0
- package/dist/services/applets.js +40 -0
- package/dist/services/avatars.d.ts +115 -0
- package/dist/services/avatars.js +251 -0
- package/dist/services/chat-flow.d.ts +7 -0
- package/dist/services/chat-flow.js +26 -0
- package/dist/services/community.d.ts +19 -0
- package/dist/services/community.js +69 -0
- package/dist/services/configuration.d.ts +5 -0
- package/dist/services/configuration.js +11 -0
- package/dist/services/databases.d.ts +613 -0
- package/dist/services/databases.js +1736 -0
- package/dist/services/functions.d.ts +319 -0
- package/dist/services/functions.js +810 -0
- package/dist/services/graphql.d.ts +25 -0
- package/dist/services/graphql.js +57 -0
- package/dist/services/health.d.ts +231 -0
- package/dist/services/health.js +463 -0
- package/dist/services/locale.d.ts +80 -0
- package/dist/services/locale.js +144 -0
- package/dist/services/messaging.d.ts +685 -0
- package/dist/services/messaging.js +1920 -0
- package/dist/services/permissions.d.ts +20 -0
- package/dist/services/permissions.js +90 -0
- package/dist/services/pricing.d.ts +15 -0
- package/dist/services/pricing.js +21 -0
- package/dist/services/projects.d.ts +542 -0
- package/dist/services/projects.js +1526 -0
- package/dist/services/roles.d.ts +19 -0
- package/dist/services/roles.js +72 -0
- package/dist/services/schema.d.ts +17 -0
- package/dist/services/schema.js +48 -0
- package/dist/services/storage.d.ts +189 -0
- package/dist/services/storage.js +474 -0
- package/dist/services/subscription.d.ts +15 -0
- package/dist/services/subscription.js +30 -0
- package/dist/services/teams.d.ts +167 -0
- package/dist/services/teams.js +395 -0
- package/dist/services/tenant-subscription.d.ts +12 -0
- package/dist/services/tenant-subscription.js +52 -0
- package/dist/services/users.d.ts +499 -0
- package/dist/services/users.js +1283 -0
- package/docs/examples/account/create-anonymous-session.md +11 -0
- package/docs/examples/account/create-email-password-session.md +14 -0
- package/docs/examples/account/create-email-token.md +15 -0
- package/docs/examples/account/create-j-w-t.md +11 -0
- package/docs/examples/account/create-magic-u-r-l-token.md +16 -0
- package/docs/examples/account/create-mfa-authenticator.md +13 -0
- package/docs/examples/account/create-mfa-challenge.md +13 -0
- package/docs/examples/account/create-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/create-o-auth2session.md +15 -0
- package/docs/examples/account/create-o-auth2token.md +15 -0
- package/docs/examples/account/create-phone-token.md +14 -0
- package/docs/examples/account/create-phone-verification.md +11 -0
- package/docs/examples/account/create-push-target.md +15 -0
- package/docs/examples/account/create-recovery.md +14 -0
- package/docs/examples/account/create-session.md +14 -0
- package/docs/examples/account/create-verification.md +13 -0
- package/docs/examples/account/create.md +16 -0
- package/docs/examples/account/delete-identity.md +13 -0
- package/docs/examples/account/delete-mfa-authenticator.md +13 -0
- package/docs/examples/account/delete-push-target.md +13 -0
- package/docs/examples/account/delete-session.md +13 -0
- package/docs/examples/account/delete-sessions.md +11 -0
- package/docs/examples/account/delete.md +11 -0
- package/docs/examples/account/get-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/get-prefs.md +11 -0
- package/docs/examples/account/get-session.md +13 -0
- package/docs/examples/account/get.md +11 -0
- package/docs/examples/account/list-identities.md +13 -0
- package/docs/examples/account/list-logs.md +13 -0
- package/docs/examples/account/list-mfa-factors.md +11 -0
- package/docs/examples/account/list-sessions.md +11 -0
- package/docs/examples/account/update-email.md +14 -0
- package/docs/examples/account/update-m-f-a.md +13 -0
- package/docs/examples/account/update-magic-u-r-l-session.md +14 -0
- package/docs/examples/account/update-mfa-authenticator.md +14 -0
- package/docs/examples/account/update-mfa-challenge.md +14 -0
- package/docs/examples/account/update-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/update-name.md +13 -0
- package/docs/examples/account/update-password.md +14 -0
- package/docs/examples/account/update-phone-session.md +14 -0
- package/docs/examples/account/update-phone-verification.md +14 -0
- package/docs/examples/account/update-phone.md +14 -0
- package/docs/examples/account/update-prefs.md +13 -0
- package/docs/examples/account/update-push-target.md +14 -0
- package/docs/examples/account/update-recovery.md +15 -0
- package/docs/examples/account/update-session.md +13 -0
- package/docs/examples/account/update-status.md +11 -0
- package/docs/examples/account/update-verification.md +14 -0
- package/docs/examples/assistant/chat.md +13 -0
- package/docs/examples/avatars/get-browser.md +16 -0
- package/docs/examples/avatars/get-credit-card.md +16 -0
- package/docs/examples/avatars/get-favicon.md +13 -0
- package/docs/examples/avatars/get-flag.md +16 -0
- package/docs/examples/avatars/get-image.md +15 -0
- package/docs/examples/avatars/get-initials.md +16 -0
- package/docs/examples/avatars/get-q-r.md +16 -0
- package/docs/examples/console/variables.md +11 -0
- package/docs/examples/databases/create-boolean-attribute.md +18 -0
- package/docs/examples/databases/create-collection.md +18 -0
- package/docs/examples/databases/create-datetime-attribute.md +18 -0
- package/docs/examples/databases/create-document.md +17 -0
- package/docs/examples/databases/create-email-attribute.md +18 -0
- package/docs/examples/databases/create-enum-attribute.md +19 -0
- package/docs/examples/databases/create-float-attribute.md +20 -0
- package/docs/examples/databases/create-index.md +18 -0
- package/docs/examples/databases/create-integer-attribute.md +20 -0
- package/docs/examples/databases/create-ip-attribute.md +18 -0
- package/docs/examples/databases/create-relationship-attribute.md +20 -0
- package/docs/examples/databases/create-string-attribute.md +20 -0
- package/docs/examples/databases/create-url-attribute.md +18 -0
- package/docs/examples/databases/create.md +15 -0
- package/docs/examples/databases/delete-attribute.md +15 -0
- package/docs/examples/databases/delete-collection.md +14 -0
- package/docs/examples/databases/delete-document.md +15 -0
- package/docs/examples/databases/delete-index.md +15 -0
- package/docs/examples/databases/delete.md +13 -0
- package/docs/examples/databases/get-attribute.md +15 -0
- package/docs/examples/databases/get-collection-usage.md +15 -0
- package/docs/examples/databases/get-collection.md +14 -0
- package/docs/examples/databases/get-database-usage.md +14 -0
- package/docs/examples/databases/get-document.md +16 -0
- package/docs/examples/databases/get-index.md +15 -0
- package/docs/examples/databases/get-usage.md +13 -0
- package/docs/examples/databases/get.md +13 -0
- package/docs/examples/databases/list-attributes.md +15 -0
- package/docs/examples/databases/list-collection-logs.md +15 -0
- package/docs/examples/databases/list-collections.md +15 -0
- package/docs/examples/databases/list-document-logs.md +16 -0
- package/docs/examples/databases/list-documents.md +15 -0
- package/docs/examples/databases/list-indexes.md +15 -0
- package/docs/examples/databases/list-logs.md +14 -0
- package/docs/examples/databases/list.md +14 -0
- package/docs/examples/databases/update-boolean-attribute.md +17 -0
- package/docs/examples/databases/update-collection.md +18 -0
- package/docs/examples/databases/update-datetime-attribute.md +17 -0
- package/docs/examples/databases/update-document.md +17 -0
- package/docs/examples/databases/update-email-attribute.md +17 -0
- package/docs/examples/databases/update-enum-attribute.md +18 -0
- package/docs/examples/databases/update-float-attribute.md +19 -0
- package/docs/examples/databases/update-integer-attribute.md +19 -0
- package/docs/examples/databases/update-ip-attribute.md +17 -0
- package/docs/examples/databases/update-relationship-attribute.md +16 -0
- package/docs/examples/databases/update-string-attribute.md +17 -0
- package/docs/examples/databases/update-url-attribute.md +17 -0
- package/docs/examples/databases/update.md +15 -0
- package/docs/examples/functions/create-build.md +15 -0
- package/docs/examples/functions/create-deployment.md +17 -0
- package/docs/examples/functions/create-execution.md +19 -0
- package/docs/examples/functions/create-variable.md +15 -0
- package/docs/examples/functions/create.md +34 -0
- package/docs/examples/functions/delete-deployment.md +14 -0
- package/docs/examples/functions/delete-execution.md +14 -0
- package/docs/examples/functions/delete-variable.md +14 -0
- package/docs/examples/functions/delete.md +13 -0
- package/docs/examples/functions/get-deployment-download.md +14 -0
- package/docs/examples/functions/get-deployment.md +14 -0
- package/docs/examples/functions/get-execution.md +14 -0
- package/docs/examples/functions/get-function-usage.md +14 -0
- package/docs/examples/functions/get-template.md +13 -0
- package/docs/examples/functions/get-usage.md +13 -0
- package/docs/examples/functions/get-variable.md +14 -0
- package/docs/examples/functions/get.md +13 -0
- package/docs/examples/functions/list-deployments.md +15 -0
- package/docs/examples/functions/list-executions.md +15 -0
- package/docs/examples/functions/list-runtimes.md +11 -0
- package/docs/examples/functions/list-specifications.md +11 -0
- package/docs/examples/functions/list-templates.md +16 -0
- package/docs/examples/functions/list-variables.md +13 -0
- package/docs/examples/functions/list.md +14 -0
- package/docs/examples/functions/update-deployment-build.md +14 -0
- package/docs/examples/functions/update-deployment.md +14 -0
- package/docs/examples/functions/update-variable.md +16 -0
- package/docs/examples/functions/update.md +30 -0
- package/docs/examples/graphql/mutation.md +13 -0
- package/docs/examples/graphql/query.md +13 -0
- package/docs/examples/health/get-antivirus.md +11 -0
- package/docs/examples/health/get-cache.md +11 -0
- package/docs/examples/health/get-certificate.md +13 -0
- package/docs/examples/health/get-d-b.md +11 -0
- package/docs/examples/health/get-failed-jobs.md +14 -0
- package/docs/examples/health/get-pub-sub.md +11 -0
- package/docs/examples/health/get-queue-builds.md +13 -0
- package/docs/examples/health/get-queue-certificates.md +13 -0
- package/docs/examples/health/get-queue-databases.md +14 -0
- package/docs/examples/health/get-queue-deletes.md +13 -0
- package/docs/examples/health/get-queue-functions.md +13 -0
- package/docs/examples/health/get-queue-logs.md +13 -0
- package/docs/examples/health/get-queue-mails.md +13 -0
- package/docs/examples/health/get-queue-messaging.md +13 -0
- package/docs/examples/health/get-queue-migrations.md +13 -0
- package/docs/examples/health/get-queue-usage-dump.md +13 -0
- package/docs/examples/health/get-queue-usage.md +13 -0
- package/docs/examples/health/get-queue-webhooks.md +13 -0
- package/docs/examples/health/get-queue.md +11 -0
- package/docs/examples/health/get-storage-local.md +11 -0
- package/docs/examples/health/get-storage.md +11 -0
- package/docs/examples/health/get-time.md +11 -0
- package/docs/examples/health/get.md +11 -0
- package/docs/examples/locale/get.md +11 -0
- package/docs/examples/locale/list-codes.md +11 -0
- package/docs/examples/locale/list-continents.md +11 -0
- package/docs/examples/locale/list-countries-e-u.md +11 -0
- package/docs/examples/locale/list-countries-phones.md +11 -0
- package/docs/examples/locale/list-countries.md +11 -0
- package/docs/examples/locale/list-currencies.md +11 -0
- package/docs/examples/locale/list-languages.md +11 -0
- package/docs/examples/messaging/create-apns-provider.md +20 -0
- package/docs/examples/messaging/create-email.md +24 -0
- package/docs/examples/messaging/create-fcm-provider.md +16 -0
- package/docs/examples/messaging/create-mailgun-provider.md +22 -0
- package/docs/examples/messaging/create-msg91provider.md +18 -0
- package/docs/examples/messaging/create-push.md +28 -0
- package/docs/examples/messaging/create-sendgrid-provider.md +20 -0
- package/docs/examples/messaging/create-sms.md +19 -0
- package/docs/examples/messaging/create-smtp-provider.md +26 -0
- package/docs/examples/messaging/create-subscriber.md +15 -0
- package/docs/examples/messaging/create-telesign-provider.md +18 -0
- package/docs/examples/messaging/create-textmagic-provider.md +18 -0
- package/docs/examples/messaging/create-topic.md +15 -0
- package/docs/examples/messaging/create-twilio-provider.md +18 -0
- package/docs/examples/messaging/create-vonage-provider.md +18 -0
- package/docs/examples/messaging/delete-provider.md +13 -0
- package/docs/examples/messaging/delete-subscriber.md +14 -0
- package/docs/examples/messaging/delete-topic.md +13 -0
- package/docs/examples/messaging/delete.md +13 -0
- package/docs/examples/messaging/get-message.md +13 -0
- package/docs/examples/messaging/get-provider.md +13 -0
- package/docs/examples/messaging/get-subscriber.md +14 -0
- package/docs/examples/messaging/get-topic.md +13 -0
- package/docs/examples/messaging/list-message-logs.md +14 -0
- package/docs/examples/messaging/list-messages.md +14 -0
- package/docs/examples/messaging/list-provider-logs.md +14 -0
- package/docs/examples/messaging/list-providers.md +14 -0
- package/docs/examples/messaging/list-subscriber-logs.md +14 -0
- package/docs/examples/messaging/list-subscribers.md +15 -0
- package/docs/examples/messaging/list-targets.md +14 -0
- package/docs/examples/messaging/list-topic-logs.md +14 -0
- package/docs/examples/messaging/list-topics.md +14 -0
- package/docs/examples/messaging/update-apns-provider.md +20 -0
- package/docs/examples/messaging/update-email.md +24 -0
- package/docs/examples/messaging/update-fcm-provider.md +16 -0
- package/docs/examples/messaging/update-mailgun-provider.md +22 -0
- package/docs/examples/messaging/update-msg91provider.md +18 -0
- package/docs/examples/messaging/update-push.md +28 -0
- package/docs/examples/messaging/update-sendgrid-provider.md +20 -0
- package/docs/examples/messaging/update-sms.md +19 -0
- package/docs/examples/messaging/update-smtp-provider.md +26 -0
- package/docs/examples/messaging/update-telesign-provider.md +18 -0
- package/docs/examples/messaging/update-textmagic-provider.md +18 -0
- package/docs/examples/messaging/update-topic.md +15 -0
- package/docs/examples/messaging/update-twilio-provider.md +18 -0
- package/docs/examples/messaging/update-vonage-provider.md +18 -0
- package/docs/examples/migrations/create-appwrite-migration.md +16 -0
- package/docs/examples/migrations/create-firebase-migration.md +14 -0
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +14 -0
- package/docs/examples/migrations/create-n-host-migration.md +20 -0
- package/docs/examples/migrations/create-supabase-migration.md +19 -0
- package/docs/examples/migrations/delete-firebase-auth.md +11 -0
- package/docs/examples/migrations/delete.md +13 -0
- package/docs/examples/migrations/get-appwrite-report.md +16 -0
- package/docs/examples/migrations/get-firebase-report-o-auth.md +14 -0
- package/docs/examples/migrations/get-firebase-report.md +14 -0
- package/docs/examples/migrations/get-n-host-report.md +20 -0
- package/docs/examples/migrations/get-supabase-report.md +19 -0
- package/docs/examples/migrations/get.md +13 -0
- package/docs/examples/migrations/list-firebase-projects.md +11 -0
- package/docs/examples/migrations/list.md +14 -0
- package/docs/examples/migrations/retry.md +13 -0
- package/docs/examples/project/create-variable.md +14 -0
- package/docs/examples/project/delete-variable.md +13 -0
- package/docs/examples/project/get-usage.md +15 -0
- package/docs/examples/project/get-variable.md +13 -0
- package/docs/examples/project/list-variables.md +11 -0
- package/docs/examples/project/update-variable.md +15 -0
- package/docs/examples/projects/create-j-w-t.md +15 -0
- package/docs/examples/projects/create-key.md +16 -0
- package/docs/examples/projects/create-platform.md +18 -0
- package/docs/examples/projects/create-smtp-test.md +22 -0
- package/docs/examples/projects/create-webhook.md +20 -0
- package/docs/examples/projects/create.md +25 -0
- package/docs/examples/projects/delete-email-template.md +15 -0
- package/docs/examples/projects/delete-key.md +14 -0
- package/docs/examples/projects/delete-platform.md +14 -0
- package/docs/examples/projects/delete-sms-template.md +15 -0
- package/docs/examples/projects/delete-webhook.md +14 -0
- package/docs/examples/projects/delete.md +13 -0
- package/docs/examples/projects/get-email-template.md +15 -0
- package/docs/examples/projects/get-key.md +14 -0
- package/docs/examples/projects/get-platform.md +14 -0
- package/docs/examples/projects/get-sms-template.md +15 -0
- package/docs/examples/projects/get-webhook.md +14 -0
- package/docs/examples/projects/get.md +13 -0
- package/docs/examples/projects/list-keys.md +13 -0
- package/docs/examples/projects/list-platforms.md +13 -0
- package/docs/examples/projects/list-webhooks.md +13 -0
- package/docs/examples/projects/list.md +14 -0
- package/docs/examples/projects/update-api-status-all.md +14 -0
- package/docs/examples/projects/update-api-status.md +15 -0
- package/docs/examples/projects/update-auth-duration.md +14 -0
- package/docs/examples/projects/update-auth-limit.md +14 -0
- package/docs/examples/projects/update-auth-password-dictionary.md +14 -0
- package/docs/examples/projects/update-auth-password-history.md +14 -0
- package/docs/examples/projects/update-auth-sessions-limit.md +14 -0
- package/docs/examples/projects/update-auth-status.md +15 -0
- package/docs/examples/projects/update-email-template.md +20 -0
- package/docs/examples/projects/update-key.md +17 -0
- package/docs/examples/projects/update-mock-numbers.md +14 -0
- package/docs/examples/projects/update-o-auth2.md +17 -0
- package/docs/examples/projects/update-personal-data-check.md +14 -0
- package/docs/examples/projects/update-platform.md +18 -0
- package/docs/examples/projects/update-service-status-all.md +14 -0
- package/docs/examples/projects/update-service-status.md +15 -0
- package/docs/examples/projects/update-session-alerts.md +14 -0
- package/docs/examples/projects/update-sms-template.md +16 -0
- package/docs/examples/projects/update-smtp.md +22 -0
- package/docs/examples/projects/update-team.md +14 -0
- package/docs/examples/projects/update-webhook-signature.md +14 -0
- package/docs/examples/projects/update-webhook.md +21 -0
- package/docs/examples/projects/update.md +23 -0
- package/docs/examples/proxy/create-rule.md +15 -0
- package/docs/examples/proxy/delete-rule.md +13 -0
- package/docs/examples/proxy/get-rule.md +13 -0
- package/docs/examples/proxy/list-rules.md +14 -0
- package/docs/examples/proxy/update-rule-verification.md +13 -0
- package/docs/examples/storage/create-bucket.md +22 -0
- package/docs/examples/storage/create-file.md +16 -0
- package/docs/examples/storage/delete-bucket.md +13 -0
- package/docs/examples/storage/delete-file.md +14 -0
- package/docs/examples/storage/get-bucket-usage.md +14 -0
- package/docs/examples/storage/get-bucket.md +13 -0
- package/docs/examples/storage/get-file-download.md +14 -0
- package/docs/examples/storage/get-file-preview.md +25 -0
- package/docs/examples/storage/get-file-view.md +14 -0
- package/docs/examples/storage/get-file.md +14 -0
- package/docs/examples/storage/get-usage.md +13 -0
- package/docs/examples/storage/list-buckets.md +14 -0
- package/docs/examples/storage/list-files.md +15 -0
- package/docs/examples/storage/update-bucket.md +22 -0
- package/docs/examples/storage/update-file.md +16 -0
- package/docs/examples/teams/create-membership.md +19 -0
- package/docs/examples/teams/create.md +15 -0
- package/docs/examples/teams/delete-membership.md +14 -0
- package/docs/examples/teams/delete.md +13 -0
- package/docs/examples/teams/get-membership.md +14 -0
- package/docs/examples/teams/get-prefs.md +13 -0
- package/docs/examples/teams/get.md +13 -0
- package/docs/examples/teams/list-logs.md +14 -0
- package/docs/examples/teams/list-memberships.md +15 -0
- package/docs/examples/teams/list.md +14 -0
- package/docs/examples/teams/update-membership-status.md +16 -0
- package/docs/examples/teams/update-membership.md +15 -0
- package/docs/examples/teams/update-name.md +14 -0
- package/docs/examples/teams/update-prefs.md +14 -0
- package/docs/examples/users/create-argon2user.md +16 -0
- package/docs/examples/users/create-bcrypt-user.md +16 -0
- package/docs/examples/users/create-j-w-t.md +15 -0
- package/docs/examples/users/create-m-d5user.md +16 -0
- package/docs/examples/users/create-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/create-p-h-pass-user.md +16 -0
- package/docs/examples/users/create-s-h-a-user.md +17 -0
- package/docs/examples/users/create-scrypt-modified-user.md +19 -0
- package/docs/examples/users/create-scrypt-user.md +21 -0
- package/docs/examples/users/create-session.md +13 -0
- package/docs/examples/users/create-target.md +18 -0
- package/docs/examples/users/create-token.md +15 -0
- package/docs/examples/users/create.md +17 -0
- package/docs/examples/users/delete-identity.md +13 -0
- package/docs/examples/users/delete-mfa-authenticator.md +14 -0
- package/docs/examples/users/delete-session.md +14 -0
- package/docs/examples/users/delete-sessions.md +13 -0
- package/docs/examples/users/delete-target.md +14 -0
- package/docs/examples/users/delete.md +13 -0
- package/docs/examples/users/get-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/get-prefs.md +13 -0
- package/docs/examples/users/get-target.md +14 -0
- package/docs/examples/users/get-usage.md +13 -0
- package/docs/examples/users/get.md +13 -0
- package/docs/examples/users/list-identities.md +14 -0
- package/docs/examples/users/list-logs.md +14 -0
- package/docs/examples/users/list-memberships.md +13 -0
- package/docs/examples/users/list-mfa-factors.md +13 -0
- package/docs/examples/users/list-sessions.md +13 -0
- package/docs/examples/users/list-targets.md +14 -0
- package/docs/examples/users/list.md +14 -0
- package/docs/examples/users/update-email-verification.md +14 -0
- package/docs/examples/users/update-email.md +14 -0
- package/docs/examples/users/update-labels.md +14 -0
- package/docs/examples/users/update-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/update-mfa.md +14 -0
- package/docs/examples/users/update-name.md +14 -0
- package/docs/examples/users/update-password.md +14 -0
- package/docs/examples/users/update-phone-verification.md +14 -0
- package/docs/examples/users/update-phone.md +14 -0
- package/docs/examples/users/update-prefs.md +14 -0
- package/docs/examples/users/update-status.md +14 -0
- package/docs/examples/users/update-target.md +17 -0
- package/docs/examples/vcs/create-repository-detection.md +15 -0
- package/docs/examples/vcs/create-repository.md +15 -0
- package/docs/examples/vcs/delete-installation.md +13 -0
- package/docs/examples/vcs/get-installation.md +13 -0
- package/docs/examples/vcs/get-repository-contents.md +15 -0
- package/docs/examples/vcs/get-repository.md +14 -0
- package/docs/examples/vcs/list-installations.md +14 -0
- package/docs/examples/vcs/list-repositories.md +14 -0
- package/docs/examples/vcs/list-repository-branches.md +14 -0
- package/docs/examples/vcs/update-external-deployments.md +15 -0
- package/package.json +38 -141
- package/publish.sh +4 -0
- package/src/client.ts +397 -0
- package/src/enums/api-service.ts +13 -0
- package/src/enums/api.ts +5 -0
- package/src/enums/auth-method.ts +9 -0
- package/src/enums/browser.ts +16 -0
- package/src/enums/compression.ts +5 -0
- package/src/enums/credit-card.ts +18 -0
- package/src/enums/database-usage-range.ts +5 -0
- package/src/enums/email-template-locale.ts +133 -0
- package/src/enums/email-template-type.ts +9 -0
- package/src/enums/entities/EntityLimitType.ts +4 -0
- package/src/enums/entities/PropertyAttributeName.ts +27 -0
- package/src/enums/entities/PropertyCondition.ts +8 -0
- package/src/enums/entities/PropertyType.ts +16 -0
- package/src/enums/entities/PropertyValueType.ts +6 -0
- package/src/enums/entities/RowAccess.ts +2 -0
- package/src/enums/entities/ViewFilterCondition.ts +12 -0
- package/src/enums/execution-method.ts +8 -0
- package/src/enums/flag.ts +197 -0
- package/src/enums/function-usage-range.ts +5 -0
- package/src/enums/image-format.ts +7 -0
- package/src/enums/image-gravity.ts +11 -0
- package/src/enums/index-type.ts +5 -0
- package/src/enums/messaging-provider-type.ts +5 -0
- package/src/enums/name.ts +14 -0
- package/src/enums/o-auth-provider copy.ts +41 -0
- package/src/enums/password-hash.ts +13 -0
- package/src/enums/platform-type.ts +17 -0
- package/src/enums/project-usage-range.ts +4 -0
- package/src/enums/region.ts +4 -0
- package/src/enums/relation-mutate.ts +5 -0
- package/src/enums/relationship-type.ts +6 -0
- package/src/enums/resource-type.ts +4 -0
- package/src/enums/runtime.ts +48 -0
- package/src/enums/s-m-t-p-secure.ts +3 -0
- package/src/enums/shared/ApplicationLayout.ts +4 -0
- package/src/enums/shared/Colors.ts +24 -0
- package/src/enums/shared/InputType.ts +6 -0
- package/src/enums/shared/Periodicity.ts +7 -0
- package/src/enums/shared/SvgIcon.ts +37 -0
- package/src/enums/shared/Theme.ts +4 -0
- package/src/enums/sms-template-locale.ts +133 -0
- package/src/enums/sms-template-type.ts +6 -0
- package/src/enums/smtp-encryption.ts +5 -0
- package/src/enums/storage-usage-range.ts +5 -0
- package/src/enums/subscriptions/PricingModel.ts +14 -0
- package/src/enums/subscriptions/SubscriptionBillingPeriod.ts +15 -0
- package/src/enums/subscriptions/SubscriptionFeatureLimitType.ts +16 -0
- package/src/enums/subscriptions/SubscriptionPriceType.ts +10 -0
- package/src/enums/tenants/LinkedAccountStatus.ts +5 -0
- package/src/enums/tenants/TenantUserJoined.ts +6 -0
- package/src/enums/tenants/TenantUserStatus.ts +6 -0
- package/src/enums/tenants/TenantUserType.ts +5 -0
- package/src/enums/user-usage-range.ts +5 -0
- package/src/getAppcondaClient.ts +75 -0
- package/src/getSDKForService.ts +71 -0
- package/src/id.ts +47 -0
- package/src/index.ts +3 -0
- package/src/inputFile.ts +23 -0
- package/src/lib/errors.ts +141 -0
- package/src/lib/index.ts +0 -0
- package/src/lib/types.ts +7 -0
- package/src/models.ts +3339 -0
- package/src/modules/account/enums/authentication-factor.ts +6 -0
- package/src/modules/account/enums/authenticator-type.ts +3 -0
- package/src/modules/account/enums/o-auth-provider.ts +41 -0
- package/src/modules/account/index.ts +3 -0
- package/src/modules/account/schema.ts +8 -0
- package/src/modules/account/service.ts +1648 -0
- package/src/modules/account/types.ts +426 -0
- package/src/modules/accounv1/index.ts +4 -0
- package/src/modules/accounv1/schema.ts +50 -0
- package/src/modules/accounv1/service.ts +43 -0
- package/src/modules/accounv1/types.ts +16 -0
- package/src/modules/acl/service.ts +55 -0
- package/src/modules/agent/action.ts +66 -0
- package/src/modules/agent/index.ts +4 -0
- package/src/modules/agent/schema.ts +25 -0
- package/src/modules/agent/service.ts +34 -0
- package/src/modules/agent/types.ts +15 -0
- package/src/modules/ai/index.ts +1 -0
- package/src/modules/ai/node/actions.ts +14 -0
- package/src/modules/ai/node/index.ts +2 -0
- package/src/modules/ai/node/service.ts +18 -0
- package/src/modules/bpm/index.ts +3 -0
- package/src/modules/bpm/schema.ts +23 -0
- package/src/modules/bpm/service.ts +28 -0
- package/src/modules/bpm/types.ts +11 -0
- package/src/modules/builder/action.ts +234 -0
- package/src/modules/builder/index.ts +4 -0
- package/src/modules/builder/schema.ts +95 -0
- package/src/modules/builder/service.ts +74 -0
- package/src/modules/builder/types.ts +68 -0
- package/src/modules/datasource/action.ts +189 -0
- package/src/modules/datasource/index.ts +4 -0
- package/src/modules/datasource/schema.ts +69 -0
- package/src/modules/datasource/service.ts +58 -0
- package/src/modules/datasource/types.ts +31 -0
- package/src/modules/emploid/action.ts +1063 -0
- package/src/modules/emploid/index.ts +4 -0
- package/src/modules/emploid/schema.ts +405 -0
- package/src/modules/emploid/service.ts +295 -0
- package/src/modules/emploid/types.ts +132 -0
- package/src/modules/google/action.ts +54 -0
- package/src/modules/google/index.ts +4 -0
- package/src/modules/google/schema.ts +19 -0
- package/src/modules/google/service.ts +23 -0
- package/src/modules/google/types.ts +15 -0
- package/src/modules/hooks/index.ts +5 -0
- package/src/modules/hooks/lib/Hooks.ts +103 -0
- package/src/modules/hooks/lib/handler.ts +27 -0
- package/src/modules/hooks/lib/jobs/index.ts +2 -0
- package/src/modules/hooks/lib/jobs/job1.ts +20 -0
- package/src/modules/hooks/lib/jobs/log-job.ts +10 -0
- package/src/modules/hooks/lib/wait.ts +17 -0
- package/src/modules/index.ts +17 -0
- package/src/modules/mail/action.ts +22 -0
- package/src/modules/mail/index.ts +4 -0
- package/src/modules/mail/schema.ts +9 -0
- package/src/modules/mail/service.ts +15 -0
- package/src/modules/mail/types.ts +11 -0
- package/src/modules/notion/action.ts +53 -0
- package/src/modules/notion/index.ts +4 -0
- package/src/modules/notion/schema.ts +21 -0
- package/src/modules/notion/service.ts +26 -0
- package/src/modules/notion/types.ts +14 -0
- package/src/modules/organization/action.ts +71 -0
- package/src/modules/organization/index.ts +4 -0
- package/src/modules/organization/schema.ts +23 -0
- package/src/modules/organization/service.ts +32 -0
- package/src/modules/organization/types.ts +15 -0
- package/src/modules/scheduled-job/action.ts +212 -0
- package/src/modules/scheduled-job/index.ts +8 -0
- package/src/modules/scheduled-job/lib/Schedules.ts +105 -0
- package/src/modules/scheduled-job/lib/handler.ts +27 -0
- package/src/modules/scheduled-job/lib/jobs/index.ts +2 -0
- package/src/modules/scheduled-job/lib/jobs/job1.ts +12 -0
- package/src/modules/scheduled-job/lib/wait.ts +17 -0
- package/src/modules/scheduled-job/schema.ts +62 -0
- package/src/modules/scheduled-job/service.ts +63 -0
- package/src/modules/scheduled-job/types.ts +79 -0
- package/src/modules/task/action.ts +819 -0
- package/src/modules/task/index.ts +4 -0
- package/src/modules/task/schema.ts +455 -0
- package/src/modules/task/service.ts +268 -0
- package/src/modules/task/types.ts +325 -0
- package/src/modules/tenant/actions.ts +173 -0
- package/src/modules/tenant/index.ts +3 -0
- package/src/modules/tenant/schema.ts +32 -0
- package/src/modules/tenant/service.ts +43 -0
- package/src/modules/tenant/tenant.ts +193 -0
- package/src/modules/tenant/types.ts +22 -0
- package/src/modules/waitlist/action.ts +93 -0
- package/src/modules/waitlist/index.ts +4 -0
- package/src/modules/waitlist/schema.ts +24 -0
- package/src/modules/waitlist/service.ts +41 -0
- package/src/modules/waitlist/types.ts +18 -0
- package/src/permission.ts +57 -0
- package/src/query.ts +261 -0
- package/src/role.ts +100 -0
- package/src/service-client.ts +40 -0
- package/src/service.ts +30 -0
- package/src/services/applets.ts +75 -0
- package/src/services/avatars.ts +314 -0
- package/src/services/chat-flow.ts +32 -0
- package/src/services/community.ts +102 -0
- package/src/services/configuration.ts +15 -0
- package/src/services/databases.ts +2037 -0
- package/src/services/functions.ts +986 -0
- package/src/services/graphql.ts +75 -0
- package/src/services/health.ts +629 -0
- package/src/services/locale.ts +205 -0
- package/src/services/messaging.ts +2247 -0
- package/src/services/permissions.ts +131 -0
- package/src/services/pricing.ts +30 -0
- package/src/services/projects.ts +1901 -0
- package/src/services/roles.ts +101 -0
- package/src/services/schema.ts +65 -0
- package/src/services/storage.ts +576 -0
- package/src/services/subscription.ts +39 -0
- package/src/services/teams.ts +490 -0
- package/src/services/tenant-subscription.ts +93 -0
- package/src/services/users.ts +1584 -0
- package/tsconfig.json +32 -0
- package/index.d.ts +0 -3367
- package/index.js +0 -407
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
import { AppcondaException, Client, type Payload, UploadProgress } from '../client';
|
|
2
|
+
import type { Models } from '../models';
|
|
3
|
+
|
|
4
|
+
export class Teams {
|
|
5
|
+
client: Client;
|
|
6
|
+
|
|
7
|
+
constructor(client: Client) {
|
|
8
|
+
this.client = client;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* List teams
|
|
13
|
+
*
|
|
14
|
+
* Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.
|
|
15
|
+
*
|
|
16
|
+
* @param {string[]} queries
|
|
17
|
+
* @param {string} search
|
|
18
|
+
* @throws {AppcondaException}
|
|
19
|
+
* @returns {Promise<Models.TeamList<Preferences>>}
|
|
20
|
+
*/
|
|
21
|
+
async list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.TeamList<Preferences>> {
|
|
22
|
+
const apiPath = '/teams';
|
|
23
|
+
const payload: Payload = {};
|
|
24
|
+
if (typeof queries !== 'undefined') {
|
|
25
|
+
payload['queries'] = queries;
|
|
26
|
+
}
|
|
27
|
+
if (typeof search !== 'undefined') {
|
|
28
|
+
payload['search'] = search;
|
|
29
|
+
}
|
|
30
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
31
|
+
|
|
32
|
+
const apiHeaders: { [header: string]: string } = {
|
|
33
|
+
'content-type': 'application/json',
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return await this.client.call(
|
|
37
|
+
'get',
|
|
38
|
+
uri,
|
|
39
|
+
apiHeaders,
|
|
40
|
+
payload,
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Create team
|
|
45
|
+
*
|
|
46
|
+
* Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.
|
|
47
|
+
*
|
|
48
|
+
* @param {string} teamId
|
|
49
|
+
* @param {string} name
|
|
50
|
+
* @param {string[]} roles
|
|
51
|
+
* @throws {AppcondaException}
|
|
52
|
+
* @returns {Promise<Models.Team<Preferences>>}
|
|
53
|
+
*/
|
|
54
|
+
async create<Preferences extends Models.Preferences>(teamId: string, name: string, roles?: string[]): Promise<Models.Team<Preferences>> {
|
|
55
|
+
if (typeof teamId === 'undefined') {
|
|
56
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
|
57
|
+
}
|
|
58
|
+
if (typeof name === 'undefined') {
|
|
59
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
|
60
|
+
}
|
|
61
|
+
const apiPath = '/teams';
|
|
62
|
+
const payload: Payload = {};
|
|
63
|
+
if (typeof teamId !== 'undefined') {
|
|
64
|
+
payload['teamId'] = teamId;
|
|
65
|
+
}
|
|
66
|
+
if (typeof name !== 'undefined') {
|
|
67
|
+
payload['name'] = name;
|
|
68
|
+
}
|
|
69
|
+
if (typeof roles !== 'undefined') {
|
|
70
|
+
payload['roles'] = roles;
|
|
71
|
+
}
|
|
72
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
73
|
+
|
|
74
|
+
const apiHeaders: { [header: string]: string } = {
|
|
75
|
+
'content-type': 'application/json',
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return await this.client.call(
|
|
79
|
+
'post',
|
|
80
|
+
uri,
|
|
81
|
+
apiHeaders,
|
|
82
|
+
payload,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Get team
|
|
87
|
+
*
|
|
88
|
+
* Get a team by its ID. All team members have read access for this resource.
|
|
89
|
+
*
|
|
90
|
+
* @param {string} teamId
|
|
91
|
+
* @throws {AppcondaException}
|
|
92
|
+
* @returns {Promise<Models.Team<Preferences>>}
|
|
93
|
+
*/
|
|
94
|
+
async get<Preferences extends Models.Preferences>(teamId: string): Promise<Models.Team<Preferences>> {
|
|
95
|
+
if (typeof teamId === 'undefined') {
|
|
96
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
|
97
|
+
}
|
|
98
|
+
const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);
|
|
99
|
+
const payload: Payload = {};
|
|
100
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
101
|
+
|
|
102
|
+
const apiHeaders: { [header: string]: string } = {
|
|
103
|
+
'content-type': 'application/json',
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return await this.client.call(
|
|
107
|
+
'get',
|
|
108
|
+
uri,
|
|
109
|
+
apiHeaders,
|
|
110
|
+
payload,
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Update name
|
|
115
|
+
*
|
|
116
|
+
* Update the team's name by its unique ID.
|
|
117
|
+
*
|
|
118
|
+
* @param {string} teamId
|
|
119
|
+
* @param {string} name
|
|
120
|
+
* @throws {AppcondaException}
|
|
121
|
+
* @returns {Promise<Models.Team<Preferences>>}
|
|
122
|
+
*/
|
|
123
|
+
async updateName<Preferences extends Models.Preferences>(teamId: string, name: string): Promise<Models.Team<Preferences>> {
|
|
124
|
+
if (typeof teamId === 'undefined') {
|
|
125
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
|
126
|
+
}
|
|
127
|
+
if (typeof name === 'undefined') {
|
|
128
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
|
129
|
+
}
|
|
130
|
+
const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);
|
|
131
|
+
const payload: Payload = {};
|
|
132
|
+
if (typeof name !== 'undefined') {
|
|
133
|
+
payload['name'] = name;
|
|
134
|
+
}
|
|
135
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
136
|
+
|
|
137
|
+
const apiHeaders: { [header: string]: string } = {
|
|
138
|
+
'content-type': 'application/json',
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return await this.client.call(
|
|
142
|
+
'put',
|
|
143
|
+
uri,
|
|
144
|
+
apiHeaders,
|
|
145
|
+
payload,
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Delete team
|
|
150
|
+
*
|
|
151
|
+
* Delete a team using its ID. Only team members with the owner role can delete the team.
|
|
152
|
+
*
|
|
153
|
+
* @param {string} teamId
|
|
154
|
+
* @throws {AppcondaException}
|
|
155
|
+
* @returns {Promise<{}>}
|
|
156
|
+
*/
|
|
157
|
+
async delete(teamId: string): Promise<{}> {
|
|
158
|
+
if (typeof teamId === 'undefined') {
|
|
159
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
|
160
|
+
}
|
|
161
|
+
const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);
|
|
162
|
+
const payload: Payload = {};
|
|
163
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
164
|
+
|
|
165
|
+
const apiHeaders: { [header: string]: string } = {
|
|
166
|
+
'content-type': 'application/json',
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return await this.client.call(
|
|
170
|
+
'delete',
|
|
171
|
+
uri,
|
|
172
|
+
apiHeaders,
|
|
173
|
+
payload,
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* List team memberships
|
|
178
|
+
*
|
|
179
|
+
* Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint.
|
|
180
|
+
*
|
|
181
|
+
* @param {string} teamId
|
|
182
|
+
* @param {string[]} queries
|
|
183
|
+
* @param {string} search
|
|
184
|
+
* @throws {AppcondaException}
|
|
185
|
+
* @returns {Promise<Models.MembershipList>}
|
|
186
|
+
*/
|
|
187
|
+
async listMemberships(teamId: string, queries?: string[], search?: string): Promise<Models.MembershipList> {
|
|
188
|
+
if (typeof teamId === 'undefined') {
|
|
189
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
|
190
|
+
}
|
|
191
|
+
const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);
|
|
192
|
+
const payload: Payload = {};
|
|
193
|
+
if (typeof queries !== 'undefined') {
|
|
194
|
+
payload['queries'] = queries;
|
|
195
|
+
}
|
|
196
|
+
if (typeof search !== 'undefined') {
|
|
197
|
+
payload['search'] = search;
|
|
198
|
+
}
|
|
199
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
200
|
+
|
|
201
|
+
const apiHeaders: { [header: string]: string } = {
|
|
202
|
+
'content-type': 'application/json',
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
return await this.client.call(
|
|
206
|
+
'get',
|
|
207
|
+
uri,
|
|
208
|
+
apiHeaders,
|
|
209
|
+
payload,
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Create team membership
|
|
214
|
+
*
|
|
215
|
+
* Invite a new member to join your team. Provide an ID for existing users, or invite unregistered users using an email or phone number. If initiated from a Client SDK, Appconda will send an email or sms with a link to join the team to the invited user, and an account will be created for them if one doesn't exist. If initiated from a Server SDK, the new member will be added automatically to the team.
|
|
216
|
+
|
|
217
|
+
You only need to provide one of a user ID, email, or phone number. Appconda will prioritize accepting the user ID > email > phone number if you provide more than one of these parameters.
|
|
218
|
+
|
|
219
|
+
Use the `url` parameter to redirect the user from the invitation email to your app. After the user is redirected, use the [Update Team Membership Status](https://appconda.io/docs/references/cloud/client-web/teams#updateMembershipStatus) endpoint to allow the user to accept the invitation to the team.
|
|
220
|
+
|
|
221
|
+
Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) Appconda will accept the only redirect URLs under the domains you have added as a platform on the Appconda Console.
|
|
222
|
+
|
|
223
|
+
*
|
|
224
|
+
* @param {string} teamId
|
|
225
|
+
* @param {string[]} roles
|
|
226
|
+
* @param {string} email
|
|
227
|
+
* @param {string} userId
|
|
228
|
+
* @param {string} phone
|
|
229
|
+
* @param {string} url
|
|
230
|
+
* @param {string} name
|
|
231
|
+
* @throws {AppcondaException}
|
|
232
|
+
* @returns {Promise<Models.Membership>}
|
|
233
|
+
*/
|
|
234
|
+
async createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership> {
|
|
235
|
+
if (typeof teamId === 'undefined') {
|
|
236
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
|
237
|
+
}
|
|
238
|
+
if (typeof roles === 'undefined') {
|
|
239
|
+
throw new AppcondaException('Missing required parameter: "roles"');
|
|
240
|
+
}
|
|
241
|
+
const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);
|
|
242
|
+
const payload: Payload = {};
|
|
243
|
+
if (typeof email !== 'undefined') {
|
|
244
|
+
payload['email'] = email;
|
|
245
|
+
}
|
|
246
|
+
if (typeof userId !== 'undefined') {
|
|
247
|
+
payload['userId'] = userId;
|
|
248
|
+
}
|
|
249
|
+
if (typeof phone !== 'undefined') {
|
|
250
|
+
payload['phone'] = phone;
|
|
251
|
+
}
|
|
252
|
+
if (typeof roles !== 'undefined') {
|
|
253
|
+
payload['roles'] = roles;
|
|
254
|
+
}
|
|
255
|
+
if (typeof url !== 'undefined') {
|
|
256
|
+
payload['url'] = url;
|
|
257
|
+
}
|
|
258
|
+
if (typeof name !== 'undefined') {
|
|
259
|
+
payload['name'] = name;
|
|
260
|
+
}
|
|
261
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
262
|
+
|
|
263
|
+
const apiHeaders: { [header: string]: string } = {
|
|
264
|
+
'content-type': 'application/json',
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
return await this.client.call(
|
|
268
|
+
'post',
|
|
269
|
+
uri,
|
|
270
|
+
apiHeaders,
|
|
271
|
+
payload,
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Get team membership
|
|
276
|
+
*
|
|
277
|
+
* Get a team member by the membership unique id. All team members have read access for this resource.
|
|
278
|
+
*
|
|
279
|
+
* @param {string} teamId
|
|
280
|
+
* @param {string} membershipId
|
|
281
|
+
* @throws {AppcondaException}
|
|
282
|
+
* @returns {Promise<Models.Membership>}
|
|
283
|
+
*/
|
|
284
|
+
async getMembership(teamId: string, membershipId: string): Promise<Models.Membership> {
|
|
285
|
+
if (typeof teamId === 'undefined') {
|
|
286
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
|
287
|
+
}
|
|
288
|
+
if (typeof membershipId === 'undefined') {
|
|
289
|
+
throw new AppcondaException('Missing required parameter: "membershipId"');
|
|
290
|
+
}
|
|
291
|
+
const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
|
|
292
|
+
const payload: Payload = {};
|
|
293
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
294
|
+
|
|
295
|
+
const apiHeaders: { [header: string]: string } = {
|
|
296
|
+
'content-type': 'application/json',
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return await this.client.call(
|
|
300
|
+
'get',
|
|
301
|
+
uri,
|
|
302
|
+
apiHeaders,
|
|
303
|
+
payload,
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Update membership
|
|
308
|
+
*
|
|
309
|
+
* Modify the roles of a team member. Only team members with the owner role have access to this endpoint. Learn more about [roles and permissions](https://appconda.io/docs/permissions).
|
|
310
|
+
|
|
311
|
+
*
|
|
312
|
+
* @param {string} teamId
|
|
313
|
+
* @param {string} membershipId
|
|
314
|
+
* @param {string[]} roles
|
|
315
|
+
* @throws {AppcondaException}
|
|
316
|
+
* @returns {Promise<Models.Membership>}
|
|
317
|
+
*/
|
|
318
|
+
async updateMembership(teamId: string, membershipId: string, roles: string[]): Promise<Models.Membership> {
|
|
319
|
+
if (typeof teamId === 'undefined') {
|
|
320
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
|
321
|
+
}
|
|
322
|
+
if (typeof membershipId === 'undefined') {
|
|
323
|
+
throw new AppcondaException('Missing required parameter: "membershipId"');
|
|
324
|
+
}
|
|
325
|
+
if (typeof roles === 'undefined') {
|
|
326
|
+
throw new AppcondaException('Missing required parameter: "roles"');
|
|
327
|
+
}
|
|
328
|
+
const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
|
|
329
|
+
const payload: Payload = {};
|
|
330
|
+
if (typeof roles !== 'undefined') {
|
|
331
|
+
payload['roles'] = roles;
|
|
332
|
+
}
|
|
333
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
334
|
+
|
|
335
|
+
const apiHeaders: { [header: string]: string } = {
|
|
336
|
+
'content-type': 'application/json',
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
return await this.client.call(
|
|
340
|
+
'patch',
|
|
341
|
+
uri,
|
|
342
|
+
apiHeaders,
|
|
343
|
+
payload,
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Delete team membership
|
|
348
|
+
*
|
|
349
|
+
* This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. You can also use this endpoint to delete a user membership even if it is not accepted.
|
|
350
|
+
*
|
|
351
|
+
* @param {string} teamId
|
|
352
|
+
* @param {string} membershipId
|
|
353
|
+
* @throws {AppcondaException}
|
|
354
|
+
* @returns {Promise<{}>}
|
|
355
|
+
*/
|
|
356
|
+
async deleteMembership(teamId: string, membershipId: string): Promise<{}> {
|
|
357
|
+
if (typeof teamId === 'undefined') {
|
|
358
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
|
359
|
+
}
|
|
360
|
+
if (typeof membershipId === 'undefined') {
|
|
361
|
+
throw new AppcondaException('Missing required parameter: "membershipId"');
|
|
362
|
+
}
|
|
363
|
+
const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
|
|
364
|
+
const payload: Payload = {};
|
|
365
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
366
|
+
|
|
367
|
+
const apiHeaders: { [header: string]: string } = {
|
|
368
|
+
'content-type': 'application/json',
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
return await this.client.call(
|
|
372
|
+
'delete',
|
|
373
|
+
uri,
|
|
374
|
+
apiHeaders,
|
|
375
|
+
payload,
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Update team membership status
|
|
380
|
+
*
|
|
381
|
+
* Use this endpoint to allow a user to accept an invitation to join a team after being redirected back to your app from the invitation email received by the user.
|
|
382
|
+
|
|
383
|
+
If the request is successful, a session for the user is automatically created.
|
|
384
|
+
|
|
385
|
+
*
|
|
386
|
+
* @param {string} teamId
|
|
387
|
+
* @param {string} membershipId
|
|
388
|
+
* @param {string} userId
|
|
389
|
+
* @param {string} secret
|
|
390
|
+
* @throws {AppcondaException}
|
|
391
|
+
* @returns {Promise<Models.Membership>}
|
|
392
|
+
*/
|
|
393
|
+
async updateMembershipStatus(teamId: string, membershipId: string, userId: string, secret: string): Promise<Models.Membership> {
|
|
394
|
+
if (typeof teamId === 'undefined') {
|
|
395
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
|
396
|
+
}
|
|
397
|
+
if (typeof membershipId === 'undefined') {
|
|
398
|
+
throw new AppcondaException('Missing required parameter: "membershipId"');
|
|
399
|
+
}
|
|
400
|
+
if (typeof userId === 'undefined') {
|
|
401
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
|
402
|
+
}
|
|
403
|
+
if (typeof secret === 'undefined') {
|
|
404
|
+
throw new AppcondaException('Missing required parameter: "secret"');
|
|
405
|
+
}
|
|
406
|
+
const apiPath = '/teams/{teamId}/memberships/{membershipId}/status'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
|
|
407
|
+
const payload: Payload = {};
|
|
408
|
+
if (typeof userId !== 'undefined') {
|
|
409
|
+
payload['userId'] = userId;
|
|
410
|
+
}
|
|
411
|
+
if (typeof secret !== 'undefined') {
|
|
412
|
+
payload['secret'] = secret;
|
|
413
|
+
}
|
|
414
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
415
|
+
|
|
416
|
+
const apiHeaders: { [header: string]: string } = {
|
|
417
|
+
'content-type': 'application/json',
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
return await this.client.call(
|
|
421
|
+
'patch',
|
|
422
|
+
uri,
|
|
423
|
+
apiHeaders,
|
|
424
|
+
payload,
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Get team preferences
|
|
429
|
+
*
|
|
430
|
+
* Get the team's shared preferences by its unique ID. If a preference doesn't need to be shared by all team members, prefer storing them in [user preferences](https://appconda.io/docs/references/cloud/client-web/account#getPrefs).
|
|
431
|
+
*
|
|
432
|
+
* @param {string} teamId
|
|
433
|
+
* @throws {AppcondaException}
|
|
434
|
+
* @returns {Promise<Preferences>}
|
|
435
|
+
*/
|
|
436
|
+
async getPrefs<Preferences extends Models.Preferences>(teamId: string): Promise<Preferences> {
|
|
437
|
+
if (typeof teamId === 'undefined') {
|
|
438
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
|
439
|
+
}
|
|
440
|
+
const apiPath = '/teams/{teamId}/prefs'.replace('{teamId}', teamId);
|
|
441
|
+
const payload: Payload = {};
|
|
442
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
443
|
+
|
|
444
|
+
const apiHeaders: { [header: string]: string } = {
|
|
445
|
+
'content-type': 'application/json',
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
return await this.client.call(
|
|
449
|
+
'get',
|
|
450
|
+
uri,
|
|
451
|
+
apiHeaders,
|
|
452
|
+
payload,
|
|
453
|
+
);
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Update preferences
|
|
457
|
+
*
|
|
458
|
+
* Update the team's preferences by its unique ID. The object you pass is stored as is and replaces any previous value. The maximum allowed prefs size is 64kB and throws an error if exceeded.
|
|
459
|
+
*
|
|
460
|
+
* @param {string} teamId
|
|
461
|
+
* @param {object} prefs
|
|
462
|
+
* @throws {AppcondaException}
|
|
463
|
+
* @returns {Promise<Preferences>}
|
|
464
|
+
*/
|
|
465
|
+
async updatePrefs<Preferences extends Models.Preferences>(teamId: string, prefs: object): Promise<Preferences> {
|
|
466
|
+
if (typeof teamId === 'undefined') {
|
|
467
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
|
468
|
+
}
|
|
469
|
+
if (typeof prefs === 'undefined') {
|
|
470
|
+
throw new AppcondaException('Missing required parameter: "prefs"');
|
|
471
|
+
}
|
|
472
|
+
const apiPath = '/teams/{teamId}/prefs'.replace('{teamId}', teamId);
|
|
473
|
+
const payload: Payload = {};
|
|
474
|
+
if (typeof prefs !== 'undefined') {
|
|
475
|
+
payload['prefs'] = prefs;
|
|
476
|
+
}
|
|
477
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
478
|
+
|
|
479
|
+
const apiHeaders: { [header: string]: string } = {
|
|
480
|
+
'content-type': 'application/json',
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
return await this.client.call(
|
|
484
|
+
'put',
|
|
485
|
+
uri,
|
|
486
|
+
apiHeaders,
|
|
487
|
+
payload,
|
|
488
|
+
);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { AppcondaException, Client, Payload } from "../client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class TenantSubscription {
|
|
6
|
+
client: Client;
|
|
7
|
+
|
|
8
|
+
constructor(client: Client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
async getOrPersistTenantSubscription(tenantId: string): Promise<ArrayBuffer> {
|
|
13
|
+
if (typeof tenantId === 'undefined') {
|
|
14
|
+
throw new AppcondaException('Missing required parameter: "tenantId"');
|
|
15
|
+
}
|
|
16
|
+
const apiPath = `/tenant/subscriptions/${tenantId}`;
|
|
17
|
+
|
|
18
|
+
const payload: Payload = {};
|
|
19
|
+
if (typeof tenantId !== 'undefined') {
|
|
20
|
+
payload['tenantId'] = tenantId;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
25
|
+
|
|
26
|
+
const apiHeaders: { [header: string]: string } = {
|
|
27
|
+
'content-type': 'application/json',
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return await this.client.call(
|
|
31
|
+
'get',
|
|
32
|
+
uri,
|
|
33
|
+
apiHeaders,
|
|
34
|
+
payload,
|
|
35
|
+
'arrayBuffer'
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
async getTenantSubscriptions(): Promise<any> {
|
|
40
|
+
|
|
41
|
+
const apiPath = `/tenant/subscriptions`;
|
|
42
|
+
|
|
43
|
+
const payload: Payload = {};
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
47
|
+
|
|
48
|
+
const apiHeaders: { [header: string]: string } = {
|
|
49
|
+
'content-type': 'application/json',
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return await this.client.call(
|
|
53
|
+
'get',
|
|
54
|
+
uri,
|
|
55
|
+
apiHeaders,
|
|
56
|
+
payload,
|
|
57
|
+
'arrayBuffer'
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async createTenantSubscription(tenantId: string, stripeCustomerId: string): Promise<{id: string, tenantId: string, stripeCustomerId: string}> {
|
|
62
|
+
if (typeof tenantId === 'undefined') {
|
|
63
|
+
throw new AppcondaException('Missing required parameter: "tenantId"');
|
|
64
|
+
}
|
|
65
|
+
if (typeof stripeCustomerId === 'undefined') {
|
|
66
|
+
throw new AppcondaException('Missing required parameter: "stripeCustomerId"');
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const apiPath = '/tenant/subscriptions';
|
|
70
|
+
|
|
71
|
+
const payload: Payload = {};
|
|
72
|
+
if (typeof tenantId !== 'undefined') {
|
|
73
|
+
payload['tenantId'] = tenantId;
|
|
74
|
+
}
|
|
75
|
+
if (typeof stripeCustomerId !== 'undefined') {
|
|
76
|
+
payload['stripeCustomerId'] = stripeCustomerId;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
81
|
+
|
|
82
|
+
const apiHeaders: { [header: string]: string } = {
|
|
83
|
+
'content-type': 'application/json',
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return await this.client.call(
|
|
87
|
+
'post',
|
|
88
|
+
uri,
|
|
89
|
+
apiHeaders,
|
|
90
|
+
payload,
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
}
|