@devopness/sdk-js 3.4.0 → 3.5.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/credentials-api.d.ts +4 -2
  2. package/dist/api/generated/apis/credentials-api.js +18 -2
  3. package/dist/api/generated/models/action-pipeline-create.d.ts +6 -0
  4. package/dist/api/generated/models/action-relation.d.ts +6 -0
  5. package/dist/api/generated/models/action-retry-response.d.ts +6 -0
  6. package/dist/api/generated/models/action.d.ts +6 -0
  7. package/dist/api/generated/models/cloud-os-version-code.d.ts +2 -1
  8. package/dist/api/generated/models/cloud-os-version-code.js +1 -0
  9. package/dist/api/generated/models/cloud-provider-settings.d.ts +32 -0
  10. package/dist/api/generated/models/cloud-provider-settings.js +14 -0
  11. package/dist/api/generated/models/credential-relation.d.ts +12 -0
  12. package/dist/api/generated/models/credential-source-provider.d.ts +20 -1
  13. package/dist/api/generated/models/credential.d.ts +12 -0
  14. package/dist/api/generated/models/daemon-deploy.d.ts +6 -0
  15. package/dist/api/generated/models/daemon-get-status.d.ts +6 -0
  16. package/dist/api/generated/models/daemon-restart.d.ts +6 -0
  17. package/dist/api/generated/models/daemon-start.d.ts +6 -0
  18. package/dist/api/generated/models/daemon-stop.d.ts +6 -0
  19. package/dist/api/generated/models/index.d.ts +5 -0
  20. package/dist/api/generated/models/index.js +5 -0
  21. package/dist/api/generated/models/pipeline-settings.d.ts +6 -0
  22. package/dist/api/generated/models/provider-auth-type.d.ts +21 -0
  23. package/dist/api/generated/models/provider-auth-type.js +26 -0
  24. package/dist/api/generated/models/provider-callback-config.d.ts +42 -0
  25. package/dist/api/generated/models/provider-callback-config.js +14 -0
  26. package/dist/api/generated/models/provider-input-settings-validation.d.ts +6 -0
  27. package/dist/api/generated/models/provider-settings.d.ts +4 -23
  28. package/dist/api/generated/models/source-provider-auth-method-settings.d.ts +62 -0
  29. package/dist/api/generated/models/source-provider-auth-method-settings.js +14 -0
  30. package/dist/api/generated/models/source-provider-settings.d.ts +25 -0
  31. package/dist/api/generated/models/source-provider-settings.js +14 -0
  32. package/package.json +9 -9
@@ -44,15 +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.
47
48
  */
48
- getEnvironmentCredentialSettings(environmentId: number, providerCode: string): Promise<ApiResponse<CredentialSetting>>;
49
+ getEnvironmentCredentialSettings(environmentId: number, providerCode: string, state?: string): Promise<ApiResponse<CredentialSetting>>;
49
50
  /**
50
51
  *
51
52
  * @summary Return provider settings
52
53
  * @param {string} organizationId The ID or slug of the organization.
53
54
  * @param {string} providerCode The code of the provider.
55
+ * @param {string} [state] Optional base64-encoded JSON state to be included in connect URLs.
54
56
  */
55
- getOrganizationCredentialSettings(organizationId: string, providerCode: string): Promise<ApiResponse<CredentialSetting>>;
57
+ getOrganizationCredentialSettings(organizationId: string, providerCode: string, state?: string): Promise<ApiResponse<CredentialSetting>>;
56
58
  /**
57
59
  *
58
60
  * @summary Get current status of a credential on its provider
@@ -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,6 +97,13 @@ 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);
@@ -106,8 +114,9 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
106
114
  * @summary Return provider settings
107
115
  * @param {string} organizationId The ID or slug of the organization.
108
116
  * @param {string} providerCode The code of the provider.
117
+ * @param {string} [state] Optional base64-encoded JSON state to be included in connect URLs.
109
118
  */
