@invonetwork/web-sdk 3.29.0 → 3.29.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.29.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Remix detection on Replit now uses `REPL_ID`: the same Repl keeps its project id when it moves from `*.replit.dev` (building) to `*.replit.app` (deployed), and `registerProject` re-registers the new webhook URL with the saved registration token. A different `REPL_ID` is a remix and gets a fresh project id. Outside Replit a changed public host still counts as a remix. The project file now records `replId`.
8
+ - `GET /catalog` adds `demo` (true on the public demo key) and `playerFields.phone` (`"hidden"` on the demo key, `"first_sign_in"` otherwise); `/health` and `invoGameServerFromEnv` also report `demo`. The UI kit hides the phone field when the catalog says so.
9
+ - Nothing removed or renamed.
10
+
3
11
  ## 3.29.0
4
12
 
5
13
  ### Minor Changes
@@ -0,0 +1,6 @@
1
+ // src/version.ts
2
+ var SDK_VERSION = "3.29.1";
3
+
4
+ export { SDK_VERSION };
5
+ //# sourceMappingURL=chunk-VOGZZ6QS.js.map
6
+ //# sourceMappingURL=chunk-VOGZZ6QS.js.map
@@ -1,5 +1,5 @@
1
1
  import { assertSecureBaseUrl, Http, toRequestPhoneChangeResult, toPhoneChangeRequest, receiptFields, creditFields, toLoyaltyCardsResult, toDestinationsResult } from './chunk-6CN236QH.js';
2
- import { SDK_VERSION } from './chunk-KZJABBVT.js';
2
+ import { SDK_VERSION } from './chunk-VOGZZ6QS.js';
3
3
  import { InvoError, buildGameEventBody, toReportGameEventResult } from './chunk-VP3OK4J4.js';
4
4
  import { createHmac, timingSafeEqual } from 'crypto';
5
5
 
@@ -3748,5 +3748,5 @@ var InvoServer = class {
3748
3748
  };
3749
3749
 
3750
3750
  export { CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, baseUrlForKey, createWebhookHandler, isDemoKey, isRefundPendingApproval, resolveEnvironment, verifyInvoSignature, verifyWebhook, verifyWebhookAsync };
3751
- //# sourceMappingURL=chunk-FJR44FKW.js.map
3752
- //# sourceMappingURL=chunk-FJR44FKW.js.map
3751
+ //# sourceMappingURL=chunk-YONO4JE5.js.map
3752
+ //# sourceMappingURL=chunk-YONO4JE5.js.map
@@ -1685,7 +1685,7 @@ function toPhoneChangeRequest(raw) {
1685
1685
  }
1686
1686
 
1687
1687
  // src/version.ts
1688
- var SDK_VERSION = "3.29.0";
1688
+ var SDK_VERSION = "3.29.1";
1689
1689
 
1690
1690
  // src/payouts.ts
1691
1691
  var AMOUNT = /^\d+(\.\d{1,2})?$/;
@@ -5334,17 +5334,26 @@ function writeFile(file, data) {
5334
5334
  fs.mkdirSync(path.dirname(file), { recursive: true });
5335
5335
  fs.writeFileSync(file, JSON.stringify(data, null, 2) + "\n", { encoding: "utf8", mode: 384 });
5336
5336
  }
