@ricajs/contracts 0.0.0-stage → 0.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.
Files changed (58) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +153 -2
  3. package/action-review.d.ts +120 -0
  4. package/action-review.js +40 -0
  5. package/auto-review.d.ts +32 -0
  6. package/auto-review.js +14 -0
  7. package/commitments.d.ts +87 -0
  8. package/commitments.js +33 -0
  9. package/deployment-plugins.d.ts +7 -0
  10. package/deployment-plugins.js +2 -0
  11. package/health.d.ts +7 -0
  12. package/health.js +1 -0
  13. package/local-users.d.ts +17 -0
  14. package/local-users.js +6 -0
  15. package/management.d.ts +640 -0
  16. package/management.js +235 -0
  17. package/memory.d.ts +14 -0
  18. package/memory.js +1 -0
  19. package/model-provider.d.ts +40 -0
  20. package/model-provider.js +10 -0
  21. package/package.json +93 -3
  22. package/plans.d.ts +50 -0
  23. package/plans.js +20 -0
  24. package/platform-reader.d.ts +26 -0
  25. package/platform-reader.js +9 -0
  26. package/platform-reply-executor.d.ts +13 -0
  27. package/platform-reply-executor.js +3 -0
  28. package/plugin-status.d.ts +277 -0
  29. package/plugin-status.js +54 -0
  30. package/run-continuity.d.ts +84 -0
  31. package/run-continuity.js +1 -0
  32. package/schedules.d.ts +46 -0
  33. package/schedules.js +18 -0
  34. package/simulation-follow-up.d.ts +35 -0
  35. package/simulation-follow-up.js +29 -0
  36. package/simulation-observability.d.ts +223 -0
  37. package/simulation-observability.js +85 -0
  38. package/simulation-platform.d.ts +33 -0
  39. package/simulation-platform.js +7 -0
  40. package/source/action-review.ts +45 -0
  41. package/source/auto-review.ts +22 -0
  42. package/source/commitments.ts +39 -0
  43. package/source/deployment-plugins.ts +4 -0
  44. package/source/health.ts +4 -0
  45. package/source/local-users.ts +8 -0
  46. package/source/management.ts +246 -0
  47. package/source/memory.ts +15 -0
  48. package/source/model-provider.ts +29 -0
  49. package/source/package.json +43 -0
  50. package/source/plans.ts +22 -0
  51. package/source/platform-reader.ts +27 -0
  52. package/source/platform-reply-executor.ts +10 -0
  53. package/source/plugin-status.ts +67 -0
  54. package/source/run-continuity.ts +60 -0
  55. package/source/schedules.ts +22 -0
  56. package/source/simulation-follow-up.ts +35 -0
  57. package/source/simulation-observability.ts +94 -0
  58. package/source/simulation-platform.ts +39 -0
