@lootlog/sdk 0.2.0 → 0.3.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/dist/activity.d.ts +1 -2
- package/dist/activity.d.ts.map +1 -1
- package/dist/activity.js.map +1 -1
- package/dist/realtime.d.ts +3 -9
- package/dist/realtime.d.ts.map +1 -1
- package/dist/realtime.js +34 -119
- package/dist/realtime.js.map +1 -1
- package/openapi/activity.json +0 -1
- package/openapi/battlelog.json +15 -39
- package/package.json +3 -4
package/dist/activity.d.ts
CHANGED
|
@@ -432,9 +432,8 @@ export type UsersActivityControllerGetOnlineParams = {
|
|
|
432
432
|
to: string;
|
|
433
433
|
/**
|
|
434
434
|
* @minLength 1
|
|
435
|
-
* @nullable
|
|
436
435
|
*/
|
|
437
|
-
world?: string
|
|
436
|
+
world?: string;
|
|
438
437
|
};
|
|
439
438
|
export type UsersActivityControllerGetOnline401 = {
|
|
440
439
|
message: string;
|
package/dist/activity.d.ts.map
CHANGED
|
@@ -1 +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;;EAEA;EACA;EACA;EACA;EACA,QAAQ;;EAER;;YAGU;EACV;EACA;EACA;EACA;EACA,MAAM;EACN,QAAQ;;EAER;;EAEA;EACA,UAAU;EACV,gBAAgB;;iBAGD;EACf,MAAM;EACN;EACA;;iBAGe;EACf;;iBAGe;EACf;;iBAGe;EACf;;YAGU,8CAA8C,kDAAkD;qBAG/F;WACX;WACA;;iBAGe;EACf;EACA;EACA,QAAQ;;;;;EAKR;EACA;EACA;;EAEA;;EAEA;;YAGU,iCAAiC,qCAAqC;qBAGrE;WACX;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EACA;;;;;EAKA;;YAGY,gDAAgD,oDAAoD;qBAGnG;WACX;WACA;;YAGU,kDAAkD,sDAAsD;qBAGvG;WACX;WACA;;YAGU;EACV;;YAGU;EACV;;YAGU;EACV;;YAGU,qDAAqD,yDAAyD;qBAG7G;WACX;;YAGU;EACV;EACA,YAAY;;YAGF;EACX;;YAEW;EACV;;YAGU;EACV;;YAGU;EACV;;YAGU,iEAAiE,qEAAqE;qBAGrI;WACX;;YAGU;EACV;EACA,YAAY;;YAGF;EACX;EACG;;YAEQ;EACV;;YAGU;EACV;;YAGU;EACV;;YAGU,kDAAkD,sDAAsD;qBAGvG;WACX;;YAGU;EACV;EACA,YAAY;;YAGF;EACX;EACG;;YAEQ;EACV;;YAGU;EACV;;YAGU;EACV;;YAGU,yDAAyD,6DAA6D;qBAGrH;WACX;;YAGU;EACV;EACA,YAAY;;YAGF;EACZ;EACA
|
|
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;;EAEA;EACA;EACA;EACA;EACA,QAAQ;;EAER;;YAGU;EACV;EACA;EACA;EACA;EACA,MAAM;EACN,QAAQ;;EAER;;EAEA;EACA,UAAU;EACV,gBAAgB;;iBAGD;EACf,MAAM;EACN;EACA;;iBAGe;EACf;;iBAGe;EACf;;iBAGe;EACf;;YAGU,8CAA8C,kDAAkD;qBAG/F;WACX;WACA;;iBAGe;EACf;EACA;EACA,QAAQ;;;;;EAKR;EACA;EACA;;EAEA;;EAEA;;YAGU,iCAAiC,qCAAqC;qBAGrE;WACX;WACA;;YAGU,mCAAmC,uCAAuC;qBAGzE;WACX;WACA;;YAGU;GAA+B;;YAE/B,gDAAgD,oDAAoD;qBAGnG;WACX;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AqB;;;;qBAWtD,gCAA2B,SAAA,MAA2B,2CAAyC,UAAY,kBAAkB,sBAAoB,QAAQ;qBAazJ,6CAAwC,SAAA,MAAqB;;;;qBAW7D,uCAAkC,SAAA,MAA2B,kDAAgD,UAAY,kBAAkB,sBAAoB,QAAQ;qBAavK,yCAAsC,QAAY;;;;;qBAmBlD,mCAAgC,QAAkB,wCAAsC,UAAY,kBAAkB,sBAAoB,QAAQ"}
|
package/dist/activity.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity.js","names":[],"sources":["../src/generated/activity.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Activity Logger API\n * The Activity Logger API documentation\n * OpenAPI spec version: 1.0\n */\nimport { activityFetch } from '../mutators';\nexport type PaginatedActivitiesResponseDtoDataItemType = typeof PaginatedActivitiesResponseDtoDataItemType[keyof typeof PaginatedActivitiesResponseDtoDataItemType];\n\n\nexport const PaginatedActivitiesResponseDtoDataItemType = {\n CONNECT_EVENT: 'CONNECT_EVENT',\n DISCONNECT_EVENT: 'DISCONNECT_EVENT',\n} as const;\n\nexport type PaginatedActivitiesResponseDtoDataItemSource = typeof PaginatedActivitiesResponseDtoDataItemSource[keyof typeof PaginatedActivitiesResponseDtoDataItemSource];\n\n\nexport const PaginatedActivitiesResponseDtoDataItemSource = {\n GAME: 'GAME',\n WEB_APP: 'WEB_APP',\n} as const;\n\nexport type PaginatedActivitiesResponseDtoDataItemDetails = {[key: string]: unknown};\n\nexport type PaginatedActivitiesResponseDtoDataItemActorSnapshotSource = typeof PaginatedActivitiesResponseDtoDataItemActorSnapshotSource[keyof typeof PaginatedActivitiesResponseDtoDataItemActorSnapshotSource];\n\n\nexport const PaginatedActivitiesResponseDtoDataItemActorSnapshotSource = {\n GAME: 'GAME',\n WEB_APP: 'WEB_APP',\n} as const;\n\nexport type PaginatedActivitiesResponseDtoDataItemActorSnapshot = {\n id: string;\n accountId: number;\n characterId: number;\n name: string;\n /** @nullable */\n clanName?: string | null;\n /** @nullable */\n clanId?: number | null;\n icon: string;\n lvl: number;\n prof: string;\n source: PaginatedActivitiesResponseDtoDataItemActorSnapshotSource;\n /** @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))$ */\n createdAt: string;\n};\n\nexport type PaginatedActivitiesResponseDtoDataItem = {\n id: string;\n userId: string;\n guildId: string;\n discordId: string;\n type: PaginatedActivitiesResponseDtoDataItemType;\n source: PaginatedActivitiesResponseDtoDataItemSource;\n /** @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))$ */\n createdAt: string;\n /** @nullable */\n world?: string | null;\n details?: PaginatedActivitiesResponseDtoDataItemDetails;\n actorSnapshot?: PaginatedActivitiesResponseDtoDataItemActorSnapshot;\n};\n\nexport interface PaginatedActivitiesResponseDto {\n data: PaginatedActivitiesResponseDtoDataItem[];\n nextCursor?: string;\n hasMore: boolean;\n}\n\nexport interface ActorNameSuggestionsResponseDtoOutput {\n suggestions: string[];\n}\n\nexport interface WorldSuggestionsResponseDtoOutput {\n worlds: string[];\n}\n\nexport interface ClanNameSuggestionsResponseDtoOutput {\n suggestions: string[];\n}\n\nexport type MemberActivityStatsResponseDtoSource = typeof MemberActivityStatsResponseDtoSource[keyof typeof MemberActivityStatsResponseDtoSource];\n\n\nexport const MemberActivityStatsResponseDtoSource = {\n GAME: 'GAME',\n WEB_APP: 'WEB_APP',\n} as const;\n\nexport interface MemberActivityStatsResponseDto {\n guildId: string;\n discordId: string;\n source: MemberActivityStatsResponseDtoSource;\n /**\n * @nullable\n * @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))$\n */\n lastSeenAt?: string | null;\n visitCount: number;\n activeSessionCount: number;\n /** @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))$ */\n createdAt: string;\n /** @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))$ */\n updatedAt: string;\n}\n\nexport type ActivityResponseDtoType = typeof ActivityResponseDtoType[keyof typeof ActivityResponseDtoType];\n\n\nexport const ActivityResponseDtoType = {\n CONNECT_EVENT: 'CONNECT_EVENT',\n DISCONNECT_EVENT: 'DISCONNECT_EVENT',\n} as const;\n\nexport type ActivityResponseDtoSource = typeof ActivityResponseDtoSource[keyof typeof ActivityResponseDtoSource];\n\n\nexport const ActivityResponseDtoSource = {\n GAME: 'GAME',\n WEB_APP: 'WEB_APP',\n} as const;\n\nexport type ActivityResponseDtoDetails = {[key: string]: unknown};\n\nexport type ActivityResponseDtoActorSnapshotSource = typeof ActivityResponseDtoActorSnapshotSource[keyof typeof ActivityResponseDtoActorSnapshotSource];\n\n\nexport const ActivityResponseDtoActorSnapshotSource = {\n GAME: 'GAME',\n WEB_APP: 'WEB_APP',\n} as const;\n\nexport type ActivityResponseDtoActorSnapshot = {\n id: string;\n accountId: number;\n characterId: number;\n name: string;\n /** @nullable */\n clanName?: string | null;\n /** @nullable */\n clanId?: number | null;\n icon: string;\n lvl: number;\n prof: string;\n source: ActivityResponseDtoActorSnapshotSource;\n /** @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))$ */\n createdAt: string;\n};\n\nexport interface ActivityResponseDto {\n id: string;\n userId: string;\n guildId: string;\n discordId: string;\n type: ActivityResponseDtoType;\n source: ActivityResponseDtoSource;\n /** @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))$ */\n createdAt: string;\n /** @nullable */\n world?: string | null;\n details?: ActivityResponseDtoDetails;\n actorSnapshot?: ActivityResponseDtoActorSnapshot;\n}\n\nexport interface DeleteActivityResponseDtoOutput {\n count: number;\n}\n\nexport type UserOnlineResponseDtoTimezone = typeof UserOnlineResponseDtoTimezone[keyof typeof UserOnlineResponseDtoTimezone];\n\n\nexport const UserOnlineResponseDtoTimezone = {\n 'Europe/Warsaw': 'Europe/Warsaw',\n} as const;\n\nexport type UserOnlineResponseDtoStatus = typeof UserOnlineResponseDtoStatus[keyof typeof UserOnlineResponseDtoStatus];\n\n\nexport const UserOnlineResponseDtoStatus = {\n fresh: 'fresh',\n stale: 'stale',\n unavailable: 'unavailable',\n} as const;\n\nexport type UserOnlineResponseDtoDaysItem = {\n date: string;\n /** @nullable */\n onlineSeconds: number | null;\n partial: boolean;\n worlds: string[];\n worldsComplete: boolean;\n};\n\nexport interface UserOnlineResponseDto {\n timezone: UserOnlineResponseDtoTimezone;\n /**\n * @nullable\n * @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)))$\n */\n trackingStartedAt: string | null;\n /**\n * @nullable\n * @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)))$\n */\n lastObservedAt: string | null;\n status: UserOnlineResponseDtoStatus;\n /** @nullable */\n world: string | null;\n days: UserOnlineResponseDtoDaysItem[];\n}\n\nexport type ActivitiesControllerFindByGuildPathParameters = {\n guildId: string,\n }\nexport type ActivitiesControllerFindByGuildParams = {\ntype?: ActivitiesControllerFindByGuildTypeItem[];\nsource?: ActivitiesControllerFindByGuildSourceItem[];\nplayerName?: string;\nclanName?: string;\nworld?: string;\n/**\n * @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)))$\n */\nstartDate?: string;\n/**\n * @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)))$\n */\nendDate?: string;\ncursor?: string;\n/**\n * @minimum 1\n * @maximum 100\n */\nlimit?: number;\n};\n\nexport type ActivitiesControllerFindByGuildTypeItem = typeof ActivitiesControllerFindByGuildTypeItem[keyof typeof ActivitiesControllerFindByGuildTypeItem];\n\n\nexport const ActivitiesControllerFindByGuildTypeItem = {\n CONNECT_EVENT: 'CONNECT_EVENT',\n DISCONNECT_EVENT: 'DISCONNECT_EVENT',\n} as const;\n\nexport type ActivitiesControllerFindByGuildSourceItem = typeof ActivitiesControllerFindByGuildSourceItem[keyof typeof ActivitiesControllerFindByGuildSourceItem];\n\n\nexport const ActivitiesControllerFindByGuildSourceItem = {\n GAME: 'GAME',\n WEB_APP: 'WEB_APP',\n} as const;\n\nexport type ActivitiesControllerFindByGuild401 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindByGuild403 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindByGuild429 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindByGuild503StatusCode = typeof ActivitiesControllerFindByGuild503StatusCode[keyof typeof ActivitiesControllerFindByGuild503StatusCode];\n\n\nexport const ActivitiesControllerFindByGuild503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerFindByGuild503 = {\n message: string;\n statusCode: ActivitiesControllerFindByGuild503StatusCode;\n};\n\nexport type ActivitiesControllerSuggestActorNamesPathParameters = {\n guildId: string,\n }\nexport type ActivitiesControllerSuggestActorNamesParams = {\n/**\n * @maxLength 50\n */\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 50\n */\nlimit?: number;\n};\n\nexport type ActivitiesControllerSuggestActorNames401 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestActorNames403 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestActorNames429 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestActorNames503StatusCode = typeof ActivitiesControllerSuggestActorNames503StatusCode[keyof typeof ActivitiesControllerSuggestActorNames503StatusCode];\n\n\nexport const ActivitiesControllerSuggestActorNames503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerSuggestActorNames503 = {\n message: string;\n statusCode: ActivitiesControllerSuggestActorNames503StatusCode;\n};\n\nexport type ActivitiesControllerSuggestWorldsPathParameters = {\n guildId: string,\n }\nexport type ActivitiesControllerSuggestWorldsParams = {\n/**\n * @maxLength 50\n */\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 50\n */\nlimit?: number;\n};\n\nexport type ActivitiesControllerSuggestWorlds401 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestWorlds403 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestWorlds429 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestWorlds503StatusCode = typeof ActivitiesControllerSuggestWorlds503StatusCode[keyof typeof ActivitiesControllerSuggestWorlds503StatusCode];\n\n\nexport const ActivitiesControllerSuggestWorlds503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerSuggestWorlds503 = {\n message: string;\n statusCode: ActivitiesControllerSuggestWorlds503StatusCode;\n};\n\nexport type ActivitiesControllerSuggestClanNamesPathParameters = {\n guildId: string,\n }\nexport type ActivitiesControllerSuggestClanNamesParams = {\n/**\n * @maxLength 50\n */\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 50\n */\nlimit?: number;\n};\n\nexport type ActivitiesControllerSuggestClanNames401 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestClanNames403 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestClanNames429 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestClanNames503StatusCode = typeof ActivitiesControllerSuggestClanNames503StatusCode[keyof typeof ActivitiesControllerSuggestClanNames503StatusCode];\n\n\nexport const ActivitiesControllerSuggestClanNames503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerSuggestClanNames503 = {\n message: string;\n statusCode: ActivitiesControllerSuggestClanNames503StatusCode;\n};\n\nexport type ActivitiesControllerFindByUserPathParameters = {\n guildId: string,\n userId: string,\n }\nexport type ActivitiesControllerFindByUserParams = {\ntype?: ActivitiesControllerFindByUserTypeItem[];\nsource?: ActivitiesControllerFindByUserSourceItem[];\nplayerName?: string;\nclanName?: string;\nworld?: string;\n/**\n * @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)))$\n */\nstartDate?: string;\n/**\n * @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)))$\n */\nendDate?: string;\ncursor?: string;\n/**\n * @minimum 1\n * @maximum 100\n */\nlimit?: number;\n};\n\nexport type ActivitiesControllerFindByUserTypeItem = typeof ActivitiesControllerFindByUserTypeItem[keyof typeof ActivitiesControllerFindByUserTypeItem];\n\n\nexport const ActivitiesControllerFindByUserTypeItem = {\n CONNECT_EVENT: 'CONNECT_EVENT',\n DISCONNECT_EVENT: 'DISCONNECT_EVENT',\n} as const;\n\nexport type ActivitiesControllerFindByUserSourceItem = typeof ActivitiesControllerFindByUserSourceItem[keyof typeof ActivitiesControllerFindByUserSourceItem];\n\n\nexport const ActivitiesControllerFindByUserSourceItem = {\n GAME: 'GAME',\n WEB_APP: 'WEB_APP',\n} as const;\n\nexport type ActivitiesControllerFindByUser401 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindByUser403 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindByUser429 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindByUser503StatusCode = typeof ActivitiesControllerFindByUser503StatusCode[keyof typeof ActivitiesControllerFindByUser503StatusCode];\n\n\nexport const ActivitiesControllerFindByUser503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerFindByUser503 = {\n message: string;\n statusCode: ActivitiesControllerFindByUser503StatusCode;\n};\n\nexport type ActivitiesControllerGetMemberActivityStatsPathParameters = {\n guildId: string,\n }\nexport type ActivitiesControllerGetMemberActivityStats401 = {\n message: string;\n};\n\nexport type ActivitiesControllerGetMemberActivityStats403 = {\n message: string;\n};\n\nexport type ActivitiesControllerGetMemberActivityStats429 = {\n message: string;\n};\n\nexport type ActivitiesControllerGetMemberActivityStats503StatusCode = typeof ActivitiesControllerGetMemberActivityStats503StatusCode[keyof typeof ActivitiesControllerGetMemberActivityStats503StatusCode];\n\n\nexport const ActivitiesControllerGetMemberActivityStats503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerGetMemberActivityStats503 = {\n message: string;\n statusCode: ActivitiesControllerGetMemberActivityStats503StatusCode;\n};\n\nexport type ActivitiesControllerFindOnePathParameters = {\n guildId: string,\n id: string,\n }\nexport type ActivitiesControllerFindOne401 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindOne403 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindOne429 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindOne503StatusCode = typeof ActivitiesControllerFindOne503StatusCode[keyof typeof ActivitiesControllerFindOne503StatusCode];\n\n\nexport const ActivitiesControllerFindOne503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerFindOne503 = {\n message: string;\n statusCode: ActivitiesControllerFindOne503StatusCode;\n};\n\nexport type ActivitiesControllerDeleteActivityPathParameters = {\n guildId: string,\n id: string,\n }\nexport type ActivitiesControllerDeleteActivity401 = {\n message: string;\n};\n\nexport type ActivitiesControllerDeleteActivity403 = {\n message: string;\n};\n\nexport type ActivitiesControllerDeleteActivity429 = {\n message: string;\n};\n\nexport type ActivitiesControllerDeleteActivity503StatusCode = typeof ActivitiesControllerDeleteActivity503StatusCode[keyof typeof ActivitiesControllerDeleteActivity503StatusCode];\n\n\nexport const ActivitiesControllerDeleteActivity503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerDeleteActivity503 = {\n message: string;\n statusCode: ActivitiesControllerDeleteActivity503StatusCode;\n};\n\nexport type UsersActivityControllerGetOnlineParams = {\nfrom: string;\nto: string;\n/**\n * @minLength 1\n * @nullable\n */\nworld?: string | null;\n};\n\nexport type UsersActivityControllerGetOnline401 = {\n message: string;\n statusCode: 401;\n} | {\n message: string;\n};\n\nexport type UsersActivityControllerGetOnline403 = {\n message: string;\n};\n\nexport type UsersActivityControllerGetOnline429 = {\n message: string;\n};\n\nexport const getActivitiesControllerFindByGuildUrl = ({ guildId }: ActivitiesControllerFindByGuildPathParameters,\n params?: ActivitiesControllerFindByGuildParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"type\",\"source\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/guilds/${guildId}/activity-logs?${stringifiedParams}` : `/guilds/${guildId}/activity-logs`\n}\n\n/**\n * @summary Get activities for a specific guild\n */\nexport const activitiesControllerFindByGuild = async ({ guildId }: ActivitiesControllerFindByGuildPathParameters,\n params?: ActivitiesControllerFindByGuildParams, options?: Parameters<typeof activityFetch>[1]): Promise<PaginatedActivitiesResponseDto> => {\n\n return activityFetch<PaginatedActivitiesResponseDto>(getActivitiesControllerFindByGuildUrl({ guildId },params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getActivitiesControllerSuggestActorNamesUrl = ({ guildId }: ActivitiesControllerSuggestActorNamesPathParameters,\n params?: ActivitiesControllerSuggestActorNamesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/guilds/${guildId}/activity-logs/actor-name-suggestions?${stringifiedParams}` : `/guilds/${guildId}/activity-logs/actor-name-suggestions`\n}\n\n/**\n * @summary Get actor name suggestions for a guild\n */\nexport const activitiesControllerSuggestActorNames = async ({ guildId }: ActivitiesControllerSuggestActorNamesPathParameters,\n params?: ActivitiesControllerSuggestActorNamesParams, options?: Parameters<typeof activityFetch>[1]): Promise<ActorNameSuggestionsResponseDtoOutput> => {\n\n return activityFetch<ActorNameSuggestionsResponseDtoOutput>(getActivitiesControllerSuggestActorNamesUrl({ guildId },params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getActivitiesControllerSuggestWorldsUrl = ({ guildId }: ActivitiesControllerSuggestWorldsPathParameters,\n params?: ActivitiesControllerSuggestWorldsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/guilds/${guildId}/activity-logs/world-suggestions?${stringifiedParams}` : `/guilds/${guildId}/activity-logs/world-suggestions`\n}\n\n/**\n * @summary Get world suggestions for a guild\n */\nexport const activitiesControllerSuggestWorlds = async ({ guildId }: ActivitiesControllerSuggestWorldsPathParameters,\n params?: ActivitiesControllerSuggestWorldsParams, options?: Parameters<typeof activityFetch>[1]): Promise<WorldSuggestionsResponseDtoOutput> => {\n\n return activityFetch<WorldSuggestionsResponseDtoOutput>(getActivitiesControllerSuggestWorldsUrl({ guildId },params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getActivitiesControllerSuggestClanNamesUrl = ({ guildId }: ActivitiesControllerSuggestClanNamesPathParameters,\n params?: ActivitiesControllerSuggestClanNamesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/guilds/${guildId}/activity-logs/clan-name-suggestions?${stringifiedParams}` : `/guilds/${guildId}/activity-logs/clan-name-suggestions`\n}\n\n/**\n * @summary Get clan name suggestions for a guild\n */\nexport const activitiesControllerSuggestClanNames = async ({ guildId }: ActivitiesControllerSuggestClanNamesPathParameters,\n params?: ActivitiesControllerSuggestClanNamesParams, options?: Parameters<typeof activityFetch>[1]): Promise<ClanNameSuggestionsResponseDtoOutput> => {\n\n return activityFetch<ClanNameSuggestionsResponseDtoOutput>(getActivitiesControllerSuggestClanNamesUrl({ guildId },params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getActivitiesControllerFindByUserUrl = ({ guildId, userId }: ActivitiesControllerFindByUserPathParameters,\n params?: ActivitiesControllerFindByUserParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"type\",\"source\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/guilds/${guildId}/users/${userId}/activity-logs?${stringifiedParams}` : `/guilds/${guildId}/users/${userId}/activity-logs`\n}\n\n/**\n * @summary Get activities for a specific user in a guild\n */\nexport const activitiesControllerFindByUser = async ({ guildId, userId }: ActivitiesControllerFindByUserPathParameters,\n params?: ActivitiesControllerFindByUserParams, options?: Parameters<typeof activityFetch>[1]): Promise<PaginatedActivitiesResponseDto> => {\n\n return activityFetch<PaginatedActivitiesResponseDto>(getActivitiesControllerFindByUserUrl({ guildId, userId },params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getActivitiesControllerGetMemberActivityStatsUrl = ({ guildId }: ActivitiesControllerGetMemberActivityStatsPathParameters,) => {\n\n\n\n\n return `/guilds/${guildId}/member-activity-stats`\n}\n\n/**\n * @summary Get activity stats for guild members by source\n */\nexport const activitiesControllerGetMemberActivityStats = async ({ guildId }: ActivitiesControllerGetMemberActivityStatsPathParameters, options?: Parameters<typeof activityFetch>[1]): Promise<MemberActivityStatsResponseDto[]> => {\n\n return activityFetch<MemberActivityStatsResponseDto[]>(getActivitiesControllerGetMemberActivityStatsUrl({ guildId }),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getActivitiesControllerFindOneUrl = ({ guildId, id }: ActivitiesControllerFindOnePathParameters,) => {\n\n\n\n\n return `/guilds/${guildId}/activity-logs/${id}`\n}\n\n/**\n * @summary Get a single activity by ID\n */\nexport const activitiesControllerFindOne = async ({ guildId, id }: ActivitiesControllerFindOnePathParameters, options?: Parameters<typeof activityFetch>[1]): Promise<ActivityResponseDto> => {\n\n return activityFetch<ActivityResponseDto>(getActivitiesControllerFindOneUrl({ guildId, id }),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getActivitiesControllerDeleteActivityUrl = ({ guildId, id }: ActivitiesControllerDeleteActivityPathParameters,) => {\n\n\n\n\n return `/guilds/${guildId}/activity-logs/${id}`\n}\n\n/**\n * @summary Delete a specific activity by ID\n */\nexport const activitiesControllerDeleteActivity = async ({ guildId, id }: ActivitiesControllerDeleteActivityPathParameters, options?: Parameters<typeof activityFetch>[1]): Promise<DeleteActivityResponseDtoOutput> => {\n\n return activityFetch<DeleteActivityResponseDtoOutput>(getActivitiesControllerDeleteActivityUrl({ guildId, id }),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getUsersActivityControllerGetOnlineUrl = (params: UsersActivityControllerGetOnlineParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/users/@me/activity/online?${stringifiedParams}` : `/users/@me/activity/online`\n}\n\n/**\n * An inclusive range of at most 365 Warsaw calendar dates. Only the latest 365 days of confirmed online intervals are retained.\n * @summary Get the signed-in user's confirmed game online time by Warsaw calendar day\n */\nexport const usersActivityControllerGetOnline = async (params: UsersActivityControllerGetOnlineParams, options?: Parameters<typeof activityFetch>[1]): Promise<UserOnlineResponseDto> => {\n\n return activityFetch<UserOnlineResponseDto>(getUsersActivityControllerGetOnlineUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n"],"mappings":";;;;;;;;;AAWA,MAAa,6CAA6C;CACxD,eAAe;CACf,kBAAkB;AACpB;AAKA,MAAa,+CAA+C;CAC1D,MAAM;CACN,SAAS;AACX;AAOA,MAAa,4DAA4D;CACvE,MAAM;CACN,SAAS;AACX;AAuDA,MAAa,uCAAuC;CAClD,MAAM;CACN,SAAS;AACX;AAsBA,MAAa,0BAA0B;CACrC,eAAe;CACf,kBAAkB;AACpB;AAKA,MAAa,4BAA4B;CACvC,MAAM;CACN,SAAS;AACX;AAOA,MAAa,yCAAyC;CACpD,MAAM;CACN,SAAS;AACX;AAyCA,MAAa,gCAAgC,EAC3C,iBAAiB,gBACnB;AAKA,MAAa,8BAA8B;CACzC,OAAO;CACP,OAAO;CACP,aAAa;AACf;AAyDA,MAAa,0CAA0C;CACrD,eAAe;CACf,kBAAkB;AACpB;AAKA,MAAa,4CAA4C;CACvD,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AAAE;AAIF,MAAa,qCAAqC,EAAE,SAAS,SAAqD;CAKhH,OAAO,WAAW,QAAQ,iBAAiB;AAC7C;;;;AAKA,MAAa,8BAA8B,OAAO,EAAE,SAAS,MAAiD,YAAgF;CAE5L,OAAO,cAAmC,kCAAkC;EAAE;EAAS;CAAG,CAAC,GAC3F;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAIF,MAAa,4CAA4C,EAAE,SAAS,SAA4D;CAK9H,OAAO,WAAW,QAAQ,iBAAiB;AAC7C;;;;AAKA,MAAa,qCAAqC,OAAO,EAAE,SAAS,MAAwD,YAA4F;CAEtN,OAAO,cAA+C,yCAAyC;EAAE;EAAS;CAAG,CAAC,GAC9G;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAIF,MAAa,0CAA0C,WAAoD;CACzG,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,8BAA8B,sBAAsB;AAC5F;;;;;AAMA,MAAa,mCAAmC,OAAO,QAAgD,YAAkF;CAEvL,OAAO,cAAqC,uCAAuC,MAAM,GACzF;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
|
|
1
|
+
{"version":3,"file":"activity.js","names":[],"sources":["../src/generated/activity.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Activity Logger API\n * The Activity Logger API documentation\n * OpenAPI spec version: 1.0\n */\nimport { activityFetch } from '../mutators';\nexport type PaginatedActivitiesResponseDtoDataItemType = typeof PaginatedActivitiesResponseDtoDataItemType[keyof typeof PaginatedActivitiesResponseDtoDataItemType];\n\n\nexport const PaginatedActivitiesResponseDtoDataItemType = {\n CONNECT_EVENT: 'CONNECT_EVENT',\n DISCONNECT_EVENT: 'DISCONNECT_EVENT',\n} as const;\n\nexport type PaginatedActivitiesResponseDtoDataItemSource = typeof PaginatedActivitiesResponseDtoDataItemSource[keyof typeof PaginatedActivitiesResponseDtoDataItemSource];\n\n\nexport const PaginatedActivitiesResponseDtoDataItemSource = {\n GAME: 'GAME',\n WEB_APP: 'WEB_APP',\n} as const;\n\nexport type PaginatedActivitiesResponseDtoDataItemDetails = {[key: string]: unknown};\n\nexport type PaginatedActivitiesResponseDtoDataItemActorSnapshotSource = typeof PaginatedActivitiesResponseDtoDataItemActorSnapshotSource[keyof typeof PaginatedActivitiesResponseDtoDataItemActorSnapshotSource];\n\n\nexport const PaginatedActivitiesResponseDtoDataItemActorSnapshotSource = {\n GAME: 'GAME',\n WEB_APP: 'WEB_APP',\n} as const;\n\nexport type PaginatedActivitiesResponseDtoDataItemActorSnapshot = {\n id: string;\n accountId: number;\n characterId: number;\n name: string;\n /** @nullable */\n clanName?: string | null;\n /** @nullable */\n clanId?: number | null;\n icon: string;\n lvl: number;\n prof: string;\n source: PaginatedActivitiesResponseDtoDataItemActorSnapshotSource;\n /** @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))$ */\n createdAt: string;\n};\n\nexport type PaginatedActivitiesResponseDtoDataItem = {\n id: string;\n userId: string;\n guildId: string;\n discordId: string;\n type: PaginatedActivitiesResponseDtoDataItemType;\n source: PaginatedActivitiesResponseDtoDataItemSource;\n /** @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))$ */\n createdAt: string;\n /** @nullable */\n world?: string | null;\n details?: PaginatedActivitiesResponseDtoDataItemDetails;\n actorSnapshot?: PaginatedActivitiesResponseDtoDataItemActorSnapshot;\n};\n\nexport interface PaginatedActivitiesResponseDto {\n data: PaginatedActivitiesResponseDtoDataItem[];\n nextCursor?: string;\n hasMore: boolean;\n}\n\nexport interface ActorNameSuggestionsResponseDtoOutput {\n suggestions: string[];\n}\n\nexport interface WorldSuggestionsResponseDtoOutput {\n worlds: string[];\n}\n\nexport interface ClanNameSuggestionsResponseDtoOutput {\n suggestions: string[];\n}\n\nexport type MemberActivityStatsResponseDtoSource = typeof MemberActivityStatsResponseDtoSource[keyof typeof MemberActivityStatsResponseDtoSource];\n\n\nexport const MemberActivityStatsResponseDtoSource = {\n GAME: 'GAME',\n WEB_APP: 'WEB_APP',\n} as const;\n\nexport interface MemberActivityStatsResponseDto {\n guildId: string;\n discordId: string;\n source: MemberActivityStatsResponseDtoSource;\n /**\n * @nullable\n * @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))$\n */\n lastSeenAt?: string | null;\n visitCount: number;\n activeSessionCount: number;\n /** @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))$ */\n createdAt: string;\n /** @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))$ */\n updatedAt: string;\n}\n\nexport type ActivityResponseDtoType = typeof ActivityResponseDtoType[keyof typeof ActivityResponseDtoType];\n\n\nexport const ActivityResponseDtoType = {\n CONNECT_EVENT: 'CONNECT_EVENT',\n DISCONNECT_EVENT: 'DISCONNECT_EVENT',\n} as const;\n\nexport type ActivityResponseDtoSource = typeof ActivityResponseDtoSource[keyof typeof ActivityResponseDtoSource];\n\n\nexport const ActivityResponseDtoSource = {\n GAME: 'GAME',\n WEB_APP: 'WEB_APP',\n} as const;\n\nexport type ActivityResponseDtoDetails = {[key: string]: unknown};\n\nexport type ActivityResponseDtoActorSnapshotSource = typeof ActivityResponseDtoActorSnapshotSource[keyof typeof ActivityResponseDtoActorSnapshotSource];\n\n\nexport const ActivityResponseDtoActorSnapshotSource = {\n GAME: 'GAME',\n WEB_APP: 'WEB_APP',\n} as const;\n\nexport type ActivityResponseDtoActorSnapshot = {\n id: string;\n accountId: number;\n characterId: number;\n name: string;\n /** @nullable */\n clanName?: string | null;\n /** @nullable */\n clanId?: number | null;\n icon: string;\n lvl: number;\n prof: string;\n source: ActivityResponseDtoActorSnapshotSource;\n /** @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))$ */\n createdAt: string;\n};\n\nexport interface ActivityResponseDto {\n id: string;\n userId: string;\n guildId: string;\n discordId: string;\n type: ActivityResponseDtoType;\n source: ActivityResponseDtoSource;\n /** @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))$ */\n createdAt: string;\n /** @nullable */\n world?: string | null;\n details?: ActivityResponseDtoDetails;\n actorSnapshot?: ActivityResponseDtoActorSnapshot;\n}\n\nexport interface DeleteActivityResponseDtoOutput {\n count: number;\n}\n\nexport type UserOnlineResponseDtoTimezone = typeof UserOnlineResponseDtoTimezone[keyof typeof UserOnlineResponseDtoTimezone];\n\n\nexport const UserOnlineResponseDtoTimezone = {\n 'Europe/Warsaw': 'Europe/Warsaw',\n} as const;\n\nexport type UserOnlineResponseDtoStatus = typeof UserOnlineResponseDtoStatus[keyof typeof UserOnlineResponseDtoStatus];\n\n\nexport const UserOnlineResponseDtoStatus = {\n fresh: 'fresh',\n stale: 'stale',\n unavailable: 'unavailable',\n} as const;\n\nexport type UserOnlineResponseDtoDaysItem = {\n date: string;\n /** @nullable */\n onlineSeconds: number | null;\n partial: boolean;\n worlds: string[];\n worldsComplete: boolean;\n};\n\nexport interface UserOnlineResponseDto {\n timezone: UserOnlineResponseDtoTimezone;\n /**\n * @nullable\n * @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)))$\n */\n trackingStartedAt: string | null;\n /**\n * @nullable\n * @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)))$\n */\n lastObservedAt: string | null;\n status: UserOnlineResponseDtoStatus;\n /** @nullable */\n world: string | null;\n days: UserOnlineResponseDtoDaysItem[];\n}\n\nexport type ActivitiesControllerFindByGuildPathParameters = {\n guildId: string,\n }\nexport type ActivitiesControllerFindByGuildParams = {\ntype?: ActivitiesControllerFindByGuildTypeItem[];\nsource?: ActivitiesControllerFindByGuildSourceItem[];\nplayerName?: string;\nclanName?: string;\nworld?: string;\n/**\n * @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)))$\n */\nstartDate?: string;\n/**\n * @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)))$\n */\nendDate?: string;\ncursor?: string;\n/**\n * @minimum 1\n * @maximum 100\n */\nlimit?: number;\n};\n\nexport type ActivitiesControllerFindByGuildTypeItem = typeof ActivitiesControllerFindByGuildTypeItem[keyof typeof ActivitiesControllerFindByGuildTypeItem];\n\n\nexport const ActivitiesControllerFindByGuildTypeItem = {\n CONNECT_EVENT: 'CONNECT_EVENT',\n DISCONNECT_EVENT: 'DISCONNECT_EVENT',\n} as const;\n\nexport type ActivitiesControllerFindByGuildSourceItem = typeof ActivitiesControllerFindByGuildSourceItem[keyof typeof ActivitiesControllerFindByGuildSourceItem];\n\n\nexport const ActivitiesControllerFindByGuildSourceItem = {\n GAME: 'GAME',\n WEB_APP: 'WEB_APP',\n} as const;\n\nexport type ActivitiesControllerFindByGuild401 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindByGuild403 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindByGuild429 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindByGuild503StatusCode = typeof ActivitiesControllerFindByGuild503StatusCode[keyof typeof ActivitiesControllerFindByGuild503StatusCode];\n\n\nexport const ActivitiesControllerFindByGuild503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerFindByGuild503 = {\n message: string;\n statusCode: ActivitiesControllerFindByGuild503StatusCode;\n};\n\nexport type ActivitiesControllerSuggestActorNamesPathParameters = {\n guildId: string,\n }\nexport type ActivitiesControllerSuggestActorNamesParams = {\n/**\n * @maxLength 50\n */\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 50\n */\nlimit?: number;\n};\n\nexport type ActivitiesControllerSuggestActorNames401 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestActorNames403 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestActorNames429 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestActorNames503StatusCode = typeof ActivitiesControllerSuggestActorNames503StatusCode[keyof typeof ActivitiesControllerSuggestActorNames503StatusCode];\n\n\nexport const ActivitiesControllerSuggestActorNames503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerSuggestActorNames503 = {\n message: string;\n statusCode: ActivitiesControllerSuggestActorNames503StatusCode;\n};\n\nexport type ActivitiesControllerSuggestWorldsPathParameters = {\n guildId: string,\n }\nexport type ActivitiesControllerSuggestWorldsParams = {\n/**\n * @maxLength 50\n */\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 50\n */\nlimit?: number;\n};\n\nexport type ActivitiesControllerSuggestWorlds401 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestWorlds403 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestWorlds429 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestWorlds503StatusCode = typeof ActivitiesControllerSuggestWorlds503StatusCode[keyof typeof ActivitiesControllerSuggestWorlds503StatusCode];\n\n\nexport const ActivitiesControllerSuggestWorlds503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerSuggestWorlds503 = {\n message: string;\n statusCode: ActivitiesControllerSuggestWorlds503StatusCode;\n};\n\nexport type ActivitiesControllerSuggestClanNamesPathParameters = {\n guildId: string,\n }\nexport type ActivitiesControllerSuggestClanNamesParams = {\n/**\n * @maxLength 50\n */\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 50\n */\nlimit?: number;\n};\n\nexport type ActivitiesControllerSuggestClanNames401 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestClanNames403 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestClanNames429 = {\n message: string;\n};\n\nexport type ActivitiesControllerSuggestClanNames503StatusCode = typeof ActivitiesControllerSuggestClanNames503StatusCode[keyof typeof ActivitiesControllerSuggestClanNames503StatusCode];\n\n\nexport const ActivitiesControllerSuggestClanNames503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerSuggestClanNames503 = {\n message: string;\n statusCode: ActivitiesControllerSuggestClanNames503StatusCode;\n};\n\nexport type ActivitiesControllerFindByUserPathParameters = {\n guildId: string,\n userId: string,\n }\nexport type ActivitiesControllerFindByUserParams = {\ntype?: ActivitiesControllerFindByUserTypeItem[];\nsource?: ActivitiesControllerFindByUserSourceItem[];\nplayerName?: string;\nclanName?: string;\nworld?: string;\n/**\n * @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)))$\n */\nstartDate?: string;\n/**\n * @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)))$\n */\nendDate?: string;\ncursor?: string;\n/**\n * @minimum 1\n * @maximum 100\n */\nlimit?: number;\n};\n\nexport type ActivitiesControllerFindByUserTypeItem = typeof ActivitiesControllerFindByUserTypeItem[keyof typeof ActivitiesControllerFindByUserTypeItem];\n\n\nexport const ActivitiesControllerFindByUserTypeItem = {\n CONNECT_EVENT: 'CONNECT_EVENT',\n DISCONNECT_EVENT: 'DISCONNECT_EVENT',\n} as const;\n\nexport type ActivitiesControllerFindByUserSourceItem = typeof ActivitiesControllerFindByUserSourceItem[keyof typeof ActivitiesControllerFindByUserSourceItem];\n\n\nexport const ActivitiesControllerFindByUserSourceItem = {\n GAME: 'GAME',\n WEB_APP: 'WEB_APP',\n} as const;\n\nexport type ActivitiesControllerFindByUser401 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindByUser403 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindByUser429 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindByUser503StatusCode = typeof ActivitiesControllerFindByUser503StatusCode[keyof typeof ActivitiesControllerFindByUser503StatusCode];\n\n\nexport const ActivitiesControllerFindByUser503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerFindByUser503 = {\n message: string;\n statusCode: ActivitiesControllerFindByUser503StatusCode;\n};\n\nexport type ActivitiesControllerGetMemberActivityStatsPathParameters = {\n guildId: string,\n }\nexport type ActivitiesControllerGetMemberActivityStats401 = {\n message: string;\n};\n\nexport type ActivitiesControllerGetMemberActivityStats403 = {\n message: string;\n};\n\nexport type ActivitiesControllerGetMemberActivityStats429 = {\n message: string;\n};\n\nexport type ActivitiesControllerGetMemberActivityStats503StatusCode = typeof ActivitiesControllerGetMemberActivityStats503StatusCode[keyof typeof ActivitiesControllerGetMemberActivityStats503StatusCode];\n\n\nexport const ActivitiesControllerGetMemberActivityStats503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerGetMemberActivityStats503 = {\n message: string;\n statusCode: ActivitiesControllerGetMemberActivityStats503StatusCode;\n};\n\nexport type ActivitiesControllerFindOnePathParameters = {\n guildId: string,\n id: string,\n }\nexport type ActivitiesControllerFindOne401 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindOne403 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindOne429 = {\n message: string;\n};\n\nexport type ActivitiesControllerFindOne503StatusCode = typeof ActivitiesControllerFindOne503StatusCode[keyof typeof ActivitiesControllerFindOne503StatusCode];\n\n\nexport const ActivitiesControllerFindOne503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerFindOne503 = {\n message: string;\n statusCode: ActivitiesControllerFindOne503StatusCode;\n};\n\nexport type ActivitiesControllerDeleteActivityPathParameters = {\n guildId: string,\n id: string,\n }\nexport type ActivitiesControllerDeleteActivity401 = {\n message: string;\n};\n\nexport type ActivitiesControllerDeleteActivity403 = {\n message: string;\n};\n\nexport type ActivitiesControllerDeleteActivity429 = {\n message: string;\n};\n\nexport type ActivitiesControllerDeleteActivity503StatusCode = typeof ActivitiesControllerDeleteActivity503StatusCode[keyof typeof ActivitiesControllerDeleteActivity503StatusCode];\n\n\nexport const ActivitiesControllerDeleteActivity503StatusCode = {\n NUMBER_503: 503,\n} as const;\n\nexport type ActivitiesControllerDeleteActivity503 = {\n message: string;\n statusCode: ActivitiesControllerDeleteActivity503StatusCode;\n};\n\nexport type UsersActivityControllerGetOnlineParams = {\nfrom: string;\nto: string;\n/**\n * @minLength 1\n */\nworld?: string;\n};\n\nexport type UsersActivityControllerGetOnline401 = {\n message: string;\n statusCode: 401;\n} | {\n message: string;\n};\n\nexport type UsersActivityControllerGetOnline403 = {\n message: string;\n};\n\nexport type UsersActivityControllerGetOnline429 = {\n message: string;\n};\n\nexport const getActivitiesControllerFindByGuildUrl = ({ guildId }: ActivitiesControllerFindByGuildPathParameters,\n params?: ActivitiesControllerFindByGuildParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"type\",\"source\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/guilds/${guildId}/activity-logs?${stringifiedParams}` : `/guilds/${guildId}/activity-logs`\n}\n\n/**\n * @summary Get activities for a specific guild\n */\nexport const activitiesControllerFindByGuild = async ({ guildId }: ActivitiesControllerFindByGuildPathParameters,\n params?: ActivitiesControllerFindByGuildParams, options?: Parameters<typeof activityFetch>[1]): Promise<PaginatedActivitiesResponseDto> => {\n\n return activityFetch<PaginatedActivitiesResponseDto>(getActivitiesControllerFindByGuildUrl({ guildId },params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getActivitiesControllerSuggestActorNamesUrl = ({ guildId }: ActivitiesControllerSuggestActorNamesPathParameters,\n params?: ActivitiesControllerSuggestActorNamesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/guilds/${guildId}/activity-logs/actor-name-suggestions?${stringifiedParams}` : `/guilds/${guildId}/activity-logs/actor-name-suggestions`\n}\n\n/**\n * @summary Get actor name suggestions for a guild\n */\nexport const activitiesControllerSuggestActorNames = async ({ guildId }: ActivitiesControllerSuggestActorNamesPathParameters,\n params?: ActivitiesControllerSuggestActorNamesParams, options?: Parameters<typeof activityFetch>[1]): Promise<ActorNameSuggestionsResponseDtoOutput> => {\n\n return activityFetch<ActorNameSuggestionsResponseDtoOutput>(getActivitiesControllerSuggestActorNamesUrl({ guildId },params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getActivitiesControllerSuggestWorldsUrl = ({ guildId }: ActivitiesControllerSuggestWorldsPathParameters,\n params?: ActivitiesControllerSuggestWorldsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/guilds/${guildId}/activity-logs/world-suggestions?${stringifiedParams}` : `/guilds/${guildId}/activity-logs/world-suggestions`\n}\n\n/**\n * @summary Get world suggestions for a guild\n */\nexport const activitiesControllerSuggestWorlds = async ({ guildId }: ActivitiesControllerSuggestWorldsPathParameters,\n params?: ActivitiesControllerSuggestWorldsParams, options?: Parameters<typeof activityFetch>[1]): Promise<WorldSuggestionsResponseDtoOutput> => {\n\n return activityFetch<WorldSuggestionsResponseDtoOutput>(getActivitiesControllerSuggestWorldsUrl({ guildId },params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getActivitiesControllerSuggestClanNamesUrl = ({ guildId }: ActivitiesControllerSuggestClanNamesPathParameters,\n params?: ActivitiesControllerSuggestClanNamesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/guilds/${guildId}/activity-logs/clan-name-suggestions?${stringifiedParams}` : `/guilds/${guildId}/activity-logs/clan-name-suggestions`\n}\n\n/**\n * @summary Get clan name suggestions for a guild\n */\nexport const activitiesControllerSuggestClanNames = async ({ guildId }: ActivitiesControllerSuggestClanNamesPathParameters,\n params?: ActivitiesControllerSuggestClanNamesParams, options?: Parameters<typeof activityFetch>[1]): Promise<ClanNameSuggestionsResponseDtoOutput> => {\n\n return activityFetch<ClanNameSuggestionsResponseDtoOutput>(getActivitiesControllerSuggestClanNamesUrl({ guildId },params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getActivitiesControllerFindByUserUrl = ({ guildId, userId }: ActivitiesControllerFindByUserPathParameters,\n params?: ActivitiesControllerFindByUserParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"type\",\"source\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/guilds/${guildId}/users/${userId}/activity-logs?${stringifiedParams}` : `/guilds/${guildId}/users/${userId}/activity-logs`\n}\n\n/**\n * @summary Get activities for a specific user in a guild\n */\nexport const activitiesControllerFindByUser = async ({ guildId, userId }: ActivitiesControllerFindByUserPathParameters,\n params?: ActivitiesControllerFindByUserParams, options?: Parameters<typeof activityFetch>[1]): Promise<PaginatedActivitiesResponseDto> => {\n\n return activityFetch<PaginatedActivitiesResponseDto>(getActivitiesControllerFindByUserUrl({ guildId, userId },params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getActivitiesControllerGetMemberActivityStatsUrl = ({ guildId }: ActivitiesControllerGetMemberActivityStatsPathParameters,) => {\n\n\n\n\n return `/guilds/${guildId}/member-activity-stats`\n}\n\n/**\n * @summary Get activity stats for guild members by source\n */\nexport const activitiesControllerGetMemberActivityStats = async ({ guildId }: ActivitiesControllerGetMemberActivityStatsPathParameters, options?: Parameters<typeof activityFetch>[1]): Promise<MemberActivityStatsResponseDto[]> => {\n\n return activityFetch<MemberActivityStatsResponseDto[]>(getActivitiesControllerGetMemberActivityStatsUrl({ guildId }),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getActivitiesControllerFindOneUrl = ({ guildId, id }: ActivitiesControllerFindOnePathParameters,) => {\n\n\n\n\n return `/guilds/${guildId}/activity-logs/${id}`\n}\n\n/**\n * @summary Get a single activity by ID\n */\nexport const activitiesControllerFindOne = async ({ guildId, id }: ActivitiesControllerFindOnePathParameters, options?: Parameters<typeof activityFetch>[1]): Promise<ActivityResponseDto> => {\n\n return activityFetch<ActivityResponseDto>(getActivitiesControllerFindOneUrl({ guildId, id }),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getActivitiesControllerDeleteActivityUrl = ({ guildId, id }: ActivitiesControllerDeleteActivityPathParameters,) => {\n\n\n\n\n return `/guilds/${guildId}/activity-logs/${id}`\n}\n\n/**\n * @summary Delete a specific activity by ID\n */\nexport const activitiesControllerDeleteActivity = async ({ guildId, id }: ActivitiesControllerDeleteActivityPathParameters, options?: Parameters<typeof activityFetch>[1]): Promise<DeleteActivityResponseDtoOutput> => {\n\n return activityFetch<DeleteActivityResponseDtoOutput>(getActivitiesControllerDeleteActivityUrl({ guildId, id }),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getUsersActivityControllerGetOnlineUrl = (params: UsersActivityControllerGetOnlineParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/users/@me/activity/online?${stringifiedParams}` : `/users/@me/activity/online`\n}\n\n/**\n * An inclusive range of at most 365 Warsaw calendar dates. Only the latest 365 days of confirmed online intervals are retained.\n * @summary Get the signed-in user's confirmed game online time by Warsaw calendar day\n */\nexport const usersActivityControllerGetOnline = async (params: UsersActivityControllerGetOnlineParams, options?: Parameters<typeof activityFetch>[1]): Promise<UserOnlineResponseDto> => {\n\n return activityFetch<UserOnlineResponseDto>(get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EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,8BAA8B,sBAAsB;AAC5F;;;;;AAMA,MAAa,mCAAmC,OAAO,QAAgD,YAAkF;CAEvL,OAAO,cAAqC,uCAAuC,MAAM,GACzF;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
|
package/dist/realtime.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
//#region ../protocol/src/realtime/protocol.d.ts
|
|
3
|
-
export declare const REALTIME_SUBPROTOCOL = "lootlog.realtime.v1";
|
|
4
3
|
export declare const REALTIME_JSON_SUBPROTOCOL = "lootlog.realtime.json.v1";
|
|
5
4
|
declare const SubscriptionScope: Schema.Struct<{
|
|
6
5
|
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", "global.chat", "global.chat.world"]>;
|
|
@@ -1319,21 +1318,20 @@ type CommandData<Type extends CommandType> = Extract<ClientCommand, {
|
|
|
1319
1318
|
}>["data"];
|
|
1320
1319
|
type RealtimeConnectionState = "disconnected" | "connecting" | "connected" | "joining" | "ready" | "reconnecting";
|
|
1321
1320
|
interface RealtimeWebSocket {
|
|
1322
|
-
binaryType: BinaryType;
|
|
1323
1321
|
readonly readyState: number;
|
|
1324
1322
|
addEventListener(type: "open" | "close" | "error" | "message", listener: (event: {
|
|
1325
1323
|
readonly data?: unknown;
|
|
1326
1324
|
readonly code?: number;
|
|
1327
1325
|
}) => void): void;
|
|
1328
|
-
send(data: string
|
|
1326
|
+
send(data: string): void;
|
|
1329
1327
|
close(code?: number, reason?: string): void;
|
|
1330
1328
|
}
|
|
1331
1329
|
type RealtimeWebSocketFactory = (url: string, protocols?: string[]) => RealtimeWebSocket;
|
|
1332
1330
|
interface RealtimeClientOptions {
|
|
1333
1331
|
readonly url: string;
|
|
1334
1332
|
readonly path?: string;
|
|
1333
|
+
/** Capability subprotocols to offer next to `REALTIME_JSON_SUBPROTOCOL`. */
|
|
1335
1334
|
readonly protocols?: ReadonlyArray<string>;
|
|
1336
|
-
readonly frameEncoding?: "json" | "messagepack";
|
|
1337
1335
|
readonly requestTimeoutMs?: number;
|
|
1338
1336
|
readonly reconnectBaseDelayMs?: number;
|
|
1339
1337
|
readonly reconnectMaxDelayMs?: number;
|
|
@@ -1348,13 +1346,12 @@ export declare class RealtimeRequestError extends Error {
|
|
|
1348
1346
|
}
|
|
1349
1347
|
export declare class RealtimeClient {
|
|
1350
1348
|
private readonly url;
|
|
1351
|
-
private readonly protocols
|
|
1349
|
+
private readonly protocols;
|
|
1352
1350
|
private readonly requestTimeoutMs;
|
|
1353
1351
|
private readonly reconnectBaseDelayMs;
|
|
1354
1352
|
private readonly reconnectMaxDelayMs;
|
|
1355
1353
|
private readonly random;
|
|
1356
1354
|
private readonly webSocketFactory;
|
|
1357
|
-
private readonly frameEncoding;
|
|
1358
1355
|
private readonly eventListeners;
|
|
1359
1356
|
private readonly stateListeners;
|
|
1360
1357
|
private heartbeatLatencyMs;
|
|
@@ -1374,7 +1371,6 @@ export declare class RealtimeClient {
|
|
|
1374
1371
|
private pingSupported;
|
|
1375
1372
|
private latencyProbeInFlight;
|
|
1376
1373
|
private manuallyClosed;
|
|
1377
|
-
private messageChain;
|
|
1378
1374
|
private rejoinHandler;
|
|
1379
1375
|
constructor(options: RealtimeClientOptions);
|
|
1380
1376
|
get state(): RealtimeConnectionState;
|
|
@@ -1401,8 +1397,6 @@ export declare class RealtimeClient {
|
|
|
1401
1397
|
private performJoin;
|
|
1402
1398
|
private restoreSession;
|
|
1403
1399
|
private handleMessage;
|
|
1404
|
-
private encodeFrame;
|
|
1405
|
-
private decodeFrame;
|
|
1406
1400
|
private scheduleReconnect;
|
|
1407
1401
|
private scheduleHeartbeat;
|
|
1408
1402
|
private rejectPending;
|
package/dist/realtime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime.d.ts","names":[],"sources":["../../protocol/src/realtime/protocol.ts","../../client/src/realtime/realtime-client.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"realtime.d.ts","names":[],"sources":["../../protocol/src/realtime/protocol.ts","../../client/src/realtime/realtime-client.ts"],"mappings":";;qBAkIa;cAsDA,mBAAiB,OAAA;;;;;;;KAQlB,2BAA2B,kBAAkB;cAgC5C,eAAa,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;KAad,uBAAuB,cAAc;cAEpC,sBAAoB,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKrB,8BAA8B,qBAAqB;cAwLlD,eAAa,OAAA,gBAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmBd,uBAAuB,cAAc;cAgDpC,aAAW,OAAA,gBAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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mBACA;mBACA;mBACA;mBACA;mBACA;mBACA;UAGT;mBACS;mBAGA;mBACA;UACT;UACA;UACA;UACA;UAKA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;EAER,YAAY,SAAS;MAYjB,SAAS;MAIT;EAIJ;EAOA;EAYA,UAAU,WAAW,OAAO;EAM5B,eACE,WAAW,OAAO;EAQpB,0BACE,WAAW;;;;;EAYb;UAsBQ;EAUR,oBAAoB,gBAAgB;EAIpC,KAAK,MAAM,8BAA8B;EAMzC,eAAe,OAAO,oBAAoB;EAU1C,iBAAiB,OAAO,oBAAoB;EAU5C,QAAQ,aAAa,aACnB,MAAM,MACN,MAAM,YAAY,QACjB;UAIK;EA+CR,KAAK,aAAa,aAAa,MAAM,MAAM,MAAM,YAAY;UAcrD;UA0DA;UA+BM;UA6CN;UA6CA;UAqBA;UA4GA;UASA;UAaA;UAKA"}
|
package/dist/realtime.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Result, Schema, SchemaTransformation } from "effect";
|
|
1
|
+
import { Predicate, Result, Schema, SchemaTransformation } from "effect";
|
|
2
2
|
import * as Schema$1 from "effect/Schema";
|
|
3
3
|
import { TaggedError } from "effect/Schema";
|
|
4
4
|
import * as SchemaTransformation$1 from "effect/SchemaTransformation";
|
|
5
|
-
import { decode, encode } from "@msgpack/msgpack";
|
|
6
5
|
//#region ../schema/src/npc-type.ts
|
|
7
6
|
const NpcTypeEnum = {
|
|
8
7
|
COMMON: "COMMON",
|
|
@@ -169,16 +168,6 @@ const LootSourceSchema = Schema.Literals([
|
|
|
169
168
|
LootSourceEnum.DIALOG,
|
|
170
169
|
LootSourceEnum.FIGHT
|
|
171
170
|
]);
|
|
172
|
-
const LootShareSourceEnum = {
|
|
173
|
-
NONE: "NONE",
|
|
174
|
-
ITEM_OWNER: "ITEM_OWNER",
|
|
175
|
-
CHAT_MESSAGE: "CHAT_MESSAGE"
|
|
176
|
-
};
|
|
177
|
-
Schema.Literals([
|
|
178
|
-
LootShareSourceEnum.NONE,
|
|
179
|
-
LootShareSourceEnum.ITEM_OWNER,
|
|
180
|
-
LootShareSourceEnum.CHAT_MESSAGE
|
|
181
|
-
]);
|
|
182
171
|
const ProfessionEnum = {
|
|
183
172
|
WARRIOR: "WARRIOR",
|
|
184
173
|
PALADIN: "PALADIN",
|
|
@@ -195,74 +184,6 @@ const ProfessionSchema = Schema.Literals([
|
|
|
195
184
|
ProfessionEnum.BLADE_DANCER,
|
|
196
185
|
ProfessionEnum.TRACKER
|
|
197
186
|
]);
|
|
198
|
-
const ItemTypeEnum = {
|
|
199
|
-
ONE_HAND_WEAPON: "ONE_HAND_WEAPON",
|
|
200
|
-
TWO_HAND_WEAPON: "TWO_HAND_WEAPON",
|
|
201
|
-
ONE_AND_HALF_HAND_WEAPON: "ONE_AND_HALF_HAND_WEAPON",
|
|
202
|
-
DISTANCE_WEAPON: "DISTANCE_WEAPON",
|
|
203
|
-
HELP_WEAPON: "HELP_WEAPON",
|
|
204
|
-
WAND_WEAPON: "WAND_WEAPON",
|
|
205
|
-
ORB_WEAPON: "ORB_WEAPON",
|
|
206
|
-
ARMOR: "ARMOR",
|
|
207
|
-
HELMET: "HELMET",
|
|
208
|
-
BOOTS: "BOOTS",
|
|
209
|
-
GLOVES: "GLOVES",
|
|
210
|
-
RING: "RING",
|
|
211
|
-
NECKLACE: "NECKLACE",
|
|
212
|
-
SHIELD: "SHIELD",
|
|
213
|
-
NEUTRAL: "NEUTRAL",
|
|
214
|
-
CONSUME: "CONSUME",
|
|
215
|
-
GOLD: "GOLD",
|
|
216
|
-
KEYS: "KEYS",
|
|
217
|
-
QUEST: "QUEST",
|
|
218
|
-
RENEWABLE: "RENEWABLE",
|
|
219
|
-
ARROWS: "ARROWS",
|
|
220
|
-
TALISMAN: "TALISMAN",
|
|
221
|
-
BOOK: "BOOK",
|
|
222
|
-
BAG: "BAG",
|
|
223
|
-
BLESS: "BLESS",
|
|
224
|
-
UPGRADE: "UPGRADE",
|
|
225
|
-
RECIPE: "RECIPE",
|
|
226
|
-
COINAGE: "COINAGE",
|
|
227
|
-
QUIVER: "QUIVER",
|
|
228
|
-
OUTFITS: "OUTFITS",
|
|
229
|
-
PETS: "PETS",
|
|
230
|
-
TELEPORTS: "TELEPORTS"
|
|
231
|
-
};
|
|
232
|
-
Schema.Literals([
|
|
233
|
-
ItemTypeEnum.ONE_HAND_WEAPON,
|
|
234
|
-
ItemTypeEnum.TWO_HAND_WEAPON,
|
|
235
|
-
ItemTypeEnum.ONE_AND_HALF_HAND_WEAPON,
|
|
236
|
-
ItemTypeEnum.DISTANCE_WEAPON,
|
|
237
|
-
ItemTypeEnum.HELP_WEAPON,
|
|
238
|
-
ItemTypeEnum.WAND_WEAPON,
|
|
239
|
-
ItemTypeEnum.ORB_WEAPON,
|
|
240
|
-
ItemTypeEnum.ARMOR,
|
|
241
|
-
ItemTypeEnum.HELMET,
|
|
242
|
-
ItemTypeEnum.BOOTS,
|
|
243
|
-
ItemTypeEnum.GLOVES,
|
|
244
|
-
ItemTypeEnum.RING,
|
|
245
|
-
ItemTypeEnum.NECKLACE,
|
|
246
|
-
ItemTypeEnum.SHIELD,
|
|
247
|
-
ItemTypeEnum.NEUTRAL,
|
|
248
|
-
ItemTypeEnum.CONSUME,
|
|
249
|
-
ItemTypeEnum.GOLD,
|
|
250
|
-
ItemTypeEnum.KEYS,
|
|
251
|
-
ItemTypeEnum.QUEST,
|
|
252
|
-
ItemTypeEnum.RENEWABLE,
|
|
253
|
-
ItemTypeEnum.ARROWS,
|
|
254
|
-
ItemTypeEnum.TALISMAN,
|
|
255
|
-
ItemTypeEnum.BOOK,
|
|
256
|
-
ItemTypeEnum.BAG,
|
|
257
|
-
ItemTypeEnum.BLESS,
|
|
258
|
-
ItemTypeEnum.UPGRADE,
|
|
259
|
-
ItemTypeEnum.RECIPE,
|
|
260
|
-
ItemTypeEnum.COINAGE,
|
|
261
|
-
ItemTypeEnum.QUIVER,
|
|
262
|
-
ItemTypeEnum.OUTFITS,
|
|
263
|
-
ItemTypeEnum.PETS,
|
|
264
|
-
ItemTypeEnum.TELEPORTS
|
|
265
|
-
]);
|
|
266
187
|
//#endregion
|
|
267
188
|
//#region ../schema/src/http-scalars.ts
|
|
268
189
|
const FiniteNumber = Schema$1.Number.check(Schema$1.isFinite().annotate({ expected: "a finite number" }));
|
|
@@ -986,7 +907,6 @@ const ReservationChangedEventV2 = Schema.Struct({
|
|
|
986
907
|
});
|
|
987
908
|
const { feedEntry: _feedEntry, ...lootCreatedFields } = GuildLootCreatedMessageV2.fields;
|
|
988
909
|
const LootSnapshotEvent = Schema.Struct(lootCreatedFields);
|
|
989
|
-
const REALTIME_SUBPROTOCOL = "lootlog.realtime.v1";
|
|
990
910
|
const REALTIME_JSON_SUBPROTOCOL = "lootlog.realtime.json.v1";
|
|
991
911
|
const REALTIME_CLIENT_CLOSE_CODES = {
|
|
992
912
|
heartbeatTimeout: 4001,
|
|
@@ -1285,7 +1205,7 @@ const RealtimeFrame = Schema.Union([
|
|
|
1285
1205
|
]);
|
|
1286
1206
|
Schema.decodeUnknownSync(ClientCommand);
|
|
1287
1207
|
Schema.decodeUnknownSync(ServerEvent);
|
|
1288
|
-
|
|
1208
|
+
Schema.decodeUnknownSync(RealtimeFrame);
|
|
1289
1209
|
const serverEventTypes = new Set(ServerEvent.members.map((member) => member.fields.type.literal));
|
|
1290
1210
|
const isServerEventFrame = (frame) => "type" in frame && serverEventTypes.has(frame.type);
|
|
1291
1211
|
//#endregion
|
|
@@ -1301,7 +1221,7 @@ const tryEncodeFrame = (frame) => Result.try({
|
|
|
1301
1221
|
const validated = Schema.encodeUnknownSync(RealtimeFrame)(frame);
|
|
1302
1222
|
return {
|
|
1303
1223
|
frame: validated,
|
|
1304
|
-
|
|
1224
|
+
text: JSON.stringify(validated)
|
|
1305
1225
|
};
|
|
1306
1226
|
},
|
|
1307
1227
|
catch: (error) => new RealtimeCodecError({
|
|
@@ -1310,19 +1230,32 @@ const tryEncodeFrame = (frame) => Result.try({
|
|
|
1310
1230
|
cause: error
|
|
1311
1231
|
})
|
|
1312
1232
|
});
|
|
1313
|
-
const tryEncodeRealtimeFrame = (frame) => Result.map(tryEncodeFrame(frame), ({
|
|
1233
|
+
const tryEncodeRealtimeFrame = (frame) => Result.map(tryEncodeFrame(frame), ({ text }) => text);
|
|
1314
1234
|
const encodeRealtimeFrame = (frame) => Result.getOrThrow(tryEncodeRealtimeFrame(frame));
|
|
1315
|
-
const
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1235
|
+
const rejectProtoKey = (key, value) => {
|
|
1236
|
+
if (key === "__proto__") throw new Error("The key __proto__ is not allowed");
|
|
1237
|
+
return value;
|
|
1238
|
+
};
|
|
1239
|
+
/**
|
|
1240
|
+
* Whether a JSON text cannot have a `__proto__` key. A key can spell it only
|
|
1241
|
+
* literally or through a `\u` escape.
|
|
1242
|
+
*/
|
|
1243
|
+
const isWithoutProtoKey = (text) => !text.includes("__proto__") && !text.includes("\\u");
|
|
1244
|
+
/**
|
|
1245
|
+
* JSON-parse a realtime text, rejecting any `__proto__` key. The reviver makes
|
|
1246
|
+
* parsing several times slower, so it runs only when the text may need it.
|
|
1247
|
+
*/
|
|
1248
|
+
const parseRealtimeJson = (text) => isWithoutProtoKey(text) ? JSON.parse(text) : JSON.parse(text, rejectProtoKey);
|
|
1249
|
+
const tryDecode = (input) => Result.try({
|
|
1250
|
+
try: () => Schema.decodeUnknownSync(RealtimeFrame)(input()),
|
|
1320
1251
|
catch: (error) => new RealtimeCodecError({
|
|
1321
1252
|
operation: "decode",
|
|
1322
1253
|
message: getErrorMessage(error),
|
|
1323
1254
|
cause: error
|
|
1324
1255
|
})
|
|
1325
1256
|
});
|
|
1257
|
+
const tryDecodeRealtimeFrame = (text) => tryDecode(() => parseRealtimeJson(text));
|
|
1258
|
+
const decodeRealtimeFrame = (text) => Result.getOrThrow(tryDecodeRealtimeFrame(text));
|
|
1326
1259
|
Schema.decodeUnknownSync(PresenceSnapshot);
|
|
1327
1260
|
Schema.is(MapPingAckSchema);
|
|
1328
1261
|
Schema.is(LootSplitAckSchema);
|
|
@@ -1385,12 +1318,6 @@ const scopeKey = (scope) => JSON.stringify([
|
|
|
1385
1318
|
scope.world ?? null,
|
|
1386
1319
|
scope.mapId ?? null
|
|
1387
1320
|
]);
|
|
1388
|
-
const toBytes = async (data) => {
|
|
1389
|
-
if (data instanceof Uint8Array) return data;
|
|
1390
|
-
if (data instanceof ArrayBuffer) return new Uint8Array(data);
|
|
1391
|
-
if (data instanceof Blob) return new Uint8Array(await data.arrayBuffer());
|
|
1392
|
-
throw new Error("Gateway returned a non-binary realtime frame");
|
|
1393
|
-
};
|
|
1394
1321
|
const SERVER_CLOSE_CODES = new Set(Object.values(REALTIME_SERVER_CLOSE_CODES));
|
|
1395
1322
|
const getPresenceSessionId = (data) => {
|
|
1396
1323
|
if (!data || typeof data !== "object" || !("sessionId" in data)) return null;
|
|
@@ -1404,7 +1331,6 @@ var RealtimeClient = class {
|
|
|
1404
1331
|
reconnectMaxDelayMs;
|
|
1405
1332
|
random;
|
|
1406
1333
|
webSocketFactory;
|
|
1407
|
-
frameEncoding;
|
|
1408
1334
|
eventListeners = /* @__PURE__ */ new Set();
|
|
1409
1335
|
stateListeners = /* @__PURE__ */ new Set();
|
|
1410
1336
|
heartbeatLatencyMs = null;
|
|
@@ -1424,17 +1350,15 @@ var RealtimeClient = class {
|
|
|
1424
1350
|
pingSupported = false;
|
|
1425
1351
|
latencyProbeInFlight = false;
|
|
1426
1352
|
manuallyClosed = false;
|
|
1427
|
-
messageChain = Promise.resolve();
|
|
1428
1353
|
rejoinHandler = null;
|
|
1429
1354
|
constructor(options) {
|
|
1430
1355
|
this.url = normalizeUrl(options.url, options.path ?? "/ws");
|
|
1431
|
-
this.protocols =
|
|
1356
|
+
this.protocols = [.../* @__PURE__ */ new Set([REALTIME_JSON_SUBPROTOCOL, ...options.protocols ?? []])];
|
|
1432
1357
|
this.requestTimeoutMs = options.requestTimeoutMs ?? 2e4;
|
|
1433
1358
|
this.reconnectBaseDelayMs = options.reconnectBaseDelayMs ?? 1e3;
|
|
1434
1359
|
this.reconnectMaxDelayMs = options.reconnectMaxDelayMs ?? 3e4;
|
|
1435
1360
|
this.random = options.random ?? Math.random;
|
|
1436
1361
|
this.webSocketFactory = options.webSocketFactory ?? nativeWebSocketFactory;
|
|
1437
|
-
this.frameEncoding = options.frameEncoding ?? "messagepack";
|
|
1438
1362
|
}
|
|
1439
1363
|
get state() {
|
|
1440
1364
|
return this.stateValue;
|
|
@@ -1529,7 +1453,7 @@ var RealtimeClient = class {
|
|
|
1529
1453
|
timeout
|
|
1530
1454
|
});
|
|
1531
1455
|
try {
|
|
1532
|
-
activeSocket.send(
|
|
1456
|
+
activeSocket.send(encodeRealtimeFrame({
|
|
1533
1457
|
v: 1,
|
|
1534
1458
|
type,
|
|
1535
1459
|
requestId,
|
|
@@ -1545,7 +1469,7 @@ var RealtimeClient = class {
|
|
|
1545
1469
|
send(type, data) {
|
|
1546
1470
|
const activeSocket = this.socket;
|
|
1547
1471
|
if (!activeSocket || activeSocket.readyState !== WEBSOCKET_OPEN) return;
|
|
1548
|
-
activeSocket.send(
|
|
1472
|
+
activeSocket.send(encodeRealtimeFrame({
|
|
1549
1473
|
v: 1,
|
|
1550
1474
|
type,
|
|
1551
1475
|
data
|
|
@@ -1555,7 +1479,6 @@ var RealtimeClient = class {
|
|
|
1555
1479
|
this.setState(state);
|
|
1556
1480
|
if (this.manuallyClosed) return;
|
|
1557
1481
|
const socket = this.webSocketFactory(this.url, this.protocols);
|
|
1558
|
-
socket.binaryType = "arraybuffer";
|
|
1559
1482
|
this.socket = socket;
|
|
1560
1483
|
socket.addEventListener("open", () => {
|
|
1561
1484
|
if (this.socket !== socket) return;
|
|
@@ -1563,7 +1486,11 @@ var RealtimeClient = class {
|
|
|
1563
1486
|
if (this.joinData && (this.rejoinHandler || this.stateValue === "connected")) (this.rejoinHandler ?? (() => this.performJoin().then(() => void 0)))().catch(() => socket.close(REALTIME_CLIENT_CLOSE_CODES.sessionJoinFailed, "session rejoin failed"));
|
|
1564
1487
|
});
|
|
1565
1488
|
socket.addEventListener("message", (event) => {
|
|
1566
|
-
|
|
1489
|
+
try {
|
|
1490
|
+
this.handleMessage(event.data, socket);
|
|
1491
|
+
} catch {
|
|
1492
|
+
socket.close(REALTIME_CLIENT_CLOSE_CODES.malformedFrame, "malformed realtime frame");
|
|
1493
|
+
}
|
|
1567
1494
|
});
|
|
1568
1495
|
socket.addEventListener("close", (event) => {
|
|
1569
1496
|
if (this.socket !== socket) return;
|
|
@@ -1621,10 +1548,10 @@ var RealtimeClient = class {
|
|
|
1621
1548
|
if (this.joinAttempt?.socket === socket) this.joinAttempt = null;
|
|
1622
1549
|
}
|
|
1623
1550
|
}
|
|
1624
|
-
|
|
1625
|
-
if (this.socket !== socket) return;
|
|
1626
|
-
const frame = await this.decodeFrame(data);
|
|
1551
|
+
handleMessage(data, socket) {
|
|
1627
1552
|
if (this.socket !== socket) return;
|
|
1553
|
+
if (!Predicate.isString(data)) throw new Error("Gateway returned a non-text realtime frame");
|
|
1554
|
+
const frame = decodeRealtimeFrame(data);
|
|
1628
1555
|
if ("status" in frame) {
|
|
1629
1556
|
const pending = this.pending.get(frame.requestId);
|
|
1630
1557
|
if (!pending) return;
|
|
@@ -1643,18 +1570,6 @@ var RealtimeClient = class {
|
|
|
1643
1570
|
if (!isServerEventFrame(frame)) return;
|
|
1644
1571
|
notifyListeners(this.eventListeners, (listener) => listener(frame), `server event ${frame.type}`);
|
|
1645
1572
|
}
|
|
1646
|
-
encodeFrame(frame) {
|
|
1647
|
-
return this.frameEncoding === "json" ? JSON.stringify(frame) : encodeRealtimeFrame(frame);
|
|
1648
|
-
}
|
|
1649
|
-
async decodeFrame(data) {
|
|
1650
|
-
if (this.frameEncoding === "json") {
|
|
1651
|
-
if (typeof data !== "string") throw new Error("Gateway returned a non-text realtime frame");
|
|
1652
|
-
return decodeRealtimeFrame(JSON.parse(data));
|
|
1653
|
-
}
|
|
1654
|
-
const decoded = tryDecodeRealtimeFrame(await toBytes(data));
|
|
1655
|
-
if (Result.isFailure(decoded)) throw decoded.failure;
|
|
1656
|
-
return decoded.success;
|
|
1657
|
-
}
|
|
1658
1573
|
scheduleReconnect() {
|
|
1659
1574
|
this.reconnectAttempt += 1;
|
|
1660
1575
|
const exponential = Math.min(this.reconnectMaxDelayMs, this.reconnectBaseDelayMs * 2 ** (this.reconnectAttempt - 1));
|
|
@@ -1735,6 +1650,6 @@ var RealtimeClient = class {
|
|
|
1735
1650
|
}
|
|
1736
1651
|
};
|
|
1737
1652
|
//#endregion
|
|
1738
|
-
export { REALTIME_JSON_SUBPROTOCOL,
|
|
1653
|
+
export { REALTIME_JSON_SUBPROTOCOL, RealtimeClient, RealtimeRequestError };
|
|
1739
1654
|
|
|
1740
1655
|
//# sourceMappingURL=realtime.js.map
|