@openweb3-io/wallet 0.1.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/README.md +91 -0
- package/dist/index.d.ts +158 -0
- package/dist/index.js +339 -0
- package/dist/index.js.map +1 -0
- package/dist/openapi/apis/AddressesApi.d.ts +15 -0
- package/dist/openapi/apis/AddressesApi.js +224 -0
- package/dist/openapi/apis/AddressesApi.js.map +1 -0
- package/dist/openapi/apis/CurrenciesApi.d.ts +13 -0
- package/dist/openapi/apis/CurrenciesApi.js +138 -0
- package/dist/openapi/apis/CurrenciesApi.js.map +1 -0
- package/dist/openapi/apis/ExchangesApi.d.ts +25 -0
- package/dist/openapi/apis/ExchangesApi.js +338 -0
- package/dist/openapi/apis/ExchangesApi.js.map +1 -0
- package/dist/openapi/apis/NetworksApi.d.ts +10 -0
- package/dist/openapi/apis/NetworksApi.js +82 -0
- package/dist/openapi/apis/NetworksApi.js.map +1 -0
- package/dist/openapi/apis/RatesApi.d.ts +14 -0
- package/dist/openapi/apis/RatesApi.js +149 -0
- package/dist/openapi/apis/RatesApi.js.map +1 -0
- package/dist/openapi/apis/SweepFundsApi.d.ts +11 -0
- package/dist/openapi/apis/SweepFundsApi.js +86 -0
- package/dist/openapi/apis/SweepFundsApi.js.map +1 -0
- package/dist/openapi/apis/TransactionsApi.d.ts +25 -0
- package/dist/openapi/apis/TransactionsApi.js +322 -0
- package/dist/openapi/apis/TransactionsApi.js.map +1 -0
- package/dist/openapi/apis/WalletsApi.d.ts +22 -0
- package/dist/openapi/apis/WalletsApi.js +317 -0
- package/dist/openapi/apis/WalletsApi.js.map +1 -0
- package/dist/openapi/apis/WebhookEndpointsApi.d.ts +22 -0
- package/dist/openapi/apis/WebhookEndpointsApi.js +264 -0
- package/dist/openapi/apis/WebhookEndpointsApi.js.map +1 -0
- package/dist/openapi/apis/WebhookEventTypesApi.d.ts +10 -0
- package/dist/openapi/apis/WebhookEventTypesApi.js +65 -0
- package/dist/openapi/apis/WebhookEventTypesApi.js.map +1 -0
- package/dist/openapi/apis/WebhookEventsApi.d.ts +14 -0
- package/dist/openapi/apis/WebhookEventsApi.js +127 -0
- package/dist/openapi/apis/WebhookEventsApi.js.map +1 -0
- package/dist/openapi/apis/baseapi.d.ts +16 -0
- package/dist/openapi/apis/baseapi.js +25 -0
- package/dist/openapi/apis/baseapi.js.map +1 -0
- package/dist/openapi/apis/exception.d.ts +5 -0
- package/dist/openapi/apis/exception.js +12 -0
- package/dist/openapi/apis/exception.js.map +1 -0
- package/dist/openapi/auth/auth.d.ts +40 -0
- package/dist/openapi/auth/auth.js +42 -0
- package/dist/openapi/auth/auth.js.map +1 -0
- package/dist/openapi/configuration.d.ts +18 -0
- package/dist/openapi/configuration.js +21 -0
- package/dist/openapi/configuration.js.map +1 -0
- package/dist/openapi/http/http.d.ts +69 -0
- package/dist/openapi/http/http.js +162 -0
- package/dist/openapi/http/http.js.map +1 -0
- package/dist/openapi/http/isomorphic-fetch.d.ts +6 -0
- package/dist/openapi/http/isomorphic-fetch.js +31 -0
- package/dist/openapi/http/isomorphic-fetch.js.map +1 -0
- package/dist/openapi/index.d.ts +9 -0
- package/dist/openapi/index.js +32 -0
- package/dist/openapi/index.js.map +1 -0
- package/dist/openapi/middleware.d.ts +16 -0
- package/dist/openapi/middleware.js +17 -0
- package/dist/openapi/middleware.js.map +1 -0
- package/dist/openapi/models/Account.d.ts +22 -0
- package/dist/openapi/models/Account.js +51 -0
- package/dist/openapi/models/Account.js.map +1 -0
- package/dist/openapi/models/Address.d.ts +19 -0
- package/dist/openapi/models/Address.js +33 -0
- package/dist/openapi/models/Address.js.map +1 -0
- package/dist/openapi/models/ChainNetwork.d.ts +24 -0
- package/dist/openapi/models/ChainNetwork.js +63 -0
- package/dist/openapi/models/ChainNetwork.js.map +1 -0
- package/dist/openapi/models/CreateEndpoint.d.ts +27 -0
- package/dist/openapi/models/CreateEndpoint.js +57 -0
- package/dist/openapi/models/CreateEndpoint.js.map +1 -0
- package/dist/openapi/models/CreateExchange.d.ts +21 -0
- package/dist/openapi/models/CreateExchange.js +45 -0
- package/dist/openapi/models/CreateExchange.js.map +1 -0
- package/dist/openapi/models/CreateTransferRequest.d.ts +20 -0
- package/dist/openapi/models/CreateTransferRequest.js +39 -0
- package/dist/openapi/models/CreateTransferRequest.js.map +1 -0
- package/dist/openapi/models/CreateTransferResponse.d.ts +17 -0
- package/dist/openapi/models/CreateTransferResponse.js +21 -0
- package/dist/openapi/models/CreateTransferResponse.js.map +1 -0
- package/dist/openapi/models/CreateWalletRequest.d.ts +18 -0
- package/dist/openapi/models/CreateWalletRequest.js +27 -0
- package/dist/openapi/models/CreateWalletRequest.js.map +1 -0
- package/dist/openapi/models/CreateWithdrawReply.d.ts +17 -0
- package/dist/openapi/models/CreateWithdrawReply.js +21 -0
- package/dist/openapi/models/CreateWithdrawReply.js.map +1 -0
- package/dist/openapi/models/CreateWithdrawRequest.d.ts +23 -0
- package/dist/openapi/models/CreateWithdrawRequest.js +57 -0
- package/dist/openapi/models/CreateWithdrawRequest.js.map +1 -0
- package/dist/openapi/models/Currency.d.ts +37 -0
- package/dist/openapi/models/Currency.js +135 -0
- package/dist/openapi/models/Currency.js.map +1 -0
- package/dist/openapi/models/CurrencyNetwork.d.ts +36 -0
- package/dist/openapi/models/CurrencyNetwork.js +135 -0
- package/dist/openapi/models/CurrencyNetwork.js.map +1 -0
- package/dist/openapi/models/CurrencyPair.d.ts +18 -0
- package/dist/openapi/models/CurrencyPair.js +27 -0
- package/dist/openapi/models/CurrencyPair.js.map +1 -0
- package/dist/openapi/models/CursorPageAccount.d.ts +21 -0
- package/dist/openapi/models/CursorPageAccount.js +39 -0
- package/dist/openapi/models/CursorPageAccount.js.map +1 -0
- package/dist/openapi/models/CursorPageAddress.d.ts +21 -0
- package/dist/openapi/models/CursorPageAddress.js +39 -0
- package/dist/openapi/models/CursorPageAddress.js.map +1 -0
- package/dist/openapi/models/CursorPageChainNetwork.d.ts +21 -0
- package/dist/openapi/models/CursorPageChainNetwork.js +39 -0
- package/dist/openapi/models/CursorPageChainNetwork.js.map +1 -0
- package/dist/openapi/models/CursorPageCurrency.d.ts +21 -0
- package/dist/openapi/models/CursorPageCurrency.js +39 -0
- package/dist/openapi/models/CursorPageCurrency.js.map +1 -0
- package/dist/openapi/models/CursorPageEndpoint.d.ts +21 -0
- package/dist/openapi/models/CursorPageEndpoint.js +39 -0
- package/dist/openapi/models/CursorPageEndpoint.js.map +1 -0
- package/dist/openapi/models/CursorPageExchange.d.ts +21 -0
- package/dist/openapi/models/CursorPageExchange.js +39 -0
- package/dist/openapi/models/CursorPageExchange.js.map +1 -0
- package/dist/openapi/models/CursorPageTransaction.d.ts +21 -0
- package/dist/openapi/models/CursorPageTransaction.js +39 -0
- package/dist/openapi/models/CursorPageTransaction.js.map +1 -0
- package/dist/openapi/models/CursorPageWallet.d.ts +21 -0
- package/dist/openapi/models/CursorPageWallet.js +39 -0
- package/dist/openapi/models/CursorPageWallet.js.map +1 -0
- package/dist/openapi/models/CursorPageWebhookEvent.d.ts +21 -0
- package/dist/openapi/models/CursorPageWebhookEvent.js +39 -0
- package/dist/openapi/models/CursorPageWebhookEvent.js.map +1 -0
- package/dist/openapi/models/DeleteWebhookEndpointResponse.d.ts +17 -0
- package/dist/openapi/models/DeleteWebhookEndpointResponse.js +21 -0
- package/dist/openapi/models/DeleteWebhookEndpointResponse.js.map +1 -0
- package/dist/openapi/models/Endpoint.d.ts +29 -0
- package/dist/openapi/models/Endpoint.js +69 -0
- package/dist/openapi/models/Endpoint.js.map +1 -0
- package/dist/openapi/models/EstimateFeeRequest.d.ts +21 -0
- package/dist/openapi/models/EstimateFeeRequest.js +45 -0
- package/dist/openapi/models/EstimateFeeRequest.js.map +1 -0
- package/dist/openapi/models/EstimateFeeResponse.d.ts +18 -0
- package/dist/openapi/models/EstimateFeeResponse.js +27 -0
- package/dist/openapi/models/EstimateFeeResponse.js.map +1 -0
- package/dist/openapi/models/EstimateResponse.d.ts +21 -0
- package/dist/openapi/models/EstimateResponse.js +45 -0
- package/dist/openapi/models/EstimateResponse.js.map +1 -0
- package/dist/openapi/models/EventType.d.ts +18 -0
- package/dist/openapi/models/EventType.js +27 -0
- package/dist/openapi/models/EventType.js.map +1 -0
- package/dist/openapi/models/Exchange.d.ts +30 -0
- package/dist/openapi/models/Exchange.js +99 -0
- package/dist/openapi/models/Exchange.js.map +1 -0
- package/dist/openapi/models/ExchangeCurrencyPairs.d.ts +18 -0
- package/dist/openapi/models/ExchangeCurrencyPairs.js +27 -0
- package/dist/openapi/models/ExchangeCurrencyPairs.js.map +1 -0
- package/dist/openapi/models/ExchangeSubmitResponse.d.ts +17 -0
- package/dist/openapi/models/ExchangeSubmitResponse.js +21 -0
- package/dist/openapi/models/ExchangeSubmitResponse.js.map +1 -0
- package/dist/openapi/models/GetCurrencyPairQuotaResponse.d.ts +22 -0
- package/dist/openapi/models/GetCurrencyPairQuotaResponse.js +51 -0
- package/dist/openapi/models/GetCurrencyPairQuotaResponse.js.map +1 -0
- package/dist/openapi/models/GetRatesRequest.d.ts +18 -0
- package/dist/openapi/models/GetRatesRequest.js +21 -0
- package/dist/openapi/models/GetRatesRequest.js.map +1 -0
- package/dist/openapi/models/GetRatesResponse.d.ts +18 -0
- package/dist/openapi/models/GetRatesResponse.js +21 -0
- package/dist/openapi/models/GetRatesResponse.js.map +1 -0
- package/dist/openapi/models/ListExchangeCurrencyPairsResponse.d.ts +18 -0
- package/dist/openapi/models/ListExchangeCurrencyPairsResponse.js +21 -0
- package/dist/openapi/models/ListExchangeCurrencyPairsResponse.js.map +1 -0
- package/dist/openapi/models/ModelError.d.ts +18 -0
- package/dist/openapi/models/ModelError.js +27 -0
- package/dist/openapi/models/ModelError.js.map +1 -0
- package/dist/openapi/models/ObjectSerializer.d.ts +57 -0
- package/dist/openapi/models/ObjectSerializer.js +336 -0
- package/dist/openapi/models/ObjectSerializer.js.map +1 -0
- package/dist/openapi/models/Rate.d.ts +19 -0
- package/dist/openapi/models/Rate.js +27 -0
- package/dist/openapi/models/Rate.js.map +1 -0
- package/dist/openapi/models/ResendWebhookEventRequest.d.ts +18 -0
- package/dist/openapi/models/ResendWebhookEventRequest.js +27 -0
- package/dist/openapi/models/ResendWebhookEventRequest.js.map +1 -0
- package/dist/openapi/models/ResendWebhookEventResponse.d.ts +17 -0
- package/dist/openapi/models/ResendWebhookEventResponse.js +21 -0
- package/dist/openapi/models/ResendWebhookEventResponse.js.map +1 -0
- package/dist/openapi/models/SweepAddressRequest.d.ts +17 -0
- package/dist/openapi/models/SweepAddressRequest.js +21 -0
- package/dist/openapi/models/SweepAddressRequest.js.map +1 -0
- package/dist/openapi/models/SweepAddressResponse.d.ts +17 -0
- package/dist/openapi/models/SweepAddressResponse.js +21 -0
- package/dist/openapi/models/SweepAddressResponse.js.map +1 -0
- package/dist/openapi/models/Transaction.d.ts +32 -0
- package/dist/openapi/models/Transaction.js +99 -0
- package/dist/openapi/models/Transaction.js.map +1 -0
- package/dist/openapi/models/TransactionDirection.d.ts +1 -0
- package/dist/openapi/models/TransactionDirection.js +3 -0
- package/dist/openapi/models/TransactionDirection.js.map +1 -0
- package/dist/openapi/models/TransactionStatus.d.ts +1 -0
- package/dist/openapi/models/TransactionStatus.js +3 -0
- package/dist/openapi/models/TransactionStatus.js.map +1 -0
- package/dist/openapi/models/UpdateEndpoint.d.ts +27 -0
- package/dist/openapi/models/UpdateEndpoint.js +57 -0
- package/dist/openapi/models/UpdateEndpoint.js.map +1 -0
- package/dist/openapi/models/UpdateWalletRequest.d.ts +18 -0
- package/dist/openapi/models/UpdateWalletRequest.js +27 -0
- package/dist/openapi/models/UpdateWalletRequest.js.map +1 -0
- package/dist/openapi/models/Wallet.d.ts +20 -0
- package/dist/openapi/models/Wallet.js +39 -0
- package/dist/openapi/models/Wallet.js.map +1 -0
- package/dist/openapi/models/WebhookEvent.d.ts +22 -0
- package/dist/openapi/models/WebhookEvent.js +39 -0
- package/dist/openapi/models/WebhookEvent.js.map +1 -0
- package/dist/openapi/models/all.d.ts +48 -0
- package/dist/openapi/models/all.js +61 -0
- package/dist/openapi/models/all.js.map +1 -0
- package/dist/openapi/rxjsStub.d.ts +10 -0
- package/dist/openapi/rxjsStub.js +32 -0
- package/dist/openapi/rxjsStub.js.map +1 -0
- package/dist/openapi/servers.d.ts +17 -0
- package/dist/openapi/servers.js +31 -0
- package/dist/openapi/servers.js.map +1 -0
- package/dist/openapi/types/ObjectParamAPI.d.ts +259 -0
- package/dist/openapi/types/ObjectParamAPI.js +180 -0
- package/dist/openapi/types/ObjectParamAPI.js.map +1 -0
- package/dist/openapi/types/ObservableAPI.d.ts +150 -0
- package/dist/openapi/types/ObservableAPI.js +600 -0
- package/dist/openapi/types/ObservableAPI.js.map +1 -0
- package/dist/openapi/types/PromiseAPI.d.ts +127 -0
- package/dist/openapi/types/PromiseAPI.js +213 -0
- package/dist/openapi/types/PromiseAPI.js.map +1 -0
- package/dist/openapi/util.d.ts +1 -0
- package/dist/openapi/util.js +25 -0
- package/dist/openapi/util.js.map +1 -0
- package/package.json +51 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.WebhookEndpointsApiResponseProcessor = exports.WebhookEndpointsApiRequestFactory = void 0;
|
|
13
|
+
const baseapi_1 = require("./baseapi");
|
|
14
|
+
const http_1 = require("../http/http");
|
|
15
|
+
const ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
16
|
+
const exception_1 = require("./exception");
|
|
17
|
+
const util_1 = require("../util");
|
|
18
|
+
class WebhookEndpointsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
19
|
+
v1WebhooksCreate(request, _options) {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
let _config = _options || this.configuration;
|
|
22
|
+
if (request === null || request === undefined) {
|
|
23
|
+
throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1WebhooksCreate.');
|
|
24
|
+
}
|
|
25
|
+
const localVarPath = '/api/v1/webhook/endpoints';
|
|
26
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
27
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
28
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
29
|
+
"application/json"
|
|
30
|
+
]);
|
|
31
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
32
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "CreateEndpoint", ""), contentType);
|
|
33
|
+
requestContext.setBody(serializedBody);
|
|
34
|
+
let authMethod = null;
|
|
35
|
+
authMethod = _config.authMethods["ApiKeyAuth"];
|
|
36
|
+
if (authMethod) {
|
|
37
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
38
|
+
}
|
|
39
|
+
authMethod = _config.authMethods["SignatureAuth"];
|
|
40
|
+
if (authMethod) {
|
|
41
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
42
|
+
}
|
|
43
|
+
return requestContext;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
v1WebhooksDelete(endpointId, _options) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
let _config = _options || this.configuration;
|
|
49
|
+
if (endpointId === null || endpointId === undefined) {
|
|
50
|
+
throw new baseapi_1.RequiredError('Required parameter endpointId was null or undefined when calling v1WebhooksDelete.');
|
|
51
|
+
}
|
|
52
|
+
const localVarPath = '/api/v1/webhook/endpoints/{endpointId}'
|
|
53
|
+
.replace('{' + 'endpointId' + '}', encodeURIComponent(String(endpointId)));
|
|
54
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
55
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
56
|
+
let authMethod = null;
|
|
57
|
+
authMethod = _config.authMethods["ApiKeyAuth"];
|
|
58
|
+
if (authMethod) {
|
|
59
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
60
|
+
}
|
|
61
|
+
authMethod = _config.authMethods["SignatureAuth"];
|
|
62
|
+
if (authMethod) {
|
|
63
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
64
|
+
}
|
|
65
|
+
return requestContext;
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
v1WebhooksList(limit, cursor, _options) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
let _config = _options || this.configuration;
|
|
71
|
+
if (limit === null || limit === undefined) {
|
|
72
|
+
throw new baseapi_1.RequiredError('Required parameter limit was null or undefined when calling v1WebhooksList.');
|
|
73
|
+
}
|
|
74
|
+
const localVarPath = '/api/v1/webhook/endpoints';
|
|
75
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
76
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
77
|
+
if (cursor !== undefined) {
|
|
78
|
+
requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
|
|
79
|
+
}
|
|
80
|
+
if (limit !== undefined) {
|
|
81
|
+
requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
|
|
82
|
+
}
|
|
83
|
+
let authMethod = null;
|
|
84
|
+
authMethod = _config.authMethods["ApiKeyAuth"];
|
|
85
|
+
if (authMethod) {
|
|
86
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
87
|
+
}
|
|
88
|
+
authMethod = _config.authMethods["SignatureAuth"];
|
|
89
|
+
if (authMethod) {
|
|
90
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
91
|
+
}
|
|
92
|
+
return requestContext;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
v1WebhooksRetrieve(endpointId, _options) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
let _config = _options || this.configuration;
|
|
98
|
+
if (endpointId === null || endpointId === undefined) {
|
|
99
|
+
throw new baseapi_1.RequiredError('Required parameter endpointId was null or undefined when calling v1WebhooksRetrieve.');
|
|
100
|
+
}
|
|
101
|
+
const localVarPath = '/api/v1/webhook/endpoints/{endpointId}'
|
|
102
|
+
.replace('{' + 'endpointId' + '}', encodeURIComponent(String(endpointId)));
|
|
103
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
104
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
105
|
+
let authMethod = null;
|
|
106
|
+
authMethod = _config.authMethods["ApiKeyAuth"];
|
|
107
|
+
if (authMethod) {
|
|
108
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
109
|
+
}
|
|
110
|
+
authMethod = _config.authMethods["SignatureAuth"];
|
|
111
|
+
if (authMethod) {
|
|
112
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
113
|
+
}
|
|
114
|
+
return requestContext;
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
v1WebhooksUpdate(endpointId, request, _options) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
let _config = _options || this.configuration;
|
|
120
|
+
if (endpointId === null || endpointId === undefined) {
|
|
121
|
+
throw new baseapi_1.RequiredError('Required parameter endpointId was null or undefined when calling v1WebhooksUpdate.');
|
|
122
|
+
}
|
|
123
|
+
if (request === null || request === undefined) {
|
|
124
|
+
throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1WebhooksUpdate.');
|
|
125
|
+
}
|
|
126
|
+
const localVarPath = '/api/v1/webhook/endpoints/{endpointId}'
|
|
127
|
+
.replace('{' + 'endpointId' + '}', encodeURIComponent(String(endpointId)));
|
|
128
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
129
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
130
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
131
|
+
"application/json"
|
|
132
|
+
]);
|
|
133
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
134
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "UpdateEndpoint", ""), contentType);
|
|
135
|
+
requestContext.setBody(serializedBody);
|
|
136
|
+
let authMethod = null;
|
|
137
|
+
authMethod = _config.authMethods["ApiKeyAuth"];
|
|
138
|
+
if (authMethod) {
|
|
139
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
140
|
+
}
|
|
141
|
+
authMethod = _config.authMethods["SignatureAuth"];
|
|
142
|
+
if (authMethod) {
|
|
143
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
144
|
+
}
|
|
145
|
+
return requestContext;
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
exports.WebhookEndpointsApiRequestFactory = WebhookEndpointsApiRequestFactory;
|
|
150
|
+
class WebhookEndpointsApiResponseProcessor {
|
|
151
|
+
v1WebhooksCreate(response) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
154
|
+
if (util_1.isCodeInRange("200", response.httpStatusCode)) {
|
|
155
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Endpoint", "");
|
|
156
|
+
return body;
|
|
157
|
+
}
|
|
158
|
+
if (util_1.isCodeInRange("400", response.httpStatusCode)) {
|
|
159
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
160
|
+
throw new exception_1.ApiException(400, body);
|
|
161
|
+
}
|
|
162
|
+
if (util_1.isCodeInRange("500", response.httpStatusCode)) {
|
|
163
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
164
|
+
throw new exception_1.ApiException(500, body);
|
|
165
|
+
}
|
|
166
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
167
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Endpoint", "");
|
|
168
|
+
return body;
|
|
169
|
+
}
|
|
170
|
+
let body = response.body || "";
|
|
171
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
v1WebhooksDelete(response) {
|
|
175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
177
|
+
if (util_1.isCodeInRange("200", response.httpStatusCode)) {
|
|
178
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeleteWebhookEndpointResponse", "");
|
|
179
|
+
return body;
|
|
180
|
+
}
|
|
181
|
+
if (util_1.isCodeInRange("400", response.httpStatusCode)) {
|
|
182
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
183
|
+
throw new exception_1.ApiException(400, body);
|
|
184
|
+
}
|
|
185
|
+
if (util_1.isCodeInRange("500", response.httpStatusCode)) {
|
|
186
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
187
|
+
throw new exception_1.ApiException(500, body);
|
|
188
|
+
}
|
|
189
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
190
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeleteWebhookEndpointResponse", "");
|
|
191
|
+
return body;
|
|
192
|
+
}
|
|
193
|
+
let body = response.body || "";
|
|
194
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
v1WebhooksList(response) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
199
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
200
|
+
if (util_1.isCodeInRange("200", response.httpStatusCode)) {
|
|
201
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageEndpoint", "");
|
|
202
|
+
return body;
|
|
203
|
+
}
|
|
204
|
+
if (util_1.isCodeInRange("400", response.httpStatusCode)) {
|
|
205
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
206
|
+
throw new exception_1.ApiException(400, body);
|
|
207
|
+
}
|
|
208
|
+
if (util_1.isCodeInRange("500", response.httpStatusCode)) {
|
|
209
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
210
|
+
throw new exception_1.ApiException(500, body);
|
|
211
|
+
}
|
|
212
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
213
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageEndpoint", "");
|
|
214
|
+
return body;
|
|
215
|
+
}
|
|
216
|
+
let body = response.body || "";
|
|
217
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
v1WebhooksRetrieve(response) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
223
|
+
if (util_1.isCodeInRange("200", response.httpStatusCode)) {
|
|
224
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Endpoint", "");
|
|
225
|
+
return body;
|
|
226
|
+
}
|
|
227
|
+
if (util_1.isCodeInRange("400", response.httpStatusCode)) {
|
|
228
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
229
|
+
throw new exception_1.ApiException(400, body);
|
|
230
|
+
}
|
|
231
|
+
if (util_1.isCodeInRange("404", response.httpStatusCode)) {
|
|
232
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
233
|
+
throw new exception_1.ApiException(404, body);
|
|
234
|
+
}
|
|
235
|
+
if (util_1.isCodeInRange("500", response.httpStatusCode)) {
|
|
236
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
237
|
+
throw new exception_1.ApiException(500, body);
|
|
238
|
+
}
|
|
239
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
240
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Endpoint", "");
|
|
241
|
+
return body;
|
|
242
|
+
}
|
|
243
|
+
let body = response.body || "";
|
|
244
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
v1WebhooksUpdate(response) {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
249
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
250
|
+
if (util_1.isCodeInRange("200", response.httpStatusCode)) {
|
|
251
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Endpoint", "");
|
|
252
|
+
return body;
|
|
253
|
+
}
|
|
254
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
255
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Endpoint", "");
|
|
256
|
+
return body;
|
|
257
|
+
}
|
|
258
|
+
let body = response.body || "";
|
|
259
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
exports.WebhookEndpointsApiResponseProcessor = WebhookEndpointsApiResponseProcessor;
|
|
264
|
+
//# sourceMappingURL=WebhookEndpointsApi.js.map
|
|
@@ -0,0 +1 @@
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AAQ,CAAC,cAAc,CAAC,EAAE;gBAC/C,MAAM,IAAI,GAAa,mCAAgB,CAAC,WAAW,CAC/C,mCAAgB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,EAC/D,UAAU,EAAE,EAAE,CACL,CAAC;gBACd,OAAO,IAAI,CAAC;aACf;YAGD,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,EAAE;gBAClE,MAAM,IAAI,GAAa,mCAAgB,CAAC,WAAW,CAC/C,mCAAgB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,EAC/D,UAAU,EAAE,EAAE,CACL,CAAC;gBACd,OAAO,IAAI,CAAC;aACf;YAED,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YAC/B,MAAM,IAAI,wBAAY,CAAS,QAAQ,CAAC,cAAc,EAAE,oCAAoC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;QAChH,CAAC;KAAA;CAEJ;AAvND,oFAuNC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseAPIRequestFactory } from './baseapi';
|
|
2
|
+
import { Configuration } from '../configuration';
|
|
3
|
+
import { RequestContext, ResponseContext } from '../http/http';
|
|
4
|
+
import { EventType } from '../models/EventType';
|
|
5
|
+
export declare class WebhookEventTypesApiRequestFactory extends BaseAPIRequestFactory {
|
|
6
|
+
v1WebhooksEventtypesList(_options?: Configuration): Promise<RequestContext>;
|
|
7
|
+
}
|
|
8
|
+
export declare class WebhookEventTypesApiResponseProcessor {
|
|
9
|
+
v1WebhooksEventtypesList(response: ResponseContext): Promise<Array<EventType>>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.WebhookEventTypesApiResponseProcessor = exports.WebhookEventTypesApiRequestFactory = void 0;
|
|
13
|
+
const baseapi_1 = require("./baseapi");
|
|
14
|
+
const http_1 = require("../http/http");
|
|
15
|
+
const ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
16
|
+
const exception_1 = require("./exception");
|
|
17
|
+
const util_1 = require("../util");
|
|
18
|
+
class WebhookEventTypesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
19
|
+
v1WebhooksEventtypesList(_options) {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
let _config = _options || this.configuration;
|
|
22
|
+
const localVarPath = '/api/v1/webhook/event_types';
|
|
23
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
24
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
25
|
+
let authMethod = null;
|
|
26
|
+
authMethod = _config.authMethods["ApiKeyAuth"];
|
|
27
|
+
if (authMethod) {
|
|
28
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
29
|
+
}
|
|
30
|
+
authMethod = _config.authMethods["SignatureAuth"];
|
|
31
|
+
if (authMethod) {
|
|
32
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
33
|
+
}
|
|
34
|
+
return requestContext;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.WebhookEventTypesApiRequestFactory = WebhookEventTypesApiRequestFactory;
|
|
39
|
+
class WebhookEventTypesApiResponseProcessor {
|
|
40
|
+
v1WebhooksEventtypesList(response) {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
43
|
+
if (util_1.isCodeInRange("200", response.httpStatusCode)) {
|
|
44
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array<EventType>", "");
|
|
45
|
+
return body;
|
|
46
|
+
}
|
|
47
|
+
if (util_1.isCodeInRange("400", response.httpStatusCode)) {
|
|
48
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
49
|
+
throw new exception_1.ApiException(400, body);
|
|
50
|
+
}
|
|
51
|
+
if (util_1.isCodeInRange("500", response.httpStatusCode)) {
|
|
52
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
53
|
+
throw new exception_1.ApiException(500, body);
|
|
54
|
+
}
|
|
55
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
56
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array<EventType>", "");
|
|
57
|
+
return body;
|
|
58
|
+
}
|
|
59
|
+
let body = response.body || "";
|
|
60
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.WebhookEventTypesApiResponseProcessor = WebhookEventTypesApiResponseProcess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AC,cAAc,EAAE,oCAAoC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;QAChH,CAAC;KAAA;CAEJ;AA9CD,sFA8CC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseAPIRequestFactory } from './baseapi';
|
|
2
|
+
import { Configuration } from '../configuration';
|
|
3
|
+
import { RequestContext, ResponseContext } from '../http/http';
|
|
4
|
+
import { CursorPageWebhookEvent } from '../models/CursorPageWebhookEvent';
|
|
5
|
+
import { ResendWebhookEventRequest } from '../models/ResendWebhookEventRequest';
|
|
6
|
+
import { ResendWebhookEventResponse } from '../models/ResendWebhookEventResponse';
|
|
7
|
+
export declare class WebhookEventsApiRequestFactory extends BaseAPIRequestFactory {
|
|
8
|
+
v1WebhooksEventsList(limit: number, cursor?: string, eventTypes?: Array<string>, _options?: Configuration): Promise<RequestContext>;
|
|
9
|
+
v1WebhooksEventsResend(request: ResendWebhookEventRequest, _options?: Configuration): Promise<RequestContext>;
|
|
10
|
+
}
|
|
11
|
+
export declare class WebhookEventsApiResponseProcessor {
|
|
12
|
+
v1WebhooksEventsList(response: ResponseContext): Promise<CursorPageWebhookEvent>;
|
|
13
|
+
v1WebhooksEventsResend(response: ResponseContext): Promise<ResendWebhookEventResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.WebhookEventsApiResponseProcessor = exports.WebhookEventsApiRequestFactory = void 0;
|
|
13
|
+
const baseapi_1 = require("./baseapi");
|
|
14
|
+
const http_1 = require("../http/http");
|
|
15
|
+
const ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
16
|
+
const exception_1 = require("./exception");
|
|
17
|
+
const util_1 = require("../util");
|
|
18
|
+
class WebhookEventsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
19
|
+
v1WebhooksEventsList(limit, cursor, eventTypes, _options) {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
let _config = _options || this.configuration;
|
|
22
|
+
if (limit === null || limit === undefined) {
|
|
23
|
+
throw new baseapi_1.RequiredError('Required parameter limit was null or undefined when calling v1WebhooksEventsList.');
|
|
24
|
+
}
|
|
25
|
+
const localVarPath = '/api/v1/webhook/events';
|
|
26
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
27
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
28
|
+
if (cursor !== undefined) {
|
|
29
|
+
requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
|
|
30
|
+
}
|
|
31
|
+
if (eventTypes !== undefined) {
|
|
32
|
+
requestContext.setQueryParam("event_types", ObjectSerializer_1.ObjectSerializer.serialize(eventTypes, "Array<string>", ""));
|
|
33
|
+
}
|
|
34
|
+
if (limit !== undefined) {
|
|
35
|
+
requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
|
|
36
|
+
}
|
|
37
|
+
let authMethod = null;
|
|
38
|
+
authMethod = _config.authMethods["ApiKeyAuth"];
|
|
39
|
+
if (authMethod) {
|
|
40
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
41
|
+
}
|
|
42
|
+
authMethod = _config.authMethods["SignatureAuth"];
|
|
43
|
+
if (authMethod) {
|
|
44
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
45
|
+
}
|
|
46
|
+
return requestContext;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
v1WebhooksEventsResend(request, _options) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
let _config = _options || this.configuration;
|
|
52
|
+
if (request === null || request === undefined) {
|
|
53
|
+
throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1WebhooksEventsResend.');
|
|
54
|
+
}
|
|
55
|
+
const localVarPath = '/api/v1/webhook/events/resend';
|
|
56
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
57
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
58
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
59
|
+
"application/json"
|
|
60
|
+
]);
|
|
61
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
62
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "ResendWebhookEventRequest", ""), contentType);
|
|
63
|
+
requestContext.setBody(serializedBody);
|
|
64
|
+
let authMethod = null;
|
|
65
|
+
authMethod = _config.authMethods["ApiKeyAuth"];
|
|
66
|
+
if (authMethod) {
|
|
67
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
68
|
+
}
|
|
69
|
+
authMethod = _config.authMethods["SignatureAuth"];
|
|
70
|
+
if (authMethod) {
|
|
71
|
+
yield authMethod.applySecurityAuthentication(requestContext);
|
|
72
|
+
}
|
|
73
|
+
return requestContext;
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.WebhookEventsApiRequestFactory = WebhookEventsApiRequestFactory;
|
|
78
|
+
class WebhookEventsApiResponseProcessor {
|
|
79
|
+
v1WebhooksEventsList(response) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
82
|
+
if (util_1.isCodeInRange("200", response.httpStatusCode)) {
|
|
83
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageWebhookEvent", "");
|
|
84
|
+
return body;
|
|
85
|
+
}
|
|
86
|
+
if (util_1.isCodeInRange("400", response.httpStatusCode)) {
|
|
87
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
88
|
+
throw new exception_1.ApiException(400, body);
|
|
89
|
+
}
|
|
90
|
+
if (util_1.isCodeInRange("500", response.httpStatusCode)) {
|
|
91
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
92
|
+
throw new exception_1.ApiException(500, body);
|
|
93
|
+
}
|
|
94
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
95
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageWebhookEvent", "");
|
|
96
|
+
return body;
|
|
97
|
+
}
|
|
98
|
+
let body = response.body || "";
|
|
99
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
v1WebhooksEventsResend(response) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
105
|
+
if (util_1.isCodeInRange("200", response.httpStatusCode)) {
|
|
106
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ResendWebhookEventResponse", "");
|
|
107
|
+
return body;
|
|
108
|
+
}
|
|
109
|
+
if (util_1.isCodeInRange("400", response.httpStatusCode)) {
|
|
110
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
111
|
+
throw new exception_1.ApiException(400, body);
|
|
112
|
+
}
|
|
113
|
+
if (util_1.isCodeInRange("500", response.httpStatusCode)) {
|
|
114
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
|
|
115
|
+
throw new exception_1.ApiException(500, body);
|
|
116
|
+
}
|
|
117
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
118
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ResendWebhookEventResponse", "");
|
|
119
|
+
return body;
|
|
120
|
+
}
|
|
121
|
+
let body = response.body || "";
|
|
122
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
exports.WebhookEventsApiResponseProcessor = WebhookEventsApiResponseProcessor;
|
|
127
|
+
//# sourceMappingURL=WebhookEventsApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebhookEventsApi.js","sourceRoot":"","sources":["../../../src/openapi/apis/WebhookEventsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,uCAAiE;AAEjE,uCAAoF;AACpF,iEAA4D;AAC5D,2CAAyC;AACzC,kCAAsC;AAStC,MAAa,8BAA+B,SAAQ,+BAAqB;IASxD,oBAAoB,CAAC,KAAa,EAAE,MAAe,EAAE,UAA0B,EAAE,QAAwB;;YAClH,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AAC;gBACX,MAAM,IAAI,wBAAY,CAAQ,GAAG,EAAE,IAAI,CAAC,CAAC;aAC5C;YAGD,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,EAAE;gBAClE,MAAM,IAAI,GAA+B,mCAAgB,CAAC,WAAW,CACjE,mCAAgB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,EAC/D,4BAA4B,EAAE,EAAE,CACL,CAAC;gBAChC,OAAO,IAAI,CAAC;aACf;YAED,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YAC/B,MAAM,IAAI,wBAAY,CAAS,QAAQ,CAAC,cAAc,EAAE,oCAAoC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;QAChH,CAAC;KAAA;CAEJ;AA1FD,8EA0FC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Configuration } from '../configuration';
|
|
2
|
+
export declare const COLLECTION_FORMATS: {
|
|
3
|
+
csv: string;
|
|
4
|
+
ssv: string;
|
|
5
|
+
tsv: string;
|
|
6
|
+
pipes: string;
|
|
7
|
+
};
|
|
8
|
+
export declare class BaseAPIRequestFactory {
|
|
9
|
+
protected configuration: Configuration;
|
|
10
|
+
constructor(configuration: Configuration);
|
|
11
|
+
}
|
|
12
|
+
export declare class RequiredError extends Error {
|
|
13
|
+
field: string;
|
|
14
|
+
name: "RequiredError";
|
|
15
|
+
constructor(field: string, msg?: string);
|
|
16
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequiredError = exports.BaseAPIRequestFactory = exports.COLLECTION_FORMATS = void 0;
|
|
4
|
+
exports.COLLECTION_FORMATS = {
|
|
5
|
+
csv: ",",
|
|
6
|
+
ssv: " ",
|
|
7
|
+
tsv: "\t",
|
|
8
|
+
pipes: "|",
|
|
9
|
+
};
|
|
10
|
+
class BaseAPIRequestFactory {
|
|
11
|
+
constructor(configuration) {
|
|
12
|
+
this.configuration = configuration;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.BaseAPIRequestFactory = BaseAPIRequestFactory;
|
|
16
|
+
;
|
|
17
|
+
class RequiredError extends Error {
|
|
18
|
+
constructor(field, msg) {
|
|
19
|
+
super(msg);
|
|
20
|
+
this.field = field;
|
|
21
|
+
this.name = "RequiredError";
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.RequiredError = RequiredError;
|
|
25
|
+
//# sourceMappingURL=baseapi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseapi.js","sourceRoot":"","sources":["../../../src/openapi/apis/baseapi.ts"],"names":[],"mappings":";;;AAMa,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAQF,MAAa,qBAAqB;IAE9B,YAAsB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAClD,CAAC;CACJ;AAJD,sDAIC;AAAA,CAAC;AAQF,MAAa,aAAc,SAAQ,KAAK;IAEpC,YAAmB,KAAa,EAAE,GAAY;QAC1C,KAAK,CAAC,GAAG,CAAC,CAAC;QADI,UAAK,GAAL,KAAK,CAAQ;QADhC,SAAI,GAAoB,eAAe,CAAC;IAGxC,CAAC;CACJ;AALD,sCAKC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiException = void 0;
|
|
4
|
+
class ApiException extends Error {
|
|
5
|
+
constructor(code, body) {
|
|
6
|
+
super("HTTP-Code: " + code + "\nMessage: " + JSON.stringify(body));
|
|
7
|
+
this.code = code;
|
|
8
|
+
this.body = body;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ApiException = ApiException;
|
|
12
|
+
//# sourceMappingURL=exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exception.js","sourceRoot":"","sources":["../../../src/openapi/apis/exception.ts"],"names":[],"mappings":";;;AASA,MAAa,YAAgB,SAAQ,KAAK;IACtC,YAA0B,IAAY,EAAS,IAAO;QAClD,KAAK,CAAC,aAAa,GAAG,IAAI,GAAG,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAA;QAD5C,SAAI,GAAJ,IAAI,CAAQ;QAAS,SAAI,GAAJ,IAAI,CAAG;IAEtD,CAAC;CACJ;AAJD,oCAIC"}
|