@astrale-os/kernel-core 0.9.0-beta.53 → 0.9.0-beta.54
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/auth/authority/admission/admission.js +3 -0
- package/dist/auth/authority/normalization/normalize.js +7 -2
- package/dist/auth/authority/ownership.optimization.d.ts +5 -1
- package/dist/auth/authority/ownership.optimization.js +61 -0
- package/dist/schema/callables/function.d.ts +3430 -3
- package/dist/schema/callables/function.js +3 -2
- package/dist/schema/identity/identity.d.ts +15 -15
- package/dist/schema/kernel/schema.d.ts +4000 -573
- package/dist/schema/kernel/syscalls/declarations/index.d.ts +23 -23
- package/dist/schema/kernel/syscalls/declarations/mutate.d.ts +23 -23
- package/package.json +3 -3
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { nodeClass, property } from '@astrale-os/kernel-dsl/v1';
|
|
2
|
+
import { Identity } from '../identity/index.js';
|
|
2
3
|
import { FunctionMethods } from '../kernel/syscalls/declarations/index.js';
|
|
3
4
|
import { Descriptable } from '../meta/index.js';
|
|
4
5
|
export const Function = nodeClass({
|
|
5
6
|
abstract: false,
|
|
6
|
-
description: '
|
|
7
|
-
extends: [Descriptable],
|
|
7
|
+
description: 'An invocable resource that can carry its own Identity authority.',
|
|
8
|
+
extends: [Descriptable, Identity],
|
|
8
9
|
properties: {
|
|
9
10
|
kind: { enum: ['function', 'method'] },
|
|
10
11
|
input: {},
|
|
@@ -174,21 +174,6 @@ export declare const Identity: builder.NodeClass<{
|
|
|
174
174
|
})[];
|
|
175
175
|
};
|
|
176
176
|
}, "authenticated", true, false>>, "whoami", "self"> | builder.AuthoredMethodProjection<builder.Method<builder.CallableProjection<{
|
|
177
|
-
audience?: string | undefined;
|
|
178
|
-
ttlSeconds: number;
|
|
179
|
-
grant?: unknown;
|
|
180
|
-
identity: string;
|
|
181
|
-
}, {
|
|
182
|
-
readonly mode: 'value';
|
|
183
|
-
readonly value: string;
|
|
184
|
-
}, "authorized", true, false>>, "impersonate", "self"> | builder.AuthoredMethodProjection<builder.Method<builder.CallableProjection<{
|
|
185
|
-
audience?: string | undefined;
|
|
186
|
-
ttlSeconds: number;
|
|
187
|
-
grant?: unknown;
|
|
188
|
-
}, {
|
|
189
|
-
readonly mode: 'value';
|
|
190
|
-
readonly value: string;
|
|
191
|
-
}, "authenticated", true, false>>, "mint", "self"> | builder.AuthoredMethodProjection<builder.Method<builder.CallableProjection<{
|
|
192
177
|
principal: string;
|
|
193
178
|
audience: string;
|
|
194
179
|
ttlSeconds: number;
|
|
@@ -220,6 +205,21 @@ export declare const Identity: builder.NodeClass<{
|
|
|
220
205
|
})[];
|
|
221
206
|
} | null;
|
|
222
207
|
}, "authorized", true, false>>, "whois", "self"> | builder.AuthoredMethodProjection<builder.Method<builder.CallableProjection<{
|
|
208
|
+
audience?: string | undefined;
|
|
209
|
+
ttlSeconds: number;
|
|
210
|
+
grant?: unknown;
|
|
211
|
+
}, {
|
|
212
|
+
readonly mode: 'value';
|
|
213
|
+
readonly value: string;
|
|
214
|
+
}, "authenticated", true, false>>, "mint", "self"> | builder.AuthoredMethodProjection<builder.Method<builder.CallableProjection<{
|
|
215
|
+
audience?: string | undefined;
|
|
216
|
+
ttlSeconds: number;
|
|
217
|
+
grant?: unknown;
|
|
218
|
+
identity: string;
|
|
219
|
+
}, {
|
|
220
|
+
readonly mode: 'value';
|
|
221
|
+
readonly value: string;
|
|
222
|
+
}, "authorized", true, false>>, "impersonate", "self"> | builder.AuthoredMethodProjection<builder.Method<builder.CallableProjection<{
|
|
223
223
|
policy: string;
|
|
224
224
|
object: string;
|
|
225
225
|
} | {
|