@wix/auto_sdk_comments_votes 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,610 @@
1
+ import { UpvoteRequest as UpvoteRequest$1, UpvoteResponse as UpvoteResponse$1, DownvoteRequest as DownvoteRequest$1, DownvoteResponse as DownvoteResponse$1, RemoveVoteRequest as RemoveVoteRequest$1, RemoveVoteResponse as RemoveVoteResponse$1, QueryVotesRequest as QueryVotesRequest$1, QueryVotesResponse as QueryVotesResponse$1 } from './index.typings.mjs';
2
+ import '@wix/sdk-types';
3
+
4
+ /** An upvote or downvote cast by one identity on a resource in an app context. */
5
+ interface Vote {
6
+ /**
7
+ * Vote resource ID
8
+ * @maxLength 128
9
+ */
10
+ resourceId?: string;
11
+ /**
12
+ * Resource fully qualified domain name
13
+ * @maxLength 300
14
+ */
15
+ resourceFqdn?: string;
16
+ /**
17
+ * Vote ID
18
+ * @format GUID
19
+ * @readonly
20
+ */
21
+ voteId?: string;
22
+ /**
23
+ * Type of vote
24
+ * @readonly
25
+ */
26
+ type?: TypeWithLiterals;
27
+ /**
28
+ * Vote author
29
+ * @readonly
30
+ */
31
+ createdBy?: SocialIdentity;
32
+ /**
33
+ * Vote created date
34
+ * @readonly
35
+ */
36
+ createdDate?: Date | null;
37
+ /**
38
+ * Vote updated date
39
+ * @readonly
40
+ */
41
+ updatedDate?: Date | null;
42
+ /** Vote context, defining where the vote belongs to */
43
+ context?: VoteContext;
44
+ /**
45
+ * Vote revision
46
+ * @readonly
47
+ */
48
+ revision?: string;
49
+ }
50
+ /** Type of vote */
51
+ declare enum Type {
52
+ UNKNOWN = "UNKNOWN",
53
+ UPVOTE = "UPVOTE",
54
+ DOWNVOTE = "DOWNVOTE"
55
+ }
56
+ /** @enumType */
57
+ type TypeWithLiterals = Type | 'UNKNOWN' | 'UPVOTE' | 'DOWNVOTE';
58
+ interface SocialIdentity {
59
+ /** @format GUID */
60
+ identityId?: string;
61
+ identityType?: IdentityTypeWithLiterals;
62
+ }
63
+ declare enum IdentityType {
64
+ ANONYMOUS = "ANONYMOUS",
65
+ MEMBER = "MEMBER",
66
+ USER = "USER",
67
+ SERVICE = "SERVICE",
68
+ /** indicates everyone who is a member of a group */
69
+ MEMBER_GROUP = "MEMBER_GROUP"
70
+ }
71
+ /** @enumType */
72
+ type IdentityTypeWithLiterals = IdentityType | 'ANONYMOUS' | 'MEMBER' | 'USER' | 'SERVICE' | 'MEMBER_GROUP';
73
+ interface VoteContext {
74
+ /**
75
+ * Context ID
76
+ * @maxLength 128
77
+ */
78
+ contextId?: string;
79
+ /** Context type */
80
+ contextType?: string | null;
81
+ /**
82
+ * Vote app ID
83
+ * @format GUID
84
+ * @readonly
85
+ */
86
+ appDefId?: string;
87
+ /**
88
+ * MetaSite ID
89
+ * @format GUID
90
+ * @readonly
91
+ */
92
+ metaSiteId?: string;
93
+ }
94
+ interface UpvoteRequest {
95
+ /**
96
+ * context token to be passed
97
+ * @deprecated
98
+ * @replacedBy context_data
99
+ */
100
+ contextToken?: string;
101
+ /**
102
+ * resource identifier for vote be cast on
103
+ * @maxLength 128
104
+ */
105
+ resourceId: string;
106
+ /**
107
+ * resource name
108
+ * @maxLength 300
109
+ */
110
+ resourceFqdn: string;
111
+ /** context data */
112
+ contextData?: ContextData;
113
+ }
114
+ /**
115
+ * Identifies the app and context containing the resource.
116
+ * When provided, contextData takes precedence over the deprecated contextToken.
117
+ */
118
+ interface ContextData {
119
+ /**
120
+ * ID of the app that owns the context.
121
+ * @format GUID
122
+ */
123
+ appDefId?: string;
124
+ /**
125
+ * ID of the context containing the resource.
126
+ * @maxLength 128
127
+ */
128
+ contextId?: string;
129
+ /** Optional type used by the app to resolve its context. */
130
+ contextType?: string | null;
131
+ }
132
+ interface UpvoteResponse {
133
+ /** created vote */
134
+ vote?: Vote;
135
+ }
136
+ interface ContextResourceVoteChange {
137
+ /**
138
+ * Resource ID
139
+ * @maxLength 128
140
+ */
141
+ resourceId?: string;
142
+ /**
143
+ * Resource fully qualified domain name
144
+ * @maxLength 300
145
+ */
146
+ resourceFqdn?: string;
147
+ /** Score of votes */
148
+ score?: number;
149
+ /** Upvote count */
150
+ upvoteCount?: number;
151
+ /** Downvote count */
152
+ downvoteCount?: number;
153
+ /** Vote context */
154
+ context?: VoteContext;
155
+ }
156
+ interface VoteCast {
157
+ /** Vote */
158
+ vote?: Vote;
159
+ }
160
+ interface DownvoteRequest {
161
+ /**
162
+ * context token to be passed
163
+ * @deprecated
164
+ * @replacedBy context_data
165
+ */
166
+ contextToken?: string;
167
+ /**
168
+ * resource identifier for vote be cast on
169
+ * @maxLength 128
170
+ */
171
+ resourceId: string;
172
+ /**
173
+ * resource name
174
+ * @maxLength 300
175
+ */
176
+ resourceFqdn: string;
177
+ /** context data */
178
+ contextData?: ContextData;
179
+ }
180
+ interface DownvoteResponse {
181
+ /** created vote */
182
+ vote?: Vote;
183
+ }
184
+ interface UpdateVoteRequest {
185
+ /** vote to be updated, may be partial and include only VoteId and the field to change */
186
+ vote?: Vote;
187
+ }
188
+ interface UpdateVoteResponse {
189
+ /** updated vote */
190
+ vote?: Vote;
191
+ }
192
+ interface RemoveVoteRequest {
193
+ /**
194
+ * context token to be passed
195
+ * @deprecated
196
+ * @replacedBy context_data
197
+ */
198
+ contextToken?: string;
199
+ /** id of the vote which will be deleted */
200
+ voteId: string;
201
+ /** context data */
202
+ contextData?: ContextData;
203
+ }
204
+ interface RemoveVoteResponse {
205
+ /** removed vote */
206
+ vote?: Vote;
207
+ }
208
+ interface VoteDeleted {
209
+ /** Vote */
210
+ vote?: Vote;
211
+ }
212
+ interface QueryVotesRequest {
213
+ /**
214
+ * context token to be passed
215
+ * @deprecated
216
+ * @replacedBy context_data
217
+ */
218
+ contextToken?: string;
219
+ /** query request. Filter supports only "resourceId" field. Fields and Fieldset are not supported */
220
+ query?: QueryV2;
221
+ /** context data */
222
+ contextData?: ContextData;
223
+ }
224
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
225
+ /** Paging options to limit and offset the number of items. */
226
+ paging?: Paging;
227
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
228
+ cursorPaging?: CursorPaging;
229
+ /**
230
+ * Filter object.
231
+ *
232
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
233
+ */
234
+ filter?: Record<string, any> | null;
235
+ /**
236
+ * Sort object.
237
+ *
238
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
239
+ */
240
+ sort?: Sorting[];
241
+ /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
242
+ fields?: string[];
243
+ /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
244
+ fieldsets?: string[];
245
+ }
246
+ /** @oneof */
247
+ interface QueryV2PagingMethodOneOf {
248
+ /** Paging options to limit and offset the number of items. */
249
+ paging?: Paging;
250
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
251
+ cursorPaging?: CursorPaging;
252
+ }
253
+ interface Sorting {
254
+ /**
255
+ * Name of the field to sort by.
256
+ * @maxLength 512
257
+ */
258
+ fieldName?: string;
259
+ /** Sort order. */
260
+ order?: SortOrderWithLiterals;
261
+ /**
262
+ * Origin point for geo-distance sorting on a GEO field
263
+ * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
264
+ */
265
+ origin?: AddressLocation;
266
+ }
267
+ declare enum SortOrder {
268
+ ASC = "ASC",
269
+ DESC = "DESC"
270
+ }
271
+ /** @enumType */
272
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
273
+ interface AddressLocation {
274
+ /** Address latitude. */
275
+ latitude?: number | null;
276
+ /** Address longitude. */
277
+ longitude?: number | null;
278
+ }
279
+ interface Paging {
280
+ /** Number of items to load. */
281
+ limit?: number | null;
282
+ /** Number of items to skip in the current sort order. */
283
+ offset?: number | null;
284
+ }
285
+ interface CursorPaging {
286
+ /**
287
+ * Maximum number of items to return in the results.
288
+ * @max 100
289
+ */
290
+ limit?: number | null;
291
+ /**
292
+ * Pointer to the next or previous page in the list of results.
293
+ *
294
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
295
+ * Not relevant for the first request.
296
+ * @maxLength 16000
297
+ */
298
+ cursor?: string | null;
299
+ }
300
+ interface QueryVotesResponse {
301
+ /** matching votes */
302
+ votes?: Vote[];
303
+ /** paging metadata. Only contains cursors */
304
+ paging?: PagingMetadataV2;
305
+ }
306
+ interface PagingMetadataV2 {
307
+ /** Number of items returned in the response. */
308
+ count?: number | null;
309
+ /** Offset that was requested. */
310
+ offset?: number | null;
311
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
312
+ total?: number | null;
313
+ /** Flag that indicates the server failed to calculate the `total` field. */
314
+ tooManyToCount?: boolean | null;
315
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
316
+ cursors?: Cursors;
317
+ }
318
+ interface Cursors {
319
+ /**
320
+ * Cursor string pointing to the next page in the list of results.
321
+ * @maxLength 16000
322
+ */
323
+ next?: string | null;
324
+ /**
325
+ * Cursor pointing to the previous page in the list of results.
326
+ * @maxLength 16000
327
+ */
328
+ prev?: string | null;
329
+ }
330
+ interface GetResourceVoteSummaryRequest {
331
+ /** appDef ID */
332
+ appDefId?: string;
333
+ /** context ID */
334
+ contextId?: string;
335
+ /** resource ID */
336
+ resourceId?: string;
337
+ }
338
+ interface GetResourceVoteSummaryResponse {
339
+ /** Resource vote summary */
340
+ summary?: ResourceVoteSummary;
341
+ }
342
+ interface ResourceVoteSummary {
343
+ /** vote context */
344
+ context?: VoteContext;
345
+ /** resource ID */
346
+ resourceId?: string;
347
+ /** vote score */
348
+ score?: number;
349
+ /** upvote count */
350
+ upvoteCount?: number;
351
+ /** downvote count */
352
+ downvoteCount?: number;
353
+ }
354
+ interface DomainEvent extends DomainEventBodyOneOf {
355
+ createdEvent?: EntityCreatedEvent;
356
+ updatedEvent?: EntityUpdatedEvent;
357
+ deletedEvent?: EntityDeletedEvent;
358
+ actionEvent?: ActionEvent;
359
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
360
+ id?: string;
361
+ /**
362
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
363
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
364
+ */
365
+ entityFqdn?: string;
366
+ /**
367
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
368
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
369
+ */
370
+ slug?: string;
371
+ /** ID of the entity associated with the event. */
372
+ entityId?: string;
373
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
374
+ eventTime?: Date | null;
375
+ /**
376
+ * Whether the event was triggered as a result of a privacy regulation application
377
+ * (for example, GDPR).
378
+ */
379
+ triggeredByAnonymizeRequest?: boolean | null;
380
+ /** If present, indicates the action that triggered the event. */
381
+ originatedFrom?: string | null;
382
+ /**
383
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
384
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
385
+ */
386
+ entityEventSequence?: string | null;
387
+ }
388
+ /** @oneof */
389
+ interface DomainEventBodyOneOf {
390
+ createdEvent?: EntityCreatedEvent;
391
+ updatedEvent?: EntityUpdatedEvent;
392
+ deletedEvent?: EntityDeletedEvent;
393
+ actionEvent?: ActionEvent;
394
+ }
395
+ interface EntityCreatedEvent {
396
+ entityAsJson?: string;
397
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
398
+ restoreInfo?: RestoreInfo;
399
+ }
400
+ interface RestoreInfo {
401
+ deletedDate?: Date | null;
402
+ }
403
+ interface EntityUpdatedEvent {
404
+ /**
405
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
406
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
407
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
408
+ */
409
+ currentEntityAsJson?: string;
410
+ }
411
+ interface EntityDeletedEvent {
412
+ /** Entity that was deleted. */
413
+ deletedEntityAsJson?: string | null;
414
+ }
415
+ interface ActionEvent {
416
+ bodyAsJson?: string;
417
+ }
418
+ interface Empty {
419
+ }
420
+ interface ImportVoteRequest {
421
+ /** metaSite ID */
422
+ metaSiteId?: string;
423
+ /** vote to import */
424
+ vote?: ImportVote;
425
+ }
426
+ interface ImportVote {
427
+ /**
428
+ * Resource ID
429
+ * @maxLength 128
430
+ */
431
+ resourceId?: string;
432
+ /**
433
+ * Resource fully qualified domain name
434
+ * @maxLength 300
435
+ */
436
+ resourceFqdn?: string;
437
+ /**
438
+ * Vote ID
439
+ * @format GUID
440
+ */
441
+ voteId?: string;
442
+ /** Type of vote */
443
+ type?: TypeWithLiterals;
444
+ /** Vote author */
445
+ createdBy?: SocialIdentity;
446
+ /** Vote creation date */
447
+ createdDate?: Date | null;
448
+ /** Vote update date */
449
+ updatedDate?: Date | null;
450
+ /** Vote context */
451
+ context?: VoteContext;
452
+ }
453
+ interface MessageEnvelope {
454
+ /**
455
+ * App instance ID.
456
+ * @format GUID
457
+ */
458
+ instanceId?: string | null;
459
+ /**
460
+ * Event type.
461
+ * @maxLength 150
462
+ */
463
+ eventType?: string;
464
+ /** The identification type and identity data. */
465
+ identity?: IdentificationData;
466
+ /** Stringify payload. */
467
+ data?: string;
468
+ /** Details related to the account */
469
+ accountInfo?: AccountInfo;
470
+ }
471
+ interface IdentificationData extends IdentificationDataIdOneOf {
472
+ /**
473
+ * ID of a site visitor that has not logged in to the site.
474
+ * @format GUID
475
+ */
476
+ anonymousVisitorId?: string;
477
+ /**
478
+ * ID of a site visitor that has logged in to the site.
479
+ * @format GUID
480
+ */
481
+ memberId?: string;
482
+ /**
483
+ * ID of a Wix user (site owner, contributor, etc.).
484
+ * @format GUID
485
+ */
486
+ wixUserId?: string;
487
+ /**
488
+ * ID of an app.
489
+ * @format GUID
490
+ */
491
+ appId?: string;
492
+ /** @readonly */
493
+ identityType?: WebhookIdentityTypeWithLiterals;
494
+ }
495
+ /** @oneof */
496
+ interface IdentificationDataIdOneOf {
497
+ /**
498
+ * ID of a site visitor that has not logged in to the site.
499
+ * @format GUID
500
+ */
501
+ anonymousVisitorId?: string;
502
+ /**
503
+ * ID of a site visitor that has logged in to the site.
504
+ * @format GUID
505
+ */
506
+ memberId?: string;
507
+ /**
508
+ * ID of a Wix user (site owner, contributor, etc.).
509
+ * @format GUID
510
+ */
511
+ wixUserId?: string;
512
+ /**
513
+ * ID of an app.
514
+ * @format GUID
515
+ */
516
+ appId?: string;
517
+ }
518
+ declare enum WebhookIdentityType {
519
+ UNKNOWN = "UNKNOWN",
520
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
521
+ MEMBER = "MEMBER",
522
+ WIX_USER = "WIX_USER",
523
+ APP = "APP"
524
+ }
525
+ /** @enumType */
526
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
527
+ interface AccountInfo {
528
+ /**
529
+ * ID of the Wix account associated with the event.
530
+ * @format GUID
531
+ */
532
+ accountId?: string | null;
533
+ /**
534
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
535
+ * @format GUID
536
+ */
537
+ parentAccountId?: string | null;
538
+ /**
539
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
540
+ * @format GUID
541
+ */
542
+ siteId?: string | null;
543
+ }
544
+ /** @docsIgnore */
545
+ type UpvoteApplicationErrors = {
546
+ code?: 'MISSING_METASITE_CONTEXT';
547
+ description?: string;
548
+ data?: Record<string, any>;
549
+ } | {
550
+ code?: 'PERMISSION_DENIED';
551
+ description?: string;
552
+ data?: Record<string, any>;
553
+ };
554
+ /** @docsIgnore */
555
+ type DownvoteApplicationErrors = {
556
+ code?: 'MISSING_METASITE_CONTEXT';
557
+ description?: string;
558
+ data?: Record<string, any>;
559
+ } | {
560
+ code?: 'PERMISSION_DENIED';
561
+ description?: string;
562
+ data?: Record<string, any>;
563
+ };
564
+ /** @docsIgnore */
565
+ type RemoveVoteApplicationErrors = {
566
+ code?: 'MISSING_METASITE_CONTEXT';
567
+ description?: string;
568
+ data?: Record<string, any>;
569
+ } | {
570
+ code?: 'PERMISSION_DENIED';
571
+ description?: string;
572
+ data?: Record<string, any>;
573
+ } | {
574
+ code?: 'VOTE_NOT_FOUND';
575
+ description?: string;
576
+ data?: Record<string, any>;
577
+ };
578
+ /** @docsIgnore */
579
+ type QueryVotesApplicationErrors = {
580
+ code?: 'MISSING_METASITE_CONTEXT';
581
+ description?: string;
582
+ data?: Record<string, any>;
583
+ } | {
584
+ code?: 'PERMISSION_DENIED';
585
+ description?: string;
586
+ data?: Record<string, any>;
587
+ } | {
588
+ code?: 'UNSUPPORTED_FILTER_FIELDS';
589
+ description?: string;
590
+ data?: Record<string, any>;
591
+ };
592
+
593
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
594
+ getUrl: (context: any) => string;
595
+ httpMethod: K;
596
+ path: string;
597
+ pathParams: M;
598
+ __requestType: T;
599
+ __originalRequestType: S;
600
+ __responseType: Q;
601
+ __originalResponseType: R;
602
+ };
603
+ declare function upvote(): __PublicMethodMetaInfo<'POST', {}, UpvoteRequest$1, UpvoteRequest, UpvoteResponse$1, UpvoteResponse>;
604
+ declare function downvote(): __PublicMethodMetaInfo<'POST', {}, DownvoteRequest$1, DownvoteRequest, DownvoteResponse$1, DownvoteResponse>;
605
+ declare function removeVote(): __PublicMethodMetaInfo<'DELETE', {
606
+ voteId: string;
607
+ }, RemoveVoteRequest$1, RemoveVoteRequest, RemoveVoteResponse$1, RemoveVoteResponse>;
608
+ declare function queryVotes(): __PublicMethodMetaInfo<'POST', {}, QueryVotesRequest$1, QueryVotesRequest, QueryVotesResponse$1, QueryVotesResponse>;
609
+
610
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLocation as AddressLocationOriginal, type ContextData as ContextDataOriginal, type ContextResourceVoteChange as ContextResourceVoteChangeOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DownvoteApplicationErrors as DownvoteApplicationErrorsOriginal, type DownvoteRequest as DownvoteRequestOriginal, type DownvoteResponse as DownvoteResponseOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GetResourceVoteSummaryRequest as GetResourceVoteSummaryRequestOriginal, type GetResourceVoteSummaryResponse as GetResourceVoteSummaryResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, type ImportVote as ImportVoteOriginal, type ImportVoteRequest as ImportVoteRequestOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type QueryVotesApplicationErrors as QueryVotesApplicationErrorsOriginal, type QueryVotesRequest as QueryVotesRequestOriginal, type QueryVotesResponse as QueryVotesResponseOriginal, type RemoveVoteApplicationErrors as RemoveVoteApplicationErrorsOriginal, type RemoveVoteRequest as RemoveVoteRequestOriginal, type RemoveVoteResponse as RemoveVoteResponseOriginal, type ResourceVoteSummary as ResourceVoteSummaryOriginal, type RestoreInfo as RestoreInfoOriginal, type SocialIdentity as SocialIdentityOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type UpdateVoteRequest as UpdateVoteRequestOriginal, type UpdateVoteResponse as UpdateVoteResponseOriginal, type UpvoteApplicationErrors as UpvoteApplicationErrorsOriginal, type UpvoteRequest as UpvoteRequestOriginal, type UpvoteResponse as UpvoteResponseOriginal, type VoteCast as VoteCastOriginal, type VoteContext as VoteContextOriginal, type VoteDeleted as VoteDeletedOriginal, type Vote as VoteOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, downvote, queryVotes, removeVote, upvote };