@wix/auto_sdk_members_members 1.0.113 → 1.0.115

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 (37) hide show
  1. package/build/cjs/index.d.ts +23 -69
  2. package/build/cjs/index.js +74 -2763
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +68 -62
  5. package/build/cjs/index.typings.js +24 -2713
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +64 -64
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.d.ts +4 -4
  10. package/build/es/index.d.mts +23 -69
  11. package/build/es/index.mjs +74 -2753
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +68 -62
  14. package/build/es/index.typings.mjs +24 -2703
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +64 -64
  17. package/build/es/meta.mjs.map +1 -1
  18. package/build/es/schemas.d.mts +4 -4
  19. package/build/internal/cjs/index.d.ts +23 -69
  20. package/build/internal/cjs/index.js +74 -2763
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +68 -62
  23. package/build/internal/cjs/index.typings.js +24 -2713
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +64 -64
  26. package/build/internal/cjs/meta.js.map +1 -1
  27. package/build/internal/cjs/schemas.d.ts +4 -4
  28. package/build/internal/es/index.d.mts +23 -69
  29. package/build/internal/es/index.mjs +74 -2753
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +68 -62
  32. package/build/internal/es/index.typings.mjs +24 -2703
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +64 -64
  35. package/build/internal/es/meta.mjs.map +1 -1
  36. package/build/internal/es/schemas.d.mts +4 -4
  37. package/package.json +2 -2
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
 
30
20
  // index.typings.ts
