@appsemble/utils 0.29.10 → 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
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble Utilities
|
|
2
2
|
|
|
3
3
|
> Internal utility functions used across multiple Appsemble projects.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/utils)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.30.1)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -26,5 +26,5 @@ not guaranteed.
|
|
|
26
26
|
|
|
27
27
|
## License
|
|
28
28
|
|
|
29
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.
|
|
29
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.30.1/LICENSE.md) ©
|
|
30
30
|
[Appsemble](https://appsemble.com)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const appMemberId = {
|
|
2
|
+
name: 'memberId',
|
|
3
|
+
in: 'path',
|
|
4
|
+
description: 'The id of the app member on which to perform an operation',
|
|
5
|
+
required: true,
|
|
6
|
+
schema: { $ref: '#/components/schemas/AppMember/properties/id' },
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=appMemberId.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const groupMemberId = {
|
|
2
|
+
name: 'groupMemberId',
|
|
3
|
+
in: 'path',
|
|
4
|
+
description: 'The id of the group member on which to perform an operation',
|
|
5
|
+
required: true,
|
|
6
|
+
schema: { $ref: '#/components/schemas/AppMember/properties/id' },
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=groupMemberId.js.map
|
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
export * from './$filter.js';
|
|
2
|
-
export * from './$orderby.js';
|
|
3
|
-
export * from './$select.js';
|
|
4
|
-
export * from './$team.js';
|
|
5
|
-
export * from './$top.js';
|
|
6
|
-
export * from './$skip.js';
|
|
7
1
|
export * from './appId.js';
|
|
8
2
|
export * from './appOAuth2SecretId.js';
|
|
9
3
|
export * from './appSamlSecretId.js';
|
|
4
|
+
export * from './appVariableId.js';
|
|
10
5
|
export * from './assetId.js';
|
|
11
6
|
export * from './blockId.js';
|
|
12
7
|
export * from './blockVersion.js';
|
|
13
|
-
export * from './endpoint.js';
|
|
14
8
|
export * from './language.js';
|
|
9
|
+
export * from './appMemberId.js';
|
|
10
|
+
export * from './groupMemberId.js';
|
|
15
11
|
export * from './organizationId.js';
|
|
12
|
+
export * from './readmeId.js';
|
|
16
13
|
export * from './resourceId.js';
|
|
17
14
|
export * from './resourceType.js';
|
|
18
15
|
export * from './screenshotId.js';
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './appServiceId.js';
|
|
21
|
-
export * from './appVariableId.js';
|
|
22
|
-
export * from './view.js';
|
|
23
|
-
export * from './trainingId.js';
|
|
16
|
+
export * from './serviceSecretId.js';
|
|
24
17
|
export * from './trainingBlockId.js';
|
|
25
|
-
export * from './
|
|
18
|
+
export * from './trainingId.js';
|
|
19
|
+
export * from './$filter.js';
|
|
20
|
+
export * from './$orderby.js';
|
|
21
|
+
export * from './$select.js';
|
|
22
|
+
export * from './$skip.js';
|
|
23
|
+
export * from './$top.js';
|
|
24
|
+
export * from './$own.js';
|
|
25
|
+
export * from './endpoint.js';
|
|
26
|
+
export * from './groupId.js';
|
|
26
27
|
export * from './roles.js';
|
|
28
|
+
export * from './view.js';
|
|
29
|
+
export * from './seed.js';
|
|
30
|
+
export * from './selectedGroupId.js';
|
|
@@ -1,27 +1,31 @@
|
|
|
1
|
-
export * from './$filter.js';
|
|
2
|
-
export * from './$orderby.js';
|
|
3
|
-
export * from './$select.js';
|
|
4
|
-
export * from './$team.js';
|
|
5
|
-
export * from './$top.js';
|
|
6
|
-
export * from './$skip.js';
|
|
7
1
|
export * from './appId.js';
|
|
8
2
|
export * from './appOAuth2SecretId.js';
|
|
9
3
|
export * from './appSamlSecretId.js';
|
|
4
|
+
export * from './appVariableId.js';
|
|
10
5
|
export * from './assetId.js';
|
|
11
6
|
export * from './blockId.js';
|
|
12
7
|
export * from './blockVersion.js';
|
|
13
|
-
export * from './endpoint.js';
|
|
14
8
|
export * from './language.js';
|
|
9
|
+
export * from './appMemberId.js';
|
|
10
|
+
export * from './groupMemberId.js';
|
|
15
11
|
export * from './organizationId.js';
|
|
12
|
+
export * from './readmeId.js';
|
|
16
13
|
export * from './resourceId.js';
|
|
17
14
|
export * from './resourceType.js';
|
|
18
15
|
export * from './screenshotId.js';
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './appServiceId.js';
|
|
21
|
-
export * from './appVariableId.js';
|
|
22
|
-
export * from './view.js';
|
|
23
|
-
export * from './trainingId.js';
|
|
16
|
+
export * from './serviceSecretId.js';
|
|
24
17
|
export * from './trainingBlockId.js';
|
|
25
|
-
export * from './
|
|
18
|
+
export * from './trainingId.js';
|
|
19
|
+
export * from './$filter.js';
|
|
20
|
+
export * from './$orderby.js';
|
|
21
|
+
export * from './$select.js';
|
|
22
|
+
export * from './$skip.js';
|
|
23
|
+
export * from './$top.js';
|
|
24
|
+
export * from './$own.js';
|
|
25
|
+
export * from './endpoint.js';
|
|
26
|
+
export * from './groupId.js';
|
|
26
27
|
export * from './roles.js';
|
|
28
|
+
export * from './view.js';
|
|
29
|
+
export * from './seed.js';
|
|
30
|
+
export * from './selectedGroupId.js';
|
|
27
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const organizationId: {
|
|
2
|
+
name: string;
|
|
3
|
+
required: boolean;
|
|
4
|
+
in: string;
|
|
5
|
+
description: string;
|
|
6
|
+
schema: {
|
|
7
|
+
$ref: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const organizationId = {
|
|
2
2
|
name: 'organizationId',
|
|
3
|
+
required: true,
|
|
3
4
|
in: 'path',
|
|
4
5
|
description: 'The ID of the organization on which to perform an operation',
|
|
5
|
-
required: true,
|
|
6
6
|
schema: { $ref: '#/components/schemas/Organization/properties/id' },
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=organizationId.js.map
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
export const roles = {
|
|
2
2
|
name: 'roles',
|
|
3
3
|
in: 'query',
|
|
4
|
-
description: 'The roles of
|
|
5
|
-
required: true,
|
|
4
|
+
description: 'The roles of app members on which to perform an operation',
|
|
6
5
|
schema: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
oneOf: [
|
|
7
|
+
{
|
|
8
|
+
type: 'array',
|
|
9
|
+
items: {
|
|
10
|
+
$ref: '#/components/schemas/AppMember/properties/role',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
],
|
|
11
17
|
},
|
|
12
18
|
};
|
|
13
19
|
//# sourceMappingURL=roles.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export const
|
|
2
|
-
name: '
|
|
1
|
+
export const serviceSecretId = {
|
|
2
|
+
name: 'serviceSecretId',
|
|
3
3
|
in: 'path',
|
|
4
4
|
description: 'The id of the app service secret on which to perform an operation',
|
|
5
5
|
required: true,
|
|
6
6
|
schema: { type: 'string' },
|
|
7
7
|
};
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=serviceSecretId.js.map
|
|
@@ -5,14 +5,10 @@ export const oauth2Consent = {
|
|
|
5
5
|
'application/json': {
|
|
6
6
|
schema: {
|
|
7
7
|
type: 'object',
|
|
8
|
-
required: ['
|
|
8
|
+
required: ['redirectUri', 'scope'],
|
|
9
9
|
description: 'A representation of a user’s OAuth2 consent when logging in to an app.',
|
|
10
10
|
additionalProperties: false,
|
|
11
11
|
properties: {
|
|
12
|
-
appId: {
|
|
13
|
-
type: 'number',
|
|
14
|
-
description: 'The app ID to manage the OAuth2 consent for',
|
|
15
|
-
},
|
|
16
12
|
redirectUri: {
|
|
17
13
|
type: 'string',
|
|
18
14
|
format: 'uri',
|
|
@@ -68,18 +68,21 @@ export const ActionDefinition = {
|
|
|
68
68
|
{ $ref: '#/components/schemas/StorageWriteActionDefinition' },
|
|
69
69
|
{ $ref: '#/components/schemas/StorageUpdateActionDefinition' },
|
|
70
70
|
{ $ref: '#/components/schemas/StorageDeleteActionDefinition' },
|
|
71
|
-
{ $ref: '#/components/schemas/
|
|
72
|
-
{ $ref: '#/components/schemas/
|
|
73
|
-
{ $ref: '#/components/schemas/
|
|
74
|
-
{ $ref: '#/components/schemas/
|
|
71
|
+
{ $ref: '#/components/schemas/GroupMemberInviteActionDefinition' },
|
|
72
|
+
{ $ref: '#/components/schemas/GroupMemberQueryActionDefinition' },
|
|
73
|
+
{ $ref: '#/components/schemas/GroupMemberDeleteActionDefinition' },
|
|
74
|
+
{ $ref: '#/components/schemas/GroupMemberRoleUpdateActionDefinition' },
|
|
75
|
+
{ $ref: '#/components/schemas/GroupQueryActionDefinition' },
|
|
75
76
|
{ $ref: '#/components/schemas/ThrowActionDefinition' },
|
|
76
|
-
{ $ref: '#/components/schemas/
|
|
77
|
-
{ $ref: '#/components/schemas/
|
|
78
|
-
{ $ref: '#/components/schemas/
|
|
79
|
-
{ $ref: '#/components/schemas/
|
|
80
|
-
{ $ref: '#/components/schemas/
|
|
81
|
-
{ $ref: '#/components/schemas/
|
|
82
|
-
{ $ref: '#/components/schemas/
|
|
77
|
+
{ $ref: '#/components/schemas/AppMemberLoginActionDefinition' },
|
|
78
|
+
{ $ref: '#/components/schemas/AppMemberLogoutActionDefinition' },
|
|
79
|
+
{ $ref: '#/components/schemas/AppMemberRegisterActionDefinition' },
|
|
80
|
+
{ $ref: '#/components/schemas/AppMemberInviteActionDefinition' },
|
|
81
|
+
{ $ref: '#/components/schemas/AppMemberRoleUpdateActionDefinition' },
|
|
82
|
+
{ $ref: '#/components/schemas/AppMemberCurrentPatchActionDefinition' },
|
|
83
|
+
{ $ref: '#/components/schemas/AppMemberPropertiesPatchActionDefinition' },
|
|
84
|
+
{ $ref: '#/components/schemas/AppMemberQueryActionDefinition' },
|
|
85
|
+
{ $ref: '#/components/schemas/AppMemberDeleteActionDefinition' },
|
|
83
86
|
],
|
|
84
87
|
},
|
|
85
88
|
],
|
|
@@ -1,38 +1,21 @@
|
|
|
1
1
|
export const AppAccount = {
|
|
2
2
|
type: 'object',
|
|
3
|
-
description: 'An
|
|
3
|
+
description: 'An object representing a member of an app',
|
|
4
4
|
additionalProperties: false,
|
|
5
5
|
properties: {
|
|
6
|
-
name: {
|
|
7
|
-
type: 'string',
|
|
8
|
-
description: 'The name as it is available in the app.',
|
|
9
|
-
},
|
|
10
|
-
email: {
|
|
11
|
-
type: 'string',
|
|
12
|
-
format: 'email',
|
|
13
|
-
description: 'The email address as it is available in the app.',
|
|
14
|
-
},
|
|
15
|
-
email_verified: {
|
|
16
|
-
type: 'boolean',
|
|
17
|
-
description: 'Whether this email address has been verified.',
|
|
18
|
-
},
|
|
19
|
-
role: {
|
|
20
|
-
type: 'string',
|
|
21
|
-
description: 'The role of the user within the app',
|
|
22
|
-
},
|
|
23
6
|
app: {
|
|
24
|
-
$ref: '#/components/schemas/
|
|
7
|
+
$ref: '#/components/schemas/App',
|
|
8
|
+
description: 'The app this account is for.',
|
|
9
|
+
},
|
|
10
|
+
appMemberInfo: {
|
|
11
|
+
$ref: '#/components/schemas/AppMemberInfo',
|
|
12
|
+
description: 'The app member info.',
|
|
25
13
|
},
|
|
26
14
|
sso: {
|
|
27
15
|
type: 'array',
|
|
28
16
|
description: 'The single sign on configurations which link the user to an external account.',
|
|
29
17
|
items: { $ref: '#/components/schemas/SSOConfiguration' },
|
|
30
18
|
},
|
|
31
|
-
avatar: {
|
|
32
|
-
type: 'string',
|
|
33
|
-
format: 'url',
|
|
34
|
-
description: 'The URL of the avatar of the member.',
|
|
35
|
-
},
|
|
36
19
|
},
|
|
37
20
|
};
|
|
38
21
|
//# sourceMappingURL=AppAccount.js.map
|
|
@@ -14,18 +14,6 @@ export const AppDefinition = {
|
|
|
14
14
|
This will be displayed for example on the home screen or in the browser tab.
|
|
15
15
|
`,
|
|
16
16
|
},
|
|
17
|
-
roles: {
|
|
18
|
-
type: 'array',
|
|
19
|
-
description: `The list of roles that are allowed to view this app.
|
|
20
|
-
|
|
21
|
-
This list is used as the default roles for the roles property on pages and blocks, which can be
|
|
22
|
-
overridden by defining them for a specific page or block. Note that these roles must be defined in
|
|
23
|
-
\`security.roles\`.
|
|
24
|
-
`,
|
|
25
|
-
items: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
17
|
description: {
|
|
30
18
|
type: 'string',
|
|
31
19
|
maxLength: 80,
|
|
@@ -68,8 +56,8 @@ This **must** match the name of a page defined for the app.
|
|
|
68
56
|
controller: {
|
|
69
57
|
$ref: '#/components/schemas/ControllerDefinition',
|
|
70
58
|
},
|
|
71
|
-
|
|
72
|
-
$ref: '#/components/schemas/
|
|
59
|
+
members: {
|
|
60
|
+
$ref: '#/components/schemas/AppMembersDefinition',
|
|
73
61
|
},
|
|
74
62
|
resources: {
|
|
75
63
|
type: 'object',
|
|
@@ -84,7 +72,7 @@ The most basic resource has a \`schema\` property and defines the minimal securi
|
|
|
84
72
|
},
|
|
85
73
|
security: {
|
|
86
74
|
$ref: '#/components/schemas/SecurityDefinition',
|
|
87
|
-
description: 'Role definitions that may be used by the app.',
|
|
75
|
+
description: 'Role and guest definitions that may be used by the app.',
|
|
88
76
|
},
|
|
89
77
|
pages: {
|
|
90
78
|
type: 'array',
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const AppMember = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
description: 'An object representing a member of an app',
|
|
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 app.',
|
|
14
|
+
},
|
|
15
|
+
name: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
description: 'The full name of the app member.',
|
|
18
|
+
},
|
|
19
|
+
email: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
format: 'email',
|
|
22
|
+
description: 'The email address of the app member.',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=AppMember.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AppMemberCurrentPatchActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from './utils.js';
|
|
3
|
+
export const AppMemberCurrentPatchActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['app.member.current.patch'],
|
|
10
|
+
description: `Allows the app member to patch their own app member account.
|
|
11
|
+
|
|
12
|
+
Does nothing if the app member isn’t logged in.`,
|
|
13
|
+
},
|
|
14
|
+
name: {
|
|
15
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
16
|
+
description: 'The new full 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
|
+
picture: {
|
|
25
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
26
|
+
description: 'The picture for the patched app member',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=AppMemberCurrentPatchActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AppMemberDeleteActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from './utils.js';
|
|
3
|
+
export const AppMemberDeleteActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'sub'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['app.member.delete'],
|
|
10
|
+
description: `Allows the app member to delete another app member.
|
|
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 to be deleted.',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=AppMemberDeleteActionDefinition.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export const AppMemberInfo = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
description: 'An object representing the OAuth2 info of a member of an app',
|
|
4
|
+
additionalProperties: false,
|
|
5
|
+
properties: {
|
|
6
|
+
sub: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
readOnly: true,
|
|
9
|
+
description: 'The id of the app member.',
|
|
10
|
+
},
|
|
11
|
+
name: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
description: 'The full name of the app member.',
|
|
14
|
+
},
|
|
15
|
+
email: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
format: 'email',
|
|
18
|
+
description: 'The email address of the app member.',
|
|
19
|
+
},
|
|
20
|
+
email_verified: {
|
|
21
|
+
type: 'boolean',
|
|
22
|
+
description: 'Whether this email address has been verified.',
|
|
23
|
+
},
|
|
24
|
+
picture: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
format: 'url',
|
|
27
|
+
description: 'The URL of the profile picture of the app member.',
|
|
28
|
+
},
|
|
29
|
+
locale: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'The locale of the app member.',
|
|
32
|
+
},
|
|
33
|
+
zoneinfo: {
|
|
34
|
+
enum: Intl.supportedValuesOf('timeZone'),
|
|
35
|
+
description: 'The time zone of the app member.',
|
|
36
|
+
},
|
|
37
|
+
role: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
description: 'The role of the app member within the app',
|
|
40
|
+
},
|
|
41
|
+
properties: {
|
|
42
|
+
type: 'object',
|
|
43
|
+
description: 'The custom properties of the app member.',
|
|
44
|
+
additionalProperties: true,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=AppMemberInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AppMemberInviteActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from './utils.js';
|
|
3
|
+
export const AppMemberInviteActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'email', 'role'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['app.member.invite'],
|
|
10
|
+
description: `Allows the app member to invite another app member using an email address and a role.
|
|
11
|
+
|
|
12
|
+
Does nothing if the app member is not logged in.`,
|
|
13
|
+
},
|
|
14
|
+
email: {
|
|
15
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
16
|
+
description: 'The email to invite.',
|
|
17
|
+
},
|
|
18
|
+
role: {
|
|
19
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
20
|
+
description: 'The role of the invited app member.',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=AppMemberInviteActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AppMemberLoginActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from './utils.js';
|
|
3
|
+
export const AppMemberLoginActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['app.member.login'],
|
|
10
|
+
description: `Allows the app member to login 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
|
+
},
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=AppMemberLoginActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AppMemberLogoutActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from './utils.js';
|
|
3
|
+
export const AppMemberLogoutActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['app.member.logout'],
|
|
10
|
+
description: 'Allow the app members to log out of the application.',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=AppMemberLogoutActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AppMemberPropertiesPatchActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|