@devopness/sdk-js 2.160.0 → 2.161.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 (32) hide show
  1. package/dist/api/generated/apis/organizations-api.d.ts +55 -0
  2. package/dist/api/generated/apis/organizations-api.js +122 -0
  3. package/dist/api/generated/apis/organizations-environments-api.d.ts +27 -0
  4. package/dist/api/generated/apis/organizations-environments-api.js +58 -0
  5. package/dist/api/generated/apis/organizations-projects-api.d.ts +27 -0
  6. package/dist/api/generated/apis/organizations-projects-api.js +58 -0
  7. package/dist/api/generated/apis/projects-api.d.ts +1 -1
  8. package/dist/api/generated/apis/projects-api.js +1 -1
  9. package/dist/api/generated/apis/users-api.d.ts +8 -8
  10. package/dist/api/generated/apis/users-api.js +5 -5
  11. package/dist/api/generated/apis/users-environments-api.d.ts +3 -3
  12. package/dist/api/generated/apis/users-environments-api.js +2 -2
  13. package/dist/api/generated/apis/users-projects-api.d.ts +3 -3
  14. package/dist/api/generated/apis/users-projects-api.js +2 -2
  15. package/dist/api/generated/models/index.d.ts +5 -0
  16. package/dist/api/generated/models/index.js +5 -0
  17. package/dist/api/generated/models/organization-activity.d.ts +46 -0
  18. package/dist/api/generated/models/organization-activity.js +14 -0
  19. package/dist/api/generated/models/organization-create.d.ts +30 -0
  20. package/dist/api/generated/models/organization-create.js +14 -0
  21. package/dist/api/generated/models/organization-relation.d.ts +48 -0
  22. package/dist/api/generated/models/organization-relation.js +14 -0
  23. package/dist/api/generated/models/organization-update.d.ts +36 -0
  24. package/dist/api/generated/models/organization-update.js +14 -0
  25. package/dist/api/generated/models/organization.d.ts +55 -0
  26. package/dist/api/generated/models/organization.js +14 -0
  27. package/dist/api/generated/models/project-create.d.ts +6 -0
  28. package/dist/api/generated/models/user-me.d.ts +6 -0
  29. package/dist/api/generated/models/user-update.d.ts +6 -0
  30. package/dist/api/generated/models/user-verify.d.ts +6 -0
  31. package/dist/api/generated/models/user.d.ts +6 -0
  32. package/package.json +7 -7
