hcloud-sdk 15.0.0 → 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 (52) hide show
  1. package/changelog.md +54 -36
  2. package/lib/interfaces/auditor/index.d.ts +4 -2
  3. package/lib/interfaces/high5/execution/index.d.ts +22 -0
  4. package/lib/interfaces/high5/execution/index.js +10 -0
  5. package/lib/interfaces/high5/index.d.ts +2 -2
  6. package/lib/interfaces/high5/index.js +2 -2
  7. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +1 -0
  8. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +14 -1
  9. package/lib/interfaces/high5/space/execution/index.d.ts +3 -0
  10. package/lib/interfaces/high5/space/pool/index.d.ts +30 -0
  11. package/lib/interfaces/high5/space/pool/index.js +9 -0
  12. package/lib/interfaces/high5/wave/index.d.ts +18 -1
  13. package/lib/interfaces/high5/wave/index.js +4 -0
  14. package/lib/interfaces/idp/organization/member/index.d.ts +2 -0
  15. package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +1 -0
  16. package/lib/interfaces/idp/user/Scopes.d.ts +1 -0
  17. package/lib/interfaces/idp/user/Scopes.js +21 -1
  18. package/lib/interfaces/idp/user/Totp.d.ts +4 -2
  19. package/lib/interfaces/idp/user/index.d.ts +1 -0
  20. package/lib/interfaces/nats/index.d.ts +28 -0
  21. package/lib/interfaces/nats/index.js +61 -5
  22. package/lib/service/agent/bundle/dev/index.d.ts +3 -0
  23. package/lib/service/agent/bundle/dev/index.js +16 -0
  24. package/lib/service/dali/DaliAvatar.d.ts +10 -4
  25. package/lib/service/dali/DaliAvatar.js +12 -2
  26. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +1 -1
  27. package/lib/service/dali/avatar/DaliFuseSpace.js +3 -3
  28. package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +29 -0
  29. package/lib/service/dali/avatar/DaliHigh5Pool.js +61 -0
  30. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +1 -1
  31. package/lib/service/dali/avatar/DaliHigh5Space.js +3 -3
  32. package/lib/service/high5/execution/index.d.ts +8 -0
  33. package/lib/service/high5/execution/index.js +21 -0
  34. package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +1 -2
  35. package/lib/service/high5/space/event/stream/design/DesignOperations.js +2 -0
  36. package/lib/service/high5/space/execution/index.d.ts +28 -1
  37. package/lib/service/high5/space/execution/index.js +41 -2
  38. package/lib/service/high5/space/index.d.ts +3 -0
  39. package/lib/service/high5/space/index.js +7 -0
  40. package/lib/service/high5/space/pool/index.d.ts +97 -0
  41. package/lib/service/high5/space/pool/index.js +171 -0
  42. package/lib/service/high5/wave/s3/index.d.ts +8 -1
  43. package/lib/service/high5/wave/s3/index.js +14 -0
  44. package/lib/service/idp/oauth/index.d.ts +2 -2
  45. package/lib/service/idp/oauth/index.js +12 -13
  46. package/lib/service/idp/registration/index.d.ts +1 -1
  47. package/lib/service/idp/registration/index.js +2 -2
  48. package/lib/service/idp/user/index.d.ts +4 -0
  49. package/lib/service/idp/user/index.js +8 -0
  50. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +1 -1
  51. package/lib/service/idp/user/settings/twoFactor/totp/index.js +1 -1
  52. package/package.json +1 -1
