@devopness/sdk-js 2.164.5 → 2.164.7

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 (62) hide show
  1. package/dist/DevopnessApiClient.d.ts +4 -0
  2. package/dist/DevopnessApiClient.js +8 -0
  3. package/dist/api/generated/apis/projects-api-tokens-api.d.ts +60 -0
  4. package/dist/api/generated/apis/projects-api-tokens-api.js +142 -0
  5. package/dist/api/generated/apis/users-personal-access-tokens-api.d.ts +55 -0
  6. package/dist/api/generated/apis/users-personal-access-tokens-api.js +122 -0
  7. package/dist/api/generated/models/action-relation.d.ts +1 -1
  8. package/dist/api/generated/models/api-token-allowed-expiration.d.ts +23 -0
  9. package/dist/api/generated/models/api-token-allowed-expiration.js +28 -0
  10. package/dist/api/generated/models/api-token-project-create.d.ts +37 -0
  11. package/dist/api/generated/models/api-token-project-create.js +14 -0
  12. package/dist/api/generated/models/api-token-project-rotate.d.ts +31 -0
  13. package/dist/api/generated/models/api-token-project-rotate.js +14 -0
  14. package/dist/api/generated/models/api-token-relation.d.ts +81 -0
  15. package/dist/api/generated/models/api-token-relation.js +14 -0
  16. package/dist/api/generated/models/api-token-rotate-response.d.ts +94 -0
  17. package/dist/api/generated/models/api-token-rotate-response.js +14 -0
  18. package/dist/api/generated/models/api-token-status.d.ts +21 -0
  19. package/dist/api/generated/models/api-token-status.js +26 -0
  20. package/dist/api/generated/models/api-token-type-prefix.d.ts +20 -0
  21. package/dist/api/generated/models/api-token-type-prefix.js +25 -0
  22. package/dist/api/generated/models/api-token-type.d.ts +20 -0
  23. package/dist/api/generated/models/api-token-type.js +25 -0
  24. package/dist/api/generated/models/api-token.d.ts +94 -0
  25. package/dist/api/generated/models/api-token.js +14 -0
  26. package/dist/api/generated/models/cloud-provider-code.d.ts +2 -1
  27. package/dist/api/generated/models/cloud-provider-code.js +1 -0
  28. package/dist/api/generated/models/cloud-provider-service-code.d.ts +1 -0
  29. package/dist/api/generated/models/cloud-provider-service-code.js +1 -0
  30. package/dist/api/generated/models/cloud-service-settings-hetzner-hcloud.d.ts +49 -0
  31. package/dist/api/generated/models/cloud-service-settings-hetzner-hcloud.js +14 -0
  32. package/dist/api/generated/models/credential-hetzner.d.ts +24 -0
  33. package/dist/api/generated/models/credential-hetzner.js +14 -0
  34. package/dist/api/generated/models/credential-input-settings.d.ts +3 -2
  35. package/dist/api/generated/models/index.d.ts +16 -0
  36. package/dist/api/generated/models/index.js +16 -0
  37. package/dist/api/generated/models/personal-access-token-relation.d.ts +81 -0
  38. package/dist/api/generated/models/personal-access-token-relation.js +14 -0
  39. package/dist/api/generated/models/personal-access-token-rotate-response.d.ts +87 -0
  40. package/dist/api/generated/models/personal-access-token-rotate-response.js +14 -0
  41. package/dist/api/generated/models/personal-access-token-user-create.d.ts +31 -0
  42. package/dist/api/generated/models/personal-access-token-user-create.js +14 -0
  43. package/dist/api/generated/models/personal-access-token-user-rotate.d.ts +31 -0
  44. package/dist/api/generated/models/personal-access-token-user-rotate.js +14 -0
  45. package/dist/api/generated/models/personal-access-token.d.ts +87 -0
  46. package/dist/api/generated/models/personal-access-token.js +14 -0
  47. package/dist/api/generated/models/provider-code.d.ts +2 -1
  48. package/dist/api/generated/models/provider-code.js +1 -0
  49. package/dist/api/generated/models/server-cloud-service-code.d.ts +1 -0
  50. package/dist/api/generated/models/server-cloud-service-code.js +1 -0
  51. package/dist/api/generated/models/server-provision-input.d.ts +3 -2
  52. package/dist/api/generated/models/social-account-displayable-name.d.ts +1 -0
  53. package/dist/api/generated/models/social-account-displayable-name.js +1 -0
  54. package/dist/api/generated/models/social-account-provider.d.ts +1 -0
  55. package/dist/api/generated/models/social-account-provider.js +1 -0
  56. package/dist/api/generated/models/static-cloud-provider-code.d.ts +2 -0
  57. package/dist/api/generated/models/static-cloud-provider-code.js +2 -0
  58. package/dist/services/ApiBaseService.d.ts +5 -2
  59. package/dist/services/ApiBaseService.js +12 -2
  60. package/dist/services/ApiTokenService.d.ts +7 -0
  61. package/dist/services/ApiTokenService.js +15 -0
  62. package/package.json +12 -12
