hcloud-sdk 16.0.0 → 18.0.0

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 (291) hide show
  1. package/changelog.md +178 -51
  2. package/lib/Base.d.ts +2 -1
  3. package/lib/Hcloud.d.ts +6 -0
  4. package/lib/Hcloud.js +18 -0
  5. package/lib/helper/ValidationHelper.d.ts +74 -0
  6. package/lib/helper/ValidationHelper.js +360 -0
  7. package/lib/interfaces/auditor/index.d.ts +17 -2
  8. package/lib/interfaces/auditor/index.js +12 -0
  9. package/lib/interfaces/cosmo/asset/index.d.ts +185 -0
  10. package/lib/interfaces/cosmo/asset/index.js +82 -0
  11. package/lib/interfaces/cosmo/comment/index.d.ts +38 -0
  12. package/lib/interfaces/cosmo/comment/index.js +8 -0
  13. package/lib/interfaces/cosmo/event/index.d.ts +31 -0
  14. package/lib/interfaces/cosmo/event/index.js +17 -0
  15. package/lib/interfaces/cosmo/location/index.d.ts +4 -0
  16. package/lib/interfaces/cosmo/location/index.js +2 -0
  17. package/lib/interfaces/cosmo/namespace/index.d.ts +9 -0
  18. package/lib/interfaces/cosmo/namespace/index.js +9 -0
  19. package/lib/interfaces/cosmo/permissions.d.ts +96 -0
  20. package/lib/interfaces/cosmo/permissions.js +58 -0
  21. package/lib/interfaces/cosmo/share/index.d.ts +28 -0
  22. package/lib/interfaces/cosmo/share/index.js +2 -0
  23. package/lib/interfaces/cosmo/space/index.d.ts +25 -0
  24. package/lib/interfaces/cosmo/space/index.js +2 -0
  25. package/lib/interfaces/cosmo/tag/tag.d.ts +12 -0
  26. package/lib/interfaces/cosmo/tag/tag.js +2 -0
  27. package/lib/interfaces/frontend/config/index.d.ts +1 -0
  28. package/lib/interfaces/fuse/space/index.d.ts +1 -0
  29. package/lib/interfaces/global/Products.d.ts +3 -1
  30. package/lib/interfaces/global/Products.js +2 -0
  31. package/lib/interfaces/global/Views.d.ts +2 -1
  32. package/lib/interfaces/global/Views.js +1 -0
  33. package/lib/interfaces/high5/execution/index.d.ts +23 -2
  34. package/lib/interfaces/high5/execution/index.js +2 -0
  35. package/lib/interfaces/high5/index.d.ts +7 -7
  36. package/lib/interfaces/high5/index.js +7 -7
  37. package/lib/interfaces/high5/space/database/document/index.d.ts +34 -0
  38. package/lib/interfaces/high5/space/database/document/index.js +14 -0
  39. package/lib/interfaces/high5/space/database/index.d.ts +12 -0
  40. package/lib/interfaces/high5/space/database/index.js +2 -0
  41. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +9 -2
  42. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +10 -2
  43. package/lib/interfaces/high5/space/event/stream/node/index.js +6 -1
  44. package/lib/interfaces/high5/space/execution/index.d.ts +56 -2
  45. package/lib/interfaces/high5/space/execution/index.js +8 -0
  46. package/lib/interfaces/high5/space/index.d.ts +2 -0
  47. package/lib/interfaces/high5/space/job/JobLog.d.ts +16 -0
  48. package/lib/interfaces/high5/space/job/JobLog.js +2 -0
  49. package/lib/interfaces/high5/space/job/index.d.ts +38 -0
  50. package/lib/interfaces/high5/space/job/index.js +8 -0
  51. package/lib/interfaces/high5/space/pool/index.d.ts +5 -7
  52. package/lib/interfaces/high5/space/pool/index.js +0 -7
  53. package/lib/interfaces/high5/space/webhook/index.d.ts +3 -1
  54. package/lib/interfaces/high5/stats.d.ts +21 -0
  55. package/lib/interfaces/high5/stats.js +2 -0
  56. package/lib/interfaces/high5/wave/index.d.ts +8 -3
  57. package/lib/interfaces/idp/index.d.ts +1 -0
  58. package/lib/interfaces/idp/index.js +1 -0
  59. package/lib/interfaces/idp/oauth/index.d.ts +4 -3
  60. package/lib/interfaces/idp/organization/index.d.ts +1 -0
  61. package/lib/interfaces/idp/organization/index.js +1 -0
  62. package/lib/interfaces/idp/organization/license/index.d.ts +13 -0
  63. package/lib/interfaces/idp/organization/member/index.d.ts +2 -0
  64. package/lib/interfaces/idp/organization/service-accounts.d.ts +8 -0
  65. package/lib/interfaces/idp/organization/service-accounts.js +2 -0
  66. package/lib/interfaces/idp/organization/stats.d.ts +7 -0
  67. package/lib/interfaces/idp/organization/stats.js +2 -0
  68. package/lib/interfaces/idp/organization/team/index.d.ts +0 -1
  69. package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
  70. package/lib/interfaces/idp/user/GeneralSettings.js +1 -0
  71. package/lib/interfaces/idp/user/Message.d.ts +21 -0
  72. package/lib/interfaces/idp/user/Message.js +14 -0
  73. package/lib/interfaces/idp/user/NotificationSettings.d.ts +1 -0
  74. package/lib/interfaces/idp/user/Scopes.d.ts +8 -2
  75. package/lib/interfaces/idp/user/Scopes.js +9 -0
  76. package/lib/interfaces/idp/user/index.d.ts +2 -1
  77. package/lib/interfaces/mailer/index.d.ts +30 -1
  78. package/lib/interfaces/mailer/index.js +87 -1
  79. package/lib/interfaces/mothership/index.d.ts +3 -1
  80. package/lib/interfaces/mothership/index.js +15 -0
  81. package/lib/interfaces/mothership/stats.d.ts +4 -0
  82. package/lib/interfaces/mothership/stats.js +2 -0
  83. package/lib/interfaces/nats/index.d.ts +98 -9
  84. package/lib/interfaces/nats/index.js +136 -19
  85. package/lib/interfaces/shorts/index.d.ts +10 -0
  86. package/lib/interfaces/shorts/index.js +2 -0
  87. package/lib/service/agent/bundle/dev/index.d.ts +16 -6
  88. package/lib/service/agent/bundle/dev/index.js +12 -10
  89. package/lib/service/agent/bundle/index.d.ts +10 -4
  90. package/lib/service/agent/bundle/index.js +6 -6
  91. package/lib/service/agent/context/index.d.ts +26 -7
  92. package/lib/service/agent/context/index.js +27 -12
  93. package/lib/service/auditor/index.d.ts +8 -4
  94. package/lib/service/auditor/index.js +5 -5
  95. package/lib/service/auditor/internal/index.d.ts +27 -3
  96. package/lib/service/auditor/internal/index.js +34 -5
  97. package/lib/service/bouncer/features/index.d.ts +4 -2
  98. package/lib/service/bouncer/features/index.js +2 -2
  99. package/lib/service/cosmo/asset/index.d.ts +219 -0
  100. package/lib/service/cosmo/asset/index.js +314 -0
  101. package/lib/service/cosmo/comment/index.d.ts +122 -0
  102. package/lib/service/cosmo/comment/index.js +161 -0
  103. package/lib/service/cosmo/event/index.d.ts +23 -0
  104. package/lib/service/cosmo/event/index.js +40 -0
  105. package/lib/service/cosmo/folder/index.d.ts +27 -0
  106. package/lib/service/cosmo/folder/index.js +47 -0
  107. package/lib/service/cosmo/index.d.ts +49 -0
  108. package/lib/service/cosmo/index.js +119 -0
  109. package/lib/service/cosmo/internal/index.d.ts +7 -0
  110. package/lib/service/cosmo/internal/index.js +17 -0
  111. package/lib/service/cosmo/internal/space/index.d.ts +15 -0
  112. package/lib/service/cosmo/internal/space/index.js +34 -0
  113. package/lib/service/cosmo/location/index.d.ts +40 -0
  114. package/lib/service/cosmo/location/index.js +63 -0
  115. package/lib/service/cosmo/namespace/index.d.ts +42 -0
  116. package/lib/service/cosmo/namespace/index.js +65 -0
  117. package/lib/service/cosmo/organization/index.d.ts +47 -0
  118. package/lib/service/cosmo/organization/index.js +64 -0
  119. package/lib/service/cosmo/permissions/index.d.ts +131 -0
  120. package/lib/service/cosmo/permissions/index.js +181 -0
  121. package/lib/service/cosmo/production/index.d.ts +26 -0
  122. package/lib/service/cosmo/production/index.js +45 -0
  123. package/lib/service/cosmo/share/index.d.ts +161 -0
  124. package/lib/service/cosmo/share/index.js +215 -0
  125. package/lib/service/cosmo/space/index.d.ts +104 -0
  126. package/lib/service/cosmo/space/index.js +146 -0
  127. package/lib/service/cosmo/tag/index.d.ts +67 -0
  128. package/lib/service/cosmo/tag/index.js +93 -0
  129. package/lib/service/dali/DaliAvatar.d.ts +12 -0
  130. package/lib/service/dali/DaliAvatar.js +20 -0
  131. package/lib/service/dali/avatar/DaliCosmoSpace.d.ts +32 -0
  132. package/lib/service/dali/avatar/DaliCosmoSpace.js +59 -0
  133. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +10 -4
  134. package/lib/service/dali/avatar/DaliFuseSpace.js +7 -6
  135. package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +10 -4
  136. package/lib/service/dali/avatar/DaliHigh5Pool.js +7 -6
  137. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +10 -4
  138. package/lib/service/dali/avatar/DaliHigh5Space.js +7 -6
  139. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +10 -4
  140. package/lib/service/dali/avatar/DaliOAuthApp.js +7 -6
  141. package/lib/service/dali/avatar/DaliOrganization.d.ts +10 -4
  142. package/lib/service/dali/avatar/DaliOrganization.js +7 -6
  143. package/lib/service/dali/avatar/DaliServiceAccount.d.ts +32 -0
  144. package/lib/service/dali/avatar/DaliServiceAccount.js +59 -0
  145. package/lib/service/dali/avatar/DaliTeam.d.ts +10 -4
  146. package/lib/service/dali/avatar/DaliTeam.js +7 -6
  147. package/lib/service/dali/avatar/DaliUser.d.ts +10 -4
  148. package/lib/service/dali/avatar/DaliUser.js +7 -6
  149. package/lib/service/dali/index.d.ts +4 -5
  150. package/lib/service/dali/index.js +2 -5
  151. package/lib/service/fuse/index.d.ts +4 -2
  152. package/lib/service/fuse/index.js +2 -2
  153. package/lib/service/fuse/internal/index.d.ts +4 -2
  154. package/lib/service/fuse/internal/index.js +3 -2
  155. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +4 -2
  156. package/lib/service/fuse/internal/space/cronjob/log/index.js +2 -2
  157. package/lib/service/fuse/internal/space/index.d.ts +7 -3
  158. package/lib/service/fuse/internal/space/index.js +6 -4
  159. package/lib/service/fuse/space/cronjob/index.d.ts +35 -13
  160. package/lib/service/fuse/space/cronjob/index.js +48 -50
  161. package/lib/service/fuse/space/cronjob/log/index.d.ts +8 -4
  162. package/lib/service/fuse/space/cronjob/log/index.js +5 -5
  163. package/lib/service/fuse/space/index.d.ts +27 -11
  164. package/lib/service/fuse/space/index.js +19 -18
  165. package/lib/service/high5/execution/index.d.ts +4 -2
  166. package/lib/service/high5/execution/index.js +3 -2
  167. package/lib/service/high5/execution/status/index.d.ts +5 -3
  168. package/lib/service/high5/execution/status/index.js +3 -3
  169. package/lib/service/high5/index.d.ts +7 -2
  170. package/lib/service/high5/index.js +9 -2
  171. package/lib/service/high5/internal/index.d.ts +4 -2
  172. package/lib/service/high5/internal/index.js +3 -2
  173. package/lib/service/high5/internal/space/index.d.ts +10 -3
  174. package/lib/service/high5/internal/space/index.js +13 -4
  175. package/lib/service/high5/internal/space/job/index.d.ts +7 -0
  176. package/lib/service/high5/internal/space/job/index.js +17 -0
  177. package/lib/service/high5/internal/space/job/log/index.d.ts +17 -0
  178. package/lib/service/high5/internal/space/job/log/index.js +34 -0
  179. package/lib/service/high5/joinToken/index.d.ts +14 -6
  180. package/lib/service/high5/joinToken/index.js +10 -9
  181. package/lib/service/high5/space/database/document/array/index.d.ts +73 -0
  182. package/lib/service/high5/space/database/document/array/index.js +102 -0
  183. package/lib/service/high5/space/database/document/index.d.ts +74 -0
  184. package/lib/service/high5/space/database/document/index.js +112 -0
  185. package/lib/service/high5/space/database/document/number/index.d.ts +51 -0
  186. package/lib/service/high5/space/database/document/number/index.js +77 -0
  187. package/lib/service/high5/space/database/index.d.ts +65 -0
  188. package/lib/service/high5/space/database/index.js +102 -0
  189. package/lib/service/high5/space/event/index.d.ts +17 -7
  190. package/lib/service/high5/space/event/index.js +12 -11
  191. package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +4 -2
  192. package/lib/service/high5/space/event/stream/design/DesignOperations.js +5 -3
  193. package/lib/service/high5/space/event/stream/design/index.d.ts +10 -4
  194. package/lib/service/high5/space/event/stream/design/index.js +7 -6
  195. package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +16 -6
  196. package/lib/service/high5/space/event/stream/design/snapshot/index.js +12 -10
  197. package/lib/service/high5/space/event/stream/index.d.ts +32 -12
  198. package/lib/service/high5/space/event/stream/index.js +22 -21
  199. package/lib/service/high5/space/execution/index.d.ts +22 -7
  200. package/lib/service/high5/space/execution/index.js +23 -12
  201. package/lib/service/high5/space/execution/log/index.d.ts +8 -4
  202. package/lib/service/high5/space/execution/log/index.js +5 -5
  203. package/lib/service/high5/space/execution/status/index.d.ts +18 -7
  204. package/lib/service/high5/space/execution/status/index.js +20 -8
  205. package/lib/service/high5/space/index.d.ts +56 -18
  206. package/lib/service/high5/space/index.js +65 -27
  207. package/lib/service/high5/space/job/index.d.ts +145 -0
  208. package/lib/service/high5/space/job/index.js +201 -0
  209. package/lib/service/high5/space/job/log/index.d.ts +35 -0
  210. package/lib/service/high5/space/job/log/index.js +58 -0
  211. package/lib/service/high5/space/node/index.d.ts +20 -8
  212. package/lib/service/high5/space/node/index.js +14 -13
  213. package/lib/service/high5/space/pool/index.d.ts +27 -11
  214. package/lib/service/high5/space/pool/index.js +19 -18
  215. package/lib/service/high5/space/secret/index.d.ts +17 -7
  216. package/lib/service/high5/space/secret/index.js +12 -11
  217. package/lib/service/high5/space/stat/index.d.ts +12 -0
  218. package/lib/service/high5/space/stat/index.js +31 -0
  219. package/lib/service/high5/space/wave/index.d.ts +16 -6
  220. package/lib/service/high5/space/wave/index.js +11 -10
  221. package/lib/service/high5/space/webhook/index.d.ts +32 -12
  222. package/lib/service/high5/space/webhook/index.js +25 -21
  223. package/lib/service/high5/space/webhook/log/index.d.ts +4 -2
  224. package/lib/service/high5/space/webhook/log/index.js +2 -2
  225. package/lib/service/high5/stat/index.d.ts +11 -0
  226. package/lib/service/high5/stat/index.js +30 -0
  227. package/lib/service/high5/wave/s3/index.d.ts +31 -8
  228. package/lib/service/high5/wave/s3/index.js +52 -24
  229. package/lib/service/idp/guest/index.d.ts +42 -0
  230. package/lib/service/idp/guest/index.js +66 -0
  231. package/lib/service/idp/index.d.ts +25 -7
  232. package/lib/service/idp/index.js +23 -12
  233. package/lib/service/idp/internal/index.d.ts +5 -3
  234. package/lib/service/idp/internal/index.js +5 -3
  235. package/lib/service/idp/oauth/index.d.ts +16 -6
  236. package/lib/service/idp/oauth/index.js +15 -15
  237. package/lib/service/idp/organization/index.d.ts +25 -5
  238. package/lib/service/idp/organization/index.js +29 -8
  239. package/lib/service/idp/organization/license/index.d.ts +7 -3
  240. package/lib/service/idp/organization/license/index.js +4 -4
  241. package/lib/service/idp/organization/member/index.d.ts +21 -8
  242. package/lib/service/idp/organization/member/index.js +16 -13
  243. package/lib/service/idp/organization/member/invitations/index.d.ts +23 -9
  244. package/lib/service/idp/organization/member/invitations/index.js +72 -59
  245. package/lib/service/idp/organization/service-accounts/index.d.ts +76 -0
  246. package/lib/service/idp/organization/service-accounts/index.js +109 -0
  247. package/lib/service/idp/organization/settings/domain/index.d.ts +13 -5
  248. package/lib/service/idp/organization/settings/domain/index.js +9 -8
  249. package/lib/service/idp/organization/settings/domain/saml/index.d.ts +16 -6
  250. package/lib/service/idp/organization/settings/domain/saml/index.js +19 -18
  251. package/lib/service/idp/organization/settings/oauth/index.d.ts +23 -9
  252. package/lib/service/idp/organization/settings/oauth/index.js +16 -15
  253. package/lib/service/idp/organization/stat/index.d.ts +11 -0
  254. package/lib/service/idp/organization/stat/index.js +30 -0
  255. package/lib/service/idp/organization/team/index.d.ts +22 -10
  256. package/lib/service/idp/organization/team/index.js +14 -13
  257. package/lib/service/idp/registration/index.d.ts +10 -4
  258. package/lib/service/idp/registration/index.js +15 -9
  259. package/lib/service/idp/user/index.d.ts +33 -11
  260. package/lib/service/idp/user/index.js +30 -16
  261. package/lib/service/idp/user/license/index.d.ts +7 -3
  262. package/lib/service/idp/user/license/index.js +4 -4
  263. package/lib/service/idp/user/message/index.d.ts +61 -0
  264. package/lib/service/idp/user/message/index.js +92 -0
  265. package/lib/service/idp/user/password/index.d.ts +4 -2
  266. package/lib/service/idp/user/password/index.js +3 -3
  267. package/lib/service/idp/user/settings/connections/index.d.ts +4 -2
  268. package/lib/service/idp/user/settings/connections/index.js +2 -2
  269. package/lib/service/idp/user/settings/general/index.d.ts +10 -4
  270. package/lib/service/idp/user/settings/general/index.js +6 -6
  271. package/lib/service/idp/user/settings/notifications/index.d.ts +7 -3
  272. package/lib/service/idp/user/settings/notifications/index.js +4 -4
  273. package/lib/service/idp/user/settings/oauthApps/index.d.ts +7 -3
  274. package/lib/service/idp/user/settings/oauthApps/index.js +6 -5
  275. package/lib/service/idp/user/settings/pats/index.d.ts +22 -8
  276. package/lib/service/idp/user/settings/pats/index.js +17 -15
  277. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +16 -6
  278. package/lib/service/idp/user/settings/twoFactor/totp/index.js +13 -10
  279. package/lib/service/mailer/index.d.ts +4 -2
  280. package/lib/service/mailer/index.js +2 -2
  281. package/lib/service/mailer/internal/index.d.ts +13 -5
  282. package/lib/service/mailer/internal/index.js +8 -8
  283. package/lib/service/mothership/index.d.ts +35 -13
  284. package/lib/service/mothership/index.js +32 -18
  285. package/lib/service/nats/index.js +58 -44
  286. package/lib/service/shorts/index.d.ts +18 -0
  287. package/lib/service/shorts/index.js +38 -0
  288. package/lib/service/shorts/internal/index.d.ts +72 -0
  289. package/lib/service/shorts/internal/index.js +104 -0
  290. package/lib/utils/bouncer/features/Provider.js +0 -3
  291. package/package.json +22 -24
