@inventarch/service-contracts 0.0.0-stage → 1.1.0
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/LANGUAGE.md +56 -0
- package/LICENSE +202 -0
- package/NOTICE +4 -0
- package/README.md +2 -2
- package/SPEC.md +19 -0
- package/dist/index.d.ts +454 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +245 -0
- package/dist/index.js.map +1 -0
- package/dist/installation.d.ts +484 -0
- package/dist/installation.d.ts.map +1 -0
- package/dist/installation.js +97 -0
- package/dist/installation.js.map +1 -0
- package/dist/marketplace.d.ts +312 -0
- package/dist/marketplace.d.ts.map +1 -0
- package/dist/marketplace.js +118 -0
- package/dist/marketplace.js.map +1 -0
- package/dist/session-lifecycle.d.ts +126 -0
- package/dist/session-lifecycle.d.ts.map +1 -0
- package/dist/session-lifecycle.js +51 -0
- package/dist/session-lifecycle.js.map +1 -0
- package/dist/source-apply.d.ts +384 -0
- package/dist/source-apply.d.ts.map +1 -0
- package/dist/source-apply.js +134 -0
- package/dist/source-apply.js.map +1 -0
- package/dist/sources.d.ts +179 -0
- package/dist/sources.d.ts.map +1 -0
- package/dist/sources.js +126 -0
- package/dist/sources.js.map +1 -0
- package/dist/tenancy.d.ts +265 -0
- package/dist/tenancy.d.ts.map +1 -0
- package/dist/tenancy.js +156 -0
- package/dist/tenancy.js.map +1 -0
- package/package.json +95 -3
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export { z } from 'zod';
|
|
3
|
+
export declare const SOURCE_LIMITS: Readonly<{
|
|
4
|
+
files: 100;
|
|
5
|
+
sourceBytes: number;
|
|
6
|
+
revisionBytes: number;
|
|
7
|
+
retainedRevisions: 100;
|
|
8
|
+
ownedBytes: number;
|
|
9
|
+
objects: 10000;
|
|
10
|
+
commands: 10000;
|
|
11
|
+
pins: 1000;
|
|
12
|
+
historyPage: 100;
|
|
13
|
+
requestBytes: number;
|
|
14
|
+
orphanAgeMs: number;
|
|
15
|
+
}>;
|
|
16
|
+
export type SourceLimits = {
|
|
17
|
+
[K in keyof typeof SOURCE_LIMITS]: number;
|
|
18
|
+
};
|
|
19
|
+
export declare function isOwnedSourcePath(path: string): boolean;
|
|
20
|
+
export declare const sourceEntry: z.ZodObject<{
|
|
21
|
+
path: z.ZodString;
|
|
22
|
+
digest: z.ZodString;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
export type SourceEntry = z.infer<typeof sourceEntry>;
|
|
25
|
+
export declare const sourceManifest: z.ZodArray<z.ZodObject<{
|
|
26
|
+
path: z.ZodString;
|
|
27
|
+
digest: z.ZodString;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
export declare const sourceUploadRequest: z.ZodObject<{
|
|
30
|
+
digest: z.ZodString;
|
|
31
|
+
text: z.ZodString;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
export declare const sourceReference: z.ZodObject<{
|
|
34
|
+
workspaceId: z.ZodString;
|
|
35
|
+
revisionId: z.ZodString;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
export type SourceReference = z.infer<typeof sourceReference>;
|
|
38
|
+
export declare const sourceCommitRequest: z.ZodObject<{
|
|
39
|
+
commandId: z.ZodString;
|
|
40
|
+
workspaceId: z.ZodString;
|
|
41
|
+
expectedGeneration: z.ZodNumber;
|
|
42
|
+
expectedHead: z.ZodNullable<z.ZodString>;
|
|
43
|
+
files: z.ZodArray<z.ZodObject<{
|
|
44
|
+
path: z.ZodString;
|
|
45
|
+
digest: z.ZodString;
|
|
46
|
+
}, z.core.$strict>>;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
export declare const sourceActivateRequest: z.ZodObject<{
|
|
49
|
+
commandId: z.ZodString;
|
|
50
|
+
workspaceId: z.ZodString;
|
|
51
|
+
expectedGeneration: z.ZodNumber;
|
|
52
|
+
revisionId: z.ZodString;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
export declare const sourceRemoveRequest: z.ZodObject<{
|
|
55
|
+
commandId: z.ZodString;
|
|
56
|
+
workspaceId: z.ZodString;
|
|
57
|
+
expectedGeneration: z.ZodNumber;
|
|
58
|
+
revisionId: z.ZodString;
|
|
59
|
+
}, z.core.$strict>;
|
|
60
|
+
export declare const sourceAdmission: z.ZodObject<{
|
|
61
|
+
ok: z.ZodBoolean;
|
|
62
|
+
revision: z.ZodString;
|
|
63
|
+
refused: z.ZodNumber;
|
|
64
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
65
|
+
code: z.ZodString;
|
|
66
|
+
path: z.ZodString;
|
|
67
|
+
line: z.ZodNumber;
|
|
68
|
+
}, z.core.$strict>>;
|
|
69
|
+
unavailableChecks: z.ZodArray<z.ZodString>;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
export type SourceAdmission = z.infer<typeof sourceAdmission>;
|
|
72
|
+
export declare const sourceReceipt: z.ZodObject<{
|
|
73
|
+
workspaceId: z.ZodString;
|
|
74
|
+
generation: z.ZodNumber;
|
|
75
|
+
draftHead: z.ZodNullable<z.ZodString>;
|
|
76
|
+
activeHead: z.ZodNullable<z.ZodString>;
|
|
77
|
+
revisionId: z.ZodOptional<z.ZodString>;
|
|
78
|
+
admission: z.ZodOptional<z.ZodObject<{
|
|
79
|
+
ok: z.ZodBoolean;
|
|
80
|
+
revision: z.ZodString;
|
|
81
|
+
refused: z.ZodNumber;
|
|
82
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
83
|
+
code: z.ZodString;
|
|
84
|
+
path: z.ZodString;
|
|
85
|
+
line: z.ZodNumber;
|
|
86
|
+
}, z.core.$strict>>;
|
|
87
|
+
unavailableChecks: z.ZodArray<z.ZodString>;
|
|
88
|
+
}, z.core.$strict>>;
|
|
89
|
+
removed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
|
+
}, z.core.$strict>;
|
|
91
|
+
export type SourceReceipt = z.infer<typeof sourceReceipt>;
|
|
92
|
+
export declare const workspaceSourceStart: z.ZodObject<{
|
|
93
|
+
id: z.ZodString;
|
|
94
|
+
commandId: z.ZodString;
|
|
95
|
+
captureId: z.ZodString;
|
|
96
|
+
task: z.ZodString;
|
|
97
|
+
entry: z.ZodOptional<z.ZodEnum<{
|
|
98
|
+
author: "author";
|
|
99
|
+
architect: "architect";
|
|
100
|
+
"system-architect": "system-architect";
|
|
101
|
+
}>>;
|
|
102
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
workspaceId: z.ZodString;
|
|
104
|
+
revisionId: z.ZodString;
|
|
105
|
+
}, z.core.$strict>>;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
export declare const sourceHistoryRequest: z.ZodObject<{
|
|
108
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$strict>;
|
|
110
|
+
export declare const sourceHistory: z.ZodObject<{
|
|
111
|
+
workspaceId: z.ZodString;
|
|
112
|
+
generation: z.ZodNumber;
|
|
113
|
+
draftHead: z.ZodNullable<z.ZodString>;
|
|
114
|
+
activeHead: z.ZodNullable<z.ZodString>;
|
|
115
|
+
revisionId: z.ZodOptional<z.ZodString>;
|
|
116
|
+
admission: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
ok: z.ZodBoolean;
|
|
118
|
+
revision: z.ZodString;
|
|
119
|
+
refused: z.ZodNumber;
|
|
120
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
121
|
+
code: z.ZodString;
|
|
122
|
+
path: z.ZodString;
|
|
123
|
+
line: z.ZodNumber;
|
|
124
|
+
}, z.core.$strict>>;
|
|
125
|
+
unavailableChecks: z.ZodArray<z.ZodString>;
|
|
126
|
+
}, z.core.$strict>>;
|
|
127
|
+
removed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
128
|
+
revisions: z.ZodArray<z.ZodObject<{
|
|
129
|
+
id: z.ZodString;
|
|
130
|
+
parent: z.ZodNullable<z.ZodString>;
|
|
131
|
+
actor: z.ZodString;
|
|
132
|
+
created: z.ZodString;
|
|
133
|
+
admitted: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
134
|
+
lost: z.ZodNullable<z.ZodString>;
|
|
135
|
+
}, z.core.$strict>>;
|
|
136
|
+
next: z.ZodNullable<z.ZodString>;
|
|
137
|
+
}, z.core.$strict>;
|
|
138
|
+
export declare const sourceRevision: z.ZodObject<{
|
|
139
|
+
parent: z.ZodNullable<z.ZodString>;
|
|
140
|
+
actor: z.ZodString;
|
|
141
|
+
created: z.ZodString;
|
|
142
|
+
admitted: z.ZodBoolean;
|
|
143
|
+
admission: z.ZodObject<{
|
|
144
|
+
ok: z.ZodBoolean;
|
|
145
|
+
revision: z.ZodString;
|
|
146
|
+
refused: z.ZodNumber;
|
|
147
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
148
|
+
code: z.ZodString;
|
|
149
|
+
path: z.ZodString;
|
|
150
|
+
line: z.ZodNumber;
|
|
151
|
+
}, z.core.$strict>>;
|
|
152
|
+
unavailableChecks: z.ZodArray<z.ZodString>;
|
|
153
|
+
}, z.core.$strict>;
|
|
154
|
+
files: z.ZodArray<z.ZodObject<{
|
|
155
|
+
path: z.ZodString;
|
|
156
|
+
digest: z.ZodString;
|
|
157
|
+
bytes: z.ZodNumber;
|
|
158
|
+
}, z.core.$strict>>;
|
|
159
|
+
workspaceId: z.ZodString;
|
|
160
|
+
revisionId: z.ZodString;
|
|
161
|
+
}, z.core.$strict>;
|
|
162
|
+
export declare const sourceFileRequest: z.ZodObject<{
|
|
163
|
+
path: z.ZodString;
|
|
164
|
+
offset: z.ZodNumber;
|
|
165
|
+
limit: z.ZodNumber;
|
|
166
|
+
workspaceId: z.ZodString;
|
|
167
|
+
revisionId: z.ZodString;
|
|
168
|
+
}, z.core.$strict>;
|
|
169
|
+
export declare const sourceFile: z.ZodObject<{
|
|
170
|
+
path: z.ZodString;
|
|
171
|
+
digest: z.ZodString;
|
|
172
|
+
bytes: z.ZodNumber;
|
|
173
|
+
offset: z.ZodNumber;
|
|
174
|
+
data: z.ZodString;
|
|
175
|
+
next: z.ZodNullable<z.ZodNumber>;
|
|
176
|
+
workspaceId: z.ZodString;
|
|
177
|
+
revisionId: z.ZodString;
|
|
178
|
+
}, z.core.$strict>;
|
|
179
|
+
//# sourceMappingURL=sources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../src/sources.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa;;;;;;;;;;;;EAYxB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG;KAAG,CAAC,IAAI,MAAM,OAAO,aAAa,GAAG,MAAM;CAAE,CAAC;AACzE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAmBvD;AACD,eAAO,MAAM,WAAW;;;kBAGtB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACtD,eAAO,MAAM,cAAc;;;mBAMxB,CAAC;AACJ,eAAO,MAAM,mBAAmB;;;kBAA8E,CAAC;AAC/G,eAAO,MAAM,eAAe;;;kBAA0D,CAAC;AACvF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,mBAAmB;;;;;;;;;kBAM9B,CAAC;AACH,eAAO,MAAM,qBAAqB;;;;;kBAKhC,CAAC;AACH,eAAO,MAAM,mBAAmB;;;;;kBAAwB,CAAC;AACzD,eAAO,MAAM,eAAe;;;;;;;;;;kBAM1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;kBAQxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;kBAAoE,CAAC;AACtG,eAAO,MAAM,oBAAoB;;kBAAgD,CAAC;AAClF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAcxB,CAAC;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;kBAgBzB,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;kBAS5B,CAAC;AACH,eAAO,MAAM,UAAU;;;;;;;;;kBAWrB,CAAC"}
|
package/dist/sources.js
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// Browser-safe source workspace shapes; byte integrity and native admission are server-owned.
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { digest, id, nativeStartRequest } from './index.js';
|
|
4
|
+
export { z } from 'zod';
|
|
5
|
+
export const SOURCE_LIMITS = Object.freeze({
|
|
6
|
+
files: 100,
|
|
7
|
+
sourceBytes: 256 * 1024,
|
|
8
|
+
revisionBytes: 512 * 1024,
|
|
9
|
+
retainedRevisions: 100,
|
|
10
|
+
ownedBytes: 128 * 1024 * 1024,
|
|
11
|
+
objects: 10_000,
|
|
12
|
+
commands: 10_000,
|
|
13
|
+
pins: 1000,
|
|
14
|
+
historyPage: 100,
|
|
15
|
+
requestBytes: 768 * 1024,
|
|
16
|
+
orphanAgeMs: 24 * 60 * 60 * 1000,
|
|
17
|
+
});
|
|
18
|
+
export function isOwnedSourcePath(path) {
|
|
19
|
+
return (path.length <= 500 &&
|
|
20
|
+
path.startsWith('.ia/src/') &&
|
|
21
|
+
!path.toLowerCase().startsWith('.ia/src/floor/') &&
|
|
22
|
+
path.endsWith('.ia') &&
|
|
23
|
+
path === path.normalize('NFC') &&
|
|
24
|
+
!/[\\\u0000-\u001f\u007f<>:"|?*]/.test(path) &&
|
|
25
|
+
!path
|
|
26
|
+
.split('/')
|
|
27
|
+
.some((part) => !part ||
|
|
28
|
+
part === '.' ||
|
|
29
|
+
part === '..' ||
|
|
30
|
+
/[. ]$/.test(part) ||
|
|
31
|
+
/^(con|prn|aux|nul|com[0-9¹²³]|lpt[0-9¹²³])(?:\.|$)/i.test(part)));
|
|
32
|
+
}
|
|
33
|
+
export const sourceEntry = z.strictObject({
|
|
34
|
+
path: z.string().refine(isOwnedSourcePath, 'Expected a portable owned .ia/src source path'),
|
|
35
|
+
digest,
|
|
36
|
+
});
|
|
37
|
+
export const sourceManifest = z
|
|
38
|
+
.array(sourceEntry)
|
|
39
|
+
.max(SOURCE_LIMITS.files)
|
|
40
|
+
.refine((entries) => new Set(entries.map((entry) => entry.path.toLowerCase())).size === entries.length, 'Source paths collide across supported hosts');
|
|
41
|
+
export const sourceUploadRequest = z.strictObject({ digest, text: z.string().max(SOURCE_LIMITS.sourceBytes) });
|
|
42
|
+
export const sourceReference = z.strictObject({ workspaceId: id, revisionId: digest });
|
|
43
|
+
const generation = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
44
|
+
export const sourceCommitRequest = z.strictObject({
|
|
45
|
+
commandId: id,
|
|
46
|
+
workspaceId: id,
|
|
47
|
+
expectedGeneration: generation,
|
|
48
|
+
expectedHead: digest.nullable(),
|
|
49
|
+
files: sourceManifest,
|
|
50
|
+
});
|
|
51
|
+
export const sourceActivateRequest = z.strictObject({
|
|
52
|
+
commandId: id,
|
|
53
|
+
workspaceId: id,
|
|
54
|
+
expectedGeneration: generation,
|
|
55
|
+
revisionId: digest,
|
|
56
|
+
});
|
|
57
|
+
export const sourceRemoveRequest = sourceActivateRequest;
|
|
58
|
+
export const sourceAdmission = z.strictObject({
|
|
59
|
+
ok: z.boolean(),
|
|
60
|
+
revision: digest,
|
|
61
|
+
refused: generation,
|
|
62
|
+
diagnostics: z.array(z.strictObject({ code: z.string(), path: z.string(), line: generation })),
|
|
63
|
+
unavailableChecks: z.array(z.string()),
|
|
64
|
+
});
|
|
65
|
+
export const sourceReceipt = z.strictObject({
|
|
66
|
+
workspaceId: id,
|
|
67
|
+
generation,
|
|
68
|
+
draftHead: digest.nullable(),
|
|
69
|
+
activeHead: digest.nullable(),
|
|
70
|
+
revisionId: digest.optional(),
|
|
71
|
+
admission: sourceAdmission.optional(),
|
|
72
|
+
removed: z.array(digest).optional(),
|
|
73
|
+
});
|
|
74
|
+
export const workspaceSourceStart = nativeStartRequest.extend({ source: sourceReference.optional() });
|
|
75
|
+
export const sourceHistoryRequest = z.strictObject({ cursor: digest.optional() });
|
|
76
|
+
export const sourceHistory = sourceReceipt.extend({
|
|
77
|
+
revisions: z
|
|
78
|
+
.array(z.strictObject({
|
|
79
|
+
id: digest,
|
|
80
|
+
parent: digest.nullable(),
|
|
81
|
+
actor: z.string().min(1).max(512),
|
|
82
|
+
created: z.string().datetime(),
|
|
83
|
+
admitted: z.union([z.literal(0), z.literal(1)]),
|
|
84
|
+
lost: z.string().datetime().nullable(),
|
|
85
|
+
}))
|
|
86
|
+
.max(SOURCE_LIMITS.historyPage),
|
|
87
|
+
next: digest.nullable(),
|
|
88
|
+
});
|
|
89
|
+
export const sourceRevision = z.strictObject({
|
|
90
|
+
...sourceReference.shape,
|
|
91
|
+
parent: digest.nullable(),
|
|
92
|
+
actor: z.string().min(1).max(512),
|
|
93
|
+
created: z.string().datetime(),
|
|
94
|
+
admitted: z.boolean(),
|
|
95
|
+
admission: sourceAdmission,
|
|
96
|
+
files: z
|
|
97
|
+
.array(z.strictObject({
|
|
98
|
+
path: sourceEntry.shape.path,
|
|
99
|
+
digest,
|
|
100
|
+
bytes: z.number().int().nonnegative().max(SOURCE_LIMITS.sourceBytes),
|
|
101
|
+
}))
|
|
102
|
+
.max(SOURCE_LIMITS.files),
|
|
103
|
+
});
|
|
104
|
+
export const sourceFileRequest = z.strictObject({
|
|
105
|
+
...sourceReference.shape,
|
|
106
|
+
path: sourceEntry.shape.path,
|
|
107
|
+
offset: z.number().int().nonnegative().max(SOURCE_LIMITS.sourceBytes),
|
|
108
|
+
limit: z
|
|
109
|
+
.number()
|
|
110
|
+
.int()
|
|
111
|
+
.positive()
|
|
112
|
+
.max(32 * 1024),
|
|
113
|
+
});
|
|
114
|
+
export const sourceFile = z.strictObject({
|
|
115
|
+
...sourceReference.shape,
|
|
116
|
+
path: sourceEntry.shape.path,
|
|
117
|
+
digest,
|
|
118
|
+
bytes: z.number().int().nonnegative().max(SOURCE_LIMITS.sourceBytes),
|
|
119
|
+
offset: z.number().int().nonnegative().max(SOURCE_LIMITS.sourceBytes),
|
|
120
|
+
data: z
|
|
121
|
+
.string()
|
|
122
|
+
.max(44 * 1024)
|
|
123
|
+
.regex(/^[A-Za-z0-9+/]*={0,2}$/),
|
|
124
|
+
next: z.number().int().nonnegative().max(SOURCE_LIMITS.sourceBytes).nullable(),
|
|
125
|
+
});
|
|
126
|
+
//# sourceMappingURL=sources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../src/sources.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,GAAG;IACV,WAAW,EAAE,GAAG,GAAG,IAAI;IACvB,aAAa,EAAE,GAAG,GAAG,IAAI;IACzB,iBAAiB,EAAE,GAAG;IACtB,UAAU,EAAE,GAAG,GAAG,IAAI,GAAG,IAAI;IAC7B,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,IAAI;IACV,WAAW,EAAE,GAAG;IAChB,YAAY,EAAE,GAAG,GAAG,IAA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CAClB,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,YAAY,CAAC;IACvC,GAAG,eAAe,CAAC,KAAK;IACxB,IAAI,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI;IAC5B,MAAM;IACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,WAAW,CAAC;IACpE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,WAAW,CAAC;IACrE,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC;SACd,KAAK,CAAC,wBAAwB,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;CAC/E,CAAC,CAAC"}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { z } from './index.js';
|
|
2
|
+
export { z } from './index.js';
|
|
3
|
+
export declare const directorySubject: z.ZodString;
|
|
4
|
+
export declare const directoryTitle: z.ZodString;
|
|
5
|
+
export declare const directoryRevision: z.ZodNumber;
|
|
6
|
+
export declare const directoryRole: z.ZodEnum<{
|
|
7
|
+
owner: "owner";
|
|
8
|
+
admin: "admin";
|
|
9
|
+
editor: "editor";
|
|
10
|
+
viewer: "viewer";
|
|
11
|
+
}>;
|
|
12
|
+
export declare const directoryAction: z.ZodEnum<{
|
|
13
|
+
read: "read";
|
|
14
|
+
write: "write";
|
|
15
|
+
admin: "admin";
|
|
16
|
+
execute: "execute";
|
|
17
|
+
purge: "purge";
|
|
18
|
+
}>;
|
|
19
|
+
export type DirectoryRole = z.infer<typeof directoryRole>;
|
|
20
|
+
export type DirectoryAction = z.infer<typeof directoryAction>;
|
|
21
|
+
export declare const createOrganizationRequest: z.ZodObject<{
|
|
22
|
+
expectedRevision: z.ZodLiteral<0>;
|
|
23
|
+
title: z.ZodString;
|
|
24
|
+
commandId: z.ZodString;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
export declare const renameOrganizationRequest: z.ZodObject<{
|
|
27
|
+
organizationId: z.ZodString;
|
|
28
|
+
title: z.ZodString;
|
|
29
|
+
commandId: z.ZodString;
|
|
30
|
+
expectedRevision: z.ZodNumber;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export declare const createDepartmentRequest: z.ZodObject<{
|
|
33
|
+
organizationId: z.ZodString;
|
|
34
|
+
title: z.ZodString;
|
|
35
|
+
commandId: z.ZodString;
|
|
36
|
+
expectedRevision: z.ZodNumber;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
export declare const renameDepartmentRequest: z.ZodObject<{
|
|
39
|
+
organizationId: z.ZodString;
|
|
40
|
+
departmentId: z.ZodString;
|
|
41
|
+
title: z.ZodString;
|
|
42
|
+
commandId: z.ZodString;
|
|
43
|
+
expectedRevision: z.ZodNumber;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
export declare const createWorkspaceRequest: z.ZodObject<{
|
|
46
|
+
organizationId: z.ZodString;
|
|
47
|
+
departmentId: z.ZodNullable<z.ZodString>;
|
|
48
|
+
title: z.ZodString;
|
|
49
|
+
commandId: z.ZodString;
|
|
50
|
+
expectedRevision: z.ZodNumber;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
export declare const membershipRequest: z.ZodObject<{
|
|
53
|
+
organizationId: z.ZodString;
|
|
54
|
+
departmentId: z.ZodNullable<z.ZodString>;
|
|
55
|
+
memberId: z.ZodString;
|
|
56
|
+
role: z.ZodNullable<z.ZodEnum<{
|
|
57
|
+
owner: "owner";
|
|
58
|
+
admin: "admin";
|
|
59
|
+
editor: "editor";
|
|
60
|
+
viewer: "viewer";
|
|
61
|
+
}>>;
|
|
62
|
+
commandId: z.ZodString;
|
|
63
|
+
expectedRevision: z.ZodNumber;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
export declare const updateWorkspaceRequest: z.ZodObject<{
|
|
66
|
+
workspaceId: z.ZodString;
|
|
67
|
+
title: z.ZodOptional<z.ZodString>;
|
|
68
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
commandId: z.ZodString;
|
|
70
|
+
expectedRevision: z.ZodNumber;
|
|
71
|
+
}, z.core.$strict>;
|
|
72
|
+
export declare const organizationView: z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
title: z.ZodString;
|
|
75
|
+
role: z.ZodEnum<{
|
|
76
|
+
owner: "owner";
|
|
77
|
+
admin: "admin";
|
|
78
|
+
editor: "editor";
|
|
79
|
+
viewer: "viewer";
|
|
80
|
+
department: "department";
|
|
81
|
+
}>;
|
|
82
|
+
commandRevision: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
}, z.core.$strict>;
|
|
84
|
+
export declare const departmentView: z.ZodObject<{
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
organizationId: z.ZodString;
|
|
87
|
+
title: z.ZodString;
|
|
88
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
89
|
+
read: "read";
|
|
90
|
+
write: "write";
|
|
91
|
+
admin: "admin";
|
|
92
|
+
execute: "execute";
|
|
93
|
+
purge: "purge";
|
|
94
|
+
}>>;
|
|
95
|
+
commandRevision: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
}, z.core.$strict>;
|
|
97
|
+
export declare const workspaceView: z.ZodObject<{
|
|
98
|
+
id: z.ZodString;
|
|
99
|
+
kind: z.ZodEnum<{
|
|
100
|
+
personal: "personal";
|
|
101
|
+
organization: "organization";
|
|
102
|
+
}>;
|
|
103
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
104
|
+
departmentId: z.ZodNullable<z.ZodString>;
|
|
105
|
+
title: z.ZodString;
|
|
106
|
+
archived: z.ZodBoolean;
|
|
107
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
108
|
+
read: "read";
|
|
109
|
+
write: "write";
|
|
110
|
+
admin: "admin";
|
|
111
|
+
execute: "execute";
|
|
112
|
+
purge: "purge";
|
|
113
|
+
}>>;
|
|
114
|
+
commandRevision: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
created: z.ZodISODateTime;
|
|
116
|
+
}, z.core.$strict>;
|
|
117
|
+
export declare const membershipView: z.ZodObject<{
|
|
118
|
+
organizationId: z.ZodString;
|
|
119
|
+
departmentId: z.ZodNullable<z.ZodString>;
|
|
120
|
+
memberId: z.ZodString;
|
|
121
|
+
role: z.ZodEnum<{
|
|
122
|
+
owner: "owner";
|
|
123
|
+
admin: "admin";
|
|
124
|
+
editor: "editor";
|
|
125
|
+
viewer: "viewer";
|
|
126
|
+
}>;
|
|
127
|
+
}, z.core.$strict>;
|
|
128
|
+
export declare const directoryCommandAction: z.ZodEnum<{
|
|
129
|
+
"organization.create": "organization.create";
|
|
130
|
+
"organization.rename": "organization.rename";
|
|
131
|
+
"department.create": "department.create";
|
|
132
|
+
"department.rename": "department.rename";
|
|
133
|
+
"workspace.create": "workspace.create";
|
|
134
|
+
"workspace.update": "workspace.update";
|
|
135
|
+
"membership.set": "membership.set";
|
|
136
|
+
}>;
|
|
137
|
+
export declare const directoryReceipt: z.ZodObject<{
|
|
138
|
+
commandId: z.ZodString;
|
|
139
|
+
action: z.ZodEnum<{
|
|
140
|
+
"organization.create": "organization.create";
|
|
141
|
+
"organization.rename": "organization.rename";
|
|
142
|
+
"department.create": "department.create";
|
|
143
|
+
"department.rename": "department.rename";
|
|
144
|
+
"workspace.create": "workspace.create";
|
|
145
|
+
"workspace.update": "workspace.update";
|
|
146
|
+
"membership.set": "membership.set";
|
|
147
|
+
}>;
|
|
148
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
149
|
+
departmentId: z.ZodNullable<z.ZodString>;
|
|
150
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
151
|
+
memberId: z.ZodNullable<z.ZodString>;
|
|
152
|
+
revision: z.ZodNumber;
|
|
153
|
+
created: z.ZodISODateTime;
|
|
154
|
+
}, z.core.$strict>;
|
|
155
|
+
export type OrganizationView = z.infer<typeof organizationView>;
|
|
156
|
+
export type DepartmentView = z.infer<typeof departmentView>;
|
|
157
|
+
export type WorkspaceView = z.infer<typeof workspaceView>;
|
|
158
|
+
export type MembershipView = z.infer<typeof membershipView>;
|
|
159
|
+
export type DirectoryReceipt = z.infer<typeof directoryReceipt>;
|
|
160
|
+
export interface DirectoryPage<T> {
|
|
161
|
+
items: T[];
|
|
162
|
+
next: string | null;
|
|
163
|
+
}
|
|
164
|
+
/** Host cursors bind these internal positions to actor, filter and operation. */
|
|
165
|
+
export declare const directoryPagePosition: z.ZodObject<{
|
|
166
|
+
after: z.ZodOptional<z.ZodString>;
|
|
167
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
}, z.core.$strict>;
|
|
169
|
+
/** Browser pages carry host-signed cursors; database key positions remain internal. */
|
|
170
|
+
export declare const directoryPageRequest: z.ZodObject<{
|
|
171
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
172
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
}, z.core.$strict>;
|
|
174
|
+
export declare const organizationRequest: z.ZodObject<{
|
|
175
|
+
organizationId: z.ZodString;
|
|
176
|
+
}, z.core.$strict>;
|
|
177
|
+
export declare const departmentListRequest: z.ZodObject<{
|
|
178
|
+
organizationId: z.ZodString;
|
|
179
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
180
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
181
|
+
}, z.core.$strict>;
|
|
182
|
+
export declare const workspaceListRequest: z.ZodObject<{
|
|
183
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
184
|
+
departmentId: z.ZodOptional<z.ZodString>;
|
|
185
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
186
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
}, z.core.$strict>;
|
|
188
|
+
export declare const workspaceRequest: z.ZodObject<{
|
|
189
|
+
workspaceId: z.ZodString;
|
|
190
|
+
}, z.core.$strict>;
|
|
191
|
+
export declare const membershipListRequest: z.ZodObject<{
|
|
192
|
+
organizationId: z.ZodString;
|
|
193
|
+
departmentId: z.ZodNullable<z.ZodString>;
|
|
194
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
195
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
196
|
+
}, z.core.$strict>;
|
|
197
|
+
export declare const organizationPage: z.ZodObject<{
|
|
198
|
+
items: z.ZodArray<z.ZodObject<{
|
|
199
|
+
id: z.ZodString;
|
|
200
|
+
title: z.ZodString;
|
|
201
|
+
role: z.ZodEnum<{
|
|
202
|
+
owner: "owner";
|
|
203
|
+
admin: "admin";
|
|
204
|
+
editor: "editor";
|
|
205
|
+
viewer: "viewer";
|
|
206
|
+
department: "department";
|
|
207
|
+
}>;
|
|
208
|
+
commandRevision: z.ZodOptional<z.ZodNumber>;
|
|
209
|
+
}, z.core.$strict>>;
|
|
210
|
+
next: z.ZodNullable<z.ZodString>;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
export declare const departmentPage: z.ZodObject<{
|
|
213
|
+
items: z.ZodArray<z.ZodObject<{
|
|
214
|
+
id: z.ZodString;
|
|
215
|
+
organizationId: z.ZodString;
|
|
216
|
+
title: z.ZodString;
|
|
217
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
218
|
+
read: "read";
|
|
219
|
+
write: "write";
|
|
220
|
+
admin: "admin";
|
|
221
|
+
execute: "execute";
|
|
222
|
+
purge: "purge";
|
|
223
|
+
}>>;
|
|
224
|
+
commandRevision: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
}, z.core.$strict>>;
|
|
226
|
+
next: z.ZodNullable<z.ZodString>;
|
|
227
|
+
}, z.core.$strict>;
|
|
228
|
+
export declare const workspacePage: z.ZodObject<{
|
|
229
|
+
items: z.ZodArray<z.ZodObject<{
|
|
230
|
+
id: z.ZodString;
|
|
231
|
+
kind: z.ZodEnum<{
|
|
232
|
+
personal: "personal";
|
|
233
|
+
organization: "organization";
|
|
234
|
+
}>;
|
|
235
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
236
|
+
departmentId: z.ZodNullable<z.ZodString>;
|
|
237
|
+
title: z.ZodString;
|
|
238
|
+
archived: z.ZodBoolean;
|
|
239
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
240
|
+
read: "read";
|
|
241
|
+
write: "write";
|
|
242
|
+
admin: "admin";
|
|
243
|
+
execute: "execute";
|
|
244
|
+
purge: "purge";
|
|
245
|
+
}>>;
|
|
246
|
+
commandRevision: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
created: z.ZodISODateTime;
|
|
248
|
+
}, z.core.$strict>>;
|
|
249
|
+
next: z.ZodNullable<z.ZodString>;
|
|
250
|
+
}, z.core.$strict>;
|
|
251
|
+
export declare const membershipPage: z.ZodObject<{
|
|
252
|
+
items: z.ZodArray<z.ZodObject<{
|
|
253
|
+
organizationId: z.ZodString;
|
|
254
|
+
departmentId: z.ZodNullable<z.ZodString>;
|
|
255
|
+
memberId: z.ZodString;
|
|
256
|
+
role: z.ZodEnum<{
|
|
257
|
+
owner: "owner";
|
|
258
|
+
admin: "admin";
|
|
259
|
+
editor: "editor";
|
|
260
|
+
viewer: "viewer";
|
|
261
|
+
}>;
|
|
262
|
+
}, z.core.$strict>>;
|
|
263
|
+
next: z.ZodNullable<z.ZodString>;
|
|
264
|
+
}, z.core.$strict>;
|
|
265
|
+
//# sourceMappingURL=tenancy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenancy.d.ts","sourceRoot":"","sources":["../src/tenancy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,CAAC,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE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