@idosgames/core 0.26.4 → 0.26.5

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.
@@ -4837,7 +4837,7 @@ declare const WorkshopAction: {
4837
4837
  readonly GetMyFavorites: "GetMyFavorites";
4838
4838
  };
4839
4839
  type WorkshopAction = (typeof WorkshopAction)[keyof typeof WorkshopAction];
4840
- type PlatformLoginResponse = { TitleUserID: string; TitleClientSessionTicket: string; TitleClientSessionTicketExpiration: string; PlatformUserID?: null | string; PlatformAuthToken?: null | string; PlatformAuthTokenExpiration?: null | string; PlayAccess?: null | PlayAccessStatus; RefreshToken?: null | string; RefreshTokenExpiration?: null | string; };
4840
+ type PlatformLoginResponse = { TitleUserID: string; TitleClientSessionTicket: string; TitleClientSessionTicketExpiration: string; PlatformUserID?: null | string; PlatformAuthToken?: null | string; PlatformAuthTokenExpiration?: null | string; PlayAccess?: null | PlayAccessStatus; RefreshToken?: null | string; RefreshTokenExpiration?: null | string; ClientState?: null | ClientState; };
4841
4841
  type RefreshSessionResponse = { TitleUserID: string; TitleClientSessionTicket: string; TitleClientSessionTicketExpiration: string; RefreshToken: string; RefreshTokenExpiration?: null | string; PlayAccess?: null | PlayAccessStatus; };
4842
4842
  type AuthOptionsResponse = { Google?: null | { Enabled?: null | boolean; WebClientID?: null | string; PlatformFallback?: null | boolean; AndroidClientID?: null | string; IosClientID?: null | string; DesktopClientID?: null | string; [key: string]: unknown; }; Apple?: null | { Enabled?: null | boolean; BundleID?: null | string; ServiceID?: null | string; [key: string]: unknown; }; PlayAccessMode?: null | 'Open' | 'AnyWithLinkedWallet' | 'WalletOnly'; WalletLoginNetworks?: null | Array<{ NetworkID?: null | string; Type?: null | string; [key: string]: unknown; }>; ShowWalletLogin?: null | boolean; NativeSso?: null | { ReturnMode?: null | string; UrlScheme?: null | string; UserCodeSupported?: null | boolean; PollIntervalSeconds?: null | number; [key: string]: unknown; }; [key: string]: unknown; };
4843
4843
  type WalletLinkResponse = { Linked?: null | boolean; Challenge?: null | string; ExpiresAt?: null | string; NetworkID?: null | string; Address?: null | string; PlayAccess?: null | PlayAccessStatus; [key: string]: unknown; };
