sim 2.3.0-preview.324.1 → 2.3.0-preview.325.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.
package/README.md CHANGED
@@ -325,8 +325,9 @@ creates and dry runs, are resent up to 6 times first, each wait the longer of `R
325
325
  release both exited 1. Ctrl-C exits 130; a source apply or create already sent is finished and
326
326
  saved into its directory first. The `workflows source` and `workspaces source` commands also use
327
327
  5 (stale), 6 (a locked workflow or folder; a locked block exits 1), 7 (too large), 8 (a workspace
328
- apply stopped part-way), 10 (busy), 11 (status: local changes) and 12 (status: the server
329
- changed). Command-specific codes: [Exit codes](https://docs.sim.ai/cli/scripting#exit-codes).
328
+ apply stopped part-way), 10 (busy), 11 (status: local changes), 12 (status: the server changed),
329
+ 14 (a write without `--yes` where no terminal can ask: it printed the plan and wrote nothing) and 15
330
+ (a workspace apply wrote part of its plan and held the rest back). Command-specific codes: [Exit codes](https://docs.sim.ai/cli/scripting#exit-codes).
330
331
 
331
332
  ## Workflows and workspaces as code
332
333
 
@@ -0,0 +1,25 @@
1
+ import type { GetWorkflowDeploymentResponse } from '../../generated/v2-api';
2
+ import type { OperationClient } from '../../runtime/called-operations';
3
+ /** A webhook of a deployed workflow, which callers reach at `url`. */
4
+ export interface DeployedUrl {
5
+ /** The block key, with its const name when the lock names one: `leadin (hook)`. */
6
+ block: string;
7
+ url: string;
8
+ }
9
+ /** How source names a block: its key, with its const when that differs (`leadin (hook)`). */
10
+ export declare function blockLabel(key: string, ident: string): string;
11
+ /**
12
+ * Each block id of a lock (`.sim/lock.json`, parsed or as JSON text) mapped to its
13
+ * {@link blockLabel}; empty when the lock does not parse.
14
+ */
15
+ export declare function lockBlockNames(lockInput: unknown): Map<string, string>;
16
+ /** The deployment's webhook URLs, each named through `names` (block id → source name). */
17
+ export declare function namedUrls(webhooks: GetWorkflowDeploymentResponse['data']['webhooks'], names: ReadonlyMap<string, string>): DeployedUrl[];
18
+ /**
19
+ * The URL of each webhook `workflowId`'s live deployment serves, named through `names`. A failed
20
+ * read is reported and yields none: the deploy itself stands. A cancelled read is rethrown, so a
21
+ * cancelled command never reports success.
22
+ */
23
+ export declare function deployedUrls(client: OperationClient<'getWorkflowDeployment'>, workflowId: string, names: ReadonlyMap<string, string>): Promise<DeployedUrl[]>;
24
+ /** The URLs as one display line: `leadin (hook) https://…, …`. */
25
+ export declare function deployedUrlsText(urls: readonly DeployedUrl[]): string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Prints where a failed run failed in `dir` (on stderr, and as a GitHub Actions annotation in a
3
+ * job), or that `dir` cannot say. Prints nothing for a failure that names no block (a timeout, an
4
+ * input refused), and never throws: a directory it cannot read is a note, so the run's own failure
5
+ * and exit code stand.
6
+ */
7
+ export declare function printRunFailureSite(dir: string, workflowId: string, error: unknown): Promise<void>;
@@ -75,6 +75,8 @@ export declare function reportCheck(output: Parameters<typeof printProtocolResul
75
75
  verbose?: boolean;
76
76
  bound?: AnswerBound;
77
77
  unlisted?: UnlistedCounts;
78
+ /** The source directory, which GitHub Actions annotations resolve finding files under. */
79
+ dir?: string;
78
80
  }): void;
79
81
  /** The catalog a cache read found, or a refusal naming `get`, the command that caches one. */
80
82
  export declare function cachedOrRefuse(catalog: BlockCatalog | null, workspaceId: string, get: string): BlockCatalog;
