@confighub/api 0.4.16 → 0.4.18

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
@@ -595,6 +595,26 @@ interface paths {
595
595
  patch?: never;
596
596
  trace?: never;
597
597
  };
598
+ "/promote": {
599
+ parameters: {
600
+ query?: never;
601
+ header?: never;
602
+ path?: never;
603
+ cookie?: never;
604
+ };
605
+ get?: never;
606
+ put?: never;
607
+ /**
608
+ * Promote changes into downstream variants
609
+ * @description Moves changes from upstream Spaces into the downstream variants selected by WhereSpace, SpaceFilterID, ChangeOrderID and TargetStage, and makes them match: Units are upgraded, emptied, revived and cloned, clones are placed in the variant's namespace, and their Links are copied. With a ChangeOrder only its range is promoted, and with a ChangeWorkflow the Stage's entry gates are enforced. Promoting again changes nothing.
610
+ */
611
+ post: operations["Promote"];
612
+ delete?: never;
613
+ options?: never;
614
+ head?: never;
615
+ patch?: never;
616
+ trace?: never;
617
+ };
598
618
  "/release": {
599
619
  parameters: {
600
620
  query?: never;
@@ -2931,7 +2951,7 @@ interface components {
2931
2951
  EndTagID?: string;
2932
2952
  /** @description The type of entity. */
2933
2953
  readonly EntityType?: string;
2934
- /** @description InScopeSpaceIDs is where the ChangeOrder is headed: the Spaces it propagates into, supplied by the client rather than derived from a query. Empty names a change without saying where it is headed, in which case the Spaces the ChangeOrder's Links reach when its scope is derived are recorded instead; an Invoke ChangeOrder has no Links to fall back on and requires a non-empty list. ResolvedSpaceIDs and ReleasedSpaceIDs are measured against it. Editing it re-derives what the ChangeOrder covers. */
2954
+ /** @description InScopeSpaceIDs is where the ChangeOrder is headed: the Spaces it propagates into, recorded as a list rather than asked again on each read. When WhereSpace or SpaceFilterID is set, the server writes it from that selection, and a write naming a different list is refused; otherwise the client supplies it. Empty names a change without saying where it is headed, in which case the Spaces the ChangeOrder's Links reach when its scope is derived are recorded instead; an Invoke ChangeOrder has no Links to fall back on and requires a non-empty list. ResolvedSpaceIDs and ReleasedSpaceIDs are measured against it. Changing it re-derives what the ChangeOrder covers. */
2935
2955
  InScopeSpaceIDs?: components["schemas"]["UUID"][];
2936
2956
  /**
2937
2957
  * Format: uuid
@@ -2953,6 +2973,7 @@ interface components {
2953
2973
  Parameters?: {
2954
2974
  [key: string]: unknown;
2955
2975
  };
2976
+ readonly PromotionOverrides?: components["schemas"]["ChangeOrderPromotionOverride"][];
2956
2977
  /** @description ReleasedRestoredSpaceIDs is where the undoing has been released: the Spaces in RestoredSpaceIDs whose Units are released at or past the Revision the restore Tag marks. Covering ReleasedSpaceIDs is what State reports as RestoreReleased. Derived when the ChangeOrder is read. */
2957
2978
  readonly ReleasedRestoredSpaceIDs?: components["schemas"]["UUID"][];
2958
2979
  /** @description ReleasedSpaceIDs is where the ChangeOrder has been released: the Spaces in scope whose Units in the Space's release are applied at or past the Revision the end Tag marks. Derived when the ChangeOrder is read. */
@@ -2973,6 +2994,12 @@ interface components {
2973
2994
  };
2974
2995
  /** @description Unique URL-safe identifier for the entity. */
2975
2996
  Slug: string;
2997
+ /**
2998
+ * Format: uuid
2999
+ * @description SpaceFilterID references a Filter (with From=Space) selecting where the ChangeOrder is headed, ANDed with WhereSpace when both are set. While either is set, the server evaluates the selection into InScopeSpaceIDs.
3000
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
3001
+ */
3002
+ SpaceFilterID?: string;
2976
3003
  /**
2977
3004
  * Format: uuid
2978
3005
  * @description Unique identifier for a space.
@@ -3008,6 +3035,46 @@ interface components {
3008
3035
  * @description An entity-specific sequence number used for optimistic concurrency control. The value read must be sent in calls to Update.
3009
3036
  */
3010
3037
  Version?: number;
3038
+ /**
3039
+ * @description Filter expression selecting where the ChangeOrder is headed, ANDed with SpaceFilterID when both are set. While either is set, the server evaluates the selection into InScopeSpaceIDs when the ChangeOrder is created, when either field changes, and on an update or patch with refresh_spaces. The specified string is an expression for the purpose of filtering
3040
+ * the list of Spaces returned. The expression syntax was inspired by SQL.
3041
+ * It supports conjunctions using `AND` of relational expressions of the form *attribute*
3042
+ * *operator* *attribute_or_literal*. The attribute names are case-sensitive and PascalCase,
3043
+ * as in the JSON encoding.
3044
+ * Strings support the following operators: `<`, `>`, `<=`, `>=`, `=`, `!=`, `LIKE`, `NOT LIKE`, `ILIKE`, `~~`, `!~~`, `~`, `~*`, `!~`, `!~*`, `IN`, `NOT IN`.
3045
+ * String pattern operators: `LIKE` and `~~` for pattern matching with `%` and `_` wildcards,
3046
+ * `ILIKE` for case-insensitive pattern matching, `NOT LIKE` and `!~~` for negated pattern matching.
3047
+ * String regex operators: `~` for regex matching, `~*` for case-insensitive regex,
3048
+ * `!~` and `!~*` for regex not matching (case-sensitive and insensitive).
3049
+ * Integers support the following operators: `<`, `>`, `<=`, `>=`, `=`, `!=`, `IN`, `NOT IN`.
3050
+ * UUIDs and boolean attributes support equality and inequality only.
3051
+ * UUID and time literals must be quoted as string literals.
3052
+ * String literals are quoted with single quotes, such as `'string'`.
3053
+ * Time literals use the same form as when serialized as JSON,
3054
+ * such as: `CreatedAt > '2025-02-18T23:16:34'`.
3055
+ * Integer and boolean literals are also supported for attributes of those types.
3056
+ * Arrays support the `?` operator to to match any element of the array,
3057
+ * as in `ApprovedBy ? '7c61626f-ddbe-41af-93f6-b69f4ab6d308'`.
3058
+ * Arrays can perform LEN() to check for length, as in `LEN(ApprovedBy) > 0`.
3059
+ * An attribute naming a list of other entities can be filtered on their attributes with a `*` segment,
3060
+ * as in `FromLink.*.Slug = 'upgrade-app'`, which holds when any element satisfies it.
3061
+ * Without the `*` such a reference is an error, since it names no single value to compare.
3062
+ * Map support the dot notation to specify a particular map key, as in `Labels.tier = 'Backend'`.
3063
+ * Maps support `IS NULL` and `IS NOT NULL` with dot notation to check for key absence or presence,
3064
+ * as in `Labels.tier IS NULL` (key doesn't exist) or `Labels.tier IS NOT NULL` (key exists).
3065
+ * Comparison results can be tested with `IS TRUE`, `IS FALSE`, `IS NOT TRUE`, and `IS NOT FALSE`.
3066
+ * These are useful for nullable columns: `MergeSourceID = '<uuid>' IS NOT FALSE` matches rows where MergeSourceID equals the value OR is NULL.
3067
+ * The `IN` and `NOT IN` operators accept a comma-separated list of values in parentheses,
3068
+ * such as `Slug IN ('slugone', 'slugtwo')` or `Labels.environment IN ('prod', 'staging')`.
3069
+ * Conjunctions are supported using the `AND` operator.
3070
+ * An example conjunction is:
3071
+ * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
3072
+ *
3073
+ * Supported attributes for filtering on Space: Annotations, AttributeFilterID, AttributeHash, AttributeIDs, CreatedAt, DeleteGates, DisplayName, Labels, OrganizationID, Permissions, ReleaseBridgeWorkerID, ReleaseTargetID, Slug, SpaceID, TriggerFilterID, TriggerHash, TriggerIDs, UpdatedAt.
3074
+ *
3075
+ * The whole string must be query-encoded.
3076
+ */
3077
+ WhereSpace?: string;
3011
3078
  /** @description WhereUnit narrows which Units of each Space in scope an Invoke ChangeOrder covers, and is refused on the other UpdateTypes. Empty covers every Unit. Unlike InScopeSpaceIDs it is asked again on every read, so a Unit added to a Space afterwards counts against that Space. Immutable. */
3012
3079
  WhereUnit?: string;
3013
3080
  };
@@ -3015,6 +3082,21 @@ interface components {
3015
3082
  ChangeOrder?: components["schemas"]["ChangeOrder"];
3016
3083
  Error?: components["schemas"]["ResponseError"];
3017
3084
  };
3085
+ ChangeOrderPromotionOverride: {
3086
+ FailedGates?: string[];
3087
+ /**
3088
+ * Format: date-time
3089
+ * @example 2006-01-02T15:04:05Z07:00
3090
+ */
3091
+ OverriddenAt?: string;
3092
+ Reason?: string;
3093
+ Stage?: string;
3094
+ /**
3095
+ * Format: uuid
3096
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
3097
+ */
3098
+ UserID?: string;
3099
+ };
3018
3100
  /** @description Defines an entity changeset. */
3019
3101
  ChangeSet: {
3020
3102
  /** @description An optional map of Annotation key/value pairs for tools to attach information to entities. */
@@ -3260,6 +3342,7 @@ interface components {
3260
3342
  Organization?: components["schemas"]["Organization"];
3261
3343
  RestoreTag?: components["schemas"]["Tag"];
3262
3344
  Space?: components["schemas"]["Space"];
3345
+ SpaceFilter?: components["schemas"]["Filter"];
3263
3346
  StartTag?: components["schemas"]["Tag"];
3264
3347
  UnitFilter?: components["schemas"]["Filter"];
3265
3348
  };
@@ -4276,6 +4359,150 @@ interface components {
4276
4359
  Permissions: {
4277
4360
  [key: string]: components["schemas"]["Subjects"];
4278
4361
  };
4362
+ PromoteGateResult: {
4363
+ /** @description Why the gate does not hold. */
4364
+ Message?: string;
4365
+ /** @description Promoted, Validated, Released, Healthy, or a custom prerequisite's name. */
4366
+ Prerequisite?: string;
4367
+ Satisfied?: boolean;
4368
+ /**
4369
+ * Format: uuid
4370
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4371
+ */
4372
+ SpaceID?: string;
4373
+ SpaceSlug?: string;
4374
+ };
4375
+ PromoteLinkResult: {
4376
+ /** @description Create, Unchanged, Skip, or Orphaned. */
4377
+ Action?: string;
4378
+ Error?: components["schemas"]["ResponseError"];
4379
+ FromUnitSlug?: string;
4380
+ /**
4381
+ * Format: uuid
4382
+ * @description Absent for a Link a dry run would create.
4383
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4384
+ */
4385
+ LinkID?: string;
4386
+ Reason?: string;
4387
+ Slug?: string;
4388
+ ToSpaceSlug?: string;
4389
+ ToUnitSlug?: string;
4390
+ /**
4391
+ * Format: uuid
4392
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4393
+ */
4394
+ UpstreamLinkID?: string;
4395
+ };
4396
+ PromoteRequest: {
4397
+ /** @description Recorded on each Unit write. */
4398
+ ChangeDescription?: string;
4399
+ /**
4400
+ * Format: uuid
4401
+ * @description The ChangeOrder to promote. Without one, everything each upstream has reached is promoted. With one, only its range is, into the Spaces it is headed for.
4402
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4403
+ */
4404
+ ChangeOrderID?: string;
4405
+ /**
4406
+ * Format: uuid
4407
+ * @description An existing open ChangeSet to record every write in.
4408
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4409
+ */
4410
+ ChangeSetID?: string;
4411
+ /** @description The Plan a previous dry run returned. If the plan now differs, nothing is written and the request fails with 412. */
4412
+ ExpectedPlan?: string;
4413
+ /** @description Promote even though the Stage's entry gates do not hold. Requires ForceReason, and Edit permission on the ChangeOrder, where the override is recorded. */
4414
+ Force?: boolean;
4415
+ /** @description Why the gates were overridden. Required with Force. */
4416
+ ForceReason?: string;
4417
+ /**
4418
+ * Format: uuid
4419
+ * @description A Filter over Spaces selecting the Spaces to promote. Intersected with the other selectors.
4420
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4421
+ */
4422
+ SpaceFilterID?: string;
4423
+ /** @description Merge each Unit's range as one rebased Revision rather than replaying each upstream Revision. */
4424
+ Squash?: boolean;
4425
+ /** @description A Stage of the ChangeOrder's ChangeWorkflow to promote into. Requires a ChangeOrder with a ChangeWorkflow. When empty, and neither WhereSpace nor SpaceFilterID is given, the next Stage the change has not reached. */
4426
+ TargetStage?: string;
4427
+ /** @description A where expression selecting the Spaces to promote. Intersected with the other selectors. */
4428
+ WhereSpace?: string;
4429
+ };
4430
+ PromoteResult: {
4431
+ /**
4432
+ * Format: uuid
4433
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4434
+ */
4435
+ ChangeOrderID?: string;
4436
+ /** @description Every Stage of the ChangeWorkflow already has the change; nothing was promoted. */
4437
+ Complete?: boolean;
4438
+ /** @description True when nothing was written. */
4439
+ DryRun?: boolean;
4440
+ /** @description Digest of the planned actions. Send it as ExpectedPlan to apply exactly this plan. */
4441
+ Plan?: string;
4442
+ /** @description In the order they were, or would be, promoted: a Space after any selected Space it takes from. */
4443
+ Spaces?: components["schemas"]["PromoteSpaceResult"][];
4444
+ /** @description The Stages entered, each with every gate evaluated over the Stage before it. */
4445
+ Stages?: components["schemas"]["PromoteStageResult"][];
4446
+ };
4447
+ PromoteSpaceResult: {
4448
+ /** @description Promote, Unchanged, Skipped, Blocked, or Failed. */
4449
+ Action?: string;
4450
+ Error?: components["schemas"]["ResponseError"];
4451
+ Links?: components["schemas"]["PromoteLinkResult"][];
4452
+ /** @description A dry run previewed this Space against its upstream as it is now, although the same request promotes that upstream first. */
4453
+ PreviewedAgainstCurrentUpstream?: boolean;
4454
+ /** @description Why the Space was Skipped or Blocked. */
4455
+ Reason?: string;
4456
+ /**
4457
+ * Format: uuid
4458
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4459
+ */
4460
+ SpaceID?: string;
4461
+ SpaceSlug?: string;
4462
+ Stage?: string;
4463
+ Units?: components["schemas"]["PromoteUnitResult"][];
4464
+ /**
4465
+ * Format: uuid
4466
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4467
+ */
4468
+ UpstreamSpaceID?: string;
4469
+ UpstreamSpaceSlug?: string;
4470
+ };
4471
+ PromoteStageResult: {
4472
+ /** @description The Stage was the next one the change has not reached, rather than named. */
4473
+ Chosen?: boolean;
4474
+ /** @description The gates did not hold and the promotion was forced. */
4475
+ Forced?: boolean;
4476
+ Gates?: components["schemas"]["PromoteGateResult"][];
4477
+ Name?: string;
4478
+ /** @description The Stage whose Spaces the gates are evaluated over. Empty for the first Stage, which has no gates. */
4479
+ PreviousStage?: string;
4480
+ };
4481
+ PromoteUnitResult: {
4482
+ /** @description Upgrade, Mark, Empty, Revive, Clone, Invoke, Unchanged, or Skip. */
4483
+ Action?: string;
4484
+ Conflicts?: components["schemas"]["MutationConflictList"];
4485
+ Error?: components["schemas"]["ResponseError"];
4486
+ Mutations?: components["schemas"]["ResourceMutationList"];
4487
+ /** Format: int64 */
4488
+ PreviousHeadMutationNum?: number;
4489
+ /** Format: int64 */
4490
+ PreviousHeadRevisionNum?: number;
4491
+ /** @description For Skip and Unchanged: NotCovered, CreatedAfterChangeOrder, or AlreadyTaken. */
4492
+ Reason?: string;
4493
+ Slug?: string;
4494
+ /**
4495
+ * Format: uuid
4496
+ * @description Absent for a clone a dry run would create.
4497
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4498
+ */
4499
+ UnitID?: string;
4500
+ /**
4501
+ * Format: uuid
4502
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4503
+ */
4504
+ UpstreamUnitID?: string;
4505
+ };
4279
4506
  /** @description UnitAction is a record of an operation queued for a Worker, such as a function invocation on a unit. Operations are delivered to the worker in creation order; if the worker is disconnected, pending operations are delivered when it reconnects. One or more UnitEvents will correspond to each UnitAction. */
4280
4507
  QueuedOperation: {
4281
4508
  Action?: components["schemas"]["ActionType"];
@@ -4434,6 +4661,11 @@ interface components {
4434
4661
  * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4435
4662
  */
4436
4663
  readonly TagID?: string;
4664
+ /**
4665
+ * Format: uuid
4666
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4667
+ */
4668
+ readonly TargetID?: string;
4437
4669
  /**
4438
4670
  * Format: int64
4439
4671
  * @description Number of Units bundled in the Release, captured at publish time.
@@ -8617,7 +8849,7 @@ interface operations {
8617
8849
  * An example conjunction is:
8618
8850
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
8619
8851
  *
8620
- * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
8852
+ * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, PromotionOverrides, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceFilterID, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereSpace, WhereUnit.
8621
8853
  *
8622
8854
  * The whole string must be query-encoded.
8623
8855
  */
@@ -8659,7 +8891,7 @@ interface operations {
8659
8891
  * The attribute names are case-sensitive, PascalCase, and
8660
8892
  * expected in a comma-separated list format as in the JSON encoding.
8661
8893
  *
8662
- * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceID, StartTagID, UnitFilterID.
8894
+ * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceFilterID, SpaceID, StartTagID, UnitFilterID.
8663
8895
  *
8664
8896
  * The whole string must be query-encoded.
8665
8897
  */
@@ -8785,7 +9017,7 @@ interface operations {
8785
9017
  * An example conjunction is:
8786
9018
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
8787
9019
  *
8788
- * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
9020
+ * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, PromotionOverrides, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceFilterID, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereSpace, WhereUnit.
8789
9021
  *
8790
9022
  * The whole string must be query-encoded.
8791
9023
  */
@@ -8827,7 +9059,7 @@ interface operations {
8827
9059
  * The attribute names are case-sensitive, PascalCase, and
8828
9060
  * expected in a comma-separated list format as in the JSON encoding.
8829
9061
  *
8830
- * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceID, StartTagID, UnitFilterID.
9062
+ * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceFilterID, SpaceID, StartTagID, UnitFilterID.
8831
9063
  *
8832
9064
  * The whole string must be query-encoded.
8833
9065
  */
@@ -8931,10 +9163,13 @@ interface operations {
8931
9163
  /** @description Unique URL-safe identifier for the entity. */
8932
9164
  Slug?: string | null;
8933
9165
  /** Format: uuid */
9166
+ SpaceFilterID?: string | null;
9167
+ /** Format: uuid */
8934
9168
  UnitFilterID?: string | null;
8935
9169
  UpdateType?: string | null;
8936
9170
  /** @description An entity-specific sequence number used for optimistic concurrency control. The value read must be sent in calls to Update. */
8937
9171
  Version?: number | null;
9172
+ WhereSpace?: string | null;
8938
9173
  WhereUnit?: string | null;
8939
9174
  };
8940
9175
  };
@@ -9061,7 +9296,7 @@ interface operations {
9061
9296
  * An example conjunction is:
9062
9297
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
9063
9298
  *
9064
- * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
9299
+ * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, PromotionOverrides, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceFilterID, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereSpace, WhereUnit.
9065
9300
  *
9066
9301
  * The whole string must be query-encoded.
9067
9302
  */
@@ -9103,7 +9338,7 @@ interface operations {
9103
9338
  * The attribute names are case-sensitive, PascalCase, and
9104
9339
  * expected in a comma-separated list format as in the JSON encoding.
9105
9340
  *
9106
- * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceID, StartTagID, UnitFilterID.
9341
+ * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceFilterID, SpaceID, StartTagID, UnitFilterID.
9107
9342
  *
9108
9343
  * The whole string must be query-encoded.
9109
9344
  */
@@ -9245,7 +9480,7 @@ interface operations {
9245
9480
  * An example conjunction is:
9246
9481
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
9247
9482
  *
9248
- * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
9483
+ * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, PromotionOverrides, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceFilterID, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereSpace, WhereUnit.
9249
9484
  *
9250
9485
  * The whole string must be query-encoded.
9251
9486
  */
@@ -9287,11 +9522,13 @@ interface operations {
9287
9522
  * The attribute names are case-sensitive, PascalCase, and
9288
9523
  * expected in a comma-separated list format as in the JSON encoding.
9289
9524
  *
9290
- * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceID, StartTagID, UnitFilterID.
9525
+ * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceFilterID, SpaceID, StartTagID, UnitFilterID.
9291
9526
  *
9292
9527
  * The whole string must be query-encoded.
9293
9528
  */
9294
9529
  include?: string;
9530
+ /** @description If true, re-evaluate WhereSpace and/or SpaceFilterID into InScopeSpaceIDs, and re-derive what the ChangeOrder covers if the Spaces they select have changed, even if neither field has changed. Has no effect on a ChangeOrder with neither set. */
9531
+ refresh_spaces?: boolean;
9295
9532
  };
9296
9533
  header?: never;
9297
9534
  path?: never;
@@ -9327,10 +9564,13 @@ interface operations {
9327
9564
  /** @description Unique URL-safe identifier for the entity. */
9328
9565
  Slug?: string | null;
9329
9566
  /** Format: uuid */
9567
+ SpaceFilterID?: string | null;
9568
+ /** Format: uuid */
9330
9569
  UnitFilterID?: string | null;
9331
9570
  UpdateType?: string | null;
9332
9571
  /** @description An entity-specific sequence number used for optimistic concurrency control. The value read must be sent in calls to Update. */
9333
9572
  Version?: number | null;
9573
+ WhereSpace?: string | null;
9334
9574
  WhereUnit?: string | null;
9335
9575
  };
9336
9576
  };
@@ -15397,6 +15637,116 @@ interface operations {
15397
15637
  };
15398
15638
  };
15399
15639
  };
15640
+ Promote: {
15641
+ parameters: {
15642
+ query?: {
15643
+ /** @description Plan the promotion, evaluate its gates, and return the same response without writing anything. */
15644
+ dry_run?: boolean;
15645
+ /** @description Comma-separated parts of the result to return in addition to the actions: Mutations for what each Unit write changed, or on a dry run would change. On a dry run it runs the merges a plan otherwise skips, so it is returned only when named. */
15646
+ include?: string;
15647
+ };
15648
+ header?: never;
15649
+ path?: never;
15650
+ cookie?: never;
15651
+ };
15652
+ requestBody?: {
15653
+ content: {
15654
+ "application/json": components["schemas"]["PromoteRequest"];
15655
+ };
15656
+ };
15657
+ responses: {
15658
+ /** @description OK */
15659
+ 200: {
15660
+ headers: {
15661
+ [name: string]: unknown;
15662
+ };
15663
+ content: {
15664
+ "application/json": components["schemas"]["PromoteResult"];
15665
+ };
15666
+ };
15667
+ /** @description Multi-Status: some Unit or Link writes failed, each carrying its own error */
15668
+ 207: {
15669
+ headers: {
15670
+ [name: string]: unknown;
15671
+ };
15672
+ content: {
15673
+ "application/json": components["schemas"]["PromoteResult"];
15674
+ };
15675
+ };
15676
+ /** @description Promote request is invalid (Bad Request). */
15677
+ 400: {
15678
+ headers: {
15679
+ [name: string]: unknown;
15680
+ };
15681
+ content: {
15682
+ "application/json": components["schemas"]["StandardErrorResponse"];
15683
+ };
15684
+ };
15685
+ /** @description Unauthorized access. */
15686
+ 401: {
15687
+ headers: {
15688
+ [name: string]: unknown;
15689
+ };
15690
+ content: {
15691
+ "application/json": components["schemas"]["StandardErrorResponse"];
15692
+ };
15693
+ };
15694
+ /** @description Forbidden access. */
15695
+ 403: {
15696
+ headers: {
15697
+ [name: string]: unknown;
15698
+ };
15699
+ content: {
15700
+ "application/json": components["schemas"]["StandardErrorResponse"];
15701
+ };
15702
+ };
15703
+ /** @description Promote not found. */
15704
+ 404: {
15705
+ headers: {
15706
+ [name: string]: unknown;
15707
+ };
15708
+ content: {
15709
+ "application/json": components["schemas"]["StandardErrorResponse"];
15710
+ };
15711
+ };
15712
+ /** @description The Stage's entry gates do not hold; the result names each gate and whether it holds. Nothing was written. */
15713
+ 409: {
15714
+ headers: {
15715
+ [name: string]: unknown;
15716
+ };
15717
+ content: {
15718
+ "application/json": components["schemas"]["PromoteResult"];
15719
+ };
15720
+ };
15721
+ /** @description The plan differs from ExpectedPlan. Nothing was written. */
15722
+ 412: {
15723
+ headers: {
15724
+ [name: string]: unknown;
15725
+ };
15726
+ content: {
15727
+ "application/json": components["schemas"]["StandardErrorResponse"];
15728
+ };
15729
+ };
15730
+ /** @description Something went wrong while processing Promote. */
15731
+ 500: {
15732
+ headers: {
15733
+ [name: string]: unknown;
15734
+ };
15735
+ content: {
15736
+ "application/json": components["schemas"]["StandardErrorResponse"];
15737
+ };
15738
+ };
15739
+ /** @description Unexpected error. */
15740
+ default: {
15741
+ headers: {
15742
+ [name: string]: unknown;
15743
+ };
15744
+ content: {
15745
+ "application/json": components["schemas"]["StandardErrorResponse"];
15746
+ };
15747
+ };
15748
+ };
15749
+ };
15400
15750
  ListAllReleases: {
15401
15751
  parameters: {
15402
15752
  query?: {
@@ -15435,7 +15785,7 @@ interface operations {
15435
15785
  * An example conjunction is:
15436
15786
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
15437
15787
  *
15438
- * Supported attributes for filtering on Release: Annotations, CreatedAt, DeleteGates, Digest, Labels, ManifestDigest, OrganizationID, Published, ReleaseID, SpaceID, TagID, UnitCount, UpdatedAt.
15788
+ * Supported attributes for filtering on Release: Annotations, CreatedAt, DeleteGates, Digest, Labels, ManifestDigest, OrganizationID, Published, ReleaseID, SpaceID, TagID, TargetID, UnitCount, UpdatedAt.
15439
15789
  *
15440
15790
  * The whole string must be query-encoded.
15441
15791
  */
@@ -18638,7 +18988,7 @@ interface operations {
18638
18988
  * An example conjunction is:
18639
18989
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
18640
18990
  *
18641
- * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
18991
+ * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, PromotionOverrides, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceFilterID, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereSpace, WhereUnit.
18642
18992
  *
18643
18993
  * The whole string must be query-encoded.
18644
18994
  */
@@ -18680,7 +19030,7 @@ interface operations {
18680
19030
  * The attribute names are case-sensitive, PascalCase, and
18681
19031
  * expected in a comma-separated list format as in the JSON encoding.
18682
19032
  *
18683
- * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceID, StartTagID, UnitFilterID.
19033
+ * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceFilterID, SpaceID, StartTagID, UnitFilterID.
18684
19034
  *
18685
19035
  * The whole string must be query-encoded.
18686
19036
  */
@@ -18872,7 +19222,7 @@ interface operations {
18872
19222
  * The attribute names are case-sensitive, PascalCase, and
18873
19223
  * expected in a comma-separated list format as in the JSON encoding.
18874
19224
  *
18875
- * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceID, StartTagID, UnitFilterID.
19225
+ * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceFilterID, SpaceID, StartTagID, UnitFilterID.
18876
19226
  *
18877
19227
  * The whole string must be query-encoded.
18878
19228
  */
@@ -18967,7 +19317,10 @@ interface operations {
18967
19317
  };
18968
19318
  UpdateChangeOrder: {
18969
19319
  parameters: {
18970
- query?: never;
19320
+ query?: {
19321
+ /** @description If true, re-evaluate WhereSpace and/or SpaceFilterID into InScopeSpaceIDs, and re-derive what the ChangeOrder covers if the Spaces they select have changed, even if neither field has changed. Has no effect on a ChangeOrder with neither set. */
19322
+ refresh_spaces?: boolean;
19323
+ };
18971
19324
  header?: never;
18972
19325
  path: {
18973
19326
  /** @description Unique identifier for a space_id */
@@ -19156,7 +19509,10 @@ interface operations {
19156
19509
  };
19157
19510
  PatchChangeOrder: {
19158
19511
  parameters: {
19159
- query?: never;
19512
+ query?: {
19513
+ /** @description If true, re-evaluate WhereSpace and/or SpaceFilterID into InScopeSpaceIDs, and re-derive what the ChangeOrder covers if the Spaces they select have changed, even if neither field has changed. Has no effect on a ChangeOrder with neither set. */
19514
+ refresh_spaces?: boolean;
19515
+ };
19160
19516
  header?: never;
19161
19517
  path: {
19162
19518
  /** @description Unique identifier for a space_id */
@@ -19196,10 +19552,13 @@ interface operations {
19196
19552
  /** @description Unique URL-safe identifier for the entity. */
19197
19553
  Slug?: string | null;
19198
19554
  /** Format: uuid */
19555
+ SpaceFilterID?: string | null;
19556
+ /** Format: uuid */
19199
19557
  UnitFilterID?: string | null;
19200
19558
  UpdateType?: string | null;
19201
19559
  /** @description An entity-specific sequence number used for optimistic concurrency control. The value read must be sent in calls to Update. */
19202
19560
  Version?: number | null;
19561
+ WhereSpace?: string | null;
19203
19562
  WhereUnit?: string | null;
19204
19563
  };
19205
19564
  };
@@ -23065,7 +23424,7 @@ interface operations {
23065
23424
  * An example conjunction is:
23066
23425
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
23067
23426
  *
23068
- * Supported attributes for filtering on Release: Annotations, CreatedAt, DeleteGates, Digest, Labels, ManifestDigest, OrganizationID, Published, ReleaseID, SpaceID, TagID, UnitCount, UpdatedAt.
23427
+ * Supported attributes for filtering on Release: Annotations, CreatedAt, DeleteGates, Digest, Labels, ManifestDigest, OrganizationID, Published, ReleaseID, SpaceID, TagID, TargetID, UnitCount, UpdatedAt.
23069
23428
  *
23070
23429
  * The whole string must be query-encoded.
23071
23430
  */
package/dist/index.d.ts CHANGED
@@ -595,6 +595,26 @@ interface paths {
595
595
  patch?: never;
596
596
  trace?: never;
597
597
  };
598
+ "/promote": {
599
+ parameters: {
600
+ query?: never;
601
+ header?: never;
602
+ path?: never;
603
+ cookie?: never;
604
+ };
605
+ get?: never;
606
+ put?: never;
607
+ /**
608
+ * Promote changes into downstream variants
609
+ * @description Moves changes from upstream Spaces into the downstream variants selected by WhereSpace, SpaceFilterID, ChangeOrderID and TargetStage, and makes them match: Units are upgraded, emptied, revived and cloned, clones are placed in the variant's namespace, and their Links are copied. With a ChangeOrder only its range is promoted, and with a ChangeWorkflow the Stage's entry gates are enforced. Promoting again changes nothing.
610
+ */
611
+ post: operations["Promote"];
612
+ delete?: never;
613
+ options?: never;
614
+ head?: never;
615
+ patch?: never;
616
+ trace?: never;
617
+ };
598
618
  "/release": {
599
619
  parameters: {
600
620
  query?: never;
@@ -2931,7 +2951,7 @@ interface components {
2931
2951
  EndTagID?: string;
2932
2952
  /** @description The type of entity. */
2933
2953
  readonly EntityType?: string;
2934
- /** @description InScopeSpaceIDs is where the ChangeOrder is headed: the Spaces it propagates into, supplied by the client rather than derived from a query. Empty names a change without saying where it is headed, in which case the Spaces the ChangeOrder's Links reach when its scope is derived are recorded instead; an Invoke ChangeOrder has no Links to fall back on and requires a non-empty list. ResolvedSpaceIDs and ReleasedSpaceIDs are measured against it. Editing it re-derives what the ChangeOrder covers. */
2954
+ /** @description InScopeSpaceIDs is where the ChangeOrder is headed: the Spaces it propagates into, recorded as a list rather than asked again on each read. When WhereSpace or SpaceFilterID is set, the server writes it from that selection, and a write naming a different list is refused; otherwise the client supplies it. Empty names a change without saying where it is headed, in which case the Spaces the ChangeOrder's Links reach when its scope is derived are recorded instead; an Invoke ChangeOrder has no Links to fall back on and requires a non-empty list. ResolvedSpaceIDs and ReleasedSpaceIDs are measured against it. Changing it re-derives what the ChangeOrder covers. */
2935
2955
  InScopeSpaceIDs?: components["schemas"]["UUID"][];
2936
2956
  /**
2937
2957
  * Format: uuid
@@ -2953,6 +2973,7 @@ interface components {
2953
2973
  Parameters?: {
2954
2974
  [key: string]: unknown;
2955
2975
  };
2976
+ readonly PromotionOverrides?: components["schemas"]["ChangeOrderPromotionOverride"][];
2956
2977
  /** @description ReleasedRestoredSpaceIDs is where the undoing has been released: the Spaces in RestoredSpaceIDs whose Units are released at or past the Revision the restore Tag marks. Covering ReleasedSpaceIDs is what State reports as RestoreReleased. Derived when the ChangeOrder is read. */
2957
2978
  readonly ReleasedRestoredSpaceIDs?: components["schemas"]["UUID"][];
2958
2979
  /** @description ReleasedSpaceIDs is where the ChangeOrder has been released: the Spaces in scope whose Units in the Space's release are applied at or past the Revision the end Tag marks. Derived when the ChangeOrder is read. */
@@ -2973,6 +2994,12 @@ interface components {
2973
2994
  };
2974
2995
  /** @description Unique URL-safe identifier for the entity. */
2975
2996
  Slug: string;
2997
+ /**
2998
+ * Format: uuid
2999
+ * @description SpaceFilterID references a Filter (with From=Space) selecting where the ChangeOrder is headed, ANDed with WhereSpace when both are set. While either is set, the server evaluates the selection into InScopeSpaceIDs.
3000
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
3001
+ */
3002
+ SpaceFilterID?: string;
2976
3003
  /**
2977
3004
  * Format: uuid
2978
3005
  * @description Unique identifier for a space.
@@ -3008,6 +3035,46 @@ interface components {
3008
3035
  * @description An entity-specific sequence number used for optimistic concurrency control. The value read must be sent in calls to Update.
3009
3036
  */
3010
3037
  Version?: number;
3038
+ /**
3039
+ * @description Filter expression selecting where the ChangeOrder is headed, ANDed with SpaceFilterID when both are set. While either is set, the server evaluates the selection into InScopeSpaceIDs when the ChangeOrder is created, when either field changes, and on an update or patch with refresh_spaces. The specified string is an expression for the purpose of filtering
3040
+ * the list of Spaces returned. The expression syntax was inspired by SQL.
3041
+ * It supports conjunctions using `AND` of relational expressions of the form *attribute*
3042
+ * *operator* *attribute_or_literal*. The attribute names are case-sensitive and PascalCase,
3043
+ * as in the JSON encoding.
3044
+ * Strings support the following operators: `<`, `>`, `<=`, `>=`, `=`, `!=`, `LIKE`, `NOT LIKE`, `ILIKE`, `~~`, `!~~`, `~`, `~*`, `!~`, `!~*`, `IN`, `NOT IN`.
3045
+ * String pattern operators: `LIKE` and `~~` for pattern matching with `%` and `_` wildcards,
3046
+ * `ILIKE` for case-insensitive pattern matching, `NOT LIKE` and `!~~` for negated pattern matching.
3047
+ * String regex operators: `~` for regex matching, `~*` for case-insensitive regex,
3048
+ * `!~` and `!~*` for regex not matching (case-sensitive and insensitive).
3049
+ * Integers support the following operators: `<`, `>`, `<=`, `>=`, `=`, `!=`, `IN`, `NOT IN`.
3050
+ * UUIDs and boolean attributes support equality and inequality only.
3051
+ * UUID and time literals must be quoted as string literals.
3052
+ * String literals are quoted with single quotes, such as `'string'`.
3053
+ * Time literals use the same form as when serialized as JSON,
3054
+ * such as: `CreatedAt > '2025-02-18T23:16:34'`.
3055
+ * Integer and boolean literals are also supported for attributes of those types.
3056
+ * Arrays support the `?` operator to to match any element of the array,
3057
+ * as in `ApprovedBy ? '7c61626f-ddbe-41af-93f6-b69f4ab6d308'`.
3058
+ * Arrays can perform LEN() to check for length, as in `LEN(ApprovedBy) > 0`.
3059
+ * An attribute naming a list of other entities can be filtered on their attributes with a `*` segment,
3060
+ * as in `FromLink.*.Slug = 'upgrade-app'`, which holds when any element satisfies it.
3061
+ * Without the `*` such a reference is an error, since it names no single value to compare.
3062
+ * Map support the dot notation to specify a particular map key, as in `Labels.tier = 'Backend'`.
3063
+ * Maps support `IS NULL` and `IS NOT NULL` with dot notation to check for key absence or presence,
3064
+ * as in `Labels.tier IS NULL` (key doesn't exist) or `Labels.tier IS NOT NULL` (key exists).
3065
+ * Comparison results can be tested with `IS TRUE`, `IS FALSE`, `IS NOT TRUE`, and `IS NOT FALSE`.
3066
+ * These are useful for nullable columns: `MergeSourceID = '<uuid>' IS NOT FALSE` matches rows where MergeSourceID equals the value OR is NULL.
3067
+ * The `IN` and `NOT IN` operators accept a comma-separated list of values in parentheses,
3068
+ * such as `Slug IN ('slugone', 'slugtwo')` or `Labels.environment IN ('prod', 'staging')`.
3069
+ * Conjunctions are supported using the `AND` operator.
3070
+ * An example conjunction is:
3071
+ * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
3072
+ *
3073
+ * Supported attributes for filtering on Space: Annotations, AttributeFilterID, AttributeHash, AttributeIDs, CreatedAt, DeleteGates, DisplayName, Labels, OrganizationID, Permissions, ReleaseBridgeWorkerID, ReleaseTargetID, Slug, SpaceID, TriggerFilterID, TriggerHash, TriggerIDs, UpdatedAt.
3074
+ *
3075
+ * The whole string must be query-encoded.
3076
+ */
3077
+ WhereSpace?: string;
3011
3078
  /** @description WhereUnit narrows which Units of each Space in scope an Invoke ChangeOrder covers, and is refused on the other UpdateTypes. Empty covers every Unit. Unlike InScopeSpaceIDs it is asked again on every read, so a Unit added to a Space afterwards counts against that Space. Immutable. */
3012
3079
  WhereUnit?: string;
3013
3080
  };
@@ -3015,6 +3082,21 @@ interface components {
3015
3082
  ChangeOrder?: components["schemas"]["ChangeOrder"];
3016
3083
  Error?: components["schemas"]["ResponseError"];
3017
3084
  };
3085
+ ChangeOrderPromotionOverride: {
3086
+ FailedGates?: string[];
3087
+ /**
3088
+ * Format: date-time
3089
+ * @example 2006-01-02T15:04:05Z07:00
3090
+ */
3091
+ OverriddenAt?: string;
3092
+ Reason?: string;
3093
+ Stage?: string;
3094
+ /**
3095
+ * Format: uuid
3096
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
3097
+ */
3098
+ UserID?: string;
3099
+ };
3018
3100
  /** @description Defines an entity changeset. */
3019
3101
  ChangeSet: {
3020
3102
  /** @description An optional map of Annotation key/value pairs for tools to attach information to entities. */
@@ -3260,6 +3342,7 @@ interface components {
3260
3342
  Organization?: components["schemas"]["Organization"];
3261
3343
  RestoreTag?: components["schemas"]["Tag"];
3262
3344
  Space?: components["schemas"]["Space"];
3345
+ SpaceFilter?: components["schemas"]["Filter"];
3263
3346
  StartTag?: components["schemas"]["Tag"];
3264
3347
  UnitFilter?: components["schemas"]["Filter"];
3265
3348
  };
@@ -4276,6 +4359,150 @@ interface components {
4276
4359
  Permissions: {
4277
4360
  [key: string]: components["schemas"]["Subjects"];
4278
4361
  };
4362
+ PromoteGateResult: {
4363
+ /** @description Why the gate does not hold. */
4364
+ Message?: string;
4365
+ /** @description Promoted, Validated, Released, Healthy, or a custom prerequisite's name. */
4366
+ Prerequisite?: string;
4367
+ Satisfied?: boolean;
4368
+ /**
4369
+ * Format: uuid
4370
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4371
+ */
4372
+ SpaceID?: string;
4373
+ SpaceSlug?: string;
4374
+ };
4375
+ PromoteLinkResult: {
4376
+ /** @description Create, Unchanged, Skip, or Orphaned. */
4377
+ Action?: string;
4378
+ Error?: components["schemas"]["ResponseError"];
4379
+ FromUnitSlug?: string;
4380
+ /**
4381
+ * Format: uuid
4382
+ * @description Absent for a Link a dry run would create.
4383
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4384
+ */
4385
+ LinkID?: string;
4386
+ Reason?: string;
4387
+ Slug?: string;
4388
+ ToSpaceSlug?: string;
4389
+ ToUnitSlug?: string;
4390
+ /**
4391
+ * Format: uuid
4392
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4393
+ */
4394
+ UpstreamLinkID?: string;
4395
+ };
4396
+ PromoteRequest: {
4397
+ /** @description Recorded on each Unit write. */
4398
+ ChangeDescription?: string;
4399
+ /**
4400
+ * Format: uuid
4401
+ * @description The ChangeOrder to promote. Without one, everything each upstream has reached is promoted. With one, only its range is, into the Spaces it is headed for.
4402
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4403
+ */
4404
+ ChangeOrderID?: string;
4405
+ /**
4406
+ * Format: uuid
4407
+ * @description An existing open ChangeSet to record every write in.
4408
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4409
+ */
4410
+ ChangeSetID?: string;
4411
+ /** @description The Plan a previous dry run returned. If the plan now differs, nothing is written and the request fails with 412. */
4412
+ ExpectedPlan?: string;
4413
+ /** @description Promote even though the Stage's entry gates do not hold. Requires ForceReason, and Edit permission on the ChangeOrder, where the override is recorded. */
4414
+ Force?: boolean;
4415
+ /** @description Why the gates were overridden. Required with Force. */
4416
+ ForceReason?: string;
4417
+ /**
4418
+ * Format: uuid
4419
+ * @description A Filter over Spaces selecting the Spaces to promote. Intersected with the other selectors.
4420
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4421
+ */
4422
+ SpaceFilterID?: string;
4423
+ /** @description Merge each Unit's range as one rebased Revision rather than replaying each upstream Revision. */
4424
+ Squash?: boolean;
4425
+ /** @description A Stage of the ChangeOrder's ChangeWorkflow to promote into. Requires a ChangeOrder with a ChangeWorkflow. When empty, and neither WhereSpace nor SpaceFilterID is given, the next Stage the change has not reached. */
4426
+ TargetStage?: string;
4427
+ /** @description A where expression selecting the Spaces to promote. Intersected with the other selectors. */
4428
+ WhereSpace?: string;
4429
+ };
4430
+ PromoteResult: {
4431
+ /**
4432
+ * Format: uuid
4433
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4434
+ */
4435
+ ChangeOrderID?: string;
4436
+ /** @description Every Stage of the ChangeWorkflow already has the change; nothing was promoted. */
4437
+ Complete?: boolean;
4438
+ /** @description True when nothing was written. */
4439
+ DryRun?: boolean;
4440
+ /** @description Digest of the planned actions. Send it as ExpectedPlan to apply exactly this plan. */
4441
+ Plan?: string;
4442
+ /** @description In the order they were, or would be, promoted: a Space after any selected Space it takes from. */
4443
+ Spaces?: components["schemas"]["PromoteSpaceResult"][];
4444
+ /** @description The Stages entered, each with every gate evaluated over the Stage before it. */
4445
+ Stages?: components["schemas"]["PromoteStageResult"][];
4446
+ };
4447
+ PromoteSpaceResult: {
4448
+ /** @description Promote, Unchanged, Skipped, Blocked, or Failed. */
4449
+ Action?: string;
4450
+ Error?: components["schemas"]["ResponseError"];
4451
+ Links?: components["schemas"]["PromoteLinkResult"][];
4452
+ /** @description A dry run previewed this Space against its upstream as it is now, although the same request promotes that upstream first. */
4453
+ PreviewedAgainstCurrentUpstream?: boolean;
4454
+ /** @description Why the Space was Skipped or Blocked. */
4455
+ Reason?: string;
4456
+ /**
4457
+ * Format: uuid
4458
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4459
+ */
4460
+ SpaceID?: string;
4461
+ SpaceSlug?: string;
4462
+ Stage?: string;
4463
+ Units?: components["schemas"]["PromoteUnitResult"][];
4464
+ /**
4465
+ * Format: uuid
4466
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4467
+ */
4468
+ UpstreamSpaceID?: string;
4469
+ UpstreamSpaceSlug?: string;
4470
+ };
4471
+ PromoteStageResult: {
4472
+ /** @description The Stage was the next one the change has not reached, rather than named. */
4473
+ Chosen?: boolean;
4474
+ /** @description The gates did not hold and the promotion was forced. */
4475
+ Forced?: boolean;
4476
+ Gates?: components["schemas"]["PromoteGateResult"][];
4477
+ Name?: string;
4478
+ /** @description The Stage whose Spaces the gates are evaluated over. Empty for the first Stage, which has no gates. */
4479
+ PreviousStage?: string;
4480
+ };
4481
+ PromoteUnitResult: {
4482
+ /** @description Upgrade, Mark, Empty, Revive, Clone, Invoke, Unchanged, or Skip. */
4483
+ Action?: string;
4484
+ Conflicts?: components["schemas"]["MutationConflictList"];
4485
+ Error?: components["schemas"]["ResponseError"];
4486
+ Mutations?: components["schemas"]["ResourceMutationList"];
4487
+ /** Format: int64 */
4488
+ PreviousHeadMutationNum?: number;
4489
+ /** Format: int64 */
4490
+ PreviousHeadRevisionNum?: number;
4491
+ /** @description For Skip and Unchanged: NotCovered, CreatedAfterChangeOrder, or AlreadyTaken. */
4492
+ Reason?: string;
4493
+ Slug?: string;
4494
+ /**
4495
+ * Format: uuid
4496
+ * @description Absent for a clone a dry run would create.
4497
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4498
+ */
4499
+ UnitID?: string;
4500
+ /**
4501
+ * Format: uuid
4502
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4503
+ */
4504
+ UpstreamUnitID?: string;
4505
+ };
4279
4506
  /** @description UnitAction is a record of an operation queued for a Worker, such as a function invocation on a unit. Operations are delivered to the worker in creation order; if the worker is disconnected, pending operations are delivered when it reconnects. One or more UnitEvents will correspond to each UnitAction. */
4280
4507
  QueuedOperation: {
4281
4508
  Action?: components["schemas"]["ActionType"];
@@ -4434,6 +4661,11 @@ interface components {
4434
4661
  * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4435
4662
  */
4436
4663
  readonly TagID?: string;
4664
+ /**
4665
+ * Format: uuid
4666
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4667
+ */
4668
+ readonly TargetID?: string;
4437
4669
  /**
4438
4670
  * Format: int64
4439
4671
  * @description Number of Units bundled in the Release, captured at publish time.
@@ -8617,7 +8849,7 @@ interface operations {
8617
8849
  * An example conjunction is:
8618
8850
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
8619
8851
  *
8620
- * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
8852
+ * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, PromotionOverrides, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceFilterID, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereSpace, WhereUnit.
8621
8853
  *
8622
8854
  * The whole string must be query-encoded.
8623
8855
  */
@@ -8659,7 +8891,7 @@ interface operations {
8659
8891
  * The attribute names are case-sensitive, PascalCase, and
8660
8892
  * expected in a comma-separated list format as in the JSON encoding.
8661
8893
  *
8662
- * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceID, StartTagID, UnitFilterID.
8894
+ * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceFilterID, SpaceID, StartTagID, UnitFilterID.
8663
8895
  *
8664
8896
  * The whole string must be query-encoded.
8665
8897
  */
@@ -8785,7 +9017,7 @@ interface operations {
8785
9017
  * An example conjunction is:
8786
9018
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
8787
9019
  *
8788
- * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
9020
+ * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, PromotionOverrides, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceFilterID, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereSpace, WhereUnit.
8789
9021
  *
8790
9022
  * The whole string must be query-encoded.
8791
9023
  */
@@ -8827,7 +9059,7 @@ interface operations {
8827
9059
  * The attribute names are case-sensitive, PascalCase, and
8828
9060
  * expected in a comma-separated list format as in the JSON encoding.
8829
9061
  *
8830
- * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceID, StartTagID, UnitFilterID.
9062
+ * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceFilterID, SpaceID, StartTagID, UnitFilterID.
8831
9063
  *
8832
9064
  * The whole string must be query-encoded.
8833
9065
  */
@@ -8931,10 +9163,13 @@ interface operations {
8931
9163
  /** @description Unique URL-safe identifier for the entity. */
8932
9164
  Slug?: string | null;
8933
9165
  /** Format: uuid */
9166
+ SpaceFilterID?: string | null;
9167
+ /** Format: uuid */
8934
9168
  UnitFilterID?: string | null;
8935
9169
  UpdateType?: string | null;
8936
9170
  /** @description An entity-specific sequence number used for optimistic concurrency control. The value read must be sent in calls to Update. */
8937
9171
  Version?: number | null;
9172
+ WhereSpace?: string | null;
8938
9173
  WhereUnit?: string | null;
8939
9174
  };
8940
9175
  };
@@ -9061,7 +9296,7 @@ interface operations {
9061
9296
  * An example conjunction is:
9062
9297
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
9063
9298
  *
9064
- * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
9299
+ * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, PromotionOverrides, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceFilterID, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereSpace, WhereUnit.
9065
9300
  *
9066
9301
  * The whole string must be query-encoded.
9067
9302
  */
@@ -9103,7 +9338,7 @@ interface operations {
9103
9338
  * The attribute names are case-sensitive, PascalCase, and
9104
9339
  * expected in a comma-separated list format as in the JSON encoding.
9105
9340
  *
9106
- * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceID, StartTagID, UnitFilterID.
9341
+ * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceFilterID, SpaceID, StartTagID, UnitFilterID.
9107
9342
  *
9108
9343
  * The whole string must be query-encoded.
9109
9344
  */
@@ -9245,7 +9480,7 @@ interface operations {
9245
9480
  * An example conjunction is:
9246
9481
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
9247
9482
  *
9248
- * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
9483
+ * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, PromotionOverrides, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceFilterID, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereSpace, WhereUnit.
9249
9484
  *
9250
9485
  * The whole string must be query-encoded.
9251
9486
  */
@@ -9287,11 +9522,13 @@ interface operations {
9287
9522
  * The attribute names are case-sensitive, PascalCase, and
9288
9523
  * expected in a comma-separated list format as in the JSON encoding.
9289
9524
  *
9290
- * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceID, StartTagID, UnitFilterID.
9525
+ * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceFilterID, SpaceID, StartTagID, UnitFilterID.
9291
9526
  *
9292
9527
  * The whole string must be query-encoded.
9293
9528
  */
9294
9529
  include?: string;
9530
+ /** @description If true, re-evaluate WhereSpace and/or SpaceFilterID into InScopeSpaceIDs, and re-derive what the ChangeOrder covers if the Spaces they select have changed, even if neither field has changed. Has no effect on a ChangeOrder with neither set. */
9531
+ refresh_spaces?: boolean;
9295
9532
  };
9296
9533
  header?: never;
9297
9534
  path?: never;
@@ -9327,10 +9564,13 @@ interface operations {
9327
9564
  /** @description Unique URL-safe identifier for the entity. */
9328
9565
  Slug?: string | null;
9329
9566
  /** Format: uuid */
9567
+ SpaceFilterID?: string | null;
9568
+ /** Format: uuid */
9330
9569
  UnitFilterID?: string | null;
9331
9570
  UpdateType?: string | null;
9332
9571
  /** @description An entity-specific sequence number used for optimistic concurrency control. The value read must be sent in calls to Update. */
9333
9572
  Version?: number | null;
9573
+ WhereSpace?: string | null;
9334
9574
  WhereUnit?: string | null;
9335
9575
  };
9336
9576
  };
@@ -15397,6 +15637,116 @@ interface operations {
15397
15637
  };
15398
15638
  };
15399
15639
  };
15640
+ Promote: {
15641
+ parameters: {
15642
+ query?: {
15643
+ /** @description Plan the promotion, evaluate its gates, and return the same response without writing anything. */
15644
+ dry_run?: boolean;
15645
+ /** @description Comma-separated parts of the result to return in addition to the actions: Mutations for what each Unit write changed, or on a dry run would change. On a dry run it runs the merges a plan otherwise skips, so it is returned only when named. */
15646
+ include?: string;
15647
+ };
15648
+ header?: never;
15649
+ path?: never;
15650
+ cookie?: never;
15651
+ };
15652
+ requestBody?: {
15653
+ content: {
15654
+ "application/json": components["schemas"]["PromoteRequest"];
15655
+ };
15656
+ };
15657
+ responses: {
15658
+ /** @description OK */
15659
+ 200: {
15660
+ headers: {
15661
+ [name: string]: unknown;
15662
+ };
15663
+ content: {
15664
+ "application/json": components["schemas"]["PromoteResult"];
15665
+ };
15666
+ };
15667
+ /** @description Multi-Status: some Unit or Link writes failed, each carrying its own error */
15668
+ 207: {
15669
+ headers: {
15670
+ [name: string]: unknown;
15671
+ };
15672
+ content: {
15673
+ "application/json": components["schemas"]["PromoteResult"];
15674
+ };
15675
+ };
15676
+ /** @description Promote request is invalid (Bad Request). */
15677
+ 400: {
15678
+ headers: {
15679
+ [name: string]: unknown;
15680
+ };
15681
+ content: {
15682
+ "application/json": components["schemas"]["StandardErrorResponse"];
15683
+ };
15684
+ };
15685
+ /** @description Unauthorized access. */
15686
+ 401: {
15687
+ headers: {
15688
+ [name: string]: unknown;
15689
+ };
15690
+ content: {
15691
+ "application/json": components["schemas"]["StandardErrorResponse"];
15692
+ };
15693
+ };
15694
+ /** @description Forbidden access. */
15695
+ 403: {
15696
+ headers: {
15697
+ [name: string]: unknown;
15698
+ };
15699
+ content: {
15700
+ "application/json": components["schemas"]["StandardErrorResponse"];
15701
+ };
15702
+ };
15703
+ /** @description Promote not found. */
15704
+ 404: {
15705
+ headers: {
15706
+ [name: string]: unknown;
15707
+ };
15708
+ content: {
15709
+ "application/json": components["schemas"]["StandardErrorResponse"];
15710
+ };
15711
+ };
15712
+ /** @description The Stage's entry gates do not hold; the result names each gate and whether it holds. Nothing was written. */
15713
+ 409: {
15714
+ headers: {
15715
+ [name: string]: unknown;
15716
+ };
15717
+ content: {
15718
+ "application/json": components["schemas"]["PromoteResult"];
15719
+ };
15720
+ };
15721
+ /** @description The plan differs from ExpectedPlan. Nothing was written. */
15722
+ 412: {
15723
+ headers: {
15724
+ [name: string]: unknown;
15725
+ };
15726
+ content: {
15727
+ "application/json": components["schemas"]["StandardErrorResponse"];
15728
+ };
15729
+ };
15730
+ /** @description Something went wrong while processing Promote. */
15731
+ 500: {
15732
+ headers: {
15733
+ [name: string]: unknown;
15734
+ };
15735
+ content: {
15736
+ "application/json": components["schemas"]["StandardErrorResponse"];
15737
+ };
15738
+ };
15739
+ /** @description Unexpected error. */
15740
+ default: {
15741
+ headers: {
15742
+ [name: string]: unknown;
15743
+ };
15744
+ content: {
15745
+ "application/json": components["schemas"]["StandardErrorResponse"];
15746
+ };
15747
+ };
15748
+ };
15749
+ };
15400
15750
  ListAllReleases: {
15401
15751
  parameters: {
15402
15752
  query?: {
@@ -15435,7 +15785,7 @@ interface operations {
15435
15785
  * An example conjunction is:
15436
15786
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
15437
15787
  *
15438
- * Supported attributes for filtering on Release: Annotations, CreatedAt, DeleteGates, Digest, Labels, ManifestDigest, OrganizationID, Published, ReleaseID, SpaceID, TagID, UnitCount, UpdatedAt.
15788
+ * Supported attributes for filtering on Release: Annotations, CreatedAt, DeleteGates, Digest, Labels, ManifestDigest, OrganizationID, Published, ReleaseID, SpaceID, TagID, TargetID, UnitCount, UpdatedAt.
15439
15789
  *
15440
15790
  * The whole string must be query-encoded.
15441
15791
  */
@@ -18638,7 +18988,7 @@ interface operations {
18638
18988
  * An example conjunction is:
18639
18989
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
18640
18990
  *
18641
- * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
18991
+ * Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, ChangeWorkflow, ChangeWorkflowID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, InvocationID, Labels, OrganizationID, Parameters, PromotionOverrides, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceFilterID, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereSpace, WhereUnit.
18642
18992
  *
18643
18993
  * The whole string must be query-encoded.
18644
18994
  */
@@ -18680,7 +19030,7 @@ interface operations {
18680
19030
  * The attribute names are case-sensitive, PascalCase, and
18681
19031
  * expected in a comma-separated list format as in the JSON encoding.
18682
19032
  *
18683
- * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceID, StartTagID, UnitFilterID.
19033
+ * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceFilterID, SpaceID, StartTagID, UnitFilterID.
18684
19034
  *
18685
19035
  * The whole string must be query-encoded.
18686
19036
  */
@@ -18872,7 +19222,7 @@ interface operations {
18872
19222
  * The attribute names are case-sensitive, PascalCase, and
18873
19223
  * expected in a comma-separated list format as in the JSON encoding.
18874
19224
  *
18875
- * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceID, StartTagID, UnitFilterID.
19225
+ * Supported attributes for ChangeOrder are EndTagID, InvocationID, OrganizationID, RestoreTagID, SpaceFilterID, SpaceID, StartTagID, UnitFilterID.
18876
19226
  *
18877
19227
  * The whole string must be query-encoded.
18878
19228
  */
@@ -18967,7 +19317,10 @@ interface operations {
18967
19317
  };
18968
19318
  UpdateChangeOrder: {
18969
19319
  parameters: {
18970
- query?: never;
19320
+ query?: {
19321
+ /** @description If true, re-evaluate WhereSpace and/or SpaceFilterID into InScopeSpaceIDs, and re-derive what the ChangeOrder covers if the Spaces they select have changed, even if neither field has changed. Has no effect on a ChangeOrder with neither set. */
19322
+ refresh_spaces?: boolean;
19323
+ };
18971
19324
  header?: never;
18972
19325
  path: {
18973
19326
  /** @description Unique identifier for a space_id */
@@ -19156,7 +19509,10 @@ interface operations {
19156
19509
  };
19157
19510
  PatchChangeOrder: {
19158
19511
  parameters: {
19159
- query?: never;
19512
+ query?: {
19513
+ /** @description If true, re-evaluate WhereSpace and/or SpaceFilterID into InScopeSpaceIDs, and re-derive what the ChangeOrder covers if the Spaces they select have changed, even if neither field has changed. Has no effect on a ChangeOrder with neither set. */
19514
+ refresh_spaces?: boolean;
19515
+ };
19160
19516
  header?: never;
19161
19517
  path: {
19162
19518
  /** @description Unique identifier for a space_id */
@@ -19196,10 +19552,13 @@ interface operations {
19196
19552
  /** @description Unique URL-safe identifier for the entity. */
19197
19553
  Slug?: string | null;
19198
19554
  /** Format: uuid */
19555
+ SpaceFilterID?: string | null;
19556
+ /** Format: uuid */
19199
19557
  UnitFilterID?: string | null;
19200
19558
  UpdateType?: string | null;
19201
19559
  /** @description An entity-specific sequence number used for optimistic concurrency control. The value read must be sent in calls to Update. */
19202
19560
  Version?: number | null;
19561
+ WhereSpace?: string | null;
19203
19562
  WhereUnit?: string | null;
19204
19563
  };
19205
19564
  };
@@ -23065,7 +23424,7 @@ interface operations {
23065
23424
  * An example conjunction is:
23066
23425
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
23067
23426
  *
23068
- * Supported attributes for filtering on Release: Annotations, CreatedAt, DeleteGates, Digest, Labels, ManifestDigest, OrganizationID, Published, ReleaseID, SpaceID, TagID, UnitCount, UpdatedAt.
23427
+ * Supported attributes for filtering on Release: Annotations, CreatedAt, DeleteGates, Digest, Labels, ManifestDigest, OrganizationID, Published, ReleaseID, SpaceID, TagID, TargetID, UnitCount, UpdatedAt.
23069
23428
  *
23070
23429
  * The whole string must be query-encoded.
23071
23430
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confighub/api",
3
- "version": "0.4.16",
3
+ "version": "0.4.18",
4
4
  "description": "Typed, framework-agnostic client for the ConfigHub API",
5
5
  "license": "MIT",
6
6
  "repository": {