@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.
Files changed (493) hide show
  1. package/README.md +3 -3
  2. package/api/components/parameters/$own.d.ts +2 -0
  3. package/api/components/parameters/$own.js +7 -0
  4. package/api/components/parameters/appMemberId.d.ts +2 -0
  5. package/api/components/parameters/appMemberId.js +8 -0
  6. package/api/components/parameters/groupId.d.ts +2 -0
  7. package/api/components/parameters/groupId.js +8 -0
  8. package/api/components/parameters/groupMemberId.d.ts +2 -0
  9. package/api/components/parameters/groupMemberId.js +8 -0
  10. package/api/components/parameters/index.d.ts +17 -13
  11. package/api/components/parameters/index.js +17 -13
  12. package/api/components/parameters/organizationId.d.ts +9 -2
  13. package/api/components/parameters/organizationId.js +1 -1
  14. package/api/components/parameters/roles.js +12 -6
  15. package/api/components/parameters/seed.d.ts +2 -0
  16. package/api/components/parameters/seed.js +9 -0
  17. package/api/components/parameters/selectedGroupId.d.ts +2 -0
  18. package/api/components/parameters/selectedGroupId.js +7 -0
  19. package/api/components/parameters/serviceSecretId.d.ts +2 -0
  20. package/api/components/parameters/{appServiceId.js → serviceSecretId.js} +3 -3
  21. package/api/components/requestBodies/oauth2Consent.js +1 -5
  22. package/api/components/requestBodies/user.js +1 -1
  23. package/api/components/schemas/ActionDefinition.js +14 -11
  24. package/api/components/schemas/AppAccount.js +7 -24
  25. package/api/components/schemas/AppDefinition.js +3 -15
  26. package/api/components/schemas/AppMember.d.ts +2 -0
  27. package/api/components/schemas/AppMember.js +26 -0
  28. package/api/components/schemas/AppMemberCurrentPatchActionDefinition.d.ts +1 -0
  29. package/api/components/schemas/AppMemberCurrentPatchActionDefinition.js +30 -0
  30. package/api/components/schemas/AppMemberDeleteActionDefinition.d.ts +1 -0
  31. package/api/components/schemas/AppMemberDeleteActionDefinition.js +20 -0
  32. package/api/components/schemas/AppMemberInfo.d.ts +2 -0
  33. package/api/components/schemas/AppMemberInfo.js +48 -0
  34. package/api/components/schemas/AppMemberInviteActionDefinition.d.ts +1 -0
  35. package/api/components/schemas/AppMemberInviteActionDefinition.js +24 -0
  36. package/api/components/schemas/AppMemberLoginActionDefinition.d.ts +1 -0
  37. package/api/components/schemas/AppMemberLoginActionDefinition.js +24 -0
  38. package/api/components/schemas/AppMemberLogoutActionDefinition.d.ts +1 -0
  39. package/api/components/schemas/AppMemberLogoutActionDefinition.js +14 -0
  40. package/api/components/schemas/AppMemberPropertiesPatchActionDefinition.d.ts +1 -0
  41. package/api/components/schemas/AppMemberPropertiesPatchActionDefinition.js +26 -0
  42. package/api/components/schemas/AppMemberPropertyDefinition.d.ts +2 -0
  43. package/api/components/schemas/{UserPropertyDefinition.js → AppMemberPropertyDefinition.js} +5 -5
  44. package/api/components/schemas/AppMemberQueryActionDefinition.d.ts +1 -0
  45. package/api/components/schemas/AppMemberQueryActionDefinition.js +20 -0
  46. package/api/components/schemas/AppMemberRegisterActionDefinition.d.ts +1 -0
  47. package/api/components/schemas/AppMemberRegisterActionDefinition.js +43 -0
  48. package/api/components/schemas/AppMemberRoleUpdateActionDefinition.d.ts +1 -0
  49. package/api/components/schemas/AppMemberRoleUpdateActionDefinition.js +27 -0
  50. package/api/components/schemas/AppMembersDefinition.d.ts +2 -0
  51. package/api/components/schemas/AppMembersDefinition.js +17 -0
  52. package/api/components/schemas/GroupMember.d.ts +2 -0
  53. package/api/components/schemas/GroupMember.js +19 -0
  54. package/api/components/schemas/GroupMemberDeleteActionDefinition.d.ts +1 -0
  55. package/api/components/schemas/{TeamMembersActionDefinition.js → GroupMemberDeleteActionDefinition.js} +5 -5
  56. package/api/components/schemas/GroupMemberInviteActionDefinition.d.ts +1 -0
  57. package/api/components/schemas/{TeamInviteActionDefinition.js → GroupMemberInviteActionDefinition.js} +5 -6
  58. package/api/components/schemas/GroupMemberQueryActionDefinition.d.ts +1 -0
  59. package/api/components/schemas/GroupMemberQueryActionDefinition.js +18 -0
  60. package/api/components/schemas/GroupMemberRoleUpdateActionDefinition.d.ts +1 -0
  61. package/api/components/schemas/GroupMemberRoleUpdateActionDefinition.js +22 -0
  62. package/api/components/schemas/GroupQueryActionDefinition.d.ts +1 -0
  63. package/api/components/schemas/{UserLogoutActionDefinition.js → GroupQueryActionDefinition.js} +4 -4
  64. package/api/components/schemas/OrganizationMember.js +2 -2
  65. package/api/components/schemas/ResourceCountActionDefinition.js +4 -0
  66. package/api/components/schemas/ResourceCreateActionDefinition.js +1 -1
  67. package/api/components/schemas/ResourceDefinition.js +0 -22
  68. package/api/components/schemas/ResourceQueryActionDefinition.js +4 -0
  69. package/api/components/schemas/SecurityDefaultDefinition.js +1 -1
  70. package/api/components/schemas/SecurityDefinition.js +2 -6
  71. package/api/components/schemas/SecurityGuestDefinition.d.ts +2 -0
  72. package/api/components/schemas/SecurityGuestDefinition.js +26 -0
  73. package/api/components/schemas/SecurityRoleDefinition.js +7 -0
  74. package/api/components/schemas/User.js +2 -22
  75. package/api/components/schemas/UserInfo.d.ts +2 -0
  76. package/api/components/schemas/UserInfo.js +42 -0
  77. package/api/components/schemas/index.d.ts +22 -15
  78. package/api/components/schemas/index.js +22 -15
  79. package/api/components/securitySchemes/app.js +6 -6
  80. package/api/components/securitySchemes/cli.js +3 -3
  81. package/api/paths/app-collections/appCollectionId/apps/appId/pinned.d.ts +2 -0
  82. package/api/paths/app-collections/appCollectionId/apps/appId/pinned.js +70 -0
  83. package/api/paths/app-collections/appCollectionId/apps/appId.d.ts +2 -0
  84. package/api/paths/app-collections/appCollectionId/apps/appId.js +34 -0
  85. package/api/paths/app-collections/appCollectionId/apps.d.ts +2 -0
  86. package/api/paths/app-collections/appCollectionId/apps.js +93 -0
  87. package/api/paths/app-collections/appCollectionId/expert/profileImage.d.ts +2 -0
  88. package/api/paths/app-collections/appCollectionId/expert/profileImage.js +31 -0
  89. package/api/paths/app-collections/appCollectionId/headerImage.d.ts +2 -0
  90. package/api/paths/app-collections/appCollectionId/headerImage.js +31 -0
  91. package/api/paths/app-collections/appCollectionId.d.ts +2 -0
  92. package/api/paths/app-collections/appCollectionId.js +102 -0
  93. package/api/paths/app-invites/token/respond.d.ts +2 -0
  94. package/api/paths/app-invites/token/respond.js +51 -0
  95. package/api/paths/app-invites/token.d.ts +2 -0
  96. package/api/paths/app-invites/token.js +23 -0
  97. package/api/paths/app-members/appMemberId/picture.d.ts +2 -0
  98. package/api/paths/app-members/appMemberId/picture.js +30 -0
  99. package/api/paths/app-members/appMemberId/properties.d.ts +2 -0
  100. package/api/paths/app-members/appMemberId/properties.js +48 -0
  101. package/api/paths/app-members/appMemberId/role.d.ts +2 -0
  102. package/api/paths/app-members/appMemberId/role.js +46 -0
  103. package/api/paths/app-members/appMemberId.d.ts +2 -0
  104. package/api/paths/app-members/appMemberId.js +24 -0
  105. package/api/paths/appCollections.d.ts +1 -1
  106. package/api/paths/appCollections.js +12 -454
  107. package/api/paths/appTemplates.d.ts +2 -0
  108. package/api/paths/appTemplates.js +94 -0
  109. package/api/paths/apps/appId/actions/path.d.ts +2 -0
  110. package/api/paths/{action.js → apps/appId/actions/path.js} +18 -20
  111. package/api/paths/apps/appId/assets/assetId.d.ts +2 -0
  112. package/api/paths/apps/appId/assets/assetId.js +38 -0
  113. package/api/paths/apps/appId/assets/count.d.ts +2 -0
  114. package/api/paths/apps/appId/assets/count.js +22 -0
  115. package/api/paths/apps/appId/assets.d.ts +2 -0
  116. package/api/paths/apps/appId/assets.js +96 -0
  117. package/api/paths/apps/appId/auth/email/login.d.ts +2 -0
  118. package/api/paths/apps/appId/auth/email/login.js +10 -0
  119. package/api/paths/apps/appId/auth/email/register.d.ts +2 -0
  120. package/api/paths/apps/appId/auth/email/register.js +52 -0
  121. package/api/paths/apps/appId/auth/email/requestResetPassword.d.ts +2 -0
  122. package/api/paths/apps/appId/auth/email/requestResetPassword.js +31 -0
  123. package/api/paths/apps/appId/auth/email/resendVerification.d.ts +2 -0
  124. package/api/paths/apps/appId/auth/email/resendVerification.js +32 -0
  125. package/api/paths/apps/appId/auth/email/resetPassword.d.ts +2 -0
  126. package/api/paths/apps/appId/auth/email/resetPassword.js +34 -0
  127. package/api/paths/apps/appId/auth/email/verify.d.ts +2 -0
  128. package/api/paths/apps/appId/auth/email/verify.js +31 -0
  129. package/api/paths/apps/appId/broadcast.d.ts +2 -0
  130. package/api/paths/apps/appId/broadcast.js +36 -0
  131. package/api/paths/apps/appId/demo-groups.d.ts +2 -0
  132. package/api/paths/apps/appId/demo-groups.js +29 -0
  133. package/api/paths/apps/appId/demo-members.d.ts +2 -0
  134. package/api/paths/apps/appId/demo-members.js +27 -0
  135. package/api/paths/apps/appId/email.d.ts +2 -0
  136. package/api/paths/apps/appId/email.js +48 -0
  137. package/api/paths/apps/appId/export.d.ts +2 -0
  138. package/api/paths/apps/appId/export.js +41 -0
  139. package/api/paths/apps/appId/groups.d.ts +2 -0
  140. package/api/paths/apps/appId/groups.js +79 -0
  141. package/api/paths/apps/appId/icon.d.ts +2 -0
  142. package/api/paths/apps/appId/icon.js +31 -0
  143. package/api/paths/apps/appId/invites.d.ts +2 -0
  144. package/api/paths/apps/appId/invites.js +79 -0
  145. package/api/paths/apps/appId/lock.d.ts +2 -0
  146. package/api/paths/apps/appId/lock.js +35 -0
  147. package/api/paths/apps/appId/maskableIcon.d.ts +2 -0
  148. package/api/paths/apps/appId/maskableIcon.js +15 -0
  149. package/api/paths/apps/appId/members/current/groups.d.ts +2 -0
  150. package/api/paths/apps/appId/members/current/groups.js +30 -0
  151. package/api/paths/apps/appId/members/current/link.d.ts +2 -0
  152. package/api/paths/apps/appId/members/current/link.js +41 -0
  153. package/api/paths/apps/appId/members/current.d.ts +2 -0
  154. package/api/paths/apps/appId/members/current.js +111 -0
  155. package/api/paths/apps/appId/members.d.ts +2 -0
  156. package/api/paths/apps/appId/members.js +29 -0
  157. package/api/paths/apps/appId/messages/language.d.ts +2 -0
  158. package/api/paths/apps/appId/messages/language.js +47 -0
  159. package/api/paths/apps/appId/messages.d.ts +2 -0
  160. package/api/paths/apps/appId/messages.js +72 -0
  161. package/api/paths/apps/appId/quotas/emails.d.ts +2 -0
  162. package/api/paths/apps/appId/quotas/emails.js +36 -0
  163. package/api/paths/apps/appId/ratings.d.ts +2 -0
  164. package/api/paths/apps/appId/ratings.js +58 -0
  165. package/api/paths/apps/appId/readmes/readmeId.d.ts +2 -0
  166. package/api/paths/apps/appId/readmes/readmeId.js +17 -0
  167. package/api/paths/apps/appId/reseed.d.ts +2 -0
  168. package/api/paths/apps/appId/reseed.js +12 -0
  169. package/api/paths/apps/appId/resources/resourceType/count.d.ts +2 -0
  170. package/api/paths/apps/appId/resources/resourceType/count.js +30 -0
  171. package/api/paths/apps/appId/resources/resourceType/resourceId/subscriptions.d.ts +2 -0
  172. package/api/paths/apps/appId/resources/resourceType/resourceId/subscriptions.js +31 -0
  173. package/api/paths/apps/appId/resources/resourceType/resourceId.d.ts +2 -0
  174. package/api/paths/apps/appId/resources/resourceType/resourceId.js +74 -0
  175. package/api/paths/apps/appId/resources/resourceType/subscriptions.d.ts +2 -0
  176. package/api/paths/apps/appId/resources/resourceType/subscriptions.js +26 -0
  177. package/api/paths/apps/appId/resources/resourceType.d.ts +2 -0
  178. package/api/paths/apps/appId/resources/resourceType.js +171 -0
  179. package/api/paths/apps/appId/resources/versions.d.ts +2 -0
  180. package/api/paths/apps/appId/resources/versions.js +29 -0
  181. package/api/paths/apps/appId/resources.d.ts +2 -0
  182. package/api/paths/apps/appId/resources.js +15 -0
  183. package/api/paths/apps/appId/saml/secretId/acs.d.ts +2 -0
  184. package/api/paths/apps/appId/saml/secretId/acs.js +35 -0
  185. package/api/paths/apps/appId/saml/secretId/authn.d.ts +2 -0
  186. package/api/paths/apps/appId/saml/secretId/authn.js +37 -0
  187. package/api/paths/apps/appId/saml/secretId/metadata.d.ts +2 -0
  188. package/api/paths/apps/appId/saml/secretId/metadata.js +21 -0
  189. package/api/paths/apps/appId/scim/resource-types/resourceTypeId.d.ts +2 -0
  190. package/api/paths/apps/appId/scim/resource-types/resourceTypeId.js +25 -0
  191. package/api/paths/apps/appId/scim/resource-types.d.ts +2 -0
  192. package/api/paths/apps/appId/scim/resource-types.js +22 -0
  193. package/api/paths/apps/appId/scim/schemas/schemaId.d.ts +2 -0
  194. package/api/paths/apps/appId/scim/schemas/schemaId.js +24 -0
  195. package/api/paths/apps/appId/scim/schemas.d.ts +2 -0
  196. package/api/paths/apps/appId/scim/schemas.js +21 -0
  197. package/api/paths/apps/appId/scim/service-provider-config.d.ts +2 -0
  198. package/api/paths/apps/appId/scim/service-provider-config.js +22 -0
  199. package/api/paths/apps/appId/scim/users/userId.d.ts +2 -0
  200. package/api/paths/apps/appId/scim/users/userId.js +92 -0
  201. package/api/paths/apps/appId/scim/users.d.ts +2 -0
  202. package/api/paths/apps/appId/scim/users.js +58 -0
  203. package/api/paths/apps/appId/screenshots/screenshotId.d.ts +2 -0
  204. package/api/paths/apps/appId/screenshots/screenshotId.js +28 -0
  205. package/api/paths/apps/appId/screenshots.d.ts +2 -0
  206. package/api/paths/apps/appId/screenshots.js +55 -0
  207. package/api/paths/apps/appId/secrets/oauth2/secretId/verify.d.ts +2 -0
  208. package/api/paths/apps/appId/secrets/oauth2/secretId/verify.js +47 -0
  209. package/api/paths/apps/appId/secrets/oauth2/secretId.d.ts +2 -0
  210. package/api/paths/apps/appId/secrets/oauth2/secretId.js +60 -0
  211. package/api/paths/apps/appId/secrets/oauth2.d.ts +2 -0
  212. package/api/paths/apps/appId/secrets/oauth2.js +54 -0
  213. package/api/paths/apps/appId/secrets/saml/secretId.d.ts +2 -0
  214. package/api/paths/apps/appId/secrets/saml/secretId.js +39 -0
  215. package/api/paths/apps/appId/secrets/saml.d.ts +2 -0
  216. package/api/paths/apps/appId/secrets/saml.js +54 -0
  217. package/api/paths/apps/appId/secrets/scim.d.ts +2 -0
  218. package/api/paths/apps/appId/secrets/scim.js +43 -0
  219. package/api/paths/apps/appId/secrets/service/secretId.d.ts +2 -0
  220. package/api/paths/apps/appId/secrets/service/secretId.js +39 -0
  221. package/api/paths/apps/appId/secrets/service.d.ts +2 -0
  222. package/api/paths/apps/appId/secrets/service.js +54 -0
  223. package/api/paths/apps/appId/secrets/ssl.d.ts +2 -0
  224. package/api/paths/apps/appId/secrets/ssl.js +37 -0
  225. package/api/paths/apps/appId/snapshots/snapshotId.d.ts +2 -0
  226. package/api/paths/apps/appId/snapshots/snapshotId.js +47 -0
  227. package/api/paths/apps/appId/snapshots.d.ts +2 -0
  228. package/api/paths/apps/appId/snapshots.js +40 -0
  229. package/api/paths/apps/appId/style/block/organizationId/blockId.d.ts +2 -0
  230. package/api/paths/apps/appId/style/block/organizationId/blockId.js +53 -0
  231. package/api/paths/apps/appId/style/core.d.ts +2 -0
  232. package/api/paths/apps/appId/style/core.js +17 -0
  233. package/api/paths/apps/appId/style/shared.d.ts +2 -0
  234. package/api/paths/apps/appId/style/shared.js +17 -0
  235. package/api/paths/apps/appId/subscriptions.d.ts +2 -0
  236. package/api/paths/apps/appId/subscriptions.js +91 -0
  237. package/api/paths/apps/appId/variables/variableId.d.ts +2 -0
  238. package/api/paths/apps/appId/variables/variableId.js +39 -0
  239. package/api/paths/apps/appId/variables.d.ts +2 -0
  240. package/api/paths/apps/appId/variables.js +53 -0
  241. package/api/paths/apps/appId.d.ts +2 -0
  242. package/api/paths/apps/appId.js +175 -0
  243. package/api/paths/apps.d.ts +1 -1
  244. package/api/paths/apps.js +95 -1518
  245. package/api/paths/auth/email/login.d.ts +2 -0
  246. package/api/paths/auth/email/login.js +10 -0
  247. package/api/paths/auth/email/register.d.ts +2 -0
  248. package/api/paths/auth/email/register.js +45 -0
  249. package/api/paths/auth/email/requestResetPassword.d.ts +2 -0
  250. package/api/paths/auth/email/requestResetPassword.js +30 -0
  251. package/api/paths/auth/email/resendVerification.d.ts +2 -0
  252. package/api/paths/auth/email/resendVerification.js +31 -0
  253. package/api/paths/auth/email/resetPassword.d.ts +2 -0
  254. package/api/paths/auth/email/resetPassword.js +33 -0
  255. package/api/paths/auth/email/verify.d.ts +2 -0
  256. package/api/paths/auth/email/verify.js +30 -0
  257. package/api/paths/auth/oauth2/authorizations/connect.d.ts +2 -0
  258. package/api/paths/auth/oauth2/authorizations/connect.js +45 -0
  259. package/api/paths/auth/oauth2/authorizations/register.d.ts +2 -0
  260. package/api/paths/auth/oauth2/authorizations/register.js +32 -0
  261. package/api/paths/auth/refreshToken.d.ts +2 -0
  262. package/api/paths/auth/refreshToken.js +26 -0
  263. package/api/paths/blocks/organizationId/blockId/versions/list.d.ts +2 -0
  264. package/api/paths/blocks/organizationId/blockId/versions/list.js +27 -0
  265. package/api/paths/blocks/organizationId/blockId/versions/version/asset.d.ts +2 -0
  266. package/api/paths/blocks/organizationId/blockId/versions/version/asset.js +24 -0
  267. package/api/paths/blocks/organizationId/blockId/versions/version/icon.d.ts +2 -0
  268. package/api/paths/blocks/organizationId/blockId/versions/version/icon.js +18 -0
  269. package/api/paths/blocks/organizationId/blockId/versions/version/messages/language.d.ts +2 -0
  270. package/api/paths/blocks/organizationId/blockId/versions/version/messages/language.js +37 -0
  271. package/api/paths/blocks/organizationId/blockId/versions/version.d.ts +2 -0
  272. package/api/paths/blocks/organizationId/blockId/versions/version.js +29 -0
  273. package/api/paths/blocks/organizationId/blockId/versions.d.ts +2 -0
  274. package/api/paths/blocks/organizationId/blockId/versions.js +27 -0
  275. package/api/paths/blocks/organizationId/blockId.d.ts +2 -0
  276. package/api/paths/blocks/organizationId/blockId.js +18 -0
  277. package/api/paths/blocks/versions/blockVersion.js +21 -0
  278. package/api/paths/blocks.d.ts +1 -1
  279. package/api/paths/blocks.js +29 -204
  280. package/api/paths/containerLogs.d.ts +1 -1
  281. package/api/paths/containerLogs.js +28 -30
  282. package/api/paths/group-invites/token/respond.d.ts +2 -0
  283. package/api/paths/group-invites/token/respond.js +42 -0
  284. package/api/paths/group-invites/token.d.ts +2 -0
  285. package/api/paths/group-invites/token.js +23 -0
  286. package/api/paths/group-members/groupMemberId/role.d.ts +2 -0
  287. package/api/paths/group-members/groupMemberId/role.js +40 -0
  288. package/api/paths/group-members/groupMemberId.d.ts +2 -0
  289. package/api/paths/group-members/groupMemberId.js +34 -0
  290. package/api/paths/groups/groupId/invites.d.ts +2 -0
  291. package/api/paths/groups/groupId/invites.js +87 -0
  292. package/api/paths/groups/groupId/members.d.ts +2 -0
  293. package/api/paths/groups/groupId/members.js +34 -0
  294. package/api/paths/groups/groupId.d.ts +2 -0
  295. package/api/paths/groups/groupId.js +86 -0
  296. package/api/paths/health.d.ts +1 -1
  297. package/api/paths/health.js +12 -66
  298. package/api/paths/index.d.ts +145 -136
  299. package/api/paths/index.js +294 -58
  300. package/api/paths/messages/language.d.ts +2 -0
  301. package/api/paths/messages/language.js +21 -0
  302. package/api/paths/messages.d.ts +2 -0
  303. package/api/paths/messages.js +26 -0
  304. package/api/paths/organization-invites/token/respond.d.ts +2 -0
  305. package/api/paths/organization-invites/token/respond.js +42 -0
  306. package/api/paths/organization-invites/token.d.ts +2 -0
  307. package/api/paths/organization-invites/token.js +23 -0
  308. package/api/paths/organizations/organizationId/appCollections.d.ts +2 -0
  309. package/api/paths/organizations/organizationId/appCollections.js +76 -0
  310. package/api/paths/organizations/organizationId/apps/import.d.ts +2 -0
  311. package/api/paths/organizations/organizationId/apps/import.js +26 -0
  312. package/api/paths/organizations/organizationId/apps.d.ts +2 -0
  313. package/api/paths/organizations/organizationId/apps.js +33 -0
  314. package/api/paths/organizations/organizationId/blocks.d.ts +2 -0
  315. package/api/paths/organizations/organizationId/blocks.js +25 -0
  316. package/api/paths/organizations/organizationId/icon.d.ts +2 -0
  317. package/api/paths/organizations/organizationId/icon.js +14 -0
  318. package/api/paths/organizations/organizationId/invites/resend.d.ts +2 -0
  319. package/api/paths/organizations/organizationId/invites/resend.js +32 -0
  320. package/api/paths/organizations/organizationId/invites.d.ts +2 -0
  321. package/api/paths/organizations/organizationId/invites.js +108 -0
  322. package/api/paths/organizations/organizationId/members/memberId/role.d.ts +2 -0
  323. package/api/paths/organizations/organizationId/members/memberId/role.js +50 -0
  324. package/api/paths/organizations/organizationId/members/memberId.d.ts +2 -0
  325. package/api/paths/organizations/organizationId/members/memberId.js +25 -0
  326. package/api/paths/organizations/organizationId/members.d.ts +2 -0
  327. package/api/paths/organizations/organizationId/members.js +25 -0
  328. package/api/paths/organizations/organizationId.d.ts +2 -0
  329. package/api/paths/organizations/organizationId.js +67 -0
  330. package/api/paths/organizations.d.ts +1 -1
  331. package/api/paths/organizations.js +46 -452
  332. package/api/paths/ssl.d.ts +2 -0
  333. package/api/paths/ssl.js +31 -0
  334. package/api/paths/timezones.d.ts +2 -0
  335. package/api/paths/timezones.js +23 -0
  336. package/api/paths/trainingBlocks/trainingBlockId.d.ts +2 -0
  337. package/api/paths/trainingBlocks/trainingBlockId.js +41 -0
  338. package/api/paths/trainings/trainingId/blocks.d.ts +2 -0
  339. package/api/paths/trainings/trainingId/blocks.js +51 -0
  340. package/api/paths/trainings/trainingId/users/current.d.ts +2 -0
  341. package/api/paths/trainings/trainingId/users/current.js +62 -0
  342. package/api/paths/trainings/trainingId/users.d.ts +2 -0
  343. package/api/paths/trainings/trainingId/users.js +25 -0
  344. package/api/paths/trainings/trainingId.d.ts +2 -0
  345. package/api/paths/trainings/trainingId.js +85 -0
  346. package/api/paths/trainings.d.ts +1 -1
  347. package/api/paths/trainings.js +26 -287
  348. package/api/paths/users/current/apps/accounts.d.ts +2 -0
  349. package/api/paths/users/current/apps/accounts.js +24 -0
  350. package/api/paths/users/current/apps/appId/account.d.ts +2 -0
  351. package/api/paths/users/current/apps/appId/account.js +65 -0
  352. package/api/paths/users/current/apps.d.ts +2 -0
  353. package/api/paths/users/current/apps.js +32 -0
  354. package/api/paths/users/current/auth/oauth2/apps/appId/consent/agree.d.ts +2 -0
  355. package/api/paths/users/current/auth/oauth2/apps/appId/consent/agree.js +12 -0
  356. package/api/paths/users/current/auth/oauth2/apps/appId/consent/verify.d.ts +2 -0
  357. package/api/paths/users/current/auth/oauth2/apps/appId/consent/verify.js +12 -0
  358. package/api/paths/users/current/auth/oauth2/authorizations.d.ts +2 -0
  359. package/api/paths/users/current/auth/oauth2/authorizations.js +43 -0
  360. package/api/paths/users/current/auth/oauth2/clientCredentials/clientId.d.ts +2 -0
  361. package/api/paths/users/current/auth/oauth2/clientCredentials/clientId.js +23 -0
  362. package/api/paths/users/current/auth/oauth2/clientCredentials.d.ts +2 -0
  363. package/api/paths/users/current/auth/oauth2/clientCredentials.js +53 -0
  364. package/api/paths/users/current/emails.d.ts +2 -0
  365. package/api/paths/users/current/emails.js +73 -0
  366. package/api/paths/users/current/organizations.d.ts +2 -0
  367. package/api/paths/users/current/organizations.js +29 -0
  368. package/api/paths/users/current/unsubscribe.d.ts +2 -0
  369. package/api/paths/users/current/unsubscribe.js +29 -0
  370. package/api/paths/users/current.d.ts +2 -0
  371. package/api/paths/users/current.js +43 -0
  372. package/api/paths/users/subscribed.d.ts +2 -0
  373. package/api/paths/users/subscribed.js +12 -0
  374. package/api/tags/index.d.ts +2 -1
  375. package/api/tags/index.js +170 -8
  376. package/appMembers.d.ts +1 -0
  377. package/appMembers.js +9 -0
  378. package/authorization.d.ts +12 -0
  379. package/authorization.js +171 -0
  380. package/constants/index.d.ts +0 -2
  381. package/constants/index.js +0 -2
  382. package/constants/scopes.d.ts +1 -1
  383. package/constants/scopes.js +2 -2
  384. package/examples.js +13 -14
  385. package/index.d.ts +2 -2
  386. package/index.js +2 -2
  387. package/package.json +2 -2
  388. package/reference-schemas/remappers/data.js +23 -38
  389. package/remap.d.ts +3 -7
  390. package/remap.js +1 -2
  391. package/remap.test.js +8 -9
  392. package/validation.js +396 -83
  393. package/validation.test.js +1039 -230
  394. package/api/components/parameters/$team.d.ts +0 -2
  395. package/api/components/parameters/$team.js +0 -8
  396. package/api/components/parameters/appServiceId.d.ts +0 -2
  397. package/api/components/parameters/memberEmail.d.ts +0 -2
  398. package/api/components/parameters/memberEmail.js +0 -8
  399. package/api/components/schemas/TeamInviteActionDefinition.d.ts +0 -1
  400. package/api/components/schemas/TeamJoinActionDefinition.d.ts +0 -1
  401. package/api/components/schemas/TeamJoinActionDefinition.js +0 -14
  402. package/api/components/schemas/TeamListActionDefinition.d.ts +0 -1
  403. package/api/components/schemas/TeamListActionDefinition.js +0 -14
  404. package/api/components/schemas/TeamMembersActionDefinition.d.ts +0 -1
  405. package/api/components/schemas/TeamsDefinition.d.ts +0 -2
  406. package/api/components/schemas/TeamsDefinition.js +0 -28
  407. package/api/components/schemas/UserCreateActionDefinition.d.ts +0 -1
  408. package/api/components/schemas/UserCreateActionDefinition.js +0 -33
  409. package/api/components/schemas/UserLoginActionDefinition.d.ts +0 -1
  410. package/api/components/schemas/UserLoginActionDefinition.js +0 -22
  411. package/api/components/schemas/UserLogoutActionDefinition.d.ts +0 -1
  412. package/api/components/schemas/UserPropertyDefinition.d.ts +0 -2
  413. package/api/components/schemas/UserQueryActionDefinition.d.ts +0 -1
  414. package/api/components/schemas/UserQueryActionDefinition.js +0 -20
  415. package/api/components/schemas/UserRegisterActionDefinition.d.ts +0 -1
  416. package/api/components/schemas/UserRegisterActionDefinition.js +0 -37
  417. package/api/components/schemas/UserRemoveActionDefinition.d.ts +0 -1
  418. package/api/components/schemas/UserRemoveActionDefinition.js +0 -20
  419. package/api/components/schemas/UserUpdateActionDefinition.d.ts +0 -1
  420. package/api/components/schemas/UserUpdateActionDefinition.js +0 -36
  421. package/api/components/schemas/UsersDefinition.d.ts +0 -2
  422. package/api/components/schemas/UsersDefinition.js +0 -17
  423. package/api/paths/appMessages.d.ts +0 -2
  424. package/api/paths/appMessages.js +0 -120
  425. package/api/paths/appOAuth2Secrets.d.ts +0 -2
  426. package/api/paths/appOAuth2Secrets.js +0 -161
  427. package/api/paths/appQuotas.d.ts +0 -2
  428. package/api/paths/appQuotas.js +0 -38
  429. package/api/paths/appSSLSecrets.d.ts +0 -2
  430. package/api/paths/appSSLSecrets.js +0 -39
  431. package/api/paths/appSamlSecrets.d.ts +0 -2
  432. package/api/paths/appSamlSecrets.js +0 -94
  433. package/api/paths/appScimEndpoints.d.ts +0 -2
  434. package/api/paths/appScimEndpoints.js +0 -260
  435. package/api/paths/appScimSecrets.d.ts +0 -2
  436. package/api/paths/appScimSecrets.js +0 -45
  437. package/api/paths/appServiceSecrets.d.ts +0 -2
  438. package/api/paths/appServiceSecrets.js +0 -94
  439. package/api/paths/appVariables.d.ts +0 -2
  440. package/api/paths/appVariables.js +0 -93
  441. package/api/paths/appsembleMessages.d.ts +0 -2
  442. package/api/paths/appsembleMessages.js +0 -48
  443. package/api/paths/assets.d.ts +0 -2
  444. package/api/paths/assets.js +0 -213
  445. package/api/paths/emails.d.ts +0 -2
  446. package/api/paths/emails.js +0 -167
  447. package/api/paths/invite.d.ts +0 -2
  448. package/api/paths/invite.js +0 -25
  449. package/api/paths/oauth2ClientCredentials.d.ts +0 -2
  450. package/api/paths/oauth2ClientCredentials.js +0 -77
  451. package/api/paths/oauth2Login.d.ts +0 -2
  452. package/api/paths/oauth2Login.js +0 -119
  453. package/api/paths/oauth2Provider.d.ts +0 -2
  454. package/api/paths/oauth2Provider.js +0 -75
  455. package/api/paths/resourceHistory.d.ts +0 -2
  456. package/api/paths/resourceHistory.js +0 -31
  457. package/api/paths/resources.d.ts +0 -2
  458. package/api/paths/resources.js +0 -395
  459. package/api/paths/saml.d.ts +0 -2
  460. package/api/paths/saml.js +0 -126
  461. package/api/paths/templates.d.ts +0 -2
  462. package/api/paths/templates.js +0 -96
  463. package/api/paths/user.d.ts +0 -2
  464. package/api/paths/user.js +0 -649
  465. package/api/tags/app.d.ts +0 -2
  466. package/api/tags/app.js +0 -5
  467. package/api/tags/appMember.d.ts +0 -2
  468. package/api/tags/appMember.js +0 -5
  469. package/api/tags/asset.d.ts +0 -2
  470. package/api/tags/asset.js +0 -5
  471. package/api/tags/auth.d.ts +0 -2
  472. package/api/tags/auth.js +0 -5
  473. package/api/tags/language.d.ts +0 -2
  474. package/api/tags/language.js +0 -5
  475. package/api/tags/organization.d.ts +0 -2
  476. package/api/tags/organization.js +0 -5
  477. package/api/tags/resource.d.ts +0 -2
  478. package/api/tags/resource.js +0 -5
  479. package/api/tags/template.d.ts +0 -2
  480. package/api/tags/template.js +0 -5
  481. package/api/tags/user.d.ts +0 -2
  482. package/api/tags/user.js +0 -5
  483. package/appSecurity.d.ts +0 -9
  484. package/appSecurity.js +0 -41
  485. package/appSecurity.test.d.ts +0 -1
  486. package/appSecurity.test.js +0 -114
  487. package/checkAppRole.d.ts +0 -11
  488. package/checkAppRole.js +0 -34
  489. package/constants/Permission.d.ts +0 -114
  490. package/constants/Permission.js +0 -116
  491. package/constants/roles.d.ts +0 -16
  492. package/constants/roles.js +0 -58
  493. /package/api/paths/{action.d.ts → blocks/versions/blockVersion.d.ts} +0 -0
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.29.10/config/assets/logo.svg) Appsemble Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.30.1/config/assets/logo.svg) Appsemble Utilities
2
2
 
