kleisterjs 1.0.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/.codacy.yml +6 -0
- package/.editorconfig +24 -0
- package/.github/issue_template.md +9 -0
- package/.github/pull_request_template.md +8 -0
- package/.github/renovate.json +6 -0
- package/.github/semantic.yml +23 -0
- package/.github/settings.yml +44 -0
- package/.github/workflows/automerge.yml +49 -0
- package/.github/workflows/flake.yml +56 -0
- package/.github/workflows/general.yml +39 -0
- package/.github/workflows/openapi.yml +74 -0
- package/.github/workflows/release.yml +56 -0
- package/.openapi-generator/FILES +94 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +3 -0
- package/.releaserc +195 -0
- package/CHANGELOG.md +17 -0
- package/CONTRIBUTING.md +121 -0
- package/DCO +34 -0
- package/LICENSE +202 -0
- package/README.md +88 -0
- package/api/auth-api.ts +743 -0
- package/api/fabric-api.ts +943 -0
- package/api/forge-api.ts +942 -0
- package/api/minecraft-api.ts +949 -0
- package/api/mod-api.ts +4028 -0
- package/api/neoforge-api.ts +945 -0
- package/api/pack-api.ts +4007 -0
- package/api/profile-api.ts +431 -0
- package/api/quilt-api.ts +942 -0
- package/api/team-api.ts +3216 -0
- package/api/user-api.ts +3210 -0
- package/api.ts +25 -0
- package/base.ts +91 -0
- package/common.ts +203 -0
- package/configuration.ts +132 -0
- package/flake.lock +472 -0
- package/flake.nix +59 -0
- package/hack/generate-client.sh +36 -0
- package/hack/openapi/templates/README.mustache +93 -0
- package/hack/openapi/templates/gitignore +6 -0
- package/index.ts +17 -0
- package/model/auth-login.ts +33 -0
- package/model/auth-token.ts +33 -0
- package/model/auth-verify.ts +33 -0
- package/model/build-version-params.ts +33 -0
- package/model/build-version.ts +64 -0
- package/model/build-versions.ts +55 -0
- package/model/build.ts +169 -0
- package/model/builds.ts +46 -0
- package/model/fabric-build-params.ts +33 -0
- package/model/fabric-builds.ts +46 -0
- package/model/fabric.ts +45 -0
- package/model/fabrics.ts +37 -0
- package/model/forge-build-params.ts +33 -0
- package/model/forge-builds.ts +46 -0
- package/model/forge.ts +51 -0
- package/model/forges.ts +37 -0
- package/model/index.ts +73 -0
- package/model/minecraft-build-params.ts +33 -0
- package/model/minecraft-builds.ts +46 -0
- package/model/minecraft.ts +51 -0
- package/model/minecrafts.ts +37 -0
- package/model/mod-team-params.ts +42 -0
- package/model/mod-teams.ts +46 -0
- package/model/mod-user-params.ts +42 -0
- package/model/mod-users.ts +46 -0
- package/model/mod.ts +123 -0
- package/model/mods.ts +37 -0
- package/model/neoforge-build-params.ts +33 -0
- package/model/neoforge-builds.ts +46 -0
- package/model/neoforge.ts +51 -0
- package/model/neoforges.ts +37 -0
- package/model/notification.ts +43 -0
- package/model/pack-back.ts +91 -0
- package/model/pack-icon.ts +91 -0
- package/model/pack-logo.ts +91 -0
- package/model/pack-team-params.ts +42 -0
- package/model/pack-teams.ts +46 -0
- package/model/pack-user-params.ts +42 -0
- package/model/pack-users.ts +46 -0
- package/model/pack.ts +142 -0
- package/model/packs.ts +37 -0
- package/model/profile.ts +118 -0
- package/model/quilt-build-params.ts +33 -0
- package/model/quilt-builds.ts +46 -0
- package/model/quilt.ts +45 -0
- package/model/quilts.ts +37 -0
- package/model/team-mod-params.ts +42 -0
- package/model/team-mod.ts +79 -0
- package/model/team-mods.ts +46 -0
- package/model/team-pack-params.ts +42 -0
- package/model/team-pack.ts +79 -0
- package/model/team-packs.ts +46 -0
- package/model/team-user-params.ts +42 -0
- package/model/team-users.ts +46 -0
- package/model/team.ts +79 -0
- package/model/teams.ts +37 -0
- package/model/user-auth.ts +45 -0
- package/model/user-mod-params.ts +42 -0
- package/model/user-mod.ts +79 -0
- package/model/user-mods.ts +46 -0
- package/model/user-pack-params.ts +42 -0
- package/model/user-pack.ts +79 -0
- package/model/user-packs.ts +46 -0
- package/model/user-team-params.ts +42 -0
- package/model/user-team.ts +79 -0
- package/model/user-teams.ts +46 -0
- package/model/user.ts +118 -0
- package/model/users.ts +37 -0
- package/model/validation.ts +33 -0
- package/model/version-build-params.ts +33 -0
- package/model/version-builds.ts +55 -0
- package/model/version-file.ts +91 -0
- package/model/version.ts +91 -0
- package/model/versions.ts +46 -0
- package/openapi.yml +12 -0
- package/openapitools.json +7 -0
- package/package.json +41 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Kleister OpenAPI
|
|
5
|
+
* API definition for Kleister, manage mod packs for Minecraft
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0-alpha1
|
|
8
|
+
* Contact: kleister@webhippie.de
|
|
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
|
+
import type { Configuration } from "../configuration";
|
|
16
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from "axios";
|
|
17
|
+
import globalAxios from "axios";
|
|
18
|
+
// URLSearchParams not necessarily used
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { URL, URLSearchParams } from "url";
|
|
21
|
+
// Some imports not used depending on template conditions
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import {
|
|
24
|
+
DUMMY_BASE_URL,
|
|
25
|
+
assertParamExists,
|
|
26
|
+
setApiKeyToObject,
|
|
27
|
+
setBasicAuthToObject,
|
|
28
|
+
setBearerAuthToObject,
|
|
29
|
+
setOAuthToObject,
|
|
30
|
+
setSearchParams,
|
|
31
|
+
serializeDataIfNeeded,
|
|
32
|
+
toPathString,
|
|
33
|
+
createRequestFunction,
|
|
34
|
+
} from "../common";
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import {
|
|
37
|
+
BASE_PATH,
|
|
38
|
+
COLLECTION_FORMATS,
|
|
39
|
+
type RequestArgs,
|
|
40
|
+
BaseAPI,
|
|
41
|
+
RequiredError,
|
|
42
|
+
operationServerMap,
|
|
43
|
+
} from "../base";
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
import type { AuthToken } from "../model";
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
import type { Notification } from "../model";
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
import type { Profile } from "../model";
|
|
50
|
+
/**
|
|
51
|
+
* ProfileApi - axios parameter creator
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export const ProfileApiAxiosParamCreator = function (
|
|
55
|
+
configuration?: Configuration,
|
|
56
|
+
) {
|
|
57
|
+
return {
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @summary Fetch profile details of the personal account
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
showProfile: async (
|
|
65
|
+
options: RawAxiosRequestConfig = {},
|
|
66
|
+
): Promise<RequestArgs> => {
|
|
67
|
+
const localVarPath = `/profile/self`;
|
|
68
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
69
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
70
|
+
let baseOptions;
|
|
71
|
+
if (configuration) {
|
|
72
|
+
baseOptions = configuration.baseOptions;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const localVarRequestOptions = {
|
|
76
|
+
method: "GET",
|
|
77
|
+
...baseOptions,
|
|
78
|
+
...options,
|
|
79
|
+
};
|
|
80
|
+
const localVarHeaderParameter = {} as any;
|
|
81
|
+
const localVarQueryParameter = {} as any;
|
|
82
|
+
|
|
83
|
+
// authentication Cookie required
|
|
84
|
+
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
85
|
+
|
|
86
|
+
// authentication Basic required
|
|
87
|
+
// http basic authentication required
|
|
88
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
89
|
+
|
|
90
|
+
// authentication Header required
|
|
91
|
+
await setApiKeyToObject(
|
|
92
|
+
localVarHeaderParameter,
|
|
93
|
+
"X-API-Key",
|
|
94
|
+
configuration,
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
// authentication Bearer required
|
|
98
|
+
// http bearer authentication required
|
|
99
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
100
|
+
|
|
101
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
102
|
+
let headersFromBaseOptions =
|
|
103
|
+
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
104
|
+
localVarRequestOptions.headers = {
|
|
105
|
+
...localVarHeaderParameter,
|
|
106
|
+
...headersFromBaseOptions,
|
|
107
|
+
...options.headers,
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
url: toPathString(localVarUrlObj),
|
|
112
|
+
options: localVarRequestOptions,
|
|
113
|
+
};
|
|
114
|
+
},
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @summary Retrieve an unlimited auth token
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
tokenProfile: async (
|
|
122
|
+
options: RawAxiosRequestConfig = {},
|
|
123
|
+
): Promise<RequestArgs> => {
|
|
124
|
+
const localVarPath = `/profile/token`;
|
|
125
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
126
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
127
|
+
let baseOptions;
|
|
128
|
+
if (configuration) {
|
|
129
|
+
baseOptions = configuration.baseOptions;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
const localVarRequestOptions = {
|
|
133
|
+
method: "GET",
|
|
134
|
+
...baseOptions,
|
|
135
|
+
...options,
|
|
136
|
+
};
|
|
137
|
+
const localVarHeaderParameter = {} as any;
|
|
138
|
+
const localVarQueryParameter = {} as any;
|
|
139
|
+
|
|
140
|
+
// authentication Cookie required
|
|
141
|
+
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
142
|
+
|
|
143
|
+
// authentication Basic required
|
|
144
|
+
// http basic authentication required
|
|
145
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
146
|
+
|
|
147
|
+
// authentication Header required
|
|
148
|
+
await setApiKeyToObject(
|
|
149
|
+
localVarHeaderParameter,
|
|
150
|
+
"X-API-Key",
|
|
151
|
+
configuration,
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
// authentication Bearer required
|
|
155
|
+
// http bearer authentication required
|
|
156
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
157
|
+
|
|
158
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
159
|
+
let headersFromBaseOptions =
|
|
160
|
+
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
161
|
+
localVarRequestOptions.headers = {
|
|
162
|
+
...localVarHeaderParameter,
|
|
163
|
+
...headersFromBaseOptions,
|
|
164
|
+
...options.headers,
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
return {
|
|
168
|
+
url: toPathString(localVarUrlObj),
|
|
169
|
+
options: localVarRequestOptions,
|
|
170
|
+
};
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @summary Update your own profile information
|
|
175
|
+
* @param {Profile} profile The profile data to update
|
|
176
|
+
* @param {*} [options] Override http request option.
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
*/
|
|
179
|
+
updateProfile: async (
|
|
180
|
+
profile: Profile,
|
|
181
|
+
options: RawAxiosRequestConfig = {},
|
|
182
|
+
): Promise<RequestArgs> => {
|
|
183
|
+
// verify required parameter 'profile' is not null or undefined
|
|
184
|
+
assertParamExists("updateProfile", "profile", profile);
|
|
185
|
+
const localVarPath = `/profile/self`;
|
|
186
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
187
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
188
|
+
let baseOptions;
|
|
189
|
+
if (configuration) {
|
|
190
|
+
baseOptions = configuration.baseOptions;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
const localVarRequestOptions = {
|
|
194
|
+
method: "PUT",
|
|
195
|
+
...baseOptions,
|
|
196
|
+
...options,
|
|
197
|
+
};
|
|
198
|
+
const localVarHeaderParameter = {} as any;
|
|
199
|
+
const localVarQueryParameter = {} as any;
|
|
200
|
+
|
|
201
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
202
|
+
|
|
203
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
204
|
+
let headersFromBaseOptions =
|
|
205
|
+
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
206
|
+
localVarRequestOptions.headers = {
|
|
207
|
+
...localVarHeaderParameter,
|
|
208
|
+
...headersFromBaseOptions,
|
|
209
|
+
...options.headers,
|
|
210
|
+
};
|
|
211
|
+
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
212
|
+
profile,
|
|
213
|
+
localVarRequestOptions,
|
|
214
|
+
configuration,
|
|
215
|
+
);
|
|
216
|
+
|
|
217
|
+
return {
|
|
218
|
+
url: toPathString(localVarUrlObj),
|
|
219
|
+
options: localVarRequestOptions,
|
|
220
|
+
};
|
|
221
|
+
},
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* ProfileApi - functional programming interface
|
|
227
|
+
* @export
|
|
228
|
+
*/
|
|
229
|
+
export const ProfileApiFp = function (configuration?: Configuration) {
|
|
230
|
+
const localVarAxiosParamCreator = ProfileApiAxiosParamCreator(configuration);
|
|
231
|
+
return {
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @summary Fetch profile details of the personal account
|
|
235
|
+
* @param {*} [options] Override http request option.
|
|
236
|
+
* @throws {RequiredError}
|
|
237
|
+
*/
|
|
238
|
+
async showProfile(
|
|
239
|
+
options?: RawAxiosRequestConfig,
|
|
240
|
+
): Promise<
|
|
241
|
+
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Profile>
|
|
242
|
+
> {
|
|
243
|
+
const localVarAxiosArgs =
|
|
244
|
+
await localVarAxiosParamCreator.showProfile(options);
|
|
245
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
246
|
+
const localVarOperationServerBasePath =
|
|
247
|
+
operationServerMap["ProfileApi.showProfile"]?.[
|
|
248
|
+
localVarOperationServerIndex
|
|
249
|
+
]?.url;
|
|
250
|
+
return (axios, basePath) =>
|
|
251
|
+
createRequestFunction(
|
|
252
|
+
localVarAxiosArgs,
|
|
253
|
+
globalAxios,
|
|
254
|
+
BASE_PATH,
|
|
255
|
+
configuration,
|
|
256
|
+
)(axios, localVarOperationServerBasePath || basePath);
|
|
257
|
+
},
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @summary Retrieve an unlimited auth token
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
*/
|
|
264
|
+
async tokenProfile(
|
|
265
|
+
options?: RawAxiosRequestConfig,
|
|
266
|
+
): Promise<
|
|
267
|
+
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthToken>
|
|
268
|
+
> {
|
|
269
|
+
const localVarAxiosArgs =
|
|
270
|
+
await localVarAxiosParamCreator.tokenProfile(options);
|
|
271
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
272
|
+
const localVarOperationServerBasePath =
|
|
273
|
+
operationServerMap["ProfileApi.tokenProfile"]?.[
|
|
274
|
+
localVarOperationServerIndex
|
|
275
|
+
]?.url;
|
|
276
|
+
return (axios, basePath) =>
|
|
277
|
+
createRequestFunction(
|
|
278
|
+
localVarAxiosArgs,
|
|
279
|
+
globalAxios,
|
|
280
|
+
BASE_PATH,
|
|
281
|
+
configuration,
|
|
282
|
+
)(axios, localVarOperationServerBasePath || basePath);
|
|
283
|
+
},
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @summary Update your own profile information
|
|
287
|
+
* @param {Profile} profile The profile data to update
|
|
288
|
+
* @param {*} [options] Override http request option.
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
*/
|
|
291
|
+
async updateProfile(
|
|
292
|
+
profile: Profile,
|
|
293
|
+
options?: RawAxiosRequestConfig,
|
|
294
|
+
): Promise<
|
|
295
|
+
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Profile>
|
|
296
|
+
> {
|
|
297
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateProfile(
|
|
298
|
+
profile,
|
|
299
|
+
options,
|
|
300
|
+
);
|
|
301
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
302
|
+
const localVarOperationServerBasePath =
|
|
303
|
+
operationServerMap["ProfileApi.updateProfile"]?.[
|
|
304
|
+
localVarOperationServerIndex
|
|
305
|
+
]?.url;
|
|
306
|
+
return (axios, basePath) =>
|
|
307
|
+
createRequestFunction(
|
|
308
|
+
localVarAxiosArgs,
|
|
309
|
+
globalAxios,
|
|
310
|
+
BASE_PATH,
|
|
311
|
+
configuration,
|
|
312
|
+
)(axios, localVarOperationServerBasePath || basePath);
|
|
313
|
+
},
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* ProfileApi - factory interface
|
|
319
|
+
* @export
|
|
320
|
+
*/
|
|
321
|
+
export const ProfileApiFactory = function (
|
|
322
|
+
configuration?: Configuration,
|
|
323
|
+
basePath?: string,
|
|
324
|
+
axios?: AxiosInstance,
|
|
325
|
+
) {
|
|
326
|
+
const localVarFp = ProfileApiFp(configuration);
|
|
327
|
+
return {
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
* @summary Fetch profile details of the personal account
|
|
331
|
+
* @param {*} [options] Override http request option.
|
|
332
|
+
* @throws {RequiredError}
|
|
333
|
+
*/
|
|
334
|
+
showProfile(options?: RawAxiosRequestConfig): AxiosPromise<Profile> {
|
|
335
|
+
return localVarFp
|
|
336
|
+
.showProfile(options)
|
|
337
|
+
.then((request) => request(axios, basePath));
|
|
338
|
+
},
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* @summary Retrieve an unlimited auth token
|
|
342
|
+
* @param {*} [options] Override http request option.
|
|
343
|
+
* @throws {RequiredError}
|
|
344
|
+
*/
|
|
345
|
+
tokenProfile(options?: RawAxiosRequestConfig): AxiosPromise<AuthToken> {
|
|
346
|
+
return localVarFp
|
|
347
|
+
.tokenProfile(options)
|
|
348
|
+
.then((request) => request(axios, basePath));
|
|
349
|
+
},
|
|
350
|
+
/**
|
|
351
|
+
*
|
|
352
|
+
* @summary Update your own profile information
|
|
353
|
+
* @param {ProfileApiUpdateProfileRequest} requestParameters Request parameters.
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
*/
|
|
357
|
+
updateProfile(
|
|
358
|
+
requestParameters: ProfileApiUpdateProfileRequest,
|
|
359
|
+
options?: RawAxiosRequestConfig,
|
|
360
|
+
): AxiosPromise<Profile> {
|
|
361
|
+
return localVarFp
|
|
362
|
+
.updateProfile(requestParameters.profile, options)
|
|
363
|
+
.then((request) => request(axios, basePath));
|
|
364
|
+
},
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Request parameters for updateProfile operation in ProfileApi.
|
|
370
|
+
* @export
|
|
371
|
+
* @interface ProfileApiUpdateProfileRequest
|
|
372
|
+
*/
|
|
373
|
+
export interface ProfileApiUpdateProfileRequest {
|
|
374
|
+
/**
|
|
375
|
+
* The profile data to update
|
|
376
|
+
* @type {Profile}
|
|
377
|
+
* @memberof ProfileApiUpdateProfile
|
|
378
|
+
*/
|
|
379
|
+
readonly profile: Profile;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* ProfileApi - object-oriented interface
|
|
384
|
+
* @export
|
|
385
|
+
* @class ProfileApi
|
|
386
|
+
* @extends {BaseAPI}
|
|
387
|
+
*/
|
|
388
|
+
export class ProfileApi extends BaseAPI {
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @summary Fetch profile details of the personal account
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
* @memberof ProfileApi
|
|
395
|
+
*/
|
|
396
|
+
public showProfile(options?: RawAxiosRequestConfig) {
|
|
397
|
+
return ProfileApiFp(this.configuration)
|
|
398
|
+
.showProfile(options)
|
|
399
|
+
.then((request) => request(this.axios, this.basePath));
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @summary Retrieve an unlimited auth token
|
|
405
|
+
* @param {*} [options] Override http request option.
|
|
406
|
+
* @throws {RequiredError}
|
|
407
|
+
* @memberof ProfileApi
|
|
408
|
+
*/
|
|
409
|
+
public tokenProfile(options?: RawAxiosRequestConfig) {
|
|
410
|
+
return ProfileApiFp(this.configuration)
|
|
411
|
+
.tokenProfile(options)
|
|
412
|
+
.then((request) => request(this.axios, this.basePath));
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* @summary Update your own profile information
|
|
418
|
+
* @param {ProfileApiUpdateProfileRequest} requestParameters Request parameters.
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
* @memberof ProfileApi
|
|
422
|
+
*/
|
|
423
|
+
public updateProfile(
|
|
424
|
+
requestParameters: ProfileApiUpdateProfileRequest,
|
|
425
|
+
options?: RawAxiosRequestConfig,
|
|
426
|
+
) {
|
|
427
|
+
return ProfileApiFp(this.configuration)
|
|
428
|
+
.updateProfile(requestParameters.profile, options)
|
|
429
|
+
.then((request) => request(this.axios, this.basePath));
|
|
430
|
+
}
|
|
431
|
+
}
|