@@ -42,6 +42,15 @@ __exportStar(require("./action-type"), exports);
42
42
  __exportStar(require("./api-error"), exports);
43
43
  __exportStar(require("./api-error-errors"), exports);
44
44
  __exportStar(require("./api-error-errors-field-name"), exports);
45
+ __exportStar(require("./api-token"), exports);
46
+ __exportStar(require("./api-token-allowed-expiration"), exports);
47
+ __exportStar(require("./api-token-project-create"), exports);
48
+ __exportStar(require("./api-token-project-rotate"), exports);
49
+ __exportStar(require("./api-token-relation"), exports);
50
+ __exportStar(require("./api-token-rotate-response"), exports);
51
+ __exportStar(require("./api-token-status"), exports);
52
+ __exportStar(require("./api-token-type"), exports);
53
+ __exportStar(require("./api-token-type-prefix"), exports);
45
54
  __exportStar(require("./application"), exports);
46
55
  __exportStar(require("./application-environment-create"), exports);
47
56
  __exportStar(require("./application-last-deployments"), exports);
@@ -70,6 +79,7 @@ __exportStar(require("./cloud-service-settings-aws-ec2"), exports);
70
79
  __exportStar(require("./cloud-service-settings-azure-rm"), exports);
71
80
  __exportStar(require("./cloud-service-settings-digital-ocean-droplet"), exports);
72
81
  __exportStar(require("./cloud-service-settings-gcp-gce"), exports);
82
+ __exportStar(require("./cloud-service-settings-hetzner-hcloud"), exports);
73
83
  __exportStar(require("./cloud-service-settings-self-hosted-custom"), exports);
74
84
  __exportStar(require("./commit"), exports);
75
85
  __exportStar(require("./credential"), exports);
@@ -78,6 +88,7 @@ __exportStar(require("./credential-azure"), exports);
78
88
  __exportStar(require("./credential-digital-ocean"), exports);
79
89
  __exportStar(require("./credential-environment-create"), exports);
80
90
  __exportStar(require("./credential-google-cloud"), exports);
91
+ __exportStar(require("./credential-hetzner"), exports);
81
92
  __exportStar(require("./credential-input-settings"), exports);
82
93
  __exportStar(require("./credential-options"), exports);
83
94
  __exportStar(require("./credential-provider"), exports);
@@ -170,6 +181,11 @@ __exportStar(require("./password-reset-response"), exports);
170
181
  __exportStar(require("./password-user-reset"), exports);
171
182
  __exportStar(require("./password-user-send-reset-link"), exports);
172
183
  __exportStar(require("./permission-relation"), exports);
184
+ __exportStar(require("./personal-access-token"), exports);
185
+ __exportStar(require("./personal-access-token-relation"), exports);
186
+ __exportStar(require("./personal-access-token-rotate-response"), exports);
187
+ __exportStar(require("./personal-access-token-user-create"), exports);
188
+ __exportStar(require("./personal-access-token-user-rotate"), exports);
173
189
  __exportStar(require("./pipeline"), exports);
