@astrale-domains/shell 0.1.0-beta.13 → 0.1.0-beta.14
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.
|
@@ -42,9 +42,12 @@ export function provisioningRequest(domain, input, role) {
|
|
|
42
42
|
return Object.freeze({
|
|
43
43
|
idempotencyKey: input.operationId,
|
|
44
44
|
mutation,
|
|
45
|
-
identities: Object.freeze(
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
identities: Object.freeze([
|
|
46
|
+
Object.freeze({
|
|
47
|
+
identity: Object.freeze({ created: user }),
|
|
48
|
+
authentication: Object.freeze({ iss: issuer.accept(input.issuer), sub: input.subject }),
|
|
49
|
+
}),
|
|
50
|
+
]),
|
|
48
51
|
});
|
|
49
52
|
}
|
|
50
53
|
export function provisioningResult(result) {
|
|
@@ -9,8 +9,8 @@ import { provisioningRequest, provisioningResult } from './provision.js';
|
|
|
9
9
|
export async function runSetup(context, role) {
|
|
10
10
|
const { client, input, step } = context;
|
|
11
11
|
const identity = Object.freeze({
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
iss: issuer.accept(input.issuer),
|
|
13
|
+
sub: input.subject,
|
|
14
14
|
});
|
|
15
15
|
const existing = await step.run('resolve-identity', () => client.auth.whois(identity));
|
|
16
16
|
if (existing === null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-domains/shell",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.14",
|
|
4
4
|
"description": "Astrale Shell Domain schema and remote product implementation",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"zod": "4.4.3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@astrale-os/sdk": "0.5.0-beta.
|
|
50
|
+
"@astrale-os/sdk": "0.5.0-beta.57",
|
|
51
51
|
"@astrale/typescript-config": "npm:@jsr/astrale__typescript-config@~1.1.3",
|
|
52
52
|
"@types/node": "^22.0.0",
|
|
53
53
|
"typescript": "7.0.2",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"devEngines": {
|
|
60
60
|
"runtime": {
|
|
61
61
|
"name": "node",
|
|
62
|
-
"version": ">=
|
|
62
|
+
"version": ">=22",
|
|
63
63
|
"onFail": "error"
|
|
64
64
|
}
|
|
65
65
|
},
|