@@ -877,2613 +867,6 @@ function deleteMemberAddresses(payload) {
877
867
 
878
868
  // src/members-v1-member-members.universal.ts
879
869
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
880
-
881
- // src/members-v1-member-members.schemas.ts
882
- var z = __toESM(require("zod"));
883
- var UpdateCurrentMemberSlugRequest = z.object({
884
- slug: z.string().describe("New slug.").max(255)
885
- });
886
- var UpdateCurrentMemberSlugResponse = z.object({
887
- member: z.object({
888
- _id: z.string().describe("Member ID.").regex(
889
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
890
- "Must be a valid GUID"
891
- ).optional().nullable(),
892
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
893
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
894
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
895
- contactId: z.string().describe("Contact ID.").regex(
896
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
897
- "Must be a valid GUID"
898
- ).optional().nullable(),
899
- contact: z.object({
900
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
901
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
902
- phones: z.array(z.string()).optional(),
903
- emails: z.array(z.string()).optional(),
904
- addresses: z.array(
905
- z.intersection(
906
- z.object({
907
- _id: z.string().describe("Street address ID.").regex(
908
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
909
- "Must be a valid GUID"
910
- ).optional().nullable(),
911
- addressLine2: z.string().describe(
912
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
913
- ).optional().nullable(),
914
- city: z.string().describe("City name.").optional().nullable(),
915
- subdivision: z.string().describe(
916
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
917
- ).optional().nullable(),
918
- country: z.string().describe(
919
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
920
- ).optional().nullable(),
921
- postalCode: z.string().describe("Postal code.").optional().nullable()
922
- }),
923
- z.xor([
924
- z.object({
925
- streetAddress: z.never().optional(),
926
- addressLine: z.never().optional()
927
- }),
928
- z.object({
929
- addressLine: z.never().optional(),
930
- streetAddress: z.object({
931
- number: z.string().describe("Street number.").max(100).optional(),
932
- name: z.string().describe("Street name.").max(200).optional()
933
- }).describe(
934
- "Street address object, with number and name in separate fields."
935
- )
936
- }),
937
- z.object({
938
- streetAddress: z.never().optional(),
939
- addressLine: z.string().describe(
940
- "Main address line, usually street and number, as free text."
941
- ).max(200)
942
- })
943
- ])
944
- )
945
- ).optional(),
946
- birthdate: z.string().describe(
947
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
948
- ).max(100).optional().nullable(),
949
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
950
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
951
- customFields: z.record(
952
- z.string(),
953
- z.object({
954
- name: z.string().describe("Custom field name.").optional().nullable(),
955
- value: z.any().describe("Custom field value.").optional().nullable()
956
- })
957
- ).describe(
958
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
959
- ).optional()
960
- }).describe(
961
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
962
- ).optional(),
963
- profile: z.object({
964
- nickname: z.string().describe(
965
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
966
- ).optional().nullable(),
967
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
968
- photo: z.object({
969
- _id: z.string().describe(
970
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
971
- ).optional(),
972
- url: z.string().describe("Image URL.").optional(),
973
- height: z.number().int().describe("Original image width.").optional(),
974
- width: z.number().int().describe("Original image height.").optional(),
975
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
976
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
977
- }).describe("Member's profile photo.").optional(),
978
- cover: z.object({
979
- _id: z.string().describe(
980
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
981
- ).optional(),
982
- url: z.string().describe("Image URL.").optional(),
983
- height: z.number().int().describe("Original image width.").optional(),
984
- width: z.number().int().describe("Original image height.").optional(),
985
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
986
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
987
- }).describe(
988
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
989
- ).optional(),
990
- title: z.string().describe("Member title.").optional().nullable()
991
- }).describe("Profile display details.").optional(),
992
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
993
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
994
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
995
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
996
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
997
- }).describe("Updated member.").optional()
998
- });
999
- var UpdateMemberSlugRequest = z.object({
1000
- _id: z.string().describe("Member ID.").regex(
1001
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1002
- "Must be a valid GUID"
1003
- ),
1004
- slug: z.string().describe("New slug.").max(255)
1005
- });
1006
- var UpdateMemberSlugResponse = z.object({
1007
- member: z.object({
1008
- _id: z.string().describe("Member ID.").regex(
1009
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1010
- "Must be a valid GUID"
1011
- ).optional().nullable(),
1012
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
1013
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
1014
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
1015
- contactId: z.string().describe("Contact ID.").regex(
1016
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1017
- "Must be a valid GUID"
1018
- ).optional().nullable(),
1019
- contact: z.object({
1020
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
1021
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
1022
- phones: z.array(z.string()).optional(),
1023
- emails: z.array(z.string()).optional(),
1024
- addresses: z.array(
1025
- z.intersection(
1026
- z.object({
1027
- _id: z.string().describe("Street address ID.").regex(
1028
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1029
- "Must be a valid GUID"
1030
- ).optional().nullable(),
1031
- addressLine2: z.string().describe(
1032
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
1033
- ).optional().nullable(),
1034
- city: z.string().describe("City name.").optional().nullable(),
1035
- subdivision: z.string().describe(
1036
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
1037
- ).optional().nullable(),
1038
- country: z.string().describe(
1039
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
1040
- ).optional().nullable(),
1041
- postalCode: z.string().describe("Postal code.").optional().nullable()
1042
- }),
1043
- z.xor([
1044
- z.object({
1045
- streetAddress: z.never().optional(),
1046
- addressLine: z.never().optional()
1047
- }),
1048
- z.object({
1049
- addressLine: z.never().optional(),
1050
- streetAddress: z.object({
1051
- number: z.string().describe("Street number.").max(100).optional(),
1052
- name: z.string().describe("Street name.").max(200).optional()
1053
- }).describe(
1054
- "Street address object, with number and name in separate fields."
1055
- )
1056
- }),
1057
- z.object({
1058
- streetAddress: z.never().optional(),
1059
- addressLine: z.string().describe(
1060
- "Main address line, usually street and number, as free text."
1061
- ).max(200)
1062
- })
1063
- ])
1064
- )
1065
- ).optional(),
1066
- birthdate: z.string().describe(
1067
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
1068
- ).max(100).optional().nullable(),
1069
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
1070
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
1071
- customFields: z.record(
1072
- z.string(),
1073
- z.object({
1074
- name: z.string().describe("Custom field name.").optional().nullable(),
1075
- value: z.any().describe("Custom field value.").optional().nullable()
1076
- })
1077
- ).describe(
1078
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
1079
- ).optional()
1080
- }).describe(
1081
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
1082
- ).optional(),
1083
- profile: z.object({
1084
- nickname: z.string().describe(
1085
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
1086
- ).optional().nullable(),
1087
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
1088
- photo: z.object({
1089
- _id: z.string().describe(
1090
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
1091
- ).optional(),
1092
- url: z.string().describe("Image URL.").optional(),
1093
- height: z.number().int().describe("Original image width.").optional(),
1094
- width: z.number().int().describe("Original image height.").optional(),
1095
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
1096
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
1097
- }).describe("Member's profile photo.").optional(),
1098
- cover: z.object({
1099
- _id: z.string().describe(
1100
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
1101
- ).optional(),
1102
- url: z.string().describe("Image URL.").optional(),
1103
- height: z.number().int().describe("Original image width.").optional(),
1104
- width: z.number().int().describe("Original image height.").optional(),
1105
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
1106
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
1107
- }).describe(
1108
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
1109
- ).optional(),
1110
- title: z.string().describe("Member title.").optional().nullable()
1111
- }).describe("Profile display details.").optional(),
1112
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
1113
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
1114
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
1115
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
1116
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
1117
- }).describe("Updated member.").optional()
1118
- });
1119
- var JoinCommunityRequest = z.object({});
1120
- var JoinCommunityResponse = z.object({
1121
- member: z.object({
1122
- _id: z.string().describe("Member ID.").regex(
1123
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1124
- "Must be a valid GUID"
1125
- ).optional().nullable(),
1126
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
1127
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
1128
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
1129
- contactId: z.string().describe("Contact ID.").regex(
1130
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1131
- "Must be a valid GUID"
1132
- ).optional().nullable(),
1133
- contact: z.object({
1134
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
1135
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
1136
- phones: z.array(z.string()).optional(),
1137
- emails: z.array(z.string()).optional(),
1138
- addresses: z.array(
1139
- z.intersection(
1140
- z.object({
1141
- _id: z.string().describe("Street address ID.").regex(
1142
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1143
- "Must be a valid GUID"
1144
- ).optional().nullable(),
1145
- addressLine2: z.string().describe(
1146
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
1147
- ).optional().nullable(),
1148
- city: z.string().describe("City name.").optional().nullable(),
1149
- subdivision: z.string().describe(
1150
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
1151
- ).optional().nullable(),
1152
- country: z.string().describe(
1153
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
1154
- ).optional().nullable(),
1155
- postalCode: z.string().describe("Postal code.").optional().nullable()
1156
- }),
1157
- z.xor([
1158
- z.object({
1159
- streetAddress: z.never().optional(),
1160
- addressLine: z.never().optional()
1161
- }),
1162
- z.object({
1163
- addressLine: z.never().optional(),
1164
- streetAddress: z.object({
1165
- number: z.string().describe("Street number.").max(100).optional(),
1166
- name: z.string().describe("Street name.").max(200).optional()
1167
- }).describe(
1168
- "Street address object, with number and name in separate fields."
1169
- )
1170
- }),
1171
- z.object({
1172
- streetAddress: z.never().optional(),
1173
- addressLine: z.string().describe(
1174
- "Main address line, usually street and number, as free text."
1175
- ).max(200)
1176
- })
1177
- ])
1178
- )
1179
- ).optional(),
1180
- birthdate: z.string().describe(
1181
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
1182
- ).max(100).optional().nullable(),
1183
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
1184
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
1185
- customFields: z.record(
1186
- z.string(),
1187
- z.object({
1188
- name: z.string().describe("Custom field name.").optional().nullable(),
1189
- value: z.any().describe("Custom field value.").optional().nullable()
1190
- })
1191
- ).describe(
1192
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
1193
- ).optional()
1194
- }).describe(
1195
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
1196
- ).optional(),
1197
- profile: z.object({
1198
- nickname: z.string().describe(
1199
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
1200
- ).optional().nullable(),
1201
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
1202
- photo: z.object({
1203
- _id: z.string().describe(
1204
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
1205
- ).optional(),
1206
- url: z.string().describe("Image URL.").optional(),
1207
- height: z.number().int().describe("Original image width.").optional(),
1208
- width: z.number().int().describe("Original image height.").optional(),
1209
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
1210
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
1211
- }).describe("Member's profile photo.").optional(),
1212
- cover: z.object({
1213
- _id: z.string().describe(
1214
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
1215
- ).optional(),
1216
- url: z.string().describe("Image URL.").optional(),
1217
- height: z.number().int().describe("Original image width.").optional(),
1218
- width: z.number().int().describe("Original image height.").optional(),
1219
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
1220
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
1221
- }).describe(
1222
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
1223
- ).optional(),
1224
- title: z.string().describe("Member title.").optional().nullable()
1225
- }).describe("Profile display details.").optional(),
1226
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
1227
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
1228
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
1229
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
1230
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
1231
- }).describe("The updated member.").optional()
1232
- });
1233
- var LeaveCommunityRequest = z.object({});
1234
- var LeaveCommunityResponse = z.object({
1235
- member: z.object({
1236
- _id: z.string().describe("Member ID.").regex(
1237
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1238
- "Must be a valid GUID"
1239
- ).optional().nullable(),
1240
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
1241
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
1242
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
1243
- contactId: z.string().describe("Contact ID.").regex(
1244
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1245
- "Must be a valid GUID"
1246
- ).optional().nullable(),
1247
- contact: z.object({
1248
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
1249
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
1250
- phones: z.array(z.string()).optional(),
1251
- emails: z.array(z.string()).optional(),
1252
- addresses: z.array(
1253
- z.intersection(
1254
- z.object({
1255
- _id: z.string().describe("Street address ID.").regex(
1256
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1257
- "Must be a valid GUID"
1258
- ).optional().nullable(),
1259
- addressLine2: z.string().describe(
1260
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
1261
- ).optional().nullable(),
1262
- city: z.string().describe("City name.").optional().nullable(),
1263
- subdivision: z.string().describe(
1264
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
1265
- ).optional().nullable(),
1266
- country: z.string().describe(
1267
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
1268
- ).optional().nullable(),
1269
- postalCode: z.string().describe("Postal code.").optional().nullable()
1270
- }),
1271
- z.xor([
1272
- z.object({
1273
- streetAddress: z.never().optional(),
1274
- addressLine: z.never().optional()
1275
- }),
1276
- z.object({
1277
- addressLine: z.never().optional(),
1278
- streetAddress: z.object({
1279
- number: z.string().describe("Street number.").max(100).optional(),
1280
- name: z.string().describe("Street name.").max(200).optional()
1281
- }).describe(
1282
- "Street address object, with number and name in separate fields."
1283
- )
1284
- }),
1285
- z.object({
1286
- streetAddress: z.never().optional(),
1287
- addressLine: z.string().describe(
1288
- "Main address line, usually street and number, as free text."
1289
- ).max(200)
1290
- })
1291
- ])
1292
- )
1293
- ).optional(),
1294
- birthdate: z.string().describe(
1295
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
1296
- ).max(100).optional().nullable(),
1297
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
1298
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
1299
- customFields: z.record(
1300
- z.string(),
1301
- z.object({
1302
- name: z.string().describe("Custom field name.").optional().nullable(),
1303
- value: z.any().describe("Custom field value.").optional().nullable()
1304
- })
1305
- ).describe(
1306
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
1307
- ).optional()
1308
- }).describe(
1309
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
1310
- ).optional(),
1311
- profile: z.object({
1312
- nickname: z.string().describe(
1313
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
1314
- ).optional().nullable(),
1315
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
1316
- photo: z.object({
1317
- _id: z.string().describe(
1318
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
1319
- ).optional(),
1320
- url: z.string().describe("Image URL.").optional(),
1321
- height: z.number().int().describe("Original image width.").optional(),
1322
- width: z.number().int().describe("Original image height.").optional(),
1323
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
1324
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
1325
- }).describe("Member's profile photo.").optional(),
1326
- cover: z.object({
1327
- _id: z.string().describe(
1328
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
1329
- ).optional(),
1330
- url: z.string().describe("Image URL.").optional(),
1331
- height: z.number().int().describe("Original image width.").optional(),
1332
- width: z.number().int().describe("Original image height.").optional(),
1333
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
1334
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
1335
- }).describe(
1336
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
1337
- ).optional(),
1338
- title: z.string().describe("Member title.").optional().nullable()
1339
- }).describe("Profile display details.").optional(),
1340
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
1341
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
1342
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
1343
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
1344
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
1345
- }).describe("The updated member.").optional()
1346
- });
1347
- var GetCurrentMemberRequest = z.object({
1348
- options: z.object({
1349
- fieldsets: z.array(z.enum(["PUBLIC", "FULL", "EXTENDED"])).max(3).optional()
1350
- }).describe("Fieldset options.").optional()
1351
- });
1352
- var GetCurrentMemberResponse = z.object({
1353
- member: z.object({
1354
- _id: z.string().describe("Member ID.").regex(
1355
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1356
- "Must be a valid GUID"
1357
- ).optional().nullable(),
1358
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
1359
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
1360
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
1361
- contactId: z.string().describe("Contact ID.").regex(
1362
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1363
- "Must be a valid GUID"
1364
- ).optional().nullable(),
1365
- contact: z.object({
1366
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
1367
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
1368
- phones: z.array(z.string()).optional(),
1369
- emails: z.array(z.string()).optional(),
1370
- addresses: z.array(
1371
- z.intersection(
1372
- z.object({
1373
- _id: z.string().describe("Street address ID.").regex(
1374
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1375
- "Must be a valid GUID"
1376
- ).optional().nullable(),
1377
- addressLine2: z.string().describe(
1378
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
1379
- ).optional().nullable(),
1380
- city: z.string().describe("City name.").optional().nullable(),
1381
- subdivision: z.string().describe(
1382
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
1383
- ).optional().nullable(),
1384
- country: z.string().describe(
1385
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
1386
- ).optional().nullable(),
1387
- postalCode: z.string().describe("Postal code.").optional().nullable()
1388
- }),
1389
- z.xor([
1390
- z.object({
1391
- streetAddress: z.never().optional(),
1392
- addressLine: z.never().optional()
1393
- }),
1394
- z.object({
1395
- addressLine: z.never().optional(),
1396
- streetAddress: z.object({
1397
- number: z.string().describe("Street number.").max(100).optional(),
1398
- name: z.string().describe("Street name.").max(200).optional()
1399
- }).describe(
1400
- "Street address object, with number and name in separate fields."
1401
- )
1402
- }),
1403
- z.object({
1404
- streetAddress: z.never().optional(),
1405
- addressLine: z.string().describe(
1406
- "Main address line, usually street and number, as free text."
1407
- ).max(200)
1408
- })
1409
- ])
1410
- )
1411
- ).optional(),
1412
- birthdate: z.string().describe(
1413
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
1414
- ).max(100).optional().nullable(),
1415
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
1416
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
1417
- customFields: z.record(
1418
- z.string(),
1419
- z.object({
1420
- name: z.string().describe("Custom field name.").optional().nullable(),
1421
- value: z.any().describe("Custom field value.").optional().nullable()
1422
- })
1423
- ).describe(
1424
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
1425
- ).optional()
1426
- }).describe(
1427
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
1428
- ).optional(),
1429
- profile: z.object({
1430
- nickname: z.string().describe(
1431
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
1432
- ).optional().nullable(),
1433
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
1434
- photo: z.object({
1435
- _id: z.string().describe(
1436
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
1437
- ).optional(),
1438
- url: z.string().describe("Image URL.").optional(),
1439
- height: z.number().int().describe("Original image width.").optional(),
1440
- width: z.number().int().describe("Original image height.").optional(),
1441
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
1442
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
1443
- }).describe("Member's profile photo.").optional(),
1444
- cover: z.object({
1445
- _id: z.string().describe(
1446
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
1447
- ).optional(),
1448
- url: z.string().describe("Image URL.").optional(),
1449
- height: z.number().int().describe("Original image width.").optional(),
1450
- width: z.number().int().describe("Original image height.").optional(),
1451
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
1452
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
1453
- }).describe(
1454
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
1455
- ).optional(),
1456
- title: z.string().describe("Member title.").optional().nullable()
1457
- }).describe("Profile display details.").optional(),
1458
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
1459
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
1460
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
1461
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
1462
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
1463
- }).describe("The retrieved member.").optional()
1464
- });
1465
- var GetMemberRequest = z.object({
1466
- _id: z.string().describe("Member ID.").regex(
1467
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1468
- "Must be a valid GUID"
1469
- ),
1470
- options: z.object({
1471
- fieldsets: z.array(z.enum(["PUBLIC", "FULL", "EXTENDED"])).max(3).optional()
1472
- }).describe("Fieldset options.").optional()
1473
- });
1474
- var GetMemberResponse = z.object({
1475
- _id: z.string().describe("Member ID.").regex(
1476
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1477
- "Must be a valid GUID"
1478
- ).optional().nullable(),
1479
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
1480
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
1481
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
1482
- contactId: z.string().describe("Contact ID.").regex(
1483
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1484
- "Must be a valid GUID"
1485
- ).optional().nullable(),
1486
- contact: z.object({
1487
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
1488
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
1489
- phones: z.array(z.string()).optional(),
1490
- emails: z.array(z.string()).optional(),
1491
- addresses: z.array(
1492
- z.intersection(
1493
- z.object({
1494
- _id: z.string().describe("Street address ID.").regex(
1495
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1496
- "Must be a valid GUID"
1497
- ).optional().nullable(),
1498
- addressLine2: z.string().describe(
1499
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
1500
- ).optional().nullable(),
1501
- city: z.string().describe("City name.").optional().nullable(),
1502
- subdivision: z.string().describe(
1503
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
1504
- ).optional().nullable(),
1505
- country: z.string().describe(
1506
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
1507
- ).optional().nullable(),
1508
- postalCode: z.string().describe("Postal code.").optional().nullable()
1509
- }),
1510
- z.xor([
1511
- z.object({
1512
- streetAddress: z.never().optional(),
1513
- addressLine: z.never().optional()
1514
- }),
1515
- z.object({
1516
- addressLine: z.never().optional(),
1517
- streetAddress: z.object({
1518
- number: z.string().describe("Street number.").max(100).optional(),
1519
- name: z.string().describe("Street name.").max(200).optional()
1520
- }).describe(
1521
- "Street address object, with number and name in separate fields."
1522
- )
1523
- }),
1524
- z.object({
1525
- streetAddress: z.never().optional(),
1526
- addressLine: z.string().describe(
1527
- "Main address line, usually street and number, as free text."
1528
- ).max(200)
1529
- })
1530
- ])
1531
- )
1532
- ).optional(),
1533
- birthdate: z.string().describe(
1534
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
1535
- ).max(100).optional().nullable(),
1536
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
1537
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
1538
- customFields: z.record(
1539
- z.string(),
1540
- z.object({
1541
- name: z.string().describe("Custom field name.").optional().nullable(),
1542
- value: z.any().describe("Custom field value.").optional().nullable()
1543
- })
1544
- ).describe(
1545
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
1546
- ).optional()
1547
- }).describe(
1548
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
1549
- ).optional(),
1550
- profile: z.object({
1551
- nickname: z.string().describe(
1552
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
1553
- ).optional().nullable(),
1554
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
1555
- photo: z.object({
1556
- _id: z.string().describe(
1557
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
1558
- ).optional(),
1559
- url: z.string().describe("Image URL.").optional(),
1560
- height: z.number().int().describe("Original image width.").optional(),
1561
- width: z.number().int().describe("Original image height.").optional(),
1562
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
1563
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
1564
- }).describe("Member's profile photo.").optional(),
1565
- cover: z.object({
1566
- _id: z.string().describe(
1567
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
1568
- ).optional(),
1569
- url: z.string().describe("Image URL.").optional(),
1570
- height: z.number().int().describe("Original image width.").optional(),
1571
- width: z.number().int().describe("Original image height.").optional(),
1572
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
1573
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
1574
- }).describe(
1575
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
1576
- ).optional(),
1577
- title: z.string().describe("Member title.").optional().nullable()
1578
- }).describe("Profile display details.").optional(),
1579
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
1580
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
1581
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
1582
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
1583
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
1584
- });
1585
- var ListMembersRequest = z.object({
1586
- options: z.object({
1587
- paging: z.object({
1588
- limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
1589
- offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
1590
- }).optional(),
1591
- fieldsets: z.array(z.enum(["PUBLIC", "FULL", "EXTENDED"])).max(3).optional(),
1592
- sorting: z.array(
1593
- z.object({
1594
- fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
1595
- order: z.enum(["ASC", "DESC"]).optional()
1596
- })
1597
- ).optional()
1598
- }).describe("Options for paging, sorting, and specifying fields to return.").optional()
1599
- });
1600
- var ListMembersResponse = z.object({
1601
- members: z.array(
1602
- z.object({
1603
- _id: z.string().describe("Member ID.").regex(
1604
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1605
- "Must be a valid GUID"
1606
- ).optional().nullable(),
1607
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
1608
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
1609
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
1610
- contactId: z.string().describe("Contact ID.").regex(
1611
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1612
- "Must be a valid GUID"
1613
- ).optional().nullable(),
1614
- contact: z.object({
1615
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
1616
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
1617
- phones: z.array(z.string()).optional(),
1618
- emails: z.array(z.string()).optional(),
1619
- addresses: z.array(
1620
- z.intersection(
1621
- z.object({
1622
- _id: z.string().describe("Street address ID.").regex(
1623
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1624
- "Must be a valid GUID"
1625
- ).optional().nullable(),
1626
- addressLine2: z.string().describe(
1627
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
1628
- ).optional().nullable(),
1629
- city: z.string().describe("City name.").optional().nullable(),
1630
- subdivision: z.string().describe(
1631
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
1632
- ).optional().nullable(),
1633
- country: z.string().describe(
1634
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
1635
- ).optional().nullable(),
1636
- postalCode: z.string().describe("Postal code.").optional().nullable()
1637
- }),
1638
- z.xor([
1639
- z.object({
1640
- streetAddress: z.never().optional(),
1641
- addressLine: z.never().optional()
1642
- }),
1643
- z.object({
1644
- addressLine: z.never().optional(),
1645
- streetAddress: z.object({
1646
- number: z.string().describe("Street number.").max(100).optional(),
1647
- name: z.string().describe("Street name.").max(200).optional()
1648
- }).describe(
1649
- "Street address object, with number and name in separate fields."
1650
- )
1651
- }),
1652
- z.object({
1653
- streetAddress: z.never().optional(),
1654
- addressLine: z.string().describe(
1655
- "Main address line, usually street and number, as free text."
1656
- ).max(200)
1657
- })
1658
- ])
1659
- )
1660
- ).optional(),
1661
- birthdate: z.string().describe(
1662
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
1663
- ).max(100).optional().nullable(),
1664
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
1665
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
1666
- customFields: z.record(
1667
- z.string(),
1668
- z.object({
1669
- name: z.string().describe("Custom field name.").optional().nullable(),
1670
- value: z.any().describe("Custom field value.").optional().nullable()
1671
- })
1672
- ).describe(
1673
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
1674
- ).optional()
1675
- }).describe(
1676
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
1677
- ).optional(),
1678
- profile: z.object({
1679
- nickname: z.string().describe(
1680
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
1681
- ).optional().nullable(),
1682
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
1683
- photo: z.object({
1684
- _id: z.string().describe(
1685
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
1686
- ).optional(),
1687
- url: z.string().describe("Image URL.").optional(),
1688
- height: z.number().int().describe("Original image width.").optional(),
1689
- width: z.number().int().describe("Original image height.").optional(),
1690
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
1691
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
1692
- }).describe("Member's profile photo.").optional(),
1693
- cover: z.object({
1694
- _id: z.string().describe(
1695
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
1696
- ).optional(),
1697
- url: z.string().describe("Image URL.").optional(),
1698
- height: z.number().int().describe("Original image width.").optional(),
1699
- width: z.number().int().describe("Original image height.").optional(),
1700
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
1701
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
1702
- }).describe(
1703
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
1704
- ).optional(),
1705
- title: z.string().describe("Member title.").optional().nullable()
1706
- }).describe("Profile display details.").optional(),
1707
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
1708
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
1709
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
1710
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
1711
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
1712
- })
1713
- ).optional(),
1714
- metadata: z.object({
1715
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
1716
- offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
1717
- total: z.number().int().describe("Total number of items that match the query.").optional().nullable(),
1718
- tooManyToCount: z.boolean().describe(
1719
- "Flag that indicates the server failed to calculate the `total` field."
1720
- ).optional().nullable()
1721
- }).describe("Metadata for the paginated results.").optional()
1722
- });
1723
- var QueryMembersRequest = z.object({
1724
- query: z.object({
1725
- filter: z.object({
1726
- _id: z.object({
1727
- $eq: z.string(),
1728
- $exists: z.boolean(),
1729
- $gt: z.string(),
1730
- $gte: z.string(),
1731
- $hasAll: z.array(z.string()),
1732
- $hasSome: z.array(z.string()),
1733
- $in: z.array(z.string()),
1734
- $lt: z.string(),
1735
- $lte: z.string(),
1736
- $ne: z.string(),
1737
- $nin: z.array(z.string()),
1738
- $startsWith: z.string()
1739
- }).partial().strict().optional(),
1740
- "profile.nickname": z.object({
1741
- $eq: z.string(),
1742
- $exists: z.boolean(),
1743
- $gt: z.string(),
1744
- $gte: z.string(),
1745
- $hasAll: z.array(z.string()),
1746
- $hasSome: z.array(z.string()),
1747
- $in: z.array(z.string()),
1748
- $lt: z.string(),
1749
- $lte: z.string(),
1750
- $ne: z.string(),
1751
- $nin: z.array(z.string()),
1752
- $startsWith: z.string()
1753
- }).partial().strict().optional(),
1754
- "profile.slug": z.object({
1755
- $eq: z.string(),
1756
- $exists: z.boolean(),
1757
- $gt: z.string(),
1758
- $gte: z.string(),
1759
- $hasAll: z.array(z.string()),
1760
- $hasSome: z.array(z.string()),
1761
- $in: z.array(z.string()),
1762
- $lt: z.string(),
1763
- $lte: z.string(),
1764
- $ne: z.string(),
1765
- $nin: z.array(z.string()),
1766
- $startsWith: z.string()
1767
- }).partial().strict().optional(),
1768
- contactId: z.object({
1769
- $eq: z.string(),
1770
- $exists: z.boolean(),
1771
- $gt: z.string(),
1772
- $gte: z.string(),
1773
- $hasAll: z.array(z.string()),
1774
- $hasSome: z.array(z.string()),
1775
- $in: z.array(z.string()),
1776
- $lt: z.string(),
1777
- $lte: z.string(),
1778
- $ne: z.string(),
1779
- $nin: z.array(z.string()),
1780
- $startsWith: z.string()
1781
- }).partial().strict().optional(),
1782
- "contact.firstName": z.object({
1783
- $eq: z.string(),
1784
- $exists: z.boolean(),
1785
- $gt: z.string(),
1786
- $gte: z.string(),
1787
- $hasAll: z.array(z.string()),
1788
- $hasSome: z.array(z.string()),
1789
- $in: z.array(z.string()),
1790
- $lt: z.string(),
1791
- $lte: z.string(),
1792
- $ne: z.string(),
1793
- $nin: z.array(z.string()),
1794
- $startsWith: z.string()
1795
- }).partial().strict().optional(),
1796
- "contact.lastName": z.object({
1797
- $eq: z.string(),
1798
- $exists: z.boolean(),
1799
- $gt: z.string(),
1800
- $gte: z.string(),
1801
- $hasAll: z.array(z.string()),
1802
- $hasSome: z.array(z.string()),
1803
- $in: z.array(z.string()),
1804
- $lt: z.string(),
1805
- $lte: z.string(),
1806
- $ne: z.string(),
1807
- $nin: z.array(z.string()),
1808
- $startsWith: z.string()
1809
- }).partial().strict().optional(),
1810
- privacyStatus: z.object({
1811
- $eq: z.string(),
1812
- $exists: z.boolean(),
1813
- $gt: z.string(),
1814
- $gte: z.string(),
1815
- $hasAll: z.array(z.string()),
1816
- $hasSome: z.array(z.string()),
1817
- $in: z.array(z.string()),
1818
- $lt: z.string(),
1819
- $lte: z.string(),
1820
- $ne: z.string(),
1821
- $nin: z.array(z.string()),
1822
- $startsWith: z.string()
1823
- }).partial().strict().optional(),
1824
- loginEmail: z.object({
1825
- $eq: z.string(),
1826
- $exists: z.boolean(),
1827
- $gt: z.string(),
1828
- $gte: z.string(),
1829
- $hasAll: z.array(z.string()),
1830
- $hasSome: z.array(z.string()),
1831
- $in: z.array(z.string()),
1832
- $lt: z.string(),
1833
- $lte: z.string(),
1834
- $ne: z.string(),
1835
- $nin: z.array(z.string()),
1836
- $startsWith: z.string()
1837
- }).partial().strict().optional(),
1838
- status: z.object({
1839
- $eq: z.string(),
1840
- $exists: z.boolean(),
1841
- $gt: z.string(),
1842
- $gte: z.string(),
1843
- $hasAll: z.array(z.string()),
1844
- $hasSome: z.array(z.string()),
1845
- $in: z.array(z.string()),
1846
- $lt: z.string(),
1847
- $lte: z.string(),
1848
- $ne: z.string(),
1849
- $nin: z.array(z.string()),
1850
- $startsWith: z.string()
1851
- }).partial().strict().optional(),
1852
- $and: z.array(z.any()).optional(),
1853
- $or: z.array(z.any()).optional(),
1854
- $not: z.any().optional()
1855
- }).strict().optional(),
1856
- sort: z.array(z.object({})).optional()
1857
- }).catchall(z.any()).describe("Query options."),
1858
- options: z.object({
1859
- fieldsets: z.array(z.enum(["PUBLIC", "FULL", "EXTENDED"])).max(3).optional(),
1860
- search: z.object({
1861
- expression: z.string().describe("Search term or expression.").min(1).max(100).optional().nullable(),
1862
- fields: z.array(z.string()).max(4).optional()
1863
- }).describe("Plain text search.").optional()
1864
- }).describe("Query options.").optional()
1865
- });
1866
- var QueryMembersResponse = z.object({
1867
- members: z.array(
1868
- z.object({
1869
- _id: z.string().describe("Member ID.").regex(
1870
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1871
- "Must be a valid GUID"
1872
- ).optional().nullable(),
1873
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
1874
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
1875
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
1876
- contactId: z.string().describe("Contact ID.").regex(
1877
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1878
- "Must be a valid GUID"
1879
- ).optional().nullable(),
1880
- contact: z.object({
1881
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
1882
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
1883
- phones: z.array(z.string()).optional(),
1884
- emails: z.array(z.string()).optional(),
1885
- addresses: z.array(
1886
- z.intersection(
1887
- z.object({
1888
- _id: z.string().describe("Street address ID.").regex(
1889
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1890
- "Must be a valid GUID"
1891
- ).optional().nullable(),
1892
- addressLine2: z.string().describe(
1893
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
1894
- ).optional().nullable(),
1895
- city: z.string().describe("City name.").optional().nullable(),
1896
- subdivision: z.string().describe(
1897
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
1898
- ).optional().nullable(),
1899
- country: z.string().describe(
1900
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
1901
- ).optional().nullable(),
1902
- postalCode: z.string().describe("Postal code.").optional().nullable()
1903
- }),
1904
- z.xor([
1905
- z.object({
1906
- streetAddress: z.never().optional(),
1907
- addressLine: z.never().optional()
1908
- }),
1909
- z.object({
1910
- addressLine: z.never().optional(),
1911
- streetAddress: z.object({
1912
- number: z.string().describe("Street number.").max(100).optional(),
1913
- name: z.string().describe("Street name.").max(200).optional()
1914
- }).describe(
1915
- "Street address object, with number and name in separate fields."
1916
- )
1917
- }),
1918
- z.object({
1919
- streetAddress: z.never().optional(),
1920
- addressLine: z.string().describe(
1921
- "Main address line, usually street and number, as free text."
1922
- ).max(200)
1923
- })
1924
- ])
1925
- )
1926
- ).optional(),
1927
- birthdate: z.string().describe(
1928
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
1929
- ).max(100).optional().nullable(),
1930
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
1931
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
1932
- customFields: z.record(
1933
- z.string(),
1934
- z.object({
1935
- name: z.string().describe("Custom field name.").optional().nullable(),
1936
- value: z.any().describe("Custom field value.").optional().nullable()
1937
- })
1938
- ).describe(
1939
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
1940
- ).optional()
1941
- }).describe(
1942
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
1943
- ).optional(),
1944
- profile: z.object({
1945
- nickname: z.string().describe(
1946
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
1947
- ).optional().nullable(),
1948
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
1949
- photo: z.object({
1950
- _id: z.string().describe(
1951
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
1952
- ).optional(),
1953
- url: z.string().describe("Image URL.").optional(),
1954
- height: z.number().int().describe("Original image width.").optional(),
1955
- width: z.number().int().describe("Original image height.").optional(),
1956
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
1957
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
1958
- }).describe("Member's profile photo.").optional(),
1959
- cover: z.object({
1960
- _id: z.string().describe(
1961
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
1962
- ).optional(),
1963
- url: z.string().describe("Image URL.").optional(),
1964
- height: z.number().int().describe("Original image width.").optional(),
1965
- width: z.number().int().describe("Original image height.").optional(),
1966
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
1967
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
1968
- }).describe(
1969
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
1970
- ).optional(),
1971
- title: z.string().describe("Member title.").optional().nullable()
1972
- }).describe("Profile display details.").optional(),
1973
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
1974
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
1975
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
1976
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
1977
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
1978
- })
1979
- ).optional(),
1980
- metadata: z.object({
1981
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
1982
- offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
1983
- total: z.number().int().describe("Total number of items that match the query.").optional().nullable(),
1984
- tooManyToCount: z.boolean().describe(
1985
- "Flag that indicates the server failed to calculate the `total` field."
1986
- ).optional().nullable()
1987
- }).describe("Metadata for the paginated results.").optional()
1988
- });
1989
- var MuteMemberRequest = z.object({
1990
- _id: z.string().describe("ID of the member to mute.").regex(
1991
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1992
- "Must be a valid GUID"
1993
- )
1994
- });
1995
- var MuteMemberResponse = z.object({
1996
- member: z.object({
1997
- _id: z.string().describe("Member ID.").regex(
1998
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1999
- "Must be a valid GUID"
2000
- ).optional().nullable(),
2001
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
2002
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
2003
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
2004
- contactId: z.string().describe("Contact ID.").regex(
2005
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2006
- "Must be a valid GUID"
2007
- ).optional().nullable(),
2008
- contact: z.object({
2009
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
2010
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
2011
- phones: z.array(z.string()).optional(),
2012
- emails: z.array(z.string()).optional(),
2013
- addresses: z.array(
2014
- z.intersection(
2015
- z.object({
2016
- _id: z.string().describe("Street address ID.").regex(
2017
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2018
- "Must be a valid GUID"
2019
- ).optional().nullable(),
2020
- addressLine2: z.string().describe(
2021
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
2022
- ).optional().nullable(),
2023
- city: z.string().describe("City name.").optional().nullable(),
2024
- subdivision: z.string().describe(
2025
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
2026
- ).optional().nullable(),
2027
- country: z.string().describe(
2028
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
2029
- ).optional().nullable(),
2030
- postalCode: z.string().describe("Postal code.").optional().nullable()
2031
- }),
2032
- z.xor([
2033
- z.object({
2034
- streetAddress: z.never().optional(),
2035
- addressLine: z.never().optional()
2036
- }),
2037
- z.object({
2038
- addressLine: z.never().optional(),
2039
- streetAddress: z.object({
2040
- number: z.string().describe("Street number.").max(100).optional(),
2041
- name: z.string().describe("Street name.").max(200).optional()
2042
- }).describe(
2043
- "Street address object, with number and name in separate fields."
2044
- )
2045
- }),
2046
- z.object({
2047
- streetAddress: z.never().optional(),
2048
- addressLine: z.string().describe(
2049
- "Main address line, usually street and number, as free text."
2050
- ).max(200)
2051
- })
2052
- ])
2053
- )
2054
- ).optional(),
2055
- birthdate: z.string().describe(
2056
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
2057
- ).max(100).optional().nullable(),
2058
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
2059
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
2060
- customFields: z.record(
2061
- z.string(),
2062
- z.object({
2063
- name: z.string().describe("Custom field name.").optional().nullable(),
2064
- value: z.any().describe("Custom field value.").optional().nullable()
2065
- })
2066
- ).describe(
2067
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
2068
- ).optional()
2069
- }).describe(
2070
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
2071
- ).optional(),
2072
- profile: z.object({
2073
- nickname: z.string().describe(
2074
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
2075
- ).optional().nullable(),
2076
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
2077
- photo: z.object({
2078
- _id: z.string().describe(
2079
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2080
- ).optional(),
2081
- url: z.string().describe("Image URL.").optional(),
2082
- height: z.number().int().describe("Original image width.").optional(),
2083
- width: z.number().int().describe("Original image height.").optional(),
2084
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2085
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2086
- }).describe("Member's profile photo.").optional(),
2087
- cover: z.object({
2088
- _id: z.string().describe(
2089
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2090
- ).optional(),
2091
- url: z.string().describe("Image URL.").optional(),
2092
- height: z.number().int().describe("Original image width.").optional(),
2093
- width: z.number().int().describe("Original image height.").optional(),
2094
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2095
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2096
- }).describe(
2097
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
2098
- ).optional(),
2099
- title: z.string().describe("Member title.").optional().nullable()
2100
- }).describe("Profile display details.").optional(),
2101
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
2102
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
2103
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
2104
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
2105
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
2106
- }).describe("Muted member.").optional()
2107
- });
2108
- var UnmuteMemberRequest = z.object({
2109
- _id: z.string().describe("ID of the member to unmute.").regex(
2110
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2111
- "Must be a valid GUID"
2112
- )
2113
- });
2114
- var UnmuteMemberResponse = z.object({
2115
- member: z.object({
2116
- _id: z.string().describe("Member ID.").regex(
2117
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2118
- "Must be a valid GUID"
2119
- ).optional().nullable(),
2120
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
2121
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
2122
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
2123
- contactId: z.string().describe("Contact ID.").regex(
2124
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2125
- "Must be a valid GUID"
2126
- ).optional().nullable(),
2127
- contact: z.object({
2128
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
2129
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
2130
- phones: z.array(z.string()).optional(),
2131
- emails: z.array(z.string()).optional(),
2132
- addresses: z.array(
2133
- z.intersection(
2134
- z.object({
2135
- _id: z.string().describe("Street address ID.").regex(
2136
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2137
- "Must be a valid GUID"
2138
- ).optional().nullable(),
2139
- addressLine2: z.string().describe(
2140
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
2141
- ).optional().nullable(),
2142
- city: z.string().describe("City name.").optional().nullable(),
2143
- subdivision: z.string().describe(
2144
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
2145
- ).optional().nullable(),
2146
- country: z.string().describe(
2147
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
2148
- ).optional().nullable(),
2149
- postalCode: z.string().describe("Postal code.").optional().nullable()
2150
- }),
2151
- z.xor([
2152
- z.object({
2153
- streetAddress: z.never().optional(),
2154
- addressLine: z.never().optional()
2155
- }),
2156
- z.object({
2157
- addressLine: z.never().optional(),
2158
- streetAddress: z.object({
2159
- number: z.string().describe("Street number.").max(100).optional(),
2160
- name: z.string().describe("Street name.").max(200).optional()
2161
- }).describe(
2162
- "Street address object, with number and name in separate fields."
2163
- )
2164
- }),
2165
- z.object({
2166
- streetAddress: z.never().optional(),
2167
- addressLine: z.string().describe(
2168
- "Main address line, usually street and number, as free text."
2169
- ).max(200)
2170
- })
2171
- ])
2172
- )
2173
- ).optional(),
2174
- birthdate: z.string().describe(
2175
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
2176
- ).max(100).optional().nullable(),
2177
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
2178
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
2179
- customFields: z.record(
2180
- z.string(),
2181
- z.object({
2182
- name: z.string().describe("Custom field name.").optional().nullable(),
2183
- value: z.any().describe("Custom field value.").optional().nullable()
2184
- })
2185
- ).describe(
2186
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
2187
- ).optional()
2188
- }).describe(
2189
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
2190
- ).optional(),
2191
- profile: z.object({
2192
- nickname: z.string().describe(
2193
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
2194
- ).optional().nullable(),
2195
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
2196
- photo: z.object({
2197
- _id: z.string().describe(
2198
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2199
- ).optional(),
2200
- url: z.string().describe("Image URL.").optional(),
2201
- height: z.number().int().describe("Original image width.").optional(),
2202
- width: z.number().int().describe("Original image height.").optional(),
2203
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2204
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2205
- }).describe("Member's profile photo.").optional(),
2206
- cover: z.object({
2207
- _id: z.string().describe(
2208
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2209
- ).optional(),
2210
- url: z.string().describe("Image URL.").optional(),
2211
- height: z.number().int().describe("Original image width.").optional(),
2212
- width: z.number().int().describe("Original image height.").optional(),
2213
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2214
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2215
- }).describe(
2216
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
2217
- ).optional(),
2218
- title: z.string().describe("Member title.").optional().nullable()
2219
- }).describe("Profile display details.").optional(),
2220
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
2221
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
2222
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
2223
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
2224
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
2225
- }).describe("Unmuted member.").optional()
2226
- });
2227
- var ApproveMemberRequest = z.object({
2228
- _id: z.string().describe("ID of the member to approve.").regex(
2229
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2230
- "Must be a valid GUID"
2231
- )
2232
- });
2233
- var ApproveMemberResponse = z.object({
2234
- member: z.object({
2235
- _id: z.string().describe("Member ID.").regex(
2236
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2237
- "Must be a valid GUID"
2238
- ).optional().nullable(),
2239
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
2240
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
2241
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
2242
- contactId: z.string().describe("Contact ID.").regex(
2243
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2244
- "Must be a valid GUID"
2245
- ).optional().nullable(),
2246
- contact: z.object({
2247
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
2248
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
2249
- phones: z.array(z.string()).optional(),
2250
- emails: z.array(z.string()).optional(),
2251
- addresses: z.array(
2252
- z.intersection(
2253
- z.object({
2254
- _id: z.string().describe("Street address ID.").regex(
2255
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2256
- "Must be a valid GUID"
2257
- ).optional().nullable(),
2258
- addressLine2: z.string().describe(
2259
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
2260
- ).optional().nullable(),
2261
- city: z.string().describe("City name.").optional().nullable(),
2262
- subdivision: z.string().describe(
2263
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
2264
- ).optional().nullable(),
2265
- country: z.string().describe(
2266
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
2267
- ).optional().nullable(),
2268
- postalCode: z.string().describe("Postal code.").optional().nullable()
2269
- }),
2270
- z.xor([
2271
- z.object({
2272
- streetAddress: z.never().optional(),
2273
- addressLine: z.never().optional()
2274
- }),
2275
- z.object({
2276
- addressLine: z.never().optional(),
2277
- streetAddress: z.object({
2278
- number: z.string().describe("Street number.").max(100).optional(),
2279
- name: z.string().describe("Street name.").max(200).optional()
2280
- }).describe(
2281
- "Street address object, with number and name in separate fields."
2282
- )
2283
- }),
2284
- z.object({
2285
- streetAddress: z.never().optional(),
2286
- addressLine: z.string().describe(
2287
- "Main address line, usually street and number, as free text."
2288
- ).max(200)
2289
- })
2290
- ])
2291
- )
2292
- ).optional(),
2293
- birthdate: z.string().describe(
2294
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
2295
- ).max(100).optional().nullable(),
2296
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
2297
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
2298
- customFields: z.record(
2299
- z.string(),
2300
- z.object({
2301
- name: z.string().describe("Custom field name.").optional().nullable(),
2302
- value: z.any().describe("Custom field value.").optional().nullable()
2303
- })
2304
- ).describe(
2305
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
2306
- ).optional()
2307
- }).describe(
2308
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
2309
- ).optional(),
2310
- profile: z.object({
2311
- nickname: z.string().describe(
2312
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
2313
- ).optional().nullable(),
2314
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
2315
- photo: z.object({
2316
- _id: z.string().describe(
2317
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2318
- ).optional(),
2319
- url: z.string().describe("Image URL.").optional(),
2320
- height: z.number().int().describe("Original image width.").optional(),
2321
- width: z.number().int().describe("Original image height.").optional(),
2322
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2323
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2324
- }).describe("Member's profile photo.").optional(),
2325
- cover: z.object({
2326
- _id: z.string().describe(
2327
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2328
- ).optional(),
2329
- url: z.string().describe("Image URL.").optional(),
2330
- height: z.number().int().describe("Original image width.").optional(),
2331
- width: z.number().int().describe("Original image height.").optional(),
2332
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2333
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2334
- }).describe(
2335
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
2336
- ).optional(),
2337
- title: z.string().describe("Member title.").optional().nullable()
2338
- }).describe("Profile display details.").optional(),
2339
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
2340
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
2341
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
2342
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
2343
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
2344
- }).describe("Approved member.").optional()
2345
- });
2346
- var BlockMemberRequest = z.object({
2347
- _id: z.string().describe("ID of a member to block.").regex(
2348
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2349
- "Must be a valid GUID"
2350
- )
2351
- });
2352
- var BlockMemberResponse = z.object({
2353
- member: z.object({
2354
- _id: z.string().describe("Member ID.").regex(
2355
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2356
- "Must be a valid GUID"
2357
- ).optional().nullable(),
2358
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
2359
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
2360
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
2361
- contactId: z.string().describe("Contact ID.").regex(
2362
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2363
- "Must be a valid GUID"
2364
- ).optional().nullable(),
2365
- contact: z.object({
2366
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
2367
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
2368
- phones: z.array(z.string()).optional(),
2369
- emails: z.array(z.string()).optional(),
2370
- addresses: z.array(
2371
- z.intersection(
2372
- z.object({
2373
- _id: z.string().describe("Street address ID.").regex(
2374
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2375
- "Must be a valid GUID"
2376
- ).optional().nullable(),
2377
- addressLine2: z.string().describe(
2378
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
2379
- ).optional().nullable(),
2380
- city: z.string().describe("City name.").optional().nullable(),
2381
- subdivision: z.string().describe(
2382
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
2383
- ).optional().nullable(),
2384
- country: z.string().describe(
2385
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
2386
- ).optional().nullable(),
2387
- postalCode: z.string().describe("Postal code.").optional().nullable()
2388
- }),
2389
- z.xor([
2390
- z.object({
2391
- streetAddress: z.never().optional(),
2392
- addressLine: z.never().optional()
2393
- }),
2394
- z.object({
2395
- addressLine: z.never().optional(),
2396
- streetAddress: z.object({
2397
- number: z.string().describe("Street number.").max(100).optional(),
2398
- name: z.string().describe("Street name.").max(200).optional()
2399
- }).describe(
2400
- "Street address object, with number and name in separate fields."
2401
- )
2402
- }),
2403
- z.object({
2404
- streetAddress: z.never().optional(),
2405
- addressLine: z.string().describe(
2406
- "Main address line, usually street and number, as free text."
2407
- ).max(200)
2408
- })
2409
- ])
2410
- )
2411
- ).optional(),
2412
- birthdate: z.string().describe(
2413
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
2414
- ).max(100).optional().nullable(),
2415
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
2416
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
2417
- customFields: z.record(
2418
- z.string(),
2419
- z.object({
2420
- name: z.string().describe("Custom field name.").optional().nullable(),
2421
- value: z.any().describe("Custom field value.").optional().nullable()
2422
- })
2423
- ).describe(
2424
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
2425
- ).optional()
2426
- }).describe(
2427
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
2428
- ).optional(),
2429
- profile: z.object({
2430
- nickname: z.string().describe(
2431
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
2432
- ).optional().nullable(),
2433
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
2434
- photo: z.object({
2435
- _id: z.string().describe(
2436
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2437
- ).optional(),
2438
- url: z.string().describe("Image URL.").optional(),
2439
- height: z.number().int().describe("Original image width.").optional(),
2440
- width: z.number().int().describe("Original image height.").optional(),
2441
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2442
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2443
- }).describe("Member's profile photo.").optional(),
2444
- cover: z.object({
2445
- _id: z.string().describe(
2446
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2447
- ).optional(),
2448
- url: z.string().describe("Image URL.").optional(),
2449
- height: z.number().int().describe("Original image width.").optional(),
2450
- width: z.number().int().describe("Original image height.").optional(),
2451
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2452
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2453
- }).describe(
2454
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
2455
- ).optional(),
2456
- title: z.string().describe("Member title.").optional().nullable()
2457
- }).describe("Profile display details.").optional(),
2458
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
2459
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
2460
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
2461
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
2462
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
2463
- }).describe("Blocked member.").optional()
2464
- });
2465
- var DisconnectMemberRequest = z.object({
2466
- _id: z.string().describe("ID of a member to disconnect.").regex(
2467
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2468
- "Must be a valid GUID"
2469
- )
2470
- });
2471
- var DisconnectMemberResponse = z.object({
2472
- member: z.object({
2473
- _id: z.string().describe("Member ID.").regex(
2474
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2475
- "Must be a valid GUID"
2476
- ).optional().nullable(),
2477
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
2478
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
2479
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
2480
- contactId: z.string().describe("Contact ID.").regex(
2481
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2482
- "Must be a valid GUID"
2483
- ).optional().nullable(),
2484
- contact: z.object({
2485
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
2486
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
2487
- phones: z.array(z.string()).optional(),
2488
- emails: z.array(z.string()).optional(),
2489
- addresses: z.array(
2490
- z.intersection(
2491
- z.object({
2492
- _id: z.string().describe("Street address ID.").regex(
2493
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2494
- "Must be a valid GUID"
2495
- ).optional().nullable(),
2496
- addressLine2: z.string().describe(
2497
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
2498
- ).optional().nullable(),
2499
- city: z.string().describe("City name.").optional().nullable(),
2500
- subdivision: z.string().describe(
2501
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
2502
- ).optional().nullable(),
2503
- country: z.string().describe(
2504
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
2505
- ).optional().nullable(),
2506
- postalCode: z.string().describe("Postal code.").optional().nullable()
2507
- }),
2508
- z.xor([
2509
- z.object({
2510
- streetAddress: z.never().optional(),
2511
- addressLine: z.never().optional()
2512
- }),
2513
- z.object({
2514
- addressLine: z.never().optional(),
2515
- streetAddress: z.object({
2516
- number: z.string().describe("Street number.").max(100).optional(),
2517
- name: z.string().describe("Street name.").max(200).optional()
2518
- }).describe(
2519
- "Street address object, with number and name in separate fields."
2520
- )
2521
- }),
2522
- z.object({
2523
- streetAddress: z.never().optional(),
2524
- addressLine: z.string().describe(
2525
- "Main address line, usually street and number, as free text."
2526
- ).max(200)
2527
- })
2528
- ])
2529
- )
2530
- ).optional(),
2531
- birthdate: z.string().describe(
2532
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
2533
- ).max(100).optional().nullable(),
2534
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
2535
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
2536
- customFields: z.record(
2537
- z.string(),
2538
- z.object({
2539
- name: z.string().describe("Custom field name.").optional().nullable(),
2540
- value: z.any().describe("Custom field value.").optional().nullable()
2541
- })
2542
- ).describe(
2543
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
2544
- ).optional()
2545
- }).describe(
2546
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
2547
- ).optional(),
2548
- profile: z.object({
2549
- nickname: z.string().describe(
2550
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
2551
- ).optional().nullable(),
2552
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
2553
- photo: z.object({
2554
- _id: z.string().describe(
2555
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2556
- ).optional(),
2557
- url: z.string().describe("Image URL.").optional(),
2558
- height: z.number().int().describe("Original image width.").optional(),
2559
- width: z.number().int().describe("Original image height.").optional(),
2560
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2561
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2562
- }).describe("Member's profile photo.").optional(),
2563
- cover: z.object({
2564
- _id: z.string().describe(
2565
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2566
- ).optional(),
2567
- url: z.string().describe("Image URL.").optional(),
2568
- height: z.number().int().describe("Original image width.").optional(),
2569
- width: z.number().int().describe("Original image height.").optional(),
2570
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2571
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2572
- }).describe(
2573
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
2574
- ).optional(),
2575
- title: z.string().describe("Member title.").optional().nullable()
2576
- }).describe("Profile display details.").optional(),
2577
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
2578
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
2579
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
2580
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
2581
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
2582
- }).describe("Disconnected member.").optional()
2583
- });
2584
- var DeleteMemberRequest = z.object({
2585
- _id: z.string().describe("ID of a member to delete.").regex(
2586
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2587
- "Must be a valid GUID"
2588
- )
2589
- });
2590
- var DeleteMemberResponse = z.object({});
2591
- var DeleteMyMemberRequest = z.object({
2592
- options: z.object({
2593
- contentAssigneeId: z.string().describe("ID of a member receiving the deleted member's content.").regex(
2594
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2595
- "Must be a valid GUID"
2596
- ).optional().nullable()
2597
- }).optional()
2598
- });
2599
- var DeleteMyMemberResponse = z.object({});
2600
- var BulkDeleteMembersRequest = z.object({
2601
- memberIds: z.array(z.string()).min(1).max(100)
2602
- });
2603
- var BulkDeleteMembersResponse = z.object({
2604
- results: z.array(
2605
- z.object({
2606
- itemMetadata: z.object({
2607
- _id: z.string().describe(
2608
- "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
2609
- ).max(255).optional().nullable(),
2610
- originalIndex: z.number().int().describe(
2611
- "Index of the item within the request array. Allows for correlation between request and response items."
2612
- ).optional(),
2613
- success: z.boolean().describe(
2614
- "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
2615
- ).optional(),
2616
- error: z.object({
2617
- code: z.string().describe("Error code.").optional(),
2618
- description: z.string().describe("Description of the error.").optional(),
2619
- data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
2620
- }).describe("Details about the error in case of failure.").optional()
2621
- }).optional()
2622
- })
2623
- ).optional(),
2624
- bulkActionMetadata: z.object({
2625
- totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
2626
- totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
2627
- undetailedFailures: z.number().int().describe(
2628
- "Number of failures without details because detailed failure threshold was exceeded."
2629
- ).optional()
2630
- }).describe("Bulk action result metadata.").optional()
2631
- });
2632
- var BulkDeleteMembersByFilterRequest = z.object({
2633
- filter: z.any().describe(
2634
- "Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more details."
2635
- ),
2636
- options: z.object({
2637
- contentAssigneeId: z.string().describe("ID of a member receiving the deleted member's content.").regex(
2638
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2639
- "Must be a valid GUID"
2640
- ).optional().nullable(),
2641
- search: z.object({
2642
- expression: z.string().describe("Search term or expression.").min(1).max(100).optional().nullable(),
2643
- fields: z.array(z.string()).max(4).optional()
2644
- }).describe("Plain text search.").optional()
2645
- }).optional()
2646
- });
2647
- var BulkDeleteMembersByFilterResponse = z.object({
2648
- jobId: z.string().describe(
2649
- "Job ID.\nSpecify this ID when calling [Get Async Job](https://dev.wix.com/docs/rest/business-management/async-job/introduction) to retrieve job details and metadata."
2650
- ).optional()
2651
- });
2652
- var BulkApproveMembersRequest = z.object({
2653
- filter: z.any().describe(
2654
- "Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more details."
2655
- )
2656
- });
2657
- var BulkApproveMembersResponse = z.object({
2658
- jobId: z.string().describe(
2659
- "Job ID.\nSpecify this ID when calling [Get Async Job](https://dev.wix.com/docs/rest/business-management/async-job/introduction) to retrieve job details and metadata."
2660
- ).optional()
2661
- });
2662
- var BulkBlockMembersRequest = z.object({
2663
- filter: z.any().describe(
2664
- "Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more details."
2665
- )
2666
- });
2667
- var BulkBlockMembersResponse = z.object({
2668
- jobId: z.string().describe(
2669
- "Job ID.\nSpecify this ID when calling [Get Async Job](https://dev.wix.com/docs/rest/business-management/async-job/introduction) to retrieve job details and metadata."
2670
- ).optional()
2671
- });
2672
- var CreateMemberRequest = z.object({
2673
- options: z.object({
2674
- member: z.object({
2675
- _id: z.string().describe("Member ID.").regex(
2676
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2677
- "Must be a valid GUID"
2678
- ).optional().nullable(),
2679
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
2680
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
2681
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).optional(),
2682
- contactId: z.string().describe("Contact ID.").regex(
2683
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2684
- "Must be a valid GUID"
2685
- ).optional().nullable(),
2686
- contact: z.object({
2687
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
2688
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
2689
- phones: z.array(z.string()).optional(),
2690
- emails: z.array(z.string()).optional(),
2691
- addresses: z.array(
2692
- z.intersection(
2693
- z.object({
2694
- _id: z.string().describe("Street address ID.").regex(
2695
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2696
- "Must be a valid GUID"
2697
- ).optional().nullable(),
2698
- addressLine2: z.string().describe(
2699
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
2700
- ).optional().nullable(),
2701
- city: z.string().describe("City name.").optional().nullable(),
2702
- subdivision: z.string().describe(
2703
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
2704
- ).optional().nullable(),
2705
- country: z.string().describe(
2706
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
2707
- ).optional().nullable(),
2708
- postalCode: z.string().describe("Postal code.").optional().nullable()
2709
- }),
2710
- z.xor([
2711
- z.object({
2712
- streetAddress: z.never().optional(),
2713
- addressLine: z.never().optional()
2714
- }),
2715
- z.object({
2716
- addressLine: z.never().optional(),
2717
- streetAddress: z.object({
2718
- number: z.string().describe("Street number.").max(100).optional(),
2719
- name: z.string().describe("Street name.").max(200).optional()
2720
- }).describe(
2721
- "Street address object, with number and name in separate fields."
2722
- )
2723
- }),
2724
- z.object({
2725
- streetAddress: z.never().optional(),
2726
- addressLine: z.string().describe(
2727
- "Main address line, usually street and number, as free text."
2728
- ).max(200)
2729
- })
2730
- ])
2731
- )
2732
- ).optional(),
2733
- birthdate: z.string().describe(
2734
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
2735
- ).max(100).optional().nullable(),
2736
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
2737
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
2738
- customFields: z.record(
2739
- z.string(),
2740
- z.object({
2741
- name: z.string().describe("Custom field name.").optional().nullable(),
2742
- value: z.any().describe("Custom field value.").optional().nullable()
2743
- })
2744
- ).describe(
2745
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
2746
- ).optional()
2747
- }).describe(
2748
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
2749
- ).optional(),
2750
- profile: z.object({
2751
- nickname: z.string().describe(
2752
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
2753
- ).optional().nullable(),
2754
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
2755
- photo: z.object({
2756
- _id: z.string().describe(
2757
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2758
- ).optional(),
2759
- url: z.string().describe("Image URL.").optional(),
2760
- height: z.number().int().describe("Original image width.").optional(),
2761
- width: z.number().int().describe("Original image height.").optional(),
2762
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2763
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2764
- }).describe("Member's profile photo.").optional(),
2765
- cover: z.object({
2766
- _id: z.string().describe(
2767
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2768
- ).optional(),
2769
- url: z.string().describe("Image URL.").optional(),
2770
- height: z.number().int().describe("Original image width.").optional(),
2771
- width: z.number().int().describe("Original image height.").optional(),
2772
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2773
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2774
- }).describe(
2775
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
2776
- ).optional(),
2777
- title: z.string().describe("Member title.").optional().nullable()
2778
- }).describe("Profile display details.").optional(),
2779
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).optional(),
2780
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).optional(),
2781
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
2782
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
2783
- lastLoginDate: z.date().describe(
2784
- "Date and time when the member last logged in to the site."
2785
- ).optional().nullable()
2786
- }).describe("Member to create.").optional()
2787
- }).optional()
2788
- });
2789
- var CreateMemberResponse = z.object({
2790
- _id: z.string().describe("Member ID.").regex(
2791
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2792
- "Must be a valid GUID"
2793
- ).optional().nullable(),
2794
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
2795
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
2796
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
2797
- contactId: z.string().describe("Contact ID.").regex(
2798
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2799
- "Must be a valid GUID"
2800
- ).optional().nullable(),
2801
- contact: z.object({
2802
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
2803
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
2804
- phones: z.array(z.string()).optional(),
2805
- emails: z.array(z.string()).optional(),
2806
- addresses: z.array(
2807
- z.intersection(
2808
- z.object({
2809
- _id: z.string().describe("Street address ID.").regex(
2810
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2811
- "Must be a valid GUID"
2812
- ).optional().nullable(),
2813
- addressLine2: z.string().describe(
2814
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
2815
- ).optional().nullable(),
2816
- city: z.string().describe("City name.").optional().nullable(),
2817
- subdivision: z.string().describe(
2818
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
2819
- ).optional().nullable(),
2820
- country: z.string().describe(
2821
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
2822
- ).optional().nullable(),
2823
- postalCode: z.string().describe("Postal code.").optional().nullable()
2824
- }),
2825
- z.xor([
2826
- z.object({
2827
- streetAddress: z.never().optional(),
2828
- addressLine: z.never().optional()
2829
- }),
2830
- z.object({
2831
- addressLine: z.never().optional(),
2832
- streetAddress: z.object({
2833
- number: z.string().describe("Street number.").max(100).optional(),
2834
- name: z.string().describe("Street name.").max(200).optional()
2835
- }).describe(
2836
- "Street address object, with number and name in separate fields."
2837
- )
2838
- }),
2839
- z.object({
2840
- streetAddress: z.never().optional(),
2841
- addressLine: z.string().describe(
2842
- "Main address line, usually street and number, as free text."
2843
- ).max(200)
2844
- })
2845
- ])
2846
- )
2847
- ).optional(),
2848
- birthdate: z.string().describe(
2849
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
2850
- ).max(100).optional().nullable(),
2851
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
2852
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
2853
- customFields: z.record(
2854
- z.string(),
2855
- z.object({
2856
- name: z.string().describe("Custom field name.").optional().nullable(),
2857
- value: z.any().describe("Custom field value.").optional().nullable()
2858
- })
2859
- ).describe(
2860
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
2861
- ).optional()
2862
- }).describe(
2863
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
2864
- ).optional(),
2865
- profile: z.object({
2866
- nickname: z.string().describe(
2867
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
2868
- ).optional().nullable(),
2869
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
2870
- photo: z.object({
2871
- _id: z.string().describe(
2872
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2873
- ).optional(),
2874
- url: z.string().describe("Image URL.").optional(),
2875
- height: z.number().int().describe("Original image width.").optional(),
2876
- width: z.number().int().describe("Original image height.").optional(),
2877
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2878
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2879
- }).describe("Member's profile photo.").optional(),
2880
- cover: z.object({
2881
- _id: z.string().describe(
2882
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2883
- ).optional(),
2884
- url: z.string().describe("Image URL.").optional(),
2885
- height: z.number().int().describe("Original image width.").optional(),
2886
- width: z.number().int().describe("Original image height.").optional(),
2887
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2888
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2889
- }).describe(
2890
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
2891
- ).optional(),
2892
- title: z.string().describe("Member title.").optional().nullable()
2893
- }).describe("Profile display details.").optional(),
2894
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
2895
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
2896
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
2897
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
2898
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
2899
- });
2900
- var UpdateMemberRequest = z.object({
2901
- _id: z.string().describe("Member ID.").regex(
2902
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2903
- "Must be a valid GUID"
2904
- ),
2905
- member: z.object({
2906
- _id: z.string().describe("Member ID.").regex(
2907
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2908
- "Must be a valid GUID"
2909
- ).optional().nullable(),
2910
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
2911
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
2912
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).optional(),
2913
- contactId: z.string().describe("Contact ID.").regex(
2914
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2915
- "Must be a valid GUID"
2916
- ).optional().nullable(),
2917
- contact: z.object({
2918
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
2919
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
2920
- phones: z.array(z.string()).optional(),
2921
- emails: z.array(z.string()).optional(),
2922
- addresses: z.array(
2923
- z.intersection(
2924
- z.object({
2925
- _id: z.string().describe("Street address ID.").regex(
2926
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
2927
- "Must be a valid GUID"
2928
- ).optional().nullable(),
2929
- addressLine2: z.string().describe(
2930
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
2931
- ).optional().nullable(),
2932
- city: z.string().describe("City name.").optional().nullable(),
2933
- subdivision: z.string().describe(
2934
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
2935
- ).optional().nullable(),
2936
- country: z.string().describe(
2937
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
2938
- ).optional().nullable(),
2939
- postalCode: z.string().describe("Postal code.").optional().nullable()
2940
- }),
2941
- z.xor([
2942
- z.object({
2943
- streetAddress: z.never().optional(),
2944
- addressLine: z.never().optional()
2945
- }),
2946
- z.object({
2947
- addressLine: z.never().optional(),
2948
- streetAddress: z.object({
2949
- number: z.string().describe("Street number.").max(100).optional(),
2950
- name: z.string().describe("Street name.").max(200).optional()
2951
- }).describe(
2952
- "Street address object, with number and name in separate fields."
2953
- )
2954
- }),
2955
- z.object({
2956
- streetAddress: z.never().optional(),
2957
- addressLine: z.string().describe(
2958
- "Main address line, usually street and number, as free text."
2959
- ).max(200)
2960
- })
2961
- ])
2962
- )
2963
- ).optional(),
2964
- birthdate: z.string().describe(
2965
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
2966
- ).max(100).optional().nullable(),
2967
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
2968
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
2969
- customFields: z.record(
2970
- z.string(),
2971
- z.object({
2972
- name: z.string().describe("Custom field name.").optional().nullable(),
2973
- value: z.any().describe("Custom field value.").optional().nullable()
2974
- })
2975
- ).describe(
2976
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
2977
- ).optional()
2978
- }).describe(
2979
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
2980
- ).optional(),
2981
- profile: z.object({
2982
- nickname: z.string().describe(
2983
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
2984
- ).optional().nullable(),
2985
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
2986
- photo: z.object({
2987
- _id: z.string().describe(
2988
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2989
- ).optional(),
2990
- url: z.string().describe("Image URL.").optional(),
2991
- height: z.number().int().describe("Original image width.").optional(),
2992
- width: z.number().int().describe("Original image height.").optional(),
2993
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
2994
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
2995
- }).describe("Member's profile photo.").optional(),
2996
- cover: z.object({
2997
- _id: z.string().describe(
2998
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
2999
- ).optional(),
3000
- url: z.string().describe("Image URL.").optional(),
3001
- height: z.number().int().describe("Original image width.").optional(),
3002
- width: z.number().int().describe("Original image height.").optional(),
3003
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
3004
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
3005
- }).describe(
3006
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
3007
- ).optional(),
3008
- title: z.string().describe("Member title.").optional().nullable()
3009
- }).describe("Profile display details.").optional(),
3010
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).optional(),
3011
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).optional(),
3012
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
3013
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
3014
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
3015
- }).describe("Member info to update.")
3016
- });
3017
- var UpdateMemberResponse = z.object({
3018
- _id: z.string().describe("Member ID.").regex(
3019
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3020
- "Must be a valid GUID"
3021
- ).optional().nullable(),
3022
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
3023
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
3024
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
3025
- contactId: z.string().describe("Contact ID.").regex(
3026
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3027
- "Must be a valid GUID"
3028
- ).optional().nullable(),
3029
- contact: z.object({
3030
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
3031
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
3032
- phones: z.array(z.string()).optional(),
3033
- emails: z.array(z.string()).optional(),
3034
- addresses: z.array(
3035
- z.intersection(
3036
- z.object({
3037
- _id: z.string().describe("Street address ID.").regex(
3038
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3039
- "Must be a valid GUID"
3040
- ).optional().nullable(),
3041
- addressLine2: z.string().describe(
3042
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
3043
- ).optional().nullable(),
3044
- city: z.string().describe("City name.").optional().nullable(),
3045
- subdivision: z.string().describe(
3046
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
3047
- ).optional().nullable(),
3048
- country: z.string().describe(
3049
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
3050
- ).optional().nullable(),
3051
- postalCode: z.string().describe("Postal code.").optional().nullable()
3052
- }),
3053
- z.xor([
3054
- z.object({
3055
- streetAddress: z.never().optional(),
3056
- addressLine: z.never().optional()
3057
- }),
3058
- z.object({
3059
- addressLine: z.never().optional(),
3060
- streetAddress: z.object({
3061
- number: z.string().describe("Street number.").max(100).optional(),
3062
- name: z.string().describe("Street name.").max(200).optional()
3063
- }).describe(
3064
- "Street address object, with number and name in separate fields."
3065
- )
3066
- }),
3067
- z.object({
3068
- streetAddress: z.never().optional(),
3069
- addressLine: z.string().describe(
3070
- "Main address line, usually street and number, as free text."
3071
- ).max(200)
3072
- })
3073
- ])
3074
- )
3075
- ).optional(),
3076
- birthdate: z.string().describe(
3077
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
3078
- ).max(100).optional().nullable(),
3079
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
3080
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
3081
- customFields: z.record(
3082
- z.string(),
3083
- z.object({
3084
- name: z.string().describe("Custom field name.").optional().nullable(),
3085
- value: z.any().describe("Custom field value.").optional().nullable()
3086
- })
3087
- ).describe(
3088
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
3089
- ).optional()
3090
- }).describe(
3091
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
3092
- ).optional(),
3093
- profile: z.object({
3094
- nickname: z.string().describe(
3095
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
3096
- ).optional().nullable(),
3097
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
3098
- photo: z.object({
3099
- _id: z.string().describe(
3100
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
3101
- ).optional(),
3102
- url: z.string().describe("Image URL.").optional(),
3103
- height: z.number().int().describe("Original image width.").optional(),
3104
- width: z.number().int().describe("Original image height.").optional(),
3105
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
3106
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
3107
- }).describe("Member's profile photo.").optional(),
3108
- cover: z.object({
3109
- _id: z.string().describe(
3110
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
3111
- ).optional(),
3112
- url: z.string().describe("Image URL.").optional(),
3113
- height: z.number().int().describe("Original image width.").optional(),
3114
- width: z.number().int().describe("Original image height.").optional(),
3115
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
3116
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
3117
- }).describe(
3118
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
3119
- ).optional(),
3120
- title: z.string().describe("Member title.").optional().nullable()
3121
- }).describe("Profile display details.").optional(),
3122
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
3123
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
3124
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
3125
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
3126
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
3127
- });
3128
- var DeleteMemberPhonesRequest = z.object({
3129
- _id: z.string().describe("ID of the member whose phone numbers will be deleted.").regex(
3130
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3131
- "Must be a valid GUID"
3132
- )
3133
- });
3134
- var DeleteMemberPhonesResponse = z.object({
3135
- member: z.object({
3136
- _id: z.string().describe("Member ID.").regex(
3137
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3138
- "Must be a valid GUID"
3139
- ).optional().nullable(),
3140
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
3141
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
3142
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
3143
- contactId: z.string().describe("Contact ID.").regex(
3144
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3145
- "Must be a valid GUID"
3146
- ).optional().nullable(),
3147
- contact: z.object({
3148
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
3149
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
3150
- phones: z.array(z.string()).optional(),
3151
- emails: z.array(z.string()).optional(),
3152
- addresses: z.array(
3153
- z.intersection(
3154
- z.object({
3155
- _id: z.string().describe("Street address ID.").regex(
3156
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3157
- "Must be a valid GUID"
3158
- ).optional().nullable(),
3159
- addressLine2: z.string().describe(
3160
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
3161
- ).optional().nullable(),
3162
- city: z.string().describe("City name.").optional().nullable(),
3163
- subdivision: z.string().describe(
3164
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
3165
- ).optional().nullable(),
3166
- country: z.string().describe(
3167
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
3168
- ).optional().nullable(),
3169
- postalCode: z.string().describe("Postal code.").optional().nullable()
3170
- }),
3171
- z.xor([
3172
- z.object({
3173
- streetAddress: z.never().optional(),
3174
- addressLine: z.never().optional()
3175
- }),
3176
- z.object({
3177
- addressLine: z.never().optional(),
3178
- streetAddress: z.object({
3179
- number: z.string().describe("Street number.").max(100).optional(),
3180
- name: z.string().describe("Street name.").max(200).optional()
3181
- }).describe(
3182
- "Street address object, with number and name in separate fields."
3183
- )
3184
- }),
3185
- z.object({
3186
- streetAddress: z.never().optional(),
3187
- addressLine: z.string().describe(
3188
- "Main address line, usually street and number, as free text."
3189
- ).max(200)
3190
- })
3191
- ])
3192
- )
3193
- ).optional(),
3194
- birthdate: z.string().describe(
3195
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
3196
- ).max(100).optional().nullable(),
3197
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
3198
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
3199
- customFields: z.record(
3200
- z.string(),
3201
- z.object({
3202
- name: z.string().describe("Custom field name.").optional().nullable(),
3203
- value: z.any().describe("Custom field value.").optional().nullable()
3204
- })
3205
- ).describe(
3206
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
3207
- ).optional()
3208
- }).describe(
3209
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
3210
- ).optional(),
3211
- profile: z.object({
3212
- nickname: z.string().describe(
3213
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
3214
- ).optional().nullable(),
3215
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
3216
- photo: z.object({
3217
- _id: z.string().describe(
3218
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
3219
- ).optional(),
3220
- url: z.string().describe("Image URL.").optional(),
3221
- height: z.number().int().describe("Original image width.").optional(),
3222
- width: z.number().int().describe("Original image height.").optional(),
3223
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
3224
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
3225
- }).describe("Member's profile photo.").optional(),
3226
- cover: z.object({
3227
- _id: z.string().describe(
3228
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
3229
- ).optional(),
3230
- url: z.string().describe("Image URL.").optional(),
3231
- height: z.number().int().describe("Original image width.").optional(),
3232
- width: z.number().int().describe("Original image height.").optional(),
3233
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
3234
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
3235
- }).describe(
3236
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
3237
- ).optional(),
3238
- title: z.string().describe("Member title.").optional().nullable()
3239
- }).describe("Profile display details.").optional(),
3240
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
3241
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
3242
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
3243
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
3244
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
3245
- }).describe("Updated member.").optional()
3246
- });
3247
- var DeleteMemberEmailsRequest = z.object({
3248
- _id: z.string().describe("ID of the member whose email addresses will be deleted.").regex(
3249
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3250
- "Must be a valid GUID"
3251
- )
3252
- });
3253
- var DeleteMemberEmailsResponse = z.object({
3254
- member: z.object({
3255
- _id: z.string().describe("Member ID.").regex(
3256
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3257
- "Must be a valid GUID"
3258
- ).optional().nullable(),
3259
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
3260
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
3261
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
3262
- contactId: z.string().describe("Contact ID.").regex(
3263
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3264
- "Must be a valid GUID"
3265
- ).optional().nullable(),
3266
- contact: z.object({
3267
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
3268
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
3269
- phones: z.array(z.string()).optional(),
3270
- emails: z.array(z.string()).optional(),
3271
- addresses: z.array(
3272
- z.intersection(
3273
- z.object({
3274
- _id: z.string().describe("Street address ID.").regex(
3275
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3276
- "Must be a valid GUID"
3277
- ).optional().nullable(),
3278
- addressLine2: z.string().describe(
3279
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
3280
- ).optional().nullable(),
3281
- city: z.string().describe("City name.").optional().nullable(),
3282
- subdivision: z.string().describe(
3283
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
3284
- ).optional().nullable(),
3285
- country: z.string().describe(
3286
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
3287
- ).optional().nullable(),
3288
- postalCode: z.string().describe("Postal code.").optional().nullable()
3289
- }),
3290
- z.xor([
3291
- z.object({
3292
- streetAddress: z.never().optional(),
3293
- addressLine: z.never().optional()
3294
- }),
3295
- z.object({
3296
- addressLine: z.never().optional(),
3297
- streetAddress: z.object({
3298
- number: z.string().describe("Street number.").max(100).optional(),
3299
- name: z.string().describe("Street name.").max(200).optional()
3300
- }).describe(
3301
- "Street address object, with number and name in separate fields."
3302
- )
3303
- }),
3304
- z.object({
3305
- streetAddress: z.never().optional(),
3306
- addressLine: z.string().describe(
3307
- "Main address line, usually street and number, as free text."
3308
- ).max(200)
3309
- })
3310
- ])
3311
- )
3312
- ).optional(),
3313
- birthdate: z.string().describe(
3314
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
3315
- ).max(100).optional().nullable(),
3316
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
3317
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
3318
- customFields: z.record(
3319
- z.string(),
3320
- z.object({
3321
- name: z.string().describe("Custom field name.").optional().nullable(),
3322
- value: z.any().describe("Custom field value.").optional().nullable()
3323
- })
3324
- ).describe(
3325
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
3326
- ).optional()
3327
- }).describe(
3328
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
3329
- ).optional(),
3330
- profile: z.object({
3331
- nickname: z.string().describe(
3332
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
3333
- ).optional().nullable(),
3334
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
3335
- photo: z.object({
3336
- _id: z.string().describe(
3337
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
3338
- ).optional(),
3339
- url: z.string().describe("Image URL.").optional(),
3340
- height: z.number().int().describe("Original image width.").optional(),
3341
- width: z.number().int().describe("Original image height.").optional(),
3342
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
3343
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
3344
- }).describe("Member's profile photo.").optional(),
3345
- cover: z.object({
3346
- _id: z.string().describe(
3347
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
3348
- ).optional(),
3349
- url: z.string().describe("Image URL.").optional(),
3350
- height: z.number().int().describe("Original image width.").optional(),
3351
- width: z.number().int().describe("Original image height.").optional(),
3352
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
3353
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
3354
- }).describe(
3355
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
3356
- ).optional(),
3357
- title: z.string().describe("Member title.").optional().nullable()
3358
- }).describe("Profile display details.").optional(),
3359
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
3360
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
3361
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
3362
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
3363
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
3364
- }).describe("Updated member.").optional()
3365
- });
3366
- var DeleteMemberAddressesRequest = z.object({
3367
- _id: z.string().describe("ID of the member whose street addresses will be deleted.").regex(
3368
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3369
- "Must be a valid GUID"
3370
- )
3371
- });
3372
- var DeleteMemberAddressesResponse = z.object({
3373
- member: z.object({
3374
- _id: z.string().describe("Member ID.").regex(
3375
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3376
- "Must be a valid GUID"
3377
- ).optional().nullable(),
3378
- loginEmail: z.string().describe("Email used by a member to log in to the site.").email().optional().nullable(),
3379
- loginEmailVerified: z.boolean().describe("Whether the email used by a member has been verified.").optional().nullable(),
3380
- status: z.enum(["UNKNOWN", "PENDING", "APPROVED", "BLOCKED", "OFFLINE"]).describe("Member site access status.").optional(),
3381
- contactId: z.string().describe("Contact ID.").regex(
3382
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3383
- "Must be a valid GUID"
3384
- ).optional().nullable(),
3385
- contact: z.object({
3386
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
3387
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
3388
- phones: z.array(z.string()).optional(),
3389
- emails: z.array(z.string()).optional(),
3390
- addresses: z.array(
3391
- z.intersection(
3392
- z.object({
3393
- _id: z.string().describe("Street address ID.").regex(
3394
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
3395
- "Must be a valid GUID"
3396
- ).optional().nullable(),
3397
- addressLine2: z.string().describe(
3398
- "Free text providing more detailed address information,\nsuch as apartment, suite, or floor."
3399
- ).optional().nullable(),
3400
- city: z.string().describe("City name.").optional().nullable(),
3401
- subdivision: z.string().describe(
3402
- "Code for a subdivision (such as state, prefecture, or province) in an\n[ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
3403
- ).optional().nullable(),
3404
- country: z.string().describe(
3405
- "2-letter country code in an\n[ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
3406
- ).optional().nullable(),
3407
- postalCode: z.string().describe("Postal code.").optional().nullable()
3408
- }),
3409
- z.xor([
3410
- z.object({
3411
- streetAddress: z.never().optional(),
3412
- addressLine: z.never().optional()
3413
- }),
3414
- z.object({
3415
- addressLine: z.never().optional(),
3416
- streetAddress: z.object({
3417
- number: z.string().describe("Street number.").max(100).optional(),
3418
- name: z.string().describe("Street name.").max(200).optional()
3419
- }).describe(
3420
- "Street address object, with number and name in separate fields."
3421
- )
3422
- }),
3423
- z.object({
3424
- streetAddress: z.never().optional(),
3425
- addressLine: z.string().describe(
3426
- "Main address line, usually street and number, as free text."
3427
- ).max(200)
3428
- })
3429
- ])
3430
- )
3431
- ).optional(),
3432
- birthdate: z.string().describe(
3433
- 'Contact\'s birthdate, formatted as `"YYYY-MM-DD"`.\n\nExample: `"2020-03-15"` for March 15, 2020.'
3434
- ).max(100).optional().nullable(),
3435
- company: z.string().describe("Contact's company name.").max(100).optional().nullable(),
3436
- jobTitle: z.string().describe("Contact's job title.").max(100).optional().nullable(),
3437
- customFields: z.record(
3438
- z.string(),
3439
- z.object({
3440
- name: z.string().describe("Custom field name.").optional().nullable(),
3441
- value: z.any().describe("Custom field value.").optional().nullable()
3442
- })
3443
- ).describe(
3444
- "Custom fields,\nwhere each key is the field key,\nand each value is the field's value for the member."
3445
- ).optional()
3446
- }).describe(
3447
- "Member's contact information. Contact information is stored in the\n[Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).\n\nThe full set of contact data can be accessed and managed with the\n[Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction)."
3448
- ).optional(),
3449
- profile: z.object({
3450
- nickname: z.string().describe(
3451
- "Name that identifies the member to other members.\nDisplayed on the member's profile page\nand interactions in the forum or blog."
3452
- ).optional().nullable(),
3453
- slug: z.string().describe("Slug that determines the member's profile page URL.").optional().nullable(),
3454
- photo: z.object({
3455
- _id: z.string().describe(
3456
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
3457
- ).optional(),
3458
- url: z.string().describe("Image URL.").optional(),
3459
- height: z.number().int().describe("Original image width.").optional(),
3460
- width: z.number().int().describe("Original image height.").optional(),
3461
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
3462
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
3463
- }).describe("Member's profile photo.").optional(),
3464
- cover: z.object({
3465
- _id: z.string().describe(
3466
- "Wix Media image ID,\nset when the member selects an image from Wix Media."
3467
- ).optional(),
3468
- url: z.string().describe("Image URL.").optional(),
3469
- height: z.number().int().describe("Original image width.").optional(),
3470
- width: z.number().int().describe("Original image height.").optional(),
3471
- offsetX: z.number().int().describe("X-axis offset.\n\nDefault: `0`.").optional().nullable(),
3472
- offsetY: z.number().int().describe("Y-axis offset.\n\nDefault: `0`.").optional().nullable()
3473
- }).describe(
3474
- "Member's cover photo,\nused as a background picture in a member's profile page.\n\nCover positioning can be altered with `cover.offsetX` and `cover.offsetY`.\nWhen left empty, the values default to `0`."
3475
- ).optional(),
3476
- title: z.string().describe("Member title.").optional().nullable()
3477
- }).describe("Profile display details.").optional(),
3478
- privacyStatus: z.enum(["UNKNOWN", "PRIVATE", "PUBLIC"]).describe("Member privacy status.").optional(),
3479
- activityStatus: z.enum(["UNKNOWN", "ACTIVE", "MUTED"]).describe("Member activity status.").optional(),
3480
- _createdDate: z.date().describe("Date and time when the member was created.").optional().nullable(),
3481
- _updatedDate: z.date().describe("Date and time when the member was updated.").optional().nullable(),
3482
- lastLoginDate: z.date().describe("Date and time when the member last logged in to the site.").optional().nullable()
3483
- }).describe("Updated member.").optional()
3484
- });
3485
-
3486
- // src/members-v1-member-members.universal.ts
3487
870
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
3488
871
  var Status = /* @__PURE__ */ ((Status2) => {
3489
872
  Status2["UNKNOWN"] = "UNKNOWN";
@@ -3588,10 +971,7 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3588
971
  return WebhookIdentityType2;
3589
972
  })(WebhookIdentityType || {});
