@sylphx/sdk 0.20.1 → 0.21.1

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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { DEFAULT_MACHINE_SIZE, MACHINE_CONFIGS, MACHINE_MAX_INSTANCES, MACHINE_RESOURCE_REQUIREMENTS, MACHINE_SIZES, MachineConfig, MachineResourceRequirements, MachineTierResources, isMachineSize, parseMachineSize, resolveMachineConfig, resolveMachineMaxInstances, resolveMachineResources, resolveMachineTierResources, toPublicMachineSize } from '@sylphx/contract/compute';
2
- import { ManagedWorkspace, CreateWorkspaceInput, ForkWorkspaceInput, WorkspaceCapacitySnapshot, PinWorkspaceInput, PinWorkspaceResult, ReclaimWorkspaceInput, ReclaimWorkspaceResult, SdkBillingPlan, SdkBillingSubscription, BillingCheckoutRequest, BillingCheckoutResponse, BillingPortalRequest, BillingPortalResponse, BillingBalanceResponse, BillingUsageResponse, SdkConsentType, UserConsent as UserConsent$1, AIModel as AIModel$1, GetModelsResponse, GetRateLimitResponse, GetUsageResponse, ReferralLeaderboardEntry, ReferralRewardDefaults as ReferralRewardDefaults$1, WebhookDelivery as WebhookDelivery$1, OAuthTokenResponse, OAuthTokenErrorResponse, OAuthClientCredentialsResponse, LogoutInput, RefreshTokenInput, RefreshTokenResult, OAuthIntrospectResponse, PlatformPasswordChangeRequest, PlatformPasswordChangeResponse, PlatformPasswordSetRequest, PlatformPasswordSetResponse, PlatformPasswordStatusResponse, PlatformSessionRenameRequest, PlatformSessionRenameResponse, PlatformSessionRevokeAllResponse, PlatformSessionRevokeRequest, PlatformSessionRevokeOtherResponse, PlatformSessionRevokeResponse, PlatformSessionsListResponse, AuthUserDeleteRequest, AuthUserDeleteResponse, AuthUserExportResponse, DeviceApproveRequest, DeviceApproveResponse, DeviceDenyRequest, DeviceDenyResponse, DeviceInitResponse, DeviceInitRequest, DevicePollResponse, LoginRequest as LoginRequest$1, LoginResponse as LoginResponse$1, UserFullProfile as UserFullProfile$1, RegisterRequest as RegisterRequest$1, RegisterResponse as RegisterResponse$1, ResendEmailVerificationRequest as ResendEmailVerificationRequest$1, ResendEmailVerificationResponse as ResendEmailVerificationResponse$1, AuthTokensResponse, TwoFactorVerifyRequest as TwoFactorVerifyRequest$1, PlatformAuditQueryRequest, PlatformAuditQueryResponse, PlatformRateLimitStatusRequest, PlatformRateLimitStatusResponse, PlatformRateLimitStrategiesListRequest, PlatformRateLimitStrategiesListResponse, PlatformRateLimitStrategyDeleteRequest, PlatformRateLimitStrategyDeleteResponse, PlatformRateLimitStrategyUpsertRequest, PlatformRateLimitStrategyUpsertResponse, File as File$1, UploadId, FileId, TakedownFileRequest, TakedownFileResult, FileVersion, FileVersionId, MachineSize, DurableWorkGetTaskRunResponse, DurableWorkTaskRunStep, CreateOrgInput as CreateOrgInput$1, InviteMemberInput as InviteMemberInput$1, OrgSdkRole, OrgInvitation, OrgMember, MembershipInfo, Organization, UpdateOrgInput as UpdateOrgInput$1, UserOrganizationMembership, UserOrganizationsResponse, SandboxCapabilitiesReport, RenderRequest, RenderResult } from '@sylphx/contract';
3
- export { BillingBalanceResponse as BalanceResponse, CI_LINUX_RUNNER_SIZES, CI_MACOS_RUNNER_SIZES, CI_RUNNER_PROFILES, BillingCheckoutRequest as CheckoutRequest, BillingCheckoutResponse as CheckoutResponse, CiLinuxRunnerSize, CiMacosRunnerSize, CiRunnerPlatform, CiRunnerProfile, CiRunnerProfileId, CiRunnerWorkflowRunsOn, CreateWorkspaceInput, FileId, FileVersion, FileVersionId, FileVisibility, ForkWorkspaceInput, Organization, PinWorkspaceInput, BillingPortalRequest as PortalRequest, BillingPortalResponse as PortalResponse, ReclaimWorkspaceInput, RenderRequest, RenderResult, SandboxCapabilitiesReport, SignedUrlDisposition, File as StorageFile, UploadId, BillingUsageResponse as UsageResponse, WorkspaceCapacitySnapshot, formatCiRunnerWorkflowRunsOn, getCiRunnerProfileById } from '@sylphx/contract';
2
+ import { ManagedWorkspace, CreateWorkspaceInput, ForkWorkspaceInput, WorkspaceCapacitySnapshot, PinWorkspaceInput, PinWorkspaceResult, ReclaimWorkspaceInput, ReclaimWorkspaceResult, ReclaimWorkspaceSubpathInput, ReclaimWorkspaceSubpathResult, SdkBillingPlan, SdkBillingSubscription, BillingCheckoutRequest, BillingCheckoutResponse, BillingPortalRequest, BillingPortalResponse, BillingBalanceResponse, BillingUsageResponse, SdkConsentType, UserConsent as UserConsent$1, AIModel as AIModel$1, GetModelsResponse, GetRateLimitResponse, GetUsageResponse, ReferralLeaderboardEntry, ReferralRewardDefaults as ReferralRewardDefaults$1, WebhookDelivery as WebhookDelivery$1, OAuthTokenResponse, OAuthTokenErrorResponse, OAuthClientCredentialsResponse, LogoutInput, RefreshTokenInput, RefreshTokenResult, OAuthIntrospectResponse, PlatformPasswordChangeRequest, PlatformPasswordChangeResponse, PlatformPasswordSetRequest, PlatformPasswordSetResponse, PlatformPasswordStatusResponse, PlatformSessionRenameRequest, PlatformSessionRenameResponse, PlatformSessionRevokeAllResponse, PlatformSessionRevokeRequest, PlatformSessionRevokeOtherResponse, PlatformSessionRevokeResponse, PlatformSessionsListResponse, AuthUserDeleteRequest, AuthUserDeleteResponse, AuthUserExportResponse, DeviceApproveRequest, DeviceApproveResponse, DeviceDenyRequest, DeviceDenyResponse, DeviceInitResponse, DeviceInitRequest, DevicePollResponse, LoginRequest as LoginRequest$1, LoginResponse as LoginResponse$1, UserFullProfile as UserFullProfile$1, RegisterRequest as RegisterRequest$1, RegisterResponse as RegisterResponse$1, ResendEmailVerificationRequest as ResendEmailVerificationRequest$1, ResendEmailVerificationResponse as ResendEmailVerificationResponse$1, AuthTokensResponse, TwoFactorVerifyRequest as TwoFactorVerifyRequest$1, PlatformAuditQueryRequest, PlatformAuditQueryResponse, PlatformRateLimitStatusRequest, PlatformRateLimitStatusResponse, PlatformRateLimitStrategiesListRequest, PlatformRateLimitStrategiesListResponse, PlatformRateLimitStrategyDeleteRequest, PlatformRateLimitStrategyDeleteResponse, PlatformRateLimitStrategyUpsertRequest, PlatformRateLimitStrategyUpsertResponse, File as File$1, UploadId, FileId, TakedownFileRequest, TakedownFileResult, FileVersion, FileVersionId, MachineSize, DurableWorkGetTaskRunResponse, DurableWorkTaskRunStep, CreateOrgInput as CreateOrgInput$1, InviteMemberInput as InviteMemberInput$1, OrgSdkRole, OrgInvitation, OrgMember, MembershipInfo, Organization, UpdateOrgInput as UpdateOrgInput$1, UserOrganizationMembership, UserOrganizationsResponse, SandboxCapabilitiesReport, PublishArtifactRequest, ArtifactResult, ListArtifactsResult, ArtifactDetail, ArtifactContent, DeleteArtifactResult, RestoreArtifactResult, ReshareArtifactResult, RenderRequest, RenderResult, GrantRequest, Grant, BalanceSummary, ReserveRequest, Reservation, ConsumeRequest, LedgerEntry, ReleaseRequest, VoidGrantRequest, CreateDeviceSessionInput, DeviceSessionResult, ListDeviceSessionsQuery, ListDeviceSessionsResult, InstallDeviceSessionAppInput, InstallDeviceSessionAppResult, DeviceSessionInput, DeviceSessionInputResult, LaunchDeviceSessionAppInput, LaunchDeviceSessionAppResult, DeviceSessionScreenshotResult, DeviceSessionLogcatQuery, DeviceSessionLogcatResult, DeviceSessionStreamConnectInput, DeviceSessionStreamConnectResult, DeleteDeviceSessionResult, DurableWorkRunCompletionMode, DistributedRun, DistributedRunShard, DistributedRunAggregateStatus } from '@sylphx/contract';
3
+ export { ArtifactResult, BillingBalanceResponse as BalanceResponse, CI_LINUX_RUNNER_SIZES, CI_MACOS_RUNNER_SIZES, CI_RUNNER_PROFILES, BillingCheckoutRequest as CheckoutRequest, BillingCheckoutResponse as CheckoutResponse, CiLinuxRunnerSize, CiMacosRunnerSize, CiRunnerPlatform, CiRunnerProfile, CiRunnerProfileId, CiRunnerWorkflowRunsOn, CreateDeviceSessionInput, CreateWorkspaceInput, DeleteDeviceSessionResult, DeviceSessionInput, DeviceSessionInputResult, DeviceSessionLogcatQuery, DeviceSessionLogcatResult, DeviceSessionResult, DeviceSessionScreenshotResult, DeviceSessionStreamConnectInput, DeviceSessionStreamConnectResult, DistributedRun, DistributedRunShard, DurableWorkRunCompletionMode, FileId, FileVersion, FileVersionId, FileVisibility, ForkWorkspaceInput, InstallDeviceSessionAppInput, InstallDeviceSessionAppResult, LaunchDeviceSessionAppInput, LaunchDeviceSessionAppResult, ListDeviceSessionsQuery, ListDeviceSessionsResult, Organization, PinWorkspaceInput, BillingPortalRequest as PortalRequest, BillingPortalResponse as PortalResponse, PublishArtifactRequest, ReclaimWorkspaceInput, ReclaimWorkspaceSubpathInput, RenderRequest, RenderResult, SandboxCapabilitiesReport, SignedUrlDisposition, File as StorageFile, UploadId, BillingUsageResponse as UsageResponse, WorkspaceCapacitySnapshot, formatCiRunnerWorkflowRunsOn, getCiRunnerProfileById } from '@sylphx/contract';
4
4
 
