@camstack/types 0.1.32 → 0.1.34

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 (48) hide show
  1. package/dist/capabilities/addons.cap.d.ts +155 -3
  2. package/dist/capabilities/addons.cap.d.ts.map +1 -1
  3. package/dist/capabilities/device-export.cap.d.ts +55 -1
  4. package/dist/capabilities/device-export.cap.d.ts.map +1 -1
  5. package/dist/capabilities/index.d.ts +1 -1
  6. package/dist/capabilities/index.d.ts.map +1 -1
  7. package/dist/capabilities/mesh-network.cap.d.ts +58 -2
  8. package/dist/capabilities/mesh-network.cap.d.ts.map +1 -1
  9. package/dist/capabilities/mesh-orchestrator.cap.d.ts +67 -0
  10. package/dist/capabilities/mesh-orchestrator.cap.d.ts.map +1 -1
  11. package/dist/capabilities/nodes.cap.d.ts +36 -1
  12. package/dist/capabilities/nodes.cap.d.ts.map +1 -1
  13. package/dist/capabilities/user-management.cap.d.ts +4 -0
  14. package/dist/capabilities/user-management.cap.d.ts.map +1 -1
  15. package/dist/enums/event-category.d.ts +10 -0
  16. package/dist/enums/event-category.d.ts.map +1 -1
  17. package/dist/generated/addon-api.d.ts +386 -8
  18. package/dist/generated/addon-api.d.ts.map +1 -1
  19. package/dist/generated/capability-router-map.d.ts.map +1 -1
  20. package/dist/generated/method-access-map.d.ts +1 -1
  21. package/dist/generated/method-access-map.d.ts.map +1 -1
  22. package/dist/generated/system-proxy.d.ts +4 -4
  23. package/dist/generated/system-proxy.d.ts.map +1 -1
  24. package/dist/{index-BBVUwOlZ.mjs → index-Ce7RZWP4.mjs} +491 -170
  25. package/dist/index-Ce7RZWP4.mjs.map +1 -0
  26. package/dist/{index-BUBhoPUu.js → index-DS7418lf.js} +331 -10
  27. package/dist/index-DS7418lf.js.map +1 -0
  28. package/dist/index.js +23 -2
  29. package/dist/index.js.map +1 -1
  30. package/dist/index.mjs +184 -163
  31. package/dist/index.mjs.map +1 -1
  32. package/dist/interfaces/addon.d.ts +21 -0
  33. package/dist/interfaces/addon.d.ts.map +1 -1
  34. package/dist/interfaces/api-responses.d.ts +6 -0
  35. package/dist/interfaces/api-responses.d.ts.map +1 -1
  36. package/dist/interfaces/event-bus.d.ts +21 -1
  37. package/dist/interfaces/event-bus.d.ts.map +1 -1
  38. package/dist/interfaces/storage.d.ts +1 -1
  39. package/dist/interfaces/storage.d.ts.map +1 -1
  40. package/dist/node.js +6 -6
  41. package/dist/node.js.map +1 -1
  42. package/dist/node.mjs +6 -6
  43. package/dist/node.mjs.map +1 -1
  44. package/dist/storage/filesystem-storage-provider.d.ts +1 -1
  45. package/dist/storage/filesystem-storage-provider.d.ts.map +1 -1
  46. package/package.json +6 -1
  47. package/dist/index-BBVUwOlZ.mjs.map +0 -1
  48. package/dist/index-BUBhoPUu.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-BUBhoPUu.js");
3
+ const index = require("./index-DS7418lf.js");
4
4
  const zod = require("zod");