3590
973
  async function updateCurrentMemberSlug(slug) {
3591
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
3592
- if (validateRequestSchema) {
3593
- UpdateCurrentMemberSlugRequest.parse({ slug });
3594
- }
974
+ const { httpClient, sideEffects } = arguments[1];
3595
975
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ slug });
3596
976
  const reqOpts = updateMySlug(payload);
3597
977
  sideEffects?.onSiteCall?.();
@@ -3614,10 +994,7 @@ async function updateCurrentMemberSlug(slug) {
3614
994
  }
3615
995
  }
3616
996
  async function updateMemberSlug2(_id, slug) {
3617
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
3618
- if (validateRequestSchema) {
3619
- UpdateMemberSlugRequest.parse({ _id, slug });
3620
- }
997
+ const { httpClient, sideEffects } = arguments[2];
3621
998
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
3622
999
  id: _id,
3623
1000
  slug
@@ -3643,10 +1020,7 @@ async function updateMemberSlug2(_id, slug) {
3643
1020
  }
3644
1021
  }
3645
1022
  async function joinCommunity2() {
3646
- const { httpClient, sideEffects, validateRequestSchema } = arguments[0];
3647
- if (validateRequestSchema) {
3648
- JoinCommunityRequest.parse({});
3649
- }
1023
+ const { httpClient, sideEffects } = arguments[0];
3650
1024
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
3651
1025
  const reqOpts = joinCommunity(payload);
3652
1026
  sideEffects?.onSiteCall?.();
@@ -3669,10 +1043,7 @@ async function joinCommunity2() {
3669
1043
  }
3670
1044
  }
