"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// meta.ts
var meta_exports = {};
__export(meta_exports, {
  ActionOriginal: () => Action,
  AddressTagOriginal: () => AddressTag,
  AggregationTypeOriginal: () => AggregationType,
  EmailDeliverabilityStatusOriginal: () => EmailDeliverabilityStatus,
  ImageUploadStatusOriginal: () => ImageUploadStatus,
  IntervalOriginal: () => Interval,
  MatchTypeOriginal: () => MatchType,
  MemberStatusOriginal: () => MemberStatus,
  MissingValuesOriginal: () => MissingValues,
  ModeOriginal: () => Mode,
  NameFormatOriginal: () => NameFormat,
  NestedAggregationTypeOriginal: () => NestedAggregationType,
  PhoneDeliverabilityStatusOriginal: () => PhoneDeliverabilityStatus,
  PhoneTagOriginal: () => PhoneTag,
  PrivacyStatusOriginal: () => PrivacyStatus,
  QueryContactsByOffsetInternalRequestNameFormatOriginal: () => QueryContactsByOffsetInternalRequestNameFormat,
  RoleOriginal: () => Role,
  ScalarTypeOriginal: () => ScalarType,
  SortDirectionOriginal: () => SortDirection,
  SortOrderOriginal: () => SortOrder,
  SortTypeOriginal: () => SortType,
  SubdivisionTypeOriginal: () => SubdivisionType,
  SubscriptionStatusOriginal: () => SubscriptionStatus,
  UpsertContactResponseActionOriginal: () => UpsertContactResponseAction,
  UpsertModeOriginal: () => UpsertMode,
  V5SubscriptionStatusOriginal: () => V5SubscriptionStatus,
  WebhookIdentityTypeOriginal: () => WebhookIdentityType,
  addContactAdditionalEmail: () => addContactAdditionalEmail2,
  addContactAdditionalPhone: () => addContactAdditionalPhone2,
  addContactAddress: () => addContactAddress2,
  bulkCreateContacts: () => bulkCreateContacts2,
  bulkDeleteContacts: () => bulkDeleteContacts2,
  bulkDeleteContactsByFilter: () => bulkDeleteContactsByFilter2,
  bulkRestoreContactsFromTrashBin: () => bulkRestoreContactsFromTrashBin2,
  bulkUpdateContactSubscriptions: () => bulkUpdateContactSubscriptions2,
  bulkUpdateContactTags: () => bulkUpdateContactTags2,
  bulkUpdateContactTagsByFilter: () => bulkUpdateContactTagsByFilter2,
  bulkUpdateContacts: () => bulkUpdateContacts2,
  bulkUpdatePhoneCountryCodeByFilter: () => bulkUpdatePhoneCountryCodeByFilter2,
  bulkUpsertContacts: () => bulkUpsertContacts2,
  countContacts: () => countContacts2,
  createContact: () => createContact2,
  deleteContact: () => deleteContact2,
  deleteContactAddress: () => deleteContactAddress2,
  findMatchingContacts: () => findMatchingContacts2,
  generateContactImageUploadUrl: () => generateContactImageUploadUrl2,
  getContact: () => getContact2,
  getContactImageUploadStatus: () => getContactImageUploadStatus2,
  getDeletedContact: () => getDeletedContact2,
  listDeletedContacts: () => listDeletedContacts2,
  mergeContacts: () => mergeContacts2,
  queryContacts: () => queryContacts2,
  removeContactFromTrashBin: () => removeContactFromTrashBin2,
  restoreContactFromTrashBin: () => restoreContactFromTrashBin2,
  searchContacts: () => searchContacts2,
  updateContact: () => updateContact2,
  updateContactAddress: () => updateContactAddress2,
  updateContactTags: () => updateContactTags2,
  upsertContact: () => upsertContact2
});
module.exports = __toCommonJS(meta_exports);

