@appsemble/utils 0.29.11 → 0.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -0,0 +1,26 @@
1
+ import { BaseActionDefinition } from './BaseActionDefinition.js';
2
+ import { extendJSONSchema } from './utils.js';
3
+ export const AppMemberPropertiesPatchActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
+ type: 'object',
5
+ additionalProperties: false,
6
+ required: ['type', 'sub'],
7
+ properties: {
8
+ type: {
9
+ enum: ['app.member.properties.patch'],
10
+ description: `Allows the app member to patch the properties of another app member account.
11
+
12
+ Does nothing if the app member isn’t logged in.`,
13
+ },
14
+ sub: {
15
+ $ref: '#/components/schemas/RemapperDefinition',
16
+ description: 'The new full name name of the app member.',
17
+ },
18
+ properties: {
19
+ $ref: '#/components/schemas/RemapperDefinition',
20
+ description: `The updated custom properties for the app member.
21
+
22
+ Values will be validated based on \`members.properties\`, if defined in the app definition.`,
23
+ },
24
+ },
25
+ });
26
+ //# sourceMappingURL=AppMemberPropertiesPatchActionDefinition.js.map
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const AppMemberPropertyDefinition: OpenAPIV3.NonArraySchemaObject;
@@ -1,8 +1,8 @@
1
- export const UserPropertyDefinition = {
1
+ export const AppMemberPropertyDefinition = {
2
2
  anyOf: [
3
3
  {
4
4
  type: 'object',
5
- description: 'Definition for a user property.',
5
+ description: 'Definition for an app member custom property.',
6
6
  required: ['schema'],
7
7
  additionalProperties: false,
8
8
  properties: {
@@ -19,7 +19,7 @@ export const UserPropertyDefinition = {
19
19
  properties: {
20
20
  resource: {
21
21
  type: 'string',
22
- description: 'The resource referenced by this user property.',
22
+ description: 'The resource referenced by this app member property.',
23
23
  },
24
24
  },
25
25
  },
@@ -27,7 +27,7 @@ export const UserPropertyDefinition = {
27
27
  },
28
28
  {
29
29
  type: 'object',
30
- description: 'Definition for a user property.',
30
+ description: 'Definition for an app member property.',
31
31
  required: ['schema'],
32
32
  additionalProperties: false,
33
33
  properties: {
@@ -46,4 +46,4 @@ export const UserPropertyDefinition = {
46
46
  },
47
47
  ],
48
48
  };
49
- //# sourceMappingURL=UserPropertyDefinition.js.map
49
+ //# sourceMappingURL=AppMemberPropertyDefinition.js.map
@@ -0,0 +1 @@
1
+ export declare const AppMemberQueryActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
@@ -0,0 +1,20 @@
1
+ import { BaseActionDefinition } from './BaseActionDefinition.js';
2
+ import { extendJSONSchema } from './utils.js';
3
+ export const AppMemberQueryActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
+ type: 'object',
5
+ additionalProperties: false,
6
+ required: ['type'],
7
+ properties: {
8
+ type: {
9
+ enum: ['app.member.query'],
10
+ description: `Allows the currently logged in app member to fetch a list of app members by their roles.
11
+
12
+ Does nothing if the app member isn’t logged in.`,
13
+ },
14
+ roles: {
15
+ $ref: '#/components/schemas/RemapperDefinition',
16
+ description: 'The roles of the app members that would be fetched.',
17
+ },
18
+ },
19
+ });
20
+ //# sourceMappingURL=AppMemberQueryActionDefinition.js.map
@@ -0,0 +1 @@
1
+ export declare const AppMemberRegisterActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
@@ -0,0 +1,43 @@
1
+ import { BaseActionDefinition } from './BaseActionDefinition.js';
2
+ import { extendJSONSchema } from './utils.js';
3
+ export const AppMemberRegisterActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
+ type: 'object',
5
+ additionalProperties: false,
6
+ required: ['type', 'email', 'password'],
7
+ properties: {
8
+ type: {
9
+ enum: ['app.member.register'],
10
+ description: `Allows the app member to register using an email address and a password.
11
+
12
+ Does nothing if the app member is already logged in.`,
13
+ },
14
+ password: {
15
+ $ref: '#/components/schemas/RemapperDefinition',
16
+ description: 'The password to log in with.',
17
+ },
18
+ email: {
19
+ $ref: '#/components/schemas/RemapperDefinition',
20
+ description: 'The email to log in with.',
21
+ },
22
+ name: {
23
+ $ref: '#/components/schemas/RemapperDefinition',
24
+ description: 'The full name of the app member.',
25
+ },
26
+ picture: {
27
+ $ref: '#/components/schemas/RemapperDefinition',
28
+ description: 'The image to use for the profile picture of the app member.',
29
+ },
30
+ properties: {
31
+ $ref: '#/components/schemas/RemapperDefinition',
32
+ description: `The custom properties for the app member.
33
+
34
+ Values will be validated based on \`members.properties\`, if defined in the app definition.`,
35
+ },
36
+ login: {
37
+ type: 'boolean',
38
+ description: 'Whether to login after registering.',
39
+ default: true,
40
+ },
41
+ },
42
+ });
43
+ //# sourceMappingURL=AppMemberRegisterActionDefinition.js.map
@@ -0,0 +1 @@
1
+ export declare const AppMemberRoleUpdateActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
@@ -0,0 +1,27 @@
1
+ import { BaseActionDefinition } from './BaseActionDefinition.js';
2
+ import { extendJSONSchema } from './utils.js';
3
+ export const AppMemberRoleUpdateActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
+ type: 'object',
5
+ additionalProperties: false,
6
+ required: ['type', 'sub'],
7
+ properties: {
8
+ type: {
9
+ enum: ['app.member.role.update'],
10
+ description: `Allows the app member to update the role of another app member account.
11
+
12
+ Does nothing if the app member isn’t logged in.`,
13
+ },
14
+ sub: {
15
+ $ref: '#/components/schemas/RemapperDefinition',
16
+ description: 'The id of the app member.',
17
+ },
18
+ role: {
19
+ $ref: '#/components/schemas/RemapperDefinition',
20
+ description: `The updated role of the app member.
21
+
22
+ The role must exist in the roles property of the app's security definition or in the predefined app roles in the system -
23
+ \`Member\`, \`MembersManager\`, \`GroupMembersManager\`, \`GroupsManager\`, \`ResourcesManager\` and \`Owner\``,
24
+ },
25
+ },
26
+ });
27
+ //# sourceMappingURL=AppMemberRoleUpdateActionDefinition.js.map
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const AppMembersDefinition: OpenAPIV3.NonArraySchemaObject;
@@ -0,0 +1,17 @@
1
+ export const AppMembersDefinition = {
2
+ type: 'object',
3
+ description: 'Definition for app member properties.',
4
+ required: [],
5
+ additionalProperties: false,
6
+ properties: {
7
+ properties: {
8
+ type: 'object',
9
+ description: 'The properties object configuring app members',
10
+ additionalProperties: {
11
+ description: 'A single app member property definition.',
12
+ $ref: '#/components/schemas/AppMemberPropertyDefinition',
13
+ },
14
+ },
15
+ },
16
+ };
17
+ //# sourceMappingURL=AppMembersDefinition.js.map
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const GroupMember: OpenAPIV3.NonArraySchemaObject;
@@ -0,0 +1,19 @@
1
+ export const GroupMember = {
2
+ type: 'object',
3
+ description: 'An object representing a member of a group',
4
+ additionalProperties: false,
5
+ properties: {
6
+ id: {
7
+ type: 'string',
8
+ readOnly: true,
9
+ description: 'The id of the app member.',
10
+ },
11
+ role: {
12
+ type: 'string',
13
+ description: 'The role of the app member within the group.',
14
+ },
15
+ name: { $ref: '#/components/schemas/AppMember/properties/name' },
16
+ email: { $ref: '#/components/schemas/AppMember/properties/email' },
17
+ },
18
+ };
19
+ //# sourceMappingURL=GroupMember.js.map
@@ -0,0 +1 @@
1
+ export declare const GroupMemberDeleteActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
@@ -1,18 +1,18 @@
1
1
  import { BaseActionDefinition } from './BaseActionDefinition.js';
