@stndrds/schema 1.0.0-alpha.359 → 1.0.0-alpha.361

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
@@ -2,7 +2,7 @@
2
2
  import { A as SearchBackendError, B as ValidationErrorDetail, C as RecordReferencedError, D as RoleNotFoundError, E as ReservedObjectNameError, F as SyncCascadeError, G as isRecordReferencedError, H as isNotFoundError, I as SyncConflictError, J as GrantIssue, K as isSchemaError, L as SyncError, M as SearchBackendFailureKind, N as StorageError, O as SchemaError, P as StorageOperation, Q as permissionGrantSchema, R as SystemEntityImmutableError, S as RecordReference, T as RepositoryOperation, U as isObjectReferencedError, V as isAttributeInUseError, W as isProtectedResourceError, X as PermissionGrant, Y as PERMISSION_ACTIONS, Z as findGrantIssues, _ as ProtectedRoleError, a as AttributeUsage, b as RealtimeSubscriptionError, c as ForbiddenError, d as NotFoundError, f as NotImplementedError, g as ProtectedResourceError, h as OrphanSystemAttributeError, i as AttributeNotFoundError, j as SearchBackendErrorOptions, k as SchemaErrorCode, l as InvalidPermissionGrantError, m as ObjectReferencedError, n as AmbiguousSchemaChangeError, o as ConcurrentModificationError, p as ObjectNotFoundError, q as isValidationError, r as AttributeInUseError, s as DuplicateError, t as AccessDeniedError, u as MemoryNotFoundError, v as RealtimeDeliveryError, w as RepositoryError, x as RecordNotFoundError, y as RealtimeRateLimitedError, z as ValidationError } from "./exceptions-DStnjN6V.js";
3
3
  import { $ as COMPUTED_FUNCTION_METADATA, A as RichTextAttribute, At as ComputedFormulaAstNode, B as UserAttribute, C as NumberUnit, Ct as isComputedFunctionName, D as RELATION_TARGET_ANY, Dt as ComputedPlan, E as PhoneAttribute, Et as ComputedOptionsSource, F as SingleRelationAttribute, Ft as ComputedFormulaParseError, G as isUniversalRelation, H as inferInverseCardinality, I as StatusAttribute, It as ComputedFormulaPathNode, J as PropertyAttribute, K as relationTargetsOf, L as StatusGroup, Lt as parseComputedFormula, M as RollupAttribute, Mt as ComputedFormulaBinaryOperator, N as RollupFunction, Nt as ComputedFormulaCallNode, O as RelationAttribute, Ot as ComputedReturnType, P as SelectAttribute, Pt as ComputedFormulaLiteralNode, Q as resolvePropertyDefinitions, R as TextAttribute, S as NumberAttribute, St as ComputedFunctionSignature, T as Phone, Tt as ComputedFieldKind, U as isAttributeSortable, V as UserReferenceType, W as isBilateralRelation, X as PropertyType, Y as PropertySchema, Z as hasOptions, _ as Location, _t as assertAcyclicComputedDependencies, a as BaseAttribute, at as evaluateComputedFormulaWithResult, b as MultiRelationAttribute, bt as COMPUTED_FUNCTION_NAMES, c as Currency, ct as compileRollupAttribute, d as DateFormat, dt as CompileComputedFormulaInput, et as ComputedFunctionCategory, f as DateRangeValue, ft as ComputedCompileAttribute, g as FormulaReturnType, gt as ComputedFormulaCompileError, h as FormulaAttribute, ht as ComputedDependencyGraphNode, i as AttributeType, it as evaluateComputedFormula, j as RichtextAttribute, jt as ComputedFormulaBinaryNode, k as RelationTarget, kt as ComputedValueType, l as CurrencyAttribute, lt as inferRollupReturnType, m as DocumentAttribute, mt as ComputedCompileSchema, n as Attribute, nt as ComputedFormulaResult, o as BilateralConfig, ot as formatComputedResult, p as DateValue, pt as ComputedCompileObject, q as OptionPropertyAttribute, r as AttributeGroup, rt as evaluateComputedAst, s as CheckboxAttribute, st as isPlainRecord, t as ATTRIBUTE_TYPES, tt as ComputedFunctionMetadata, u as DateAttribute, ut as rollupToFormulaExpression, v as LocationAttribute, vt as compileComputedFormula, w as Option, wt as ComputedDependency, x as MultiselectAttribute, xt as ComputedFunctionName, y as LocationGranularity, yt as COMPUTED_FUNCTIONS, z as TimeFormat } from "./attributes-yTXr35kT.js";
