@astrale-os/kernel-core 0.9.0-beta.39 → 0.9.0-beta.40
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/index.d.ts +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/auth/jwk/index.d.ts +1 -1
- package/dist/auth/jwk/index.js +1 -1
- package/dist/auth/jwk/thumbprint.d.ts +2 -0
- package/dist/auth/jwk/thumbprint.js +12 -6
- package/dist/auth/register/fingerprint/fingerprint.d.ts +25 -0
- package/dist/auth/register/fingerprint/fingerprint.js +31 -0
- package/dist/auth/register/fingerprint/index.d.ts +2 -0
- package/dist/auth/register/index.d.ts +5 -0
- package/dist/auth/register/request/admission.d.ts +3 -0
- package/dist/auth/register/request/admission.js +103 -0
- package/dist/auth/register/request/index.d.ts +3 -0
- package/dist/auth/register/request/limits.d.ts +6 -0
- package/dist/auth/register/request/limits.js +6 -0
- package/dist/auth/register/request/request.d.ts +19 -0
- package/dist/auth/{provision → register}/request/self-issuer.d.ts +1 -1
- package/dist/auth/{provision → register}/request/self-issuer.js +1 -1
- package/dist/auth/register/result/index.d.ts +1 -0
- package/dist/auth/register/result/result.d.ts +10 -0
- package/dist/schema/kernel/projection/project.js +4 -4
- package/dist/schema/kernel/schema.d.ts +40 -534
- package/dist/schema/kernel/schema.js +1 -1
- package/dist/schema/kernel/syscalls/contracts/index.d.ts +1 -1
- package/dist/schema/kernel/syscalls/contracts/index.js +1 -1
- package/dist/schema/kernel/syscalls/contracts/register.d.ts +20 -0
- package/dist/schema/kernel/syscalls/contracts/register.js +24 -0
- package/dist/schema/kernel/syscalls/declarations/index.d.ts +10 -257
- package/dist/schema/kernel/syscalls/declarations/index.js +2 -2
- package/dist/schema/kernel/syscalls/declarations/register.d.ts +23 -0
- package/dist/schema/kernel/syscalls/declarations/register.js +8 -0
- package/dist/schema/kernel/syscalls/descriptors/functions.d.ts +1 -1
- package/dist/schema/kernel/syscalls/descriptors/functions.js +1 -1
- package/dist/schema/kernel/syscalls/descriptors/index.d.ts +1 -1
- package/dist/schema/kernel/syscalls/descriptors/index.js +1 -1
- package/dist/schema/kernel/syscalls/index.d.ts +1 -1
- package/dist/schema/kernel/syscalls/index.js +1 -1
- package/dist/schema/kernel/syscalls/references/functions.d.ts +2 -2
- package/dist/schema/kernel/syscalls/references/functions.js +1 -1
- package/dist/schema/kernel/syscalls/references/index.d.ts +1 -1
- package/dist/schema/kernel/syscalls/references/index.js +1 -1
- package/package.json +1 -1
- package/dist/auth/provision/fingerprint/fingerprint.d.ts +0 -9
- package/dist/auth/provision/fingerprint/fingerprint.js +0 -30
- package/dist/auth/provision/fingerprint/index.d.ts +0 -2
- package/dist/auth/provision/index.d.ts +0 -5
- package/dist/auth/provision/request/admission.d.ts +0 -3
- package/dist/auth/provision/request/admission.js +0 -197
- package/dist/auth/provision/request/index.d.ts +0 -3
- package/dist/auth/provision/request/request.d.ts +0 -35
- package/dist/auth/provision/result/index.d.ts +0 -1
- package/dist/auth/provision/result/result.d.ts +0 -19
- package/dist/schema/kernel/syscalls/contracts/provision.d.ts +0 -301
- package/dist/schema/kernel/syscalls/contracts/provision.js +0 -28
- package/dist/schema/kernel/syscalls/declarations/provision.d.ts +0 -270
- package/dist/schema/kernel/syscalls/declarations/provision.js +0 -8
- /package/dist/auth/{provision → register}/fingerprint/index.js +0 -0
- /package/dist/auth/{provision → register}/index.js +0 -0
- /package/dist/auth/{provision → register}/request/index.js +0 -0
- /package/dist/auth/{provision → register}/request/request.js +0 -0
- /package/dist/auth/{provision → register}/result/index.js +0 -0
- /package/dist/auth/{provision → register}/result/result.js +0 -0
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import { type builder } from '@astrale-os/kernel-dsl/v1';
|
|
2
|
-
export declare const Provision: builder.Function<builder.CallableProjection<{
|
|
3
|
-
idempotencyKey: string;
|
|
4
|
-
mutation?: {
|
|
5
|
-
format: "astrale.graph.mutation";
|
|
6
|
-
version: "v3";
|
|
7
|
-
preconditions: ({
|
|
8
|
-
kind: "node";
|
|
9
|
-
node: string;
|
|
10
|
-
class: string;
|
|
11
|
-
props?: {
|
|
12
|
-
equals: Record<string, unknown>;
|
|
13
|
-
absent?: string[] | undefined;
|
|
14
|
-
} | {
|
|
15
|
-
absent: string[];
|
|
16
|
-
} | undefined;
|
|
17
|
-
} | {
|
|
18
|
-
kind: "edge";
|
|
19
|
-
edge: {
|
|
20
|
-
source: string;
|
|
21
|
-
target: string;
|
|
22
|
-
class: string;
|
|
23
|
-
};
|
|
24
|
-
slug?: unknown;
|
|
25
|
-
props?: {
|
|
26
|
-
equals: Record<string, unknown>;
|
|
27
|
-
absent?: string[] | undefined;
|
|
28
|
-
} | {
|
|
29
|
-
absent: string[];
|
|
30
|
-
} | undefined;
|
|
31
|
-
} | {
|
|
32
|
-
kind: "query";
|
|
33
|
-
query: {
|
|
34
|
-
format: "astrale.graph.query";
|
|
35
|
-
version: "v6";
|
|
36
|
-
source: {
|
|
37
|
-
kind: "node";
|
|
38
|
-
terms: ({
|
|
39
|
-
kind: "path";
|
|
40
|
-
path: string;
|
|
41
|
-
} | {
|
|
42
|
-
kind: "class";
|
|
43
|
-
class: {
|
|
44
|
-
origin: string;
|
|
45
|
-
kind: "class";
|
|
46
|
-
name: string;
|
|
47
|
-
};
|
|
48
|
-
})[];
|
|
49
|
-
binding: string;
|
|
50
|
-
} | {
|
|
51
|
-
kind: "edge";
|
|
52
|
-
terms: {
|
|
53
|
-
kind: "class";
|
|
54
|
-
class: {
|
|
55
|
-
origin: string;
|
|
56
|
-
kind: "class";
|
|
57
|
-
name: string;
|
|
58
|
-
};
|
|
59
|
-
}[];
|
|
60
|
-
bindings: {
|
|
61
|
-
source: string;
|
|
62
|
-
edge: string;
|
|
63
|
-
target: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
steps: ({
|
|
67
|
-
op: "filter";
|
|
68
|
-
binding: string;
|
|
69
|
-
predicate: {
|
|
70
|
-
kind: "class.satisfies";
|
|
71
|
-
class: {
|
|
72
|
-
origin: string;
|
|
73
|
-
kind: "class";
|
|
74
|
-
name: string;
|
|
75
|
-
};
|
|
76
|
-
} | {
|
|
77
|
-
kind: "class.equal";
|
|
78
|
-
class: {
|
|
79
|
-
origin: string;
|
|
80
|
-
kind: "class";
|
|
81
|
-
name: string;
|
|
82
|
-
};
|
|
83
|
-
} | {
|
|
84
|
-
kind: "property.equal";
|
|
85
|
-
property: string;
|
|
86
|
-
value: unknown;
|
|
87
|
-
} | {
|
|
88
|
-
kind: "property.present";
|
|
89
|
-
property: string;
|
|
90
|
-
} | {
|
|
91
|
-
kind: "identity.equal";
|
|
92
|
-
identity: string | {
|
|
93
|
-
source: string;
|
|
94
|
-
target: string;
|
|
95
|
-
class: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
} | {
|
|
99
|
-
op: "expand";
|
|
100
|
-
from: string;
|
|
101
|
-
via: {
|
|
102
|
-
origin: string;
|
|
103
|
-
kind: "class";
|
|
104
|
-
name: string;
|
|
105
|
-
}[];
|
|
106
|
-
direction: "incident" | "incoming" | "outgoing";
|
|
107
|
-
bindings: {
|
|
108
|
-
edge: string;
|
|
109
|
-
node: string;
|
|
110
|
-
};
|
|
111
|
-
})[];
|
|
112
|
-
select: {
|
|
113
|
-
kind: "graph";
|
|
114
|
-
binding: string;
|
|
115
|
-
order?: {
|
|
116
|
-
property: string;
|
|
117
|
-
direction: "asc" | "desc";
|
|
118
|
-
unranked: "first" | "last";
|
|
119
|
-
} | undefined;
|
|
120
|
-
} | {
|
|
121
|
-
kind: "nodes";
|
|
122
|
-
binding: string;
|
|
123
|
-
projection: {
|
|
124
|
-
kind: "reference" | "value";
|
|
125
|
-
};
|
|
126
|
-
order?: {
|
|
127
|
-
property: string;
|
|
128
|
-
direction: "asc" | "desc";
|
|
129
|
-
unranked: "first" | "last";
|
|
130
|
-
} | undefined;
|
|
131
|
-
} | {
|
|
132
|
-
kind: "edges";
|
|
133
|
-
binding: string;
|
|
134
|
-
projection: {
|
|
135
|
-
edge: "reference" | "value";
|
|
136
|
-
source: "reference" | "value";
|
|
137
|
-
target: "reference" | "value";
|
|
138
|
-
};
|
|
139
|
-
order?: {
|
|
140
|
-
property: string;
|
|
141
|
-
direction: "asc" | "desc";
|
|
142
|
-
unranked: "first" | "last";
|
|
143
|
-
} | undefined;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
equals: {
|
|
147
|
-
kind: "node";
|
|
148
|
-
ids: string[];
|
|
149
|
-
} | {
|
|
150
|
-
kind: "edge";
|
|
151
|
-
keys: {
|
|
152
|
-
source: string;
|
|
153
|
-
target: string;
|
|
154
|
-
class: string;
|
|
155
|
-
}[];
|
|
156
|
-
};
|
|
157
|
-
})[];
|
|
158
|
-
operations: ({
|
|
159
|
-
op: "node.create";
|
|
160
|
-
as: string;
|
|
161
|
-
class: string;
|
|
162
|
-
props: Record<string, unknown>;
|
|
163
|
-
} | {
|
|
164
|
-
op: "node.update";
|
|
165
|
-
node: string;
|
|
166
|
-
class: string;
|
|
167
|
-
props: {
|
|
168
|
-
set: Record<string, unknown>;
|
|
169
|
-
unset: string[];
|
|
170
|
-
};
|
|
171
|
-
} | {
|
|
172
|
-
op: "node.delete";
|
|
173
|
-
node: string;
|
|
174
|
-
class: string;
|
|
175
|
-
} | {
|
|
176
|
-
op: "edge.create";
|
|
177
|
-
class: string;
|
|
178
|
-
source: string | {
|
|
179
|
-
created: string;
|
|
180
|
-
};
|
|
181
|
-
target: string | {
|
|
182
|
-
created: string;
|
|
183
|
-
};
|
|
184
|
-
slug?: unknown;
|
|
185
|
-
props: Record<string, unknown>;
|
|
186
|
-
} | {
|
|
187
|
-
op: "edge.update";
|
|
188
|
-
edge: {
|
|
189
|
-
source: string;
|
|
190
|
-
target: string;
|
|
191
|
-
class: string;
|
|
192
|
-
};
|
|
193
|
-
slug: unknown;
|
|
194
|
-
props?: {
|
|
195
|
-
set: Record<string, unknown>;
|
|
196
|
-
unset: string[];
|
|
197
|
-
} | undefined;
|
|
198
|
-
} | {
|
|
199
|
-
op: "edge.update";
|
|
200
|
-
edge: {
|
|
201
|
-
source: string;
|
|
202
|
-
target: string;
|
|
203
|
-
class: string;
|
|
204
|
-
};
|
|
205
|
-
props: {
|
|
206
|
-
set: Record<string, unknown>;
|
|
207
|
-
unset: string[];
|
|
208
|
-
};
|
|
209
|
-
} | {
|
|
210
|
-
op: "edge.delete";
|
|
211
|
-
edge: {
|
|
212
|
-
source: string;
|
|
213
|
-
target: string;
|
|
214
|
-
class: string;
|
|
215
|
-
};
|
|
216
|
-
})[];
|
|
217
|
-
} | undefined;
|
|
218
|
-
identities: ({
|
|
219
|
-
identity: {
|
|
220
|
-
created: string;
|
|
221
|
-
};
|
|
222
|
-
authentication?: {
|
|
223
|
-
iss: string;
|
|
224
|
-
sub: string;
|
|
225
|
-
} | {
|
|
226
|
-
credentials: {
|
|
227
|
-
publicKey: unknown;
|
|
228
|
-
proof: string;
|
|
229
|
-
};
|
|
230
|
-
} | undefined;
|
|
231
|
-
requiredClaims?: ({
|
|
232
|
-
claim: string;
|
|
233
|
-
op: "contains";
|
|
234
|
-
value: unknown;
|
|
235
|
-
} | {
|
|
236
|
-
claim: string;
|
|
237
|
-
op: "eq";
|
|
238
|
-
value: unknown;
|
|
239
|
-
} | {
|
|
240
|
-
claim: string;
|
|
241
|
-
op: "exists";
|
|
242
|
-
})[] | undefined;
|
|
243
|
-
} | {
|
|
244
|
-
identity: {
|
|
245
|
-
id: string;
|
|
246
|
-
class: string;
|
|
247
|
-
};
|
|
248
|
-
authentication: {
|
|
249
|
-
iss: string;
|
|
250
|
-
sub: string;
|
|
251
|
-
} | {
|
|
252
|
-
credentials: {
|
|
253
|
-
publicKey: unknown;
|
|
254
|
-
proof: string;
|
|
255
|
-
};
|
|
256
|
-
};
|
|
257
|
-
})[];
|
|
258
|
-
}, {
|
|
259
|
-
readonly mode: 'value';
|
|
260
|
-
readonly value: {
|
|
261
|
-
createdNodes: Record<string, string>;
|
|
262
|
-
identities: ({
|
|
263
|
-
id: string;
|
|
264
|
-
} | {
|
|
265
|
-
id: string;
|
|
266
|
-
iss: string;
|
|
267
|
-
sub: string;
|
|
268
|
-
})[];
|
|
269
|
-
};
|
|
270
|
-
}, "authorized", false, "default">>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { func } from '@astrale-os/kernel-dsl/v1';
|
|
2
|
-
import { provisionInput, provisionOutput } from '../contracts/index.js';
|
|
3
|
-
export const Provision = func({
|
|
4
|
-
description: 'Atomically create designated Identities and establish write-once Authentication on created or existing Identities.',
|
|
5
|
-
auth: 'authorized',
|
|
6
|
-
input: provisionInput,
|
|
7
|
-
output: provisionOutput,
|
|
8
|
-
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|