@agravity/private 9.2.3 → 9.3.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.
@@ -2,6 +2,7 @@
2
2
  .openapi-generator-ignore
3
3
  README.md
4
4
  api.module.ts
5
+ api/aISettingsManagement.agravity.ts
5
6
  api/api.ts
6
7
  api/assetIconRuleManagement.agravity.ts
7
8
  api/assetManagement.agravity.ts
@@ -56,8 +57,10 @@ model/agravityUser.agravity.ts
56
57
  model/agravityUserDto.agravity.ts
57
58
  model/agravityUserOnlineStatus.agravity.ts
58
59
  model/agravityVersion.agravity.ts
60
+ model/aiFieldGeneration.agravity.ts
59
61
  model/aiGroup.agravity.ts
60
62
  model/aiGroupEntity.agravity.ts
63
+ model/aiSettings.agravity.ts
61
64
  model/allWebAppData.agravity.ts
62
65
  model/apiKeyResponse.agravity.ts
63
66
  model/appConfigTableEntity.agravity.ts
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- ## @agravity/private@9.2.3
1
+ ## @agravity/private@9.3.0
2
2
 
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 2025. All Rights Reserved
4
4
 
5
- The version of the OpenAPI document: 9.2.3
5
+ The version of the OpenAPI document: 9.3.0
6
6
 
7
7
  ### Building
8
8
 
@@ -23,7 +23,7 @@ Navigate to the folder of your consuming project and run one of next commands.
23
23
  _published:_
24
24
 
25
25
  ```
26
- npm install @agravity/private@9.2.3 --save
26
+ npm install @agravity/private@9.3.0 --save
27
27
  ```
28
28
 
29
29
  _without publishing (not recommended):_