4
4
  import { a as asUserId, c as indexBy, d as sameStableValue, f as serializeCanonicalJson, i as asTenantId, l as NonJsonValueError, n as UserId, o as deepEqual, p as serializeStableJson, r as Uuid, s as generateId, t as TenantId, u as canonicalStringify } from "./utils-70uWAevF.js";
5
- import { $ as RelativeDateValue, A as FormDensity, B as DynamicValue, C as ContentPlacement, D as DocumentsContentDefinition, E as CustomContentDefinition, F as RichtextContentDefinition, G as FilterRule, H as ExtendedFilterRule, I as ViewContentDefinition, J as NO_VALUE_OPERATORS, K as FilterState, L as ViewRead, M as KanbanCollectionContentDefinition, N as ListViewLayout, O as EmailsContentDefinition, P as MeetingsContentDefinition, Q as QueryState, R as CurrencyFilterValue, S as ContentOpenMode, T as ContentViewDefinition, U as FilterCombinator, V as EdgeQuantifier, W as FilterOperator, X as OPERATORS_BY_TYPE, Y as NoValueOperator, Z as PhoneFilterValue, _ as CollectionContentSource, a as displayAttributesSchema, b as ContentField, c as filterStateSchema, d as colorIdSchema, et as SortDirection, f as iconNameSchema, g as CollectionContentDefinition, h as CollectionAction, i as contentViewDefinitionSchemaFor, j as FormsContentDefinition, k as FormContentDefinition, l as publishedViewContentDefinitionSchema, m as ActivityContentDefinition, n as columnsSchema, nt as getRollupFilterOperators, o as draftContentViewDefinitionSchema, p as SCHEMA_LIMITS, q as FilterValue, r as contentViewDefinitionSchema, rt as isNoValueOperator, s as draftContentViewDefinitionSchemaFor, t as collectionContentSourceSchema, tt as SortRule, u as sortsSchema, v as ColumnReference, w as ContentViewContext, x as ContentFieldGroup, y as ContentCreateMode, z as DayMonthValue } from "./all-C-bCbBrd.js";
5
+ import { $ as RelativeDateValue, A as FormDensity, B as DynamicValue, C as ContentPlacement, D as DocumentsContentDefinition, E as CustomContentDefinition, F as RichtextContentDefinition, G as FilterRule, H as ExtendedFilterRule, I as ViewContentDefinition, J as NO_VALUE_OPERATORS, K as FilterState, L as ViewRead, M as KanbanCollectionContentDefinition, N as ListViewLayout, O as EmailsContentDefinition, P as MeetingsContentDefinition, Q as QueryState, R as CurrencyFilterValue, S as ContentOpenMode, T as ContentViewDefinition, U as FilterCombinator, V as EdgeQuantifier, W as FilterOperator, X as OPERATORS_BY_TYPE, Y as NoValueOperator, Z as PhoneFilterValue, _ as CollectionContentSource, a as displayAttributesSchema, b as ContentField, c as filterStateSchema, d as colorIdSchema, et as SortDirection, f as iconNameSchema, g as CollectionContentDefinition, h as CollectionAction, i as contentViewDefinitionSchemaFor, j as FormsContentDefinition, k as FormContentDefinition, l as publishedViewContentDefinitionSchema, m as ActivityContentDefinition, n as columnsSchema, nt as getRollupFilterOperators, o as draftContentViewDefinitionSchema, p as SCHEMA_LIMITS, q as FilterValue, r as contentViewDefinitionSchema, rt as isNoValueOperator, s as draftContentViewDefinitionSchemaFor, t as collectionContentSourceSchema, tt as SortRule, u as sortsSchema, v as ColumnReference, w as ContentViewContext, x as ContentFieldGroup, y as ContentCreateMode, z as DayMonthValue } from "./all-C8N8ymoU.js";
6
6
  import { A as RecordAccessRole, B as PresetNode, C as ResourceVisibility, D as parseResourceVisibility, E as Timestamps, F as deriveViewerAccess, I as parseRecordAccessRole, L as DocumentLayout, M as RecordAudience, N as RecordAudienceGrant, O as RECORD_ACCESS_ROLES, P as ViewerAccess, R as FolderPreset, S as ReservedObjectName, T as SystemFieldName, _ as ObjectRecord, a as validateDraft, b as RESOURCE_VISIBILITIES, c as validateObjectOrThrow, f as createFormAttributeValidator, g as ObjectDefinition, h as ObjectAttribute, j as RecordAccessSource, k as RECORD_ACCESS_SOURCES, m as ListViewTabVisibility, o as validateDraftOrThrow, p as LIST_VIEW_TAB_VISIBILITIES, r as rejectUnknownAttributesOrThrow, s as validateObject, v as RESERVED_ATTRIBUTE_NAMES, w as SYSTEM_FIELD_NAMES, x as ReservedAttributeName, y as RESERVED_OBJECT_NAMES, z as MAX_PRESET_DEPTH } from "./index-DfTkjIMo.js";
