@intentic/sandbox-contract 1.321.0 → 1.323.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 (143) hide show
  1. package/dist/contracts/agent.contract.d.ts +61 -6
  2. package/dist/contracts/agent.contract.d.ts.map +1 -1
  3. package/dist/contracts/agent.contract.js +13 -3
  4. package/dist/contracts/agent.contract.js.map +1 -1
  5. package/dist/contracts/agents.contract.d.ts +40 -0
  6. package/dist/contracts/agents.contract.d.ts.map +1 -1
  7. package/dist/contracts/loops.contract.d.ts +2 -0
  8. package/dist/contracts/loops.contract.d.ts.map +1 -1
  9. package/dist/contracts/needs.contract.d.ts +4 -0
  10. package/dist/contracts/needs.contract.d.ts.map +1 -1
  11. package/dist/contracts/privacy.contract.d.ts +187 -0
  12. package/dist/contracts/privacy.contract.d.ts.map +1 -0
  13. package/dist/contracts/privacy.contract.js +76 -0
  14. package/dist/contracts/privacy.contract.js.map +1 -0
  15. package/dist/contracts/runner.contract.d.ts +29 -18
  16. package/dist/contracts/runner.contract.d.ts.map +1 -1
  17. package/dist/contracts/sessions.contract.d.ts +3 -0
  18. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  19. package/dist/contracts/system.contract.d.ts +36 -32
  20. package/dist/contracts/system.contract.d.ts.map +1 -1
  21. package/dist/contracts/usage.contract.d.ts +1 -0
  22. package/dist/contracts/usage.contract.d.ts.map +1 -1
  23. package/dist/contracts/workflows.contract.d.ts +3 -0
  24. package/dist/contracts/workflows.contract.d.ts.map +1 -1
  25. package/dist/events/agent-events.d.ts +14 -0
  26. package/dist/events/agent-events.d.ts.map +1 -1
  27. package/dist/events/agent-events.js +2 -0
  28. package/dist/events/agent-events.js.map +1 -1
  29. package/dist/events/requests.d.ts +3 -0
  30. package/dist/events/requests.d.ts.map +1 -1
  31. package/dist/events/requests.js +4 -0
  32. package/dist/events/requests.js.map +1 -1
  33. package/dist/events/resume.d.ts +1 -0
  34. package/dist/events/resume.d.ts.map +1 -1
  35. package/dist/events/resume.js +7 -1
  36. package/dist/events/resume.js.map +1 -1
  37. package/dist/events/sandbox-notice.d.ts +2 -0
  38. package/dist/events/sandbox-notice.d.ts.map +1 -1
  39. package/dist/events/sandbox-notice.js +1 -1
  40. package/dist/events/sandbox-notice.js.map +1 -1
  41. package/dist/events/system-events.d.ts +4 -0
  42. package/dist/events/system-events.d.ts.map +1 -1
  43. package/dist/events/transcript.d.ts +22 -0
  44. package/dist/events/transcript.d.ts.map +1 -1
  45. package/dist/events/transcript.js +42 -14
  46. package/dist/events/transcript.js.map +1 -1
  47. package/dist/front/generated/browser-wire.d.ts +4 -0
  48. package/dist/front/generated/browser-wire.d.ts.map +1 -1
  49. package/dist/index.d.ts +338 -38
  50. package/dist/index.d.ts.map +1 -1
  51. package/dist/index.js +5 -0
  52. package/dist/index.js.map +1 -1
  53. package/dist/models/agent-runtimes.d.ts +1 -0
  54. package/dist/models/agent-runtimes.d.ts.map +1 -1
  55. package/dist/models/agent-runtimes.js +6 -0
  56. package/dist/models/agent-runtimes.js.map +1 -1
  57. package/dist/policy/request-status.d.ts.map +1 -1
  58. package/dist/policy/request-status.js +16 -7
  59. package/dist/policy/request-status.js.map +1 -1
  60. package/dist/policy/turned-away.d.ts.map +1 -1
  61. package/dist/policy/turned-away.js +1 -0
  62. package/dist/policy/turned-away.js.map +1 -1
  63. package/dist/protocol/raw-routes.d.ts +12 -0
  64. package/dist/protocol/raw-routes.d.ts.map +1 -1
  65. package/dist/protocol/raw-routes.js +3 -0
  66. package/dist/protocol/raw-routes.js.map +1 -1
  67. package/dist/schemas/agent.d.ts +97 -0
  68. package/dist/schemas/agent.d.ts.map +1 -1
  69. package/dist/schemas/agent.js +20 -2
  70. package/dist/schemas/agent.js.map +1 -1
  71. package/dist/schemas/agents.d.ts +6 -0
  72. package/dist/schemas/agents.d.ts.map +1 -1
  73. package/dist/schemas/agents.js +1 -1
  74. package/dist/schemas/agents.js.map +1 -1
  75. package/dist/schemas/automations.d.ts +2 -0
  76. package/dist/schemas/automations.d.ts.map +1 -1
  77. package/dist/schemas/git/git.d.ts.map +1 -1
  78. package/dist/schemas/git/git.js.map +1 -1
  79. package/dist/schemas/loops.d.ts +3 -0
  80. package/dist/schemas/loops.d.ts.map +1 -1
  81. package/dist/schemas/loops.js +1 -1
  82. package/dist/schemas/loops.js.map +1 -1
  83. package/dist/schemas/needs.d.ts +6 -0
  84. package/dist/schemas/needs.d.ts.map +1 -1
  85. package/dist/schemas/needs.js +13 -3
  86. package/dist/schemas/needs.js.map +1 -1
  87. package/dist/schemas/platform-link.d.ts +50 -0
  88. package/dist/schemas/platform-link.d.ts.map +1 -0
  89. package/dist/schemas/platform-link.js +19 -0
  90. package/dist/schemas/platform-link.js.map +1 -0
  91. package/dist/schemas/privacy.d.ts +277 -0
  92. package/dist/schemas/privacy.d.ts.map +1 -0
  93. package/dist/schemas/privacy.js +127 -0
  94. package/dist/schemas/privacy.js.map +1 -0
  95. package/dist/schemas/providers/plan-limits.d.ts +8 -0
  96. package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
  97. package/dist/schemas/providers/plan-limits.js +25 -4
  98. package/dist/schemas/providers/plan-limits.js.map +1 -1
  99. package/dist/schemas/providers/usage.d.ts +3 -0
  100. package/dist/schemas/providers/usage.d.ts.map +1 -1
  101. package/dist/schemas/providers/usage.js +4 -2
  102. package/dist/schemas/providers/usage.js.map +1 -1
  103. package/dist/schemas/push.d.ts +1 -0
  104. package/dist/schemas/push.d.ts.map +1 -1
  105. package/dist/schemas/push.js +4 -0
  106. package/dist/schemas/push.js.map +1 -1
  107. package/dist/schemas/workflows.d.ts +5 -0
  108. package/dist/schemas/workflows.d.ts.map +1 -1
  109. package/dist/state/workspace-state.d.ts +17 -1
  110. package/dist/state/workspace-state.d.ts.map +1 -1
  111. package/dist/state/workspace-state.js +20 -1
  112. package/dist/state/workspace-state.js.map +1 -1
  113. package/package.json +5 -5
  114. package/src/contracts/agent.contract.ts +16 -3
  115. package/src/contracts/privacy.contract.ts +95 -0
  116. package/src/events/agent-events.ts +5 -0
  117. package/src/events/requests.ts +6 -0
  118. package/src/events/resume.test.ts +13 -0
  119. package/src/events/resume.ts +11 -2
  120. package/src/events/sandbox-notice.ts +1 -1
  121. package/src/events/transcript.ts +79 -20
  122. package/src/front/generated/browser-wire.json +27 -0
  123. package/src/front/generated/browser-wire.ts +1 -1
  124. package/src/index.ts +5 -0
  125. package/src/models/agent-catalog.test.ts +1 -0
  126. package/src/models/agent-runtimes.ts +17 -0
  127. package/src/models/capability-ledger.test.ts +3 -0
  128. package/src/policy/request-status.ts +19 -9
  129. package/src/policy/turned-away.ts +2 -0
  130. package/src/protocol/raw-routes.ts +9 -0
  131. package/src/schemas/agent.ts +36 -4
  132. package/src/schemas/agents.ts +1 -1
  133. package/src/schemas/automations.ts +4 -4
  134. package/src/schemas/git/git.ts +1 -0
  135. package/src/schemas/loops.ts +2 -1
  136. package/src/schemas/needs.ts +18 -3
  137. package/src/schemas/platform-link.ts +42 -0
  138. package/src/schemas/privacy.ts +204 -0
  139. package/src/schemas/providers/plan-limits.ts +38 -5
  140. package/src/schemas/providers/usage.ts +10 -2
  141. package/src/schemas/push.ts +7 -0
  142. package/src/state/workspace-state.test.ts +8 -2
  143. package/src/state/workspace-state.ts +32 -2
