@agravity/private 7.3.1 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -4
- package/api/assetIconRuleManagement.agravity.ts +344 -150
- package/api/assetManagement.agravity.ts +709 -389
- package/api/assetOperations.agravity.ts +1414 -650
- package/api/assetPublishing.agravity.ts +562 -255
- package/api/assetVersioning.agravity.ts +598 -278
- package/api/authenticationManagement.agravity.ts +731 -274
- package/api/collectionManagement.agravity.ts +618 -309
- package/api/collectionShareManagement.agravity.ts +256 -121
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +271 -123
- package/api/collectionTypeManagement.agravity.ts +519 -250
- package/api/commentsManagement.agravity.ts +284 -90
- package/api/configurationManagement.agravity.ts +311 -128
- package/api/dashboardWidgetManagement.agravity.ts +342 -124
- package/api/dataImportExportManagement.agravity.ts +378 -148
- package/api/downloadFormatManagement.agravity.ts +450 -152
- package/api/downloadZip.agravity.ts +75 -30
- package/api/generalManagement.agravity.ts +374 -164
- package/api/helperTools.agravity.ts +804 -273
- package/api/historyEntryManagement.agravity.ts +75 -33
- package/api/iccProfileManagement.agravity.ts +64 -23
- package/api/listBlobs.agravity.ts +125 -47
- package/api/listQueues.agravity.ts +68 -24
- package/api/listTables.agravity.ts +68 -25
- package/api/permissionsManagement.agravity.ts +174 -77
- package/api/portalManagement.agravity.ts +511 -198
- package/api/publishing.agravity.ts +69 -38
- package/api/quickshareManagement.agravity.ts +349 -138
- package/api/savedSearchManagement.agravity.ts +205 -92
- package/api/searchManagement.agravity.ts +517 -297
- package/api/secureUpload.agravity.ts +325 -126
- package/api/signalRConnectionManagement.agravity.ts +175 -56
- package/api/staticDefinedListManagement.agravity.ts +342 -162
- package/api/stockImport.agravity.ts +138 -74
- package/api/structureImport.agravity.ts +68 -25
- package/api/translationManagement.agravity.ts +357 -206
- package/api/webAppData.agravity.ts +278 -88
- package/api/widgetLayoutManagement.agravity.ts +131 -47
- package/api/wordpressManagement.agravity.ts +152 -108
- package/api/workspaceManagement.agravity.ts +456 -197
- package/api.module.ts +0 -40
- package/configuration.ts +42 -0
- package/git_push.sh +3 -4
- package/index.ts +1 -0
- package/model/agravityErrorResponse.agravity.ts +3 -4
- package/model/agravityInfoResponse.agravity.ts +3 -4
- package/model/agravityUser.agravity.ts +16 -17
- package/model/agravityUserDto.agravity.ts +3 -4
- package/model/agravityVersion.agravity.ts +8 -9
- package/model/allWebAppData.agravity.ts +4 -5
- package/model/apiKeyResponse.agravity.ts +2 -3
- package/model/appConfigTableEntity.agravity.ts +8 -9
- package/model/artificialIntelligenceGroup.agravity.ts +3 -4
- package/model/asset.agravity.ts +22 -23
- package/model/assetAvailability.agravity.ts +1 -2
- package/model/assetBlob.agravity.ts +27 -28
- package/model/assetBulkUpdate.agravity.ts +2 -3
- package/model/assetCollectionLink.agravity.ts +2 -3
- package/model/assetIconRule.agravity.ts +17 -18
- package/model/assetIdFormat.agravity.ts +3 -4
- package/model/assetPageResult.agravity.ts +4 -5
- package/model/assetTextContent.agravity.ts +2 -3
- package/model/assetsOperationBody.agravity.ts +3 -4
- package/model/azSearchOptions.agravity.ts +8 -9
- package/model/azureIdentity.agravity.ts +4 -5
- package/model/blobInfoObj.agravity.ts +0 -1
- package/model/collTypeItem.agravity.ts +16 -17
- package/model/collTypeItemBlueprint.agravity.ts +12 -13
- package/model/collection.agravity.ts +15 -16
- package/model/collectionType.agravity.ts +14 -15
- package/model/collectionUDL.agravity.ts +4 -5
- package/model/collectionUDLListEntity.agravity.ts +9 -10
- package/model/collectionUDLReference.agravity.ts +3 -4
- package/model/comment.agravity.ts +9 -10
- package/model/createSftpUserResult.agravity.ts +2 -3
- package/model/dashboardWidget.agravity.ts +11 -12
- package/model/dataResult.agravity.ts +4 -5
- package/model/deletedEntities.agravity.ts +4 -5
- package/model/distZipResponse.agravity.ts +3 -4
- package/model/downloadFormat.agravity.ts +18 -16
- package/model/downloadObject.agravity.ts +16 -16
- package/model/downloadZipRequest.agravity.ts +9 -10
- package/model/dynamicImageOperation.agravity.ts +2 -3
- package/model/emailAddress.agravity.ts +2 -3
- package/model/entityId.agravity.ts +1 -2
- package/model/entityIdName.agravity.ts +3 -4
- package/model/entityTranslations.agravity.ts +2 -3
- package/model/excelExportTableEntity.agravity.ts +5 -5
- package/model/frontendAppConfig.agravity.ts +0 -1
- package/model/groupAllAppData.agravity.ts +5 -6
- package/model/historyEntry.agravity.ts +9 -10
- package/model/infoEntitySkillEnhanced.agravity.ts +10 -11
- package/model/metadata.agravity.ts +3 -4
- package/model/models.ts +0 -1
- package/model/moveCollectionBody.agravity.ts +3 -4
- package/model/permissionChange.agravity.ts +1 -2
- package/model/permissionEntity.agravity.ts +1 -2
- package/model/permissionSetting.agravity.ts +8 -9
- package/model/portal.agravity.ts +18 -20
- package/model/portalLinks.agravity.ts +3 -4
- package/model/portalTheme.agravity.ts +6 -7
- package/model/portalZipRequest.agravity.ts +14 -15
- package/model/publishEntity.agravity.ts +9 -10
- package/model/publishedAsset.agravity.ts +12 -13
- package/model/quickShare.agravity.ts +12 -13
- package/model/quickShareFull.agravity.ts +15 -16
- package/model/sasToken.agravity.ts +6 -7
- package/model/savedSearch.agravity.ts +13 -14
- package/model/searchAdminDataSourceStatus.agravity.ts +2 -3
- package/model/searchAdminIndexStatus.agravity.ts +3 -4
- package/model/searchAdminIndexerLastRun.agravity.ts +3 -4
- package/model/searchAdminIndexerStatus.agravity.ts +4 -5
- package/model/searchAdminSkillStatus.agravity.ts +2 -3
- package/model/searchAdminStatistics.agravity.ts +2 -3
- package/model/searchAdminStatus.agravity.ts +4 -5
- package/model/searchFacet.agravity.ts +2 -3
- package/model/searchFacetEntity.agravity.ts +2 -3
- package/model/searchResult.agravity.ts +3 -4
- package/model/searchableItem.agravity.ts +3 -4
- package/model/secureUploadEntity.agravity.ts +10 -11
- package/model/sharedAllowedFormat.agravity.ts +2 -3
- package/model/sharedAsset.agravity.ts +5 -6
- package/model/sharedCollection.agravity.ts +15 -16
- package/model/sharedCollectionFull.agravity.ts +18 -19
- package/model/signalRConnectionInfo.agravity.ts +0 -1
- package/model/simpleAsset.agravity.ts +10 -11
- package/model/staticDefinedList.agravity.ts +12 -13
- package/model/translation.agravity.ts +2 -3
- package/model/translationRequest.agravity.ts +3 -4
- package/model/uiTutorials.agravity.ts +0 -1
- package/model/versionEntity.agravity.ts +9 -10
- package/model/versionedAsset.agravity.ts +5 -6
- package/model/whereParam.agravity.ts +0 -1
- package/model/widgetLayout.agravity.ts +8 -9
- package/model/widgetProperties.agravity.ts +6 -7
- package/model/workspace.agravity.ts +14 -15
- package/package.json +16 -17
- package/param.ts +44 -0
- package/model/portalLanguages.agravity.ts +0 -16
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Agravity OpenAPI Documentation - Private Functions
|
|
3
3
|
* <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.3.1
|
|
6
5
|
* Contact: office@agravity.io
|
|
7
6
|
*
|
|
8
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,19 +11,64 @@
|
|
|
12
11
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
12
|
|
|
14
13
|
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
-
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
14
|
+
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
16
15
|
import { CustomHttpParameterCodec } from '../encoder';
|
|
17
16
|
import { Observable } from 'rxjs';
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { AgravityInfoResponse } from '../model/agravityInfoResponse.agravity';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { AgravityUser } from '../model/agravityUser.agravity';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { AgravityUserDto } from '../model/agravityUserDto.agravity';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { SasToken } from '../model/sasToken.agravity';
|
|
28
|
+
|
|
29
|
+
// @ts-ignore
|
|
25
30
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
26
31
|
import { AgravityConfiguration } from '../configuration';
|
|
27
32
|
|
|
33
|
+
export interface HttpAuthCreatePublicApiKeyRequestParams {
|
|
34
|
+
/** The user to create. */
|
|
35
|
+
agravityUserDto: AgravityUserDto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface HttpAuthDeletePublicApiKeyRequestParams {
|
|
39
|
+
/** The ID of api key user */
|
|
40
|
+
id: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface HttpAuthGetAgravityUserByIdRequestParams {
|
|
44
|
+
/** The ID of the requested Agravity user. */
|
|
45
|
+
id: string;
|
|
46
|
+
/** (Optional): If the reponse should be limited to name and email. */
|
|
47
|
+
limit?: boolean;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface HttpAuthGetAgravityUsersRequestParams {
|
|
51
|
+
/** (Optional): If the reponse should be limited to name and email. */
|
|
52
|
+
limit?: boolean;
|
|
53
|
+
/** (Optional): If the response should be limited to api key users */
|
|
54
|
+
apikey?: boolean;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface HttpAuthGetBlobReadSasTokenRequestParams {
|
|
58
|
+
/** The name of the blob (aka the ID of the asset) */
|
|
59
|
+
blobName: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface HttpAuthGetContainerReadSasTokenRequestParams {
|
|
63
|
+
/** The name of the requested storage container. */
|
|
64
|
+
containerName: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface HttpAuthPatchImpersonateUserRequestParams {
|
|
68
|
+
/** The ID of the user which should be impersonated. */
|
|
69
|
+
id: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
28
72
|
@Injectable({
|
|
29
73
|
providedIn: 'root'
|
|
30
74
|
})
|
|
@@ -36,13 +80,18 @@ export class AuthenticationManagementService {
|
|
|
36
80
|
|
|
37
81
|
constructor(
|
|
38
82
|
protected httpClient: HttpClient,
|
|
39
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
83
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
40
84
|
@Optional() configuration: AgravityConfiguration
|
|
41
85
|
) {
|
|
42
86
|
if (configuration) {
|
|
43
87
|
this.configuration = configuration;
|
|
44
88
|
}
|
|
45
89
|
if (typeof this.configuration.basePath !== 'string') {
|
|
90
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
91
|
+
if (firstBasePath != undefined) {
|
|
92
|
+
basePath = firstBasePath;
|
|
93
|
+
}
|
|
94
|
+
|
|
46
95
|
if (typeof basePath !== 'string') {
|
|
47
96
|
basePath = this.basePath;
|
|
48
97
|
}
|
|
@@ -51,6 +100,7 @@ export class AuthenticationManagementService {
|
|
|
51
100
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
52
101
|
}
|
|
53
102
|
|
|
103
|
+
// @ts-ignore
|
|
54
104
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
55
105
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
56
106
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -70,7 +120,7 @@ export class AuthenticationManagementService {
|
|
|
70
120
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
71
121
|
} else if (value instanceof Date) {
|
|
72
122
|
if (key != null) {
|
|
73
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
123
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
74
124
|
} else {
|
|
75
125
|
throw Error('key may not be null if value is Date');
|
|
76
126
|
}
|
|
@@ -87,64 +137,95 @@ export class AuthenticationManagementService {
|
|
|
87
137
|
|
|
88
138
|
/**
|
|
89
139
|
* This endpoint creates a new api key user in database and registers it on the public function
|
|
90
|
-
* @param
|
|
140
|
+
* @param requestParameters
|
|
91
141
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
92
142
|
* @param reportProgress flag to report request and response progress.
|
|
93
143
|
*/
|
|
94
|
-
public httpAuthCreatePublicApiKey(agravityUserDto: AgravityUserDto, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityUser>;
|
|
95
144
|
public httpAuthCreatePublicApiKey(
|
|
96
|
-
|
|
145
|
+
requestParameters?: HttpAuthCreatePublicApiKeyRequestParams,
|
|
146
|
+
observe?: 'body',
|
|
147
|
+
reportProgress?: boolean,
|
|
148
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
149
|
+
): Observable<AgravityUser>;
|
|
150
|
+
public httpAuthCreatePublicApiKey(
|
|
151
|
+
requestParameters?: HttpAuthCreatePublicApiKeyRequestParams,
|
|
97
152
|
observe?: 'response',
|
|
98
153
|
reportProgress?: boolean,
|
|
99
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
154
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
100
155
|
): Observable<HttpResponse<AgravityUser>>;
|
|
101
156
|
public httpAuthCreatePublicApiKey(
|
|
102
|
-
|
|
157
|
+
requestParameters?: HttpAuthCreatePublicApiKeyRequestParams,
|
|
103
158
|
observe?: 'events',
|
|
104
159
|
reportProgress?: boolean,
|
|
105
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
160
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
106
161
|
): Observable<HttpEvent<AgravityUser>>;
|
|
107
|
-
public httpAuthCreatePublicApiKey(
|
|
162
|
+
public httpAuthCreatePublicApiKey(
|
|
163
|
+
requestParameters?: HttpAuthCreatePublicApiKeyRequestParams,
|
|
164
|
+
observe: any = 'body',
|
|
165
|
+
reportProgress: boolean = false,
|
|
166
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
167
|
+
): Observable<any> {
|
|
168
|
+
const agravityUserDto = requestParameters?.agravityUserDto;
|
|
108
169
|
if (agravityUserDto === null || agravityUserDto === undefined) {
|
|
109
170
|
throw new Error('Required parameter agravityUserDto was null or undefined when calling httpAuthCreatePublicApiKey.');
|
|
110
171
|
}
|
|
111
172
|
|
|
112
|
-
let
|
|
173
|
+
let localVarHeaders = this.defaultHeaders;
|
|
113
174
|
|
|
114
|
-
let
|
|
175
|
+
let localVarCredential: string | undefined;
|
|
115
176
|
// authentication (msal_auth) required
|
|
116
|
-
|
|
117
|
-
if (
|
|
118
|
-
|
|
177
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
178
|
+
if (localVarCredential) {
|
|
179
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
119
180
|
}
|
|
120
181
|
|
|
121
|
-
let
|
|
122
|
-
if (
|
|
182
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
183
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
123
184
|
// to determine the Accept header
|
|
124
185
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
125
|
-
|
|
186
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
126
187
|
}
|
|
127
|
-
if (
|
|
128
|
-
|
|
188
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
189
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
193
|
+
if (localVarHttpContext === undefined) {
|
|
194
|
+
localVarHttpContext = new HttpContext();
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
198
|
+
if (localVarTransferCache === undefined) {
|
|
199
|
+
localVarTransferCache = true;
|
|
129
200
|
}
|
|
130
201
|
|
|
131
202
|
// to determine the Content-Type header
|
|
132
203
|
const consumes: string[] = ['application/json'];
|
|
133
204
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
134
205
|
if (httpContentTypeSelected !== undefined) {
|
|
135
|
-
|
|
206
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
136
207
|
}
|
|
137
208
|
|
|
138
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
139
|
-
if (
|
|
140
|
-
|
|
209
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
210
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
211
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
212
|
+
responseType_ = 'text';
|
|
213
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
214
|
+
responseType_ = 'json';
|
|
215
|
+
} else {
|
|
216
|
+
responseType_ = 'blob';
|
|
217
|
+
}
|
|
141
218
|
}
|
|
142
219
|
|
|
143
|
-
|
|
220
|
+
let localVarPath = `/auth/apikey`;
|
|
221
|
+
return this.httpClient.request<AgravityUser>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
222
|
+
context: localVarHttpContext,
|
|
223
|
+
body: agravityUserDto,
|
|
144
224
|
responseType: <any>responseType_,
|
|
145
225
|
withCredentials: this.configuration.withCredentials,
|
|
146
|
-
headers:
|
|
226
|
+
headers: localVarHeaders,
|
|
147
227
|
observe: observe,
|
|
228
|
+
transferCache: localVarTransferCache,
|
|
148
229
|
reportProgress: reportProgress
|
|
149
230
|
});
|
|
150
231
|
}
|
|
@@ -154,86 +235,161 @@ export class AuthenticationManagementService {
|
|
|
154
235
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
155
236
|
* @param reportProgress flag to report request and response progress.
|
|
156
237
|
*/
|
|
157
|
-
public httpAuthDeleteImpersonateUser(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
238
|
+
public httpAuthDeleteImpersonateUser(
|
|
239
|
+
observe?: 'body',
|
|
240
|
+
reportProgress?: boolean,
|
|
241
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
242
|
+
): Observable<AgravityInfoResponse>;
|
|
243
|
+
public httpAuthDeleteImpersonateUser(
|
|
244
|
+
observe?: 'response',
|
|
245
|
+
reportProgress?: boolean,
|
|
246
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
247
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
248
|
+
public httpAuthDeleteImpersonateUser(
|
|
249
|
+
observe?: 'events',
|
|
250
|
+
reportProgress?: boolean,
|
|
251
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
252
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
253
|
+
public httpAuthDeleteImpersonateUser(
|
|
254
|
+
observe: any = 'body',
|
|
255
|
+
reportProgress: boolean = false,
|
|
256
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
257
|
+
): Observable<any> {
|
|
258
|
+
let localVarHeaders = this.defaultHeaders;
|
|
259
|
+
|
|
260
|
+
let localVarCredential: string | undefined;
|
|
164
261
|
// authentication (msal_auth) required
|
|
165
|
-
|
|
166
|
-
if (
|
|
167
|
-
|
|
262
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
263
|
+
if (localVarCredential) {
|
|
264
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
168
265
|
}
|
|
169
266
|
|
|
170
|
-
let
|
|
171
|
-
if (
|
|
267
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
268
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
172
269
|
// to determine the Accept header
|
|
173
270
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
174
|
-
|
|
271
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
272
|
+
}
|
|
273
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
274
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
278
|
+
if (localVarHttpContext === undefined) {
|
|
279
|
+
localVarHttpContext = new HttpContext();
|
|
175
280
|
}
|
|
176
|
-
|
|
177
|
-
|
|
281
|
+
|
|
282
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
283
|
+
if (localVarTransferCache === undefined) {
|
|
284
|
+
localVarTransferCache = true;
|
|
178
285
|
}
|
|
179
286
|
|
|
180
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
181
|
-
if (
|
|
182
|
-
|
|
287
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
288
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
289
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
290
|
+
responseType_ = 'text';
|
|
291
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
292
|
+
responseType_ = 'json';
|
|
293
|
+
} else {
|
|
294
|
+
responseType_ = 'blob';
|
|
295
|
+
}
|
|
183
296
|
}
|
|
184
297
|
|
|
185
|
-
|
|
298
|
+
let localVarPath = `/auth/impersonate`;
|
|
299
|
+
return this.httpClient.request<AgravityInfoResponse>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
300
|
+
context: localVarHttpContext,
|
|
186
301
|
responseType: <any>responseType_,
|
|
187
302
|
withCredentials: this.configuration.withCredentials,
|
|
188
|
-
headers:
|
|
303
|
+
headers: localVarHeaders,
|
|
189
304
|
observe: observe,
|
|
305
|
+
transferCache: localVarTransferCache,
|
|
190
306
|
reportProgress: reportProgress
|
|
191
307
|
});
|
|
192
308
|
}
|
|
193
309
|
|
|
194
310
|
/**
|
|
195
311
|
* This endpoint deletes an api key user and removed the key from public functions.
|
|
196
|
-
* @param
|
|
312
|
+
* @param requestParameters
|
|
197
313
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
198
314
|
* @param reportProgress flag to report request and response progress.
|
|
199
315
|
*/
|
|
200
|
-
public httpAuthDeletePublicApiKey(
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
316
|
+
public httpAuthDeletePublicApiKey(
|
|
317
|
+
requestParameters?: HttpAuthDeletePublicApiKeyRequestParams,
|
|
318
|
+
observe?: 'body',
|
|
319
|
+
reportProgress?: boolean,
|
|
320
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
321
|
+
): Observable<any>;
|
|
322
|
+
public httpAuthDeletePublicApiKey(
|
|
323
|
+
requestParameters?: HttpAuthDeletePublicApiKeyRequestParams,
|
|
324
|
+
observe?: 'response',
|
|
325
|
+
reportProgress?: boolean,
|
|
326
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
327
|
+
): Observable<HttpResponse<any>>;
|
|
328
|
+
public httpAuthDeletePublicApiKey(
|
|
329
|
+
requestParameters?: HttpAuthDeletePublicApiKeyRequestParams,
|
|
330
|
+
observe?: 'events',
|
|
331
|
+
reportProgress?: boolean,
|
|
332
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
333
|
+
): Observable<HttpEvent<any>>;
|
|
334
|
+
public httpAuthDeletePublicApiKey(
|
|
335
|
+
requestParameters?: HttpAuthDeletePublicApiKeyRequestParams,
|
|
336
|
+
observe: any = 'body',
|
|
337
|
+
reportProgress: boolean = false,
|
|
338
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
339
|
+
): Observable<any> {
|
|
340
|
+
const id = requestParameters?.id;
|
|
204
341
|
if (id === null || id === undefined) {
|
|
205
342
|
throw new Error('Required parameter id was null or undefined when calling httpAuthDeletePublicApiKey.');
|
|
206
343
|
}
|
|
207
344
|
|
|
208
|
-
let
|
|
345
|
+
let localVarHeaders = this.defaultHeaders;
|
|
209
346
|
|
|
210
|
-
let
|
|
347
|
+
let localVarCredential: string | undefined;
|
|
211
348
|
// authentication (msal_auth) required
|
|
212
|
-
|
|
213
|
-
if (
|
|
214
|
-
|
|
349
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
350
|
+
if (localVarCredential) {
|
|
351
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
215
352
|
}
|
|
216
353
|
|
|
217
|
-
let
|
|
218
|
-
if (
|
|
354
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
355
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
219
356
|
// to determine the Accept header
|
|
220
357
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
221
|
-
|
|
358
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
222
359
|
}
|
|
223
|
-
if (
|
|
224
|
-
|
|
360
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
361
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
225
362
|
}
|
|
226
363
|
|
|
227
|
-
let
|
|
228
|
-
if (
|
|
229
|
-
|
|
364
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
365
|
+
if (localVarHttpContext === undefined) {
|
|
366
|
+
localVarHttpContext = new HttpContext();
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
370
|
+
if (localVarTransferCache === undefined) {
|
|
371
|
+
localVarTransferCache = true;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
375
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
376
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
377
|
+
responseType_ = 'text';
|
|
378
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
379
|
+
responseType_ = 'json';
|
|
380
|
+
} else {
|
|
381
|
+
responseType_ = 'blob';
|
|
382
|
+
}
|
|
230
383
|
}
|
|
231
384
|
|
|
232
|
-
|
|
385
|
+
let localVarPath = `/auth/apikey/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
386
|
+
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
387
|
+
context: localVarHttpContext,
|
|
233
388
|
responseType: <any>responseType_,
|
|
234
389
|
withCredentials: this.configuration.withCredentials,
|
|
235
|
-
headers:
|
|
390
|
+
headers: localVarHeaders,
|
|
236
391
|
observe: observe,
|
|
392
|
+
transferCache: localVarTransferCache,
|
|
237
393
|
reportProgress: reportProgress
|
|
238
394
|
});
|
|
239
395
|
}
|
|
@@ -243,176 +399,262 @@ export class AuthenticationManagementService {
|
|
|
243
399
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
244
400
|
* @param reportProgress flag to report request and response progress.
|
|
245
401
|
*/
|
|
246
|
-
public httpAuthGetAgravityUser(
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
402
|
+
public httpAuthGetAgravityUser(
|
|
403
|
+
observe?: 'body',
|
|
404
|
+
reportProgress?: boolean,
|
|
405
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
406
|
+
): Observable<AgravityUser>;
|
|
407
|
+
public httpAuthGetAgravityUser(
|
|
408
|
+
observe?: 'response',
|
|
409
|
+
reportProgress?: boolean,
|
|
410
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
411
|
+
): Observable<HttpResponse<AgravityUser>>;
|
|
412
|
+
public httpAuthGetAgravityUser(
|
|
413
|
+
observe?: 'events',
|
|
414
|
+
reportProgress?: boolean,
|
|
415
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
416
|
+
): Observable<HttpEvent<AgravityUser>>;
|
|
417
|
+
public httpAuthGetAgravityUser(
|
|
418
|
+
observe: any = 'body',
|
|
419
|
+
reportProgress: boolean = false,
|
|
420
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
421
|
+
): Observable<any> {
|
|
422
|
+
let localVarHeaders = this.defaultHeaders;
|
|
423
|
+
|
|
424
|
+
let localVarCredential: string | undefined;
|
|
253
425
|
// authentication (msal_auth) required
|
|
254
|
-
|
|
255
|
-
if (
|
|
256
|
-
|
|
426
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
427
|
+
if (localVarCredential) {
|
|
428
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
257
429
|
}
|
|
258
430
|
|
|
259
|
-
let
|
|
260
|
-
if (
|
|
431
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
432
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
261
433
|
// to determine the Accept header
|
|
262
434
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
263
|
-
|
|
435
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
264
436
|
}
|
|
265
|
-
if (
|
|
266
|
-
|
|
437
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
438
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
267
439
|
}
|
|
268
440
|
|
|
269
|
-
let
|
|
270
|
-
if (
|
|
271
|
-
|
|
441
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
442
|
+
if (localVarHttpContext === undefined) {
|
|
443
|
+
localVarHttpContext = new HttpContext();
|
|
272
444
|
}
|
|
273
445
|
|
|
274
|
-
|
|
446
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
447
|
+
if (localVarTransferCache === undefined) {
|
|
448
|
+
localVarTransferCache = true;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
452
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
453
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
454
|
+
responseType_ = 'text';
|
|
455
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
456
|
+
responseType_ = 'json';
|
|
457
|
+
} else {
|
|
458
|
+
responseType_ = 'blob';
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
let localVarPath = `/auth/user`;
|
|
463
|
+
return this.httpClient.request<AgravityUser>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
464
|
+
context: localVarHttpContext,
|
|
275
465
|
responseType: <any>responseType_,
|
|
276
466
|
withCredentials: this.configuration.withCredentials,
|
|
277
|
-
headers:
|
|
467
|
+
headers: localVarHeaders,
|
|
278
468
|
observe: observe,
|
|
469
|
+
transferCache: localVarTransferCache,
|
|
279
470
|
reportProgress: reportProgress
|
|
280
471
|
});
|
|
281
472
|
}
|
|
282
473
|
|
|
283
474
|
/**
|
|
284
475
|
* This endpoint returns the Agravity user from database.
|
|
285
|
-
* @param
|
|
286
|
-
* @param limit (Optional): If the reponse should be limited to name and email.
|
|
476
|
+
* @param requestParameters
|
|
287
477
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
288
478
|
* @param reportProgress flag to report request and response progress.
|
|
289
479
|
*/
|
|
290
|
-
public httpAuthGetAgravityUserById(id: string, limit?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityUser>;
|
|
291
480
|
public httpAuthGetAgravityUserById(
|
|
292
|
-
|
|
293
|
-
|
|
481
|
+
requestParameters?: HttpAuthGetAgravityUserByIdRequestParams,
|
|
482
|
+
observe?: 'body',
|
|
483
|
+
reportProgress?: boolean,
|
|
484
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
485
|
+
): Observable<AgravityUser>;
|
|
486
|
+
public httpAuthGetAgravityUserById(
|
|
487
|
+
requestParameters?: HttpAuthGetAgravityUserByIdRequestParams,
|
|
294
488
|
observe?: 'response',
|
|
295
489
|
reportProgress?: boolean,
|
|
296
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
490
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
297
491
|
): Observable<HttpResponse<AgravityUser>>;
|
|
298
492
|
public httpAuthGetAgravityUserById(
|
|
299
|
-
|
|
300
|
-
limit?: boolean,
|
|
493
|
+
requestParameters?: HttpAuthGetAgravityUserByIdRequestParams,
|
|
301
494
|
observe?: 'events',
|
|
302
495
|
reportProgress?: boolean,
|
|
303
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
496
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
304
497
|
): Observable<HttpEvent<AgravityUser>>;
|
|
305
|
-
public httpAuthGetAgravityUserById(
|
|
498
|
+
public httpAuthGetAgravityUserById(
|
|
499
|
+
requestParameters?: HttpAuthGetAgravityUserByIdRequestParams,
|
|
500
|
+
observe: any = 'body',
|
|
501
|
+
reportProgress: boolean = false,
|
|
502
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
503
|
+
): Observable<any> {
|
|
504
|
+
const id = requestParameters?.id;
|
|
306
505
|
if (id === null || id === undefined) {
|
|
307
506
|
throw new Error('Required parameter id was null or undefined when calling httpAuthGetAgravityUserById.');
|
|
308
507
|
}
|
|
508
|
+
const limit = requestParameters?.limit;
|
|
309
509
|
|
|
310
|
-
let
|
|
510
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
311
511
|
if (limit !== undefined && limit !== null) {
|
|
312
|
-
|
|
512
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>limit, 'limit');
|
|
313
513
|
}
|
|
314
514
|
|
|
315
|
-
let
|
|
515
|
+
let localVarHeaders = this.defaultHeaders;
|
|
316
516
|
|
|
317
|
-
let
|
|
517
|
+
let localVarCredential: string | undefined;
|
|
318
518
|
// authentication (msal_auth) required
|
|
319
|
-
|
|
320
|
-
if (
|
|
321
|
-
|
|
519
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
520
|
+
if (localVarCredential) {
|
|
521
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
322
522
|
}
|
|
323
523
|
|
|
324
|
-
let
|
|
325
|
-
if (
|
|
524
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
525
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
326
526
|
// to determine the Accept header
|
|
327
527
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
328
|
-
|
|
528
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
529
|
+
}
|
|
530
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
531
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
329
532
|
}
|
|
330
|
-
|
|
331
|
-
|
|
533
|
+
|
|
534
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
535
|
+
if (localVarHttpContext === undefined) {
|
|
536
|
+
localVarHttpContext = new HttpContext();
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
540
|
+
if (localVarTransferCache === undefined) {
|
|
541
|
+
localVarTransferCache = true;
|
|
332
542
|
}
|
|
333
543
|
|
|
334
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
335
|
-
if (
|
|
336
|
-
|
|
544
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
545
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
546
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
547
|
+
responseType_ = 'text';
|
|
548
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
549
|
+
responseType_ = 'json';
|
|
550
|
+
} else {
|
|
551
|
+
responseType_ = 'blob';
|
|
552
|
+
}
|
|
337
553
|
}
|
|
338
554
|
|
|
339
|
-
|
|
340
|
-
|
|
555
|
+
let localVarPath = `/auth/users/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
556
|
+
return this.httpClient.request<AgravityUser>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
557
|
+
context: localVarHttpContext,
|
|
558
|
+
params: localVarQueryParameters,
|
|
341
559
|
responseType: <any>responseType_,
|
|
342
560
|
withCredentials: this.configuration.withCredentials,
|
|
343
|
-
headers:
|
|
561
|
+
headers: localVarHeaders,
|
|
344
562
|
observe: observe,
|
|
563
|
+
transferCache: localVarTransferCache,
|
|
345
564
|
reportProgress: reportProgress
|
|
346
565
|
});
|
|
347
566
|
}
|
|
348
567
|
|
|
349
568
|
/**
|
|
350
569
|
* This endpoint returns all the Agravity users from database.
|
|
351
|
-
* @param
|
|
352
|
-
* @param apikey (Optional): If the response should be limited to api key users
|
|
570
|
+
* @param requestParameters
|
|
353
571
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
354
572
|
* @param reportProgress flag to report request and response progress.
|
|
355
573
|
*/
|
|
356
574
|
public httpAuthGetAgravityUsers(
|
|
357
|
-
|
|
358
|
-
apikey?: boolean,
|
|
575
|
+
requestParameters?: HttpAuthGetAgravityUsersRequestParams,
|
|
359
576
|
observe?: 'body',
|
|
360
577
|
reportProgress?: boolean,
|
|
361
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
578
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
362
579
|
): Observable<Array<AgravityUser>>;
|
|
363
580
|
public httpAuthGetAgravityUsers(
|
|
364
|
-
|
|
365
|
-
apikey?: boolean,
|
|
581
|
+
requestParameters?: HttpAuthGetAgravityUsersRequestParams,
|
|
366
582
|
observe?: 'response',
|
|
367
583
|
reportProgress?: boolean,
|
|
368
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
584
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
369
585
|
): Observable<HttpResponse<Array<AgravityUser>>>;
|
|
370
586
|
public httpAuthGetAgravityUsers(
|
|
371
|
-
|
|
372
|
-
apikey?: boolean,
|
|
587
|
+
requestParameters?: HttpAuthGetAgravityUsersRequestParams,
|
|
373
588
|
observe?: 'events',
|
|
374
589
|
reportProgress?: boolean,
|
|
375
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
590
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
376
591
|
): Observable<HttpEvent<Array<AgravityUser>>>;
|
|
377
|
-
public httpAuthGetAgravityUsers(
|
|
378
|
-
|
|
592
|
+
public httpAuthGetAgravityUsers(
|
|
593
|
+
requestParameters?: HttpAuthGetAgravityUsersRequestParams,
|
|
594
|
+
observe: any = 'body',
|
|
595
|
+
reportProgress: boolean = false,
|
|
596
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
597
|
+
): Observable<any> {
|
|
598
|
+
const limit = requestParameters?.limit;
|
|
599
|
+
const apikey = requestParameters?.apikey;
|
|
600
|
+
|
|
601
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
379
602
|
if (limit !== undefined && limit !== null) {
|
|
380
|
-
|
|
603
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>limit, 'limit');
|
|
381
604
|
}
|
|
382
605
|
if (apikey !== undefined && apikey !== null) {
|
|
383
|
-
|
|
606
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>apikey, 'apikey');
|
|
384
607
|
}
|
|
385
608
|
|
|
386
|
-
let
|
|
609
|
+
let localVarHeaders = this.defaultHeaders;
|
|
387
610
|
|
|
388
|
-
let
|
|
611
|
+
let localVarCredential: string | undefined;
|
|
389
612
|
// authentication (msal_auth) required
|
|
390
|
-
|
|
391
|
-
if (
|
|
392
|
-
|
|
613
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
614
|
+
if (localVarCredential) {
|
|
615
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
393
616
|
}
|
|
394
617
|
|
|
395
|
-
let
|
|
396
|
-
if (
|
|
618
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
619
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
397
620
|
// to determine the Accept header
|
|
398
621
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
399
|
-
|
|
622
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
623
|
+
}
|
|
624
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
625
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
400
626
|
}
|
|
401
|
-
|
|
402
|
-
|
|
627
|
+
|
|
628
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
629
|
+
if (localVarHttpContext === undefined) {
|
|
630
|
+
localVarHttpContext = new HttpContext();
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
634
|
+
if (localVarTransferCache === undefined) {
|
|
635
|
+
localVarTransferCache = true;
|
|
403
636
|
}
|
|
404
637
|
|
|
405
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
406
|
-
if (
|
|
407
|
-
|
|
638
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
639
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
640
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
641
|
+
responseType_ = 'text';
|
|
642
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
643
|
+
responseType_ = 'json';
|
|
644
|
+
} else {
|
|
645
|
+
responseType_ = 'blob';
|
|
646
|
+
}
|
|
408
647
|
}
|
|
409
648
|
|
|
410
|
-
|
|
411
|
-
|
|
649
|
+
let localVarPath = `/auth/users`;
|
|
650
|
+
return this.httpClient.request<Array<AgravityUser>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
651
|
+
context: localVarHttpContext,
|
|
652
|
+
params: localVarQueryParameters,
|
|
412
653
|
responseType: <any>responseType_,
|
|
413
654
|
withCredentials: this.configuration.withCredentials,
|
|
414
|
-
headers:
|
|
655
|
+
headers: localVarHeaders,
|
|
415
656
|
observe: observe,
|
|
657
|
+
transferCache: localVarTransferCache,
|
|
416
658
|
reportProgress: reportProgress
|
|
417
659
|
});
|
|
418
660
|
}
|
|
@@ -422,138 +664,248 @@ export class AuthenticationManagementService {
|
|
|
422
664
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
423
665
|
* @param reportProgress flag to report request and response progress.
|
|
424
666
|
*/
|
|
425
|
-
public httpAuthGetAppClientId(
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
667
|
+
public httpAuthGetAppClientId(
|
|
668
|
+
observe?: 'body',
|
|
669
|
+
reportProgress?: boolean,
|
|
670
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
671
|
+
): Observable<AgravityInfoResponse>;
|
|
672
|
+
public httpAuthGetAppClientId(
|
|
673
|
+
observe?: 'response',
|
|
674
|
+
reportProgress?: boolean,
|
|
675
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
676
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
677
|
+
public httpAuthGetAppClientId(
|
|
678
|
+
observe?: 'events',
|
|
679
|
+
reportProgress?: boolean,
|
|
680
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
681
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
682
|
+
public httpAuthGetAppClientId(
|
|
683
|
+
observe: any = 'body',
|
|
684
|
+
reportProgress: boolean = false,
|
|
685
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
686
|
+
): Observable<any> {
|
|
687
|
+
let localVarHeaders = this.defaultHeaders;
|
|
688
|
+
|
|
689
|
+
let localVarCredential: string | undefined;
|
|
432
690
|
// authentication (msal_auth) required
|
|
433
|
-
|
|
434
|
-
if (
|
|
435
|
-
|
|
691
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
692
|
+
if (localVarCredential) {
|
|
693
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
436
694
|
}
|
|
437
695
|
|
|
438
|
-
let
|
|
439
|
-
if (
|
|
696
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
697
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
440
698
|
// to determine the Accept header
|
|
441
699
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
442
|
-
|
|
700
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
443
701
|
}
|
|
444
|
-
if (
|
|
445
|
-
|
|
702
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
703
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
446
704
|
}
|
|
447
705
|
|
|
448
|
-
let
|
|
449
|
-
if (
|
|
450
|
-
|
|
706
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
707
|
+
if (localVarHttpContext === undefined) {
|
|
708
|
+
localVarHttpContext = new HttpContext();
|
|
451
709
|
}
|
|
452
710
|
|
|
453
|
-
|
|
711
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
712
|
+
if (localVarTransferCache === undefined) {
|
|
713
|
+
localVarTransferCache = true;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
717
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
718
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
719
|
+
responseType_ = 'text';
|
|
720
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
721
|
+
responseType_ = 'json';
|
|
722
|
+
} else {
|
|
723
|
+
responseType_ = 'blob';
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
let localVarPath = `/auth/clientid`;
|
|
728
|
+
return this.httpClient.request<AgravityInfoResponse>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
729
|
+
context: localVarHttpContext,
|
|
454
730
|
responseType: <any>responseType_,
|
|
455
731
|
withCredentials: this.configuration.withCredentials,
|
|
456
|
-
headers:
|
|
732
|
+
headers: localVarHeaders,
|
|
457
733
|
observe: observe,
|
|
734
|
+
transferCache: localVarTransferCache,
|
|
458
735
|
reportProgress: reportProgress
|
|
459
736
|
});
|
|
460
737
|
}
|
|
461
738
|
|
|
462
739
|
/**
|
|
463
740
|
* This endpoint creates and returns a SAS token for a single blob inside the optimized OR thumbnails container.
|
|
464
|
-
* @param
|
|
741
|
+
* @param requestParameters
|
|
465
742
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
466
743
|
* @param reportProgress flag to report request and response progress.
|
|
467
744
|
*/
|
|
468
|
-
public httpAuthGetBlobReadSasToken(
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
745
|
+
public httpAuthGetBlobReadSasToken(
|
|
746
|
+
requestParameters?: HttpAuthGetBlobReadSasTokenRequestParams,
|
|
747
|
+
observe?: 'body',
|
|
748
|
+
reportProgress?: boolean,
|
|
749
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
750
|
+
): Observable<SasToken>;
|
|
751
|
+
public httpAuthGetBlobReadSasToken(
|
|
752
|
+
requestParameters?: HttpAuthGetBlobReadSasTokenRequestParams,
|
|
753
|
+
observe?: 'response',
|
|
754
|
+
reportProgress?: boolean,
|
|
755
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
756
|
+
): Observable<HttpResponse<SasToken>>;
|
|
757
|
+
public httpAuthGetBlobReadSasToken(
|
|
758
|
+
requestParameters?: HttpAuthGetBlobReadSasTokenRequestParams,
|
|
759
|
+
observe?: 'events',
|
|
760
|
+
reportProgress?: boolean,
|
|
761
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
762
|
+
): Observable<HttpEvent<SasToken>>;
|
|
763
|
+
public httpAuthGetBlobReadSasToken(
|
|
764
|
+
requestParameters?: HttpAuthGetBlobReadSasTokenRequestParams,
|
|
765
|
+
observe: any = 'body',
|
|
766
|
+
reportProgress: boolean = false,
|
|
767
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
768
|
+
): Observable<any> {
|
|
769
|
+
const blobName = requestParameters?.blobName;
|
|
472
770
|
if (blobName === null || blobName === undefined) {
|
|
473
771
|
throw new Error('Required parameter blobName was null or undefined when calling httpAuthGetBlobReadSasToken.');
|
|
474
772
|
}
|
|
475
773
|
|
|
476
|
-
let
|
|
774
|
+
let localVarHeaders = this.defaultHeaders;
|
|
477
775
|
|
|
478
|
-
let
|
|
776
|
+
let localVarCredential: string | undefined;
|
|
479
777
|
// authentication (msal_auth) required
|
|
480
|
-
|
|
481
|
-
if (
|
|
482
|
-
|
|
778
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
779
|
+
if (localVarCredential) {
|
|
780
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
483
781
|
}
|
|
484
782
|
|
|
485
|
-
let
|
|
486
|
-
if (
|
|
783
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
784
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
487
785
|
// to determine the Accept header
|
|
488
786
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
489
|
-
|
|
787
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
788
|
+
}
|
|
789
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
790
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
490
791
|
}
|
|
491
|
-
|
|
492
|
-
|
|
792
|
+
|
|
793
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
794
|
+
if (localVarHttpContext === undefined) {
|
|
795
|
+
localVarHttpContext = new HttpContext();
|
|
493
796
|
}
|
|
494
797
|
|
|
495
|
-
let
|
|
496
|
-
if (
|
|
497
|
-
|
|
798
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
799
|
+
if (localVarTransferCache === undefined) {
|
|
800
|
+
localVarTransferCache = true;
|
|
498
801
|
}
|
|
499
802
|
|
|
500
|
-
|
|
803
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
804
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
805
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
806
|
+
responseType_ = 'text';
|
|
807
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
808
|
+
responseType_ = 'json';
|
|
809
|
+
} else {
|
|
810
|
+
responseType_ = 'blob';
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
let localVarPath = `/auth/blob/${this.configuration.encodeParam({ name: 'blobName', value: blobName, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
815
|
+
return this.httpClient.request<SasToken>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
816
|
+
context: localVarHttpContext,
|
|
501
817
|
responseType: <any>responseType_,
|
|
502
818
|
withCredentials: this.configuration.withCredentials,
|
|
503
|
-
headers:
|
|
819
|
+
headers: localVarHeaders,
|
|
504
820
|
observe: observe,
|
|
821
|
+
transferCache: localVarTransferCache,
|
|
505
822
|
reportProgress: reportProgress
|
|
506
823
|
});
|
|
507
824
|
}
|
|
508
825
|
|
|
509
826
|
/**
|
|
510
827
|
* This endpoint creates and returns a SAS token for a single container with read only access
|
|
511
|
-
* @param
|
|
828
|
+
* @param requestParameters
|
|
512
829
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
513
830
|
* @param reportProgress flag to report request and response progress.
|
|
514
831
|
*/
|
|
515
|
-
public httpAuthGetContainerReadSasToken(containerName: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<SasToken>;
|
|
516
832
|
public httpAuthGetContainerReadSasToken(
|
|
517
|
-
|
|
833
|
+
requestParameters?: HttpAuthGetContainerReadSasTokenRequestParams,
|
|
834
|
+
observe?: 'body',
|
|
835
|
+
reportProgress?: boolean,
|
|
836
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
837
|
+
): Observable<SasToken>;
|
|
838
|
+
public httpAuthGetContainerReadSasToken(
|
|
839
|
+
requestParameters?: HttpAuthGetContainerReadSasTokenRequestParams,
|
|
518
840
|
observe?: 'response',
|
|
519
841
|
reportProgress?: boolean,
|
|
520
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
842
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
521
843
|
): Observable<HttpResponse<SasToken>>;
|
|
522
|
-
public httpAuthGetContainerReadSasToken(
|
|
523
|
-
|
|
844
|
+
public httpAuthGetContainerReadSasToken(
|
|
845
|
+
requestParameters?: HttpAuthGetContainerReadSasTokenRequestParams,
|
|
846
|
+
observe?: 'events',
|
|
847
|
+
reportProgress?: boolean,
|
|
848
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
849
|
+
): Observable<HttpEvent<SasToken>>;
|
|
850
|
+
public httpAuthGetContainerReadSasToken(
|
|
851
|
+
requestParameters?: HttpAuthGetContainerReadSasTokenRequestParams,
|
|
852
|
+
observe: any = 'body',
|
|
853
|
+
reportProgress: boolean = false,
|
|
854
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
855
|
+
): Observable<any> {
|
|
856
|
+
const containerName = requestParameters?.containerName;
|
|
524
857
|
if (containerName === null || containerName === undefined) {
|
|
525
858
|
throw new Error('Required parameter containerName was null or undefined when calling httpAuthGetContainerReadSasToken.');
|
|
526
859
|
}
|
|
527
860
|
|
|
528
|
-
let
|
|
861
|
+
let localVarHeaders = this.defaultHeaders;
|
|
529
862
|
|
|
530
|
-
let
|
|
863
|
+
let localVarCredential: string | undefined;
|
|
531
864
|
// authentication (msal_auth) required
|
|
532
|
-
|
|
533
|
-
if (
|
|
534
|
-
|
|
865
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
866
|
+
if (localVarCredential) {
|
|
867
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
535
868
|
}
|
|
536
869
|
|
|
537
|
-
let
|
|
538
|
-
if (
|
|
870
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
871
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
539
872
|
// to determine the Accept header
|
|
540
873
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
541
|
-
|
|
874
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
875
|
+
}
|
|
876
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
877
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
542
878
|
}
|
|
543
|
-
|
|
544
|
-
|
|
879
|
+
|
|
880
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
881
|
+
if (localVarHttpContext === undefined) {
|
|
882
|
+
localVarHttpContext = new HttpContext();
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
886
|
+
if (localVarTransferCache === undefined) {
|
|
887
|
+
localVarTransferCache = true;
|
|
545
888
|
}
|
|
546
889
|
|
|
547
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
548
|
-
if (
|
|
549
|
-
|
|
890
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
891
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
892
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
893
|
+
responseType_ = 'text';
|
|
894
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
895
|
+
responseType_ = 'json';
|
|
896
|
+
} else {
|
|
897
|
+
responseType_ = 'blob';
|
|
898
|
+
}
|
|
550
899
|
}
|
|
551
900
|
|
|
552
|
-
|
|
901
|
+
let localVarPath = `/auth/container/${this.configuration.encodeParam({ name: 'containerName', value: containerName, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
902
|
+
return this.httpClient.request<SasToken>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
903
|
+
context: localVarHttpContext,
|
|
553
904
|
responseType: <any>responseType_,
|
|
554
905
|
withCredentials: this.configuration.withCredentials,
|
|
555
|
-
headers:
|
|
906
|
+
headers: localVarHeaders,
|
|
556
907
|
observe: observe,
|
|
908
|
+
transferCache: localVarTransferCache,
|
|
557
909
|
reportProgress: reportProgress
|
|
558
910
|
});
|
|
559
911
|
}
|
|
@@ -563,39 +915,74 @@ export class AuthenticationManagementService {
|
|
|
563
915
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
564
916
|
* @param reportProgress flag to report request and response progress.
|
|
565
917
|
*/
|
|
566
|
-
public httpAuthGetInboxContainerWriteSasToken(
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
918
|
+
public httpAuthGetInboxContainerWriteSasToken(
|
|
919
|
+
observe?: 'body',
|
|
920
|
+
reportProgress?: boolean,
|
|
921
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
922
|
+
): Observable<SasToken>;
|
|
923
|
+
public httpAuthGetInboxContainerWriteSasToken(
|
|
924
|
+
observe?: 'response',
|
|
925
|
+
reportProgress?: boolean,
|
|
926
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
927
|
+
): Observable<HttpResponse<SasToken>>;
|
|
928
|
+
public httpAuthGetInboxContainerWriteSasToken(
|
|
929
|
+
observe?: 'events',
|
|
930
|
+
reportProgress?: boolean,
|
|
931
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
932
|
+
): Observable<HttpEvent<SasToken>>;
|
|
933
|
+
public httpAuthGetInboxContainerWriteSasToken(
|
|
934
|
+
observe: any = 'body',
|
|
935
|
+
reportProgress: boolean = false,
|
|
936
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
937
|
+
): Observable<any> {
|
|
938
|
+
let localVarHeaders = this.defaultHeaders;
|
|
939
|
+
|
|
940
|
+
let localVarCredential: string | undefined;
|
|
573
941
|
// authentication (msal_auth) required
|
|
574
|
-
|
|
575
|
-
if (
|
|
576
|
-
|
|
942
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
943
|
+
if (localVarCredential) {
|
|
944
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
577
945
|
}
|
|
578
946
|
|
|
579
|
-
let
|
|
580
|
-
if (
|
|
947
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
948
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
581
949
|
// to determine the Accept header
|
|
582
950
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
583
|
-
|
|
951
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
584
952
|
}
|
|
585
|
-
if (
|
|
586
|
-
|
|
953
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
954
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
587
955
|
}
|
|
588
956
|
|
|
589
|
-
let
|
|
590
|
-
if (
|
|
591
|
-
|
|
957
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
958
|
+
if (localVarHttpContext === undefined) {
|
|
959
|
+
localVarHttpContext = new HttpContext();
|
|
592
960
|
}
|
|
593
961
|
|
|
594
|
-
|
|
962
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
963
|
+
if (localVarTransferCache === undefined) {
|
|
964
|
+
localVarTransferCache = true;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
968
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
969
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
970
|
+
responseType_ = 'text';
|
|
971
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
972
|
+
responseType_ = 'json';
|
|
973
|
+
} else {
|
|
974
|
+
responseType_ = 'blob';
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
let localVarPath = `/auth/inbox`;
|
|
979
|
+
return this.httpClient.request<SasToken>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
980
|
+
context: localVarHttpContext,
|
|
595
981
|
responseType: <any>responseType_,
|
|
596
982
|
withCredentials: this.configuration.withCredentials,
|
|
597
|
-
headers:
|
|
983
|
+
headers: localVarHeaders,
|
|
598
984
|
observe: observe,
|
|
985
|
+
transferCache: localVarTransferCache,
|
|
599
986
|
reportProgress: reportProgress
|
|
600
987
|
});
|
|
601
988
|
}
|
|
@@ -605,91 +992,161 @@ export class AuthenticationManagementService {
|
|
|
605
992
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
606
993
|
* @param reportProgress flag to report request and response progress.
|
|
607
994
|
*/
|
|
608
|
-
public httpAuthGetUserId(
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
995
|
+
public httpAuthGetUserId(
|
|
996
|
+
observe?: 'body',
|
|
997
|
+
reportProgress?: boolean,
|
|
998
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
999
|
+
): Observable<AgravityInfoResponse>;
|
|
1000
|
+
public httpAuthGetUserId(
|
|
1001
|
+
observe?: 'response',
|
|
1002
|
+
reportProgress?: boolean,
|
|
1003
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1004
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
1005
|
+
public httpAuthGetUserId(
|
|
1006
|
+
observe?: 'events',
|
|
1007
|
+
reportProgress?: boolean,
|
|
1008
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1009
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
1010
|
+
public httpAuthGetUserId(
|
|
1011
|
+
observe: any = 'body',
|
|
1012
|
+
reportProgress: boolean = false,
|
|
1013
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1014
|
+
): Observable<any> {
|
|
1015
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1016
|
+
|
|
1017
|
+
let localVarCredential: string | undefined;
|
|
615
1018
|
// authentication (msal_auth) required
|
|
616
|
-
|
|
617
|
-
if (
|
|
618
|
-
|
|
1019
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1020
|
+
if (localVarCredential) {
|
|
1021
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
619
1022
|
}
|
|
620
1023
|
|
|
621
|
-
let
|
|
622
|
-
if (
|
|
1024
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1025
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
623
1026
|
// to determine the Accept header
|
|
624
1027
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
625
|
-
|
|
1028
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1029
|
+
}
|
|
1030
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1031
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
626
1032
|
}
|
|
627
|
-
|
|
628
|
-
|
|
1033
|
+
|
|
1034
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1035
|
+
if (localVarHttpContext === undefined) {
|
|
1036
|
+
localVarHttpContext = new HttpContext();
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1040
|
+
if (localVarTransferCache === undefined) {
|
|
1041
|
+
localVarTransferCache = true;
|
|
629
1042
|
}
|
|
630
1043
|
|
|
631
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
632
|
-
if (
|
|
633
|
-
|
|
1044
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1045
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1046
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1047
|
+
responseType_ = 'text';
|
|
1048
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1049
|
+
responseType_ = 'json';
|
|
1050
|
+
} else {
|
|
1051
|
+
responseType_ = 'blob';
|
|
1052
|
+
}
|
|
634
1053
|
}
|
|
635
1054
|
|
|
636
|
-
|
|
1055
|
+
let localVarPath = `/auth/userid`;
|
|
1056
|
+
return this.httpClient.request<AgravityInfoResponse>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1057
|
+
context: localVarHttpContext,
|
|
637
1058
|
responseType: <any>responseType_,
|
|
638
1059
|
withCredentials: this.configuration.withCredentials,
|
|
639
|
-
headers:
|
|
1060
|
+
headers: localVarHeaders,
|
|
640
1061
|
observe: observe,
|
|
1062
|
+
transferCache: localVarTransferCache,
|
|
641
1063
|
reportProgress: reportProgress
|
|
642
1064
|
});
|
|
643
1065
|
}
|
|
644
1066
|
|
|
645
1067
|
/**
|
|
646
1068
|
* This endpoint to impersonate an Agravity user.
|
|
647
|
-
* @param
|
|
1069
|
+
* @param requestParameters
|
|
648
1070
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
649
1071
|
* @param reportProgress flag to report request and response progress.
|
|
650
1072
|
*/
|
|
651
|
-
public httpAuthPatchImpersonateUser(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
|
|
652
1073
|
public httpAuthPatchImpersonateUser(
|
|
653
|
-
|
|
1074
|
+
requestParameters?: HttpAuthPatchImpersonateUserRequestParams,
|
|
1075
|
+
observe?: 'body',
|
|
1076
|
+
reportProgress?: boolean,
|
|
1077
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1078
|
+
): Observable<AgravityInfoResponse>;
|
|
1079
|
+
public httpAuthPatchImpersonateUser(
|
|
1080
|
+
requestParameters?: HttpAuthPatchImpersonateUserRequestParams,
|
|
654
1081
|
observe?: 'response',
|
|
655
1082
|
reportProgress?: boolean,
|
|
656
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1083
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
657
1084
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
658
|
-
public httpAuthPatchImpersonateUser(
|
|
659
|
-
|
|
1085
|
+
public httpAuthPatchImpersonateUser(
|
|
1086
|
+
requestParameters?: HttpAuthPatchImpersonateUserRequestParams,
|
|
1087
|
+
observe?: 'events',
|
|
1088
|
+
reportProgress?: boolean,
|
|
1089
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1090
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
1091
|
+
public httpAuthPatchImpersonateUser(
|
|
1092
|
+
requestParameters?: HttpAuthPatchImpersonateUserRequestParams,
|
|
1093
|
+
observe: any = 'body',
|
|
1094
|
+
reportProgress: boolean = false,
|
|
1095
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1096
|
+
): Observable<any> {
|
|
1097
|
+
const id = requestParameters?.id;
|
|
660
1098
|
if (id === null || id === undefined) {
|
|
661
1099
|
throw new Error('Required parameter id was null or undefined when calling httpAuthPatchImpersonateUser.');
|
|
662
1100
|
}
|
|
663
1101
|
|
|
664
|
-
let
|
|
1102
|
+
let localVarHeaders = this.defaultHeaders;
|
|
665
1103
|
|
|
666
|
-
let
|
|
1104
|
+
let localVarCredential: string | undefined;
|
|
667
1105
|
// authentication (msal_auth) required
|
|
668
|
-
|
|
669
|
-
if (
|
|
670
|
-
|
|
1106
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1107
|
+
if (localVarCredential) {
|
|
1108
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
671
1109
|
}
|
|
672
1110
|
|
|
673
|
-
let
|
|
674
|
-
if (
|
|
1111
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1112
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
675
1113
|
// to determine the Accept header
|
|
676
1114
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
677
|
-
|
|
1115
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1116
|
+
}
|
|
1117
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1118
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
678
1119
|
}
|
|
679
|
-
|
|
680
|
-
|
|
1120
|
+
|
|
1121
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1122
|
+
if (localVarHttpContext === undefined) {
|
|
1123
|
+
localVarHttpContext = new HttpContext();
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1127
|
+
if (localVarTransferCache === undefined) {
|
|
1128
|
+
localVarTransferCache = true;
|
|
681
1129
|
}
|
|
682
1130
|
|
|
683
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
684
|
-
if (
|
|
685
|
-
|
|
1131
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1132
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1133
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1134
|
+
responseType_ = 'text';
|
|
1135
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1136
|
+
responseType_ = 'json';
|
|
1137
|
+
} else {
|
|
1138
|
+
responseType_ = 'blob';
|
|
1139
|
+
}
|
|
686
1140
|
}
|
|
687
1141
|
|
|
688
|
-
|
|
1142
|
+
let localVarPath = `/auth/impersonate/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
1143
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
1144
|
+
context: localVarHttpContext,
|
|
689
1145
|
responseType: <any>responseType_,
|
|
690
1146
|
withCredentials: this.configuration.withCredentials,
|
|
691
|
-
headers:
|
|
1147
|
+
headers: localVarHeaders,
|
|
692
1148
|
observe: observe,
|
|
1149
|
+
transferCache: localVarTransferCache,
|
|
693
1150
|
reportProgress: reportProgress
|
|
694
1151
|
});
|
|
695
1152
|
}
|