sim 2.2.9-preview.214.1 → 2.2.9-preview.215.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.
@@ -1,12 +1,12 @@
1
1
  import type { Command } from 'commander';
2
- import { type GetWorkspaceOperationResponse } from '../../generated/v2-api';
3
- import { type SimClient } from '../../http/client';
2
+ import type { GetWorkspaceOperationResponse } from '../../generated/v2-api';
3
+ import { type OperationClient } from '../../runtime/called-operations';
4
4
  type WorkspaceOperation = GetWorkspaceOperationResponse['data'];
5
5
  export declare function readWorkspaceOperation(raw: unknown): WorkspaceOperation;
6
6
  export declare function workspaceWaitTimeout(raw: unknown): number;
7
7
  export declare function assertWorkspaceOperationOutcome(report: WorkspaceOperation, timedOut?: boolean): void;
8
8
  /** Polls only the existing operation; uncertain mutations are never retried with a new ID. */
9
- export declare function waitWorkspaceOperation(client: SimClient, workspaceId: string, operationId: string, timeoutSeconds: number, initial?: WorkspaceOperation): Promise<{
9
+ export declare function waitWorkspaceOperation(client: OperationClient<'getWorkspaceOperation'>, workspaceId: string, operationId: string, timeoutSeconds: number, initial?: WorkspaceOperation): Promise<{
10
10
  report: WorkspaceOperation;
11
11
  timedOut: boolean;
12
12
  }>;
package/dist/context.d.ts CHANGED
@@ -15,6 +15,7 @@ export interface GlobalOptions {
15
15
  */
16
16
  export declare function globalsOf(command: Command): GlobalOptions;
17
17
  export declare function profileFrom(command: Command, extra?: ProfileOverrides): ResolvedProfile;
18
+ /** The raw client behind a command. Only `connect` calls it: commands reach the API declared. */
18
19
  export declare function clientFrom(command: Command): {
19
20
  client: SimClient;
20
21
  profile: ResolvedProfile;