@moxt-ai/mobius-protocol 0.0.24 → 0.0.26

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.
@@ -32,7 +32,7 @@ declare const tenantSchema: z.ZodReadonly<z.ZodObject<{
32
32
  }>;
33
33
  retentionMilliseconds: z.ZodNumber;
34
34
  }, z.core.$strict>>;
35
- tenantId: z.ZodString;
35
+ tenantId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
36
36
  }, z.core.$strict>>;
37
37
  export type Tenant = z.infer<typeof tenantSchema>;
38
38
  declare const projectSchema: z.ZodReadonly<z.ZodObject<{
@@ -46,13 +46,13 @@ declare const projectSchema: z.ZodReadonly<z.ZodObject<{
46
46
  deletedAt: z.ZodString;
47
47
  kind: z.ZodLiteral<"deleted">;
48
48
  }, z.core.$strict>>], "kind">;
49
- projectId: z.ZodString;
50
- tenantId: z.ZodString;
49
+ projectId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
50
+ tenantId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
51
51
  }, z.core.$strict>>;
52
52
  export type Project = z.infer<typeof projectSchema>;
53
53
  declare const runtimeSchema: z.ZodReadonly<z.ZodObject<{
54
54
  capabilities: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
55
- name: z.ZodString;
55
+ name: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
56
56
  revision: z.ZodNumber;
57
57
  }, z.core.$strict>>>>;
58
58
  displayName: z.ZodString;
@@ -65,17 +65,17 @@ declare const runtimeSchema: z.ZodReadonly<z.ZodObject<{
65
65
  deletedAt: z.ZodString;
66
66
  kind: z.ZodLiteral<"deleted">;
67
67
  }, z.core.$strict>>], "kind">;
68
- runtimeId: z.ZodString;
69
- tenantId: z.ZodString;
68
+ runtimeId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
69
+ tenantId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
70
70
  }, z.core.$strict>>;
71
71
  export type Runtime = z.infer<typeof runtimeSchema>;
72
72
  declare const channelSchema: z.ZodReadonly<z.ZodObject<{
73
- channelId: z.ZodString;
74
- runtimeId: z.ZodString;
73
+ channelId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
74
+ runtimeId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
75
75
  state: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
76
76
  connectionEpoch: z.ZodNumber;
77
77
  connectedAt: z.ZodString;
78
- connectionId: z.ZodString;
78
+ connectionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
79
79
  kind: z.ZodLiteral<"online">;
80
80
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
81
81
  connectionEpoch: z.ZodNumber;
@@ -96,8 +96,8 @@ declare const sessionLifecycleSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.Z
96
96
  export type SessionLifecycle = z.infer<typeof sessionLifecycleSchema>;
97
97
  declare const sessionSchema: z.ZodReadonly<z.ZodObject<{
98
98
  createdAt: z.ZodString;
99
- createdBy: z.ZodString;
100
- defaultBindingId: z.ZodString;
99
+ createdBy: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
100
+ defaultBindingId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
101
101
  lastCommittedSeq: z.ZodString;
102
102
  lifecycle: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
103
103
  kind: z.ZodLiteral<"ready">;
@@ -108,23 +108,23 @@ declare const sessionSchema: z.ZodReadonly<z.ZodObject<{
108
108
  completedAt: z.ZodString;
109
109
  kind: z.ZodLiteral<"deleted">;
110
110
  }, z.core.$strict>>], "kind">;
111
- projectId: z.ZodString;
112
- sessionId: z.ZodString;
113
- tenantId: z.ZodString;
111
+ projectId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
112
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
113
+ tenantId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
114
114
  }, z.core.$strict>>;
115
115
  export type Session = z.infer<typeof sessionSchema>;
116
116
  declare const sessionBindingSchema: z.ZodReadonly<z.ZodObject<{
117
- agentRef: z.ZodString;
118
- bindingId: z.ZodString;
117
+ agentRef: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
118
+ bindingId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
119
119
  configRevision: z.ZodNumber;
120
120
  createdAt: z.ZodString;
121
- runtimeId: z.ZodString;
122
- sessionId: z.ZodString;
123
- workspaceRef: z.ZodString;
121
+ runtimeId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
122
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
123
+ workspaceRef: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
124
124
  }, z.core.$strict>>;
