deepline 0.3.546 → 0.3.548

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 (204) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +13 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +7 -1
  3. package/dist/bundling-sources/sdk/src/integrations.ts +17 -7
  4. package/dist/bundling-sources/sdk/src/play.ts +71 -0
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +13 -4
  7. package/dist/bundling-sources/sdk/src/types.ts +33 -0
  8. package/dist/bundling-sources/shared_libs/integration-contracts/calendar-delegation.ts +7 -0
  9. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +2 -0
  10. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +1 -0
  11. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +19 -1
  12. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +17 -2
  13. package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +57 -5
  14. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +295 -52
  15. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +10 -1
  16. package/dist/bundling-sources/shared_libs/play-runtime/docflow-decision-tracker.ts +135 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/docflow-fail-open.ts +177 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/docflow-node-io.ts +99 -2
  19. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +16 -10
  20. package/dist/bundling-sources/shared_libs/play-runtime/fenced-call-diagnostics.ts +211 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +52 -14
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +68 -2
  23. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +68 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +100 -3
  26. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +9 -1
  27. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +48 -0
  28. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -1
  29. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +716 -51
  30. package/dist/bundling-sources/shared_libs/plays/docflow-decision-arms.ts +146 -0
  31. package/dist/bundling-sources/shared_libs/plays/docflow-flow-order.ts +94 -0
  32. package/dist/bundling-sources/shared_libs/plays/docflow-unreached-reason.ts +10 -1
  33. package/dist/bundling-sources/shared_libs/plays/docflow.ts +787 -117
  34. package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +8 -2
  35. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +6 -0
  36. package/dist/bundling-sources/shared_libs/plays/trigger-config-contract.ts +13 -0
  37. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +25 -0
  38. package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +3 -0
  39. package/dist/bundling-sources/shared_libs/security/email-domain.ts +24 -0
  40. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +56 -0
  41. package/dist/cli/auth-7UJFY5BY.js +43 -0
  42. package/dist/cli/{auth-KFWG72AZ.mjs → auth-YOOVLLUL.mjs} +5 -5
  43. package/dist/cli/{billing-MMZ336HO.mjs → billing-2NCNX6L2.mjs} +10 -10
  44. package/dist/cli/{billing-OQVOAZ4S.js → billing-HETIOUD6.js} +96 -96
  45. package/dist/cli/{chunk-JVOUQFHT.js → chunk-2OG2KBYJ.js} +1 -1
  46. package/dist/cli/{chunk-JA633HRV.mjs → chunk-3QRU6RY7.mjs} +3 -3
  47. package/dist/cli/{chunk-TI6DTURF.js → chunk-4WAM6TLD.js} +7 -1
  48. package/dist/cli/{chunk-RO66FPTS.mjs → chunk-53QLWPZK.mjs} +1 -1
  49. package/dist/cli/{chunk-6LG7MLJ2.js → chunk-5OJOFUMO.js} +44 -44
  50. package/dist/cli/{chunk-F2VEFMU5.js → chunk-5XFJBIQT.js} +13 -13
  51. package/dist/cli/{chunk-UQJBV5PM.js → chunk-5XXPP3PR.js} +10 -10
  52. package/dist/cli/{chunk-6FBDTYR2.mjs → chunk-64BFUBXX.mjs} +2 -2
  53. package/dist/cli/{chunk-VAT2SXFF.js → chunk-6GIZNOXQ.js} +12 -12
  54. package/dist/cli/{chunk-7MY7KWJS.mjs → chunk-7AJ5V3BK.mjs} +1 -1
  55. package/dist/cli/{chunk-MEGHIX4M.js → chunk-7H6TQ6W2.js} +5 -5
  56. package/dist/cli/{chunk-PMDHY2YK.js → chunk-7JIOJLTS.js} +7 -7
  57. package/dist/cli/{chunk-EEJHB76U.js → chunk-7UJZWI5Z.js} +12 -12
  58. package/dist/cli/{chunk-X5KOHDJN.mjs → chunk-ATTURFOV.mjs} +1 -1
  59. package/dist/cli/{chunk-SH32HL7I.js → chunk-AUYBBFPT.js} +53 -53
  60. package/dist/cli/{chunk-JCWNF44W.js → chunk-BDBEEV6X.js} +22 -22
  61. package/dist/cli/{chunk-WKHPLBJK.js → chunk-BWJZ4NQJ.js} +15 -15
  62. package/dist/cli/{chunk-2JHYYB3F.js → chunk-CSPHSNBW.js} +3 -3
  63. package/dist/cli/{chunk-4AZLGNXV.js → chunk-CXZLHBNK.js} +4 -4
  64. package/dist/cli/{chunk-J65HJCJO.mjs → chunk-F4ON5COB.mjs} +2 -2
  65. package/dist/cli/{chunk-KUK7ARXA.mjs → chunk-FMQA7UZZ.mjs} +2 -2
  66. package/dist/cli/{chunk-UREAIHUU.mjs → chunk-FUUYWEF4.mjs} +3 -3
  67. package/dist/cli/{chunk-HXIR3VQL.mjs → chunk-FZHMNK6F.mjs} +7 -1
  68. package/dist/cli/{chunk-PU3ZAG6V.mjs → chunk-GCEGQ7TQ.mjs} +1 -1
  69. package/dist/cli/{chunk-BLYW6FFB.js → chunk-GJA2PRHJ.js} +2 -2
  70. package/dist/cli/{chunk-TBWYZOSV.js → chunk-GUIYFOG2.js} +3 -3
  71. package/dist/cli/{chunk-BTFUAGHC.js → chunk-HDLMX7SG.js} +16 -16
  72. package/dist/cli/{chunk-VTK3HGMN.mjs → chunk-HIMZ57QD.mjs} +5 -5
  73. package/dist/cli/{chunk-JYG4XZLT.js → chunk-HTZIJORU.js} +99 -99
  74. package/dist/cli/{chunk-VPERQ3U6.mjs → chunk-HU3DDLGD.mjs} +5 -5
  75. package/dist/cli/{chunk-H7Q5IDO3.js → chunk-I2JIWKCQ.js} +20 -20
  76. package/dist/cli/{chunk-MXQP7CXZ.js → chunk-IIWXBRDK.js} +3 -3
  77. package/dist/cli/{chunk-MI7X6V6V.mjs → chunk-IQBXX54G.mjs} +3 -3
  78. package/dist/cli/{chunk-SYTWWVIQ.js → chunk-JQWX377P.js} +5 -5
  79. package/dist/cli/{chunk-Z3UEBFIN.js → chunk-LAVPP6WD.js} +41 -41
  80. package/dist/cli/{chunk-JCH4UNNS.js → chunk-M2OZORIH.js} +2 -2
  81. package/dist/cli/{chunk-Z7SXGOIQ.mjs → chunk-MF7PCM6C.mjs} +1 -1
  82. package/dist/cli/{chunk-7ZW67ME6.mjs → chunk-MQSKSISW.mjs} +1 -1
  83. package/dist/cli/{chunk-JARZ47OP.mjs → chunk-MWQ4WWZF.mjs} +2 -2
  84. package/dist/cli/{chunk-EEG46QZY.mjs → chunk-NFMX7BRF.mjs} +2 -2
  85. package/dist/cli/{chunk-VXTTAYOT.mjs → chunk-OGDQFVCP.mjs} +3 -3
  86. package/dist/cli/{chunk-3DUNNZB6.mjs → chunk-OQCYSLML.mjs} +4 -4
  87. package/dist/cli/{chunk-5W4ENHWM.js → chunk-PVE3A2BO.js} +285 -264
  88. package/dist/cli/{chunk-F5YQXCP3.js → chunk-PVQCX6KQ.js} +50 -7
  89. package/dist/cli/{chunk-GYTSDSQD.mjs → chunk-QQBRXMZM.mjs} +11 -11
  90. package/dist/cli/{chunk-6Y5TU3R7.mjs → chunk-QZ74ZC55.mjs} +1 -1
  91. package/dist/cli/{chunk-5OEFXAKP.mjs → chunk-RMCCB3XY.mjs} +50 -7
  92. package/dist/cli/{chunk-5V7NZKGG.js → chunk-T3RDWG5J.js} +2 -2
  93. package/dist/cli/{chunk-OAKWSLKS.mjs → chunk-TKGFHRHE.mjs} +28 -7
  94. package/dist/cli/{chunk-HJR2DDJS.mjs → chunk-U35ZLVBA.mjs} +2 -2
  95. package/dist/cli/{chunk-ND7SFRQL.js → chunk-U7HJXE6Y.js} +2 -2
  96. package/dist/cli/{chunk-LX2TC3HO.mjs → chunk-UBQQR56I.mjs} +4 -4
  97. package/dist/cli/{chunk-5VNQMVCU.js → chunk-VK2GSTRN.js} +26 -26
  98. package/dist/cli/{chunk-K2XELBPF.mjs → chunk-VSACOMIA.mjs} +5 -5
  99. package/dist/cli/{chunk-IVWU7SJC.js → chunk-WI4MCR7M.js} +5 -5
  100. package/dist/cli/{chunk-LIJKRDDG.js → chunk-WIHQAZPV.js} +6 -6
  101. package/dist/cli/{chunk-LHE2TSV6.mjs → chunk-WVZF4DU7.mjs} +1 -1
  102. package/dist/cli/{chunk-2HSZCQMT.mjs → chunk-WYT3H6JD.mjs} +1 -1
  103. package/dist/cli/{chunk-GOOF7E2B.mjs → chunk-XKEBQVCP.mjs} +5 -5
  104. package/dist/cli/{chunk-P7A3H6G5.mjs → chunk-XU3D2KFR.mjs} +1 -1
  105. package/dist/cli/command-docs.js +2 -2
  106. package/dist/cli/command-docs.mjs +1 -1
  107. package/dist/cli/concurrent-runs-help-A2IQVZRJ.js +21 -0
  108. package/dist/cli/{concurrent-runs-help-C2O5YKQA.mjs → concurrent-runs-help-FDCCZ45D.mjs} +6 -6
  109. package/dist/cli/{csv-Z4DNGR54.mjs → csv-GJYLQ52D.mjs} +4 -4
  110. package/dist/cli/{csv-MJDNOIQJ.js → csv-OCEQWZO3.js} +13 -13
  111. package/dist/cli/{db-4RL2BNOF.mjs → db-5MA2UUHQ.mjs} +7 -7
  112. package/dist/cli/{db-S5QVPK5E.js → db-G5QGXFAX.js} +28 -28
  113. package/dist/cli/{describe-L4P5SZLQ.mjs → describe-4DOJ4DHA.mjs} +19 -19
  114. package/dist/cli/describe-SD7DRTBW.js +50 -0
  115. package/dist/cli/describe-core.d.mts +4 -4
  116. package/dist/cli/describe-core.d.ts +4 -4
  117. package/dist/cli/{executions-RR6O3XK5.mjs → executions-C7SMBHHB.mjs} +7 -7
  118. package/dist/cli/{executions-MFZ2Z36O.js → executions-IYEVUPJI.js} +9 -9
  119. package/dist/cli/{feedback-YDAG7VH2.js → feedback-GYAF46GA.js} +14 -14
  120. package/dist/cli/{feedback-EQBQ3ABB.mjs → feedback-XUU2UKM6.mjs} +6 -6
  121. package/dist/cli/git-7YYVMY6L.js +25 -0
  122. package/dist/cli/{git-YGLCCU35.mjs → git-WVCMK5AH.mjs} +5 -5
  123. package/dist/cli/index.js +146 -146
  124. package/dist/cli/index.mjs +45 -45
  125. package/dist/cli/{integrations-FWYXSBHK.mjs → integrations-FXADGAX2.mjs} +11 -9
  126. package/dist/cli/{integrations-IQXYMRMW.js → integrations-YYBJJFVX.js} +19 -17
  127. package/dist/cli/{legacy-noops-I4YRIX5F.mjs → legacy-noops-LJY7LDUE.mjs} +6 -6
  128. package/dist/cli/{legacy-noops-U7LI7UXC.js → legacy-noops-REZCYES2.js} +9 -9
  129. package/dist/cli/{mcp-GX2UKKWU.js → mcp-L5PURE5S.js} +24 -24
  130. package/dist/cli/{mcp-QJBMB6VS.mjs → mcp-XSB3ZJFR.mjs} +4 -4
  131. package/dist/cli/{monitors-WCJYINGX.js → monitors-I5EIHSGV.js} +119 -101
  132. package/dist/cli/{monitors-Z6EGKYJP.mjs → monitors-UBPF2OLO.mjs} +26 -8
  133. package/dist/cli/{org-NNHICBR2.mjs → org-PHHIN2ER.mjs} +7 -7
  134. package/dist/cli/{org-7SKG423N.js → org-SGSTGGUD.js} +89 -89
  135. package/dist/cli/{play-CXDFPJ7Z.mjs → play-LEJNJLWY.mjs} +295 -67
  136. package/dist/cli/{play-4P4DTG3Q.js → play-WQEKMANL.js} +897 -669
  137. package/dist/cli/{providers-VQLQ7DTR.mjs → providers-3W26ZDAV.mjs} +7 -7
  138. package/dist/cli/{providers-EE4TUE3O.js → providers-RSDXBXIS.js} +10 -10
  139. package/dist/cli/{quickstart-IYNJRB5G.mjs → quickstart-LGJD2M36.mjs} +4 -4
  140. package/dist/cli/{quickstart-RVXHK4WA.js → quickstart-U3QX4EMI.js} +6 -6
  141. package/dist/cli/{run-R3F34KU3.js → run-F2UPZUJS.js} +45 -45
  142. package/dist/cli/{run-VBQPPMEX.mjs → run-YWZ3W5HK.mjs} +25 -25
  143. package/dist/cli/search-K6ANAXLF.js +32 -0
  144. package/dist/cli/{search-B7R62HX5.mjs → search-O2OJH3PY.mjs} +8 -8
  145. package/dist/cli/{search-output-LNQQXIGZ.mjs → search-output-H5BF6SJ3.mjs} +4 -4
  146. package/dist/cli/{search-output-LWHWEPOT.js → search-output-W7OCBYBU.js} +6 -6
  147. package/dist/cli/{secrets-NM3VAJLO.mjs → secrets-65XCAA7U.mjs} +7 -7
  148. package/dist/cli/{secrets-QBOZ7WTD.js → secrets-BN4GYVRI.js} +16 -16
  149. package/dist/cli/sessions-M52QWLA6.js +22 -0
  150. package/dist/cli/{sessions-R5BSIJ4I.mjs → sessions-SVEVESCQ.mjs} +6 -6
  151. package/dist/cli/{settings-POYWKNRD.js → settings-7YMDAFCN.js} +86 -86
  152. package/dist/cli/{settings-S4PN7WLY.mjs → settings-HAU2NP2H.mjs} +13 -13
  153. package/dist/cli/{setup-PFLXVBTL.mjs → setup-5RXHZ6YI.mjs} +9 -9
  154. package/dist/cli/{setup-VHB4Z654.js → setup-G37QXQGM.js} +49 -49
  155. package/dist/cli/{skills-W2TELEU7.mjs → skills-Q7A3XFAU.mjs} +7 -7
  156. package/dist/cli/skills-ZK4D5BJW.js +36 -0
  157. package/dist/cli/tools-DBZTLYFM.js +57 -0
  158. package/dist/cli/{tools-M4FA6N3Y.mjs → tools-ZG4NYRGB.mjs} +18 -18
  159. package/dist/cli/{update-W7LIHEA7.mjs → update-2CMZTZCL.mjs} +9 -9
  160. package/dist/cli/update-LC5HGEEH.js +34 -0
  161. package/dist/cli/{views-KTVPV6UP.mjs → views-A6IIY4OQ.mjs} +7 -7
  162. package/dist/cli/{views-DJXAGD7V.js → views-XUMDMDIE.js} +22 -22
  163. package/dist/cli/{workflow-NVZDJKH2.js → workflow-4EEW6MCD.js} +18 -18
  164. package/dist/cli/{workflow-LGKCRODX.mjs → workflow-74MYISHU.mjs} +8 -8
  165. package/dist/{client-Tp1LSULB.d.mts → client-D1uWA2Vc.d.mts} +1 -1
  166. package/dist/{client-CCyWJqAI.d.ts → client-Hz7SsBXs.d.ts} +1 -1
  167. package/dist/{client-core-BpYiYEfu.d.ts → client-core-D3Ad7Flt.d.ts} +554 -504
  168. package/dist/{client-core-D8eCZz3O.d.mts → client-core-Db_e63Hb.d.mts} +554 -504
  169. package/dist/{compiler-manifest-EBWEUj0b.d.ts → compiler-manifest-BqwVrOri.d.mts} +38 -18
  170. package/dist/{compiler-manifest-EBWEUj0b.d.mts → compiler-manifest-BqwVrOri.d.ts} +38 -18
  171. package/dist/{errors-CParKUQR.d.mts → errors-BU8FB99X.d.mts} +1 -1
  172. package/dist/{errors-Qt0OTA7_.d.ts → errors-DfVN_FUG.d.ts} +1 -1
  173. package/dist/{index-CoqDkIw0.d.ts → index-BGnvtYGc.d.ts} +6 -1
  174. package/dist/{index-BMUVCNp7.d.mts → index-DjZgwpGw.d.mts} +6 -1
  175. package/dist/index.d.mts +28 -8
  176. package/dist/index.d.ts +28 -8
  177. package/dist/index.js +64 -39
  178. package/dist/index.mjs +32 -7
  179. package/dist/install-integrity.json +133 -128
  180. package/dist/plays/bundle-play-file.d.mts +3 -3
  181. package/dist/plays/bundle-play-file.d.ts +3 -3
  182. package/dist/plays/bundle-play-file.mjs +620 -124
  183. package/dist/plays/play-description.d.mts +3 -3
  184. package/dist/plays/play-description.d.ts +3 -3
  185. package/dist/plays/run-request.d.mts +2 -2
  186. package/dist/plays/run-request.d.ts +2 -2
  187. package/dist/release.d.mts +1 -1
  188. package/dist/release.d.ts +1 -1
  189. package/dist/release.js +2 -2
  190. package/dist/release.mjs +1 -1
  191. package/dist/server.d.mts +4 -4
  192. package/dist/server.d.ts +4 -4
  193. package/dist/server.js +6 -6
  194. package/dist/server.mjs +4 -4
  195. package/package.json +1 -1
  196. package/dist/cli/auth-W32GMYND.js +0 -43
  197. package/dist/cli/concurrent-runs-help-6QT7ZR4W.js +0 -21
  198. package/dist/cli/describe-VLU2LUDJ.js +0 -50
  199. package/dist/cli/git-E6W44F5M.js +0 -25
  200. package/dist/cli/search-UUVFXZRA.js +0 -32
  201. package/dist/cli/sessions-K3PD73Q2.js +0 -22
  202. package/dist/cli/skills-QNE2EYT3.js +0 -36
  203. package/dist/cli/tools-3RLI4HGF.js +0 -57
  204. package/dist/cli/update-UT6KIW2W.js +0 -34
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { v as PlayCompilerManifest, ao as ToolResultBilling, D as DeeplineError, u as PlaySandboxRuntimeDeclaration, B as BillingEntitlements, I as IncludedCompute, aq as BillingBenefitValues } from './compiler-manifest-EBWEUj0b.js';
3
2
  import { z } from 'zod';