@@ -11,7 +11,7 @@ import { type Stats } from 'node:fs';
11
11
  */
12
12
  export declare const SOURCE_DIR_LOCK = ".sim/command.lock";
13
13
  /** The help line every command that holds {@link SOURCE_DIR_LOCK} adds to its exit codes. */
14
- export declare const SOURCE_DIR_BUSY_HELP = "\nExit 10 (busy, retry): another sim workspaces source command is using this directory\n(SOURCE_DIR_BUSY); nothing was read or written. Run this one again once it finished.";
14
+ export declare const SOURCE_DIR_BUSY_HELP = "\nExit 10 (busy, retry): another sim workspaces source or workflows source command is using\nthis directory or a workflow folder in it (SOURCE_DIR_BUSY); nothing was read or written. Run this one\nagain once it finished.";
15
15
  /** The lock folder a command found, as it found it: which folder, and when it last changed. */
16
16
  type LockSighting = Pick<Stats, 'dev' | 'ino' | 'mtimeMs'>;
17
17
  /**
@@ -0,0 +1,4 @@
1
+ /** `sim workflows source --help`, after the command list. */
2
+ export declare const WORKFLOW_SOURCE_LOOP_HELP: string;
3
+ /** `sim workspaces source --help`, after the command list. */
4
+ export declare const WORKSPACE_SOURCE_LOOP_HELP: string;
@@ -6,8 +6,11 @@
6
6
  import type { BlockCatalog } from '@sim/workflow-code';
7
7
  /** Which directory a primer is for. */
8
8
  export type PrimerKind = 'workflow' | 'workspace';
9
- /** The primer without its builder snippets stays within this many bytes. */
10
- export declare const PRIMER_MAX_BYTES = 3072;
9
+ /**
10
+ * The primer without its builder snippets stays within this many bytes: about one screen, room for
11
+ * the rules agents otherwise spend a lookup on (renames, failures, test runs).
12
+ */
13
+ export declare const PRIMER_MAX_BYTES = 4096;
11
14
  /** The primer for a `kind` directory, without builder snippets. */
12
15
  export declare function sourcePrimer(kind: PrimerKind): string;
13
16
  /** The primer with the snippets of the builders `sources` call. */