@@ -0,0 +1,264 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ *
4
+ * Contact: office@agravity.io
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ /* tslint:disable:no-unused-variable member-ordering */
11
+
12
+ import { Inject, Injectable, Optional } from '@angular/core';
13
+ import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
14
+ import { CustomHttpParameterCodec } from '../encoder';
15
+ import { Observable } from 'rxjs';
16
+
17
+ // @ts-ignore
18
+ import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
19
+ // @ts-ignore
20
+ import { AiSettings } from '../model/aiSettings.agravity';
21
+
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
24
+ import { AgravityConfiguration } from '../configuration';
25
+
26
+ export interface HttpAISettingsPutRequestParams {
27
+ /** This endpoint overwrites the AI setting. */
28
+ aiSettings: AiSettings;
29
+ }
30
+
31
+ @Injectable({
32
+ providedIn: 'root'
33
+ })
34
+ export class AISettingsManagementService {
35
+ protected basePath = 'http://localhost:7071/api';
36
+ public defaultHeaders = new HttpHeaders();
37
+ public configuration = new AgravityConfiguration();
38
+ public encoder: HttpParameterCodec;
39
+
40
+ constructor(
41
+ protected httpClient: HttpClient,
42
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
43
+ @Optional() configuration: AgravityConfiguration
44
+ ) {
45
+ if (configuration) {
46
+ this.configuration = configuration;
47
+ }
48
+ if (typeof this.configuration.basePath !== 'string') {
49
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
50
+ if (firstBasePath != undefined) {
51
+ basePath = firstBasePath;
52
+ }
53
+
54
+ if (typeof basePath !== 'string') {
55
+ basePath = this.basePath;
56
+ }
57
+ this.configuration.basePath = basePath;
58
+ }
59
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
60
+ }
61
+
62
+ // @ts-ignore
63
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
64
+ if (typeof value === 'object' && value instanceof Date === false) {
65
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
66
+ } else {
67
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
68
+ }
69
+ return httpParams;
70
+ }
71
+
72
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
73
+ if (value == null) {
74
+ return httpParams;
75
+ }
76
+
77
+ if (typeof value === 'object') {
78
+ if (Array.isArray(value)) {
79
+ (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
80
+ } else if (value instanceof Date) {
81
+ if (key != null) {
82
+ httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
83
+ } else {
84
+ throw Error('key may not be null if value is Date');
85
+ }
86
+ } else {
87
+ Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
88
+ }
89
+ } else if (key != null) {
90
+ httpParams = httpParams.append(key, value);
91
+ } else {
92
+ throw Error('key may not be null if value is not object or array');
93
+ }
94
+ return httpParams;
95
+ }
96
+
97
+ /**
98
+ * This endpoint lists all AI settings in database.
99
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
100
+ * @param reportProgress flag to report request and response progress.
101
+ */
102
+ public httpAISettingsGet(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }): Observable<AiSettings>;
103
+ public httpAISettingsGet(
104
+ observe?: 'response',
105
+ reportProgress?: boolean,
106
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
107
+ ): Observable<HttpResponse<AiSettings>>;
108
+ public httpAISettingsGet(
109
+ observe?: 'events',
110
+ reportProgress?: boolean,
111
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
112
+ ): Observable<HttpEvent<AiSettings>>;
113
+ public httpAISettingsGet(
114
+ observe: any = 'body',
115
+ reportProgress: boolean = false,
116
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
117
+ ): Observable<any> {
118
+ let localVarHeaders = this.defaultHeaders;
119
+
120
+ let localVarCredential: string | undefined;
121
+ // authentication (msal_auth) required
122
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
123
+ if (localVarCredential) {
124
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
125
+ }
126
+
127
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
128
+ if (localVarHttpHeaderAcceptSelected === undefined) {
129
+ // to determine the Accept header
130
+ const httpHeaderAccepts: string[] = ['application/json'];
131
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
132
+ }
133
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
134
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
135
+ }
136
+
137
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
138
+ if (localVarHttpContext === undefined) {
139
+ localVarHttpContext = new HttpContext();
140
+ }
141
+
142
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
143
+ if (localVarTransferCache === undefined) {
144
+ localVarTransferCache = true;
145
+ }
146
+
147
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
148
+ if (localVarHttpHeaderAcceptSelected) {
149
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
150
+ responseType_ = 'text';
151
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
152
+ responseType_ = 'json';
153
+ } else {
154
+ responseType_ = 'blob';
155
+ }
156
+ }
157
+
158
+ let localVarPath = `/aisettings`;
159
+ return this.httpClient.request<AiSettings>('get', `${this.configuration.basePath}${localVarPath}`, {
160
+ context: localVarHttpContext,
161
+ responseType: <any>responseType_,
162
+ withCredentials: this.configuration.withCredentials,
163
+ headers: localVarHeaders,
164
+ observe: observe,
165
+ transferCache: localVarTransferCache,
166
+ reportProgress: reportProgress
167
+ });
168
+ }
169
+
170
+ /**
171
+ * This endpoint creates one AI settings entry in the database.
172
+ * @param requestParameters
173
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
174
+ * @param reportProgress flag to report request and response progress.
175
+ */
176
+ public httpAISettingsPut(
177
+ requestParameters?: HttpAISettingsPutRequestParams,
178
+ observe?: 'body',
179
+ reportProgress?: boolean,
180
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
181
+ ): Observable<AiSettings>;
182
+ public httpAISettingsPut(
183
+ requestParameters?: HttpAISettingsPutRequestParams,
184
+ observe?: 'response',
185
+ reportProgress?: boolean,
186
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
187
+ ): Observable<HttpResponse<AiSettings>>;
188
+ public httpAISettingsPut(
189
+ requestParameters?: HttpAISettingsPutRequestParams,
190
+ observe?: 'events',
191
+ reportProgress?: boolean,
192
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
193
+ ): Observable<HttpEvent<AiSettings>>;
194
+ public httpAISettingsPut(
195
+ requestParameters?: HttpAISettingsPutRequestParams,
196
+ observe: any = 'body',
197
+ reportProgress: boolean = false,
198
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
199
+ ): Observable<any> {
200
+ const aiSettings = requestParameters?.aiSettings;
201
+ if (aiSettings === null || aiSettings === undefined) {
202
+ throw new Error('Required parameter aiSettings was null or undefined when calling httpAISettingsPut.');
203
+ }
204
+
205
+ let localVarHeaders = this.defaultHeaders;
206
+
207
+ let localVarCredential: string | undefined;
208
+ // authentication (msal_auth) required
209
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
210
+ if (localVarCredential) {
211
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
212
+ }
213
+
214
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
215
+ if (localVarHttpHeaderAcceptSelected === undefined) {
216
+ // to determine the Accept header
217
+ const httpHeaderAccepts: string[] = ['application/json'];
218
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
219
+ }
220
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
221
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
222
+ }
223
+
224
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
225
+ if (localVarHttpContext === undefined) {
226
+ localVarHttpContext = new HttpContext();
227
+ }
228
+
229
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
230
+ if (localVarTransferCache === undefined) {
231
+ localVarTransferCache = true;
232
+ }
233
+
234
+ // to determine the Content-Type header
235
+ const consumes: string[] = ['application/json'];
236
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
237
+ if (httpContentTypeSelected !== undefined) {
238
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
239
+ }
240
+
241
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
242
+ if (localVarHttpHeaderAcceptSelected) {
243
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
244
+ responseType_ = 'text';
245
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
246
+ responseType_ = 'json';
247
+ } else {
248
+ responseType_ = 'blob';
249
+ }
250
+ }
251
+
252
+ let localVarPath = `/aisettings`;
253
+ return this.httpClient.request<AiSettings>('put', `${this.configuration.basePath}${localVarPath}`, {
254
+ context: localVarHttpContext,
255
+ body: aiSettings,
256
+ responseType: <any>responseType_,
257
+ withCredentials: this.configuration.withCredentials,
258
+ headers: localVarHeaders,
259
+ observe: observe,
260
+ transferCache: localVarTransferCache,
261
+ reportProgress: reportProgress
262
+ });
263
+ }
264
+ }
package/api/api.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export * from './aISettingsManagement.agravity';
2
+ import { AISettingsManagementService } from './aISettingsManagement.agravity';
1
3
  export * from './assetIconRuleManagement.agravity';