7
7
  import { C as RelationOption, S as CreateCustomObjectInput, T as UpdateObjectInput, _ as statusGroupSchema, b as withoutUnknownOptionKeys, c as parseAttributeConfig, d as propertyAttributeSchema, f as propertyAttributeWireSchema, g as selectOptionWriteSchema, h as refuseForeignKeys, i as attributeConfigSchemas, l as parseAttributeConfigForCreate, m as propertySchemaWireSchema, p as propertySchemaSchema, r as WIRE_OMITTED_CONFIG_KEYS, s as multiselectOptionWriteSchema, t as SIMPLE_PROPERTY_TYPES, u as parseAttributeConfigForUpdate, v as statusOptionWriteSchema, w as RelationOptionsResponse, x as AddAttributeInput, y as wireOmittedConfigKeysFor } from "./index-BCmWG1tK.js";
8
8
  import { n as DEFAULT_VALIDATION_MESSAGES, r as ValidationMessages, t as formatZodErrors } from "./index-Depp4oSL.js";
@@ -1825,7 +1825,7 @@ export declare const canonicalViewOperationSchema: z$1.ZodDiscriminatedUnion<[z$
1825
1825
  kanbanColumnOrder?: string[] | undefined;
1826
1826
  kanbanColumnVisibility?: Record<string, boolean> | undefined;
1827
1827
  kanbanPinnedColumns?: string[] | undefined;
1828
- visibility?: "all" | "workspace" | "private" | undefined;
1828
+ visibility?: "workspace" | "private" | "all" | undefined;
1829
1829
  columns?: (string | {
1830
1830
  relationProperty: string;
1831
1831
  })[] | undefined;
@@ -1987,9 +1987,9 @@ export declare const canonicalViewOperationSchema: z$1.ZodDiscriminatedUnion<[z$
1987
1987
  relation?: string | undefined;
1988
1988
  }>>;
1989
1989
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
1990
- all: "all";
1991
1990
  workspace: "workspace";
1992
1991
  private: "private";
1992
+ all: "all";
1993
1993
  }>>;
1994
1994
  columns: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
1995
1995
  relationProperty: z$1.ZodString;
@@ -7451,6 +7451,24 @@ export interface AcceptTenantInvitationInput {
7451
7451
  proof: string;
7452
7452
  identity: AcceptTenantInvitationIdentity;
7453
7453
  }
7454
+ /**
7455
+ * What the invitee may read about a still-usable invitation before joining —
7456
+ * fetched with the single-use proof, never with a session.
7457
+ */
7458
+ export interface TenantInvitationPreview {
7459
+ invitationId: Uuid;
7460
+ email: string;
7461
+ expiresAt: Date;
7462
+ inviter: {
7463
+ name: string;
7464
+ };
7465
+ role: {
7466
+ name: string;
7467
+ };
7468
+ workspace?: {
7469
+ name: string;
7470
+ };
7471
+ }
7454
7472
  //#endregion
