@confighub/api 0.4.15 → 0.4.17

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;
@@ -2314,7 +2334,7 @@ interface paths {
2314
2334
  put?: never;
2315
2335
  /**
2316
2336
  * Upload a bundle of configuration
2317
- * @description Takes a bundle of rendered configuration files, splits it into resources, and makes a Space's Units, Links, and Invocations match it. Creates what is missing, 3-way merges what changed, and empties the Units of resources the bundle no longer contains, so uploading the same bundle again changes nothing. Every resource becomes its own Unit.
2337
+ * @description Takes a bundle of rendered configuration files, or pulls one from an OCI registry, splits it into resources, and makes a Space's Units, Links, and Invocations match it. Creates what is missing, 3-way merges what changed, and empties the Units of resources the bundle no longer contains, so uploading the same bundle again changes nothing. Every resource becomes its own Unit.
2318
2338
  */
2319
2339
  post: operations["Upload"];
2320
2340
  delete?: never;
@@ -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. */
@@ -3015,6 +3036,21 @@ interface components {
3015
3036
  ChangeOrder?: components["schemas"]["ChangeOrder"];
3016
3037
  Error?: components["schemas"]["ResponseError"];
3017
3038
  };
3039
+ ChangeOrderPromotionOverride: {
3040
+ FailedGates?: string[];
3041
+ /**
3042
+ * Format: date-time
3043
+ * @example 2006-01-02T15:04:05Z07:00
3044
+ */
3045
+ OverriddenAt?: string;
3046
+ Reason?: string;
3047
+ Stage?: string;
3048
+ /**
3049
+ * Format: uuid
3050
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
3051
+ */
3052
+ UserID?: string;
3053
+ };
3018
3054
  /** @description Defines an entity changeset. */
3019
3055
  ChangeSet: {
3020
3056
  /** @description An optional map of Annotation key/value pairs for tools to attach information to entities. */
@@ -4276,6 +4312,150 @@ interface components {
4276
4312
  Permissions: {
4277
4313
  [key: string]: components["schemas"]["Subjects"];
4278
4314
  };
4315
+ PromoteGateResult: {
4316
+ /** @description Why the gate does not hold. */
4317
+ Message?: string;
4318
+ /** @description Promoted, Released, Healthy, or a custom prerequisite's name. */
4319
+ Prerequisite?: string;
4320
+ Satisfied?: boolean;
4321
+ /**
4322
+ * Format: uuid
4323
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4324
+ */
4325
+ SpaceID?: string;
4326
+ SpaceSlug?: string;
4327
+ };
4328
+ PromoteLinkResult: {
4329
+ /** @description Create, Unchanged, Skip, or Orphaned. */
4330
+ Action?: string;
4331
+ Error?: components["schemas"]["ResponseError"];
4332
+ FromUnitSlug?: string;
4333
+ /**
4334
+ * Format: uuid
4335
+ * @description Absent for a Link a dry run would create.
4336
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4337
+ */
4338
+ LinkID?: string;
4339
+ Reason?: string;
4340
+ Slug?: string;
4341
+ ToSpaceSlug?: string;
4342
+ ToUnitSlug?: string;
4343
+ /**
4344
+ * Format: uuid
4345
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4346
+ */
4347
+ UpstreamLinkID?: string;
4348
+ };
4349
+ PromoteRequest: {
4350
+ /** @description Recorded on each Unit write. */
4351
+ ChangeDescription?: string;
4352
+ /**
4353
+ * Format: uuid
4354
+ * @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.
4355
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4356
+ */
4357
+ ChangeOrderID?: string;
4358
+ /**
4359
+ * Format: uuid
4360
+ * @description An existing open ChangeSet to record every write in.
4361
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4362
+ */
4363
+ ChangeSetID?: string;
4364
+ /** @description The Plan a previous dry run returned. If the plan now differs, nothing is written and the request fails with 412. */
4365
+ ExpectedPlan?: string;
4366
+ /** @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. */
4367
+ Force?: boolean;
4368
+ /** @description Why the gates were overridden. Required with Force. */
4369
+ ForceReason?: string;
4370
+ /**
4371
+ * Format: uuid
4372
+ * @description A Filter over Spaces selecting the Spaces to promote. Intersected with the other selectors.
4373
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4374
+ */
4375
+ SpaceFilterID?: string;
4376
+ /** @description Merge each Unit's range as one rebased Revision rather than replaying each upstream Revision. */
4377
+ Squash?: boolean;
4378
+ /** @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. */
4379
+ TargetStage?: string;
4380
+ /** @description A where expression selecting the Spaces to promote. Intersected with the other selectors. */
4381
+ WhereSpace?: string;
4382
+ };
4383
+ PromoteResult: {
4384
+ /**
4385
+ * Format: uuid
4386
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4387
+ */
4388
+ ChangeOrderID?: string;
4389
+ /** @description Every Stage of the ChangeWorkflow already has the change; nothing was promoted. */
4390
+ Complete?: boolean;
4391
+ /** @description True when nothing was written. */
4392
+ DryRun?: boolean;
4393
+ /** @description Digest of the planned actions. Send it as ExpectedPlan to apply exactly this plan. */
4394
+ Plan?: string;
4395
+ /** @description In the order they were, or would be, promoted: a Space after any selected Space it takes from. */
4396
+ Spaces?: components["schemas"]["PromoteSpaceResult"][];
4397
+ /** @description The Stages entered, each with every gate evaluated over the Stage before it. */
4398
+ Stages?: components["schemas"]["PromoteStageResult"][];
4399
+ };
4400
+ PromoteSpaceResult: {
4401
+ /** @description Promote, Unchanged, Skipped, Blocked, or Failed. */
4402
+ Action?: string;
4403
+ Error?: components["schemas"]["ResponseError"];
4404
+ Links?: components["schemas"]["PromoteLinkResult"][];
4405
+ /** @description A dry run previewed this Space against its upstream as it is now, although the same request promotes that upstream first. */
4406
+ PreviewedAgainstCurrentUpstream?: boolean;
4407
+ /** @description Why the Space was Skipped or Blocked. */
4408
+ Reason?: string;
4409
+ /**
4410
+ * Format: uuid
4411
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4412
+ */
4413
+ SpaceID?: string;
4414
+ SpaceSlug?: string;
4415
+ Stage?: string;
4416
+ Units?: components["schemas"]["PromoteUnitResult"][];
4417
+ /**
4418
+ * Format: uuid
4419
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4420
+ */
4421
+ UpstreamSpaceID?: string;
4422
+ UpstreamSpaceSlug?: string;
4423
+ };
4424
+ PromoteStageResult: {
4425
+ /** @description The Stage was the next one the change has not reached, rather than named. */
4426
+ Chosen?: boolean;
4427
+ /** @description The gates did not hold and the promotion was forced. */
4428
+ Forced?: boolean;
4429
+ Gates?: components["schemas"]["PromoteGateResult"][];
4430
+ Name?: string;
4431
+ /** @description The Stage whose Spaces the gates are evaluated over. Empty for the first Stage, which has no gates. */
4432
+ PreviousStage?: string;
4433
+ };
4434
+ PromoteUnitResult: {
4435
+ /** @description Upgrade, Mark, Empty, Revive, Clone, Invoke, Unchanged, or Skip. */
4436
+ Action?: string;
4437
+ Conflicts?: components["schemas"]["MutationConflictList"];
4438
+ Error?: components["schemas"]["ResponseError"];
4439
+ Mutations?: components["schemas"]["ResourceMutationList"];
4440
+ /** Format: int64 */
4441
+ PreviousHeadMutationNum?: number;
4442
+ /** Format: int64 */
4443
+ PreviousHeadRevisionNum?: number;
4444
+ /** @description For Skip and Unchanged: NotCovered, CreatedAfterChangeOrder, or AlreadyTaken. */
4445
+ Reason?: string;
4446
+ Slug?: string;
4447
+ /**
4448
+ * Format: uuid
4449
+ * @description Absent for a clone a dry run would create.
4450
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4451
+ */
4452
+ UnitID?: string;
4453
+ /**
4454
+ * Format: uuid
4455
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
4456
+ */
4457
+ UpstreamUnitID?: string;
4458
+ };
4279
4459
  /** @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
4460
  QueuedOperation: {
4281
4461
  Action?: components["schemas"]["ActionType"];
@@ -5991,6 +6171,14 @@ interface components {
5991
6171
  /** @description References that resolved to no resource in the bundle. */
5992
6172
  UnmatchedReferences?: components["schemas"]["UploadUnmatchedReference"][];
5993
6173
  };
6174
+ UploadDuplicate: {
6175
+ /** @description The other Units that define the resource. */
6176
+ Others?: components["schemas"]["UploadUnitRef"][];
6177
+ /** @description The resource identity, as in UploadUnitResult.Resource. */
6178
+ Resource?: string;
6179
+ /** @description The slug of this upload's Unit for the resource. */
6180
+ Slug?: string;
6181
+ };
5994
6182
  UploadLinkResult: {
5995
6183
  /** @description Create or Unchanged. */
5996
6184
  Action?: string;
@@ -6010,6 +6198,12 @@ interface components {
6010
6198
  /** @description The release Namespace the bundle already carries. */
6011
6199
  Namespace?: string;
6012
6200
  };
6201
+ UploadRegistryCredentials: {
6202
+ /** @description The password, or an access token for registries that issue them. */
6203
+ Password?: string;
6204
+ /** @description The registry username. */
6205
+ Username?: string;
6206
+ };
6013
6207
  UploadRequest: {
6014
6208
  /** @description Recorded on each Unit write. */
6015
6209
  ChangeDescription?: string;
@@ -6022,7 +6216,7 @@ interface components {
6022
6216
  ChangeSetID?: string;
6023
6217
  /** @description Placement of each component. Exactly one is supported. */
6024
6218
  Components?: components["schemas"]["UploadComponentRequest"][];
6025
- /** @description The bundle's files. Paths must be relative and may not contain "..". */
6219
+ /** @description The bundle's files. Paths must be relative and may not contain "..". Exactly one of Files and Source.Pull is given. */
6026
6220
  Files?: components["schemas"]["UploadRequestFile"][];
6027
6221
  Source?: components["schemas"]["UploadSourceInfo"];
6028
6222
  /** @description Labels applied to every Space, merge-patch: keys given are set, keys omitted are left alone. */
@@ -6044,13 +6238,18 @@ interface components {
6044
6238
  DryRun?: boolean;
6045
6239
  /** @description Digest of the planned actions. */
6046
6240
  Plan?: string;
6241
+ /** @description The digest of the manifest the server pulled, when Source.Pull was set. Send it as Source.Digest to upload exactly the bundle a dry run read. */
6242
+ SourceDigest?: string;
6047
6243
  };
6048
6244
  UploadSourceInfo: {
6049
6245
  /** @description The client that uploaded: cub, installer, ui. */
6050
6246
  Client?: string;
6051
6247
  ClientVersion?: string;
6248
+ Credentials?: components["schemas"]["UploadRegistryCredentials"];
6052
6249
  /** @description The resolved digest, when the transport has one. */
6053
6250
  Digest?: string;
6251
+ /** @description Fetch the bundle from Ref, an oci:// reference, instead of taking Files. With Digest set, that manifest is fetched rather than whatever Ref's tag names now. */
6252
+ Pull?: boolean;
6054
6253
  /** @description Where the bundle came from, e.g. oci://ghcr.io/confighub/configs/cubbychat:1.4.0 or a local path. */
6055
6254
  Ref?: string;
6056
6255
  };
@@ -6063,6 +6262,8 @@ interface components {
6063
6262
  * @example 248df4b7-aa70-47b8-a036-33ac447e668d
6064
6263
  */
6065
6264
  ChangeSetID?: string;
6265
+ /** @description Resources this upload writes that other Units deployed to the same Target also define: the Space's other Units, and when the Space has a Target, Units elsewhere on that Target. */
6266
+ Duplicates?: components["schemas"]["UploadDuplicate"][];
6066
6267
  Links?: components["schemas"]["UploadLinkResult"][];
6067
6268
  Namespace?: string;
6068
6269
  /**
@@ -6074,6 +6275,20 @@ interface components {
6074
6275
  SpaceSlug?: string;
6075
6276
  Units?: components["schemas"]["UploadUnitResult"][];
6076
6277
  };
6278
+ UploadUnitRef: {
6279
+ /**
6280
+ * Format: uuid
6281
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
6282
+ */
6283
+ SpaceID?: string;
6284
+ SpaceSlug?: string;
6285
+ /**
6286
+ * Format: uuid
6287
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
6288
+ */
6289
+ UnitID?: string;
6290
+ UnitSlug?: string;
6291
+ };
6077
6292
  UploadUnitResult: {
6078
6293
  /** @description Create, Update, Unchanged, Empty, Revive, or Adopt. */
6079
6294
  Action?: string;
@@ -6654,7 +6869,7 @@ interface operations {
6654
6869
  "application/json": components["schemas"]["StandardErrorResponse"];
6655
6870
  };
6656
6871
  };
6657
- /** @description Space data conflict. Data has changed since last read. */
6872
+ /** @description Space is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
6658
6873
  409: {
6659
6874
  headers: {
6660
6875
  [name: string]: unknown;
@@ -7480,7 +7695,7 @@ interface operations {
7480
7695
  "application/json": components["schemas"]["StandardErrorResponse"];
7481
7696
  };
7482
7697
  };
7483
- /** @description Attribute data conflict. Data has changed since last read. */
7698
+ /** @description Attribute is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
7484
7699
  409: {
7485
7700
  headers: {
7486
7701
  [name: string]: unknown;
@@ -7983,7 +8198,7 @@ interface operations {
7983
8198
  "application/json": components["schemas"]["StandardErrorResponse"];
7984
8199
  };
7985
8200
  };
7986
- /** @description BridgeWorker data conflict. Data has changed since last read. */
8201
+ /** @description BridgeWorker is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
7987
8202
  409: {
7988
8203
  headers: {
7989
8204
  [name: string]: unknown;
@@ -8582,7 +8797,7 @@ interface operations {
8582
8797
  * An example conjunction is:
8583
8798
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
8584
8799
  *
8585
- * 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.
8800
+ * 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, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
8586
8801
  *
8587
8802
  * The whole string must be query-encoded.
8588
8803
  */
@@ -8750,7 +8965,7 @@ interface operations {
8750
8965
  * An example conjunction is:
8751
8966
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
8752
8967
  *
8753
- * 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.
8968
+ * 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, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
8754
8969
  *
8755
8970
  * The whole string must be query-encoded.
8756
8971
  */
@@ -9026,7 +9241,7 @@ interface operations {
9026
9241
  * An example conjunction is:
9027
9242
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
9028
9243
  *
9029
- * 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.
9244
+ * 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, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
9030
9245
  *
9031
9246
  * The whole string must be query-encoded.
9032
9247
  */
@@ -9134,7 +9349,7 @@ interface operations {
9134
9349
  "application/json": components["schemas"]["StandardErrorResponse"];
9135
9350
  };
9136
9351
  };
9137
- /** @description ChangeOrder data conflict. Data has changed since last read. */
9352
+ /** @description ChangeOrder is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
9138
9353
  409: {
9139
9354
  headers: {
9140
9355
  [name: string]: unknown;
@@ -9210,7 +9425,7 @@ interface operations {
9210
9425
  * An example conjunction is:
9211
9426
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
9212
9427
  *
9213
- * 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.
9428
+ * 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, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
9214
9429
  *
9215
9430
  * The whole string must be query-encoded.
9216
9431
  */
@@ -9961,7 +10176,7 @@ interface operations {
9961
10176
  "application/json": components["schemas"]["StandardErrorResponse"];
9962
10177
  };
9963
10178
  };
9964
- /** @description ChangeSet data conflict. Data has changed since last read. */
10179
+ /** @description ChangeSet is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
9965
10180
  409: {
9966
10181
  headers: {
9967
10182
  [name: string]: unknown;
@@ -10780,7 +10995,7 @@ interface operations {
10780
10995
  "application/json": components["schemas"]["StandardErrorResponse"];
10781
10996
  };
10782
10997
  };
10783
- /** @description ChangeWorkflow data conflict. Data has changed since last read. */
10998
+ /** @description ChangeWorkflow is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
10784
10999
  409: {
10785
11000
  headers: {
10786
11001
  [name: string]: unknown;
@@ -11608,7 +11823,7 @@ interface operations {
11608
11823
  "application/json": components["schemas"]["StandardErrorResponse"];
11609
11824
  };
11610
11825
  };
11611
- /** @description Filter data conflict. Data has changed since last read. */
11826
+ /** @description Filter is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
11612
11827
  409: {
11613
11828
  headers: {
11614
11829
  [name: string]: unknown;
@@ -12801,7 +13016,7 @@ interface operations {
12801
13016
  "application/json": components["schemas"]["StandardErrorResponse"];
12802
13017
  };
12803
13018
  };
12804
- /** @description Invocation data conflict. Data has changed since last read. */
13019
+ /** @description Invocation is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
12805
13020
  409: {
12806
13021
  headers: {
12807
13022
  [name: string]: unknown;
@@ -13647,7 +13862,7 @@ interface operations {
13647
13862
  "application/json": components["schemas"]["StandardErrorResponse"];
13648
13863
  };
13649
13864
  };
13650
- /** @description Link data conflict. Data has changed since last read. */
13865
+ /** @description Link is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
13651
13866
  409: {
13652
13867
  headers: {
13653
13868
  [name: string]: unknown;
@@ -14366,7 +14581,7 @@ interface operations {
14366
14581
  "application/json": components["schemas"]["StandardErrorResponse"];
14367
14582
  };
14368
14583
  };
14369
- /** @description OAuthClient data conflict. Data has changed since last read. */
14584
+ /** @description OAuthClient is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
14370
14585
  409: {
14371
14586
  headers: {
14372
14587
  [name: string]: unknown;
@@ -14908,7 +15123,7 @@ interface operations {
14908
15123
  "application/json": components["schemas"]["StandardErrorResponse"];
14909
15124
  };
14910
15125
  };
14911
- /** @description Organization data conflict. Data has changed since last read. */
15126
+ /** @description Organization is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
14912
15127
  409: {
14913
15128
  headers: {
14914
15129
  [name: string]: unknown;
@@ -15324,7 +15539,7 @@ interface operations {
15324
15539
  "application/json": components["schemas"]["StandardErrorResponse"];
15325
15540
  };
15326
15541
  };
15327
- /** @description OrganizationMember data conflict. Data has changed since last read. */
15542
+ /** @description OrganizationMember is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
15328
15543
  409: {
15329
15544
  headers: {
15330
15545
  [name: string]: unknown;
@@ -15362,6 +15577,116 @@ interface operations {
15362
15577
  };
15363
15578
  };
15364
15579
  };
15580
+ Promote: {
15581
+ parameters: {
15582
+ query?: {
15583
+ /** @description Plan the promotion, evaluate its gates, and return the same response without writing anything. */
15584
+ dry_run?: boolean;
15585
+ /** @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. */
15586
+ include?: string;
15587
+ };
15588
+ header?: never;
15589
+ path?: never;
15590
+ cookie?: never;
15591
+ };
15592
+ requestBody?: {
15593
+ content: {
15594
+ "application/json": components["schemas"]["PromoteRequest"];
15595
+ };
15596
+ };
15597
+ responses: {
15598
+ /** @description OK */
15599
+ 200: {
15600
+ headers: {
15601
+ [name: string]: unknown;
15602
+ };
15603
+ content: {
15604
+ "application/json": components["schemas"]["PromoteResult"];
15605
+ };
15606
+ };
15607
+ /** @description Multi-Status: some Unit or Link writes failed, each carrying its own error */
15608
+ 207: {
15609
+ headers: {
15610
+ [name: string]: unknown;
15611
+ };
15612
+ content: {
15613
+ "application/json": components["schemas"]["PromoteResult"];
15614
+ };
15615
+ };
15616
+ /** @description Promote request is invalid (Bad Request). */
15617
+ 400: {
15618
+ headers: {
15619
+ [name: string]: unknown;
15620
+ };
15621
+ content: {
15622
+ "application/json": components["schemas"]["StandardErrorResponse"];
15623
+ };
15624
+ };
15625
+ /** @description Unauthorized access. */
15626
+ 401: {
15627
+ headers: {
15628
+ [name: string]: unknown;
15629
+ };
15630
+ content: {
15631
+ "application/json": components["schemas"]["StandardErrorResponse"];
15632
+ };
15633
+ };
15634
+ /** @description Forbidden access. */
15635
+ 403: {
15636
+ headers: {
15637
+ [name: string]: unknown;
15638
+ };
15639
+ content: {
15640
+ "application/json": components["schemas"]["StandardErrorResponse"];
15641
+ };
15642
+ };
15643
+ /** @description Promote not found. */
15644
+ 404: {
15645
+ headers: {
15646
+ [name: string]: unknown;
15647
+ };
15648
+ content: {
15649
+ "application/json": components["schemas"]["StandardErrorResponse"];
15650
+ };
15651
+ };
15652
+ /** @description The Stage's entry gates do not hold; the result names each gate and whether it holds. Nothing was written. */
15653
+ 409: {
15654
+ headers: {
15655
+ [name: string]: unknown;
15656
+ };
15657
+ content: {
15658
+ "application/json": components["schemas"]["PromoteResult"];
15659
+ };
15660
+ };
15661
+ /** @description The plan differs from ExpectedPlan. Nothing was written. */
15662
+ 412: {
15663
+ headers: {
15664
+ [name: string]: unknown;
15665
+ };
15666
+ content: {
15667
+ "application/json": components["schemas"]["StandardErrorResponse"];
15668
+ };
15669
+ };
15670
+ /** @description Something went wrong while processing Promote. */
15671
+ 500: {
15672
+ headers: {
15673
+ [name: string]: unknown;
15674
+ };
15675
+ content: {
15676
+ "application/json": components["schemas"]["StandardErrorResponse"];
15677
+ };
15678
+ };
15679
+ /** @description Unexpected error. */
15680
+ default: {
15681
+ headers: {
15682
+ [name: string]: unknown;
15683
+ };
15684
+ content: {
15685
+ "application/json": components["schemas"]["StandardErrorResponse"];
15686
+ };
15687
+ };
15688
+ };
15689
+ };
15365
15690
  ListAllReleases: {
15366
15691
  parameters: {
15367
15692
  query?: {
@@ -16832,7 +17157,7 @@ interface operations {
16832
17157
  "application/json": components["schemas"]["StandardErrorResponse"];
16833
17158
  };
16834
17159
  };
16835
- /** @description Space data conflict. Data has changed since last read. */
17160
+ /** @description Space is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
16836
17161
  409: {
16837
17162
  headers: {
16838
17163
  [name: string]: unknown;
@@ -17519,7 +17844,7 @@ interface operations {
17519
17844
  "application/json": components["schemas"]["StandardErrorResponse"];
17520
17845
  };
17521
17846
  };
17522
- /** @description Attribute data conflict. Data has changed since last read. */
17847
+ /** @description Attribute is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
17523
17848
  409: {
17524
17849
  headers: {
17525
17850
  [name: string]: unknown;
@@ -18212,7 +18537,7 @@ interface operations {
18212
18537
  "application/json": components["schemas"]["StandardErrorResponse"];
18213
18538
  };
18214
18539
  };
18215
- /** @description BridgeWorker data conflict. Data has changed since last read. */
18540
+ /** @description BridgeWorker is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
18216
18541
  409: {
18217
18542
  headers: {
18218
18543
  [name: string]: unknown;
@@ -18603,7 +18928,7 @@ interface operations {
18603
18928
  * An example conjunction is:
18604
18929
  * `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
18605
18930
  *
18606
- * 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.
18931
+ * 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, SpaceID, StartTagID, State, UnitFilterID, UpdateType, UpdatedAt, WhereUnit.
18607
18932
  *
18608
18933
  * The whole string must be query-encoded.
18609
18934
  */
@@ -19081,7 +19406,7 @@ interface operations {
19081
19406
  "application/json": components["schemas"]["StandardErrorResponse"];
19082
19407
  };
19083
19408
  };
19084
- /** @description ChangeOrder data conflict. Data has changed since last read. */
19409
+ /** @description ChangeOrder is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
19085
19410
  409: {
19086
19411
  headers: {
19087
19412
  [name: string]: unknown;
@@ -19760,7 +20085,7 @@ interface operations {
19760
20085
  "application/json": components["schemas"]["StandardErrorResponse"];
19761
20086
  };
19762
20087
  };
19763
- /** @description ChangeSet data conflict. Data has changed since last read. */
20088
+ /** @description ChangeSet is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
19764
20089
  409: {
19765
20090
  headers: {
19766
20091
  [name: string]: unknown;
@@ -20426,7 +20751,7 @@ interface operations {
20426
20751
  "application/json": components["schemas"]["StandardErrorResponse"];
20427
20752
  };
20428
20753
  };
20429
- /** @description ChangeWorkflow data conflict. Data has changed since last read. */
20754
+ /** @description ChangeWorkflow is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
20430
20755
  409: {
20431
20756
  headers: {
20432
20757
  [name: string]: unknown;
@@ -21101,7 +21426,7 @@ interface operations {
21101
21426
  "application/json": components["schemas"]["StandardErrorResponse"];
21102
21427
  };
21103
21428
  };
21104
- /** @description Filter data conflict. Data has changed since last read. */
21429
+ /** @description Filter is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
21105
21430
  409: {
21106
21431
  headers: {
21107
21432
  [name: string]: unknown;
@@ -22128,7 +22453,7 @@ interface operations {
22128
22453
  "application/json": components["schemas"]["StandardErrorResponse"];
22129
22454
  };
22130
22455
  };
22131
- /** @description Invocation data conflict. Data has changed since last read. */
22456
+ /** @description Invocation is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
22132
22457
  409: {
22133
22458
  headers: {
22134
22459
  [name: string]: unknown;
@@ -22808,7 +23133,7 @@ interface operations {
22808
23133
  "application/json": components["schemas"]["StandardErrorResponse"];
22809
23134
  };
22810
23135
  };
22811
- /** @description Link data conflict. Data has changed since last read. */
23136
+ /** @description Link is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
22812
23137
  409: {
22813
23138
  headers: {
22814
23139
  [name: string]: unknown;
@@ -23514,7 +23839,7 @@ interface operations {
23514
23839
  "application/json": components["schemas"]["StandardErrorResponse"];
23515
23840
  };
23516
23841
  };
23517
- /** @description Release data conflict. Data has changed since last read. */
23842
+ /** @description Release is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
23518
23843
  409: {
23519
23844
  headers: {
23520
23845
  [name: string]: unknown;
@@ -24351,7 +24676,7 @@ interface operations {
24351
24676
  "application/json": components["schemas"]["StandardErrorResponse"];
24352
24677
  };
24353
24678
  };
24354
- /** @description Tag data conflict. Data has changed since last read. */
24679
+ /** @description Tag is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
24355
24680
  409: {
24356
24681
  headers: {
24357
24682
  [name: string]: unknown;
@@ -25019,7 +25344,7 @@ interface operations {
25019
25344
  "application/json": components["schemas"]["StandardErrorResponse"];
25020
25345
  };
25021
25346
  };
25022
- /** @description Target data conflict. Data has changed since last read. */
25347
+ /** @description Target is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
25023
25348
  409: {
25024
25349
  headers: {
25025
25350
  [name: string]: unknown;
@@ -25729,7 +26054,7 @@ interface operations {
25729
26054
  "application/json": components["schemas"]["StandardErrorResponse"];
25730
26055
  };
25731
26056
  };
25732
- /** @description Trigger data conflict. Data has changed since last read. */
26057
+ /** @description Trigger is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
25733
26058
  409: {
25734
26059
  headers: {
25735
26060
  [name: string]: unknown;
@@ -26573,7 +26898,7 @@ interface operations {
26573
26898
  "application/json": components["schemas"]["StandardErrorResponse"];
26574
26899
  };
26575
26900
  };
26576
- /** @description Unit data conflict. Data has changed since last read. */
26901
+ /** @description Unit is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
26577
26902
  409: {
26578
26903
  headers: {
26579
26904
  [name: string]: unknown;
@@ -29603,7 +29928,7 @@ interface operations {
29603
29928
  "application/json": components["schemas"]["StandardErrorResponse"];
29604
29929
  };
29605
29930
  };
29606
- /** @description View data conflict. Data has changed since last read. */
29931
+ /** @description View is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
29607
29932
  409: {
29608
29933
  headers: {
29609
29934
  [name: string]: unknown;
@@ -30335,7 +30660,7 @@ interface operations {
30335
30660
  "application/json": components["schemas"]["StandardErrorResponse"];
30336
30661
  };
30337
30662
  };
30338
- /** @description Tag data conflict. Data has changed since last read. */
30663
+ /** @description Tag is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
30339
30664
  409: {
30340
30665
  headers: {
30341
30666
  [name: string]: unknown;
@@ -30885,7 +31210,7 @@ interface operations {
30885
31210
  "application/json": components["schemas"]["StandardErrorResponse"];
30886
31211
  };
30887
31212
  };
30888
- /** @description Target data conflict. Data has changed since last read. */
31213
+ /** @description Target is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
30889
31214
  409: {
30890
31215
  headers: {
30891
31216
  [name: string]: unknown;
@@ -31749,7 +32074,7 @@ interface operations {
31749
32074
  "application/json": components["schemas"]["StandardErrorResponse"];
31750
32075
  };
31751
32076
  };
31752
- /** @description Trigger data conflict. Data has changed since last read. */
32077
+ /** @description Trigger is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
31753
32078
  409: {
31754
32079
  headers: {
31755
32080
  [name: string]: unknown;
@@ -32689,7 +33014,7 @@ interface operations {
32689
33014
  "application/json": components["schemas"]["StandardErrorResponse"];
32690
33015
  };
32691
33016
  };
32692
- /** @description Unit data conflict. Data has changed since last read. */
33017
+ /** @description Unit is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
32693
33018
  409: {
32694
33019
  headers: {
32695
33020
  [name: string]: unknown;
@@ -34375,6 +34700,15 @@ interface operations {
34375
34700
  "application/json": components["schemas"]["StandardErrorResponse"];
34376
34701
  };
34377
34702
  };
34703
+ /** @description The bundle could not be pulled from Source.Ref */
34704
+ 422: {
34705
+ headers: {
34706
+ [name: string]: unknown;
34707
+ };
34708
+ content: {
34709
+ "application/json": components["schemas"]["StandardErrorResponse"];
34710
+ };
34711
+ };
34378
34712
  /** @description Something went wrong while processing Upload. */
34379
34713
  500: {
34380
34714
  headers: {
@@ -34384,6 +34718,15 @@ interface operations {
34384
34718
  "application/json": components["schemas"]["StandardErrorResponse"];
34385
34719
  };
34386
34720
  };
34721
+ /** @description Pulling the bundle from Source.Ref took too long */
34722
+ 504: {
34723
+ headers: {
34724
+ [name: string]: unknown;
34725
+ };
34726
+ content: {
34727
+ "application/json": components["schemas"]["StandardErrorResponse"];
34728
+ };
34729
+ };
34387
34730
  /** @description Unexpected error. */
34388
34731
  default: {
34389
34732
  headers: {
@@ -34845,7 +35188,7 @@ interface operations {
34845
35188
  "application/json": components["schemas"]["StandardErrorResponse"];
34846
35189
  };
34847
35190
  };
34848
- /** @description User data conflict. Data has changed since last read. */
35191
+ /** @description User is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
34849
35192
  409: {
34850
35193
  headers: {
34851
35194
  [name: string]: unknown;
@@ -35466,7 +35809,7 @@ interface operations {
35466
35809
  "application/json": components["schemas"]["StandardErrorResponse"];
35467
35810
  };
35468
35811
  };
35469
- /** @description View data conflict. Data has changed since last read. */
35812
+ /** @description View is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
35470
35813
  409: {
35471
35814
  headers: {
35472
35815
  [name: string]: unknown;