@zyraxon-ai/sdk 19.0.4 → 19.0.6

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.
Files changed (122) hide show
  1. package/dist/client.d.ts.map +1 -1
  2. package/dist/client.js +1 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/error-interceptor.d.ts.map +1 -1
  5. package/dist/error-interceptor.js +1 -0
  6. package/dist/error-interceptor.js.map +1 -1
  7. package/dist/gen/client/client.gen.d.ts.map +1 -1
  8. package/dist/gen/client/client.gen.js +1 -0
  9. package/dist/gen/client/client.gen.js.map +1 -1
  10. package/dist/gen/client/index.d.ts.map +1 -1
  11. package/dist/gen/client/index.js +1 -1
  12. package/dist/gen/client/index.js.map +1 -1
  13. package/dist/gen/client/types.gen.d.ts.map +1 -1
  14. package/dist/gen/client/types.gen.js +1 -1
  15. package/dist/gen/client/types.gen.js.map +1 -1
  16. package/dist/gen/client/utils.gen.d.ts.map +1 -1
  17. package/dist/gen/client/utils.gen.js +1 -0
  18. package/dist/gen/client/utils.gen.js.map +1 -1
  19. package/dist/gen/client.gen.d.ts.map +1 -1
  20. package/dist/gen/client.gen.js +1 -1
  21. package/dist/gen/client.gen.js.map +1 -1
  22. package/dist/gen/core/auth.gen.d.ts.map +1 -1
  23. package/dist/gen/core/auth.gen.js +1 -1
  24. package/dist/gen/core/auth.gen.js.map +1 -1
  25. package/dist/gen/core/bodySerializer.gen.d.ts.map +1 -1
  26. package/dist/gen/core/bodySerializer.gen.js +1 -1
  27. package/dist/gen/core/bodySerializer.gen.js.map +1 -1
  28. package/dist/gen/core/params.gen.d.ts.map +1 -1
  29. package/dist/gen/core/params.gen.js +1 -1
  30. package/dist/gen/core/params.gen.js.map +1 -1
  31. package/dist/gen/core/pathSerializer.gen.d.ts.map +1 -1
  32. package/dist/gen/core/pathSerializer.gen.js +1 -1
  33. package/dist/gen/core/pathSerializer.gen.js.map +1 -1
  34. package/dist/gen/core/queryKeySerializer.gen.d.ts +1 -1
  35. package/dist/gen/core/queryKeySerializer.gen.d.ts.map +1 -1
  36. package/dist/gen/core/queryKeySerializer.gen.js +1 -1
  37. package/dist/gen/core/queryKeySerializer.gen.js.map +1 -1
  38. package/dist/gen/core/serverSentEvents.gen.d.ts.map +1 -1
  39. package/dist/gen/core/serverSentEvents.gen.js +1 -1
  40. package/dist/gen/core/serverSentEvents.gen.js.map +1 -1
  41. package/dist/gen/core/types.gen.d.ts.map +1 -1
  42. package/dist/gen/core/types.gen.js +1 -1
  43. package/dist/gen/core/types.gen.js.map +1 -1
  44. package/dist/gen/core/utils.gen.d.ts.map +1 -1
  45. package/dist/gen/core/utils.gen.js +1 -1
  46. package/dist/gen/core/utils.gen.js.map +1 -1
  47. package/dist/gen/sdk.gen.d.ts.map +1 -1
  48. package/dist/gen/sdk.gen.js +1 -1
  49. package/dist/gen/sdk.gen.js.map +1 -1
  50. package/dist/gen/types.gen.d.ts.map +1 -1
  51. package/dist/gen/types.gen.js +1 -1
  52. package/dist/gen/types.gen.js.map +1 -1
  53. package/dist/index.d.ts.map +1 -1
  54. package/dist/index.js +1 -0
  55. package/dist/index.js.map +1 -1
  56. package/dist/process.d.ts.map +1 -1
  57. package/dist/process.js +1 -0
  58. package/dist/process.js.map +1 -1
  59. package/dist/server.d.ts.map +1 -1
  60. package/dist/server.js +1 -0
  61. package/dist/server.js.map +1 -1
  62. package/dist/v2/client.d.ts.map +1 -1
  63. package/dist/v2/client.js +1 -0
  64. package/dist/v2/client.js.map +1 -1
  65. package/dist/v2/data.d.ts.map +1 -1
  66. package/dist/v2/data.js +1 -0
  67. package/dist/v2/data.js.map +1 -1
  68. package/dist/v2/gen/client/client.gen.d.ts.map +1 -1
  69. package/dist/v2/gen/client/client.gen.js +1 -0
  70. package/dist/v2/gen/client/client.gen.js.map +1 -1
  71. package/dist/v2/gen/client/index.d.ts.map +1 -1
  72. package/dist/v2/gen/client/index.js +1 -1
  73. package/dist/v2/gen/client/index.js.map +1 -1
  74. package/dist/v2/gen/client/types.gen.d.ts.map +1 -1
  75. package/dist/v2/gen/client/types.gen.js +1 -1
  76. package/dist/v2/gen/client/types.gen.js.map +1 -1
  77. package/dist/v2/gen/client/utils.gen.d.ts.map +1 -1
  78. package/dist/v2/gen/client/utils.gen.js +1 -0
  79. package/dist/v2/gen/client/utils.gen.js.map +1 -1
  80. package/dist/v2/gen/client.gen.d.ts.map +1 -1
  81. package/dist/v2/gen/client.gen.js +1 -0
  82. package/dist/v2/gen/client.gen.js.map +1 -1
  83. package/dist/v2/gen/core/auth.gen.d.ts.map +1 -1
  84. package/dist/v2/gen/core/auth.gen.js +1 -1
  85. package/dist/v2/gen/core/auth.gen.js.map +1 -1
  86. package/dist/v2/gen/core/bodySerializer.gen.d.ts.map +1 -1
  87. package/dist/v2/gen/core/bodySerializer.gen.js +1 -1
  88. package/dist/v2/gen/core/bodySerializer.gen.js.map +1 -1
  89. package/dist/v2/gen/core/params.gen.d.ts.map +1 -1
  90. package/dist/v2/gen/core/params.gen.js +1 -1
  91. package/dist/v2/gen/core/params.gen.js.map +1 -1
  92. package/dist/v2/gen/core/pathSerializer.gen.d.ts.map +1 -1
  93. package/dist/v2/gen/core/pathSerializer.gen.js +1 -1
  94. package/dist/v2/gen/core/pathSerializer.gen.js.map +1 -1
  95. package/dist/v2/gen/core/queryKeySerializer.gen.d.ts +1 -1
  96. package/dist/v2/gen/core/queryKeySerializer.gen.d.ts.map +1 -1
  97. package/dist/v2/gen/core/queryKeySerializer.gen.js +1 -1
  98. package/dist/v2/gen/core/queryKeySerializer.gen.js.map +1 -1
  99. package/dist/v2/gen/core/serverSentEvents.gen.d.ts.map +1 -1
  100. package/dist/v2/gen/core/serverSentEvents.gen.js +1 -1
  101. package/dist/v2/gen/core/serverSentEvents.gen.js.map +1 -1
  102. package/dist/v2/gen/core/types.gen.d.ts.map +1 -1
  103. package/dist/v2/gen/core/types.gen.js +1 -1
  104. package/dist/v2/gen/core/types.gen.js.map +1 -1
  105. package/dist/v2/gen/core/utils.gen.d.ts.map +1 -1
  106. package/dist/v2/gen/core/utils.gen.js +1 -1
  107. package/dist/v2/gen/core/utils.gen.js.map +1 -1
  108. package/dist/v2/gen/sdk.gen.d.ts +144 -1
  109. package/dist/v2/gen/sdk.gen.d.ts.map +1 -1
  110. package/dist/v2/gen/sdk.gen.js +294 -0
  111. package/dist/v2/gen/sdk.gen.js.map +1 -1
  112. package/dist/v2/gen/types.gen.d.ts +467 -3
  113. package/dist/v2/gen/types.gen.d.ts.map +1 -1
  114. package/dist/v2/gen/types.gen.js +1 -1
  115. package/dist/v2/gen/types.gen.js.map +1 -1
  116. package/dist/v2/index.d.ts.map +1 -1
  117. package/dist/v2/index.js +1 -0
  118. package/dist/v2/index.js.map +1 -1
  119. package/dist/v2/server.d.ts.map +1 -1
  120. package/dist/v2/server.js +1 -0
  121. package/dist/v2/server.js.map +1 -1
  122. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ // Copyright (c) 2026 onelpawarai. All rights reserved.
