@galera/api-client 0.2.1 → 0.3.0-alpha.1
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/dist/apis/DefaultApi.d.ts +424 -0
- package/dist/apis/DefaultApi.js +1115 -0
- package/dist/apis/DefaultApi.js.map +1 -0
- package/dist/apis/default-api.d.ts +424 -0
- package/dist/apis/default-api.js +1115 -0
- package/dist/apis/default-api.js.map +1 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/{api.js → apis/index.js} +4 -15
- package/dist/apis/index.js.map +1 -0
- package/dist/index.d.ts +3 -14
- package/dist/index.js +5 -16
- package/dist/index.js.map +1 -1
- package/dist/models/AlbumAddMedia.d.ts +38 -0
- package/dist/models/AlbumAddMedia.js +55 -0
- package/dist/models/AlbumAddMedia.js.map +1 -0
- package/dist/models/AlbumInsertData.d.ts +38 -0
- package/dist/models/AlbumInsertData.js +53 -0
- package/dist/models/AlbumInsertData.js.map +1 -0
- package/dist/models/AlbumResponse.d.ts +62 -0
- package/dist/models/AlbumResponse.js +67 -0
- package/dist/models/AlbumResponse.js.map +1 -0
- package/dist/models/AlbumShareLinkBasic.d.ts +44 -0
- package/dist/models/AlbumShareLinkBasic.js +60 -0
- package/dist/models/AlbumShareLinkBasic.js.map +1 -0
- package/dist/models/AlbumShareLinkInsert.d.ts +38 -0
- package/dist/models/AlbumShareLinkInsert.js +53 -0
- package/dist/models/AlbumShareLinkInsert.js.map +1 -0
- package/dist/models/AlbumUpdateData.d.ts +38 -0
- package/dist/models/AlbumUpdateData.js +51 -0
- package/dist/models/AlbumUpdateData.js.map +1 -0
- package/dist/models/AuthConfig.d.ts +40 -0
- package/dist/models/AuthConfig.js +57 -0
- package/dist/models/AuthConfig.js.map +1 -0
- package/dist/models/AuthPolicyPublic.d.ts +38 -0
- package/dist/models/AuthPolicyPublic.js +57 -0
- package/dist/models/AuthPolicyPublic.js.map +1 -0
- package/dist/models/LoginResponse.d.ts +39 -0
- package/dist/models/LoginResponse.js +56 -0
- package/dist/models/LoginResponse.js.map +1 -0
- package/dist/models/MediaDescription.d.ts +32 -0
- package/dist/models/MediaDescription.js +49 -0
- package/dist/models/MediaDescription.js.map +1 -0
- package/dist/models/MediaResponse.d.ts +68 -0
- package/dist/models/MediaResponse.js +73 -0
- package/dist/models/MediaResponse.js.map +1 -0
- package/dist/models/OidcProviderPublic.d.ts +44 -0
- package/dist/models/OidcProviderPublic.js +59 -0
- package/dist/models/OidcProviderPublic.js.map +1 -0
- package/dist/models/ServerConfigResponse.d.ts +33 -0
- package/dist/models/ServerConfigResponse.js +52 -0
- package/dist/models/ServerConfigResponse.js.map +1 -0
- package/dist/models/SharedAlbumLinkResponse.d.ts +38 -0
- package/dist/models/SharedAlbumLinkResponse.js +55 -0
- package/dist/models/SharedAlbumLinkResponse.js.map +1 -0
- package/dist/models/SystemInfoPublic.d.ts +50 -0
- package/dist/models/SystemInfoPublic.js +64 -0
- package/dist/models/SystemInfoPublic.js.map +1 -0
- package/dist/models/UserInfo.d.ts +38 -0
- package/dist/models/UserInfo.js +55 -0
- package/dist/models/UserInfo.js.map +1 -0
- package/dist/models/UserInsert.d.ts +44 -0
- package/dist/models/UserInsert.js +57 -0
- package/dist/models/UserInsert.js.map +1 -0
- package/dist/models/UserLogin.d.ts +38 -0
- package/dist/models/UserLogin.js +56 -0
- package/dist/models/UserLogin.js.map +1 -0
- package/dist/models/album-add-media.d.ts +23 -0
- package/dist/models/album-add-media.js +39 -0
- package/dist/models/album-add-media.js.map +1 -1
- package/dist/models/album-insert-data.d.ts +23 -0
- package/dist/models/album-insert-data.js +37 -0
- package/dist/models/album-insert-data.js.map +1 -1
- package/dist/models/album-response.d.ts +44 -1
- package/dist/models/album-response.js +51 -0
- package/dist/models/album-response.js.map +1 -1
- package/dist/models/album-share-link-basic.d.ts +28 -0
- package/dist/models/album-share-link-basic.js +44 -0
- package/dist/models/album-share-link-basic.js.map +1 -1
- package/dist/models/album-share-link-insert.d.ts +24 -1
- package/dist/models/album-share-link-insert.js +37 -0
- package/dist/models/album-share-link-insert.js.map +1 -1
- package/dist/models/album-update-data.d.ts +23 -0
- package/dist/models/album-update-data.js +35 -0
- package/dist/models/album-update-data.js.map +1 -1
- package/dist/models/auth-config.d.ts +24 -1
- package/dist/models/auth-config.js +41 -0
- package/dist/models/auth-config.js.map +1 -1
- package/dist/models/auth-policy-public.d.ts +23 -0
- package/dist/models/auth-policy-public.js +41 -0
- package/dist/models/auth-policy-public.js.map +1 -1
- package/dist/models/index.d.ts +18 -18
- package/dist/models/index.js +20 -18
- package/dist/models/index.js.map +1 -1
- package/dist/models/login-response.d.ts +20 -0
- package/dist/models/login-response.js +40 -0
- package/dist/models/login-response.js.map +1 -1
- package/dist/models/media-description.d.ts +18 -0
- package/dist/models/media-description.js +33 -0
- package/dist/models/media-description.js.map +1 -1
- package/dist/models/media-response.d.ts +49 -1
- package/dist/models/media-response.js +57 -0
- package/dist/models/media-response.js.map +1 -1
- package/dist/models/oidc-provider-public.d.ts +28 -0
- package/dist/models/oidc-provider-public.js +43 -0
- package/dist/models/oidc-provider-public.js.map +1 -1
- package/dist/models/server-config-response.d.ts +18 -0
- package/dist/models/server-config-response.js +36 -0
- package/dist/models/server-config-response.js.map +1 -1
- package/dist/models/shared-album-link-response.d.ts +24 -1
- package/dist/models/shared-album-link-response.js +39 -0
- package/dist/models/shared-album-link-response.js.map +1 -1
- package/dist/models/system-info-public.d.ts +33 -0
- package/dist/models/system-info-public.js +48 -0
- package/dist/models/system-info-public.js.map +1 -1
- package/dist/models/user-info.d.ts +20 -0
- package/dist/models/user-info.js +39 -0
- package/dist/models/user-info.js.map +1 -1
- package/dist/models/user-insert.d.ts +28 -0
- package/dist/models/user-insert.js +41 -0
- package/dist/models/user-insert.js.map +1 -1
- package/dist/models/user-login.d.ts +20 -0
- package/dist/models/user-login.js +40 -0
- package/dist/models/user-login.js.map +1 -1
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +371 -0
- package/dist/runtime.js.map +1 -0
- package/package.json +2 -2
- package/dist/api/default-api.d.ts +0 -1080
- package/dist/api/default-api.js +0 -2156
- package/dist/api/default-api.js.map +0 -1
- package/dist/api.d.ts +0 -12
- package/dist/api.js.map +0 -1
- package/dist/base.d.ts +0 -42
- package/dist/base.js +0 -52
- package/dist/base.js.map +0 -1
- package/dist/common.d.ts +0 -34
- package/dist/common.js +0 -130
- package/dist/common.js.map +0 -1
- package/dist/configuration.d.ts +0 -98
- package/dist/configuration.js +0 -101
- package/dist/configuration.js.map +0 -1
package/dist/api/default-api.js
DELETED
|
@@ -1,2156 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* galera
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.0
|
|
9
|
-
* Contact: iTzBoboCz@users.noreply.github.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
-
};
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
|
|
20
|
-
const axios_1 = __importDefault(require("axios"));
|
|
21
|
-
// Some imports not used depending on template conditions
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
const common_1 = require("../common");
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
const base_1 = require("../base");
|
|
26
|
-
/**
|
|
27
|
-
* DefaultApi - axios parameter creator
|
|
28
|
-
*/
|
|
29
|
-
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
30
|
-
return {
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @summary Adds media to an album
|
|
34
|
-
* @param {Array<AlbumAddMedia>} albumAddMedia
|
|
35
|
-
* @param {*} [options] Override http request option.
|
|
36
|
-
* @throws {RequiredError}
|
|
37
|
-
*/
|
|
38
|
-
routesAlbumAddMedia: async (albumAddMedia, options = {}) => {
|
|
39
|
-
// verify required parameter 'albumAddMedia' is not null or undefined
|
|
40
|
-
(0, common_1.assertParamExists)("routesAlbumAddMedia", "albumAddMedia", albumAddMedia);
|
|
41
|
-
const localVarPath = `/album/media`;
|
|
42
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
44
|
-
let baseOptions;
|
|
45
|
-
if (configuration) {
|
|
46
|
-
baseOptions = configuration.baseOptions;
|
|
47
|
-
}
|
|
48
|
-
const localVarRequestOptions = {
|
|
49
|
-
method: "POST",
|
|
50
|
-
...baseOptions,
|
|
51
|
-
...options,
|
|
52
|
-
};
|
|
53
|
-
const localVarHeaderParameter = {};
|
|
54
|
-
const localVarQueryParameter = {};
|
|
55
|
-
// authentication BearerAuth required
|
|
56
|
-
// http bearer authentication required
|
|
57
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
58
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
59
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
60
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
-
localVarRequestOptions.headers = {
|
|
62
|
-
...localVarHeaderParameter,
|
|
63
|
-
...headersFromBaseOptions,
|
|
64
|
-
...options.headers,
|
|
65
|
-
};
|
|
66
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(albumAddMedia, localVarRequestOptions, configuration);
|
|
67
|
-
return {
|
|
68
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
69
|
-
options: localVarRequestOptions,
|
|
70
|
-
};
|
|
71
|
-
},
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @summary Creates a new album
|
|
75
|
-
* @param {AlbumInsertData} albumInsertData
|
|
76
|
-
* @param {*} [options] Override http request option.
|
|
77
|
-
* @throws {RequiredError}
|
|
78
|
-
*/
|
|
79
|
-
routesCreateAlbum: async (albumInsertData, options = {}) => {
|
|
80
|
-
// verify required parameter 'albumInsertData' is not null or undefined
|
|
81
|
-
(0, common_1.assertParamExists)("routesCreateAlbum", "albumInsertData", albumInsertData);
|
|
82
|
-
const localVarPath = `/album`;
|
|
83
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
85
|
-
let baseOptions;
|
|
86
|
-
if (configuration) {
|
|
87
|
-
baseOptions = configuration.baseOptions;
|
|
88
|
-
}
|
|
89
|
-
const localVarRequestOptions = {
|
|
90
|
-
method: "POST",
|
|
91
|
-
...baseOptions,
|
|
92
|
-
...options,
|
|
93
|
-
};
|
|
94
|
-
const localVarHeaderParameter = {};
|
|
95
|
-
const localVarQueryParameter = {};
|
|
96
|
-
// authentication BearerAuth required
|
|
97
|
-
// http bearer authentication required
|
|
98
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
99
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
100
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
101
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
102
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
103
|
-
localVarRequestOptions.headers = {
|
|
104
|
-
...localVarHeaderParameter,
|
|
105
|
-
...headersFromBaseOptions,
|
|
106
|
-
...options.headers,
|
|
107
|
-
};
|
|
108
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(albumInsertData, localVarRequestOptions, configuration);
|
|
109
|
-
return {
|
|
110
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
111
|
-
options: localVarRequestOptions,
|
|
112
|
-
};
|
|
113
|
-
},
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @summary Creates a new album share link.
|
|
117
|
-
* @param {string} albumUuid Album UUID
|
|
118
|
-
* @param {AlbumShareLinkInsert} albumShareLinkInsert
|
|
119
|
-
* @param {*} [options] Override http request option.
|
|
120
|
-
* @throws {RequiredError}
|
|
121
|
-
*/
|
|
122
|
-
routesCreateAlbumShareLink: async (albumUuid, albumShareLinkInsert, options = {}) => {
|
|
123
|
-
// verify required parameter 'albumUuid' is not null or undefined
|
|
124
|
-
(0, common_1.assertParamExists)("routesCreateAlbumShareLink", "albumUuid", albumUuid);
|
|
125
|
-
// verify required parameter 'albumShareLinkInsert' is not null or undefined
|
|
126
|
-
(0, common_1.assertParamExists)("routesCreateAlbumShareLink", "albumShareLinkInsert", albumShareLinkInsert);
|
|
127
|
-
const localVarPath = `/album/{album_uuid}/share/link`.replace(`{${"album_uuid"}}`, encodeURIComponent(String(albumUuid)));
|
|
128
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
129
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
130
|
-
let baseOptions;
|
|
131
|
-
if (configuration) {
|
|
132
|
-
baseOptions = configuration.baseOptions;
|
|
133
|
-
}
|
|
134
|
-
const localVarRequestOptions = {
|
|
135
|
-
method: "POST",
|
|
136
|
-
...baseOptions,
|
|
137
|
-
...options,
|
|
138
|
-
};
|
|
139
|
-
const localVarHeaderParameter = {};
|
|
140
|
-
const localVarQueryParameter = {};
|
|
141
|
-
// authentication BearerAuth required
|
|
142
|
-
// http bearer authentication required
|
|
143
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
144
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
145
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
146
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
147
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
148
|
-
localVarRequestOptions.headers = {
|
|
149
|
-
...localVarHeaderParameter,
|
|
150
|
-
...headersFromBaseOptions,
|
|
151
|
-
...options.headers,
|
|
152
|
-
};
|
|
153
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(albumShareLinkInsert, localVarRequestOptions, configuration);
|
|
154
|
-
return {
|
|
155
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
156
|
-
options: localVarRequestOptions,
|
|
157
|
-
};
|
|
158
|
-
},
|
|
159
|
-
/**
|
|
160
|
-
*
|
|
161
|
-
* @summary Creates a new user
|
|
162
|
-
* @param {UserInsert} userInsert
|
|
163
|
-
* @param {*} [options] Override http request option.
|
|
164
|
-
* @throws {RequiredError}
|
|
165
|
-
*/
|
|
166
|
-
routesCreateUser: async (userInsert, options = {}) => {
|
|
167
|
-
// verify required parameter 'userInsert' is not null or undefined
|
|
168
|
-
(0, common_1.assertParamExists)("routesCreateUser", "userInsert", userInsert);
|
|
169
|
-
const localVarPath = `/user`;
|
|
170
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
171
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
172
|
-
let baseOptions;
|
|
173
|
-
if (configuration) {
|
|
174
|
-
baseOptions = configuration.baseOptions;
|
|
175
|
-
}
|
|
176
|
-
const localVarRequestOptions = {
|
|
177
|
-
method: "POST",
|
|
178
|
-
...baseOptions,
|
|
179
|
-
...options,
|
|
180
|
-
};
|
|
181
|
-
const localVarHeaderParameter = {};
|
|
182
|
-
const localVarQueryParameter = {};
|
|
183
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
184
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
185
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
-
localVarRequestOptions.headers = {
|
|
187
|
-
...localVarHeaderParameter,
|
|
188
|
-
...headersFromBaseOptions,
|
|
189
|
-
...options.headers,
|
|
190
|
-
};
|
|
191
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userInsert, localVarRequestOptions, configuration);
|
|
192
|
-
return {
|
|
193
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
194
|
-
options: localVarRequestOptions,
|
|
195
|
-
};
|
|
196
|
-
},
|
|
197
|
-
/**
|
|
198
|
-
*
|
|
199
|
-
* @summary Deletes an album
|
|
200
|
-
* @param {string} albumUuid Album UUID
|
|
201
|
-
* @param {*} [options] Override http request option.
|
|
202
|
-
* @throws {RequiredError}
|
|
203
|
-
*/
|
|
204
|
-
routesDeleteAlbum: async (albumUuid, options = {}) => {
|
|
205
|
-
// verify required parameter 'albumUuid' is not null or undefined
|
|
206
|
-
(0, common_1.assertParamExists)("routesDeleteAlbum", "albumUuid", albumUuid);
|
|
207
|
-
const localVarPath = `/album/{album_uuid}`.replace(`{${"album_uuid"}}`, encodeURIComponent(String(albumUuid)));
|
|
208
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
209
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
210
|
-
let baseOptions;
|
|
211
|
-
if (configuration) {
|
|
212
|
-
baseOptions = configuration.baseOptions;
|
|
213
|
-
}
|
|
214
|
-
const localVarRequestOptions = {
|
|
215
|
-
method: "DELETE",
|
|
216
|
-
...baseOptions,
|
|
217
|
-
...options,
|
|
218
|
-
};
|
|
219
|
-
const localVarHeaderParameter = {};
|
|
220
|
-
const localVarQueryParameter = {};
|
|
221
|
-
// authentication BearerAuth required
|
|
222
|
-
// http bearer authentication required
|
|
223
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
224
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
225
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
226
|
-
localVarRequestOptions.headers = {
|
|
227
|
-
...localVarHeaderParameter,
|
|
228
|
-
...headersFromBaseOptions,
|
|
229
|
-
...options.headers,
|
|
230
|
-
};
|
|
231
|
-
return {
|
|
232
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
233
|
-
options: localVarRequestOptions,
|
|
234
|
-
};
|
|
235
|
-
},
|
|
236
|
-
/**
|
|
237
|
-
*
|
|
238
|
-
* @summary Deletes an album share link.
|
|
239
|
-
* @param {string} albumShareLinkUuid Album Share Link UUID
|
|
240
|
-
* @param {*} [options] Override http request option.
|
|
241
|
-
* @throws {RequiredError}
|
|
242
|
-
*/
|
|
243
|
-
routesDeleteAlbumShareLink: async (albumShareLinkUuid, options = {}) => {
|
|
244
|
-
// verify required parameter 'albumShareLinkUuid' is not null or undefined
|
|
245
|
-
(0, common_1.assertParamExists)("routesDeleteAlbumShareLink", "albumShareLinkUuid", albumShareLinkUuid);
|
|
246
|
-
const localVarPath = `/album/share/link/{album_share_link_uuid}`.replace(`{${"album_share_link_uuid"}}`, encodeURIComponent(String(albumShareLinkUuid)));
|
|
247
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
248
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
249
|
-
let baseOptions;
|
|
250
|
-
if (configuration) {
|
|
251
|
-
baseOptions = configuration.baseOptions;
|
|
252
|
-
}
|
|
253
|
-
const localVarRequestOptions = {
|
|
254
|
-
method: "DELETE",
|
|
255
|
-
...baseOptions,
|
|
256
|
-
...options,
|
|
257
|
-
};
|
|
258
|
-
const localVarHeaderParameter = {};
|
|
259
|
-
const localVarQueryParameter = {};
|
|
260
|
-
// authentication BearerAuth required
|
|
261
|
-
// http bearer authentication required
|
|
262
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
263
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
264
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
265
|
-
localVarRequestOptions.headers = {
|
|
266
|
-
...localVarHeaderParameter,
|
|
267
|
-
...headersFromBaseOptions,
|
|
268
|
-
...options.headers,
|
|
269
|
-
};
|
|
270
|
-
return {
|
|
271
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
272
|
-
options: localVarRequestOptions,
|
|
273
|
-
};
|
|
274
|
-
},
|
|
275
|
-
/**
|
|
276
|
-
*
|
|
277
|
-
* @summary Retrieves a list of albums of an authenticated user
|
|
278
|
-
* @param {*} [options] Override http request option.
|
|
279
|
-
* @throws {RequiredError}
|
|
280
|
-
*/
|
|
281
|
-
routesGetAlbumList: async (options = {}) => {
|
|
282
|
-
const localVarPath = `/album`;
|
|
283
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
284
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
285
|
-
let baseOptions;
|
|
286
|
-
if (configuration) {
|
|
287
|
-
baseOptions = configuration.baseOptions;
|
|
288
|
-
}
|
|
289
|
-
const localVarRequestOptions = {
|
|
290
|
-
method: "GET",
|
|
291
|
-
...baseOptions,
|
|
292
|
-
...options,
|
|
293
|
-
};
|
|
294
|
-
const localVarHeaderParameter = {};
|
|
295
|
-
const localVarQueryParameter = {};
|
|
296
|
-
// authentication BearerAuth required
|
|
297
|
-
// http bearer authentication required
|
|
298
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
299
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
300
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
301
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
302
|
-
localVarRequestOptions.headers = {
|
|
303
|
-
...localVarHeaderParameter,
|
|
304
|
-
...headersFromBaseOptions,
|
|
305
|
-
...options.headers,
|
|
306
|
-
};
|
|
307
|
-
return {
|
|
308
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
309
|
-
options: localVarRequestOptions,
|
|
310
|
-
};
|
|
311
|
-
},
|
|
312
|
-
/**
|
|
313
|
-
*
|
|
314
|
-
* @summary Gets basic information about album share link.
|
|
315
|
-
* @param {string} albumShareLinkUuid Album Share Link UUID
|
|
316
|
-
* @param {*} [options] Override http request option.
|
|
317
|
-
* @throws {RequiredError}
|
|
318
|
-
*/
|
|
319
|
-
routesGetAlbumShareLink: async (albumShareLinkUuid, options = {}) => {
|
|
320
|
-
// verify required parameter 'albumShareLinkUuid' is not null or undefined
|
|
321
|
-
(0, common_1.assertParamExists)("routesGetAlbumShareLink", "albumShareLinkUuid", albumShareLinkUuid);
|
|
322
|
-
const localVarPath = `/album/share/link/{album_share_link_uuid}`.replace(`{${"album_share_link_uuid"}}`, encodeURIComponent(String(albumShareLinkUuid)));
|
|
323
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
324
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
325
|
-
let baseOptions;
|
|
326
|
-
if (configuration) {
|
|
327
|
-
baseOptions = configuration.baseOptions;
|
|
328
|
-
}
|
|
329
|
-
const localVarRequestOptions = {
|
|
330
|
-
method: "GET",
|
|
331
|
-
...baseOptions,
|
|
332
|
-
...options,
|
|
333
|
-
};
|
|
334
|
-
const localVarHeaderParameter = {};
|
|
335
|
-
const localVarQueryParameter = {};
|
|
336
|
-
// authentication BearerAuth required
|
|
337
|
-
// http bearer authentication required
|
|
338
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
339
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
340
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
341
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
342
|
-
localVarRequestOptions.headers = {
|
|
343
|
-
...localVarHeaderParameter,
|
|
344
|
-
...headersFromBaseOptions,
|
|
345
|
-
...options.headers,
|
|
346
|
-
};
|
|
347
|
-
return {
|
|
348
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
349
|
-
options: localVarRequestOptions,
|
|
350
|
-
};
|
|
351
|
-
},
|
|
352
|
-
/**
|
|
353
|
-
*
|
|
354
|
-
* @summary Gets a list of album share links.
|
|
355
|
-
* @param {string} albumUuid Album UUID
|
|
356
|
-
* @param {*} [options] Override http request option.
|
|
357
|
-
* @throws {RequiredError}
|
|
358
|
-
*/
|
|
359
|
-
routesGetAlbumShareLinks: async (albumUuid, options = {}) => {
|
|
360
|
-
// verify required parameter 'albumUuid' is not null or undefined
|
|
361
|
-
(0, common_1.assertParamExists)("routesGetAlbumShareLinks", "albumUuid", albumUuid);
|
|
362
|
-
const localVarPath = `/album/{album_uuid}/share/link`.replace(`{${"album_uuid"}}`, encodeURIComponent(String(albumUuid)));
|
|
363
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
364
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
365
|
-
let baseOptions;
|
|
366
|
-
if (configuration) {
|
|
367
|
-
baseOptions = configuration.baseOptions;
|
|
368
|
-
}
|
|
369
|
-
const localVarRequestOptions = {
|
|
370
|
-
method: "GET",
|
|
371
|
-
...baseOptions,
|
|
372
|
-
...options,
|
|
373
|
-
};
|
|
374
|
-
const localVarHeaderParameter = {};
|
|
375
|
-
const localVarQueryParameter = {};
|
|
376
|
-
// authentication BearerAuth required
|
|
377
|
-
// http bearer authentication required
|
|
378
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
379
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
380
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
381
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
382
|
-
localVarRequestOptions.headers = {
|
|
383
|
-
...localVarHeaderParameter,
|
|
384
|
-
...headersFromBaseOptions,
|
|
385
|
-
...options.headers,
|
|
386
|
-
};
|
|
387
|
-
return {
|
|
388
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
389
|
-
options: localVarRequestOptions,
|
|
390
|
-
};
|
|
391
|
-
},
|
|
392
|
-
/**
|
|
393
|
-
*
|
|
394
|
-
* @summary Gets a list of media in an album
|
|
395
|
-
* @param {string} albumUuid Album UUID
|
|
396
|
-
* @param {*} [options] Override http request option.
|
|
397
|
-
* @throws {RequiredError}
|
|
398
|
-
*/
|
|
399
|
-
routesGetAlbumStructure: async (albumUuid, options = {}) => {
|
|
400
|
-
// verify required parameter 'albumUuid' is not null or undefined
|
|
401
|
-
(0, common_1.assertParamExists)("routesGetAlbumStructure", "albumUuid", albumUuid);
|
|
402
|
-
const localVarPath = `/album/{album_uuid}/media`.replace(`{${"album_uuid"}}`, encodeURIComponent(String(albumUuid)));
|
|
403
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
404
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
405
|
-
let baseOptions;
|
|
406
|
-
if (configuration) {
|
|
407
|
-
baseOptions = configuration.baseOptions;
|
|
408
|
-
}
|
|
409
|
-
const localVarRequestOptions = {
|
|
410
|
-
method: "GET",
|
|
411
|
-
...baseOptions,
|
|
412
|
-
...options,
|
|
413
|
-
};
|
|
414
|
-
const localVarHeaderParameter = {};
|
|
415
|
-
const localVarQueryParameter = {};
|
|
416
|
-
// authentication BasicSharedAlbumLinkAuth required
|
|
417
|
-
// http basic authentication required
|
|
418
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
419
|
-
// authentication BearerAuth required
|
|
420
|
-
// http bearer authentication required
|
|
421
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
422
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
423
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
424
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
425
|
-
localVarRequestOptions.headers = {
|
|
426
|
-
...localVarHeaderParameter,
|
|
427
|
-
...headersFromBaseOptions,
|
|
428
|
-
...options.headers,
|
|
429
|
-
};
|
|
430
|
-
return {
|
|
431
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
432
|
-
options: localVarRequestOptions,
|
|
433
|
-
};
|
|
434
|
-
},
|
|
435
|
-
/**
|
|
436
|
-
*
|
|
437
|
-
* @summary Returns a media
|
|
438
|
-
* @param {string} mediaUuid Media UUID
|
|
439
|
-
* @param {*} [options] Override http request option.
|
|
440
|
-
* @throws {RequiredError}
|
|
441
|
-
*/
|
|
442
|
-
routesGetMediaByUuid: async (mediaUuid, options = {}) => {
|
|
443
|
-
// verify required parameter 'mediaUuid' is not null or undefined
|
|
444
|
-
(0, common_1.assertParamExists)("routesGetMediaByUuid", "mediaUuid", mediaUuid);
|
|
445
|
-
const localVarPath = `/media/{media_uuid}`.replace(`{${"media_uuid"}}`, encodeURIComponent(String(mediaUuid)));
|
|
446
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
447
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
448
|
-
let baseOptions;
|
|
449
|
-
if (configuration) {
|
|
450
|
-
baseOptions = configuration.baseOptions;
|
|
451
|
-
}
|
|
452
|
-
const localVarRequestOptions = {
|
|
453
|
-
method: "GET",
|
|
454
|
-
...baseOptions,
|
|
455
|
-
...options,
|
|
456
|
-
};
|
|
457
|
-
const localVarHeaderParameter = {};
|
|
458
|
-
const localVarQueryParameter = {};
|
|
459
|
-
// authentication BearerAuth required
|
|
460
|
-
// http bearer authentication required
|
|
461
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
462
|
-
localVarHeaderParameter["Accept"] = "application/octet-stream";
|
|
463
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
464
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
465
|
-
localVarRequestOptions.headers = {
|
|
466
|
-
...localVarHeaderParameter,
|
|
467
|
-
...headersFromBaseOptions,
|
|
468
|
-
...options.headers,
|
|
469
|
-
};
|
|
470
|
-
return {
|
|
471
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
472
|
-
options: localVarRequestOptions,
|
|
473
|
-
};
|
|
474
|
-
},
|
|
475
|
-
/**
|
|
476
|
-
*
|
|
477
|
-
* @summary Returns a list of liked media.
|
|
478
|
-
* @param {*} [options] Override http request option.
|
|
479
|
-
* @throws {RequiredError}
|
|
480
|
-
*/
|
|
481
|
-
routesGetMediaLikedList: async (options = {}) => {
|
|
482
|
-
const localVarPath = `/media/liked`;
|
|
483
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
484
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
485
|
-
let baseOptions;
|
|
486
|
-
if (configuration) {
|
|
487
|
-
baseOptions = configuration.baseOptions;
|
|
488
|
-
}
|
|
489
|
-
const localVarRequestOptions = {
|
|
490
|
-
method: "GET",
|
|
491
|
-
...baseOptions,
|
|
492
|
-
...options,
|
|
493
|
-
};
|
|
494
|
-
const localVarHeaderParameter = {};
|
|
495
|
-
const localVarQueryParameter = {};
|
|
496
|
-
// authentication BearerAuth required
|
|
497
|
-
// http bearer authentication required
|
|
498
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
499
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
500
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
501
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
502
|
-
localVarRequestOptions.headers = {
|
|
503
|
-
...localVarHeaderParameter,
|
|
504
|
-
...headersFromBaseOptions,
|
|
505
|
-
...options.headers,
|
|
506
|
-
};
|
|
507
|
-
return {
|
|
508
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
509
|
-
options: localVarRequestOptions,
|
|
510
|
-
};
|
|
511
|
-
},
|
|
512
|
-
/**
|
|
513
|
-
*
|
|
514
|
-
* @summary Returns server configuration
|
|
515
|
-
* @param {*} [options] Override http request option.
|
|
516
|
-
* @throws {RequiredError}
|
|
517
|
-
*/
|
|
518
|
-
routesGetServerConfig: async (options = {}) => {
|
|
519
|
-
const localVarPath = `/public/config`;
|
|
520
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
521
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
522
|
-
let baseOptions;
|
|
523
|
-
if (configuration) {
|
|
524
|
-
baseOptions = configuration.baseOptions;
|
|
525
|
-
}
|
|
526
|
-
const localVarRequestOptions = {
|
|
527
|
-
method: "GET",
|
|
528
|
-
...baseOptions,
|
|
529
|
-
...options,
|
|
530
|
-
};
|
|
531
|
-
const localVarHeaderParameter = {};
|
|
532
|
-
const localVarQueryParameter = {};
|
|
533
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
534
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
535
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
536
|
-
localVarRequestOptions.headers = {
|
|
537
|
-
...localVarHeaderParameter,
|
|
538
|
-
...headersFromBaseOptions,
|
|
539
|
-
...options.headers,
|
|
540
|
-
};
|
|
541
|
-
return {
|
|
542
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
543
|
-
options: localVarRequestOptions,
|
|
544
|
-
};
|
|
545
|
-
},
|
|
546
|
-
/**
|
|
547
|
-
*
|
|
548
|
-
* @param {*} [options] Override http request option.
|
|
549
|
-
* @throws {RequiredError}
|
|
550
|
-
*/
|
|
551
|
-
routesHealth: async (options = {}) => {
|
|
552
|
-
const localVarPath = `/health`;
|
|
553
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
554
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
555
|
-
let baseOptions;
|
|
556
|
-
if (configuration) {
|
|
557
|
-
baseOptions = configuration.baseOptions;
|
|
558
|
-
}
|
|
559
|
-
const localVarRequestOptions = {
|
|
560
|
-
method: "GET",
|
|
561
|
-
...baseOptions,
|
|
562
|
-
...options,
|
|
563
|
-
};
|
|
564
|
-
const localVarHeaderParameter = {};
|
|
565
|
-
const localVarQueryParameter = {};
|
|
566
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
567
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
568
|
-
localVarRequestOptions.headers = {
|
|
569
|
-
...localVarHeaderParameter,
|
|
570
|
-
...headersFromBaseOptions,
|
|
571
|
-
...options.headers,
|
|
572
|
-
};
|
|
573
|
-
return {
|
|
574
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
575
|
-
options: localVarRequestOptions,
|
|
576
|
-
};
|
|
577
|
-
},
|
|
578
|
-
/**
|
|
579
|
-
*
|
|
580
|
-
* @summary You must provide either a username or an email together with a password.
|
|
581
|
-
* @param {UserLogin} userLogin
|
|
582
|
-
* @param {*} [options] Override http request option.
|
|
583
|
-
* @throws {RequiredError}
|
|
584
|
-
*/
|
|
585
|
-
routesLogin: async (userLogin, options = {}) => {
|
|
586
|
-
// verify required parameter 'userLogin' is not null or undefined
|
|
587
|
-
(0, common_1.assertParamExists)("routesLogin", "userLogin", userLogin);
|
|
588
|
-
const localVarPath = `/auth/login`;
|
|
589
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
590
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
591
|
-
let baseOptions;
|
|
592
|
-
if (configuration) {
|
|
593
|
-
baseOptions = configuration.baseOptions;
|
|
594
|
-
}
|
|
595
|
-
const localVarRequestOptions = {
|
|
596
|
-
method: "POST",
|
|
597
|
-
...baseOptions,
|
|
598
|
-
...options,
|
|
599
|
-
};
|
|
600
|
-
const localVarHeaderParameter = {};
|
|
601
|
-
const localVarQueryParameter = {};
|
|
602
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
603
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
604
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
605
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
606
|
-
localVarRequestOptions.headers = {
|
|
607
|
-
...localVarHeaderParameter,
|
|
608
|
-
...headersFromBaseOptions,
|
|
609
|
-
...options.headers,
|
|
610
|
-
};
|
|
611
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userLogin, localVarRequestOptions, configuration);
|
|
612
|
-
return {
|
|
613
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
614
|
-
options: localVarRequestOptions,
|
|
615
|
-
};
|
|
616
|
-
},
|
|
617
|
-
/**
|
|
618
|
-
*
|
|
619
|
-
* @summary Invalidates the session.
|
|
620
|
-
* @param {*} [options] Override http request option.
|
|
621
|
-
* @throws {RequiredError}
|
|
622
|
-
*/
|
|
623
|
-
routesLogout: async (options = {}) => {
|
|
624
|
-
const localVarPath = `/auth/logout`;
|
|
625
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
626
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
627
|
-
let baseOptions;
|
|
628
|
-
if (configuration) {
|
|
629
|
-
baseOptions = configuration.baseOptions;
|
|
630
|
-
}
|
|
631
|
-
const localVarRequestOptions = {
|
|
632
|
-
method: "POST",
|
|
633
|
-
...baseOptions,
|
|
634
|
-
...options,
|
|
635
|
-
};
|
|
636
|
-
const localVarHeaderParameter = {};
|
|
637
|
-
const localVarQueryParameter = {};
|
|
638
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
639
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
640
|
-
localVarRequestOptions.headers = {
|
|
641
|
-
...localVarHeaderParameter,
|
|
642
|
-
...headersFromBaseOptions,
|
|
643
|
-
...options.headers,
|
|
644
|
-
};
|
|
645
|
-
return {
|
|
646
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
647
|
-
options: localVarRequestOptions,
|
|
648
|
-
};
|
|
649
|
-
},
|
|
650
|
-
/**
|
|
651
|
-
*
|
|
652
|
-
* @summary Deletes description of a media
|
|
653
|
-
* @param {string} mediaUuid Media UUID
|
|
654
|
-
* @param {*} [options] Override http request option.
|
|
655
|
-
* @throws {RequiredError}
|
|
656
|
-
*/
|
|
657
|
-
routesMediaDeleteDescription: async (mediaUuid, options = {}) => {
|
|
658
|
-
// verify required parameter 'mediaUuid' is not null or undefined
|
|
659
|
-
(0, common_1.assertParamExists)("routesMediaDeleteDescription", "mediaUuid", mediaUuid);
|
|
660
|
-
const localVarPath = `/media/{media_uuid}/description`.replace(`{${"media_uuid"}}`, encodeURIComponent(String(mediaUuid)));
|
|
661
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
662
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
663
|
-
let baseOptions;
|
|
664
|
-
if (configuration) {
|
|
665
|
-
baseOptions = configuration.baseOptions;
|
|
666
|
-
}
|
|
667
|
-
const localVarRequestOptions = {
|
|
668
|
-
method: "DELETE",
|
|
669
|
-
...baseOptions,
|
|
670
|
-
...options,
|
|
671
|
-
};
|
|
672
|
-
const localVarHeaderParameter = {};
|
|
673
|
-
const localVarQueryParameter = {};
|
|
674
|
-
// authentication BearerAuth required
|
|
675
|
-
// http bearer authentication required
|
|
676
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
677
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
678
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
679
|
-
localVarRequestOptions.headers = {
|
|
680
|
-
...localVarHeaderParameter,
|
|
681
|
-
...headersFromBaseOptions,
|
|
682
|
-
...options.headers,
|
|
683
|
-
};
|
|
684
|
-
return {
|
|
685
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
686
|
-
options: localVarRequestOptions,
|
|
687
|
-
};
|
|
688
|
-
},
|
|
689
|
-
/**
|
|
690
|
-
*
|
|
691
|
-
* @summary Likes the media.
|
|
692
|
-
* @param {string} mediaUuid Media UUID
|
|
693
|
-
* @param {*} [options] Override http request option.
|
|
694
|
-
* @throws {RequiredError}
|
|
695
|
-
*/
|
|
696
|
-
routesMediaLike: async (mediaUuid, options = {}) => {
|
|
697
|
-
// verify required parameter 'mediaUuid' is not null or undefined
|
|
698
|
-
(0, common_1.assertParamExists)("routesMediaLike", "mediaUuid", mediaUuid);
|
|
699
|
-
const localVarPath = `/media/{media_uuid}/like`.replace(`{${"media_uuid"}}`, encodeURIComponent(String(mediaUuid)));
|
|
700
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
701
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
702
|
-
let baseOptions;
|
|
703
|
-
if (configuration) {
|
|
704
|
-
baseOptions = configuration.baseOptions;
|
|
705
|
-
}
|
|
706
|
-
const localVarRequestOptions = {
|
|
707
|
-
method: "POST",
|
|
708
|
-
...baseOptions,
|
|
709
|
-
...options,
|
|
710
|
-
};
|
|
711
|
-
const localVarHeaderParameter = {};
|
|
712
|
-
const localVarQueryParameter = {};
|
|
713
|
-
// authentication BearerAuth required
|
|
714
|
-
// http bearer authentication required
|
|
715
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
716
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
717
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
718
|
-
localVarRequestOptions.headers = {
|
|
719
|
-
...localVarHeaderParameter,
|
|
720
|
-
...headersFromBaseOptions,
|
|
721
|
-
...options.headers,
|
|
722
|
-
};
|
|
723
|
-
return {
|
|
724
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
725
|
-
options: localVarRequestOptions,
|
|
726
|
-
};
|
|
727
|
-
},
|
|
728
|
-
/**
|
|
729
|
-
*
|
|
730
|
-
* @summary Gets a list of all media
|
|
731
|
-
* @param {*} [options] Override http request option.
|
|
732
|
-
* @throws {RequiredError}
|
|
733
|
-
*/
|
|
734
|
-
routesMediaStructure: async (options = {}) => {
|
|
735
|
-
const localVarPath = `/media`;
|
|
736
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
737
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
738
|
-
let baseOptions;
|
|
739
|
-
if (configuration) {
|
|
740
|
-
baseOptions = configuration.baseOptions;
|
|
741
|
-
}
|
|
742
|
-
const localVarRequestOptions = {
|
|
743
|
-
method: "GET",
|
|
744
|
-
...baseOptions,
|
|
745
|
-
...options,
|
|
746
|
-
};
|
|
747
|
-
const localVarHeaderParameter = {};
|
|
748
|
-
const localVarQueryParameter = {};
|
|
749
|
-
// authentication BearerAuth required
|
|
750
|
-
// http bearer authentication required
|
|
751
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
752
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
753
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
754
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
755
|
-
localVarRequestOptions.headers = {
|
|
756
|
-
...localVarHeaderParameter,
|
|
757
|
-
...headersFromBaseOptions,
|
|
758
|
-
...options.headers,
|
|
759
|
-
};
|
|
760
|
-
return {
|
|
761
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
762
|
-
options: localVarRequestOptions,
|
|
763
|
-
};
|
|
764
|
-
},
|
|
765
|
-
/**
|
|
766
|
-
*
|
|
767
|
-
* @summary Unlikes the media.
|
|
768
|
-
* @param {string} mediaUuid Media UUID
|
|
769
|
-
* @param {*} [options] Override http request option.
|
|
770
|
-
* @throws {RequiredError}
|
|
771
|
-
*/
|
|
772
|
-
routesMediaUnlike: async (mediaUuid, options = {}) => {
|
|
773
|
-
// verify required parameter 'mediaUuid' is not null or undefined
|
|
774
|
-
(0, common_1.assertParamExists)("routesMediaUnlike", "mediaUuid", mediaUuid);
|
|
775
|
-
const localVarPath = `/media/{media_uuid}/like`.replace(`{${"media_uuid"}}`, encodeURIComponent(String(mediaUuid)));
|
|
776
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
777
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
778
|
-
let baseOptions;
|
|
779
|
-
if (configuration) {
|
|
780
|
-
baseOptions = configuration.baseOptions;
|
|
781
|
-
}
|
|
782
|
-
const localVarRequestOptions = {
|
|
783
|
-
method: "DELETE",
|
|
784
|
-
...baseOptions,
|
|
785
|
-
...options,
|
|
786
|
-
};
|
|
787
|
-
const localVarHeaderParameter = {};
|
|
788
|
-
const localVarQueryParameter = {};
|
|
789
|
-
// authentication BearerAuth required
|
|
790
|
-
// http bearer authentication required
|
|
791
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
792
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
793
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
794
|
-
localVarRequestOptions.headers = {
|
|
795
|
-
...localVarHeaderParameter,
|
|
796
|
-
...headersFromBaseOptions,
|
|
797
|
-
...options.headers,
|
|
798
|
-
};
|
|
799
|
-
return {
|
|
800
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
801
|
-
options: localVarRequestOptions,
|
|
802
|
-
};
|
|
803
|
-
},
|
|
804
|
-
/**
|
|
805
|
-
*
|
|
806
|
-
* @summary Updates description of a media
|
|
807
|
-
* @param {string} mediaUuid Media UUID
|
|
808
|
-
* @param {MediaDescription} mediaDescription
|
|
809
|
-
* @param {*} [options] Override http request option.
|
|
810
|
-
* @throws {RequiredError}
|
|
811
|
-
*/
|
|
812
|
-
routesMediaUpdateDescription: async (mediaUuid, mediaDescription, options = {}) => {
|
|
813
|
-
// verify required parameter 'mediaUuid' is not null or undefined
|
|
814
|
-
(0, common_1.assertParamExists)("routesMediaUpdateDescription", "mediaUuid", mediaUuid);
|
|
815
|
-
// verify required parameter 'mediaDescription' is not null or undefined
|
|
816
|
-
(0, common_1.assertParamExists)("routesMediaUpdateDescription", "mediaDescription", mediaDescription);
|
|
817
|
-
const localVarPath = `/media/{media_uuid}/description`.replace(`{${"media_uuid"}}`, encodeURIComponent(String(mediaUuid)));
|
|
818
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
819
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
820
|
-
let baseOptions;
|
|
821
|
-
if (configuration) {
|
|
822
|
-
baseOptions = configuration.baseOptions;
|
|
823
|
-
}
|
|
824
|
-
const localVarRequestOptions = {
|
|
825
|
-
method: "PUT",
|
|
826
|
-
...baseOptions,
|
|
827
|
-
...options,
|
|
828
|
-
};
|
|
829
|
-
const localVarHeaderParameter = {};
|
|
830
|
-
const localVarQueryParameter = {};
|
|
831
|
-
// authentication BearerAuth required
|
|
832
|
-
// http bearer authentication required
|
|
833
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
834
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
835
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
836
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
837
|
-
localVarRequestOptions.headers = {
|
|
838
|
-
...localVarHeaderParameter,
|
|
839
|
-
...headersFromBaseOptions,
|
|
840
|
-
...options.headers,
|
|
841
|
-
};
|
|
842
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mediaDescription, localVarRequestOptions, configuration);
|
|
843
|
-
return {
|
|
844
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
845
|
-
options: localVarRequestOptions,
|
|
846
|
-
};
|
|
847
|
-
},
|
|
848
|
-
/**
|
|
849
|
-
*
|
|
850
|
-
* @param {string} provider OIDC provider key
|
|
851
|
-
* @param {string} code Authorization code
|
|
852
|
-
* @param {string} state CSRF state
|
|
853
|
-
* @param {*} [options] Override http request option.
|
|
854
|
-
* @throws {RequiredError}
|
|
855
|
-
*/
|
|
856
|
-
routesOidcCallback: async (provider, code, state, options = {}) => {
|
|
857
|
-
// verify required parameter 'provider' is not null or undefined
|
|
858
|
-
(0, common_1.assertParamExists)("routesOidcCallback", "provider", provider);
|
|
859
|
-
// verify required parameter 'code' is not null or undefined
|
|
860
|
-
(0, common_1.assertParamExists)("routesOidcCallback", "code", code);
|
|
861
|
-
// verify required parameter 'state' is not null or undefined
|
|
862
|
-
(0, common_1.assertParamExists)("routesOidcCallback", "state", state);
|
|
863
|
-
const localVarPath = `/auth/oidc/{provider}/callback`.replace(`{${"provider"}}`, encodeURIComponent(String(provider)));
|
|
864
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
865
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
866
|
-
let baseOptions;
|
|
867
|
-
if (configuration) {
|
|
868
|
-
baseOptions = configuration.baseOptions;
|
|
869
|
-
}
|
|
870
|
-
const localVarRequestOptions = {
|
|
871
|
-
method: "GET",
|
|
872
|
-
...baseOptions,
|
|
873
|
-
...options,
|
|
874
|
-
};
|
|
875
|
-
const localVarHeaderParameter = {};
|
|
876
|
-
const localVarQueryParameter = {};
|
|
877
|
-
if (code !== undefined) {
|
|
878
|
-
localVarQueryParameter["code"] = code;
|
|
879
|
-
}
|
|
880
|
-
if (state !== undefined) {
|
|
881
|
-
localVarQueryParameter["state"] = state;
|
|
882
|
-
}
|
|
883
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
884
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
885
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
886
|
-
localVarRequestOptions.headers = {
|
|
887
|
-
...localVarHeaderParameter,
|
|
888
|
-
...headersFromBaseOptions,
|
|
889
|
-
...options.headers,
|
|
890
|
-
};
|
|
891
|
-
return {
|
|
892
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
893
|
-
options: localVarRequestOptions,
|
|
894
|
-
};
|
|
895
|
-
},
|
|
896
|
-
/**
|
|
897
|
-
*
|
|
898
|
-
* @param {string} provider OIDC provider key
|
|
899
|
-
* @param {*} [options] Override http request option.
|
|
900
|
-
* @throws {RequiredError}
|
|
901
|
-
*/
|
|
902
|
-
routesOidcLogin: async (provider, options = {}) => {
|
|
903
|
-
// verify required parameter 'provider' is not null or undefined
|
|
904
|
-
(0, common_1.assertParamExists)("routesOidcLogin", "provider", provider);
|
|
905
|
-
const localVarPath = `/auth/oidc/{provider}/login`.replace(`{${"provider"}}`, encodeURIComponent(String(provider)));
|
|
906
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
907
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
908
|
-
let baseOptions;
|
|
909
|
-
if (configuration) {
|
|
910
|
-
baseOptions = configuration.baseOptions;
|
|
911
|
-
}
|
|
912
|
-
const localVarRequestOptions = {
|
|
913
|
-
method: "GET",
|
|
914
|
-
...baseOptions,
|
|
915
|
-
...options,
|
|
916
|
-
};
|
|
917
|
-
const localVarHeaderParameter = {};
|
|
918
|
-
const localVarQueryParameter = {};
|
|
919
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
920
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
921
|
-
localVarRequestOptions.headers = {
|
|
922
|
-
...localVarHeaderParameter,
|
|
923
|
-
...headersFromBaseOptions,
|
|
924
|
-
...options.headers,
|
|
925
|
-
};
|
|
926
|
-
return {
|
|
927
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
928
|
-
options: localVarRequestOptions,
|
|
929
|
-
};
|
|
930
|
-
},
|
|
931
|
-
/**
|
|
932
|
-
*
|
|
933
|
-
* @summary Issues a new access token when a valid refresh token is attached
|
|
934
|
-
* @param {*} [options] Override http request option.
|
|
935
|
-
* @throws {RequiredError}
|
|
936
|
-
*/
|
|
937
|
-
routesRefreshToken: async (options = {}) => {
|
|
938
|
-
const localVarPath = `/auth/refresh`;
|
|
939
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
940
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
941
|
-
let baseOptions;
|
|
942
|
-
if (configuration) {
|
|
943
|
-
baseOptions = configuration.baseOptions;
|
|
944
|
-
}
|
|
945
|
-
const localVarRequestOptions = {
|
|
946
|
-
method: "POST",
|
|
947
|
-
...baseOptions,
|
|
948
|
-
...options,
|
|
949
|
-
};
|
|
950
|
-
const localVarHeaderParameter = {};
|
|
951
|
-
const localVarQueryParameter = {};
|
|
952
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
953
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
954
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
955
|
-
localVarRequestOptions.headers = {
|
|
956
|
-
...localVarHeaderParameter,
|
|
957
|
-
...headersFromBaseOptions,
|
|
958
|
-
...options.headers,
|
|
959
|
-
};
|
|
960
|
-
return {
|
|
961
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
962
|
-
options: localVarRequestOptions,
|
|
963
|
-
};
|
|
964
|
-
},
|
|
965
|
-
/**
|
|
966
|
-
*
|
|
967
|
-
* @summary Searches for new media
|
|
968
|
-
* @param {*} [options] Override http request option.
|
|
969
|
-
* @throws {RequiredError}
|
|
970
|
-
*/
|
|
971
|
-
routesScanMedia: async (options = {}) => {
|
|
972
|
-
const localVarPath = `/scan_media`;
|
|
973
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
974
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
975
|
-
let baseOptions;
|
|
976
|
-
if (configuration) {
|
|
977
|
-
baseOptions = configuration.baseOptions;
|
|
978
|
-
}
|
|
979
|
-
const localVarRequestOptions = {
|
|
980
|
-
method: "GET",
|
|
981
|
-
...baseOptions,
|
|
982
|
-
...options,
|
|
983
|
-
};
|
|
984
|
-
const localVarHeaderParameter = {};
|
|
985
|
-
const localVarQueryParameter = {};
|
|
986
|
-
// authentication BearerAuth required
|
|
987
|
-
// http bearer authentication required
|
|
988
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
989
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
990
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
991
|
-
localVarRequestOptions.headers = {
|
|
992
|
-
...localVarHeaderParameter,
|
|
993
|
-
...headersFromBaseOptions,
|
|
994
|
-
...options.headers,
|
|
995
|
-
};
|
|
996
|
-
return {
|
|
997
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
998
|
-
options: localVarRequestOptions,
|
|
999
|
-
};
|
|
1000
|
-
},
|
|
1001
|
-
/**
|
|
1002
|
-
*
|
|
1003
|
-
* @summary Returns the public system information.
|
|
1004
|
-
* @param {*} [options] Override http request option.
|
|
1005
|
-
* @throws {RequiredError}
|
|
1006
|
-
*/
|
|
1007
|
-
routesSystemInfoPublic: async (options = {}) => {
|
|
1008
|
-
const localVarPath = `/system/info/public`;
|
|
1009
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1010
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1011
|
-
let baseOptions;
|
|
1012
|
-
if (configuration) {
|
|
1013
|
-
baseOptions = configuration.baseOptions;
|
|
1014
|
-
}
|
|
1015
|
-
const localVarRequestOptions = {
|
|
1016
|
-
method: "GET",
|
|
1017
|
-
...baseOptions,
|
|
1018
|
-
...options,
|
|
1019
|
-
};
|
|
1020
|
-
const localVarHeaderParameter = {};
|
|
1021
|
-
const localVarQueryParameter = {};
|
|
1022
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
1023
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1024
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1025
|
-
localVarRequestOptions.headers = {
|
|
1026
|
-
...localVarHeaderParameter,
|
|
1027
|
-
...headersFromBaseOptions,
|
|
1028
|
-
...options.headers,
|
|
1029
|
-
};
|
|
1030
|
-
return {
|
|
1031
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1032
|
-
options: localVarRequestOptions,
|
|
1033
|
-
};
|
|
1034
|
-
},
|
|
1035
|
-
/**
|
|
1036
|
-
*
|
|
1037
|
-
* @summary Updates already existing album
|
|
1038
|
-
* @param {string} albumUuid Album UUID
|
|
1039
|
-
* @param {AlbumUpdateData} albumUpdateData
|
|
1040
|
-
* @param {*} [options] Override http request option.
|
|
1041
|
-
* @throws {RequiredError}
|
|
1042
|
-
*/
|
|
1043
|
-
routesUpdateAlbum: async (albumUuid, albumUpdateData, options = {}) => {
|
|
1044
|
-
// verify required parameter 'albumUuid' is not null or undefined
|
|
1045
|
-
(0, common_1.assertParamExists)("routesUpdateAlbum", "albumUuid", albumUuid);
|
|
1046
|
-
// verify required parameter 'albumUpdateData' is not null or undefined
|
|
1047
|
-
(0, common_1.assertParamExists)("routesUpdateAlbum", "albumUpdateData", albumUpdateData);
|
|
1048
|
-
const localVarPath = `/album/{album_uuid}`.replace(`{${"album_uuid"}}`, encodeURIComponent(String(albumUuid)));
|
|
1049
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1050
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1051
|
-
let baseOptions;
|
|
1052
|
-
if (configuration) {
|
|
1053
|
-
baseOptions = configuration.baseOptions;
|
|
1054
|
-
}
|
|
1055
|
-
const localVarRequestOptions = {
|
|
1056
|
-
method: "PUT",
|
|
1057
|
-
...baseOptions,
|
|
1058
|
-
...options,
|
|
1059
|
-
};
|
|
1060
|
-
const localVarHeaderParameter = {};
|
|
1061
|
-
const localVarQueryParameter = {};
|
|
1062
|
-
// authentication BearerAuth required
|
|
1063
|
-
// http bearer authentication required
|
|
1064
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1065
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1066
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1067
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1068
|
-
localVarRequestOptions.headers = {
|
|
1069
|
-
...localVarHeaderParameter,
|
|
1070
|
-
...headersFromBaseOptions,
|
|
1071
|
-
...options.headers,
|
|
1072
|
-
};
|
|
1073
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(albumUpdateData, localVarRequestOptions, configuration);
|
|
1074
|
-
return {
|
|
1075
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1076
|
-
options: localVarRequestOptions,
|
|
1077
|
-
};
|
|
1078
|
-
},
|
|
1079
|
-
/**
|
|
1080
|
-
*
|
|
1081
|
-
* @summary Updates already existing album share link.
|
|
1082
|
-
* @param {string} albumShareLinkUuid Album Share Link UUID
|
|
1083
|
-
* @param {AlbumShareLinkInsert} albumShareLinkInsert
|
|
1084
|
-
* @param {*} [options] Override http request option.
|
|
1085
|
-
* @throws {RequiredError}
|
|
1086
|
-
*/
|
|
1087
|
-
routesUpdateAlbumShareLink: async (albumShareLinkUuid, albumShareLinkInsert, options = {}) => {
|
|
1088
|
-
// verify required parameter 'albumShareLinkUuid' is not null or undefined
|
|
1089
|
-
(0, common_1.assertParamExists)("routesUpdateAlbumShareLink", "albumShareLinkUuid", albumShareLinkUuid);
|
|
1090
|
-
// verify required parameter 'albumShareLinkInsert' is not null or undefined
|
|
1091
|
-
(0, common_1.assertParamExists)("routesUpdateAlbumShareLink", "albumShareLinkInsert", albumShareLinkInsert);
|
|
1092
|
-
const localVarPath = `/album/share/link/{album_share_link_uuid}`.replace(`{${"album_share_link_uuid"}}`, encodeURIComponent(String(albumShareLinkUuid)));
|
|
1093
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1094
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1095
|
-
let baseOptions;
|
|
1096
|
-
if (configuration) {
|
|
1097
|
-
baseOptions = configuration.baseOptions;
|
|
1098
|
-
}
|
|
1099
|
-
const localVarRequestOptions = {
|
|
1100
|
-
method: "PUT",
|
|
1101
|
-
...baseOptions,
|
|
1102
|
-
...options,
|
|
1103
|
-
};
|
|
1104
|
-
const localVarHeaderParameter = {};
|
|
1105
|
-
const localVarQueryParameter = {};
|
|
1106
|
-
// authentication BearerAuth required
|
|
1107
|
-
// http bearer authentication required
|
|
1108
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1109
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1110
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1111
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1112
|
-
localVarRequestOptions.headers = {
|
|
1113
|
-
...localVarHeaderParameter,
|
|
1114
|
-
...headersFromBaseOptions,
|
|
1115
|
-
...options.headers,
|
|
1116
|
-
};
|
|
1117
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(albumShareLinkInsert, localVarRequestOptions, configuration);
|
|
1118
|
-
return {
|
|
1119
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1120
|
-
options: localVarRequestOptions,
|
|
1121
|
-
};
|
|
1122
|
-
},
|
|
1123
|
-
};
|
|
1124
|
-
};
|
|
1125
|
-
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
1126
|
-
/**
|
|
1127
|
-
* DefaultApi - functional programming interface
|
|
1128
|
-
*/
|
|
1129
|
-
const DefaultApiFp = function (configuration) {
|
|
1130
|
-
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
1131
|
-
return {
|
|
1132
|
-
/**
|
|
1133
|
-
*
|
|
1134
|
-
* @summary Adds media to an album
|
|
1135
|
-
* @param {Array<AlbumAddMedia>} albumAddMedia
|
|
1136
|
-
* @param {*} [options] Override http request option.
|
|
1137
|
-
* @throws {RequiredError}
|
|
1138
|
-
*/
|
|
1139
|
-
async routesAlbumAddMedia(albumAddMedia, options) {
|
|
1140
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesAlbumAddMedia(albumAddMedia, options);
|
|
1141
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1142
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesAlbumAddMedia"]?.[localVarOperationServerIndex]?.url;
|
|
1143
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1144
|
-
},
|
|
1145
|
-
/**
|
|
1146
|
-
*
|
|
1147
|
-
* @summary Creates a new album
|
|
1148
|
-
* @param {AlbumInsertData} albumInsertData
|
|
1149
|
-
* @param {*} [options] Override http request option.
|
|
1150
|
-
* @throws {RequiredError}
|
|
1151
|
-
*/
|
|
1152
|
-
async routesCreateAlbum(albumInsertData, options) {
|
|
1153
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesCreateAlbum(albumInsertData, options);
|
|
1154
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1155
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesCreateAlbum"]?.[localVarOperationServerIndex]?.url;
|
|
1156
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1157
|
-
},
|
|
1158
|
-
/**
|
|
1159
|
-
*
|
|
1160
|
-
* @summary Creates a new album share link.
|
|
1161
|
-
* @param {string} albumUuid Album UUID
|
|
1162
|
-
* @param {AlbumShareLinkInsert} albumShareLinkInsert
|
|
1163
|
-
* @param {*} [options] Override http request option.
|
|
1164
|
-
* @throws {RequiredError}
|
|
1165
|
-
*/
|
|
1166
|
-
async routesCreateAlbumShareLink(albumUuid, albumShareLinkInsert, options) {
|
|
1167
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesCreateAlbumShareLink(albumUuid, albumShareLinkInsert, options);
|
|
1168
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1169
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesCreateAlbumShareLink"]?.[localVarOperationServerIndex]?.url;
|
|
1170
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1171
|
-
},
|
|
1172
|
-
/**
|
|
1173
|
-
*
|
|
1174
|
-
* @summary Creates a new user
|
|
1175
|
-
* @param {UserInsert} userInsert
|
|
1176
|
-
* @param {*} [options] Override http request option.
|
|
1177
|
-
* @throws {RequiredError}
|
|
1178
|
-
*/
|
|
1179
|
-
async routesCreateUser(userInsert, options) {
|
|
1180
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesCreateUser(userInsert, options);
|
|
1181
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1182
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesCreateUser"]?.[localVarOperationServerIndex]?.url;
|
|
1183
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1184
|
-
},
|
|
1185
|
-
/**
|
|
1186
|
-
*
|
|
1187
|
-
* @summary Deletes an album
|
|
1188
|
-
* @param {string} albumUuid Album UUID
|
|
1189
|
-
* @param {*} [options] Override http request option.
|
|
1190
|
-
* @throws {RequiredError}
|
|
1191
|
-
*/
|
|
1192
|
-
async routesDeleteAlbum(albumUuid, options) {
|
|
1193
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesDeleteAlbum(albumUuid, options);
|
|
1194
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1195
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesDeleteAlbum"]?.[localVarOperationServerIndex]?.url;
|
|
1196
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1197
|
-
},
|
|
1198
|
-
/**
|
|
1199
|
-
*
|
|
1200
|
-
* @summary Deletes an album share link.
|
|
1201
|
-
* @param {string} albumShareLinkUuid Album Share Link UUID
|
|
1202
|
-
* @param {*} [options] Override http request option.
|
|
1203
|
-
* @throws {RequiredError}
|
|
1204
|
-
*/
|
|
1205
|
-
async routesDeleteAlbumShareLink(albumShareLinkUuid, options) {
|
|
1206
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesDeleteAlbumShareLink(albumShareLinkUuid, options);
|
|
1207
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1208
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesDeleteAlbumShareLink"]?.[localVarOperationServerIndex]?.url;
|
|
1209
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1210
|
-
},
|
|
1211
|
-
/**
|
|
1212
|
-
*
|
|
1213
|
-
* @summary Retrieves a list of albums of an authenticated user
|
|
1214
|
-
* @param {*} [options] Override http request option.
|
|
1215
|
-
* @throws {RequiredError}
|
|
1216
|
-
*/
|
|
1217
|
-
async routesGetAlbumList(options) {
|
|
1218
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesGetAlbumList(options);
|
|
1219
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1220
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesGetAlbumList"]?.[localVarOperationServerIndex]?.url;
|
|
1221
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1222
|
-
},
|
|
1223
|
-
/**
|
|
1224
|
-
*
|
|
1225
|
-
* @summary Gets basic information about album share link.
|
|
1226
|
-
* @param {string} albumShareLinkUuid Album Share Link UUID
|
|
1227
|
-
* @param {*} [options] Override http request option.
|
|
1228
|
-
* @throws {RequiredError}
|
|
1229
|
-
*/
|
|
1230
|
-
async routesGetAlbumShareLink(albumShareLinkUuid, options) {
|
|
1231
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesGetAlbumShareLink(albumShareLinkUuid, options);
|
|
1232
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1233
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesGetAlbumShareLink"]?.[localVarOperationServerIndex]?.url;
|
|
1234
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1235
|
-
},
|
|
1236
|
-
/**
|
|
1237
|
-
*
|
|
1238
|
-
* @summary Gets a list of album share links.
|
|
1239
|
-
* @param {string} albumUuid Album UUID
|
|
1240
|
-
* @param {*} [options] Override http request option.
|
|
1241
|
-
* @throws {RequiredError}
|
|
1242
|
-
*/
|
|
1243
|
-
async routesGetAlbumShareLinks(albumUuid, options) {
|
|
1244
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesGetAlbumShareLinks(albumUuid, options);
|
|
1245
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1246
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesGetAlbumShareLinks"]?.[localVarOperationServerIndex]?.url;
|
|
1247
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1248
|
-
},
|
|
1249
|
-
/**
|
|
1250
|
-
*
|
|
1251
|
-
* @summary Gets a list of media in an album
|
|
1252
|
-
* @param {string} albumUuid Album UUID
|
|
1253
|
-
* @param {*} [options] Override http request option.
|
|
1254
|
-
* @throws {RequiredError}
|
|
1255
|
-
*/
|
|
1256
|
-
async routesGetAlbumStructure(albumUuid, options) {
|
|
1257
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesGetAlbumStructure(albumUuid, options);
|
|
1258
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1259
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesGetAlbumStructure"]?.[localVarOperationServerIndex]?.url;
|
|
1260
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1261
|
-
},
|
|
1262
|
-
/**
|
|
1263
|
-
*
|
|
1264
|
-
* @summary Returns a media
|
|
1265
|
-
* @param {string} mediaUuid Media UUID
|
|
1266
|
-
* @param {*} [options] Override http request option.
|
|
1267
|
-
* @throws {RequiredError}
|
|
1268
|
-
*/
|
|
1269
|
-
async routesGetMediaByUuid(mediaUuid, options) {
|
|
1270
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesGetMediaByUuid(mediaUuid, options);
|
|
1271
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1272
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesGetMediaByUuid"]?.[localVarOperationServerIndex]?.url;
|
|
1273
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1274
|
-
},
|
|
1275
|
-
/**
|
|
1276
|
-
*
|
|
1277
|
-
* @summary Returns a list of liked media.
|
|
1278
|
-
* @param {*} [options] Override http request option.
|
|
1279
|
-
* @throws {RequiredError}
|
|
1280
|
-
*/
|
|
1281
|
-
async routesGetMediaLikedList(options) {
|
|
1282
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesGetMediaLikedList(options);
|
|
1283
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1284
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesGetMediaLikedList"]?.[localVarOperationServerIndex]?.url;
|
|
1285
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1286
|
-
},
|
|
1287
|
-
/**
|
|
1288
|
-
*
|
|
1289
|
-
* @summary Returns server configuration
|
|
1290
|
-
* @param {*} [options] Override http request option.
|
|
1291
|
-
* @throws {RequiredError}
|
|
1292
|
-
*/
|
|
1293
|
-
async routesGetServerConfig(options) {
|
|
1294
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesGetServerConfig(options);
|
|
1295
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1296
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesGetServerConfig"]?.[localVarOperationServerIndex]?.url;
|
|
1297
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1298
|
-
},
|
|
1299
|
-
/**
|
|
1300
|
-
*
|
|
1301
|
-
* @param {*} [options] Override http request option.
|
|
1302
|
-
* @throws {RequiredError}
|
|
1303
|
-
*/
|
|
1304
|
-
async routesHealth(options) {
|
|
1305
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesHealth(options);
|
|
1306
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1307
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesHealth"]?.[localVarOperationServerIndex]?.url;
|
|
1308
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1309
|
-
},
|
|
1310
|
-
/**
|
|
1311
|
-
*
|
|
1312
|
-
* @summary You must provide either a username or an email together with a password.
|
|
1313
|
-
* @param {UserLogin} userLogin
|
|
1314
|
-
* @param {*} [options] Override http request option.
|
|
1315
|
-
* @throws {RequiredError}
|
|
1316
|
-
*/
|
|
1317
|
-
async routesLogin(userLogin, options) {
|
|
1318
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesLogin(userLogin, options);
|
|
1319
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1320
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesLogin"]?.[localVarOperationServerIndex]?.url;
|
|
1321
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1322
|
-
},
|
|
1323
|
-
/**
|
|
1324
|
-
*
|
|
1325
|
-
* @summary Invalidates the session.
|
|
1326
|
-
* @param {*} [options] Override http request option.
|
|
1327
|
-
* @throws {RequiredError}
|
|
1328
|
-
*/
|
|
1329
|
-
async routesLogout(options) {
|
|
1330
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesLogout(options);
|
|
1331
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1332
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesLogout"]?.[localVarOperationServerIndex]?.url;
|
|
1333
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1334
|
-
},
|
|
1335
|
-
/**
|
|
1336
|
-
*
|
|
1337
|
-
* @summary Deletes description of a media
|
|
1338
|
-
* @param {string} mediaUuid Media UUID
|
|
1339
|
-
* @param {*} [options] Override http request option.
|
|
1340
|
-
* @throws {RequiredError}
|
|
1341
|
-
*/
|
|
1342
|
-
async routesMediaDeleteDescription(mediaUuid, options) {
|
|
1343
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesMediaDeleteDescription(mediaUuid, options);
|
|
1344
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1345
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesMediaDeleteDescription"]?.[localVarOperationServerIndex]?.url;
|
|
1346
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1347
|
-
},
|
|
1348
|
-
/**
|
|
1349
|
-
*
|
|
1350
|
-
* @summary Likes the media.
|
|
1351
|
-
* @param {string} mediaUuid Media UUID
|
|
1352
|
-
* @param {*} [options] Override http request option.
|
|
1353
|
-
* @throws {RequiredError}
|
|
1354
|
-
*/
|
|
1355
|
-
async routesMediaLike(mediaUuid, options) {
|
|
1356
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesMediaLike(mediaUuid, options);
|
|
1357
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1358
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesMediaLike"]?.[localVarOperationServerIndex]?.url;
|
|
1359
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1360
|
-
},
|
|
1361
|
-
/**
|
|
1362
|
-
*
|
|
1363
|
-
* @summary Gets a list of all media
|
|
1364
|
-
* @param {*} [options] Override http request option.
|
|
1365
|
-
* @throws {RequiredError}
|
|
1366
|
-
*/
|
|
1367
|
-
async routesMediaStructure(options) {
|
|
1368
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesMediaStructure(options);
|
|
1369
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1370
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesMediaStructure"]?.[localVarOperationServerIndex]?.url;
|
|
1371
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1372
|
-
},
|
|
1373
|
-
/**
|
|
1374
|
-
*
|
|
1375
|
-
* @summary Unlikes the media.
|
|
1376
|
-
* @param {string} mediaUuid Media UUID
|
|
1377
|
-
* @param {*} [options] Override http request option.
|
|
1378
|
-
* @throws {RequiredError}
|
|
1379
|
-
*/
|
|
1380
|
-
async routesMediaUnlike(mediaUuid, options) {
|
|
1381
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesMediaUnlike(mediaUuid, options);
|
|
1382
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1383
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesMediaUnlike"]?.[localVarOperationServerIndex]?.url;
|
|
1384
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1385
|
-
},
|
|
1386
|
-
/**
|
|
1387
|
-
*
|
|
1388
|
-
* @summary Updates description of a media
|
|
1389
|
-
* @param {string} mediaUuid Media UUID
|
|
1390
|
-
* @param {MediaDescription} mediaDescription
|
|
1391
|
-
* @param {*} [options] Override http request option.
|
|
1392
|
-
* @throws {RequiredError}
|
|
1393
|
-
*/
|
|
1394
|
-
async routesMediaUpdateDescription(mediaUuid, mediaDescription, options) {
|
|
1395
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesMediaUpdateDescription(mediaUuid, mediaDescription, options);
|
|
1396
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1397
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesMediaUpdateDescription"]?.[localVarOperationServerIndex]?.url;
|
|
1398
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1399
|
-
},
|
|
1400
|
-
/**
|
|
1401
|
-
*
|
|
1402
|
-
* @param {string} provider OIDC provider key
|
|
1403
|
-
* @param {string} code Authorization code
|
|
1404
|
-
* @param {string} state CSRF state
|
|
1405
|
-
* @param {*} [options] Override http request option.
|
|
1406
|
-
* @throws {RequiredError}
|
|
1407
|
-
*/
|
|
1408
|
-
async routesOidcCallback(provider, code, state, options) {
|
|
1409
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesOidcCallback(provider, code, state, options);
|
|
1410
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1411
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesOidcCallback"]?.[localVarOperationServerIndex]?.url;
|
|
1412
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1413
|
-
},
|
|
1414
|
-
/**
|
|
1415
|
-
*
|
|
1416
|
-
* @param {string} provider OIDC provider key
|
|
1417
|
-
* @param {*} [options] Override http request option.
|
|
1418
|
-
* @throws {RequiredError}
|
|
1419
|
-
*/
|
|
1420
|
-
async routesOidcLogin(provider, options) {
|
|
1421
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesOidcLogin(provider, options);
|
|
1422
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1423
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesOidcLogin"]?.[localVarOperationServerIndex]?.url;
|
|
1424
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1425
|
-
},
|
|
1426
|
-
/**
|
|
1427
|
-
*
|
|
1428
|
-
* @summary Issues a new access token when a valid refresh token is attached
|
|
1429
|
-
* @param {*} [options] Override http request option.
|
|
1430
|
-
* @throws {RequiredError}
|
|
1431
|
-
*/
|
|
1432
|
-
async routesRefreshToken(options) {
|
|
1433
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesRefreshToken(options);
|
|
1434
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1435
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesRefreshToken"]?.[localVarOperationServerIndex]?.url;
|
|
1436
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1437
|
-
},
|
|
1438
|
-
/**
|
|
1439
|
-
*
|
|
1440
|
-
* @summary Searches for new media
|
|
1441
|
-
* @param {*} [options] Override http request option.
|
|
1442
|
-
* @throws {RequiredError}
|
|
1443
|
-
*/
|
|
1444
|
-
async routesScanMedia(options) {
|
|
1445
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesScanMedia(options);
|
|
1446
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1447
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesScanMedia"]?.[localVarOperationServerIndex]?.url;
|
|
1448
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1449
|
-
},
|
|
1450
|
-
/**
|
|
1451
|
-
*
|
|
1452
|
-
* @summary Returns the public system information.
|
|
1453
|
-
* @param {*} [options] Override http request option.
|
|
1454
|
-
* @throws {RequiredError}
|
|
1455
|
-
*/
|
|
1456
|
-
async routesSystemInfoPublic(options) {
|
|
1457
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesSystemInfoPublic(options);
|
|
1458
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1459
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesSystemInfoPublic"]?.[localVarOperationServerIndex]?.url;
|
|
1460
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1461
|
-
},
|
|
1462
|
-
/**
|
|
1463
|
-
*
|
|
1464
|
-
* @summary Updates already existing album
|
|
1465
|
-
* @param {string} albumUuid Album UUID
|
|
1466
|
-
* @param {AlbumUpdateData} albumUpdateData
|
|
1467
|
-
* @param {*} [options] Override http request option.
|
|
1468
|
-
* @throws {RequiredError}
|
|
1469
|
-
*/
|
|
1470
|
-
async routesUpdateAlbum(albumUuid, albumUpdateData, options) {
|
|
1471
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesUpdateAlbum(albumUuid, albumUpdateData, options);
|
|
1472
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1473
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesUpdateAlbum"]?.[localVarOperationServerIndex]?.url;
|
|
1474
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1475
|
-
},
|
|
1476
|
-
/**
|
|
1477
|
-
*
|
|
1478
|
-
* @summary Updates already existing album share link.
|
|
1479
|
-
* @param {string} albumShareLinkUuid Album Share Link UUID
|
|
1480
|
-
* @param {AlbumShareLinkInsert} albumShareLinkInsert
|
|
1481
|
-
* @param {*} [options] Override http request option.
|
|
1482
|
-
* @throws {RequiredError}
|
|
1483
|
-
*/
|
|
1484
|
-
async routesUpdateAlbumShareLink(albumShareLinkUuid, albumShareLinkInsert, options) {
|
|
1485
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.routesUpdateAlbumShareLink(albumShareLinkUuid, albumShareLinkInsert, options);
|
|
1486
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1487
|
-
const localVarOperationServerBasePath = base_1.operationServerMap["DefaultApi.routesUpdateAlbumShareLink"]?.[localVarOperationServerIndex]?.url;
|
|
1488
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1489
|
-
},
|
|
1490
|
-
};
|
|
1491
|
-
};
|
|
1492
|
-
exports.DefaultApiFp = DefaultApiFp;
|
|
1493
|
-
/**
|
|
1494
|
-
* DefaultApi - factory interface
|
|
1495
|
-
*/
|
|
1496
|
-
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
1497
|
-
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
1498
|
-
return {
|
|
1499
|
-
/**
|
|
1500
|
-
*
|
|
1501
|
-
* @summary Adds media to an album
|
|
1502
|
-
* @param {DefaultApiRoutesAlbumAddMediaRequest} requestParameters Request parameters.
|
|
1503
|
-
* @param {*} [options] Override http request option.
|
|
1504
|
-
* @throws {RequiredError}
|
|
1505
|
-
*/
|
|
1506
|
-
routesAlbumAddMedia(requestParameters, options) {
|
|
1507
|
-
return localVarFp
|
|
1508
|
-
.routesAlbumAddMedia(requestParameters.albumAddMedia, options)
|
|
1509
|
-
.then((request) => request(axios, basePath));
|
|
1510
|
-
},
|
|
1511
|
-
/**
|
|
1512
|
-
*
|
|
1513
|
-
* @summary Creates a new album
|
|
1514
|
-
* @param {DefaultApiRoutesCreateAlbumRequest} requestParameters Request parameters.
|
|
1515
|
-
* @param {*} [options] Override http request option.
|
|
1516
|
-
* @throws {RequiredError}
|
|
1517
|
-
*/
|
|
1518
|
-
routesCreateAlbum(requestParameters, options) {
|
|
1519
|
-
return localVarFp
|
|
1520
|
-
.routesCreateAlbum(requestParameters.albumInsertData, options)
|
|
1521
|
-
.then((request) => request(axios, basePath));
|
|
1522
|
-
},
|
|
1523
|
-
/**
|
|
1524
|
-
*
|
|
1525
|
-
* @summary Creates a new album share link.
|
|
1526
|
-
* @param {DefaultApiRoutesCreateAlbumShareLinkRequest} requestParameters Request parameters.
|
|
1527
|
-
* @param {*} [options] Override http request option.
|
|
1528
|
-
* @throws {RequiredError}
|
|
1529
|
-
*/
|
|
1530
|
-
routesCreateAlbumShareLink(requestParameters, options) {
|
|
1531
|
-
return localVarFp
|
|
1532
|
-
.routesCreateAlbumShareLink(requestParameters.albumUuid, requestParameters.albumShareLinkInsert, options)
|
|
1533
|
-
.then((request) => request(axios, basePath));
|
|
1534
|
-
},
|
|
1535
|
-
/**
|
|
1536
|
-
*
|
|
1537
|
-
* @summary Creates a new user
|
|
1538
|
-
* @param {DefaultApiRoutesCreateUserRequest} requestParameters Request parameters.
|
|
1539
|
-
* @param {*} [options] Override http request option.
|
|
1540
|
-
* @throws {RequiredError}
|
|
1541
|
-
*/
|
|
1542
|
-
routesCreateUser(requestParameters, options) {
|
|
1543
|
-
return localVarFp
|
|
1544
|
-
.routesCreateUser(requestParameters.userInsert, options)
|
|
1545
|
-
.then((request) => request(axios, basePath));
|
|
1546
|
-
},
|
|
1547
|
-
/**
|
|
1548
|
-
*
|
|
1549
|
-
* @summary Deletes an album
|
|
1550
|
-
* @param {DefaultApiRoutesDeleteAlbumRequest} requestParameters Request parameters.
|
|
1551
|
-
* @param {*} [options] Override http request option.
|
|
1552
|
-
* @throws {RequiredError}
|
|
1553
|
-
*/
|
|
1554
|
-
routesDeleteAlbum(requestParameters, options) {
|
|
1555
|
-
return localVarFp
|
|
1556
|
-
.routesDeleteAlbum(requestParameters.albumUuid, options)
|
|
1557
|
-
.then((request) => request(axios, basePath));
|
|
1558
|
-
},
|
|
1559
|
-
/**
|
|
1560
|
-
*
|
|
1561
|
-
* @summary Deletes an album share link.
|
|
1562
|
-
* @param {DefaultApiRoutesDeleteAlbumShareLinkRequest} requestParameters Request parameters.
|
|
1563
|
-
* @param {*} [options] Override http request option.
|
|
1564
|
-
* @throws {RequiredError}
|
|
1565
|
-
*/
|
|
1566
|
-
routesDeleteAlbumShareLink(requestParameters, options) {
|
|
1567
|
-
return localVarFp
|
|
1568
|
-
.routesDeleteAlbumShareLink(requestParameters.albumShareLinkUuid, options)
|
|
1569
|
-
.then((request) => request(axios, basePath));
|
|
1570
|
-
},
|
|
1571
|
-
/**
|
|
1572
|
-
*
|
|
1573
|
-
* @summary Retrieves a list of albums of an authenticated user
|
|
1574
|
-
* @param {*} [options] Override http request option.
|
|
1575
|
-
* @throws {RequiredError}
|
|
1576
|
-
*/
|
|
1577
|
-
routesGetAlbumList(options) {
|
|
1578
|
-
return localVarFp
|
|
1579
|
-
.routesGetAlbumList(options)
|
|
1580
|
-
.then((request) => request(axios, basePath));
|
|
1581
|
-
},
|
|
1582
|
-
/**
|
|
1583
|
-
*
|
|
1584
|
-
* @summary Gets basic information about album share link.
|
|
1585
|
-
* @param {DefaultApiRoutesGetAlbumShareLinkRequest} requestParameters Request parameters.
|
|
1586
|
-
* @param {*} [options] Override http request option.
|
|
1587
|
-
* @throws {RequiredError}
|
|
1588
|
-
*/
|
|
1589
|
-
routesGetAlbumShareLink(requestParameters, options) {
|
|
1590
|
-
return localVarFp
|
|
1591
|
-
.routesGetAlbumShareLink(requestParameters.albumShareLinkUuid, options)
|
|
1592
|
-
.then((request) => request(axios, basePath));
|
|
1593
|
-
},
|
|
1594
|
-
/**
|
|
1595
|
-
*
|
|
1596
|
-
* @summary Gets a list of album share links.
|
|
1597
|
-
* @param {DefaultApiRoutesGetAlbumShareLinksRequest} requestParameters Request parameters.
|
|
1598
|
-
* @param {*} [options] Override http request option.
|
|
1599
|
-
* @throws {RequiredError}
|
|
1600
|
-
*/
|
|
1601
|
-
routesGetAlbumShareLinks(requestParameters, options) {
|
|
1602
|
-
return localVarFp
|
|
1603
|
-
.routesGetAlbumShareLinks(requestParameters.albumUuid, options)
|
|
1604
|
-
.then((request) => request(axios, basePath));
|
|
1605
|
-
},
|
|
1606
|
-
/**
|
|
1607
|
-
*
|
|
1608
|
-
* @summary Gets a list of media in an album
|
|
1609
|
-
* @param {DefaultApiRoutesGetAlbumStructureRequest} requestParameters Request parameters.
|
|
1610
|
-
* @param {*} [options] Override http request option.
|
|
1611
|
-
* @throws {RequiredError}
|
|
1612
|
-
*/
|
|
1613
|
-
routesGetAlbumStructure(requestParameters, options) {
|
|
1614
|
-
return localVarFp
|
|
1615
|
-
.routesGetAlbumStructure(requestParameters.albumUuid, options)
|
|
1616
|
-
.then((request) => request(axios, basePath));
|
|
1617
|
-
},
|
|
1618
|
-
/**
|
|
1619
|
-
*
|
|
1620
|
-
* @summary Returns a media
|
|
1621
|
-
* @param {DefaultApiRoutesGetMediaByUuidRequest} requestParameters Request parameters.
|
|
1622
|
-
* @param {*} [options] Override http request option.
|
|
1623
|
-
* @throws {RequiredError}
|
|
1624
|
-
*/
|
|
1625
|
-
routesGetMediaByUuid(requestParameters, options) {
|
|
1626
|
-
return localVarFp
|
|
1627
|
-
.routesGetMediaByUuid(requestParameters.mediaUuid, options)
|
|
1628
|
-
.then((request) => request(axios, basePath));
|
|
1629
|
-
},
|
|
1630
|
-
/**
|
|
1631
|
-
*
|
|
1632
|
-
* @summary Returns a list of liked media.
|
|
1633
|
-
* @param {*} [options] Override http request option.
|
|
1634
|
-
* @throws {RequiredError}
|
|
1635
|
-
*/
|
|
1636
|
-
routesGetMediaLikedList(options) {
|
|
1637
|
-
return localVarFp
|
|
1638
|
-
.routesGetMediaLikedList(options)
|
|
1639
|
-
.then((request) => request(axios, basePath));
|
|
1640
|
-
},
|
|
1641
|
-
/**
|
|
1642
|
-
*
|
|
1643
|
-
* @summary Returns server configuration
|
|
1644
|
-
* @param {*} [options] Override http request option.
|
|
1645
|
-
* @throws {RequiredError}
|
|
1646
|
-
*/
|
|
1647
|
-
routesGetServerConfig(options) {
|
|
1648
|
-
return localVarFp
|
|
1649
|
-
.routesGetServerConfig(options)
|
|
1650
|
-
.then((request) => request(axios, basePath));
|
|
1651
|
-
},
|
|
1652
|
-
/**
|
|
1653
|
-
*
|
|
1654
|
-
* @param {*} [options] Override http request option.
|
|
1655
|
-
* @throws {RequiredError}
|
|
1656
|
-
*/
|
|
1657
|
-
routesHealth(options) {
|
|
1658
|
-
return localVarFp
|
|
1659
|
-
.routesHealth(options)
|
|
1660
|
-
.then((request) => request(axios, basePath));
|
|
1661
|
-
},
|
|
1662
|
-
/**
|
|
1663
|
-
*
|
|
1664
|
-
* @summary You must provide either a username or an email together with a password.
|
|
1665
|
-
* @param {DefaultApiRoutesLoginRequest} requestParameters Request parameters.
|
|
1666
|
-
* @param {*} [options] Override http request option.
|
|
1667
|
-
* @throws {RequiredError}
|
|
1668
|
-
*/
|
|
1669
|
-
routesLogin(requestParameters, options) {
|
|
1670
|
-
return localVarFp
|
|
1671
|
-
.routesLogin(requestParameters.userLogin, options)
|
|
1672
|
-
.then((request) => request(axios, basePath));
|
|
1673
|
-
},
|
|
1674
|
-
/**
|
|
1675
|
-
*
|
|
1676
|
-
* @summary Invalidates the session.
|
|
1677
|
-
* @param {*} [options] Override http request option.
|
|
1678
|
-
* @throws {RequiredError}
|
|
1679
|
-
*/
|
|
1680
|
-
routesLogout(options) {
|
|
1681
|
-
return localVarFp
|
|
1682
|
-
.routesLogout(options)
|
|
1683
|
-
.then((request) => request(axios, basePath));
|
|
1684
|
-
},
|
|
1685
|
-
/**
|
|
1686
|
-
*
|
|
1687
|
-
* @summary Deletes description of a media
|
|
1688
|
-
* @param {DefaultApiRoutesMediaDeleteDescriptionRequest} requestParameters Request parameters.
|
|
1689
|
-
* @param {*} [options] Override http request option.
|
|
1690
|
-
* @throws {RequiredError}
|
|
1691
|
-
*/
|
|
1692
|
-
routesMediaDeleteDescription(requestParameters, options) {
|
|
1693
|
-
return localVarFp
|
|
1694
|
-
.routesMediaDeleteDescription(requestParameters.mediaUuid, options)
|
|
1695
|
-
.then((request) => request(axios, basePath));
|
|
1696
|
-
},
|
|
1697
|
-
/**
|
|
1698
|
-
*
|
|
1699
|
-
* @summary Likes the media.
|
|
1700
|
-
* @param {DefaultApiRoutesMediaLikeRequest} requestParameters Request parameters.
|
|
1701
|
-
* @param {*} [options] Override http request option.
|
|
1702
|
-
* @throws {RequiredError}
|
|
1703
|
-
*/
|
|
1704
|
-
routesMediaLike(requestParameters, options) {
|
|
1705
|
-
return localVarFp
|
|
1706
|
-
.routesMediaLike(requestParameters.mediaUuid, options)
|
|
1707
|
-
.then((request) => request(axios, basePath));
|
|
1708
|
-
},
|
|
1709
|
-
/**
|
|
1710
|
-
*
|
|
1711
|
-
* @summary Gets a list of all media
|
|
1712
|
-
* @param {*} [options] Override http request option.
|
|
1713
|
-
* @throws {RequiredError}
|
|
1714
|
-
*/
|
|
1715
|
-
routesMediaStructure(options) {
|
|
1716
|
-
return localVarFp
|
|
1717
|
-
.routesMediaStructure(options)
|
|
1718
|
-
.then((request) => request(axios, basePath));
|
|
1719
|
-
},
|
|
1720
|
-
/**
|
|
1721
|
-
*
|
|
1722
|
-
* @summary Unlikes the media.
|
|
1723
|
-
* @param {DefaultApiRoutesMediaUnlikeRequest} requestParameters Request parameters.
|
|
1724
|
-
* @param {*} [options] Override http request option.
|
|
1725
|
-
* @throws {RequiredError}
|
|
1726
|
-
*/
|
|
1727
|
-
routesMediaUnlike(requestParameters, options) {
|
|
1728
|
-
return localVarFp
|
|
1729
|
-
.routesMediaUnlike(requestParameters.mediaUuid, options)
|
|
1730
|
-
.then((request) => request(axios, basePath));
|
|
1731
|
-
},
|
|
1732
|
-
/**
|
|
1733
|
-
*
|
|
1734
|
-
* @summary Updates description of a media
|
|
1735
|
-
* @param {DefaultApiRoutesMediaUpdateDescriptionRequest} requestParameters Request parameters.
|
|
1736
|
-
* @param {*} [options] Override http request option.
|
|
1737
|
-
* @throws {RequiredError}
|
|
1738
|
-
*/
|
|
1739
|
-
routesMediaUpdateDescription(requestParameters, options) {
|
|
1740
|
-
return localVarFp
|
|
1741
|
-
.routesMediaUpdateDescription(requestParameters.mediaUuid, requestParameters.mediaDescription, options)
|
|
1742
|
-
.then((request) => request(axios, basePath));
|
|
1743
|
-
},
|
|
1744
|
-
/**
|
|
1745
|
-
*
|
|
1746
|
-
* @param {DefaultApiRoutesOidcCallbackRequest} requestParameters Request parameters.
|
|
1747
|
-
* @param {*} [options] Override http request option.
|
|
1748
|
-
* @throws {RequiredError}
|
|
1749
|
-
*/
|
|
1750
|
-
routesOidcCallback(requestParameters, options) {
|
|
1751
|
-
return localVarFp
|
|
1752
|
-
.routesOidcCallback(requestParameters.provider, requestParameters.code, requestParameters.state, options)
|
|
1753
|
-
.then((request) => request(axios, basePath));
|
|
1754
|
-
},
|
|
1755
|
-
/**
|
|
1756
|
-
*
|
|
1757
|
-
* @param {DefaultApiRoutesOidcLoginRequest} requestParameters Request parameters.
|
|
1758
|
-
* @param {*} [options] Override http request option.
|
|
1759
|
-
* @throws {RequiredError}
|
|
1760
|
-
*/
|
|
1761
|
-
routesOidcLogin(requestParameters, options) {
|
|
1762
|
-
return localVarFp
|
|
1763
|
-
.routesOidcLogin(requestParameters.provider, options)
|
|
1764
|
-
.then((request) => request(axios, basePath));
|
|
1765
|
-
},
|
|
1766
|
-
/**
|
|
1767
|
-
*
|
|
1768
|
-
* @summary Issues a new access token when a valid refresh token is attached
|
|
1769
|
-
* @param {*} [options] Override http request option.
|
|
1770
|
-
* @throws {RequiredError}
|
|
1771
|
-
*/
|
|
1772
|
-
routesRefreshToken(options) {
|
|
1773
|
-
return localVarFp
|
|
1774
|
-
.routesRefreshToken(options)
|
|
1775
|
-
.then((request) => request(axios, basePath));
|
|
1776
|
-
},
|
|
1777
|
-
/**
|
|
1778
|
-
*
|
|
1779
|
-
* @summary Searches for new media
|
|
1780
|
-
* @param {*} [options] Override http request option.
|
|
1781
|
-
* @throws {RequiredError}
|
|
1782
|
-
*/
|
|
1783
|
-
routesScanMedia(options) {
|
|
1784
|
-
return localVarFp
|
|
1785
|
-
.routesScanMedia(options)
|
|
1786
|
-
.then((request) => request(axios, basePath));
|
|
1787
|
-
},
|
|
1788
|
-
/**
|
|
1789
|
-
*
|
|
1790
|
-
* @summary Returns the public system information.
|
|
1791
|
-
* @param {*} [options] Override http request option.
|
|
1792
|
-
* @throws {RequiredError}
|
|
1793
|
-
*/
|
|
1794
|
-
routesSystemInfoPublic(options) {
|
|
1795
|
-
return localVarFp
|
|
1796
|
-
.routesSystemInfoPublic(options)
|
|
1797
|
-
.then((request) => request(axios, basePath));
|
|
1798
|
-
},
|
|
1799
|
-
/**
|
|
1800
|
-
*
|
|
1801
|
-
* @summary Updates already existing album
|
|
1802
|
-
* @param {DefaultApiRoutesUpdateAlbumRequest} requestParameters Request parameters.
|
|
1803
|
-
* @param {*} [options] Override http request option.
|
|
1804
|
-
* @throws {RequiredError}
|
|
1805
|
-
*/
|
|
1806
|
-
routesUpdateAlbum(requestParameters, options) {
|
|
1807
|
-
return localVarFp
|
|
1808
|
-
.routesUpdateAlbum(requestParameters.albumUuid, requestParameters.albumUpdateData, options)
|
|
1809
|
-
.then((request) => request(axios, basePath));
|
|
1810
|
-
},
|
|
1811
|
-
/**
|
|
1812
|
-
*
|
|
1813
|
-
* @summary Updates already existing album share link.
|
|
1814
|
-
* @param {DefaultApiRoutesUpdateAlbumShareLinkRequest} requestParameters Request parameters.
|
|
1815
|
-
* @param {*} [options] Override http request option.
|
|
1816
|
-
* @throws {RequiredError}
|
|
1817
|
-
*/
|
|
1818
|
-
routesUpdateAlbumShareLink(requestParameters, options) {
|
|
1819
|
-
return localVarFp
|
|
1820
|
-
.routesUpdateAlbumShareLink(requestParameters.albumShareLinkUuid, requestParameters.albumShareLinkInsert, options)
|
|
1821
|
-
.then((request) => request(axios, basePath));
|
|
1822
|
-
},
|
|
1823
|
-
};
|
|
1824
|
-
};
|
|
1825
|
-
exports.DefaultApiFactory = DefaultApiFactory;
|
|
1826
|
-
/**
|
|
1827
|
-
* DefaultApi - object-oriented interface
|
|
1828
|
-
*/
|
|
1829
|
-
class DefaultApi extends base_1.BaseAPI {
|
|
1830
|
-
/**
|
|
1831
|
-
*
|
|
1832
|
-
* @summary Adds media to an album
|
|
1833
|
-
* @param {DefaultApiRoutesAlbumAddMediaRequest} requestParameters Request parameters.
|
|
1834
|
-
* @param {*} [options] Override http request option.
|
|
1835
|
-
* @throws {RequiredError}
|
|
1836
|
-
*/
|
|
1837
|
-
routesAlbumAddMedia(requestParameters, options) {
|
|
1838
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1839
|
-
.routesAlbumAddMedia(requestParameters.albumAddMedia, options)
|
|
1840
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1841
|
-
}
|
|
1842
|
-
/**
|
|
1843
|
-
*
|
|
1844
|
-
* @summary Creates a new album
|
|
1845
|
-
* @param {DefaultApiRoutesCreateAlbumRequest} requestParameters Request parameters.
|
|
1846
|
-
* @param {*} [options] Override http request option.
|
|
1847
|
-
* @throws {RequiredError}
|
|
1848
|
-
*/
|
|
1849
|
-
routesCreateAlbum(requestParameters, options) {
|
|
1850
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1851
|
-
.routesCreateAlbum(requestParameters.albumInsertData, options)
|
|
1852
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1853
|
-
}
|
|
1854
|
-
/**
|
|
1855
|
-
*
|
|
1856
|
-
* @summary Creates a new album share link.
|
|
1857
|
-
* @param {DefaultApiRoutesCreateAlbumShareLinkRequest} requestParameters Request parameters.
|
|
1858
|
-
* @param {*} [options] Override http request option.
|
|
1859
|
-
* @throws {RequiredError}
|
|
1860
|
-
*/
|
|
1861
|
-
routesCreateAlbumShareLink(requestParameters, options) {
|
|
1862
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1863
|
-
.routesCreateAlbumShareLink(requestParameters.albumUuid, requestParameters.albumShareLinkInsert, options)
|
|
1864
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1865
|
-
}
|
|
1866
|
-
/**
|
|
1867
|
-
*
|
|
1868
|
-
* @summary Creates a new user
|
|
1869
|
-
* @param {DefaultApiRoutesCreateUserRequest} requestParameters Request parameters.
|
|
1870
|
-
* @param {*} [options] Override http request option.
|
|
1871
|
-
* @throws {RequiredError}
|
|
1872
|
-
*/
|
|
1873
|
-
routesCreateUser(requestParameters, options) {
|
|
1874
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1875
|
-
.routesCreateUser(requestParameters.userInsert, options)
|
|
1876
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1877
|
-
}
|
|
1878
|
-
/**
|
|
1879
|
-
*
|
|
1880
|
-
* @summary Deletes an album
|
|
1881
|
-
* @param {DefaultApiRoutesDeleteAlbumRequest} requestParameters Request parameters.
|
|
1882
|
-
* @param {*} [options] Override http request option.
|
|
1883
|
-
* @throws {RequiredError}
|
|
1884
|
-
*/
|
|
1885
|
-
routesDeleteAlbum(requestParameters, options) {
|
|
1886
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1887
|
-
.routesDeleteAlbum(requestParameters.albumUuid, options)
|
|
1888
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1889
|
-
}
|
|
1890
|
-
/**
|
|
1891
|
-
*
|
|
1892
|
-
* @summary Deletes an album share link.
|
|
1893
|
-
* @param {DefaultApiRoutesDeleteAlbumShareLinkRequest} requestParameters Request parameters.
|
|
1894
|
-
* @param {*} [options] Override http request option.
|
|
1895
|
-
* @throws {RequiredError}
|
|
1896
|
-
*/
|
|
1897
|
-
routesDeleteAlbumShareLink(requestParameters, options) {
|
|
1898
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1899
|
-
.routesDeleteAlbumShareLink(requestParameters.albumShareLinkUuid, options)
|
|
1900
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1901
|
-
}
|
|
1902
|
-
/**
|
|
1903
|
-
*
|
|
1904
|
-
* @summary Retrieves a list of albums of an authenticated user
|
|
1905
|
-
* @param {*} [options] Override http request option.
|
|
1906
|
-
* @throws {RequiredError}
|
|
1907
|
-
*/
|
|
1908
|
-
routesGetAlbumList(options) {
|
|
1909
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1910
|
-
.routesGetAlbumList(options)
|
|
1911
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1912
|
-
}
|
|
1913
|
-
/**
|
|
1914
|
-
*
|
|
1915
|
-
* @summary Gets basic information about album share link.
|
|
1916
|
-
* @param {DefaultApiRoutesGetAlbumShareLinkRequest} requestParameters Request parameters.
|
|
1917
|
-
* @param {*} [options] Override http request option.
|
|
1918
|
-
* @throws {RequiredError}
|
|
1919
|
-
*/
|
|
1920
|
-
routesGetAlbumShareLink(requestParameters, options) {
|
|
1921
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1922
|
-
.routesGetAlbumShareLink(requestParameters.albumShareLinkUuid, options)
|
|
1923
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1924
|
-
}
|
|
1925
|
-
/**
|
|
1926
|
-
*
|
|
1927
|
-
* @summary Gets a list of album share links.
|
|
1928
|
-
* @param {DefaultApiRoutesGetAlbumShareLinksRequest} requestParameters Request parameters.
|
|
1929
|
-
* @param {*} [options] Override http request option.
|
|
1930
|
-
* @throws {RequiredError}
|
|
1931
|
-
*/
|
|
1932
|
-
routesGetAlbumShareLinks(requestParameters, options) {
|
|
1933
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1934
|
-
.routesGetAlbumShareLinks(requestParameters.albumUuid, options)
|
|
1935
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1936
|
-
}
|
|
1937
|
-
/**
|
|
1938
|
-
*
|
|
1939
|
-
* @summary Gets a list of media in an album
|
|
1940
|
-
* @param {DefaultApiRoutesGetAlbumStructureRequest} requestParameters Request parameters.
|
|
1941
|
-
* @param {*} [options] Override http request option.
|
|
1942
|
-
* @throws {RequiredError}
|
|
1943
|
-
*/
|
|
1944
|
-
routesGetAlbumStructure(requestParameters, options) {
|
|
1945
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1946
|
-
.routesGetAlbumStructure(requestParameters.albumUuid, options)
|
|
1947
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1948
|
-
}
|
|
1949
|
-
/**
|
|
1950
|
-
*
|
|
1951
|
-
* @summary Returns a media
|
|
1952
|
-
* @param {DefaultApiRoutesGetMediaByUuidRequest} requestParameters Request parameters.
|
|
1953
|
-
* @param {*} [options] Override http request option.
|
|
1954
|
-
* @throws {RequiredError}
|
|
1955
|
-
*/
|
|
1956
|
-
routesGetMediaByUuid(requestParameters, options) {
|
|
1957
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1958
|
-
.routesGetMediaByUuid(requestParameters.mediaUuid, options)
|
|
1959
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1960
|
-
}
|
|
1961
|
-
/**
|
|
1962
|
-
*
|
|
1963
|
-
* @summary Returns a list of liked media.
|
|
1964
|
-
* @param {*} [options] Override http request option.
|
|
1965
|
-
* @throws {RequiredError}
|
|
1966
|
-
*/
|
|
1967
|
-
routesGetMediaLikedList(options) {
|
|
1968
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1969
|
-
.routesGetMediaLikedList(options)
|
|
1970
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1971
|
-
}
|
|
1972
|
-
/**
|
|
1973
|
-
*
|
|
1974
|
-
* @summary Returns server configuration
|
|
1975
|
-
* @param {*} [options] Override http request option.
|
|
1976
|
-
* @throws {RequiredError}
|
|
1977
|
-
*/
|
|
1978
|
-
routesGetServerConfig(options) {
|
|
1979
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1980
|
-
.routesGetServerConfig(options)
|
|
1981
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1982
|
-
}
|
|
1983
|
-
/**
|
|
1984
|
-
*
|
|
1985
|
-
* @param {*} [options] Override http request option.
|
|
1986
|
-
* @throws {RequiredError}
|
|
1987
|
-
*/
|
|
1988
|
-
routesHealth(options) {
|
|
1989
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1990
|
-
.routesHealth(options)
|
|
1991
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1992
|
-
}
|
|
1993
|
-
/**
|
|
1994
|
-
*
|
|
1995
|
-
* @summary You must provide either a username or an email together with a password.
|
|
1996
|
-
* @param {DefaultApiRoutesLoginRequest} requestParameters Request parameters.
|
|
1997
|
-
* @param {*} [options] Override http request option.
|
|
1998
|
-
* @throws {RequiredError}
|
|
1999
|
-
*/
|
|
2000
|
-
routesLogin(requestParameters, options) {
|
|
2001
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
2002
|
-
.routesLogin(requestParameters.userLogin, options)
|
|
2003
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2004
|
-
}
|
|
2005
|
-
/**
|
|
2006
|
-
*
|
|
2007
|
-
* @summary Invalidates the session.
|
|
2008
|
-
* @param {*} [options] Override http request option.
|
|
2009
|
-
* @throws {RequiredError}
|
|
2010
|
-
*/
|
|
2011
|
-
routesLogout(options) {
|
|
2012
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
2013
|
-
.routesLogout(options)
|
|
2014
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2015
|
-
}
|
|
2016
|
-
/**
|
|
2017
|
-
*
|
|
2018
|
-
* @summary Deletes description of a media
|
|
2019
|
-
* @param {DefaultApiRoutesMediaDeleteDescriptionRequest} requestParameters Request parameters.
|
|
2020
|
-
* @param {*} [options] Override http request option.
|
|
2021
|
-
* @throws {RequiredError}
|
|
2022
|
-
*/
|
|
2023
|
-
routesMediaDeleteDescription(requestParameters, options) {
|
|
2024
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
2025
|
-
.routesMediaDeleteDescription(requestParameters.mediaUuid, options)
|
|
2026
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2027
|
-
}
|
|
2028
|
-
/**
|
|
2029
|
-
*
|
|
2030
|
-
* @summary Likes the media.
|
|
2031
|
-
* @param {DefaultApiRoutesMediaLikeRequest} requestParameters Request parameters.
|
|
2032
|
-
* @param {*} [options] Override http request option.
|
|
2033
|
-
* @throws {RequiredError}
|
|
2034
|
-
*/
|
|
2035
|
-
routesMediaLike(requestParameters, options) {
|
|
2036
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
2037
|
-
.routesMediaLike(requestParameters.mediaUuid, options)
|
|
2038
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2039
|
-
}
|
|
2040
|
-
/**
|
|
2041
|
-
*
|
|
2042
|
-
* @summary Gets a list of all media
|
|
2043
|
-
* @param {*} [options] Override http request option.
|
|
2044
|
-
* @throws {RequiredError}
|
|
2045
|
-
*/
|
|
2046
|
-
routesMediaStructure(options) {
|
|
2047
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
2048
|
-
.routesMediaStructure(options)
|
|
2049
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2050
|
-
}
|
|
2051
|
-
/**
|
|
2052
|
-
*
|
|
2053
|
-
* @summary Unlikes the media.
|
|
2054
|
-
* @param {DefaultApiRoutesMediaUnlikeRequest} requestParameters Request parameters.
|
|
2055
|
-
* @param {*} [options] Override http request option.
|
|
2056
|
-
* @throws {RequiredError}
|
|
2057
|
-
*/
|
|
2058
|
-
routesMediaUnlike(requestParameters, options) {
|
|
2059
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
2060
|
-
.routesMediaUnlike(requestParameters.mediaUuid, options)
|
|
2061
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2062
|
-
}
|
|
2063
|
-
/**
|
|
2064
|
-
*
|
|
2065
|
-
* @summary Updates description of a media
|
|
2066
|
-
* @param {DefaultApiRoutesMediaUpdateDescriptionRequest} requestParameters Request parameters.
|
|
2067
|
-
* @param {*} [options] Override http request option.
|
|
2068
|
-
* @throws {RequiredError}
|
|
2069
|
-
*/
|
|
2070
|
-
routesMediaUpdateDescription(requestParameters, options) {
|
|
2071
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
2072
|
-
.routesMediaUpdateDescription(requestParameters.mediaUuid, requestParameters.mediaDescription, options)
|
|
2073
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2074
|
-
}
|
|
2075
|
-
/**
|
|
2076
|
-
*
|
|
2077
|
-
* @param {DefaultApiRoutesOidcCallbackRequest} requestParameters Request parameters.
|
|
2078
|
-
* @param {*} [options] Override http request option.
|
|
2079
|
-
* @throws {RequiredError}
|
|
2080
|
-
*/
|
|
2081
|
-
routesOidcCallback(requestParameters, options) {
|
|
2082
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
2083
|
-
.routesOidcCallback(requestParameters.provider, requestParameters.code, requestParameters.state, options)
|
|
2084
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2085
|
-
}
|
|
2086
|
-
/**
|
|
2087
|
-
*
|
|
2088
|
-
* @param {DefaultApiRoutesOidcLoginRequest} requestParameters Request parameters.
|
|
2089
|
-
* @param {*} [options] Override http request option.
|
|
2090
|
-
* @throws {RequiredError}
|
|
2091
|
-
*/
|
|
2092
|
-
routesOidcLogin(requestParameters, options) {
|
|
2093
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
2094
|
-
.routesOidcLogin(requestParameters.provider, options)
|
|
2095
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2096
|
-
}
|
|
2097
|
-
/**
|
|
2098
|
-
*
|
|
2099
|
-
* @summary Issues a new access token when a valid refresh token is attached
|
|
2100
|
-
* @param {*} [options] Override http request option.
|
|
2101
|
-
* @throws {RequiredError}
|
|
2102
|
-
*/
|
|
2103
|
-
routesRefreshToken(options) {
|
|
2104
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
2105
|
-
.routesRefreshToken(options)
|
|
2106
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2107
|
-
}
|
|
2108
|
-
/**
|
|
2109
|
-
*
|
|
2110
|
-
* @summary Searches for new media
|
|
2111
|
-
* @param {*} [options] Override http request option.
|
|
2112
|
-
* @throws {RequiredError}
|
|
2113
|
-
*/
|
|
2114
|
-
routesScanMedia(options) {
|
|
2115
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
2116
|
-
.routesScanMedia(options)
|
|
2117
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2118
|
-
}
|
|
2119
|
-
/**
|
|
2120
|
-
*
|
|
2121
|
-
* @summary Returns the public system information.
|
|
2122
|
-
* @param {*} [options] Override http request option.
|
|
2123
|
-
* @throws {RequiredError}
|
|
2124
|
-
*/
|
|
2125
|
-
routesSystemInfoPublic(options) {
|
|
2126
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
2127
|
-
.routesSystemInfoPublic(options)
|
|
2128
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2129
|
-
}
|
|
2130
|
-
/**
|
|
2131
|
-
*
|
|
2132
|
-
* @summary Updates already existing album
|
|
2133
|
-
* @param {DefaultApiRoutesUpdateAlbumRequest} requestParameters Request parameters.
|
|
2134
|
-
* @param {*} [options] Override http request option.
|
|
2135
|
-
* @throws {RequiredError}
|
|
2136
|
-
*/
|
|
2137
|
-
routesUpdateAlbum(requestParameters, options) {
|
|
2138
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
2139
|
-
.routesUpdateAlbum(requestParameters.albumUuid, requestParameters.albumUpdateData, options)
|
|
2140
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2141
|
-
}
|
|
2142
|
-
/**
|
|
2143
|
-
*
|
|
2144
|
-
* @summary Updates already existing album share link.
|
|
2145
|
-
* @param {DefaultApiRoutesUpdateAlbumShareLinkRequest} requestParameters Request parameters.
|
|
2146
|
-
* @param {*} [options] Override http request option.
|
|
2147
|
-
* @throws {RequiredError}
|
|
2148
|
-
*/
|
|
2149
|
-
routesUpdateAlbumShareLink(requestParameters, options) {
|
|
2150
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
2151
|
-
.routesUpdateAlbumShareLink(requestParameters.albumShareLinkUuid, requestParameters.albumShareLinkInsert, options)
|
|
2152
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2153
|
-
}
|
|
2154
|
-
}
|
|
2155
|
-
exports.DefaultApi = DefaultApi;
|
|
2156
|
-
//# sourceMappingURL=default-api.js.map
|