@@ -0,0 +1,640 @@
1
+ import { z } from '@hono/zod-openapi';
2
+ export declare const resourceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
3
+ export declare const reasonInput: z.ZodObject<{
4
+ reason: z.ZodString;
5
+ }, z.core.$strict>;
6
+ export declare const maxAiDisclosureLength = 3000;
7
+ export declare const coreProfile: z.ZodObject<{
8
+ name: z.ZodOptional<z.ZodString>;
9
+ aiDisclosure: z.ZodString;
10
+ dailyModelBudget: z.ZodOptional<z.ZodNumber>;
11
+ fictionalBackground: z.ZodOptional<z.ZodString>;
12
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ privacyRules: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
+ }, z.core.$strict>;
15
+ export declare const dailyEnergyInput: z.ZodObject<{
16
+ reason: z.ZodString;
17
+ utcDay: z.ZodISODate;
18
+ energy: z.ZodEnum<{
19
+ LOW: "LOW";
20
+ NORMAL: "NORMAL";
21
+ HIGH: "HIGH";
22
+ }>;
23
+ }, z.core.$strict>;
24
+ export declare const dailyEnergyView: z.ZodObject<{
25
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
26
+ utcDay: z.ZodISODate;
27
+ energy: z.ZodEnum<{
28
+ LOW: "LOW";
29
+ NORMAL: "NORMAL";
30
+ HIGH: "HIGH";
31
+ }>;
32
+ approvedAt: z.ZodISODateTime;
33
+ }, z.core.$strip>;
34
+ export declare const maxIdentityWritingPromptLength = 4000;
35
+ export declare const identityProfile: z.ZodObject<{
36
+ displayName: z.ZodOptional<z.ZodString>;
37
+ timezone: z.ZodOptional<z.ZodString>;
38
+ stateRule: z.ZodOptional<z.ZodObject<{
39
+ motivationHalfLifeHours: z.ZodNumber;
40
+ affectHalfLifeHours: z.ZodNumber;
41
+ deltas: z.ZodObject<{
42
+ POST: z.ZodArray<z.ZodNumber>;
43
+ MENTION: z.ZodArray<z.ZodNumber>;
44
+ REPLY: z.ZodArray<z.ZodNumber>;
45
+ }, z.core.$strict>;
46
+ }, z.core.$strict>>;
47
+ duplicateReview: z.ZodOptional<z.ZodObject<{
48
+ similarityPercent: z.ZodNumber;
49
+ windowHours: z.ZodNumber;
50
+ }, z.core.$strict>>;
51
+ autonomousGoal: z.ZodOptional<z.ZodObject<{
52
+ topic: z.ZodLiteral<"REVIEW_INTERACTIONS">;
53
+ maxDays: z.ZodNumber;
54
+ budget: z.ZodNumber;
55
+ }, z.core.$strict>>;
56
+ writingStyle: z.ZodOptional<z.ZodEnum<{
57
+ neutral: "neutral";
58
+ formal: "formal";
59
+ casual: "casual";
60
+ concise: "concise";
61
+ }>>;
62
+ draftModelProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>, z.ZodLiteral<"simulated">]>>;
63
+ writingPrompt: z.ZodOptional<z.ZodString>;
64
+ }, z.core.$strict>;
65
+ export declare const characterInput: z.ZodObject<{
66
+ slug: z.ZodString;
67
+ timezone: z.ZodString;
68
+ coreProfile: z.ZodObject<{
69
+ name: z.ZodOptional<z.ZodString>;
70
+ aiDisclosure: z.ZodString;
71
+ dailyModelBudget: z.ZodOptional<z.ZodNumber>;
72
+ fictionalBackground: z.ZodOptional<z.ZodString>;
73
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
+ privacyRules: z.ZodOptional<z.ZodArray<z.ZodString>>;
75
+ }, z.core.$strict>;
76
+ }, z.core.$strict>;
77
+ export declare const coreInput: z.ZodObject<{
78
+ reason: z.ZodOptional<z.ZodString>;
79
+ coreProfile: z.ZodObject<{
80
+ name: z.ZodOptional<z.ZodString>;
81
+ aiDisclosure: z.ZodString;
82
+ dailyModelBudget: z.ZodOptional<z.ZodNumber>;
83
+ fictionalBackground: z.ZodOptional<z.ZodString>;
84
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
+ privacyRules: z.ZodOptional<z.ZodArray<z.ZodString>>;
86
+ }, z.core.$strict>;
87
+ }, z.core.$strict>;
88
+ export declare const identityInput: z.ZodObject<{
89
+ slug: z.ZodString;
90
+ roleProfile: z.ZodObject<{
91
+ displayName: z.ZodOptional<z.ZodString>;
92
+ timezone: z.ZodOptional<z.ZodString>;
93
+ stateRule: z.ZodOptional<z.ZodObject<{
94
+ motivationHalfLifeHours: z.ZodNumber;
95
+ affectHalfLifeHours: z.ZodNumber;
96
+ deltas: z.ZodObject<{
97
+ POST: z.ZodArray<z.ZodNumber>;
98
+ MENTION: z.ZodArray<z.ZodNumber>;
99
+ REPLY: z.ZodArray<z.ZodNumber>;
100
+ }, z.core.$strict>;
101
+ }, z.core.$strict>>;
102
+ duplicateReview: z.ZodOptional<z.ZodObject<{
103
+ similarityPercent: z.ZodNumber;
104
+ windowHours: z.ZodNumber;
105
+ }, z.core.$strict>>;
106
+ autonomousGoal: z.ZodOptional<z.ZodObject<{
107
+ topic: z.ZodLiteral<"REVIEW_INTERACTIONS">;
108
+ maxDays: z.ZodNumber;
109
+ budget: z.ZodNumber;
110
+ }, z.core.$strict>>;
111
+ writingStyle: z.ZodOptional<z.ZodEnum<{
112
+ neutral: "neutral";
113
+ formal: "formal";
114
+ casual: "casual";
115
+ concise: "concise";
116
+ }>>;
117
+ draftModelProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>, z.ZodLiteral<"simulated">]>>;
118
+ writingPrompt: z.ZodOptional<z.ZodString>;
119
+ }, z.core.$strict>;
120
+ }, z.core.$strict>;
121
+ export declare const identityUpdate: z.ZodObject<{
122
+ reason: z.ZodOptional<z.ZodString>;
123
+ roleProfile: z.ZodObject<{
124
+ displayName: z.ZodOptional<z.ZodString>;
125
+ timezone: z.ZodOptional<z.ZodString>;
126
+ stateRule: z.ZodOptional<z.ZodObject<{
127
+ motivationHalfLifeHours: z.ZodNumber;
128
+ affectHalfLifeHours: z.ZodNumber;
129
+ deltas: z.ZodObject<{
130
+ POST: z.ZodArray<z.ZodNumber>;
131
+ MENTION: z.ZodArray<z.ZodNumber>;
132
+ REPLY: z.ZodArray<z.ZodNumber>;
133
+ }, z.core.$strict>;
134
+ }, z.core.$strict>>;
135
+ duplicateReview: z.ZodOptional<z.ZodObject<{
136
+ similarityPercent: z.ZodNumber;
137
+ windowHours: z.ZodNumber;
138
+ }, z.core.$strict>>;
139
+ autonomousGoal: z.ZodOptional<z.ZodObject<{
140
+ topic: z.ZodLiteral<"REVIEW_INTERACTIONS">;
141
+ maxDays: z.ZodNumber;
142
+ budget: z.ZodNumber;
143
+ }, z.core.$strict>>;
144
+ writingStyle: z.ZodOptional<z.ZodEnum<{
145
+ neutral: "neutral";
146
+ formal: "formal";
147
+ casual: "casual";
148
+ concise: "concise";
149
+ }>>;
150
+ draftModelProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>, z.ZodLiteral<"simulated">]>>;
151
+ writingPrompt: z.ZodOptional<z.ZodString>;
152
+ }, z.core.$strict>;
153
+ }, z.core.$strict>;
154
+ export declare const simulationAccountRegistration: z.ZodObject<{
155
+ platform: z.ZodEnum<{
156
+ "mock-a": "mock-a";
157
+ "mock-b": "mock-b";
158
+ }>;
159
+ instanceKey: z.ZodString;
160
+ remoteAccountId: z.ZodString;
161
+ }, z.core.$strict>;
162
+ export declare const accountInput: z.ZodObject<{
163
+ platform: z.ZodEnum<{
164
+ "mock-a": "mock-a";
165
+ "mock-b": "mock-b";
166
+ }>;
167
+ instanceKey: z.ZodString;
168
+ remoteAccountId: z.ZodString;
169
+ identityId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
170
+ }, z.core.$strict>;
171
+ export declare const accountBindingInput: z.ZodObject<{
172
+ registrationId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
173
+ identityId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
174
+ }, z.core.$strict>;
175
+ export declare const accountRegistrationView: z.ZodObject<{
176
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
177
+ platform: z.ZodString;
178
+ instanceKey: z.ZodString;
179
+ remoteAccountId: z.ZodString;
180
+ }, z.core.$strict>;
181
+ export declare const automationEligibilityView: z.ZodObject<{
182
+ accountId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
183
+ identityId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
184
+ bindingVersion: z.ZodNumber;
185
+ eligible: z.ZodLiteral<false>;
186
+ reasons: z.ZodArray<z.ZodEnum<{
187
+ BINDING_INACTIVE: "BINDING_INACTIVE";
188
+ SIMULATION_ONLY: "SIMULATION_ONLY";
189
+ UNSUPPORTED_ADAPTER: "UNSUPPORTED_ADAPTER";
190
+ EXTERNAL_AUTO_DISABLED: "EXTERNAL_AUTO_DISABLED";
191
+ }>>;
192
+ }, z.core.$strip>;
193
+ export declare const controlInput: z.ZodObject<{
194
+ reason: z.ZodOptional<z.ZodString>;
195
+ scope: z.ZodEnum<{
196
+ CHARACTER: "CHARACTER";
197
+ IDENTITY: "IDENTITY";
198
+ ACCOUNT: "ACCOUNT";
199
+ }>;
200
+ scopeId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
201
+ operation: z.ZodEnum<{
202
+ PAUSE: "PAUSE";
203
+ RESUME: "RESUME";
204
+ REVOKE_ACCOUNT: "REVOKE_ACCOUNT";
205
+ }>;
206
+ }, z.core.$strict>;
207
+ export declare const membershipInput: z.ZodObject<{
208
+ reason: z.ZodString;
209
+ subject: z.ZodString;
210
+ action: z.ZodEnum<{
211
+ GRANT: "GRANT";
212
+ REVOKE: "REVOKE";
213
+ }>;
214
+ }, z.core.$strict>;
215
+ export declare const identityReflectionView: z.ZodObject<{
216
+ identityId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
217
+ utcDay: z.ZodISODate;
218
+ coreVersion: z.ZodNumber;
219
+ identityVersion: z.ZodNumber;
220
+ createdAt: z.ZodISODateTime;
221
+ candidateBeliefId: z.ZodNullable<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
222
+ fictionalProfile: z.ZodObject<{
223
+ kind: z.ZodLiteral<"FICTIONAL_PROFILE">;
224
+ present: z.ZodBoolean;
225
+ }, z.core.$strip>;
226
+ observedActivity: z.ZodObject<{
227
+ kind: z.ZodLiteral<"OBSERVED_ACTIVITY">;
228
+ simulatedReceipts: z.ZodNumber;
229
+ }, z.core.$strip>;
230
+ unverifiedExternal: z.ZodObject<{
231
+ kind: z.ZodLiteral<"UNVERIFIED_EXTERNAL">;
232
+ inboundMessages: z.ZodNumber;
233
+ }, z.core.$strip>;
234
+ }, z.core.$strip>;
235
+ export declare const beliefInput: z.ZodObject<{
236
+ reason: z.ZodString;
237
+ kind: z.ZodEnum<{
238
+ OPINION: "OPINION";
239
+ PREFERENCE: "PREFERENCE";
240
+ }>;
241
+ statement: z.ZodString;
242
+ evidence: z.ZodArray<z.ZodObject<{
243
+ memoryId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
244
+ memoryRevision: z.ZodNumber;
245
+ direction: z.ZodEnum<{
246
+ SUPPORT: "SUPPORT";
247
+ OPPOSE: "OPPOSE";
248
+ }>;
249
+ weight: z.ZodNumber;
250
+ }, z.core.$strip>>;
251
+ }, z.core.$strict>;
252
+ export declare const beliefRestoreInput: z.ZodObject<{
253
+ reason: z.ZodString;
254
+ restoreVersion: z.ZodNumber;
255
+ }, z.core.$strict>;
256
+ export declare const beliefView: z.ZodObject<{
257
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
258
+ identityId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
259
+ version: z.ZodNumber;
260
+ kind: z.ZodEnum<{
261
+ OPINION: "OPINION";
262
+ PREFERENCE: "PREFERENCE";
263
+ }>;
264
+ status: z.ZodEnum<{
265
+ ACTIVE: "ACTIVE";
266
+ PENDING: "PENDING";
267
+ DISPUTED: "DISPUTED";
268
+ INVALIDATED: "INVALIDATED";
269
+ }>;
270
+ statement: z.ZodNullable<z.ZodString>;
271
+ confidence: z.ZodNullable<z.ZodNumber>;
272
+ reason: z.ZodNullable<z.ZodString>;
273
+ restoredFrom: z.ZodNullable<z.ZodNumber>;
274
+ createdAt: z.ZodISODateTime;
275
+ evidence: z.ZodArray<z.ZodObject<{
276
+ memoryId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
277
+ memoryRevision: z.ZodNumber;
278
+ direction: z.ZodEnum<{
279
+ SUPPORT: "SUPPORT";
280
+ OPPOSE: "OPPOSE";
281
+ }>;
282
+ weight: z.ZodNumber;
283
+ sourceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
284
+ }, z.core.$strip>>;
285
+ remainingEvidence: z.ZodNullable<z.ZodObject<{
286
+ supportingSources: z.ZodNumber;
287
+ opposingSources: z.ZodNumber;
288
+ confidence: z.ZodNumber;
289
+ }, z.core.$strip>>;
290
+ }, z.core.$strip>;
291
+ export declare const manualGoalInput: z.ZodObject<{
292
+ reason: z.ZodString;
293
+ title: z.ZodString;
294
+ status: z.ZodEnum<{
295
+ ACTIVE: "ACTIVE";
296
+ DRAFT: "DRAFT";
297
+ PAUSED: "PAUSED";
298
+ DONE: "DONE";
299
+ CANCELED: "CANCELED";
300
+ }>;
301
+ priority: z.ZodNumber;
302
+ budget: z.ZodNumber;
303
+ dueAt: z.ZodISODateTime;
304
+ nextStep: z.ZodOptional<z.ZodString>;
305
+ }, z.core.$strict>;
306
+ export declare const manualGoalView: z.ZodObject<{
307
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
308
+ identityId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
309
+ version: z.ZodNumber;
310
+ origin: z.ZodEnum<{
311
+ ADMIN: "ADMIN";
312
+ SELF: "SELF";
313
+ }>;
314
+ topic: z.ZodNullable<z.ZodLiteral<"REVIEW_INTERACTIONS">>;
315
+ reflectionDay: z.ZodNullable<z.ZodISODate>;
316
+ title: z.ZodString;
317
+ status: z.ZodEnum<{
318
+ ACTIVE: "ACTIVE";
319
+ DRAFT: "DRAFT";
320
+ PAUSED: "PAUSED";
321
+ DONE: "DONE";
322
+ CANCELED: "CANCELED";
323
+ EXPIRED: "EXPIRED";
324
+ }>;
325
+ priority: z.ZodNumber;
326
+ budget: z.ZodNumber;
327
+ dueAt: z.ZodISODateTime;
328
+ nextStep: z.ZodNullable<z.ZodString>;
329
+ createdAt: z.ZodISODateTime;
330
+ }, z.core.$strip>;
331
+ export declare const contactBoundaryInput: z.ZodObject<{
332
+ reason: z.ZodString;
333
+ blocked: z.ZodBoolean;
334
+ }, z.core.$strict>;
335
+ export declare const contactBoundaryView: z.ZodObject<{
336
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
337
+ accountId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
338
+ version: z.ZodNumber;
339
+ blocked: z.ZodBoolean;
340
+ changedAt: z.ZodNullable<z.ZodISODateTime>;
341
+ reason: z.ZodNullable<z.ZodString>;
342
+ }, z.core.$strip>;
343
+ export declare const memoryCorrectionInput: z.ZodObject<{
344
+ reason: z.ZodString;
345
+ content: z.ZodString;
346
+ }, z.core.$strict>;
347
+ export declare const memoryProvenanceView: z.ZodObject<{
348
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
349
+ revision: z.ZodNumber;
350
+ status: z.ZodEnum<{
351
+ ACTIVE: "ACTIVE";
352
+ REVOKED: "REVOKED";
353
+ }>;
354
+ parentMemoryId: z.ZodNullable<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
355
+ sources: z.ZodArray<z.ZodObject<{
356
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
357
+ kind: z.ZodString;
358
+ classification: z.ZodEnum<{
359
+ PUBLIC: "PUBLIC";
360
+ PERSONAL: "PERSONAL";
361
+ CONFIDENTIAL: "CONFIDENTIAL";
362
+ RESTRICTED: "RESTRICTED";
363
+ }>;
364
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
365
+ }, z.core.$strip>>;
366
+ corrections: z.ZodArray<z.ZodObject<{
367
+ revision: z.ZodNumber;
368
+ actorId: z.ZodString;
369
+ reason: z.ZodString;
370
+ createdAt: z.ZodISODateTime;
371
+ }, z.core.$strip>>;
372
+ }, z.core.$strip>;
373
+ export declare const memoryGrantInput: z.ZodObject<{
374
+ reason: z.ZodString;
375
+ memoryId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
376
+ recipientIdentityId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
377
+ recipientAccountId: z.ZodOptional<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
378
+ recipientConversationId: z.ZodOptional<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
379
+ recipientContactId: z.ZodOptional<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
380
+ purpose: z.ZodEnum<{
381
+ INTERNAL_CONTEXT: "INTERNAL_CONTEXT";
382
+ DECISION_SUPPORT: "DECISION_SUPPORT";
383
+ PUBLIC_REFERENCE: "PUBLIC_REFERENCE";
384
+ PRIVATE_REPLY: "PRIVATE_REPLY";
385
+ }>;
386
+ audience: z.ZodOptional<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
387
+ validFrom: z.ZodISODateTime;
388
+ validUntil: z.ZodISODateTime;
389
+ }, z.core.$strict>;
390
+ export declare const listQuery: z.ZodObject<{
391
+ limit: z.ZodOptional<z.ZodString>;
392
+ cursor: z.ZodOptional<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
393
+ }, z.core.$strip>;
394
+ export declare const memoryListQuery: z.ZodObject<{
395
+ limit: z.ZodOptional<z.ZodString>;
396
+ cursor: z.ZodOptional<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
397
+ identityId: z.ZodOptional<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
398
+ scope: z.ZodOptional<z.ZodEnum<{
399
+ IDENTITY: "IDENTITY";
400
+ ACCOUNT: "ACCOUNT";
401
+ CORE: "CORE";
402
+ CONVERSATION: "CONVERSATION";
403
+ }>>;
404
+ status: z.ZodOptional<z.ZodEnum<{
405
+ ACTIVE: "ACTIVE";
406
+ REVOKED: "REVOKED";
407
+ }>>;
408
+ }, z.core.$strip>;
409
+ export declare const grantListQuery: z.ZodObject<{
410
+ limit: z.ZodOptional<z.ZodString>;
411
+ cursor: z.ZodOptional<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
412
+ memoryId: z.ZodOptional<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
413
+ }, z.core.$strip>;
414
+ export declare const memberListQuery: z.ZodObject<{
415
+ limit: z.ZodOptional<z.ZodString>;
416
+ after: z.ZodOptional<z.ZodString>;
417
+ }, z.core.$strip>;
418
+ export declare const memberPage: z.ZodObject<{
419
+ items: z.ZodArray<z.ZodObject<{
420
+ subject: z.ZodString;
421
+ }, z.core.$strip>>;
422
+ nextCursor: z.ZodNullable<z.ZodString>;
423
+ }, z.core.$strip>;
424
+ export declare const conversationListQuery: z.ZodObject<{
425
+ limit: z.ZodOptional<z.ZodString>;
426
+ cursor: z.ZodOptional<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
427
+ accountId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
428
+ channel: z.ZodOptional<z.ZodEnum<{
429
+ PUBLIC: "PUBLIC";
430
+ PRIVATE: "PRIVATE";
431
+ }>>;
432
+ }, z.core.$strip>;
433
+ export declare const conversationOption: z.ZodObject<{
434
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
435
+ channel: z.ZodEnum<{
436
+ PUBLIC: "PUBLIC";
437
+ PRIVATE: "PRIVATE";
438
+ }>;
439
+ privateContactId: z.ZodNullable<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
440
+ contactLabel: z.ZodNullable<z.ZodString>;
441
+ }, z.core.$strip>;
442
+ export declare const beliefSummary: z.ZodObject<{
443
+ version: z.ZodNumber;
444
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
445
+ kind: z.ZodEnum<{
446
+ OPINION: "OPINION";
447
+ PREFERENCE: "PREFERENCE";
448
+ }>;
449
+ }, z.core.$strip>;
450
+ export declare const contactSummary: z.ZodObject<{
451
+ accountId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
452
+ version: z.ZodNumber;
453
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
454
+ blocked: z.ZodBoolean;
455
+ label: z.ZodNullable<z.ZodString>;
456
+ }, z.core.$strip>;
457
+ export declare const auditQuery: z.ZodObject<{
458
+ limit: z.ZodOptional<z.ZodString>;
459
+ cursor: z.ZodOptional<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
460
+ runId: z.ZodOptional<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
461
+ targetId: z.ZodOptional<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
462
+ order: z.ZodOptional<z.ZodEnum<{
463
+ asc: "asc";
464
+ desc: "desc";
465
+ }>>;
466
+ }, z.core.$strip>;
467
+ export declare const idempotencyHeader: z.ZodObject<{
468
+ 'idempotency-key': z.ZodString;
469
+ }, z.core.$strip>;
470
+ export declare const versionHeader: z.ZodObject<{
471
+ 'if-match': z.ZodString;
472
+ }, z.core.$strip>;
473
+ export declare const errorResponse: z.ZodObject<{
474
+ error: z.ZodObject<{
475
+ code: z.ZodString;
476
+ message: z.ZodString;
477
+ requestId: z.ZodUUID;
478
+ }, z.core.$strip>;
479
+ }, z.core.$strip>;
480
+ export declare const commandResponse: z.ZodObject<{
481
+ id: z.ZodUUID;
482
+ requestId: z.ZodUUID;
483
+ version: z.ZodOptional<z.ZodNumber>;
484
+ status: z.ZodOptional<z.ZodString>;
485
+ authEpoch: z.ZodOptional<z.ZodNumber>;
486
+ }, z.core.$strip>;
487
+ export declare const characterView: z.ZodObject<{
488
+ id: z.ZodUUID;
489
+ slug: z.ZodString;
490
+ timezone: z.ZodString;
491
+ status: z.ZodString;
492
+ version: z.ZodNullable<z.ZodNumber>;
493
+ profile: z.ZodNullable<z.ZodObject<{
494
+ name: z.ZodOptional<z.ZodString>;
495
+ aiDisclosure: z.ZodString;
496
+ dailyModelBudget: z.ZodOptional<z.ZodNumber>;
497
+ fictionalBackground: z.ZodOptional<z.ZodString>;
498
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
499
+ privacyRules: z.ZodOptional<z.ZodArray<z.ZodString>>;
500
+ }, z.core.$strict>>;
501
+ }, z.core.$strip>;
502
+ export declare const characterWorkspaceView: z.ZodObject<{
503
+ id: z.ZodUUID;
504
+ slug: z.ZodString;
505
+ timezone: z.ZodString;
506
+ status: z.ZodString;
507
+ version: z.ZodNullable<z.ZodNumber>;
508
+ profile: z.ZodNullable<z.ZodObject<{
509
+ name: z.ZodOptional<z.ZodString>;
510
+ aiDisclosure: z.ZodString;
511
+ dailyModelBudget: z.ZodOptional<z.ZodNumber>;
512
+ fictionalBackground: z.ZodOptional<z.ZodString>;
513
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
514
+ privacyRules: z.ZodOptional<z.ZodArray<z.ZodString>>;
515
+ }, z.core.$strict>>;
516
+ simulationPlatforms: z.ZodArray<z.ZodEnum<{
517
+ "mock-a": "mock-a";
518
+ "mock-b": "mock-b";
519
+ }>>;
520
+ }, z.core.$strip>;
521
+ export declare const identityView: z.ZodObject<{
522
+ id: z.ZodUUID;
523
+ slug: z.ZodString;
524
+ status: z.ZodString;
525
+ version: z.ZodNullable<z.ZodNumber>;
526
+ profile: z.ZodNullable<z.ZodObject<{
527
+ displayName: z.ZodOptional<z.ZodString>;
528
+ timezone: z.ZodOptional<z.ZodString>;
529
+ stateRule: z.ZodOptional<z.ZodObject<{
530
+ motivationHalfLifeHours: z.ZodNumber;
531
+ affectHalfLifeHours: z.ZodNumber;
532
+ deltas: z.ZodObject<{
533
+ POST: z.ZodArray<z.ZodNumber>;
534
+ MENTION: z.ZodArray<z.ZodNumber>;
535
+ REPLY: z.ZodArray<z.ZodNumber>;
536
+ }, z.core.$strict>;
537
+ }, z.core.$strict>>;
538
+ duplicateReview: z.ZodOptional<z.ZodObject<{
539
+ similarityPercent: z.ZodNumber;
540
+ windowHours: z.ZodNumber;
541
+ }, z.core.$strict>>;
542
+ autonomousGoal: z.ZodOptional<z.ZodObject<{
543
+ topic: z.ZodLiteral<"REVIEW_INTERACTIONS">;
544
+ maxDays: z.ZodNumber;
545
+ budget: z.ZodNumber;
546
+ }, z.core.$strict>>;
547
+ writingStyle: z.ZodOptional<z.ZodEnum<{
548
+ neutral: "neutral";
549
+ formal: "formal";
550
+ casual: "casual";
551
+ concise: "concise";
552
+ }>>;
553
+ draftModelProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>, z.ZodLiteral<"simulated">]>>;
554
+ writingPrompt: z.ZodOptional<z.ZodString>;
555
+ }, z.core.$strict>>;
556
+ }, z.core.$strip>;
557
+ export declare const accountView: z.ZodObject<{
558
+ id: z.ZodUUID;
559
+ identityId: z.ZodUUID;
560
+ platform: z.ZodString;
561
+ instanceKey: z.ZodString;
562
+ status: z.ZodString;
563
+ version: z.ZodNumber;
564
+ }, z.core.$strip>;
565
+ export declare const memoryView: z.ZodObject<{
566
+ id: z.ZodUUID;
567
+ identityId: z.ZodNullable<z.ZodUUID>;
568
+ accountId: z.ZodNullable<z.ZodUUID>;
569
+ conversationId: z.ZodNullable<z.ZodUUID>;
570
+ scope: z.ZodString;
571
+ visibility: z.ZodString;
572
+ status: z.ZodString;
573
+ createdAt: z.ZodISODateTime;
574
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
575
+ }, z.core.$strip>;
576
+ export declare const memoryDetailView: z.ZodObject<{
577
+ memory: z.ZodObject<{
578
+ id: z.ZodUUID;
579
+ identityId: z.ZodNullable<z.ZodUUID>;
580
+ accountId: z.ZodNullable<z.ZodUUID>;
581
+ conversationId: z.ZodNullable<z.ZodUUID>;
582
+ scope: z.ZodString;
583
+ visibility: z.ZodString;
584
+ status: z.ZodString;
585
+ createdAt: z.ZodISODateTime;
586
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
587
+ }, z.core.$strip>;
588
+ provenance: z.ZodObject<{
589
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
590
+ revision: z.ZodNumber;
591
+ status: z.ZodEnum<{
592
+ ACTIVE: "ACTIVE";
593
+ REVOKED: "REVOKED";
594
+ }>;
595
+ parentMemoryId: z.ZodNullable<z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>>;
596
+ sources: z.ZodArray<z.ZodObject<{
597
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
598
+ kind: z.ZodString;
599
+ classification: z.ZodEnum<{
600
+ PUBLIC: "PUBLIC";
601
+ PERSONAL: "PERSONAL";
602
+ CONFIDENTIAL: "CONFIDENTIAL";
603
+ RESTRICTED: "RESTRICTED";
604
+ }>;
605
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
606
+ }, z.core.$strip>>;
607
+ corrections: z.ZodArray<z.ZodObject<{
608
+ revision: z.ZodNumber;
609
+ actorId: z.ZodString;
610
+ reason: z.ZodString;
611
+ createdAt: z.ZodISODateTime;
612
+ }, z.core.$strip>>;
613
+ }, z.core.$strip>;
614
+ }, z.core.$strip>;
615
+ export declare const grantView: z.ZodObject<{
616
+ id: z.ZodUUID;
617
+ memoryId: z.ZodUUID;
618
+ recipientIdentityId: z.ZodUUID;
619
+ recipientAccountId: z.ZodNullable<z.ZodUUID>;
620
+ recipientConversationId: z.ZodNullable<z.ZodUUID>;
621
+ recipientContactId: z.ZodNullable<z.ZodUUID>;
622
+ purpose: z.ZodString;
623
+ audience: z.ZodNullable<z.ZodString>;
624
+ validFrom: z.ZodISODateTime;
625
+ validUntil: z.ZodISODateTime;
626
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
627
+ }, z.core.$strip>;
628
+ export declare const auditView: z.ZodObject<{
629
+ id: z.ZodUUID;
630
+ operation: z.ZodString;
631
+ actorId: z.ZodString;
632
+ targetId: z.ZodUUID;
633
+ requestId: z.ZodUUID;
634
+ digest: z.ZodString;
635
+ createdAt: z.ZodISODateTime;
636
+ }, z.core.$strip>;
637
+ export declare function pageView<T extends z.ZodType>(item: T): z.ZodObject<{
638
+ items: z.ZodArray<T>;
639
+ nextCursor: z.ZodNullable<z.ZodString>;
640
+ }, z.core.$strip>;