125
125
  export type SessionBinding = z.infer<typeof sessionBindingSchema>;
126
126
  declare const domainErrorSchema: z.ZodReadonly<z.ZodObject<{
127
- code: z.ZodString;
127
+ code: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
128
128
  message: z.ZodString;
129
129
  retryable: z.ZodBoolean;
130
130
  }, z.core.$strict>>;
@@ -157,7 +157,7 @@ declare const turnStateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObjec
157
157
  }, z.core.$strict>>;
158
158
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
159
159
  error: z.ZodReadonly<z.ZodObject<{
160
- code: z.ZodString;
160
+ code: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
161
161
  message: z.ZodString;
162
162
  retryable: z.ZodBoolean;
163
163
  }, z.core.$strict>>;
@@ -196,10 +196,10 @@ declare const turnRequestSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObj
196
196
  export type TurnRequest = z.infer<typeof turnRequestSchema>;
197
197
  declare const turnSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
198
198
  acceptedAt: z.ZodString;
199
- bindingId: z.ZodString;
200
- idempotencyKey: z.ZodString;
201
- sessionId: z.ZodString;
202
- turnId: z.ZodString;
199
+ bindingId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
200
+ idempotencyKey: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
201
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
202
+ turnId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
203
203
  request: z.ZodReadonly<z.ZodObject<{
204
204
  content: z.ZodString;
205
205
  kind: z.ZodLiteral<"prompt">;
@@ -227,7 +227,7 @@ declare const turnSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
227
227
  }, z.core.$strict>>;
228
228
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
229
229
  error: z.ZodReadonly<z.ZodObject<{
230
- code: z.ZodString;
230
+ code: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
231
231
  message: z.ZodString;
232
232
  retryable: z.ZodBoolean;
233
233
  }, z.core.$strict>>;
@@ -249,10 +249,10 @@ declare const turnSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
249
249
  }, z.core.$strict>>], "kind">;
250
250
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
251
251
  acceptedAt: z.ZodString;
252
- bindingId: z.ZodString;
253
- idempotencyKey: z.ZodString;
254
- sessionId: z.ZodString;
255
- turnId: z.ZodString;
252
+ bindingId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
253
+ idempotencyKey: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
254
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
255
+ turnId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
256
256
  request: z.ZodReadonly<z.ZodObject<{
257
257
  kind: z.ZodLiteral<"not_retained">;
258
258
  }, z.core.$strict>>;
@@ -265,7 +265,7 @@ declare const turnSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
265
265
  }, z.core.$strict>>;
266
266
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
267
267
  error: z.ZodReadonly<z.ZodObject<{
268
- code: z.ZodString;
268
+ code: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
269
269
  message: z.ZodString;
270
270
  retryable: z.ZodBoolean;
271
271
  }, z.core.$strict>>;
@@ -284,7 +284,7 @@ declare const attemptStateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodOb
284
284
  kind: z.ZodLiteral<"running">;
285
285
  startedAt: z.ZodString;
286
286
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
287
- interactionIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
287
+ interactionIds: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "Identifier", "out">>>;
288
288
  kind: z.ZodLiteral<"waiting_input">;
289
289
  startedAt: z.ZodString;
290
290
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
@@ -297,7 +297,7 @@ declare const attemptStateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodOb
297
297
  startedAt: z.ZodString;
298
298
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
299
299
  error: z.ZodReadonly<z.ZodObject<{
300
- code: z.ZodString;
300
+ code: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
301
301
  message: z.ZodString;
302
302
  retryable: z.ZodBoolean;
303
303
  }, z.core.$strict>>;
@@ -322,9 +322,9 @@ declare const attemptStateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodOb
322
322
  }, z.core.$strict>>], "kind">;
323
323
  export type AttemptState = z.infer<typeof attemptStateSchema>;
