@appconda/nextjs 1.0.12

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 (597) hide show
  1. package/.github/workflows/autoclose.yml +11 -0
  2. package/.github/workflows/publish.yml +42 -0
  3. package/.travis.yml +32 -0
  4. package/CHANGELOG.md +1 -0
  5. package/LICENSE +12 -0
  6. package/README.md +0 -0
  7. package/dist/cjs/sdk.js +10608 -0
  8. package/dist/cjs/sdk.js.map +1 -0
  9. package/dist/esm/sdk.js +10589 -0
  10. package/dist/esm/sdk.js.map +1 -0
  11. package/dist/iife/sdk.js +10609 -0
  12. package/docs/examples/account/create-anonymous-session.md +11 -0
  13. package/docs/examples/account/create-email-password-session.md +14 -0
  14. package/docs/examples/account/create-email-token.md +15 -0
  15. package/docs/examples/account/create-j-w-t.md +11 -0
  16. package/docs/examples/account/create-magic-u-r-l-token.md +16 -0
  17. package/docs/examples/account/create-mfa-authenticator.md +13 -0
  18. package/docs/examples/account/create-mfa-challenge.md +13 -0
  19. package/docs/examples/account/create-mfa-recovery-codes.md +11 -0
  20. package/docs/examples/account/create-o-auth2session.md +15 -0
  21. package/docs/examples/account/create-o-auth2token.md +15 -0
  22. package/docs/examples/account/create-phone-token.md +14 -0
  23. package/docs/examples/account/create-phone-verification.md +11 -0
  24. package/docs/examples/account/create-push-target.md +15 -0
  25. package/docs/examples/account/create-recovery.md +14 -0
  26. package/docs/examples/account/create-session.md +14 -0
  27. package/docs/examples/account/create-verification.md +13 -0
  28. package/docs/examples/account/create.md +16 -0
  29. package/docs/examples/account/delete-identity.md +13 -0
  30. package/docs/examples/account/delete-mfa-authenticator.md +13 -0
  31. package/docs/examples/account/delete-push-target.md +13 -0
  32. package/docs/examples/account/delete-session.md +13 -0
  33. package/docs/examples/account/delete-sessions.md +11 -0
  34. package/docs/examples/account/delete.md +11 -0
  35. package/docs/examples/account/get-mfa-recovery-codes.md +11 -0
  36. package/docs/examples/account/get-prefs.md +11 -0
  37. package/docs/examples/account/get-session.md +13 -0
  38. package/docs/examples/account/get.md +11 -0
  39. package/docs/examples/account/list-identities.md +13 -0
  40. package/docs/examples/account/list-logs.md +13 -0
  41. package/docs/examples/account/list-mfa-factors.md +11 -0
  42. package/docs/examples/account/list-sessions.md +11 -0
  43. package/docs/examples/account/update-email.md +14 -0
  44. package/docs/examples/account/update-m-f-a.md +13 -0
  45. package/docs/examples/account/update-magic-u-r-l-session.md +14 -0
  46. package/docs/examples/account/update-mfa-authenticator.md +14 -0
  47. package/docs/examples/account/update-mfa-challenge.md +14 -0
  48. package/docs/examples/account/update-mfa-recovery-codes.md +11 -0
  49. package/docs/examples/account/update-name.md +13 -0
  50. package/docs/examples/account/update-password.md +14 -0
  51. package/docs/examples/account/update-phone-session.md +14 -0
  52. package/docs/examples/account/update-phone-verification.md +14 -0
  53. package/docs/examples/account/update-phone.md +14 -0
  54. package/docs/examples/account/update-prefs.md +13 -0
  55. package/docs/examples/account/update-push-target.md +14 -0
  56. package/docs/examples/account/update-recovery.md +15 -0
  57. package/docs/examples/account/update-session.md +13 -0
  58. package/docs/examples/account/update-status.md +11 -0
  59. package/docs/examples/account/update-verification.md +14 -0
  60. package/docs/examples/assistant/chat.md +13 -0
  61. package/docs/examples/avatars/get-browser.md +16 -0
  62. package/docs/examples/avatars/get-credit-card.md +16 -0
  63. package/docs/examples/avatars/get-favicon.md +13 -0
  64. package/docs/examples/avatars/get-flag.md +16 -0
  65. package/docs/examples/avatars/get-image.md +15 -0
  66. package/docs/examples/avatars/get-initials.md +16 -0
  67. package/docs/examples/avatars/get-q-r.md +16 -0
  68. package/docs/examples/console/variables.md +11 -0
  69. package/docs/examples/databases/create-boolean-attribute.md +18 -0
  70. package/docs/examples/databases/create-collection.md +18 -0
  71. package/docs/examples/databases/create-datetime-attribute.md +18 -0
  72. package/docs/examples/databases/create-document.md +17 -0
  73. package/docs/examples/databases/create-email-attribute.md +18 -0
  74. package/docs/examples/databases/create-enum-attribute.md +19 -0
  75. package/docs/examples/databases/create-float-attribute.md +20 -0
  76. package/docs/examples/databases/create-index.md +18 -0
  77. package/docs/examples/databases/create-integer-attribute.md +20 -0
  78. package/docs/examples/databases/create-ip-attribute.md +18 -0
  79. package/docs/examples/databases/create-relationship-attribute.md +20 -0
  80. package/docs/examples/databases/create-string-attribute.md +20 -0
  81. package/docs/examples/databases/create-url-attribute.md +18 -0
  82. package/docs/examples/databases/create.md +15 -0
  83. package/docs/examples/databases/delete-attribute.md +15 -0
  84. package/docs/examples/databases/delete-collection.md +14 -0
  85. package/docs/examples/databases/delete-document.md +15 -0
  86. package/docs/examples/databases/delete-index.md +15 -0
  87. package/docs/examples/databases/delete.md +13 -0
  88. package/docs/examples/databases/get-attribute.md +15 -0
  89. package/docs/examples/databases/get-collection-usage.md +15 -0
  90. package/docs/examples/databases/get-collection.md +14 -0
  91. package/docs/examples/databases/get-database-usage.md +14 -0
  92. package/docs/examples/databases/get-document.md +16 -0
  93. package/docs/examples/databases/get-index.md +15 -0
  94. package/docs/examples/databases/get-usage.md +13 -0
  95. package/docs/examples/databases/get.md +13 -0
  96. package/docs/examples/databases/list-attributes.md +15 -0
  97. package/docs/examples/databases/list-collection-logs.md +15 -0
  98. package/docs/examples/databases/list-collections.md +15 -0
  99. package/docs/examples/databases/list-document-logs.md +16 -0
  100. package/docs/examples/databases/list-documents.md +15 -0
  101. package/docs/examples/databases/list-indexes.md +15 -0
  102. package/docs/examples/databases/list-logs.md +14 -0
  103. package/docs/examples/databases/list.md +14 -0
  104. package/docs/examples/databases/update-boolean-attribute.md +17 -0
  105. package/docs/examples/databases/update-collection.md +18 -0
  106. package/docs/examples/databases/update-datetime-attribute.md +17 -0
  107. package/docs/examples/databases/update-document.md +17 -0
  108. package/docs/examples/databases/update-email-attribute.md +17 -0
  109. package/docs/examples/databases/update-enum-attribute.md +18 -0
  110. package/docs/examples/databases/update-float-attribute.md +19 -0
  111. package/docs/examples/databases/update-integer-attribute.md +19 -0
  112. package/docs/examples/databases/update-ip-attribute.md +17 -0
  113. package/docs/examples/databases/update-relationship-attribute.md +16 -0
  114. package/docs/examples/databases/update-string-attribute.md +17 -0
  115. package/docs/examples/databases/update-url-attribute.md +17 -0
  116. package/docs/examples/databases/update.md +15 -0
  117. package/docs/examples/functions/create-build.md +15 -0
  118. package/docs/examples/functions/create-deployment.md +17 -0
  119. package/docs/examples/functions/create-execution.md +19 -0
  120. package/docs/examples/functions/create-variable.md +15 -0
  121. package/docs/examples/functions/create.md +34 -0
  122. package/docs/examples/functions/delete-deployment.md +14 -0
  123. package/docs/examples/functions/delete-execution.md +14 -0
  124. package/docs/examples/functions/delete-variable.md +14 -0
  125. package/docs/examples/functions/delete.md +13 -0
  126. package/docs/examples/functions/get-deployment-download.md +14 -0
  127. package/docs/examples/functions/get-deployment.md +14 -0
  128. package/docs/examples/functions/get-execution.md +14 -0
  129. package/docs/examples/functions/get-function-usage.md +14 -0
  130. package/docs/examples/functions/get-template.md +13 -0
  131. package/docs/examples/functions/get-usage.md +13 -0
  132. package/docs/examples/functions/get-variable.md +14 -0
  133. package/docs/examples/functions/get.md +13 -0
  134. package/docs/examples/functions/list-deployments.md +15 -0
  135. package/docs/examples/functions/list-executions.md +15 -0
  136. package/docs/examples/functions/list-runtimes.md +11 -0
  137. package/docs/examples/functions/list-specifications.md +11 -0
  138. package/docs/examples/functions/list-templates.md +16 -0
  139. package/docs/examples/functions/list-variables.md +13 -0
  140. package/docs/examples/functions/list.md +14 -0
  141. package/docs/examples/functions/update-deployment-build.md +14 -0
  142. package/docs/examples/functions/update-deployment.md +14 -0
  143. package/docs/examples/functions/update-variable.md +16 -0
  144. package/docs/examples/functions/update.md +30 -0
  145. package/docs/examples/graphql/mutation.md +13 -0
  146. package/docs/examples/graphql/query.md +13 -0
  147. package/docs/examples/health/get-antivirus.md +11 -0
  148. package/docs/examples/health/get-cache.md +11 -0
  149. package/docs/examples/health/get-certificate.md +13 -0
  150. package/docs/examples/health/get-d-b.md +11 -0
  151. package/docs/examples/health/get-failed-jobs.md +14 -0
  152. package/docs/examples/health/get-pub-sub.md +11 -0
  153. package/docs/examples/health/get-queue-builds.md +13 -0
  154. package/docs/examples/health/get-queue-certificates.md +13 -0
  155. package/docs/examples/health/get-queue-databases.md +14 -0
  156. package/docs/examples/health/get-queue-deletes.md +13 -0
  157. package/docs/examples/health/get-queue-functions.md +13 -0
  158. package/docs/examples/health/get-queue-logs.md +13 -0
  159. package/docs/examples/health/get-queue-mails.md +13 -0
  160. package/docs/examples/health/get-queue-messaging.md +13 -0
  161. package/docs/examples/health/get-queue-migrations.md +13 -0
  162. package/docs/examples/health/get-queue-usage-dump.md +13 -0
  163. package/docs/examples/health/get-queue-usage.md +13 -0
  164. package/docs/examples/health/get-queue-webhooks.md +13 -0
  165. package/docs/examples/health/get-queue.md +11 -0
  166. package/docs/examples/health/get-storage-local.md +11 -0
  167. package/docs/examples/health/get-storage.md +11 -0
  168. package/docs/examples/health/get-time.md +11 -0
  169. package/docs/examples/health/get.md +11 -0
  170. package/docs/examples/locale/get.md +11 -0
  171. package/docs/examples/locale/list-codes.md +11 -0
  172. package/docs/examples/locale/list-continents.md +11 -0
  173. package/docs/examples/locale/list-countries-e-u.md +11 -0
  174. package/docs/examples/locale/list-countries-phones.md +11 -0
  175. package/docs/examples/locale/list-countries.md +11 -0
  176. package/docs/examples/locale/list-currencies.md +11 -0
  177. package/docs/examples/locale/list-languages.md +11 -0
  178. package/docs/examples/messaging/create-apns-provider.md +20 -0
  179. package/docs/examples/messaging/create-email.md +24 -0
  180. package/docs/examples/messaging/create-fcm-provider.md +16 -0
  181. package/docs/examples/messaging/create-mailgun-provider.md +22 -0
  182. package/docs/examples/messaging/create-msg91provider.md +18 -0
  183. package/docs/examples/messaging/create-push.md +28 -0
  184. package/docs/examples/messaging/create-sendgrid-provider.md +20 -0
  185. package/docs/examples/messaging/create-sms.md +19 -0
  186. package/docs/examples/messaging/create-smtp-provider.md +26 -0
  187. package/docs/examples/messaging/create-subscriber.md +15 -0
  188. package/docs/examples/messaging/create-telesign-provider.md +18 -0
  189. package/docs/examples/messaging/create-textmagic-provider.md +18 -0
  190. package/docs/examples/messaging/create-topic.md +15 -0
  191. package/docs/examples/messaging/create-twilio-provider.md +18 -0
  192. package/docs/examples/messaging/create-vonage-provider.md +18 -0
  193. package/docs/examples/messaging/delete-provider.md +13 -0
  194. package/docs/examples/messaging/delete-subscriber.md +14 -0
  195. package/docs/examples/messaging/delete-topic.md +13 -0
  196. package/docs/examples/messaging/delete.md +13 -0
  197. package/docs/examples/messaging/get-message.md +13 -0
  198. package/docs/examples/messaging/get-provider.md +13 -0
  199. package/docs/examples/messaging/get-subscriber.md +14 -0
  200. package/docs/examples/messaging/get-topic.md +13 -0
  201. package/docs/examples/messaging/list-message-logs.md +14 -0
  202. package/docs/examples/messaging/list-messages.md +14 -0
  203. package/docs/examples/messaging/list-provider-logs.md +14 -0
  204. package/docs/examples/messaging/list-providers.md +14 -0
  205. package/docs/examples/messaging/list-subscriber-logs.md +14 -0
  206. package/docs/examples/messaging/list-subscribers.md +15 -0
  207. package/docs/examples/messaging/list-targets.md +14 -0
  208. package/docs/examples/messaging/list-topic-logs.md +14 -0
  209. package/docs/examples/messaging/list-topics.md +14 -0
  210. package/docs/examples/messaging/update-apns-provider.md +20 -0
  211. package/docs/examples/messaging/update-email.md +24 -0
  212. package/docs/examples/messaging/update-fcm-provider.md +16 -0
  213. package/docs/examples/messaging/update-mailgun-provider.md +22 -0
  214. package/docs/examples/messaging/update-msg91provider.md +18 -0
  215. package/docs/examples/messaging/update-push.md +28 -0
  216. package/docs/examples/messaging/update-sendgrid-provider.md +20 -0
  217. package/docs/examples/messaging/update-sms.md +19 -0
  218. package/docs/examples/messaging/update-smtp-provider.md +26 -0
  219. package/docs/examples/messaging/update-telesign-provider.md +18 -0
  220. package/docs/examples/messaging/update-textmagic-provider.md +18 -0
  221. package/docs/examples/messaging/update-topic.md +15 -0
  222. package/docs/examples/messaging/update-twilio-provider.md +18 -0
  223. package/docs/examples/messaging/update-vonage-provider.md +18 -0
  224. package/docs/examples/migrations/create-appwrite-migration.md +16 -0
  225. package/docs/examples/migrations/create-firebase-migration.md +14 -0
  226. package/docs/examples/migrations/create-firebase-o-auth-migration.md +14 -0
  227. package/docs/examples/migrations/create-n-host-migration.md +20 -0
  228. package/docs/examples/migrations/create-supabase-migration.md +19 -0
  229. package/docs/examples/migrations/delete-firebase-auth.md +11 -0
  230. package/docs/examples/migrations/delete.md +13 -0
  231. package/docs/examples/migrations/get-appwrite-report.md +16 -0
  232. package/docs/examples/migrations/get-firebase-report-o-auth.md +14 -0
  233. package/docs/examples/migrations/get-firebase-report.md +14 -0
  234. package/docs/examples/migrations/get-n-host-report.md +20 -0
  235. package/docs/examples/migrations/get-supabase-report.md +19 -0
  236. package/docs/examples/migrations/get.md +13 -0
  237. package/docs/examples/migrations/list-firebase-projects.md +11 -0
  238. package/docs/examples/migrations/list.md +14 -0
  239. package/docs/examples/migrations/retry.md +13 -0
  240. package/docs/examples/project/create-variable.md +14 -0
  241. package/docs/examples/project/delete-variable.md +13 -0
  242. package/docs/examples/project/get-usage.md +15 -0
  243. package/docs/examples/project/get-variable.md +13 -0
  244. package/docs/examples/project/list-variables.md +11 -0
  245. package/docs/examples/project/update-variable.md +15 -0
  246. package/docs/examples/projects/create-j-w-t.md +15 -0
  247. package/docs/examples/projects/create-key.md +16 -0
  248. package/docs/examples/projects/create-platform.md +18 -0
  249. package/docs/examples/projects/create-smtp-test.md +22 -0
  250. package/docs/examples/projects/create-webhook.md +20 -0
  251. package/docs/examples/projects/create.md +25 -0
  252. package/docs/examples/projects/delete-email-template.md +15 -0
  253. package/docs/examples/projects/delete-key.md +14 -0
  254. package/docs/examples/projects/delete-platform.md +14 -0
  255. package/docs/examples/projects/delete-sms-template.md +15 -0
  256. package/docs/examples/projects/delete-webhook.md +14 -0
  257. package/docs/examples/projects/delete.md +13 -0
  258. package/docs/examples/projects/get-email-template.md +15 -0
  259. package/docs/examples/projects/get-key.md +14 -0
  260. package/docs/examples/projects/get-platform.md +14 -0
  261. package/docs/examples/projects/get-sms-template.md +15 -0
  262. package/docs/examples/projects/get-webhook.md +14 -0
  263. package/docs/examples/projects/get.md +13 -0
  264. package/docs/examples/projects/list-keys.md +13 -0
  265. package/docs/examples/projects/list-platforms.md +13 -0
  266. package/docs/examples/projects/list-webhooks.md +13 -0
  267. package/docs/examples/projects/list.md +14 -0
  268. package/docs/examples/projects/update-api-status-all.md +14 -0
  269. package/docs/examples/projects/update-api-status.md +15 -0
  270. package/docs/examples/projects/update-auth-duration.md +14 -0
  271. package/docs/examples/projects/update-auth-limit.md +14 -0
  272. package/docs/examples/projects/update-auth-password-dictionary.md +14 -0
  273. package/docs/examples/projects/update-auth-password-history.md +14 -0
  274. package/docs/examples/projects/update-auth-sessions-limit.md +14 -0
  275. package/docs/examples/projects/update-auth-status.md +15 -0
  276. package/docs/examples/projects/update-email-template.md +20 -0
  277. package/docs/examples/projects/update-key.md +17 -0
  278. package/docs/examples/projects/update-mock-numbers.md +14 -0
  279. package/docs/examples/projects/update-o-auth2.md +17 -0
  280. package/docs/examples/projects/update-personal-data-check.md +14 -0
  281. package/docs/examples/projects/update-platform.md +18 -0
  282. package/docs/examples/projects/update-service-status-all.md +14 -0
  283. package/docs/examples/projects/update-service-status.md +15 -0
  284. package/docs/examples/projects/update-session-alerts.md +14 -0
  285. package/docs/examples/projects/update-sms-template.md +16 -0
  286. package/docs/examples/projects/update-smtp.md +22 -0
  287. package/docs/examples/projects/update-team.md +14 -0
  288. package/docs/examples/projects/update-webhook-signature.md +14 -0
  289. package/docs/examples/projects/update-webhook.md +21 -0
  290. package/docs/examples/projects/update.md +23 -0
  291. package/docs/examples/proxy/create-rule.md +15 -0
  292. package/docs/examples/proxy/delete-rule.md +13 -0
  293. package/docs/examples/proxy/get-rule.md +13 -0
  294. package/docs/examples/proxy/list-rules.md +14 -0
  295. package/docs/examples/proxy/update-rule-verification.md +13 -0
  296. package/docs/examples/storage/create-bucket.md +22 -0
  297. package/docs/examples/storage/create-file.md +16 -0
  298. package/docs/examples/storage/delete-bucket.md +13 -0
  299. package/docs/examples/storage/delete-file.md +14 -0
  300. package/docs/examples/storage/get-bucket-usage.md +14 -0
  301. package/docs/examples/storage/get-bucket.md +13 -0
  302. package/docs/examples/storage/get-file-download.md +14 -0
  303. package/docs/examples/storage/get-file-preview.md +25 -0
  304. package/docs/examples/storage/get-file-view.md +14 -0
  305. package/docs/examples/storage/get-file.md +14 -0
  306. package/docs/examples/storage/get-usage.md +13 -0
  307. package/docs/examples/storage/list-buckets.md +14 -0
  308. package/docs/examples/storage/list-files.md +15 -0
  309. package/docs/examples/storage/update-bucket.md +22 -0
  310. package/docs/examples/storage/update-file.md +16 -0
  311. package/docs/examples/teams/create-membership.md +19 -0
  312. package/docs/examples/teams/create.md +15 -0
  313. package/docs/examples/teams/delete-membership.md +14 -0
  314. package/docs/examples/teams/delete.md +13 -0
  315. package/docs/examples/teams/get-membership.md +14 -0
  316. package/docs/examples/teams/get-prefs.md +13 -0
  317. package/docs/examples/teams/get.md +13 -0
  318. package/docs/examples/teams/list-logs.md +14 -0
  319. package/docs/examples/teams/list-memberships.md +15 -0
  320. package/docs/examples/teams/list.md +14 -0
  321. package/docs/examples/teams/update-membership-status.md +16 -0
  322. package/docs/examples/teams/update-membership.md +15 -0
  323. package/docs/examples/teams/update-name.md +14 -0
  324. package/docs/examples/teams/update-prefs.md +14 -0
  325. package/docs/examples/users/create-argon2user.md +16 -0
  326. package/docs/examples/users/create-bcrypt-user.md +16 -0
  327. package/docs/examples/users/create-j-w-t.md +15 -0
  328. package/docs/examples/users/create-m-d5user.md +16 -0
  329. package/docs/examples/users/create-mfa-recovery-codes.md +13 -0
  330. package/docs/examples/users/create-p-h-pass-user.md +16 -0
  331. package/docs/examples/users/create-s-h-a-user.md +17 -0
  332. package/docs/examples/users/create-scrypt-modified-user.md +19 -0
  333. package/docs/examples/users/create-scrypt-user.md +21 -0
  334. package/docs/examples/users/create-session.md +13 -0
  335. package/docs/examples/users/create-target.md +18 -0
  336. package/docs/examples/users/create-token.md +15 -0
  337. package/docs/examples/users/create.md +17 -0
  338. package/docs/examples/users/delete-identity.md +13 -0
  339. package/docs/examples/users/delete-mfa-authenticator.md +14 -0
  340. package/docs/examples/users/delete-session.md +14 -0
  341. package/docs/examples/users/delete-sessions.md +13 -0
  342. package/docs/examples/users/delete-target.md +14 -0
  343. package/docs/examples/users/delete.md +13 -0
  344. package/docs/examples/users/get-mfa-recovery-codes.md +13 -0
  345. package/docs/examples/users/get-prefs.md +13 -0
  346. package/docs/examples/users/get-target.md +14 -0
  347. package/docs/examples/users/get-usage.md +13 -0
  348. package/docs/examples/users/get.md +13 -0
  349. package/docs/examples/users/list-identities.md +14 -0
  350. package/docs/examples/users/list-logs.md +14 -0
  351. package/docs/examples/users/list-memberships.md +13 -0
  352. package/docs/examples/users/list-mfa-factors.md +13 -0
  353. package/docs/examples/users/list-sessions.md +13 -0
  354. package/docs/examples/users/list-targets.md +14 -0
  355. package/docs/examples/users/list.md +14 -0
  356. package/docs/examples/users/update-email-verification.md +14 -0
  357. package/docs/examples/users/update-email.md +14 -0
  358. package/docs/examples/users/update-labels.md +14 -0
  359. package/docs/examples/users/update-mfa-recovery-codes.md +13 -0
  360. package/docs/examples/users/update-mfa.md +14 -0
  361. package/docs/examples/users/update-name.md +14 -0
  362. package/docs/examples/users/update-password.md +14 -0
  363. package/docs/examples/users/update-phone-verification.md +14 -0
  364. package/docs/examples/users/update-phone.md +14 -0
  365. package/docs/examples/users/update-prefs.md +14 -0
  366. package/docs/examples/users/update-status.md +14 -0
  367. package/docs/examples/users/update-target.md +17 -0
  368. package/docs/examples/vcs/create-repository-detection.md +15 -0
  369. package/docs/examples/vcs/create-repository.md +15 -0
  370. package/docs/examples/vcs/delete-installation.md +13 -0
  371. package/docs/examples/vcs/get-installation.md +13 -0
  372. package/docs/examples/vcs/get-repository-contents.md +15 -0
  373. package/docs/examples/vcs/get-repository.md +14 -0
  374. package/docs/examples/vcs/list-installations.md +14 -0
  375. package/docs/examples/vcs/list-repositories.md +14 -0
  376. package/docs/examples/vcs/list-repository-branches.md +14 -0
  377. package/docs/examples/vcs/update-external-deployments.md +15 -0
  378. package/package.json +42 -0
  379. package/publish.sh +4 -0
  380. package/rollup.config.js +27 -0
  381. package/src/Cache/Adapter.ts +11 -0
  382. package/src/Cache/Adapters/Filesystem.ts +126 -0
  383. package/src/Cache/Adapters/Memory.ts +57 -0
  384. package/src/Cache/Adapters/None.ts +36 -0
  385. package/src/Cache/Adapters/Redis.ts +106 -0
  386. package/src/Cache/Adapters/Sharding.ts +87 -0
  387. package/src/Cache/Cache.ts +75 -0
  388. package/src/Cache/index.ts +5 -0
  389. package/src/Cache/test.ts +0 -0
  390. package/src/Services.ts +41 -0
  391. package/src/client.ts +397 -0
  392. package/src/decorators/Cache.ts +102 -0
  393. package/src/decorators/CacheKey.ts +9 -0
  394. package/src/decorators/Invalidate.ts +68 -0
  395. package/src/enums/api-service.ts +13 -0
  396. package/src/enums/api.ts +5 -0
  397. package/src/enums/auth-method.ts +9 -0
  398. package/src/enums/authentication-factor.ts +6 -0
  399. package/src/enums/authenticator-type.ts +3 -0
  400. package/src/enums/browser.ts +16 -0
  401. package/src/enums/compression.ts +5 -0
  402. package/src/enums/credit-card.ts +18 -0
  403. package/src/enums/database-usage-range.ts +5 -0
  404. package/src/enums/email-template-locale.ts +133 -0
  405. package/src/enums/email-template-type.ts +9 -0
  406. package/src/enums/entities/EntityLimitType.ts +4 -0
  407. package/src/enums/entities/PropertyAttributeName.ts +27 -0
  408. package/src/enums/entities/PropertyCondition.ts +8 -0
  409. package/src/enums/entities/PropertyType.ts +16 -0
  410. package/src/enums/entities/PropertyValueType.ts +6 -0
  411. package/src/enums/entities/RowAccess.ts +2 -0
  412. package/src/enums/entities/ViewFilterCondition.ts +12 -0
  413. package/src/enums/execution-method.ts +8 -0
  414. package/src/enums/flag.ts +197 -0
  415. package/src/enums/function-usage-range.ts +5 -0
  416. package/src/enums/image-format.ts +7 -0
  417. package/src/enums/image-gravity.ts +11 -0
  418. package/src/enums/index-type.ts +5 -0
  419. package/src/enums/messaging-provider-type.ts +5 -0
  420. package/src/enums/name.ts +14 -0
  421. package/src/enums/o-auth-provider copy.ts +41 -0
  422. package/src/enums/o-auth-provider.ts +41 -0
  423. package/src/enums/password-hash.ts +13 -0
  424. package/src/enums/platform-type.ts +17 -0
  425. package/src/enums/project-usage-range.ts +4 -0
  426. package/src/enums/region.ts +4 -0
  427. package/src/enums/relation-mutate.ts +5 -0
  428. package/src/enums/relationship-type.ts +6 -0
  429. package/src/enums/resource-type.ts +4 -0
  430. package/src/enums/runtime.ts +48 -0
  431. package/src/enums/s-m-t-p-secure.ts +3 -0
  432. package/src/enums/shared/ApplicationLayout.ts +4 -0
  433. package/src/enums/shared/Colors.ts +24 -0
  434. package/src/enums/shared/InputType.ts +6 -0
  435. package/src/enums/shared/Periodicity.ts +7 -0
  436. package/src/enums/shared/SvgIcon.ts +37 -0
  437. package/src/enums/shared/Theme.ts +4 -0
  438. package/src/enums/sms-template-locale.ts +133 -0
  439. package/src/enums/sms-template-type.ts +6 -0
  440. package/src/enums/smtp-encryption.ts +5 -0
  441. package/src/enums/storage-usage-range.ts +5 -0
  442. package/src/enums/subscriptions/PricingModel.ts +14 -0
  443. package/src/enums/subscriptions/SubscriptionBillingPeriod.ts +15 -0
  444. package/src/enums/subscriptions/SubscriptionFeatureLimitType.ts +16 -0
  445. package/src/enums/subscriptions/SubscriptionPriceType.ts +10 -0
  446. package/src/enums/tenants/LinkedAccountStatus.ts +5 -0
  447. package/src/enums/tenants/TenantUserJoined.ts +6 -0
  448. package/src/enums/tenants/TenantUserStatus.ts +6 -0
  449. package/src/enums/tenants/TenantUserType.ts +5 -0
  450. package/src/enums/user-usage-range.ts +5 -0
  451. package/src/id.ts +47 -0
  452. package/src/index.ts +36 -0
  453. package/src/inputFile.ts +23 -0
  454. package/src/lib/Registry/Registry.ts +66 -0
  455. package/src/lib/Registry/index.ts +1 -0
  456. package/src/models.ts +3339 -0
  457. package/src/permission.ts +57 -0
  458. package/src/query.ts +261 -0
  459. package/src/role.ts +100 -0
  460. package/src/service-client.ts +29 -0
  461. package/src/service.ts +30 -0
  462. package/src/services/account.ts +1643 -0
  463. package/src/services/applets.ts +75 -0
  464. package/src/services/avatars.ts +314 -0
  465. package/src/services/community.ts +102 -0
  466. package/src/services/configuration.ts +15 -0
  467. package/src/services/databases.ts +2037 -0
  468. package/src/services/functions.ts +986 -0
  469. package/src/services/graphql.ts +75 -0
  470. package/src/services/health.ts +629 -0
  471. package/src/services/locale.ts +205 -0
  472. package/src/services/messaging.ts +2247 -0
  473. package/src/services/node.ts +15 -0
  474. package/src/services/permissions.ts +131 -0
  475. package/src/services/pricing.ts +30 -0
  476. package/src/services/projects.ts +1901 -0
  477. package/src/services/roles.ts +101 -0
  478. package/src/services/schema.ts +65 -0
  479. package/src/services/storage.ts +576 -0
  480. package/src/services/subscription.ts +40 -0
  481. package/src/services/teams.ts +490 -0
  482. package/src/services/tenant-subscription.ts +93 -0
  483. package/src/services/tenant.ts +194 -0
  484. package/src/services/users.ts +1584 -0
  485. package/tsconfig.json +29 -0
  486. package/types/Cache/Adapter.d.ts +10 -0
  487. package/types/Cache/Adapters/Filesystem.d.ts +16 -0
  488. package/types/Cache/Adapters/Memory.d.ts +18 -0
  489. package/types/Cache/Adapters/None.d.ts +12 -0
  490. package/types/Cache/Adapters/Redis.d.ts +14 -0
  491. package/types/Cache/Adapters/Sharding.d.ts +17 -0
  492. package/types/Cache/Cache.d.ts +16 -0
  493. package/types/Cache/index.d.ts +5 -0
  494. package/types/Cache/test.d.ts +0 -0
  495. package/types/Services.d.ts +6 -0
  496. package/types/client.d.ts +141 -0
  497. package/types/decorators/Cache.d.ts +1 -0
  498. package/types/decorators/CacheKey.d.ts +1 -0
  499. package/types/decorators/Invalidate.d.ts +1 -0
  500. package/types/enums/api-service.d.ts +13 -0
  501. package/types/enums/api.d.ts +5 -0
  502. package/types/enums/auth-method.d.ts +9 -0
  503. package/types/enums/authentication-factor.d.ts +6 -0
  504. package/types/enums/authenticator-type.d.ts +3 -0
  505. package/types/enums/browser.d.ts +16 -0
  506. package/types/enums/compression.d.ts +5 -0
  507. package/types/enums/credit-card.d.ts +18 -0
  508. package/types/enums/database-usage-range.d.ts +5 -0
  509. package/types/enums/email-template-locale.d.ts +133 -0
  510. package/types/enums/email-template-type.d.ts +9 -0
  511. package/types/enums/entities/EntityLimitType.d.ts +4 -0
  512. package/types/enums/entities/PropertyAttributeName.d.ts +27 -0
  513. package/types/enums/entities/PropertyCondition.d.ts +7 -0
  514. package/types/enums/entities/PropertyType.d.ts +12 -0
  515. package/types/enums/entities/PropertyValueType.d.ts +6 -0
  516. package/types/enums/entities/RowAccess.d.ts +2 -0
  517. package/types/enums/entities/ViewFilterCondition.d.ts +12 -0
  518. package/types/enums/execution-method.d.ts +8 -0
  519. package/types/enums/flag.d.ts +197 -0
  520. package/types/enums/function-usage-range.d.ts +5 -0
  521. package/types/enums/image-format.d.ts +7 -0
  522. package/types/enums/image-gravity.d.ts +11 -0
  523. package/types/enums/index-type.d.ts +5 -0
  524. package/types/enums/messaging-provider-type.d.ts +5 -0
  525. package/types/enums/name.d.ts +14 -0
  526. package/types/enums/o-auth-provider copy.d.ts +41 -0
  527. package/types/enums/o-auth-provider.d.ts +41 -0
  528. package/types/enums/password-hash.d.ts +13 -0
  529. package/types/enums/platform-type.d.ts +17 -0
  530. package/types/enums/project-usage-range.d.ts +4 -0
  531. package/types/enums/region.d.ts +4 -0
  532. package/types/enums/relation-mutate.d.ts +5 -0
  533. package/types/enums/relationship-type.d.ts +6 -0
  534. package/types/enums/resource-type.d.ts +4 -0
  535. package/types/enums/runtime.d.ts +48 -0
  536. package/types/enums/s-m-t-p-secure.d.ts +3 -0
  537. package/types/enums/shared/ApplicationLayout.d.ts +4 -0
  538. package/types/enums/shared/Colors.d.ts +24 -0
  539. package/types/enums/shared/InputType.d.ts +6 -0
  540. package/types/enums/shared/Periodicity.d.ts +7 -0
  541. package/types/enums/shared/SvgIcon.d.ts +37 -0
  542. package/types/enums/shared/Theme.d.ts +4 -0
  543. package/types/enums/sms-template-locale.d.ts +133 -0
  544. package/types/enums/sms-template-type.d.ts +6 -0
  545. package/types/enums/smtp-encryption.d.ts +5 -0
  546. package/types/enums/storage-usage-range.d.ts +5 -0
  547. package/types/enums/subscriptions/PricingModel.d.ts +11 -0
  548. package/types/enums/subscriptions/SubscriptionBillingPeriod.d.ts +10 -0
  549. package/types/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +10 -0
  550. package/types/enums/subscriptions/SubscriptionPriceType.d.ts +7 -0
  551. package/types/enums/tenants/LinkedAccountStatus.d.ts +5 -0
  552. package/types/enums/tenants/TenantUserJoined.d.ts +6 -0
  553. package/types/enums/tenants/TenantUserStatus.d.ts +6 -0
  554. package/types/enums/tenants/TenantUserType.d.ts +5 -0
  555. package/types/enums/user-usage-range.d.ts +5 -0
  556. package/types/id.d.ts +20 -0
  557. package/types/index.d.ts +36 -0
  558. package/types/inputFile.d.ts +6 -0
  559. package/types/lib/Registry/Registry.d.ts +38 -0
  560. package/types/lib/Registry/index.d.ts +1 -0
  561. package/types/models.d.ts +3272 -0
  562. package/types/permission.d.ts +43 -0
  563. package/types/query.d.ts +194 -0
  564. package/types/role.d.ts +70 -0
  565. package/types/service-client.d.ts +7 -0
  566. package/types/service.d.ts +11 -0
  567. package/types/services/account.d.ts +530 -0
  568. package/types/services/acl.d.ts +28 -0
  569. package/types/services/applets.d.ts +9 -0
  570. package/types/services/assistant.d.ts +14 -0
  571. package/types/services/avatars.d.ts +115 -0
  572. package/types/services/community.d.ts +19 -0
  573. package/types/services/configuration.d.ts +5 -0
  574. package/types/services/console.d.ts +15 -0
  575. package/types/services/databases.d.ts +613 -0
  576. package/types/services/functions.d.ts +319 -0
  577. package/types/services/graphql.d.ts +25 -0
  578. package/types/services/health.d.ts +231 -0
  579. package/types/services/locale.d.ts +80 -0
  580. package/types/services/messaging.d.ts +685 -0
  581. package/types/services/migrations.d.ts +185 -0
  582. package/types/services/node.d.ts +5 -0
  583. package/types/services/permissions.d.ts +20 -0
  584. package/types/services/pricing.d.ts +15 -0
  585. package/types/services/project.d.ts +70 -0
  586. package/types/services/projects.d.ts +542 -0
  587. package/types/services/proxy.d.ts +59 -0
  588. package/types/services/roles.d.ts +19 -0
  589. package/types/services/schema.d.ts +17 -0
  590. package/types/services/storage.d.ts +189 -0
  591. package/types/services/subscription-product.d.ts +77 -0
  592. package/types/services/subscription.d.ts +15 -0
  593. package/types/services/teams.d.ts +167 -0
  594. package/types/services/tenant-subscription.d.ts +12 -0
  595. package/types/services/tenant.d.ts +32 -0
  596. package/types/services/users.d.ts +499 -0
  597. package/types/services/vcs.d.ts +108 -0
