@adobe/spacecat-shared-project-engine-client 1.19.0 → 1.21.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/package.json +1 -1
- package/src/generated/types.ts +2 -2
- package/src/index.d.ts +7 -1
- package/src/rest-transport.js +12 -1
package/package.json
CHANGED
package/src/generated/types.ts
CHANGED
|
@@ -8641,9 +8641,9 @@ export interface operations {
|
|
|
8641
8641
|
};
|
|
8642
8642
|
"aio-delete-tags": {
|
|
8643
8643
|
parameters: {
|
|
8644
|
-
query
|
|
8644
|
+
query?: {
|
|
8645
8645
|
/** @description prompt ID */
|
|
8646
|
-
prompt_id
|
|
8646
|
+
prompt_id?: string;
|
|
8647
8647
|
};
|
|
8648
8648
|
header?: never;
|
|
8649
8649
|
path: {
|
package/src/index.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ type TransportData<P extends keyof paths, M extends keyof paths[P]> =
|
|
|
111
111
|
| null;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* Intent-named facade over {@link SerenityProjectEngineApiClient}. Wraps the
|
|
114
|
+
* Intent-named facade over {@link SerenityProjectEngineApiClient}. Wraps the 35 in-spec
|
|
115
115
|
* Project Engine operations spacecat-api-service consumes behind verb+resource methods, so
|
|
116
116
|
* consumers depend on this seam rather than the raw client's literal path strings. Each method
|
|
117
117
|
* is THIN: it forwards the caller's openapi-fetch `init` to the underlying client and resolves
|
|
@@ -394,6 +394,12 @@ export interface SerenityProjectEngineTransport {
|
|
|
394
394
|
TransportInit<'/v2/workspaces/{id}/projects/{project_id}/aio/tags/{tag_id}', 'patch'>
|
|
395
395
|
>
|
|
396
396
|
): Promise<TransportData<'/v2/workspaces/{id}/projects/{project_id}/aio/tags/{tag_id}', 'patch'>>;
|
|
397
|
+
/** DELETE /v2/workspaces/{id}/projects/{project_id}/aio/tags — aio-delete-tags */
|
|
398
|
+
deleteProjectTags(
|
|
399
|
+
...init: TransportInitParam<
|
|
400
|
+
TransportInit<'/v2/workspaces/{id}/projects/{project_id}/aio/tags', 'delete'>
|
|
401
|
+
>
|
|
402
|
+
): Promise<TransportData<'/v2/workspaces/{id}/projects/{project_id}/aio/tags', 'delete'>>;
|
|
397
403
|
}
|
|
398
404
|
|
|
399
405
|
/**
|
package/src/rest-transport.js
CHANGED
|
@@ -22,7 +22,7 @@ import { ProjectEngineApiError } from './errors.js';
|
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Intent-named facade over the raw {@link createSerenityProjectEngineApiClient} openapi-fetch
|
|
25
|
-
* client. It wraps ONLY the
|
|
25
|
+
* client. It wraps ONLY the 35 in-spec Project Engine operations that spacecat-api-service
|
|
26
26
|
* consumes, behind verb+resource method names, so consumers depend on this seam rather than the
|
|
27
27
|
* raw client and its literal path strings. Each method is THIN: it forwards the caller's
|
|
28
28
|
* openapi-fetch `init` (params.path/query, body) to `client.<METHOD>('<literal path>', init)` and
|
|
@@ -270,5 +270,16 @@ export function createSerenityProjectEngineTransport(options) {
|
|
|
270
270
|
updateProjectTag(init) {
|
|
271
271
|
return unwrap('PATCH', client.PATCH('/v2/workspaces/{id}/projects/{project_id}/aio/tags/{tag_id}', init));
|
|
272
272
|
},
|
|
273
|
+
/**
|
|
274
|
+
* DELETE /v2/workspaces/{id}/projects/{project_id}/aio/tags — aio-delete-tags.
|
|
275
|
+
* The vendored contract's `prompt_id` query is corrected optional (CR25,
|
|
276
|
+
* overlays/corrections.yaml) — a live batch delete with no `prompt_id` at
|
|
277
|
+
* all 204s and deletes exactly the requested ids.
|
|
278
|
+
* @param init openapi-fetch init (path/query params, body) forwarded to the DELETE call.
|
|
279
|
+
* @returns the parsed response body once the delete succeeds, or null for an empty body.
|
|
280
|
+
*/
|
|
281
|
+
deleteProjectTags(init) {
|
|
282
|
+
return unwrap('DELETE', client.DELETE('/v2/workspaces/{id}/projects/{project_id}/aio/tags', init));
|
|
283
|
+
},
|
|
273
284
|
};
|
|
274
285
|
}
|