7455
7473
  //#region src/connectors/types.d.ts
7456
7474
  /** Built-in external connector providers. Mirrors the runtime's
@@ -7895,12 +7913,6 @@ export interface UserProfile extends Timestamps {
7895
7913
  * Last login timestamp (updated on each successful auth)
7896
7914
  */
7897
7915
  lastLoginAt?: Date;
7898
- /**
7899
- * Whether the user is still pending their initial invitation (has never logged in).
7900
- * Derived field — true when `lastLoginAt` is unset.
7901
- * Used by the UI to gate "Resend invite" vs "Reset access" actions.
7902
- */
7903
- invitePending: boolean;
7904
7916
  }
7905
7917
  /**
7906
7918
  * A profile as the members screen (spec A1) needs it: the underlying user
@@ -7948,24 +7960,6 @@ export interface UpdateUserProfile {
7948
7960
  /** Omit to preserve the preference; null clears it. */
7949
7961
  defaultChatModel?: ModelReference | null;
7950
7962
  }
7951
- /**
7952
- * Data for inviting a new user by email.
7953
- * Creates an active user profile and sends an invitation email via Supabase Auth.
7954
- * The role is resolved and checked BEFORE any provisioning (spec 3 A4); with no
7955
- * `roleId`, the default `member` role is assigned automatically by the service.
7956
- */
7957
- export interface InviteUserInput {
7958
- /** Email address to invite */
7959
- email: string;
7960
- /** User's first name (stored in user_metadata) */
7961
- firstName?: string;
7962
- /** User's last name (stored in user_metadata) */
7963
- lastName?: string;
7964
- /** URL to redirect after accepting invitation */
7965
- redirectTo?: string;
7966
- /** Role to assign instead of the default `member`. Checked before provisioning. */
7967
- roleId?: string;
7968
- }
7969
7963
  //#endregion
7970
7964
  //#region src/types/schema-groups.d.ts
7971
7965
  export type SchemaGroupKind = "bundle" | "source";
@@ -10733,7 +10727,7 @@ export declare class ContentBuilder<T extends {
10733
10727
  createMode: ContentCreateMode;
10734
10728
  }>>;
10735
10729
  visibility(this: ContentBuilder<T & Collection>, visibility: ListViewTabVisibility): ContentBuilder<SetFields<T & Collection, {
10736
- visibility: "all" | "workspace" | "private";
10730
+ visibility: "workspace" | "private" | "all";
10737
10731
  }>>;