5337
+ function currentReplId(override) {
5338
+ const v = override ?? (typeof process !== "undefined" ? process.env.REPL_ID : void 0);
5339
+ return v && v.trim() ? v.trim() : void 0;
5340
+ }
5341
+ function sameFork(saved, host, replId) {
5342
+ if (replId && saved.replId) return saved.replId === replId;
5343
+ return !host || !saved.host || saved.host === host;
5344
+ }
5337
5345
  function loadProject(opts = {}) {
5338
5346
  const file = opts.file ?? DEFAULT_PROJECT_FILE;
5347
+ const replId = currentReplId(opts.replId);
5339
5348
  if (opts.projectId) {
5340
5349
  if (!isValidProjectId(opts.projectId)) throw new Error('INVO_PROJECT_ID must be "proj_" + a 26-character ULID.');
5341
5350
  const saved2 = readFile(file);
5342
- return saved2 && saved2.projectId === opts.projectId ? saved2 : { projectId: opts.projectId };
5351
+ return saved2 && saved2.projectId === opts.projectId ? saved2 : { projectId: opts.projectId, replId };
5343
5352
  }
5344
5353
  const host = hostOf(opts.publicUrl);
5345
5354
  const saved = readFile(file);
5346
- if (saved && (!host || !saved.host || saved.host === host)) return saved;
5347
- const fresh = { projectId: newDemoProjectId(), host };
5355
+ if (saved && sameFork(saved, host, replId)) return replId && !saved.replId ? { ...saved, replId } : saved;
5356
+ const fresh = { projectId: newDemoProjectId(), host, replId };
5348
5357
  try {
5349
5358
  writeFile(file, fresh);
5350
5359
  } catch {
@@ -5356,7 +5365,8 @@ async function registerProject(opts) {
5356
5365
  const file = opts.file ?? DEFAULT_PROJECT_FILE;
5357
5366
  const fetchImpl = opts.fetch ?? ((input, init) => fetch(input, init));
5358
5367
  const base = (opts.baseUrl ?? SANDBOX_BASE_URL).replace(/\/+$/, "");
5359
- let project = loadProject({ file, publicUrl: opts.webhookUrl, projectId: opts.projectId });
5368
+ const replId = currentReplId(opts.replId);
5369
+ let project = loadProject({ file, publicUrl: opts.webhookUrl, projectId: opts.projectId, replId });
5360
5370
  for (let attempt = 0; attempt < 2; attempt++) {
5361
5371
  const res = await fetchImpl(base + "/api/demo/projects/register", {
5362
5372
  method: "POST",
@@ -5372,7 +5382,7 @@ async function registerProject(opts) {
5372
5382
  });
5373
5383
  const body = await res.json().catch(() => ({}));
5374
5384
  if (res.status === 409 && body.error_code === "PROJECT_REGISTERED" && attempt === 0 && !opts.projectId) {
5375
- project = { projectId: newDemoProjectId(), host: hostOf(opts.webhookUrl) };
5385
+ project = { projectId: newDemoProjectId(), host: hostOf(opts.webhookUrl), replId };
5376
5386
  continue;
5377
5387
  }
5378
5388
  if (!res.ok) throw new Error(`INVO demo registration failed (${res.status} ${body.error_code ?? ""}): ${body.error ?? ""}`.trim());
@@ -5381,12 +5391,13 @@ async function registerProject(opts) {
5381
5391
  project = {
5382
5392
  projectId: project.projectId,
5383
5393
  host: hostOf(opts.webhookUrl),
5394
+ replId,
5384
5395
  webhookUrl: opts.webhookUrl,
5385
5396
  webhookSecret: body.webhook?.signing_secret ?? project.webhookSecret,
5386
5397
  registrationToken: body.registration_token ?? project.registrationToken
5387
5398
  };
5388
5399
  } else {
5389
- project = { ...project, host: project.host ?? hostOf(opts.webhookUrl), webhookUrl: opts.webhookUrl };
5400
+ project = { ...project, host: hostOf(opts.webhookUrl) ?? project.host, replId: replId ?? project.replId, webhookUrl: opts.webhookUrl };
5390
5401
  }
5391
5402
  try {
5392
5403
  writeFile(file, project);
@@ -5573,7 +5584,9 @@ function createInvoGameServer(options) {
5573
5584
  premium: { name: economy.premium.name, packs: economy.premium.packs },
5574
5585
  soft: { name: economy.soft.name },
5575
5586
  items: economy.items,
5576
- sandbox: options.sandbox
5587
+ sandbox: options.sandbox,
5588
+ demo: !!options.demoProjectId,
5589
+ playerFields: { phone: options.demoProjectId ? "hidden" : "first_sign_in" }
5577
5590
  };
5578
5591
  return json(200, body);
5579
5592
  }
@@ -5904,7 +5917,7 @@ function createInvoGameServer(options) {
5904
5917
  }
5905
5918
  }
5906
5919
  async function route(request, sub, method) {
5907
- if (method === "GET" && sub === "/health") return json(200, { ok: true, setupRequired: false, sandbox: options.sandbox });
5920
+ if (method === "GET" && sub === "/health") return json(200, { ok: true, setupRequired: false, sandbox: options.sandbox, demo: !!options.demoProjectId });
5908
5921
  if (method === "GET" && sub === "/catalog") return catalog();
5909
5922
  if (method === "POST" && sub === "/session") return signIn(request);
5910
5923
  if (method === "POST" && sub === "/session/end") return signOut(request);
@@ -5958,7 +5971,7 @@ function invoGameServerFromEnv(options) {
5958
5971
  ...webhookSecrets.length ? [] : ["INVO_WEBHOOK_SECRET"]
5959
5972
  ];
5960
5973
  if (missing.length) {
5961
- return { server: setupRequiredServer(options.economy, missing, sandboxNow(), options.basePath), missing, sandbox: sandboxNow(), environment: envNow() };
5974
+ return { server: setupRequiredServer(options.economy, missing, sandboxNow(), options.basePath, demo), missing, sandbox: sandboxNow(), environment: envNow(), demo };
5962
5975
  }
5963
5976
  const baseFetch = options.fetch ?? ((input, init) => fetch(input, init));
5964
5977
  const projectId = demoProject?.projectId ?? ((options.projectId ?? env["INVO_PROJECT_ID"])?.trim() || void 0);
@@ -5993,7 +6006,7 @@ function invoGameServerFromEnv(options) {
5993
6006
  log: options.log
5994
6007
  };
5995
6008
  const server = createInvoGameServer(serverOptions);
5996
- return { server, missing, sandbox: sandboxNow(), environment: envNow() };
6009
+ return { server, missing, sandbox: sandboxNow(), environment: envNow(), demo };
5997
6010
  }
5998
6011
  function newProjectId(now = Date.now()) {
5999
6012
  const A = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
@@ -6008,7 +6021,7 @@ function newProjectId(now = Date.now()) {
6008
6021
  for (let i = 0; i < 16; i++) rand += A[bytes[i] % 32];
6009
6022
  return "proj_" + time + rand;
6010
6023
  }
6011
- function setupRequiredServer(economy, missing, sandbox, basePathOpt) {
6024
+ function setupRequiredServer(economy, missing, sandbox, basePathOpt, demo = false) {
6012
6025
  const basePath = (basePathOpt ?? "/api/invo").replace(/\/+$/, "");
6013
6026
  const message = `Add ${missing.join(" and ")} to your environment (on Replit: Tools \u2192 Secrets), then restart.`;
6014
6027
  return {
@@ -6017,9 +6030,9 @@ function setupRequiredServer(economy, missing, sandbox, basePathOpt) {
6017
6030
  const url = new URL(request.url);
6018
6031
  if (url.pathname !== basePath && !url.pathname.startsWith(basePath + "/")) return null;
6019
6032
  const sub = url.pathname.slice(basePath.length) || "/";
6020
- if (request.method === "GET" && sub === "/health") return json(200, { ok: true, setupRequired: true, missing, sandbox });
6033
+ if (request.method === "GET" && sub === "/health") return json(200, { ok: true, setupRequired: true, missing, sandbox, demo });
6021
6034
  if (request.method === "GET" && sub === "/catalog") {
6022
- const body = { premium: { name: economy.premium.name, packs: economy.premium.packs }, soft: { name: economy.soft.name }, items: economy.items, sandbox };
6035
+ const body = { premium: { name: economy.premium.name, packs: economy.premium.packs }, soft: { name: economy.soft.name }, items: economy.items, sandbox, demo, playerFields: { phone: demo ? "hidden" : "first_sign_in" } };
6023
6036
  return json(200, body);
6024
6037
  }
6025
6038
  return json(503, { error: { code: "INVO_SETUP_REQUIRED", message } });
@@ -1,9 +1,9 @@
1
- import { I as InvoServer, a as InvoEnvironment } from './server-UZ38eD2p.cjs';
2
- export { D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, P as PRODUCTION_BASE_URL, S as SANDBOX_BASE_URL, b as baseUrlForKey, i as isDemoKey, r as resolveEnvironment, v as verifyInvoSignature } from './server-UZ38eD2p.cjs';
3
- import { G as GameCurrencyKind, a as GamePurchaseStatus, b as GameEconomyConfig } from './types-CoW9LopI.cjs';
4
- export { c as GameCatalog, d as GameCatalogItem, e as GameCheckout, f as GameCurrencyBalance, g as GameErrorBody, h as GameItemPurchase, i as GamePlayer, j as GamePremiumPack, k as GamePurchase, l as GameSession, m as GameWallet } from './types-CoW9LopI.cjs';
1
+ import { I as InvoServer, a as InvoEnvironment } from './server-Bxo_wgHx.cjs';
2
+ export { D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, P as PRODUCTION_BASE_URL, S as SANDBOX_BASE_URL, b as baseUrlForKey, i as isDemoKey, r as resolveEnvironment, v as verifyInvoSignature } from './server-Bxo_wgHx.cjs';
3
+ import { G as GameCurrencyKind, a as GamePurchaseStatus, b as GameEconomyConfig } from './types-CLyJDuXd.cjs';
4
+ export { c as GameCatalog, d as GameCatalogItem, e as GameCheckout, f as GameCurrencyBalance, g as GameErrorBody, h as GameItemPurchase, i as GamePlayer, j as GamePremiumPack, k as GamePurchase, l as GameSession, m as GameWallet } from './types-CLyJDuXd.cjs';
5
5
  export { I as InvoError } from './types-_lIm74kd.cjs';
6
- export { S as SDK_VERSION } from './version-xyYQO5hp.cjs';
6
+ export { S as SDK_VERSION } from './version-DOaYbHu7.cjs';
7
7
 
8
8
  interface StoredPlayer {
9
9
  id: string;
@@ -171,6 +171,8 @@ interface InvoGameServerSetup {
171
171
  sandbox: boolean;
172
172
  /** `"sandbox"`, `"production"`, or `"resolving"` while a key's environment is being looked up. */
173
173
  environment: InvoEnvironment | "resolving";
174
+ /** True when the key is INVO's public demo key (3.29.1). */
175
+ demo: boolean;
174
176
  }
175
177
  /**
176
178
  * Build the game server from environment variables (Replit Secrets, `.env`, your host's
@@ -214,8 +216,10 @@ declare const DEFAULT_PROJECT_FILE = ".invo/project.json";
214
216
  /** What the project file holds. Secrets: keep the file out of version control. */
215
217
  interface DemoProjectFile {
216
218
  projectId: string;
217
- /** The public host the project was registered from (remix detection). */
219
+ /** The public host the project was registered from (remix detection outside Replit). */
218
220
  host?: string;
221
+ /** Replit's REPL_ID when the file was written. A different REPL_ID means a remix. */
222
+ replId?: string;
219
223
  webhookUrl?: string;
220
224
  webhookSecret?: string;
221
225
  registrationToken?: string;
@@ -230,13 +234,13 @@ declare function toDemoEmail(email: string, projectId: string): string;
230
234
  declare function demoPhoneFor(email: string): string;
231
235
  /**
232
236
  * This fork's project, from `INVO_PROJECT_ID`, else the project file, else a new id written to
233
- * the file. When `publicUrl`'s host differs from the host the file was registered from, the file
234
- * was copied by a remix: a fresh project id replaces it.
237
+ * the file. A project file copied by a remix (see `sameFork`) is replaced by a fresh project id.
235
238
  */
236
239
  declare function loadProject(opts?: {
237
240
  file?: string;
238
241
  publicUrl?: string;
239
242
  projectId?: string;
243
+ replId?: string;
240
244
  }): DemoProjectFile;
241
245
  interface RegisterProjectOptions {
242
246
  /** The public demo key (`ivsdk_demo_...`). */
@@ -247,6 +251,8 @@ interface RegisterProjectOptions {
247
251
  projectId?: string;
248
252
  baseUrl?: string;
249
253
  fetch?: typeof fetch;
254
+ /** Overrides Replit's REPL_ID (tests). */
255
+ replId?: string;
250
256
  }
251
257
  interface RegisteredProject {
252
258
  projectId: string;
@@ -1,9 +1,9 @@
1
- import { I as InvoServer, a as InvoEnvironment } from './server-Dnx5jxS4.js';
2
- export { D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, P as PRODUCTION_BASE_URL, S as SANDBOX_BASE_URL, b as baseUrlForKey, i as isDemoKey, r as resolveEnvironment, v as verifyInvoSignature } from './server-Dnx5jxS4.js';
3
- import { G as GameCurrencyKind, a as GamePurchaseStatus, b as GameEconomyConfig } from './types-CoW9LopI.js';
4
- export { c as GameCatalog, d as GameCatalogItem, e as GameCheckout, f as GameCurrencyBalance, g as GameErrorBody, h as GameItemPurchase, i as GamePlayer, j as GamePremiumPack, k as GamePurchase, l as GameSession, m as GameWallet } from './types-CoW9LopI.js';
1
+ import { I as InvoServer, a as InvoEnvironment } from './server-BYY6tM6X.js';
2
+ export { D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, P as PRODUCTION_BASE_URL, S as SANDBOX_BASE_URL, b as baseUrlForKey, i as isDemoKey, r as resolveEnvironment, v as verifyInvoSignature } from './server-BYY6tM6X.js';
3
+ import { G as GameCurrencyKind, a as GamePurchaseStatus, b as GameEconomyConfig } from './types-CLyJDuXd.js';
4
+ export { c as GameCatalog, d as GameCatalogItem, e as GameCheckout, f as GameCurrencyBalance, g as GameErrorBody, h as GameItemPurchase, i as GamePlayer, j as GamePremiumPack, k as GamePurchase, l as GameSession, m as GameWallet } from './types-CLyJDuXd.js';
5
5
  export { I as InvoError } from './types-_lIm74kd.js';
6
- export { S as SDK_VERSION } from './version-xyYQO5hp.js';
6
+ export { S as SDK_VERSION } from './version-DOaYbHu7.js';
7
7
 
8
8
  interface StoredPlayer {
9
9
  id: string;
@@ -171,6 +171,8 @@ interface InvoGameServerSetup {
171
171
  sandbox: boolean;
172
172
  /** `"sandbox"`, `"production"`, or `"resolving"` while a key's environment is being looked up. */
173
173
  environment: InvoEnvironment | "resolving";
174
+ /** True when the key is INVO's public demo key (3.29.1). */
175
+ demo: boolean;
174
176
  }
175
177
  /**
176
178
  * Build the game server from environment variables (Replit Secrets, `.env`, your host's
@@ -214,8 +216,10 @@ declare const DEFAULT_PROJECT_FILE = ".invo/project.json";
214
216
  /** What the project file holds. Secrets: keep the file out of version control. */
215
217
  interface DemoProjectFile {
216
218
  projectId: string;
217
- /** The public host the project was registered from (remix detection). */
219
+ /** The public host the project was registered from (remix detection outside Replit). */
218
220
  host?: string;
221
+ /** Replit's REPL_ID when the file was written. A different REPL_ID means a remix. */
222
+ replId?: string;
219
223
  webhookUrl?: string;
220
224
  webhookSecret?: string;
221
225
  registrationToken?: string;
@@ -230,13 +234,13 @@ declare function toDemoEmail(email: string, projectId: string): string;
230
234
  declare function demoPhoneFor(email: string): string;
231
235
  /**
232
236
  * This fork's project, from `INVO_PROJECT_ID`, else the project file, else a new id written to
233
- * the file. When `publicUrl`'s host differs from the host the file was registered from, the file
234
- * was copied by a remix: a fresh project id replaces it.
237
+ * the file. A project file copied by a remix (see `sameFork`) is replaced by a fresh project id.
235
238
  */
236
239
  declare function loadProject(opts?: {
237
240
  file?: string;
238
241
  publicUrl?: string;
239
242
  projectId?: string;
243
+ replId?: string;
240
244
  }): DemoProjectFile;
241
245
  interface RegisterProjectOptions {
242
246
  /** The public demo key (`ivsdk_demo_...`). */
@@ -247,6 +251,8 @@ interface RegisterProjectOptions {
247
251
  projectId?: string;
248
252
  baseUrl?: string;
249
253
  fetch?: typeof fetch;
254
+ /** Overrides Replit's REPL_ID (tests). */
255
+ replId?: string;
250
256
  }
251
257
  interface RegisteredProject {
252
258
  projectId: string;
@@ -1,7 +1,7 @@
1
- import { isDemoKey, SANDBOX_BASE_URL, PRODUCTION_BASE_URL, InvoServer, resolveEnvironment, verifyWebhook } from './chunk-FJR44FKW.js';
2
- export { DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, PRODUCTION_BASE_URL, SANDBOX_BASE_URL, baseUrlForKey, isDemoKey, resolveEnvironment, verifyInvoSignature } from './chunk-FJR44FKW.js';
1
+ import { isDemoKey, SANDBOX_BASE_URL, PRODUCTION_BASE_URL, InvoServer, resolveEnvironment, verifyWebhook } from './chunk-YONO4JE5.js';
2
+ export { DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, PRODUCTION_BASE_URL, SANDBOX_BASE_URL, baseUrlForKey, isDemoKey, resolveEnvironment, verifyInvoSignature } from './chunk-YONO4JE5.js';
3
3
  import './chunk-6CN236QH.js';
4
- export { SDK_VERSION } from './chunk-KZJABBVT.js';
4
+ export { SDK_VERSION } from './chunk-VOGZZ6QS.js';
5
5
  import { InvoError } from './chunk-VP3OK4J4.js';
6
6
  export { InvoError } from './chunk-VP3OK4J4.js';
7
7
  import { createHash, randomBytes } from 'crypto';
@@ -60,17 +60,26 @@ function writeFile(file, data) {
60
60
  mkdirSync(dirname(file), { recursive: true });
61
61
  writeFileSync(file, JSON.stringify(data, null, 2) + "\n", { encoding: "utf8", mode: 384 });
62
62
  }
63
+ function currentReplId(override) {
64
+ const v = override ?? (typeof process !== "undefined" ? process.env.REPL_ID : void 0);
65
+ return v && v.trim() ? v.trim() : void 0;
66
+ }
67
+ function sameFork(saved, host, replId) {
68
+ if (replId && saved.replId) return saved.replId === replId;
69
+ return !host || !saved.host || saved.host === host;
70
+ }
63
71
  function loadProject(opts = {}) {
64
72
  const file = opts.file ?? DEFAULT_PROJECT_FILE;
73
+ const replId = currentReplId(opts.replId);
65
74
  if (opts.projectId) {
66
75
  if (!isValidProjectId(opts.projectId)) throw new Error('INVO_PROJECT_ID must be "proj_" + a 26-character ULID.');
67
76
  const saved2 = readFile(file);
68
- return saved2 && saved2.projectId === opts.projectId ? saved2 : { projectId: opts.projectId };
77
+ return saved2 && saved2.projectId === opts.projectId ? saved2 : { projectId: opts.projectId, replId };
69
78
  }
70
79
  const host = hostOf(opts.publicUrl);
71
80
  const saved = readFile(file);
72
- if (saved && (!host || !saved.host || saved.host === host)) return saved;
73
- const fresh = { projectId: newDemoProjectId(), host };
81
+ if (saved && sameFork(saved, host, replId)) return replId && !saved.replId ? { ...saved, replId } : saved;
82
+ const fresh = { projectId: newDemoProjectId(), host, replId };
74
83
  try {
75
84
  writeFile(file, fresh);
76
85
  } catch {
@@ -82,7 +91,8 @@ async function registerProject(opts) {
82
91
  const file = opts.file ?? DEFAULT_PROJECT_FILE;
83
92
  const fetchImpl = opts.fetch ?? ((input, init) => fetch(input, init));
84
93
  const base = (opts.baseUrl ?? SANDBOX_BASE_URL).replace(/\/+$/, "");
85
- let project = loadProject({ file, publicUrl: opts.webhookUrl, projectId: opts.projectId });
94
+ const replId = currentReplId(opts.replId);
95
+ let project = loadProject({ file, publicUrl: opts.webhookUrl, projectId: opts.projectId, replId });
86
96
  for (let attempt = 0; attempt < 2; attempt++) {
87
97
  const res = await fetchImpl(base + "/api/demo/projects/register", {
88
98
  method: "POST",
@@ -98,7 +108,7 @@ async function registerProject(opts) {
98
108
  });
99
109
  const body = await res.json().catch(() => ({}));
100
110
  if (res.status === 409 && body.error_code === "PROJECT_REGISTERED" && attempt === 0 && !opts.projectId) {
101
- project = { projectId: newDemoProjectId(), host: hostOf(opts.webhookUrl) };
111
+ project = { projectId: newDemoProjectId(), host: hostOf(opts.webhookUrl), replId };
102
112
  continue;
103
113
  }
104
114
  if (!res.ok) throw new Error(`INVO demo registration failed (${res.status} ${body.error_code ?? ""}): ${body.error ?? ""}`.trim());
@@ -107,12 +117,13 @@ async function registerProject(opts) {
107
117
  project = {
108
118
  projectId: project.projectId,
109
119
  host: hostOf(opts.webhookUrl),
120
+ replId,
110
121
  webhookUrl: opts.webhookUrl,
111
122
  webhookSecret: body.webhook?.signing_secret ?? project.webhookSecret,
112
123
  registrationToken: body.registration_token ?? project.registrationToken
113
124
  };
114
125
  } else {
115
- project = { ...project, host: project.host ?? hostOf(opts.webhookUrl), webhookUrl: opts.webhookUrl };
126
+ project = { ...project, host: hostOf(opts.webhookUrl) ?? project.host, replId: replId ?? project.replId, webhookUrl: opts.webhookUrl };
116
127
  }
117
128
  try {
118
129
  writeFile(file, project);
@@ -299,7 +310,9 @@ function createInvoGameServer(options) {
299
310
  premium: { name: economy.premium.name, packs: economy.premium.packs },
300
311
  soft: { name: economy.soft.name },
301
312
  items: economy.items,
302
- sandbox: options.sandbox
313
+ sandbox: options.sandbox,
314
+ demo: !!options.demoProjectId,
315
+ playerFields: { phone: options.demoProjectId ? "hidden" : "first_sign_in" }
303
316
  };
304
317
  return json(200, body);
305
318
  }
@@ -630,7 +643,7 @@ function createInvoGameServer(options) {
630
643
  }
631
644
  }
632
645
  async function route(request, sub, method) {
633
- if (method === "GET" && sub === "/health") return json(200, { ok: true, setupRequired: false, sandbox: options.sandbox });
646
+ if (method === "GET" && sub === "/health") return json(200, { ok: true, setupRequired: false, sandbox: options.sandbox, demo: !!options.demoProjectId });
634
647
  if (method === "GET" && sub === "/catalog") return catalog();
635
648
  if (method === "POST" && sub === "/session") return signIn(request);
636
649
  if (method === "POST" && sub === "/session/end") return signOut(request);
@@ -684,7 +697,7 @@ function invoGameServerFromEnv(options) {
684
697
  ...webhookSecrets.length ? [] : ["INVO_WEBHOOK_SECRET"]
685
698
  ];
686
699
  if (missing.length) {
687
- return { server: setupRequiredServer(options.economy, missing, sandboxNow(), options.basePath), missing, sandbox: sandboxNow(), environment: envNow() };
700
+ return { server: setupRequiredServer(options.economy, missing, sandboxNow(), options.basePath, demo), missing, sandbox: sandboxNow(), environment: envNow(), demo };
688
701
  }
689
702
  const baseFetch = options.fetch ?? ((input, init) => fetch(input, init));
690
703
  const projectId = demoProject?.projectId ?? ((options.projectId ?? env["INVO_PROJECT_ID"])?.trim() || void 0);
@@ -719,7 +732,7 @@ function invoGameServerFromEnv(options) {
719
732
  log: options.log
720
733
  };
721
734
  const server = createInvoGameServer(serverOptions);
722
- return { server, missing, sandbox: sandboxNow(), environment: envNow() };
735
+ return { server, missing, sandbox: sandboxNow(), environment: envNow(), demo };
723
736
  }
724
737
  function newProjectId(now = Date.now()) {
725
738
  const A = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
@@ -734,7 +747,7 @@ function newProjectId(now = Date.now()) {
734
747
  for (let i = 0; i < 16; i++) rand += A[bytes[i] % 32];
735
748
  return "proj_" + time + rand;
736
749
  }
737
- function setupRequiredServer(economy, missing, sandbox, basePathOpt) {
750
+ function setupRequiredServer(economy, missing, sandbox, basePathOpt, demo = false) {
738
751
  const basePath = (basePathOpt ?? "/api/invo").replace(/\/+$/, "");
739
752
  const message = `Add ${missing.join(" and ")} to your environment (on Replit: Tools \u2192 Secrets), then restart.`;
740
753
  return {
@@ -743,9 +756,9 @@ function setupRequiredServer(economy, missing, sandbox, basePathOpt) {
743
756
  const url = new URL(request.url);
744
757
  if (url.pathname !== basePath && !url.pathname.startsWith(basePath + "/")) return null;
745
758
  const sub = url.pathname.slice(basePath.length) || "/";
746
- if (request.method === "GET" && sub === "/health") return json(200, { ok: true, setupRequired: true, missing, sandbox });
759
+ if (request.method === "GET" && sub === "/health") return json(200, { ok: true, setupRequired: true, missing, sandbox, demo });
747
760
  if (request.method === "GET" && sub === "/catalog") {
748
- const body = { premium: { name: economy.premium.name, packs: economy.premium.packs }, soft: { name: economy.soft.name }, items: economy.items, sandbox };
761
+ const body = { premium: { name: economy.premium.name, packs: economy.premium.packs }, soft: { name: economy.soft.name }, items: economy.items, sandbox, demo, playerFields: { phone: demo ? "hidden" : "first_sign_in" } };
749
762
  return json(200, body);
750
763
  }
751
764
  return json(503, { error: { code: "INVO_SETUP_REQUIRED", message } });
package/dist/game.cjs CHANGED
@@ -1926,6 +1926,9 @@ function mountInvoUI(container, economy, options = {}) {
1926
1926
  };
1927
1927
  const email = field("Email", "", "email", "email", "you@example.com", "email", ICONS.mail);
1928
1928
  const phone = field("Phone", "first sign-in only", "tel", "phone", "+1 555 555 0111", "tel", ICONS.phone);
1929
+ if (economy.catalog?.playerFields?.phone === "hidden" || economy.catalog?.demo) {
1930
+ phone.closest(".invo-field")?.setAttribute("hidden", "");
1931
+ }
1929
1932
  const name = field("Player name", "optional", "text", "name", "What should we call you?", "nickname", ICONS.user);
1930
1933
  email.required = true;
1931
1934
  const error = el("div", "invo-error");
@@ -2162,7 +2165,7 @@ function mountInvoUI(container, economy, options = {}) {
2162
2165
  }
2163
2166
 
2164
2167
  // src/version.ts
2165
- var SDK_VERSION = "3.29.0";
2168
+ var SDK_VERSION = "3.29.1";
2166
2169
 
2167
2170
  exports.InvoGameEconomy = InvoGameEconomy;
2168
2171
  exports.InvoGameError = InvoGameError;
package/dist/game.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { i as GamePlayer, m as GameWallet, c as GameCatalog, k as GamePurchase, h as GameItemPurchase, d as GameCatalogItem, f as GameCurrencyBalance } from './types-CoW9LopI.cjs';
2
- export { e as GameCheckout, G as GameCurrencyKind, b as GameEconomyConfig, g as GameErrorBody, j as GamePremiumPack, a as GamePurchaseStatus, l as GameSession } from './types-CoW9LopI.cjs';
3
- export { S as SDK_VERSION } from './version-xyYQO5hp.cjs';
1
+ import { i as GamePlayer, m as GameWallet, c as GameCatalog, k as GamePurchase, h as GameItemPurchase, d as GameCatalogItem, f as GameCurrencyBalance } from './types-CLyJDuXd.cjs';
2
+ export { e as GameCheckout, G as GameCurrencyKind, b as GameEconomyConfig, g as GameErrorBody, j as GamePremiumPack, a as GamePurchaseStatus, l as GameSession } from './types-CLyJDuXd.cjs';
3
+ export { S as SDK_VERSION } from './version-DOaYbHu7.cjs';
4
4
 
5
5
  /**
6
6
  * INVO game economy client (3.27.0), the browser half. It talks ONLY to your game server
package/dist/game.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { i as GamePlayer, m as GameWallet, c as GameCatalog, k as GamePurchase, h as GameItemPurchase, d as GameCatalogItem, f as GameCurrencyBalance } from './types-CoW9LopI.js';
2
- export { e as GameCheckout, G as GameCurrencyKind, b as GameEconomyConfig, g as GameErrorBody, j as GamePremiumPack, a as GamePurchaseStatus, l as GameSession } from './types-CoW9LopI.js';
3
- export { S as SDK_VERSION } from './version-xyYQO5hp.js';
1
+ import { i as GamePlayer, m as GameWallet, c as GameCatalog, k as GamePurchase, h as GameItemPurchase, d as GameCatalogItem, f as GameCurrencyBalance } from './types-CLyJDuXd.js';
2
+ export { e as GameCheckout, G as GameCurrencyKind, b as GameEconomyConfig, g as GameErrorBody, j as GamePremiumPack, a as GamePurchaseStatus, l as GameSession } from './types-CLyJDuXd.js';
3
+ export { S as SDK_VERSION } from './version-DOaYbHu7.js';
4
4
 
5
5
  /**
6
6
  * INVO game economy client (3.27.0), the browser half. It talks ONLY to your game server
package/dist/game.js CHANGED
@@ -1,4 +1,4 @@
1
- export { SDK_VERSION } from './chunk-KZJABBVT.js';
1
+ export { SDK_VERSION } from './chunk-VOGZZ6QS.js';
2
2
  import { newEventId } from './chunk-VP3OK4J4.js';
3
3
 
4
4
  // src/game/client.ts
@@ -794,6 +794,9 @@ function mountInvoUI(container, economy, options = {}) {
794
794
  };
795
795
  const email = field("Email", "", "email", "email", "you@example.com", "email", ICONS.mail);
796
796
  const phone = field("Phone", "first sign-in only", "tel", "phone", "+1 555 555 0111", "tel", ICONS.phone);
797
+ if (economy.catalog?.playerFields?.phone === "hidden" || economy.catalog?.demo) {
798
+ phone.closest(".invo-field")?.setAttribute("hidden", "");
799
+ }
797
800
  const name = field("Player name", "optional", "text", "name", "What should we call you?", "nickname", ICONS.user);
798
801
  email.required = true;
799
802
  const error = el("div", "invo-error");
@@ -1,5 +1,5 @@
1
1
  import { I as InvoError, H as Http, a2 as AuthHeader, g as CallOptions, a3 as PlatformPurchaseInput, a4 as PlatformPurchaseResult, a5 as PlatformOrderStatusResult, a6 as PlatformPurchaseHistoryQuery, a7 as PlatformPurchaseHistoryResult, a8 as PlatformRefundInput, a9 as PlatformRefundResult, aa as CreateSubscriptionInput, ab as SubscriptionResult, ac as GetSubscriptionOptions, ad as GetSubscriptionResult, ae as ListSubscriptionsOptions, af as SubscriptionListResult, ag as CancelSubscriptionOptions, ah as CancelResult, ai as ChangeAmountResult, aj as SetPaymentMethodInput, ak as SetPaymentMethodResult, al as RefundSubscriptionInput, am as RefundResult, an as SteamSubscriptionInitInput, ao as SteamInitResult, ap as SteamFinalizeSubscriptionResult, aq as CardSetupSessionInput, ar as CardSetupSessionResult, as as CardSetupInput, at as CardSetupResult, au as CardSetupConfirmInput, av as CardSetupConfirmResult, aw as PlayerCardsResult, ax as SandboxClockResult, ay as SandboxFailureOutcome, az as SandboxForceFailureOptions, aA as SandboxForceAuthChallengeOptions, aB as ServerConfig, aC as MintPlayerTokenInput, aD as PlayerToken, aE as RegisterPlayerInput, aF as RegisterPlayerResult, aG as UpdatePlayerPhoneInput, aH as UpdatePlayerPhoneResult, aI as RequestPhoneChangeInput, aJ as RequestPhoneChangeResult, aK as PhoneChangeRequest, aL as InitiateSendInput, aM as InitiateResult, aN as InitiateTransferInput, aO as CreateCheckoutInput, aP as CreateCheckoutResult, aQ as PurchaseInput, aR as PurchaseResult, aS as CurrencyPurchaseQuoteInput, aT as CurrencyPurchaseQuote, aU as ConfirmPaymentResult, aV as OrderDetailsResult, aW as SteamPacksQuery, aX as SteamPacksResult, aY as SteamInitPurchaseInput, aZ as SteamInitPurchaseResult, a_ as SteamFinalizeInput, a$ as SteamFinalizeResult, b0 as PurchaseItemInput, b1 as PurchaseItemResult, b2 as ItemHistoryQuery, b3 as ItemHistoryResult, b4 as ItemOrderQuery, b5 as PlayerActivityQuery, b6 as PlayerActivityResult, b7 as PlayerActivityEntry, b8 as PlayerBalanceQuery, b9 as PlayerBalanceResult, o as LoyaltyCardsResult, ba as ReportServerGameEventInput, s as ReportGameEventResult, bb as InboundPendingQuery, bc as InboundPendingResult, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bf as SmsVerifyResult, bg as ClaimTransferInput, bh as ClaimResult, bi as ClaimCurrencyInput, bj as TransactionStatusResult, bk as GuardianApprovalStatusResult, bl as ServerDestinationsQuery, n as DestinationsResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bq as PhoneShareStatusResult, br as BeginDeviceApprovalInput, bs as DeviceApprovalGrant, bt as PollDeviceApprovalInput, bu as DeviceApprovalPollResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, bx as ApproveWithDeviceCodeInput, by as DeviceApprovalSettleResult, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult } from './types-_lIm74kd.js';
2
- import './version-xyYQO5hp.js';
2
+ import './version-DOaYbHu7.js';
3
3
 
4
4
  /**
5
5
  * Pick the INVO environment from the game secret alone (3.28.0).
@@ -1,5 +1,5 @@
1
1
  import { I as InvoError, H as Http, a2 as AuthHeader, g as CallOptions, a3 as PlatformPurchaseInput, a4 as PlatformPurchaseResult, a5 as PlatformOrderStatusResult, a6 as PlatformPurchaseHistoryQuery, a7 as PlatformPurchaseHistoryResult, a8 as PlatformRefundInput, a9 as PlatformRefundResult, aa as CreateSubscriptionInput, ab as SubscriptionResult, ac as GetSubscriptionOptions, ad as GetSubscriptionResult, ae as ListSubscriptionsOptions, af as SubscriptionListResult, ag as CancelSubscriptionOptions, ah as CancelResult, ai as ChangeAmountResult, aj as SetPaymentMethodInput, ak as SetPaymentMethodResult, al as RefundSubscriptionInput, am as RefundResult, an as SteamSubscriptionInitInput, ao as SteamInitResult, ap as SteamFinalizeSubscriptionResult, aq as CardSetupSessionInput, ar as CardSetupSessionResult, as as CardSetupInput, at as CardSetupResult, au as CardSetupConfirmInput, av as CardSetupConfirmResult, aw as PlayerCardsResult, ax as SandboxClockResult, ay as SandboxFailureOutcome, az as SandboxForceFailureOptions, aA as SandboxForceAuthChallengeOptions, aB as ServerConfig, aC as MintPlayerTokenInput, aD as PlayerToken, aE as RegisterPlayerInput, aF as RegisterPlayerResult, aG as UpdatePlayerPhoneInput, aH as UpdatePlayerPhoneResult, aI as RequestPhoneChangeInput, aJ as RequestPhoneChangeResult, aK as PhoneChangeRequest, aL as InitiateSendInput, aM as InitiateResult, aN as InitiateTransferInput, aO as CreateCheckoutInput, aP as CreateCheckoutResult, aQ as PurchaseInput, aR as PurchaseResult, aS as CurrencyPurchaseQuoteInput, aT as CurrencyPurchaseQuote, aU as ConfirmPaymentResult, aV as OrderDetailsResult, aW as SteamPacksQuery, aX as SteamPacksResult, aY as SteamInitPurchaseInput, aZ as SteamInitPurchaseResult, a_ as SteamFinalizeInput, a$ as SteamFinalizeResult, b0 as PurchaseItemInput, b1 as PurchaseItemResult, b2 as ItemHistoryQuery, b3 as ItemHistoryResult, b4 as ItemOrderQuery, b5 as PlayerActivityQuery, b6 as PlayerActivityResult, b7 as PlayerActivityEntry, b8 as PlayerBalanceQuery, b9 as PlayerBalanceResult, o as LoyaltyCardsResult, ba as ReportServerGameEventInput, s as ReportGameEventResult, bb as InboundPendingQuery, bc as InboundPendingResult, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bf as SmsVerifyResult, bg as ClaimTransferInput, bh as ClaimResult, bi as ClaimCurrencyInput, bj as TransactionStatusResult, bk as GuardianApprovalStatusResult, bl as ServerDestinationsQuery, n as DestinationsResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bq as PhoneShareStatusResult, br as BeginDeviceApprovalInput, bs as DeviceApprovalGrant, bt as PollDeviceApprovalInput, bu as DeviceApprovalPollResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, bx as ApproveWithDeviceCodeInput, by as DeviceApprovalSettleResult, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult } from './types-_lIm74kd.cjs';
2
- import './version-xyYQO5hp.cjs';
2
+ import './version-DOaYbHu7.cjs';
3
3
 
4
4
  /**
5
5
  * Pick the INVO environment from the game secret alone (3.28.0).
package/dist/server.cjs CHANGED
@@ -1593,7 +1593,7 @@ function toPhoneChangeRequest(raw) {
1593
1593
  }
1594
1594
 
1595
1595
  // src/version.ts
1596
- var SDK_VERSION = "3.29.0";
1596
+ var SDK_VERSION = "3.29.1";
1597
1597
 
1598
1598
  // src/payouts.ts
1599
1599
  var AMOUNT = /^\d+(\.\d{1,2})?$/;
package/dist/server.d.cts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { bx as ApproveWithDeviceCodeInput, br as BeginDeviceApprovalInput, g as CallOptions, ah as CancelResult, ag as CancelSubscriptionOptions, au as CardSetupConfirmInput, av as CardSetupConfirmResult, as as CardSetupInput, at as CardSetupResult, aq as CardSetupSessionInput, ar as CardSetupSessionResult, bB as CardSetupStatus, ai as ChangeAmountResult, bC as CheckoutWarning, bi as ClaimCurrencyInput, y as ClaimDelivery, bh as ClaimResult, bg as ClaimTransferInput, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, aU as ConfirmPaymentResult, aO as CreateCheckoutInput, aP as CreateCheckoutResult, aa as CreateSubscriptionInput, bD as CurrencyBalance, aT as CurrencyPurchaseQuote, bE as CurrencyPurchaseQuoteBreakdown, aS as CurrencyPurchaseQuoteInput, z as DestinationGame, n as DestinationsResult, bF as DeviceApprovalChannel, bG as DeviceApprovalEnrollment, bH as DeviceApprovalFlow, bs as DeviceApprovalGrant, bu as DeviceApprovalPollResult, bI as DeviceApprovalPollStatus, by as DeviceApprovalSettleResult, bJ as DeviceEnrollmentDecision, bK as DeviceEnrollmentRespond, bL as ExpiryReason, bM as FeeTakenFrom, bN as FirstCharge, bO as FirstChargeStatus, bP as FundingSource, G as GameEventType, ac as GetSubscriptionOptions, ad as GetSubscriptionResult, bk as GuardianApprovalStatusResult, bQ as InboundPendingItem, bb as InboundPendingQuery, bc as InboundPendingResult, aM as InitiateResult, aL as InitiateSendInput, aN as InitiateTransferInput, I as InvoError, F as InvoErrorInfo, J as InvoHooks, K as InvoRequestInfo, N as InvoResponseInfo, b2 as ItemHistoryQuery, b3 as ItemHistoryResult, b4 as ItemOrderQuery, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bR as LinkedIdentityEmail, ae as ListSubscriptionsOptions, O as LoyaltyCard, Q as LoyaltyCardReward, S as LoyaltyCardStep, o as LoyaltyCardsResult, T as LoyaltyRewardState, U as LoyaltyStepProgress, V as LoyaltyStepState, bS as MinPurchaseWarning, aC as MintPlayerTokenInput, aV as OrderDetailsResult, bT as PhoneChangeConfirmation, aK as PhoneChangeRequest, bU as PhoneChangeRequestStatus, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bq as PhoneShareStatusResult, a5 as PlatformOrderStatusResult, a6 as PlatformPurchaseHistoryQuery, a7 as PlatformPurchaseHistoryResult, a3 as PlatformPurchaseInput, a4 as PlatformPurchaseResult, bV as PlatformPurchaseStatus, a8 as PlatformRefundInput, a9 as PlatformRefundResult, b7 as PlayerActivityEntry, b5 as PlayerActivityQuery, b6 as PlayerActivityResult, bW as PlayerActivityType, b8 as PlayerBalanceQuery, b9 as PlayerBalanceResult, aw as PlayerCardsResult, aD as PlayerToken, bt as PollDeviceApprovalInput, aQ as PurchaseInput, b0 as PurchaseItemInput, b1 as PurchaseItemResult, aR as PurchaseResult, a0 as Rail, bX as RefundInitiation, bY as RefundPendingApproval, bZ as RefundProcessingFeeBasis, b_ as RefundReceipt, am as RefundResult, b$ as RefundRevenueShareAttribution, al as RefundSubscriptionInput, c0 as RefundWarning, aE as RegisterPlayerInput, aF as RegisterPlayerResult, r as ReportGameEventInput, s as ReportGameEventResult, ba as ReportServerGameEventInput, aI as RequestPhoneChangeInput, aJ as RequestPhoneChangeResult, ax as SandboxClockResult, c1 as SandboxClockState, ay as SandboxFailureOutcome, aA as SandboxForceAuthChallengeOptions, az as SandboxForceFailureOptions, c2 as SavedCard, aB as ServerConfig, bl as ServerDestinationsQuery, aj as SetPaymentMethodInput, ak as SetPaymentMethodResult, bf as SmsVerifyResult, a_ as SteamFinalizeInput, a$ as SteamFinalizeResult, ap as SteamFinalizeSubscriptionResult, aY as SteamInitPurchaseInput, aZ as SteamInitPurchaseResult, ao as SteamInitResult, c3 as SteamPack, aW as SteamPacksQuery, aX as SteamPacksResult, an as SteamSubscriptionInitInput, c4 as SteamUserSession, c5 as Subscription, c6 as SubscriptionBaseInput, c7 as SubscriptionConsent, c8 as SubscriptionConsentInput, c9 as SubscriptionFundingRail, ca as SubscriptionInterval, af as SubscriptionListResult, ab as SubscriptionResult, cb as SubscriptionRevenueShare, cc as SubscriptionRevenueShareInput, cd as SubscriptionStatus, bj as TransactionStatusResult, ce as UnacknowledgedPurchaseOutcome, aG as UpdatePlayerPhoneInput, aH as UpdatePlayerPhoneResult, a1 as VerificationMethod, cf as isRefundPendingApproval } from './types-_lIm74kd.cjs';
2
- export { C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, c as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, d as InvoWebhookEvent, e as ItemPurchasedData, L as ListPayeesQuery, f as ListPayeesResult, g as ListPayoutsQuery, h as ListPayoutsResult, P as PRODUCTION_BASE_URL, j as PayableBlocker, k as Payee, l as PayeeInvite, m as PayeeStatus, n as PayeeStatusChangedData, o as Payout, p as PayoutStatus, q as PayoutStatusChangedData, s as PayoutsServer, t as PlatformCommercePurchasedData, u as PlatformCommerceRefundedData, w as PlatformCommerceServer, x as PlayerPhoneChangedData, y as PurchaseCompletedData, z as PurchaseEventData, R as RegisterPayeeInput, A as RegisterPayeeResult, B as RequestPayoutInput, F as RequestPayoutResult, G as ReturnReasonCode, S as SANDBOX_BASE_URL, H as SandboxServer, J as SandboxSubscriptionsServer, K as SubscriptionAuthenticationRequiredData, M as SubscriptionCanceledData, N as SubscriptionEventCommon, O as SubscriptionExpiredData, Q as SubscriptionPastDueData, T as SubscriptionPaymentFailedData, U as SubscriptionRefundApprovedData, V as SubscriptionRefundDetail, W as SubscriptionRefundRejectedData, X as SubscriptionRefundRequestData, Y as SubscriptionRefundedData, Z as SubscriptionRenewalFunding, _ as SubscriptionRenewalSplit, $ as SubscriptionRenewedData, a0 as SubscriptionRevenueShareAttribution, a1 as SubscriptionTrialEventFields, a2 as SubscriptionsServer, a3 as TransferEventData, a4 as VerifyWebhookOptions, a5 as WebhookHandlerOptions, b as baseUrlForKey, a6 as createWebhookHandler, i as isDemoKey, r as resolveEnvironment, a7 as verifyWebhook, a8 as verifyWebhookAsync } from './server-UZ38eD2p.cjs';
3
- export { S as SDK_VERSION } from './version-xyYQO5hp.cjs';
2
+ export { C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, c as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, d as InvoWebhookEvent, e as ItemPurchasedData, L as ListPayeesQuery, f as ListPayeesResult, g as ListPayoutsQuery, h as ListPayoutsResult, P as PRODUCTION_BASE_URL, j as PayableBlocker, k as Payee, l as PayeeInvite, m as PayeeStatus, n as PayeeStatusChangedData, o as Payout, p as PayoutStatus, q as PayoutStatusChangedData, s as PayoutsServer, t as PlatformCommercePurchasedData, u as PlatformCommerceRefundedData, w as PlatformCommerceServer, x as PlayerPhoneChangedData, y as PurchaseCompletedData, z as PurchaseEventData, R as RegisterPayeeInput, A as RegisterPayeeResult, B as RequestPayoutInput, F as RequestPayoutResult, G as ReturnReasonCode, S as SANDBOX_BASE_URL, H as SandboxServer, J as SandboxSubscriptionsServer, K as SubscriptionAuthenticationRequiredData, M as SubscriptionCanceledData, N as SubscriptionEventCommon, O as SubscriptionExpiredData, Q as SubscriptionPastDueData, T as SubscriptionPaymentFailedData, U as SubscriptionRefundApprovedData, V as SubscriptionRefundDetail, W as SubscriptionRefundRejectedData, X as SubscriptionRefundRequestData, Y as SubscriptionRefundedData, Z as SubscriptionRenewalFunding, _ as SubscriptionRenewalSplit, $ as SubscriptionRenewedData, a0 as SubscriptionRevenueShareAttribution, a1 as SubscriptionTrialEventFields, a2 as SubscriptionsServer, a3 as TransferEventData, a4 as VerifyWebhookOptions, a5 as WebhookHandlerOptions, b as baseUrlForKey, a6 as createWebhookHandler, i as isDemoKey, r as resolveEnvironment, a7 as verifyWebhook, a8 as verifyWebhookAsync } from './server-Bxo_wgHx.cjs';
3
+ export { S as SDK_VERSION } from './version-DOaYbHu7.cjs';
package/dist/server.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { bx as ApproveWithDeviceCodeInput, br as BeginDeviceApprovalInput, g as CallOptions, ah as CancelResult, ag as CancelSubscriptionOptions, au as CardSetupConfirmInput, av as CardSetupConfirmResult, as as CardSetupInput, at as CardSetupResult, aq as CardSetupSessionInput, ar as CardSetupSessionResult, bB as CardSetupStatus, ai as ChangeAmountResult, bC as CheckoutWarning, bi as ClaimCurrencyInput, y as ClaimDelivery, bh as ClaimResult, bg as ClaimTransferInput, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, aU as ConfirmPaymentResult, aO as CreateCheckoutInput, aP as CreateCheckoutResult, aa as CreateSubscriptionInput, bD as CurrencyBalance, aT as CurrencyPurchaseQuote, bE as CurrencyPurchaseQuoteBreakdown, aS as CurrencyPurchaseQuoteInput, z as DestinationGame, n as DestinationsResult, bF as DeviceApprovalChannel, bG as DeviceApprovalEnrollment, bH as DeviceApprovalFlow, bs as DeviceApprovalGrant, bu as DeviceApprovalPollResult, bI as DeviceApprovalPollStatus, by as DeviceApprovalSettleResult, bJ as DeviceEnrollmentDecision, bK as DeviceEnrollmentRespond, bL as ExpiryReason, bM as FeeTakenFrom, bN as FirstCharge, bO as FirstChargeStatus, bP as FundingSource, G as GameEventType, ac as GetSubscriptionOptions, ad as GetSubscriptionResult, bk as GuardianApprovalStatusResult, bQ as InboundPendingItem, bb as InboundPendingQuery, bc as InboundPendingResult, aM as InitiateResult, aL as InitiateSendInput, aN as InitiateTransferInput, I as InvoError, F as InvoErrorInfo, J as InvoHooks, K as InvoRequestInfo, N as InvoResponseInfo, b2 as ItemHistoryQuery, b3 as ItemHistoryResult, b4 as ItemOrderQuery, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bR as LinkedIdentityEmail, ae as ListSubscriptionsOptions, O as LoyaltyCard, Q as LoyaltyCardReward, S as LoyaltyCardStep, o as LoyaltyCardsResult, T as LoyaltyRewardState, U as LoyaltyStepProgress, V as LoyaltyStepState, bS as MinPurchaseWarning, aC as MintPlayerTokenInput, aV as OrderDetailsResult, bT as PhoneChangeConfirmation, aK as PhoneChangeRequest, bU as PhoneChangeRequestStatus, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bq as PhoneShareStatusResult, a5 as PlatformOrderStatusResult, a6 as PlatformPurchaseHistoryQuery, a7 as PlatformPurchaseHistoryResult, a3 as PlatformPurchaseInput, a4 as PlatformPurchaseResult, bV as PlatformPurchaseStatus, a8 as PlatformRefundInput, a9 as PlatformRefundResult, b7 as PlayerActivityEntry, b5 as PlayerActivityQuery, b6 as PlayerActivityResult, bW as PlayerActivityType, b8 as PlayerBalanceQuery, b9 as PlayerBalanceResult, aw as PlayerCardsResult, aD as PlayerToken, bt as PollDeviceApprovalInput, aQ as PurchaseInput, b0 as PurchaseItemInput, b1 as PurchaseItemResult, aR as PurchaseResult, a0 as Rail, bX as RefundInitiation, bY as RefundPendingApproval, bZ as RefundProcessingFeeBasis, b_ as RefundReceipt, am as RefundResult, b$ as RefundRevenueShareAttribution, al as RefundSubscriptionInput, c0 as RefundWarning, aE as RegisterPlayerInput, aF as RegisterPlayerResult, r as ReportGameEventInput, s as ReportGameEventResult, ba as ReportServerGameEventInput, aI as RequestPhoneChangeInput, aJ as RequestPhoneChangeResult, ax as SandboxClockResult, c1 as SandboxClockState, ay as SandboxFailureOutcome, aA as SandboxForceAuthChallengeOptions, az as SandboxForceFailureOptions, c2 as SavedCard, aB as ServerConfig, bl as ServerDestinationsQuery, aj as SetPaymentMethodInput, ak as SetPaymentMethodResult, bf as SmsVerifyResult, a_ as SteamFinalizeInput, a$ as SteamFinalizeResult, ap as SteamFinalizeSubscriptionResult, aY as SteamInitPurchaseInput, aZ as SteamInitPurchaseResult, ao as SteamInitResult, c3 as SteamPack, aW as SteamPacksQuery, aX as SteamPacksResult, an as SteamSubscriptionInitInput, c4 as SteamUserSession, c5 as Subscription, c6 as SubscriptionBaseInput, c7 as SubscriptionConsent, c8 as SubscriptionConsentInput, c9 as SubscriptionFundingRail, ca as SubscriptionInterval, af as SubscriptionListResult, ab as SubscriptionResult, cb as SubscriptionRevenueShare, cc as SubscriptionRevenueShareInput, cd as SubscriptionStatus, bj as TransactionStatusResult, ce as UnacknowledgedPurchaseOutcome, aG as UpdatePlayerPhoneInput, aH as UpdatePlayerPhoneResult, a1 as VerificationMethod, cf as isRefundPendingApproval } from './types-_lIm74kd.js';
2
- export { C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, c as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, d as InvoWebhookEvent, e as ItemPurchasedData, L as ListPayeesQuery, f as ListPayeesResult, g as ListPayoutsQuery, h as ListPayoutsResult, P as PRODUCTION_BASE_URL, j as PayableBlocker, k as Payee, l as PayeeInvite, m as PayeeStatus, n as PayeeStatusChangedData, o as Payout, p as PayoutStatus, q as PayoutStatusChangedData, s as PayoutsServer, t as PlatformCommercePurchasedData, u as PlatformCommerceRefundedData, w as PlatformCommerceServer, x as PlayerPhoneChangedData, y as PurchaseCompletedData, z as PurchaseEventData, R as RegisterPayeeInput, A as RegisterPayeeResult, B as RequestPayoutInput, F as RequestPayoutResult, G as ReturnReasonCode, S as SANDBOX_BASE_URL, H as SandboxServer, J as SandboxSubscriptionsServer, K as SubscriptionAuthenticationRequiredData, M as SubscriptionCanceledData, N as SubscriptionEventCommon, O as SubscriptionExpiredData, Q as SubscriptionPastDueData, T as SubscriptionPaymentFailedData, U as SubscriptionRefundApprovedData, V as SubscriptionRefundDetail, W as SubscriptionRefundRejectedData, X as SubscriptionRefundRequestData, Y as SubscriptionRefundedData, Z as SubscriptionRenewalFunding, _ as SubscriptionRenewalSplit, $ as SubscriptionRenewedData, a0 as SubscriptionRevenueShareAttribution, a1 as SubscriptionTrialEventFields, a2 as SubscriptionsServer, a3 as TransferEventData, a4 as VerifyWebhookOptions, a5 as WebhookHandlerOptions, b as baseUrlForKey, a6 as createWebhookHandler, i as isDemoKey, r as resolveEnvironment, a7 as verifyWebhook, a8 as verifyWebhookAsync } from './server-Dnx5jxS4.js';
3
- export { S as SDK_VERSION } from './version-xyYQO5hp.js';
2
+ export { C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, c as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, d as InvoWebhookEvent, e as ItemPurchasedData, L as ListPayeesQuery, f as ListPayeesResult, g as ListPayoutsQuery, h as ListPayoutsResult, P as PRODUCTION_BASE_URL, j as PayableBlocker, k as Payee, l as PayeeInvite, m as PayeeStatus, n as PayeeStatusChangedData, o as Payout, p as PayoutStatus, q as PayoutStatusChangedData, s as PayoutsServer, t as PlatformCommercePurchasedData, u as PlatformCommerceRefundedData, w as PlatformCommerceServer, x as PlayerPhoneChangedData, y as PurchaseCompletedData, z as PurchaseEventData, R as RegisterPayeeInput, A as RegisterPayeeResult, B as RequestPayoutInput, F as RequestPayoutResult, G as ReturnReasonCode, S as SANDBOX_BASE_URL, H as SandboxServer, J as SandboxSubscriptionsServer, K as SubscriptionAuthenticationRequiredData, M as SubscriptionCanceledData, N as SubscriptionEventCommon, O as SubscriptionExpiredData, Q as SubscriptionPastDueData, T as SubscriptionPaymentFailedData, U as SubscriptionRefundApprovedData, V as SubscriptionRefundDetail, W as SubscriptionRefundRejectedData, X as SubscriptionRefundRequestData, Y as SubscriptionRefundedData, Z as SubscriptionRenewalFunding, _ as SubscriptionRenewalSplit, $ as SubscriptionRenewedData, a0 as SubscriptionRevenueShareAttribution, a1 as SubscriptionTrialEventFields, a2 as SubscriptionsServer, a3 as TransferEventData, a4 as VerifyWebhookOptions, a5 as WebhookHandlerOptions, b as baseUrlForKey, a6 as createWebhookHandler, i as isDemoKey, r as resolveEnvironment, a7 as verifyWebhook, a8 as verifyWebhookAsync } from './server-BYY6tM6X.js';
3
+ export { S as SDK_VERSION } from './version-DOaYbHu7.js';
package/dist/server.js CHANGED
@@ -1,6 +1,6 @@
1
- export { CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, baseUrlForKey, createWebhookHandler, isDemoKey, isRefundPendingApproval, resolveEnvironment, verifyWebhook, verifyWebhookAsync } from './chunk-FJR44FKW.js';
1
+ export { CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, baseUrlForKey, createWebhookHandler, isDemoKey, isRefundPendingApproval, resolveEnvironment, verifyWebhook, verifyWebhookAsync } from './chunk-YONO4JE5.js';
2
2
  import './chunk-6CN236QH.js';
3
- export { SDK_VERSION } from './chunk-KZJABBVT.js';
3
+ export { SDK_VERSION } from './chunk-VOGZZ6QS.js';
4
4
  export { InvoError } from './chunk-VP3OK4J4.js';
5
5
  //# sourceMappingURL=server.js.map
6
6
  //# sourceMappingURL=server.js.map
@@ -102,6 +102,18 @@ interface GameCatalog {
102
102
  items: GameCatalogItem[];
103
103
  /** True when the server talks to INVO's sandbox (no real money moves). */
104
104
  sandbox: boolean;
105
+ /**
106
+ * True when the server uses INVO's public demo key (3.29.1). Sign-ins are mapped to demo
107
+ * players, so there is no real account and no phone to collect.
108
+ */
109
+ demo?: boolean;
110
+ /**
111
+ * What the sign-in form should ask for (3.29.1). `phone`: `"hidden"` on the demo key (the
112
+ * server never uses it), `"first_sign_in"` otherwise (INVO needs it once to create the player).
113
+ */
114
+ playerFields?: {
115
+ phone: "hidden" | "first_sign_in";
116
+ };
105
117
  }
106
118
  /** Status of a premium-currency purchase, as the game server knows it. */
107
119
  type GamePurchaseStatus = "pending" | "credited" | "failed" | "refunded";
@@ -102,6 +102,18 @@ interface GameCatalog {
102
102
  items: GameCatalogItem[];
103
103
  /** True when the server talks to INVO's sandbox (no real money moves). */
104
104
  sandbox: boolean;
105
+ /**
106
+ * True when the server uses INVO's public demo key (3.29.1). Sign-ins are mapped to demo
107
+ * players, so there is no real account and no phone to collect.
108
+ */
109
+ demo?: boolean;
110
+ /**
111
+ * What the sign-in form should ask for (3.29.1). `phone`: `"hidden"` on the demo key (the
112
+ * server never uses it), `"first_sign_in"` otherwise (INVO needs it once to create the player).
113
+ */
114
+ playerFields?: {
115
+ phone: "hidden" | "first_sign_in";
116
+ };
105
117
  }
106
118
  /** Status of a premium-currency purchase, as the game server knows it. */
107
119
  type GamePurchaseStatus = "pending" | "credited" | "failed" | "refunded";
@@ -3,6 +3,6 @@
3
3
  * `package.json` so it cannot drift silently (it did: the UA read 3.0.0 through 3.7.0).
4
4
  * Bump it with the changeset flow.
5
5
  */
6
- declare const SDK_VERSION = "3.29.0";
6
+ declare const SDK_VERSION = "3.29.1";
7
7
 
8
8
  export { SDK_VERSION as S };
@@ -3,6 +3,6 @@
3
3
  * `package.json` so it cannot drift silently (it did: the UA read 3.0.0 through 3.7.0).
4
4
  * Bump it with the changeset flow.
5
5
  */
6
- declare const SDK_VERSION = "3.29.0";
6
+ declare const SDK_VERSION = "3.29.1";
7
7
 
8
8
  export { SDK_VERSION as S };
package/package.json CHANGED
@@ -1,91 +1,91 @@
1
- {
2
- "name": "@invonetwork/web-sdk",
3
- "version": "3.29.0",
4
- "description": "INVO Web SDK — currency purchase, passkey (WebAuthn) verification, loyalty, and a drop-in game economy layer (wallet, shop, hosted checkout) for partner web platforms and browser games.",
5
- "license": "SEE LICENSE IN LICENSE",
6
- "private": false,
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/Invo-Technologies/invo-web-sdk.git"
10
- },
11
- "homepage": "https://docs.invo.network",
12
- "bugs": {
13
- "url": "https://github.com/Invo-Technologies/invo-web-sdk/issues"
14
- },
15
- "type": "module",
16
- "engines": {
17
- "node": ">=18"
18
- },
19
- "sideEffects": false,
20
- "files": [
21
- "dist",
22
- "!dist/**/*.map",
23
- "README.md",
24
- "LICENSE",
25
- "CHANGELOG.md"
26
- ],
27
- "exports": {
28
- ".": {
29
- "types": "./dist/index.d.ts",
30
- "import": "./dist/index.js",
31
- "require": "./dist/index.cjs"
32
- },
33
- "./server": {
34
- "types": "./dist/server.d.ts",
35
- "import": "./dist/server.js",
36
- "require": "./dist/server.cjs"
37
- },
38
- "./game": {
39
- "types": "./dist/game.d.ts",
40
- "import": "./dist/game.js",
41
- "require": "./dist/game.cjs"
42
- },
43
- "./game-server": {
44
- "types": "./dist/game-server.d.ts",
45
- "import": "./dist/game-server.js",
46
- "require": "./dist/game-server.cjs"
47
- }
48
- },
49
- "main": "./dist/index.cjs",
50
- "module": "./dist/index.js",
51
- "types": "./dist/index.d.ts",
52
- "scripts": {
53
- "build": "tsup",
54
- "dev": "tsup --watch",
55
- "typecheck": "tsc --noEmit",
56
- "lint": "eslint .",
57
- "test": "vitest run",
58
- "test:watch": "vitest",
59
- "clean": "rimraf dist",
60
- "changeset": "changeset",
61
- "version-packages": "changeset version",
62
- "release": "npm run build && changeset publish",
63
- "prepublishOnly": "npm run clean && npm run build"
64
- },
65
- "keywords": [
66
- "invo",
67
- "webauthn",
68
- "passkey",
69
- "payments",
70
- "game-currency",
71
- "sdk",
72
- "game",
73
- "game-economy",
74
- "browser-game",
75
- "loyalty"
76
- ],
77
- "publishConfig": {
78
- "access": "public"
79
- },
80
- "devDependencies": {
81
- "@changesets/cli": "^2.31.0",
82
- "@eslint/js": "^10.0.1",
83
- "eslint": "^10.6.0",
84
- "happy-dom": "^15.11.7",
85
- "rimraf": "^5.0.5",
86
- "tsup": "^8.0.1",
87
- "typescript": "^5.4.5",
88
- "typescript-eslint": "^8.62.1",
89
- "vitest": "^1.5.0"
90
- }
91
- }
1
+ {
2
+ "name": "@invonetwork/web-sdk",
3
+ "version": "3.29.1",
4
+ "description": "INVO Web SDK — currency purchase, passkey (WebAuthn) verification, loyalty, and a drop-in game economy layer (wallet, shop, hosted checkout) for partner web platforms and browser games.",
5
+ "license": "SEE LICENSE IN LICENSE",
6
+ "private": false,
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/Invo-Technologies/invo-web-sdk.git"
10
+ },
11
+ "homepage": "https://docs.invo.network",
12
+ "bugs": {
13
+ "url": "https://github.com/Invo-Technologies/invo-web-sdk/issues"
14
+ },
15
+ "type": "module",
16
+ "engines": {
17
+ "node": ">=18"
18
+ },
19
+ "sideEffects": false,
20
+ "files": [
21
+ "dist",
22
+ "!dist/**/*.map",
23
+ "README.md",
24
+ "LICENSE",
25
+ "CHANGELOG.md"
26
+ ],
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/index.d.ts",
30
+ "import": "./dist/index.js",
31
+ "require": "./dist/index.cjs"
32
+ },
33
+ "./server": {
34
+ "types": "./dist/server.d.ts",
35
+ "import": "./dist/server.js",
36
+ "require": "./dist/server.cjs"
37
+ },
38
+ "./game": {
39
+ "types": "./dist/game.d.ts",
40
+ "import": "./dist/game.js",
41
+ "require": "./dist/game.cjs"
42
+ },
43
+ "./game-server": {
44
+ "types": "./dist/game-server.d.ts",
45
+ "import": "./dist/game-server.js",
46
+ "require": "./dist/game-server.cjs"
47
+ }
48
+ },
49
+ "main": "./dist/index.cjs",
50
+ "module": "./dist/index.js",
51
+ "types": "./dist/index.d.ts",
52
+ "scripts": {
53
+ "build": "tsup",
54
+ "dev": "tsup --watch",
55
+ "typecheck": "tsc --noEmit",
56
+ "lint": "eslint .",
57
+ "test": "vitest run",
58
+ "test:watch": "vitest",
59
+ "clean": "rimraf dist",
60
+ "changeset": "changeset",
61
+ "version-packages": "changeset version",
62
+ "release": "npm run build && changeset publish",
63
+ "prepublishOnly": "npm run clean && npm run build"
64
+ },
65
+ "keywords": [
66
+ "invo",
67
+ "webauthn",
68
+ "passkey",
69
+ "payments",
70
+ "game-currency",
71
+ "sdk",
72
+ "game",
73
+ "game-economy",
74
+ "browser-game",
75
+ "loyalty"
76
+ ],
77
+ "publishConfig": {
78
+ "access": "public"
79
+ },
80
+ "devDependencies": {
81
+ "@changesets/cli": "^2.31.0",
82
+ "@eslint/js": "^10.0.1",
83
+ "eslint": "^10.6.0",
84
+ "happy-dom": "^15.11.7",
85
+ "rimraf": "^5.0.5",
86
+ "tsup": "^8.0.1",
87
+ "typescript": "^5.4.5",
88
+ "typescript-eslint": "^8.62.1",
89
+ "vitest": "^1.5.0"
90
+ }
91
+ }
@@ -1,6 +0,0 @@
1
- // src/version.ts
2
- var SDK_VERSION = "3.29.0";
3
-
4
- export { SDK_VERSION };
5
- //# sourceMappingURL=chunk-KZJABBVT.js.map
6
- //# sourceMappingURL=chunk-KZJABBVT.js.map