@lobu/runtime-device 24.8.0 → 24.9.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/dist/component.json +1 -1
- package/dist/dependencies.bun.lock +24 -24
- package/npm-shrinkwrap.json +179 -175
- package/package.json +1 -1
- package/vendor/cli/dist/bundled-skills/lobu/SKILL.md +14 -3
- package/vendor/cli/dist/commands/_lib/apply/apply-cmd.js +27 -0
- package/vendor/cli/dist/commands/_lib/apply/client.d.ts +16 -5
- package/vendor/cli/dist/commands/_lib/apply/client.js +31 -9
- package/vendor/cli/dist/commands/_lib/apply/deployment.d.ts +8 -12
- package/vendor/cli/dist/commands/_lib/apply/deployment.js +14 -1
- package/vendor/cli/dist/commands/_lib/apply/desired-state.d.ts +8 -4
- package/vendor/cli/dist/commands/_lib/apply/desired-state.js +2 -1
- package/vendor/cli/dist/commands/_lib/apply/diff.d.ts +26 -7
- package/vendor/cli/dist/commands/_lib/apply/diff.js +101 -30
- package/vendor/cli/dist/commands/_lib/apply/map-config.js +29 -2
- package/vendor/cli/dist/commands/_lib/apply/render.js +2 -0
- package/vendor/cli/dist/commands/_lib/apply/shared.d.ts +20 -0
- package/vendor/cli/dist/commands/_lib/apply/shared.js +22 -0
- package/vendor/cli/dist/commands/_lib/init-from-org/bootstrap.js +14 -0
- package/vendor/cli/dist/commands/memory/_lib/seed-cmd.js +6 -2
- package/vendor/cli/dist/config/define.d.ts +21 -3
- package/vendor/cli/dist/connectors/README.md +6 -2
- package/vendor/cli/dist/connectors/github.ts +16 -3
- package/vendor/cli/dist/connectors/market_quotes.ts +388 -91
- package/vendor/cli/dist/connectors/postgres.ts +21 -14
- package/vendor/cli/dist/connectors/x-dm-adapter.js +55 -21
- package/vendor/cli/dist/connectors/x.ts +1 -1
- package/vendor/cli/dist/runtime-components.json +4 -4
- package/vendor/cli/package.json +1 -1
- package/vendor/connector-sdk/dist/connector-types.d.ts +23 -2
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/connector-worker/dist/daemon/automation.js +7 -4
- package/vendor/connector-worker/dist/executor/isolate.js +3 -0
- package/vendor/connector-worker/package.json +1 -1
- package/vendor/core/dist/classify-error.d.ts +3 -4
- package/vendor/core/dist/classify-error.js +8 -8
- package/vendor/core/dist/contracts/tools/collection-presentation.d.ts +17 -1
- package/vendor/core/dist/contracts/tools/collection-presentation.js +27 -3
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +39 -0
- package/vendor/core/dist/contracts/tools/manage-automations.js +11 -1
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +1 -1
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +249 -7
- package/vendor/core/dist/contracts/tools/manage-views.js +83 -21
- package/vendor/core/dist/contracts/tools/navigation.d.ts +248 -0
- package/vendor/core/dist/contracts/tools/navigation.js +284 -0
- package/vendor/core/dist/contracts/tools/view-attach.d.ts +7 -0
- package/vendor/core/dist/contracts/tools/view-attach.js +15 -0
- package/vendor/core/dist/contracts/tools/view-content-hash.d.ts +4 -1
- package/vendor/core/dist/contracts/tools/view-content-hash.js +4 -2
- package/vendor/core/dist/contracts/tools/view-definition.d.ts +2 -0
- package/vendor/core/dist/contracts/tools/view-definition.js +52 -0
- package/vendor/core/dist/contracts/tools/view-host.d.ts +68 -0
- package/vendor/core/dist/contracts/tools/view-host.js +28 -1
- package/vendor/core/dist/contracts/tools/view-scope.d.ts +31 -0
- package/vendor/core/dist/contracts/tools/view-scope.js +45 -0
- package/vendor/core/dist/errors.d.ts +17 -24
- package/vendor/core/dist/errors.js +17 -24
- package/vendor/core/dist/types.d.ts +0 -6
- package/vendor/core/package.json +11 -1
- package/vendor/views/dist/api.d.ts +30 -5
- package/vendor/views/dist/api.js +22 -8
- package/vendor/views/dist/bridge.d.ts +17 -0
- package/vendor/views/dist/bridge.js +49 -1
- package/vendor/views/dist/components.d.ts +27 -5
- package/vendor/views/dist/components.js +57 -7
- package/vendor/views/dist/embed.d.ts +98 -0
- package/vendor/views/dist/embed.js +418 -0
- package/vendor/views/dist/index.d.ts +3 -1
- package/vendor/views/dist/index.js +1 -0
- package/vendor/views/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Static } from "@sinclair/typebox";
|
|
2
2
|
import type { ActionInput } from "./action-input";
|
|
3
|
-
export
|
|
3
|
+
export { ViewKeySchema, ViewScopeSchema } from "./view-scope";
|
|
4
|
+
export type { ViewScopeInput } from "./view-scope";
|
|
4
5
|
export declare const ViewAttachmentSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
5
6
|
record: import("@sinclair/typebox").TString;
|
|
6
7
|
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
@@ -28,7 +29,11 @@ export declare const ViewParamDeclSchema: import("@sinclair/typebox").TObject<{
|
|
|
28
29
|
}>;
|
|
29
30
|
export type ViewParamDecl = Static<typeof ViewParamDeclSchema>;
|
|
30
31
|
export declare const ViewActionDeclSchema: import("@sinclair/typebox").TObject<{
|
|
31
|
-
emits: import("@sinclair/typebox").TString
|
|
32
|
+
emits: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33
|
+
updates: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
34
|
+
entityType: import("@sinclair/typebox").TString;
|
|
35
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
36
|
+
}>>;
|
|
32
37
|
}>;
|
|
33
38
|
export type ViewActionDecl = Static<typeof ViewActionDeclSchema>;
|
|
34
39
|
export declare const ViewDefinitionSchema: import("@sinclair/typebox").TObject<{
|
|
@@ -60,8 +65,13 @@ export declare const ViewDefinitionSchema: import("@sinclair/typebox").TObject<{
|
|
|
60
65
|
}>>;
|
|
61
66
|
}>>>;
|
|
62
67
|
actions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
63
|
-
emits: import("@sinclair/typebox").TString
|
|
68
|
+
emits: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
69
|
+
updates: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
70
|
+
entityType: import("@sinclair/typebox").TString;
|
|
71
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
72
|
+
}>>;
|
|
64
73
|
}>>>;
|
|
74
|
+
resources: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
65
75
|
}>;
|
|
66
76
|
export type ViewDefinitionDecl = Static<typeof ViewDefinitionSchema>;
|
|
67
77
|
export declare const ViewRowSchema: import("@sinclair/typebox").TObject<{
|
|
@@ -94,8 +104,13 @@ export declare const ViewRowSchema: import("@sinclair/typebox").TObject<{
|
|
|
94
104
|
}>>;
|
|
95
105
|
}>>;
|
|
96
106
|
actions: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
97
|
-
emits: import("@sinclair/typebox").TString
|
|
107
|
+
emits: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
108
|
+
updates: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
109
|
+
entityType: import("@sinclair/typebox").TString;
|
|
110
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
111
|
+
}>>;
|
|
98
112
|
}>>;
|
|
113
|
+
resources: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
99
114
|
last_writer: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
100
115
|
updated_at: import("@sinclair/typebox").TString;
|
|
101
116
|
compiled_bytes: import("@sinclair/typebox").TInteger;
|
|
@@ -124,6 +139,58 @@ export declare const RemoveViewAction: import("@sinclair/typebox").TObject<{
|
|
|
124
139
|
action: import("@sinclair/typebox").TLiteral<"remove">;
|
|
125
140
|
key: import("@sinclair/typebox").TString;
|
|
126
141
|
}>;
|
|
142
|
+
export declare const GetNavigationAction: import("@sinclair/typebox").TObject<{
|
|
143
|
+
action: import("@sinclair/typebox").TLiteral<"get_navigation">;
|
|
144
|
+
}>;
|
|
145
|
+
export declare const SetNavigationAction: import("@sinclair/typebox").TObject<{
|
|
146
|
+
action: import("@sinclair/typebox").TLiteral<"set_navigation">;
|
|
147
|
+
expected_revision: import("@sinclair/typebox").TInteger;
|
|
148
|
+
config: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
149
|
+
schemaVersion: import("@sinclair/typebox").TLiteral<1>;
|
|
150
|
+
sections: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
151
|
+
id: import("@sinclair/typebox").TString;
|
|
152
|
+
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
153
|
+
items: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
154
|
+
id: import("@sinclair/typebox").TString;
|
|
155
|
+
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
156
|
+
icon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
157
|
+
target: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
158
|
+
kind: import("@sinclair/typebox").TLiteral<"view">;
|
|
159
|
+
key: import("@sinclair/typebox").TString;
|
|
160
|
+
scope: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
161
|
+
collection: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
162
|
+
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
163
|
+
filters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
164
|
+
field: import("@sinclair/typebox").TString;
|
|
165
|
+
op: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"eq">, import("@sinclair/typebox").TLiteral<"neq">]>;
|
|
166
|
+
value: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
167
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
168
|
+
field: import("@sinclair/typebox").TString;
|
|
169
|
+
op: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"lt">, import("@sinclair/typebox").TLiteral<"lte">, import("@sinclair/typebox").TLiteral<"gt">, import("@sinclair/typebox").TLiteral<"gte">]>;
|
|
170
|
+
value: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
|
171
|
+
}>]>>>;
|
|
172
|
+
segment: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
173
|
+
}>>;
|
|
174
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
175
|
+
entity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
176
|
+
event: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
177
|
+
}>>;
|
|
178
|
+
params: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TBoolean]>>>;
|
|
179
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
180
|
+
kind: import("@sinclair/typebox").TLiteral<"collection">;
|
|
181
|
+
entityType: import("@sinclair/typebox").TString;
|
|
182
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
183
|
+
kind: import("@sinclair/typebox").TLiteral<"record">;
|
|
184
|
+
entityId: import("@sinclair/typebox").TInteger;
|
|
185
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
186
|
+
kind: import("@sinclair/typebox").TLiteral<"link">;
|
|
187
|
+
href: import("@sinclair/typebox").TString;
|
|
188
|
+
}>]>>;
|
|
189
|
+
children: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
190
|
+
}>>;
|
|
191
|
+
}>>;
|
|
192
|
+
}>, import("@sinclair/typebox").TNull]>;
|
|
193
|
+
}>;
|
|
127
194
|
export declare const ManageViewsSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
128
195
|
action: import("@sinclair/typebox").TLiteral<"set">;
|
|
129
196
|
source_code: import("@sinclair/typebox").TString;
|
|
@@ -142,12 +209,64 @@ export declare const ManageViewsSchema: import("@sinclair/typebox").TUnion<[impo
|
|
|
142
209
|
}>, import("@sinclair/typebox").TObject<{
|
|
143
210
|
action: import("@sinclair/typebox").TLiteral<"remove">;
|
|
144
211
|
key: import("@sinclair/typebox").TString;
|
|
212
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
213
|
+
action: import("@sinclair/typebox").TLiteral<"get_navigation">;
|
|
214
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
215
|
+
action: import("@sinclair/typebox").TLiteral<"set_navigation">;
|
|
216
|
+
expected_revision: import("@sinclair/typebox").TInteger;
|
|
217
|
+
config: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
218
|
+
schemaVersion: import("@sinclair/typebox").TLiteral<1>;
|
|
219
|
+
sections: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
220
|
+
id: import("@sinclair/typebox").TString;
|
|
221
|
+
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
222
|
+
items: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
223
|
+
id: import("@sinclair/typebox").TString;
|
|
224
|
+
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
225
|
+
icon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
226
|
+
target: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
227
|
+
kind: import("@sinclair/typebox").TLiteral<"view">;
|
|
228
|
+
key: import("@sinclair/typebox").TString;
|
|
229
|
+
scope: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
230
|
+
collection: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
231
|
+
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
232
|
+
filters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
233
|
+
field: import("@sinclair/typebox").TString;
|
|
234
|
+
op: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"eq">, import("@sinclair/typebox").TLiteral<"neq">]>;
|
|
235
|
+
value: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
236
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
237
|
+
field: import("@sinclair/typebox").TString;
|
|
238
|
+
op: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"lt">, import("@sinclair/typebox").TLiteral<"lte">, import("@sinclair/typebox").TLiteral<"gt">, import("@sinclair/typebox").TLiteral<"gte">]>;
|
|
239
|
+
value: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
|
240
|
+
}>]>>>;
|
|
241
|
+
segment: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
242
|
+
}>>;
|
|
243
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
244
|
+
entity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
245
|
+
event: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
246
|
+
}>>;
|
|
247
|
+
params: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TBoolean]>>>;
|
|
248
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
249
|
+
kind: import("@sinclair/typebox").TLiteral<"collection">;
|
|
250
|
+
entityType: import("@sinclair/typebox").TString;
|
|
251
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
252
|
+
kind: import("@sinclair/typebox").TLiteral<"record">;
|
|
253
|
+
entityId: import("@sinclair/typebox").TInteger;
|
|
254
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
255
|
+
kind: import("@sinclair/typebox").TLiteral<"link">;
|
|
256
|
+
href: import("@sinclair/typebox").TString;
|
|
257
|
+
}>]>>;
|
|
258
|
+
children: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
259
|
+
}>>;
|
|
260
|
+
}>>;
|
|
261
|
+
}>, import("@sinclair/typebox").TNull]>;
|
|
145
262
|
}>]>;
|
|
146
263
|
export type ManageViewsArgs = Static<typeof ManageViewsSchema>;
|
|
147
264
|
export type ViewSetInput = ActionInput<ManageViewsArgs, "set">;
|
|
148
265
|
export type ViewGetInput = ActionInput<ManageViewsArgs, "get">;
|
|
149
266
|
export type ViewListInput = ActionInput<ManageViewsArgs, "list">;
|
|
150
267
|
export type ViewRemoveInput = ActionInput<ManageViewsArgs, "remove">;
|
|
268
|
+
export type NavigationGetInput = ActionInput<ManageViewsArgs, "get_navigation">;
|
|
269
|
+
export type NavigationSetInput = ActionInput<ManageViewsArgs, "set_navigation">;
|
|
151
270
|
/**
|
|
152
271
|
* Result of `manage_views` — discriminated union keyed on `action`.
|
|
153
272
|
* TypeBox-first: `Static<>` derives the TS type from the same schema exposed as
|
|
@@ -185,8 +304,13 @@ export declare const ManageViewsResultSchema: import("@sinclair/typebox").TUnion
|
|
|
185
304
|
}>>;
|
|
186
305
|
}>>;
|
|
187
306
|
actions: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
188
|
-
emits: import("@sinclair/typebox").TString
|
|
307
|
+
emits: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
308
|
+
updates: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
309
|
+
entityType: import("@sinclair/typebox").TString;
|
|
310
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
311
|
+
}>>;
|
|
189
312
|
}>>;
|
|
313
|
+
resources: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
190
314
|
last_writer: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
191
315
|
updated_at: import("@sinclair/typebox").TString;
|
|
192
316
|
compiled_bytes: import("@sinclair/typebox").TInteger;
|
|
@@ -225,8 +349,13 @@ export declare const ManageViewsResultSchema: import("@sinclair/typebox").TUnion
|
|
|
225
349
|
}>>;
|
|
226
350
|
}>>;
|
|
227
351
|
actions: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
228
|
-
emits: import("@sinclair/typebox").TString
|
|
352
|
+
emits: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
353
|
+
updates: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
354
|
+
entityType: import("@sinclair/typebox").TString;
|
|
355
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
356
|
+
}>>;
|
|
229
357
|
}>>;
|
|
358
|
+
resources: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
230
359
|
last_writer: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
231
360
|
updated_at: import("@sinclair/typebox").TString;
|
|
232
361
|
compiled_bytes: import("@sinclair/typebox").TInteger;
|
|
@@ -271,8 +400,13 @@ export declare const ManageViewsResultSchema: import("@sinclair/typebox").TUnion
|
|
|
271
400
|
}>>;
|
|
272
401
|
}>>;
|
|
273
402
|
actions: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
274
|
-
emits: import("@sinclair/typebox").TString
|
|
403
|
+
emits: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
404
|
+
updates: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
405
|
+
entityType: import("@sinclair/typebox").TString;
|
|
406
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
407
|
+
}>>;
|
|
275
408
|
}>>;
|
|
409
|
+
resources: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
276
410
|
last_writer: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
277
411
|
updated_at: import("@sinclair/typebox").TString;
|
|
278
412
|
compiled_bytes: import("@sinclair/typebox").TInteger;
|
|
@@ -282,6 +416,114 @@ export declare const ManageViewsResultSchema: import("@sinclair/typebox").TUnion
|
|
|
282
416
|
action: import("@sinclair/typebox").TLiteral<"remove">;
|
|
283
417
|
key: import("@sinclair/typebox").TString;
|
|
284
418
|
removed: import("@sinclair/typebox").TBoolean;
|
|
419
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
420
|
+
action: import("@sinclair/typebox").TLiteral<"get_navigation">;
|
|
421
|
+
revision: import("@sinclair/typebox").TInteger;
|
|
422
|
+
config: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
423
|
+
schemaVersion: import("@sinclair/typebox").TLiteral<1>;
|
|
424
|
+
sections: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
425
|
+
id: import("@sinclair/typebox").TString;
|
|
426
|
+
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
427
|
+
items: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
428
|
+
id: import("@sinclair/typebox").TString;
|
|
429
|
+
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
430
|
+
icon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
431
|
+
target: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
432
|
+
kind: import("@sinclair/typebox").TLiteral<"view">;
|
|
433
|
+
key: import("@sinclair/typebox").TString;
|
|
434
|
+
scope: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
435
|
+
collection: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
436
|
+
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
437
|
+
filters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
438
|
+
field: import("@sinclair/typebox").TString;
|
|
439
|
+
op: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"eq">, import("@sinclair/typebox").TLiteral<"neq">]>;
|
|
440
|
+
value: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
441
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
442
|
+
field: import("@sinclair/typebox").TString;
|
|
443
|
+
op: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"lt">, import("@sinclair/typebox").TLiteral<"lte">, import("@sinclair/typebox").TLiteral<"gt">, import("@sinclair/typebox").TLiteral<"gte">]>;
|
|
444
|
+
value: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
|
445
|
+
}>]>>>;
|
|
446
|
+
segment: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
447
|
+
}>>;
|
|
448
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
449
|
+
entity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
450
|
+
event: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
451
|
+
}>>;
|
|
452
|
+
params: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TBoolean]>>>;
|
|
453
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
454
|
+
kind: import("@sinclair/typebox").TLiteral<"collection">;
|
|
455
|
+
entityType: import("@sinclair/typebox").TString;
|
|
456
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
457
|
+
kind: import("@sinclair/typebox").TLiteral<"record">;
|
|
458
|
+
entityId: import("@sinclair/typebox").TInteger;
|
|
459
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
460
|
+
kind: import("@sinclair/typebox").TLiteral<"link">;
|
|
461
|
+
href: import("@sinclair/typebox").TString;
|
|
462
|
+
}>]>>;
|
|
463
|
+
children: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
464
|
+
}>>;
|
|
465
|
+
}>>;
|
|
466
|
+
}>, import("@sinclair/typebox").TNull]>>;
|
|
467
|
+
sections: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
468
|
+
id: import("@sinclair/typebox").TString;
|
|
469
|
+
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
470
|
+
items: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
471
|
+
id: import("@sinclair/typebox").TString;
|
|
472
|
+
label: import("@sinclair/typebox").TString;
|
|
473
|
+
icon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
474
|
+
href: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
475
|
+
external: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
476
|
+
children: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>;
|
|
477
|
+
}>>;
|
|
478
|
+
}>>;
|
|
479
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
480
|
+
action: import("@sinclair/typebox").TLiteral<"set_navigation">;
|
|
481
|
+
revision: import("@sinclair/typebox").TInteger;
|
|
482
|
+
config: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
483
|
+
schemaVersion: import("@sinclair/typebox").TLiteral<1>;
|
|
484
|
+
sections: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
485
|
+
id: import("@sinclair/typebox").TString;
|
|
486
|
+
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
487
|
+
items: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
488
|
+
id: import("@sinclair/typebox").TString;
|
|
489
|
+
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
490
|
+
icon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
491
|
+
target: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
492
|
+
kind: import("@sinclair/typebox").TLiteral<"view">;
|
|
493
|
+
key: import("@sinclair/typebox").TString;
|
|
494
|
+
scope: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
495
|
+
collection: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
496
|
+
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
497
|
+
filters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
498
|
+
field: import("@sinclair/typebox").TString;
|
|
499
|
+
op: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"eq">, import("@sinclair/typebox").TLiteral<"neq">]>;
|
|
500
|
+
value: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
501
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
502
|
+
field: import("@sinclair/typebox").TString;
|
|
503
|
+
op: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"lt">, import("@sinclair/typebox").TLiteral<"lte">, import("@sinclair/typebox").TLiteral<"gt">, import("@sinclair/typebox").TLiteral<"gte">]>;
|
|
504
|
+
value: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
|
505
|
+
}>]>>>;
|
|
506
|
+
segment: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
507
|
+
}>>;
|
|
508
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
509
|
+
entity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
510
|
+
event: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
511
|
+
}>>;
|
|
512
|
+
params: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TBoolean]>>>;
|
|
513
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
514
|
+
kind: import("@sinclair/typebox").TLiteral<"collection">;
|
|
515
|
+
entityType: import("@sinclair/typebox").TString;
|
|
516
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
517
|
+
kind: import("@sinclair/typebox").TLiteral<"record">;
|
|
518
|
+
entityId: import("@sinclair/typebox").TInteger;
|
|
519
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
520
|
+
kind: import("@sinclair/typebox").TLiteral<"link">;
|
|
521
|
+
href: import("@sinclair/typebox").TString;
|
|
522
|
+
}>]>>;
|
|
523
|
+
children: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
524
|
+
}>>;
|
|
525
|
+
}>>;
|
|
526
|
+
}>, import("@sinclair/typebox").TNull]>;
|
|
285
527
|
}>]>;
|
|
286
528
|
export type ManageViewsResult = Static<typeof ManageViewsResultSchema>;
|
|
287
529
|
//# sourceMappingURL=manage-views.d.ts.map
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ManageViewsResultSchema = exports.ManageViewsSchema = exports.RemoveViewAction = exports.ListViewsAction = exports.GetViewAction = exports.SetViewAction = exports.ViewRowSchema = exports.ViewDefinitionSchema = exports.ViewActionDeclSchema = exports.ViewParamDeclSchema = exports.ViewAttachmentSchema = exports.ViewKeySchema = void 0;
|
|
3
|
+
exports.ManageViewsResultSchema = exports.ManageViewsSchema = exports.SetNavigationAction = exports.GetNavigationAction = exports.RemoveViewAction = exports.ListViewsAction = exports.GetViewAction = exports.SetViewAction = exports.ViewRowSchema = exports.ViewDefinitionSchema = exports.ViewActionDeclSchema = exports.ViewParamDeclSchema = exports.ViewAttachmentSchema = exports.ViewScopeSchema = exports.ViewKeySchema = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
+
const view_scope_1 = require("./view-scope");
|
|
6
|
+
var view_scope_2 = require("./view-scope");
|
|
7
|
+
Object.defineProperty(exports, "ViewKeySchema", { enumerable: true, get: function () { return view_scope_2.ViewKeySchema; } });
|
|
8
|
+
Object.defineProperty(exports, "ViewScopeSchema", { enumerable: true, get: function () { return view_scope_2.ViewScopeSchema; } });
|
|
9
|
+
const navigation_1 = require("./navigation");
|
|
5
10
|
const collection_selection_1 = require("./collection-selection");
|
|
6
11
|
const source_files_schema_1 = require("./source-files-schema");
|
|
7
12
|
// ============================================
|
|
8
13
|
// Lobu views: React modules rendered in the sandboxed frame.
|
|
9
14
|
// ============================================
|
|
10
|
-
// A view key names the module: lowercase, dashes, 1-64 chars. The folder is
|
|
11
|
-
// only a convention — the key is the identity (no `custom:<name>` prefix).
|
|
12
|
-
exports.ViewKeySchema = typebox_1.Type.String({
|
|
13
|
-
pattern: "^[a-z0-9][a-z0-9-]{0,63}$",
|
|
14
|
-
minLength: 1,
|
|
15
|
-
maxLength: 64,
|
|
16
|
-
description: "View key, e.g. 'pipeline'.",
|
|
17
|
-
});
|
|
18
15
|
// Where a view appears: one page per entry, named by its key. The attach line
|
|
19
16
|
// lives in the module source; there are no attach/detach verbs — changing it
|
|
20
17
|
// means re-saving the view. How the view renders there is the view's own
|
|
@@ -76,21 +73,51 @@ exports.ViewParamDeclSchema = typebox_1.Type.Object({
|
|
|
76
73
|
description: "Offer this param in the host's filter bar: an applied value shows as a chip above the view. Options make it a pick list; without them the host asks for a value of the param's type.",
|
|
77
74
|
})),
|
|
78
75
|
});
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
//
|
|
76
|
+
/** Most metadata fields one view action may write. */
|
|
77
|
+
const VIEW_ACTION_MAX_UPDATE_FIELDS = 50;
|
|
78
|
+
// Actions a view declares as metadata. An action emits an event kind through
|
|
79
|
+
// the template-action chokepoint, writes an allowlist of entity fields through
|
|
80
|
+
// the shared entity update path, or both in one transaction. At least one is
|
|
81
|
+
// required (checked by `readViewDefinition`). A removed action stops working on
|
|
82
|
+
// the next read because the check runs against the CURRENT view row.
|
|
82
83
|
exports.ViewActionDeclSchema = typebox_1.Type.Object({
|
|
83
|
-
emits: typebox_1.Type.String({
|
|
84
|
+
emits: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
84
85
|
minLength: 1,
|
|
85
86
|
maxLength: 128,
|
|
86
87
|
description: "Event kind appended when the action fires, e.g. 'deal.won'.",
|
|
87
|
-
}),
|
|
88
|
+
})),
|
|
89
|
+
updates: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
90
|
+
entityType: typebox_1.Type.String({
|
|
91
|
+
minLength: 1,
|
|
92
|
+
maxLength: 128,
|
|
93
|
+
description: "Entity type the action writes. The view must attach to it (collection or record).",
|
|
94
|
+
}),
|
|
95
|
+
fields: typebox_1.Type.Array(typebox_1.Type.String({ minLength: 1, maxLength: 128 }), {
|
|
96
|
+
minItems: 1,
|
|
97
|
+
maxItems: VIEW_ACTION_MAX_UPDATE_FIELDS,
|
|
98
|
+
uniqueItems: true,
|
|
99
|
+
description: "Metadata fields the action may set. Schema-stamped fields (x-lobu-stamps) are server-owned and refused.",
|
|
100
|
+
}),
|
|
101
|
+
}, {
|
|
102
|
+
additionalProperties: false,
|
|
103
|
+
description: "Entity fields the action may write: value carries { entity_id, set }.",
|
|
104
|
+
})),
|
|
105
|
+
});
|
|
106
|
+
/** Most external origins one view may load images from. */
|
|
107
|
+
const VIEW_MAX_RESOURCES = 8;
|
|
108
|
+
// External origins the view may load images from (map tiles, logos). Each is a
|
|
109
|
+
// bare https origin with a public hostname; anything else the view requests,
|
|
110
|
+
// and images from any other origin, stay blocked. Checked by
|
|
111
|
+
// `readViewDefinition`, which also drops duplicates.
|
|
112
|
+
const ViewResourcesSchema = typebox_1.Type.Array(typebox_1.Type.String({ minLength: 1, maxLength: 260 }), {
|
|
113
|
+
maxItems: VIEW_MAX_RESOURCES,
|
|
114
|
+
description: "External origins the view may load images from, e.g. 'https://tile.openstreetmap.org': https, a public hostname, no path. At most 8.",
|
|
88
115
|
});
|
|
89
116
|
// Everything a view declares about itself, read from its module's
|
|
90
117
|
// `export const view = defineView({...})`. The module is the only place these
|
|
91
118
|
// live: `set` takes the source and the server reads this out of it.
|
|
92
119
|
exports.ViewDefinitionSchema = typebox_1.Type.Object({
|
|
93
|
-
key:
|
|
120
|
+
key: view_scope_1.ViewKeySchema,
|
|
94
121
|
name: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
95
122
|
minLength: 1,
|
|
96
123
|
maxLength: 120,
|
|
@@ -104,13 +131,14 @@ exports.ViewDefinitionSchema = typebox_1.Type.Object({
|
|
|
104
131
|
description: "Declared URL params.",
|
|
105
132
|
})),
|
|
106
133
|
actions: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), exports.ViewActionDeclSchema, {
|
|
107
|
-
description: "Declared actions
|
|
134
|
+
description: "Declared actions: the event kind each emits and the entity fields each may update.",
|
|
108
135
|
})),
|
|
136
|
+
resources: typebox_1.Type.Optional(ViewResourcesSchema),
|
|
109
137
|
}, { additionalProperties: false });
|
|
110
138
|
// Public projection of a stored view: metadata only, never the bundle. The
|
|
111
139
|
// bundle travels over the view resource / shell route; the source over get.
|
|
112
140
|
exports.ViewRowSchema = typebox_1.Type.Object({
|
|
113
|
-
key:
|
|
141
|
+
key: view_scope_1.ViewKeySchema,
|
|
114
142
|
name: typebox_1.Type.String(),
|
|
115
143
|
description: typebox_1.Type.String(),
|
|
116
144
|
content_hash: typebox_1.Type.String({
|
|
@@ -119,6 +147,7 @@ exports.ViewRowSchema = typebox_1.Type.Object({
|
|
|
119
147
|
attach: typebox_1.Type.Array(exports.ViewAttachmentSchema),
|
|
120
148
|
params: typebox_1.Type.Record(typebox_1.Type.String(), exports.ViewParamDeclSchema),
|
|
121
149
|
actions: typebox_1.Type.Record(typebox_1.Type.String(), exports.ViewActionDeclSchema),
|
|
150
|
+
resources: ViewResourcesSchema,
|
|
122
151
|
// Optional because a reader outside the workspace (a public workspace's
|
|
123
152
|
// visitor) gets the list without anyone's user id in it.
|
|
124
153
|
last_writer: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
@@ -137,12 +166,12 @@ exports.ViewRowSchema = typebox_1.Type.Object({
|
|
|
137
166
|
// variant must read true for every one of them.
|
|
138
167
|
exports.SetViewAction = typebox_1.Type.Object({
|
|
139
168
|
action: typebox_1.Type.Literal("set", {
|
|
140
|
-
description: "Store a view: read its key, name, description, attach, params and
|
|
169
|
+
description: "Store a view: read its key, name, description, attach, params, actions and resources from the module's `export const view = defineView({...})`, compile it, and upsert by that key.",
|
|
141
170
|
}),
|
|
142
171
|
source_code: typebox_1.Type.String({
|
|
143
172
|
minLength: 1,
|
|
144
173
|
maxLength: 1000000,
|
|
145
|
-
description: "[set] The view module source (TSX). Its `defineView({...})` argument must be a literal; it is the only place the view's key, name, description, attach, params and
|
|
174
|
+
description: "[set] The view module source (TSX). Its `defineView({...})` argument must be a literal; it is the only place the view's key, name, description, attach, params, actions and resources are declared.",
|
|
146
175
|
}),
|
|
147
176
|
compiled_code: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
148
177
|
minLength: 1,
|
|
@@ -159,7 +188,7 @@ exports.GetViewAction = typebox_1.Type.Object({
|
|
|
159
188
|
action: typebox_1.Type.Literal("get", {
|
|
160
189
|
description: "Fetch one view's metadata + source.",
|
|
161
190
|
}),
|
|
162
|
-
key:
|
|
191
|
+
key: view_scope_1.ViewKeySchema,
|
|
163
192
|
});
|
|
164
193
|
exports.ListViewsAction = typebox_1.Type.Object({
|
|
165
194
|
action: typebox_1.Type.Literal("list", {
|
|
@@ -170,13 +199,35 @@ exports.RemoveViewAction = typebox_1.Type.Object({
|
|
|
170
199
|
action: typebox_1.Type.Literal("remove", {
|
|
171
200
|
description: "Delete a view by key.",
|
|
172
201
|
}),
|
|
173
|
-
key:
|
|
202
|
+
key: view_scope_1.ViewKeySchema,
|
|
203
|
+
});
|
|
204
|
+
// The workspace's sidebar navigation (see ./navigation). One versioned
|
|
205
|
+
// document per workspace; `set_navigation` replaces it whole, and only when
|
|
206
|
+
// `expected_revision` is still the stored revision (409 otherwise).
|
|
207
|
+
exports.GetNavigationAction = typebox_1.Type.Object({
|
|
208
|
+
action: typebox_1.Type.Literal("get_navigation", {
|
|
209
|
+
description: "Read the workspace navigation: { revision, config, sections }. config is the stored document (null = automatic defaults), returned only to owner/admin callers with admin access; sections is what the sidebar renders for the caller.",
|
|
210
|
+
}),
|
|
211
|
+
});
|
|
212
|
+
exports.SetNavigationAction = typebox_1.Type.Object({
|
|
213
|
+
action: typebox_1.Type.Literal("set_navigation", {
|
|
214
|
+
description: "Replace the workspace navigation document. Fails with 409 when expected_revision is stale.",
|
|
215
|
+
}),
|
|
216
|
+
expected_revision: typebox_1.Type.Integer({
|
|
217
|
+
minimum: 0,
|
|
218
|
+
description: "[set_navigation] The revision get_navigation returned; the write applies only if it is still current.",
|
|
219
|
+
}),
|
|
220
|
+
config: typebox_1.Type.Union([navigation_1.NavigationConfigSchema, typebox_1.Type.Null()], {
|
|
221
|
+
description: "[set_navigation] The whole navigation document, or null to return to the automatic defaults.",
|
|
222
|
+
}),
|
|
174
223
|
});
|
|
175
224
|
exports.ManageViewsSchema = typebox_1.Type.Union([
|
|
176
225
|
exports.SetViewAction,
|
|
177
226
|
exports.GetViewAction,
|
|
178
227
|
exports.ListViewsAction,
|
|
179
228
|
exports.RemoveViewAction,
|
|
229
|
+
exports.GetNavigationAction,
|
|
230
|
+
exports.SetNavigationAction,
|
|
180
231
|
]);
|
|
181
232
|
// ============================================
|
|
182
233
|
// Result Types
|
|
@@ -211,5 +262,16 @@ exports.ManageViewsResultSchema = typebox_1.Type.Union([
|
|
|
211
262
|
key: typebox_1.Type.String(),
|
|
212
263
|
removed: typebox_1.Type.Boolean(),
|
|
213
264
|
}),
|
|
265
|
+
typebox_1.Type.Object({
|
|
266
|
+
action: typebox_1.Type.Literal("get_navigation"),
|
|
267
|
+
revision: typebox_1.Type.Integer(),
|
|
268
|
+
config: typebox_1.Type.Optional(typebox_1.Type.Union([navigation_1.NavigationConfigSchema, typebox_1.Type.Null()])),
|
|
269
|
+
sections: typebox_1.Type.Array(navigation_1.ResolvedNavigationSectionSchema),
|
|
270
|
+
}),
|
|
271
|
+
typebox_1.Type.Object({
|
|
272
|
+
action: typebox_1.Type.Literal("set_navigation"),
|
|
273
|
+
revision: typebox_1.Type.Integer(),
|
|
274
|
+
config: typebox_1.Type.Union([navigation_1.NavigationConfigSchema, typebox_1.Type.Null()]),
|
|
275
|
+
}),
|
|
214
276
|
]);
|
|
215
277
|
//# sourceMappingURL=manage-views.js.map
|