@vibes.diy/api-types 14.0.13 → 14.0.15

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.
Files changed (80) hide show
  1. package/agent-tools.js +14 -13
  2. package/agent-tools.js.map +1 -1
  3. package/app-documents.js +71 -70
  4. package/app-documents.js.map +1 -1
  5. package/app.d.ts +88 -88
  6. package/app.js +142 -141
  7. package/app.js.map +1 -1
  8. package/asset.js +9 -8
  9. package/asset.js.map +1 -1
  10. package/audience-arms-msg.js +24 -23
  11. package/audience-arms-msg.js.map +1 -1
  12. package/billing-msg.js +19 -18
  13. package/billing-msg.js.map +1 -1
  14. package/cached-suggestion.js +9 -8
  15. package/cached-suggestion.js.map +1 -1
  16. package/chat.js +66 -67
  17. package/chat.js.map +1 -1
  18. package/common.js +52 -51
  19. package/common.js.map +1 -1
  20. package/db-acls.js +9 -8
  21. package/db-acls.js.map +1 -1
  22. package/developer-grant.js +18 -17
  23. package/developer-grant.js.map +1 -1
  24. package/draft-chat.js +6 -5
  25. package/draft-chat.js.map +1 -1
  26. package/home-feed.js +23 -22
  27. package/home-feed.js.map +1 -1
  28. package/invite-flow.js +55 -56
  29. package/invite-flow.js.map +1 -1
  30. package/invite.js +118 -117
  31. package/invite.js.map +1 -1
  32. package/lazy-type.d.ts +8 -0
  33. package/lazy-type.js +39 -0
  34. package/lazy-type.js.map +1 -0
  35. package/members.js +7 -6
  36. package/members.js.map +1 -1
  37. package/memberships.js +7 -6
  38. package/memberships.js.map +1 -1
  39. package/mint-fire.js +5 -4
  40. package/mint-fire.js.map +1 -1
  41. package/notifications.js +24 -23
  42. package/notifications.js.map +1 -1
  43. package/package.json +7 -6
  44. package/prompt.js +31 -30
  45. package/prompt.js.map +1 -1
  46. package/related-vibes.js +21 -20
  47. package/related-vibes.js.map +1 -1
  48. package/report.js +87 -86
  49. package/report.js.map +1 -1
  50. package/request-access.js +53 -54
  51. package/request-access.js.map +1 -1
  52. package/research.js +13 -12
  53. package/research.js.map +1 -1
  54. package/retention-msg.js +3 -2
  55. package/retention-msg.js.map +1 -1
  56. package/screen-shotter.js +3 -2
  57. package/screen-shotter.js.map +1 -1
  58. package/settings.js +131 -130
  59. package/settings.js.map +1 -1
  60. package/shared-mint.js +5 -4
  61. package/shared-mint.js.map +1 -1
  62. package/signin-ticket.js +5 -4
  63. package/signin-ticket.js.map +1 -1
  64. package/social-msg.js +62 -61
  65. package/social-msg.js.map +1 -1
  66. package/style.js +16 -15
  67. package/style.js.map +1 -1
  68. package/turn-variant.d.ts +1 -0
  69. package/turn-variant.js +5 -1
  70. package/turn-variant.js.map +1 -1
  71. package/types.js +18 -17
  72. package/types.js.map +1 -1
  73. package/vibes-diy-api.js +3 -2
  74. package/vibes-diy-api.js.map +1 -1
  75. package/vibes-diy-serv-ctx.js +9 -8
  76. package/vibes-diy-serv-ctx.js.map +1 -1
  77. package/vibes-types.js +3 -2
  78. package/vibes-types.js.map +1 -1
  79. package/welcome-msg.js +3 -2
  80. package/welcome-msg.js.map +1 -1
package/settings.js CHANGED
@@ -3,46 +3,47 @@ import { dashAuthType, Role } from "./common.js";
3
3
  import { AIParams, ActiveEntry, EnablePublicAccess, EnableRequest, ActiveACL, KVString, SecretMeta, Style } from "./invite.js";
4
4
  import { anonWriteMode, dbAcl, dbPosture, postureIntent } from "./db-acls.js";
5
5
  import { cachedSuggestionRecord, cachedSuggestionBlessRecord, } from "./cached-suggestion.js";