@@ -1,4 +1,4 @@
1
- import Base from "../../../../../Base";
1
+ import Base, { MaybeRaw } from "../../../../../Base";
2
2
  import { PaginatedResponse, SearchFilter, Sorting } from "../../../../../interfaces/global";
3
3
  import { OrganizationRole } from "../../../../../interfaces/idp";
4
4
  import { OrganizationMemberInvitation } from "../../../../../interfaces/idp/organization/member/invitations";
@@ -12,13 +12,15 @@ export default class IdpOrganizationMemberInvitations extends Base {
12
12
  * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
13
13
  * @returns Object containing an array of invitations and the total number of results found in the database (independent of limit and page)
14
14
  */
15
- search(params: {
15
+ search<R extends boolean = false>(params: {
16
16
  orgName: string;
17
17
  filters: SearchFilter[];
18
18
  sorting?: Sorting;
19
19
  limit?: number;
20
20
  page?: number;
21
- }): Promise<PaginatedResponse<OrganizationMemberInvitation>>;
21
+ }, raw?: {
22
+ raw: R;
23
+ }): Promise<MaybeRaw<R, PaginatedResponse<OrganizationMemberInvitation>>>;
22
24
  /**
23
25
  * Invites a User to an Organization.
24
26
  *
@@ -31,7 +33,9 @@ export default class IdpOrganizationMemberInvitations extends Base {
31
33
  * @param targetUrl Optional url the link in the mail will point to
32
34
  * @returns The created invitation
33
35
  */
34
- create(orgName: string, email: string, role: OrganizationRole, allowNonRegisteredUsers?: boolean, targetUrl?: string): Promise<OrganizationMemberInvitation>;
36
+ create<R extends boolean = false>(orgName: string, email: string, role: OrganizationRole, allowNonRegisteredUsers?: boolean, targetUrl?: string, raw?: {
37
+ raw: R;
38
+ }): Promise<MaybeRaw<R, OrganizationMemberInvitation>>;
35
39
  /**
36
40
  * Accept an invitation.
37
41
  *
@@ -41,7 +45,9 @@ export default class IdpOrganizationMemberInvitations extends Base {
41
45
  * @param invitationId ID of the invitation
42
46
  * @returns The patched invitation
43
47
  */
44
- accept: (orgName: string, invitationId: string) => Promise<OrganizationMemberInvitation>;
48
+ accept<R extends boolean = false>(orgName: string, invitationId: string, raw?: {
49
+ raw: R;
50
+ }): Promise<MaybeRaw<R, OrganizationMemberInvitation>>;
45
51
  /**
46
52
  * Reject an invitation.
47
53
  *
@@ -51,7 +57,9 @@ export default class IdpOrganizationMemberInvitations extends Base {
51
57
  * @param invitationId ID of the invitation
52
58
  * @returns The patched invitation
53
59
  */
54
- reject: (orgName: string, invitationId: string) => Promise<OrganizationMemberInvitation>;
60
+ reject<R extends boolean = false>(orgName: string, invitationId: string, raw?: {
61
+ raw: R;
62
+ }): Promise<MaybeRaw<R, OrganizationMemberInvitation>>;
55
63
  /**
56
64
  * Respond to an invitation.
57
65
  *
@@ -60,20 +68,26 @@ export default class IdpOrganizationMemberInvitations extends Base {
60
68
  * @param accept Whether or not to accept the invitation
61
69
  * @returns The patched invitation
62
70
  */
63
- respond: (orgName: string, invitationId: string, accept: boolean) => Promise<OrganizationMemberInvitation>;
71
+ respond<R extends boolean = false>(orgName: string, invitationId: string, accept: boolean, raw?: {
72
+ raw: R;
73
+ }): Promise<MaybeRaw<R, OrganizationMemberInvitation>>;
64
74
  /**
65
75
  * Resends an invitation email.
66
76
  *
67
77
  * @param orgName Name of the Organization
68
78
  * @param invitationId ID of the invitation
69
79
  */
70
- resendInvitationEmail: (orgName: string, invitationId: string) => Promise<void>;
80
+ resendInvitationEmail<R extends boolean = false>(orgName: string, invitationId: string, raw?: {
81
+ raw: R;
82
+ }): Promise<MaybeRaw<R, void>>;
71
83
  /**
72
84
  * Cancel/Delete an invitation.
73
85
  *
74
86
  * @param orgName Name of the Organization
75
87
  * @param invitationId ID of the invitation
76
88
  */
77
- delete: (orgName: string, invitationId: string) => Promise<void>;
89
+ delete<R extends boolean = false>(orgName: string, invitationId: string, raw?: {
90
+ raw: R;
91
+ }): Promise<MaybeRaw<R, void>>;
78
92
  protected getEndpoint(endpoint: string): string;
79
93
  }
