@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.
- package/dist/DevopnessApiClient.d.ts +2 -4
- package/dist/DevopnessApiClient.js +2 -4
- package/dist/api/generated/apis/actions-api.d.ts +16 -5
- package/dist/api/generated/apis/actions-api.js +35 -2
- package/dist/api/generated/apis/actions-resources-api.d.ts +0 -11
- package/dist/api/generated/apis/actions-resources-api.js +0 -33
- package/dist/api/generated/apis/applications-api.d.ts +4 -4
- package/dist/api/generated/apis/applications-api.js +4 -4
- package/dist/api/generated/apis/applications-hooks-api.d.ts +5 -3
- package/dist/api/generated/apis/applications-hooks-api.js +12 -3
- package/dist/api/generated/apis/environments-api.d.ts +4 -4
- package/dist/api/generated/apis/environments-api.js +4 -4
- package/dist/api/generated/apis/environments-teams-api.d.ts +34 -0
- package/dist/api/generated/apis/environments-teams-api.js +77 -0
- package/dist/api/generated/apis/hook-requests-api.d.ts +25 -0
- package/dist/api/generated/apis/hook-requests-api.js +49 -0
- package/dist/api/generated/apis/hooks-api.d.ts +56 -0
- package/dist/api/generated/apis/hooks-api.js +133 -0
- package/dist/api/generated/apis/hooks-requests-api.d.ts +7 -17
- package/dist/api/generated/apis/hooks-requests-api.js +18 -37
- package/dist/api/generated/apis/pipelines-api.d.ts +10 -0
- package/dist/api/generated/apis/pipelines-api.js +29 -0
- package/dist/api/generated/apis/projects-api.d.ts +8 -8
- package/dist/api/generated/apis/projects-api.js +8 -8
- package/dist/api/generated/apis/roles-api.d.ts +6 -6
- package/dist/api/generated/apis/roles-api.js +6 -6
- package/dist/api/generated/apis/servers-api.d.ts +6 -6
- package/dist/api/generated/apis/servers-api.js +4 -4
- package/dist/api/generated/apis/services-variables-api.d.ts +36 -0
- package/dist/api/generated/apis/{pipelines-resources-api.js → services-variables-api.js} +31 -15
- package/dist/api/generated/apis/teams-api.d.ts +4 -20
- package/dist/api/generated/apis/teams-api.js +4 -48
- package/dist/api/generated/apis/teams-members-api.d.ts +8 -8
- package/dist/api/generated/apis/teams-members-api.js +16 -16
- package/dist/api/generated/apis/users-api.d.ts +1 -1
- package/dist/api/generated/apis/users-api.js +2 -2
- package/dist/api/generated/models/action-relation.d.ts +31 -4
- package/dist/api/generated/models/action-retry-response.d.ts +7 -1
- package/dist/api/generated/models/action-step-log.d.ts +1 -1
- package/dist/api/generated/models/action.d.ts +28 -22
- package/dist/api/generated/models/application-environment-create.d.ts +4 -3
- package/dist/api/generated/models/application-last-deployments.d.ts +5 -5
- package/dist/api/generated/models/application-project-create.d.ts +4 -3
- package/dist/api/generated/models/application-relation.d.ts +40 -41
- package/dist/api/generated/models/application-update.d.ts +50 -45
- package/dist/api/generated/models/application.d.ts +53 -48
- package/dist/api/generated/models/cron-job.d.ts +1 -1
- package/dist/api/generated/models/daemon.d.ts +1 -1
- package/dist/api/generated/models/environment.d.ts +3 -3
- package/dist/api/generated/models/hook-create.d.ts +84 -0
- package/dist/api/generated/models/{application-last-deployment.js → hook-create.js} +0 -0
- package/dist/api/generated/models/{hook-incoming-setting.d.ts → hook-incoming-settings.d.ts} +3 -3
- package/dist/api/generated/models/{hook-incoming-create.js → hook-incoming-settings.js} +0 -0
- package/dist/api/generated/models/hook-incoming-trigger-when-condition-type.d.ts +1 -1
- package/dist/api/generated/models/hook-incoming-trigger-when-condition-type.js +1 -1
- package/dist/api/generated/models/{hook-outgoing-setting.d.ts → hook-outgoing-settings.d.ts} +4 -4
- package/dist/api/generated/models/{hook-incoming-params.js → hook-outgoing-settings.js} +0 -0
- package/dist/api/generated/models/hook-outgoing-trigger-when-condition-type.d.ts +1 -1
- package/dist/api/generated/models/hook-outgoing-trigger-when-condition-type.js +1 -1
- package/dist/api/generated/models/hook-outgoing-trigger-when-condition.d.ts +1 -1
- package/dist/api/generated/models/hook-relation.d.ts +42 -35
- package/dist/api/generated/models/hook-request.d.ts +10 -10
- package/dist/api/generated/models/hook-update.d.ts +84 -0
- package/dist/api/generated/models/{hook-incoming-setting.js → hook-update.js} +0 -0
- package/dist/api/generated/models/hook-variable.d.ts +3 -3
- package/dist/api/generated/models/hook.d.ts +68 -22
- package/dist/api/generated/models/index.d.ts +9 -12
- package/dist/api/generated/models/index.js +9 -12
- package/dist/api/generated/models/invitation-relation.d.ts +2 -2
- package/dist/api/generated/models/invitation.d.ts +1 -1
- package/dist/api/generated/models/member-relation.d.ts +5 -11
- package/dist/api/generated/models/member.d.ts +13 -7
- package/dist/api/generated/models/request-relation.d.ts +60 -0
- package/dist/api/generated/models/{hook-incoming-update.js → request-relation.js} +0 -0
- package/dist/api/generated/models/{hook-incoming.d.ts → server-command.d.ts} +10 -4
- package/dist/api/generated/models/{hook-incoming.js → server-command.js} +0 -0
- package/dist/api/generated/models/server.d.ts +1 -1
- package/dist/api/generated/models/service.d.ts +1 -1
- package/dist/api/generated/models/subscription-plan.d.ts +30 -0
- package/dist/api/generated/models/{hook-outgoing-create.js → subscription-plan.js} +0 -0
- package/dist/api/generated/models/team-invitation-relation.d.ts +2 -2
- package/dist/api/generated/models/team-invitation.d.ts +2 -2
- package/dist/api/generated/models/team-membership-relation.d.ts +1 -1
- package/dist/api/generated/models/team.d.ts +1 -1
- package/dist/api/generated/models/{user-current.d.ts → user-me.d.ts} +18 -11
- package/dist/api/generated/models/{hook-outgoing-params.js → user-me.js} +0 -0
- package/dist/api/generated/models/user-update.d.ts +6 -0
- package/dist/api/generated/models/user.d.ts +7 -0
- package/dist/api/generated/models/variable-application-create.d.ts +0 -12
- package/dist/api/generated/models/variable-relation.d.ts +0 -6
- package/dist/api/generated/models/variable-service-create.d.ts +56 -0
- package/dist/api/generated/models/{hook-outgoing-setting.js → variable-service-create.js} +0 -0
- package/dist/api/generated/models/variable.d.ts +0 -6
- package/dist/services/EnvironmentService.d.ts +2 -0
- package/dist/services/EnvironmentService.js +2 -0
- package/dist/services/HookRequestService.d.ts +2 -2
- package/dist/services/HookRequestService.js +2 -2
- package/dist/services/HookService.d.ts +5 -0
- package/dist/services/HookService.js +12 -0
- package/dist/services/PipelineService.d.ts +0 -2
- package/dist/services/PipelineService.js +0 -2
- package/dist/services/ServiceService.d.ts +2 -0
- package/dist/services/ServiceService.js +5 -0
- package/dist/services/index.d.ts +1 -2
- package/dist/services/index.js +1 -2
- package/package.json +3 -3
- package/dist/api/generated/apis/hooks-incoming-api.d.ts +0 -53
- package/dist/api/generated/apis/hooks-incoming-api.js +0 -118
- package/dist/api/generated/apis/hooks-outgoing-api.d.ts +0 -46
- package/dist/api/generated/apis/hooks-outgoing-api.js +0 -101
- package/dist/api/generated/apis/pipelines-resources-api.d.ts +0 -28
- package/dist/api/generated/models/application-last-deployment.d.ts +0 -130
- package/dist/api/generated/models/hook-incoming-create.d.ts +0 -82
- package/dist/api/generated/models/hook-incoming-params.d.ts +0 -38
- package/dist/api/generated/models/hook-incoming-update.d.ts +0 -68
- package/dist/api/generated/models/hook-outgoing-create.d.ts +0 -70
- package/dist/api/generated/models/hook-outgoing-params.d.ts +0 -38
- package/dist/api/generated/models/hook-outgoing-update.d.ts +0 -76
- package/dist/api/generated/models/hook-outgoing-update.js +0 -14
- package/dist/api/generated/models/hook-outgoing.d.ts +0 -18
- package/dist/api/generated/models/hook-outgoing.js +0 -14
- package/dist/api/generated/models/user-current.js +0 -14
- package/dist/services/HookIncomingService.d.ts +0 -3
- package/dist/services/HookIncomingService.js +0 -7
- package/dist/services/HookOutgoingService.d.ts +0 -3
- package/dist/services/HookOutgoingService.js +0 -7
|
@@ -108,17 +108,17 @@ export interface Environment {
|
|
|
108
108
|
* @type {Array<string>}
|
|
109
109
|
* @memberof Environment
|
|
110
110
|
*/
|
|
111
|
-
current_user_permissions
|
|
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
|
|
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
|
|
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
|
+
}
|
|
File without changes
|
package/dist/api/generated/models/{hook-incoming-setting.d.ts → hook-incoming-settings.d.ts}
RENAMED
|
@@ -13,13 +13,13 @@ import { HookVariable } from './hook-variable';
|
|
|
13
13
|
/**
|
|
14
14
|
* Settings to an incoming hook
|
|
15
15
|
* @export
|
|
16
|
-
* @interface
|
|
16
|
+
* @interface HookIncomingSettings
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface HookIncomingSettings {
|
|
19
19
|
/**
|
|
20
20
|
* List of variables to incoming hook
|
|
21
21
|
* @type {Array<HookVariable>}
|
|
22
|
-
* @memberof
|
|
22
|
+
* @memberof HookIncomingSettings
|
|
23
23
|
*/
|
|
24
24
|
variables?: Array<HookVariable>;
|
|
25
25
|
}
|
|
File without changes
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* Type of the incoming hook condition
|
|
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
|
|
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
|
*/
|
package/dist/api/generated/models/{hook-outgoing-setting.d.ts → hook-outgoing-settings.d.ts}
RENAMED
|
@@ -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
|
|
16
|
+
* @interface HookOutgoingSettings
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface HookOutgoingSettings {
|
|
19
19
|
/**
|
|
20
20
|
* List of outgoing hook request headers
|
|
21
21
|
* @type {Array<HookOutgoingRequestHeader>}
|
|
22
|
-
* @memberof
|
|
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
|
|
28
|
+
* @memberof HookOutgoingSettings
|
|
29
29
|
*/
|
|
30
30
|
request_body?: string | object | Array<object>;
|
|
31
31
|
}
|
|
File without changes
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* Type of the outgoing hook condition
|
|
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
|
|
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
|
-
*
|
|
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 {
|
|
13
|
+
import { HookIncomingSettings } from './hook-incoming-settings';
|
|
14
14
|
import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
|
|
15
|
-
import {
|
|
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
|
|
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
|
-
*
|
|
44
|
-
* @type {
|
|
44
|
+
*
|
|
45
|
+
* @type {ActionType}
|
|
45
46
|
* @memberof HookRelation
|
|
46
47
|
*/
|
|
47
|
-
|
|
48
|
+
action_type: ActionType;
|
|
48
49
|
/**
|
|
49
|
-
*
|
|
50
|
+
* URL that triggers incoming hooks
|
|
50
51
|
* @type {string}
|
|
51
52
|
* @memberof HookRelation
|
|
52
53
|
*/
|
|
53
|
-
|
|
54
|
+
url: string | null;
|
|
54
55
|
/**
|
|
55
|
-
*
|
|
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
|
-
|
|
60
|
+
target_url: string | null;
|
|
66
61
|
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {
|
|
62
|
+
* Indicates if the record was auto_generated by `devopness` itself
|
|
63
|
+
* @type {boolean}
|
|
69
64
|
* @memberof HookRelation
|
|
70
65
|
*/
|
|
71
|
-
|
|
66
|
+
auto_generated: boolean;
|
|
72
67
|
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {
|
|
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
|
-
|
|
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
|
-
*
|
|
86
|
-
* @type {
|
|
80
|
+
* Determines if the hook is currently active
|
|
81
|
+
* @type {boolean}
|
|
87
82
|
* @memberof HookRelation
|
|
88
83
|
*/
|
|
89
|
-
|
|
84
|
+
active: boolean;
|
|
90
85
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {
|
|
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
|
-
|
|
96
|
+
environment_id: number;
|
|
96
97
|
/**
|
|
97
98
|
*
|
|
98
|
-
* @type {
|
|
99
|
+
* @type {ResourceType}
|
|
99
100
|
* @memberof HookRelation
|
|
100
101
|
*/
|
|
101
|
-
|
|
102
|
+
resource_type: ResourceType;
|
|
102
103
|
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {
|
|
104
|
+
* The hooks\' resource ID
|
|
105
|
+
* @type {number}
|
|
105
106
|
* @memberof HookRelation
|
|
106
107
|
*/
|
|
107
|
-
|
|
108
|
+
resource_id: number;
|
|
108
109
|
/**
|
|
109
110
|
*
|
|
110
|
-
* @type {
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
84
|
+
response_body: object;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {HookRelation}
|
|
88
88
|
* @memberof HookRequest
|
|
89
89
|
*/
|
|
90
|
-
hook
|
|
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
|
|
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
|
|
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
|
+
}
|
|
File without changes
|
|
@@ -21,7 +21,7 @@ export interface HookVariable {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof HookVariable
|
|
23
23
|
*/
|
|
24
|
-
name
|
|
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
|
|
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
|
|
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>}
|