@streamlayer/feature-gamification 1.16.14 → 1.18.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.
@@ -2,6 +2,8 @@ import { SubscriptionResponse } from '@streamlayer/sdk-web-types';
2
2
  export declare const parsePromotion: (response: SubscriptionResponse) => {
3
3
  id: string;
4
4
  question: {
5
+ $typeName: "streamlayer.interactive.Question";
6
+ $unknown?: import("@bufbuild/protobuf").UnknownField[];
5
7
  id: string;
6
8
  type: import("@streamlayer/sdk-web-types").QuestionType;
7
9
  subject?: string;
@@ -17,7 +19,7 @@ export declare const parsePromotion: (response: SubscriptionResponse) => {
17
19
  [key: string]: boolean;
18
20
  };
19
21
  eventId: string;
20
- streamTimestamp?: import("@bufbuild/protobuf").Timestamp;
22
+ streamTimestamp?: import("@bufbuild/protobuf/wkt").Timestamp;
21
23
  tags: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").Tag[];
22
24
  bypassNotifications?: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").BypassNotifications;
23
25
  importId: string;
@@ -25,6 +27,10 @@ export declare const parsePromotion: (response: SubscriptionResponse) => {
25
27
  source: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").QuestionSource;
26
28
  ai?: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").QuestionAi;
27
29
  hasTriggers?: boolean;
30
+ createdAt: string;
31
+ name?: string;
32
+ promotion?: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").Promotion;
33
+ backgroundImage?: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").BackgroundImage;
28
34
  };
29
35
  notification: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").QuestionNotification | undefined;
30
36
  promotion: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").QuestionOptions_PromotionOptions | undefined;
package/lib/background.js CHANGED
@@ -4,6 +4,7 @@ import { QuestionStatus, QuestionType } from '@streamlayer/sdk-web-types';
4
4
  import '@streamlayer/sdk-web-core/store';
5
5
  import * as queries from './queries';
6
6
  import { detail } from './detail';
7
+ import { advertisement } from './advertisement';
7
8
  import { GamificationStorage } from './storage';
8
9
  export var InteractiveAllowed;
9
10
  (function (InteractiveAllowed) {
@@ -235,7 +236,7 @@ export class GamificationBackground {
235
236
  };
236
237
  });
237
238
  if (!onlyBetPack) {
238
- // this.advertisement = advertisement(this.slStreamId, this.feedSubscription, instance)
239
+ this.advertisement = advertisement(this.slStreamId, this.feedSubscription, instance);
239
240
  }
240
241
  }
241
242
  /**
package/lib/detail.d.ts CHANGED
@@ -8,9 +8,7 @@ export declare const detail: (transport: Transport, $openedQuestionId: ReadableA
8
8
  openedFrom?: "list" | "notification";
9
9
  };
10
10
  } | undefined>, $feedList: ReturnType<GamificationBackground["feedList"]["getStore"]>) => {
11
- $store: ReadableAtom<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItem | (import("@bufbuild/protobuf").PlainMessage<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItem> & {
12
- openedFrom?: "list" | "notification";
13
- }) | undefined>;
14
- $extendedStore: import("@nanostores/query").FetcherStore<import("@bufbuild/protobuf").PlainMessage<import("@streamlayer/sl-eslib/interactive/interactive.common_pb").ExtendedQuestion>, any>;
11
+ $store: ReadableAtom<Omit<import("@streamlayer/sdk-web-types").RecursiveOmitHelper<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItem, "$typeName">, "$typeName"> | undefined>;
12
+ $extendedStore: import("@nanostores/query").FetcherStore<Omit<import("@streamlayer/sdk-web-types").RecursiveOmitHelper<import("@streamlayer/sl-eslib/interactive/interactive.common_pb").ExtendedQuestion, "$typeName">, "$typeName">, any>;
15
13
  updateExtendedQuestion: (question: ExtendedQuestion | undefined) => void;
16
14
  };
@@ -10,6 +10,7 @@ export const friendSummary = async ($eventId, $userId, $friends, friendId, trans
10
10
  const request = {
11
11
  eventId: eventId,
12
12
  userId: friendId,
13
+ leaderboardId: '',
13
14
  usersIds: [...usersIds, userId],
14
15
  };
15
16
  const res = await fetch(request);
@@ -1,8 +1,7 @@
1
1
  import { AbstractFeature, ApiStore, FeatureSource, type FeatureProps, type StreamLayerContext } from '@streamlayer/sdk-web-interfaces';
2
- import { type GamesOverlaySettings, FeedItem } from '@streamlayer/sdk-web-types';
2
+ import { type GamesOverlaySettings, FeedItem, PlainMessage } from '@streamlayer/sdk-web-types';
3
3
  import type { GetApiResponseType } from '@streamlayer/sdk-web-api';
4
4
  import '@streamlayer/sdk-web-core/store';
5
- import type { PlainMessage } from '@bufbuild/protobuf';
6
5
  import { WritableAtom } from 'nanostores';
7
6
  import * as queries from './queries';
8
7
  import { leaderboard } from './leaderboard';
@@ -287,6 +287,7 @@ export class Gamification extends AbstractFeature {
287
287
  ...feedList[questionIndex],
288
288
  attributes: {
289
289
  ...prev.attributes,
290
+ // @ts-expect-error
290
291
  attributes: {
291
292
  ...prev.attributes.attributes,
292
293
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -34,6 +34,7 @@ export const leaderboard = (transport, $eventId, $userId, $friends, options) =>
34
34
  const request = {
35
35
  eventId: eventId,
36
36
  usersIds: friendsIds,
37
+ leaderboardId: '',
37
38
  };
38
39
  const newData = await fetch(request);
39
40
  $store.set({
@@ -3,5 +3,5 @@ export declare const submitAnswer: (transport: Transport, data: {
3
3
  questionId: string;
4
4
  answerId: string;
5
5
  }) => Promise<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitAnswerResponse>;
6
- export declare const submitInplay: (transport: Transport, eventId: string) => Promise<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitInplayResponse>;
6
+ export declare const submitInplay: (transport: Transport, eventId: string) => Promise<import("@bufbuild/protobuf").Message<"streamlayer.interactive.feed.SubmitInplayResponse">>;
7
7
  export declare const skipQuestion: (transport: Transport, questionId: string) => Promise<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionResponse>;
@@ -1,5 +1,5 @@
1
1
  import { ConnectError, Code } from '@connectrpc/connect';
2
- import { Feed } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect';
2
+ import { Feed } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
3
3
  import { ERROR } from '../constants';
4
4
  export const submitAnswer = async (transport, data) => {
5
5
  const { client, createRequestOptions } = transport.createPromiseClient(Feed, { method: 'submitAnswer' });
@@ -1,5 +1,5 @@
1
- import { Client } from '@streamlayer/sl-eslib/sdkSettings/client/client_connect';
2
- import { LinksClient } from '@streamlayer/sl-eslib/shortLinks/linksClient_connect';
1
+ import { Client } from '@streamlayer/sl-eslib/sdkSettings/client/client_pb';
2
+ import { LinksClient } from '@streamlayer/sl-eslib/shortLinks/linksClient_pb';
3
3
  export const $deepLink = (transport, params) => {
4
4
  const { client, queryKey } = transport.createPromiseClient(Client, {
5
5
  method: 'generateDeepLink',
@@ -1,3 +1,4 @@
1
1
  import type { Transport } from '@streamlayer/sdk-web-api';
2
2
  import { ReadableAtom } from 'nanostores';
3
- export declare const $friends: ($userId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/users/users_pb").GetFriendsResponse_FriendData[], any>;
3
+ import { GetFriendsResponse_FriendData } from '@streamlayer/sl-eslib/users/users_pb';
4
+ export declare const $friends: ($userId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<Omit<import("@streamlayer/sdk-web-types").RecursiveOmitHelper<GetFriendsResponse_FriendData, "$typeName">, "$typeName">[], any>;
@@ -1,4 +1,4 @@
1
- import { Users } from '@streamlayer/sl-eslib/users/users_connect';
1
+ import { Users } from '@streamlayer/sl-eslib/users/users_pb';
2
2
  export const $friends = ($userId, transport) => {
3
3
  const { client, queryKey } = transport.createPromiseClient(Users, {
4
4
  method: 'getFriends',
@@ -1,377 +1,391 @@
1
1
  import type { Transport } from '@streamlayer/sdk-web-api';
2
2
  import { QuestionStatus, QuestionType } from '@streamlayer/sdk-web-types';
3
3
  import { ReadableAtom } from 'nanostores';
4
- import type { SubscriptionRequest, SubscriptionResponse, VotingSubscriptionRequest, VotingSubscriptionResponse, QuestionSubscriptionRequest, QuestionSubscriptionResponse } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
4
+ import { FeedItem, QuestionSubscriptionRequest, QuestionSubscriptionResponse, SubscriptionRequest, SubscriptionResponse, VotingSubscriptionRequest, VotingSubscriptionResponse } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
5
5
  import { InteractiveAllowed } from '../background';
6
6
  import { GamificationStorage } from '../storage';
7
7
  export declare const $activeQuestion: (slStreamId: ReadableAtom<string | undefined>, onlyBetPack: boolean, transport: Transport) => import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedQuestion | undefined, any>;
8
- export declare const getFeedItem: (questionId: string, transport: Transport) => Promise<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItem | undefined>;
9
- export declare const feedSubscription: ($slStreamId: ReadableAtom<string | undefined>, transport: Transport) => import("packages/sdk-web-api/lib/grpc/subscription").ServerStreamSubscription<import("@bufbuild/protobuf").ServiceType, import("@bufbuild/protobuf").Message<import("@bufbuild/protobuf").AnyMessage>, import("@bufbuild/protobuf").Message<import("@bufbuild/protobuf").AnyMessage>, never, never> | import("packages/sdk-web-api/lib/grpc/subscription").ServerStreamSubscription<{
10
- readonly typeName: "streamlayer.interactive.feed.Feed";
11
- readonly methods: {
12
- readonly get: {
13
- readonly name: "Get";
14
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetRequest;
15
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetResponse;
16
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
17
- };
18
- readonly subscription: {
19
- readonly name: "Subscription";
20
- readonly I: typeof SubscriptionRequest;
21
- readonly O: typeof SubscriptionResponse;
22
- readonly kind: import("@bufbuild/protobuf").MethodKind.ServerStreaming;
23
- };
24
- readonly votingSubscription: {
25
- readonly name: "VotingSubscription";
26
- readonly I: typeof VotingSubscriptionRequest;
27
- readonly O: typeof VotingSubscriptionResponse;
28
- readonly kind: import("@bufbuild/protobuf").MethodKind.ServerStreaming;
29
- };
30
- readonly questionSubscription: {
31
- readonly name: "QuestionSubscription";
32
- readonly I: typeof QuestionSubscriptionRequest;
33
- readonly O: typeof QuestionSubscriptionResponse;
34
- readonly kind: import("@bufbuild/protobuf").MethodKind.ServerStreaming;
35
- };
36
- readonly questionByUser: {
37
- readonly name: "QuestionByUser";
38
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionByUserRequest;
39
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionByUserResponse;
40
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
41
- };
42
- readonly syncQuestion: {
43
- readonly name: "SyncQuestion";
44
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SyncQuestionRequest;
45
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SyncQuestionResponse;
46
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
47
- };
48
- readonly getQuestion: {
49
- readonly name: "GetQuestion";
50
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetQuestionRequest;
51
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetQuestionResponse;
52
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
53
- };
54
- readonly questionDetail: {
55
- readonly name: "QuestionDetail";
56
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionDetailRequest;
57
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionDetailResponse;
58
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
59
- };
60
- readonly submitAnswer: {
61
- readonly name: "SubmitAnswer";
62
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitAnswerRequest;
63
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitAnswerResponse;
64
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
65
- };
66
- readonly submitInplay: {
67
- readonly name: "SubmitInplay";
68
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitInplayRequest;
69
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitInplayResponse;
70
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
71
- };
72
- readonly skipQuestion: {
73
- readonly name: "SkipQuestion";
74
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionRequest;
75
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionResponse;
76
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
77
- };
78
- readonly pickHistory: {
79
- readonly name: "PickHistory";
80
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PickHistoryRequest;
81
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PickHistoryResponse;
82
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
83
- };
84
- readonly insightHistory: {
85
- readonly name: "InsightHistory";
86
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InsightHistoryRequest;
87
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InsightHistoryResponse;
88
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
89
- };
90
- readonly tweetHistory: {
91
- readonly name: "TweetHistory";
92
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").TweetHistoryRequest;
93
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").TweetHistoryResponse;
94
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
95
- };
96
- readonly promotionHistory: {
97
- readonly name: "PromotionHistory";
98
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PromotionHistoryRequest;
99
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PromotionHistoryResponse;
100
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
101
- };
102
- readonly list: {
103
- readonly name: "List";
104
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedListRequest;
105
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedListResponse;
106
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
107
- };
108
- readonly item: {
109
- readonly name: "Item";
110
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItemRequest;
111
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItemResponse;
112
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
113
- };
114
- readonly feedSubscription: {
115
- readonly name: "FeedSubscription";
116
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionRequest;
117
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionResponse;
118
- readonly kind: import("@bufbuild/protobuf").MethodKind.ServerStreaming;
119
- };
120
- readonly betPack: {
121
- readonly name: "BetPack";
122
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").BetPackRequest;
123
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").BetPackResponse;
124
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
125
- };
8
+ export declare const getFeedItem: (questionId: string, transport: Transport) => Promise<FeedItem | undefined>;
9
+ export declare const feedSubscription: ($slStreamId: ReadableAtom<string | undefined>, transport: Transport) => import("packages/sdk-web-api/lib/grpc/subscription").ServerStreamSubscription<Omit<import("@bufbuild/protobuf").DescService, "method"> & {
10
+ method: {
11
+ [x: string]: Pick<import("@bufbuild/protobuf").DescMethod, "input" | "output" | "methodKind"> & import("@bufbuild/protobuf").DescMethod;
12
+ };
13
+ }, import("packages/sdk-web-api/lib/grpc/transport").DataObj, import("packages/sdk-web-api/lib/grpc/transport").DataObj, never, never> | import("packages/sdk-web-api/lib/grpc/subscription").ServerStreamSubscription<import("@bufbuild/protobuf/codegenv1").GenService<{
14
+ get: {
15
+ methodKind: "unary";
16
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetRequestSchema;
17
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetResponseSchema;
18
+ };
19
+ subscription: {
20
+ methodKind: "server_streaming";
21
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubscriptionRequestSchema;
22
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubscriptionResponseSchema;
23
+ };
24
+ votingSubscription: {
25
+ methodKind: "server_streaming";
26
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").VotingSubscriptionRequestSchema;
27
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").VotingSubscriptionResponseSchema;
28
+ };
29
+ questionSubscription: {
30
+ methodKind: "server_streaming";
31
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionSubscriptionRequestSchema;
32
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionSubscriptionResponseSchema;
33
+ };
34
+ questionByUser: {
35
+ methodKind: "unary";
36
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionByUserRequestSchema;
37
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionByUserResponseSchema;
38
+ };
39
+ syncQuestion: {
40
+ methodKind: "unary";
41
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SyncQuestionRequestSchema;
42
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SyncQuestionResponseSchema;
43
+ };
44
+ getQuestion: {
45
+ methodKind: "unary";
46
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetQuestionRequestSchema;
47
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetQuestionResponseSchema;
48
+ };
49
+ questionDetail: {
50
+ methodKind: "unary";
51
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionDetailRequestSchema;
52
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionDetailResponseSchema;
53
+ };
54
+ submitAnswer: {
55
+ methodKind: "unary";
56
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitAnswerRequestSchema;
57
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitAnswerResponseSchema;
58
+ };
59
+ submitInplay: {
60
+ methodKind: "unary";
61
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitInplayRequestSchema;
62
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitInplayResponseSchema;
63
+ };
64
+ skipQuestion: {
65
+ methodKind: "unary";
66
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionRequestSchema;
67
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionResponseSchema;
126
68
  };
127
- }, SubscriptionRequest, SubscriptionResponse, "subscription" | "votingSubscription" | "questionSubscription" | "feedSubscription", ((request: import("@bufbuild/protobuf").PartialMessage<SubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<SubscriptionResponse>) | ((request: import("@bufbuild/protobuf").PartialMessage<VotingSubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<VotingSubscriptionResponse>) | ((request: import("@bufbuild/protobuf").PartialMessage<QuestionSubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<QuestionSubscriptionResponse>) | ((request: import("@bufbuild/protobuf").PartialMessage<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionResponse>)>;
69
+ pickHistory: {
70
+ methodKind: "unary";
71
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PickHistoryRequestSchema;
72
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PickHistoryResponseSchema;
73
+ };
74
+ insightHistory: {
75
+ methodKind: "unary";
76
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InsightHistoryRequestSchema;
77
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InsightHistoryResponseSchema;
78
+ };
79
+ tweetHistory: {
80
+ methodKind: "unary";
81
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").TweetHistoryRequestSchema;
82
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").TweetHistoryResponseSchema;
83
+ };
84
+ promotionHistory: {
85
+ methodKind: "unary";
86
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PromotionHistoryRequestSchema;
87
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PromotionHistoryResponseSchema;
88
+ };
89
+ list: {
90
+ methodKind: "unary";
91
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedListRequestSchema;
92
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedListResponseSchema;
93
+ };
94
+ item: {
95
+ methodKind: "unary";
96
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItemRequestSchema;
97
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItemResponseSchema;
98
+ };
99
+ feedSubscription: {
100
+ methodKind: "server_streaming";
101
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionRequestSchema;
102
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionResponseSchema;
103
+ };
104
+ betPack: {
105
+ methodKind: "unary";
106
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").BetPackRequestSchema;
107
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").BetPackResponseSchema;
108
+ };
109
+ simulateQuestionUpdate: {
110
+ methodKind: "server_streaming";
111
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SimulateQuestionUpdateRequestSchema;
112
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SimulateQuestionUpdateResponseSchema;
113
+ };
114
+ }>, Omit<import("@streamlayer/sdk-web-types").RecursiveOmitHelper<SubscriptionRequest, "$typeName">, "$typeName">, SubscriptionResponse, "subscription" | "votingSubscription" | "questionSubscription" | "feedSubscription" | "simulateQuestionUpdate", ((request: SubscriptionRequest | {
115
+ readonly $typeName?: undefined;
116
+ eventId?: string | undefined;
117
+ feedId?: string | undefined;
118
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<SubscriptionResponse>) | ((request: VotingSubscriptionRequest | {
119
+ readonly $typeName?: undefined;
120
+ feedId?: string | undefined;
121
+ questionId?: string | undefined;
122
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<VotingSubscriptionResponse>) | ((request: QuestionSubscriptionRequest | {
123
+ readonly $typeName?: undefined;
124
+ questionId?: string | undefined;
125
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<QuestionSubscriptionResponse>) | ((request: import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionRequest | {
126
+ readonly $typeName?: undefined;
127
+ eventId?: string | undefined;
128
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionResponse>) | ((request: import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SimulateQuestionUpdateRequest | {
129
+ readonly $typeName?: undefined;
130
+ questionId?: string | undefined;
131
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<import("@bufbuild/protobuf").Message<"streamlayer.interactive.feed.SimulateQuestionUpdateResponse">>)>;
128
132
  export declare const votingSubscription: (params: {
129
133
  questionId: string;
130
134
  feedId: string;
131
- }, transport: Transport) => import("packages/sdk-web-api/lib/grpc/subscription").ServerStreamSubscription<import("@bufbuild/protobuf").ServiceType, import("@bufbuild/protobuf").Message<import("@bufbuild/protobuf").AnyMessage>, import("@bufbuild/protobuf").Message<import("@bufbuild/protobuf").AnyMessage>, never, never> | import("packages/sdk-web-api/lib/grpc/subscription").ServerStreamSubscription<{
132
- readonly typeName: "streamlayer.interactive.feed.Feed";
133
- readonly methods: {
134
- readonly get: {
135
- readonly name: "Get";
136
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetRequest;
137
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetResponse;
138
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
139
- };
140
- readonly subscription: {
141
- readonly name: "Subscription";
142
- readonly I: typeof SubscriptionRequest;
143
- readonly O: typeof SubscriptionResponse;
144
- readonly kind: import("@bufbuild/protobuf").MethodKind.ServerStreaming;
145
- };
146
- readonly votingSubscription: {
147
- readonly name: "VotingSubscription";
148
- readonly I: typeof VotingSubscriptionRequest;
149
- readonly O: typeof VotingSubscriptionResponse;
150
- readonly kind: import("@bufbuild/protobuf").MethodKind.ServerStreaming;
151
- };
152
- readonly questionSubscription: {
153
- readonly name: "QuestionSubscription";
154
- readonly I: typeof QuestionSubscriptionRequest;
155
- readonly O: typeof QuestionSubscriptionResponse;
156
- readonly kind: import("@bufbuild/protobuf").MethodKind.ServerStreaming;
157
- };
158
- readonly questionByUser: {
159
- readonly name: "QuestionByUser";
160
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionByUserRequest;
161
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionByUserResponse;
162
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
163
- };
164
- readonly syncQuestion: {
165
- readonly name: "SyncQuestion";
166
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SyncQuestionRequest;
167
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SyncQuestionResponse;
168
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
169
- };
170
- readonly getQuestion: {
171
- readonly name: "GetQuestion";
172
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetQuestionRequest;
173
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetQuestionResponse;
174
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
175
- };
176
- readonly questionDetail: {
177
- readonly name: "QuestionDetail";
178
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionDetailRequest;
179
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionDetailResponse;
180
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
181
- };
182
- readonly submitAnswer: {
183
- readonly name: "SubmitAnswer";
184
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitAnswerRequest;
185
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitAnswerResponse;
186
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
187
- };
188
- readonly submitInplay: {
189
- readonly name: "SubmitInplay";
190
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitInplayRequest;
191
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitInplayResponse;
192
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
193
- };
194
- readonly skipQuestion: {
195
- readonly name: "SkipQuestion";
196
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionRequest;
197
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionResponse;
198
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
199
- };
200
- readonly pickHistory: {
201
- readonly name: "PickHistory";
202
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PickHistoryRequest;
203
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PickHistoryResponse;
204
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
205
- };
206
- readonly insightHistory: {
207
- readonly name: "InsightHistory";
208
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InsightHistoryRequest;
209
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InsightHistoryResponse;
210
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
211
- };
212
- readonly tweetHistory: {
213
- readonly name: "TweetHistory";
214
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").TweetHistoryRequest;
215
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").TweetHistoryResponse;
216
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
217
- };
218
- readonly promotionHistory: {
219
- readonly name: "PromotionHistory";
220
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PromotionHistoryRequest;
221
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PromotionHistoryResponse;
222
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
223
- };
224
- readonly list: {
225
- readonly name: "List";
226
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedListRequest;
227
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedListResponse;
228
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
229
- };
230
- readonly item: {
231
- readonly name: "Item";
232
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItemRequest;
233
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItemResponse;
234
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
235
- };
236
- readonly feedSubscription: {
237
- readonly name: "FeedSubscription";
238
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionRequest;
239
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionResponse;
240
- readonly kind: import("@bufbuild/protobuf").MethodKind.ServerStreaming;
241
- };
242
- readonly betPack: {
243
- readonly name: "BetPack";
244
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").BetPackRequest;
245
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").BetPackResponse;
246
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
247
- };
135
+ }, transport: Transport) => import("packages/sdk-web-api/lib/grpc/subscription").ServerStreamSubscription<Omit<import("@bufbuild/protobuf").DescService, "method"> & {
136
+ method: {
137
+ [x: string]: Pick<import("@bufbuild/protobuf").DescMethod, "input" | "output" | "methodKind"> & import("@bufbuild/protobuf").DescMethod;
248
138
  };
249
- }, VotingSubscriptionRequest, VotingSubscriptionResponse, "subscription" | "votingSubscription" | "questionSubscription" | "feedSubscription", ((request: import("@bufbuild/protobuf").PartialMessage<SubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<SubscriptionResponse>) | ((request: import("@bufbuild/protobuf").PartialMessage<VotingSubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<VotingSubscriptionResponse>) | ((request: import("@bufbuild/protobuf").PartialMessage<QuestionSubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<QuestionSubscriptionResponse>) | ((request: import("@bufbuild/protobuf").PartialMessage<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionResponse>)>;
250
- export declare const questionSubscription: (questionId: string, transport: Transport) => import("packages/sdk-web-api/lib/grpc/subscription").ServerStreamSubscription<import("@bufbuild/protobuf").ServiceType, import("@bufbuild/protobuf").Message<import("@bufbuild/protobuf").AnyMessage>, import("@bufbuild/protobuf").Message<import("@bufbuild/protobuf").AnyMessage>, never, never> | import("packages/sdk-web-api/lib/grpc/subscription").ServerStreamSubscription<{
251
- readonly typeName: "streamlayer.interactive.feed.Feed";
252
- readonly methods: {
253
- readonly get: {
254
- readonly name: "Get";
255
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetRequest;
256
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetResponse;
257
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
258
- };
259
- readonly subscription: {
260
- readonly name: "Subscription";
261
- readonly I: typeof SubscriptionRequest;
262
- readonly O: typeof SubscriptionResponse;
263
- readonly kind: import("@bufbuild/protobuf").MethodKind.ServerStreaming;
264
- };
265
- readonly votingSubscription: {
266
- readonly name: "VotingSubscription";
267
- readonly I: typeof VotingSubscriptionRequest;
268
- readonly O: typeof VotingSubscriptionResponse;
269
- readonly kind: import("@bufbuild/protobuf").MethodKind.ServerStreaming;
270
- };
271
- readonly questionSubscription: {
272
- readonly name: "QuestionSubscription";
273
- readonly I: typeof QuestionSubscriptionRequest;
274
- readonly O: typeof QuestionSubscriptionResponse;
275
- readonly kind: import("@bufbuild/protobuf").MethodKind.ServerStreaming;
276
- };
277
- readonly questionByUser: {
278
- readonly name: "QuestionByUser";
279
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionByUserRequest;
280
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionByUserResponse;
281
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
282
- };
283
- readonly syncQuestion: {
284
- readonly name: "SyncQuestion";
285
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SyncQuestionRequest;
286
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SyncQuestionResponse;
287
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
288
- };
289
- readonly getQuestion: {
290
- readonly name: "GetQuestion";
291
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetQuestionRequest;
292
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetQuestionResponse;
293
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
294
- };
295
- readonly questionDetail: {
296
- readonly name: "QuestionDetail";
297
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionDetailRequest;
298
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionDetailResponse;
299
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
300
- };
301
- readonly submitAnswer: {
302
- readonly name: "SubmitAnswer";
303
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitAnswerRequest;
304
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitAnswerResponse;
305
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
306
- };
307
- readonly submitInplay: {
308
- readonly name: "SubmitInplay";
309
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitInplayRequest;
310
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitInplayResponse;
311
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
312
- };
313
- readonly skipQuestion: {
314
- readonly name: "SkipQuestion";
315
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionRequest;
316
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionResponse;
317
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
318
- };
319
- readonly pickHistory: {
320
- readonly name: "PickHistory";
321
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PickHistoryRequest;
322
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PickHistoryResponse;
323
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
324
- };
325
- readonly insightHistory: {
326
- readonly name: "InsightHistory";
327
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InsightHistoryRequest;
328
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InsightHistoryResponse;
329
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
330
- };
331
- readonly tweetHistory: {
332
- readonly name: "TweetHistory";
333
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").TweetHistoryRequest;
334
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").TweetHistoryResponse;
335
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
336
- };
337
- readonly promotionHistory: {
338
- readonly name: "PromotionHistory";
339
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PromotionHistoryRequest;
340
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PromotionHistoryResponse;
341
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
342
- };
343
- readonly list: {
344
- readonly name: "List";
345
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedListRequest;
346
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedListResponse;
347
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
348
- };
349
- readonly item: {
350
- readonly name: "Item";
351
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItemRequest;
352
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItemResponse;
353
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
354
- };
355
- readonly feedSubscription: {
356
- readonly name: "FeedSubscription";
357
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionRequest;
358
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionResponse;
359
- readonly kind: import("@bufbuild/protobuf").MethodKind.ServerStreaming;
360
- };
361
- readonly betPack: {
362
- readonly name: "BetPack";
363
- readonly I: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").BetPackRequest;
364
- readonly O: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").BetPackResponse;
365
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
366
- };
139
+ }, import("packages/sdk-web-api/lib/grpc/transport").DataObj, import("packages/sdk-web-api/lib/grpc/transport").DataObj, never, never> | import("packages/sdk-web-api/lib/grpc/subscription").ServerStreamSubscription<import("@bufbuild/protobuf/codegenv1").GenService<{
140
+ get: {
141
+ methodKind: "unary";
142
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetRequestSchema;
143
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetResponseSchema;
144
+ };
145
+ subscription: {
146
+ methodKind: "server_streaming";
147
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubscriptionRequestSchema;
148
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubscriptionResponseSchema;
149
+ };
150
+ votingSubscription: {
151
+ methodKind: "server_streaming";
152
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").VotingSubscriptionRequestSchema;
153
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").VotingSubscriptionResponseSchema;
154
+ };
155
+ questionSubscription: {
156
+ methodKind: "server_streaming";
157
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionSubscriptionRequestSchema;
158
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionSubscriptionResponseSchema;
159
+ };
160
+ questionByUser: {
161
+ methodKind: "unary";
162
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionByUserRequestSchema;
163
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionByUserResponseSchema;
164
+ };
165
+ syncQuestion: {
166
+ methodKind: "unary";
167
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SyncQuestionRequestSchema;
168
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SyncQuestionResponseSchema;
169
+ };
170
+ getQuestion: {
171
+ methodKind: "unary";
172
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetQuestionRequestSchema;
173
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetQuestionResponseSchema;
174
+ };
175
+ questionDetail: {
176
+ methodKind: "unary";
177
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionDetailRequestSchema;
178
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionDetailResponseSchema;
179
+ };
180
+ submitAnswer: {
181
+ methodKind: "unary";
182
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitAnswerRequestSchema;
183
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitAnswerResponseSchema;
184
+ };
185
+ submitInplay: {
186
+ methodKind: "unary";
187
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitInplayRequestSchema;
188
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitInplayResponseSchema;
189
+ };
190
+ skipQuestion: {
191
+ methodKind: "unary";
192
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionRequestSchema;
193
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionResponseSchema;
194
+ };
195
+ pickHistory: {
196
+ methodKind: "unary";
197
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PickHistoryRequestSchema;
198
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PickHistoryResponseSchema;
199
+ };
200
+ insightHistory: {
201
+ methodKind: "unary";
202
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InsightHistoryRequestSchema;
203
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InsightHistoryResponseSchema;
204
+ };
205
+ tweetHistory: {
206
+ methodKind: "unary";
207
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").TweetHistoryRequestSchema;
208
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").TweetHistoryResponseSchema;
209
+ };
210
+ promotionHistory: {
211
+ methodKind: "unary";
212
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PromotionHistoryRequestSchema;
213
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PromotionHistoryResponseSchema;
214
+ };
215
+ list: {
216
+ methodKind: "unary";
217
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedListRequestSchema;
218
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedListResponseSchema;
219
+ };
220
+ item: {
221
+ methodKind: "unary";
222
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItemRequestSchema;
223
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItemResponseSchema;
224
+ };
225
+ feedSubscription: {
226
+ methodKind: "server_streaming";
227
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionRequestSchema;
228
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionResponseSchema;
229
+ };
230
+ betPack: {
231
+ methodKind: "unary";
232
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").BetPackRequestSchema;
233
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").BetPackResponseSchema;
234
+ };
235
+ simulateQuestionUpdate: {
236
+ methodKind: "server_streaming";
237
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SimulateQuestionUpdateRequestSchema;
238
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SimulateQuestionUpdateResponseSchema;
239
+ };
240
+ }>, Omit<import("@streamlayer/sdk-web-types").RecursiveOmitHelper<VotingSubscriptionRequest, "$typeName">, "$typeName">, VotingSubscriptionResponse, "subscription" | "votingSubscription" | "questionSubscription" | "feedSubscription" | "simulateQuestionUpdate", ((request: SubscriptionRequest | {
241
+ readonly $typeName?: undefined;
242
+ eventId?: string | undefined;
243
+ feedId?: string | undefined;
244
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<SubscriptionResponse>) | ((request: VotingSubscriptionRequest | {
245
+ readonly $typeName?: undefined;
246
+ feedId?: string | undefined;
247
+ questionId?: string | undefined;
248
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<VotingSubscriptionResponse>) | ((request: QuestionSubscriptionRequest | {
249
+ readonly $typeName?: undefined;
250
+ questionId?: string | undefined;
251
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<QuestionSubscriptionResponse>) | ((request: import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionRequest | {
252
+ readonly $typeName?: undefined;
253
+ eventId?: string | undefined;
254
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionResponse>) | ((request: import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SimulateQuestionUpdateRequest | {
255
+ readonly $typeName?: undefined;
256
+ questionId?: string | undefined;
257
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<import("@bufbuild/protobuf").Message<"streamlayer.interactive.feed.SimulateQuestionUpdateResponse">>)>;
258
+ export declare const questionSubscription: (questionId: string, transport: Transport) => import("packages/sdk-web-api/lib/grpc/subscription").ServerStreamSubscription<Omit<import("@bufbuild/protobuf").DescService, "method"> & {
259
+ method: {
260
+ [x: string]: Pick<import("@bufbuild/protobuf").DescMethod, "input" | "output" | "methodKind"> & import("@bufbuild/protobuf").DescMethod;
261
+ };
262
+ }, import("packages/sdk-web-api/lib/grpc/transport").DataObj, import("packages/sdk-web-api/lib/grpc/transport").DataObj, never, never> | import("packages/sdk-web-api/lib/grpc/subscription").ServerStreamSubscription<import("@bufbuild/protobuf/codegenv1").GenService<{
263
+ get: {
264
+ methodKind: "unary";
265
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetRequestSchema;
266
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetResponseSchema;
267
+ };
268
+ subscription: {
269
+ methodKind: "server_streaming";
270
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubscriptionRequestSchema;
271
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubscriptionResponseSchema;
272
+ };
273
+ votingSubscription: {
274
+ methodKind: "server_streaming";
275
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").VotingSubscriptionRequestSchema;
276
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").VotingSubscriptionResponseSchema;
277
+ };
278
+ questionSubscription: {
279
+ methodKind: "server_streaming";
280
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionSubscriptionRequestSchema;
281
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionSubscriptionResponseSchema;
282
+ };
283
+ questionByUser: {
284
+ methodKind: "unary";
285
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionByUserRequestSchema;
286
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionByUserResponseSchema;
287
+ };
288
+ syncQuestion: {
289
+ methodKind: "unary";
290
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SyncQuestionRequestSchema;
291
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SyncQuestionResponseSchema;
292
+ };
293
+ getQuestion: {
294
+ methodKind: "unary";
295
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetQuestionRequestSchema;
296
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").GetQuestionResponseSchema;
297
+ };
298
+ questionDetail: {
299
+ methodKind: "unary";
300
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionDetailRequestSchema;
301
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").QuestionDetailResponseSchema;
302
+ };
303
+ submitAnswer: {
304
+ methodKind: "unary";
305
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitAnswerRequestSchema;
306
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitAnswerResponseSchema;
307
+ };
308
+ submitInplay: {
309
+ methodKind: "unary";
310
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitInplayRequestSchema;
311
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SubmitInplayResponseSchema;
312
+ };
313
+ skipQuestion: {
314
+ methodKind: "unary";
315
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionRequestSchema;
316
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionResponseSchema;
317
+ };
318
+ pickHistory: {
319
+ methodKind: "unary";
320
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PickHistoryRequestSchema;
321
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PickHistoryResponseSchema;
322
+ };
323
+ insightHistory: {
324
+ methodKind: "unary";
325
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InsightHistoryRequestSchema;
326
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InsightHistoryResponseSchema;
327
+ };
328
+ tweetHistory: {
329
+ methodKind: "unary";
330
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").TweetHistoryRequestSchema;
331
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").TweetHistoryResponseSchema;
332
+ };
333
+ promotionHistory: {
334
+ methodKind: "unary";
335
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PromotionHistoryRequestSchema;
336
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PromotionHistoryResponseSchema;
337
+ };
338
+ list: {
339
+ methodKind: "unary";
340
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedListRequestSchema;
341
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedListResponseSchema;
342
+ };
343
+ item: {
344
+ methodKind: "unary";
345
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItemRequestSchema;
346
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItemResponseSchema;
347
+ };
348
+ feedSubscription: {
349
+ methodKind: "server_streaming";
350
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionRequestSchema;
351
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionResponseSchema;
352
+ };
353
+ betPack: {
354
+ methodKind: "unary";
355
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").BetPackRequestSchema;
356
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").BetPackResponseSchema;
357
+ };
358
+ simulateQuestionUpdate: {
359
+ methodKind: "server_streaming";
360
+ input: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SimulateQuestionUpdateRequestSchema;
361
+ output: typeof import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SimulateQuestionUpdateResponseSchema;
367
362
  };
368
- }, QuestionSubscriptionRequest, QuestionSubscriptionResponse, "subscription" | "votingSubscription" | "questionSubscription" | "feedSubscription", ((request: import("@bufbuild/protobuf").PartialMessage<SubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<SubscriptionResponse>) | ((request: import("@bufbuild/protobuf").PartialMessage<VotingSubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<VotingSubscriptionResponse>) | ((request: import("@bufbuild/protobuf").PartialMessage<QuestionSubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<QuestionSubscriptionResponse>) | ((request: import("@bufbuild/protobuf").PartialMessage<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionResponse>)>;
363
+ }>, Omit<import("@streamlayer/sdk-web-types").RecursiveOmitHelper<QuestionSubscriptionRequest, "$typeName">, "$typeName">, QuestionSubscriptionResponse, "subscription" | "votingSubscription" | "questionSubscription" | "feedSubscription" | "simulateQuestionUpdate", ((request: SubscriptionRequest | {
364
+ readonly $typeName?: undefined;
365
+ eventId?: string | undefined;
366
+ feedId?: string | undefined;
367
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<SubscriptionResponse>) | ((request: VotingSubscriptionRequest | {
368
+ readonly $typeName?: undefined;
369
+ feedId?: string | undefined;
370
+ questionId?: string | undefined;
371
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<VotingSubscriptionResponse>) | ((request: QuestionSubscriptionRequest | {
372
+ readonly $typeName?: undefined;
373
+ questionId?: string | undefined;
374
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<QuestionSubscriptionResponse>) | ((request: import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionRequest | {
375
+ readonly $typeName?: undefined;
376
+ eventId?: string | undefined;
377
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionResponse>) | ((request: import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SimulateQuestionUpdateRequest | {
378
+ readonly $typeName?: undefined;
379
+ questionId?: string | undefined;
380
+ }, options?: import("@connectrpc/connect").CallOptions) => AsyncIterable<import("@bufbuild/protobuf").Message<"streamlayer.interactive.feed.SimulateQuestionUpdateResponse">>)>;
369
381
  export declare const getQuestionDetail: (questionId: string, transport: Transport) => Promise<import("@streamlayer/sl-eslib/interactive/interactive.common_pb").Question | undefined>;
370
- export declare const questionByUser: ($questionId: string, transport: Transport) => Promise<import("@bufbuild/protobuf").PlainMessage<import("@streamlayer/sl-eslib/interactive/interactive.common_pb").ExtendedQuestion>>;
371
- export declare const $questionByUser: ($questionId: ReadableAtom<string | undefined> | string, transport: Transport) => import("@nanostores/query").FetcherStore<import("@bufbuild/protobuf").PlainMessage<import("@streamlayer/sl-eslib/interactive/interactive.common_pb").ExtendedQuestion>, any>;
382
+ export declare const questionByUser: ($questionId: string, transport: Transport) => Promise<Omit<import("@streamlayer/sdk-web-types").RecursiveOmitHelper<import("@streamlayer/sl-eslib/interactive/interactive.common_pb").ExtendedQuestion, "$typeName">, "$typeName">>;
383
+ export declare const $questionByUser: ($questionId: ReadableAtom<string | undefined> | string, transport: Transport) => import("@nanostores/query").FetcherStore<Omit<import("@streamlayer/sdk-web-types").RecursiveOmitHelper<import("@streamlayer/sl-eslib/interactive/interactive.common_pb").ExtendedQuestion, "$typeName">, "$typeName">, any>;
372
384
  export declare const getPromotionDetail: (promoId: string, transport: Transport) => Promise<{
373
385
  id: string;
374
386
  question: {
387
+ $typeName: "streamlayer.interactive.Question";
388
+ $unknown?: import("@bufbuild/protobuf").UnknownField[];
375
389
  id: string;
376
390
  type: QuestionType;
377
391
  subject?: string;
@@ -387,7 +401,7 @@ export declare const getPromotionDetail: (promoId: string, transport: Transport)
387
401
  [key: string]: boolean;
388
402
  };
389
403
  eventId: string;
390
- streamTimestamp?: import("@bufbuild/protobuf").Timestamp;
404
+ streamTimestamp?: import("@bufbuild/protobuf/wkt").Timestamp;
391
405
  tags: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").Tag[];
392
406
  bypassNotifications?: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").BypassNotifications;
393
407
  importId: string;
@@ -395,15 +409,21 @@ export declare const getPromotionDetail: (promoId: string, transport: Transport)
395
409
  source: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").QuestionSource;
396
410
  ai?: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").QuestionAi;
397
411
  hasTriggers?: boolean;
412
+ createdAt: string;
413
+ name?: string;
414
+ promotion?: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").Promotion;
415
+ backgroundImage?: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").BackgroundImage;
398
416
  };
399
417
  promotion: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").QuestionOptions_PromotionOptions | undefined;
400
418
  notification: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").QuestionNotification | undefined;
401
419
  } | undefined>;
402
420
  export declare const $pickHistory: (slStreamId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<(import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PickHistory | undefined)[], any>;
403
- export declare const $feedList: ($slStreamId: ReadableAtom<string | undefined>, $interactiveAllowed: ReadableAtom<InteractiveAllowed>, $slUserId: ReadableAtom<string | undefined>, $slOrganizationId: ReadableAtom<string | undefined>, storage: GamificationStorage, onlyBetPack: boolean, transport: Transport) => import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItem[], any>;
421
+ export declare const $feedList: ($slStreamId: ReadableAtom<string | undefined>, $interactiveAllowed: ReadableAtom<InteractiveAllowed>, $slUserId: ReadableAtom<string | undefined>, $slOrganizationId: ReadableAtom<string | undefined>, storage: GamificationStorage, onlyBetPack: boolean, transport: Transport) => import("@nanostores/query").FetcherStore<Omit<import("@streamlayer/sdk-web-types").RecursiveOmitHelper<FeedItem, "$typeName">, "$typeName">[], any>;
404
422
  export declare const $activePromotionId: ($slStreamId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<{
405
423
  id: string;
406
424
  question: {
425
+ $typeName: "streamlayer.interactive.Question";
426
+ $unknown?: import("@bufbuild/protobuf").UnknownField[];
407
427
  id: string;
408
428
  type: QuestionType;
409
429
  subject?: string;
@@ -419,7 +439,7 @@ export declare const $activePromotionId: ($slStreamId: ReadableAtom<string | und
419
439
  [key: string]: boolean;
420
440
  };
421
441
  eventId: string;
422
- streamTimestamp?: import("@bufbuild/protobuf").Timestamp;
442
+ streamTimestamp?: import("@bufbuild/protobuf/wkt").Timestamp;
423
443
  tags: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").Tag[];
424
444
  bypassNotifications?: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").BypassNotifications;
425
445
  importId: string;
@@ -427,6 +447,10 @@ export declare const $activePromotionId: ($slStreamId: ReadableAtom<string | und
427
447
  source: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").QuestionSource;
428
448
  ai?: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").QuestionAi;
429
449
  hasTriggers?: boolean;
450
+ createdAt: string;
451
+ name?: string;
452
+ promotion?: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").Promotion;
453
+ backgroundImage?: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").BackgroundImage;
430
454
  };
431
455
  promotion: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").QuestionOptions_PromotionOptions | undefined;
432
456
  notification: import("@streamlayer/sl-eslib/interactive/interactive.common_pb").QuestionNotification | undefined;
@@ -439,5 +463,5 @@ export declare const $betPack: ($slStreamId: ReadableAtom<string | undefined>, $
439
463
  data: null;
440
464
  } | {
441
465
  timestamp: number;
442
- data: Record<string, import("@bufbuild/protobuf").PlainMessage<import("@streamlayer/sl-eslib/interactive/interactive.common_pb").ExtendedQuestion>>;
466
+ data: Record<string, Omit<import("@streamlayer/sdk-web-types").RecursiveOmitHelper<import("@streamlayer/sl-eslib/interactive/interactive.common_pb").ExtendedQuestion, "$typeName">, "$typeName">>;
443
467
  }, any>;
@@ -1,7 +1,7 @@
1
1
  import { QuestionStatus, QuestionType } from '@streamlayer/sdk-web-types';
2
2
  import { eventBus } from '@streamlayer/sdk-web-interfaces';
3
3
  import { atom } from 'nanostores';
4
- import { Feed } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect';
4
+ import { Feed, } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
5
5
  import { InteractiveAllowed } from '../background';
6
6
  export const $activeQuestion = (slStreamId, onlyBetPack, transport) => {
7
7
  const { client, queryKey } = transport.createPromiseClient(Feed, {
@@ -45,7 +45,10 @@ export const feedSubscription = ($slStreamId, transport) => {
45
45
  };
46
46
  export const votingSubscription = (params, transport) => {
47
47
  const { client } = transport.createStreamClient(Feed);
48
- const subscription = transport.addSubscription(client.votingSubscription, params, { name: 'votingSubscription', withStore: true });
48
+ const subscription = transport.addSubscription(client.votingSubscription, params, {
49
+ name: 'votingSubscription',
50
+ withStore: true,
51
+ });
49
52
  return subscription;
50
53
  };
51
54
  export const questionSubscription = (questionId, transport) => {
@@ -1,9 +1,9 @@
1
1
  import type { Transport } from '@streamlayer/sdk-web-api';
2
+ import { PlainMessage } from '@streamlayer/sdk-web-types';
2
3
  import { ReadableAtom } from 'nanostores';
3
4
  import { ListRequest, SummaryRequest } from '@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb';
4
- import { PartialMessage } from '@bufbuild/protobuf';
5
5
  export { LeaderboardItem } from '@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb';
6
6
  export declare const $userSummary: ($eventId: ReadableAtom<string | undefined>, $userId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb").LeaderboardSummaryItem | undefined, any>;
7
7
  export declare const $leaderboardList: ($eventId: ReadableAtom<string | undefined>, _: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb").ListResponse_ListResponseData[], any>;
8
- export declare const createLeaderboardListFetch: (transport: Transport) => (params: PartialMessage<ListRequest>) => Promise<import("@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb").ListResponse>;
9
- export declare const createUserSummaryFetch: (transport: Transport) => (params: PartialMessage<SummaryRequest>) => Promise<import("@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb").SummaryResponse>;
8
+ export declare const createLeaderboardListFetch: (transport: Transport) => (params: PlainMessage<ListRequest>) => Promise<import("@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb").ListResponse>;
9
+ export declare const createUserSummaryFetch: (transport: Transport) => (params: PlainMessage<SummaryRequest>) => Promise<import("@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb").SummaryResponse>;
@@ -1,5 +1,4 @@
1
- import { Leaderboard } from '@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect';
2
- export { LeaderboardItem } from '@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb';
1
+ import { Leaderboard, } from '@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb';
3
2
  export const $userSummary = ($eventId, $userId, transport) => {
4
3
  const { client, queryKey } = transport.createPromiseClient(Leaderboard, {
5
4
  method: 'summary',
@@ -1,3 +1,4 @@
1
1
  import type { Transport } from '@streamlayer/sdk-web-api';
2
2
  import { ReadableAtom } from 'nanostores';
3
- export declare const $moderation: (slStreamId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InteractiveFeed | undefined, any>;
3
+ import { InteractiveFeed } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
4
+ export declare const $moderation: (slStreamId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<Omit<import("@streamlayer/sdk-web-types").RecursiveOmitHelper<InteractiveFeed, "$typeName">, "$typeName"> | undefined, any>;
@@ -1,4 +1,4 @@
1
- import { Feed } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect';
1
+ import { Feed } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
2
2
  export const $moderation = (slStreamId, transport) => {
3
3
  const { client, queryKey } = transport.createPromiseClient(Feed, { method: 'get', params: [slStreamId] });
4
4
  return transport.nanoquery.createFetcherStore(queryKey, {
@@ -21,6 +21,7 @@ export const summary = ($eventId, $userId, $friends, transport) => {
21
21
  const request = {
22
22
  eventId: eventId,
23
23
  userId: userId,
24
+ leaderboardId: '',
24
25
  usersIds: [...usersIds, userId],
25
26
  };
26
27
  const res = await fetch(request);
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@streamlayer/feature-gamification",
3
- "version": "1.16.14",
3
+ "version": "1.18.0",
4
4
  "peerDependencies": {
5
- "@bufbuild/protobuf": "^1.10.0",
5
+ "@bufbuild/protobuf": "^2.2.2",
6
6
  "@fastify/deepmerge": "^2.0.0",
7
- "@streamlayer/sl-eslib": "^5.149.1",
7
+ "@streamlayer/sl-eslib": "^5.168.0",
8
8
  "uuid": "^11.1.0",
9
9
  "nanostores": "^0.11.4",
10
- "@streamlayer/sdk-web-api": "^1.8.14",
11
- "@streamlayer/sdk-web-core": "^1.11.16",
12
- "@streamlayer/sdk-web-logger": "^1.0.61",
13
- "@streamlayer/sdk-web-interfaces": "^1.5.5",
14
- "@streamlayer/sdk-web-notifications": "^1.3.23",
15
- "@streamlayer/sdk-web-storage": "^1.0.61",
16
- "@streamlayer/sdk-web-types": "^1.10.18"
10
+ "@streamlayer/sdk-web-api": "^1.10.0",
11
+ "@streamlayer/sdk-web-core": "^1.13.0",
12
+ "@streamlayer/sdk-web-interfaces": "^1.6.1",
13
+ "@streamlayer/sdk-web-logger": "^1.0.63",
14
+ "@streamlayer/sdk-web-notifications": "^1.3.25",
15
+ "@streamlayer/sdk-web-storage": "^1.0.63",
16
+ "@streamlayer/sdk-web-types": "^1.12.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "tslib": "^2.7.0"