@@ -18,6 +18,8 @@ export declare function refusedExitCode(diagnostics: ReadonlyArray<Pick<Diagnost
18
18
  type ResultDiagnostic = Omit<FlatDiagnostic, 'frame' | 'code'> & {
19
19
  code: Diagnostic['code'];
20
20
  };
21
+ /** Whether `format` prints one machine document on stdout rather than lines for a person. */
22
+ export declare function isMachine(format: OutputFormat): boolean;
21
23
  /** Records `key` in `printed`, returning whether it was new. */
22
24
  export declare function fresh(printed: Set<string>, key: string): boolean;
23
25
  /**
@@ -40,11 +42,13 @@ export interface FindingsOutput {
40
42
  };
41
43
  }
42
44
  /**
43
- * The {@link FindingsOutput} of `format`; `verbose` keeps info findings in a machine result. It is
45
+ * The {@link FindingsOutput} of `format`; `verbose` keeps info findings in a machine result, and
46
+ * the {@link QUIET_INFO_CODES} in a display one. In a GitHub Actions step every error and warning
47
+ * is also annotated at its file under the source directory `dir`, whatever the format. It is
44
48
  * the CLI's output edge, where each finding's message and hint are cut (`boundFindingText`): a
45
49
  * finding an offline check made is as long as its source made it until here.
46
50
  */
47
- export declare function findingsOutput(format: OutputFormat, verbose?: boolean): FindingsOutput;
51
+ export declare function findingsOutput(format: OutputFormat, verbose?: boolean, dir?: string): FindingsOutput;
48
52
  /** A resource a source write created, as its result lists it; `id` once it is written. */
49
53
  export interface CreatedResource {
50
54
  kind: string;
@@ -282,6 +282,8 @@ export interface CommandSpec {
282
282
  variants?: readonly CommandVariantSpec[];
283
283
  /** One-line help. Falls back to the OpenAPI summary for the operation. */
284
284
  describe?: string;
285
+ /** Prose `--help` prints after the options: how the fields combine, where one flag cannot say. */
286
+ helpText?: string;
285
287
  /** Per-field flag overrides, keyed by the contract's field name. */
286
288
  flags?: Record<string, FlagSpec>;
287
289
  /** Friendly mutually-exclusive flags for an otherwise opaque union body. */
@@ -70,5 +70,13 @@ export declare const AUTH_REQUIRED_EXIT_CODE = 13;
70
70
  * the same command with `--yes` to apply that plan.
71
71
  */
72
72
  export declare const SOURCE_PLANNED_EXIT_CODE = 14;
73
+ /**
74
+ * A `workspaces source apply` (or a promotion with `--to`) that wrote part of its plan and held the
75
+ * rest back: a change that uses a declared secret the workspace has no value for, or a declared
76
+ * credential key nothing binds to. What was written is saved; set the secret or connect the
77
+ * credential and apply again. Apart from exit 1 (nothing written), so a script can tell a clean
78
+ * refusal from a target left half-applied.
79
+ */
80
+ export declare const SOURCE_HELD_EXIT_CODE = 15;
73
81
  /** The error code of an {@link AUTH_REQUIRED_EXIT_CODE} refusal the CLI raises itself. */
74
82
  export declare const AUTH_REQUIRED_CODE = "AUTH_REQUIRED";
@@ -13860,7 +13860,7 @@ export declare const V2_OPERATIONS: {
13860
13860
  readonly path: '/api/v2/tables/[tableId]/columns';
13861
13861
  readonly pathParams: readonly ['tableId'];
13862
13862
  readonly pathParamDocs: {
13863
- readonly tableId: 'Unique table identifier.';
13863
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
13864
13864
  };
13865
13865
  readonly responseMode: 'json';
13866
13866
  readonly summary: 'Add column';
@@ -13882,7 +13882,7 @@ export declare const V2_OPERATIONS: {
13882
13882
  readonly path: '/api/v2/tables/[tableId]/groups';
13883
13883
  readonly pathParams: readonly ['tableId'];
13884
13884
  readonly pathParamDocs: {
13885
- readonly tableId: 'Unique table identifier.';
13885
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
13886
13886
  };
13887
13887
  readonly responseMode: 'json';
13888
13888
  readonly summary: 'Add workflow group';
@@ -14278,7 +14278,7 @@ export declare const V2_OPERATIONS: {
14278
14278
  readonly path: '/api/v2/tables/[tableId]/rows/bulk-update';
14279
14279
  readonly pathParams: readonly ['tableId'];
14280
14280
  readonly pathParamDocs: {
14281
- readonly tableId: 'Unique table identifier.';
14281
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
14282
14282
  };
14283
14283
  readonly responseMode: 'json';
14284
14284
  readonly summary: 'Bulk update rows';
@@ -14335,7 +14335,7 @@ export declare const V2_OPERATIONS: {
14335
14335
  readonly path: '/api/v2/tables/[tableId]/dispatches/[dispatchId]';
14336
14336
  readonly pathParams: readonly ['tableId', 'dispatchId'];
14337
14337
  readonly pathParamDocs: {
14338
- readonly tableId: 'Unique table identifier.';
14338
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
14339
14339
  readonly dispatchId: 'Unique table run-dispatch identifier.';
14340
14340
  };
14341
14341
  readonly responseMode: 'json';
@@ -14353,7 +14353,7 @@ export declare const V2_OPERATIONS: {
14353
14353
  readonly path: '/api/v2/tables/[tableId]/exports/[exportId]';
14354
14354
  readonly pathParams: readonly ['tableId', 'exportId'];
14355
14355
  readonly pathParamDocs: {
14356
- readonly tableId: 'Unique table identifier.';
14356
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
14357
14357
  readonly exportId: 'Unique table-export identifier.';
14358
14358
  };
14359
14359
  readonly responseMode: 'json';
@@ -14394,7 +14394,7 @@ export declare const V2_OPERATIONS: {
14394
14394
  readonly path: '/api/v2/tables/[tableId]/cancel-runs';
14395
14395
  readonly pathParams: readonly ['tableId'];
14396
14396
  readonly pathParamDocs: {
14397
- readonly tableId: 'Unique table identifier.';
14397
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
14398
14398
  };
14399
14399
  readonly responseMode: 'json';
14400
14400
  readonly summary: 'Cancel column runs';
@@ -15607,7 +15607,7 @@ export declare const V2_OPERATIONS: {
15607
15607
  readonly path: '/api/v2/tables/[tableId]/dispatches';
15608
15608
  readonly pathParams: readonly ['tableId'];
15609
15609
  readonly pathParamDocs: {
15610
- readonly tableId: 'Unique table identifier.';
15610
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
15611
15611
  };
15612
15612
  readonly responseMode: 'json';
15613
15613
  readonly summary: 'Create run dispatch';
@@ -15651,7 +15651,7 @@ export declare const V2_OPERATIONS: {
15651
15651
  readonly path: '/api/v2/tables/[tableId]/exports';
15652
15652
  readonly pathParams: readonly ['tableId'];
15653
15653
  readonly pathParamDocs: {
15654
- readonly tableId: 'Unique table identifier.';
15654
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
15655
15655
  };
15656
15656
  readonly responseMode: 'json';
15657
15657
  readonly summary: 'Create table export';
@@ -15760,7 +15760,7 @@ export declare const V2_OPERATIONS: {
15760
15760
  readonly path: '/api/v2/tables/[tableId]/rows';
15761
15761
  readonly pathParams: readonly ['tableId'];
15762
15762
  readonly pathParamDocs: {
15763
- readonly tableId: 'Unique table identifier.';
15763
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
15764
15764
  };
15765
15765
  readonly responseMode: 'json';
15766
15766
  readonly summary: 'Create rows';
@@ -15778,7 +15778,7 @@ export declare const V2_OPERATIONS: {
15778
15778
  readonly path: '/api/v2/tables/[tableId]/views';
15779
15779
  readonly pathParams: readonly ['tableId'];
15780
15780
  readonly pathParamDocs: {
15781
- readonly tableId: 'Unique table identifier.';
15781
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
15782
15782
  };
15783
15783
  readonly responseMode: 'json';
15784
15784
  readonly summary: 'Create view';
@@ -16345,7 +16345,7 @@ export declare const V2_OPERATIONS: {
16345
16345
  readonly path: '/api/v2/tables/[tableId]';
16346
16346
  readonly pathParams: readonly ['tableId'];
16347
16347
  readonly pathParamDocs: {
16348
- readonly tableId: 'Unique table identifier.';
16348
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
16349
16349
  };
16350
16350
  readonly responseMode: 'json';
16351
16351
  readonly summary: 'Delete table';
@@ -16362,7 +16362,7 @@ export declare const V2_OPERATIONS: {
16362
16362
  readonly path: '/api/v2/tables/[tableId]/columns';
16363
16363
  readonly pathParams: readonly ['tableId'];
16364
16364
  readonly pathParamDocs: {
16365
- readonly tableId: 'Unique table identifier.';
16365
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
16366
16366
  };
16367
16367
  readonly responseMode: 'json';
16368
16368
  readonly summary: 'Delete column';
@@ -16409,7 +16409,7 @@ export declare const V2_OPERATIONS: {
16409
16409
  readonly path: '/api/v2/tables/[tableId]/rows/[rowId]';
16410
16410
  readonly pathParams: readonly ['tableId', 'rowId'];
16411
16411
  readonly pathParamDocs: {
16412
- readonly tableId: 'Unique table identifier.';
16412
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
16413
16413
  readonly rowId: 'Unique table row identifier.';
16414
16414
  };
16415
16415
  readonly responseMode: 'json';
@@ -16427,7 +16427,7 @@ export declare const V2_OPERATIONS: {
16427
16427
  readonly path: '/api/v2/tables/[tableId]/rows';
16428
16428
  readonly pathParams: readonly ['tableId'];
16429
16429
  readonly pathParamDocs: {
16430
- readonly tableId: 'Unique table identifier.';
16430
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
16431
16431
  };
16432
16432
  readonly responseMode: 'json';
16433
16433
  readonly summary: 'Delete rows';
@@ -16457,7 +16457,7 @@ export declare const V2_OPERATIONS: {
16457
16457
  readonly path: '/api/v2/tables/[tableId]/views/[viewId]';
16458
16458
  readonly pathParams: readonly ['tableId', 'viewId'];
16459
16459
  readonly pathParamDocs: {
16460
- readonly tableId: 'Unique table identifier.';
16460
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
16461
16461
  readonly viewId: 'Unique saved-view identifier.';
16462
16462
  };
16463
16463
  readonly responseMode: 'json';
@@ -16521,7 +16521,7 @@ export declare const V2_OPERATIONS: {
16521
16521
  readonly path: '/api/v2/tables/[tableId]/groups';
16522
16522
  readonly pathParams: readonly ['tableId'];
16523
16523
  readonly pathParamDocs: {
16524
- readonly tableId: 'Unique table identifier.';
16524
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
16525
16525
  };
16526
16526
  readonly responseMode: 'json';
16527
16527
  readonly summary: 'Delete workflow group';
@@ -17082,7 +17082,7 @@ export declare const V2_OPERATIONS: {
17082
17082
  readonly path: '/api/v2/blocks/[blockId]';
17083
17083
  readonly pathParams: readonly ['blockId'];
17084
17084
  readonly pathParamDocs: {
17085
- readonly blockId: 'Block type identifier. An unversioned base type resolves to the newest visible version. The response echoes the resolved ID.';
17085
+ readonly blockId: 'Block type identifier. An unversioned base type resolves to the newest visible version. The response echoes the resolved ID. A legacy or deprecated block (such as `starter`) is readable by its exact ID, and its description opens with the block that replaces it.';
17086
17086
  };
17087
17087
  readonly responseMode: 'json';
17088
17088
  readonly summary: 'Get block';
@@ -17638,7 +17638,7 @@ export declare const V2_OPERATIONS: {
17638
17638
  readonly path: '/api/v2/tables/[tableId]/rows/[rowId]/enrichment/[groupId]';
17639
17639
  readonly pathParams: readonly ['tableId', 'rowId', 'groupId'];
17640
17640
  readonly pathParamDocs: {
17641
- readonly tableId: 'Unique table identifier.';
17641
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
17642
17642
  readonly rowId: 'Unique table row identifier.';
17643
17643
  readonly groupId: 'Workflow or enrichment group to run.';
17644
17644
  };
@@ -17800,7 +17800,7 @@ export declare const V2_OPERATIONS: {
17800
17800
  readonly path: '/api/v2/tables/[tableId]';
17801
17801
  readonly pathParams: readonly ['tableId'];
17802
17802
  readonly pathParamDocs: {
17803
- readonly tableId: 'Unique table identifier.';
17803
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
17804
17804
  };
17805
17805
  readonly responseMode: 'json';
17806
17806
  readonly summary: 'Get table';
@@ -17817,7 +17817,7 @@ export declare const V2_OPERATIONS: {
17817
17817
  readonly path: '/api/v2/tables/[tableId]/dispatches/[dispatchId]';
17818
17818
  readonly pathParams: readonly ['tableId', 'dispatchId'];
17819
17819
  readonly pathParamDocs: {
17820
- readonly tableId: 'Unique table identifier.';
17820
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
17821
17821
  readonly dispatchId: 'Unique table run-dispatch identifier.';
17822
17822
  };
17823
17823
  readonly responseMode: 'json';
@@ -17835,7 +17835,7 @@ export declare const V2_OPERATIONS: {
17835
17835
  readonly path: '/api/v2/tables/[tableId]/exports/[exportId]';
17836
17836
  readonly pathParams: readonly ['tableId', 'exportId'];
17837
17837
  readonly pathParamDocs: {
17838
- readonly tableId: 'Unique table identifier.';
17838
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
17839
17839
  readonly exportId: 'Unique table-export identifier.';
17840
17840
  };
17841
17841
  readonly responseMode: 'json';
@@ -17876,7 +17876,7 @@ export declare const V2_OPERATIONS: {
17876
17876
  readonly path: '/api/v2/tables/[tableId]/rows/[rowId]';
17877
17877
  readonly pathParams: readonly ['tableId', 'rowId'];
17878
17878
  readonly pathParamDocs: {
17879
- readonly tableId: 'Unique table identifier.';
17879
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
17880
17880
  readonly rowId: 'Unique table row identifier.';
17881
17881
  };
17882
17882
  readonly responseMode: 'json';
@@ -17898,7 +17898,7 @@ export declare const V2_OPERATIONS: {
17898
17898
  readonly path: '/api/v2/tables/[tableId]/views/[viewId]';
17899
17899
  readonly pathParams: readonly ['tableId', 'viewId'];
17900
17900
  readonly pathParamDocs: {
17901
- readonly tableId: 'Unique table identifier.';
17901
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
17902
17902
  readonly viewId: 'Unique saved-view identifier.';
17903
17903
  };
17904
17904
  readonly responseMode: 'json';
@@ -20158,7 +20158,7 @@ export declare const V2_OPERATIONS: {
20158
20158
  readonly path: '/api/v2/tables/[tableId]/dispatches';
20159
20159
  readonly pathParams: readonly ['tableId'];
20160
20160
  readonly pathParamDocs: {
20161
- readonly tableId: 'Unique table identifier.';
20161
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
20162
20162
  };
20163
20163
  readonly responseMode: 'json';
20164
20164
  readonly summary: 'List run dispatches';
@@ -20209,7 +20209,7 @@ export declare const V2_OPERATIONS: {
20209
20209
  readonly path: '/api/v2/tables/[tableId]/rows';
20210
20210
  readonly pathParams: readonly ['tableId'];
20211
20211
  readonly pathParamDocs: {
20212
- readonly tableId: 'Unique table identifier.';
20212
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
20213
20213
  };
20214
20214
  readonly responseMode: 'json';
20215
20215
  readonly summary: 'List rows';
@@ -20227,7 +20227,7 @@ export declare const V2_OPERATIONS: {
20227
20227
  };
20228
20228
  readonly cursor: {
20229
20229
  readonly kind: 'string';
20230
- readonly describe: 'Opaque cursor from the previous page. Send it back with the same sort and filters; only `limit` may change. Change anything else and pagination must restart without a cursor.';
20230
+ readonly describe: 'Opaque cursor from the previous page. Send it back with the same sort, filters and table reference (its id or its name, as the first page used); only `limit` may change. Change anything else and pagination must restart without a cursor.';
20231
20231
  };
20232
20232
  readonly includeRunState: {
20233
20233
  readonly kind: 'boolean';
@@ -20289,7 +20289,7 @@ export declare const V2_OPERATIONS: {
20289
20289
  readonly path: '/api/v2/tables/[tableId]/views';
20290
20290
  readonly pathParams: readonly ['tableId'];
20291
20291
  readonly pathParamDocs: {
20292
- readonly tableId: 'Unique table identifier.';
20292
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
20293
20293
  };
20294
20294
  readonly responseMode: 'json';
20295
20295
  readonly summary: 'List views';
@@ -20389,7 +20389,7 @@ export declare const V2_OPERATIONS: {
20389
20389
  readonly path: '/api/v2/tables/[tableId]/groups';
20390
20390
  readonly pathParams: readonly ['tableId'];
20391
20391
  readonly pathParamDocs: {
20392
- readonly tableId: 'Unique table identifier.';
20392
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
20393
20393
  };
20394
20394
  readonly responseMode: 'json';
20395
20395
  readonly summary: 'List workflow groups';
@@ -21252,7 +21252,7 @@ export declare const V2_OPERATIONS: {
21252
21252
  readonly path: '/api/v2/tables/[tableId]/query';
21253
21253
  readonly pathParams: readonly ['tableId'];
21254
21254
  readonly pathParamDocs: {
21255
- readonly tableId: 'Unique table identifier.';
21255
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
21256
21256
  };
21257
21257
  readonly responseMode: 'json';
21258
21258
  readonly summary: 'Query rows';
@@ -21277,7 +21277,7 @@ export declare const V2_OPERATIONS: {
21277
21277
  };
21278
21278
  readonly cursor: {
21279
21279
  readonly kind: 'string';
21280
- readonly describe: 'Opaque cursor returned by the previous query page.';
21280
+ readonly describe: 'Opaque cursor returned by the previous query page. Send it back under the same table reference (its id or its name, as the first page used).';
21281
21281
  };
21282
21282
  readonly includeRunState: {
21283
21283
  readonly kind: 'boolean';
@@ -21291,7 +21291,7 @@ export declare const V2_OPERATIONS: {
21291
21291
  readonly path: '/api/v2/tables/[tableId]/query/count';
21292
21292
  readonly pathParams: readonly ['tableId'];
21293
21293
  readonly pathParamDocs: {
21294
- readonly tableId: 'Unique table identifier.';
21294
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
21295
21295
  };
21296
21296
  readonly responseMode: 'json';
21297
21297
  readonly summary: 'Count rows';
@@ -21890,7 +21890,7 @@ export declare const V2_OPERATIONS: {
21890
21890
  readonly path: '/api/v2/tables/[tableId]/restore';
21891
21891
  readonly pathParams: readonly ['tableId'];
21892
21892
  readonly pathParamDocs: {
21893
- readonly tableId: 'Unique table identifier.';
21893
+ readonly tableId: 'Unique identifier of the archived table. A restore takes the id alone: archived tables need not have unique names.';
21894
21894
  };
21895
21895
  readonly responseMode: 'json';
21896
21896
  readonly summary: 'Restore table';
@@ -22092,7 +22092,7 @@ export declare const V2_OPERATIONS: {
22092
22092
  readonly path: '/api/v2/tables/[tableId]/rows/[rowId]/enrichment/[groupId]';
22093
22093
  readonly pathParams: readonly ['tableId', 'rowId', 'groupId'];
22094
22094
  readonly pathParamDocs: {
22095
- readonly tableId: 'Unique table identifier.';
22095
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
22096
22096
  readonly rowId: 'Unique table row identifier.';
22097
22097
  readonly groupId: 'Workflow or enrichment group to run.';
22098
22098
  };
@@ -22524,7 +22524,7 @@ export declare const V2_OPERATIONS: {
22524
22524
  readonly path: '/api/v2/tables/[tableId]/rows/search';
22525
22525
  readonly pathParams: readonly ['tableId'];
22526
22526
  readonly pathParamDocs: {
22527
- readonly tableId: 'Unique table identifier.';
22527
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
22528
22528
  };
22529
22529
  readonly responseMode: 'json';
22530
22530
  readonly summary: 'Search rows';
@@ -22636,7 +22636,7 @@ export declare const V2_OPERATIONS: {
22636
22636
  readonly path: '/api/v2/tables/[tableId]/exports/[exportId]/download';
22637
22637
  readonly pathParams: readonly ['tableId', 'exportId'];
22638
22638
  readonly pathParamDocs: {
22639
- readonly tableId: 'Unique table identifier.';
22639
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
22640
22640
  readonly exportId: 'Unique table-export identifier.';
22641
22641
  };
22642
22642
  readonly responseMode: 'json';
@@ -23398,7 +23398,7 @@ export declare const V2_OPERATIONS: {
23398
23398
  readonly path: '/api/v2/tables/[tableId]/rows';
23399
23399
  readonly pathParams: readonly ['tableId'];
23400
23400
  readonly pathParamDocs: {
23401
- readonly tableId: 'Unique table identifier.';
23401
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
23402
23402
  };
23403
23403
  readonly responseMode: 'json';
23404
23404
  readonly summary: 'Update rows by filter';
@@ -23547,7 +23547,7 @@ export declare const V2_OPERATIONS: {
23547
23547
  readonly path: '/api/v2/tables/[tableId]';
23548
23548
  readonly pathParams: readonly ['tableId'];
23549
23549
  readonly pathParamDocs: {
23550
- readonly tableId: 'Unique table identifier.';
23550
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
23551
23551
  };
23552
23552
  readonly responseMode: 'json';
23553
23553
  readonly summary: 'Update table';
@@ -23576,7 +23576,7 @@ export declare const V2_OPERATIONS: {
23576
23576
  readonly path: '/api/v2/tables/[tableId]/columns';
23577
23577
  readonly pathParams: readonly ['tableId'];
23578
23578
  readonly pathParamDocs: {
23579
- readonly tableId: 'Unique table identifier.';
23579
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
23580
23580
  };
23581
23581
  readonly responseMode: 'json';
23582
23582
  readonly summary: 'Update column';
@@ -23603,7 +23603,7 @@ export declare const V2_OPERATIONS: {
23603
23603
  readonly path: '/api/v2/tables/[tableId]/rows/[rowId]';
23604
23604
  readonly pathParams: readonly ['tableId', 'rowId'];
23605
23605
  readonly pathParamDocs: {
23606
- readonly tableId: 'Unique table identifier.';
23606
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
23607
23607
  readonly rowId: 'Unique table row identifier.';
23608
23608
  };
23609
23609
  readonly responseMode: 'json';
@@ -23626,7 +23626,7 @@ export declare const V2_OPERATIONS: {
23626
23626
  readonly path: '/api/v2/tables/[tableId]/views/[viewId]';
23627
23627
  readonly pathParams: readonly ['tableId', 'viewId'];
23628
23628
  readonly pathParamDocs: {
23629
- readonly tableId: 'Unique table identifier.';
23629
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
23630
23630
  readonly viewId: 'Unique saved-view identifier.';
23631
23631
  };
23632
23632
  readonly responseMode: 'json';
@@ -23684,7 +23684,7 @@ export declare const V2_OPERATIONS: {
23684
23684
  readonly path: '/api/v2/tables/[tableId]/groups';
23685
23685
  readonly pathParams: readonly ['tableId'];
23686
23686
  readonly pathParamDocs: {
23687
- readonly tableId: 'Unique table identifier.';
23687
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
23688
23688
  };
23689
23689
  readonly responseMode: 'json';
23690
23690
  readonly summary: 'Update workflow group';
@@ -24007,7 +24007,7 @@ export declare const V2_OPERATIONS: {
24007
24007
  readonly path: '/api/v2/tables/[tableId]/rows/upsert';
24008
24008
  readonly pathParams: readonly ['tableId'];
24009
24009
  readonly pathParamDocs: {
24010
- readonly tableId: 'Unique table identifier.';
24010
+ readonly tableId: 'Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id).';
24011
24011
  };
24012
24012
  readonly responseMode: 'json';
24013
24013
  readonly summary: 'Upsert row';
@@ -19,6 +19,8 @@ export declare class SimApiError extends Error {
19
19
  }
20
20
  /** The code of a request the caller cancelled (its signal aborted): not an unreachable server. */
21
21
  export declare const REQUEST_CANCELLED = "REQUEST_CANCELLED";
22
+ /** Whether `error` is a request its caller cancelled, which no best-effort read may swallow. */
23
+ export declare function isRequestCancelled(error: unknown): boolean;
22
24
  /**
23
25
  * Whether a request got no answer from the server: no connection or a timeout (status 0 with no
24
26
  * code, so never a cancellation), or one of the gateway `statuses` the caller treats as a gateway