@devopness/sdk-js 3.6.6 → 3.6.7
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/api/generated/models/hook-pipeline-create.d.ts +12 -0
- package/dist/api/generated/models/hook-secret-algorithm.d.ts +19 -0
- package/dist/api/generated/models/hook-secret-algorithm.js +24 -0
- package/dist/api/generated/models/hook-update.d.ts +12 -0
- package/dist/api/generated/models/hook.d.ts +7 -1
- package/dist/api/generated/models/index.d.ts +1 -0
- package/dist/api/generated/models/index.js +1 -0
- package/package.json +3 -3
|
@@ -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
|
|
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';
|
|
@@ -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);
|
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.
|
|
4
|
+
"version": "3.6.7",
|
|
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.
|
|
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.
|
|
66
|
+
"vite-plus": "1.8.0",
|
|
67
67
|
"typescript": "^7.0.2"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|