174
190
  __exportStar(require("./pipeline-create"), exports);
175
191
  __exportStar(require("./pipeline-relation"), exports);
@@ -0,0 +1,81 @@
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 { ApiTokenStatus } from './api-token-status';
13
+ import { ApiTokenType } from './api-token-type';
14
+ import { UserRelation } from './user-relation';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface PersonalAccessTokenRelation
19
+ */
20
+ export interface PersonalAccessTokenRelation {
21
+ /**
22
+ * Unique identifier of the Token
23
+ * @type {string}
24
+ * @memberof PersonalAccessTokenRelation
25
+ */
26
+ id: string;
27
+ /**
28
+ * Name of the Token
29
+ * @type {string}
30
+ * @memberof PersonalAccessTokenRelation
31
+ */
32
+ name: string;
33
+ /**
34
+ *
35
+ * @type {ApiTokenType}
36
+ * @memberof PersonalAccessTokenRelation
37
+ */
38
+ type: ApiTokenType;
39
+ /**
40
+ *
41
+ * @type {ApiTokenStatus}
42
+ * @memberof PersonalAccessTokenRelation
43
+ */
44
+ status: ApiTokenStatus;
45
+ /**
46
+ *
47
+ * @type {UserRelation}
48
+ * @memberof PersonalAccessTokenRelation
49
+ */
50
+ user: UserRelation;
51
+ /**
52
+ * Last time the Token was used
53
+ * @type {string}
54
+ * @memberof PersonalAccessTokenRelation
55
+ */
56
+ last_used_at: string | null;
57
+ /**
58
+ * Expiration date of the Token
59
+ * @type {string}
60
+ * @memberof PersonalAccessTokenRelation
61
+ */
62
+ expires_at: string;
63
+ /**
64
+ * Revocation date of the Token
65
+ * @type {string}
66
+ * @memberof PersonalAccessTokenRelation
67
+ */
68
+ revoked_at: string | null;
69
+ /**
70
+ * Last time the Token was updated
71
+ * @type {string}
72
+ * @memberof PersonalAccessTokenRelation
73
+ */
74
+ updated_at: string;
75
+ /**
76
+ * Creation date of the Token
77
+ * @type {string}
78
+ * @memberof PersonalAccessTokenRelation
79
+ */
80
+ created_at: string;
81
+ }
@@ -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,87 @@
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 { ApiTokenStatus } from './api-token-status';
13
+ import { ApiTokenType } from './api-token-type';
14
+ import { UserRelation } from './user-relation';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface PersonalAccessTokenRotateResponse
19
+ */
20
+ export interface PersonalAccessTokenRotateResponse {
21
+ /**
22
+ * Unique identifier of the Token
23
+ * @type {string}
24
+ * @memberof PersonalAccessTokenRotateResponse
25
+ */
26
+ id: string;
27
+ /**
28
+ * Name of the Token
29
+ * @type {string}
30
+ * @memberof PersonalAccessTokenRotateResponse
31
+ */
32
+ name: string;
33
+ /**
34
+ *
35
+ * @type {ApiTokenType}
36
+ * @memberof PersonalAccessTokenRotateResponse
37
+ */
38
+ type: ApiTokenType;
39
+ /**
40
+ * The plain text value of the Token. The API token value is only displayed/returned once when the token is generated. Users must keep it in a safe place, as it cannot be retrieved again at a later time.
41
+ * @type {string}
42
+ * @memberof PersonalAccessTokenRotateResponse
43
+ */
44
+ token: string | null;
45
+ /**
46
+ *
47
+ * @type {ApiTokenStatus}
48
+ * @memberof PersonalAccessTokenRotateResponse
49
+ */
50
+ status: ApiTokenStatus;
51
+ /**
52
+ *
53
+ * @type {UserRelation}
54
+ * @memberof PersonalAccessTokenRotateResponse
55
+ */
56
+ user: UserRelation;
57
+ /**
58
+ * Last time the Token was used
59
+ * @type {string}
60
+ * @memberof PersonalAccessTokenRotateResponse
61
+ */
62
+ last_used_at: string | null;
63
+ /**
64
+ * Expiration date of the Token
65
+ * @type {string}
66
+ * @memberof PersonalAccessTokenRotateResponse
67
+ */
68
+ expires_at: string;
69
+ /**
70
+ * Revocation date of the Token
71
+ * @type {string}
72
+ * @memberof PersonalAccessTokenRotateResponse
73
+ */
74
+ revoked_at: string | null;
75
+ /**
76
+ * Last time the Token was updated
77
+ * @type {string}
78
+ * @memberof PersonalAccessTokenRotateResponse
79
+ */
80
+ updated_at: string;
81
+ /**
82
+ * Creation date of the Token
83
+ * @type {string}
84
+ * @memberof PersonalAccessTokenRotateResponse
85
+ */
86
+ created_at: string;
87
+ }
@@ -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,31 @@
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 { ApiTokenAllowedExpiration } from './api-token-allowed-expiration';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PersonalAccessTokenUserCreate
17
+ */
18
+ export interface PersonalAccessTokenUserCreate {
19
+ /**
20
+ * Name of the token. Must be at least 3 characters. Must not be greater than 255 characters.
21
+ * @type {string}
22
+ * @memberof PersonalAccessTokenUserCreate
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {ApiTokenAllowedExpiration}
28
+ * @memberof PersonalAccessTokenUserCreate
29
+ */
30
+ expires_in: ApiTokenAllowedExpiration;
31
+ }
@@ -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,31 @@
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 { ApiTokenAllowedExpiration } from './api-token-allowed-expiration';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PersonalAccessTokenUserRotate
17
+ */
18
+ export interface PersonalAccessTokenUserRotate {
19
+ /**
20
+ * The unique identifier of the token.
21
+ * @type {string}
22
+ * @memberof PersonalAccessTokenUserRotate
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {ApiTokenAllowedExpiration}
28
+ * @memberof PersonalAccessTokenUserRotate
29
+ */
30
+ expires_in: ApiTokenAllowedExpiration;
31
+ }
@@ -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,87 @@
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 { ApiTokenStatus } from './api-token-status';
13
+ import { ApiTokenType } from './api-token-type';
14
+ import { UserRelation } from './user-relation';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface PersonalAccessToken
19
+ */
20
+ export interface PersonalAccessToken {
21
+ /**
22
+ * Unique identifier of the Token
23
+ * @type {string}
24
+ * @memberof PersonalAccessToken
25
+ */
26
+ id: string;
27
+ /**
28
+ * Name of the Token
29
+ * @type {string}
30
+ * @memberof PersonalAccessToken
31
+ */
32
+ name: string;
33
+ /**
34
+ *
35
+ * @type {ApiTokenType}
36
+ * @memberof PersonalAccessToken
37
+ */
38
+ type: ApiTokenType;
39
+ /**
40
+ * The plain text value of the Token. The API token value is only displayed/returned once when the token is generated. Users must keep it in a safe place, as it cannot be retrieved again at a later time.
41
+ * @type {string}
42
+ * @memberof PersonalAccessToken
43
+ */
44
+ token: string | null;
45
+ /**
46
+ *
47
+ * @type {ApiTokenStatus}
48
+ * @memberof PersonalAccessToken
49
+ */
50
+ status: ApiTokenStatus;
51
+ /**
52
+ *
53
+ * @type {UserRelation}
54
+ * @memberof PersonalAccessToken
55
+ */
56
+ user: UserRelation;
57
+ /**
58
+ * Last time the Token was used
59
+ * @type {string}
60
+ * @memberof PersonalAccessToken
61
+ */
62
+ last_used_at: string | null;
63
+ /**
64
+ * Expiration date of the Token
65
+ * @type {string}
66
+ * @memberof PersonalAccessToken
67
+ */
68
+ expires_at: string;
69
+ /**
70
+ * Revocation date of the Token
71
+ * @type {string}
72
+ * @memberof PersonalAccessToken
73
+ */
74
+ revoked_at: string | null;
75
+ /**
76
+ * Last time the Token was updated
77
+ * @type {string}
78
+ * @memberof PersonalAccessToken
79
+ */
80
+ updated_at: string;
81
+ /**
82
+ * Creation date of the Token
83
+ * @type {string}
84
+ * @memberof PersonalAccessToken
85
+ */
86
+ created_at: string;
87
+ }
@@ -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,5 +21,6 @@ export declare enum ProviderCode {
21
21
  Digitalocean = "digitalocean",
22
22
  Gcp = "gcp",
23
23
  Github = "github",
24
- Gitlab = "gitlab"
24
+ Gitlab = "gitlab",
25
+ Hetzner = "hetzner"
25
26
  }
