@chainstream-io/sdk 0.1.5 → 0.1.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/README.md +46 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +76 -60
- package/dist/esm/openapi/apis/BlockchainApi.js +61 -44
- package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.js +67 -50
- package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.js +38 -25
- package/dist/esm/openapi/apis/DexApi.js +205 -176
- package/dist/esm/openapi/apis/DexPoolApi.js +41 -28
- package/dist/esm/openapi/apis/EndpointApi.js +212 -175
- package/dist/esm/openapi/apis/IpfsApi.js +38 -25
- package/dist/esm/openapi/apis/JobsApi.js +65 -48
- package/dist/esm/openapi/apis/RankingApi.js +278 -249
- package/dist/esm/openapi/apis/RedPacketApi.js +294 -253
- package/dist/esm/openapi/apis/TokenApi.js +1145 -1056
- package/dist/esm/openapi/apis/TradeApi.js +233 -208
- package/dist/esm/openapi/apis/TransactionApi.js +42 -29
- package/dist/esm/openapi/apis/WalletApi.js +148 -123
- package/dist/esm/openapi/apis/WatchlistApi.js +41 -28
- package/dist/esm/openapi/runtime.js +81 -69
- package/dist/esm/stream/index.d.ts +3 -0
- package/dist/esm/stream/index.js +3 -0
- package/dist/esm/{api → stream}/stream.js +36 -29
- package/dist/index.d.ts +1 -1
- package/dist/index.js +75 -59
- package/dist/openapi/apis/BlockchainApi.js +62 -78
- package/dist/openapi/apis/DefiSolanaMoonshotApi.js +68 -84
- package/dist/openapi/apis/DefiSolanaPumpfunApi.js +39 -59
- package/dist/openapi/apis/DexApi.js +206 -210
- package/dist/openapi/apis/DexPoolApi.js +42 -62
- package/dist/openapi/apis/EndpointApi.js +213 -209
- package/dist/openapi/apis/IpfsApi.js +39 -59
- package/dist/openapi/apis/JobsApi.js +66 -82
- package/dist/openapi/apis/RankingApi.js +279 -283
- package/dist/openapi/apis/RedPacketApi.js +295 -287
- package/dist/openapi/apis/TokenApi.js +1146 -1090
- package/dist/openapi/apis/TradeApi.js +234 -242
- package/dist/openapi/apis/TransactionApi.js +43 -63
- package/dist/openapi/apis/WalletApi.js +149 -157
- package/dist/openapi/apis/WatchlistApi.js +42 -62
- package/dist/openapi/runtime.js +81 -69
- package/dist/stream/index.d.ts +3 -0
- package/dist/stream/index.js +19 -0
- package/dist/{api → stream}/stream.js +36 -29
- package/package.json +29 -26
- package/src/api/stream.fields.ts +0 -271
- package/src/api/stream.model.ts +0 -307
- package/src/api/stream.ts +0 -1086
- package/src/index.ts +0 -188
- package/src/openapi/apis/BlockchainApi.ts +0 -140
- package/src/openapi/apis/DefiSolanaMoonshotApi.ts +0 -145
- package/src/openapi/apis/DefiSolanaPumpfunApi.ts +0 -86
- package/src/openapi/apis/DexApi.ts +0 -490
- package/src/openapi/apis/DexPoolApi.ts +0 -107
- package/src/openapi/apis/EndpointApi.ts +0 -421
- package/src/openapi/apis/IpfsApi.ts +0 -66
- package/src/openapi/apis/JobsApi.ts +0 -135
- package/src/openapi/apis/RankingApi.ts +0 -939
- package/src/openapi/apis/RedPacketApi.ts +0 -621
- package/src/openapi/apis/TokenApi.ts +0 -2569
- package/src/openapi/apis/TradeApi.ts +0 -596
- package/src/openapi/apis/TransactionApi.ts +0 -95
- package/src/openapi/apis/WalletApi.ts +0 -365
- package/src/openapi/apis/WatchlistApi.ts +0 -107
- package/src/openapi/apis/index.ts +0 -17
- package/src/openapi/index.ts +0 -5
- package/src/openapi/models/BlockchainDTO.ts +0 -93
- package/src/openapi/models/BlockchainLatestBlockDTO.ts +0 -75
- package/src/openapi/models/BooleanResultDTO.ts +0 -66
- package/src/openapi/models/CalculatePnlInput.ts +0 -65
- package/src/openapi/models/Candle.ts +0 -130
- package/src/openapi/models/ClaimRedPacketInput.ts +0 -90
- package/src/openapi/models/CreateEndpointInput.ts +0 -121
- package/src/openapi/models/CreateRedPacketInput.ts +0 -124
- package/src/openapi/models/CreateRedPacketReply.ts +0 -75
- package/src/openapi/models/CreateTokenInput.ts +0 -139
- package/src/openapi/models/CreateTokenReply.ts +0 -75
- package/src/openapi/models/DexDTO.ts +0 -90
- package/src/openapi/models/DexPage.ts +0 -114
- package/src/openapi/models/DexPoolDTO.ts +0 -141
- package/src/openapi/models/EndpointListResponse.ts +0 -97
- package/src/openapi/models/EndpointOperationResponse.ts +0 -65
- package/src/openapi/models/EndpointResponse.ts +0 -145
- package/src/openapi/models/EndpointSecretResponse.ts +0 -65
- package/src/openapi/models/FilterCondition.ts +0 -135
- package/src/openapi/models/GainersAndLosersDTO.ts +0 -93
- package/src/openapi/models/GainersAndLosersPage.ts +0 -114
- package/src/openapi/models/JobDTO.ts +0 -75
- package/src/openapi/models/JobStreamingDTO.ts +0 -75
- package/src/openapi/models/Link.ts +0 -88
- package/src/openapi/models/MoonshotCreateTokenInput.ts +0 -182
- package/src/openapi/models/MoonshotCreateTokenReply.ts +0 -75
- package/src/openapi/models/MoonshotSubmitCreateToken200Response.ts +0 -73
- package/src/openapi/models/MoonshotSubmitCreateTokenInput.ts +0 -74
- package/src/openapi/models/PumpCreateTokenInput.ts +0 -180
- package/src/openapi/models/PumpCreateTokenReply.ts +0 -74
- package/src/openapi/models/QuoteResponse.ts +0 -105
- package/src/openapi/models/RedPacketClaimDTO.ts +0 -148
- package/src/openapi/models/RedPacketClaimsPage.ts +0 -110
- package/src/openapi/models/RedPacketDTO.ts +0 -229
- package/src/openapi/models/RedPacketReply.ts +0 -66
- package/src/openapi/models/RedPacketSendTxInput.ts +0 -66
- package/src/openapi/models/RedPacketSendTxResponse.ts +0 -66
- package/src/openapi/models/RedPacketsPage.ts +0 -110
- package/src/openapi/models/Resolution.ts +0 -61
- package/src/openapi/models/SendTxInput.ts +0 -93
- package/src/openapi/models/SendTxResponse.ts +0 -84
- package/src/openapi/models/SwapInput.ts +0 -157
- package/src/openapi/models/SwapReply.ts +0 -75
- package/src/openapi/models/SwapRouteInput.ts +0 -186
- package/src/openapi/models/SwapRouteResponse.ts +0 -101
- package/src/openapi/models/Token.ts +0 -251
- package/src/openapi/models/TokenCreationDTO.ts +0 -131
- package/src/openapi/models/TokenCreationPage.ts +0 -114
- package/src/openapi/models/TokenCreatorsDTO.ts +0 -81
- package/src/openapi/models/TokenExtraDTO.ts +0 -225
- package/src/openapi/models/TokenHolder.ts +0 -93
- package/src/openapi/models/TokenHolderPage.ts +0 -114
- package/src/openapi/models/TokenListPage.ts +0 -114
- package/src/openapi/models/TokenMarketData.ts +0 -190
- package/src/openapi/models/TokenMetadata.ts +0 -188
- package/src/openapi/models/TokenPage.ts +0 -122
- package/src/openapi/models/TokenPriceDTO.ts +0 -93
- package/src/openapi/models/TokenPricePage.ts +0 -114
- package/src/openapi/models/TokenSocialMediasDTO.ts +0 -161
- package/src/openapi/models/TokenStat.ts +0 -1152
- package/src/openapi/models/TopTradersDTO.ts +0 -164
- package/src/openapi/models/TopTradersPage.ts +0 -114
- package/src/openapi/models/TradeDetailDTO.ts +0 -282
- package/src/openapi/models/TradeEvent.ts +0 -184
- package/src/openapi/models/TradePage.ts +0 -114
- package/src/openapi/models/TradeType.ts +0 -53
- package/src/openapi/models/UpdateEndpointInput.ts +0 -129
- package/src/openapi/models/WalletBalanceDetailDTO.ts +0 -282
- package/src/openapi/models/WalletBalancesDTO.ts +0 -92
- package/src/openapi/models/WalletPnlDTO.ts +0 -264
- package/src/openapi/models/index.ts +0 -72
- package/src/openapi/runtime.ts +0 -432
- /package/dist/{api → esm/stream}/stream.d.ts +0 -0
- /package/dist/{api → esm/stream}/stream.fields.d.ts +0 -0
- /package/dist/esm/{api → stream}/stream.fields.js +0 -0
- /package/dist/{api → esm/stream}/stream.model.d.ts +0 -0
- /package/dist/esm/{api → stream}/stream.model.js +0 -0
- /package/dist/{esm/api → stream}/stream.d.ts +0 -0
- /package/dist/{esm/api → stream}/stream.fields.d.ts +0 -0
- /package/dist/{api → stream}/stream.fields.js +0 -0
- /package/dist/{esm/api → stream}/stream.model.d.ts +0 -0
- /package/dist/{api → stream}/stream.model.js +0 -0
|
@@ -1,421 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dex Aggregator API
|
|
5
|
-
* Dex Aggregator API ⚡️
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: ai@sx.ai
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
CreateEndpointInput,
|
|
19
|
-
EndpointListResponse,
|
|
20
|
-
EndpointOperationResponse,
|
|
21
|
-
EndpointResponse,
|
|
22
|
-
EndpointSecretResponse,
|
|
23
|
-
UpdateEndpointInput,
|
|
24
|
-
} from '../models/index';
|
|
25
|
-
import {
|
|
26
|
-
CreateEndpointInputFromJSON,
|
|
27
|
-
CreateEndpointInputToJSON,
|
|
28
|
-
EndpointListResponseFromJSON,
|
|
29
|
-
EndpointListResponseToJSON,
|
|
30
|
-
EndpointOperationResponseFromJSON,
|
|
31
|
-
EndpointOperationResponseToJSON,
|
|
32
|
-
EndpointResponseFromJSON,
|
|
33
|
-
EndpointResponseToJSON,
|
|
34
|
-
EndpointSecretResponseFromJSON,
|
|
35
|
-
EndpointSecretResponseToJSON,
|
|
36
|
-
UpdateEndpointInputFromJSON,
|
|
37
|
-
UpdateEndpointInputToJSON,
|
|
38
|
-
} from '../models/index';
|
|
39
|
-
|
|
40
|
-
export interface CreateEndpointRequest {
|
|
41
|
-
createEndpointInput: CreateEndpointInput;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface DeleteEndpointRequest {
|
|
45
|
-
id: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface GetEndpointRequest {
|
|
49
|
-
id: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface GetEndpointSecretRequest {
|
|
53
|
-
id: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface ListEndpointsRequest {
|
|
57
|
-
limit?: number;
|
|
58
|
-
iterator?: string;
|
|
59
|
-
order?: ListEndpointsOrderEnum;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface RotateEndpointSecretRequest {
|
|
63
|
-
id: string;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface UpdateEndpointRequest {
|
|
67
|
-
updateEndpointInput: UpdateEndpointInput;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
export class EndpointApi extends runtime.BaseAPI {
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* CONTROLLER.ENDPOINT.CREATE.DESCRIPTION
|
|
77
|
-
* CONTROLLER.ENDPOINT.CREATE.SUMMARY
|
|
78
|
-
*/
|
|
79
|
-
async createEndpointRaw(requestParameters: CreateEndpointRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EndpointResponse>> {
|
|
80
|
-
if (requestParameters['createEndpointInput'] == null) {
|
|
81
|
-
throw new runtime.RequiredError(
|
|
82
|
-
'createEndpointInput',
|
|
83
|
-
'Required parameter "createEndpointInput" was null or undefined when calling createEndpoint().'
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
const queryParameters: any = {};
|
|
88
|
-
|
|
89
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
90
|
-
|
|
91
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
92
|
-
|
|
93
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
94
|
-
const token = this.configuration.accessToken;
|
|
95
|
-
const tokenString = await token("bearer", []);
|
|
96
|
-
|
|
97
|
-
if (tokenString) {
|
|
98
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
let urlPath = `/v1/webhook/endpoint`;
|
|
103
|
-
|
|
104
|
-
const response = await this.request({
|
|
105
|
-
path: urlPath,
|
|
106
|
-
method: 'POST',
|
|
107
|
-
headers: headerParameters,
|
|
108
|
-
query: queryParameters,
|
|
109
|
-
body: CreateEndpointInputToJSON(requestParameters['createEndpointInput']),
|
|
110
|
-
}, initOverrides);
|
|
111
|
-
|
|
112
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => EndpointResponseFromJSON(jsonValue));
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* CONTROLLER.ENDPOINT.CREATE.DESCRIPTION
|
|
117
|
-
* CONTROLLER.ENDPOINT.CREATE.SUMMARY
|
|
118
|
-
*/
|
|
119
|
-
async createEndpoint(requestParameters: CreateEndpointRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EndpointResponse> {
|
|
120
|
-
const response = await this.createEndpointRaw(requestParameters, initOverrides);
|
|
121
|
-
return await response.value();
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* CONTROLLER.ENDPOINT.DELETE.DESCRIPTION
|
|
126
|
-
* CONTROLLER.ENDPOINT.DELETE.SUMMARY
|
|
127
|
-
*/
|
|
128
|
-
async deleteEndpointRaw(requestParameters: DeleteEndpointRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EndpointOperationResponse>> {
|
|
129
|
-
if (requestParameters['id'] == null) {
|
|
130
|
-
throw new runtime.RequiredError(
|
|
131
|
-
'id',
|
|
132
|
-
'Required parameter "id" was null or undefined when calling deleteEndpoint().'
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
const queryParameters: any = {};
|
|
137
|
-
|
|
138
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
139
|
-
|
|
140
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
141
|
-
const token = this.configuration.accessToken;
|
|
142
|
-
const tokenString = await token("bearer", []);
|
|
143
|
-
|
|
144
|
-
if (tokenString) {
|
|
145
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
let urlPath = `/v1/webhook/endpoint/{id}`;
|
|
150
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
151
|
-
|
|
152
|
-
const response = await this.request({
|
|
153
|
-
path: urlPath,
|
|
154
|
-
method: 'DELETE',
|
|
155
|
-
headers: headerParameters,
|
|
156
|
-
query: queryParameters,
|
|
157
|
-
}, initOverrides);
|
|
158
|
-
|
|
159
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => EndpointOperationResponseFromJSON(jsonValue));
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* CONTROLLER.ENDPOINT.DELETE.DESCRIPTION
|
|
164
|
-
* CONTROLLER.ENDPOINT.DELETE.SUMMARY
|
|
165
|
-
*/
|
|
166
|
-
async deleteEndpoint(requestParameters: DeleteEndpointRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EndpointOperationResponse> {
|
|
167
|
-
const response = await this.deleteEndpointRaw(requestParameters, initOverrides);
|
|
168
|
-
return await response.value();
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* CONTROLLER.ENDPOINT.GET.DESCRIPTION
|
|
173
|
-
* CONTROLLER.ENDPOINT.GET.SUMMARY
|
|
174
|
-
*/
|
|
175
|
-
async getEndpointRaw(requestParameters: GetEndpointRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EndpointResponse>> {
|
|
176
|
-
if (requestParameters['id'] == null) {
|
|
177
|
-
throw new runtime.RequiredError(
|
|
178
|
-
'id',
|
|
179
|
-
'Required parameter "id" was null or undefined when calling getEndpoint().'
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
const queryParameters: any = {};
|
|
184
|
-
|
|
185
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
186
|
-
|
|
187
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
188
|
-
const token = this.configuration.accessToken;
|
|
189
|
-
const tokenString = await token("bearer", []);
|
|
190
|
-
|
|
191
|
-
if (tokenString) {
|
|
192
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
let urlPath = `/v1/webhook/endpoint/{id}`;
|
|
197
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
198
|
-
|
|
199
|
-
const response = await this.request({
|
|
200
|
-
path: urlPath,
|
|
201
|
-
method: 'GET',
|
|
202
|
-
headers: headerParameters,
|
|
203
|
-
query: queryParameters,
|
|
204
|
-
}, initOverrides);
|
|
205
|
-
|
|
206
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => EndpointResponseFromJSON(jsonValue));
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* CONTROLLER.ENDPOINT.GET.DESCRIPTION
|
|
211
|
-
* CONTROLLER.ENDPOINT.GET.SUMMARY
|
|
212
|
-
*/
|
|
213
|
-
async getEndpoint(requestParameters: GetEndpointRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EndpointResponse> {
|
|
214
|
-
const response = await this.getEndpointRaw(requestParameters, initOverrides);
|
|
215
|
-
return await response.value();
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* CONTROLLER.ENDPOINT.GET.SECRET.DESCRIPTION
|
|
220
|
-
* CONTROLLER.ENDPOINT.GET.SECRET.SUMMARY
|
|
221
|
-
*/
|
|
222
|
-
async getEndpointSecretRaw(requestParameters: GetEndpointSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EndpointSecretResponse>> {
|
|
223
|
-
if (requestParameters['id'] == null) {
|
|
224
|
-
throw new runtime.RequiredError(
|
|
225
|
-
'id',
|
|
226
|
-
'Required parameter "id" was null or undefined when calling getEndpointSecret().'
|
|
227
|
-
);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
const queryParameters: any = {};
|
|
231
|
-
|
|
232
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
233
|
-
|
|
234
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
235
|
-
const token = this.configuration.accessToken;
|
|
236
|
-
const tokenString = await token("bearer", []);
|
|
237
|
-
|
|
238
|
-
if (tokenString) {
|
|
239
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
let urlPath = `/v1/webhook/endpoint/{id}/secret`;
|
|
244
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
245
|
-
|
|
246
|
-
const response = await this.request({
|
|
247
|
-
path: urlPath,
|
|
248
|
-
method: 'GET',
|
|
249
|
-
headers: headerParameters,
|
|
250
|
-
query: queryParameters,
|
|
251
|
-
}, initOverrides);
|
|
252
|
-
|
|
253
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => EndpointSecretResponseFromJSON(jsonValue));
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* CONTROLLER.ENDPOINT.GET.SECRET.DESCRIPTION
|
|
258
|
-
* CONTROLLER.ENDPOINT.GET.SECRET.SUMMARY
|
|
259
|
-
*/
|
|
260
|
-
async getEndpointSecret(requestParameters: GetEndpointSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EndpointSecretResponse> {
|
|
261
|
-
const response = await this.getEndpointSecretRaw(requestParameters, initOverrides);
|
|
262
|
-
return await response.value();
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* CONTROLLER.ENDPOINT.LIST.DESCRIPTION
|
|
267
|
-
* CONTROLLER.ENDPOINT.LIST.SUMMARY
|
|
268
|
-
*/
|
|
269
|
-
async listEndpointsRaw(requestParameters: ListEndpointsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EndpointListResponse>> {
|
|
270
|
-
const queryParameters: any = {};
|
|
271
|
-
|
|
272
|
-
if (requestParameters['limit'] != null) {
|
|
273
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
if (requestParameters['iterator'] != null) {
|
|
277
|
-
queryParameters['iterator'] = requestParameters['iterator'];
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
if (requestParameters['order'] != null) {
|
|
281
|
-
queryParameters['order'] = requestParameters['order'];
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
285
|
-
|
|
286
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
287
|
-
const token = this.configuration.accessToken;
|
|
288
|
-
const tokenString = await token("bearer", []);
|
|
289
|
-
|
|
290
|
-
if (tokenString) {
|
|
291
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
let urlPath = `/v1/webhook/endpoint`;
|
|
296
|
-
|
|
297
|
-
const response = await this.request({
|
|
298
|
-
path: urlPath,
|
|
299
|
-
method: 'GET',
|
|
300
|
-
headers: headerParameters,
|
|
301
|
-
query: queryParameters,
|
|
302
|
-
}, initOverrides);
|
|
303
|
-
|
|
304
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => EndpointListResponseFromJSON(jsonValue));
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* CONTROLLER.ENDPOINT.LIST.DESCRIPTION
|
|
309
|
-
* CONTROLLER.ENDPOINT.LIST.SUMMARY
|
|
310
|
-
*/
|
|
311
|
-
async listEndpoints(requestParameters: ListEndpointsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EndpointListResponse> {
|
|
312
|
-
const response = await this.listEndpointsRaw(requestParameters, initOverrides);
|
|
313
|
-
return await response.value();
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* CONTROLLER.ENDPOINT.ROTATE.DESCRIPTION
|
|
318
|
-
* CONTROLLER.ENDPOINT.ROTATE.SUMMARY
|
|
319
|
-
*/
|
|
320
|
-
async rotateEndpointSecretRaw(requestParameters: RotateEndpointSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EndpointOperationResponse>> {
|
|
321
|
-
if (requestParameters['id'] == null) {
|
|
322
|
-
throw new runtime.RequiredError(
|
|
323
|
-
'id',
|
|
324
|
-
'Required parameter "id" was null or undefined when calling rotateEndpointSecret().'
|
|
325
|
-
);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
const queryParameters: any = {};
|
|
329
|
-
|
|
330
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
331
|
-
|
|
332
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
333
|
-
const token = this.configuration.accessToken;
|
|
334
|
-
const tokenString = await token("bearer", []);
|
|
335
|
-
|
|
336
|
-
if (tokenString) {
|
|
337
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
let urlPath = `/v1/webhook/endpoint/{id}/secret/rotate`;
|
|
342
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
343
|
-
|
|
344
|
-
const response = await this.request({
|
|
345
|
-
path: urlPath,
|
|
346
|
-
method: 'POST',
|
|
347
|
-
headers: headerParameters,
|
|
348
|
-
query: queryParameters,
|
|
349
|
-
}, initOverrides);
|
|
350
|
-
|
|
351
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => EndpointOperationResponseFromJSON(jsonValue));
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* CONTROLLER.ENDPOINT.ROTATE.DESCRIPTION
|
|
356
|
-
* CONTROLLER.ENDPOINT.ROTATE.SUMMARY
|
|
357
|
-
*/
|
|
358
|
-
async rotateEndpointSecret(requestParameters: RotateEndpointSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EndpointOperationResponse> {
|
|
359
|
-
const response = await this.rotateEndpointSecretRaw(requestParameters, initOverrides);
|
|
360
|
-
return await response.value();
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* CONTROLLER.ENDPOINT.UPDATE.DESCRIPTION
|
|
365
|
-
* CONTROLLER.ENDPOINT.UPDATE.SUMMARY
|
|
366
|
-
*/
|
|
367
|
-
async updateEndpointRaw(requestParameters: UpdateEndpointRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EndpointResponse>> {
|
|
368
|
-
if (requestParameters['updateEndpointInput'] == null) {
|
|
369
|
-
throw new runtime.RequiredError(
|
|
370
|
-
'updateEndpointInput',
|
|
371
|
-
'Required parameter "updateEndpointInput" was null or undefined when calling updateEndpoint().'
|
|
372
|
-
);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
const queryParameters: any = {};
|
|
376
|
-
|
|
377
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
378
|
-
|
|
379
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
380
|
-
|
|
381
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
382
|
-
const token = this.configuration.accessToken;
|
|
383
|
-
const tokenString = await token("bearer", []);
|
|
384
|
-
|
|
385
|
-
if (tokenString) {
|
|
386
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
let urlPath = `/v1/webhook/endpoint/{id}`;
|
|
391
|
-
|
|
392
|
-
const response = await this.request({
|
|
393
|
-
path: urlPath,
|
|
394
|
-
method: 'PATCH',
|
|
395
|
-
headers: headerParameters,
|
|
396
|
-
query: queryParameters,
|
|
397
|
-
body: UpdateEndpointInputToJSON(requestParameters['updateEndpointInput']),
|
|
398
|
-
}, initOverrides);
|
|
399
|
-
|
|
400
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => EndpointResponseFromJSON(jsonValue));
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* CONTROLLER.ENDPOINT.UPDATE.DESCRIPTION
|
|
405
|
-
* CONTROLLER.ENDPOINT.UPDATE.SUMMARY
|
|
406
|
-
*/
|
|
407
|
-
async updateEndpoint(requestParameters: UpdateEndpointRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EndpointResponse> {
|
|
408
|
-
const response = await this.updateEndpointRaw(requestParameters, initOverrides);
|
|
409
|
-
return await response.value();
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* @export
|
|
416
|
-
*/
|
|
417
|
-
export const ListEndpointsOrderEnum = {
|
|
418
|
-
Ascending: 'ascending',
|
|
419
|
-
Descending: 'descending'
|
|
420
|
-
} as const;
|
|
421
|
-
export type ListEndpointsOrderEnum = typeof ListEndpointsOrderEnum[keyof typeof ListEndpointsOrderEnum];
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dex Aggregator API
|
|
5
|
-
* Dex Aggregator API ⚡️
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: ai@sx.ai
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
import * as runtime from '../runtime';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
export class IpfsApi extends runtime.BaseAPI {
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* CONTROLLER.IPFS.PRESIGN.DESCRIPTION
|
|
25
|
-
* CONTROLLER.IPFS.PRESIGN.SUMMARY
|
|
26
|
-
*/
|
|
27
|
-
async presignRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
28
|
-
const queryParameters: any = {};
|
|
29
|
-
|
|
30
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
31
|
-
|
|
32
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
33
|
-
const token = this.configuration.accessToken;
|
|
34
|
-
const tokenString = await token("bearer", []);
|
|
35
|
-
|
|
36
|
-
if (tokenString) {
|
|
37
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
let urlPath = `/v1/ipfs/presign`;
|
|
42
|
-
|
|
43
|
-
const response = await this.request({
|
|
44
|
-
path: urlPath,
|
|
45
|
-
method: 'POST',
|
|
46
|
-
headers: headerParameters,
|
|
47
|
-
query: queryParameters,
|
|
48
|
-
}, initOverrides);
|
|
49
|
-
|
|
50
|
-
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
51
|
-
return new runtime.JSONApiResponse<string>(response);
|
|
52
|
-
} else {
|
|
53
|
-
return new runtime.TextApiResponse(response) as any;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* CONTROLLER.IPFS.PRESIGN.DESCRIPTION
|
|
59
|
-
* CONTROLLER.IPFS.PRESIGN.SUMMARY
|
|
60
|
-
*/
|
|
61
|
-
async presign(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
62
|
-
const response = await this.presignRaw(initOverrides);
|
|
63
|
-
return await response.value();
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dex Aggregator API
|
|
5
|
-
* Dex Aggregator API ⚡️
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: ai@sx.ai
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
JobDTO,
|
|
19
|
-
JobStreamingDTO,
|
|
20
|
-
} from '../models/index';
|
|
21
|
-
import {
|
|
22
|
-
JobDTOFromJSON,
|
|
23
|
-
JobDTOToJSON,
|
|
24
|
-
JobStreamingDTOFromJSON,
|
|
25
|
-
JobStreamingDTOToJSON,
|
|
26
|
-
} from '../models/index';
|
|
27
|
-
|
|
28
|
-
export interface GetRequest {
|
|
29
|
-
id: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface StreamingRequest {
|
|
33
|
-
id: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
export class JobsApi extends runtime.BaseAPI {
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* CONTROLLER.JOB.GET.DESCRIPTION
|
|
43
|
-
* CONTROLLER.JOB.GET.SUMMARY
|
|
44
|
-
*/
|
|
45
|
-
async getRaw(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDTO>> {
|
|
46
|
-
if (requestParameters['id'] == null) {
|
|
47
|
-
throw new runtime.RequiredError(
|
|
48
|
-
'id',
|
|
49
|
-
'Required parameter "id" was null or undefined when calling get().'
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const queryParameters: any = {};
|
|
54
|
-
|
|
55
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
56
|
-
|
|
57
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
58
|
-
const token = this.configuration.accessToken;
|
|
59
|
-
const tokenString = await token("bearer", []);
|
|
60
|
-
|
|
61
|
-
if (tokenString) {
|
|
62
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
let urlPath = `/jobs/{id}`;
|
|
67
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
68
|
-
|
|
69
|
-
const response = await this.request({
|
|
70
|
-
path: urlPath,
|
|
71
|
-
method: 'GET',
|
|
72
|
-
headers: headerParameters,
|
|
73
|
-
query: queryParameters,
|
|
74
|
-
}, initOverrides);
|
|
75
|
-
|
|
76
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => JobDTOFromJSON(jsonValue));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* CONTROLLER.JOB.GET.DESCRIPTION
|
|
81
|
-
* CONTROLLER.JOB.GET.SUMMARY
|
|
82
|
-
*/
|
|
83
|
-
async get(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDTO> {
|
|
84
|
-
const response = await this.getRaw(requestParameters, initOverrides);
|
|
85
|
-
return await response.value();
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* CONTROLLER.JOB.STREAMING.DESCRIPTION
|
|
90
|
-
* CONTROLLER.JOB.STREAMING.SUMMARY
|
|
91
|
-
*/
|
|
92
|
-
async streamingRaw(requestParameters: StreamingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobStreamingDTO>> {
|
|
93
|
-
if (requestParameters['id'] == null) {
|
|
94
|
-
throw new runtime.RequiredError(
|
|
95
|
-
'id',
|
|
96
|
-
'Required parameter "id" was null or undefined when calling streaming().'
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
const queryParameters: any = {};
|
|
101
|
-
|
|
102
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
103
|
-
|
|
104
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
105
|
-
const token = this.configuration.accessToken;
|
|
106
|
-
const tokenString = await token("bearer", []);
|
|
107
|
-
|
|
108
|
-
if (tokenString) {
|
|
109
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
let urlPath = `/jobs/{id}/streaming`;
|
|
114
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
115
|
-
|
|
116
|
-
const response = await this.request({
|
|
117
|
-
path: urlPath,
|
|
118
|
-
method: 'GET',
|
|
119
|
-
headers: headerParameters,
|
|
120
|
-
query: queryParameters,
|
|
121
|
-
}, initOverrides);
|
|
122
|
-
|
|
123
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => JobStreamingDTOFromJSON(jsonValue));
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* CONTROLLER.JOB.STREAMING.DESCRIPTION
|
|
128
|
-
* CONTROLLER.JOB.STREAMING.SUMMARY
|
|
129
|
-
*/
|
|
130
|
-
async streaming(requestParameters: StreamingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobStreamingDTO> {
|
|
131
|
-
const response = await this.streamingRaw(requestParameters, initOverrides);
|
|
132
|
-
return await response.value();
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
}
|