@confighub/rtk-query 0.10.9 → 0.10.10

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.ts CHANGED
@@ -5636,6 +5636,8 @@ type InvokeFunctionsOnOrgApiArg = {
5636
5636
  clearance?: string;
5637
5637
  /** 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). */
5638
5638
  guards?: string;
5639
+ /** The guards this operation records on the paths it writes as inherited guards, in the form guards takes: a clone of the Unit receives them, and a merge carries them, and any later change to them, to the Units downstream of it. Guards set through guards stay with the Unit they are on. A key may not be in both. The clearance has to cover these as it covers guards. */
5640
+ inheritedGuards?: string;
5639
5641
  /** Must match ChangeSetID of affected Units unless in dry run mode; not valid when invoked on Revisions */
5640
5642
  changeSetId?: string;
5641
5643
  /** ChangeOrder to promote, which must have UpdateType Invoke. What runs then comes from the ChangeOrder rather than from the request body, which may not carry functions, triggers or invocations of its own; that is what holds every Space in scope to the same change. Only the Units the ChangeOrder covers are reached, a Unit that has already taken it is passed over, and every Unit reached is marked with the ChangeOrder's start and end Tags -- both on the head, with no Revision made, where the invocation changed nothing. Not valid when invoked on Revisions. */
@@ -5914,7 +5916,7 @@ type BulkDeleteInvocationsApiArg = {
5914
5916
  An example conjunction is:
5915
5917
  `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
5916
5918
 
5917
- Supported attributes for filtering on Invocation: Annotations, BackingUnitID, ChannelID, CreatedAt, DeleteGates, DisplayName, FunctionInvocations, Hash, HiddenReason, InvocationID, Labels, OrganizationID, Parameters, Permissions, Slug, SpaceID, ToolchainType, UpdatedAt, UpstreamInvocationID.
5919
+ Supported attributes for filtering on Invocation: Annotations, BackingUnitID, ChannelID, Clearance, CreatedAt, DeleteGates, DisplayName, FunctionInvocations, Guards, Hash, HiddenReason, InvocationID, Labels, OrganizationID, Parameters, Permissions, Slug, SpaceID, ToolchainType, UpdatedAt, UpstreamInvocationID.
5918
5920
 
5919
5921
  The functions an Invocation calls are addressed with dot notation into `FunctionInvocations`: `FunctionInvocations.*.FunctionName = 'set-image'` matches an Invocation that calls set-image anywhere in its list, and `FunctionInvocations.0.FunctionName` addresses the first function it calls.
5920
5922
 
@@ -6008,7 +6010,7 @@ type ListAllInvocationsApiArg = {
6008
6010
  An example conjunction is:
6009
6011
  `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
6010
6012
 
6011
- Supported attributes for filtering on Invocation: Annotations, BackingUnitID, ChannelID, CreatedAt, DeleteGates, DisplayName, FunctionInvocations, Hash, HiddenReason, InvocationID, Labels, OrganizationID, Parameters, Permissions, Slug, SpaceID, ToolchainType, UpdatedAt, UpstreamInvocationID.
6013
+ Supported attributes for filtering on Invocation: Annotations, BackingUnitID, ChannelID, Clearance, CreatedAt, DeleteGates, DisplayName, FunctionInvocations, Guards, Hash, HiddenReason, InvocationID, Labels, OrganizationID, Parameters, Permissions, Slug, SpaceID, ToolchainType, UpdatedAt, UpstreamInvocationID.
6012
6014
 
6013
6015
  The functions an Invocation calls are addressed with dot notation into `FunctionInvocations`: `FunctionInvocations.*.FunctionName = 'set-image'` matches an Invocation that calls set-image anywhere in its list, and `FunctionInvocations.0.FunctionName` addresses the first function it calls.
6014
6016
 
@@ -6138,7 +6140,7 @@ type BulkPatchInvocationsApiArg = {
6138
6140
  An example conjunction is:
6139
6141
  `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
6140
6142
 
6141
- Supported attributes for filtering on Invocation: Annotations, BackingUnitID, ChannelID, CreatedAt, DeleteGates, DisplayName, FunctionInvocations, Hash, HiddenReason, InvocationID, Labels, OrganizationID, Parameters, Permissions, Slug, SpaceID, ToolchainType, UpdatedAt, UpstreamInvocationID.
6143
+ Supported attributes for filtering on Invocation: Annotations, BackingUnitID, ChannelID, Clearance, CreatedAt, DeleteGates, DisplayName, FunctionInvocations, Guards, Hash, HiddenReason, InvocationID, Labels, OrganizationID, Parameters, Permissions, Slug, SpaceID, ToolchainType, UpdatedAt, UpstreamInvocationID.
6142
6144
 
6143
6145
  The functions an Invocation calls are addressed with dot notation into `FunctionInvocations`: `FunctionInvocations.*.FunctionName = 'set-image'` matches an Invocation that calls set-image anywhere in its list, and `FunctionInvocations.0.FunctionName` addresses the first function it calls.
6144
6146
 
@@ -6204,6 +6206,8 @@ type BulkPatchInvocationsApiArg = {
6204
6206
  [key: string]: string | null;
6205
6207
  } | null;
6206
6208
  ChannelID?: string | null;
6209
+ /** Classes of guarded reason this Invocation's functions are cleared for; combined by union with the clearance of the Trigger or API call that runs it */
6210
+ Clearance?: (object | null)[] | null;
6207
6211
  /** An optional set of gates that, if any is present, will block deletion */
6208
6212
  DeleteGates?: {
6209
6213
  [key: string]: boolean | null;
@@ -6211,6 +6215,10 @@ type BulkPatchInvocationsApiArg = {
6211
6215
  /** Friendly name for the entity. */
6212
6216
  DisplayName?: string | null;
6213
6217
  FunctionInvocations?: (object | null)[] | null;
6218
+ /** Guards to record on the paths this Invocation's functions write, so a later operation must be cleared for them; combined with the guards of a Trigger running it, the Trigger's winning per key. Add and overwrite only -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). Clearance must cover them. */
6219
+ Guards?: {
6220
+ [key: string]: string | null;
6221
+ } | null;
6214
6222
  /** The reason the entity is hidden, if it is. A hidden entity is left out of List and Search results, and of what bulk operations act on, unless the include_hidden parameter names its reason or is *, or the where parameter names the entity by Slug or ID. ConfigHub/YAML Units are created hidden with the reason BackingUnit unless given another. */
6215
6223
  HiddenReason?: string | null;
6216
6224
  /** An optional map of Label key/value pairs to specify identifying attributes of entities for the purpose of grouping and filtering them. */
@@ -6264,7 +6272,7 @@ type BulkCreateInvocationsApiArg = {
6264
6272
  An example conjunction is:
6265
6273
  `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
6266
6274
 
6267
- Supported attributes for filtering on Invocation: Annotations, BackingUnitID, ChannelID, CreatedAt, DeleteGates, DisplayName, FunctionInvocations, Hash, HiddenReason, InvocationID, Labels, OrganizationID, Parameters, Permissions, Slug, SpaceID, ToolchainType, UpdatedAt, UpstreamInvocationID.
6275
+ Supported attributes for filtering on Invocation: Annotations, BackingUnitID, ChannelID, Clearance, CreatedAt, DeleteGates, DisplayName, FunctionInvocations, Guards, Hash, HiddenReason, InvocationID, Labels, OrganizationID, Parameters, Permissions, Slug, SpaceID, ToolchainType, UpdatedAt, UpstreamInvocationID.
6268
6276
 
6269
6277
  The functions an Invocation calls are addressed with dot notation into `FunctionInvocations`: `FunctionInvocations.*.FunctionName = 'set-image'` matches an Invocation that calls set-image anywhere in its list, and `FunctionInvocations.0.FunctionName` addresses the first function it calls.
6270
6278
 
@@ -6434,6 +6442,8 @@ type BulkCreateInvocationsApiArg = {
6434
6442
  [key: string]: string | null;
6435
6443
  } | null;
6436
6444
  ChannelID?: string | null;
6445
+ /** Classes of guarded reason this Invocation's functions are cleared for; combined by union with the clearance of the Trigger or API call that runs it */
6446
+ Clearance?: (object | null)[] | null;
6437
6447
  /** An optional set of gates that, if any is present, will block deletion */
6438
6448
  DeleteGates?: {
6439
6449
  [key: string]: boolean | null;
@@ -6441,6 +6451,10 @@ type BulkCreateInvocationsApiArg = {
6441
6451
  /** Friendly name for the entity. */
6442
6452
  DisplayName?: string | null;
6443
6453
  FunctionInvocations?: (object | null)[] | null;
6454
+ /** Guards to record on the paths this Invocation's functions write, so a later operation must be cleared for them; combined with the guards of a Trigger running it, the Trigger's winning per key. Add and overwrite only -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). Clearance must cover them. */
6455
+ Guards?: {
6456
+ [key: string]: string | null;
6457
+ } | null;
6444
6458
  /** The reason the entity is hidden, if it is. A hidden entity is left out of List and Search results, and of what bulk operations act on, unless the include_hidden parameter names its reason or is *, or the where parameter names the entity by Slug or ID. ConfigHub/YAML Units are created hidden with the reason BackingUnit unless given another. */
6445
6459
  HiddenReason?: string | null;
6446
6460
  /** An optional map of Label key/value pairs to specify identifying attributes of entities for the purpose of grouping and filtering them. */
@@ -6494,7 +6508,7 @@ type BulkMoveInvocationsApiArg = {
6494
6508
  An example conjunction is:
6495
6509
  `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
6496
6510
 
6497
- Supported attributes for filtering on Invocation: Annotations, BackingUnitID, ChannelID, CreatedAt, DeleteGates, DisplayName, FunctionInvocations, Hash, HiddenReason, InvocationID, Labels, OrganizationID, Parameters, Permissions, Slug, SpaceID, ToolchainType, UpdatedAt, UpstreamInvocationID.
6511
+ Supported attributes for filtering on Invocation: Annotations, BackingUnitID, ChannelID, Clearance, CreatedAt, DeleteGates, DisplayName, FunctionInvocations, Guards, Hash, HiddenReason, InvocationID, Labels, OrganizationID, Parameters, Permissions, Slug, SpaceID, ToolchainType, UpdatedAt, UpstreamInvocationID.
6498
6512
 
6499
6513
  The whole string must be query-encoded. */
6500
6514
  where?: string;
@@ -11187,6 +11201,8 @@ type InvokeFunctionsApiArg = {
11187
11201
  clearance?: string;
11188
11202
  /** 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). */
11189
11203
  guards?: string;
11204
+ /** The guards this operation records on the paths it writes as inherited guards, in the form guards takes: a clone of the Unit receives them, and a merge carries them, and any later change to them, to the Units downstream of it. Guards set through guards stay with the Unit they are on. A key may not be in both. The clearance has to cover these as it covers guards. */
11205
+ inheritedGuards?: string;
11190
11206
  /** Must match ChangeSetID of affected Units unless in dry run mode; not valid when invoked on Revisions */
11191
11207
  changeSetId?: string;
11192
11208
  /** ChangeOrder to promote, which must have UpdateType Invoke. What runs then comes from the ChangeOrder rather than from the request body, which may not carry functions, triggers or invocations of its own; that is what holds every Space in scope to the same change. Only the Units the ChangeOrder covers are reached, a Unit that has already taken it is passed over, and every Unit reached is marked with the ChangeOrder's start and end Tags -- both on the head, with no Revision made, where the invocation changed nothing. Not valid when invoked on Revisions. */
@@ -11314,7 +11330,7 @@ type ListInvocationsApiArg = {
11314
11330
  An example conjunction is:
11315
11331
  `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
11316
11332
 
11317
- Supported attributes for filtering on Invocation: Annotations, BackingUnitID, ChannelID, CreatedAt, DeleteGates, DisplayName, FunctionInvocations, Hash, HiddenReason, InvocationID, Labels, OrganizationID, Parameters, Permissions, Slug, SpaceID, ToolchainType, UpdatedAt, UpstreamInvocationID.
11333
+ Supported attributes for filtering on Invocation: Annotations, BackingUnitID, ChannelID, Clearance, CreatedAt, DeleteGates, DisplayName, FunctionInvocations, Guards, Hash, HiddenReason, InvocationID, Labels, OrganizationID, Parameters, Permissions, Slug, SpaceID, ToolchainType, UpdatedAt, UpstreamInvocationID.
11318
11334
 
11319
11335
  The functions an Invocation calls are addressed with dot notation into `FunctionInvocations`: `FunctionInvocations.*.FunctionName = 'set-image'` matches an Invocation that calls set-image anywhere in its list, and `FunctionInvocations.0.FunctionName` addresses the first function it calls.
11320
11336
 
@@ -11469,6 +11485,8 @@ type PatchInvocationApiArg = {
11469
11485
  [key: string]: string | null;
11470
11486
  } | null;
11471
11487
  ChannelID?: string | null;
11488
+ /** Classes of guarded reason this Invocation's functions are cleared for; combined by union with the clearance of the Trigger or API call that runs it */
11489
+ Clearance?: (object | null)[] | null;
11472
11490
  /** An optional set of gates that, if any is present, will block deletion */
11473
11491
  DeleteGates?: {
11474
11492
  [key: string]: boolean | null;
@@ -11476,6 +11494,10 @@ type PatchInvocationApiArg = {
11476
11494
  /** Friendly name for the entity. */
11477
11495
  DisplayName?: string | null;
11478
11496
  FunctionInvocations?: (object | null)[] | null;
11497
+ /** Guards to record on the paths this Invocation's functions write, so a later operation must be cleared for them; combined with the guards of a Trigger running it, the Trigger's winning per key. Add and overwrite only -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). Clearance must cover them. */
11498
+ Guards?: {
11499
+ [key: string]: string | null;
11500
+ } | null;
11479
11501
  /** The reason the entity is hidden, if it is. A hidden entity is left out of List and Search results, and of what bulk operations act on, unless the include_hidden parameter names its reason or is *, or the where parameter names the entity by Slug or ID. ConfigHub/YAML Units are created hidden with the reason BackingUnit unless given another. */
11480
11502
  HiddenReason?: string | null;
11481
11503
  /** An optional map of Label key/value pairs to specify identifying attributes of entities for the purpose of grouping and filtering them. */
@@ -13018,6 +13040,8 @@ type PatchUnitApiArg = {
13018
13040
  clearance?: string;
13019
13041
  /** 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). */
13020
13042
  guards?: string;
13043
+ /** The guards this operation records on the paths it writes as inherited guards, in the form guards takes: a clone of the Unit receives them, and a merge carries them, and any later change to them, to the Units downstream of it. Guards set through guards stay with the Unit they are on. A key may not be in both. The clearance has to cover these as it covers guards. */
13044
+ inheritedGuards?: string;
13021
13045
  /** 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. */
13022
13046
  squash?: boolean;
13023
13047
  /** Upgrade the unit to the latest version of its upstream unit */
@@ -13070,7 +13094,7 @@ type PatchUnitApiArg = {
13070
13094
  An example conjunction is:
13071
13095
  `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
13072
13096
 
13073
- Supported attributes for filtering on Mutation: ChannelID, CreatedAt, FunctionInvocation.Arguments, FunctionInvocation.Clearance, FunctionInvocation.FunctionName, FunctionInvocation.Guards, FunctionInvocation.WhereResource, FunctionName, HiddenReason, InvocationID, InvocationParams, LinkID, MergeBaseRevisionNum, MergeEndRevisionNum, MergeSourceID, MutationID, MutationNum, OrganizationID, ReplayOutcome, ReplayReason, RestoredRevisionNum, RevisionID, RevisionNum, SpaceID, Subgroup, TriggerID, UnitID, UpdatedAt.
13097
+ Supported attributes for filtering on Mutation: ChannelID, Clearance, CreatedAt, FunctionInvocation.Arguments, FunctionInvocation.FunctionName, FunctionInvocation.WhereResource, FunctionName, Guards, HiddenReason, InheritedGuards, InvocationID, InvocationParams, LinkID, MergeBaseRevisionNum, MergeEndRevisionNum, MergeSourceID, MutationID, MutationNum, OrganizationID, ReplayOutcome, ReplayReason, RestoredRevisionNum, RevisionID, RevisionNum, SpaceID, Subgroup, TriggerID, UnitID, UpdatedAt.
13074
13098
 
13075
13099
  Selects Mutations of this Unit whose paths the merge must not overwrite, unioned with the Protected values stored on the Unit's MutationSources.
13076
13100
 
@@ -13160,6 +13184,8 @@ type UpdateUnitApiArg = {
13160
13184
  clearance?: string;
13161
13185
  /** 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). */
13162
13186
  guards?: string;
13187
+ /** The guards this operation records on the paths it writes as inherited guards, in the form guards takes: a clone of the Unit receives them, and a merge carries them, and any later change to them, to the Units downstream of it. Guards set through guards stay with the Unit they are on. A key may not be in both. The clearance has to cover these as it covers guards. */
13188
+ inheritedGuards?: string;
13163
13189
  /** 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. */
13164
13190
  squash?: boolean;
13165
13191
  /** Upgrade the unit to the latest version of its upstream unit */
@@ -13212,7 +13238,7 @@ type UpdateUnitApiArg = {
13212
13238
  An example conjunction is:
13213
13239
  `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
13214
13240
 
13215
- Supported attributes for filtering on Mutation: ChannelID, CreatedAt, FunctionInvocation.Arguments, FunctionInvocation.Clearance, FunctionInvocation.FunctionName, FunctionInvocation.Guards, FunctionInvocation.WhereResource, FunctionName, HiddenReason, InvocationID, InvocationParams, LinkID, MergeBaseRevisionNum, MergeEndRevisionNum, MergeSourceID, MutationID, MutationNum, OrganizationID, ReplayOutcome, ReplayReason, RestoredRevisionNum, RevisionID, RevisionNum, SpaceID, Subgroup, TriggerID, UnitID, UpdatedAt.
13241
+ Supported attributes for filtering on Mutation: ChannelID, Clearance, CreatedAt, FunctionInvocation.Arguments, FunctionInvocation.FunctionName, FunctionInvocation.WhereResource, FunctionName, Guards, HiddenReason, InheritedGuards, InvocationID, InvocationParams, LinkID, MergeBaseRevisionNum, MergeEndRevisionNum, MergeSourceID, MutationID, MutationNum, OrganizationID, ReplayOutcome, ReplayReason, RestoredRevisionNum, RevisionID, RevisionNum, SpaceID, Subgroup, TriggerID, UnitID, UpdatedAt.
13216
13242
 
13217
13243
  Selects Mutations of this Unit whose paths the merge must not overwrite, unioned with the Protected values stored on the Unit's MutationSources.
13218
13244
 
@@ -13310,6 +13336,8 @@ type UploadUnitDataApiArg = {
13310
13336
  clearance?: string;
13311
13337
  /** 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). */
13312
13338
  guards?: string;
13339
+ /** The guards this operation records on the paths it writes as inherited guards, in the form guards takes: a clone of the Unit receives them, and a merge carries them, and any later change to them, to the Units downstream of it. Guards set through guards stay with the Unit they are on. A key may not be in both. The clearance has to cover these as it covers guards. */
13340
+ inheritedGuards?: string;
13313
13341
  /** 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. */
13314
13342
  mergeBase?: string;
13315
13343
  /** 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. */
@@ -13390,9 +13418,9 @@ type ListExtendedMutationsApiArg = {
13390
13418
  An example conjunction is:
13391
13419
  `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
13392
13420
 
13393
- Supported attributes for filtering on Mutation: ChannelID, CreatedAt, FunctionInvocation.Arguments, FunctionInvocation.Clearance, FunctionInvocation.FunctionName, FunctionInvocation.Guards, FunctionInvocation.WhereResource, FunctionName, HiddenReason, InvocationID, InvocationParams, LinkID, MergeBaseRevisionNum, MergeEndRevisionNum, MergeSourceID, MutationID, MutationNum, OrganizationID, ReplayOutcome, ReplayReason, RestoredRevisionNum, RevisionID, RevisionNum, SpaceID, Subgroup, TriggerID, UnitID, UpdatedAt.
13421
+ Supported attributes for filtering on Mutation: ChannelID, Clearance, CreatedAt, FunctionInvocation.Arguments, FunctionInvocation.FunctionName, FunctionInvocation.WhereResource, FunctionName, Guards, HiddenReason, InheritedGuards, InvocationID, InvocationParams, LinkID, MergeBaseRevisionNum, MergeEndRevisionNum, MergeSourceID, MutationID, MutationNum, OrganizationID, ReplayOutcome, ReplayReason, RestoredRevisionNum, RevisionID, RevisionNum, SpaceID, Subgroup, TriggerID, UnitID, UpdatedAt.
13394
13422
 
13395
- The function invoked is returned as a FunctionInvocation object, and `where` names its fields the same way: `FunctionInvocation.FunctionName`, `FunctionInvocation.Guards.<reason>`, and `FunctionInvocation.Arguments`, which is a list addressed with dot notation. `FunctionInvocation.Arguments.?ParameterName=container-image.Value LIKE 'nginx%'` reads the argument bound to a named parameter, `FunctionInvocation.Arguments.*.Value` matches any argument's value, and `FunctionInvocation.Arguments.0.Value` addresses the first argument. Arguments passed positionally have no ParameterName.
13423
+ The function invoked is returned as a FunctionInvocation object, and `where` names its fields the same way: `FunctionInvocation.FunctionName` and `FunctionInvocation.Arguments`, which is a list addressed with dot notation. `FunctionInvocation.Arguments.?ParameterName=container-image.Value LIKE 'nginx%'` reads the argument bound to a named parameter, `FunctionInvocation.Arguments.*.Value` matches any argument's value, and `FunctionInvocation.Arguments.0.Value` addresses the first argument. Arguments passed positionally have no ParameterName. `Guards.<reason>` reads the guards the change recorded on the paths it wrote, as in `Guards.Link = 'TransformPaths'`, and `Clearance.*.Key = 'RunAsRoot'` finds the changes written under a clearance for that reason.
13396
13424
 
13397
13425
  The whole string must be query-encoded. */
13398
13426
  where?: string;
@@ -16793,6 +16821,8 @@ type BulkPatchUnitsApiArg = {
16793
16821
  clearance?: string;
16794
16822
  /** 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). */
16795
16823
  guards?: string;
16824
+ /** The guards this operation records on the paths it writes as inherited guards, in the form guards takes: a clone of the Unit receives them, and a merge carries them, and any later change to them, to the Units downstream of it. Guards set through guards stay with the Unit they are on. A key may not be in both. The clearance has to cover these as it covers guards. */
16825
+ inheritedGuards?: string;
16796
16826
  /** 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. */
16797
16827
  squash?: boolean;
16798
16828
  /** Upgrade the unit to the latest version of its upstream unit */
@@ -16845,7 +16875,7 @@ type BulkPatchUnitsApiArg = {
16845
16875
  An example conjunction is:
16846
16876
  `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
16847
16877
 
16848
- Supported attributes for filtering on Mutation: ChannelID, CreatedAt, FunctionInvocation.Arguments, FunctionInvocation.Clearance, FunctionInvocation.FunctionName, FunctionInvocation.Guards, FunctionInvocation.WhereResource, FunctionName, HiddenReason, InvocationID, InvocationParams, LinkID, MergeBaseRevisionNum, MergeEndRevisionNum, MergeSourceID, MutationID, MutationNum, OrganizationID, ReplayOutcome, ReplayReason, RestoredRevisionNum, RevisionID, RevisionNum, SpaceID, Subgroup, TriggerID, UnitID, UpdatedAt.
16878
+ Supported attributes for filtering on Mutation: ChannelID, Clearance, CreatedAt, FunctionInvocation.Arguments, FunctionInvocation.FunctionName, FunctionInvocation.WhereResource, FunctionName, Guards, HiddenReason, InheritedGuards, InvocationID, InvocationParams, LinkID, MergeBaseRevisionNum, MergeEndRevisionNum, MergeSourceID, MutationID, MutationNum, OrganizationID, ReplayOutcome, ReplayReason, RestoredRevisionNum, RevisionID, RevisionNum, SpaceID, Subgroup, TriggerID, UnitID, UpdatedAt.
16849
16879
 
16850
16880
  Selects Mutations of this Unit whose paths the merge must not overwrite, unioned with the Protected values stored on the Unit's MutationSources.
16851
16881
 
@@ -20234,11 +20264,6 @@ type TagRead = {
20234
20264
  /** An entity-specific sequence number used for optimistic concurrency control. The value read must be sent in calls to Update. */
20235
20265
  Version?: number;
20236
20266
  };
20237
- type FunctionArgument = {
20238
- Evaluator?: string;
20239
- ParameterName?: string;
20240
- Value?: string | number | boolean;
20241
- };
20242
20267
  type ClearanceRequirement = {
20243
20268
  /** The guard key this requirement is about */
20244
20269
  Key?: string;
@@ -20248,18 +20273,16 @@ type ClearanceRequirement = {
20248
20273
  Values?: string[];
20249
20274
  };
20250
20275
  type Clearance = ClearanceRequirement[];
20251
- type GuardStamp = {
20252
- [key: string]: string;
20276
+ type FunctionArgument = {
20277
+ Evaluator?: string;
20278
+ ParameterName?: string;
20279
+ Value?: string | number | boolean;
20253
20280
  };
20254
20281
  type FunctionInvocation = {
20255
20282
  /** Function arguments */
20256
20283
  Arguments?: FunctionArgument[] | null;
20257
- /** Classes of guarded reason this invocation is cleared for; combined by union with the clearance of whatever drove the execution */
20258
- Clearance?: Clearance;
20259
20284
  /** Function name */
20260
20285
  FunctionName?: string;
20261
- /** Guards to record on the paths this invocation writes, so a later operation must be cleared for them; combined with the guards of whatever drove the execution, later winning per key */
20262
- Guards?: GuardStamp;
20263
20286
  /** Caller-supplied parameter values for expanding templated argument Values; transient, not persisted */
20264
20287
  Params?: {
20265
20288
  [key: string]: any;
@@ -20268,6 +20291,9 @@ type FunctionInvocation = {
20268
20291
  WhereResource?: string;
20269
20292
  };
20270
20293
  type FunctionInvocationList = FunctionInvocation[] | null;
20294
+ type GuardStamp = {
20295
+ [key: string]: string;
20296
+ };
20271
20297
  type Invocation = {
20272
20298
  /** An optional map of Annotation key/value pairs for tools to attach information to entities. */
20273
20299
  Annotations?: {
@@ -20275,6 +20301,8 @@ type Invocation = {
20275
20301
  };
20276
20302
  /** Unique identifier for a Channel whose client executes the functions specified by the Invocation. If it is not specified, the builtin function executor is used. */
20277
20303
  ChannelID?: string;
20304
+ /** Classes of guarded reason this Invocation's functions are cleared for; combined by union with the clearance of the Trigger or API call that runs it */
20305
+ Clearance?: Clearance;
20278
20306
  /** An optional set of gates that, if any is present, will block deletion. */
20279
20307
  DeleteGates?: {
20280
20308
  [key: string]: boolean;
@@ -20282,6 +20310,8 @@ type Invocation = {
20282
20310
  /** Friendly name for the entity. */
20283
20311
  DisplayName?: string;
20284
20312
  FunctionInvocations: FunctionInvocationList;
20313
+ /** Guards to record on the paths this Invocation's functions write, so a later operation must be cleared for them; combined with the guards of a Trigger running it, the Trigger's winning per key. Add and overwrite only -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). Clearance must cover them. */
20314
+ Guards?: GuardStamp;
20285
20315
  /** The reason the entity is hidden, if it is. A hidden entity is left out of List and Search results, and of what bulk operations act on, unless the include_hidden parameter names its reason or is *, or the where parameter names the entity by Slug or ID. ConfigHub/YAML Units are created hidden with the reason BackingUnit unless given another. */
20286
20316
  HiddenReason?: string;
20287
20317
  /** InvocationID uniquely identifies a invocation within the system. */
@@ -20313,6 +20343,8 @@ type InvocationRead = {
20313
20343
  BackingUnitID?: string;
20314
20344
  /** Unique identifier for a Channel whose client executes the functions specified by the Invocation. If it is not specified, the builtin function executor is used. */
20315
20345
  ChannelID?: string;
20346
+ /** Classes of guarded reason this Invocation's functions are cleared for; combined by union with the clearance of the Trigger or API call that runs it */
20347
+ Clearance?: Clearance;
20316
20348
  /** The timestamp when the entity was created in "2023-01-01T12:00:00Z" format. */
20317
20349
  CreatedAt?: string;
20318
20350
  /** An optional set of gates that, if any is present, will block deletion. */
@@ -20324,6 +20356,8 @@ type InvocationRead = {
20324
20356
  /** The type of entity. */
20325
20357
  EntityType?: string;
20326
20358
  FunctionInvocations: FunctionInvocationList;
20359
+ /** Guards to record on the paths this Invocation's functions write, so a later operation must be cleared for them; combined with the guards of a Trigger running it, the Trigger's winning per key. Add and overwrite only -- retiring a guard is the /guard API (cub unit set-guard --remove-guard). Clearance must cover them. */
20360
+ Guards?: GuardStamp;
20327
20361
  /** SHA256 hash of the functions and their arguments encoded as hexadecimal. */
20328
20362
  Hash?: string;
20329
20363
  /** The reason the entity is hidden, if it is. A hidden entity is left out of List and Search results, and of what bulk operations act on, unless the include_hidden parameter names its reason or is *, or the where parameter names the entity by Slug or ID. ConfigHub/YAML Units are created hidden with the reason BackingUnit unless given another. */
@@ -21308,11 +21342,11 @@ type WithheldGuard = {
21308
21342
  Value?: string;
21309
21343
  };
21310
21344
  type GuardDelta = {
21311
- /** The path whose guards changed; empty for the resource as a whole */
21345
+ /** The path whose inherited guards changed; empty for the resource as a whole */
21312
21346
  Path?: string;
21313
- /** Guard keys removed */
21347
+ /** Inherited guard keys removed */
21314
21348
  Remove?: string[];
21315
- /** Guard keys added or changed, with their new values */
21349
+ /** Inherited guard keys added or changed, with their new values */
21316
21350
  Set?: {
21317
21351
  [key: string]: string;
21318
21352
  };
@@ -23549,10 +23583,16 @@ type ExtendedTriggerRead = {
23549
23583
  };
23550
23584
  type Mutation = {
23551
23585
  ChannelID?: string;
23586
+ /** The classes of guarded reason the change was filtered with. On a function invocation that is the request's clearance together with that of every Trigger and Invocation that wrote in the same execution; on a Link's change, the Link's */
23587
+ Clearance?: Clearance;
23552
23588
  /** The function invoked if the change was made by a function. */
23553
23589
  FunctionInvocation?: FunctionInvocation;
23590
+ /** The guards the change recorded on the paths it wrote: the operation's merged with those of the Trigger, Invocation, or Link that produced it */
23591
+ Guards?: GuardStamp;
23554
23592
  /** The reason the entity is hidden, if it is. A hidden entity is left out of List and Search results, and of what bulk operations act on, unless the include_hidden parameter names its reason or is *, or the where parameter names the entity by Slug or ID. ConfigHub/YAML Units are created hidden with the reason BackingUnit unless given another. */
23555
23593
  HiddenReason?: string;
23594
+ /** The guards the change recorded as inherited on the paths it wrote, which clones receive and merges carry to the units downstream */
23595
+ InheritedGuards?: GuardStamp;
23556
23596
  /** InvocationID is the identifier of the function invoked, if there is a corresponding Invocation. */
23557
23597
  InvocationID?: string;
23558
23598
  InvocationParams?: {
@@ -23597,14 +23637,20 @@ type Mutation = {
23597
23637
  };
23598
23638
  type MutationRead = {
23599
23639
  ChannelID?: string;
23640
+ /** The classes of guarded reason the change was filtered with. On a function invocation that is the request's clearance together with that of every Trigger and Invocation that wrote in the same execution; on a Link's change, the Link's */
23641
+ Clearance?: Clearance;
23600
23642
  /** The timestamp when the entity was created in "2023-01-01T12:00:00Z" format. */
23601
23643
  CreatedAt?: string;
23602
23644
  /** The type of entity. */
23603
23645
  EntityType?: string;
23604
23646
  /** The function invoked if the change was made by a function. */
23605
23647
  FunctionInvocation?: FunctionInvocation;
23648
+ /** The guards the change recorded on the paths it wrote: the operation's merged with those of the Trigger, Invocation, or Link that produced it */
23649
+ Guards?: GuardStamp;
23606
23650
  /** The reason the entity is hidden, if it is. A hidden entity is left out of List and Search results, and of what bulk operations act on, unless the include_hidden parameter names its reason or is *, or the where parameter names the entity by Slug or ID. ConfigHub/YAML Units are created hidden with the reason BackingUnit unless given another. */
23607
23651
  HiddenReason?: string;
23652
+ /** The guards the change recorded as inherited on the paths it wrote, which clones receive and merges carry to the units downstream */
23653
+ InheritedGuards?: GuardStamp;
23608
23654
  /** InvocationID is the identifier of the function invoked, if there is a corresponding Invocation. */
23609
23655
  InvocationID?: string;
23610
23656
  InvocationParams?: {
@@ -23960,6 +24006,8 @@ type BlameField = {
23960
24006
  Guards?: {
23961
24007
  [key: string]: string;
23962
24008
  };
24009
+ /** The keys of Guards that are inherited: copied to the unit's clones and carried by merges to the units downstream of it. The others stay with this unit. */
24010
+ InheritedGuards?: string[];
23963
24011
  /** The unit's needed paths that are the field: a value it is to take from an upstream unit through a NeedsProvides Link. */
23964
24012
  Needed?: BlameNeededPath[];
23965
24013
  /** The field's path, in the syntax functions and Links take. Empty on the row about the resource as a whole, which comes first among the resource's fields and carries what is recorded about the resource rather than one of its fields: the change that added or deleted it, whether it is protected as a whole, its guards, and its conflicts, findings and failed checks that name no path. */
@@ -24083,12 +24131,18 @@ type ResourceGuards = {
24083
24131
  };
24084
24132
  /** The resource whose guards are being edited: ResourceName, its whole name (namespace/name) or a name it had before a rename, or ResourceNameWithoutScope, a name without its namespace that has to match one resource; ResourceType, in any API version, is optional. A resource the unit does not have yet is named by ResourceType and ResourceName. */
24085
24133
  Resource?: ResourceInfo;
24086
- /** Guard key/value pairs to add or overwrite, by path. The empty path addresses the resource as a whole. A list element is named by merge key or by position, and * stands for every element or key there is; a path that does not exist yet is kept as written */
24134
+ /** Guard key/value pairs to add or overwrite, by path, as guards of this unit alone: clones and downstream units do not receive them, and one that was inherited stops being. The empty path addresses the resource as a whole. A list element is named by merge key or by position, and * stands for every element or key there is; a path that does not exist yet is kept as written */
24087
24135
  Set?: {
24088
24136
  [key: string]: {
24089
24137
  [key: string]: string;
24090
24138
  };
24091
24139
  };
24140
+ /** Guard key/value pairs to add or overwrite, by path, as inherited guards: a clone of the unit receives them, and a merge carries them, and any later change to them, to the units downstream of it. Named as in Set; a key may not be in both at the same path */
24141
+ SetInherited?: {
24142
+ [key: string]: {
24143
+ [key: string]: string;
24144
+ };
24145
+ };
24092
24146
  };
24093
24147
  type UnitGuardRequest = {
24094
24148
  /** Recorded on the Revision the edit creates. Defaults to "Set path guards". */
@@ -24155,7 +24209,7 @@ type BlamePathChangeRead = {
24155
24209
  Value?: string;
24156
24210
  };
24157
24211
  type UnitPathReport = {
24158
- /** The path's own annotations other than guards and conflict dismissals, by kind. The field's Guards are those that apply to it, its ancestors' and its resource's included. */
24212
+ /** The path's own annotations other than guards, their inheritance and conflict dismissals, by kind. The field's Guards are those that apply to it, its ancestors' and its resource's included. */
24159
24213
  Annotations?: {
24160
24214
  [key: string]: {
24161
24215
  [key: string]: string;
@@ -24179,7 +24233,7 @@ type UnitPathReport = {
24179
24233
  ReleaseState?: string;
24180
24234
  };
24181
24235
  type UnitPathReportRead = {
24182
- /** The path's own annotations other than guards and conflict dismissals, by kind. The field's Guards are those that apply to it, its ancestors' and its resource's included. */
24236
+ /** The path's own annotations other than guards, their inheritance and conflict dismissals, by kind. The field's Guards are those that apply to it, its ancestors' and its resource's included. */
24183
24237
  Annotations?: {
24184
24238
  [key: string]: {
24185
24239
  [key: string]: string;
package/dist/index.js CHANGED
@@ -1028,6 +1028,7 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
1028
1028
  protect: queryArg.protect,
1029
1029
  clearance: queryArg.clearance,
1030
1030
  guards: queryArg.guards,
1031
+ inherited_guards: queryArg.inheritedGuards,
1031
1032
  change_set_id: queryArg.changeSetId,
1032
1033
  change_order: queryArg.changeOrder,
1033
1034
  subgroup: queryArg.subgroup,
@@ -2489,6 +2490,7 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
2489
2490
  protect: queryArg.protect,
2490
2491
  clearance: queryArg.clearance,
2491
2492
  guards: queryArg.guards,
2493
+ inherited_guards: queryArg.inheritedGuards,
2492
2494
  change_set_id: queryArg.changeSetId,
2493
2495
  change_order: queryArg.changeOrder,
2494
2496
  subgroup: queryArg.subgroup,
@@ -3107,6 +3109,7 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
3107
3109
  protect: queryArg.protect,
3108
3110
  clearance: queryArg.clearance,
3109
3111
  guards: queryArg.guards,
3112
+ inherited_guards: queryArg.inheritedGuards,
3110
3113
  squash: queryArg.squash,
3111
3114
  upgrade: queryArg.upgrade,
3112
3115
  restore: queryArg.restore,
@@ -3141,6 +3144,7 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
3141
3144
  protect: queryArg.protect,
3142
3145
  clearance: queryArg.clearance,
3143
3146
  guards: queryArg.guards,
3147
+ inherited_guards: queryArg.inheritedGuards,
3144
3148
  squash: queryArg.squash,
3145
3149
  upgrade: queryArg.upgrade,
3146
3150
  restore: queryArg.restore,
@@ -3207,6 +3211,7 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
3207
3211
  protect: queryArg.protect,
3208
3212
  clearance: queryArg.clearance,
3209
3213
  guards: queryArg.guards,
3214
+ inherited_guards: queryArg.inheritedGuards,
3210
3215
  merge_base: queryArg.mergeBase,
3211
3216
  merge_external_source: queryArg.mergeExternalSource,
3212
3217
  merge_enable_subtraction: queryArg.mergeEnableSubtraction,
@@ -3908,6 +3913,7 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
3908
3913
  protect: queryArg.protect,
3909
3914
  clearance: queryArg.clearance,
3910
3915
  guards: queryArg.guards,
3916
+ inherited_guards: queryArg.inheritedGuards,
3911
3917
  squash: queryArg.squash,
3912
3918
  upgrade: queryArg.upgrade,
3913
3919
  restore: queryArg.restore,