@wix/auto_sdk_seo_llms-txt 1.0.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.
Files changed (52) hide show
  1. package/build/cjs/index.d.ts +50 -0
  2. package/build/cjs/index.js +383 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +324 -0
  5. package/build/cjs/index.typings.js +346 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +271 -0
  8. package/build/cjs/meta.js +312 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/schemas.d.ts +79 -0
  11. package/build/cjs/schemas.js +190 -0
  12. package/build/cjs/schemas.js.map +1 -0
  13. package/build/es/index.d.mts +50 -0
  14. package/build/es/index.mjs +355 -0
  15. package/build/es/index.mjs.map +1 -0
  16. package/build/es/index.typings.d.mts +324 -0
  17. package/build/es/index.typings.mjs +318 -0
  18. package/build/es/index.typings.mjs.map +1 -0
  19. package/build/es/meta.d.mts +271 -0
  20. package/build/es/meta.mjs +281 -0
  21. package/build/es/meta.mjs.map +1 -0
  22. package/build/es/package.json +3 -0
  23. package/build/es/schemas.d.mts +79 -0
  24. package/build/es/schemas.mjs +146 -0
  25. package/build/es/schemas.mjs.map +1 -0
  26. package/build/internal/cjs/index.d.ts +50 -0
  27. package/build/internal/cjs/index.js +383 -0
  28. package/build/internal/cjs/index.js.map +1 -0
  29. package/build/internal/cjs/index.typings.d.ts +324 -0
  30. package/build/internal/cjs/index.typings.js +346 -0
  31. package/build/internal/cjs/index.typings.js.map +1 -0
  32. package/build/internal/cjs/meta.d.ts +271 -0
  33. package/build/internal/cjs/meta.js +312 -0
  34. package/build/internal/cjs/meta.js.map +1 -0
  35. package/build/internal/cjs/schemas.d.ts +79 -0
  36. package/build/internal/cjs/schemas.js +190 -0
  37. package/build/internal/cjs/schemas.js.map +1 -0
  38. package/build/internal/es/index.d.mts +50 -0
  39. package/build/internal/es/index.mjs +355 -0
  40. package/build/internal/es/index.mjs.map +1 -0
  41. package/build/internal/es/index.typings.d.mts +324 -0
  42. package/build/internal/es/index.typings.mjs +318 -0
  43. package/build/internal/es/index.typings.mjs.map +1 -0
  44. package/build/internal/es/meta.d.mts +271 -0
  45. package/build/internal/es/meta.mjs +281 -0
  46. package/build/internal/es/meta.mjs.map +1 -0
  47. package/build/internal/es/schemas.d.mts +79 -0
  48. package/build/internal/es/schemas.mjs +146 -0
  49. package/build/internal/es/schemas.mjs.map +1 -0
  50. package/meta/package.json +3 -0
  51. package/package.json +61 -0
  52. package/schemas/package.json +3 -0
