@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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-2026 Lootlog.pl and Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # @lootlog/sdk
2
+
3
+ Generated fetch-only HTTP functions for the supported Lootlog API, with a shared
4
+ realtime client. No React dependency. API keys belong on trusted servers, never
5
+ in distributed userscripts or browser bundles.
6
+
7
+ ```ts
8
+ import { configureLootlogApi } from "@lootlog/sdk";
9
+ import { usersControllerGetCurrentUserGuilds } from "@lootlog/sdk/main";
10
+
11
+ const restore = configureLootlogApi({ apiKey: process.env.LOOTLOG_API_KEY! });
12
+ try {
13
+ const organizations = await usersControllerGetCurrentUserGuilds();
14
+ } finally {
15
+ restore();
16
+ }
17
+ ```
18
+
19
+ Use `environment: "development"` explicitly for development hosts. Configuration
20
+ is process-wide; per-request `apiClient` overrides support isolated callers.
21
+ HTTP failures throw `ApiError` with `status` and parsed `data`. Writes are never
22
+ retried automatically. Each key remains constrained by the user's current access.
23
+
24
+ Import `RealtimeClient` from `@lootlog/sdk/realtime`. On a trusted server pass
25
+ `webSocketFactory: (url, protocols) => new WebSocket(url, { protocols, headers:
26
+ { "X-Api-Key": apiKey } })` with a server WebSocket implementation that supports
27
+ headers (for example Bun). Browser WebSocket cannot attach API key headers.
28
+ Use `wss://gateway.lootlog.pl/ws` or `wss://dev-gateway.lootlog.pl/ws` explicitly.
29
+ Keys support read subscriptions/queries only; presence and realtime writes remain
30
+ session-only. Do not put keys in URLs or subprotocols.
31
+
32
+ For local userscript integrations use the installed `lootlogGameClientApi` and
33
+ `@lootlog/game-client-api` types instead of HTTP keys.
34
+
35
+ `bun run client:generate` projects the reviewed operation inventory and generates
36
+ these functions from service OpenAPI documents. `bun run client:check` detects
37
+ drift; `bun run build` builds portable ESM and bundled declarations. Maintainers
38
+ publish through the repository's **Publish SDK** workflow; see the
39
+ [publication guide](https://github.com/lootlog/monorepo/blob/main/packages/sdk/PUBLISHING.md).
40
+
41
+ The Organization loot count endpoint (`GET /guilds/{guildId}/loots/count`) and
42
+ `lootsControllerCountLootsByGuildId` SDK function have been removed. Integrations
43
+ must stop requesting a total count before the API removal is deployed. Use the
44
+ paginated loot list to browse records; it does not provide a replacement total.
45
+
46
+ Builds use the repository's TypeScript 7 catalog version and tsdown. The shared
47
+ `packages/tsconfig.public-api.json` includes workspace source dependencies so
48
+ declarations are bundled without requiring consumers to install private packages.
49
+ Run `bun run test:package` to install both public packages in an isolated
50
+ consumer and verify all SDK entry points with runtime checks and TypeScript.
@@ -0,0 +1,491 @@
1
+ import { t as activityFetch } from "./mutators-Da_vMUva.js";
2
+ //#region src/generated/activity.d.ts
3
+ export type PaginatedActivitiesResponseDtoDataItemType = typeof PaginatedActivitiesResponseDtoDataItemType[keyof typeof PaginatedActivitiesResponseDtoDataItemType];
4
+ export declare const PaginatedActivitiesResponseDtoDataItemType: {
5
+ readonly CONNECT_EVENT: 'CONNECT_EVENT';
6
+ readonly DISCONNECT_EVENT: 'DISCONNECT_EVENT';
7
+ };
8
+ export type PaginatedActivitiesResponseDtoDataItemSource = typeof PaginatedActivitiesResponseDtoDataItemSource[keyof typeof PaginatedActivitiesResponseDtoDataItemSource];
9
+ export declare const PaginatedActivitiesResponseDtoDataItemSource: {
10
+ readonly GAME: 'GAME';
11
+ readonly WEB_APP: 'WEB_APP';
12
+ };
13
+ export type PaginatedActivitiesResponseDtoDataItemDetails = {
14
+ [key: string]: unknown;
15
+ };
16
+ export type PaginatedActivitiesResponseDtoDataItemActorSnapshotSource = typeof PaginatedActivitiesResponseDtoDataItemActorSnapshotSource[keyof typeof PaginatedActivitiesResponseDtoDataItemActorSnapshotSource];
17
+ export declare const PaginatedActivitiesResponseDtoDataItemActorSnapshotSource: {
18
+ readonly GAME: 'GAME';
19
+ readonly WEB_APP: 'WEB_APP';
20
+ };
21
+ export type PaginatedActivitiesResponseDtoDataItemActorSnapshot = {
22
+ id: string;
23
+ accountId: number;
24
+ characterId: number;
25
+ name: string;
26
+ /** @nullable */
27
+ clanName?: string | null;
28
+ /** @nullable */
29
+ clanId?: number | null;
30
+ icon: string;
31
+ lvl: number;
32
+ prof: string;
33
+ source: PaginatedActivitiesResponseDtoDataItemActorSnapshotSource;
34
+ /** @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ */
35
+ createdAt: string;
36
+ };
37
+ export type PaginatedActivitiesResponseDtoDataItem = {
38
+ id: string;
39
+ userId: string;
40
+ guildId: string;
41
+ discordId: string;
42
+ type: PaginatedActivitiesResponseDtoDataItemType;
43
+ source: PaginatedActivitiesResponseDtoDataItemSource;
44
+ /** @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ */
45
+ createdAt: string;
46
+ /** @nullable */
47
+ world?: string | null;
48
+ details?: PaginatedActivitiesResponseDtoDataItemDetails;
49
+ actorSnapshot?: PaginatedActivitiesResponseDtoDataItemActorSnapshot;
50
+ };
51
+ export interface PaginatedActivitiesResponseDto {
52
+ data: PaginatedActivitiesResponseDtoDataItem[];
53
+ nextCursor?: string;
54
+ hasMore: boolean;
55
+ }
56
+ export interface ActorNameSuggestionsResponseDtoOutput {
57
+ suggestions: string[];
58
+ }
59
+ export interface WorldSuggestionsResponseDtoOutput {
60
+ worlds: string[];
61
+ }
62
+ export interface ClanNameSuggestionsResponseDtoOutput {
63
+ suggestions: string[];
64
+ }
65
+ export type MemberActivityStatsResponseDtoSource = typeof MemberActivityStatsResponseDtoSource[keyof typeof MemberActivityStatsResponseDtoSource];
66
+ export declare const MemberActivityStatsResponseDtoSource: {
67
+ readonly GAME: 'GAME';
68
+ readonly WEB_APP: 'WEB_APP';
69
+ };
70
+ export interface MemberActivityStatsResponseDto {
71
+ guildId: string;
72
+ discordId: string;
73
+ source: MemberActivityStatsResponseDtoSource;
74
+ /**
75
+ * @nullable
76
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
77
+ */
78
+ lastSeenAt?: string | null;
79
+ visitCount: number;
80
+ activeSessionCount: number;
81
+ /** @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ */
82
+ createdAt: string;
83
+ /** @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ */
84
+ updatedAt: string;
85
+ }
86
+ export type ActivityResponseDtoType = typeof ActivityResponseDtoType[keyof typeof ActivityResponseDtoType];
87
+ export declare const ActivityResponseDtoType: {
88
+ readonly CONNECT_EVENT: 'CONNECT_EVENT';
89
+ readonly DISCONNECT_EVENT: 'DISCONNECT_EVENT';
90
+ };
91
+ export type ActivityResponseDtoSource = typeof ActivityResponseDtoSource[keyof typeof ActivityResponseDtoSource];
92
+ export declare const ActivityResponseDtoSource: {
93
+ readonly GAME: 'GAME';
94
+ readonly WEB_APP: 'WEB_APP';
95
+ };
96
+ export type ActivityResponseDtoDetails = {
97
+ [key: string]: unknown;
98
+ };
99
+ export type ActivityResponseDtoActorSnapshotSource = typeof ActivityResponseDtoActorSnapshotSource[keyof typeof ActivityResponseDtoActorSnapshotSource];
100
+ export declare const ActivityResponseDtoActorSnapshotSource: {
101
+ readonly GAME: 'GAME';
102
+ readonly WEB_APP: 'WEB_APP';
103
+ };
104
+ export type ActivityResponseDtoActorSnapshot = {
105
+ id: string;
106
+ accountId: number;
107
+ characterId: number;
108
+ name: string;
109
+ /** @nullable */
110
+ clanName?: string | null;
111
+ /** @nullable */
112
+ clanId?: number | null;
113
+ icon: string;
114
+ lvl: number;
115
+ prof: string;
116
+ source: ActivityResponseDtoActorSnapshotSource;
117
+ /** @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ */
118
+ createdAt: string;
119
+ };
120
+ export interface ActivityResponseDto {
121
+ id: string;
122
+ userId: string;
123
+ guildId: string;
124
+ discordId: string;
125
+ type: ActivityResponseDtoType;
126
+ source: ActivityResponseDtoSource;
127
+ /** @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ */
128
+ createdAt: string;
129
+ /** @nullable */
130
+ world?: string | null;
131
+ details?: ActivityResponseDtoDetails;
132
+ actorSnapshot?: ActivityResponseDtoActorSnapshot;
133
+ }
134
+ export interface DeleteActivityResponseDtoOutput {
135
+ count: number;
136
+ }
137
+ export type UserOnlineResponseDtoTimezone = typeof UserOnlineResponseDtoTimezone[keyof typeof UserOnlineResponseDtoTimezone];
138
+ export declare const UserOnlineResponseDtoTimezone: {
139
+ readonly 'Europe/Warsaw': 'Europe/Warsaw';
140
+ };
141
+ export type UserOnlineResponseDtoStatus = typeof UserOnlineResponseDtoStatus[keyof typeof UserOnlineResponseDtoStatus];
142
+ export declare const UserOnlineResponseDtoStatus: {
143
+ readonly fresh: 'fresh';
144
+ readonly stale: 'stale';
145
+ readonly unavailable: 'unavailable';
146
+ };
147
+ export type UserOnlineResponseDtoDaysItem = {
148
+ date: string;
149
+ /** @nullable */
150
+ onlineSeconds: number | null;
151
+ partial: boolean;
152
+ worlds: string[];
153
+ worldsComplete: boolean;
154
+ };
155
+ export interface UserOnlineResponseDto {
156
+ timezone: UserOnlineResponseDtoTimezone;
157
+ /**
158
+ * @nullable
159
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
160
+ */
161
+ trackingStartedAt: string | null;
162
+ /**
163
+ * @nullable
164
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
165
+ */
166
+ lastObservedAt: string | null;
167
+ status: UserOnlineResponseDtoStatus;
168
+ days: UserOnlineResponseDtoDaysItem[];
169
+ }
170
+ export type ActivitiesControllerFindByGuildPathParameters = {
171
+ guildId: string;
172
+ };
173
+ export type ActivitiesControllerFindByGuildParams = {
174
+ type?: ActivitiesControllerFindByGuildTypeItem[];
175
+ source?: ActivitiesControllerFindByGuildSourceItem[];
176
+ playerName?: string;
177
+ clanName?: string;
178
+ world?: string;
179
+ /**
180
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
181
+ */
182
+ startDate?: string;
183
+ /**
184
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
185
+ */
186
+ endDate?: string;
187
+ cursor?: string;
188
+ /**
189
+ * @minimum 1
190
+ * @maximum 100
191
+ */
192
+ limit?: number;
193
+ };
194
+ export type ActivitiesControllerFindByGuildTypeItem = typeof ActivitiesControllerFindByGuildTypeItem[keyof typeof ActivitiesControllerFindByGuildTypeItem];
195
+ export declare const ActivitiesControllerFindByGuildTypeItem: {
196
+ readonly CONNECT_EVENT: 'CONNECT_EVENT';
197
+ readonly DISCONNECT_EVENT: 'DISCONNECT_EVENT';
198
+ };
199
+ export type ActivitiesControllerFindByGuildSourceItem = typeof ActivitiesControllerFindByGuildSourceItem[keyof typeof ActivitiesControllerFindByGuildSourceItem];
200
+ export declare const ActivitiesControllerFindByGuildSourceItem: {
201
+ readonly GAME: 'GAME';
202
+ readonly WEB_APP: 'WEB_APP';
203
+ };
204
+ export type ActivitiesControllerFindByGuild401 = {
205
+ message: string;
206
+ };
207
+ export type ActivitiesControllerFindByGuild403 = {
208
+ message: string;
209
+ };
210
+ export type ActivitiesControllerFindByGuild429 = {
211
+ message: string;
212
+ };
213
+ export type ActivitiesControllerFindByGuild503StatusCode = typeof ActivitiesControllerFindByGuild503StatusCode[keyof typeof ActivitiesControllerFindByGuild503StatusCode];
214
+ export declare const ActivitiesControllerFindByGuild503StatusCode: {
215
+ readonly NUMBER_503: 503;
216
+ };
217
+ export type ActivitiesControllerFindByGuild503 = {
218
+ message: string;
219
+ statusCode: ActivitiesControllerFindByGuild503StatusCode;
220
+ };
221
+ export type ActivitiesControllerSuggestActorNamesPathParameters = {
222
+ guildId: string;
223
+ };
224
+ export type ActivitiesControllerSuggestActorNamesParams = {
225
+ /**
226
+ * @maxLength 50
227
+ */
228
+ search?: string;
229
+ /**
230
+ * @minimum 1
231
+ * @maximum 50
232
+ */
233
+ limit?: number;
234
+ };
235
+ export type ActivitiesControllerSuggestActorNames401 = {
236
+ message: string;
237
+ };
238
+ export type ActivitiesControllerSuggestActorNames403 = {
239
+ message: string;
240
+ };
241
+ export type ActivitiesControllerSuggestActorNames429 = {
242
+ message: string;
243
+ };
244
+ export type ActivitiesControllerSuggestActorNames503StatusCode = typeof ActivitiesControllerSuggestActorNames503StatusCode[keyof typeof ActivitiesControllerSuggestActorNames503StatusCode];
245
+ export declare const ActivitiesControllerSuggestActorNames503StatusCode: {
246
+ readonly NUMBER_503: 503;
247
+ };
248
+ export type ActivitiesControllerSuggestActorNames503 = {
249
+ message: string;
250
+ statusCode: ActivitiesControllerSuggestActorNames503StatusCode;
251
+ };
252
+ export type ActivitiesControllerSuggestWorldsPathParameters = {
253
+ guildId: string;
254
+ };
255
+ export type ActivitiesControllerSuggestWorldsParams = {
256
+ /**
257
+ * @maxLength 50
258
+ */
259
+ search?: string;
260
+ /**
261
+ * @minimum 1
262
+ * @maximum 50
263
+ */
264
+ limit?: number;
265
+ };
266
+ export type ActivitiesControllerSuggestWorlds401 = {
267
+ message: string;
268
+ };
269
+ export type ActivitiesControllerSuggestWorlds403 = {
270
+ message: string;
271
+ };
272
+ export type ActivitiesControllerSuggestWorlds429 = {
273
+ message: string;
274
+ };
275
+ export type ActivitiesControllerSuggestWorlds503StatusCode = typeof ActivitiesControllerSuggestWorlds503StatusCode[keyof typeof ActivitiesControllerSuggestWorlds503StatusCode];
276
+ export declare const ActivitiesControllerSuggestWorlds503StatusCode: {
277
+ readonly NUMBER_503: 503;
278
+ };
279
+ export type ActivitiesControllerSuggestWorlds503 = {
280
+ message: string;
281
+ statusCode: ActivitiesControllerSuggestWorlds503StatusCode;
282
+ };
283
+ export type ActivitiesControllerSuggestClanNamesPathParameters = {
284
+ guildId: string;
285
+ };
286
+ export type ActivitiesControllerSuggestClanNamesParams = {
287
+ /**
288
+ * @maxLength 50
289
+ */
290
+ search?: string;
291
+ /**
292
+ * @minimum 1
293
+ * @maximum 50
294
+ */
295
+ limit?: number;
296
+ };
297
+ export type ActivitiesControllerSuggestClanNames401 = {
298
+ message: string;
299
+ };
300
+ export type ActivitiesControllerSuggestClanNames403 = {
301
+ message: string;
302
+ };
303
+ export type ActivitiesControllerSuggestClanNames429 = {
304
+ message: string;
305
+ };
306
+ export type ActivitiesControllerSuggestClanNames503StatusCode = typeof ActivitiesControllerSuggestClanNames503StatusCode[keyof typeof ActivitiesControllerSuggestClanNames503StatusCode];
307
+ export declare const ActivitiesControllerSuggestClanNames503StatusCode: {
308
+ readonly NUMBER_503: 503;
309
+ };
310
+ export type ActivitiesControllerSuggestClanNames503 = {
311
+ message: string;
312
+ statusCode: ActivitiesControllerSuggestClanNames503StatusCode;
313
+ };
314
+ export type ActivitiesControllerFindByUserPathParameters = {
315
+ guildId: string;
316
+ userId: string;
317
+ };
318
+ export type ActivitiesControllerFindByUserParams = {
319
+ type?: ActivitiesControllerFindByUserTypeItem[];
320
+ source?: ActivitiesControllerFindByUserSourceItem[];
321
+ playerName?: string;
322
+ clanName?: string;
323
+ world?: string;
324
+ /**
325
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
326
+ */
327
+ startDate?: string;
328
+ /**
329
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
330
+ */
331
+ endDate?: string;
332
+ cursor?: string;
333
+ /**
334
+ * @minimum 1
335
+ * @maximum 100
336
+ */
337
+ limit?: number;
338
+ };
339
+ export type ActivitiesControllerFindByUserTypeItem = typeof ActivitiesControllerFindByUserTypeItem[keyof typeof ActivitiesControllerFindByUserTypeItem];
340
+ export declare const ActivitiesControllerFindByUserTypeItem: {
341
+ readonly CONNECT_EVENT: 'CONNECT_EVENT';
342
+ readonly DISCONNECT_EVENT: 'DISCONNECT_EVENT';
343
+ };
344
+ export type ActivitiesControllerFindByUserSourceItem = typeof ActivitiesControllerFindByUserSourceItem[keyof typeof ActivitiesControllerFindByUserSourceItem];
345
+ export declare const ActivitiesControllerFindByUserSourceItem: {
346
+ readonly GAME: 'GAME';
347
+ readonly WEB_APP: 'WEB_APP';
348
+ };
349
+ export type ActivitiesControllerFindByUser401 = {
350
+ message: string;
351
+ };
352
+ export type ActivitiesControllerFindByUser403 = {
353
+ message: string;
354
+ };
355
+ export type ActivitiesControllerFindByUser429 = {
356
+ message: string;
357
+ };
358
+ export type ActivitiesControllerFindByUser503StatusCode = typeof ActivitiesControllerFindByUser503StatusCode[keyof typeof ActivitiesControllerFindByUser503StatusCode];
359
+ export declare const ActivitiesControllerFindByUser503StatusCode: {
360
+ readonly NUMBER_503: 503;
361
+ };
362
+ export type ActivitiesControllerFindByUser503 = {
363
+ message: string;
364
+ statusCode: ActivitiesControllerFindByUser503StatusCode;
365
+ };
366
+ export type ActivitiesControllerGetMemberActivityStatsPathParameters = {
367
+ guildId: string;
368
+ };
369
+ export type ActivitiesControllerGetMemberActivityStats401 = {
370
+ message: string;
371
+ };
372
+ export type ActivitiesControllerGetMemberActivityStats403 = {
373
+ message: string;
374
+ };
375
+ export type ActivitiesControllerGetMemberActivityStats429 = {
376
+ message: string;
377
+ };
378
+ export type ActivitiesControllerGetMemberActivityStats503StatusCode = typeof ActivitiesControllerGetMemberActivityStats503StatusCode[keyof typeof ActivitiesControllerGetMemberActivityStats503StatusCode];
379
+ export declare const ActivitiesControllerGetMemberActivityStats503StatusCode: {
380
+ readonly NUMBER_503: 503;
381
+ };
382
+ export type ActivitiesControllerGetMemberActivityStats503 = {
383
+ message: string;
384
+ statusCode: ActivitiesControllerGetMemberActivityStats503StatusCode;
385
+ };
386
+ export type ActivitiesControllerFindOnePathParameters = {
387
+ guildId: string;
388
+ id: string;
389
+ };
390
+ export type ActivitiesControllerFindOne401 = {
391
+ message: string;
392
+ };
393
+ export type ActivitiesControllerFindOne403 = {
394
+ message: string;
395
+ };
396
+ export type ActivitiesControllerFindOne429 = {
397
+ message: string;
398
+ };
399
+ export type ActivitiesControllerFindOne503StatusCode = typeof ActivitiesControllerFindOne503StatusCode[keyof typeof ActivitiesControllerFindOne503StatusCode];
400
+ export declare const ActivitiesControllerFindOne503StatusCode: {
401
+ readonly NUMBER_503: 503;
402
+ };
403
+ export type ActivitiesControllerFindOne503 = {
404
+ message: string;
405
+ statusCode: ActivitiesControllerFindOne503StatusCode;
406
+ };
407
+ export type ActivitiesControllerDeleteActivityPathParameters = {
408
+ guildId: string;
409
+ id: string;
410
+ };
411
+ export type ActivitiesControllerDeleteActivity401 = {
412
+ message: string;
413
+ };
414
+ export type ActivitiesControllerDeleteActivity403 = {
415
+ message: string;
416
+ };
417
+ export type ActivitiesControllerDeleteActivity429 = {
418
+ message: string;
419
+ };
420
+ export type ActivitiesControllerDeleteActivity503StatusCode = typeof ActivitiesControllerDeleteActivity503StatusCode[keyof typeof ActivitiesControllerDeleteActivity503StatusCode];
421
+ export declare const ActivitiesControllerDeleteActivity503StatusCode: {
422
+ readonly NUMBER_503: 503;
423
+ };
424
+ export type ActivitiesControllerDeleteActivity503 = {
425
+ message: string;
426
+ statusCode: ActivitiesControllerDeleteActivity503StatusCode;
427
+ };
428
+ export type UsersActivityControllerGetOnlineParams = {
429
+ from: string;
430
+ to: string;
431
+ };
432
+ export type UsersActivityControllerGetOnline401 = {
433
+ message: string;
434
+ statusCode: 401;
435
+ } | {
436
+ message: string;
437
+ };
438
+ export type UsersActivityControllerGetOnline403 = {
439
+ message: string;
440
+ };
441
+ export type UsersActivityControllerGetOnline429 = {
442
+ message: string;
443
+ };
444
+ export declare const getActivitiesControllerFindByGuildUrl: ({ guildId }: ActivitiesControllerFindByGuildPathParameters, params?: ActivitiesControllerFindByGuildParams) => string;
445
+ /**
446
+ * @summary Get activities for a specific guild
447
+ */
448
+ export declare const activitiesControllerFindByGuild: ({ guildId }: ActivitiesControllerFindByGuildPathParameters, params?: ActivitiesControllerFindByGuildParams, options?: Parameters<typeof activityFetch>[1]) => Promise<PaginatedActivitiesResponseDto>;
449
+ export declare const getActivitiesControllerSuggestActorNamesUrl: ({ guildId }: ActivitiesControllerSuggestActorNamesPathParameters, params?: ActivitiesControllerSuggestActorNamesParams) => string;
450
+ /**
451
+ * @summary Get actor name suggestions for a guild
452
+ */
453
+ export declare const activitiesControllerSuggestActorNames: ({ guildId }: ActivitiesControllerSuggestActorNamesPathParameters, params?: ActivitiesControllerSuggestActorNamesParams, options?: Parameters<typeof activityFetch>[1]) => Promise<ActorNameSuggestionsResponseDtoOutput>;
454
+ export declare const getActivitiesControllerSuggestWorldsUrl: ({ guildId }: ActivitiesControllerSuggestWorldsPathParameters, params?: ActivitiesControllerSuggestWorldsParams) => string;
455
+ /**
456
+ * @summary Get world suggestions for a guild
457
+ */
458
+ export declare const activitiesControllerSuggestWorlds: ({ guildId }: ActivitiesControllerSuggestWorldsPathParameters, params?: ActivitiesControllerSuggestWorldsParams, options?: Parameters<typeof activityFetch>[1]) => Promise<WorldSuggestionsResponseDtoOutput>;
459
+ export declare const getActivitiesControllerSuggestClanNamesUrl: ({ guildId }: ActivitiesControllerSuggestClanNamesPathParameters, params?: ActivitiesControllerSuggestClanNamesParams) => string;
460
+ /**
461
+ * @summary Get clan name suggestions for a guild
462
+ */
463
+ export declare const activitiesControllerSuggestClanNames: ({ guildId }: ActivitiesControllerSuggestClanNamesPathParameters, params?: ActivitiesControllerSuggestClanNamesParams, options?: Parameters<typeof activityFetch>[1]) => Promise<ClanNameSuggestionsResponseDtoOutput>;
464
+ export declare const getActivitiesControllerFindByUserUrl: ({ guildId, userId }: ActivitiesControllerFindByUserPathParameters, params?: ActivitiesControllerFindByUserParams) => string;
465
+ /**
466
+ * @summary Get activities for a specific user in a guild
467
+ */
468
+ export declare const activitiesControllerFindByUser: ({ guildId, userId }: ActivitiesControllerFindByUserPathParameters, params?: ActivitiesControllerFindByUserParams, options?: Parameters<typeof activityFetch>[1]) => Promise<PaginatedActivitiesResponseDto>;
469
+ export declare const getActivitiesControllerGetMemberActivityStatsUrl: ({ guildId }: ActivitiesControllerGetMemberActivityStatsPathParameters) => string;
470
+ /**
471
+ * @summary Get activity stats for guild members by source
472
+ */
473
+ export declare const activitiesControllerGetMemberActivityStats: ({ guildId }: ActivitiesControllerGetMemberActivityStatsPathParameters, options?: Parameters<typeof activityFetch>[1]) => Promise<MemberActivityStatsResponseDto[]>;
474
+ export declare const getActivitiesControllerFindOneUrl: ({ guildId, id }: ActivitiesControllerFindOnePathParameters) => string;
475
+ /**
476
+ * @summary Get a single activity by ID
477
+ */
478
+ export declare const activitiesControllerFindOne: ({ guildId, id }: ActivitiesControllerFindOnePathParameters, options?: Parameters<typeof activityFetch>[1]) => Promise<ActivityResponseDto>;
479
+ export declare const getActivitiesControllerDeleteActivityUrl: ({ guildId, id }: ActivitiesControllerDeleteActivityPathParameters) => string;
480
+ /**
481
+ * @summary Delete a specific activity by ID
482
+ */
483
+ export declare const activitiesControllerDeleteActivity: ({ guildId, id }: ActivitiesControllerDeleteActivityPathParameters, options?: Parameters<typeof activityFetch>[1]) => Promise<DeleteActivityResponseDtoOutput>;
484
+ export declare const getUsersActivityControllerGetOnlineUrl: (params: UsersActivityControllerGetOnlineParams) => string;
485
+ /**
486
+ * An inclusive range of at most 112 Warsaw calendar dates. Only the latest 16 weeks of confirmed online intervals are retained.
487
+ * @summary Get the signed-in user's confirmed game online time by Warsaw calendar day
488
+ */
489
+ export declare const usersActivityControllerGetOnline: (params: UsersActivityControllerGetOnlineParams, options?: Parameters<typeof activityFetch>[1]) => Promise<UserOnlineResponseDto>;
490
+ //#endregion
491
+ //# sourceMappingURL=activity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity.d.ts","names":[],"sources":["../src/generated/activity.ts"],"mappings":";;YAQY,oDAAoD,wDAAwD;qBAG3G;WACX;WACA;;YAGU,sDAAsD,0DAA0D;qBAG/G;WACX;WACA;;YAGU;GAAkD;;YAElD,mEAAmE,uEAAuE;qBAGzI;WACX;WACA;;YAGU;EACV;EACA;EACA;EACA;;EAEA;;E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