mindwire 0.1.54 → 0.1.55

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/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@
8
8
  export { Mindwire, AuthApi, PromptsApi, McpApi, ProvidersApi, NotifyApi } from "./client.js";
9
9
  export * from "./bots.js";
10
10
  export * from "./apps.js";
11
+ export * from "./schedules.js";
11
12
  export * from "./integrations.js";
12
13
  export type { MindwireOptions, AgentScoped } from "./client.js";
13
14
  export { Run } from "./run.js";
package/dist/index.js CHANGED
@@ -956,6 +956,27 @@ var AppsApi = class {
956
956
  }
957
957
  };
958
958
 
959
+ // src/schedules.ts
960
+ var ChatSchedulesApi = class {
961
+ constructor(mw) {
962
+ this.mw = mw;
963
+ }
964
+ mw;
965
+ list(chatId) {
966
+ return this.mw.http.request("GET", this.path(chatId));
967
+ }
968
+ save(chatId, schedule) {
969
+ return this.mw.http.request("POST", this.path(chatId), { body: schedule });
970
+ }
971
+ /** Stops future occurrences; an accepted turn continues through the ordinary run API. */
972
+ delete(chatId, scheduleId) {
973
+ return this.mw.http.request("DELETE", `${this.path(chatId)}/${encodeURIComponent(scheduleId)}`);
974
+ }
975
+ path(chatId) {
976
+ return `/chats/${encodeURIComponent(chatId)}/schedules`;
977
+ }
978
+ };
979
+
959
980
  // src/integrations.ts
960
981
  var IntegrationsApi = class {
961
982
  constructor(mw) {
@@ -1422,7 +1443,7 @@ var NativeSessionsApi = class {
1422
1443
  };
1423
1444
 
1424
1445
  // src/version.ts
1425
- var SDK_VERSION = "0.1.54" ;
1446
+ var SDK_VERSION = "0.1.55" ;
1426
1447
  function versionAtLeast(actual, desired) {
1427
1448
  if (actual === desired) return true;
1428
1449
  if (!actual || !/^\d+\.\d+\.\d+$/.test(actual) || !/^\d+\.\d+\.\d+$/.test(desired)) return false;
@@ -1740,6 +1761,7 @@ var Mindwire = class _Mindwire {
1740
1761
  workspace;
1741
1762
  bots;
1742
1763
  apps;
1764
+ schedules;
1743
1765
  integrations;
1744
1766
  surfaces;
1745
1767
  service;
@@ -1783,6 +1805,7 @@ var Mindwire = class _Mindwire {
1783
1805
  this.workspace = new WorkspaceApi(this);
1784
1806
  this.bots = new BotsApi(this);
1785
1807
  this.apps = new AppsApi(this);
1808
+ this.schedules = new ChatSchedulesApi(this);
1786
1809
  this.integrations = new IntegrationsApi(this);
1787
1810
  this.surfaces = new SurfacesApi(this);
1788
1811
  this.service = new ServiceApi(this);
@@ -1813,6 +1836,7 @@ var Mindwire = class _Mindwire {
1813
1836
  clone.workspace = new WorkspaceApi(clone);
1814
1837
  clone.bots = new BotsApi(clone);
1815
1838
  clone.apps = new AppsApi(clone);
1839
+ clone.schedules = new ChatSchedulesApi(clone);
1816
1840
  clone.integrations = new IntegrationsApi(clone);
1817
1841
  clone.surfaces = new SurfacesApi(clone);
1818
1842
  clone.service = new ServiceApi(clone);
@@ -3569,6 +3593,6 @@ function clearCatalogCache() {
3569
3593
  inflight = null;
3570
3594
  }
3571
3595
 
3572
- export { AppsApi, AuthApi, BotsApi, ComputerApi, ContainerHost, ConversationsApi, ExecutionApi, GitAccessApi, Http, IntegrationsApi, MODELS_DEV_URL, McpApi, Mindwire, NativeSessionsApi, NotifyApi, ProjectOperationsApi, ProjectSyncApi, ProjectSyncError, PromptsApi, ProvidersApi, Run, SDK_VERSION, ServiceApi, SurfacesApi, TerminalsApi, VoiceApi, VoiceSession, WorkspaceApi, WorkspaceCollection, catalogModels, catalogProvider, catalogProviders, clearCatalogCache, computerPairingQRData, computerPairingURI, docker, ensureDaemon, ensureDaemonBinary, loadCatalog, local, lookupModel, oblien, provisionContainer, provisionDocker, provisionOblien, provisionSsh, provisionSshContainer, remote, resolveLinuxDaemon, ssh, startEmbedded };
3596
+ export { AppsApi, AuthApi, BotsApi, ChatSchedulesApi, ComputerApi, ContainerHost, ConversationsApi, ExecutionApi, GitAccessApi, Http, IntegrationsApi, MODELS_DEV_URL, McpApi, Mindwire, NativeSessionsApi, NotifyApi, ProjectOperationsApi, ProjectSyncApi, ProjectSyncError, PromptsApi, ProvidersApi, Run, SDK_VERSION, ServiceApi, SurfacesApi, TerminalsApi, VoiceApi, VoiceSession, WorkspaceApi, WorkspaceCollection, catalogModels, catalogProvider, catalogProviders, clearCatalogCache, computerPairingQRData, computerPairingURI, docker, ensureDaemon, ensureDaemonBinary, loadCatalog, local, lookupModel, oblien, provisionContainer, provisionDocker, provisionOblien, provisionSsh, provisionSshContainer, remote, resolveLinuxDaemon, ssh, startEmbedded };
3573
3597
  //# sourceMappingURL=index.js.map
3574
3598
  //# sourceMappingURL=index.js.map