qovery-typescript-axios 1.1.772 → 1.1.779
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/api.ts +178 -18
- package/dist/api.d.ts +123 -12
- package/dist/api.js +103 -18
- package/dist/esm/api.d.ts +123 -12
- package/dist/esm/api.js +103 -18
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -20085,6 +20085,76 @@ export interface VersionResponseList {
|
|
|
20085
20085
|
*/
|
|
20086
20086
|
'results'?: Array<Version>;
|
|
20087
20087
|
}
|
|
20088
|
+
/**
|
|
20089
|
+
*
|
|
20090
|
+
* @export
|
|
20091
|
+
* @interface WebhookEventResponse
|
|
20092
|
+
*/
|
|
20093
|
+
export interface WebhookEventResponse {
|
|
20094
|
+
/**
|
|
20095
|
+
* Unique identifier
|
|
20096
|
+
* @type {string}
|
|
20097
|
+
* @memberof WebhookEventResponse
|
|
20098
|
+
*/
|
|
20099
|
+
'id': string;
|
|
20100
|
+
/**
|
|
20101
|
+
* Timestamp when the webhook event was created
|
|
20102
|
+
* @type {string}
|
|
20103
|
+
* @memberof WebhookEventResponse
|
|
20104
|
+
*/
|
|
20105
|
+
'created_at': string;
|
|
20106
|
+
/**
|
|
20107
|
+
*
|
|
20108
|
+
* @type {OrganizationWebhookKindEnum}
|
|
20109
|
+
* @memberof WebhookEventResponse
|
|
20110
|
+
*/
|
|
20111
|
+
'kind': OrganizationWebhookKindEnum;
|
|
20112
|
+
/**
|
|
20113
|
+
*
|
|
20114
|
+
* @type {OrganizationWebhookEventEnum}
|
|
20115
|
+
* @memberof WebhookEventResponse
|
|
20116
|
+
*/
|
|
20117
|
+
'matched_event': OrganizationWebhookEventEnum;
|
|
20118
|
+
/**
|
|
20119
|
+
* The webhook target URL that was invoked
|
|
20120
|
+
* @type {string}
|
|
20121
|
+
* @memberof WebhookEventResponse
|
|
20122
|
+
*/
|
|
20123
|
+
'target_url_used': string;
|
|
20124
|
+
/**
|
|
20125
|
+
* The request payload sent to the webhook
|
|
20126
|
+
* @type {{ [key: string]: any; }}
|
|
20127
|
+
* @memberof WebhookEventResponse
|
|
20128
|
+
*/
|
|
20129
|
+
'request': { [key: string]: any; };
|
|
20130
|
+
/**
|
|
20131
|
+
* HTTP status code returned by the webhook target
|
|
20132
|
+
* @type {number}
|
|
20133
|
+
* @memberof WebhookEventResponse
|
|
20134
|
+
*/
|
|
20135
|
+
'target_response_status_code': number;
|
|
20136
|
+
/**
|
|
20137
|
+
* Response body from the webhook target
|
|
20138
|
+
* @type {string}
|
|
20139
|
+
* @memberof WebhookEventResponse
|
|
20140
|
+
*/
|
|
20141
|
+
'target_response_body'?: string | null;
|
|
20142
|
+
}
|
|
20143
|
+
|
|
20144
|
+
|
|
20145
|
+
/**
|
|
20146
|
+
*
|
|
20147
|
+
* @export
|
|
20148
|
+
* @interface WebhookEventResponseList
|
|
20149
|
+
*/
|
|
20150
|
+
export interface WebhookEventResponseList {
|
|
20151
|
+
/**
|
|
20152
|
+
*
|
|
20153
|
+
* @type {Array<WebhookEventResponse>}
|
|
20154
|
+
* @memberof WebhookEventResponseList
|
|
20155
|
+
*/
|
|
20156
|
+
'results'?: Array<WebhookEventResponse>;
|
|
20157
|
+
}
|
|
20088
20158
|
/**
|
|
20089
20159
|
*
|
|
20090
20160
|
* @export
|
|
@@ -20505,7 +20575,7 @@ export const AlertReceiversApiAxiosParamCreator = function (configuration?: Conf
|
|
|
20505
20575
|
};
|
|
20506
20576
|
},
|
|
20507
20577
|
/**
|
|
20508
|
-
* Validate an existing alert receiver by sending a test message for example
|
|
20578
|
+
* Validate an existing alert receiver by sending a test message for example.
|
|
20509
20579
|
* @summary Validate Existing Alert Receiver
|
|
20510
20580
|
* @param {string} alertReceiverId Alert Receiver ID
|
|
20511
20581
|
* @param {AlertReceiverValidationRequest} [alertReceiverValidationRequest]
|
|
@@ -20550,7 +20620,7 @@ export const AlertReceiversApiAxiosParamCreator = function (configuration?: Conf
|
|
|
20550
20620
|
};
|
|
20551
20621
|
},
|
|
20552
20622
|
/**
|
|
20553
|
-
* Validate a future alert receiver by sending a test message
|
|
20623
|
+
* Validate a future alert receiver by sending a test message.
|
|
20554
20624
|
* @summary Validate New Alert Receiver
|
|
20555
20625
|
* @param {AlertReceiverCreationValidationRequest} [alertReceiverCreationValidationRequest]
|
|
20556
20626
|
* @param {*} [options] Override http request option.
|
|
@@ -20565,7 +20635,7 @@ export const AlertReceiversApiAxiosParamCreator = function (configuration?: Conf
|
|
|
20565
20635
|
baseOptions = configuration.baseOptions;
|
|
20566
20636
|
}
|
|
20567
20637
|
|
|
20568
|
-
const localVarRequestOptions = { method: '
|
|
20638
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20569
20639
|
const localVarHeaderParameter = {} as any;
|
|
20570
20640
|
const localVarQueryParameter = {} as any;
|
|
20571
20641
|
|
|
@@ -20667,7 +20737,7 @@ export const AlertReceiversApiFp = function(configuration?: Configuration) {
|
|
|
20667
20737
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20668
20738
|
},
|
|
20669
20739
|
/**
|
|
20670
|
-
* Validate an existing alert receiver by sending a test message for example
|
|
20740
|
+
* Validate an existing alert receiver by sending a test message for example.
|
|
20671
20741
|
* @summary Validate Existing Alert Receiver
|
|
20672
20742
|
* @param {string} alertReceiverId Alert Receiver ID
|
|
20673
20743
|
* @param {AlertReceiverValidationRequest} [alertReceiverValidationRequest]
|
|
@@ -20681,7 +20751,7 @@ export const AlertReceiversApiFp = function(configuration?: Configuration) {
|
|
|
20681
20751
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20682
20752
|
},
|
|
20683
20753
|
/**
|
|
20684
|
-
* Validate a future alert receiver by sending a test message
|
|
20754
|
+
* Validate a future alert receiver by sending a test message.
|
|
20685
20755
|
* @summary Validate New Alert Receiver
|
|
20686
20756
|
* @param {AlertReceiverCreationValidationRequest} [alertReceiverCreationValidationRequest]
|
|
20687
20757
|
* @param {*} [options] Override http request option.
|
|
@@ -20755,7 +20825,7 @@ export const AlertReceiversApiFactory = function (configuration?: Configuration,
|
|
|
20755
20825
|
return localVarFp.getAlertReceivers(organizationId, options).then((request) => request(axios, basePath));
|
|
20756
20826
|
},
|
|
20757
20827
|
/**
|
|
20758
|
-
* Validate an existing alert receiver by sending a test message for example
|
|
20828
|
+
* Validate an existing alert receiver by sending a test message for example.
|
|
20759
20829
|
* @summary Validate Existing Alert Receiver
|
|
20760
20830
|
* @param {string} alertReceiverId Alert Receiver ID
|
|
20761
20831
|
* @param {AlertReceiverValidationRequest} [alertReceiverValidationRequest]
|
|
@@ -20766,7 +20836,7 @@ export const AlertReceiversApiFactory = function (configuration?: Configuration,
|
|
|
20766
20836
|
return localVarFp.validateExistingAlertReceiver(alertReceiverId, alertReceiverValidationRequest, options).then((request) => request(axios, basePath));
|
|
20767
20837
|
},
|
|
20768
20838
|
/**
|
|
20769
|
-
* Validate a future alert receiver by sending a test message
|
|
20839
|
+
* Validate a future alert receiver by sending a test message.
|
|
20770
20840
|
* @summary Validate New Alert Receiver
|
|
20771
20841
|
* @param {AlertReceiverCreationValidationRequest} [alertReceiverCreationValidationRequest]
|
|
20772
20842
|
* @param {*} [options] Override http request option.
|
|
@@ -20847,7 +20917,7 @@ export class AlertReceiversApi extends BaseAPI {
|
|
|
20847
20917
|
}
|
|
20848
20918
|
|
|
20849
20919
|
/**
|
|
20850
|
-
* Validate an existing alert receiver by sending a test message for example
|
|
20920
|
+
* Validate an existing alert receiver by sending a test message for example.
|
|
20851
20921
|
* @summary Validate Existing Alert Receiver
|
|
20852
20922
|
* @param {string} alertReceiverId Alert Receiver ID
|
|
20853
20923
|
* @param {AlertReceiverValidationRequest} [alertReceiverValidationRequest]
|
|
@@ -20860,7 +20930,7 @@ export class AlertReceiversApi extends BaseAPI {
|
|
|
20860
20930
|
}
|
|
20861
20931
|
|
|
20862
20932
|
/**
|
|
20863
|
-
* Validate a future alert receiver by sending a test message
|
|
20933
|
+
* Validate a future alert receiver by sending a test message.
|
|
20864
20934
|
* @summary Validate New Alert Receiver
|
|
20865
20935
|
* @param {AlertReceiverCreationValidationRequest} [alertReceiverCreationValidationRequest]
|
|
20866
20936
|
* @param {*} [options] Override http request option.
|
|
@@ -58250,15 +58320,19 @@ export const OrganizationWebhookApiAxiosParamCreator = function (configuration?:
|
|
|
58250
58320
|
* Create an organization webhook.
|
|
58251
58321
|
* @summary Create an organization webhook
|
|
58252
58322
|
* @param {string} organizationId Organization ID
|
|
58323
|
+
* @param {string} webhookId Webhook ID
|
|
58253
58324
|
* @param {OrganizationWebhookCreateRequest} [organizationWebhookCreateRequest]
|
|
58254
58325
|
* @param {*} [options] Override http request option.
|
|
58255
58326
|
* @throws {RequiredError}
|
|
58256
58327
|
*/
|
|
58257
|
-
createOrganizationWebhook: async (organizationId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
58328
|
+
createOrganizationWebhook: async (organizationId: string, webhookId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
58258
58329
|
// verify required parameter 'organizationId' is not null or undefined
|
|
58259
58330
|
assertParamExists('createOrganizationWebhook', 'organizationId', organizationId)
|
|
58260
|
-
|
|
58261
|
-
|
|
58331
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
58332
|
+
assertParamExists('createOrganizationWebhook', 'webhookId', webhookId)
|
|
58333
|
+
const localVarPath = `/organization/{organizationId}/webhook/{webhookId}/event`
|
|
58334
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
58335
|
+
.replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
|
|
58262
58336
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58263
58337
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58264
58338
|
let baseOptions;
|
|
@@ -58462,6 +58536,51 @@ export const OrganizationWebhookApiAxiosParamCreator = function (configuration?:
|
|
|
58462
58536
|
|
|
58463
58537
|
|
|
58464
58538
|
|
|
58539
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58540
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58541
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
58542
|
+
|
|
58543
|
+
return {
|
|
58544
|
+
url: toPathString(localVarUrlObj),
|
|
58545
|
+
options: localVarRequestOptions,
|
|
58546
|
+
};
|
|
58547
|
+
},
|
|
58548
|
+
/**
|
|
58549
|
+
* List events of a webhooks
|
|
58550
|
+
* @summary List events of a webhook
|
|
58551
|
+
* @param {string} organizationId Organization ID
|
|
58552
|
+
* @param {string} webhookId Webhook ID
|
|
58553
|
+
* @param {*} [options] Override http request option.
|
|
58554
|
+
* @throws {RequiredError}
|
|
58555
|
+
*/
|
|
58556
|
+
listWebhookEvent: async (organizationId: string, webhookId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
58557
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
58558
|
+
assertParamExists('listWebhookEvent', 'organizationId', organizationId)
|
|
58559
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
58560
|
+
assertParamExists('listWebhookEvent', 'webhookId', webhookId)
|
|
58561
|
+
const localVarPath = `/organization/{organizationId}/webhook/{webhookId}/event`
|
|
58562
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
58563
|
+
.replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
|
|
58564
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58565
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58566
|
+
let baseOptions;
|
|
58567
|
+
if (configuration) {
|
|
58568
|
+
baseOptions = configuration.baseOptions;
|
|
58569
|
+
}
|
|
58570
|
+
|
|
58571
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
58572
|
+
const localVarHeaderParameter = {} as any;
|
|
58573
|
+
const localVarQueryParameter = {} as any;
|
|
58574
|
+
|
|
58575
|
+
// authentication ApiKeyAuth required
|
|
58576
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
58577
|
+
|
|
58578
|
+
// authentication bearerAuth required
|
|
58579
|
+
// http bearer authentication required
|
|
58580
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
58581
|
+
|
|
58582
|
+
|
|
58583
|
+
|
|
58465
58584
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58466
58585
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58467
58586
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -58485,12 +58604,13 @@ export const OrganizationWebhookApiFp = function(configuration?: Configuration)
|
|
|
58485
58604
|
* Create an organization webhook.
|
|
58486
58605
|
* @summary Create an organization webhook
|
|
58487
58606
|
* @param {string} organizationId Organization ID
|
|
58607
|
+
* @param {string} webhookId Webhook ID
|
|
58488
58608
|
* @param {OrganizationWebhookCreateRequest} [organizationWebhookCreateRequest]
|
|
58489
58609
|
* @param {*} [options] Override http request option.
|
|
58490
58610
|
* @throws {RequiredError}
|
|
58491
58611
|
*/
|
|
58492
|
-
async createOrganizationWebhook(organizationId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationWebhookCreateResponse>> {
|
|
58493
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationWebhook(organizationId, organizationWebhookCreateRequest, options);
|
|
58612
|
+
async createOrganizationWebhook(organizationId: string, webhookId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationWebhookCreateResponse>> {
|
|
58613
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationWebhook(organizationId, webhookId, organizationWebhookCreateRequest, options);
|
|
58494
58614
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58495
58615
|
const localVarOperationServerBasePath = operationServerMap['OrganizationWebhookApi.createOrganizationWebhook']?.[localVarOperationServerIndex]?.url;
|
|
58496
58616
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -58551,6 +58671,20 @@ export const OrganizationWebhookApiFp = function(configuration?: Configuration)
|
|
|
58551
58671
|
const localVarOperationServerBasePath = operationServerMap['OrganizationWebhookApi.listOrganizationWebHooks']?.[localVarOperationServerIndex]?.url;
|
|
58552
58672
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58553
58673
|
},
|
|
58674
|
+
/**
|
|
58675
|
+
* List events of a webhooks
|
|
58676
|
+
* @summary List events of a webhook
|
|
58677
|
+
* @param {string} organizationId Organization ID
|
|
58678
|
+
* @param {string} webhookId Webhook ID
|
|
58679
|
+
* @param {*} [options] Override http request option.
|
|
58680
|
+
* @throws {RequiredError}
|
|
58681
|
+
*/
|
|
58682
|
+
async listWebhookEvent(organizationId: string, webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebhookEventResponseList>> {
|
|
58683
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listWebhookEvent(organizationId, webhookId, options);
|
|
58684
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58685
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationWebhookApi.listWebhookEvent']?.[localVarOperationServerIndex]?.url;
|
|
58686
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58687
|
+
},
|
|
58554
58688
|
}
|
|
58555
58689
|
};
|
|
58556
58690
|
|
|
@@ -58565,12 +58699,13 @@ export const OrganizationWebhookApiFactory = function (configuration?: Configura
|
|
|
58565
58699
|
* Create an organization webhook.
|
|
58566
58700
|
* @summary Create an organization webhook
|
|
58567
58701
|
* @param {string} organizationId Organization ID
|
|
58702
|
+
* @param {string} webhookId Webhook ID
|
|
58568
58703
|
* @param {OrganizationWebhookCreateRequest} [organizationWebhookCreateRequest]
|
|
58569
58704
|
* @param {*} [options] Override http request option.
|
|
58570
58705
|
* @throws {RequiredError}
|
|
58571
58706
|
*/
|
|
58572
|
-
createOrganizationWebhook(organizationId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationWebhookCreateResponse> {
|
|
58573
|
-
return localVarFp.createOrganizationWebhook(organizationId, organizationWebhookCreateRequest, options).then((request) => request(axios, basePath));
|
|
58707
|
+
createOrganizationWebhook(organizationId: string, webhookId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationWebhookCreateResponse> {
|
|
58708
|
+
return localVarFp.createOrganizationWebhook(organizationId, webhookId, organizationWebhookCreateRequest, options).then((request) => request(axios, basePath));
|
|
58574
58709
|
},
|
|
58575
58710
|
/**
|
|
58576
58711
|
* Delete organization webhook
|
|
@@ -58616,6 +58751,17 @@ export const OrganizationWebhookApiFactory = function (configuration?: Configura
|
|
|
58616
58751
|
listOrganizationWebHooks(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationWebhookResponseList> {
|
|
58617
58752
|
return localVarFp.listOrganizationWebHooks(organizationId, options).then((request) => request(axios, basePath));
|
|
58618
58753
|
},
|
|
58754
|
+
/**
|
|
58755
|
+
* List events of a webhooks
|
|
58756
|
+
* @summary List events of a webhook
|
|
58757
|
+
* @param {string} organizationId Organization ID
|
|
58758
|
+
* @param {string} webhookId Webhook ID
|
|
58759
|
+
* @param {*} [options] Override http request option.
|
|
58760
|
+
* @throws {RequiredError}
|
|
58761
|
+
*/
|
|
58762
|
+
listWebhookEvent(organizationId: string, webhookId: string, options?: RawAxiosRequestConfig): AxiosPromise<WebhookEventResponseList> {
|
|
58763
|
+
return localVarFp.listWebhookEvent(organizationId, webhookId, options).then((request) => request(axios, basePath));
|
|
58764
|
+
},
|
|
58619
58765
|
};
|
|
58620
58766
|
};
|
|
58621
58767
|
|
|
@@ -58630,13 +58776,14 @@ export class OrganizationWebhookApi extends BaseAPI {
|
|
|
58630
58776
|
* Create an organization webhook.
|
|
58631
58777
|
* @summary Create an organization webhook
|
|
58632
58778
|
* @param {string} organizationId Organization ID
|
|
58779
|
+
* @param {string} webhookId Webhook ID
|
|
58633
58780
|
* @param {OrganizationWebhookCreateRequest} [organizationWebhookCreateRequest]
|
|
58634
58781
|
* @param {*} [options] Override http request option.
|
|
58635
58782
|
* @throws {RequiredError}
|
|
58636
58783
|
* @memberof OrganizationWebhookApi
|
|
58637
58784
|
*/
|
|
58638
|
-
public createOrganizationWebhook(organizationId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig) {
|
|
58639
|
-
return OrganizationWebhookApiFp(this.configuration).createOrganizationWebhook(organizationId, organizationWebhookCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
58785
|
+
public createOrganizationWebhook(organizationId: string, webhookId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig) {
|
|
58786
|
+
return OrganizationWebhookApiFp(this.configuration).createOrganizationWebhook(organizationId, webhookId, organizationWebhookCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
58640
58787
|
}
|
|
58641
58788
|
|
|
58642
58789
|
/**
|
|
@@ -58690,6 +58837,19 @@ export class OrganizationWebhookApi extends BaseAPI {
|
|
|
58690
58837
|
public listOrganizationWebHooks(organizationId: string, options?: RawAxiosRequestConfig) {
|
|
58691
58838
|
return OrganizationWebhookApiFp(this.configuration).listOrganizationWebHooks(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
58692
58839
|
}
|
|
58840
|
+
|
|
58841
|
+
/**
|
|
58842
|
+
* List events of a webhooks
|
|
58843
|
+
* @summary List events of a webhook
|
|
58844
|
+
* @param {string} organizationId Organization ID
|
|
58845
|
+
* @param {string} webhookId Webhook ID
|
|
58846
|
+
* @param {*} [options] Override http request option.
|
|
58847
|
+
* @throws {RequiredError}
|
|
58848
|
+
* @memberof OrganizationWebhookApi
|
|
58849
|
+
*/
|
|
58850
|
+
public listWebhookEvent(organizationId: string, webhookId: string, options?: RawAxiosRequestConfig) {
|
|
58851
|
+
return OrganizationWebhookApiFp(this.configuration).listWebhookEvent(organizationId, webhookId, options).then((request) => request(this.axios, this.basePath));
|
|
58852
|
+
}
|
|
58693
58853
|
}
|
|
58694
58854
|
|
|
58695
58855
|
|
package/dist/api.d.ts
CHANGED
|
@@ -19415,6 +19415,76 @@ export interface VersionResponseList {
|
|
|
19415
19415
|
*/
|
|
19416
19416
|
'results'?: Array<Version>;
|
|
19417
19417
|
}
|
|
19418
|
+
/**
|
|
19419
|
+
*
|
|
19420
|
+
* @export
|
|
19421
|
+
* @interface WebhookEventResponse
|
|
19422
|
+
*/
|
|
19423
|
+
export interface WebhookEventResponse {
|
|
19424
|
+
/**
|
|
19425
|
+
* Unique identifier
|
|
19426
|
+
* @type {string}
|
|
19427
|
+
* @memberof WebhookEventResponse
|
|
19428
|
+
*/
|
|
19429
|
+
'id': string;
|
|
19430
|
+
/**
|
|
19431
|
+
* Timestamp when the webhook event was created
|
|
19432
|
+
* @type {string}
|
|
19433
|
+
* @memberof WebhookEventResponse
|
|
19434
|
+
*/
|
|
19435
|
+
'created_at': string;
|
|
19436
|
+
/**
|
|
19437
|
+
*
|
|
19438
|
+
* @type {OrganizationWebhookKindEnum}
|
|
19439
|
+
* @memberof WebhookEventResponse
|
|
19440
|
+
*/
|
|
19441
|
+
'kind': OrganizationWebhookKindEnum;
|
|
19442
|
+
/**
|
|
19443
|
+
*
|
|
19444
|
+
* @type {OrganizationWebhookEventEnum}
|
|
19445
|
+
* @memberof WebhookEventResponse
|
|
19446
|
+
*/
|
|
19447
|
+
'matched_event': OrganizationWebhookEventEnum;
|
|
19448
|
+
/**
|
|
19449
|
+
* The webhook target URL that was invoked
|
|
19450
|
+
* @type {string}
|
|
19451
|
+
* @memberof WebhookEventResponse
|
|
19452
|
+
*/
|
|
19453
|
+
'target_url_used': string;
|
|
19454
|
+
/**
|
|
19455
|
+
* The request payload sent to the webhook
|
|
19456
|
+
* @type {{ [key: string]: any; }}
|
|
19457
|
+
* @memberof WebhookEventResponse
|
|
19458
|
+
*/
|
|
19459
|
+
'request': {
|
|
19460
|
+
[key: string]: any;
|
|
19461
|
+
};
|
|
19462
|
+
/**
|
|
19463
|
+
* HTTP status code returned by the webhook target
|
|
19464
|
+
* @type {number}
|
|
19465
|
+
* @memberof WebhookEventResponse
|
|
19466
|
+
*/
|
|
19467
|
+
'target_response_status_code': number;
|
|
19468
|
+
/**
|
|
19469
|
+
* Response body from the webhook target
|
|
19470
|
+
* @type {string}
|
|
19471
|
+
* @memberof WebhookEventResponse
|
|
19472
|
+
*/
|
|
19473
|
+
'target_response_body'?: string | null;
|
|
19474
|
+
}
|
|
19475
|
+
/**
|
|
19476
|
+
*
|
|
19477
|
+
* @export
|
|
19478
|
+
* @interface WebhookEventResponseList
|
|
19479
|
+
*/
|
|
19480
|
+
export interface WebhookEventResponseList {
|
|
19481
|
+
/**
|
|
19482
|
+
*
|
|
19483
|
+
* @type {Array<WebhookEventResponse>}
|
|
19484
|
+
* @memberof WebhookEventResponseList
|
|
19485
|
+
*/
|
|
19486
|
+
'results'?: Array<WebhookEventResponse>;
|
|
19487
|
+
}
|
|
19418
19488
|
/**
|
|
19419
19489
|
*
|
|
19420
19490
|
* @export
|
|
@@ -19565,7 +19635,7 @@ export declare const AlertReceiversApiAxiosParamCreator: (configuration?: Config
|
|
|
19565
19635
|
*/
|
|
19566
19636
|
getAlertReceivers: (organizationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19567
19637
|
/**
|
|
19568
|
-
* Validate an existing alert receiver by sending a test message for example
|
|
19638
|
+
* Validate an existing alert receiver by sending a test message for example.
|
|
19569
19639
|
* @summary Validate Existing Alert Receiver
|
|
19570
19640
|
* @param {string} alertReceiverId Alert Receiver ID
|
|
19571
19641
|
* @param {AlertReceiverValidationRequest} [alertReceiverValidationRequest]
|
|
@@ -19574,7 +19644,7 @@ export declare const AlertReceiversApiAxiosParamCreator: (configuration?: Config
|
|
|
19574
19644
|
*/
|
|
19575
19645
|
validateExistingAlertReceiver: (alertReceiverId: string, alertReceiverValidationRequest?: AlertReceiverValidationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19576
19646
|
/**
|
|
19577
|
-
* Validate a future alert receiver by sending a test message
|
|
19647
|
+
* Validate a future alert receiver by sending a test message.
|
|
19578
19648
|
* @summary Validate New Alert Receiver
|
|
19579
19649
|
* @param {AlertReceiverCreationValidationRequest} [alertReceiverCreationValidationRequest]
|
|
19580
19650
|
* @param {*} [options] Override http request option.
|
|
@@ -19629,7 +19699,7 @@ export declare const AlertReceiversApiFp: (configuration?: Configuration) => {
|
|
|
19629
19699
|
*/
|
|
19630
19700
|
getAlertReceivers(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertReceiverList>>;
|
|
19631
19701
|
/**
|
|
19632
|
-
* Validate an existing alert receiver by sending a test message for example
|
|
19702
|
+
* Validate an existing alert receiver by sending a test message for example.
|
|
19633
19703
|
* @summary Validate Existing Alert Receiver
|
|
19634
19704
|
* @param {string} alertReceiverId Alert Receiver ID
|
|
19635
19705
|
* @param {AlertReceiverValidationRequest} [alertReceiverValidationRequest]
|
|
@@ -19638,7 +19708,7 @@ export declare const AlertReceiversApiFp: (configuration?: Configuration) => {
|
|
|
19638
19708
|
*/
|
|
19639
19709
|
validateExistingAlertReceiver(alertReceiverId: string, alertReceiverValidationRequest?: AlertReceiverValidationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
19640
19710
|
/**
|
|
19641
|
-
* Validate a future alert receiver by sending a test message
|
|
19711
|
+
* Validate a future alert receiver by sending a test message.
|
|
19642
19712
|
* @summary Validate New Alert Receiver
|
|
19643
19713
|
* @param {AlertReceiverCreationValidationRequest} [alertReceiverCreationValidationRequest]
|
|
19644
19714
|
* @param {*} [options] Override http request option.
|
|
@@ -19693,7 +19763,7 @@ export declare const AlertReceiversApiFactory: (configuration?: Configuration, b
|
|
|
19693
19763
|
*/
|
|
19694
19764
|
getAlertReceivers(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertReceiverList>;
|
|
19695
19765
|
/**
|
|
19696
|
-
* Validate an existing alert receiver by sending a test message for example
|
|
19766
|
+
* Validate an existing alert receiver by sending a test message for example.
|
|
19697
19767
|
* @summary Validate Existing Alert Receiver
|
|
19698
19768
|
* @param {string} alertReceiverId Alert Receiver ID
|
|
19699
19769
|
* @param {AlertReceiverValidationRequest} [alertReceiverValidationRequest]
|
|
@@ -19702,7 +19772,7 @@ export declare const AlertReceiversApiFactory: (configuration?: Configuration, b
|
|
|
19702
19772
|
*/
|
|
19703
19773
|
validateExistingAlertReceiver(alertReceiverId: string, alertReceiverValidationRequest?: AlertReceiverValidationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
19704
19774
|
/**
|
|
19705
|
-
* Validate a future alert receiver by sending a test message
|
|
19775
|
+
* Validate a future alert receiver by sending a test message.
|
|
19706
19776
|
* @summary Validate New Alert Receiver
|
|
19707
19777
|
* @param {AlertReceiverCreationValidationRequest} [alertReceiverCreationValidationRequest]
|
|
19708
19778
|
* @param {*} [options] Override http request option.
|
|
@@ -19764,7 +19834,7 @@ export declare class AlertReceiversApi extends BaseAPI {
|
|
|
19764
19834
|
*/
|
|
19765
19835
|
getAlertReceivers(organizationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AlertReceiverList, any, {}>>;
|
|
19766
19836
|
/**
|
|
19767
|
-
* Validate an existing alert receiver by sending a test message for example
|
|
19837
|
+
* Validate an existing alert receiver by sending a test message for example.
|
|
19768
19838
|
* @summary Validate Existing Alert Receiver
|
|
19769
19839
|
* @param {string} alertReceiverId Alert Receiver ID
|
|
19770
19840
|
* @param {AlertReceiverValidationRequest} [alertReceiverValidationRequest]
|
|
@@ -19774,7 +19844,7 @@ export declare class AlertReceiversApi extends BaseAPI {
|
|
|
19774
19844
|
*/
|
|
19775
19845
|
validateExistingAlertReceiver(alertReceiverId: string, alertReceiverValidationRequest?: AlertReceiverValidationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
19776
19846
|
/**
|
|
19777
|
-
* Validate a future alert receiver by sending a test message
|
|
19847
|
+
* Validate a future alert receiver by sending a test message.
|
|
19778
19848
|
* @summary Validate New Alert Receiver
|
|
19779
19849
|
* @param {AlertReceiverCreationValidationRequest} [alertReceiverCreationValidationRequest]
|
|
19780
19850
|
* @param {*} [options] Override http request option.
|
|
@@ -36976,11 +37046,12 @@ export declare const OrganizationWebhookApiAxiosParamCreator: (configuration?: C
|
|
|
36976
37046
|
* Create an organization webhook.
|
|
36977
37047
|
* @summary Create an organization webhook
|
|
36978
37048
|
* @param {string} organizationId Organization ID
|
|
37049
|
+
* @param {string} webhookId Webhook ID
|
|
36979
37050
|
* @param {OrganizationWebhookCreateRequest} [organizationWebhookCreateRequest]
|
|
36980
37051
|
* @param {*} [options] Override http request option.
|
|
36981
37052
|
* @throws {RequiredError}
|
|
36982
37053
|
*/
|
|
36983
|
-
createOrganizationWebhook: (organizationId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
37054
|
+
createOrganizationWebhook: (organizationId: string, webhookId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
36984
37055
|
/**
|
|
36985
37056
|
* Delete organization webhook
|
|
36986
37057
|
* @summary Delete organization webhook
|
|
@@ -37017,6 +37088,15 @@ export declare const OrganizationWebhookApiAxiosParamCreator: (configuration?: C
|
|
|
37017
37088
|
* @throws {RequiredError}
|
|
37018
37089
|
*/
|
|
37019
37090
|
listOrganizationWebHooks: (organizationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
37091
|
+
/**
|
|
37092
|
+
* List events of a webhooks
|
|
37093
|
+
* @summary List events of a webhook
|
|
37094
|
+
* @param {string} organizationId Organization ID
|
|
37095
|
+
* @param {string} webhookId Webhook ID
|
|
37096
|
+
* @param {*} [options] Override http request option.
|
|
37097
|
+
* @throws {RequiredError}
|
|
37098
|
+
*/
|
|
37099
|
+
listWebhookEvent: (organizationId: string, webhookId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
37020
37100
|
};
|
|
37021
37101
|
/**
|
|
37022
37102
|
* OrganizationWebhookApi - functional programming interface
|
|
@@ -37027,11 +37107,12 @@ export declare const OrganizationWebhookApiFp: (configuration?: Configuration) =
|
|
|
37027
37107
|
* Create an organization webhook.
|
|
37028
37108
|
* @summary Create an organization webhook
|
|
37029
37109
|
* @param {string} organizationId Organization ID
|
|
37110
|
+
* @param {string} webhookId Webhook ID
|
|
37030
37111
|
* @param {OrganizationWebhookCreateRequest} [organizationWebhookCreateRequest]
|
|
37031
37112
|
* @param {*} [options] Override http request option.
|
|
37032
37113
|
* @throws {RequiredError}
|
|
37033
37114
|
*/
|
|
37034
|
-
createOrganizationWebhook(organizationId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationWebhookCreateResponse>>;
|
|
37115
|
+
createOrganizationWebhook(organizationId: string, webhookId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationWebhookCreateResponse>>;
|
|
37035
37116
|
/**
|
|
37036
37117
|
* Delete organization webhook
|
|
37037
37118
|
* @summary Delete organization webhook
|
|
@@ -37068,6 +37149,15 @@ export declare const OrganizationWebhookApiFp: (configuration?: Configuration) =
|
|
|
37068
37149
|
* @throws {RequiredError}
|
|
37069
37150
|
*/
|
|
37070
37151
|
listOrganizationWebHooks(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationWebhookResponseList>>;
|
|
37152
|
+
/**
|
|
37153
|
+
* List events of a webhooks
|
|
37154
|
+
* @summary List events of a webhook
|
|
37155
|
+
* @param {string} organizationId Organization ID
|
|
37156
|
+
* @param {string} webhookId Webhook ID
|
|
37157
|
+
* @param {*} [options] Override http request option.
|
|
37158
|
+
* @throws {RequiredError}
|
|
37159
|
+
*/
|
|
37160
|
+
listWebhookEvent(organizationId: string, webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebhookEventResponseList>>;
|
|
37071
37161
|
};
|
|
37072
37162
|
/**
|
|
37073
37163
|
* OrganizationWebhookApi - factory interface
|
|
@@ -37078,11 +37168,12 @@ export declare const OrganizationWebhookApiFactory: (configuration?: Configurati
|
|
|
37078
37168
|
* Create an organization webhook.
|
|
37079
37169
|
* @summary Create an organization webhook
|
|
37080
37170
|
* @param {string} organizationId Organization ID
|
|
37171
|
+
* @param {string} webhookId Webhook ID
|
|
37081
37172
|
* @param {OrganizationWebhookCreateRequest} [organizationWebhookCreateRequest]
|
|
37082
37173
|
* @param {*} [options] Override http request option.
|
|
37083
37174
|
* @throws {RequiredError}
|
|
37084
37175
|
*/
|
|
37085
|
-
createOrganizationWebhook(organizationId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationWebhookCreateResponse>;
|
|
37176
|
+
createOrganizationWebhook(organizationId: string, webhookId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationWebhookCreateResponse>;
|
|
37086
37177
|
/**
|
|
37087
37178
|
* Delete organization webhook
|
|
37088
37179
|
* @summary Delete organization webhook
|
|
@@ -37119,6 +37210,15 @@ export declare const OrganizationWebhookApiFactory: (configuration?: Configurati
|
|
|
37119
37210
|
* @throws {RequiredError}
|
|
37120
37211
|
*/
|
|
37121
37212
|
listOrganizationWebHooks(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationWebhookResponseList>;
|
|
37213
|
+
/**
|
|
37214
|
+
* List events of a webhooks
|
|
37215
|
+
* @summary List events of a webhook
|
|
37216
|
+
* @param {string} organizationId Organization ID
|
|
37217
|
+
* @param {string} webhookId Webhook ID
|
|
37218
|
+
* @param {*} [options] Override http request option.
|
|
37219
|
+
* @throws {RequiredError}
|
|
37220
|
+
*/
|
|
37221
|
+
listWebhookEvent(organizationId: string, webhookId: string, options?: RawAxiosRequestConfig): AxiosPromise<WebhookEventResponseList>;
|
|
37122
37222
|
};
|
|
37123
37223
|
/**
|
|
37124
37224
|
* OrganizationWebhookApi - object-oriented interface
|
|
@@ -37131,12 +37231,13 @@ export declare class OrganizationWebhookApi extends BaseAPI {
|
|
|
37131
37231
|
* Create an organization webhook.
|
|
37132
37232
|
* @summary Create an organization webhook
|
|
37133
37233
|
* @param {string} organizationId Organization ID
|
|
37234
|
+
* @param {string} webhookId Webhook ID
|
|
37134
37235
|
* @param {OrganizationWebhookCreateRequest} [organizationWebhookCreateRequest]
|
|
37135
37236
|
* @param {*} [options] Override http request option.
|
|
37136
37237
|
* @throws {RequiredError}
|
|
37137
37238
|
* @memberof OrganizationWebhookApi
|
|
37138
37239
|
*/
|
|
37139
|
-
createOrganizationWebhook(organizationId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrganizationWebhookCreateResponse, any, {}>>;
|
|
37240
|
+
createOrganizationWebhook(organizationId: string, webhookId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrganizationWebhookCreateResponse, any, {}>>;
|
|
37140
37241
|
/**
|
|
37141
37242
|
* Delete organization webhook
|
|
37142
37243
|
* @summary Delete organization webhook
|
|
@@ -37177,6 +37278,16 @@ export declare class OrganizationWebhookApi extends BaseAPI {
|
|
|
37177
37278
|
* @memberof OrganizationWebhookApi
|
|
37178
37279
|
*/
|
|
37179
37280
|
listOrganizationWebHooks(organizationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrganizationWebhookResponseList, any, {}>>;
|
|
37281
|
+
/**
|
|
37282
|
+
* List events of a webhooks
|
|
37283
|
+
* @summary List events of a webhook
|
|
37284
|
+
* @param {string} organizationId Organization ID
|
|
37285
|
+
* @param {string} webhookId Webhook ID
|
|
37286
|
+
* @param {*} [options] Override http request option.
|
|
37287
|
+
* @throws {RequiredError}
|
|
37288
|
+
* @memberof OrganizationWebhookApi
|
|
37289
|
+
*/
|
|
37290
|
+
listWebhookEvent(organizationId: string, webhookId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WebhookEventResponseList, any, {}>>;
|
|
37180
37291
|
}
|
|
37181
37292
|
/**
|
|
37182
37293
|
* ProjectDeploymentRuleApi - axios parameter creator
|