hcloud-sdk 14.13.2 → 16.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 (181) hide show
  1. package/changelog.md +60 -806
  2. package/lib/Hcloud.d.ts +20 -10
  3. package/lib/Hcloud.js +60 -10
  4. package/lib/interfaces/auditor/index.d.ts +4 -2
  5. package/lib/interfaces/bouncer/features/index.d.ts +3 -6
  6. package/lib/interfaces/frontend/featureflags/index.d.ts +7 -0
  7. package/lib/interfaces/frontend/featureflags/index.js +2 -0
  8. package/lib/interfaces/high5/execution/index.d.ts +22 -0
  9. package/lib/interfaces/high5/execution/index.js +10 -0
  10. package/lib/interfaces/high5/index.d.ts +2 -2
  11. package/lib/interfaces/high5/index.js +2 -2
  12. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +1 -0
  13. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +16 -1
  14. package/lib/interfaces/high5/space/execution/index.d.ts +14 -0
  15. package/lib/interfaces/high5/space/pool/index.d.ts +30 -0
  16. package/lib/interfaces/high5/space/pool/index.js +9 -0
  17. package/lib/interfaces/high5/wave/changelog.d.ts +30 -0
  18. package/lib/interfaces/high5/wave/changelog.js +18 -0
  19. package/lib/interfaces/high5/wave/index.d.ts +48 -1
  20. package/lib/interfaces/high5/wave/index.js +14 -1
  21. package/lib/interfaces/idp/organization/member/index.d.ts +2 -0
  22. package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +1 -0
  23. package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
  24. package/lib/interfaces/idp/user/Scopes.d.ts +1 -0
  25. package/lib/interfaces/idp/user/Scopes.js +21 -1
  26. package/lib/interfaces/idp/user/Totp.d.ts +4 -2
  27. package/lib/interfaces/idp/user/index.d.ts +1 -0
  28. package/lib/interfaces/mothership/index.d.ts +1 -0
  29. package/lib/interfaces/nats/index.d.ts +35 -20
  30. package/lib/interfaces/nats/index.js +132 -94
  31. package/lib/service/agent/bundle/dev/index.d.ts +5 -2
  32. package/lib/service/agent/bundle/dev/index.js +30 -10
  33. package/lib/service/agent/context/index.d.ts +7 -9
  34. package/lib/service/agent/context/index.js +41 -32
  35. package/lib/service/agent/index.d.ts +9 -7
  36. package/lib/service/agent/index.js +23 -6
  37. package/lib/service/auditor/index.d.ts +6 -7
  38. package/lib/service/auditor/index.js +23 -17
  39. package/lib/service/auditor/internal/index.d.ts +2 -2
  40. package/lib/service/auditor/internal/index.js +24 -20
  41. package/lib/service/bouncer/features/index.d.ts +1 -1
  42. package/lib/service/bouncer/features/index.js +5 -3
  43. package/lib/service/bouncer/index.d.ts +3 -10
  44. package/lib/service/bouncer/index.js +6 -21
  45. package/lib/service/dali/DaliAvatar.d.ts +21 -11
  46. package/lib/service/dali/DaliAvatar.js +63 -8
  47. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +5 -7
  48. package/lib/service/dali/avatar/DaliFuseSpace.js +29 -26
  49. package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +29 -0
  50. package/lib/service/dali/avatar/DaliHigh5Pool.js +61 -0
  51. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +5 -7
  52. package/lib/service/dali/avatar/DaliHigh5Space.js +29 -26
  53. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +4 -6
  54. package/lib/service/dali/avatar/DaliOAuthApp.js +26 -23
  55. package/lib/service/dali/avatar/DaliOrganization.d.ts +4 -6
  56. package/lib/service/dali/avatar/DaliOrganization.js +23 -20
  57. package/lib/service/dali/avatar/DaliTeam.d.ts +4 -6
  58. package/lib/service/dali/avatar/DaliTeam.js +26 -23
  59. package/lib/service/dali/avatar/DaliUser.d.ts +4 -6
  60. package/lib/service/dali/avatar/DaliUser.js +20 -17
  61. package/lib/service/dali/index.d.ts +4 -5
  62. package/lib/service/dali/index.js +14 -7
  63. package/lib/service/fuse/index.d.ts +8 -7
  64. package/lib/service/fuse/index.js +23 -9
  65. package/lib/service/fuse/internal/index.d.ts +3 -4
  66. package/lib/service/fuse/internal/index.js +5 -3
  67. package/lib/service/fuse/internal/space/cronjob/index.d.ts +3 -4
  68. package/lib/service/fuse/internal/space/cronjob/index.js +5 -3
  69. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +2 -4
  70. package/lib/service/fuse/internal/space/cronjob/log/index.js +11 -12
  71. package/lib/service/fuse/internal/space/index.d.ts +5 -6
  72. package/lib/service/fuse/internal/space/index.js +24 -18
  73. package/lib/service/fuse/space/cronjob/index.d.ts +15 -15
  74. package/lib/service/fuse/space/cronjob/index.js +133 -105
  75. package/lib/service/fuse/space/cronjob/log/index.d.ts +3 -3
  76. package/lib/service/fuse/space/cronjob/log/index.js +24 -23
  77. package/lib/service/fuse/space/index.d.ts +13 -14
  78. package/lib/service/fuse/space/index.js +88 -70
  79. package/lib/service/high5/execution/index.d.ts +13 -5
  80. package/lib/service/high5/execution/index.js +32 -4
  81. package/lib/service/high5/execution/log/index.d.ts +2 -2
  82. package/lib/service/high5/execution/log/index.js +11 -12
  83. package/lib/service/high5/execution/status/index.d.ts +2 -2
  84. package/lib/service/high5/execution/status/index.js +11 -12
  85. package/lib/service/high5/index.d.ts +12 -9
  86. package/lib/service/high5/index.js +36 -12
  87. package/lib/service/high5/internal/index.d.ts +3 -4
  88. package/lib/service/high5/internal/index.js +5 -3
  89. package/lib/service/high5/internal/space/index.d.ts +2 -2
  90. package/lib/service/high5/internal/space/index.js +19 -15
  91. package/lib/service/high5/joinToken/index.d.ts +4 -4
  92. package/lib/service/high5/joinToken/index.js +36 -28
  93. package/lib/service/high5/space/event/index.d.ts +9 -10
  94. package/lib/service/high5/space/event/index.js +58 -46
  95. package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +1 -2
  96. package/lib/service/high5/space/event/stream/design/DesignOperations.js +2 -0
  97. package/lib/service/high5/space/event/stream/design/index.d.ts +23 -8
  98. package/lib/service/high5/space/event/stream/design/index.js +60 -25
  99. package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +5 -5
  100. package/lib/service/high5/space/event/stream/design/snapshot/index.js +65 -58
  101. package/lib/service/high5/space/event/stream/index.d.ts +14 -15
  102. package/lib/service/high5/space/event/stream/index.js +125 -103
  103. package/lib/service/high5/space/execution/index.d.ts +36 -9
  104. package/lib/service/high5/space/execution/index.js +96 -42
  105. package/lib/service/high5/space/execution/log/index.d.ts +4 -6
  106. package/lib/service/high5/space/execution/log/index.js +22 -21
  107. package/lib/service/high5/space/execution/status/index.d.ts +1 -1
  108. package/lib/service/high5/space/execution/status/index.js +10 -8
  109. package/lib/service/high5/space/index.d.ts +28 -21
  110. package/lib/service/high5/space/index.js +138 -86
  111. package/lib/service/high5/space/pool/index.d.ts +97 -0
  112. package/lib/service/high5/space/pool/index.js +171 -0
  113. package/lib/service/high5/space/secret/index.d.ts +6 -6
  114. package/lib/service/high5/space/secret/index.js +59 -49
  115. package/lib/service/high5/space/wave/index.d.ts +7 -9
  116. package/lib/service/high5/space/wave/index.js +40 -33
  117. package/lib/service/high5/space/webhook/index.d.ts +21 -14
  118. package/lib/service/high5/space/webhook/index.js +106 -73
  119. package/lib/service/high5/space/webhook/log/index.d.ts +2 -4
  120. package/lib/service/high5/space/webhook/log/index.js +11 -12
  121. package/lib/service/high5/wave/s3/index.d.ts +14 -7
  122. package/lib/service/high5/wave/s3/index.js +64 -38
  123. package/lib/service/idp/index.d.ts +17 -15
  124. package/lib/service/idp/index.js +104 -56
  125. package/lib/service/idp/internal/index.d.ts +2 -4
  126. package/lib/service/idp/internal/index.js +10 -11
  127. package/lib/service/idp/oauth/index.d.ts +16 -12
  128. package/lib/service/idp/oauth/index.js +56 -45
  129. package/lib/service/idp/organization/index.d.ts +12 -10
  130. package/lib/service/idp/organization/index.js +63 -28
  131. package/lib/service/idp/organization/license/index.d.ts +2 -2
  132. package/lib/service/idp/organization/license/index.js +5 -4
  133. package/lib/service/idp/organization/member/index.d.ts +10 -11
  134. package/lib/service/idp/organization/member/index.js +62 -48
  135. package/lib/service/idp/organization/member/invitations/index.d.ts +3 -3
  136. package/lib/service/idp/organization/member/invitations/index.js +47 -43
  137. package/lib/service/idp/organization/settings/domain/index.d.ts +7 -8
  138. package/lib/service/idp/organization/settings/domain/index.js +42 -29
  139. package/lib/service/idp/organization/settings/domain/saml/index.d.ts +5 -5
  140. package/lib/service/idp/organization/settings/domain/saml/index.js +58 -48
  141. package/lib/service/idp/organization/settings/index.d.ts +5 -5
  142. package/lib/service/idp/organization/settings/index.js +17 -4
  143. package/lib/service/idp/organization/settings/oauth/index.d.ts +9 -11
  144. package/lib/service/idp/organization/settings/oauth/index.js +67 -56
  145. package/lib/service/idp/organization/team/index.d.ts +8 -8
  146. package/lib/service/idp/organization/team/index.js +64 -55
  147. package/lib/service/idp/registration/index.d.ts +4 -6
  148. package/lib/service/idp/registration/index.js +38 -35
  149. package/lib/service/idp/user/index.d.ts +20 -15
  150. package/lib/service/idp/user/index.js +94 -51
  151. package/lib/service/idp/user/license/index.d.ts +2 -2
  152. package/lib/service/idp/user/license/index.js +5 -4
  153. package/lib/service/idp/user/password/index.d.ts +1 -1
  154. package/lib/service/idp/user/password/index.js +10 -11
  155. package/lib/service/idp/user/settings/connections/index.d.ts +2 -4
  156. package/lib/service/idp/user/settings/connections/index.js +9 -10
  157. package/lib/service/idp/user/settings/general/index.d.ts +10 -6
  158. package/lib/service/idp/user/settings/general/index.js +25 -13
  159. package/lib/service/idp/user/settings/index.d.ts +13 -9
  160. package/lib/service/idp/user/settings/index.js +53 -8
  161. package/lib/service/idp/user/settings/notifications/index.d.ts +3 -5
  162. package/lib/service/idp/user/settings/notifications/index.js +14 -13
  163. package/lib/service/idp/user/settings/oauthApps/index.d.ts +3 -5
  164. package/lib/service/idp/user/settings/oauthApps/index.js +17 -16
  165. package/lib/service/idp/user/settings/pats/index.d.ts +8 -10
  166. package/lib/service/idp/user/settings/pats/index.js +55 -44
  167. package/lib/service/idp/user/settings/twoFactor/index.d.ts +3 -4
  168. package/lib/service/idp/user/settings/twoFactor/index.js +8 -3
  169. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +7 -9
  170. package/lib/service/idp/user/settings/twoFactor/totp/index.js +36 -29
  171. package/lib/service/mailer/index.d.ts +4 -5
  172. package/lib/service/mailer/index.js +12 -8
  173. package/lib/service/mailer/internal/index.d.ts +4 -4
  174. package/lib/service/mailer/internal/index.js +38 -33
  175. package/lib/service/mothership/index.d.ts +12 -12
  176. package/lib/service/mothership/index.js +92 -79
  177. package/lib/service/nats/index.d.ts +1 -3
  178. package/lib/service/nats/index.js +2 -2
  179. package/lib/utils/bouncer/features/Provider.d.ts +3 -0
  180. package/lib/utils/bouncer/features/Provider.js +20 -2
  181. package/package.json +1 -1
