@namzu/sdk 58.1.1 → 59.0.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 (72) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/account/binding.d.ts +20 -0
  3. package/dist/account/binding.d.ts.map +1 -0
  4. package/dist/account/binding.js +27 -0
  5. package/dist/account/binding.js.map +1 -0
  6. package/dist/account/index.d.ts +9 -0
  7. package/dist/account/index.d.ts.map +1 -0
  8. package/dist/account/index.js +5 -0
  9. package/dist/account/index.js.map +1 -0
  10. package/dist/account/lock.d.ts +33 -0
  11. package/dist/account/lock.d.ts.map +1 -0
  12. package/dist/account/lock.js +170 -0
  13. package/dist/account/lock.js.map +1 -0
  14. package/dist/account/registry.d.ts +21 -0
  15. package/dist/account/registry.d.ts.map +1 -0
  16. package/dist/account/registry.js +340 -0
  17. package/dist/account/registry.js.map +1 -0
  18. package/dist/account/types.d.ts +124 -0
  19. package/dist/account/types.d.ts.map +1 -0
  20. package/dist/account/types.js +35 -0
  21. package/dist/account/types.js.map +1 -0
  22. package/dist/pals/communication/ingress-schema.d.ts +38 -38
  23. package/dist/peers/record.d.ts +98 -0
  24. package/dist/peers/record.d.ts.map +1 -1
  25. package/dist/peers/record.js +17 -0
  26. package/dist/peers/record.js.map +1 -1
  27. package/dist/peers/registry.d.ts.map +1 -1
  28. package/dist/peers/registry.js +2 -2
  29. package/dist/peers/registry.js.map +1 -1
  30. package/dist/provider/errors.d.ts.map +1 -1
  31. package/dist/provider/errors.js +25 -2
  32. package/dist/provider/errors.js.map +1 -1
  33. package/dist/provider/token-budget.d.ts.map +1 -1
  34. package/dist/provider/token-budget.js +9 -1
  35. package/dist/provider/token-budget.js.map +1 -1
  36. package/dist/public-runtime.d.ts +1 -0
  37. package/dist/public-runtime.d.ts.map +1 -1
  38. package/dist/public-runtime.js +1 -0
  39. package/dist/public-runtime.js.map +1 -1
  40. package/dist/public-types.d.ts +2 -0
  41. package/dist/public-types.d.ts.map +1 -1
  42. package/dist/runtime/query/executor.d.ts +7 -2
  43. package/dist/runtime/query/executor.d.ts.map +1 -1
  44. package/dist/runtime/query/executor.js +10 -2
  45. package/dist/runtime/query/executor.js.map +1 -1
  46. package/dist/types/errors/catalog.d.ts.map +1 -1
  47. package/dist/types/errors/catalog.js +6 -0
  48. package/dist/types/errors/catalog.js.map +1 -1
  49. package/dist/types/provider/errors.d.ts +7 -0
  50. package/dist/types/provider/errors.d.ts.map +1 -1
  51. package/dist/types/provider/errors.js +27 -3
  52. package/dist/types/provider/errors.js.map +1 -1
  53. package/dist/types/session/records.d.ts +215 -1
  54. package/dist/types/session/records.d.ts.map +1 -1
  55. package/dist/types/session/records.js +13 -0
  56. package/dist/types/session/records.js.map +1 -1
  57. package/package.json +1 -1
  58. package/src/account/binding.ts +43 -0
  59. package/src/account/index.ts +32 -0
  60. package/src/account/lock.ts +184 -0
  61. package/src/account/registry.ts +413 -0
  62. package/src/account/types.ts +137 -0
  63. package/src/peers/record.ts +18 -0
  64. package/src/peers/registry.ts +2 -2
  65. package/src/provider/errors.ts +27 -1
  66. package/src/provider/token-budget.ts +9 -3
  67. package/src/public-runtime.ts +17 -0
  68. package/src/public-types.ts +15 -0
  69. package/src/runtime/query/executor.ts +10 -2
  70. package/src/types/errors/catalog.ts +6 -0
  71. package/src/types/provider/errors.ts +40 -3
  72. package/src/types/session/records.ts +16 -0
