@appsemble/utils 0.20.27 → 0.20.29

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