@devopness/sdk-js 2.23.0 → 2.25.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 (132) hide show
  1. package/dist/DevopnessApiClient.d.ts +2 -4
  2. package/dist/DevopnessApiClient.js +2 -4
  3. package/dist/api/generated/apis/actions-api.d.ts +16 -5
  4. package/dist/api/generated/apis/actions-api.js +35 -2
  5. package/dist/api/generated/apis/actions-resources-api.d.ts +0 -11
  6. package/dist/api/generated/apis/actions-resources-api.js +0 -33
  7. package/dist/api/generated/apis/applications-api.d.ts +4 -4
  8. package/dist/api/generated/apis/applications-api.js +4 -4
  9. package/dist/api/generated/apis/applications-hooks-api.d.ts +5 -3
  10. package/dist/api/generated/apis/applications-hooks-api.js +12 -3
  11. package/dist/api/generated/apis/environments-api.d.ts +4 -4
  12. package/dist/api/generated/apis/environments-api.js +4 -4
  13. package/dist/api/generated/apis/environments-teams-api.d.ts +34 -0
  14. package/dist/api/generated/apis/environments-teams-api.js +77 -0
  15. package/dist/api/generated/apis/hook-requests-api.d.ts +25 -0
  16. package/dist/api/generated/apis/hook-requests-api.js +49 -0
  17. package/dist/api/generated/apis/hooks-api.d.ts +56 -0
  18. package/dist/api/generated/apis/hooks-api.js +133 -0
  19. package/dist/api/generated/apis/hooks-requests-api.d.ts +7 -17
  20. package/dist/api/generated/apis/hooks-requests-api.js +18 -37
  21. package/dist/api/generated/apis/projects-api.d.ts +8 -8
  22. package/dist/api/generated/apis/projects-api.js +8 -8
  23. package/dist/api/generated/apis/roles-api.d.ts +6 -6
  24. package/dist/api/generated/apis/roles-api.js +6 -6
  25. package/dist/api/generated/apis/servers-api.d.ts +6 -6
  26. package/dist/api/generated/apis/servers-api.js +4 -4
  27. package/dist/api/generated/apis/services-variables-api.d.ts +36 -0
  28. package/dist/api/generated/apis/services-variables-api.js +78 -0
  29. package/dist/api/generated/apis/source-providers-api.d.ts +7 -6
  30. package/dist/api/generated/apis/source-providers-api.js +5 -5
  31. package/dist/api/generated/apis/source-providers-repositories-api.d.ts +9 -8
  32. package/dist/api/generated/apis/source-providers-repositories-api.js +15 -15
  33. package/dist/api/generated/apis/teams-api.d.ts +4 -20
  34. package/dist/api/generated/apis/teams-api.js +4 -48
  35. package/dist/api/generated/apis/teams-members-api.d.ts +8 -8
  36. package/dist/api/generated/apis/teams-members-api.js +16 -16
  37. package/dist/api/generated/apis/users-api.d.ts +1 -1
  38. package/dist/api/generated/apis/users-api.js +2 -2
  39. package/dist/api/generated/models/action-relation.d.ts +31 -4
  40. package/dist/api/generated/models/action-retry-response.d.ts +7 -1
  41. package/dist/api/generated/models/action-step-log.d.ts +1 -1
  42. package/dist/api/generated/models/action.d.ts +28 -22
  43. package/dist/api/generated/models/application-environment-create.d.ts +4 -3
  44. package/dist/api/generated/models/application-last-deployments.d.ts +5 -5
  45. package/dist/api/generated/models/application-project-create.d.ts +4 -3
  46. package/dist/api/generated/models/application-relation.d.ts +40 -41
  47. package/dist/api/generated/models/application-update.d.ts +50 -45
  48. package/dist/api/generated/models/application.d.ts +53 -48
  49. package/dist/api/generated/models/commit.d.ts +8 -14
  50. package/dist/api/generated/models/cron-job.d.ts +1 -1
  51. package/dist/api/generated/models/daemon.d.ts +1 -1
  52. package/dist/api/generated/models/environment.d.ts +3 -3
  53. package/dist/api/generated/models/hook-create.d.ts +84 -0
  54. package/dist/api/generated/models/{application-last-deployment.js → hook-create.js} +0 -0
  55. package/dist/api/generated/models/{hook-incoming-setting.d.ts → hook-incoming-settings.d.ts} +3 -3
  56. package/dist/api/generated/models/{hook-incoming-create.js → hook-incoming-settings.js} +0 -0
  57. package/dist/api/generated/models/hook-incoming-trigger-when-condition-type.d.ts +1 -1
  58. package/dist/api/generated/models/hook-incoming-trigger-when-condition-type.js +1 -1
  59. package/dist/api/generated/models/{hook-outgoing-setting.d.ts → hook-outgoing-settings.d.ts} +4 -4
  60. package/dist/api/generated/models/{hook-incoming-params.js → hook-outgoing-settings.js} +0 -0
  61. package/dist/api/generated/models/hook-outgoing-trigger-when-condition-type.d.ts +1 -1
  62. package/dist/api/generated/models/hook-outgoing-trigger-when-condition-type.js +1 -1
  63. package/dist/api/generated/models/hook-outgoing-trigger-when-condition.d.ts +1 -1
  64. package/dist/api/generated/models/hook-relation.d.ts +42 -35
  65. package/dist/api/generated/models/hook-request.d.ts +10 -10
  66. package/dist/api/generated/models/hook-update.d.ts +84 -0
  67. package/dist/api/generated/models/{hook-incoming-setting.js → hook-update.js} +0 -0
  68. package/dist/api/generated/models/hook-variable.d.ts +3 -3
  69. package/dist/api/generated/models/hook.d.ts +68 -22
  70. package/dist/api/generated/models/index.d.ts +11 -12
  71. package/dist/api/generated/models/index.js +11 -12
  72. package/dist/api/generated/models/invitation-relation.d.ts +2 -2
  73. package/dist/api/generated/models/invitation.d.ts +1 -1
  74. package/dist/api/generated/models/member-relation.d.ts +5 -11
  75. package/dist/api/generated/models/member.d.ts +13 -7
  76. package/dist/api/generated/models/repository-branch.d.ts +4 -4
  77. package/dist/api/generated/models/repository-relation.d.ts +42 -0
  78. package/dist/api/generated/models/{hook-incoming-update.js → repository-relation.js} +0 -0
  79. package/dist/api/generated/models/repository.d.ts +6 -6
  80. package/dist/api/generated/models/request-relation.d.ts +60 -0
  81. package/dist/api/generated/models/{hook-incoming.js → request-relation.js} +0 -0
  82. package/dist/api/generated/models/{hook-incoming.d.ts → server-command.d.ts} +10 -4
  83. package/dist/api/generated/models/{hook-outgoing-create.js → server-command.js} +0 -0
  84. package/dist/api/generated/models/server.d.ts +1 -1
  85. package/dist/api/generated/models/service.d.ts +1 -1
  86. package/dist/api/generated/models/source-provider-create.d.ts +1 -1
  87. package/dist/api/generated/models/source-provider-relation.d.ts +68 -0
  88. package/dist/api/generated/models/{hook-outgoing-params.js → source-provider-relation.js} +0 -0
  89. package/dist/api/generated/models/source-provider.d.ts +13 -7
  90. package/dist/api/generated/models/subscription-plan.d.ts +30 -0
  91. package/dist/api/generated/models/{hook-outgoing-setting.js → subscription-plan.js} +0 -0
  92. package/dist/api/generated/models/team-invitation-relation.d.ts +2 -2
  93. package/dist/api/generated/models/team-invitation.d.ts +2 -2
  94. package/dist/api/generated/models/team-membership-relation.d.ts +1 -1
  95. package/dist/api/generated/models/team.d.ts +1 -1
  96. package/dist/api/generated/models/{user-current.d.ts → user-me.d.ts} +18 -11
  97. package/dist/api/generated/models/{hook-outgoing-update.js → user-me.js} +0 -0
  98. package/dist/api/generated/models/user-update.d.ts +6 -0
  99. package/dist/api/generated/models/user.d.ts +7 -0
  100. package/dist/api/generated/models/variable-application-create.d.ts +0 -12
  101. package/dist/api/generated/models/variable-relation.d.ts +0 -6
  102. package/dist/api/generated/models/variable-service-create.d.ts +56 -0
  103. package/dist/api/generated/models/{hook-outgoing.js → variable-service-create.js} +0 -0
  104. package/dist/api/generated/models/variable.d.ts +0 -6
  105. package/dist/services/EnvironmentService.d.ts +2 -0
  106. package/dist/services/EnvironmentService.js +2 -0
  107. package/dist/services/HookRequestService.d.ts +2 -2
  108. package/dist/services/HookRequestService.js +2 -2
  109. package/dist/services/HookService.d.ts +5 -0
  110. package/dist/services/HookService.js +12 -0
  111. package/dist/services/ServiceService.d.ts +2 -0
  112. package/dist/services/ServiceService.js +5 -0
  113. package/dist/services/index.d.ts +1 -2
  114. package/dist/services/index.js +1 -2
  115. package/package.json +3 -3
  116. package/dist/api/generated/apis/hooks-incoming-api.d.ts +0 -53
  117. package/dist/api/generated/apis/hooks-incoming-api.js +0 -118
  118. package/dist/api/generated/apis/hooks-outgoing-api.d.ts +0 -46
  119. package/dist/api/generated/apis/hooks-outgoing-api.js +0 -101
  120. package/dist/api/generated/models/application-last-deployment.d.ts +0 -130
  121. package/dist/api/generated/models/hook-incoming-create.d.ts +0 -82
  122. package/dist/api/generated/models/hook-incoming-params.d.ts +0 -38
  123. package/dist/api/generated/models/hook-incoming-update.d.ts +0 -68
  124. package/dist/api/generated/models/hook-outgoing-create.d.ts +0 -70
  125. package/dist/api/generated/models/hook-outgoing-params.d.ts +0 -38
  126. package/dist/api/generated/models/hook-outgoing-update.d.ts +0 -76
  127. package/dist/api/generated/models/hook-outgoing.d.ts +0 -18
  128. package/dist/api/generated/models/user-current.js +0 -14
  129. package/dist/services/HookIncomingService.d.ts +0 -3
  130. package/dist/services/HookIncomingService.js +0 -7
  131. package/dist/services/HookOutgoingService.d.ts +0 -3
  132. package/dist/services/HookOutgoingService.js +0 -7
