@confighub/api 0.1.3 → 0.4.0
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.cjs +32 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +204 -23
- package/dist/index.d.ts +204 -23
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -395,6 +395,26 @@ interface paths {
|
|
|
395
395
|
patch?: never;
|
|
396
396
|
trace?: never;
|
|
397
397
|
};
|
|
398
|
+
"/me/browser-session": {
|
|
399
|
+
parameters: {
|
|
400
|
+
query?: never;
|
|
401
|
+
header?: never;
|
|
402
|
+
path?: never;
|
|
403
|
+
cookie?: never;
|
|
404
|
+
};
|
|
405
|
+
get?: never;
|
|
406
|
+
put?: never;
|
|
407
|
+
/**
|
|
408
|
+
* Create a single-use link that signs a browser in as the current user
|
|
409
|
+
* @description Returns a short-lived, single-use URL. Opening it exchanges the ticket for a session cookie. Intended for instances with no identity provider, where the browser has no other way to authenticate.
|
|
410
|
+
*/
|
|
411
|
+
post: operations["CreateBrowserSession"];
|
|
412
|
+
delete?: never;
|
|
413
|
+
options?: never;
|
|
414
|
+
head?: never;
|
|
415
|
+
patch?: never;
|
|
416
|
+
trace?: never;
|
|
417
|
+
};
|
|
398
418
|
"/oauth_client": {
|
|
399
419
|
parameters: {
|
|
400
420
|
query?: never;
|
|
@@ -2519,9 +2539,10 @@ interface components {
|
|
|
2519
2539
|
BoundProvidedProperties?: {
|
|
2520
2540
|
[key: string]: string;
|
|
2521
2541
|
};
|
|
2542
|
+
/** @description Value a defaulting function writes at this path, if any */
|
|
2543
|
+
DefaultValue?: unknown;
|
|
2522
2544
|
/** @description Description of the attribute */
|
|
2523
2545
|
Description?: string;
|
|
2524
|
-
GetterInvocation?: components["schemas"]["FunctionInvocation"];
|
|
2525
2546
|
/** @description Whether this attribute is a needed value */
|
|
2526
2547
|
IsNeeded?: boolean;
|
|
2527
2548
|
/** @description Whether this attribute is a provided value */
|
|
@@ -2538,8 +2559,6 @@ interface components {
|
|
|
2538
2559
|
ProvidedProperties?: {
|
|
2539
2560
|
[key: string]: string;
|
|
2540
2561
|
};
|
|
2541
|
-
/** @description Function invocation used to set the attribute (except for the value), if any */
|
|
2542
|
-
SetterInvocations?: components["schemas"]["FunctionInvocation"][];
|
|
2543
2562
|
};
|
|
2544
2563
|
AttributeInfo: {
|
|
2545
2564
|
/** @description Name of the registered attribute */
|
|
@@ -2780,10 +2799,21 @@ interface components {
|
|
|
2780
2799
|
/** @description Status indicates the current status of the bridge worker. Possible values include Connected, Disconnected, ActionSent, ActionResultReceived. */
|
|
2781
2800
|
Status?: string;
|
|
2782
2801
|
};
|
|
2802
|
+
BrowserSessionResponse: {
|
|
2803
|
+
ExpiresIn?: number;
|
|
2804
|
+
Ticket?: string;
|
|
2805
|
+
URL?: string;
|
|
2806
|
+
};
|
|
2783
2807
|
/** @description Defines a change's identity as it moves between Spaces. */
|
|
2784
2808
|
ChangeOrder: {
|
|
2785
2809
|
/** @description AbortedReason says why the ChangeOrder was given up on. Setting it is what aborts one: a ChangeOrder with a reason is Aborted whatever its Links say. */
|
|
2786
2810
|
AbortedReason?: string;
|
|
2811
|
+
/**
|
|
2812
|
+
* Format: uuid
|
|
2813
|
+
* @description AdoptedEndTagID is the Tag whose marks were taken as the ChangeOrder's boundary, when it was created with one, and empty when the boundary was each Unit's head Revision.
|
|
2814
|
+
* @example 248df4b7-aa70-47b8-a036-33ac447e668d
|
|
2815
|
+
*/
|
|
2816
|
+
readonly AdoptedEndTagID?: string;
|
|
2787
2817
|
/** @description An optional map of Annotation key/value pairs for tools to attach information to entities. */
|
|
2788
2818
|
Annotations?: {
|
|
2789
2819
|
[key: string]: string;
|
|
@@ -2815,7 +2845,7 @@ interface components {
|
|
|
2815
2845
|
DisplayName?: string;
|
|
2816
2846
|
/**
|
|
2817
2847
|
* Format: uuid
|
|
2818
|
-
* @description EndTagID is the identifier of the set of Revisions that end the ChangeOrder.
|
|
2848
|
+
* @description EndTagID is the identifier of the set of Revisions that end the ChangeOrder. The ChangeOrder always mints this Tag itself; supplying one at creation adopts its marks as the boundary, and the supplied Tag is recorded as AdoptedEndTagID and never written to. Without one the boundary is each Unit's head Revision.
|
|
2819
2849
|
* @example 248df4b7-aa70-47b8-a036-33ac447e668d
|
|
2820
2850
|
*/
|
|
2821
2851
|
EndTagID?: string;
|
|
@@ -2833,11 +2863,21 @@ interface components {
|
|
|
2833
2863
|
* @example 248df4b7-aa70-47b8-a036-33ac447e668d
|
|
2834
2864
|
*/
|
|
2835
2865
|
OrganizationID?: string;
|
|
2866
|
+
/** @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. */
|
|
2867
|
+
readonly ReleasedRestoredSpaceIDs?: components["schemas"]["UUID"][];
|
|
2836
2868
|
/** @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. */
|
|
2837
2869
|
readonly ReleasedSpaceIDs?: components["schemas"]["UUID"][];
|
|
2838
2870
|
/** @description ResolvedSpaceIDs is where the ChangeOrder has been fully propagated to: the Spaces in scope whose Links of its UpdateType have all merged it, plus the Space it resides in. Derived when the ChangeOrder is read. */
|
|
2839
2871
|
readonly ResolvedSpaceIDs?: components["schemas"]["UUID"][];
|
|
2840
|
-
/**
|
|
2872
|
+
/**
|
|
2873
|
+
* Format: uuid
|
|
2874
|
+
* @description RestoreTagID is the Tag marking the Revisions that undid the ChangeOrder. The first restore mints it; every restore after that marks with the same Tag. Empty until something has been restored.
|
|
2875
|
+
* @example 248df4b7-aa70-47b8-a036-33ac447e668d
|
|
2876
|
+
*/
|
|
2877
|
+
readonly RestoreTagID?: string;
|
|
2878
|
+
/** @description RestoredSpaceIDs is where the ChangeOrder has been undone: the Spaces whose Units all carry the restore Tag. Derived when the ChangeOrder is read. */
|
|
2879
|
+
readonly RestoredSpaceIDs?: components["schemas"]["UUID"][];
|
|
2880
|
+
/** @description SkippedUnits names the Units of the ChangeOrder's Space that it carries no Revisions of, mapped to the reason. Written when the scope is derived. A skipped Unit may still be marked by the ChangeOrder's Tags, when the Spaces in scope had already taken it. */
|
|
2841
2881
|
readonly SkippedUnits?: {
|
|
2842
2882
|
[key: string]: string;
|
|
2843
2883
|
};
|
|
@@ -2857,7 +2897,7 @@ interface components {
|
|
|
2857
2897
|
* @example 248df4b7-aa70-47b8-a036-33ac447e668d
|
|
2858
2898
|
*/
|
|
2859
2899
|
readonly StartTagID?: string;
|
|
2860
|
-
/** @description State is how far the ChangeOrder has got: New until a Space other than its own has taken it, InProgress while some have and some have not, Resolved once every Space in scope has, Released once every Space in scope has released what it took,
|
|
2900
|
+
/** @description State is how far the ChangeOrder has got: New until a Space other than its own has taken it, InProgress while some have and some have not, Resolved once every Space in scope has, Released once every Space in scope has released what it took, Aborted whenever AbortedReason is set, Restored once every Space that had taken it has been restored to the Revisions before it, and RestoreReleased once every Space that had released it has released the restored Revisions. Derived when the ChangeOrder is read. */
|
|
2861
2901
|
readonly State?: string;
|
|
2862
2902
|
/** @description UpdateType is the Link UpdateType this ChangeOrder follows when propagating. UpgradeUnit, the clone lineage, is the default; MergeUnits is the other supported value. */
|
|
2863
2903
|
UpdateType?: string;
|
|
@@ -3030,6 +3070,7 @@ interface components {
|
|
|
3030
3070
|
EndTag?: components["schemas"]["Tag"];
|
|
3031
3071
|
Error?: components["schemas"]["ResponseError"];
|
|
3032
3072
|
Organization?: components["schemas"]["Organization"];
|
|
3073
|
+
RestoreTag?: components["schemas"]["Tag"];
|
|
3033
3074
|
Space?: components["schemas"]["Space"];
|
|
3034
3075
|
StartTag?: components["schemas"]["Tag"];
|
|
3035
3076
|
};
|
|
@@ -3308,6 +3349,7 @@ interface components {
|
|
|
3308
3349
|
Clearance?: components["schemas"]["Clearance"];
|
|
3309
3350
|
/** @description Function name */
|
|
3310
3351
|
FunctionName?: string;
|
|
3352
|
+
Guards?: components["schemas"]["GuardStamp"];
|
|
3311
3353
|
/** @description Caller-supplied parameter values for expanding templated argument Values; transient, not persisted */
|
|
3312
3354
|
Params?: {
|
|
3313
3355
|
[key: string]: unknown;
|
|
@@ -3347,6 +3389,7 @@ interface components {
|
|
|
3347
3389
|
FunctionInvocationsResponse: {
|
|
3348
3390
|
/** @description The resulting configuration data; present only when the invocation changed it */
|
|
3349
3391
|
ConfigData?: string;
|
|
3392
|
+
Conflicts?: components["schemas"]["MutationConflictList"];
|
|
3350
3393
|
/** @description SHA256 of the resulting configuration data, whether or not ConfigData is present */
|
|
3351
3394
|
DataHash?: string;
|
|
3352
3395
|
Error?: components["schemas"]["ResponseError"];
|
|
@@ -3479,6 +3522,9 @@ interface components {
|
|
|
3479
3522
|
[key: string]: string;
|
|
3480
3523
|
};
|
|
3481
3524
|
};
|
|
3525
|
+
GuardStamp: {
|
|
3526
|
+
[key: string]: string;
|
|
3527
|
+
};
|
|
3482
3528
|
/** @description Defines a stored, reusable call to one or more functions, executed in the order they are listed. */
|
|
3483
3529
|
Invocation: {
|
|
3484
3530
|
/** @description An optional map of Annotation key/value pairs for tools to attach information to entities. */
|
|
@@ -3617,6 +3663,7 @@ interface components {
|
|
|
3617
3663
|
* @example 248df4b7-aa70-47b8-a036-33ac447e668d
|
|
3618
3664
|
*/
|
|
3619
3665
|
FromUnitID: string;
|
|
3666
|
+
Guards?: components["schemas"]["GuardStamp"];
|
|
3620
3667
|
/** @description SHA256 hash of the resolution-relevant Link fields, used to detect changes that require re-resolution. */
|
|
3621
3668
|
readonly Hash?: string;
|
|
3622
3669
|
/** @description An optional map of Label key/value pairs to specify identifying attributes of entities for the purpose of grouping and filtering them. */
|
|
@@ -4429,7 +4476,6 @@ interface components {
|
|
|
4429
4476
|
BoundProvidedProperties?: {
|
|
4430
4477
|
[key: string]: string;
|
|
4431
4478
|
};
|
|
4432
|
-
GetterInvocation?: components["schemas"]["FunctionInvocation"];
|
|
4433
4479
|
/** @description Whether this attribute is a needed value */
|
|
4434
4480
|
IsNeeded?: boolean;
|
|
4435
4481
|
/** @description Whether this attribute is a provided value */
|
|
@@ -4448,7 +4494,6 @@ interface components {
|
|
|
4448
4494
|
[key: string]: string;
|
|
4449
4495
|
};
|
|
4450
4496
|
ResourceType?: string;
|
|
4451
|
-
SetterInvocation?: components["schemas"]["FunctionInvocation"];
|
|
4452
4497
|
};
|
|
4453
4498
|
ResponseError: {
|
|
4454
4499
|
/** @description Additional context messages */
|
|
@@ -5130,6 +5175,7 @@ interface components {
|
|
|
5130
5175
|
FailOpenAfter?: number | null;
|
|
5131
5176
|
/** @description Function name */
|
|
5132
5177
|
FunctionName?: string;
|
|
5178
|
+
Guards?: components["schemas"]["GuardStamp"];
|
|
5133
5179
|
/** @description SHA256 hash of the trigger's specification fields, used to detect changes. */
|
|
5134
5180
|
readonly Hash?: string;
|
|
5135
5181
|
/**
|
|
@@ -8209,7 +8255,7 @@ interface operations {
|
|
|
8209
8255
|
* An example conjunction is:
|
|
8210
8256
|
* `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
|
|
8211
8257
|
*
|
|
8212
|
-
* Supported attributes for filtering on ChangeOrder: AbortedReason, Annotations, ChangeOrderID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, Labels, OrganizationID, ReleasedSpaceIDs, ResolvedSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UpdateType, UpdatedAt.
|
|
8258
|
+
* Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, Labels, OrganizationID, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UpdateType, UpdatedAt.
|
|
8213
8259
|
*
|
|
8214
8260
|
* The whole string must be query-encoded.
|
|
8215
8261
|
*/
|
|
@@ -8251,7 +8297,7 @@ interface operations {
|
|
|
8251
8297
|
* The attribute names are case-sensitive, PascalCase, and
|
|
8252
8298
|
* expected in a comma-separated list format as in the JSON encoding.
|
|
8253
8299
|
*
|
|
8254
|
-
* Supported attributes for ChangeOrder are EndTagID, OrganizationID, SpaceID, StartTagID.
|
|
8300
|
+
* Supported attributes for ChangeOrder are EndTagID, OrganizationID, RestoreTagID, SpaceID, StartTagID.
|
|
8255
8301
|
*
|
|
8256
8302
|
* The whole string must be query-encoded.
|
|
8257
8303
|
*/
|
|
@@ -8377,7 +8423,7 @@ interface operations {
|
|
|
8377
8423
|
* An example conjunction is:
|
|
8378
8424
|
* `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
|
|
8379
8425
|
*
|
|
8380
|
-
* Supported attributes for filtering on ChangeOrder: AbortedReason, Annotations, ChangeOrderID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, Labels, OrganizationID, ReleasedSpaceIDs, ResolvedSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UpdateType, UpdatedAt.
|
|
8426
|
+
* Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, Labels, OrganizationID, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UpdateType, UpdatedAt.
|
|
8381
8427
|
*
|
|
8382
8428
|
* The whole string must be query-encoded.
|
|
8383
8429
|
*/
|
|
@@ -8419,7 +8465,7 @@ interface operations {
|
|
|
8419
8465
|
* The attribute names are case-sensitive, PascalCase, and
|
|
8420
8466
|
* expected in a comma-separated list format as in the JSON encoding.
|
|
8421
8467
|
*
|
|
8422
|
-
* Supported attributes for ChangeOrder are EndTagID, OrganizationID, SpaceID, StartTagID.
|
|
8468
|
+
* Supported attributes for ChangeOrder are EndTagID, OrganizationID, RestoreTagID, SpaceID, StartTagID.
|
|
8423
8469
|
*
|
|
8424
8470
|
* The whole string must be query-encoded.
|
|
8425
8471
|
*/
|
|
@@ -8645,7 +8691,7 @@ interface operations {
|
|
|
8645
8691
|
* An example conjunction is:
|
|
8646
8692
|
* `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
|
|
8647
8693
|
*
|
|
8648
|
-
* Supported attributes for filtering on ChangeOrder: AbortedReason, Annotations, ChangeOrderID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, Labels, OrganizationID, ReleasedSpaceIDs, ResolvedSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UpdateType, UpdatedAt.
|
|
8694
|
+
* Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, Labels, OrganizationID, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UpdateType, UpdatedAt.
|
|
8649
8695
|
*
|
|
8650
8696
|
* The whole string must be query-encoded.
|
|
8651
8697
|
*/
|
|
@@ -8687,7 +8733,7 @@ interface operations {
|
|
|
8687
8733
|
* The attribute names are case-sensitive, PascalCase, and
|
|
8688
8734
|
* expected in a comma-separated list format as in the JSON encoding.
|
|
8689
8735
|
*
|
|
8690
|
-
* Supported attributes for ChangeOrder are EndTagID, OrganizationID, SpaceID, StartTagID.
|
|
8736
|
+
* Supported attributes for ChangeOrder are EndTagID, OrganizationID, RestoreTagID, SpaceID, StartTagID.
|
|
8691
8737
|
*
|
|
8692
8738
|
* The whole string must be query-encoded.
|
|
8693
8739
|
*/
|
|
@@ -8829,7 +8875,7 @@ interface operations {
|
|
|
8829
8875
|
* An example conjunction is:
|
|
8830
8876
|
* `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
|
|
8831
8877
|
*
|
|
8832
|
-
* Supported attributes for filtering on ChangeOrder: AbortedReason, Annotations, ChangeOrderID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, Labels, OrganizationID, ReleasedSpaceIDs, ResolvedSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UpdateType, UpdatedAt.
|
|
8878
|
+
* Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, Labels, OrganizationID, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UpdateType, UpdatedAt.
|
|
8833
8879
|
*
|
|
8834
8880
|
* The whole string must be query-encoded.
|
|
8835
8881
|
*/
|
|
@@ -8871,7 +8917,7 @@ interface operations {
|
|
|
8871
8917
|
* The attribute names are case-sensitive, PascalCase, and
|
|
8872
8918
|
* expected in a comma-separated list format as in the JSON encoding.
|
|
8873
8919
|
*
|
|
8874
|
-
* Supported attributes for ChangeOrder are EndTagID, OrganizationID, SpaceID, StartTagID.
|
|
8920
|
+
* Supported attributes for ChangeOrder are EndTagID, OrganizationID, RestoreTagID, SpaceID, StartTagID.
|
|
8875
8921
|
*
|
|
8876
8922
|
* The whole string must be query-encoded.
|
|
8877
8923
|
*/
|
|
@@ -10769,6 +10815,8 @@ interface operations {
|
|
|
10769
10815
|
protect?: boolean;
|
|
10770
10816
|
/** @description The classes of guarded reason this operation is cleared for, as a JSON Clearance -- a list of {Key, Operator, Values} requirements, where Operator is Exists, In, NotIn, or DoesNotExist. A path whose guards this does not cover is not written, and the withheld change is reported as a Guarded conflict. An absent or empty clearance clears nothing, which only matters for a Unit that has guards. */
|
|
10771
10817
|
clearance?: string;
|
|
10818
|
+
/** @description The guards this operation records on the paths it writes, as a JSON object of guard key to value -- the reasons those paths hold what they hold, so a later operation must be cleared for them before overwriting. The guard analogue of protect: protect claims the paths, this says why. It only ever adds and overwrites the keys it names -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). */
|
|
10819
|
+
guards?: string;
|
|
10772
10820
|
/** @description Must match ChangeSetID of affected Units unless in dry run mode; not valid when invoked on Revisions */
|
|
10773
10821
|
change_set_id?: string;
|
|
10774
10822
|
/** @description User-defined category for the Mutation. Must be alphanumeric, at most 64 characters. The prefix 'ConfigHub' is reserved. */
|
|
@@ -12166,6 +12214,10 @@ interface operations {
|
|
|
12166
12214
|
DownstreamSetters?: (Record<string, never> | null)[] | null;
|
|
12167
12215
|
/** Format: uuid */
|
|
12168
12216
|
FromUnitID?: string | null;
|
|
12217
|
+
/** @description Guards to record on the paths this link's resolve writes, naming the reasons those paths hold what they hold, so a later operation must be cleared for them before overwriting. Sibling to Protect: Protect claims the paths, Guards say why. Add and overwrite only -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). Refused on UpgradeUnit and MergeUnits links, whose guards arrive by propagation from upstream. */
|
|
12218
|
+
Guards?: {
|
|
12219
|
+
[key: string]: string | null;
|
|
12220
|
+
} | null;
|
|
12169
12221
|
/** @description An optional map of Label key/value pairs to specify identifying attributes of entities for the purpose of grouping and filtering them. */
|
|
12170
12222
|
Labels?: {
|
|
12171
12223
|
[key: string]: string | null;
|
|
@@ -12577,6 +12629,10 @@ interface operations {
|
|
|
12577
12629
|
DownstreamSetters?: (Record<string, never> | null)[] | null;
|
|
12578
12630
|
/** Format: uuid */
|
|
12579
12631
|
FromUnitID?: string | null;
|
|
12632
|
+
/** @description Guards to record on the paths this link's resolve writes, naming the reasons those paths hold what they hold, so a later operation must be cleared for them before overwriting. Sibling to Protect: Protect claims the paths, Guards say why. Add and overwrite only -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). Refused on UpgradeUnit and MergeUnits links, whose guards arrive by propagation from upstream. */
|
|
12633
|
+
Guards?: {
|
|
12634
|
+
[key: string]: string | null;
|
|
12635
|
+
} | null;
|
|
12580
12636
|
/** @description An optional map of Label key/value pairs to specify identifying attributes of entities for the purpose of grouping and filtering them. */
|
|
12581
12637
|
Labels?: {
|
|
12582
12638
|
[key: string]: string | null;
|
|
@@ -12761,6 +12817,89 @@ interface operations {
|
|
|
12761
12817
|
};
|
|
12762
12818
|
};
|
|
12763
12819
|
};
|
|
12820
|
+
CreateBrowserSession: {
|
|
12821
|
+
parameters: {
|
|
12822
|
+
query?: never;
|
|
12823
|
+
header?: never;
|
|
12824
|
+
path?: never;
|
|
12825
|
+
cookie?: never;
|
|
12826
|
+
};
|
|
12827
|
+
requestBody?: never;
|
|
12828
|
+
responses: {
|
|
12829
|
+
/** @description OK */
|
|
12830
|
+
200: {
|
|
12831
|
+
headers: {
|
|
12832
|
+
[name: string]: unknown;
|
|
12833
|
+
};
|
|
12834
|
+
content: {
|
|
12835
|
+
"application/json": components["schemas"]["BrowserSessionResponse"];
|
|
12836
|
+
};
|
|
12837
|
+
};
|
|
12838
|
+
/** @description BrowserSession request is invalid (Bad Request). */
|
|
12839
|
+
400: {
|
|
12840
|
+
headers: {
|
|
12841
|
+
[name: string]: unknown;
|
|
12842
|
+
};
|
|
12843
|
+
content: {
|
|
12844
|
+
"application/json": components["schemas"]["StandardErrorResponse"];
|
|
12845
|
+
};
|
|
12846
|
+
};
|
|
12847
|
+
/** @description Unauthorized access. */
|
|
12848
|
+
401: {
|
|
12849
|
+
headers: {
|
|
12850
|
+
[name: string]: unknown;
|
|
12851
|
+
};
|
|
12852
|
+
content: {
|
|
12853
|
+
"application/json": components["schemas"]["StandardErrorResponse"];
|
|
12854
|
+
};
|
|
12855
|
+
};
|
|
12856
|
+
/** @description Forbidden access. */
|
|
12857
|
+
403: {
|
|
12858
|
+
headers: {
|
|
12859
|
+
[name: string]: unknown;
|
|
12860
|
+
};
|
|
12861
|
+
content: {
|
|
12862
|
+
"application/json": components["schemas"]["StandardErrorResponse"];
|
|
12863
|
+
};
|
|
12864
|
+
};
|
|
12865
|
+
/** @description BrowserSession not found. */
|
|
12866
|
+
404: {
|
|
12867
|
+
headers: {
|
|
12868
|
+
[name: string]: unknown;
|
|
12869
|
+
};
|
|
12870
|
+
content: {
|
|
12871
|
+
"application/json": components["schemas"]["StandardErrorResponse"];
|
|
12872
|
+
};
|
|
12873
|
+
};
|
|
12874
|
+
/** @description BrowserSession data conflict. Data has changed since last read. */
|
|
12875
|
+
409: {
|
|
12876
|
+
headers: {
|
|
12877
|
+
[name: string]: unknown;
|
|
12878
|
+
};
|
|
12879
|
+
content: {
|
|
12880
|
+
"application/json": components["schemas"]["StandardErrorResponse"];
|
|
12881
|
+
};
|
|
12882
|
+
};
|
|
12883
|
+
/** @description Something went wrong while processing BrowserSession. */
|
|
12884
|
+
500: {
|
|
12885
|
+
headers: {
|
|
12886
|
+
[name: string]: unknown;
|
|
12887
|
+
};
|
|
12888
|
+
content: {
|
|
12889
|
+
"application/json": components["schemas"]["StandardErrorResponse"];
|
|
12890
|
+
};
|
|
12891
|
+
};
|
|
12892
|
+
/** @description Unexpected error. */
|
|
12893
|
+
default: {
|
|
12894
|
+
headers: {
|
|
12895
|
+
[name: string]: unknown;
|
|
12896
|
+
};
|
|
12897
|
+
content: {
|
|
12898
|
+
"application/json": components["schemas"]["StandardErrorResponse"];
|
|
12899
|
+
};
|
|
12900
|
+
};
|
|
12901
|
+
};
|
|
12902
|
+
};
|
|
12764
12903
|
ListOAuthClients: {
|
|
12765
12904
|
parameters: {
|
|
12766
12905
|
query?: never;
|
|
@@ -17293,7 +17432,7 @@ interface operations {
|
|
|
17293
17432
|
* An example conjunction is:
|
|
17294
17433
|
* `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
|
|
17295
17434
|
*
|
|
17296
|
-
* Supported attributes for filtering on ChangeOrder: AbortedReason, Annotations, ChangeOrderID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, Labels, OrganizationID, ReleasedSpaceIDs, ResolvedSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UpdateType, UpdatedAt.
|
|
17435
|
+
* Supported attributes for filtering on ChangeOrder: AbortedReason, AdoptedEndTagID, Annotations, ChangeOrderID, CreatedAt, DeleteGates, Description, DisplayName, EndTagID, InScopeSpaceIDs, Labels, OrganizationID, ReleasedRestoredSpaceIDs, ReleasedSpaceIDs, ResolvedSpaceIDs, RestoreTagID, RestoredSpaceIDs, SkippedUnits, Slug, SpaceID, StartTagID, State, UpdateType, UpdatedAt.
|
|
17297
17436
|
*
|
|
17298
17437
|
* The whole string must be query-encoded.
|
|
17299
17438
|
*/
|
|
@@ -17335,7 +17474,7 @@ interface operations {
|
|
|
17335
17474
|
* The attribute names are case-sensitive, PascalCase, and
|
|
17336
17475
|
* expected in a comma-separated list format as in the JSON encoding.
|
|
17337
17476
|
*
|
|
17338
|
-
* Supported attributes for ChangeOrder are EndTagID, OrganizationID, SpaceID, StartTagID.
|
|
17477
|
+
* Supported attributes for ChangeOrder are EndTagID, OrganizationID, RestoreTagID, SpaceID, StartTagID.
|
|
17339
17478
|
*
|
|
17340
17479
|
* The whole string must be query-encoded.
|
|
17341
17480
|
*/
|
|
@@ -17527,7 +17666,7 @@ interface operations {
|
|
|
17527
17666
|
* The attribute names are case-sensitive, PascalCase, and
|
|
17528
17667
|
* expected in a comma-separated list format as in the JSON encoding.
|
|
17529
17668
|
*
|
|
17530
|
-
* Supported attributes for ChangeOrder are EndTagID, OrganizationID, SpaceID, StartTagID.
|
|
17669
|
+
* Supported attributes for ChangeOrder are EndTagID, OrganizationID, RestoreTagID, SpaceID, StartTagID.
|
|
17531
17670
|
*
|
|
17532
17671
|
* The whole string must be query-encoded.
|
|
17533
17672
|
*/
|
|
@@ -19406,6 +19545,8 @@ interface operations {
|
|
|
19406
19545
|
protect?: boolean;
|
|
19407
19546
|
/** @description The classes of guarded reason this operation is cleared for, as a JSON Clearance -- a list of {Key, Operator, Values} requirements, where Operator is Exists, In, NotIn, or DoesNotExist. A path whose guards this does not cover is not written, and the withheld change is reported as a Guarded conflict. An absent or empty clearance clears nothing, which only matters for a Unit that has guards. */
|
|
19408
19547
|
clearance?: string;
|
|
19548
|
+
/** @description The guards this operation records on the paths it writes, as a JSON object of guard key to value -- the reasons those paths hold what they hold, so a later operation must be cleared for them before overwriting. The guard analogue of protect: protect claims the paths, this says why. It only ever adds and overwrites the keys it names -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). */
|
|
19549
|
+
guards?: string;
|
|
19409
19550
|
/** @description Must match ChangeSetID of affected Units unless in dry run mode; not valid when invoked on Revisions */
|
|
19410
19551
|
change_set_id?: string;
|
|
19411
19552
|
/** @description User-defined category for the Mutation. Must be alphanumeric, at most 64 characters. The prefix 'ConfigHub' is reserved. */
|
|
@@ -20887,6 +21028,10 @@ interface operations {
|
|
|
20887
21028
|
DownstreamSetters?: (Record<string, never> | null)[] | null;
|
|
20888
21029
|
/** Format: uuid */
|
|
20889
21030
|
FromUnitID?: string | null;
|
|
21031
|
+
/** @description Guards to record on the paths this link's resolve writes, naming the reasons those paths hold what they hold, so a later operation must be cleared for them before overwriting. Sibling to Protect: Protect claims the paths, Guards say why. Add and overwrite only -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). Refused on UpgradeUnit and MergeUnits links, whose guards arrive by propagation from upstream. */
|
|
21032
|
+
Guards?: {
|
|
21033
|
+
[key: string]: string | null;
|
|
21034
|
+
} | null;
|
|
20890
21035
|
/** @description An optional map of Label key/value pairs to specify identifying attributes of entities for the purpose of grouping and filtering them. */
|
|
20891
21036
|
Labels?: {
|
|
20892
21037
|
[key: string]: string | null;
|
|
@@ -23802,6 +23947,10 @@ interface operations {
|
|
|
23802
23947
|
FailOpenAfter?: number | null;
|
|
23803
23948
|
/** @description Function name */
|
|
23804
23949
|
FunctionName?: string | null;
|
|
23950
|
+
/** @description Guards to record on the paths this trigger's function writes, naming the reasons those paths hold what they hold, so a later operation must be cleared for them before overwriting. Sibling to Protect: Protect claims the paths, Guards say why. Add and overwrite only -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). Only meaningful for a mutating trigger, and part of the trigger's Hash, unlike Protect. */
|
|
23951
|
+
Guards?: {
|
|
23952
|
+
[key: string]: string | null;
|
|
23953
|
+
} | null;
|
|
23805
23954
|
/** Format: uuid */
|
|
23806
23955
|
InvocationID?: string | null;
|
|
23807
23956
|
/** @description An optional map of Label key/value pairs to specify identifying attributes of entities for the purpose of grouping and filtering them. */
|
|
@@ -24322,6 +24471,8 @@ interface operations {
|
|
|
24322
24471
|
protect?: boolean;
|
|
24323
24472
|
/** @description The classes of guarded reason this operation is cleared for, as a JSON Clearance -- a list of {Key, Operator, Values} requirements, where Operator is Exists, In, NotIn, or DoesNotExist. A path whose guards this does not cover is not written, and the withheld change is reported as a Guarded conflict. An absent or empty clearance clears nothing, which only matters for a Unit that has guards. */
|
|
24324
24473
|
clearance?: string;
|
|
24474
|
+
/** @description The guards this operation records on the paths it writes, as a JSON object of guard key to value -- the reasons those paths hold what they hold, so a later operation must be cleared for them before overwriting. The guard analogue of protect: protect claims the paths, this says why. It only ever adds and overwrites the keys it names -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). */
|
|
24475
|
+
guards?: string;
|
|
24325
24476
|
/** @description Merge the range as one rebased diff and record it as one Revision, instead of walking it. By default a merge replays: it takes the source's Revisions in order and, where a Revision records function invocations that can be re-executed, runs them against this Unit rather than rebasing their recorded paths onto it -- so a change lands where this Unit's own structure puts it -- and records each source Revision that has an effect here as a Revision of its own, carrying that Revision's change description, its own conflicts, and one Mutation per source Mutation. Squashing gives up both: the range arrives as a single rebased patch in a single Revision, which is what a merge did before replay existed. Accepted with upgrade, merge_source, and resolve of an UpgradeUnit or MergeUnits Link, and refused elsewhere, since there is no range to walk. A Link can ask for it standingly with its Squash field. */
|
|
24326
24477
|
squash?: boolean;
|
|
24327
24478
|
/** @description Upgrade the unit to the latest version of its upstream unit */
|
|
@@ -24400,7 +24551,7 @@ interface operations {
|
|
|
24400
24551
|
tag?: string;
|
|
24401
24552
|
/** @description Must match ChangeSetID of affected Units if config Data is changed unless in dry run mode */
|
|
24402
24553
|
change_set_id?: string;
|
|
24403
|
-
/** @description ChangeOrder to promote, with upgrade or resolve. The change order fixed the range when it was created -- the interval on each source Unit, marked with its Tags -- so it supplies both ends of the merge and merge_end is refused alongside it. A Unit whose source the change order does not cover is passed over rather than failed, which is what lets a bulk upgrade name a whole Space and take only the Units the change is in. A Unit whose last merged revision is not where the change order starts is an error, since merging anyway would replay what it already has or skip what it does not, and with resolve a selected Link whose UpdateType the change order does not follow is an error too. The revisions the promotion creates carry the ChangeOrder, and its start Tag is placed on the revision before them and its end Tag on the one it arrives at, so 'restore Before:ChangeOrder:uuid' undoes it whether it landed as one revision or as one per source revision. */
|
|
24554
|
+
/** @description ChangeOrder to promote, with upgrade or resolve, or to undo, with restore. The change order fixed the range when it was created -- the interval on each source Unit, marked with its Tags -- so it supplies both ends of the merge and merge_end is refused alongside it. A Unit whose source the change order does not cover is passed over rather than failed, which is what lets a bulk upgrade name a whole Space and take only the Units the change is in. A Unit whose last merged revision is not where the change order starts is an error, since merging anyway would replay what it already has or skip what it does not, and with resolve a selected Link whose UpdateType the change order does not follow is an error too. The revisions the promotion creates carry the ChangeOrder, and its start Tag is placed on the revision before them and its end Tag on the one it arrives at, so 'restore Before:ChangeOrder:uuid' undoes it whether it landed as one revision or as one per source revision. With restore the change order is being undone rather than promoted: the restore must be 'Before:ChangeOrder:' the same change order, the change order must have an AbortedReason -- undoing a change nobody has said is not coming is a race with whoever is still promoting it -- and a Unit the change order never marked is an error rather than passed over, since naming it says the Unit is part of the undoing. The first restore mints the change order's restore Tag and records it as RestoreTagID; every restore after that marks with the same Tag, which is what RestoredSpaceIDs is read off. A Unit the change order carried nothing for takes the restore Tag on the revision its start and end Tags are already on, and no revision is made. A Unit already carrying the restore Tag has had the change order taken back out of it and is passed over, since undoing one in a Unit happens once as promoting it into one does -- so the revisions a Unit has taken since it was undone are its own work rather than this undoing's to drop. Restoring also advances the merge pointers of the Links of the change order's UpdateType that follow the restored Unit onto the revision the restore made, so a later upgrade does not replay the change that was just taken out; the downstream Units are not restored with it, since each has to be restored and released on its own account. */
|
|
24404
24555
|
change_order?: string;
|
|
24405
24556
|
/** @description User-defined category for the Mutation. Must be alphanumeric, at most 64 characters. The prefix 'ConfigHub' is reserved. */
|
|
24406
24557
|
subgroup?: string;
|
|
@@ -24622,6 +24773,8 @@ interface operations {
|
|
|
24622
24773
|
protect?: boolean;
|
|
24623
24774
|
/** @description The classes of guarded reason this operation is cleared for, as a JSON Clearance -- a list of {Key, Operator, Values} requirements, where Operator is Exists, In, NotIn, or DoesNotExist. A path whose guards this does not cover is not written, and the withheld change is reported as a Guarded conflict. An absent or empty clearance clears nothing, which only matters for a Unit that has guards. */
|
|
24624
24775
|
clearance?: string;
|
|
24776
|
+
/** @description The guards this operation records on the paths it writes, as a JSON object of guard key to value -- the reasons those paths hold what they hold, so a later operation must be cleared for them before overwriting. The guard analogue of protect: protect claims the paths, this says why. It only ever adds and overwrites the keys it names -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). */
|
|
24777
|
+
guards?: string;
|
|
24625
24778
|
/** @description Merge the range as one rebased diff and record it as one Revision, instead of walking it. By default a merge replays: it takes the source's Revisions in order and, where a Revision records function invocations that can be re-executed, runs them against this Unit rather than rebasing their recorded paths onto it -- so a change lands where this Unit's own structure puts it -- and records each source Revision that has an effect here as a Revision of its own, carrying that Revision's change description, its own conflicts, and one Mutation per source Mutation. Squashing gives up both: the range arrives as a single rebased patch in a single Revision, which is what a merge did before replay existed. Accepted with upgrade, merge_source, and resolve of an UpgradeUnit or MergeUnits Link, and refused elsewhere, since there is no range to walk. A Link can ask for it standingly with its Squash field. */
|
|
24626
24779
|
squash?: boolean;
|
|
24627
24780
|
/** @description Upgrade the unit to the latest version of its upstream unit */
|
|
@@ -24700,7 +24853,7 @@ interface operations {
|
|
|
24700
24853
|
tag?: string;
|
|
24701
24854
|
/** @description Must match ChangeSetID of affected Units if config Data is changed unless in dry run mode */
|
|
24702
24855
|
change_set_id?: string;
|
|
24703
|
-
/** @description ChangeOrder to promote, with upgrade or resolve. The change order fixed the range when it was created -- the interval on each source Unit, marked with its Tags -- so it supplies both ends of the merge and merge_end is refused alongside it. A Unit whose source the change order does not cover is passed over rather than failed, which is what lets a bulk upgrade name a whole Space and take only the Units the change is in. A Unit whose last merged revision is not where the change order starts is an error, since merging anyway would replay what it already has or skip what it does not, and with resolve a selected Link whose UpdateType the change order does not follow is an error too. The revisions the promotion creates carry the ChangeOrder, and its start Tag is placed on the revision before them and its end Tag on the one it arrives at, so 'restore Before:ChangeOrder:uuid' undoes it whether it landed as one revision or as one per source revision. */
|
|
24856
|
+
/** @description ChangeOrder to promote, with upgrade or resolve, or to undo, with restore. The change order fixed the range when it was created -- the interval on each source Unit, marked with its Tags -- so it supplies both ends of the merge and merge_end is refused alongside it. A Unit whose source the change order does not cover is passed over rather than failed, which is what lets a bulk upgrade name a whole Space and take only the Units the change is in. A Unit whose last merged revision is not where the change order starts is an error, since merging anyway would replay what it already has or skip what it does not, and with resolve a selected Link whose UpdateType the change order does not follow is an error too. The revisions the promotion creates carry the ChangeOrder, and its start Tag is placed on the revision before them and its end Tag on the one it arrives at, so 'restore Before:ChangeOrder:uuid' undoes it whether it landed as one revision or as one per source revision. With restore the change order is being undone rather than promoted: the restore must be 'Before:ChangeOrder:' the same change order, the change order must have an AbortedReason -- undoing a change nobody has said is not coming is a race with whoever is still promoting it -- and a Unit the change order never marked is an error rather than passed over, since naming it says the Unit is part of the undoing. The first restore mints the change order's restore Tag and records it as RestoreTagID; every restore after that marks with the same Tag, which is what RestoredSpaceIDs is read off. A Unit the change order carried nothing for takes the restore Tag on the revision its start and end Tags are already on, and no revision is made. A Unit already carrying the restore Tag has had the change order taken back out of it and is passed over, since undoing one in a Unit happens once as promoting it into one does -- so the revisions a Unit has taken since it was undone are its own work rather than this undoing's to drop. Restoring also advances the merge pointers of the Links of the change order's UpdateType that follow the restored Unit onto the revision the restore made, so a later upgrade does not replay the change that was just taken out; the downstream Units are not restored with it, since each has to be restored and released on its own account. */
|
|
24704
24857
|
change_order?: string;
|
|
24705
24858
|
/** @description User-defined category for the Mutation. Must be alphanumeric, at most 64 characters. The prefix 'ConfigHub' is reserved. */
|
|
24706
24859
|
subgroup?: string;
|
|
@@ -25122,6 +25275,8 @@ interface operations {
|
|
|
25122
25275
|
protect?: boolean;
|
|
25123
25276
|
/** @description The classes of guarded reason this operation is cleared for, as a JSON Clearance -- a list of {Key, Operator, Values} requirements, where Operator is Exists, In, NotIn, or DoesNotExist. A path whose guards this does not cover is not written, and the withheld change is reported as a Guarded conflict. An absent or empty clearance clears nothing, which only matters for a Unit that has guards. */
|
|
25124
25277
|
clearance?: string;
|
|
25278
|
+
/** @description The guards this operation records on the paths it writes, as a JSON object of guard key to value -- the reasons those paths hold what they hold, so a later operation must be cleared for them before overwriting. The guard analogue of protect: protect claims the paths, this says why. It only ever adds and overwrites the keys it names -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). */
|
|
25279
|
+
guards?: string;
|
|
25125
25280
|
/** @description Merge base revision, which provides the base configuration data of the changes to merge. With merge_source, this is a revision of the merge source unit. With merge_external_source, this is a revision of the unit being updated and overrides the default selection of the latest MergeExternal revision. Supports: Named revisions ('HeadRevisionNum', 'LastReleasedRevisionNum'), direct revision number (e.g., '42'), or entity references ('Tag:uuid', 'ChangeSet:uuid', 'ChangeOrder:uuid', 'Revision:uuid'). Can be prefixed with 'Before:' to select the revision immediately before the specified one (e.g., 'Before:LastReleasedRevisionNum', 'Before:42'). When using Tag or ChangeSet references, the latest revision associated with that entity is selected. 'ChangeOrder:uuid' selects the revision the change order ended at on this Unit and 'Before:ChangeOrder:uuid' the one before it began, which is what undoes a promotion however many revisions it made. */
|
|
25126
25281
|
merge_base?: string;
|
|
25127
25282
|
/** @description Identifier of the external source for merge-on-update. When set, computes mutations between the last MergeExternal revision and the provided data, then patches the current unit data with those mutations. */
|
|
@@ -29549,6 +29704,10 @@ interface operations {
|
|
|
29549
29704
|
FailOpenAfter?: number | null;
|
|
29550
29705
|
/** @description Function name */
|
|
29551
29706
|
FunctionName?: string | null;
|
|
29707
|
+
/** @description Guards to record on the paths this trigger's function writes, naming the reasons those paths hold what they hold, so a later operation must be cleared for them before overwriting. Sibling to Protect: Protect claims the paths, Guards say why. Add and overwrite only -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). Only meaningful for a mutating trigger, and part of the trigger's Hash, unlike Protect. */
|
|
29708
|
+
Guards?: {
|
|
29709
|
+
[key: string]: string | null;
|
|
29710
|
+
} | null;
|
|
29552
29711
|
/** Format: uuid */
|
|
29553
29712
|
InvocationID?: string | null;
|
|
29554
29713
|
/** @description An optional map of Label key/value pairs to specify identifying attributes of entities for the purpose of grouping and filtering them. */
|
|
@@ -29955,6 +30114,10 @@ interface operations {
|
|
|
29955
30114
|
FailOpenAfter?: number | null;
|
|
29956
30115
|
/** @description Function name */
|
|
29957
30116
|
FunctionName?: string | null;
|
|
30117
|
+
/** @description Guards to record on the paths this trigger's function writes, naming the reasons those paths hold what they hold, so a later operation must be cleared for them before overwriting. Sibling to Protect: Protect claims the paths, Guards say why. Add and overwrite only -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). Only meaningful for a mutating trigger, and part of the trigger's Hash, unlike Protect. */
|
|
30118
|
+
Guards?: {
|
|
30119
|
+
[key: string]: string | null;
|
|
30120
|
+
} | null;
|
|
29958
30121
|
/** Format: uuid */
|
|
29959
30122
|
InvocationID?: string | null;
|
|
29960
30123
|
/** @description An optional map of Label key/value pairs to specify identifying attributes of entities for the purpose of grouping and filtering them. */
|
|
@@ -30875,6 +31038,8 @@ interface operations {
|
|
|
30875
31038
|
protect?: boolean;
|
|
30876
31039
|
/** @description The classes of guarded reason this operation is cleared for, as a JSON Clearance -- a list of {Key, Operator, Values} requirements, where Operator is Exists, In, NotIn, or DoesNotExist. A path whose guards this does not cover is not written, and the withheld change is reported as a Guarded conflict. An absent or empty clearance clears nothing, which only matters for a Unit that has guards. */
|
|
30877
31040
|
clearance?: string;
|
|
31041
|
+
/** @description The guards this operation records on the paths it writes, as a JSON object of guard key to value -- the reasons those paths hold what they hold, so a later operation must be cleared for them before overwriting. The guard analogue of protect: protect claims the paths, this says why. It only ever adds and overwrites the keys it names -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). */
|
|
31042
|
+
guards?: string;
|
|
30878
31043
|
/** @description Merge the range as one rebased diff and record it as one Revision, instead of walking it. By default a merge replays: it takes the source's Revisions in order and, where a Revision records function invocations that can be re-executed, runs them against this Unit rather than rebasing their recorded paths onto it -- so a change lands where this Unit's own structure puts it -- and records each source Revision that has an effect here as a Revision of its own, carrying that Revision's change description, its own conflicts, and one Mutation per source Mutation. Squashing gives up both: the range arrives as a single rebased patch in a single Revision, which is what a merge did before replay existed. Accepted with upgrade, merge_source, and resolve of an UpgradeUnit or MergeUnits Link, and refused elsewhere, since there is no range to walk. A Link can ask for it standingly with its Squash field. */
|
|
30879
31044
|
squash?: boolean;
|
|
30880
31045
|
/** @description Upgrade the unit to the latest version of its upstream unit */
|
|
@@ -30953,7 +31118,7 @@ interface operations {
|
|
|
30953
31118
|
tag?: string;
|
|
30954
31119
|
/** @description Must match ChangeSetID of affected Units if config Data is changed unless in dry run mode */
|
|
30955
31120
|
change_set_id?: string;
|
|
30956
|
-
/** @description ChangeOrder to promote, with upgrade or resolve. The change order fixed the range when it was created -- the interval on each source Unit, marked with its Tags -- so it supplies both ends of the merge and merge_end is refused alongside it. A Unit whose source the change order does not cover is passed over rather than failed, which is what lets a bulk upgrade name a whole Space and take only the Units the change is in. A Unit whose last merged revision is not where the change order starts is an error, since merging anyway would replay what it already has or skip what it does not, and with resolve a selected Link whose UpdateType the change order does not follow is an error too. The revisions the promotion creates carry the ChangeOrder, and its start Tag is placed on the revision before them and its end Tag on the one it arrives at, so 'restore Before:ChangeOrder:uuid' undoes it whether it landed as one revision or as one per source revision. */
|
|
31121
|
+
/** @description ChangeOrder to promote, with upgrade or resolve, or to undo, with restore. The change order fixed the range when it was created -- the interval on each source Unit, marked with its Tags -- so it supplies both ends of the merge and merge_end is refused alongside it. A Unit whose source the change order does not cover is passed over rather than failed, which is what lets a bulk upgrade name a whole Space and take only the Units the change is in. A Unit whose last merged revision is not where the change order starts is an error, since merging anyway would replay what it already has or skip what it does not, and with resolve a selected Link whose UpdateType the change order does not follow is an error too. The revisions the promotion creates carry the ChangeOrder, and its start Tag is placed on the revision before them and its end Tag on the one it arrives at, so 'restore Before:ChangeOrder:uuid' undoes it whether it landed as one revision or as one per source revision. With restore the change order is being undone rather than promoted: the restore must be 'Before:ChangeOrder:' the same change order, the change order must have an AbortedReason -- undoing a change nobody has said is not coming is a race with whoever is still promoting it -- and a Unit the change order never marked is an error rather than passed over, since naming it says the Unit is part of the undoing. The first restore mints the change order's restore Tag and records it as RestoreTagID; every restore after that marks with the same Tag, which is what RestoredSpaceIDs is read off. A Unit the change order carried nothing for takes the restore Tag on the revision its start and end Tags are already on, and no revision is made. A Unit already carrying the restore Tag has had the change order taken back out of it and is passed over, since undoing one in a Unit happens once as promoting it into one does -- so the revisions a Unit has taken since it was undone are its own work rather than this undoing's to drop. Restoring also advances the merge pointers of the Links of the change order's UpdateType that follow the restored Unit onto the revision the restore made, so a later upgrade does not replay the change that was just taken out; the downstream Units are not restored with it, since each has to be restored and released on its own account. */
|
|
30957
31122
|
change_order?: string;
|
|
30958
31123
|
/** @description User-defined category for the Mutation. Must be alphanumeric, at most 64 characters. The prefix 'ConfigHub' is reserved. */
|
|
30959
31124
|
subgroup?: string;
|
|
@@ -34035,4 +34200,20 @@ declare function getRevisionMutationSources(client: ConfigHubClient, ref: Revisi
|
|
|
34035
34200
|
};
|
|
34036
34201
|
}, `${string}/${string}`>>;
|
|
34037
34202
|
|
|
34038
|
-
|
|
34203
|
+
declare const SLUG_PATTERN: RegExp;
|
|
34204
|
+
declare const SLUG_MAX_LENGTH = 128;
|
|
34205
|
+
declare const SLUG_PATTERN_MESSAGE = "Must start and end with a letter or number. May contain letters, numbers, hyphens (-), underscores (_), and periods (.)";
|
|
34206
|
+
declare const LABEL_KEY_PATTERN: RegExp;
|
|
34207
|
+
declare const LABEL_KEY_MAX_LENGTH = 128;
|
|
34208
|
+
declare const LABEL_KEY_PATTERN_MESSAGE = "Must start and end with a letter or number. May contain letters, numbers, hyphens (-), underscores (_), periods (.), and forward slashes (/)";
|
|
34209
|
+
declare const LABEL_VALUE_PATTERN: RegExp;
|
|
34210
|
+
declare const LABEL_VALUE_MAX_LENGTH = 128;
|
|
34211
|
+
declare const LABEL_VALUE_PATTERN_MESSAGE = "Must start and end with a printable character (no leading/trailing spaces). Quotes, backslashes, and wildcards are not allowed";
|
|
34212
|
+
declare const ANNOTATION_KEY_PATTERN: RegExp;
|
|
34213
|
+
declare const ANNOTATION_KEY_MAX_LENGTH = 128;
|
|
34214
|
+
declare const ANNOTATION_KEY_PATTERN_MESSAGE = "Must start and end with a letter or number. May contain letters, numbers, hyphens (-), underscores (_), periods (.), and forward slashes (/)";
|
|
34215
|
+
declare const ANNOTATION_VALUE_PATTERN: RegExp;
|
|
34216
|
+
declare const ANNOTATION_VALUE_MAX_LENGTH = 1024;
|
|
34217
|
+
declare const ANNOTATION_VALUE_PATTERN_MESSAGE = "Any content is allowed, including multiline text";
|
|
34218
|
+
|
|
34219
|
+
export { ANNOTATION_KEY_MAX_LENGTH, ANNOTATION_KEY_PATTERN, ANNOTATION_KEY_PATTERN_MESSAGE, ANNOTATION_VALUE_MAX_LENGTH, ANNOTATION_VALUE_PATTERN, ANNOTATION_VALUE_PATTERN_MESSAGE, type ConfigHubClient, type ConfigHubClientOptions, LABEL_KEY_MAX_LENGTH, LABEL_KEY_PATTERN, LABEL_KEY_PATTERN_MESSAGE, LABEL_VALUE_MAX_LENGTH, LABEL_VALUE_PATTERN, LABEL_VALUE_PATTERN_MESSAGE, type MutationSourcesResponse, type ReadDataOptions, type ReadDataResult, type ReleaseRef, type RevisionRef, SLUG_MAX_LENGTH, SLUG_PATTERN, SLUG_PATTERN_MESSAGE, type UnitCreateOrUpdateResponse, type UnitRef, type WriteDataOptions, type WriteDataResult, type components, createConfigHubClient, getReleaseData, getRevisionData, getRevisionMutationSources, getUnitData, getUnitMutationSources, type operations, type paths, putUnitData };
|
package/dist/index.js
CHANGED
|
@@ -123,6 +123,23 @@ function getRevisionMutationSources(client, ref) {
|
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
// src/validation.ts
|
|
127
|
+
var SLUG_PATTERN = /^[A-Za-z0-9]([\-_.A-Za-z0-9]*[A-Za-z0-9])?$/;
|
|
128
|
+
var SLUG_MAX_LENGTH = 128;
|
|
129
|
+
var SLUG_PATTERN_MESSAGE = "Must start and end with a letter or number. May contain letters, numbers, hyphens (-), underscores (_), and periods (.)";
|
|
130
|
+
var LABEL_KEY_PATTERN = /^[A-Za-z0-9]([\-_\./A-Za-z0-9]*[A-Za-z0-9])?$/;
|
|
131
|
+
var LABEL_KEY_MAX_LENGTH = 128;
|
|
132
|
+
var LABEL_KEY_PATTERN_MESSAGE = "Must start and end with a letter or number. May contain letters, numbers, hyphens (-), underscores (_), periods (.), and forward slashes (/)";
|
|
133
|
+
var LABEL_VALUE_PATTERN = /^[\-_@/#$%&~+=!?.,:;(){}\[\]<>|A-Za-z0-9](([\-_@/#$%&~+=!?.,:;(){}\[\]<>|A-Za-z0-9]| )*[\-_@/#$%&~+=!?.,:;(){}\[\]<>|A-Za-z0-9])?$/;
|
|
134
|
+
var LABEL_VALUE_MAX_LENGTH = 128;
|
|
135
|
+
var LABEL_VALUE_PATTERN_MESSAGE = "Must start and end with a printable character (no leading/trailing spaces). Quotes, backslashes, and wildcards are not allowed";
|
|
136
|
+
var ANNOTATION_KEY_PATTERN = /^[A-Za-z0-9]([\-_\./A-Za-z0-9]*[A-Za-z0-9])?$/;
|
|
137
|
+
var ANNOTATION_KEY_MAX_LENGTH = 128;
|
|
138
|
+
var ANNOTATION_KEY_PATTERN_MESSAGE = "Must start and end with a letter or number. May contain letters, numbers, hyphens (-), underscores (_), periods (.), and forward slashes (/)";
|
|
139
|
+
var ANNOTATION_VALUE_PATTERN = /^(.|\n)*$/;
|
|
140
|
+
var ANNOTATION_VALUE_MAX_LENGTH = 1024;
|
|
141
|
+
var ANNOTATION_VALUE_PATTERN_MESSAGE = "Any content is allowed, including multiline text";
|
|
142
|
+
|
|
143
|
+
export { ANNOTATION_KEY_MAX_LENGTH, ANNOTATION_KEY_PATTERN, ANNOTATION_KEY_PATTERN_MESSAGE, ANNOTATION_VALUE_MAX_LENGTH, ANNOTATION_VALUE_PATTERN, ANNOTATION_VALUE_PATTERN_MESSAGE, LABEL_KEY_MAX_LENGTH, LABEL_KEY_PATTERN, LABEL_KEY_PATTERN_MESSAGE, LABEL_VALUE_MAX_LENGTH, LABEL_VALUE_PATTERN, LABEL_VALUE_PATTERN_MESSAGE, SLUG_MAX_LENGTH, SLUG_PATTERN, SLUG_PATTERN_MESSAGE, createConfigHubClient, getReleaseData, getRevisionData, getRevisionMutationSources, getUnitData, getUnitMutationSources, putUnitData };
|
|
127
144
|
//# sourceMappingURL=index.js.map
|
|
128
145
|
//# sourceMappingURL=index.js.map
|