@@ -27,4 +27,5 @@ var ProviderCode;
27
27
  ProviderCode["Gcp"] = "gcp";
28
28
  ProviderCode["Github"] = "github";
29
29
  ProviderCode["Gitlab"] = "gitlab";
30
+ ProviderCode["Hetzner"] = "hetzner";
30
31
  })(ProviderCode || (exports.ProviderCode = ProviderCode = {}));
@@ -19,5 +19,6 @@ export declare enum ServerCloudServiceCode {
19
19
  AzureRm = "azure-rm",
20
20
  DigitaloceanDroplet = "digitalocean-droplet",
21
21
  GcpGce = "gcp-gce",
22
+ HetznerHcloud = "hetzner-hcloud",
22
23
  SelfHostedCustom = "self-hosted-custom"
23
24
  }
@@ -24,5 +24,6 @@ var ServerCloudServiceCode;
24
24
  ServerCloudServiceCode["AzureRm"] = "azure-rm";
25
25
  ServerCloudServiceCode["DigitaloceanDroplet"] = "digitalocean-droplet";
26
26
  ServerCloudServiceCode["GcpGce"] = "gcp-gce";
27
+ ServerCloudServiceCode["HetznerHcloud"] = "hetzner-hcloud";
27
28
  ServerCloudServiceCode["SelfHostedCustom"] = "self-hosted-custom";