package/dist/index.d.ts CHANGED
@@ -33,6 +33,7 @@ export { portsContract } from "./contracts/ports.contract.js";
33
33
  export { publicContract } from "./contracts/public.contract.js";
34
34
  export { providersContract, type RunnableProviders, RunnableProvidersSchema } from "./contracts/providers.contract.js";
35
35
  export { pushContract } from "./contracts/push.contract.js";
36
+ export { privacyContract } from "./contracts/privacy.contract.js";
36
37
  export { safetyContract } from "./contracts/safety.contract.js";
37
38
  export { needsContract } from "./contracts/needs.contract.js";
38
39
  export { secretsContract } from "./contracts/secrets.contract.js";
@@ -149,7 +150,9 @@ export * from "./schemas/marketplace.js";
149
150
  export * from "./schemas/metrics.js";
150
151
  export * from "./schemas/panels.js";
151
152
  export * from "./schemas/personas.js";
153
+ export * from "./schemas/privacy.js";
152
154
  export * from "./schemas/providers/plan-limits.js";
155
+ export * from "./schemas/platform-link.js";
153
156
  export * from "./schemas/ports.js";
154
157
  export * from "./schemas/providers/provider-oauth.js";
155
158
  export * from "./schemas/providers/provider-subscriptions.js";
@@ -666,6 +669,9 @@ export declare const sandboxContract: {
666
669
  selection: z.ZodOptional<z.ZodString>;
667
670
  }, z.core.$strip>>;
668
671
  sendAt: z.ZodOptional<z.ZodNumber>;