@@ -13,61 +13,6 @@ const Base_1 = require("../../../../../Base");
13
13
  const paginatedResponseHelper_1 = require("../../../../../helper/paginatedResponseHelper");
14
14
  const searchFilter_1 = require("../../../../../helper/searchFilter");
15
15
  class IdpOrganizationMemberInvitations extends Base_1.default {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * Accept an invitation.
20
- *
21
- * Internally this calls respond.
22
- *
23
- * @param orgName Name of the Organization
24
- * @param invitationId ID of the invitation
25
- * @returns The patched invitation
26
- */
27
- this.accept = (orgName, invitationId) => __awaiter(this, void 0, void 0, function* () { return this.respond(orgName, invitationId, true); });
28
- /**
29
- * Reject an invitation.
30
- *
31
- * Internally this calls respond.
32
- *
33
- * @param orgName Name of the Organization
34
- * @param invitationId ID of the invitation
35
- * @returns The patched invitation
36
- */
37
- this.reject = (orgName, invitationId) => __awaiter(this, void 0, void 0, function* () { return this.respond(orgName, invitationId, false); });
38
- /**
39
- * Respond to an invitation.
40
- *
41
- * @param orgName Name of the Organization
42
- * @param invitationId ID of the invitation
43
- * @param accept Whether or not to accept the invitation
44
- * @returns The patched invitation
45
- */
46
- this.respond = (orgName, invitationId, accept) => __awaiter(this, void 0, void 0, function* () {
47
- const resp = yield this.axios.patch(this.getEndpoint(`/${orgName}/members/invitations/${invitationId}/approval`), {
48
- accept,
49
- });
50
- return resp.data;
51
- });
52
- /**
53
- * Resends an invitation email.
54
- *
55
- * @param orgName Name of the Organization
56
- * @param invitationId ID of the invitation
57
- */
58
- this.resendInvitationEmail = (orgName, invitationId) => __awaiter(this, void 0, void 0, function* () {
59
- yield this.axios.post(this.getEndpoint(`/${orgName}/members/invitations/${invitationId}/resend`));
60
- });
61
- /**
62
- * Cancel/Delete an invitation.
63
- *
64
- * @param orgName Name of the Organization
65
- * @param invitationId ID of the invitation
66
- */
67
- this.delete = (orgName, invitationId) => __awaiter(this, void 0, void 0, function* () {
68
- yield this.axios.delete(this.getEndpoint(`/${orgName}/members/invitations/${invitationId}`));
69
- });
70
- }
71
16
  /**
72
17
  * Retrieves all invitations sent out by the organization that match the provided search filter(s). Returns all invitations if no search filter is provided.
73
18
  * @param orgName Name of the organization
@@ -77,7 +22,7 @@ class IdpOrganizationMemberInvitations extends Base_1.default {
77
22
  * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
78
23
  * @returns Object containing an array of invitations and the total number of results found in the database (independent of limit and page)
79
24
  */