3671
1045
  async function leaveCommunity2() {
3672
- const { httpClient, sideEffects, validateRequestSchema } = arguments[0];
3673
- if (validateRequestSchema) {
3674
- LeaveCommunityRequest.parse({});
3675
- }
1046
+ const { httpClient, sideEffects } = arguments[0];
3676
1047
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
3677
1048
  const reqOpts = leaveCommunity(payload);
3678
1049
  sideEffects?.onSiteCall?.();
@@ -3695,10 +1066,7 @@ async function leaveCommunity2() {
3695
1066
  }
3696
1067
  }
3697
1068
  async function getCurrentMember(options) {
3698
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
3699
- if (validateRequestSchema) {
3700
- GetCurrentMemberRequest.parse({ options });
3701
- }
1069
+ const { httpClient, sideEffects } = arguments[1];
3702
1070
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
3703
1071
  fieldsets: options?.fieldsets
3704
1072
  });
@@ -3723,10 +1091,7 @@ async function getCurrentMember(options) {
3723
1091
  }
3724
1092
  }
3725
1093
  async function getMember2(_id, options) {
3726
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
3727
- if (validateRequestSchema) {
3728
- GetMemberRequest.parse({ _id, options });
3729
- }
1094
+ const { httpClient, sideEffects } = arguments[2];
3730
1095
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
3731
1096
  id: _id,
3732
1097
  fieldsets: options?.fieldsets
@@ -3752,10 +1117,7 @@ async function getMember2(_id, options) {
3752
1117
  }
3753
1118
  }