// src/contacts-v5-contact-contacts-v-5.http.ts
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
var import_float = require("@wix/sdk-runtime/transformations/float");
var import_float2 = require("@wix/sdk-runtime/transformations/float");
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
function resolveWixContactsV5ContactsUrl(opts) {
  const domainToMappings = {
    "bo._base_domain_": [
      {
        srcPath: "/_api/contacts-v5-app",
        destPath: ""
      }
    ],
    "wixbo.ai": [
      {
        srcPath: "/_api/contacts-v5-app",
        destPath: ""
      }
    ],
    "wix-bo.com": [
      {
        srcPath: "/_api/contacts-v5-app",
        destPath: ""
      }
    ],
    "manage._base_domain_": [
      {
        srcPath: "/_api/contacts/v5/contacts",
        destPath: "/v5/contacts"
      },
      {
        srcPath: "/_api/contacts/v5/bulk/contacts",
        destPath: "/v5/bulk/contacts"
      }
    ],
    _: [
      {
        srcPath: "/_api/contacts/v5/contacts",
        destPath: "/v5/contacts"
      },
      {
        srcPath: "/_api/contacts/v5/bulk/contacts",
        destPath: "/v5/bulk/contacts"
      }
    ],
    "*.dev.wix-code.com": [
      {
        srcPath: "/_api/contacts/v5/contacts",
        destPath: "/v5/contacts"
      },
      {
        srcPath: "/_api/contacts/v5/bulk/contacts",
        destPath: "/v5/bulk/contacts"
      }
    ],
    "www.wixapis.com": [
      {
        srcPath: "/contacts/v5/contacts",
        destPath: "/v5/contacts"
      },
      {
        srcPath: "/contacts/v5/bulk/contacts",
        destPath: "/v5/bulk/contacts"
      }
    ]
  };
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
}
function resolveWixContactsV5ContactSubscriptionsUrl(opts) {
  const domainToMappings = {
    "bo._base_domain_": [
      {
        srcPath: "/_api/contacts-v5-app",
        destPath: ""
      }
    ],
    "wixbo.ai": [
      {
        srcPath: "/_api/contacts-v5-app",
        destPath: ""
      }
    ],
    "wix-bo.com": [
      {
        srcPath: "/_api/contacts-v5-app",
        destPath: ""
      }
    ],
    "manage._base_domain_": [
      {
        srcPath: "/_api/contacts/v5/contacts",
        destPath: "/v5/contacts"
      },
      {
        srcPath: "/_api/contacts/v5/bulk/contacts",
        destPath: "/v5/bulk/contacts"
      }
    ],
    _: [
      {
        srcPath: "/_api/contacts/v5/contacts",
        destPath: "/v5/contacts"
      },
      {
        srcPath: "/_api/contacts/v5/bulk/contacts",
        destPath: "/v5/bulk/contacts"
      }
    ],
    "*.dev.wix-code.com": [
      {
        srcPath: "/_api/contacts/v5/contacts",
        destPath: "/v5/contacts"
      },
      {
        srcPath: "/_api/contacts/v5/bulk/contacts",
        destPath: "/v5/bulk/contacts"
      }
    ],
    "www.wixapis.com": [
      {
        srcPath: "/contacts/v5/contacts",
        destPath: "/v5/contacts"
      },
      {
        srcPath: "/contacts/v5/bulk/contacts",
        destPath: "/v5/bulk/contacts"
      }
    ]
  };
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
}
var PACKAGE_NAME = "@wix/auto_sdk_crm_contacts-v-5";
function bulkUpdateContactSubscriptions(payload) {
  function __bulkUpdateContactSubscriptions({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.ContactSubscriptions.BulkUpdateContactSubscriptions",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactSubscriptionsUrl({
        protoPath: "/v5/bulk/contacts/subscriptions/update",
        data: payload,
        host
      }),
      data: payload
    };
    return metadata;
  }
  return __bulkUpdateContactSubscriptions;
}
function createContact(payload) {
  function __createContact({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "contact.createdDate" },
          { path: "contact.updatedDate" },
          { path: "contact.email.subscriptionStatus.updatedDate" },
          { path: "contact.phone.subscriptionStatus.updatedDate" },
          { path: "contact.image.urlExpirationDate" },
          { path: "contact.lastActivity.date" },
          { path: "contact.memberInfo.signupDate" },
          { path: "contact.memberInfo.profileInfo.photo.urlExpirationDate" },
          { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
          { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
        ]
      },
      {
        transformFn: import_float.transformSDKFloatToRESTFloat,
        paths: [
          { path: "contact.addresses.address.geocode.latitude" },
          { path: "contact.addresses.address.geocode.longitude" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.CreateContact",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contact.createdDate" },
            { path: "contact.updatedDate" },
            { path: "contact.email.subscriptionStatus.updatedDate" },
            { path: "contact.phone.subscriptionStatus.updatedDate" },
            { path: "contact.image.urlExpirationDate" },
            { path: "contact.lastActivity.date" },
            { path: "contact.memberInfo.signupDate" },
            {
              path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contact.addresses.address.geocode.latitude" },
            { path: "contact.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __createContact;
}
function getContact(payload) {
  function __getContact({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "GET",
      methodFqn: "wix.contacts.v5.Contacts.GetContact",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/{contactId}",
        data: payload,
        host
      }),
      params: (0, import_rest_modules.toURLSearchParams)(payload),
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contact.createdDate" },
            { path: "contact.updatedDate" },
            { path: "contact.email.subscriptionStatus.updatedDate" },
            { path: "contact.phone.subscriptionStatus.updatedDate" },
            { path: "contact.image.urlExpirationDate" },
            { path: "contact.lastActivity.date" },
            { path: "contact.memberInfo.signupDate" },
            {
              path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contact.addresses.address.geocode.latitude" },
            { path: "contact.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __getContact;
}
function updateContact(payload) {
  function __updateContact({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
        paths: [{ path: "fieldMask" }]
      },
      {
        transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "contact.createdDate" },
          { path: "contact.updatedDate" },
          { path: "contact.email.subscriptionStatus.updatedDate" },
          { path: "contact.phone.subscriptionStatus.updatedDate" },
          { path: "contact.image.urlExpirationDate" },
          { path: "contact.lastActivity.date" },
          { path: "contact.memberInfo.signupDate" },
          { path: "contact.memberInfo.profileInfo.photo.urlExpirationDate" },
          { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
          { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
        ]
      },
      {
        transformFn: import_float.transformSDKFloatToRESTFloat,
        paths: [
          { path: "contact.addresses.address.geocode.latitude" },
          { path: "contact.addresses.address.geocode.longitude" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "PATCH",
      methodFqn: "wix.contacts.v5.Contacts.UpdateContact",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/{contact.id}",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contact.createdDate" },
            { path: "contact.updatedDate" },
            { path: "contact.email.subscriptionStatus.updatedDate" },
            { path: "contact.phone.subscriptionStatus.updatedDate" },
            { path: "contact.image.urlExpirationDate" },
            { path: "contact.lastActivity.date" },
            { path: "contact.memberInfo.signupDate" },
            {
              path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contact.addresses.address.geocode.latitude" },
            { path: "contact.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __updateContact;
}
function upsertContact(payload) {
  function __upsertContact({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
        paths: [{ path: "fieldMask" }]
      },
      {
        transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "contact.createdDate" },
          { path: "contact.updatedDate" },
          { path: "contact.email.subscriptionStatus.updatedDate" },
          { path: "contact.phone.subscriptionStatus.updatedDate" },
          { path: "contact.image.urlExpirationDate" },
          { path: "contact.lastActivity.date" },
          { path: "contact.memberInfo.signupDate" },
          { path: "contact.memberInfo.profileInfo.photo.urlExpirationDate" },
          { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
          { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
        ]
      },
      {
        transformFn: import_float.transformSDKFloatToRESTFloat,
        paths: [
          { path: "contact.addresses.address.geocode.latitude" },
          { path: "contact.addresses.address.geocode.longitude" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.UpsertContact",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/upsert",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contact.createdDate" },
            { path: "contact.updatedDate" },
            { path: "contact.email.subscriptionStatus.updatedDate" },
            { path: "contact.phone.subscriptionStatus.updatedDate" },
            { path: "contact.image.urlExpirationDate" },
            { path: "contact.lastActivity.date" },
            { path: "contact.memberInfo.signupDate" },
            {
              path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contact.addresses.address.geocode.latitude" },
            { path: "contact.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __upsertContact;
}
function updateContactTags(payload) {
  function __updateContactTags({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.UpdateContactTags",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/{contactId}/update-tags",
        data: payload,
        host
      }),
      data: payload,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contact.createdDate" },
            { path: "contact.updatedDate" },
            { path: "contact.email.subscriptionStatus.updatedDate" },
            { path: "contact.phone.subscriptionStatus.updatedDate" },
            { path: "contact.image.urlExpirationDate" },
            { path: "contact.lastActivity.date" },
            { path: "contact.memberInfo.signupDate" },
            {
              path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contact.addresses.address.geocode.latitude" },
            { path: "contact.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __updateContactTags;
}
function mergeContacts(payload) {
  function __mergeContacts({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
        paths: [{ path: "fieldMask" }]
      },
      {
        transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "targetContact.createdDate" },
          { path: "targetContact.updatedDate" },
          { path: "targetContact.email.subscriptionStatus.updatedDate" },
          { path: "targetContact.phone.subscriptionStatus.updatedDate" },
          { path: "targetContact.image.urlExpirationDate" },
          { path: "targetContact.lastActivity.date" },
          { path: "targetContact.memberInfo.signupDate" },
          {
            path: "targetContact.memberInfo.profileInfo.photo.urlExpirationDate"
          },
          { path: "targetContact.memberInfo.sessionInfo.lastWebLogin" },
          { path: "targetContact.memberInfo.sessionInfo.lastMobileLogin" }
        ]
      },
      {
        transformFn: import_float.transformSDKFloatToRESTFloat,
        paths: [
          { path: "targetContact.addresses.address.geocode.latitude" },
          { path: "targetContact.addresses.address.geocode.longitude" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.MergeContacts",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/{targetContactId}/merge",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contact.createdDate" },
            { path: "contact.updatedDate" },
            { path: "contact.email.subscriptionStatus.updatedDate" },
            { path: "contact.phone.subscriptionStatus.updatedDate" },
            { path: "contact.image.urlExpirationDate" },
            { path: "contact.lastActivity.date" },
            { path: "contact.memberInfo.signupDate" },
            {
              path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contact.addresses.address.geocode.latitude" },
            { path: "contact.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __mergeContacts;
}
function deleteContact(payload) {
  function __deleteContact({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "DELETE",
      methodFqn: "wix.contacts.v5.Contacts.DeleteContact",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/{contactId}",
        data: payload,
        host
      }),
      params: (0, import_rest_modules.toURLSearchParams)(payload)
    };
    return metadata;
  }
  return __deleteContact;
}
function findMatchingContacts(payload) {
  function __findMatchingContacts({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "GET",
      methodFqn: "wix.contacts.v5.Contacts.FindMatchingContacts",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/find-matching",
        data: payload,
        host
      }),
      params: (0, import_rest_modules.toURLSearchParams)(payload),
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contacts.createdDate" },
            { path: "contacts.updatedDate" },
            { path: "contacts.email.subscriptionStatus.updatedDate" },
            { path: "contacts.phone.subscriptionStatus.updatedDate" },
            { path: "contacts.image.urlExpirationDate" },
            { path: "contacts.lastActivity.date" },
            { path: "contacts.memberInfo.signupDate" },
            {
              path: "contacts.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contacts.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contacts.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contacts.addresses.address.geocode.latitude" },
            { path: "contacts.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __findMatchingContacts;
}
function queryContacts(payload) {
  function __queryContacts({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "GET",
      methodFqn: "wix.contacts.v5.Contacts.QueryContacts",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/query",
        data: payload,
        host
      }),
      params: (0, import_rest_modules.toURLSearchParams)(payload, true),
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contacts.createdDate" },
            { path: "contacts.updatedDate" },
            { path: "contacts.email.subscriptionStatus.updatedDate" },
            { path: "contacts.phone.subscriptionStatus.updatedDate" },
            { path: "contacts.image.urlExpirationDate" },
            { path: "contacts.lastActivity.date" },
            { path: "contacts.memberInfo.signupDate" },
            {
              path: "contacts.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contacts.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contacts.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contacts.addresses.address.geocode.latitude" },
            { path: "contacts.addresses.address.geocode.longitude" }
          ]
        }
      ]),
      fallback: [
        {
          method: "POST",
          url: resolveWixContactsV5ContactsUrl({
            protoPath: "/v5/contacts/query",
            data: payload,
            host
          }),
          data: payload
        }
      ]
    };
    return metadata;
  }
  return __queryContacts;
}
function searchContacts(payload) {
  function __searchContacts({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_float.transformSDKFloatToRESTFloat,
        paths: [
          { path: "search.aggregations.range.buckets.from" },
          { path: "search.aggregations.range.buckets.to" },
          {
            path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
          },
          {
            path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
          }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "GET",
      methodFqn: "wix.contacts.v5.Contacts.SearchContacts",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/search",
        data: serializedData,
        host
      }),
      params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contacts.createdDate" },
            { path: "contacts.updatedDate" },
            { path: "contacts.email.subscriptionStatus.updatedDate" },
            { path: "contacts.phone.subscriptionStatus.updatedDate" },
            { path: "contacts.image.urlExpirationDate" },
            { path: "contacts.lastActivity.date" },
            { path: "contacts.memberInfo.signupDate" },
            {
              path: "contacts.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contacts.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contacts.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contacts.addresses.address.geocode.latitude" },
            { path: "contacts.addresses.address.geocode.longitude" },
            { path: "aggregationData.results.ranges.results.from" },
            { path: "aggregationData.results.ranges.results.to" },
            {
              path: "aggregationData.results.nested.results.results.*.range.from"
            },
            {
              path: "aggregationData.results.nested.results.results.*.range.to"
            },
            { path: "aggregationData.results.scalar.value" },
            {
              path: "aggregationData.results.nested.results.results.*.scalar.value"
            }
          ]
        }
      ]),
      fallback: [
        {
          method: "POST",
          url: resolveWixContactsV5ContactsUrl({
            protoPath: "/v5/contacts/search",
            data: serializedData,
            host
          }),
          data: serializedData
        }
      ]
    };
    return metadata;
  }
  return __searchContacts;
}
function countContacts(payload) {
  function __countContacts({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.CountContacts",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/count",
        data: payload,
        host
      }),
      data: payload
    };
    return metadata;
  }
  return __countContacts;
}
function generateContactImageUploadUrl(payload) {
  function __generateContactImageUploadUrl({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.GenerateContactImageUploadUrl",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/{contactId}/image/upload-url",
        data: payload,
        host
      }),
      data: payload
    };
    return metadata;
  }
  return __generateContactImageUploadUrl;
}
function addContactAdditionalEmail(payload) {
  function __addContactAdditionalEmail({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.AddContactAdditionalEmail",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/{contactId}/additional-emails",
        data: payload,
        host
      }),
      data: payload,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contact.createdDate" },
            { path: "contact.updatedDate" },
            { path: "contact.email.subscriptionStatus.updatedDate" },
            { path: "contact.phone.subscriptionStatus.updatedDate" },
            { path: "contact.image.urlExpirationDate" },
            { path: "contact.lastActivity.date" },
            { path: "contact.memberInfo.signupDate" },
            {
              path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contact.addresses.address.geocode.latitude" },
            { path: "contact.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __addContactAdditionalEmail;
}
function addContactAdditionalPhone(payload) {
  function __addContactAdditionalPhone({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.AddContactAdditionalPhone",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/{contactId}/additional-phones",
        data: payload,
        host
      }),
      data: payload,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contact.createdDate" },
            { path: "contact.updatedDate" },
            { path: "contact.email.subscriptionStatus.updatedDate" },
            { path: "contact.phone.subscriptionStatus.updatedDate" },
            { path: "contact.image.urlExpirationDate" },
            { path: "contact.lastActivity.date" },
            { path: "contact.memberInfo.signupDate" },
            {
              path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contact.addresses.address.geocode.latitude" },
            { path: "contact.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __addContactAdditionalPhone;
}
function addContactAddress(payload) {
  function __addContactAddress({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_float.transformSDKFloatToRESTFloat,
        paths: [
          { path: "address.address.geocode.latitude" },
          { path: "address.address.geocode.longitude" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.AddContactAddress",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/{contactId}/addresses",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contact.createdDate" },
            { path: "contact.updatedDate" },
            { path: "contact.email.subscriptionStatus.updatedDate" },
            { path: "contact.phone.subscriptionStatus.updatedDate" },
            { path: "contact.image.urlExpirationDate" },
            { path: "contact.lastActivity.date" },
            { path: "contact.memberInfo.signupDate" },
            {
              path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contact.addresses.address.geocode.latitude" },
            { path: "contact.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __addContactAddress;
}
function deleteContactAddress(payload) {
  function __deleteContactAddress({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "DELETE",
      methodFqn: "wix.contacts.v5.Contacts.DeleteContactAddress",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/{contactId}/addresses/{addressId}",
        data: payload,
        host
      }),
      params: (0, import_rest_modules.toURLSearchParams)(payload),
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contact.createdDate" },
            { path: "contact.updatedDate" },
            { path: "contact.email.subscriptionStatus.updatedDate" },
            { path: "contact.phone.subscriptionStatus.updatedDate" },
            { path: "contact.image.urlExpirationDate" },
            { path: "contact.lastActivity.date" },
            { path: "contact.memberInfo.signupDate" },
            {
              path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contact.addresses.address.geocode.latitude" },
            { path: "contact.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __deleteContactAddress;
}
function updateContactAddress(payload) {
  function __updateContactAddress({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_float.transformSDKFloatToRESTFloat,
        paths: [
          { path: "address.address.geocode.latitude" },
          { path: "address.address.geocode.longitude" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "PATCH",
      methodFqn: "wix.contacts.v5.Contacts.UpdateContactAddress",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/{contactId}/addresses/{address.id}",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contact.createdDate" },
            { path: "contact.updatedDate" },
            { path: "contact.email.subscriptionStatus.updatedDate" },
            { path: "contact.phone.subscriptionStatus.updatedDate" },
            { path: "contact.image.urlExpirationDate" },
            { path: "contact.lastActivity.date" },
            { path: "contact.memberInfo.signupDate" },
            {
              path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contact.addresses.address.geocode.latitude" },
            { path: "contact.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __updateContactAddress;
}
function bulkCreateContacts(payload) {
  function __bulkCreateContacts({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "contacts.createdDate" },
          { path: "contacts.updatedDate" },
          { path: "contacts.email.subscriptionStatus.updatedDate" },
          { path: "contacts.phone.subscriptionStatus.updatedDate" },
          { path: "contacts.image.urlExpirationDate" },
          { path: "contacts.lastActivity.date" },
          { path: "contacts.memberInfo.signupDate" },
          { path: "contacts.memberInfo.profileInfo.photo.urlExpirationDate" },
          { path: "contacts.memberInfo.sessionInfo.lastWebLogin" },
          { path: "contacts.memberInfo.sessionInfo.lastMobileLogin" }
        ]
      },
      {
        transformFn: import_float.transformSDKFloatToRESTFloat,
        paths: [
          { path: "contacts.addresses.address.geocode.latitude" },
          { path: "contacts.addresses.address.geocode.longitude" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.BulkCreateContacts",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/bulk/contacts/create",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "results.item.createdDate" },
            { path: "results.item.updatedDate" },
            { path: "results.item.email.subscriptionStatus.updatedDate" },
            { path: "results.item.phone.subscriptionStatus.updatedDate" },
            { path: "results.item.image.urlExpirationDate" },
            { path: "results.item.lastActivity.date" },
            { path: "results.item.memberInfo.signupDate" },
            {
              path: "results.item.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "results.item.memberInfo.sessionInfo.lastWebLogin" },
            { path: "results.item.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "results.item.addresses.address.geocode.latitude" },
            { path: "results.item.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __bulkCreateContacts;
}
function bulkUpdateContacts(payload) {
  function __bulkUpdateContacts({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
        paths: [{ path: "contacts.fieldMask" }]
      },
      {
        transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "contacts.contact.createdDate" },
          { path: "contacts.contact.updatedDate" },
          { path: "contacts.contact.email.subscriptionStatus.updatedDate" },
          { path: "contacts.contact.phone.subscriptionStatus.updatedDate" },
          { path: "contacts.contact.image.urlExpirationDate" },
          { path: "contacts.contact.lastActivity.date" },
          { path: "contacts.contact.memberInfo.signupDate" },
          {
            path: "contacts.contact.memberInfo.profileInfo.photo.urlExpirationDate"
          },
          { path: "contacts.contact.memberInfo.sessionInfo.lastWebLogin" },
          { path: "contacts.contact.memberInfo.sessionInfo.lastMobileLogin" }
        ]
      },
      {
        transformFn: import_float.transformSDKFloatToRESTFloat,
        paths: [
          { path: "contacts.contact.addresses.address.geocode.latitude" },
          { path: "contacts.contact.addresses.address.geocode.longitude" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.BulkUpdateContacts",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/bulk/contacts/update",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "results.item.createdDate" },
            { path: "results.item.updatedDate" },
            { path: "results.item.email.subscriptionStatus.updatedDate" },
            { path: "results.item.phone.subscriptionStatus.updatedDate" },
            { path: "results.item.image.urlExpirationDate" },
            { path: "results.item.lastActivity.date" },
            { path: "results.item.memberInfo.signupDate" },
            {
              path: "results.item.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "results.item.memberInfo.sessionInfo.lastWebLogin" },
            { path: "results.item.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "results.item.addresses.address.geocode.latitude" },
            { path: "results.item.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __bulkUpdateContacts;
}
function bulkUpdateContactTags(payload) {
  function __bulkUpdateContactTags({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.BulkUpdateContactTags",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/bulk/contacts/update-tags",
        data: payload,
        host
      }),
      data: payload,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "results.item.createdDate" },
            { path: "results.item.updatedDate" },
            { path: "results.item.email.subscriptionStatus.updatedDate" },
            { path: "results.item.phone.subscriptionStatus.updatedDate" },
            { path: "results.item.image.urlExpirationDate" },
            { path: "results.item.lastActivity.date" },
            { path: "results.item.memberInfo.signupDate" },
            {
              path: "results.item.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "results.item.memberInfo.sessionInfo.lastWebLogin" },
            { path: "results.item.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "results.item.addresses.address.geocode.latitude" },
            { path: "results.item.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __bulkUpdateContactTags;
}
function bulkUpdateContactTagsByFilter(payload) {
  function __bulkUpdateContactTagsByFilter({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.BulkUpdateContactTagsByFilter",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/bulk/contacts/update-tags-by-filter",
        data: payload,
        host
      }),
      data: payload
    };
    return metadata;
  }
  return __bulkUpdateContactTagsByFilter;
}
function bulkUpsertContacts(payload) {
  function __bulkUpsertContacts({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
        paths: [{ path: "contacts.fieldMask" }]
      },
      {
        transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "contacts.contact.createdDate" },
          { path: "contacts.contact.updatedDate" },
          { path: "contacts.contact.email.subscriptionStatus.updatedDate" },
          { path: "contacts.contact.phone.subscriptionStatus.updatedDate" },
          { path: "contacts.contact.image.urlExpirationDate" },
          { path: "contacts.contact.lastActivity.date" },
          { path: "contacts.contact.memberInfo.signupDate" },
          {
            path: "contacts.contact.memberInfo.profileInfo.photo.urlExpirationDate"
          },
          { path: "contacts.contact.memberInfo.sessionInfo.lastWebLogin" },
          { path: "contacts.contact.memberInfo.sessionInfo.lastMobileLogin" }
        ]
      },
      {
        transformFn: import_float.transformSDKFloatToRESTFloat,
        paths: [
          { path: "contacts.contact.addresses.address.geocode.latitude" },
          { path: "contacts.contact.addresses.address.geocode.longitude" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.BulkUpsertContacts",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/bulk/contacts/upsert",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "results.item.createdDate" },
            { path: "results.item.updatedDate" },
            { path: "results.item.email.subscriptionStatus.updatedDate" },
            { path: "results.item.phone.subscriptionStatus.updatedDate" },
            { path: "results.item.image.urlExpirationDate" },
            { path: "results.item.lastActivity.date" },
            { path: "results.item.memberInfo.signupDate" },
            {
              path: "results.item.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "results.item.memberInfo.sessionInfo.lastWebLogin" },
            { path: "results.item.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "results.item.addresses.address.geocode.latitude" },
            { path: "results.item.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __bulkUpsertContacts;
}
function bulkDeleteContacts(payload) {
  function __bulkDeleteContacts({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.BulkDeleteContacts",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/bulk/contacts/delete",
        data: payload,
        host
      }),
      data: payload
    };
    return metadata;
  }
  return __bulkDeleteContacts;
}
function bulkDeleteContactsByFilter(payload) {
  function __bulkDeleteContactsByFilter({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.BulkDeleteContactsByFilter",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/bulk/contacts/delete-by-filter",
        data: payload,
        host
      }),
      data: payload
    };
    return metadata;
  }
  return __bulkDeleteContactsByFilter;
}
function removeContactFromTrashBin(payload) {
  function __removeContactFromTrashBin({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "DELETE",
      methodFqn: "wix.contacts.v5.Contacts.RemoveContactFromTrashBin",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/trash-bin/{contactId}",
        data: payload,
        host
      }),
      params: (0, import_rest_modules.toURLSearchParams)(payload)
    };
    return metadata;
  }
  return __removeContactFromTrashBin;
}
function restoreContactFromTrashBin(payload) {
  function __restoreContactFromTrashBin({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.RestoreContactFromTrashBin",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/trash-bin/{contactId}/restore",
        data: payload,
        host
      }),
      data: payload,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contact.createdDate" },
            { path: "contact.updatedDate" },
            { path: "contact.email.subscriptionStatus.updatedDate" },
            { path: "contact.phone.subscriptionStatus.updatedDate" },
            { path: "contact.image.urlExpirationDate" },
            { path: "contact.lastActivity.date" },
            { path: "contact.memberInfo.signupDate" },
            {
              path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contact.addresses.address.geocode.latitude" },
            { path: "contact.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __restoreContactFromTrashBin;
}
function bulkRestoreContactsFromTrashBin(payload) {
  function __bulkRestoreContactsFromTrashBin({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.BulkRestoreContactsFromTrashBin",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/bulk/contacts/trash-bin/restore",
        data: payload,
        host
      }),
      data: payload,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "results.item.createdDate" },
            { path: "results.item.updatedDate" },
            { path: "results.item.email.subscriptionStatus.updatedDate" },
            { path: "results.item.phone.subscriptionStatus.updatedDate" },
            { path: "results.item.image.urlExpirationDate" },
            { path: "results.item.lastActivity.date" },
            { path: "results.item.memberInfo.signupDate" },
            {
              path: "results.item.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "results.item.memberInfo.sessionInfo.lastWebLogin" },
            { path: "results.item.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "results.item.addresses.address.geocode.latitude" },
            { path: "results.item.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __bulkRestoreContactsFromTrashBin;
}
function getDeletedContact(payload) {
  function __getDeletedContact({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "GET",
      methodFqn: "wix.contacts.v5.Contacts.GetDeletedContact",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/trash-bin/{contactId}",
        data: payload,
        host
      }),
      params: (0, import_rest_modules.toURLSearchParams)(payload),
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contact.createdDate" },
            { path: "contact.updatedDate" },
            { path: "contact.email.subscriptionStatus.updatedDate" },
            { path: "contact.phone.subscriptionStatus.updatedDate" },
            { path: "contact.image.urlExpirationDate" },
            { path: "contact.lastActivity.date" },
            { path: "contact.memberInfo.signupDate" },
            {
              path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contact.addresses.address.geocode.latitude" },
            { path: "contact.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __getDeletedContact;
}
function listDeletedContacts(payload) {
  function __listDeletedContacts({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
        paths: [{ path: "deletedFromDate" }, { path: "deletedToDate" }]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "GET",
      methodFqn: "wix.contacts.v5.Contacts.ListDeletedContacts",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/trash-bin",
        data: serializedData,
        host
      }),
      params: (0, import_rest_modules.toURLSearchParams)(serializedData),
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "contacts.createdDate" },
            { path: "contacts.updatedDate" },
            { path: "contacts.email.subscriptionStatus.updatedDate" },
            { path: "contacts.phone.subscriptionStatus.updatedDate" },
            { path: "contacts.image.urlExpirationDate" },
            { path: "contacts.lastActivity.date" },
            { path: "contacts.memberInfo.signupDate" },
            {
              path: "contacts.memberInfo.profileInfo.photo.urlExpirationDate"
            },
            { path: "contacts.memberInfo.sessionInfo.lastWebLogin" },
            { path: "contacts.memberInfo.sessionInfo.lastMobileLogin" }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "contacts.addresses.address.geocode.latitude" },
            { path: "contacts.addresses.address.geocode.longitude" }
          ]
        }
      ])
    };
    return metadata;
  }
  return __listDeletedContacts;
}
function getContactImageUploadStatus(payload) {
  function __getContactImageUploadStatus({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "GET",
      methodFqn: "wix.contacts.v5.Contacts.GetContactImageUploadStatus",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/contacts/{contactId}/image-upload/{imageUploadId}",
        data: payload,
        host
      }),
      params: (0, import_rest_modules.toURLSearchParams)(payload)
    };
    return metadata;
  }
  return __getContactImageUploadStatus;
}
function bulkUpdatePhoneCountryCodeByFilter(payload) {
  function __bulkUpdatePhoneCountryCodeByFilter({ host }) {
    const metadata = {
      entityFqdn: "wix.contacts.v5.contact",
      method: "POST",
      methodFqn: "wix.contacts.v5.Contacts.BulkUpdatePhoneCountryCodeByFilter",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixContactsV5ContactsUrl({
        protoPath: "/v5/bulk/contacts/update-phone-country-code-by-filter",
        data: payload,
        host
      }),
      data: payload
    };
    return metadata;
  }
  return __bulkUpdatePhoneCountryCodeByFilter;
}

// src/contacts-v5-contact-contacts-v-5.types.ts
var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
  SubscriptionStatus2["NO_SUBSCRIPTION_STATUS"] = "NO_SUBSCRIPTION_STATUS";
  SubscriptionStatus2["NOT_SET"] = "NOT_SET";
  SubscriptionStatus2["PENDING"] = "PENDING";
  SubscriptionStatus2["SUBSCRIBED"] = "SUBSCRIBED";
  SubscriptionStatus2["UNSUBSCRIBED"] = "UNSUBSCRIBED";
  return SubscriptionStatus2;
})(SubscriptionStatus || {});
var EmailDeliverabilityStatus = /* @__PURE__ */ ((EmailDeliverabilityStatus2) => {
  EmailDeliverabilityStatus2["NOT_SET"] = "NOT_SET";
  EmailDeliverabilityStatus2["VALID"] = "VALID";
  EmailDeliverabilityStatus2["BOUNCED"] = "BOUNCED";
  EmailDeliverabilityStatus2["SPAM_COMPLAINT"] = "SPAM_COMPLAINT";
  EmailDeliverabilityStatus2["INACTIVE"] = "INACTIVE";
  return EmailDeliverabilityStatus2;
})(EmailDeliverabilityStatus || {});
var PhoneTag = /* @__PURE__ */ ((PhoneTag2) => {
  PhoneTag2["OTHER"] = "OTHER";
  PhoneTag2["MAIN"] = "MAIN";
  PhoneTag2["HOME"] = "HOME";
  PhoneTag2["MOBILE"] = "MOBILE";
  PhoneTag2["WORK"] = "WORK";
  PhoneTag2["FAX"] = "FAX";
  return PhoneTag2;
})(PhoneTag || {});
var PhoneDeliverabilityStatus = /* @__PURE__ */ ((PhoneDeliverabilityStatus2) => {
  PhoneDeliverabilityStatus2["NO_PHONE_DELIVERABILITY_STATUS"] = "NO_PHONE_DELIVERABILITY_STATUS";
  PhoneDeliverabilityStatus2["NOT_SET"] = "NOT_SET";
  PhoneDeliverabilityStatus2["VALID"] = "VALID";
  PhoneDeliverabilityStatus2["INVALID"] = "INVALID";
  return PhoneDeliverabilityStatus2;
})(PhoneDeliverabilityStatus || {});
var AddressTag = /* @__PURE__ */ ((AddressTag2) => {
  AddressTag2["OTHER"] = "OTHER";
  AddressTag2["HOME"] = "HOME";
  AddressTag2["WORK"] = "WORK";
  AddressTag2["BILLING"] = "BILLING";
  AddressTag2["SHIPPING"] = "SHIPPING";
  return AddressTag2;
})(AddressTag || {});
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
  SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
  SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
  SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
  SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
  SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
  SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
  SubdivisionType2["COUNTRY"] = "COUNTRY";
  return SubdivisionType2;
})(SubdivisionType || {});
var MemberStatus = /* @__PURE__ */ ((MemberStatus2) => {
  MemberStatus2["PENDING"] = "PENDING";
  MemberStatus2["ACTIVE"] = "ACTIVE";
  MemberStatus2["BLOCKED"] = "BLOCKED";
  MemberStatus2["OFFLINE"] = "OFFLINE";
  return MemberStatus2;
})(MemberStatus || {});
var PrivacyStatus = /* @__PURE__ */ ((PrivacyStatus2) => {
  PrivacyStatus2["PRIVATE"] = "PRIVATE";
  PrivacyStatus2["PUBLIC"] = "PUBLIC";
  return PrivacyStatus2;
})(PrivacyStatus || {});
var Role = /* @__PURE__ */ ((Role2) => {
  Role2["OWNER"] = "OWNER";
  Role2["CONTRIBUTOR"] = "CONTRIBUTOR";
  Role2["MEMBER"] = "MEMBER";
  return Role2;
})(Role || {});
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
  WebhookIdentityType2["MEMBER"] = "MEMBER";
  WebhookIdentityType2["WIX_USER"] = "WIX_USER";
  WebhookIdentityType2["APP"] = "APP";
  return WebhookIdentityType2;
})(WebhookIdentityType || {});
var Mode = /* @__PURE__ */ ((Mode2) => {
  Mode2["OR"] = "OR";
  Mode2["AND"] = "AND";
  return Mode2;
})(Mode || {});
var V5SubscriptionStatus = /* @__PURE__ */ ((V5SubscriptionStatus2) => {
  V5SubscriptionStatus2["NOT_SET"] = "NOT_SET";
  V5SubscriptionStatus2["SUBSCRIBED"] = "SUBSCRIBED";
  V5SubscriptionStatus2["UNSUBSCRIBED"] = "UNSUBSCRIBED";
  return V5SubscriptionStatus2;
})(V5SubscriptionStatus || {});
var MatchType = /* @__PURE__ */ ((MatchType2) => {
  MatchType2["EMAIL"] = "EMAIL";
  MatchType2["PHONE"] = "PHONE";
  MatchType2["EXTERNAL_ID"] = "EXTERNAL_ID";
  MatchType2["EMAIL_AND_PHONE"] = "EMAIL_AND_PHONE";
  return MatchType2;
})(MatchType || {});
var UpsertMode = /* @__PURE__ */ ((UpsertMode2) => {
  UpsertMode2["OVERWRITE"] = "OVERWRITE";
  UpsertMode2["APPEND"] = "APPEND";
  UpsertMode2["OVERWRITE_APPEND_ARRAYS"] = "OVERWRITE_APPEND_ARRAYS";
  return UpsertMode2;
})(UpsertMode || {});
var UpsertContactResponseAction = /* @__PURE__ */ ((UpsertContactResponseAction2) => {
  UpsertContactResponseAction2["UPDATED"] = "UPDATED";
  UpsertContactResponseAction2["CREATED"] = "CREATED";
  return UpsertContactResponseAction2;
})(UpsertContactResponseAction || {});
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
  SortOrder2["ASC"] = "ASC";
  SortOrder2["DESC"] = "DESC";
  return SortOrder2;
})(SortOrder || {});
var SortType = /* @__PURE__ */ ((SortType2) => {
  SortType2["COUNT"] = "COUNT";
  SortType2["VALUE"] = "VALUE";
  return SortType2;
})(SortType || {});
var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
  SortDirection2["DESC"] = "DESC";
  SortDirection2["ASC"] = "ASC";
  return SortDirection2;
})(SortDirection || {});
var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
  MissingValues2["EXCLUDE"] = "EXCLUDE";
  MissingValues2["INCLUDE"] = "INCLUDE";
  return MissingValues2;
})(MissingValues || {});
var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
  ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
  ScalarType2["MIN"] = "MIN";
  ScalarType2["MAX"] = "MAX";
  return ScalarType2;
})(ScalarType || {});
var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
  NestedAggregationType2["VALUE"] = "VALUE";
  NestedAggregationType2["RANGE"] = "RANGE";
  NestedAggregationType2["SCALAR"] = "SCALAR";
  NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
  return NestedAggregationType2;
})(NestedAggregationType || {});
var Interval = /* @__PURE__ */ ((Interval2) => {
  Interval2["YEAR"] = "YEAR";
  Interval2["MONTH"] = "MONTH";
  Interval2["WEEK"] = "WEEK";
  Interval2["DAY"] = "DAY";
  Interval2["HOUR"] = "HOUR";
  Interval2["MINUTE"] = "MINUTE";
  Interval2["SECOND"] = "SECOND";
  return Interval2;
})(Interval || {});
var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
  AggregationType2["VALUE"] = "VALUE";
  AggregationType2["RANGE"] = "RANGE";
  AggregationType2["SCALAR"] = "SCALAR";
  AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
  AggregationType2["NESTED"] = "NESTED";
  return AggregationType2;
})(AggregationType || {});
var NameFormat = /* @__PURE__ */ ((NameFormat2) => {
  NameFormat2["BY_FIRST_NAME"] = "BY_FIRST_NAME";
  NameFormat2["BY_LAST_NAME"] = "BY_LAST_NAME";
  return NameFormat2;
})(NameFormat || {});
var Action = /* @__PURE__ */ ((Action2) => {
  Action2["UNKNOWN_ACTION"] = "UNKNOWN_ACTION";
  Action2["UPDATED"] = "UPDATED";
  Action2["CREATED"] = "CREATED";
  return Action2;
})(Action || {});
var QueryContactsByOffsetInternalRequestNameFormat = /* @__PURE__ */ ((QueryContactsByOffsetInternalRequestNameFormat2) => {
  QueryContactsByOffsetInternalRequestNameFormat2["BY_FIRST_NAME"] = "BY_FIRST_NAME";
  QueryContactsByOffsetInternalRequestNameFormat2["BY_LAST_NAME"] = "BY_LAST_NAME";
  return QueryContactsByOffsetInternalRequestNameFormat2;
})(QueryContactsByOffsetInternalRequestNameFormat || {});
var ImageUploadStatus = /* @__PURE__ */ ((ImageUploadStatus2) => {
  ImageUploadStatus2["IN_PROGRESS"] = "IN_PROGRESS";
  ImageUploadStatus2["SUCCESS"] = "SUCCESS";
  ImageUploadStatus2["FAILURE"] = "FAILURE";
  return ImageUploadStatus2;
})(ImageUploadStatus || {});

// src/contacts-v5-contact-contacts-v-5.meta.ts
function bulkUpdateContactSubscriptions2() {
  const payload = {};
  const getRequestOptions = bulkUpdateContactSubscriptions(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/bulk/contacts/subscriptions/update",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function createContact2() {
  const payload = {};
  const getRequestOptions = createContact(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/contacts",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function getContact2() {
  const payload = { contactId: ":contactId" };
  const getRequestOptions = getContact(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "GET",
    path: "/v5/contacts/{contactId}",
    pathParams: { contactId: "contactId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function updateContact2() {
  const payload = { contact: { id: ":contactId" } };
  const getRequestOptions = updateContact(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "PATCH",
    path: "/v5/contacts/{contact.id}",
    pathParams: { contactId: "contactId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function upsertContact2() {
  const payload = {};
  const getRequestOptions = upsertContact(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/contacts/upsert",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function updateContactTags2() {
  const payload = { contactId: ":contactId" };
  const getRequestOptions = updateContactTags(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/contacts/{contactId}/update-tags",
    pathParams: { contactId: "contactId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function mergeContacts2() {
  const payload = { targetContactId: ":targetContactId" };
  const getRequestOptions = mergeContacts(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/contacts/{targetContactId}/merge",
    pathParams: { targetContactId: "targetContactId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function deleteContact2() {
  const payload = { contactId: ":contactId" };
  const getRequestOptions = deleteContact(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "DELETE",
    path: "/v5/contacts/{contactId}",
    pathParams: { contactId: "contactId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function findMatchingContacts2() {
  const payload = {};
  const getRequestOptions = findMatchingContacts(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "GET",
    path: "/v5/contacts/find-matching",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function queryContacts2() {
  const payload = {};
  const getRequestOptions = queryContacts(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "GET",
    path: "/v5/contacts/query",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function searchContacts2() {
  const payload = {};
  const getRequestOptions = searchContacts(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "GET",
    path: "/v5/contacts/search",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function countContacts2() {
  const payload = {};
  const getRequestOptions = countContacts(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/contacts/count",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function generateContactImageUploadUrl2() {
  const payload = { contactId: ":contactId" };
  const getRequestOptions = generateContactImageUploadUrl(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/contacts/{contactId}/image/upload-url",
    pathParams: { contactId: "contactId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function addContactAdditionalEmail2() {
  const payload = { contactId: ":contactId" };
  const getRequestOptions = addContactAdditionalEmail(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/contacts/{contactId}/additional-emails",
    pathParams: { contactId: "contactId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function addContactAdditionalPhone2() {
  const payload = { contactId: ":contactId" };
  const getRequestOptions = addContactAdditionalPhone(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/contacts/{contactId}/additional-phones",
    pathParams: { contactId: "contactId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function addContactAddress2() {
  const payload = { contactId: ":contactId" };
  const getRequestOptions = addContactAddress(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/contacts/{contactId}/addresses",
    pathParams: { contactId: "contactId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function deleteContactAddress2() {
  const payload = { contactId: ":contactId", addressId: ":addressId" };
  const getRequestOptions = deleteContactAddress(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "DELETE",
    path: "/v5/contacts/{contactId}/addresses/{addressId}",
    pathParams: { contactId: "contactId", addressId: "addressId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function updateContactAddress2() {
  const payload = {
    contactId: ":contactId",
    address: { id: ":addressId" }
  };
  const getRequestOptions = updateContactAddress(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "PATCH",
    path: "/v5/contacts/{contactId}/addresses/{address.id}",
    pathParams: { contactId: "contactId", addressId: "addressId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function bulkCreateContacts2() {
  const payload = {};
  const getRequestOptions = bulkCreateContacts(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/bulk/contacts/create",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function bulkUpdateContacts2() {
  const payload = {};
  const getRequestOptions = bulkUpdateContacts(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/bulk/contacts/update",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function bulkUpdateContactTags2() {
  const payload = {};
  const getRequestOptions = bulkUpdateContactTags(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/bulk/contacts/update-tags",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function bulkUpdateContactTagsByFilter2() {
  const payload = {};
  const getRequestOptions = bulkUpdateContactTagsByFilter(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/bulk/contacts/update-tags-by-filter",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function bulkUpsertContacts2() {
  const payload = {};
  const getRequestOptions = bulkUpsertContacts(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/bulk/contacts/upsert",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function bulkDeleteContacts2() {
  const payload = {};
  const getRequestOptions = bulkDeleteContacts(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/bulk/contacts/delete",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function bulkDeleteContactsByFilter2() {
  const payload = {};
  const getRequestOptions = bulkDeleteContactsByFilter(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/bulk/contacts/delete-by-filter",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function removeContactFromTrashBin2() {
  const payload = { contactId: ":contactId" };
  const getRequestOptions = removeContactFromTrashBin(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "DELETE",
    path: "/v5/contacts/trash-bin/{contactId}",
    pathParams: { contactId: "contactId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function restoreContactFromTrashBin2() {
  const payload = { contactId: ":contactId" };
  const getRequestOptions = restoreContactFromTrashBin(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/contacts/trash-bin/{contactId}/restore",
    pathParams: { contactId: "contactId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function bulkRestoreContactsFromTrashBin2() {
  const payload = {};
  const getRequestOptions = bulkRestoreContactsFromTrashBin(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/bulk/contacts/trash-bin/restore",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function getDeletedContact2() {
  const payload = { contactId: ":contactId" };
  const getRequestOptions = getDeletedContact(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "GET",
    path: "/v5/contacts/trash-bin/{contactId}",
    pathParams: { contactId: "contactId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function listDeletedContacts2() {
  const payload = {};
  const getRequestOptions = listDeletedContacts(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "GET",
    path: "/v5/contacts/trash-bin",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function getContactImageUploadStatus2() {
  const payload = {
    contactId: ":contactId",
    imageUploadId: ":imageUploadId"
  };
  const getRequestOptions = getContactImageUploadStatus(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "GET",
    path: "/v5/contacts/{contactId}/image-upload/{imageUploadId}",
    pathParams: { contactId: "contactId", imageUploadId: "imageUploadId" },
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
function bulkUpdatePhoneCountryCodeByFilter2() {
  const payload = {};
  const getRequestOptions = bulkUpdatePhoneCountryCodeByFilter(payload);
  const getUrl = (context) => {
    const { url } = getRequestOptions(context);
    return url;
  };
  return {
    getUrl,
    httpMethod: "POST",
    path: "/v5/bulk/contacts/update-phone-country-code-by-filter",
    pathParams: {},
    __requestType: null,
    __originalRequestType: null,
    __responseType: null,
    __originalResponseType: null
  };
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  ActionOriginal,
  AddressTagOriginal,
  AggregationTypeOriginal,
  EmailDeliverabilityStatusOriginal,
  ImageUploadStatusOriginal,
  IntervalOriginal,
  MatchTypeOriginal,
  MemberStatusOriginal,
  MissingValuesOriginal,
  ModeOriginal,
  NameFormatOriginal,
  NestedAggregationTypeOriginal,
  PhoneDeliverabilityStatusOriginal,
  PhoneTagOriginal,
  PrivacyStatusOriginal,
  QueryContactsByOffsetInternalRequestNameFormatOriginal,
  RoleOriginal,
  ScalarTypeOriginal,
  SortDirectionOriginal,
  SortOrderOriginal,
  SortTypeOriginal,
  SubdivisionTypeOriginal,
  SubscriptionStatusOriginal,
  UpsertContactResponseActionOriginal,
  UpsertModeOriginal,
  V5SubscriptionStatusOriginal,
  WebhookIdentityTypeOriginal,
  addContactAdditionalEmail,
  addContactAdditionalPhone,
  addContactAddress,
  bulkCreateContacts,
  bulkDeleteContacts,
  bulkDeleteContactsByFilter,
  bulkRestoreContactsFromTrashBin,
  bulkUpdateContactSubscriptions,
  bulkUpdateContactTags,
  bulkUpdateContactTagsByFilter,
  bulkUpdateContacts,
  bulkUpdatePhoneCountryCodeByFilter,
  bulkUpsertContacts,
  countContacts,
  createContact,
  deleteContact,
  deleteContactAddress,
  findMatchingContacts,
  generateContactImageUploadUrl,
  getContact,
  getContactImageUploadStatus,
  getDeletedContact,
  listDeletedContacts,
  mergeContacts,
  queryContacts,
  removeContactFromTrashBin,
  restoreContactFromTrashBin,
  searchContacts,
  updateContact,
  updateContactAddress,
  updateContactTags,
  upsertContact
});
//# sourceMappingURL=meta.js.map