@owbase/node 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (640) hide show
  1. package/LICENSE +29 -0
  2. package/NOTICE +134 -0
  3. package/README.md +78 -2
  4. package/dist/client.d.mts +235 -0
  5. package/dist/client.d.ts +235 -0
  6. package/dist/client.js +710 -0
  7. package/dist/client.js.map +1 -0
  8. package/dist/client.mjs +700 -0
  9. package/dist/client.mjs.map +1 -0
  10. package/dist/enums/adapter.d.mts +6 -0
  11. package/dist/enums/adapter.d.ts +6 -0
  12. package/dist/enums/adapter.js +11 -0
  13. package/dist/enums/adapter.js.map +1 -0
  14. package/dist/enums/adapter.mjs +10 -0
  15. package/dist/enums/adapter.mjs.map +1 -0
  16. package/dist/enums/attribute-status.d.mts +9 -0
  17. package/dist/enums/attribute-status.d.ts +9 -0
  18. package/dist/enums/attribute-status.js +14 -0
  19. package/dist/enums/attribute-status.js.map +1 -0
  20. package/dist/enums/attribute-status.mjs +13 -0
  21. package/dist/enums/attribute-status.mjs.map +1 -0
  22. package/dist/enums/authentication-factor.d.mts +9 -0
  23. package/dist/enums/authentication-factor.d.ts +9 -0
  24. package/dist/enums/authentication-factor.js +14 -0
  25. package/dist/enums/authentication-factor.js.map +1 -0
  26. package/dist/enums/authentication-factor.mjs +13 -0
  27. package/dist/enums/authentication-factor.mjs.map +1 -0
  28. package/dist/enums/authenticator-type.d.mts +5 -0
  29. package/dist/enums/authenticator-type.d.ts +5 -0
  30. package/dist/enums/authenticator-type.js +10 -0
  31. package/dist/enums/authenticator-type.js.map +1 -0
  32. package/dist/enums/authenticator-type.mjs +9 -0
  33. package/dist/enums/authenticator-type.mjs.map +1 -0
  34. package/dist/enums/browser-permission.d.mts +24 -0
  35. package/dist/enums/browser-permission.d.ts +24 -0
  36. package/dist/enums/browser-permission.js +29 -0
  37. package/dist/enums/browser-permission.js.map +1 -0
  38. package/dist/enums/browser-permission.mjs +28 -0
  39. package/dist/enums/browser-permission.mjs.map +1 -0
  40. package/dist/enums/browser-theme.d.mts +6 -0
  41. package/dist/enums/browser-theme.d.ts +6 -0
  42. package/dist/enums/browser-theme.js +11 -0
  43. package/dist/enums/browser-theme.js.map +1 -0
  44. package/dist/enums/browser-theme.mjs +10 -0
  45. package/dist/enums/browser-theme.mjs.map +1 -0
  46. package/dist/enums/browser.d.mts +18 -0
  47. package/dist/enums/browser.d.ts +18 -0
  48. package/dist/enums/browser.js +23 -0
  49. package/dist/enums/browser.js.map +1 -0
  50. package/dist/enums/browser.mjs +22 -0
  51. package/dist/enums/browser.mjs.map +1 -0
  52. package/dist/enums/build-runtime.d.mts +102 -0
  53. package/dist/enums/build-runtime.d.ts +102 -0
  54. package/dist/enums/build-runtime.js +107 -0
  55. package/dist/enums/build-runtime.js.map +1 -0
  56. package/dist/enums/build-runtime.mjs +106 -0
  57. package/dist/enums/build-runtime.mjs.map +1 -0
  58. package/dist/enums/column-status.d.mts +9 -0
  59. package/dist/enums/column-status.d.ts +9 -0
  60. package/dist/enums/column-status.js +14 -0
  61. package/dist/enums/column-status.js.map +1 -0
  62. package/dist/enums/column-status.mjs +13 -0
  63. package/dist/enums/column-status.mjs.map +1 -0
  64. package/dist/enums/compression.d.mts +7 -0
  65. package/dist/enums/compression.d.ts +7 -0
  66. package/dist/enums/compression.js +12 -0
  67. package/dist/enums/compression.js.map +1 -0
  68. package/dist/enums/compression.mjs +11 -0
  69. package/dist/enums/compression.mjs.map +1 -0
  70. package/dist/enums/credit-card.d.mts +21 -0
  71. package/dist/enums/credit-card.d.ts +21 -0
  72. package/dist/enums/credit-card.js +26 -0
  73. package/dist/enums/credit-card.js.map +1 -0
  74. package/dist/enums/credit-card.mjs +25 -0
  75. package/dist/enums/credit-card.mjs.map +1 -0
  76. package/dist/enums/database-status.d.mts +7 -0
  77. package/dist/enums/database-status.d.ts +7 -0
  78. package/dist/enums/database-status.js +12 -0
  79. package/dist/enums/database-status.js.map +1 -0
  80. package/dist/enums/database-status.mjs +11 -0
  81. package/dist/enums/database-status.mjs.map +1 -0
  82. package/dist/enums/database-type.d.mts +8 -0
  83. package/dist/enums/database-type.d.ts +8 -0
  84. package/dist/enums/database-type.js +13 -0
  85. package/dist/enums/database-type.js.map +1 -0
  86. package/dist/enums/database-type.mjs +12 -0
  87. package/dist/enums/database-type.mjs.map +1 -0
  88. package/dist/enums/databases-index-type.d.mts +8 -0
  89. package/dist/enums/databases-index-type.d.ts +8 -0
  90. package/dist/enums/databases-index-type.js +13 -0
  91. package/dist/enums/databases-index-type.js.map +1 -0
  92. package/dist/enums/databases-index-type.mjs +12 -0
  93. package/dist/enums/databases-index-type.mjs.map +1 -0
  94. package/dist/enums/deployment-download-type.d.mts +6 -0
  95. package/dist/enums/deployment-download-type.d.ts +6 -0
  96. package/dist/enums/deployment-download-type.js +11 -0
  97. package/dist/enums/deployment-download-type.js.map +1 -0
  98. package/dist/enums/deployment-download-type.mjs +10 -0
  99. package/dist/enums/deployment-download-type.mjs.map +1 -0
  100. package/dist/enums/deployment-status.d.mts +10 -0
  101. package/dist/enums/deployment-status.d.ts +10 -0
  102. package/dist/enums/deployment-status.js +15 -0
  103. package/dist/enums/deployment-status.js.map +1 -0
  104. package/dist/enums/deployment-status.mjs +14 -0
  105. package/dist/enums/deployment-status.mjs.map +1 -0
  106. package/dist/enums/embedding-model.d.mts +6 -0
  107. package/dist/enums/embedding-model.d.ts +6 -0
  108. package/dist/enums/embedding-model.js +11 -0
  109. package/dist/enums/embedding-model.js.map +1 -0
  110. package/dist/enums/embedding-model.mjs +10 -0
  111. package/dist/enums/embedding-model.mjs.map +1 -0
  112. package/dist/enums/execution-method.d.mts +11 -0
  113. package/dist/enums/execution-method.d.ts +11 -0
  114. package/dist/enums/execution-method.js +16 -0
  115. package/dist/enums/execution-method.js.map +1 -0
  116. package/dist/enums/execution-method.mjs +15 -0
  117. package/dist/enums/execution-method.mjs.map +1 -0
  118. package/dist/enums/execution-resource-type.d.mts +6 -0
  119. package/dist/enums/execution-resource-type.d.ts +6 -0
  120. package/dist/enums/execution-resource-type.js +11 -0
  121. package/dist/enums/execution-resource-type.js.map +1 -0
  122. package/dist/enums/execution-resource-type.mjs +10 -0
  123. package/dist/enums/execution-resource-type.mjs.map +1 -0
  124. package/dist/enums/execution-status.d.mts +9 -0
  125. package/dist/enums/execution-status.d.ts +9 -0
  126. package/dist/enums/execution-status.js +14 -0
  127. package/dist/enums/execution-status.js.map +1 -0
  128. package/dist/enums/execution-status.mjs +13 -0
  129. package/dist/enums/execution-status.mjs.map +1 -0
  130. package/dist/enums/execution-trigger.d.mts +7 -0
  131. package/dist/enums/execution-trigger.d.ts +7 -0
  132. package/dist/enums/execution-trigger.js +12 -0
  133. package/dist/enums/execution-trigger.js.map +1 -0
  134. package/dist/enums/execution-trigger.mjs +11 -0
  135. package/dist/enums/execution-trigger.mjs.map +1 -0
  136. package/dist/enums/flag.d.mts +199 -0
  137. package/dist/enums/flag.d.ts +199 -0
  138. package/dist/enums/flag.js +204 -0
  139. package/dist/enums/flag.js.map +1 -0
  140. package/dist/enums/flag.mjs +203 -0
  141. package/dist/enums/flag.mjs.map +1 -0
  142. package/dist/enums/framework.d.mts +20 -0
  143. package/dist/enums/framework.d.ts +20 -0
  144. package/dist/enums/framework.js +25 -0
  145. package/dist/enums/framework.js.map +1 -0
  146. package/dist/enums/framework.mjs +24 -0
  147. package/dist/enums/framework.mjs.map +1 -0
  148. package/dist/enums/id-token-provider.d.mts +6 -0
  149. package/dist/enums/id-token-provider.d.ts +6 -0
  150. package/dist/enums/id-token-provider.js +11 -0
  151. package/dist/enums/id-token-provider.js.map +1 -0
  152. package/dist/enums/id-token-provider.mjs +10 -0
  153. package/dist/enums/id-token-provider.mjs.map +1 -0
  154. package/dist/enums/image-format.d.mts +11 -0
  155. package/dist/enums/image-format.d.ts +11 -0
  156. package/dist/enums/image-format.js +16 -0
  157. package/dist/enums/image-format.js.map +1 -0
  158. package/dist/enums/image-format.mjs +15 -0
  159. package/dist/enums/image-format.mjs.map +1 -0
  160. package/dist/enums/image-gravity.d.mts +14 -0
  161. package/dist/enums/image-gravity.d.ts +14 -0
  162. package/dist/enums/image-gravity.js +19 -0
  163. package/dist/enums/image-gravity.js.map +1 -0
  164. package/dist/enums/image-gravity.mjs +18 -0
  165. package/dist/enums/image-gravity.mjs.map +1 -0
  166. package/dist/enums/index-status.d.mts +9 -0
  167. package/dist/enums/index-status.d.ts +9 -0
  168. package/dist/enums/index-status.js +14 -0
  169. package/dist/enums/index-status.js.map +1 -0
  170. package/dist/enums/index-status.mjs +13 -0
  171. package/dist/enums/index-status.mjs.map +1 -0
  172. package/dist/enums/message-priority.d.mts +6 -0
  173. package/dist/enums/message-priority.d.ts +6 -0
  174. package/dist/enums/message-priority.js +11 -0
  175. package/dist/enums/message-priority.js.map +1 -0
  176. package/dist/enums/message-priority.mjs +10 -0
  177. package/dist/enums/message-priority.mjs.map +1 -0
  178. package/dist/enums/message-status.d.mts +9 -0
  179. package/dist/enums/message-status.d.ts +9 -0
  180. package/dist/enums/message-status.js +14 -0
  181. package/dist/enums/message-status.js.map +1 -0
  182. package/dist/enums/message-status.mjs +13 -0
  183. package/dist/enums/message-status.mjs.map +1 -0
  184. package/dist/enums/messaging-provider-type.d.mts +7 -0
  185. package/dist/enums/messaging-provider-type.d.ts +7 -0
  186. package/dist/enums/messaging-provider-type.js +12 -0
  187. package/dist/enums/messaging-provider-type.js.map +1 -0
  188. package/dist/enums/messaging-provider-type.mjs +11 -0
  189. package/dist/enums/messaging-provider-type.mjs.map +1 -0
  190. package/dist/enums/o-auth-2-auth-0-prompt.d.mts +7 -0
  191. package/dist/enums/o-auth-2-auth-0-prompt.d.ts +7 -0
  192. package/dist/enums/o-auth-2-auth-0-prompt.js +12 -0
  193. package/dist/enums/o-auth-2-auth-0-prompt.js.map +1 -0
  194. package/dist/enums/o-auth-2-auth-0-prompt.mjs +11 -0
  195. package/dist/enums/o-auth-2-auth-0-prompt.mjs.map +1 -0
  196. package/dist/enums/o-auth-2-discord-prompt.d.mts +6 -0
  197. package/dist/enums/o-auth-2-discord-prompt.d.ts +6 -0
  198. package/dist/enums/o-auth-2-discord-prompt.js +11 -0
  199. package/dist/enums/o-auth-2-discord-prompt.js.map +1 -0
  200. package/dist/enums/o-auth-2-discord-prompt.mjs +10 -0
  201. package/dist/enums/o-auth-2-discord-prompt.mjs.map +1 -0
  202. package/dist/enums/o-auth-2-github-prompt.d.mts +5 -0
  203. package/dist/enums/o-auth-2-github-prompt.d.ts +5 -0
  204. package/dist/enums/o-auth-2-github-prompt.js +10 -0
  205. package/dist/enums/o-auth-2-github-prompt.js.map +1 -0
  206. package/dist/enums/o-auth-2-github-prompt.mjs +9 -0
  207. package/dist/enums/o-auth-2-github-prompt.mjs.map +1 -0
  208. package/dist/enums/o-auth-2-google-prompt.d.mts +7 -0
  209. package/dist/enums/o-auth-2-google-prompt.d.ts +7 -0
  210. package/dist/enums/o-auth-2-google-prompt.js +12 -0
  211. package/dist/enums/o-auth-2-google-prompt.js.map +1 -0
  212. package/dist/enums/o-auth-2-google-prompt.mjs +11 -0
  213. package/dist/enums/o-auth-2-google-prompt.mjs.map +1 -0
  214. package/dist/enums/o-auth-2-kakao-prompt.d.mts +8 -0
  215. package/dist/enums/o-auth-2-kakao-prompt.d.ts +8 -0
  216. package/dist/enums/o-auth-2-kakao-prompt.js +13 -0
  217. package/dist/enums/o-auth-2-kakao-prompt.js.map +1 -0
  218. package/dist/enums/o-auth-2-kakao-prompt.mjs +12 -0
  219. package/dist/enums/o-auth-2-kakao-prompt.mjs.map +1 -0
  220. package/dist/enums/o-auth-2-microsoft-prompt.d.mts +8 -0
  221. package/dist/enums/o-auth-2-microsoft-prompt.d.ts +8 -0
  222. package/dist/enums/o-auth-2-microsoft-prompt.js +13 -0
  223. package/dist/enums/o-auth-2-microsoft-prompt.js.map +1 -0
  224. package/dist/enums/o-auth-2-microsoft-prompt.mjs +12 -0
  225. package/dist/enums/o-auth-2-microsoft-prompt.mjs.map +1 -0
  226. package/dist/enums/o-auth-2-oidc-prompt.d.mts +8 -0
  227. package/dist/enums/o-auth-2-oidc-prompt.d.ts +8 -0
  228. package/dist/enums/o-auth-2-oidc-prompt.js +13 -0
  229. package/dist/enums/o-auth-2-oidc-prompt.js.map +1 -0
  230. package/dist/enums/o-auth-2-oidc-prompt.mjs +12 -0
  231. package/dist/enums/o-auth-2-oidc-prompt.mjs.map +1 -0
  232. package/dist/enums/o-auth-2-okta-prompt.d.mts +7 -0
  233. package/dist/enums/o-auth-2-okta-prompt.d.ts +7 -0
  234. package/dist/enums/o-auth-2-okta-prompt.js +12 -0
  235. package/dist/enums/o-auth-2-okta-prompt.js.map +1 -0
  236. package/dist/enums/o-auth-2-okta-prompt.mjs +11 -0
  237. package/dist/enums/o-auth-2-okta-prompt.mjs.map +1 -0
  238. package/dist/enums/o-auth-2-salesforce-prompt.d.mts +6 -0
  239. package/dist/enums/o-auth-2-salesforce-prompt.d.ts +6 -0
  240. package/dist/enums/o-auth-2-salesforce-prompt.js +11 -0
  241. package/dist/enums/o-auth-2-salesforce-prompt.js.map +1 -0
  242. package/dist/enums/o-auth-2-salesforce-prompt.mjs +10 -0
  243. package/dist/enums/o-auth-2-salesforce-prompt.mjs.map +1 -0
  244. package/dist/enums/o-auth-2-zoho-prompt.d.mts +5 -0
  245. package/dist/enums/o-auth-2-zoho-prompt.d.ts +5 -0
  246. package/dist/enums/o-auth-2-zoho-prompt.js +10 -0
  247. package/dist/enums/o-auth-2-zoho-prompt.js.map +1 -0
  248. package/dist/enums/o-auth-2-zoho-prompt.mjs +9 -0
  249. package/dist/enums/o-auth-2-zoho-prompt.mjs.map +1 -0
  250. package/dist/enums/o-auth-provider.d.mts +53 -0
  251. package/dist/enums/o-auth-provider.d.ts +53 -0
  252. package/dist/enums/o-auth-provider.js +58 -0
  253. package/dist/enums/o-auth-provider.js.map +1 -0
  254. package/dist/enums/o-auth-provider.mjs +57 -0
  255. package/dist/enums/o-auth-provider.mjs.map +1 -0
  256. package/dist/enums/order-by.d.mts +6 -0
  257. package/dist/enums/order-by.d.ts +6 -0
  258. package/dist/enums/order-by.js +11 -0
  259. package/dist/enums/order-by.js.map +1 -0
  260. package/dist/enums/order-by.mjs +10 -0
  261. package/dist/enums/order-by.mjs.map +1 -0
  262. package/dist/enums/password-hash.d.mts +15 -0
  263. package/dist/enums/password-hash.d.ts +15 -0
  264. package/dist/enums/password-hash.js +20 -0
  265. package/dist/enums/password-hash.js.map +1 -0
  266. package/dist/enums/password-hash.mjs +19 -0
  267. package/dist/enums/password-hash.mjs.map +1 -0
  268. package/dist/enums/platform-type.d.mts +9 -0
  269. package/dist/enums/platform-type.d.ts +9 -0
  270. package/dist/enums/platform-type.js +14 -0
  271. package/dist/enums/platform-type.js.map +1 -0
  272. package/dist/enums/platform-type.mjs +13 -0
  273. package/dist/enums/platform-type.mjs.map +1 -0
  274. package/dist/enums/project-auth-method-id.d.mts +12 -0
  275. package/dist/enums/project-auth-method-id.d.ts +12 -0
  276. package/dist/enums/project-auth-method-id.js +17 -0
  277. package/dist/enums/project-auth-method-id.js.map +1 -0
  278. package/dist/enums/project-auth-method-id.mjs +16 -0
  279. package/dist/enums/project-auth-method-id.mjs.map +1 -0
  280. package/dist/enums/project-email-template-id.d.mts +13 -0
  281. package/dist/enums/project-email-template-id.d.ts +13 -0
  282. package/dist/enums/project-email-template-id.js +18 -0
  283. package/dist/enums/project-email-template-id.js.map +1 -0
  284. package/dist/enums/project-email-template-id.mjs +17 -0
  285. package/dist/enums/project-email-template-id.mjs.map +1 -0
  286. package/dist/enums/project-email-template-locale.d.mts +135 -0
  287. package/dist/enums/project-email-template-locale.d.ts +135 -0
  288. package/dist/enums/project-email-template-locale.js +140 -0
  289. package/dist/enums/project-email-template-locale.js.map +1 -0
  290. package/dist/enums/project-email-template-locale.mjs +139 -0
  291. package/dist/enums/project-email-template-locale.mjs.map +1 -0
  292. package/dist/enums/project-key-scopes.d.mts +109 -0
  293. package/dist/enums/project-key-scopes.d.ts +109 -0
  294. package/dist/enums/project-key-scopes.js +114 -0
  295. package/dist/enums/project-key-scopes.js.map +1 -0
  296. package/dist/enums/project-key-scopes.mjs +113 -0
  297. package/dist/enums/project-key-scopes.mjs.map +1 -0
  298. package/dist/enums/project-o-auth-2-auth-0-prompt.d.mts +7 -0
  299. package/dist/enums/project-o-auth-2-auth-0-prompt.d.ts +7 -0
  300. package/dist/enums/project-o-auth-2-auth-0-prompt.js +12 -0
  301. package/dist/enums/project-o-auth-2-auth-0-prompt.js.map +1 -0
  302. package/dist/enums/project-o-auth-2-auth-0-prompt.mjs +11 -0
  303. package/dist/enums/project-o-auth-2-auth-0-prompt.mjs.map +1 -0
  304. package/dist/enums/project-o-auth-2-discord-prompt.d.mts +6 -0
  305. package/dist/enums/project-o-auth-2-discord-prompt.d.ts +6 -0
  306. package/dist/enums/project-o-auth-2-discord-prompt.js +11 -0
  307. package/dist/enums/project-o-auth-2-discord-prompt.js.map +1 -0
  308. package/dist/enums/project-o-auth-2-discord-prompt.mjs +10 -0
  309. package/dist/enums/project-o-auth-2-discord-prompt.mjs.map +1 -0
  310. package/dist/enums/project-o-auth-2-git-hub-prompt.d.mts +5 -0
  311. package/dist/enums/project-o-auth-2-git-hub-prompt.d.ts +5 -0
  312. package/dist/enums/project-o-auth-2-git-hub-prompt.js +10 -0
  313. package/dist/enums/project-o-auth-2-git-hub-prompt.js.map +1 -0
  314. package/dist/enums/project-o-auth-2-git-hub-prompt.mjs +9 -0
  315. package/dist/enums/project-o-auth-2-git-hub-prompt.mjs.map +1 -0
  316. package/dist/enums/project-o-auth-2-google-prompt.d.mts +7 -0
  317. package/dist/enums/project-o-auth-2-google-prompt.d.ts +7 -0
  318. package/dist/enums/project-o-auth-2-google-prompt.js +12 -0
  319. package/dist/enums/project-o-auth-2-google-prompt.js.map +1 -0
  320. package/dist/enums/project-o-auth-2-google-prompt.mjs +11 -0
  321. package/dist/enums/project-o-auth-2-google-prompt.mjs.map +1 -0
  322. package/dist/enums/project-o-auth-2-kakao-prompt.d.mts +8 -0
  323. package/dist/enums/project-o-auth-2-kakao-prompt.d.ts +8 -0
  324. package/dist/enums/project-o-auth-2-kakao-prompt.js +13 -0
  325. package/dist/enums/project-o-auth-2-kakao-prompt.js.map +1 -0
  326. package/dist/enums/project-o-auth-2-kakao-prompt.mjs +12 -0
  327. package/dist/enums/project-o-auth-2-kakao-prompt.mjs.map +1 -0
  328. package/dist/enums/project-o-auth-2-microsoft-prompt.d.mts +8 -0
  329. package/dist/enums/project-o-auth-2-microsoft-prompt.d.ts +8 -0
  330. package/dist/enums/project-o-auth-2-microsoft-prompt.js +13 -0
  331. package/dist/enums/project-o-auth-2-microsoft-prompt.js.map +1 -0
  332. package/dist/enums/project-o-auth-2-microsoft-prompt.mjs +12 -0
  333. package/dist/enums/project-o-auth-2-microsoft-prompt.mjs.map +1 -0
  334. package/dist/enums/project-o-auth-2-oidc-prompt.d.mts +8 -0
  335. package/dist/enums/project-o-auth-2-oidc-prompt.d.ts +8 -0
  336. package/dist/enums/project-o-auth-2-oidc-prompt.js +13 -0
  337. package/dist/enums/project-o-auth-2-oidc-prompt.js.map +1 -0
  338. package/dist/enums/project-o-auth-2-oidc-prompt.mjs +12 -0
  339. package/dist/enums/project-o-auth-2-oidc-prompt.mjs.map +1 -0
  340. package/dist/enums/project-o-auth-2-okta-prompt.d.mts +7 -0
  341. package/dist/enums/project-o-auth-2-okta-prompt.d.ts +7 -0
  342. package/dist/enums/project-o-auth-2-okta-prompt.js +12 -0
  343. package/dist/enums/project-o-auth-2-okta-prompt.js.map +1 -0
  344. package/dist/enums/project-o-auth-2-okta-prompt.mjs +11 -0
  345. package/dist/enums/project-o-auth-2-okta-prompt.mjs.map +1 -0
  346. package/dist/enums/project-o-auth-2-salesforce-prompt.d.mts +6 -0
  347. package/dist/enums/project-o-auth-2-salesforce-prompt.d.ts +6 -0
  348. package/dist/enums/project-o-auth-2-salesforce-prompt.js +11 -0
  349. package/dist/enums/project-o-auth-2-salesforce-prompt.js.map +1 -0
  350. package/dist/enums/project-o-auth-2-salesforce-prompt.mjs +10 -0
  351. package/dist/enums/project-o-auth-2-salesforce-prompt.mjs.map +1 -0
  352. package/dist/enums/project-o-auth-2-zoho-prompt.d.mts +5 -0
  353. package/dist/enums/project-o-auth-2-zoho-prompt.d.ts +5 -0
  354. package/dist/enums/project-o-auth-2-zoho-prompt.js +10 -0
  355. package/dist/enums/project-o-auth-2-zoho-prompt.js.map +1 -0
  356. package/dist/enums/project-o-auth-2-zoho-prompt.mjs +9 -0
  357. package/dist/enums/project-o-auth-2-zoho-prompt.mjs.map +1 -0
  358. package/dist/enums/project-o-auth-provider-id.d.mts +53 -0
  359. package/dist/enums/project-o-auth-provider-id.d.ts +53 -0
  360. package/dist/enums/project-o-auth-provider-id.js +58 -0
  361. package/dist/enums/project-o-auth-provider-id.js.map +1 -0
  362. package/dist/enums/project-o-auth-provider-id.mjs +57 -0
  363. package/dist/enums/project-o-auth-provider-id.mjs.map +1 -0
  364. package/dist/enums/project-policy-id.d.mts +21 -0
  365. package/dist/enums/project-policy-id.d.ts +21 -0
  366. package/dist/enums/project-policy-id.js +26 -0
  367. package/dist/enums/project-policy-id.js.map +1 -0
  368. package/dist/enums/project-policy-id.mjs +25 -0
  369. package/dist/enums/project-policy-id.mjs.map +1 -0
  370. package/dist/enums/project-protocol-id.d.mts +7 -0
  371. package/dist/enums/project-protocol-id.d.ts +7 -0
  372. package/dist/enums/project-protocol-id.js +12 -0
  373. package/dist/enums/project-protocol-id.js.map +1 -0
  374. package/dist/enums/project-protocol-id.mjs +11 -0
  375. package/dist/enums/project-protocol-id.mjs.map +1 -0
  376. package/dist/enums/project-service-id.d.mts +22 -0
  377. package/dist/enums/project-service-id.d.ts +22 -0
  378. package/dist/enums/project-service-id.js +27 -0
  379. package/dist/enums/project-service-id.js.map +1 -0
  380. package/dist/enums/project-service-id.mjs +26 -0
  381. package/dist/enums/project-service-id.mjs.map +1 -0
  382. package/dist/enums/project-smtp-secure.d.mts +6 -0
  383. package/dist/enums/project-smtp-secure.d.ts +6 -0
  384. package/dist/enums/project-smtp-secure.js +11 -0
  385. package/dist/enums/project-smtp-secure.js.map +1 -0
  386. package/dist/enums/project-smtp-secure.mjs +10 -0
  387. package/dist/enums/project-smtp-secure.mjs.map +1 -0
  388. package/dist/enums/proxy-resource-type.d.mts +6 -0
  389. package/dist/enums/proxy-resource-type.d.ts +6 -0
  390. package/dist/enums/proxy-resource-type.js +11 -0
  391. package/dist/enums/proxy-resource-type.js.map +1 -0
  392. package/dist/enums/proxy-resource-type.mjs +10 -0
  393. package/dist/enums/proxy-resource-type.mjs.map +1 -0
  394. package/dist/enums/proxy-rule-deployment-resource-type.d.mts +6 -0
  395. package/dist/enums/proxy-rule-deployment-resource-type.d.ts +6 -0
  396. package/dist/enums/proxy-rule-deployment-resource-type.js +11 -0
  397. package/dist/enums/proxy-rule-deployment-resource-type.js.map +1 -0
  398. package/dist/enums/proxy-rule-deployment-resource-type.mjs +10 -0
  399. package/dist/enums/proxy-rule-deployment-resource-type.mjs.map +1 -0
  400. package/dist/enums/proxy-rule-status.d.mts +7 -0
  401. package/dist/enums/proxy-rule-status.d.ts +7 -0
  402. package/dist/enums/proxy-rule-status.js +12 -0
  403. package/dist/enums/proxy-rule-status.js.map +1 -0
  404. package/dist/enums/proxy-rule-status.mjs +11 -0
  405. package/dist/enums/proxy-rule-status.mjs.map +1 -0
  406. package/dist/enums/region.d.mts +5 -0
  407. package/dist/enums/region.d.ts +5 -0
  408. package/dist/enums/region.js +10 -0
  409. package/dist/enums/region.js.map +1 -0
  410. package/dist/enums/region.mjs +9 -0
  411. package/dist/enums/region.mjs.map +1 -0
  412. package/dist/enums/relation-mutate.d.mts +7 -0
  413. package/dist/enums/relation-mutate.d.ts +7 -0
  414. package/dist/enums/relation-mutate.js +12 -0
  415. package/dist/enums/relation-mutate.js.map +1 -0
  416. package/dist/enums/relation-mutate.mjs +11 -0
  417. package/dist/enums/relation-mutate.mjs.map +1 -0
  418. package/dist/enums/relationship-type.d.mts +8 -0
  419. package/dist/enums/relationship-type.d.ts +8 -0
  420. package/dist/enums/relationship-type.js +13 -0
  421. package/dist/enums/relationship-type.js.map +1 -0
  422. package/dist/enums/relationship-type.mjs +12 -0
  423. package/dist/enums/relationship-type.mjs.map +1 -0
  424. package/dist/enums/runtime.d.mts +102 -0
  425. package/dist/enums/runtime.d.ts +102 -0
  426. package/dist/enums/runtime.js +107 -0
  427. package/dist/enums/runtime.js.map +1 -0
  428. package/dist/enums/runtime.mjs +106 -0
  429. package/dist/enums/runtime.mjs.map +1 -0
  430. package/dist/enums/smtp-encryption.d.mts +7 -0
  431. package/dist/enums/smtp-encryption.d.ts +7 -0
  432. package/dist/enums/smtp-encryption.js +12 -0
  433. package/dist/enums/smtp-encryption.js.map +1 -0
  434. package/dist/enums/smtp-encryption.mjs +11 -0
  435. package/dist/enums/smtp-encryption.mjs.map +1 -0
  436. package/dist/enums/status-code.d.mts +8 -0
  437. package/dist/enums/status-code.d.ts +8 -0
  438. package/dist/enums/status-code.js +13 -0
  439. package/dist/enums/status-code.js.map +1 -0
  440. package/dist/enums/status-code.mjs +12 -0
  441. package/dist/enums/status-code.mjs.map +1 -0
  442. package/dist/enums/tables-db-index-type.d.mts +8 -0
  443. package/dist/enums/tables-db-index-type.d.ts +8 -0
  444. package/dist/enums/tables-db-index-type.js +13 -0
  445. package/dist/enums/tables-db-index-type.js.map +1 -0
  446. package/dist/enums/tables-db-index-type.mjs +12 -0
  447. package/dist/enums/tables-db-index-type.mjs.map +1 -0
  448. package/dist/enums/template-reference-type.d.mts +7 -0
  449. package/dist/enums/template-reference-type.d.ts +7 -0
  450. package/dist/enums/template-reference-type.js +12 -0
  451. package/dist/enums/template-reference-type.js.map +1 -0
  452. package/dist/enums/template-reference-type.mjs +11 -0
  453. package/dist/enums/template-reference-type.mjs.map +1 -0
  454. package/dist/enums/timezone.d.mts +423 -0
  455. package/dist/enums/timezone.d.ts +423 -0
  456. package/dist/enums/timezone.js +428 -0
  457. package/dist/enums/timezone.js.map +1 -0
  458. package/dist/enums/timezone.mjs +427 -0
  459. package/dist/enums/timezone.mjs.map +1 -0
  460. package/dist/enums/vcs-reference-type.d.mts +7 -0
  461. package/dist/enums/vcs-reference-type.d.ts +7 -0
  462. package/dist/enums/vcs-reference-type.js +12 -0
  463. package/dist/enums/vcs-reference-type.js.map +1 -0
  464. package/dist/enums/vcs-reference-type.mjs +11 -0
  465. package/dist/enums/vcs-reference-type.mjs.map +1 -0
  466. package/dist/id.d.mts +22 -0
  467. package/dist/id.d.ts +22 -0
  468. package/dist/id.js +45 -0
  469. package/dist/id.js.map +1 -0
  470. package/dist/id.mjs +44 -0
  471. package/dist/id.mjs.map +1 -0
  472. package/dist/index.d.mts +106 -0
  473. package/dist/index.d.ts +106 -0
  474. package/dist/index.js +533 -0
  475. package/dist/index.js.map +1 -0
  476. package/dist/index.mjs +104 -0
  477. package/dist/index.mjs.map +1 -0
  478. package/dist/inputFile.d.mts +21 -0
  479. package/dist/inputFile.d.ts +21 -0
  480. package/dist/inputFile.js +133 -0
  481. package/dist/inputFile.js.map +1 -0
  482. package/dist/inputFile.mjs +132 -0
  483. package/dist/inputFile.mjs.map +1 -0
  484. package/dist/models.d.mts +6790 -0
  485. package/dist/models.d.ts +6790 -0
  486. package/dist/models.js +4 -0
  487. package/dist/models.js.map +1 -0
  488. package/dist/models.mjs +3 -0
  489. package/dist/models.mjs.map +1 -0
  490. package/dist/operator.d.mts +181 -0
  491. package/dist/operator.d.ts +181 -0
  492. package/dist/operator.js +271 -0
  493. package/dist/operator.js.map +1 -0
  494. package/dist/operator.mjs +269 -0
  495. package/dist/operator.mjs.map +1 -0
  496. package/dist/permission.d.mts +45 -0
  497. package/dist/permission.d.ts +45 -0
  498. package/dist/permission.js +56 -0
  499. package/dist/permission.js.map +1 -0
  500. package/dist/permission.mjs +55 -0
  501. package/dist/permission.mjs.map +1 -0
  502. package/dist/query.d.mts +467 -0
  503. package/dist/query.d.ts +467 -0
  504. package/dist/query.js +517 -0
  505. package/dist/query.js.map +1 -0
  506. package/dist/query.mjs +512 -0
  507. package/dist/query.mjs.map +1 -0
  508. package/dist/role.d.mts +72 -0
  509. package/dist/role.d.ts +72 -0
  510. package/dist/role.js +96 -0
  511. package/dist/role.js.map +1 -0
  512. package/dist/role.mjs +95 -0
  513. package/dist/role.mjs.map +1 -0
  514. package/dist/services/account.d.mts +1349 -0
  515. package/dist/services/account.d.ts +1349 -0
  516. package/dist/services/account.js +1891 -0
  517. package/dist/services/account.js.map +1 -0
  518. package/dist/services/account.mjs +1890 -0
  519. package/dist/services/account.mjs.map +1 -0
  520. package/dist/services/advisor.d.mts +154 -0
  521. package/dist/services/advisor.d.ts +154 -0
  522. package/dist/services/advisor.js +155 -0
  523. package/dist/services/advisor.js.map +1 -0
  524. package/dist/services/advisor.mjs +154 -0
  525. package/dist/services/advisor.mjs.map +1 -0
  526. package/dist/services/avatars.d.mts +424 -0
  527. package/dist/services/avatars.d.ts +424 -0
  528. package/dist/services/avatars.js +553 -0
  529. package/dist/services/avatars.js.map +1 -0
  530. package/dist/services/avatars.mjs +552 -0
  531. package/dist/services/avatars.mjs.map +1 -0
  532. package/dist/services/databases.d.mts +2424 -0
  533. package/dist/services/databases.d.ts +2424 -0
  534. package/dist/services/databases.js +3878 -0
  535. package/dist/services/databases.js.map +1 -0
  536. package/dist/services/databases.mjs +3877 -0
  537. package/dist/services/databases.mjs.map +1 -0
  538. package/dist/services/embeddings.d.mts +62 -0
  539. package/dist/services/embeddings.d.ts +62 -0
  540. package/dist/services/embeddings.js +44 -0
  541. package/dist/services/embeddings.js.map +1 -0
  542. package/dist/services/embeddings.mjs +43 -0
  543. package/dist/services/embeddings.mjs.map +1 -0
  544. package/dist/services/functions.d.mts +831 -0
  545. package/dist/services/functions.d.ts +831 -0
  546. package/dist/services/functions.js +1258 -0
  547. package/dist/services/functions.js.map +1 -0
  548. package/dist/services/functions.mjs +1257 -0
  549. package/dist/services/functions.mjs.map +1 -0
  550. package/dist/services/graphql.d.mts +75 -0
  551. package/dist/services/graphql.d.ts +75 -0
  552. package/dist/services/graphql.js +67 -0
  553. package/dist/services/graphql.js.map +1 -0
  554. package/dist/services/graphql.mjs +66 -0
  555. package/dist/services/graphql.mjs.map +1 -0
  556. package/dist/services/locale.d.mts +179 -0
  557. package/dist/services/locale.d.ts +179 -0
  558. package/dist/services/locale.js +183 -0
  559. package/dist/services/locale.js.map +1 -0
  560. package/dist/services/locale.mjs +182 -0
  561. package/dist/services/locale.mjs.map +1 -0
  562. package/dist/services/messaging.d.mts +2042 -0
  563. package/dist/services/messaging.d.ts +2042 -0
  564. package/dist/services/messaging.js +3148 -0
  565. package/dist/services/messaging.js.map +1 -0
  566. package/dist/services/messaging.mjs +3147 -0
  567. package/dist/services/messaging.mjs.map +1 -0
  568. package/dist/services/organization.d.mts +278 -0
  569. package/dist/services/organization.d.ts +278 -0
  570. package/dist/services/organization.js +368 -0
  571. package/dist/services/organization.js.map +1 -0
  572. package/dist/services/organization.mjs +367 -0
  573. package/dist/services/organization.mjs.map +1 -0
  574. package/dist/services/presences.d.mts +181 -0
  575. package/dist/services/presences.d.ts +181 -0
  576. package/dist/services/presences.js +220 -0
  577. package/dist/services/presences.js.map +1 -0
  578. package/dist/services/presences.mjs +219 -0
  579. package/dist/services/presences.mjs.map +1 -0
  580. package/dist/services/project.d.mts +2689 -0
  581. package/dist/services/project.d.ts +2689 -0
  582. package/dist/services/project.js +3753 -0
  583. package/dist/services/project.js.map +1 -0
  584. package/dist/services/project.mjs +3752 -0
  585. package/dist/services/project.mjs.map +1 -0
  586. package/dist/services/proxy.d.mts +234 -0
  587. package/dist/services/proxy.d.ts +234 -0
  588. package/dist/services/proxy.js +287 -0
  589. package/dist/services/proxy.js.map +1 -0
  590. package/dist/services/proxy.mjs +286 -0
  591. package/dist/services/proxy.mjs.map +1 -0
  592. package/dist/services/sites.d.mts +799 -0
  593. package/dist/services/sites.d.ts +799 -0
  594. package/dist/services/sites.js +1181 -0
  595. package/dist/services/sites.js.map +1 -0
  596. package/dist/services/sites.mjs +1180 -0
  597. package/dist/services/sites.mjs.map +1 -0
  598. package/dist/services/storage.d.mts +456 -0
  599. package/dist/services/storage.d.ts +456 -0
  600. package/dist/services/storage.js +617 -0
  601. package/dist/services/storage.js.map +1 -0
  602. package/dist/services/storage.mjs +616 -0
  603. package/dist/services/storage.mjs.map +1 -0
  604. package/dist/services/tables-db.d.mts +2353 -0
  605. package/dist/services/tables-db.d.ts +2353 -0
  606. package/dist/services/tables-db.js +3550 -0
  607. package/dist/services/tables-db.js.map +1 -0
  608. package/dist/services/tables-db.mjs +3549 -0
  609. package/dist/services/tables-db.mjs.map +1 -0
  610. package/dist/services/teams.d.mts +372 -0
  611. package/dist/services/teams.d.ts +372 -0
  612. package/dist/services/teams.js +482 -0
  613. package/dist/services/teams.js.map +1 -0
  614. package/dist/services/teams.mjs +481 -0
  615. package/dist/services/teams.mjs.map +1 -0
  616. package/dist/services/tokens.d.mts +150 -0
  617. package/dist/services/tokens.d.ts +150 -0
  618. package/dist/services/tokens.js +165 -0
  619. package/dist/services/tokens.js.map +1 -0
  620. package/dist/services/tokens.mjs +164 -0
  621. package/dist/services/tokens.mjs.map +1 -0
  622. package/dist/services/users.d.mts +1308 -0
  623. package/dist/services/users.d.ts +1308 -0
  624. package/dist/services/users.js +1897 -0
  625. package/dist/services/users.js.map +1 -0
  626. package/dist/services/users.mjs +1896 -0
  627. package/dist/services/users.mjs.map +1 -0
  628. package/dist/services/webhooks.d.mts +202 -0
  629. package/dist/services/webhooks.d.ts +202 -0
  630. package/dist/services/webhooks.js +277 -0
  631. package/dist/services/webhooks.js.map +1 -0
  632. package/dist/services/webhooks.mjs +276 -0
  633. package/dist/services/webhooks.mjs.map +1 -0
  634. package/dist/topic.d.mts +36 -0
  635. package/dist/topic.d.ts +36 -0
  636. package/dist/topic.js +86 -0
  637. package/dist/topic.js.map +1 -0
  638. package/dist/topic.mjs +84 -0
  639. package/dist/topic.mjs.map +1 -0
  640. package/package.json +82 -5