1
2
  // This file is auto-generated by @hey-api/openapi-ts
2
3
  import { client } from "./client.gen.js";
3
4
  import { buildClientParams } from "./client/index.js";
@@ -1227,6 +1228,175 @@ export class Formatter extends HeyApiClient {
1227
1228
  });
1228
1229
  }
1229
1230
  }
1231
+ export class Local extends HeyApiClient {
1232
+ /**
1233
+ * Scan local GGUF models
1234
+ */
1235
+ models(parameters, options) {
1236
+ const params = buildClientParams([parameters], [
1237
+ {
1238
+ args: [
1239
+ { in: "query", key: "directory" },
1240
+ { in: "query", key: "workspace" },
1241
+ ],
1242
+ },
1243
+ ]);
1244
+ return (options?.client ?? this.client).get({
1245
+ url: "/local/models",
1246
+ ...options,
1247
+ ...params,
1248
+ });
1249
+ }
1250
+ /**
1251
+ * Detect local backends
1252
+ */
1253
+ backends(parameters, options) {
1254
+ const params = buildClientParams([parameters], [
1255
+ {
1256
+ args: [
1257
+ { in: "query", key: "directory" },
1258
+ { in: "query", key: "workspace" },
1259
+ ],
1260
+ },
1261
+ ]);
1262
+ return (options?.client ?? this.client).get({
1263
+ url: "/local/backends",
1264
+ ...options,
1265
+ ...params,
1266
+ });
1267
+ }
1268
+ /**
1269
+ * Search HuggingFace
1270
+ */
1271
+ search(parameters, options) {
1272
+ const params = buildClientParams([parameters], [
1273
+ {
1274
+ args: [
1275
+ { in: "query", key: "q" },
1276
+ { in: "query", key: "directory" },
1277
+ { in: "query", key: "workspace" },
1278
+ ],
1279
+ },
1280
+ ]);
1281
+ return (options?.client ?? this.client).get({
1282
+ url: "/local/search",
1283
+ ...options,
1284
+ ...params,
1285
+ });
1286
+ }
1287
+ /**
1288
+ * List Hub repo GGUF files
1289
+ */
1290
+ files(parameters, options) {
1291
+ const params = buildClientParams([parameters], [
1292
+ {
1293
+ args: [
1294
+ { in: "query", key: "repo" },
1295
+ { in: "query", key: "directory" },
1296
+ { in: "query", key: "workspace" },
1297
+ ],
1298
+ },
1299
+ ]);
1300
+ return (options?.client ?? this.client).get({
1301
+ url: "/local/files",
1302
+ ...options,
1303
+ ...params,
1304
+ });
1305
+ }
1306
+ /**
1307
+ * Download a Hub GGUF
1308
+ */
1309
+ download(parameters, options) {
1310
+ const params = buildClientParams([parameters], [
1311
+ {
1312
+ args: [
1313
+ { in: "query", key: "directory" },
1314
+ { in: "query", key: "workspace" },
1315
+ { in: "body", key: "repo" },
1316
+ { in: "body", key: "file" },
1317
+ ],
1318
+ },
1319
+ ]);
1320
+ return (options?.client ?? this.client).post({
1321
+ url: "/local/download",
1322
+ ...options,
1323
+ ...params,
1324
+ headers: {
1325
+ "Content-Type": "application/json",
1326
+ ...options?.headers,
1327
+ ...params.headers,
1328
+ },
1329
+ });
1330
+ }
1331
+ /**
1332
+ * Download progress
1333
+ */
1334
+ downloads(parameters, options) {
1335
+ const params = buildClientParams([parameters], [
1336
+ {
1337
+ args: [
1338
+ { in: "query", key: "directory" },
1339
+ { in: "query", key: "workspace" },
1340
+ ],
1341
+ },
1342
+ ]);
1343
+ return (options?.client ?? this.client).get({
1344
+ url: "/local/downloads",
1345
+ ...options,
1346
+ ...params,
1347
+ });
1348
+ }
1349
+ /**
1350
+ * Chat with a local model
1351
+ */
1352
+ chat(parameters, options) {
1353
+ const params = buildClientParams([parameters], [
1354
+ {
1355
+ args: [
1356
+ { in: "query", key: "directory" },
1357
+ { in: "query", key: "workspace" },
1358
+ { in: "body", key: "model" },
1359
+ { in: "body", key: "messages" },
1360
+ ],
1361
+ },
1362
+ ]);
1363
+ return (options?.client ?? this.client).post({
1364
+ url: "/local/chat",
1365
+ ...options,
1366
+ ...params,
1367
+ headers: {
1368
+ "Content-Type": "application/json",
1369
+ ...options?.headers,
1370
+ ...params.headers,
1371
+ },
1372
+ });
1373
+ }
1374
+ /**
1375
+ * Synthesise speech with the bundled backend
1376
+ */
1377
+ speak(parameters, options) {
1378
+ const params = buildClientParams([parameters], [
1379
+ {
1380
+ args: [
1381
+ { in: "query", key: "directory" },
1382
+ { in: "query", key: "workspace" },
1383
+ { in: "body", key: "text" },
1384
+ { in: "body", key: "voice" },
1385
+ ],
1386
+ },
1387
+ ]);
1388
+ return (options?.client ?? this.client).post({
1389
+ url: "/local/speak",
1390
+ ...options,
1391
+ ...params,
1392
+ headers: {
1393
+ "Content-Type": "application/json",
1394
+ ...options?.headers,
1395
+ ...params.headers,
1396
+ },
1397
+ });
1398
+ }
1399
+ }
1230
1400
  export class Auth2 extends HeyApiClient {
1231
1401
  /**
1232
1402
  * Remove MCP OAuth
@@ -1261,6 +1431,7 @@ export class Auth2 extends HeyApiClient {
1261
1431
  { in: "path", key: "name" },
1262
1432
  { in: "query", key: "directory" },
1263
1433
  { in: "query", key: "workspace" },
1434
+ { in: "query", key: "open" },
1264
1435
  ],
1265
1436
  },
1266
1437
  ]);
@@ -1270,6 +1441,27 @@ export class Auth2 extends HeyApiClient {
1270
1441
  ...params,
1271
1442
  });
1272
1443
  }
1444
+ /**
1445
+ * Check stored MCP credentials
1446
+ *
1447
+ * Report whether a stored sign-in exists for a Model Context Protocol (MCP) server, so a client can tell an unsigned server from a rejected credential.
1448
+ */
1449
+ hasTokens(parameters, options) {
1450
+ const params = buildClientParams([parameters], [
1451
+ {
1452
+ args: [
1453
+ { in: "path", key: "name" },
1454
+ { in: "query", key: "directory" },
1455
+ { in: "query", key: "workspace" },
1456
+ ],
1457
+ },
1458
+ ]);
1459
+ return (options?.client ?? this.client).get({
1460
+ url: "/mcp/{name}/auth/has-tokens",
1461
+ ...options,
1462
+ ...params,
1463
+ });
1464
+ }
1273
1465
  /**
1274
1466
  * Complete MCP OAuth
1275
1467
  *
@@ -1405,6 +1597,32 @@ export class Mcp extends HeyApiClient {
1405
1597
  ...params,
1406
1598
  });
1407
1599
  }
1600
+ /**
1601
+ * Open a URL in the real browser
1602
+ *
1603
+ * Open a URL in the machine's real browser rather than an embedded webview. Used by the MCP Hub so a generated sign-in link can be approved in the browser that already holds the account.
1604
+ */
1605
+ openUrl(parameters, options) {
1606
+ const params = buildClientParams([parameters], [
1607
+ {
1608
+ args: [
1609
+ { in: "query", key: "directory" },
1610
+ { in: "query", key: "workspace" },
1611
+ { in: "body", key: "url" },
1612
+ ],
1613
+ },
1614
+ ]);
1615
+ return (options?.client ?? this.client).post({
1616
+ url: "/mcp/open-url",
1617
+ ...options,
1618
+ ...params,
1619
+ headers: {
1620
+ "Content-Type": "application/json",
1621
+ ...options?.headers,
1622
+ ...params.headers,
1623
+ },
1624
+ });
1625
+ }
1408
1626
  _auth;
1409
1627
  get auth() {
1410
1628
  return (this._auth ??= new Auth2({ client: this.client }));
@@ -2220,6 +2438,7 @@ export class Session2 extends HeyApiClient {
2220
2438
  { in: "body", key: "format" },
2221
2439
  { in: "body", key: "system" },
2222
2440
  { in: "body", key: "variant" },
2441
+ { in: "body", key: "replyLanguage" },
2223
2442
  { in: "body", key: "parts" },
2224
2443
  ],
2225
2444
  },
@@ -2447,6 +2666,7 @@ export class Session2 extends HeyApiClient {
2447
2666
  { in: "body", key: "format" },
2448
2667
  { in: "body", key: "system" },
2449
2668
  { in: "body", key: "variant" },
2669
+ { in: "body", key: "replyLanguage" },
2450
2670
  { in: "body", key: "parts" },
2451
2671
  ],
2452
2672
  },