@@ -9,37 +9,40 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DaliFuse = void 0;
12
+ exports.DaliFuseSpace = void 0;
13
13
  const Base_1 = require("../../../Base");
14
- class DaliFuse extends Base_1.default {
15
- constructor(options, axios) {
16
- super(options, axios);
17
- /**
18
- * Creates a default avatar for the specified Fuse space.
19
- * @param orgName Name of the organization
20
- * @param spaceName Name of the space
21
- * @returns Public URL of the created avatar
22
- */
23
- this.createAvatar = (orgName, spaceName) => __awaiter(this, void 0, void 0, function* () {
14
+ class DaliFuseSpace extends Base_1.default {
15
+ /**
16
+ * Creates a default avatar for the specified Fuse space.
17
+ * @param orgName Name of the organization
18
+ * @param spaceName Name of the space
19
+ * @returns Public URL of the created avatar
20
+ */
21
+ createAvatar(orgName, spaceName) {
22
+ return __awaiter(this, void 0, void 0, function* () {
24
23
  const resp = yield this.axios.post(this.getEndpoint(`/v1/avatar/org/${orgName}/spaces/fuse/${spaceName}`), {});
25
24
  return resp.data;
26
25
  });
27
- /**
28
- * Deletes the avatar of the Fuse space from cloud storage. If you want to update it instead, use updateAvatar().
29
- * @param orgName Name of the organization
30
- * @param spaceName Name of the space
31
- */
32
- this.deleteAvatar = (orgName, spaceName) => __awaiter(this, void 0, void 0, function* () {
26
+ }
27
+ /**
28
+ * Deletes the avatar of the Fuse space from cloud storage. If you want to update it instead, use updateAvatar().
29
+ * @param orgName Name of the organization
30
+ * @param spaceName Name of the space
31
+ */
32
+ deleteAvatar(orgName, spaceName) {
33
+ return __awaiter(this, void 0, void 0, function* () {
33
34
  yield this.axios.delete(this.getEndpoint(`/v1/avatar/org/${orgName}/spaces/fuse/${spaceName}`));
34
35
  });
35
- /**
36
- * Updates the avatar of the specified Fuse space
37
- * @param orgName Name of the organization
38
- * @param spaceName Name of the space
39
- * @param file Image as Javascript File
40
- * @returns Public URL of the new avatar
41
- */
42
- this.updateAvatar = (orgName, spaceName, file) => __awaiter(this, void 0, void 0, function* () {
36
+ }
37
+ /**
38
+ * Updates the avatar of the specified Fuse space
39
+ * @param orgName Name of the organization
40
+ * @param spaceName Name of the space
41
+ * @param file Image as Javascript File
42
+ * @returns Public URL of the new avatar
43
+ */
44
+ updateAvatar(orgName, spaceName, file) {
45
+ return __awaiter(this, void 0, void 0, function* () {
43
46
  const data = new FormData();
44
47
  data.append("avatar", file);
45
48
  const resp = yield this.axios.put(this.getEndpoint(`/v1/avatar/org/${orgName}/spaces/fuse/${spaceName}`), data, {
@@ -52,4 +55,4 @@ class DaliFuse extends Base_1.default {
52
55
  return `${this.options.server}/api/dali${endpoint}`;
53
56
  }
54
57
  }
55
- exports.DaliFuse = DaliFuse;
58
+ exports.DaliFuseSpace = DaliFuseSpace;
@@ -0,0 +1,29 @@
1
+ import Base from "../../../Base";
2
+ import { AvatarCreated } from "../../../interfaces/dali";
3
+ export declare class DaliHigh5Pool extends Base {
4
+ /**
5
+ * Creates a default avatar for the specified High5 pool.
6
+ * @param orgName Name of the organization
7
+ * @param spaceName Name of the space
8
+ * @param poolName Name of the pool
9
+ * @returns Public URL of the created avatar
10
+ */
11
+ createAvatar(orgName: string, spaceName: string, poolName: string): Promise<AvatarCreated>;
12
+ /**
13
+ * Deletes the avatar of the High5 pool from cloud storage. If you want to update it instead, use updateAvatar().
14
+ * @param orgName Name of the organization
15
+ * @param spaceName Name of the space
16
+ * @param poolName Name of the pool
17
+ */
18
+ deleteAvatar(orgName: string, spaceName: string, poolName: string): Promise<void>;
19
+ /**
20
+ * Updates the avatar of the specified High5 pool
21
+ * @param orgName Name of the organization
22
+ * @param spaceName Name of the space
23
+ * @param poolName Name of the pool
24
+ * @param file Image as Javascript File
25
+ * @returns Public URL of the new avatar
26
+ */
27
+ updateAvatar(orgName: string, spaceName: string, poolName: string, file: File): Promise<AvatarCreated>;
28
+ protected getEndpoint(endpoint: string): string;
29
+ }
@@ -0,0 +1,61 @@
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
+ exports.DaliHigh5Pool = void 0;
13
+ const Base_1 = require("../../../Base");
14
+ class DaliHigh5Pool extends Base_1.default {
15
+ /**
16
+ * Creates a default avatar for the specified High5 pool.
17
+ * @param orgName Name of the organization
18
+ * @param spaceName Name of the space
19
+ * @param poolName Name of the pool
20
+ * @returns Public URL of the created avatar
21
+ */
22
+ createAvatar(orgName, spaceName, poolName) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const resp = yield this.axios.post(this.getEndpoint(`/v1/avatar/org/${orgName}/spaces/high5/${spaceName}/pools/${poolName}`), {});
25
+ return resp.data;
26
+ });
27
+ }
28
+ /**
29
+ * Deletes the avatar of the High5 pool from cloud storage. If you want to update it instead, use updateAvatar().
30
+ * @param orgName Name of the organization
31
+ * @param spaceName Name of the space
32
+ * @param poolName Name of the pool
33
+ */
34
+ deleteAvatar(orgName, spaceName, poolName) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ yield this.axios.delete(this.getEndpoint(`/v1/avatar/org/${orgName}/spaces/high5/${spaceName}/pools/${poolName}`));
37
+ });
38
+ }
39
+ /**
40
+ * Updates the avatar of the specified High5 pool
41
+ * @param orgName Name of the organization
42
+ * @param spaceName Name of the space
43
+ * @param poolName Name of the pool
44
+ * @param file Image as Javascript File
45
+ * @returns Public URL of the new avatar
46
+ */
47
+ updateAvatar(orgName, spaceName, poolName, file) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ const data = new FormData();
50
+ data.append("avatar", file);
51
+ const resp = yield this.axios.put(this.getEndpoint(`/v1/avatar/org/${orgName}/spaces/high5/${spaceName}/pools/${poolName}`), data, {
52
+ headers: { "Content-Type": "multipart/form-data" },
53
+ });
54
+ return resp.data;
55
+ });
56
+ }
57
+ getEndpoint(endpoint) {
58
+ return `${this.options.server}/api/dali${endpoint}`;
59
+ }
60
+ }
61
+ exports.DaliHigh5Pool = DaliHigh5Pool;
@@ -1,21 +1,19 @@
1
- import { AxiosInstance } from "axios";
2
- import Base, { Options } from "../../../Base";
1
+ import Base from "../../../Base";
3
2
  import { AvatarCreated } from "../../../interfaces/dali";
4
- export declare class DaliHigh5 extends Base {
5
- constructor(options: Options, axios: AxiosInstance);
3
+ export declare class DaliHigh5Space extends Base {
6
4
  /**
7
5
  * Creates a default avatar for the specified High5 space.
8
6
  * @param orgName Name of the organization
9
7
  * @param spaceName Name of the space
10
8
  * @returns Public URL of the created avatar
11
9
  */
12
- createAvatar: (orgName: string, spaceName: string) => Promise<AvatarCreated>;
10
+ createAvatar(orgName: string, spaceName: string): Promise<AvatarCreated>;
13
11
  /**
14
12
  * Deletes the avatar of the High5 space from cloud storage. If you want to update it instead, use updateAvatar().
15
13
  * @param orgName Name of the organization
16
14
  * @param spaceName Name of the space
17
15
  */
18
- deleteAvatar: (orgName: string, spaceName: string) => Promise<void>;
16
+ deleteAvatar(orgName: string, spaceName: string): Promise<void>;
19
17
  /**
20
18
  * Updates the avatar of the specified High5 space
21
19
  * @param orgName Name of the organization
@@ -23,6 +21,6 @@ export declare class DaliHigh5 extends Base {
23
21
  * @param file Image as Javascript File
24
22
  * @returns Public URL of the new avatar
25
23
  */
26
- updateAvatar: (orgName: string, spaceName: string, file: File) => Promise<AvatarCreated>;
24
+ updateAvatar(orgName: string, spaceName: string, file: File): Promise<AvatarCreated>;
27
25
  protected getEndpoint(endpoint: string): string;
28
26
  }
@@ -9,37 +9,40 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DaliHigh5 = void 0;
12
+ exports.DaliHigh5Space = void 0;
13
13
  const Base_1 = require("../../../Base");
14
- class DaliHigh5 extends Base_1.default {
15
- constructor(options, axios) {
16
- super(options, axios);
17
- /**
18
- * Creates a default avatar for the specified High5 space.
19
- * @param orgName Name of the organization
20
- * @param spaceName Name of the space
21
- * @returns Public URL of the created avatar
22
- */
23
- this.createAvatar = (orgName, spaceName) => __awaiter(this, void 0, void 0, function* () {
14
+ class DaliHigh5Space extends Base_1.default {
15
+ /**
16
+ * Creates a default avatar for the specified High5 space.
17
+ * @param orgName Name of the organization
18
+ * @param spaceName Name of the space
19
+ * @returns Public URL of the created avatar
20
+ */
21
+ createAvatar(orgName, spaceName) {
22
+ return __awaiter(this, void 0, void 0, function* () {
24
23
  const resp = yield this.axios.post(this.getEndpoint(`/v1/avatar/org/${orgName}/spaces/high5/${spaceName}`), {});
25
24
  return resp.data;
26
25
  });
27
- /**
28
- * Deletes the avatar of the High5 space from cloud storage. If you want to update it instead, use updateAvatar().
29
- * @param orgName Name of the organization
30
- * @param spaceName Name of the space
31
- */
32
- this.deleteAvatar = (orgName, spaceName) => __awaiter(this, void 0, void 0, function* () {
26
+ }
27
+ /**
28
+ * Deletes the avatar of the High5 space from cloud storage. If you want to update it instead, use updateAvatar().
29
+ * @param orgName Name of the organization
30
+ * @param spaceName Name of the space
31
+ */
32
+ deleteAvatar(orgName, spaceName) {
33
+ return __awaiter(this, void 0, void 0, function* () {
33
34
  yield this.axios.delete(this.getEndpoint(`/v1/avatar/org/${orgName}/spaces/high5/${spaceName}`));
34
35
  });
35
- /**
36
- * Updates the avatar of the specified High5 space
37
- * @param orgName Name of the organization
38
- * @param spaceName Name of the space
39
- * @param file Image as Javascript File
40
- * @returns Public URL of the new avatar
41
- */
42
- this.updateAvatar = (orgName, spaceName, file) => __awaiter(this, void 0, void 0, function* () {
36
+ }
37
+ /**
38
+ * Updates the avatar of the specified High5 space
39
+ * @param orgName Name of the organization
40
+ * @param spaceName Name of the space
41
+ * @param file Image as Javascript File
42
+ * @returns Public URL of the new avatar
43
+ */
44
+ updateAvatar(orgName, spaceName, file) {
45
+ return __awaiter(this, void 0, void 0, function* () {
43
46
  const data = new FormData();
44
47
  data.append("avatar", file);
45
48
  const resp = yield this.axios.put(this.getEndpoint(`/v1/avatar/org/${orgName}/spaces/high5/${spaceName}`), data, {
@@ -52,4 +55,4 @@ class DaliHigh5 extends Base_1.default {
52
55
  return `${this.options.server}/api/dali${endpoint}`;
53
56
  }
54
57
  }
55
- exports.DaliHigh5 = DaliHigh5;
58
+ exports.DaliHigh5Space = DaliHigh5Space;
@@ -1,21 +1,19 @@
1
- import { AxiosInstance } from "axios";
2
- import Base, { Options } from "../../../Base";
1
+ import Base from "../../../Base";
3
2
  import { AvatarCreated } from "../../../interfaces/dali";
4
3
  export declare class DaliOAuthApp extends Base {
5
- constructor(options: Options, axios: AxiosInstance);
6
4
  /**
7
5
  * Creates a default avatar for the specified OAuth app.
8
6
  * @param orgName Name of the organization
9
7
  * @param appId ID of the OAuth app
10
8
  * @returns Public URL of the created avatar
11
9
  */
12
- createAvatar: (orgName: string, appId: string) => Promise<AvatarCreated>;
10
+ createAvatar(orgName: string, appId: string): Promise<AvatarCreated>;
13
11
  /**
14
12
  * Deletes the avatar of the OAuth app from cloud storage. If you want to update it instead, use updateAvatar().
15
13
  * @param orgName Name of the organization
16
14
  * @param appId ID of the OAuth app
17
15
  */
18
- deleteAvatar: (orgName: string, appId: string) => Promise<void>;
16
+ deleteAvatar(orgName: string, appId: string): Promise<void>;
19
17
  /**
20
18
  * Updates the avatar of the specified OAuth app.
21
19
  * @param orgName Name of the organization
@@ -23,6 +21,6 @@ export declare class DaliOAuthApp extends Base {
23
21
  * @param file Image as Javascript File
24
22
  * @returns Public URL of the new avatar
25
23
  */
26
- updateAvatar: (orgName: string, appId: string, file: File) => Promise<AvatarCreated>;
24
+ updateAvatar(orgName: string, appId: string, file: File): Promise<AvatarCreated>;
27
25
  protected getEndpoint(endpoint: string): string;
28
26
  }
@@ -12,34 +12,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DaliOAuthApp = void 0;
13
13
  const Base_1 = require("../../../Base");
14
14
  class DaliOAuthApp extends Base_1.default {
15
- constructor(options, axios) {
16
- super(options, axios);
17
- /**
18
- * Creates a default avatar for the specified OAuth app.
19
- * @param orgName Name of the organization
20
- * @param appId ID of the OAuth app
21
- * @returns Public URL of the created avatar
22
- */
23
- this.createAvatar = (orgName, appId) => __awaiter(this, void 0, void 0, function* () {
15
+ /**
16
+ * Creates a default avatar for the specified OAuth app.
17
+ * @param orgName Name of the organization
18
+ * @param appId ID of the OAuth app
19
+ * @returns Public URL of the created avatar
20
+ */
21
+ createAvatar(orgName, appId) {
22
+ return __awaiter(this, void 0, void 0, function* () {
24
23
  const resp = yield this.axios.post(this.getEndpoint(`/v1/avatar/org/${orgName}/applications/oauth/${appId}`), {});
25
24
  return resp.data;
26
25
  });
27
- /**
28
- * Deletes the avatar of the OAuth app from cloud storage. If you want to update it instead, use updateAvatar().
29
- * @param orgName Name of the organization
30
- * @param appId ID of the OAuth app
31
- */
32
- this.deleteAvatar = (orgName, appId) => __awaiter(this, void 0, void 0, function* () {
26
+ }
27
+ /**
28
+ * Deletes the avatar of the OAuth app from cloud storage. If you want to update it instead, use updateAvatar().
29
+ * @param orgName Name of the organization
30
+ * @param appId ID of the OAuth app
31
+ */
32
+ deleteAvatar(orgName, appId) {
33
+ return __awaiter(this, void 0, void 0, function* () {
33
34
  yield this.axios.delete(this.getEndpoint(`/v1/avatar/org/${orgName}/applications/oauth/${appId}`));
34
35
  });
35
- /**
36
- * Updates the avatar of the specified OAuth app.
37
- * @param orgName Name of the organization
38
- * @param appId ID of the OAuth app
39
- * @param file Image as Javascript File
40
- * @returns Public URL of the new avatar
41
- */
42
- this.updateAvatar = (orgName, appId, file) => __awaiter(this, void 0, void 0, function* () {
36
+ }
37
+ /**
38
+ * Updates the avatar of the specified OAuth app.
39
+ * @param orgName Name of the organization
40
+ * @param appId ID of the OAuth app
41
+ * @param file Image as Javascript File
42
+ * @returns Public URL of the new avatar
43
+ */
44
+ updateAvatar(orgName, appId, file) {
45
+ return __awaiter(this, void 0, void 0, function* () {
43
46
  const data = new FormData();
44
47
  data.append("avatar", file);
45
48
  const resp = yield this.axios.put(this.getEndpoint(`/v1/avatar/org/${orgName}/applications/oauth/${appId}`), data, {
@@ -1,25 +1,23 @@
1
- import { AxiosInstance } from "axios";
2
- import Base, { Options } from "../../../Base";
1
+ import Base from "../../../Base";
3
2
  import { AvatarCreated } from "../../../interfaces/dali";
4
3
  export declare class DaliOrganization extends Base {
5
- constructor(options: Options, axios: AxiosInstance);
6
4
  /**
7
5
  * Creates a default avatar for the specified organization.
8
6
  * @param orgName Name of the organization
9
7
  * @returns Public URL of the created avatar
10
8
  */
11
- createAvatar: (orgName: string) => Promise<AvatarCreated>;
9
+ createAvatar(orgName: string): Promise<AvatarCreated>;
12
10
  /**
13
11
  * Deletes the avatar of the organization from cloud storage. If you want to update it, use updateAvatar() instead.
14
12
  * @param orgName Name of the organization
15
13
  */
16
- deleteAvatar: (orgName: string) => Promise<void>;
14
+ deleteAvatar(orgName: string): Promise<void>;
17
15
  /**
18
16
  * Updates the avatar of the specified organization.
19
17
  * @param orgName Name of the organization
20
18
  * @param file Image as Javascript File
21
19
  * @returns Public URL of the new avatar
22
20
  */
23
- updateAvatar: (orgName: string, file: File) => Promise<AvatarCreated>;
21
+ updateAvatar(orgName: string, file: File): Promise<AvatarCreated>;
24
22
  protected getEndpoint(endpoint: string): string;
25
23
  }
@@ -12,31 +12,34 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DaliOrganization = void 0;
13
13
  const Base_1 = require("../../../Base");
14
14
  class DaliOrganization extends Base_1.default {
15
- constructor(options, axios) {
16
- super(options, axios);
17
- /**
18
- * Creates a default avatar for the specified organization.
19
- * @param orgName Name of the organization
20
- * @returns Public URL of the created avatar
21
- */
22
- this.createAvatar = (orgName) => __awaiter(this, void 0, void 0, function* () {
15
+ /**
16
+ * Creates a default avatar for the specified organization.
17
+ * @param orgName Name of the organization
18
+ * @returns Public URL of the created avatar
19
+ */
20
+ createAvatar(orgName) {
21
+ return __awaiter(this, void 0, void 0, function* () {
23
22
  const resp = yield this.axios.post(this.getEndpoint(`/v1/avatar/org/${orgName}`), {});
24
23
  return resp.data;
25
24
  });
26
- /**
27
- * Deletes the avatar of the organization from cloud storage. If you want to update it, use updateAvatar() instead.
28
- * @param orgName Name of the organization
29
- */
30
- this.deleteAvatar = (orgName) => __awaiter(this, void 0, void 0, function* () {
25
+ }
26
+ /**
27
+ * Deletes the avatar of the organization from cloud storage. If you want to update it, use updateAvatar() instead.
28
+ * @param orgName Name of the organization
29
+ */
30
+ deleteAvatar(orgName) {
31
+ return __awaiter(this, void 0, void 0, function* () {
31
32
  yield this.axios.delete(this.getEndpoint(`/v1/avatar/org/${orgName}`));
32
33
  });
33
- /**
34
- * Updates the avatar of the specified organization.
35
- * @param orgName Name of the organization
36
- * @param file Image as Javascript File
37
- * @returns Public URL of the new avatar
38
- */
39
- this.updateAvatar = (orgName, file) => __awaiter(this, void 0, void 0, function* () {
34
+ }
35
+ /**
36
+ * Updates the avatar of the specified organization.
37
+ * @param orgName Name of the organization
38
+ * @param file Image as Javascript File
39
+ * @returns Public URL of the new avatar
40
+ */
41
+ updateAvatar(orgName, file) {
42
+ return __awaiter(this, void 0, void 0, function* () {
40
43
  const data = new FormData();
41
44
  data.append("avatar", file);
42
45
  const resp = yield this.axios.put(this.getEndpoint(`/v1/avatar/org/${orgName}`), data, {
@@ -1,21 +1,19 @@
1
- import { AxiosInstance } from "axios";
2
- import Base, { Options } from "../../../Base";
1
+ import Base from "../../../Base";
3
2
  import { AvatarCreated } from "../../../interfaces/dali";
4
3
  export declare class DaliTeam extends Base {
5
- constructor(options: Options, axios: AxiosInstance);
6
4
  /**
7
5
  * Creates a default avatar for the specified team.
8
6
  * @param orgName Name of the organization
9
7
  * @param teamName Name of the team
10
8
  * @returns Public URL of the created avatar
11
9
  */
12
- createAvatar: (orgName: string, teamName: string) => Promise<AvatarCreated>;
10
+ createAvatar(orgName: string, teamName: string): Promise<AvatarCreated>;
13
11
  /**
14
12
  * Deletes the avatar of the team from cloud storage. If you want to update it instead, use updateAvatar().
15
13
  * @param orgName Name of the organization
16
14
  * @param teamName Name of the team
17
15
  */
18
- deleteAvatar: (orgName: string, teamName: string) => Promise<void>;
16
+ deleteAvatar(orgName: string, teamName: string): Promise<void>;
19
17
  /**
20
18
  * Updates the avatar of the specified team.
21
19
  * @param orgName Name of the organization
@@ -23,6 +21,6 @@ export declare class DaliTeam extends Base {
23
21
  * @param file Image as Javascript File
24
22
  * @returns Public URL of the new avatar
25
23
  */
26
- updateAvatar: (orgName: string, teamName: string, file: File) => Promise<AvatarCreated>;
24
+ updateAvatar(orgName: string, teamName: string, file: File): Promise<AvatarCreated>;
27
25
  protected getEndpoint(endpoint: string): string;
28
26
  }
@@ -12,34 +12,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DaliTeam = void 0;
13
13
  const Base_1 = require("../../../Base");
14
14
  class DaliTeam extends Base_1.default {
15
- constructor(options, axios) {
16
- super(options, axios);
17
- /**
18
- * Creates a default avatar for the specified team.
19
- * @param orgName Name of the organization
20
- * @param teamName Name of the team
21
- * @returns Public URL of the created avatar
22
- */
23
- this.createAvatar = (orgName, teamName) => __awaiter(this, void 0, void 0, function* () {
15
+ /**
16
+ * Creates a default avatar for the specified team.
17
+ * @param orgName Name of the organization
18
+ * @param teamName Name of the team
19
+ * @returns Public URL of the created avatar
20
+ */
21
+ createAvatar(orgName, teamName) {
22
+ return __awaiter(this, void 0, void 0, function* () {
24
23
  const resp = yield this.axios.post(this.getEndpoint(`/v1/avatar/org/${orgName}/teams/${teamName}`), {});
25
24
  return resp.data;
26
25
  });
27
- /**
28
- * Deletes the avatar of the team from cloud storage. If you want to update it instead, use updateAvatar().
29
- * @param orgName Name of the organization
30
- * @param teamName Name of the team
31
- */
32
- this.deleteAvatar = (orgName, teamName) => __awaiter(this, void 0, void 0, function* () {
26
+ }
27
+ /**
28
+ * Deletes the avatar of the team from cloud storage. If you want to update it instead, use updateAvatar().
29
+ * @param orgName Name of the organization
30
+ * @param teamName Name of the team
31
+ */
32
+ deleteAvatar(orgName, teamName) {
33
+ return __awaiter(this, void 0, void 0, function* () {
33
34
  yield this.axios.delete(this.getEndpoint(`/v1/avatar/org/${orgName}/teams/${teamName}`));
34
35
  });
35
- /**
36
- * Updates the avatar of the specified team.
37
- * @param orgName Name of the organization
38
- * @param teamName Name of the team
39
- * @param file Image as Javascript File
40
- * @returns Public URL of the new avatar
41
- */
42
- this.updateAvatar = (orgName, teamName, file) => __awaiter(this, void 0, void 0, function* () {
36
+ }
37
+ /**
38
+ * Updates the avatar of the specified team.
39
+ * @param orgName Name of the organization
40
+ * @param teamName Name of the team
41
+ * @param file Image as Javascript File
42
+ * @returns Public URL of the new avatar
43
+ */
44
+ updateAvatar(orgName, teamName, file) {
45
+ return __awaiter(this, void 0, void 0, function* () {
43
46
  const data = new FormData();
44
47
  data.append("avatar", file);
45
48
  const resp = yield this.axios.put(this.getEndpoint(`/v1/avatar/org/${orgName}/teams/${teamName}`), data, {
@@ -1,22 +1,20 @@
1
- import { AxiosInstance } from "axios";
2
- import Base, { Options } from "../../../Base";
1
+ import Base from "../../../Base";
3
2
  import { AvatarCreated } from "../../../interfaces/dali";
4
3
  export declare class DaliUser extends Base {
5
- constructor(options: Options, axios: AxiosInstance);
6
4
  /**
7
5
  * Creates a default avatar for the requesting user.
8
6
  * @returns Public URL of the created avatar
9
7
  */
10
- createAvatar: () => Promise<AvatarCreated>;
8
+ createAvatar(): Promise<AvatarCreated>;
11
9
  /**
12
10
  * Deletes the avatar of the requesting user from cloud storage. If you want to update it instead, use updateAvatar().
13
11
  */
14
- deleteAvatar: () => Promise<void>;
12
+ deleteAvatar(): Promise<void>;
15
13
  /**
16
14
  * Updates the avatar of the requesting user.
17
15
  * @param file Image as Javascript File
18
16
  * @returns Public URL of the new avatar
19
17
  */
20
- updateAvatar: (file: File) => Promise<AvatarCreated>;
18
+ updateAvatar(file: File): Promise<AvatarCreated>;
21
19
  protected getEndpoint(endpoint: string): string;
22
20
  }
@@ -12,28 +12,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DaliUser = void 0;
13
13
  const Base_1 = require("../../../Base");
14
14
  class DaliUser extends Base_1.default {
15
- constructor(options, axios) {
16
- super(options, axios);
17
- /**
18
- * Creates a default avatar for the requesting user.
19
- * @returns Public URL of the created avatar
20
- */
21
- this.createAvatar = () => __awaiter(this, void 0, void 0, function* () {
15
+ /**
16
+ * Creates a default avatar for the requesting user.
17
+ * @returns Public URL of the created avatar
18
+ */
19
+ createAvatar() {
20
+ return __awaiter(this, void 0, void 0, function* () {
22
21
  const resp = yield this.axios.post(this.getEndpoint(`/v1/avatar/user`), {});
23
22
  return resp.data;
24
23
  });
25
- /**
26
- * Deletes the avatar of the requesting user from cloud storage. If you want to update it instead, use updateAvatar().
27
- */
28
- this.deleteAvatar = () => __awaiter(this, void 0, void 0, function* () {
24
+ }
25
+ /**
26
+ * Deletes the avatar of the requesting user from cloud storage. If you want to update it instead, use updateAvatar().
27
+ */
28
+ deleteAvatar() {
29
+ return __awaiter(this, void 0, void 0, function* () {
29
30
  yield this.axios.delete(this.getEndpoint(`/v1/avatar/user`));
30
31
  });
31
- /**
32
- * Updates the avatar of the requesting user.
33
- * @param file Image as Javascript File
34
- * @returns Public URL of the new avatar
35
- */
36
- this.updateAvatar = (file) => __awaiter(this, void 0, void 0, function* () {
32
+ }
33
+ /**
34
+ * Updates the avatar of the requesting user.
35
+ * @param file Image as Javascript File
36
+ * @returns Public URL of the new avatar
37
+ */
38
+ updateAvatar(file) {
39
+ return __awaiter(this, void 0, void 0, function* () {
37
40
  const data = new FormData();
38
41
  data.append("avatar", file);
39
42
  const resp = yield this.axios.put(this.getEndpoint(`/v1/avatar/user`), data, {