انتقل إلى المحتوى الرئيسي

Variable: Actor

const Actor: TUnion<[TObject<{ kind: TLiteral<"tenant">; roles: TArray<TString>; scopePath: TString; subjectId: TString; tenant: TString; }>, TObject<{ kind: TLiteral<"platform">; roles: TArray<TString>; scopePath: TLiteral<"/">; subjectId: TLiteral<"00000000-0000-0000-0000-000000000000">; tenant: TLiteral<"platform">; }>]>

Defined in: packages/contracts/src/envelope.ts:61

Who a message acts for: a TenantActor or the PlatformActor, told apart by kind. A repository that takes a tenant Scope can be reached only from the first; the second reaches PlatformScope operations only.