@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 @@
1
+ {"version":3,"sources":["../../src/promote-seo-v2-llms-txt-llms-txt.universal.ts","../../src/promote-seo-v2-llms-txt-llms-txt.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPromoteSeoV2LlmsTxt from './promote-seo-v2-llms-txt-llms-txt.http.js';\n\nexport interface LlmsTxt {\n /**\n * CFull text content of the `llms.txt` file.\n * @maxLength 720000\n */\n content?: string;\n /** Whether this `llms.txt` file uses Wix's default content. */\n default?: boolean;\n /**\n * Target subdomain for the `llms.txt` file (for example, 'www', 'es', 'fr'). Default: 'www'\n * @maxLength 63\n */\n subdomain?: string;\n /**\n * Whether the llms.txt file should be hidden from public access.\n * @readonly\n */\n hidden?: boolean | null;\n /** 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`. */\n manuallyEdited?: boolean;\n /**\n * ISO 639-1 language code detected for the site (e.g. en, fr). Used to localize the MCP documentation section when serving llms.txt.\n * @maxLength 2\n */\n detectedLanguage?: string;\n}\n\n/** The request to get the Llms.txt file content */\nexport interface GetLlmsTxtRequest {\n /**\n * Subdomain of the requested `llms.txt file`. For example, `www`, `es`, `fr`. Default: `www`.\n * @maxLength 63\n */\n subdomain?: string;\n}\n\n/** The response of the Llms.txt file request */\nexport interface GetLlmsTxtResponse {\n /** Retrieved `llms.txt` file entity. */\n llmsTxt?: LlmsTxt;\n}\n\n/** The request to update the content of the Llms.txt file */\nexport interface UpdateLlmsTxtRequest {\n /** `llms.txt` file to update. */\n llmsTxt?: LlmsTxt;\n}\n\nexport interface UpdateLlmsTxtResponse {\n /** Updated Llms txt object */\n llmsTxt?: LlmsTxt;\n}\n\n/** The request to append the content of the Llms.txt file */\nexport interface AppendLlmsTxtRequest {\n /** `llms.txt` file to append. */\n llmsTxt?: LlmsTxt;\n}\n\nexport interface AppendLlmsTxtResponse {\n /** Appended `llms.txt` file. */\n llmsTxt?: LlmsTxt;\n}\n\n/** The request to update the hidden state of Llms.txt file */\nexport interface UpdateLlmsTxtHiddenStatusRequest {\n /**\n * Hidden state to set for the Llms.txt file.\n * If true, the llms.txt file will be hidden from public access (returns 404).\n * If false, the llms.txt file will be publicly accessible.\n */\n hidden?: boolean;\n /**\n * Subdomain of Llms.txt, for example `www`, `es`, `fr`. Default is `www`.\n * @maxLength 63\n */\n subdomain?: string;\n}\n\n/** The response of updating the hidden state of Llms.txt file */\nexport interface UpdateLlmsTxtHiddenStatusResponse {\n /** Updated Llms txt object with new hidden state */\n llmsTxt?: LlmsTxt;\n}\n\n/** The request to update the manually_edited state of Llms.txt file */\nexport interface UpdateLlmsTxtManuallyEditedStatusRequest {\n /**\n * Manually edited state to set for the Llms.txt file.\n * If true, the llms.txt file is marked as manually edited, and update/append operations\n * that do not acknowledge the flag will be rejected.\n * If false, the llms.txt file is unlocked for auto-update operations.\n */\n manuallyEdited?: boolean;\n /**\n * Subdomain of Llms.txt, for example `www`, `es`, `fr`. Default is `www`.\n * @maxLength 63\n */\n subdomain?: string;\n}\n\n/** The response of updating the manually_edited state of Llms.txt file */\nexport interface UpdateLlmsTxtManuallyEditedStatusResponse {\n /** Updated Llms.txt file with new manually_edited state. */\n llmsTxt?: LlmsTxt;\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 entity?: string;\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 currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: 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\n/**\n * Retrieves the `llms.txt` file entity.\n * @public\n * @permissionId PROMOTE.LLMS_TXT_READ\n * @applicableIdentity APP\n * @returns The response of the Llms.txt file request\n * @fqn com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.GetLlmsTxt\n */\nexport async function getLlmsTxt(\n options?: GetLlmsTxtOptions\n): Promise<\n NonNullablePaths<\n GetLlmsTxtResponse,\n | `llmsTxt.content`\n | `llmsTxt.default`\n | `llmsTxt.subdomain`\n | `llmsTxt.manuallyEdited`\n | `llmsTxt.detectedLanguage`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n subdomain: options?.subdomain,\n });\n\n const reqOpts = ambassadorWixPromoteSeoV2LlmsTxt.getLlmsTxt(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { subdomain: '$[0].subdomain' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetLlmsTxtOptions {\n /**\n * Subdomain of the requested `llms.txt file`. For example, `www`, `es`, `fr`. Default: `www`.\n * @maxLength 63\n */\n subdomain?: string;\n}\n\n/**\n * Updates the `llms.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 * @public\n * @permissionId PROMOTE.LLMS_TXT_WRITE\n * @applicableIdentity APP\n * @fqn com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.UpdateLlmsTxt\n */\nexport async function updateLlmsTxt(\n options?: UpdateLlmsTxtOptions\n): Promise<\n NonNullablePaths<\n UpdateLlmsTxtResponse,\n | `llmsTxt.content`\n | `llmsTxt.default`\n | `llmsTxt.subdomain`\n | `llmsTxt.manuallyEdited`\n | `llmsTxt.detectedLanguage`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n llmsTxt: options?.llmsTxt,\n });\n\n const reqOpts = ambassadorWixPromoteSeoV2LlmsTxt.updateLlmsTxt(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { llmsTxt: '$[0].llmsTxt' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateLlmsTxtOptions {\n /** `llms.txt` file to update. */\n llmsTxt?: LlmsTxt;\n}\n\n/**\n * Appends additional content to the existing `llms.txt` file.\n *\n * The provided content will be added to the end of the current file content.\n *\n * To reset to Wix's default content instead, set `default` to `true` and omit the `content` field.\n * @public\n * @permissionId PROMOTE.LLMS_TXT_WRITE\n * @applicableIdentity APP\n * @fqn com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.AppendLlmsTxt\n */\nexport async function appendLlmsTxt(\n options?: AppendLlmsTxtOptions\n): Promise<\n NonNullablePaths<\n AppendLlmsTxtResponse,\n | `llmsTxt.content`\n | `llmsTxt.default`\n | `llmsTxt.subdomain`\n | `llmsTxt.manuallyEdited`\n | `llmsTxt.detectedLanguage`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n llmsTxt: options?.llmsTxt,\n });\n\n const reqOpts = ambassadorWixPromoteSeoV2LlmsTxt.appendLlmsTxt(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { llmsTxt: '$[0].llmsTxt' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface AppendLlmsTxtOptions {\n /** `llms.txt` file to append. */\n llmsTxt?: LlmsTxt;\n}\n\n/**\n * Updates only the hidden state of the Llms.txt file.\n * Content remains unchanged - only visibility is modified.\n * @public\n * @permissionId PROMOTE.LLMS_TXT_WRITE\n * @applicableIdentity APP\n * @returns The response of updating the hidden state of Llms.txt file\n * @fqn com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.UpdateLlmsTxtHiddenStatus\n */\nexport async function updateLlmsTxtHiddenStatus(\n options?: UpdateLlmsTxtHiddenStatusOptions\n): Promise<\n NonNullablePaths<\n UpdateLlmsTxtHiddenStatusResponse,\n | `llmsTxt.content`\n | `llmsTxt.default`\n | `llmsTxt.subdomain`\n | `llmsTxt.manuallyEdited`\n | `llmsTxt.detectedLanguage`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n hidden: options?.hidden,\n subdomain: options?.subdomain,\n });\n\n const reqOpts =\n ambassadorWixPromoteSeoV2LlmsTxt.updateLlmsTxtHiddenStatus(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n hidden: '$[0].hidden',\n subdomain: '$[0].subdomain',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateLlmsTxtHiddenStatusOptions {\n /**\n * Hidden state to set for the Llms.txt file.\n * If true, the llms.txt file will be hidden from public access (returns 404).\n * If false, the llms.txt file will be publicly accessible.\n */\n hidden?: boolean;\n /**\n * Subdomain of Llms.txt, for example `www`, `es`, `fr`. Default is `www`.\n * @maxLength 63\n */\n subdomain?: string;\n}\n","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 resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url(\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_llms-txt';\n\n/** Retrieves the `llms.txt` file entity. */\nexport function getLlmsTxt(payload: object): RequestOptionsFactory<any> {\n function __getLlmsTxt({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v2.llms_txt',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.GetLlmsTxt',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({\n protoPath: '/v2/llms',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getLlmsTxt;\n}\n\n/**\n * Updates the `llms.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 updateLlmsTxt(payload: object): RequestOptionsFactory<any> {\n function __updateLlmsTxt({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v2.llms_txt',\n method: 'PUT' as any,\n methodFqn:\n 'com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.UpdateLlmsTxt',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({\n protoPath: '/v2/llms',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __updateLlmsTxt;\n}\n\n/**\n * Appends additional content to the existing `llms.txt` file.\n *\n * The provided content will be added to the end of the current file content.\n *\n * To reset to Wix's default content instead, set `default` to `true` and omit the `content` field.\n */\nexport function appendLlmsTxt(payload: object): RequestOptionsFactory<any> {\n function __appendLlmsTxt({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v2.llms_txt',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.AppendLlmsTxt',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({\n protoPath: '/v2/llms',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __appendLlmsTxt;\n}\n\n/**\n * Updates only the hidden state of the Llms.txt file.\n * Content remains unchanged - only visibility is modified.\n */\nexport function updateLlmsTxtHiddenStatus(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateLlmsTxtHiddenStatus({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v2.llms_txt',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.UpdateLlmsTxtHiddenStatus',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({\n protoPath: '/v2/llms/hidden',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __updateLlmsTxtHiddenStatus;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,2DACP,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;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,mBAAmB;AAAA,MACjB;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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,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,SAAS,eAAe;AAAA,QACpD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAgBA,eAAsBC,2BACpB,SAWA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD,QAAQ,SAAS;AAAA,IACjB,WAAW,SAAS;AAAA,EACtB,CAAC;AAED,QAAM,UAC6B,0BAA0B,OAAO;AAEpE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,QAAQ;AAAA,UACR,WAAW;AAAA,QACb;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["WebhookIdentityType","getLlmsTxt","updateLlmsTxt","appendLlmsTxt","updateLlmsTxtHiddenStatus"]}
@@ -0,0 +1,271 @@
1
+ import { GetLlmsTxtRequest as GetLlmsTxtRequest$1, GetLlmsTxtResponse as GetLlmsTxtResponse$1, UpdateLlmsTxtRequest as UpdateLlmsTxtRequest$1, UpdateLlmsTxtResponse as UpdateLlmsTxtResponse$1, AppendLlmsTxtRequest as AppendLlmsTxtRequest$1, AppendLlmsTxtResponse as AppendLlmsTxtResponse$1, UpdateLlmsTxtHiddenStatusRequest as UpdateLlmsTxtHiddenStatusRequest$1, UpdateLlmsTxtHiddenStatusResponse as UpdateLlmsTxtHiddenStatusResponse$1 } from './index.typings.mjs';
2
+ import '@wix/sdk-types';
3
+
4
+ interface LlmsTxt {
5
+ /**
6
+ * CFull text content of the `llms.txt` file.
7
+ * @maxLength 720000
8
+ */
9
+ content?: string;
10
+ /** Whether this `llms.txt` file uses Wix's default content. */
11
+ default?: boolean;
12
+ /**
13
+ * Target subdomain for the `llms.txt` file (for example, 'www', 'es', 'fr'). Default: 'www'
14
+ * @maxLength 63
15
+ */
16
+ subdomain?: string;
17
+ /**
18
+ * Whether the llms.txt file should be hidden from public access.
19
+ * @readonly
20
+ */
21
+ hidden?: boolean | null;
22
+ /** 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`. */
23
+ manuallyEdited?: boolean;
24
+ /**
25
+ * ISO 639-1 language code detected for the site (e.g. en, fr). Used to localize the MCP documentation section when serving llms.txt.
26
+ * @maxLength 2
27
+ */
28
+ detectedLanguage?: string;
29
+ }
30
+ /** The request to get the Llms.txt file content */
31
+ interface GetLlmsTxtRequest {
32
+ /**
33
+ * Subdomain of the requested `llms.txt file`. For example, `www`, `es`, `fr`. Default: `www`.
34
+ * @maxLength 63
35
+ */
36
+ subdomain?: string;
37
+ }
38
+ /** The response of the Llms.txt file request */
39
+ interface GetLlmsTxtResponse {
40
+ /** Retrieved `llms.txt` file entity. */
41
+ llmsTxt?: LlmsTxt;
42
+ }
43
+ /** The request to update the content of the Llms.txt file */
44
+ interface UpdateLlmsTxtRequest {
45
+ /** `llms.txt` file to update. */
46
+ llmsTxt?: LlmsTxt;
47
+ }
48
+ interface UpdateLlmsTxtResponse {
49
+ /** Updated Llms txt object */
50
+ llmsTxt?: LlmsTxt;
51
+ }
52
+ /** The request to append the content of the Llms.txt file */
53
+ interface AppendLlmsTxtRequest {
54
+ /** `llms.txt` file to append. */
55
+ llmsTxt?: LlmsTxt;
56
+ }
57
+ interface AppendLlmsTxtResponse {
58
+ /** Appended `llms.txt` file. */
59
+ llmsTxt?: LlmsTxt;
60
+ }
61
+ /** The request to update the hidden state of Llms.txt file */
62
+ interface UpdateLlmsTxtHiddenStatusRequest {
63
+ /**
64
+ * Hidden state to set for the Llms.txt file.
65
+ * If true, the llms.txt file will be hidden from public access (returns 404).
66
+ * If false, the llms.txt file will be publicly accessible.
67
+ */
68
+ hidden?: boolean;
69
+ /**
70
+ * Subdomain of Llms.txt, for example `www`, `es`, `fr`. Default is `www`.
71
+ * @maxLength 63
72
+ */
73
+ subdomain?: string;
74
+ }
75
+ /** The response of updating the hidden state of Llms.txt file */
76
+ interface UpdateLlmsTxtHiddenStatusResponse {
77
+ /** Updated Llms txt object with new hidden state */
78
+ llmsTxt?: LlmsTxt;
79
+ }
80
+ /** The request to update the manually_edited state of Llms.txt file */
81
+ interface UpdateLlmsTxtManuallyEditedStatusRequest {
82
+ /**
83
+ * Manually edited state to set for the Llms.txt file.
84
+ * If true, the llms.txt file is marked as manually edited, and update/append operations
85
+ * that do not acknowledge the flag will be rejected.
86
+ * If false, the llms.txt file is unlocked for auto-update operations.
87
+ */
88
+ manuallyEdited?: boolean;
89
+ /**
90
+ * Subdomain of Llms.txt, for example `www`, `es`, `fr`. Default is `www`.
91
+ * @maxLength 63
92
+ */
93
+ subdomain?: string;
94
+ }
95
+ /** The response of updating the manually_edited state of Llms.txt file */
96
+ interface UpdateLlmsTxtManuallyEditedStatusResponse {
97
+ /** Updated Llms.txt file with new manually_edited state. */
98
+ llmsTxt?: LlmsTxt;
99
+ }
100
+ interface DomainEvent extends DomainEventBodyOneOf {
101
+ createdEvent?: EntityCreatedEvent;
102
+ updatedEvent?: EntityUpdatedEvent;
103
+ deletedEvent?: EntityDeletedEvent;
104
+ actionEvent?: ActionEvent;
105
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
106
+ id?: string;
107
+ /**
108
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
109
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
110
+ */
111
+ entityFqdn?: string;
112
+ /**
113
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
114
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
115
+ */
116
+ slug?: string;
117
+ /** ID of the entity associated with the event. */
118
+ entityId?: string;
119
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
120
+ eventTime?: Date | null;
121
+ /**
122
+ * Whether the event was triggered as a result of a privacy regulation application
123
+ * (for example, GDPR).
124
+ */
125
+ triggeredByAnonymizeRequest?: boolean | null;
126
+ /** If present, indicates the action that triggered the event. */
127
+ originatedFrom?: string | null;
128
+ /**
129
+ * 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.
130
+ * 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.
131
+ */
132
+ entityEventSequence?: string | null;
133
+ }
134
+ /** @oneof */
135
+ interface DomainEventBodyOneOf {
136
+ createdEvent?: EntityCreatedEvent;
137
+ updatedEvent?: EntityUpdatedEvent;
138
+ deletedEvent?: EntityDeletedEvent;
139
+ actionEvent?: ActionEvent;
140
+ }
141
+ interface EntityCreatedEvent {
142
+ entityAsJson?: string;
143
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
144
+ restoreInfo?: RestoreInfo;
145
+ }
146
+ interface RestoreInfo {
147
+ deletedDate?: Date | null;
148
+ }
149
+ interface EntityUpdatedEvent {
150
+ /**
151
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
152
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
153
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
154
+ */
155
+ currentEntityAsJson?: string;
156
+ }
157
+ interface EntityDeletedEvent {
158
+ /** Entity that was deleted. */
159
+ deletedEntityAsJson?: string | null;
160
+ }
161
+ interface ActionEvent {
162
+ bodyAsJson?: string;
163
+ }
164
+ interface MessageEnvelope {
165
+ /**
166
+ * App instance ID.
167
+ * @format GUID
168
+ */
169
+ instanceId?: string | null;
170
+ /**
171
+ * Event type.
172
+ * @maxLength 150
173
+ */
174
+ eventType?: string;
175
+ /** The identification type and identity data. */
176
+ identity?: IdentificationData;
177
+ /** Stringify payload. */
178
+ data?: string;
179
+ /** Details related to the account */
180
+ accountInfo?: AccountInfo;
181
+ }
182
+ interface IdentificationData extends IdentificationDataIdOneOf {
183
+ /**
184
+ * ID of a site visitor that has not logged in to the site.
185
+ * @format GUID
186
+ */
187
+ anonymousVisitorId?: string;
188
+ /**
189
+ * ID of a site visitor that has logged in to the site.
190
+ * @format GUID
191
+ */
192
+ memberId?: string;
193
+ /**
194
+ * ID of a Wix user (site owner, contributor, etc.).
195
+ * @format GUID
196
+ */
197
+ wixUserId?: string;
198
+ /**
199
+ * ID of an app.
200
+ * @format GUID
201
+ */
202
+ appId?: string;
203
+ /** @readonly */
204
+ identityType?: WebhookIdentityTypeWithLiterals;
205
+ }
206
+ /** @oneof */
207
+ interface IdentificationDataIdOneOf {
208
+ /**
209
+ * ID of a site visitor that has not logged in to the site.
210
+ * @format GUID
211
+ */
212
+ anonymousVisitorId?: string;
213
+ /**
214
+ * ID of a site visitor that has logged in to the site.
215
+ * @format GUID
216
+ */
217
+ memberId?: string;
218
+ /**
219
+ * ID of a Wix user (site owner, contributor, etc.).
220
+ * @format GUID
221
+ */
222
+ wixUserId?: string;
223
+ /**
224
+ * ID of an app.
225
+ * @format GUID
226
+ */
227
+ appId?: string;
228
+ }
229
+ declare enum WebhookIdentityType {
230
+ UNKNOWN = "UNKNOWN",
231
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
232
+ MEMBER = "MEMBER",
233
+ WIX_USER = "WIX_USER",
234
+ APP = "APP"
235
+ }
236
+ /** @enumType */
237
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
238
+ interface AccountInfo {
239
+ /**
240
+ * ID of the Wix account associated with the event.
241
+ * @format GUID
242
+ */
243
+ accountId?: string | null;
244
+ /**
245
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
246
+ * @format GUID
247
+ */
248
+ parentAccountId?: string | null;
249
+ /**
250
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
251
+ * @format GUID
252
+ */
253
+ siteId?: string | null;
254
+ }
255
+
256
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
257
+ getUrl: (context: any) => string;
258
+ httpMethod: K;
259
+ path: string;
260
+ pathParams: M;
261
+ __requestType: T;
262
+ __originalRequestType: S;
263
+ __responseType: Q;
264
+ __originalResponseType: R;
265
+ };
266
+ declare function getLlmsTxt(): __PublicMethodMetaInfo<'GET', {}, GetLlmsTxtRequest$1, GetLlmsTxtRequest, GetLlmsTxtResponse$1, GetLlmsTxtResponse>;
267
+ declare function updateLlmsTxt(): __PublicMethodMetaInfo<'PUT', {}, UpdateLlmsTxtRequest$1, UpdateLlmsTxtRequest, UpdateLlmsTxtResponse$1, UpdateLlmsTxtResponse>;
268
+ declare function appendLlmsTxt(): __PublicMethodMetaInfo<'PATCH', {}, AppendLlmsTxtRequest$1, AppendLlmsTxtRequest, AppendLlmsTxtResponse$1, AppendLlmsTxtResponse>;
269
+ declare function updateLlmsTxtHiddenStatus(): __PublicMethodMetaInfo<'PATCH', {}, UpdateLlmsTxtHiddenStatusRequest$1, UpdateLlmsTxtHiddenStatusRequest, UpdateLlmsTxtHiddenStatusResponse$1, UpdateLlmsTxtHiddenStatusResponse>;
270
+
271
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AppendLlmsTxtRequest as AppendLlmsTxtRequestOriginal, type AppendLlmsTxtResponse as AppendLlmsTxtResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GetLlmsTxtRequest as GetLlmsTxtRequestOriginal, type GetLlmsTxtResponse as GetLlmsTxtResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type LlmsTxt as LlmsTxtOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type RestoreInfo as RestoreInfoOriginal, type UpdateLlmsTxtHiddenStatusRequest as UpdateLlmsTxtHiddenStatusRequestOriginal, type UpdateLlmsTxtHiddenStatusResponse as UpdateLlmsTxtHiddenStatusResponseOriginal, type UpdateLlmsTxtManuallyEditedStatusRequest as UpdateLlmsTxtManuallyEditedStatusRequestOriginal, type UpdateLlmsTxtManuallyEditedStatusResponse as UpdateLlmsTxtManuallyEditedStatusResponseOriginal, type UpdateLlmsTxtRequest as UpdateLlmsTxtRequestOriginal, type UpdateLlmsTxtResponse as UpdateLlmsTxtResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, appendLlmsTxt, getLlmsTxt, updateLlmsTxt, updateLlmsTxtHiddenStatus };
@@ -0,0 +1,281 @@
1
+ // src/promote-seo-v2-llms-txt-llms-txt.http.ts
2
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
4
+ function resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url(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_llms-txt";
106
+ function getLlmsTxt(payload) {
107
+ function __getLlmsTxt({ host }) {
108
+ const metadata = {
109
+ entityFqdn: "wix.promote.seo.v2.llms_txt",
110
+ method: "GET",
111
+ methodFqn: "com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.GetLlmsTxt",
112
+ packageName: PACKAGE_NAME,
113
+ migrationOptions: {
114
+ optInTransformResponse: true
115
+ },
116
+ url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({
117
+ protoPath: "/v2/llms",
118
+ data: payload,
119
+ host
120
+ }),
121
+ params: toURLSearchParams(payload)
122
+ };
123
+ return metadata;
124
+ }
125
+ return __getLlmsTxt;
126
+ }
127
+ function updateLlmsTxt(payload) {
128
+ function __updateLlmsTxt({ host }) {
129
+ const metadata = {
130
+ entityFqdn: "wix.promote.seo.v2.llms_txt",
131
+ method: "PUT",
132
+ methodFqn: "com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.UpdateLlmsTxt",
133
+ packageName: PACKAGE_NAME,
134
+ migrationOptions: {
135
+ optInTransformResponse: true
136
+ },
137
+ url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({
138
+ protoPath: "/v2/llms",
139
+ data: payload,
140
+ host
141
+ }),
142
+ data: payload
143
+ };
144
+ return metadata;
145
+ }
146
+ return __updateLlmsTxt;
147
+ }
148
+ function appendLlmsTxt(payload) {
149
+ function __appendLlmsTxt({ host }) {
150
+ const metadata = {
151
+ entityFqdn: "wix.promote.seo.v2.llms_txt",
152
+ method: "PATCH",
153
+ methodFqn: "com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.AppendLlmsTxt",
154
+ packageName: PACKAGE_NAME,
155
+ migrationOptions: {
156
+ optInTransformResponse: true
157
+ },
158
+ url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({
159
+ protoPath: "/v2/llms",
160
+ data: payload,
161
+ host
162
+ }),
163
+ data: payload
164
+ };
165
+ return metadata;
166
+ }
167
+ return __appendLlmsTxt;
168
+ }
169
+ function updateLlmsTxtHiddenStatus(payload) {
170
+ function __updateLlmsTxtHiddenStatus({ host }) {
171
+ const metadata = {
172
+ entityFqdn: "wix.promote.seo.v2.llms_txt",
173
+ method: "PATCH",
174
+ methodFqn: "com.wixpress.promote.seo.robots.server.v2.LlmsServiceV2.UpdateLlmsTxtHiddenStatus",
175
+ packageName: PACKAGE_NAME,
176
+ migrationOptions: {
177
+ optInTransformResponse: true
178
+ },
179
+ url: resolveComWixpressPromoteSeoRobotsServerV2LlmsServiceV2Url({
180
+ protoPath: "/v2/llms/hidden",
181
+ data: payload,
182
+ host
183
+ }),
184
+ data: payload
185
+ };
186
+ return metadata;
187
+ }
188
+ return __updateLlmsTxtHiddenStatus;
189
+ }
190
+
191
+ // src/promote-seo-v2-llms-txt-llms-txt.types.ts
192
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
193
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
194
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
195
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
196
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
197
+ WebhookIdentityType2["APP"] = "APP";
198
+ return WebhookIdentityType2;
199
+ })(WebhookIdentityType || {});
200
+
201
+ // src/promote-seo-v2-llms-txt-llms-txt.meta.ts
202
+ function getLlmsTxt2() {
203
+ const payload = {};
204
+ const getRequestOptions = getLlmsTxt(payload);
205
+ const getUrl = (context) => {
206
+ const { url } = getRequestOptions(context);
207
+ return url;
208
+ };
209
+ return {
210
+ getUrl,
211
+ httpMethod: "GET",
212
+ path: "/v2/llms",
213
+ pathParams: {},
214
+ __requestType: null,
215
+ __originalRequestType: null,
216
+ __responseType: null,
217
+ __originalResponseType: null
218
+ };
219
+ }
220
+ function updateLlmsTxt2() {
221
+ const payload = {};
222
+ const getRequestOptions = updateLlmsTxt(payload);
223
+ const getUrl = (context) => {
224
+ const { url } = getRequestOptions(context);
225
+ return url;
226
+ };
227
+ return {
228
+ getUrl,
229
+ httpMethod: "PUT",
230
+ path: "/v2/llms",
231
+ pathParams: {},
232
+ __requestType: null,
233
+ __originalRequestType: null,
234
+ __responseType: null,
235
+ __originalResponseType: null
236
+ };
237
+ }
238
+ function appendLlmsTxt2() {
239
+ const payload = {};
240
+ const getRequestOptions = appendLlmsTxt(payload);
241
+ const getUrl = (context) => {
242
+ const { url } = getRequestOptions(context);
243
+ return url;
244
+ };
245
+ return {
246
+ getUrl,
247
+ httpMethod: "PATCH",
248
+ path: "/v2/llms",
249
+ pathParams: {},
250
+ __requestType: null,
251
+ __originalRequestType: null,
252
+ __responseType: null,
253
+ __originalResponseType: null
254
+ };
255
+ }
256
+ function updateLlmsTxtHiddenStatus2() {
257
+ const payload = {};
258
+ const getRequestOptions = updateLlmsTxtHiddenStatus(payload);
259
+ const getUrl = (context) => {
260
+ const { url } = getRequestOptions(context);
261
+ return url;
262
+ };
263
+ return {
264
+ getUrl,
265
+ httpMethod: "PATCH",
266
+ path: "/v2/llms/hidden",
267
+ pathParams: {},
268
+ __requestType: null,
269
+ __originalRequestType: null,
270
+ __responseType: null,
271
+ __originalResponseType: null
272
+ };
273
+ }
274
+ export {
275
+ WebhookIdentityType as WebhookIdentityTypeOriginal,
276
+ appendLlmsTxt2 as appendLlmsTxt,
277
+ getLlmsTxt2 as getLlmsTxt,
278
+ updateLlmsTxt2 as updateLlmsTxt,
279
+ updateLlmsTxtHiddenStatus2 as updateLlmsTxtHiddenStatus
280
+ };
281
+ //# sourceMappingURL=meta.mjs.map