5
5
  class DisposerChain {
6
6
  disposers = [];
@@ -95,6 +95,7 @@ var EventCategory = /* @__PURE__ */ ((EventCategory2) => {
95
95
  EventCategory2["SystemBoot"] = "system.boot";
96
96
  EventCategory2["SystemAddonsReady"] = "system.addons-ready";
97
97
  EventCategory2["SystemRestarting"] = "system.restarting";
98
+ EventCategory2["SystemRestartCompleted"] = "system.restart-completed";
98
99
  EventCategory2["SystemReadyState"] = "system.ready-state";
99
100
  EventCategory2["AddonStarted"] = "addon.started";
100
101
  EventCategory2["AddonStopped"] = "addon.stopped";
@@ -3231,6 +3232,10 @@ function createSystemProxy(api) {
3231
3232
  rollbackPackage: (input) => dispatch("addons", "rollbackPackage", "mutation", input),
3232
3233
  forceRefresh: (input) => dispatch("addons", "forceRefresh", "mutation", input),
3233
3234
  restartServer: (input) => dispatch("addons", "restartServer", "mutation", input),
3235
+ getLastRestart: (input) => dispatch("addons", "getLastRestart", "query", input),
3236
+ listFrameworkPackages: (input) => dispatch("addons", "listFrameworkPackages", "query", input),
3237
+ listCapabilityProviders: (input) => dispatch("addons", "listCapabilityProviders", "query", input),
3238
+ updateFrameworkPackage: (input) => dispatch("addons", "updateFrameworkPackage", "mutation", input),
3234
3239
  getVersions: (input) => dispatch("addons", "getVersions", "query", input),
3235
3240
  restartAddon: (input) => dispatch("addons", "restartAddon", "mutation", input),
3236
3241
  retryLoad: (input) => dispatch("addons", "retryLoad", "mutation", input),
@@ -3374,13 +3379,17 @@ function createSystemProxy(api) {
3374
3379
  join: (input) => dispatch("meshNetwork", "join", "mutation", input),
3375
3380
  startLogin: (input) => dispatch("meshNetwork", "startLogin", "mutation", input),
3376
3381
  leave: (input) => dispatch("meshNetwork", "leave", "mutation", input),
3382
+ logout: (input) => dispatch("meshNetwork", "logout", "mutation", input),
3377
3383
  listPeers: (input) => dispatch("meshNetwork", "listPeers", "query", input),
3378
3384
  testConnection: (input) => dispatch("meshNetwork", "testConnection", "mutation", input)
3379
3385
  };
3380
3386
  const meshOrchestratorInterface = {
3381
3387
  listProviders: (input) => dispatch("meshOrchestrator", "listProviders", "query", input),
3382
3388
  joinProvider: (input) => dispatch("meshOrchestrator", "joinProvider", "mutation", input),
3383
- leaveProvider: (input) => dispatch("meshOrchestrator", "leaveProvider", "mutation", input)
3389
+ leaveProvider: (input) => dispatch("meshOrchestrator", "leaveProvider", "mutation", input),
3390
+ startLoginProvider: (input) => dispatch("meshOrchestrator", "startLoginProvider", "mutation", input),
3391
+ logoutProvider: (input) => dispatch("meshOrchestrator", "logoutProvider", "mutation", input),
3392
+ listProviderPeers: (input) => dispatch("meshOrchestrator", "listProviderPeers", "query", input)
3384
3393
  };
3385
3394
  const metricsProviderInterface = {
3386
3395
  collectSnapshot: (input) => dispatch("metricsProvider", "collectSnapshot", "query", input),
@@ -3418,6 +3427,7 @@ function createSystemProxy(api) {
3418
3427
  shutdownNode: (input) => dispatch("nodes", "shutdownNode", "mutation", input),
3419
3428
  renameNode: (input) => dispatch("nodes", "renameNode", "mutation", input),
3420
3429
  clusterAddonStatus: (input) => dispatch("nodes", "clusterAddonStatus", "query", input),
3430
+ getNodeAddons: (input) => dispatch("nodes", "getNodeAddons", "query", input),
3421
3431
  setProcessLogLevel: (input) => dispatch("nodes", "setProcessLogLevel", "mutation", input),
3422
3432
  executeQuery: (input) => dispatch("nodes", "executeQuery", "mutation", input)
3423
3433
  };
@@ -4697,12 +4707,15 @@ const METHOD_ACCESS_MAP = Object.freeze({
4697
4707
  "addons.forceRefresh": { capName: "addons", capScope: "system", addonId: null, access: "create" },
4698
4708
  "addons.getAddonAutoUpdate": { capName: "addons", capScope: "system", addonId: null, access: "view" },
4699
4709
  "addons.getAutoUpdateSettings": { capName: "addons", capScope: "system", addonId: null, access: "view" },
4710
+ "addons.getLastRestart": { capName: "addons", capScope: "system", addonId: null, access: "view" },
4700
4711
  "addons.getLogs": { capName: "addons", capScope: "system", addonId: null, access: "view" },
4701
4712
  "addons.getVersions": { capName: "addons", capScope: "system", addonId: null, access: "view" },
4702
4713
  "addons.installFromWorkspace": { capName: "addons", capScope: "system", addonId: null, access: "create" },
4703
4714
  "addons.installPackage": { capName: "addons", capScope: "system", addonId: null, access: "create" },
4704
4715
  "addons.isWorkspaceAvailable": { capName: "addons", capScope: "system", addonId: null, access: "view" },
4705
4716
  "addons.list": { capName: "addons", capScope: "system", addonId: null, access: "view" },
4717
+ "addons.listCapabilityProviders": { capName: "addons", capScope: "system", addonId: null, access: "view" },
4718
+ "addons.listFrameworkPackages": { capName: "addons", capScope: "system", addonId: null, access: "view" },
4706
4719
  "addons.listPackages": { capName: "addons", capScope: "system", addonId: null, access: "view" },
4707
4720
  "addons.listUpdates": { capName: "addons", capScope: "system", addonId: null, access: "view" },
4708
4721
  "addons.listWorkspacePackages": { capName: "addons", capScope: "system", addonId: null, access: "view" },
@@ -4716,6 +4729,7 @@ const METHOD_ACCESS_MAP = Object.freeze({
4716
4729
  "addons.setAddonAutoUpdate": { capName: "addons", capScope: "system", addonId: null, access: "create" },
4717
4730
  "addons.setAutoUpdateSettings": { capName: "addons", capScope: "system", addonId: null, access: "create" },
4718
4731
  "addons.uninstallPackage": { capName: "addons", capScope: "system", addonId: null, access: "delete" },
4732
+ "addons.updateFrameworkPackage": { capName: "addons", capScope: "system", addonId: null, access: "create" },
4719
4733
  "addons.updatePackage": { capName: "addons", capScope: "system", addonId: null, access: "create" },
4720
4734
  "addonSettings.getDeviceSettings": { capName: "addon-settings", capScope: "system", addonId: null, access: "view" },
4721
4735
  "addonSettings.getGlobalSettings": { capName: "addon-settings", capScope: "system", addonId: null, access: "view" },
@@ -4896,11 +4910,15 @@ const METHOD_ACCESS_MAP = Object.freeze({
4896
4910
  "meshNetwork.join": { capName: "mesh-network", capScope: "system", addonId: null, access: "create" },
4897
4911
  "meshNetwork.leave": { capName: "mesh-network", capScope: "system", addonId: null, access: "create" },
4898
4912
  "meshNetwork.listPeers": { capName: "mesh-network", capScope: "system", addonId: null, access: "view" },
4913
+ "meshNetwork.logout": { capName: "mesh-network", capScope: "system", addonId: null, access: "create" },
4899
4914
  "meshNetwork.startLogin": { capName: "mesh-network", capScope: "system", addonId: null, access: "create" },
4900
4915
  "meshNetwork.testConnection": { capName: "mesh-network", capScope: "system", addonId: null, access: "create" },
4901
4916
  "meshOrchestrator.joinProvider": { capName: "mesh-orchestrator", capScope: "system", addonId: null, access: "create" },
4902
4917
  "meshOrchestrator.leaveProvider": { capName: "mesh-orchestrator", capScope: "system", addonId: null, access: "create" },
4918
+ "meshOrchestrator.listProviderPeers": { capName: "mesh-orchestrator", capScope: "system", addonId: null, access: "view" },
4903
4919
  "meshOrchestrator.listProviders": { capName: "mesh-orchestrator", capScope: "system", addonId: null, access: "view" },
4920
+ "meshOrchestrator.logoutProvider": { capName: "mesh-orchestrator", capScope: "system", addonId: null, access: "create" },
4921
+ "meshOrchestrator.startLoginProvider": { capName: "mesh-orchestrator", capScope: "system", addonId: null, access: "create" },
4904
4922
  "metricsProvider.collectSnapshot": { capName: "metrics-provider", capScope: "system", addonId: null, access: "view" },
4905
4923
  "metricsProvider.getAddonStats": { capName: "metrics-provider", capScope: "system", addonId: null, access: "view" },
4906
4924
  "metricsProvider.getCached": { capName: "metrics-provider", capScope: "system", addonId: null, access: "view" },
@@ -4936,6 +4954,7 @@ const METHOD_ACCESS_MAP = Object.freeze({
4936
4954
  "nodes.clusterAddonStatus": { capName: "nodes", capScope: "system", addonId: null, access: "view" },
4937
4955
  "nodes.deployAddon": { capName: "nodes", capScope: "system", addonId: null, access: "create" },
4938
4956
  "nodes.executeQuery": { capName: "nodes", capScope: "system", addonId: null, access: "create" },
4957
+ "nodes.getNodeAddons": { capName: "nodes", capScope: "system", addonId: null, access: "view" },
4939
4958
  "nodes.renameNode": { capName: "nodes", capScope: "system", addonId: null, access: "create" },
4940
4959
  "nodes.restartAddon": { capName: "nodes", capScope: "system", addonId: null, access: "create" },
4941
4960
  "nodes.restartNode": { capName: "nodes", capScope: "system", addonId: null, access: "create" },
@@ -5608,6 +5627,8 @@ exports.EncodedPacketSchema = index.EncodedPacketSchema;
5608
5627
  exports.EnrichedWidgetMetadataSchema = index.EnrichedWidgetMetadataSchema;
5609
5628
  exports.EventItemSchema = index.EventItemSchema;
5610
5629
  exports.EventKindSchema = index.EventKindSchema;
5630
+ exports.ExportSetupFieldSchema = index.ExportSetupFieldSchema;
5631
+ exports.ExportSetupSchema = index.ExportSetupSchema;
5611
5632
  exports.ExposedDeviceSchema = index.ExposedDeviceSchema;
5612
5633
  exports.ExposedResourceSchema = index.ExposedResourceSchema;
5613
5634
  exports.FeatureManifestSchema = index.FeatureManifestSchema;