@devopness/sdk-js 2.22.1 → 2.24.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 (126) 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/pipelines-api.d.ts +10 -0
  22. package/dist/api/generated/apis/pipelines-api.js +29 -0
  23. package/dist/api/generated/apis/projects-api.d.ts +8 -8
  24. package/dist/api/generated/apis/projects-api.js +8 -8
  25. package/dist/api/generated/apis/roles-api.d.ts +6 -6
  26. package/dist/api/generated/apis/roles-api.js +6 -6
  27. package/dist/api/generated/apis/servers-api.d.ts +6 -6
  28. package/dist/api/generated/apis/servers-api.js +4 -4
  29. package/dist/api/generated/apis/services-variables-api.d.ts +36 -0
  30. package/dist/api/generated/apis/{pipelines-resources-api.js → services-variables-api.js} +31 -15
  31. package/dist/api/generated/apis/teams-api.d.ts +4 -20
  32. package/dist/api/generated/apis/teams-api.js +4 -48
  33. package/dist/api/generated/apis/teams-members-api.d.ts +8 -8
  34. package/dist/api/generated/apis/teams-members-api.js +16 -16
  35. package/dist/api/generated/apis/users-api.d.ts +1 -1
  36. package/dist/api/generated/apis/users-api.js +2 -2
  37. package/dist/api/generated/models/action-relation.d.ts +31 -4
  38. package/dist/api/generated/models/action-retry-response.d.ts +7 -1
  39. package/dist/api/generated/models/action-step-log.d.ts +1 -1
  40. package/dist/api/generated/models/action.d.ts +28 -22
  41. package/dist/api/generated/models/application-environment-create.d.ts +4 -3
  42. package/dist/api/generated/models/application-last-deployments.d.ts +5 -5
  43. package/dist/api/generated/models/application-project-create.d.ts +4 -3
  44. package/dist/api/generated/models/application-relation.d.ts +40 -41
  45. package/dist/api/generated/models/application-update.d.ts +50 -45
  46. package/dist/api/generated/models/application.d.ts +53 -48
  47. package/dist/api/generated/models/cron-job.d.ts +1 -1
  48. package/dist/api/generated/models/daemon.d.ts +1 -1
  49. package/dist/api/generated/models/environment.d.ts +3 -3
  50. package/dist/api/generated/models/hook-create.d.ts +84 -0
  51. package/dist/api/generated/models/{application-last-deployment.js → hook-create.js} +0 -0
  52. package/dist/api/generated/models/{hook-incoming-setting.d.ts → hook-incoming-settings.d.ts} +3 -3
  53. package/dist/api/generated/models/{hook-incoming-create.js → hook-incoming-settings.js} +0 -0
  54. package/dist/api/generated/models/hook-incoming-trigger-when-condition-type.d.ts +1 -1
  55. package/dist/api/generated/models/hook-incoming-trigger-when-condition-type.js +1 -1
  56. package/dist/api/generated/models/{hook-outgoing-setting.d.ts → hook-outgoing-settings.d.ts} +4 -4
  57. package/dist/api/generated/models/{hook-incoming-params.js → hook-outgoing-settings.js} +0 -0
  58. package/dist/api/generated/models/hook-outgoing-trigger-when-condition-type.d.ts +1 -1
  59. package/dist/api/generated/models/hook-outgoing-trigger-when-condition-type.js +1 -1
  60. package/dist/api/generated/models/hook-outgoing-trigger-when-condition.d.ts +1 -1
  61. package/dist/api/generated/models/hook-relation.d.ts +42 -35
  62. package/dist/api/generated/models/hook-request.d.ts +10 -10
  63. package/dist/api/generated/models/hook-update.d.ts +84 -0
  64. package/dist/api/generated/models/{hook-incoming-setting.js → hook-update.js} +0 -0
  65. package/dist/api/generated/models/hook-variable.d.ts +3 -3
  66. package/dist/api/generated/models/hook.d.ts +68 -22
  67. package/dist/api/generated/models/index.d.ts +9 -12
  68. package/dist/api/generated/models/index.js +9 -12
  69. package/dist/api/generated/models/invitation-relation.d.ts +2 -2
  70. package/dist/api/generated/models/invitation.d.ts +1 -1
  71. package/dist/api/generated/models/member-relation.d.ts +5 -11
  72. package/dist/api/generated/models/member.d.ts +13 -7
  73. package/dist/api/generated/models/request-relation.d.ts +60 -0
  74. package/dist/api/generated/models/{hook-incoming-update.js → request-relation.js} +0 -0
  75. package/dist/api/generated/models/{hook-incoming.d.ts → server-command.d.ts} +10 -4
  76. package/dist/api/generated/models/{hook-incoming.js → server-command.js} +0 -0
  77. package/dist/api/generated/models/server.d.ts +1 -1
  78. package/dist/api/generated/models/service.d.ts +1 -1
  79. package/dist/api/generated/models/subscription-plan.d.ts +30 -0
  80. package/dist/api/generated/models/{hook-outgoing-create.js → subscription-plan.js} +0 -0
  81. package/dist/api/generated/models/team-invitation-relation.d.ts +2 -2
  82. package/dist/api/generated/models/team-invitation.d.ts +2 -2
  83. package/dist/api/generated/models/team-membership-relation.d.ts +1 -1
  84. package/dist/api/generated/models/team.d.ts +1 -1
  85. package/dist/api/generated/models/{user-current.d.ts → user-me.d.ts} +18 -11
  86. package/dist/api/generated/models/{hook-outgoing-params.js → user-me.js} +0 -0
  87. package/dist/api/generated/models/user-update.d.ts +6 -0
  88. package/dist/api/generated/models/user.d.ts +7 -0
  89. package/dist/api/generated/models/variable-application-create.d.ts +0 -12
  90. package/dist/api/generated/models/variable-relation.d.ts +0 -6
  91. package/dist/api/generated/models/variable-service-create.d.ts +56 -0
  92. package/dist/api/generated/models/{hook-outgoing-setting.js → variable-service-create.js} +0 -0
  93. package/dist/api/generated/models/variable.d.ts +0 -6
  94. package/dist/services/EnvironmentService.d.ts +2 -0
  95. package/dist/services/EnvironmentService.js +2 -0
  96. package/dist/services/HookRequestService.d.ts +2 -2
  97. package/dist/services/HookRequestService.js +2 -2
  98. package/dist/services/HookService.d.ts +5 -0
  99. package/dist/services/HookService.js +12 -0
  100. package/dist/services/PipelineService.d.ts +0 -2
  101. package/dist/services/PipelineService.js +0 -2
  102. package/dist/services/ServiceService.d.ts +2 -0
  103. package/dist/services/ServiceService.js +5 -0
  104. package/dist/services/index.d.ts +1 -2
  105. package/dist/services/index.js +1 -2
  106. package/package.json +3 -3
  107. package/dist/api/generated/apis/hooks-incoming-api.d.ts +0 -53
  108. package/dist/api/generated/apis/hooks-incoming-api.js +0 -118
  109. package/dist/api/generated/apis/hooks-outgoing-api.d.ts +0 -46
  110. package/dist/api/generated/apis/hooks-outgoing-api.js +0 -101
  111. package/dist/api/generated/apis/pipelines-resources-api.d.ts +0 -28
  112. package/dist/api/generated/models/application-last-deployment.d.ts +0 -130
  113. package/dist/api/generated/models/hook-incoming-create.d.ts +0 -82
  114. package/dist/api/generated/models/hook-incoming-params.d.ts +0 -38
  115. package/dist/api/generated/models/hook-incoming-update.d.ts +0 -68
  116. package/dist/api/generated/models/hook-outgoing-create.d.ts +0 -70
  117. package/dist/api/generated/models/hook-outgoing-params.d.ts +0 -38
  118. package/dist/api/generated/models/hook-outgoing-update.d.ts +0 -76
  119. package/dist/api/generated/models/hook-outgoing-update.js +0 -14
  120. package/dist/api/generated/models/hook-outgoing.d.ts +0 -18
  121. package/dist/api/generated/models/hook-outgoing.js +0 -14
  122. package/dist/api/generated/models/user-current.js +0 -14
  123. package/dist/services/HookIncomingService.d.ts +0 -3
  124. package/dist/services/HookIncomingService.js +0 -7
  125. package/dist/services/HookOutgoingService.d.ts +0 -3
  126. 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,7 @@ export * from './project-relation';