2
2
  import { extendJSONSchema } from './utils.js';
3
- export const TeamMembersActionDefinition = extendJSONSchema(BaseActionDefinition, {
3
+ export const GroupMemberDeleteActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
4
  type: 'object',
5
5
  additionalProperties: false,
6
6
  required: ['type', 'id'],
7
7
  properties: {
8
8
  type: {
9
- enum: ['team.members'],
10
- description: "Get a list of a team's members",
9
+ enum: ['group.member.delete'],
10
+ description: 'Allow a user to join a group.',
11
11
  },
12
12
  id: {
13
- description: 'The ID of a specific team to get the members from',
14
13
  $ref: '#/components/schemas/RemapperDefinition',
14
+ description: 'The id of the group member to delete',
15
15
  },
16
16
  },
17
17
  });
18
- //# sourceMappingURL=TeamMembersActionDefinition.js.map
18
+ //# sourceMappingURL=GroupMemberDeleteActionDefinition.js.map
@@ -0,0 +1 @@
1
+ export declare const GroupMemberInviteActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
@@ -1,16 +1,16 @@
1
1
  import { BaseActionDefinition } from './BaseActionDefinition.js';
2
2
  import { extendJSONSchema } from './utils.js';
3
- export const TeamInviteActionDefinition = extendJSONSchema(BaseActionDefinition, {
3
+ export const GroupMemberInviteActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
4
  type: 'object',
5
5
  additionalProperties: false,
6
6
  required: ['type'],
7
7
  properties: {
8
8
  type: {
9
- enum: ['team.invite'],
10
- description: 'Invite a user to join a team.',
9
+ enum: ['group.member.invite'],
10
+ description: 'Invite an app member to join a group.',
11
11
  },
12
12
  id: {
13
- description: 'The ID of the team to invite the user to.',
13
+ description: 'The ID of the group to invite the app member to.',
14
14
  $ref: '#/components/schemas/RemapperDefinition',
15
15
  },
16
16
  email: {
@@ -20,8 +20,7 @@ export const TeamInviteActionDefinition = extendJSONSchema(BaseActionDefinition,
20
20
  role: {
21
21
  description: 'The role to invite the user as.',
22
22
  $ref: '#/components/schemas/RemapperDefinition',
23
- default: 'member',
24
23
  },
25
24
  },
26
25
  });
27
- //# sourceMappingURL=TeamInviteActionDefinition.js.map
26
+ //# sourceMappingURL=GroupMemberInviteActionDefinition.js.map
@@ -0,0 +1 @@
1
+ export declare const GroupMemberQueryActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
@@ -0,0 +1,18 @@
1
+ import { BaseActionDefinition } from './BaseActionDefinition.js';
2
+ import { extendJSONSchema } from './utils.js';
3
+ export const GroupMemberQueryActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
+ type: 'object',
5
+ additionalProperties: false,
6
+ required: ['type', 'id'],
7
+ properties: {
8
+ type: {
9
+ enum: ['group.member.query'],
10
+ description: "Get a list of a group's members",
11
+ },
12
+ id: {
13
+ description: 'The ID of a specific group to get the members from',
14
+ $ref: '#/components/schemas/RemapperDefinition',
15
+ },
16
+ },
17
+ });
18
+ //# sourceMappingURL=GroupMemberQueryActionDefinition.js.map
@@ -0,0 +1 @@
1
+ export declare const GroupMemberRoleUpdateActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
@@ -0,0 +1,22 @@
1
+ import { BaseActionDefinition } from './BaseActionDefinition.js';
2
+ import { extendJSONSchema } from './utils.js';
3
+ export const GroupMemberRoleUpdateActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
+ type: 'object',
5
+ additionalProperties: false,
6
+ required: ['type', 'id', 'role'],
7
+ properties: {
8
+ type: {
9
+ enum: ['group.member.role.update'],
10
+ description: 'Update the role of a group member.',
11
+ },
12
+ id: {
13
+ description: 'The id of the group member to update the role of.',
14
+ $ref: '#/components/schemas/RemapperDefinition',
15
+ },
16
+ role: {
17
+ description: 'The new role of the group member.',
18
+ $ref: '#/components/schemas/RemapperDefinition',
19
+ },
20
+ },
21
+ });
22
+ //# sourceMappingURL=GroupMemberRoleUpdateActionDefinition.js.map
@@ -0,0 +1 @@
1
+ export declare const GroupQueryActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
@@ -1,14 +1,14 @@
1
1
  import { BaseActionDefinition } from './BaseActionDefinition.js';