80
- search(params) {
25
+ search(params, raw) {
81
26
  return __awaiter(this, void 0, void 0, function* () {
82
27
  const limit = params.limit || 25;
83
28
  const page = params.page || 0;
@@ -89,7 +34,7 @@ class IdpOrganizationMemberInvitations extends Base_1.default {
89
34
  filters: filtersDTO,
90
35
  sorting: params.sorting,
91
36
  });
92
- return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
37
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? Object.assign(Object.assign({}, resp), { data: (0, paginatedResponseHelper_1.createPaginatedResponse)(resp) }) : (0, paginatedResponseHelper_1.createPaginatedResponse)(resp));
93
38
  });
94
39
  }
95
40
  /**
@@ -105,14 +50,82 @@ class IdpOrganizationMemberInvitations extends Base_1.default {
105
50
  * @returns The created invitation
106
51
  */
107
52
  create(orgName_1, email_1, role_1) {
108
- return __awaiter(this, arguments, void 0, function* (orgName, email, role, allowNonRegisteredUsers = false, targetUrl) {
53
+ return __awaiter(this, arguments, void 0, function* (orgName, email, role, allowNonRegisteredUsers = false, targetUrl, raw) {
109
54
  const resp = yield this.axios.post(this.getEndpoint(`/${orgName}/members/invitations`), {
110
55
  email,
111
56
  role,
112
57
  allowNonRegisteredUsers,
113
58
  targetUrl,
114
59
  });
115
- return resp.data;
60
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
61
+ });
62
+ }
63
+ /**
64
+ * Accept an invitation.
65
+ *
66
+ * Internally this calls respond.
67
+ *
68
+ * @param orgName Name of the Organization
69
+ * @param invitationId ID of the invitation
70
+ * @returns The patched invitation
71
+ */
72
+ accept(orgName, invitationId, raw) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ return this.respond(orgName, invitationId, true, raw);
75
+ });
76
+ }
77
+ /**
78
+ * Reject an invitation.
79
+ *
80
+ * Internally this calls respond.
81
+ *
82
+ * @param orgName Name of the Organization
83
+ * @param invitationId ID of the invitation
84
+ * @returns The patched invitation
85
+ */
86
+ reject(orgName, invitationId, raw) {
87
+ return __awaiter(this, void 0, void 0, function* () {
88
+ return this.respond(orgName, invitationId, false, raw);
89
+ });
90
+ }
91
+ /**
92
+ * Respond to an invitation.
93
+ *
94
+ * @param orgName Name of the Organization
95
+ * @param invitationId ID of the invitation
96
+ * @param accept Whether or not to accept the invitation
97
+ * @returns The patched invitation
98
+ */
99
+ respond(orgName, invitationId, accept, raw) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ const resp = yield this.axios.patch(this.getEndpoint(`/${orgName}/members/invitations/${invitationId}/approval`), {
102
+ accept,
103
+ });
104
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
105
+ });
106
+ }
107
+ /**
108
+ * Resends an invitation email.
109
+ *
110
+ * @param orgName Name of the Organization
111
+ * @param invitationId ID of the invitation
112
+ */
113
+ resendInvitationEmail(orgName, invitationId, raw) {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ const repo = yield this.axios.post(this.getEndpoint(`/${orgName}/members/invitations/${invitationId}/resend`));
116
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? repo : repo.data);
117
+ });
118
+ }
119
+ /**
120
+ * Cancel/Delete an invitation.
121
+ *
122
+ * @param orgName Name of the Organization
123
+ * @param invitationId ID of the invitation
124
+ */
125
+ delete(orgName, invitationId, raw) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ const repo = yield this.axios.delete(this.getEndpoint(`/${orgName}/members/invitations/${invitationId}`));
128
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? repo : repo.data);
116
129
  });