140
133
  export * from './project-update';
141
134
  export * from './repository';
142
135
  export * from './repository-branch';
136
+ export * from './request-relation';
143
137
  export * from './resource';
144
138
  export * from './resource-event';
145
139
  export * from './resource-type';
@@ -155,6 +149,7 @@ export * from './server-action-log-step';
155
149
  export * from './server-blueprint';
156
150
  export * from './server-cloud-service';
157
151
  export * from './server-cloud-service-name';
152
+ export * from './server-command';
158
153
  export * from './server-commands';
159
154
  export * from './server-connect';
160
155
  export * from './server-environment-create';
@@ -200,6 +195,7 @@ export * from './ssl-certificate-validation-level';
200
195
  export * from './step';
201
196
  export * from './step-pipeline-create';
202
197
  export * from './step-pipeline-update';
198
+ export * from './subscription-plan';
203
199
  export * from './team';
204
200
  export * from './team-environment-create';
205
201
  export * from './team-invitation';
@@ -214,9 +210,9 @@ export * from './trigger-event';
214
210
  export * from './trigger-type';
215
211
  export * from './user';
216
212
  export * from './user-create';
217
- export * from './user-current';
218
213
  export * from './user-login';
219
214
  export * from './user-login-response';
215
+ export * from './user-me';
220
216
  export * from './user-refresh-token';
221
217
  export * from './user-refresh-token-response';
222
218
  export * from './user-relation';
@@ -227,6 +223,7 @@ export * from './user-verify';
227
223
  export * from './variable';
