@sealant/sdk-next 0.40.0-next.878 → 0.40.0-next.880

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/client.js CHANGED
@@ -1,4 +1,4 @@
1
- import { archiveConnectedAccountOp, archiveSshKeyOp, cancelWorkspaceCreateOp, createAccessTokenOp, checkBoatAccountOp, checkBoatInstallKeyOp, getBoatInstallKeyOp, proveBoatAccountOp, createBoatAccountOp, createConnectedAccountOp, createSshKeyOp, createWorkspaceOp, ensureUserOp, getRunOp, getSetupStateOp, getUserOp, bindUserPersonOp, getWorkspaceCreateOp, getWorkspaceOp, inferenceRespondOp, inspectWorkspaceImageOp, listWorkspaceRuntimesOp, listBoatAccountsOp, listConnectedAccountsOp, listSshKeysOp, listWorkspacesOp, markConnectedAccountInvalidOp, removeBoatAccountOp, rotateBoatAccountKeyOp, setConnectedAccountDefaultOp, } from "./effect/operations.js";
1
+ import { archiveConnectedAccountOp, archiveSshKeyOp, cancelWorkspaceCreateOp, createAccessTokenOp, checkBoatAccountOp, checkBoatInstallKeyOp, getBoatInstallKeyOp, proveBoatAccountOp, createBoatAccountOp, createConnectedAccountOp, createSshKeyOp, createWorkspaceOp, ensureUserOp, getRunOp, getSetupStateOp, getUserOp, bindUserPersonOp, getWorkspaceCreateOp, getWorkspaceOp, inferenceRespondOp, inspectWorkspaceImageOp, listWorkspaceRuntimesOp, listBoatAccountsOp, listConnectedAccountsOp, listSshKeysOp, listWorkspacesOp, markConnectedAccountInvalidOp, removeBoatAccountOp, rotateBoatAccountKeyOp, setBoatAccountOrganizationOp, setConnectedAccountDefaultOp, } from "./effect/operations.js";
2
2
  import { runHarness, startHarness } from "./effect/run-harness.js";
3
3
  import { makeSdkRuntime } from "./effect/runtime.js";
4
4
  import { SealantBudgetExceededError, SealantError } from "./errors.js";
@@ -31,6 +31,7 @@ const mapBoatAccount = (wire) => ({
31
31
  organization: wire.organization ?? null,
32
32
  report: wire.report ?? null,
33
33
  lastProof: wire.lastProof ?? null,
34
+ unreachable: wire.unreachable ?? null,
34
35
  });
35
36
  const mapConnectedAccount = (wire) => ({
36
37
  connectedAccountId: wire.connectedAccountId,
@@ -299,6 +300,7 @@ export class Sealant {
299
300
  ...(options.organization === undefined ? {} : { organization: options.organization }),
300
301
  }))),
301
302
  list: async () => (await this.#runtime.run(listBoatAccountsOp())).items.map(mapBoatAccount),
303
+ setOrganization: async (boatAccountId, organization) => mapBoatAccount(await this.#runtime.run(setBoatAccountOrganizationOp(boatAccountId, { organization }))),
302
304
  rotateKey: async (boatAccountId, apiKey) => mapBoatAccount(await this.#runtime.run(rotateBoatAccountKeyOp(boatAccountId, { apiKey }))),
303
305
  check: async (boatAccountId) => mapBoatAccount(await this.#runtime.run(checkBoatAccountOp(boatAccountId))),
304
306
  prove: async (boatAccountId) => await this.#runtime.run(proveBoatAccountOp(boatAccountId)),