@@ -0,0 +1,324 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
3
+ interface LlmsTxt {
4
+ /**
5
+ * CFull text content of the `llms.txt` file.
6
+ * @maxLength 720000
7
+ */
8
+ content?: string;
9
+ /** Whether this `llms.txt` file uses Wix's default content. */
10
+ default?: boolean;
11
+ /**
12
+ * Target subdomain for the `llms.txt` file (for example, 'www', 'es', 'fr'). Default: 'www'
13
+ * @maxLength 63
14
+ */
15
+ subdomain?: string;
16
+ /**
17
+ * Whether the llms.txt file should be hidden from public access.
18
+ * @readonly
19
+ */
20
+ hidden?: boolean | null;
21
+ /** Whether the content was manually edited by the user. If `true` in DB, update/append requests must also set `manually_edited=true` or they'll be rejected with `FAILED_PRECONDITION`. */
22
+ manuallyEdited?: boolean;
23
+ /**
24
+ * ISO 639-1 language code detected for the site (e.g. en, fr). Used to localize the MCP documentation section when serving llms.txt.
25
+ * @maxLength 2
26
+ */
27
+ detectedLanguage?: string;
28
+ }
29
+ /** The request to get the Llms.txt file content */
30
+ interface GetLlmsTxtRequest {
31
+ /**
32
+ * Subdomain of the requested `llms.txt file`. For example, `www`, `es`, `fr`. Default: `www`.
33
+ * @maxLength 63
34
+ */
35
+ subdomain?: string;
36
+ }
37
+ /** The response of the Llms.txt file request */
38
+ interface GetLlmsTxtResponse {
39
+ /** Retrieved `llms.txt` file entity. */
40
+ llmsTxt?: LlmsTxt;
41
+ }
42
+ /** The request to update the content of the Llms.txt file */
43
+ interface UpdateLlmsTxtRequest {
44
+ /** `llms.txt` file to update. */
45
+ llmsTxt?: LlmsTxt;
46
+ }
47
+ interface UpdateLlmsTxtResponse {
48
+ /** Updated Llms txt object */
49
+ llmsTxt?: LlmsTxt;
50
+ }
51
+ /** The request to append the content of the Llms.txt file */
52
+ interface AppendLlmsTxtRequest {
53
+ /** `llms.txt` file to append. */
54
+ llmsTxt?: LlmsTxt;
55
+ }
56
+ interface AppendLlmsTxtResponse {
57
+ /** Appended `llms.txt` file. */
58
+ llmsTxt?: LlmsTxt;
59
+ }
60
+ /** The request to update the hidden state of Llms.txt file */
61
+ interface UpdateLlmsTxtHiddenStatusRequest {
62
+ /**
63
+ * Hidden state to set for the Llms.txt file.
64
+ * If true, the llms.txt file will be hidden from public access (returns 404).
65
+ * If false, the llms.txt file will be publicly accessible.
66
+ */
67
+ hidden?: boolean;
68
+ /**
69
+ * Subdomain of Llms.txt, for example `www`, `es`, `fr`. Default is `www`.
70
+ * @maxLength 63
71
+ */
72
+ subdomain?: string;
73
+ }
74
+ /** The response of updating the hidden state of Llms.txt file */
75
+ interface UpdateLlmsTxtHiddenStatusResponse {
76
+ /** Updated Llms txt object with new hidden state */
77
+ llmsTxt?: LlmsTxt;
78
+ }
79
+ /** The request to update the manually_edited state of Llms.txt file */
80
+ interface UpdateLlmsTxtManuallyEditedStatusRequest {
81
+ /**
82
+ * Manually edited state to set for the Llms.txt file.
83
+ * If true, the llms.txt file is marked as manually edited, and update/append operations
84
+ * that do not acknowledge the flag will be rejected.
85
+ * If false, the llms.txt file is unlocked for auto-update operations.
86
+ */
87
+ manuallyEdited?: boolean;
88
+ /**
89
+ * Subdomain of Llms.txt, for example `www`, `es`, `fr`. Default is `www`.
90
+ * @maxLength 63
91
+ */
92
+ subdomain?: string;
93
+ }
94
+ /** The response of updating the manually_edited state of Llms.txt file */
95
+ interface UpdateLlmsTxtManuallyEditedStatusResponse {
96
+ /** Updated Llms.txt file with new manually_edited state. */
97
+ llmsTxt?: LlmsTxt;
98
+ }
99
+ interface DomainEvent extends DomainEventBodyOneOf {
100
+ createdEvent?: EntityCreatedEvent;
101
+ updatedEvent?: EntityUpdatedEvent;
102
+ deletedEvent?: EntityDeletedEvent;
103
+ actionEvent?: ActionEvent;
104
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
105
+ _id?: string;
106
+ /**
107
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
108
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
109
+ */
110
+ entityFqdn?: string;
111
+ /**
112
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
113
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
114
+ */
115
+ slug?: string;
116
+ /** ID of the entity associated with the event. */
117
+ entityId?: string;
118
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
119
+ eventTime?: Date | null;
120
+ /**
121
+ * Whether the event was triggered as a result of a privacy regulation application
122
+ * (for example, GDPR).
123
+ */
124
+ triggeredByAnonymizeRequest?: boolean | null;
125
+ /** If present, indicates the action that triggered the event. */
126
+ originatedFrom?: string | null;
127
+ /**
128
+ * 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.
129
+ * 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.
130
+ */
131
+ entityEventSequence?: string | null;
132
+ }
133
+ /** @oneof */
134
+ interface DomainEventBodyOneOf {
135
+ createdEvent?: EntityCreatedEvent;
136
+ updatedEvent?: EntityUpdatedEvent;
137
+ deletedEvent?: EntityDeletedEvent;
138
+ actionEvent?: ActionEvent;
139
+ }
140
+ interface EntityCreatedEvent {
141
+ entity?: string;
142
+ }
143
+ interface RestoreInfo {
144
+ deletedDate?: Date | null;
145
+ }
146
+ interface EntityUpdatedEvent {
147
+ /**
148
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
149
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
150
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
151
+ */
152
+ currentEntity?: string;
153
+ }
154
+ interface EntityDeletedEvent {
155
+ /** Entity that was deleted. */
156
+ deletedEntity?: string | null;
157
+ }
158
+ interface ActionEvent {
159
+ body?: string;
160
+ }
161
+ interface MessageEnvelope {
162
+ /**
163
+ * App instance ID.
164
+ * @format GUID
165
+ */
166
+ instanceId?: string | null;
167
+ /**
168
+ * Event type.
169
+ * @maxLength 150
170
+ */
171
+ eventType?: string;
172
+ /** The identification type and identity data. */
173
+ identity?: IdentificationData;
174
+ /** Stringify payload. */
175
+ data?: string;
176
+ /** Details related to the account */
177
+ accountInfo?: AccountInfo;
178
+ }
179
+ interface IdentificationData extends IdentificationDataIdOneOf {
180
+ /**
181
+ * ID of a site visitor that has not logged in to the site.
182
+ * @format GUID
183
+ */
184
+ anonymousVisitorId?: string;
185
+ /**
186
+ * ID of a site visitor that has logged in to the site.
187
+ * @format GUID
188
+ */
189
+ memberId?: string;
190
+ /**
191
+ * ID of a Wix user (site owner, contributor, etc.).
192
+ * @format GUID
193
+ */
194
+ wixUserId?: string;
195
+ /**
196
+ * ID of an app.
197
+ * @format GUID
198
+ */
199
+ appId?: string;
200
+ /** @readonly */
201
+ identityType?: WebhookIdentityTypeWithLiterals;
202
+ }
203
+ /** @oneof */
204
+ interface IdentificationDataIdOneOf {
205
+ /**
206
+ * ID of a site visitor that has not logged in to the site.
207
+ * @format GUID
208
+ */
209
+ anonymousVisitorId?: string;
210
+ /**
211
+ * ID of a site visitor that has logged in to the site.
212
+ * @format GUID
213
+ */
214
+ memberId?: string;
215
+ /**
216
+ * ID of a Wix user (site owner, contributor, etc.).
217
+ * @format GUID
218
+ */
219
+ wixUserId?: string;
220
+ /**
221
+ * ID of an app.
222
+ * @format GUID
223
+ */
224
+ appId?: string;
225
+ }
226
+ declare enum WebhookIdentityType {
227
+ UNKNOWN = "UNKNOWN",
228
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
229
+ MEMBER = "MEMBER",
230
+ WIX_USER = "WIX_USER",
231
+ APP = "APP"
232
+ }
233
+ /** @enumType */
234
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
235
+ interface AccountInfo {
236
+ /**
237
+ * ID of the Wix account associated with the event.
238
+ * @format GUID
239
+ */
240
+ accountId?: string | null;
241
+ /**
242
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
243
+ * @format GUID
244
+ */
245
+ parentAccountId?: string | null;
246
+ /**
247
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
248
+ * @format GUID
249
+ */
250
+ siteId?: string | null;
251
+ }
252
+ /**
253
+ * Retrieves the `llms.txt` file entity.
254
+ * @public
255
+ * @permissionId PROMOTE.LLMS_TXT_READ
256
+ * @applicableIdentity APP
257
+ * @returns The response of the Llms.txt file request
258
+ * @fqn com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.GetLlmsTxt
259
+ */
260
+ declare function getLlmsTxt(options?: GetLlmsTxtOptions): Promise<NonNullablePaths<GetLlmsTxtResponse, `llmsTxt.content` | `llmsTxt.default` | `llmsTxt.subdomain` | `llmsTxt.manuallyEdited` | `llmsTxt.detectedLanguage`, 3>>;
261
+ interface GetLlmsTxtOptions {
262
+ /**
263
+ * Subdomain of the requested `llms.txt file`. For example, `www`, `es`, `fr`. Default: `www`.
264
+ * @maxLength 63
265
+ */
266
+ subdomain?: string;
267
+ }
268
+ /**
269
+ * Updates the `llms.txt` file entity.
270
+ *
271
+ * The content can be set to an empty string to create a blank file.
272
+ *
273
+ * To restore Wix's default content, set the `default` field to `true` and omit the `content` field.
274
+ * @public
275
+ * @permissionId PROMOTE.LLMS_TXT_WRITE
276
+ * @applicableIdentity APP
277
+ * @fqn com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.UpdateLlmsTxt
278
+ */
279
+ declare function updateLlmsTxt(options?: UpdateLlmsTxtOptions): Promise<NonNullablePaths<UpdateLlmsTxtResponse, `llmsTxt.content` | `llmsTxt.default` | `llmsTxt.subdomain` | `llmsTxt.manuallyEdited` | `llmsTxt.detectedLanguage`, 3>>;
280
+ interface UpdateLlmsTxtOptions {
281
+ /** `llms.txt` file to update. */
282
+ llmsTxt?: LlmsTxt;
283
+ }
284
+ /**
285
+ * Appends additional content to the existing `llms.txt` file.
286
+ *
287
+ * The provided content will be added to the end of the current file content.
288
+ *
289
+ * To reset to Wix's default content instead, set `default` to `true` and omit the `content` field.
290
+ * @public
291
+ * @permissionId PROMOTE.LLMS_TXT_WRITE
292
+ * @applicableIdentity APP
293
+ * @fqn com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.AppendLlmsTxt
294
+ */
295
+ declare function appendLlmsTxt(options?: AppendLlmsTxtOptions): Promise<NonNullablePaths<AppendLlmsTxtResponse, `llmsTxt.content` | `llmsTxt.default` | `llmsTxt.subdomain` | `llmsTxt.manuallyEdited` | `llmsTxt.detectedLanguage`, 3>>;
296
+ interface AppendLlmsTxtOptions {
297
+ /** `llms.txt` file to append. */
298
+ llmsTxt?: LlmsTxt;
299
+ }
300
+ /**
301
+ * Updates only the hidden state of the Llms.txt file.
302
+ * Content remains unchanged - only visibility is modified.
303
+ * @public
304
+ * @permissionId PROMOTE.LLMS_TXT_WRITE
305
+ * @applicableIdentity APP
306
+ * @returns The response of updating the hidden state of Llms.txt file
307
+ * @fqn com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.UpdateLlmsTxtHiddenStatus
308
+ */
309
+ declare function updateLlmsTxtHiddenStatus(options?: UpdateLlmsTxtHiddenStatusOptions): Promise<NonNullablePaths<UpdateLlmsTxtHiddenStatusResponse, `llmsTxt.content` | `llmsTxt.default` | `llmsTxt.subdomain` | `llmsTxt.manuallyEdited` | `llmsTxt.detectedLanguage`, 3>>;
310
+ interface UpdateLlmsTxtHiddenStatusOptions {
311
+ /**
312
+ * Hidden state to set for the Llms.txt file.
313
+ * If true, the llms.txt file will be hidden from public access (returns 404).
314
+ * If false, the llms.txt file will be publicly accessible.
315
+ */
316
+ hidden?: boolean;
317
+ /**
318
+ * Subdomain of Llms.txt, for example `www`, `es`, `fr`. Default is `www`.
319
+ * @maxLength 63
320
+ */
321
+ subdomain?: string;
322
+ }
323
+
324
+ export { type AccountInfo, type ActionEvent, type AppendLlmsTxtOptions, type AppendLlmsTxtRequest, type AppendLlmsTxtResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GetLlmsTxtOptions, type GetLlmsTxtRequest, type GetLlmsTxtResponse, type IdentificationData, type IdentificationDataIdOneOf, type LlmsTxt, type MessageEnvelope, type RestoreInfo, type UpdateLlmsTxtHiddenStatusOptions, type UpdateLlmsTxtHiddenStatusRequest, type UpdateLlmsTxtHiddenStatusResponse, type UpdateLlmsTxtManuallyEditedStatusRequest, type UpdateLlmsTxtManuallyEditedStatusResponse, type UpdateLlmsTxtOptions, type UpdateLlmsTxtRequest, type UpdateLlmsTxtResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, appendLlmsTxt, getLlmsTxt, updateLlmsTxt, updateLlmsTxtHiddenStatus };
@@ -0,0 +1,346 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.typings.ts
21
+ var index_typings_exports = {};
22
+ __export(index_typings_exports, {
23
+ WebhookIdentityType: () => WebhookIdentityType,
24
+ appendLlmsTxt: () => appendLlmsTxt2,
25
+ getLlmsTxt: () => getLlmsTxt2,
26
+ updateLlmsTxt: () => updateLlmsTxt2,
27
+ updateLlmsTxtHiddenStatus: () => updateLlmsTxtHiddenStatus2
28
+ });
29
+ module.exports = __toCommonJS(index_typings_exports);
30
+
31
+ // src/promote-seo-v2-llms-txt-llms-txt.universal.ts
32
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
33
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
34
+
35
+ // src/promote-seo-v2-llms-txt-llms-txt.http.ts
36
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
37
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
38
+ function resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url(opts) {
39
+ const domainToMappings = {
40
+ "www._base_domain_": [
41
+ {
42
+ srcPath: "/_api/promote-seo-robots-server",
43
+ destPath: "/api"
44
+ },
45
+ {
46
+ srcPath: "/_api/promote-seo-robots-server/v2/robots",
47
+ destPath: "/v2/robots"
48
+ },
49
+ {
50
+ srcPath: "/_api/promote-seo-robots-server/v2/ads",
51
+ destPath: "/v2/ads"
52
+ },
53
+ {
54
+ srcPath: "/_api/promote-seo-robots-server/v2/llms",
55
+ destPath: "/v2/llms"
56
+ }
57
+ ],
58
+ "api._api_base_domain_": [
59
+ {
60
+ srcPath: "/promote-seo-robots-server",
61
+ destPath: ""
62
+ }
63
+ ],
64
+ "manage._base_domain_": [
65
+ {
66
+ srcPath: "/_api/promote-seo-robots-server",
67
+ destPath: "/api"
68
+ },
69
+ {
70
+ srcPath: "/_api/promote-seo-robots-server/v2/robots",
71
+ destPath: "/v2/robots"
72
+ },
73
+ {
74
+ srcPath: "/_api/promote-seo-robots-server/v2/ads",
75
+ destPath: "/v2/ads"
76
+ },
77
+ {
78
+ srcPath: "/_api/promote-seo-robots-server/v2/llms",
79
+ destPath: "/v2/llms"
80
+ }
81
+ ],
82
+ "www.wixapis.com": [
83
+ {
84
+ srcPath: "/promote-seo-robots-server/v2/robots",
85
+ destPath: "/v2/robots"
86
+ },
87
+ {
88
+ srcPath: "/promote-seo-robots-server/v2/ads",
89
+ destPath: "/v2/ads"
90
+ },
91
+ {
92
+ srcPath: "/promote-seo-txt-file-server/v2/ads",
93
+ destPath: "/v2/ads"
94
+ },
95
+ {
96
+ srcPath: "/promote-seo-txt-file-server/v2/robots",
97
+ destPath: "/v2/robots"
98
+ },
99
+ {
100
+ srcPath: "/promote-seo-robots-server/v2/llms",
101
+ destPath: "/v2/llms"
102
+ },
103
+ {
104
+ srcPath: "/promote-seo-txt-file-server/v2/llms",
105
+ destPath: "/v2/llms"
106
+ }
107
+ ],
108
+ "*.dev.wix-code.com": [
109
+ {
110
+ srcPath: "/promote/marketing/v2/ads",
111
+ destPath: "/v2/ads"
112
+ },
113
+ {
114
+ srcPath: "/promote/seo/v2/llms",
115
+ destPath: "/v2/llms"
116
+ },
117
+ {
118
+ srcPath: "/promote/seo/v2/robots",
119
+ destPath: "/v2/robots"
120
+ }
121
+ ],
122
+ _: [
123
+ {
124
+ srcPath: "/promote/marketing/v2/ads",
125
+ destPath: "/v2/ads"
126
+ },
127
+ {
128
+ srcPath: "/promote/seo/v2/llms",
129
+ destPath: "/v2/llms"
130
+ },
131
+ {
132
+ srcPath: "/promote/seo/v2/robots",
133
+ destPath: "/v2/robots"
134
+ }
135
+ ]
136
+ };
137
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
138
+ }
139
+ var PACKAGE_NAME = "@wix/auto_sdk_seo_llms-txt";
140
+ function getLlmsTxt(payload) {
141
+ function __getLlmsTxt({ host }) {
142
+ const metadata = {
143
+ entityFqdn: "wix.promote.seo.v2.llms_txt",
144
+ method: "GET",
145
+ methodFqn: "com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.GetLlmsTxt",
146
+ packageName: PACKAGE_NAME,
147
+ migrationOptions: {
148
+ optInTransformResponse: true
149
+ },
150
+ url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({
151
+ protoPath: "/v2/llms",
152
+ data: payload,
153
+ host
154
+ }),
155
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
156
+ };
157
+ return metadata;
158
+ }
159
+ return __getLlmsTxt;
160
+ }
161
+ function updateLlmsTxt(payload) {
162
+ function __updateLlmsTxt({ host }) {
163
+ const metadata = {
164
+ entityFqdn: "wix.promote.seo.v2.llms_txt",
165
+ method: "PUT",
166
+ methodFqn: "com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.UpdateLlmsTxt",
167
+ packageName: PACKAGE_NAME,
168
+ migrationOptions: {
169
+ optInTransformResponse: true
170
+ },
171
+ url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({
172
+ protoPath: "/v2/llms",
173
+ data: payload,
174
+ host
175
+ }),
176
+ data: payload
177
+ };
178
+ return metadata;
179
+ }
180
+ return __updateLlmsTxt;
181
+ }
182
+ function appendLlmsTxt(payload) {
183
+ function __appendLlmsTxt({ host }) {
184
+ const metadata = {
185
+ entityFqdn: "wix.promote.seo.v2.llms_txt",
186
+ method: "PATCH",
187
+ methodFqn: "com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.AppendLlmsTxt",
188
+ packageName: PACKAGE_NAME,
189
+ migrationOptions: {
190
+ optInTransformResponse: true
191
+ },
192
+ url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({
193
+ protoPath: "/v2/llms",
194
+ data: payload,
195
+ host
196
+ }),
197
+ data: payload
198
+ };
199
+ return metadata;
200
+ }
201
+ return __appendLlmsTxt;
202
+ }
203
+ function updateLlmsTxtHiddenStatus(payload) {
204
+ function __updateLlmsTxtHiddenStatus({ host }) {
205
+ const metadata = {
206
+ entityFqdn: "wix.promote.seo.v2.llms_txt",
207
+ method: "PATCH",
208
+ methodFqn: "com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.UpdateLlmsTxtHiddenStatus",
209
+ packageName: PACKAGE_NAME,
210
+ migrationOptions: {
211
+ optInTransformResponse: true
212
+ },
213
+ url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({
214
+ protoPath: "/v2/llms/hidden",
215
+ data: payload,
216
+ host
217
+ }),
218
+ data: payload
219
+ };
220
+ return metadata;
221
+ }
222
+ return __updateLlmsTxtHiddenStatus;
223
+ }
224
+
225
+ // src/promote-seo-v2-llms-txt-llms-txt.universal.ts
226
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
227
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
228
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
229
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
230
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
231
+ WebhookIdentityType2["APP"] = "APP";
232
+ return WebhookIdentityType2;
233
+ })(WebhookIdentityType || {});
234
+ async function getLlmsTxt2(options) {
235
+ const { httpClient, sideEffects } = arguments[1];
236
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
237
+ subdomain: options?.subdomain
238
+ });
239
+ const reqOpts = getLlmsTxt(payload);
240
+ sideEffects?.onSiteCall?.();
241
+ try {
242
+ const result = await httpClient.request(reqOpts);
243
+ sideEffects?.onSuccess?.(result);
244
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
245
+ } catch (err) {
246
+ const transformedError = (0, import_transform_error.transformError)(
247
+ err,
248
+ {
249
+ spreadPathsToArguments: {},
250
+ explicitPathsToArguments: { subdomain: "$[0].subdomain" },
251
+ singleArgumentUnchanged: false
252
+ },
253
+ ["options"]
254
+ );
255
+ sideEffects?.onError?.(err);
256
+ throw transformedError;
257
+ }
258
+ }
259
+ async function updateLlmsTxt2(options) {
260
+ const { httpClient, sideEffects } = arguments[1];
261
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
262
+ llmsTxt: options?.llmsTxt
263
+ });
264
+ const reqOpts = updateLlmsTxt(payload);
265
+ sideEffects?.onSiteCall?.();
266
+ try {
267
+ const result = await httpClient.request(reqOpts);
268
+ sideEffects?.onSuccess?.(result);
269
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
270
+ } catch (err) {
271
+ const transformedError = (0, import_transform_error.transformError)(
272
+ err,
273
+ {
274
+ spreadPathsToArguments: {},
275
+ explicitPathsToArguments: { llmsTxt: "$[0].llmsTxt" },
276
+ singleArgumentUnchanged: false
277
+ },
278
+ ["options"]
279
+ );
280
+ sideEffects?.onError?.(err);
281
+ throw transformedError;
282
+ }
283
+ }
284
+ async function appendLlmsTxt2(options) {
285
+ const { httpClient, sideEffects } = arguments[1];
286
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
287
+ llmsTxt: options?.llmsTxt
288
+ });
289
+ const reqOpts = appendLlmsTxt(payload);
290
+ sideEffects?.onSiteCall?.();
291
+ try {
292
+ const result = await httpClient.request(reqOpts);
293
+ sideEffects?.onSuccess?.(result);
294
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
295
+ } catch (err) {
296
+ const transformedError = (0, import_transform_error.transformError)(
297
+ err,
298
+ {
299
+ spreadPathsToArguments: {},
300
+ explicitPathsToArguments: { llmsTxt: "$[0].llmsTxt" },
301
+ singleArgumentUnchanged: false
302
+ },
303
+ ["options"]
304
+ );
305
+ sideEffects?.onError?.(err);
306
+ throw transformedError;
307
+ }
308
+ }
309
+ async function updateLlmsTxtHiddenStatus2(options) {
310
+ const { httpClient, sideEffects } = arguments[1];
311
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
312
+ hidden: options?.hidden,
313
+ subdomain: options?.subdomain
314
+ });
315
+ const reqOpts = updateLlmsTxtHiddenStatus(payload);
316
+ sideEffects?.onSiteCall?.();
317
+ try {
318
+ const result = await httpClient.request(reqOpts);
319
+ sideEffects?.onSuccess?.(result);
320
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
321
+ } catch (err) {
322
+ const transformedError = (0, import_transform_error.transformError)(
323
+ err,
324
+ {
325
+ spreadPathsToArguments: {},
326
+ explicitPathsToArguments: {
327
+ hidden: "$[0].hidden",
328
+ subdomain: "$[0].subdomain"
329
+ },
330
+ singleArgumentUnchanged: false
331
+ },
332
+ ["options"]
333
+ );
334
+ sideEffects?.onError?.(err);
335
+ throw transformedError;
336
+ }
337
+ }
338
+ // Annotate the CommonJS export names for ESM import in node:
339
+ 0 && (module.exports = {
340
+ WebhookIdentityType,
341
+ appendLlmsTxt,
342
+ getLlmsTxt,
343
+ updateLlmsTxt,
344
+ updateLlmsTxtHiddenStatus
345
+ });
346
+ //# sourceMappingURL=index.typings.js.map