@wix/auto_sdk_domains_domain-suggestions 1.0.25 → 1.0.27
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/build/cjs/schemas.d.ts +30 -0
- package/build/cjs/schemas.js +91 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/schemas.d.mts +30 -0
- package/build/es/schemas.mjs +53 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/schemas.d.ts +30 -0
- package/build/internal/cjs/schemas.js +91 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/schemas.d.mts +30 -0
- package/build/internal/es/schemas.mjs +53 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const SuggestDomainsRequest: z.ZodObject<{
|
|
4
|
+
query: z.ZodString;
|
|
5
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
tlds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
8
|
+
paging: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
10
|
+
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
maxLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const SuggestDomainsResponse: z.ZodObject<{
|
|
16
|
+
suggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
18
|
+
premium: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
pagingMetadata: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
+
cursors: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
|
|
30
|
+
export { SuggestDomainsRequest, SuggestDomainsResponse };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// schemas.ts
|
|
31
|
+
var schemas_exports = {};
|
|
32
|
+
__export(schemas_exports, {
|
|
33
|
+
SuggestDomainsRequest: () => SuggestDomainsRequest,
|
|
34
|
+
SuggestDomainsResponse: () => SuggestDomainsResponse
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
37
|
+
|
|
38
|
+
// src/premium-domains-v2-suggestion-domain-suggestions.schemas.ts
|
|
39
|
+
var z = __toESM(require("zod"));
|
|
40
|
+
var SuggestDomainsRequest = z.object({
|
|
41
|
+
query: z.string().describe(
|
|
42
|
+
"Input to base your domain suggestions on. May include\nletters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n\nMin: 1 characters\nMax: 100 characters"
|
|
43
|
+
).min(1).max(100),
|
|
44
|
+
options: z.object({
|
|
45
|
+
tlds: z.array(z.string()).min(0).max(10).optional(),
|
|
46
|
+
limit: z.number().int().describe(
|
|
47
|
+
"Number of domain suggestions to return. __Deprecated__: This field will be\nremoved on March 1, 2025. Use `paging.limit` instead.\n\nMin: `1`\nMax: `20`\nDefault: `10`"
|
|
48
|
+
).min(1).max(20).optional().nullable(),
|
|
49
|
+
paging: z.object({
|
|
50
|
+
limit: z.number().int().describe(
|
|
51
|
+
"Maximum number of domains to return in the results.\n\nMin: `0`\nMax: `20`"
|
|
52
|
+
).min(1).max(20).optional().nullable(),
|
|
53
|
+
cursor: z.string().describe(
|
|
54
|
+
"Pointer to the next or previous page in the list of results.\n\nYou can get the relevant cursor token\nfrom the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
55
|
+
).min(0).max(1e4).optional().nullable()
|
|
56
|
+
}).describe("Cursor paging options.").optional(),
|
|
57
|
+
maxLength: z.number().int().describe(
|
|
58
|
+
"Maximum number of characters for the domain name, excluding the TLD.\n\nMin: `3`\nMax: `63`\nDefault: `63`"
|
|
59
|
+
).min(3).max(63).optional().nullable()
|
|
60
|
+
}).optional()
|
|
61
|
+
});
|
|
62
|
+
var SuggestDomainsResponse = z.object({
|
|
63
|
+
suggestions: z.array(
|
|
64
|
+
z.object({
|
|
65
|
+
domain: z.string().describe("Suggested domain name including TLD.").optional(),
|
|
66
|
+
premium: z.boolean().describe(
|
|
67
|
+
"Whether the domain has a higher price due to its perceived value or demand."
|
|
68
|
+
).optional()
|
|
69
|
+
})
|
|
70
|
+
).optional(),
|
|
71
|
+
pagingMetadata: z.object({
|
|
72
|
+
count: z.number().int().describe("Number of domains returned in the response.").optional().nullable(),
|
|
73
|
+
cursors: z.object({
|
|
74
|
+
next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
|
|
75
|
+
prev: z.string().describe(
|
|
76
|
+
"Cursor pointing to previous page in the list of results."
|
|
77
|
+
).optional().nullable()
|
|
78
|
+
}).describe(
|
|
79
|
+
"Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used."
|
|
80
|
+
).optional(),
|
|
81
|
+
hasNext: z.boolean().describe(
|
|
82
|
+
"Indicates if there are more results after the current page.\nIf `true`, another page of results can be retrieved.\nIf `false`, this is the last page."
|
|
83
|
+
).optional().nullable()
|
|
84
|
+
}).describe("Metadata about the returned list of suggested domains.").optional()
|
|
85
|
+
});
|
|
86
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
87
|
+
0 && (module.exports = {
|
|
88
|
+
SuggestDomainsRequest,
|
|
89
|
+
SuggestDomainsResponse
|
|
90
|
+
});
|
|
91
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.schemas.ts"],"sourcesContent":["export * from './src/premium-domains-v2-suggestion-domain-suggestions.schemas.js';\n","import * as z from 'zod';\n\nexport const SuggestDomainsRequest = z.object({\n query: z\n .string()\n .describe(\n 'Input to base your domain suggestions on. May include\\nletters, numbers, spaces, dots, and hyphens. Must not include the TLD.\\n\\nMin: 1 characters\\nMax: 100 characters'\n )\n .min(1)\n .max(100),\n options: z\n .object({\n tlds: z.array(z.string()).min(0).max(10).optional(),\n limit: z\n .number()\n .int()\n .describe(\n 'Number of domain suggestions to return. __Deprecated__: This field will be\\nremoved on March 1, 2025. Use `paging.limit` instead.\\n\\nMin: `1`\\nMax: `20`\\nDefault: `10`'\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe(\n 'Maximum number of domains to return in the results.\\n\\nMin: `0`\\nMax: `20`'\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nYou can get the relevant cursor token\\nfrom the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .min(0)\n .max(10000)\n .optional()\n .nullable(),\n })\n .describe('Cursor paging options.')\n .optional(),\n maxLength: z\n .number()\n .int()\n .describe(\n 'Maximum number of characters for the domain name, excluding the TLD.\\n\\nMin: `3`\\nMax: `63`\\nDefault: `63`'\n )\n .min(3)\n .max(63)\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const SuggestDomainsResponse = z.object({\n suggestions: z\n .array(\n z.object({\n domain: z\n .string()\n .describe('Suggested domain name including TLD.')\n .optional(),\n premium: z\n .boolean()\n .describe(\n 'Whether the domain has a higher price due to its perceived value or demand.'\n )\n .optional(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of domains returned in the response.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe('Cursor pointing to next page in the list of results.')\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to previous page in the list of results.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Indicates if there are more results after the current page.\\nIf `true`, another page of results can be retrieved.\\nIf `false`, this is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Metadata about the returned list of suggested domains.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,wBAA0B,SAAO;AAAA,EAC5C,OACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG;AAAA,EACV,SACG,SAAO;AAAA,IACN,MAAQ,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,IAClD,OACG,SAAO,EACP,IAAI,EACJ;AAAA,MACC;AAAA,IACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,IACZ,QACG,SAAO;AAAA,MACN,OACG,SAAO,EACP,IAAI,EACJ;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,MACZ,QACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI,GAAK,EACT,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA,SAAS,wBAAwB,EACjC,SAAS;AAAA,IACZ,WACG,SAAO,EACP,IAAI,EACJ;AAAA,MACC;AAAA,IACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,aACG;AAAA,IACG,SAAO;AAAA,MACP,QACG,SAAO,EACP,SAAS,sCAAsC,EAC/C,SAAS;AAAA,MACZ,SACG,UAAQ,EACR;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AAAA,EACZ,gBACG,SAAO;AAAA,IACN,OACG,SAAO,EACP,IAAI,EACJ,SAAS,6CAA6C,EACtD,SAAS,EACT,SAAS;AAAA,IACZ,SACG,SAAO;AAAA,MACN,MACG,SAAO,EACP,SAAS,sDAAsD,EAC/D,SAAS,EACT,SAAS;AAAA,MACZ,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,wDAAwD,EACjE,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const SuggestDomainsRequest: z.ZodObject<{
|
|
4
|
+
query: z.ZodString;
|
|
5
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
tlds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
8
|
+
paging: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
10
|
+
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
maxLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const SuggestDomainsResponse: z.ZodObject<{
|
|
16
|
+
suggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
18
|
+
premium: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
pagingMetadata: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
+
cursors: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
|
|
30
|
+
export { SuggestDomainsRequest, SuggestDomainsResponse };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// src/premium-domains-v2-suggestion-domain-suggestions.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var SuggestDomainsRequest = z.object({
|
|
4
|
+
query: z.string().describe(
|
|
5
|
+
"Input to base your domain suggestions on. May include\nletters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n\nMin: 1 characters\nMax: 100 characters"
|
|
6
|
+
).min(1).max(100),
|
|
7
|
+
options: z.object({
|
|
8
|
+
tlds: z.array(z.string()).min(0).max(10).optional(),
|
|
9
|
+
limit: z.number().int().describe(
|
|
10
|
+
"Number of domain suggestions to return. __Deprecated__: This field will be\nremoved on March 1, 2025. Use `paging.limit` instead.\n\nMin: `1`\nMax: `20`\nDefault: `10`"
|
|
11
|
+
).min(1).max(20).optional().nullable(),
|
|
12
|
+
paging: z.object({
|
|
13
|
+
limit: z.number().int().describe(
|
|
14
|
+
"Maximum number of domains to return in the results.\n\nMin: `0`\nMax: `20`"
|
|
15
|
+
).min(1).max(20).optional().nullable(),
|
|
16
|
+
cursor: z.string().describe(
|
|
17
|
+
"Pointer to the next or previous page in the list of results.\n\nYou can get the relevant cursor token\nfrom the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
18
|
+
).min(0).max(1e4).optional().nullable()
|
|
19
|
+
}).describe("Cursor paging options.").optional(),
|
|
20
|
+
maxLength: z.number().int().describe(
|
|
21
|
+
"Maximum number of characters for the domain name, excluding the TLD.\n\nMin: `3`\nMax: `63`\nDefault: `63`"
|
|
22
|
+
).min(3).max(63).optional().nullable()
|
|
23
|
+
}).optional()
|
|
24
|
+
});
|
|
25
|
+
var SuggestDomainsResponse = z.object({
|
|
26
|
+
suggestions: z.array(
|
|
27
|
+
z.object({
|
|
28
|
+
domain: z.string().describe("Suggested domain name including TLD.").optional(),
|
|
29
|
+
premium: z.boolean().describe(
|
|
30
|
+
"Whether the domain has a higher price due to its perceived value or demand."
|
|
31
|
+
).optional()
|
|
32
|
+
})
|
|
33
|
+
).optional(),
|
|
34
|
+
pagingMetadata: z.object({
|
|
35
|
+
count: z.number().int().describe("Number of domains returned in the response.").optional().nullable(),
|
|
36
|
+
cursors: z.object({
|
|
37
|
+
next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
|
|
38
|
+
prev: z.string().describe(
|
|
39
|
+
"Cursor pointing to previous page in the list of results."
|
|
40
|
+
).optional().nullable()
|
|
41
|
+
}).describe(
|
|
42
|
+
"Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used."
|
|
43
|
+
).optional(),
|
|
44
|
+
hasNext: z.boolean().describe(
|
|
45
|
+
"Indicates if there are more results after the current page.\nIf `true`, another page of results can be retrieved.\nIf `false`, this is the last page."
|
|
46
|
+
).optional().nullable()
|
|
47
|
+
}).describe("Metadata about the returned list of suggested domains.").optional()
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
SuggestDomainsRequest,
|
|
51
|
+
SuggestDomainsResponse
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/premium-domains-v2-suggestion-domain-suggestions.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const SuggestDomainsRequest = z.object({\n query: z\n .string()\n .describe(\n 'Input to base your domain suggestions on. May include\\nletters, numbers, spaces, dots, and hyphens. Must not include the TLD.\\n\\nMin: 1 characters\\nMax: 100 characters'\n )\n .min(1)\n .max(100),\n options: z\n .object({\n tlds: z.array(z.string()).min(0).max(10).optional(),\n limit: z\n .number()\n .int()\n .describe(\n 'Number of domain suggestions to return. __Deprecated__: This field will be\\nremoved on March 1, 2025. Use `paging.limit` instead.\\n\\nMin: `1`\\nMax: `20`\\nDefault: `10`'\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe(\n 'Maximum number of domains to return in the results.\\n\\nMin: `0`\\nMax: `20`'\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nYou can get the relevant cursor token\\nfrom the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .min(0)\n .max(10000)\n .optional()\n .nullable(),\n })\n .describe('Cursor paging options.')\n .optional(),\n maxLength: z\n .number()\n .int()\n .describe(\n 'Maximum number of characters for the domain name, excluding the TLD.\\n\\nMin: `3`\\nMax: `63`\\nDefault: `63`'\n )\n .min(3)\n .max(63)\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const SuggestDomainsResponse = z.object({\n suggestions: z\n .array(\n z.object({\n domain: z\n .string()\n .describe('Suggested domain name including TLD.')\n .optional(),\n premium: z\n .boolean()\n .describe(\n 'Whether the domain has a higher price due to its perceived value or demand.'\n )\n .optional(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of domains returned in the response.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe('Cursor pointing to next page in the list of results.')\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to previous page in the list of results.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Indicates if there are more results after the current page.\\nIf `true`, another page of results can be retrieved.\\nIf `false`, this is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Metadata about the returned list of suggested domains.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,wBAA0B,SAAO;AAAA,EAC5C,OACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG;AAAA,EACV,SACG,SAAO;AAAA,IACN,MAAQ,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,IAClD,OACG,SAAO,EACP,IAAI,EACJ;AAAA,MACC;AAAA,IACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,IACZ,QACG,SAAO;AAAA,MACN,OACG,SAAO,EACP,IAAI,EACJ;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,MACZ,QACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI,GAAK,EACT,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA,SAAS,wBAAwB,EACjC,SAAS;AAAA,IACZ,WACG,SAAO,EACP,IAAI,EACJ;AAAA,MACC;AAAA,IACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,aACG;AAAA,IACG,SAAO;AAAA,MACP,QACG,SAAO,EACP,SAAS,sCAAsC,EAC/C,SAAS;AAAA,MACZ,SACG,UAAQ,EACR;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AAAA,EACZ,gBACG,SAAO;AAAA,IACN,OACG,SAAO,EACP,IAAI,EACJ,SAAS,6CAA6C,EACtD,SAAS,EACT,SAAS;AAAA,IACZ,SACG,SAAO;AAAA,MACN,MACG,SAAO,EACP,SAAS,sDAAsD,EAC/D,SAAS,EACT,SAAS;AAAA,MACZ,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,wDAAwD,EACjE,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const SuggestDomainsRequest: z.ZodObject<{
|
|
4
|
+
query: z.ZodString;
|
|
5
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
tlds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
8
|
+
paging: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
10
|
+
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
maxLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const SuggestDomainsResponse: z.ZodObject<{
|
|
16
|
+
suggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
18
|
+
premium: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
pagingMetadata: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
+
cursors: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
|
|
30
|
+
export { SuggestDomainsRequest, SuggestDomainsResponse };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// schemas.ts
|
|
31
|
+
var schemas_exports = {};
|
|
32
|
+
__export(schemas_exports, {
|
|
33
|
+
SuggestDomainsRequest: () => SuggestDomainsRequest,
|
|
34
|
+
SuggestDomainsResponse: () => SuggestDomainsResponse
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
37
|
+
|
|
38
|
+
// src/premium-domains-v2-suggestion-domain-suggestions.schemas.ts
|
|
39
|
+
var z = __toESM(require("zod"));
|
|
40
|
+
var SuggestDomainsRequest = z.object({
|
|
41
|
+
query: z.string().describe(
|
|
42
|
+
"Input to base your domain suggestions on. May include\nletters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n\nMin: 1 characters\nMax: 100 characters"
|
|
43
|
+
).min(1).max(100),
|
|
44
|
+
options: z.object({
|
|
45
|
+
tlds: z.array(z.string()).min(0).max(10).optional(),
|
|
46
|
+
limit: z.number().int().describe(
|
|
47
|
+
"Number of domain suggestions to return. __Deprecated__: This field will be\nremoved on March 1, 2025. Use `paging.limit` instead.\n\nMin: `1`\nMax: `20`\nDefault: `10`"
|
|
48
|
+
).min(1).max(20).optional().nullable(),
|
|
49
|
+
paging: z.object({
|
|
50
|
+
limit: z.number().int().describe(
|
|
51
|
+
"Maximum number of domains to return in the results.\n\nMin: `0`\nMax: `20`"
|
|
52
|
+
).min(1).max(20).optional().nullable(),
|
|
53
|
+
cursor: z.string().describe(
|
|
54
|
+
"Pointer to the next or previous page in the list of results.\n\nYou can get the relevant cursor token\nfrom the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
55
|
+
).min(0).max(1e4).optional().nullable()
|
|
56
|
+
}).describe("Cursor paging options.").optional(),
|
|
57
|
+
maxLength: z.number().int().describe(
|
|
58
|
+
"Maximum number of characters for the domain name, excluding the TLD.\n\nMin: `3`\nMax: `63`\nDefault: `63`"
|
|
59
|
+
).min(3).max(63).optional().nullable()
|
|
60
|
+
}).optional()
|
|
61
|
+
});
|
|
62
|
+
var SuggestDomainsResponse = z.object({
|
|
63
|
+
suggestions: z.array(
|
|
64
|
+
z.object({
|
|
65
|
+
domain: z.string().describe("Suggested domain name including TLD.").optional(),
|
|
66
|
+
premium: z.boolean().describe(
|
|
67
|
+
"Whether the domain has a higher price due to its perceived value or demand."
|
|
68
|
+
).optional()
|
|
69
|
+
})
|
|
70
|
+
).optional(),
|
|
71
|
+
pagingMetadata: z.object({
|
|
72
|
+
count: z.number().int().describe("Number of domains returned in the response.").optional().nullable(),
|
|
73
|
+
cursors: z.object({
|
|
74
|
+
next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
|
|
75
|
+
prev: z.string().describe(
|
|
76
|
+
"Cursor pointing to previous page in the list of results."
|
|
77
|
+
).optional().nullable()
|
|
78
|
+
}).describe(
|
|
79
|
+
"Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used."
|
|
80
|
+
).optional(),
|
|
81
|
+
hasNext: z.boolean().describe(
|
|
82
|
+
"Indicates if there are more results after the current page.\nIf `true`, another page of results can be retrieved.\nIf `false`, this is the last page."
|
|
83
|
+
).optional().nullable()
|
|
84
|
+
}).describe("Metadata about the returned list of suggested domains.").optional()
|
|
85
|
+
});
|
|
86
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
87
|
+
0 && (module.exports = {
|
|
88
|
+
SuggestDomainsRequest,
|
|
89
|
+
SuggestDomainsResponse
|
|
90
|
+
});
|
|
91
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../schemas.ts","../../../src/premium-domains-v2-suggestion-domain-suggestions.schemas.ts"],"sourcesContent":["export * from './src/premium-domains-v2-suggestion-domain-suggestions.schemas.js';\n","import * as z from 'zod';\n\nexport const SuggestDomainsRequest = z.object({\n query: z\n .string()\n .describe(\n 'Input to base your domain suggestions on. May include\\nletters, numbers, spaces, dots, and hyphens. Must not include the TLD.\\n\\nMin: 1 characters\\nMax: 100 characters'\n )\n .min(1)\n .max(100),\n options: z\n .object({\n tlds: z.array(z.string()).min(0).max(10).optional(),\n limit: z\n .number()\n .int()\n .describe(\n 'Number of domain suggestions to return. __Deprecated__: This field will be\\nremoved on March 1, 2025. Use `paging.limit` instead.\\n\\nMin: `1`\\nMax: `20`\\nDefault: `10`'\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe(\n 'Maximum number of domains to return in the results.\\n\\nMin: `0`\\nMax: `20`'\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nYou can get the relevant cursor token\\nfrom the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .min(0)\n .max(10000)\n .optional()\n .nullable(),\n })\n .describe('Cursor paging options.')\n .optional(),\n maxLength: z\n .number()\n .int()\n .describe(\n 'Maximum number of characters for the domain name, excluding the TLD.\\n\\nMin: `3`\\nMax: `63`\\nDefault: `63`'\n )\n .min(3)\n .max(63)\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const SuggestDomainsResponse = z.object({\n suggestions: z\n .array(\n z.object({\n domain: z\n .string()\n .describe('Suggested domain name including TLD.')\n .optional(),\n premium: z\n .boolean()\n .describe(\n 'Whether the domain has a higher price due to its perceived value or demand.'\n )\n .optional(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of domains returned in the response.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe('Cursor pointing to next page in the list of results.')\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to previous page in the list of results.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Indicates if there are more results after the current page.\\nIf `true`, another page of results can be retrieved.\\nIf `false`, this is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Metadata about the returned list of suggested domains.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,wBAA0B,SAAO;AAAA,EAC5C,OACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG;AAAA,EACV,SACG,SAAO;AAAA,IACN,MAAQ,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,IAClD,OACG,SAAO,EACP,IAAI,EACJ;AAAA,MACC;AAAA,IACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,IACZ,QACG,SAAO;AAAA,MACN,OACG,SAAO,EACP,IAAI,EACJ;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,MACZ,QACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI,GAAK,EACT,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA,SAAS,wBAAwB,EACjC,SAAS;AAAA,IACZ,WACG,SAAO,EACP,IAAI,EACJ;AAAA,MACC;AAAA,IACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,aACG;AAAA,IACG,SAAO;AAAA,MACP,QACG,SAAO,EACP,SAAS,sCAAsC,EAC/C,SAAS;AAAA,MACZ,SACG,UAAQ,EACR;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AAAA,EACZ,gBACG,SAAO;AAAA,IACN,OACG,SAAO,EACP,IAAI,EACJ,SAAS,6CAA6C,EACtD,SAAS,EACT,SAAS;AAAA,IACZ,SACG,SAAO;AAAA,MACN,MACG,SAAO,EACP,SAAS,sDAAsD,EAC/D,SAAS,EACT,SAAS;AAAA,MACZ,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,wDAAwD,EACjE,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const SuggestDomainsRequest: z.ZodObject<{
|
|
4
|
+
query: z.ZodString;
|
|
5
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
tlds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
8
|
+
paging: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
10
|
+
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
maxLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const SuggestDomainsResponse: z.ZodObject<{
|
|
16
|
+
suggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
18
|
+
premium: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
pagingMetadata: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
+
cursors: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
|
|
30
|
+
export { SuggestDomainsRequest, SuggestDomainsResponse };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// src/premium-domains-v2-suggestion-domain-suggestions.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var SuggestDomainsRequest = z.object({
|
|
4
|
+
query: z.string().describe(
|
|
5
|
+
"Input to base your domain suggestions on. May include\nletters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n\nMin: 1 characters\nMax: 100 characters"
|
|
6
|
+
).min(1).max(100),
|
|
7
|
+
options: z.object({
|
|
8
|
+
tlds: z.array(z.string()).min(0).max(10).optional(),
|
|
9
|
+
limit: z.number().int().describe(
|
|
10
|
+
"Number of domain suggestions to return. __Deprecated__: This field will be\nremoved on March 1, 2025. Use `paging.limit` instead.\n\nMin: `1`\nMax: `20`\nDefault: `10`"
|
|
11
|
+
).min(1).max(20).optional().nullable(),
|
|
12
|
+
paging: z.object({
|
|
13
|
+
limit: z.number().int().describe(
|
|
14
|
+
"Maximum number of domains to return in the results.\n\nMin: `0`\nMax: `20`"
|
|
15
|
+
).min(1).max(20).optional().nullable(),
|
|
16
|
+
cursor: z.string().describe(
|
|
17
|
+
"Pointer to the next or previous page in the list of results.\n\nYou can get the relevant cursor token\nfrom the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
18
|
+
).min(0).max(1e4).optional().nullable()
|
|
19
|
+
}).describe("Cursor paging options.").optional(),
|
|
20
|
+
maxLength: z.number().int().describe(
|
|
21
|
+
"Maximum number of characters for the domain name, excluding the TLD.\n\nMin: `3`\nMax: `63`\nDefault: `63`"
|
|
22
|
+
).min(3).max(63).optional().nullable()
|
|
23
|
+
}).optional()
|
|
24
|
+
});
|
|
25
|
+
var SuggestDomainsResponse = z.object({
|
|
26
|
+
suggestions: z.array(
|
|
27
|
+
z.object({
|
|
28
|
+
domain: z.string().describe("Suggested domain name including TLD.").optional(),
|
|
29
|
+
premium: z.boolean().describe(
|
|
30
|
+
"Whether the domain has a higher price due to its perceived value or demand."
|
|
31
|
+
).optional()
|
|
32
|
+
})
|
|
33
|
+
).optional(),
|
|
34
|
+
pagingMetadata: z.object({
|
|
35
|
+
count: z.number().int().describe("Number of domains returned in the response.").optional().nullable(),
|
|
36
|
+
cursors: z.object({
|
|
37
|
+
next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
|
|
38
|
+
prev: z.string().describe(
|
|
39
|
+
"Cursor pointing to previous page in the list of results."
|
|
40
|
+
).optional().nullable()
|
|
41
|
+
}).describe(
|
|
42
|
+
"Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used."
|
|
43
|
+
).optional(),
|
|
44
|
+
hasNext: z.boolean().describe(
|
|
45
|
+
"Indicates if there are more results after the current page.\nIf `true`, another page of results can be retrieved.\nIf `false`, this is the last page."
|
|
46
|
+
).optional().nullable()
|
|
47
|
+
}).describe("Metadata about the returned list of suggested domains.").optional()
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
SuggestDomainsRequest,
|
|
51
|
+
SuggestDomainsResponse
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/premium-domains-v2-suggestion-domain-suggestions.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const SuggestDomainsRequest = z.object({\n query: z\n .string()\n .describe(\n 'Input to base your domain suggestions on. May include\\nletters, numbers, spaces, dots, and hyphens. Must not include the TLD.\\n\\nMin: 1 characters\\nMax: 100 characters'\n )\n .min(1)\n .max(100),\n options: z\n .object({\n tlds: z.array(z.string()).min(0).max(10).optional(),\n limit: z\n .number()\n .int()\n .describe(\n 'Number of domain suggestions to return. __Deprecated__: This field will be\\nremoved on March 1, 2025. Use `paging.limit` instead.\\n\\nMin: `1`\\nMax: `20`\\nDefault: `10`'\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe(\n 'Maximum number of domains to return in the results.\\n\\nMin: `0`\\nMax: `20`'\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nYou can get the relevant cursor token\\nfrom the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .min(0)\n .max(10000)\n .optional()\n .nullable(),\n })\n .describe('Cursor paging options.')\n .optional(),\n maxLength: z\n .number()\n .int()\n .describe(\n 'Maximum number of characters for the domain name, excluding the TLD.\\n\\nMin: `3`\\nMax: `63`\\nDefault: `63`'\n )\n .min(3)\n .max(63)\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const SuggestDomainsResponse = z.object({\n suggestions: z\n .array(\n z.object({\n domain: z\n .string()\n .describe('Suggested domain name including TLD.')\n .optional(),\n premium: z\n .boolean()\n .describe(\n 'Whether the domain has a higher price due to its perceived value or demand.'\n )\n .optional(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of domains returned in the response.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe('Cursor pointing to next page in the list of results.')\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to previous page in the list of results.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Indicates if there are more results after the current page.\\nIf `true`, another page of results can be retrieved.\\nIf `false`, this is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Metadata about the returned list of suggested domains.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,wBAA0B,SAAO;AAAA,EAC5C,OACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG;AAAA,EACV,SACG,SAAO;AAAA,IACN,MAAQ,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,IAClD,OACG,SAAO,EACP,IAAI,EACJ;AAAA,MACC;AAAA,IACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,IACZ,QACG,SAAO;AAAA,MACN,OACG,SAAO,EACP,IAAI,EACJ;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,MACZ,QACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI,GAAK,EACT,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA,SAAS,wBAAwB,EACjC,SAAS;AAAA,IACZ,WACG,SAAO,EACP,IAAI,EACJ;AAAA,MACC;AAAA,IACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,aACG;AAAA,IACG,SAAO;AAAA,MACP,QACG,SAAO,EACP,SAAS,sCAAsC,EAC/C,SAAS;AAAA,MACZ,SACG,UAAQ,EACR;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AAAA,EACZ,gBACG,SAAO;AAAA,IACN,OACG,SAAO,EACP,IAAI,EACJ,SAAS,6CAA6C,EACtD,SAAS,EACT,SAAS;AAAA,IACZ,SACG,SAAO;AAAA,MACN,MACG,SAAO,EACP,SAAS,sDAAsD,EAC/D,SAAS,EACT,SAAS;AAAA,MACZ,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,wDAAwD,EACjE,SAAS;AACd,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_domains_domain-suggestions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,16 +21,23 @@
|
|
|
21
21
|
"import": "./build/es/meta.mjs",
|
|
22
22
|
"require": "./build/cjs/meta.js",
|
|
23
23
|
"types": "./build/es/meta.d.mts"
|
|
24
|
+
},
|
|
25
|
+
"./schemas": {
|
|
26
|
+
"import": "./build/es/schemas.mjs",
|
|
27
|
+
"require": "./build/cjs/schemas.js",
|
|
28
|
+
"types": "./build/es/schemas.d.mts"
|
|
24
29
|
}
|
|
25
30
|
},
|
|
26
31
|
"files": [
|
|
27
32
|
"build",
|
|
28
33
|
"meta",
|
|
29
|
-
"service-plugins"
|
|
34
|
+
"service-plugins",
|
|
35
|
+
"schemas"
|
|
30
36
|
],
|
|
31
37
|
"dependencies": {
|
|
32
|
-
"@wix/sdk-runtime": "^1.0.
|
|
33
|
-
"@wix/sdk-types": "^1.17.
|
|
38
|
+
"@wix/sdk-runtime": "^1.0.10",
|
|
39
|
+
"@wix/sdk-types": "^1.17.6",
|
|
40
|
+
"zod": "^4.3.6"
|
|
34
41
|
},
|
|
35
42
|
"devDependencies": {
|
|
36
43
|
"tsup": "^8.4.0",
|
|
@@ -50,5 +57,5 @@
|
|
|
50
57
|
"fqdn": "wix.premium.domains.v2.suggestion"
|
|
51
58
|
}
|
|
52
59
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
60
|
+
"falconPackageHash": "95a7b66150b0387f171e0faff13536168fe25d8404e8636085ab753f"
|
|
54
61
|
}
|