3754
1119
  async function listMembers2(options) {
3755
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
3756
- if (validateRequestSchema) {
3757
- ListMembersRequest.parse({ options });
3758
- }
1120
+ const { httpClient, sideEffects } = arguments[1];
3759
1121
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
3760
1122
  paging: options?.paging,
3761
1123
  fieldsets: options?.fieldsets,
@@ -3832,10 +1194,7 @@ function queryMembers2(options) {
3832
1194
  });
3833
1195
  }
3834
1196
  async function typedQueryMembers(query, options) {
3835
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
3836
- if (validateRequestSchema) {
3837
- QueryMembersRequest.parse({ query, options });
3838
- }
1197
+ const { httpClient, sideEffects } = arguments[2];
3839
1198
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
3840
1199
  query,
3841
1200
  ...options
@@ -3866,10 +1225,7 @@ var utils = {
3866
1225
  }
3867
1226
  };
3868
1227
  async function muteMember2(_id) {
3869
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
3870
- if (validateRequestSchema) {
3871
- MuteMemberRequest.parse({ _id });
3872
- }
1228
+ const { httpClient, sideEffects } = arguments[1];
3873
1229
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
3874
1230
  const reqOpts = muteMember(payload);
3875
1231
  sideEffects?.onSiteCall?.();
@@ -3892,10 +1248,7 @@ async function muteMember2(_id) {
3892
1248
  }
3893
1249
  }