324
324
  declare const attemptSchema: z.ZodReadonly<z.ZodObject<{
325
- attemptId: z.ZodString;
326
- bindingId: z.ZodString;
327
- sessionId: z.ZodString;
325
+ attemptId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
326
+ bindingId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
327
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
328
328
  state: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
329
329
  dispatchedAt: z.ZodString;
330
330
  kind: z.ZodLiteral<"dispatching">;
@@ -332,7 +332,7 @@ declare const attemptSchema: z.ZodReadonly<z.ZodObject<{
332
332
  kind: z.ZodLiteral<"running">;
333
333
  startedAt: z.ZodString;
334
334
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
335
- interactionIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
335
+ interactionIds: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "Identifier", "out">>>;
336
336
  kind: z.ZodLiteral<"waiting_input">;
337
337
  startedAt: z.ZodString;
338
338
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
@@ -345,7 +345,7 @@ declare const attemptSchema: z.ZodReadonly<z.ZodObject<{
345
345
  startedAt: z.ZodString;
346
346
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
347
347
  error: z.ZodReadonly<z.ZodObject<{
348
- code: z.ZodString;
348
+ code: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
349
349
  message: z.ZodString;
350
350
  retryable: z.ZodBoolean;
351
351
  }, z.core.$strict>>;
@@ -368,7 +368,7 @@ declare const attemptSchema: z.ZodReadonly<z.ZodObject<{
368
368
  }, z.core.$strict>>;
369
369
  startedAt: z.ZodString;
370
370
  }, z.core.$strict>>], "kind">;
371
- turnId: z.ZodString;
371
+ turnId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
372
372
  }, z.core.$strict>>;
373
373
  export type Attempt = z.infer<typeof attemptSchema>;
374
374
  declare const interactionRequestSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
@@ -439,7 +439,7 @@ declare const interactionStateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.Z
439
439
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
440
440
  kind: z.ZodLiteral<"responded">;
441
441
  respondedAt: z.ZodString;