@@ -0,0 +1,55 @@
1
+ /**
2
+ * devopness API
3
+ * Devopness API - Painless essential DevOps to everyone
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ApiBaseService } from "../../../services/ApiBaseService";
13
+ import { ApiResponse } from "../../../common/ApiResponse";
14
+ import { Organization } from '../../generated/models';
15
+ import { OrganizationActivity } from '../../generated/models';
16
+ import { OrganizationCreate } from '../../generated/models';
17
+ import { OrganizationRelation } from '../../generated/models';
18
+ import { OrganizationUpdate } from '../../generated/models';
19
+ /**
20
+ * OrganizationsApiService - Auto-generated
21
+ */
22
+ export declare class OrganizationsApiService extends ApiBaseService {
23
+ /**
24
+ *
25
+ * @summary Create a new organization
26
+ * @param {OrganizationCreate} organizationCreate A JSON object containing the resource data
27
+ */
28
+ addOrganization(organizationCreate: OrganizationCreate): Promise<ApiResponse<Organization>>;
29
+ /**
30
+ *
31
+ * @summary Get an organization by ID or URL Slug
32
+ * @param {string} organizationId The numeric ID or URL Slug of an organization.
33
+ */
34
+ getOrganization(organizationId: string): Promise<ApiResponse<Organization>>;
35
+ /**
36
+ *
37
+ * @summary Get activity information for an organization
38
+ * @param {string} organizationId The numeric ID or URL Slug of an organization.
39
+ */
40
+ getOrganizationActivity(organizationId: string): Promise<ApiResponse<OrganizationActivity>>;
41
+ /**
42
+ *
43
+ * @summary List all organizations of authenticated user
44
+ * @param {number} [page] Number of the page to be retrieved
45
+ * @param {number} [perPage] Number of items returned per page
46
+ */
47
+ listOrganizations(page?: number, perPage?: number): Promise<ApiResponse<Array<OrganizationRelation>>>;
48
+ /**
49
+ *
50
+ * @summary Update an existing organization
51
+ * @param {string} organizationId The numeric ID or URL Slug of an organization.
52
+ * @param {OrganizationUpdate} organizationUpdate A JSON object containing the resource data
53
+ */
54
+ updateOrganization(organizationId: string, organizationUpdate: OrganizationUpdate): Promise<ApiResponse<void>>;
55
+ }
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /**
4
+ * devopness API
5
+ * Devopness API - Painless essential DevOps to everyone
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.OrganizationsApiService = void 0;
25
+ const ApiBaseService_1 = require("../../../services/ApiBaseService");
26
+ const ApiResponse_1 = require("../../../common/ApiResponse");
27
+ const Exceptions_1 = require("../../../common/Exceptions");
28
+ /**
29
+ * OrganizationsApiService - Auto-generated
30
+ */
31
+ class OrganizationsApiService extends ApiBaseService_1.ApiBaseService {
32
+ /**
33
+ *
34
+ * @summary Create a new organization
35
+ * @param {OrganizationCreate} organizationCreate A JSON object containing the resource data
36
+ */
37
+ addOrganization(organizationCreate) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ if (organizationCreate === null || organizationCreate === undefined) {
40
+ throw new Exceptions_1.ArgumentNullException('organizationCreate', 'addOrganization');
41
+ }
42
+ let queryString = '';
43
+ const requestUrl = '/organizations' + (queryString ? `?${queryString}` : '');
44
+ const response = yield this.post(requestUrl, organizationCreate);
45
+ return new ApiResponse_1.ApiResponse(response);
46
+ });
47
+ }
48
+ /**
49
+ *
50
+ * @summary Get an organization by ID or URL Slug
51
+ * @param {string} organizationId The numeric ID or URL Slug of an organization.
52
+ */
53
+ getOrganization(organizationId) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ if (organizationId === null || organizationId === undefined) {
56
+ throw new Exceptions_1.ArgumentNullException('organizationId', 'getOrganization');
57
+ }
58
+ let queryString = '';
59
+ const requestUrl = '/organizations/{organization_id}' + (queryString ? `?${queryString}` : '');
60
+ const response = yield this.get(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))));
61
+ return new ApiResponse_1.ApiResponse(response);
62
+ });
63
+ }
64
+ /**
65
+ *
66
+ * @summary Get activity information for an organization
67
+ * @param {string} organizationId The numeric ID or URL Slug of an organization.
68
+ */
69
+ getOrganizationActivity(organizationId) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ if (organizationId === null || organizationId === undefined) {
72
+ throw new Exceptions_1.ArgumentNullException('organizationId', 'getOrganizationActivity');
73
+ }
74
+ let queryString = '';
75
+ const requestUrl = '/organizations/{organization_id}/activity' + (queryString ? `?${queryString}` : '');
76
+ const response = yield this.get(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))));
77
+ return new ApiResponse_1.ApiResponse(response);
78
+ });
79
+ }
80
+ /**
81
+ *
82
+ * @summary List all organizations of authenticated user
83
+ * @param {number} [page] Number of the page to be retrieved
84
+ * @param {number} [perPage] Number of items returned per page
85
+ */
86
+ listOrganizations(page, perPage) {
87
+ return __awaiter(this, void 0, void 0, function* () {
88
+ let queryString = '';
89
+ const queryParams = { page: page, per_page: perPage, };
90
+ for (const key in queryParams) {
91
+ if (queryParams[key] === undefined || queryParams[key] === null) {
92
+ continue;
93
+ }
94
+ queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
95
+ }
96
+ const requestUrl = '/organizations' + (queryString ? `?${queryString}` : '');
97
+ const response = yield this.get(requestUrl);
98
+ return new ApiResponse_1.ApiResponse(response);
99
+ });
100
+ }
101
+ /**
102
+ *
103
+ * @summary Update an existing organization
104
+ * @param {string} organizationId The numeric ID or URL Slug of an organization.
105
+ * @param {OrganizationUpdate} organizationUpdate A JSON object containing the resource data
106
+ */
107
+ updateOrganization(organizationId, organizationUpdate) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ if (organizationId === null || organizationId === undefined) {
110
+ throw new Exceptions_1.ArgumentNullException('organizationId', 'updateOrganization');
111
+ }
112
+ if (organizationUpdate === null || organizationUpdate === undefined) {
113
+ throw new Exceptions_1.ArgumentNullException('organizationUpdate', 'updateOrganization');
114
+ }
115
+ let queryString = '';
116
+ const requestUrl = '/organizations/{organization_id}' + (queryString ? `?${queryString}` : '');
117
+ const response = yield this.put(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))), organizationUpdate);
118
+ return new ApiResponse_1.ApiResponse(response);
119
+ });
120
+ }
121
+ }
122
+ exports.OrganizationsApiService = OrganizationsApiService;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * devopness API
3
+ * Devopness API - Painless essential DevOps to everyone
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ApiBaseService } from "../../../services/ApiBaseService";
13
+ import { ApiResponse } from "../../../common/ApiResponse";
14
+ import { EnvironmentRelation } from '../../generated/models';
15
+ /**
16
+ * OrganizationsEnvironmentsApiService - Auto-generated
17
+ */
18
+ export declare class OrganizationsEnvironmentsApiService extends ApiBaseService {
19
+ /**
20
+ *
21
+ * @summary Return a list of all environments owned by an organization
22
+ * @param {string} organizationId The numeric ID or URL Slug of an organization.
23
+ * @param {number} [page] Number of the page to be retrieved
24
+ * @param {number} [perPage] Number of items returned per page
25
+ */
26
+ listOrganizationEnvironments(organizationId: string, page?: number, perPage?: number): Promise<ApiResponse<Array<EnvironmentRelation>>>;
27
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /**
4
+ * devopness API
5
+ * Devopness API - Painless essential DevOps to everyone
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.OrganizationsEnvironmentsApiService = void 0;
25
+ const ApiBaseService_1 = require("../../../services/ApiBaseService");
26
+ const ApiResponse_1 = require("../../../common/ApiResponse");
27
+ const Exceptions_1 = require("../../../common/Exceptions");
28
+ /**
29
+ * OrganizationsEnvironmentsApiService - Auto-generated
30
+ */
31
+ class OrganizationsEnvironmentsApiService extends ApiBaseService_1.ApiBaseService {
32
+ /**
33
+ *
34
+ * @summary Return a list of all environments owned by an organization
35
+ * @param {string} organizationId The numeric ID or URL Slug of an organization.
36
+ * @param {number} [page] Number of the page to be retrieved
37
+ * @param {number} [perPage] Number of items returned per page
38
+ */
39
+ listOrganizationEnvironments(organizationId, page, perPage) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ if (organizationId === null || organizationId === undefined) {
42
+ throw new Exceptions_1.ArgumentNullException('organizationId', 'listOrganizationEnvironments');
43
+ }
44
+ let queryString = '';
45
+ const queryParams = { page: page, per_page: perPage, };
46
+ for (const key in queryParams) {
47
+ if (queryParams[key] === undefined || queryParams[key] === null) {
48
+ continue;
49
+ }
50
+ queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
51
+ }
52
+ const requestUrl = '/organizations/{organization_id}/environments' + (queryString ? `?${queryString}` : '');
53
+ const response = yield this.get(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))));
54
+ return new ApiResponse_1.ApiResponse(response);
55
+ });
56
+ }
57
+ }
58
+ exports.OrganizationsEnvironmentsApiService = OrganizationsEnvironmentsApiService;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * devopness API
3
+ * Devopness API - Painless essential DevOps to everyone
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ApiBaseService } from "../../../services/ApiBaseService";
13
+ import { ApiResponse } from "../../../common/ApiResponse";
14
+ import { ProjectRelation } from '../../generated/models';
15
+ /**
16
+ * OrganizationsProjectsApiService - Auto-generated
17
+ */
18
+ export declare class OrganizationsProjectsApiService extends ApiBaseService {
19
+ /**
20
+ *
21
+ * @summary Return a list of all projects owned by an organization
22
+ * @param {string} organizationId The numeric ID or URL Slug of an organization.
23
+ * @param {number} [page] Number of the page to be retrieved
24
+ * @param {number} [perPage] Number of items returned per page
25
+ */
26
+ listOrganizationProjects(organizationId: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ProjectRelation>>>;
27
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /**
4
+ * devopness API
5
+ * Devopness API - Painless essential DevOps to everyone
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.OrganizationsProjectsApiService = void 0;
25
+ const ApiBaseService_1 = require("../../../services/ApiBaseService");
26
+ const ApiResponse_1 = require("../../../common/ApiResponse");
27
+ const Exceptions_1 = require("../../../common/Exceptions");
28
+ /**
29
+ * OrganizationsProjectsApiService - Auto-generated
30
+ */
31
+ class OrganizationsProjectsApiService extends ApiBaseService_1.ApiBaseService {
32
+ /**
33
+ *
34
+ * @summary Return a list of all projects owned by an organization
35
+ * @param {string} organizationId The numeric ID or URL Slug of an organization.
36
+ * @param {number} [page] Number of the page to be retrieved
37
+ * @param {number} [perPage] Number of items returned per page
38
+ */
39
+ listOrganizationProjects(organizationId, page, perPage) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ if (organizationId === null || organizationId === undefined) {
42
+ throw new Exceptions_1.ArgumentNullException('organizationId', 'listOrganizationProjects');
43
+ }
44
+ let queryString = '';
45
+ const queryParams = { page: page, per_page: perPage, };
46
+ for (const key in queryParams) {
47
+ if (queryParams[key] === undefined || queryParams[key] === null) {
48
+ continue;
49
+ }
50
+ queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
51
+ }
52
+ const requestUrl = '/organizations/{organization_id}/projects' + (queryString ? `?${queryString}` : '');
53
+ const response = yield this.get(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))));
54
+ return new ApiResponse_1.ApiResponse(response);
55
+ });
56
+ }
57
+ }
58
+ exports.OrganizationsProjectsApiService = OrganizationsProjectsApiService;
@@ -21,7 +21,7 @@ import { ProjectUpdate } from '../../generated/models';
21
21
  export declare class ProjectsApiService extends ApiBaseService {
22
22
  /**
23
23
  *
24
- * @summary Create a project
24
+ * @summary Create a project for a user or an organization
25
25
  * @param {ProjectCreate} projectCreate A JSON object containing the resource data
26
26
  */
27
27
  addProject(projectCreate: ProjectCreate): Promise<ApiResponse<Project>>;
@@ -31,7 +31,7 @@ const Exceptions_1 = require("../../../common/Exceptions");
31
31
  class ProjectsApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
- * @summary Create a project
34
+ * @summary Create a project for a user or an organization
35
35
  * @param {ProjectCreate} projectCreate A JSON object containing the resource data
36
36
  */
37
37
  addProject(projectCreate) {
@@ -36,16 +36,16 @@ export declare class UsersApiService extends ApiBaseService {
36
36
  addUser(userCreate: UserCreate): Promise<ApiResponse<void>>;
37
37
  /**
38
38
  *
39
- * @summary Get a user by ID
40
- * @param {number} userId The ID of the user.
39
+ * @summary Get a user by ID or URL Slug
40
+ * @param {string} userId The numeric ID or URL Slug of a user.
41
41
  */
42
- getUser(userId: number): Promise<ApiResponse<User>>;
42
+ getUser(userId: string): Promise<ApiResponse<User>>;
43
43
  /**
44
44
  *
45
- * @summary Get current user\'s activity info
46
- * @param {number} userId The ID of the user.
45
+ * @summary Get activity information for a user
46
+ * @param {string} userId The numeric ID or URL Slug of a user.
47
47
  */
48
- getUserActivity(userId: number): Promise<ApiResponse<UserActivity>>;
48
+ getUserActivity(userId: string): Promise<ApiResponse<UserActivity>>;
49
49
  /**
50
50
  *
51
51
  * @summary Get current user\'s billing info for active subscription
@@ -87,10 +87,10 @@ export declare class UsersApiService extends ApiBaseService {
87
87
  /**
88
88
  *
89
89
  * @summary Update an existing user
90
- * @param {number} userId The ID of the user.
90
+ * @param {string} userId The ID of the user.
91
91
  * @param {UserUpdate} userUpdate A JSON object containing the resource data
92
92
  */
93
- updateUser(userId: number, userUpdate: UserUpdate): Promise<ApiResponse<void>>;
93
+ updateUser(userId: string, userUpdate: UserUpdate): Promise<ApiResponse<void>>;
94
94
  /**
95
95
  *
96
96
  * @summary Activate the user account
@@ -47,8 +47,8 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
47
47
  }
48
48
  /**
49
49
  *
50
- * @summary Get a user by ID
51
- * @param {number} userId The ID of the user.
50
+ * @summary Get a user by ID or URL Slug
51
+ * @param {string} userId The numeric ID or URL Slug of a user.
52
52
  */
53
53
  getUser(userId) {
54
54
  return __awaiter(this, void 0, void 0, function* () {
@@ -63,8 +63,8 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
63
63
  }
64
64
  /**
65
65
  *
66
- * @summary Get current user\'s activity info
67
- * @param {number} userId The ID of the user.
66
+ * @summary Get activity information for a user
67
+ * @param {string} userId The numeric ID or URL Slug of a user.
68
68
  */
69
69
  getUserActivity(userId) {
70
70
  return __awaiter(this, void 0, void 0, function* () {
@@ -176,7 +176,7 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
176
176
  /**
177
177
  *
178
178
  * @summary Update an existing user
179
- * @param {number} userId The ID of the user.
179
+ * @param {string} userId The ID of the user.
180
180
  * @param {UserUpdate} userUpdate A JSON object containing the resource data
181
181
  */
182
182
  updateUser(userId, userUpdate) {
@@ -18,11 +18,11 @@ import { EnvironmentRelation } from '../../generated/models';
18
18
  export declare class UsersEnvironmentsApiService extends ApiBaseService {
19
19
  /**
20
20
  *
21
- * @summary Return a list of all environments owned by the current user
22
- * @param {number} userId The ID of the user.
21
+ * @summary Return a list of all environments owned by a user
22
+ * @param {string} userId The numeric ID or URL Slug of a user.
23
23
  * @param {number} [page] Number of the page to be retrieved
24
24
  * @param {number} [perPage] Number of items returned per page
25
25
  * @param {number} [subscriptionId] ID of a user subscription to calculate the amount of credits used from that subscription on each user environment. If provided, and being a valid subscription belonging to current user, the \&#39;used_credits\&#39; field will be added to the response.
26
26
  */
27
- listUserEnvironments(userId: number, page?: number, perPage?: number, subscriptionId?: number): Promise<ApiResponse<Array<EnvironmentRelation>>>;
27
+ listUserEnvironments(userId: string, page?: number, perPage?: number, subscriptionId?: number): Promise<ApiResponse<Array<EnvironmentRelation>>>;
28
28
  }
@@ -31,8 +31,8 @@ const Exceptions_1 = require("../../../common/Exceptions");
31
31
  class UsersEnvironmentsApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
- * @summary Return a list of all environments owned by the current user
35
- * @param {number} userId The ID of the user.
34
+ * @summary Return a list of all environments owned by a user
35
+ * @param {string} userId The numeric ID or URL Slug of a user.
36
36
  * @param {number} [page] Number of the page to be retrieved
37
37
  * @param {number} [perPage] Number of items returned per page
38
38
  * @param {number} [subscriptionId] ID of a user subscription to calculate the amount of credits used from that subscription on each user environment. If provided, and being a valid subscription belonging to current user, the \&#39;used_credits\&#39; field will be added to the response.
@@ -18,11 +18,11 @@ import { ProjectRelation } from '../../generated/models';
18
18
  export declare class UsersProjectsApiService extends ApiBaseService {
19
19
  /**
20
20
  *
21
- * @summary Return a list of all projects owned by the current user
22
- * @param {number} userId The ID of the user.
21
+ * @summary Return a list of all projects owned by a user
22
+ * @param {string} userId The numeric ID or URL Slug of a user.
23
23
  * @param {number} [page] Number of the page to be retrieved
24
24
  * @param {number} [perPage] Number of items returned per page
25
25
  * @param {number} [subscriptionId] ID of a user subscription to calculate the amount of credits used from that subscription on each user project. If provided, and being a valid subscription belonging to current user, the \&#39;used_credits\&#39; field will be added to the response.
26
26
  */
27
- listUserProjects(userId: number, page?: number, perPage?: number, subscriptionId?: number): Promise<ApiResponse<Array<ProjectRelation>>>;
27
+ listUserProjects(userId: string, page?: number, perPage?: number, subscriptionId?: number): Promise<ApiResponse<Array<ProjectRelation>>>;
28
28
  }
@@ -31,8 +31,8 @@ const Exceptions_1 = require("../../../common/Exceptions");
31
31
  class UsersProjectsApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
- * @summary Return a list of all projects owned by the current user
35
- * @param {number} userId The ID of the user.
34
+ * @summary Return a list of all projects owned by a user
35
+ * @param {string} userId The numeric ID or URL Slug of a user.
36
36
  * @param {number} [page] Number of the page to be retrieved
37
37
  * @param {number} [perPage] Number of items returned per page
38
38
  * @param {number} [subscriptionId] ID of a user subscription to calculate the amount of credits used from that subscription on each user project. If provided, and being a valid subscription belonging to current user, the \&#39;used_credits\&#39; field will be added to the response.
@@ -141,6 +141,11 @@ export * from './network-update';
141
141
  export * from './operating-system';
142
142
  export * from './operating-system-version';
143
143
  export * from './operation-custom-settings';
144
+ export * from './organization';
145
+ export * from './organization-activity';
146
+ export * from './organization-create';
147
+ export * from './organization-relation';
148
+ export * from './organization-update';
144
149
  export * from './password-reset-response';
145
150
  export * from './password-user-reset';
146
151
  export * from './password-user-send-reset-link';
@@ -157,6 +157,11 @@ __exportStar(require("./network-update"), exports);
157
157
  __exportStar(require("./operating-system"), exports);
158
158
  __exportStar(require("./operating-system-version"), exports);
159
159
  __exportStar(require("./operation-custom-settings"), exports);
160
+ __exportStar(require("./organization"), exports);
161
+ __exportStar(require("./organization-activity"), exports);
162
+ __exportStar(require("./organization-create"), exports);
163
+ __exportStar(require("./organization-relation"), exports);
164
+ __exportStar(require("./organization-update"), exports);
160
165
  __exportStar(require("./password-reset-response"), exports);
161
166
  __exportStar(require("./password-user-reset"), exports);
162
167
  __exportStar(require("./password-user-send-reset-link"), exports);
@@ -0,0 +1,46 @@
1
+ /**
2
+ * devopness API
3
+ * Devopness API - Painless essential DevOps to everyone
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { TriggeredActions } from './triggered-actions';
13
+ import { UserEnvironmentStats } from './user-environment-stats';
14
+ import { UserProjectStats } from './user-project-stats';
15
+ import { UserTeamStats } from './user-team-stats';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface OrganizationActivity
20
+ */
21
+ export interface OrganizationActivity {
22
+ /**
23
+ *
24
+ * @type {UserProjectStats}
25
+ * @memberof OrganizationActivity
26
+ */
27
+ projects: UserProjectStats;
28
+ /**
29
+ *
30
+ * @type {UserEnvironmentStats}
31
+ * @memberof OrganizationActivity
32
+ */
33
+ environments: UserEnvironmentStats;
34
+ /**
35
+ *
36
+ * @type {UserTeamStats}
37
+ * @memberof OrganizationActivity
38
+ */
39
+ teams: UserTeamStats;
40
+ /**
41
+ *
42
+ * @type {TriggeredActions}
43
+ * @memberof OrganizationActivity
44
+ */
45
+ triggered_actions: TriggeredActions;
46
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /**
4
+ * devopness API
5
+ * Devopness API - Painless essential DevOps to everyone
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
1
+ /**
2
+ * devopness API
3
+ * Devopness API - Painless essential DevOps to everyone
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface OrganizationCreate
16
+ */
17
+ export interface OrganizationCreate {
18
+ /**
19
+ * The Name of the organization. Must not be greater than 255 characters.
20
+ * @type {string}
21
+ * @memberof OrganizationCreate
22
+ */
23
+ name: string;
24
+ /**
25
+ * The URL Slug of the organization. Must not be greater than 255 characters.
26
+ * @type {string}
27
+ * @memberof OrganizationCreate
28
+ */
29
+ url_slug: string;
30
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /**
4
+ * devopness API
5
+ * Devopness API - Painless essential DevOps to everyone
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,48 @@
1
+ /**
2
+ * devopness API
3
+ * Devopness API - Painless essential DevOps to everyone
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface OrganizationRelation
16
+ */
17
+ export interface OrganizationRelation {
18
+ /**
19
+ * The unique identifier for the organization
20
+ * @type {number}
21
+ * @memberof OrganizationRelation
22
+ */
23
+ id: number;
24
+ /**
25
+ * The name of the organization
26
+ * @type {string}
27
+ * @memberof OrganizationRelation
28
+ */
29
+ name: string;
30
+ /**
31
+ * The URL Slug of the organization
32
+ * @type {string}
33
+ * @memberof OrganizationRelation
34
+ */
35
+ url_slug: string;
36
+ /**
37
+ * The date and time when the organization was created
38
+ * @type {string}
39
+ * @memberof OrganizationRelation
40
+ */
41
+ created_at: string;
42
+ /**
43
+ * The date and time when the organization was last updated
44
+ * @type {string}
45
+ * @memberof OrganizationRelation
46
+ */
47
+ updated_at: string;
48
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /**
4
+ * devopness API
5
+ * Devopness API - Painless essential DevOps to everyone
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * devopness API
3
+ * Devopness API - Painless essential DevOps to everyone
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface OrganizationUpdate
16
+ */
17
+ export interface OrganizationUpdate {
18
+ /**
19
+ * The unique ID of the given Organization.
20
+ * @type {string}
21
+ * @memberof OrganizationUpdate
22
+ */
23
+ id: string;
24
+ /**
25
+ * The Name of the organization. Must not be greater than 255 characters.
26
+ * @type {string}
27
+ * @memberof OrganizationUpdate
28
+ */
29
+ name: string;
30
+ /**
31
+ * The URL Slug of the organization. Must not be greater than 255 characters.
32
+ * @type {string}
33
+ * @memberof OrganizationUpdate
34
+ */
35
+ url_slug: string;
36
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /**
4
+ * devopness API
5
+ * Devopness API - Painless essential DevOps to everyone
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,55 @@
1
+ /**
2
+ * devopness API
3
+ * Devopness API - Painless essential DevOps to everyone
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { UserRelation } from './user-relation';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Organization
17
+ */
18
+ export interface Organization {
19
+ /**
20
+ * The unique identifier for the organization
21
+ * @type {number}
22
+ * @memberof Organization
23
+ */
24
+ id: number;
25
+ /**
26
+ * The name of the organization
27
+ * @type {string}
28
+ * @memberof Organization
29
+ */
30
+ name: string;
31
+ /**
32
+ * The URL Slug of the organization
33
+ * @type {string}
34
+ * @memberof Organization
35
+ */
36
+ url_slug: string;
37
+ /**
38
+ *
39
+ * @type {UserRelation}
40
+ * @memberof Organization
41
+ */
42
+ owner: UserRelation;
43
+ /**
44
+ * The date and time when the organization was created
45
+ * @type {string}
46
+ * @memberof Organization
47
+ */
48
+ created_at: string;
49
+ /**
50
+ * The date and time when the organization was last updated
51
+ * @type {string}
52
+ * @memberof Organization
53
+ */
54
+ updated_at: string;
55
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /**
4
+ * devopness API
5
+ * Devopness API - Painless essential DevOps to everyone
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -21,6 +21,12 @@ export interface ProjectCreate {
21
21
  * @memberof ProjectCreate
22
22
  */
23
23
  name: string;
24
+ /**
25
+ * The ID of the organization that owns the project.
26
+ * @type {number}
27
+ * @memberof ProjectCreate
28
+ */
29
+ organization_id?: number;
24
30
  /**
25
31
  * A base64 string representation of the logo image.
26
32
  * @type {string}
@@ -35,6 +35,12 @@ export interface UserMe {
35
35
  * @memberof UserMe
36
36
  */
37
37
  email: string;
38
+ /**
39
+ * The URL Slug of the user
40
+ * @type {string}
41
+ * @memberof UserMe
42
+ */
43
+ url_slug: string;
38
44
  /**
39
45
  *
40
46
  * @type {Language}
@@ -34,6 +34,12 @@ export interface UserUpdate {
34
34
  * @memberof UserUpdate
35
35
  */
36
36
  email: string;
37
+ /**
38
+ * The URL Slug of the user. Must not be greater than 255 characters.
39
+ * @type {string}
40
+ * @memberof UserUpdate
41
+ */
42
+ url_slug: string;
37
43
  /**
38
44
  *
39
45
  * @type {Language}
@@ -33,6 +33,12 @@ export interface UserVerify {
33
33
  * @memberof UserVerify
34
34
  */
35
35
  name: string;
36
+ /**
37
+ * The URL Slug of the account. Must not be greater than 255 characters.
38
+ * @type {string}
39
+ * @memberof UserVerify
40
+ */
41
+ url_slug?: string;
36
42
  /**
37
43
  * The new password to account. Must be at least 8 characters.
38
44
  * @type {string}
@@ -35,6 +35,12 @@ export interface User {
35
35
  * @memberof User
36
36
  */
37
37
  email: string;
38
+ /**
39
+ * The URL Slug of the user
40
+ * @type {string}
41
+ * @memberof User
42
+ */
43
+ url_slug: string;
38
44
  /**
39
45
  *
40
46
  * @type {Language}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@devopness/sdk-js",
4
- "version": "2.160.0",
4
+ "version": "2.161.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -54,19 +54,19 @@
54
54
  "@eslint/js": "^9.22.0",
55
55
  "@openapitools/openapi-generator-cli": "^2.18.4",
56
56
  "@types/jest": "^29.5.12",
57
- "@typescript-eslint/parser": "^8.27.0",
57
+ "@typescript-eslint/parser": "^8.29.0",
58
58
  "axios-mock-adapter": "^2.1.0",
59
- "eslint": "^9.22.0",
60
- "eslint-import-resolver-typescript": "^4.2.2",
59
+ "eslint": "^9.23.0",
60
+ "eslint-import-resolver-typescript": "^4.3.1",
61
61
  "eslint-plugin-import": "^2.31.0",
62
- "eslint-plugin-n": "^17.16.2",
62
+ "eslint-plugin-n": "^17.17.0",
63
63
  "eslint-plugin-promise": "^7.2.1",
64
64
  "husky": "9.1.7",
65
65
  "jest": "^29.7.0",
66
- "ts-jest": "^29.2.6",
66
+ "ts-jest": "^29.3.1",
67
67
  "typedoc": "^0.28.1",
68
68
  "typescript": "^5.8.2",
69
- "typescript-eslint": "^8.27.0"
69
+ "typescript-eslint": "^8.29.0"
70
70
  },
71
71
  "dependencies": {
72
72
  "@types/parse-link-header": "^2.0.3",