2
4
  import { AssetIconRuleManagementService } from './assetIconRuleManagement.agravity';
3
5
  export * from './assetManagement.agravity';
@@ -83,6 +85,7 @@ import { WordpressManagementService } from './wordpressManagement.agravity';
83
85
  export * from './workspaceManagement.agravity';
84
86
  import { WorkspaceManagementService } from './workspaceManagement.agravity';
85
87
  export const APIS = [
88
+ AISettingsManagementService,
86
89
  AssetIconRuleManagementService,
87
90
  AssetManagementService,
88
91
  AssetOperationsService,
@@ -79,6 +79,8 @@ export interface HttpUpdateVersionedAssetsByIdRequestParams {
79
79
  id: string;
80
80
  /** The version number of the asset. */
81
81
  vNr: string;
82
+ /** The content which should be updated. */
83
+ versionedAsset: VersionedAsset;
82
84
  }
83
85
 
84
86
  export interface HttpVersionedAssetsDeleteAllRequestParams {
@@ -813,6 +815,10 @@ export class AssetVersioningService {
813
815
  if (vNr === null || vNr === undefined) {
814
816
  throw new Error('Required parameter vNr was null or undefined when calling httpUpdateVersionedAssetsById.');
815
817
  }
818
+ const versionedAsset = requestParameters?.versionedAsset;
819
+ if (versionedAsset === null || versionedAsset === undefined) {
820
+ throw new Error('Required parameter versionedAsset was null or undefined when calling httpUpdateVersionedAssetsById.');
821
+ }
816
822
 
817
823
  let localVarHeaders = this.defaultHeaders;
818
824
 
@@ -843,6 +849,13 @@ export class AssetVersioningService {
843
849
  localVarTransferCache = true;
844
850
  }
845
851
 
852
+ // to determine the Content-Type header
853
+ const consumes: string[] = ['application/json'];
854
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
855
+ if (httpContentTypeSelected !== undefined) {
856
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
857
+ }
858
+
846
859
  let responseType_: 'text' | 'json' | 'blob' = 'json';
847
860
  if (localVarHttpHeaderAcceptSelected) {
848
861
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -857,6 +870,7 @@ export class AssetVersioningService {
857
870
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions/${this.configuration.encodeParam({ name: 'vNr', value: vNr, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
858
871
  return this.httpClient.request<VersionedAsset>('post', `${this.configuration.basePath}${localVarPath}`, {
859
872
  context: localVarHttpContext,
873
+ body: versionedAsset,
860
874
  responseType: <any>responseType_,
861
875
  withCredentials: this.configuration.withCredentials,
862
876
  headers: localVarHeaders,
@@ -14,10 +14,10 @@ import { AgravityUserOnlineStatus } from './agravityUserOnlineStatus.agravity';
14
14
  export interface AgravityUser {
15
15
  id?: string | null;
16
16
  entity_type?: string | null;
17
- secureuploads?: Array<SecureUploadEntity> | null;
18
17
  name?: string | null;
19
18
  email?: string | null;
20
19
  impersonation?: string | null;
20
+ secureuploads?: Array<SecureUploadEntity> | null;
21
21
  apikey?: string | null;
22
22
  online_status?: AgravityUserOnlineStatus | null;
23
23
  roles?: Array<string> | null;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ *
4
+ * Contact: office@agravity.io
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+
11
+ export interface AiFieldGeneration {
12
+ field_name?: string | null;
13
+ prompt?: string | null;
14
+ model?: string | null;
15
+ model_version?: string | null;
16
+ prompt_injections?: string | null;
17
+ filter?: string | null;
18
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ *
4
+ * Contact: office@agravity.io
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { AiFieldGeneration } from './aiFieldGeneration.agravity';
11
+
12
+ export interface AiSettings {
13
+ id?: string | null;
14
+ entity_type?: string | null;
15
+ fields?: Array<AiFieldGeneration> | null;
16
+ system_prompt?: string | null;
17
+ assistant_prompt?: string | null;
18
+ status?: string | null;
19
+ created_date?: string | null;
20
+ created_by?: string | null;
21
+ modified_date?: string | null;
22
+ modified_by?: string | null;
23
+ pk?: string | null;
24
+ _etag?: string | null;
25
+ }
package/model/models.ts CHANGED
@@ -5,8 +5,10 @@ export * from './agravityUser.agravity';
5
5
  export * from './agravityUserDto.agravity';
6
6
  export * from './agravityUserOnlineStatus.agravity';
7
7
  export * from './agravityVersion.agravity';
8
+ export * from './aiFieldGeneration.agravity';
8
9
  export * from './aiGroup.agravity';
9
10
  export * from './aiGroupEntity.agravity';
11
+ export * from './aiSettings.agravity';
10
12
  export * from './allWebAppData.agravity';
11
13
  export * from './apiKeyResponse.agravity';
12
14
  export * from './appConfigTableEntity.agravity';
@@ -11,13 +11,20 @@ import { CreateSftpUserResult } from './createSftpUserResult.agravity';
11
11
 
12
12
  export interface SecureUploadEntity {
13
13
  id?: string | null;
14
+ entity_type?: string | null;
14
15
  collection_id?: string | null;
15
- created_date?: string | null;
16
- created_by?: string | null;
17
16
  url?: string | null;
18
17
  valid_until?: string | null;
19
18
  password?: string | null;
20
19
  asset_tags?: Array<string> | null;
21
20
  message?: string | null;
22
21
  sftp_connection?: CreateSftpUserResult | null;
22
+ check_name_for_version?: boolean | null;
23
+ status?: string | null;
24
+ created_date?: string | null;
25
+ created_by?: string | null;
26
+ modified_date?: string | null;
27
+ modified_by?: string | null;
28
+ pk?: string | null;
29
+ _etag?: string | null;
23
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agravity/private",
3
- "version": "9.2.3",
3
+ "version": "9.3.0",
4
4
  "description": "The Agravity GlobalDAM API which allowes authenticated user to access the Agravity GlobalDAM Backend",
5
5
  "author": "Philipp Losbichler",
6
6
  "repository": {