110
- getOrganizationCredentialSettings(organizationId, providerCode) {
119
+ getOrganizationCredentialSettings(organizationId, providerCode, state) {
111
120
  return __awaiter(this, void 0, void 0, function* () {
112
121
  if (organizationId === null || organizationId === undefined) {
113
122
  throw new Exceptions_1.ArgumentNullException('organizationId', 'getOrganizationCredentialSettings');
@@ -116,6 +125,13 @@ class CredentialsApiService extends ApiBaseService_1.ApiBaseService {
116
125
  throw new Exceptions_1.ArgumentNullException('providerCode', 'getOrganizationCredentialSettings');
117
126
  }
118
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
+ }
119
135
  const requestUrl = '/organizations/{organization_id}/credentials/{provider_code}/settings' + (queryString ? `?${queryString}` : '');
120
136
  const response = yield this.get(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))).replace(`{${"provider_code"}}`, encodeURIComponent(String(providerCode))));
121
137
  return new ApiResponse_1.ApiResponse(response);
@@ -22,6 +22,12 @@ export interface ActionPipelineCreate {
22
22
  * @memberof ActionPipelineCreate
23
23
  */
24
24
  servers?: Array<number>;
25
+ /**
26
+ * Optional comment provided when triggering this action. Must not be greater than 255 characters. Must not be greater than 255 characters.
27
+ * @type {string}
28
+ * @memberof ActionPipelineCreate
29
+ */
30
+ trigger_comment?: string;
25
31
  /**
26
32
  *
27
33
  * @type {SourceType}
@@ -71,6 +71,12 @@ export interface ActionRelation {
71
71
  * @memberof ActionRelation
72
72
  */
73
73
  url_web_permalink: string;
74
+ /**
75
+ * Optional comment attached to this action
76
+ * @type {string}
77
+ * @memberof ActionRelation
78
+ */
79
+ trigger_comment: string | null;
74
80
  /**
75
81
  *
76
82
  * @type {ActionData}
@@ -89,6 +89,12 @@ export interface ActionRetryResponse {
89
89
  * @memberof ActionRetryResponse
90
90
  */
91
91
  url_web_permalink: string;
92
+ /**
93
+ * Optional comment attached to this action
94
+ * @type {string}
95
+ * @memberof ActionRetryResponse
96
+ */
97
+ trigger_comment: string | null;
92
98
  /**
93
99
  *
94
100
  * @type {ActionData}
@@ -89,6 +89,12 @@ export interface Action {
89
89
  * @memberof Action
90
90
  */
91
91
  url_web_permalink: string;
92
+ /**
93
+ * Optional comment attached to this action
94
+ * @type {string}
95
+ * @memberof Action
96
+ */
97
+ trigger_comment: string | null;
92
98
  /**
93
99
  *
94
100
  * @type {ActionData}
@@ -19,5 +19,6 @@ export declare enum CloudOsVersionCode {
19
19
  Ubuntu1804 = "ubuntu_18_04",
20
20
  Ubuntu2004 = "ubuntu_20_04",
21
21
  Ubuntu2204 = "ubuntu_22_04",
22
- Ubuntu2404 = "ubuntu_24_04"
22
+ Ubuntu2404 = "ubuntu_24_04",
23
+ Ubuntu2604 = "ubuntu_26_04"
23
24
  }
@@ -25,4 +25,5 @@ var CloudOsVersionCode;
25
25
  CloudOsVersionCode["Ubuntu2004"] = "ubuntu_20_04";
26
26
  CloudOsVersionCode["Ubuntu2204"] = "ubuntu_22_04";
27
27
  CloudOsVersionCode["Ubuntu2404"] = "ubuntu_24_04";
28
+ CloudOsVersionCode["Ubuntu2604"] = "ubuntu_26_04";
28
29
  })(CloudOsVersionCode || (exports.CloudOsVersionCode = CloudOsVersionCode = {}));
@@ -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
+ }
@@ -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 });
@@ -49,6 +49,18 @@ export interface CredentialRelation {
49
49
  * @memberof CredentialRelation
50
50
  */
51
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;
52
64
  /**
53
65
  * If this credential is active or not
54
66
  * @type {boolean}
@@ -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: string;
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
  }
@@ -49,6 +49,18 @@ export interface Credential {
49
49
  * @memberof Credential
50
50
  */
51
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;
52
64
  /**
53
65
  * If this credential is active or not
54
66
  * @type {boolean}
@@ -21,4 +21,10 @@ export interface DaemonDeploy {
21
21
  * @memberof DaemonDeploy
22
22
  */
23
23
  servers?: Array<number>;
24
+ /**
25
+ * Optional comment provided when triggering this action. Must not be greater than 255 characters.
26
+ * @type {string}
27
+ * @memberof DaemonDeploy
28
+ */
29
+ trigger_comment?: string;
24
30
  }
@@ -21,4 +21,10 @@ export interface DaemonGetStatus {
21
21
  * @memberof DaemonGetStatus
22
22
  */
23
23
  servers?: Array<number>;
24
+ /**
25
+ * Optional comment provided when triggering this action. Must not be greater than 255 characters.
26
+ * @type {string}
27
+ * @memberof DaemonGetStatus
28
+ */
29
+ trigger_comment?: string;
24
30
  }
@@ -21,4 +21,10 @@ export interface DaemonRestart {
21
21
  * @memberof DaemonRestart
22
22
  */
23
23
  servers?: Array<number>;
24
+ /**
25
+ * Optional comment provided when triggering this action. Must not be greater than 255 characters.
26
+ * @type {string}
27
+ * @memberof DaemonRestart
28
+ */
29
+ trigger_comment?: string;
24
30
  }
@@ -21,4 +21,10 @@ export interface DaemonStart {
21
21
  * @memberof DaemonStart
22
22
  */
23
23
  servers?: Array<number>;
24
+ /**
25
+ * Optional comment provided when triggering this action. Must not be greater than 255 characters.
26
+ * @type {string}
27
+ * @memberof DaemonStart
28
+ */
29
+ trigger_comment?: string;
24
30
  }
@@ -21,4 +21,10 @@ export interface DaemonStop {
21
21
  * @memberof DaemonStop
22
22
  */
23
23
  servers?: Array<number>;
24
+ /**
25
+ * Optional comment provided when triggering this action. Must not be greater than 255 characters.
26
+ * @type {string}
27
+ * @memberof DaemonStop
28
+ */
29
+ trigger_comment?: string;
24
30
  }
@@ -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';
@@ -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);
@@ -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);
@@ -29,6 +29,12 @@ export interface PipelineSettings {
29
29
  * @memberof PipelineSettings
30
30
  */
31
31
  is_user_managed?: boolean;
32
+ /**
33
+ * Indicates whether this resource operation supports an optional trigger comment
34
+ * @type {boolean}
35
+ * @memberof PipelineSettings
36
+ */
37
+ supports_trigger_comment?: boolean;
32
38
  /**
33
39
  * The list of pipeline setting stage
34
40
  * @type {Array<PipelineSettingsStage>}
@@ -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 { CloudProviderService } from './cloud-provider-service';
13
- import { ProviderInputSettings } from './provider-input-settings';
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 interface ProviderSettings {
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;
@@ -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.0",
4
+ "version": "3.5.0",
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.32.0",
55
+ "@openapitools/openapi-generator-cli": "^2.39.0",
56
56
  "@types/jest": "^30.0.0",
57
- "@typescript-eslint/parser": "^8.59.2",
57
+ "@typescript-eslint/parser": "^8.61.1",
58
58
  "axios-mock-adapter": "^2.1.0",
59
- "eslint": "^10.3.0",
60
- "eslint-import-resolver-typescript": "^4.4.4",
59
+ "eslint": "^10.5.0",
60
+ "eslint-import-resolver-typescript": "^4.4.5",
61
61
  "eslint-plugin-import": "^2.32.0",
62
- "eslint-plugin-n": "^18.0.1",
62
+ "eslint-plugin-n": "^18.1.0",
63
63
  "eslint-plugin-promise": "^7.3.0",
64
64
  "husky": "9.1.7",
65
65
  "jest": "^30.4.2",
66
- "ts-jest": "^29.4.9",
66
+ "ts-jest": "^29.4.11",
67
67
  "typedoc": "^0.28.19",
68
68
  "typescript": "^5.9.3",
69
- "typescript-eslint": "^8.59.3"
69
+ "typescript-eslint": "^8.61.1"
70
70
  },
71
71
  "dependencies": {
72
72
  "@types/parse-link-header": "^2.0.3",
73
- "axios": "^1.16.1",
73
+ "axios": "^1.18.1",
74
74
  "parse-link-header": "^2.0.0"
75
75
  }
76
76
  }