28
29
  })(ServerCloudServiceCode || (exports.ServerCloudServiceCode = ServerCloudServiceCode = {}));
@@ -13,6 +13,7 @@ import { CloudServiceSettingsAwsEc2 } from './cloud-service-settings-aws-ec2';
13
13
  import { CloudServiceSettingsAzureRm } from './cloud-service-settings-azure-rm';
14
14
  import { CloudServiceSettingsDigitalOceanDroplet } from './cloud-service-settings-digital-ocean-droplet';
15
15
  import { CloudServiceSettingsGcpGce } from './cloud-service-settings-gcp-gce';
16
+ import { CloudServiceSettingsHetznerHcloud } from './cloud-service-settings-hetzner-hcloud';
16
17
  import { CloudServiceSettingsSelfHostedCustom } from './cloud-service-settings-self-hosted-custom';
17
18
  import { ServerCloudServiceCode } from './server-cloud-service-code';
18
19
  /**
@@ -35,8 +36,8 @@ export interface ServerProvisionInput {
35
36
  cloud_service_code: ServerCloudServiceCode;
36
37
  /**
37
38
  * The configurations used to cloud service
38
- * @type {CloudServiceSettingsAwsEc2 | CloudServiceSettingsAzureRm | CloudServiceSettingsDigitalOceanDroplet | CloudServiceSettingsGcpGce | CloudServiceSettingsSelfHostedCustom}
39
+ * @type {CloudServiceSettingsAwsEc2 | CloudServiceSettingsAzureRm | CloudServiceSettingsDigitalOceanDroplet | CloudServiceSettingsGcpGce | CloudServiceSettingsHetznerHcloud | CloudServiceSettingsSelfHostedCustom}
39
40
  * @memberof ServerProvisionInput
40
41
  */
