@adobe/spacecat-shared-project-engine-client 1.7.1 → 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 +65 -0
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 {
|
|
@@ -2332,6 +2352,11 @@ export interface components {
|
|
|
2332
2352
|
total?: number;
|
|
2333
2353
|
items?: components["schemas"]["model.AIModelResponse"][];
|
|
2334
2354
|
};
|
|
2355
|
+
"model.UrlResolveResponse": {
|
|
2356
|
+
domain: string;
|
|
2357
|
+
primary_url: string;
|
|
2358
|
+
is_valid: boolean;
|
|
2359
|
+
};
|
|
2335
2360
|
};
|
|
2336
2361
|
responses: never;
|
|
2337
2362
|
parameters: never;
|
|
@@ -8373,4 +8398,44 @@ export interface operations {
|
|
|
8373
8398
|
};
|
|
8374
8399
|
};
|
|
8375
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
|
+
};
|
|
8376
8441
|
}
|