@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.
- package/build/cjs/index.d.ts +50 -0
- package/build/cjs/index.js +383 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +324 -0
- package/build/cjs/index.typings.js +346 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +271 -0
- package/build/cjs/meta.js +312 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/schemas.d.ts +79 -0
- package/build/cjs/schemas.js +190 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +50 -0
- package/build/es/index.mjs +355 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +324 -0
- package/build/es/index.typings.mjs +318 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +271 -0
- package/build/es/meta.mjs +281 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/schemas.d.mts +79 -0
- package/build/es/schemas.mjs +146 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +50 -0
- package/build/internal/cjs/index.js +383 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +324 -0
- package/build/internal/cjs/index.typings.js +346 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +271 -0
- package/build/internal/cjs/meta.js +312 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/schemas.d.ts +79 -0
- package/build/internal/cjs/schemas.js +190 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +50 -0
- package/build/internal/es/index.mjs +355 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +324 -0
- package/build/internal/es/index.typings.mjs +318 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +271 -0
- package/build/internal/es/meta.mjs +281 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/es/schemas.d.mts +79 -0
- package/build/internal/es/schemas.mjs +146 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +61 -0
- 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,318 @@
|
|
|
1
|
+
// src/promote-seo-v2-llms-txt-llms-txt.universal.ts
|
|
2
|
+
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
3
|
+
import {
|
|
4
|
+
renameKeysFromSDKRequestToRESTRequest,
|
|
5
|
+
renameKeysFromRESTResponseToSDKResponse
|
|
6
|
+
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
7
|
+
|
|
8
|
+
// src/promote-seo-v2-llms-txt-llms-txt.http.ts
|
|
9
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
10
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
11
|
+
function resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url(opts) {
|
|
12
|
+
const domainToMappings = {
|
|
13
|
+
"www._base_domain_": [
|
|
14
|
+
{
|
|
15
|
+
srcPath: "/_api/promote-seo-robots-server",
|
|
16
|
+
destPath: "/api"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
srcPath: "/_api/promote-seo-robots-server/v2/robots",
|
|
20
|
+
destPath: "/v2/robots"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
srcPath: "/_api/promote-seo-robots-server/v2/ads",
|
|
24
|
+
destPath: "/v2/ads"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
srcPath: "/_api/promote-seo-robots-server/v2/llms",
|
|
28
|
+
destPath: "/v2/llms"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"api._api_base_domain_": [
|
|
32
|
+
{
|
|
33
|
+
srcPath: "/promote-seo-robots-server",
|
|
34
|
+
destPath: ""
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"manage._base_domain_": [
|
|
38
|
+
{
|
|
39
|
+
srcPath: "/_api/promote-seo-robots-server",
|
|
40
|
+
destPath: "/api"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
srcPath: "/_api/promote-seo-robots-server/v2/robots",
|
|
44
|
+
destPath: "/v2/robots"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
srcPath: "/_api/promote-seo-robots-server/v2/ads",
|
|
48
|
+
destPath: "/v2/ads"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
srcPath: "/_api/promote-seo-robots-server/v2/llms",
|
|
52
|
+
destPath: "/v2/llms"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"www.wixapis.com": [
|
|
56
|
+
{
|
|
57
|
+
srcPath: "/promote-seo-robots-server/v2/robots",
|
|
58
|
+
destPath: "/v2/robots"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
srcPath: "/promote-seo-robots-server/v2/ads",
|
|
62
|
+
destPath: "/v2/ads"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
srcPath: "/promote-seo-txt-file-server/v2/ads",
|
|
66
|
+
destPath: "/v2/ads"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
srcPath: "/promote-seo-txt-file-server/v2/robots",
|
|
70
|
+
destPath: "/v2/robots"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
srcPath: "/promote-seo-robots-server/v2/llms",
|
|
74
|
+
destPath: "/v2/llms"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
srcPath: "/promote-seo-txt-file-server/v2/llms",
|
|
78
|
+
destPath: "/v2/llms"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"*.dev.wix-code.com": [
|
|
82
|
+
{
|
|
83
|
+
srcPath: "/promote/marketing/v2/ads",
|
|
84
|
+
destPath: "/v2/ads"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
srcPath: "/promote/seo/v2/llms",
|
|
88
|
+
destPath: "/v2/llms"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
srcPath: "/promote/seo/v2/robots",
|
|
92
|
+
destPath: "/v2/robots"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
_: [
|
|
96
|
+
{
|
|
97
|
+
srcPath: "/promote/marketing/v2/ads",
|
|
98
|
+
destPath: "/v2/ads"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
srcPath: "/promote/seo/v2/llms",
|
|
102
|
+
destPath: "/v2/llms"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
srcPath: "/promote/seo/v2/robots",
|
|
106
|
+
destPath: "/v2/robots"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
};
|
|
110
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
111
|
+
}
|
|
112
|
+
var PACKAGE_NAME = "@wix/auto_sdk_seo_llms-txt";
|
|
113
|
+
function getLlmsTxt(payload) {
|
|
114
|
+
function __getLlmsTxt({ host }) {
|
|
115
|
+
const metadata = {
|
|
116
|
+
entityFqdn: "wix.promote.seo.v2.llms_txt",
|
|
117
|
+
method: "GET",
|
|
118
|
+
methodFqn: "com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.GetLlmsTxt",
|
|
119
|
+
packageName: PACKAGE_NAME,
|
|
120
|
+
migrationOptions: {
|
|
121
|
+
optInTransformResponse: true
|
|
122
|
+
},
|
|
123
|
+
url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({
|
|
124
|
+
protoPath: "/v2/llms",
|
|
125
|
+
data: payload,
|
|
126
|
+
host
|
|
127
|
+
}),
|
|
128
|
+
params: toURLSearchParams(payload)
|
|
129
|
+
};
|
|
130
|
+
return metadata;
|
|
131
|
+
}
|
|
132
|
+
return __getLlmsTxt;
|
|
133
|
+
}
|
|
134
|
+
function updateLlmsTxt(payload) {
|
|
135
|
+
function __updateLlmsTxt({ host }) {
|
|
136
|
+
const metadata = {
|
|
137
|
+
entityFqdn: "wix.promote.seo.v2.llms_txt",
|
|
138
|
+
method: "PUT",
|
|
139
|
+
methodFqn: "com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.UpdateLlmsTxt",
|
|
140
|
+
packageName: PACKAGE_NAME,
|
|
141
|
+
migrationOptions: {
|
|
142
|
+
optInTransformResponse: true
|
|
143
|
+
},
|
|
144
|
+
url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({
|
|
145
|
+
protoPath: "/v2/llms",
|
|
146
|
+
data: payload,
|
|
147
|
+
host
|
|
148
|
+
}),
|
|
149
|
+
data: payload
|
|
150
|
+
};
|
|
151
|
+
return metadata;
|
|
152
|
+
}
|
|
153
|
+
return __updateLlmsTxt;
|
|
154
|
+
}
|
|
155
|
+
function appendLlmsTxt(payload) {
|
|
156
|
+
function __appendLlmsTxt({ host }) {
|
|
157
|
+
const metadata = {
|
|
158
|
+
entityFqdn: "wix.promote.seo.v2.llms_txt",
|
|
159
|
+
method: "PATCH",
|
|
160
|
+
methodFqn: "com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.AppendLlmsTxt",
|
|
161
|
+
packageName: PACKAGE_NAME,
|
|
162
|
+
migrationOptions: {
|
|
163
|
+
optInTransformResponse: true
|
|
164
|
+
},
|
|
165
|
+
url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({
|
|
166
|
+
protoPath: "/v2/llms",
|
|
167
|
+
data: payload,
|
|
168
|
+
host
|
|
169
|
+
}),
|
|
170
|
+
data: payload
|
|
171
|
+
};
|
|
172
|
+
return metadata;
|
|
173
|
+
}
|
|
174
|
+
return __appendLlmsTxt;
|
|
175
|
+
}
|
|
176
|
+
function updateLlmsTxtHiddenStatus(payload) {
|
|
177
|
+
function __updateLlmsTxtHiddenStatus({ host }) {
|
|
178
|
+
const metadata = {
|
|
179
|
+
entityFqdn: "wix.promote.seo.v2.llms_txt",
|
|
180
|
+
method: "PATCH",
|
|
181
|
+
methodFqn: "com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.UpdateLlmsTxtHiddenStatus",
|
|
182
|
+
packageName: PACKAGE_NAME,
|
|
183
|
+
migrationOptions: {
|
|
184
|
+
optInTransformResponse: true
|
|
185
|
+
},
|
|
186
|
+
url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({
|
|
187
|
+
protoPath: "/v2/llms/hidden",
|
|
188
|
+
data: payload,
|
|
189
|
+
host
|
|
190
|
+
}),
|
|
191
|
+
data: payload
|
|
192
|
+
};
|
|
193
|
+
return metadata;
|
|
194
|
+
}
|
|
195
|
+
return __updateLlmsTxtHiddenStatus;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// src/promote-seo-v2-llms-txt-llms-txt.universal.ts
|
|
199
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
200
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
201
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
202
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
203
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
204
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
205
|
+
return WebhookIdentityType2;
|
|
206
|
+
})(WebhookIdentityType || {});
|
|
207
|
+
async function getLlmsTxt2(options) {
|
|
208
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
209
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
210
|
+
subdomain: options?.subdomain
|
|
211
|
+
});
|
|
212
|
+
const reqOpts = getLlmsTxt(payload);
|
|
213
|
+
sideEffects?.onSiteCall?.();
|
|
214
|
+
try {
|
|
215
|
+
const result = await httpClient.request(reqOpts);
|
|
216
|
+
sideEffects?.onSuccess?.(result);
|
|
217
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
218
|
+
} catch (err) {
|
|
219
|
+
const transformedError = sdkTransformError(
|
|
220
|
+
err,
|
|
221
|
+
{
|
|
222
|
+
spreadPathsToArguments: {},
|
|
223
|
+
explicitPathsToArguments: { subdomain: "$[0].subdomain" },
|
|
224
|
+
singleArgumentUnchanged: false
|
|
225
|
+
},
|
|
226
|
+
["options"]
|
|
227
|
+
);
|
|
228
|
+
sideEffects?.onError?.(err);
|
|
229
|
+
throw transformedError;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
async function updateLlmsTxt2(options) {
|
|
233
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
234
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
235
|
+
llmsTxt: options?.llmsTxt
|
|
236
|
+
});
|
|
237
|
+
const reqOpts = updateLlmsTxt(payload);
|
|
238
|
+
sideEffects?.onSiteCall?.();
|
|
239
|
+
try {
|
|
240
|
+
const result = await httpClient.request(reqOpts);
|
|
241
|
+
sideEffects?.onSuccess?.(result);
|
|
242
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
243
|
+
} catch (err) {
|
|
244
|
+
const transformedError = sdkTransformError(
|
|
245
|
+
err,
|
|
246
|
+
{
|
|
247
|
+
spreadPathsToArguments: {},
|
|
248
|
+
explicitPathsToArguments: { llmsTxt: "$[0].llmsTxt" },
|
|
249
|
+
singleArgumentUnchanged: false
|
|
250
|
+
},
|
|
251
|
+
["options"]
|
|
252
|
+
);
|
|
253
|
+
sideEffects?.onError?.(err);
|
|
254
|
+
throw transformedError;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
async function appendLlmsTxt2(options) {
|
|
258
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
259
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
260
|
+
llmsTxt: options?.llmsTxt
|
|
261
|
+
});
|
|
262
|
+
const reqOpts = appendLlmsTxt(payload);
|
|
263
|
+
sideEffects?.onSiteCall?.();
|
|
264
|
+
try {
|
|
265
|
+
const result = await httpClient.request(reqOpts);
|
|
266
|
+
sideEffects?.onSuccess?.(result);
|
|
267
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
268
|
+
} catch (err) {
|
|
269
|
+
const transformedError = sdkTransformError(
|
|
270
|
+
err,
|
|
271
|
+
{
|
|
272
|
+
spreadPathsToArguments: {},
|
|
273
|
+
explicitPathsToArguments: { llmsTxt: "$[0].llmsTxt" },
|
|
274
|
+
singleArgumentUnchanged: false
|
|
275
|
+
},
|
|
276
|
+
["options"]
|
|
277
|
+
);
|
|
278
|
+
sideEffects?.onError?.(err);
|
|
279
|
+
throw transformedError;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
async function updateLlmsTxtHiddenStatus2(options) {
|
|
283
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
284
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
285
|
+
hidden: options?.hidden,
|
|
286
|
+
subdomain: options?.subdomain
|
|
287
|
+
});
|
|
288
|
+
const reqOpts = updateLlmsTxtHiddenStatus(payload);
|
|
289
|
+
sideEffects?.onSiteCall?.();
|
|
290
|
+
try {
|
|
291
|
+
const result = await httpClient.request(reqOpts);
|
|
292
|
+
sideEffects?.onSuccess?.(result);
|
|
293
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
294
|
+
} catch (err) {
|
|
295
|
+
const transformedError = sdkTransformError(
|
|
296
|
+
err,
|
|
297
|
+
{
|
|
298
|
+
spreadPathsToArguments: {},
|
|
299
|
+
explicitPathsToArguments: {
|
|
300
|
+
hidden: "$[0].hidden",
|
|
301
|
+
subdomain: "$[0].subdomain"
|
|
302
|
+
},
|
|
303
|
+
singleArgumentUnchanged: false
|
|
304
|
+
},
|
|
305
|
+
["options"]
|
|
306
|
+
);
|
|
307
|
+
sideEffects?.onError?.(err);
|
|
308
|
+
throw transformedError;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
export {
|
|
312
|
+
WebhookIdentityType,
|
|
313
|
+
appendLlmsTxt2 as appendLlmsTxt,
|
|
314
|
+
getLlmsTxt2 as getLlmsTxt,
|
|
315
|
+
updateLlmsTxt2 as updateLlmsTxt,
|
|
316
|
+
updateLlmsTxtHiddenStatus2 as updateLlmsTxtHiddenStatus
|
|
317
|
+
};
|
|
318
|
+
//# sourceMappingURL=index.typings.mjs.map
|