5
5
  /**
6
6
  * Functions Admin namespace — Platform-plane function-bundle admin
@@ -624,6 +624,7 @@ declare function createWorkspace(config: SylphxConfig, input: CreateWorkspaceInp
624
624
  declare function forkWorkspace(config: SylphxConfig, sourceWorkspaceId: string, input?: ForkWorkspaceInput): Promise<WorkspaceRecord>;
625
625
  declare function pinWorkspace(config: SylphxConfig, workspaceId: string, input?: PinWorkspaceInput): Promise<PinWorkspaceResult>;
626
626
  declare function reclaimWorkspace(config: SylphxConfig, workspaceId: string, input?: ReclaimWorkspaceInput): Promise<ReclaimWorkspaceResult>;
627
+ declare function reclaimWorkspaceSubpath(config: SylphxConfig, workspaceId: string, input: ReclaimWorkspaceSubpathInput): Promise<ReclaimWorkspaceSubpathResult>;
627
628
  declare function deleteWorkspace(config: SylphxConfig, workspaceId: string): Promise<void>;
628
629
 
629
630
  /**
@@ -736,7 +737,14 @@ declare const COMPUTE_VCPU_ACTIVE_RATE_MICRODOLLARS = 400;
736
737
  declare const COMPUTE_VCPU_IDLE_RATE_MICRODOLLARS = 50;
737
738
  /** RAM rate: $0.010/GB-hr = $0.000167/GB-min = 167 microdollars/GB-min (ADR-034) */
738
739
  declare const COMPUTE_RAM_RATE_MICRODOLLARS = 167;
739
- /** Build minute prices by machine type in microdollars per minute (ADR-034) */
740
+ /**
741
+ * Build minute prices by machine type in microdollars per minute (ADR-034).
742
+ *
743
+ * `standard` repriced $0.014 → $0.006 per ADR-2571 to match the GitHub Actions
744
+ * Jan-2026 Linux floor and resolve the SSOT conflict with the billed DB row
745
+ * (migration 0062 was $0.008). The DB row is superseded to $0.006 in the same
746
+ * change (migration 0084, effective 2026-07-20).
747
+ */
740
748
  declare const BUILD_MINUTE_PRICES: Record<string, number>;
741
749
  /** Build minute size multipliers for quota tracking (ADR-034) */
742
750
  declare const BUILD_SIZE_MULTIPLIERS: Record<string, number>;
@@ -3367,6 +3375,13 @@ interface RegisterInput {
3367
3375
  email: string;
3368
3376
  password: string;
3369
3377
  name?: string;
3378
+ /**
3379
+ * Server-verified CAPTCHA challenge token for projects that require
3380
+ * bot protection on email/password registration. Obtain this from the
3381
+ * public app metadata CAPTCHA config and never send provider secrets to
3382
+ * the browser.
3383
+ */
3384
+ captchaToken?: string;
3370
3385
  metadata?: Record<string, unknown>;
3371
3386
  invitationToken?: string;
3372
3387
  }
@@ -8973,6 +8988,115 @@ declare class SandboxClient {
8973
8988
  private assertDirect;
8974
8989
  }
8975
8990
 