@@ -264,19 +264,19 @@ export declare const operatorRouteKeySchema: z.ZodObject<{
264
264
  }, "strict", z.ZodTypeAny, {
265
265
  v: 1;
266
266
  kind: "operator";
267
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
267
268
  recipient: {
268
269
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
269
270
  palId: string;
270
271
  };
271
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
272
272
  }, {
273
273
  v: 1;
274
274
  kind: "operator";
275
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
275
276
  recipient: {
276
277
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
277
278
  palId: string;
278
279
  };
279
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
280
280
  }>;
281
281
  export declare const ingressRouteKeySchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
282
282
  v: z.ZodLiteral<1>;
@@ -480,19 +480,19 @@ export declare const ingressRouteKeySchema: z.ZodUnion<[z.ZodEffects<z.ZodObject
480
480
  }, "strict", z.ZodTypeAny, {
481
481
  v: 1;
482
482
  kind: "operator";
483
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
483
484
  recipient: {
484
485
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
485
486
  palId: string;
486
487
  };
487
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
488
488
  }, {
489
489
  v: 1;
490
490
  kind: "operator";
491
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
491
492
  recipient: {
492
493
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
493
494
  palId: string;
494
495
  };
495
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
496
496
  }>]>;
497
497
  export declare const observationIntentSchema: z.ZodEffects<z.ZodObject<{
498
498
  kind: z.ZodLiteral<"observation">;
@@ -1116,19 +1116,19 @@ export declare const operatorIntentSchema: z.ZodObject<{
1116
1116
  }, "strict", z.ZodTypeAny, {
1117
1117
  v: 1;
1118
1118
  kind: "operator";
1119
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1119
1120
  recipient: {
1120
1121
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1121
1122
  palId: string;
1122
1123
  };
1123
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1124
1124
  }, {
1125
1125
  v: 1;
1126
1126
  kind: "operator";
1127
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1127
1128
  recipient: {
1128
1129
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1129
1130
  palId: string;
1130
1131
  };
1131
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1132
1132
  }>;
1133
1133
  body: z.ZodEffects<z.ZodString, string, string>;
1134
1134
  id: z.ZodString;
@@ -1179,11 +1179,11 @@ export declare const operatorIntentSchema: z.ZodObject<{
1179
1179
  routeKey: {
1180
1180
  v: 1;
1181
1181
  kind: "operator";
1182
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1182
1183
  recipient: {
1183
1184
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1184
1185
  palId: string;
1185
1186
  };
1186
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1187
1187
  };
1188
1188
  replyTo: null;
1189
1189
  }, {
@@ -1209,11 +1209,11 @@ export declare const operatorIntentSchema: z.ZodObject<{
1209
1209
  routeKey: {
1210
1210
  v: 1;
1211
1211
  kind: "operator";
1212
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1212
1213
  recipient: {
1213
1214
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1214
1215
  palId: string;
1215
1216
  };
1216
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1217
1217
  };
1218
1218
  replyTo: null;
1219
1219
  }>;
@@ -2044,19 +2044,19 @@ export declare const ingressIntentSchema: z.ZodUnion<[z.ZodObject<{
2044
2044
  }, "strict", z.ZodTypeAny, {
2045
2045
  v: 1;
2046
2046
  kind: "operator";
2047
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2047
2048
  recipient: {
2048
2049
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
2049
2050
  palId: string;
2050
2051
  };
2051
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2052
2052
  }, {
2053
2053
  v: 1;
2054
2054
  kind: "operator";
2055
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2055
2056
  recipient: {
2056
2057
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
2057
2058
  palId: string;
2058
2059
  };
2059
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2060
2060
  }>;
2061
2061
  body: z.ZodEffects<z.ZodString, string, string>;
2062
2062
  id: z.ZodString;
@@ -2107,11 +2107,11 @@ export declare const ingressIntentSchema: z.ZodUnion<[z.ZodObject<{
2107
2107
  routeKey: {
2108
2108
  v: 1;
2109
2109
  kind: "operator";
2110
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2110
2111
  recipient: {
2111
2112
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
2112
2113
  palId: string;
2113
2114
  };
2114
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2115
2115
  };
2116
2116
  replyTo: null;
2117
2117
  }, {
@@ -2137,11 +2137,11 @@ export declare const ingressIntentSchema: z.ZodUnion<[z.ZodObject<{
2137
2137
  routeKey: {
2138
2138
  v: 1;
2139
2139
  kind: "operator";
2140
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2140
2141
  recipient: {
2141
2142
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
2142
2143
  palId: string;
2143
2144
  };
2144
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2145
2145
  };
2146
2146
  replyTo: null;
2147
2147
  }>]>;
@@ -2349,19 +2349,19 @@ export declare const ingressBindingSchema: z.ZodObject<{
2349
2349
  }, "strict", z.ZodTypeAny, {
2350
2350
  v: 1;
2351
2351
  kind: "operator";
2352
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2352
2353
  recipient: {
2353
2354
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
2354
2355
  palId: string;
2355
2356
  };
2356
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2357
2357
  }, {
2358
2358
  v: 1;
2359
2359
  kind: "operator";
2360
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2360
2361
  recipient: {
2361
2362
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
2362
2363
  palId: string;
2363
2364
  };
2364
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2365
2365
  }>]>;
2366
2366
  sessionId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
2367
2367
  profileRevision: z.ZodNumber;
@@ -2412,11 +2412,11 @@ export declare const ingressBindingSchema: z.ZodObject<{
2412
2412
  } | {
2413
2413
  v: 1;
2414
2414
  kind: "operator";
2415
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2415
2416
  recipient: {
2416
2417
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
2417
2418
  palId: string;
2418
2419
  };
2419
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2420
2420
  };
2421
2421
  id: string;
2422
2422
  phase: "active" | "reserved";
@@ -2468,11 +2468,11 @@ export declare const ingressBindingSchema: z.ZodObject<{
2468
2468
  } | {
2469
2469
  v: 1;
2470
2470
  kind: "operator";
2471
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2471
2472
  recipient: {
2472
2473
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
2473
2474
  palId: string;
2474
2475
  };
2475
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
2476
2476
  };
2477
2477
  id: string;
2478
2478
  phase: "active" | "reserved";
@@ -3776,19 +3776,19 @@ export declare const ingressInboxSchema: z.ZodUnion<[z.ZodObject<{
3776
3776
  }, "strict", z.ZodTypeAny, {
3777
3777
  v: 1;
3778
3778
  kind: "operator";
3779
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
3779
3780
  recipient: {
3780
3781
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
3781
3782
  palId: string;
3782
3783
  };
3783
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
3784
3784
  }, {
3785
3785
  v: 1;
3786
3786
  kind: "operator";
3787
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
3787
3788
  recipient: {
3788
3789
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
3789
3790
  palId: string;
3790
3791
  };
3791
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
3792
3792
  }>;
3793
3793
  body: z.ZodEffects<z.ZodString, string, string>;
3794
3794
  ordinal: z.ZodNumber;
@@ -3989,11 +3989,11 @@ export declare const ingressInboxSchema: z.ZodUnion<[z.ZodObject<{
3989
3989
  routeKey: {
3990
3990
  v: 1;
3991
3991
  kind: "operator";
3992
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
3992
3993
  recipient: {
3993
3994
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
3994
3995
  palId: string;
3995
3996
  };
3996
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
3997
3997
  };
3998
3998
  replyTo: null;
3999
3999
  }, {
@@ -4050,11 +4050,11 @@ export declare const ingressInboxSchema: z.ZodUnion<[z.ZodObject<{
4050
4050
  routeKey: {
4051
4051
  v: 1;
4052
4052
  kind: "operator";
4053
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
4053
4054
  recipient: {
4054
4055
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
4055
4056
  palId: string;
4056
4057
  };
4057
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
4058
4058
  };
4059
4059
  replyTo: null;
4060
4060
  }>]>;
@@ -4274,19 +4274,19 @@ export declare const ingressSnapshotSchema: z.ZodObject<{
4274
4274
  }, "strict", z.ZodTypeAny, {
4275
4275
  v: 1;
4276
4276
  kind: "operator";
4277
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
4277
4278
  recipient: {
4278
4279
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
4279
4280
  palId: string;
4280
4281
  };
4281
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
4282
4282
  }, {
4283
4283
  v: 1;
4284
4284
  kind: "operator";
4285
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
4285
4286
  recipient: {
4286
4287
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
4287
4288
  palId: string;
4288
4289
  };
4289
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
4290
4290
  }>]>;
4291
4291
  sessionId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
4292
4292
  profileRevision: z.ZodNumber;
@@ -4337,11 +4337,11 @@ export declare const ingressSnapshotSchema: z.ZodObject<{
4337
4337
  } | {
4338
4338
  v: 1;
4339
4339
  kind: "operator";
4340
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
4340
4341
  recipient: {
4341
4342
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
4342
4343
  palId: string;
4343
4344
  };
4344
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
4345
4345
  };
4346
4346
  id: string;
4347
4347
  phase: "active" | "reserved";
@@ -4393,11 +4393,11 @@ export declare const ingressSnapshotSchema: z.ZodObject<{
4393
4393
  } | {
4394
4394
  v: 1;
4395
4395
  kind: "operator";
4396
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
4396
4397
  recipient: {
4397
4398
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
4398
4399
  palId: string;
4399
4400
  };
4400
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
4401
4401
  };
4402
4402
  id: string;
4403
4403
  phase: "active" | "reserved";
@@ -5604,19 +5604,19 @@ export declare const ingressSnapshotSchema: z.ZodObject<{
5604
5604
  }, "strict", z.ZodTypeAny, {
5605
5605
  v: 1;
5606
5606
  kind: "operator";
5607
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
5607
5608
  recipient: {
5608
5609
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
5609
5610
  palId: string;
5610
5611
  };
5611
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
5612
5612
  }, {
5613
5613
  v: 1;
5614
5614
  kind: "operator";
5615
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
5615
5616
  recipient: {
5616
5617
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
5617
5618
  palId: string;
5618
5619
  };
5619
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
5620
5620
  }>;
5621
5621
  body: z.ZodEffects<z.ZodString, string, string>;
5622
5622
  ordinal: z.ZodNumber;
@@ -5817,11 +5817,11 @@ export declare const ingressSnapshotSchema: z.ZodObject<{
5817
5817
  routeKey: {
5818
5818
  v: 1;
5819
5819
  kind: "operator";
5820
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
5820
5821
  recipient: {
5821
5822
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
5822
5823
  palId: string;
5823
5824
  };
5824
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
5825
5825
  };
5826
5826
  replyTo: null;
5827
5827
  }, {
@@ -5878,11 +5878,11 @@ export declare const ingressSnapshotSchema: z.ZodObject<{
5878
5878
  routeKey: {
5879
5879
  v: 1;
5880
5880
  kind: "operator";
5881
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
5881
5882
  recipient: {
5882
5883
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
5883
5884
  palId: string;
5884
5885
  };
5885
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
5886
5886
  };
5887
5887
  replyTo: null;
5888
5888
  }>]>, "many">;
@@ -6157,11 +6157,11 @@ export declare const ingressSnapshotSchema: z.ZodObject<{
6157
6157
  routeKey: {
6158
6158
  v: 1;
6159
6159
  kind: "operator";
6160
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
6160
6161
  recipient: {
6161
6162
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
6162
6163
  palId: string;
6163
6164
  };
6164
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
6165
6165
  };
6166
6166
  replyTo: null;
6167
6167
  })[];
@@ -6215,11 +6215,11 @@ export declare const ingressSnapshotSchema: z.ZodObject<{
6215
6215
  } | {
6216
6216
  v: 1;
6217
6217
  kind: "operator";
6218
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
6218
6219
  recipient: {
6219
6220
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
6220
6221
  palId: string;
6221
6222
  };
6222
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
6223
6223
  };
6224
6224
  id: string;
6225
6225
  phase: "active" | "reserved";
@@ -6498,11 +6498,11 @@ export declare const ingressSnapshotSchema: z.ZodObject<{
6498
6498
  routeKey: {
6499
6499
  v: 1;
6500
6500
  kind: "operator";
6501
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
6501
6502
  recipient: {
6502
6503
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
6503
6504
  palId: string;
6504
6505
  };
6505
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
6506
6506
  };
6507
6507
  replyTo: null;
6508
6508
  })[];
@@ -6556,11 +6556,11 @@ export declare const ingressSnapshotSchema: z.ZodObject<{
6556
6556
  } | {
6557
6557
  v: 1;
6558
6558
  kind: "operator";
6559
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
6559
6560
  recipient: {
6560
6561
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
6561
6562
  palId: string;
6562
6563
  };
6563
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
6564
6564
  };
6565
6565
  id: string;
6566
6566
  phase: "active" | "reserved";
@@ -7398,19 +7398,19 @@ export declare const ingressOperationReservationSchema: z.ZodObject<{
7398
7398
  }, "strict", z.ZodTypeAny, {
7399
7399
  v: 1;
7400
7400
  kind: "operator";
7401
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
7401
7402
  recipient: {
7402
7403
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
7403
7404
  palId: string;
7404
7405
  };
7405
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
7406
7406
  }, {
7407
7407
  v: 1;
7408
7408
  kind: "operator";
7409
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
7409
7410
  recipient: {
7410
7411
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
7411
7412
  palId: string;
7412
7413
  };
7413
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
7414
7414
  }>;
7415
7415
  body: z.ZodEffects<z.ZodString, string, string>;
7416
7416
  id: z.ZodString;
@@ -7461,11 +7461,11 @@ export declare const ingressOperationReservationSchema: z.ZodObject<{
7461
7461
  routeKey: {
7462
7462
  v: 1;
7463
7463
  kind: "operator";
7464
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
7464
7465
  recipient: {
7465
7466
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
7466
7467
  palId: string;
7467
7468
  };
7468
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
7469
7469
  };
7470
7470
  replyTo: null;
7471
7471
  }, {
@@ -7491,11 +7491,11 @@ export declare const ingressOperationReservationSchema: z.ZodObject<{
7491
7491
  routeKey: {
7492
7492
  v: 1;
7493
7493
  kind: "operator";
7494
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
7494
7495
  recipient: {
7495
7496
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
7496
7497
  palId: string;
7497
7498
  };
7498
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
7499
7499
  };
7500
7500
  replyTo: null;
7501
7501
  }>]>;
@@ -7650,11 +7650,11 @@ export declare const ingressOperationReservationSchema: z.ZodObject<{
7650
7650
  routeKey: {
7651
7651
  v: 1;
7652
7652
  kind: "operator";
7653
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
7653
7654
  recipient: {
7654
7655
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
7655
7656
  palId: string;
7656
7657
  };
7657
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
7658
7658
  };
7659
7659
  replyTo: null;
7660
7660
  };
@@ -7808,11 +7808,11 @@ export declare const ingressOperationReservationSchema: z.ZodObject<{
7808
7808
  routeKey: {
7809
7809
  v: 1;
7810
7810
  kind: "operator";
7811
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
7811
7812
  recipient: {
7812
7813
  tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
7813
7814
  palId: string;
7814
7815
  };
7815
- conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
7816
7816
  };
7817
7817
  replyTo: null;
7818
7818
  };
@@ -32,6 +32,16 @@ export declare const PeerRecordSchema: z.ZodObject<{
32
32
  token: z.ZodString;
33
33
  protocol: z.ZodLiteral<"namzu-peer/1">;
34
34
  cliVersion: z.ZodString;
35
+ /** The slot a spaces host gave this terminal at launch; how the host finds its own sessions. */
36
+ hostSlot: z.ZodOptional<z.ZodString>;
37
+ /** The conversation this terminal is on, once it has one. */
38
+ conversationId: z.ZodOptional<z.ZodString>;
39
+ /** The label of the non-default account the conversation is bound to; absent for the default. */
40
+ account: z.ZodOptional<z.ZodString>;
41
+ /** True while the bound account is out of allowance and the terminal is waiting for a choice. */
42
+ limited: z.ZodOptional<z.ZodBoolean>;
43
+ /** When the allowance is expected back (epoch ms); absent when the provider did not say. */
44
+ limitedUntil: z.ZodOptional<z.ZodNumber>;
35
45
  }, "strict", z.ZodTypeAny, {
36
46
  v: 1;
37
47
  cwd: string;
@@ -48,6 +58,11 @@ export declare const PeerRecordSchema: z.ZodObject<{
48
58
  acceptsMessages: boolean;
49
59
  cliVersion: string;
50
60
  title?: string | undefined;
61
+ account?: string | undefined;
62
+ hostSlot?: string | undefined;
63
+ conversationId?: string | undefined;
64
+ limited?: boolean | undefined;
65
+ limitedUntil?: number | undefined;
51
66
  }, {
52
67
  v: 1;
53
68
  cwd: string;
@@ -64,6 +79,89 @@ export declare const PeerRecordSchema: z.ZodObject<{
64
79
  acceptsMessages: boolean;
65
80
  cliVersion: string;
66
81
  title?: string | undefined;
82
+ account?: string | undefined;
83
+ hostSlot?: string | undefined;
84
+ conversationId?: string | undefined;
85
+ limited?: boolean | undefined;
86
+ limitedUntil?: number | undefined;
87
+ }>;
88
+ /**
89
+ * The reader's view of a record: the same fields, but a key this build does
90
+ * not know is dropped instead of failing the whole record. A record written by
91
+ * a newer build (extra optional fields) stays visible to an older reader.
92
+ * Writers keep using the strict `PeerRecordSchema`.
93
+ */
94
+ export declare const PeerRecordReaderSchema: z.ZodObject<{
95
+ v: z.ZodLiteral<1>;
96
+ sessionId: z.ZodString;
97
+ /** First 6 hex characters of `sha256(sessionId)`; disambiguates a colliding display name. */
98
+ ref: z.ZodString;
99
+ pid: z.ZodNumber;
100
+ startedAt: z.ZodNumber;
101
+ kind: z.ZodEnum<["tui", "exec", "resident", "scheduled"]>;
102
+ /** Absent until the operator or the host sets one; the display name then falls back (design §1.2). */
103
+ title: z.ZodOptional<z.ZodString>;
104
+ cwd: z.ZodString;
105
+ /** The host's own permission-mode vocabulary; the SDK does not constrain its spelling. */
106
+ permissionMode: z.ZodString;
107
+ state: z.ZodEnum<["busy", "idle", "awaiting-permission"]>;
108
+ acceptsMessages: z.ZodBoolean;
109
+ address: z.ZodString;
110
+ token: z.ZodString;
111
+ protocol: z.ZodLiteral<"namzu-peer/1">;
112
+ cliVersion: z.ZodString;
113
+ /** The slot a spaces host gave this terminal at launch; how the host finds its own sessions. */
114
+ hostSlot: z.ZodOptional<z.ZodString>;
115
+ /** The conversation this terminal is on, once it has one. */
116
+ conversationId: z.ZodOptional<z.ZodString>;
117
+ /** The label of the non-default account the conversation is bound to; absent for the default. */
118
+ account: z.ZodOptional<z.ZodString>;
119
+ /** True while the bound account is out of allowance and the terminal is waiting for a choice. */
120
+ limited: z.ZodOptional<z.ZodBoolean>;
121
+ /** When the allowance is expected back (epoch ms); absent when the provider did not say. */
122
+ limitedUntil: z.ZodOptional<z.ZodNumber>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ v: 1;
125
+ cwd: string;
126
+ kind: "resident" | "exec" | "scheduled" | "tui";
127
+ permissionMode: string;
128
+ sessionId: string;
129
+ protocol: "namzu-peer/1";
130
+ startedAt: number;
131
+ state: "busy" | "idle" | "awaiting-permission";
132
+ token: string;
133
+ address: string;
134
+ ref: string;
135
+ pid: number;
136
+ acceptsMessages: boolean;
137
+ cliVersion: string;
138
+ title?: string | undefined;
139
+ account?: string | undefined;
140
+ hostSlot?: string | undefined;
141
+ conversationId?: string | undefined;
142
+ limited?: boolean | undefined;
143
+ limitedUntil?: number | undefined;
144
+ }, {
145
+ v: 1;
146
+ cwd: string;
147
+ kind: "resident" | "exec" | "scheduled" | "tui";
148
+ permissionMode: string;
149
+ sessionId: string;
150
+ protocol: "namzu-peer/1";
151
+ startedAt: number;
152
+ state: "busy" | "idle" | "awaiting-permission";
153
+ token: string;
154
+ address: string;
155
+ ref: string;
156
+ pid: number;
157
+ acceptsMessages: boolean;
158
+ cliVersion: string;
159
+ title?: string | undefined;
160
+ account?: string | undefined;
161
+ hostSlot?: string | undefined;
162
+ conversationId?: string | undefined;
163
+ limited?: boolean | undefined;
164
+ limitedUntil?: number | undefined;
67
165
  }>;
68
166
  export type PeerRecord = z.infer<typeof PeerRecordSchema>;
69
167
  /** `ref`: the first 6 hex characters of `sha256(sessionId)`, for a short, stable, collision-resistant tag. */
@@ -1 +1 @@
1
- {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/peers/record.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,oEAAoE;AACpE,eAAO,MAAM,mBAAmB,IAAI,CAAA;AAEpC,eAAO,MAAM,gBAAgB;;;IAI3B,6FAA6F;;;;;IAK7F,sGAAsG;;;IAGtG,0FAA0F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASlF,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAIzD,8GAA8G;AAC9G,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEvD"}
1
+ {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/peers/record.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,oEAAoE;AACpE,eAAO,MAAM,mBAAmB,IAAI,CAAA;AAEpC,eAAO,MAAM,gBAAgB;;;IAI3B,6FAA6F;;;;;IAK7F,sGAAsG;;;IAGtG,0FAA0F;;;;;;;;IAQ1F,gGAAgG;;IAEhG,6DAA6D;;IAE7D,iGAAiG;;IAEjG,iGAAiG;;IAEjG,4FAA4F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpF,CAAA;AAEV;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;IAnCjC,6FAA6F;;;;;IAK7F,sGAAsG;;;IAGtG,0FAA0F;;;;;;;;IAQ1F,gGAAgG;;IAEhG,6DAA6D;;IAE7D,iGAAiG;;IAEjG,iGAAiG;;IAEjG,4FAA4F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWhC,CAAA;AAE9D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAIzD,8GAA8G;AAC9G,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEvD"}
@@ -35,8 +35,25 @@ export const PeerRecordSchema = z
35
35
  token: z.string().min(1),
36
36
  protocol: z.literal(PEER_PROTOCOL_VERSION),
37
37
  cliVersion: z.string(),
38
+ /** The slot a spaces host gave this terminal at launch; how the host finds its own sessions. */
39
+ hostSlot: z.string().min(1).max(128).optional(),
40
+ /** The conversation this terminal is on, once it has one. */
41
+ conversationId: z.string().min(1).optional(),
42
+ /** The label of the non-default account the conversation is bound to; absent for the default. */
43
+ account: z.string().min(1).optional(),
44
+ /** True while the bound account is out of allowance and the terminal is waiting for a choice. */
45
+ limited: z.boolean().optional(),
46
+ /** When the allowance is expected back (epoch ms); absent when the provider did not say. */
47
+ limitedUntil: z.number().int().positive().optional(),
38
48
  })
39
49
  .strict();
50
+ /**
51
+ * The reader's view of a record: the same fields, but a key this build does
52
+ * not know is dropped instead of failing the whole record. A record written by
53
+ * a newer build (extra optional fields) stays visible to an older reader.
54
+ * Writers keep using the strict `PeerRecordSchema`.
55
+ */
56
+ export const PeerRecordReaderSchema = PeerRecordSchema.strip();
40
57
  const PEER_REF_HEX_LENGTH = 6;
41
58
  /** `ref`: the first 6 hex characters of `sha256(sessionId)`, for a short, stable, collision-resistant tag. */
42
59
  export function derivePeerRef(sessionId) {
@@ -1 +1 @@
1
- {"version":3,"file":"record.js","sourceRoot":"","sources":["../../src/peers/record.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EACN,qBAAqB,EACrB,aAAa,EACb,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KlB;AAED,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAChE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,kGAAkG;IAClG,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAChC;AAED;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAexF"}
@@ -9,7 +9,7 @@ import { closeSync, fsyncSync, lstatSync, openSync, readFileSync, readdirSync, r
9
9
  import { basename, dirname, join } from 'node:path';
10
10
  import { parsePeerAddress } from './address.js';
11
11
  import { pingPeer } from './client.js';
12
- import { PeerRecordSchema } from './record.js';
12
+ import { PeerRecordReaderSchema, PeerRecordSchema } from './record.js';
13
13
  const RECORD_FILE_MODE = 0o600;
14
14
  export class PeerRegistryError extends Error {
15
15
  name = 'PeerRegistryError';
@@ -59,7 +59,7 @@ function parseRecordText(text) {
59
59
  catch {
60
60
  return undefined;
61
61
  }
62
- const result = PeerRecordSchema.safeParse(parsed);
62
+ const result = PeerRecordReaderSchema.safeParse(parsed);
63
63
  return result.success ? result.data : undefined;
64
64
  }
65
65
  /** One session's record, or `undefined` if it has none or its file does not parse. */