UNPKG

@devopness/sdk-js

Version:

Devopness API JS/TS SDK - Painless essential DevOps to everyone

64 lines (63 loc) 2.35 kB
/** * devopness API * Devopness API - Painless essential DevOps to everyone * * The version of the OpenAPI document: latest * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { HookIncomingSettings } from './hook-incoming-settings'; import { HookOutgoingSettings } from './hook-outgoing-settings'; import { HookTriggerWhen } from './hook-trigger-when'; /** * * @export * @interface HookPipelineCreate */ export interface HookPipelineCreate { /** * The name of the outgoing hook. Must not be greater than 60 characters. * @type {string} * @memberof HookPipelineCreate */ name: string; /** * Determines if the hook is currently active. * @type {boolean} * @memberof HookPipelineCreate */ active?: boolean; /** * 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>. * @type {boolean} * @memberof HookPipelineCreate */ requires_secret?: boolean; /** * 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 not be greater than 20 characters. * @type {string} * @memberof HookPipelineCreate */ secret_algorithm?: string; /** * 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. * @type {string} * @memberof HookPipelineCreate */ secret_header_name?: string; /** * * @type {HookTriggerWhen} * @memberof HookPipelineCreate */ trigger_when?: HookTriggerWhen; /** * * @type {HookIncomingSettings | HookOutgoingSettings} * @memberof HookPipelineCreate */ settings?: HookIncomingSettings | HookOutgoingSettings; }