deepline 0.3.70 → 0.3.72

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.
@@ -1238,7 +1238,13 @@ interface PlayAuthoringRuntimeContext {
1238
1238
  * @sdkReference runtime 140 ctx.runPlay(key, playRef, input, options)
1239
1239
  */
1240
1240
  runPlay<TOutput = unknown>(key: string, playRef: string | PlayAuthoringReferenceLike, input: Record<string, unknown>, options: PlayAuthoringCallOptions): Promise<TOutput>;
1241
- log(message: string): void;
1241
+ /**
1242
+ * Write a customer-safe line to the durable Run Log Stream. Omitting level
1243
+ * preserves the historical info-level behavior.
1244
+ */
1245
+ log(message: string, options?: {
1246
+ level?: 'debug' | 'info' | 'warn' | 'error';
1247
+ }): void;
1242
1248
  sleep(ms: number): Promise<void>;
1243
1249
  }
1244
1250
  declare const PLAY_AUTHORING_FIELD_REGISTRY: {
@@ -1238,7 +1238,13 @@ interface PlayAuthoringRuntimeContext {
1238
1238
  * @sdkReference runtime 140 ctx.runPlay(key, playRef, input, options)
1239
1239
  */
1240
1240
  runPlay<TOutput = unknown>(key: string, playRef: string | PlayAuthoringReferenceLike, input: Record<string, unknown>, options: PlayAuthoringCallOptions): Promise<TOutput>;
1241
- log(message: string): void;
1241
+ /**
1242
+ * Write a customer-safe line to the durable Run Log Stream. Omitting level
1243
+ * preserves the historical info-level behavior.
1244
+ */
1245
+ log(message: string, options?: {
1246
+ level?: 'debug' | 'info' | 'warn' | 'error';
1247
+ }): void;
1242
1248
  sleep(ms: number): Promise<void>;
1243
1249
  }
1244
1250
  declare const PLAY_AUTHORING_FIELD_REGISTRY: {
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { c as PlayCompilerManifest, i as PlayAuthoringColumnMap, j as PlayAuthoringColumnResolver, k as PlayAuthoringRuntimeContext, l as PlayAuthoringConditionalStepResolver, m as PlayAuthoringCsvInput, n as PlayAuthoringCsvOptions, o as PlayAuthoringDatasetBuilder, p as PlayAuthoringDatasetColumnDefinition, q as PlayAuthoringDatasetColumnRunInput, T as ToolExecuteResult, r as PlayAuthoringReferenceLike, s as PlayReturnObject$1, t as PlayAuthoringDefineConfig, u as PlayAuthoringDefinedPlay, v as PlayAuthoringFetchOptions, w as PlayAuthoringFileInput, x as PlayAuthoringBindings, y as PlayAuthoringCallExecution, z as PlayAuthoringCallOptions, A as PlayAuthoringFetchResponse, B as PlayAuthoringInputContract, C as PlayAuthoringStepProgramStep, D as PlayAuthoringRuntimeStepOptions, E as PlaySqlListenerDeclaration, F as PlaySqlListenerEvent, G as PlaySqlListenerOperation, H as PlaySqlQuery, I as PlayAuthoringStepOptions, J as PlayAuthoringStepProgram, K as PlayAuthoringStepProgramResolver, L as PlayAuthoringStepResolver, M as PlayToolExecutionRequest, N as PlayAuthoringStepProgramOptions, O as DeeplineError, Q as ToolExecutionError, R as ToolExecutionErrorOptions } from './compiler-manifest-IkyvsUO-.mjs';
3
- export { S as CtxFetchHttpError, U as DEEPLINE_EXTRACTOR_TARGETS, V as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, W as DeeplineEmailStatusGetterValue, X as DeeplineExtractorTarget, Y as DeeplineGetterValue, Z as DeeplineGetterValueMap, _ as JOB_CHANGE_STATUS_VALUES, $ as JobChangeStatus, a0 as PHONE_STATUS_VALUES, a1 as PhoneStatus, a2 as PlayDataset, a3 as PlayDatasetInput, a4 as PreviousCell, a5 as ProviderTransientError, a6 as ProviderTransientErrorCategory, a7 as ProviderUnavailableError, a8 as ProviderUnavailableReason, a9 as ToolExecutionErrorCategory, aa as ToolExecutionErrorOrigin, ab as ToolExecutionFailureV1, ac as ToolExecutionNetworkKind, ad as ToolExecutionNetworkScope, ae as ToolExecutionPublicDetails, af as getProviderUnavailableReason, ag as isDeeplineExtractorTarget, ah as isProviderUnavailable, ai as isProviderWaterfallUnavailableError } from './compiler-manifest-IkyvsUO-.mjs';
2
+ import { c as PlayCompilerManifest, i as PlayAuthoringColumnMap, j as PlayAuthoringColumnResolver, k as PlayAuthoringRuntimeContext, l as PlayAuthoringConditionalStepResolver, m as PlayAuthoringCsvInput, n as PlayAuthoringCsvOptions, o as PlayAuthoringDatasetBuilder, p as PlayAuthoringDatasetColumnDefinition, q as PlayAuthoringDatasetColumnRunInput, T as ToolExecuteResult, r as PlayAuthoringReferenceLike, s as PlayReturnObject$1, t as PlayAuthoringDefineConfig, u as PlayAuthoringDefinedPlay, v as PlayAuthoringFetchOptions, w as PlayAuthoringFileInput, x as PlayAuthoringBindings, y as PlayAuthoringCallExecution, z as PlayAuthoringCallOptions, A as PlayAuthoringFetchResponse, B as PlayAuthoringInputContract, C as PlayAuthoringStepProgramStep, D as PlayAuthoringRuntimeStepOptions, E as PlaySqlListenerDeclaration, F as PlaySqlListenerEvent, G as PlaySqlListenerOperation, H as PlaySqlQuery, I as PlayAuthoringStepOptions, J as PlayAuthoringStepProgram, K as PlayAuthoringStepProgramResolver, L as PlayAuthoringStepResolver, M as PlayToolExecutionRequest, N as PlayAuthoringStepProgramOptions, O as DeeplineError, Q as ToolExecutionError, R as ToolExecutionErrorOptions } from './compiler-manifest-CMNgA_JQ.mjs';
3
+ export { S as CtxFetchHttpError, U as DEEPLINE_EXTRACTOR_TARGETS, V as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, W as DeeplineEmailStatusGetterValue, X as DeeplineExtractorTarget, Y as DeeplineGetterValue, Z as DeeplineGetterValueMap, _ as JOB_CHANGE_STATUS_VALUES, $ as JobChangeStatus, a0 as PHONE_STATUS_VALUES, a1 as PhoneStatus, a2 as PlayDataset, a3 as PlayDatasetInput, a4 as PreviousCell, a5 as ProviderTransientError, a6 as ProviderTransientErrorCategory, a7 as ProviderUnavailableError, a8 as ProviderUnavailableReason, a9 as ToolExecutionErrorCategory, aa as ToolExecutionErrorOrigin, ab as ToolExecutionFailureV1, ac as ToolExecutionNetworkKind, ad as ToolExecutionNetworkScope, ae as ToolExecutionPublicDetails, af as getProviderUnavailableReason, ag as isDeeplineExtractorTarget, ah as isProviderUnavailable, ai as isProviderWaterfallUnavailableError } from './compiler-manifest-CMNgA_JQ.mjs';
4
4
  import '@sinclair/typebox';
5
5
 
6
6
  declare const FIXTURE_BEHAVIOR_VERSION: 1;
@@ -2872,6 +2872,27 @@ type BillingPlansResult = {
2872
2872
  /** @deprecated Use meters. Retained for installed SDK compatibility. */
2873
2873
  metrics: BillingMetricEntry[];
2874
2874
  };
2875
+ type WorkspaceCreateResult = {
2876
+ org_id: string;
2877
+ org_name: string;
2878
+ org_slug: string;
2879
+ plan_sku: 'payg-v1';
2880
+ rate_policy_ref: 'payg-rates-v2';
2881
+ operation: {
2882
+ id: string;
2883
+ state: 'completed';
2884
+ replayed: boolean;
2885
+ };
2886
+ request_id?: string;
2887
+ };
2888
+ /** Deliberate workspace lifecycle operations. */
2889
+ type WorkspacesNamespace = {
2890
+ /** Create an additional workspace and provision its active PAYG Contract. */
2891
+ create: (options: {
2892
+ name: string;
2893
+ idempotencyKey: string;
2894
+ }) => Promise<WorkspaceCreateResult>;
2895
+ };
2875
2896
  /**
2876
2897
  * Public billing namespace exposed as `client.billing`.
2877
2898
  *
@@ -2942,10 +2963,7 @@ type MintStagedFileUpload = {
2942
2963
  uploadExpiresAt: string | null;
2943
2964
  };
2944
2965
  /**
2945
- * Low-level client for the Deepline REST API.
2946
- *
2947
- * Provides typed methods for every API endpoint: tools, plays, auth, and health.
2948
- * Handles authentication, retries, and localhost failover automatically.
2966
+ * Low-level typed REST client with authentication, retries, and localhost failover.
2949
2967
  *
2950
2968
  * @example
2951
2969
  * ```typescript
@@ -2972,6 +2990,8 @@ declare class DeeplineClient {
2972
2990
  readonly db: DbNamespace;
2973
2991
  /** Billing namespace: subscription status/cancel and invoice history. */
2974
2992
  readonly billing: BillingNamespace;
2993
+ /** Workspace lifecycle namespace. */
2994
+ readonly workspaces: WorkspacesNamespace;
2975
2995
  /** Monitors namespace: access, catalog, deploy/check, and lifecycle. */
2976
2996
  readonly monitors: MonitorsNamespace;
2977
2997
  /**
@@ -3981,6 +4001,11 @@ declare class DeeplineClient {
3981
4001
  createTargetBillingPortalSession(): Promise<{
3982
4002
  url: string;
3983
4003
  }>;
4004
+ /** Create an additional workspace through the durable PAYG workflow. */
4005
+ createWorkspace(options: {
4006
+ name: string;
4007
+ idempotencyKey: string;
4008
+ }): Promise<WorkspaceCreateResult>;
3984
4009
  /**
3985
4010
  * Whether the current workspace can use Deepline Monitors. Reachable without
3986
4011
  * monitor access; a denial is a normal 200 body, not a 403. Prefer
@@ -5061,4 +5086,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
5061
5086
  */
5062
5087
  declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
5063
5088
 
5064
- export { type AdmittedMonitorFleetAuthoringContract, AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FetchOptions, type FileInput, type IngestionStorageRepairResult, type LiveEventEnvelope, MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG, MONITOR_FLEET_AUTHORING_CONTRACT_EDITION, MONITOR_FLEET_DOCUMENTATION, MONITOR_FLEET_FRONTIER_MAX_ROWS, MONITOR_FLEET_MAX_MEMBERS, type MonitorCheckResult, type MonitorControls, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetAuthoringContractEdition, type MonitorFleetAuthoringContractResult, type MonitorFleetColumn, type MonitorFleetContractIssue, type MonitorFleetDeactivateOptions, type MonitorFleetDefinition, type MonitorFleetExpression, type MonitorFleetGetOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetTemplate, type MonitorFleetWaitOptions, type MonitorFleetsNamespace, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorSpec, type MonitorUpdateChangeSummary, type MonitorUpdateResult, type MonitorsAccessStatus, type MonitorsAvailableOptions, type MonitorsAvailableResult, type MonitorsListOptions, type MonitorsListResult, type MonitorsNamespace, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PlayActivityObservation, type PlayActivityState, type PlayActivityTarget, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayFetchResponse, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, ToolExecuteResult, type ToolExecution, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, type ToolMetadata, ToolRateLimitError, type ToolSearchOptions, type ToolSearchResult, admitMonitorFleetAuthoringContract, defineInput, defineMonitor, defineMonitorFleet, definePlay, defineWorkflow, extractSummaryFields, fleetColumn, fleetKey, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, validateMonitorFleetDefinition, writeCsvOutputFile, writeJsonOutputFile };
5089
+ export { type AdmittedMonitorFleetAuthoringContract, AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FetchOptions, type FileInput, type IngestionStorageRepairResult, type LiveEventEnvelope, MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG, MONITOR_FLEET_AUTHORING_CONTRACT_EDITION, MONITOR_FLEET_DOCUMENTATION, MONITOR_FLEET_FRONTIER_MAX_ROWS, MONITOR_FLEET_MAX_MEMBERS, type MonitorCheckResult, type MonitorControls, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetAuthoringContractEdition, type MonitorFleetAuthoringContractResult, type MonitorFleetColumn, type MonitorFleetContractIssue, type MonitorFleetDeactivateOptions, type MonitorFleetDefinition, type MonitorFleetExpression, type MonitorFleetGetOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetTemplate, type MonitorFleetWaitOptions, type MonitorFleetsNamespace, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorSpec, type MonitorUpdateChangeSummary, type MonitorUpdateResult, type MonitorsAccessStatus, type MonitorsAvailableOptions, type MonitorsAvailableResult, type MonitorsListOptions, type MonitorsListResult, type MonitorsNamespace, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PlayActivityObservation, type PlayActivityState, type PlayActivityTarget, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayFetchResponse, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, ToolExecuteResult, type ToolExecution, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, type ToolMetadata, ToolRateLimitError, type ToolSearchOptions, type ToolSearchResult, type WorkspaceCreateResult, type WorkspacesNamespace, admitMonitorFleetAuthoringContract, defineInput, defineMonitor, defineMonitorFleet, definePlay, defineWorkflow, extractSummaryFields, fleetColumn, fleetKey, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, validateMonitorFleetDefinition, writeCsvOutputFile, writeJsonOutputFile };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { c as PlayCompilerManifest, i as PlayAuthoringColumnMap, j as PlayAuthoringColumnResolver, k as PlayAuthoringRuntimeContext, l as PlayAuthoringConditionalStepResolver, m as PlayAuthoringCsvInput, n as PlayAuthoringCsvOptions, o as PlayAuthoringDatasetBuilder, p as PlayAuthoringDatasetColumnDefinition, q as PlayAuthoringDatasetColumnRunInput, T as ToolExecuteResult, r as PlayAuthoringReferenceLike, s as PlayReturnObject$1, t as PlayAuthoringDefineConfig, u as PlayAuthoringDefinedPlay, v as PlayAuthoringFetchOptions, w as PlayAuthoringFileInput, x as PlayAuthoringBindings, y as PlayAuthoringCallExecution, z as PlayAuthoringCallOptions, A as PlayAuthoringFetchResponse, B as PlayAuthoringInputContract, C as PlayAuthoringStepProgramStep, D as PlayAuthoringRuntimeStepOptions, E as PlaySqlListenerDeclaration, F as PlaySqlListenerEvent, G as PlaySqlListenerOperation, H as PlaySqlQuery, I as PlayAuthoringStepOptions, J as PlayAuthoringStepProgram, K as PlayAuthoringStepProgramResolver, L as PlayAuthoringStepResolver, M as PlayToolExecutionRequest, N as PlayAuthoringStepProgramOptions, O as DeeplineError, Q as ToolExecutionError, R as ToolExecutionErrorOptions } from './compiler-manifest-IkyvsUO-.js';
3
- export { S as CtxFetchHttpError, U as DEEPLINE_EXTRACTOR_TARGETS, V as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, W as DeeplineEmailStatusGetterValue, X as DeeplineExtractorTarget, Y as DeeplineGetterValue, Z as DeeplineGetterValueMap, _ as JOB_CHANGE_STATUS_VALUES, $ as JobChangeStatus, a0 as PHONE_STATUS_VALUES, a1 as PhoneStatus, a2 as PlayDataset, a3 as PlayDatasetInput, a4 as PreviousCell, a5 as ProviderTransientError, a6 as ProviderTransientErrorCategory, a7 as ProviderUnavailableError, a8 as ProviderUnavailableReason, a9 as ToolExecutionErrorCategory, aa as ToolExecutionErrorOrigin, ab as ToolExecutionFailureV1, ac as ToolExecutionNetworkKind, ad as ToolExecutionNetworkScope, ae as ToolExecutionPublicDetails, af as getProviderUnavailableReason, ag as isDeeplineExtractorTarget, ah as isProviderUnavailable, ai as isProviderWaterfallUnavailableError } from './compiler-manifest-IkyvsUO-.js';
2
+ import { c as PlayCompilerManifest, i as PlayAuthoringColumnMap, j as PlayAuthoringColumnResolver, k as PlayAuthoringRuntimeContext, l as PlayAuthoringConditionalStepResolver, m as PlayAuthoringCsvInput, n as PlayAuthoringCsvOptions, o as PlayAuthoringDatasetBuilder, p as PlayAuthoringDatasetColumnDefinition, q as PlayAuthoringDatasetColumnRunInput, T as ToolExecuteResult, r as PlayAuthoringReferenceLike, s as PlayReturnObject$1, t as PlayAuthoringDefineConfig, u as PlayAuthoringDefinedPlay, v as PlayAuthoringFetchOptions, w as PlayAuthoringFileInput, x as PlayAuthoringBindings, y as PlayAuthoringCallExecution, z as PlayAuthoringCallOptions, A as PlayAuthoringFetchResponse, B as PlayAuthoringInputContract, C as PlayAuthoringStepProgramStep, D as PlayAuthoringRuntimeStepOptions, E as PlaySqlListenerDeclaration, F as PlaySqlListenerEvent, G as PlaySqlListenerOperation, H as PlaySqlQuery, I as PlayAuthoringStepOptions, J as PlayAuthoringStepProgram, K as PlayAuthoringStepProgramResolver, L as PlayAuthoringStepResolver, M as PlayToolExecutionRequest, N as PlayAuthoringStepProgramOptions, O as DeeplineError, Q as ToolExecutionError, R as ToolExecutionErrorOptions } from './compiler-manifest-CMNgA_JQ.js';
3
+ export { S as CtxFetchHttpError, U as DEEPLINE_EXTRACTOR_TARGETS, V as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, W as DeeplineEmailStatusGetterValue, X as DeeplineExtractorTarget, Y as DeeplineGetterValue, Z as DeeplineGetterValueMap, _ as JOB_CHANGE_STATUS_VALUES, $ as JobChangeStatus, a0 as PHONE_STATUS_VALUES, a1 as PhoneStatus, a2 as PlayDataset, a3 as PlayDatasetInput, a4 as PreviousCell, a5 as ProviderTransientError, a6 as ProviderTransientErrorCategory, a7 as ProviderUnavailableError, a8 as ProviderUnavailableReason, a9 as ToolExecutionErrorCategory, aa as ToolExecutionErrorOrigin, ab as ToolExecutionFailureV1, ac as ToolExecutionNetworkKind, ad as ToolExecutionNetworkScope, ae as ToolExecutionPublicDetails, af as getProviderUnavailableReason, ag as isDeeplineExtractorTarget, ah as isProviderUnavailable, ai as isProviderWaterfallUnavailableError } from './compiler-manifest-CMNgA_JQ.js';
4
4
  import '@sinclair/typebox';
5
5
 
6
6
  declare const FIXTURE_BEHAVIOR_VERSION: 1;
@@ -2872,6 +2872,27 @@ type BillingPlansResult = {
2872
2872
  /** @deprecated Use meters. Retained for installed SDK compatibility. */
2873
2873
  metrics: BillingMetricEntry[];
2874
2874
  };
2875
+ type WorkspaceCreateResult = {
2876
+ org_id: string;
2877
+ org_name: string;
2878
+ org_slug: string;
2879
+ plan_sku: 'payg-v1';
2880
+ rate_policy_ref: 'payg-rates-v2';
2881
+ operation: {
2882
+ id: string;
2883
+ state: 'completed';
2884
+ replayed: boolean;
2885
+ };
2886
+ request_id?: string;
2887
+ };
2888
+ /** Deliberate workspace lifecycle operations. */
2889
+ type WorkspacesNamespace = {
2890
+ /** Create an additional workspace and provision its active PAYG Contract. */
2891
+ create: (options: {
2892
+ name: string;
2893
+ idempotencyKey: string;
2894
+ }) => Promise<WorkspaceCreateResult>;
2895
+ };
2875
2896
  /**
2876
2897
  * Public billing namespace exposed as `client.billing`.
2877
2898
  *
@@ -2942,10 +2963,7 @@ type MintStagedFileUpload = {
2942
2963
  uploadExpiresAt: string | null;
2943
2964
  };
2944
2965
  /**
2945
- * Low-level client for the Deepline REST API.
2946
- *
2947
- * Provides typed methods for every API endpoint: tools, plays, auth, and health.
2948
- * Handles authentication, retries, and localhost failover automatically.
2966
+ * Low-level typed REST client with authentication, retries, and localhost failover.
2949
2967
  *
2950
2968
  * @example
2951
2969
  * ```typescript
@@ -2972,6 +2990,8 @@ declare class DeeplineClient {
2972
2990
  readonly db: DbNamespace;
2973
2991
  /** Billing namespace: subscription status/cancel and invoice history. */
2974
2992
  readonly billing: BillingNamespace;
2993
+ /** Workspace lifecycle namespace. */
2994
+ readonly workspaces: WorkspacesNamespace;
2975
2995
  /** Monitors namespace: access, catalog, deploy/check, and lifecycle. */
2976
2996
  readonly monitors: MonitorsNamespace;
2977
2997
  /**
@@ -3981,6 +4001,11 @@ declare class DeeplineClient {
3981
4001
  createTargetBillingPortalSession(): Promise<{
3982
4002
  url: string;
3983
4003
  }>;
4004
+ /** Create an additional workspace through the durable PAYG workflow. */
4005
+ createWorkspace(options: {
4006
+ name: string;
4007
+ idempotencyKey: string;
4008
+ }): Promise<WorkspaceCreateResult>;
3984
4009
  /**
3985
4010
  * Whether the current workspace can use Deepline Monitors. Reachable without
3986
4011
  * monitor access; a denial is a normal 200 body, not a 403. Prefer
@@ -5061,4 +5086,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
5061
5086
  */
5062
5087
  declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
5063
5088
 
5064
- export { type AdmittedMonitorFleetAuthoringContract, AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FetchOptions, type FileInput, type IngestionStorageRepairResult, type LiveEventEnvelope, MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG, MONITOR_FLEET_AUTHORING_CONTRACT_EDITION, MONITOR_FLEET_DOCUMENTATION, MONITOR_FLEET_FRONTIER_MAX_ROWS, MONITOR_FLEET_MAX_MEMBERS, type MonitorCheckResult, type MonitorControls, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetAuthoringContractEdition, type MonitorFleetAuthoringContractResult, type MonitorFleetColumn, type MonitorFleetContractIssue, type MonitorFleetDeactivateOptions, type MonitorFleetDefinition, type MonitorFleetExpression, type MonitorFleetGetOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetTemplate, type MonitorFleetWaitOptions, type MonitorFleetsNamespace, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorSpec, type MonitorUpdateChangeSummary, type MonitorUpdateResult, type MonitorsAccessStatus, type MonitorsAvailableOptions, type MonitorsAvailableResult, type MonitorsListOptions, type MonitorsListResult, type MonitorsNamespace, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PlayActivityObservation, type PlayActivityState, type PlayActivityTarget, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayFetchResponse, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, ToolExecuteResult, type ToolExecution, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, type ToolMetadata, ToolRateLimitError, type ToolSearchOptions, type ToolSearchResult, admitMonitorFleetAuthoringContract, defineInput, defineMonitor, defineMonitorFleet, definePlay, defineWorkflow, extractSummaryFields, fleetColumn, fleetKey, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, validateMonitorFleetDefinition, writeCsvOutputFile, writeJsonOutputFile };
5089
+ export { type AdmittedMonitorFleetAuthoringContract, AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FetchOptions, type FileInput, type IngestionStorageRepairResult, type LiveEventEnvelope, MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG, MONITOR_FLEET_AUTHORING_CONTRACT_EDITION, MONITOR_FLEET_DOCUMENTATION, MONITOR_FLEET_FRONTIER_MAX_ROWS, MONITOR_FLEET_MAX_MEMBERS, type MonitorCheckResult, type MonitorControls, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetAuthoringContractEdition, type MonitorFleetAuthoringContractResult, type MonitorFleetColumn, type MonitorFleetContractIssue, type MonitorFleetDeactivateOptions, type MonitorFleetDefinition, type MonitorFleetExpression, type MonitorFleetGetOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetTemplate, type MonitorFleetWaitOptions, type MonitorFleetsNamespace, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorSpec, type MonitorUpdateChangeSummary, type MonitorUpdateResult, type MonitorsAccessStatus, type MonitorsAvailableOptions, type MonitorsAvailableResult, type MonitorsListOptions, type MonitorsListResult, type MonitorsNamespace, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PlayActivityObservation, type PlayActivityState, type PlayActivityTarget, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayFetchResponse, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, ToolExecuteResult, type ToolExecution, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, type ToolMetadata, ToolRateLimitError, type ToolSearchOptions, type ToolSearchResult, type WorkspaceCreateResult, type WorkspacesNamespace, admitMonitorFleetAuthoringContract, defineInput, defineMonitor, defineMonitorFleet, definePlay, defineWorkflow, extractSummaryFields, fleetColumn, fleetKey, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, validateMonitorFleetDefinition, writeCsvOutputFile, writeJsonOutputFile };
package/dist/index.js CHANGED
@@ -832,7 +832,7 @@ var SDK_RELEASE = {
832
832
  // available at toolResponse.rawV2 while toolResponse.raw and all declared
833
833
  // getters keep their established compatibility behavior.
834
834
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
835
- version: "0.3.70",
835
+ version: "0.3.72",
836
836
  updateSummary: "Automatic CLI updates are now enabled by default. To opt out, run `deepline settings autoupdate off`; use `deepline settings autoupdate on` to re-enable updates or `deepline settings autoupdate pin <version>` to hold an exact release. This release also adds raw-v2 tool responses at toolResponse.rawV2 while preserving existing toolResponse.raw and declared getters.",
837
837
  packageCapabilities: {
838
838
  updatePreferences: 1
@@ -3138,6 +3138,33 @@ function decodePlayRunPublicStatus(value) {
3138
3138
  }
3139
3139
  }
3140
3140
 
3141
+ // ../play-runtime/log-provenance.ts
3142
+ var LOG_PROVENANCE_CLASSES = [
3143
+ "user",
3144
+ "lifecycle",
3145
+ "replay",
3146
+ "infra",
3147
+ "diagnostic",
3148
+ "receipt"
3149
+ ];
3150
+ var PROVENANCE_SENTINEL = "";
3151
+ var PROVENANCE_PREFIX = `${PROVENANCE_SENTINEL}prov:`;
3152
+ function readProvenanceTag(line) {
3153
+ if (!line.startsWith(PROVENANCE_PREFIX)) {
3154
+ return { provenance: null, line };
3155
+ }
3156
+ const end = line.indexOf(PROVENANCE_SENTINEL, PROVENANCE_PREFIX.length);
3157
+ if (end === -1) {
3158
+ return { provenance: null, line };
3159
+ }
3160
+ const candidate = line.slice(PROVENANCE_PREFIX.length, end);
3161
+ const provenance = LOG_PROVENANCE_CLASSES.includes(candidate) ? candidate : null;
3162
+ return { provenance, line: line.slice(end + 1) };
3163
+ }
3164
+ function stripProvenanceTag(line) {
3165
+ return readProvenanceTag(line).line;
3166
+ }
3167
+
3141
3168
  // ../play-runtime/run-snapshot-stream.ts
3142
3169
  function normalizePlayRunLiveStatus(value) {
3143
3170
  return normalizePlayRunLifecycleStatus(value);
@@ -3210,7 +3237,9 @@ function buildSnapshotFromLedger(snapshot) {
3210
3237
  finishedAt: snapshot.finishedAt ?? null,
3211
3238
  durationMs: snapshot.durationMs ?? null,
3212
3239
  updatedAt: snapshot.updatedAt ?? snapshot.finishedAt ?? snapshot.startedAt ?? null,
3213
- logs: snapshot.logTail,
3240
+ // This snapshot is public SDK/API transport. Keep the historical plain
3241
+ // timestamp-prefixed text while provenance remains runtime metadata.
3242
+ logs: snapshot.logTail.map(stripProvenanceTag),
3214
3243
  totalLogCount: snapshot.totalLogCount,
3215
3244
  ...snapshot.logsTruncated ? { logsTruncated: true } : {},
3216
3245
  activeArtifactTableNamespace: snapshot.activeArtifactTableNamespace ?? null,
@@ -4438,6 +4467,8 @@ var DeeplineClient = class {
4438
4467
  db;
4439
4468
  /** Billing namespace: subscription status/cancel and invoice history. */
4440
4469
  billing;
4470
+ /** Workspace lifecycle namespace. */
4471
+ workspaces;
4441
4472
  /** Monitors namespace: access, catalog, deploy/check, and lifecycle. */
4442
4473
  monitors;
4443
4474
  /**
@@ -4486,6 +4517,9 @@ var DeeplineClient = class {
4486
4517
  transitionPlan: (options2) => this.transitionTargetBillingPlan(options2),
4487
4518
  portalSession: () => this.createTargetBillingPortalSession()
4488
4519
  };
4520
+ this.workspaces = {
4521
+ create: (options2) => this.createWorkspace(options2)
4522
+ };
4489
4523
  this.monitors = {
4490
4524
  status: () => this.getMonitorsAccess(),
4491
4525
  available: (toolIdOrOptions, options2) => this.getMonitorsAvailable(toolIdOrOptions, options2),
@@ -6637,6 +6671,23 @@ var DeeplineClient = class {
6637
6671
  const response = await this.http.post("/api/v2/billing/portal-sessions", {});
6638
6672
  return response.data;
6639
6673
  }
6674
+ /** Create an additional workspace through the durable PAYG workflow. */
6675
+ async createWorkspace(options) {
6676
+ const idempotencyKey = requireTargetBillingIdempotencyKey(
6677
+ options.idempotencyKey
6678
+ );
6679
+ const response = await this.http.post(
6680
+ "/api/v2/workspaces",
6681
+ { name: options.name },
6682
+ { "Idempotency-Key": idempotencyKey },
6683
+ { maxRetries: 0, exactUrlOnly: true }
6684
+ );
6685
+ return {
6686
+ ...response.data,
6687
+ operation: response.operation,
6688
+ ...response.request_id ? { request_id: response.request_id } : {}
6689
+ };
6690
+ }
6640
6691
  // ——————————————————————————————————————————————————————————
6641
6692
  // Monitors
6642
6693
  // ——————————————————————————————————————————————————————————
@@ -9824,7 +9875,7 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
9824
9875
  " fetch(key: string, url: string | URL, init?: RequestInit & { headers?: HeadersInit & { 'Idempotency-Key'?: string; 'X-Idempotency-Key'?: string }; auth?: SecretAuthInput }, options?: FetchOptions): Promise<PlayFetchResponse>;",
9825
9876
  " secrets: { get(name: string): SecretPromise; bearer(secret: string | SecretPromise | SecretHandle): SecretAuth; header(header: string, secret: string | SecretPromise | SecretHandle): SecretAuth };",
9826
9877
  ` runPlay<TOutput = unknown>(key: string, playRef: ${cloudReferenceType("ctx.runPlay.playRef")}, input: ${cloudReferenceType("ctx.runPlay.input")}, options: PlayCallOptions): Promise<TOutput>;`,
9827
- " log(message: string): void;",
9878
+ " log(message: string, options?: { level?: 'debug' | 'info' | 'warn' | 'error' }): void;",
9828
9879
  ` sleep(ms: ${cloudReferenceType("ctx.sleep.ms")}): Promise<void>;`,
9829
9880
  "}",
9830
9881
  "export type DefinePlayConfig<TInput, TOutput extends PlayReturnObject> = { id: string; description?: string; input: PlayInputContract<TInput>; run: (ctx: DeeplinePlayRuntimeContext, input: TInput) => Promise<TOutput>; bindings?: PlayBindings<TInput>; billing?: PlayBindings<TInput>['billing']; runtime?: PlayBindings<TInput>['runtime']; compatibility?: PlayBindings<TInput>['compatibility'] };",
package/dist/index.mjs CHANGED
@@ -744,7 +744,7 @@ var SDK_RELEASE = {
744
744
  // available at toolResponse.rawV2 while toolResponse.raw and all declared
745
745
  // getters keep their established compatibility behavior.
746
746
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
747
- version: "0.3.70",
747
+ version: "0.3.72",
748
748
  updateSummary: "Automatic CLI updates are now enabled by default. To opt out, run `deepline settings autoupdate off`; use `deepline settings autoupdate on` to re-enable updates or `deepline settings autoupdate pin <version>` to hold an exact release. This release also adds raw-v2 tool responses at toolResponse.rawV2 while preserving existing toolResponse.raw and declared getters.",
749
749
  packageCapabilities: {
750
750
  updatePreferences: 1
@@ -3050,6 +3050,33 @@ function decodePlayRunPublicStatus(value) {
3050
3050
  }
3051
3051
  }
3052
3052
 
3053
+ // ../play-runtime/log-provenance.ts
3054
+ var LOG_PROVENANCE_CLASSES = [
3055
+ "user",
3056
+ "lifecycle",
3057
+ "replay",
3058
+ "infra",
3059
+ "diagnostic",
3060
+ "receipt"
3061
+ ];
3062
+ var PROVENANCE_SENTINEL = "";
3063
+ var PROVENANCE_PREFIX = `${PROVENANCE_SENTINEL}prov:`;
3064
+ function readProvenanceTag(line) {
3065
+ if (!line.startsWith(PROVENANCE_PREFIX)) {
3066
+ return { provenance: null, line };
3067
+ }
3068
+ const end = line.indexOf(PROVENANCE_SENTINEL, PROVENANCE_PREFIX.length);
3069
+ if (end === -1) {
3070
+ return { provenance: null, line };
3071
+ }
3072
+ const candidate = line.slice(PROVENANCE_PREFIX.length, end);
3073
+ const provenance = LOG_PROVENANCE_CLASSES.includes(candidate) ? candidate : null;
3074
+ return { provenance, line: line.slice(end + 1) };
3075
+ }
3076
+ function stripProvenanceTag(line) {
3077
+ return readProvenanceTag(line).line;
3078
+ }
3079
+
3053
3080
  // ../play-runtime/run-snapshot-stream.ts
3054
3081
  function normalizePlayRunLiveStatus(value) {
3055
3082
  return normalizePlayRunLifecycleStatus(value);
@@ -3122,7 +3149,9 @@ function buildSnapshotFromLedger(snapshot) {
3122
3149
  finishedAt: snapshot.finishedAt ?? null,
3123
3150
  durationMs: snapshot.durationMs ?? null,
3124
3151
  updatedAt: snapshot.updatedAt ?? snapshot.finishedAt ?? snapshot.startedAt ?? null,
3125
- logs: snapshot.logTail,
3152
+ // This snapshot is public SDK/API transport. Keep the historical plain
3153
+ // timestamp-prefixed text while provenance remains runtime metadata.
3154
+ logs: snapshot.logTail.map(stripProvenanceTag),
3126
3155
  totalLogCount: snapshot.totalLogCount,
3127
3156
  ...snapshot.logsTruncated ? { logsTruncated: true } : {},
3128
3157
  activeArtifactTableNamespace: snapshot.activeArtifactTableNamespace ?? null,
@@ -4350,6 +4379,8 @@ var DeeplineClient = class {
4350
4379
  db;
4351
4380
  /** Billing namespace: subscription status/cancel and invoice history. */
4352
4381
  billing;
4382
+ /** Workspace lifecycle namespace. */
4383
+ workspaces;
4353
4384
  /** Monitors namespace: access, catalog, deploy/check, and lifecycle. */
4354
4385
  monitors;
4355
4386
  /**
@@ -4398,6 +4429,9 @@ var DeeplineClient = class {
4398
4429
  transitionPlan: (options2) => this.transitionTargetBillingPlan(options2),
4399
4430
  portalSession: () => this.createTargetBillingPortalSession()
4400
4431
  };
4432
+ this.workspaces = {
4433
+ create: (options2) => this.createWorkspace(options2)
4434
+ };
4401
4435
  this.monitors = {
4402
4436
  status: () => this.getMonitorsAccess(),
4403
4437
  available: (toolIdOrOptions, options2) => this.getMonitorsAvailable(toolIdOrOptions, options2),
@@ -6549,6 +6583,23 @@ var DeeplineClient = class {
6549
6583
  const response = await this.http.post("/api/v2/billing/portal-sessions", {});
6550
6584
  return response.data;
6551
6585
  }
6586
+ /** Create an additional workspace through the durable PAYG workflow. */
6587
+ async createWorkspace(options) {
6588
+ const idempotencyKey = requireTargetBillingIdempotencyKey(
6589
+ options.idempotencyKey
6590
+ );
6591
+ const response = await this.http.post(
6592
+ "/api/v2/workspaces",
6593
+ { name: options.name },
6594
+ { "Idempotency-Key": idempotencyKey },
6595
+ { maxRetries: 0, exactUrlOnly: true }
6596
+ );
6597
+ return {
6598
+ ...response.data,
6599
+ operation: response.operation,
6600
+ ...response.request_id ? { request_id: response.request_id } : {}
6601
+ };
6602
+ }
6552
6603
  // ——————————————————————————————————————————————————————————
6553
6604
  // Monitors
6554
6605
  // ——————————————————————————————————————————————————————————
@@ -9736,7 +9787,7 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
9736
9787
  " fetch(key: string, url: string | URL, init?: RequestInit & { headers?: HeadersInit & { 'Idempotency-Key'?: string; 'X-Idempotency-Key'?: string }; auth?: SecretAuthInput }, options?: FetchOptions): Promise<PlayFetchResponse>;",
9737
9788
  " secrets: { get(name: string): SecretPromise; bearer(secret: string | SecretPromise | SecretHandle): SecretAuth; header(header: string, secret: string | SecretPromise | SecretHandle): SecretAuth };",
9738
9789
  ` runPlay<TOutput = unknown>(key: string, playRef: ${cloudReferenceType("ctx.runPlay.playRef")}, input: ${cloudReferenceType("ctx.runPlay.input")}, options: PlayCallOptions): Promise<TOutput>;`,
9739
- " log(message: string): void;",
9790
+ " log(message: string, options?: { level?: 'debug' | 'info' | 'warn' | 'error' }): void;",
9740
9791
  ` sleep(ms: ${cloudReferenceType("ctx.sleep.ms")}): Promise<void>;`,
9741
9792
  "}",
9742
9793
  "export type DefinePlayConfig<TInput, TOutput extends PlayReturnObject> = { id: string; description?: string; input: PlayInputContract<TInput>; run: (ctx: DeeplinePlayRuntimeContext, input: TInput) => Promise<TOutput>; bindings?: PlayBindings<TInput>; billing?: PlayBindings<TInput>['billing']; runtime?: PlayBindings<TInput>['runtime']; compatibility?: PlayBindings<TInput>['compatibility'] };",
@@ -264,8 +264,8 @@
264
264
  "dist/cli/index.js",
265
265
  "dist/cli/index.mjs",
266
266
  "dist/cli/text-imports.d.ts",
267
- "dist/compiler-manifest-IkyvsUO-.d.mts",
268
- "dist/compiler-manifest-IkyvsUO-.d.ts",
267
+ "dist/compiler-manifest-CMNgA_JQ.d.mts",
268
+ "dist/compiler-manifest-CMNgA_JQ.d.ts",
269
269
  "dist/helpers.d.mts",
270
270
  "dist/helpers.d.ts",
271
271
  "dist/helpers.js",
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { P as PlayArtifactKind, a as PlayBundleArtifact, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-IkyvsUO-.mjs';
3
- export { d as PLAY_ARTIFACT_KINDS, e as PlayArtifactCompatibility, f as PlayImportPolicy, g as PlayPackageImport, h as PlayRuntimeFeature } from '../compiler-manifest-IkyvsUO-.mjs';
2
+ import { P as PlayArtifactKind, a as PlayBundleArtifact, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-CMNgA_JQ.mjs';
3
+ export { d as PLAY_ARTIFACT_KINDS, e as PlayArtifactCompatibility, f as PlayImportPolicy, g as PlayPackageImport, h as PlayRuntimeFeature } from '../compiler-manifest-CMNgA_JQ.mjs';
4
4
  import '@sinclair/typebox';
5
5
 
6
6
  type ImportedPlayDependency = {
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { P as PlayArtifactKind, a as PlayBundleArtifact, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-IkyvsUO-.js';
3
- export { d as PLAY_ARTIFACT_KINDS, e as PlayArtifactCompatibility, f as PlayImportPolicy, g as PlayPackageImport, h as PlayRuntimeFeature } from '../compiler-manifest-IkyvsUO-.js';
2
+ import { P as PlayArtifactKind, a as PlayBundleArtifact, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-CMNgA_JQ.js';
3
+ export { d as PLAY_ARTIFACT_KINDS, e as PlayArtifactCompatibility, f as PlayImportPolicy, g as PlayPackageImport, h as PlayRuntimeFeature } from '../compiler-manifest-CMNgA_JQ.js';
4
4
  import '@sinclair/typebox';
5
5
 
6
6
  type ImportedPlayDependency = {
@@ -1447,7 +1447,7 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
1447
1447
  " fetch(key: string, url: string | URL, init?: RequestInit & { headers?: HeadersInit & { 'Idempotency-Key'?: string; 'X-Idempotency-Key'?: string }; auth?: SecretAuthInput }, options?: FetchOptions): Promise<PlayFetchResponse>;",
1448
1448
  " secrets: { get(name: string): SecretPromise; bearer(secret: string | SecretPromise | SecretHandle): SecretAuth; header(header: string, secret: string | SecretPromise | SecretHandle): SecretAuth };",
1449
1449
  ` runPlay<TOutput = unknown>(key: string, playRef: ${cloudReferenceType("ctx.runPlay.playRef")}, input: ${cloudReferenceType("ctx.runPlay.input")}, options: PlayCallOptions): Promise<TOutput>;`,
1450
- " log(message: string): void;",
1450
+ " log(message: string, options?: { level?: 'debug' | 'info' | 'warn' | 'error' }): void;",
1451
1451
  ` sleep(ms: ${cloudReferenceType("ctx.sleep.ms")}): Promise<void>;`,
1452
1452
  "}",
1453
1453
  "export type DefinePlayConfig<TInput, TOutput extends PlayReturnObject> = { id: string; description?: string; input: PlayInputContract<TInput>; run: (ctx: DeeplinePlayRuntimeContext, input: TInput) => Promise<TOutput>; bindings?: PlayBindings<TInput>; billing?: PlayBindings<TInput>['billing']; runtime?: PlayBindings<TInput>['runtime']; compatibility?: PlayBindings<TInput>['compatibility'] };",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.3.70",
3
+ "version": "0.3.72",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",