3894
1250
  async function unmuteMember2(_id) {
3895
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
3896
- if (validateRequestSchema) {
3897
- UnmuteMemberRequest.parse({ _id });
3898
- }
1251
+ const { httpClient, sideEffects } = arguments[1];
3899
1252
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
3900
1253
  const reqOpts = unmuteMember(payload);
3901
1254
  sideEffects?.onSiteCall?.();
@@ -3918,10 +1271,7 @@ async function unmuteMember2(_id) {
3918
1271
  }
3919
1272
  }
3920
1273
  async function approveMember2(_id) {
3921
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
3922
- if (validateRequestSchema) {
3923
- ApproveMemberRequest.parse({ _id });
3924
- }
1274
+ const { httpClient, sideEffects } = arguments[1];
3925
1275
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
3926
1276
  const reqOpts = approveMember(payload);
3927
1277
  sideEffects?.onSiteCall?.();
@@ -3944,10 +1294,7 @@ async function approveMember2(_id) {
3944
1294
  }
3945
1295
  }
3946
1296
  async function blockMember2(_id) {
3947
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
3948
- if (validateRequestSchema) {
3949
- BlockMemberRequest.parse({ _id });
3950
- }
1297
+ const { httpClient, sideEffects } = arguments[1];
3951
1298
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
3952
1299
  const reqOpts = blockMember(payload);
3953
1300
  sideEffects?.onSiteCall?.();
@@ -3970,10 +1317,7 @@ async function blockMember2(_id) {
3970
1317
  }
3971
1318
  }