2
2
  import { extendJSONSchema } from './utils.js';
3
- export const UserLogoutActionDefinition = extendJSONSchema(BaseActionDefinition, {
3
+ export const GroupQueryActionDefinition = extendJSONSchema(BaseActionDefinition, {
4
4
  type: 'object',
5
5
  additionalProperties: false,
6
6
  required: ['type'],
7
7
  properties: {
8
8
  type: {
9
- enum: ['user.logout'],
10
- description: 'Allow the users to logout of the application.',
9
+ enum: ['group.query'],
10
+ description: 'Get a list of all of the groups in an app.',
11
11
  },
12
12
  },
13
13
  });
14
- //# sourceMappingURL=UserLogoutActionDefinition.js.map
14
+ //# sourceMappingURL=GroupQueryActionDefinition.js.map
@@ -1,4 +1,4 @@
1
- import { roles } from '../../../constants/index.js';
1
+ import { predefinedOrganizationRoles } from '@appsemble/types';
2
2
  export const OrganizationMember = {
3
3
  type: 'object',
4
4
  description: 'A member of an organization.',
@@ -17,7 +17,7 @@ export const OrganizationMember = {
17
17
  description: 'The primary email address of the user.',
18
18
  },
19
19
  role: {
20
- enum: Object.keys(roles),
20
+ enum: predefinedOrganizationRoles,
21
21
  },
22
22
  properties: {
23
23
  type: 'object',
@@ -13,6 +13,10 @@ export const ResourceCountActionDefinition = extendJSONSchema(RequestActionDefin
13
13
  type: 'string',
14
14
  description: 'The type of the resource to count.',
15
15
  },
16
+ own: {
17
+ type: 'boolean',
18
+ description: 'If only the resources created by the authenticated app member should be included',
19
+ },
16
20
  },
17
21
  }, ['url']);
18
22
  //# sourceMappingURL=ResourceCountActionDefinition.js.map
@@ -14,5 +14,5 @@ export const ResourceCreateActionDefinition = extendJSONSchema(RequestActionDefi
14
14
  description: 'The type of the resource to create.',
15
15
  },
16
16
  },