442
- responderId: z.ZodString;
442
+ responderId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
443
443
  response: z.ZodReadonly<z.ZodObject<{
444
444
  content: z.ZodString;
445
445
  kind: z.ZodEnum<{
@@ -454,7 +454,7 @@ declare const interactionStateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.Z
454
454
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
455
455
  kind: z.ZodLiteral<"response_applied">;
456
456
  respondedAt: z.ZodString;
457
- responderId: z.ZodString;
457
+ responderId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
458
458
  response: z.ZodReadonly<z.ZodObject<{
459
459
  content: z.ZodString;
460
460
  kind: z.ZodEnum<{
@@ -473,8 +473,8 @@ declare const interactionStateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.Z
473
473
  }, z.core.$strict>>], "kind">;
474
474
  export type InteractionState = z.infer<typeof interactionStateSchema>;
475
475
  declare const interactionSchema: z.ZodReadonly<z.ZodObject<{
476
- attemptId: z.ZodString;
477
- interactionId: z.ZodString;
476
+ attemptId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
477
+ interactionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
478
478
  request: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
479
479
  kind: z.ZodLiteral<"permission">;
480
480
  options: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
@@ -529,13 +529,13 @@ declare const interactionSchema: z.ZodReadonly<z.ZodObject<{
529
529
  }>;
530
530
  url: z.ZodString;
531
531
  }, z.core.$strict>>], "kind">;
532
- sessionId: z.ZodString;
532
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
533
533
  state: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
534
534
  kind: z.ZodLiteral<"pending">;
535
535
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
536
536
  kind: z.ZodLiteral<"responded">;
537
537
  respondedAt: z.ZodString;
538
- responderId: z.ZodString;
538
+ responderId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
539
539
  response: z.ZodReadonly<z.ZodObject<{
540
540
  content: z.ZodString;
541
541
  kind: z.ZodEnum<{
@@ -550,7 +550,7 @@ declare const interactionSchema: z.ZodReadonly<z.ZodObject<{
550
550
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
551
551
  kind: z.ZodLiteral<"response_applied">;
552
552
  respondedAt: z.ZodString;
553
- responderId: z.ZodString;
553
+ responderId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
554
554
  response: z.ZodReadonly<z.ZodObject<{
555
555
  content: z.ZodString;
556
556
  kind: z.ZodEnum<{
@@ -567,7 +567,7 @@ declare const interactionSchema: z.ZodReadonly<z.ZodObject<{
567
567
  cancelledAt: z.ZodString;
568
568
  kind: z.ZodLiteral<"cancelled">;
569
569
  }, z.core.$strict>>], "kind">;
570
- turnId: z.ZodString;
570
+ turnId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
571
571
  }, z.core.$strict>>;
572
572
  export type Interaction = z.infer<typeof interactionSchema>;
573
573
  declare const recordingCompletenessSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
@@ -578,17 +578,17 @@ declare const recordingCompletenessSchema: z.ZodDiscriminatedUnion<[z.ZodReadonl
578
578
  originalBytes: z.ZodNumber;
579
579
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
580
580
  kind: z.ZodLiteral<"redacted">;
581
- reason: z.ZodString;
581
+ reason: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
582
582
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
583
583
  kind: z.ZodLiteral<"uncaptured">;
584
584
  }, z.core.$strict>>], "kind">;
585
585
  export type RecordingCompleteness = z.infer<typeof recordingCompletenessSchema>;
586
586
  declare const messageViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
587
- contentArtifactIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
587
+ contentArtifactIds: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "Identifier", "out">>>;
588
588
  lastAppliedSeq: z.ZodString;
589
- messageId: z.ZodString;
589
+ messageId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
590
590
  preview: z.ZodString;
591
- sessionId: z.ZodString;
591
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
592
592
  state: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
593
593
  kind: z.ZodLiteral<"building">;
594
594
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
@@ -600,7 +600,7 @@ declare const messageViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObj
600
600
  originalBytes: z.ZodNumber;
601
601
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
602
602
  kind: z.ZodLiteral<"redacted">;
603
- reason: z.ZodString;
603
+ reason: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
604
604
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
605
605
  kind: z.ZodLiteral<"uncaptured">;
606
606
  }, z.core.$strict>>], "kind">;
@@ -612,14 +612,14 @@ declare const messageViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObj
612
612
  role: z.ZodLiteral<"user">;
613
613
  source: z.ZodReadonly<z.ZodObject<{
614
614
  kind: z.ZodLiteral<"turn">;
615
- turnId: z.ZodString;
615
+ turnId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
616
616
  }, z.core.$strict>>;
617
617
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
618
- contentArtifactIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
618
+ contentArtifactIds: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "Identifier", "out">>>;
619
619
  lastAppliedSeq: z.ZodString;
620
- messageId: z.ZodString;
620
+ messageId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
621
621
  preview: z.ZodString;
622
- sessionId: z.ZodString;
622
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
623
623
  state: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
624
624
  kind: z.ZodLiteral<"building">;
625
625
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
@@ -631,7 +631,7 @@ declare const messageViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObj
631
631
  originalBytes: z.ZodNumber;
632
632
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
633
633
  kind: z.ZodLiteral<"redacted">;
634
- reason: z.ZodString;
634
+ reason: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
635
635
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
636
636
  kind: z.ZodLiteral<"uncaptured">;
637
637
  }, z.core.$strict>>], "kind">;
@@ -642,16 +642,16 @@ declare const messageViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObj
642
642
  }, z.core.$strict>>], "kind">;
643
643
  role: z.ZodLiteral<"agent">;
644
644
  source: z.ZodReadonly<z.ZodObject<{
645
- attemptId: z.ZodString;
645
+ attemptId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
646
646
  kind: z.ZodLiteral<"attempt">;
647
- turnId: z.ZodString;
647
+ turnId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
648
648
  }, z.core.$strict>>;
649
649
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
650
- contentArtifactIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
650
+ contentArtifactIds: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "Identifier", "out">>>;
651
651
  lastAppliedSeq: z.ZodString;
652
- messageId: z.ZodString;
652
+ messageId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
653
653
  preview: z.ZodString;
654
- sessionId: z.ZodString;
654
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
655
655
  state: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
656
656
  kind: z.ZodLiteral<"building">;
657
657
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
@@ -663,7 +663,7 @@ declare const messageViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObj
663
663
  originalBytes: z.ZodNumber;
664
664
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
665
665
  kind: z.ZodLiteral<"redacted">;
666
- reason: z.ZodString;
666
+ reason: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
667
667
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
668
668
  kind: z.ZodLiteral<"uncaptured">;
669
669
  }, z.core.$strict>>], "kind">;
@@ -674,17 +674,17 @@ declare const messageViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObj
674
674
  }, z.core.$strict>>], "kind">;