8991
+ /**
8992
+ * Artifacts — publish + manage agent-authored interactive web content at a safe
8993
+ * shareable URL.
8994
+ *
8995
+ * Org-scoped client over the BaaS plane `/artifacts`. The Platform stores the
8996
+ * self-contained HTML, isolates it on a separate per-artifact content origin, and
8997
+ * returns a signed, expiring (or durable / auth-gated) shareable URL (ADR-2564).
8998
+ * Slice 2 adds the management plane: list / get / delete (soft) / restore /
8999
+ * reshare. Complement to `RenderClient`: render returns a fixed-format image, an
9000
+ * artifact is a live interactive page at a URL.
9001
+ *
9002
+ * Wire-shape types are re-exported from `@sylphx/contract` (ADR-084). Type-only
9003
+ * imports keep the Effect runtime out of the published `.d.ts` surface
9004
+ * (check-published-sdk-effect-leak).
9005
+ */
9006
+
9007
+ /**
9008
+ * Artifact client — publish + manage a self-contained HTML page at a safe,
9009
+ * shareable URL.
9010
+ *
9011
+ * @example
9012
+ * ```typescript
9013
+ * import { createServerClient, ArtifactClient } from '@sylphx/sdk'
9014
+ *
9015
+ * const config = createServerClient(process.env.SYLPHX_SECRET_URL!)
9016
+ *
9017
+ * const result = await ArtifactClient.publish(config, {
9018
+ * title: '10-minute timer',
9019
+ * html: '<!doctype html><meta charset="utf-8"><body>…</body>',
9020
+ * })
9021
+ *
9022
+ * if (result.ok) {
9023
+ * console.log(result.url) // share this link; expires at result.expiresAt
9024
+ * // later: list / inspect / delete / restore / reshare
9025
+ * const { artifacts } = await ArtifactClient.list(config)
9026
+ * await ArtifactClient.delete(config, result.id) // soft-delete (reversible)
9027
+ * }
9028
+ * ```
9029
+ */
9030
+ declare const ArtifactClient: {
9031
+ /**
9032
+ * Publish a self-contained HTML document to a safe, shareable URL. Returns a
9033
+ * signed expiring link by default (`access: 'signed-link'`) — click-to-view, no
9034
+ * login, leaked links decay; `public` for a durable URL. On success returns
9035
+ * `{ id, url, expiresAt?, version }`; on failure a structured `error` with a
9036
+ * `code` (e.g. `blocked_unsafe`) and `diagnostics`.
9037
+ *
9038
+ * **Update in place (ADR-2564 v2):** pass `artifactId` (the `id` from a prior
9039
+ * publish) to REVISE that artifact — the id and the shareable URL are preserved
9040
+ * and `version` increments. The caller must own the artifact (`forbidden`
9041
+ * otherwise), it must still exist (`not_found`), and it must be a versioned
9042
+ * artifact (`conflict` for pre-versioning artifacts). Omit `artifactId` to
9043
+ * create a fresh artifact.
9044
+ */
9045
+ publish(config: SylphxConfig, request: PublishArtifactRequest): Promise<ArtifactResult>;
9046
+ /**
9047
+ * List the calling project's published artifacts, newest-first. Returns
9048
+ * metadata only — `{ artifacts: [{ id, title?, access, currentVersion,
9049
+ * createdAt, updatedAt, expiresAt? }] }`.
9050
+ *
9051
+ * Excludes soft-deleted artifacts by default. Pass `{ includeDeleted: true }`
9052
+ * to ALSO list tombstoned ones (each carrying `deleted: true` + `deletedAt`),
9053
+ * so you can find a soft-deleted artifact's id and {@link ArtifactClient.restore}
9054
+ * it before the grace-window cleanup erases it.
9055
+ */
9056
+ list(config: SylphxConfig, options?: {
9057
+ includeDeleted?: boolean;
9058
+ }): Promise<ListArtifactsResult>;
9059
+ /**
9060
+ * Get one artifact's metadata and its immutable version history. Throws
9061
+ * `NOT_FOUND` if the artifact does not exist (or is soft-deleted), `FORBIDDEN`
9062
+ * if it belongs to another project.
9063
+ */
9064
+ get(config: SylphxConfig, id: string): Promise<ArtifactDetail>;
9065
+ /**
9066
+ * Get an artifact's CURRENT HTML source so you can EDIT it, then re-{@link
9067
+ * ArtifactClient.publish} with `artifactId` to update it in place — instead of
9068
+ * rewriting it blind from a fresh session. Returns `{ id, version, html }`.
9069
+ * Throws `NOT_FOUND` if it does not exist (or is soft-deleted), `FORBIDDEN` if
9070
+ * it belongs to another project. `get` returns metadata only; this returns the
9071
+ * bytes.
9072
+ */
9073
+ getContent(config: SylphxConfig, id: string): Promise<ArtifactContent>;
9074
+ /**
9075
+ * Soft-delete an artifact (reversible). The shareable URL begins returning
9076
+ * `410 Gone`; the bytes are retained until a later grace-window cleanup, so
9077
+ * {@link ArtifactClient.restore} can bring it back. Throws `NOT_FOUND` /
9078
+ * `FORBIDDEN` as for {@link ArtifactClient.get}.
9079
+ */
9080
+ delete(config: SylphxConfig, id: string): Promise<DeleteArtifactResult>;
9081
+ /**
9082
+ * Restore a soft-deleted artifact. Pass `version` to roll a prior version
9083
+ * FORWARD as a new current version (history is never rewritten) — the returned
9084
+ * `version` is then the new current. Omit it to simply clear the tombstone.
9085
+ */
9086
+ restore(config: SylphxConfig, id: string, options?: {
9087
+ version?: number;
9088
+ }): Promise<RestoreArtifactResult>;
9089
+ /**
9090
+ * Re-mint a fresh signed share link (a new capability URL + TTL) for an
9091
+ * artifact — e.g. to extend or rotate a link. Returns `{ url, expiresAt? }`.
9092
+ * For a `public` artifact the durable URL is returned as-is. Pass `ttlSeconds`
9093
+ * to set the new link's lifetime (clamped to the allowed window).
9094
+ */
9095
+ reshare(config: SylphxConfig, id: string, options?: {
9096
+ ttlSeconds?: number;
9097
+ }): Promise<ReshareArtifactResult>;
9098
+ };
9099
+
8976
9100
  /**
8977
9101
  * Render — declarative spec → image (charts via Vega-Lite, diagrams via Graphviz).
8978
9102
  *
@@ -9021,6 +9145,126 @@ declare const RenderClient: {
9021
9145
  render(config: SylphxConfig, request: RenderRequest): Promise<RenderResult>;
9022
9146
  };
9023
9147
 
9148
+ /**
9149
+ * Wallet & Credits — tenant-neutral end-user credits for a project's own users
9150
+ * (daily-free grants, rewarded-ad/top-up/referral credits, two-phase
9151
+ * reserve→consume per action). Org-scoped client over the BaaS plane
9152
+ * `POST /wallet/*` (ADR-2623).
9153
+ *
9154
+ * Wire-shape types are re-exported from `@sylphx/contract` (ADR-084). Type-only
9155
+ * imports keep the Effect runtime out of the published `.d.ts` surface.
9156
+ */
9157
+
9158
+ /**
9159
+ * Wallet client — grant, meter, and charge credits to your end users.
9160
+ *
9161
+ * @example
9162
+ * ```typescript
9163
+ * import { createServerClient, WalletClient } from '@sylphx/sdk'
9164
+ *
9165
+ * const config = createServerClient(process.env.SYLPHX_SECRET_URL!)
9166
+ *
9167
+ * // Grant a daily free allowance:
9168
+ * await WalletClient.grant(config, { appUserId: 'u_123', amount: 5, category: 'free' })
9169
+ *
9170
+ * // Two-phase debit around a generation:
9171
+ * const r = await WalletClient.reserve(config, { appUserId: 'u_123', amount: 1 })
9172
+ * // …do the work…
9173
+ * await WalletClient.consume(config, { reservationId: r.id })
9174
+ *
9175
+ * const balance = await WalletClient.getBalance(config, { appUserId: 'u_123' })
9176
+ * ```
9177
+ */
9178
+ declare const WalletClient: {
9179
+ /** Mint a grant block of credits for an end user. */
9180
+ grant(config: SylphxConfig, request: GrantRequest): Promise<Grant>;
9181
+ /** Get an end user's derived balance (`available = posted − reserved`). */
9182
+ getBalance(config: SylphxConfig, request: {
9183
+ appUserId: string;
9184
+ balance?: string;
9185
+ }): Promise<BalanceSummary>;
9186
+ /** Reserve credits (two-phase hold with a mandatory TTL). */
9187
+ reserve(config: SylphxConfig, request: ReserveRequest): Promise<Reservation>;
9188
+ /** Capture a reservation (≤ reserved; releases the remainder). */
9189
+ consume(config: SylphxConfig, request: ConsumeRequest): Promise<LedgerEntry>;
9190
+ /** Release a reservation (return the held credits). */
9191
+ release(config: SylphxConfig, request: ReleaseRequest): Promise<Reservation>;
9192
+ /** Void/claw back a specific grant block (audited ledger entry). */
9193
+ voidGrant(config: SylphxConfig, request: VoidGrantRequest): Promise<Grant>;
9194
+ };
9195
+
9196
+ /**
9197
+ * Device sessions — interactive, long-lived Android devices an agent drives
9198
+ * (ADR-2560). Boot once, then install → input (tap/swipe/key/text) →
9199
+ * screenshot → launch, polling the session handle until `ready`; delete when
9200
+ * done. A session may also be booted stream-capable (ADR-2566): `streamConnect`
9201
+ * mints a short-lived signed descriptor for a browser to join a live WebRTC view.
9202
+ *
9203
+ * Management-plane client over the device-session control plane: project-scoped
9204
+ * `create`/`list`; top-level `get`/control/`delete` by session id. Mirrors the
9205
+ * routes in `apps/api/src/server/platform/routes/management/device-sessions.ts`;
9206
+ * paths sourced from the `@sylphx/contract` device-session endpoints (ADR-084).
9207
+ *
9208
+ * This is the "implement once" typed surface (Principle 18 dogfooding): the CLI's
9209
+ * `authedFetch` passthrough and the Spiron agent tool consume this client rather
9210
+ * than re-deriving the wire shapes.
9211
+ *
9212
+ * Wire-shape types are type-only imports from `@sylphx/contract` so the Effect
9213
+ * runtime never leaks into the published `.d.ts` (check-published-sdk-effect-leak).
9214
+ */
9215
+
9216
+ /**
9217
+ * Device-session client — drive an interactive Android device, the agent-native
9218
+ * loop (boot → install → input/screenshot → delete).
9219
+ *
9220
+ * @example
9221
+ * ```typescript
9222
+ * import { createServerClient, DeviceSessionClient } from '@sylphx/sdk'
9223
+ *
9224
+ * const config = createServerClient(process.env.SYLPHX_SECRET_URL!)
9225
+ *
9226
+ * // Boot, then poll to ready.
9227
+ * let { session } = await DeviceSessionClient.create(config, projectId, {})
9228
+ * while (session.status === 'booting') {
9229
+ * await new Promise((r) => setTimeout(r, 2000))
9230
+ * ;({ session } = await DeviceSessionClient.get(config, session.id))
9231
+ * }
9232
+ *
9233
+ * // Install an APK, then act + perceive.
9234
+ * await DeviceSessionClient.install(config, session.id, { apkUri: 's3://bucket/app.apk' })
9235
+ * await DeviceSessionClient.input(config, session.id, { type: 'tap', x: 540, y: 1200 })
9236
+ * const shot = await DeviceSessionClient.screenshot(config, session.id) // base64 PNG
9237
+ *
9238
+ * await DeviceSessionClient.delete(config, session.id) // always release the device
9239
+ * ```
9240
+ */
9241
+ declare const DeviceSessionClient: {
9242
+ /** Boot a long-lived interactive device session in a project (poll to `ready`). */
9243
+ create(config: SylphxConfig, projectId: string, body: CreateDeviceSessionInput): Promise<DeviceSessionResult>;
9244
+ /** List interactive device sessions for a project. */
9245
+ list(config: SylphxConfig, projectId: string, query?: ListDeviceSessionsQuery): Promise<ListDeviceSessionsResult>;
9246
+ /** Get one device session by id — poll for `booting` → `ready`. */
9247
+ get(config: SylphxConfig, sessionId: string): Promise<DeviceSessionResult>;
9248
+ /** Install an APK handle (`http(s)://`, `s3://`, or a storage key) onto the device. */
9249
+ install(config: SylphxConfig, sessionId: string, body: InstallDeviceSessionAppInput): Promise<InstallDeviceSessionAppResult>;
9250
+ /** Send an input event (tap / swipe / key / text) — how the agent acts on the device. */
9251
+ input(config: SylphxConfig, sessionId: string, body: DeviceSessionInput): Promise<DeviceSessionInputResult>;
9252
+ /** Launch an installed app (defaults to the most-recently installed package). */
9253
+ launch(config: SylphxConfig, sessionId: string, body?: LaunchDeviceSessionAppInput): Promise<LaunchDeviceSessionAppResult>;
9254
+ /** Capture a PNG screenshot — how the agent "sees" the device (base64 always present). */
9255
+ screenshot(config: SylphxConfig, sessionId: string): Promise<DeviceSessionScreenshotResult>;
9256
+ /** Read recent logcat output from the device session. */
9257
+ logcat(config: SylphxConfig, sessionId: string, query?: DeviceSessionLogcatQuery): Promise<DeviceSessionLogcatResult>;
9258
+ /**
9259
+ * Mint a short-lived signed descriptor for a browser to join the session's live
9260
+ * WebRTC view (ADR-2566). Requires the session to be booted stream-capable
9261
+ * (`create` with `stream: true`).
9262
+ */
9263
+ streamConnect(config: SylphxConfig, sessionId: string, body?: DeviceSessionStreamConnectInput): Promise<DeviceSessionStreamConnectResult>;
9264
+ /** Terminate a device session and release its device. */
9265
+ delete(config: SylphxConfig, sessionId: string): Promise<DeleteDeviceSessionResult>;
9266
+ };
9267
+
9024
9268
  /**
9025
9269
  * Runs Client (ADR-040, formerly Workers)
9026
9270
  *
@@ -9053,33 +9297,41 @@ declare const RenderClient: {
9053
9297
  * ```
9054
9298
  *
9055
9299
  * ### Parallel workers (walk-forward training)
9300
+ *
9301
+ * One logical job that fans out to N indexed shards, owned end-to-end by the
9302
+ * platform (ADR distributed-batch-compute). No client-side `Promise.all`
9303
+ * orchestration, no per-app concurrency budget, no hand-rolled partial-failure
9304
+ * merge — the platform gang-admits all shards or none and rolls the per-shard
9305
+ * status up into one aggregate. Each shard self-selects its partition from the
9306
+ * injected `SYLPHX_SHARD_INDEX` (0..N-1) + `SYLPHX_SHARD_COUNT` env vars.
9307
+ *
9056
9308
  * ```typescript
9057
- * const workers = await Promise.all(
9058
- * folds.map((fold) =>
9059
- * RunsClient.run(config, {
9060
- * image: 'ghcr.io/acme/trainer:sha-abc123',
9061
- * command: ['python', 'train.py', '--fold', String(fold.id)],
9062
- * env: { FOLD_ID: String(fold.id), DATABASE_URL: process.env.DATABASE_URL! },
9063
- * machine: 'large',
9064
- * volumeMounts: [{ volumeId: sharedCacheVolumeId, mountPath: '/cache' }],
9065
- * timeoutSeconds: 7200,
9066
- * }),
9067
- * ),
9068
- * )
9309
+ * const run = await RunsClient.runDistributed(config, {
9310
+ * image: 'ghcr.io/acme/trainer:sha-abc123',
9311
+ * command: ['python', 'train.py'], // reads SYLPHX_SHARD_INDEX to pick its fold
9312
+ * parallelism: folds.length,
9313
+ * machine: 'large',
9314
+ * volumeMounts: [{ volumeId: sharedCacheVolumeId, mountPath: '/cache' }],
9315
+ * timeoutSeconds: 7200,
9316
+ * })
9069
9317
  *
9070
- * const results = await Promise.all(workers.map((w) => w.wait()))
9071
- * const failures = results.filter((r) => r.exitCode !== 0)
9318
+ * const status = await run.wait() // resolves on aggregate terminal
9319
+ * const failures = (await run.shards()).filter((s) => s.status === 'failed')
9072
9320
  * ```
9073
9321
  *
9074
9322
  * ## Architecture
9075
9323
  *
9076
9324
  * - Workers are isolated one-shot runs with no automatic restarts
9325
+ * - A Distributed Run is one logical job fanned out to N indexed shards;
9326
+ * `parallelism` defaults to 1, so a single-shard `run()` is the N=1 case
9327
+ * (zero breaking change)
9077
9328
  * - Images come from connected registries and are scanned before execution
9078
9329
  * - Volumes: org-level volume resources mounted into the run
9079
9330
  * - single-writer for one active writer at a time
9080
- * - shared for concurrent runs and shared feature caches
9331
+ * - shared for concurrent runs and shared feature caches (one shared
9332
+ * volume mounted into every shard is the result-aggregation convention)
9081
9333
  * - Auth: sk_* secret key (server-side only)
9082
- * - Quota: 20 concurrent workers per org
9334
+ * - Quota: per-job parallelism budget + an org-level aggregate shard budget
9083
9335
  *
9084
9336
  * @module
9085
9337
  */
