@devopness/sdk-js 3.3.3 → 3.4.1
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/credentials-api.d.ts +40 -7
- package/dist/api/generated/apis/credentials-api.js +115 -12
- package/dist/api/generated/models/application-environment-create.d.ts +0 -7
- package/dist/api/generated/models/cloud-provider-settings.d.ts +32 -0
- package/dist/api/generated/models/{credential-environment-create.d.ts → credential-organization-create.d.ts} +7 -7
- package/dist/api/generated/models/credential-organization-create.js +14 -0
- package/dist/api/generated/models/credential-relation.d.ts +19 -0
- package/dist/api/generated/models/credential-setting.d.ts +2 -2
- package/dist/api/generated/models/credential-source-provider.d.ts +20 -1
- package/dist/api/generated/models/credential.d.ts +26 -0
- package/dist/api/generated/models/index.d.ts +6 -1
- package/dist/api/generated/models/index.js +6 -1
- package/dist/api/generated/models/linked-resource-data.d.ts +24 -0
- package/dist/api/generated/models/provider-auth-type.d.ts +21 -0
- package/dist/api/generated/models/provider-auth-type.js +26 -0
- package/dist/api/generated/models/provider-callback-config.d.ts +42 -0
- package/dist/api/generated/models/provider-callback-config.js +14 -0
- package/dist/api/generated/models/provider-input-settings-validation.d.ts +6 -0
- package/dist/api/generated/models/provider-settings.d.ts +4 -23
- package/dist/api/generated/models/resource-link-child.d.ts +12 -0
- package/dist/api/generated/models/resource-link-relation.d.ts +12 -0
- package/dist/api/generated/models/source-provider-auth-method-settings.d.ts +62 -0
- package/dist/api/generated/models/source-provider-auth-method-settings.js +14 -0
- package/dist/api/generated/models/source-provider-settings.d.ts +25 -0
- package/dist/api/generated/models/source-provider-settings.js +14 -0
- package/dist/api/generated/models/team-relation.d.ts +1 -1
- package/package.json +7 -7
- /package/dist/api/generated/models/{credential-environment-create.js → cloud-provider-settings.js} +0 -0
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Credential } from '../../generated/models';
|
|
15
|
-
import {
|
|
15
|
+
import { CredentialOrganizationCreate } from '../../generated/models';
|
|
16
16
|
import { CredentialRelation } from '../../generated/models';
|
|
17
17
|
import { CredentialSetting } from '../../generated/models';
|
|
18
18
|
import { CredentialUpdate } from '../../generated/models';
|
|
@@ -22,11 +22,11 @@ import { CredentialUpdate } from '../../generated/models';
|
|
|
22
22
|
export declare class CredentialsApiService extends ApiBaseService {
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
|
-
* @summary Add a Credential to the given
|
|
26
|
-
* @param {
|
|
27
|
-
* @param {
|
|
25
|
+
* @summary Add a Credential to the given organization
|
|
26
|
+
* @param {string} organizationId The numeric ID or URL Slug of an organization.
|
|
27
|
+
* @param {CredentialOrganizationCreate} credentialOrganizationCreate A JSON object containing the resource data
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
addOrganizationCredential(organizationId: string, credentialOrganizationCreate: CredentialOrganizationCreate): Promise<ApiResponse<Credential>>;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @summary Delete a given credential
|
|
@@ -44,8 +44,17 @@ export declare class CredentialsApiService extends ApiBaseService {
|
|
|
44
44
|
* @summary Return provider settings
|
|
45
45
|
* @param {number} environmentId The ID of the environment.
|
|
46
46
|
* @param {string} providerCode The code of the provider.
|
|
47
|
+
* @param {string} [state] Optional base64-encoded JSON state to be included in connect URLs.
|
|
48
|
+
*/
|
|
49
|
+
getEnvironmentCredentialSettings(environmentId: number, providerCode: string, state?: string): Promise<ApiResponse<CredentialSetting>>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @summary Return provider settings
|
|
53
|
+
* @param {string} organizationId The ID or slug of the organization.
|
|
54
|
+
* @param {string} providerCode The code of the provider.
|
|
55
|
+
* @param {string} [state] Optional base64-encoded JSON state to be included in connect URLs.
|
|
47
56
|
*/
|
|
48
|
-
|
|
57
|
+
getOrganizationCredentialSettings(organizationId: string, providerCode: string, state?: string): Promise<ApiResponse<CredentialSetting>>;
|
|
49
58
|
/**
|
|
50
59
|
*
|
|
51
60
|
* @summary Get current status of a credential on its provider
|
|
@@ -54,7 +63,14 @@ export declare class CredentialsApiService extends ApiBaseService {
|
|
|
54
63
|
getStatusCredential(credentialId: number): Promise<ApiResponse<void>>;
|
|
55
64
|
/**
|
|
56
65
|
*
|
|
57
|
-
* @summary
|
|
66
|
+
* @summary Link a credential to an environment
|
|
67
|
+
* @param {number} credentialId The credential ID.
|
|
68
|
+
* @param {number} environmentId The environment ID.
|
|
69
|
+
*/
|
|
70
|
+
linkCredentialToEnvironment(credentialId: number, environmentId: number): Promise<ApiResponse<void>>;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @summary Return a list of all Credentials linked to an environment
|
|
58
74
|
* @param {number} environmentId The ID of the environment.
|
|
59
75
|
* @param {number} [page] Number of the page to be retrieved
|
|
60
76
|
* @param {number} [perPage] Number of items returned per page
|
|
@@ -62,6 +78,23 @@ export declare class CredentialsApiService extends ApiBaseService {
|
|
|
62
78
|
* @param {string} [providerType] Filter credentials by provider type.
|
|
63
79
|
*/
|
|
64
80
|
listEnvironmentCredentials(environmentId: number, page?: number, perPage?: number, providerCode?: string, providerType?: string): Promise<ApiResponse<Array<CredentialRelation>>>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @summary Return a list of all Credentials belonging to an organization
|
|
84
|
+
* @param {string} organizationId The numeric ID or URL Slug of an organization.
|
|
85
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
86
|
+
* @param {number} [perPage] Number of items returned per page
|
|
87
|
+
* @param {string} [providerCode] Filter credentials by provider code.
|
|
88
|
+
* @param {string} [providerType] Filter credentials by provider type.
|
|
89
|
+
*/
|
|
90
|
+
listOrganizationCredentials(organizationId: string, page?: number, perPage?: number, providerCode?: string, providerType?: string): Promise<ApiResponse<Array<CredentialRelation>>>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @summary Unlink a credential from an environment
|
|
94
|
+
* @param {number} credentialId The credential ID.
|
|
95
|
+
* @param {number} environmentId The environment ID.
|
|
96
|
+
*/
|
|
97
|
+
unlinkCredentialFromEnvironment(credentialId: number, environmentId: number): Promise<ApiResponse<void>>;
|
|
65
98
|
/**
|
|
66
99
|
*
|
|
67
100
|
* @summary Update an existing Credential
|
|
@@ -31,21 +31,21 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary Add a Credential to the given
|
|
35
|
-
* @param {
|
|
36
|
-
* @param {
|
|
34
|
+
* @summary Add a Credential to the given organization
|
|
35
|
+
* @param {string} organizationId The numeric ID or URL Slug of an organization.
|
|
36
|
+
* @param {CredentialOrganizationCreate} credentialOrganizationCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
addOrganizationCredential(organizationId, credentialOrganizationCreate) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
if (
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
40
|
+
if (organizationId === null || organizationId === undefined) {
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('organizationId', 'addOrganizationCredential');
|
|
42
42
|
}
|
|
43
|
-
if (
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
43
|
+
if (credentialOrganizationCreate === null || credentialOrganizationCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('credentialOrganizationCreate', 'addOrganizationCredential');
|
|
45
45
|
}
|
|
46
46
|
let queryString = '';
|
|
47
|
-
const requestUrl = '/
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"
|
|
47
|
+
const requestUrl = '/organizations/{organization_id}/credentials' + (queryString ? `?${queryString}` : '');
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))), credentialOrganizationCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -86,8 +86,9 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
86
86
|
* @summary Return provider settings
|
|
87
87
|
* @param {number} environmentId The ID of the environment.
|
|
88
88
|
* @param {string} providerCode The code of the provider.
|
|
89
|
+
* @param {string} [state] Optional base64-encoded JSON state to be included in connect URLs.
|
|
89
90
|
*/
|
|
90
|
-
getEnvironmentCredentialSettings(environmentId, providerCode) {
|
|
91
|
+
getEnvironmentCredentialSettings(environmentId, providerCode, state) {
|
|
91
92
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
93
|
if (environmentId === null || environmentId === undefined) {
|
|
93
94
|
throw new Exceptions_1.ArgumentNullException('environmentId', 'getEnvironmentCredentialSettings');
|
|
@@ -96,11 +97,46 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
96
97
|
throw new Exceptions_1.ArgumentNullException('providerCode', 'getEnvironmentCredentialSettings');
|
|
97
98
|
}
|
|
98
99
|
let queryString = '';
|
|
100
|
+
const queryParams = { state: state, };
|
|
101
|
+
for (const key in queryParams) {
|
|
102
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
106
|
+
}
|
|
99
107
|
const requestUrl = '/environments/{environment_id}/credentials/{provider_code}/settings' + (queryString ? `?${queryString}` : '');
|
|
100
108
|
const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))).replace(`{${"provider_code"}}`, encodeURIComponent(String(providerCode))));
|
|
101
109
|
return new ApiResponse_1.ApiResponse(response);
|
|
102
110
|
});
|
|
103
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @summary Return provider settings
|
|
115
|
+
* @param {string} organizationId The ID or slug of the organization.
|
|
116
|
+
* @param {string} providerCode The code of the provider.
|
|
117
|
+
* @param {string} [state] Optional base64-encoded JSON state to be included in connect URLs.
|
|
118
|
+
*/
|
|
119
|
+
getOrganizationCredentialSettings(organizationId, providerCode, state) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
if (organizationId === null || organizationId === undefined) {
|
|
122
|
+
throw new Exceptions_1.ArgumentNullException('organizationId', 'getOrganizationCredentialSettings');
|
|
123
|
+
}
|
|
124
|
+
if (providerCode === null || providerCode === undefined) {
|
|
125
|
+
throw new Exceptions_1.ArgumentNullException('providerCode', 'getOrganizationCredentialSettings');
|
|
126
|
+
}
|
|
127
|
+
let queryString = '';
|
|
128
|
+
const queryParams = { state: state, };
|
|
129
|
+
for (const key in queryParams) {
|
|
130
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
134
|
+
}
|
|
135
|
+
const requestUrl = '/organizations/{organization_id}/credentials/{provider_code}/settings' + (queryString ? `?${queryString}` : '');
|
|
136
|
+
const response = yield this.get(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))).replace(`{${"provider_code"}}`, encodeURIComponent(String(providerCode))));
|
|
137
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
104
140
|
/**
|
|
105
141
|
*
|
|
106
142
|
* @summary Get current status of a credential on its provider
|
|
@@ -119,7 +155,27 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
119
155
|
}
|
|
120
156
|
/**
|
|
121
157
|
*
|
|
122
|
-
* @summary
|
|
158
|
+
* @summary Link a credential to an environment
|
|
159
|
+
* @param {number} credentialId The credential ID.
|
|
160
|
+
* @param {number} environmentId The environment ID.
|
|
161
|
+
*/
|
|
162
|
+
linkCredentialToEnvironment(credentialId, environmentId) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
if (credentialId === null || credentialId === undefined) {
|
|
165
|
+
throw new Exceptions_1.ArgumentNullException('credentialId', 'linkCredentialToEnvironment');
|
|
166
|
+
}
|
|
167
|
+
if (environmentId === null || environmentId === undefined) {
|
|
168
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'linkCredentialToEnvironment');
|
|
169
|
+
}
|
|
170
|
+
let queryString = '';
|
|
171
|
+
const requestUrl = '/environments/{environment_id}/credentials/{credential_id}/link' + (queryString ? `?${queryString}` : '');
|
|
172
|
+
const response = yield this.post(requestUrl.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId))).replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
|
|
173
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @summary Return a list of all Credentials linked to an environment
|
|
123
179
|
* @param {number} environmentId The ID of the environment.
|
|
124
180
|
* @param {number} [page] Number of the page to be retrieved
|
|
125
181
|
* @param {number} [perPage] Number of items returned per page
|
|
@@ -144,6 +200,53 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
144
200
|
return new ApiResponse_1.ApiResponse(response);
|
|
145
201
|
});
|
|
146
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @summary Return a list of all Credentials belonging to an organization
|
|
206
|
+
* @param {string} organizationId The numeric ID or URL Slug of an organization.
|
|
207
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
208
|
+
* @param {number} [perPage] Number of items returned per page
|
|
209
|
+
* @param {string} [providerCode] Filter credentials by provider code.
|
|
210
|
+
* @param {string} [providerType] Filter credentials by provider type.
|
|
211
|
+
*/
|
|
212
|
+
listOrganizationCredentials(organizationId, page, perPage, providerCode, providerType) {
|
|
213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
if (organizationId === null || organizationId === undefined) {
|
|
215
|
+
throw new Exceptions_1.ArgumentNullException('organizationId', 'listOrganizationCredentials');
|
|
216
|
+
}
|
|
217
|
+
let queryString = '';
|
|
218
|
+
const queryParams = { page: page, per_page: perPage, provider_code: providerCode, provider_type: providerType, };
|
|
219
|
+
for (const key in queryParams) {
|
|
220
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
224
|
+
}
|
|
225
|
+
const requestUrl = '/organizations/{organization_id}/credentials' + (queryString ? `?${queryString}` : '');
|
|
226
|
+
const response = yield this.get(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))));
|
|
227
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* @summary Unlink a credential from an environment
|
|
233
|
+
* @param {number} credentialId The credential ID.
|
|
234
|
+
* @param {number} environmentId The environment ID.
|
|
235
|
+
*/
|
|
236
|
+
unlinkCredentialFromEnvironment(credentialId, environmentId) {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
+
if (credentialId === null || credentialId === undefined) {
|
|
239
|
+
throw new Exceptions_1.ArgumentNullException('credentialId', 'unlinkCredentialFromEnvironment');
|
|
240
|
+
}
|
|
241
|
+
if (environmentId === null || environmentId === undefined) {
|
|
242
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'unlinkCredentialFromEnvironment');
|
|
243
|
+
}
|
|
244
|
+
let queryString = '';
|
|
245
|
+
const requestUrl = '/environments/{environment_id}/credentials/{credential_id}/unlink' + (queryString ? `?${queryString}` : '');
|
|
246
|
+
const response = yield this.delete(requestUrl.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId))).replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
|
|
247
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
248
|
+
});
|
|
249
|
+
}
|
|
147
250
|
/**
|
|
148
251
|
*
|
|
149
252
|
* @summary Update an existing Credential
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { EnvironmentLink } from './environment-link';
|
|
13
12
|
import { ResourceToBeLinked } from './resource-to-be-linked';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
@@ -89,10 +88,4 @@ export interface ApplicationEnvironmentCreate {
|
|
|
89
88
|
* @memberof ApplicationEnvironmentCreate
|
|
90
89
|
*/
|
|
91
90
|
install_dependencies_command?: string;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {Array<EnvironmentLink>}
|
|
95
|
-
* @memberof ApplicationEnvironmentCreate
|
|
96
|
-
*/
|
|
97
|
-
environments?: Array<EnvironmentLink>;
|
|
98
91
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { CloudProviderService } from './cloud-provider-service';
|
|
13
|
+
import { ProviderInputSettings } from './provider-input-settings';
|
|
14
|
+
/**
|
|
15
|
+
* Settings for cloud providers
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CloudProviderSettings
|
|
18
|
+
*/
|
|
19
|
+
export interface CloudProviderSettings {
|
|
20
|
+
/**
|
|
21
|
+
* The list of input settings for credentials of specific provider
|
|
22
|
+
* @type {Array<ProviderInputSettings>}
|
|
23
|
+
* @memberof CloudProviderSettings
|
|
24
|
+
*/
|
|
25
|
+
input_settings: Array<ProviderInputSettings>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<CloudProviderService>}
|
|
29
|
+
* @memberof CloudProviderSettings
|
|
30
|
+
*/
|
|
31
|
+
cloud_services: Array<CloudProviderService>;
|
|
32
|
+
}
|
|
@@ -15,37 +15,37 @@ import { ProviderType } from './provider-type';
|
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
18
|
-
* @interface
|
|
18
|
+
* @interface CredentialOrganizationCreate
|
|
19
19
|
*/
|
|
20
|
-
export interface
|
|
20
|
+
export interface CredentialOrganizationCreate {
|
|
21
21
|
/**
|
|
22
22
|
* The name of the credential. Must not be greater than 60 characters.
|
|
23
23
|
* @type {string}
|
|
24
|
-
* @memberof
|
|
24
|
+
* @memberof CredentialOrganizationCreate
|
|
25
25
|
*/
|
|
26
26
|
name: string;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @type {ProviderCode}
|
|
30
|
-
* @memberof
|
|
30
|
+
* @memberof CredentialOrganizationCreate
|
|
31
31
|
*/
|
|
32
32
|
provider_code: ProviderCode;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
* @type {ProviderType}
|
|
36
|
-
* @memberof
|
|
36
|
+
* @memberof CredentialOrganizationCreate
|
|
37
37
|
*/
|
|
38
38
|
provider_type: ProviderType;
|
|
39
39
|
/**
|
|
40
40
|
* If this credential is active or not.
|
|
41
41
|
* @type {boolean}
|
|
42
|
-
* @memberof
|
|
42
|
+
* @memberof CredentialOrganizationCreate
|
|
43
43
|
*/
|
|
44
44
|
active: boolean;
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
47
47
|
* @type {CredentialInputSettings}
|
|
48
|
-
* @memberof
|
|
48
|
+
* @memberof CredentialOrganizationCreate
|
|
49
49
|
*/
|
|
50
50
|
settings: CredentialInputSettings;
|
|
51
51
|
}
|
|
@@ -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 });
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ActionRelationShallow } from './action-relation-shallow';
|
|
12
13
|
import { ProviderRelation } from './provider-relation';
|
|
13
14
|
import { ProviderType } from './provider-type';
|
|
14
15
|
import { UserRelation } from './user-relation';
|
|
@@ -48,6 +49,18 @@ export interface CredentialRelation {
|
|
|
48
49
|
* @memberof CredentialRelation
|
|
49
50
|
*/
|
|
50
51
|
provider_type_human_readable: string;
|
|
52
|
+
/**
|
|
53
|
+
* The authentication type of the credential
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CredentialRelation
|
|
56
|
+
*/
|
|
57
|
+
provider_auth_type: string;
|
|
58
|
+
/**
|
|
59
|
+
* The human readable version of the authentication type
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof CredentialRelation
|
|
62
|
+
*/
|
|
63
|
+
provider_auth_type_human_readable: string;
|
|
51
64
|
/**
|
|
52
65
|
* If this credential is active or not
|
|
53
66
|
* @type {boolean}
|
|
@@ -60,6 +73,12 @@ export interface CredentialRelation {
|
|
|
60
73
|
* @memberof CredentialRelation
|
|
61
74
|
*/
|
|
62
75
|
created_by_user: UserRelation | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {ActionRelationShallow}
|
|
79
|
+
* @memberof CredentialRelation
|
|
80
|
+
*/
|
|
81
|
+
last_action?: ActionRelationShallow | null;
|
|
63
82
|
/**
|
|
64
83
|
* The date and time when the record was created
|
|
65
84
|
* @type {string}
|
|
@@ -24,11 +24,11 @@ export interface CredentialSetting {
|
|
|
24
24
|
*/
|
|
25
25
|
provider: CredentialProviderType;
|
|
26
26
|
/**
|
|
27
|
-
* Numeric ID of the
|
|
27
|
+
* Numeric ID of the organization to which the credential belongs to
|
|
28
28
|
* @type {number}
|
|
29
29
|
* @memberof CredentialSetting
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
organization_id: number;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @type {ProviderSettings}
|
|
@@ -9,16 +9,35 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ProviderAuthType } from './provider-auth-type';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
15
16
|
* @interface CredentialSourceProvider
|
|
16
17
|
*/
|
|
17
18
|
export interface CredentialSourceProvider {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ProviderAuthType}
|
|
22
|
+
* @memberof CredentialSourceProvider
|
|
23
|
+
*/
|
|
24
|
+
auth_type: ProviderAuthType;
|
|
18
25
|
/**
|
|
19
26
|
* The temporary code forwarded by the OAuth provider as a parameter to our callback URL
|
|
20
27
|
* @type {string}
|
|
21
28
|
* @memberof CredentialSourceProvider
|
|
22
29
|
*/
|
|
23
|
-
callback_code
|
|
30
|
+
callback_code?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The installation ID of the source provider integration installation.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CredentialSourceProvider
|
|
35
|
+
*/
|
|
36
|
+
installation_id?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The action to be performed with the provided callback code.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CredentialSourceProvider
|
|
41
|
+
*/
|
|
42
|
+
setup_action?: string;
|
|
24
43
|
}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ActionRelationShallow } from './action-relation-shallow';
|
|
13
|
+
import { OrganizationRelation } from './organization-relation';
|
|
12
14
|
import { ProviderRelation } from './provider-relation';
|
|
13
15
|
import { UserRelation } from './user-relation';
|
|
14
16
|
/**
|
|
@@ -47,18 +49,42 @@ export interface Credential {
|
|
|
47
49
|
* @memberof Credential
|
|
48
50
|
*/
|
|
49
51
|
provider_type_human_readable: string;
|
|
52
|
+
/**
|
|
53
|
+
* The authentication type of the credential
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Credential
|
|
56
|
+
*/
|
|
57
|
+
provider_auth_type: string;
|
|
58
|
+
/**
|
|
59
|
+
* The human readable version of the authentication type
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof Credential
|
|
62
|
+
*/
|
|
63
|
+
provider_auth_type_human_readable: string;
|
|
50
64
|
/**
|
|
51
65
|
* If this credential is active or not
|
|
52
66
|
* @type {boolean}
|
|
53
67
|
* @memberof Credential
|
|
54
68
|
*/
|
|
55
69
|
active: boolean;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {OrganizationRelation}
|
|
73
|
+
* @memberof Credential
|
|
74
|
+
*/
|
|
75
|
+
organization?: OrganizationRelation | null;
|
|
56
76
|
/**
|
|
57
77
|
*
|
|
58
78
|
* @type {UserRelation}
|
|
59
79
|
* @memberof Credential
|
|
60
80
|
*/
|
|
61
81
|
created_by_user: UserRelation | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {ActionRelationShallow}
|
|
85
|
+
* @memberof Credential
|
|
86
|
+
*/
|
|
87
|
+
last_action?: ActionRelationShallow | null;
|
|
62
88
|
/**
|
|
63
89
|
* The date and time when the record was created
|
|
64
90
|
* @type {string}
|
|
@@ -58,6 +58,7 @@ export * from './cloud-provider-service-code';
|
|
|
58
58
|
export * from './cloud-provider-service-region';
|
|
59
59
|
export * from './cloud-provider-service-resource-type';
|
|
60
60
|
export * from './cloud-provider-service-resource-type-scope';
|
|
61
|
+
export * from './cloud-provider-settings';
|
|
61
62
|
export * from './cloud-provider-settings-list';
|
|
62
63
|
export * from './cloud-resource-type';
|
|
63
64
|
export * from './cloud-service-settings-aws-ec2';
|
|
@@ -71,11 +72,11 @@ export * from './credential';
|
|
|
71
72
|
export * from './credential-aws';
|
|
72
73
|
export * from './credential-azure';
|
|
73
74
|
export * from './credential-digital-ocean';
|
|
74
|
-
export * from './credential-environment-create';
|
|
75
75
|
export * from './credential-google-cloud';
|
|
76
76
|
export * from './credential-hetzner';
|
|
77
77
|
export * from './credential-input-settings';
|
|
78
78
|
export * from './credential-options';
|
|
79
|
+
export * from './credential-organization-create';
|
|
79
80
|
export * from './credential-provider';
|
|
80
81
|
export * from './credential-provider-type';
|
|
81
82
|
export * from './credential-relation';
|
|
@@ -186,6 +187,8 @@ export * from './project';
|
|
|
186
187
|
export * from './project-organization-create';
|
|
187
188
|
export * from './project-relation';
|
|
188
189
|
export * from './project-update';
|
|
190
|
+
export * from './provider-auth-type';
|
|
191
|
+
export * from './provider-callback-config';
|
|
189
192
|
export * from './provider-code';
|
|
190
193
|
export * from './provider-input-settings';
|
|
191
194
|
export * from './provider-input-settings-validation';
|
|
@@ -245,8 +248,10 @@ export * from './social-account-displayable-name';
|
|
|
245
248
|
export * from './social-account-provider';
|
|
246
249
|
export * from './social-account-relation';
|
|
247
250
|
export * from './social-account-status';
|
|
251
|
+
export * from './source-provider-auth-method-settings';
|
|
248
252
|
export * from './source-provider-displayable-name';
|
|
249
253
|
export * from './source-provider-name';
|
|
254
|
+
export * from './source-provider-settings';
|
|
250
255
|
export * from './source-type';
|
|
251
256
|
export * from './ssh-key';
|
|
252
257
|
export * from './ssh-key-deploy';
|
|
@@ -74,6 +74,7 @@ __exportStar(require("./cloud-provider-service-code"), exports);
|
|
|
74
74
|
__exportStar(require("./cloud-provider-service-region"), exports);
|
|
75
75
|
__exportStar(require("./cloud-provider-service-resource-type"), exports);
|
|
76
76
|
__exportStar(require("./cloud-provider-service-resource-type-scope"), exports);
|
|
77
|
+
__exportStar(require("./cloud-provider-settings"), exports);
|
|
77
78
|
__exportStar(require("./cloud-provider-settings-list"), exports);
|
|
78
79
|
__exportStar(require("./cloud-resource-type"), exports);
|
|
79
80
|
__exportStar(require("./cloud-service-settings-aws-ec2"), exports);
|
|
@@ -87,11 +88,11 @@ __exportStar(require("./credential"), exports);
|
|
|
87
88
|
__exportStar(require("./credential-aws"), exports);
|
|
88
89
|
__exportStar(require("./credential-azure"), exports);
|
|
89
90
|
__exportStar(require("./credential-digital-ocean"), exports);
|
|
90
|
-
__exportStar(require("./credential-environment-create"), exports);
|
|
91
91
|
__exportStar(require("./credential-google-cloud"), exports);
|
|
92
92
|
__exportStar(require("./credential-hetzner"), exports);
|
|
93
93
|
__exportStar(require("./credential-input-settings"), exports);
|
|
94
94
|
__exportStar(require("./credential-options"), exports);
|
|
95
|
+
__exportStar(require("./credential-organization-create"), exports);
|
|
95
96
|
__exportStar(require("./credential-provider"), exports);
|
|
96
97
|
__exportStar(require("./credential-provider-type"), exports);
|
|
97
98
|
__exportStar(require("./credential-relation"), exports);
|
|
@@ -202,6 +203,8 @@ __exportStar(require("./project"), exports);
|
|
|
202
203
|
__exportStar(require("./project-organization-create"), exports);
|
|
203
204
|
__exportStar(require("./project-relation"), exports);
|
|
204
205
|
__exportStar(require("./project-update"), exports);
|
|
206
|
+
__exportStar(require("./provider-auth-type"), exports);
|
|
207
|
+
__exportStar(require("./provider-callback-config"), exports);
|
|
205
208
|
__exportStar(require("./provider-code"), exports);
|
|
206
209
|
__exportStar(require("./provider-input-settings"), exports);
|
|
207
210
|
__exportStar(require("./provider-input-settings-validation"), exports);
|
|
@@ -261,8 +264,10 @@ __exportStar(require("./social-account-displayable-name"), exports);
|
|
|
261
264
|
__exportStar(require("./social-account-provider"), exports);
|
|
262
265
|
__exportStar(require("./social-account-relation"), exports);
|
|
263
266
|
__exportStar(require("./social-account-status"), exports);
|
|
267
|
+
__exportStar(require("./source-provider-auth-method-settings"), exports);
|
|
264
268
|
__exportStar(require("./source-provider-displayable-name"), exports);
|
|
265
269
|
__exportStar(require("./source-provider-name"), exports);
|
|
270
|
+
__exportStar(require("./source-provider-settings"), exports);
|
|
266
271
|
__exportStar(require("./source-type"), exports);
|
|
267
272
|
__exportStar(require("./ssh-key"), exports);
|
|
268
273
|
__exportStar(require("./ssh-key-deploy"), exports);
|
|
@@ -34,6 +34,30 @@ export interface LinkedResourceData {
|
|
|
34
34
|
* @memberof LinkedResourceData
|
|
35
35
|
*/
|
|
36
36
|
summary_fields?: Array<LinkedResourceSummaryField>;
|
|
37
|
+
/**
|
|
38
|
+
* The ID of the environment this resource belongs to
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof LinkedResourceData
|
|
41
|
+
*/
|
|
42
|
+
environment_id?: number | null;
|
|
43
|
+
/**
|
|
44
|
+
* The name of the environment this resource belongs to
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof LinkedResourceData
|
|
47
|
+
*/
|
|
48
|
+
environment_name?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* The ID of the project this resource belongs to
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof LinkedResourceData
|
|
53
|
+
*/
|
|
54
|
+
project_id?: number | null;
|
|
55
|
+
/**
|
|
56
|
+
* The name of the project this resource belongs to
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof LinkedResourceData
|
|
59
|
+
*/
|
|
60
|
+
project_name?: string | null;
|
|
37
61
|
/**
|
|
38
62
|
* The date and time when the record was created
|
|
39
63
|
* @type {string}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
* Authentication method for provider credentials.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum ProviderAuthType {
|
|
18
|
+
Oauth = "oauth",
|
|
19
|
+
Application = "application",
|
|
20
|
+
ApiCredentials = "api_credentials"
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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.ProviderAuthType = void 0;
|
|
16
|
+
/**
|
|
17
|
+
* Authentication method for provider credentials.
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var ProviderAuthType;
|
|
22
|
+
(function (ProviderAuthType) {
|
|
23
|
+
ProviderAuthType["Oauth"] = "oauth";
|
|
24
|
+
ProviderAuthType["Application"] = "application";
|
|
25
|
+
ProviderAuthType["ApiCredentials"] = "api_credentials";
|
|
26
|
+
})(ProviderAuthType || (exports.ProviderAuthType = ProviderAuthType = {}));
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
* Configuration for a single callback parameter
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ProviderCallbackConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface ProviderCallbackConfig {
|
|
18
|
+
/**
|
|
19
|
+
* The credential field name that this parameter maps to
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ProviderCallbackConfig
|
|
22
|
+
*/
|
|
23
|
+
field: string;
|
|
24
|
+
/**
|
|
25
|
+
* The query parameter name in the callback URL
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProviderCallbackConfig
|
|
28
|
+
*/
|
|
29
|
+
query_string: string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether this parameter is required in the callback
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ProviderCallbackConfig
|
|
34
|
+
*/
|
|
35
|
+
required: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The expected data type of the parameter value
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ProviderCallbackConfig
|
|
40
|
+
*/
|
|
41
|
+
type: string;
|
|
42
|
+
}
|
|
@@ -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 });
|
|
@@ -45,4 +45,10 @@ export interface ProviderInputSettingsValidation {
|
|
|
45
45
|
* @memberof ProviderInputSettingsValidation
|
|
46
46
|
*/
|
|
47
47
|
allowed_values?: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* If true, this field should not be shown to the user (system-provided, like OAuth callback_code)
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof ProviderInputSettingsValidation
|
|
52
|
+
*/
|
|
53
|
+
hidden?: boolean;
|
|
48
54
|
}
|
|
@@ -9,30 +9,11 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { CloudProviderSettings } from './cloud-provider-settings';
|
|
13
|
+
import { SourceProviderSettings } from './source-provider-settings';
|
|
14
14
|
/**
|
|
15
|
+
* @type ProviderSettings
|
|
15
16
|
* Settings related to a supported provider
|
|
16
17
|
* @export
|
|
17
|
-
* @interface ProviderSettings
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
20
|
-
/**
|
|
21
|
-
* The URL used to connect Devopness to a credential provider of type `source_provider`
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof ProviderSettings
|
|
24
|
-
*/
|
|
25
|
-
connect_url?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The list of input settings for credentials of specific provider
|
|
28
|
-
* @type {Array<ProviderInputSettings>}
|
|
29
|
-
* @memberof ProviderSettings
|
|
30
|
-
*/
|
|
31
|
-
input_settings: Array<ProviderInputSettings>;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {Array<CloudProviderService>}
|
|
35
|
-
* @memberof ProviderSettings
|
|
36
|
-
*/
|
|
37
|
-
cloud_services?: Array<CloudProviderService>;
|
|
38
|
-
}
|
|
19
|
+
export type ProviderSettings = CloudProviderSettings | SourceProviderSettings;
|
|
@@ -52,4 +52,16 @@ export interface ResourceLinkChild {
|
|
|
52
52
|
* @memberof ResourceLinkChild
|
|
53
53
|
*/
|
|
54
54
|
linked_resource_data: LinkedResourceData;
|
|
55
|
+
/**
|
|
56
|
+
* The date and time when the resource link was created
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ResourceLinkChild
|
|
59
|
+
*/
|
|
60
|
+
created_at: string;
|
|
61
|
+
/**
|
|
62
|
+
* The date and time when the resource link was last updated
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ResourceLinkChild
|
|
65
|
+
*/
|
|
66
|
+
updated_at: string;
|
|
55
67
|
}
|
|
@@ -59,4 +59,16 @@ export interface ResourceLinkRelation {
|
|
|
59
59
|
* @memberof ResourceLinkRelation
|
|
60
60
|
*/
|
|
61
61
|
children?: Array<ResourceLinkChild>;
|
|
62
|
+
/**
|
|
63
|
+
* The date and time when the resource link was created
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ResourceLinkRelation
|
|
66
|
+
*/
|
|
67
|
+
created_at: string;
|
|
68
|
+
/**
|
|
69
|
+
* The date and time when the resource link was last updated
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ResourceLinkRelation
|
|
72
|
+
*/
|
|
73
|
+
updated_at: string;
|
|
62
74
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { ProviderCallbackConfig } from './provider-callback-config';
|
|
13
|
+
import { ProviderInputSettings } from './provider-input-settings';
|
|
14
|
+
/**
|
|
15
|
+
* Authentication method settings for source providers
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SourceProviderAuthMethodSettings
|
|
18
|
+
*/
|
|
19
|
+
export interface SourceProviderAuthMethodSettings {
|
|
20
|
+
/**
|
|
21
|
+
* The authentication type identifier
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof SourceProviderAuthMethodSettings
|
|
24
|
+
*/
|
|
25
|
+
auth_type: string;
|
|
26
|
+
/**
|
|
27
|
+
* Human-readable name for the authentication method
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof SourceProviderAuthMethodSettings
|
|
30
|
+
*/
|
|
31
|
+
auth_type_human_readable?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Hint text explaining the authentication flow
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof SourceProviderAuthMethodSettings
|
|
36
|
+
*/
|
|
37
|
+
hint?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Whether this authentication method is recommended for this provider
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof SourceProviderAuthMethodSettings
|
|
42
|
+
*/
|
|
43
|
+
recommended?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* The URL to redirect the user for authentication. For OAuth methods, this is the authorization URL. For application installation methods (e.g., GitHub App), this is the installation URL.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof SourceProviderAuthMethodSettings
|
|
48
|
+
*/
|
|
49
|
+
connect_url?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The list of input settings for credentials of specific provider
|
|
52
|
+
* @type {Array<ProviderInputSettings>}
|
|
53
|
+
* @memberof SourceProviderAuthMethodSettings
|
|
54
|
+
*/
|
|
55
|
+
input_settings: Array<ProviderInputSettings>;
|
|
56
|
+
/**
|
|
57
|
+
* Configuration mapping for extracting authentication parameters from OAuth/provider callback URLs.
|
|
58
|
+
* @type {Array<ProviderCallbackConfig>}
|
|
59
|
+
* @memberof SourceProviderAuthMethodSettings
|
|
60
|
+
*/
|
|
61
|
+
provider_config?: Array<ProviderCallbackConfig>;
|
|
62
|
+
}
|
|
@@ -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,25 @@
|
|
|
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 { SourceProviderAuthMethodSettings } from './source-provider-auth-method-settings';
|
|
13
|
+
/**
|
|
14
|
+
* Settings for source providers
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SourceProviderSettings
|
|
17
|
+
*/
|
|
18
|
+
export interface SourceProviderSettings {
|
|
19
|
+
/**
|
|
20
|
+
* Available authentication methods for this source provider
|
|
21
|
+
* @type {Array<SourceProviderAuthMethodSettings>}
|
|
22
|
+
* @memberof SourceProviderSettings
|
|
23
|
+
*/
|
|
24
|
+
auth_methods: Array<SourceProviderAuthMethodSettings>;
|
|
25
|
+
}
|
|
@@ -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 });
|
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": "3.
|
|
4
|
+
"version": "3.4.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -52,25 +52,25 @@
|
|
|
52
52
|
"homepage": "https://github.com/devopness/devopness#readme",
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@eslint/js": "^10.0.1",
|
|
55
|
-
"@openapitools/openapi-generator-cli": "^2.
|
|
55
|
+
"@openapitools/openapi-generator-cli": "^2.34.0",
|
|
56
56
|
"@types/jest": "^30.0.0",
|
|
57
57
|
"@typescript-eslint/parser": "^8.59.2",
|
|
58
58
|
"axios-mock-adapter": "^2.1.0",
|
|
59
|
-
"eslint": "^10.
|
|
59
|
+
"eslint": "^10.4.0",
|
|
60
60
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
61
61
|
"eslint-plugin-import": "^2.32.0",
|
|
62
62
|
"eslint-plugin-n": "^18.0.1",
|
|
63
63
|
"eslint-plugin-promise": "^7.3.0",
|
|
64
64
|
"husky": "9.1.7",
|
|
65
|
-
"jest": "^30.4.
|
|
66
|
-
"ts-jest": "^29.4.
|
|
65
|
+
"jest": "^30.4.2",
|
|
66
|
+
"ts-jest": "^29.4.11",
|
|
67
67
|
"typedoc": "^0.28.19",
|
|
68
68
|
"typescript": "^5.9.3",
|
|
69
|
-
"typescript-eslint": "^8.
|
|
69
|
+
"typescript-eslint": "^8.60.0"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@types/parse-link-header": "^2.0.3",
|
|
73
|
-
"axios": "^1.16.
|
|
73
|
+
"axios": "^1.16.1",
|
|
74
74
|
"parse-link-header": "^2.0.0"
|
|
75
75
|
}
|
|
76
76
|
}
|
/package/dist/api/generated/models/{credential-environment-create.js → cloud-provider-settings.js}
RENAMED
|
File without changes
|