@devopness/sdk-js 3.6.6 → 3.6.8

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.
@@ -48,6 +48,18 @@ export interface HookPipelineCreate {
48
48
  * @memberof HookPipelineCreate
49
49
  */
50
50
  secret_header_name?: string;
51
+ /**
52
+ * The signing secret used to validate incoming hooks. Either omit this field and let Devopness generate one, or provide the signing secret created by your external provider so Devopness can validate its deliveries. Must not be greater than 255 characters.
53
+ * @type {string}
54
+ * @memberof HookPipelineCreate
55
+ */
56
+ secret?: string;
57
+ /**
58
+ * Whether the signature header value includes the algorithm prefix, for example `sha256=<hex>`. When false, the header must contain only the raw hex HMAC. This field is required when <code>requires_secret</code> is <code>true</code>.
59
+ * @type {boolean}
60
+ * @memberof HookPipelineCreate
61
+ */
62
+ secret_signature_has_algorithm_prefix?: boolean;
51
63
  /**
52
64
  *
53
65
  * @type {HookTriggerWhen}
@@ -0,0 +1,19 @@
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
+ * Supported algorithms for validating incoming hook signatures.
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum HookSecretAlgorithm {
18
+ Sha256 = "sha256"
19
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /**
4
+ * devopness API
5
+ * Devopness API - Painless essential DevOps to everyone
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.HookSecretAlgorithm = void 0;
16
+ /**
17
+ * Supported algorithms for validating incoming hook signatures.
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var HookSecretAlgorithm;
22
+ (function (HookSecretAlgorithm) {
23
+ HookSecretAlgorithm["Sha256"] = "sha256";
24
+ })(HookSecretAlgorithm || (exports.HookSecretAlgorithm = HookSecretAlgorithm = {}));
@@ -54,6 +54,18 @@ export interface HookUpdate {
54
54
  * @memberof HookUpdate
55
55
  */
56
56
  secret_header_name?: string;
57
+ /**
58
+ * The signing secret used by incoming hooks. Provide a value here to replace the existing secret without changing the hook identity. Must not be greater than 255 characters.
59
+ * @type {string}
60
+ * @memberof HookUpdate
61
+ */
62
+ secret?: string;
63
+ /**
64
+ * Whether the signature header value includes the algorithm prefix, for example `sha256=<hex>`. When false, the header must contain only the raw hex HMAC. This field is required when <code>requires_secret</code> is <code>true</code>.
65
+ * @type {boolean}
66
+ * @memberof HookUpdate
67
+ */
68
+ secret_signature_has_algorithm_prefix?: boolean;
57
69
  /**
58
70
  *
59
71
  * @type {HookTriggerWhen}
@@ -125,7 +125,7 @@ export interface Hook {
125
125
  */
126
126
  trigger_when: HookTriggerWhen;
127
127
  /**
128
- * 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.
128
+ * The signing secret for incoming hooks. Devopness generates one when the caller omits it; a caller-supplied secret is returned as-is. The clear value is returned only once, in the create response, and cannot be retrieved again after that.
129
129
  * @type {string}
130
130
  * @memberof Hook
131
131
  */
@@ -142,6 +142,12 @@ export interface Hook {
142
142
  * @memberof Hook
143
143
  */
144
144
  secret_header_name: string | null;
145
+ /**
146
+ * Whether the signature header value includes the algorithm prefix, for example `sha256=<hex>`. When false, the header contains only the raw hex HMAC.
147
+ * @type {boolean}
148
+ * @memberof Hook
149
+ */
150
+ secret_signature_has_algorithm_prefix: boolean | null;
145
151
  /**
146
152
  *
147
153
  * @type {UserRelation}
@@ -122,6 +122,7 @@ export * from './hook-pipeline-create';
122
122
  export * from './hook-relation';
123
123
  export * from './hook-request';
124
124
  export * from './hook-request-relation';
125
+ export * from './hook-secret-algorithm';
125
126
  export * from './hook-trigger-payload';
126
127
  export * from './hook-trigger-response';
127
128
  export * from './hook-trigger-when';
@@ -351,3 +352,4 @@ export * from './virtual-host-options';
351
352
  export * from './virtual-host-relation';
352
353
  export * from './virtual-host-type';
353
354
  export * from './virtual-host-update';
355
+ export * from './webhook-condition-operator';
@@ -138,6 +138,7 @@ __exportStar(require("./hook-pipeline-create"), exports);
138
138
  __exportStar(require("./hook-relation"), exports);
139
139
  __exportStar(require("./hook-request"), exports);
140
140
  __exportStar(require("./hook-request-relation"), exports);
141
+ __exportStar(require("./hook-secret-algorithm"), exports);
141
142
  __exportStar(require("./hook-trigger-payload"), exports);
142
143
  __exportStar(require("./hook-trigger-response"), exports);
143
144
  __exportStar(require("./hook-trigger-when"), exports);
@@ -367,3 +368,4 @@ __exportStar(require("./virtual-host-options"), exports);
367
368
  __exportStar(require("./virtual-host-relation"), exports);
368
369
  __exportStar(require("./virtual-host-type"), exports);
369
370
  __exportStar(require("./virtual-host-update"), exports);
371
+ __exportStar(require("./webhook-condition-operator"), exports);
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { TriggerWhenConditionType } from './trigger-when-condition-type';
13
+ import { WebhookConditionOperator } from './webhook-condition-operator';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -29,11 +30,17 @@ export interface TriggerWhenCondition {
29
30
  */
30
31
  type: TriggerWhenConditionType;
31
32
  /**
32
- * A dot-notation path of the request body attribute to be used as the value to evaluate this condition.
33
+ * A dot-notation path of the request body attribute to be used as the value to evaluate this condition. Wildcards such as `labels.*.name` are allowed for array payloads.
33
34
  * @type {string}
34
35
  * @memberof TriggerWhenCondition
35
36
  */
36
37
  path: string;
38
+ /**
39
+ *
40
+ * @type {WebhookConditionOperator}
41
+ * @memberof TriggerWhenCondition
42
+ */
43
+ operator?: WebhookConditionOperator;
37
44
  /**
38
45
  * List of accepted values for this condition.
39
46
  * @type {Array<boolean | number | string>}
@@ -0,0 +1,21 @@
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
+ * Comparison modes allowed for incoming webhook trigger conditions.
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum WebhookConditionOperator {
18
+ Equals = "equals",
19
+ Contains = "contains",
20
+ NotContains = "not_contains"
21
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /**
4
+ * devopness API
5
+ * Devopness API - Painless essential DevOps to everyone
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.WebhookConditionOperator = void 0;
16
+ /**
17
+ * Comparison modes allowed for incoming webhook trigger conditions.
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var WebhookConditionOperator;
22
+ (function (WebhookConditionOperator) {
23
+ WebhookConditionOperator["Equals"] = "equals";
24
+ WebhookConditionOperator["Contains"] = "contains";
25
+ WebhookConditionOperator["NotContains"] = "not_contains";
26
+ })(WebhookConditionOperator || (exports.WebhookConditionOperator = WebhookConditionOperator = {}));
@@ -61,7 +61,6 @@ function parseFilterQueryString(filterParam) {
61
61
  function isEmpty(value) {
62
62
  return (value === undefined ||
63
63
  value === null ||
64
- value === false ||
65
64
  value === "" ||
66
65
  (Array.isArray(value) && value.length === 0) ||
67
66
  (typeof value === "object" &&
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@devopness/sdk-js",
4
- "version": "3.6.6",
4
+ "version": "3.6.8",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -60,10 +60,10 @@
60
60
  "node": "^20.19.0 || ^22.13.0 || >=24"
61
61
  },
62
62
  "devDependencies": {
63
- "@openapitools/openapi-generator-cli": "^2.42.2",
63
+ "@openapitools/openapi-generator-cli": "^2.44.0",
64
64
  "axios-mock-adapter": "^2.1.0",
65
65
  "husky": "9.1.7",
66
- "vite-plus": "1.7.0",
66
+ "vite-plus": "1.8.0",
67
67
  "typescript": "^7.0.2"
68
68
  },
69
69
  "dependencies": {