@@ -4269,6 +4489,72 @@ export class ProjectCopy2 extends HeyApiClient {
4269
4489
  });
4270
4490
  }
4271
4491
  }
4492
+ export class Storage extends HeyApiClient {
4493
+ /**
4494
+ * Get storage usage
4495
+ *
4496
+ * Report where the database lives, how large it is on disk, how many pages sit on the freelist, and how many sessions, messages and parts it holds.
4497
+ */
4498
+ usage(parameters, options) {
4499
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
4500
+ return (options?.client ?? this.client).get({
4501
+ url: "/api/storage",
4502
+ ...options,
4503
+ ...params,
4504
+ });
4505
+ }
4506
+ /**
4507
+ * Reclaim unused disk space
4508
+ *
4509
+ * Checkpoint the write-ahead log, run incremental vacuum so freed pages return to the filesystem, then optimise. Reports the size before and after.
4510
+ */
4511
+ compact(parameters, options) {
4512
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
4513
+ return (options?.client ?? this.client).post({
4514
+ url: "/api/storage/compact",
4515
+ ...options,
4516
+ ...params,
4517
+ });
4518
+ }
4519
+ /**
4520
+ * Permanently delete stored sessions
4521
+ *
4522
+ * Delete sessions by id, or every session older than a timestamp. Messages and parts go with them, and the freed pages are handed back in the same call.
4523
+ */
4524
+ purge(parameters, options) {
4525
+ const params = buildClientParams([parameters], [
4526
+ {
4527
+ args: [
4528
+ { in: "query", key: "location" },
4529
+ { key: "storagePurgeInput", map: "body" },
4530
+ ],
4531
+ },
4532
+ ]);
4533
+ return (options?.client ?? this.client).post({
4534
+ url: "/api/storage/purge",
4535
+ ...options,
4536
+ ...params,
4537
+ headers: {
4538
+ "Content-Type": "application/json",
4539
+ ...options?.headers,
4540
+ ...params.headers,
4541
+ },
4542
+ });
4543
+ }
4544
+ /**
4545
+ * Discover on-disk storage locations
4546
+ *
4547
+ * Scan the data directory for databases and the resource tree for MCP files, returning every location with its real existence and size so the settings panel can reveal it. Nothing is hardcoded.
4548
+ */
4549
+ locations(parameters, options) {
4550
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
4551
+ return (options?.client ?? this.client).get({
4552
+ url: "/api/storage/locations",
4553
+ ...options,
4554
+ ...params,
4555
+ });
4556
+ }
4557
+ }
4272
4558
  export class V2 extends HeyApiClient {
4273
4559
  _health;
4274
4560
  get health() {
@@ -4338,6 +4624,10 @@ export class V2 extends HeyApiClient {
4338
4624
  get projectCopy() {
4339
4625
  return (this._projectCopy ??= new ProjectCopy2({ client: this.client }));
4340
4626
  }
4627
+ _storage;
4628
+ get storage() {
4629
+ return (this._storage ??= new Storage({ client: this.client }));
4630
+ }
4341
4631
  }
4342
4632
  export class ZyraxonClient extends HeyApiClient {
4343
4633
  static __registry = new HeyApiRegistry();
@@ -4409,6 +4699,10 @@ export class ZyraxonClient extends HeyApiClient {
4409
4699
  get formatter() {
4410
4700
  return (this._formatter ??= new Formatter({ client: this.client }));
4411
4701
  }
4702
+ _local;
4703
+ get local() {
4704
+ return (this._local ??= new Local({ client: this.client }));
4705
+ }
4412
4706
  _mcp;
4413
4707
  get mcp() {
4414
4708
  return (this._mcp ??= new Mcp({ client: this.client }));