10738
10732
  descriptionAttribute<const N extends string>(this: ContentBuilder<T & Collection>, descriptionAttribute: N): ContentBuilder<SetFields<T & Collection, {
10739
10733
  descriptionAttribute: N;
@@ -11498,7 +11492,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
11498
11492
  }, "type"> & {
11499
11493
  type: "collection";
11500
11494
  }, "visibility"> & {
11501
- visibility: "all" | "workspace" | "private";
11495
+ visibility: "workspace" | "private" | "all";
11502
11496
  } & Pick<Omit<Omit<Omit<{
11503
11497
  type: "collection";
11504
11498
  }, "source"> & {
@@ -11560,7 +11554,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
11560
11554
  }, "type"> & {
11561
11555
  type: "collection";
11562
11556
  }, "visibility"> & {
11563
- visibility: "all" | "workspace" | "private";
11557
+ visibility: "workspace" | "private" | "all";
11564
11558
  } & Pick<Omit<Omit<Omit<{
11565
11559
  type: "collection";
11566
11560
  }, "source"> & {
@@ -11624,7 +11618,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
11624
11618
  }, "type"> & {
11625
11619
  type: "collection";
11626
11620
  }, "visibility"> & {
11627
- visibility: "all" | "workspace" | "private";
11621
+ visibility: "workspace" | "private" | "all";
11628
11622
  } & Pick<Omit<Omit<Omit<{
11629
11623
  type: "collection";
11630
11624
  }, "source"> & {
@@ -11686,7 +11680,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
11686
11680
  }, "type"> & {
11687
11681
  type: "collection";
11688
11682
  }, "visibility"> & {
11689
- visibility: "all" | "workspace" | "private";
11683
+ visibility: "workspace" | "private" | "all";
11690
11684
  } & Pick<Omit<Omit<Omit<{
11691
11685
  type: "collection";
11692
11686
  }, "source"> & {
@@ -11752,7 +11746,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
11752
11746
  }, "type"> & {
11753
11747
  type: "collection";
11754
11748
  }, "visibility"> & {
11755
- visibility: "all" | "workspace" | "private";
11749
+ visibility: "workspace" | "private" | "all";
11756
11750
  } & Pick<Omit<Omit<Omit<{
11757
11751
  type: "collection";
11758
11752
  }, "source"> & {
@@ -11814,7 +11808,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
11814
11808
  }, "type"> & {
11815
11809
  type: "collection";
11816
11810
  }, "visibility"> & {
11817
- visibility: "all" | "workspace" | "private";
11811
+ visibility: "workspace" | "private" | "all";
11818
11812
  } & Pick<Omit<Omit<Omit<{
11819
11813
  type: "collection";
11820
11814
  }, "source"> & {
@@ -11878,7 +11872,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
11878
11872
  }, "type"> & {
11879
11873
  type: "collection";
11880
11874
  }, "visibility"> & {
11881
- visibility: "all" | "workspace" | "private";
11875
+ visibility: "workspace" | "private" | "all";
11882
11876
  } & Pick<Omit<Omit<Omit<{
11883
11877
  type: "collection";
11884
11878
  }, "source"> & {
@@ -11940,7 +11934,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
11940
11934
  }, "type"> & {
11941
11935
  type: "collection";
11942
11936
  }, "visibility"> & {
11943
- visibility: "all" | "workspace" | "private";
11937
+ visibility: "workspace" | "private" | "all";
11944
11938
  } & Pick<Omit<Omit<Omit<{
11945
11939
  type: "collection";
11946
11940
  }, "source"> & {
@@ -12215,7 +12209,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
12215
12209
  }, "type"> & {
12216
12210
  type: "collection";
12217
12211
  }, "visibility"> & {
12218
- visibility: "all" | "workspace" | "private";
12212
+ visibility: "workspace" | "private" | "all";
12219
12213
  } & Pick<Omit<Omit<Omit<{
12220
12214
  type: "collection";
12221
12215
  }, "source"> & {
@@ -12277,7 +12271,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
12277
12271
  }, "type"> & {
12278
12272
  type: "collection";
12279
12273
  }, "visibility"> & {
12280
- visibility: "all" | "workspace" | "private";
12274
+ visibility: "workspace" | "private" | "all";
12281
12275
  } & Pick<Omit<Omit<Omit<{
12282
12276
  type: "collection";
12283
12277
  }, "source"> & {
@@ -12341,7 +12335,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
12341
12335
  }, "type"> & {
12342
12336
  type: "collection";
12343
12337
  }, "visibility"> & {
12344
- visibility: "all" | "workspace" | "private";
12338
+ visibility: "workspace" | "private" | "all";
12345
12339
  } & Pick<Omit<Omit<Omit<{
12346
12340
  type: "collection";
12347
12341
  }, "source"> & {
@@ -12403,7 +12397,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
12403
12397
  }, "type"> & {
12404
12398
  type: "collection";
12405
12399
  }, "visibility"> & {
12406
- visibility: "all" | "workspace" | "private";
12400
+ visibility: "workspace" | "private" | "all";
12407
12401
  } & Pick<Omit<Omit<Omit<{
12408
12402
  type: "collection";
12409
12403
  }, "source"> & {
@@ -12469,7 +12463,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
12469
12463
  }, "type"> & {
12470
12464
  type: "collection";
12471
12465
  }, "visibility"> & {
12472
- visibility: "all" | "workspace" | "private";
12466
+ visibility: "workspace" | "private" | "all";
12473
12467
  } & Pick<Omit<Omit<Omit<{
12474
12468
  type: "collection";
12475
12469
  }, "source"> & {
@@ -12531,7 +12525,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
12531
12525
  }, "type"> & {
12532
12526
  type: "collection";
12533
12527
  }, "visibility"> & {
12534
- visibility: "all" | "workspace" | "private";
12528
+ visibility: "workspace" | "private" | "all";
12535
12529
  } & Pick<Omit<Omit<Omit<{
12536
12530
  type: "collection";
12537
12531
  }, "source"> & {
@@ -12595,7 +12589,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
12595
12589
  }, "type"> & {
12596
12590
  type: "collection";
12597
12591
  }, "visibility"> & {
12598
- visibility: "all" | "workspace" | "private";
12592
+ visibility: "workspace" | "private" | "all";
12599
12593
  } & Pick<Omit<Omit<Omit<{
12600
12594
  type: "collection";
12601
12595
  }, "source"> & {
@@ -12657,7 +12651,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
12657
12651
  }, "type"> & {
12658
12652
  type: "collection";
12659
12653
  }, "visibility"> & {
12660
- visibility: "all" | "workspace" | "private";
12654
+ visibility: "workspace" | "private" | "all";
12661
12655
  } & Pick<Omit<Omit<Omit<{
12662
12656
  type: "collection";
12663
12657
  }, "source"> & {
@@ -12870,6 +12864,8 @@ export type AgentUIMessageBatchItem<TChunk = unknown> = {
12870
12864
  startOffset: number;
12871
12865
  endOffset: number;
12872
12866
  };
12867
+ /** Wall-clock time (epoch ms) at which the runtime enqueued the chunk. */
12868
+ emittedAtMs?: number;
12873
12869
  chunk: TChunk;
12874
12870
  };