@@ -0,0 +1,3752 @@
1
+ import { OwbaseException } from '../client.mjs';
2
+
3
+ // src/services/project.ts
4
+ var Project = class {
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ /**
9
+ * Get a project.
10
+ *
11
+ * @throws {OwbaseException}
12
+ * @returns {Promise<Models.Project>}
13
+ */
14
+ get() {
15
+ const apiPath = "/project";
16
+ const apiPayload = {};
17
+ const uri = new URL(this.client.config.endpoint + apiPath);
18
+ const apiHeaders = {
19
+ "X-Owbase-Project": this.client.config.project,
20
+ accept: "application/json"
21
+ };
22
+ return this.client.call("get", uri, apiHeaders, apiPayload);
23
+ }
24
+ /**
25
+ * Delete a project.
26
+ *
27
+ * @throws {OwbaseException}
28
+ * @returns {Promise<{}>}
29
+ */
30
+ delete() {
31
+ const apiPath = "/project";
32
+ const apiPayload = {};
33
+ const uri = new URL(this.client.config.endpoint + apiPath);
34
+ const apiHeaders = {
35
+ "X-Owbase-Project": this.client.config.project,
36
+ "content-type": "application/json",
37
+ accept: "application/json"
38
+ };
39
+ return this.client.call("delete", uri, apiHeaders, apiPayload);
40
+ }
41
+ updateAuthMethod(paramsOrFirst, ...rest) {
42
+ let params;
43
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst) && ("methodId" in paramsOrFirst || "enabled" in paramsOrFirst)) {
44
+ params = paramsOrFirst || {};
45
+ } else {
46
+ params = {
47
+ methodId: paramsOrFirst,
48
+ enabled: rest[0]
49
+ };
50
+ }
51
+ const methodId = params.methodId;
52
+ const enabled = params.enabled;
53
+ if (typeof methodId === "undefined") {
54
+ throw new OwbaseException('Missing required parameter: "methodId"');
55
+ }
56
+ if (typeof enabled === "undefined") {
57
+ throw new OwbaseException('Missing required parameter: "enabled"');
58
+ }
59
+ const apiPath = "/project/auth-methods/{methodId}".replace(
60
+ "{methodId}",
61
+ encodeURIComponent(String(methodId))
62
+ );
63
+ const apiPayload = {};
64
+ if (typeof enabled !== "undefined") {
65
+ apiPayload["enabled"] = enabled;
66
+ }
67
+ const uri = new URL(this.client.config.endpoint + apiPath);
68
+ const apiHeaders = {
69
+ "X-Owbase-Project": this.client.config.project,
70
+ "content-type": "application/json",
71
+ accept: "application/json"
72
+ };
73
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
74
+ }
75
+ listKeys(paramsOrFirst, ...rest) {
76
+ let params;
77
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
78
+ params = paramsOrFirst || {};
79
+ } else {
80
+ params = {
81
+ queries: paramsOrFirst,
82
+ total: rest[0]
83
+ };
84
+ }
85
+ const queries = params.queries;
86
+ const total = params.total;
87
+ const apiPath = "/project/keys";
88
+ const apiPayload = {};
89
+ if (typeof queries !== "undefined") {
90
+ apiPayload["queries"] = queries;
91
+ }
92
+ if (typeof total !== "undefined") {
93
+ apiPayload["total"] = total;
94
+ }
95
+ const uri = new URL(this.client.config.endpoint + apiPath);
96
+ const apiHeaders = {
97
+ "X-Owbase-Project": this.client.config.project,
98
+ accept: "application/json"
99
+ };
100
+ return this.client.call("get", uri, apiHeaders, apiPayload);
101
+ }
102
+ createEphemeralKey(paramsOrFirst, ...rest) {
103
+ let params;
104
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst) && ("scopes" in paramsOrFirst || "duration" in paramsOrFirst)) {
105
+ params = paramsOrFirst || {};
106
+ } else {
107
+ params = {
108
+ scopes: paramsOrFirst,
109
+ duration: rest[0]
110
+ };
111
+ }
112
+ const scopes = params.scopes;
113
+ const duration = params.duration;
114
+ if (typeof scopes === "undefined") {
115
+ throw new OwbaseException('Missing required parameter: "scopes"');
116
+ }
117
+ if (typeof duration === "undefined") {
118
+ throw new OwbaseException('Missing required parameter: "duration"');
119
+ }
120
+ const apiPath = "/project/keys/ephemeral";
121
+ const apiPayload = {};
122
+ if (typeof scopes !== "undefined") {
123
+ apiPayload["scopes"] = scopes;
124
+ }
125
+ if (typeof duration !== "undefined") {
126
+ apiPayload["duration"] = duration;
127
+ }
128
+ const uri = new URL(this.client.config.endpoint + apiPath);
129
+ const apiHeaders = {
130
+ "X-Owbase-Project": this.client.config.project,
131
+ "content-type": "application/json",
132
+ accept: "application/json"
133
+ };
134
+ return this.client.call("post", uri, apiHeaders, apiPayload);
135
+ }
136
+ getKey(paramsOrFirst) {
137
+ let params;
138
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
139
+ params = paramsOrFirst || {};
140
+ } else {
141
+ params = {
142
+ keyId: paramsOrFirst
143
+ };
144
+ }
145
+ const keyId = params.keyId;
146
+ if (typeof keyId === "undefined" || keyId === "") {
147
+ throw new OwbaseException('Missing required parameter: "keyId"');
148
+ }
149
+ const apiPath = "/project/keys/{keyId}".replace(
150
+ "{keyId}",
151
+ encodeURIComponent(String(keyId))
152
+ );
153
+ const apiPayload = {};
154
+ const uri = new URL(this.client.config.endpoint + apiPath);
155
+ const apiHeaders = {
156
+ "X-Owbase-Project": this.client.config.project,
157
+ accept: "application/json"
158
+ };
159
+ return this.client.call("get", uri, apiHeaders, apiPayload);
160
+ }
161
+ updateKey(paramsOrFirst, ...rest) {
162
+ let params;
163
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
164
+ params = paramsOrFirst || {};
165
+ } else {
166
+ params = {
167
+ keyId: paramsOrFirst,
168
+ name: rest[0],
169
+ scopes: rest[1],
170
+ expire: rest[2]
171
+ };
172
+ }
173
+ const keyId = params.keyId;
174
+ const name = params.name;
175
+ const scopes = params.scopes;
176
+ const expire = params.expire;
177
+ if (typeof keyId === "undefined" || keyId === "") {
178
+ throw new OwbaseException('Missing required parameter: "keyId"');
179
+ }
180
+ if (typeof name === "undefined") {
181
+ throw new OwbaseException('Missing required parameter: "name"');
182
+ }
183
+ if (typeof scopes === "undefined") {
184
+ throw new OwbaseException('Missing required parameter: "scopes"');
185
+ }
186
+ const apiPath = "/project/keys/{keyId}".replace(
187
+ "{keyId}",
188
+ encodeURIComponent(String(keyId))
189
+ );
190
+ const apiPayload = {};
191
+ if (typeof name !== "undefined") {
192
+ apiPayload["name"] = name;
193
+ }
194
+ if (typeof scopes !== "undefined") {
195
+ apiPayload["scopes"] = scopes;
196
+ }
197
+ if (typeof expire !== "undefined") {
198
+ apiPayload["expire"] = expire;
199
+ }
200
+ const uri = new URL(this.client.config.endpoint + apiPath);
201
+ const apiHeaders = {
202
+ "X-Owbase-Project": this.client.config.project,
203
+ "content-type": "application/json",
204
+ accept: "application/json"
205
+ };
206
+ return this.client.call("put", uri, apiHeaders, apiPayload);
207
+ }
208
+ deleteKey(paramsOrFirst) {
209
+ let params;
210
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
211
+ params = paramsOrFirst || {};
212
+ } else {
213
+ params = {
214
+ keyId: paramsOrFirst
215
+ };
216
+ }
217
+ const keyId = params.keyId;
218
+ if (typeof keyId === "undefined" || keyId === "") {
219
+ throw new OwbaseException('Missing required parameter: "keyId"');
220
+ }
221
+ const apiPath = "/project/keys/{keyId}".replace(
222
+ "{keyId}",
223
+ encodeURIComponent(String(keyId))
224
+ );
225
+ const apiPayload = {};
226
+ const uri = new URL(this.client.config.endpoint + apiPath);
227
+ const apiHeaders = {
228
+ "X-Owbase-Project": this.client.config.project,
229
+ "content-type": "application/json",
230
+ accept: "application/json"
231
+ };
232
+ return this.client.call("delete", uri, apiHeaders, apiPayload);
233
+ }
234
+ updateLabels(paramsOrFirst) {
235
+ let params;
236
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
237
+ params = paramsOrFirst || {};
238
+ } else {
239
+ params = {
240
+ labels: paramsOrFirst
241
+ };
242
+ }
243
+ const labels = params.labels;
244
+ if (typeof labels === "undefined") {
245
+ throw new OwbaseException('Missing required parameter: "labels"');
246
+ }
247
+ const apiPath = "/project/labels";
248
+ const apiPayload = {};
249
+ if (typeof labels !== "undefined") {
250
+ apiPayload["labels"] = labels;
251
+ }
252
+ const uri = new URL(this.client.config.endpoint + apiPath);
253
+ const apiHeaders = {
254
+ "X-Owbase-Project": this.client.config.project,
255
+ "content-type": "application/json",
256
+ accept: "application/json"
257
+ };
258
+ return this.client.call("put", uri, apiHeaders, apiPayload);
259
+ }
260
+ listMockPhones(paramsOrFirst, ...rest) {
261
+ let params;
262
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
263
+ params = paramsOrFirst || {};
264
+ } else {
265
+ params = {
266
+ queries: paramsOrFirst,
267
+ total: rest[0]
268
+ };
269
+ }
270
+ const queries = params.queries;
271
+ const total = params.total;
272
+ const apiPath = "/project/mock-phones";
273
+ const apiPayload = {};
274
+ if (typeof queries !== "undefined") {
275
+ apiPayload["queries"] = queries;
276
+ }
277
+ if (typeof total !== "undefined") {
278
+ apiPayload["total"] = total;
279
+ }
280
+ const uri = new URL(this.client.config.endpoint + apiPath);
281
+ const apiHeaders = {
282
+ "X-Owbase-Project": this.client.config.project,
283
+ accept: "application/json"
284
+ };
285
+ return this.client.call("get", uri, apiHeaders, apiPayload);
286
+ }
287
+ createMockPhone(paramsOrFirst, ...rest) {
288
+ let params;
289
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
290
+ params = paramsOrFirst || {};
291
+ } else {
292
+ params = {
293
+ number: paramsOrFirst,
294
+ otp: rest[0]
295
+ };
296
+ }
297
+ const number = params.number;
298
+ const otp = params.otp;
299
+ if (typeof number === "undefined") {
300
+ throw new OwbaseException('Missing required parameter: "number"');
301
+ }
302
+ if (typeof otp === "undefined") {
303
+ throw new OwbaseException('Missing required parameter: "otp"');
304
+ }
305
+ const apiPath = "/project/mock-phones";
306
+ const apiPayload = {};
307
+ if (typeof number !== "undefined") {
308
+ apiPayload["number"] = number;
309
+ }
310
+ if (typeof otp !== "undefined") {
311
+ apiPayload["otp"] = otp;
312
+ }
313
+ const uri = new URL(this.client.config.endpoint + apiPath);
314
+ const apiHeaders = {
315
+ "X-Owbase-Project": this.client.config.project,
316
+ "content-type": "application/json",
317
+ accept: "application/json"
318
+ };
319
+ return this.client.call("post", uri, apiHeaders, apiPayload);
320
+ }
321
+ getMockPhone(paramsOrFirst) {
322
+ let params;
323
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
324
+ params = paramsOrFirst || {};
325
+ } else {
326
+ params = {
327
+ number: paramsOrFirst
328
+ };
329
+ }
330
+ const number = params.number;
331
+ if (typeof number === "undefined" || number === "") {
332
+ throw new OwbaseException('Missing required parameter: "number"');
333
+ }
334
+ const apiPath = "/project/mock-phones/{number}".replace(
335
+ "{number}",
336
+ encodeURIComponent(String(number))
337
+ );
338
+ const apiPayload = {};
339
+ const uri = new URL(this.client.config.endpoint + apiPath);
340
+ const apiHeaders = {
341
+ "X-Owbase-Project": this.client.config.project,
342
+ accept: "application/json"
343
+ };
344
+ return this.client.call("get", uri, apiHeaders, apiPayload);
345
+ }
346
+ updateMockPhone(paramsOrFirst, ...rest) {
347
+ let params;
348
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
349
+ params = paramsOrFirst || {};
350
+ } else {
351
+ params = {
352
+ number: paramsOrFirst,
353
+ otp: rest[0]
354
+ };
355
+ }
356
+ const number = params.number;
357
+ const otp = params.otp;
358
+ if (typeof number === "undefined" || number === "") {
359
+ throw new OwbaseException('Missing required parameter: "number"');
360
+ }
361
+ if (typeof otp === "undefined") {
362
+ throw new OwbaseException('Missing required parameter: "otp"');
363
+ }
364
+ const apiPath = "/project/mock-phones/{number}".replace(
365
+ "{number}",
366
+ encodeURIComponent(String(number))
367
+ );
368
+ const apiPayload = {};
369
+ if (typeof otp !== "undefined") {
370
+ apiPayload["otp"] = otp;
371
+ }
372
+ const uri = new URL(this.client.config.endpoint + apiPath);
373
+ const apiHeaders = {
374
+ "X-Owbase-Project": this.client.config.project,
375
+ "content-type": "application/json",
376
+ accept: "application/json"
377
+ };
378
+ return this.client.call("put", uri, apiHeaders, apiPayload);
379
+ }
380
+ deleteMockPhone(paramsOrFirst) {
381
+ let params;
382
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
383
+ params = paramsOrFirst || {};
384
+ } else {
385
+ params = {
386
+ number: paramsOrFirst
387
+ };
388
+ }
389
+ const number = params.number;
390
+ if (typeof number === "undefined" || number === "") {
391
+ throw new OwbaseException('Missing required parameter: "number"');
392
+ }
393
+ const apiPath = "/project/mock-phones/{number}".replace(
394
+ "{number}",
395
+ encodeURIComponent(String(number))
396
+ );
397
+ const apiPayload = {};
398
+ const uri = new URL(this.client.config.endpoint + apiPath);
399
+ const apiHeaders = {
400
+ "X-Owbase-Project": this.client.config.project,
401
+ "content-type": "application/json",
402
+ accept: "application/json"
403
+ };
404
+ return this.client.call("delete", uri, apiHeaders, apiPayload);
405
+ }
406
+ listOAuth2Providers(paramsOrFirst, ...rest) {
407
+ let params;
408
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
409
+ params = paramsOrFirst || {};
410
+ } else {
411
+ params = {
412
+ queries: paramsOrFirst,
413
+ total: rest[0]
414
+ };
415
+ }
416
+ const queries = params.queries;
417
+ const total = params.total;
418
+ const apiPath = "/project/oauth2";
419
+ const apiPayload = {};
420
+ if (typeof queries !== "undefined") {
421
+ apiPayload["queries"] = queries;
422
+ }
423
+ if (typeof total !== "undefined") {
424
+ apiPayload["total"] = total;
425
+ }
426
+ const uri = new URL(this.client.config.endpoint + apiPath);
427
+ const apiHeaders = {
428
+ "X-Owbase-Project": this.client.config.project,
429
+ accept: "application/json"
430
+ };
431
+ return this.client.call("get", uri, apiHeaders, apiPayload);
432
+ }
433
+ updateOAuth2Amazon(paramsOrFirst, ...rest) {
434
+ let params;
435
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
436
+ params = paramsOrFirst || {};
437
+ } else {
438
+ params = {
439
+ clientId: paramsOrFirst,
440
+ clientSecret: rest[0],
441
+ enabled: rest[1]
442
+ };
443
+ }
444
+ const clientId = params.clientId;
445
+ const clientSecret = params.clientSecret;
446
+ const enabled = params.enabled;
447
+ const apiPath = "/project/oauth2/amazon";
448
+ const apiPayload = {};
449
+ if (typeof clientId !== "undefined") {
450
+ apiPayload["clientId"] = clientId;
451
+ }
452
+ if (typeof clientSecret !== "undefined") {
453
+ apiPayload["clientSecret"] = clientSecret;
454
+ }
455
+ if (typeof enabled !== "undefined") {
456
+ apiPayload["enabled"] = enabled;
457
+ }
458
+ const uri = new URL(this.client.config.endpoint + apiPath);
459
+ const apiHeaders = {
460
+ "X-Owbase-Project": this.client.config.project,
461
+ "content-type": "application/json",
462
+ accept: "application/json"
463
+ };
464
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
465
+ }
466
+ updateOAuth2Apple(paramsOrFirst, ...rest) {
467
+ let params;
468
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
469
+ params = paramsOrFirst || {};
470
+ } else {
471
+ params = {
472
+ serviceId: paramsOrFirst,
473
+ keyId: rest[0],
474
+ teamId: rest[1],
475
+ p8File: rest[2],
476
+ nativeClientIds: rest[3],
477
+ enabled: rest[4],
478
+ nativeEnabled: rest[5]
479
+ };
480
+ }
481
+ const serviceId = params.serviceId;
482
+ const keyId = params.keyId;
483
+ const teamId = params.teamId;
484
+ const p8File = params.p8File;
485
+ const nativeClientIds = params.nativeClientIds;
486
+ const enabled = params.enabled;
487
+ const nativeEnabled = params.nativeEnabled;
488
+ const apiPath = "/project/oauth2/apple";
489
+ const apiPayload = {};
490
+ if (typeof serviceId !== "undefined") {
491
+ apiPayload["serviceId"] = serviceId;
492
+ }
493
+ if (typeof keyId !== "undefined") {
494
+ apiPayload["keyId"] = keyId;
495
+ }
496
+ if (typeof teamId !== "undefined") {
497
+ apiPayload["teamId"] = teamId;
498
+ }
499
+ if (typeof p8File !== "undefined") {
500
+ apiPayload["p8File"] = p8File;
501
+ }
502
+ if (typeof nativeClientIds !== "undefined") {
503
+ apiPayload["nativeClientIds"] = nativeClientIds;
504
+ }
505
+ if (typeof enabled !== "undefined") {
506
+ apiPayload["enabled"] = enabled;
507
+ }
508
+ if (typeof nativeEnabled !== "undefined") {
509
+ apiPayload["nativeEnabled"] = nativeEnabled;
510
+ }
511
+ const uri = new URL(this.client.config.endpoint + apiPath);
512
+ const apiHeaders = {
513
+ "X-Owbase-Project": this.client.config.project,
514
+ "content-type": "application/json",
515
+ accept: "application/json"
516
+ };
517
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
518
+ }
519
+ updateOAuth2Auth0(paramsOrFirst, ...rest) {
520
+ let params;
521
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
522
+ params = paramsOrFirst || {};
523
+ } else {
524
+ params = {
525
+ clientId: paramsOrFirst,
526
+ clientSecret: rest[0],
527
+ endpoint: rest[1],
528
+ prompt: rest[2],
529
+ enabled: rest[3]
530
+ };
531
+ }
532
+ const clientId = params.clientId;
533
+ const clientSecret = params.clientSecret;
534
+ const endpoint = params.endpoint;
535
+ const prompt = params.prompt;
536
+ const enabled = params.enabled;
537
+ const apiPath = "/project/oauth2/auth0";
538
+ const apiPayload = {};
539
+ if (typeof clientId !== "undefined") {
540
+ apiPayload["clientId"] = clientId;
541
+ }
542
+ if (typeof clientSecret !== "undefined") {
543
+ apiPayload["clientSecret"] = clientSecret;
544
+ }
545
+ if (typeof endpoint !== "undefined") {
546
+ apiPayload["endpoint"] = endpoint;
547
+ }
548
+ if (typeof prompt !== "undefined") {
549
+ apiPayload["prompt"] = prompt;
550
+ }
551
+ if (typeof enabled !== "undefined") {
552
+ apiPayload["enabled"] = enabled;
553
+ }
554
+ const uri = new URL(this.client.config.endpoint + apiPath);
555
+ const apiHeaders = {
556
+ "X-Owbase-Project": this.client.config.project,
557
+ "content-type": "application/json",
558
+ accept: "application/json"
559
+ };
560
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
561
+ }
562
+ updateOAuth2Authentik(paramsOrFirst, ...rest) {
563
+ let params;
564
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
565
+ params = paramsOrFirst || {};
566
+ } else {
567
+ params = {
568
+ clientId: paramsOrFirst,
569
+ clientSecret: rest[0],
570
+ endpoint: rest[1],
571
+ enabled: rest[2]
572
+ };
573
+ }
574
+ const clientId = params.clientId;
575
+ const clientSecret = params.clientSecret;
576
+ const endpoint = params.endpoint;
577
+ const enabled = params.enabled;
578
+ const apiPath = "/project/oauth2/authentik";
579
+ const apiPayload = {};
580
+ if (typeof clientId !== "undefined") {
581
+ apiPayload["clientId"] = clientId;
582
+ }
583
+ if (typeof clientSecret !== "undefined") {
584
+ apiPayload["clientSecret"] = clientSecret;
585
+ }
586
+ if (typeof endpoint !== "undefined") {
587
+ apiPayload["endpoint"] = endpoint;
588
+ }
589
+ if (typeof enabled !== "undefined") {
590
+ apiPayload["enabled"] = enabled;
591
+ }
592
+ const uri = new URL(this.client.config.endpoint + apiPath);
593
+ const apiHeaders = {
594
+ "X-Owbase-Project": this.client.config.project,
595
+ "content-type": "application/json",
596
+ accept: "application/json"
597
+ };
598
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
599
+ }
600
+ updateOAuth2Autodesk(paramsOrFirst, ...rest) {
601
+ let params;
602
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
603
+ params = paramsOrFirst || {};
604
+ } else {
605
+ params = {
606
+ clientId: paramsOrFirst,
607
+ clientSecret: rest[0],
608
+ enabled: rest[1]
609
+ };
610
+ }
611
+ const clientId = params.clientId;
612
+ const clientSecret = params.clientSecret;
613
+ const enabled = params.enabled;
614
+ const apiPath = "/project/oauth2/autodesk";
615
+ const apiPayload = {};
616
+ if (typeof clientId !== "undefined") {
617
+ apiPayload["clientId"] = clientId;
618
+ }
619
+ if (typeof clientSecret !== "undefined") {
620
+ apiPayload["clientSecret"] = clientSecret;
621
+ }
622
+ if (typeof enabled !== "undefined") {
623
+ apiPayload["enabled"] = enabled;
624
+ }
625
+ const uri = new URL(this.client.config.endpoint + apiPath);
626
+ const apiHeaders = {
627
+ "X-Owbase-Project": this.client.config.project,
628
+ "content-type": "application/json",
629
+ accept: "application/json"
630
+ };
631
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
632
+ }
633
+ updateOAuth2Bitbucket(paramsOrFirst, ...rest) {
634
+ let params;
635
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
636
+ params = paramsOrFirst || {};
637
+ } else {
638
+ params = {
639
+ key: paramsOrFirst,
640
+ secret: rest[0],
641
+ enabled: rest[1]
642
+ };
643
+ }
644
+ const key = params.key;
645
+ const secret = params.secret;
646
+ const enabled = params.enabled;
647
+ const apiPath = "/project/oauth2/bitbucket";
648
+ const apiPayload = {};
649
+ if (typeof key !== "undefined") {
650
+ apiPayload["key"] = key;
651
+ }
652
+ if (typeof secret !== "undefined") {
653
+ apiPayload["secret"] = secret;
654
+ }
655
+ if (typeof enabled !== "undefined") {
656
+ apiPayload["enabled"] = enabled;
657
+ }
658
+ const uri = new URL(this.client.config.endpoint + apiPath);
659
+ const apiHeaders = {
660
+ "X-Owbase-Project": this.client.config.project,
661
+ "content-type": "application/json",
662
+ accept: "application/json"
663
+ };
664
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
665
+ }
666
+ updateOAuth2Bitly(paramsOrFirst, ...rest) {
667
+ let params;
668
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
669
+ params = paramsOrFirst || {};
670
+ } else {
671
+ params = {
672
+ clientId: paramsOrFirst,
673
+ clientSecret: rest[0],
674
+ enabled: rest[1]
675
+ };
676
+ }
677
+ const clientId = params.clientId;
678
+ const clientSecret = params.clientSecret;
679
+ const enabled = params.enabled;
680
+ const apiPath = "/project/oauth2/bitly";
681
+ const apiPayload = {};
682
+ if (typeof clientId !== "undefined") {
683
+ apiPayload["clientId"] = clientId;
684
+ }
685
+ if (typeof clientSecret !== "undefined") {
686
+ apiPayload["clientSecret"] = clientSecret;
687
+ }
688
+ if (typeof enabled !== "undefined") {
689
+ apiPayload["enabled"] = enabled;
690
+ }
691
+ const uri = new URL(this.client.config.endpoint + apiPath);
692
+ const apiHeaders = {
693
+ "X-Owbase-Project": this.client.config.project,
694
+ "content-type": "application/json",
695
+ accept: "application/json"
696
+ };
697
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
698
+ }
699
+ updateOAuth2Box(paramsOrFirst, ...rest) {
700
+ let params;
701
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
702
+ params = paramsOrFirst || {};
703
+ } else {
704
+ params = {
705
+ clientId: paramsOrFirst,
706
+ clientSecret: rest[0],
707
+ enabled: rest[1]
708
+ };
709
+ }
710
+ const clientId = params.clientId;
711
+ const clientSecret = params.clientSecret;
712
+ const enabled = params.enabled;
713
+ const apiPath = "/project/oauth2/box";
714
+ const apiPayload = {};
715
+ if (typeof clientId !== "undefined") {
716
+ apiPayload["clientId"] = clientId;
717
+ }
718
+ if (typeof clientSecret !== "undefined") {
719
+ apiPayload["clientSecret"] = clientSecret;
720
+ }
721
+ if (typeof enabled !== "undefined") {
722
+ apiPayload["enabled"] = enabled;
723
+ }
724
+ const uri = new URL(this.client.config.endpoint + apiPath);
725
+ const apiHeaders = {
726
+ "X-Owbase-Project": this.client.config.project,
727
+ "content-type": "application/json",
728
+ accept: "application/json"
729
+ };
730
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
731
+ }
732
+ updateOAuth2Cloudflare(paramsOrFirst, ...rest) {
733
+ let params;
734
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
735
+ params = paramsOrFirst || {};
736
+ } else {
737
+ params = {
738
+ clientId: paramsOrFirst,
739
+ clientSecret: rest[0],
740
+ enabled: rest[1]
741
+ };
742
+ }
743
+ const clientId = params.clientId;
744
+ const clientSecret = params.clientSecret;
745
+ const enabled = params.enabled;
746
+ const apiPath = "/project/oauth2/cloudflare";
747
+ const apiPayload = {};
748
+ if (typeof clientId !== "undefined") {
749
+ apiPayload["clientId"] = clientId;
750
+ }
751
+ if (typeof clientSecret !== "undefined") {
752
+ apiPayload["clientSecret"] = clientSecret;
753
+ }
754
+ if (typeof enabled !== "undefined") {
755
+ apiPayload["enabled"] = enabled;
756
+ }
757
+ const uri = new URL(this.client.config.endpoint + apiPath);
758
+ const apiHeaders = {
759
+ "X-Owbase-Project": this.client.config.project,
760
+ "content-type": "application/json",
761
+ accept: "application/json"
762
+ };
763
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
764
+ }
765
+ updateOAuth2Dailymotion(paramsOrFirst, ...rest) {
766
+ let params;
767
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
768
+ params = paramsOrFirst || {};
769
+ } else {
770
+ params = {
771
+ apiKey: paramsOrFirst,
772
+ apiSecret: rest[0],
773
+ enabled: rest[1]
774
+ };
775
+ }
776
+ const apiKey = params.apiKey;
777
+ const apiSecret = params.apiSecret;
778
+ const enabled = params.enabled;
779
+ const apiPath = "/project/oauth2/dailymotion";
780
+ const apiPayload = {};
781
+ if (typeof apiKey !== "undefined") {
782
+ apiPayload["apiKey"] = apiKey;
783
+ }
784
+ if (typeof apiSecret !== "undefined") {
785
+ apiPayload["apiSecret"] = apiSecret;
786
+ }
787
+ if (typeof enabled !== "undefined") {
788
+ apiPayload["enabled"] = enabled;
789
+ }
790
+ const uri = new URL(this.client.config.endpoint + apiPath);
791
+ const apiHeaders = {
792
+ "X-Owbase-Project": this.client.config.project,
793
+ "content-type": "application/json",
794
+ accept: "application/json"
795
+ };
796
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
797
+ }
798
+ updateOAuth2Discord(paramsOrFirst, ...rest) {
799
+ let params;
800
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
801
+ params = paramsOrFirst || {};
802
+ } else {
803
+ params = {
804
+ clientId: paramsOrFirst,
805
+ clientSecret: rest[0],
806
+ prompt: rest[1],
807
+ enabled: rest[2]
808
+ };
809
+ }
810
+ const clientId = params.clientId;
811
+ const clientSecret = params.clientSecret;
812
+ const prompt = params.prompt;
813
+ const enabled = params.enabled;
814
+ const apiPath = "/project/oauth2/discord";
815
+ const apiPayload = {};
816
+ if (typeof clientId !== "undefined") {
817
+ apiPayload["clientId"] = clientId;
818
+ }
819
+ if (typeof clientSecret !== "undefined") {
820
+ apiPayload["clientSecret"] = clientSecret;
821
+ }
822
+ if (typeof prompt !== "undefined") {
823
+ apiPayload["prompt"] = prompt;
824
+ }
825
+ if (typeof enabled !== "undefined") {
826
+ apiPayload["enabled"] = enabled;
827
+ }
828
+ const uri = new URL(this.client.config.endpoint + apiPath);
829
+ const apiHeaders = {
830
+ "X-Owbase-Project": this.client.config.project,
831
+ "content-type": "application/json",
832
+ accept: "application/json"
833
+ };
834
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
835
+ }
836
+ updateOAuth2Disqus(paramsOrFirst, ...rest) {
837
+ let params;
838
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
839
+ params = paramsOrFirst || {};
840
+ } else {
841
+ params = {
842
+ publicKey: paramsOrFirst,
843
+ secretKey: rest[0],
844
+ enabled: rest[1]
845
+ };
846
+ }
847
+ const publicKey = params.publicKey;
848
+ const secretKey = params.secretKey;
849
+ const enabled = params.enabled;
850
+ const apiPath = "/project/oauth2/disqus";
851
+ const apiPayload = {};
852
+ if (typeof publicKey !== "undefined") {
853
+ apiPayload["publicKey"] = publicKey;
854
+ }
855
+ if (typeof secretKey !== "undefined") {
856
+ apiPayload["secretKey"] = secretKey;
857
+ }
858
+ if (typeof enabled !== "undefined") {
859
+ apiPayload["enabled"] = enabled;
860
+ }
861
+ const uri = new URL(this.client.config.endpoint + apiPath);
862
+ const apiHeaders = {
863
+ "X-Owbase-Project": this.client.config.project,
864
+ "content-type": "application/json",
865
+ accept: "application/json"
866
+ };
867
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
868
+ }
869
+ updateOAuth2Dropbox(paramsOrFirst, ...rest) {
870
+ let params;
871
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
872
+ params = paramsOrFirst || {};
873
+ } else {
874
+ params = {
875
+ appKey: paramsOrFirst,
876
+ appSecret: rest[0],
877
+ enabled: rest[1]
878
+ };
879
+ }
880
+ const appKey = params.appKey;
881
+ const appSecret = params.appSecret;
882
+ const enabled = params.enabled;
883
+ const apiPath = "/project/oauth2/dropbox";
884
+ const apiPayload = {};
885
+ if (typeof appKey !== "undefined") {
886
+ apiPayload["appKey"] = appKey;
887
+ }
888
+ if (typeof appSecret !== "undefined") {
889
+ apiPayload["appSecret"] = appSecret;
890
+ }
891
+ if (typeof enabled !== "undefined") {
892
+ apiPayload["enabled"] = enabled;
893
+ }
894
+ const uri = new URL(this.client.config.endpoint + apiPath);
895
+ const apiHeaders = {
896
+ "X-Owbase-Project": this.client.config.project,
897
+ "content-type": "application/json",
898
+ accept: "application/json"
899
+ };
900
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
901
+ }
902
+ updateOAuth2Etsy(paramsOrFirst, ...rest) {
903
+ let params;
904
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
905
+ params = paramsOrFirst || {};
906
+ } else {
907
+ params = {
908
+ keyString: paramsOrFirst,
909
+ sharedSecret: rest[0],
910
+ enabled: rest[1]
911
+ };
912
+ }
913
+ const keyString = params.keyString;
914
+ const sharedSecret = params.sharedSecret;
915
+ const enabled = params.enabled;
916
+ const apiPath = "/project/oauth2/etsy";
917
+ const apiPayload = {};
918
+ if (typeof keyString !== "undefined") {
919
+ apiPayload["keyString"] = keyString;
920
+ }
921
+ if (typeof sharedSecret !== "undefined") {
922
+ apiPayload["sharedSecret"] = sharedSecret;
923
+ }
924
+ if (typeof enabled !== "undefined") {
925
+ apiPayload["enabled"] = enabled;
926
+ }
927
+ const uri = new URL(this.client.config.endpoint + apiPath);
928
+ const apiHeaders = {
929
+ "X-Owbase-Project": this.client.config.project,
930
+ "content-type": "application/json",
931
+ accept: "application/json"
932
+ };
933
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
934
+ }
935
+ updateOAuth2Facebook(paramsOrFirst, ...rest) {
936
+ let params;
937
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
938
+ params = paramsOrFirst || {};
939
+ } else {
940
+ params = {
941
+ appId: paramsOrFirst,
942
+ appSecret: rest[0],
943
+ enabled: rest[1]
944
+ };
945
+ }
946
+ const appId = params.appId;
947
+ const appSecret = params.appSecret;
948
+ const enabled = params.enabled;
949
+ const apiPath = "/project/oauth2/facebook";
950
+ const apiPayload = {};
951
+ if (typeof appId !== "undefined") {
952
+ apiPayload["appId"] = appId;
953
+ }
954
+ if (typeof appSecret !== "undefined") {
955
+ apiPayload["appSecret"] = appSecret;
956
+ }
957
+ if (typeof enabled !== "undefined") {
958
+ apiPayload["enabled"] = enabled;
959
+ }
960
+ const uri = new URL(this.client.config.endpoint + apiPath);
961
+ const apiHeaders = {
962
+ "X-Owbase-Project": this.client.config.project,
963
+ "content-type": "application/json",
964
+ accept: "application/json"
965
+ };
966
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
967
+ }
968
+ updateOAuth2Figma(paramsOrFirst, ...rest) {
969
+ let params;
970
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
971
+ params = paramsOrFirst || {};
972
+ } else {
973
+ params = {
974
+ clientId: paramsOrFirst,
975
+ clientSecret: rest[0],
976
+ enabled: rest[1]
977
+ };
978
+ }
979
+ const clientId = params.clientId;
980
+ const clientSecret = params.clientSecret;
981
+ const enabled = params.enabled;
982
+ const apiPath = "/project/oauth2/figma";
983
+ const apiPayload = {};
984
+ if (typeof clientId !== "undefined") {
985
+ apiPayload["clientId"] = clientId;
986
+ }
987
+ if (typeof clientSecret !== "undefined") {
988
+ apiPayload["clientSecret"] = clientSecret;
989
+ }
990
+ if (typeof enabled !== "undefined") {
991
+ apiPayload["enabled"] = enabled;
992
+ }
993
+ const uri = new URL(this.client.config.endpoint + apiPath);
994
+ const apiHeaders = {
995
+ "X-Owbase-Project": this.client.config.project,
996
+ "content-type": "application/json",
997
+ accept: "application/json"
998
+ };
999
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1000
+ }
1001
+ updateOAuth2FusionAuth(paramsOrFirst, ...rest) {
1002
+ let params;
1003
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1004
+ params = paramsOrFirst || {};
1005
+ } else {
1006
+ params = {
1007
+ clientId: paramsOrFirst,
1008
+ clientSecret: rest[0],
1009
+ endpoint: rest[1],
1010
+ enabled: rest[2]
1011
+ };
1012
+ }
1013
+ const clientId = params.clientId;
1014
+ const clientSecret = params.clientSecret;
1015
+ const endpoint = params.endpoint;
1016
+ const enabled = params.enabled;
1017
+ const apiPath = "/project/oauth2/fusionauth";
1018
+ const apiPayload = {};
1019
+ if (typeof clientId !== "undefined") {
1020
+ apiPayload["clientId"] = clientId;
1021
+ }
1022
+ if (typeof clientSecret !== "undefined") {
1023
+ apiPayload["clientSecret"] = clientSecret;
1024
+ }
1025
+ if (typeof endpoint !== "undefined") {
1026
+ apiPayload["endpoint"] = endpoint;
1027
+ }
1028
+ if (typeof enabled !== "undefined") {
1029
+ apiPayload["enabled"] = enabled;
1030
+ }
1031
+ const uri = new URL(this.client.config.endpoint + apiPath);
1032
+ const apiHeaders = {
1033
+ "X-Owbase-Project": this.client.config.project,
1034
+ "content-type": "application/json",
1035
+ accept: "application/json"
1036
+ };
1037
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1038
+ }
1039
+ updateOAuth2GitHub(paramsOrFirst, ...rest) {
1040
+ let params;
1041
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1042
+ params = paramsOrFirst || {};
1043
+ } else {
1044
+ params = {
1045
+ clientId: paramsOrFirst,
1046
+ clientSecret: rest[0],
1047
+ prompt: rest[1],
1048
+ enabled: rest[2]
1049
+ };
1050
+ }
1051
+ const clientId = params.clientId;
1052
+ const clientSecret = params.clientSecret;
1053
+ const prompt = params.prompt;
1054
+ const enabled = params.enabled;
1055
+ const apiPath = "/project/oauth2/github";
1056
+ const apiPayload = {};
1057
+ if (typeof clientId !== "undefined") {
1058
+ apiPayload["clientId"] = clientId;
1059
+ }
1060
+ if (typeof clientSecret !== "undefined") {
1061
+ apiPayload["clientSecret"] = clientSecret;
1062
+ }
1063
+ if (typeof prompt !== "undefined") {
1064
+ apiPayload["prompt"] = prompt;
1065
+ }
1066
+ if (typeof enabled !== "undefined") {
1067
+ apiPayload["enabled"] = enabled;
1068
+ }
1069
+ const uri = new URL(this.client.config.endpoint + apiPath);
1070
+ const apiHeaders = {
1071
+ "X-Owbase-Project": this.client.config.project,
1072
+ "content-type": "application/json",
1073
+ accept: "application/json"
1074
+ };
1075
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1076
+ }
1077
+ updateOAuth2Gitlab(paramsOrFirst, ...rest) {
1078
+ let params;
1079
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1080
+ params = paramsOrFirst || {};
1081
+ } else {
1082
+ params = {
1083
+ applicationId: paramsOrFirst,
1084
+ secret: rest[0],
1085
+ endpoint: rest[1],
1086
+ enabled: rest[2]
1087
+ };
1088
+ }
1089
+ const applicationId = params.applicationId;
1090
+ const secret = params.secret;
1091
+ const endpoint = params.endpoint;
1092
+ const enabled = params.enabled;
1093
+ const apiPath = "/project/oauth2/gitlab";
1094
+ const apiPayload = {};
1095
+ if (typeof applicationId !== "undefined") {
1096
+ apiPayload["applicationId"] = applicationId;
1097
+ }
1098
+ if (typeof secret !== "undefined") {
1099
+ apiPayload["secret"] = secret;
1100
+ }
1101
+ if (typeof endpoint !== "undefined") {
1102
+ apiPayload["endpoint"] = endpoint;
1103
+ }
1104
+ if (typeof enabled !== "undefined") {
1105
+ apiPayload["enabled"] = enabled;
1106
+ }
1107
+ const uri = new URL(this.client.config.endpoint + apiPath);
1108
+ const apiHeaders = {
1109
+ "X-Owbase-Project": this.client.config.project,
1110
+ "content-type": "application/json",
1111
+ accept: "application/json"
1112
+ };
1113
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1114
+ }
1115
+ updateOAuth2Google(paramsOrFirst, ...rest) {
1116
+ let params;
1117
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1118
+ params = paramsOrFirst || {};
1119
+ } else {
1120
+ params = {
1121
+ clientId: paramsOrFirst,
1122
+ clientSecret: rest[0],
1123
+ prompt: rest[1],
1124
+ nativeClientIds: rest[2],
1125
+ enabled: rest[3],
1126
+ nativeEnabled: rest[4]
1127
+ };
1128
+ }
1129
+ const clientId = params.clientId;
1130
+ const clientSecret = params.clientSecret;
1131
+ const prompt = params.prompt;
1132
+ const nativeClientIds = params.nativeClientIds;
1133
+ const enabled = params.enabled;
1134
+ const nativeEnabled = params.nativeEnabled;
1135
+ const apiPath = "/project/oauth2/google";
1136
+ const apiPayload = {};
1137
+ if (typeof clientId !== "undefined") {
1138
+ apiPayload["clientId"] = clientId;
1139
+ }
1140
+ if (typeof clientSecret !== "undefined") {
1141
+ apiPayload["clientSecret"] = clientSecret;
1142
+ }
1143
+ if (typeof prompt !== "undefined") {
1144
+ apiPayload["prompt"] = prompt;
1145
+ }
1146
+ if (typeof nativeClientIds !== "undefined") {
1147
+ apiPayload["nativeClientIds"] = nativeClientIds;
1148
+ }
1149
+ if (typeof enabled !== "undefined") {
1150
+ apiPayload["enabled"] = enabled;
1151
+ }
1152
+ if (typeof nativeEnabled !== "undefined") {
1153
+ apiPayload["nativeEnabled"] = nativeEnabled;
1154
+ }
1155
+ const uri = new URL(this.client.config.endpoint + apiPath);
1156
+ const apiHeaders = {
1157
+ "X-Owbase-Project": this.client.config.project,
1158
+ "content-type": "application/json",
1159
+ accept: "application/json"
1160
+ };
1161
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1162
+ }
1163
+ updateOAuth2HuggingFace(paramsOrFirst, ...rest) {
1164
+ let params;
1165
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1166
+ params = paramsOrFirst || {};
1167
+ } else {
1168
+ params = {
1169
+ clientId: paramsOrFirst,
1170
+ clientSecret: rest[0],
1171
+ enabled: rest[1]
1172
+ };
1173
+ }
1174
+ const clientId = params.clientId;
1175
+ const clientSecret = params.clientSecret;
1176
+ const enabled = params.enabled;
1177
+ const apiPath = "/project/oauth2/huggingface";
1178
+ const apiPayload = {};
1179
+ if (typeof clientId !== "undefined") {
1180
+ apiPayload["clientId"] = clientId;
1181
+ }
1182
+ if (typeof clientSecret !== "undefined") {
1183
+ apiPayload["clientSecret"] = clientSecret;
1184
+ }
1185
+ if (typeof enabled !== "undefined") {
1186
+ apiPayload["enabled"] = enabled;
1187
+ }
1188
+ const uri = new URL(this.client.config.endpoint + apiPath);
1189
+ const apiHeaders = {
1190
+ "X-Owbase-Project": this.client.config.project,
1191
+ "content-type": "application/json",
1192
+ accept: "application/json"
1193
+ };
1194
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1195
+ }
1196
+ updateOAuth2Kakao(paramsOrFirst, ...rest) {
1197
+ let params;
1198
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1199
+ params = paramsOrFirst || {};
1200
+ } else {
1201
+ params = {
1202
+ clientId: paramsOrFirst,
1203
+ clientSecret: rest[0],
1204
+ prompt: rest[1],
1205
+ enabled: rest[2]
1206
+ };
1207
+ }
1208
+ const clientId = params.clientId;
1209
+ const clientSecret = params.clientSecret;
1210
+ const prompt = params.prompt;
1211
+ const enabled = params.enabled;
1212
+ const apiPath = "/project/oauth2/kakao";
1213
+ const apiPayload = {};
1214
+ if (typeof clientId !== "undefined") {
1215
+ apiPayload["clientId"] = clientId;
1216
+ }
1217
+ if (typeof clientSecret !== "undefined") {
1218
+ apiPayload["clientSecret"] = clientSecret;
1219
+ }
1220
+ if (typeof prompt !== "undefined") {
1221
+ apiPayload["prompt"] = prompt;
1222
+ }
1223
+ if (typeof enabled !== "undefined") {
1224
+ apiPayload["enabled"] = enabled;
1225
+ }
1226
+ const uri = new URL(this.client.config.endpoint + apiPath);
1227
+ const apiHeaders = {
1228
+ "X-Owbase-Project": this.client.config.project,
1229
+ "content-type": "application/json",
1230
+ accept: "application/json"
1231
+ };
1232
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1233
+ }
1234
+ updateOAuth2Keycloak(paramsOrFirst, ...rest) {
1235
+ let params;
1236
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1237
+ params = paramsOrFirst || {};
1238
+ } else {
1239
+ params = {
1240
+ clientId: paramsOrFirst,
1241
+ clientSecret: rest[0],
1242
+ endpoint: rest[1],
1243
+ realmName: rest[2],
1244
+ enabled: rest[3]
1245
+ };
1246
+ }
1247
+ const clientId = params.clientId;
1248
+ const clientSecret = params.clientSecret;
1249
+ const endpoint = params.endpoint;
1250
+ const realmName = params.realmName;
1251
+ const enabled = params.enabled;
1252
+ const apiPath = "/project/oauth2/keycloak";
1253
+ const apiPayload = {};
1254
+ if (typeof clientId !== "undefined") {
1255
+ apiPayload["clientId"] = clientId;
1256
+ }
1257
+ if (typeof clientSecret !== "undefined") {
1258
+ apiPayload["clientSecret"] = clientSecret;
1259
+ }
1260
+ if (typeof endpoint !== "undefined") {
1261
+ apiPayload["endpoint"] = endpoint;
1262
+ }
1263
+ if (typeof realmName !== "undefined") {
1264
+ apiPayload["realmName"] = realmName;
1265
+ }
1266
+ if (typeof enabled !== "undefined") {
1267
+ apiPayload["enabled"] = enabled;
1268
+ }
1269
+ const uri = new URL(this.client.config.endpoint + apiPath);
1270
+ const apiHeaders = {
1271
+ "X-Owbase-Project": this.client.config.project,
1272
+ "content-type": "application/json",
1273
+ accept: "application/json"
1274
+ };
1275
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1276
+ }
1277
+ updateOAuth2Kick(paramsOrFirst, ...rest) {
1278
+ let params;
1279
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1280
+ params = paramsOrFirst || {};
1281
+ } else {
1282
+ params = {
1283
+ clientId: paramsOrFirst,
1284
+ clientSecret: rest[0],
1285
+ enabled: rest[1]
1286
+ };
1287
+ }
1288
+ const clientId = params.clientId;
1289
+ const clientSecret = params.clientSecret;
1290
+ const enabled = params.enabled;
1291
+ const apiPath = "/project/oauth2/kick";
1292
+ const apiPayload = {};
1293
+ if (typeof clientId !== "undefined") {
1294
+ apiPayload["clientId"] = clientId;
1295
+ }
1296
+ if (typeof clientSecret !== "undefined") {
1297
+ apiPayload["clientSecret"] = clientSecret;
1298
+ }
1299
+ if (typeof enabled !== "undefined") {
1300
+ apiPayload["enabled"] = enabled;
1301
+ }
1302
+ const uri = new URL(this.client.config.endpoint + apiPath);
1303
+ const apiHeaders = {
1304
+ "X-Owbase-Project": this.client.config.project,
1305
+ "content-type": "application/json",
1306
+ accept: "application/json"
1307
+ };
1308
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1309
+ }
1310
+ updateOAuth2Linkedin(paramsOrFirst, ...rest) {
1311
+ let params;
1312
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1313
+ params = paramsOrFirst || {};
1314
+ } else {
1315
+ params = {
1316
+ clientId: paramsOrFirst,
1317
+ primaryClientSecret: rest[0],
1318
+ enabled: rest[1]
1319
+ };
1320
+ }
1321
+ const clientId = params.clientId;
1322
+ const primaryClientSecret = params.primaryClientSecret;
1323
+ const enabled = params.enabled;
1324
+ const apiPath = "/project/oauth2/linkedin";
1325
+ const apiPayload = {};
1326
+ if (typeof clientId !== "undefined") {
1327
+ apiPayload["clientId"] = clientId;
1328
+ }
1329
+ if (typeof primaryClientSecret !== "undefined") {
1330
+ apiPayload["primaryClientSecret"] = primaryClientSecret;
1331
+ }
1332
+ if (typeof enabled !== "undefined") {
1333
+ apiPayload["enabled"] = enabled;
1334
+ }
1335
+ const uri = new URL(this.client.config.endpoint + apiPath);
1336
+ const apiHeaders = {
1337
+ "X-Owbase-Project": this.client.config.project,
1338
+ "content-type": "application/json",
1339
+ accept: "application/json"
1340
+ };
1341
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1342
+ }
1343
+ updateOAuth2Microsoft(paramsOrFirst, ...rest) {
1344
+ let params;
1345
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1346
+ params = paramsOrFirst || {};
1347
+ } else {
1348
+ params = {
1349
+ applicationId: paramsOrFirst,
1350
+ applicationSecret: rest[0],
1351
+ tenant: rest[1],
1352
+ prompt: rest[2],
1353
+ enabled: rest[3]
1354
+ };
1355
+ }
1356
+ const applicationId = params.applicationId;
1357
+ const applicationSecret = params.applicationSecret;
1358
+ const tenant = params.tenant;
1359
+ const prompt = params.prompt;
1360
+ const enabled = params.enabled;
1361
+ const apiPath = "/project/oauth2/microsoft";
1362
+ const apiPayload = {};
1363
+ if (typeof applicationId !== "undefined") {
1364
+ apiPayload["applicationId"] = applicationId;
1365
+ }
1366
+ if (typeof applicationSecret !== "undefined") {
1367
+ apiPayload["applicationSecret"] = applicationSecret;
1368
+ }
1369
+ if (typeof tenant !== "undefined") {
1370
+ apiPayload["tenant"] = tenant;
1371
+ }
1372
+ if (typeof prompt !== "undefined") {
1373
+ apiPayload["prompt"] = prompt;
1374
+ }
1375
+ if (typeof enabled !== "undefined") {
1376
+ apiPayload["enabled"] = enabled;
1377
+ }
1378
+ const uri = new URL(this.client.config.endpoint + apiPath);
1379
+ const apiHeaders = {
1380
+ "X-Owbase-Project": this.client.config.project,
1381
+ "content-type": "application/json",
1382
+ accept: "application/json"
1383
+ };
1384
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1385
+ }
1386
+ updateOAuth2Notion(paramsOrFirst, ...rest) {
1387
+ let params;
1388
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1389
+ params = paramsOrFirst || {};
1390
+ } else {
1391
+ params = {
1392
+ oauthClientId: paramsOrFirst,
1393
+ oauthClientSecret: rest[0],
1394
+ enabled: rest[1]
1395
+ };
1396
+ }
1397
+ const oauthClientId = params.oauthClientId;
1398
+ const oauthClientSecret = params.oauthClientSecret;
1399
+ const enabled = params.enabled;
1400
+ const apiPath = "/project/oauth2/notion";
1401
+ const apiPayload = {};
1402
+ if (typeof oauthClientId !== "undefined") {
1403
+ apiPayload["oauthClientId"] = oauthClientId;
1404
+ }
1405
+ if (typeof oauthClientSecret !== "undefined") {
1406
+ apiPayload["oauthClientSecret"] = oauthClientSecret;
1407
+ }
1408
+ if (typeof enabled !== "undefined") {
1409
+ apiPayload["enabled"] = enabled;
1410
+ }
1411
+ const uri = new URL(this.client.config.endpoint + apiPath);
1412
+ const apiHeaders = {
1413
+ "X-Owbase-Project": this.client.config.project,
1414
+ "content-type": "application/json",
1415
+ accept: "application/json"
1416
+ };
1417
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1418
+ }
1419
+ updateOAuth2Oidc(paramsOrFirst, ...rest) {
1420
+ let params;
1421
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1422
+ params = paramsOrFirst || {};
1423
+ } else {
1424
+ params = {
1425
+ clientId: paramsOrFirst,
1426
+ clientSecret: rest[0],
1427
+ wellKnownURL: rest[1],
1428
+ authorizationURL: rest[2],
1429
+ tokenURL: rest[3],
1430
+ userInfoURL: rest[4],
1431
+ prompt: rest[5],
1432
+ maxAge: rest[6],
1433
+ enabled: rest[7]
1434
+ };
1435
+ }
1436
+ const clientId = params.clientId;
1437
+ const clientSecret = params.clientSecret;
1438
+ const wellKnownURL = params.wellKnownURL;
1439
+ const authorizationURL = params.authorizationURL;
1440
+ const tokenURL = params.tokenURL;
1441
+ const userInfoURL = params.userInfoURL;
1442
+ const prompt = params.prompt;
1443
+ const maxAge = params.maxAge;
1444
+ const enabled = params.enabled;
1445
+ const apiPath = "/project/oauth2/oidc";
1446
+ const apiPayload = {};
1447
+ if (typeof clientId !== "undefined") {
1448
+ apiPayload["clientId"] = clientId;
1449
+ }
1450
+ if (typeof clientSecret !== "undefined") {
1451
+ apiPayload["clientSecret"] = clientSecret;
1452
+ }
1453
+ if (typeof wellKnownURL !== "undefined") {
1454
+ apiPayload["wellKnownURL"] = wellKnownURL;
1455
+ }
1456
+ if (typeof authorizationURL !== "undefined") {
1457
+ apiPayload["authorizationURL"] = authorizationURL;
1458
+ }
1459
+ if (typeof tokenURL !== "undefined") {
1460
+ apiPayload["tokenURL"] = tokenURL;
1461
+ }
1462
+ if (typeof userInfoURL !== "undefined") {
1463
+ apiPayload["userInfoURL"] = userInfoURL;
1464
+ }
1465
+ if (typeof prompt !== "undefined") {
1466
+ apiPayload["prompt"] = prompt;
1467
+ }
1468
+ if (typeof maxAge !== "undefined") {
1469
+ apiPayload["maxAge"] = maxAge;
1470
+ }
1471
+ if (typeof enabled !== "undefined") {
1472
+ apiPayload["enabled"] = enabled;
1473
+ }
1474
+ const uri = new URL(this.client.config.endpoint + apiPath);
1475
+ const apiHeaders = {
1476
+ "X-Owbase-Project": this.client.config.project,
1477
+ "content-type": "application/json",
1478
+ accept: "application/json"
1479
+ };
1480
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1481
+ }
1482
+ updateOAuth2Okta(paramsOrFirst, ...rest) {
1483
+ let params;
1484
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1485
+ params = paramsOrFirst || {};
1486
+ } else {
1487
+ params = {
1488
+ clientId: paramsOrFirst,
1489
+ clientSecret: rest[0],
1490
+ domain: rest[1],
1491
+ authorizationServerId: rest[2],
1492
+ prompt: rest[3],
1493
+ enabled: rest[4]
1494
+ };
1495
+ }
1496
+ const clientId = params.clientId;
1497
+ const clientSecret = params.clientSecret;
1498
+ const domain = params.domain;
1499
+ const authorizationServerId = params.authorizationServerId;
1500
+ const prompt = params.prompt;
1501
+ const enabled = params.enabled;
1502
+ const apiPath = "/project/oauth2/okta";
1503
+ const apiPayload = {};
1504
+ if (typeof clientId !== "undefined") {
1505
+ apiPayload["clientId"] = clientId;
1506
+ }
1507
+ if (typeof clientSecret !== "undefined") {
1508
+ apiPayload["clientSecret"] = clientSecret;
1509
+ }
1510
+ if (typeof domain !== "undefined") {
1511
+ apiPayload["domain"] = domain;
1512
+ }
1513
+ if (typeof authorizationServerId !== "undefined") {
1514
+ apiPayload["authorizationServerId"] = authorizationServerId;
1515
+ }
1516
+ if (typeof prompt !== "undefined") {
1517
+ apiPayload["prompt"] = prompt;
1518
+ }
1519
+ if (typeof enabled !== "undefined") {
1520
+ apiPayload["enabled"] = enabled;
1521
+ }
1522
+ const uri = new URL(this.client.config.endpoint + apiPath);
1523
+ const apiHeaders = {
1524
+ "X-Owbase-Project": this.client.config.project,
1525
+ "content-type": "application/json",
1526
+ accept: "application/json"
1527
+ };
1528
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1529
+ }
1530
+ updateOAuth2Paypal(paramsOrFirst, ...rest) {
1531
+ let params;
1532
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1533
+ params = paramsOrFirst || {};
1534
+ } else {
1535
+ params = {
1536
+ clientId: paramsOrFirst,
1537
+ secretKey: rest[0],
1538
+ enabled: rest[1]
1539
+ };
1540
+ }
1541
+ const clientId = params.clientId;
1542
+ const secretKey = params.secretKey;
1543
+ const enabled = params.enabled;
1544
+ const apiPath = "/project/oauth2/paypal";
1545
+ const apiPayload = {};
1546
+ if (typeof clientId !== "undefined") {
1547
+ apiPayload["clientId"] = clientId;
1548
+ }
1549
+ if (typeof secretKey !== "undefined") {
1550
+ apiPayload["secretKey"] = secretKey;
1551
+ }
1552
+ if (typeof enabled !== "undefined") {
1553
+ apiPayload["enabled"] = enabled;
1554
+ }
1555
+ const uri = new URL(this.client.config.endpoint + apiPath);
1556
+ const apiHeaders = {
1557
+ "X-Owbase-Project": this.client.config.project,
1558
+ "content-type": "application/json",
1559
+ accept: "application/json"
1560
+ };
1561
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1562
+ }
1563
+ updateOAuth2PaypalSandbox(paramsOrFirst, ...rest) {
1564
+ let params;
1565
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1566
+ params = paramsOrFirst || {};
1567
+ } else {
1568
+ params = {
1569
+ clientId: paramsOrFirst,
1570
+ secretKey: rest[0],
1571
+ enabled: rest[1]
1572
+ };
1573
+ }
1574
+ const clientId = params.clientId;
1575
+ const secretKey = params.secretKey;
1576
+ const enabled = params.enabled;
1577
+ const apiPath = "/project/oauth2/paypalSandbox";
1578
+ const apiPayload = {};
1579
+ if (typeof clientId !== "undefined") {
1580
+ apiPayload["clientId"] = clientId;
1581
+ }
1582
+ if (typeof secretKey !== "undefined") {
1583
+ apiPayload["secretKey"] = secretKey;
1584
+ }
1585
+ if (typeof enabled !== "undefined") {
1586
+ apiPayload["enabled"] = enabled;
1587
+ }
1588
+ const uri = new URL(this.client.config.endpoint + apiPath);
1589
+ const apiHeaders = {
1590
+ "X-Owbase-Project": this.client.config.project,
1591
+ "content-type": "application/json",
1592
+ accept: "application/json"
1593
+ };
1594
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1595
+ }
1596
+ updateOAuth2Podio(paramsOrFirst, ...rest) {
1597
+ let params;
1598
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1599
+ params = paramsOrFirst || {};
1600
+ } else {
1601
+ params = {
1602
+ clientId: paramsOrFirst,
1603
+ clientSecret: rest[0],
1604
+ enabled: rest[1]
1605
+ };
1606
+ }
1607
+ const clientId = params.clientId;
1608
+ const clientSecret = params.clientSecret;
1609
+ const enabled = params.enabled;
1610
+ const apiPath = "/project/oauth2/podio";
1611
+ const apiPayload = {};
1612
+ if (typeof clientId !== "undefined") {
1613
+ apiPayload["clientId"] = clientId;
1614
+ }
1615
+ if (typeof clientSecret !== "undefined") {
1616
+ apiPayload["clientSecret"] = clientSecret;
1617
+ }
1618
+ if (typeof enabled !== "undefined") {
1619
+ apiPayload["enabled"] = enabled;
1620
+ }
1621
+ const uri = new URL(this.client.config.endpoint + apiPath);
1622
+ const apiHeaders = {
1623
+ "X-Owbase-Project": this.client.config.project,
1624
+ "content-type": "application/json",
1625
+ accept: "application/json"
1626
+ };
1627
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1628
+ }
1629
+ updateOAuth2Resend(paramsOrFirst, ...rest) {
1630
+ let params;
1631
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1632
+ params = paramsOrFirst || {};
1633
+ } else {
1634
+ params = {
1635
+ clientId: paramsOrFirst,
1636
+ clientSecret: rest[0],
1637
+ enabled: rest[1]
1638
+ };
1639
+ }
1640
+ const clientId = params.clientId;
1641
+ const clientSecret = params.clientSecret;
1642
+ const enabled = params.enabled;
1643
+ const apiPath = "/project/oauth2/resend";
1644
+ const apiPayload = {};
1645
+ if (typeof clientId !== "undefined") {
1646
+ apiPayload["clientId"] = clientId;
1647
+ }
1648
+ if (typeof clientSecret !== "undefined") {
1649
+ apiPayload["clientSecret"] = clientSecret;
1650
+ }
1651
+ if (typeof enabled !== "undefined") {
1652
+ apiPayload["enabled"] = enabled;
1653
+ }
1654
+ const uri = new URL(this.client.config.endpoint + apiPath);
1655
+ const apiHeaders = {
1656
+ "X-Owbase-Project": this.client.config.project,
1657
+ "content-type": "application/json",
1658
+ accept: "application/json"
1659
+ };
1660
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1661
+ }
1662
+ updateOAuth2Salesforce(paramsOrFirst, ...rest) {
1663
+ let params;
1664
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1665
+ params = paramsOrFirst || {};
1666
+ } else {
1667
+ params = {
1668
+ customerKey: paramsOrFirst,
1669
+ customerSecret: rest[0],
1670
+ prompt: rest[1],
1671
+ enabled: rest[2]
1672
+ };
1673
+ }
1674
+ const customerKey = params.customerKey;
1675
+ const customerSecret = params.customerSecret;
1676
+ const prompt = params.prompt;
1677
+ const enabled = params.enabled;
1678
+ const apiPath = "/project/oauth2/salesforce";
1679
+ const apiPayload = {};
1680
+ if (typeof customerKey !== "undefined") {
1681
+ apiPayload["customerKey"] = customerKey;
1682
+ }
1683
+ if (typeof customerSecret !== "undefined") {
1684
+ apiPayload["customerSecret"] = customerSecret;
1685
+ }
1686
+ if (typeof prompt !== "undefined") {
1687
+ apiPayload["prompt"] = prompt;
1688
+ }
1689
+ if (typeof enabled !== "undefined") {
1690
+ apiPayload["enabled"] = enabled;
1691
+ }
1692
+ const uri = new URL(this.client.config.endpoint + apiPath);
1693
+ const apiHeaders = {
1694
+ "X-Owbase-Project": this.client.config.project,
1695
+ "content-type": "application/json",
1696
+ accept: "application/json"
1697
+ };
1698
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1699
+ }
1700
+ updateOAuth2Slack(paramsOrFirst, ...rest) {
1701
+ let params;
1702
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1703
+ params = paramsOrFirst || {};
1704
+ } else {
1705
+ params = {
1706
+ clientId: paramsOrFirst,
1707
+ clientSecret: rest[0],
1708
+ enabled: rest[1]
1709
+ };
1710
+ }
1711
+ const clientId = params.clientId;
1712
+ const clientSecret = params.clientSecret;
1713
+ const enabled = params.enabled;
1714
+ const apiPath = "/project/oauth2/slack";
1715
+ const apiPayload = {};
1716
+ if (typeof clientId !== "undefined") {
1717
+ apiPayload["clientId"] = clientId;
1718
+ }
1719
+ if (typeof clientSecret !== "undefined") {
1720
+ apiPayload["clientSecret"] = clientSecret;
1721
+ }
1722
+ if (typeof enabled !== "undefined") {
1723
+ apiPayload["enabled"] = enabled;
1724
+ }
1725
+ const uri = new URL(this.client.config.endpoint + apiPath);
1726
+ const apiHeaders = {
1727
+ "X-Owbase-Project": this.client.config.project,
1728
+ "content-type": "application/json",
1729
+ accept: "application/json"
1730
+ };
1731
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1732
+ }
1733
+ updateOAuth2Spotify(paramsOrFirst, ...rest) {
1734
+ let params;
1735
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1736
+ params = paramsOrFirst || {};
1737
+ } else {
1738
+ params = {
1739
+ clientId: paramsOrFirst,
1740
+ clientSecret: rest[0],
1741
+ enabled: rest[1]
1742
+ };
1743
+ }
1744
+ const clientId = params.clientId;
1745
+ const clientSecret = params.clientSecret;
1746
+ const enabled = params.enabled;
1747
+ const apiPath = "/project/oauth2/spotify";
1748
+ const apiPayload = {};
1749
+ if (typeof clientId !== "undefined") {
1750
+ apiPayload["clientId"] = clientId;
1751
+ }
1752
+ if (typeof clientSecret !== "undefined") {
1753
+ apiPayload["clientSecret"] = clientSecret;
1754
+ }
1755
+ if (typeof enabled !== "undefined") {
1756
+ apiPayload["enabled"] = enabled;
1757
+ }
1758
+ const uri = new URL(this.client.config.endpoint + apiPath);
1759
+ const apiHeaders = {
1760
+ "X-Owbase-Project": this.client.config.project,
1761
+ "content-type": "application/json",
1762
+ accept: "application/json"
1763
+ };
1764
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1765
+ }
1766
+ updateOAuth2Stripe(paramsOrFirst, ...rest) {
1767
+ let params;
1768
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1769
+ params = paramsOrFirst || {};
1770
+ } else {
1771
+ params = {
1772
+ clientId: paramsOrFirst,
1773
+ apiSecretKey: rest[0],
1774
+ enabled: rest[1]
1775
+ };
1776
+ }
1777
+ const clientId = params.clientId;
1778
+ const apiSecretKey = params.apiSecretKey;
1779
+ const enabled = params.enabled;
1780
+ const apiPath = "/project/oauth2/stripe";
1781
+ const apiPayload = {};
1782
+ if (typeof clientId !== "undefined") {
1783
+ apiPayload["clientId"] = clientId;
1784
+ }
1785
+ if (typeof apiSecretKey !== "undefined") {
1786
+ apiPayload["apiSecretKey"] = apiSecretKey;
1787
+ }
1788
+ if (typeof enabled !== "undefined") {
1789
+ apiPayload["enabled"] = enabled;
1790
+ }
1791
+ const uri = new URL(this.client.config.endpoint + apiPath);
1792
+ const apiHeaders = {
1793
+ "X-Owbase-Project": this.client.config.project,
1794
+ "content-type": "application/json",
1795
+ accept: "application/json"
1796
+ };
1797
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1798
+ }
1799
+ updateOAuth2TikTok(paramsOrFirst, ...rest) {
1800
+ let params;
1801
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1802
+ params = paramsOrFirst || {};
1803
+ } else {
1804
+ params = {
1805
+ clientId: paramsOrFirst,
1806
+ clientSecret: rest[0],
1807
+ enabled: rest[1]
1808
+ };
1809
+ }
1810
+ const clientId = params.clientId;
1811
+ const clientSecret = params.clientSecret;
1812
+ const enabled = params.enabled;
1813
+ const apiPath = "/project/oauth2/tiktok";
1814
+ const apiPayload = {};
1815
+ if (typeof clientId !== "undefined") {
1816
+ apiPayload["clientId"] = clientId;
1817
+ }
1818
+ if (typeof clientSecret !== "undefined") {
1819
+ apiPayload["clientSecret"] = clientSecret;
1820
+ }
1821
+ if (typeof enabled !== "undefined") {
1822
+ apiPayload["enabled"] = enabled;
1823
+ }
1824
+ const uri = new URL(this.client.config.endpoint + apiPath);
1825
+ const apiHeaders = {
1826
+ "X-Owbase-Project": this.client.config.project,
1827
+ "content-type": "application/json",
1828
+ accept: "application/json"
1829
+ };
1830
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1831
+ }
1832
+ updateOAuth2Tradeshift(paramsOrFirst, ...rest) {
1833
+ let params;
1834
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1835
+ params = paramsOrFirst || {};
1836
+ } else {
1837
+ params = {
1838
+ oauth2ClientId: paramsOrFirst,
1839
+ oauth2ClientSecret: rest[0],
1840
+ enabled: rest[1]
1841
+ };
1842
+ }
1843
+ const oauth2ClientId = params.oauth2ClientId;
1844
+ const oauth2ClientSecret = params.oauth2ClientSecret;
1845
+ const enabled = params.enabled;
1846
+ const apiPath = "/project/oauth2/tradeshift";
1847
+ const apiPayload = {};
1848
+ if (typeof oauth2ClientId !== "undefined") {
1849
+ apiPayload["oauth2ClientId"] = oauth2ClientId;
1850
+ }
1851
+ if (typeof oauth2ClientSecret !== "undefined") {
1852
+ apiPayload["oauth2ClientSecret"] = oauth2ClientSecret;
1853
+ }
1854
+ if (typeof enabled !== "undefined") {
1855
+ apiPayload["enabled"] = enabled;
1856
+ }
1857
+ const uri = new URL(this.client.config.endpoint + apiPath);
1858
+ const apiHeaders = {
1859
+ "X-Owbase-Project": this.client.config.project,
1860
+ "content-type": "application/json",
1861
+ accept: "application/json"
1862
+ };
1863
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1864
+ }
1865
+ updateOAuth2TradeshiftSandbox(paramsOrFirst, ...rest) {
1866
+ let params;
1867
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1868
+ params = paramsOrFirst || {};
1869
+ } else {
1870
+ params = {
1871
+ oauth2ClientId: paramsOrFirst,
1872
+ oauth2ClientSecret: rest[0],
1873
+ enabled: rest[1]
1874
+ };
1875
+ }
1876
+ const oauth2ClientId = params.oauth2ClientId;
1877
+ const oauth2ClientSecret = params.oauth2ClientSecret;
1878
+ const enabled = params.enabled;
1879
+ const apiPath = "/project/oauth2/tradeshiftBox";
1880
+ const apiPayload = {};
1881
+ if (typeof oauth2ClientId !== "undefined") {
1882
+ apiPayload["oauth2ClientId"] = oauth2ClientId;
1883
+ }
1884
+ if (typeof oauth2ClientSecret !== "undefined") {
1885
+ apiPayload["oauth2ClientSecret"] = oauth2ClientSecret;
1886
+ }
1887
+ if (typeof enabled !== "undefined") {
1888
+ apiPayload["enabled"] = enabled;
1889
+ }
1890
+ const uri = new URL(this.client.config.endpoint + apiPath);
1891
+ const apiHeaders = {
1892
+ "X-Owbase-Project": this.client.config.project,
1893
+ "content-type": "application/json",
1894
+ accept: "application/json"
1895
+ };
1896
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1897
+ }
1898
+ updateOAuth2Twitch(paramsOrFirst, ...rest) {
1899
+ let params;
1900
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1901
+ params = paramsOrFirst || {};
1902
+ } else {
1903
+ params = {
1904
+ clientId: paramsOrFirst,
1905
+ clientSecret: rest[0],
1906
+ enabled: rest[1]
1907
+ };
1908
+ }
1909
+ const clientId = params.clientId;
1910
+ const clientSecret = params.clientSecret;
1911
+ const enabled = params.enabled;
1912
+ const apiPath = "/project/oauth2/twitch";
1913
+ const apiPayload = {};
1914
+ if (typeof clientId !== "undefined") {
1915
+ apiPayload["clientId"] = clientId;
1916
+ }
1917
+ if (typeof clientSecret !== "undefined") {
1918
+ apiPayload["clientSecret"] = clientSecret;
1919
+ }
1920
+ if (typeof enabled !== "undefined") {
1921
+ apiPayload["enabled"] = enabled;
1922
+ }
1923
+ const uri = new URL(this.client.config.endpoint + apiPath);
1924
+ const apiHeaders = {
1925
+ "X-Owbase-Project": this.client.config.project,
1926
+ "content-type": "application/json",
1927
+ accept: "application/json"
1928
+ };
1929
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1930
+ }
1931
+ updateOAuth2Webflow(paramsOrFirst, ...rest) {
1932
+ let params;
1933
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1934
+ params = paramsOrFirst || {};
1935
+ } else {
1936
+ params = {
1937
+ clientId: paramsOrFirst,
1938
+ clientSecret: rest[0],
1939
+ enabled: rest[1]
1940
+ };
1941
+ }
1942
+ const clientId = params.clientId;
1943
+ const clientSecret = params.clientSecret;
1944
+ const enabled = params.enabled;
1945
+ const apiPath = "/project/oauth2/webflow";
1946
+ const apiPayload = {};
1947
+ if (typeof clientId !== "undefined") {
1948
+ apiPayload["clientId"] = clientId;
1949
+ }
1950
+ if (typeof clientSecret !== "undefined") {
1951
+ apiPayload["clientSecret"] = clientSecret;
1952
+ }
1953
+ if (typeof enabled !== "undefined") {
1954
+ apiPayload["enabled"] = enabled;
1955
+ }
1956
+ const uri = new URL(this.client.config.endpoint + apiPath);
1957
+ const apiHeaders = {
1958
+ "X-Owbase-Project": this.client.config.project,
1959
+ "content-type": "application/json",
1960
+ accept: "application/json"
1961
+ };
1962
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1963
+ }
1964
+ updateOAuth2WordPress(paramsOrFirst, ...rest) {
1965
+ let params;
1966
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1967
+ params = paramsOrFirst || {};
1968
+ } else {
1969
+ params = {
1970
+ clientId: paramsOrFirst,
1971
+ clientSecret: rest[0],
1972
+ enabled: rest[1]
1973
+ };
1974
+ }
1975
+ const clientId = params.clientId;
1976
+ const clientSecret = params.clientSecret;
1977
+ const enabled = params.enabled;
1978
+ const apiPath = "/project/oauth2/wordpress";
1979
+ const apiPayload = {};
1980
+ if (typeof clientId !== "undefined") {
1981
+ apiPayload["clientId"] = clientId;
1982
+ }
1983
+ if (typeof clientSecret !== "undefined") {
1984
+ apiPayload["clientSecret"] = clientSecret;
1985
+ }
1986
+ if (typeof enabled !== "undefined") {
1987
+ apiPayload["enabled"] = enabled;
1988
+ }
1989
+ const uri = new URL(this.client.config.endpoint + apiPath);
1990
+ const apiHeaders = {
1991
+ "X-Owbase-Project": this.client.config.project,
1992
+ "content-type": "application/json",
1993
+ accept: "application/json"
1994
+ };
1995
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
1996
+ }
1997
+ updateOAuth2X(paramsOrFirst, ...rest) {
1998
+ let params;
1999
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2000
+ params = paramsOrFirst || {};
2001
+ } else {
2002
+ params = {
2003
+ customerKey: paramsOrFirst,
2004
+ secretKey: rest[0],
2005
+ enabled: rest[1]
2006
+ };
2007
+ }
2008
+ const customerKey = params.customerKey;
2009
+ const secretKey = params.secretKey;
2010
+ const enabled = params.enabled;
2011
+ const apiPath = "/project/oauth2/x";
2012
+ const apiPayload = {};
2013
+ if (typeof customerKey !== "undefined") {
2014
+ apiPayload["customerKey"] = customerKey;
2015
+ }
2016
+ if (typeof secretKey !== "undefined") {
2017
+ apiPayload["secretKey"] = secretKey;
2018
+ }
2019
+ if (typeof enabled !== "undefined") {
2020
+ apiPayload["enabled"] = enabled;
2021
+ }
2022
+ const uri = new URL(this.client.config.endpoint + apiPath);
2023
+ const apiHeaders = {
2024
+ "X-Owbase-Project": this.client.config.project,
2025
+ "content-type": "application/json",
2026
+ accept: "application/json"
2027
+ };
2028
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
2029
+ }
2030
+ updateOAuth2Yahoo(paramsOrFirst, ...rest) {
2031
+ let params;
2032
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2033
+ params = paramsOrFirst || {};
2034
+ } else {
2035
+ params = {
2036
+ clientId: paramsOrFirst,
2037
+ clientSecret: rest[0],
2038
+ enabled: rest[1]
2039
+ };
2040
+ }
2041
+ const clientId = params.clientId;
2042
+ const clientSecret = params.clientSecret;
2043
+ const enabled = params.enabled;
2044
+ const apiPath = "/project/oauth2/yahoo";
2045
+ const apiPayload = {};
2046
+ if (typeof clientId !== "undefined") {
2047
+ apiPayload["clientId"] = clientId;
2048
+ }
2049
+ if (typeof clientSecret !== "undefined") {
2050
+ apiPayload["clientSecret"] = clientSecret;
2051
+ }
2052
+ if (typeof enabled !== "undefined") {
2053
+ apiPayload["enabled"] = enabled;
2054
+ }
2055
+ const uri = new URL(this.client.config.endpoint + apiPath);
2056
+ const apiHeaders = {
2057
+ "X-Owbase-Project": this.client.config.project,
2058
+ "content-type": "application/json",
2059
+ accept: "application/json"
2060
+ };
2061
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
2062
+ }
2063
+ updateOAuth2Yandex(paramsOrFirst, ...rest) {
2064
+ let params;
2065
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2066
+ params = paramsOrFirst || {};
2067
+ } else {
2068
+ params = {
2069
+ clientId: paramsOrFirst,
2070
+ clientSecret: rest[0],
2071
+ enabled: rest[1]
2072
+ };
2073
+ }
2074
+ const clientId = params.clientId;
2075
+ const clientSecret = params.clientSecret;
2076
+ const enabled = params.enabled;
2077
+ const apiPath = "/project/oauth2/yandex";
2078
+ const apiPayload = {};
2079
+ if (typeof clientId !== "undefined") {
2080
+ apiPayload["clientId"] = clientId;
2081
+ }
2082
+ if (typeof clientSecret !== "undefined") {
2083
+ apiPayload["clientSecret"] = clientSecret;
2084
+ }
2085
+ if (typeof enabled !== "undefined") {
2086
+ apiPayload["enabled"] = enabled;
2087
+ }
2088
+ const uri = new URL(this.client.config.endpoint + apiPath);
2089
+ const apiHeaders = {
2090
+ "X-Owbase-Project": this.client.config.project,
2091
+ "content-type": "application/json",
2092
+ accept: "application/json"
2093
+ };
2094
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
2095
+ }
2096
+ updateOAuth2Zoho(paramsOrFirst, ...rest) {
2097
+ let params;
2098
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2099
+ params = paramsOrFirst || {};
2100
+ } else {
2101
+ params = {
2102
+ clientId: paramsOrFirst,
2103
+ clientSecret: rest[0],
2104
+ prompt: rest[1],
2105
+ enabled: rest[2]
2106
+ };
2107
+ }
2108
+ const clientId = params.clientId;
2109
+ const clientSecret = params.clientSecret;
2110
+ const prompt = params.prompt;
2111
+ const enabled = params.enabled;
2112
+ const apiPath = "/project/oauth2/zoho";
2113
+ const apiPayload = {};
2114
+ if (typeof clientId !== "undefined") {
2115
+ apiPayload["clientId"] = clientId;
2116
+ }
2117
+ if (typeof clientSecret !== "undefined") {
2118
+ apiPayload["clientSecret"] = clientSecret;
2119
+ }
2120
+ if (typeof prompt !== "undefined") {
2121
+ apiPayload["prompt"] = prompt;
2122
+ }
2123
+ if (typeof enabled !== "undefined") {
2124
+ apiPayload["enabled"] = enabled;
2125
+ }
2126
+ const uri = new URL(this.client.config.endpoint + apiPath);
2127
+ const apiHeaders = {
2128
+ "X-Owbase-Project": this.client.config.project,
2129
+ "content-type": "application/json",
2130
+ accept: "application/json"
2131
+ };
2132
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
2133
+ }
2134
+ updateOAuth2Zoom(paramsOrFirst, ...rest) {
2135
+ let params;
2136
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2137
+ params = paramsOrFirst || {};
2138
+ } else {
2139
+ params = {
2140
+ clientId: paramsOrFirst,
2141
+ clientSecret: rest[0],
2142
+ enabled: rest[1]
2143
+ };
2144
+ }
2145
+ const clientId = params.clientId;
2146
+ const clientSecret = params.clientSecret;
2147
+ const enabled = params.enabled;
2148
+ const apiPath = "/project/oauth2/zoom";
2149
+ const apiPayload = {};
2150
+ if (typeof clientId !== "undefined") {
2151
+ apiPayload["clientId"] = clientId;
2152
+ }
2153
+ if (typeof clientSecret !== "undefined") {
2154
+ apiPayload["clientSecret"] = clientSecret;
2155
+ }
2156
+ if (typeof enabled !== "undefined") {
2157
+ apiPayload["enabled"] = enabled;
2158
+ }
2159
+ const uri = new URL(this.client.config.endpoint + apiPath);
2160
+ const apiHeaders = {
2161
+ "X-Owbase-Project": this.client.config.project,
2162
+ "content-type": "application/json",
2163
+ accept: "application/json"
2164
+ };
2165
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
2166
+ }
2167
+ getOAuth2Provider(paramsOrFirst) {
2168
+ let params;
2169
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst) && "providerId" in paramsOrFirst) {
2170
+ params = paramsOrFirst || {};
2171
+ } else {
2172
+ params = {
2173
+ providerId: paramsOrFirst
2174
+ };
2175
+ }
2176
+ const providerId = params.providerId;
2177
+ if (typeof providerId === "undefined") {
2178
+ throw new OwbaseException(
2179
+ 'Missing required parameter: "providerId"'
2180
+ );
2181
+ }
2182
+ const apiPath = "/project/oauth2/{providerId}".replace(
2183
+ "{providerId}",
2184
+ encodeURIComponent(String(providerId))
2185
+ );
2186
+ const apiPayload = {};
2187
+ const uri = new URL(this.client.config.endpoint + apiPath);
2188
+ const apiHeaders = {
2189
+ "X-Owbase-Project": this.client.config.project,
2190
+ accept: "application/json"
2191
+ };
2192
+ return this.client.call("get", uri, apiHeaders, apiPayload);
2193
+ }
2194
+ listPlatforms(paramsOrFirst, ...rest) {
2195
+ let params;
2196
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2197
+ params = paramsOrFirst || {};
2198
+ } else {
2199
+ params = {
2200
+ queries: paramsOrFirst,
2201
+ total: rest[0]
2202
+ };
2203
+ }
2204
+ const queries = params.queries;
2205
+ const total = params.total;
2206
+ const apiPath = "/project/platforms";
2207
+ const apiPayload = {};
2208
+ if (typeof queries !== "undefined") {
2209
+ apiPayload["queries"] = queries;
2210
+ }
2211
+ if (typeof total !== "undefined") {
2212
+ apiPayload["total"] = total;
2213
+ }
2214
+ const uri = new URL(this.client.config.endpoint + apiPath);
2215
+ const apiHeaders = {
2216
+ "X-Owbase-Project": this.client.config.project,
2217
+ accept: "application/json"
2218
+ };
2219
+ return this.client.call("get", uri, apiHeaders, apiPayload);
2220
+ }
2221
+ createAndroidPlatform(paramsOrFirst, ...rest) {
2222
+ let params;
2223
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2224
+ params = paramsOrFirst || {};
2225
+ } else {
2226
+ params = {
2227
+ platformId: paramsOrFirst,
2228
+ name: rest[0],
2229
+ applicationId: rest[1]
2230
+ };
2231
+ }
2232
+ const platformId = params.platformId;
2233
+ const name = params.name;
2234
+ const applicationId = params.applicationId;
2235
+ if (typeof platformId === "undefined") {
2236
+ throw new OwbaseException(
2237
+ 'Missing required parameter: "platformId"'
2238
+ );
2239
+ }
2240
+ if (typeof name === "undefined") {
2241
+ throw new OwbaseException('Missing required parameter: "name"');
2242
+ }
2243
+ if (typeof applicationId === "undefined") {
2244
+ throw new OwbaseException(
2245
+ 'Missing required parameter: "applicationId"'
2246
+ );
2247
+ }
2248
+ const apiPath = "/project/platforms/android";
2249
+ const apiPayload = {};
2250
+ if (typeof platformId !== "undefined") {
2251
+ apiPayload["platformId"] = platformId;
2252
+ }
2253
+ if (typeof name !== "undefined") {
2254
+ apiPayload["name"] = name;
2255
+ }
2256
+ if (typeof applicationId !== "undefined") {
2257
+ apiPayload["applicationId"] = applicationId;
2258
+ }
2259
+ const uri = new URL(this.client.config.endpoint + apiPath);
2260
+ const apiHeaders = {
2261
+ "X-Owbase-Project": this.client.config.project,
2262
+ "content-type": "application/json",
2263
+ accept: "application/json"
2264
+ };
2265
+ return this.client.call("post", uri, apiHeaders, apiPayload);
2266
+ }
2267
+ updateAndroidPlatform(paramsOrFirst, ...rest) {
2268
+ let params;
2269
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2270
+ params = paramsOrFirst || {};
2271
+ } else {
2272
+ params = {
2273
+ platformId: paramsOrFirst,
2274
+ name: rest[0],
2275
+ applicationId: rest[1]
2276
+ };
2277
+ }
2278
+ const platformId = params.platformId;
2279
+ const name = params.name;
2280
+ const applicationId = params.applicationId;
2281
+ if (typeof platformId === "undefined" || platformId === "") {
2282
+ throw new OwbaseException(
2283
+ 'Missing required parameter: "platformId"'
2284
+ );
2285
+ }
2286
+ if (typeof name === "undefined") {
2287
+ throw new OwbaseException('Missing required parameter: "name"');
2288
+ }
2289
+ if (typeof applicationId === "undefined") {
2290
+ throw new OwbaseException(
2291
+ 'Missing required parameter: "applicationId"'
2292
+ );
2293
+ }
2294
+ const apiPath = "/project/platforms/android/{platformId}".replace(
2295
+ "{platformId}",
2296
+ encodeURIComponent(String(platformId))
2297
+ );
2298
+ const apiPayload = {};
2299
+ if (typeof name !== "undefined") {
2300
+ apiPayload["name"] = name;
2301
+ }
2302
+ if (typeof applicationId !== "undefined") {
2303
+ apiPayload["applicationId"] = applicationId;
2304
+ }
2305
+ const uri = new URL(this.client.config.endpoint + apiPath);
2306
+ const apiHeaders = {
2307
+ "X-Owbase-Project": this.client.config.project,
2308
+ "content-type": "application/json",
2309
+ accept: "application/json"
2310
+ };
2311
+ return this.client.call("put", uri, apiHeaders, apiPayload);
2312
+ }
2313
+ createApplePlatform(paramsOrFirst, ...rest) {
2314
+ let params;
2315
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2316
+ params = paramsOrFirst || {};
2317
+ } else {
2318
+ params = {
2319
+ platformId: paramsOrFirst,
2320
+ name: rest[0],
2321
+ bundleIdentifier: rest[1]
2322
+ };
2323
+ }
2324
+ const platformId = params.platformId;
2325
+ const name = params.name;
2326
+ const bundleIdentifier = params.bundleIdentifier;
2327
+ if (typeof platformId === "undefined") {
2328
+ throw new OwbaseException(
2329
+ 'Missing required parameter: "platformId"'
2330
+ );
2331
+ }
2332
+ if (typeof name === "undefined") {
2333
+ throw new OwbaseException('Missing required parameter: "name"');
2334
+ }
2335
+ if (typeof bundleIdentifier === "undefined") {
2336
+ throw new OwbaseException(
2337
+ 'Missing required parameter: "bundleIdentifier"'
2338
+ );
2339
+ }
2340
+ const apiPath = "/project/platforms/apple";
2341
+ const apiPayload = {};
2342
+ if (typeof platformId !== "undefined") {
2343
+ apiPayload["platformId"] = platformId;
2344
+ }
2345
+ if (typeof name !== "undefined") {
2346
+ apiPayload["name"] = name;
2347
+ }
2348
+ if (typeof bundleIdentifier !== "undefined") {
2349
+ apiPayload["bundleIdentifier"] = bundleIdentifier;
2350
+ }
2351
+ const uri = new URL(this.client.config.endpoint + apiPath);
2352
+ const apiHeaders = {
2353
+ "X-Owbase-Project": this.client.config.project,
2354
+ "content-type": "application/json",
2355
+ accept: "application/json"
2356
+ };
2357
+ return this.client.call("post", uri, apiHeaders, apiPayload);
2358
+ }
2359
+ updateApplePlatform(paramsOrFirst, ...rest) {
2360
+ let params;
2361
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2362
+ params = paramsOrFirst || {};
2363
+ } else {
2364
+ params = {
2365
+ platformId: paramsOrFirst,
2366
+ name: rest[0],
2367
+ bundleIdentifier: rest[1]
2368
+ };
2369
+ }
2370
+ const platformId = params.platformId;
2371
+ const name = params.name;
2372
+ const bundleIdentifier = params.bundleIdentifier;
2373
+ if (typeof platformId === "undefined" || platformId === "") {
2374
+ throw new OwbaseException(
2375
+ 'Missing required parameter: "platformId"'
2376
+ );
2377
+ }
2378
+ if (typeof name === "undefined") {
2379
+ throw new OwbaseException('Missing required parameter: "name"');
2380
+ }
2381
+ if (typeof bundleIdentifier === "undefined") {
2382
+ throw new OwbaseException(
2383
+ 'Missing required parameter: "bundleIdentifier"'
2384
+ );
2385
+ }
2386
+ const apiPath = "/project/platforms/apple/{platformId}".replace(
2387
+ "{platformId}",
2388
+ encodeURIComponent(String(platformId))
2389
+ );
2390
+ const apiPayload = {};
2391
+ if (typeof name !== "undefined") {
2392
+ apiPayload["name"] = name;
2393
+ }
2394
+ if (typeof bundleIdentifier !== "undefined") {
2395
+ apiPayload["bundleIdentifier"] = bundleIdentifier;
2396
+ }
2397
+ const uri = new URL(this.client.config.endpoint + apiPath);
2398
+ const apiHeaders = {
2399
+ "X-Owbase-Project": this.client.config.project,
2400
+ "content-type": "application/json",
2401
+ accept: "application/json"
2402
+ };
2403
+ return this.client.call("put", uri, apiHeaders, apiPayload);
2404
+ }
2405
+ createLinuxPlatform(paramsOrFirst, ...rest) {
2406
+ let params;
2407
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2408
+ params = paramsOrFirst || {};
2409
+ } else {
2410
+ params = {
2411
+ platformId: paramsOrFirst,
2412
+ name: rest[0],
2413
+ packageName: rest[1]
2414
+ };
2415
+ }
2416
+ const platformId = params.platformId;
2417
+ const name = params.name;
2418
+ const packageName = params.packageName;
2419
+ if (typeof platformId === "undefined") {
2420
+ throw new OwbaseException(
2421
+ 'Missing required parameter: "platformId"'
2422
+ );
2423
+ }
2424
+ if (typeof name === "undefined") {
2425
+ throw new OwbaseException('Missing required parameter: "name"');
2426
+ }
2427
+ if (typeof packageName === "undefined") {
2428
+ throw new OwbaseException(
2429
+ 'Missing required parameter: "packageName"'
2430
+ );
2431
+ }
2432
+ const apiPath = "/project/platforms/linux";
2433
+ const apiPayload = {};
2434
+ if (typeof platformId !== "undefined") {
2435
+ apiPayload["platformId"] = platformId;
2436
+ }
2437
+ if (typeof name !== "undefined") {
2438
+ apiPayload["name"] = name;
2439
+ }
2440
+ if (typeof packageName !== "undefined") {
2441
+ apiPayload["packageName"] = packageName;
2442
+ }
2443
+ const uri = new URL(this.client.config.endpoint + apiPath);
2444
+ const apiHeaders = {
2445
+ "X-Owbase-Project": this.client.config.project,
2446
+ "content-type": "application/json",
2447
+ accept: "application/json"
2448
+ };
2449
+ return this.client.call("post", uri, apiHeaders, apiPayload);
2450
+ }
2451
+ updateLinuxPlatform(paramsOrFirst, ...rest) {
2452
+ let params;
2453
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2454
+ params = paramsOrFirst || {};
2455
+ } else {
2456
+ params = {
2457
+ platformId: paramsOrFirst,
2458
+ name: rest[0],
2459
+ packageName: rest[1]
2460
+ };
2461
+ }
2462
+ const platformId = params.platformId;
2463
+ const name = params.name;
2464
+ const packageName = params.packageName;
2465
+ if (typeof platformId === "undefined" || platformId === "") {
2466
+ throw new OwbaseException(
2467
+ 'Missing required parameter: "platformId"'
2468
+ );
2469
+ }
2470
+ if (typeof name === "undefined") {
2471
+ throw new OwbaseException('Missing required parameter: "name"');
2472
+ }
2473
+ if (typeof packageName === "undefined") {
2474
+ throw new OwbaseException(
2475
+ 'Missing required parameter: "packageName"'
2476
+ );
2477
+ }
2478
+ const apiPath = "/project/platforms/linux/{platformId}".replace(
2479
+ "{platformId}",
2480
+ encodeURIComponent(String(platformId))
2481
+ );
2482
+ const apiPayload = {};
2483
+ if (typeof name !== "undefined") {
2484
+ apiPayload["name"] = name;
2485
+ }
2486
+ if (typeof packageName !== "undefined") {
2487
+ apiPayload["packageName"] = packageName;
2488
+ }
2489
+ const uri = new URL(this.client.config.endpoint + apiPath);
2490
+ const apiHeaders = {
2491
+ "X-Owbase-Project": this.client.config.project,
2492
+ "content-type": "application/json",
2493
+ accept: "application/json"
2494
+ };
2495
+ return this.client.call("put", uri, apiHeaders, apiPayload);
2496
+ }
2497
+ createWebPlatform(paramsOrFirst, ...rest) {
2498
+ let params;
2499
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2500
+ params = paramsOrFirst || {};
2501
+ } else {
2502
+ params = {
2503
+ platformId: paramsOrFirst,
2504
+ name: rest[0],
2505
+ hostname: rest[1]
2506
+ };
2507
+ }
2508
+ const platformId = params.platformId;
2509
+ const name = params.name;
2510
+ const hostname = params.hostname;
2511
+ if (typeof platformId === "undefined") {
2512
+ throw new OwbaseException(
2513
+ 'Missing required parameter: "platformId"'
2514
+ );
2515
+ }
2516
+ if (typeof name === "undefined") {
2517
+ throw new OwbaseException('Missing required parameter: "name"');
2518
+ }
2519
+ if (typeof hostname === "undefined") {
2520
+ throw new OwbaseException('Missing required parameter: "hostname"');
2521
+ }
2522
+ const apiPath = "/project/platforms/web";
2523
+ const apiPayload = {};
2524
+ if (typeof platformId !== "undefined") {
2525
+ apiPayload["platformId"] = platformId;
2526
+ }
2527
+ if (typeof name !== "undefined") {
2528
+ apiPayload["name"] = name;
2529
+ }
2530
+ if (typeof hostname !== "undefined") {
2531
+ apiPayload["hostname"] = hostname;
2532
+ }
2533
+ const uri = new URL(this.client.config.endpoint + apiPath);
2534
+ const apiHeaders = {
2535
+ "X-Owbase-Project": this.client.config.project,
2536
+ "content-type": "application/json",
2537
+ accept: "application/json"
2538
+ };
2539
+ return this.client.call("post", uri, apiHeaders, apiPayload);
2540
+ }
2541
+ updateWebPlatform(paramsOrFirst, ...rest) {
2542
+ let params;
2543
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2544
+ params = paramsOrFirst || {};
2545
+ } else {
2546
+ params = {
2547
+ platformId: paramsOrFirst,
2548
+ name: rest[0],
2549
+ hostname: rest[1]
2550
+ };
2551
+ }
2552
+ const platformId = params.platformId;
2553
+ const name = params.name;
2554
+ const hostname = params.hostname;
2555
+ if (typeof platformId === "undefined" || platformId === "") {
2556
+ throw new OwbaseException(
2557
+ 'Missing required parameter: "platformId"'
2558
+ );
2559
+ }
2560
+ if (typeof name === "undefined") {
2561
+ throw new OwbaseException('Missing required parameter: "name"');
2562
+ }
2563
+ if (typeof hostname === "undefined") {
2564
+ throw new OwbaseException('Missing required parameter: "hostname"');
2565
+ }
2566
+ const apiPath = "/project/platforms/web/{platformId}".replace(
2567
+ "{platformId}",
2568
+ encodeURIComponent(String(platformId))
2569
+ );
2570
+ const apiPayload = {};
2571
+ if (typeof name !== "undefined") {
2572
+ apiPayload["name"] = name;
2573
+ }
2574
+ if (typeof hostname !== "undefined") {
2575
+ apiPayload["hostname"] = hostname;
2576
+ }
2577
+ const uri = new URL(this.client.config.endpoint + apiPath);
2578
+ const apiHeaders = {
2579
+ "X-Owbase-Project": this.client.config.project,
2580
+ "content-type": "application/json",
2581
+ accept: "application/json"
2582
+ };
2583
+ return this.client.call("put", uri, apiHeaders, apiPayload);
2584
+ }
2585
+ createWindowsPlatform(paramsOrFirst, ...rest) {
2586
+ let params;
2587
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2588
+ params = paramsOrFirst || {};
2589
+ } else {
2590
+ params = {
2591
+ platformId: paramsOrFirst,
2592
+ name: rest[0],
2593
+ packageIdentifierName: rest[1]
2594
+ };
2595
+ }
2596
+ const platformId = params.platformId;
2597
+ const name = params.name;
2598
+ const packageIdentifierName = params.packageIdentifierName;
2599
+ if (typeof platformId === "undefined") {
2600
+ throw new OwbaseException(
2601
+ 'Missing required parameter: "platformId"'
2602
+ );
2603
+ }
2604
+ if (typeof name === "undefined") {
2605
+ throw new OwbaseException('Missing required parameter: "name"');
2606
+ }
2607
+ if (typeof packageIdentifierName === "undefined") {
2608
+ throw new OwbaseException(
2609
+ 'Missing required parameter: "packageIdentifierName"'
2610
+ );
2611
+ }
2612
+ const apiPath = "/project/platforms/windows";
2613
+ const apiPayload = {};
2614
+ if (typeof platformId !== "undefined") {
2615
+ apiPayload["platformId"] = platformId;
2616
+ }
2617
+ if (typeof name !== "undefined") {
2618
+ apiPayload["name"] = name;
2619
+ }
2620
+ if (typeof packageIdentifierName !== "undefined") {
2621
+ apiPayload["packageIdentifierName"] = packageIdentifierName;
2622
+ }
2623
+ const uri = new URL(this.client.config.endpoint + apiPath);
2624
+ const apiHeaders = {
2625
+ "X-Owbase-Project": this.client.config.project,
2626
+ "content-type": "application/json",
2627
+ accept: "application/json"
2628
+ };
2629
+ return this.client.call("post", uri, apiHeaders, apiPayload);
2630
+ }
2631
+ updateWindowsPlatform(paramsOrFirst, ...rest) {
2632
+ let params;
2633
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2634
+ params = paramsOrFirst || {};
2635
+ } else {
2636
+ params = {
2637
+ platformId: paramsOrFirst,
2638
+ name: rest[0],
2639
+ packageIdentifierName: rest[1]
2640
+ };
2641
+ }
2642
+ const platformId = params.platformId;
2643
+ const name = params.name;
2644
+ const packageIdentifierName = params.packageIdentifierName;
2645
+ if (typeof platformId === "undefined" || platformId === "") {
2646
+ throw new OwbaseException(
2647
+ 'Missing required parameter: "platformId"'
2648
+ );
2649
+ }
2650
+ if (typeof name === "undefined") {
2651
+ throw new OwbaseException('Missing required parameter: "name"');
2652
+ }
2653
+ if (typeof packageIdentifierName === "undefined") {
2654
+ throw new OwbaseException(
2655
+ 'Missing required parameter: "packageIdentifierName"'
2656
+ );
2657
+ }
2658
+ const apiPath = "/project/platforms/windows/{platformId}".replace(
2659
+ "{platformId}",
2660
+ encodeURIComponent(String(platformId))
2661
+ );
2662
+ const apiPayload = {};
2663
+ if (typeof name !== "undefined") {
2664
+ apiPayload["name"] = name;
2665
+ }
2666
+ if (typeof packageIdentifierName !== "undefined") {
2667
+ apiPayload["packageIdentifierName"] = packageIdentifierName;
2668
+ }
2669
+ const uri = new URL(this.client.config.endpoint + apiPath);
2670
+ const apiHeaders = {
2671
+ "X-Owbase-Project": this.client.config.project,
2672
+ "content-type": "application/json",
2673
+ accept: "application/json"
2674
+ };
2675
+ return this.client.call("put", uri, apiHeaders, apiPayload);
2676
+ }
2677
+ getPlatform(paramsOrFirst) {
2678
+ let params;
2679
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2680
+ params = paramsOrFirst || {};
2681
+ } else {
2682
+ params = {
2683
+ platformId: paramsOrFirst
2684
+ };
2685
+ }
2686
+ const platformId = params.platformId;
2687
+ if (typeof platformId === "undefined" || platformId === "") {
2688
+ throw new OwbaseException(
2689
+ 'Missing required parameter: "platformId"'
2690
+ );
2691
+ }
2692
+ const apiPath = "/project/platforms/{platformId}".replace(
2693
+ "{platformId}",
2694
+ encodeURIComponent(String(platformId))
2695
+ );
2696
+ const apiPayload = {};
2697
+ const uri = new URL(this.client.config.endpoint + apiPath);
2698
+ const apiHeaders = {
2699
+ "X-Owbase-Project": this.client.config.project,
2700
+ accept: "application/json"
2701
+ };
2702
+ return this.client.call("get", uri, apiHeaders, apiPayload);
2703
+ }
2704
+ deletePlatform(paramsOrFirst) {
2705
+ let params;
2706
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2707
+ params = paramsOrFirst || {};
2708
+ } else {
2709
+ params = {
2710
+ platformId: paramsOrFirst
2711
+ };
2712
+ }
2713
+ const platformId = params.platformId;
2714
+ if (typeof platformId === "undefined" || platformId === "") {
2715
+ throw new OwbaseException(
2716
+ 'Missing required parameter: "platformId"'
2717
+ );
2718
+ }
2719
+ const apiPath = "/project/platforms/{platformId}".replace(
2720
+ "{platformId}",
2721
+ encodeURIComponent(String(platformId))
2722
+ );
2723
+ const apiPayload = {};
2724
+ const uri = new URL(this.client.config.endpoint + apiPath);
2725
+ const apiHeaders = {
2726
+ "X-Owbase-Project": this.client.config.project,
2727
+ "content-type": "application/json",
2728
+ accept: "application/json"
2729
+ };
2730
+ return this.client.call("delete", uri, apiHeaders, apiPayload);
2731
+ }
2732
+ listPolicies(paramsOrFirst, ...rest) {
2733
+ let params;
2734
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2735
+ params = paramsOrFirst || {};
2736
+ } else {
2737
+ params = {
2738
+ queries: paramsOrFirst,
2739
+ total: rest[0]
2740
+ };
2741
+ }
2742
+ const queries = params.queries;
2743
+ const total = params.total;
2744
+ const apiPath = "/project/policies";
2745
+ const apiPayload = {};
2746
+ if (typeof queries !== "undefined") {
2747
+ apiPayload["queries"] = queries;
2748
+ }
2749
+ if (typeof total !== "undefined") {
2750
+ apiPayload["total"] = total;
2751
+ }
2752
+ const uri = new URL(this.client.config.endpoint + apiPath);
2753
+ const apiHeaders = {
2754
+ "X-Owbase-Project": this.client.config.project,
2755
+ accept: "application/json"
2756
+ };
2757
+ return this.client.call("get", uri, apiHeaders, apiPayload);
2758
+ }
2759
+ updateDenyAliasedEmailPolicy(paramsOrFirst) {
2760
+ let params;
2761
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2762
+ params = paramsOrFirst || {};
2763
+ } else {
2764
+ params = {
2765
+ enabled: paramsOrFirst
2766
+ };
2767
+ }
2768
+ const enabled = params.enabled;
2769
+ if (typeof enabled === "undefined") {
2770
+ throw new OwbaseException('Missing required parameter: "enabled"');
2771
+ }
2772
+ const apiPath = "/project/policies/deny-aliased-email";
2773
+ const apiPayload = {};
2774
+ if (typeof enabled !== "undefined") {
2775
+ apiPayload["enabled"] = enabled;
2776
+ }
2777
+ const uri = new URL(this.client.config.endpoint + apiPath);
2778
+ const apiHeaders = {
2779
+ "X-Owbase-Project": this.client.config.project,
2780
+ "content-type": "application/json",
2781
+ accept: "application/json"
2782
+ };
2783
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
2784
+ }
2785
+ updateDenyCorporateEmailPolicy(paramsOrFirst) {
2786
+ let params;
2787
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2788
+ params = paramsOrFirst || {};
2789
+ } else {
2790
+ params = {
2791
+ enabled: paramsOrFirst
2792
+ };
2793
+ }
2794
+ const enabled = params.enabled;
2795
+ if (typeof enabled === "undefined") {
2796
+ throw new OwbaseException('Missing required parameter: "enabled"');
2797
+ }
2798
+ const apiPath = "/project/policies/deny-corporate-email";
2799
+ const apiPayload = {};
2800
+ if (typeof enabled !== "undefined") {
2801
+ apiPayload["enabled"] = enabled;
2802
+ }
2803
+ const uri = new URL(this.client.config.endpoint + apiPath);
2804
+ const apiHeaders = {
2805
+ "X-Owbase-Project": this.client.config.project,
2806
+ "content-type": "application/json",
2807
+ accept: "application/json"
2808
+ };
2809
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
2810
+ }
2811
+ updateDenyDisposableEmailPolicy(paramsOrFirst) {
2812
+ let params;
2813
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2814
+ params = paramsOrFirst || {};
2815
+ } else {
2816
+ params = {
2817
+ enabled: paramsOrFirst
2818
+ };
2819
+ }
2820
+ const enabled = params.enabled;
2821
+ if (typeof enabled === "undefined") {
2822
+ throw new OwbaseException('Missing required parameter: "enabled"');
2823
+ }
2824
+ const apiPath = "/project/policies/deny-disposable-email";
2825
+ const apiPayload = {};
2826
+ if (typeof enabled !== "undefined") {
2827
+ apiPayload["enabled"] = enabled;
2828
+ }
2829
+ const uri = new URL(this.client.config.endpoint + apiPath);
2830
+ const apiHeaders = {
2831
+ "X-Owbase-Project": this.client.config.project,
2832
+ "content-type": "application/json",
2833
+ accept: "application/json"
2834
+ };
2835
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
2836
+ }
2837
+ updateDenyFreeEmailPolicy(paramsOrFirst) {
2838
+ let params;
2839
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2840
+ params = paramsOrFirst || {};
2841
+ } else {
2842
+ params = {
2843
+ enabled: paramsOrFirst
2844
+ };
2845
+ }
2846
+ const enabled = params.enabled;
2847
+ if (typeof enabled === "undefined") {
2848
+ throw new OwbaseException('Missing required parameter: "enabled"');
2849
+ }
2850
+ const apiPath = "/project/policies/deny-free-email";
2851
+ const apiPayload = {};
2852
+ if (typeof enabled !== "undefined") {
2853
+ apiPayload["enabled"] = enabled;
2854
+ }
2855
+ const uri = new URL(this.client.config.endpoint + apiPath);
2856
+ const apiHeaders = {
2857
+ "X-Owbase-Project": this.client.config.project,
2858
+ "content-type": "application/json",
2859
+ accept: "application/json"
2860
+ };
2861
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
2862
+ }
2863
+ updateMembershipPrivacyPolicy(paramsOrFirst, ...rest) {
2864
+ let params;
2865
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2866
+ params = paramsOrFirst || {};
2867
+ } else {
2868
+ params = {
2869
+ userId: paramsOrFirst,
2870
+ userEmail: rest[0],
2871
+ userPhone: rest[1],
2872
+ userName: rest[2],
2873
+ userMFA: rest[3],
2874
+ userAccessedAt: rest[4]
2875
+ };
2876
+ }
2877
+ const userId = params.userId;
2878
+ const userEmail = params.userEmail;
2879
+ const userPhone = params.userPhone;
2880
+ const userName = params.userName;
2881
+ const userMFA = params.userMFA;
2882
+ const userAccessedAt = params.userAccessedAt;
2883
+ const apiPath = "/project/policies/membership-privacy";
2884
+ const apiPayload = {};
2885
+ if (typeof userId !== "undefined") {
2886
+ apiPayload["userId"] = userId;
2887
+ }
2888
+ if (typeof userEmail !== "undefined") {
2889
+ apiPayload["userEmail"] = userEmail;
2890
+ }
2891
+ if (typeof userPhone !== "undefined") {
2892
+ apiPayload["userPhone"] = userPhone;
2893
+ }
2894
+ if (typeof userName !== "undefined") {
2895
+ apiPayload["userName"] = userName;
2896
+ }
2897
+ if (typeof userMFA !== "undefined") {
2898
+ apiPayload["userMFA"] = userMFA;
2899
+ }
2900
+ if (typeof userAccessedAt !== "undefined") {
2901
+ apiPayload["userAccessedAt"] = userAccessedAt;
2902
+ }
2903
+ const uri = new URL(this.client.config.endpoint + apiPath);
2904
+ const apiHeaders = {
2905
+ "X-Owbase-Project": this.client.config.project,
2906
+ "content-type": "application/json",
2907
+ accept: "application/json"
2908
+ };
2909
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
2910
+ }
2911
+ updateMFAFactorsPolicy(paramsOrFirst, ...rest) {
2912
+ let params;
2913
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2914
+ params = paramsOrFirst || {};
2915
+ } else {
2916
+ params = {
2917
+ totp: paramsOrFirst,
2918
+ email: rest[0],
2919
+ phone: rest[1],
2920
+ custom: rest[2]
2921
+ };
2922
+ }
2923
+ const totp = params.totp;
2924
+ const email = params.email;
2925
+ const phone = params.phone;
2926
+ const custom = params.custom;
2927
+ const apiPath = "/project/policies/mfa-factors";
2928
+ const apiPayload = {};
2929
+ if (typeof totp !== "undefined") {
2930
+ apiPayload["totp"] = totp;
2931
+ }
2932
+ if (typeof email !== "undefined") {
2933
+ apiPayload["email"] = email;
2934
+ }
2935
+ if (typeof phone !== "undefined") {
2936
+ apiPayload["phone"] = phone;
2937
+ }
2938
+ if (typeof custom !== "undefined") {
2939
+ apiPayload["custom"] = custom;
2940
+ }
2941
+ const uri = new URL(this.client.config.endpoint + apiPath);
2942
+ const apiHeaders = {
2943
+ "X-Owbase-Project": this.client.config.project,
2944
+ "content-type": "application/json",
2945
+ accept: "application/json"
2946
+ };
2947
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
2948
+ }
2949
+ updatePasskeyPolicy(paramsOrFirst, ...rest) {
2950
+ let params;
2951
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2952
+ params = paramsOrFirst || {};
2953
+ } else {
2954
+ params = {
2955
+ rpId: paramsOrFirst,
2956
+ origins: rest[0]
2957
+ };
2958
+ }
2959
+ const rpId = params.rpId;
2960
+ const origins = params.origins;
2961
+ const apiPath = "/project/policies/passkey";
2962
+ const apiPayload = {};
2963
+ if (typeof rpId !== "undefined") {
2964
+ apiPayload["rpId"] = rpId;
2965
+ }
2966
+ if (typeof origins !== "undefined") {
2967
+ apiPayload["origins"] = origins;
2968
+ }
2969
+ const uri = new URL(this.client.config.endpoint + apiPath);
2970
+ const apiHeaders = {
2971
+ "X-Owbase-Project": this.client.config.project,
2972
+ "content-type": "application/json",
2973
+ accept: "application/json"
2974
+ };
2975
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
2976
+ }
2977
+ updatePasswordDictionaryPolicy(paramsOrFirst) {
2978
+ let params;
2979
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2980
+ params = paramsOrFirst || {};
2981
+ } else {
2982
+ params = {
2983
+ enabled: paramsOrFirst
2984
+ };
2985
+ }
2986
+ const enabled = params.enabled;
2987
+ if (typeof enabled === "undefined") {
2988
+ throw new OwbaseException('Missing required parameter: "enabled"');
2989
+ }
2990
+ const apiPath = "/project/policies/password-dictionary";
2991
+ const apiPayload = {};
2992
+ if (typeof enabled !== "undefined") {
2993
+ apiPayload["enabled"] = enabled;
2994
+ }
2995
+ const uri = new URL(this.client.config.endpoint + apiPath);
2996
+ const apiHeaders = {
2997
+ "X-Owbase-Project": this.client.config.project,
2998
+ "content-type": "application/json",
2999
+ accept: "application/json"
3000
+ };
3001
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3002
+ }
3003
+ updatePasswordHistoryPolicy(paramsOrFirst) {
3004
+ let params;
3005
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3006
+ params = paramsOrFirst || {};
3007
+ } else {
3008
+ params = {
3009
+ total: paramsOrFirst
3010
+ };
3011
+ }
3012
+ const total = params.total;
3013
+ if (typeof total === "undefined") {
3014
+ throw new OwbaseException('Missing required parameter: "total"');
3015
+ }
3016
+ const apiPath = "/project/policies/password-history";
3017
+ const apiPayload = {};
3018
+ if (typeof total !== "undefined") {
3019
+ apiPayload["total"] = total;
3020
+ }
3021
+ const uri = new URL(this.client.config.endpoint + apiPath);
3022
+ const apiHeaders = {
3023
+ "X-Owbase-Project": this.client.config.project,
3024
+ "content-type": "application/json",
3025
+ accept: "application/json"
3026
+ };
3027
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3028
+ }
3029
+ updatePasswordPersonalDataPolicy(paramsOrFirst) {
3030
+ let params;
3031
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3032
+ params = paramsOrFirst || {};
3033
+ } else {
3034
+ params = {
3035
+ enabled: paramsOrFirst
3036
+ };
3037
+ }
3038
+ const enabled = params.enabled;
3039
+ if (typeof enabled === "undefined") {
3040
+ throw new OwbaseException('Missing required parameter: "enabled"');
3041
+ }
3042
+ const apiPath = "/project/policies/password-personal-data";
3043
+ const apiPayload = {};
3044
+ if (typeof enabled !== "undefined") {
3045
+ apiPayload["enabled"] = enabled;
3046
+ }
3047
+ const uri = new URL(this.client.config.endpoint + apiPath);
3048
+ const apiHeaders = {
3049
+ "X-Owbase-Project": this.client.config.project,
3050
+ "content-type": "application/json",
3051
+ accept: "application/json"
3052
+ };
3053
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3054
+ }
3055
+ updatePasswordPwnedPolicy(paramsOrFirst, ...rest) {
3056
+ let params;
3057
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3058
+ params = paramsOrFirst || {};
3059
+ } else {
3060
+ params = {
3061
+ enabled: paramsOrFirst,
3062
+ sessions: rest[0],
3063
+ users: rest[1]
3064
+ };
3065
+ }
3066
+ const enabled = params.enabled;
3067
+ const sessions = params.sessions;
3068
+ const users = params.users;
3069
+ const apiPath = "/project/policies/password-pwned";
3070
+ const apiPayload = {};
3071
+ if (typeof enabled !== "undefined") {
3072
+ apiPayload["enabled"] = enabled;
3073
+ }
3074
+ if (typeof sessions !== "undefined") {
3075
+ apiPayload["sessions"] = sessions;
3076
+ }
3077
+ if (typeof users !== "undefined") {
3078
+ apiPayload["users"] = users;
3079
+ }
3080
+ const uri = new URL(this.client.config.endpoint + apiPath);
3081
+ const apiHeaders = {
3082
+ "X-Owbase-Project": this.client.config.project,
3083
+ "content-type": "application/json",
3084
+ accept: "application/json"
3085
+ };
3086
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3087
+ }
3088
+ updatePasswordStrengthPolicy(paramsOrFirst, ...rest) {
3089
+ let params;
3090
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3091
+ params = paramsOrFirst || {};
3092
+ } else {
3093
+ params = {
3094
+ min: paramsOrFirst,
3095
+ uppercase: rest[0],
3096
+ lowercase: rest[1],
3097
+ number: rest[2],
3098
+ symbols: rest[3]
3099
+ };
3100
+ }
3101
+ const min = params.min;
3102
+ const uppercase = params.uppercase;
3103
+ const lowercase = params.lowercase;
3104
+ const number = params.number;
3105
+ const symbols = params.symbols;
3106
+ const apiPath = "/project/policies/password-strength";
3107
+ const apiPayload = {};
3108
+ if (typeof min !== "undefined") {
3109
+ apiPayload["min"] = min;
3110
+ }
3111
+ if (typeof uppercase !== "undefined") {
3112
+ apiPayload["uppercase"] = uppercase;
3113
+ }
3114
+ if (typeof lowercase !== "undefined") {
3115
+ apiPayload["lowercase"] = lowercase;
3116
+ }
3117
+ if (typeof number !== "undefined") {
3118
+ apiPayload["number"] = number;
3119
+ }
3120
+ if (typeof symbols !== "undefined") {
3121
+ apiPayload["symbols"] = symbols;
3122
+ }
3123
+ const uri = new URL(this.client.config.endpoint + apiPath);
3124
+ const apiHeaders = {
3125
+ "X-Owbase-Project": this.client.config.project,
3126
+ "content-type": "application/json",
3127
+ accept: "application/json"
3128
+ };
3129
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3130
+ }
3131
+ updateSessionAlertPolicy(paramsOrFirst) {
3132
+ let params;
3133
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3134
+ params = paramsOrFirst || {};
3135
+ } else {
3136
+ params = {
3137
+ enabled: paramsOrFirst
3138
+ };
3139
+ }
3140
+ const enabled = params.enabled;
3141
+ if (typeof enabled === "undefined") {
3142
+ throw new OwbaseException('Missing required parameter: "enabled"');
3143
+ }
3144
+ const apiPath = "/project/policies/session-alert";
3145
+ const apiPayload = {};
3146
+ if (typeof enabled !== "undefined") {
3147
+ apiPayload["enabled"] = enabled;
3148
+ }
3149
+ const uri = new URL(this.client.config.endpoint + apiPath);
3150
+ const apiHeaders = {
3151
+ "X-Owbase-Project": this.client.config.project,
3152
+ "content-type": "application/json",
3153
+ accept: "application/json"
3154
+ };
3155
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3156
+ }
3157
+ updateSessionDurationPolicy(paramsOrFirst) {
3158
+ let params;
3159
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3160
+ params = paramsOrFirst || {};
3161
+ } else {
3162
+ params = {
3163
+ duration: paramsOrFirst
3164
+ };
3165
+ }
3166
+ const duration = params.duration;
3167
+ if (typeof duration === "undefined") {
3168
+ throw new OwbaseException('Missing required parameter: "duration"');
3169
+ }
3170
+ const apiPath = "/project/policies/session-duration";
3171
+ const apiPayload = {};
3172
+ if (typeof duration !== "undefined") {
3173
+ apiPayload["duration"] = duration;
3174
+ }
3175
+ const uri = new URL(this.client.config.endpoint + apiPath);
3176
+ const apiHeaders = {
3177
+ "X-Owbase-Project": this.client.config.project,
3178
+ "content-type": "application/json",
3179
+ accept: "application/json"
3180
+ };
3181
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3182
+ }
3183
+ updateSessionInvalidationPolicy(paramsOrFirst) {
3184
+ let params;
3185
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3186
+ params = paramsOrFirst || {};
3187
+ } else {
3188
+ params = {
3189
+ enabled: paramsOrFirst
3190
+ };
3191
+ }
3192
+ const enabled = params.enabled;
3193
+ if (typeof enabled === "undefined") {
3194
+ throw new OwbaseException('Missing required parameter: "enabled"');
3195
+ }
3196
+ const apiPath = "/project/policies/session-invalidation";
3197
+ const apiPayload = {};
3198
+ if (typeof enabled !== "undefined") {
3199
+ apiPayload["enabled"] = enabled;
3200
+ }
3201
+ const uri = new URL(this.client.config.endpoint + apiPath);
3202
+ const apiHeaders = {
3203
+ "X-Owbase-Project": this.client.config.project,
3204
+ "content-type": "application/json",
3205
+ accept: "application/json"
3206
+ };
3207
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3208
+ }
3209
+ updateSessionLimitPolicy(paramsOrFirst) {
3210
+ let params;
3211
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3212
+ params = paramsOrFirst || {};
3213
+ } else {
3214
+ params = {
3215
+ total: paramsOrFirst
3216
+ };
3217
+ }
3218
+ const total = params.total;
3219
+ if (typeof total === "undefined") {
3220
+ throw new OwbaseException('Missing required parameter: "total"');
3221
+ }
3222
+ const apiPath = "/project/policies/session-limit";
3223
+ const apiPayload = {};
3224
+ if (typeof total !== "undefined") {
3225
+ apiPayload["total"] = total;
3226
+ }
3227
+ const uri = new URL(this.client.config.endpoint + apiPath);
3228
+ const apiHeaders = {
3229
+ "X-Owbase-Project": this.client.config.project,
3230
+ "content-type": "application/json",
3231
+ accept: "application/json"
3232
+ };
3233
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3234
+ }
3235
+ updateUserLimitPolicy(paramsOrFirst) {
3236
+ let params;
3237
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3238
+ params = paramsOrFirst || {};
3239
+ } else {
3240
+ params = {
3241
+ total: paramsOrFirst
3242
+ };
3243
+ }
3244
+ const total = params.total;
3245
+ if (typeof total === "undefined") {
3246
+ throw new OwbaseException('Missing required parameter: "total"');
3247
+ }
3248
+ const apiPath = "/project/policies/user-limit";
3249
+ const apiPayload = {};
3250
+ if (typeof total !== "undefined") {
3251
+ apiPayload["total"] = total;
3252
+ }
3253
+ const uri = new URL(this.client.config.endpoint + apiPath);
3254
+ const apiHeaders = {
3255
+ "X-Owbase-Project": this.client.config.project,
3256
+ "content-type": "application/json",
3257
+ accept: "application/json"
3258
+ };
3259
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3260
+ }
3261
+ getPolicy(paramsOrFirst) {
3262
+ let params;
3263
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst) && "policyId" in paramsOrFirst) {
3264
+ params = paramsOrFirst || {};
3265
+ } else {
3266
+ params = {
3267
+ policyId: paramsOrFirst
3268
+ };
3269
+ }
3270
+ const policyId = params.policyId;
3271
+ if (typeof policyId === "undefined") {
3272
+ throw new OwbaseException('Missing required parameter: "policyId"');
3273
+ }
3274
+ const apiPath = "/project/policies/{policyId}".replace(
3275
+ "{policyId}",
3276
+ encodeURIComponent(String(policyId))
3277
+ );
3278
+ const apiPayload = {};
3279
+ const uri = new URL(this.client.config.endpoint + apiPath);
3280
+ const apiHeaders = {
3281
+ "X-Owbase-Project": this.client.config.project,
3282
+ accept: "application/json"
3283
+ };
3284
+ return this.client.call("get", uri, apiHeaders, apiPayload);
3285
+ }
3286
+ updateProtocol(paramsOrFirst, ...rest) {
3287
+ let params;
3288
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst) && ("protocolId" in paramsOrFirst || "enabled" in paramsOrFirst)) {
3289
+ params = paramsOrFirst || {};
3290
+ } else {
3291
+ params = {
3292
+ protocolId: paramsOrFirst,
3293
+ enabled: rest[0]
3294
+ };
3295
+ }
3296
+ const protocolId = params.protocolId;
3297
+ const enabled = params.enabled;
3298
+ if (typeof protocolId === "undefined") {
3299
+ throw new OwbaseException(
3300
+ 'Missing required parameter: "protocolId"'
3301
+ );
3302
+ }
3303
+ if (typeof enabled === "undefined") {
3304
+ throw new OwbaseException('Missing required parameter: "enabled"');
3305
+ }
3306
+ const apiPath = "/project/protocols/{protocolId}".replace(
3307
+ "{protocolId}",
3308
+ encodeURIComponent(String(protocolId))
3309
+ );
3310
+ const apiPayload = {};
3311
+ if (typeof enabled !== "undefined") {
3312
+ apiPayload["enabled"] = enabled;
3313
+ }
3314
+ const uri = new URL(this.client.config.endpoint + apiPath);
3315
+ const apiHeaders = {
3316
+ "X-Owbase-Project": this.client.config.project,
3317
+ "content-type": "application/json",
3318
+ accept: "application/json"
3319
+ };
3320
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3321
+ }
3322
+ updateService(paramsOrFirst, ...rest) {
3323
+ let params;
3324
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst) && ("serviceId" in paramsOrFirst || "enabled" in paramsOrFirst)) {
3325
+ params = paramsOrFirst || {};
3326
+ } else {
3327
+ params = {
3328
+ serviceId: paramsOrFirst,
3329
+ enabled: rest[0]
3330
+ };
3331
+ }
3332
+ const serviceId = params.serviceId;
3333
+ const enabled = params.enabled;
3334
+ if (typeof serviceId === "undefined") {
3335
+ throw new OwbaseException(
3336
+ 'Missing required parameter: "serviceId"'
3337
+ );
3338
+ }
3339
+ if (typeof enabled === "undefined") {
3340
+ throw new OwbaseException('Missing required parameter: "enabled"');
3341
+ }
3342
+ const apiPath = "/project/services/{serviceId}".replace(
3343
+ "{serviceId}",
3344
+ encodeURIComponent(String(serviceId))
3345
+ );
3346
+ const apiPayload = {};
3347
+ if (typeof enabled !== "undefined") {
3348
+ apiPayload["enabled"] = enabled;
3349
+ }
3350
+ const uri = new URL(this.client.config.endpoint + apiPath);
3351
+ const apiHeaders = {
3352
+ "X-Owbase-Project": this.client.config.project,
3353
+ "content-type": "application/json",
3354
+ accept: "application/json"
3355
+ };
3356
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3357
+ }
3358
+ updateSMTP(paramsOrFirst, ...rest) {
3359
+ let params;
3360
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3361
+ params = paramsOrFirst || {};
3362
+ } else {
3363
+ params = {
3364
+ host: paramsOrFirst,
3365
+ port: rest[0],
3366
+ username: rest[1],
3367
+ password: rest[2],
3368
+ senderEmail: rest[3],
3369
+ senderName: rest[4],
3370
+ replyToEmail: rest[5],
3371
+ replyToName: rest[6],
3372
+ secure: rest[7],
3373
+ enabled: rest[8]
3374
+ };
3375
+ }
3376
+ const host = params.host;
3377
+ const port = params.port;
3378
+ const username = params.username;
3379
+ const password = params.password;
3380
+ const senderEmail = params.senderEmail;
3381
+ const senderName = params.senderName;
3382
+ const replyToEmail = params.replyToEmail;
3383
+ const replyToName = params.replyToName;
3384
+ const secure = params.secure;
3385
+ const enabled = params.enabled;
3386
+ const apiPath = "/project/smtp";
3387
+ const apiPayload = {};
3388
+ if (typeof host !== "undefined") {
3389
+ apiPayload["host"] = host;
3390
+ }
3391
+ if (typeof port !== "undefined") {
3392
+ apiPayload["port"] = port;
3393
+ }
3394
+ if (typeof username !== "undefined") {
3395
+ apiPayload["username"] = username;
3396
+ }
3397
+ if (typeof password !== "undefined") {
3398
+ apiPayload["password"] = password;
3399
+ }
3400
+ if (typeof senderEmail !== "undefined") {
3401
+ apiPayload["senderEmail"] = senderEmail;
3402
+ }
3403
+ if (typeof senderName !== "undefined") {
3404
+ apiPayload["senderName"] = senderName;
3405
+ }
3406
+ if (typeof replyToEmail !== "undefined") {
3407
+ apiPayload["replyToEmail"] = replyToEmail;
3408
+ }
3409
+ if (typeof replyToName !== "undefined") {
3410
+ apiPayload["replyToName"] = replyToName;
3411
+ }
3412
+ if (typeof secure !== "undefined") {
3413
+ apiPayload["secure"] = secure;
3414
+ }
3415
+ if (typeof enabled !== "undefined") {
3416
+ apiPayload["enabled"] = enabled;
3417
+ }
3418
+ const uri = new URL(this.client.config.endpoint + apiPath);
3419
+ const apiHeaders = {
3420
+ "X-Owbase-Project": this.client.config.project,
3421
+ "content-type": "application/json",
3422
+ accept: "application/json"
3423
+ };
3424
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3425
+ }
3426
+ createSMTPTest(paramsOrFirst) {
3427
+ let params;
3428
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3429
+ params = paramsOrFirst || {};
3430
+ } else {
3431
+ params = {
3432
+ emails: paramsOrFirst
3433
+ };
3434
+ }
3435
+ const emails = params.emails;
3436
+ if (typeof emails === "undefined") {
3437
+ throw new OwbaseException('Missing required parameter: "emails"');
3438
+ }
3439
+ const apiPath = "/project/smtp/tests";
3440
+ const apiPayload = {};
3441
+ if (typeof emails !== "undefined") {
3442
+ apiPayload["emails"] = emails;
3443
+ }
3444
+ const uri = new URL(this.client.config.endpoint + apiPath);
3445
+ const apiHeaders = {
3446
+ "X-Owbase-Project": this.client.config.project,
3447
+ "content-type": "application/json",
3448
+ accept: "application/json"
3449
+ };
3450
+ return this.client.call("post", uri, apiHeaders, apiPayload);
3451
+ }
3452
+ listEmailTemplates(paramsOrFirst, ...rest) {
3453
+ let params;
3454
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3455
+ params = paramsOrFirst || {};
3456
+ } else {
3457
+ params = {
3458
+ queries: paramsOrFirst,
3459
+ total: rest[0]
3460
+ };
3461
+ }
3462
+ const queries = params.queries;
3463
+ const total = params.total;
3464
+ const apiPath = "/project/templates/email";
3465
+ const apiPayload = {};
3466
+ if (typeof queries !== "undefined") {
3467
+ apiPayload["queries"] = queries;
3468
+ }
3469
+ if (typeof total !== "undefined") {
3470
+ apiPayload["total"] = total;
3471
+ }
3472
+ const uri = new URL(this.client.config.endpoint + apiPath);
3473
+ const apiHeaders = {
3474
+ "X-Owbase-Project": this.client.config.project,
3475
+ accept: "application/json"
3476
+ };
3477
+ return this.client.call("get", uri, apiHeaders, apiPayload);
3478
+ }
3479
+ updateEmailTemplate(paramsOrFirst, ...rest) {
3480
+ let params;
3481
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst) && ("templateId" in paramsOrFirst || "locale" in paramsOrFirst || "subject" in paramsOrFirst || "message" in paramsOrFirst || "senderName" in paramsOrFirst || "senderEmail" in paramsOrFirst || "replyToEmail" in paramsOrFirst || "replyToName" in paramsOrFirst)) {
3482
+ params = paramsOrFirst || {};
3483
+ } else {
3484
+ params = {
3485
+ templateId: paramsOrFirst,
3486
+ locale: rest[0],
3487
+ subject: rest[1],
3488
+ message: rest[2],
3489
+ senderName: rest[3],
3490
+ senderEmail: rest[4],
3491
+ replyToEmail: rest[5],
3492
+ replyToName: rest[6]
3493
+ };
3494
+ }
3495
+ const templateId = params.templateId;
3496
+ const locale = params.locale;
3497
+ const subject = params.subject;
3498
+ const message = params.message;
3499
+ const senderName = params.senderName;
3500
+ const senderEmail = params.senderEmail;
3501
+ const replyToEmail = params.replyToEmail;
3502
+ const replyToName = params.replyToName;
3503
+ if (typeof templateId === "undefined") {
3504
+ throw new OwbaseException(
3505
+ 'Missing required parameter: "templateId"'
3506
+ );
3507
+ }
3508
+ const apiPath = "/project/templates/email";
3509
+ const apiPayload = {};
3510
+ if (typeof templateId !== "undefined") {
3511
+ apiPayload["templateId"] = templateId;
3512
+ }
3513
+ if (typeof locale !== "undefined") {
3514
+ apiPayload["locale"] = locale;
3515
+ }
3516
+ if (typeof subject !== "undefined") {
3517
+ apiPayload["subject"] = subject;
3518
+ }
3519
+ if (typeof message !== "undefined") {
3520
+ apiPayload["message"] = message;
3521
+ }
3522
+ if (typeof senderName !== "undefined") {
3523
+ apiPayload["senderName"] = senderName;
3524
+ }
3525
+ if (typeof senderEmail !== "undefined") {
3526
+ apiPayload["senderEmail"] = senderEmail;
3527
+ }
3528
+ if (typeof replyToEmail !== "undefined") {
3529
+ apiPayload["replyToEmail"] = replyToEmail;
3530
+ }
3531
+ if (typeof replyToName !== "undefined") {
3532
+ apiPayload["replyToName"] = replyToName;
3533
+ }
3534
+ const uri = new URL(this.client.config.endpoint + apiPath);
3535
+ const apiHeaders = {
3536
+ "X-Owbase-Project": this.client.config.project,
3537
+ "content-type": "application/json",
3538
+ accept: "application/json"
3539
+ };
3540
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3541
+ }
3542
+ getEmailTemplate(paramsOrFirst, ...rest) {
3543
+ let params;
3544
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst) && ("templateId" in paramsOrFirst || "locale" in paramsOrFirst)) {
3545
+ params = paramsOrFirst || {};
3546
+ } else {
3547
+ params = {
3548
+ templateId: paramsOrFirst,
3549
+ locale: rest[0]
3550
+ };
3551
+ }
3552
+ const templateId = params.templateId;
3553
+ const locale = params.locale;
3554
+ if (typeof templateId === "undefined") {
3555
+ throw new OwbaseException(
3556
+ 'Missing required parameter: "templateId"'
3557
+ );
3558
+ }
3559
+ const apiPath = "/project/templates/email/{templateId}".replace(
3560
+ "{templateId}",
3561
+ encodeURIComponent(String(templateId))
3562
+ );
3563
+ const apiPayload = {};
3564
+ if (typeof locale !== "undefined") {
3565
+ apiPayload["locale"] = locale;
3566
+ }
3567
+ const uri = new URL(this.client.config.endpoint + apiPath);
3568
+ const apiHeaders = {
3569
+ "X-Owbase-Project": this.client.config.project,
3570
+ accept: "application/json"
3571
+ };
3572
+ return this.client.call("get", uri, apiHeaders, apiPayload);
3573
+ }
3574
+ listVariables(paramsOrFirst, ...rest) {
3575
+ let params;
3576
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3577
+ params = paramsOrFirst || {};
3578
+ } else {
3579
+ params = {
3580
+ queries: paramsOrFirst,
3581
+ total: rest[0]
3582
+ };
3583
+ }
3584
+ const queries = params.queries;
3585
+ const total = params.total;
3586
+ const apiPath = "/project/variables";
3587
+ const apiPayload = {};
3588
+ if (typeof queries !== "undefined") {
3589
+ apiPayload["queries"] = queries;
3590
+ }
3591
+ if (typeof total !== "undefined") {
3592
+ apiPayload["total"] = total;
3593
+ }
3594
+ const uri = new URL(this.client.config.endpoint + apiPath);
3595
+ const apiHeaders = {
3596
+ "X-Owbase-Project": this.client.config.project,
3597
+ accept: "application/json"
3598
+ };
3599
+ return this.client.call("get", uri, apiHeaders, apiPayload);
3600
+ }
3601
+ createVariable(paramsOrFirst, ...rest) {
3602
+ let params;
3603
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3604
+ params = paramsOrFirst || {};
3605
+ } else {
3606
+ params = {
3607
+ variableId: paramsOrFirst,
3608
+ key: rest[0],
3609
+ value: rest[1],
3610
+ secret: rest[2]
3611
+ };
3612
+ }
3613
+ const variableId = params.variableId;
3614
+ const key = params.key;
3615
+ const value = params.value;
3616
+ const secret = params.secret;
3617
+ if (typeof variableId === "undefined") {
3618
+ throw new OwbaseException(
3619
+ 'Missing required parameter: "variableId"'
3620
+ );
3621
+ }
3622
+ if (typeof key === "undefined") {
3623
+ throw new OwbaseException('Missing required parameter: "key"');
3624
+ }
3625
+ if (typeof value === "undefined") {
3626
+ throw new OwbaseException('Missing required parameter: "value"');
3627
+ }
3628
+ const apiPath = "/project/variables";
3629
+ const apiPayload = {};
3630
+ if (typeof variableId !== "undefined") {
3631
+ apiPayload["variableId"] = variableId;
3632
+ }
3633
+ if (typeof key !== "undefined") {
3634
+ apiPayload["key"] = key;
3635
+ }
3636
+ if (typeof value !== "undefined") {
3637
+ apiPayload["value"] = value;
3638
+ }
3639
+ if (typeof secret !== "undefined") {
3640
+ apiPayload["secret"] = secret;
3641
+ }
3642
+ const uri = new URL(this.client.config.endpoint + apiPath);
3643
+ const apiHeaders = {
3644
+ "X-Owbase-Project": this.client.config.project,
3645
+ "content-type": "application/json",
3646
+ accept: "application/json"
3647
+ };
3648
+ return this.client.call("post", uri, apiHeaders, apiPayload);
3649
+ }
3650
+ getVariable(paramsOrFirst) {
3651
+ let params;
3652
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3653
+ params = paramsOrFirst || {};
3654
+ } else {
3655
+ params = {
3656
+ variableId: paramsOrFirst
3657
+ };
3658
+ }
3659
+ const variableId = params.variableId;
3660
+ if (typeof variableId === "undefined" || variableId === "") {
3661
+ throw new OwbaseException(
3662
+ 'Missing required parameter: "variableId"'
3663
+ );
3664
+ }
3665
+ const apiPath = "/project/variables/{variableId}".replace(
3666
+ "{variableId}",
3667
+ encodeURIComponent(String(variableId))
3668
+ );
3669
+ const apiPayload = {};
3670
+ const uri = new URL(this.client.config.endpoint + apiPath);
3671
+ const apiHeaders = {
3672
+ "X-Owbase-Project": this.client.config.project,
3673
+ accept: "application/json"
3674
+ };
3675
+ return this.client.call("get", uri, apiHeaders, apiPayload);
3676
+ }
3677
+ updateVariable(paramsOrFirst, ...rest) {
3678
+ let params;
3679
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3680
+ params = paramsOrFirst || {};
3681
+ } else {
3682
+ params = {
3683
+ variableId: paramsOrFirst,
3684
+ key: rest[0],
3685
+ value: rest[1],
3686
+ secret: rest[2]
3687
+ };
3688
+ }
3689
+ const variableId = params.variableId;
3690
+ const key = params.key;
3691
+ const value = params.value;
3692
+ const secret = params.secret;
3693
+ if (typeof variableId === "undefined" || variableId === "") {
3694
+ throw new OwbaseException(
3695
+ 'Missing required parameter: "variableId"'
3696
+ );
3697
+ }
3698
+ const apiPath = "/project/variables/{variableId}".replace(
3699
+ "{variableId}",
3700
+ encodeURIComponent(String(variableId))
3701
+ );
3702
+ const apiPayload = {};
3703
+ if (typeof key !== "undefined") {
3704
+ apiPayload["key"] = key;
3705
+ }
3706
+ if (typeof value !== "undefined") {
3707
+ apiPayload["value"] = value;
3708
+ }
3709
+ if (typeof secret !== "undefined") {
3710
+ apiPayload["secret"] = secret;
3711
+ }
3712
+ const uri = new URL(this.client.config.endpoint + apiPath);
3713
+ const apiHeaders = {
3714
+ "X-Owbase-Project": this.client.config.project,
3715
+ "content-type": "application/json",
3716
+ accept: "application/json"
3717
+ };
3718
+ return this.client.call("put", uri, apiHeaders, apiPayload);
3719
+ }
3720
+ deleteVariable(paramsOrFirst) {
3721
+ let params;
3722
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3723
+ params = paramsOrFirst || {};
3724
+ } else {
3725
+ params = {
3726
+ variableId: paramsOrFirst
3727
+ };
3728
+ }
3729
+ const variableId = params.variableId;
3730
+ if (typeof variableId === "undefined" || variableId === "") {
3731
+ throw new OwbaseException(
3732
+ 'Missing required parameter: "variableId"'
3733
+ );
3734
+ }
3735
+ const apiPath = "/project/variables/{variableId}".replace(
3736
+ "{variableId}",
3737
+ encodeURIComponent(String(variableId))
3738
+ );
3739
+ const apiPayload = {};
3740
+ const uri = new URL(this.client.config.endpoint + apiPath);
3741
+ const apiHeaders = {
3742
+ "X-Owbase-Project": this.client.config.project,
3743
+ "content-type": "application/json",
3744
+ accept: "application/json"
3745
+ };
3746
+ return this.client.call("delete", uri, apiHeaders, apiPayload);
3747
+ }
3748
+ };
3749
+
3750
+ export { Project };
3751
+ //# sourceMappingURL=project.mjs.map
3752
+ //# sourceMappingURL=project.mjs.map