@treeseed/sdk 0.13.0-rc.107 → 0.13.0-rc.108
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/.treeseed-build-complete.json +1 -1
- package/dist/content/validation/content-model-schemas.d.ts +10 -10
- package/dist/content/validation/portable-content-data.d.ts +2 -2
- package/dist/deployment/ai/storage.d.ts +10 -10
- package/dist/deployment/hosted-topology.d.ts +23 -23
- package/dist/deployment/schemas.d.ts +14 -14
- package/dist/development/schemas.d.ts +5 -5
- package/dist/identity/index.d.ts +1 -0
- package/dist/identity/index.js +1 -0
- package/dist/identity/runtime.d.ts +166 -0
- package/dist/identity/runtime.js +47 -0
- package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +3 -3
- package/dist/operator-contracts/control-plane-operations.d.ts +3 -3
- package/dist/platform/contracts.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"completedAt":"2026-09-
|
|
1
|
+
{"completedAt":"2026-09-09T13:13:26.195Z"}
|
|
@@ -2127,8 +2127,8 @@ declare const schemas: {
|
|
|
2127
2127
|
}, "strip", z.ZodTypeAny, {
|
|
2128
2128
|
status: "review" | "archived" | "draft" | "published";
|
|
2129
2129
|
id: string;
|
|
2130
|
-
slug: string;
|
|
2131
2130
|
schemaVersion: "treeseed.book/v2";
|
|
2131
|
+
slug: string;
|
|
2132
2132
|
visibility: "project" | "team" | "public" | "admin" | "authenticated";
|
|
2133
2133
|
order: number;
|
|
2134
2134
|
summary: string;
|
|
@@ -2140,8 +2140,8 @@ declare const schemas: {
|
|
|
2140
2140
|
}, {
|
|
2141
2141
|
status: "review" | "archived" | "draft" | "published";
|
|
2142
2142
|
id: string;
|
|
2143
|
-
slug: string;
|
|
2144
2143
|
schemaVersion: "treeseed.book/v2";
|
|
2144
|
+
slug: string;
|
|
2145
2145
|
visibility: "project" | "team" | "public" | "admin" | "authenticated";
|
|
2146
2146
|
order: number;
|
|
2147
2147
|
summary: string;
|
|
@@ -2166,8 +2166,8 @@ declare const schemas: {
|
|
|
2166
2166
|
}, "strip", z.ZodTypeAny, {
|
|
2167
2167
|
status: "review" | "archived" | "draft" | "published";
|
|
2168
2168
|
id: string;
|
|
2169
|
-
slug: string;
|
|
2170
2169
|
schemaVersion: "treeseed.knowledge-page/v1";
|
|
2170
|
+
slug: string;
|
|
2171
2171
|
visibility: "project" | "team" | "public" | "admin" | "authenticated";
|
|
2172
2172
|
summary: string;
|
|
2173
2173
|
title: string;
|
|
@@ -2178,8 +2178,8 @@ declare const schemas: {
|
|
|
2178
2178
|
}, {
|
|
2179
2179
|
status: "review" | "archived" | "draft" | "published";
|
|
2180
2180
|
id: string;
|
|
2181
|
-
slug: string;
|
|
2182
2181
|
schemaVersion: "treeseed.knowledge-page/v1";
|
|
2182
|
+
slug: string;
|
|
2183
2183
|
visibility: "project" | "team" | "public" | "admin" | "authenticated";
|
|
2184
2184
|
summary: string;
|
|
2185
2185
|
title: string;
|
|
@@ -11920,8 +11920,8 @@ export declare function validateContentFrontmatter(model: PortableContentModel,
|
|
|
11920
11920
|
} | {
|
|
11921
11921
|
status: "review" | "archived" | "draft" | "published";
|
|
11922
11922
|
id: string;
|
|
11923
|
-
slug: string;
|
|
11924
11923
|
schemaVersion: "treeseed.book/v2";
|
|
11924
|
+
slug: string;
|
|
11925
11925
|
visibility: "project" | "team" | "public" | "admin" | "authenticated";
|
|
11926
11926
|
order: number;
|
|
11927
11927
|
summary: string;
|
|
@@ -11933,8 +11933,8 @@ export declare function validateContentFrontmatter(model: PortableContentModel,
|
|
|
11933
11933
|
} | {
|
|
11934
11934
|
status: "review" | "archived" | "draft" | "published";
|
|
11935
11935
|
id: string;
|
|
11936
|
-
slug: string;
|
|
11937
11936
|
schemaVersion: "treeseed.knowledge-page/v1";
|
|
11937
|
+
slug: string;
|
|
11938
11938
|
visibility: "project" | "team" | "public" | "admin" | "authenticated";
|
|
11939
11939
|
summary: string;
|
|
11940
11940
|
title: string;
|
|
@@ -21666,8 +21666,8 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
21666
21666
|
}, "strip", z.ZodTypeAny, {
|
|
21667
21667
|
status: "review" | "archived" | "draft" | "published";
|
|
21668
21668
|
id: string;
|
|
21669
|
-
slug: string;
|
|
21670
21669
|
schemaVersion: "treeseed.book/v2";
|
|
21670
|
+
slug: string;
|
|
21671
21671
|
visibility: "project" | "team" | "public" | "admin" | "authenticated";
|
|
21672
21672
|
order: number;
|
|
21673
21673
|
summary: string;
|
|
@@ -21679,8 +21679,8 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
21679
21679
|
}, {
|
|
21680
21680
|
status: "review" | "archived" | "draft" | "published";
|
|
21681
21681
|
id: string;
|
|
21682
|
-
slug: string;
|
|
21683
21682
|
schemaVersion: "treeseed.book/v2";
|
|
21683
|
+
slug: string;
|
|
21684
21684
|
visibility: "project" | "team" | "public" | "admin" | "authenticated";
|
|
21685
21685
|
order: number;
|
|
21686
21686
|
summary: string;
|
|
@@ -21704,8 +21704,8 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
21704
21704
|
}, "strip", z.ZodTypeAny, {
|
|
21705
21705
|
status: "review" | "archived" | "draft" | "published";
|
|
21706
21706
|
id: string;
|
|
21707
|
-
slug: string;
|
|
21708
21707
|
schemaVersion: "treeseed.knowledge-page/v1";
|
|
21708
|
+
slug: string;
|
|
21709
21709
|
visibility: "project" | "team" | "public" | "admin" | "authenticated";
|
|
21710
21710
|
summary: string;
|
|
21711
21711
|
title: string;
|
|
@@ -21716,8 +21716,8 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
21716
21716
|
}, {
|
|
21717
21717
|
status: "review" | "archived" | "draft" | "published";
|
|
21718
21718
|
id: string;
|
|
21719
|
-
slug: string;
|
|
21720
21719
|
schemaVersion: "treeseed.knowledge-page/v1";
|
|
21720
|
+
slug: string;
|
|
21721
21721
|
visibility: "project" | "team" | "public" | "admin" | "authenticated";
|
|
21722
21722
|
summary: string;
|
|
21723
21723
|
title: string;
|
|
@@ -2006,8 +2006,8 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
2006
2006
|
} | {
|
|
2007
2007
|
status: "review" | "archived" | "draft" | "published";
|
|
2008
2008
|
id: string;
|
|
2009
|
-
slug: string;
|
|
2010
2009
|
schemaVersion: "treeseed.book/v2";
|
|
2010
|
+
slug: string;
|
|
2011
2011
|
visibility: "project" | "team" | "public" | "admin" | "authenticated";
|
|
2012
2012
|
order: number;
|
|
2013
2013
|
summary: string;
|
|
@@ -2019,8 +2019,8 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
2019
2019
|
} | {
|
|
2020
2020
|
status: "review" | "archived" | "draft" | "published";
|
|
2021
2021
|
id: string;
|
|
2022
|
-
slug: string;
|
|
2023
2022
|
schemaVersion: "treeseed.knowledge-page/v1";
|
|
2023
|
+
slug: string;
|
|
2024
2024
|
visibility: "project" | "team" | "public" | "admin" | "authenticated";
|
|
2025
2025
|
summary: string;
|
|
2026
2026
|
title: string;
|
|
@@ -24,8 +24,8 @@ export declare const aiStorageProofSchema: z.ZodEffects<z.ZodObject<{
|
|
|
24
24
|
}, "strict", z.ZodTypeAny, {
|
|
25
25
|
service: "inference" | "training" | "lab";
|
|
26
26
|
nonce: string;
|
|
27
|
-
key: string;
|
|
28
27
|
schemaVersion: "treeseed.ai-storage-proof/v1";
|
|
28
|
+
key: string;
|
|
29
29
|
action: "read" | "write" | "list" | "delete";
|
|
30
30
|
projectId: string;
|
|
31
31
|
teamId: string;
|
|
@@ -35,8 +35,8 @@ export declare const aiStorageProofSchema: z.ZodEffects<z.ZodObject<{
|
|
|
35
35
|
}, {
|
|
36
36
|
service: "inference" | "training" | "lab";
|
|
37
37
|
nonce: string;
|
|
38
|
-
key: string;
|
|
39
38
|
schemaVersion: "treeseed.ai-storage-proof/v1";
|
|
39
|
+
key: string;
|
|
40
40
|
action: "read" | "write" | "list" | "delete";
|
|
41
41
|
projectId: string;
|
|
42
42
|
teamId: string;
|
|
@@ -46,8 +46,8 @@ export declare const aiStorageProofSchema: z.ZodEffects<z.ZodObject<{
|
|
|
46
46
|
}>, {
|
|
47
47
|
service: "inference" | "training" | "lab";
|
|
48
48
|
nonce: string;
|
|
49
|
-
key: string;
|
|
50
49
|
schemaVersion: "treeseed.ai-storage-proof/v1";
|
|
50
|
+
key: string;
|
|
51
51
|
action: "read" | "write" | "list" | "delete";
|
|
52
52
|
projectId: string;
|
|
53
53
|
teamId: string;
|
|
@@ -57,8 +57,8 @@ export declare const aiStorageProofSchema: z.ZodEffects<z.ZodObject<{
|
|
|
57
57
|
}, {
|
|
58
58
|
service: "inference" | "training" | "lab";
|
|
59
59
|
nonce: string;
|
|
60
|
-
key: string;
|
|
61
60
|
schemaVersion: "treeseed.ai-storage-proof/v1";
|
|
61
|
+
key: string;
|
|
62
62
|
action: "read" | "write" | "list" | "delete";
|
|
63
63
|
projectId: string;
|
|
64
64
|
teamId: string;
|
|
@@ -82,8 +82,8 @@ export declare const aiStorageRequestSchema: z.ZodObject<{
|
|
|
82
82
|
}, "strict", z.ZodTypeAny, {
|
|
83
83
|
service: "inference" | "training" | "lab";
|
|
84
84
|
nonce: string;
|
|
85
|
-
key: string;
|
|
86
85
|
schemaVersion: "treeseed.ai-storage-proof/v1";
|
|
86
|
+
key: string;
|
|
87
87
|
action: "read" | "write" | "list" | "delete";
|
|
88
88
|
projectId: string;
|
|
89
89
|
teamId: string;
|
|
@@ -93,8 +93,8 @@ export declare const aiStorageRequestSchema: z.ZodObject<{
|
|
|
93
93
|
}, {
|
|
94
94
|
service: "inference" | "training" | "lab";
|
|
95
95
|
nonce: string;
|
|
96
|
-
key: string;
|
|
97
96
|
schemaVersion: "treeseed.ai-storage-proof/v1";
|
|
97
|
+
key: string;
|
|
98
98
|
action: "read" | "write" | "list" | "delete";
|
|
99
99
|
projectId: string;
|
|
100
100
|
teamId: string;
|
|
@@ -104,8 +104,8 @@ export declare const aiStorageRequestSchema: z.ZodObject<{
|
|
|
104
104
|
}>, {
|
|
105
105
|
service: "inference" | "training" | "lab";
|
|
106
106
|
nonce: string;
|
|
107
|
-
key: string;
|
|
108
107
|
schemaVersion: "treeseed.ai-storage-proof/v1";
|
|
108
|
+
key: string;
|
|
109
109
|
action: "read" | "write" | "list" | "delete";
|
|
110
110
|
projectId: string;
|
|
111
111
|
teamId: string;
|
|
@@ -115,8 +115,8 @@ export declare const aiStorageRequestSchema: z.ZodObject<{
|
|
|
115
115
|
}, {
|
|
116
116
|
service: "inference" | "training" | "lab";
|
|
117
117
|
nonce: string;
|
|
118
|
-
key: string;
|
|
119
118
|
schemaVersion: "treeseed.ai-storage-proof/v1";
|
|
119
|
+
key: string;
|
|
120
120
|
action: "read" | "write" | "list" | "delete";
|
|
121
121
|
projectId: string;
|
|
122
122
|
teamId: string;
|
|
@@ -129,8 +129,8 @@ export declare const aiStorageRequestSchema: z.ZodObject<{
|
|
|
129
129
|
proof: {
|
|
130
130
|
service: "inference" | "training" | "lab";
|
|
131
131
|
nonce: string;
|
|
132
|
-
key: string;
|
|
133
132
|
schemaVersion: "treeseed.ai-storage-proof/v1";
|
|
133
|
+
key: string;
|
|
134
134
|
action: "read" | "write" | "list" | "delete";
|
|
135
135
|
projectId: string;
|
|
136
136
|
teamId: string;
|
|
@@ -143,8 +143,8 @@ export declare const aiStorageRequestSchema: z.ZodObject<{
|
|
|
143
143
|
proof: {
|
|
144
144
|
service: "inference" | "training" | "lab";
|
|
145
145
|
nonce: string;
|
|
146
|
-
key: string;
|
|
147
146
|
schemaVersion: "treeseed.ai-storage-proof/v1";
|
|
147
|
+
key: string;
|
|
148
148
|
action: "read" | "write" | "list" | "delete";
|
|
149
149
|
projectId: string;
|
|
150
150
|
teamId: string;
|
|
@@ -21,8 +21,8 @@ declare const hostedStateBackendCoreSchema: z.ZodObject<{
|
|
|
21
21
|
encryptionKeyRef: z.ZodString;
|
|
22
22
|
}, "strict", z.ZodTypeAny, {
|
|
23
23
|
type: "s3";
|
|
24
|
-
key: string;
|
|
25
24
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
25
|
+
key: string;
|
|
26
26
|
teamId: string;
|
|
27
27
|
environment: "production" | "staging";
|
|
28
28
|
deploymentId: string;
|
|
@@ -35,8 +35,8 @@ declare const hostedStateBackendCoreSchema: z.ZodObject<{
|
|
|
35
35
|
usePathStyle?: boolean | undefined;
|
|
36
36
|
}, {
|
|
37
37
|
type: "s3";
|
|
38
|
-
key: string;
|
|
39
38
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
39
|
+
key: string;
|
|
40
40
|
teamId: string;
|
|
41
41
|
environment: "production" | "staging";
|
|
42
42
|
deploymentId: string;
|
|
@@ -66,8 +66,8 @@ export declare const hostedStateBackendSchema: z.ZodEffects<z.ZodObject<{
|
|
|
66
66
|
bindingDigest: z.ZodString;
|
|
67
67
|
}, "strict", z.ZodTypeAny, {
|
|
68
68
|
type: "s3";
|
|
69
|
-
key: string;
|
|
70
69
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
70
|
+
key: string;
|
|
71
71
|
teamId: string;
|
|
72
72
|
environment: "production" | "staging";
|
|
73
73
|
deploymentId: string;
|
|
@@ -81,8 +81,8 @@ export declare const hostedStateBackendSchema: z.ZodEffects<z.ZodObject<{
|
|
|
81
81
|
usePathStyle?: boolean | undefined;
|
|
82
82
|
}, {
|
|
83
83
|
type: "s3";
|
|
84
|
-
key: string;
|
|
85
84
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
85
|
+
key: string;
|
|
86
86
|
teamId: string;
|
|
87
87
|
environment: "production" | "staging";
|
|
88
88
|
deploymentId: string;
|
|
@@ -96,8 +96,8 @@ export declare const hostedStateBackendSchema: z.ZodEffects<z.ZodObject<{
|
|
|
96
96
|
usePathStyle?: boolean | undefined;
|
|
97
97
|
}>, {
|
|
98
98
|
type: "s3";
|
|
99
|
-
key: string;
|
|
100
99
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
100
|
+
key: string;
|
|
101
101
|
teamId: string;
|
|
102
102
|
environment: "production" | "staging";
|
|
103
103
|
deploymentId: string;
|
|
@@ -111,8 +111,8 @@ export declare const hostedStateBackendSchema: z.ZodEffects<z.ZodObject<{
|
|
|
111
111
|
usePathStyle?: boolean | undefined;
|
|
112
112
|
}, {
|
|
113
113
|
type: "s3";
|
|
114
|
-
key: string;
|
|
115
114
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
115
|
+
key: string;
|
|
116
116
|
teamId: string;
|
|
117
117
|
environment: "production" | "staging";
|
|
118
118
|
deploymentId: string;
|
|
@@ -127,8 +127,8 @@ export declare const hostedStateBackendSchema: z.ZodEffects<z.ZodObject<{
|
|
|
127
127
|
}>;
|
|
128
128
|
export declare function bindHostedStateBackend(input: z.input<typeof hostedStateBackendCoreSchema>): {
|
|
129
129
|
type: "s3";
|
|
130
|
-
key: string;
|
|
131
130
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
131
|
+
key: string;
|
|
132
132
|
teamId: string;
|
|
133
133
|
environment: "production" | "staging";
|
|
134
134
|
deploymentId: string;
|
|
@@ -781,8 +781,8 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
|
|
|
781
781
|
bindingDigest: z.ZodString;
|
|
782
782
|
}, "strict", z.ZodTypeAny, {
|
|
783
783
|
type: "s3";
|
|
784
|
-
key: string;
|
|
785
784
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
785
|
+
key: string;
|
|
786
786
|
teamId: string;
|
|
787
787
|
environment: "production" | "staging";
|
|
788
788
|
deploymentId: string;
|
|
@@ -796,8 +796,8 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
|
|
|
796
796
|
usePathStyle?: boolean | undefined;
|
|
797
797
|
}, {
|
|
798
798
|
type: "s3";
|
|
799
|
-
key: string;
|
|
800
799
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
800
|
+
key: string;
|
|
801
801
|
teamId: string;
|
|
802
802
|
environment: "production" | "staging";
|
|
803
803
|
deploymentId: string;
|
|
@@ -811,8 +811,8 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
|
|
|
811
811
|
usePathStyle?: boolean | undefined;
|
|
812
812
|
}>, {
|
|
813
813
|
type: "s3";
|
|
814
|
-
key: string;
|
|
815
814
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
815
|
+
key: string;
|
|
816
816
|
teamId: string;
|
|
817
817
|
environment: "production" | "staging";
|
|
818
818
|
deploymentId: string;
|
|
@@ -826,8 +826,8 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
|
|
|
826
826
|
usePathStyle?: boolean | undefined;
|
|
827
827
|
}, {
|
|
828
828
|
type: "s3";
|
|
829
|
-
key: string;
|
|
830
829
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
830
|
+
key: string;
|
|
831
831
|
teamId: string;
|
|
832
832
|
environment: "production" | "staging";
|
|
833
833
|
deploymentId: string;
|
|
@@ -1159,8 +1159,8 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1159
1159
|
stackId: string;
|
|
1160
1160
|
stateBackend: {
|
|
1161
1161
|
type: "s3";
|
|
1162
|
-
key: string;
|
|
1163
1162
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
1163
|
+
key: string;
|
|
1164
1164
|
teamId: string;
|
|
1165
1165
|
environment: "production" | "staging";
|
|
1166
1166
|
deploymentId: string;
|
|
@@ -1244,8 +1244,8 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1244
1244
|
stackId: string;
|
|
1245
1245
|
stateBackend: {
|
|
1246
1246
|
type: "s3";
|
|
1247
|
-
key: string;
|
|
1248
1247
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
1248
|
+
key: string;
|
|
1249
1249
|
teamId: string;
|
|
1250
1250
|
environment: "production" | "staging";
|
|
1251
1251
|
deploymentId: string;
|
|
@@ -1329,8 +1329,8 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1329
1329
|
stackId: string;
|
|
1330
1330
|
stateBackend: {
|
|
1331
1331
|
type: "s3";
|
|
1332
|
-
key: string;
|
|
1333
1332
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
1333
|
+
key: string;
|
|
1334
1334
|
teamId: string;
|
|
1335
1335
|
environment: "production" | "staging";
|
|
1336
1336
|
deploymentId: string;
|
|
@@ -1414,8 +1414,8 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1414
1414
|
stackId: string;
|
|
1415
1415
|
stateBackend: {
|
|
1416
1416
|
type: "s3";
|
|
1417
|
-
key: string;
|
|
1418
1417
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
1418
|
+
key: string;
|
|
1419
1419
|
teamId: string;
|
|
1420
1420
|
environment: "production" | "staging";
|
|
1421
1421
|
deploymentId: string;
|
|
@@ -1467,8 +1467,8 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
|
|
|
1467
1467
|
bindingDigest: z.ZodString;
|
|
1468
1468
|
}, "strict", z.ZodTypeAny, {
|
|
1469
1469
|
type: "s3";
|
|
1470
|
-
key: string;
|
|
1471
1470
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
1471
|
+
key: string;
|
|
1472
1472
|
teamId: string;
|
|
1473
1473
|
environment: "production" | "staging";
|
|
1474
1474
|
deploymentId: string;
|
|
@@ -1482,8 +1482,8 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
|
|
|
1482
1482
|
usePathStyle?: boolean | undefined;
|
|
1483
1483
|
}, {
|
|
1484
1484
|
type: "s3";
|
|
1485
|
-
key: string;
|
|
1486
1485
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
1486
|
+
key: string;
|
|
1487
1487
|
teamId: string;
|
|
1488
1488
|
environment: "production" | "staging";
|
|
1489
1489
|
deploymentId: string;
|
|
@@ -1497,8 +1497,8 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
|
|
|
1497
1497
|
usePathStyle?: boolean | undefined;
|
|
1498
1498
|
}>, {
|
|
1499
1499
|
type: "s3";
|
|
1500
|
-
key: string;
|
|
1501
1500
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
1501
|
+
key: string;
|
|
1502
1502
|
teamId: string;
|
|
1503
1503
|
environment: "production" | "staging";
|
|
1504
1504
|
deploymentId: string;
|
|
@@ -1512,8 +1512,8 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
|
|
|
1512
1512
|
usePathStyle?: boolean | undefined;
|
|
1513
1513
|
}, {
|
|
1514
1514
|
type: "s3";
|
|
1515
|
-
key: string;
|
|
1516
1515
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
1516
|
+
key: string;
|
|
1517
1517
|
teamId: string;
|
|
1518
1518
|
environment: "production" | "staging";
|
|
1519
1519
|
deploymentId: string;
|
|
@@ -1844,8 +1844,8 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
|
|
|
1844
1844
|
stackId: string;
|
|
1845
1845
|
stateBackend: {
|
|
1846
1846
|
type: "s3";
|
|
1847
|
-
key: string;
|
|
1848
1847
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
1848
|
+
key: string;
|
|
1849
1849
|
teamId: string;
|
|
1850
1850
|
environment: "production" | "staging";
|
|
1851
1851
|
deploymentId: string;
|
|
@@ -1929,8 +1929,8 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
|
|
|
1929
1929
|
stackId: string;
|
|
1930
1930
|
stateBackend: {
|
|
1931
1931
|
type: "s3";
|
|
1932
|
-
key: string;
|
|
1933
1932
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
1933
|
+
key: string;
|
|
1934
1934
|
teamId: string;
|
|
1935
1935
|
environment: "production" | "staging";
|
|
1936
1936
|
deploymentId: string;
|
|
@@ -2014,8 +2014,8 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
|
|
|
2014
2014
|
stackId: string;
|
|
2015
2015
|
stateBackend: {
|
|
2016
2016
|
type: "s3";
|
|
2017
|
-
key: string;
|
|
2018
2017
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
2018
|
+
key: string;
|
|
2019
2019
|
teamId: string;
|
|
2020
2020
|
environment: "production" | "staging";
|
|
2021
2021
|
deploymentId: string;
|
|
@@ -2099,8 +2099,8 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
|
|
|
2099
2099
|
stackId: string;
|
|
2100
2100
|
stateBackend: {
|
|
2101
2101
|
type: "s3";
|
|
2102
|
-
key: string;
|
|
2103
2102
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
2103
|
+
key: string;
|
|
2104
2104
|
teamId: string;
|
|
2105
2105
|
environment: "production" | "staging";
|
|
2106
2106
|
deploymentId: string;
|
|
@@ -5121,8 +5121,8 @@ export declare const hostInitializationProfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5121
5121
|
}>, "many">>;
|
|
5122
5122
|
}, "strict", z.ZodTypeAny, {
|
|
5123
5123
|
id: string;
|
|
5124
|
-
role: string;
|
|
5125
5124
|
schemaVersion: "treeseed.host-initialization-profile/v1";
|
|
5125
|
+
role: string;
|
|
5126
5126
|
runtime: {
|
|
5127
5127
|
environment: "development" | "production" | "track-default";
|
|
5128
5128
|
management: "managed";
|
|
@@ -5139,8 +5139,8 @@ export declare const hostInitializationProfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5139
5139
|
};
|
|
5140
5140
|
}, {
|
|
5141
5141
|
id: string;
|
|
5142
|
-
role: string;
|
|
5143
5142
|
schemaVersion: "treeseed.host-initialization-profile/v1";
|
|
5143
|
+
role: string;
|
|
5144
5144
|
runtime: {
|
|
5145
5145
|
environment: "development" | "production" | "track-default";
|
|
5146
5146
|
management: "managed";
|
|
@@ -5157,8 +5157,8 @@ export declare const hostInitializationProfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5157
5157
|
}[] | undefined;
|
|
5158
5158
|
}>, {
|
|
5159
5159
|
id: string;
|
|
5160
|
-
role: string;
|
|
5161
5160
|
schemaVersion: "treeseed.host-initialization-profile/v1";
|
|
5161
|
+
role: string;
|
|
5162
5162
|
runtime: {
|
|
5163
5163
|
environment: "development" | "production" | "track-default";
|
|
5164
5164
|
management: "managed";
|
|
@@ -5175,8 +5175,8 @@ export declare const hostInitializationProfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5175
5175
|
};
|
|
5176
5176
|
}, {
|
|
5177
5177
|
id: string;
|
|
5178
|
-
role: string;
|
|
5179
5178
|
schemaVersion: "treeseed.host-initialization-profile/v1";
|
|
5179
|
+
role: string;
|
|
5180
5180
|
runtime: {
|
|
5181
5181
|
environment: "development" | "production" | "track-default";
|
|
5182
5182
|
management: "managed";
|
|
@@ -7221,8 +7221,8 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7221
7221
|
}>, "many">>;
|
|
7222
7222
|
}, "strict", z.ZodTypeAny, {
|
|
7223
7223
|
id: string;
|
|
7224
|
-
role: string;
|
|
7225
7224
|
schemaVersion: "treeseed.host-initialization-profile/v1";
|
|
7225
|
+
role: string;
|
|
7226
7226
|
runtime: {
|
|
7227
7227
|
environment: "development" | "production" | "track-default";
|
|
7228
7228
|
management: "managed";
|
|
@@ -7239,8 +7239,8 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7239
7239
|
};
|
|
7240
7240
|
}, {
|
|
7241
7241
|
id: string;
|
|
7242
|
-
role: string;
|
|
7243
7242
|
schemaVersion: "treeseed.host-initialization-profile/v1";
|
|
7243
|
+
role: string;
|
|
7244
7244
|
runtime: {
|
|
7245
7245
|
environment: "development" | "production" | "track-default";
|
|
7246
7246
|
management: "managed";
|
|
@@ -7257,8 +7257,8 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7257
7257
|
}[] | undefined;
|
|
7258
7258
|
}>, {
|
|
7259
7259
|
id: string;
|
|
7260
|
-
role: string;
|
|
7261
7260
|
schemaVersion: "treeseed.host-initialization-profile/v1";
|
|
7261
|
+
role: string;
|
|
7262
7262
|
runtime: {
|
|
7263
7263
|
environment: "development" | "production" | "track-default";
|
|
7264
7264
|
management: "managed";
|
|
@@ -7275,8 +7275,8 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7275
7275
|
};
|
|
7276
7276
|
}, {
|
|
7277
7277
|
id: string;
|
|
7278
|
-
role: string;
|
|
7279
7278
|
schemaVersion: "treeseed.host-initialization-profile/v1";
|
|
7279
|
+
role: string;
|
|
7280
7280
|
runtime: {
|
|
7281
7281
|
environment: "development" | "production" | "track-default";
|
|
7282
7282
|
management: "managed";
|
|
@@ -7457,8 +7457,8 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7457
7457
|
} | null;
|
|
7458
7458
|
hostProfiles: {
|
|
7459
7459
|
id: string;
|
|
7460
|
-
role: string;
|
|
7461
7460
|
schemaVersion: "treeseed.host-initialization-profile/v1";
|
|
7461
|
+
role: string;
|
|
7462
7462
|
runtime: {
|
|
7463
7463
|
environment: "development" | "production" | "track-default";
|
|
7464
7464
|
management: "managed";
|
|
@@ -7638,8 +7638,8 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7638
7638
|
} | null;
|
|
7639
7639
|
hostProfiles?: {
|
|
7640
7640
|
id: string;
|
|
7641
|
-
role: string;
|
|
7642
7641
|
schemaVersion: "treeseed.host-initialization-profile/v1";
|
|
7642
|
+
role: string;
|
|
7643
7643
|
runtime: {
|
|
7644
7644
|
environment: "development" | "production" | "track-default";
|
|
7645
7645
|
management: "managed";
|
|
@@ -7819,8 +7819,8 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7819
7819
|
} | null;
|
|
7820
7820
|
hostProfiles: {
|
|
7821
7821
|
id: string;
|
|
7822
|
-
role: string;
|
|
7823
7822
|
schemaVersion: "treeseed.host-initialization-profile/v1";
|
|
7823
|
+
role: string;
|
|
7824
7824
|
runtime: {
|
|
7825
7825
|
environment: "development" | "production" | "track-default";
|
|
7826
7826
|
management: "managed";
|
|
@@ -8000,8 +8000,8 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8000
8000
|
} | null;
|
|
8001
8001
|
hostProfiles?: {
|
|
8002
8002
|
id: string;
|
|
8003
|
-
role: string;
|
|
8004
8003
|
schemaVersion: "treeseed.host-initialization-profile/v1";
|
|
8004
|
+
role: string;
|
|
8005
8005
|
runtime: {
|
|
8006
8006
|
environment: "development" | "production" | "track-default";
|
|
8007
8007
|
management: "managed";
|
|
@@ -8322,8 +8322,8 @@ export declare const hostReceiptSchema: z.ZodObject<{
|
|
|
8322
8322
|
completedAt: z.ZodString;
|
|
8323
8323
|
}, "strict", z.ZodTypeAny, {
|
|
8324
8324
|
state: "degraded" | "rolled-back" | "known-good";
|
|
8325
|
-
role: string;
|
|
8326
8325
|
schemaVersion: "treeseed.host-receipt/v1";
|
|
8326
|
+
role: string;
|
|
8327
8327
|
packages: {
|
|
8328
8328
|
version: string;
|
|
8329
8329
|
name: string;
|
|
@@ -8352,8 +8352,8 @@ export declare const hostReceiptSchema: z.ZodObject<{
|
|
|
8352
8352
|
}[];
|
|
8353
8353
|
}, {
|
|
8354
8354
|
state: "degraded" | "rolled-back" | "known-good";
|
|
8355
|
-
role: string;
|
|
8356
8355
|
schemaVersion: "treeseed.host-receipt/v1";
|
|
8356
|
+
role: string;
|
|
8357
8357
|
packages: {
|
|
8358
8358
|
version: string;
|
|
8359
8359
|
name: string;
|
|
@@ -2141,11 +2141,11 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodEffects<z.ZodOb
|
|
|
2141
2141
|
} | undefined;
|
|
2142
2142
|
}>, "many">;
|
|
2143
2143
|
}, "strict", z.ZodTypeAny, {
|
|
2144
|
+
schemaVersion: "treeseed.development-runtime/v2";
|
|
2144
2145
|
project: {
|
|
2145
2146
|
id: string;
|
|
2146
2147
|
repository: string;
|
|
2147
2148
|
};
|
|
2148
|
-
schemaVersion: "treeseed.development-runtime/v2";
|
|
2149
2149
|
targets: {
|
|
2150
2150
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
2151
2151
|
id: string;
|
|
@@ -2289,11 +2289,11 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodEffects<z.ZodOb
|
|
|
2289
2289
|
restoreOnFailure: boolean;
|
|
2290
2290
|
};
|
|
2291
2291
|
}, {
|
|
2292
|
+
schemaVersion: "treeseed.development-runtime/v2";
|
|
2292
2293
|
project: {
|
|
2293
2294
|
id: string;
|
|
2294
2295
|
repository: string;
|
|
2295
2296
|
};
|
|
2296
|
-
schemaVersion: "treeseed.development-runtime/v2";
|
|
2297
2297
|
targets: {
|
|
2298
2298
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
2299
2299
|
id: string;
|
|
@@ -2437,11 +2437,11 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodEffects<z.ZodOb
|
|
|
2437
2437
|
restoreOnFailure?: boolean | undefined;
|
|
2438
2438
|
};
|
|
2439
2439
|
}>, {
|
|
2440
|
+
schemaVersion: "treeseed.development-runtime/v2";
|
|
2440
2441
|
project: {
|
|
2441
2442
|
id: string;
|
|
2442
2443
|
repository: string;
|
|
2443
2444
|
};
|
|
2444
|
-
schemaVersion: "treeseed.development-runtime/v2";
|
|
2445
2445
|
targets: {
|
|
2446
2446
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
2447
2447
|
id: string;
|
|
@@ -2585,11 +2585,11 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodEffects<z.ZodOb
|
|
|
2585
2585
|
restoreOnFailure: boolean;
|
|
2586
2586
|
};
|
|
2587
2587
|
}, {
|
|
2588
|
+
schemaVersion: "treeseed.development-runtime/v2";
|
|
2588
2589
|
project: {
|
|
2589
2590
|
id: string;
|
|
2590
2591
|
repository: string;
|
|
2591
2592
|
};
|
|
2592
|
-
schemaVersion: "treeseed.development-runtime/v2";
|
|
2593
2593
|
targets: {
|
|
2594
2594
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
2595
2595
|
id: string;
|
|
@@ -2733,11 +2733,11 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodEffects<z.ZodOb
|
|
|
2733
2733
|
restoreOnFailure?: boolean | undefined;
|
|
2734
2734
|
};
|
|
2735
2735
|
}>, {
|
|
2736
|
+
schemaVersion: "treeseed.development-runtime/v2";
|
|
2736
2737
|
project: {
|
|
2737
2738
|
id: string;
|
|
2738
2739
|
repository: string;
|
|
2739
2740
|
};
|
|
2740
|
-
schemaVersion: "treeseed.development-runtime/v2";
|
|
2741
2741
|
targets: {
|
|
2742
2742
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
2743
2743
|
id: string;
|
package/dist/identity/index.d.ts
CHANGED
package/dist/identity/index.js
CHANGED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Portable API authentication wiring. Deployment resolves protected bootstrap
|
|
3
|
+
* references; these declarations contain neither secret values nor file paths.
|
|
4
|
+
* Application authorization and issuer/subject mappings remain in the API DB.
|
|
5
|
+
*/
|
|
6
|
+
export declare const identityApiRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
7
|
+
schemaVersion: z.ZodLiteral<"treeseed.identity-api-runtime/v1">;
|
|
8
|
+
issuer: z.ZodEffects<z.ZodString, string, string>;
|
|
9
|
+
resource: z.ZodEffects<z.ZodString, string, string>;
|
|
10
|
+
scopes: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>, string[], string[]>;
|
|
11
|
+
sessionKeys: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
active: z.ZodObject<{
|
|
14
|
+
version: z.ZodNumber;
|
|
15
|
+
credentialReference: z.ZodString;
|
|
16
|
+
}, "strict", z.ZodTypeAny, {
|
|
17
|
+
version: number;
|
|
18
|
+
credentialReference: string;
|
|
19
|
+
}, {
|
|
20
|
+
version: number;
|
|
21
|
+
credentialReference: string;
|
|
22
|
+
}>;
|
|
23
|
+
historical: z.ZodArray<z.ZodObject<{
|
|
24
|
+
version: z.ZodNumber;
|
|
25
|
+
credentialReference: z.ZodString;
|
|
26
|
+
}, "strict", z.ZodTypeAny, {
|
|
27
|
+
version: number;
|
|
28
|
+
credentialReference: string;
|
|
29
|
+
}, {
|
|
30
|
+
version: number;
|
|
31
|
+
credentialReference: string;
|
|
32
|
+
}>, "many">;
|
|
33
|
+
}, "strict", z.ZodTypeAny, {
|
|
34
|
+
id: string;
|
|
35
|
+
active: {
|
|
36
|
+
version: number;
|
|
37
|
+
credentialReference: string;
|
|
38
|
+
};
|
|
39
|
+
historical: {
|
|
40
|
+
version: number;
|
|
41
|
+
credentialReference: string;
|
|
42
|
+
}[];
|
|
43
|
+
}, {
|
|
44
|
+
id: string;
|
|
45
|
+
active: {
|
|
46
|
+
version: number;
|
|
47
|
+
credentialReference: string;
|
|
48
|
+
};
|
|
49
|
+
historical: {
|
|
50
|
+
version: number;
|
|
51
|
+
credentialReference: string;
|
|
52
|
+
}[];
|
|
53
|
+
}>;
|
|
54
|
+
applications: z.ZodArray<z.ZodObject<{
|
|
55
|
+
clientId: z.ZodString;
|
|
56
|
+
workloadPrincipalId: z.ZodString;
|
|
57
|
+
redirectUri: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
58
|
+
scopes: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>, string[], string[]>;
|
|
59
|
+
signingKeyReference: z.ZodString;
|
|
60
|
+
}, "strict", z.ZodTypeAny, {
|
|
61
|
+
scopes: string[];
|
|
62
|
+
clientId: string;
|
|
63
|
+
redirectUri: string;
|
|
64
|
+
workloadPrincipalId: string;
|
|
65
|
+
signingKeyReference: string;
|
|
66
|
+
}, {
|
|
67
|
+
scopes: string[];
|
|
68
|
+
clientId: string;
|
|
69
|
+
redirectUri: string;
|
|
70
|
+
workloadPrincipalId: string;
|
|
71
|
+
signingKeyReference: string;
|
|
72
|
+
}>, "many">;
|
|
73
|
+
}, "strict", z.ZodTypeAny, {
|
|
74
|
+
issuer: string;
|
|
75
|
+
resource: string;
|
|
76
|
+
scopes: string[];
|
|
77
|
+
schemaVersion: "treeseed.identity-api-runtime/v1";
|
|
78
|
+
sessionKeys: {
|
|
79
|
+
id: string;
|
|
80
|
+
active: {
|
|
81
|
+
version: number;
|
|
82
|
+
credentialReference: string;
|
|
83
|
+
};
|
|
84
|
+
historical: {
|
|
85
|
+
version: number;
|
|
86
|
+
credentialReference: string;
|
|
87
|
+
}[];
|
|
88
|
+
};
|
|
89
|
+
applications: {
|
|
90
|
+
scopes: string[];
|
|
91
|
+
clientId: string;
|
|
92
|
+
redirectUri: string;
|
|
93
|
+
workloadPrincipalId: string;
|
|
94
|
+
signingKeyReference: string;
|
|
95
|
+
}[];
|
|
96
|
+
}, {
|
|
97
|
+
issuer: string;
|
|
98
|
+
resource: string;
|
|
99
|
+
scopes: string[];
|
|
100
|
+
schemaVersion: "treeseed.identity-api-runtime/v1";
|
|
101
|
+
sessionKeys: {
|
|
102
|
+
id: string;
|
|
103
|
+
active: {
|
|
104
|
+
version: number;
|
|
105
|
+
credentialReference: string;
|
|
106
|
+
};
|
|
107
|
+
historical: {
|
|
108
|
+
version: number;
|
|
109
|
+
credentialReference: string;
|
|
110
|
+
}[];
|
|
111
|
+
};
|
|
112
|
+
applications: {
|
|
113
|
+
scopes: string[];
|
|
114
|
+
clientId: string;
|
|
115
|
+
redirectUri: string;
|
|
116
|
+
workloadPrincipalId: string;
|
|
117
|
+
signingKeyReference: string;
|
|
118
|
+
}[];
|
|
119
|
+
}>, {
|
|
120
|
+
issuer: string;
|
|
121
|
+
resource: string;
|
|
122
|
+
scopes: string[];
|
|
123
|
+
schemaVersion: "treeseed.identity-api-runtime/v1";
|
|
124
|
+
sessionKeys: {
|
|
125
|
+
id: string;
|
|
126
|
+
active: {
|
|
127
|
+
version: number;
|
|
128
|
+
credentialReference: string;
|
|
129
|
+
};
|
|
130
|
+
historical: {
|
|
131
|
+
version: number;
|
|
132
|
+
credentialReference: string;
|
|
133
|
+
}[];
|
|
134
|
+
};
|
|
135
|
+
applications: {
|
|
136
|
+
scopes: string[];
|
|
137
|
+
clientId: string;
|
|
138
|
+
redirectUri: string;
|
|
139
|
+
workloadPrincipalId: string;
|
|
140
|
+
signingKeyReference: string;
|
|
141
|
+
}[];
|
|
142
|
+
}, {
|
|
143
|
+
issuer: string;
|
|
144
|
+
resource: string;
|
|
145
|
+
scopes: string[];
|
|
146
|
+
schemaVersion: "treeseed.identity-api-runtime/v1";
|
|
147
|
+
sessionKeys: {
|
|
148
|
+
id: string;
|
|
149
|
+
active: {
|
|
150
|
+
version: number;
|
|
151
|
+
credentialReference: string;
|
|
152
|
+
};
|
|
153
|
+
historical: {
|
|
154
|
+
version: number;
|
|
155
|
+
credentialReference: string;
|
|
156
|
+
}[];
|
|
157
|
+
};
|
|
158
|
+
applications: {
|
|
159
|
+
scopes: string[];
|
|
160
|
+
clientId: string;
|
|
161
|
+
redirectUri: string;
|
|
162
|
+
workloadPrincipalId: string;
|
|
163
|
+
signingKeyReference: string;
|
|
164
|
+
}[];
|
|
165
|
+
}>;
|
|
166
|
+
export type IdentityApiRuntime = z.infer<typeof identityApiRuntimeSchema>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { identityEndpointSchema, resourceTokenRequestSchema } from "./contracts.js";
|
|
3
|
+
const reference = z.string().regex(/^[a-z][a-z0-9-]{0,62}$/u);
|
|
4
|
+
const clientId = z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._:-]{0,255}$/u);
|
|
5
|
+
const scopes = resourceTokenRequestSchema.shape.scopes.refine((value) => value.length <= 256 && value.every((scope) => scope.length <= 128), "Bounded scope inventory required.");
|
|
6
|
+
const sessionKey = z.object({ version: z.number().int().positive(), credentialReference: reference }).strict();
|
|
7
|
+
const identityApiRuntimeSchema = z.object({
|
|
8
|
+
schemaVersion: z.literal("treeseed.identity-api-runtime/v1"),
|
|
9
|
+
issuer: identityEndpointSchema,
|
|
10
|
+
resource: identityEndpointSchema,
|
|
11
|
+
scopes,
|
|
12
|
+
sessionKeys: z.object({
|
|
13
|
+
id: reference,
|
|
14
|
+
active: sessionKey,
|
|
15
|
+
historical: z.array(sessionKey).max(8)
|
|
16
|
+
}).strict(),
|
|
17
|
+
applications: z.array(z.object({
|
|
18
|
+
clientId,
|
|
19
|
+
workloadPrincipalId: clientId,
|
|
20
|
+
redirectUri: identityEndpointSchema.refine((value) => !value.includes("*"), "Exact callback required."),
|
|
21
|
+
scopes,
|
|
22
|
+
signingKeyReference: reference
|
|
23
|
+
}).strict()).max(128)
|
|
24
|
+
}).strict().superRefine((value, context) => {
|
|
25
|
+
const fail = (message) => context.addIssue({ code: z.ZodIssueCode.custom, message });
|
|
26
|
+
const versions = /* @__PURE__ */ new Set(), references = /* @__PURE__ */ new Set(), identities = /* @__PURE__ */ new Set(), callbacks = /* @__PURE__ */ new Set();
|
|
27
|
+
for (const key of [value.sessionKeys.active, ...value.sessionKeys.historical]) {
|
|
28
|
+
if (versions.has(key.version) || references.has(key.credentialReference)) fail("Session key versions and references must be unique.");
|
|
29
|
+
if (key !== value.sessionKeys.active && key.version >= value.sessionKeys.active.version) fail("Historical session keys must precede the active version.");
|
|
30
|
+
versions.add(key.version);
|
|
31
|
+
references.add(key.credentialReference);
|
|
32
|
+
}
|
|
33
|
+
for (const application of value.applications) {
|
|
34
|
+
for (const id of [application.clientId, application.workloadPrincipalId]) {
|
|
35
|
+
if (identities.has(id)) fail("Application clients and workload principals must be independently registered.");
|
|
36
|
+
identities.add(id);
|
|
37
|
+
}
|
|
38
|
+
if (callbacks.has(application.redirectUri)) fail("Applications must have distinct exact callbacks.");
|
|
39
|
+
callbacks.add(application.redirectUri);
|
|
40
|
+
if (references.has(application.signingKeyReference)) fail("Session encryption and application signing keys must be independent.");
|
|
41
|
+
references.add(application.signingKeyReference);
|
|
42
|
+
if (application.scopes.some((scope) => !value.scopes.includes(scope))) fail("Application scopes must be supported by the selected API resource.");
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
identityApiRuntimeSchema
|
|
47
|
+
};
|
|
@@ -126,8 +126,8 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
|
|
|
126
126
|
stackId: string;
|
|
127
127
|
stateBackend: {
|
|
128
128
|
type: "s3";
|
|
129
|
-
key: string;
|
|
130
129
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
130
|
+
key: string;
|
|
131
131
|
teamId: string;
|
|
132
132
|
environment: "production" | "staging";
|
|
133
133
|
deploymentId: string;
|
|
@@ -286,8 +286,8 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
|
|
|
286
286
|
stackId: string;
|
|
287
287
|
stateBackend: {
|
|
288
288
|
type: "s3";
|
|
289
|
-
key: string;
|
|
290
289
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
290
|
+
key: string;
|
|
291
291
|
teamId: string;
|
|
292
292
|
environment: "production" | "staging";
|
|
293
293
|
deploymentId: string;
|
|
@@ -372,8 +372,8 @@ export declare const HOSTED_TOPOLOGY_OPERATIONS: {
|
|
|
372
372
|
stackId: string;
|
|
373
373
|
stateBackend: {
|
|
374
374
|
type: "s3";
|
|
375
|
-
key: string;
|
|
376
375
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
376
|
+
key: string;
|
|
377
377
|
teamId: string;
|
|
378
378
|
environment: "production" | "staging";
|
|
379
379
|
deploymentId: string;
|
|
@@ -182,8 +182,8 @@ export declare const CONTROL_PLANE_OPERATIONS: {
|
|
|
182
182
|
stackId: string;
|
|
183
183
|
stateBackend: {
|
|
184
184
|
type: "s3";
|
|
185
|
-
key: string;
|
|
186
185
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
186
|
+
key: string;
|
|
187
187
|
teamId: string;
|
|
188
188
|
environment: "production" | "staging";
|
|
189
189
|
deploymentId: string;
|
|
@@ -342,8 +342,8 @@ export declare const CONTROL_PLANE_OPERATIONS: {
|
|
|
342
342
|
stackId: string;
|
|
343
343
|
stateBackend: {
|
|
344
344
|
type: "s3";
|
|
345
|
-
key: string;
|
|
346
345
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
346
|
+
key: string;
|
|
347
347
|
teamId: string;
|
|
348
348
|
environment: "production" | "staging";
|
|
349
349
|
deploymentId: string;
|
|
@@ -428,8 +428,8 @@ export declare const CONTROL_PLANE_OPERATIONS: {
|
|
|
428
428
|
stackId: string;
|
|
429
429
|
stateBackend: {
|
|
430
430
|
type: "s3";
|
|
431
|
-
key: string;
|
|
432
431
|
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
432
|
+
key: string;
|
|
433
433
|
teamId: string;
|
|
434
434
|
environment: "production" | "staging";
|
|
435
435
|
deploymentId: string;
|
|
@@ -164,8 +164,8 @@ export declare const projectCreatePlanSchema: z.ZodObject<{
|
|
|
164
164
|
ok: z.ZodBoolean;
|
|
165
165
|
blockers: z.ZodArray<z.ZodString, "many">;
|
|
166
166
|
}, "strict", z.ZodTypeAny, {
|
|
167
|
-
slug: string;
|
|
168
167
|
schemaVersion: "treeseed.platform-project-create-plan/v1";
|
|
168
|
+
slug: string;
|
|
169
169
|
repository: {
|
|
170
170
|
name: string;
|
|
171
171
|
owner: string;
|
|
@@ -187,8 +187,8 @@ export declare const projectCreatePlanSchema: z.ZodObject<{
|
|
|
187
187
|
}[];
|
|
188
188
|
observationDigest: string;
|
|
189
189
|
}, {
|
|
190
|
-
slug: string;
|
|
191
190
|
schemaVersion: "treeseed.platform-project-create-plan/v1";
|
|
191
|
+
slug: string;
|
|
192
192
|
repository: {
|
|
193
193
|
name: string;
|
|
194
194
|
owner: string;
|
|
@@ -256,8 +256,8 @@ export declare const projectCreateReceiptSchema: z.ZodObject<{
|
|
|
256
256
|
step: "project" | "library" | "repository" | "template" | "inventory";
|
|
257
257
|
}>, "many">;
|
|
258
258
|
}, "strict", z.ZodTypeAny, {
|
|
259
|
-
slug: string;
|
|
260
259
|
schemaVersion: "treeseed.platform-project-create-receipt/v1";
|
|
260
|
+
slug: string;
|
|
261
261
|
repository: {
|
|
262
262
|
name: string;
|
|
263
263
|
owner: string;
|
|
@@ -279,8 +279,8 @@ export declare const projectCreateReceiptSchema: z.ZodObject<{
|
|
|
279
279
|
libraryBindingId: string;
|
|
280
280
|
inventoryVersion: number;
|
|
281
281
|
}, {
|
|
282
|
-
slug: string;
|
|
283
282
|
schemaVersion: "treeseed.platform-project-create-receipt/v1";
|
|
283
|
+
slug: string;
|
|
284
284
|
repository: {
|
|
285
285
|
name: string;
|
|
286
286
|
owner: string;
|