117
130
  }
118
131
  getEndpoint(endpoint) {
@@ -0,0 +1,76 @@
1
+ import Base, { MaybeRaw } from "../../../../Base";
2
+ import { PaginatedResponse, SearchFilter, Sorting } from "../../../../interfaces/global";
3
+ import { ServiceAccount, ServiceAccountNoToken } from "../../../../interfaces/idp/organization/service-accounts";
4
+ export default class IdpOrganizationServiceAccounts extends Base {
5
+ /**
6
+ * Create a service account
7
+ *
8
+ * @param orgName {string} Organization name
9
+ * @param name {string} Name for the service account
10
+ * @returns {ServiceAccount} Created service account
11
+ */
12
+ create<R extends boolean = false>(orgName: string, name: string, raw?: {
13
+ raw: R;
14
+ }): Promise<MaybeRaw<R, ServiceAccount>>;
15
+ /**
16
+ * Delete a service account
17
+ *
18
+ * @param orgName {string} Organization name
19
+ * @param id {string} Service account ID
20
+ * @returns {void}
21
+ */
22
+ delete<R extends boolean = false>(orgName: string, id: string, raw?: {
23
+ raw: R;
24
+ }): Promise<MaybeRaw<R, ServiceAccountNoToken>>;
25
+ /**
26
+ * Fetch a service account by ID
27
+ *
28
+ * @param orgName {string} Organization name
29
+ * @param id {string} Service account ID
30
+ * @returns {ServiceAccountNoToken} The service account's token is only visible on creation or token regeneration
31
+ */
32
+ get<R extends boolean = false>(orgName: string, id: string, raw?: {
33
+ raw: R;
34
+ }): Promise<MaybeRaw<R, ServiceAccountNoToken>>;
35
+ /**
36
+ * Search the service accounts of the organization
37
+ *
38
+ * @param orgName {string} Organization name
39
+ * @param filters {SearchFilter[]} Filters to apply
40
+ * @param sorting {Sorting|undefined} Sorting to apply
41
+ * @param limit {number|undefined} Page size
42
+ * @param page {number|undefined} Page number
43
+ * @returns {PaginatedResponse<ServiceAccountNoToken>} A paginated response containing the service accounts that matched the search parameters
44
+ */
45
+ search<R extends boolean = false>(params: {
46
+ orgName: string;
47
+ filters: SearchFilter[];
48
+ sorting?: Sorting;
49
+ limit?: number;
50
+ page?: number;
51
+ }, raw?: {
52
+ raw: R;
53
+ }): Promise<MaybeRaw<R, PaginatedResponse<ServiceAccountNoToken>>>;
54
+ /**
55
+ * Regenerate a service account's token
56
+ *
57
+ * @param orgName {string} Organization name
58
+ * @param id {string} Service account ID
59
+ * @returns {ServiceAccount}
60
+ */
61
+ regenerateToken<R extends boolean = false>(orgName: string, id: string, raw?: {
62
+ raw: R;
63
+ }): Promise<MaybeRaw<R, ServiceAccount>>;
64
+ /**
65
+ * Rename a service account
66
+ *
67
+ * @param orgName {string} Organization name
68
+ * @param id {string} Service account ID
69
+ * @param newName {string} Service account's new name
70
+ * @returns {ServiceAccountNoToken}
71
+ */
72
+ rename<R extends boolean = false>(orgName: string, id: string, newName: string, raw?: {
73
+ raw: R;
74
+ }): Promise<MaybeRaw<R, ServiceAccountNoToken>>;
75
+ protected getEndpoint(endpoint: string): string;
76
+ }
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const Base_1 = require("../../../../Base");
13
+ const paginatedResponseHelper_1 = require("../../../../helper/paginatedResponseHelper");
14
+ const searchFilter_1 = require("../../../../helper/searchFilter");
15
+ class IdpOrganizationServiceAccounts extends Base_1.default {
16
+ /**
17
+ * Create a service account
18
+ *
19
+ * @param orgName {string} Organization name
20
+ * @param name {string} Name for the service account
21
+ * @returns {ServiceAccount} Created service account
22
+ */
23
+ create(orgName, name, raw) {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ const res = yield this.axios.post(this.getEndpoint(`/${orgName}/service-accounts`), { name });
26
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? res : res.data);
27
+ });
28
+ }
29
+ /**
30
+ * Delete a service account
31
+ *
32
+ * @param orgName {string} Organization name
33
+ * @param id {string} Service account ID
34
+ * @returns {void}
35
+ */
36
+ delete(orgName, id, raw) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ const repo = yield this.axios.delete(this.getEndpoint(`/${orgName}/service-accounts/${id}`));
39
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? repo : repo.data);
40
+ });
41
+ }
42
+ /**
43
+ * Fetch a service account by ID
44
+ *
45
+ * @param orgName {string} Organization name
46
+ * @param id {string} Service account ID
47
+ * @returns {ServiceAccountNoToken} The service account's token is only visible on creation or token regeneration
48
+ */
49
+ get(orgName, id, raw) {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ const res = yield this.axios.get(this.getEndpoint(`/${orgName}/service-accounts/${id}`));
52
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? res : res.data);
53
+ });
54
+ }
55
+ /**
56
+ * Search the service accounts of the organization
57
+ *
58
+ * @param orgName {string} Organization name
59
+ * @param filters {SearchFilter[]} Filters to apply
60
+ * @param sorting {Sorting|undefined} Sorting to apply
61
+ * @param limit {number|undefined} Page size
62
+ * @param page {number|undefined} Page number
63
+ * @returns {PaginatedResponse<ServiceAccountNoToken>} A paginated response containing the service accounts that matched the search parameters
64
+ */
65
+ search(params, raw) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ const limit = params.limit || 25;
68
+ const page = params.page || 0;
69
+ const res = yield this.axios.post(this.getEndpoint(`/${params.orgName}/service-accounts/search?limit=${limit}&page=${page}`), {
70
+ filters: params.filters.map(f => new searchFilter_1.SearchFilterDTO(f)),
71
+ sorting: params.sorting,
72
+ });
73
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? Object.assign(Object.assign({}, res), { data: (0, paginatedResponseHelper_1.createPaginatedResponse)(res) }) : (0, paginatedResponseHelper_1.createPaginatedResponse)(res));
74
+ });
75
+ }
76
+ /**
77
+ * Regenerate a service account's token
78
+ *
79
+ * @param orgName {string} Organization name
80
+ * @param id {string} Service account ID
81
+ * @returns {ServiceAccount}
82
+ */
83
+ regenerateToken(orgName, id, raw) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ const res = yield this.axios.patch(this.getEndpoint(`/${orgName}/service-accounts/${id}/regenerate`));
86
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? res : res.data);
87
+ });
88
+ }
89
+ /**
90
+ * Rename a service account
91
+ *
92
+ * @param orgName {string} Organization name
93
+ * @param id {string} Service account ID
94
+ * @param newName {string} Service account's new name
95
+ * @returns {ServiceAccountNoToken}
96
+ */
97
+ rename(orgName, id, newName, raw) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ const res = yield this.axios.patch(this.getEndpoint(`/${orgName}/service-accounts/${id}/name`), {
100
+ name: newName,
101
+ });
102
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? res : res.data);
103
+ });
104
+ }
105
+ getEndpoint(endpoint) {
106
+ return `${this.options.server}/api/account/v1/org${endpoint}`;
107
+ }
108
+ }
109
+ exports.default = IdpOrganizationServiceAccounts;
@@ -1,4 +1,4 @@
1
- import Base from "../../../../../Base";
1
+ import Base, { MaybeRaw } from "../../../../../Base";
2
2
  import { Domain } from "../../../../../interfaces/idp/organization/settings/domain";
