@appsemble/utils 0.29.11 → 0.30.1
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 +3 -3
- package/api/components/parameters/$own.d.ts +2 -0
- package/api/components/parameters/$own.js +7 -0
- package/api/components/parameters/appMemberId.d.ts +2 -0
- package/api/components/parameters/appMemberId.js +8 -0
- package/api/components/parameters/groupId.d.ts +2 -0
- package/api/components/parameters/groupId.js +8 -0
- package/api/components/parameters/groupMemberId.d.ts +2 -0
- package/api/components/parameters/groupMemberId.js +8 -0
- package/api/components/parameters/index.d.ts +17 -13
- package/api/components/parameters/index.js +17 -13
- package/api/components/parameters/organizationId.d.ts +9 -2
- package/api/components/parameters/organizationId.js +1 -1
- package/api/components/parameters/roles.js +12 -6
- package/api/components/parameters/seed.d.ts +2 -0
- package/api/components/parameters/seed.js +9 -0
- package/api/components/parameters/selectedGroupId.d.ts +2 -0
- package/api/components/parameters/selectedGroupId.js +7 -0
- package/api/components/parameters/serviceSecretId.d.ts +2 -0
- package/api/components/parameters/{appServiceId.js → serviceSecretId.js} +3 -3
- package/api/components/requestBodies/oauth2Consent.js +1 -5
- package/api/components/requestBodies/user.js +1 -1
- package/api/components/schemas/ActionDefinition.js +14 -11
- package/api/components/schemas/AppAccount.js +7 -24
- package/api/components/schemas/AppDefinition.js +3 -15
- package/api/components/schemas/AppMember.d.ts +2 -0
- package/api/components/schemas/AppMember.js +26 -0
- package/api/components/schemas/AppMemberCurrentPatchActionDefinition.d.ts +1 -0
- package/api/components/schemas/AppMemberCurrentPatchActionDefinition.js +30 -0
- package/api/components/schemas/AppMemberDeleteActionDefinition.d.ts +1 -0
- package/api/components/schemas/AppMemberDeleteActionDefinition.js +20 -0
- package/api/components/schemas/AppMemberInfo.d.ts +2 -0
- package/api/components/schemas/AppMemberInfo.js +48 -0
- package/api/components/schemas/AppMemberInviteActionDefinition.d.ts +1 -0
- package/api/components/schemas/AppMemberInviteActionDefinition.js +24 -0
- package/api/components/schemas/AppMemberLoginActionDefinition.d.ts +1 -0
- package/api/components/schemas/AppMemberLoginActionDefinition.js +24 -0
- package/api/components/schemas/AppMemberLogoutActionDefinition.d.ts +1 -0
- package/api/components/schemas/AppMemberLogoutActionDefinition.js +14 -0
- package/api/components/schemas/AppMemberPropertiesPatchActionDefinition.d.ts +1 -0
- package/api/components/schemas/AppMemberPropertiesPatchActionDefinition.js +26 -0
- package/api/components/schemas/AppMemberPropertyDefinition.d.ts +2 -0
- package/api/components/schemas/{UserPropertyDefinition.js → AppMemberPropertyDefinition.js} +5 -5
- package/api/components/schemas/AppMemberQueryActionDefinition.d.ts +1 -0
- package/api/components/schemas/AppMemberQueryActionDefinition.js +20 -0
- package/api/components/schemas/AppMemberRegisterActionDefinition.d.ts +1 -0
- package/api/components/schemas/AppMemberRegisterActionDefinition.js +43 -0
- package/api/components/schemas/AppMemberRoleUpdateActionDefinition.d.ts +1 -0
- package/api/components/schemas/AppMemberRoleUpdateActionDefinition.js +27 -0
- package/api/components/schemas/AppMembersDefinition.d.ts +2 -0
- package/api/components/schemas/AppMembersDefinition.js +17 -0
- package/api/components/schemas/GroupMember.d.ts +2 -0
- package/api/components/schemas/GroupMember.js +19 -0
- package/api/components/schemas/GroupMemberDeleteActionDefinition.d.ts +1 -0
- package/api/components/schemas/{TeamMembersActionDefinition.js → GroupMemberDeleteActionDefinition.js} +5 -5
- package/api/components/schemas/GroupMemberInviteActionDefinition.d.ts +1 -0
- package/api/components/schemas/{TeamInviteActionDefinition.js → GroupMemberInviteActionDefinition.js} +5 -6
- package/api/components/schemas/GroupMemberQueryActionDefinition.d.ts +1 -0
- package/api/components/schemas/GroupMemberQueryActionDefinition.js +18 -0
- package/api/components/schemas/GroupMemberRoleUpdateActionDefinition.d.ts +1 -0
- package/api/components/schemas/GroupMemberRoleUpdateActionDefinition.js +22 -0
- package/api/components/schemas/GroupQueryActionDefinition.d.ts +1 -0
- package/api/components/schemas/{UserLogoutActionDefinition.js → GroupQueryActionDefinition.js} +4 -4
- package/api/components/schemas/OrganizationMember.js +2 -2
- package/api/components/schemas/ResourceCountActionDefinition.js +4 -0
- package/api/components/schemas/ResourceCreateActionDefinition.js +1 -1
- package/api/components/schemas/ResourceDefinition.js +0 -22
- package/api/components/schemas/ResourceQueryActionDefinition.js +4 -0
- package/api/components/schemas/SecurityDefaultDefinition.js +1 -1
- package/api/components/schemas/SecurityDefinition.js +2 -6
- package/api/components/schemas/SecurityGuestDefinition.d.ts +2 -0
- package/api/components/schemas/SecurityGuestDefinition.js +26 -0
- package/api/components/schemas/SecurityRoleDefinition.js +7 -0
- package/api/components/schemas/User.js +2 -22
- package/api/components/schemas/UserInfo.d.ts +2 -0
- package/api/components/schemas/UserInfo.js +42 -0
- package/api/components/schemas/index.d.ts +22 -15
- package/api/components/schemas/index.js +22 -15
- package/api/components/securitySchemes/app.js +6 -6
- package/api/components/securitySchemes/cli.js +3 -3
- package/api/paths/app-collections/appCollectionId/apps/appId/pinned.d.ts +2 -0
- package/api/paths/app-collections/appCollectionId/apps/appId/pinned.js +70 -0
- package/api/paths/app-collections/appCollectionId/apps/appId.d.ts +2 -0
- package/api/paths/app-collections/appCollectionId/apps/appId.js +34 -0
- package/api/paths/app-collections/appCollectionId/apps.d.ts +2 -0
- package/api/paths/app-collections/appCollectionId/apps.js +93 -0
- package/api/paths/app-collections/appCollectionId/expert/profileImage.d.ts +2 -0
- package/api/paths/app-collections/appCollectionId/expert/profileImage.js +31 -0
- package/api/paths/app-collections/appCollectionId/headerImage.d.ts +2 -0
- package/api/paths/app-collections/appCollectionId/headerImage.js +31 -0
- package/api/paths/app-collections/appCollectionId.d.ts +2 -0
- package/api/paths/app-collections/appCollectionId.js +102 -0
- package/api/paths/app-invites/token/respond.d.ts +2 -0
- package/api/paths/app-invites/token/respond.js +51 -0
- package/api/paths/app-invites/token.d.ts +2 -0
- package/api/paths/app-invites/token.js +23 -0
- package/api/paths/app-members/appMemberId/picture.d.ts +2 -0
- package/api/paths/app-members/appMemberId/picture.js +30 -0
- package/api/paths/app-members/appMemberId/properties.d.ts +2 -0
- package/api/paths/app-members/appMemberId/properties.js +48 -0
- package/api/paths/app-members/appMemberId/role.d.ts +2 -0
- package/api/paths/app-members/appMemberId/role.js +46 -0
- package/api/paths/app-members/appMemberId.d.ts +2 -0
- package/api/paths/app-members/appMemberId.js +24 -0
- package/api/paths/appCollections.d.ts +1 -1
- package/api/paths/appCollections.js +12 -454
- package/api/paths/appTemplates.d.ts +2 -0
- package/api/paths/appTemplates.js +94 -0
- package/api/paths/apps/appId/actions/path.d.ts +2 -0
- package/api/paths/{action.js → apps/appId/actions/path.js} +18 -20
- package/api/paths/apps/appId/assets/assetId.d.ts +2 -0
- package/api/paths/apps/appId/assets/assetId.js +38 -0
- package/api/paths/apps/appId/assets/count.d.ts +2 -0
- package/api/paths/apps/appId/assets/count.js +22 -0
- package/api/paths/apps/appId/assets.d.ts +2 -0
- package/api/paths/apps/appId/assets.js +96 -0
- package/api/paths/apps/appId/auth/email/login.d.ts +2 -0
- package/api/paths/apps/appId/auth/email/login.js +10 -0
- package/api/paths/apps/appId/auth/email/register.d.ts +2 -0
- package/api/paths/apps/appId/auth/email/register.js +52 -0
- package/api/paths/apps/appId/auth/email/requestResetPassword.d.ts +2 -0
- package/api/paths/apps/appId/auth/email/requestResetPassword.js +31 -0
- package/api/paths/apps/appId/auth/email/resendVerification.d.ts +2 -0
- package/api/paths/apps/appId/auth/email/resendVerification.js +32 -0
- package/api/paths/apps/appId/auth/email/resetPassword.d.ts +2 -0
- package/api/paths/apps/appId/auth/email/resetPassword.js +34 -0
- package/api/paths/apps/appId/auth/email/verify.d.ts +2 -0
- package/api/paths/apps/appId/auth/email/verify.js +31 -0
- package/api/paths/apps/appId/broadcast.d.ts +2 -0
- package/api/paths/apps/appId/broadcast.js +36 -0
- package/api/paths/apps/appId/demo-groups.d.ts +2 -0
- package/api/paths/apps/appId/demo-groups.js +29 -0
- package/api/paths/apps/appId/demo-members.d.ts +2 -0
- package/api/paths/apps/appId/demo-members.js +27 -0
- package/api/paths/apps/appId/email.d.ts +2 -0
- package/api/paths/apps/appId/email.js +48 -0
- package/api/paths/apps/appId/export.d.ts +2 -0
- package/api/paths/apps/appId/export.js +41 -0
- package/api/paths/apps/appId/groups.d.ts +2 -0
- package/api/paths/apps/appId/groups.js +79 -0
- package/api/paths/apps/appId/icon.d.ts +2 -0
- package/api/paths/apps/appId/icon.js +31 -0
- package/api/paths/apps/appId/invites.d.ts +2 -0
- package/api/paths/apps/appId/invites.js +79 -0
- package/api/paths/apps/appId/lock.d.ts +2 -0
- package/api/paths/apps/appId/lock.js +35 -0
- package/api/paths/apps/appId/maskableIcon.d.ts +2 -0
- package/api/paths/apps/appId/maskableIcon.js +15 -0
- package/api/paths/apps/appId/members/current/groups.d.ts +2 -0
- package/api/paths/apps/appId/members/current/groups.js +30 -0
- package/api/paths/apps/appId/members/current/link.d.ts +2 -0
- package/api/paths/apps/appId/members/current/link.js +41 -0
- package/api/paths/apps/appId/members/current.d.ts +2 -0
- package/api/paths/apps/appId/members/current.js +111 -0
- package/api/paths/apps/appId/members.d.ts +2 -0
- package/api/paths/apps/appId/members.js +29 -0
- package/api/paths/apps/appId/messages/language.d.ts +2 -0
- package/api/paths/apps/appId/messages/language.js +47 -0
- package/api/paths/apps/appId/messages.d.ts +2 -0
- package/api/paths/apps/appId/messages.js +72 -0
- package/api/paths/apps/appId/quotas/emails.d.ts +2 -0
- package/api/paths/apps/appId/quotas/emails.js +36 -0
- package/api/paths/apps/appId/ratings.d.ts +2 -0
- package/api/paths/apps/appId/ratings.js +58 -0
- package/api/paths/apps/appId/readmes/readmeId.d.ts +2 -0
- package/api/paths/apps/appId/readmes/readmeId.js +17 -0
- package/api/paths/apps/appId/reseed.d.ts +2 -0
- package/api/paths/apps/appId/reseed.js +12 -0
- package/api/paths/apps/appId/resources/resourceType/count.d.ts +2 -0
- package/api/paths/apps/appId/resources/resourceType/count.js +30 -0
- package/api/paths/apps/appId/resources/resourceType/resourceId/subscriptions.d.ts +2 -0
- package/api/paths/apps/appId/resources/resourceType/resourceId/subscriptions.js +31 -0
- package/api/paths/apps/appId/resources/resourceType/resourceId.d.ts +2 -0
- package/api/paths/apps/appId/resources/resourceType/resourceId.js +74 -0
- package/api/paths/apps/appId/resources/resourceType/subscriptions.d.ts +2 -0
- package/api/paths/apps/appId/resources/resourceType/subscriptions.js +26 -0
- package/api/paths/apps/appId/resources/resourceType.d.ts +2 -0
- package/api/paths/apps/appId/resources/resourceType.js +171 -0
- package/api/paths/apps/appId/resources/versions.d.ts +2 -0
- package/api/paths/apps/appId/resources/versions.js +29 -0
- package/api/paths/apps/appId/resources.d.ts +2 -0
- package/api/paths/apps/appId/resources.js +15 -0
- package/api/paths/apps/appId/saml/secretId/acs.d.ts +2 -0
- package/api/paths/apps/appId/saml/secretId/acs.js +35 -0
- package/api/paths/apps/appId/saml/secretId/authn.d.ts +2 -0
- package/api/paths/apps/appId/saml/secretId/authn.js +37 -0
- package/api/paths/apps/appId/saml/secretId/metadata.d.ts +2 -0
- package/api/paths/apps/appId/saml/secretId/metadata.js +21 -0
- package/api/paths/apps/appId/scim/resource-types/resourceTypeId.d.ts +2 -0
- package/api/paths/apps/appId/scim/resource-types/resourceTypeId.js +25 -0
- package/api/paths/apps/appId/scim/resource-types.d.ts +2 -0
- package/api/paths/apps/appId/scim/resource-types.js +22 -0
- package/api/paths/apps/appId/scim/schemas/schemaId.d.ts +2 -0
- package/api/paths/apps/appId/scim/schemas/schemaId.js +24 -0
- package/api/paths/apps/appId/scim/schemas.d.ts +2 -0
- package/api/paths/apps/appId/scim/schemas.js +21 -0
- package/api/paths/apps/appId/scim/service-provider-config.d.ts +2 -0
- package/api/paths/apps/appId/scim/service-provider-config.js +22 -0
- package/api/paths/apps/appId/scim/users/userId.d.ts +2 -0
- package/api/paths/apps/appId/scim/users/userId.js +92 -0
- package/api/paths/apps/appId/scim/users.d.ts +2 -0
- package/api/paths/apps/appId/scim/users.js +58 -0
- package/api/paths/apps/appId/screenshots/screenshotId.d.ts +2 -0
- package/api/paths/apps/appId/screenshots/screenshotId.js +28 -0
- package/api/paths/apps/appId/screenshots.d.ts +2 -0
- package/api/paths/apps/appId/screenshots.js +55 -0
- package/api/paths/apps/appId/secrets/oauth2/secretId/verify.d.ts +2 -0
- package/api/paths/apps/appId/secrets/oauth2/secretId/verify.js +47 -0
- package/api/paths/apps/appId/secrets/oauth2/secretId.d.ts +2 -0
- package/api/paths/apps/appId/secrets/oauth2/secretId.js +60 -0
- package/api/paths/apps/appId/secrets/oauth2.d.ts +2 -0
- package/api/paths/apps/appId/secrets/oauth2.js +54 -0
- package/api/paths/apps/appId/secrets/saml/secretId.d.ts +2 -0
- package/api/paths/apps/appId/secrets/saml/secretId.js +39 -0
- package/api/paths/apps/appId/secrets/saml.d.ts +2 -0
- package/api/paths/apps/appId/secrets/saml.js +54 -0
- package/api/paths/apps/appId/secrets/scim.d.ts +2 -0
- package/api/paths/apps/appId/secrets/scim.js +43 -0
- package/api/paths/apps/appId/secrets/service/secretId.d.ts +2 -0
- package/api/paths/apps/appId/secrets/service/secretId.js +39 -0
- package/api/paths/apps/appId/secrets/service.d.ts +2 -0
- package/api/paths/apps/appId/secrets/service.js +54 -0
- package/api/paths/apps/appId/secrets/ssl.d.ts +2 -0
- package/api/paths/apps/appId/secrets/ssl.js +37 -0
- package/api/paths/apps/appId/snapshots/snapshotId.d.ts +2 -0
- package/api/paths/apps/appId/snapshots/snapshotId.js +47 -0
- package/api/paths/apps/appId/snapshots.d.ts +2 -0
- package/api/paths/apps/appId/snapshots.js +40 -0
- package/api/paths/apps/appId/style/block/organizationId/blockId.d.ts +2 -0
- package/api/paths/apps/appId/style/block/organizationId/blockId.js +53 -0
- package/api/paths/apps/appId/style/core.d.ts +2 -0
- package/api/paths/apps/appId/style/core.js +17 -0
- package/api/paths/apps/appId/style/shared.d.ts +2 -0
- package/api/paths/apps/appId/style/shared.js +17 -0
- package/api/paths/apps/appId/subscriptions.d.ts +2 -0
- package/api/paths/apps/appId/subscriptions.js +91 -0
- package/api/paths/apps/appId/variables/variableId.d.ts +2 -0
- package/api/paths/apps/appId/variables/variableId.js +39 -0
- package/api/paths/apps/appId/variables.d.ts +2 -0
- package/api/paths/apps/appId/variables.js +53 -0
- package/api/paths/apps/appId.d.ts +2 -0
- package/api/paths/apps/appId.js +175 -0
- package/api/paths/apps.d.ts +1 -1
- package/api/paths/apps.js +95 -1518
- package/api/paths/auth/email/login.d.ts +2 -0
- package/api/paths/auth/email/login.js +10 -0
- package/api/paths/auth/email/register.d.ts +2 -0
- package/api/paths/auth/email/register.js +45 -0
- package/api/paths/auth/email/requestResetPassword.d.ts +2 -0
- package/api/paths/auth/email/requestResetPassword.js +30 -0
- package/api/paths/auth/email/resendVerification.d.ts +2 -0
- package/api/paths/auth/email/resendVerification.js +31 -0
- package/api/paths/auth/email/resetPassword.d.ts +2 -0
- package/api/paths/auth/email/resetPassword.js +33 -0
- package/api/paths/auth/email/verify.d.ts +2 -0
- package/api/paths/auth/email/verify.js +30 -0
- package/api/paths/auth/oauth2/authorizations/connect.d.ts +2 -0
- package/api/paths/auth/oauth2/authorizations/connect.js +45 -0
- package/api/paths/auth/oauth2/authorizations/register.d.ts +2 -0
- package/api/paths/auth/oauth2/authorizations/register.js +32 -0
- package/api/paths/auth/refreshToken.d.ts +2 -0
- package/api/paths/auth/refreshToken.js +26 -0
- package/api/paths/blocks/organizationId/blockId/versions/list.d.ts +2 -0
- package/api/paths/blocks/organizationId/blockId/versions/list.js +27 -0
- package/api/paths/blocks/organizationId/blockId/versions/version/asset.d.ts +2 -0
- package/api/paths/blocks/organizationId/blockId/versions/version/asset.js +24 -0
- package/api/paths/blocks/organizationId/blockId/versions/version/icon.d.ts +2 -0
- package/api/paths/blocks/organizationId/blockId/versions/version/icon.js +18 -0
- package/api/paths/blocks/organizationId/blockId/versions/version/messages/language.d.ts +2 -0
- package/api/paths/blocks/organizationId/blockId/versions/version/messages/language.js +37 -0
- package/api/paths/blocks/organizationId/blockId/versions/version.d.ts +2 -0
- package/api/paths/blocks/organizationId/blockId/versions/version.js +29 -0
- package/api/paths/blocks/organizationId/blockId/versions.d.ts +2 -0
- package/api/paths/blocks/organizationId/blockId/versions.js +27 -0
- package/api/paths/blocks/organizationId/blockId.d.ts +2 -0
- package/api/paths/blocks/organizationId/blockId.js +18 -0
- package/api/paths/blocks/versions/blockVersion.js +21 -0
- package/api/paths/blocks.d.ts +1 -1
- package/api/paths/blocks.js +29 -204
- package/api/paths/containerLogs.d.ts +1 -1
- package/api/paths/containerLogs.js +28 -30
- package/api/paths/group-invites/token/respond.d.ts +2 -0
- package/api/paths/group-invites/token/respond.js +42 -0
- package/api/paths/group-invites/token.d.ts +2 -0
- package/api/paths/group-invites/token.js +23 -0
- package/api/paths/group-members/groupMemberId/role.d.ts +2 -0
- package/api/paths/group-members/groupMemberId/role.js +40 -0
- package/api/paths/group-members/groupMemberId.d.ts +2 -0
- package/api/paths/group-members/groupMemberId.js +34 -0
- package/api/paths/groups/groupId/invites.d.ts +2 -0
- package/api/paths/groups/groupId/invites.js +87 -0
- package/api/paths/groups/groupId/members.d.ts +2 -0
- package/api/paths/groups/groupId/members.js +34 -0
- package/api/paths/groups/groupId.d.ts +2 -0
- package/api/paths/groups/groupId.js +86 -0
- package/api/paths/health.d.ts +1 -1
- package/api/paths/health.js +12 -66
- package/api/paths/index.d.ts +145 -136
- package/api/paths/index.js +294 -58
- package/api/paths/messages/language.d.ts +2 -0
- package/api/paths/messages/language.js +21 -0
- package/api/paths/messages.d.ts +2 -0
- package/api/paths/messages.js +26 -0
- package/api/paths/organization-invites/token/respond.d.ts +2 -0
- package/api/paths/organization-invites/token/respond.js +42 -0
- package/api/paths/organization-invites/token.d.ts +2 -0
- package/api/paths/organization-invites/token.js +23 -0
- package/api/paths/organizations/organizationId/appCollections.d.ts +2 -0
- package/api/paths/organizations/organizationId/appCollections.js +76 -0
- package/api/paths/organizations/organizationId/apps/import.d.ts +2 -0
- package/api/paths/organizations/organizationId/apps/import.js +26 -0
- package/api/paths/organizations/organizationId/apps.d.ts +2 -0
- package/api/paths/organizations/organizationId/apps.js +33 -0
- package/api/paths/organizations/organizationId/blocks.d.ts +2 -0
- package/api/paths/organizations/organizationId/blocks.js +25 -0
- package/api/paths/organizations/organizationId/icon.d.ts +2 -0
- package/api/paths/organizations/organizationId/icon.js +14 -0
- package/api/paths/organizations/organizationId/invites/resend.d.ts +2 -0
- package/api/paths/organizations/organizationId/invites/resend.js +32 -0
- package/api/paths/organizations/organizationId/invites.d.ts +2 -0
- package/api/paths/organizations/organizationId/invites.js +108 -0
- package/api/paths/organizations/organizationId/members/memberId/role.d.ts +2 -0
- package/api/paths/organizations/organizationId/members/memberId/role.js +50 -0
- package/api/paths/organizations/organizationId/members/memberId.d.ts +2 -0
- package/api/paths/organizations/organizationId/members/memberId.js +25 -0
- package/api/paths/organizations/organizationId/members.d.ts +2 -0
- package/api/paths/organizations/organizationId/members.js +25 -0
- package/api/paths/organizations/organizationId.d.ts +2 -0
- package/api/paths/organizations/organizationId.js +67 -0
- package/api/paths/organizations.d.ts +1 -1
- package/api/paths/organizations.js +46 -452
- package/api/paths/ssl.d.ts +2 -0
- package/api/paths/ssl.js +31 -0
- package/api/paths/timezones.d.ts +2 -0
- package/api/paths/timezones.js +23 -0
- package/api/paths/trainingBlocks/trainingBlockId.d.ts +2 -0
- package/api/paths/trainingBlocks/trainingBlockId.js +41 -0
- package/api/paths/trainings/trainingId/blocks.d.ts +2 -0
- package/api/paths/trainings/trainingId/blocks.js +51 -0
- package/api/paths/trainings/trainingId/users/current.d.ts +2 -0
- package/api/paths/trainings/trainingId/users/current.js +62 -0
- package/api/paths/trainings/trainingId/users.d.ts +2 -0
- package/api/paths/trainings/trainingId/users.js +25 -0
- package/api/paths/trainings/trainingId.d.ts +2 -0
- package/api/paths/trainings/trainingId.js +85 -0
- package/api/paths/trainings.d.ts +1 -1
- package/api/paths/trainings.js +26 -287
- package/api/paths/users/current/apps/accounts.d.ts +2 -0
- package/api/paths/users/current/apps/accounts.js +24 -0
- package/api/paths/users/current/apps/appId/account.d.ts +2 -0
- package/api/paths/users/current/apps/appId/account.js +65 -0
- package/api/paths/users/current/apps.d.ts +2 -0
- package/api/paths/users/current/apps.js +32 -0
- package/api/paths/users/current/auth/oauth2/apps/appId/consent/agree.d.ts +2 -0
- package/api/paths/users/current/auth/oauth2/apps/appId/consent/agree.js +12 -0
- package/api/paths/users/current/auth/oauth2/apps/appId/consent/verify.d.ts +2 -0
- package/api/paths/users/current/auth/oauth2/apps/appId/consent/verify.js +12 -0
- package/api/paths/users/current/auth/oauth2/authorizations.d.ts +2 -0
- package/api/paths/users/current/auth/oauth2/authorizations.js +43 -0
- package/api/paths/users/current/auth/oauth2/clientCredentials/clientId.d.ts +2 -0
- package/api/paths/users/current/auth/oauth2/clientCredentials/clientId.js +23 -0
- package/api/paths/users/current/auth/oauth2/clientCredentials.d.ts +2 -0
- package/api/paths/users/current/auth/oauth2/clientCredentials.js +53 -0
- package/api/paths/users/current/emails.d.ts +2 -0
- package/api/paths/users/current/emails.js +73 -0
- package/api/paths/users/current/organizations.d.ts +2 -0
- package/api/paths/users/current/organizations.js +29 -0
- package/api/paths/users/current/unsubscribe.d.ts +2 -0
- package/api/paths/users/current/unsubscribe.js +29 -0
- package/api/paths/users/current.d.ts +2 -0
- package/api/paths/users/current.js +43 -0
- package/api/paths/users/subscribed.d.ts +2 -0
- package/api/paths/users/subscribed.js +12 -0
- package/api/tags/index.d.ts +2 -1
- package/api/tags/index.js +170 -8
- package/appMembers.d.ts +1 -0
- package/appMembers.js +9 -0
- package/authorization.d.ts +12 -0
- package/authorization.js +171 -0
- package/constants/index.d.ts +0 -2
- package/constants/index.js +0 -2
- package/constants/scopes.d.ts +1 -1
- package/constants/scopes.js +2 -2
- package/examples.js +13 -14
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +2 -2
- package/reference-schemas/remappers/data.js +23 -38
- package/remap.d.ts +3 -7
- package/remap.js +1 -2
- package/remap.test.js +8 -9
- package/validation.js +396 -83
- package/validation.test.js +1039 -230
- package/api/components/parameters/$team.d.ts +0 -2
- package/api/components/parameters/$team.js +0 -8
- package/api/components/parameters/appServiceId.d.ts +0 -2
- package/api/components/parameters/memberEmail.d.ts +0 -2
- package/api/components/parameters/memberEmail.js +0 -8
- package/api/components/schemas/TeamInviteActionDefinition.d.ts +0 -1
- package/api/components/schemas/TeamJoinActionDefinition.d.ts +0 -1
- package/api/components/schemas/TeamJoinActionDefinition.js +0 -14
- package/api/components/schemas/TeamListActionDefinition.d.ts +0 -1
- package/api/components/schemas/TeamListActionDefinition.js +0 -14
- package/api/components/schemas/TeamMembersActionDefinition.d.ts +0 -1
- package/api/components/schemas/TeamsDefinition.d.ts +0 -2
- package/api/components/schemas/TeamsDefinition.js +0 -28
- package/api/components/schemas/UserCreateActionDefinition.d.ts +0 -1
- package/api/components/schemas/UserCreateActionDefinition.js +0 -33
- package/api/components/schemas/UserLoginActionDefinition.d.ts +0 -1
- package/api/components/schemas/UserLoginActionDefinition.js +0 -22
- package/api/components/schemas/UserLogoutActionDefinition.d.ts +0 -1
- package/api/components/schemas/UserPropertyDefinition.d.ts +0 -2
- package/api/components/schemas/UserQueryActionDefinition.d.ts +0 -1
- package/api/components/schemas/UserQueryActionDefinition.js +0 -20
- package/api/components/schemas/UserRegisterActionDefinition.d.ts +0 -1
- package/api/components/schemas/UserRegisterActionDefinition.js +0 -37
- package/api/components/schemas/UserRemoveActionDefinition.d.ts +0 -1
- package/api/components/schemas/UserRemoveActionDefinition.js +0 -20
- package/api/components/schemas/UserUpdateActionDefinition.d.ts +0 -1
- package/api/components/schemas/UserUpdateActionDefinition.js +0 -36
- package/api/components/schemas/UsersDefinition.d.ts +0 -2
- package/api/components/schemas/UsersDefinition.js +0 -17
- package/api/paths/appMessages.d.ts +0 -2
- package/api/paths/appMessages.js +0 -120
- package/api/paths/appOAuth2Secrets.d.ts +0 -2
- package/api/paths/appOAuth2Secrets.js +0 -161
- package/api/paths/appQuotas.d.ts +0 -2
- package/api/paths/appQuotas.js +0 -38
- package/api/paths/appSSLSecrets.d.ts +0 -2
- package/api/paths/appSSLSecrets.js +0 -39
- package/api/paths/appSamlSecrets.d.ts +0 -2
- package/api/paths/appSamlSecrets.js +0 -94
- package/api/paths/appScimEndpoints.d.ts +0 -2
- package/api/paths/appScimEndpoints.js +0 -260
- package/api/paths/appScimSecrets.d.ts +0 -2
- package/api/paths/appScimSecrets.js +0 -45
- package/api/paths/appServiceSecrets.d.ts +0 -2
- package/api/paths/appServiceSecrets.js +0 -94
- package/api/paths/appVariables.d.ts +0 -2
- package/api/paths/appVariables.js +0 -93
- package/api/paths/appsembleMessages.d.ts +0 -2
- package/api/paths/appsembleMessages.js +0 -48
- package/api/paths/assets.d.ts +0 -2
- package/api/paths/assets.js +0 -213
- package/api/paths/emails.d.ts +0 -2
- package/api/paths/emails.js +0 -167
- package/api/paths/invite.d.ts +0 -2
- package/api/paths/invite.js +0 -25
- package/api/paths/oauth2ClientCredentials.d.ts +0 -2
- package/api/paths/oauth2ClientCredentials.js +0 -77
- package/api/paths/oauth2Login.d.ts +0 -2
- package/api/paths/oauth2Login.js +0 -119
- package/api/paths/oauth2Provider.d.ts +0 -2
- package/api/paths/oauth2Provider.js +0 -75
- package/api/paths/resourceHistory.d.ts +0 -2
- package/api/paths/resourceHistory.js +0 -31
- package/api/paths/resources.d.ts +0 -2
- package/api/paths/resources.js +0 -395
- package/api/paths/saml.d.ts +0 -2
- package/api/paths/saml.js +0 -126
- package/api/paths/templates.d.ts +0 -2
- package/api/paths/templates.js +0 -96
- package/api/paths/user.d.ts +0 -2
- package/api/paths/user.js +0 -649
- package/api/tags/app.d.ts +0 -2
- package/api/tags/app.js +0 -5
- package/api/tags/appMember.d.ts +0 -2
- package/api/tags/appMember.js +0 -5
- package/api/tags/asset.d.ts +0 -2
- package/api/tags/asset.js +0 -5
- package/api/tags/auth.d.ts +0 -2
- package/api/tags/auth.js +0 -5
- package/api/tags/language.d.ts +0 -2
- package/api/tags/language.js +0 -5
- package/api/tags/organization.d.ts +0 -2
- package/api/tags/organization.js +0 -5
- package/api/tags/resource.d.ts +0 -2
- package/api/tags/resource.js +0 -5
- package/api/tags/template.d.ts +0 -2
- package/api/tags/template.js +0 -5
- package/api/tags/user.d.ts +0 -2
- package/api/tags/user.js +0 -5
- package/appSecurity.d.ts +0 -9
- package/appSecurity.js +0 -41
- package/appSecurity.test.d.ts +0 -1
- package/appSecurity.test.js +0 -114
- package/checkAppRole.d.ts +0 -11
- package/checkAppRole.js +0 -34
- package/constants/Permission.d.ts +0 -114
- package/constants/Permission.js +0 -116
- package/constants/roles.d.ts +0 -16
- package/constants/roles.js +0 -58
- /package/api/paths/{action.d.ts → blocks/versions/blockVersion.d.ts} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from './utils.js';
|
|
3
|
+
export const AppMemberPropertiesPatchActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'sub'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['app.member.properties.patch'],
|
|
10
|
+
description: `Allows the app member to patch the properties of another app member account.
|
|
11
|
+
|
|
12
|
+
Does nothing if the app member isn’t logged in.`,
|
|
13
|
+
},
|
|
14
|
+
sub: {
|
|
15
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
16
|
+
description: 'The new full name name of the app member.',
|
|
17
|
+
},
|
|
18
|
+
properties: {
|
|
19
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
20
|
+
description: `The updated custom properties for the app member.
|
|
21
|
+
|
|
22
|
+
Values will be validated based on \`members.properties\`, if defined in the app definition.`,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=AppMemberPropertiesPatchActionDefinition.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const AppMemberPropertyDefinition = {
|
|
2
2
|
anyOf: [
|
|
3
3
|
{
|
|
4
4
|
type: 'object',
|
|
5
|
-
description: 'Definition for
|
|
5
|
+
description: 'Definition for an app member custom property.',
|
|
6
6
|
required: ['schema'],
|
|
7
7
|
additionalProperties: false,
|
|
8
8
|
properties: {
|
|
@@ -19,7 +19,7 @@ export const UserPropertyDefinition = {
|
|
|
19
19
|
properties: {
|
|
20
20
|
resource: {
|
|
21
21
|
type: 'string',
|
|
22
|
-
description: 'The resource referenced by this
|
|
22
|
+
description: 'The resource referenced by this app member property.',
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
},
|
|
@@ -27,7 +27,7 @@ export const UserPropertyDefinition = {
|
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
type: 'object',
|
|
30
|
-
description: 'Definition for
|
|
30
|
+
description: 'Definition for an app member property.',
|
|
31
31
|
required: ['schema'],
|
|
32
32
|
additionalProperties: false,
|
|
33
33
|
properties: {
|
|
@@ -46,4 +46,4 @@ export const UserPropertyDefinition = {
|
|
|
46
46
|
},
|
|
47
47
|
],
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=
|
|
49
|
+
//# sourceMappingURL=AppMemberPropertyDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AppMemberQueryActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from './utils.js';
|
|
3
|
+
export const AppMemberQueryActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['app.member.query'],
|
|
10
|
+
description: `Allows the currently logged in app member to fetch a list of app members by their roles.
|
|
11
|
+
|
|
12
|
+
Does nothing if the app member isn’t logged in.`,
|
|
13
|
+
},
|
|
14
|
+
roles: {
|
|
15
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
16
|
+
description: 'The roles of the app members that would be fetched.',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=AppMemberQueryActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AppMemberRegisterActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from './utils.js';
|
|
3
|
+
export const AppMemberRegisterActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'email', 'password'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['app.member.register'],
|
|
10
|
+
description: `Allows the app member to register using an email address and a password.
|
|
11
|
+
|
|
12
|
+
Does nothing if the app member is already logged in.`,
|
|
13
|
+
},
|
|
14
|
+
password: {
|
|
15
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
16
|
+
description: 'The password to log in with.',
|
|
17
|
+
},
|
|
18
|
+
email: {
|
|
19
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
20
|
+
description: 'The email to log in with.',
|
|
21
|
+
},
|
|
22
|
+
name: {
|
|
23
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
24
|
+
description: 'The full name of the app member.',
|
|
25
|
+
},
|
|
26
|
+
picture: {
|
|
27
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
28
|
+
description: 'The image to use for the profile picture of the app member.',
|
|
29
|
+
},
|
|
30
|
+
properties: {
|
|
31
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
32
|
+
description: `The custom properties for the app member.
|
|
33
|
+
|
|
34
|
+
Values will be validated based on \`members.properties\`, if defined in the app definition.`,
|
|
35
|
+
},
|
|
36
|
+
login: {
|
|
37
|
+
type: 'boolean',
|
|
38
|
+
description: 'Whether to login after registering.',
|
|
39
|
+
default: true,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=AppMemberRegisterActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AppMemberRoleUpdateActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from './utils.js';
|
|
3
|
+
export const AppMemberRoleUpdateActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'sub'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['app.member.role.update'],
|
|
10
|
+
description: `Allows the app member to update the role of another app member account.
|
|
11
|
+
|
|
12
|
+
Does nothing if the app member isn’t logged in.`,
|
|
13
|
+
},
|
|
14
|
+
sub: {
|
|
15
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
16
|
+
description: 'The id of the app member.',
|
|
17
|
+
},
|
|
18
|
+
role: {
|
|
19
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
20
|
+
description: `The updated role of the app member.
|
|
21
|
+
|
|
22
|
+
The role must exist in the roles property of the app's security definition or in the predefined app roles in the system -
|
|
23
|
+
\`Member\`, \`MembersManager\`, \`GroupMembersManager\`, \`GroupsManager\`, \`ResourcesManager\` and \`Owner\``,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=AppMemberRoleUpdateActionDefinition.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const AppMembersDefinition = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
description: 'Definition for app member properties.',
|
|
4
|
+
required: [],
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
properties: {
|
|
7
|
+
properties: {
|
|
8
|
+
type: 'object',
|
|
9
|
+
description: 'The properties object configuring app members',
|
|
10
|
+
additionalProperties: {
|
|
11
|
+
description: 'A single app member property definition.',
|
|
12
|
+
$ref: '#/components/schemas/AppMemberPropertyDefinition',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=AppMembersDefinition.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const GroupMember = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
description: 'An object representing a member of a group',
|
|
4
|
+
additionalProperties: false,
|
|
5
|
+
properties: {
|
|
6
|
+
id: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
readOnly: true,
|
|
9
|
+
description: 'The id of the app member.',
|
|
10
|
+
},
|
|
11
|
+
role: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
description: 'The role of the app member within the group.',
|
|
14
|
+
},
|
|
15
|
+
name: { $ref: '#/components/schemas/AppMember/properties/name' },
|
|
16
|
+
email: { $ref: '#/components/schemas/AppMember/properties/email' },
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=GroupMember.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GroupMemberDeleteActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
2
|
import { extendJSONSchema } from './utils.js';
|
|
3
|
-
export const
|
|
3
|
+
export const GroupMemberDeleteActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
4
|
type: 'object',
|
|
5
5
|
additionalProperties: false,
|
|
6
6
|
required: ['type', 'id'],
|
|
7
7
|
properties: {
|
|
8
8
|
type: {
|
|
9
|
-
enum: ['
|
|
10
|
-
description:
|
|
9
|
+
enum: ['group.member.delete'],
|
|
10
|
+
description: 'Allow a user to join a group.',
|
|
11
11
|
},
|
|
12
12
|
id: {
|
|
13
|
-
description: 'The ID of a specific team to get the members from',
|
|
14
13
|
$ref: '#/components/schemas/RemapperDefinition',
|
|
14
|
+
description: 'The id of the group member to delete',
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
});
|
|
18
|
-
//# sourceMappingURL=
|
|
18
|
+
//# sourceMappingURL=GroupMemberDeleteActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GroupMemberInviteActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
2
|
import { extendJSONSchema } from './utils.js';
|
|
3
|
-
export const
|
|
3
|
+
export const GroupMemberInviteActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
4
|
type: 'object',
|
|
5
5
|
additionalProperties: false,
|
|
6
6
|
required: ['type'],
|
|
7
7
|
properties: {
|
|
8
8
|
type: {
|
|
9
|
-
enum: ['
|
|
10
|
-
description: 'Invite
|
|
9
|
+
enum: ['group.member.invite'],
|
|
10
|
+
description: 'Invite an app member to join a group.',
|
|
11
11
|
},
|
|
12
12
|
id: {
|
|
13
|
-
description: 'The ID of the
|
|
13
|
+
description: 'The ID of the group to invite the app member to.',
|
|
14
14
|
$ref: '#/components/schemas/RemapperDefinition',
|
|
15
15
|
},
|
|
16
16
|
email: {
|
|
@@ -20,8 +20,7 @@ export const TeamInviteActionDefinition = extendJSONSchema(BaseActionDefinition,
|
|
|
20
20
|
role: {
|
|
21
21
|
description: 'The role to invite the user as.',
|
|
22
22
|
$ref: '#/components/schemas/RemapperDefinition',
|
|
23
|
-
default: 'member',
|
|
24
23
|
},
|
|
25
24
|
},
|
|
26
25
|
});
|
|
27
|
-
//# sourceMappingURL=
|
|
26
|
+
//# sourceMappingURL=GroupMemberInviteActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GroupMemberQueryActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from './utils.js';
|
|
3
|
+
export const GroupMemberQueryActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'id'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['group.member.query'],
|
|
10
|
+
description: "Get a list of a group's members",
|
|
11
|
+
},
|
|
12
|
+
id: {
|
|
13
|
+
description: 'The ID of a specific group to get the members from',
|
|
14
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=GroupMemberQueryActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GroupMemberRoleUpdateActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from './utils.js';
|
|
3
|
+
export const GroupMemberRoleUpdateActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'id', 'role'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['group.member.role.update'],
|
|
10
|
+
description: 'Update the role of a group member.',
|
|
11
|
+
},
|
|
12
|
+
id: {
|
|
13
|
+
description: 'The id of the group member to update the role of.',
|
|
14
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
15
|
+
},
|
|
16
|
+
role: {
|
|
17
|
+
description: 'The new role of the group member.',
|
|
18
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=GroupMemberRoleUpdateActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GroupQueryActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
package/api/components/schemas/{UserLogoutActionDefinition.js → GroupQueryActionDefinition.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
2
|
import { extendJSONSchema } from './utils.js';
|
|
3
|
-
export const
|
|
3
|
+
export const GroupQueryActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
4
|
type: 'object',
|
|
5
5
|
additionalProperties: false,
|
|
6
6
|
required: ['type'],
|
|
7
7
|
properties: {
|
|
8
8
|
type: {
|
|
9
|
-
enum: ['
|
|
10
|
-
description: '
|
|
9
|
+
enum: ['group.query'],
|
|
10
|
+
description: 'Get a list of all of the groups in an app.',
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
});
|
|
14
|
-
//# sourceMappingURL=
|
|
14
|
+
//# sourceMappingURL=GroupQueryActionDefinition.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { predefinedOrganizationRoles } from '@appsemble/types';
|
|
2
2
|
export const OrganizationMember = {
|
|
3
3
|
type: 'object',
|
|
4
4
|
description: 'A member of an organization.',
|
|
@@ -17,7 +17,7 @@ export const OrganizationMember = {
|
|
|
17
17
|
description: 'The primary email address of the user.',
|
|
18
18
|
},
|
|
19
19
|
role: {
|
|
20
|
-
enum:
|
|
20
|
+
enum: predefinedOrganizationRoles,
|
|
21
21
|
},
|
|
22
22
|
properties: {
|
|
23
23
|
type: 'object',
|
|
@@ -13,6 +13,10 @@ export const ResourceCountActionDefinition = extendJSONSchema(RequestActionDefin
|
|
|
13
13
|
type: 'string',
|
|
14
14
|
description: 'The type of the resource to count.',
|
|
15
15
|
},
|
|
16
|
+
own: {
|
|
17
|
+
type: 'boolean',
|
|
18
|
+
description: 'If only the resources created by the authenticated app member should be included',
|
|
19
|
+
},
|
|
16
20
|
},
|
|
17
21
|
}, ['url']);
|
|
18
22
|
//# sourceMappingURL=ResourceCountActionDefinition.js.map
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
const roles = {
|
|
2
|
-
type: 'array',
|
|
3
|
-
description: `The list of roles that are allowed to use this action.
|
|
4
|
-
|
|
5
|
-
This will override the default roles that are assigned.
|
|
6
|
-
`,
|
|
7
|
-
items: {
|
|
8
|
-
type: 'string',
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
1
|
const query = {
|
|
12
2
|
type: 'object',
|
|
13
3
|
description: 'The query parameters to use in the request.',
|
|
@@ -92,11 +82,6 @@ name of the resource and how it should behave.
|
|
|
92
82
|
},
|
|
93
83
|
},
|
|
94
84
|
},
|
|
95
|
-
roles: {
|
|
96
|
-
type: 'array',
|
|
97
|
-
description: 'The default roles that are allowed to perform all actions.',
|
|
98
|
-
items: { type: 'string' },
|
|
99
|
-
},
|
|
100
85
|
url: {
|
|
101
86
|
type: 'string',
|
|
102
87
|
default: '/api/apps/{appId}/{resource}',
|
|
@@ -123,7 +108,6 @@ name of the resource and how it should behave.
|
|
|
123
108
|
description: "Overrides for 'query' requests.",
|
|
124
109
|
additionalProperties: false,
|
|
125
110
|
properties: {
|
|
126
|
-
roles,
|
|
127
111
|
query,
|
|
128
112
|
method: {
|
|
129
113
|
type: 'string',
|
|
@@ -142,7 +126,6 @@ name of the resource and how it should behave.
|
|
|
142
126
|
description: "Overrides for 'get' requests.",
|
|
143
127
|
additionalProperties: false,
|
|
144
128
|
properties: {
|
|
145
|
-
roles,
|
|
146
129
|
query,
|
|
147
130
|
method: {
|
|
148
131
|
type: 'string',
|
|
@@ -161,7 +144,6 @@ name of the resource and how it should behave.
|
|
|
161
144
|
description: "Overrides for 'count' requests.",
|
|
162
145
|
additionalProperties: false,
|
|
163
146
|
properties: {
|
|
164
|
-
roles,
|
|
165
147
|
query,
|
|
166
148
|
method: {
|
|
167
149
|
type: 'string',
|
|
@@ -180,7 +162,6 @@ name of the resource and how it should behave.
|
|
|
180
162
|
description: "Overrides for 'create' requests.",
|
|
181
163
|
additionalProperties: false,
|
|
182
164
|
properties: {
|
|
183
|
-
roles,
|
|
184
165
|
query,
|
|
185
166
|
method: {
|
|
186
167
|
type: 'string',
|
|
@@ -202,7 +183,6 @@ name of the resource and how it should behave.
|
|
|
202
183
|
description: "Overrides for 'patch' requests.",
|
|
203
184
|
additionalProperties: false,
|
|
204
185
|
properties: {
|
|
205
|
-
roles,
|
|
206
186
|
query,
|
|
207
187
|
method: {
|
|
208
188
|
type: 'string',
|
|
@@ -224,7 +204,6 @@ name of the resource and how it should behave.
|
|
|
224
204
|
description: "Overrides for 'update' requests.",
|
|
225
205
|
additionalProperties: false,
|
|
226
206
|
properties: {
|
|
227
|
-
roles,
|
|
228
207
|
query,
|
|
229
208
|
method: {
|
|
230
209
|
type: 'string',
|
|
@@ -246,7 +225,6 @@ name of the resource and how it should behave.
|
|
|
246
225
|
description: "Overrides for 'delete' requests.",
|
|
247
226
|
additionalProperties: false,
|
|
248
227
|
properties: {
|
|
249
|
-
roles,
|
|
250
228
|
query,
|
|
251
229
|
method: {
|
|
252
230
|
type: 'string',
|
|
@@ -17,6 +17,10 @@ export const ResourceQueryActionDefinition = extendJSONSchema(RequestActionDefin
|
|
|
17
17
|
type: 'string',
|
|
18
18
|
description: 'The view to use for the resource.',
|
|
19
19
|
},
|
|
20
|
+
own: {
|
|
21
|
+
type: 'boolean',
|
|
22
|
+
description: 'If only the resources created by the authenticated app member should be included',
|
|
23
|
+
},
|
|
20
24
|
},
|
|
21
25
|
}, ['url']);
|
|
22
26
|
//# sourceMappingURL=ResourceQueryActionDefinition.js.map
|
|
@@ -12,7 +12,7 @@ export const SecurityDefaultDefinition = {
|
|
|
12
12
|
The following values are allowed:
|
|
13
13
|
- \`everyone\`: Every authenticated user gets the default role.
|
|
14
14
|
- \`organization\`: Every authenticated user gets the default role if they are in the same organization as the app.
|
|
15
|
-
- \`invite\`: The
|
|
15
|
+
- \`invite\`: The app member has to be invited to the app with a specific role.
|
|
16
16
|
|
|
17
17
|
> **Important**: When [OAuth2](../guides/oauth2) or [SAML2.0](../guides/saml) is used in the
|
|
18
18
|
> app, you must set the policy to \`everyone\`. This will specifically allow every configured
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
export const SecurityDefinition = {
|
|
2
2
|
type: 'object',
|
|
3
3
|
description: 'This describes how the app is secured.',
|
|
4
|
-
required: ['default', 'roles'],
|
|
5
4
|
additionalProperties: false,
|
|
6
5
|
properties: {
|
|
7
6
|
default: { $ref: '#/components/schemas/SecurityDefaultDefinition' },
|
|
7
|
+
guest: { $ref: '#/components/schemas/SecurityGuestDefinition' },
|
|
8
8
|
roles: {
|
|
9
9
|
type: 'object',
|
|
10
|
-
description: 'This property defines the
|
|
10
|
+
description: 'This property defines the app roles that are available within the app.',
|
|
11
11
|
minProperties: 1,
|
|
12
12
|
additionalProperties: { $ref: '#/components/schemas/SecurityRoleDefinition' },
|
|
13
13
|
},
|
|
14
|
-
teams: {
|
|
15
|
-
$ref: '#/components/schemas/TeamsDefinition',
|
|
16
|
-
description: 'Define how teams are handled by the app.',
|
|
17
|
-
},
|
|
18
14
|
},
|
|
19
15
|
};
|
|
20
16
|
//# sourceMappingURL=SecurityDefinition.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const SecurityGuestDefinition = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
description: 'This describes the permissions that unauthenticated users have.',
|
|
4
|
+
additionalProperties: false,
|
|
5
|
+
properties: {
|
|
6
|
+
inherits: {
|
|
7
|
+
type: 'array',
|
|
8
|
+
minItems: 1,
|
|
9
|
+
description: `The name of the role to inherit from.
|
|
10
|
+
|
|
11
|
+
Note that this role must exist.
|
|
12
|
+
`,
|
|
13
|
+
items: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
permissions: {
|
|
18
|
+
type: 'array',
|
|
19
|
+
description: 'Specific permissions within the app, which unauthenticated users should have',
|
|
20
|
+
items: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=SecurityGuestDefinition.js.map
|
|
@@ -23,6 +23,13 @@ of the referenced role.
|
|
|
23
23
|
type: 'string',
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
|
+
permissions: {
|
|
27
|
+
type: 'array',
|
|
28
|
+
description: 'Specific permissions within the app, which this role should have',
|
|
29
|
+
items: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
26
33
|
},
|
|
27
34
|
};
|
|
28
35
|
//# sourceMappingURL=SecurityRoleDefinition.js.map
|
|
@@ -1,32 +1,12 @@
|
|
|
1
1
|
export const User = {
|
|
2
2
|
type: 'object',
|
|
3
|
-
description: 'An object representing a user
|
|
3
|
+
description: 'An object representing a user',
|
|
4
4
|
additionalProperties: false,
|
|
5
5
|
properties: {
|
|
6
6
|
id: {
|
|
7
7
|
type: 'string',
|
|
8
8
|
readOnly: true,
|
|
9
|
-
description: 'The
|
|
10
|
-
},
|
|
11
|
-
name: {
|
|
12
|
-
type: 'string',
|
|
13
|
-
description: 'The display name of the user.',
|
|
14
|
-
},
|
|
15
|
-
email: {
|
|
16
|
-
type: 'string',
|
|
17
|
-
description: 'The primary email used for communication.',
|
|
18
|
-
},
|
|
19
|
-
locale: {
|
|
20
|
-
type: 'string',
|
|
21
|
-
description: 'The locale of the user.',
|
|
22
|
-
},
|
|
23
|
-
timezone: {
|
|
24
|
-
enum: Intl.supportedValuesOf('timeZone'),
|
|
25
|
-
description: 'The time zone of the user.',
|
|
26
|
-
},
|
|
27
|
-
subscribed: {
|
|
28
|
-
type: 'boolean',
|
|
29
|
-
description: 'If the user is subscribed to the newsletter.',
|
|
9
|
+
description: 'The id of the user.',
|
|
30
10
|
},
|
|
31
11
|
},
|
|
32
12
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export const UserInfo = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
description: 'An object representing the OAuth2 info of a user',
|
|
4
|
+
additionalProperties: false,
|
|
5
|
+
properties: {
|
|
6
|
+
sub: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
readOnly: true,
|
|
9
|
+
description: 'The id of the user.',
|
|
10
|
+
},
|
|
11
|
+
name: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
description: 'The full name of the user.',
|
|
14
|
+
},
|
|
15
|
+
email: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
description: 'The email of the user.',
|
|
18
|
+
},
|
|
19
|
+
email_verified: {
|
|
20
|
+
type: 'boolean',
|
|
21
|
+
description: 'Whether this email address has been verified.',
|
|
22
|
+
},
|
|
23
|
+
picture: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
format: 'url',
|
|
26
|
+
description: 'The URL of the profile picture of the user.',
|
|
27
|
+
},
|
|
28
|
+
locale: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
description: 'The locale of the user.',
|
|
31
|
+
},
|
|
32
|
+
timezone: {
|
|
33
|
+
enum: Intl.supportedValuesOf('timeZone'),
|
|
34
|
+
description: 'The time zone of the user.',
|
|
35
|
+
},
|
|
36
|
+
subscribed: {
|
|
37
|
+
type: 'boolean',
|
|
38
|
+
description: 'If the user is subscribed to the newsletter.',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=UserInfo.js.map
|