@@ -4886,6 +4886,11 @@ interface AuthenticationRequest extends BaseRequest {
4886
4886
  SsoCode?: string;
4887
4887
  /** Game ticket of the iDos Games app's shared game session. See `AuthenticationAction.ResolvePlatformGameSession`. */
4888
4888
  PlatformGameTicket?: string;
4889
+ /**
4890
+ * Body of `User/GetClientStateExcept` the login runs right after itself and returns in
4891
+ * `PlatformLoginResponse.ClientState`. Read by `ResolvePlatformGameSession` only.
4892
+ */
4893
+ ClientState?: UserRequest;
4889
4894
  PlatformRefreshToken?: string;
4890
4895
  GoogleIDToken?: string;
4891
4896
  /** Sign in with Apple: the identity token Apple returned (web: `authorization.id_token`). */
@@ -6414,6 +6419,18 @@ declare class UserService {
6414
6419
  * refresh doesn't wipe the active board.
6415
6420
  */
6416
6421
  getClientStateExcept(excludeFields?: string[], excludeTitleFields?: string[]): Promise<OperationResult<ClientState>>;
6422
+ /**
6423
+ * Тело `GetClientStateExcept` ДО входа: его выполняет сам вход (`AuthenticationRequest.ClientState`,
6424
+ * пока только `ResolvePlatformGameSession`) — один запрос вместо двух на каждом свайпе ленты приложения
6425
+ * (11.11.2026). Игрок до входа неизвестен, поэтому версий контейнеров нет: сервер отдаёт состояние
6426
+ * целиком. `UserID`/тикета в теле нет, их даёт вход. Ответ — `finish` с `PlatformLoginResponse.ClientState`.
6427
+ */
6428
+ prepareLoginClientState(excludeFields?: string[], excludeTitleFields?: string[]): Promise<{
6429
+ request: UserRequest;
6430
+ finish: (data: ClientState) => Promise<OperationResult<ClientState>>;
6431
+ }>;
6432
+ private prepareClientStateExcept;
6433
+ private finishClientStateExcept;
6417
6434
  /**
6418
6435
  * Секции, которых нет в клиентской проекции конфига, но которые система дочитала своим
6419
6436
  * `GetDefinitions` (бусты, рынок, PvP, ИИ): поднимаются из хранилища, если конфиг с тех пор не
@@ -4837,7 +4837,7 @@ declare const WorkshopAction: {
4837
4837
  readonly GetMyFavorites: "GetMyFavorites";
4838
4838
  };
4839
4839
  type WorkshopAction = (typeof WorkshopAction)[keyof typeof WorkshopAction];
4840
- type PlatformLoginResponse = { TitleUserID: string; TitleClientSessionTicket: string; TitleClientSessionTicketExpiration: string; PlatformUserID?: null | string; PlatformAuthToken?: null | string; PlatformAuthTokenExpiration?: null | string; PlayAccess?: null | PlayAccessStatus; RefreshToken?: null | string; RefreshTokenExpiration?: null | string; };
4840
+ type PlatformLoginResponse = { TitleUserID: string; TitleClientSessionTicket: string; TitleClientSessionTicketExpiration: string; PlatformUserID?: null | string; PlatformAuthToken?: null | string; PlatformAuthTokenExpiration?: null | string; PlayAccess?: null | PlayAccessStatus; RefreshToken?: null | string; RefreshTokenExpiration?: null | string; ClientState?: null | ClientState; };
4841
4841
  type RefreshSessionResponse = { TitleUserID: string; TitleClientSessionTicket: string; TitleClientSessionTicketExpiration: string; RefreshToken: string; RefreshTokenExpiration?: null | string; PlayAccess?: null | PlayAccessStatus; };
4842
4842
  type AuthOptionsResponse = { Google?: null | { Enabled?: null | boolean; WebClientID?: null | string; PlatformFallback?: null | boolean; AndroidClientID?: null | string; IosClientID?: null | string; DesktopClientID?: null | string; [key: string]: unknown; }; Apple?: null | { Enabled?: null | boolean; BundleID?: null | string; ServiceID?: null | string; [key: string]: unknown; }; PlayAccessMode?: null | 'Open' | 'AnyWithLinkedWallet' | 'WalletOnly'; WalletLoginNetworks?: null | Array<{ NetworkID?: null | string; Type?: null | string; [key: string]: unknown; }>; ShowWalletLogin?: null | boolean; NativeSso?: null | { ReturnMode?: null | string; UrlScheme?: null | string; UserCodeSupported?: null | boolean; PollIntervalSeconds?: null | number; [key: string]: unknown; }; [key: string]: unknown; };
4843
4843
  type WalletLinkResponse = { Linked?: null | boolean; Challenge?: null | string; ExpiresAt?: null | string; NetworkID?: null | string; Address?: null | string; PlayAccess?: null | PlayAccessStatus; [key: string]: unknown; };
@@ -4886,6 +4886,11 @@ interface AuthenticationRequest extends BaseRequest {
4886
4886
  SsoCode?: string;
4887
4887
  /** Game ticket of the iDos Games app's shared game session. See `AuthenticationAction.ResolvePlatformGameSession`. */
4888
4888
  PlatformGameTicket?: string;
4889
+ /**
4890
+ * Body of `User/GetClientStateExcept` the login runs right after itself and returns in
4891
+ * `PlatformLoginResponse.ClientState`. Read by `ResolvePlatformGameSession` only.
4892
+ */
4893
+ ClientState?: UserRequest;
4889
4894
  PlatformRefreshToken?: string;
4890
4895
  GoogleIDToken?: string;
4891
4896
  /** Sign in with Apple: the identity token Apple returned (web: `authorization.id_token`). */
@@ -6414,6 +6419,18 @@ declare class UserService {
6414
6419
  * refresh doesn't wipe the active board.
6415
6420
  */
6416
6421
  getClientStateExcept(excludeFields?: string[], excludeTitleFields?: string[]): Promise<OperationResult<ClientState>>;
6422
+ /**
6423
+ * Тело `GetClientStateExcept` ДО входа: его выполняет сам вход (`AuthenticationRequest.ClientState`,
6424
+ * пока только `ResolvePlatformGameSession`) — один запрос вместо двух на каждом свайпе ленты приложения
6425
+ * (11.11.2026). Игрок до входа неизвестен, поэтому версий контейнеров нет: сервер отдаёт состояние
6426
+ * целиком. `UserID`/тикета в теле нет, их даёт вход. Ответ — `finish` с `PlatformLoginResponse.ClientState`.
6427
+ */
6428
+ prepareLoginClientState(excludeFields?: string[], excludeTitleFields?: string[]): Promise<{
6429
+ request: UserRequest;
6430
+ finish: (data: ClientState) => Promise<OperationResult<ClientState>>;
6431
+ }>;
6432
+ private prepareClientStateExcept;
6433
+ private finishClientStateExcept;
6417
6434
  /**
6418
6435
  * Секции, которых нет в клиентской проекции конфига, но которые система дочитала своим
6419
6436
  * `GetDefinitions` (бусты, рынок, PvP, ИИ): поднимаются из хранилища, если конфиг с тех пор не