@@ -0,0 +1,986 @@
1
+ import { AppcondaException, Client, type Payload, UploadProgress } from '../client';
2
+ import type { Models } from '../models';
3
+ import { Runtime } from '../enums/runtime';
4
+ import { ExecutionMethod } from '../enums/execution-method';
5
+
6
+ export class Functions {
7
+ client: Client;
8
+
9
+ constructor(client: Client) {
10
+ this.client = client;
11
+ }
12
+
13
+ /**
14
+ * List functions
15
+ *
16
+ * Get a list of all the project's functions. You can use the query params to filter your results.
17
+ *
18
+ * @param {string[]} queries
19
+ * @param {string} search
20
+ * @throws {AppcondaException}
21
+ * @returns {Promise<Models.FunctionList>}
22
+ */
23
+ async list(queries?: string[], search?: string): Promise<Models.FunctionList> {
24
+ const apiPath = '/functions';
25
+ const payload: Payload = {};
26
+ if (typeof queries !== 'undefined') {
27
+ payload['queries'] = queries;
28
+ }
29
+ if (typeof search !== 'undefined') {
30
+ payload['search'] = search;
31
+ }
32
+ const uri = new URL(this.client.config.endpoint + apiPath);
33
+
34
+ const apiHeaders: { [header: string]: string } = {
35
+ 'content-type': 'application/json',
36
+ }
37
+
38
+ return await this.client.call(
39
+ 'get',
40
+ uri,
41
+ apiHeaders,
42
+ payload,
43
+ );
44
+ }
45
+ /**
46
+ * Create function
47
+ *
48
+ * Create a new function. You can pass a list of [permissions](https://appconda.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.
49
+ *
50
+ * @param {string} functionId
51
+ * @param {string} name
52
+ * @param {Runtime} runtime
53
+ * @param {string[]} execute
54
+ * @param {string[]} events
55
+ * @param {string} schedule
56
+ * @param {number} timeout
57
+ * @param {boolean} enabled
58
+ * @param {boolean} logging
59
+ * @param {string} entrypoint
60
+ * @param {string} commands
61
+ * @param {string[]} scopes
62
+ * @param {string} installationId
63
+ * @param {string} providerRepositoryId
64
+ * @param {string} providerBranch
65
+ * @param {boolean} providerSilentMode
66
+ * @param {string} providerRootDirectory
67
+ * @param {string} templateRepository
68
+ * @param {string} templateOwner
69
+ * @param {string} templateRootDirectory
70
+ * @param {string} templateVersion
71
+ * @param {string} specification
72
+ * @throws {AppcondaException}
73
+ * @returns {Promise<Models.Function>}
74
+ */
75
+ async create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, templateRepository?: string, templateOwner?: string, templateRootDirectory?: string, templateVersion?: string, specification?: string): Promise<Models.Function> {
76
+ if (typeof functionId === 'undefined') {
77
+ throw new AppcondaException('Missing required parameter: "functionId"');
78
+ }
79
+ if (typeof name === 'undefined') {
80
+ throw new AppcondaException('Missing required parameter: "name"');
81
+ }
82
+ if (typeof runtime === 'undefined') {
83
+ throw new AppcondaException('Missing required parameter: "runtime"');
84
+ }
85
+ const apiPath = '/functions';
86
+ const payload: Payload = {};
87
+ if (typeof functionId !== 'undefined') {
88
+ payload['functionId'] = functionId;
89
+ }
90
+ if (typeof name !== 'undefined') {
91
+ payload['name'] = name;
92
+ }
93
+ if (typeof runtime !== 'undefined') {
94
+ payload['runtime'] = runtime;
95
+ }
96
+ if (typeof execute !== 'undefined') {
97
+ payload['execute'] = execute;
98
+ }
99
+ if (typeof events !== 'undefined') {
100
+ payload['events'] = events;
101
+ }
102
+ if (typeof schedule !== 'undefined') {
103
+ payload['schedule'] = schedule;
104
+ }
105
+ if (typeof timeout !== 'undefined') {
106
+ payload['timeout'] = timeout;
107
+ }
108
+ if (typeof enabled !== 'undefined') {
109
+ payload['enabled'] = enabled;
110
+ }
111
+ if (typeof logging !== 'undefined') {
112
+ payload['logging'] = logging;
113
+ }
114
+ if (typeof entrypoint !== 'undefined') {
115
+ payload['entrypoint'] = entrypoint;
116
+ }
117
+ if (typeof commands !== 'undefined') {
118
+ payload['commands'] = commands;
119
+ }
120
+ if (typeof scopes !== 'undefined') {
121
+ payload['scopes'] = scopes;
122
+ }
123
+ if (typeof installationId !== 'undefined') {
124
+ payload['installationId'] = installationId;
125
+ }
126
+ if (typeof providerRepositoryId !== 'undefined') {
127
+ payload['providerRepositoryId'] = providerRepositoryId;
128
+ }
129
+ if (typeof providerBranch !== 'undefined') {
130
+ payload['providerBranch'] = providerBranch;
131
+ }
132
+ if (typeof providerSilentMode !== 'undefined') {
133
+ payload['providerSilentMode'] = providerSilentMode;
134
+ }
135
+ if (typeof providerRootDirectory !== 'undefined') {
136
+ payload['providerRootDirectory'] = providerRootDirectory;
137
+ }
138
+ if (typeof templateRepository !== 'undefined') {
139
+ payload['templateRepository'] = templateRepository;
140
+ }
141
+ if (typeof templateOwner !== 'undefined') {
142
+ payload['templateOwner'] = templateOwner;
143
+ }
144
+ if (typeof templateRootDirectory !== 'undefined') {
145
+ payload['templateRootDirectory'] = templateRootDirectory;
146
+ }
147
+ if (typeof templateVersion !== 'undefined') {
148
+ payload['templateVersion'] = templateVersion;
149
+ }
150
+ if (typeof specification !== 'undefined') {
151
+ payload['specification'] = specification;
152
+ }
153
+ const uri = new URL(this.client.config.endpoint + apiPath);
154
+
155
+ const apiHeaders: { [header: string]: string } = {
156
+ 'content-type': 'application/json',
157
+ }
158
+
159
+ return await this.client.call(
160
+ 'post',
161
+ uri,
162
+ apiHeaders,
163
+ payload,
164
+ );
165
+ }
166
+ /**
167
+ * List runtimes
168
+ *
169
+ * Get a list of all runtimes that are currently active on your instance.
170
+ *
171
+ * @throws {AppcondaException}
172
+ * @returns {Promise<Models.RuntimeList>}
173
+ */
174
+ async listRuntimes(): Promise<Models.RuntimeList> {
175
+ const apiPath = '/functions/runtimes';
176
+ const payload: Payload = {};
177
+ const uri = new URL(this.client.config.endpoint + apiPath);
178
+
179
+ const apiHeaders: { [header: string]: string } = {
180
+ 'content-type': 'application/json',
181
+ }
182
+
183
+ return await this.client.call(
184
+ 'get',
185
+ uri,
186
+ apiHeaders,
187
+ payload,
188
+ );
189
+ }
190
+ /**
191
+ * List available function runtime specifications
192
+ *
193
+ * List allowed function specifications for this instance.
194
+
195
+ *
196
+ * @throws {AppcondaException}
197
+ * @returns {Promise<Models.SpecificationList>}
198
+ */
199
+ async listSpecifications(): Promise<Models.SpecificationList> {
200
+ const apiPath = '/functions/specifications';
201
+ const payload: Payload = {};
202
+ const uri = new URL(this.client.config.endpoint + apiPath);
203
+
204
+ const apiHeaders: { [header: string]: string } = {
205
+ 'content-type': 'application/json',
206
+ }
207
+
208
+ return await this.client.call(
209
+ 'get',
210
+ uri,
211
+ apiHeaders,
212
+ payload,
213
+ );
214
+ }
215
+ /**
216
+ * Get function
217
+ *
218
+ * Get a function by its unique ID.
219
+ *
220
+ * @param {string} functionId
221
+ * @throws {AppcondaException}
222
+ * @returns {Promise<Models.Function>}
223
+ */
224
+ async get(functionId: string): Promise<Models.Function> {
225
+ if (typeof functionId === 'undefined') {
226
+ throw new AppcondaException('Missing required parameter: "functionId"');
227
+ }
228
+ const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);
229
+ const payload: Payload = {};
230
+ const uri = new URL(this.client.config.endpoint + apiPath);
231
+
232
+ const apiHeaders: { [header: string]: string } = {
233
+ 'content-type': 'application/json',
234
+ }
235
+
236
+ return await this.client.call(
237
+ 'get',
238
+ uri,
239
+ apiHeaders,
240
+ payload,
241
+ );
242
+ }
243
+ /**
244
+ * Update function
245
+ *
246
+ * Update function by its unique ID.
247
+ *
248
+ * @param {string} functionId
249
+ * @param {string} name
250
+ * @param {Runtime} runtime
251
+ * @param {string[]} execute
252
+ * @param {string[]} events
253
+ * @param {string} schedule
254
+ * @param {number} timeout
255
+ * @param {boolean} enabled
256
+ * @param {boolean} logging
257
+ * @param {string} entrypoint
258
+ * @param {string} commands
259
+ * @param {string[]} scopes
260
+ * @param {string} installationId
261
+ * @param {string} providerRepositoryId
262
+ * @param {string} providerBranch
263
+ * @param {boolean} providerSilentMode
264
+ * @param {string} providerRootDirectory
265
+ * @param {string} specification
266
+ * @throws {AppcondaException}
267
+ * @returns {Promise<Models.Function>}
268
+ */
269
+ async update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function> {
270
+ if (typeof functionId === 'undefined') {
271
+ throw new AppcondaException('Missing required parameter: "functionId"');
272
+ }
273
+ if (typeof name === 'undefined') {
274
+ throw new AppcondaException('Missing required parameter: "name"');
275
+ }
276
+ const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);
277
+ const payload: Payload = {};
278
+ if (typeof name !== 'undefined') {
279
+ payload['name'] = name;
280
+ }
281
+ if (typeof runtime !== 'undefined') {
282
+ payload['runtime'] = runtime;
283
+ }
284
+ if (typeof execute !== 'undefined') {
285
+ payload['execute'] = execute;
286
+ }
287
+ if (typeof events !== 'undefined') {
288
+ payload['events'] = events;
289
+ }
290
+ if (typeof schedule !== 'undefined') {
291
+ payload['schedule'] = schedule;
292
+ }
293
+ if (typeof timeout !== 'undefined') {
294
+ payload['timeout'] = timeout;
295
+ }
296
+ if (typeof enabled !== 'undefined') {
297
+ payload['enabled'] = enabled;
298
+ }
299
+ if (typeof logging !== 'undefined') {
300
+ payload['logging'] = logging;
301
+ }
302
+ if (typeof entrypoint !== 'undefined') {
303
+ payload['entrypoint'] = entrypoint;
304
+ }
305
+ if (typeof commands !== 'undefined') {
306
+ payload['commands'] = commands;
307
+ }
308
+ if (typeof scopes !== 'undefined') {
309
+ payload['scopes'] = scopes;
310
+ }
311
+ if (typeof installationId !== 'undefined') {
312
+ payload['installationId'] = installationId;
313
+ }
314
+ if (typeof providerRepositoryId !== 'undefined') {
315
+ payload['providerRepositoryId'] = providerRepositoryId;
316
+ }
317
+ if (typeof providerBranch !== 'undefined') {
318
+ payload['providerBranch'] = providerBranch;
319
+ }
320
+ if (typeof providerSilentMode !== 'undefined') {
321
+ payload['providerSilentMode'] = providerSilentMode;
322
+ }
323
+ if (typeof providerRootDirectory !== 'undefined') {
324
+ payload['providerRootDirectory'] = providerRootDirectory;
325
+ }
326
+ if (typeof specification !== 'undefined') {
327
+ payload['specification'] = specification;
328
+ }
329
+ const uri = new URL(this.client.config.endpoint + apiPath);
330
+
331
+ const apiHeaders: { [header: string]: string } = {
332
+ 'content-type': 'application/json',
333
+ }
334
+
335
+ return await this.client.call(
336
+ 'put',
337
+ uri,
338
+ apiHeaders,
339
+ payload,
340
+ );
341
+ }
342
+ /**
343
+ * Delete function
344
+ *
345
+ * Delete a function by its unique ID.
346
+ *
347
+ * @param {string} functionId
348
+ * @throws {AppcondaException}
349
+ * @returns {Promise<{}>}
350
+ */
351
+ async delete(functionId: string): Promise<{}> {
352
+ if (typeof functionId === 'undefined') {
353
+ throw new AppcondaException('Missing required parameter: "functionId"');
354
+ }
355
+ const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);
356
+ const payload: Payload = {};
357
+ const uri = new URL(this.client.config.endpoint + apiPath);
358
+
359
+ const apiHeaders: { [header: string]: string } = {
360
+ 'content-type': 'application/json',
361
+ }
362
+
363
+ return await this.client.call(
364
+ 'delete',
365
+ uri,
366
+ apiHeaders,
367
+ payload,
368
+ );
369
+ }
370
+ /**
371
+ * List deployments
372
+ *
373
+ * Get a list of all the project&#039;s code deployments. You can use the query params to filter your results.
374
+ *
375
+ * @param {string} functionId
376
+ * @param {string[]} queries
377
+ * @param {string} search
378
+ * @throws {AppcondaException}
379
+ * @returns {Promise<Models.DeploymentList>}
380
+ */
381
+ async listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList> {
382
+ if (typeof functionId === 'undefined') {
383
+ throw new AppcondaException('Missing required parameter: "functionId"');
384
+ }
385
+ const apiPath = '/functions/{functionId}/deployments'.replace('{functionId}', functionId);
386
+ const payload: Payload = {};
387
+ if (typeof queries !== 'undefined') {
388
+ payload['queries'] = queries;
389
+ }
390
+ if (typeof search !== 'undefined') {
391
+ payload['search'] = search;
392
+ }
393
+ const uri = new URL(this.client.config.endpoint + apiPath);
394
+
395
+ const apiHeaders: { [header: string]: string } = {
396
+ 'content-type': 'application/json',
397
+ }
398
+
399
+ return await this.client.call(
400
+ 'get',
401
+ uri,
402
+ apiHeaders,
403
+ payload,
404
+ );
405
+ }
406
+ /**
407
+ * Create deployment
408
+ *
409
+ * Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you&#039;ll need to update the function&#039;s deployment to use your new deployment UID.
410
+
411
+ This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appconda Cloud Functions tutorial](https://appconda.io/docs/functions).
412
+
413
+ Use the &quot;command&quot; param to set the entrypoint used to execute your code.
414
+ *
415
+ * @param {string} functionId
416
+ * @param {File} code
417
+ * @param {boolean} activate
418
+ * @param {string} entrypoint
419
+ * @param {string} commands
420
+ * @throws {AppcondaException}
421
+ * @returns {Promise<Models.Deployment>}
422
+ */
423
+ async createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress = (progress: UploadProgress) => {}): Promise<Models.Deployment> {
424
+ if (typeof functionId === 'undefined') {
425
+ throw new AppcondaException('Missing required parameter: "functionId"');
426
+ }
427
+ if (typeof code === 'undefined') {
428
+ throw new AppcondaException('Missing required parameter: "code"');
429
+ }
430
+ if (typeof activate === 'undefined') {
431
+ throw new AppcondaException('Missing required parameter: "activate"');
432
+ }
433
+ const apiPath = '/functions/{functionId}/deployments'.replace('{functionId}', functionId);
434
+ const payload: Payload = {};
435
+ if (typeof entrypoint !== 'undefined') {
436
+ payload['entrypoint'] = entrypoint;
437
+ }
438
+ if (typeof commands !== 'undefined') {
439
+ payload['commands'] = commands;
440
+ }
441
+ if (typeof code !== 'undefined') {
442
+ payload['code'] = code;
443
+ }
444
+ if (typeof activate !== 'undefined') {
445
+ payload['activate'] = activate;
446
+ }
447
+ const uri = new URL(this.client.config.endpoint + apiPath);
448
+
449
+ const apiHeaders: { [header: string]: string } = {
450
+ 'content-type': 'multipart/form-data',
451
+ }
452
+
453
+ return await this.client.chunkedUpload(
454
+ 'post',
455
+ uri,
456
+ apiHeaders,
457
+ payload,
458
+ onProgress
459
+ );
460
+ }
461
+ /**
462
+ * Get deployment
463
+ *
464
+ * Get a code deployment by its unique ID.
465
+ *
466
+ * @param {string} functionId
467
+ * @param {string} deploymentId
468
+ * @throws {AppcondaException}
469
+ * @returns {Promise<Models.Deployment>}
470
+ */
471
+ async getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment> {
472
+ if (typeof functionId === 'undefined') {
473
+ throw new AppcondaException('Missing required parameter: "functionId"');
474
+ }
475
+ if (typeof deploymentId === 'undefined') {
476
+ throw new AppcondaException('Missing required parameter: "deploymentId"');
477
+ }
478
+ const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
479
+ const payload: Payload = {};
480
+ const uri = new URL(this.client.config.endpoint + apiPath);
481
+
482
+ const apiHeaders: { [header: string]: string } = {
483
+ 'content-type': 'application/json',
484
+ }
485
+
486
+ return await this.client.call(
487
+ 'get',
488
+ uri,
489
+ apiHeaders,
490
+ payload,
491
+ );
492
+ }
493
+ /**
494
+ * Update deployment
495
+ *
496
+ * Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.
497
+ *
498
+ * @param {string} functionId
499
+ * @param {string} deploymentId
500
+ * @throws {AppcondaException}
501
+ * @returns {Promise<Models.Function>}
502
+ */
503
+ async updateDeployment(functionId: string, deploymentId: string): Promise<Models.Function> {
504
+ if (typeof functionId === 'undefined') {
505
+ throw new AppcondaException('Missing required parameter: "functionId"');
506
+ }
507
+ if (typeof deploymentId === 'undefined') {
508
+ throw new AppcondaException('Missing required parameter: "deploymentId"');
509
+ }
510
+ const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
511
+ const payload: Payload = {};
512
+ const uri = new URL(this.client.config.endpoint + apiPath);
513
+
514
+ const apiHeaders: { [header: string]: string } = {
515
+ 'content-type': 'application/json',
516
+ }
517
+
518
+ return await this.client.call(
519
+ 'patch',
520
+ uri,
521
+ apiHeaders,
522
+ payload,
523
+ );
524
+ }
525
+ /**
526
+ * Delete deployment
527
+ *
528
+ * Delete a code deployment by its unique ID.
529
+ *
530
+ * @param {string} functionId
531
+ * @param {string} deploymentId
532
+ * @throws {AppcondaException}
533
+ * @returns {Promise<{}>}
534
+ */
535
+ async deleteDeployment(functionId: string, deploymentId: string): Promise<{}> {
536
+ if (typeof functionId === 'undefined') {
537
+ throw new AppcondaException('Missing required parameter: "functionId"');
538
+ }
539
+ if (typeof deploymentId === 'undefined') {
540
+ throw new AppcondaException('Missing required parameter: "deploymentId"');
541
+ }
542
+ const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
543
+ const payload: Payload = {};
544
+ const uri = new URL(this.client.config.endpoint + apiPath);
545
+
546
+ const apiHeaders: { [header: string]: string } = {
547
+ 'content-type': 'application/json',
548
+ }
549
+
550
+ return await this.client.call(
551
+ 'delete',
552
+ uri,
553
+ apiHeaders,
554
+ payload,
555
+ );
556
+ }
557
+ /**
558
+ * Rebuild deployment
559
+ *
560
+ *
561
+ * @param {string} functionId
562
+ * @param {string} deploymentId
563
+ * @param {string} buildId
564
+ * @throws {AppcondaException}
565
+ * @returns {Promise<{}>}
566
+ */
567
+ async createBuild(functionId: string, deploymentId: string, buildId?: string): Promise<{}> {
568
+ if (typeof functionId === 'undefined') {
569
+ throw new AppcondaException('Missing required parameter: "functionId"');
570
+ }
571
+ if (typeof deploymentId === 'undefined') {
572
+ throw new AppcondaException('Missing required parameter: "deploymentId"');
573
+ }
574
+ const apiPath = '/functions/{functionId}/deployments/{deploymentId}/build'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
575
+ const payload: Payload = {};
576
+ if (typeof buildId !== 'undefined') {
577
+ payload['buildId'] = buildId;
578
+ }
579
+ const uri = new URL(this.client.config.endpoint + apiPath);
580
+
581
+ const apiHeaders: { [header: string]: string } = {
582
+ 'content-type': 'application/json',
583
+ }
584
+
585
+ return await this.client.call(
586
+ 'post',
587
+ uri,
588
+ apiHeaders,
589
+ payload,
590
+ );
591
+ }
592
+ /**
593
+ * Cancel deployment
594
+ *
595
+ *
596
+ * @param {string} functionId
597
+ * @param {string} deploymentId
598
+ * @throws {AppcondaException}
599
+ * @returns {Promise<Models.Build>}
600
+ */
601
+ async updateDeploymentBuild(functionId: string, deploymentId: string): Promise<Models.Build> {
602
+ if (typeof functionId === 'undefined') {
603
+ throw new AppcondaException('Missing required parameter: "functionId"');
604
+ }
605
+ if (typeof deploymentId === 'undefined') {
606
+ throw new AppcondaException('Missing required parameter: "deploymentId"');
607
+ }
608
+ const apiPath = '/functions/{functionId}/deployments/{deploymentId}/build'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
609
+ const payload: Payload = {};
610
+ const uri = new URL(this.client.config.endpoint + apiPath);
611
+
612
+ const apiHeaders: { [header: string]: string } = {
613
+ 'content-type': 'application/json',
614
+ }
615
+
616
+ return await this.client.call(
617
+ 'patch',
618
+ uri,
619
+ apiHeaders,
620
+ payload,
621
+ );
622
+ }
623
+ /**
624
+ * Download deployment
625
+ *
626
+ * Get a Deployment&#039;s contents by its unique ID. This endpoint supports range requests for partial or streaming file download.
627
+ *
628
+ * @param {string} functionId
629
+ * @param {string} deploymentId
630
+ * @throws {AppcondaException}
631
+ * @returns {Promise<ArrayBuffer>}
632
+ */
633
+ async getDeploymentDownload(functionId: string, deploymentId: string): Promise<ArrayBuffer> {
634
+ if (typeof functionId === 'undefined') {
635
+ throw new AppcondaException('Missing required parameter: "functionId"');
636
+ }
637
+ if (typeof deploymentId === 'undefined') {
638
+ throw new AppcondaException('Missing required parameter: "deploymentId"');
639
+ }
640
+ const apiPath = '/functions/{functionId}/deployments/{deploymentId}/download'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
641
+ const payload: Payload = {};
642
+ const uri = new URL(this.client.config.endpoint + apiPath);
643
+
644
+ const apiHeaders: { [header: string]: string } = {
645
+ 'content-type': 'application/json',
646
+ }
647
+
648
+ return await this.client.call(
649
+ 'get',
650
+ uri,
651
+ apiHeaders,
652
+ payload,
653
+ 'arrayBuffer'
654
+ );
655
+ }
656
+ /**
657
+ * List executions
658
+ *
659
+ * Get a list of all the current user function execution logs. You can use the query params to filter your results.
660
+ *
661
+ * @param {string} functionId
662
+ * @param {string[]} queries
663
+ * @param {string} search
664
+ * @throws {AppcondaException}
665
+ * @returns {Promise<Models.ExecutionList>}
666
+ */
667
+ async listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList> {
668
+ if (typeof functionId === 'undefined') {
669
+ throw new AppcondaException('Missing required parameter: "functionId"');
670
+ }
671
+ const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);
672
+ const payload: Payload = {};
673
+ if (typeof queries !== 'undefined') {
674
+ payload['queries'] = queries;
675
+ }
676
+ if (typeof search !== 'undefined') {
677
+ payload['search'] = search;
678
+ }
679
+ const uri = new URL(this.client.config.endpoint + apiPath);
680
+
681
+ const apiHeaders: { [header: string]: string } = {
682
+ 'content-type': 'application/json',
683
+ }
684
+
685
+ return await this.client.call(
686
+ 'get',
687
+ uri,
688
+ apiHeaders,
689
+ payload,
690
+ );
691
+ }
692
+ /**
693
+ * Create execution
694
+ *
695
+ * Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.
696
+ *
697
+ * @param {string} functionId
698
+ * @param {string} body
699
+ * @param {boolean} async
700
+ * @param {string} xpath
701
+ * @param {ExecutionMethod} method
702
+ * @param {object} headers
703
+ * @param {string} scheduledAt
704
+ * @throws {AppcondaException}
705
+ * @returns {Promise<Models.Execution>}
706
+ */
707
+ async createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution> {
708
+ if (typeof functionId === 'undefined') {
709
+ throw new AppcondaException('Missing required parameter: "functionId"');
710
+ }
711
+ const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);
712
+ const payload: Payload = {};
713
+ if (typeof body !== 'undefined') {
714
+ payload['body'] = body;
715
+ }
716
+ if (typeof async !== 'undefined') {
717
+ payload['async'] = async;
718
+ }
719
+ if (typeof xpath !== 'undefined') {
720
+ payload['path'] = xpath;
721
+ }
722
+ if (typeof method !== 'undefined') {
723
+ payload['method'] = method;
724
+ }
725
+ if (typeof headers !== 'undefined') {
726
+ payload['headers'] = headers;
727
+ }
728
+ if (typeof scheduledAt !== 'undefined') {
729
+ payload['scheduledAt'] = scheduledAt;
730
+ }
731
+ const uri = new URL(this.client.config.endpoint + apiPath);
732
+
733
+ const apiHeaders: { [header: string]: string } = {
734
+ 'content-type': 'application/json',
735
+ }
736
+
737
+ return await this.client.call(
738
+ 'post',
739
+ uri,
740
+ apiHeaders,
741
+ payload,
742
+ );
743
+ }
744
+ /**
745
+ * Get execution
746
+ *
747
+ * Get a function execution log by its unique ID.
748
+ *
749
+ * @param {string} functionId
750
+ * @param {string} executionId
751
+ * @throws {AppcondaException}
752
+ * @returns {Promise<Models.Execution>}
753
+ */
754
+ async getExecution(functionId: string, executionId: string): Promise<Models.Execution> {
755
+ if (typeof functionId === 'undefined') {
756
+ throw new AppcondaException('Missing required parameter: "functionId"');
757
+ }
758
+ if (typeof executionId === 'undefined') {
759
+ throw new AppcondaException('Missing required parameter: "executionId"');
760
+ }
761
+ const apiPath = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);
762
+ const payload: Payload = {};
763
+ const uri = new URL(this.client.config.endpoint + apiPath);
764
+
765
+ const apiHeaders: { [header: string]: string } = {
766
+ 'content-type': 'application/json',
767
+ }
768
+
769
+ return await this.client.call(
770
+ 'get',
771
+ uri,
772
+ apiHeaders,
773
+ payload,
774
+ );
775
+ }
776
+ /**
777
+ * Delete execution
778
+ *
779
+ * Delete a function execution by its unique ID.
780
+
781
+ *
782
+ * @param {string} functionId
783
+ * @param {string} executionId
784
+ * @throws {AppcondaException}
785
+ * @returns {Promise<{}>}
786
+ */
787
+ async deleteExecution(functionId: string, executionId: string): Promise<{}> {
788
+ if (typeof functionId === 'undefined') {
789
+ throw new AppcondaException('Missing required parameter: "functionId"');
790
+ }
791
+ if (typeof executionId === 'undefined') {
792
+ throw new AppcondaException('Missing required parameter: "executionId"');
793
+ }
794
+ const apiPath = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);
795
+ const payload: Payload = {};
796
+ const uri = new URL(this.client.config.endpoint + apiPath);
797
+
798
+ const apiHeaders: { [header: string]: string } = {
799
+ 'content-type': 'application/json',
800
+ }
801
+
802
+ return await this.client.call(
803
+ 'delete',
804
+ uri,
805
+ apiHeaders,
806
+ payload,
807
+ );
808
+ }
809
+ /**
810
+ * List variables
811
+ *
812
+ * Get a list of all variables of a specific function.
813
+ *
814
+ * @param {string} functionId
815
+ * @throws {AppcondaException}
816
+ * @returns {Promise<Models.VariableList>}
817
+ */
818
+ async listVariables(functionId: string): Promise<Models.VariableList> {
819
+ if (typeof functionId === 'undefined') {
820
+ throw new AppcondaException('Missing required parameter: "functionId"');
821
+ }
822
+ const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
823
+ const payload: Payload = {};
824
+ const uri = new URL(this.client.config.endpoint + apiPath);
825
+
826
+ const apiHeaders: { [header: string]: string } = {
827
+ 'content-type': 'application/json',
828
+ }
829
+
830
+ return await this.client.call(
831
+ 'get',
832
+ uri,
833
+ apiHeaders,
834
+ payload,
835
+ );
836
+ }
837
+ /**
838
+ * Create variable
839
+ *
840
+ * Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
841
+ *
842
+ * @param {string} functionId
843
+ * @param {string} key
844
+ * @param {string} value
845
+ * @throws {AppcondaException}
846
+ * @returns {Promise<Models.Variable>}
847
+ */
848
+ async createVariable(functionId: string, key: string, value: string): Promise<Models.Variable> {
849
+ if (typeof functionId === 'undefined') {
850
+ throw new AppcondaException('Missing required parameter: "functionId"');
851
+ }
852
+ if (typeof key === 'undefined') {
853
+ throw new AppcondaException('Missing required parameter: "key"');
854
+ }
855
+ if (typeof value === 'undefined') {
856
+ throw new AppcondaException('Missing required parameter: "value"');
857
+ }
858
+ const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
859
+ const payload: Payload = {};
860
+ if (typeof key !== 'undefined') {
861
+ payload['key'] = key;
862
+ }
863
+ if (typeof value !== 'undefined') {
864
+ payload['value'] = value;
865
+ }
866
+ const uri = new URL(this.client.config.endpoint + apiPath);
867
+
868
+ const apiHeaders: { [header: string]: string } = {
869
+ 'content-type': 'application/json',
870
+ }
871
+
872
+ return await this.client.call(
873
+ 'post',
874
+ uri,
875
+ apiHeaders,
876
+ payload,
877
+ );
878
+ }
879
+ /**
880
+ * Get variable
881
+ *
882
+ * Get a variable by its unique ID.
883
+ *
884
+ * @param {string} functionId
885
+ * @param {string} variableId
886
+ * @throws {AppcondaException}
887
+ * @returns {Promise<Models.Variable>}
888
+ */
889
+ async getVariable(functionId: string, variableId: string): Promise<Models.Variable> {
890
+ if (typeof functionId === 'undefined') {
891
+ throw new AppcondaException('Missing required parameter: "functionId"');
892
+ }
893
+ if (typeof variableId === 'undefined') {
894
+ throw new AppcondaException('Missing required parameter: "variableId"');
895
+ }
896
+ const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
897
+ const payload: Payload = {};
898
+ const uri = new URL(this.client.config.endpoint + apiPath);
899
+
900
+ const apiHeaders: { [header: string]: string } = {
901
+ 'content-type': 'application/json',
902
+ }
903
+
904
+ return await this.client.call(
905
+ 'get',
906
+ uri,
907
+ apiHeaders,
908
+ payload,
909
+ );
910
+ }
911
+ /**
912
+ * Update variable
913
+ *
914
+ * Update variable by its unique ID.
915
+ *
916
+ * @param {string} functionId
917
+ * @param {string} variableId
918
+ * @param {string} key
919
+ * @param {string} value
920
+ * @throws {AppcondaException}
921
+ * @returns {Promise<Models.Variable>}
922
+ */
923
+ async updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable> {
924
+ if (typeof functionId === 'undefined') {
925
+ throw new AppcondaException('Missing required parameter: "functionId"');
926
+ }
927
+ if (typeof variableId === 'undefined') {
928
+ throw new AppcondaException('Missing required parameter: "variableId"');
929
+ }
930
+ if (typeof key === 'undefined') {
931
+ throw new AppcondaException('Missing required parameter: "key"');
932
+ }
933
+ const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
934
+ const payload: Payload = {};
935
+ if (typeof key !== 'undefined') {
936
+ payload['key'] = key;
937
+ }
938
+ if (typeof value !== 'undefined') {
939
+ payload['value'] = value;
940
+ }
941
+ const uri = new URL(this.client.config.endpoint + apiPath);
942
+
943
+ const apiHeaders: { [header: string]: string } = {
944
+ 'content-type': 'application/json',
945
+ }
946
+
947
+ return await this.client.call(
948
+ 'put',
949
+ uri,
950
+ apiHeaders,
951
+ payload,
952
+ );
953
+ }
954
+ /**
955
+ * Delete variable
956
+ *
957
+ * Delete a variable by its unique ID.
958
+ *
959
+ * @param {string} functionId
960
+ * @param {string} variableId
961
+ * @throws {AppcondaException}
962
+ * @returns {Promise<{}>}
963
+ */
964
+ async deleteVariable(functionId: string, variableId: string): Promise<{}> {
965
+ if (typeof functionId === 'undefined') {
966
+ throw new AppcondaException('Missing required parameter: "functionId"');
967
+ }
968
+ if (typeof variableId === 'undefined') {
969
+ throw new AppcondaException('Missing required parameter: "variableId"');
970
+ }
971
+ const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
972
+ const payload: Payload = {};
973
+ const uri = new URL(this.client.config.endpoint + apiPath);
974
+
975
+ const apiHeaders: { [header: string]: string } = {
976
+ 'content-type': 'application/json',
977
+ }
978
+
979
+ return await this.client.call(
980
+ 'delete',
981
+ uri,
982
+ apiHeaders,
983
+ payload,
984
+ );
985
+ }
986
+ }