@devopness/sdk-js 2.164.7 → 2.164.9
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.
- package/dist/api/generated/apis/{projects-api-tokens-api.d.ts → projects-apitokens-api.d.ts} +7 -7
- package/dist/api/generated/apis/{projects-api-tokens-api.js → projects-apitokens-api.js} +9 -9
- package/dist/api/generated/models/api-token-project-create.d.ts +3 -4
- package/dist/api/generated/models/api-token-project-rotate.d.ts +3 -4
- package/dist/api/generated/models/api-token-type.d.ts +2 -2
- package/dist/api/generated/models/api-token-type.js +2 -2
- package/dist/api/generated/models/index.d.ts +0 -1
- package/dist/api/generated/models/index.js +0 -1
- package/dist/api/generated/models/personal-access-token-user-create.d.ts +3 -4
- package/dist/api/generated/models/personal-access-token-user-rotate.d.ts +3 -4
- package/dist/services/ApiTokenService.d.ts +2 -2
- package/dist/services/ApiTokenService.js +2 -2
- package/package.json +3 -3
- package/dist/api/generated/models/api-token-allowed-expiration.d.ts +0 -23
- package/dist/api/generated/models/api-token-allowed-expiration.js +0 -28
package/dist/api/generated/apis/{projects-api-tokens-api.d.ts → projects-apitokens-api.d.ts}
RENAMED
|
@@ -17,26 +17,26 @@ import { ApiTokenProjectRotate } from '../../generated/models';
|
|
|
17
17
|
import { ApiTokenRelation } from '../../generated/models';
|
|
18
18
|
import { ApiTokenRotateResponse } from '../../generated/models';
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* ProjectsAPITokensApiService - Auto-generated
|
|
21
21
|
*/
|
|
22
|
-
export declare class
|
|
22
|
+
export declare class ProjectsAPITokensApiService extends ApiBaseService {
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
|
-
* @summary Create a new
|
|
25
|
+
* @summary Create a new API token for specific project.
|
|
26
26
|
* @param {number} projectId The ID of the project.
|
|
27
27
|
* @param {ApiTokenProjectCreate} apiTokenProjectCreate A JSON object containing the resource data
|
|
28
28
|
*/
|
|
29
29
|
addProjectApiToken(projectId: number, apiTokenProjectCreate: ApiTokenProjectCreate): Promise<ApiResponse<ApiToken>>;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @summary Get details of a specific project
|
|
32
|
+
* @summary Get details of a specific project API token.
|
|
33
33
|
* @param {number} projectId The ID of the project.
|
|
34
34
|
* @param {string} tokenId The ID of the token.
|
|
35
35
|
*/
|
|
36
36
|
getProjectApiToken(projectId: number, tokenId: string): Promise<ApiResponse<ApiToken>>;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @summary List the
|
|
39
|
+
* @summary List the API tokens of specific project.
|
|
40
40
|
* @param {number} projectId The ID of the project.
|
|
41
41
|
* @param {number} [page] Number of the page to be retrieved
|
|
42
42
|
* @param {number} [perPage] Number of items returned per page
|
|
@@ -44,14 +44,14 @@ export declare class ProjectsApiTokensApiService extends ApiBaseService {
|
|
|
44
44
|
listProjectApiTokens(projectId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<ApiTokenRelation>>>;
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
47
|
-
* @summary Revoke a specific project
|
|
47
|
+
* @summary Revoke a specific project API token.
|
|
48
48
|
* @param {number} projectId The ID of the project.
|
|
49
49
|
* @param {string} tokenId The ID of the token.
|
|
50
50
|
*/
|
|
51
51
|
revokeProjectApiToken(projectId: number, tokenId: string): Promise<ApiResponse<void>>;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @summary Rotate a specific project
|
|
54
|
+
* @summary Rotate a specific project API token.
|
|
55
55
|
* @param {number} projectId The ID of the project.
|
|
56
56
|
* @param {string} tokenId The ID of the token.
|
|
57
57
|
* @param {ApiTokenProjectRotate} apiTokenProjectRotate A JSON object containing the resource data
|
|
@@ -21,17 +21,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.
|
|
24
|
+
exports.ProjectsAPITokensApiService = void 0;
|
|
25
25
|
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
26
|
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
27
|
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* ProjectsAPITokensApiService - Auto-generated
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class ProjectsAPITokensApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary Create a new
|
|
34
|
+
* @summary Create a new API token for specific project.
|
|
35
35
|
* @param {number} projectId The ID of the project.
|
|
36
36
|
* @param {ApiTokenProjectCreate} apiTokenProjectCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
@@ -51,7 +51,7 @@ class ProjectsApiTokensApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @summary Get details of a specific project
|
|
54
|
+
* @summary Get details of a specific project API token.
|
|
55
55
|
* @param {number} projectId The ID of the project.
|
|
56
56
|
* @param {string} tokenId The ID of the token.
|
|
57
57
|
*/
|
|
@@ -71,7 +71,7 @@ class ProjectsApiTokensApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
|
-
* @summary List the
|
|
74
|
+
* @summary List the API tokens of specific project.
|
|
75
75
|
* @param {number} projectId The ID of the project.
|
|
76
76
|
* @param {number} [page] Number of the page to be retrieved
|
|
77
77
|
* @param {number} [perPage] Number of items returned per page
|
|
@@ -96,7 +96,7 @@ class ProjectsApiTokensApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
|
-
* @summary Revoke a specific project
|
|
99
|
+
* @summary Revoke a specific project API token.
|
|
100
100
|
* @param {number} projectId The ID of the project.
|
|
101
101
|
* @param {string} tokenId The ID of the token.
|
|
102
102
|
*/
|
|
@@ -116,7 +116,7 @@ class ProjectsApiTokensApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
*
|
|
119
|
-
* @summary Rotate a specific project
|
|
119
|
+
* @summary Rotate a specific project API token.
|
|
120
120
|
* @param {number} projectId The ID of the project.
|
|
121
121
|
* @param {string} tokenId The ID of the token.
|
|
122
122
|
* @param {ApiTokenProjectRotate} apiTokenProjectRotate A JSON object containing the resource data
|
|
@@ -139,4 +139,4 @@ class ProjectsApiTokensApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
exports.
|
|
142
|
+
exports.ProjectsAPITokensApiService = ProjectsAPITokensApiService;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ApiTokenAllowedExpiration } from './api-token-allowed-expiration';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -29,9 +28,9 @@ export interface ApiTokenProjectCreate {
|
|
|
29
28
|
*/
|
|
30
29
|
role_id: number;
|
|
31
30
|
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {
|
|
31
|
+
* The date and time when the token expires. Must be a valid date. Must be a date after <code>now</code>. Must be a date before <code>now +1 year</code>.
|
|
32
|
+
* @type {string}
|
|
34
33
|
* @memberof ApiTokenProjectCreate
|
|
35
34
|
*/
|
|
36
|
-
|
|
35
|
+
expires_at: string;
|
|
37
36
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ApiTokenAllowedExpiration } from './api-token-allowed-expiration';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -23,9 +22,9 @@ export interface ApiTokenProjectRotate {
|
|
|
23
22
|
*/
|
|
24
23
|
id: string;
|
|
25
24
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {
|
|
25
|
+
* The date and time when the token expires. Must be a valid date. Must be a date after <code>now</code>. Must be a date before <code>now +1 year</code>.
|
|
26
|
+
* @type {string}
|
|
28
27
|
* @memberof ApiTokenProjectRotate
|
|
29
28
|
*/
|
|
30
|
-
|
|
29
|
+
expires_at: string;
|
|
31
30
|
}
|
|
@@ -20,6 +20,6 @@ exports.ApiTokenType = void 0;
|
|
|
20
20
|
*/
|
|
21
21
|
var ApiTokenType;
|
|
22
22
|
(function (ApiTokenType) {
|
|
23
|
-
ApiTokenType["PersonalAccessToken"] = "
|
|
24
|
-
ApiTokenType["ProjectApiToken"] = "
|
|
23
|
+
ApiTokenType["PersonalAccessToken"] = "personal_access_token";
|
|
24
|
+
ApiTokenType["ProjectApiToken"] = "project_api_token";
|
|
25
25
|
})(ApiTokenType || (exports.ApiTokenType = ApiTokenType = {}));
|
|
@@ -27,7 +27,6 @@ export * from './api-error';
|
|
|
27
27
|
export * from './api-error-errors';
|
|
28
28
|
export * from './api-error-errors-field-name';
|
|
29
29
|
export * from './api-token';
|
|
30
|
-
export * from './api-token-allowed-expiration';
|
|
31
30
|
export * from './api-token-project-create';
|
|
32
31
|
export * from './api-token-project-rotate';
|
|
33
32
|
export * from './api-token-relation';
|
|
@@ -43,7 +43,6 @@ __exportStar(require("./api-error"), exports);
|
|
|
43
43
|
__exportStar(require("./api-error-errors"), exports);
|
|
44
44
|
__exportStar(require("./api-error-errors-field-name"), exports);
|
|
45
45
|
__exportStar(require("./api-token"), exports);
|
|
46
|
-
__exportStar(require("./api-token-allowed-expiration"), exports);
|
|
47
46
|
__exportStar(require("./api-token-project-create"), exports);
|
|
48
47
|
__exportStar(require("./api-token-project-rotate"), exports);
|
|
49
48
|
__exportStar(require("./api-token-relation"), exports);
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ApiTokenAllowedExpiration } from './api-token-allowed-expiration';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -23,9 +22,9 @@ export interface PersonalAccessTokenUserCreate {
|
|
|
23
22
|
*/
|
|
24
23
|
name: string;
|
|
25
24
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {
|
|
25
|
+
* The date and time when the token expires. Must be a valid date. Must be a date after <code>now</code>. Must be a date before <code>now +1 year</code>.
|
|
26
|
+
* @type {string}
|
|
28
27
|
* @memberof PersonalAccessTokenUserCreate
|
|
29
28
|
*/
|
|
30
|
-
|
|
29
|
+
expires_at: string;
|
|
31
30
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ApiTokenAllowedExpiration } from './api-token-allowed-expiration';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -23,9 +22,9 @@ export interface PersonalAccessTokenUserRotate {
|
|
|
23
22
|
*/
|
|
24
23
|
id: string;
|
|
25
24
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {
|
|
25
|
+
* The date and time when the token expires. Must be a valid date. Must be a date after <code>now</code>. Must be a date before <code>now +1 year</code>.
|
|
26
|
+
* @type {string}
|
|
28
27
|
* @memberof PersonalAccessTokenUserRotate
|
|
29
28
|
*/
|
|
30
|
-
|
|
29
|
+
expires_at: string;
|
|
31
30
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiBaseService } from "./ApiBaseService";
|
|
2
|
-
import {
|
|
2
|
+
import { ProjectsAPITokensApiService } from "../api/generated/apis/projects-apitokens-api";
|
|
3
3
|
import { UsersPersonalAccessTokensApiService } from "../api/generated/apis/users-personal-access-tokens-api";
|
|
4
4
|
export declare class ApiTokenService extends ApiBaseService {
|
|
5
5
|
}
|
|
6
|
-
export interface ApiTokenService extends
|
|
6
|
+
export interface ApiTokenService extends ProjectsAPITokensApiService, UsersPersonalAccessTokensApiService {
|
|
7
7
|
}
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ApiTokenService = void 0;
|
|
4
4
|
const ApiBaseService_1 = require("./ApiBaseService");
|
|
5
5
|
const MergeSiblingClasses_1 = require("../common/MergeSiblingClasses");
|
|
6
|
-
const
|
|
6
|
+
const projects_apitokens_api_1 = require("../api/generated/apis/projects-apitokens-api");
|
|
7
7
|
const users_personal_access_tokens_api_1 = require("../api/generated/apis/users-personal-access-tokens-api");
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
|
9
9
|
class ApiTokenService extends ApiBaseService_1.ApiBaseService {
|
|
10
10
|
}
|
|
11
11
|
exports.ApiTokenService = ApiTokenService;
|
|
12
12
|
(0, MergeSiblingClasses_1.mergeSiblingClasses)(ApiTokenService, [
|
|
13
|
-
|
|
13
|
+
projects_apitokens_api_1.ProjectsAPITokensApiService,
|
|
14
14
|
users_personal_access_tokens_api_1.UsersPersonalAccessTokensApiService,
|
|
15
15
|
]);
|
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.164.
|
|
4
|
+
"version": "2.164.9",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@eslint/js": "^9.34.0",
|
|
55
55
|
"@openapitools/openapi-generator-cli": "^2.23.1",
|
|
56
56
|
"@types/jest": "^30.0.0",
|
|
57
|
-
"@typescript-eslint/parser": "^8.
|
|
57
|
+
"@typescript-eslint/parser": "^8.41.0",
|
|
58
58
|
"axios-mock-adapter": "^2.1.0",
|
|
59
59
|
"eslint": "^9.34.0",
|
|
60
60
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"eslint-plugin-n": "^17.21.3",
|
|
63
63
|
"eslint-plugin-promise": "^7.2.1",
|
|
64
64
|
"husky": "9.1.7",
|
|
65
|
-
"jest": "^30.
|
|
65
|
+
"jest": "^30.1.1",
|
|
66
66
|
"ts-jest": "^29.4.1",
|
|
67
67
|
"typedoc": "^0.28.11",
|
|
68
68
|
"typescript": "^5.9.2",
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
* The allowed expiration times for API Tokens.
|
|
14
|
-
* @export
|
|
15
|
-
* @enum {string}
|
|
16
|
-
*/
|
|
17
|
-
export declare enum ApiTokenAllowedExpiration {
|
|
18
|
-
_7Days = "7 days",
|
|
19
|
-
_14Days = "14 days",
|
|
20
|
-
_30Days = "30 days",
|
|
21
|
-
_60Days = "60 days",
|
|
22
|
-
_90Days = "90 days"
|
|
23
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
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 });
|
|
15
|
-
exports.ApiTokenAllowedExpiration = void 0;
|
|
16
|
-
/**
|
|
17
|
-
* The allowed expiration times for API Tokens.
|
|
18
|
-
* @export
|
|
19
|
-
* @enum {string}
|
|
20
|
-
*/
|
|
21
|
-
var ApiTokenAllowedExpiration;
|
|
22
|
-
(function (ApiTokenAllowedExpiration) {
|
|
23
|
-
ApiTokenAllowedExpiration["_7Days"] = "7 days";
|
|
24
|
-
ApiTokenAllowedExpiration["_14Days"] = "14 days";
|
|
25
|
-
ApiTokenAllowedExpiration["_30Days"] = "30 days";
|
|
26
|
-
ApiTokenAllowedExpiration["_60Days"] = "60 days";
|
|
27
|
-
ApiTokenAllowedExpiration["_90Days"] = "90 days";
|
|
28
|
-
})(ApiTokenAllowedExpiration || (exports.ApiTokenAllowedExpiration = ApiTokenAllowedExpiration = {}));
|