12875
12871
  export type AgentUIMessageBatch<TChunk = unknown> = {
@@ -13085,9 +13081,11 @@ export declare function filterTargetsOf(attributes: readonly Attribute[]): Filte
13085
13081
  /** True when a filter value is a query-time dynamic token. */
13086
13082
  export declare function isDynamicValue(value: unknown): value is DynamicValue;
13087
13083
  /**
13088
- * `@me` — resolves to the current identity as the set `{actor id, user id}`,
13089
- * matched with `any_of`/`none_of`. Works on `user` attributes (which store the
13090
- * user id) and on `createdBy`/`lastUpdatedBy` (which store the actor id).
13084
+ * `@me` — resolves to the current identity: every id the read scope names
13085
+ * (the actor, and in an agent turn the person it runs for) plus the user
13086
+ * behind each, matched with `any_of`/`none_of`. Works on `user` attributes
13087
+ * (which store the user id) and on `createdBy`/`lastUpdatedBy` (which store
13088
+ * the actor id).
13091
13089
  */
13092
13090
  export declare function currentActor(): DynamicValue;
13093
13091
  /** `@today` — resolves to today's date (ctx timezone). Use on `date` attributes. */
@@ -13097,14 +13095,13 @@ export declare function now(): DynamicValue;
13097
13095
  /** Execution context made available to dynamic-value resolvers. */
13098
13096
  export interface ResolutionContext {
13099
13097
  tenantId: TenantId;
13100
- actorId?: Uuid;
13101
- rootActorId?: Uuid;
13102
13098
  /**
13103
- * User id behind the current actor (`actor.subjectId` when `actor.type === "user"`).
13104
- * Part of the `@me` set alongside `actorId` — user attributes store user ids,
13105
- * while createdBy/lastUpdatedBy store the actor id. Absent for agents.
13099
+ * The ids `@me` resolves to: the read scope's actor ids — the acting actor
13100
+ * and, when the context names one, the root human it works for (a chat
13101
+ * turn's asker, a scheduled run's creator; a trigger-fired run has none) —
13102
+ * plus the user behind each. Empty or absent drops the rule.
13106
13103
  */
13107
- userId?: Uuid;
13104
+ currentIdentityIds?: readonly Uuid[];
13108
13105
  now: Date;
13109
13106
  /** IANA timezone used to resolve `@today`. Defaults to "UTC" when unknown. */
13110
13107
  timezone: string;