675
675
  role: z.ZodLiteral<"tool">;
676
676
  source: z.ZodReadonly<z.ZodObject<{
677
- attemptId: z.ZodString;
677
+ attemptId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
678
678
  kind: z.ZodLiteral<"tool_call">;
679
- toolCallId: z.ZodString;
680
- turnId: z.ZodString;
679
+ toolCallId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
680
+ turnId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
681
681
  }, z.core.$strict>>;
682
682
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
683
- contentArtifactIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
683
+ contentArtifactIds: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "Identifier", "out">>>;
684
684
  lastAppliedSeq: z.ZodString;
685
- messageId: z.ZodString;
685
+ messageId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
686
686
  preview: z.ZodString;
687
- sessionId: z.ZodString;
687
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
688
688
  state: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
689
689
  kind: z.ZodLiteral<"building">;
690
690
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
@@ -696,7 +696,7 @@ declare const messageViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObj
696
696
  originalBytes: z.ZodNumber;
697
697
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
698
698
  kind: z.ZodLiteral<"redacted">;
699
- reason: z.ZodString;
699
+ reason: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
700
700
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
701
701
  kind: z.ZodLiteral<"uncaptured">;
702
702
  }, z.core.$strict>>], "kind">;
@@ -712,9 +712,9 @@ declare const messageViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObj
712
712
  }, z.core.$strict>>], "role">;
713
713
  export type MessageView = z.infer<typeof messageViewSchema>;
714
714
  declare const toolCallViewSchema: z.ZodReadonly<z.ZodObject<{
715
- attemptId: z.ZodString;
715
+ attemptId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
716
716
  detail: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
717
- artifactId: z.ZodString;
717
+ artifactId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
718
718
  kind: z.ZodLiteral<"available">;
719
719
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
720
720
  capturedBytes: z.ZodNumber;
@@ -740,7 +740,7 @@ declare const toolCallViewSchema: z.ZodReadonly<z.ZodObject<{
740
740
  kind: z.ZodLiteral<"succeeded">;
741
741
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
742
742
  error: z.ZodReadonly<z.ZodObject<{
743
- code: z.ZodString;
743
+ code: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
744
744
  message: z.ZodString;
745
745
  retryable: z.ZodBoolean;
746
746
  }, z.core.$strict>>;
@@ -751,14 +751,14 @@ declare const toolCallViewSchema: z.ZodReadonly<z.ZodObject<{
751
751
  kind: z.ZodLiteral<"cancelled">;
752
752
  }, z.core.$strict>>], "kind">;
753
753
  title: z.ZodString;
754
- toolCallId: z.ZodString;
755
- toolKind: z.ZodString;
754
+ toolCallId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
755
+ toolKind: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
756
756
  }, z.core.$strict>>;
757
757
  export type ToolCallView = z.infer<typeof toolCallViewSchema>;
758
758
  declare const sessionListEntrySchema: z.ZodReadonly<z.ZodObject<{
759
759
  lastAppliedSeq: z.ZodString;
760
760
  preview: z.ZodString;
761
- projectId: z.ZodString;
761
+ projectId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
762
762
  projectedAttemptState: z.ZodEnum<{
763
763
  dispatching: "dispatching";
764
764
  idle: "idle";
@@ -766,8 +766,8 @@ declare const sessionListEntrySchema: z.ZodReadonly<z.ZodObject<{
766
766
  running: "running";
767
767
  waiting_input: "waiting_input";
768
768
  }>;
769
- sessionId: z.ZodString;
770
- tenantId: z.ZodString;
769
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
770
+ tenantId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
771
771
  title: z.ZodString;
772
772
  updatedAt: z.ZodString;
773
773
  }, z.core.$strict>>;
@@ -776,7 +776,7 @@ declare const artifactStateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodO
776
776
  expectedBytes: z.ZodNumber;
777
777
  expiresAt: z.ZodString;
778
778
  kind: z.ZodLiteral<"uploading">;
779
- uploadId: z.ZodString;
779
+ uploadId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
780
780
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
781
781
  availableAt: z.ZodString;
782
782
  byteLength: z.ZodNumber;
@@ -790,7 +790,7 @@ declare const artifactStateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodO
790
790
  kind: z.ZodLiteral<"deleted">;
791
791
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
792
792
  error: z.ZodReadonly<z.ZodObject<{
793
- code: z.ZodString;
793
+ code: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
794
794
  message: z.ZodString;
795
795
  retryable: z.ZodBoolean;
796
796
  }, z.core.$strict>>;
@@ -802,7 +802,7 @@ declare const artifactStateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodO
802
802
  }, z.core.$strict>>], "kind">;
