@wix/auto_sdk_seo_robots-txt 1.0.21 → 1.0.22

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.
Files changed (38) hide show
  1. package/build/cjs/index.js +4 -2
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.js.map +1 -1
  4. package/build/cjs/meta.js.map +1 -1
  5. package/build/es/index.mjs +4 -2
  6. package/build/es/index.mjs.map +1 -1
  7. package/build/es/index.typings.mjs.map +1 -1
  8. package/build/es/meta.mjs.map +1 -1
  9. package/build/internal/cjs/index.typings.d.ts +6 -0
  10. package/build/internal/cjs/meta.d.ts +48 -0
  11. package/build/internal/es/index.typings.d.mts +6 -0
  12. package/build/internal/es/meta.d.mts +48 -0
  13. package/package.json +5 -12
  14. package/build/cjs/schemas.d.ts +0 -32
  15. package/build/cjs/schemas.js +0 -91
  16. package/build/cjs/schemas.js.map +0 -1
  17. package/build/es/schemas.d.mts +0 -32
  18. package/build/es/schemas.mjs +0 -51
  19. package/build/es/schemas.mjs.map +0 -1
  20. package/build/internal/cjs/index.js +0 -289
  21. package/build/internal/cjs/index.js.map +0 -1
  22. package/build/internal/cjs/index.typings.js +0 -246
  23. package/build/internal/cjs/index.typings.js.map +0 -1
  24. package/build/internal/cjs/meta.js +0 -230
  25. package/build/internal/cjs/meta.js.map +0 -1
  26. package/build/internal/cjs/schemas.d.ts +0 -32
  27. package/build/internal/cjs/schemas.js +0 -91
  28. package/build/internal/cjs/schemas.js.map +0 -1
  29. package/build/internal/es/index.mjs +0 -262
  30. package/build/internal/es/index.mjs.map +0 -1
  31. package/build/internal/es/index.typings.mjs +0 -220
  32. package/build/internal/es/index.typings.mjs.map +0 -1
  33. package/build/internal/es/meta.mjs +0 -201
  34. package/build/internal/es/meta.mjs.map +0 -1
  35. package/build/internal/es/schemas.d.mts +0 -32
  36. package/build/internal/es/schemas.mjs +0 -51
  37. package/build/internal/es/schemas.mjs.map +0 -1
  38. package/schemas/package.json +0 -3
