@wix/members 1.0.86 → 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,3563 @@
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 CreateBadgeRequest {
57
+ /** Badge to create. */
58
+ badge: Badge;
59
+ }
60
+ interface CreateBadgeResponse {
61
+ /** Created badge. */
62
+ badge?: Badge;
63
+ }
64
+ interface UpdateBadgeRequest {
65
+ /** Badge to update. */
66
+ badge: Badge;
67
+ }
68
+ interface UpdateBadgeResponse {
69
+ /** Updated badge. */
70
+ badge?: Badge;
71
+ }
72
+ interface ListBadgesRequest {
73
+ /** Pagination options. */
74
+ paging?: Paging$2;
75
+ }
76
+ interface Paging$2 {
77
+ /** Number of items to load. */
78
+ limit?: number | null;
79
+ /** Number of items to skip in the current sort order. */
80
+ offset?: number | null;
81
+ }
82
+ interface ListBadgesResponse {
83
+ /** List of badges. */
84
+ badges?: Badge[];
85
+ /** Metadata for the paginated results. */
86
+ metadata?: PagingMetadata$1;
87
+ }
88
+ interface PagingMetadata$1 {
89
+ /** Number of items returned in the response. */
90
+ count?: number | null;
91
+ /** Offset that was requested. */
92
+ offset?: number | null;
93
+ /** Total number of items that match the query. */
94
+ total?: number | null;
95
+ /** Flag that indicates the server failed to calculate the `total` field. */
96
+ tooManyToCount?: boolean | null;
97
+ }
98
+ interface QueryBadgesRequest {
99
+ /**
100
+ * Filter options.
101
+ * Currently supported fields for filtering:
102
+ * - id
103
+ * - title
104
+ * - slug
105
+ * For more details on how to use filter, see [API Query Language: The Filter Section](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_the-filter-section).
106
+ */
107
+ filter?: Record<string, any> | null;
108
+ /**
109
+ * Sorting options.
110
+ * For more details on how to use sorting,
111
+ * see [API Query Language: The Sort Section](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_the-sort-section)
112
+ */
113
+ sort?: Sorting$2[];
114
+ /** Pagination options. */
115
+ paging?: Paging$2;
116
+ }
117
+ interface Sorting$2 {
118
+ /** Name of the field to sort by. */
119
+ fieldName?: string;
120
+ /** Sort order. */
121
+ order?: SortOrder$1;
122
+ }
123
+ declare enum SortOrder$1 {
124
+ ASC = "ASC",
125
+ DESC = "DESC"
126
+ }
127
+ interface QueryBadgesResponse {
128
+ /** List of badges. */
129
+ badges?: Badge[];
130
+ /** Metadata for the paginated results. */
131
+ metadata?: PagingMetadata$1;
132
+ }
133
+ interface GetBadgeRequest {
134
+ /** Badge ID. */
135
+ _id: string;
136
+ }
137
+ interface GetBadgeResponse {
138
+ /** Badge. */
139
+ badge?: Badge;
140
+ }
141
+ interface DeleteBadgeRequest {
142
+ /** Badge ID. */
143
+ _id: string;
144
+ }
145
+ interface DeleteBadgeResponse {
146
+ }
147
+ interface CountBadgesRequest {
148
+ /**
149
+ * Filter options.
150
+ * Currently supported fields for filtering:
151
+ * - id
152
+ * - title
153
+ * - slug
154
+ * For more details on how to use filter, see [API Query Language: The Filter Section](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_the-filter-section).
155
+ */
156
+ filter?: Record<string, any> | null;
157
+ }
158
+ interface CountBadgesResponse {
159
+ /** Badge count. */
160
+ count?: string;
161
+ }
162
+ interface AssignBadgeRequest {
163
+ /** Badge ID. */
164
+ _id: string;
165
+ /** List of member IDs to assign to the badge. */
166
+ memberIds: string[];
167
+ }
168
+ interface AssignBadgeResponse {
169
+ /** List of member IDs assigned to the badge. */
170
+ memberIds?: string[];
171
+ }
172
+ interface BadgeAssigned {
173
+ /** ID of the member who received the badge. */
174
+ memberId?: string;
175
+ }
176
+ interface AssignBadgesRequest {
177
+ /** List of badge IDs to assign to the member. */
178
+ ids?: string[];
179
+ /** Member ID. */
180
+ memberId?: string;
181
+ }
182
+ interface AssignBadgesResponse {
183
+ /** List of badge IDs newly assigned to the member. */
184
+ ids?: string[];
185
+ }
186
+ interface UnassignBadgeRequest {
187
+ /** Badge ID. */
188
+ _id: string;
189
+ /** List of members to remove. */
190
+ memberIds: string[];
191
+ }
192
+ interface UnassignBadgeResponse {
193
+ }
194
+ interface BadgeUnassigned {
195
+ /** ID of the member who lost the badge. */
196
+ memberId?: string;
197
+ }
198
+ interface ListMembersRequest$2 {
199
+ /** Badge ID. */
200
+ _id: string;
201
+ /** Pagination options. */
202
+ paging?: Paging$2;
203
+ }
204
+ interface ListMembersResponse$2 {
205
+ /** Member IDs assigned to the badge. */
206
+ memberIds?: string[];
207
+ /** Metadata for the paginated results. */
208
+ metadata?: PagingMetadata$1;
209
+ }
210
+ interface ListMembersBadgeIdsRequest {
211
+ /** List of members. */
212
+ memberIds: string[];
213
+ }
214
+ interface ListMembersBadgeIdsResponse {
215
+ /** List of members and the badges they're assigned to. */
216
+ memberBadgeIds?: MemberBadgeIds[];
217
+ }
218
+ interface MemberBadgeIds {
219
+ /** Member ID. */
220
+ memberId?: string;
221
+ /** List of badges the member is assigned to. */
222
+ badgeIds?: string[];
223
+ }
224
+ interface GetMemberCountsPerBadgeRequest {
225
+ }
226
+ interface GetMemberCountsPerBadgeResponse {
227
+ /** List of badges and counts of members who have each badge. */
228
+ badgeMemberCounts?: BadgeMemberCount[];
229
+ }
230
+ interface BadgeMemberCount {
231
+ /** Badge ID. */
232
+ badgeId?: string;
233
+ /** Badge member count. */
234
+ memberCount?: number;
235
+ }
236
+ interface UpdateBadgesDisplayOrderRequest {
237
+ /** Ordered badge IDs. */
238
+ badgeIds: string[];
239
+ }
240
+ interface UpdateBadgesDisplayOrderResponse {
241
+ /** Reordered badges list. */
242
+ badges?: Badge[];
243
+ }
244
+ interface ListMembersWithBadgesRequest {
245
+ /** Cursor paging options */
246
+ paging?: CursorPaging$1;
247
+ }
248
+ interface CursorPaging$1 {
249
+ /** Maximum number of items to return in the results. */
250
+ limit?: number | null;
251
+ /**
252
+ * Pointer to the next or previous page in the list of results.
253
+ *
254
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
255
+ * Not relevant for the first request.
256
+ */
257
+ cursor?: string | null;
258
+ }
259
+ interface ListMembersWithBadgesResponse {
260
+ /** List of members */
261
+ memberIds?: string[];
262
+ /** Metadata for the paginated results */
263
+ pagingMetadata?: CursorPagingMetadata$1;
264
+ }
265
+ interface CursorPagingMetadata$1 {
266
+ /** Number of items returned in the response. */
267
+ count?: number | null;
268
+ /** Cursor strings that point to the next page, previous page, or both. */
269
+ cursors?: Cursors$1;
270
+ /**
271
+ * Whether there are more pages to retrieve following the current page.
272
+ *
273
+ * + `true`: Another page of results can be retrieved.
274
+ * + `false`: This is the last page.
275
+ */
276
+ hasNext?: boolean | null;
277
+ }
278
+ interface Cursors$1 {
279
+ /** Cursor string pointing to the next page in the list of results. */
280
+ next?: string | null;
281
+ /** Cursor pointing to the previous page in the list of results. */
282
+ prev?: string | null;
283
+ }
284
+ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
285
+ createdEvent?: EntityCreatedEvent$1;
286
+ updatedEvent?: EntityUpdatedEvent$1;
287
+ deletedEvent?: EntityDeletedEvent$1;
288
+ actionEvent?: ActionEvent$1;
289
+ /**
290
+ * Unique event ID.
291
+ * Allows clients to ignore duplicate webhooks.
292
+ */
293
+ _id?: string;
294
+ /**
295
+ * Assumes actions are also always typed to an entity_type
296
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
297
+ */
298
+ entityFqdn?: string;
299
+ /**
300
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
301
+ * This is although the created/updated/deleted notion is duplication of the oneof types
302
+ * Example: created/updated/deleted/started/completed/email_opened
303
+ */
304
+ slug?: string;
305
+ /** ID of the entity associated with the event. */
306
+ entityId?: string;
307
+ /** Event timestamp. */
308
+ eventTime?: Date;
309
+ /**
310
+ * Whether the event was triggered as a result of a privacy regulation application
311
+ * (for example, GDPR).
312
+ */
313
+ triggeredByAnonymizeRequest?: boolean | null;
314
+ /** If present, indicates the action that triggered the event. */
315
+ originatedFrom?: string | null;
316
+ /**
317
+ * A sequence number defining the order of updates to the underlying entity.
318
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
319
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
320
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
321
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
322
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
323
+ */
324
+ entityEventSequence?: string | null;
325
+ }
326
+ /** @oneof */
327
+ interface DomainEventBodyOneOf$1 {
328
+ createdEvent?: EntityCreatedEvent$1;
329
+ updatedEvent?: EntityUpdatedEvent$1;
330
+ deletedEvent?: EntityDeletedEvent$1;
331
+ actionEvent?: ActionEvent$1;
332
+ }
333
+ interface EntityCreatedEvent$1 {
334
+ entity?: string;
335
+ }
336
+ interface EntityUpdatedEvent$1 {
337
+ /**
338
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
339
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
340
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
341
+ */
342
+ currentEntity?: string;
343
+ }
344
+ interface EntityDeletedEvent$1 {
345
+ /** Entity that was deleted */
346
+ deletedEntity?: string | null;
347
+ }
348
+ interface ActionEvent$1 {
349
+ body?: string;
350
+ }
351
+ interface MessageEnvelope$1 {
352
+ /** App instance ID. */
353
+ instanceId?: string | null;
354
+ /** Event type. */
355
+ eventType?: string;
356
+ /** The identification type and identity data. */
357
+ identity?: IdentificationData$1;
358
+ /** Stringify payload. */
359
+ data?: string;
360
+ }
361
+ interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
362
+ /** ID of a site visitor that has not logged in to the site. */
363
+ anonymousVisitorId?: string;
364
+ /** ID of a site visitor that has logged in to the site. */
365
+ memberId?: string;
366
+ /** ID of a Wix user (site owner, contributor, etc.). */
367
+ wixUserId?: string;
368
+ /** ID of an app. */
369
+ appId?: string;
370
+ /** @readonly */
371
+ identityType?: WebhookIdentityType$1;
372
+ }
373
+ /** @oneof */
374
+ interface IdentificationDataIdOneOf$1 {
375
+ /** ID of a site visitor that has not logged in to the site. */
376
+ anonymousVisitorId?: string;
377
+ /** ID of a site visitor that has logged in to the site. */
378
+ memberId?: string;
379
+ /** ID of a Wix user (site owner, contributor, etc.). */
380
+ wixUserId?: string;
381
+ /** ID of an app. */
382
+ appId?: string;
383
+ }
384
+ declare enum WebhookIdentityType$1 {
385
+ UNKNOWN = "UNKNOWN",
386
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
387
+ MEMBER = "MEMBER",
388
+ WIX_USER = "WIX_USER",
389
+ APP = "APP"
390
+ }
391
+ interface CreateBadgeResponseNonNullableFields {
392
+ badge?: {
393
+ _id: string;
394
+ };
395
+ }
396
+ interface UpdateBadgeResponseNonNullableFields {
397
+ badge?: {
398
+ _id: string;
399
+ };
400
+ }
401
+ interface ListBadgesResponseNonNullableFields {
402
+ badges: {
403
+ _id: string;
404
+ }[];
405
+ }
406
+ interface GetBadgeResponseNonNullableFields {
407
+ badge?: {
408
+ _id: string;
409
+ };
410
+ }
411
+ interface AssignBadgeResponseNonNullableFields {
412
+ memberIds: string[];
413
+ }
414
+ interface ListMembersResponseNonNullableFields$1 {
415
+ memberIds: string[];
416
+ }
417
+ interface ListMembersBadgeIdsResponseNonNullableFields {
418
+ memberBadgeIds: {
419
+ memberId: string;
420
+ badgeIds: string[];
421
+ }[];
422
+ }
423
+ interface GetMemberCountsPerBadgeResponseNonNullableFields {
424
+ badgeMemberCounts: {
425
+ badgeId: string;
426
+ memberCount: number;
427
+ }[];
428
+ }
429
+ interface UpdateBadgesDisplayOrderResponseNonNullableFields {
430
+ badges: {
431
+ _id: string;
432
+ }[];
433
+ }
434
+ interface BaseEventMetadata$1 {
435
+ /** App instance ID. */
436
+ instanceId?: string | null;
437
+ /** Event type. */
438
+ eventType?: string;
439
+ /** The identification type and identity data. */
440
+ identity?: IdentificationData$1;
441
+ }
442
+ interface EventMetadata$1 extends BaseEventMetadata$1 {
443
+ /**
444
+ * Unique event ID.
445
+ * Allows clients to ignore duplicate webhooks.
446
+ */
447
+ _id?: string;
448
+ /**
449
+ * Assumes actions are also always typed to an entity_type
450
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
451
+ */
452
+ entityFqdn?: string;
453
+ /**
454
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
455
+ * This is although the created/updated/deleted notion is duplication of the oneof types
456
+ * Example: created/updated/deleted/started/completed/email_opened
457
+ */
458
+ slug?: string;
459
+ /** ID of the entity associated with the event. */
460
+ entityId?: string;
461
+ /** Event timestamp. */
462
+ eventTime?: Date;
463
+ /**
464
+ * Whether the event was triggered as a result of a privacy regulation application
465
+ * (for example, GDPR).
466
+ */
467
+ triggeredByAnonymizeRequest?: boolean | null;
468
+ /** If present, indicates the action that triggered the event. */
469
+ originatedFrom?: string | null;
470
+ /**
471
+ * A sequence number defining the order of updates to the underlying entity.
472
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
473
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
474
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
475
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
476
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
477
+ */
478
+ entityEventSequence?: string | null;
479
+ }
480
+ interface BadgeCreatedEnvelope {
481
+ entity: Badge;
482
+ metadata: EventMetadata$1;
483
+ }
484
+ interface BadgeUpdatedEnvelope {
485
+ entity: Badge;
486
+ metadata: EventMetadata$1;
487
+ }
488
+ interface BadgeDeletedEnvelope {
489
+ metadata: EventMetadata$1;
490
+ }
491
+ interface BadgeAssignedEnvelope {
492
+ data: BadgeAssigned;
493
+ metadata: EventMetadata$1;
494
+ }
495
+ interface BadgeUnassignedEnvelope {
496
+ data: BadgeUnassigned;
497
+ metadata: EventMetadata$1;
498
+ }
499
+ interface UpdateBadge {
500
+ /**
501
+ * Badge ID.
502
+ * @readonly
503
+ */
504
+ _id?: string;
505
+ /** Text displayed on the badge in the Wix UI. */
506
+ title?: string | null;
507
+ /** Badge description. */
508
+ description?: string | null;
509
+ /**
510
+ * Badge background color in hexadecimal RGB format. Uppercase letters only.
511
+ *
512
+ * Default: `#796EFF ` (purple).
513
+ */
514
+ backgroundColor?: string | null;
515
+ /**
516
+ * Badge text color in hexadecimal RGB format. Uppercase letters only.
517
+ *
518
+ * Default: `"#FFFFFF"` (white).
519
+ */
520
+ textColor?: string | null;
521
+ /**
522
+ * Badge icon as an SVG image. One of:
523
+ *
524
+ * - An external web URL in the following format: `http(s)://<image url>`.
525
+ * - 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.
526
+ */
527
+ icon?: string | null;
528
+ /**
529
+ * Whether the badge has special permissions
530
+ * to access specific members-only pages.
531
+ * When `true`, members with the badge receive special permissions,
532
+ * and site contributors can
533
+ * [manage badge permissions](https://support.wix.com/en/article/setting-permissions-for-a-member-badge)
534
+ * in the Dashboard.
535
+ * When `false`, members with the badge receive no special permissions.
536
+ */
537
+ permissionsEnabled?: boolean | null;
538
+ /**
539
+ * Slugified name. Used to represent the badge in a URL.
540
+ * @readonly
541
+ */
542
+ slug?: string | null;
543
+ /**
544
+ * Date the badge was created.
545
+ * @readonly
546
+ */
547
+ _createdDate?: Date;
548
+ /**
549
+ * Date the badge was updated.
550
+ * @readonly
551
+ */
552
+ _updatedDate?: Date;
553
+ }
554
+ interface ListBadgesOptions {
555
+ /** Pagination options. */
556
+ paging?: Paging$2;
557
+ }
558
+ interface ListMembersByBadgeOptions {
559
+ /** Pagination options. */
560
+ paging?: Paging$2;
561
+ }
562
+
563
+ interface HttpClient {
564
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
565
+ }
566
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
567
+ type HttpResponse<T = any> = {
568
+ data: T;
569
+ status: number;
570
+ statusText: string;
571
+ headers: any;
572
+ request?: any;
573
+ };
574
+ type RequestOptions<_TResponse = any, Data = any> = {
575
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
576
+ url: string;
577
+ data?: Data;
578
+ params?: URLSearchParams;
579
+ } & APIMetadata;
580
+ type APIMetadata = {
581
+ methodFqn?: string;
582
+ entityFqdn?: string;
583
+ packageName?: string;
584
+ };
585
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
586
+ __type: 'event-definition';
587
+ type: Type;
588
+ isDomainEvent?: boolean;
589
+ transformations?: unknown;
590
+ __payload: Payload;
591
+ };
592
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
593
+
594
+ declare const __metadata$2: {
595
+ PACKAGE_NAME: string;
596
+ };
597
+ declare function createBadge(httpClient: HttpClient): (badge: Badge) => Promise<Badge & {
598
+ _id: string;
599
+ }>;
600
+ declare function updateBadge(httpClient: HttpClient): (_id: string, badge: UpdateBadge) => Promise<Badge & {
601
+ _id: string;
602
+ }>;
603
+ declare function listBadges(httpClient: HttpClient): (options?: ListBadgesOptions) => Promise<ListBadgesResponse & ListBadgesResponseNonNullableFields>;
604
+ declare function getBadge(httpClient: HttpClient): (_id: string) => Promise<Badge & {
605
+ _id: string;
606
+ }>;
607
+ declare function deleteBadge(httpClient: HttpClient): (_id: string) => Promise<void>;
608
+ declare function assignBadge(httpClient: HttpClient): (_id: string, memberIds: string[]) => Promise<AssignBadgeResponse & AssignBadgeResponseNonNullableFields>;
609
+ declare function unassignBadge(httpClient: HttpClient): (_id: string, memberIds: string[]) => Promise<void>;
610
+ declare function listMembersByBadge(httpClient: HttpClient): (_id: string, options?: ListMembersByBadgeOptions) => Promise<ListMembersResponse$2 & ListMembersResponseNonNullableFields$1>;
611
+ declare function listBadgesPerMember(httpClient: HttpClient): (memberIds: string[]) => Promise<ListMembersBadgeIdsResponse & ListMembersBadgeIdsResponseNonNullableFields>;
612
+ declare function getMemberCountsPerBadge(httpClient: HttpClient): () => Promise<GetMemberCountsPerBadgeResponse & GetMemberCountsPerBadgeResponseNonNullableFields>;
613
+ declare function updateBadgesDisplayOrder(httpClient: HttpClient): (badgeIds: string[]) => Promise<UpdateBadgesDisplayOrderResponse & UpdateBadgesDisplayOrderResponseNonNullableFields>;
614
+ declare const onBadgeCreated: EventDefinition<BadgeCreatedEnvelope, "wix.badges.v3.badge_created">;
615
+ declare const onBadgeUpdated: EventDefinition<BadgeUpdatedEnvelope, "wix.badges.v3.badge_updated">;
616
+ declare const onBadgeDeleted: EventDefinition<BadgeDeletedEnvelope, "wix.badges.v3.badge_deleted">;
617
+ declare const onBadgeAssigned: EventDefinition<BadgeAssignedEnvelope, "wix.badges.v3.badge_badge_assigned">;
618
+ declare const onBadgeUnassigned: EventDefinition<BadgeUnassignedEnvelope, "wix.badges.v3.badge_badge_unassigned">;
619
+
620
+ type index_d$2_AssignBadgeRequest = AssignBadgeRequest;
621
+ type index_d$2_AssignBadgeResponse = AssignBadgeResponse;
622
+ type index_d$2_AssignBadgeResponseNonNullableFields = AssignBadgeResponseNonNullableFields;
623
+ type index_d$2_AssignBadgesRequest = AssignBadgesRequest;
624
+ type index_d$2_AssignBadgesResponse = AssignBadgesResponse;
625
+ type index_d$2_Badge = Badge;
626
+ type index_d$2_BadgeAssigned = BadgeAssigned;
627
+ type index_d$2_BadgeAssignedEnvelope = BadgeAssignedEnvelope;
628
+ type index_d$2_BadgeCreatedEnvelope = BadgeCreatedEnvelope;
629
+ type index_d$2_BadgeDeletedEnvelope = BadgeDeletedEnvelope;
630
+ type index_d$2_BadgeMemberCount = BadgeMemberCount;
631
+ type index_d$2_BadgeUnassigned = BadgeUnassigned;
632
+ type index_d$2_BadgeUnassignedEnvelope = BadgeUnassignedEnvelope;
633
+ type index_d$2_BadgeUpdatedEnvelope = BadgeUpdatedEnvelope;
634
+ type index_d$2_CountBadgesRequest = CountBadgesRequest;
635
+ type index_d$2_CountBadgesResponse = CountBadgesResponse;
636
+ type index_d$2_CreateBadgeRequest = CreateBadgeRequest;
637
+ type index_d$2_CreateBadgeResponse = CreateBadgeResponse;
638
+ type index_d$2_CreateBadgeResponseNonNullableFields = CreateBadgeResponseNonNullableFields;
639
+ type index_d$2_DeleteBadgeRequest = DeleteBadgeRequest;
640
+ type index_d$2_DeleteBadgeResponse = DeleteBadgeResponse;
641
+ type index_d$2_GetBadgeRequest = GetBadgeRequest;
642
+ type index_d$2_GetBadgeResponse = GetBadgeResponse;
643
+ type index_d$2_GetBadgeResponseNonNullableFields = GetBadgeResponseNonNullableFields;
644
+ type index_d$2_GetMemberCountsPerBadgeRequest = GetMemberCountsPerBadgeRequest;
645
+ type index_d$2_GetMemberCountsPerBadgeResponse = GetMemberCountsPerBadgeResponse;
646
+ type index_d$2_GetMemberCountsPerBadgeResponseNonNullableFields = GetMemberCountsPerBadgeResponseNonNullableFields;
647
+ type index_d$2_ListBadgesOptions = ListBadgesOptions;
648
+ type index_d$2_ListBadgesRequest = ListBadgesRequest;
649
+ type index_d$2_ListBadgesResponse = ListBadgesResponse;
650
+ type index_d$2_ListBadgesResponseNonNullableFields = ListBadgesResponseNonNullableFields;
651
+ type index_d$2_ListMembersBadgeIdsRequest = ListMembersBadgeIdsRequest;
652
+ type index_d$2_ListMembersBadgeIdsResponse = ListMembersBadgeIdsResponse;
653
+ type index_d$2_ListMembersBadgeIdsResponseNonNullableFields = ListMembersBadgeIdsResponseNonNullableFields;
654
+ type index_d$2_ListMembersByBadgeOptions = ListMembersByBadgeOptions;
655
+ type index_d$2_ListMembersWithBadgesRequest = ListMembersWithBadgesRequest;
656
+ type index_d$2_ListMembersWithBadgesResponse = ListMembersWithBadgesResponse;
657
+ type index_d$2_MemberBadgeIds = MemberBadgeIds;
658
+ type index_d$2_QueryBadgesRequest = QueryBadgesRequest;
659
+ type index_d$2_QueryBadgesResponse = QueryBadgesResponse;
660
+ type index_d$2_UnassignBadgeRequest = UnassignBadgeRequest;
661
+ type index_d$2_UnassignBadgeResponse = UnassignBadgeResponse;
662
+ type index_d$2_UpdateBadge = UpdateBadge;
663
+ type index_d$2_UpdateBadgeRequest = UpdateBadgeRequest;
664
+ type index_d$2_UpdateBadgeResponse = UpdateBadgeResponse;
665
+ type index_d$2_UpdateBadgeResponseNonNullableFields = UpdateBadgeResponseNonNullableFields;
666
+ type index_d$2_UpdateBadgesDisplayOrderRequest = UpdateBadgesDisplayOrderRequest;
667
+ type index_d$2_UpdateBadgesDisplayOrderResponse = UpdateBadgesDisplayOrderResponse;
668
+ type index_d$2_UpdateBadgesDisplayOrderResponseNonNullableFields = UpdateBadgesDisplayOrderResponseNonNullableFields;
669
+ declare const index_d$2_assignBadge: typeof assignBadge;
670
+ declare const index_d$2_createBadge: typeof createBadge;
671
+ declare const index_d$2_deleteBadge: typeof deleteBadge;
672
+ declare const index_d$2_getBadge: typeof getBadge;
673
+ declare const index_d$2_getMemberCountsPerBadge: typeof getMemberCountsPerBadge;
674
+ declare const index_d$2_listBadges: typeof listBadges;
675
+ declare const index_d$2_listBadgesPerMember: typeof listBadgesPerMember;
676
+ declare const index_d$2_listMembersByBadge: typeof listMembersByBadge;
677
+ declare const index_d$2_onBadgeAssigned: typeof onBadgeAssigned;
678
+ declare const index_d$2_onBadgeCreated: typeof onBadgeCreated;
679
+ declare const index_d$2_onBadgeDeleted: typeof onBadgeDeleted;
680
+ declare const index_d$2_onBadgeUnassigned: typeof onBadgeUnassigned;
681
+ declare const index_d$2_onBadgeUpdated: typeof onBadgeUpdated;
682
+ declare const index_d$2_unassignBadge: typeof unassignBadge;
683
+ declare const index_d$2_updateBadge: typeof updateBadge;
684
+ declare const index_d$2_updateBadgesDisplayOrder: typeof updateBadgesDisplayOrder;
685
+ declare namespace index_d$2 {
686
+ export { type ActionEvent$1 as ActionEvent, type index_d$2_AssignBadgeRequest as AssignBadgeRequest, type index_d$2_AssignBadgeResponse as AssignBadgeResponse, type index_d$2_AssignBadgeResponseNonNullableFields as AssignBadgeResponseNonNullableFields, type index_d$2_AssignBadgesRequest as AssignBadgesRequest, type index_d$2_AssignBadgesResponse as AssignBadgesResponse, type index_d$2_Badge as Badge, type index_d$2_BadgeAssigned as BadgeAssigned, type index_d$2_BadgeAssignedEnvelope as BadgeAssignedEnvelope, type index_d$2_BadgeCreatedEnvelope as BadgeCreatedEnvelope, type index_d$2_BadgeDeletedEnvelope as BadgeDeletedEnvelope, type index_d$2_BadgeMemberCount as BadgeMemberCount, type index_d$2_BadgeUnassigned as BadgeUnassigned, type index_d$2_BadgeUnassignedEnvelope as BadgeUnassignedEnvelope, type index_d$2_BadgeUpdatedEnvelope as BadgeUpdatedEnvelope, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_CountBadgesRequest as CountBadgesRequest, type index_d$2_CountBadgesResponse as CountBadgesResponse, type index_d$2_CreateBadgeRequest as CreateBadgeRequest, type index_d$2_CreateBadgeResponse as CreateBadgeResponse, type index_d$2_CreateBadgeResponseNonNullableFields as CreateBadgeResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type Cursors$1 as Cursors, type index_d$2_DeleteBadgeRequest as DeleteBadgeRequest, type index_d$2_DeleteBadgeResponse as DeleteBadgeResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$2_GetBadgeRequest as GetBadgeRequest, type index_d$2_GetBadgeResponse as GetBadgeResponse, type index_d$2_GetBadgeResponseNonNullableFields as GetBadgeResponseNonNullableFields, type index_d$2_GetMemberCountsPerBadgeRequest as GetMemberCountsPerBadgeRequest, type index_d$2_GetMemberCountsPerBadgeResponse as GetMemberCountsPerBadgeResponse, type index_d$2_GetMemberCountsPerBadgeResponseNonNullableFields as GetMemberCountsPerBadgeResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$2_ListBadgesOptions as ListBadgesOptions, type index_d$2_ListBadgesRequest as ListBadgesRequest, type index_d$2_ListBadgesResponse as ListBadgesResponse, type index_d$2_ListBadgesResponseNonNullableFields as ListBadgesResponseNonNullableFields, type index_d$2_ListMembersBadgeIdsRequest as ListMembersBadgeIdsRequest, type index_d$2_ListMembersBadgeIdsResponse as ListMembersBadgeIdsResponse, type index_d$2_ListMembersBadgeIdsResponseNonNullableFields as ListMembersBadgeIdsResponseNonNullableFields, type index_d$2_ListMembersByBadgeOptions as ListMembersByBadgeOptions, type ListMembersRequest$2 as ListMembersRequest, type ListMembersResponse$2 as ListMembersResponse, type ListMembersResponseNonNullableFields$1 as ListMembersResponseNonNullableFields, type index_d$2_ListMembersWithBadgesRequest as ListMembersWithBadgesRequest, type index_d$2_ListMembersWithBadgesResponse as ListMembersWithBadgesResponse, type index_d$2_MemberBadgeIds as MemberBadgeIds, type MessageEnvelope$1 as MessageEnvelope, type Paging$2 as Paging, type PagingMetadata$1 as PagingMetadata, type index_d$2_QueryBadgesRequest as QueryBadgesRequest, type index_d$2_QueryBadgesResponse as QueryBadgesResponse, SortOrder$1 as SortOrder, type Sorting$2 as Sorting, type index_d$2_UnassignBadgeRequest as UnassignBadgeRequest, type index_d$2_UnassignBadgeResponse as UnassignBadgeResponse, type index_d$2_UpdateBadge as UpdateBadge, type index_d$2_UpdateBadgeRequest as UpdateBadgeRequest, type index_d$2_UpdateBadgeResponse as UpdateBadgeResponse, type index_d$2_UpdateBadgeResponseNonNullableFields as UpdateBadgeResponseNonNullableFields, type index_d$2_UpdateBadgesDisplayOrderRequest as UpdateBadgesDisplayOrderRequest, type index_d$2_UpdateBadgesDisplayOrderResponse as UpdateBadgesDisplayOrderResponse, type index_d$2_UpdateBadgesDisplayOrderResponseNonNullableFields as UpdateBadgesDisplayOrderResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_assignBadge as assignBadge, index_d$2_createBadge as createBadge, index_d$2_deleteBadge as deleteBadge, index_d$2_getBadge as getBadge, index_d$2_getMemberCountsPerBadge as getMemberCountsPerBadge, index_d$2_listBadges as listBadges, index_d$2_listBadgesPerMember as listBadgesPerMember, index_d$2_listMembersByBadge as listMembersByBadge, index_d$2_onBadgeAssigned as onBadgeAssigned, index_d$2_onBadgeCreated as onBadgeCreated, index_d$2_onBadgeDeleted as onBadgeDeleted, index_d$2_onBadgeUnassigned as onBadgeUnassigned, index_d$2_onBadgeUpdated as onBadgeUpdated, index_d$2_unassignBadge as unassignBadge, index_d$2_updateBadge as updateBadge, index_d$2_updateBadgesDisplayOrder as updateBadgesDisplayOrder };
687
+ }
688
+
689
+ interface Member$1 {
690
+ /**
691
+ * Member ID.
692
+ * @readonly
693
+ */
694
+ _id?: string;
695
+ /**
696
+ * @internal
697
+ * @internal
698
+ * @readonly
699
+ */
700
+ emailVerified?: boolean;
701
+ /**
702
+ * @internal
703
+ * @internal */
704
+ role?: Role;
705
+ /**
706
+ * Email used by the member to log in to the site.
707
+ *
708
+ *
709
+ */
710
+ loginEmail?: string | null;
711
+ /**
712
+ * @internal
713
+ * @internal */
714
+ memberName?: string | null;
715
+ /** Member's first name. */
716
+ firstName?: string | null;
717
+ /** Member's last name. */
718
+ lastName?: string | null;
719
+ /**
720
+ * @internal
721
+ * @internal
722
+ * @deprecated
723
+ */
724
+ imageUrl?: string | null;
725
+ /** Name that identifies the member to other members. Displayed on the member's profile page and interactions in the forum or blog. */
726
+ nickname?: string | null;
727
+ /**
728
+ * Member privacy status.
729
+ *
730
+ * One of:
731
+ * - `"PUBLIC"`: Member is visible to everyone.
732
+ * - `"PRIVATE"`: Member is hidden from site visitors and other site members. Member is returned only to site contributors and apps with the appropriate permissions.
733
+ * - `"UNKNOWN"`: Insufficient permissions to get the status.
734
+ */
735
+ profilePrivacyStatus?: SiteMemberPrivacyStatus;
736
+ /** URL segment that determines the member's profile page. */
737
+ slug?: string | null;
738
+ /**
739
+ * @internal
740
+ * @internal */
741
+ language?: string | null;
742
+ /**
743
+ * Member site access status.
744
+ *
745
+ * One of:
746
+ * - `"PENDING"`: Member created and is waiting for approval by site owner.
747
+ * - `"APPROVED"`: Member can log in to the site.
748
+ * - "OFFLINE"`: Member is a guest author for the site blog and cannot log in to the site.
749
+ * - `"BLOCKED"`: Member is blocked and cannot log in to the site.
750
+ * - `"UNKNOWN"`: Insufficient permissions to get the status.
751
+ */
752
+ status?: SiteMemberStatus;
753
+ /**
754
+ * Date and time when the member was created.
755
+ * @readonly
756
+ */
757
+ creationDate?: Date;
758
+ /**
759
+ * Date and time when the member was last updated.
760
+ *
761
+ *
762
+ * @readonly
763
+ */
764
+ lastUpdateDate?: Date;
765
+ /**
766
+ * Date and time when the member last logged in to the site.
767
+ *
768
+ * @readonly
769
+ */
770
+ lastLoginDate?: Date;
771
+ /**
772
+ * List of email addresses.
773
+ *
774
+ *
775
+ */
776
+ emails?: string[];
777
+ /** List of phone numbers. */
778
+ phones?: string[];
779
+ /** List of street addresses. */
780
+ addresses?: Address$1[];
781
+ /**
782
+ * @internal
783
+ * @internal */
784
+ labels?: string[];
785
+ /**
786
+ * 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.
787
+ *
788
+ * Only custom fields added to the member profile in the Dashboard are available through the Members API. Empty fields are not returned.
789
+ *
790
+ * When updating a member, `name` is ignored.
791
+ */
792
+ customFields?: CustomField$1[];
793
+ /** Member's profile picture URL. */
794
+ picture?: string;
795
+ /**
796
+ * @internal
797
+ * @internal */
798
+ userId?: string | null;
799
+ /**
800
+ * @internal
801
+ * @internal */
802
+ groups?: Group[];
803
+ /**
804
+ * Member's contact ID.
805
+ * @readonly
806
+ */
807
+ contactId?: string | null;
808
+ }
809
+ declare enum Role {
810
+ UNDEFINED_ROLE = "UNDEFINED_ROLE",
811
+ MEMBER = "MEMBER",
812
+ OWNER = "OWNER",
813
+ CONTRIBUTOR = "CONTRIBUTOR"
814
+ }
815
+ declare enum SiteMemberPrivacyStatus {
816
+ UNDEFINED = "UNDEFINED",
817
+ PUBLIC = "PUBLIC",
818
+ PRIVATE = "PRIVATE",
819
+ COMMUNITY = "COMMUNITY"
820
+ }
821
+ declare enum SiteMemberStatus {
822
+ UNDEFINED_STATUS = "UNDEFINED_STATUS",
823
+ APPLICANT = "APPLICANT",
824
+ ACTIVE = "ACTIVE",
825
+ INACTIVE = "INACTIVE",
826
+ BLOCKED = "BLOCKED",
827
+ OFFLINE_ONLY = "OFFLINE_ONLY"
828
+ }
829
+ interface Address$1 {
830
+ /** Street address. */
831
+ street?: string | null;
832
+ /** City name. */
833
+ city?: string | null;
834
+ /** Region name. */
835
+ region?: string | null;
836
+ /** 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
837
+ country?: string | null;
838
+ /** Postal code. */
839
+ postalCode?: string | null;
840
+ }
841
+ interface CustomField$1 extends CustomFieldValueOneOf {
842
+ /** String value. */
843
+ strValue?: string | null;
844
+ /** Number value. */
845
+ numValue?: number;
846
+ /** Date value. */
847
+ dateValue?: Date;
848
+ /** Display name. */
849
+ name?: string;
850
+ }
851
+ /** @oneof */
852
+ interface CustomFieldValueOneOf {
853
+ strValue?: string | null;
854
+ numValue?: number;
855
+ dateValue?: Date;
856
+ }
857
+ interface Group {
858
+ _id?: string;
859
+ name?: string;
860
+ type?: string;
861
+ }
862
+ interface ListMembersRequest$1 {
863
+ /** for paging - maximum number of records to retrieve */
864
+ limit?: number;
865
+ /** for paging - how many records to skip */
866
+ offset?: number;
867
+ /** sort order - list of field and direction tuples. e.g. `["first_name:asc", "last_name:desc"]` */
868
+ order?: string[];
869
+ /** partial response request - list of field names to get back in response */
870
+ fields?: string[];
871
+ /** filter members with specific status */
872
+ status?: SiteMemberStatus;
873
+ /** whether to include contact details */
874
+ includeContactDetails?: boolean;
875
+ }
876
+ interface ListMembersResponse$1 {
877
+ /** members returned by List request */
878
+ members?: Member$1[];
879
+ /** pagination information */
880
+ pagination?: PaginationResponse;
881
+ }
882
+ interface PaginationResponse {
883
+ /** offset that was applied to the request */
884
+ offset?: number;
885
+ /** limit that was applied to the request */
886
+ limit?: number;
887
+ /** total rows available */
888
+ total?: number;
889
+ /** indication that the total count was too expensive to calculate */
890
+ tooManyToCount?: boolean;
891
+ }
892
+ interface SearchRequest {
893
+ /** paging - offset and limit */
894
+ paging?: Paging$1;
895
+ /** search by field */
896
+ searchBy?: SearchBy;
897
+ /** partial response request - list of field names to get back in response */
898
+ fields?: string[];
899
+ /** filters */
900
+ filterBy?: FilterBy;
901
+ /** ASC or DESC order */
902
+ sort?: Sorting$1;
903
+ }
904
+ interface Paging$1 {
905
+ /** Number of items to load. */
906
+ limit?: number | null;
907
+ /** Number of items to skip in the current sort order. */
908
+ offset?: number | null;
909
+ }
910
+ interface SearchBy {
911
+ /** nick name filter */
912
+ nickname?: string | null;
913
+ }
914
+ interface FilterBy {
915
+ /** filter members with specific status */
916
+ status?: string | null;
917
+ /** group Id filter */
918
+ groupId?: string | null;
919
+ /** privacy status filter */
920
+ privacyStatus?: SiteMemberPrivacyStatus;
921
+ /** roles filter */
922
+ roles?: Role[];
923
+ }
924
+ declare enum Sorting$1 {
925
+ DESC = "DESC",
926
+ ASC = "ASC"
927
+ }
928
+ interface SearchResponse {
929
+ /** members returned by List request */
930
+ members?: Member$1[];
931
+ /** pagination information */
932
+ pagination?: PaginationResponse;
933
+ }
934
+ interface GetCurrentMemberRequest {
935
+ }
936
+ interface GetMemberResponse$1 {
937
+ member?: Member$1;
938
+ }
939
+ interface GetMemberRequest$1 {
940
+ /** unique identifier of the requested member(required) */
941
+ _id?: string;
942
+ /** whether to include contact details */
943
+ includeContactDetails?: boolean;
944
+ /** whether to include groups details */
945
+ includeGroupsDetails?: boolean;
946
+ }
947
+ interface GetUserMembershipsRequest {
948
+ /** unique identifier of the requested **Wix** user */
949
+ userId?: string;
950
+ /** paging - offset and limit ( the max limit for page is 200) */
951
+ paging?: Paging$1;
952
+ }
953
+ interface GetUserMembershipsResponse {
954
+ /** sequence of member's of the user with there metaSiteId */
955
+ userMemberships?: UserMembership[];
956
+ }
957
+ interface UserMembership {
958
+ /** member id */
959
+ memberId?: string;
960
+ /** meta site id whom the member existing on */
961
+ metasiteId?: string;
962
+ }
963
+ interface GetMemberRoleRequest {
964
+ _id?: string;
965
+ }
966
+ interface GetMemberRoleResponse {
967
+ /**
968
+ * member's role:
969
+ *
970
+ * `OWNER` - member that belongs to site owner
971
+ * `CONTRIBUTOR` - member that belongs to a contributor in site
972
+ * `MEMBER` - other members that registered to site
973
+ */
974
+ role?: Role;
975
+ userId?: string | null;
976
+ status?: SiteMemberStatus;
977
+ contactId?: string | null;
978
+ }
979
+ interface GetMemberRolesRequest {
980
+ /** user_id and/or contact_id */
981
+ ids?: string[];
982
+ }
983
+ interface GetMemberRolesResponse {
984
+ idsToRoles?: Record<string, MemberRole>;
985
+ }
986
+ interface MemberRole {
987
+ /**
988
+ * member's role:
989
+ *
990
+ * `OWNER` - member that belongs to site owner
991
+ * `CONTRIBUTOR` - member that belongs to a contributor in site
992
+ * `MEMBER` - other members that registered to site
993
+ */
994
+ role?: Role;
995
+ userId?: string | null;
996
+ status?: SiteMemberStatus;
997
+ contactId?: string | null;
998
+ }
999
+ interface BatchGetMembersRequest {
1000
+ /** unique identifier of the requested member(required) */
1001
+ ids?: string[];
1002
+ /** whether to include contact details */
1003
+ includeContactDetails?: boolean;
1004
+ /** whether to include groups details */
1005
+ includeGroupsDetails?: boolean;
1006
+ }
1007
+ interface BatchGetMembersResponse {
1008
+ /** lest of members details */
1009
+ members?: Member$1[];
1010
+ }
1011
+ interface GetAuthorizedPagesRequest {
1012
+ _id?: string;
1013
+ siteId?: string;
1014
+ }
1015
+ interface GetAuthorizedPagesResponse {
1016
+ authorizedPages?: Record<string, string>;
1017
+ }
1018
+ interface UpdateMemberRequest$1 {
1019
+ /** member id */
1020
+ _id?: string;
1021
+ /** the Member object containing the fields to update */
1022
+ member?: Member$1;
1023
+ }
1024
+ interface UpdateMemberResponse$1 {
1025
+ /** updated member */
1026
+ member?: Member$1;
1027
+ }
1028
+ interface ChangeLoginEmailRequest {
1029
+ /** Member ID. */
1030
+ _id: string;
1031
+ /** New login email address. */
1032
+ newEmail?: string;
1033
+ /**
1034
+ * @internal
1035
+ * @internal */
1036
+ revokeCurrentSessions?: boolean | null;
1037
+ }
1038
+ interface ChangeLoginEmailResponse {
1039
+ /** Member with the updated login email address. */
1040
+ member?: Member$1;
1041
+ }
1042
+ interface QueryMembersRequest$1 {
1043
+ /**
1044
+ * query - See https://github.com/wix-private/platformization-guidelines/blob/master/Server/API-Query.md
1045
+ * supported fields: `id`, `login_email`, `status`, `language`, `date_created`, `last_update_date`, `flags`, `name`, `first_name`, `last_name`, `nickname`, `email_verified`, `privacy_status`
1046
+ */
1047
+ query?: string;
1048
+ /** whether to include contact details */
1049
+ includeContactDetails?: boolean;
1050
+ /** whether to include offline members */
1051
+ includeOfflineMembers?: boolean;
1052
+ }
1053
+ interface QueryMembersResponse$1 {
1054
+ /** members matching the query criteria */
1055
+ members?: Member$1[];
1056
+ /** pagination information */
1057
+ pagination?: PaginationResponse;
1058
+ }
1059
+ interface DeleteMemberRequest$1 {
1060
+ /** id of member that should be deleted (required) */
1061
+ _id?: string;
1062
+ /** defines if the request is a bulk action */
1063
+ isBulkAction?: boolean;
1064
+ }
1065
+ interface DeleteMemberResponse$1 {
1066
+ }
1067
+ interface ApproveMemberRequest$1 extends ApproveMemberRequestMemberIdentifierOneOf {
1068
+ /** ID of the member to approve. */
1069
+ _id?: string;
1070
+ /** Login email address of the member to approve. */
1071
+ email?: string;
1072
+ /** Approval token returned by the [`register()`](#register) function. */
1073
+ token?: string;
1074
+ }
1075
+ /** @oneof */
1076
+ interface ApproveMemberRequestMemberIdentifierOneOf {
1077
+ /** ID of the member to approve. */
1078
+ _id?: string;
1079
+ /** Login email address of the member to approve. */
1080
+ email?: string;
1081
+ /**
1082
+ * <!--ONLY:VELO
1083
+ * Approval token returned by `register()`.
1084
+ * <!--END:ONLY:VELO-->
1085
+ */
1086
+ token?: string;
1087
+ }
1088
+ interface ApproveMemberResponse$1 {
1089
+ /** Approval session token. */
1090
+ session?: Session;
1091
+ }
1092
+ interface Session {
1093
+ /** Session token when the current member is logged into the site. */
1094
+ token?: string | null;
1095
+ }
1096
+ interface BlockMemberRequest$1 extends BlockMemberRequestMemberIdentifierOneOf {
1097
+ /** ID of the member to block. */
1098
+ _id?: string;
1099
+ /** Login email address of the member to block. */
1100
+ email?: string;
1101
+ /**
1102
+ * @internal
1103
+ * @internal */
1104
+ source?: Source;
1105
+ }
1106
+ /** @oneof */
1107
+ interface BlockMemberRequestMemberIdentifierOneOf {
1108
+ _id?: string;
1109
+ /** Login email address of the member to block. */
1110
+ email?: string;
1111
+ }
1112
+ declare enum Source {
1113
+ UNKNOWN = "UNKNOWN",
1114
+ HANDLING_SPAM = "HANDLING_SPAM"
1115
+ }
1116
+ interface BlockMemberResponse$1 {
1117
+ }
1118
+ interface MakeMemberOfflineRequest {
1119
+ /** unique identifier of the requested member */
1120
+ _id?: string;
1121
+ }
1122
+ interface MakeMemberOfflineResponse {
1123
+ }
1124
+ /** Registration options. */
1125
+ interface RegisterRequest {
1126
+ /** Login email address for the new site member. */
1127
+ email?: string;
1128
+ /**
1129
+ * Password the new site member will use to log in.
1130
+ *
1131
+ * Must be 4 to 15 ASCII-printable characters.
1132
+ */
1133
+ password?: string;
1134
+ /** Contact information for the registered member. */
1135
+ contactInfo?: MemberContactInfo;
1136
+ /**
1137
+ * @internal
1138
+ * @internal */
1139
+ dialogData?: DialogData;
1140
+ /**
1141
+ * Sets the privacy status of a new member upon registration.
1142
+ *
1143
+ * - `PUBLIC`: Member is visible to everyone.
1144
+ * - `PRIVATE`: Member is hidden from site visitors and other site members. Member is returned only to site contributors and apps with the appropriate permissions.
1145
+ * - `UNKNOWN`: Insufficient permissions to get the status.
1146
+ */
1147
+ profilePrivacyStatus?: SiteMemberPrivacyStatus;
1148
+ /**
1149
+ * @internal
1150
+ * @internal */
1151
+ isOfflineRegistration?: boolean;
1152
+ /**
1153
+ * @internal
1154
+ * @internal */
1155
+ recaptchaToken?: string | null;
1156
+ /**
1157
+ * @internal
1158
+ * @internal */
1159
+ invisibleRecaptchaToken?: string | null;
1160
+ /**
1161
+ * @internal
1162
+ * @internal */
1163
+ emailVerification?: EmailVerification;
1164
+ /**
1165
+ * @internal
1166
+ * @internal */
1167
+ isMobile?: boolean | null;
1168
+ }
1169
+ interface MemberContactInfo {
1170
+ /** First name. */
1171
+ firstName?: string | null;
1172
+ /** Last name. */
1173
+ lastName?: string | null;
1174
+ /** Contact's profile picture. */
1175
+ picture?: string | null;
1176
+ /** Contact's email addresses. */
1177
+ emails?: string[];
1178
+ /** Contact's phone numbers. */
1179
+ phones?: string[];
1180
+ /** List of contact's labels. */
1181
+ labels?: string[];
1182
+ /**
1183
+ * @internal
1184
+ * @internal */
1185
+ locale?: string | null;
1186
+ /**
1187
+ * Any number of custom fields.
1188
+ * [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
1189
+ * are used to store additional information about your site's contacts.
1190
+ * When setting a custom field, use key:value pairs,
1191
+ * where the key matches the names defined in your site's
1192
+ * [Contact List](https://support.wix.com/en/article/accessing-your-contact-list).
1193
+ * You can only set values for custom fields that already exist in the Contacts application.
1194
+ */
1195
+ customFields?: CustomField$1[];
1196
+ }
1197
+ interface DialogData {
1198
+ visitorId?: string | null;
1199
+ appId?: string | null;
1200
+ initiator?: string | null;
1201
+ }
1202
+ interface EmailVerification {
1203
+ /** ID of the verification process. */
1204
+ verificationId?: string;
1205
+ /**
1206
+ * 6-digit code for verification. Code can be between 100000 and 999999.
1207
+ *
1208
+ */
1209
+ otp?: string;
1210
+ }
1211
+ interface RegisterResponse {
1212
+ /** Newly registered member. */
1213
+ member?: Member$1;
1214
+ /**
1215
+ * in case the site is open for registration, all members are automatically
1216
+ * approved. they will get a temporary token for obtaining a valid session
1217
+ */
1218
+ session?: Session;
1219
+ /**
1220
+ * in case the site requires members approval, the registered member
1221
+ * will be an applicant until he's approved. the token can be used as a member
1222
+ * identifier for approval using the `MembersService.Approve` API
1223
+ */
1224
+ approvalToken?: string | null;
1225
+ }
1226
+ interface EmailVerificationRequired {
1227
+ /** ID of the verification process. */
1228
+ verificationId?: string;
1229
+ }
1230
+ interface EmailVerificationFailed {
1231
+ /** ID of the failed verification process. */
1232
+ verificationId?: string;
1233
+ /** Reason for verification failure. */
1234
+ verificationFailureReason?: VerificationFailureReason;
1235
+ }
1236
+ declare enum VerificationFailureReason {
1237
+ /** Default value - means no failure */
1238
+ UNSPECIFIED = "UNSPECIFIED",
1239
+ /** Bad verification code */
1240
+ BAD_CODE = "BAD_CODE",
1241
+ /** Verification code was not found */
1242
+ NOT_FOUND = "NOT_FOUND",
1243
+ /** Error while sending the code to the user */
1244
+ SEND_CODE_ERROR = "SEND_CODE_ERROR"
1245
+ }
1246
+ interface LoginRequest {
1247
+ /** Login email address. */
1248
+ email?: string;
1249
+ /** Member password. */
1250
+ password?: string;
1251
+ /**
1252
+ * @internal
1253
+ * @internal */
1254
+ recaptchaToken?: string;
1255
+ /**
1256
+ * @internal
1257
+ * @internal */
1258
+ invisibleRecaptchaToken?: string;
1259
+ /**
1260
+ * @internal
1261
+ * @internal */
1262
+ emailVerification?: EmailVerification;
1263
+ /**
1264
+ * @internal
1265
+ * @internal */
1266
+ isMobile?: boolean | null;
1267
+ }
1268
+ /** Session token for logging the member in. */
1269
+ interface LoginResponse {
1270
+ /** Session token. */
1271
+ session?: Session;
1272
+ /** the member's details */
1273
+ member?: Member$1;
1274
+ }
1275
+ interface GetResetPasswordLinkRequest {
1276
+ /** Contact ID of the member whose password will be reset. */
1277
+ contactId?: string;
1278
+ }
1279
+ interface GetResetPasswordLinkResponse {
1280
+ /**
1281
+ * Reset password link.
1282
+ * Valid for one use, up to two weeks from when it is created.
1283
+ */
1284
+ resetPasswordLink?: string;
1285
+ }
1286
+ interface SendSetPasswordEmailRequest {
1287
+ /** Login email of the member whose password will be set. */
1288
+ email: string;
1289
+ /**
1290
+ * @internal
1291
+ * @internal
1292
+ * @deprecated
1293
+ */
1294
+ requestedByMember?: boolean;
1295
+ /**
1296
+ * Whether to hide the ignore this email message .
1297
+ *
1298
+ * If `true`, the email tells the member
1299
+ * they can safely ignore
1300
+ * if they did not request the password change.
1301
+ *
1302
+ * Default: `false`.
1303
+ */
1304
+ hideIgnoreMessage?: boolean;
1305
+ }
1306
+ interface SendSetPasswordEmailResponse {
1307
+ /** Indicates if the request was successfully received. */
1308
+ accepted?: boolean;
1309
+ }
1310
+ interface ResetPasswordRequest {
1311
+ /** Contact ID of the member whose password will be reset. */
1312
+ contactId?: string;
1313
+ }
1314
+ interface ResetPasswordResponse {
1315
+ /** Indicates if the request was successfully received. */
1316
+ accepted?: boolean;
1317
+ }
1318
+ interface SocialLoginRequest extends SocialLoginRequestLoginOneOf {
1319
+ appleLogin?: AppleLogin;
1320
+ googleLogin?: GoogleLogin;
1321
+ facebookLogin?: FacebookLogin;
1322
+ /** Must either pass explicit msid OR signed instance with visitor */
1323
+ metaSiteId?: string | null;
1324
+ }
1325
+ /** @oneof */
1326
+ interface SocialLoginRequestLoginOneOf {
1327
+ appleLogin?: AppleLogin;
1328
+ googleLogin?: GoogleLogin;
1329
+ facebookLogin?: FacebookLogin;
1330
+ }
1331
+ interface AppleLogin {
1332
+ /** JWT signed by apple, contains target (aud), email etc */
1333
+ token?: string;
1334
+ }
1335
+ interface GoogleLogin {
1336
+ /** JWT signed by Google, contains target (aud), email etc */
1337
+ token?: string;
1338
+ }
1339
+ interface FacebookLogin {
1340
+ /** AccessToken created by Facebook, used to later fetch details over API */
1341
+ token?: string;
1342
+ }
1343
+ interface ChangeLoginEmailResponseNonNullableFields {
1344
+ member?: {
1345
+ _id: string;
1346
+ emailVerified: boolean;
1347
+ role: Role;
1348
+ profilePrivacyStatus: SiteMemberPrivacyStatus;
1349
+ status: SiteMemberStatus;
1350
+ emails: string[];
1351
+ phones: string[];
1352
+ addresses: Address$1[];
1353
+ labels: string[];
1354
+ customFields: {
1355
+ numValue: number;
1356
+ name: string;
1357
+ }[];
1358
+ picture: string;
1359
+ groups: {
1360
+ _id: string;
1361
+ name: string;
1362
+ type: string;
1363
+ }[];
1364
+ };
1365
+ }
1366
+ interface RegisterResponseNonNullableFields {
1367
+ member?: {
1368
+ _id: string;
1369
+ emailVerified: boolean;
1370
+ role: Role;
1371
+ profilePrivacyStatus: SiteMemberPrivacyStatus;
1372
+ status: SiteMemberStatus;
1373
+ emails: string[];
1374
+ phones: string[];
1375
+ addresses: Address$1[];
1376
+ labels: string[];
1377
+ customFields: {
1378
+ numValue: number;
1379
+ name: string;
1380
+ }[];
1381
+ picture: string;
1382
+ groups: {
1383
+ _id: string;
1384
+ name: string;
1385
+ type: string;
1386
+ }[];
1387
+ };
1388
+ }
1389
+ interface LoginResponseNonNullableFields {
1390
+ member?: {
1391
+ _id: string;
1392
+ emailVerified: boolean;
1393
+ role: Role;
1394
+ profilePrivacyStatus: SiteMemberPrivacyStatus;
1395
+ status: SiteMemberStatus;
1396
+ emails: string[];
1397
+ phones: string[];
1398
+ addresses: Address$1[];
1399
+ labels: string[];
1400
+ customFields: {
1401
+ numValue: number;
1402
+ name: string;
1403
+ }[];
1404
+ picture: string;
1405
+ groups: {
1406
+ _id: string;
1407
+ name: string;
1408
+ type: string;
1409
+ }[];
1410
+ };
1411
+ }
1412
+ interface SendSetPasswordEmailResponseNonNullableFields {
1413
+ accepted: boolean;
1414
+ }
1415
+ interface ChangeLoginEmailOptions {
1416
+ /**
1417
+ * @internal
1418
+ * @internal */
1419
+ revokeCurrentSessions?: boolean | null;
1420
+ }
1421
+ interface ApproveOptions extends ApproveMemberRequestMemberIdentifierOneOf {
1422
+ /** ID of the member to approve. */
1423
+ _id?: string;
1424
+ /** Login email address of the member to approve. */
1425
+ email?: string;
1426
+ /** Approval token returned by the [`register()`](#register) function. */
1427
+ token?: string;
1428
+ }
1429
+ interface BlockOptions extends BlockMemberRequestMemberIdentifierOneOf {
1430
+ /** ID of the member to block. */
1431
+ _id?: string;
1432
+ /** Login email address of the member to block. */
1433
+ email?: string;
1434
+ /**
1435
+ * @internal
1436
+ * @internal */
1437
+ source?: Source;
1438
+ }
1439
+ interface RegisterOptions {
1440
+ /** Contact information for the registered member. */
1441
+ contactInfo?: MemberContactInfo;
1442
+ /** @internal */
1443
+ dialogData?: DialogData;
1444
+ /**
1445
+ * Sets the privacy status of a new member upon registration.
1446
+ *
1447
+ * - `PUBLIC`: Member is visible to everyone.
1448
+ * - `PRIVATE`: Member is hidden from site visitors and other site members. Member is returned only to site contributors and apps with the appropriate permissions.
1449
+ * - `UNKNOWN`: Insufficient permissions to get the status.
1450
+ */
1451
+ profilePrivacyStatus?: SiteMemberPrivacyStatus;
1452
+ /** @internal */
1453
+ isOfflineRegistration?: boolean;
1454
+ /** @internal */
1455
+ recaptchaToken?: string | null;
1456
+ /** @internal */
1457
+ invisibleRecaptchaToken?: string | null;
1458
+ /**
1459
+ * Email verification.
1460
+ * @internal */
1461
+ emailVerification?: EmailVerification;
1462
+ /** @internal */
1463
+ isMobile?: boolean | null;
1464
+ }
1465
+ interface LoginOptions {
1466
+ /** @internal */
1467
+ recaptchaToken?: string;
1468
+ /** @internal */
1469
+ invisibleRecaptchaToken?: string;
1470
+ /** @internal */
1471
+ emailVerification?: EmailVerification;
1472
+ /** @internal */
1473
+ isMobile?: boolean | null;
1474
+ }
1475
+ interface SendSetPasswordEmailOptions {
1476
+ /**
1477
+ * @internal
1478
+ * @internal
1479
+ * @deprecated
1480
+ */
1481
+ requestedByMember?: boolean;
1482
+ /**
1483
+ * Whether to hide the ignore this email message .
1484
+ *
1485
+ * If `true`, the email tells the member
1486
+ * they can safely ignore
1487
+ * if they did not request the password change.
1488
+ *
1489
+ * Default: `false`.
1490
+ */
1491
+ hideIgnoreMessage?: boolean;
1492
+ }
1493
+
1494
+ declare const __metadata$1: {
1495
+ PACKAGE_NAME: string;
1496
+ };
1497
+ declare function changeLoginEmail(httpClient: HttpClient): (_id: string, newEmail: string, options?: ChangeLoginEmailOptions) => Promise<ChangeLoginEmailResponse & ChangeLoginEmailResponseNonNullableFields>;
1498
+ declare function approve(httpClient: HttpClient): (options?: ApproveOptions) => Promise<ApproveMemberResponse$1>;
1499
+ declare function block(httpClient: HttpClient): (options?: BlockOptions) => Promise<void>;
1500
+ declare function register(httpClient: HttpClient): (email: string, password: string, options?: RegisterOptions) => Promise<RegisterResponse & RegisterResponseNonNullableFields>;
1501
+ declare function login(httpClient: HttpClient): (email: string, password: string, options?: LoginOptions) => Promise<LoginResponse & LoginResponseNonNullableFields>;
1502
+ declare function sendSetPasswordEmail(httpClient: HttpClient): (email: string, options?: SendSetPasswordEmailOptions) => Promise<SendSetPasswordEmailResponse & SendSetPasswordEmailResponseNonNullableFields>;
1503
+
1504
+ type index_d$1_AppleLogin = AppleLogin;
1505
+ type index_d$1_ApproveMemberRequestMemberIdentifierOneOf = ApproveMemberRequestMemberIdentifierOneOf;
1506
+ type index_d$1_ApproveOptions = ApproveOptions;
1507
+ type index_d$1_BatchGetMembersRequest = BatchGetMembersRequest;
1508
+ type index_d$1_BatchGetMembersResponse = BatchGetMembersResponse;
1509
+ type index_d$1_BlockMemberRequestMemberIdentifierOneOf = BlockMemberRequestMemberIdentifierOneOf;
1510
+ type index_d$1_BlockOptions = BlockOptions;
1511
+ type index_d$1_ChangeLoginEmailOptions = ChangeLoginEmailOptions;
1512
+ type index_d$1_ChangeLoginEmailRequest = ChangeLoginEmailRequest;
1513
+ type index_d$1_ChangeLoginEmailResponse = ChangeLoginEmailResponse;
1514
+ type index_d$1_ChangeLoginEmailResponseNonNullableFields = ChangeLoginEmailResponseNonNullableFields;
1515
+ type index_d$1_CustomFieldValueOneOf = CustomFieldValueOneOf;
1516
+ type index_d$1_DialogData = DialogData;
1517
+ type index_d$1_EmailVerification = EmailVerification;
1518
+ type index_d$1_EmailVerificationFailed = EmailVerificationFailed;
1519
+ type index_d$1_EmailVerificationRequired = EmailVerificationRequired;
1520
+ type index_d$1_FacebookLogin = FacebookLogin;
1521
+ type index_d$1_FilterBy = FilterBy;
1522
+ type index_d$1_GetAuthorizedPagesRequest = GetAuthorizedPagesRequest;
1523
+ type index_d$1_GetAuthorizedPagesResponse = GetAuthorizedPagesResponse;
1524
+ type index_d$1_GetCurrentMemberRequest = GetCurrentMemberRequest;
1525
+ type index_d$1_GetMemberRoleRequest = GetMemberRoleRequest;
1526
+ type index_d$1_GetMemberRoleResponse = GetMemberRoleResponse;
1527
+ type index_d$1_GetMemberRolesRequest = GetMemberRolesRequest;
1528
+ type index_d$1_GetMemberRolesResponse = GetMemberRolesResponse;
1529
+ type index_d$1_GetResetPasswordLinkRequest = GetResetPasswordLinkRequest;
1530
+ type index_d$1_GetResetPasswordLinkResponse = GetResetPasswordLinkResponse;
1531
+ type index_d$1_GetUserMembershipsRequest = GetUserMembershipsRequest;
1532
+ type index_d$1_GetUserMembershipsResponse = GetUserMembershipsResponse;
1533
+ type index_d$1_GoogleLogin = GoogleLogin;
1534
+ type index_d$1_Group = Group;
1535
+ type index_d$1_LoginOptions = LoginOptions;
1536
+ type index_d$1_LoginRequest = LoginRequest;
1537
+ type index_d$1_LoginResponse = LoginResponse;
1538
+ type index_d$1_LoginResponseNonNullableFields = LoginResponseNonNullableFields;
1539
+ type index_d$1_MakeMemberOfflineRequest = MakeMemberOfflineRequest;
1540
+ type index_d$1_MakeMemberOfflineResponse = MakeMemberOfflineResponse;
1541
+ type index_d$1_MemberContactInfo = MemberContactInfo;
1542
+ type index_d$1_MemberRole = MemberRole;
1543
+ type index_d$1_PaginationResponse = PaginationResponse;
1544
+ type index_d$1_RegisterOptions = RegisterOptions;
1545
+ type index_d$1_RegisterRequest = RegisterRequest;
1546
+ type index_d$1_RegisterResponse = RegisterResponse;
1547
+ type index_d$1_RegisterResponseNonNullableFields = RegisterResponseNonNullableFields;
1548
+ type index_d$1_ResetPasswordRequest = ResetPasswordRequest;
1549
+ type index_d$1_ResetPasswordResponse = ResetPasswordResponse;
1550
+ type index_d$1_Role = Role;
1551
+ declare const index_d$1_Role: typeof Role;
1552
+ type index_d$1_SearchBy = SearchBy;
1553
+ type index_d$1_SearchRequest = SearchRequest;
1554
+ type index_d$1_SearchResponse = SearchResponse;
1555
+ type index_d$1_SendSetPasswordEmailOptions = SendSetPasswordEmailOptions;
1556
+ type index_d$1_SendSetPasswordEmailRequest = SendSetPasswordEmailRequest;
1557
+ type index_d$1_SendSetPasswordEmailResponse = SendSetPasswordEmailResponse;
1558
+ type index_d$1_SendSetPasswordEmailResponseNonNullableFields = SendSetPasswordEmailResponseNonNullableFields;
1559
+ type index_d$1_Session = Session;
1560
+ type index_d$1_SiteMemberPrivacyStatus = SiteMemberPrivacyStatus;
1561
+ declare const index_d$1_SiteMemberPrivacyStatus: typeof SiteMemberPrivacyStatus;
1562
+ type index_d$1_SiteMemberStatus = SiteMemberStatus;
1563
+ declare const index_d$1_SiteMemberStatus: typeof SiteMemberStatus;
1564
+ type index_d$1_SocialLoginRequest = SocialLoginRequest;
1565
+ type index_d$1_SocialLoginRequestLoginOneOf = SocialLoginRequestLoginOneOf;
1566
+ type index_d$1_Source = Source;
1567
+ declare const index_d$1_Source: typeof Source;
1568
+ type index_d$1_UserMembership = UserMembership;
1569
+ type index_d$1_VerificationFailureReason = VerificationFailureReason;
1570
+ declare const index_d$1_VerificationFailureReason: typeof VerificationFailureReason;
1571
+ declare const index_d$1_approve: typeof approve;
1572
+ declare const index_d$1_block: typeof block;
1573
+ declare const index_d$1_changeLoginEmail: typeof changeLoginEmail;
1574
+ declare const index_d$1_login: typeof login;
1575
+ declare const index_d$1_register: typeof register;
1576
+ declare const index_d$1_sendSetPasswordEmail: typeof sendSetPasswordEmail;
1577
+ declare namespace index_d$1 {
1578
+ export { type Address$1 as Address, type index_d$1_AppleLogin as AppleLogin, type ApproveMemberRequest$1 as ApproveMemberRequest, type index_d$1_ApproveMemberRequestMemberIdentifierOneOf as ApproveMemberRequestMemberIdentifierOneOf, type ApproveMemberResponse$1 as ApproveMemberResponse, type index_d$1_ApproveOptions as ApproveOptions, type index_d$1_BatchGetMembersRequest as BatchGetMembersRequest, type index_d$1_BatchGetMembersResponse as BatchGetMembersResponse, type BlockMemberRequest$1 as BlockMemberRequest, type index_d$1_BlockMemberRequestMemberIdentifierOneOf as BlockMemberRequestMemberIdentifierOneOf, type BlockMemberResponse$1 as BlockMemberResponse, type index_d$1_BlockOptions as BlockOptions, type index_d$1_ChangeLoginEmailOptions as ChangeLoginEmailOptions, type index_d$1_ChangeLoginEmailRequest as ChangeLoginEmailRequest, type index_d$1_ChangeLoginEmailResponse as ChangeLoginEmailResponse, type index_d$1_ChangeLoginEmailResponseNonNullableFields as ChangeLoginEmailResponseNonNullableFields, type CustomField$1 as CustomField, type index_d$1_CustomFieldValueOneOf as CustomFieldValueOneOf, type DeleteMemberRequest$1 as DeleteMemberRequest, type DeleteMemberResponse$1 as DeleteMemberResponse, type index_d$1_DialogData as DialogData, type index_d$1_EmailVerification as EmailVerification, type index_d$1_EmailVerificationFailed as EmailVerificationFailed, type index_d$1_EmailVerificationRequired as EmailVerificationRequired, type index_d$1_FacebookLogin as FacebookLogin, type index_d$1_FilterBy as FilterBy, type index_d$1_GetAuthorizedPagesRequest as GetAuthorizedPagesRequest, type index_d$1_GetAuthorizedPagesResponse as GetAuthorizedPagesResponse, type index_d$1_GetCurrentMemberRequest as GetCurrentMemberRequest, type GetMemberRequest$1 as GetMemberRequest, type GetMemberResponse$1 as GetMemberResponse, type index_d$1_GetMemberRoleRequest as GetMemberRoleRequest, type index_d$1_GetMemberRoleResponse as GetMemberRoleResponse, type index_d$1_GetMemberRolesRequest as GetMemberRolesRequest, type index_d$1_GetMemberRolesResponse as GetMemberRolesResponse, type index_d$1_GetResetPasswordLinkRequest as GetResetPasswordLinkRequest, type index_d$1_GetResetPasswordLinkResponse as GetResetPasswordLinkResponse, type index_d$1_GetUserMembershipsRequest as GetUserMembershipsRequest, type index_d$1_GetUserMembershipsResponse as GetUserMembershipsResponse, type index_d$1_GoogleLogin as GoogleLogin, type index_d$1_Group as Group, type ListMembersRequest$1 as ListMembersRequest, type ListMembersResponse$1 as ListMembersResponse, type index_d$1_LoginOptions as LoginOptions, type index_d$1_LoginRequest as LoginRequest, type index_d$1_LoginResponse as LoginResponse, type index_d$1_LoginResponseNonNullableFields as LoginResponseNonNullableFields, type index_d$1_MakeMemberOfflineRequest as MakeMemberOfflineRequest, type index_d$1_MakeMemberOfflineResponse as MakeMemberOfflineResponse, type Member$1 as Member, type index_d$1_MemberContactInfo as MemberContactInfo, type index_d$1_MemberRole as MemberRole, type index_d$1_PaginationResponse as PaginationResponse, type Paging$1 as Paging, type QueryMembersRequest$1 as QueryMembersRequest, type QueryMembersResponse$1 as QueryMembersResponse, type index_d$1_RegisterOptions as RegisterOptions, type index_d$1_RegisterRequest as RegisterRequest, type index_d$1_RegisterResponse as RegisterResponse, type index_d$1_RegisterResponseNonNullableFields as RegisterResponseNonNullableFields, type index_d$1_ResetPasswordRequest as ResetPasswordRequest, type index_d$1_ResetPasswordResponse as ResetPasswordResponse, index_d$1_Role as Role, type index_d$1_SearchBy as SearchBy, type index_d$1_SearchRequest as SearchRequest, type index_d$1_SearchResponse as SearchResponse, type index_d$1_SendSetPasswordEmailOptions as SendSetPasswordEmailOptions, type index_d$1_SendSetPasswordEmailRequest as SendSetPasswordEmailRequest, type index_d$1_SendSetPasswordEmailResponse as SendSetPasswordEmailResponse, type index_d$1_SendSetPasswordEmailResponseNonNullableFields as SendSetPasswordEmailResponseNonNullableFields, type index_d$1_Session as Session, index_d$1_SiteMemberPrivacyStatus as SiteMemberPrivacyStatus, index_d$1_SiteMemberStatus as SiteMemberStatus, type index_d$1_SocialLoginRequest as SocialLoginRequest, type index_d$1_SocialLoginRequestLoginOneOf as SocialLoginRequestLoginOneOf, Sorting$1 as Sorting, index_d$1_Source as Source, type UpdateMemberRequest$1 as UpdateMemberRequest, type UpdateMemberResponse$1 as UpdateMemberResponse, type index_d$1_UserMembership as UserMembership, index_d$1_VerificationFailureReason as VerificationFailureReason, __metadata$1 as __metadata, index_d$1_approve as approve, index_d$1_block as block, index_d$1_changeLoginEmail as changeLoginEmail, index_d$1_login as login, index_d$1_register as register, index_d$1_sendSetPasswordEmail as sendSetPasswordEmail };
1579
+ }
1580
+
1581
+ interface Member {
1582
+ /**
1583
+ * Member ID.
1584
+ * @readonly
1585
+ */
1586
+ _id?: string | null;
1587
+ /** Email used by the member to log in to the site. */
1588
+ loginEmail?: string | null;
1589
+ /**
1590
+ * Whether the email used by the member has been verified.
1591
+ * @readonly
1592
+ */
1593
+ loginEmailVerified?: boolean | null;
1594
+ /**
1595
+ * Member site access status.
1596
+ *
1597
+ * - `PENDING`: Member created and is waiting for approval by site owner.
1598
+ * - `APPROVED`: Member can log in to the site.
1599
+ * - `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.
1600
+ * - `BLOCKED`: Member is blocked and cannot log in to the site.
1601
+ * - `UNKNOWN`: Insufficient permissions to get the status.
1602
+ * @readonly
1603
+ */
1604
+ status?: Status;
1605
+ /**
1606
+ * Contact ID.
1607
+ * @readonly
1608
+ */
1609
+ contactId?: string | null;
1610
+ /**
1611
+ * Member's contact information. Contact information is stored in the
1612
+ * [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).
1613
+ */
1614
+ contact?: Contact;
1615
+ /** Profile display info. */
1616
+ profile?: Profile;
1617
+ /**
1618
+ * Member privacy status.
1619
+ *
1620
+ * - `PUBLIC`: Member is visible to everyone.
1621
+ * - `PRIVATE`: Member is hidden from site visitors and other site members. Member is returned only to site contributors and apps with the appropriate permissions.
1622
+ * - `UNKNOWN`: Insufficient permissions to get the status.
1623
+ */
1624
+ privacyStatus?: PrivacyStatusStatus;
1625
+ /**
1626
+ * Member activity status.
1627
+ *
1628
+ * - `ACTIVE`: Member can write forum posts and blog comments.
1629
+ * - `MUTED`: Member cannot write forum posts or blog comments.
1630
+ * - `UNKNOWN`: Insufficient permissions to get the status.
1631
+ * @readonly
1632
+ */
1633
+ activityStatus?: ActivityStatusStatus;
1634
+ /**
1635
+ * Date and time when the member was created.
1636
+ * @readonly
1637
+ */
1638
+ _createdDate?: Date;
1639
+ /**
1640
+ * Date and time when the member was updated.
1641
+ * @readonly
1642
+ */
1643
+ _updatedDate?: Date;
1644
+ /**
1645
+ * Date and time when the member last logged in to the site.
1646
+ * @readonly
1647
+ */
1648
+ lastLoginDate?: Date;
1649
+ }
1650
+ declare enum Status {
1651
+ UNKNOWN = "UNKNOWN",
1652
+ PENDING = "PENDING",
1653
+ APPROVED = "APPROVED",
1654
+ BLOCKED = "BLOCKED",
1655
+ OFFLINE = "OFFLINE"
1656
+ }
1657
+ /** Contact info associated with the member. */
1658
+ interface Contact {
1659
+ /**
1660
+ * @internal
1661
+ * @internal
1662
+ * @readonly
1663
+ * @deprecated
1664
+ */
1665
+ contactId?: string | null;
1666
+ /** Contact's first name. */
1667
+ firstName?: string | null;
1668
+ /** Contact's last name. */
1669
+ lastName?: string | null;
1670
+ /** List of phone numbers. */
1671
+ phones?: string[] | null;
1672
+ /** List of email addresses. */
1673
+ emails?: string[] | null;
1674
+ /** List of street addresses. */
1675
+ addresses?: Address[];
1676
+ /**
1677
+ * Contact's birthdate, formatted as `"YYYY-MM-DD"`.
1678
+ *
1679
+ * Example: `"2020-03-15"` for March 15, 2020.
1680
+ */
1681
+ birthdate?: string | null;
1682
+ /** Contact's company name. */
1683
+ company?: string | null;
1684
+ /** Contact's job title. */
1685
+ jobTitle?: string | null;
1686
+ /**
1687
+ * 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.
1688
+ *
1689
+ * > **Notes:**
1690
+ * > - Only custom fields added to the member profile in the Dashboard are available through the Members API. Empty fields are not returned.
1691
+ * > - When updating a member, `name` is ignored.
1692
+ */
1693
+ customFields?: Record<string, CustomField>;
1694
+ }
1695
+ /** Street address. */
1696
+ interface Address extends AddressStreetOneOf {
1697
+ /** Street address object, with number and name in separate fields. */
1698
+ streetAddress?: StreetAddress;
1699
+ /** Main address line, usually street and number, as free text. */
1700
+ addressLine?: string | null;
1701
+ /**
1702
+ * Street address ID.
1703
+ * @readonly
1704
+ */
1705
+ _id?: string | null;
1706
+ /**
1707
+ * Free text providing more detailed address information,
1708
+ * such as apartment, suite, or floor.
1709
+ */
1710
+ addressLine2?: string | null;
1711
+ /** City name. */
1712
+ city?: string | null;
1713
+ /**
1714
+ * Code for a subdivision (such as state, prefecture, or province) in an
1715
+ * [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.
1716
+ */
1717
+ subdivision?: string | null;
1718
+ /**
1719
+ * 2-letter country code in an
1720
+ * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
1721
+ */
1722
+ country?: string | null;
1723
+ /** Postal code. */
1724
+ postalCode?: string | null;
1725
+ }
1726
+ /** @oneof */
1727
+ interface AddressStreetOneOf {
1728
+ /** Street address object, with number and name in separate fields. */
1729
+ streetAddress?: StreetAddress;
1730
+ /** Main address line, usually street and number, as free text. */
1731
+ addressLine?: string | null;
1732
+ }
1733
+ interface StreetAddress {
1734
+ /** Street number. */
1735
+ number?: string;
1736
+ /** Street name. */
1737
+ name?: string;
1738
+ }
1739
+ interface CustomField {
1740
+ /** Custom field name. */
1741
+ name?: string | null;
1742
+ /** Custom field value. */
1743
+ value?: any;
1744
+ }
1745
+ /** Member Profile */
1746
+ interface Profile {
1747
+ /**
1748
+ * Name that identifies the member to other members.
1749
+ * Displayed on the member's profile page
1750
+ * and interactions in the forum or blog.
1751
+ */
1752
+ nickname?: string | null;
1753
+ /**
1754
+ * Slug that determines the member's profile page URL.
1755
+ * @readonly
1756
+ */
1757
+ slug?: string | null;
1758
+ /** Member's profile photo. */
1759
+ photo?: Image;
1760
+ /**
1761
+ * Member's cover photo,
1762
+ * used as a background picture in members profile page.
1763
+ *
1764
+ * Cover positioning can be altered with `cover.offsetX` and `cover.offsetY`.
1765
+ * When left empty, the values default to `0`.
1766
+ */
1767
+ cover?: Image;
1768
+ /**
1769
+ * Member title.
1770
+ *
1771
+ * Currently available through the API only.
1772
+ */
1773
+ title?: string | null;
1774
+ }
1775
+ interface Image {
1776
+ /**
1777
+ * Wix Media image ID,
1778
+ * set when the member selects an image from Wix Media.
1779
+ */
1780
+ _id?: string;
1781
+ /** Image URL. */
1782
+ url?: string;
1783
+ /** Original image width. */
1784
+ height?: number;
1785
+ /** Original image height. */
1786
+ width?: number;
1787
+ /**
1788
+ * X-axis offset.
1789
+ *
1790
+ * Default: `0`.
1791
+ */
1792
+ offsetX?: number | null;
1793
+ /**
1794
+ * Y-axis offset.
1795
+ *
1796
+ * Default: `0`.
1797
+ */
1798
+ offsetY?: number | null;
1799
+ }
1800
+ declare enum PrivacyStatusStatus {
1801
+ UNKNOWN = "UNKNOWN",
1802
+ PRIVATE = "PRIVATE",
1803
+ PUBLIC = "PUBLIC"
1804
+ }
1805
+ declare enum ActivityStatusStatus {
1806
+ UNKNOWN = "UNKNOWN",
1807
+ ACTIVE = "ACTIVE",
1808
+ MUTED = "MUTED"
1809
+ }
1810
+ interface ExtendedFields {
1811
+ /**
1812
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
1813
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
1814
+ *
1815
+ * You can only access fields for which you have the appropriate permissions.
1816
+ *
1817
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
1818
+ */
1819
+ namespaces?: Record<string, Record<string, any>>;
1820
+ }
1821
+ interface InvalidateCache extends InvalidateCacheGetByOneOf {
1822
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
1823
+ metaSiteId?: string;
1824
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
1825
+ siteId?: string;
1826
+ /** Invalidate by App */
1827
+ app?: App;
1828
+ /** Invalidate by page id */
1829
+ page?: Page;
1830
+ /** Invalidate by URI path */
1831
+ uri?: URI;
1832
+ /** Invalidate by file (for media files such as PDFs) */
1833
+ file?: File;
1834
+ /** tell us why you're invalidating the cache. You don't need to add your app name */
1835
+ reason?: string | null;
1836
+ /** Is local DS */
1837
+ localDc?: boolean;
1838
+ }
1839
+ /** @oneof */
1840
+ interface InvalidateCacheGetByOneOf {
1841
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
1842
+ metaSiteId?: string;
1843
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
1844
+ siteId?: string;
1845
+ /** Invalidate by App */
1846
+ app?: App;
1847
+ /** Invalidate by page id */
1848
+ page?: Page;
1849
+ /** Invalidate by URI path */
1850
+ uri?: URI;
1851
+ /** Invalidate by file (for media files such as PDFs) */
1852
+ file?: File;
1853
+ }
1854
+ interface App {
1855
+ /** The AppDefId */
1856
+ appDefId?: string;
1857
+ /** The instance Id */
1858
+ instanceId?: string;
1859
+ }
1860
+ interface Page {
1861
+ /** the msid the page is on */
1862
+ metaSiteId?: string;
1863
+ /** Invalidate by Page ID */
1864
+ pageId?: string;
1865
+ }
1866
+ interface URI {
1867
+ /** the msid the URI is on */
1868
+ metaSiteId?: string;
1869
+ /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
1870
+ uriPath?: string;
1871
+ }
1872
+ interface File {
1873
+ /** the msid the file is related to */
1874
+ metaSiteId?: string;
1875
+ /** Invalidate by filename (for media files such as PDFs) */
1876
+ fileName?: string;
1877
+ }
1878
+ interface UpdateMySlugRequest {
1879
+ /** New slug. */
1880
+ slug: string;
1881
+ }
1882
+ interface UpdateMySlugResponse {
1883
+ /** Updated member. */
1884
+ member?: Member;
1885
+ }
1886
+ interface SlugAlreadyExistsPayload {
1887
+ slug?: string;
1888
+ }
1889
+ interface UpdateMemberSlugRequest {
1890
+ /** ID of the member whose slug will be updated. */
1891
+ _id?: string;
1892
+ /** New slug. */
1893
+ slug?: string;
1894
+ }
1895
+ interface UpdateMemberSlugResponse {
1896
+ /** Updated member. */
1897
+ member?: Member;
1898
+ }
1899
+ interface JoinCommunityRequest {
1900
+ }
1901
+ /** Member profile. */
1902
+ interface JoinCommunityResponse {
1903
+ /** The updated member. */
1904
+ member?: Member;
1905
+ }
1906
+ interface MemberJoinedCommunity {
1907
+ /**
1908
+ * Member id who joined the community
1909
+ * @readonly
1910
+ */
1911
+ memberId?: string;
1912
+ }
1913
+ interface LeaveCommunityRequest {
1914
+ }
1915
+ /** Member profile. */
1916
+ interface LeaveCommunityResponse {
1917
+ /** The updated member. */
1918
+ member?: Member;
1919
+ }
1920
+ interface MemberLeftCommunity {
1921
+ /**
1922
+ * Member id who left the community
1923
+ * @readonly
1924
+ */
1925
+ memberId?: string;
1926
+ }
1927
+ interface GetMyMemberRequest {
1928
+ /**
1929
+ * Predefined set of fields to return.
1930
+ *
1931
+ * - `"FULL"`: Returns all fields.
1932
+ * - `"PUBLIC"`: Returns `_id` and all fields under `profile`.
1933
+ *
1934
+ * > **Note:**
1935
+ * > When returning the `"PUBLIC"` fieldset,
1936
+ * > `profile.status`, `profile.privacyStatus`, and `profile.activityStatus`
1937
+ * > are returned as `"UNKNOWN"`.
1938
+ * @deprecated
1939
+ */
1940
+ fieldSet?: Set;
1941
+ /**
1942
+ * Predefined set of fields to return. One of:
1943
+ *
1944
+ * - `FULL`: Returns all fields.
1945
+ * - `PUBLIC`: Returns `id`, `contactId`, and the `profile` object. `status`, `privacyStatus`, and `activityStatus` are returned as `UNKNOWN`.
1946
+ * - `EXTENDED`: Returns `id`, `loginEmail`, `status`, `contactId`, `privacyStatus`, `activityStatus`, and the `profile` object.
1947
+ *
1948
+ * Default: `PUBLIC`.
1949
+ */
1950
+ fieldsets?: Set[];
1951
+ }
1952
+ declare enum Set {
1953
+ /** Public properties of the entity */
1954
+ PUBLIC = "PUBLIC",
1955
+ /** Extended properties of the entity */
1956
+ EXTENDED = "EXTENDED",
1957
+ /** Full entity defined in the doc */
1958
+ FULL = "FULL"
1959
+ }
1960
+ /** Member profile. */
1961
+ interface GetMyMemberResponse {
1962
+ /** The logged-in member. */
1963
+ member?: Member;
1964
+ }
1965
+ interface GetMemberRequest {
1966
+ /** Member ID. */
1967
+ _id: string;
1968
+ /**
1969
+ * Predefined set of fields to return. One of:
1970
+ * - `"FULL"`: Returns all fields.
1971
+ * - `"PUBLIC"`: Returns `id`, `contactId`, and the `profile` object. `status`, `privacyStatus`, and `activityStatus` are returned as `UNKNOWN`.
1972
+ * - `"EXTENDED"`: Returns `id`, `loginEmail`, `status`, `contactId`, `privacyStatus`, `activityStatus`, and the `profile` object.
1973
+ *
1974
+ *
1975
+ */
1976
+ fieldsets?: Set[];
1977
+ }
1978
+ interface GetMemberResponse {
1979
+ /** The requested member. */
1980
+ member?: Member;
1981
+ }
1982
+ interface MemberToMemberBlockedPayload {
1983
+ /** Member ID. */
1984
+ memberId?: string;
1985
+ }
1986
+ interface ListMembersRequest {
1987
+ paging?: Paging;
1988
+ /**
1989
+ * Predefined set of fields to return. One of:
1990
+ * - `"FULL"`: Returns all fields.
1991
+ * - `"PUBLIC"`: Returns `id`, `contactId`, and the `profile` object. `status`, `privacyStatus`, and `activityStatus` are returned as `UNKNOWN`.
1992
+ * - `"EXTENDED"`: Returns `id`, `loginEmail`, `status`, `contactId`, `privacyStatus`, `activityStatus`, and the `profile` object.
1993
+ *
1994
+ * Default: `"PUBLIC"`.
1995
+ */
1996
+ fieldsets?: Set[];
1997
+ sorting?: Sorting[];
1998
+ }
1999
+ interface Paging {
2000
+ /** Number of items to load. */
2001
+ limit?: number | null;
2002
+ /** Number of items to skip in the current sort order. */
2003
+ offset?: number | null;
2004
+ }
2005
+ interface Sorting {
2006
+ /** Name of the field to sort by. */
2007
+ fieldName?: string;
2008
+ /** Sort order. */
2009
+ order?: SortOrder;
2010
+ }
2011
+ declare enum SortOrder {
2012
+ ASC = "ASC",
2013
+ DESC = "DESC"
2014
+ }
2015
+ interface CursorPaging {
2016
+ /** Maximum number of items to return in the results. */
2017
+ limit?: number | null;
2018
+ /**
2019
+ * Pointer to the next or previous page in the list of results.
2020
+ *
2021
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
2022
+ * Not relevant for the first request.
2023
+ */
2024
+ cursor?: string | null;
2025
+ }
2026
+ interface ListMembersResponse {
2027
+ /** List of members. */
2028
+ members?: Member[];
2029
+ /** Metadata for the paginated results. */
2030
+ metadata?: PagingMetadata;
2031
+ }
2032
+ interface PagingMetadata {
2033
+ /** Number of items returned in the response. */
2034
+ count?: number | null;
2035
+ /** Offset that was requested. */
2036
+ offset?: number | null;
2037
+ /** Total number of items that match the query. */
2038
+ total?: number | null;
2039
+ /** Flag that indicates the server failed to calculate the `total` field. */
2040
+ tooManyToCount?: boolean | null;
2041
+ }
2042
+ interface CursorPagingMetadata {
2043
+ /** Number of items returned in the response. */
2044
+ count?: number | null;
2045
+ /** Cursor strings that point to the next page, previous page, or both. */
2046
+ cursors?: Cursors;
2047
+ /**
2048
+ * Whether there are more pages to retrieve following the current page.
2049
+ *
2050
+ * + `true`: Another page of results can be retrieved.
2051
+ * + `false`: This is the last page.
2052
+ */
2053
+ hasNext?: boolean | null;
2054
+ }
2055
+ interface Cursors {
2056
+ /** Cursor string pointing to the next page in the list of results. */
2057
+ next?: string | null;
2058
+ /** Cursor pointing to the previous page in the list of results. */
2059
+ prev?: string | null;
2060
+ }
2061
+ interface QueryMembersRequest {
2062
+ /** Query options. */
2063
+ query?: Query;
2064
+ /**
2065
+ * Predefined sets of fields to return.
2066
+ *
2067
+ * Defaults to `PUBLIC`.
2068
+ */
2069
+ fieldsets?: Set[];
2070
+ /** Plain text search. */
2071
+ search?: Search;
2072
+ }
2073
+ interface Query {
2074
+ /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
2075
+ filter?: any;
2076
+ /** Limit number of results */
2077
+ paging?: Paging;
2078
+ /** Sort the results */
2079
+ sorting?: Sorting[];
2080
+ }
2081
+ /** Free text to match in searchable fields */
2082
+ interface Search {
2083
+ /** Search term or expression */
2084
+ expression?: string | null;
2085
+ /**
2086
+ * Currently supported fields for search:
2087
+ *
2088
+ * - `loginEmail`
2089
+ * - `contact.firstName`
2090
+ * - `contact.lastName`
2091
+ * - `profile.title`
2092
+ * - `profile.nickname`
2093
+ * - `profile.slug`
2094
+ *
2095
+ * Default is `profile.nickname`
2096
+ */
2097
+ fields?: string[];
2098
+ }
2099
+ interface QueryMembersResponse {
2100
+ /** List of members that met the query filter criteria. */
2101
+ members?: Member[];
2102
+ /** Metadata for the paginated results. */
2103
+ metadata?: PagingMetadata;
2104
+ }
2105
+ interface MuteMemberRequest {
2106
+ _id?: string;
2107
+ }
2108
+ interface MuteMemberResponse {
2109
+ member?: Member;
2110
+ }
2111
+ interface MemberMuted {
2112
+ /**
2113
+ * Member id who got muted
2114
+ * @readonly
2115
+ */
2116
+ memberId?: string;
2117
+ }
2118
+ interface UnmuteMemberRequest {
2119
+ _id?: string;
2120
+ }
2121
+ interface UnmuteMemberResponse {
2122
+ member?: Member;
2123
+ }
2124
+ interface MemberUnmuted {
2125
+ /**
2126
+ * Member id who got unmuted
2127
+ * @readonly
2128
+ */
2129
+ memberId?: string;
2130
+ }
2131
+ interface ApproveMemberRequest {
2132
+ _id?: string;
2133
+ }
2134
+ interface ApproveMemberResponse {
2135
+ member?: Member;
2136
+ }
2137
+ interface MemberApproved {
2138
+ /**
2139
+ * Member id who got approved
2140
+ * @readonly
2141
+ */
2142
+ memberId?: string;
2143
+ }
2144
+ interface BlockMemberRequest {
2145
+ _id?: string;
2146
+ }
2147
+ interface BlockMemberResponse {
2148
+ member?: Member;
2149
+ }
2150
+ interface MemberBlocked {
2151
+ /**
2152
+ * Member id who got blocked
2153
+ * @readonly
2154
+ */
2155
+ memberId?: string;
2156
+ }
2157
+ interface MemberSelfBlockForbiddenPayload {
2158
+ /** Target's member ID. */
2159
+ memberId?: string;
2160
+ }
2161
+ interface OwnerMemberBlockForbiddenPayload {
2162
+ /** Owner's member ID. */
2163
+ memberId?: string;
2164
+ }
2165
+ interface ActiveSubscriptionMemberBlockForbiddenPayload {
2166
+ /** Active subscription member ID. */
2167
+ memberId?: string;
2168
+ }
2169
+ interface DisconnectMemberRequest {
2170
+ _id?: string;
2171
+ }
2172
+ interface DisconnectMemberResponse {
2173
+ member?: Member;
2174
+ }
2175
+ interface DeleteMemberRequest {
2176
+ /** ID of the member to delete. */
2177
+ _id: string;
2178
+ }
2179
+ interface DeleteMemberResponse {
2180
+ }
2181
+ interface ContentReassignmentRequested {
2182
+ fromMember?: Member;
2183
+ toMember?: Member;
2184
+ }
2185
+ interface ContentDeletionRequested {
2186
+ member?: Member;
2187
+ }
2188
+ interface DeleteMyMemberRequest {
2189
+ /** ID of a member receiving deleted member's content */
2190
+ contentAssigneeId?: string | null;
2191
+ }
2192
+ interface DeleteMyMemberResponse {
2193
+ }
2194
+ interface BulkDeleteMembersRequest {
2195
+ /** Member ids to be deleted */
2196
+ memberIds?: string[];
2197
+ }
2198
+ interface BulkDeleteMembersResponse {
2199
+ /** Results. */
2200
+ results?: BulkMemberResult[];
2201
+ /** Bulk action result metadata */
2202
+ bulkActionMetadata?: BulkActionMetadata;
2203
+ }
2204
+ interface ItemMetadata {
2205
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
2206
+ _id?: string | null;
2207
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
2208
+ originalIndex?: number;
2209
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
2210
+ success?: boolean;
2211
+ /** Details about the error in case of failure. */
2212
+ error?: ApplicationError;
2213
+ }
2214
+ interface ApplicationError {
2215
+ /** Error code. */
2216
+ code?: string;
2217
+ /** Description of the error. */
2218
+ description?: string;
2219
+ /** Data related to the error. */
2220
+ data?: Record<string, any> | null;
2221
+ }
2222
+ interface BulkMemberResult {
2223
+ itemMetadata?: ItemMetadata;
2224
+ }
2225
+ interface BulkActionMetadata {
2226
+ /** Number of items that were successfully processed. */
2227
+ totalSuccesses?: number;
2228
+ /** Number of items that couldn't be processed. */
2229
+ totalFailures?: number;
2230
+ /** Number of failures without details because detailed failure threshold was exceeded. */
2231
+ undetailedFailures?: number;
2232
+ }
2233
+ interface BulkDeleteMembersByFilterRequest {
2234
+ /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
2235
+ filter?: any;
2236
+ /** ID of a member receiving deleted members' content. */
2237
+ contentAssigneeId?: string | null;
2238
+ /** Plain text search. */
2239
+ search?: Search;
2240
+ }
2241
+ interface BulkDeleteMembersByFilterResponse {
2242
+ /** Token to be used to query an "async jobs service" */
2243
+ jobId?: string;
2244
+ }
2245
+ interface BulkApproveMembersRequest {
2246
+ /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
2247
+ filter?: any;
2248
+ }
2249
+ interface BulkApproveMembersResponse {
2250
+ /** Token to be used to query an "async jobs service" */
2251
+ jobId?: string;
2252
+ }
2253
+ interface BulkBlockMembersRequest {
2254
+ /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
2255
+ filter?: any;
2256
+ }
2257
+ interface BulkBlockMembersResponse {
2258
+ /** Token to be used to query an "async jobs service" */
2259
+ jobId?: string;
2260
+ }
2261
+ interface CreateMemberRequest {
2262
+ /** Member to create. */
2263
+ member?: Member;
2264
+ }
2265
+ interface CreateMemberResponse {
2266
+ /** New member. */
2267
+ member?: Member;
2268
+ }
2269
+ interface UpdateMemberRequest {
2270
+ /** Member to update. */
2271
+ member?: Member;
2272
+ }
2273
+ interface UpdateMemberResponse {
2274
+ member?: Member;
2275
+ }
2276
+ interface DeleteMemberPhonesRequest {
2277
+ /** ID of the member whose phone numbers will be deleted. */
2278
+ _id: string;
2279
+ }
2280
+ interface DeleteMemberPhonesResponse {
2281
+ /** Updated member. */
2282
+ member?: Member;
2283
+ }
2284
+ interface DeleteMemberEmailsRequest {
2285
+ /** ID of the member whose email addresses will be deleted. */
2286
+ _id: string;
2287
+ }
2288
+ interface DeleteMemberEmailsResponse {
2289
+ /** Updated member. */
2290
+ member?: Member;
2291
+ }
2292
+ interface DeleteMemberAddressesRequest {
2293
+ /** ID of the member whose street addresses will be deleted. */
2294
+ _id: string;
2295
+ }
2296
+ interface DeleteMemberAddressesResponse {
2297
+ /** Updated member. */
2298
+ member?: Member;
2299
+ }
2300
+ interface Empty {
2301
+ }
2302
+ interface DomainEvent extends DomainEventBodyOneOf {
2303
+ createdEvent?: EntityCreatedEvent;
2304
+ updatedEvent?: EntityUpdatedEvent;
2305
+ deletedEvent?: EntityDeletedEvent;
2306
+ actionEvent?: ActionEvent;
2307
+ /**
2308
+ * Unique event ID.
2309
+ * Allows clients to ignore duplicate webhooks.
2310
+ */
2311
+ _id?: string;
2312
+ /**
2313
+ * Assumes actions are also always typed to an entity_type
2314
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2315
+ */
2316
+ entityFqdn?: string;
2317
+ /**
2318
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2319
+ * This is although the created/updated/deleted notion is duplication of the oneof types
2320
+ * Example: created/updated/deleted/started/completed/email_opened
2321
+ */
2322
+ slug?: string;
2323
+ /** ID of the entity associated with the event. */
2324
+ entityId?: string;
2325
+ /** Event timestamp. */
2326
+ eventTime?: Date;
2327
+ /**
2328
+ * Whether the event was triggered as a result of a privacy regulation application
2329
+ * (for example, GDPR).
2330
+ */
2331
+ triggeredByAnonymizeRequest?: boolean | null;
2332
+ /** If present, indicates the action that triggered the event. */
2333
+ originatedFrom?: string | null;
2334
+ /**
2335
+ * A sequence number defining the order of updates to the underlying entity.
2336
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
2337
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2338
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2339
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
2340
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2341
+ */
2342
+ entityEventSequence?: string | null;
2343
+ }
2344
+ /** @oneof */
2345
+ interface DomainEventBodyOneOf {
2346
+ createdEvent?: EntityCreatedEvent;
2347
+ updatedEvent?: EntityUpdatedEvent;
2348
+ deletedEvent?: EntityDeletedEvent;
2349
+ actionEvent?: ActionEvent;
2350
+ }
2351
+ interface EntityCreatedEvent {
2352
+ entity?: string;
2353
+ }
2354
+ interface EntityUpdatedEvent {
2355
+ /**
2356
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2357
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2358
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2359
+ */
2360
+ currentEntity?: string;
2361
+ }
2362
+ interface EntityDeletedEvent {
2363
+ /** Entity that was deleted */
2364
+ deletedEntity?: string | null;
2365
+ }
2366
+ interface ActionEvent {
2367
+ body?: string;
2368
+ }
2369
+ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
2370
+ /** Emitted on a meta site creation. */
2371
+ siteCreated?: SiteCreated;
2372
+ /** Emitted on a meta site transfer completion. */
2373
+ siteTransferred?: SiteTransferred;
2374
+ /** Emitted on a meta site deletion. */
2375
+ siteDeleted?: SiteDeleted;
2376
+ /** Emitted on a meta site restoration. */
2377
+ siteUndeleted?: SiteUndeleted;
2378
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
2379
+ sitePublished?: SitePublished;
2380
+ /** Emitted on a meta site unpublish. */
2381
+ siteUnpublished?: SiteUnpublished;
2382
+ /** Emitted when meta site is marked as template. */
2383
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
2384
+ /** Emitted when meta site is marked as a WixSite. */
2385
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
2386
+ /** Emitted when an application is provisioned (installed). */
2387
+ serviceProvisioned?: ServiceProvisioned;
2388
+ /** Emitted when an application is removed (uninstalled). */
2389
+ serviceRemoved?: ServiceRemoved;
2390
+ /** Emitted when meta site name (URL slug) is changed. */
2391
+ siteRenamedPayload?: SiteRenamed;
2392
+ /** Emitted when meta site was permanently deleted. */
2393
+ hardDeleted?: SiteHardDeleted;
2394
+ /** Emitted on a namespace change. */
2395
+ namespaceChanged?: NamespaceChanged;
2396
+ /** Emitted when Studio is attached. */
2397
+ studioAssigned?: StudioAssigned;
2398
+ /** Emitted when Studio is detached. */
2399
+ studioUnassigned?: StudioUnassigned;
2400
+ /** A meta site id. */
2401
+ metaSiteId?: string;
2402
+ /** A meta site version. Monotonically increasing. */
2403
+ version?: string;
2404
+ /** A timestamp of the event. */
2405
+ timestamp?: string;
2406
+ /** A list of "assets" (applications). The same as MetaSiteContext. */
2407
+ assets?: Asset[];
2408
+ }
2409
+ /** @oneof */
2410
+ interface MetaSiteSpecialEventPayloadOneOf {
2411
+ /** Emitted on a meta site creation. */
2412
+ siteCreated?: SiteCreated;
2413
+ /** Emitted on a meta site transfer completion. */
2414
+ siteTransferred?: SiteTransferred;
2415
+ /** Emitted on a meta site deletion. */
2416
+ siteDeleted?: SiteDeleted;
2417
+ /** Emitted on a meta site restoration. */
2418
+ siteUndeleted?: SiteUndeleted;
2419
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
2420
+ sitePublished?: SitePublished;
2421
+ /** Emitted on a meta site unpublish. */
2422
+ siteUnpublished?: SiteUnpublished;
2423
+ /** Emitted when meta site is marked as template. */
2424
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
2425
+ /** Emitted when meta site is marked as a WixSite. */
2426
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
2427
+ /** Emitted when an application is provisioned (installed). */
2428
+ serviceProvisioned?: ServiceProvisioned;
2429
+ /** Emitted when an application is removed (uninstalled). */
2430
+ serviceRemoved?: ServiceRemoved;
2431
+ /** Emitted when meta site name (URL slug) is changed. */
2432
+ siteRenamedPayload?: SiteRenamed;
2433
+ /** Emitted when meta site was permanently deleted. */
2434
+ hardDeleted?: SiteHardDeleted;
2435
+ /** Emitted on a namespace change. */
2436
+ namespaceChanged?: NamespaceChanged;
2437
+ /** Emitted when Studio is attached. */
2438
+ studioAssigned?: StudioAssigned;
2439
+ /** Emitted when Studio is detached. */
2440
+ studioUnassigned?: StudioUnassigned;
2441
+ }
2442
+ interface Asset {
2443
+ /** An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum). */
2444
+ appDefId?: string;
2445
+ /** An instance id. For legacy reasons may be UUID or a string. */
2446
+ instanceId?: string;
2447
+ /** An application state. */
2448
+ state?: State;
2449
+ }
2450
+ declare enum State {
2451
+ UNKNOWN = "UNKNOWN",
2452
+ ENABLED = "ENABLED",
2453
+ DISABLED = "DISABLED",
2454
+ PENDING = "PENDING",
2455
+ DEMO = "DEMO"
2456
+ }
2457
+ interface SiteCreated {
2458
+ /** A template identifier (empty if not created from a template). */
2459
+ originTemplateId?: string;
2460
+ /** An account id of the owner. */
2461
+ ownerId?: string;
2462
+ /** A context in which meta site was created. */
2463
+ context?: SiteCreatedContext;
2464
+ /**
2465
+ * A meta site id from which this site was created.
2466
+ *
2467
+ * In case of a creation from a template it's a template id.
2468
+ * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
2469
+ */
2470
+ originMetaSiteId?: string | null;
2471
+ /** A meta site name (URL slug). */
2472
+ siteName?: string;
2473
+ /** A namespace. */
2474
+ namespace?: Namespace;
2475
+ }
2476
+ declare enum SiteCreatedContext {
2477
+ /** A valid option, we don't expose all reasons why site might be created. */
2478
+ OTHER = "OTHER",
2479
+ /** A meta site was created from template. */
2480
+ FROM_TEMPLATE = "FROM_TEMPLATE",
2481
+ /** A meta site was created by copying of the transfferred meta site. */
2482
+ DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
2483
+ /** A copy of existing meta site. */
2484
+ DUPLICATE = "DUPLICATE",
2485
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
2486
+ OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
2487
+ /** deprecated A meta site was created for Flash editor. */
2488
+ FLASH = "FLASH"
2489
+ }
2490
+ declare enum Namespace {
2491
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
2492
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
2493
+ WIX = "WIX",
2494
+ /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
2495
+ SHOUT_OUT = "SHOUT_OUT",
2496
+ /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
2497
+ ALBUMS = "ALBUMS",
2498
+ /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
2499
+ WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
2500
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
2501
+ HOTELS = "HOTELS",
2502
+ /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
2503
+ CLUBS = "CLUBS",
2504
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
2505
+ ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
2506
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
2507
+ DEV_SITE = "DEV_SITE",
2508
+ /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
2509
+ LOGOS = "LOGOS",
2510
+ /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
2511
+ VIDEO_MAKER = "VIDEO_MAKER",
2512
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
2513
+ PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
2514
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
2515
+ DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
2516
+ /**
2517
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
2518
+ *
2519
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
2520
+ */
2521
+ HTML_DRAFT = "HTML_DRAFT",
2522
+ /**
2523
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
2524
+ * Will be accessible from Site List and will not have a website app.
2525
+ * Once the user attaches a site, the site will become a regular wixsite.
2526
+ */
2527
+ SITELESS_BUSINESS = "SITELESS_BUSINESS",
2528
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
2529
+ CREATOR_ECONOMY = "CREATOR_ECONOMY",
2530
+ /** It is to be used in the Business First efforts. */
2531
+ DASHBOARD_FIRST = "DASHBOARD_FIRST",
2532
+ /** Bookings business flow with no site. */
2533
+ ANYWHERE = "ANYWHERE",
2534
+ /** Namespace for Headless Backoffice with no editor */
2535
+ HEADLESS = "HEADLESS",
2536
+ /**
2537
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
2538
+ * The site will be used for account level CSM feature for enterprise
2539
+ */
2540
+ ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
2541
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
2542
+ RISE = "RISE",
2543
+ /**
2544
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
2545
+ * There's a blank site behind the scene but it's blank).
2546
+ * The Mobile company will be the owner of this namespace.
2547
+ */
2548
+ BRANDED_FIRST = "BRANDED_FIRST"
2549
+ }
2550
+ /** Site transferred to another user. */
2551
+ interface SiteTransferred {
2552
+ /** A previous owner id (user that transfers meta site). */
2553
+ oldOwnerId?: string;
2554
+ /** A new owner id (user that accepts meta site). */
2555
+ newOwnerId?: string;
2556
+ }
2557
+ /** Soft deletion of the meta site. Could be restored. */
2558
+ interface SiteDeleted {
2559
+ /** A deletion context. */
2560
+ deleteContext?: DeleteContext;
2561
+ }
2562
+ interface DeleteContext {
2563
+ /** When the meta site was deleted. */
2564
+ dateDeleted?: Date;
2565
+ /** A status. */
2566
+ deleteStatus?: DeleteStatus;
2567
+ /** A reason (flow). */
2568
+ deleteOrigin?: string;
2569
+ /** A service that deleted it. */
2570
+ initiatorId?: string | null;
2571
+ }
2572
+ declare enum DeleteStatus {
2573
+ UNKNOWN = "UNKNOWN",
2574
+ TRASH = "TRASH",
2575
+ DELETED = "DELETED",
2576
+ PENDING_PURGE = "PENDING_PURGE"
2577
+ }
2578
+ /** Restoration of the meta site. */
2579
+ interface SiteUndeleted {
2580
+ }
2581
+ /** First publish of a meta site. Or subsequent publish after unpublish. */
2582
+ interface SitePublished {
2583
+ }
2584
+ interface SiteUnpublished {
2585
+ /** A list of URLs previously associated with the meta site. */
2586
+ urls?: string[];
2587
+ }
2588
+ interface SiteMarkedAsTemplate {
2589
+ }
2590
+ interface SiteMarkedAsWixSite {
2591
+ }
2592
+ interface ServiceProvisioned {
2593
+ /** Either UUID or EmbeddedServiceType. */
2594
+ appDefId?: string;
2595
+ /** Not only UUID. Something here could be something weird. */
2596
+ instanceId?: string;
2597
+ /** An instance id from which this instance is originated. */
2598
+ originInstanceId?: string;
2599
+ /** A version. */
2600
+ version?: string | null;
2601
+ }
2602
+ interface ServiceRemoved {
2603
+ /** Either UUID or EmbeddedServiceType. */
2604
+ appDefId?: string;
2605
+ /** Not only UUID. Something here could be something weird. */
2606
+ instanceId?: string;
2607
+ /** A version. */
2608
+ version?: string | null;
2609
+ }
2610
+ /** Rename of the site. Meaning, free public url has been changed as well. */
2611
+ interface SiteRenamed {
2612
+ /** A new meta site name (URL slug). */
2613
+ newSiteName?: string;
2614
+ /** A previous meta site name (URL slug). */
2615
+ oldSiteName?: string;
2616
+ }
2617
+ /**
2618
+ * Hard deletion of the meta site.
2619
+ *
2620
+ * Could not be restored. Therefore it's desirable to cleanup data.
2621
+ */
2622
+ interface SiteHardDeleted {
2623
+ /** A deletion context. */
2624
+ deleteContext?: DeleteContext;
2625
+ }
2626
+ interface NamespaceChanged {
2627
+ /** A previous namespace. */
2628
+ oldNamespace?: Namespace;
2629
+ /** A new namespace. */
2630
+ newNamespace?: Namespace;
2631
+ }
2632
+ /** Assigned Studio editor */
2633
+ interface StudioAssigned {
2634
+ }
2635
+ /** Unassigned Studio editor */
2636
+ interface StudioUnassigned {
2637
+ }
2638
+ interface MemberOwnershipTransferred {
2639
+ fromMember?: Member;
2640
+ toMember?: Member;
2641
+ }
2642
+ interface MemberIdChanged {
2643
+ fromId?: string;
2644
+ toId?: string;
2645
+ }
2646
+ interface MessageEnvelope {
2647
+ /** App instance ID. */
2648
+ instanceId?: string | null;
2649
+ /** Event type. */
2650
+ eventType?: string;
2651
+ /** The identification type and identity data. */
2652
+ identity?: IdentificationData;
2653
+ /** Stringify payload. */
2654
+ data?: string;
2655
+ }
2656
+ interface IdentificationData extends IdentificationDataIdOneOf {
2657
+ /** ID of a site visitor that has not logged in to the site. */
2658
+ anonymousVisitorId?: string;
2659
+ /** ID of a site visitor that has logged in to the site. */
2660
+ memberId?: string;
2661
+ /** ID of a Wix user (site owner, contributor, etc.). */
2662
+ wixUserId?: string;
2663
+ /** ID of an app. */
2664
+ appId?: string;
2665
+ /** @readonly */
2666
+ identityType?: WebhookIdentityType;
2667
+ }
2668
+ /** @oneof */
2669
+ interface IdentificationDataIdOneOf {
2670
+ /** ID of a site visitor that has not logged in to the site. */
2671
+ anonymousVisitorId?: string;
2672
+ /** ID of a site visitor that has logged in to the site. */
2673
+ memberId?: string;
2674
+ /** ID of a Wix user (site owner, contributor, etc.). */
2675
+ wixUserId?: string;
2676
+ /** ID of an app. */
2677
+ appId?: string;
2678
+ }
2679
+ declare enum WebhookIdentityType {
2680
+ UNKNOWN = "UNKNOWN",
2681
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2682
+ MEMBER = "MEMBER",
2683
+ WIX_USER = "WIX_USER",
2684
+ APP = "APP"
2685
+ }
2686
+ interface UpdateMySlugResponseNonNullableFields {
2687
+ member?: {
2688
+ status: Status;
2689
+ contact?: {
2690
+ addresses: {
2691
+ streetAddress?: {
2692
+ number: string;
2693
+ name: string;
2694
+ };
2695
+ }[];
2696
+ };
2697
+ profile?: {
2698
+ photo?: {
2699
+ _id: string;
2700
+ url: string;
2701
+ height: number;
2702
+ width: number;
2703
+ };
2704
+ cover?: {
2705
+ _id: string;
2706
+ url: string;
2707
+ height: number;
2708
+ width: number;
2709
+ };
2710
+ };
2711
+ privacyStatus: PrivacyStatusStatus;
2712
+ activityStatus: ActivityStatusStatus;
2713
+ };
2714
+ }
2715
+ interface JoinCommunityResponseNonNullableFields {
2716
+ member?: {
2717
+ status: Status;
2718
+ contact?: {
2719
+ addresses: {
2720
+ streetAddress?: {
2721
+ number: string;
2722
+ name: string;
2723
+ };
2724
+ }[];
2725
+ };
2726
+ profile?: {
2727
+ photo?: {
2728
+ _id: string;
2729
+ url: string;
2730
+ height: number;
2731
+ width: number;
2732
+ };
2733
+ cover?: {
2734
+ _id: string;
2735
+ url: string;
2736
+ height: number;
2737
+ width: number;
2738
+ };
2739
+ };
2740
+ privacyStatus: PrivacyStatusStatus;
2741
+ activityStatus: ActivityStatusStatus;
2742
+ };
2743
+ }
2744
+ interface LeaveCommunityResponseNonNullableFields {
2745
+ member?: {
2746
+ status: Status;
2747
+ contact?: {
2748
+ addresses: {
2749
+ streetAddress?: {
2750
+ number: string;
2751
+ name: string;
2752
+ };
2753
+ }[];
2754
+ };
2755
+ profile?: {
2756
+ photo?: {
2757
+ _id: string;
2758
+ url: string;
2759
+ height: number;
2760
+ width: number;
2761
+ };
2762
+ cover?: {
2763
+ _id: string;
2764
+ url: string;
2765
+ height: number;
2766
+ width: number;
2767
+ };
2768
+ };
2769
+ privacyStatus: PrivacyStatusStatus;
2770
+ activityStatus: ActivityStatusStatus;
2771
+ };
2772
+ }
2773
+ interface GetMyMemberResponseNonNullableFields {
2774
+ member?: {
2775
+ status: Status;
2776
+ contact?: {
2777
+ addresses: {
2778
+ streetAddress?: {
2779
+ number: string;
2780
+ name: string;
2781
+ };
2782
+ }[];
2783
+ };
2784
+ profile?: {
2785
+ photo?: {
2786
+ _id: string;
2787
+ url: string;
2788
+ height: number;
2789
+ width: number;
2790
+ };
2791
+ cover?: {
2792
+ _id: string;
2793
+ url: string;
2794
+ height: number;
2795
+ width: number;
2796
+ };
2797
+ };
2798
+ privacyStatus: PrivacyStatusStatus;
2799
+ activityStatus: ActivityStatusStatus;
2800
+ };
2801
+ }
2802
+ interface GetMemberResponseNonNullableFields {
2803
+ member?: {
2804
+ status: Status;
2805
+ contact?: {
2806
+ addresses: {
2807
+ streetAddress?: {
2808
+ number: string;
2809
+ name: string;
2810
+ };
2811
+ }[];
2812
+ };
2813
+ profile?: {
2814
+ photo?: {
2815
+ _id: string;
2816
+ url: string;
2817
+ height: number;
2818
+ width: number;
2819
+ };
2820
+ cover?: {
2821
+ _id: string;
2822
+ url: string;
2823
+ height: number;
2824
+ width: number;
2825
+ };
2826
+ };
2827
+ privacyStatus: PrivacyStatusStatus;
2828
+ activityStatus: ActivityStatusStatus;
2829
+ };
2830
+ }
2831
+ interface ListMembersResponseNonNullableFields {
2832
+ members: {
2833
+ status: Status;
2834
+ contact?: {
2835
+ addresses: {
2836
+ streetAddress?: {
2837
+ number: string;
2838
+ name: string;
2839
+ };
2840
+ }[];
2841
+ };
2842
+ profile?: {
2843
+ photo?: {
2844
+ _id: string;
2845
+ url: string;
2846
+ height: number;
2847
+ width: number;
2848
+ };
2849
+ cover?: {
2850
+ _id: string;
2851
+ url: string;
2852
+ height: number;
2853
+ width: number;
2854
+ };
2855
+ };
2856
+ privacyStatus: PrivacyStatusStatus;
2857
+ activityStatus: ActivityStatusStatus;
2858
+ }[];
2859
+ }
2860
+ interface QueryMembersResponseNonNullableFields {
2861
+ members: {
2862
+ status: Status;
2863
+ contact?: {
2864
+ addresses: {
2865
+ streetAddress?: {
2866
+ number: string;
2867
+ name: string;
2868
+ };
2869
+ }[];
2870
+ };
2871
+ profile?: {
2872
+ photo?: {
2873
+ _id: string;
2874
+ url: string;
2875
+ height: number;
2876
+ width: number;
2877
+ };
2878
+ cover?: {
2879
+ _id: string;
2880
+ url: string;
2881
+ height: number;
2882
+ width: number;
2883
+ };
2884
+ };
2885
+ privacyStatus: PrivacyStatusStatus;
2886
+ activityStatus: ActivityStatusStatus;
2887
+ }[];
2888
+ }
2889
+ interface CreateMemberResponseNonNullableFields {
2890
+ member?: {
2891
+ status: Status;
2892
+ contact?: {
2893
+ addresses: {
2894
+ streetAddress?: {
2895
+ number: string;
2896
+ name: string;
2897
+ };
2898
+ }[];
2899
+ };
2900
+ profile?: {
2901
+ photo?: {
2902
+ _id: string;
2903
+ url: string;
2904
+ height: number;
2905
+ width: number;
2906
+ };
2907
+ cover?: {
2908
+ _id: string;
2909
+ url: string;
2910
+ height: number;
2911
+ width: number;
2912
+ };
2913
+ };
2914
+ privacyStatus: PrivacyStatusStatus;
2915
+ activityStatus: ActivityStatusStatus;
2916
+ };
2917
+ }
2918
+ interface UpdateMemberResponseNonNullableFields {
2919
+ member?: {
2920
+ status: Status;
2921
+ contact?: {
2922
+ addresses: {
2923
+ streetAddress?: {
2924
+ number: string;
2925
+ name: string;
2926
+ };
2927
+ }[];
2928
+ };
2929
+ profile?: {
2930
+ photo?: {
2931
+ _id: string;
2932
+ url: string;
2933
+ height: number;
2934
+ width: number;
2935
+ };
2936
+ cover?: {
2937
+ _id: string;
2938
+ url: string;
2939
+ height: number;
2940
+ width: number;
2941
+ };
2942
+ };
2943
+ privacyStatus: PrivacyStatusStatus;
2944
+ activityStatus: ActivityStatusStatus;
2945
+ };
2946
+ }
2947
+ interface DeleteMemberPhonesResponseNonNullableFields {
2948
+ member?: {
2949
+ status: Status;
2950
+ contact?: {
2951
+ addresses: {
2952
+ streetAddress?: {
2953
+ number: string;
2954
+ name: string;
2955
+ };
2956
+ }[];
2957
+ };
2958
+ profile?: {
2959
+ photo?: {
2960
+ _id: string;
2961
+ url: string;
2962
+ height: number;
2963
+ width: number;
2964
+ };
2965
+ cover?: {
2966
+ _id: string;
2967
+ url: string;
2968
+ height: number;
2969
+ width: number;
2970
+ };
2971
+ };
2972
+ privacyStatus: PrivacyStatusStatus;
2973
+ activityStatus: ActivityStatusStatus;
2974
+ };
2975
+ }
2976
+ interface DeleteMemberEmailsResponseNonNullableFields {
2977
+ member?: {
2978
+ status: Status;
2979
+ contact?: {
2980
+ addresses: {
2981
+ streetAddress?: {
2982
+ number: string;
2983
+ name: string;
2984
+ };
2985
+ }[];
2986
+ };
2987
+ profile?: {
2988
+ photo?: {
2989
+ _id: string;
2990
+ url: string;
2991
+ height: number;
2992
+ width: number;
2993
+ };
2994
+ cover?: {
2995
+ _id: string;
2996
+ url: string;
2997
+ height: number;
2998
+ width: number;
2999
+ };
3000
+ };
3001
+ privacyStatus: PrivacyStatusStatus;
3002
+ activityStatus: ActivityStatusStatus;
3003
+ };
3004
+ }
3005
+ interface DeleteMemberAddressesResponseNonNullableFields {
3006
+ member?: {
3007
+ status: Status;
3008
+ contact?: {
3009
+ addresses: {
3010
+ streetAddress?: {
3011
+ number: string;
3012
+ name: string;
3013
+ };
3014
+ }[];
3015
+ };
3016
+ profile?: {
3017
+ photo?: {
3018
+ _id: string;
3019
+ url: string;
3020
+ height: number;
3021
+ width: number;
3022
+ };
3023
+ cover?: {
3024
+ _id: string;
3025
+ url: string;
3026
+ height: number;
3027
+ width: number;
3028
+ };
3029
+ };
3030
+ privacyStatus: PrivacyStatusStatus;
3031
+ activityStatus: ActivityStatusStatus;
3032
+ };
3033
+ }
3034
+ interface BaseEventMetadata {
3035
+ /** App instance ID. */
3036
+ instanceId?: string | null;
3037
+ /** Event type. */
3038
+ eventType?: string;
3039
+ /** The identification type and identity data. */
3040
+ identity?: IdentificationData;
3041
+ }
3042
+ interface EventMetadata extends BaseEventMetadata {
3043
+ /**
3044
+ * Unique event ID.
3045
+ * Allows clients to ignore duplicate webhooks.
3046
+ */
3047
+ _id?: string;
3048
+ /**
3049
+ * Assumes actions are also always typed to an entity_type
3050
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
3051
+ */
3052
+ entityFqdn?: string;
3053
+ /**
3054
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
3055
+ * This is although the created/updated/deleted notion is duplication of the oneof types
3056
+ * Example: created/updated/deleted/started/completed/email_opened
3057
+ */
3058
+ slug?: string;
3059
+ /** ID of the entity associated with the event. */
3060
+ entityId?: string;
3061
+ /** Event timestamp. */
3062
+ eventTime?: Date;
3063
+ /**
3064
+ * Whether the event was triggered as a result of a privacy regulation application
3065
+ * (for example, GDPR).
3066
+ */
3067
+ triggeredByAnonymizeRequest?: boolean | null;
3068
+ /** If present, indicates the action that triggered the event. */
3069
+ originatedFrom?: string | null;
3070
+ /**
3071
+ * A sequence number defining the order of updates to the underlying entity.
3072
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
3073
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
3074
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
3075
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
3076
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
3077
+ */
3078
+ entityEventSequence?: string | null;
3079
+ }
3080
+ interface MemberUpdatedEnvelope {
3081
+ entity: Member;
3082
+ metadata: EventMetadata;
3083
+ }
3084
+ interface MemberDeletedEnvelope {
3085
+ metadata: EventMetadata;
3086
+ }
3087
+ interface MemberCreatedEnvelope {
3088
+ entity: Member;
3089
+ metadata: EventMetadata;
3090
+ }
3091
+ interface GetCurrentMemberOptions {
3092
+ /**
3093
+ * Predefined set of fields to return.
3094
+ *
3095
+ * - `"FULL"`: Returns all fields.
3096
+ * - `"PUBLIC"`: Returns `_id` and all fields under `profile`.
3097
+ *
3098
+ * > **Note:**
3099
+ * > When returning the `"PUBLIC"` fieldset,
3100
+ * > `profile.status`, `profile.privacyStatus`, and `profile.activityStatus`
3101
+ * > are returned as `"UNKNOWN"`.
3102
+ * @deprecated
3103
+ */
3104
+ fieldSet?: Set;
3105
+ /**
3106
+ * Predefined set of fields to return. One of:
3107
+ *
3108
+ * - `FULL`: Returns all fields.
3109
+ * - `PUBLIC`: Returns `id`, `contactId`, and the `profile` object. `status`, `privacyStatus`, and `activityStatus` are returned as `UNKNOWN`.
3110
+ * - `EXTENDED`: Returns `id`, `loginEmail`, `status`, `contactId`, `privacyStatus`, `activityStatus`, and the `profile` object.
3111
+ *
3112
+ * Default: `PUBLIC`.
3113
+ */
3114
+ fieldsets?: Set[];
3115
+ }
3116
+ interface GetMemberOptions {
3117
+ /**
3118
+ * Predefined set of fields to return. One of:
3119
+ * - `"FULL"`: Returns all fields.
3120
+ * - `"PUBLIC"`: Returns `id`, `contactId`, and the `profile` object. `status`, `privacyStatus`, and `activityStatus` are returned as `UNKNOWN`.
3121
+ * - `"EXTENDED"`: Returns `id`, `loginEmail`, `status`, `contactId`, `privacyStatus`, `activityStatus`, and the `profile` object.
3122
+ *
3123
+ * Default: `"PUBLIC"`.
3124
+ */
3125
+ fieldsets?: Set[];
3126
+ }
3127
+ interface ListMembersOptions {
3128
+ /** Paging options. */
3129
+ paging?: Paging;
3130
+ /**
3131
+ * Predefined set of fields to return. One of:
3132
+ * - `"FULL"`: Returns all fields.
3133
+ * - `"PUBLIC"`: Returns `id`, `contactId`, and the `profile` object. `status`, `privacyStatus`, and `activityStatus` are returned as `UNKNOWN`.
3134
+ * - `"EXTENDED"`: Returns `id`, `loginEmail`, `status`, `contactId`, `privacyStatus`, `activityStatus`, and the `profile` object.
3135
+ *
3136
+ * Default: `"PUBLIC"`.
3137
+ */
3138
+ fieldsets?: Set[];
3139
+ /** Sorting options. */
3140
+ sorting?: Sorting[];
3141
+ }
3142
+ interface QueryMembersOptions {
3143
+ /**
3144
+ * Predefined set of fields to return. One of:
3145
+ * - `"FULL"`: Returns all fields.
3146
+ * - `"PUBLIC"`: Returns `id`, `contactId`, and the `profile` object. `status`, `privacyStatus`, and `activityStatus` are returned as `UNKNOWN`.
3147
+ * - `"EXTENDED"`: Returns `id`, `loginEmail`, `status`, `contactId`, `privacyStatus`, `activityStatus`, and the `profile` object.
3148
+ *
3149
+ * Default: `"PUBLIC"`.
3150
+ */
3151
+ fieldsets?: Set[] | undefined;
3152
+ /** Plain text search. */
3153
+ search?: Search | undefined;
3154
+ }
3155
+ interface QueryOffsetResult {
3156
+ currentPage: number | undefined;
3157
+ totalPages: number | undefined;
3158
+ totalCount: number | undefined;
3159
+ hasNext: () => boolean;
3160
+ hasPrev: () => boolean;
3161
+ length: number;
3162
+ pageSize: number;
3163
+ }
3164
+ interface MembersQueryResult extends QueryOffsetResult {
3165
+ items: Member[];
3166
+ query: MembersQueryBuilder;
3167
+ next: () => Promise<MembersQueryResult>;
3168
+ prev: () => Promise<MembersQueryResult>;
3169
+ }
3170
+ interface MembersQueryBuilder {
3171
+ /** @param propertyName - Property whose value is compared with `value`.
3172
+ * @param value - Value to compare against.
3173
+ * @documentationMaturity preview
3174
+ */
3175
+ eq: (propertyName: '_id' | 'loginEmail' | 'contact.firstName' | 'contact.lastName' | 'profile.nickname' | 'profile.slug' | 'privacyStatus', value: any) => MembersQueryBuilder;
3176
+ /** @param propertyName - Property whose value is compared with `value`.
3177
+ * @param value - Value to compare against.
3178
+ * @documentationMaturity preview
3179
+ */
3180
+ ne: (propertyName: '_id' | 'loginEmail' | 'contact.firstName' | 'contact.lastName' | 'profile.nickname' | 'profile.slug' | 'privacyStatus', value: any) => MembersQueryBuilder;
3181
+ /** @param propertyName - Property whose value is compared with `string`.
3182
+ * @param string - String to compare against. Case-insensitive.
3183
+ * @documentationMaturity preview
3184
+ */
3185
+ startsWith: (propertyName: '_id' | 'loginEmail' | 'contact.firstName' | 'contact.lastName' | 'profile.nickname' | 'profile.slug', value: string) => MembersQueryBuilder;
3186
+ /** @param propertyName - Property whose value is compared with `values`.
3187
+ * @param values - List of values to compare against.
3188
+ * @documentationMaturity preview
3189
+ */
3190
+ hasSome: (propertyName: '_id' | 'loginEmail' | 'contact.firstName' | 'contact.lastName' | 'profile.nickname' | 'profile.slug' | 'privacyStatus', value: any[]) => MembersQueryBuilder;
3191
+ /** @documentationMaturity preview */
3192
+ in: (propertyName: '_id' | 'loginEmail' | 'contact.firstName' | 'contact.lastName' | 'profile.nickname' | 'profile.slug' | 'privacyStatus', value: any) => MembersQueryBuilder;
3193
+ /** @documentationMaturity preview */
3194
+ exists: (propertyName: '_id' | 'loginEmail' | 'contact.firstName' | 'contact.lastName' | 'profile.nickname' | 'profile.slug' | 'privacyStatus', value: boolean) => MembersQueryBuilder;
3195
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
3196
+ * @documentationMaturity preview
3197
+ */
3198
+ limit: (limit: number) => MembersQueryBuilder;
3199
+ /** @param skip - Number of items to skip in the query results before returning the results.
3200
+ * @documentationMaturity preview
3201
+ */
3202
+ skip: (skip: number) => MembersQueryBuilder;
3203
+ /** @documentationMaturity preview */
3204
+ find: () => Promise<MembersQueryResult>;
3205
+ }
3206
+ interface CreateMemberOptions {
3207
+ /** Member to create. */
3208
+ member?: Member;
3209
+ }
3210
+ interface UpdateMember {
3211
+ /**
3212
+ * Member ID.
3213
+ * @readonly
3214
+ */
3215
+ _id?: string | null;
3216
+ /** Email used by the member to log in to the site. */
3217
+ loginEmail?: string | null;
3218
+ /**
3219
+ * Whether the email used by the member has been verified.
3220
+ * @readonly
3221
+ */
3222
+ loginEmailVerified?: boolean | null;
3223
+ /**
3224
+ * Member site access status.
3225
+ *
3226
+ * - `PENDING`: Member created and is waiting for approval by site owner.
3227
+ * - `APPROVED`: Member can log in to the site.
3228
+ * - `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.
3229
+ * - `BLOCKED`: Member is blocked and cannot log in to the site.
3230
+ * - `UNKNOWN`: Insufficient permissions to get the status.
3231
+ * @readonly
3232
+ */
3233
+ status?: Status;
3234
+ /**
3235
+ * Contact ID.
3236
+ * @readonly
3237
+ */
3238
+ contactId?: string | null;
3239
+ /**
3240
+ * Member's contact information. Contact information is stored in the
3241
+ * [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).
3242
+ */
3243
+ contact?: Contact;
3244
+ /** Profile display info. */
3245
+ profile?: Profile;
3246
+ /**
3247
+ * Member privacy status.
3248
+ *
3249
+ * - `PUBLIC`: Member is visible to everyone.
3250
+ * - `PRIVATE`: Member is hidden from site visitors and other site members. Member is returned only to site contributors and apps with the appropriate permissions.
3251
+ * - `UNKNOWN`: Insufficient permissions to get the status.
3252
+ */
3253
+ privacyStatus?: PrivacyStatusStatus;
3254
+ /**
3255
+ * Member activity status.
3256
+ *
3257
+ * - `ACTIVE`: Member can write forum posts and blog comments.
3258
+ * - `MUTED`: Member cannot write forum posts or blog comments.
3259
+ * - `UNKNOWN`: Insufficient permissions to get the status.
3260
+ * @readonly
3261
+ */
3262
+ activityStatus?: ActivityStatusStatus;
3263
+ /**
3264
+ * Date and time when the member was created.
3265
+ * @readonly
3266
+ */
3267
+ _createdDate?: Date;
3268
+ /**
3269
+ * Date and time when the member was updated.
3270
+ * @readonly
3271
+ */
3272
+ _updatedDate?: Date;
3273
+ /**
3274
+ * Date and time when the member last logged in to the site.
3275
+ * @readonly
3276
+ */
3277
+ lastLoginDate?: Date;
3278
+ }
3279
+
3280
+ declare const __metadata: {
3281
+ PACKAGE_NAME: string;
3282
+ };
3283
+ declare function updateCurrentMemberSlug(httpClient: HttpClient): (slug: string) => Promise<UpdateMySlugResponse & UpdateMySlugResponseNonNullableFields>;
3284
+ declare function joinCommunity(httpClient: HttpClient): () => Promise<JoinCommunityResponse & JoinCommunityResponseNonNullableFields>;
3285
+ declare function leaveCommunity(httpClient: HttpClient): () => Promise<LeaveCommunityResponse & LeaveCommunityResponseNonNullableFields>;
3286
+ declare function getCurrentMember(httpClient: HttpClient): (options?: GetCurrentMemberOptions) => Promise<GetMyMemberResponse & GetMyMemberResponseNonNullableFields>;
3287
+ declare function getMember(httpClient: HttpClient): (_id: string, options?: GetMemberOptions) => Promise<Member & {
3288
+ status: Status;
3289
+ contact?: {
3290
+ addresses: {
3291
+ streetAddress?: {
3292
+ number: string;
3293
+ name: string;
3294
+ } | undefined;
3295
+ }[];
3296
+ } | undefined;
3297
+ profile?: {
3298
+ photo?: {
3299
+ _id: string;
3300
+ url: string;
3301
+ height: number;
3302
+ width: number;
3303
+ } | undefined;
3304
+ cover?: {
3305
+ _id: string;
3306
+ url: string;
3307
+ height: number;
3308
+ width: number;
3309
+ } | undefined;
3310
+ } | undefined;
3311
+ privacyStatus: PrivacyStatusStatus;
3312
+ activityStatus: ActivityStatusStatus;
3313
+ }>;
3314
+ declare function listMembers(httpClient: HttpClient): (options?: ListMembersOptions) => Promise<ListMembersResponse & ListMembersResponseNonNullableFields>;
3315
+ declare function queryMembers(httpClient: HttpClient): (options?: QueryMembersOptions) => MembersQueryBuilder;
3316
+ declare function deleteMember(httpClient: HttpClient): (_id: string) => Promise<void>;
3317
+ declare function createMember(httpClient: HttpClient): (options?: CreateMemberOptions) => Promise<Member & {
3318
+ status: Status;
3319
+ contact?: {
3320
+ addresses: {
3321
+ streetAddress?: {
3322
+ number: string;
3323
+ name: string;
3324
+ } | undefined;
3325
+ }[];
3326
+ } | undefined;
3327
+ profile?: {
3328
+ photo?: {
3329
+ _id: string;
3330
+ url: string;
3331
+ height: number;
3332
+ width: number;
3333
+ } | undefined;
3334
+ cover?: {
3335
+ _id: string;
3336
+ url: string;
3337
+ height: number;
3338
+ width: number;
3339
+ } | undefined;
3340
+ } | undefined;
3341
+ privacyStatus: PrivacyStatusStatus;
3342
+ activityStatus: ActivityStatusStatus;
3343
+ }>;
3344
+ declare function updateMember(httpClient: HttpClient): (_id: string | null, member: UpdateMember) => Promise<Member & {
3345
+ status: Status;
3346
+ contact?: {
3347
+ addresses: {
3348
+ streetAddress?: {
3349
+ number: string;
3350
+ name: string;
3351
+ } | undefined;
3352
+ }[];
3353
+ } | undefined;
3354
+ profile?: {
3355
+ photo?: {
3356
+ _id: string;
3357
+ url: string;
3358
+ height: number;
3359
+ width: number;
3360
+ } | undefined;
3361
+ cover?: {
3362
+ _id: string;
3363
+ url: string;
3364
+ height: number;
3365
+ width: number;
3366
+ } | undefined;
3367
+ } | undefined;
3368
+ privacyStatus: PrivacyStatusStatus;
3369
+ activityStatus: ActivityStatusStatus;
3370
+ }>;
3371
+ declare function deleteMemberPhones(httpClient: HttpClient): (_id: string) => Promise<DeleteMemberPhonesResponse & DeleteMemberPhonesResponseNonNullableFields>;
3372
+ declare function deleteMemberEmails(httpClient: HttpClient): (_id: string) => Promise<DeleteMemberEmailsResponse & DeleteMemberEmailsResponseNonNullableFields>;
3373
+ declare function deleteMemberAddresses(httpClient: HttpClient): (_id: string) => Promise<DeleteMemberAddressesResponse & DeleteMemberAddressesResponseNonNullableFields>;
3374
+ declare const onMemberUpdated: EventDefinition<MemberUpdatedEnvelope, "wix.members.v1.member_updated">;
3375
+ declare const onMemberDeleted: EventDefinition<MemberDeletedEnvelope, "wix.members.v1.member_deleted">;
3376
+ declare const onMemberCreated: EventDefinition<MemberCreatedEnvelope, "wix.members.v1.member_created">;
3377
+
3378
+ type index_d_ActionEvent = ActionEvent;
3379
+ type index_d_ActiveSubscriptionMemberBlockForbiddenPayload = ActiveSubscriptionMemberBlockForbiddenPayload;
3380
+ type index_d_ActivityStatusStatus = ActivityStatusStatus;
3381
+ declare const index_d_ActivityStatusStatus: typeof ActivityStatusStatus;
3382
+ type index_d_Address = Address;
3383
+ type index_d_AddressStreetOneOf = AddressStreetOneOf;
3384
+ type index_d_App = App;
3385
+ type index_d_ApplicationError = ApplicationError;
3386
+ type index_d_ApproveMemberRequest = ApproveMemberRequest;
3387
+ type index_d_ApproveMemberResponse = ApproveMemberResponse;
3388
+ type index_d_Asset = Asset;
3389
+ type index_d_BaseEventMetadata = BaseEventMetadata;
3390
+ type index_d_BlockMemberRequest = BlockMemberRequest;
3391
+ type index_d_BlockMemberResponse = BlockMemberResponse;
3392
+ type index_d_BulkActionMetadata = BulkActionMetadata;
3393
+ type index_d_BulkApproveMembersRequest = BulkApproveMembersRequest;
3394
+ type index_d_BulkApproveMembersResponse = BulkApproveMembersResponse;
3395
+ type index_d_BulkBlockMembersRequest = BulkBlockMembersRequest;
3396
+ type index_d_BulkBlockMembersResponse = BulkBlockMembersResponse;
3397
+ type index_d_BulkDeleteMembersByFilterRequest = BulkDeleteMembersByFilterRequest;
3398
+ type index_d_BulkDeleteMembersByFilterResponse = BulkDeleteMembersByFilterResponse;
3399
+ type index_d_BulkDeleteMembersRequest = BulkDeleteMembersRequest;
3400
+ type index_d_BulkDeleteMembersResponse = BulkDeleteMembersResponse;
3401
+ type index_d_BulkMemberResult = BulkMemberResult;
3402
+ type index_d_Contact = Contact;
3403
+ type index_d_ContentDeletionRequested = ContentDeletionRequested;
3404
+ type index_d_ContentReassignmentRequested = ContentReassignmentRequested;
3405
+ type index_d_CreateMemberOptions = CreateMemberOptions;
3406
+ type index_d_CreateMemberRequest = CreateMemberRequest;
3407
+ type index_d_CreateMemberResponse = CreateMemberResponse;
3408
+ type index_d_CreateMemberResponseNonNullableFields = CreateMemberResponseNonNullableFields;
3409
+ type index_d_CursorPaging = CursorPaging;
3410
+ type index_d_CursorPagingMetadata = CursorPagingMetadata;
3411
+ type index_d_Cursors = Cursors;
3412
+ type index_d_CustomField = CustomField;
3413
+ type index_d_DeleteContext = DeleteContext;
3414
+ type index_d_DeleteMemberAddressesRequest = DeleteMemberAddressesRequest;
3415
+ type index_d_DeleteMemberAddressesResponse = DeleteMemberAddressesResponse;
3416
+ type index_d_DeleteMemberAddressesResponseNonNullableFields = DeleteMemberAddressesResponseNonNullableFields;
3417
+ type index_d_DeleteMemberEmailsRequest = DeleteMemberEmailsRequest;
3418
+ type index_d_DeleteMemberEmailsResponse = DeleteMemberEmailsResponse;
3419
+ type index_d_DeleteMemberEmailsResponseNonNullableFields = DeleteMemberEmailsResponseNonNullableFields;
3420
+ type index_d_DeleteMemberPhonesRequest = DeleteMemberPhonesRequest;
3421
+ type index_d_DeleteMemberPhonesResponse = DeleteMemberPhonesResponse;
3422
+ type index_d_DeleteMemberPhonesResponseNonNullableFields = DeleteMemberPhonesResponseNonNullableFields;
3423
+ type index_d_DeleteMemberRequest = DeleteMemberRequest;
3424
+ type index_d_DeleteMemberResponse = DeleteMemberResponse;
3425
+ type index_d_DeleteMyMemberRequest = DeleteMyMemberRequest;
3426
+ type index_d_DeleteMyMemberResponse = DeleteMyMemberResponse;
3427
+ type index_d_DeleteStatus = DeleteStatus;
3428
+ declare const index_d_DeleteStatus: typeof DeleteStatus;
3429
+ type index_d_DisconnectMemberRequest = DisconnectMemberRequest;
3430
+ type index_d_DisconnectMemberResponse = DisconnectMemberResponse;
3431
+ type index_d_DomainEvent = DomainEvent;
3432
+ type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
3433
+ type index_d_Empty = Empty;
3434
+ type index_d_EntityCreatedEvent = EntityCreatedEvent;
3435
+ type index_d_EntityDeletedEvent = EntityDeletedEvent;
3436
+ type index_d_EntityUpdatedEvent = EntityUpdatedEvent;
3437
+ type index_d_EventMetadata = EventMetadata;
3438
+ type index_d_ExtendedFields = ExtendedFields;
3439
+ type index_d_File = File;
3440
+ type index_d_GetCurrentMemberOptions = GetCurrentMemberOptions;
3441
+ type index_d_GetMemberOptions = GetMemberOptions;
3442
+ type index_d_GetMemberRequest = GetMemberRequest;
3443
+ type index_d_GetMemberResponse = GetMemberResponse;
3444
+ type index_d_GetMemberResponseNonNullableFields = GetMemberResponseNonNullableFields;
3445
+ type index_d_GetMyMemberRequest = GetMyMemberRequest;
3446
+ type index_d_GetMyMemberResponse = GetMyMemberResponse;
3447
+ type index_d_GetMyMemberResponseNonNullableFields = GetMyMemberResponseNonNullableFields;
3448
+ type index_d_IdentificationData = IdentificationData;
3449
+ type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
3450
+ type index_d_Image = Image;
3451
+ type index_d_InvalidateCache = InvalidateCache;
3452
+ type index_d_InvalidateCacheGetByOneOf = InvalidateCacheGetByOneOf;
3453
+ type index_d_ItemMetadata = ItemMetadata;
3454
+ type index_d_JoinCommunityRequest = JoinCommunityRequest;
3455
+ type index_d_JoinCommunityResponse = JoinCommunityResponse;
3456
+ type index_d_JoinCommunityResponseNonNullableFields = JoinCommunityResponseNonNullableFields;
3457
+ type index_d_LeaveCommunityRequest = LeaveCommunityRequest;
3458
+ type index_d_LeaveCommunityResponse = LeaveCommunityResponse;
3459
+ type index_d_LeaveCommunityResponseNonNullableFields = LeaveCommunityResponseNonNullableFields;
3460
+ type index_d_ListMembersOptions = ListMembersOptions;
3461
+ type index_d_ListMembersRequest = ListMembersRequest;
3462
+ type index_d_ListMembersResponse = ListMembersResponse;
3463
+ type index_d_ListMembersResponseNonNullableFields = ListMembersResponseNonNullableFields;
3464
+ type index_d_Member = Member;
3465
+ type index_d_MemberApproved = MemberApproved;
3466
+ type index_d_MemberBlocked = MemberBlocked;
3467
+ type index_d_MemberCreatedEnvelope = MemberCreatedEnvelope;
3468
+ type index_d_MemberDeletedEnvelope = MemberDeletedEnvelope;
3469
+ type index_d_MemberIdChanged = MemberIdChanged;
3470
+ type index_d_MemberJoinedCommunity = MemberJoinedCommunity;
3471
+ type index_d_MemberLeftCommunity = MemberLeftCommunity;
3472
+ type index_d_MemberMuted = MemberMuted;
3473
+ type index_d_MemberOwnershipTransferred = MemberOwnershipTransferred;
3474
+ type index_d_MemberSelfBlockForbiddenPayload = MemberSelfBlockForbiddenPayload;
3475
+ type index_d_MemberToMemberBlockedPayload = MemberToMemberBlockedPayload;
3476
+ type index_d_MemberUnmuted = MemberUnmuted;
3477
+ type index_d_MemberUpdatedEnvelope = MemberUpdatedEnvelope;
3478
+ type index_d_MembersQueryBuilder = MembersQueryBuilder;
3479
+ type index_d_MembersQueryResult = MembersQueryResult;
3480
+ type index_d_MessageEnvelope = MessageEnvelope;
3481
+ type index_d_MetaSiteSpecialEvent = MetaSiteSpecialEvent;
3482
+ type index_d_MetaSiteSpecialEventPayloadOneOf = MetaSiteSpecialEventPayloadOneOf;
3483
+ type index_d_MuteMemberRequest = MuteMemberRequest;
3484
+ type index_d_MuteMemberResponse = MuteMemberResponse;
3485
+ type index_d_Namespace = Namespace;
3486
+ declare const index_d_Namespace: typeof Namespace;
3487
+ type index_d_NamespaceChanged = NamespaceChanged;
3488
+ type index_d_OwnerMemberBlockForbiddenPayload = OwnerMemberBlockForbiddenPayload;
3489
+ type index_d_Page = Page;
3490
+ type index_d_Paging = Paging;
3491
+ type index_d_PagingMetadata = PagingMetadata;
3492
+ type index_d_PrivacyStatusStatus = PrivacyStatusStatus;
3493
+ declare const index_d_PrivacyStatusStatus: typeof PrivacyStatusStatus;
3494
+ type index_d_Profile = Profile;
3495
+ type index_d_Query = Query;
3496
+ type index_d_QueryMembersOptions = QueryMembersOptions;
3497
+ type index_d_QueryMembersRequest = QueryMembersRequest;
3498
+ type index_d_QueryMembersResponse = QueryMembersResponse;
3499
+ type index_d_QueryMembersResponseNonNullableFields = QueryMembersResponseNonNullableFields;
3500
+ type index_d_Search = Search;
3501
+ type index_d_ServiceProvisioned = ServiceProvisioned;
3502
+ type index_d_ServiceRemoved = ServiceRemoved;
3503
+ type index_d_Set = Set;
3504
+ declare const index_d_Set: typeof Set;
3505
+ type index_d_SiteCreated = SiteCreated;
3506
+ type index_d_SiteCreatedContext = SiteCreatedContext;
3507
+ declare const index_d_SiteCreatedContext: typeof SiteCreatedContext;
3508
+ type index_d_SiteDeleted = SiteDeleted;
3509
+ type index_d_SiteHardDeleted = SiteHardDeleted;
3510
+ type index_d_SiteMarkedAsTemplate = SiteMarkedAsTemplate;
3511
+ type index_d_SiteMarkedAsWixSite = SiteMarkedAsWixSite;
3512
+ type index_d_SitePublished = SitePublished;
3513
+ type index_d_SiteRenamed = SiteRenamed;
3514
+ type index_d_SiteTransferred = SiteTransferred;
3515
+ type index_d_SiteUndeleted = SiteUndeleted;
3516
+ type index_d_SiteUnpublished = SiteUnpublished;
3517
+ type index_d_SlugAlreadyExistsPayload = SlugAlreadyExistsPayload;
3518
+ type index_d_SortOrder = SortOrder;
3519
+ declare const index_d_SortOrder: typeof SortOrder;
3520
+ type index_d_Sorting = Sorting;
3521
+ type index_d_State = State;
3522
+ declare const index_d_State: typeof State;
3523
+ type index_d_Status = Status;
3524
+ declare const index_d_Status: typeof Status;
3525
+ type index_d_StreetAddress = StreetAddress;
3526
+ type index_d_StudioAssigned = StudioAssigned;
3527
+ type index_d_StudioUnassigned = StudioUnassigned;
3528
+ type index_d_URI = URI;
3529
+ type index_d_UnmuteMemberRequest = UnmuteMemberRequest;
3530
+ type index_d_UnmuteMemberResponse = UnmuteMemberResponse;
3531
+ type index_d_UpdateMember = UpdateMember;
3532
+ type index_d_UpdateMemberRequest = UpdateMemberRequest;
3533
+ type index_d_UpdateMemberResponse = UpdateMemberResponse;
3534
+ type index_d_UpdateMemberResponseNonNullableFields = UpdateMemberResponseNonNullableFields;
3535
+ type index_d_UpdateMemberSlugRequest = UpdateMemberSlugRequest;
3536
+ type index_d_UpdateMemberSlugResponse = UpdateMemberSlugResponse;
3537
+ type index_d_UpdateMySlugRequest = UpdateMySlugRequest;
3538
+ type index_d_UpdateMySlugResponse = UpdateMySlugResponse;
3539
+ type index_d_UpdateMySlugResponseNonNullableFields = UpdateMySlugResponseNonNullableFields;
3540
+ type index_d_WebhookIdentityType = WebhookIdentityType;
3541
+ declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
3542
+ declare const index_d___metadata: typeof __metadata;
3543
+ declare const index_d_createMember: typeof createMember;
3544
+ declare const index_d_deleteMember: typeof deleteMember;
3545
+ declare const index_d_deleteMemberAddresses: typeof deleteMemberAddresses;
3546
+ declare const index_d_deleteMemberEmails: typeof deleteMemberEmails;
3547
+ declare const index_d_deleteMemberPhones: typeof deleteMemberPhones;
3548
+ declare const index_d_getCurrentMember: typeof getCurrentMember;
3549
+ declare const index_d_getMember: typeof getMember;
3550
+ declare const index_d_joinCommunity: typeof joinCommunity;
3551
+ declare const index_d_leaveCommunity: typeof leaveCommunity;
3552
+ declare const index_d_listMembers: typeof listMembers;
3553
+ declare const index_d_onMemberCreated: typeof onMemberCreated;
3554
+ declare const index_d_onMemberDeleted: typeof onMemberDeleted;
3555
+ declare const index_d_onMemberUpdated: typeof onMemberUpdated;
3556
+ declare const index_d_queryMembers: typeof queryMembers;
3557
+ declare const index_d_updateCurrentMemberSlug: typeof updateCurrentMemberSlug;
3558
+ declare const index_d_updateMember: typeof updateMember;
3559
+ declare namespace index_d {
3560
+ export { type index_d_ActionEvent as ActionEvent, type index_d_ActiveSubscriptionMemberBlockForbiddenPayload as ActiveSubscriptionMemberBlockForbiddenPayload, index_d_ActivityStatusStatus as ActivityStatusStatus, type index_d_Address as Address, type index_d_AddressStreetOneOf as AddressStreetOneOf, type index_d_App as App, type index_d_ApplicationError as ApplicationError, type index_d_ApproveMemberRequest as ApproveMemberRequest, type index_d_ApproveMemberResponse as ApproveMemberResponse, type index_d_Asset as Asset, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BlockMemberRequest as BlockMemberRequest, type index_d_BlockMemberResponse as BlockMemberResponse, type index_d_BulkActionMetadata as BulkActionMetadata, type index_d_BulkApproveMembersRequest as BulkApproveMembersRequest, type index_d_BulkApproveMembersResponse as BulkApproveMembersResponse, type index_d_BulkBlockMembersRequest as BulkBlockMembersRequest, type index_d_BulkBlockMembersResponse as BulkBlockMembersResponse, type index_d_BulkDeleteMembersByFilterRequest as BulkDeleteMembersByFilterRequest, type index_d_BulkDeleteMembersByFilterResponse as BulkDeleteMembersByFilterResponse, type index_d_BulkDeleteMembersRequest as BulkDeleteMembersRequest, type index_d_BulkDeleteMembersResponse as BulkDeleteMembersResponse, type index_d_BulkMemberResult as BulkMemberResult, type index_d_Contact as Contact, type index_d_ContentDeletionRequested as ContentDeletionRequested, type index_d_ContentReassignmentRequested as ContentReassignmentRequested, type index_d_CreateMemberOptions as CreateMemberOptions, type index_d_CreateMemberRequest as CreateMemberRequest, type index_d_CreateMemberResponse as CreateMemberResponse, type index_d_CreateMemberResponseNonNullableFields as CreateMemberResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_Cursors as Cursors, type index_d_CustomField as CustomField, type index_d_DeleteContext as DeleteContext, type index_d_DeleteMemberAddressesRequest as DeleteMemberAddressesRequest, type index_d_DeleteMemberAddressesResponse as DeleteMemberAddressesResponse, type index_d_DeleteMemberAddressesResponseNonNullableFields as DeleteMemberAddressesResponseNonNullableFields, type index_d_DeleteMemberEmailsRequest as DeleteMemberEmailsRequest, type index_d_DeleteMemberEmailsResponse as DeleteMemberEmailsResponse, type index_d_DeleteMemberEmailsResponseNonNullableFields as DeleteMemberEmailsResponseNonNullableFields, type index_d_DeleteMemberPhonesRequest as DeleteMemberPhonesRequest, type index_d_DeleteMemberPhonesResponse as DeleteMemberPhonesResponse, type index_d_DeleteMemberPhonesResponseNonNullableFields as DeleteMemberPhonesResponseNonNullableFields, type index_d_DeleteMemberRequest as DeleteMemberRequest, type index_d_DeleteMemberResponse as DeleteMemberResponse, type index_d_DeleteMyMemberRequest as DeleteMyMemberRequest, type index_d_DeleteMyMemberResponse as DeleteMyMemberResponse, index_d_DeleteStatus as DeleteStatus, type index_d_DisconnectMemberRequest as DisconnectMemberRequest, type index_d_DisconnectMemberResponse as DisconnectMemberResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_ExtendedFields as ExtendedFields, type index_d_File as File, type index_d_GetCurrentMemberOptions as GetCurrentMemberOptions, type index_d_GetMemberOptions as GetMemberOptions, type index_d_GetMemberRequest as GetMemberRequest, type index_d_GetMemberResponse as GetMemberResponse, type index_d_GetMemberResponseNonNullableFields as GetMemberResponseNonNullableFields, type index_d_GetMyMemberRequest as GetMyMemberRequest, type index_d_GetMyMemberResponse as GetMyMemberResponse, type index_d_GetMyMemberResponseNonNullableFields as GetMyMemberResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_Image as Image, type index_d_InvalidateCache as InvalidateCache, type index_d_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type index_d_ItemMetadata as ItemMetadata, type index_d_JoinCommunityRequest as JoinCommunityRequest, type index_d_JoinCommunityResponse as JoinCommunityResponse, type index_d_JoinCommunityResponseNonNullableFields as JoinCommunityResponseNonNullableFields, type index_d_LeaveCommunityRequest as LeaveCommunityRequest, type index_d_LeaveCommunityResponse as LeaveCommunityResponse, type index_d_LeaveCommunityResponseNonNullableFields as LeaveCommunityResponseNonNullableFields, type index_d_ListMembersOptions as ListMembersOptions, type index_d_ListMembersRequest as ListMembersRequest, type index_d_ListMembersResponse as ListMembersResponse, type index_d_ListMembersResponseNonNullableFields as ListMembersResponseNonNullableFields, type index_d_Member as Member, type index_d_MemberApproved as MemberApproved, type index_d_MemberBlocked as MemberBlocked, type index_d_MemberCreatedEnvelope as MemberCreatedEnvelope, type index_d_MemberDeletedEnvelope as MemberDeletedEnvelope, type index_d_MemberIdChanged as MemberIdChanged, type index_d_MemberJoinedCommunity as MemberJoinedCommunity, type index_d_MemberLeftCommunity as MemberLeftCommunity, type index_d_MemberMuted as MemberMuted, type index_d_MemberOwnershipTransferred as MemberOwnershipTransferred, type index_d_MemberSelfBlockForbiddenPayload as MemberSelfBlockForbiddenPayload, type index_d_MemberToMemberBlockedPayload as MemberToMemberBlockedPayload, type index_d_MemberUnmuted as MemberUnmuted, type index_d_MemberUpdatedEnvelope as MemberUpdatedEnvelope, type index_d_MembersQueryBuilder as MembersQueryBuilder, type index_d_MembersQueryResult as MembersQueryResult, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, type index_d_MuteMemberRequest as MuteMemberRequest, type index_d_MuteMemberResponse as MuteMemberResponse, index_d_Namespace as Namespace, type index_d_NamespaceChanged as NamespaceChanged, type index_d_OwnerMemberBlockForbiddenPayload as OwnerMemberBlockForbiddenPayload, type index_d_Page as Page, type index_d_Paging as Paging, type index_d_PagingMetadata as PagingMetadata, index_d_PrivacyStatusStatus as PrivacyStatusStatus, type index_d_Profile as Profile, type index_d_Query as Query, type index_d_QueryMembersOptions as QueryMembersOptions, type index_d_QueryMembersRequest as QueryMembersRequest, type index_d_QueryMembersResponse as QueryMembersResponse, type index_d_QueryMembersResponseNonNullableFields as QueryMembersResponseNonNullableFields, type index_d_Search as Search, type index_d_ServiceProvisioned as ServiceProvisioned, type index_d_ServiceRemoved as ServiceRemoved, index_d_Set as Set, type index_d_SiteCreated as SiteCreated, index_d_SiteCreatedContext as SiteCreatedContext, type index_d_SiteDeleted as SiteDeleted, type index_d_SiteHardDeleted as SiteHardDeleted, type index_d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d_SitePublished as SitePublished, type index_d_SiteRenamed as SiteRenamed, type index_d_SiteTransferred as SiteTransferred, type index_d_SiteUndeleted as SiteUndeleted, type index_d_SiteUnpublished as SiteUnpublished, type index_d_SlugAlreadyExistsPayload as SlugAlreadyExistsPayload, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_State as State, index_d_Status as Status, type index_d_StreetAddress as StreetAddress, type index_d_StudioAssigned as StudioAssigned, type index_d_StudioUnassigned as StudioUnassigned, type index_d_URI as URI, type index_d_UnmuteMemberRequest as UnmuteMemberRequest, type index_d_UnmuteMemberResponse as UnmuteMemberResponse, type index_d_UpdateMember as UpdateMember, type index_d_UpdateMemberRequest as UpdateMemberRequest, type index_d_UpdateMemberResponse as UpdateMemberResponse, type index_d_UpdateMemberResponseNonNullableFields as UpdateMemberResponseNonNullableFields, type index_d_UpdateMemberSlugRequest as UpdateMemberSlugRequest, type index_d_UpdateMemberSlugResponse as UpdateMemberSlugResponse, type index_d_UpdateMySlugRequest as UpdateMySlugRequest, type index_d_UpdateMySlugResponse as UpdateMySlugResponse, type index_d_UpdateMySlugResponseNonNullableFields as UpdateMySlugResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_createMember as createMember, index_d_deleteMember as deleteMember, index_d_deleteMemberAddresses as deleteMemberAddresses, index_d_deleteMemberEmails as deleteMemberEmails, index_d_deleteMemberPhones as deleteMemberPhones, index_d_getCurrentMember as getCurrentMember, index_d_getMember as getMember, index_d_joinCommunity as joinCommunity, index_d_leaveCommunity as leaveCommunity, index_d_listMembers as listMembers, index_d_onMemberCreated as onMemberCreated, index_d_onMemberDeleted as onMemberDeleted, index_d_onMemberUpdated as onMemberUpdated, index_d_queryMembers as queryMembers, index_d_updateCurrentMemberSlug as updateCurrentMemberSlug, index_d_updateMember as updateMember };
3561
+ }
3562
+
3563
+ export { index_d$1 as authentication, index_d$2 as badges, index_d as members };