41
- settings?: CloudServiceSettingsAwsEc2 | CloudServiceSettingsAzureRm | CloudServiceSettingsDigitalOceanDroplet | CloudServiceSettingsGcpGce | CloudServiceSettingsSelfHostedCustom;
42
+ settings?: CloudServiceSettingsAwsEc2 | CloudServiceSettingsAzureRm | CloudServiceSettingsDigitalOceanDroplet | CloudServiceSettingsGcpGce | CloudServiceSettingsHetznerHcloud | CloudServiceSettingsSelfHostedCustom;
42
43
  }
@@ -16,6 +16,7 @@
16
16
  */
17
17
  export declare enum SocialAccountDisplayableName {
18
18
  Bitbucket = "Bitbucket",
19
+ Clerk = "Clerk",
19
20
  Facebook = "Facebook",
20
21
  GitHub = "GitHub",
21
22
  GitLab = "GitLab",
@@ -21,6 +21,7 @@ exports.SocialAccountDisplayableName = void 0;
21
21
  var SocialAccountDisplayableName;
22
22
  (function (SocialAccountDisplayableName) {
23
23
  SocialAccountDisplayableName["Bitbucket"] = "Bitbucket";
24
+ SocialAccountDisplayableName["Clerk"] = "Clerk";
24
25
  SocialAccountDisplayableName["Facebook"] = "Facebook";
25
26
  SocialAccountDisplayableName["GitHub"] = "GitHub";
26
27
  SocialAccountDisplayableName["GitLab"] = "GitLab";
@@ -16,6 +16,7 @@
16
16
  */
17
17
  export declare enum SocialAccountProvider {
18
18
  Bitbucket = "bitbucket",
19
+ Clerk = "clerk",
19
20
  Facebook = "facebook",
20
21
  Github = "github",
21
22
  Gitlab = "gitlab",
@@ -21,6 +21,7 @@ exports.SocialAccountProvider = void 0;
21
21
  var SocialAccountProvider;
22
22
  (function (SocialAccountProvider) {
23
23
  SocialAccountProvider["Bitbucket"] = "bitbucket";
24
+ SocialAccountProvider["Clerk"] = "clerk";
24
25
  SocialAccountProvider["Facebook"] = "facebook";
25
26
  SocialAccountProvider["Github"] = "github";
26
27
  SocialAccountProvider["Gitlab"] = "gitlab";
@@ -16,7 +16,9 @@
16
16
  */
17
17
  export declare enum StaticCloudProviderCode {
18
18
  Aws = "aws",
19
+ Azure = "azure",
19
20
  Digitalocean = "digitalocean",
20
21
  Gcp = "gcp",
22
+ Hetzner = "hetzner",
21
23
  SelfHosted = "self-hosted"
22
24
  }
@@ -21,7 +21,9 @@ exports.StaticCloudProviderCode = void 0;
21
21
  var StaticCloudProviderCode;
22
22
  (function (StaticCloudProviderCode) {
23
23
  StaticCloudProviderCode["Aws"] = "aws";
24
+ StaticCloudProviderCode["Azure"] = "azure";
24
25
  StaticCloudProviderCode["Digitalocean"] = "digitalocean";
25
26
  StaticCloudProviderCode["Gcp"] = "gcp";
27
+ StaticCloudProviderCode["Hetzner"] = "hetzner";
26
28
  StaticCloudProviderCode["SelfHosted"] = "self-hosted";
27
29
  })(StaticCloudProviderCode || (exports.StaticCloudProviderCode = StaticCloudProviderCode = {}));
@@ -1,16 +1,17 @@
1
1
  import { AxiosResponse } from "axios";
2
2
  export interface ConfigurationOptions {
3
- apiKey?: string;
3
+ apiToken?: string;
4
4
  baseURL?: string;
5
5
  }
6
6
  export declare class Configuration implements ConfigurationOptions {
7
- apiKey?: string;
7
+ apiToken?: string;
8
8
  baseURL: string;
9
9
  constructor(options: ConfigurationOptions);
10
10
  }
11
11
  export declare class ApiBaseService {
12
12
  private api;
13
13
  private static _accessToken;
14
+ private static _apiToken;
14
15
  private static _onTokenExpired;
15
16
  static configuration: Configuration;
16
17
  private static SDK_VERSION;
@@ -20,6 +21,8 @@ export declare class ApiBaseService {
20
21
  private setUserAgent;
21
22
  private setupAxiosRequestInterceptors;
22
23
  private setupAxiosResponseInterceptors;
24
+ static get apiToken(): string | undefined;
25
+ static set apiToken(value: string | undefined);
23
26
  static get accessToken(): string;
24
27
  static set accessToken(value: string);
25
28
  static set onTokenExpired(callback: (accessToken: string) => void);
@@ -18,7 +18,7 @@ const Exceptions_1 = require("../common/Exceptions");
18
18
  class Configuration {
19
19
  constructor(options) {
20
20
  this.baseURL = "https://api.devopness.com";
21
- this.apiKey = options.apiKey;
21
+ this.apiToken = options.apiToken;
22
22
  this.baseURL = options.baseURL || this.baseURL;
23
23
  }
24
24
  }
@@ -39,6 +39,7 @@ class ApiBaseService {
39
39
  }
40
40
  const settings = this.defaultAxiosSettings;
41
41
  settings.baseURL = ApiBaseService.configuration.baseURL;
42
+ ApiBaseService._apiToken = ApiBaseService.configuration.apiToken;
42
43
  this.api = axios_1.default.create(settings);
43
44
  this.setupAxios();
44
45
  }
@@ -67,7 +68,10 @@ class ApiBaseService {
67
68
  if (!config.headers) {
68
69
  config.headers = {};
69
70
  }
70
- if (ApiBaseService._accessToken) {
71
+ if (ApiBaseService._apiToken) {
72
+ config.headers.Authorization = `Bearer ${ApiBaseService._apiToken}`;
73
+ }
74
+ else if (ApiBaseService._accessToken) {
71
75
  config.headers.Authorization = `Bearer ${ApiBaseService._accessToken}`;
72
76
  }
73
77
  else {
@@ -101,6 +105,12 @@ class ApiBaseService {
101
105
  }
102
106
  });
103
107
  }
108
+ static get apiToken() {
109
+ return ApiBaseService._apiToken;
110
+ }
111
+ static set apiToken(value) {
112
+ ApiBaseService._apiToken = value;
113
+ }
104
114
  static get accessToken() {
105
115
  return ApiBaseService._accessToken;
106
116
  }
@@ -0,0 +1,7 @@
1
+ import { ApiBaseService } from "./ApiBaseService";
2
+ import { ProjectsApiTokensApiService } from "../api/generated/apis/projects-api-tokens-api";
3
+ import { UsersPersonalAccessTokensApiService } from "../api/generated/apis/users-personal-access-tokens-api";
4
+ export declare class ApiTokenService extends ApiBaseService {
5
+ }
6
+ export interface ApiTokenService extends ProjectsApiTokensApiService, UsersPersonalAccessTokensApiService {
7
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiTokenService = void 0;
4
+ const ApiBaseService_1 = require("./ApiBaseService");
5
+ const MergeSiblingClasses_1 = require("../common/MergeSiblingClasses");
6
+ const projects_api_tokens_api_1 = require("../api/generated/apis/projects-api-tokens-api");
7
+ const users_personal_access_tokens_api_1 = require("../api/generated/apis/users-personal-access-tokens-api");
8
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
9
+ class ApiTokenService extends ApiBaseService_1.ApiBaseService {
10
+ }
11
+ exports.ApiTokenService = ApiTokenService;
12
+ (0, MergeSiblingClasses_1.mergeSiblingClasses)(ApiTokenService, [
13
+ projects_api_tokens_api_1.ProjectsApiTokensApiService,
14
+ users_personal_access_tokens_api_1.UsersPersonalAccessTokensApiService,
15
+ ]);