@@ -1,201 +0,0 @@
1
- // src/promote-seo-v2-robots-txt-robots-txt.http.ts
2
- import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
- import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
4
- function resolveComWixpressPromoteSeoRobotsServerV2RobotsServiceV2Url(opts) {
5
- const domainToMappings = {
6
- "www._base_domain_": [
7
- {
8
- srcPath: "/_api/promote-seo-robots-server",
9
- destPath: "/api"
10
- },
11
- {
12
- srcPath: "/_api/promote-seo-robots-server/v2/robots",
13
- destPath: "/v2/robots"
14
- },
15
- {
16
- srcPath: "/_api/promote-seo-robots-server/v2/ads",
17
- destPath: "/v2/ads"
18
- },
19
- {
20
- srcPath: "/_api/promote-seo-robots-server/v2/llms",
21
- destPath: "/v2/llms"
22
- }
23
- ],
24
- "api._api_base_domain_": [
25
- {
26
- srcPath: "/promote-seo-robots-server",
27
- destPath: ""
28
- }
29
- ],
30
- "manage._base_domain_": [
31
- {
32
- srcPath: "/_api/promote-seo-robots-server",
33
- destPath: "/api"
34
- },
35
- {
36
- srcPath: "/_api/promote-seo-robots-server/v2/robots",
37
- destPath: "/v2/robots"
38
- },
39
- {
40
- srcPath: "/_api/promote-seo-robots-server/v2/ads",
41
- destPath: "/v2/ads"
42
- },
43
- {
44
- srcPath: "/_api/promote-seo-robots-server/v2/llms",
45
- destPath: "/v2/llms"
46
- }
47
- ],
48
- "www.wixapis.com": [
49
- {
50
- srcPath: "/promote-seo-robots-server/v2/robots",
51
- destPath: "/v2/robots"
52
- },
53
- {
54
- srcPath: "/promote-seo-robots-server/v2/ads",
55
- destPath: "/v2/ads"
56
- },
57
- {
58
- srcPath: "/promote-seo-txt-file-server/v2/ads",
59
- destPath: "/v2/ads"
60
- },
61
- {
62
- srcPath: "/promote-seo-txt-file-server/v2/robots",
63
- destPath: "/v2/robots"
64
- },
65
- {
66
- srcPath: "/promote-seo-robots-server/v2/llms",
67
- destPath: "/v2/llms"
68
- },
69
- {
70
- srcPath: "/promote-seo-txt-file-server/v2/llms",
71
- destPath: "/v2/llms"
72
- }
73
- ],
74
- "*.dev.wix-code.com": [
75
- {
76
- srcPath: "/promote/marketing/v2/ads",
77
- destPath: "/v2/ads"
78
- },
79
- {
80
- srcPath: "/promote/seo/v2/llms",
81
- destPath: "/v2/llms"
82
- },
83
- {
84
- srcPath: "/promote/seo/v2/robots",
85
- destPath: "/v2/robots"
86
- }
87
- ],
88
- _: [
89
- {
90
- srcPath: "/promote/marketing/v2/ads",
91
- destPath: "/v2/ads"
92
- },
93
- {
94
- srcPath: "/promote/seo/v2/llms",
95
- destPath: "/v2/llms"
96
- },
97
- {
98
- srcPath: "/promote/seo/v2/robots",
99
- destPath: "/v2/robots"
100
- }
101
- ]
102
- };
103
- return resolveUrl(Object.assign(opts, { domainToMappings }));
104
- }
105
- var PACKAGE_NAME = "@wix/auto_sdk_seo_robots-txt";
106
- function getRobotsTxt(payload) {
107
- function __getRobotsTxt({ host }) {
108
- const metadata = {
109
- entityFqdn: "wix.promote.seo.v2.robots_txt",
110
- method: "GET",
111
- methodFqn: "com.wixpress.promote.seo.robots.server.v2.RobotsServiceV2.GetRobotsTxt",
112
- packageName: PACKAGE_NAME,
113
- migrationOptions: {
114
- optInTransformResponse: true
115
- },
116
- url: resolveComWixpressPromoteSeoRobotsServerV2RobotsServiceV2Url({
117
- protoPath: "/v2/robots",
118
- data: payload,
119
- host
120
- }),
121
- params: toURLSearchParams(payload)
122
- };
123
- return metadata;
124
- }
125
- return __getRobotsTxt;
126
- }
127
- function updateRobotsTxt(payload) {
128
- function __updateRobotsTxt({ host }) {
129
- const metadata = {
130
- entityFqdn: "wix.promote.seo.v2.robots_txt",
131
- method: "PUT",
132
- methodFqn: "com.wixpress.promote.seo.robots.server.v2.RobotsServiceV2.UpdateRobotsTxt",
133
- packageName: PACKAGE_NAME,
134
- migrationOptions: {
135
- optInTransformResponse: true
136
- },
137
- url: resolveComWixpressPromoteSeoRobotsServerV2RobotsServiceV2Url({
138
- protoPath: "/v2/robots",
139
- data: payload,
140
- host
141
- }),
142
- data: payload
143
- };
144
- return metadata;
145
- }
146
- return __updateRobotsTxt;
147
- }
148
-
149
- // src/promote-seo-v2-robots-txt-robots-txt.types.ts
150
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
151
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
152
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
153
- WebhookIdentityType2["MEMBER"] = "MEMBER";
154
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
155
- WebhookIdentityType2["APP"] = "APP";
156
- return WebhookIdentityType2;
157
- })(WebhookIdentityType || {});
158
-
159
- // src/promote-seo-v2-robots-txt-robots-txt.meta.ts
160
- function getRobotsTxt2() {
161
- const payload = {};
162
- const getRequestOptions = getRobotsTxt(payload);
163
- const getUrl = (context) => {
164
- const { url } = getRequestOptions(context);
165
- return url;
166
- };
167
- return {
168
- getUrl,
169
- httpMethod: "GET",
170
- path: "/v2/robots",
171
- pathParams: {},
172
- __requestType: null,
173
- __originalRequestType: null,
174
- __responseType: null,
175
- __originalResponseType: null
176
- };
177
- }
178
- function updateRobotsTxt2() {
179
- const payload = {};
180
- const getRequestOptions = updateRobotsTxt(payload);
181
- const getUrl = (context) => {
182
- const { url } = getRequestOptions(context);
183
- return url;
184
- };
185
- return {
186
- getUrl,
187
- httpMethod: "PUT",
188
- path: "/v2/robots",
189
- pathParams: {},
190
- __requestType: null,
191
- __originalRequestType: null,
192
- __responseType: null,
193
- __originalResponseType: null
194
- };
195
- }
196
- export {
197
- WebhookIdentityType as WebhookIdentityTypeOriginal,
198
- getRobotsTxt2 as getRobotsTxt,
199
- updateRobotsTxt2 as updateRobotsTxt
200
- };
201
- //# sourceMappingURL=meta.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/promote-seo-v2-robots-txt-robots-txt.http.ts","../../../src/promote-seo-v2-robots-txt-robots-txt.types.ts","../../../src/promote-seo-v2-robots-txt-robots-txt.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPromoteSeoRobotsServerV2RobotsServiceV2Url(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www._base_domain_': [\n {\n srcPath: '/_api/promote-seo-robots-server',\n destPath: '/api',\n },\n {\n srcPath: '/_api/promote-seo-robots-server/v2/robots',\n destPath: '/v2/robots',\n },\n {\n srcPath: '/_api/promote-seo-robots-server/v2/ads',\n destPath: '/v2/ads',\n },\n {\n srcPath: '/_api/promote-seo-robots-server/v2/llms',\n destPath: '/v2/llms',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/promote-seo-robots-server',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/promote-seo-robots-server',\n destPath: '/api',\n },\n {\n srcPath: '/_api/promote-seo-robots-server/v2/robots',\n destPath: '/v2/robots',\n },\n {\n srcPath: '/_api/promote-seo-robots-server/v2/ads',\n destPath: '/v2/ads',\n },\n {\n srcPath: '/_api/promote-seo-robots-server/v2/llms',\n destPath: '/v2/llms',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/promote-seo-robots-server/v2/robots',\n destPath: '/v2/robots',\n },\n {\n srcPath: '/promote-seo-robots-server/v2/ads',\n destPath: '/v2/ads',\n },\n {\n srcPath: '/promote-seo-txt-file-server/v2/ads',\n destPath: '/v2/ads',\n },\n {\n srcPath: '/promote-seo-txt-file-server/v2/robots',\n destPath: '/v2/robots',\n },\n {\n srcPath: '/promote-seo-robots-server/v2/llms',\n destPath: '/v2/llms',\n },\n {\n srcPath: '/promote-seo-txt-file-server/v2/llms',\n destPath: '/v2/llms',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/promote/marketing/v2/ads',\n destPath: '/v2/ads',\n },\n {\n srcPath: '/promote/seo/v2/llms',\n destPath: '/v2/llms',\n },\n {\n srcPath: '/promote/seo/v2/robots',\n destPath: '/v2/robots',\n },\n ],\n _: [\n {\n srcPath: '/promote/marketing/v2/ads',\n destPath: '/v2/ads',\n },\n {\n srcPath: '/promote/seo/v2/llms',\n destPath: '/v2/llms',\n },\n {\n srcPath: '/promote/seo/v2/robots',\n destPath: '/v2/robots',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_seo_robots-txt';\n\n/** Retrieves the `robots.txt` file entity. */\nexport function getRobotsTxt(payload: object): RequestOptionsFactory<any> {\n function __getRobotsTxt({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v2.robots_txt',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.promote.seo.robots.server.v2.RobotsServiceV2.GetRobotsTxt',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPromoteSeoRobotsServerV2RobotsServiceV2Url({\n protoPath: '/v2/robots',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getRobotsTxt;\n}\n\n/**\n * Updates the `robots.txt` file entity.\n *\n * The content can be set to an empty string to create a blank file.\n *\n * To restore Wix's default content, set the `default` field to `true` and omit the `content` field.\n */\nexport function updateRobotsTxt(payload: object): RequestOptionsFactory<any> {\n function __updateRobotsTxt({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v2.robots_txt',\n method: 'PUT' as any,\n methodFqn:\n 'com.wixpress.promote.seo.robots.server.v2.RobotsServiceV2.UpdateRobotsTxt',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPromoteSeoRobotsServerV2RobotsServiceV2Url({\n protoPath: '/v2/robots',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __updateRobotsTxt;\n}\n","/** Represents a `robots.txt` file entity that controls web crawler access to a website or subdomain. It defines crawling rules and directives for search engines and other automated agents, ensuring proper indexing behavior and preventing unauthorized access to specific site areas. */\nexport interface RobotsTxt {\n /**\n * Full text content of the `robots.txt` file.\n * @maxLength 720000\n */\n content?: string;\n /** Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file). */\n default?: boolean;\n /**\n * If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'\n * @maxLength 63\n */\n subdomain?: string;\n}\n\n/** The request to get the Robots.txt file content */\nexport interface GetRobotsTxtRequest {\n /** Subdomain of the requested `robots.txt file`. For example, `www`, `es`, `fr`. Default: `www`. */\n subdomain?: string;\n}\n\n/** The response of the Robots.txt file request */\nexport interface GetRobotsTxtResponse {\n /** Retrieved `robots.txt` file entity. */\n robotsTxt?: RobotsTxt;\n}\n\n/** The request to update the content of the Robots.txt file */\nexport interface UpdateRobotsTxtRequest {\n /** `robots.txt` file to update. */\n robotsTxt?: RobotsTxt;\n}\n\nexport interface UpdateRobotsTxtResponse {\n /** Updated `robots.txt` file. */\n robotsTxt?: RobotsTxt;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n","import * as ambassadorWixPromoteSeoV2RobotsTxt from './promote-seo-v2-robots-txt-robots-txt.http.js';\nimport * as ambassadorWixPromoteSeoV2RobotsTxtTypes from './promote-seo-v2-robots-txt-robots-txt.types.js';\nimport * as ambassadorWixPromoteSeoV2RobotsTxtUniversalTypes from './promote-seo-v2-robots-txt-robots-txt.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getRobotsTxt(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPromoteSeoV2RobotsTxtUniversalTypes.GetRobotsTxtRequest,\n ambassadorWixPromoteSeoV2RobotsTxtTypes.GetRobotsTxtRequest,\n ambassadorWixPromoteSeoV2RobotsTxtUniversalTypes.GetRobotsTxtResponse,\n ambassadorWixPromoteSeoV2RobotsTxtTypes.GetRobotsTxtResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPromoteSeoV2RobotsTxt.getRobotsTxt(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/robots',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateRobotsTxt(): __PublicMethodMetaInfo<\n 'PUT',\n {},\n ambassadorWixPromoteSeoV2RobotsTxtUniversalTypes.UpdateRobotsTxtRequest,\n ambassadorWixPromoteSeoV2RobotsTxtTypes.UpdateRobotsTxtRequest,\n ambassadorWixPromoteSeoV2RobotsTxtUniversalTypes.UpdateRobotsTxtResponse,\n ambassadorWixPromoteSeoV2RobotsTxtTypes.UpdateRobotsTxtResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPromoteSeoV2RobotsTxt.updateRobotsTxt(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v2/robots',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n RobotsTxt as RobotsTxtOriginal,\n GetRobotsTxtRequest as GetRobotsTxtRequestOriginal,\n GetRobotsTxtResponse as GetRobotsTxtResponseOriginal,\n UpdateRobotsTxtRequest as UpdateRobotsTxtRequestOriginal,\n UpdateRobotsTxtResponse as UpdateRobotsTxtResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n} from './promote-seo-v2-robots-txt-robots-txt.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,6DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;A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AAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["WebhookIdentityType","getRobotsTxt","updateRobotsTxt"]}
@@ -1,32 +0,0 @@
1
- import * as z from 'zod';
2
-
3
- declare const GetRobotsTxtRequest: z.ZodObject<{
4
- options: z.ZodOptional<z.ZodObject<{
5
- subdomain: z.ZodOptional<z.ZodString>;
6
- }, z.core.$strip>>;
7
- }, z.core.$strip>;
8
- declare const GetRobotsTxtResponse: z.ZodObject<{
9
- robotsTxt: z.ZodOptional<z.ZodObject<{
10
- content: z.ZodOptional<z.ZodString>;
11
- default: z.ZodOptional<z.ZodBoolean>;
12
- subdomain: z.ZodOptional<z.ZodString>;
13
- }, z.core.$strip>>;
14
- }, z.core.$strip>;
15
- declare const UpdateRobotsTxtRequest: z.ZodObject<{
16
- options: z.ZodOptional<z.ZodObject<{
17
- robotsTxt: z.ZodOptional<z.ZodObject<{
18
- content: z.ZodOptional<z.ZodString>;
19
- default: z.ZodOptional<z.ZodBoolean>;
20
- subdomain: z.ZodOptional<z.ZodString>;
21
- }, z.core.$strip>>;
22
- }, z.core.$strip>>;
23
- }, z.core.$strip>;
24
- declare const UpdateRobotsTxtResponse: z.ZodObject<{
25
- robotsTxt: z.ZodOptional<z.ZodObject<{
26
- content: z.ZodOptional<z.ZodString>;
27
- default: z.ZodOptional<z.ZodBoolean>;
28
- subdomain: z.ZodOptional<z.ZodString>;
29
- }, z.core.$strip>>;
30
- }, z.core.$strip>;
31
-
32
- export { GetRobotsTxtRequest, GetRobotsTxtResponse, UpdateRobotsTxtRequest, UpdateRobotsTxtResponse };
@@ -1,51 +0,0 @@
1
- // src/promote-seo-v2-robots-txt-robots-txt.schemas.ts
2
- import * as z from "zod";
3
- var GetRobotsTxtRequest = z.object({
4
- options: z.object({
5
- subdomain: z.string().describe(
6
- "Subdomain of the requested `robots.txt file`. For example, `www`, `es`, `fr`. Default: `www`."
7
- ).optional()
8
- }).optional()
9
- });
10
- var GetRobotsTxtResponse = z.object({
11
- robotsTxt: z.object({
12
- content: z.string().describe("Full text content of the `robots.txt` file.").max(72e4).optional(),
13
- default: z.boolean().describe(
14
- "Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file)."
15
- ).optional(),
16
- subdomain: z.string().describe(
17
- "If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'"
18
- ).max(63).optional()
19
- }).describe("Retrieved `robots.txt` file entity.").optional()
20
- });
21
- var UpdateRobotsTxtRequest = z.object({
22
- options: z.object({
23
- robotsTxt: z.object({
24
- content: z.string().describe("Full text content of the `robots.txt` file.").max(72e4).optional(),
25
- default: z.boolean().describe(
26
- "Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file)."
27
- ).optional(),
28
- subdomain: z.string().describe(
29
- "If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'"
30
- ).max(63).optional()
31
- }).describe("`robots.txt` file to update.").optional()
32
- }).optional()
33
- });
34
- var UpdateRobotsTxtResponse = z.object({
35
- robotsTxt: z.object({
36
- content: z.string().describe("Full text content of the `robots.txt` file.").max(72e4).optional(),
37
- default: z.boolean().describe(
38
- "Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file)."
39
- ).optional(),
40
- subdomain: z.string().describe(
41
- "If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'"
42
- ).max(63).optional()
43
- }).describe("Updated `robots.txt` file.").optional()
44
- });
45
- export {
46
- GetRobotsTxtRequest,
47
- GetRobotsTxtResponse,
48
- UpdateRobotsTxtRequest,
49
- UpdateRobotsTxtResponse
50
- };
51
- //# sourceMappingURL=schemas.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/promote-seo-v2-robots-txt-robots-txt.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetRobotsTxtRequest = z.object({\n options: z\n .object({\n subdomain: z\n .string()\n .describe(\n 'Subdomain of the requested `robots.txt file`. For example, `www`, `es`, `fr`. Default: `www`.'\n )\n .optional(),\n })\n .optional(),\n});\nexport const GetRobotsTxtResponse = z.object({\n robotsTxt: z\n .object({\n content: z\n .string()\n .describe('Full text content of the `robots.txt` file.')\n .max(720000)\n .optional(),\n default: z\n .boolean()\n .describe(\n \"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file).\"\n )\n .optional(),\n subdomain: z\n .string()\n .describe(\n \"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'\"\n )\n .max(63)\n .optional(),\n })\n .describe('Retrieved `robots.txt` file entity.')\n .optional(),\n});\nexport const UpdateRobotsTxtRequest = z.object({\n options: z\n .object({\n robotsTxt: z\n .object({\n content: z\n .string()\n .describe('Full text content of the `robots.txt` file.')\n .max(720000)\n .optional(),\n default: z\n .boolean()\n .describe(\n \"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file).\"\n )\n .optional(),\n subdomain: z\n .string()\n .describe(\n \"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'\"\n )\n .max(63)\n .optional(),\n })\n .describe('`robots.txt` file to update.')\n .optional(),\n })\n .optional(),\n});\nexport const UpdateRobotsTxtResponse = z.object({\n robotsTxt: z\n .object({\n content: z\n .string()\n .describe('Full text content of the `robots.txt` file.')\n .max(720000)\n .optional(),\n default: z\n .boolean()\n .describe(\n \"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file).\"\n )\n .optional(),\n subdomain: z\n .string()\n .describe(\n \"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'\"\n )\n .max(63)\n .optional(),\n })\n .describe('Updated `robots.txt` file.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,sBAAwB,SAAO;AAAA,EAC1C,SACG,SAAO;AAAA,IACN,WACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,uBAAyB,SAAO;AAAA,EAC3C,WACG,SAAO;AAAA,IACN,SACG,SAAO,EACP,SAAS,6CAA6C,EACtD,IAAI,IAAM,EACV,SAAS;AAAA,IACZ,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,WACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,EAAE,EACN,SAAS;AAAA,EACd,CAAC,EACA,SAAS,qCAAqC,EAC9C,SAAS;AACd,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,SACG,SAAO;AAAA,IACN,WACG,SAAO;AAAA,MACN,SACG,SAAO,EACP,SAAS,6CAA6C,EACtD,IAAI,IAAM,EACV,SAAS;AAAA,MACZ,SACG,UAAQ,EACR;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,WACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,EAAE,EACN,SAAS;AAAA,IACd,CAAC,EACA,SAAS,8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