3
3
  import { IdpSAMLProvider } from "./saml";
4
4
  export declare class IdpDomain extends Base {
@@ -12,26 +12,34 @@ export declare class IdpDomain extends Base {
12
12
  * @param orgName Name of Organization
13
13
  * @returns Array of Domains
14
14
  */
15
- getDomains(orgName: string): Promise<Domain[]>;
15
+ getDomains<R extends boolean = false>(orgName: string, raw?: {
16
+ raw: R;
17
+ }): Promise<MaybeRaw<R, Domain[]>>;
16
18
  /**
17
19
  * Creates a new Domain for the given Organization
18
20
  * @param orgName Name of the Organization
19
21
  * @param domainName Name of the Domain
20
22
  * @returns the created Domain
21
23
  */
22
- createDomain(orgName: string, domainName: string): Promise<Domain>;
24
+ createDomain<R extends boolean = false>(orgName: string, domainName: string, raw?: {
25
+ raw: R;
26
+ }): Promise<MaybeRaw<R, Domain>>;
23
27
  /**
24
28
  * Verifies the provided Domain.
25
29
  * @param orgName Name of the organization
26
30
  * @param domainName Name of the Domain
27
31
  * @returns Domain object with domain.verified set to 'true' if verification was succesful.
28
32
  */
29
- verifyDomain(orgName: string, domainName: string): Promise<Domain>;
33
+ verifyDomain<R extends boolean = false>(orgName: string, domainName: string, raw?: {
34
+ raw: R;
35
+ }): Promise<MaybeRaw<R, Domain>>;
30
36
  /**
31
37
  * Deletes a domain.
32
38
  * @param orgName Name of the organization
33
39
  * @param domainName Name of the domain
34
40
  */
35
- deleteDomain(orgName: string, domainName: string): Promise<void>;
41
+ deleteDomain<R extends boolean = false>(orgName: string, domainName: string, raw?: {
42
+ raw: R;
43
+ }): Promise<MaybeRaw<R, void>>;
36
44
  protected getEndpoint(endpoint: string): string;
37
45
  }
@@ -27,10 +27,10 @@ class IdpDomain extends Base_1.default {
27
27
  * @param orgName Name of Organization
28
28
  * @returns Array of Domains
29
29
  */
30
- getDomains(orgName) {
30
+ getDomains(orgName, raw) {
31
31
  return __awaiter(this, void 0, void 0, function* () {
32
32
  const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/settings/domains`));
33
- return resp.data;
33
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
34
34
  });
35
35
  }
36
36
  /**
@@ -39,12 +39,12 @@ class IdpDomain extends Base_1.default {
39
39
  * @param domainName Name of the Domain
40
40
  * @returns the created Domain
41
41
  */
42
- createDomain(orgName, domainName) {
42
+ createDomain(orgName, domainName, raw) {
43
43
  return __awaiter(this, void 0, void 0, function* () {
44
44
  const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/settings/domains`), {
45
45
  name: domainName,
46
46
  });
47
- return resp.data;
47
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
48
48
  });
49
49
  }
50
50
  /**
@@ -53,10 +53,10 @@ class IdpDomain extends Base_1.default {
53
53
  * @param domainName Name of the Domain
54
54
  * @returns Domain object with domain.verified set to 'true' if verification was succesful.
55
55
  */
56
- verifyDomain(orgName, domainName) {
56
+ verifyDomain(orgName, domainName, raw) {
57
57
  return __awaiter(this, void 0, void 0, function* () {
58
58
  const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/settings/domains/${domainName}/verify`));
59
- return resp.data;
59
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
60
60
  });
61
61
  }
62
62
  /**
@@ -64,9 +64,10 @@ class IdpDomain extends Base_1.default {
64
64
  * @param orgName Name of the organization
65
65
  * @param domainName Name of the domain
66
66
  */
67
- deleteDomain(orgName, domainName) {
67
+ deleteDomain(orgName, domainName, raw) {
68
68
  return __awaiter(this, void 0, void 0, function* () {
69
- yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}/settings/domains/${domainName}`));
69
+ const resp = yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}/settings/domains/${domainName}`));
70
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
70
71
  });
71
72
  }
72
73
  getEndpoint(endpoint) {
@@ -1,4 +1,4 @@
1
- import Base from "../../../../../../Base";
1
+ import Base, { MaybeRaw } from "../../../../../../Base";
2
2
  import { FullSAMLProvider, SAMLProvider, SAMLProviderCreateDto } from "../../../../../../interfaces/idp/organization/settings/domain/saml";
3
3
  export declare class IdpSAMLProvider extends Base {
4
4
  /**
@@ -6,7 +6,9 @@ export declare class IdpSAMLProvider extends Base {
6
6
  * @param orgName Name of the Organization
7
7
  * @returns Array of SAML providers
8
8
  */
9
- getAllSAMLProvidersOfOrganization(orgName: string): Promise<FullSAMLProvider[]>;
9
+ getAllSAMLProvidersOfOrganization<R extends boolean = false>(orgName: string, raw?: {
10
+ raw: R;
11
+ }): Promise<MaybeRaw<R, FullSAMLProvider[]>>;
10
12
  /**
11
13
  * Creates a new SAML provider for the specified domain.
12
14
  * @param orgName Name of the Organization
@@ -14,7 +16,9 @@ export declare class IdpSAMLProvider extends Base {
14
16
  * @param provider SAML provider object containing the login URL, logout URL, certificates and a boolean to allow unencrypted assertion
15
17
  * @returns The created SAML provider
16
18
  */
17
- createProvider(orgName: string, domainName: string, provider: SAMLProviderCreateDto): Promise<SAMLProvider>;
19
+ createProvider<R extends boolean = false>(orgName: string, domainName: string, provider: SAMLProviderCreateDto, raw?: {
20
+ raw: R;
21
+ }): Promise<MaybeRaw<R, SAMLProvider>>;
18
22
  /**
19
23
  * Updates a SAML provider for the specified domain
20
24
  * @param orgName Name of the Organization
@@ -22,7 +26,9 @@ export declare class IdpSAMLProvider extends Base {
22
26
  * @param provider SAML provider object containing the login URL, logout URL, certificates and a boolean to allow unencrypted assertion
23
27
  * @returns The updated SAML provider
24
28
  */
25
- updateProvider(orgName: string, domainName: string, provider: SAMLProviderCreateDto): Promise<SAMLProvider>;
29
+ updateProvider<R extends boolean = false>(orgName: string, domainName: string, provider: SAMLProviderCreateDto, raw?: {
30
+ raw: R;
31
+ }): Promise<MaybeRaw<R, SAMLProvider>>;
26
32
  /**
27
33
  * Adds certificates to a SAML provider
28
34
  * @param orgName Name of the Organization
@@ -30,13 +36,17 @@ export declare class IdpSAMLProvider extends Base {
30
36
  * @param certificates Certificates to add
31
37
  * @returns The updated SAML provider
32
38
  */
33
- addCertificatesToProvider(orgName: string, domainName: string, certificates: string[]): Promise<SAMLProvider>;
39
+ addCertificatesToProvider<R extends boolean = false>(orgName: string, domainName: string, certificates: string[], raw?: {
40
+ raw: R;
41
+ }): Promise<MaybeRaw<R, SAMLProvider>>;
34
42
  /**
35
43
  * Removes a SAML provider from the specified domain
36
44
  * @param orgName Name of the Organization
37
45
  * @param domainName Name of the Domain
38
46
  */
39
- deleteProvider(orgName: string, domainName: string): Promise<void>;
47
+ deleteProvider<R extends boolean = false>(orgName: string, domainName: string, raw?: {
48
+ raw: R;
49
+ }): Promise<MaybeRaw<R, SAMLProvider>>;
40
50
  private convertProviderToFormData;
41
51
  private createFileFromString;
42
52
  protected getEndpoint(endpoint: string): string;