@wix/members 1.0.85 → 1.0.87

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.
@@ -0,0 +1,1811 @@
1
+ interface Badge {
2
+ /**
3
+ * Badge ID.
4
+ * @readonly
5
+ */
6
+ _id?: string;
7
+ /** Text displayed on the badge in the Wix UI. */
8
+ title?: string | null;
9
+ /** Badge description. */
10
+ description?: string | null;
11
+ /**
12
+ * Badge background color in hexadecimal RGB format. Uppercase letters only.
13
+ *
14
+ * Default: `#796EFF ` (purple).
15
+ */
16
+ backgroundColor?: string | null;
17
+ /**
18
+ * Badge text color in hexadecimal RGB format. Uppercase letters only.
19
+ *
20
+ * Default: `"#FFFFFF"` (white).
21
+ */
22
+ textColor?: string | null;
23
+ /**
24
+ * Badge icon as an SVG image. One of:
25
+ *
26
+ * - An external web URL in the following format: `http(s)://<image url>`.
27
+ * - The [source URL](https://www.wix.com/velo/reference/wix-media-backend/mediamanager-obj/getfileurl) for a Wix Media Manager file. Wix Media Manager file names in a `wix:image://...` format are not supported.
28
+ */
29
+ icon?: string | null;
30
+ /**
31
+ * Whether the badge has special permissions
32
+ * to access specific members-only pages.
33
+ * When `true`, members with the badge receive special permissions,
34
+ * and site contributors can
35
+ * [manage badge permissions](https://support.wix.com/en/article/setting-permissions-for-a-member-badge)
36
+ * in the Dashboard.
37
+ * When `false`, members with the badge receive no special permissions.
38
+ */
39
+ permissionsEnabled?: boolean | null;
40
+ /**
41
+ * Slugified name. Used to represent the badge in a URL.
42
+ * @readonly
43
+ */
44
+ slug?: string | null;
45
+ /**
46
+ * Date the badge was created.
47
+ * @readonly
48
+ */
49
+ _createdDate?: Date;
50
+ /**
51
+ * Date the badge was updated.
52
+ * @readonly
53
+ */
54
+ _updatedDate?: Date;
55
+ }
56
+ interface Paging$1 {
57
+ /** Number of items to load. */
58
+ limit?: number | null;
59
+ /** Number of items to skip in the current sort order. */
60
+ offset?: number | null;
61
+ }
62
+ interface ListBadgesResponse {
63
+ /** List of badges. */
64
+ badges?: Badge[];
65
+ /** Metadata for the paginated results. */
66
+ metadata?: PagingMetadata$1;
67
+ }
68
+ interface PagingMetadata$1 {
69
+ /** Number of items returned in the response. */
70
+ count?: number | null;
71
+ /** Offset that was requested. */
72
+ offset?: number | null;
73
+ /** Total number of items that match the query. */
74
+ total?: number | null;
75
+ /** Flag that indicates the server failed to calculate the `total` field. */
76
+ tooManyToCount?: boolean | null;
77
+ }
78
+ interface AssignBadgeResponse {
79
+ /** List of member IDs assigned to the badge. */
80
+ memberIds?: string[];
81
+ }
82
+ interface BadgeAssigned {
83
+ /** ID of the member who received the badge. */
84
+ memberId?: string;
85
+ }
86
+ interface BadgeUnassigned {
87
+ /** ID of the member who lost the badge. */
88
+ memberId?: string;
89
+ }
90
+ interface ListMembersResponse$1 {
91
+ /** Member IDs assigned to the badge. */
92
+ memberIds?: string[];
93
+ /** Metadata for the paginated results. */
94
+ metadata?: PagingMetadata$1;
95
+ }
96
+ interface ListMembersBadgeIdsResponse {
97
+ /** List of members and the badges they're assigned to. */
98
+ memberBadgeIds?: MemberBadgeIds[];
99
+ }
100
+ interface MemberBadgeIds {
101
+ /** Member ID. */
102
+ memberId?: string;
103
+ /** List of badges the member is assigned to. */
104
+ badgeIds?: string[];
105
+ }
106
+ interface GetMemberCountsPerBadgeResponse {
107
+ /** List of badges and counts of members who have each badge. */
108
+ badgeMemberCounts?: BadgeMemberCount[];
109
+ }
110
+ interface BadgeMemberCount {
111
+ /** Badge ID. */
112
+ badgeId?: string;
113
+ /** Badge member count. */
114
+ memberCount?: number;
115
+ }
116
+ interface UpdateBadgesDisplayOrderResponse {
117
+ /** Reordered badges list. */
118
+ badges?: Badge[];
119
+ }
120
+ interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
121
+ /** ID of a site visitor that has not logged in to the site. */
122
+ anonymousVisitorId?: string;
123
+ /** ID of a site visitor that has logged in to the site. */
124
+ memberId?: string;
125
+ /** ID of a Wix user (site owner, contributor, etc.). */
126
+ wixUserId?: string;
127
+ /** ID of an app. */
128
+ appId?: string;
129
+ /** @readonly */
130
+ identityType?: WebhookIdentityType$1;
131
+ }
132
+ /** @oneof */
133
+ interface IdentificationDataIdOneOf$1 {
134
+ /** ID of a site visitor that has not logged in to the site. */
135
+ anonymousVisitorId?: string;
136
+ /** ID of a site visitor that has logged in to the site. */
137
+ memberId?: string;
138
+ /** ID of a Wix user (site owner, contributor, etc.). */
139
+ wixUserId?: string;
140
+ /** ID of an app. */
141
+ appId?: string;
142
+ }
143
+ declare enum WebhookIdentityType$1 {
144
+ UNKNOWN = "UNKNOWN",
145
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
146
+ MEMBER = "MEMBER",
147
+ WIX_USER = "WIX_USER",
148
+ APP = "APP"
149
+ }
150
+ interface ListBadgesResponseNonNullableFields {
151
+ badges: {
152
+ _id: string;
153
+ }[];
154
+ }
155
+ interface AssignBadgeResponseNonNullableFields {
156
+ memberIds: string[];
157
+ }
158
+ interface ListMembersResponseNonNullableFields$1 {
159
+ memberIds: string[];
160
+ }
161
+ interface ListMembersBadgeIdsResponseNonNullableFields {
162
+ memberBadgeIds: {
163
+ memberId: string;
164
+ badgeIds: string[];
165
+ }[];
166
+ }
167
+ interface GetMemberCountsPerBadgeResponseNonNullableFields {
168
+ badgeMemberCounts: {
169
+ badgeId: string;
170
+ memberCount: number;
171
+ }[];
172
+ }
173
+ interface UpdateBadgesDisplayOrderResponseNonNullableFields {
174
+ badges: {
175
+ _id: string;
176
+ }[];
177
+ }
178
+ interface BaseEventMetadata$1 {
179
+ /** App instance ID. */
180
+ instanceId?: string | null;
181
+ /** Event type. */
182
+ eventType?: string;
183
+ /** The identification type and identity data. */
184
+ identity?: IdentificationData$1;
185
+ }
186
+ interface EventMetadata$1 extends BaseEventMetadata$1 {
187
+ /**
188
+ * Unique event ID.
189
+ * Allows clients to ignore duplicate webhooks.
190
+ */
191
+ _id?: string;
192
+ /**
193
+ * Assumes actions are also always typed to an entity_type
194
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
195
+ */
196
+ entityFqdn?: string;
197
+ /**
198
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
199
+ * This is although the created/updated/deleted notion is duplication of the oneof types
200
+ * Example: created/updated/deleted/started/completed/email_opened
201
+ */
202
+ slug?: string;
203
+ /** ID of the entity associated with the event. */
204
+ entityId?: string;
205
+ /** Event timestamp. */
206
+ eventTime?: Date;
207
+ /**
208
+ * Whether the event was triggered as a result of a privacy regulation application
209
+ * (for example, GDPR).
210
+ */
211
+ triggeredByAnonymizeRequest?: boolean | null;
212
+ /** If present, indicates the action that triggered the event. */
213
+ originatedFrom?: string | null;
214
+ /**
215
+ * A sequence number defining the order of updates to the underlying entity.
216
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
217
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
218
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
219
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
220
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
221
+ */
222
+ entityEventSequence?: string | null;
223
+ }
224
+ interface BadgeCreatedEnvelope {
225
+ entity: Badge;
226
+ metadata: EventMetadata$1;
227
+ }
228
+ interface BadgeUpdatedEnvelope {
229
+ entity: Badge;
230
+ metadata: EventMetadata$1;
231
+ }
232
+ interface BadgeDeletedEnvelope {
233
+ metadata: EventMetadata$1;
234
+ }
235
+ interface BadgeAssignedEnvelope {
236
+ data: BadgeAssigned;
237
+ metadata: EventMetadata$1;
238
+ }
239
+ interface BadgeUnassignedEnvelope {
240
+ data: BadgeUnassigned;
241
+ metadata: EventMetadata$1;
242
+ }
243
+ interface UpdateBadge {
244
+ /**
245
+ * Badge ID.
246
+ * @readonly
247
+ */
248
+ _id?: string;
249
+ /** Text displayed on the badge in the Wix UI. */
250
+ title?: string | null;
251
+ /** Badge description. */
252
+ description?: string | null;
253
+ /**
254
+ * Badge background color in hexadecimal RGB format. Uppercase letters only.
255
+ *
256
+ * Default: `#796EFF ` (purple).
257
+ */
258
+ backgroundColor?: string | null;
259
+ /**
260
+ * Badge text color in hexadecimal RGB format. Uppercase letters only.
261
+ *
262
+ * Default: `"#FFFFFF"` (white).
263
+ */
264
+ textColor?: string | null;
265
+ /**
266
+ * Badge icon as an SVG image. One of:
267
+ *
268
+ * - An external web URL in the following format: `http(s)://<image url>`.
269
+ * - The [source URL](https://www.wix.com/velo/reference/wix-media-backend/mediamanager-obj/getfileurl) for a Wix Media Manager file. Wix Media Manager file names in a `wix:image://...` format are not supported.
270
+ */
271
+ icon?: string | null;
272
+ /**
273
+ * Whether the badge has special permissions
274
+ * to access specific members-only pages.
275
+ * When `true`, members with the badge receive special permissions,
276
+ * and site contributors can
277
+ * [manage badge permissions](https://support.wix.com/en/article/setting-permissions-for-a-member-badge)
278
+ * in the Dashboard.
279
+ * When `false`, members with the badge receive no special permissions.
280
+ */
281
+ permissionsEnabled?: boolean | null;
282
+ /**
283
+ * Slugified name. Used to represent the badge in a URL.
284
+ * @readonly
285
+ */
286
+ slug?: string | null;
287
+ /**
288
+ * Date the badge was created.
289
+ * @readonly
290
+ */
291
+ _createdDate?: Date;
292
+ /**
293
+ * Date the badge was updated.
294
+ * @readonly
295
+ */
296
+ _updatedDate?: Date;
297
+ }
298
+ interface ListBadgesOptions {
299
+ /** Pagination options. */
300
+ paging?: Paging$1;
301
+ }
302
+ interface ListMembersByBadgeOptions {
303
+ /** Pagination options. */
304
+ paging?: Paging$1;
305
+ }
306
+
307
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
308
+ interface HttpClient {
309
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
310
+ }
311
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
312
+ type HttpResponse<T = any> = {
313
+ data: T;
314
+ status: number;
315
+ statusText: string;
316
+ headers: any;
317
+ request?: any;
318
+ };
319
+ type RequestOptions<_TResponse = any, Data = any> = {
320
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
321
+ url: string;
322
+ data?: Data;
323
+ params?: URLSearchParams;
324
+ } & APIMetadata;
325
+ type APIMetadata = {
326
+ methodFqn?: string;
327
+ entityFqdn?: string;
328
+ packageName?: string;
329
+ };
330
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
331
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
332
+ __type: 'event-definition';
333
+ type: Type;
334
+ isDomainEvent?: boolean;
335
+ transformations?: unknown;
336
+ __payload: Payload;
337
+ };
338
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
339
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
340
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
341
+
342
+ declare function createBadge$1(httpClient: HttpClient): (badge: Badge) => Promise<Badge & {
343
+ _id: string;
344
+ }>;
345
+ declare function updateBadge$1(httpClient: HttpClient): (_id: string, badge: UpdateBadge) => Promise<Badge & {
346
+ _id: string;
347
+ }>;
348
+ declare function listBadges$1(httpClient: HttpClient): (options?: ListBadgesOptions) => Promise<ListBadgesResponse & ListBadgesResponseNonNullableFields>;
349
+ declare function getBadge$1(httpClient: HttpClient): (_id: string) => Promise<Badge & {
350
+ _id: string;
351
+ }>;
352
+ declare function deleteBadge$1(httpClient: HttpClient): (_id: string) => Promise<void>;
353
+ declare function assignBadge$1(httpClient: HttpClient): (_id: string, memberIds: string[]) => Promise<AssignBadgeResponse & AssignBadgeResponseNonNullableFields>;
354
+ declare function unassignBadge$1(httpClient: HttpClient): (_id: string, memberIds: string[]) => Promise<void>;
355
+ declare function listMembersByBadge$1(httpClient: HttpClient): (_id: string, options?: ListMembersByBadgeOptions) => Promise<ListMembersResponse$1 & ListMembersResponseNonNullableFields$1>;
356
+ declare function listBadgesPerMember$1(httpClient: HttpClient): (memberIds: string[]) => Promise<ListMembersBadgeIdsResponse & ListMembersBadgeIdsResponseNonNullableFields>;
357
+ declare function getMemberCountsPerBadge$1(httpClient: HttpClient): () => Promise<GetMemberCountsPerBadgeResponse & GetMemberCountsPerBadgeResponseNonNullableFields>;
358
+ declare function updateBadgesDisplayOrder$1(httpClient: HttpClient): (badgeIds: string[]) => Promise<UpdateBadgesDisplayOrderResponse & UpdateBadgesDisplayOrderResponseNonNullableFields>;
359
+ declare const onBadgeCreated$1: EventDefinition<BadgeCreatedEnvelope, "wix.badges.v3.badge_created">;
360
+ declare const onBadgeUpdated$1: EventDefinition<BadgeUpdatedEnvelope, "wix.badges.v3.badge_updated">;
361
+ declare const onBadgeDeleted$1: EventDefinition<BadgeDeletedEnvelope, "wix.badges.v3.badge_deleted">;
362
+ declare const onBadgeAssigned$1: EventDefinition<BadgeAssignedEnvelope, "wix.badges.v3.badge_badge_assigned">;
363
+ declare const onBadgeUnassigned$1: EventDefinition<BadgeUnassignedEnvelope, "wix.badges.v3.badge_badge_unassigned">;
364
+
365
+ declare const createBadge: BuildRESTFunction<typeof createBadge$1>;
366
+ declare const updateBadge: BuildRESTFunction<typeof updateBadge$1>;
367
+ declare const listBadges: BuildRESTFunction<typeof listBadges$1>;
368
+ declare const getBadge: BuildRESTFunction<typeof getBadge$1>;
369
+ declare const deleteBadge: BuildRESTFunction<typeof deleteBadge$1>;
370
+ declare const assignBadge: BuildRESTFunction<typeof assignBadge$1>;
371
+ declare const unassignBadge: BuildRESTFunction<typeof unassignBadge$1>;
372
+ declare const listMembersByBadge: BuildRESTFunction<typeof listMembersByBadge$1>;
373
+ declare const listBadgesPerMember: BuildRESTFunction<typeof listBadgesPerMember$1>;
374
+ declare const getMemberCountsPerBadge: BuildRESTFunction<typeof getMemberCountsPerBadge$1>;
375
+ declare const updateBadgesDisplayOrder: BuildRESTFunction<typeof updateBadgesDisplayOrder$1>;
376
+ declare const onBadgeCreated: BuildEventDefinition<typeof onBadgeCreated$1>;
377
+ declare const onBadgeUpdated: BuildEventDefinition<typeof onBadgeUpdated$1>;
378
+ declare const onBadgeDeleted: BuildEventDefinition<typeof onBadgeDeleted$1>;
379
+ declare const onBadgeAssigned: BuildEventDefinition<typeof onBadgeAssigned$1>;
380
+ declare const onBadgeUnassigned: BuildEventDefinition<typeof onBadgeUnassigned$1>;
381
+
382
+ declare const context$2_assignBadge: typeof assignBadge;
383
+ declare const context$2_createBadge: typeof createBadge;
384
+ declare const context$2_deleteBadge: typeof deleteBadge;
385
+ declare const context$2_getBadge: typeof getBadge;
386
+ declare const context$2_getMemberCountsPerBadge: typeof getMemberCountsPerBadge;
387
+ declare const context$2_listBadges: typeof listBadges;
388
+ declare const context$2_listBadgesPerMember: typeof listBadgesPerMember;
389
+ declare const context$2_listMembersByBadge: typeof listMembersByBadge;
390
+ declare const context$2_onBadgeAssigned: typeof onBadgeAssigned;
391
+ declare const context$2_onBadgeCreated: typeof onBadgeCreated;
392
+ declare const context$2_onBadgeDeleted: typeof onBadgeDeleted;
393
+ declare const context$2_onBadgeUnassigned: typeof onBadgeUnassigned;
394
+ declare const context$2_onBadgeUpdated: typeof onBadgeUpdated;
395
+ declare const context$2_unassignBadge: typeof unassignBadge;
396
+ declare const context$2_updateBadge: typeof updateBadge;
397
+ declare const context$2_updateBadgesDisplayOrder: typeof updateBadgesDisplayOrder;
398
+ declare namespace context$2 {
399
+ export { context$2_assignBadge as assignBadge, context$2_createBadge as createBadge, context$2_deleteBadge as deleteBadge, context$2_getBadge as getBadge, context$2_getMemberCountsPerBadge as getMemberCountsPerBadge, context$2_listBadges as listBadges, context$2_listBadgesPerMember as listBadgesPerMember, context$2_listMembersByBadge as listMembersByBadge, context$2_onBadgeAssigned as onBadgeAssigned, context$2_onBadgeCreated as onBadgeCreated, context$2_onBadgeDeleted as onBadgeDeleted, context$2_onBadgeUnassigned as onBadgeUnassigned, context$2_onBadgeUpdated as onBadgeUpdated, context$2_unassignBadge as unassignBadge, context$2_updateBadge as updateBadge, context$2_updateBadgesDisplayOrder as updateBadgesDisplayOrder };
400
+ }
401
+
402
+ interface Member$1 {
403
+ /**
404
+ * Member ID.
405
+ * @readonly
406
+ */
407
+ _id?: string;
408
+ /**
409
+ * @internal
410
+ * @internal
411
+ * @readonly
412
+ */
413
+ emailVerified?: boolean;
414
+ /**
415
+ * @internal
416
+ * @internal */
417
+ role?: Role;
418
+ /**
419
+ * Email used by the member to log in to the site.
420
+ *
421
+ *
422
+ */
423
+ loginEmail?: string | null;
424
+ /**
425
+ * @internal
426
+ * @internal */
427
+ memberName?: string | null;
428
+ /** Member's first name. */
429
+ firstName?: string | null;
430
+ /** Member's last name. */
431
+ lastName?: string | null;
432
+ /**
433
+ * @internal
434
+ * @internal
435
+ * @deprecated
436
+ */
437
+ imageUrl?: string | null;
438
+ /** Name that identifies the member to other members. Displayed on the member's profile page and interactions in the forum or blog. */
439
+ nickname?: string | null;
440
+ /**
441
+ * Member privacy status.
442
+ *
443
+ * One of:
444
+ * - `"PUBLIC"`: Member is visible to everyone.
445
+ * - `"PRIVATE"`: Member is hidden from site visitors and other site members. Member is returned only to site contributors and apps with the appropriate permissions.
446
+ * - `"UNKNOWN"`: Insufficient permissions to get the status.
447
+ */
448
+ profilePrivacyStatus?: SiteMemberPrivacyStatus;
449
+ /** URL segment that determines the member's profile page. */
450
+ slug?: string | null;
451
+ /**
452
+ * @internal
453
+ * @internal */
454
+ language?: string | null;
455
+ /**
456
+ * Member site access status.
457
+ *
458
+ * One of:
459
+ * - `"PENDING"`: Member created and is waiting for approval by site owner.
460
+ * - `"APPROVED"`: Member can log in to the site.
461
+ * - "OFFLINE"`: Member is a guest author for the site blog and cannot log in to the site.
462
+ * - `"BLOCKED"`: Member is blocked and cannot log in to the site.
463
+ * - `"UNKNOWN"`: Insufficient permissions to get the status.
464
+ */
465
+ status?: SiteMemberStatus;
466
+ /**
467
+ * Date and time when the member was created.
468
+ * @readonly
469
+ */
470
+ creationDate?: Date;
471
+ /**
472
+ * Date and time when the member was last updated.
473
+ *
474
+ *
475
+ * @readonly
476
+ */
477
+ lastUpdateDate?: Date;
478
+ /**
479
+ * Date and time when the member last logged in to the site.
480
+ *
481
+ * @readonly
482
+ */
483
+ lastLoginDate?: Date;
484
+ /**
485
+ * List of email addresses.
486
+ *
487
+ *
488
+ */
489
+ emails?: string[];
490
+ /** List of phone numbers. */
491
+ phones?: string[];
492
+ /** List of street addresses. */
493
+ addresses?: Address$1[];
494
+ /**
495
+ * @internal
496
+ * @internal */
497
+ labels?: string[];
498
+ /**
499
+ * Custom fields, structured as key:object pairs. Custom field keys are defined in the Contacts Extended Fields API. The paired object contains the `name` and `value` properties, where `name` is the display name and `value` is the value stored for the member.
500
+ *
501
+ * Only custom fields added to the member profile in the Dashboard are available through the Members API. Empty fields are not returned.
502
+ *
503
+ * When updating a member, `name` is ignored.
504
+ */
505
+ customFields?: CustomField$1[];
506
+ /** Member's profile picture URL. */
507
+ picture?: string;
508
+ /**
509
+ * @internal
510
+ * @internal */
511
+ userId?: string | null;
512
+ /**
513
+ * @internal
514
+ * @internal */
515
+ groups?: Group[];
516
+ /**
517
+ * Member's contact ID.
518
+ * @readonly
519
+ */
520
+ contactId?: string | null;
521
+ }
522
+ declare enum Role {
523
+ UNDEFINED_ROLE = "UNDEFINED_ROLE",
524
+ MEMBER = "MEMBER",
525
+ OWNER = "OWNER",
526
+ CONTRIBUTOR = "CONTRIBUTOR"
527
+ }
528
+ declare enum SiteMemberPrivacyStatus {
529
+ UNDEFINED = "UNDEFINED",
530
+ PUBLIC = "PUBLIC",
531
+ PRIVATE = "PRIVATE",
532
+ COMMUNITY = "COMMUNITY"
533
+ }
534
+ declare enum SiteMemberStatus {
535
+ UNDEFINED_STATUS = "UNDEFINED_STATUS",
536
+ APPLICANT = "APPLICANT",
537
+ ACTIVE = "ACTIVE",
538
+ INACTIVE = "INACTIVE",
539
+ BLOCKED = "BLOCKED",
540
+ OFFLINE_ONLY = "OFFLINE_ONLY"
541
+ }
542
+ interface Address$1 {
543
+ /** Street address. */
544
+ street?: string | null;
545
+ /** City name. */
546
+ city?: string | null;
547
+ /** Region name. */
548
+ region?: string | null;
549
+ /** 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
550
+ country?: string | null;
551
+ /** Postal code. */
552
+ postalCode?: string | null;
553
+ }
554
+ interface CustomField$1 extends CustomFieldValueOneOf {
555
+ /** String value. */
556
+ strValue?: string | null;
557
+ /** Number value. */
558
+ numValue?: number;
559
+ /** Date value. */
560
+ dateValue?: Date;
561
+ /** Display name. */
562
+ name?: string;
563
+ }
564
+ /** @oneof */
565
+ interface CustomFieldValueOneOf {
566
+ strValue?: string | null;
567
+ numValue?: number;
568
+ dateValue?: Date;
569
+ }
570
+ interface Group {
571
+ _id?: string;
572
+ name?: string;
573
+ type?: string;
574
+ }
575
+ interface ChangeLoginEmailResponse {
576
+ /** Member with the updated login email address. */
577
+ member?: Member$1;
578
+ }
579
+ /** @oneof */
580
+ interface ApproveMemberRequestMemberIdentifierOneOf {
581
+ /** ID of the member to approve. */
582
+ _id?: string;
583
+ /** Login email address of the member to approve. */
584
+ email?: string;
585
+ /**
586
+ * <!--ONLY:VELO
587
+ * Approval token returned by `register()`.
588
+ * <!--END:ONLY:VELO-->
589
+ */
590
+ token?: string;
591
+ }
592
+ interface ApproveMemberResponse {
593
+ /** Approval session token. */
594
+ session?: Session;
595
+ }
596
+ interface Session {
597
+ /** Session token when the current member is logged into the site. */
598
+ token?: string | null;
599
+ }
600
+ /** @oneof */
601
+ interface BlockMemberRequestMemberIdentifierOneOf {
602
+ _id?: string;
603
+ /** Login email address of the member to block. */
604
+ email?: string;
605
+ }
606
+ declare enum Source {
607
+ UNKNOWN = "UNKNOWN",
608
+ HANDLING_SPAM = "HANDLING_SPAM"
609
+ }
610
+ interface MemberContactInfo {
611
+ /** First name. */
612
+ firstName?: string | null;
613
+ /** Last name. */
614
+ lastName?: string | null;
615
+ /** Contact's profile picture. */
616
+ picture?: string | null;
617
+ /** Contact's email addresses. */
618
+ emails?: string[];
619
+ /** Contact's phone numbers. */
620
+ phones?: string[];
621
+ /** List of contact's labels. */
622
+ labels?: string[];
623
+ /**
624
+ * @internal
625
+ * @internal */
626
+ locale?: string | null;
627
+ /**
628
+ * Any number of custom fields.
629
+ * [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
630
+ * are used to store additional information about your site's contacts.
631
+ * When setting a custom field, use key:value pairs,
632
+ * where the key matches the names defined in your site's
633
+ * [Contact List](https://support.wix.com/en/article/accessing-your-contact-list).
634
+ * You can only set values for custom fields that already exist in the Contacts application.
635
+ */
636
+ customFields?: CustomField$1[];
637
+ }
638
+ interface DialogData {
639
+ visitorId?: string | null;
640
+ appId?: string | null;
641
+ initiator?: string | null;
642
+ }
643
+ interface EmailVerification {
644
+ /** ID of the verification process. */
645
+ verificationId?: string;
646
+ /**
647
+ * 6-digit code for verification. Code can be between 100000 and 999999.
648
+ *
649
+ */
650
+ otp?: string;
651
+ }
652
+ interface RegisterResponse {
653
+ /** Newly registered member. */
654
+ member?: Member$1;
655
+ /**
656
+ * in case the site is open for registration, all members are automatically
657
+ * approved. they will get a temporary token for obtaining a valid session
658
+ */
659
+ session?: Session;
660
+ /**
661
+ * in case the site requires members approval, the registered member
662
+ * will be an applicant until he's approved. the token can be used as a member
663
+ * identifier for approval using the `MembersService.Approve` API
664
+ */
665
+ approvalToken?: string | null;
666
+ }
667
+ /** Session token for logging the member in. */
668
+ interface LoginResponse {
669
+ /** Session token. */
670
+ session?: Session;
671
+ /** the member's details */
672
+ member?: Member$1;
673
+ }
674
+ interface SendSetPasswordEmailResponse {
675
+ /** Indicates if the request was successfully received. */
676
+ accepted?: boolean;
677
+ }
678
+ interface ChangeLoginEmailResponseNonNullableFields {
679
+ member?: {
680
+ _id: string;
681
+ emailVerified: boolean;
682
+ role: Role;
683
+ profilePrivacyStatus: SiteMemberPrivacyStatus;
684
+ status: SiteMemberStatus;
685
+ emails: string[];
686
+ phones: string[];
687
+ addresses: Address$1[];
688
+ labels: string[];
689
+ customFields: {
690
+ numValue: number;
691
+ name: string;
692
+ }[];
693
+ picture: string;
694
+ groups: {
695
+ _id: string;
696
+ name: string;
697
+ type: string;
698
+ }[];
699
+ };
700
+ }
701
+ interface RegisterResponseNonNullableFields {
702
+ member?: {
703
+ _id: string;
704
+ emailVerified: boolean;
705
+ role: Role;
706
+ profilePrivacyStatus: SiteMemberPrivacyStatus;
707
+ status: SiteMemberStatus;
708
+ emails: string[];
709
+ phones: string[];
710
+ addresses: Address$1[];
711
+ labels: string[];
712
+ customFields: {
713
+ numValue: number;
714
+ name: string;
715
+ }[];
716
+ picture: string;
717
+ groups: {
718
+ _id: string;
719
+ name: string;
720
+ type: string;
721
+ }[];
722
+ };
723
+ }
724
+ interface LoginResponseNonNullableFields {
725
+ member?: {
726
+ _id: string;
727
+ emailVerified: boolean;
728
+ role: Role;
729
+ profilePrivacyStatus: SiteMemberPrivacyStatus;
730
+ status: SiteMemberStatus;
731
+ emails: string[];
732
+ phones: string[];
733
+ addresses: Address$1[];
734
+ labels: string[];
735
+ customFields: {
736
+ numValue: number;
737
+ name: string;
738
+ }[];
739
+ picture: string;
740
+ groups: {
741
+ _id: string;
742
+ name: string;
743
+ type: string;
744
+ }[];
745
+ };
746
+ }
747
+ interface SendSetPasswordEmailResponseNonNullableFields {
748
+ accepted: boolean;
749
+ }
750
+ interface ChangeLoginEmailOptions {
751
+ /**
752
+ * @internal
753
+ * @internal */
754
+ revokeCurrentSessions?: boolean | null;
755
+ }
756
+ interface ApproveOptions extends ApproveMemberRequestMemberIdentifierOneOf {
757
+ /** ID of the member to approve. */
758
+ _id?: string;
759
+ /** Login email address of the member to approve. */
760
+ email?: string;
761
+ /** Approval token returned by the [`register()`](#register) function. */
762
+ token?: string;
763
+ }
764
+ interface BlockOptions extends BlockMemberRequestMemberIdentifierOneOf {
765
+ /** ID of the member to block. */
766
+ _id?: string;
767
+ /** Login email address of the member to block. */
768
+ email?: string;
769
+ /**
770
+ * @internal
771
+ * @internal */
772
+ source?: Source;
773
+ }
774
+ interface RegisterOptions {
775
+ /** Contact information for the registered member. */
776
+ contactInfo?: MemberContactInfo;
777
+ /** @internal */
778
+ dialogData?: DialogData;
779
+ /**
780
+ * Sets the privacy status of a new member upon registration.
781
+ *
782
+ * - `PUBLIC`: Member is visible to everyone.
783
+ * - `PRIVATE`: Member is hidden from site visitors and other site members. Member is returned only to site contributors and apps with the appropriate permissions.
784
+ * - `UNKNOWN`: Insufficient permissions to get the status.
785
+ */
786
+ profilePrivacyStatus?: SiteMemberPrivacyStatus;
787
+ /** @internal */
788
+ isOfflineRegistration?: boolean;
789
+ /** @internal */
790
+ recaptchaToken?: string | null;
791
+ /** @internal */
792
+ invisibleRecaptchaToken?: string | null;
793
+ /**
794
+ * Email verification.
795
+ * @internal */
796
+ emailVerification?: EmailVerification;
797
+ /** @internal */
798
+ isMobile?: boolean | null;
799
+ }
800
+ interface LoginOptions {
801
+ /** @internal */
802
+ recaptchaToken?: string;
803
+ /** @internal */
804
+ invisibleRecaptchaToken?: string;
805
+ /** @internal */
806
+ emailVerification?: EmailVerification;
807
+ /** @internal */
808
+ isMobile?: boolean | null;
809
+ }
810
+ interface SendSetPasswordEmailOptions {
811
+ /**
812
+ * @internal
813
+ * @internal
814
+ * @deprecated
815
+ */
816
+ requestedByMember?: boolean;
817
+ /**
818
+ * Whether to hide the ignore this email message .
819
+ *
820
+ * If `true`, the email tells the member
821
+ * they can safely ignore
822
+ * if they did not request the password change.
823
+ *
824
+ * Default: `false`.
825
+ */
826
+ hideIgnoreMessage?: boolean;
827
+ }
828
+
829
+ declare function changeLoginEmail$1(httpClient: HttpClient): (_id: string, newEmail: string, options?: ChangeLoginEmailOptions) => Promise<ChangeLoginEmailResponse & ChangeLoginEmailResponseNonNullableFields>;
830
+ declare function approve$1(httpClient: HttpClient): (options?: ApproveOptions) => Promise<ApproveMemberResponse>;
831
+ declare function block$1(httpClient: HttpClient): (options?: BlockOptions) => Promise<void>;
832
+ declare function register$1(httpClient: HttpClient): (email: string, password: string, options?: RegisterOptions) => Promise<RegisterResponse & RegisterResponseNonNullableFields>;
833
+ declare function login$1(httpClient: HttpClient): (email: string, password: string, options?: LoginOptions) => Promise<LoginResponse & LoginResponseNonNullableFields>;
834
+ declare function sendSetPasswordEmail$1(httpClient: HttpClient): (email: string, options?: SendSetPasswordEmailOptions) => Promise<SendSetPasswordEmailResponse & SendSetPasswordEmailResponseNonNullableFields>;
835
+
836
+ declare const changeLoginEmail: BuildRESTFunction<typeof changeLoginEmail$1>;
837
+ declare const approve: BuildRESTFunction<typeof approve$1>;
838
+ declare const block: BuildRESTFunction<typeof block$1>;
839
+ declare const register: BuildRESTFunction<typeof register$1>;
840
+ declare const login: BuildRESTFunction<typeof login$1>;
841
+ declare const sendSetPasswordEmail: BuildRESTFunction<typeof sendSetPasswordEmail$1>;
842
+
843
+ declare const context$1_approve: typeof approve;
844
+ declare const context$1_block: typeof block;
845
+ declare const context$1_changeLoginEmail: typeof changeLoginEmail;
846
+ declare const context$1_login: typeof login;
847
+ declare const context$1_register: typeof register;
848
+ declare const context$1_sendSetPasswordEmail: typeof sendSetPasswordEmail;
849
+ declare namespace context$1 {
850
+ export { context$1_approve as approve, context$1_block as block, context$1_changeLoginEmail as changeLoginEmail, context$1_login as login, context$1_register as register, context$1_sendSetPasswordEmail as sendSetPasswordEmail };
851
+ }
852
+
853
+ interface Member {
854
+ /**
855
+ * Member ID.
856
+ * @readonly
857
+ */
858
+ _id?: string | null;
859
+ /** Email used by the member to log in to the site. */
860
+ loginEmail?: string | null;
861
+ /**
862
+ * Whether the email used by the member has been verified.
863
+ * @readonly
864
+ */
865
+ loginEmailVerified?: boolean | null;
866
+ /**
867
+ * Member site access status.
868
+ *
869
+ * - `PENDING`: Member created and is waiting for approval by site owner.
870
+ * - `APPROVED`: Member can log in to the site.
871
+ * - `OFFLINE`: Member is a [guest author](https://support.wix.com/en/article/wix-blog-adding-guest-authors-to-your-blog) for the site blog and cannot log in to the site.
872
+ * - `BLOCKED`: Member is blocked and cannot log in to the site.
873
+ * - `UNKNOWN`: Insufficient permissions to get the status.
874
+ * @readonly
875
+ */
876
+ status?: Status;
877
+ /**
878
+ * Contact ID.
879
+ * @readonly
880
+ */
881
+ contactId?: string | null;
882
+ /**
883
+ * Member's contact information. Contact information is stored in the
884
+ * [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).
885
+ */
886
+ contact?: Contact;
887
+ /** Profile display info. */
888
+ profile?: Profile;
889
+ /**
890
+ * Member privacy status.
891
+ *
892
+ * - `PUBLIC`: Member is visible to everyone.
893
+ * - `PRIVATE`: Member is hidden from site visitors and other site members. Member is returned only to site contributors and apps with the appropriate permissions.
894
+ * - `UNKNOWN`: Insufficient permissions to get the status.
895
+ */
896
+ privacyStatus?: PrivacyStatusStatus;
897
+ /**
898
+ * Member activity status.
899
+ *
900
+ * - `ACTIVE`: Member can write forum posts and blog comments.
901
+ * - `MUTED`: Member cannot write forum posts or blog comments.
902
+ * - `UNKNOWN`: Insufficient permissions to get the status.
903
+ * @readonly
904
+ */
905
+ activityStatus?: ActivityStatusStatus;
906
+ /**
907
+ * Date and time when the member was created.
908
+ * @readonly
909
+ */
910
+ _createdDate?: Date;
911
+ /**
912
+ * Date and time when the member was updated.
913
+ * @readonly
914
+ */
915
+ _updatedDate?: Date;
916
+ /**
917
+ * Date and time when the member last logged in to the site.
918
+ * @readonly
919
+ */
920
+ lastLoginDate?: Date;
921
+ }
922
+ declare enum Status {
923
+ UNKNOWN = "UNKNOWN",
924
+ PENDING = "PENDING",
925
+ APPROVED = "APPROVED",
926
+ BLOCKED = "BLOCKED",
927
+ OFFLINE = "OFFLINE"
928
+ }
929
+ /** Contact info associated with the member. */
930
+ interface Contact {
931
+ /**
932
+ * @internal
933
+ * @internal
934
+ * @readonly
935
+ * @deprecated
936
+ */
937
+ contactId?: string | null;
938
+ /** Contact's first name. */
939
+ firstName?: string | null;
940
+ /** Contact's last name. */
941
+ lastName?: string | null;
942
+ /** List of phone numbers. */
943
+ phones?: string[] | null;
944
+ /** List of email addresses. */
945
+ emails?: string[] | null;
946
+ /** List of street addresses. */
947
+ addresses?: Address[];
948
+ /**
949
+ * Contact's birthdate, formatted as `"YYYY-MM-DD"`.
950
+ *
951
+ * Example: `"2020-03-15"` for March 15, 2020.
952
+ */
953
+ birthdate?: string | null;
954
+ /** Contact's company name. */
955
+ company?: string | null;
956
+ /** Contact's job title. */
957
+ jobTitle?: string | null;
958
+ /**
959
+ * Custom fields are structured as key:value pairs where each key is the field `name`, and each value is the field's `value` for the member.
960
+ *
961
+ * > **Notes:**
962
+ * > - Only custom fields added to the member profile in the Dashboard are available through the Members API. Empty fields are not returned.
963
+ * > - When updating a member, `name` is ignored.
964
+ */
965
+ customFields?: Record<string, CustomField>;
966
+ }
967
+ /** Street address. */
968
+ interface Address extends AddressStreetOneOf {
969
+ /** Street address object, with number and name in separate fields. */
970
+ streetAddress?: StreetAddress;
971
+ /** Main address line, usually street and number, as free text. */
972
+ addressLine?: string | null;
973
+ /**
974
+ * Street address ID.
975
+ * @readonly
976
+ */
977
+ _id?: string | null;
978
+ /**
979
+ * Free text providing more detailed address information,
980
+ * such as apartment, suite, or floor.
981
+ */
982
+ addressLine2?: string | null;
983
+ /** City name. */
984
+ city?: string | null;
985
+ /**
986
+ * Code for a subdivision (such as state, prefecture, or province) in an
987
+ * [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.
988
+ */
989
+ subdivision?: string | null;
990
+ /**
991
+ * 2-letter country code in an
992
+ * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
993
+ */
994
+ country?: string | null;
995
+ /** Postal code. */
996
+ postalCode?: string | null;
997
+ }
998
+ /** @oneof */
999
+ interface AddressStreetOneOf {
1000
+ /** Street address object, with number and name in separate fields. */
1001
+ streetAddress?: StreetAddress;
1002
+ /** Main address line, usually street and number, as free text. */
1003
+ addressLine?: string | null;
1004
+ }
1005
+ interface StreetAddress {
1006
+ /** Street number. */
1007
+ number?: string;
1008
+ /** Street name. */
1009
+ name?: string;
1010
+ }
1011
+ interface CustomField {
1012
+ /** Custom field name. */
1013
+ name?: string | null;
1014
+ /** Custom field value. */
1015
+ value?: any;
1016
+ }
1017
+ /** Member Profile */
1018
+ interface Profile {
1019
+ /**
1020
+ * Name that identifies the member to other members.
1021
+ * Displayed on the member's profile page
1022
+ * and interactions in the forum or blog.
1023
+ */
1024
+ nickname?: string | null;
1025
+ /**
1026
+ * Slug that determines the member's profile page URL.
1027
+ * @readonly
1028
+ */
1029
+ slug?: string | null;
1030
+ /** Member's profile photo. */
1031
+ photo?: Image;
1032
+ /**
1033
+ * Member's cover photo,
1034
+ * used as a background picture in members profile page.
1035
+ *
1036
+ * Cover positioning can be altered with `cover.offsetX` and `cover.offsetY`.
1037
+ * When left empty, the values default to `0`.
1038
+ */
1039
+ cover?: Image;
1040
+ /**
1041
+ * Member title.
1042
+ *
1043
+ * Currently available through the API only.
1044
+ */
1045
+ title?: string | null;
1046
+ }
1047
+ interface Image {
1048
+ /**
1049
+ * Wix Media image ID,
1050
+ * set when the member selects an image from Wix Media.
1051
+ */
1052
+ _id?: string;
1053
+ /** Image URL. */
1054
+ url?: string;
1055
+ /** Original image width. */
1056
+ height?: number;
1057
+ /** Original image height. */
1058
+ width?: number;
1059
+ /**
1060
+ * X-axis offset.
1061
+ *
1062
+ * Default: `0`.
1063
+ */
1064
+ offsetX?: number | null;
1065
+ /**
1066
+ * Y-axis offset.
1067
+ *
1068
+ * Default: `0`.
1069
+ */
1070
+ offsetY?: number | null;
1071
+ }
1072
+ declare enum PrivacyStatusStatus {
1073
+ UNKNOWN = "UNKNOWN",
1074
+ PRIVATE = "PRIVATE",
1075
+ PUBLIC = "PUBLIC"
1076
+ }
1077
+ declare enum ActivityStatusStatus {
1078
+ UNKNOWN = "UNKNOWN",
1079
+ ACTIVE = "ACTIVE",
1080
+ MUTED = "MUTED"
1081
+ }
1082
+ interface UpdateMySlugResponse {
1083
+ /** Updated member. */
1084
+ member?: Member;
1085
+ }
1086
+ /** Member profile. */
1087
+ interface JoinCommunityResponse {
1088
+ /** The updated member. */
1089
+ member?: Member;
1090
+ }
1091
+ /** Member profile. */
1092
+ interface LeaveCommunityResponse {
1093
+ /** The updated member. */
1094
+ member?: Member;
1095
+ }
1096
+ declare enum Set {
1097
+ /** Public properties of the entity */
1098
+ PUBLIC = "PUBLIC",
1099
+ /** Extended properties of the entity */
1100
+ EXTENDED = "EXTENDED",
1101
+ /** Full entity defined in the doc */
1102
+ FULL = "FULL"
1103
+ }
1104
+ /** Member profile. */
1105
+ interface GetMyMemberResponse {
1106
+ /** The logged-in member. */
1107
+ member?: Member;
1108
+ }
1109
+ interface Paging {
1110
+ /** Number of items to load. */
1111
+ limit?: number | null;
1112
+ /** Number of items to skip in the current sort order. */
1113
+ offset?: number | null;
1114
+ }
1115
+ interface Sorting {
1116
+ /** Name of the field to sort by. */
1117
+ fieldName?: string;
1118
+ /** Sort order. */
1119
+ order?: SortOrder;
1120
+ }
1121
+ declare enum SortOrder {
1122
+ ASC = "ASC",
1123
+ DESC = "DESC"
1124
+ }
1125
+ interface ListMembersResponse {
1126
+ /** List of members. */
1127
+ members?: Member[];
1128
+ /** Metadata for the paginated results. */
1129
+ metadata?: PagingMetadata;
1130
+ }
1131
+ interface PagingMetadata {
1132
+ /** Number of items returned in the response. */
1133
+ count?: number | null;
1134
+ /** Offset that was requested. */
1135
+ offset?: number | null;
1136
+ /** Total number of items that match the query. */
1137
+ total?: number | null;
1138
+ /** Flag that indicates the server failed to calculate the `total` field. */
1139
+ tooManyToCount?: boolean | null;
1140
+ }
1141
+ /** Free text to match in searchable fields */
1142
+ interface Search {
1143
+ /** Search term or expression */
1144
+ expression?: string | null;
1145
+ /**
1146
+ * Currently supported fields for search:
1147
+ *
1148
+ * - `loginEmail`
1149
+ * - `contact.firstName`
1150
+ * - `contact.lastName`
1151
+ * - `profile.title`
1152
+ * - `profile.nickname`
1153
+ * - `profile.slug`
1154
+ *
1155
+ * Default is `profile.nickname`
1156
+ */
1157
+ fields?: string[];
1158
+ }
1159
+ interface DeleteMemberPhonesResponse {
1160
+ /** Updated member. */
1161
+ member?: Member;
1162
+ }
1163
+ interface DeleteMemberEmailsResponse {
1164
+ /** Updated member. */
1165
+ member?: Member;
1166
+ }
1167
+ interface DeleteMemberAddressesResponse {
1168
+ /** Updated member. */
1169
+ member?: Member;
1170
+ }
1171
+ interface IdentificationData extends IdentificationDataIdOneOf {
1172
+ /** ID of a site visitor that has not logged in to the site. */
1173
+ anonymousVisitorId?: string;
1174
+ /** ID of a site visitor that has logged in to the site. */
1175
+ memberId?: string;
1176
+ /** ID of a Wix user (site owner, contributor, etc.). */
1177
+ wixUserId?: string;
1178
+ /** ID of an app. */
1179
+ appId?: string;
1180
+ /** @readonly */
1181
+ identityType?: WebhookIdentityType;
1182
+ }
1183
+ /** @oneof */
1184
+ interface IdentificationDataIdOneOf {
1185
+ /** ID of a site visitor that has not logged in to the site. */
1186
+ anonymousVisitorId?: string;
1187
+ /** ID of a site visitor that has logged in to the site. */
1188
+ memberId?: string;
1189
+ /** ID of a Wix user (site owner, contributor, etc.). */
1190
+ wixUserId?: string;
1191
+ /** ID of an app. */
1192
+ appId?: string;
1193
+ }
1194
+ declare enum WebhookIdentityType {
1195
+ UNKNOWN = "UNKNOWN",
1196
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1197
+ MEMBER = "MEMBER",
1198
+ WIX_USER = "WIX_USER",
1199
+ APP = "APP"
1200
+ }
1201
+ interface UpdateMySlugResponseNonNullableFields {
1202
+ member?: {
1203
+ status: Status;
1204
+ contact?: {
1205
+ addresses: {
1206
+ streetAddress?: {
1207
+ number: string;
1208
+ name: string;
1209
+ };
1210
+ }[];
1211
+ };
1212
+ profile?: {
1213
+ photo?: {
1214
+ _id: string;
1215
+ url: string;
1216
+ height: number;
1217
+ width: number;
1218
+ };
1219
+ cover?: {
1220
+ _id: string;
1221
+ url: string;
1222
+ height: number;
1223
+ width: number;
1224
+ };
1225
+ };
1226
+ privacyStatus: PrivacyStatusStatus;
1227
+ activityStatus: ActivityStatusStatus;
1228
+ };
1229
+ }
1230
+ interface JoinCommunityResponseNonNullableFields {
1231
+ member?: {
1232
+ status: Status;
1233
+ contact?: {
1234
+ addresses: {
1235
+ streetAddress?: {
1236
+ number: string;
1237
+ name: string;
1238
+ };
1239
+ }[];
1240
+ };
1241
+ profile?: {
1242
+ photo?: {
1243
+ _id: string;
1244
+ url: string;
1245
+ height: number;
1246
+ width: number;
1247
+ };
1248
+ cover?: {
1249
+ _id: string;
1250
+ url: string;
1251
+ height: number;
1252
+ width: number;
1253
+ };
1254
+ };
1255
+ privacyStatus: PrivacyStatusStatus;
1256
+ activityStatus: ActivityStatusStatus;
1257
+ };
1258
+ }
1259
+ interface LeaveCommunityResponseNonNullableFields {
1260
+ member?: {
1261
+ status: Status;
1262
+ contact?: {
1263
+ addresses: {
1264
+ streetAddress?: {
1265
+ number: string;
1266
+ name: string;
1267
+ };
1268
+ }[];
1269
+ };
1270
+ profile?: {
1271
+ photo?: {
1272
+ _id: string;
1273
+ url: string;
1274
+ height: number;
1275
+ width: number;
1276
+ };
1277
+ cover?: {
1278
+ _id: string;
1279
+ url: string;
1280
+ height: number;
1281
+ width: number;
1282
+ };
1283
+ };
1284
+ privacyStatus: PrivacyStatusStatus;
1285
+ activityStatus: ActivityStatusStatus;
1286
+ };
1287
+ }
1288
+ interface GetMyMemberResponseNonNullableFields {
1289
+ member?: {
1290
+ status: Status;
1291
+ contact?: {
1292
+ addresses: {
1293
+ streetAddress?: {
1294
+ number: string;
1295
+ name: string;
1296
+ };
1297
+ }[];
1298
+ };
1299
+ profile?: {
1300
+ photo?: {
1301
+ _id: string;
1302
+ url: string;
1303
+ height: number;
1304
+ width: number;
1305
+ };
1306
+ cover?: {
1307
+ _id: string;
1308
+ url: string;
1309
+ height: number;
1310
+ width: number;
1311
+ };
1312
+ };
1313
+ privacyStatus: PrivacyStatusStatus;
1314
+ activityStatus: ActivityStatusStatus;
1315
+ };
1316
+ }
1317
+ interface ListMembersResponseNonNullableFields {
1318
+ members: {
1319
+ status: Status;
1320
+ contact?: {
1321
+ addresses: {
1322
+ streetAddress?: {
1323
+ number: string;
1324
+ name: string;
1325
+ };
1326
+ }[];
1327
+ };
1328
+ profile?: {
1329
+ photo?: {
1330
+ _id: string;
1331
+ url: string;
1332
+ height: number;
1333
+ width: number;
1334
+ };
1335
+ cover?: {
1336
+ _id: string;
1337
+ url: string;
1338
+ height: number;
1339
+ width: number;
1340
+ };
1341
+ };
1342
+ privacyStatus: PrivacyStatusStatus;
1343
+ activityStatus: ActivityStatusStatus;
1344
+ }[];
1345
+ }
1346
+ interface DeleteMemberPhonesResponseNonNullableFields {
1347
+ member?: {
1348
+ status: Status;
1349
+ contact?: {
1350
+ addresses: {
1351
+ streetAddress?: {
1352
+ number: string;
1353
+ name: string;
1354
+ };
1355
+ }[];
1356
+ };
1357
+ profile?: {
1358
+ photo?: {
1359
+ _id: string;
1360
+ url: string;
1361
+ height: number;
1362
+ width: number;
1363
+ };
1364
+ cover?: {
1365
+ _id: string;
1366
+ url: string;
1367
+ height: number;
1368
+ width: number;
1369
+ };
1370
+ };
1371
+ privacyStatus: PrivacyStatusStatus;
1372
+ activityStatus: ActivityStatusStatus;
1373
+ };
1374
+ }
1375
+ interface DeleteMemberEmailsResponseNonNullableFields {
1376
+ member?: {
1377
+ status: Status;
1378
+ contact?: {
1379
+ addresses: {
1380
+ streetAddress?: {
1381
+ number: string;
1382
+ name: string;
1383
+ };
1384
+ }[];
1385
+ };
1386
+ profile?: {
1387
+ photo?: {
1388
+ _id: string;
1389
+ url: string;
1390
+ height: number;
1391
+ width: number;
1392
+ };
1393
+ cover?: {
1394
+ _id: string;
1395
+ url: string;
1396
+ height: number;
1397
+ width: number;
1398
+ };
1399
+ };
1400
+ privacyStatus: PrivacyStatusStatus;
1401
+ activityStatus: ActivityStatusStatus;
1402
+ };
1403
+ }
1404
+ interface DeleteMemberAddressesResponseNonNullableFields {
1405
+ member?: {
1406
+ status: Status;
1407
+ contact?: {
1408
+ addresses: {
1409
+ streetAddress?: {
1410
+ number: string;
1411
+ name: string;
1412
+ };
1413
+ }[];
1414
+ };
1415
+ profile?: {
1416
+ photo?: {
1417
+ _id: string;
1418
+ url: string;
1419
+ height: number;
1420
+ width: number;
1421
+ };
1422
+ cover?: {
1423
+ _id: string;
1424
+ url: string;
1425
+ height: number;
1426
+ width: number;
1427
+ };
1428
+ };
1429
+ privacyStatus: PrivacyStatusStatus;
1430
+ activityStatus: ActivityStatusStatus;
1431
+ };
1432
+ }
1433
+ interface BaseEventMetadata {
1434
+ /** App instance ID. */
1435
+ instanceId?: string | null;
1436
+ /** Event type. */
1437
+ eventType?: string;
1438
+ /** The identification type and identity data. */
1439
+ identity?: IdentificationData;
1440
+ }
1441
+ interface EventMetadata extends BaseEventMetadata {
1442
+ /**
1443
+ * Unique event ID.
1444
+ * Allows clients to ignore duplicate webhooks.
1445
+ */
1446
+ _id?: string;
1447
+ /**
1448
+ * Assumes actions are also always typed to an entity_type
1449
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1450
+ */
1451
+ entityFqdn?: string;
1452
+ /**
1453
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1454
+ * This is although the created/updated/deleted notion is duplication of the oneof types
1455
+ * Example: created/updated/deleted/started/completed/email_opened
1456
+ */
1457
+ slug?: string;
1458
+ /** ID of the entity associated with the event. */
1459
+ entityId?: string;
1460
+ /** Event timestamp. */
1461
+ eventTime?: Date;
1462
+ /**
1463
+ * Whether the event was triggered as a result of a privacy regulation application
1464
+ * (for example, GDPR).
1465
+ */
1466
+ triggeredByAnonymizeRequest?: boolean | null;
1467
+ /** If present, indicates the action that triggered the event. */
1468
+ originatedFrom?: string | null;
1469
+ /**
1470
+ * A sequence number defining the order of updates to the underlying entity.
1471
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
1472
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1473
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1474
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
1475
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1476
+ */
1477
+ entityEventSequence?: string | null;
1478
+ }
1479
+ interface MemberUpdatedEnvelope {
1480
+ entity: Member;
1481
+ metadata: EventMetadata;
1482
+ }
1483
+ interface MemberDeletedEnvelope {
1484
+ metadata: EventMetadata;
1485
+ }
1486
+ interface MemberCreatedEnvelope {
1487
+ entity: Member;
1488
+ metadata: EventMetadata;
1489
+ }
1490
+ interface GetCurrentMemberOptions {
1491
+ /**
1492
+ * Predefined set of fields to return.
1493
+ *
1494
+ * - `"FULL"`: Returns all fields.
1495
+ * - `"PUBLIC"`: Returns `_id` and all fields under `profile`.
1496
+ *
1497
+ * > **Note:**
1498
+ * > When returning the `"PUBLIC"` fieldset,
1499
+ * > `profile.status`, `profile.privacyStatus`, and `profile.activityStatus`
1500
+ * > are returned as `"UNKNOWN"`.
1501
+ * @deprecated
1502
+ */
1503
+ fieldSet?: Set;
1504
+ /**
1505
+ * Predefined set of fields to return. One of:
1506
+ *
1507
+ * - `FULL`: Returns all fields.
1508
+ * - `PUBLIC`: Returns `id`, `contactId`, and the `profile` object. `status`, `privacyStatus`, and `activityStatus` are returned as `UNKNOWN`.
1509
+ * - `EXTENDED`: Returns `id`, `loginEmail`, `status`, `contactId`, `privacyStatus`, `activityStatus`, and the `profile` object.
1510
+ *
1511
+ * Default: `PUBLIC`.
1512
+ */
1513
+ fieldsets?: Set[];
1514
+ }
1515
+ interface GetMemberOptions {
1516
+ /**
1517
+ * Predefined set of fields to return. One of:
1518
+ * - `"FULL"`: Returns all fields.
1519
+ * - `"PUBLIC"`: Returns `id`, `contactId`, and the `profile` object. `status`, `privacyStatus`, and `activityStatus` are returned as `UNKNOWN`.
1520
+ * - `"EXTENDED"`: Returns `id`, `loginEmail`, `status`, `contactId`, `privacyStatus`, `activityStatus`, and the `profile` object.
1521
+ *
1522
+ * Default: `"PUBLIC"`.
1523
+ */
1524
+ fieldsets?: Set[];
1525
+ }
1526
+ interface ListMembersOptions {
1527
+ /** Paging options. */
1528
+ paging?: Paging;
1529
+ /**
1530
+ * Predefined set of fields to return. One of:
1531
+ * - `"FULL"`: Returns all fields.
1532
+ * - `"PUBLIC"`: Returns `id`, `contactId`, and the `profile` object. `status`, `privacyStatus`, and `activityStatus` are returned as `UNKNOWN`.
1533
+ * - `"EXTENDED"`: Returns `id`, `loginEmail`, `status`, `contactId`, `privacyStatus`, `activityStatus`, and the `profile` object.
1534
+ *
1535
+ * Default: `"PUBLIC"`.
1536
+ */
1537
+ fieldsets?: Set[];
1538
+ /** Sorting options. */
1539
+ sorting?: Sorting[];
1540
+ }
1541
+ interface QueryMembersOptions {
1542
+ /**
1543
+ * Predefined set of fields to return. One of:
1544
+ * - `"FULL"`: Returns all fields.
1545
+ * - `"PUBLIC"`: Returns `id`, `contactId`, and the `profile` object. `status`, `privacyStatus`, and `activityStatus` are returned as `UNKNOWN`.
1546
+ * - `"EXTENDED"`: Returns `id`, `loginEmail`, `status`, `contactId`, `privacyStatus`, `activityStatus`, and the `profile` object.
1547
+ *
1548
+ * Default: `"PUBLIC"`.
1549
+ */
1550
+ fieldsets?: Set[] | undefined;
1551
+ /** Plain text search. */
1552
+ search?: Search | undefined;
1553
+ }
1554
+ interface QueryOffsetResult {
1555
+ currentPage: number | undefined;
1556
+ totalPages: number | undefined;
1557
+ totalCount: number | undefined;
1558
+ hasNext: () => boolean;
1559
+ hasPrev: () => boolean;
1560
+ length: number;
1561
+ pageSize: number;
1562
+ }
1563
+ interface MembersQueryResult extends QueryOffsetResult {
1564
+ items: Member[];
1565
+ query: MembersQueryBuilder;
1566
+ next: () => Promise<MembersQueryResult>;
1567
+ prev: () => Promise<MembersQueryResult>;
1568
+ }
1569
+ interface MembersQueryBuilder {
1570
+ /** @param propertyName - Property whose value is compared with `value`.
1571
+ * @param value - Value to compare against.
1572
+ * @documentationMaturity preview
1573
+ */
1574
+ eq: (propertyName: '_id' | 'loginEmail' | 'contact.firstName' | 'contact.lastName' | 'profile.nickname' | 'profile.slug' | 'privacyStatus', value: any) => MembersQueryBuilder;
1575
+ /** @param propertyName - Property whose value is compared with `value`.
1576
+ * @param value - Value to compare against.
1577
+ * @documentationMaturity preview
1578
+ */
1579
+ ne: (propertyName: '_id' | 'loginEmail' | 'contact.firstName' | 'contact.lastName' | 'profile.nickname' | 'profile.slug' | 'privacyStatus', value: any) => MembersQueryBuilder;
1580
+ /** @param propertyName - Property whose value is compared with `string`.
1581
+ * @param string - String to compare against. Case-insensitive.
1582
+ * @documentationMaturity preview
1583
+ */
1584
+ startsWith: (propertyName: '_id' | 'loginEmail' | 'contact.firstName' | 'contact.lastName' | 'profile.nickname' | 'profile.slug', value: string) => MembersQueryBuilder;
1585
+ /** @param propertyName - Property whose value is compared with `values`.
1586
+ * @param values - List of values to compare against.
1587
+ * @documentationMaturity preview
1588
+ */
1589
+ hasSome: (propertyName: '_id' | 'loginEmail' | 'contact.firstName' | 'contact.lastName' | 'profile.nickname' | 'profile.slug' | 'privacyStatus', value: any[]) => MembersQueryBuilder;
1590
+ /** @documentationMaturity preview */
1591
+ in: (propertyName: '_id' | 'loginEmail' | 'contact.firstName' | 'contact.lastName' | 'profile.nickname' | 'profile.slug' | 'privacyStatus', value: any) => MembersQueryBuilder;
1592
+ /** @documentationMaturity preview */
1593
+ exists: (propertyName: '_id' | 'loginEmail' | 'contact.firstName' | 'contact.lastName' | 'profile.nickname' | 'profile.slug' | 'privacyStatus', value: boolean) => MembersQueryBuilder;
1594
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1595
+ * @documentationMaturity preview
1596
+ */
1597
+ limit: (limit: number) => MembersQueryBuilder;
1598
+ /** @param skip - Number of items to skip in the query results before returning the results.
1599
+ * @documentationMaturity preview
1600
+ */
1601
+ skip: (skip: number) => MembersQueryBuilder;
1602
+ /** @documentationMaturity preview */
1603
+ find: () => Promise<MembersQueryResult>;
1604
+ }
1605
+ interface CreateMemberOptions {
1606
+ /** Member to create. */
1607
+ member?: Member;
1608
+ }
1609
+ interface UpdateMember {
1610
+ /**
1611
+ * Member ID.
1612
+ * @readonly
1613
+ */
1614
+ _id?: string | null;
1615
+ /** Email used by the member to log in to the site. */
1616
+ loginEmail?: string | null;
1617
+ /**
1618
+ * Whether the email used by the member has been verified.
1619
+ * @readonly
1620
+ */
1621
+ loginEmailVerified?: boolean | null;
1622
+ /**
1623
+ * Member site access status.
1624
+ *
1625
+ * - `PENDING`: Member created and is waiting for approval by site owner.
1626
+ * - `APPROVED`: Member can log in to the site.
1627
+ * - `OFFLINE`: Member is a [guest author](https://support.wix.com/en/article/wix-blog-adding-guest-authors-to-your-blog) for the site blog and cannot log in to the site.
1628
+ * - `BLOCKED`: Member is blocked and cannot log in to the site.
1629
+ * - `UNKNOWN`: Insufficient permissions to get the status.
1630
+ * @readonly
1631
+ */
1632
+ status?: Status;
1633
+ /**
1634
+ * Contact ID.
1635
+ * @readonly
1636
+ */
1637
+ contactId?: string | null;
1638
+ /**
1639
+ * Member's contact information. Contact information is stored in the
1640
+ * [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).
1641
+ */
1642
+ contact?: Contact;
1643
+ /** Profile display info. */
1644
+ profile?: Profile;
1645
+ /**
1646
+ * Member privacy status.
1647
+ *
1648
+ * - `PUBLIC`: Member is visible to everyone.
1649
+ * - `PRIVATE`: Member is hidden from site visitors and other site members. Member is returned only to site contributors and apps with the appropriate permissions.
1650
+ * - `UNKNOWN`: Insufficient permissions to get the status.
1651
+ */
1652
+ privacyStatus?: PrivacyStatusStatus;
1653
+ /**
1654
+ * Member activity status.
1655
+ *
1656
+ * - `ACTIVE`: Member can write forum posts and blog comments.
1657
+ * - `MUTED`: Member cannot write forum posts or blog comments.
1658
+ * - `UNKNOWN`: Insufficient permissions to get the status.
1659
+ * @readonly
1660
+ */
1661
+ activityStatus?: ActivityStatusStatus;
1662
+ /**
1663
+ * Date and time when the member was created.
1664
+ * @readonly
1665
+ */
1666
+ _createdDate?: Date;
1667
+ /**
1668
+ * Date and time when the member was updated.
1669
+ * @readonly
1670
+ */
1671
+ _updatedDate?: Date;
1672
+ /**
1673
+ * Date and time when the member last logged in to the site.
1674
+ * @readonly
1675
+ */
1676
+ lastLoginDate?: Date;
1677
+ }
1678
+
1679
+ declare function updateCurrentMemberSlug$1(httpClient: HttpClient): (slug: string) => Promise<UpdateMySlugResponse & UpdateMySlugResponseNonNullableFields>;
1680
+ declare function joinCommunity$1(httpClient: HttpClient): () => Promise<JoinCommunityResponse & JoinCommunityResponseNonNullableFields>;
1681
+ declare function leaveCommunity$1(httpClient: HttpClient): () => Promise<LeaveCommunityResponse & LeaveCommunityResponseNonNullableFields>;
1682
+ declare function getCurrentMember$1(httpClient: HttpClient): (options?: GetCurrentMemberOptions) => Promise<GetMyMemberResponse & GetMyMemberResponseNonNullableFields>;
1683
+ declare function getMember$1(httpClient: HttpClient): (_id: string, options?: GetMemberOptions) => Promise<Member & {
1684
+ status: Status;
1685
+ contact?: {
1686
+ addresses: {
1687
+ streetAddress?: {
1688
+ number: string;
1689
+ name: string;
1690
+ } | undefined;
1691
+ }[];
1692
+ } | undefined;
1693
+ profile?: {
1694
+ photo?: {
1695
+ _id: string;
1696
+ url: string;
1697
+ height: number;
1698
+ width: number;
1699
+ } | undefined;
1700
+ cover?: {
1701
+ _id: string;
1702
+ url: string;
1703
+ height: number;
1704
+ width: number;
1705
+ } | undefined;
1706
+ } | undefined;
1707
+ privacyStatus: PrivacyStatusStatus;
1708
+ activityStatus: ActivityStatusStatus;
1709
+ }>;
1710
+ declare function listMembers$1(httpClient: HttpClient): (options?: ListMembersOptions) => Promise<ListMembersResponse & ListMembersResponseNonNullableFields>;
1711
+ declare function queryMembers$1(httpClient: HttpClient): (options?: QueryMembersOptions) => MembersQueryBuilder;
1712
+ declare function deleteMember$1(httpClient: HttpClient): (_id: string) => Promise<void>;
1713
+ declare function createMember$1(httpClient: HttpClient): (options?: CreateMemberOptions) => Promise<Member & {
1714
+ status: Status;
1715
+ contact?: {
1716
+ addresses: {
1717
+ streetAddress?: {
1718
+ number: string;
1719
+ name: string;
1720
+ } | undefined;
1721
+ }[];
1722
+ } | undefined;
1723
+ profile?: {
1724
+ photo?: {
1725
+ _id: string;
1726
+ url: string;
1727
+ height: number;
1728
+ width: number;
1729
+ } | undefined;
1730
+ cover?: {
1731
+ _id: string;
1732
+ url: string;
1733
+ height: number;
1734
+ width: number;
1735
+ } | undefined;
1736
+ } | undefined;
1737
+ privacyStatus: PrivacyStatusStatus;
1738
+ activityStatus: ActivityStatusStatus;
1739
+ }>;
1740
+ declare function updateMember$1(httpClient: HttpClient): (_id: string | null, member: UpdateMember) => Promise<Member & {
1741
+ status: Status;
1742
+ contact?: {
1743
+ addresses: {
1744
+ streetAddress?: {
1745
+ number: string;
1746
+ name: string;
1747
+ } | undefined;
1748
+ }[];
1749
+ } | undefined;
1750
+ profile?: {
1751
+ photo?: {
1752
+ _id: string;
1753
+ url: string;
1754
+ height: number;
1755
+ width: number;
1756
+ } | undefined;
1757
+ cover?: {
1758
+ _id: string;
1759
+ url: string;
1760
+ height: number;
1761
+ width: number;
1762
+ } | undefined;
1763
+ } | undefined;
1764
+ privacyStatus: PrivacyStatusStatus;
1765
+ activityStatus: ActivityStatusStatus;
1766
+ }>;
1767
+ declare function deleteMemberPhones$1(httpClient: HttpClient): (_id: string) => Promise<DeleteMemberPhonesResponse & DeleteMemberPhonesResponseNonNullableFields>;
1768
+ declare function deleteMemberEmails$1(httpClient: HttpClient): (_id: string) => Promise<DeleteMemberEmailsResponse & DeleteMemberEmailsResponseNonNullableFields>;
1769
+ declare function deleteMemberAddresses$1(httpClient: HttpClient): (_id: string) => Promise<DeleteMemberAddressesResponse & DeleteMemberAddressesResponseNonNullableFields>;
1770
+ declare const onMemberUpdated$1: EventDefinition<MemberUpdatedEnvelope, "wix.members.v1.member_updated">;
1771
+ declare const onMemberDeleted$1: EventDefinition<MemberDeletedEnvelope, "wix.members.v1.member_deleted">;
1772
+ declare const onMemberCreated$1: EventDefinition<MemberCreatedEnvelope, "wix.members.v1.member_created">;
1773
+
1774
+ declare const updateCurrentMemberSlug: BuildRESTFunction<typeof updateCurrentMemberSlug$1>;
1775
+ declare const joinCommunity: BuildRESTFunction<typeof joinCommunity$1>;
1776
+ declare const leaveCommunity: BuildRESTFunction<typeof leaveCommunity$1>;
1777
+ declare const getCurrentMember: BuildRESTFunction<typeof getCurrentMember$1>;
1778
+ declare const getMember: BuildRESTFunction<typeof getMember$1>;
1779
+ declare const listMembers: BuildRESTFunction<typeof listMembers$1>;
1780
+ declare const queryMembers: BuildRESTFunction<typeof queryMembers$1>;
1781
+ declare const deleteMember: BuildRESTFunction<typeof deleteMember$1>;
1782
+ declare const createMember: BuildRESTFunction<typeof createMember$1>;
1783
+ declare const updateMember: BuildRESTFunction<typeof updateMember$1>;
1784
+ declare const deleteMemberPhones: BuildRESTFunction<typeof deleteMemberPhones$1>;
1785
+ declare const deleteMemberEmails: BuildRESTFunction<typeof deleteMemberEmails$1>;
1786
+ declare const deleteMemberAddresses: BuildRESTFunction<typeof deleteMemberAddresses$1>;
1787
+ declare const onMemberUpdated: BuildEventDefinition<typeof onMemberUpdated$1>;
1788
+ declare const onMemberDeleted: BuildEventDefinition<typeof onMemberDeleted$1>;
1789
+ declare const onMemberCreated: BuildEventDefinition<typeof onMemberCreated$1>;
1790
+
1791
+ declare const context_createMember: typeof createMember;
1792
+ declare const context_deleteMember: typeof deleteMember;
1793
+ declare const context_deleteMemberAddresses: typeof deleteMemberAddresses;
1794
+ declare const context_deleteMemberEmails: typeof deleteMemberEmails;
1795
+ declare const context_deleteMemberPhones: typeof deleteMemberPhones;
1796
+ declare const context_getCurrentMember: typeof getCurrentMember;
1797
+ declare const context_getMember: typeof getMember;
1798
+ declare const context_joinCommunity: typeof joinCommunity;
1799
+ declare const context_leaveCommunity: typeof leaveCommunity;
1800
+ declare const context_listMembers: typeof listMembers;
1801
+ declare const context_onMemberCreated: typeof onMemberCreated;
1802
+ declare const context_onMemberDeleted: typeof onMemberDeleted;
1803
+ declare const context_onMemberUpdated: typeof onMemberUpdated;
1804
+ declare const context_queryMembers: typeof queryMembers;
1805
+ declare const context_updateCurrentMemberSlug: typeof updateCurrentMemberSlug;
1806
+ declare const context_updateMember: typeof updateMember;
1807
+ declare namespace context {
1808
+ export { context_createMember as createMember, context_deleteMember as deleteMember, context_deleteMemberAddresses as deleteMemberAddresses, context_deleteMemberEmails as deleteMemberEmails, context_deleteMemberPhones as deleteMemberPhones, context_getCurrentMember as getCurrentMember, context_getMember as getMember, context_joinCommunity as joinCommunity, context_leaveCommunity as leaveCommunity, context_listMembers as listMembers, context_onMemberCreated as onMemberCreated, context_onMemberDeleted as onMemberDeleted, context_onMemberUpdated as onMemberUpdated, context_queryMembers as queryMembers, context_updateCurrentMemberSlug as updateCurrentMemberSlug, context_updateMember as updateMember };
1809
+ }
1810
+
1811
+ export { context$1 as authentication, context$2 as badges, context as members };