228
224
  export * from './variable-application-create';
229
225
  export * from './variable-relation';
226
+ export * from './variable-service-create';
230
227
  export * from './variable-target';
231
228
  export * from './variable-type';
232
229
  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,7 @@ __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("./request-relation"), exports);
159
153
  __exportStar(require("./resource"), exports);
160
154
  __exportStar(require("./resource-event"), exports);
161
155
  __exportStar(require("./resource-type"), exports);
@@ -171,6 +165,7 @@ __exportStar(require("./server-action-log-step"), exports);
171
165
  __exportStar(require("./server-blueprint"), exports);
172
166
  __exportStar(require("./server-cloud-service"), exports);
173
167
  __exportStar(require("./server-cloud-service-name"), exports);
168
+ __exportStar(require("./server-command"), exports);
174
169
  __exportStar(require("./server-commands"), exports);
175
170
  __exportStar(require("./server-connect"), exports);
176
171
  __exportStar(require("./server-environment-create"), exports);
@@ -216,6 +211,7 @@ __exportStar(require("./ssl-certificate-validation-level"), exports);
216
211
  __exportStar(require("./step"), exports);
217
212
  __exportStar(require("./step-pipeline-create"), exports);
218
213
  __exportStar(require("./step-pipeline-update"), exports);
214
+ __exportStar(require("./subscription-plan"), exports);
219
215
  __exportStar(require("./team"), exports);
220
216
  __exportStar(require("./team-environment-create"), exports);
221
217
  __exportStar(require("./team-invitation"), exports);
@@ -230,9 +226,9 @@ __exportStar(require("./trigger-event"), exports);
230
226
  __exportStar(require("./trigger-type"), exports);
231
227
  __exportStar(require("./user"), exports);
232
228
  __exportStar(require("./user-create"), exports);
233
- __exportStar(require("./user-current"), exports);
234
229
  __exportStar(require("./user-login"), exports);
235
230
  __exportStar(require("./user-login-response"), exports);
231
+ __exportStar(require("./user-me"), exports);
236
232
  __exportStar(require("./user-refresh-token"), exports);
237
233
  __exportStar(require("./user-refresh-token-response"), exports);
238
234
  __exportStar(require("./user-relation"), exports);
@@ -243,6 +239,7 @@ __exportStar(require("./user-verify"), exports);
243
239
  __exportStar(require("./variable"), exports);
244
240
  __exportStar(require("./variable-application-create"), exports);
245
241
  __exportStar(require("./variable-relation"), exports);
242
+ __exportStar(require("./variable-service-create"), exports);
246
243
  __exportStar(require("./variable-target"), exports);
247
244
  __exportStar(require("./variable-type"), exports);
248
245
  __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
  }
@@ -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>}
@@ -0,0 +1,30 @@
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
+ * A subscription plan
14
+ * @export
15
+ * @interface SubscriptionPlan
16
+ */
17
+ export interface SubscriptionPlan {
18
+ /**
19
+ * The subscription plan\'s code
20
+ * @type {string}
21
+ * @memberof SubscriptionPlan
22
+ */
23
+ plan: string;
24
+ /**
25
+ * The subscription plan\'s name
26
+ * @type {string}
27
+ * @memberof SubscriptionPlan
28
+ */
29
+ plan_human_readable: string;
30
+ }
@@ -66,13 +66,13 @@ export interface TeamInvitationRelation {
66
66
  * @type {TeamRelation}
67
67
  * @memberof TeamInvitationRelation
68
68
  */
69
- team: TeamRelation;
69
+ team: TeamRelation | null;
70
70
  /**
71
71
  *
72
72
  * @type {ProjectRelation}
73
73
  * @memberof TeamInvitationRelation
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}
@@ -66,13 +66,13 @@ export interface TeamInvitation {
66
66
  * @type {TeamRelation}
67
67
  * @memberof TeamInvitation
68
68
  */
69
- team: TeamRelation;
69
+ team: TeamRelation | null;
70
70
  /**
71
71
  *
72
72
  * @type {ProjectRelation}
73
73
  * @memberof TeamInvitation
74
74
  */
75
- project?: ProjectRelation;
75
+ project?: ProjectRelation | null;
76
76
  /**
77
77
  * The date and time when the invitation will expire
78
78
  * @type {string}
@@ -39,7 +39,7 @@ export interface TeamMembershipRelation {
39
39
  * @type {RoleRelation}
40
40
  * @memberof TeamMembershipRelation
41
41
  */
42
- role: RoleRelation;
42
+ role: RoleRelation | null;
43
43
  /**
44
44
  * The date and time when the record was created
45
45
  * @type {string}
@@ -40,7 +40,7 @@ export interface Team {
40
40
  * @type {ProjectRelation}
41
41
  * @memberof Team
42
42
  */
43
- project: ProjectRelation;
43
+ project: ProjectRelation | null;
44
44
  /**
45
45
  * The list of users
46
46
  * @type {Array<UserRelation>}