803
803
  export type ArtifactState = z.infer<typeof artifactStateSchema>;
804
804
  declare const artifactSchema: z.ZodReadonly<z.ZodObject<{
805
- artifactId: z.ZodString;
805
+ artifactId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
806
806
  completeness: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
807
807
  kind: z.ZodLiteral<"complete">;
808
808
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
@@ -811,31 +811,31 @@ declare const artifactSchema: z.ZodReadonly<z.ZodObject<{
811
811
  originalBytes: z.ZodNumber;
812
812
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
813
813
  kind: z.ZodLiteral<"redacted">;
814
- reason: z.ZodString;
814
+ reason: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
815
815
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
816
816
  kind: z.ZodLiteral<"uncaptured">;
817
817
  }, z.core.$strict>>], "kind">;
818
- contentKind: z.ZodString;
818
+ contentKind: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
819
819
  mediaType: z.ZodString;
820
- projectId: z.ZodString;
820
+ projectId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
821
821
  provenance: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
822
822
  kind: z.ZodLiteral<"user_upload">;
823
823
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
824
- attemptId: z.ZodString;
824
+ attemptId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
825
825
  kind: z.ZodLiteral<"tool_call">;
826
- toolCallId: z.ZodString;
827
- turnId: z.ZodString;
826
+ toolCallId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
827
+ turnId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
828
828
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
829
- attemptId: z.ZodString;
829
+ attemptId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
830
830
  kind: z.ZodLiteral<"agent_generated">;
831
- turnId: z.ZodString;
831
+ turnId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
832
832
  }, z.core.$strict>>], "kind">;
833
- sessionId: z.ZodString;
833
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
834
834
  state: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
835
835
  expectedBytes: z.ZodNumber;
836
836
  expiresAt: z.ZodString;
837
837
  kind: z.ZodLiteral<"uploading">;
838
- uploadId: z.ZodString;
838
+ uploadId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
839
839
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
840
840
  availableAt: z.ZodString;
841
841
  byteLength: z.ZodNumber;
@@ -849,7 +849,7 @@ declare const artifactSchema: z.ZodReadonly<z.ZodObject<{
849
849
  kind: z.ZodLiteral<"deleted">;
850
850
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
851
851
  error: z.ZodReadonly<z.ZodObject<{
852
- code: z.ZodString;
852
+ code: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
853
853
  message: z.ZodString;
854
854
  retryable: z.ZodBoolean;
855
855
  }, z.core.$strict>>;
@@ -859,7 +859,7 @@ declare const artifactSchema: z.ZodReadonly<z.ZodObject<{
859
859
  expiredAt: z.ZodString;
860
860
  kind: z.ZodLiteral<"expired">;
861
861
  }, z.core.$strict>>], "kind">;
862
- tenantId: z.ZodString;
862
+ tenantId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
863
863
  }, z.core.$strict>>;
864
864
  export type Artifact = z.infer<typeof artifactSchema>;
865
865
  declare const archiveSegmentStateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
