@versionone/agility-sdk 1.0.0-alpha.5 → 1.0.0-alpha.6

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.cts CHANGED
@@ -163,7 +163,7 @@ interface UnauthorizedContext {
163
163
  declare function createFetchTransport(config: FetchTransportConfig): Transport;
164
164
 
165
165
  interface ClientConfig extends Pick<FetchTransportConfig, "credentials" | "onUnauthorized" | "unauthorizedStatuses"> {
166
- /** The instance base URL: "https://www7.v1host.com/V1Production". */
166
+ /** The instance base URL: "https://agility.example.com/MyInstance". */
167
167
  baseUrl: string;
168
168
  /** A ready Authorization header value ("Basic …" for a dev instance). Wins over accessToken. */
169
169
  authorization?: string;
@@ -187,13 +187,13 @@ type Oid = string;
187
187
  /** An ISO-8601 date-time as the API renders it, e.g. "2026-09-06T13:52:51.903". */
188
188
  type DateString = string;
189
189
  /**
190
- * An AssetState as the model carries it: the names of Core's AssetState
191
- * enum (VersionOne/AssetState.cs: Future 0, Active 64, Closed 128, Dead 192,
190
+ * An AssetState as the model carries it: the names of the server's AssetState
191
+ * enum (Future 0, Active 64, Closed 128, Dead 192,
192
192
  * OldBrokenDownStory 208, Deprecated 254, Deleted 255). rest-1 renders the
193
193
  * number and query.v1 the name; the wire layer normalises to the name.
194
194
  */
195
195
  type AssetStateValue = "Future" | "Active" | "Closed" | "Dead" | "Template" | "OldBrokenDownStory" | "Deprecated" | "Deleted";
196
- /** Core's AssetState codes, by name — the rest-1 rendering. */
196
+ /** The server's AssetState codes, by name — the rest-1 rendering. */
197
197
  declare const ASSET_STATE_CODES: Record<AssetStateValue, number>;
198
198
  /**
199
199
  * An AssetState by name, whichever way the endpoint spelled it: api/asset
@@ -295,7 +295,7 @@ declare namespace attachment {
295
295
  *
296
296
  * Two ways in for the bytes, chosen by size:
297
297
  * - inline: one api/asset create with Content as Base64. One request,
298
- * what agility-rooms does; the JSON is a third larger than the file.
298
+ * what a browser app consumer does; the JSON is a third larger than the file.
299
299
  * - two-step, as the docs prescribe for anything not tiny: create the
300
300
  * Attachment with empty Content, then POST the raw bytes. A failed
301
301
  * upload leaves an empty Attachment, which is reported, not hidden.
@@ -4178,7 +4178,7 @@ interface QueryBody<F extends string = string> {
4178
4178
  * scalar or a single relation (null clears it). A multi-value relation is
4179
4179
  * changed with `{ add: [...], remove: [...] }`. A plain list does NOT
4180
4180
  * replace a multi-value relation: the server ADDS its members, like rest-1's
4181
- * `act: "add"` (seen live on v1sdktesting, 2026-11-07). To set one exactly,
4181
+ * `act: "add"` (seen live on the API-testing instance, 2026-11-07). To set one exactly,
4182
4182
  * remove what should go and add what should come. A change comment goes in
4183
4183
  * the update node as `ChangeComment`.
4184
4184
  */
@@ -4621,7 +4621,7 @@ declare class Schema implements AttributeLookup {
4621
4621
 
4622
4622
  /**
4623
4623
  * The batch service: an api/asset batch sent with a record of what it did.
4624
- * Ported from gh-v1's lib/batch.js — preview, describe, snapshot, send
4624
+ * Ported from the CLI consumer's batch module — preview, describe, snapshot, send
4625
4625
  * (guarded by default), receipt, reverse — minus what is the CLI's: file
4626
4626
  * I/O, console output, permalinks and the confirm prompt (a callback here).
4627
4627
  *
@@ -4634,7 +4634,7 @@ declare class Schema implements AttributeLookup {
4634
4634
  * which were skipped by the guard; and a reverse batch that undoes what
4635
4635
  * succeeded, best effort, with a note for anything it cannot.
4636
4636
  *
4637
- * Closing a workitem cascades: Core's Inactivate and QuickClose also close
4637
+ * Closing a workitem cascades: the server's Inactivate and QuickClose also close
4638
4638
  * its open descendants, and Reactivate reopens only the asset it names. So
4639
4639
  * before a batch that closes, the receipt records each closing target's
4640
4640
  * open descendants; after it, the ones the close actually closed; and the
@@ -4853,7 +4853,7 @@ declare function importantName(token: string, types: readonly AssetTypeToken[]):
4853
4853
  /**
4854
4854
  * The guard: an api/asset batch sent as a compare-and-set, so a change only
4855
4855
  * lands on an asset nobody else has changed since it was read. Ported from
4856
- * gh-v1's lib/batch.js `guarded()`, with a different stamp.
4856
+ * the CLI consumer's batch `guarded()`, with a different stamp.
4857
4857
  *
4858
4858
  * How: preview the batch (the server's projection expands every query-
4859
4859
  * scoped update and execute into one command per asset), read each touched
package/dist/index.d.ts CHANGED
@@ -163,7 +163,7 @@ interface UnauthorizedContext {
163
163
  declare function createFetchTransport(config: FetchTransportConfig): Transport;
164
164
 
165
165
  interface ClientConfig extends Pick<FetchTransportConfig, "credentials" | "onUnauthorized" | "unauthorizedStatuses"> {
166
- /** The instance base URL: "https://www7.v1host.com/V1Production". */
166
+ /** The instance base URL: "https://agility.example.com/MyInstance". */
167
167
  baseUrl: string;
168
168
  /** A ready Authorization header value ("Basic …" for a dev instance). Wins over accessToken. */
169
169
  authorization?: string;
@@ -187,13 +187,13 @@ type Oid = string;
187
187
  /** An ISO-8601 date-time as the API renders it, e.g. "2026-09-06T13:52:51.903". */
188
188
  type DateString = string;
189
189
  /**
190
- * An AssetState as the model carries it: the names of Core's AssetState
191
- * enum (VersionOne/AssetState.cs: Future 0, Active 64, Closed 128, Dead 192,
190
+ * An AssetState as the model carries it: the names of the server's AssetState
191
+ * enum (Future 0, Active 64, Closed 128, Dead 192,
192
192
  * OldBrokenDownStory 208, Deprecated 254, Deleted 255). rest-1 renders the
193
193
  * number and query.v1 the name; the wire layer normalises to the name.
194
194
  */
195
195
  type AssetStateValue = "Future" | "Active" | "Closed" | "Dead" | "Template" | "OldBrokenDownStory" | "Deprecated" | "Deleted";
196
- /** Core's AssetState codes, by name — the rest-1 rendering. */
196
+ /** The server's AssetState codes, by name — the rest-1 rendering. */
197
197
  declare const ASSET_STATE_CODES: Record<AssetStateValue, number>;
198
198
  /**
199
199
  * An AssetState by name, whichever way the endpoint spelled it: api/asset
@@ -295,7 +295,7 @@ declare namespace attachment {
295
295
  *
296
296
  * Two ways in for the bytes, chosen by size:
297
297
  * - inline: one api/asset create with Content as Base64. One request,
298
- * what agility-rooms does; the JSON is a third larger than the file.
298
+ * what a browser app consumer does; the JSON is a third larger than the file.
299
299
  * - two-step, as the docs prescribe for anything not tiny: create the
300
300
  * Attachment with empty Content, then POST the raw bytes. A failed
301
301
  * upload leaves an empty Attachment, which is reported, not hidden.
@@ -4178,7 +4178,7 @@ interface QueryBody<F extends string = string> {
4178
4178
  * scalar or a single relation (null clears it). A multi-value relation is
4179
4179
  * changed with `{ add: [...], remove: [...] }`. A plain list does NOT
4180
4180
  * replace a multi-value relation: the server ADDS its members, like rest-1's
4181
- * `act: "add"` (seen live on v1sdktesting, 2026-11-07). To set one exactly,
4181
+ * `act: "add"` (seen live on the API-testing instance, 2026-11-07). To set one exactly,
4182
4182
  * remove what should go and add what should come. A change comment goes in
4183
4183
  * the update node as `ChangeComment`.
4184
4184
  */
@@ -4621,7 +4621,7 @@ declare class Schema implements AttributeLookup {
4621
4621
 
4622
4622
  /**
4623
4623
  * The batch service: an api/asset batch sent with a record of what it did.
4624
- * Ported from gh-v1's lib/batch.js — preview, describe, snapshot, send
4624
+ * Ported from the CLI consumer's batch module — preview, describe, snapshot, send
4625
4625
  * (guarded by default), receipt, reverse — minus what is the CLI's: file
4626
4626
  * I/O, console output, permalinks and the confirm prompt (a callback here).
4627
4627
  *
@@ -4634,7 +4634,7 @@ declare class Schema implements AttributeLookup {
4634
4634
  * which were skipped by the guard; and a reverse batch that undoes what
4635
4635
  * succeeded, best effort, with a note for anything it cannot.
4636
4636
  *
4637
- * Closing a workitem cascades: Core's Inactivate and QuickClose also close
4637
+ * Closing a workitem cascades: the server's Inactivate and QuickClose also close
4638
4638
  * its open descendants, and Reactivate reopens only the asset it names. So
4639
4639
  * before a batch that closes, the receipt records each closing target's
4640
4640
  * open descendants; after it, the ones the close actually closed; and the
@@ -4853,7 +4853,7 @@ declare function importantName(token: string, types: readonly AssetTypeToken[]):
4853
4853
  /**
4854
4854
  * The guard: an api/asset batch sent as a compare-and-set, so a change only
4855
4855
  * lands on an asset nobody else has changed since it was read. Ported from
4856
- * gh-v1's lib/batch.js `guarded()`, with a different stamp.
4856
+ * the CLI consumer's batch `guarded()`, with a different stamp.
4857
4857
  *
4858
4858
  * How: preview the batch (the server's projection expands every query-
4859
4859
  * scoped update and execute into one command per asset), read each touched