3
3
  > Internal utility functions used across multiple Appsemble projects.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/utils)](https://www.npmjs.com/package/@appsemble/utils)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.29.10/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.29.10)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.30.1/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.30.1)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](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.10/LICENSE.md) ©
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,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const $own: OpenAPIV3.ParameterObject;
@@ -0,0 +1,7 @@
1
+ export const $own = {
2
+ name: '$own',
3
+ schema: { type: 'boolean' },
4
+ description: 'If only the resources created by the authenticated app member should be included',
5
+ in: 'query',
6
+ };
7
+ //# sourceMappingURL=$own.js.map
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const appMemberId: OpenAPIV3.ParameterObject;
@@ -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,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const groupId: OpenAPIV3.ParameterObject;
@@ -0,0 +1,8 @@
1
+ export const groupId = {
2
+ name: 'groupId',
3
+ in: 'path',
4
+ description: 'The ID of the group on which to perform an operation',
5
+ required: true,
6
+ schema: { type: 'number' },
7
+ };
8
+ //# sourceMappingURL=groupId.js.map
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const groupMemberId: OpenAPIV3.ParameterObject;
@@ -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 './readmeId.js';
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 './memberEmail.js';
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 './readmeId.js';
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 './memberEmail.js';
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
- import { type OpenAPIV3 } from 'openapi-types';
2
- export declare const organizationId: OpenAPIV3.ParameterObject;
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 users on which to perform an operation',
5
- required: true,
4
+ description: 'The roles of app members on which to perform an operation',
6
5
  schema: {
7
- type: 'array',
8
- items: {
9
- $ref: '#/components/schemas/AppAccount/properties/role',
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
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const seed: OpenAPIV3.ParameterObject;
@@ -0,0 +1,9 @@
1
+ export const seed = {
2
+ name: 'seed',
3
+ in: 'query',
4
+ description: `
5
+ Whether the resources or assets are seed instead.
6
+ `,
7
+ schema: { type: 'string' },
8
+ };
9
+ //# sourceMappingURL=seed.js.map
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const selectedGroupId: OpenAPIV3.ParameterObject;
@@ -0,0 +1,7 @@
1
+ export const selectedGroupId = {
2
+ name: 'selectedGroupId',
3
+ in: 'query',
4
+ description: 'The currently selected group of the app member.',
5
+ schema: { type: 'number' },
6
+ };
7
+ //# sourceMappingURL=selectedGroupId.js.map
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const serviceSecretId: OpenAPIV3.ParameterObject;
@@ -1,8 +1,8 @@
1
- export const appServiceId = {
2
- name: 'appServiceId',
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=appServiceId.js.map
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: ['appId', 'redirectUri', 'scope'],
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',
@@ -3,7 +3,7 @@ export const user = {
3
3
  content: {
4
4
  'application/json': {
5
5
  schema: {
6
- $ref: '#/components/schemas/User',
6
+ $ref: '#/components/schemas/UserInfo',
7
7
  },
8
8
  },
9
9
  },
@@ -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/TeamInviteActionDefinition' },
72
- { $ref: '#/components/schemas/TeamJoinActionDefinition' },
73
- { $ref: '#/components/schemas/TeamListActionDefinition' },
74
- { $ref: '#/components/schemas/TeamMembersActionDefinition' },
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/UserLoginActionDefinition' },
77
- { $ref: '#/components/schemas/UserLogoutActionDefinition' },
78
- { $ref: '#/components/schemas/UserRegisterActionDefinition' },
79
- { $ref: '#/components/schemas/UserCreateActionDefinition' },
80
- { $ref: '#/components/schemas/UserUpdateActionDefinition' },
81
- { $ref: '#/components/schemas/UserQueryActionDefinition' },
82
- { $ref: '#/components/schemas/UserRemoveActionDefinition' },
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 user account connected to an app',
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/AppDefinition',
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
- users: {
72
- $ref: '#/components/schemas/UsersDefinition',
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,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const AppMember: OpenAPIV3.NonArraySchemaObject;
@@ -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,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const AppMemberInfo: OpenAPIV3.NonArraySchemaObject;
@@ -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;