@@ -888,8 +888,8 @@ declare const archiveSegmentSchema: z.ZodReadonly<z.ZodObject<{
888
888
  eventCount: z.ZodNumber;
889
889
  firstSeq: z.ZodString;
890
890
  lastSeq: z.ZodString;
891
- segmentId: z.ZodString;
892
- sessionId: z.ZodString;
891
+ segmentId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
892
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
893
893
  state: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
894
894
  kind: z.ZodLiteral<"pending">;
895
895
  queuedAt: z.ZodString;
@@ -920,8 +920,8 @@ declare const pendingWorkSchema: z.ZodReadonly<z.ZodObject<{
920
920
  interaction_response: "interaction_response";
921
921
  projection: "projection";
922
922
  }>;
923
- projectId: z.ZodString;
924
- sessionId: z.ZodString;
923
+ projectId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
924
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
925
925
  state: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
926
926
  kind: z.ZodLiteral<"pending">;
927
927
  queuedAt: z.ZodString;
@@ -934,7 +934,7 @@ declare const pendingWorkSchema: z.ZodReadonly<z.ZodObject<{
934
934
  kind: z.ZodLiteral<"completed">;
935
935
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
936
936
  error: z.ZodReadonly<z.ZodObject<{
937
- code: z.ZodString;
937
+ code: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
938
938
  message: z.ZodString;
939
939
  retryable: z.ZodBoolean;
940
940
  }, z.core.$strict>>;
@@ -942,25 +942,25 @@ declare const pendingWorkSchema: z.ZodReadonly<z.ZodObject<{
942
942
  nextAttemptAt: z.ZodString;
943
943
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
944
944
  error: z.ZodReadonly<z.ZodObject<{
945
- code: z.ZodString;
945
+ code: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
946
946
  message: z.ZodString;
947
947
  retryable: z.ZodBoolean;
948
948
  }, z.core.$strict>>;
949
949
  failedAt: z.ZodString;
950
950
  kind: z.ZodLiteral<"failed">;
951
951
  }, z.core.$strict>>], "kind">;
952
- workId: z.ZodString;
952
+ workId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
953
953
  }, z.core.$strict>>;
954
954
  export type PendingWork = z.infer<typeof pendingWorkSchema>;
955
955
  declare const commandReceiptSchema: z.ZodReadonly<z.ZodObject<{
956
956
  acceptedAt: z.ZodString;
957
- commandKind: z.ZodString;
957
+ commandKind: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
958
958
  expiresAt: z.ZodString;
959
- idempotencyKey: z.ZodString;
960
- projectId: z.ZodString;
959
+ idempotencyKey: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
960
+ projectId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
961
961
  requestHash: z.ZodString;
962
- resultId: z.ZodString;
963
- sessionId: z.ZodString;
962
+ resultId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
963
+ sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
964
964
  }, z.core.$strict>>;
965
965
  export type CommandReceipt = z.infer<typeof commandReceiptSchema>;
966
966
  export declare class ResourceTransitionError extends Error {
@@ -1 +1 @@
1
- {"version":3,"file":"resource-model.d.ts","sourceRoot":"","sources":["../src/resource-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,iCAAiC,KAAK,CAAC;A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AO,MAAM,iBAAiB,UAAW,OAAO,KAAG,WAAuD,CAAC;AAC3G,eAAO,MAAM,kBAAkB,UAAW,OAAO,KAAG,YAAyD,CAAC;AAC9G,eAAO,MAAM,sBAAsB,UAAW,OAAO,KAAG,gBACP,CAAC;AAClD,eAAO,MAAM,cAAc,UAAW,OAAO,KAAG,QAAiD,CAAC;AAClG,eAAO,MAAM,oBAAoB,UAAW,OAAO,KAAG,cAA6D,CAAC;AACpH,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,WAAuD,CAAC;AAC3G,eAAO,MAAM,oBAAoB,UAAW,OAAO,KAAG,cAA6D,CAAC"}
@@ -1,11 +1,10 @@
1
1
  import { z } from "zod";
2
2
  import { ProtocolMessageError } from "./codecs/messages.js";
3
3
  import { elicitationFieldSchema, permissionOptionSchema, sessionConfigurationSelectionsSchema, } from "./control-messages.js";
4
+ import { identifierSchema } from "./identifier.js";
4
5
  export const MAX_LOCAL_AGENT_DIRECTORY_ENTRIES = 32;
5
- const IDENTIFIER_PATTERN = /^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$/;
6
6
  const DECIMAL_SEQUENCE_PATTERN = /^(?:0|[1-9][0-9]*)$/;
7
7
  const SHA256_PATTERN = /^[a-f0-9]{64}$/;
8
- const identifierSchema = z.string().min(1).max(128).regex(IDENTIFIER_PATTERN);
9
8
  const timestampSchema = z.string().datetime({ offset: true });
10
9
  const decimalSequenceSchema = z.string().min(1).max(40).regex(DECIMAL_SEQUENCE_PATTERN);
11
10
  const digestSchema = z.string().length(64).regex(SHA256_PATTERN);