17
- }, ['url']);
17
+ }, ['url', 'method']);
18
18
  //# sourceMappingURL=ResourceCreateActionDefinition.js.map
@@ -1,13 +1,3 @@
1
- const roles = {
2
- type: 'array',
3
- description: `The list of roles that are allowed to use this action.
4
-
5
- This will override the default roles that are assigned.
6
- `,
7
- items: {
8
- type: 'string',
9
- },
10
- };
11
1
  const query = {
12
2
  type: 'object',
13
3
  description: 'The query parameters to use in the request.',
@@ -92,11 +82,6 @@ name of the resource and how it should behave.
92
82
  },
93
83
  },
94
84
  },
95
- roles: {
96
- type: 'array',
97
- description: 'The default roles that are allowed to perform all actions.',
98
- items: { type: 'string' },
99
- },
100
85
  url: {
101
86
  type: 'string',
102
87
  default: '/api/apps/{appId}/{resource}',
@@ -123,7 +108,6 @@ name of the resource and how it should behave.
123
108
  description: "Overrides for 'query' requests.",
124
109
  additionalProperties: false,
125
110
  properties: {
126
- roles,
127
111
  query,
128
112
  method: {
129
113
  type: 'string',
@@ -142,7 +126,6 @@ name of the resource and how it should behave.
142
126
  description: "Overrides for 'get' requests.",
143
127
  additionalProperties: false,
144
128
  properties: {
145
- roles,
146
129
  query,
147
130
  method: {
148
131
  type: 'string',
@@ -161,7 +144,6 @@ name of the resource and how it should behave.
161
144
  description: "Overrides for 'count' requests.",
162
145
  additionalProperties: false,
163
146
  properties: {
164
- roles,
165
147
  query,
166
148
  method: {
167
149
  type: 'string',
@@ -180,7 +162,6 @@ name of the resource and how it should behave.
180
162
  description: "Overrides for 'create' requests.",
181
163
  additionalProperties: false,
182
164
  properties: {
183
- roles,
184
165
  query,
185
166
  method: {
186
167
  type: 'string',
@@ -202,7 +183,6 @@ name of the resource and how it should behave.
202
183
  description: "Overrides for 'patch' requests.",
203
184
  additionalProperties: false,
204
185
  properties: {
205
- roles,
206
186
  query,
207
187
  method: {
208
188
  type: 'string',
@@ -224,7 +204,6 @@ name of the resource and how it should behave.
224
204
  description: "Overrides for 'update' requests.",
225
205
  additionalProperties: false,
226
206
  properties: {
227
- roles,
228
207
  query,
229
208
  method: {
230
209
  type: 'string',
@@ -246,7 +225,6 @@ name of the resource and how it should behave.
246
225
  description: "Overrides for 'delete' requests.",
247
226
  additionalProperties: false,
248
227
  properties: {
249
- roles,
250
228
  query,
251
229
  method: {
252
230
  type: 'string',
@@ -17,6 +17,10 @@ export const ResourceQueryActionDefinition = extendJSONSchema(RequestActionDefin
17
17
  type: 'string',
18
18
  description: 'The view to use for the resource.',
19
19
  },
20
+ own: {
21
+ type: 'boolean',
22
+ description: 'If only the resources created by the authenticated app member should be included',
23
+ },
20
24
  },
21
25
  }, ['url']);
22
26
  //# sourceMappingURL=ResourceQueryActionDefinition.js.map
@@ -12,7 +12,7 @@ export const SecurityDefaultDefinition = {
12
12
  The following values are allowed:
13
13
  - \`everyone\`: Every authenticated user gets the default role.
14
14
  - \`organization\`: Every authenticated user gets the default role if they are in the same organization as the app.
15
- - \`invite\`: The user has to manually get a role assigned.
15
+ - \`invite\`: The app member has to be invited to the app with a specific role.
16
16
 
17
17
  > **Important**: When [OAuth2](../guides/oauth2) or [SAML2.0](../guides/saml) is used in the
18
18
  > app, you must set the policy to \`everyone\`. This will specifically allow every configured
@@ -1,20 +1,16 @@
1
1
  export const SecurityDefinition = {
2
2
  type: 'object',
3
3
  description: 'This describes how the app is secured.',
4
- required: ['default', 'roles'],
5
4
  additionalProperties: false,
6
5
  properties: {
7
6
  default: { $ref: '#/components/schemas/SecurityDefaultDefinition' },
7
+ guest: { $ref: '#/components/schemas/SecurityGuestDefinition' },
8
8
  roles: {
9
9
  type: 'object',
10
- description: 'This property defines the user roles that are available within the app.',
10
+ description: 'This property defines the app roles that are available within the app.',
11
11
  minProperties: 1,
12
12
  additionalProperties: { $ref: '#/components/schemas/SecurityRoleDefinition' },
13
13
  },
14
- teams: {
15
- $ref: '#/components/schemas/TeamsDefinition',
16
- description: 'Define how teams are handled by the app.',
17
- },
18
14
  },
19
15
  };
20
16
  //# sourceMappingURL=SecurityDefinition.js.map
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const SecurityGuestDefinition: OpenAPIV3.NonArraySchemaObject;
@@ -0,0 +1,26 @@
1
+ export const SecurityGuestDefinition = {
2
+ type: 'object',
3
+ description: 'This describes the permissions that unauthenticated users have.',
4
+ additionalProperties: false,
5
+ properties: {
6
+ inherits: {
7
+ type: 'array',
8
+ minItems: 1,
9
+ description: `The name of the role to inherit from.
10
+
11
+ Note that this role must exist.
12
+ `,
13
+ items: {
14
+ type: 'string',
15
+ },
16
+ },
17
+ permissions: {
18
+ type: 'array',
19
+ description: 'Specific permissions within the app, which unauthenticated users should have',
20
+ items: {
21
+ type: 'string',
22
+ },
23
+ },
24
+ },
25
+ };
26
+ //# sourceMappingURL=SecurityGuestDefinition.js.map
@@ -23,6 +23,13 @@ of the referenced role.
23
23
  type: 'string',
24
24
  },
25
25
  },
26
+ permissions: {
27
+ type: 'array',
28
+ description: 'Specific permissions within the app, which this role should have',
29
+ items: {
30
+ type: 'string',
31
+ },
32
+ },
26
33
  },
27
34
  };
28
35
  //# sourceMappingURL=SecurityRoleDefinition.js.map
@@ -1,32 +1,12 @@
1
1
  export const User = {
2
2
  type: 'object',
3
- description: 'An object representing a user.',
3
+ description: 'An object representing a user',
4
4
  additionalProperties: false,
5
5
  properties: {
6
6
  id: {
7
7
  type: 'string',
8
8
  readOnly: true,
9
- description: 'The ID of the user.',
10
- },
11
- name: {
12
- type: 'string',
13
- description: 'The display name of the user.',
14
- },
15
- email: {
16
- type: 'string',
17
- description: 'The primary email used for communication.',
18
- },
19
- locale: {
20
- type: 'string',
21
- description: 'The locale of the user.',
22
- },
23
- timezone: {
24
- enum: Intl.supportedValuesOf('timeZone'),
25
- description: 'The time zone of the user.',
26
- },
27
- subscribed: {
28
- type: 'boolean',
29
- description: 'If the user is subscribed to the newsletter.',
9
+ description: 'The id of the user.',
30
10
  },
31
11
  },
32
12
  };
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const UserInfo: OpenAPIV3.NonArraySchemaObject;
@@ -0,0 +1,42 @@
1
+ export const UserInfo = {
2
+ type: 'object',
3
+ description: 'An object representing the OAuth2 info of a user',
4
+ additionalProperties: false,
5
+ properties: {
6
+ sub: {
7
+ type: 'string',
8
+ readOnly: true,
9
+ description: 'The id of the user.',
10
+ },
11
+ name: {
12
+ type: 'string',
13
+ description: 'The full name of the user.',
14
+ },
15
+ email: {
16
+ type: 'string',
17
+ description: 'The email of the user.',
18
+ },
19
+ email_verified: {
20
+ type: 'boolean',
21
+ description: 'Whether this email address has been verified.',
22
+ },
23
+ picture: {
24
+ type: 'string',
25
+ format: 'url',
26
+ description: 'The URL of the profile picture of the user.',
27
+ },
28
+ locale: {
29
+ type: 'string',
30
+ description: 'The locale of the user.',
31
+ },
32
+ timezone: {
33
+ enum: Intl.supportedValuesOf('timeZone'),
34
+ description: 'The time zone of the user.',
35
+ },
36
+ subscribed: {
37
+ type: 'boolean',
38
+ description: 'If the user is subscribed to the newsletter.',
39
+ },
40
+ },
41
+ };
42
+ //# sourceMappingURL=UserInfo.js.map