vercel-api-js 1.22.2 → 1.22.4
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/dist/{components-pfe7zbum.cjs → components-hyg3vbj4.cjs} +28 -28
- package/dist/{components-n3yd7e34.js → components-o20wilwi.js} +28 -28
- package/dist/components.cjs +1 -1
- package/dist/components.d.mts +16 -16
- package/dist/components.d.mts.map +1 -1
- package/dist/components.mjs +1 -1
- package/dist/effect.cjs +1 -1
- package/dist/effect.d.mts +3 -3
- package/dist/effect.d.mts.map +1 -1
- package/dist/effect.mjs +1 -1
- package/dist/index.cjs +9 -2
- package/dist/index.d.ts +108 -73
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{schemas-bkz2iszm.js → schemas-iwnqohvk.js} +41 -22
- package/dist/{schemas-earo35w8.cjs → schemas-lx16ogc0.cjs} +47 -21
- package/dist/schemas.cjs +8 -1
- package/dist/schemas.d.mts +29 -17
- package/dist/schemas.d.mts.map +1 -1
- package/dist/schemas.mjs +1 -1
- package/dist/types.d.mts +62 -39
- package/dist/types.d.mts.map +1 -1
- package/package.json +4 -4
|
@@ -1781,6 +1781,23 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
1781
1781
|
});
|
|
1782
1782
|
return data;
|
|
1783
1783
|
}
|
|
1784
|
+
/**
|
|
1785
|
+
* @summary Get Domain Availability and Pricing
|
|
1786
|
+
* @description Start domain research here. Get registration availability and pricing for 1–200 exact domain names. Returns results in input order, with registration and renewal prices in USD for available domains. No authentication required.
|
|
1787
|
+
* @link /v1/registrar/domains/search
|
|
1788
|
+
*/ async function searchDomains({ queryParams, config } = {}) {
|
|
1789
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1790
|
+
const data = await request({
|
|
1791
|
+
method: "POST",
|
|
1792
|
+
url: `/v1/registrar/domains/search`,
|
|
1793
|
+
queryParams,
|
|
1794
|
+
...requestConfig,
|
|
1795
|
+
headers: {
|
|
1796
|
+
...requestConfig.headers
|
|
1797
|
+
}
|
|
1798
|
+
});
|
|
1799
|
+
return data;
|
|
1800
|
+
}
|
|
1784
1801
|
/**
|
|
1785
1802
|
* @summary Get supported TLDs
|
|
1786
1803
|
* @description Get a list of TLDs supported by Vercel
|
|
@@ -1912,23 +1929,6 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
1912
1929
|
});
|
|
1913
1930
|
return data;
|
|
1914
1931
|
}
|
|
1915
|
-
/**
|
|
1916
|
-
* @summary Check domain availability and pricing
|
|
1917
|
-
* @description Check registration availability for 1–200 exact domain names, such as `example.com`. Returns results in input order, with registration and renewal prices in USD for available domains. No authentication required.
|
|
1918
|
-
* @link /v1/registrar/domains/search
|
|
1919
|
-
*/ async function searchDomains({ queryParams, config } = {}) {
|
|
1920
|
-
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1921
|
-
const data = await request({
|
|
1922
|
-
method: "POST",
|
|
1923
|
-
url: `/v1/registrar/domains/search`,
|
|
1924
|
-
queryParams,
|
|
1925
|
-
...requestConfig,
|
|
1926
|
-
headers: {
|
|
1927
|
-
...requestConfig.headers
|
|
1928
|
-
}
|
|
1929
|
-
});
|
|
1930
|
-
return data;
|
|
1931
|
-
}
|
|
1932
1932
|
/**
|
|
1933
1933
|
* @summary Get contact info schema
|
|
1934
1934
|
* @description Some TLDs require additional contact information. Use this endpoint to get the schema for the tld-specific contact information for a domain.
|
|
@@ -8386,6 +8386,7 @@ const operationsByPath = {
|
|
|
8386
8386
|
"PUT /domains/{domain}/records": replaceDomainsByDomainRecords,
|
|
8387
8387
|
"GET /domains/records/{recordId}": getDomainsRecordsByRecordId,
|
|
8388
8388
|
"DELETE /v2/domains/{domain}/records/{recordId}": removeRecord,
|
|
8389
|
+
"POST /v1/registrar/domains/search": searchDomains,
|
|
8389
8390
|
"GET /v1/registrar/tlds/supported": getSupportedTlds,
|
|
8390
8391
|
"GET /v1/registrar/tlds/{tld}": getTld,
|
|
8391
8392
|
"GET /v1/registrar/tlds/{tld}/price": getTldPrice,
|
|
@@ -8393,7 +8394,6 @@ const operationsByPath = {
|
|
|
8393
8394
|
"GET /v1/registrar/domains/{domain}/price": getDomainPrice,
|
|
8394
8395
|
"POST /v1/registrar/domains/price": getBulkPrice,
|
|
8395
8396
|
"POST /v1/registrar/domains/availability": getBulkAvailability,
|
|
8396
|
-
"POST /v1/registrar/domains/search": searchDomains,
|
|
8397
8397
|
"GET /v1/registrar/domains/{domain}/contact-info/schema": getContactInfoSchema,
|
|
8398
8398
|
"GET /v1/registrar/domains/{domain}/auth-code": getDomainAuthCode,
|
|
8399
8399
|
"POST /v1/registrar/domains/{domain}/buy": buySingleDomain,
|
|
@@ -8844,6 +8844,7 @@ const operationsByTag = {
|
|
|
8844
8844
|
removeRecord
|
|
8845
8845
|
},
|
|
8846
8846
|
domainsRegistrar: {
|
|
8847
|
+
searchDomains,
|
|
8847
8848
|
getSupportedTlds,
|
|
8848
8849
|
getTld,
|
|
8849
8850
|
getTldPrice,
|
|
@@ -8851,7 +8852,6 @@ const operationsByTag = {
|
|
|
8851
8852
|
getDomainPrice,
|
|
8852
8853
|
getBulkPrice,
|
|
8853
8854
|
getBulkAvailability,
|
|
8854
|
-
searchDomains,
|
|
8855
8855
|
getContactInfoSchema,
|
|
8856
8856
|
getDomainAuthCode,
|
|
8857
8857
|
buySingleDomain,
|
|
@@ -9440,6 +9440,15 @@ const tagDictionary = {
|
|
|
9440
9440
|
]
|
|
9441
9441
|
},
|
|
9442
9442
|
domainsRegistrar: {
|
|
9443
|
+
POST: [
|
|
9444
|
+
"searchDomains",
|
|
9445
|
+
"getBulkPrice",
|
|
9446
|
+
"getBulkAvailability",
|
|
9447
|
+
"buySingleDomain",
|
|
9448
|
+
"buyDomains",
|
|
9449
|
+
"transferInDomain",
|
|
9450
|
+
"renewDomain"
|
|
9451
|
+
],
|
|
9443
9452
|
GET: [
|
|
9444
9453
|
"getSupportedTlds",
|
|
9445
9454
|
"getTld",
|
|
@@ -9452,15 +9461,6 @@ const tagDictionary = {
|
|
|
9452
9461
|
"getDomainContactVerification",
|
|
9453
9462
|
"getOrder"
|
|
9454
9463
|
],
|
|
9455
|
-
POST: [
|
|
9456
|
-
"getBulkPrice",
|
|
9457
|
-
"getBulkAvailability",
|
|
9458
|
-
"searchDomains",
|
|
9459
|
-
"buySingleDomain",
|
|
9460
|
-
"buyDomains",
|
|
9461
|
-
"transferInDomain",
|
|
9462
|
-
"renewDomain"
|
|
9463
|
-
],
|
|
9464
9464
|
PATCH: [
|
|
9465
9465
|
"updateDomainAutoRenew",
|
|
9466
9466
|
"updateDomainNameservers"
|
|
@@ -1781,6 +1781,23 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
1781
1781
|
});
|
|
1782
1782
|
return data;
|
|
1783
1783
|
}
|
|
1784
|
+
/**
|
|
1785
|
+
* @summary Get Domain Availability and Pricing
|
|
1786
|
+
* @description Start domain research here. Get registration availability and pricing for 1–200 exact domain names. Returns results in input order, with registration and renewal prices in USD for available domains. No authentication required.
|
|
1787
|
+
* @link /v1/registrar/domains/search
|
|
1788
|
+
*/ async function searchDomains({ queryParams, config } = {}) {
|
|
1789
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1790
|
+
const data = await request({
|
|
1791
|
+
method: "POST",
|
|
1792
|
+
url: `/v1/registrar/domains/search`,
|
|
1793
|
+
queryParams,
|
|
1794
|
+
...requestConfig,
|
|
1795
|
+
headers: {
|
|
1796
|
+
...requestConfig.headers
|
|
1797
|
+
}
|
|
1798
|
+
});
|
|
1799
|
+
return data;
|
|
1800
|
+
}
|
|
1784
1801
|
/**
|
|
1785
1802
|
* @summary Get supported TLDs
|
|
1786
1803
|
* @description Get a list of TLDs supported by Vercel
|
|
@@ -1912,23 +1929,6 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
1912
1929
|
});
|
|
1913
1930
|
return data;
|
|
1914
1931
|
}
|
|
1915
|
-
/**
|
|
1916
|
-
* @summary Check domain availability and pricing
|
|
1917
|
-
* @description Check registration availability for 1–200 exact domain names, such as `example.com`. Returns results in input order, with registration and renewal prices in USD for available domains. No authentication required.
|
|
1918
|
-
* @link /v1/registrar/domains/search
|
|
1919
|
-
*/ async function searchDomains({ queryParams, config } = {}) {
|
|
1920
|
-
const { client: request = client, ...requestConfig } = config ?? {};
|
|
1921
|
-
const data = await request({
|
|
1922
|
-
method: "POST",
|
|
1923
|
-
url: `/v1/registrar/domains/search`,
|
|
1924
|
-
queryParams,
|
|
1925
|
-
...requestConfig,
|
|
1926
|
-
headers: {
|
|
1927
|
-
...requestConfig.headers
|
|
1928
|
-
}
|
|
1929
|
-
});
|
|
1930
|
-
return data;
|
|
1931
|
-
}
|
|
1932
1932
|
/**
|
|
1933
1933
|
* @summary Get contact info schema
|
|
1934
1934
|
* @description Some TLDs require additional contact information. Use this endpoint to get the schema for the tld-specific contact information for a domain.
|
|
@@ -8386,6 +8386,7 @@ const operationsByPath = {
|
|
|
8386
8386
|
"PUT /domains/{domain}/records": replaceDomainsByDomainRecords,
|
|
8387
8387
|
"GET /domains/records/{recordId}": getDomainsRecordsByRecordId,
|
|
8388
8388
|
"DELETE /v2/domains/{domain}/records/{recordId}": removeRecord,
|
|
8389
|
+
"POST /v1/registrar/domains/search": searchDomains,
|
|
8389
8390
|
"GET /v1/registrar/tlds/supported": getSupportedTlds,
|
|
8390
8391
|
"GET /v1/registrar/tlds/{tld}": getTld,
|
|
8391
8392
|
"GET /v1/registrar/tlds/{tld}/price": getTldPrice,
|
|
@@ -8393,7 +8394,6 @@ const operationsByPath = {
|
|
|
8393
8394
|
"GET /v1/registrar/domains/{domain}/price": getDomainPrice,
|
|
8394
8395
|
"POST /v1/registrar/domains/price": getBulkPrice,
|
|
8395
8396
|
"POST /v1/registrar/domains/availability": getBulkAvailability,
|
|
8396
|
-
"POST /v1/registrar/domains/search": searchDomains,
|
|
8397
8397
|
"GET /v1/registrar/domains/{domain}/contact-info/schema": getContactInfoSchema,
|
|
8398
8398
|
"GET /v1/registrar/domains/{domain}/auth-code": getDomainAuthCode,
|
|
8399
8399
|
"POST /v1/registrar/domains/{domain}/buy": buySingleDomain,
|
|
@@ -8844,6 +8844,7 @@ const operationsByTag = {
|
|
|
8844
8844
|
removeRecord
|
|
8845
8845
|
},
|
|
8846
8846
|
domainsRegistrar: {
|
|
8847
|
+
searchDomains,
|
|
8847
8848
|
getSupportedTlds,
|
|
8848
8849
|
getTld,
|
|
8849
8850
|
getTldPrice,
|
|
@@ -8851,7 +8852,6 @@ const operationsByTag = {
|
|
|
8851
8852
|
getDomainPrice,
|
|
8852
8853
|
getBulkPrice,
|
|
8853
8854
|
getBulkAvailability,
|
|
8854
|
-
searchDomains,
|
|
8855
8855
|
getContactInfoSchema,
|
|
8856
8856
|
getDomainAuthCode,
|
|
8857
8857
|
buySingleDomain,
|
|
@@ -9440,6 +9440,15 @@ const tagDictionary = {
|
|
|
9440
9440
|
]
|
|
9441
9441
|
},
|
|
9442
9442
|
domainsRegistrar: {
|
|
9443
|
+
POST: [
|
|
9444
|
+
"searchDomains",
|
|
9445
|
+
"getBulkPrice",
|
|
9446
|
+
"getBulkAvailability",
|
|
9447
|
+
"buySingleDomain",
|
|
9448
|
+
"buyDomains",
|
|
9449
|
+
"transferInDomain",
|
|
9450
|
+
"renewDomain"
|
|
9451
|
+
],
|
|
9443
9452
|
GET: [
|
|
9444
9453
|
"getSupportedTlds",
|
|
9445
9454
|
"getTld",
|
|
@@ -9452,15 +9461,6 @@ const tagDictionary = {
|
|
|
9452
9461
|
"getDomainContactVerification",
|
|
9453
9462
|
"getOrder"
|
|
9454
9463
|
],
|
|
9455
|
-
POST: [
|
|
9456
|
-
"getBulkPrice",
|
|
9457
|
-
"getBulkAvailability",
|
|
9458
|
-
"searchDomains",
|
|
9459
|
-
"buySingleDomain",
|
|
9460
|
-
"buyDomains",
|
|
9461
|
-
"transferInDomain",
|
|
9462
|
-
"renewDomain"
|
|
9463
|
-
],
|
|
9464
9464
|
PATCH: [
|
|
9465
9465
|
"updateDomainAutoRenew",
|
|
9466
9466
|
"updateDomainNameservers"
|
package/dist/components.cjs
CHANGED
package/dist/components.d.mts
CHANGED
|
@@ -1539,6 +1539,19 @@ declare function removeRecord({ pathParams, queryParams, config, }?: {
|
|
|
1539
1539
|
client?: typeof client;
|
|
1540
1540
|
};
|
|
1541
1541
|
}): Promise<unknown>;
|
|
1542
|
+
/**
|
|
1543
|
+
* @summary Get Domain Availability and Pricing
|
|
1544
|
+
* @description Start domain research here. Get registration availability and pricing for 1–200 exact domain names. Returns results in input order, with registration and renewal prices in USD for available domains. No authentication required.
|
|
1545
|
+
* @link /v1/registrar/domains/search
|
|
1546
|
+
*/
|
|
1547
|
+
declare function searchDomains({ queryParams, config, }?: {
|
|
1548
|
+
queryParams?: {
|
|
1549
|
+
teamId?: string;
|
|
1550
|
+
};
|
|
1551
|
+
config?: Partial<FetcherConfig> & {
|
|
1552
|
+
client?: typeof client;
|
|
1553
|
+
};
|
|
1554
|
+
}): Promise<unknown>;
|
|
1542
1555
|
/**
|
|
1543
1556
|
* @summary Get supported TLDs
|
|
1544
1557
|
* @description Get a list of TLDs supported by Vercel
|
|
@@ -1644,19 +1657,6 @@ declare function getBulkAvailability({ queryParams, config, }?: {
|
|
|
1644
1657
|
client?: typeof client;
|
|
1645
1658
|
};
|
|
1646
1659
|
}): Promise<unknown>;
|
|
1647
|
-
/**
|
|
1648
|
-
* @summary Check domain availability and pricing
|
|
1649
|
-
* @description Check registration availability for 1–200 exact domain names, such as `example.com`. Returns results in input order, with registration and renewal prices in USD for available domains. No authentication required.
|
|
1650
|
-
* @link /v1/registrar/domains/search
|
|
1651
|
-
*/
|
|
1652
|
-
declare function searchDomains({ queryParams, config, }?: {
|
|
1653
|
-
queryParams?: {
|
|
1654
|
-
teamId?: string;
|
|
1655
|
-
};
|
|
1656
|
-
config?: Partial<FetcherConfig> & {
|
|
1657
|
-
client?: typeof client;
|
|
1658
|
-
};
|
|
1659
|
-
}): Promise<unknown>;
|
|
1660
1660
|
/**
|
|
1661
1661
|
* @summary Get contact info schema
|
|
1662
1662
|
* @description Some TLDs require additional contact information. Use this endpoint to get the schema for the tld-specific contact information for a domain.
|
|
@@ -7049,6 +7049,7 @@ declare const operationsByPath: {
|
|
|
7049
7049
|
"PUT /domains/{domain}/records": typeof replaceDomainsByDomainRecords;
|
|
7050
7050
|
"GET /domains/records/{recordId}": typeof getDomainsRecordsByRecordId;
|
|
7051
7051
|
"DELETE /v2/domains/{domain}/records/{recordId}": typeof removeRecord;
|
|
7052
|
+
"POST /v1/registrar/domains/search": typeof searchDomains;
|
|
7052
7053
|
"GET /v1/registrar/tlds/supported": typeof getSupportedTlds;
|
|
7053
7054
|
"GET /v1/registrar/tlds/{tld}": typeof getTld;
|
|
7054
7055
|
"GET /v1/registrar/tlds/{tld}/price": typeof getTldPrice;
|
|
@@ -7056,7 +7057,6 @@ declare const operationsByPath: {
|
|
|
7056
7057
|
"GET /v1/registrar/domains/{domain}/price": typeof getDomainPrice;
|
|
7057
7058
|
"POST /v1/registrar/domains/price": typeof getBulkPrice;
|
|
7058
7059
|
"POST /v1/registrar/domains/availability": typeof getBulkAvailability;
|
|
7059
|
-
"POST /v1/registrar/domains/search": typeof searchDomains;
|
|
7060
7060
|
"GET /v1/registrar/domains/{domain}/contact-info/schema": typeof getContactInfoSchema;
|
|
7061
7061
|
"GET /v1/registrar/domains/{domain}/auth-code": typeof getDomainAuthCode;
|
|
7062
7062
|
"POST /v1/registrar/domains/{domain}/buy": typeof buySingleDomain;
|
|
@@ -7507,6 +7507,7 @@ declare const operationsByTag: {
|
|
|
7507
7507
|
removeRecord: typeof removeRecord;
|
|
7508
7508
|
};
|
|
7509
7509
|
domainsRegistrar: {
|
|
7510
|
+
searchDomains: typeof searchDomains;
|
|
7510
7511
|
getSupportedTlds: typeof getSupportedTlds;
|
|
7511
7512
|
getTld: typeof getTld;
|
|
7512
7513
|
getTldPrice: typeof getTldPrice;
|
|
@@ -7514,7 +7515,6 @@ declare const operationsByTag: {
|
|
|
7514
7515
|
getDomainPrice: typeof getDomainPrice;
|
|
7515
7516
|
getBulkPrice: typeof getBulkPrice;
|
|
7516
7517
|
getBulkAvailability: typeof getBulkAvailability;
|
|
7517
|
-
searchDomains: typeof searchDomains;
|
|
7518
7518
|
getContactInfoSchema: typeof getContactInfoSchema;
|
|
7519
7519
|
getDomainAuthCode: typeof getDomainAuthCode;
|
|
7520
7520
|
buySingleDomain: typeof buySingleDomain;
|
|
@@ -7951,8 +7951,8 @@ declare const tagDictionary: {
|
|
|
7951
7951
|
readonly DELETE: readonly ["removeRecord"];
|
|
7952
7952
|
};
|
|
7953
7953
|
readonly domainsRegistrar: {
|
|
7954
|
+
readonly POST: readonly ["searchDomains", "getBulkPrice", "getBulkAvailability", "buySingleDomain", "buyDomains", "transferInDomain", "renewDomain"];
|
|
7954
7955
|
readonly GET: readonly ["getSupportedTlds", "getTld", "getTldPrice", "getDomainAvailability", "getDomainPrice", "getContactInfoSchema", "getDomainAuthCode", "getDomainTransferIn", "getDomainContactVerification", "getOrder"];
|
|
7955
|
-
readonly POST: readonly ["getBulkPrice", "getBulkAvailability", "searchDomains", "buySingleDomain", "buyDomains", "transferInDomain", "renewDomain"];
|
|
7956
7956
|
readonly PATCH: readonly ["updateDomainAutoRenew", "updateDomainNameservers"];
|
|
7957
7957
|
};
|
|
7958
7958
|
readonly domains: {
|