3
+ import { v as PlayCompilerManifest, ao as ToolResultBilling, D as DeeplineError, u as PlaySandboxRuntimeDeclaration, B as BillingEntitlements, I as IncludedCompute, aq as BillingBenefitValues } from './compiler-manifest-BqwVrOri.js';
4
4
  import { MonitorFleetDefinition } from './monitor-fleet-contract.js';
5
5
 
6
6
  declare const playPathSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
@@ -186,6 +186,11 @@ type PlayTriggerConfigWebhookState = {
186
186
  auth: PlayWebhookAuthConfig | null;
187
187
  };
188
188
  type PlayTriggerConfigReadOnlyReason = 'not_published' | 'git_managed' | 'archived';
189
+ type PlayTriggerPublishCandidate = {
190
+ revisionId: string;
191
+ version: number | null;
192
+ sourceHash: string | null;
193
+ };
189
194
  type PlayTriggerConfigView = {
190
195
  name: string;
191
196
  playDefinitionId: string;
@@ -196,6 +201,13 @@ type PlayTriggerConfigView = {
196
201
  reason: PlayTriggerConfigReadOnlyReason;
197
202
  message: string;
198
203
  } | null;
204
+ /**
205
+ * With `readOnly.reason === 'not_published'`: the saved revision that
206
+ * publishing would make live (`POST /api/v2/plays/:name/live` with this
207
+ * `revisionId`, the request `deepline plays publish <name> --revision-id`
208
+ * sends). Absent from older servers and on every other state.
209
+ */
210
+ publishCandidate?: PlayTriggerPublishCandidate | null;
199
211
  cron: PlayTriggerConfigCronState | null;
200
212
  webhook: PlayTriggerConfigWebhookState | null;
201
213
  };
@@ -247,525 +259,259 @@ type RunToolReceiptsResponse = {
247
259
  receipts: RunToolReceiptResult[];
248
260
  };
249
261
 