6
- export const sharingGrantItem = type({
6
+ import { lazyType } from "./lazy-type.js";
7
+ export const sharingGrantItem = lazyType(() => type({
7
8
  grant: "'allow' | 'deny'",
8
9
  appSlug: "string",
9
10
  ownerHandle: "string",
10
11
  dbName: "string",
11
- });
12
- export const userSettingShareing = type({
12
+ }));
13
+ export const userSettingShareing = lazyType(() => type({
13
14
  type: "'sharing'",
14
15
  grants: sharingGrantItem.array(),
15
- });
16
+ }));
16
17
  export function isUserSettingSharing(obj) {
17
18
  return !(userSettingShareing(obj) instanceof type.errors);
18
19
  }
19
- export const userSettingModelDefaults = type({
20
+ export const userSettingModelDefaults = lazyType(() => type({
20
21
  type: "'modelDefaults'",
21
22
  "codegen?": AIParams.partial(),
22
23
  "runtime?": AIParams.partial(),
23
24
  "img?": AIParams.partial(),
24
25
  "chat?": AIParams.partial(),
25
26
  "app?": AIParams.partial(),
26
- });
27
+ }));
27
28
  export function isUserSettingModelDefaults(obj) {
28
29
  return !(userSettingModelDefaults(obj) instanceof type.errors);
29
30
  }
30
- export const userSettingDefaultHandle = type({
31
+ export const userSettingDefaultHandle = lazyType(() => type({
31
32
  type: "'defaultHandle'",
32
33
  ownerHandle: "string",
33
- });
34
+ }));
34
35
  export function isUserSettingDefaultHandle(obj) {
35
36
  return !(userSettingDefaultHandle(obj) instanceof type.errors);
36
37
  }
37
- export const userSettingProfile = type({
38
+ export const userSettingProfile = lazyType(() => type({
38
39
  type: "'profile'",
39
40
  "avatarCid?": "string",
40
41
  "displayName?": "string",
41
- });
42
+ }));
42
43
  export function isUserSettingProfile(obj) {
43
44
  return !(userSettingProfile(obj) instanceof type.errors);
44
45
  }