@@ -0,0 +1,97 @@
1
+ import { AxiosInstance } from "axios";
2
+ import Base, { Options } from "../../../../Base";
3
+ import { PaginatedResponse, SearchParams } from "../../../../interfaces/global";
4
+ import { Pool, PoolChange, PoolQueryOptions, PoolTargetPatch } from "../../../../interfaces/high5/space/pool";
5
+ import { OrganizationMember } from "../../../../interfaces/idp";
6
+ export default class High5Pool extends Base {
7
+ constructor(options: Options, axios: AxiosInstance);
8
+ /**
9
+ * Get a pool from a space
10
+ *
11
+ * @param orgName - Name of the organization
12
+ * @param spaceName - Name of the space
13
+ * @param name - Name of the pool
14
+ * @returns Pool
15
+ */
16
+ getPool(orgName: string, spaceName: string, name: string): Promise<Pool>;
17
+ /**
18
+ * Replace a pool of a space
19
+ *
20
+ * @param orgName - Name of the organization
21
+ * @param spaceName - Name of the space
22
+ * @param poolName - Name of the old/current pool
23
+ * @param name - New name for the pool
24
+ * @param targets - Execution targets that compromise the pool
25
+ * @returns The new Pool
26
+ */
27
+ replacePool(orgName: string, spaceName: string, poolName: string, name: string, targets: string[]): Promise<PoolChange>;
28
+ /**
29
+ * Patch a pool of a space
30
+ *
31
+ * @param orgName - Name of the organization
32
+ * @param spaceName - Name of the space
33
+ * @param poolName - Name of the pool
34
+ * @param name - New name for the pool
35
+ * @param targets - Execution targets that compromise the pool
36
+ * @returns The patched Pool
37
+ */
38
+ patchPool(orgName: string, spaceName: string, poolName: string, name?: string, targets?: PoolTargetPatch): Promise<PoolChange>;
39
+ /**
40
+ * Delete a pool of a space
41
+ *
42
+ * @param orgName - Name of the organization
43
+ * @param spaceName - Name of the space
44
+ * @param poolName - Name of the pool
45
+ */
46
+ deletePool(orgName: string, spaceName: string, poolName: string): Promise<void>;
47
+ /**
48
+ * Retrieves all pools of a High5 Space which match the provided search filter(s). Will return all pools of the Space if no filter is provided.
49
+ *
50
+ * @param orgName Name of the Organization
51
+ * @param spaceName Name of the Space
52
+ * @param filters (optional) Array of search filters
53
+ * @param sorting (optional) Sorting object
54
+ * @param limit (optional) Max number of results (1-100; defaults to 25)
55
+ * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
56
+ * @returns Object containing an array of Pool and the total number of results found in the database (independent of limit and page)
57
+ */
58
+ searchPools({ orgName, spaceName, filters, sorting, options, limit, page, }: SearchParams & {
59
+ orgName: string;
60
+ spaceName: string;
61
+ options?: PoolQueryOptions;
62
+ }): Promise<PaginatedResponse<Pool>>;
63
+ /**
64
+ * Add a pool to a space
65
+ *
66
+ * @param orgName - Name of the organization
67
+ * @param spaceName - Name of the space
68
+ * @param name - Name of the pool
69
+ * @param targets - Execution targets that compromise the pool
70
+ * @returns The created Pool
71
+ */
72
+ addPool(orgName: string, spaceName: string, name: string, targets: string[]): Promise<PoolChange>;
73
+ /**
74
+ * Retrieves all the pools the current user is assigned to as an execution target
75
+ *
76
+ * @returns Array of pools the user is assigned to as execution target
77
+ */
78
+ getPools(): Promise<Pool[]>;
79
+ /**
80
+ * Retrieves all targets of a pool which match the provided search filter(s). Will return all targets of the pool if no filter is provided.
81
+ *
82
+ * @param orgName Name of the Organization
83
+ * @param spaceName Name of the Space
84
+ * @param poolName Name of the pool
85
+ * @param filters (optional) Array of search filters
86
+ * @param sorting (optional) Sorting object
87
+ * @param limit (optional) Max number of results (1-100; defaults to 25)
88
+ * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
89
+ * @returns Object containing an array of OrganizationMember and the total number of results found in the database (independent of limit and page)
90
+ */
91
+ searchTargetsOfPool({ orgName, spaceName, poolName, filters, sorting, limit, page, }: SearchParams & {
92
+ orgName: string;
93
+ spaceName: string;
94
+ poolName: string;
95
+ }): Promise<PaginatedResponse<OrganizationMember>>;
96
+ protected getEndpoint(endpoint: string): string;
97
+ }
@@ -0,0 +1,171 @@
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 High5Pool extends Base_1.default {
16
+ constructor(options, axios) {
17
+ super(options, axios);
18
+ }
19
+ /**
20
+ * Get a pool from a space
21
+ *
22
+ * @param orgName - Name of the organization
23
+ * @param spaceName - Name of the space
24
+ * @param name - Name of the pool
25
+ * @returns Pool
26
+ */
27
+ getPool(orgName, spaceName, name) {
28
+ return __awaiter(this, void 0, void 0, function* () {
29
+ const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/pools/${name}`));
30
+ return resp.data;
31
+ });
32
+ }
33
+ /**
34
+ * Replace a pool of a space
35
+ *
36
+ * @param orgName - Name of the organization
37
+ * @param spaceName - Name of the space
38
+ * @param poolName - Name of the old/current pool
39
+ * @param name - New name for the pool
40
+ * @param targets - Execution targets that compromise the pool
41
+ * @returns The new Pool
42
+ */
43
+ replacePool(orgName, spaceName, poolName, name, targets) {
44
+ return __awaiter(this, void 0, void 0, function* () {
45
+ const resp = yield this.axios.put(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/pools/${poolName}`), {
46
+ name,
47
+ targets,
48
+ });
49
+ return resp.data;
50
+ });
51
+ }
52
+ /**
53
+ * Patch a pool of a space
54
+ *
55
+ * @param orgName - Name of the organization
56
+ * @param spaceName - Name of the space
57
+ * @param poolName - Name of the pool
58
+ * @param name - New name for the pool
59
+ * @param targets - Execution targets that compromise the pool
60
+ * @returns The patched Pool
61
+ */
62
+ patchPool(orgName, spaceName, poolName, name, targets) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ if (name === undefined && targets === undefined) {
65
+ throw new Error("unable to patch pool when there are no arguments to send");
66
+ }
67
+ const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/pools/${poolName}`), {
68
+ name,
69
+ targets,
70
+ });
71
+ return resp.data;
72
+ });
73
+ }
74
+ /**
75
+ * Delete a pool of a space
76
+ *
77
+ * @param orgName - Name of the organization
78
+ * @param spaceName - Name of the space
79
+ * @param poolName - Name of the pool
80
+ */
81
+ deletePool(orgName, spaceName, poolName) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/pools/${poolName}`));
84
+ });
85
+ }
86
+ /**
87
+ * Retrieves all pools of a High5 Space which match the provided search filter(s). Will return all pools of the Space if no filter is provided.
88
+ *
89
+ * @param orgName Name of the Organization
90
+ * @param spaceName Name of the Space
91
+ * @param filters (optional) Array of search filters
92
+ * @param sorting (optional) Sorting object
93
+ * @param limit (optional) Max number of results (1-100; defaults to 25)
94
+ * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
95
+ * @returns Object containing an array of Pool and the total number of results found in the database (independent of limit and page)
96
+ */
97
+ searchPools(_a) {
98
+ return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, filters, sorting, options, limit = 25, page = 0, }) {
99
+ const filtersDTO = filters === null || filters === void 0 ? void 0 : filters.map((f) => new searchFilter_1.SearchFilterDTO(f));
100
+ const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/pools/search`), {
101
+ filters: filtersDTO,
102
+ sorting: sorting,
103
+ }, {
104
+ params: {
105
+ limit,
106
+ page,
107
+ totalTargetCount: options === null || options === void 0 ? void 0 : options.getTotalTargetCount,
108
+ targetsSample: options === null || options === void 0 ? void 0 : options.getTargetsSample,
109
+ },
110
+ });
111
+ return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
112
+ });
113
+ }
114
+ /**
115
+ * Add a pool to a space
116
+ *
117
+ * @param orgName - Name of the organization
118
+ * @param spaceName - Name of the space
119
+ * @param name - Name of the pool
120
+ * @param targets - Execution targets that compromise the pool
121
+ * @returns The created Pool
122
+ */
123
+ addPool(orgName, spaceName, name, targets) {
124
+ return __awaiter(this, void 0, void 0, function* () {
125
+ const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/pools`), { name, targets });
126
+ return resp.data;
127
+ });
128
+ }
129
+ /**
130
+ * Retrieves all the pools the current user is assigned to as an execution target
131
+ *
132
+ * @returns Array of pools the user is assigned to as execution target
133
+ */
134
+ getPools() {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ const resp = yield this.axios.get(this.getEndpoint("/v1/pools"));
137
+ return resp.data;
138
+ });
139
+ }
140
+ /**
141
+ * Retrieves all targets of a pool which match the provided search filter(s). Will return all targets of the pool if no filter is provided.
142
+ *
143
+ * @param orgName Name of the Organization
144
+ * @param spaceName Name of the Space
145
+ * @param poolName Name of the pool
146
+ * @param filters (optional) Array of search filters
147
+ * @param sorting (optional) Sorting object
148
+ * @param limit (optional) Max number of results (1-100; defaults to 25)
149
+ * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
150
+ * @returns Object containing an array of OrganizationMember and the total number of results found in the database (independent of limit and page)
151
+ */
152
+ searchTargetsOfPool(_a) {
153
+ return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, poolName, filters, sorting, limit = 25, page = 0, }) {
154
+ const filtersDTO = filters === null || filters === void 0 ? void 0 : filters.map((f) => new searchFilter_1.SearchFilterDTO(f));
155
+ const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/pools/${poolName}/targets/search`), {
156
+ filters: filtersDTO,
157
+ sorting: sorting,
158
+ }, {
159
+ params: {
160
+ page,
161
+ limit,
162
+ },
163
+ });
164
+ return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
165
+ });
166
+ }
167
+ getEndpoint(endpoint) {
168
+ return `${this.options.server}/api/high5${endpoint}`;
169
+ }
170
+ }
171
+ exports.default = High5Pool;
@@ -1,6 +1,6 @@
1
1
  import { AxiosInstance } from "axios";
2
2
  import Base, { Options } from "../../../../Base";
3
- import { Catalog, CatalogRegistry, Engine, EngineRegistry, StreamNodeSpecifications, StreamNodeSpecificationWrappedWithEngineVersion } from "../../../../interfaces/high5";
3
+ import { Catalog, CatalogRegistry, Engine, EngineRegistry, StreamNodeSpecifications, StreamNodeSpecificationWrappedWithEngineVersion, WildcardRegistry } from "../../../../interfaces/high5";
4
4
  /**
5
5
  * Class for reading the S3 bucket of a wave engine and catalogs
6
6
  */
@@ -30,6 +30,13 @@ export declare class S3 extends Base {
30
30
  * @returns index.json of catalog
31
31
  */
32
32
  getEngine(engineUrl: string): Promise<Engine>;
33
+ /**
34
+ * Get a list of available wildcards of a specific engine version from the S3 bucket
35
+ * @param engineUrl Public url of the engine
36
+ * @param engineVersion Version of the enigne
37
+ * @returns Wildcards.json list of available wildcards
38
+ */
39
+ getWildcardsOfEngine(engineUrl: string, engineVersion: string): Promise<WildcardRegistry>;
33
40
  /**
34
41
  * Get the node specifications of all nodes of a specific catalog version from the S3 bucket
35
42
  * @param catalogUrl Public url of the catalog
@@ -63,6 +63,20 @@ class S3 extends Base_1.default {
63
63
  return resp.data;
64
64
  });
65
65
  }
66
+ /**
67
+ * Get a list of available wildcards of a specific engine version from the S3 bucket
68
+ * @param engineUrl Public url of the engine
69
+ * @param engineVersion Version of the enigne
70
+ * @returns Wildcards.json list of available wildcards
71
+ */
72
+ getWildcardsOfEngine(engineUrl, engineVersion) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ const resp = yield this.axios.get(`${engineUrl.replace("/index.json", "")}/${engineVersion}/wildcards.json`, {
75
+ headers: axios_1.disableCacheHeaders,
76
+ });
77
+ return resp.data;
78
+ });
79
+ }
66
80
  /**
67
81
  * Get the node specifications of all nodes of a specific catalog version from the S3 bucket
68
82
  * @param catalogUrl Public url of the catalog
@@ -1,6 +1,6 @@
1
1
  import Base from "../../../Base";
2
2
  import { OAuthToken, OAuthTokenRequest } from "../../../interfaces/idp/oauth";
3
- import { OAuthAppWithConsent } from "../../../interfaces/idp/organization/settings/oauthApp";
3
+ import { OAuthAppPublicInfo } from "../../../interfaces/idp/organization/settings/oauthApp";
4
4
  export declare class IdpOAuth extends Base {
5
5
  /**
6
6
  * getAuthorizationCodeInsideRedirectUrl throws for an invalid request (query params do not match OAuthApp).
@@ -44,6 +44,6 @@ export declare class IdpOAuth extends Base {
44
44
  * @param clientId {string} - Client ID of the OAuth app
45
45
  * @returns Public OAuth app information
46
46
  */
47
- getOAuthAppInfo: (clientId: string) => Promise<OAuthAppWithConsent>;
47
+ getOAuthAppInfo(clientId: string): Promise<OAuthAppPublicInfo>;
48
48
  protected getEndpoint(endpoint: string): string;
49
49
  }
@@ -12,19 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.IdpOAuth = void 0;
13
13
  const Base_1 = require("../../../Base");
14
14
  class IdpOAuth extends Base_1.default {
15
- constructor() {
16
- super(...arguments);
17
- /**
18
- * Get OAuth app public information via client ID
19
- *
20
- * @param clientId {string} - Client ID of the OAuth app
21
- * @returns Public OAuth app information
22
- */
23
- this.getOAuthAppInfo = (clientId) => __awaiter(this, void 0, void 0, function* () {
24
- const response = yield this.axios.get(this.getEndpoint(`/v1/login/oauth/app/${clientId}`));
25
- return response.data;
26
- });
27
- }
28
15
  /**
29
16
  * getAuthorizationCodeInsideRedirectUrl throws for an invalid request (query params do not match OAuthApp).
30
17
  * It returns the redirect URL with the code, which is used to redirect to the client application,
@@ -110,6 +97,18 @@ class IdpOAuth extends Base_1.default {
110
97
  return response.data;
111
98
  });
112
99
  }
100
+ /**
101
+ * Get OAuth app public information via client ID
102
+ *
103
+ * @param clientId {string} - Client ID of the OAuth app
104
+ * @returns Public OAuth app information
105
+ */
106
+ getOAuthAppInfo(clientId) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ const response = yield this.axios.get(this.getEndpoint(`/v1/login/oauth/app/${clientId}`));
109
+ return response.data;
110
+ });
111
+ }
113
112
  getEndpoint(endpoint) {
114
113
  return `${this.options.server}/api/account${endpoint}`;
115
114
  }
@@ -13,7 +13,7 @@ export declare class IdpRegistration extends Base {
13
13
  * @param regionId - Optional region id
14
14
  * @param targetUrl Optional url the link in the mail will point to
15
15
  */
16
- register(name: string, email: string, password: string, captcha: string, company?: string, regionId?: string, targetUrl?: string): Promise<void>;
16
+ register(name: string, email: string, password: string, captcha: string, company?: string, regionId?: string, targetUrl?: string, validationCode?: string): Promise<void>;
17
17
  /**
18
18
  * Triggers the registration mail to be resend if the first one got lost
19
19
  * @param name - Name of the User
@@ -24,7 +24,7 @@ class IdpRegistration extends Base_1.default {
24
24
  * @param regionId - Optional region id
25
25
  * @param targetUrl Optional url the link in the mail will point to
26
26
  */
27
- register(name, email, password, captcha, company, regionId, targetUrl) {
27
+ register(name, email, password, captcha, company, regionId, targetUrl, validationCode) {
28
28
  return __awaiter(this, void 0, void 0, function* () {
29
29
  yield this.axios.post(this.getEndpoint("/v1/register"), {
30
30
  name: name,
@@ -34,7 +34,7 @@ class IdpRegistration extends Base_1.default {
34
34
  company,
35
35
  regionId,
36
36
  targetUrl,
37
- });
37
+ }, { params: { validationCode } });
38
38
  });
39
39
  }
40
40
  /**
@@ -79,5 +79,9 @@ export declare class IdpUser extends Base {
79
79
  limit?: number;
80
80
  page?: number;
81
81
  }): Promise<PaginatedResponse<OrganizationMemberInvitation>>;
82
+ /**
83
+ * Maintains a user's online status
84
+ */
85
+ ping(): Promise<void>;
82
86
  protected getEndpoint(endpoint: string): string;
83
87
  }
@@ -153,6 +153,14 @@ class IdpUser extends Base_1.default {
153
153
  return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
154
154
  });
155
155
  }
156
+ /**
157
+ * Maintains a user's online status
158
+ */
159
+ ping() {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ yield this.axios.get(this.getEndpoint("/v1/user/ping"));
162
+ });
163
+ }
156
164
  getEndpoint(endpoint) {
157
165
  return `${this.options.server}/api/account${endpoint}`;
158
166
  }
@@ -3,7 +3,7 @@ import { ActivatedTotp, DeactivatedTotp, UserTotp } from "../../../../../../inte
3
3
  export declare class IdpTotp extends Base {
4
4
  /**
5
5
  * Creates a new TOTP for the requesting User.
6
- * @returns A deactivated TOTP object containing a QR code and the OTPAuth URL
6
+ * @returns A deactivated TOTP object containing all necessary data to create a QR code
7
7
  */
8
8
  createTotp(): Promise<DeactivatedTotp>;
9
9
  /**
@@ -14,7 +14,7 @@ const Base_1 = require("../../../../../../Base");
14
14
  class IdpTotp extends Base_1.default {
15
15
  /**
16
16
  * Creates a new TOTP for the requesting User.
17
- * @returns A deactivated TOTP object containing a QR code and the OTPAuth URL
17
+ * @returns A deactivated TOTP object containing all necessary data to create a QR code
18
18
  */
19
19
  createTotp() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "15.0.0",
3
+ "version": "16.0.0",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",