@@ -9096,13 +9348,26 @@ interface RunVolumeMount {
9096
9348
  /** Mount as read-only (default: false) */
9097
9349
  readOnly?: boolean;
9098
9350
  }
9099
- interface CreateRunOptions {
9351
+ type RunImageSource = {
9100
9352
  /**
9101
9353
  * OCI image to run from a connected registry.
9102
9354
  *
9103
9355
  * @example 'ghcr.io/acme/my-trainer:sha-abc123'
9104
9356
  */
9105
9357
  image: string;
9358
+ imageFromService?: never;
9359
+ } | {
9360
+ /**
9361
+ * Name of a service in the same project environment. The platform resolves
9362
+ * the service's current deployment artifact to an immutable image digest
9363
+ * before creating the Run.
9364
+ *
9365
+ * @example 'trainer'
9366
+ */
9367
+ imageFromService: string;
9368
+ image?: never;
9369
+ };
9370
+ interface CreateRunBaseOptions {
9106
9371
  /**
9107
9372
  * Command + args to execute.
9108
9373
  *
@@ -9131,6 +9396,7 @@ interface CreateRunOptions {
9131
9396
  */
9132
9397
  volumeMounts?: RunVolumeMount[];
9133
9398
  }
9399
+ type CreateRunOptions = CreateRunBaseOptions & RunImageSource;
9134
9400
  interface Run {
9135
9401
  /** Worker run ID (e.g. 'worker_Vh3kJ9mNpQ2wXsL1') */
9136
9402
  id: string;
@@ -9200,6 +9466,38 @@ interface ListRunsResult {
9200
9466
  /** True if there are more results (limit was hit) */
9201
9467
  has_more: boolean;
9202
9468
  }
9469
+ /** Aggregate lifecycle status of a Distributed Run (SSOT: `@sylphx/contract`). */
9470
+ type DistributedRunStatus = DistributedRunAggregateStatus;
9471
+
9472
+ /**
9473
+ * Options for {@link RunsClient.runDistributed}. A strict superset of
9474
+ * {@link CreateRunOptions} plus the distribution knobs. `parallelism` is the
9475
+ * shard count (1..256); each shard self-selects its partition from the
9476
+ * injected `SYLPHX_SHARD_INDEX` / `SYLPHX_SHARD_COUNT` env vars.
9477
+ */
9478
+ type CreateDistributedRunOptions = CreateRunBaseOptions & RunImageSource & {
9479
+ /**
9480
+ * Number of indexed shards to fan out to (1..256). `1` is equivalent to a
9481
+ * single-shard {@link RunsClient.run}; `> 1` distributes the job.
9482
+ */
9483
+ parallelism: number;
9484
+ /**
9485
+ * Shard completion mode. `Indexed` (default when sharded) gives each shard a
9486
+ * stable `SYLPHX_SHARD_INDEX`; `NonIndexed` is the interchangeable-worker mode.
9487
+ */
9488
+ completionMode?: DurableWorkRunCompletionMode;
9489
+ /**
9490
+ * Gang scheduling — all shards are admitted together or none (default `true`
9491
+ * when sharded), so a shard never assumes-then-waits for absent peers.
9492
+ */
9493
+ gangScheduling?: boolean;
9494
+ /**
9495
+ * Per-index retry budget for opportunistic sharded runs. Only valid together
9496
+ * with `parallelism > 1` and `gangScheduling: false`; defaults to the platform
9497
+ * contract's opportunistic retry budget when omitted.
9498
+ */
9499
+ backoffLimitPerIndex?: number;
9500
+ };
9203
9501
  /**
9204
9502
  * Handle to a running (or completed) worker.
9205
9503
  * Use `.wait()` to poll until completion, `.logs()` to stream logs, `.cancel()` to abort.
@@ -9255,6 +9553,55 @@ declare class RunHandle {
9255
9553
  */
9256
9554
  cancel(): Promise<void>;
9257
9555
  }
9556
+ /**
9557
+ * Handle to a distributed (multi-shard) run — one logical job fanned out to N
9558
+ * indexed shards (ADR distributed-batch-compute).
9559
+ *
9560
+ * Use `.status()` / `.shards()` for the aggregate + per-shard drill-down,
9561
+ * `.wait()` to poll until the aggregate reaches a terminal state
9562
+ * (succeeded / failed / partial / cancelled / timed_out), `.logs({ shard })` to
9563
+ * stream one shard's logs, and `.cancel()` to cancel the whole set.
9564
+ */
9565
+ declare class DistributedRunHandle {
9566
+ readonly id: string;
9567
+ /** Submitted shard count — used to request + render the N-shard aggregate. */
9568
+ readonly parallelism: number;
9569
+ private readonly config;
9570
+ private readonly completionMode;
9571
+ constructor(id: string, config: SylphxConfig, parallelism: number, completionMode: DurableWorkRunCompletionMode);
9572
+ /**
9573
+ * Get the current aggregate status + per-shard drill-down for this run.
9574
+ *
9575
+ * Hits `GET /runs/:id?view=distributed` — the additive superset of the
9576
+ * single-shard read model — passing the submitted `parallelism` so the platform
9577
+ * lays the observed status out across the N indexed shards.
9578
+ */
9579
+ status(): Promise<DistributedRun>;
9580
+ /** Get the per-shard status list (index, status, exitCode, timings). */
9581
+ shards(): Promise<DistributedRunShard[]>;
9582
+ /**
9583
+ * Poll until the aggregate reaches a terminal state (succeeded, failed,
9584
+ * partial, cancelled, timed_out) and return the final {@link DistributedRun}.
9585
+ *
9586
+ * @param options.pollIntervalMs - How often to poll in ms (default: 3000)
9587
+ * @param options.timeoutMs - Max time to wait before throwing (default: 2h)
9588
+ * @throws Error if the wait timeout is exceeded
9589
+ */
9590
+ wait(options?: {
9591
+ pollIntervalMs?: number;
9592
+ timeoutMs?: number;
9593
+ }): Promise<DistributedRun>;
9594
+ /**
9595
+ * Fetch captured logs for one shard (default: shard 0).
9596
+ *
9597
+ * @param options.shard - Shard index (0..parallelism-1). Defaults to 0.
9598
+ */
9599
+ logs(options?: {
9600
+ shard?: number;
9601
+ }): Promise<RunLogsResult>;
9602
+ /** Cancel the whole run (all shards). */
9603
+ cancel(): Promise<void>;
9604
+ }
9258
9605
  /**
9259
9606
  * Static client for the Workers BaaS service.
9260
9607
  *
@@ -9289,6 +9636,49 @@ declare const RunsClient: {
9289
9636
  * ```
9290
9637
  */
9291
9638
  run(config: SylphxConfig, options: CreateRunOptions): Promise<RunHandle>;
9639
+ /**
9640
+ * Spawn a Distributed Run — one logical job fanned out to N indexed shards —
9641
+ * and return a {@link DistributedRunHandle} (ADR distributed-batch-compute).
9642
+ *
9643
+ * The platform owns sharding, gang start (all shards admitted together or
9644
+ * none), the per-org concurrency budget, and the aggregate/per-shard rollup.
9645
+ * Each shard self-selects its partition from the injected
9646
+ * `SYLPHX_SHARD_INDEX` (0..parallelism-1) + `SYLPHX_SHARD_COUNT` env vars — no
9647
+ * coordinator code for the embarrassingly-parallel case.
9648
+ *
9649
+ * `parallelism: 1` is equivalent to {@link RunsClient.run} (the single-shard
9650
+ * N=1 case); the single-shard `run()` ergonomic path is unchanged.
9651
+ *
9652
+ * @example
9653
+ * ```typescript
9654
+ * const run = await RunsClient.runDistributed(config, {
9655
+ * image: 'ghcr.io/acme/trainer:sha-abc123',
9656
+ * command: ['python', 'train.py'],
9657
+ * parallelism: 16,
9658
+ * machine: 'large',
9659
+ * })
9660
+ * const result = await run.wait()
9661
+ * if (result.status !== 'succeeded') {
9662
+ * const failed = result.shards.filter((s) => s.status === 'failed')
9663
+ * throw new Error(`${failed.length}/${run.parallelism} shards failed`)
9664
+ * }
9665
+ * ```
9666
+ */
9667
+ runDistributed(config: SylphxConfig, options: CreateDistributedRunOptions): Promise<DistributedRunHandle>;
9668
+ /**
9669
+ * Get a {@link DistributedRunHandle} for an existing distributed run by ID.
9670
+ *
9671
+ * Pass the `parallelism` the run was created with so the handle requests +
9672
+ * renders the correct N-shard aggregate. Useful for resuming monitoring (e.g.
9673
+ * a CLI `runs get <id> --parallelism N`) across processes.
9674
+ *
9675
+ * @example
9676
+ * ```typescript
9677
+ * const handle = RunsClient.runDistributedFromId(config, storedRunId, 16)
9678
+ * const result = await handle.wait()
9679
+ * ```
9680
+ */
9681
+ runDistributedFromId(config: SylphxConfig, runId: string, parallelism: number, completionMode?: DurableWorkRunCompletionMode): DistributedRunHandle;
9292
9682
  /**
9293
9683
  * Get a RunHandle for an existing run by ID.
9294
9684
  *
@@ -9351,6 +9741,49 @@ declare const WorkersClient: {
9351
9741
  * ```
9352
9742
  */
9353
9743
  run(config: SylphxConfig, options: CreateRunOptions): Promise<RunHandle>;
9744
+ /**
9745
+ * Spawn a Distributed Run — one logical job fanned out to N indexed shards —
9746
+ * and return a {@link DistributedRunHandle} (ADR distributed-batch-compute).
9747
+ *
9748
+ * The platform owns sharding, gang start (all shards admitted together or
9749
+ * none), the per-org concurrency budget, and the aggregate/per-shard rollup.
9750
+ * Each shard self-selects its partition from the injected
9751
+ * `SYLPHX_SHARD_INDEX` (0..parallelism-1) + `SYLPHX_SHARD_COUNT` env vars — no
9752
+ * coordinator code for the embarrassingly-parallel case.
9753
+ *
9754
+ * `parallelism: 1` is equivalent to {@link RunsClient.run} (the single-shard
9755
+ * N=1 case); the single-shard `run()` ergonomic path is unchanged.
9756
+ *
9757
+ * @example
9758
+ * ```typescript
9759
+ * const run = await RunsClient.runDistributed(config, {
9760
+ * image: 'ghcr.io/acme/trainer:sha-abc123',
9761
+ * command: ['python', 'train.py'],
9762
+ * parallelism: 16,
9763
+ * machine: 'large',
9764
+ * })
9765
+ * const result = await run.wait()
9766
+ * if (result.status !== 'succeeded') {
9767
+ * const failed = result.shards.filter((s) => s.status === 'failed')
9768
+ * throw new Error(`${failed.length}/${run.parallelism} shards failed`)
9769
+ * }
9770
+ * ```
9771
+ */
9772
+ runDistributed(config: SylphxConfig, options: CreateDistributedRunOptions): Promise<DistributedRunHandle>;
9773
+ /**
9774
+ * Get a {@link DistributedRunHandle} for an existing distributed run by ID.
9775
+ *
9776
+ * Pass the `parallelism` the run was created with so the handle requests +
9777
+ * renders the correct N-shard aggregate. Useful for resuming monitoring (e.g.
9778
+ * a CLI `runs get <id> --parallelism N`) across processes.
9779
+ *
9780
+ * @example
9781
+ * ```typescript
9782
+ * const handle = RunsClient.runDistributedFromId(config, storedRunId, 16)
9783
+ * const result = await handle.wait()
9784
+ * ```
9785
+ */
9786
+ runDistributedFromId(config: SylphxConfig, runId: string, parallelism: number, completionMode?: DurableWorkRunCompletionMode): DistributedRunHandle;
9354
9787
  /**
9355
9788
  * Get a RunHandle for an existing run by ID.
9356
9789
  *
@@ -10485,4 +10918,4 @@ declare const functions: {
10485
10918
  };
10486
10919
  };
10487
10920
 
10488
- export { ACHIEVEMENT_TIER_CONFIG, type AIListModelsOptions, type AIListModelsResponse, type AIMessage, type AIMessageRole, type AIModel, type AIModelInfo, type AIModelsResponse, type AIProvider, type AIRateLimitInfo, type AIRateLimitResponse, type AIRequestType, type AIStreamChunk, type AITool, type AIToolCall, type AIUsageResponse, type AIUsageStats, type AccessTokenPayload, type AchievementCategory, type AchievementCriteria, type AchievementCriterion, type AchievementDefinition, type AchievementTier, type AchievementType, type AchievementUnlockEvent, type AdminUser, type AuditQueryFilter, type AuditQueryResult, AuthenticationError, AuthorizationError, BILLING_ALLOWED_ROLES, BUILD_MINUTES_INCLUDED, BUILD_MINUTE_PRICES, BUILD_SIZE_MULTIPLIERS, BYTES_PER_GB, type BackupCodesResult, type BatchEvent, type BatchIndexInput, type BatchIndexResult, type BillingAllowedRole, type Breadcrumb, type BrowserCreateOptions, type BrowserSessionInfo, type BrowserSessionStatus, type BuildConnectionUrlInput, type BuildLog, type BuildLogHistoryResponse, type BuildMachineTier, CI_BUILD_MINUTE_PRICE_MICRODOLLARS, CI_FREE_MINUTES_PER_MONTH, CI_MACOS_MULTIPLIER, CI_MACOS_SIZE_MULTIPLIERS, CI_SIZE_MULTIPLIERS, COMPUTE_PRICE_PER_HOUR_MICRODOLLARS, COMPUTE_RAM_RATE_MICRODOLLARS, COMPUTE_VCPU_ACTIVE_RATE_MICRODOLLARS, COMPUTE_VCPU_IDLE_RATE_MICRODOLLARS, CONSOLE_APP_SLUG, CREDENTIAL_REGEX, CREDIT_EXPIRY_MONTHS, type CaptureExceptionRequest, type CaptureMessageRequest, type ChallengeMethod, type ChallengeType, type ChallengeVerifyInput, type ChallengeVerifyResult, type ChatCompletionInput, type ChatCompletionResponse, type ChatInput, type ChatMessage, type ChatResult, type ChatStreamChunk, type CircuitBreakerConfig, CircuitBreakerOpenError, type CircuitState, type CommandResult, type ComputerDesktopStatus, type ComputerInputAction, type ComputerScreenshotFormat, type ComputerSessionInfo, type ComputerSessionStatus, type ComputerUiElement, type ComputerUiSnapshot, type ConnectionCredentialType, type ConnectionEnv, type ConsentCategory, type ConsentHistoryEntry, type ConsentHistoryResult, type ConsentPurposeDefaults, type ConsentType, type ContentPart, type CopyFileOptions, type CreateOrgInput, type CreatePermissionInput, type CreatePromoInput, type CreateRoleInput, type CreateRunOptions, type CreateTriggerOptions, type CriteriaOperator, type CronInput, type CronSchedule, type CronSource, DEFAULT_MAX_INSTANCES, DEFAULT_POINTS_REWARD, DISCOUNT_DURATION_MONTHS, DISCOUNT_PERCENT, type DatabaseConnectionInfo, type DatabaseStatus, type DatabaseStatusInfo, type DebugCategory, type DeduplicationConfig, type DeleteAccountResult, type DeleteDocumentInput, type DeployHistoryResponse, type DeployInfo, type DeployStatus, type DeviceApproveInput, type DeviceApproveResult, type DeviceDenyInput, type DeviceDenyResult, type DeviceGrant, type DeviceInitInput, type DevicePollResult, type DynamicRestClient, ERROR_CODE_STATUS, type EmailChangeInput, type EmailConfirmInput, type EmbedInput, type EmbedResult, type EmbeddingInput, type EmbeddingResponse, type LeaderboardEntry as EngagementLeaderboardEntry, type LeaderboardResult as EngagementLeaderboardResult, type EnvVar, type ErrorCode, type ErrorResponse, type EventSource, type ExceptionFrame, type ExceptionValue, type ExecEvent, type ExecOptions, type ExecResult, type ErrorDetails$1 as ExtractedErrorDetails, FREE_COMPUTE_HOURS, FREE_STORAGE_GB, type FacetsResponse, type FileEvent, type FlagContext, type FlagResult, type GetConsentHistoryInput, type GetConsentsInput, type GetFacetsInput, type GetSecretInput, type GetSecretResult, type GetSecretsInput, type GetSecretsResult, HOURS_PER_MONTH, type HttpTarget, INSTANCE_TYPES, INSTANCE_TYPE_ALIASES, INSTANCE_TYPE_ORDER, INVOICE_DUE_DAYS, type IdentifyInput, type ImpersonationActive, type ImpersonationEndResult, type ImpersonationInfo, type ImpersonationStartResult, type IndexDocumentInput, type IndexDocumentResult, type IngestLogsResult, type InstanceTypeDefinition, type InstanceTypeId, InvalidConnectionUrlError, type InviteMemberInput, type InviteUserRequest, type InviteUserResponse, KV_FREE_STORAGE_GB, type KvExpireRequest, type KvHgetRequest, type KvHgetallRequest, type KvHsetRequest, type KvIncrRequest, type KvLpushRequest, type KvLrangeRequest, type KvMetric, type KvMgetRequest, type KvMsetRequest, type KvRateLimitRequest, type KvRateLimitResult, type KvScanOptions, type KvScanResult, type KvSetOptions, type KvSetRequest, type KvZMember, type KvZaddRequest, type KvZrangeRequest, LEGACY_INSTANCE_TYPE_ORDER, type LeaderboardAggregation, type LeaderboardDefinition, type LeaderboardEntry$1 as LeaderboardEntry, type LeaderboardOptions, type LeaderboardQueryOptions, type LeaderboardResetPeriod, type LeaderboardResult$1 as LeaderboardResult, type LeaderboardSortDirection, type LinkAnonymousConsentsInput, type ListFilesOptions, type ListPromosOptions, type ListPromosResult, type ListRedemptionsOptions, type ListRedemptionsResult, type ListRunsOptions, type ListRunsResult, type ListScheduledEmailsOptions, type ListSecretKeysInput, type ListTriggersResult, type ListUsersOptions, type ListUsersResult, type LogEntry, type LogLevel, type LoginHistoryEntry, type LoginRequest, type LoginResponse, MAX_PASSWORD_LENGTH, MAX_PAYMENT_ATTEMPTS, MICRODOLLARS_PER_CENT, MIN_PASSWORD_LENGTH, type MeResponse, type MemberPermissionsResult, type MintAccessTokenClaims, type MintAccessTokenResult, type MonitoringResponse, type MonitoringSeverity, type NativeStepContext, type NativeTaskDefinition, type TaskRunStatus as NativeTaskRunStatus, NetworkError, NotFoundError, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthCodeExchangeInput, type OAuthProvider, type OAuthProvidersResult, type OidcDiscoveryDocument, type OidcUserInfoResponse, type OrgRole, type OrgScopedTokenResponse, type OrgTokenPayload, type OrganizationInvitation, type OrganizationMember, type OrganizationMembership, type OrganizationsListResult, PASSWORD_REQUIREMENTS, PLATFORM_PLANS, PLATFORM_PLAN_ORDER, PLATFORM_PLAN_ORDER_ALL, PREMIUM_TRIAL_DAYS, type PageInput, type PaginatedResponse, type PaginationInput, type ParsedConnectionUrl, type ParsedUserAgent, type PasskeyRegistrationInput, type PasskeyRegistrationOptions, type PasskeySummary, type PasskeysList, type PasswordSetInput, type Permission, type PkceMethod, type Plan, type PlatformAccessTokenClaims, type PlatformFunctionsDownloadBundleResult, type PlatformLogoutInput, type PlatformPasswordChangeInput, type PlatformPasswordChangeResult, type PlatformPasswordSetInput, type PlatformPasswordSetResult, type PlatformPasswordStatusResult, type PlatformPlanDefinition, type PlatformPlanFeatures, type PlatformPlanId, type PlatformPlanLimits, type PlatformRealtimeChannel, type PlatformRealtimeCreateChannelResult, type PlatformRealtimeDeleteChannelResult, type PlatformRealtimeListChannelsResult, type PlatformRealtimeStatusResult, type PlatformRefreshInput, type PlatformRefreshResult, type PlatformSessionRenameInput, type PlatformSessionRenameResult, type PlatformSessionRevokeAllResult, type PlatformSessionRevokeInput, type PlatformSessionRevokeOtherResult, type PlatformSessionRevokeResult, type PlatformSessionsListResult, type PlatformUserDeleteInput, type PlatformUserDeleteResult, type PlatformUserExportResult, type PlatformUserRecord, type PlatformUserResolution, type ProcessEvent, type ProcessInfo, type ProcessStartOptions, type ProcessSummary, type ProjectMetadata, type PromoCode, type PromoRedemption, type PromoStatus, type PromoType, type PromoValidationPreview, type PublishEventResult, type PushCampaign, type PushCampaignStats, type PushCampaignVariant, type PushNotification, type PushNotificationPayload, type PushSegment, type PushSegmentFilter, type PushServiceWorkerConfig, type PushSubscription, type QueryLogsOptions, type QueryLogsResult, RETRYABLE_CODES, RateLimitError, type RateLimitStatusFilter, type RateLimitStatusResult, type RateLimitStrategiesFilter, type RateLimitStrategiesResult, type RateLimitStrategyDeleteInput, type RateLimitStrategyDeleteResult, type RateLimitStrategyUpsertInput, type RateLimitStrategyUpsertResult, type RealtimeEmitRequest, type RealtimeEmitResponse, type RealtimeHistoryRequest, type RealtimeHistoryResponse, type RealtimeMetric, type RecordActivityInput, type RecordActivityResult, type RedeemPromoInput, type RedeemPromoResult, type RedeemReferralInput, type RedeemResult, type ReferralCode, type ReferralStats, type RegisterInput, type RegisterRequest, type RegisterResponse, RenderClient, type ResendEmailVerificationRequest, type ResendEmailVerificationResponse, type RestClient, type RestClientConfig, type RestDynamicConfig, type RetryConfig, type RevokeTokenOptions, type Role, type RollbackDeployRequest, type Run, RunHandle, type RunLogsResult, type RunMachineSize, type RunResult, type RunStatus, type RunTarget, type RunVolumeMount, type CreateRunOptions as RunWorkerOptions, RunsClient, SERVICE_METRICS, STORAGE_PRICE_PER_GB_MONTH_MICRODOLLARS, SandboxBrowser, SandboxCapabilities, SandboxClient, SandboxComputer, type SandboxFile, SandboxFiles, type SandboxMachineSize, type SandboxOptions, SandboxProcesses, type SandboxRecord, SandboxWatch, type ScheduleEmailOptions, type ScheduledEmail, type ScheduledEmailStats, type ScheduledEmailsResult, type SearchInput, type SearchResponse, type SearchResultItem, type SearchStatsResult, type SearchType, type SecretKeyInfo, type SecurityAlert, type SecurityAlertsList, type SecurityScoreResult, type SecuritySettings, type SendEmailOptions, type SendResult, type SendTemplatedEmailOptions, type SendToUserOptions, type ServeOptions, type ServeResult, type ServiceCredentials, type ServiceMetrics, type ServiceTokenResponse, type SessionResult, type SetConsentsInput, type SetEnvVarRequest, type SignedUrlOptions, StepCompleteSignal, StepSleepSignal, type StoredLogEntry, type StreakDefinition, type StreakFrequency, type StreakState, type StreamMessage, type SubmitScoreInput, type SubmitScoreResult, type Subscription, type SuccessResponse, type SylphxClientInput, type SylphxConfig, type SylphxConfigInput, SylphxError, type SylphxErrorCode, type SylphxErrorOptions, TRANSFER_PRICE_PER_GB_MICRODOLLARS, type TaskConfig, type TaskHandle, type TaskInput, type TaskMachineSize, type TaskResult, type TaskRunContext, type TaskRunDetail, type TaskRunStep, type TaskStatus, type TaskTarget, type TextCompletionInput, type TextCompletionResponse, TimeoutError, type TokenIntrospectionResult, type TokenResponse, type Tool, type ToolCall, type TrackClickInput, type TrackInput, type Trigger, type TriggerDeployRequest, type TriggerOptions, type TriggerRunMachineSize, type TriggerSource, type TriggerSourceType, type TriggerStatus, type TriggerTarget, type TriggerTargetType, TriggersClient, type TwoFactorEnableResult, type TwoFactorSetupResult, type TwoFactorVerifyRequest, type UpdateOrgInput, type UpdatePromoInput, type UpdateRoleInput, type UpdateTriggerOptions, type UploadCreateOptions, type UploadProgressEvent, type UpsertDocumentInput, type UpsertDocumentResult, type User, type UserAchievement, type UserConsent, type UserDataExport, type UserFullProfile, type UserOrganization, type UserProfile, type UserSecuritySettings, type UserSession, type UserSessionsList, type UserUpdateProfileInput, type ValidatePromoInput, type ValidatePromoResult, ValidationError, type VisionInput, type WatchEntry, type WatchOptions, type WebhookConfig, type WebhookConfigUpdate, type WebhookDeliveriesResult, type WebhookDelivery, type WebhookStats, RunHandle as WorkerHandle, type RunLogsResult as WorkerLogsResult, type RunResult as WorkerResult, type Run as WorkerRun, type RunStatus as WorkerStatus, type RunVolumeMount as WorkerVolumeMount, WorkersClient, type WorkspaceRecord, acceptAllConsents, acceptOrganizationInvitation, assignMemberRole, audit, authorizeOAuth, batchIndex, buildConnectionUrl, calculatePercentage, canDeleteOrganization, canManageMembers, canManageSettings, cancelScheduledEmail, cancelTask, captureException, captureExceptionRaw, captureMessage, centsToDollars, chat, chatStream, checkFlag, complete, confirmEmailChange, cookies, createCheckout, createClient, createConfig, createCron, createDynamicRestClient, createOrganization, createPermission, createPortalSession, createPromo, createRestClient, createRole, createServerClient, createServiceWorkerScript, createStepContext, createTasksHandler, createTracker, createWorkspace, debugError, debugLog, debugTimer, debugWarn, declineOptionalConsents, deleteCron, deleteDocument, deleteEnvVar, deleteOrganization, deletePasskey, deletePermission, deletePromo, deleteRole, deleteUser, deleteUserAccount, deleteWorkspace, device, disableDebug, disableTwoFactor, disconnectOAuthProvider, dpop, embed, enableDebug, escapeCsvField, escapeHtml, exchangeOAuthCode, exponentialBackoff, exportUserData, extendedSignUp, getErrorDetails$1 as extractErrorDetails, getErrorMessage$1 as extractErrorMessage, forgotPassword, forkWorkspace, formatBytes, formatCents, formatCurrency, formatDate, formatDateTime, formatDuration, formatMicrodollars, formatMonthYear, formatNumber, formatPercent, formatRelativeTime, formatRelativeTimeShort, formatTime, functions, generateAnonymousId, generatePkce, generateReferralCode, generateSlug, getAchievement, getAchievementPoints, getAchievements, getActivePlans, getAllFlags, getAllSecrets, getAllStreaks, getAvailableInstanceTypes, getBackupCodes, getBaseUrl, getBillingBalance, getBillingStatusVariant, getBillingUsage, getBuildLogHistory, getCircuitBreakerState, getConsentHistory, getConsentTypes, getDatabaseConnectionString, getDatabaseStatus, getDebugMode, getDefaultInstanceType, getDeployHistory, getDeployStatus, getEnvPrefix, getErrorCode, getErrorDetails, getErrorMessage, getFacets, getFlagPayload, getFlags, getInvoiceStatusVariant, getLeaderboard, getMemberPermissions, getMyReferralCode, getOidcDiscoveryDocument, getOrgScopedToken, getOrganization, getOrganizationInvitations, getOrganizationMembers, getOrganizations, getPlanMonthlyPrice, getPlans, getProjectMetadata, getPromo, getPushPreferences, getRealtimeHistory, getReferralLeaderboard, getReferralStats, getRestErrorMessage, getRole, getSafeErrorMessage, getScheduledEmail, getScheduledEmailStats, getSearchStats, getSecret, getSecrets, getSecurityScore, getSession, getStreak, getSubscription, getTask, getTaskRun, getUser, getUserByEmail, getUserConsents, getUserLeaderboardRank, getUserProfile, getUserSecurity, getVariant, getWebhookConfig, getWebhookDeliveries, getWebhookDelivery, getWebhookStats, getWorkspace, getWorkspaceCapacity, hasAllPermissions, hasAnyPermission, hasBillingAccess, hasConsent, hasError, hasPermission, hasRole, hasSecret, identify, impersonation, incrementAchievementProgress, indexDocument, ingestLogs, initPushServiceWorker, installGlobalDebugHelpers, introspectToken, inviteOrganizationMember, inviteUser, isChallengeRequired, isEmailConfigured, isEnabled, isPlanDeprecated, isRetryableError, isSylphxError, isValidInstanceType, kvDelete, kvExists, kvExpire, kvGet, kvGetJSON, kvHget, kvHgetall, kvHset, kvIncr, kvLpush, kvLrange, kvMget, kvMset, kvRateLimit, kvScan, kvSet, kvSetJSON, kvZadd, kvZrange, leaveOrganization, linkAnonymousConsents, listEnvVars, listOAuthProviders, listOrganizations, listPasskeys, listPermissions, listPromoRedemptions, listPromos, listRoles, listScheduledEmails, listSecretKeys, listSecurityAlerts, listTasks, listUserSessions, listUsers, listWorkspaces, markAllSecurityAlertsRead, markSecurityAlertRead, microsToDollars, oauth, page, parseConnectionUrl, parseOAuthCallback, parseUserAgent, password, pauseCron, pinWorkspace, platformAuth, campaigns as pushCampaigns, segments as pushSegments, queryLogs, rateLimits, realtime, realtimeEmit, reclaimWorkspace, recordStreakActivity, recoverStreak, redeemPromo, redeemReferralCode, refreshToken, regenerateBackupCodes, regenerateReferralCode, registerPush, registerPushServiceWorker, removeOrganizationMember, renamePasskey, renameUserSession, replayWebhookDelivery, requestEmailChange, rescheduleEmail, resendVerificationEmail, resetCircuitBreaker, resetDebugModeCache, resetPassword, resetPlatformCookieCache, resetPlatformJwksCache, resolveCanonicalInstanceType, resolveMaxInstances, resolveResources, resumeCron, revokeAllTokens, revokeOrganizationInvitation, revokeToken, revokeUserSession, rollbackDeploy, safeJsonParse, scheduleEmail, scheduleTask, search, sendEmail, sendEmailToUser, sendPush, sendTemplatedEmail, serve, sessions, setConsents, setEnvVar, setPassword, setupTwoFactor, signIn, signInAsService, signOut, signUp, startPasskeyRegistration, storage, streamToString, submitScore, suspendUser, switchOrg, task, taskStub, toSylphxError, track, trackBatch, trackClick, triggerDeploy, unlockAchievement, unregisterPush, updateOrganization, updateOrganizationMemberRole, updatePromo, updatePushPreferences, updateRole, updateUser, updateUserMetadata, updateUserProfile, updateWebhookConfig, upsertDocument, user, userInfo, validateInstanceTypeForPlan, validatePromo, verifyAccessToken, verifyChallenge, verifyEmail, verifyPasskeyRegistration, verifySignature as verifyTaskSignature, verifyTwoFactor, verifyTwoFactorEnable, withToken };
10921
+ export { ACHIEVEMENT_TIER_CONFIG, type AIListModelsOptions, type AIListModelsResponse, type AIMessage, type AIMessageRole, type AIModel, type AIModelInfo, type AIModelsResponse, type AIProvider, type AIRateLimitInfo, type AIRateLimitResponse, type AIRequestType, type AIStreamChunk, type AITool, type AIToolCall, type AIUsageResponse, type AIUsageStats, type AccessTokenPayload, type AchievementCategory, type AchievementCriteria, type AchievementCriterion, type AchievementDefinition, type AchievementTier, type AchievementType, type AchievementUnlockEvent, type AdminUser, ArtifactClient, type AuditQueryFilter, type AuditQueryResult, AuthenticationError, AuthorizationError, BILLING_ALLOWED_ROLES, BUILD_MINUTES_INCLUDED, BUILD_MINUTE_PRICES, BUILD_SIZE_MULTIPLIERS, BYTES_PER_GB, type BackupCodesResult, type BatchEvent, type BatchIndexInput, type BatchIndexResult, type BillingAllowedRole, type Breadcrumb, type BrowserCreateOptions, type BrowserSessionInfo, type BrowserSessionStatus, type BuildConnectionUrlInput, type BuildLog, type BuildLogHistoryResponse, type BuildMachineTier, CI_BUILD_MINUTE_PRICE_MICRODOLLARS, CI_FREE_MINUTES_PER_MONTH, CI_MACOS_MULTIPLIER, CI_MACOS_SIZE_MULTIPLIERS, CI_SIZE_MULTIPLIERS, COMPUTE_PRICE_PER_HOUR_MICRODOLLARS, COMPUTE_RAM_RATE_MICRODOLLARS, COMPUTE_VCPU_ACTIVE_RATE_MICRODOLLARS, COMPUTE_VCPU_IDLE_RATE_MICRODOLLARS, CONSOLE_APP_SLUG, CREDENTIAL_REGEX, CREDIT_EXPIRY_MONTHS, type CaptureExceptionRequest, type CaptureMessageRequest, type ChallengeMethod, type ChallengeType, type ChallengeVerifyInput, type ChallengeVerifyResult, type ChatCompletionInput, type ChatCompletionResponse, type ChatInput, type ChatMessage, type ChatResult, type ChatStreamChunk, type CircuitBreakerConfig, CircuitBreakerOpenError, type CircuitState, type CommandResult, type ComputerDesktopStatus, type ComputerInputAction, type ComputerScreenshotFormat, type ComputerSessionInfo, type ComputerSessionStatus, type ComputerUiElement, type ComputerUiSnapshot, type ConnectionCredentialType, type ConnectionEnv, type ConsentCategory, type ConsentHistoryEntry, type ConsentHistoryResult, type ConsentPurposeDefaults, type ConsentType, type ContentPart, type CopyFileOptions, type CreateDistributedRunOptions, type CreateOrgInput, type CreatePermissionInput, type CreatePromoInput, type CreateRoleInput, type CreateRunOptions, type CreateTriggerOptions, type CriteriaOperator, type CronInput, type CronSchedule, type CronSource, DEFAULT_MAX_INSTANCES, DEFAULT_POINTS_REWARD, DISCOUNT_DURATION_MONTHS, DISCOUNT_PERCENT, type DatabaseConnectionInfo, type DatabaseStatus, type DatabaseStatusInfo, type DebugCategory, type DeduplicationConfig, type DeleteAccountResult, type DeleteDocumentInput, type DeployHistoryResponse, type DeployInfo, type DeployStatus, type DeviceApproveInput, type DeviceApproveResult, type DeviceDenyInput, type DeviceDenyResult, type DeviceGrant, type DeviceInitInput, type DevicePollResult, DeviceSessionClient, DistributedRunHandle, type DistributedRunStatus, type DynamicRestClient, ERROR_CODE_STATUS, type EmailChangeInput, type EmailConfirmInput, type EmbedInput, type EmbedResult, type EmbeddingInput, type EmbeddingResponse, type LeaderboardEntry as EngagementLeaderboardEntry, type LeaderboardResult as EngagementLeaderboardResult, type EnvVar, type ErrorCode, type ErrorResponse, type EventSource, type ExceptionFrame, type ExceptionValue, type ExecEvent, type ExecOptions, type ExecResult, type ErrorDetails$1 as ExtractedErrorDetails, FREE_COMPUTE_HOURS, FREE_STORAGE_GB, type FacetsResponse, type FileEvent, type FlagContext, type FlagResult, type GetConsentHistoryInput, type GetConsentsInput, type GetFacetsInput, type GetSecretInput, type GetSecretResult, type GetSecretsInput, type GetSecretsResult, HOURS_PER_MONTH, type HttpTarget, INSTANCE_TYPES, INSTANCE_TYPE_ALIASES, INSTANCE_TYPE_ORDER, INVOICE_DUE_DAYS, type IdentifyInput, type ImpersonationActive, type ImpersonationEndResult, type ImpersonationInfo, type ImpersonationStartResult, type IndexDocumentInput, type IndexDocumentResult, type IngestLogsResult, type InstanceTypeDefinition, type InstanceTypeId, InvalidConnectionUrlError, type InviteMemberInput, type InviteUserRequest, type InviteUserResponse, KV_FREE_STORAGE_GB, type KvExpireRequest, type KvHgetRequest, type KvHgetallRequest, type KvHsetRequest, type KvIncrRequest, type KvLpushRequest, type KvLrangeRequest, type KvMetric, type KvMgetRequest, type KvMsetRequest, type KvRateLimitRequest, type KvRateLimitResult, type KvScanOptions, type KvScanResult, type KvSetOptions, type KvSetRequest, type KvZMember, type KvZaddRequest, type KvZrangeRequest, LEGACY_INSTANCE_TYPE_ORDER, type LeaderboardAggregation, type LeaderboardDefinition, type LeaderboardEntry$1 as LeaderboardEntry, type LeaderboardOptions, type LeaderboardQueryOptions, type LeaderboardResetPeriod, type LeaderboardResult$1 as LeaderboardResult, type LeaderboardSortDirection, type LinkAnonymousConsentsInput, type ListFilesOptions, type ListPromosOptions, type ListPromosResult, type ListRedemptionsOptions, type ListRedemptionsResult, type ListRunsOptions, type ListRunsResult, type ListScheduledEmailsOptions, type ListSecretKeysInput, type ListTriggersResult, type ListUsersOptions, type ListUsersResult, type LogEntry, type LogLevel, type LoginHistoryEntry, type LoginRequest, type LoginResponse, MAX_PASSWORD_LENGTH, MAX_PAYMENT_ATTEMPTS, MICRODOLLARS_PER_CENT, MIN_PASSWORD_LENGTH, type MeResponse, type MemberPermissionsResult, type MintAccessTokenClaims, type MintAccessTokenResult, type MonitoringResponse, type MonitoringSeverity, type NativeStepContext, type NativeTaskDefinition, type TaskRunStatus as NativeTaskRunStatus, NetworkError, NotFoundError, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthCodeExchangeInput, type OAuthProvider, type OAuthProvidersResult, type OidcDiscoveryDocument, type OidcUserInfoResponse, type OrgRole, type OrgScopedTokenResponse, type OrgTokenPayload, type OrganizationInvitation, type OrganizationMember, type OrganizationMembership, type OrganizationsListResult, PASSWORD_REQUIREMENTS, PLATFORM_PLANS, PLATFORM_PLAN_ORDER, PLATFORM_PLAN_ORDER_ALL, PREMIUM_TRIAL_DAYS, type PageInput, type PaginatedResponse, type PaginationInput, type ParsedConnectionUrl, type ParsedUserAgent, type PasskeyRegistrationInput, type PasskeyRegistrationOptions, type PasskeySummary, type PasskeysList, type PasswordSetInput, type Permission, type PkceMethod, type Plan, type PlatformAccessTokenClaims, type PlatformFunctionsDownloadBundleResult, type PlatformLogoutInput, type PlatformPasswordChangeInput, type PlatformPasswordChangeResult, type PlatformPasswordSetInput, type PlatformPasswordSetResult, type PlatformPasswordStatusResult, type PlatformPlanDefinition, type PlatformPlanFeatures, type PlatformPlanId, type PlatformPlanLimits, type PlatformRealtimeChannel, type PlatformRealtimeCreateChannelResult, type PlatformRealtimeDeleteChannelResult, type PlatformRealtimeListChannelsResult, type PlatformRealtimeStatusResult, type PlatformRefreshInput, type PlatformRefreshResult, type PlatformSessionRenameInput, type PlatformSessionRenameResult, type PlatformSessionRevokeAllResult, type PlatformSessionRevokeInput, type PlatformSessionRevokeOtherResult, type PlatformSessionRevokeResult, type PlatformSessionsListResult, type PlatformUserDeleteInput, type PlatformUserDeleteResult, type PlatformUserExportResult, type PlatformUserRecord, type PlatformUserResolution, type ProcessEvent, type ProcessInfo, type ProcessStartOptions, type ProcessSummary, type ProjectMetadata, type PromoCode, type PromoRedemption, type PromoStatus, type PromoType, type PromoValidationPreview, type PublishEventResult, type PushCampaign, type PushCampaignStats, type PushCampaignVariant, type PushNotification, type PushNotificationPayload, type PushSegment, type PushSegmentFilter, type PushServiceWorkerConfig, type PushSubscription, type QueryLogsOptions, type QueryLogsResult, RETRYABLE_CODES, RateLimitError, type RateLimitStatusFilter, type RateLimitStatusResult, type RateLimitStrategiesFilter, type RateLimitStrategiesResult, type RateLimitStrategyDeleteInput, type RateLimitStrategyDeleteResult, type RateLimitStrategyUpsertInput, type RateLimitStrategyUpsertResult, type RealtimeEmitRequest, type RealtimeEmitResponse, type RealtimeHistoryRequest, type RealtimeHistoryResponse, type RealtimeMetric, type RecordActivityInput, type RecordActivityResult, type RedeemPromoInput, type RedeemPromoResult, type RedeemReferralInput, type RedeemResult, type ReferralCode, type ReferralStats, type RegisterInput, type RegisterRequest, type RegisterResponse, RenderClient, type ResendEmailVerificationRequest, type ResendEmailVerificationResponse, type RestClient, type RestClientConfig, type RestDynamicConfig, type RetryConfig, type RevokeTokenOptions, type Role, type RollbackDeployRequest, type Run, RunHandle, type RunLogsResult, type RunMachineSize, type RunResult, type RunStatus, type RunTarget, type RunVolumeMount, type CreateRunOptions as RunWorkerOptions, RunsClient, SERVICE_METRICS, STORAGE_PRICE_PER_GB_MONTH_MICRODOLLARS, SandboxBrowser, SandboxCapabilities, SandboxClient, SandboxComputer, type SandboxFile, SandboxFiles, type SandboxMachineSize, type SandboxOptions, SandboxProcesses, type SandboxRecord, SandboxWatch, type ScheduleEmailOptions, type ScheduledEmail, type ScheduledEmailStats, type ScheduledEmailsResult, type SearchInput, type SearchResponse, type SearchResultItem, type SearchStatsResult, type SearchType, type SecretKeyInfo, type SecurityAlert, type SecurityAlertsList, type SecurityScoreResult, type SecuritySettings, type SendEmailOptions, type SendResult, type SendTemplatedEmailOptions, type SendToUserOptions, type ServeOptions, type ServeResult, type ServiceCredentials, type ServiceMetrics, type ServiceTokenResponse, type SessionResult, type SetConsentsInput, type SetEnvVarRequest, type SignedUrlOptions, StepCompleteSignal, StepSleepSignal, type StoredLogEntry, type StreakDefinition, type StreakFrequency, type StreakState, type StreamMessage, type SubmitScoreInput, type SubmitScoreResult, type Subscription, type SuccessResponse, type SylphxClientInput, type SylphxConfig, type SylphxConfigInput, SylphxError, type SylphxErrorCode, type SylphxErrorOptions, TRANSFER_PRICE_PER_GB_MICRODOLLARS, type TaskConfig, type TaskHandle, type TaskInput, type TaskMachineSize, type TaskResult, type TaskRunContext, type TaskRunDetail, type TaskRunStep, type TaskStatus, type TaskTarget, type TextCompletionInput, type TextCompletionResponse, TimeoutError, type TokenIntrospectionResult, type TokenResponse, type Tool, type ToolCall, type TrackClickInput, type TrackInput, type Trigger, type TriggerDeployRequest, type TriggerOptions, type TriggerRunMachineSize, type TriggerSource, type TriggerSourceType, type TriggerStatus, type TriggerTarget, type TriggerTargetType, TriggersClient, type TwoFactorEnableResult, type TwoFactorSetupResult, type TwoFactorVerifyRequest, type UpdateOrgInput, type UpdatePromoInput, type UpdateRoleInput, type UpdateTriggerOptions, type UploadCreateOptions, type UploadProgressEvent, type UpsertDocumentInput, type UpsertDocumentResult, type User, type UserAchievement, type UserConsent, type UserDataExport, type UserFullProfile, type UserOrganization, type UserProfile, type UserSecuritySettings, type UserSession, type UserSessionsList, type UserUpdateProfileInput, type ValidatePromoInput, type ValidatePromoResult, ValidationError, type VisionInput, WalletClient, type WatchEntry, type WatchOptions, type WebhookConfig, type WebhookConfigUpdate, type WebhookDeliveriesResult, type WebhookDelivery, type WebhookStats, RunHandle as WorkerHandle, type RunLogsResult as WorkerLogsResult, type RunResult as WorkerResult, type Run as WorkerRun, type RunStatus as WorkerStatus, type RunVolumeMount as WorkerVolumeMount, WorkersClient, type WorkspaceRecord, acceptAllConsents, acceptOrganizationInvitation, assignMemberRole, audit, authorizeOAuth, batchIndex, buildConnectionUrl, calculatePercentage, canDeleteOrganization, canManageMembers, canManageSettings, cancelScheduledEmail, cancelTask, captureException, captureExceptionRaw, captureMessage, centsToDollars, chat, chatStream, checkFlag, complete, confirmEmailChange, cookies, createCheckout, createClient, createConfig, createCron, createDynamicRestClient, createOrganization, createPermission, createPortalSession, createPromo, createRestClient, createRole, createServerClient, createServiceWorkerScript, createStepContext, createTasksHandler, createTracker, createWorkspace, debugError, debugLog, debugTimer, debugWarn, declineOptionalConsents, deleteCron, deleteDocument, deleteEnvVar, deleteOrganization, deletePasskey, deletePermission, deletePromo, deleteRole, deleteUser, deleteUserAccount, deleteWorkspace, device, disableDebug, disableTwoFactor, disconnectOAuthProvider, dpop, embed, enableDebug, escapeCsvField, escapeHtml, exchangeOAuthCode, exponentialBackoff, exportUserData, extendedSignUp, getErrorDetails$1 as extractErrorDetails, getErrorMessage$1 as extractErrorMessage, forgotPassword, forkWorkspace, formatBytes, formatCents, formatCurrency, formatDate, formatDateTime, formatDuration, formatMicrodollars, formatMonthYear, formatNumber, formatPercent, formatRelativeTime, formatRelativeTimeShort, formatTime, functions, generateAnonymousId, generatePkce, generateReferralCode, generateSlug, getAchievement, getAchievementPoints, getAchievements, getActivePlans, getAllFlags, getAllSecrets, getAllStreaks, getAvailableInstanceTypes, getBackupCodes, getBaseUrl, getBillingBalance, getBillingStatusVariant, getBillingUsage, getBuildLogHistory, getCircuitBreakerState, getConsentHistory, getConsentTypes, getDatabaseConnectionString, getDatabaseStatus, getDebugMode, getDefaultInstanceType, getDeployHistory, getDeployStatus, getEnvPrefix, getErrorCode, getErrorDetails, getErrorMessage, getFacets, getFlagPayload, getFlags, getInvoiceStatusVariant, getLeaderboard, getMemberPermissions, getMyReferralCode, getOidcDiscoveryDocument, getOrgScopedToken, getOrganization, getOrganizationInvitations, getOrganizationMembers, getOrganizations, getPlanMonthlyPrice, getPlans, getProjectMetadata, getPromo, getPushPreferences, getRealtimeHistory, getReferralLeaderboard, getReferralStats, getRestErrorMessage, getRole, getSafeErrorMessage, getScheduledEmail, getScheduledEmailStats, getSearchStats, getSecret, getSecrets, getSecurityScore, getSession, getStreak, getSubscription, getTask, getTaskRun, getUser, getUserByEmail, getUserConsents, getUserLeaderboardRank, getUserProfile, getUserSecurity, getVariant, getWebhookConfig, getWebhookDeliveries, getWebhookDelivery, getWebhookStats, getWorkspace, getWorkspaceCapacity, hasAllPermissions, hasAnyPermission, hasBillingAccess, hasConsent, hasError, hasPermission, hasRole, hasSecret, identify, impersonation, incrementAchievementProgress, indexDocument, ingestLogs, initPushServiceWorker, installGlobalDebugHelpers, introspectToken, inviteOrganizationMember, inviteUser, isChallengeRequired, isEmailConfigured, isEnabled, isPlanDeprecated, isRetryableError, isSylphxError, isValidInstanceType, kvDelete, kvExists, kvExpire, kvGet, kvGetJSON, kvHget, kvHgetall, kvHset, kvIncr, kvLpush, kvLrange, kvMget, kvMset, kvRateLimit, kvScan, kvSet, kvSetJSON, kvZadd, kvZrange, leaveOrganization, linkAnonymousConsents, listEnvVars, listOAuthProviders, listOrganizations, listPasskeys, listPermissions, listPromoRedemptions, listPromos, listRoles, listScheduledEmails, listSecretKeys, listSecurityAlerts, listTasks, listUserSessions, listUsers, listWorkspaces, markAllSecurityAlertsRead, markSecurityAlertRead, microsToDollars, oauth, page, parseConnectionUrl, parseOAuthCallback, parseUserAgent, password, pauseCron, pinWorkspace, platformAuth, campaigns as pushCampaigns, segments as pushSegments, queryLogs, rateLimits, realtime, realtimeEmit, reclaimWorkspace, reclaimWorkspaceSubpath, recordStreakActivity, recoverStreak, redeemPromo, redeemReferralCode, refreshToken, regenerateBackupCodes, regenerateReferralCode, registerPush, registerPushServiceWorker, removeOrganizationMember, renamePasskey, renameUserSession, replayWebhookDelivery, requestEmailChange, rescheduleEmail, resendVerificationEmail, resetCircuitBreaker, resetDebugModeCache, resetPassword, resetPlatformCookieCache, resetPlatformJwksCache, resolveCanonicalInstanceType, resolveMaxInstances, resolveResources, resumeCron, revokeAllTokens, revokeOrganizationInvitation, revokeToken, revokeUserSession, rollbackDeploy, safeJsonParse, scheduleEmail, scheduleTask, search, sendEmail, sendEmailToUser, sendPush, sendTemplatedEmail, serve, sessions, setConsents, setEnvVar, setPassword, setupTwoFactor, signIn, signInAsService, signOut, signUp, startPasskeyRegistration, storage, streamToString, submitScore, suspendUser, switchOrg, task, taskStub, toSylphxError, track, trackBatch, trackClick, triggerDeploy, unlockAchievement, unregisterPush, updateOrganization, updateOrganizationMemberRole, updatePromo, updatePushPreferences, updateRole, updateUser, updateUserMetadata, updateUserProfile, updateWebhookConfig, upsertDocument, user, userInfo, validateInstanceTypeForPlan, validatePromo, verifyAccessToken, verifyChallenge, verifyEmail, verifyPasskeyRegistration, verifySignature as verifyTaskSignature, verifyTwoFactor, verifyTwoFactorEnable, withToken };