@@ -10,8 +10,12 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { ActionType } from './action-type';
13
+ import { HookIncomingSettings } from './hook-incoming-settings';
14
+ import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
15
+ import { HookOutgoingSettings } from './hook-outgoing-settings';
16
+ import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
13
17
  import { HookType } from './hook-type';
14
- import { Resource } from './resource';
18
+ import { ResourceType } from './resource-type';
15
19
  import { UserRelation } from './user-relation';
16
20
  /**
17
21
  *
@@ -20,7 +24,7 @@ import { UserRelation } from './user-relation';
20
24
  */
21
25
  export interface Hook {
22
26
  /**
23
- * The Id of the given hook
27
+ * The UUID of the given hook
24
28
  * @type {string}
25
29
  * @memberof Hook
26
30
  */
@@ -38,29 +42,35 @@ export interface Hook {
38
42
  */
39
43
  type: HookType;
40
44
  /**
41
- * Tells if requests to this hook must only be accepted when a HTTP header is sent with a message authentication code ([HMAC](https://en.wikipedia.org/wiki/HMAC)) generated based on the secret provided by Devopness and shared by user with external sources
42
- * @type {boolean}
45
+ *
46
+ * @type {ActionType}
43
47
  * @memberof Hook
44
48
  */
45
- requires_secret?: boolean;
49
+ action_type: ActionType;
46
50
  /**
47
- * The secret generated by Devopness to be used to digitally sign incoming requests
51
+ * URL that triggers incoming hooks
48
52
  * @type {string}
49
53
  * @memberof Hook
50
54
  */
51
- secret: string;
55
+ url: string | null;
52
56
  /**
53
- * The name of the HTTP request header from which the request digital signature should be extracted
57
+ * URL that outgoing hooks make a request to
54
58
  * @type {string}
55
59
  * @memberof Hook
56
60
  */
57
- secret_header_name?: string | null;
61
+ target_url: string | null;
58
62
  /**
59
- * The cryptographic hash function to be used by Devopness when validating digitally signed incoming requests for hooks that require secret validation
60
- * @type {string}
63
+ * Indicates if the record was auto_generated by `devopness` itself
64
+ * @type {boolean}
61
65
  * @memberof Hook
62
66
  */
63
- secret_algorithm?: string | null;
67
+ auto_generated: boolean;
68
+ /**
69
+ * Tells if requests to this hook must only be accepted when a HTTP header is sent with a message authentication code ([HMAC](https://en.wikipedia.org/wiki/HMAC)) generated based on the secret provided by Devopness and shared by user with external sources
70
+ * @type {boolean}
71
+ * @memberof Hook
72
+ */
73
+ requires_secret: boolean;
64
74
  /**
65
75
  * Indicates if the Devopness must be verify the SSL certificate of the request
66
76
  * @type {boolean}
@@ -68,35 +78,71 @@ export interface Hook {
68
78
  */
69
79
  verify_ssl: boolean;
70
80
  /**
71
- * Indicates if the record was auto_generated by `devopness` itself
81
+ * Determines if the hook is currently active
72
82
  * @type {boolean}
73
83
  * @memberof Hook
74
84
  */
75
- auto_generated?: boolean;
85
+ active: boolean;
86
+ /**
87
+ * The ID of the project
88
+ * @type {number}
89
+ * @memberof Hook
90
+ */
91
+ project_id: number;
92
+ /**
93
+ * The ID of the environment
94
+ * @type {number}
95
+ * @memberof Hook
96
+ */
97
+ environment_id: number;
76
98
  /**
77
99
  *
78
- * @type {ActionType}
100
+ * @type {ResourceType}
79
101
  * @memberof Hook
80
102
  */
81
- action_type: ActionType;
103
+ resource_type: ResourceType;
82
104
  /**
83
- * Determines if the hook is current active
84
- * @type {boolean}
105
+ * The hooks\' resource ID
106
+ * @type {number}
85
107
  * @memberof Hook
86
108
  */
87
- active?: boolean;
109
+ resource_id: number;
88
110
  /**
89
111
  *
90
- * @type {Resource}
112
+ * @type {HookIncomingSettings | HookOutgoingSettings}
113
+ * @memberof Hook
114
+ */
115
+ settings: HookIncomingSettings | HookOutgoingSettings | null;
116
+ /**
117
+ * Conditions that must be met to trigger the hook
118
+ * @type {Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>}
119
+ * @memberof Hook
120
+ */
121
+ trigger_when: Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>;
122
+ /**
123
+ * The secret generated by Devopness to be used to digitally sign incoming requests. This value is returned only once after a hook is created and cannot be retrieved again after that.
124
+ * @type {string}
125
+ * @memberof Hook
126
+ */
127
+ secret: string;
128
+ /**
129
+ * The cryptographic hash function to be used by Devopness when validating digitally signed incoming requests for hooks that require secret validation
130
+ * @type {string}
131
+ * @memberof Hook
132
+ */
133
+ secret_algorithm: string | null;
134
+ /**
135
+ * The name of the HTTP request header from which the request digital signature should be extracted
136
+ * @type {string}
91
137
  * @memberof Hook
92
138
  */
93
- resource: Resource;
139
+ secret_header_name: string | null;
94
140
  /**
95
141
  *
96
142
  * @type {UserRelation}
97
143
  * @memberof Hook
98
144
  */
99
- created_by_user?: UserRelation;
145
+ created_by_user: UserRelation;
100
146
  /**
101
147
  * The date and time when the record was created
102
148
  * @type {string}
@@ -23,7 +23,6 @@ export * from './api-error-errors-field-name';
23
23
  export * from './application';
24
24
  export * from './application-deployment';
25
25
  export * from './application-environment-create';
26
- export * from './application-last-deployment';
27
26
  export * from './application-last-deployments';
28
27
  export * from './application-options';
29
28
  export * from './application-pipeline';
@@ -83,26 +82,20 @@ export * from './environment-team-link';
83
82
  export * from './environment-type';
84
83
  export * from './environment-update';
85
84
  export * from './hook';
86
- export * from './hook-incoming';
87
- export * from './hook-incoming-create';
88
- export * from './hook-incoming-params';
89
- export * from './hook-incoming-setting';
85
+ export * from './hook-create';
86
+ export * from './hook-incoming-settings';
90
87
  export * from './hook-incoming-trigger-when-condition';
91
88
  export * from './hook-incoming-trigger-when-condition-type';
92
- export * from './hook-incoming-update';
93
- export * from './hook-outgoing';
94
- export * from './hook-outgoing-create';
95
- export * from './hook-outgoing-params';
96
89
  export * from './hook-outgoing-request-header';
97
- export * from './hook-outgoing-setting';
90
+ export * from './hook-outgoing-settings';
98
91
  export * from './hook-outgoing-trigger-when-action-status';
99
92
  export * from './hook-outgoing-trigger-when-condition';
100
93
  export * from './hook-outgoing-trigger-when-condition-type';
101
- export * from './hook-outgoing-update';
102
94
  export * from './hook-relation';
103
95
  export * from './hook-request';
104
96
  export * from './hook-request-relation';
105
97
  export * from './hook-type';
98
+ export * from './hook-update';
106
99
  export * from './hook-variable';
107
100
  export * from './hook-variable-type';
108
101
  export * from './invitation';
@@ -140,6 +133,8 @@ export * from './project-relation';
140
133
  export * from './project-update';
141
134
  export * from './repository';
142
135
  export * from './repository-branch';
136
+ export * from './repository-relation';
137
+ export * from './request-relation';
143
138
  export * from './resource';
144
139
  export * from './resource-event';
145
140
  export * from './resource-type';
@@ -155,6 +150,7 @@ export * from './server-action-log-step';
155
150
  export * from './server-blueprint';
156
151
  export * from './server-cloud-service';
157
152
  export * from './server-cloud-service-name';
153
+ export * from './server-command';
158
154
  export * from './server-commands';
159
155
  export * from './server-connect';
160
156
  export * from './server-environment-create';
@@ -186,6 +182,7 @@ export * from './source-provider';
186
182
  export * from './source-provider-create';
187
183
  export * from './source-provider-displayable-name';
188
184
  export * from './source-provider-name';
185
+ export * from './source-provider-relation';
189
186
  export * from './ssh-key';
190
187
  export * from './ssh-key-environment-create';
191
188
  export * from './ssh-key-project-create';
@@ -200,6 +197,7 @@ export * from './ssl-certificate-validation-level';
200
197
  export * from './step';
201
198
  export * from './step-pipeline-create';
202
199
  export * from './step-pipeline-update';
200
+ export * from './subscription-plan';
203
201
  export * from './team';
204
202
  export * from './team-environment-create';
205
203
  export * from './team-invitation';
@@ -214,9 +212,9 @@ export * from './trigger-event';
214
212
  export * from './trigger-type';
215
213
  export * from './user';
216
214
  export * from './user-create';
217
- export * from './user-current';
218
215
  export * from './user-login';
219
216
  export * from './user-login-response';
217
+ export * from './user-me';
220
218
  export * from './user-refresh-token';
221
219
  export * from './user-refresh-token-response';
222
220
  export * from './user-relation';
@@ -227,6 +225,7 @@ export * from './user-verify';
227
225
  export * from './variable';
228
226
  export * from './variable-application-create';
229
227
  export * from './variable-relation';
228
+ export * from './variable-service-create';
230
229
  export * from './variable-target';
231
230
  export * from './variable-type';
232
231
  export * from './variable-update';
@@ -39,7 +39,6 @@ __exportStar(require("./api-error-errors-field-name"), exports);
39
39
  __exportStar(require("./application"), exports);
40
40
  __exportStar(require("./application-deployment"), exports);
41
41
  __exportStar(require("./application-environment-create"), exports);
42
- __exportStar(require("./application-last-deployment"), exports);
43
42
  __exportStar(require("./application-last-deployments"), exports);
44
43
  __exportStar(require("./application-options"), exports);
45
44
  __exportStar(require("./application-pipeline"), exports);
@@ -99,26 +98,20 @@ __exportStar(require("./environment-team-link"), exports);
99
98
  __exportStar(require("./environment-type"), exports);
100
99
  __exportStar(require("./environment-update"), exports);
101
100
  __exportStar(require("./hook"), exports);
102
- __exportStar(require("./hook-incoming"), exports);
103
- __exportStar(require("./hook-incoming-create"), exports);
104
- __exportStar(require("./hook-incoming-params"), exports);
105
- __exportStar(require("./hook-incoming-setting"), exports);
101
+ __exportStar(require("./hook-create"), exports);
102
+ __exportStar(require("./hook-incoming-settings"), exports);
106
103
  __exportStar(require("./hook-incoming-trigger-when-condition"), exports);
107
104
  __exportStar(require("./hook-incoming-trigger-when-condition-type"), exports);
108
- __exportStar(require("./hook-incoming-update"), exports);
109
- __exportStar(require("./hook-outgoing"), exports);
110
- __exportStar(require("./hook-outgoing-create"), exports);
111
- __exportStar(require("./hook-outgoing-params"), exports);
112
105
  __exportStar(require("./hook-outgoing-request-header"), exports);
113
- __exportStar(require("./hook-outgoing-setting"), exports);
106
+ __exportStar(require("./hook-outgoing-settings"), exports);
114
107
  __exportStar(require("./hook-outgoing-trigger-when-action-status"), exports);
115
108
  __exportStar(require("./hook-outgoing-trigger-when-condition"), exports);
116
109
  __exportStar(require("./hook-outgoing-trigger-when-condition-type"), exports);
117
- __exportStar(require("./hook-outgoing-update"), exports);
118
110
  __exportStar(require("./hook-relation"), exports);
119
111
  __exportStar(require("./hook-request"), exports);
120
112
  __exportStar(require("./hook-request-relation"), exports);
121
113
  __exportStar(require("./hook-type"), exports);
114
+ __exportStar(require("./hook-update"), exports);
122
115
  __exportStar(require("./hook-variable"), exports);
123
116
  __exportStar(require("./hook-variable-type"), exports);
124
117
  __exportStar(require("./invitation"), exports);
@@ -156,6 +149,8 @@ __exportStar(require("./project-relation"), exports);
156
149
  __exportStar(require("./project-update"), exports);
157
150
  __exportStar(require("./repository"), exports);
158
151
  __exportStar(require("./repository-branch"), exports);
152
+ __exportStar(require("./repository-relation"), exports);
153
+ __exportStar(require("./request-relation"), exports);
159
154
  __exportStar(require("./resource"), exports);
160
155
  __exportStar(require("./resource-event"), exports);
161
156
  __exportStar(require("./resource-type"), exports);
@@ -171,6 +166,7 @@ __exportStar(require("./server-action-log-step"), exports);
171
166
  __exportStar(require("./server-blueprint"), exports);
172
167
  __exportStar(require("./server-cloud-service"), exports);
173
168
  __exportStar(require("./server-cloud-service-name"), exports);
169
+ __exportStar(require("./server-command"), exports);
174
170
  __exportStar(require("./server-commands"), exports);
175
171
  __exportStar(require("./server-connect"), exports);
176
172
  __exportStar(require("./server-environment-create"), exports);
@@ -202,6 +198,7 @@ __exportStar(require("./source-provider"), exports);
202
198
  __exportStar(require("./source-provider-create"), exports);
203
199
  __exportStar(require("./source-provider-displayable-name"), exports);
204
200
  __exportStar(require("./source-provider-name"), exports);
201
+ __exportStar(require("./source-provider-relation"), exports);
205
202
  __exportStar(require("./ssh-key"), exports);
206
203
  __exportStar(require("./ssh-key-environment-create"), exports);
207
204
  __exportStar(require("./ssh-key-project-create"), exports);
@@ -216,6 +213,7 @@ __exportStar(require("./ssl-certificate-validation-level"), exports);
216
213
  __exportStar(require("./step"), exports);
217
214
  __exportStar(require("./step-pipeline-create"), exports);
218
215
  __exportStar(require("./step-pipeline-update"), exports);
216
+ __exportStar(require("./subscription-plan"), exports);
219
217
  __exportStar(require("./team"), exports);
220
218
  __exportStar(require("./team-environment-create"), exports);
221
219
  __exportStar(require("./team-invitation"), exports);
@@ -230,9 +228,9 @@ __exportStar(require("./trigger-event"), exports);
230
228
  __exportStar(require("./trigger-type"), exports);
231
229
  __exportStar(require("./user"), exports);
232
230
  __exportStar(require("./user-create"), exports);
233
- __exportStar(require("./user-current"), exports);
234
231
  __exportStar(require("./user-login"), exports);
235
232
  __exportStar(require("./user-login-response"), exports);
233
+ __exportStar(require("./user-me"), exports);
236
234
  __exportStar(require("./user-refresh-token"), exports);
237
235
  __exportStar(require("./user-refresh-token-response"), exports);
238
236
  __exportStar(require("./user-relation"), exports);
@@ -243,6 +241,7 @@ __exportStar(require("./user-verify"), exports);
243
241
  __exportStar(require("./variable"), exports);
244
242
  __exportStar(require("./variable-application-create"), exports);
245
243
  __exportStar(require("./variable-relation"), exports);
244
+ __exportStar(require("./variable-service-create"), exports);
246
245
  __exportStar(require("./variable-target"), exports);
247
246
  __exportStar(require("./variable-type"), exports);
248
247
  __exportStar(require("./variable-update"), exports);
@@ -66,13 +66,13 @@ export interface InvitationRelation {
66
66
  * @type {TeamRelation}
67
67
  * @memberof InvitationRelation
68
68
  */
69
- team: TeamRelation;
69
+ team: TeamRelation | null;
70
70
  /**
71
71
  *
72
72
  * @type {ProjectRelation}
73
73
  * @memberof InvitationRelation
74
74
  */
75
- project: ProjectRelation;
75
+ project: ProjectRelation | null;
76
76
  /**
77
77
  * The date and time when the invitation was accepted
78
78
  * @type {string}
@@ -65,7 +65,7 @@ export interface Invitation {
65
65
  * @type {TeamRelation}
66
66
  * @memberof Invitation
67
67
  */
68
- team: TeamRelation;
68
+ team: TeamRelation | null;
69
69
  /**
70
70
  * The date and time when the invitation was accepted
71
71
  * @type {string}
@@ -17,27 +17,21 @@ import { UserRelation } from './user-relation';
17
17
  */
18
18
  export interface MemberRelation {
19
19
  /**
20
- * The role of the member on team
21
- * @type {string}
20
+ *
21
+ * @type {UserRelation}
22
22
  * @memberof MemberRelation
23
23
  */
24
- role: string;
24
+ user: UserRelation;
25
25
  /**
26
26
  * The date and time when the record was created
27
27
  * @type {string}
28
28
  * @memberof MemberRelation
29
29
  */
30
- created_at?: string;
30
+ created_at: string;
31
31
  /**
32
32
  * The date and time when the record was last updated
33
33
  * @type {string}
34
34
  * @memberof MemberRelation
35
35
  */
36
- updated_at?: string;
37
- /**
38
- *
39
- * @type {UserRelation}
40
- * @memberof MemberRelation
41
- */
42
- user: UserRelation;
36
+ updated_at: string;
43
37
  }
@@ -18,21 +18,27 @@ import { UserRelation } from './user-relation';
18
18
  */
19
19
  export interface Member {
20
20
  /**
21
- * The role of the member on team
22
- * @type {string}
21
+ *
22
+ * @type {UserRelation}
23
23
  * @memberof Member
24
24
  */
25
- role: string;
25
+ user: UserRelation;
26
26
  /**
27
27
  *
28
28
  * @type {TeamRelation}
29
29
  * @memberof Member
30
30
  */
31
- team: TeamRelation;
31
+ team: TeamRelation | null;
32
32
  /**
33
- *
34
- * @type {UserRelation}
33
+ * The date and time when the record was created
34
+ * @type {string}
35
35
  * @memberof Member
36
36
  */
37
- user: UserRelation;
37
+ created_at: string;
38
+ /**
39
+ * The date and time when the record was last updated
40
+ * @type {string}
41
+ * @memberof Member
42
+ */
43
+ updated_at: string;
38
44
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { Commit } from './commit';
13
13
  /**
14
- *
14
+ * A repository branch
15
15
  * @export
16
16
  * @interface RepositoryBranch
17
17
  */
@@ -21,17 +21,17 @@ export interface RepositoryBranch {
21
21
  * @type {string}
22
22
  * @memberof RepositoryBranch
23
23
  */
24
- name?: string;
24
+ name: string;
25
25
  /**
26
26
  * The full name of the repository (`owner/repository`)
27
27
  * @type {string}
28
28
  * @memberof RepositoryBranch
29
29
  */
30
- repo_full_name?: string;
30
+ repo_full_name: string;
31
31
  /**
32
32
  *
33
33
  * @type {Commit}
34
34
  * @memberof RepositoryBranch
35
35
  */
36
- commit?: Commit;
36
+ commit: Commit;
37
37
  }
@@ -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
+ *
14
+ * @export
15
+ * @interface RepositoryRelation
16
+ */
17
+ export interface RepositoryRelation {
18
+ /**
19
+ * The name of the repository
20
+ * @type {string}
21
+ * @memberof RepositoryRelation
22
+ */
23
+ name: string;
24
+ /**
25
+ * The name of the user/account on the Version Control System
26
+ * @type {string}
27
+ * @memberof RepositoryRelation
28
+ */
29
+ user_name: string;
30
+ /**
31
+ * The fully qualified repository name. Usually composed of user_name/name
32
+ * @type {string}
33
+ * @memberof RepositoryRelation
34
+ */
35
+ full_name: string;
36
+ /**
37
+ * The URL for viewing repository details on the provider\'s web application
38
+ * @type {string}
39
+ * @memberof RepositoryRelation
40
+ */
41
+ html_url: string;
42
+ }
@@ -21,29 +21,29 @@ export interface Repository {
21
21
  * @type {string}
22
22
  * @memberof Repository
23
23
  */
24
- name?: string;
24
+ name: string;
25
25
  /**
26
26
  * The name of the user/account on the Version Control System
27
27
  * @type {string}
28
28
  * @memberof Repository
29
29
  */
30
- user_name?: string;
30
+ user_name: string;
31
31
  /**
32
32
  * The fully qualified repository name. Usually composed of user_name/name
33
33
  * @type {string}
34
34
  * @memberof Repository
35
35
  */
36
- full_name?: string;
36
+ full_name: string;
37
37
  /**
38
38
  * The URL for viewing repository details on the provider\'s web application
39
39
  * @type {string}
40
40
  * @memberof Repository
41
41
  */
42
- html_url?: string;
42
+ html_url: string;
43
43
  /**
44
- *
44
+ * List of repository branches
45
45
  * @type {Array<RepositoryBranch>}
46
46
  * @memberof Repository
47
47
  */
48
- branches?: Array<RepositoryBranch>;
48
+ branches: Array<RepositoryBranch>;
49
49
  }
@@ -0,0 +1,60 @@
1
+ /**
2
+ * devopness API
3
+ * Devopness API - Painless essential DevOps to everyone
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface RequestRelation
16
+ */
17
+ export interface RequestRelation {
18
+ /**
19
+ * The unique UUID of the hook request
20
+ * @type {string}
21
+ * @memberof RequestRelation
22
+ */
23
+ id: string;
24
+ /**
25
+ * The UUID of the hook that the request belongs to
26
+ * @type {string}
27
+ * @memberof RequestRelation
28
+ */
29
+ hook_id: string;
30
+ /**
31
+ * The ID of the action that the request belongs to
32
+ * @type {number}
33
+ * @memberof RequestRelation
34
+ */
35
+ action_id: number | null;
36
+ /**
37
+ * The UUID of the request that this request is a retry of
38
+ * @type {string}
39
+ * @memberof RequestRelation
40
+ */
41
+ retry_of: string | null;
42
+ /**
43
+ * The IP address of the source that triggered the hook
44
+ * @type {string}
45
+ * @memberof RequestRelation
46
+ */
47
+ ip_address: string;
48
+ /**
49
+ * The date and time when the record was created
50
+ * @type {string}
51
+ * @memberof RequestRelation
52
+ */
53
+ created_at: string;
54
+ /**
55
+ * The date and time when the record was last updated
56
+ * @type {string}
57
+ * @memberof RequestRelation
58
+ */
59
+ updated_at: string;
60
+ }
@@ -9,10 +9,16 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Hook } from './hook';
13
- import { HookIncomingParams } from './hook-incoming-params';
14
12
  /**
15
- * @type HookIncoming
13
+ *
16
14
  * @export
15
+ * @interface ServerCommand
17
16
  */
18
- export declare type HookIncoming = Hook & HookIncomingParams;
17
+ export interface ServerCommand {
18
+ /**
19
+ * The Shell Script command to be executed in an existing Linux server in order to connect it to the `devopness`
20
+ * @type {string}
21
+ * @memberof ServerCommand
22
+ */
23
+ connect_command: string;
24
+ }
@@ -98,7 +98,7 @@ export interface Server {
98
98
  * @type {ProjectRelation}
99
99
  * @memberof Server
100
100
  */
101
- project: ProjectRelation;
101
+ project: ProjectRelation | null;
102
102
  /**
103
103
  *
104
104
  * @type {ActionRelation}
@@ -92,7 +92,7 @@ export interface Service {
92
92
  * @type {ProjectRelation}
93
93
  * @memberof Service
94
94
  */
95
- project: ProjectRelation;
95
+ project: ProjectRelation | null;
96
96
  /**
97
97
  *
98
98
  * @type {Array<ServerRelation>}
@@ -23,7 +23,7 @@ export interface SourceProviderCreate {
23
23
  */
24
24
  provider: SourceProviderName;
25
25
  /**
26
- * The temporary code forwarded by the OAuth provider as a parameter to our callback URL
26
+ * The temporary code forwarded by the OAuth provider as a parameter to our callback URL. Must be at least 8 characters.
27
27
  * @type {string}
28
28
  * @memberof SourceProviderCreate
29
29
  */