@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
@@ -67,7 +67,7 @@ export interface Daemon {
67
67
  * @type {ProjectRelation}
68
68
  * @memberof Daemon
69
69
  */
70
- project: ProjectRelation;
70
+ project: ProjectRelation | null;
71
71
  /**
72
72
  *
73
73
  * @type {ActionRelation}
@@ -108,17 +108,17 @@ export interface Environment {
108
108
  * @type {Array<string>}
109
109
  * @memberof Environment
110
110
  */
111
- current_user_permissions?: Array<string>;
111
+ current_user_permissions: Array<string>;
112
112
  /**
113
113
  * The date and time when the record was created
114
114
  * @type {string}
115
115
  * @memberof Environment
116
116
  */
117
- created_at?: string;
117
+ created_at: string;
118
118
  /**
119
119
  * The date and time when the record was last updated
120
120
  * @type {string}
121
121
  * @memberof Environment
122
122
  */
123
- updated_at?: string;
123
+ updated_at: string;
124
124
  }
@@ -0,0 +1,84 @@
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 { 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';
17
+ import { ResourceType } from './resource-type';
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface HookCreate
22
+ */
23
+ export interface HookCreate {
24
+ /**
25
+ * The name of the outgoing hook. Must not be greater than 60 characters.
26
+ * @type {string}
27
+ * @memberof HookCreate
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {ResourceType}
33
+ * @memberof HookCreate
34
+ */
35
+ resource_type: ResourceType;
36
+ /**
37
+ * The hooks\' resource ID.
38
+ * @type {number}
39
+ * @memberof HookCreate
40
+ */
41
+ resource_id: number;
42
+ /**
43
+ *
44
+ * @type {ActionType}
45
+ * @memberof HookCreate
46
+ */
47
+ action_type: ActionType;
48
+ /**
49
+ * Determines if the hook is currently active.
50
+ * @type {boolean}
51
+ * @memberof HookCreate
52
+ */
53
+ active?: boolean;
54
+ /**
55
+ * 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. This field is required when <code>type</code> is <code>in</code>.
56
+ * @type {boolean}
57
+ * @memberof HookCreate
58
+ */
59
+ requires_secret?: boolean;
60
+ /**
61
+ * The cryptographic hash function to be used by Devopness when validating digitally signed incoming requests for hooks that require secret validation. This field is required when <code>requires_secret</code> is <code>true</code>. Must be one of <code>sha256</code> Must not be greater than 20 characters.
62
+ * @type {string}
63
+ * @memberof HookCreate
64
+ */
65
+ secret_algorithm?: string;
66
+ /**
67
+ * The name of the HTTP request header from which the request digital signature should be extracted. This field is required when <code>requires_secret</code> is <code>true</code>. Must not be greater than 64 characters.
68
+ * @type {string}
69
+ * @memberof HookCreate
70
+ */
71
+ secret_header_name?: string;
72
+ /**
73
+ * Conditions that must be met to trigger the hook
74
+ * @type {Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>}
75
+ * @memberof HookCreate
76
+ */
77
+ trigger_when?: Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>;
78
+ /**
79
+ *
80
+ * @type {HookIncomingSettings | HookOutgoingSettings}
81
+ * @memberof HookCreate
82
+ */
83
+ settings?: HookIncomingSettings | HookOutgoingSettings;
84
+ }
@@ -13,13 +13,13 @@ import { HookVariable } from './hook-variable';
13
13
  /**
14
14
  * Settings to an incoming hook
15
15
  * @export
16
- * @interface HookIncomingSetting
16
+ * @interface HookIncomingSettings
17
17
  */
18
- export interface HookIncomingSetting {
18
+ export interface HookIncomingSettings {
19
19
  /**
20
20
  * List of variables to incoming hook
21
21
  * @type {Array<HookVariable>}
22
- * @memberof HookIncomingSetting
22
+ * @memberof HookIncomingSettings
23
23
  */
24
24
  variables?: Array<HookVariable>;
25
25
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Type of the incoming hook condition. * `request_body` - Validate request body for incoming hooks.
13
+ * Type of the incoming hook condition.\\n* `request_body` - Validate request body for incoming hooks.
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
@@ -14,7 +14,7 @@
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.HookIncomingTriggerWhenConditionType = void 0;
16
16
  /**
17
- * Type of the incoming hook condition. * `request_body` - Validate request body for incoming hooks.
17
+ * Type of the incoming hook condition.\\n* `request_body` - Validate request body for incoming hooks.
18
18
  * @export
19
19
  * @enum {string}
20
20
  */
@@ -13,19 +13,19 @@ import { HookOutgoingRequestHeader } from './hook-outgoing-request-header';
13
13
  /**
14
14
  * Settings to an outgoing hook
15
15
  * @export
16
- * @interface HookOutgoingSetting
16
+ * @interface HookOutgoingSettings
17
17
  */
18
- export interface HookOutgoingSetting {
18
+ export interface HookOutgoingSettings {
19
19
  /**
20
20
  * List of outgoing hook request headers
21
21
  * @type {Array<HookOutgoingRequestHeader>}
22
- * @memberof HookOutgoingSetting
22
+ * @memberof HookOutgoingSettings
23
23
  */
24
24
  request_headers?: Array<HookOutgoingRequestHeader>;
25
25
  /**
26
26
  * The request body that should be send to target URL
27
27
  * @type {string | object | Array<object>}
28
- * @memberof HookOutgoingSetting
28
+ * @memberof HookOutgoingSettings
29
29
  */
30
30
  request_body?: string | object | Array<object>;
31
31
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Type of the outgoing hook condition. * `action_status` - Validate action status for outgoing hooks.
13
+ * Type of the outgoing hook condition.\\n* `action_status` - Validate action status for outgoing hooks.
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
@@ -14,7 +14,7 @@
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.HookOutgoingTriggerWhenConditionType = void 0;
16
16
  /**
17
- * Type of the outgoing hook condition. * `action_status` - Validate action status for outgoing hooks.
17
+ * Type of the outgoing hook condition.\\n* `action_status` - Validate action status for outgoing hooks.
18
18
  * @export
19
19
  * @enum {string}
20
20
  */
@@ -24,7 +24,7 @@ export interface HookOutgoingTriggerWhenCondition {
24
24
  */
25
25
  type: HookOutgoingTriggerWhenConditionType;
26
26
  /**
27
- * An list of accepted values to checked field.
27
+ * A list of accepted values to checked field.
28
28
  * @type {Array<HookOutgoingTriggerWhenActionStatus>}
29
29
  * @memberof HookOutgoingTriggerWhenCondition
30
30
  */
@@ -10,11 +10,12 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { ActionType } from './action-type';
13
- import { HookIncomingSetting } from './hook-incoming-setting';
13
+ import { HookIncomingSettings } from './hook-incoming-settings';
14
14
  import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
15
- import { HookOutgoingSetting } from './hook-outgoing-setting';
15
+ import { HookOutgoingSettings } from './hook-outgoing-settings';
16
16
  import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
17
17
  import { HookType } from './hook-type';
18
+ import { ResourceType } from './resource-type';
18
19
  /**
19
20
  *
20
21
  * @export
@@ -22,7 +23,7 @@ import { HookType } from './hook-type';
22
23
  */
23
24
  export interface HookRelation {
24
25
  /**
25
- * The Id of the given hook
26
+ * The UUID of the given hook
26
27
  * @type {string}
27
28
  * @memberof HookRelation
28
29
  */
@@ -40,41 +41,35 @@ export interface HookRelation {
40
41
  */
41
42
  type: HookType;
42
43
  /**
43
- * The URL where the incoming hook must be triggered with a POST request
44
- * @type {string}
44
+ *
45
+ * @type {ActionType}
45
46
  * @memberof HookRelation
46
47
  */
47
- url?: string | null;
48
+ action_type: ActionType;
48
49
  /**
49
- * The target URL on outgoing hooks where Devopness should trigger a request
50
+ * URL that triggers incoming hooks
50
51
  * @type {string}
51
52
  * @memberof HookRelation
52
53
  */
53
- target_url?: string | null;
54
+ url: string | null;
54
55
  /**
55
- * 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
56
- * @type {boolean}
57
- * @memberof HookRelation
58
- */
59
- requires_secret?: boolean;
60
- /**
61
- * The secret generated by Devopness to be used to digitally sign incoming requests
56
+ * URL that outgoing hooks make a request to
62
57
  * @type {string}
63
58
  * @memberof HookRelation
64
59
  */
65
- secret: string;
60
+ target_url: string | null;
66
61
  /**
67
- * The name of the HTTP request header from which the request digital signature should be extracted
68
- * @type {string}
62
+ * Indicates if the record was auto_generated by `devopness` itself
63
+ * @type {boolean}
69
64
  * @memberof HookRelation
70
65
  */
71
- secret_header_name?: string | null;
66
+ auto_generated: boolean;
72
67
  /**
73
- * The cryptographic hash function to be used by Devopness when validating digitally signed incoming requests for hooks that require secret validation
74
- * @type {string}
68
+ * 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
69
+ * @type {boolean}
75
70
  * @memberof HookRelation
76
71
  */
77
- secret_algorithm?: string | null;
72
+ requires_secret: boolean;
78
73
  /**
79
74
  * Indicates if the Devopness must be verify the SSL certificate of the request
80
75
  * @type {boolean}
@@ -82,35 +77,47 @@ export interface HookRelation {
82
77
  */
83
78
  verify_ssl: boolean;
84
79
  /**
85
- * Conditions that must be met to trigger the hook.
86
- * @type {Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>}
80
+ * Determines if the hook is currently active
81
+ * @type {boolean}
87
82
  * @memberof HookRelation
88
83
  */
89
- trigger_when?: Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>;
84
+ active: boolean;
90
85
  /**
91
- * Indicates if the record was auto_generated by `devopness` itself
92
- * @type {boolean}
86
+ * The ID of the project
87
+ * @type {number}
88
+ * @memberof HookRelation
89
+ */
90
+ project_id: number;
91
+ /**
92
+ * The ID of the environment
93
+ * @type {number}
93
94
  * @memberof HookRelation
94
95
  */
95
- auto_generated?: boolean;
96
+ environment_id: number;
96
97
  /**
97
98
  *
98
- * @type {ActionType}
99
+ * @type {ResourceType}
99
100
  * @memberof HookRelation
100
101
  */
101
- action_type: ActionType;
102
+ resource_type: ResourceType;
102
103
  /**
103
- * Determines if the hook is current active
104
- * @type {boolean}
104
+ * The hooks\' resource ID
105
+ * @type {number}
105
106
  * @memberof HookRelation
106
107
  */
107
- active?: boolean;
108
+ resource_id: number;
108
109
  /**
109
110
  *
110
- * @type {HookIncomingSetting | HookOutgoingSetting}
111
+ * @type {HookIncomingSettings | HookOutgoingSettings}
112
+ * @memberof HookRelation
113
+ */
114
+ settings: HookIncomingSettings | HookOutgoingSettings | null;
115
+ /**
116
+ * Conditions that must be met to trigger the hook
117
+ * @type {Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>}
111
118
  * @memberof HookRelation
112
119
  */
113
- settings?: HookIncomingSetting | HookOutgoingSetting;
120
+ trigger_when: Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>;
114
121
  /**
115
122
  * The date and time when the record was created
116
123
  * @type {string}
@@ -29,7 +29,7 @@ export interface HookRequest {
29
29
  */
30
30
  hook_id: string;
31
31
  /**
32
- * The id of the action that the request belongs to
32
+ * The ID of the action that the request belongs to
33
33
  * @type {number}
34
34
  * @memberof HookRequest
35
35
  */
@@ -51,53 +51,53 @@ export interface HookRequest {
51
51
  * @type {string}
52
52
  * @memberof HookRequest
53
53
  */
54
- url?: string;
54
+ url: string;
55
55
  /**
56
56
  * The headers of the request
57
57
  * @type {object}
58
58
  * @memberof HookRequest
59
59
  */
60
- request_headers?: object | null;
60
+ request_headers: object;
61
61
  /**
62
62
  * The body of the request
63
63
  * @type {object}
64
64
  * @memberof HookRequest
65
65
  */
66
- request_body?: object | null;
66
+ request_body: object;
67
67
  /**
68
68
  * The response status code
69
69
  * @type {number}
70
70
  * @memberof HookRequest
71
71
  */
72
- response_status_code?: number;
72
+ response_status_code: number;
73
73
  /**
74
74
  * The headers of the response
75
75
  * @type {object}
76
76
  * @memberof HookRequest
77
77
  */
78
- response_headers?: object | null;
78
+ response_headers: object;
79
79
  /**
80
80
  * The body of the response
81
81
  * @type {object}
82
82
  * @memberof HookRequest
83
83
  */
84
- response_body?: object | null;
84
+ response_body: object;
85
85
  /**
86
86
  *
87
87
  * @type {HookRelation}
88
88
  * @memberof HookRequest
89
89
  */
90
- hook?: HookRelation;
90
+ hook: HookRelation | null;
91
91
  /**
92
92
  * The date and time when the record was created
93
93
  * @type {string}
94
94
  * @memberof HookRequest
95
95
  */
96
- created_at?: string | null;
96
+ created_at: string;
97
97
  /**
98
98
  * The date and time when the record was last updated
99
99
  * @type {string}
100
100
  * @memberof HookRequest
101
101
  */
102
- updated_at?: string | null;
102
+ updated_at: string;
103
103
  }
@@ -0,0 +1,84 @@
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 { 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';
17
+ import { ResourceType } from './resource-type';
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface HookUpdate
22
+ */
23
+ export interface HookUpdate {
24
+ /**
25
+ * The name of the outgoing hook. Must not be greater than 60 characters.
26
+ * @type {string}
27
+ * @memberof HookUpdate
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {ResourceType}
33
+ * @memberof HookUpdate
34
+ */
35
+ resource_type?: ResourceType;
36
+ /**
37
+ * The hooks\' resource ID.
38
+ * @type {number}
39
+ * @memberof HookUpdate
40
+ */
41
+ resource_id?: number;
42
+ /**
43
+ *
44
+ * @type {ActionType}
45
+ * @memberof HookUpdate
46
+ */
47
+ action_type?: ActionType;
48
+ /**
49
+ * Determines if the hook is currently active.
50
+ * @type {boolean}
51
+ * @memberof HookUpdate
52
+ */
53
+ active?: boolean;
54
+ /**
55
+ * 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.
56
+ * @type {boolean}
57
+ * @memberof HookUpdate
58
+ */
59
+ requires_secret?: boolean;
60
+ /**
61
+ * The cryptographic hash function to be used by Devopness when validating digitally signed incoming requests for hooks that require secret validation. This field is required when <code>requires_secret</code> is <code>true</code>. Must be one of <code>sha256</code> Must not be greater than 20 characters.
62
+ * @type {string}
63
+ * @memberof HookUpdate
64
+ */
65
+ secret_algorithm?: string;
66
+ /**
67
+ * The name of the HTTP request header from which the request digital signature should be extracted. This field is required when <code>requires_secret</code> is <code>true</code>. Must not be greater than 64 characters.
68
+ * @type {string}
69
+ * @memberof HookUpdate
70
+ */
71
+ secret_header_name?: string;
72
+ /**
73
+ * Conditions that must be met to trigger the hook
74
+ * @type {Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>}
75
+ * @memberof HookUpdate
76
+ */
77
+ trigger_when?: Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>;
78
+ /**
79
+ *
80
+ * @type {HookIncomingSettings | HookOutgoingSettings}
81
+ * @memberof HookUpdate
82
+ */
83
+ settings?: HookIncomingSettings | HookOutgoingSettings;
84
+ }
@@ -21,7 +21,7 @@ export interface HookVariable {
21
21
  * @type {string}
22
22
  * @memberof HookVariable
23
23
  */
24
- name: string;
24
+ name?: string;
25
25
  /**
26
26
  * A `dot-notation` path used to retrieve the variable\'s value. If not defined the `name` will be used instead.
27
27
  * @type {string}
@@ -33,13 +33,13 @@ export interface HookVariable {
33
33
  * @type {HookVariableType}
34
34
  * @memberof HookVariable
35
35
  */
36
- type: HookVariableType;
36
+ type?: HookVariableType;
37
37
  /**
38
38
  * Defines if the variable is required
39
39
  * @type {boolean}
40
40
  * @memberof HookVariable
41
41
  */
42
- required: boolean;
42
+ required?: boolean;
43
43
  /**
44
44
  * Optional variable assumes the default value if it\'s not given on the request to trigger the hook
45
45
  * @type {string | number | boolean | Array<string | number | boolean | object>}