3972
1319
  async function disconnectMember2(_id) {
3973
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
3974
- if (validateRequestSchema) {
3975
- DisconnectMemberRequest.parse({ _id });
3976
- }
1320
+ const { httpClient, sideEffects } = arguments[1];
3977
1321
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
3978
1322
  const reqOpts = disconnectMember(payload);
3979
1323
  sideEffects?.onSiteCall?.();
@@ -3996,10 +1340,7 @@ async function disconnectMember2(_id) {
3996
1340
  }
3997
1341
  }
3998
1342
  async function deleteMember2(_id) {
3999
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
4000
- if (validateRequestSchema) {
4001
- DeleteMemberRequest.parse({ _id });
4002
- }
1343
+ const { httpClient, sideEffects } = arguments[1];
4003
1344
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
4004
1345
  const reqOpts = deleteMember(payload);
4005
1346
  sideEffects?.onSiteCall?.();
@@ -4022,10 +1363,7 @@ async function deleteMember2(_id) {
4022
1363
  }
4023
1364
  }
4024
1365
  async function deleteMyMember2(options) {
4025
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
4026
- if (validateRequestSchema) {
4027
- DeleteMyMemberRequest.parse({ options });
4028
- }
1366
+ const { httpClient, sideEffects } = arguments[1];
4029
1367
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
4030
1368
  contentAssigneeId: options?.contentAssigneeId
4031
1369
  });
