@adobe/spacecat-shared-project-engine-client 1.7.0 → 1.8.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 +70 -4
package/package.json
CHANGED
package/src/generated/types.ts
CHANGED
|
@@ -1602,6 +1602,26 @@ export interface paths {
|
|
|
1602
1602
|
patch?: never;
|
|
1603
1603
|
trace?: never;
|
|
1604
1604
|
};
|
|
1605
|
+
"/v1/url/resolve": {
|
|
1606
|
+
parameters: {
|
|
1607
|
+
query?: never;
|
|
1608
|
+
header?: never;
|
|
1609
|
+
path?: never;
|
|
1610
|
+
cookie?: never;
|
|
1611
|
+
};
|
|
1612
|
+
/**
|
|
1613
|
+
* Resolve a URL to its canonical brand-URL form
|
|
1614
|
+
* @description Canonicalize a raw URL to the form Semrush stores as a brand URL. `primary_url` strips the scheme and a leading `www.` but preserves any other subdomain and the path; `domain` is the registrable apex (subdomain stripped too). For unresolvable or garbage input `is_valid` is false and `domain`/`primary_url` are empty strings — still HTTP 200, so consumers MUST check `is_valid` and never write the empty value.
|
|
1615
|
+
*/
|
|
1616
|
+
get: operations["resolve-url"];
|
|
1617
|
+
put?: never;
|
|
1618
|
+
post?: never;
|
|
1619
|
+
delete?: never;
|
|
1620
|
+
options?: never;
|
|
1621
|
+
head?: never;
|
|
1622
|
+
patch?: never;
|
|
1623
|
+
trace?: never;
|
|
1624
|
+
};
|
|
1605
1625
|
}
|
|
1606
1626
|
export type webhooks = Record<string, never>;
|
|
1607
1627
|
export interface components {
|
|
@@ -2299,6 +2319,7 @@ export interface components {
|
|
|
2299
2319
|
items?: components["schemas"]["model.StringIDName"][];
|
|
2300
2320
|
page?: number;
|
|
2301
2321
|
total?: number;
|
|
2322
|
+
existing_count?: number;
|
|
2302
2323
|
};
|
|
2303
2324
|
"model.TreeNodeListRequest": {
|
|
2304
2325
|
names: string[];
|
|
@@ -2311,7 +2332,7 @@ export interface components {
|
|
|
2311
2332
|
};
|
|
2312
2333
|
"model.TreeNodeRequest": {
|
|
2313
2334
|
name: string;
|
|
2314
|
-
parent_id?: string;
|
|
2335
|
+
parent_id?: string | null;
|
|
2315
2336
|
};
|
|
2316
2337
|
"model.TreeNodeResponse": {
|
|
2317
2338
|
children_count?: number;
|
|
@@ -2331,6 +2352,11 @@ export interface components {
|
|
|
2331
2352
|
total?: number;
|
|
2332
2353
|
items?: components["schemas"]["model.AIModelResponse"][];
|
|
2333
2354
|
};
|
|
2355
|
+
"model.UrlResolveResponse": {
|
|
2356
|
+
domain: string;
|
|
2357
|
+
primary_url: string;
|
|
2358
|
+
is_valid: boolean;
|
|
2359
|
+
};
|
|
2334
2360
|
};
|
|
2335
2361
|
responses: never;
|
|
2336
2362
|
parameters: never;
|
|
@@ -7328,13 +7354,13 @@ export interface operations {
|
|
|
7328
7354
|
};
|
|
7329
7355
|
requestBody: components["requestBodies"]["model.KeywordRequest"];
|
|
7330
7356
|
responses: {
|
|
7331
|
-
/** @description
|
|
7332
|
-
|
|
7357
|
+
/** @description Created */
|
|
7358
|
+
201: {
|
|
7333
7359
|
headers: {
|
|
7334
7360
|
[name: string]: unknown;
|
|
7335
7361
|
};
|
|
7336
7362
|
content: {
|
|
7337
|
-
"application/json": components["schemas"]["model.
|
|
7363
|
+
"application/json": components["schemas"]["model.StringIDNameListResponse"];
|
|
7338
7364
|
};
|
|
7339
7365
|
};
|
|
7340
7366
|
/** @description Unauthorized */
|
|
@@ -8372,4 +8398,44 @@ export interface operations {
|
|
|
8372
8398
|
};
|
|
8373
8399
|
};
|
|
8374
8400
|
};
|
|
8401
|
+
"resolve-url": {
|
|
8402
|
+
parameters: {
|
|
8403
|
+
query: {
|
|
8404
|
+
primary_url: string;
|
|
8405
|
+
};
|
|
8406
|
+
header?: never;
|
|
8407
|
+
path?: never;
|
|
8408
|
+
cookie?: never;
|
|
8409
|
+
};
|
|
8410
|
+
requestBody?: never;
|
|
8411
|
+
responses: {
|
|
8412
|
+
/** @description OK */
|
|
8413
|
+
200: {
|
|
8414
|
+
headers: {
|
|
8415
|
+
[name: string]: unknown;
|
|
8416
|
+
};
|
|
8417
|
+
content: {
|
|
8418
|
+
"application/json": components["schemas"]["model.UrlResolveResponse"];
|
|
8419
|
+
};
|
|
8420
|
+
};
|
|
8421
|
+
/** @description Bad Request (missing or empty primary_url) */
|
|
8422
|
+
400: {
|
|
8423
|
+
headers: {
|
|
8424
|
+
[name: string]: unknown;
|
|
8425
|
+
};
|
|
8426
|
+
content: {
|
|
8427
|
+
"application/json": components["schemas"]["http_server.BasicResponse"];
|
|
8428
|
+
};
|
|
8429
|
+
};
|
|
8430
|
+
/** @description Unauthorized */
|
|
8431
|
+
401: {
|
|
8432
|
+
headers: {
|
|
8433
|
+
[name: string]: unknown;
|
|
8434
|
+
};
|
|
8435
|
+
content: {
|
|
8436
|
+
"application/json": components["schemas"]["http_server.BasicResponse"];
|
|
8437
|
+
};
|
|
8438
|
+
};
|
|
8439
|
+
};
|
|
8440
|
+
};
|
|
8375
8441
|
}
|