@astrale-os/kernel-core 0.9.0-beta.44 → 0.9.0-beta.46

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.
@@ -108,6 +108,15 @@ export declare const Identity: builder.NodeClass<{
108
108
  readonly mode: 'value';
109
109
  readonly value: string;
110
110
  }, "authenticated", true, false>>;
111
+ impersonate: builder.Method<builder.CallableProjection<{
112
+ audience?: string | undefined;
113
+ ttlSeconds: number;
114
+ grant?: unknown;
115
+ identity: string;
116
+ }, {
117
+ readonly mode: 'value';
118
+ readonly value: string;
119
+ }, "authorized", true, false>>;
111
120
  }>;
112
121
  readonly effectiveProperties: builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, false, "frozen", "self", never> | builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, false, "iss", "self", never> | builder.AuthoredPropertyProjection<({
113
122
  claim: string;
@@ -159,6 +168,14 @@ export declare const Identity: builder.NodeClass<{
159
168
  audience?: string | undefined;
160
169
  ttlSeconds: number;
161
170
  grant?: unknown;
171
+ identity: string;
172
+ }, {
173
+ readonly mode: 'value';
174
+ readonly value: string;
175
+ }, "authorized", true, false>>, "impersonate", "self"> | builder.AuthoredMethodProjection<builder.Method<builder.CallableProjection<{
176
+ audience?: string | undefined;
177
+ ttlSeconds: number;
178
+ grant?: unknown;
162
179
  }, {
163
180
  readonly mode: 'value';
164
181
  readonly value: string;
@@ -12,7 +12,7 @@ export function projectedCallables(domain) {
12
12
  if (!('methods' in definition) || definition.kind !== 'node')
13
13
  continue;
14
14
  for (const method of [...definition.methods, ...definition.static.methods]) {
15
- if (method.owner.ref.origin !== domain.origin || method.definition.abstract === true) {
15
+ if (method.owner.ref.origin !== domain.origin || !method.executable) {
16
16
  continue;
17
17
  }
18
18
  result.set(projectedMethodPath(domain, method), method.key);
@@ -11,7 +11,7 @@ export function managedKeys(domain) {
11
11
  if (!('methods' in definition) || definition.kind !== 'node')
12
12
  continue;
13
13
  for (const method of [...definition.methods, ...definition.static.methods]) {
14
- if (method.owner.ref.origin !== domain.origin || method.definition.abstract === true) {
14
+ if (method.owner.ref.origin !== domain.origin || !method.executable) {
15
15
  continue;
16
16
  }
17
17
  add(keys, projectedMethodPath(domain, method));
@@ -45,7 +45,7 @@ export function project(domain) {
45
45
  const methods = new Map();
46
46
  for (const definition of Object.values(domain.classes)) {
47
47
  for (const method of [...definition.methods, ...definition.static.methods]) {
48
- if (method.owner.ref.origin === domain.origin && method.definition.abstract !== true) {
48
+ if (method.owner.ref.origin === domain.origin && method.executable) {
49
49
  methods.set(method.key, method);
50
50
  }
51
51
  }