@@ -4052,10 +1390,7 @@ async function deleteMyMember2(options) {
4052
1390
  }
4053
1391
  }
4054
1392
  async function bulkDeleteMembers2(memberIds) {
4055
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
4056
- if (validateRequestSchema) {
4057
- BulkDeleteMembersRequest.parse({ memberIds });
4058
- }
1393
+ const { httpClient, sideEffects } = arguments[1];
4059
1394
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
4060
1395
  memberIds
4061
1396
  });
@@ -4080,10 +1415,7 @@ async function bulkDeleteMembers2(memberIds) {
4080
1415
  }
4081
1416
  }
4082
1417
  async function bulkDeleteMembersByFilter2(filter, options) {
4083
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
4084
- if (validateRequestSchema) {
4085
- BulkDeleteMembersByFilterRequest.parse({ filter, options });
4086
- }
1418
+ const { httpClient, sideEffects } = arguments[2];
4087
1419
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
4088
1420
  filter,
4089
1421
  contentAssigneeId: options?.contentAssigneeId,
@@ -4114,10 +1446,7 @@ async function bulkDeleteMembersByFilter2(filter, options) {
4114
1446
  }
4115
1447
  }
4116
1448
  async function bulkApproveMembers2(filter) {
4117
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
4118
- if (validateRequestSchema) {
4119
- BulkApproveMembersRequest.parse({ filter });
4120
- }
1449
+ const { httpClient, sideEffects } = arguments[1];
4121
1450
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ filter });
4122
1451
  const reqOpts = bulkApproveMembers(payload);
4123
1452
  sideEffects?.onSiteCall?.();
@@ -4140,10 +1469,7 @@ async function bulkApproveMembers2(filter) {
4140
1469
  }
4141
1470
  }
4142
1471
  async function bulkBlockMembers2(filter) {
4143
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
4144
- if (validateRequestSchema) {
4145
- BulkBlockMembersRequest.parse({ filter });
4146
- }
1472
+ const { httpClient, sideEffects } = arguments[1];
4147
1473
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ filter });
4148
1474
  const reqOpts = bulkBlockMembers(payload);
4149
1475
  sideEffects?.onSiteCall?.();
@@ -4166,10 +1492,7 @@ async function bulkBlockMembers2(filter) {
4166
1492
  }
4167
1493
  }
4168
1494
  async function createMember2(options) {
4169
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
4170
- if (validateRequestSchema) {
4171
- CreateMemberRequest.parse({ options });
4172
- }
1495
+ const { httpClient, sideEffects } = arguments[1];
4173
1496
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
4174
1497
  member: options?.member
4175
1498
  });
@@ -4194,10 +1517,7 @@ async function createMember2(options) {
4194
1517
  }
4195
1518
  }
4196
1519
  async function updateMember2(_id, member) {
4197
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
4198
- if (validateRequestSchema) {
4199
- UpdateMemberRequest.parse({ _id, member });
4200
- }
1520
+ const { httpClient, sideEffects } = arguments[2];
4201
1521
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
4202
1522
  member: { ...member, id: _id }
4203
1523
  });
@@ -4222,10 +1542,7 @@ async function updateMember2(_id, member) {
4222
1542
  }
4223
1543
  }
4224
1544
  async function deleteMemberPhones2(_id) {
4225
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
4226
- if (validateRequestSchema) {
4227
- DeleteMemberPhonesRequest.parse({ _id });
4228
- }
1545
+ const { httpClient, sideEffects } = arguments[1];
4229
1546
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
4230
1547
  const reqOpts = deleteMemberPhones(payload);
4231
1548
  sideEffects?.onSiteCall?.();
@@ -4248,10 +1565,7 @@ async function deleteMemberPhones2(_id) {
4248
1565
  }
4249
1566
  }
4250
1567
  async function deleteMemberEmails2(_id) {
4251
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
4252
- if (validateRequestSchema) {
4253
- DeleteMemberEmailsRequest.parse({ _id });
4254
- }
1568
+ const { httpClient, sideEffects } = arguments[1];
4255
1569
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
4256
1570
  const reqOpts = deleteMemberEmails(payload);
4257
1571
  sideEffects?.onSiteCall?.();
@@ -4274,10 +1588,7 @@ async function deleteMemberEmails2(_id) {
4274
1588
  }
4275
1589
  }
4276
1590
  async function deleteMemberAddresses2(_id) {
4277
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
4278
- if (validateRequestSchema) {
4279
- DeleteMemberAddressesRequest.parse({ _id });
4280
- }
1591
+ const { httpClient, sideEffects } = arguments[1];
4281
1592
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
4282
1593
  const reqOpts = deleteMemberAddresses(payload);
4283
1594
  sideEffects?.onSiteCall?.();