@tsukilabs/nil-bindings 0.7.2 → 0.7.3

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.
@@ -0,0 +1,8 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { WorldId } from './WorldId';
5
+ export type LocalServer = {
6
+ world: WorldId;
7
+ addr: string;
8
+ };
@@ -0,0 +1,9 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ export type ServerAddr = {
5
+ "kind": "remote";
6
+ } | {
7
+ "kind": "local";
8
+ addr: string;
9
+ };
@@ -0,0 +1,16 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Password } from './Password';
5
+ import { PlayerId } from './PlayerId';
6
+ import { ServerAddr } from './ServerAddr';
7
+ import { Token } from './Token';
8
+ import { WorldId } from './WorldId';
9
+ export type ffi_UpdateClient = {
10
+ server: ServerAddr;
11
+ world_id?: WorldId | null;
12
+ world_password?: Password | null;
13
+ player_id?: PlayerId | null;
14
+ player_password?: Password | null;
15
+ authorization_token?: Token | null;
16
+ };
package/dist/index.d.ts CHANGED
@@ -142,6 +142,7 @@ export type { ffi_RequestId } from './ffi_RequestId';
142
142
  export type { ffi_Response } from './ffi_Response';
143
143
  export type { ffi_Result } from './ffi_Result';
144
144
  export { ffi_Status } from './ffi_Status';
145
+ export type { ffi_UpdateClient } from './ffi_UpdateClient';
145
146
  export type { Food } from './Food';
146
147
  export type { ForwardReportRequest } from './ForwardReportRequest';
147
148
  export type { GetAcademyRecruitCatalogRequest } from './GetAcademyRecruitCatalogRequest';
@@ -246,6 +247,7 @@ export type { Iron } from './Iron';
246
247
  export type { IronMine } from './IronMine';
247
248
  export type { LeaveRequest } from './LeaveRequest';
248
249
  export type { Locale } from './Locale';
250
+ export type { LocalServer } from './LocalServer';
249
251
  export type { Luck } from './Luck';
250
252
  export type { Maintenance } from './Maintenance';
251
253
  export type { Maneuver } from './Maneuver';
@@ -310,6 +312,7 @@ export type { SearchCityRequest } from './SearchCityRequest';
310
312
  export type { SearchCityResponse } from './SearchCityResponse';
311
313
  export type { SearchPublicCityRequest } from './SearchPublicCityRequest';
312
314
  export type { SearchPublicCityResponse } from './SearchPublicCityResponse';
315
+ export type { ServerAddr } from './ServerAddr';
313
316
  export type { ServerKind } from './ServerKind';
314
317
  export type { SetPlayerReadyRequest } from './SetPlayerReadyRequest';
315
318
  export type { SetPlayerReadyResponse } from './SetPlayerReadyResponse';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.7.2";
2
+ var version = "0.7.3";
3
3
  //#endregion
4
4
  //#region src/env_Var.ts
5
5
  var env_Var = /* @__PURE__ */ function(env_Var) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsukilabs/nil-bindings",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@11.17.0",
6
6
  "license": "AGPL-3.0-only",