672
+ sendAfter: z.ZodOptional<z.ZodString>;
673
+ conversationAutoLand: z.ZodOptional<z.ZodBoolean>;
674
+ continues: z.ZodOptional<z.ZodLiteral<true>>;
669
675
  }, z.core.$strip>, z.ZodObject<{
670
676
  delivered: z.ZodEnum<{
671
677
  queued: "queued";
@@ -767,6 +773,7 @@ export declare const sandboxContract: {
767
773
  } | undefined;
768
774
  status: "answered" | "cancelled" | "pending";
769
775
  answers?: Record<string, string[]> | undefined;
776
+ attachments?: Record<string, string[]> | undefined;
770
777
  } | undefined;
771
778
  permission?: {
772
779
  toolName: string;
@@ -776,6 +783,7 @@ export declare const sandboxContract: {
776
783
  reason?: string | undefined;
777
784
  path?: string | undefined;
778
785
  alwaysLabel?: string | undefined;
786
+ alwaysAsks?: true | undefined;
779
787
  program?: {
780
788
  text: string;
781
789
  language: "bash" | "javascript";
@@ -810,7 +818,7 @@ export declare const sandboxContract: {
810
818
  } | undefined;
811
819
  explain?: string | undefined;
812
820
  requestId: string;
813
- status: "allowed" | "always" | "cancelled" | "denied" | "pending";
821
+ status: "allowed" | "always" | "cancelled" | "denied" | "everything" | "pending";
814
822
  } | undefined;
815
823
  browserHelp?: {
816
824
  requestId: string;
@@ -1040,6 +1048,7 @@ export declare const sandboxContract: {
1040
1048
  } | undefined;
1041
1049
  status: "answered" | "cancelled" | "pending";
1042
1050
  answers?: Record<string, string[]> | undefined;
1051
+ attachments?: Record<string, string[]> | undefined;
1043
1052
  } | undefined;
1044
1053
  permission?: {
1045
1054
  toolName: string;
@@ -1049,6 +1058,7 @@ export declare const sandboxContract: {
1049
1058
  reason?: string | undefined;
1050
1059
  path?: string | undefined;
1051
1060
  alwaysLabel?: string | undefined;
1061
+ alwaysAsks?: true | undefined;
1052
1062
  program?: {
1053
1063
  text: string;
1054
1064
  language: "bash" | "javascript";
@@ -1083,7 +1093,7 @@ export declare const sandboxContract: {
1083
1093
  } | undefined;
1084
1094
  explain?: string | undefined;
1085
1095
  requestId: string;
1086
- status: "allowed" | "always" | "cancelled" | "denied" | "pending";
1096
+ status: "allowed" | "always" | "cancelled" | "denied" | "everything" | "pending";
1087
1097
  } | undefined;
1088
1098
  browserHelp?: {
1089
1099
  requestId: string;
@@ -1311,6 +1321,7 @@ export declare const sandboxContract: {
1311
1321
  } | undefined;
1312
1322
  status: "answered" | "cancelled" | "pending";
1313
1323
  answers?: Record<string, string[]> | undefined;
1324
+ attachments?: Record<string, string[]> | undefined;
1314
1325
  } | undefined;
1315
1326
  permission?: {
1316
1327
  toolName: string;
@@ -1320,6 +1331,7 @@ export declare const sandboxContract: {
1320
1331
  reason?: string | undefined;
1321
1332
  path?: string | undefined;
1322
1333
  alwaysLabel?: string | undefined;
1334
+ alwaysAsks?: true | undefined;
1323
1335
  program?: {
1324
1336
  text: string;
1325
1337
  language: "bash" | "javascript";
@@ -1354,7 +1366,7 @@ export declare const sandboxContract: {
1354
1366
  } | undefined;
1355
1367
  explain?: string | undefined;
1356
1368
  requestId: string;
1357
- status: "allowed" | "always" | "cancelled" | "denied" | "pending";
1369
+ status: "allowed" | "always" | "cancelled" | "denied" | "everything" | "pending";
1358
1370
  } | undefined;
1359
1371
  browserHelp?: {
1360
1372
  requestId: string;
@@ -1612,6 +1624,7 @@ export declare const sandboxContract: {
1612
1624
  } | undefined;
1613
1625
  status: "answered" | "cancelled" | "pending";
1614
1626
  answers?: Record<string, string[]> | undefined;
1627
+ attachments?: Record<string, string[]> | undefined;
1615
1628
  } | undefined;
1616
1629
  permission?: {
1617
1630
  toolName: string;
@@ -1621,6 +1634,7 @@ export declare const sandboxContract: {
1621
1634
  reason?: string | undefined;
1622
1635
  path?: string | undefined;
1623
1636
  alwaysLabel?: string | undefined;
1637
+ alwaysAsks?: true | undefined;
1624
1638
  program?: {
1625
1639
  text: string;
1626
1640
  language: "bash" | "javascript";
@@ -1655,7 +1669,7 @@ export declare const sandboxContract: {
1655
1669
  } | undefined;
1656
1670
  explain?: string | undefined;
1657
1671
  requestId: string;
1658
- status: "allowed" | "always" | "cancelled" | "denied" | "pending";
1672
+ status: "allowed" | "always" | "cancelled" | "denied" | "everything" | "pending";
1659
1673
  } | undefined;
1660
1674
  browserHelp?: {
1661
1675
  requestId: string;
@@ -1885,6 +1899,7 @@ export declare const sandboxContract: {
1885
1899
  } | undefined;
1886
1900
  status: "answered" | "cancelled" | "pending";
1887
1901
  answers?: Record<string, string[]> | undefined;
1902
+ attachments?: Record<string, string[]> | undefined;
1888
1903
  } | undefined;
1889
1904
  permission?: {
1890
1905
  toolName: string;
@@ -1894,6 +1909,7 @@ export declare const sandboxContract: {
1894
1909
  reason?: string | undefined;
1895
1910
  path?: string | undefined;
1896
1911
  alwaysLabel?: string | undefined;
1912
+ alwaysAsks?: true | undefined;
1897
1913
  program?: {
1898
1914
  text: string;
1899
1915
  language: "bash" | "javascript";
@@ -1928,7 +1944,7 @@ export declare const sandboxContract: {
1928
1944
  } | undefined;
1929
1945
  explain?: string | undefined;
1930
1946
  requestId: string;
1931
- status: "allowed" | "always" | "cancelled" | "denied" | "pending";
1947
+ status: "allowed" | "always" | "cancelled" | "denied" | "everything" | "pending";
1932
1948
  } | undefined;
1933
1949
  browserHelp?: {
1934
1950
  requestId: string;
@@ -2156,6 +2172,7 @@ export declare const sandboxContract: {
2156
2172
  } | undefined;
2157
2173
  status: "answered" | "cancelled" | "pending";
2158
2174
  answers?: Record<string, string[]> | undefined;
2175
+ attachments?: Record<string, string[]> | undefined;
2159
2176
  } | undefined;
2160
2177
  permission?: {
2161
2178
  toolName: string;
@@ -2165,6 +2182,7 @@ export declare const sandboxContract: {
2165
2182
  reason?: string | undefined;
2166
2183
  path?: string | undefined;
2167
2184
  alwaysLabel?: string | undefined;
2185
+ alwaysAsks?: true | undefined;
2168
2186
  program?: {
2169
2187
  text: string;
2170
2188
  language: "bash" | "javascript";
@@ -2199,7 +2217,7 @@ export declare const sandboxContract: {
2199
2217
  } | undefined;
2200
2218
  explain?: string | undefined;
2201
2219
  requestId: string;
2202
- status: "allowed" | "always" | "cancelled" | "denied" | "pending";
2220
+ status: "allowed" | "always" | "cancelled" | "denied" | "everything" | "pending";
2203
2221
  } | undefined;
2204
2222
  browserHelp?: {
2205
2223
  requestId: string;
@@ -2497,6 +2515,7 @@ export declare const sandboxContract: {
2497
2515
  pending: "pending";
2498
2516
  }>;
2499
2517
  answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
2518
+ attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
2500
2519
  }, z.core.$strip>>;
2501
2520
  permission: z.ZodOptional<z.ZodObject<{
2502
2521
  toolName: z.ZodString;
@@ -2506,6 +2525,7 @@ export declare const sandboxContract: {
2506
2525
  reason: z.ZodOptional<z.ZodString>;
2507
2526
  path: z.ZodOptional<z.ZodString>;
2508
2527
  alwaysLabel: z.ZodOptional<z.ZodString>;
2528
+ alwaysAsks: z.ZodOptional<z.ZodLiteral<true>>;
2509
2529
  program: z.ZodOptional<z.ZodObject<{
2510
2530
  text: z.ZodString;
2511
2531
  language: z.ZodEnum<{
@@ -2558,6 +2578,7 @@ export declare const sandboxContract: {
2558
2578
  always: "always";
2559
2579
  cancelled: "cancelled";
2560
2580
  denied: "denied";
2581
+ everything: "everything";
2561
2582
  pending: "pending";
2562
2583
  }>;
2563
2584
  }, z.core.$strip>>;
@@ -2907,6 +2928,7 @@ export declare const sandboxContract: {
2907
2928
  pending: "pending";
2908
2929
  }>;
2909
2930
  answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
2931
+ attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
2910
2932
  }, z.core.$strip>>;
2911
2933
  permission: z.ZodOptional<z.ZodObject<{
2912
2934
  toolName: z.ZodString;
@@ -2916,6 +2938,7 @@ export declare const sandboxContract: {
2916
2938
  reason: z.ZodOptional<z.ZodString>;
2917
2939
  path: z.ZodOptional<z.ZodString>;
2918
2940
  alwaysLabel: z.ZodOptional<z.ZodString>;
2941
+ alwaysAsks: z.ZodOptional<z.ZodLiteral<true>>;
2919
2942
  program: z.ZodOptional<z.ZodObject<{
2920
2943
  text: z.ZodString;
2921
2944
  language: z.ZodEnum<{
@@ -2968,6 +2991,7 @@ export declare const sandboxContract: {
2968
2991
  always: "always";
2969
2992
  cancelled: "cancelled";
2970
2993
  denied: "denied";
2994
+ everything: "everything";
2971
2995
  pending: "pending";
2972
2996
  }>;
2973
2997
  }, z.core.$strip>>;
@@ -3315,6 +3339,7 @@ export declare const sandboxContract: {
3315
3339
  pending: "pending";
3316
3340
  }>;
3317
3341
  answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
3342
+ attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
3318
3343
  }, z.core.$strip>>;
3319
3344
  permission: z.ZodOptional<z.ZodObject<{
3320
3345
  toolName: z.ZodString;
@@ -3324,6 +3349,7 @@ export declare const sandboxContract: {
3324
3349
  reason: z.ZodOptional<z.ZodString>;
3325
3350
  path: z.ZodOptional<z.ZodString>;
3326
3351
  alwaysLabel: z.ZodOptional<z.ZodString>;
3352
+ alwaysAsks: z.ZodOptional<z.ZodLiteral<true>>;
3327
3353
  program: z.ZodOptional<z.ZodObject<{
3328
3354
  text: z.ZodString;
3329
3355
  language: z.ZodEnum<{
@@ -3376,6 +3402,7 @@ export declare const sandboxContract: {
3376
3402
  always: "always";
3377
3403
  cancelled: "cancelled";
3378
3404
  denied: "denied";
3405
+ everything: "everything";
3379
3406
  pending: "pending";
3380
3407
  }>;
3381
3408
  }, z.core.$strip>>;
@@ -3636,6 +3663,7 @@ export declare const sandboxContract: {
3636
3663
  kind: z.ZodLiteral<"question">;
3637
3664
  requestId: z.ZodString;
3638
3665
  answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
3666
+ attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
3639
3667
  cancelled: z.ZodOptional<z.ZodBoolean>;
3640
3668
  }, z.core.$strip>, z.ZodObject<{
3641
3669
  kind: z.ZodLiteral<"permission">;
@@ -3643,6 +3671,7 @@ export declare const sandboxContract: {
3643
3671
  decision: z.ZodEnum<{
3644
3672
  always: "always";
3645
3673
  deny: "deny";
3674
+ everything: "everything";
3646
3675
  once: "once";
3647
3676
  }>;
3648
3677
  feedback: z.ZodOptional<z.ZodString>;
@@ -3742,6 +3771,7 @@ export declare const sandboxContract: {
3742
3771
  stopped: "stopped";
3743
3772
  }>>;
3744
3773
  until: z.ZodOptional<z.ZodNumber>;
3774
+ after: z.ZodOptional<z.ZodString>;
3745
3775
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
3746
3776
  queueRemove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3747
3777
  conversationId: z.ZodString;
@@ -3767,6 +3797,7 @@ export declare const sandboxContract: {
3767
3797
  stopped: "stopped";
3768
3798
  }>>;
3769
3799
  until: z.ZodOptional<z.ZodNumber>;
3800
+ after: z.ZodOptional<z.ZodString>;
3770
3801
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
3771
3802
  queueResume: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3772
3803
  conversationId: z.ZodString;
@@ -3802,7 +3833,34 @@ export declare const sandboxContract: {
3802
3833
  stopped: "stopped";
3803
3834
  }>>;
3804
3835
  until: z.ZodOptional<z.ZodNumber>;
3836
+ after: z.ZodOptional<z.ZodString>;
3837
+ }, z.core.$strip>>;
3838
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
3839
+ queueSchedule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3840
+ conversationId: z.ZodString;
3841
+ sendAt: z.ZodOptional<z.ZodNumber>;
3842
+ sendAfter: z.ZodOptional<z.ZodString>;
3843
+ }, z.core.$strip>, z.ZodObject<{
3844
+ items: z.ZodArray<z.ZodObject<{
3845
+ id: z.ZodString;
3846
+ text: z.ZodString;
3847
+ attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
3848
+ voice: z.ZodEnum<{
3849
+ agent: "agent";
3850
+ person: "person";
3851
+ sandbox: "sandbox";
3852
+ }>;
3853
+ queuedAt: z.ZodNumber;
3854
+ revision: z.ZodNumber;
3805
3855
  }, z.core.$strip>>;
3856
+ revision: z.ZodNumber;
3857
+ paused: z.ZodOptional<z.ZodEnum<{
3858
+ refused: "refused";
3859
+ scheduled: "scheduled";
3860
+ stopped: "stopped";
3861
+ }>>;
3862
+ until: z.ZodOptional<z.ZodNumber>;
3863
+ after: z.ZodOptional<z.ZodString>;
3806
3864
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
3807
3865
  resume: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3808
3866
  conversationId: z.ZodString;
@@ -4063,6 +4121,7 @@ export declare const sandboxContract: {
4063
4121
  stopped: "stopped";
4064
4122
  }>>;
4065
4123
  until: z.ZodOptional<z.ZodNumber>;
4124
+ after: z.ZodOptional<z.ZodString>;
4066
4125
  }, z.core.$strip>>;
4067
4126
  updatedAt: z.ZodNumber;
4068
4127
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -4143,6 +4202,7 @@ export declare const sandboxContract: {
4143
4202
  running: "running";
4144
4203
  stalled: "stalled";
4145
4204
  stopped: "stopped";
4205
+ unpriced: "unpriced";
4146
4206
  }>;
4147
4207
  iteration: z.ZodNumber;
4148
4208
  maxIterations: z.ZodNumber;
@@ -4397,6 +4457,7 @@ export declare const sandboxContract: {
4397
4457
  stopped: "stopped";
4398
4458
  }>>;
4399
4459
  until: z.ZodOptional<z.ZodNumber>;
4460
+ after: z.ZodOptional<z.ZodString>;
4400
4461
  }, z.core.$strip>>;
4401
4462
  updatedAt: z.ZodNumber;
4402
4463
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -4477,6 +4538,7 @@ export declare const sandboxContract: {
4477
4538
  running: "running";
4478
4539
  stalled: "stalled";
4479
4540
  stopped: "stopped";
4541
+ unpriced: "unpriced";
4480
4542
  }>;
4481
4543
  iteration: z.ZodNumber;
4482
4544
  maxIterations: z.ZodNumber;
@@ -4749,6 +4811,7 @@ export declare const sandboxContract: {
4749
4811
  stopped: "stopped";
4750
4812
  }>>;
4751
4813
  until: z.ZodOptional<z.ZodNumber>;
4814
+ after: z.ZodOptional<z.ZodString>;
4752
4815
  }, z.core.$strip>>;
4753
4816
  updatedAt: z.ZodNumber;
4754
4817
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -4829,6 +4892,7 @@ export declare const sandboxContract: {
4829
4892
  running: "running";
4830
4893
  stalled: "stalled";
4831
4894
  stopped: "stopped";
4895
+ unpriced: "unpriced";
4832
4896
  }>;
4833
4897
  iteration: z.ZodNumber;
4834
4898
  maxIterations: z.ZodNumber;
@@ -5012,6 +5076,7 @@ export declare const sandboxContract: {
5012
5076
  pending: "pending";
5013
5077
  }>;
5014
5078
  answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
5079
+ attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
5015
5080
  }, z.core.$strip>>;
5016
5081
  permission: z.ZodOptional<z.ZodObject<{
5017
5082
  toolName: z.ZodString;
@@ -5021,6 +5086,7 @@ export declare const sandboxContract: {
5021
5086
  reason: z.ZodOptional<z.ZodString>;
5022
5087
  path: z.ZodOptional<z.ZodString>;
5023
5088
  alwaysLabel: z.ZodOptional<z.ZodString>;
5089
+ alwaysAsks: z.ZodOptional<z.ZodLiteral<true>>;
5024
5090
  program: z.ZodOptional<z.ZodObject<{
5025
5091
  text: z.ZodString;
5026
5092
  language: z.ZodEnum<{
@@ -5073,6 +5139,7 @@ export declare const sandboxContract: {
5073
5139
  always: "always";
5074
5140
  cancelled: "cancelled";
5075
5141
  denied: "denied";
5142
+ everything: "everything";
5076
5143
  pending: "pending";
5077
5144
  }>;
5078
5145
  }, z.core.$strip>>;
@@ -5492,6 +5559,7 @@ export declare const sandboxContract: {
5492
5559
  pending: "pending";
5493
5560
  }>;
5494
5561
  answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
5562
+ attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
5495
5563
  }, z.core.$strip>>;
5496
5564
  permission: z.ZodOptional<z.ZodObject<{
5497
5565
  toolName: z.ZodString;
@@ -5501,6 +5569,7 @@ export declare const sandboxContract: {
5501
5569
  reason: z.ZodOptional<z.ZodString>;
5502
5570
  path: z.ZodOptional<z.ZodString>;
5503
5571
  alwaysLabel: z.ZodOptional<z.ZodString>;
5572
+ alwaysAsks: z.ZodOptional<z.ZodLiteral<true>>;
5504
5573
  program: z.ZodOptional<z.ZodObject<{
5505
5574
  text: z.ZodString;
5506
5575
  language: z.ZodEnum<{
@@ -5553,6 +5622,7 @@ export declare const sandboxContract: {
5553
5622
  always: "always";
5554
5623
  cancelled: "cancelled";
5555
5624
  denied: "denied";
5625
+ everything: "everything";
5556
5626
  pending: "pending";
5557
5627
  }>;
5558
5628
  }, z.core.$strip>>;
@@ -5962,6 +6032,7 @@ export declare const sandboxContract: {
5962
6032
  stopped: "stopped";
5963
6033
  }>>;
5964
6034
  until: z.ZodOptional<z.ZodNumber>;
6035
+ after: z.ZodOptional<z.ZodString>;
5965
6036
  }, z.core.$strip>>;
5966
6037
  updatedAt: z.ZodNumber;
5967
6038
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -6042,6 +6113,7 @@ export declare const sandboxContract: {
6042
6113
  running: "running";
6043
6114
  stalled: "stalled";
6044
6115
  stopped: "stopped";
6116
+ unpriced: "unpriced";
6045
6117
  }>;
6046
6118
  iteration: z.ZodNumber;
6047
6119
  maxIterations: z.ZodNumber;
@@ -6278,6 +6350,7 @@ export declare const sandboxContract: {
6278
6350
  stopped: "stopped";
6279
6351
  }>>;
6280
6352
  until: z.ZodOptional<z.ZodNumber>;
6353
+ after: z.ZodOptional<z.ZodString>;
6281
6354
  }, z.core.$strip>>;
6282
6355
  updatedAt: z.ZodNumber;
6283
6356
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -6358,6 +6431,7 @@ export declare const sandboxContract: {
6358
6431
  running: "running";
6359
6432
  stalled: "stalled";
6360
6433
  stopped: "stopped";
6434
+ unpriced: "unpriced";
6361
6435
  }>;
6362
6436
  iteration: z.ZodNumber;
6363
6437
  maxIterations: z.ZodNumber;
@@ -6604,6 +6678,7 @@ export declare const sandboxContract: {
6604
6678
  stopped: "stopped";
6605
6679
  }>>;
6606
6680
  until: z.ZodOptional<z.ZodNumber>;
6681
+ after: z.ZodOptional<z.ZodString>;
6607
6682
  }, z.core.$strip>>;
6608
6683
  updatedAt: z.ZodNumber;
6609
6684
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -6684,6 +6759,7 @@ export declare const sandboxContract: {
6684
6759
  running: "running";
6685
6760
  stalled: "stalled";
6686
6761
  stopped: "stopped";
6762
+ unpriced: "unpriced";
6687
6763
  }>;
6688
6764
  iteration: z.ZodNumber;
6689
6765
  maxIterations: z.ZodNumber;
@@ -6920,6 +6996,7 @@ export declare const sandboxContract: {
6920
6996
  stopped: "stopped";
6921
6997
  }>>;
6922
6998
  until: z.ZodOptional<z.ZodNumber>;
6999
+ after: z.ZodOptional<z.ZodString>;
6923
7000
  }, z.core.$strip>>;
6924
7001
  updatedAt: z.ZodNumber;
6925
7002
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -7000,6 +7077,7 @@ export declare const sandboxContract: {
7000
7077
  running: "running";
7001
7078
  stalled: "stalled";
7002
7079
  stopped: "stopped";
7080
+ unpriced: "unpriced";
7003
7081
  }>;
7004
7082
  iteration: z.ZodNumber;
7005
7083
  maxIterations: z.ZodNumber;
@@ -7235,6 +7313,7 @@ export declare const sandboxContract: {
7235
7313
  stopped: "stopped";
7236
7314
  }>>;
7237
7315
  until: z.ZodOptional<z.ZodNumber>;
7316
+ after: z.ZodOptional<z.ZodString>;
7238
7317
  }, z.core.$strip>>;
7239
7318
  updatedAt: z.ZodNumber;
7240
7319
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -7315,6 +7394,7 @@ export declare const sandboxContract: {
7315
7394
  running: "running";
7316
7395
  stalled: "stalled";
7317
7396
  stopped: "stopped";
7397
+ unpriced: "unpriced";
7318
7398
  }>;
7319
7399
  iteration: z.ZodNumber;
7320
7400
  maxIterations: z.ZodNumber;
@@ -7551,6 +7631,7 @@ export declare const sandboxContract: {
7551
7631
  stopped: "stopped";
7552
7632
  }>>;
7553
7633
  until: z.ZodOptional<z.ZodNumber>;
7634
+ after: z.ZodOptional<z.ZodString>;
7554
7635
  }, z.core.$strip>>;
7555
7636
  updatedAt: z.ZodNumber;
7556
7637
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -7631,6 +7712,7 @@ export declare const sandboxContract: {
7631
7712
  running: "running";
7632
7713
  stalled: "stalled";
7633
7714
  stopped: "stopped";
7715
+ unpriced: "unpriced";
7634
7716
  }>;
7635
7717
  iteration: z.ZodNumber;
7636
7718
  maxIterations: z.ZodNumber;
@@ -7867,6 +7949,7 @@ export declare const sandboxContract: {
7867
7949
  stopped: "stopped";
7868
7950
  }>>;
7869
7951
  until: z.ZodOptional<z.ZodNumber>;
7952
+ after: z.ZodOptional<z.ZodString>;
7870
7953
  }, z.core.$strip>>;
7871
7954
  updatedAt: z.ZodNumber;
7872
7955
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -7947,6 +8030,7 @@ export declare const sandboxContract: {
7947
8030
  running: "running";
7948
8031
  stalled: "stalled";
7949
8032
  stopped: "stopped";
8033
+ unpriced: "unpriced";
7950
8034
  }>;
7951
8035
  iteration: z.ZodNumber;
7952
8036
  maxIterations: z.ZodNumber;
@@ -8183,6 +8267,7 @@ export declare const sandboxContract: {
8183
8267
  stopped: "stopped";
8184
8268
  }>>;
8185
8269
  until: z.ZodOptional<z.ZodNumber>;
8270
+ after: z.ZodOptional<z.ZodString>;
8186
8271
  }, z.core.$strip>>;
8187
8272
  updatedAt: z.ZodNumber;
8188
8273
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -8263,6 +8348,7 @@ export declare const sandboxContract: {
8263
8348
  running: "running";
8264
8349
  stalled: "stalled";
8265
8350
  stopped: "stopped";
8351
+ unpriced: "unpriced";
8266
8352
  }>;
8267
8353
  iteration: z.ZodNumber;
8268
8354
  maxIterations: z.ZodNumber;
@@ -8497,6 +8583,7 @@ export declare const sandboxContract: {
8497
8583
  stopped: "stopped";
8498
8584
  }>>;
8499
8585
  until: z.ZodOptional<z.ZodNumber>;
8586
+ after: z.ZodOptional<z.ZodString>;
8500
8587
  }, z.core.$strip>>;
8501
8588
  updatedAt: z.ZodNumber;
8502
8589
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -8577,6 +8664,7 @@ export declare const sandboxContract: {
8577
8664
  running: "running";
8578
8665
  stalled: "stalled";
8579
8666
  stopped: "stopped";
8667
+ unpriced: "unpriced";
8580
8668
  }>;
8581
8669
  iteration: z.ZodNumber;
8582
8670
  maxIterations: z.ZodNumber;
@@ -9019,6 +9107,7 @@ export declare const sandboxContract: {
9019
9107
  stopped: "stopped";
9020
9108
  }>>;
9021
9109
  until: z.ZodOptional<z.ZodNumber>;
9110
+ after: z.ZodOptional<z.ZodString>;
9022
9111
  }, z.core.$strip>>;
9023
9112
  updatedAt: z.ZodNumber;
9024
9113
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -9099,6 +9188,7 @@ export declare const sandboxContract: {
9099
9188
  running: "running";
9100
9189
  stalled: "stalled";
9101
9190
  stopped: "stopped";
9191
+ unpriced: "unpriced";
9102
9192
  }>;
9103
9193
  iteration: z.ZodNumber;
9104
9194
  maxIterations: z.ZodNumber;
@@ -9335,6 +9425,7 @@ export declare const sandboxContract: {
9335
9425
  stopped: "stopped";
9336
9426
  }>>;
9337
9427
  until: z.ZodOptional<z.ZodNumber>;
9428
+ after: z.ZodOptional<z.ZodString>;
9338
9429
  }, z.core.$strip>>;
9339
9430
  updatedAt: z.ZodNumber;
9340
9431
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -9415,6 +9506,7 @@ export declare const sandboxContract: {
9415
9506
  running: "running";
9416
9507
  stalled: "stalled";
9417
9508
  stopped: "stopped";
9509
+ unpriced: "unpriced";
9418
9510
  }>;
9419
9511
  iteration: z.ZodNumber;
9420
9512
  maxIterations: z.ZodNumber;
@@ -9652,6 +9744,7 @@ export declare const sandboxContract: {
9652
9744
  stopped: "stopped";
9653
9745
  }>>;
9654
9746
  until: z.ZodOptional<z.ZodNumber>;
9747
+ after: z.ZodOptional<z.ZodString>;
9655
9748
  }, z.core.$strip>>;
9656
9749
  updatedAt: z.ZodNumber;
9657
9750
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -9732,6 +9825,7 @@ export declare const sandboxContract: {
9732
9825
  running: "running";
9733
9826
  stalled: "stalled";
9734
9827
  stopped: "stopped";
9828
+ unpriced: "unpriced";
9735
9829
  }>;
9736
9830
  iteration: z.ZodNumber;
9737
9831
  maxIterations: z.ZodNumber;
@@ -9973,6 +10067,7 @@ export declare const sandboxContract: {
9973
10067
  stopped: "stopped";
9974
10068
  }>>;
9975
10069
  until: z.ZodOptional<z.ZodNumber>;
10070
+ after: z.ZodOptional<z.ZodString>;
9976
10071
  }, z.core.$strip>>;
9977
10072
  updatedAt: z.ZodNumber;
9978
10073
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -10053,6 +10148,7 @@ export declare const sandboxContract: {
10053
10148
  running: "running";
10054
10149
  stalled: "stalled";
10055
10150
  stopped: "stopped";
10151
+ unpriced: "unpriced";
10056
10152
  }>;
10057
10153
  iteration: z.ZodNumber;
10058
10154
  maxIterations: z.ZodNumber;
@@ -10295,6 +10391,7 @@ export declare const sandboxContract: {
10295
10391
  stopped: "stopped";
10296
10392
  }>>;
10297
10393
  until: z.ZodOptional<z.ZodNumber>;
10394
+ after: z.ZodOptional<z.ZodString>;
10298
10395
  }, z.core.$strip>>;
10299
10396
  updatedAt: z.ZodNumber;
10300
10397
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -10375,6 +10472,7 @@ export declare const sandboxContract: {
10375
10472
  running: "running";
10376
10473
  stalled: "stalled";
10377
10474
  stopped: "stopped";
10475
+ unpriced: "unpriced";
10378
10476
  }>;
10379
10477
  iteration: z.ZodNumber;
10380
10478
  maxIterations: z.ZodNumber;
@@ -13518,6 +13616,191 @@ export declare const sandboxContract: {
13518
13616
  ok: z.ZodLiteral<true>;
13519
13617
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13520
13618
  };
13619
+ privacy: {
13620
+ status: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
13621
+ policy: z.ZodObject<{
13622
+ mode: z.ZodDefault<z.ZodEnum<{
13623
+ off: "off";
13624
+ on: "on";
13625
+ watch: "watch";
13626
+ }>>;
13627
+ trusted: z.ZodDefault<z.ZodArray<z.ZodString>>;
13628
+ classes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
13629
+ address: "address";
13630
+ "bank-account": "bank-account";
13631
+ email: "email";
13632
+ "identity-document": "identity-document";
13633
+ "national-id": "national-id";
13634
+ "payment-card": "payment-card";
13635
+ "person-name": "person-name";
13636
+ phone: "phone";
13637
+ "tax-id": "tax-id";
13638
+ }>>>;
13639
+ images: z.ZodDefault<z.ZodEnum<{
13640
+ allow: "allow";
13641
+ mask: "mask";
13642
+ }>>;
13643
+ names: z.ZodDefault<z.ZodEnum<{
13644
+ dictionary: "dictionary";
13645
+ model: "model";
13646
+ }>>;
13647
+ allow: z.ZodDefault<z.ZodArray<z.ZodString>>;
13648
+ conversations: z.ZodDefault<z.ZodArray<z.ZodObject<{
13649
+ conversationId: z.ZodString;
13650
+ provider: z.ZodString;
13651
+ }, z.core.$strip>>>;
13652
+ }, z.core.$strip>;
13653
+ known: z.ZodNumber;
13654
+ tokens: z.ZodNumber;
13655
+ readers: z.ZodObject<{
13656
+ ocr: z.ZodBoolean;
13657
+ model: z.ZodBoolean;
13658
+ }, z.core.$strip>;
13659
+ providers: z.ZodArray<z.ZodObject<{
13660
+ id: z.ZodString;
13661
+ label: z.ZodString;
13662
+ shieldable: z.ZodBoolean;
13663
+ local: z.ZodBoolean;
13664
+ }, z.core.$strip>>;
13665
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13666
+ setPolicy: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
13667
+ mode: z.ZodDefault<z.ZodEnum<{
13668
+ off: "off";
13669
+ on: "on";
13670
+ watch: "watch";
13671
+ }>>;
13672
+ trusted: z.ZodDefault<z.ZodArray<z.ZodString>>;
13673
+ classes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
13674
+ address: "address";
13675
+ "bank-account": "bank-account";
13676
+ email: "email";
13677
+ "identity-document": "identity-document";
13678
+ "national-id": "national-id";
13679
+ "payment-card": "payment-card";
13680
+ "person-name": "person-name";
13681
+ phone: "phone";
13682
+ "tax-id": "tax-id";
13683
+ }>>>;
13684
+ images: z.ZodDefault<z.ZodEnum<{
13685
+ allow: "allow";
13686
+ mask: "mask";
13687
+ }>>;
13688
+ names: z.ZodDefault<z.ZodEnum<{
13689
+ dictionary: "dictionary";
13690
+ model: "model";
13691
+ }>>;
13692
+ allow: z.ZodDefault<z.ZodArray<z.ZodString>>;
13693
+ conversations: z.ZodDefault<z.ZodArray<z.ZodObject<{
13694
+ conversationId: z.ZodString;
13695
+ provider: z.ZodString;
13696
+ }, z.core.$strip>>>;
13697
+ }, z.core.$strip>, z.ZodObject<{
13698
+ ok: z.ZodLiteral<true>;
13699
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13700
+ log: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
13701
+ at: z.ZodString;
13702
+ conversationId: z.ZodOptional<z.ZodString>;
13703
+ provider: z.ZodString;
13704
+ trusted: z.ZodBoolean;
13705
+ action: z.ZodEnum<{
13706
+ masked: "masked";
13707
+ passed: "passed";
13708
+ refused: "refused";
13709
+ watched: "watched";
13710
+ }>;
13711
+ counts: z.ZodRecord<z.ZodEnum<{
13712
+ address: "address";
13713
+ "bank-account": "bank-account";
13714
+ email: "email";
13715
+ "identity-document": "identity-document";
13716
+ "national-id": "national-id";
13717
+ "payment-card": "payment-card";
13718
+ "person-name": "person-name";
13719
+ phone: "phone";
13720
+ "tax-id": "tax-id";
13721
+ }> & z.core.$partial, z.ZodNumber>;
13722
+ images: z.ZodNumber;
13723
+ documents: z.ZodNumber;
13724
+ protocol: z.ZodString;
13725
+ detail: z.ZodOptional<z.ZodString>;
13726
+ }, z.core.$strip>>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13727
+ dictionary: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
13728
+ query: z.ZodOptional<z.ZodString>;
13729
+ }, z.core.$strip>, z.ZodObject<{
13730
+ lists: z.ZodArray<z.ZodObject<{
13731
+ id: z.ZodString;
13732
+ kind: z.ZodEnum<{
13733
+ ambiguous: "ambiguous";
13734
+ "first-name": "first-name";
13735
+ never: "never";
13736
+ surname: "surname";
13737
+ title: "title";
13738
+ }>;
13739
+ languages: z.ZodArray<z.ZodEnum<{
13740
+ en: "en";
13741
+ pl: "pl";
13742
+ }>>;
13743
+ count: z.ZodNumber;
13744
+ matching: z.ZodEnum<{
13745
+ "as-written": "as-written";
13746
+ inflected: "inflected";
13747
+ }>;
13748
+ source: z.ZodString;
13749
+ url: z.ZodOptional<z.ZodString>;
13750
+ license: z.ZodOptional<z.ZodString>;
13751
+ }, z.core.$strip>>;
13752
+ totals: z.ZodObject<{
13753
+ firstNames: z.ZodNumber;
13754
+ surnames: z.ZodNumber;
13755
+ }, z.core.$strip>;
13756
+ matches: z.ZodArray<z.ZodObject<{
13757
+ word: z.ZodString;
13758
+ lists: z.ZodArray<z.ZodString>;
13759
+ }, z.core.$strip>>;
13760
+ lookup: z.ZodOptional<z.ZodObject<{
13761
+ text: z.ZodString;
13762
+ found: z.ZodBoolean;
13763
+ words: z.ZodArray<z.ZodObject<{
13764
+ word: z.ZodString;
13765
+ firstName: z.ZodBoolean;
13766
+ surname: z.ZodBoolean;
13767
+ surnameForm: z.ZodBoolean;
13768
+ ambiguous: z.ZodBoolean;
13769
+ never: z.ZodBoolean;
13770
+ }, z.core.$strip>>;
13771
+ }, z.core.$strip>>;
13772
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13773
+ sources: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
13774
+ source: z.ZodString;
13775
+ count: z.ZodNumber;
13776
+ at: z.ZodString;
13777
+ }, z.core.$strip>>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13778
+ learn: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
13779
+ source: z.ZodString;
13780
+ values: z.ZodArray<z.ZodObject<{
13781
+ value: z.ZodString;
13782
+ class: z.ZodEnum<{
13783
+ address: "address";
13784
+ "bank-account": "bank-account";
13785
+ email: "email";
13786
+ "identity-document": "identity-document";
13787
+ "national-id": "national-id";
13788
+ "payment-card": "payment-card";
13789
+ "person-name": "person-name";
13790
+ phone: "phone";
13791
+ "tax-id": "tax-id";
13792
+ }>;
13793
+ }, z.core.$strip>>;
13794
+ }, z.core.$strip>, z.ZodObject<{
13795
+ added: z.ZodNumber;
13796
+ known: z.ZodNumber;
13797
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13798
+ forget: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
13799
+ source: z.ZodString;
13800
+ }, z.core.$strip>, z.ZodObject<{
13801
+ forgotten: z.ZodNumber;
13802
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13803
+ };
13521
13804
  safety: {
13522
13805
  policy: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
13523
13806
  text: z.ZodString;
@@ -13695,6 +13978,7 @@ export declare const sandboxContract: {
13695
13978
  pending: "pending";
13696
13979
  }>;
13697
13980
  answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
13981
+ attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
13698
13982
  }, z.core.$strip>>;
13699
13983
  permission: z.ZodOptional<z.ZodObject<{
13700
13984
  toolName: z.ZodString;
@@ -13704,6 +13988,7 @@ export declare const sandboxContract: {
13704
13988
  reason: z.ZodOptional<z.ZodString>;
13705
13989
  path: z.ZodOptional<z.ZodString>;
13706
13990
  alwaysLabel: z.ZodOptional<z.ZodString>;
13991
+ alwaysAsks: z.ZodOptional<z.ZodLiteral<true>>;
13707
13992
  program: z.ZodOptional<z.ZodObject<{
13708
13993
  text: z.ZodString;
13709
13994
  language: z.ZodEnum<{
@@ -13756,6 +14041,7 @@ export declare const sandboxContract: {
13756
14041
  always: "always";
13757
14042
  cancelled: "cancelled";
13758
14043
  denied: "denied";
14044
+ everything: "everything";
13759
14045
  pending: "pending";
13760
14046
  }>;
13761
14047
  }, z.core.$strip>>;
@@ -16224,6 +16510,7 @@ export declare const sandboxContract: {
16224
16510
  running: "running";
16225
16511
  stalled: "stalled";
16226
16512
  stopped: "stopped";
16513
+ unpriced: "unpriced";
16227
16514
  }>;
16228
16515
  startedAt: z.ZodNumber;
16229
16516
  endedAt: z.ZodOptional<z.ZodNumber>;
@@ -16354,6 +16641,7 @@ export declare const sandboxContract: {
16354
16641
  running: "running";
16355
16642
  stalled: "stalled";
16356
16643
  stopped: "stopped";
16644
+ unpriced: "unpriced";
16357
16645
  }>;
16358
16646
  startedAt: z.ZodNumber;
16359
16647
  endedAt: z.ZodOptional<z.ZodNumber>;
@@ -17220,6 +17508,8 @@ export declare const sandboxContract: {
17220
17508
  web: "web";
17221
17509
  }>>;
17222
17510
  installs: z.ZodDefault<z.ZodBoolean>;
17511
+ secrets: z.ZodDefault<z.ZodArray<z.ZodString>>;
17512
+ everything: z.ZodDefault<z.ZodBoolean>;
17223
17513
  by: z.ZodOptional<z.ZodString>;
17224
17514
  updatedAt: z.ZodOptional<z.ZodNumber>;
17225
17515
  releases: z.ZodArray<z.ZodObject<{
@@ -17233,9 +17523,11 @@ export declare const sandboxContract: {
17233
17523
  conversationId: z.ZodString;
17234
17524
  kind: z.ZodEnum<{
17235
17525
  capability: "capability";
17526
+ everything: "everything";
17236
17527
  folder: "folder";
17237
17528
  install: "install";
17238
17529
  release: "release";
17530
+ secret: "secret";
17239
17531
  shelf: "shelf";
17240
17532
  }>;
17241
17533
  what: z.ZodString;
@@ -17519,6 +17811,19 @@ export declare const sandboxContract: {
17519
17811
  events: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
17520
17812
  clientId: z.ZodOptional<z.ZodString>;
17521
17813
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
17814
+ kind: "heartbeat";
17815
+ rev: number;
17816
+ } | {
17817
+ ready: boolean;
17818
+ startedAt: number;
17819
+ steps: {
17820
+ key: string;
17821
+ label: string;
17822
+ state: "done" | "failed" | "pending" | "running";
17823
+ ms?: number | undefined;
17824
+ }[];
17825
+ kind: "boot";
17826
+ } | {
17522
17827
  kind: "hello";
17523
17828
  workspaceId: string;
17524
17829
  routes?: string[] | undefined;
@@ -17537,27 +17842,14 @@ export declare const sandboxContract: {
17537
17842
  projectDir?: string | undefined;
17538
17843
  surface?: "folder" | "sandbox" | undefined;
17539
17844
  } | {
17540
- kind: "heartbeat";
17541
- rev: number;
17542
- } | {
17543
- ready: boolean;
17544
- startedAt: number;
17545
- steps: {
17546
- key: string;
17547
- label: string;
17548
- state: "done" | "failed" | "pending" | "running";
17549
- ms?: number | undefined;
17550
- }[];
17551
- kind: "boot";
17845
+ kind: "reposChanged";
17846
+ repos: string[];
17552
17847
  } | {
17553
17848
  kind: "workspaceChanged";
17554
17849
  paths: string[];
17555
17850
  } | {
17556
17851
  kind: "derivedChanged";
17557
17852
  paths: string[];
17558
- } | {
17559
- kind: "reposChanged";
17560
- repos: string[];
17561
17853
  } | {
17562
17854
  kind: "refsChanged";
17563
17855
  repos: string[];
@@ -17705,6 +17997,7 @@ export declare const sandboxContract: {
17705
17997
  revision: number;
17706
17998
  paused?: "refused" | "scheduled" | "stopped" | undefined;
17707
17999
  until?: number | undefined;
18000
+ after?: string | undefined;
17708
18001
  } | undefined;
17709
18002
  updatedAt: number;
17710
18003
  seenAt?: number | undefined;
@@ -17768,7 +18061,7 @@ export declare const sandboxContract: {
17768
18061
  } | undefined;
17769
18062
  } | undefined;
17770
18063
  loop?: {
17771
- state: "done" | "error" | "exhausted" | "overspent" | "running" | "stalled" | "stopped";
18064
+ state: "done" | "error" | "exhausted" | "overspent" | "running" | "stalled" | "stopped" | "unpriced";
17772
18065
  iteration: number;
17773
18066
  maxIterations: number;
17774
18067
  goal: string;
@@ -17849,6 +18142,19 @@ export declare const sandboxContract: {
17849
18142
  barren?: string[] | undefined;
17850
18143
  kind: "treeChanged";
17851
18144
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
18145
+ kind: "heartbeat";
18146
+ rev: number;
18147
+ } | {
18148
+ ready: boolean;
18149
+ startedAt: number;
18150
+ steps: {
18151
+ key: string;
18152
+ label: string;
18153
+ state: "done" | "failed" | "pending" | "running";
18154
+ ms?: number | undefined;
18155
+ }[];
18156
+ kind: "boot";
18157
+ } | {
17852
18158
  kind: "hello";
17853
18159
  workspaceId: string;
17854
18160
  routes?: string[] | undefined;
@@ -17867,27 +18173,14 @@ export declare const sandboxContract: {
17867
18173
  projectDir?: string | undefined;
17868
18174
  surface?: "folder" | "sandbox" | undefined;
17869
18175
  } | {
17870
- kind: "heartbeat";
17871
- rev: number;
17872
- } | {
17873
- ready: boolean;
17874
- startedAt: number;
17875
- steps: {
17876
- key: string;
17877
- label: string;
17878
- state: "done" | "failed" | "pending" | "running";
17879
- ms?: number | undefined;
17880
- }[];
17881
- kind: "boot";
18176
+ kind: "reposChanged";
18177
+ repos: string[];
17882
18178
  } | {
17883
18179
  kind: "workspaceChanged";
17884
18180
  paths: string[];
17885
18181
  } | {
17886
18182
  kind: "derivedChanged";
17887
18183
  paths: string[];
17888
- } | {
17889
- kind: "reposChanged";
17890
- repos: string[];
17891
18184
  } | {
17892
18185
  kind: "refsChanged";
17893
18186
  repos: string[];
@@ -18035,6 +18328,7 @@ export declare const sandboxContract: {
18035
18328
  revision: number;
18036
18329
  paused?: "refused" | "scheduled" | "stopped" | undefined;
18037
18330
  until?: number | undefined;
18331
+ after?: string | undefined;
18038
18332
  } | undefined;
18039
18333
  updatedAt: number;
18040
18334
  seenAt?: number | undefined;
@@ -18098,7 +18392,7 @@ export declare const sandboxContract: {
18098
18392
  } | undefined;
18099
18393
  } | undefined;
18100
18394
  loop?: {
18101
- state: "done" | "error" | "exhausted" | "overspent" | "running" | "stalled" | "stopped";
18395
+ state: "done" | "error" | "exhausted" | "overspent" | "running" | "stalled" | "stopped" | "unpriced";
18102
18396
  iteration: number;
18103
18397
  maxIterations: number;
18104
18398
  goal: string;
@@ -18447,6 +18741,7 @@ export declare const sandboxContract: {
18447
18741
  stopped: "stopped";
18448
18742
  }>>;
18449
18743
  until: z.ZodOptional<z.ZodNumber>;
18744
+ after: z.ZodOptional<z.ZodString>;
18450
18745
  }, z.core.$strip>>;
18451
18746
  updatedAt: z.ZodNumber;
18452
18747
  seenAt: z.ZodOptional<z.ZodNumber>;
@@ -18527,6 +18822,7 @@ export declare const sandboxContract: {
18527
18822
  running: "running";
18528
18823
  stalled: "stalled";
18529
18824
  stopped: "stopped";
18825
+ unpriced: "unpriced";
18530
18826
  }>;
18531
18827
  iteration: z.ZodNumber;
18532
18828
  maxIterations: z.ZodNumber;
@@ -19573,6 +19869,7 @@ export declare const sandboxContract: {
19573
19869
  cacheReadTokens: z.ZodNumber;
19574
19870
  cacheCreationTokens: z.ZodNumber;
19575
19871
  costUsd: z.ZodNumber;
19872
+ costKnown: z.ZodOptional<z.ZodBoolean>;
19576
19873
  durationMs: z.ZodNumber;
19577
19874
  }, z.core.$strip>>;
19578
19875
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -20083,6 +20380,7 @@ export declare const sandboxContract: {
20083
20380
  running: "running";
20084
20381
  stalled: "stalled";
20085
20382
  stopped: "stopped";
20383
+ unpriced: "unpriced";
20086
20384
  }>>;
20087
20385
  detail: z.ZodOptional<z.ZodString>;
20088
20386
  document: z.ZodOptional<z.ZodObject<{
@@ -20343,6 +20641,7 @@ export declare const sandboxContract: {
20343
20641
  running: "running";
20344
20642
  stalled: "stalled";
20345
20643
  stopped: "stopped";
20644
+ unpriced: "unpriced";
20346
20645
  }>>;
20347
20646
  detail: z.ZodOptional<z.ZodString>;
20348
20647
  document: z.ZodOptional<z.ZodObject<{
@@ -20461,6 +20760,7 @@ export declare const sandboxContract: {
20461
20760
  running: "running";
20462
20761
  stalled: "stalled";
20463
20762
  stopped: "stopped";
20763
+ unpriced: "unpriced";
20464
20764
  }>>;
20465
20765
  detail: z.ZodOptional<z.ZodString>;
20466
20766
  document: z.ZodOptional<z.ZodObject<{