@appsemble/utils 0.29.11 → 0.30.2
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/BasePageDefinition.js +4 -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/PageActionsDefinition.d.ts +2 -0
- package/api/components/schemas/{TabsPageActionsDefinition.js → PageActionsDefinition.js} +2 -2
- package/api/components/schemas/PageDefinition.js +3 -0
- 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/TabsPageDefinition.js +1 -1
- 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 +23 -16
- package/api/components/schemas/index.js +23 -16
- 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 +42 -14
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +2 -2
- package/reference-schemas/remappers/arrays.js +31 -0
- package/reference-schemas/remappers/data.js +23 -38
- package/reference-schemas/remappers/unsorted.js +18 -0
- package/remap.d.ts +3 -7
- package/remap.js +24 -2
- package/remap.test.js +79 -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/TabsPageActionsDefinition.d.ts +0 -2
- 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/api/paths/apps.js
CHANGED
|
@@ -1,1567 +1,144 @@
|
|
|
1
|
-
import { hexColor
|
|
2
|
-
export const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
operationId: 'createApp',
|
|
8
|
-
parameters: [
|
|
9
|
-
{
|
|
10
|
-
in: 'query',
|
|
11
|
-
name: 'dryRun',
|
|
12
|
-
description: 'Validate whether an app could be created without actually creating one. Must be set to ‘true’.',
|
|
13
|
-
schema: { type: 'string' },
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
requestBody: {
|
|
17
|
-
content: {
|
|
18
|
-
'multipart/form-data': {
|
|
19
|
-
schema: {
|
|
20
|
-
type: 'object',
|
|
21
|
-
required: ['OrganizationId', 'yaml'],
|
|
22
|
-
properties: {
|
|
23
|
-
domain: {
|
|
24
|
-
$ref: '#/components/schemas/App/properties/domain',
|
|
25
|
-
},
|
|
26
|
-
path: {
|
|
27
|
-
$ref: '#/components/schemas/App/properties/path',
|
|
28
|
-
},
|
|
29
|
-
visibility: {
|
|
30
|
-
$ref: '#/components/schemas/App/properties/visibility',
|
|
31
|
-
},
|
|
32
|
-
template: {
|
|
33
|
-
$ref: '#/components/schemas/App/properties/template',
|
|
34
|
-
},
|
|
35
|
-
demoMode: {
|
|
36
|
-
$ref: '#/components/schemas/App/properties/demoMode',
|
|
37
|
-
},
|
|
38
|
-
yaml: {
|
|
39
|
-
type: 'string',
|
|
40
|
-
description: 'The original YAML definition used to define the app.',
|
|
41
|
-
},
|
|
42
|
-
OrganizationId: {
|
|
43
|
-
$ref: '#/components/schemas/Organization/properties/id',
|
|
44
|
-
},
|
|
45
|
-
icon: {
|
|
46
|
-
type: 'string',
|
|
47
|
-
format: 'binary',
|
|
48
|
-
description: 'The app icon.',
|
|
49
|
-
},
|
|
50
|
-
maskableIcon: {
|
|
51
|
-
type: 'string',
|
|
52
|
-
format: 'binary',
|
|
53
|
-
description: 'The app icon.',
|
|
54
|
-
},
|
|
55
|
-
iconBackground: {
|
|
56
|
-
type: 'string',
|
|
57
|
-
pattern: hexColor.source,
|
|
58
|
-
description: 'The background color to use for the maskable icon.',
|
|
59
|
-
},
|
|
60
|
-
coreStyle: {
|
|
61
|
-
type: 'string',
|
|
62
|
-
description: 'The custom style to apply to the core app.',
|
|
63
|
-
},
|
|
64
|
-
sharedStyle: {
|
|
65
|
-
type: 'string',
|
|
66
|
-
description: 'The custom style to apply to all parts of app.',
|
|
67
|
-
},
|
|
68
|
-
screenshots: {
|
|
69
|
-
type: 'array',
|
|
70
|
-
description: 'Screenshots to showcase in the store',
|
|
71
|
-
items: {
|
|
72
|
-
type: 'string',
|
|
73
|
-
format: 'binary',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
readmes: {
|
|
77
|
-
type: 'array',
|
|
78
|
-
description: 'Readmes to showcase in the store',
|
|
79
|
-
items: {
|
|
80
|
-
type: 'string',
|
|
81
|
-
format: 'binary',
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
controllerCode: {
|
|
85
|
-
type: 'string',
|
|
86
|
-
description: 'Custom app logic as a JavaScript string',
|
|
87
|
-
},
|
|
88
|
-
controllerImplementations: {
|
|
89
|
-
type: 'string',
|
|
90
|
-
description: 'Appsemble SDK interfaces implementations',
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
encoding: {
|
|
95
|
-
coreStyle: { contentType: 'text/css' },
|
|
96
|
-
sharedStyle: { contentType: 'text/css' },
|
|
97
|
-
icon: {
|
|
98
|
-
contentType: 'image/png,image/jpeg,image/tiff,image/webp',
|
|
99
|
-
},
|
|
100
|
-
screenshots: {
|
|
101
|
-
contentType: 'image/png,image/jpeg,image/tiff,image/webp',
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
responses: {
|
|
108
|
-
201: {
|
|
109
|
-
description: 'The app that was created.',
|
|
110
|
-
$ref: '#/components/responses/app',
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
security: [{ studio: [] }, { cli: ['apps:write'] }],
|
|
114
|
-
},
|
|
115
|
-
get: {
|
|
116
|
-
tags: ['app'],
|
|
117
|
-
parameters: [
|
|
118
|
-
{
|
|
119
|
-
name: 'language',
|
|
120
|
-
schema: { type: 'string' },
|
|
121
|
-
description: 'The language to include the translations of, if available',
|
|
122
|
-
in: 'query',
|
|
123
|
-
},
|
|
124
|
-
],
|
|
125
|
-
description: 'Get all existing apps.',
|
|
126
|
-
operationId: 'queryApps',
|
|
127
|
-
responses: {
|
|
128
|
-
200: {
|
|
129
|
-
description: 'The list of all apps.',
|
|
130
|
-
content: {
|
|
131
|
-
'application/json': {
|
|
132
|
-
schema: {
|
|
133
|
-
type: 'array',
|
|
134
|
-
items: {
|
|
135
|
-
$ref: '#/components/schemas/App',
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
security: [{ studio: [] }, {}],
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
'/api/apps/{appId}': {
|
|
146
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
147
|
-
get: {
|
|
148
|
-
tags: ['app'],
|
|
149
|
-
parameters: [
|
|
150
|
-
{
|
|
151
|
-
name: 'language',
|
|
152
|
-
schema: { type: 'string' },
|
|
153
|
-
description: 'The language to include the translations of, if available',
|
|
154
|
-
in: 'query',
|
|
155
|
-
},
|
|
156
|
-
],
|
|
157
|
-
description: 'Get a single app',
|
|
158
|
-
operationId: 'getAppById',
|
|
159
|
-
responses: {
|
|
160
|
-
200: {
|
|
161
|
-
description: 'The app that matches the given id.',
|
|
162
|
-
$ref: '#/components/responses/app',
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
security: [{ studio: [] }, {}],
|
|
166
|
-
},
|
|
167
|
-
patch: {
|
|
168
|
-
tags: ['app'],
|
|
169
|
-
description: 'Update parts of an existing app',
|
|
170
|
-
operationId: 'patchApp',
|
|
171
|
-
requestBody: {
|
|
172
|
-
content: {
|
|
173
|
-
'multipart/form-data': {
|
|
174
|
-
schema: {
|
|
175
|
-
type: 'object',
|
|
176
|
-
properties: {
|
|
177
|
-
domain: {
|
|
178
|
-
$ref: '#/components/schemas/App/properties/domain',
|
|
179
|
-
},
|
|
180
|
-
path: {
|
|
181
|
-
$ref: '#/components/schemas/App/properties/path',
|
|
182
|
-
},
|
|
183
|
-
visibility: {
|
|
184
|
-
$ref: '#/components/schemas/App/properties/visibility',
|
|
185
|
-
},
|
|
186
|
-
template: {
|
|
187
|
-
$ref: '#/components/schemas/App/properties/template',
|
|
188
|
-
},
|
|
189
|
-
demoMode: {
|
|
190
|
-
$ref: '#/components/schemas/App/properties/demoMode',
|
|
191
|
-
},
|
|
192
|
-
force: {
|
|
193
|
-
type: 'boolean',
|
|
194
|
-
description: 'Whether the locked property should be ignored.',
|
|
195
|
-
},
|
|
196
|
-
yaml: {
|
|
197
|
-
type: 'string',
|
|
198
|
-
description: 'The original YAML definition used to define the app.',
|
|
199
|
-
},
|
|
200
|
-
icon: {
|
|
201
|
-
type: 'string',
|
|
202
|
-
format: 'binary',
|
|
203
|
-
description: 'The app icon.',
|
|
204
|
-
},
|
|
205
|
-
maskableIcon: {
|
|
206
|
-
type: 'string',
|
|
207
|
-
format: 'binary',
|
|
208
|
-
description: 'The app icon.',
|
|
209
|
-
},
|
|
210
|
-
iconBackground: {
|
|
211
|
-
type: 'string',
|
|
212
|
-
pattern: hexColor.source,
|
|
213
|
-
},
|
|
214
|
-
coreStyle: {
|
|
215
|
-
type: 'string',
|
|
216
|
-
description: 'The custom style to apply to the core app.',
|
|
217
|
-
},
|
|
218
|
-
sharedStyle: {
|
|
219
|
-
type: 'string',
|
|
220
|
-
description: 'The custom style to apply to all parts of app.',
|
|
221
|
-
},
|
|
222
|
-
screenshots: {
|
|
223
|
-
type: 'array',
|
|
224
|
-
description: 'Screenshots to showcase in the store',
|
|
225
|
-
items: {
|
|
226
|
-
type: 'string',
|
|
227
|
-
format: 'binary',
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
readmes: {
|
|
231
|
-
type: 'array',
|
|
232
|
-
description: 'Readmes to showcase in the store',
|
|
233
|
-
items: {
|
|
234
|
-
type: 'string',
|
|
235
|
-
format: 'binary',
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
controllerCode: {
|
|
239
|
-
type: 'string',
|
|
240
|
-
description: 'Custom app logic as a JavaScript string',
|
|
241
|
-
},
|
|
242
|
-
controllerImplementations: {
|
|
243
|
-
type: 'string',
|
|
244
|
-
description: 'Appsemble SDK interfaces implementations',
|
|
245
|
-
},
|
|
246
|
-
showAppsembleLogin: {
|
|
247
|
-
type: 'boolean',
|
|
248
|
-
description: 'Whether the Appsemble login method should be shown.',
|
|
249
|
-
},
|
|
250
|
-
showAppsembleOAuth2Login: {
|
|
251
|
-
type: 'boolean',
|
|
252
|
-
description: 'Whether the Appsemble OAuth2 login method should be shown.',
|
|
253
|
-
},
|
|
254
|
-
enableSelfRegistration: {
|
|
255
|
-
type: 'boolean',
|
|
256
|
-
description: 'Whether new users should be able to register themselves.',
|
|
257
|
-
},
|
|
258
|
-
emailName: {
|
|
259
|
-
type: 'string',
|
|
260
|
-
description: 'The name used for emails.',
|
|
261
|
-
},
|
|
262
|
-
emailHost: {
|
|
263
|
-
type: 'string',
|
|
264
|
-
description: 'The hostname of the SMTP server.',
|
|
265
|
-
},
|
|
266
|
-
emailPassword: {
|
|
267
|
-
type: 'string',
|
|
268
|
-
description: 'The password to use for SMTP authentication. This gets encrypted when stored.',
|
|
269
|
-
},
|
|
270
|
-
emailUser: {
|
|
271
|
-
type: 'string',
|
|
272
|
-
description: 'The username used to authenticate against the SMTP server.',
|
|
273
|
-
},
|
|
274
|
-
emailPort: {
|
|
275
|
-
type: 'string',
|
|
276
|
-
description: 'The port used for the SMTP server.',
|
|
277
|
-
},
|
|
278
|
-
emailSecure: {
|
|
279
|
-
type: 'boolean',
|
|
280
|
-
description: 'Whether TLS is being used.',
|
|
281
|
-
},
|
|
282
|
-
containers: {
|
|
283
|
-
type: 'array',
|
|
284
|
-
items: { $ref: '#/components/schemas/ContainerDefinition' },
|
|
285
|
-
},
|
|
286
|
-
},
|
|
287
|
-
},
|
|
288
|
-
encoding: {
|
|
289
|
-
coreStyle: { contentType: 'text/css' },
|
|
290
|
-
sharedStyle: { contentType: 'text/css' },
|
|
291
|
-
icon: {
|
|
292
|
-
contentType: 'image/png,image/jpeg,image/tiff,image/webp',
|
|
293
|
-
},
|
|
294
|
-
},
|
|
295
|
-
},
|
|
296
|
-
},
|
|
297
|
-
},
|
|
298
|
-
responses: {
|
|
299
|
-
200: {
|
|
300
|
-
description: 'The updated app.',
|
|
301
|
-
$ref: '#/components/responses/app',
|
|
302
|
-
},
|
|
303
|
-
},
|
|
304
|
-
security: [{ studio: [] }, { cli: ['apps:write'] }],
|
|
305
|
-
},
|
|
306
|
-
delete: {
|
|
307
|
-
tags: ['app'],
|
|
308
|
-
description: 'Delete an existing app',
|
|
309
|
-
operationId: 'deleteApp',
|
|
310
|
-
responses: {
|
|
311
|
-
204: {
|
|
312
|
-
description: 'The app was successfully deleted.',
|
|
313
|
-
},
|
|
314
|
-
},
|
|
315
|
-
security: [{ studio: [] }, { cli: ['apps:delete'] }],
|
|
316
|
-
},
|
|
317
|
-
},
|
|
318
|
-
'/api/apps/import/organization/{organizationId}': {
|
|
319
|
-
parameters: [{ $ref: '#/components/parameters/organizationId' }],
|
|
320
|
-
post: {
|
|
321
|
-
tags: ['app', 'import', 'zip'],
|
|
322
|
-
description: 'Import an app from a zip file',
|
|
323
|
-
operationId: 'importApp',
|
|
324
|
-
requestBody: {
|
|
325
|
-
content: {
|
|
326
|
-
'application/zip': {
|
|
327
|
-
schema: {
|
|
328
|
-
type: 'string',
|
|
329
|
-
format: 'binary',
|
|
330
|
-
},
|
|
331
|
-
},
|
|
332
|
-
},
|
|
333
|
-
},
|
|
334
|
-
responses: {
|
|
335
|
-
200: {
|
|
336
|
-
description: 'App imported successfully',
|
|
337
|
-
$ref: '#/components/responses/app',
|
|
338
|
-
},
|
|
339
|
-
},
|
|
340
|
-
security: [{ studio: [] }, { cli: ['apps:write'] }],
|
|
341
|
-
},
|
|
342
|
-
},
|
|
343
|
-
'/api/apps/{appId}/export': {
|
|
344
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
345
|
-
get: {
|
|
346
|
-
tags: ['app', 'export', 'zip'],
|
|
347
|
-
description: 'Export an app as a zip file',
|
|
348
|
-
operationId: 'exportApp',
|
|
349
|
-
parameters: [
|
|
350
|
-
{
|
|
351
|
-
name: 'resources',
|
|
352
|
-
schema: { type: 'boolean' },
|
|
353
|
-
description: 'Whether to include resources for an app.',
|
|
354
|
-
in: 'query',
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
name: 'assets',
|
|
358
|
-
schema: { type: 'boolean' },
|
|
359
|
-
description: 'Whether to include assets in the export file',
|
|
360
|
-
in: 'query',
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
name: 'screenshots',
|
|
364
|
-
schema: { type: 'boolean' },
|
|
365
|
-
description: 'Whether to include screenshots in the export file',
|
|
366
|
-
in: 'query',
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
name: 'readmes',
|
|
370
|
-
schema: { type: 'boolean' },
|
|
371
|
-
description: 'Whether to include readmes in the export file',
|
|
372
|
-
in: 'query',
|
|
373
|
-
},
|
|
374
|
-
],
|
|
375
|
-
responses: {
|
|
376
|
-
200: {
|
|
377
|
-
description: 'App exported successfully.',
|
|
378
|
-
},
|
|
379
|
-
},
|
|
380
|
-
security: [{ studio: [] }, { cli: ['apps:export'] }],
|
|
381
|
-
},
|
|
382
|
-
},
|
|
383
|
-
'/api/apps/{appId}/lock': {
|
|
384
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
385
|
-
post: {
|
|
386
|
-
tags: ['app'],
|
|
387
|
-
description: 'Update the locked property an app.',
|
|
388
|
-
operationId: 'setAppLock',
|
|
389
|
-
requestBody: {
|
|
390
|
-
required: true,
|
|
391
|
-
content: {
|
|
392
|
-
'application/json': {
|
|
393
|
-
schema: {
|
|
394
|
-
type: 'object',
|
|
395
|
-
required: ['locked'],
|
|
396
|
-
properties: {
|
|
397
|
-
locked: {
|
|
398
|
-
$ref: '#/components/schemas/App/properties/locked',
|
|
399
|
-
description: 'Whether the app should be locked.',
|
|
400
|
-
},
|
|
401
|
-
},
|
|
402
|
-
},
|
|
403
|
-
},
|
|
404
|
-
},
|
|
405
|
-
},
|
|
406
|
-
responses: {
|
|
407
|
-
204: {
|
|
408
|
-
description: 'Lock status successfully changed',
|
|
409
|
-
content: {
|
|
410
|
-
'application/zip': {},
|
|
411
|
-
},
|
|
412
|
-
},
|
|
413
|
-
},
|
|
414
|
-
security: [{ studio: [] }, { cli: ['apps:write'] }],
|
|
415
|
-
},
|
|
416
|
-
},
|
|
417
|
-
'/api/apps/{appId}/email': {
|
|
418
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
419
|
-
get: {
|
|
420
|
-
tags: ['app'],
|
|
421
|
-
description: 'Get the app’s email settings.',
|
|
422
|
-
operationId: 'getAppEmailSettings',
|
|
423
|
-
responses: {
|
|
424
|
-
200: {
|
|
425
|
-
description: 'The current app email settings',
|
|
426
|
-
content: {
|
|
427
|
-
'application/json': {
|
|
428
|
-
schema: {
|
|
429
|
-
type: 'object',
|
|
430
|
-
properties: {
|
|
431
|
-
emailName: {
|
|
432
|
-
type: 'string',
|
|
433
|
-
description: 'The name used for emails.',
|
|
434
|
-
},
|
|
435
|
-
emailHost: {
|
|
436
|
-
type: 'string',
|
|
437
|
-
description: 'The hostname of the SMTP server.',
|
|
438
|
-
},
|
|
439
|
-
emailPassword: {
|
|
440
|
-
type: 'boolean',
|
|
441
|
-
description: 'Whether a password is set.',
|
|
442
|
-
},
|
|
443
|
-
emailUser: {
|
|
444
|
-
type: 'string',
|
|
445
|
-
description: 'The username used to authenticate against the SMTP server.',
|
|
446
|
-
},
|
|
447
|
-
emailPort: {
|
|
448
|
-
type: 'string',
|
|
449
|
-
description: 'The port used for the SMTP server.',
|
|
450
|
-
},
|
|
451
|
-
emailSecure: {
|
|
452
|
-
type: 'boolean',
|
|
453
|
-
description: 'Whether TLS is being used.',
|
|
454
|
-
},
|
|
455
|
-
},
|
|
456
|
-
},
|
|
457
|
-
},
|
|
458
|
-
},
|
|
459
|
-
},
|
|
460
|
-
},
|
|
461
|
-
security: [{ studio: [] }, { cli: ['apps:write'] }],
|
|
462
|
-
},
|
|
463
|
-
},
|
|
464
|
-
'/api/apps/{appId}/icon': {
|
|
465
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
466
|
-
get: {
|
|
467
|
-
tags: ['app'],
|
|
468
|
-
description: 'Get the current app icon.',
|
|
469
|
-
operationId: 'getAppIcon',
|
|
470
|
-
responses: {
|
|
471
|
-
200: {
|
|
472
|
-
description: 'The icon of the app that matches the given id.',
|
|
473
|
-
content: {
|
|
474
|
-
'image/png': {},
|
|
475
|
-
'image/jpeg': {},
|
|
476
|
-
'image/tiff': {},
|
|
477
|
-
'image/webp': {},
|
|
478
|
-
},
|
|
479
|
-
},
|
|
480
|
-
},
|
|
481
|
-
},
|
|
482
|
-
delete: {
|
|
483
|
-
tags: ['app'],
|
|
484
|
-
description: 'Delete the current app icon.',
|
|
485
|
-
operationId: 'deleteAppIcon',
|
|
486
|
-
responses: {
|
|
487
|
-
204: {
|
|
488
|
-
description: 'The icon has been successfully removed',
|
|
489
|
-
},
|
|
490
|
-
},
|
|
491
|
-
security: [{ studio: [] }, { cli: ['apps:write'] }],
|
|
492
|
-
},
|
|
493
|
-
},
|
|
494
|
-
'/api/apps/{appId}/maskableIcon': {
|
|
495
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
496
|
-
delete: {
|
|
497
|
-
tags: ['app'],
|
|
498
|
-
description: 'Delete the current app’s maskable icon.',
|
|
499
|
-
operationId: 'deleteAppMaskableIcon',
|
|
500
|
-
responses: {
|
|
501
|
-
204: {
|
|
502
|
-
description: 'The icon has been successfully removed',
|
|
503
|
-
},
|
|
504
|
-
},
|
|
505
|
-
security: [{ studio: [] }, { cli: ['apps:write'] }],
|
|
506
|
-
},
|
|
507
|
-
},
|
|
508
|
-
'/api/apps/{appId}/subscriptions': {
|
|
509
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
510
|
-
get: {
|
|
511
|
-
tags: ['app'],
|
|
512
|
-
parameters: [{ $ref: '#/components/parameters/endpoint' }],
|
|
513
|
-
description: 'Fetch all subscription settings of an app.',
|
|
514
|
-
operationId: 'getSubscription',
|
|
515
|
-
responses: {
|
|
516
|
-
200: {
|
|
517
|
-
description: 'The subscription settings.',
|
|
518
|
-
$ref: '#/components/responses/subscriptions',
|
|
519
|
-
},
|
|
520
|
-
},
|
|
521
|
-
},
|
|
522
|
-
post: {
|
|
523
|
-
tags: ['app'],
|
|
524
|
-
description: 'Subscribe to an app’s push notifications',
|
|
525
|
-
operationId: 'addSubscription',
|
|
526
|
-
requestBody: {
|
|
527
|
-
content: {
|
|
528
|
-
'application/json': {
|
|
529
|
-
schema: {
|
|
530
|
-
type: 'object',
|
|
531
|
-
description: 'A serialized PushSubscription object',
|
|
532
|
-
required: ['endpoint', 'keys'],
|
|
533
|
-
properties: {
|
|
534
|
-
endpoint: {
|
|
535
|
-
type: 'string',
|
|
536
|
-
},
|
|
537
|
-
keys: {
|
|
538
|
-
type: 'object',
|
|
539
|
-
required: ['p256dh', 'auth'],
|
|
540
|
-
properties: {
|
|
541
|
-
p256dh: { type: 'string' },
|
|
542
|
-
auth: { type: 'string' },
|
|
543
|
-
},
|
|
544
|
-
},
|
|
545
|
-
},
|
|
546
|
-
},
|
|
547
|
-
},
|
|
548
|
-
},
|
|
549
|
-
},
|
|
550
|
-
responses: {
|
|
551
|
-
204: {
|
|
552
|
-
description: 'The subscription has successfully been registered.',
|
|
553
|
-
},
|
|
554
|
-
},
|
|
555
|
-
security: [{ app: ['openid'] }, {}],
|
|
556
|
-
},
|
|
557
|
-
patch: {
|
|
558
|
-
tags: ['app'],
|
|
559
|
-
description: 'Subscribe to an app’s push notifications. If value isn’t set it will toggle between subscribing and unsubscribing.',
|
|
560
|
-
operationId: 'updateSubscription',
|
|
561
|
-
requestBody: {
|
|
562
|
-
content: {
|
|
563
|
-
'application/json': {
|
|
564
|
-
schema: {
|
|
565
|
-
type: 'object',
|
|
566
|
-
required: ['endpoint', 'resource', 'action'],
|
|
567
|
-
properties: {
|
|
568
|
-
endpoint: {
|
|
569
|
-
type: 'string',
|
|
570
|
-
format: 'uri',
|
|
571
|
-
},
|
|
572
|
-
resource: {
|
|
573
|
-
type: 'string',
|
|
574
|
-
},
|
|
575
|
-
action: {
|
|
576
|
-
type: 'string',
|
|
577
|
-
enum: ['create', 'update', 'delete'],
|
|
578
|
-
},
|
|
579
|
-
value: {
|
|
580
|
-
type: 'boolean',
|
|
581
|
-
},
|
|
582
|
-
resourceId: {
|
|
583
|
-
type: 'number',
|
|
584
|
-
},
|
|
585
|
-
},
|
|
586
|
-
},
|
|
587
|
-
},
|
|
588
|
-
},
|
|
589
|
-
},
|
|
590
|
-
responses: {
|
|
591
|
-
204: {
|
|
592
|
-
description: 'The subscription has successfully been updated.',
|
|
593
|
-
},
|
|
594
|
-
},
|
|
595
|
-
security: [{ app: ['openid'] }, {}],
|
|
596
|
-
},
|
|
597
|
-
},
|
|
598
|
-
'/api/apps/{appId}/demoMembers': {
|
|
599
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
600
|
-
get: {
|
|
601
|
-
tags: ['app'],
|
|
602
|
-
description: 'Fetch all demo members of an app.',
|
|
603
|
-
operationId: 'getDemoAppMembers',
|
|
604
|
-
responses: {
|
|
605
|
-
200: {
|
|
606
|
-
description: 'The list of demo app members.',
|
|
607
|
-
content: {
|
|
608
|
-
'application/json': {
|
|
609
|
-
schema: {
|
|
610
|
-
type: 'array',
|
|
611
|
-
items: {
|
|
612
|
-
$ref: '#/components/schemas/OrganizationMember',
|
|
613
|
-
},
|
|
614
|
-
},
|
|
615
|
-
},
|
|
616
|
-
},
|
|
617
|
-
},
|
|
618
|
-
},
|
|
619
|
-
},
|
|
620
|
-
},
|
|
621
|
-
'/api/apps/{appId}/members': {
|
|
622
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
623
|
-
get: {
|
|
624
|
-
tags: ['app'],
|
|
625
|
-
description: 'Fetch all members of an app.',
|
|
626
|
-
operationId: 'getAppMembers',
|
|
627
|
-
responses: {
|
|
628
|
-
200: {
|
|
629
|
-
description: 'The list of app members.',
|
|
630
|
-
content: {
|
|
631
|
-
'application/json': {
|
|
632
|
-
schema: {
|
|
633
|
-
type: 'array',
|
|
634
|
-
items: {
|
|
635
|
-
$ref: '#/components/schemas/OrganizationMember',
|
|
636
|
-
},
|
|
637
|
-
},
|
|
638
|
-
},
|
|
639
|
-
},
|
|
640
|
-
},
|
|
641
|
-
},
|
|
642
|
-
security: [{ studio: [] }, { app: ['openid'] }],
|
|
643
|
-
},
|
|
644
|
-
},
|
|
645
|
-
'/api/apps/{appId}/members/{userId}': {
|
|
646
|
-
parameters: [
|
|
647
|
-
{ $ref: '#/components/parameters/appId' },
|
|
648
|
-
{
|
|
649
|
-
name: 'userId',
|
|
650
|
-
in: 'path',
|
|
651
|
-
description: 'The user ID of the member on which to perform an operation',
|
|
652
|
-
required: true,
|
|
653
|
-
schema: { $ref: '#/components/schemas/User/properties/id' },
|
|
654
|
-
},
|
|
655
|
-
],
|
|
656
|
-
get: {
|
|
657
|
-
tags: ['app'],
|
|
658
|
-
description: 'Get an app member.',
|
|
659
|
-
operationId: 'getAppMember',
|
|
660
|
-
responses: {
|
|
661
|
-
200: {
|
|
662
|
-
description: 'The resulting app member.',
|
|
663
|
-
content: {
|
|
664
|
-
'application/json': {
|
|
665
|
-
schema: {
|
|
666
|
-
$ref: '#/components/schemas/OrganizationMember',
|
|
667
|
-
},
|
|
668
|
-
},
|
|
669
|
-
},
|
|
670
|
-
},
|
|
671
|
-
},
|
|
672
|
-
security: [{ studio: [] }, { app: ['openid'] }],
|
|
673
|
-
},
|
|
674
|
-
post: {
|
|
675
|
-
tags: ['app'],
|
|
676
|
-
description: 'Assign an app role to a member.',
|
|
677
|
-
operationId: 'setAppMember',
|
|
678
|
-
requestBody: {
|
|
679
|
-
content: {
|
|
680
|
-
'application/json': {
|
|
681
|
-
schema: {
|
|
682
|
-
type: 'object',
|
|
683
|
-
required: ['role'],
|
|
684
|
-
properties: {
|
|
685
|
-
role: {
|
|
686
|
-
type: 'string',
|
|
687
|
-
description: 'The role to assign.',
|
|
688
|
-
},
|
|
689
|
-
properties: {
|
|
690
|
-
type: 'object',
|
|
691
|
-
additionalProperties: { type: 'string' },
|
|
692
|
-
description: 'Any additional properties that are allowed to be set for members.',
|
|
693
|
-
},
|
|
694
|
-
},
|
|
695
|
-
},
|
|
696
|
-
},
|
|
697
|
-
},
|
|
698
|
-
},
|
|
699
|
-
responses: {
|
|
700
|
-
200: {
|
|
701
|
-
description: 'The resulting app member.',
|
|
702
|
-
content: {
|
|
703
|
-
'application/json': {
|
|
704
|
-
schema: {
|
|
705
|
-
$ref: '#/components/schemas/OrganizationMember',
|
|
706
|
-
},
|
|
707
|
-
},
|
|
708
|
-
},
|
|
709
|
-
},
|
|
710
|
-
},
|
|
711
|
-
security: [{ studio: [] }],
|
|
712
|
-
},
|
|
713
|
-
delete: {
|
|
714
|
-
tags: ['app'],
|
|
715
|
-
description: 'Delete an app member.',
|
|
716
|
-
operationId: 'deleteAppMember',
|
|
717
|
-
responses: {
|
|
718
|
-
204: {
|
|
719
|
-
description: 'The app member was deleted successfully.',
|
|
720
|
-
},
|
|
721
|
-
},
|
|
722
|
-
security: [{ studio: [] }],
|
|
723
|
-
},
|
|
724
|
-
},
|
|
725
|
-
'/api/apps/{appId}/members/{memberId}/picture': {
|
|
726
|
-
parameters: [
|
|
727
|
-
{ $ref: '#/components/parameters/appId' },
|
|
728
|
-
{
|
|
729
|
-
name: 'memberId',
|
|
730
|
-
in: 'path',
|
|
731
|
-
description: 'The ID of the member on which to perform an operation',
|
|
732
|
-
required: true,
|
|
733
|
-
schema: { $ref: '#/components/schemas/User/properties/id' },
|
|
734
|
-
},
|
|
735
|
-
],
|
|
736
|
-
get: {
|
|
737
|
-
tags: ['app'],
|
|
738
|
-
description: `Get an app member’s profile picture.
|
|
739
|
-
|
|
740
|
-
This will return a 404 if the user has not uploaded one.`,
|
|
741
|
-
operationId: 'getAppMemberPicture',
|
|
742
|
-
responses: {
|
|
743
|
-
200: {
|
|
744
|
-
description: 'The profile picture of the app member.',
|
|
745
|
-
content: {
|
|
746
|
-
'image/png': {},
|
|
747
|
-
'image/jpeg': {},
|
|
748
|
-
'image/tiff': {},
|
|
749
|
-
'image/webp': {},
|
|
750
|
-
},
|
|
751
|
-
},
|
|
752
|
-
},
|
|
753
|
-
},
|
|
754
|
-
},
|
|
755
|
-
'/api/apps/{appId}/ratings': {
|
|
756
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
757
|
-
get: {
|
|
758
|
-
tags: ['app'],
|
|
759
|
-
description: 'Fetch all ratings of an app.',
|
|
760
|
-
operationId: 'getAppRatings',
|
|
761
|
-
responses: {
|
|
762
|
-
200: {
|
|
763
|
-
description: 'The list of apps ratings.',
|
|
764
|
-
content: {
|
|
765
|
-
'application/json': {
|
|
766
|
-
schema: {
|
|
767
|
-
type: 'array',
|
|
768
|
-
items: {
|
|
769
|
-
$ref: '#/components/schemas/Rating',
|
|
770
|
-
},
|
|
771
|
-
},
|
|
772
|
-
},
|
|
773
|
-
},
|
|
774
|
-
},
|
|
775
|
-
},
|
|
776
|
-
},
|
|
777
|
-
post: {
|
|
778
|
-
tags: ['app'],
|
|
779
|
-
description: 'Submit an app rating.',
|
|
780
|
-
operationId: 'submitAppRating',
|
|
781
|
-
requestBody: {
|
|
782
|
-
content: {
|
|
783
|
-
'application/json': {
|
|
784
|
-
schema: {
|
|
785
|
-
type: 'object',
|
|
786
|
-
required: ['rating'],
|
|
787
|
-
properties: {
|
|
788
|
-
rating: {
|
|
789
|
-
$ref: '#/components/schemas/Rating/properties/rating',
|
|
790
|
-
},
|
|
791
|
-
description: {
|
|
792
|
-
$ref: '#/components/schemas/Rating/properties/description',
|
|
793
|
-
},
|
|
794
|
-
},
|
|
795
|
-
},
|
|
796
|
-
},
|
|
797
|
-
},
|
|
798
|
-
},
|
|
799
|
-
responses: {
|
|
800
|
-
200: {
|
|
801
|
-
description: 'The submitted app rating.',
|
|
802
|
-
content: {
|
|
803
|
-
'application/json': {
|
|
804
|
-
schema: { $ref: '#/components/schemas/Asset/properties/id' },
|
|
805
|
-
},
|
|
806
|
-
},
|
|
807
|
-
},
|
|
808
|
-
},
|
|
809
|
-
security: [{ studio: [] }],
|
|
810
|
-
},
|
|
811
|
-
},
|
|
812
|
-
'/api/apps/{appId}/broadcast': {
|
|
813
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
814
|
-
post: {
|
|
815
|
-
tags: ['app'],
|
|
816
|
-
description: 'Broadcast a push notification to every subscriber of the app.',
|
|
817
|
-
operationId: 'broadcast',
|
|
818
|
-
requestBody: {
|
|
819
|
-
content: {
|
|
820
|
-
'application/json': {
|
|
821
|
-
schema: {
|
|
822
|
-
type: 'object',
|
|
823
|
-
description: 'The data to include in the notification',
|
|
824
|
-
required: ['body'],
|
|
825
|
-
properties: {
|
|
826
|
-
title: {
|
|
827
|
-
description: 'The title of the notification. This defaults to the name of the app if not otherwise specified.',
|
|
828
|
-
type: 'string',
|
|
829
|
-
},
|
|
830
|
-
body: {
|
|
831
|
-
description: 'The content of the notification',
|
|
832
|
-
type: 'string',
|
|
833
|
-
},
|
|
834
|
-
},
|
|
835
|
-
},
|
|
836
|
-
},
|
|
837
|
-
},
|
|
838
|
-
},
|
|
839
|
-
responses: {
|
|
840
|
-
204: {
|
|
841
|
-
description: 'The notification has been successfully broadcasted.',
|
|
842
|
-
},
|
|
843
|
-
},
|
|
844
|
-
security: [{ studio: [] }],
|
|
845
|
-
},
|
|
846
|
-
},
|
|
847
|
-
'/api/apps/{appId}/snapshots': {
|
|
848
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
849
|
-
get: {
|
|
850
|
-
tags: ['app'],
|
|
851
|
-
description: 'Get a list of snapshots made of the app.',
|
|
852
|
-
operationId: 'getAppSnapshots',
|
|
853
|
-
responses: {
|
|
854
|
-
200: {
|
|
855
|
-
description: 'The available snapshots',
|
|
856
|
-
content: {
|
|
857
|
-
'application/json': {
|
|
858
|
-
schema: {
|
|
859
|
-
type: 'array',
|
|
860
|
-
items: {
|
|
861
|
-
type: 'object',
|
|
862
|
-
properties: {
|
|
863
|
-
id: { type: 'number', description: 'The ID of the snapshot.' },
|
|
864
|
-
$created: {
|
|
865
|
-
type: 'string',
|
|
866
|
-
format: 'date-time',
|
|
867
|
-
description: 'The creation date of the snapshot.',
|
|
868
|
-
},
|
|
869
|
-
$author: {
|
|
870
|
-
type: 'object',
|
|
871
|
-
properties: {
|
|
872
|
-
id: { $ref: '#/components/schemas/User/properties/id' },
|
|
873
|
-
name: { $ref: '#/components/schemas/User/properties/name' },
|
|
874
|
-
},
|
|
875
|
-
},
|
|
876
|
-
},
|
|
877
|
-
},
|
|
878
|
-
},
|
|
879
|
-
},
|
|
880
|
-
},
|
|
881
|
-
},
|
|
882
|
-
},
|
|
883
|
-
security: [{ studio: [] }, { cli: ['apps:write'] }],
|
|
884
|
-
},
|
|
885
|
-
},
|
|
886
|
-
'/api/apps/{appId}/snapshots/{snapshotId}': {
|
|
1
|
+
import { hexColor } from '../../constants/index.js';
|
|
2
|
+
export const pathItems = {
|
|
3
|
+
post: {
|
|
4
|
+
tags: ['main', 'app'],
|
|
5
|
+
description: 'Create a new app',
|
|
6
|
+
operationId: 'createApp',
|
|
887
7
|
parameters: [
|
|
888
|
-
{ $ref: '#/components/parameters/appId' },
|
|
889
8
|
{
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
description: '
|
|
893
|
-
|
|
894
|
-
schema: { type: 'number', description: 'The ID of the snapshot.' },
|
|
9
|
+
in: 'query',
|
|
10
|
+
name: 'dryRun',
|
|
11
|
+
description: 'Validate whether an app could be created without actually creating one. Must be set to ‘true’.',
|
|
12
|
+
schema: { type: 'string' },
|
|
895
13
|
},
|
|
896
14
|
],
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
schema: {
|
|
907
|
-
type: 'object',
|
|
908
|
-
properties: {
|
|
909
|
-
id: { type: 'integer', description: 'The ID of the snapshot.' },
|
|
910
|
-
yaml: { type: 'string', description: 'The app definition.' },
|
|
911
|
-
$created: {
|
|
912
|
-
type: 'string',
|
|
913
|
-
format: 'date-time',
|
|
914
|
-
description: 'The creation date of the snapshot.',
|
|
915
|
-
},
|
|
916
|
-
$author: {
|
|
917
|
-
type: 'object',
|
|
918
|
-
properties: {
|
|
919
|
-
id: { $ref: '#/components/schemas/User/properties/id' },
|
|
920
|
-
name: { $ref: '#/components/schemas/User/properties/name' },
|
|
921
|
-
},
|
|
922
|
-
},
|
|
923
|
-
},
|
|
15
|
+
requestBody: {
|
|
16
|
+
content: {
|
|
17
|
+
'multipart/form-data': {
|
|
18
|
+
schema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
required: ['OrganizationId', 'yaml'],
|
|
21
|
+
properties: {
|
|
22
|
+
domain: {
|
|
23
|
+
$ref: '#/components/schemas/App/properties/domain',
|
|
924
24
|
},
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
},
|
|
928
|
-
},
|
|
929
|
-
security: [{ studio: [] }, { cli: ['apps:write'] }],
|
|
930
|
-
},
|
|
931
|
-
},
|
|
932
|
-
'/api/apps/{appId}/screenshots': {
|
|
933
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
934
|
-
post: {
|
|
935
|
-
tags: ['app'],
|
|
936
|
-
description: 'Add one or multiple screenshots of an app.',
|
|
937
|
-
operationId: 'createAppScreenshot',
|
|
938
|
-
requestBody: {
|
|
939
|
-
content: {
|
|
940
|
-
'multipart/form-data': {
|
|
941
|
-
schema: {
|
|
942
|
-
type: 'object',
|
|
943
|
-
properties: {
|
|
944
|
-
screenshots: {
|
|
945
|
-
type: 'array',
|
|
946
|
-
description: 'Screenshots to showcase in the store',
|
|
947
|
-
minItems: 1,
|
|
948
|
-
items: {
|
|
949
|
-
type: 'string',
|
|
950
|
-
format: 'binary',
|
|
951
|
-
},
|
|
952
|
-
},
|
|
953
|
-
language: {
|
|
954
|
-
type: 'string',
|
|
955
|
-
description: 'The language for which the screenshots will be uploaded',
|
|
956
|
-
},
|
|
25
|
+
path: {
|
|
26
|
+
$ref: '#/components/schemas/App/properties/path',
|
|
957
27
|
},
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
screenshots: {
|
|
961
|
-
contentType: 'image/png,image/jpeg,image/tiff,image/webp',
|
|
28
|
+
visibility: {
|
|
29
|
+
$ref: '#/components/schemas/App/properties/visibility',
|
|
962
30
|
},
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
},
|
|
966
|
-
},
|
|
967
|
-
responses: {
|
|
968
|
-
201: {
|
|
969
|
-
description: 'The screenshots have been successfully created.',
|
|
970
|
-
content: {
|
|
971
|
-
'application/json': {
|
|
972
|
-
schema: {
|
|
973
|
-
type: 'array',
|
|
974
|
-
items: {
|
|
975
|
-
type: 'integer',
|
|
976
|
-
description: 'The ID of the newly created screenshot.',
|
|
977
|
-
},
|
|
31
|
+
template: {
|
|
32
|
+
$ref: '#/components/schemas/App/properties/template',
|
|
978
33
|
},
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
},
|
|
982
|
-
},
|
|
983
|
-
security: [{ studio: [] }, { cli: ['apps:write'] }],
|
|
984
|
-
},
|
|
985
|
-
},
|
|
986
|
-
'/api/apps/{appId}/screenshots/{screenshotId}': {
|
|
987
|
-
parameters: [
|
|
988
|
-
{ $ref: '#/components/parameters/appId' },
|
|
989
|
-
{ $ref: '#/components/parameters/screenshotId' },
|
|
990
|
-
],
|
|
991
|
-
get: {
|
|
992
|
-
tags: ['app'],
|
|
993
|
-
description: 'Get a screenshot of an app.',
|
|
994
|
-
operationId: 'getAppScreenshot',
|
|
995
|
-
responses: {
|
|
996
|
-
200: {
|
|
997
|
-
description: 'The app screenshot',
|
|
998
|
-
},
|
|
999
|
-
},
|
|
1000
|
-
},
|
|
1001
|
-
delete: {
|
|
1002
|
-
tags: ['app'],
|
|
1003
|
-
description: 'Delete an existing screenshot.',
|
|
1004
|
-
operationId: 'deleteAppScreenshot',
|
|
1005
|
-
responses: {
|
|
1006
|
-
200: {
|
|
1007
|
-
description: 'The screenshot has been successfully deleted.',
|
|
1008
|
-
},
|
|
1009
|
-
},
|
|
1010
|
-
security: [{ studio: [] }, { cli: ['apps:write'] }],
|
|
1011
|
-
},
|
|
1012
|
-
},
|
|
1013
|
-
'/api/apps/{appId}/readmes/{readmeId}': {
|
|
1014
|
-
parameters: [
|
|
1015
|
-
{ $ref: '#/components/parameters/appId' },
|
|
1016
|
-
{ $ref: '#/components/parameters/readmeId' },
|
|
1017
|
-
],
|
|
1018
|
-
get: {
|
|
1019
|
-
tags: ['app'],
|
|
1020
|
-
description: 'Get a readme of an app.',
|
|
1021
|
-
operationId: 'getAppReadme',
|
|
1022
|
-
responses: {
|
|
1023
|
-
200: {
|
|
1024
|
-
description: 'The app readme',
|
|
1025
|
-
},
|
|
1026
|
-
},
|
|
1027
|
-
},
|
|
1028
|
-
},
|
|
1029
|
-
'/api/apps/{appId}/style/core': {
|
|
1030
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
1031
|
-
get: {
|
|
1032
|
-
tags: ['app'],
|
|
1033
|
-
description: 'Get the core style for this app.',
|
|
1034
|
-
operationId: 'getAppCoreStyle',
|
|
1035
|
-
responses: {
|
|
1036
|
-
200: {
|
|
1037
|
-
description: 'The core stylesheet associated with this app.',
|
|
1038
|
-
content: {
|
|
1039
|
-
'text/css': {},
|
|
1040
|
-
},
|
|
1041
|
-
},
|
|
1042
|
-
},
|
|
1043
|
-
},
|
|
1044
|
-
},
|
|
1045
|
-
'/api/apps/{appId}/style/shared': {
|
|
1046
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
1047
|
-
get: {
|
|
1048
|
-
tags: ['app'],
|
|
1049
|
-
description: 'Get the shared style for this app.',
|
|
1050
|
-
operationId: 'getAppSharedStyle',
|
|
1051
|
-
responses: {
|
|
1052
|
-
200: {
|
|
1053
|
-
description: 'The shared stylesheet associated with this app.',
|
|
1054
|
-
content: {
|
|
1055
|
-
'text/css': {},
|
|
1056
|
-
},
|
|
1057
|
-
},
|
|
1058
|
-
},
|
|
1059
|
-
},
|
|
1060
|
-
},
|
|
1061
|
-
'/api/apps/{appId}/style/block/@{organizationId}/{blockId}': {
|
|
1062
|
-
parameters: [
|
|
1063
|
-
{ $ref: '#/components/parameters/appId' },
|
|
1064
|
-
{ $ref: '#/components/parameters/organizationId' },
|
|
1065
|
-
{ $ref: '#/components/parameters/blockId' },
|
|
1066
|
-
],
|
|
1067
|
-
get: {
|
|
1068
|
-
tags: ['app'],
|
|
1069
|
-
description: 'Get the app style for a block.',
|
|
1070
|
-
operationId: 'getAppBlockStyle',
|
|
1071
|
-
responses: {
|
|
1072
|
-
200: {
|
|
1073
|
-
description: 'The stylesheet associated with this block for this app.',
|
|
1074
|
-
content: {
|
|
1075
|
-
'text/css': {},
|
|
1076
|
-
},
|
|
1077
|
-
},
|
|
1078
|
-
},
|
|
1079
|
-
},
|
|
1080
|
-
post: {
|
|
1081
|
-
tags: ['app'],
|
|
1082
|
-
description: 'Upload a block stylesheet for this app.',
|
|
1083
|
-
operationId: 'setAppBlockStyle',
|
|
1084
|
-
requestBody: {
|
|
1085
|
-
description: 'The new app block stylesheet.',
|
|
1086
|
-
content: {
|
|
1087
|
-
'application/json': {
|
|
1088
|
-
schema: {
|
|
1089
|
-
type: 'object',
|
|
1090
|
-
required: ['style'],
|
|
1091
|
-
properties: {
|
|
1092
|
-
style: {
|
|
1093
|
-
type: 'string',
|
|
1094
|
-
},
|
|
1095
|
-
force: {
|
|
1096
|
-
type: 'boolean',
|
|
1097
|
-
writeOnly: true,
|
|
1098
|
-
description: 'If this is true, the app lock is ignored.',
|
|
1099
|
-
},
|
|
34
|
+
demoMode: {
|
|
35
|
+
$ref: '#/components/schemas/App/properties/demoMode',
|
|
1100
36
|
},
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
},
|
|
1105
|
-
responses: {
|
|
1106
|
-
204: {
|
|
1107
|
-
description: 'The block style has been updated successfully.',
|
|
1108
|
-
},
|
|
1109
|
-
},
|
|
1110
|
-
security: [{ studio: [] }, { cli: ['apps:write'] }],
|
|
1111
|
-
},
|
|
1112
|
-
},
|
|
1113
|
-
'/api/apps/{appId}/teams': {
|
|
1114
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
1115
|
-
get: {
|
|
1116
|
-
tags: ['app'],
|
|
1117
|
-
description: 'Get a list of app teams.',
|
|
1118
|
-
operationId: 'getTeams',
|
|
1119
|
-
responses: {
|
|
1120
|
-
200: {
|
|
1121
|
-
description: 'The list of all teams.',
|
|
1122
|
-
content: {
|
|
1123
|
-
'application/json': {
|
|
1124
|
-
schema: {
|
|
1125
|
-
type: 'array',
|
|
1126
|
-
items: {
|
|
1127
|
-
description: 'An app team',
|
|
1128
|
-
type: 'object',
|
|
1129
|
-
properties: {
|
|
1130
|
-
id: { type: 'number' },
|
|
1131
|
-
name: { type: 'string' },
|
|
1132
|
-
role: {
|
|
1133
|
-
type: 'string',
|
|
1134
|
-
description: 'The role of the user requesting the list of teams',
|
|
1135
|
-
enum: Object.values(TeamRole),
|
|
1136
|
-
},
|
|
1137
|
-
},
|
|
1138
|
-
},
|
|
37
|
+
yaml: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
description: 'The original YAML definition used to define the app.',
|
|
1139
40
|
},
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
},
|
|
1143
|
-
},
|
|
1144
|
-
security: [{ studio: [] }, { app: ['teams:read'] }],
|
|
1145
|
-
},
|
|
1146
|
-
post: {
|
|
1147
|
-
tags: ['app'],
|
|
1148
|
-
description: 'Create a new team.',
|
|
1149
|
-
operationId: 'createTeam',
|
|
1150
|
-
requestBody: {
|
|
1151
|
-
description: 'The team to create.',
|
|
1152
|
-
required: true,
|
|
1153
|
-
content: {
|
|
1154
|
-
'application/json': {
|
|
1155
|
-
schema: {
|
|
1156
|
-
type: 'object',
|
|
1157
|
-
required: ['name'],
|
|
1158
|
-
properties: {
|
|
1159
|
-
name: {
|
|
1160
|
-
type: 'string',
|
|
1161
|
-
},
|
|
1162
|
-
annotations: {
|
|
1163
|
-
type: 'object',
|
|
1164
|
-
additionalProperties: { type: 'string' },
|
|
1165
|
-
},
|
|
41
|
+
OrganizationId: {
|
|
42
|
+
$ref: '#/components/schemas/Organization/properties/id',
|
|
1166
43
|
},
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
responses: {
|
|
1172
|
-
201: {
|
|
1173
|
-
description: 'The created team',
|
|
1174
|
-
content: {
|
|
1175
|
-
'application/json': {
|
|
1176
|
-
schema: {
|
|
1177
|
-
type: 'object',
|
|
1178
|
-
properties: {
|
|
1179
|
-
id: { type: 'number' },
|
|
1180
|
-
name: { type: 'string' },
|
|
1181
|
-
role: {
|
|
1182
|
-
type: 'string',
|
|
1183
|
-
description: 'The role of the user who created the team',
|
|
1184
|
-
enum: Object.values(TeamRole),
|
|
1185
|
-
},
|
|
1186
|
-
},
|
|
44
|
+
icon: {
|
|
45
|
+
type: 'string',
|
|
46
|
+
format: 'binary',
|
|
47
|
+
description: 'The app icon.',
|
|
1187
48
|
},
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
security: [{ app: ['teams:write'] }, { studio: [] }, { cli: ['teams:write'] }],
|
|
1193
|
-
},
|
|
1194
|
-
},
|
|
1195
|
-
'/api/apps/{appId}/teams/{teamId}': {
|
|
1196
|
-
parameters: [
|
|
1197
|
-
{ $ref: '#/components/parameters/appId' },
|
|
1198
|
-
{
|
|
1199
|
-
name: 'teamId',
|
|
1200
|
-
in: 'path',
|
|
1201
|
-
description: 'The ID of the team',
|
|
1202
|
-
required: true,
|
|
1203
|
-
schema: { type: 'number', readOnly: true },
|
|
1204
|
-
},
|
|
1205
|
-
],
|
|
1206
|
-
get: {
|
|
1207
|
-
tags: ['app'],
|
|
1208
|
-
description: 'Fetch an existing team.',
|
|
1209
|
-
operationId: 'getTeam',
|
|
1210
|
-
responses: {
|
|
1211
|
-
200: {
|
|
1212
|
-
description: 'The requested team',
|
|
1213
|
-
content: {
|
|
1214
|
-
'application/json': {
|
|
1215
|
-
schema: {
|
|
1216
|
-
type: 'object',
|
|
1217
|
-
properties: {
|
|
1218
|
-
id: { type: 'number' },
|
|
1219
|
-
name: { type: 'string' },
|
|
1220
|
-
role: {
|
|
1221
|
-
type: 'string',
|
|
1222
|
-
description: 'The role of the user who requested the team',
|
|
1223
|
-
enum: Object.values(TeamRole),
|
|
1224
|
-
},
|
|
1225
|
-
},
|
|
49
|
+
maskableIcon: {
|
|
50
|
+
type: 'string',
|
|
51
|
+
format: 'binary',
|
|
52
|
+
description: 'The app icon.',
|
|
1226
53
|
},
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
security: [{ studio: [] }],
|
|
1232
|
-
},
|
|
1233
|
-
patch: {
|
|
1234
|
-
tags: ['app'],
|
|
1235
|
-
description: 'Update an existing team.',
|
|
1236
|
-
operationId: 'patchTeam',
|
|
1237
|
-
requestBody: {
|
|
1238
|
-
description: 'The team to update.',
|
|
1239
|
-
required: true,
|
|
1240
|
-
content: {
|
|
1241
|
-
'application/json': {
|
|
1242
|
-
schema: {
|
|
1243
|
-
type: 'object',
|
|
1244
|
-
required: ['name'],
|
|
1245
|
-
properties: {
|
|
1246
|
-
name: {
|
|
1247
|
-
type: 'string',
|
|
1248
|
-
},
|
|
1249
|
-
annotations: {
|
|
1250
|
-
type: 'object',
|
|
1251
|
-
additionalProperties: { type: 'string' },
|
|
1252
|
-
},
|
|
54
|
+
iconBackground: {
|
|
55
|
+
type: 'string',
|
|
56
|
+
pattern: hexColor.source,
|
|
57
|
+
description: 'The background color to use for the maskable icon.',
|
|
1253
58
|
},
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
},
|
|
1258
|
-
responses: {
|
|
1259
|
-
200: {
|
|
1260
|
-
description: 'The updated team',
|
|
1261
|
-
content: {
|
|
1262
|
-
'application/json': {
|
|
1263
|
-
schema: {
|
|
1264
|
-
type: 'object',
|
|
1265
|
-
properties: {
|
|
1266
|
-
id: { type: 'number' },
|
|
1267
|
-
name: { type: 'string' },
|
|
1268
|
-
role: {
|
|
1269
|
-
type: 'string',
|
|
1270
|
-
description: 'The role of the user who updated the team',
|
|
1271
|
-
enum: Object.values(TeamRole),
|
|
1272
|
-
},
|
|
1273
|
-
},
|
|
59
|
+
coreStyle: {
|
|
60
|
+
type: 'string',
|
|
61
|
+
description: 'The custom style to apply to the core app.',
|
|
1274
62
|
},
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
},
|
|
1281
|
-
delete: {
|
|
1282
|
-
tags: ['app'],
|
|
1283
|
-
description: 'Delete an existing team.',
|
|
1284
|
-
operationId: 'deleteTeam',
|
|
1285
|
-
responses: {
|
|
1286
|
-
204: { description: 'The team has successfully been deleted.' },
|
|
1287
|
-
},
|
|
1288
|
-
security: [{ studio: [] }, { cli: ['teams:write'] }],
|
|
1289
|
-
},
|
|
1290
|
-
},
|
|
1291
|
-
'/api/apps/{appId}/teams/{teamId}/members': {
|
|
1292
|
-
parameters: [
|
|
1293
|
-
{ $ref: '#/components/parameters/appId' },
|
|
1294
|
-
{
|
|
1295
|
-
name: 'teamId',
|
|
1296
|
-
in: 'path',
|
|
1297
|
-
description: 'The ID of the team',
|
|
1298
|
-
required: true,
|
|
1299
|
-
schema: { type: 'number', readOnly: true },
|
|
1300
|
-
},
|
|
1301
|
-
],
|
|
1302
|
-
get: {
|
|
1303
|
-
tags: ['app'],
|
|
1304
|
-
description: 'Fetch the members of a team and their roles within the team.',
|
|
1305
|
-
operationId: 'getTeamMembers',
|
|
1306
|
-
responses: {
|
|
1307
|
-
200: {
|
|
1308
|
-
description: 'The list of all members.',
|
|
1309
|
-
content: {
|
|
1310
|
-
'application/json': {
|
|
1311
|
-
schema: {
|
|
63
|
+
sharedStyle: {
|
|
64
|
+
type: 'string',
|
|
65
|
+
description: 'The custom style to apply to all parts of app.',
|
|
66
|
+
},
|
|
67
|
+
screenshots: {
|
|
1312
68
|
type: 'array',
|
|
69
|
+
description: 'Screenshots to showcase in the store',
|
|
1313
70
|
items: {
|
|
1314
|
-
|
|
71
|
+
type: 'string',
|
|
72
|
+
format: 'binary',
|
|
1315
73
|
},
|
|
1316
74
|
},
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
tags: ['app'],
|
|
1325
|
-
description: 'Add an app member member to a team.',
|
|
1326
|
-
operationId: 'addTeamMember',
|
|
1327
|
-
requestBody: {
|
|
1328
|
-
description: 'The team to update.',
|
|
1329
|
-
required: true,
|
|
1330
|
-
content: {
|
|
1331
|
-
'application/json': {
|
|
1332
|
-
schema: {
|
|
1333
|
-
type: 'object',
|
|
1334
|
-
required: ['id'],
|
|
1335
|
-
properties: {
|
|
1336
|
-
id: { $ref: '#/components/schemas/User/properties/id' },
|
|
75
|
+
readmes: {
|
|
76
|
+
type: 'array',
|
|
77
|
+
description: 'Readmes to showcase in the store',
|
|
78
|
+
items: {
|
|
79
|
+
type: 'string',
|
|
80
|
+
format: 'binary',
|
|
81
|
+
},
|
|
1337
82
|
},
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
},
|
|
1342
|
-
responses: {
|
|
1343
|
-
201: {
|
|
1344
|
-
description: 'The added member',
|
|
1345
|
-
content: {
|
|
1346
|
-
'application/json': {
|
|
1347
|
-
schema: {
|
|
1348
|
-
$ref: '#/components/schemas/OrganizationMember',
|
|
83
|
+
controllerCode: {
|
|
84
|
+
type: 'string',
|
|
85
|
+
description: 'Custom app logic as a JavaScript string',
|
|
1349
86
|
},
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
},
|
|
1354
|
-
security: [{ studio: [] }, { app: ['teams:write'] }, { cli: ['teams:write'] }],
|
|
1355
|
-
},
|
|
1356
|
-
},
|
|
1357
|
-
'/api/apps/{appId}/teams/{teamId}/members/{memberId}': {
|
|
1358
|
-
parameters: [
|
|
1359
|
-
{ $ref: '#/components/parameters/appId' },
|
|
1360
|
-
{
|
|
1361
|
-
name: 'teamId',
|
|
1362
|
-
in: 'path',
|
|
1363
|
-
description: 'The ID of the team',
|
|
1364
|
-
required: true,
|
|
1365
|
-
schema: { type: 'number', readOnly: true },
|
|
1366
|
-
},
|
|
1367
|
-
{
|
|
1368
|
-
name: 'memberId',
|
|
1369
|
-
in: 'path',
|
|
1370
|
-
description: 'The ID of the team member',
|
|
1371
|
-
required: true,
|
|
1372
|
-
schema: { $ref: '#/components/schemas/User/properties/id' },
|
|
1373
|
-
},
|
|
1374
|
-
],
|
|
1375
|
-
get: {
|
|
1376
|
-
tags: ['app'],
|
|
1377
|
-
description: 'Get a certain team member from a team',
|
|
1378
|
-
operationId: 'getTeamMember',
|
|
1379
|
-
responses: {
|
|
1380
|
-
200: {
|
|
1381
|
-
description: 'The specified team member',
|
|
1382
|
-
content: {
|
|
1383
|
-
'application/json': {
|
|
1384
|
-
schema: {
|
|
1385
|
-
$ref: '#/components/schemas/OrganizationMember',
|
|
87
|
+
controllerImplementations: {
|
|
88
|
+
type: 'string',
|
|
89
|
+
description: 'Appsemble SDK interfaces implementations',
|
|
1386
90
|
},
|
|
1387
91
|
},
|
|
1388
92
|
},
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
description: 'Update the role of a team member.',
|
|
1395
|
-
operationId: 'updateTeamMember',
|
|
1396
|
-
requestBody: {
|
|
1397
|
-
description: 'The team to update.',
|
|
1398
|
-
required: true,
|
|
1399
|
-
content: {
|
|
1400
|
-
'application/json': {
|
|
1401
|
-
schema: {
|
|
1402
|
-
type: 'object',
|
|
1403
|
-
required: ['role'],
|
|
1404
|
-
properties: {
|
|
1405
|
-
role: {
|
|
1406
|
-
type: 'string',
|
|
1407
|
-
enum: Object.values(TeamRole),
|
|
1408
|
-
},
|
|
1409
|
-
},
|
|
93
|
+
encoding: {
|
|
94
|
+
coreStyle: { contentType: 'text/css' },
|
|
95
|
+
sharedStyle: { contentType: 'text/css' },
|
|
96
|
+
icon: {
|
|
97
|
+
contentType: 'image/png,image/jpeg,image/tiff,image/webp',
|
|
1410
98
|
},
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
},
|
|
1414
|
-
responses: {
|
|
1415
|
-
200: {
|
|
1416
|
-
description: 'The updated member',
|
|
1417
|
-
content: {
|
|
1418
|
-
'application/json': {
|
|
1419
|
-
schema: {
|
|
1420
|
-
$ref: '#/components/schemas/OrganizationMember',
|
|
1421
|
-
},
|
|
99
|
+
screenshots: {
|
|
100
|
+
contentType: 'image/png,image/jpeg,image/tiff,image/webp',
|
|
1422
101
|
},
|
|
1423
102
|
},
|
|
1424
103
|
},
|
|
1425
104
|
},
|
|
1426
|
-
security: [{ studio: [] }, { app: [] }, { cli: ['teams:write'] }],
|
|
1427
105
|
},
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
responses: {
|
|
1433
|
-
204: {
|
|
1434
|
-
description: 'The team member has been removed successfully.',
|
|
1435
|
-
},
|
|
106
|
+
responses: {
|
|
107
|
+
201: {
|
|
108
|
+
description: 'The app that was created.',
|
|
109
|
+
$ref: '#/components/responses/app',
|
|
1436
110
|
},
|
|
1437
|
-
security: [{ studio: [] }, { app: [] }, { cli: ['teams:write'] }],
|
|
1438
111
|
},
|
|
112
|
+
security: [{ studio: [] }, { cli: ['apps:write'] }],
|
|
1439
113
|
},
|
|
1440
|
-
|
|
114
|
+
get: {
|
|
115
|
+
tags: ['main', 'app'],
|
|
1441
116
|
parameters: [
|
|
1442
|
-
{ $ref: '#/components/parameters/appId' },
|
|
1443
117
|
{
|
|
1444
|
-
name: '
|
|
1445
|
-
|
|
1446
|
-
description: 'The
|
|
1447
|
-
|
|
1448
|
-
schema: { type: 'number', readOnly: true },
|
|
118
|
+
name: 'language',
|
|
119
|
+
schema: { type: 'string' },
|
|
120
|
+
description: 'The language to include the translations of, if available',
|
|
121
|
+
in: 'query',
|
|
1449
122
|
},
|
|
1450
123
|
],
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
description: 'The team invite to create.',
|
|
1457
|
-
required: true,
|
|
1458
|
-
content: {
|
|
1459
|
-
'application/json': {
|
|
1460
|
-
schema: {
|
|
1461
|
-
type: 'object',
|
|
1462
|
-
required: ['email'],
|
|
1463
|
-
properties: {
|
|
1464
|
-
email: {
|
|
1465
|
-
type: 'string',
|
|
1466
|
-
format: 'email',
|
|
1467
|
-
description: 'The email address of the user to invite.',
|
|
1468
|
-
},
|
|
1469
|
-
role: {
|
|
1470
|
-
type: 'string',
|
|
1471
|
-
enum: ['member', 'manager'],
|
|
1472
|
-
description: 'The role to invite the user as.',
|
|
1473
|
-
default: 'member',
|
|
1474
|
-
},
|
|
1475
|
-
},
|
|
1476
|
-
},
|
|
1477
|
-
},
|
|
1478
|
-
},
|
|
1479
|
-
},
|
|
1480
|
-
responses: {
|
|
1481
|
-
200: {
|
|
1482
|
-
description: 'The updated member',
|
|
1483
|
-
content: {
|
|
1484
|
-
'application/json': {
|
|
1485
|
-
schema: {
|
|
1486
|
-
$ref: '#/components/schemas/OrganizationMember',
|
|
1487
|
-
},
|
|
1488
|
-
},
|
|
1489
|
-
},
|
|
1490
|
-
},
|
|
1491
|
-
},
|
|
1492
|
-
security: [{ app: ['teams:write'] }],
|
|
1493
|
-
},
|
|
1494
|
-
},
|
|
1495
|
-
'/api/apps/{appId}/team/invite': {
|
|
1496
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
1497
|
-
get: {
|
|
1498
|
-
tags: ['app'],
|
|
1499
|
-
description: 'Get details of a team invite.',
|
|
1500
|
-
operationId: 'getTeamInvite',
|
|
1501
|
-
parameters: [
|
|
1502
|
-
{
|
|
1503
|
-
name: 'code',
|
|
1504
|
-
in: 'query',
|
|
1505
|
-
description: 'The ID code of the team invite',
|
|
1506
|
-
required: true,
|
|
1507
|
-
schema: { type: 'string', readOnly: true },
|
|
1508
|
-
},
|
|
1509
|
-
],
|
|
1510
|
-
responses: {
|
|
1511
|
-
200: {
|
|
1512
|
-
description: 'The team invite',
|
|
1513
|
-
content: {
|
|
1514
|
-
'application/json': {
|
|
1515
|
-
schema: {
|
|
1516
|
-
$ref: '#/components/schemas/OrganizationMember',
|
|
1517
|
-
},
|
|
1518
|
-
},
|
|
1519
|
-
},
|
|
1520
|
-
},
|
|
1521
|
-
},
|
|
1522
|
-
security: [{ app: ['teams:read'] }],
|
|
1523
|
-
},
|
|
1524
|
-
post: {
|
|
1525
|
-
tags: ['app'],
|
|
1526
|
-
operationId: 'acceptTeamInvite',
|
|
1527
|
-
requestBody: {
|
|
124
|
+
description: 'Get all existing apps.',
|
|
125
|
+
operationId: 'queryApps',
|
|
126
|
+
responses: {
|
|
127
|
+
200: {
|
|
128
|
+
description: 'The list of all apps.',
|
|
1528
129
|
content: {
|
|
1529
130
|
'application/json': {
|
|
1530
131
|
schema: {
|
|
1531
|
-
type: '
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
code: { type: 'string' },
|
|
132
|
+
type: 'array',
|
|
133
|
+
items: {
|
|
134
|
+
$ref: '#/components/schemas/App',
|
|
1535
135
|
},
|
|
1536
136
|
},
|
|
1537
137
|
},
|
|
1538
138
|
},
|
|
1539
139
|
},
|
|
1540
|
-
responses: {
|
|
1541
|
-
200: {
|
|
1542
|
-
description: 'The created member',
|
|
1543
|
-
content: {
|
|
1544
|
-
'application/json': {
|
|
1545
|
-
schema: {
|
|
1546
|
-
$ref: '#/components/schemas/OrganizationMember',
|
|
1547
|
-
},
|
|
1548
|
-
},
|
|
1549
|
-
},
|
|
1550
|
-
},
|
|
1551
|
-
},
|
|
1552
|
-
security: [{ app: ['teams:read'] }],
|
|
1553
|
-
},
|
|
1554
|
-
},
|
|
1555
|
-
'/api/apps/{appId}/reseed': {
|
|
1556
|
-
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
1557
|
-
post: {
|
|
1558
|
-
tags: ['app'],
|
|
1559
|
-
operationId: 'reseedDemoApp',
|
|
1560
|
-
responses: {
|
|
1561
|
-
200: { description: 'The app has successfully been reseeded.' },
|
|
1562
|
-
},
|
|
1563
|
-
security: [{ studio: ['apps:write'] }],
|
|
1564
140
|
},
|
|
141
|
+
security: [{ studio: [] }, {}],
|
|
1565
142
|
},
|
|
1566
143
|
};
|
|
1567
144
|
//# sourceMappingURL=apps.js.map
|