45
- export const userSettingNotifications = type({
46
+ export const userSettingNotifications = lazyType(() => type({
46
47
  type: "'notifications'",
47
48
  "buildComplete?": "boolean",
48
49
  "buildFailed?": "boolean",
@@ -62,55 +63,55 @@ export const userSettingNotifications = type({
62
63
  "appMessage?": "boolean",
63
64
  "connectionExpiring?": "boolean",
64
65
  "emailInstant?": "boolean",
65
- });
66
+ }));
66
67
  export function isUserSettingNotifications(obj) {
67
68
  return !(userSettingNotifications(obj) instanceof type.errors);
68
69
  }
69
- export const userSettingEgressStatus = type({
70
+ export const userSettingEgressStatus = lazyType(() => type({
70
71
  type: "'egressStatus'",
71
72
  status: "'blessed' | 'blocked'",
72
73
  updatedAt: "string",
73
74
  "setBy?": "string",
74
- });
75
+ }));
75
76
  export function isUserSettingEgressStatus(obj) {
76
77
  return !(userSettingEgressStatus(obj) instanceof type.errors);
77
78
  }
78
- export const userSettingContactEmail = type({
79
+ export const userSettingContactEmail = lazyType(() => type({
79
80
  type: "'contactEmail'",
80
81
  email: "string",
81
82
  updatedAt: "string",
82
- });
83
+ }));
83
84
  export function isUserSettingContactEmail(obj) {
84
85
  return !(userSettingContactEmail(obj) instanceof type.errors);
85
86
  }
86
- export const userSettingOnboarding = type({
87
+ export const userSettingOnboarding = lazyType(() => type({
87
88
  type: "'onboarding'",
88
89
  completedAt: "string",
89
- });
90
+ }));
90
91
  export function isUserSettingOnboarding(obj) {
91
92
  return !(userSettingOnboarding(obj) instanceof type.errors);
92
93
  }
93
- const userSettingLegacyDefaultHandle = type({
94
+ const userSettingLegacyDefaultHandle = lazyType(() => type({
94
95
  type: "'defaultUserSlug'",
95
96
  userSlug: "string",
96
- }).pipe(({ userSlug }) => ({ type: "defaultHandle", ownerHandle: userSlug }));
97
- export const userSettingGeoCountry = type({
97
+ }).pipe(({ userSlug }) => ({ type: "defaultHandle", ownerHandle: userSlug })));
98
+ export const userSettingGeoCountry = lazyType(() => type({
98
99
  type: "'geoCountry'",
99
100
  country: "string",
100
101
  updatedAt: "string",
101
- });
102
+ }));
102
103
  export function isUserSettingGeoCountry(obj) {
103
104
  return !(userSettingGeoCountry(obj) instanceof type.errors);
104
105
  }
105
- export const userSettingRetentionDrip = type({
106
+ export const userSettingRetentionDrip = lazyType(() => type({
106
107
  type: "'retentionDrip'",
107
108
  sent: { "[string]": "string" },
108
109
  updatedAt: "string",
109
- });
110
+ }));
110
111
  export function isUserSettingRetentionDrip(obj) {
111
112
  return !(userSettingRetentionDrip(obj) instanceof type.errors);
112
113
  }
113
- export const userSettingItem = userSettingShareing
114
+ export const userSettingItem = lazyType(() => userSettingShareing
114
115
  .or(userSettingModelDefaults)
115
116
  .or(userSettingDefaultHandle)
116
117
  .or(userSettingLegacyDefaultHandle)
@@ -120,202 +121,202 @@ export const userSettingItem = userSettingShareing
120
121
  .or(userSettingContactEmail)
121
122
  .or(userSettingGeoCountry)
122
123
  .or(userSettingRetentionDrip)
123
- .or(userSettingOnboarding);
124
- export const reqEnsureUserSettings = type({
124
+ .or(userSettingOnboarding));
125
+ export const reqEnsureUserSettings = lazyType(() => type({
125
126
  type: "'vibes.diy.req-ensure-user-settings'",
126
127
  auth: dashAuthType,
127
128
  settings: userSettingItem.array(),
128
- });
129
- export const resEnsureUserSettings = type({
129
+ }));
130
+ export const resEnsureUserSettings = lazyType(() => type({
130
131
  type: "'vibes.diy.res-ensure-user-settings'",
131
132
  userId: "string",
132
133
  settings: userSettingItem.array(),
133
134
  updated: "string",
134
135
  created: "string",
135
- });
136
+ }));
136
137
  export function isResEnsureUserSettings(obj) {
137
138
  return !(resEnsureUserSettings(obj) instanceof type.errors);
138
139
  }
139
- export const reqSetEgressStatus = type({
140
+ export const reqSetEgressStatus = lazyType(() => type({
140
141
  type: "'vibes.diy.req-set-egress-status'",
141
142
  auth: dashAuthType,
142
143
  ownerHandle: "string",
143
144
  status: "'default' | 'blessed' | 'blocked'",
144
- });
145
- export const resSetEgressStatus = type({
145
+ }));
146
+ export const resSetEgressStatus = lazyType(() => type({
146
147
  type: "'vibes.diy.res-set-egress-status'",
147
148
  ownerHandle: "string",
148
149
  status: "'default' | 'blessed' | 'blocked'",
149
150
  updated: "string",
150
- });
151
+ }));
151
152
  export function isResSetEgressStatus(obj) {
152
153
  return !(resSetEgressStatus(obj) instanceof type.errors);
153
154
  }
154
- export const reqEnsureHandleAvatar = type({
155
+ export const reqEnsureHandleAvatar = lazyType(() => type({
155
156
  type: "'vibes.diy.req-ensure-handle-avatar'",
156
157
  auth: dashAuthType,
157
158
  handle: "string",
158
159
  cid: "string",
159
160
  "mime?": "string",
160
- });
161
+ }));
161
162
  export function isReqEnsureHandleAvatar(obj) {
162
163
  return !(reqEnsureHandleAvatar(obj) instanceof type.errors);
163
164
  }
164
- export const resEnsureHandleAvatar = type({
165
+ export const resEnsureHandleAvatar = lazyType(() => type({
165
166
  type: "'vibes.diy.res-ensure-handle-avatar'",
166
167
  handle: "string",
167
168
  getURL: "string",
168
169
  mime: "string",
169
170
  updated: "string",
170
- });
171
+ }));
171
172
  export function isResEnsureHandleAvatar(obj) {
172
173
  return !(resEnsureHandleAvatar(obj) instanceof type.errors);
173
174
  }
174
- export const reqEnsureAppSettingsBase = type({
175
+ export const reqEnsureAppSettingsBase = lazyType(() => type({
175
176
  type: "'vibes.diy.req-ensure-app-settings'",
176
177
  "auth?": dashAuthType,
177
178
  appSlug: "string",
178
179
  ownerHandle: "string",
179
- });
180
+ }));
180
181
  export function isReqEnsureAppSettingsBase(obj) {
181
182
  return !(reqEnsureAppSettingsBase(obj) instanceof type.errors);
182
183
  }
183
- export const reqEnsureAppSettingsAcl = type({
184
+ export const reqEnsureAppSettingsAcl = lazyType(() => type({
184
185
  aclEntry: type({
185
186
  entry: ActiveACL,
186
187
  op: "'delete' | 'upsert'",
187
188
  }),
188
- }).and(reqEnsureAppSettingsBase);
189
+ }).and(reqEnsureAppSettingsBase));
189
190
  export function isReqEnsureAppSettingsAcl(obj) {
190
191
  return !(reqEnsureAppSettingsAcl(obj) instanceof type.errors);
191
192
  }
192
- export const reqPublicAccess = type({
193
+ export const reqPublicAccess = lazyType(() => type({
193
194
  publicAccess: {
194
195
  enable: "boolean",
195
196
  },
196
- }).and(reqEnsureAppSettingsBase);
197
+ }).and(reqEnsureAppSettingsBase));
197
198
  export function isReqPublicAccess(obj) {
198
199
  return !(reqPublicAccess(obj) instanceof type.errors);
199
200
  }
200
- export const reqRequest = type({
201
+ export const reqRequest = lazyType(() => type({
201
202
  request: {
202
203
  enable: "boolean",
203
204
  "autoAcceptRole?": Role,
204
205
  },
205
- }).and(reqEnsureAppSettingsBase);
206
+ }).and(reqEnsureAppSettingsBase));
206
207
  export function isReqRequest(obj) {
207
208
  return !(reqRequest(obj) instanceof type.errors);
208
209
  }
209
- export const reqEnsureAppSettingsTitle = type({
210
+ export const reqEnsureAppSettingsTitle = lazyType(() => type({
210
211
  title: "string",
211
- }).and(reqEnsureAppSettingsBase);
212
+ }).and(reqEnsureAppSettingsBase));
212
213
  export function isReqEnsureAppSettingsTitle(obj) {
213
214
  return !(reqEnsureAppSettingsTitle(obj) instanceof type.errors);
214
215
  }
215
- export const reqEnsureAppSettingsSkills = type({
216
+ export const reqEnsureAppSettingsSkills = lazyType(() => type({
216
217
  skills: type("string").array(),
217
- }).and(reqEnsureAppSettingsBase);
218
+ }).and(reqEnsureAppSettingsBase));
218
219
  export function isReqEnsureAppSettingsSkills(obj) {
219
220
  return !(reqEnsureAppSettingsSkills(obj) instanceof type.errors);
220
221
  }
221
- export const reqEnsureAppSettingsTheme = type({
222
+ export const reqEnsureAppSettingsTheme = lazyType(() => type({
222
223
  theme: "string",
223
- }).and(reqEnsureAppSettingsBase);
224
+ }).and(reqEnsureAppSettingsBase));
224
225
  export function isReqEnsureAppSettingsTheme(obj) {
225
226
  return !(reqEnsureAppSettingsTheme(obj) instanceof type.errors);
226
227
  }
227
- export const reqEnsureAppSettingsColorTheme = type({
228
+ export const reqEnsureAppSettingsColorTheme = lazyType(() => type({
228
229
  colorTheme: "string | null",
229
- }).and(reqEnsureAppSettingsBase);
230
+ }).and(reqEnsureAppSettingsBase));
230
231
  export function isReqEnsureAppSettingsColorTheme(obj) {
231
232
  return !(reqEnsureAppSettingsColorTheme(obj) instanceof type.errors);
232
233
  }
233
- export const reqEnsureAppSettingsStyle = type({
234
+ export const reqEnsureAppSettingsStyle = lazyType(() => type({
234
235
  style: Style.or("null"),
235
- }).and(reqEnsureAppSettingsBase);
236
+ }).and(reqEnsureAppSettingsBase));
236
237
  export function isReqEnsureAppSettingsStyle(obj) {
237
238
  return !(reqEnsureAppSettingsStyle(obj) instanceof type.errors);
238
239
  }
239
- export const reqEnsureAppSettingsDraftStyle = type({
240
+ export const reqEnsureAppSettingsDraftStyle = lazyType(() => type({
240
241
  draftStyle: Style.or("null"),
241
- }).and(reqEnsureAppSettingsBase);
242
+ }).and(reqEnsureAppSettingsBase));
242
243
  export function isReqEnsureAppSettingsDraftStyle(obj) {
243
244
  return !(reqEnsureAppSettingsDraftStyle(obj) instanceof type.errors);
244
245
  }
245
- export const reqEnsureAppSettingsStylePublish = type({
246
+ export const reqEnsureAppSettingsStylePublish = lazyType(() => type({
246
247
  stylePublish: "true",
247
- }).and(reqEnsureAppSettingsBase);
248
+ }).and(reqEnsureAppSettingsBase));
248
249
  export function isReqEnsureAppSettingsStylePublish(obj) {
249
250
  return !(reqEnsureAppSettingsStylePublish(obj) instanceof type.errors);
250
251
  }
251
- export const reqEnsureAppSettingsIconDescription = type({
252
+ export const reqEnsureAppSettingsIconDescription = lazyType(() => type({
252
253
  iconDescription: "string",
253
- }).and(reqEnsureAppSettingsBase);
254
+ }).and(reqEnsureAppSettingsBase));
254
255
  export function isReqEnsureAppSettingsIconDescription(obj) {
255
256
  return !(reqEnsureAppSettingsIconDescription(obj) instanceof type.errors);
256
257
  }
257
- export const reqEnsureAppSettingsIconRegen = type({
258
+ export const reqEnsureAppSettingsIconRegen = lazyType(() => type({
258
259
  iconRegen: "true",
259
- }).and(reqEnsureAppSettingsBase);
260
+ }).and(reqEnsureAppSettingsBase));
260
261
  export function isReqEnsureAppSettingsIconRegen(obj) {
261
262
  return !(reqEnsureAppSettingsIconRegen(obj) instanceof type.errors);
262
263
  }
263
- export const reqEnsureAppSettingsRuntime = type({
264
+ export const reqEnsureAppSettingsRuntime = lazyType(() => type({
264
265
  runtime: AIParams.partial().or("null"),
265
- }).and(reqEnsureAppSettingsBase);
266
+ }).and(reqEnsureAppSettingsBase));
266
267
  export function isReqEnsureAppSettingsRuntime(obj) {
267
268
  return !(reqEnsureAppSettingsRuntime(obj) instanceof type.errors);
268
269
  }
269
- export const reqEnsureAppSettingsCodegen = type({
270
+ export const reqEnsureAppSettingsCodegen = lazyType(() => type({
270
271
  codegen: AIParams.partial().or("null"),
271
- }).and(reqEnsureAppSettingsBase);
272
+ }).and(reqEnsureAppSettingsBase));
272
273
  export function isReqEnsureAppSettingsCodegen(obj) {
273
274
  return !(reqEnsureAppSettingsCodegen(obj) instanceof type.errors);
274
275
  }
275
- export const reqEnsureAppSettingsImg = type({
276
+ export const reqEnsureAppSettingsImg = lazyType(() => type({
276
277
  img: AIParams.partial().or("null"),
277
- }).and(reqEnsureAppSettingsBase);
278
+ }).and(reqEnsureAppSettingsBase));
278
279
  export function isReqEnsureAppSettingsImg(obj) {
279
280
  return !(reqEnsureAppSettingsImg(obj) instanceof type.errors);
280
281
  }
281
- export const reqEnsureAppSettingsEnv = type({
282
+ export const reqEnsureAppSettingsEnv = lazyType(() => type({
282
283
  env: KVString.array(),
283
- }).and(reqEnsureAppSettingsBase);
284
+ }).and(reqEnsureAppSettingsBase));
284
285
  export function isReqEnsureAppSettingsEnv(obj) {
285
286
  return !(reqEnsureAppSettingsEnv(obj) instanceof type.errors);
286
287
  }
287
- export const reqEnsureAppSettingsSecretSet = type({
288
+ export const reqEnsureAppSettingsSecretSet = lazyType(() => type({
288
289
  secretSet: type({ key: "string", value: "string" }),
289
- }).and(reqEnsureAppSettingsBase);
290
+ }).and(reqEnsureAppSettingsBase));
290
291
  export function isReqEnsureAppSettingsSecretSet(obj) {
291
292
  return !(reqEnsureAppSettingsSecretSet(obj) instanceof type.errors);
292
293
  }
293
- export const reqEnsureAppSettingsSecretRemove = type({
294
+ export const reqEnsureAppSettingsSecretRemove = lazyType(() => type({
294
295
  secretRemove: type({ key: "string" }),
295
- }).and(reqEnsureAppSettingsBase);
296
+ }).and(reqEnsureAppSettingsBase));
296
297
  export function isReqEnsureAppSettingsSecretRemove(obj) {
297
298
  return !(reqEnsureAppSettingsSecretRemove(obj) instanceof type.errors);
298
299
  }
299
- export const reqEnsureAppSettingsDbAcl = type({
300
+ export const reqEnsureAppSettingsDbAcl = lazyType(() => type({
300
301
  dbAcl: type({
301
302
  dbName: "string",
302
303
  acl: dbAcl,
303
304
  }),
304
- }).and(reqEnsureAppSettingsBase);
305
+ }).and(reqEnsureAppSettingsBase));
305
306
  export function isReqEnsureAppSettingsDbAcl(obj) {
306
307
  return !(reqEnsureAppSettingsDbAcl(obj) instanceof type.errors);
307
308
  }
308
- export const reqEnsureAppSettingsCachedSuggestion = type({
309
+ export const reqEnsureAppSettingsCachedSuggestion = lazyType(() => type({
309
310
  cachedSuggestion: type({
310
311
  key: "string",
311
312
  fsId: "string",
312
313
  sourceFsId: "string",
313
314
  }),
314
- }).and(reqEnsureAppSettingsBase);
315
+ }).and(reqEnsureAppSettingsBase));
315
316
  export function isReqEnsureAppSettingsCachedSuggestion(obj) {
316
317
  return !(reqEnsureAppSettingsCachedSuggestion(obj) instanceof type.errors);
317
318
  }
318
- export const reqEnsureAppSettingsCachedSuggestionBless = type({
319
+ export const reqEnsureAppSettingsCachedSuggestionBless = lazyType(() => type({
319
320
  cachedSuggestionBless: type({
320
321
  key: "string",
321
322
  "fsId?": "string",
@@ -324,52 +325,52 @@ export const reqEnsureAppSettingsCachedSuggestionBless = type({
324
325
  "targetAppSlug?": "string",
325
326
  op: "'bless' | 'revoke'",
326
327
  }),
327
- }).and(reqEnsureAppSettingsBase);
328
+ }).and(reqEnsureAppSettingsBase));
328
329
  export function isReqEnsureAppSettingsCachedSuggestionBless(obj) {
329
330
  return !(reqEnsureAppSettingsCachedSuggestionBless(obj) instanceof type.errors);
330
331
  }
331
- export const reqEnsureAppSettingsRecommendedAdd = type({
332
+ export const reqEnsureAppSettingsRecommendedAdd = lazyType(() => type({
332
333
  recommendedAdd: type({ ownerHandle: "string", appSlug: "string" }),
333
- }).and(reqEnsureAppSettingsBase);
334
+ }).and(reqEnsureAppSettingsBase));
334
335
  export function isReqEnsureAppSettingsRecommendedAdd(obj) {
335
336
  return !(reqEnsureAppSettingsRecommendedAdd(obj) instanceof type.errors);
336
337
  }
337
- export const reqEnsureAppSettingsRecommendedRemove = type({
338
+ export const reqEnsureAppSettingsRecommendedRemove = lazyType(() => type({
338
339
  recommendedRemove: type({ id: "string" }),
339
- }).and(reqEnsureAppSettingsBase);
340
+ }).and(reqEnsureAppSettingsBase));
340
341
  export function isReqEnsureAppSettingsRecommendedRemove(obj) {
341
342
  return !(reqEnsureAppSettingsRecommendedRemove(obj) instanceof type.errors);
342
343
  }
343
- export const reqEnsureAppSettingsRecommendedMask = type({
344
+ export const reqEnsureAppSettingsRecommendedMask = lazyType(() => type({
344
345
  recommendedMask: type({ ownerHandle: "string", appSlug: "string", op: "'mask' | 'unmask'" }),
345
- }).and(reqEnsureAppSettingsBase);
346
+ }).and(reqEnsureAppSettingsBase));
346
347
  export function isReqEnsureAppSettingsRecommendedMask(obj) {
347
348
  return !(reqEnsureAppSettingsRecommendedMask(obj) instanceof type.errors);
348
349
  }
349
- export const reqEnsureAppSettingsDbAclRemove = type({
350
+ export const reqEnsureAppSettingsDbAclRemove = lazyType(() => type({
350
351
  dbAclRemove: type({
351
352
  dbName: "string",
352
353
  }),
353
- }).and(reqEnsureAppSettingsBase);
354
+ }).and(reqEnsureAppSettingsBase));
354
355
  export function isReqEnsureAppSettingsDbAclRemove(obj) {
355
356
  return !(reqEnsureAppSettingsDbAclRemove(obj) instanceof type.errors);
356
357
  }
357
- export const reqEnsureAppSettingsPrivacySensitive = type({
358
+ export const reqEnsureAppSettingsPrivacySensitive = lazyType(() => type({
358
359
  privacySensitive: "boolean",
359
- }).and(reqEnsureAppSettingsBase);
360
+ }).and(reqEnsureAppSettingsBase));
360
361
  export function isReqEnsureAppSettingsPrivacySensitive(obj) {
361
362
  return !(reqEnsureAppSettingsPrivacySensitive(obj) instanceof type.errors);
362
363
  }
363
- export const reqEnsureAppSettingsAnonWrite = type({
364
+ export const reqEnsureAppSettingsAnonWrite = lazyType(() => type({
364
365
  anonWrite: anonWriteMode,
365
- }).and(reqEnsureAppSettingsBase);
366
+ }).and(reqEnsureAppSettingsBase));
366
367
  export function isReqEnsureAppSettingsAnonWrite(obj) {
367
368
  return !(reqEnsureAppSettingsAnonWrite(obj) instanceof type.errors);
368
369
  }
369
- export const reqEnsureAppSettingsPosture = type({
370
+ export const reqEnsureAppSettingsPosture = lazyType(() => type({
370
371
  posture: postureIntent,
371
372
  "anonWrite?": anonWriteMode,
372
- }).and(reqEnsureAppSettingsBase);
373
+ }).and(reqEnsureAppSettingsBase));
373
374
  export function isReqEnsureAppSettingsPosture(obj) {
374
375
  return !(reqEnsureAppSettingsPosture(obj) instanceof type.errors);
375
376
  }
@@ -401,7 +402,7 @@ export function isReqEnsureAppSettings(obj) {
401
402
  isReqEnsureAppSettingsPosture(obj) ||
402
403
  isReqEnsureAppSettingsBase(obj));
403
404
  }
404
- export const AppSettings = type({
405
+ export const AppSettings = lazyType(() => type({
405
406
  entries: ActiveEntry.array(),
406
407
  entry: type({
407
408
  settings: {
@@ -428,21 +429,21 @@ export const AppSettings = type({
428
429
  "cachedSuggestions?": type({ "[string]": cachedSuggestionRecord }),
429
430
  "cachedSuggestionBlesses?": type({ "[string]": cachedSuggestionBlessRecord }),
430
431
  }),
431
- });
432
- export const dbEnvelopeRow = type({
432
+ }));
433
+ export const dbEnvelopeRow = lazyType(() => type({
433
434
  dbName: "string",
434
435
  provenance: "'platform-default' | 'your-pin'",
435
436
  "stored?": dbAcl,
436
437
  effective: dbAcl,
437
438
  absorbed: "boolean",
438
- });
439
- export const appEnvelopeReadout = type({
439
+ }));
440
+ export const appEnvelopeReadout = lazyType(() => type({
440
441
  posture: dbPosture,
441
442
  anonWrite: anonWriteMode,
442
443
  wildcard: dbAcl,
443
444
  dbs: dbEnvelopeRow.array(),
444
- });
445
- export const resEnsureAppSettings = type({
445
+ }));
446
+ export const resEnsureAppSettings = lazyType(() => type({
446
447
  type: "'vibes.diy.res-ensure-app-settings'",
447
448
  userId: "string",
448
449
  appSlug: "string",
@@ -454,11 +455,11 @@ export const resEnsureAppSettings = type({
454
455
  "envelope?": appEnvelopeReadout,
455
456
  updated: "string",
456
457
  created: "string",
457
- });
458
+ }));
458
459
  export function isResEnsureAppSettings(obj) {
459
460
  return !(resEnsureAppSettings(obj) instanceof type.errors);
460
461
  }
461
- export const reqListApplicationChats = type({
462
+ export const reqListApplicationChats = lazyType(() => type({
462
463
  type: "'vibes.diy.req-list-application-chats'",
463
464
  auth: dashAuthType,
464
465
  "appSlug?": "string",
@@ -466,62 +467,62 @@ export const reqListApplicationChats = type({
466
467
  "limit?": "number",
467
468
  "cursor?": "string",
468
469
  "asHandle?": "string",
469
- });
470
- export const resListApplicationChatsItem = type({
470
+ }));
471
+ export const resListApplicationChatsItem = lazyType(() => type({
471
472
  chatId: "string",
472
473
  appSlug: "string",
473
474
  ownerHandle: "string",
474
475
  created: "string",
475
476
  "userHandle?": "string",
476
- });
477
- export const resListApplicationChats = type({
477
+ }));
478
+ export const resListApplicationChats = lazyType(() => type({
478
479
  type: "'vibes.diy.res-list-application-chats'",
479
480
  items: resListApplicationChatsItem.array(),
480
481
  "nextCursor?": "string",
481
- });
482
+ }));
482
483
  export function isResListApplicationChats(obj) {
483
484
  return !(resListApplicationChats(obj) instanceof type.errors);
484
485
  }
485
- export const reqListCodegenChats = type({
486
+ export const reqListCodegenChats = lazyType(() => type({
486
487
  type: "'vibes.diy.req-list-codegen-chats'",
487
488
  auth: dashAuthType,
488
489
  "appSlug?": "string",
489
490
  "ownerHandle?": "string",
490
491
  "limit?": "number",
491
492
  "cursor?": "string",
492
- });
493
- export const resListCodegenChatsItem = type({
493
+ }));
494
+ export const resListCodegenChatsItem = lazyType(() => type({
494
495
  chatId: "string",
495
496
  appSlug: "string",
496
497
  ownerHandle: "string",
497
498
  created: "string",
498
- });
499
- export const resListCodegenChats = type({
499
+ }));
500
+ export const resListCodegenChats = lazyType(() => type({
500
501
  type: "'vibes.diy.res-list-codegen-chats'",
501
502
  items: resListCodegenChatsItem.array(),
502
503
  "nextCursor?": "string",
503
- });
504
+ }));
504
505
  export function isResListCodegenChats(obj) {
505
506
  return !(resListCodegenChats(obj) instanceof type.errors);
506
507
  }
507
- export const evtAppSetting = type({
508
+ export const evtAppSetting = lazyType(() => type({
508
509
  type: "'vibes.diy.evt-app-setting'",
509
510
  ownerHandle: "string",
510
511
  appSlug: "string",
511
512
  settings: ActiveEntry.array(),
512
- });
513
+ }));
513
514
  export function isEvtAppSetting(obj) {
514
515
  return !(evtAppSetting(obj) instanceof type.errors);
515
516
  }
516
- export const evtBackendArm = type({
517
+ export const evtBackendArm = lazyType(() => type({
517
518
  type: "'vibes.diy.evt-backend-arm'",
518
519
  ownerHandle: "string",
519
520
  appSlug: "string",
520
- });
521
+ }));
521
522
  export function isEvtBackendArm(obj) {
522
523
  return !(evtBackendArm(obj) instanceof type.errors);
523
524
  }
524
- export const evtBackendOnChange = type({
525
+ export const evtBackendOnChange = lazyType(() => type({
525
526
  type: "'vibes.diy.evt-backend-onChange'",
526
527
  ownerHandle: "string",
527
528
  appSlug: "string",
@@ -533,36 +534,36 @@ export const evtBackendOnChange = type({
533
534
  "oldDoc?": "unknown | null",
534
535
  depth: "number",
535
536
  "writerUserId?": "string | null",
536
- });
537
+ }));
537
538
  export function isEvtBackendOnChange(obj) {
538
539
  return !(evtBackendOnChange(obj) instanceof type.errors);
539
540
  }
540
- export const reqRetentionPreview = type({
541
+ export const reqRetentionPreview = lazyType(() => type({
541
542
  type: "'vibes.diy.req-retention-preview'",
542
543
  auth: dashAuthType,
543
544
  step: "string",
544
545
  "userId?": "string",
545
- });
546
- export const resRetentionPreview = type({
546
+ }));
547
+ export const resRetentionPreview = lazyType(() => type({
547
548
  type: "'vibes.diy.res-retention-preview'",
548
549
  userId: "string",
549
550
  step: "string",
550
551
  enqueued: "boolean",
551
- });
552
+ }));
552
553
  export function isResRetentionPreview(obj) {
553
554
  return !(resRetentionPreview(obj) instanceof type.errors);
554
555
  }
555
- export const reqRetentionResetClaim = type({
556
+ export const reqRetentionResetClaim = lazyType(() => type({
556
557
  type: "'vibes.diy.req-retention-reset-claim'",
557
558
  auth: dashAuthType,
558
559
  userId: "string",
559
560
  "step?": "string",
560
- });
561
- export const resRetentionResetClaim = type({
561
+ }));
562
+ export const resRetentionResetClaim = lazyType(() => type({
562
563
  type: "'vibes.diy.res-retention-reset-claim'",
563
564
  userId: "string",
564
565
  cleared: "string[]",
565
- });
566
+ }));
566
567
  export function isResRetentionResetClaim(obj) {
567
568
  return !(resRetentionResetClaim(obj) instanceof type.errors);
568
569
  }