250
- type CalendarDelegationSettings = {
251
- connectionId?: string;
252
- name?: string;
253
- label?: string;
254
- allMembers?: boolean;
255
- grantRevision?: number;
256
- rosterLimit: number;
257
- domain: string;
258
- clientId: string;
259
- scope: string;
260
- grantedScopes?: string[];
261
- enabled: boolean;
262
- connectionEnabled?: boolean;
263
- revision: number;
264
- selectedMemberIds: string[];
265
- verifiedAt: number | null;
266
- members: Array<{
267
- memberId: string;
268
- name: string;
269
- email: string;
270
- eligible: boolean;
271
- }>;
272
- nextCursor: string | null;
262
+ declare const FIXTURE_BEHAVIOR_VERSION: 1;
263
+ declare const FIXTURE_BEHAVIOR_RESPONSE_VERSION: 2;
264
+ declare const FIXTURE_BEHAVIOR_REPLAY_VERSION: 3;
265
+ type FixtureBehaviorV1 = {
266
+ version: typeof FIXTURE_BEHAVIOR_VERSION;
267
+ responseDelaySamplesMs: number[];
273
268
  };
274
- /** @deprecated Calendar targets belong in Play inputs. Retained for saved Plays. */
275
- type NamedCalendarAvailability = {
276
- id: string;
277
- name: string;
278
- label: string;
279
- enabled: boolean;
280
- revision: number;
281
- allMembers: boolean;
282
- memberCount: number;
283
- domain?: string;
284
- approvalEnabled?: boolean;
269
+ type FixtureResponseSample = {
270
+ delayMs: number;
271
+ when?: {
272
+ provider?: string;
273
+ operation?: string;
274
+ };
275
+ httpError?: {
276
+ status: number;
277
+ message: string;
278
+ /** Omitted preserves the historical one-second 429 response. */
279
+ retryAfterMs?: number;
280
+ retryAfterFormat?: 'delta_seconds' | 'http_date';
281
+ /** Omitted preserves a permanent configured HTTP error. */
282
+ failuresBeforeSuccess?: number;
283
+ };
285
284
  };
286
- type GoogleWorkspaceApproval = {
287
- id?: string;
288
- domain: string;
289
- enabled: boolean;
290
- revision: number;
291
- grantedScopes?: string[];
285
+ type FixtureBehaviorV2 = {
286
+ version: typeof FIXTURE_BEHAVIOR_RESPONSE_VERSION;
287
+ responseSamples: FixtureResponseSample[];
288
+ transient429?: FixtureTransient429;
289
+ sharedRateLimit?: FixtureSharedRateLimit;
292
290
  };
293
- type CalendarAvailabilityInventory = {
294
- connections: NamedCalendarAvailability[];
295
- grantEnabled: boolean;
296
- grantRevision: number;
297
- approvals?: GoogleWorkspaceApproval[];
291
+ /** Synthetic provider quotas shared by all calls in the fixture workspace. */
292
+ type FixtureSharedRateLimit = {
293
+ requestsPerSecond?: number;
294
+ requestsPerMinute?: number;
295
+ requestsPerHour?: number;
296
+ /** Test-only target for the next hourly boundary, anchored by the first DB quota attempt. */
297
+ requestsPerHourBoundaryAfterMs?: number;
298
298
  };
299
- type NamedCalendarChange = {
300
- name: string;
301
- domain?: string;
302
- connectionId?: string;
303
- grantRevision: number;
299
+ type FixtureTransient429 = {
300
+ /** Select one of every N stable tool-call identities. */
301
+ everyNthCall: number;
302
+ retryAfterMs: number;
303
+ failuresBeforeSuccess: number;
304
+ when?: {
305
+ provider?: string;
306
+ operation?: string;
307
+ };
304
308
  };
305
- type CalendarDelegationChange = {
306
- action: 'enable';
307
- revision: number;
308
- memberIds: string[];
309
+ type FixtureReplayBundle = {
310
+ bundleId: string;
311
+ manifestSha256: string;
312
+ syntheticFallbackToolIds?: string[];
313
+ /** Opt-in response selection by seed + semantic payload, independent of run/org identities. */
314
+ selectionSeed?: string;
315
+ };
316
+ type FixtureBehaviorV3 = {
317
+ version: typeof FIXTURE_BEHAVIOR_REPLAY_VERSION;
318
+ responseSamples: FixtureResponseSample[];
319
+ replayBundle: FixtureReplayBundle;
320
+ transient429?: FixtureTransient429;
321
+ sharedRateLimit?: FixtureSharedRateLimit;
322
+ };
323
+ type FixtureBehavior = FixtureBehaviorV1 | FixtureBehaviorV2 | FixtureBehaviorV3;
324
+
325
+ /** Closed producer-owned terminal sample. Never read this from Play output.
326
+ * CPU is runner-process lifetime usage; peaks are process high-water samples.
327
+ * These are neither database CPU nor provider occupancy/billable seconds.
328
+ */
329
+ declare const TERMINAL_RUNTIME_PHASES: readonly ["rowAdmission", "providerAdmission", "externalExecution", "providerResidence", "fixtureDelay", "transportSlotWait", "fetchToHeaders", "bodyRead", "eventLoopLag", "receiptSettlement", "receiptClaim", "receiptHydrationGateWait", "receiptCompletionQueue", "receiptCompletionFlight", "receiptCompletionReadBack", "rowPersistence", "dispatchQueueWait", "rowResolverGap", "toolCallLogicalWall", "resultDelivery", "deliveryWrap", "deliveryPublishWait", "deliveryResolve", "flightSerialize", "flightTransport", "flightDecode", "gatewayAuthLaunch", "gatewayAuthVerify", "gatewayBodyParse", "gatewayBodyInflate", "gatewayPoolWait", "gatewayReceiptValuePersist", "gatewayCallback", "gatewayRoundTrip", "gatewayRequestSerialize", "gatewayRequestPack"];
330
+ type TerminalRuntimePhase = (typeof TERMINAL_RUNTIME_PHASES)[number];
331
+ type TerminalRuntimeSegment = {
332
+ attempt: number;
333
+ invocationSeq: number;
334
+ segmentId: string;
335
+ };
336
+ type TerminalRuntimePerformanceUnavailableReason = 'invalid_runner_stats' | 'invalid_terminal_performance';
337
+ type TerminalRuntimeHistogram = [
338
+ number,
339
+ number,
340
+ number,
341
+ number,
342
+ number,
343
+ number,
344
+ number,
345
+ number,
346
+ number,
347
+ number,
348
+ number,
349
+ number,
350
+ number,
351
+ number,
352
+ number,
353
+ number,
354
+ number,
355
+ number
356
+ ];
357
+ type TerminalRuntimeDistribution = {
358
+ count: number;
359
+ totalMs: number;
360
+ maxMs: number | null;
361
+ ewmaMs: number | null;
362
+ p50Ms: number | null;
363
+ p90Ms: number | null;
364
+ p99Ms: number | null;
365
+ /** Bucket0 <1ms; buckets1..16 powers of two; bucket17 >=65536ms. */
366
+ histogram: TerminalRuntimeHistogram;
367
+ };
368
+ /** Decoded runner execute-envelope UTF-8 bytes, not upstream wire bytes or RSS. */
369
+ type TerminalRuntimeToolResponseBodyAdmission = {
370
+ turns: number;
371
+ measuredTurns: number;
372
+ decodedUtf8BytesTotal: number;
373
+ decodedUtf8BytesMax: number;
374
+ /** Peak simultaneous expected-or-measured gate reservations. */
375
+ permitBytesPeak: number;
376
+ /** Delayed requests may abort before admission; refusals may repeat. */
377
+ queuedTurns: number;
378
+ budgetRefusals: number;
379
+ progressAdmissions: number;
380
+ unpricedAdmissions: number;
381
+ };
382
+ type TerminalRuntimePerformance = TerminalRuntimeSegment & {
383
+ scope: 'terminal_attempt';
384
+ process: {
385
+ cpuUserMs: number;
386
+ cpuSystemMs: number;
387
+ rssBytes: number | null;
388
+ maxRssBytes: number | null;
389
+ heapUsedBytes: number | null;
390
+ externalBytes: number | null;
391
+ };
392
+ counters: {
393
+ logicalCalls: number;
394
+ providerRequests: number;
395
+ provider429s: number;
396
+ };
397
+ phases: Partial<Record<TerminalRuntimePhase, TerminalRuntimeDistribution>>;
398
+ /** Maximum individual map peak; not a sum or simultaneous whole-run peak. */
399
+ rows: {
400
+ mapCount: number;
401
+ maxIndividualMapActiveRowPeak: number;
402
+ };
403
+ /** Missing means an older/partial producer, never measured zero bytes. */
404
+ memoryAdmission?: {
405
+ toolResponseBody: TerminalRuntimeToolResponseBodyAdmission;
406
+ };
407
+ };
408
+
409
+ /** Declarative request predicates authored by the server, with no provider knowledge in clients. */
410
+ type ToolRequestCondition = {
411
+ field: string;
412
+ operator: 'equals';
413
+ value: string | number | boolean | null;
309
414
  } | {
310
- action: 'disable';
311
- revision: number;
312
- } | (NamedCalendarChange & {
313
- action: 'enable';
314
- revision: number;
315
- label: string;
316
- memberIds: string[];
317
- allMembers: boolean;
318
- }) | (NamedCalendarChange & {
319
- action: 'disable' | 'remove';
320
- revision: number;
321
- }) | {
322
- action: 'enable_workspace';
323
- domain?: string;
324
- grantRevision: number;
325
- connectionId?: string;
326
- memberIds: string[];
415
+ field: string;
416
+ operator: 'number_equals';
417
+ value: number;
327
418
  } | {
328
- action: 'enable_workspace';
329
- domain?: string;
330
- grantRevision: number;
331
- connectionId?: string;
332
- verificationEmail: string;
333
- requestedScopes?: string[];
419
+ field: string;
420
+ operator: 'present_nonblank';
334
421
  } | {
335
- action: 'disable_workspace';
336
- domain?: string;
337
- grantRevision: number;
338
- connectionId?: string;
422
+ all: readonly ToolRequestCondition[];
339
423
  } | {
340
- action: 'remove_workspace';
341
- domain: string;
342
- grantRevision: number;
343
- connectionId: string;
424
+ any: readonly ToolRequestCondition[];
344
425
  };
345
- type CalendarDelegationCheck = {
346
- memberId: string;
347
- readiness: 'ready' | 'runtime_identity' | 'signing' | 'google_grant' | 'primary_calendar';
426
+ type ToolRequestWarningRule = {
427
+ code: string;
428
+ /** Customer-safe Deepline billing guidance; never upstream spend. */
429
+ message: string;
430
+ when: ToolRequestCondition;
348
431
  };
349
- type CalendarDelegationUpdate = {
350
- status: 'enabled' | 'disabled' | 'removed';
351
- revision: number;
352
- checks?: CalendarDelegationCheck[];
353
- } | {
354
- status: 'validation_failed';
355
- checks: CalendarDelegationCheck[];
356
- readiness?: Exclude<CalendarDelegationCheck['readiness'], 'ready'>;
432
+
433
+ type PlayGrepMatch = {
434
+ field: 'name' | 'description' | 'provider' | 'source';
435
+ terms: string[];
357
436
  };
358
437
 
359
- type IntegrationClient = Pick<DeeplineClient, 'listWorkspaceConnectionInventory' | 'getCalendarDelegation' | 'changeCalendarDelegation' | 'manageWorkspaceIntegrationConnection' | 'getIntegrationConnectLink' | 'listManagedConnectionMembers'>;
360
- type WorkspaceConnection = Awaited<ReturnType<DeeplineClient['listWorkspaceConnectionInventory']>>['connections'][number];
361
- type IntegrationChangeOptions = {
362
- provider?: string;
363
- verificationEmail?: string;
364
- dryRun?: boolean;
365
- booking?: boolean;
438
+ /**
439
+ * How often the platform retried one Play run, as a fixed-size summary.
440
+ *
441
+ * Every count comes from the scheduler's durable run and attempt records, read
442
+ * by `readRunRetryFacts`; nothing here is inferred from logs or error text.
443
+ * The summary has the same keys for every run, so its size never grows with
444
+ * rows, calls, attempts or logs. Event-level detail stays in the paginated run
445
+ * events (`runs logs <run-id> --kind activity.observed`).
446
+ *
447
+ * Only failure-driven retries are counted. A durable wait (event wait, long
448
+ * sleep, rate hold) also ends one scheduler attempt and starts another, and the
449
+ * scheduler keeps no per-attempt record that tells such a wait apart from a
450
+ * lost worker or runner. So raw attempt and sandbox counts are deliberately not
451
+ * reported: a run that only slept must not look like it retried.
452
+ *
453
+ * A retried attempt can repeat work a previous attempt already did: Plays are
454
+ * at-least-once. These counts say how many times the platform retried, never
455
+ * that any effect happened exactly once.
456
+ *
457
+ * Provider HTTP retries inside one tool call, runner-to-gateway transport
458
+ * retries, and lost-worker replacements are not counted: no durable record
459
+ * holds an exact per-run count of any of them.
460
+ */
461
+ declare const RUN_RETRY_RECOVERY_OUTCOMES: readonly ["none", "recovering", "recovered", "exhausted"];
462
+ type RunRetryRecoveryOutcome = (typeof RUN_RETRY_RECOVERY_OUTCOMES)[number];
463
+ type RunRetrySummary = {
464
+ /**
465
+ * Counts cover the run's current resume epoch. `runs resume` starts a new
466
+ * epoch and clears the recovery counts of the previous one.
467
+ */
468
+ scope: 'current_epoch';
469
+ /** How many times `runs resume` continued this run; 0 if never resumed. */
470
+ resumeEpoch: number;
471
+ /**
472
+ * Automatic platform recoveries in this epoch: an attempt that failed for a
473
+ * platform reason was retired and the run requeued. `preCode` failed before
474
+ * the Play's code started; `postCode` failed after it started. Exact: each
475
+ * is the scheduler's own fenced defer count.
476
+ */
477
+ platformRecoveries: {
478
+ preCode: number;
479
+ postCode: number;
480
+ };
481
+ /**
482
+ * `recovering`: waiting out a recovery delay before the next attempt.
483
+ * `exhausted`: the recovery budget ran out, so the run failed.
484
+ * `recovered`: at least one recovery requeued the run and none is pending;
485
+ * it says nothing about how the run itself ended.
486
+ * `none`: no platform recovery in this epoch.
487
+ */
488
+ recoveryOutcome: RunRetryRecoveryOutcome;
366
489
  };
367
- /** Workspace authorization management. Personal setup completes in the returned dashboard wizard. */
368
- declare function createIntegrationsNamespace(client: IntegrationClient): {
369
- list: (options?: {
370
- provider?: string;
371
- }) => Promise<{
372
- connections: Array<{
373
- id: string;
374
- provider: string;
375
- owner: "workspace";
376
- name: string | null;
377
- type: string;
378
- label: string;
379
- status: string;
380
- authorizationVersion?: number;
381
- scopes?: string[];
382
- domain?: string;
383
- }>;
384
- }>;
385
- get: (name: string, options?: {
386
- provider?: string;
387
- }) => Promise<{
388
- id: string;
389
- provider: string;
390
- owner: "workspace";
391
- name: string | null;
392
- type: string;
393
- label: string;
394
- status: string;
395
- authorizationVersion?: number;
396
- scopes?: string[];
397
- domain?: string;
398
- }>;
399
- connect: (provider: string) => Promise<{
400
- provider: string;
401
- connect_url: string;
402
- }>;
403
- reconnect: (name: string, options?: IntegrationChangeOptions) => Promise<{
404
- action: "enable_workspace";
405
- domain?: string;
406
- grantRevision: number;
407
- connectionId?: string;
408
- verificationEmail: string;
409
- requestedScopes?: string[];
410
- } | {
411
- action: "disable_workspace";
412
- domain?: string;
413
- grantRevision: number;
414
- connectionId?: string;
415
- } | {
416
- action: "remove_workspace";
417
- domain: string;
418
- grantRevision: number;
419
- connectionId: string;
420
- } | CalendarDelegationUpdate | {
421
- action: "remove" | "reconnect" | "disconnect";
422
- provider: "google_calendar_availability" | "hubspot";
423
- name: string;
424
- connectionId: string;
425
- authorizationVersion: number;
426
- } | {
427
- url?: string;
428
- name?: string;
429
- status?: string;
430
- }>;
431
- disconnect: (name: string, options?: IntegrationChangeOptions) => Promise<{
432
- action: "enable_workspace";
433
- domain?: string;
434
- grantRevision: number;
435
- connectionId?: string;
436
- verificationEmail: string;
437
- requestedScopes?: string[];
438
- } | {
439
- action: "disable_workspace";
440
- domain?: string;
441
- grantRevision: number;
442
- connectionId?: string;
443
- } | {
444
- action: "remove_workspace";
445
- domain: string;
446
- grantRevision: number;
447
- connectionId: string;
448
- } | CalendarDelegationUpdate | {
449
- action: "remove" | "reconnect" | "disconnect";
450
- provider: "google_calendar_availability" | "hubspot";
451
- name: string;
452
- connectionId: string;
453
- authorizationVersion: number;
454
- } | {
455
- url?: string;
456
- name?: string;
457
- status?: string;
458
- }>;
459
- delete: (name: string, options?: IntegrationChangeOptions) => Promise<{
460
- action: "enable_workspace";
461
- domain?: string;
462
- grantRevision: number;
463
- connectionId?: string;
464
- verificationEmail: string;
465
- requestedScopes?: string[];
466
- } | {
467
- action: "disable_workspace";
468
- domain?: string;
469
- grantRevision: number;
470
- connectionId?: string;
471
- } | {
472
- action: "remove_workspace";
473
- domain: string;
474
- grantRevision: number;
475
- connectionId: string;
476
- } | CalendarDelegationUpdate | {
477
- action: "remove" | "reconnect" | "disconnect";
478
- provider: "google_calendar_availability" | "hubspot";
479
- name: string;
480
- connectionId: string;
481
- authorizationVersion: number;
482
- } | {
483
- url?: string;
484
- name?: string;
485
- status?: string;
486
- }>;
487
- verify: (domain: string, options: IntegrationChangeOptions & {
488
- verificationEmail: string;
489
- }) => Promise<{
490
- action: "enable_workspace";
491
- domain?: string;
492
- grantRevision: number;
493
- connectionId?: string;
494
- verificationEmail: string;
495
- requestedScopes?: string[];
496
- } | CalendarDelegationUpdate>;
497
- members: (provider: "hubspot" | "google_calendar_availability", options?: {
498
- cursor?: string;
499
- }) => Promise<{
500
- members: Array<{
501
- memberId: string;
502
- name: string;
503
- email: string;
504
- status: string;
505
- account: {
506
- label: string;
507
- portalId?: string;
508
- } | null;
509
- }>;
510
- nextCursor: string | null;
511
- }>;
490
+
491
+ declare const PLAY_RUNTIME_BACKENDS: {
492
+ readonly localProcess: "local_process";
493
+ readonly daytona: "daytona";
494
+ readonly modal: "modal";
512
495
  };
513
- type IntegrationsNamespace = ReturnType<typeof createIntegrationsNamespace>;
514
- type IntegrationChangeResult = Awaited<ReturnType<IntegrationsNamespace['disconnect']>>;
496
+ type PlayRuntimeBackendId = (typeof PLAY_RUNTIME_BACKENDS)[keyof typeof PLAY_RUNTIME_BACKENDS];
515
497
 
516
- declare const FIXTURE_BEHAVIOR_VERSION: 1;
517
- declare const FIXTURE_BEHAVIOR_RESPONSE_VERSION: 2;
518
- declare const FIXTURE_BEHAVIOR_REPLAY_VERSION: 3;
519
- type FixtureBehaviorV1 = {
520
- version: typeof FIXTURE_BEHAVIOR_VERSION;
521
- responseDelaySamplesMs: number[];
498
+ type PlayRuntimeSelection = {
499
+ environment: 'preview';
500
+ /** Caller-named isolation scope inside a remote runtime environment. */
501
+ namespace: string;
502
+ /** Explicit managed-sandbox executor. Omission preserves Daytona compatibility. */
503
+ backend?: Extract<PlayRuntimeBackendId, 'daytona' | 'modal'>;
504
+ /** Durable placement contract for the selected Preview worker lane. */
505
+ sandboxPlacementPolicy?: string;
522
506
  };
523
- type FixtureResponseSample = {
524
- delayMs: number;
525
- when?: {
526
- provider?: string;
527
- operation?: string;
528
- };
529
- httpError?: {
530
- status: number;
531
- message: string;
532
- /** Omitted preserves the historical one-second 429 response. */
533
- retryAfterMs?: number;
534
- retryAfterFormat?: 'delta_seconds' | 'http_date';
535
- /** Omitted preserves a permanent configured HTTP error. */
536
- failuresBeforeSuccess?: number;
537
- };
538
- };
539
- type FixtureBehaviorV2 = {
540
- version: typeof FIXTURE_BEHAVIOR_RESPONSE_VERSION;
541
- responseSamples: FixtureResponseSample[];
542
- transient429?: FixtureTransient429;
543
- sharedRateLimit?: FixtureSharedRateLimit;
544
- };
545
- /** Synthetic provider quotas shared by all calls in the fixture workspace. */
546
- type FixtureSharedRateLimit = {
547
- requestsPerSecond?: number;
548
- requestsPerMinute?: number;
549
- requestsPerHour?: number;
550
- /** Test-only target for the next hourly boundary, anchored by the first DB quota attempt. */
551
- requestsPerHourBoundaryAfterMs?: number;
552
- };
553
- type FixtureTransient429 = {
554
- /** Select one of every N stable tool-call identities. */
555
- everyNthCall: number;
556
- retryAfterMs: number;
557
- failuresBeforeSuccess: number;
558
- when?: {
559
- provider?: string;
560
- operation?: string;
561
- };
562
- };
563
- type FixtureReplayBundle = {
564
- bundleId: string;
565
- manifestSha256: string;
566
- syntheticFallbackToolIds?: string[];
567
- /** Opt-in response selection by seed + semantic payload, independent of run/org identities. */
568
- selectionSeed?: string;
569
- };
570
- type FixtureBehaviorV3 = {
571
- version: typeof FIXTURE_BEHAVIOR_REPLAY_VERSION;
572
- responseSamples: FixtureResponseSample[];
573
- replayBundle: FixtureReplayBundle;
574
- transient429?: FixtureTransient429;
575
- sharedRateLimit?: FixtureSharedRateLimit;
576
- };
577
- type FixtureBehavior = FixtureBehaviorV1 | FixtureBehaviorV2 | FixtureBehaviorV3;
578
-
579
- /** Closed producer-owned terminal sample. Never read this from Play output.
580
- * CPU is runner-process lifetime usage; peaks are process high-water samples.
581
- * These are neither database CPU nor provider occupancy/billable seconds.
582
- */
583
- declare const TERMINAL_RUNTIME_PHASES: readonly ["rowAdmission", "providerAdmission", "externalExecution", "providerResidence", "fixtureDelay", "transportSlotWait", "fetchToHeaders", "bodyRead", "eventLoopLag", "receiptSettlement", "receiptClaim", "receiptHydrationGateWait", "receiptCompletionQueue", "receiptCompletionFlight", "receiptCompletionReadBack", "rowPersistence", "dispatchQueueWait", "rowResolverGap", "toolCallLogicalWall", "resultDelivery", "deliveryWrap", "deliveryPublishWait", "deliveryResolve", "flightSerialize", "flightTransport", "flightDecode", "gatewayAuthLaunch", "gatewayAuthVerify", "gatewayBodyParse", "gatewayBodyInflate", "gatewayPoolWait", "gatewayReceiptValuePersist", "gatewayCallback", "gatewayRoundTrip", "gatewayRequestSerialize", "gatewayRequestPack"];
584
- type TerminalRuntimePhase = (typeof TERMINAL_RUNTIME_PHASES)[number];
585
- type TerminalRuntimeSegment = {
586
- attempt: number;
587
- invocationSeq: number;
588
- segmentId: string;
589
- };
590
- type TerminalRuntimePerformanceUnavailableReason = 'invalid_runner_stats' | 'invalid_terminal_performance';
591
- type TerminalRuntimeHistogram = [
592
- number,
593
- number,
594
- number,
595
- number,
596
- number,
597
- number,
598
- number,
599
- number,
600
- number,
601
- number,
602
- number,
603
- number,
604
- number,
605
- number,
606
- number,
607
- number,
608
- number,
609
- number
610
- ];
611
- type TerminalRuntimeDistribution = {
612
- count: number;
613
- totalMs: number;
614
- maxMs: number | null;
615
- ewmaMs: number | null;
616
- p50Ms: number | null;
617
- p90Ms: number | null;
618
- p99Ms: number | null;
619
- /** Bucket0 <1ms; buckets1..16 powers of two; bucket17 >=65536ms. */
620
- histogram: TerminalRuntimeHistogram;
621
- };
622
- /** Decoded runner execute-envelope UTF-8 bytes, not upstream wire bytes or RSS. */
623
- type TerminalRuntimeToolResponseBodyAdmission = {
624
- turns: number;
625
- measuredTurns: number;
626
- decodedUtf8BytesTotal: number;
627
- decodedUtf8BytesMax: number;
628
- /** Peak simultaneous expected-or-measured gate reservations. */
629
- permitBytesPeak: number;
630
- /** Delayed requests may abort before admission; refusals may repeat. */
631
- queuedTurns: number;
632
- budgetRefusals: number;
633
- progressAdmissions: number;
634
- unpricedAdmissions: number;
635
- };
636
- type TerminalRuntimePerformance = TerminalRuntimeSegment & {
637
- scope: 'terminal_attempt';
638
- process: {
639
- cpuUserMs: number;
640
- cpuSystemMs: number;
641
- rssBytes: number | null;
642
- maxRssBytes: number | null;
643
- heapUsedBytes: number | null;
644
- externalBytes: number | null;
645
- };
646
- counters: {
647
- logicalCalls: number;
648
- providerRequests: number;
649
- provider429s: number;
650
- };
651
- phases: Partial<Record<TerminalRuntimePhase, TerminalRuntimeDistribution>>;
652
- /** Maximum individual map peak; not a sum or simultaneous whole-run peak. */
653
- rows: {
654
- mapCount: number;
655
- maxIndividualMapActiveRowPeak: number;
656
- };
657
- /** Missing means an older/partial producer, never measured zero bytes. */
658
- memoryAdmission?: {
659
- toolResponseBody: TerminalRuntimeToolResponseBodyAdmission;
660
- };
661
- };
662
-
663
- /** Declarative request predicates authored by the server, with no provider knowledge in clients. */
664
- type ToolRequestCondition = {
665
- field: string;
666
- operator: 'equals';
667
- value: string | number | boolean | null;
668
- } | {
669
- field: string;
670
- operator: 'number_equals';
671
- value: number;
672
- } | {
673
- field: string;
674
- operator: 'present_nonblank';
675
- } | {
676
- all: readonly ToolRequestCondition[];
677
- } | {
678
- any: readonly ToolRequestCondition[];
679
- };
680
- type ToolRequestWarningRule = {
681
- code: string;
682
- /** Customer-safe Deepline billing guidance; never upstream spend. */
683
- message: string;
684
- when: ToolRequestCondition;
685
- };
686
-
687
- type PlayGrepMatch = {
688
- field: 'name' | 'description' | 'provider' | 'source';
689
- terms: string[];
690
- };
691
-
692
- /**
693
- * How often the platform retried one Play run, as a fixed-size summary.
694
- *
695
- * Every count comes from the scheduler's durable run and attempt records, read
696
- * by `readRunRetryFacts`; nothing here is inferred from logs or error text.
697
- * The summary has the same keys for every run, so its size never grows with
698
- * rows, calls, attempts or logs. Event-level detail stays in the paginated run
699
- * events (`runs logs <run-id> --kind activity.observed`).
700
- *
701
- * Only failure-driven retries are counted. A durable wait (event wait, long
702
- * sleep, rate hold) also ends one scheduler attempt and starts another, and the
703
- * scheduler keeps no per-attempt record that tells such a wait apart from a
704
- * lost worker or runner. So raw attempt and sandbox counts are deliberately not
705
- * reported: a run that only slept must not look like it retried.
706
- *
707
- * A retried attempt can repeat work a previous attempt already did: Plays are
708
- * at-least-once. These counts say how many times the platform retried, never
709
- * that any effect happened exactly once.
710
- *
711
- * Provider HTTP retries inside one tool call, runner-to-gateway transport
712
- * retries, and lost-worker replacements are not counted: no durable record
713
- * holds an exact per-run count of any of them.
714
- */
715
- declare const RUN_RETRY_RECOVERY_OUTCOMES: readonly ["none", "recovering", "recovered", "exhausted"];
716
- type RunRetryRecoveryOutcome = (typeof RUN_RETRY_RECOVERY_OUTCOMES)[number];
717
- type RunRetrySummary = {
718
- /**
719
- * Counts cover the run's current resume epoch. `runs resume` starts a new
720
- * epoch and clears the recovery counts of the previous one.
721
- */
722
- scope: 'current_epoch';
723
- /** How many times `runs resume` continued this run; 0 if never resumed. */
724
- resumeEpoch: number;
725
- /**
726
- * Automatic platform recoveries in this epoch: an attempt that failed for a
727
- * platform reason was retired and the run requeued. `preCode` failed before
728
- * the Play's code started; `postCode` failed after it started. Exact: each
729
- * is the scheduler's own fenced defer count.
730
- */
731
- platformRecoveries: {
732
- preCode: number;
733
- postCode: number;
734
- };
735
- /**
736
- * `recovering`: waiting out a recovery delay before the next attempt.
737
- * `exhausted`: the recovery budget ran out, so the run failed.
738
- * `recovered`: at least one recovery requeued the run and none is pending;
739
- * it says nothing about how the run itself ended.
740
- * `none`: no platform recovery in this epoch.
741
- */
742
- recoveryOutcome: RunRetryRecoveryOutcome;
743
- };
744
-
745
- declare const PLAY_RUNTIME_BACKENDS: {
746
- readonly localProcess: "local_process";
747
- readonly daytona: "daytona";
748
- readonly modal: "modal";
749
- };
750
- type PlayRuntimeBackendId = (typeof PLAY_RUNTIME_BACKENDS)[keyof typeof PLAY_RUNTIME_BACKENDS];
751
-
752
- type PlayRuntimeSelection = {
753
- environment: 'preview';
754
- /** Caller-named isolation scope inside a remote runtime environment. */
755
- namespace: string;
756
- /** Explicit managed-sandbox executor. Omission preserves Daytona compatibility. */
757
- backend?: Extract<PlayRuntimeBackendId, 'daytona' | 'modal'>;
758
- /** Durable placement contract for the selected Preview worker lane. */
759
- sandboxPlacementPolicy?: string;
760
- };
761
- /**
762
- * The app's own runtime, on a named sandbox placement policy. Internal-only:
763
- * the `play_run.sandbox_placement` capability in
764
- * `@deepline/auth/internal-capabilities` decides who may send it.
765
- */
766
- type PlayNativeRuntimeSelection = {
767
- environment: 'native';
768
- sandboxPlacementPolicy: string;
507
+ /**
508
+ * The app's own runtime, on a named sandbox placement policy. Internal-only:
509
+ * the `play_run.sandbox_placement` capability in
510
+ * `@deepline/auth/internal-capabilities` decides who may send it.
511
+ */
512
+ type PlayNativeRuntimeSelection = {
513
+ environment: 'native';
514
+ sandboxPlacementPolicy: string;
769
515
  };
770
516
  /** Every `runtime` value a Play run accepts. */
771
517
  type PlayRunRuntimeSelection = PlayRuntimeSelection | PlayNativeRuntimeSelection;
@@ -3436,6 +3182,11 @@ interface PlayRunListItem {
3436
3182
  inputsTruncated: boolean;
3437
3183
  outputsTruncated: boolean;
3438
3184
  } | null;
3185
+ /**
3186
+ * What the run did at each diagram step it reached, when `runs.list` asks
3187
+ * for `steps`. Fixed size per step; unreached steps are absent.
3188
+ */
3189
+ steps?: PlayRunStepSummary[];
3439
3190
  /** Metadata attached to the workflow. */
3440
3191
  memo: {
3441
3192
  /** Organization that owns this run. */
@@ -3446,6 +3197,26 @@ interface PlayRunListItem {
3446
3197
  userId: string | null;
3447
3198
  };
3448
3199
  }
3200
+ /** One run's outcome at one diagram step (`runs.list` with `steps`). */
3201
+ interface PlayRunStepSummary {
3202
+ /** Diagram node id. */
3203
+ nodeId: string;
3204
+ status: 'completed' | 'failed' | 'running';
3205
+ /** The step's one-line result, as its canvas card shows it (≤ 80 chars). */
3206
+ label: string | null;
3207
+ /** The arm a decision took, as drawn (≤ 80 chars). */
3208
+ arm: string | null;
3209
+ /** Why the step failed, first line (≤ 160 chars). */
3210
+ error: string | null;
3211
+ }
3212
+ /** One diagram step, in flow order (`runs.list` with `steps`). */
3213
+ interface PlayRunStepNode {
3214
+ id: string;
3215
+ label: string;
3216
+ kind: string;
3217
+ regionId: string | null;
3218
+ regionLabel: string | null;
3219
+ }
3449
3220
  /**
3450
3221
  * A single revision (version) of a play's code and configuration.
3451
3222
  */
@@ -4074,6 +3845,12 @@ interface PlayCheckIssue {
4074
3845
  hint?: string;
4075
3846
  validOptions?: string[];
4076
3847
  docsHint?: string;
3848
+ /** The diagram box or subgraph id a diagram issue is about. */
3849
+ node?: string;
3850
+ /** The checked entry file's 1-based line to edit, when known. */
3851
+ line?: number;
3852
+ /** One line to paste that fixes this issue, tailored to it. */
3853
+ fix?: string;
4077
3854
  }
4078
3855
  /**
4079
3856
  * Affirmative "here's what Deepline recognized" echo returned alongside a
@@ -4349,6 +4126,273 @@ interface UpdateSharePageRequest {
4349
4126
  seoIndexing?: 'index' | 'noindex';
4350
4127
  }
4351
4128
 
4129
+ type CalendarDelegationSettings = {
4130
+ connectionId?: string;
4131
+ name?: string;
4132
+ label?: string;
4133
+ allMembers?: boolean;
4134
+ grantRevision?: number;
4135
+ rosterLimit: number;
4136
+ domain: string;
4137
+ clientId: string;
4138
+ scope: string;
4139
+ grantedScopes?: string[];
4140
+ enabled: boolean;
4141
+ connectionEnabled?: boolean;
4142
+ revision: number;
4143
+ selectedMemberIds: string[];
4144
+ verifiedAt: number | null;
4145
+ members: Array<{
4146
+ memberId: string;
4147
+ name: string;
4148
+ email: string;
4149
+ eligible: boolean;
4150
+ }>;
4151
+ nextCursor: string | null;
4152
+ };
4153
+ /** @deprecated Calendar targets belong in Play inputs. Retained for saved Plays. */
4154
+ type NamedCalendarAvailability = {
4155
+ id: string;
4156
+ name: string;
4157
+ label: string;
4158
+ enabled: boolean;
4159
+ revision: number;
4160
+ allMembers: boolean;
4161
+ memberCount: number;
4162
+ domain?: string;
4163
+ approvalEnabled?: boolean;
4164
+ };
4165
+ type GoogleWorkspaceApproval = {
4166
+ id?: string;
4167
+ domain: string;
4168
+ enabled: boolean;
4169
+ revision: number;
4170
+ grantedScopes?: string[];
4171
+ };
4172
+ type CalendarAvailabilityInventory = {
4173
+ connections: NamedCalendarAvailability[];
4174
+ grantEnabled: boolean;
4175
+ grantRevision: number;
4176
+ approvals?: GoogleWorkspaceApproval[];
4177
+ };
4178
+ type NamedCalendarChange = {
4179
+ name: string;
4180
+ domain?: string;
4181
+ connectionId?: string;
4182
+ grantRevision: number;
4183
+ };
4184
+ type CalendarDelegationChange = {
4185
+ action: 'enable';
4186
+ revision: number;
4187
+ memberIds: string[];
4188
+ } | {
4189
+ action: 'disable';
4190
+ revision: number;
4191
+ } | (NamedCalendarChange & {
4192
+ action: 'enable';
4193
+ revision: number;
4194
+ label: string;
4195
+ memberIds: string[];
4196
+ allMembers: boolean;
4197
+ }) | (NamedCalendarChange & {
4198
+ action: 'disable' | 'remove';
4199
+ revision: number;
4200
+ }) | {
4201
+ action: 'enable_workspace';
4202
+ domain?: string;
4203
+ grantRevision: number;
4204
+ connectionId?: string;
4205
+ memberIds: string[];
4206
+ } | {
4207
+ action: 'enable_workspace';
4208
+ domain?: string;
4209
+ grantRevision: number;
4210
+ connectionId?: string;
4211
+ verificationEmail: string;
4212
+ requestedScopes?: string[];
4213
+ } | {
4214
+ action: 'disable_workspace';
4215
+ domain?: string;
4216
+ grantRevision: number;
4217
+ connectionId?: string;
4218
+ } | {
4219
+ action: 'remove_workspace';
4220
+ domain: string;
4221
+ grantRevision: number;
4222
+ connectionId: string;
4223
+ };
4224
+ type CalendarDelegationCheck = {
4225
+ memberId: string;
4226
+ readiness: 'ready' | 'runtime_identity' | 'signing' | 'google_grant' | 'calendar_list' | 'primary_calendar';
4227
+ };
4228
+ type CalendarDelegationUpdate = {
4229
+ status: 'enabled' | 'disabled' | 'removed';
4230
+ revision: number;
4231
+ checks?: CalendarDelegationCheck[];
4232
+ } | {
4233
+ status: 'validation_failed';
4234
+ checks: CalendarDelegationCheck[];
4235
+ readiness?: Exclude<CalendarDelegationCheck['readiness'], 'ready'>;
4236
+ };
4237
+
4238
+ type IntegrationClient = Pick<DeeplineClient, 'listWorkspaceConnectionInventory' | 'getCalendarDelegation' | 'changeCalendarDelegation' | 'manageWorkspaceIntegrationConnection' | 'getIntegrationConnectLink' | 'listManagedConnectionMembers'>;
4239
+ type WorkspaceConnection = Awaited<ReturnType<DeeplineClient['listWorkspaceConnectionInventory']>>['connections'][number];
4240
+ type IntegrationChangeOptions = {
4241
+ provider?: string;
4242
+ verificationEmail?: string;
4243
+ dryRun?: boolean;
4244
+ booking?: boolean;
4245
+ listCalendars?: boolean;
4246
+ };
4247
+ /** Workspace authorization management. Personal setup completes in the returned dashboard wizard. */
4248
+ declare function createIntegrationsNamespace(client: IntegrationClient): {
4249
+ list: (options?: {
4250
+ provider?: string;
4251
+ }) => Promise<{
4252
+ connections: Array<{
4253
+ id: string;
4254
+ provider: string;
4255
+ owner: "workspace";
4256
+ name: string | null;
4257
+ type: string;
4258
+ label: string;
4259
+ status: string;
4260
+ authorizationVersion?: number;
4261
+ scopes?: string[];
4262
+ domain?: string;
4263
+ }>;
4264
+ }>;
4265
+ get: (name: string, options?: {
4266
+ provider?: string;
4267
+ }) => Promise<{
4268
+ id: string;
4269
+ provider: string;
4270
+ owner: "workspace";
4271
+ name: string | null;
4272
+ type: string;
4273
+ label: string;
4274
+ status: string;
4275
+ authorizationVersion?: number;
4276
+ scopes?: string[];
4277
+ domain?: string;
4278
+ }>;
4279
+ connect: (provider: string) => Promise<{
4280
+ provider: string;
4281
+ connect_url: string;
4282
+ }>;
4283
+ reconnect: (name: string, options?: IntegrationChangeOptions) => Promise<{
4284
+ action: "enable_workspace";
4285
+ domain?: string;
4286
+ grantRevision: number;
4287
+ connectionId?: string;
4288
+ verificationEmail: string;
4289
+ requestedScopes?: string[];
4290
+ } | {
4291
+ action: "disable_workspace";
4292
+ domain?: string;
4293
+ grantRevision: number;
4294
+ connectionId?: string;
4295
+ } | {
4296
+ action: "remove_workspace";
4297
+ domain: string;
4298
+ grantRevision: number;
4299
+ connectionId: string;
4300
+ } | CalendarDelegationUpdate | {
4301
+ action: "remove" | "reconnect" | "disconnect";
4302
+ provider: "google_calendar_availability" | "hubspot";
4303
+ name: string;
4304
+ connectionId: string;
4305
+ authorizationVersion: number;
4306
+ } | {
4307
+ url?: string;
4308
+ name?: string;
4309
+ status?: string;
4310
+ }>;
4311
+ disconnect: (name: string, options?: IntegrationChangeOptions) => Promise<{
4312
+ action: "enable_workspace";
4313
+ domain?: string;
4314
+ grantRevision: number;
4315
+ connectionId?: string;
4316
+ verificationEmail: string;
4317
+ requestedScopes?: string[];
4318
+ } | {
4319
+ action: "disable_workspace";
4320
+ domain?: string;
4321
+ grantRevision: number;
4322
+ connectionId?: string;
4323
+ } | {
4324
+ action: "remove_workspace";
4325
+ domain: string;
4326
+ grantRevision: number;
4327
+ connectionId: string;
4328
+ } | CalendarDelegationUpdate | {
4329
+ action: "remove" | "reconnect" | "disconnect";
4330
+ provider: "google_calendar_availability" | "hubspot";
4331
+ name: string;
4332
+ connectionId: string;
4333
+ authorizationVersion: number;
4334
+ } | {
4335
+ url?: string;
4336
+ name?: string;
4337
+ status?: string;
4338
+ }>;
4339
+ delete: (name: string, options?: IntegrationChangeOptions) => Promise<{
4340
+ action: "enable_workspace";
4341
+ domain?: string;
4342
+ grantRevision: number;
4343
+ connectionId?: string;
4344
+ verificationEmail: string;
4345
+ requestedScopes?: string[];
4346
+ } | {
4347
+ action: "disable_workspace";
4348
+ domain?: string;
4349
+ grantRevision: number;
4350
+ connectionId?: string;
4351
+ } | {
4352
+ action: "remove_workspace";
4353
+ domain: string;
4354
+ grantRevision: number;
4355
+ connectionId: string;
4356
+ } | CalendarDelegationUpdate | {
4357
+ action: "remove" | "reconnect" | "disconnect";
4358
+ provider: "google_calendar_availability" | "hubspot";
4359
+ name: string;
4360
+ connectionId: string;
4361
+ authorizationVersion: number;
4362
+ } | {
4363
+ url?: string;
4364
+ name?: string;
4365
+ status?: string;
4366
+ }>;
4367
+ verify: (domain: string, options: IntegrationChangeOptions & {
4368
+ verificationEmail: string;
4369
+ }) => Promise<{
4370
+ action: "enable_workspace";
4371
+ domain?: string;
4372
+ grantRevision: number;
4373
+ connectionId?: string;
4374
+ verificationEmail: string;
4375
+ requestedScopes?: string[];
4376
+ } | CalendarDelegationUpdate>;
4377
+ members: (provider: "hubspot" | "google_calendar_availability", options?: {
4378
+ cursor?: string;
4379
+ }) => Promise<{
4380
+ members: Array<{
4381
+ memberId: string;
4382
+ name: string;
4383
+ email: string;
4384
+ status: string;
4385
+ account: {
4386
+ label: string;
4387
+ portalId?: string;
4388
+ } | null;
4389
+ }>;
4390
+ nextCursor: string | null;
4391
+ }>;
4392
+ };
4393
+ type IntegrationsNamespace = ReturnType<typeof createIntegrationsNamespace>;
4394
+ type IntegrationChangeResult = Awaited<ReturnType<IntegrationsNamespace['disconnect']>>;
4395
+
4352
4396
  /**
4353
4397
  * The description `deepline describe` and `plays describe` show for a Play,
4354
4398
  * derived from its definition. The server computes it (`?view=description`)
@@ -5391,6 +5435,8 @@ type RunsListOptions = {
5391
5435
  status?: string;
5392
5436
  /** Mermaid node id; returns that node's latest settled input/output per run. Requires play. */
5393
5437
  node?: string;
5438
+ /** Include each run's per-step outcome and the diagram's steps. Requires play; at most 50 runs per page. */
5439
+ steps?: boolean;
5394
5440
  limit?: number;
5395
5441
  /** Zero-based page offset. Requires `play` because status-only inventory is not paginated. */
5396
5442
  offset?: number;
@@ -5398,6 +5444,10 @@ type RunsListOptions = {
5398
5444
  /** One server page; legacy runs.list continues to return an array. */
5399
5445
  type RunsListPage = {
5400
5446
  runs: PlayRunListItem[];
5447
+ /** The diagram's steps in flow order, when `steps` was asked for. */
5448
+ stepNodes?: PlayRunStepNode[];
5449
+ /** Set when `steps` was asked for but the Play draws no diagram. */
5450
+ stepsUnavailable?: 'no_diagram';
5401
5451
  total?: number;
5402
5452
  offset?: number;
5403
5453
  limit?: number;
@@ -9245,4 +9295,4 @@ declare class DeeplineClient {
9245
9295
  }>;
9246
9296
  }
9247
9297
 
9248
- export { type LiveEventScope as $, type AsyncChildRunLaunchProjection as A, type BillingActivePlan as B, type BillingUsageEventsResult as C, DeeplineClient as D, type BillingUsageOptions as E, type BillingUsageResult as F, type ChildRunSummary as G, type ClearPlayHistoryRequest as H, type ClearPlayHistoryResult as I, type CreateNotificationGroupInput as J, type CreateNotificationGroupResult as K, type CreateNotificationInput as L, type CustomerDbColumn as M, type CustomerDbQueryResult as N, type DbNamespace as O, type DeeplineAgentModelDescription as P, type DeeplineToolCategory as Q, type DeletePlayResult as R, type EffectiveProductNotificationConfiguration as S, type ExecutionByKeyResult as T, type ExecutionRecovery as U, type InferenceDynamicPricingCapability as V, type InferenceQuote as W, type InferenceQuoteAssumptions as X, type IngestionStorageRepairResult as Y, type LegacyMonitorStatusFilter as Z, type LiveEventEnvelope as _, type DeeplineClientOptions as a, type MonitorsRepairResult as a$, MONITOR_JOB_PHASES as a0, MONITOR_JOB_RECONCILIATION_STATES as a1, MONITOR_JOB_STATES as a2, type ModelProviderOptionField as a3, type ModelProviderOptionNamespace as a4, type MonitorBatchDeploySubmitOptions as a5, type MonitorBatchExistingSubmitOptions as a6, type MonitorBatchNamespace as a7, type MonitorBatchOperationResult as a8, type MonitorBatchScope as a9, type MonitorJobsNamespace as aA, type MonitorLifecycleOptions as aB, type MonitorListEntry as aC, type MonitorNamedBatchOptions as aD, type MonitorNamedBatchProjection as aE, type MonitorNamedBatchesNamespace as aF, type MonitorPreviewOptions as aG, type MonitorPreviewResult as aH, type MonitorReactivateResult as aI, type MonitorSpec as aJ, type MonitorState as aK, type MonitorStateFilter as aL, type MonitorTestOptions as aM, type MonitorTestResult as aN, type MonitorUpdateChangeSummary as aO, type MonitorUpdateResult as aP, type MonitorValidateResult as aQ, type MonitorsAccessStatus as aR, type MonitorsAuditResult as aS, type MonitorsAvailableOptions as aT, type MonitorsAvailableResult as aU, type MonitorsHealth as aV, type MonitorsLedgerOptions as aW, type MonitorsLedgerResult as aX, type MonitorsListOptions as aY, type MonitorsListResult as aZ, type MonitorsNamespace as a_, type MonitorBatchSubmitOptions as aa, type MonitorCheckResult as ab, type MonitorDeleteResult as ac, type MonitorDependents as ad, type MonitorDeployResult as ae, type MonitorDetail as af, type MonitorFailure as ag, type MonitorFleetDeactivateOptions as ah, type MonitorFleetGetOptions as ai, type MonitorFleetIssuesOptions as aj, type MonitorFleetOverviewDetailOptions as ak, type MonitorFleetOverviewOptions as al, type MonitorFleetReactivateOptions as am, type MonitorFleetResult as an, type MonitorFleetStatus as ao, type MonitorFleetSyncOptions as ap, type MonitorFleetWaitOptions as aq, type MonitorFleetsNamespace as ar, type MonitorJobDeployOptions as as, type MonitorJobLogsOptions as at, type MonitorJobPhase as au, type MonitorJobProjection as av, type MonitorJobReconciliationState as aw, type MonitorJobResult as ax, type MonitorJobState as ay, type MonitorJobWaitOptions as az, type AsyncChildRunProjection as b, type RunBillingResult as b$, type PlayActivityObservation as b0, type PlayActivityState as b1, type PlayActivityTarget as b2, type PlayCheckExportResult as b3, type PlayCheckFeatureFlag as b4, type PlayCheckIssue as b5, type PlayCheckIssueSeverity as b6, type PlayCheckRecognizedSummary as b7, type PlayCheckResult as b8, type PlayCheckSqlListenerEventSummary as b9, type PlaySheetColumnStats as bA, type PlaySheetRow as bB, type PlaySheetRowsResult as bC, type PlaySheetStats as bD, type PlaySheetSummary as bE, type PlayStatus as bF, type PlayTriggerStatus as bG, type PlaysActivityResponse as bH, type PlaysListOptions as bI, type PlaysListPage as bJ, type PrebuiltPlayObservedCost as bK, type ProductNotification as bL, type ProductNotificationConfigurationChange as bM, type ProductNotificationConfigurationResponse as bN, type ProductNotificationDefaultPolicy as bO, type ProductNotificationEventDefinition as bP, type ProductNotificationSettings as bQ, type ProductNotificationTypeCatalogItem as bR, type ProviderDefinition as bS, type PublishPlayVersionRequest as bT, type PublishPlayVersionResult as bU, type PublishSharePageRequest as bV, type RerunOptions as bW, type RerunPlayRunResult as bX, type ResolvedConfig as bY, type RestorePlayResult as bZ, type ResumePlayRunResult as b_, type PlayCheckSqlListenerTrigger as ba, type PlayCheckToolGetterHint as bb, type PlayCheckTriggersSummary as bc, type PlayCostEstimate as bd, type PlayCostEstimateResult as be, type PlayDefinitionDetail as bf, type PlayDescription as bg, type PlayDetail as bh, type PlayListItem as bi, type PlayLiveEvent as bj, type PlayProgressStatus as bk, type PlayRevisionSummary as bl, type PlayRunActionPackage as bm, type PlayRunActivityProjection as bn, type PlayRunDatasetActions as bo, type PlayRunListItem as bp, type PlayRunOutcome as bq, type PlayRunPackage as br, type PlayRunRateLimited as bs, type PlayRunResult as bt, type PlayRunRowHistoryOptions as bu, type PlayRunStart as bv, type PlayRuntimeLimit as bw, type PlayScheduledCapacity as bx, type PlaySecretCheck as by, type PlaySecretMetadata as bz, type AsyncChildRunStatusCounts as c, type ToolExecutionMetadata as c$, type RunBillingSummary as c0, type RunChildrenPage as c1, type RunGetStatus as c2, type RunLifecycleStatus as c3, type RunsChildrenOptions as c4, type RunsEventPayload as c5, type RunsEventSearchEntry as c6, type RunsEventSearchOptions as c7, type RunsEventSearchResult as c8, type RunsEventsCountResult as c9, type SearchResult as cA, type SearchResultItem as cB, type SearchType as cC, type SharePageOwnerView as cD, type SharePageRevisionOption as cE, type SharePageStatus as cF, type SlackNotificationTarget as cG, type StartPlayRunRequest as cH, type StopAllCandidate as cI, type StopAllPlayRunsDryRunResult as cJ, type StopAllPlayRunsResult as cK, type StopAllPlayRunsStopResult as cL, type StopAllRunsOptions as cM, type StopPlayRunResult as cN, type TargetAutoRechargeResult as cO, type TargetAutoRechargeUpdateOptions as cP, type TargetBillingMutationResult as cQ, type TargetBillingOperation as cR, type TargetBillingPlan as cS, type TargetBillingPlanTransitionOptions as cT, type TargetBillingPlansResult as cU, type TargetBillingStatusResult as cV, type ToolBatchCapability as cW, type ToolCategoryListing as cX, type ToolCategorySummary as cY, type ToolDefinition as cZ, type ToolExecution as c_, type RunsEventsCriteria as ca, type RunsEventsFieldsOptions as cb, type RunsEventsListOptions as cc, type RunsEventsListResult as cd, type RunsEventsNamespace as ce, type RunsEventsSummaryOptions as cf, type RunsEventsSummaryResult as cg, type RunsGetOptions as ch, type RunsHistoryItem as ci, type RunsHistoryOptions as cj, type RunsHistoryPage as ck, type RunsListOptions as cl, type RunsListPage as cm, type RunsLogCriteria as cn, type RunsLogsCountResult as co, type RunsLogsNamespace as cp, type RunsLogsOptions as cq, type RunsLogsQueryOptions as cr, type RunsLogsQueryResult as cs, type RunsLogsResult as ct, type RunsLogsSummaryOptions as cu, type RunsLogsSummaryResult as cv, type RunsNamespace as cw, type RunsTailOptions as cx, type RunsWatchOptions as cy, type SearchOptions as cz, type BillingCreditPool as d, type RunEventSummaryResult as d$, type ToolExecutionMetadataFields as d0, type ToolMetadata as d1, type ToolPricingSummary as d2, type ToolRequestCondition as d3, type ToolRequestWarningRule as d4, type ToolSearchOptions as d5, type ToolSearchResult as d6, type UpdateNotificationInput as d7, type UpdateSharePageRequest as d8, type View as d9, type PlayCronTriggerConfig as dA, type PlayDescriptionOptions as dB, type PlayPath as dC, type PlaySettings as dD, type PlaySettingsPatch as dE, type PlaySettingsPathsPage as dF, type PlaySettingsResult as dG, type PlayTriggerConfigUpdate as dH, type PlayTriggerConfigUpdateResult as dI, type PlayTriggerConfigView as dJ, type PlayWebhookAuthConfig as dK, type PlayWebhookTriggerConfig as dL, type RunEventCountResult as dM, type RunEventField as dN, type RunEventFieldDescriptor as dO, type RunEventFieldOperators as dP, type RunEventFieldsResult as dQ, type RunEventGroupValue as dR, type RunEventMeasure as dS, type RunEventQueryCriteria as dT, type RunEventQueryEvent as dU, RunEventQueryInputError as dV, type RunEventQueryOptions as dW, type RunEventQueryPage as dX, type RunEventQueryRetention as dY, type RunEventScalar as dZ, type RunEventSummaryOptions as d_, type ViewAbilities as da, type ViewAccess as db, type ViewDetail as dc, type ViewPermissionLevel as dd, type ViewPermissionRules as de, type ViewRunSummary as df, type ViewShareLink as dg, type ViewShareLinkExpiry as dh, type WorkspaceCreateResult as di, type WorkspaceReuseResult as dj, type WorkspaceServiceAccount as dk, type WorkspaceServiceAccountKey as dl, type WorkspaceServiceAccountsNamespace as dm, type WorkspacesNamespace as dn, isStopAllPlayRunsDryRunResult as dp, type ExecuteToolRawOptions as dq, type CustomerDbQueryOptions as dr, type CustomerDbQueryPlan as ds, DEEPLINE_TOOL_CATEGORIES as dt, type IntegrationChangeOptions as du, type IntegrationChangeResult as dv, type IntegrationsNamespace as dw, type MonitorDefinition as dx, type MonitorPayload as dy, type NormalizedRunEventQuery as dz, type BillingInvoiceEntry as e, type RunEventWhere as e0, type RunToolReceiptResult as e1, type RunToolReceiptsResponse as e2, type WorkspaceConnection as e3, defineMonitor as e4, planCustomerDbQuery as e5, cloneEditStarter as e6, describePlayDetail as e7, describePlayListItem as e8, CLI_PLAY_RUN_CALLER_INTENT_V2_PATH as e9, createStagedFileUpload as eA, fileInputBindingsFromPlaySchema as eB, fileInputBindingsFromStaticPipeline as eC, getDottedInputValue as eD, isPlayRunPackage as eE, mintStagedPlayFileUploads as eF, normalizePlayRunStart as eG, playRunFileInputBindings as eH, preparePlayRunAdmission as eI, readPlayRunAdmissionCapability as eJ, setDottedInputValue as eK, stageFileInputs as eL, stagePlayFiles as eM, stagedFileContentType as eN, startPlayRun as eO, submitPreparedPlayRunAdmission as eP, webStagedFileCodec as eQ, CLI_PLAY_RUN_CALLER_INTENT_V2_START_STREAM_PATH as ea, CLI_PLAY_RUN_CALLER_INTENT_V2_SUPPORTED_HEADER as eb, CLI_PLAY_RUN_START_PATH as ec, CLI_PLAY_RUN_START_STREAM_PATH as ed, CLI_PLAY_RUN_SUPPORTED_HEADER as ee, CSV_DATA_INPUT_KEY as ef, CliPlayAdmissionCallerIntentV2UnsupportedError as eg, CliPlayAdmissionUnsupportedError as eh, type FileInputBinding as ei, type LocalFileInput as ej, type MintStagedFileUpload as ek, PLAY_FILES_STAGE_MINT_PATH as el, PLAY_FILES_STAGE_PATH as em, PLAY_RUN_START_PATH as en, PLAY_RUN_START_STREAM_PATH as eo, type PlayRunAdmissionCapability as ep, type PlayRunHttp as eq, type PlayRunStartOptions as er, type ResolvedStartPlayRunRequest as es, STAGE_LEGACY_MULTIPART_MAX_BYTES as et, type StagedFileCodec as eu, type StagedFileInputs as ev, type StagedFileUpload as ew, buildNamedPlayRunRequest as ex, buildPlayRunStartBody as ey, createSessionPlayRunHttp as ez, type BillingInvoicesResult as f, type BillingMeterEntry as g, type BillingMetricEntry as h, type BillingNamespace as i, type BillingPaymentMethodSummary as j, type BillingPlanEntry as k, type BillingPlansResult as l, type BillingQuoteRequest as m, type BillingQuoteResult as n, type BillingRecentUsageEntry as o, type BillingSavedCard as p, type BillingSavedCardChangeOptions as q, type BillingSavedCardChangeResult as r, type BillingSavedCardsResult as s, type BillingSubscriptionCancelResult as t, type BillingSubscriptionStatus as u, type BillingTopUpReceipt as v, type BillingTopUpResult as w, type BillingUsageEvent as x, type BillingUsageEventListEntry as y, type BillingUsageEventsOptions as z };
9298
+ export { type LiveEventScope as $, type AsyncChildRunLaunchProjection as A, type BillingActivePlan as B, type BillingUsageEventsResult as C, DeeplineClient as D, type BillingUsageOptions as E, type BillingUsageResult as F, type ChildRunSummary as G, type ClearPlayHistoryRequest as H, type ClearPlayHistoryResult as I, type CreateNotificationGroupInput as J, type CreateNotificationGroupResult as K, type CreateNotificationInput as L, type CustomerDbColumn as M, type CustomerDbQueryResult as N, type DbNamespace as O, type DeeplineAgentModelDescription as P, type DeeplineToolCategory as Q, type DeletePlayResult as R, type EffectiveProductNotificationConfiguration as S, type ExecutionByKeyResult as T, type ExecutionRecovery as U, type InferenceDynamicPricingCapability as V, type InferenceQuote as W, type InferenceQuoteAssumptions as X, type IngestionStorageRepairResult as Y, type LegacyMonitorStatusFilter as Z, type LiveEventEnvelope as _, type DeeplineClientOptions as a, type MonitorsRepairResult as a$, MONITOR_JOB_PHASES as a0, MONITOR_JOB_RECONCILIATION_STATES as a1, MONITOR_JOB_STATES as a2, type ModelProviderOptionField as a3, type ModelProviderOptionNamespace as a4, type MonitorBatchDeploySubmitOptions as a5, type MonitorBatchExistingSubmitOptions as a6, type MonitorBatchNamespace as a7, type MonitorBatchOperationResult as a8, type MonitorBatchScope as a9, type MonitorJobsNamespace as aA, type MonitorLifecycleOptions as aB, type MonitorListEntry as aC, type MonitorNamedBatchOptions as aD, type MonitorNamedBatchProjection as aE, type MonitorNamedBatchesNamespace as aF, type MonitorPreviewOptions as aG, type MonitorPreviewResult as aH, type MonitorReactivateResult as aI, type MonitorSpec as aJ, type MonitorState as aK, type MonitorStateFilter as aL, type MonitorTestOptions as aM, type MonitorTestResult as aN, type MonitorUpdateChangeSummary as aO, type MonitorUpdateResult as aP, type MonitorValidateResult as aQ, type MonitorsAccessStatus as aR, type MonitorsAuditResult as aS, type MonitorsAvailableOptions as aT, type MonitorsAvailableResult as aU, type MonitorsHealth as aV, type MonitorsLedgerOptions as aW, type MonitorsLedgerResult as aX, type MonitorsListOptions as aY, type MonitorsListResult as aZ, type MonitorsNamespace as a_, type MonitorBatchSubmitOptions as aa, type MonitorCheckResult as ab, type MonitorDeleteResult as ac, type MonitorDependents as ad, type MonitorDeployResult as ae, type MonitorDetail as af, type MonitorFailure as ag, type MonitorFleetDeactivateOptions as ah, type MonitorFleetGetOptions as ai, type MonitorFleetIssuesOptions as aj, type MonitorFleetOverviewDetailOptions as ak, type MonitorFleetOverviewOptions as al, type MonitorFleetReactivateOptions as am, type MonitorFleetResult as an, type MonitorFleetStatus as ao, type MonitorFleetSyncOptions as ap, type MonitorFleetWaitOptions as aq, type MonitorFleetsNamespace as ar, type MonitorJobDeployOptions as as, type MonitorJobLogsOptions as at, type MonitorJobPhase as au, type MonitorJobProjection as av, type MonitorJobReconciliationState as aw, type MonitorJobResult as ax, type MonitorJobState as ay, type MonitorJobWaitOptions as az, type AsyncChildRunProjection as b, type RestorePlayResult as b$, type PlayActivityObservation as b0, type PlayActivityState as b1, type PlayActivityTarget as b2, type PlayCheckExportResult as b3, type PlayCheckFeatureFlag as b4, type PlayCheckIssue as b5, type PlayCheckIssueSeverity as b6, type PlayCheckRecognizedSummary as b7, type PlayCheckResult as b8, type PlayCheckSqlListenerEventSummary as b9, type PlaySecretCheck as bA, type PlaySecretMetadata as bB, type PlaySheetColumnStats as bC, type PlaySheetRow as bD, type PlaySheetRowsResult as bE, type PlaySheetStats as bF, type PlaySheetSummary as bG, type PlayStatus as bH, type PlayTriggerStatus as bI, type PlaysActivityResponse as bJ, type PlaysListOptions as bK, type PlaysListPage as bL, type PrebuiltPlayObservedCost as bM, type ProductNotification as bN, type ProductNotificationConfigurationChange as bO, type ProductNotificationConfigurationResponse as bP, type ProductNotificationDefaultPolicy as bQ, type ProductNotificationEventDefinition as bR, type ProductNotificationSettings as bS, type ProductNotificationTypeCatalogItem as bT, type ProviderDefinition as bU, type PublishPlayVersionRequest as bV, type PublishPlayVersionResult as bW, type PublishSharePageRequest as bX, type RerunOptions as bY, type RerunPlayRunResult as bZ, type ResolvedConfig as b_, type PlayCheckSqlListenerTrigger as ba, type PlayCheckToolGetterHint as bb, type PlayCheckTriggersSummary as bc, type PlayCostEstimate as bd, type PlayCostEstimateResult as be, type PlayDefinitionDetail as bf, type PlayDescription as bg, type PlayDetail as bh, type PlayListItem as bi, type PlayLiveEvent as bj, type PlayProgressStatus as bk, type PlayRevisionSummary as bl, type PlayRunActionPackage as bm, type PlayRunActivityProjection as bn, type PlayRunDatasetActions as bo, type PlayRunListItem as bp, type PlayRunOutcome as bq, type PlayRunPackage as br, type PlayRunRateLimited as bs, type PlayRunResult as bt, type PlayRunRowHistoryOptions as bu, type PlayRunStart as bv, type PlayRunStepNode as bw, type PlayRunStepSummary as bx, type PlayRuntimeLimit as by, type PlayScheduledCapacity as bz, type AsyncChildRunStatusCounts as c, type ToolDefinition as c$, type ResumePlayRunResult as c0, type RunBillingResult as c1, type RunBillingSummary as c2, type RunChildrenPage as c3, type RunGetStatus as c4, type RunLifecycleStatus as c5, type RunsChildrenOptions as c6, type RunsEventPayload as c7, type RunsEventSearchEntry as c8, type RunsEventSearchOptions as c9, type RunsWatchOptions as cA, type SearchOptions as cB, type SearchResult as cC, type SearchResultItem as cD, type SearchType as cE, type SharePageOwnerView as cF, type SharePageRevisionOption as cG, type SharePageStatus as cH, type SlackNotificationTarget as cI, type StartPlayRunRequest as cJ, type StopAllCandidate as cK, type StopAllPlayRunsDryRunResult as cL, type StopAllPlayRunsResult as cM, type StopAllPlayRunsStopResult as cN, type StopAllRunsOptions as cO, type StopPlayRunResult as cP, type TargetAutoRechargeResult as cQ, type TargetAutoRechargeUpdateOptions as cR, type TargetBillingMutationResult as cS, type TargetBillingOperation as cT, type TargetBillingPlan as cU, type TargetBillingPlanTransitionOptions as cV, type TargetBillingPlansResult as cW, type TargetBillingStatusResult as cX, type ToolBatchCapability as cY, type ToolCategoryListing as cZ, type ToolCategorySummary as c_, type RunsEventSearchResult as ca, type RunsEventsCountResult as cb, type RunsEventsCriteria as cc, type RunsEventsFieldsOptions as cd, type RunsEventsListOptions as ce, type RunsEventsListResult as cf, type RunsEventsNamespace as cg, type RunsEventsSummaryOptions as ch, type RunsEventsSummaryResult as ci, type RunsGetOptions as cj, type RunsHistoryItem as ck, type RunsHistoryOptions as cl, type RunsHistoryPage as cm, type RunsListOptions as cn, type RunsListPage as co, type RunsLogCriteria as cp, type RunsLogsCountResult as cq, type RunsLogsNamespace as cr, type RunsLogsOptions as cs, type RunsLogsQueryOptions as ct, type RunsLogsQueryResult as cu, type RunsLogsResult as cv, type RunsLogsSummaryOptions as cw, type RunsLogsSummaryResult as cx, type RunsNamespace as cy, type RunsTailOptions as cz, type BillingCreditPool as d, type RunEventScalar as d$, type ToolExecution as d0, type ToolExecutionMetadata as d1, type ToolExecutionMetadataFields as d2, type ToolMetadata as d3, type ToolPricingSummary as d4, type ToolRequestCondition as d5, type ToolRequestWarningRule as d6, type ToolSearchOptions as d7, type ToolSearchResult as d8, type UpdateNotificationInput as d9, type MonitorPayload as dA, type NormalizedRunEventQuery as dB, type PlayCronTriggerConfig as dC, type PlayDescriptionOptions as dD, type PlayPath as dE, type PlaySettings as dF, type PlaySettingsPatch as dG, type PlaySettingsPathsPage as dH, type PlaySettingsResult as dI, type PlayTriggerConfigUpdate as dJ, type PlayTriggerConfigUpdateResult as dK, type PlayTriggerConfigView as dL, type PlayWebhookAuthConfig as dM, type PlayWebhookTriggerConfig as dN, type RunEventCountResult as dO, type RunEventField as dP, type RunEventFieldDescriptor as dQ, type RunEventFieldOperators as dR, type RunEventFieldsResult as dS, type RunEventGroupValue as dT, type RunEventMeasure as dU, type RunEventQueryCriteria as dV, type RunEventQueryEvent as dW, RunEventQueryInputError as dX, type RunEventQueryOptions as dY, type RunEventQueryPage as dZ, type RunEventQueryRetention as d_, type UpdateSharePageRequest as da, type View as db, type ViewAbilities as dc, type ViewAccess as dd, type ViewDetail as de, type ViewPermissionLevel as df, type ViewPermissionRules as dg, type ViewRunSummary as dh, type ViewShareLink as di, type ViewShareLinkExpiry as dj, type WorkspaceCreateResult as dk, type WorkspaceReuseResult as dl, type WorkspaceServiceAccount as dm, type WorkspaceServiceAccountKey as dn, type WorkspaceServiceAccountsNamespace as dp, type WorkspacesNamespace as dq, isStopAllPlayRunsDryRunResult as dr, type ExecuteToolRawOptions as ds, type CustomerDbQueryOptions as dt, type CustomerDbQueryPlan as du, DEEPLINE_TOOL_CATEGORIES as dv, type IntegrationChangeOptions as dw, type IntegrationChangeResult as dx, type IntegrationsNamespace as dy, type MonitorDefinition as dz, type BillingInvoiceEntry as e, type RunEventSummaryOptions as e0, type RunEventSummaryResult as e1, type RunEventWhere as e2, type RunToolReceiptResult as e3, type RunToolReceiptsResponse as e4, type WorkspaceConnection as e5, defineMonitor as e6, planCustomerDbQuery as e7, cloneEditStarter as e8, describePlayDetail as e9, buildPlayRunStartBody as eA, createSessionPlayRunHttp as eB, createStagedFileUpload as eC, fileInputBindingsFromPlaySchema as eD, fileInputBindingsFromStaticPipeline as eE, getDottedInputValue as eF, isPlayRunPackage as eG, mintStagedPlayFileUploads as eH, normalizePlayRunStart as eI, playRunFileInputBindings as eJ, preparePlayRunAdmission as eK, readPlayRunAdmissionCapability as eL, setDottedInputValue as eM, stageFileInputs as eN, stagePlayFiles as eO, stagedFileContentType as eP, startPlayRun as eQ, submitPreparedPlayRunAdmission as eR, webStagedFileCodec as eS, describePlayListItem as ea, CLI_PLAY_RUN_CALLER_INTENT_V2_PATH as eb, CLI_PLAY_RUN_CALLER_INTENT_V2_START_STREAM_PATH as ec, CLI_PLAY_RUN_CALLER_INTENT_V2_SUPPORTED_HEADER as ed, CLI_PLAY_RUN_START_PATH as ee, CLI_PLAY_RUN_START_STREAM_PATH as ef, CLI_PLAY_RUN_SUPPORTED_HEADER as eg, CSV_DATA_INPUT_KEY as eh, CliPlayAdmissionCallerIntentV2UnsupportedError as ei, CliPlayAdmissionUnsupportedError as ej, type FileInputBinding as ek, type LocalFileInput as el, type MintStagedFileUpload as em, PLAY_FILES_STAGE_MINT_PATH as en, PLAY_FILES_STAGE_PATH as eo, PLAY_RUN_START_PATH as ep, PLAY_RUN_START_STREAM_PATH as eq, type PlayRunAdmissionCapability as er, type PlayRunHttp as es, type PlayRunStartOptions as et, type ResolvedStartPlayRunRequest as eu, STAGE_LEGACY_MULTIPART_MAX_BYTES as ev, type StagedFileCodec as ew, type StagedFileInputs as ex, type StagedFileUpload as ey, buildNamedPlayRunRequest as ez, type BillingInvoicesResult as f, type BillingMeterEntry as g, type BillingMetricEntry as h, type BillingNamespace as i, type BillingPaymentMethodSummary as j, type BillingPlanEntry as k, type BillingPlansResult as l, type BillingQuoteRequest as m, type BillingQuoteResult as n, type BillingRecentUsageEntry as o, type BillingSavedCard as p, type BillingSavedCardChangeOptions as q, type BillingSavedCardChangeResult as r, type BillingSavedCardsResult as s, type BillingSubscriptionCancelResult as t, type BillingSubscriptionStatus as u, type BillingTopUpReceipt as v, type BillingTopUpResult as w, type BillingUsageEvent as x, type BillingUsageEventListEntry as y, type BillingUsageEventsOptions as z };