@confighub/api 0.4.12 → 0.4.14

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
@@ -2314,7 +2314,7 @@ interface paths {
2314
2314
  put?: never;
2315
2315
  /**
2316
2316
  * 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.
2317
+ * @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
2318
  */
2319
2319
  post: operations["Upload"];
2320
2320
  delete?: never;
@@ -5934,6 +5934,8 @@ interface components {
5934
5934
  UploadComponentRequest: {
5935
5935
  /** @description Synthesize the release Namespace if the bundle lacks it. Off by default. */
5936
5936
  CreateNamespace?: boolean;
5937
+ /** @description Names of the components this one depends on, recorded in the Space's DependsOn annotation. Requires a Variant Space label. */
5938
+ DependsOn?: string[];
5937
5939
  /** @description The component name. */
5938
5940
  Name?: string;
5939
5941
  /** @description The release namespace. Required when the bundle has namespaced resources that name no namespace. */
@@ -5989,6 +5991,14 @@ interface components {
5989
5991
  /** @description References that resolved to no resource in the bundle. */
5990
5992
  UnmatchedReferences?: components["schemas"]["UploadUnmatchedReference"][];
5991
5993
  };
5994
+ UploadDuplicate: {
5995
+ /** @description The other Units that define the resource. */
5996
+ Others?: components["schemas"]["UploadUnitRef"][];
5997
+ /** @description The resource identity, as in UploadUnitResult.Resource. */
5998
+ Resource?: string;
5999
+ /** @description The slug of this upload's Unit for the resource. */
6000
+ Slug?: string;
6001
+ };
5992
6002
  UploadLinkResult: {
5993
6003
  /** @description Create or Unchanged. */
5994
6004
  Action?: string;
@@ -6008,6 +6018,12 @@ interface components {
6008
6018
  /** @description The release Namespace the bundle already carries. */
6009
6019
  Namespace?: string;
6010
6020
  };
6021
+ UploadRegistryCredentials: {
6022
+ /** @description The password, or an access token for registries that issue them. */
6023
+ Password?: string;
6024
+ /** @description The registry username. */
6025
+ Username?: string;
6026
+ };
6011
6027
  UploadRequest: {
6012
6028
  /** @description Recorded on each Unit write. */
6013
6029
  ChangeDescription?: string;
@@ -6020,7 +6036,7 @@ interface components {
6020
6036
  ChangeSetID?: string;
6021
6037
  /** @description Placement of each component. Exactly one is supported. */
6022
6038
  Components?: components["schemas"]["UploadComponentRequest"][];
6023
- /** @description The bundle's files. Paths must be relative and may not contain "..". */
6039
+ /** @description The bundle's files. Paths must be relative and may not contain "..". Exactly one of Files and Source.Pull is given. */
6024
6040
  Files?: components["schemas"]["UploadRequestFile"][];
6025
6041
  Source?: components["schemas"]["UploadSourceInfo"];
6026
6042
  /** @description Labels applied to every Space, merge-patch: keys given are set, keys omitted are left alone. */
@@ -6042,13 +6058,18 @@ interface components {
6042
6058
  DryRun?: boolean;
6043
6059
  /** @description Digest of the planned actions. */
6044
6060
  Plan?: string;
6061
+ /** @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. */
6062
+ SourceDigest?: string;
6045
6063
  };
6046
6064
  UploadSourceInfo: {
6047
6065
  /** @description The client that uploaded: cub, installer, ui. */
6048
6066
  Client?: string;
6049
6067
  ClientVersion?: string;
6068
+ Credentials?: components["schemas"]["UploadRegistryCredentials"];
6050
6069
  /** @description The resolved digest, when the transport has one. */
6051
6070
  Digest?: string;
6071
+ /** @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. */
6072
+ Pull?: boolean;
6052
6073
  /** @description Where the bundle came from, e.g. oci://ghcr.io/confighub/configs/cubbychat:1.4.0 or a local path. */
6053
6074
  Ref?: string;
6054
6075
  };
@@ -6061,6 +6082,8 @@ interface components {
6061
6082
  * @example 248df4b7-aa70-47b8-a036-33ac447e668d
6062
6083
  */
6063
6084
  ChangeSetID?: string;
6085
+ /** @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. */
6086
+ Duplicates?: components["schemas"]["UploadDuplicate"][];
6064
6087
  Links?: components["schemas"]["UploadLinkResult"][];
6065
6088
  Namespace?: string;
6066
6089
  /**
@@ -6072,15 +6095,29 @@ interface components {
6072
6095
  SpaceSlug?: string;
6073
6096
  Units?: components["schemas"]["UploadUnitResult"][];
6074
6097
  };
6098
+ UploadUnitRef: {
6099
+ /**
6100
+ * Format: uuid
6101
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
6102
+ */
6103
+ SpaceID?: string;
6104
+ SpaceSlug?: string;
6105
+ /**
6106
+ * Format: uuid
6107
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
6108
+ */
6109
+ UnitID?: string;
6110
+ UnitSlug?: string;
6111
+ };
6075
6112
  UploadUnitResult: {
6076
6113
  /** @description Create, Update, Unchanged, Empty, Revive, or Adopt. */
6077
6114
  Action?: string;
6078
6115
  Conflicts?: components["schemas"]["MutationConflictList"];
6079
6116
  Error?: components["schemas"]["ResponseError"];
6080
- Mutations?: components["schemas"]["MutationMap"];
6117
+ Mutations?: components["schemas"]["ResourceMutationList"];
6081
6118
  /** @description The resource identity this Unit is keyed by. */
6082
6119
  Resource?: string;
6083
- /** @description Resource, AppConfig, AppConfigRendered, or Record. */
6120
+ /** @description Resource, AppConfig, or AppConfigRendered. */
6084
6121
  Role?: string;
6085
6122
  Slug?: string;
6086
6123
  /**
@@ -6652,7 +6689,7 @@ interface operations {
6652
6689
  "application/json": components["schemas"]["StandardErrorResponse"];
6653
6690
  };
6654
6691
  };
6655
- /** @description Space data conflict. Data has changed since last read. */
6692
+ /** @description Space is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
6656
6693
  409: {
6657
6694
  headers: {
6658
6695
  [name: string]: unknown;
@@ -7478,7 +7515,7 @@ interface operations {
7478
7515
  "application/json": components["schemas"]["StandardErrorResponse"];
7479
7516
  };
7480
7517
  };
7481
- /** @description Attribute data conflict. Data has changed since last read. */
7518
+ /** @description Attribute is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
7482
7519
  409: {
7483
7520
  headers: {
7484
7521
  [name: string]: unknown;
@@ -7981,7 +8018,7 @@ interface operations {
7981
8018
  "application/json": components["schemas"]["StandardErrorResponse"];
7982
8019
  };
7983
8020
  };
7984
- /** @description BridgeWorker data conflict. Data has changed since last read. */
8021
+ /** @description BridgeWorker is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
7985
8022
  409: {
7986
8023
  headers: {
7987
8024
  [name: string]: unknown;
@@ -9132,7 +9169,7 @@ interface operations {
9132
9169
  "application/json": components["schemas"]["StandardErrorResponse"];
9133
9170
  };
9134
9171
  };
9135
- /** @description ChangeOrder data conflict. Data has changed since last read. */
9172
+ /** @description ChangeOrder is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
9136
9173
  409: {
9137
9174
  headers: {
9138
9175
  [name: string]: unknown;
@@ -9959,7 +9996,7 @@ interface operations {
9959
9996
  "application/json": components["schemas"]["StandardErrorResponse"];
9960
9997
  };
9961
9998
  };
9962
- /** @description ChangeSet data conflict. Data has changed since last read. */
9999
+ /** @description ChangeSet is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
9963
10000
  409: {
9964
10001
  headers: {
9965
10002
  [name: string]: unknown;
@@ -10778,7 +10815,7 @@ interface operations {
10778
10815
  "application/json": components["schemas"]["StandardErrorResponse"];
10779
10816
  };
10780
10817
  };
10781
- /** @description ChangeWorkflow data conflict. Data has changed since last read. */
10818
+ /** @description ChangeWorkflow is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
10782
10819
  409: {
10783
10820
  headers: {
10784
10821
  [name: string]: unknown;
@@ -11606,7 +11643,7 @@ interface operations {
11606
11643
  "application/json": components["schemas"]["StandardErrorResponse"];
11607
11644
  };
11608
11645
  };
11609
- /** @description Filter data conflict. Data has changed since last read. */
11646
+ /** @description Filter is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
11610
11647
  409: {
11611
11648
  headers: {
11612
11649
  [name: string]: unknown;
@@ -12799,7 +12836,7 @@ interface operations {
12799
12836
  "application/json": components["schemas"]["StandardErrorResponse"];
12800
12837
  };
12801
12838
  };
12802
- /** @description Invocation data conflict. Data has changed since last read. */
12839
+ /** @description Invocation is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
12803
12840
  409: {
12804
12841
  headers: {
12805
12842
  [name: string]: unknown;
@@ -13645,7 +13682,7 @@ interface operations {
13645
13682
  "application/json": components["schemas"]["StandardErrorResponse"];
13646
13683
  };
13647
13684
  };
13648
- /** @description Link data conflict. Data has changed since last read. */
13685
+ /** @description Link is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
13649
13686
  409: {
13650
13687
  headers: {
13651
13688
  [name: string]: unknown;
@@ -14364,7 +14401,7 @@ interface operations {
14364
14401
  "application/json": components["schemas"]["StandardErrorResponse"];
14365
14402
  };
14366
14403
  };
14367
- /** @description OAuthClient data conflict. Data has changed since last read. */
14404
+ /** @description OAuthClient is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
14368
14405
  409: {
14369
14406
  headers: {
14370
14407
  [name: string]: unknown;
@@ -14906,7 +14943,7 @@ interface operations {
14906
14943
  "application/json": components["schemas"]["StandardErrorResponse"];
14907
14944
  };
14908
14945
  };
14909
- /** @description Organization data conflict. Data has changed since last read. */
14946
+ /** @description Organization is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
14910
14947
  409: {
14911
14948
  headers: {
14912
14949
  [name: string]: unknown;
@@ -15322,7 +15359,7 @@ interface operations {
15322
15359
  "application/json": components["schemas"]["StandardErrorResponse"];
15323
15360
  };
15324
15361
  };
15325
- /** @description OrganizationMember data conflict. Data has changed since last read. */
15362
+ /** @description OrganizationMember is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
15326
15363
  409: {
15327
15364
  headers: {
15328
15365
  [name: string]: unknown;
@@ -16830,7 +16867,7 @@ interface operations {
16830
16867
  "application/json": components["schemas"]["StandardErrorResponse"];
16831
16868
  };
16832
16869
  };
16833
- /** @description Space data conflict. Data has changed since last read. */
16870
+ /** @description Space is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
16834
16871
  409: {
16835
16872
  headers: {
16836
16873
  [name: string]: unknown;
@@ -17517,7 +17554,7 @@ interface operations {
17517
17554
  "application/json": components["schemas"]["StandardErrorResponse"];
17518
17555
  };
17519
17556
  };
17520
- /** @description Attribute data conflict. Data has changed since last read. */
17557
+ /** @description Attribute is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
17521
17558
  409: {
17522
17559
  headers: {
17523
17560
  [name: string]: unknown;
@@ -18210,7 +18247,7 @@ interface operations {
18210
18247
  "application/json": components["schemas"]["StandardErrorResponse"];
18211
18248
  };
18212
18249
  };
18213
- /** @description BridgeWorker data conflict. Data has changed since last read. */
18250
+ /** @description BridgeWorker is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
18214
18251
  409: {
18215
18252
  headers: {
18216
18253
  [name: string]: unknown;
@@ -19079,7 +19116,7 @@ interface operations {
19079
19116
  "application/json": components["schemas"]["StandardErrorResponse"];
19080
19117
  };
19081
19118
  };
19082
- /** @description ChangeOrder data conflict. Data has changed since last read. */
19119
+ /** @description ChangeOrder is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
19083
19120
  409: {
19084
19121
  headers: {
19085
19122
  [name: string]: unknown;
@@ -19758,7 +19795,7 @@ interface operations {
19758
19795
  "application/json": components["schemas"]["StandardErrorResponse"];
19759
19796
  };
19760
19797
  };
19761
- /** @description ChangeSet data conflict. Data has changed since last read. */
19798
+ /** @description ChangeSet is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
19762
19799
  409: {
19763
19800
  headers: {
19764
19801
  [name: string]: unknown;
@@ -20424,7 +20461,7 @@ interface operations {
20424
20461
  "application/json": components["schemas"]["StandardErrorResponse"];
20425
20462
  };
20426
20463
  };
20427
- /** @description ChangeWorkflow data conflict. Data has changed since last read. */
20464
+ /** @description ChangeWorkflow is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
20428
20465
  409: {
20429
20466
  headers: {
20430
20467
  [name: string]: unknown;
@@ -21099,7 +21136,7 @@ interface operations {
21099
21136
  "application/json": components["schemas"]["StandardErrorResponse"];
21100
21137
  };
21101
21138
  };
21102
- /** @description Filter data conflict. Data has changed since last read. */
21139
+ /** @description Filter is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
21103
21140
  409: {
21104
21141
  headers: {
21105
21142
  [name: string]: unknown;
@@ -22126,7 +22163,7 @@ interface operations {
22126
22163
  "application/json": components["schemas"]["StandardErrorResponse"];
22127
22164
  };
22128
22165
  };
22129
- /** @description Invocation data conflict. Data has changed since last read. */
22166
+ /** @description Invocation is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
22130
22167
  409: {
22131
22168
  headers: {
22132
22169
  [name: string]: unknown;
@@ -22806,7 +22843,7 @@ interface operations {
22806
22843
  "application/json": components["schemas"]["StandardErrorResponse"];
22807
22844
  };
22808
22845
  };
22809
- /** @description Link data conflict. Data has changed since last read. */
22846
+ /** @description Link is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
22810
22847
  409: {
22811
22848
  headers: {
22812
22849
  [name: string]: unknown;
@@ -23512,7 +23549,7 @@ interface operations {
23512
23549
  "application/json": components["schemas"]["StandardErrorResponse"];
23513
23550
  };
23514
23551
  };
23515
- /** @description Release data conflict. Data has changed since last read. */
23552
+ /** @description Release is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
23516
23553
  409: {
23517
23554
  headers: {
23518
23555
  [name: string]: unknown;
@@ -24349,7 +24386,7 @@ interface operations {
24349
24386
  "application/json": components["schemas"]["StandardErrorResponse"];
24350
24387
  };
24351
24388
  };
24352
- /** @description Tag data conflict. Data has changed since last read. */
24389
+ /** @description Tag is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
24353
24390
  409: {
24354
24391
  headers: {
24355
24392
  [name: string]: unknown;
@@ -25017,7 +25054,7 @@ interface operations {
25017
25054
  "application/json": components["schemas"]["StandardErrorResponse"];
25018
25055
  };
25019
25056
  };
25020
- /** @description Target data conflict. Data has changed since last read. */
25057
+ /** @description Target is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
25021
25058
  409: {
25022
25059
  headers: {
25023
25060
  [name: string]: unknown;
@@ -25727,7 +25764,7 @@ interface operations {
25727
25764
  "application/json": components["schemas"]["StandardErrorResponse"];
25728
25765
  };
25729
25766
  };
25730
- /** @description Trigger data conflict. Data has changed since last read. */
25767
+ /** @description Trigger is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
25731
25768
  409: {
25732
25769
  headers: {
25733
25770
  [name: string]: unknown;
@@ -26571,7 +26608,7 @@ interface operations {
26571
26608
  "application/json": components["schemas"]["StandardErrorResponse"];
26572
26609
  };
26573
26610
  };
26574
- /** @description Unit data conflict. Data has changed since last read. */
26611
+ /** @description Unit is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
26575
26612
  409: {
26576
26613
  headers: {
26577
26614
  [name: string]: unknown;
@@ -29601,7 +29638,7 @@ interface operations {
29601
29638
  "application/json": components["schemas"]["StandardErrorResponse"];
29602
29639
  };
29603
29640
  };
29604
- /** @description View data conflict. Data has changed since last read. */
29641
+ /** @description View is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
29605
29642
  409: {
29606
29643
  headers: {
29607
29644
  [name: string]: unknown;
@@ -30333,7 +30370,7 @@ interface operations {
30333
30370
  "application/json": components["schemas"]["StandardErrorResponse"];
30334
30371
  };
30335
30372
  };
30336
- /** @description Tag data conflict. Data has changed since last read. */
30373
+ /** @description Tag is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
30337
30374
  409: {
30338
30375
  headers: {
30339
30376
  [name: string]: unknown;
@@ -30883,7 +30920,7 @@ interface operations {
30883
30920
  "application/json": components["schemas"]["StandardErrorResponse"];
30884
30921
  };
30885
30922
  };
30886
- /** @description Target data conflict. Data has changed since last read. */
30923
+ /** @description Target is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
30887
30924
  409: {
30888
30925
  headers: {
30889
30926
  [name: string]: unknown;
@@ -31747,7 +31784,7 @@ interface operations {
31747
31784
  "application/json": components["schemas"]["StandardErrorResponse"];
31748
31785
  };
31749
31786
  };
31750
- /** @description Trigger data conflict. Data has changed since last read. */
31787
+ /** @description Trigger is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
31751
31788
  409: {
31752
31789
  headers: {
31753
31790
  [name: string]: unknown;
@@ -32687,7 +32724,7 @@ interface operations {
32687
32724
  "application/json": components["schemas"]["StandardErrorResponse"];
32688
32725
  };
32689
32726
  };
32690
- /** @description Unit data conflict. Data has changed since last read. */
32727
+ /** @description Unit is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
32691
32728
  409: {
32692
32729
  headers: {
32693
32730
  [name: string]: unknown;
@@ -34297,6 +34334,8 @@ interface operations {
34297
34334
  query?: {
34298
34335
  /** @description Plan the upload and return the same response without writing anything. */
34299
34336
  dry_run?: boolean;
34337
+ /** @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. It costs something to return, and on a dry run it runs the merges a plan otherwise skips, so it is returned only when named. */
34338
+ include?: string;
34300
34339
  };
34301
34340
  header?: never;
34302
34341
  path?: never;
@@ -34371,6 +34410,15 @@ interface operations {
34371
34410
  "application/json": components["schemas"]["StandardErrorResponse"];
34372
34411
  };
34373
34412
  };
34413
+ /** @description The bundle could not be pulled from Source.Ref */
34414
+ 422: {
34415
+ headers: {
34416
+ [name: string]: unknown;
34417
+ };
34418
+ content: {
34419
+ "application/json": components["schemas"]["StandardErrorResponse"];
34420
+ };
34421
+ };
34374
34422
  /** @description Something went wrong while processing Upload. */
34375
34423
  500: {
34376
34424
  headers: {
@@ -34380,6 +34428,15 @@ interface operations {
34380
34428
  "application/json": components["schemas"]["StandardErrorResponse"];
34381
34429
  };
34382
34430
  };
34431
+ /** @description Pulling the bundle from Source.Ref took too long */
34432
+ 504: {
34433
+ headers: {
34434
+ [name: string]: unknown;
34435
+ };
34436
+ content: {
34437
+ "application/json": components["schemas"]["StandardErrorResponse"];
34438
+ };
34439
+ };
34383
34440
  /** @description Unexpected error. */
34384
34441
  default: {
34385
34442
  headers: {
@@ -34841,7 +34898,7 @@ interface operations {
34841
34898
  "application/json": components["schemas"]["StandardErrorResponse"];
34842
34899
  };
34843
34900
  };
34844
- /** @description User data conflict. Data has changed since last read. */
34901
+ /** @description User is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
34845
34902
  409: {
34846
34903
  headers: {
34847
34904
  [name: string]: unknown;
@@ -35462,7 +35519,7 @@ interface operations {
35462
35519
  "application/json": components["schemas"]["StandardErrorResponse"];
35463
35520
  };
35464
35521
  };
35465
- /** @description View data conflict. Data has changed since last read. */
35522
+ /** @description View is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
35466
35523
  409: {
35467
35524
  headers: {
35468
35525
  [name: string]: unknown;
package/dist/index.d.ts CHANGED
@@ -2314,7 +2314,7 @@ interface paths {
2314
2314
  put?: never;
2315
2315
  /**
2316
2316
  * 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.
2317
+ * @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
2318
  */
2319
2319
  post: operations["Upload"];
2320
2320
  delete?: never;
@@ -5934,6 +5934,8 @@ interface components {
5934
5934
  UploadComponentRequest: {
5935
5935
  /** @description Synthesize the release Namespace if the bundle lacks it. Off by default. */
5936
5936
  CreateNamespace?: boolean;
5937
+ /** @description Names of the components this one depends on, recorded in the Space's DependsOn annotation. Requires a Variant Space label. */
5938
+ DependsOn?: string[];
5937
5939
  /** @description The component name. */
5938
5940
  Name?: string;
5939
5941
  /** @description The release namespace. Required when the bundle has namespaced resources that name no namespace. */
@@ -5989,6 +5991,14 @@ interface components {
5989
5991
  /** @description References that resolved to no resource in the bundle. */
5990
5992
  UnmatchedReferences?: components["schemas"]["UploadUnmatchedReference"][];
5991
5993
  };
5994
+ UploadDuplicate: {
5995
+ /** @description The other Units that define the resource. */
5996
+ Others?: components["schemas"]["UploadUnitRef"][];
5997
+ /** @description The resource identity, as in UploadUnitResult.Resource. */
5998
+ Resource?: string;
5999
+ /** @description The slug of this upload's Unit for the resource. */
6000
+ Slug?: string;
6001
+ };
5992
6002
  UploadLinkResult: {
5993
6003
  /** @description Create or Unchanged. */
5994
6004
  Action?: string;
@@ -6008,6 +6018,12 @@ interface components {
6008
6018
  /** @description The release Namespace the bundle already carries. */
6009
6019
  Namespace?: string;
6010
6020
  };
6021
+ UploadRegistryCredentials: {
6022
+ /** @description The password, or an access token for registries that issue them. */
6023
+ Password?: string;
6024
+ /** @description The registry username. */
6025
+ Username?: string;
6026
+ };
6011
6027
  UploadRequest: {
6012
6028
  /** @description Recorded on each Unit write. */
6013
6029
  ChangeDescription?: string;
@@ -6020,7 +6036,7 @@ interface components {
6020
6036
  ChangeSetID?: string;
6021
6037
  /** @description Placement of each component. Exactly one is supported. */
6022
6038
  Components?: components["schemas"]["UploadComponentRequest"][];
6023
- /** @description The bundle's files. Paths must be relative and may not contain "..". */
6039
+ /** @description The bundle's files. Paths must be relative and may not contain "..". Exactly one of Files and Source.Pull is given. */
6024
6040
  Files?: components["schemas"]["UploadRequestFile"][];
6025
6041
  Source?: components["schemas"]["UploadSourceInfo"];
6026
6042
  /** @description Labels applied to every Space, merge-patch: keys given are set, keys omitted are left alone. */
@@ -6042,13 +6058,18 @@ interface components {
6042
6058
  DryRun?: boolean;
6043
6059
  /** @description Digest of the planned actions. */
6044
6060
  Plan?: string;
6061
+ /** @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. */
6062
+ SourceDigest?: string;
6045
6063
  };
6046
6064
  UploadSourceInfo: {
6047
6065
  /** @description The client that uploaded: cub, installer, ui. */
6048
6066
  Client?: string;
6049
6067
  ClientVersion?: string;
6068
+ Credentials?: components["schemas"]["UploadRegistryCredentials"];
6050
6069
  /** @description The resolved digest, when the transport has one. */
6051
6070
  Digest?: string;
6071
+ /** @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. */
6072
+ Pull?: boolean;
6052
6073
  /** @description Where the bundle came from, e.g. oci://ghcr.io/confighub/configs/cubbychat:1.4.0 or a local path. */
6053
6074
  Ref?: string;
6054
6075
  };
@@ -6061,6 +6082,8 @@ interface components {
6061
6082
  * @example 248df4b7-aa70-47b8-a036-33ac447e668d
6062
6083
  */
6063
6084
  ChangeSetID?: string;
6085
+ /** @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. */
6086
+ Duplicates?: components["schemas"]["UploadDuplicate"][];
6064
6087
  Links?: components["schemas"]["UploadLinkResult"][];
6065
6088
  Namespace?: string;
6066
6089
  /**
@@ -6072,15 +6095,29 @@ interface components {
6072
6095
  SpaceSlug?: string;
6073
6096
  Units?: components["schemas"]["UploadUnitResult"][];
6074
6097
  };
6098
+ UploadUnitRef: {
6099
+ /**
6100
+ * Format: uuid
6101
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
6102
+ */
6103
+ SpaceID?: string;
6104
+ SpaceSlug?: string;
6105
+ /**
6106
+ * Format: uuid
6107
+ * @example 248df4b7-aa70-47b8-a036-33ac447e668d
6108
+ */
6109
+ UnitID?: string;
6110
+ UnitSlug?: string;
6111
+ };
6075
6112
  UploadUnitResult: {
6076
6113
  /** @description Create, Update, Unchanged, Empty, Revive, or Adopt. */
6077
6114
  Action?: string;
6078
6115
  Conflicts?: components["schemas"]["MutationConflictList"];
6079
6116
  Error?: components["schemas"]["ResponseError"];
6080
- Mutations?: components["schemas"]["MutationMap"];
6117
+ Mutations?: components["schemas"]["ResourceMutationList"];
6081
6118
  /** @description The resource identity this Unit is keyed by. */
6082
6119
  Resource?: string;
6083
- /** @description Resource, AppConfig, AppConfigRendered, or Record. */
6120
+ /** @description Resource, AppConfig, or AppConfigRendered. */
6084
6121
  Role?: string;
6085
6122
  Slug?: string;
6086
6123
  /**
@@ -6652,7 +6689,7 @@ interface operations {
6652
6689
  "application/json": components["schemas"]["StandardErrorResponse"];
6653
6690
  };
6654
6691
  };
6655
- /** @description Space data conflict. Data has changed since last read. */
6692
+ /** @description Space is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
6656
6693
  409: {
6657
6694
  headers: {
6658
6695
  [name: string]: unknown;
@@ -7478,7 +7515,7 @@ interface operations {
7478
7515
  "application/json": components["schemas"]["StandardErrorResponse"];
7479
7516
  };
7480
7517
  };
7481
- /** @description Attribute data conflict. Data has changed since last read. */
7518
+ /** @description Attribute is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
7482
7519
  409: {
7483
7520
  headers: {
7484
7521
  [name: string]: unknown;
@@ -7981,7 +8018,7 @@ interface operations {
7981
8018
  "application/json": components["schemas"]["StandardErrorResponse"];
7982
8019
  };
7983
8020
  };
7984
- /** @description BridgeWorker data conflict. Data has changed since last read. */
8021
+ /** @description BridgeWorker is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
7985
8022
  409: {
7986
8023
  headers: {
7987
8024
  [name: string]: unknown;
@@ -9132,7 +9169,7 @@ interface operations {
9132
9169
  "application/json": components["schemas"]["StandardErrorResponse"];
9133
9170
  };
9134
9171
  };
9135
- /** @description ChangeOrder data conflict. Data has changed since last read. */
9172
+ /** @description ChangeOrder is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
9136
9173
  409: {
9137
9174
  headers: {
9138
9175
  [name: string]: unknown;
@@ -9959,7 +9996,7 @@ interface operations {
9959
9996
  "application/json": components["schemas"]["StandardErrorResponse"];
9960
9997
  };
9961
9998
  };
9962
- /** @description ChangeSet data conflict. Data has changed since last read. */
9999
+ /** @description ChangeSet is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
9963
10000
  409: {
9964
10001
  headers: {
9965
10002
  [name: string]: unknown;
@@ -10778,7 +10815,7 @@ interface operations {
10778
10815
  "application/json": components["schemas"]["StandardErrorResponse"];
10779
10816
  };
10780
10817
  };
10781
- /** @description ChangeWorkflow data conflict. Data has changed since last read. */
10818
+ /** @description ChangeWorkflow is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
10782
10819
  409: {
10783
10820
  headers: {
10784
10821
  [name: string]: unknown;
@@ -11606,7 +11643,7 @@ interface operations {
11606
11643
  "application/json": components["schemas"]["StandardErrorResponse"];
11607
11644
  };
11608
11645
  };
11609
- /** @description Filter data conflict. Data has changed since last read. */
11646
+ /** @description Filter is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
11610
11647
  409: {
11611
11648
  headers: {
11612
11649
  [name: string]: unknown;
@@ -12799,7 +12836,7 @@ interface operations {
12799
12836
  "application/json": components["schemas"]["StandardErrorResponse"];
12800
12837
  };
12801
12838
  };
12802
- /** @description Invocation data conflict. Data has changed since last read. */
12839
+ /** @description Invocation is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
12803
12840
  409: {
12804
12841
  headers: {
12805
12842
  [name: string]: unknown;
@@ -13645,7 +13682,7 @@ interface operations {
13645
13682
  "application/json": components["schemas"]["StandardErrorResponse"];
13646
13683
  };
13647
13684
  };
13648
- /** @description Link data conflict. Data has changed since last read. */
13685
+ /** @description Link is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
13649
13686
  409: {
13650
13687
  headers: {
13651
13688
  [name: string]: unknown;
@@ -14364,7 +14401,7 @@ interface operations {
14364
14401
  "application/json": components["schemas"]["StandardErrorResponse"];
14365
14402
  };
14366
14403
  };
14367
- /** @description OAuthClient data conflict. Data has changed since last read. */
14404
+ /** @description OAuthClient is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
14368
14405
  409: {
14369
14406
  headers: {
14370
14407
  [name: string]: unknown;
@@ -14906,7 +14943,7 @@ interface operations {
14906
14943
  "application/json": components["schemas"]["StandardErrorResponse"];
14907
14944
  };
14908
14945
  };
14909
- /** @description Organization data conflict. Data has changed since last read. */
14946
+ /** @description Organization is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
14910
14947
  409: {
14911
14948
  headers: {
14912
14949
  [name: string]: unknown;
@@ -15322,7 +15359,7 @@ interface operations {
15322
15359
  "application/json": components["schemas"]["StandardErrorResponse"];
15323
15360
  };
15324
15361
  };
15325
- /** @description OrganizationMember data conflict. Data has changed since last read. */
15362
+ /** @description OrganizationMember is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
15326
15363
  409: {
15327
15364
  headers: {
15328
15365
  [name: string]: unknown;
@@ -16830,7 +16867,7 @@ interface operations {
16830
16867
  "application/json": components["schemas"]["StandardErrorResponse"];
16831
16868
  };
16832
16869
  };
16833
- /** @description Space data conflict. Data has changed since last read. */
16870
+ /** @description Space is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
16834
16871
  409: {
16835
16872
  headers: {
16836
16873
  [name: string]: unknown;
@@ -17517,7 +17554,7 @@ interface operations {
17517
17554
  "application/json": components["schemas"]["StandardErrorResponse"];
17518
17555
  };
17519
17556
  };
17520
- /** @description Attribute data conflict. Data has changed since last read. */
17557
+ /** @description Attribute is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
17521
17558
  409: {
17522
17559
  headers: {
17523
17560
  [name: string]: unknown;
@@ -18210,7 +18247,7 @@ interface operations {
18210
18247
  "application/json": components["schemas"]["StandardErrorResponse"];
18211
18248
  };
18212
18249
  };
18213
- /** @description BridgeWorker data conflict. Data has changed since last read. */
18250
+ /** @description BridgeWorker is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
18214
18251
  409: {
18215
18252
  headers: {
18216
18253
  [name: string]: unknown;
@@ -19079,7 +19116,7 @@ interface operations {
19079
19116
  "application/json": components["schemas"]["StandardErrorResponse"];
19080
19117
  };
19081
19118
  };
19082
- /** @description ChangeOrder data conflict. Data has changed since last read. */
19119
+ /** @description ChangeOrder is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
19083
19120
  409: {
19084
19121
  headers: {
19085
19122
  [name: string]: unknown;
@@ -19758,7 +19795,7 @@ interface operations {
19758
19795
  "application/json": components["schemas"]["StandardErrorResponse"];
19759
19796
  };
19760
19797
  };
19761
- /** @description ChangeSet data conflict. Data has changed since last read. */
19798
+ /** @description ChangeSet is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
19762
19799
  409: {
19763
19800
  headers: {
19764
19801
  [name: string]: unknown;
@@ -20424,7 +20461,7 @@ interface operations {
20424
20461
  "application/json": components["schemas"]["StandardErrorResponse"];
20425
20462
  };
20426
20463
  };
20427
- /** @description ChangeWorkflow data conflict. Data has changed since last read. */
20464
+ /** @description ChangeWorkflow is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
20428
20465
  409: {
20429
20466
  headers: {
20430
20467
  [name: string]: unknown;
@@ -21099,7 +21136,7 @@ interface operations {
21099
21136
  "application/json": components["schemas"]["StandardErrorResponse"];
21100
21137
  };
21101
21138
  };
21102
- /** @description Filter data conflict. Data has changed since last read. */
21139
+ /** @description Filter is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
21103
21140
  409: {
21104
21141
  headers: {
21105
21142
  [name: string]: unknown;
@@ -22126,7 +22163,7 @@ interface operations {
22126
22163
  "application/json": components["schemas"]["StandardErrorResponse"];
22127
22164
  };
22128
22165
  };
22129
- /** @description Invocation data conflict. Data has changed since last read. */
22166
+ /** @description Invocation is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
22130
22167
  409: {
22131
22168
  headers: {
22132
22169
  [name: string]: unknown;
@@ -22806,7 +22843,7 @@ interface operations {
22806
22843
  "application/json": components["schemas"]["StandardErrorResponse"];
22807
22844
  };
22808
22845
  };
22809
- /** @description Link data conflict. Data has changed since last read. */
22846
+ /** @description Link is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
22810
22847
  409: {
22811
22848
  headers: {
22812
22849
  [name: string]: unknown;
@@ -23512,7 +23549,7 @@ interface operations {
23512
23549
  "application/json": components["schemas"]["StandardErrorResponse"];
23513
23550
  };
23514
23551
  };
23515
- /** @description Release data conflict. Data has changed since last read. */
23552
+ /** @description Release is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
23516
23553
  409: {
23517
23554
  headers: {
23518
23555
  [name: string]: unknown;
@@ -24349,7 +24386,7 @@ interface operations {
24349
24386
  "application/json": components["schemas"]["StandardErrorResponse"];
24350
24387
  };
24351
24388
  };
24352
- /** @description Tag data conflict. Data has changed since last read. */
24389
+ /** @description Tag is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
24353
24390
  409: {
24354
24391
  headers: {
24355
24392
  [name: string]: unknown;
@@ -25017,7 +25054,7 @@ interface operations {
25017
25054
  "application/json": components["schemas"]["StandardErrorResponse"];
25018
25055
  };
25019
25056
  };
25020
- /** @description Target data conflict. Data has changed since last read. */
25057
+ /** @description Target is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
25021
25058
  409: {
25022
25059
  headers: {
25023
25060
  [name: string]: unknown;
@@ -25727,7 +25764,7 @@ interface operations {
25727
25764
  "application/json": components["schemas"]["StandardErrorResponse"];
25728
25765
  };
25729
25766
  };
25730
- /** @description Trigger data conflict. Data has changed since last read. */
25767
+ /** @description Trigger is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
25731
25768
  409: {
25732
25769
  headers: {
25733
25770
  [name: string]: unknown;
@@ -26571,7 +26608,7 @@ interface operations {
26571
26608
  "application/json": components["schemas"]["StandardErrorResponse"];
26572
26609
  };
26573
26610
  };
26574
- /** @description Unit data conflict. Data has changed since last read. */
26611
+ /** @description Unit is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
26575
26612
  409: {
26576
26613
  headers: {
26577
26614
  [name: string]: unknown;
@@ -29601,7 +29638,7 @@ interface operations {
29601
29638
  "application/json": components["schemas"]["StandardErrorResponse"];
29602
29639
  };
29603
29640
  };
29604
- /** @description View data conflict. Data has changed since last read. */
29641
+ /** @description View is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
29605
29642
  409: {
29606
29643
  headers: {
29607
29644
  [name: string]: unknown;
@@ -30333,7 +30370,7 @@ interface operations {
30333
30370
  "application/json": components["schemas"]["StandardErrorResponse"];
30334
30371
  };
30335
30372
  };
30336
- /** @description Tag data conflict. Data has changed since last read. */
30373
+ /** @description Tag is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
30337
30374
  409: {
30338
30375
  headers: {
30339
30376
  [name: string]: unknown;
@@ -30883,7 +30920,7 @@ interface operations {
30883
30920
  "application/json": components["schemas"]["StandardErrorResponse"];
30884
30921
  };
30885
30922
  };
30886
- /** @description Target data conflict. Data has changed since last read. */
30923
+ /** @description Target is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
30887
30924
  409: {
30888
30925
  headers: {
30889
30926
  [name: string]: unknown;
@@ -31747,7 +31784,7 @@ interface operations {
31747
31784
  "application/json": components["schemas"]["StandardErrorResponse"];
31748
31785
  };
31749
31786
  };
31750
- /** @description Trigger data conflict. Data has changed since last read. */
31787
+ /** @description Trigger is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
31751
31788
  409: {
31752
31789
  headers: {
31753
31790
  [name: string]: unknown;
@@ -32687,7 +32724,7 @@ interface operations {
32687
32724
  "application/json": components["schemas"]["StandardErrorResponse"];
32688
32725
  };
32689
32726
  };
32690
- /** @description Unit data conflict. Data has changed since last read. */
32727
+ /** @description Unit is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
32691
32728
  409: {
32692
32729
  headers: {
32693
32730
  [name: string]: unknown;
@@ -34297,6 +34334,8 @@ interface operations {
34297
34334
  query?: {
34298
34335
  /** @description Plan the upload and return the same response without writing anything. */
34299
34336
  dry_run?: boolean;
34337
+ /** @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. It costs something to return, and on a dry run it runs the merges a plan otherwise skips, so it is returned only when named. */
34338
+ include?: string;
34300
34339
  };
34301
34340
  header?: never;
34302
34341
  path?: never;
@@ -34371,6 +34410,15 @@ interface operations {
34371
34410
  "application/json": components["schemas"]["StandardErrorResponse"];
34372
34411
  };
34373
34412
  };
34413
+ /** @description The bundle could not be pulled from Source.Ref */
34414
+ 422: {
34415
+ headers: {
34416
+ [name: string]: unknown;
34417
+ };
34418
+ content: {
34419
+ "application/json": components["schemas"]["StandardErrorResponse"];
34420
+ };
34421
+ };
34374
34422
  /** @description Something went wrong while processing Upload. */
34375
34423
  500: {
34376
34424
  headers: {
@@ -34380,6 +34428,15 @@ interface operations {
34380
34428
  "application/json": components["schemas"]["StandardErrorResponse"];
34381
34429
  };
34382
34430
  };
34431
+ /** @description Pulling the bundle from Source.Ref took too long */
34432
+ 504: {
34433
+ headers: {
34434
+ [name: string]: unknown;
34435
+ };
34436
+ content: {
34437
+ "application/json": components["schemas"]["StandardErrorResponse"];
34438
+ };
34439
+ };
34383
34440
  /** @description Unexpected error. */
34384
34441
  default: {
34385
34442
  headers: {
@@ -34841,7 +34898,7 @@ interface operations {
34841
34898
  "application/json": components["schemas"]["StandardErrorResponse"];
34842
34899
  };
34843
34900
  };
34844
- /** @description User data conflict. Data has changed since last read. */
34901
+ /** @description User is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
34845
34902
  409: {
34846
34903
  headers: {
34847
34904
  [name: string]: unknown;
@@ -35462,7 +35519,7 @@ interface operations {
35462
35519
  "application/json": components["schemas"]["StandardErrorResponse"];
35463
35520
  };
35464
35521
  };
35465
- /** @description View data conflict. Data has changed since last read. */
35522
+ /** @description View is still in use: it has DeleteGates, or other entities still reference it. Or data has changed since last read. */
35466
35523
  409: {
35467
35524
  headers: {
35468
35525
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confighub/api",
3
- "version": "0.4.12",
3
+ "version": "0.4.14",
4
4
  "description": "Typed, framework-agnostic client for the ConfigHub API",
5
5
  "license": "MIT",
6
6
  "repository": {