@lootlog/sdk 0.1.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.
- package/LICENSE +21 -0
- package/README.md +50 -0
- package/dist/activity.d.ts +491 -0
- package/dist/activity.d.ts.map +1 -0
- package/dist/activity.js +231 -0
- package/dist/activity.js.map +1 -0
- package/dist/battlelog.d.ts +2238 -0
- package/dist/battlelog.d.ts.map +1 -0
- package/dist/battlelog.js +639 -0
- package/dist/battlelog.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +11692 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +4673 -0
- package/dist/main.js.map +1 -0
- package/dist/mutators-CaBTxpi-.js +10 -0
- package/dist/mutators-CaBTxpi-.js.map +1 -0
- package/dist/mutators-Da_vMUva.d.ts +9 -0
- package/dist/mutators-Da_vMUva.d.ts.map +1 -0
- package/dist/realtime.d.ts +1000 -0
- package/dist/realtime.d.ts.map +1 -0
- package/dist/realtime.js +1443 -0
- package/dist/realtime.js.map +1 -0
- package/dist/search.d.ts +233 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +126 -0
- package/dist/search.js.map +1 -0
- package/dist/transport-BHbtsYo_.d.ts +38 -0
- package/dist/transport-BHbtsYo_.d.ts.map +1 -0
- package/dist/transport-CIfewyM7.js +202 -0
- package/dist/transport-CIfewyM7.js.map +1 -0
- package/openapi/activity.json +1608 -0
- package/openapi/battlelog.json +7180 -0
- package/openapi/main.json +38959 -0
- package/openapi/search.json +922 -0
- package/package.json +80 -0
|
@@ -0,0 +1,1000 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
//#region ../protocol/src/realtime/protocol.d.ts
|
|
3
|
+
export declare const REALTIME_SUBPROTOCOL = "lootlog.realtime.v1";
|
|
4
|
+
export declare const REALTIME_JSON_SUBPROTOCOL = "lootlog.realtime.json.v1";
|
|
5
|
+
declare const SubscriptionScope: Schema.Struct<{
|
|
6
|
+
readonly topic: Schema.Literals<readonly ["organization.activity", "organization.chat", "organization.loots", "organization.members", "organization.notifications", "organization.presence", "organization.reservations", "organization.timers", "event.coordination", "map.air-tags", "map.pings", "party.ready-room"]>;
|
|
7
|
+
readonly organizationId: Schema.optional<Schema.NonEmptyString>;
|
|
8
|
+
readonly eventId: Schema.optional<Schema.NonEmptyString>;
|
|
9
|
+
readonly world: Schema.optional<Schema.NonEmptyString>;
|
|
10
|
+
readonly mapId: Schema.optional<Schema.Int>;
|
|
11
|
+
}>;
|
|
12
|
+
type SubscriptionScope = typeof SubscriptionScope.Type;
|
|
13
|
+
declare const BasicPresence: Schema.Struct<{
|
|
14
|
+
readonly userId: Schema.NonEmptyString;
|
|
15
|
+
readonly discordId: Schema.optional<Schema.NonEmptyString>;
|
|
16
|
+
readonly sessionId: Schema.NonEmptyString;
|
|
17
|
+
readonly organizationIds: Schema.$Array<Schema.NonEmptyString>;
|
|
18
|
+
readonly platform: Schema.Literals<readonly ["game", "web-app"]>;
|
|
19
|
+
readonly status: Schema.Literals<readonly ["online", "offline"]>;
|
|
20
|
+
readonly confidence: Schema.Literals<readonly ["verified", "reported"]>;
|
|
21
|
+
readonly isAfk: Schema.Boolean;
|
|
22
|
+
readonly lastSeen: Schema.Int;
|
|
23
|
+
readonly character: Schema.optional<Schema.Struct<{
|
|
24
|
+
readonly world: Schema.NonEmptyString;
|
|
25
|
+
readonly name: Schema.NonEmptyString;
|
|
26
|
+
readonly lvl: Schema.Int;
|
|
27
|
+
readonly icon: Schema.String;
|
|
28
|
+
readonly characterId: Schema.NonEmptyString;
|
|
29
|
+
readonly accountId: Schema.NonEmptyString;
|
|
30
|
+
readonly prof: Schema.String;
|
|
31
|
+
readonly clan: Schema.optional<Schema.Struct<{
|
|
32
|
+
readonly id: Schema.optional<Schema.Int>;
|
|
33
|
+
readonly name: Schema.optional<Schema.String>;
|
|
34
|
+
readonly rank: Schema.optional<Schema.Int>;
|
|
35
|
+
}>>;
|
|
36
|
+
}>>;
|
|
37
|
+
}>;
|
|
38
|
+
type BasicPresence = typeof BasicPresence.Type;
|
|
39
|
+
declare const PresenceWithLocation: Schema.Struct<{
|
|
40
|
+
readonly userId: Schema.NonEmptyString;
|
|
41
|
+
readonly discordId: Schema.optional<Schema.NonEmptyString>;
|
|
42
|
+
readonly sessionId: Schema.NonEmptyString;
|
|
43
|
+
readonly organizationIds: Schema.$Array<Schema.NonEmptyString>;
|
|
44
|
+
readonly platform: Schema.Literals<readonly ["game", "web-app"]>;
|
|
45
|
+
readonly status: Schema.Literals<readonly ["online", "offline"]>;
|
|
46
|
+
readonly confidence: Schema.Literals<readonly ["verified", "reported"]>;
|
|
47
|
+
readonly isAfk: Schema.Boolean;
|
|
48
|
+
readonly lastSeen: Schema.Int;
|
|
49
|
+
readonly character: Schema.optional<Schema.Struct<{
|
|
50
|
+
readonly world: Schema.NonEmptyString;
|
|
51
|
+
readonly name: Schema.NonEmptyString;
|
|
52
|
+
readonly lvl: Schema.Int;
|
|
53
|
+
readonly icon: Schema.String;
|
|
54
|
+
readonly characterId: Schema.NonEmptyString;
|
|
55
|
+
readonly accountId: Schema.NonEmptyString;
|
|
56
|
+
readonly prof: Schema.String;
|
|
57
|
+
readonly clan: Schema.optional<Schema.Struct<{
|
|
58
|
+
readonly id: Schema.optional<Schema.Int>;
|
|
59
|
+
readonly name: Schema.optional<Schema.String>;
|
|
60
|
+
readonly rank: Schema.optional<Schema.Int>;
|
|
61
|
+
}>>;
|
|
62
|
+
}>>;
|
|
63
|
+
readonly location: Schema.Struct<{
|
|
64
|
+
readonly mapId: Schema.optional<Schema.Int>;
|
|
65
|
+
readonly map: Schema.NonEmptyString;
|
|
66
|
+
readonly x: Schema.optional<Schema.Int>;
|
|
67
|
+
readonly y: Schema.optional<Schema.Int>;
|
|
68
|
+
}>;
|
|
69
|
+
}>;
|
|
70
|
+
type PresenceWithLocation = typeof PresenceWithLocation.Type;
|
|
71
|
+
declare const ClientCommand: Schema.Union<readonly [Schema.Struct<{
|
|
72
|
+
readonly v: Schema.Literal<1>;
|
|
73
|
+
readonly type: Schema.Literal<"session.join">;
|
|
74
|
+
readonly requestId: Schema.optional<Schema.NonEmptyString>;
|
|
75
|
+
readonly data: Schema.Struct<{
|
|
76
|
+
readonly world: Schema.optional<Schema.NonEmptyString>;
|
|
77
|
+
readonly character: Schema.optional<Schema.Struct<{
|
|
78
|
+
readonly world: Schema.NonEmptyString;
|
|
79
|
+
readonly name: Schema.NonEmptyString;
|
|
80
|
+
readonly lvl: Schema.Int;
|
|
81
|
+
readonly icon: Schema.String;
|
|
82
|
+
readonly characterId: Schema.NonEmptyString;
|
|
83
|
+
readonly accountId: Schema.NonEmptyString;
|
|
84
|
+
readonly prof: Schema.String;
|
|
85
|
+
readonly clan: Schema.optional<Schema.Struct<{
|
|
86
|
+
readonly id: Schema.optional<Schema.Int>;
|
|
87
|
+
readonly name: Schema.optional<Schema.String>;
|
|
88
|
+
readonly rank: Schema.optional<Schema.Int>;
|
|
89
|
+
}>>;
|
|
90
|
+
}>>;
|
|
91
|
+
readonly margonemAccountProof: Schema.optional<Schema.Unknown>;
|
|
92
|
+
}>;
|
|
93
|
+
}>, Schema.Struct<{
|
|
94
|
+
readonly v: Schema.Literal<1>;
|
|
95
|
+
readonly type: Schema.Literal<"presence.heartbeat">;
|
|
96
|
+
readonly requestId: Schema.optional<Schema.NonEmptyString>;
|
|
97
|
+
readonly data: Schema.Struct<{
|
|
98
|
+
readonly sessionId: Schema.NonEmptyString;
|
|
99
|
+
}>;
|
|
100
|
+
}>, Schema.Struct<{
|
|
101
|
+
readonly v: Schema.Literal<1>;
|
|
102
|
+
readonly type: Schema.Literal<"presence.publish">;
|
|
103
|
+
readonly requestId: Schema.optional<Schema.NonEmptyString>;
|
|
104
|
+
readonly data: Schema.Struct<{
|
|
105
|
+
readonly organizationIds: Schema.$Array<Schema.NonEmptyString>;
|
|
106
|
+
readonly isAfk: Schema.optional<Schema.Boolean>;
|
|
107
|
+
readonly character: Schema.optional<Schema.Struct<{
|
|
108
|
+
readonly world: Schema.NonEmptyString;
|
|
109
|
+
readonly name: Schema.NonEmptyString;
|
|
110
|
+
readonly lvl: Schema.Int;
|
|
111
|
+
readonly icon: Schema.String;
|
|
112
|
+
readonly characterId: Schema.NonEmptyString;
|
|
113
|
+
readonly accountId: Schema.NonEmptyString;
|
|
114
|
+
readonly prof: Schema.String;
|
|
115
|
+
readonly clan: Schema.optional<Schema.Struct<{
|
|
116
|
+
readonly id: Schema.optional<Schema.Int>;
|
|
117
|
+
readonly name: Schema.optional<Schema.String>;
|
|
118
|
+
readonly rank: Schema.optional<Schema.Int>;
|
|
119
|
+
}>>;
|
|
120
|
+
}>>;
|
|
121
|
+
readonly location: Schema.optional<Schema.Struct<{
|
|
122
|
+
readonly mapId: Schema.optional<Schema.Int>;
|
|
123
|
+
readonly map: Schema.NonEmptyString;
|
|
124
|
+
readonly x: Schema.optional<Schema.Int>;
|
|
125
|
+
readonly y: Schema.optional<Schema.Int>;
|
|
126
|
+
}>>;
|
|
127
|
+
readonly clientObservedAt: Schema.optional<Schema.Int>;
|
|
128
|
+
}>;
|
|
129
|
+
}>, Schema.Struct<{
|
|
130
|
+
readonly v: Schema.Literal<1>;
|
|
131
|
+
readonly type: Schema.Literal<"presence.fetch">;
|
|
132
|
+
readonly requestId: Schema.optional<Schema.NonEmptyString>;
|
|
133
|
+
readonly data: Schema.Struct<{
|
|
134
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
135
|
+
readonly world: Schema.optional<Schema.NonEmptyString>;
|
|
136
|
+
}>;
|
|
137
|
+
}>, Schema.Struct<{
|
|
138
|
+
readonly v: Schema.Literal<1>;
|
|
139
|
+
readonly type: Schema.Literal<"subscription.subscribe">;
|
|
140
|
+
readonly requestId: Schema.optional<Schema.NonEmptyString>;
|
|
141
|
+
readonly data: Schema.Struct<{
|
|
142
|
+
readonly topic: Schema.Literals<readonly ["organization.activity", "organization.chat", "organization.loots", "organization.members", "organization.notifications", "organization.presence", "organization.reservations", "organization.timers", "event.coordination", "map.air-tags", "map.pings", "party.ready-room"]>;
|
|
143
|
+
readonly organizationId: Schema.optional<Schema.NonEmptyString>;
|
|
144
|
+
readonly eventId: Schema.optional<Schema.NonEmptyString>;
|
|
145
|
+
readonly world: Schema.optional<Schema.NonEmptyString>;
|
|
146
|
+
readonly mapId: Schema.optional<Schema.Int>;
|
|
147
|
+
}>;
|
|
148
|
+
}>, Schema.Struct<{
|
|
149
|
+
readonly v: Schema.Literal<1>;
|
|
150
|
+
readonly type: Schema.Literal<"subscription.unsubscribe">;
|
|
151
|
+
readonly requestId: Schema.optional<Schema.NonEmptyString>;
|
|
152
|
+
readonly data: Schema.Struct<{
|
|
153
|
+
readonly topic: Schema.Literals<readonly ["organization.activity", "organization.chat", "organization.loots", "organization.members", "organization.notifications", "organization.presence", "organization.reservations", "organization.timers", "event.coordination", "map.air-tags", "map.pings", "party.ready-room"]>;
|
|
154
|
+
readonly organizationId: Schema.optional<Schema.NonEmptyString>;
|
|
155
|
+
readonly eventId: Schema.optional<Schema.NonEmptyString>;
|
|
156
|
+
readonly world: Schema.optional<Schema.NonEmptyString>;
|
|
157
|
+
readonly mapId: Schema.optional<Schema.Int>;
|
|
158
|
+
}>;
|
|
159
|
+
}>, Schema.Struct<{
|
|
160
|
+
readonly v: Schema.Literal<1>;
|
|
161
|
+
readonly type: Schema.Literal<"map-ping.send">;
|
|
162
|
+
readonly requestId: Schema.optional<Schema.NonEmptyString>;
|
|
163
|
+
readonly data: Schema.Struct<{
|
|
164
|
+
readonly expectedMapId: Schema.Int;
|
|
165
|
+
readonly type: Schema.Literals<readonly ["attention", "enemy", "regroup", "avoid"]>;
|
|
166
|
+
readonly x: Schema.Int;
|
|
167
|
+
readonly y: Schema.Int;
|
|
168
|
+
}>;
|
|
169
|
+
}>, Schema.Struct<{
|
|
170
|
+
readonly v: Schema.Literal<1>;
|
|
171
|
+
readonly type: Schema.Literal<"air-tag.subscription">;
|
|
172
|
+
readonly requestId: Schema.optional<Schema.NonEmptyString>;
|
|
173
|
+
readonly data: Schema.Struct<{
|
|
174
|
+
readonly requestId: Schema.NonEmptyString;
|
|
175
|
+
readonly enabled: Schema.Boolean;
|
|
176
|
+
readonly expectedMapId: Schema.optional<Schema.Int>;
|
|
177
|
+
}>;
|
|
178
|
+
}>, Schema.Struct<{
|
|
179
|
+
readonly v: Schema.Literal<1>;
|
|
180
|
+
readonly type: Schema.Literal<"air-tag.observation">;
|
|
181
|
+
readonly requestId: Schema.optional<Schema.NonEmptyString>;
|
|
182
|
+
readonly data: Schema.Struct<{
|
|
183
|
+
readonly expectedMapId: Schema.Int;
|
|
184
|
+
readonly observations: Schema.$Array<Schema.Struct<{
|
|
185
|
+
readonly targetId: Schema.NonEmptyString;
|
|
186
|
+
readonly nickname: Schema.NonEmptyString;
|
|
187
|
+
readonly clan: Schema.optionalKey<Schema.Struct<{
|
|
188
|
+
readonly id: Schema.Int;
|
|
189
|
+
readonly name: Schema.NonEmptyString;
|
|
190
|
+
}>>;
|
|
191
|
+
readonly relation: Schema.Literals<readonly [1, 2, 3, 4, 5, 6, 7, 8]>;
|
|
192
|
+
readonly x: Schema.Int;
|
|
193
|
+
readonly y: Schema.Int;
|
|
194
|
+
}>>;
|
|
195
|
+
}>;
|
|
196
|
+
}>]>;
|
|
197
|
+
type ClientCommand = typeof ClientCommand.Type;
|
|
198
|
+
declare const ServerEvent: Schema.Union<readonly [Schema.Struct<{
|
|
199
|
+
readonly v: Schema.Literal<1>;
|
|
200
|
+
readonly type: Schema.Literal<"session.joined">;
|
|
201
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
202
|
+
readonly data: Schema.Struct<{
|
|
203
|
+
readonly connectionId: Schema.NonEmptyString;
|
|
204
|
+
readonly organizationIds: Schema.$Array<Schema.NonEmptyString>;
|
|
205
|
+
readonly subscriptionScopes: Schema.$Array<Schema.Struct<{
|
|
206
|
+
readonly topic: Schema.Literals<readonly ["organization.activity", "organization.chat", "organization.loots", "organization.members", "organization.notifications", "organization.presence", "organization.reservations", "organization.timers", "event.coordination", "map.air-tags", "map.pings", "party.ready-room"]>;
|
|
207
|
+
readonly organizationId: Schema.optional<Schema.NonEmptyString>;
|
|
208
|
+
readonly eventId: Schema.optional<Schema.NonEmptyString>;
|
|
209
|
+
readonly world: Schema.optional<Schema.NonEmptyString>;
|
|
210
|
+
readonly mapId: Schema.optional<Schema.Int>;
|
|
211
|
+
}>>;
|
|
212
|
+
readonly accessPolicy: Schema.optional<Schema.Struct<{
|
|
213
|
+
readonly version: Schema.NonEmptyString;
|
|
214
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
215
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
216
|
+
readonly owner: Schema.Boolean;
|
|
217
|
+
readonly permissions: Schema.$Array<Schema.Literals<("ADMIN" | "LOOTLOG_ACCESS" | "LOOTLOG_CHAT_HEROES_READ" | "LOOTLOG_CHAT_READ" | "LOOTLOG_CHAT_TITANS_READ" | "LOOTLOG_CHAT_WRITE" | "LOOTLOG_DOCS_READ" | "LOOTLOG_DOCS_WRITE" | "LOOTLOG_EVENTS_MANAGE" | "LOOTLOG_EVENTS_READ" | "LOOTLOG_EVENTS_WRITE" | "LOOTLOG_LOOTS_ARCHIVE" | "LOOTLOG_LOOTS_HEROES_READ" | "LOOTLOG_LOOTS_READ" | "LOOTLOG_LOOTS_TITANS_READ" | "LOOTLOG_LOOTS_WRITE" | "LOOTLOG_MANAGE" | "LOOTLOG_MEMBERS_READ" | "LOOTLOG_NOTIFICATIONS_HEROES_READ" | "LOOTLOG_NOTIFICATIONS_READ" | "LOOTLOG_NOTIFICATIONS_SEND" | "LOOTLOG_NOTIFICATIONS_TITANS_READ" | "LOOTLOG_ONLINE_PLAYERS_READ" | "LOOTLOG_PRESENCE_LOCATION_READ" | "LOOTLOG_RESERVATIONS_READ" | "LOOTLOG_RESERVATIONS_WRITE" | "LOOTLOG_TIMERS_DELETE" | "LOOTLOG_TIMERS_HEROES_READ" | "LOOTLOG_TIMERS_READ" | "LOOTLOG_TIMERS_RESET" | "LOOTLOG_TIMERS_TITANS_READ" | "LOOTLOG_TIMERS_WRITE" | "OWNER")[]>>;
|
|
218
|
+
readonly grants: Schema.$Array<Schema.Struct<{
|
|
219
|
+
readonly permission: Schema.Literals<("ADMIN" | "LOOTLOG_ACCESS" | "LOOTLOG_CHAT_HEROES_READ" | "LOOTLOG_CHAT_READ" | "LOOTLOG_CHAT_TITANS_READ" | "LOOTLOG_CHAT_WRITE" | "LOOTLOG_DOCS_READ" | "LOOTLOG_DOCS_WRITE" | "LOOTLOG_EVENTS_MANAGE" | "LOOTLOG_EVENTS_READ" | "LOOTLOG_EVENTS_WRITE" | "LOOTLOG_LOOTS_ARCHIVE" | "LOOTLOG_LOOTS_HEROES_READ" | "LOOTLOG_LOOTS_READ" | "LOOTLOG_LOOTS_TITANS_READ" | "LOOTLOG_LOOTS_WRITE" | "LOOTLOG_MANAGE" | "LOOTLOG_MEMBERS_READ" | "LOOTLOG_NOTIFICATIONS_HEROES_READ" | "LOOTLOG_NOTIFICATIONS_READ" | "LOOTLOG_NOTIFICATIONS_SEND" | "LOOTLOG_NOTIFICATIONS_TITANS_READ" | "LOOTLOG_ONLINE_PLAYERS_READ" | "LOOTLOG_PRESENCE_LOCATION_READ" | "LOOTLOG_RESERVATIONS_READ" | "LOOTLOG_RESERVATIONS_WRITE" | "LOOTLOG_TIMERS_DELETE" | "LOOTLOG_TIMERS_HEROES_READ" | "LOOTLOG_TIMERS_READ" | "LOOTLOG_TIMERS_RESET" | "LOOTLOG_TIMERS_TITANS_READ" | "LOOTLOG_TIMERS_WRITE" | "OWNER")[]>;
|
|
220
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
221
|
+
readonly from: Schema.Int;
|
|
222
|
+
readonly to: Schema.Int;
|
|
223
|
+
}>>;
|
|
224
|
+
}>>;
|
|
225
|
+
}>>;
|
|
226
|
+
}>>;
|
|
227
|
+
}>;
|
|
228
|
+
}>, Schema.Struct<{
|
|
229
|
+
readonly v: Schema.Literal<1>;
|
|
230
|
+
readonly type: Schema.Literal<"permissions.updated">;
|
|
231
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
232
|
+
readonly data: Schema.Struct<{
|
|
233
|
+
readonly changes: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
234
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
235
|
+
readonly areas: Schema.$Array<Schema.Literals<readonly ["timers", "chat", "notifications", "presence", "reservations", "loots", "events", "organization"]>>;
|
|
236
|
+
readonly restricted: Schema.Boolean;
|
|
237
|
+
readonly expanded: Schema.Boolean;
|
|
238
|
+
}>>>;
|
|
239
|
+
readonly organizationIds: Schema.$Array<Schema.NonEmptyString>;
|
|
240
|
+
readonly subscriptionScopes: Schema.$Array<Schema.Struct<{
|
|
241
|
+
readonly topic: Schema.Literals<readonly ["organization.activity", "organization.chat", "organization.loots", "organization.members", "organization.notifications", "organization.presence", "organization.reservations", "organization.timers", "event.coordination", "map.air-tags", "map.pings", "party.ready-room"]>;
|
|
242
|
+
readonly organizationId: Schema.optional<Schema.NonEmptyString>;
|
|
243
|
+
readonly eventId: Schema.optional<Schema.NonEmptyString>;
|
|
244
|
+
readonly world: Schema.optional<Schema.NonEmptyString>;
|
|
245
|
+
readonly mapId: Schema.optional<Schema.Int>;
|
|
246
|
+
}>>;
|
|
247
|
+
readonly accessPolicy: Schema.optional<Schema.Struct<{
|
|
248
|
+
readonly version: Schema.NonEmptyString;
|
|
249
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
250
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
251
|
+
readonly owner: Schema.Boolean;
|
|
252
|
+
readonly permissions: Schema.$Array<Schema.Literals<("ADMIN" | "LOOTLOG_ACCESS" | "LOOTLOG_CHAT_HEROES_READ" | "LOOTLOG_CHAT_READ" | "LOOTLOG_CHAT_TITANS_READ" | "LOOTLOG_CHAT_WRITE" | "LOOTLOG_DOCS_READ" | "LOOTLOG_DOCS_WRITE" | "LOOTLOG_EVENTS_MANAGE" | "LOOTLOG_EVENTS_READ" | "LOOTLOG_EVENTS_WRITE" | "LOOTLOG_LOOTS_ARCHIVE" | "LOOTLOG_LOOTS_HEROES_READ" | "LOOTLOG_LOOTS_READ" | "LOOTLOG_LOOTS_TITANS_READ" | "LOOTLOG_LOOTS_WRITE" | "LOOTLOG_MANAGE" | "LOOTLOG_MEMBERS_READ" | "LOOTLOG_NOTIFICATIONS_HEROES_READ" | "LOOTLOG_NOTIFICATIONS_READ" | "LOOTLOG_NOTIFICATIONS_SEND" | "LOOTLOG_NOTIFICATIONS_TITANS_READ" | "LOOTLOG_ONLINE_PLAYERS_READ" | "LOOTLOG_PRESENCE_LOCATION_READ" | "LOOTLOG_RESERVATIONS_READ" | "LOOTLOG_RESERVATIONS_WRITE" | "LOOTLOG_TIMERS_DELETE" | "LOOTLOG_TIMERS_HEROES_READ" | "LOOTLOG_TIMERS_READ" | "LOOTLOG_TIMERS_RESET" | "LOOTLOG_TIMERS_TITANS_READ" | "LOOTLOG_TIMERS_WRITE" | "OWNER")[]>>;
|
|
253
|
+
readonly grants: Schema.$Array<Schema.Struct<{
|
|
254
|
+
readonly permission: Schema.Literals<("ADMIN" | "LOOTLOG_ACCESS" | "LOOTLOG_CHAT_HEROES_READ" | "LOOTLOG_CHAT_READ" | "LOOTLOG_CHAT_TITANS_READ" | "LOOTLOG_CHAT_WRITE" | "LOOTLOG_DOCS_READ" | "LOOTLOG_DOCS_WRITE" | "LOOTLOG_EVENTS_MANAGE" | "LOOTLOG_EVENTS_READ" | "LOOTLOG_EVENTS_WRITE" | "LOOTLOG_LOOTS_ARCHIVE" | "LOOTLOG_LOOTS_HEROES_READ" | "LOOTLOG_LOOTS_READ" | "LOOTLOG_LOOTS_TITANS_READ" | "LOOTLOG_LOOTS_WRITE" | "LOOTLOG_MANAGE" | "LOOTLOG_MEMBERS_READ" | "LOOTLOG_NOTIFICATIONS_HEROES_READ" | "LOOTLOG_NOTIFICATIONS_READ" | "LOOTLOG_NOTIFICATIONS_SEND" | "LOOTLOG_NOTIFICATIONS_TITANS_READ" | "LOOTLOG_ONLINE_PLAYERS_READ" | "LOOTLOG_PRESENCE_LOCATION_READ" | "LOOTLOG_RESERVATIONS_READ" | "LOOTLOG_RESERVATIONS_WRITE" | "LOOTLOG_TIMERS_DELETE" | "LOOTLOG_TIMERS_HEROES_READ" | "LOOTLOG_TIMERS_READ" | "LOOTLOG_TIMERS_RESET" | "LOOTLOG_TIMERS_TITANS_READ" | "LOOTLOG_TIMERS_WRITE" | "OWNER")[]>;
|
|
255
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
256
|
+
readonly from: Schema.Int;
|
|
257
|
+
readonly to: Schema.Int;
|
|
258
|
+
}>>;
|
|
259
|
+
}>>;
|
|
260
|
+
}>>;
|
|
261
|
+
}>>;
|
|
262
|
+
}>;
|
|
263
|
+
}>, Schema.Struct<{
|
|
264
|
+
readonly v: Schema.Literal<1>;
|
|
265
|
+
readonly type: Schema.Literal<"presence.snapshot">;
|
|
266
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
267
|
+
readonly data: Schema.Struct<{
|
|
268
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
269
|
+
readonly world: Schema.optional<Schema.NonEmptyString>;
|
|
270
|
+
readonly revision: Schema.Int;
|
|
271
|
+
readonly presences: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
272
|
+
readonly userId: Schema.NonEmptyString;
|
|
273
|
+
readonly discordId: Schema.optional<Schema.NonEmptyString>;
|
|
274
|
+
readonly sessionId: Schema.NonEmptyString;
|
|
275
|
+
readonly organizationIds: Schema.$Array<Schema.NonEmptyString>;
|
|
276
|
+
readonly platform: Schema.Literals<readonly ["game", "web-app"]>;
|
|
277
|
+
readonly status: Schema.Literals<readonly ["online", "offline"]>;
|
|
278
|
+
readonly confidence: Schema.Literals<readonly ["verified", "reported"]>;
|
|
279
|
+
readonly isAfk: Schema.Boolean;
|
|
280
|
+
readonly lastSeen: Schema.Int;
|
|
281
|
+
readonly character: Schema.optional<Schema.Struct<{
|
|
282
|
+
readonly world: Schema.NonEmptyString;
|
|
283
|
+
readonly name: Schema.NonEmptyString;
|
|
284
|
+
readonly lvl: Schema.Int;
|
|
285
|
+
readonly icon: Schema.String;
|
|
286
|
+
readonly characterId: Schema.NonEmptyString;
|
|
287
|
+
readonly accountId: Schema.NonEmptyString;
|
|
288
|
+
readonly prof: Schema.String;
|
|
289
|
+
readonly clan: Schema.optional<Schema.Struct<{
|
|
290
|
+
readonly id: Schema.optional<Schema.Int>;
|
|
291
|
+
readonly name: Schema.optional<Schema.String>;
|
|
292
|
+
readonly rank: Schema.optional<Schema.Int>;
|
|
293
|
+
}>>;
|
|
294
|
+
}>>;
|
|
295
|
+
readonly location: Schema.Struct<{
|
|
296
|
+
readonly mapId: Schema.optional<Schema.Int>;
|
|
297
|
+
readonly map: Schema.NonEmptyString;
|
|
298
|
+
readonly x: Schema.optional<Schema.Int>;
|
|
299
|
+
readonly y: Schema.optional<Schema.Int>;
|
|
300
|
+
}>;
|
|
301
|
+
}>, Schema.Struct<{
|
|
302
|
+
readonly userId: Schema.NonEmptyString;
|
|
303
|
+
readonly discordId: Schema.optional<Schema.NonEmptyString>;
|
|
304
|
+
readonly sessionId: Schema.NonEmptyString;
|
|
305
|
+
readonly organizationIds: Schema.$Array<Schema.NonEmptyString>;
|
|
306
|
+
readonly platform: Schema.Literals<readonly ["game", "web-app"]>;
|
|
307
|
+
readonly status: Schema.Literals<readonly ["online", "offline"]>;
|
|
308
|
+
readonly confidence: Schema.Literals<readonly ["verified", "reported"]>;
|
|
309
|
+
readonly isAfk: Schema.Boolean;
|
|
310
|
+
readonly lastSeen: Schema.Int;
|
|
311
|
+
readonly character: Schema.optional<Schema.Struct<{
|
|
312
|
+
readonly world: Schema.NonEmptyString;
|
|
313
|
+
readonly name: Schema.NonEmptyString;
|
|
314
|
+
readonly lvl: Schema.Int;
|
|
315
|
+
readonly icon: Schema.String;
|
|
316
|
+
readonly characterId: Schema.NonEmptyString;
|
|
317
|
+
readonly accountId: Schema.NonEmptyString;
|
|
318
|
+
readonly prof: Schema.String;
|
|
319
|
+
readonly clan: Schema.optional<Schema.Struct<{
|
|
320
|
+
readonly id: Schema.optional<Schema.Int>;
|
|
321
|
+
readonly name: Schema.optional<Schema.String>;
|
|
322
|
+
readonly rank: Schema.optional<Schema.Int>;
|
|
323
|
+
}>>;
|
|
324
|
+
}>>;
|
|
325
|
+
}>]>>;
|
|
326
|
+
}>;
|
|
327
|
+
}>, Schema.Struct<{
|
|
328
|
+
readonly v: Schema.Literal<1>;
|
|
329
|
+
readonly type: Schema.Literal<"presence.delta">;
|
|
330
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
331
|
+
readonly data: Schema.Struct<{
|
|
332
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
333
|
+
readonly revision: Schema.Int;
|
|
334
|
+
readonly changes: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
335
|
+
readonly action: Schema.Literal<"upsert">;
|
|
336
|
+
readonly presence: Schema.Union<readonly [Schema.Struct<{
|
|
337
|
+
readonly userId: Schema.NonEmptyString;
|
|
338
|
+
readonly discordId: Schema.optional<Schema.NonEmptyString>;
|
|
339
|
+
readonly sessionId: Schema.NonEmptyString;
|
|
340
|
+
readonly organizationIds: Schema.$Array<Schema.NonEmptyString>;
|
|
341
|
+
readonly platform: Schema.Literals<readonly ["game", "web-app"]>;
|
|
342
|
+
readonly status: Schema.Literals<readonly ["online", "offline"]>;
|
|
343
|
+
readonly confidence: Schema.Literals<readonly ["verified", "reported"]>;
|
|
344
|
+
readonly isAfk: Schema.Boolean;
|
|
345
|
+
readonly lastSeen: Schema.Int;
|
|
346
|
+
readonly character: Schema.optional<Schema.Struct<{
|
|
347
|
+
readonly world: Schema.NonEmptyString;
|
|
348
|
+
readonly name: Schema.NonEmptyString;
|
|
349
|
+
readonly lvl: Schema.Int;
|
|
350
|
+
readonly icon: Schema.String;
|
|
351
|
+
readonly characterId: Schema.NonEmptyString;
|
|
352
|
+
readonly accountId: Schema.NonEmptyString;
|
|
353
|
+
readonly prof: Schema.String;
|
|
354
|
+
readonly clan: Schema.optional<Schema.Struct<{
|
|
355
|
+
readonly id: Schema.optional<Schema.Int>;
|
|
356
|
+
readonly name: Schema.optional<Schema.String>;
|
|
357
|
+
readonly rank: Schema.optional<Schema.Int>;
|
|
358
|
+
}>>;
|
|
359
|
+
}>>;
|
|
360
|
+
readonly location: Schema.Struct<{
|
|
361
|
+
readonly mapId: Schema.optional<Schema.Int>;
|
|
362
|
+
readonly map: Schema.NonEmptyString;
|
|
363
|
+
readonly x: Schema.optional<Schema.Int>;
|
|
364
|
+
readonly y: Schema.optional<Schema.Int>;
|
|
365
|
+
}>;
|
|
366
|
+
}>, Schema.Struct<{
|
|
367
|
+
readonly userId: Schema.NonEmptyString;
|
|
368
|
+
readonly discordId: Schema.optional<Schema.NonEmptyString>;
|
|
369
|
+
readonly sessionId: Schema.NonEmptyString;
|
|
370
|
+
readonly organizationIds: Schema.$Array<Schema.NonEmptyString>;
|
|
371
|
+
readonly platform: Schema.Literals<readonly ["game", "web-app"]>;
|
|
372
|
+
readonly status: Schema.Literals<readonly ["online", "offline"]>;
|
|
373
|
+
readonly confidence: Schema.Literals<readonly ["verified", "reported"]>;
|
|
374
|
+
readonly isAfk: Schema.Boolean;
|
|
375
|
+
readonly lastSeen: Schema.Int;
|
|
376
|
+
readonly character: Schema.optional<Schema.Struct<{
|
|
377
|
+
readonly world: Schema.NonEmptyString;
|
|
378
|
+
readonly name: Schema.NonEmptyString;
|
|
379
|
+
readonly lvl: Schema.Int;
|
|
380
|
+
readonly icon: Schema.String;
|
|
381
|
+
readonly characterId: Schema.NonEmptyString;
|
|
382
|
+
readonly accountId: Schema.NonEmptyString;
|
|
383
|
+
readonly prof: Schema.String;
|
|
384
|
+
readonly clan: Schema.optional<Schema.Struct<{
|
|
385
|
+
readonly id: Schema.optional<Schema.Int>;
|
|
386
|
+
readonly name: Schema.optional<Schema.String>;
|
|
387
|
+
readonly rank: Schema.optional<Schema.Int>;
|
|
388
|
+
}>>;
|
|
389
|
+
}>>;
|
|
390
|
+
}>]>;
|
|
391
|
+
}>, Schema.Struct<{
|
|
392
|
+
readonly action: Schema.Literal<"remove">;
|
|
393
|
+
readonly userId: Schema.NonEmptyString;
|
|
394
|
+
readonly discordId: Schema.optional<Schema.NonEmptyString>;
|
|
395
|
+
readonly sessionId: Schema.NonEmptyString;
|
|
396
|
+
}>]>>;
|
|
397
|
+
}>;
|
|
398
|
+
}>, Schema.Struct<{
|
|
399
|
+
readonly v: Schema.Literal<1>;
|
|
400
|
+
readonly type: Schema.Literal<"chat.created">;
|
|
401
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
402
|
+
readonly data: Schema.Struct<{
|
|
403
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
404
|
+
readonly payload: Schema.Unknown;
|
|
405
|
+
}>;
|
|
406
|
+
}>, Schema.Struct<{
|
|
407
|
+
readonly v: Schema.Literal<1>;
|
|
408
|
+
readonly type: Schema.Literal<"chat.updated">;
|
|
409
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
410
|
+
readonly data: Schema.Struct<{
|
|
411
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
412
|
+
readonly payload: Schema.Unknown;
|
|
413
|
+
}>;
|
|
414
|
+
}>, Schema.Struct<{
|
|
415
|
+
readonly v: Schema.Literal<1>;
|
|
416
|
+
readonly type: Schema.Literal<"chat.deleted">;
|
|
417
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
418
|
+
readonly data: Schema.Struct<{
|
|
419
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
420
|
+
readonly payload: Schema.Unknown;
|
|
421
|
+
}>;
|
|
422
|
+
}>, Schema.Struct<{
|
|
423
|
+
readonly v: Schema.Literal<1>;
|
|
424
|
+
readonly type: Schema.Literal<"chat.cleared">;
|
|
425
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
426
|
+
readonly data: Schema.Struct<{
|
|
427
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
428
|
+
readonly payload: Schema.Unknown;
|
|
429
|
+
}>;
|
|
430
|
+
}>, Schema.Struct<{
|
|
431
|
+
readonly v: Schema.Literal<1>;
|
|
432
|
+
readonly type: Schema.Literal<"feed.entry">;
|
|
433
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
434
|
+
readonly data: Schema.Union<readonly [Schema.Struct<{
|
|
435
|
+
readonly id: Schema.String;
|
|
436
|
+
readonly version: Schema.Number;
|
|
437
|
+
readonly groupKey: Schema.optionalKey<Schema.String>;
|
|
438
|
+
readonly occurredAt: Schema.String;
|
|
439
|
+
readonly world: Schema.String;
|
|
440
|
+
readonly guild: Schema.Struct<{
|
|
441
|
+
readonly id: Schema.String;
|
|
442
|
+
readonly name: Schema.String;
|
|
443
|
+
readonly vanityUrl: Schema.NullOr<Schema.String>;
|
|
444
|
+
}>;
|
|
445
|
+
readonly type: Schema.Literal<"kill">;
|
|
446
|
+
readonly npc: Schema.Struct<{
|
|
447
|
+
readonly id: Schema.Number;
|
|
448
|
+
readonly name: Schema.String;
|
|
449
|
+
readonly type: Schema.NullOr<Schema.String>;
|
|
450
|
+
readonly lvl: Schema.NullOr<Schema.Number>;
|
|
451
|
+
readonly icon: Schema.NullOr<Schema.String>;
|
|
452
|
+
readonly prof: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
453
|
+
}>;
|
|
454
|
+
readonly count: Schema.Number;
|
|
455
|
+
}>, Schema.Struct<{
|
|
456
|
+
readonly id: Schema.String;
|
|
457
|
+
readonly version: Schema.Number;
|
|
458
|
+
readonly groupKey: Schema.optionalKey<Schema.String>;
|
|
459
|
+
readonly occurredAt: Schema.String;
|
|
460
|
+
readonly world: Schema.String;
|
|
461
|
+
readonly guild: Schema.Struct<{
|
|
462
|
+
readonly id: Schema.String;
|
|
463
|
+
readonly name: Schema.String;
|
|
464
|
+
readonly vanityUrl: Schema.NullOr<Schema.String>;
|
|
465
|
+
}>;
|
|
466
|
+
readonly npc: Schema.NullOr<Schema.Struct<{
|
|
467
|
+
readonly id: Schema.Number;
|
|
468
|
+
readonly name: Schema.String;
|
|
469
|
+
readonly type: Schema.NullOr<Schema.String>;
|
|
470
|
+
readonly lvl: Schema.NullOr<Schema.Number>;
|
|
471
|
+
readonly icon: Schema.NullOr<Schema.String>;
|
|
472
|
+
readonly prof: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
473
|
+
}>>;
|
|
474
|
+
readonly type: Schema.Literal<"loot">;
|
|
475
|
+
readonly lootId: Schema.Number;
|
|
476
|
+
readonly summary: Schema.optionalKey<Schema.Struct<{
|
|
477
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
478
|
+
readonly id: Schema.Number;
|
|
479
|
+
readonly hid: Schema.String;
|
|
480
|
+
readonly name: Schema.String;
|
|
481
|
+
readonly icon: Schema.String;
|
|
482
|
+
readonly stat: Schema.String;
|
|
483
|
+
readonly type: Schema.NullOr<Schema.String>;
|
|
484
|
+
readonly rarity: Schema.NullOr<Schema.Literals<readonly ["UNIQUE", "HEROIC", "LEGENDARY", "UPGRADED"]>>;
|
|
485
|
+
readonly lvl: Schema.Number;
|
|
486
|
+
readonly prof: Schema.$Array<Schema.Literals<readonly ["WARRIOR", "PALADIN", "HUNTER", "MAGE", "BLADE_DANCER", "TRACKER"]>>;
|
|
487
|
+
}>>;
|
|
488
|
+
readonly players: Schema.$Array<Schema.Struct<{
|
|
489
|
+
readonly id: Schema.Union<readonly [Schema.String, Schema.Number]>;
|
|
490
|
+
readonly name: Schema.String;
|
|
491
|
+
readonly lvl: Schema.NullOr<Schema.Number>;
|
|
492
|
+
readonly prof: Schema.NullOr<Schema.Literals<readonly ["WARRIOR", "PALADIN", "HUNTER", "MAGE", "BLADE_DANCER", "TRACKER"]>>;
|
|
493
|
+
readonly icon: Schema.NullOr<Schema.String>;
|
|
494
|
+
readonly characterId: Schema.NullOr<Schema.Number>;
|
|
495
|
+
readonly accountId: Schema.NullOr<Schema.Number>;
|
|
496
|
+
readonly hpp: Schema.NullOr<Schema.Number>;
|
|
497
|
+
}>>;
|
|
498
|
+
readonly npcs: Schema.$Array<Schema.Struct<{
|
|
499
|
+
readonly id: Schema.Number;
|
|
500
|
+
readonly name: Schema.String;
|
|
501
|
+
readonly wt: Schema.NullOr<Schema.Number>;
|
|
502
|
+
readonly lvl: Schema.NullOr<Schema.Number>;
|
|
503
|
+
readonly prof: Schema.NullOr<Schema.Literals<readonly ["WARRIOR", "PALADIN", "HUNTER", "MAGE", "BLADE_DANCER", "TRACKER"]>>;
|
|
504
|
+
readonly icon: Schema.NullOr<Schema.String>;
|
|
505
|
+
readonly type: Schema.NullOr<Schema.Literals<readonly ["COMMON", "ELITE", "ELITE2", "ELITE3", "HERO", "EVENT_HERO", "COLOSSUS", "TITAN", "NPC"]>>;
|
|
506
|
+
readonly margonemType: Schema.NullOr<Schema.Number>;
|
|
507
|
+
}>>;
|
|
508
|
+
readonly lootShare: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
509
|
+
readonly location: Schema.String;
|
|
510
|
+
}>>;
|
|
511
|
+
readonly additionalItemsCount: Schema.Number;
|
|
512
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
513
|
+
readonly id: Schema.Number;
|
|
514
|
+
readonly name: Schema.String;
|
|
515
|
+
readonly icon: Schema.String;
|
|
516
|
+
readonly rarity: Schema.NullOr<Schema.String>;
|
|
517
|
+
readonly stat: Schema.optionalKey<Schema.String>;
|
|
518
|
+
readonly type: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
519
|
+
readonly lvl: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
520
|
+
}>>;
|
|
521
|
+
}>]>;
|
|
522
|
+
}>, Schema.Struct<{
|
|
523
|
+
readonly v: Schema.Literal<1>;
|
|
524
|
+
readonly type: Schema.Literal<"kills.changed">;
|
|
525
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
526
|
+
readonly data: Schema.Struct<{
|
|
527
|
+
readonly guildId: Schema.NonEmptyString;
|
|
528
|
+
}>;
|
|
529
|
+
}>, Schema.Struct<{
|
|
530
|
+
readonly v: Schema.Literal<1>;
|
|
531
|
+
readonly type: Schema.Literal<"loot.created">;
|
|
532
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
533
|
+
readonly data: Schema.Struct<{
|
|
534
|
+
readonly feedEntry: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
535
|
+
readonly id: Schema.String;
|
|
536
|
+
readonly version: Schema.Number;
|
|
537
|
+
readonly groupKey: Schema.optionalKey<Schema.String>;
|
|
538
|
+
readonly occurredAt: Schema.String;
|
|
539
|
+
readonly world: Schema.String;
|
|
540
|
+
readonly guild: Schema.Struct<{
|
|
541
|
+
readonly id: Schema.String;
|
|
542
|
+
readonly name: Schema.String;
|
|
543
|
+
readonly vanityUrl: Schema.NullOr<Schema.String>;
|
|
544
|
+
}>;
|
|
545
|
+
readonly type: Schema.Literal<"kill">;
|
|
546
|
+
readonly npc: Schema.Struct<{
|
|
547
|
+
readonly id: Schema.Number;
|
|
548
|
+
readonly name: Schema.String;
|
|
549
|
+
readonly type: Schema.NullOr<Schema.String>;
|
|
550
|
+
readonly lvl: Schema.NullOr<Schema.Number>;
|
|
551
|
+
readonly icon: Schema.NullOr<Schema.String>;
|
|
552
|
+
readonly prof: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
553
|
+
}>;
|
|
554
|
+
readonly count: Schema.Number;
|
|
555
|
+
}>, Schema.Struct<{
|
|
556
|
+
readonly id: Schema.String;
|
|
557
|
+
readonly version: Schema.Number;
|
|
558
|
+
readonly groupKey: Schema.optionalKey<Schema.String>;
|
|
559
|
+
readonly occurredAt: Schema.String;
|
|
560
|
+
readonly world: Schema.String;
|
|
561
|
+
readonly guild: Schema.Struct<{
|
|
562
|
+
readonly id: Schema.String;
|
|
563
|
+
readonly name: Schema.String;
|
|
564
|
+
readonly vanityUrl: Schema.NullOr<Schema.String>;
|
|
565
|
+
}>;
|
|
566
|
+
readonly npc: Schema.NullOr<Schema.Struct<{
|
|
567
|
+
readonly id: Schema.Number;
|
|
568
|
+
readonly name: Schema.String;
|
|
569
|
+
readonly type: Schema.NullOr<Schema.String>;
|
|
570
|
+
readonly lvl: Schema.NullOr<Schema.Number>;
|
|
571
|
+
readonly icon: Schema.NullOr<Schema.String>;
|
|
572
|
+
readonly prof: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
573
|
+
}>>;
|
|
574
|
+
readonly type: Schema.Literal<"loot">;
|
|
575
|
+
readonly lootId: Schema.Number;
|
|
576
|
+
readonly summary: Schema.optionalKey<Schema.Struct<{
|
|
577
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
578
|
+
readonly id: Schema.Number;
|
|
579
|
+
readonly hid: Schema.String;
|
|
580
|
+
readonly name: Schema.String;
|
|
581
|
+
readonly icon: Schema.String;
|
|
582
|
+
readonly stat: Schema.String;
|
|
583
|
+
readonly type: Schema.NullOr<Schema.String>;
|
|
584
|
+
readonly rarity: Schema.NullOr<Schema.Literals<readonly ["UNIQUE", "HEROIC", "LEGENDARY", "UPGRADED"]>>;
|
|
585
|
+
readonly lvl: Schema.Number;
|
|
586
|
+
readonly prof: Schema.$Array<Schema.Literals<readonly ["WARRIOR", "PALADIN", "HUNTER", "MAGE", "BLADE_DANCER", "TRACKER"]>>;
|
|
587
|
+
}>>;
|
|
588
|
+
readonly players: Schema.$Array<Schema.Struct<{
|
|
589
|
+
readonly id: Schema.Union<readonly [Schema.String, Schema.Number]>;
|
|
590
|
+
readonly name: Schema.String;
|
|
591
|
+
readonly lvl: Schema.NullOr<Schema.Number>;
|
|
592
|
+
readonly prof: Schema.NullOr<Schema.Literals<readonly ["WARRIOR", "PALADIN", "HUNTER", "MAGE", "BLADE_DANCER", "TRACKER"]>>;
|
|
593
|
+
readonly icon: Schema.NullOr<Schema.String>;
|
|
594
|
+
readonly characterId: Schema.NullOr<Schema.Number>;
|
|
595
|
+
readonly accountId: Schema.NullOr<Schema.Number>;
|
|
596
|
+
readonly hpp: Schema.NullOr<Schema.Number>;
|
|
597
|
+
}>>;
|
|
598
|
+
readonly npcs: Schema.$Array<Schema.Struct<{
|
|
599
|
+
readonly id: Schema.Number;
|
|
600
|
+
readonly name: Schema.String;
|
|
601
|
+
readonly wt: Schema.NullOr<Schema.Number>;
|
|
602
|
+
readonly lvl: Schema.NullOr<Schema.Number>;
|
|
603
|
+
readonly prof: Schema.NullOr<Schema.Literals<readonly ["WARRIOR", "PALADIN", "HUNTER", "MAGE", "BLADE_DANCER", "TRACKER"]>>;
|
|
604
|
+
readonly icon: Schema.NullOr<Schema.String>;
|
|
605
|
+
readonly type: Schema.NullOr<Schema.Literals<readonly ["COMMON", "ELITE", "ELITE2", "ELITE3", "HERO", "EVENT_HERO", "COLOSSUS", "TITAN", "NPC"]>>;
|
|
606
|
+
readonly margonemType: Schema.NullOr<Schema.Number>;
|
|
607
|
+
}>>;
|
|
608
|
+
readonly lootShare: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
609
|
+
readonly location: Schema.String;
|
|
610
|
+
}>>;
|
|
611
|
+
readonly additionalItemsCount: Schema.Number;
|
|
612
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
613
|
+
readonly id: Schema.Number;
|
|
614
|
+
readonly name: Schema.String;
|
|
615
|
+
readonly icon: Schema.String;
|
|
616
|
+
readonly rarity: Schema.NullOr<Schema.String>;
|
|
617
|
+
readonly stat: Schema.optionalKey<Schema.String>;
|
|
618
|
+
readonly type: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
619
|
+
readonly lvl: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
620
|
+
}>>;
|
|
621
|
+
}>]>>;
|
|
622
|
+
readonly version: Schema.Literal<2>;
|
|
623
|
+
readonly guildId: Schema.NonEmptyString;
|
|
624
|
+
readonly lootId: Schema.Int;
|
|
625
|
+
readonly npcs: Schema.$Array<Schema.Struct<{
|
|
626
|
+
readonly lvl: Schema.optional<Schema.NullOr<Schema.Number>>;
|
|
627
|
+
readonly prof: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
628
|
+
readonly type: Schema.optional<Schema.NullOr<Schema.Union<readonly [Schema.Number, Schema.String]>>>;
|
|
629
|
+
readonly wt: Schema.optional<Schema.NullOr<Schema.Union<readonly [Schema.Number, Schema.String]>>>;
|
|
630
|
+
}>>;
|
|
631
|
+
}>;
|
|
632
|
+
}>, Schema.Struct<{
|
|
633
|
+
readonly v: Schema.Literal<1>;
|
|
634
|
+
readonly type: Schema.Literal<"loot.share-updated">;
|
|
635
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
636
|
+
readonly data: Schema.Struct<{
|
|
637
|
+
readonly feedEntry: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
638
|
+
readonly id: Schema.String;
|
|
639
|
+
readonly version: Schema.Number;
|
|
640
|
+
readonly groupKey: Schema.optionalKey<Schema.String>;
|
|
641
|
+
readonly occurredAt: Schema.String;
|
|
642
|
+
readonly world: Schema.String;
|
|
643
|
+
readonly guild: Schema.Struct<{
|
|
644
|
+
readonly id: Schema.String;
|
|
645
|
+
readonly name: Schema.String;
|
|
646
|
+
readonly vanityUrl: Schema.NullOr<Schema.String>;
|
|
647
|
+
}>;
|
|
648
|
+
readonly type: Schema.Literal<"kill">;
|
|
649
|
+
readonly npc: Schema.Struct<{
|
|
650
|
+
readonly id: Schema.Number;
|
|
651
|
+
readonly name: Schema.String;
|
|
652
|
+
readonly type: Schema.NullOr<Schema.String>;
|
|
653
|
+
readonly lvl: Schema.NullOr<Schema.Number>;
|
|
654
|
+
readonly icon: Schema.NullOr<Schema.String>;
|
|
655
|
+
readonly prof: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
656
|
+
}>;
|
|
657
|
+
readonly count: Schema.Number;
|
|
658
|
+
}>, Schema.Struct<{
|
|
659
|
+
readonly id: Schema.String;
|
|
660
|
+
readonly version: Schema.Number;
|
|
661
|
+
readonly groupKey: Schema.optionalKey<Schema.String>;
|
|
662
|
+
readonly occurredAt: Schema.String;
|
|
663
|
+
readonly world: Schema.String;
|
|
664
|
+
readonly guild: Schema.Struct<{
|
|
665
|
+
readonly id: Schema.String;
|
|
666
|
+
readonly name: Schema.String;
|
|
667
|
+
readonly vanityUrl: Schema.NullOr<Schema.String>;
|
|
668
|
+
}>;
|
|
669
|
+
readonly npc: Schema.NullOr<Schema.Struct<{
|
|
670
|
+
readonly id: Schema.Number;
|
|
671
|
+
readonly name: Schema.String;
|
|
672
|
+
readonly type: Schema.NullOr<Schema.String>;
|
|
673
|
+
readonly lvl: Schema.NullOr<Schema.Number>;
|
|
674
|
+
readonly icon: Schema.NullOr<Schema.String>;
|
|
675
|
+
readonly prof: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
676
|
+
}>>;
|
|
677
|
+
readonly type: Schema.Literal<"loot">;
|
|
678
|
+
readonly lootId: Schema.Number;
|
|
679
|
+
readonly summary: Schema.optionalKey<Schema.Struct<{
|
|
680
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
681
|
+
readonly id: Schema.Number;
|
|
682
|
+
readonly hid: Schema.String;
|
|
683
|
+
readonly name: Schema.String;
|
|
684
|
+
readonly icon: Schema.String;
|
|
685
|
+
readonly stat: Schema.String;
|
|
686
|
+
readonly type: Schema.NullOr<Schema.String>;
|
|
687
|
+
readonly rarity: Schema.NullOr<Schema.Literals<readonly ["UNIQUE", "HEROIC", "LEGENDARY", "UPGRADED"]>>;
|
|
688
|
+
readonly lvl: Schema.Number;
|
|
689
|
+
readonly prof: Schema.$Array<Schema.Literals<readonly ["WARRIOR", "PALADIN", "HUNTER", "MAGE", "BLADE_DANCER", "TRACKER"]>>;
|
|
690
|
+
}>>;
|
|
691
|
+
readonly players: Schema.$Array<Schema.Struct<{
|
|
692
|
+
readonly id: Schema.Union<readonly [Schema.String, Schema.Number]>;
|
|
693
|
+
readonly name: Schema.String;
|
|
694
|
+
readonly lvl: Schema.NullOr<Schema.Number>;
|
|
695
|
+
readonly prof: Schema.NullOr<Schema.Literals<readonly ["WARRIOR", "PALADIN", "HUNTER", "MAGE", "BLADE_DANCER", "TRACKER"]>>;
|
|
696
|
+
readonly icon: Schema.NullOr<Schema.String>;
|
|
697
|
+
readonly characterId: Schema.NullOr<Schema.Number>;
|
|
698
|
+
readonly accountId: Schema.NullOr<Schema.Number>;
|
|
699
|
+
readonly hpp: Schema.NullOr<Schema.Number>;
|
|
700
|
+
}>>;
|
|
701
|
+
readonly npcs: Schema.$Array<Schema.Struct<{
|
|
702
|
+
readonly id: Schema.Number;
|
|
703
|
+
readonly name: Schema.String;
|
|
704
|
+
readonly wt: Schema.NullOr<Schema.Number>;
|
|
705
|
+
readonly lvl: Schema.NullOr<Schema.Number>;
|
|
706
|
+
readonly prof: Schema.NullOr<Schema.Literals<readonly ["WARRIOR", "PALADIN", "HUNTER", "MAGE", "BLADE_DANCER", "TRACKER"]>>;
|
|
707
|
+
readonly icon: Schema.NullOr<Schema.String>;
|
|
708
|
+
readonly type: Schema.NullOr<Schema.Literals<readonly ["COMMON", "ELITE", "ELITE2", "ELITE3", "HERO", "EVENT_HERO", "COLOSSUS", "TITAN", "NPC"]>>;
|
|
709
|
+
readonly margonemType: Schema.NullOr<Schema.Number>;
|
|
710
|
+
}>>;
|
|
711
|
+
readonly lootShare: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
712
|
+
readonly location: Schema.String;
|
|
713
|
+
}>>;
|
|
714
|
+
readonly additionalItemsCount: Schema.Number;
|
|
715
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
716
|
+
readonly id: Schema.Number;
|
|
717
|
+
readonly name: Schema.String;
|
|
718
|
+
readonly icon: Schema.String;
|
|
719
|
+
readonly rarity: Schema.NullOr<Schema.String>;
|
|
720
|
+
readonly stat: Schema.optionalKey<Schema.String>;
|
|
721
|
+
readonly type: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
722
|
+
readonly lvl: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
723
|
+
}>>;
|
|
724
|
+
}>]>>;
|
|
725
|
+
readonly version: Schema.Literal<2>;
|
|
726
|
+
readonly guildId: Schema.NonEmptyString;
|
|
727
|
+
readonly lootId: Schema.Int;
|
|
728
|
+
readonly npcs: Schema.$Array<Schema.Struct<{
|
|
729
|
+
readonly lvl: Schema.optional<Schema.NullOr<Schema.Number>>;
|
|
730
|
+
readonly prof: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
731
|
+
readonly type: Schema.optional<Schema.NullOr<Schema.Union<readonly [Schema.Number, Schema.String]>>>;
|
|
732
|
+
readonly wt: Schema.optional<Schema.NullOr<Schema.Union<readonly [Schema.Number, Schema.String]>>>;
|
|
733
|
+
}>>;
|
|
734
|
+
readonly lootShare: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
735
|
+
}>;
|
|
736
|
+
}>, Schema.Struct<{
|
|
737
|
+
readonly v: Schema.Literal<1>;
|
|
738
|
+
readonly type: Schema.Literal<"timer.created">;
|
|
739
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
740
|
+
readonly data: Schema.Struct<{
|
|
741
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
742
|
+
readonly payload: Schema.Unknown;
|
|
743
|
+
}>;
|
|
744
|
+
}>, Schema.Struct<{
|
|
745
|
+
readonly v: Schema.Literal<1>;
|
|
746
|
+
readonly type: Schema.Literal<"timer.deleted">;
|
|
747
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
748
|
+
readonly data: Schema.Struct<{
|
|
749
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
750
|
+
readonly payload: Schema.Unknown;
|
|
751
|
+
}>;
|
|
752
|
+
}>, Schema.Struct<{
|
|
753
|
+
readonly v: Schema.Literal<1>;
|
|
754
|
+
readonly type: Schema.Literal<"reservation.created">;
|
|
755
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
756
|
+
readonly data: Schema.Struct<{
|
|
757
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
758
|
+
readonly payload: Schema.Unknown;
|
|
759
|
+
}>;
|
|
760
|
+
}>, Schema.Struct<{
|
|
761
|
+
readonly v: Schema.Literal<1>;
|
|
762
|
+
readonly type: Schema.Literal<"reservation.deleted">;
|
|
763
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
764
|
+
readonly data: Schema.Struct<{
|
|
765
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
766
|
+
readonly payload: Schema.Unknown;
|
|
767
|
+
}>;
|
|
768
|
+
}>, Schema.Struct<{
|
|
769
|
+
readonly v: Schema.Literal<1>;
|
|
770
|
+
readonly type: Schema.Literal<"reservation.changed">;
|
|
771
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
772
|
+
readonly data: Schema.Struct<{
|
|
773
|
+
readonly version: Schema.Literal<2>;
|
|
774
|
+
readonly action: Schema.Literals<readonly ["created", "updated", "deleted", "sharing-changed"]>;
|
|
775
|
+
readonly sourceGuildId: Schema.NonEmptyString;
|
|
776
|
+
readonly audienceGuildIds: Schema.$Array<Schema.NonEmptyString>;
|
|
777
|
+
readonly reservationId: Schema.NullOr<Schema.Int>;
|
|
778
|
+
readonly spotId: Schema.NullOr<Schema.String>;
|
|
779
|
+
}>;
|
|
780
|
+
}>, Schema.Struct<{
|
|
781
|
+
readonly v: Schema.Literal<1>;
|
|
782
|
+
readonly type: Schema.Literal<"notification.sent">;
|
|
783
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
784
|
+
readonly data: Schema.Struct<{
|
|
785
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
786
|
+
readonly payload: Schema.Unknown;
|
|
787
|
+
}>;
|
|
788
|
+
}>, Schema.Struct<{
|
|
789
|
+
readonly v: Schema.Literal<1>;
|
|
790
|
+
readonly type: Schema.Literal<"member-refresh.updated">;
|
|
791
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
792
|
+
readonly data: Schema.Struct<{
|
|
793
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
794
|
+
readonly payload: Schema.Unknown;
|
|
795
|
+
}>;
|
|
796
|
+
}>, Schema.Struct<{
|
|
797
|
+
readonly v: Schema.Literal<1>;
|
|
798
|
+
readonly type: Schema.Literal<"party-gathering.updated">;
|
|
799
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
800
|
+
readonly data: Schema.Struct<{
|
|
801
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
802
|
+
readonly payload: Schema.Unknown;
|
|
803
|
+
}>;
|
|
804
|
+
}>, Schema.Struct<{
|
|
805
|
+
readonly v: Schema.Literal<1>;
|
|
806
|
+
readonly type: Schema.Literal<"party-gathering.cancelled">;
|
|
807
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
808
|
+
readonly data: Schema.Struct<{
|
|
809
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
810
|
+
readonly payload: Schema.Unknown;
|
|
811
|
+
}>;
|
|
812
|
+
}>, Schema.Struct<{
|
|
813
|
+
readonly v: Schema.Literal<1>;
|
|
814
|
+
readonly type: Schema.Literal<"party-ready-room.updated">;
|
|
815
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
816
|
+
readonly data: Schema.Struct<{
|
|
817
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
818
|
+
readonly payload: Schema.Unknown;
|
|
819
|
+
}>;
|
|
820
|
+
}>, Schema.Struct<{
|
|
821
|
+
readonly v: Schema.Literal<1>;
|
|
822
|
+
readonly type: Schema.Literal<"map-ping.received">;
|
|
823
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
824
|
+
readonly data: Schema.Struct<{
|
|
825
|
+
readonly pingId: Schema.NonEmptyString;
|
|
826
|
+
readonly world: Schema.NonEmptyString;
|
|
827
|
+
readonly mapId: Schema.Int;
|
|
828
|
+
readonly type: Schema.Literals<readonly ["attention", "enemy", "regroup", "avoid"]>;
|
|
829
|
+
readonly x: Schema.Int;
|
|
830
|
+
readonly y: Schema.Int;
|
|
831
|
+
readonly sender: Schema.Struct<{
|
|
832
|
+
readonly characterId: Schema.NonEmptyString;
|
|
833
|
+
readonly name: Schema.NonEmptyString;
|
|
834
|
+
}>;
|
|
835
|
+
readonly createdAt: Schema.Int;
|
|
836
|
+
}>;
|
|
837
|
+
}>, Schema.Struct<{
|
|
838
|
+
readonly v: Schema.Literal<1>;
|
|
839
|
+
readonly type: Schema.Literal<"air-tag.updated">;
|
|
840
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
841
|
+
readonly data: Schema.Struct<{
|
|
842
|
+
readonly guildId: Schema.NonEmptyString;
|
|
843
|
+
readonly world: Schema.NonEmptyString;
|
|
844
|
+
readonly mapId: Schema.Int;
|
|
845
|
+
readonly epochId: Schema.NonEmptyString;
|
|
846
|
+
readonly epochStartedAt: Schema.Int;
|
|
847
|
+
readonly revision: Schema.Int;
|
|
848
|
+
readonly target: Schema.Struct<{
|
|
849
|
+
readonly targetId: Schema.NonEmptyString;
|
|
850
|
+
readonly nickname: Schema.NonEmptyString;
|
|
851
|
+
readonly clan: Schema.optionalKey<Schema.Struct<{
|
|
852
|
+
readonly id: Schema.Int;
|
|
853
|
+
readonly name: Schema.NonEmptyString;
|
|
854
|
+
}>>;
|
|
855
|
+
readonly relation: Schema.Literals<readonly [1, 2, 3, 4, 5, 6, 7, 8]>;
|
|
856
|
+
readonly x: Schema.Int;
|
|
857
|
+
readonly y: Schema.Int;
|
|
858
|
+
readonly observedAt: Schema.Int;
|
|
859
|
+
readonly enemyObservedAt: Schema.optionalKey<Schema.Int>;
|
|
860
|
+
readonly clanEnemyObservedAt: Schema.optionalKey<Schema.Int>;
|
|
861
|
+
}>;
|
|
862
|
+
}>;
|
|
863
|
+
}>, Schema.Struct<{
|
|
864
|
+
readonly v: Schema.Literal<1>;
|
|
865
|
+
readonly type: Schema.Literal<"event.map-status-updated">;
|
|
866
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
867
|
+
readonly data: Schema.Struct<{
|
|
868
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
869
|
+
readonly payload: Schema.Unknown;
|
|
870
|
+
}>;
|
|
871
|
+
}>, Schema.Struct<{
|
|
872
|
+
readonly v: Schema.Literal<1>;
|
|
873
|
+
readonly type: Schema.Literal<"event.hero-killed">;
|
|
874
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
875
|
+
readonly data: Schema.Struct<{
|
|
876
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
877
|
+
readonly payload: Schema.Unknown;
|
|
878
|
+
}>;
|
|
879
|
+
}>, Schema.Struct<{
|
|
880
|
+
readonly v: Schema.Literal<1>;
|
|
881
|
+
readonly type: Schema.Literal<"event.ranking-updated">;
|
|
882
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
883
|
+
readonly data: Schema.Struct<{
|
|
884
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
885
|
+
readonly payload: Schema.Unknown;
|
|
886
|
+
}>;
|
|
887
|
+
}>, Schema.Struct<{
|
|
888
|
+
readonly v: Schema.Literal<1>;
|
|
889
|
+
readonly type: Schema.Literal<"event.respawn-window-opened">;
|
|
890
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
891
|
+
readonly data: Schema.Struct<{
|
|
892
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
893
|
+
readonly payload: Schema.Unknown;
|
|
894
|
+
}>;
|
|
895
|
+
}>, Schema.Struct<{
|
|
896
|
+
readonly v: Schema.Literal<1>;
|
|
897
|
+
readonly type: Schema.Literal<"event.respawn-window-closed">;
|
|
898
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
899
|
+
readonly data: Schema.Struct<{
|
|
900
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
901
|
+
readonly payload: Schema.Unknown;
|
|
902
|
+
}>;
|
|
903
|
+
}>, Schema.Struct<{
|
|
904
|
+
readonly v: Schema.Literal<1>;
|
|
905
|
+
readonly type: Schema.Literal<"notification.volunteer">;
|
|
906
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
907
|
+
readonly data: Schema.Struct<{
|
|
908
|
+
readonly notificationId: Schema.NonEmptyString;
|
|
909
|
+
readonly volunteer: Schema.StructWithRest<Schema.Struct<{
|
|
910
|
+
readonly discordId: Schema.NonEmptyString;
|
|
911
|
+
readonly world: Schema.NonEmptyString;
|
|
912
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
|
|
913
|
+
}>;
|
|
914
|
+
}>]>;
|
|
915
|
+
type ServerEvent = typeof ServerEvent.Type;
|
|
916
|
+
//#endregion
|
|
917
|
+
//#region ../client/src/realtime/realtime-client.d.ts
|
|
918
|
+
type CommandType = ClientCommand["type"];
|
|
919
|
+
type CommandData<Type extends CommandType> = Extract<ClientCommand, {
|
|
920
|
+
type: Type;
|
|
921
|
+
}>["data"];
|
|
922
|
+
type RealtimeConnectionState = "disconnected" | "connecting" | "connected" | "joining" | "ready" | "reconnecting";
|
|
923
|
+
interface RealtimeWebSocket {
|
|
924
|
+
binaryType: BinaryType;
|
|
925
|
+
readonly readyState: number;
|
|
926
|
+
addEventListener(type: "open" | "close" | "error" | "message", listener: (event: {
|
|
927
|
+
readonly data?: unknown;
|
|
928
|
+
}) => void): void;
|
|
929
|
+
send(data: string | Uint8Array<ArrayBuffer>): void;
|
|
930
|
+
close(code?: number, reason?: string): void;
|
|
931
|
+
}
|
|
932
|
+
type RealtimeWebSocketFactory = (url: string, protocols?: string[]) => RealtimeWebSocket;
|
|
933
|
+
interface RealtimeClientOptions {
|
|
934
|
+
readonly url: string;
|
|
935
|
+
readonly path?: string;
|
|
936
|
+
readonly protocols?: ReadonlyArray<string>;
|
|
937
|
+
readonly frameEncoding?: "json" | "messagepack";
|
|
938
|
+
readonly requestTimeoutMs?: number;
|
|
939
|
+
readonly reconnectBaseDelayMs?: number;
|
|
940
|
+
readonly reconnectMaxDelayMs?: number;
|
|
941
|
+
readonly random?: () => number;
|
|
942
|
+
readonly webSocketFactory?: RealtimeWebSocketFactory;
|
|
943
|
+
}
|
|
944
|
+
export declare class RealtimeRequestError extends Error {
|
|
945
|
+
readonly code: string;
|
|
946
|
+
readonly retryable: boolean;
|
|
947
|
+
readonly retryAfterMs?: number | undefined;
|
|
948
|
+
constructor(code: string, message: string, retryable: boolean, retryAfterMs?: number | undefined);
|
|
949
|
+
}
|
|
950
|
+
export declare class RealtimeClient {
|
|
951
|
+
private readonly url;
|
|
952
|
+
private readonly protocols?;
|
|
953
|
+
private readonly requestTimeoutMs;
|
|
954
|
+
private readonly reconnectBaseDelayMs;
|
|
955
|
+
private readonly reconnectMaxDelayMs;
|
|
956
|
+
private readonly random;
|
|
957
|
+
private readonly webSocketFactory;
|
|
958
|
+
private readonly frameEncoding;
|
|
959
|
+
private readonly eventListeners;
|
|
960
|
+
private readonly stateListeners;
|
|
961
|
+
private readonly pending;
|
|
962
|
+
private readonly subscriptions;
|
|
963
|
+
private socket;
|
|
964
|
+
private stateValue;
|
|
965
|
+
private joinData;
|
|
966
|
+
private reconnectAttempt;
|
|
967
|
+
private reconnectTimeout;
|
|
968
|
+
private heartbeatTimeout;
|
|
969
|
+
private presenceSessionId;
|
|
970
|
+
private manuallyClosed;
|
|
971
|
+
private messageChain;
|
|
972
|
+
private rejoinHandler;
|
|
973
|
+
constructor(options: RealtimeClientOptions);
|
|
974
|
+
get state(): RealtimeConnectionState;
|
|
975
|
+
get connected(): boolean;
|
|
976
|
+
connect(): void;
|
|
977
|
+
disconnect(): void;
|
|
978
|
+
subscribe(listener: (event: ServerEvent) => void): () => void;
|
|
979
|
+
subscribeState(listener: (state: RealtimeConnectionState) => void): () => void;
|
|
980
|
+
setReconnectHandler(handler: (() => Promise<void>) | null): void;
|
|
981
|
+
join(data: CommandData<"session.join">): Promise<unknown>;
|
|
982
|
+
subscribeScope(scope: SubscriptionScope): Promise<unknown>;
|
|
983
|
+
unsubscribeScope(scope: SubscriptionScope): Promise<unknown>;
|
|
984
|
+
request<Type extends CommandType>(type: Type, data: CommandData<Type>): Promise<unknown>;
|
|
985
|
+
send<Type extends CommandType>(type: Type, data: CommandData<Type>): void;
|
|
986
|
+
private open;
|
|
987
|
+
private performJoin;
|
|
988
|
+
private handleMessage;
|
|
989
|
+
private encodeFrame;
|
|
990
|
+
private decodeFrame;
|
|
991
|
+
private scheduleReconnect;
|
|
992
|
+
private scheduleHeartbeat;
|
|
993
|
+
private rejectPending;
|
|
994
|
+
private setState;
|
|
995
|
+
private clearReconnect;
|
|
996
|
+
private clearHeartbeat;
|
|
997
|
+
}
|
|
998
|
+
//#endregion
|
|
999
|
+
export type { BasicPresence, ClientCommand, PresenceWithLocation, RealtimeClientOptions, RealtimeConnectionState, RealtimeWebSocket, RealtimeWebSocketFactory, ServerEvent, SubscriptionScope };
|
|
1000
|
+
//# sourceMappingURL=realtime.d.ts.map
|