deepline 0.3.115 → 0.3.117
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/bundling-sources/sdk/src/client.ts +356 -12
- package/dist/bundling-sources/sdk/src/index.ts +12 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/billing/state.ts +36 -6
- package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +0 -1
- package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +6 -3
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +52 -15
- package/dist/bundling-sources/shared_libs/monitors/monitor-job-state.ts +44 -0
- package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +76 -3
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +81 -6
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-status.ts +26 -10
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +128 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -0
- package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +2 -2
- package/dist/cli/index.js +413 -68
- package/dist/cli/index.mjs +413 -68
- package/dist/index.d.mts +155 -13
- package/dist/index.d.ts +155 -13
- package/dist/index.js +137 -2
- package/dist/index.mjs +134 -2
- package/dist/install-integrity.json +1 -0
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +1 -1
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3272,10 +3272,26 @@ type MonitorsAvailableOptions = {
|
|
|
3272
3272
|
/** Ask the server for high-signal fields only. */
|
|
3273
3273
|
compact?: boolean;
|
|
3274
3274
|
};
|
|
3275
|
+
/**
|
|
3276
|
+
* Stable customer-facing Monitor/Fleet state.
|
|
3277
|
+
*
|
|
3278
|
+
* Provider provisioning, cleanup, retries, and failures are Monitor Job
|
|
3279
|
+
* progress and must never be added to this union. The `status` and `active`
|
|
3280
|
+
* fields below are retained only as deprecated compatibility aliases for
|
|
3281
|
+
* older API responses.
|
|
3282
|
+
*/
|
|
3283
|
+
type MonitorState = 'active' | 'billing_suspended' | 'disabled';
|
|
3284
|
+
/** List filters accepted by the canonical state surface. */
|
|
3285
|
+
type MonitorStateFilter = MonitorState | 'all';
|
|
3286
|
+
/** The pre-state list filter retained for installed-client compatibility. */
|
|
3287
|
+
type LegacyMonitorStatusFilter = 'active' | 'inactive' | 'all';
|
|
3275
3288
|
/** One deployed monitor row returned by `client.monitors.list(...)`. */
|
|
3276
3289
|
type MonitorListEntry = {
|
|
3277
3290
|
key?: string;
|
|
3278
3291
|
monitor_key?: string;
|
|
3292
|
+
/** Canonical customer-facing lifecycle state. */
|
|
3293
|
+
state?: MonitorState;
|
|
3294
|
+
/** @deprecated Use state. `inactive` is projected as `disabled`. */
|
|
3279
3295
|
status?: string;
|
|
3280
3296
|
tool?: string;
|
|
3281
3297
|
/** Generic provider-authored event category for this deployed monitor. */
|
|
@@ -3304,7 +3320,18 @@ type MonitorsListResult = {
|
|
|
3304
3320
|
/** @deprecated Use has_more. */
|
|
3305
3321
|
is_truncated?: boolean;
|
|
3306
3322
|
next_cursor?: string | null;
|
|
3323
|
+
/** Canonical state filter echoed by newer servers. */
|
|
3324
|
+
state_filter_applied?: MonitorStateFilter;
|
|
3325
|
+
/** Canonical state counts. */
|
|
3326
|
+
state_summary?: Array<{
|
|
3327
|
+
state: MonitorState;
|
|
3328
|
+
count: number;
|
|
3329
|
+
}>;
|
|
3330
|
+
/** Whether state_summary counts this page or the full applied state filter. */
|
|
3331
|
+
state_summary_scope?: 'page' | 'filter_total';
|
|
3332
|
+
/** @deprecated Use state_filter_applied. */
|
|
3307
3333
|
status_filter_applied?: string;
|
|
3334
|
+
/** @deprecated Use state_summary. */
|
|
3308
3335
|
status_summary?: Array<{
|
|
3309
3336
|
status: string;
|
|
3310
3337
|
count: number;
|
|
@@ -3314,8 +3341,10 @@ type MonitorsListResult = {
|
|
|
3314
3341
|
};
|
|
3315
3342
|
/** Options for `client.monitors.list(...)`. */
|
|
3316
3343
|
type MonitorsListOptions = {
|
|
3317
|
-
/** active
|
|
3318
|
-
|
|
3344
|
+
/** Canonical customer state filter; active is the default. */
|
|
3345
|
+
state?: MonitorStateFilter;
|
|
3346
|
+
/** @deprecated Use state. `inactive` remains accepted for old servers. */
|
|
3347
|
+
status?: LegacyMonitorStatusFilter | (string & {});
|
|
3319
3348
|
limit?: number | string;
|
|
3320
3349
|
/** Page past a truncated result using a prior response's `next_cursor`. */
|
|
3321
3350
|
cursor?: string;
|
|
@@ -3345,6 +3374,12 @@ type MonitorSpec = {
|
|
|
3345
3374
|
};
|
|
3346
3375
|
/** One deployed-monitor read. The server may add monitor-specific fields. */
|
|
3347
3376
|
type MonitorDetail = Record<string, unknown> & {
|
|
3377
|
+
/** Canonical customer-facing lifecycle state. */
|
|
3378
|
+
state?: MonitorState;
|
|
3379
|
+
/** @deprecated Use state. */
|
|
3380
|
+
status?: string;
|
|
3381
|
+
/** @deprecated Use state. */
|
|
3382
|
+
active?: boolean;
|
|
3348
3383
|
monitor_spec?: MonitorSpec;
|
|
3349
3384
|
};
|
|
3350
3385
|
type MonitorDependents = Record<string, unknown>;
|
|
@@ -3397,18 +3432,94 @@ type MonitorValidateResult = Record<string, unknown>;
|
|
|
3397
3432
|
/**
|
|
3398
3433
|
* Server-owned fleet response envelope.
|
|
3399
3434
|
*
|
|
3400
|
-
* The server computes
|
|
3401
|
-
*
|
|
3402
|
-
*
|
|
3403
|
-
* moment the server changes what "converged" means.
|
|
3435
|
+
* The server computes the canonical customer `state` and the SDK never
|
|
3436
|
+
* recomputes it. Transitional convergence details remain in the owning Fleet
|
|
3437
|
+
* Job; the deprecated `status` alias is retained only for installed clients.
|
|
3404
3438
|
*/
|
|
3405
|
-
type MonitorFleetResult = Record<string, unknown
|
|
3406
|
-
/**
|
|
3407
|
-
|
|
3439
|
+
type MonitorFleetResult = Record<string, unknown> & {
|
|
3440
|
+
/** Canonical customer-facing Fleet state. */
|
|
3441
|
+
state?: MonitorState;
|
|
3442
|
+
/** @deprecated Fleet operation/convergence status; use state + jobs. */
|
|
3443
|
+
status?: string;
|
|
3444
|
+
};
|
|
3445
|
+
/** Standalone SDK mirror of the server-owned Monitor Job contract. */
|
|
3446
|
+
declare const MONITOR_JOB_STATES: readonly ["queued", "running", "cancelling", "succeeded", "failed", "cancelled"];
|
|
3447
|
+
type MonitorJobState = (typeof MONITOR_JOB_STATES)[number];
|
|
3448
|
+
declare const MONITOR_JOB_PHASES: readonly ["queued", "provider_create", "provider_readback", "reconciliation", "completed"];
|
|
3449
|
+
type MonitorJobPhase = (typeof MONITOR_JOB_PHASES)[number];
|
|
3450
|
+
declare const MONITOR_JOB_RECONCILIATION_STATES: readonly ["pending", "aligned", "partial", "mismatched"];
|
|
3451
|
+
type MonitorJobReconciliationState = (typeof MONITOR_JOB_RECONCILIATION_STATES)[number];
|
|
3452
|
+
type MonitorJobProjection = {
|
|
3453
|
+
id: string;
|
|
3454
|
+
kind: 'batch_deploy' | 'fleet_deploy';
|
|
3455
|
+
state: MonitorJobState;
|
|
3456
|
+
phase: MonitorJobPhase;
|
|
3457
|
+
target: {
|
|
3458
|
+
monitor_key?: string;
|
|
3459
|
+
batch_id?: string;
|
|
3460
|
+
generation?: number;
|
|
3461
|
+
fleet_id?: string;
|
|
3462
|
+
};
|
|
3463
|
+
counts: {
|
|
3464
|
+
requested: number;
|
|
3465
|
+
valid: number;
|
|
3466
|
+
queued: number;
|
|
3467
|
+
running: number;
|
|
3468
|
+
created: number;
|
|
3469
|
+
updated: number;
|
|
3470
|
+
removed: number;
|
|
3471
|
+
unchanged: number;
|
|
3472
|
+
settled: number;
|
|
3473
|
+
verified: number;
|
|
3474
|
+
failed: number;
|
|
3475
|
+
cancelled_before_start: number;
|
|
3476
|
+
};
|
|
3477
|
+
reconciliation: {
|
|
3478
|
+
state: MonitorJobReconciliationState;
|
|
3479
|
+
expected_bindings: number;
|
|
3480
|
+
observed_bindings: number;
|
|
3481
|
+
active_mismatches: number;
|
|
3482
|
+
provider_only_matching_markers: number;
|
|
3483
|
+
next?: string;
|
|
3484
|
+
};
|
|
3485
|
+
error?: string;
|
|
3486
|
+
};
|
|
3487
|
+
type MonitorNamedBatchProjection = {
|
|
3488
|
+
id: string;
|
|
3489
|
+
state: 'active' | 'stopped';
|
|
3490
|
+
generation: number;
|
|
3491
|
+
desired_count: number;
|
|
3492
|
+
retained_count: number;
|
|
3493
|
+
last_job_id: string;
|
|
3494
|
+
updated_at: string;
|
|
3495
|
+
};
|
|
3496
|
+
/** Shared typed envelope for immutable batch and desired-set Monitor Jobs. */
|
|
3497
|
+
type MonitorJobResult = {
|
|
3498
|
+
ok?: boolean;
|
|
3499
|
+
job?: MonitorJobProjection;
|
|
3500
|
+
batch?: MonitorNamedBatchProjection;
|
|
3501
|
+
logs?: Array<{
|
|
3502
|
+
level: string;
|
|
3503
|
+
phase: string;
|
|
3504
|
+
message: string;
|
|
3505
|
+
monitor_key?: string;
|
|
3506
|
+
at: string;
|
|
3507
|
+
}>;
|
|
3508
|
+
replayed?: boolean;
|
|
3509
|
+
already_terminal?: boolean;
|
|
3510
|
+
next?: string;
|
|
3511
|
+
[key: string]: unknown;
|
|
3512
|
+
};
|
|
3408
3513
|
type MonitorJobDeployOptions = {
|
|
3409
3514
|
/** Stable retry key; the server binds it to the submitted immutable set. */
|
|
3410
3515
|
idempotencyKey?: string;
|
|
3411
3516
|
};
|
|
3517
|
+
type MonitorLifecycleOptions = {
|
|
3518
|
+
/** Return the plan without changing provider state. */
|
|
3519
|
+
dryRun?: boolean;
|
|
3520
|
+
/** Stable retry key for durable start/stop work. */
|
|
3521
|
+
idempotencyKey?: string;
|
|
3522
|
+
};
|
|
3412
3523
|
type MonitorJobLogsOptions = {
|
|
3413
3524
|
limit?: number;
|
|
3414
3525
|
};
|
|
@@ -3499,7 +3610,7 @@ type MonitorBatchOperationResult = {
|
|
|
3499
3610
|
rejoined?: boolean;
|
|
3500
3611
|
operation: {
|
|
3501
3612
|
runId: string;
|
|
3502
|
-
kind: 'audit' | 'converge' | 'deactivate' | 'reactivate' | 'deploy' | 'repair';
|
|
3613
|
+
kind: 'audit' | 'converge' | 'deactivate' | 'reactivate' | 'deploy' | 'repair' | 'named_batch';
|
|
3503
3614
|
state: 'running' | 'retry_scheduled' | 'completed' | 'failed' | 'cancelled';
|
|
3504
3615
|
dryRun: boolean;
|
|
3505
3616
|
scope: unknown;
|
|
@@ -3536,6 +3647,10 @@ type MonitorFleetsNamespace = {
|
|
|
3536
3647
|
deactivate: (fleetId: string, options?: MonitorFleetDeactivateOptions) => Promise<MonitorFleetResult>;
|
|
3537
3648
|
/** Explicitly recreate a fleet after a credit-triggered suspension. */
|
|
3538
3649
|
reactivate: (fleetId: string, options?: MonitorFleetReactivateOptions) => Promise<MonitorFleetResult>;
|
|
3650
|
+
/** Customer-facing alias for `reactivate`. */
|
|
3651
|
+
start: (fleetId: string, options?: MonitorFleetReactivateOptions) => Promise<MonitorFleetResult>;
|
|
3652
|
+
/** Customer-facing alias for `deactivate`. */
|
|
3653
|
+
stop: (fleetId: string, options?: MonitorFleetDeactivateOptions) => Promise<MonitorFleetResult>;
|
|
3539
3654
|
/** Poll the fleet until the server reports a terminal status (or the timeout elapses). */
|
|
3540
3655
|
waitForConvergence: (fleetId: string, options?: MonitorFleetWaitOptions) => Promise<MonitorFleetResult>;
|
|
3541
3656
|
};
|
|
@@ -3547,6 +3662,16 @@ type MonitorBatchNamespace = {
|
|
|
3547
3662
|
cursor?: string | null;
|
|
3548
3663
|
}) => Promise<MonitorBatchOperationResult>;
|
|
3549
3664
|
};
|
|
3665
|
+
type MonitorNamedBatchOptions = {
|
|
3666
|
+
idempotencyKey?: string;
|
|
3667
|
+
expectedGeneration?: number;
|
|
3668
|
+
};
|
|
3669
|
+
type MonitorNamedBatchesNamespace = {
|
|
3670
|
+
sync: (batchId: string, definitions: MonitorDefinition[], options?: MonitorNamedBatchOptions) => Promise<MonitorJobResult>;
|
|
3671
|
+
start: (batchId: string, options?: Pick<MonitorNamedBatchOptions, 'idempotencyKey'>) => Promise<MonitorJobResult>;
|
|
3672
|
+
stop: (batchId: string, options?: Pick<MonitorNamedBatchOptions, 'idempotencyKey'>) => Promise<MonitorJobResult>;
|
|
3673
|
+
get: (batchId: string) => Promise<MonitorJobResult>;
|
|
3674
|
+
};
|
|
3550
3675
|
/**
|
|
3551
3676
|
* Delivery and convergence health for a scope, from
|
|
3552
3677
|
* `GET /api/v2/monitors/health`.
|
|
@@ -3612,7 +3737,7 @@ type MonitorsHealth = {
|
|
|
3612
3737
|
/** Bounded current durable monitor work, if the server supports it. */
|
|
3613
3738
|
batch_operations?: Array<{
|
|
3614
3739
|
run_id: string;
|
|
3615
|
-
kind: 'audit' | 'converge' | 'deactivate' | 'reactivate' | 'repair' | 'deploy';
|
|
3740
|
+
kind: 'audit' | 'converge' | 'deactivate' | 'named_batch' | 'reactivate' | 'repair' | 'deploy';
|
|
3616
3741
|
state: 'running' | 'retry_scheduled';
|
|
3617
3742
|
updated_at: number;
|
|
3618
3743
|
next_attempt_at?: number;
|
|
@@ -3716,7 +3841,11 @@ type MonitorsNamespace = {
|
|
|
3716
3841
|
deploy: (definition: MonitorDefinition, options?: {
|
|
3717
3842
|
dryRun?: boolean;
|
|
3718
3843
|
}) => Promise<MonitorDeployResult>;
|
|
3719
|
-
/**
|
|
3844
|
+
/** Set the desired definition for one stable monitor key. */
|
|
3845
|
+
sync: (definition: MonitorDefinition, options?: MonitorLifecycleOptions) => Promise<MonitorJobResult | MonitorDeployResult>;
|
|
3846
|
+
/** List deployed monitors (active by default). Use `state` to filter the
|
|
3847
|
+
* three customer states; `status` is retained for older servers.
|
|
3848
|
+
* `includeConsumers` requires a limit of 20 or fewer. */
|
|
3720
3849
|
list: (options?: MonitorsListOptions) => Promise<MonitorsListResult>;
|
|
3721
3850
|
/** Fetch one deployed monitor by public key with bounded current listener health. */
|
|
3722
3851
|
get: (key: string) => Promise<MonitorDetail>;
|
|
@@ -3735,6 +3864,10 @@ type MonitorsNamespace = {
|
|
|
3735
3864
|
reactivate: (key: string, options?: {
|
|
3736
3865
|
dryRun?: boolean;
|
|
3737
3866
|
}) => Promise<MonitorReactivateResult>;
|
|
3867
|
+
/** Explicitly apply the retained definition for a stopped monitor. */
|
|
3868
|
+
start: (key: string, options?: MonitorLifecycleOptions) => Promise<MonitorJobResult | MonitorBatchOperationResult>;
|
|
3869
|
+
/** Converge one monitor to inactive while retaining its definition. */
|
|
3870
|
+
stop: (key: string, options?: MonitorLifecycleOptions) => Promise<MonitorJobResult | MonitorBatchOperationResult>;
|
|
3738
3871
|
/**
|
|
3739
3872
|
* Re-read what the provider holds onto the monitors that claim it. Bounded
|
|
3740
3873
|
* and idempotent: pass `cursor` back while `audit.cursor` is non-null.
|
|
@@ -3759,6 +3892,8 @@ type MonitorsNamespace = {
|
|
|
3759
3892
|
fleets: MonitorFleetsNamespace;
|
|
3760
3893
|
/** Deploy an immutable one-off list through the common Monitor Job engine. */
|
|
3761
3894
|
batch: MonitorBatchNamespace;
|
|
3895
|
+
/** Reconcile and control a stable named static Batch. */
|
|
3896
|
+
batches: MonitorNamedBatchesNamespace;
|
|
3762
3897
|
/** Read, wait for, inspect, or cancel Monitor Jobs. */
|
|
3763
3898
|
jobs: MonitorJobsNamespace;
|
|
3764
3899
|
};
|
|
@@ -5266,6 +5401,13 @@ declare class DeeplineClient {
|
|
|
5266
5401
|
private monitorJobIdempotencyKey;
|
|
5267
5402
|
private monitorJobHeaders;
|
|
5268
5403
|
deployMonitorBatch(definitions: MonitorDefinition[], options?: MonitorJobDeployOptions): Promise<MonitorJobResult>;
|
|
5404
|
+
private namedMonitorBatchPath;
|
|
5405
|
+
syncNamedMonitorBatch(batchId: string, definitions: MonitorDefinition[], options?: MonitorNamedBatchOptions): Promise<MonitorJobResult>;
|
|
5406
|
+
startNamedMonitorBatch(batchId: string, options?: Pick<MonitorNamedBatchOptions, 'idempotencyKey'>): Promise<MonitorJobResult>;
|
|
5407
|
+
stopNamedMonitorBatch(batchId: string, options?: Pick<MonitorNamedBatchOptions, 'idempotencyKey'>): Promise<MonitorJobResult>;
|
|
5408
|
+
getNamedMonitorBatch(batchId: string): Promise<MonitorJobResult>;
|
|
5409
|
+
submitScalarMonitorLifecycle(monitorKey: string, action: 'start' | 'stop', options?: Pick<MonitorLifecycleOptions, 'idempotencyKey'>): Promise<MonitorJobResult>;
|
|
5410
|
+
syncScalarMonitor(definition: MonitorDefinition, options?: Pick<MonitorLifecycleOptions, 'idempotencyKey'>): Promise<MonitorJobResult>;
|
|
5269
5411
|
getMonitorJob(jobId: string): Promise<MonitorJobResult>;
|
|
5270
5412
|
getMonitorJobLogs(jobId: string, options?: MonitorJobLogsOptions): Promise<MonitorJobResult>;
|
|
5271
5413
|
cancelMonitorJob(jobId: string): Promise<MonitorJobResult>;
|
|
@@ -6305,4 +6447,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
6305
6447
|
*/
|
|
6306
6448
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
6307
6449
|
|
|
6308
|
-
export { type AsyncPlayRunRef, 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 CreateNotificationGroupInput, type CreateNotificationGroupResult, 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, type MonitorBatchNamespace, type MonitorCheckResult, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetDeactivateOptions, MonitorFleetDefinition, type MonitorFleetGetOptions, type MonitorFleetReactivateOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetWaitOptions, type MonitorFleetsNamespace, type MonitorJobDeployOptions, type MonitorJobLogsOptions, type MonitorJobResult, type MonitorJobWaitOptions, type MonitorJobsNamespace, 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 PlayAsyncCallOptions, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayCostEstimate, type PlayFetchResponse, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayReferenceLike, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunId, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PlaysListOptions, type PlaysListPage, type PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsListPage, 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, ToolResultBilling, type ToolSearchOptions, type ToolSearchResult, type WorkspaceCreateResult, type WorkspacesNamespace, defineInput, defineMonitor, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
|
6450
|
+
export { type AsyncPlayRunRef, 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 CreateNotificationGroupInput, type CreateNotificationGroupResult, 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 LegacyMonitorStatusFilter, type LiveEventEnvelope, MONITOR_JOB_PHASES, MONITOR_JOB_RECONCILIATION_STATES, MONITOR_JOB_STATES, type MonitorBatchNamespace, type MonitorCheckResult, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetDeactivateOptions, MonitorFleetDefinition, type MonitorFleetGetOptions, type MonitorFleetReactivateOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetWaitOptions, type MonitorFleetsNamespace, type MonitorJobDeployOptions, type MonitorJobLogsOptions, type MonitorJobPhase, type MonitorJobReconciliationState, type MonitorJobResult, type MonitorJobState, type MonitorJobWaitOptions, type MonitorJobsNamespace, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorSpec, type MonitorState, type MonitorStateFilter, 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 PlayAsyncCallOptions, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayCostEstimate, type PlayFetchResponse, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayReferenceLike, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunId, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PlaysListOptions, type PlaysListPage, type PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsListPage, 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, ToolResultBilling, type ToolSearchOptions, type ToolSearchResult, type WorkspaceCreateResult, type WorkspacesNamespace, defineInput, defineMonitor, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
package/dist/index.d.ts
CHANGED
|
@@ -3272,10 +3272,26 @@ type MonitorsAvailableOptions = {
|
|
|
3272
3272
|
/** Ask the server for high-signal fields only. */
|
|
3273
3273
|
compact?: boolean;
|
|
3274
3274
|
};
|
|
3275
|
+
/**
|
|
3276
|
+
* Stable customer-facing Monitor/Fleet state.
|
|
3277
|
+
*
|
|
3278
|
+
* Provider provisioning, cleanup, retries, and failures are Monitor Job
|
|
3279
|
+
* progress and must never be added to this union. The `status` and `active`
|
|
3280
|
+
* fields below are retained only as deprecated compatibility aliases for
|
|
3281
|
+
* older API responses.
|
|
3282
|
+
*/
|
|
3283
|
+
type MonitorState = 'active' | 'billing_suspended' | 'disabled';
|
|
3284
|
+
/** List filters accepted by the canonical state surface. */
|
|
3285
|
+
type MonitorStateFilter = MonitorState | 'all';
|
|
3286
|
+
/** The pre-state list filter retained for installed-client compatibility. */
|
|
3287
|
+
type LegacyMonitorStatusFilter = 'active' | 'inactive' | 'all';
|
|
3275
3288
|
/** One deployed monitor row returned by `client.monitors.list(...)`. */
|
|
3276
3289
|
type MonitorListEntry = {
|
|
3277
3290
|
key?: string;
|
|
3278
3291
|
monitor_key?: string;
|
|
3292
|
+
/** Canonical customer-facing lifecycle state. */
|
|
3293
|
+
state?: MonitorState;
|
|
3294
|
+
/** @deprecated Use state. `inactive` is projected as `disabled`. */
|
|
3279
3295
|
status?: string;
|
|
3280
3296
|
tool?: string;
|
|
3281
3297
|
/** Generic provider-authored event category for this deployed monitor. */
|
|
@@ -3304,7 +3320,18 @@ type MonitorsListResult = {
|
|
|
3304
3320
|
/** @deprecated Use has_more. */
|
|
3305
3321
|
is_truncated?: boolean;
|
|
3306
3322
|
next_cursor?: string | null;
|
|
3323
|
+
/** Canonical state filter echoed by newer servers. */
|
|
3324
|
+
state_filter_applied?: MonitorStateFilter;
|
|
3325
|
+
/** Canonical state counts. */
|
|
3326
|
+
state_summary?: Array<{
|
|
3327
|
+
state: MonitorState;
|
|
3328
|
+
count: number;
|
|
3329
|
+
}>;
|
|
3330
|
+
/** Whether state_summary counts this page or the full applied state filter. */
|
|
3331
|
+
state_summary_scope?: 'page' | 'filter_total';
|
|
3332
|
+
/** @deprecated Use state_filter_applied. */
|
|
3307
3333
|
status_filter_applied?: string;
|
|
3334
|
+
/** @deprecated Use state_summary. */
|
|
3308
3335
|
status_summary?: Array<{
|
|
3309
3336
|
status: string;
|
|
3310
3337
|
count: number;
|
|
@@ -3314,8 +3341,10 @@ type MonitorsListResult = {
|
|
|
3314
3341
|
};
|
|
3315
3342
|
/** Options for `client.monitors.list(...)`. */
|
|
3316
3343
|
type MonitorsListOptions = {
|
|
3317
|
-
/** active
|
|
3318
|
-
|
|
3344
|
+
/** Canonical customer state filter; active is the default. */
|
|
3345
|
+
state?: MonitorStateFilter;
|
|
3346
|
+
/** @deprecated Use state. `inactive` remains accepted for old servers. */
|
|
3347
|
+
status?: LegacyMonitorStatusFilter | (string & {});
|
|
3319
3348
|
limit?: number | string;
|
|
3320
3349
|
/** Page past a truncated result using a prior response's `next_cursor`. */
|
|
3321
3350
|
cursor?: string;
|
|
@@ -3345,6 +3374,12 @@ type MonitorSpec = {
|
|
|
3345
3374
|
};
|
|
3346
3375
|
/** One deployed-monitor read. The server may add monitor-specific fields. */
|
|
3347
3376
|
type MonitorDetail = Record<string, unknown> & {
|
|
3377
|
+
/** Canonical customer-facing lifecycle state. */
|
|
3378
|
+
state?: MonitorState;
|
|
3379
|
+
/** @deprecated Use state. */
|
|
3380
|
+
status?: string;
|
|
3381
|
+
/** @deprecated Use state. */
|
|
3382
|
+
active?: boolean;
|
|
3348
3383
|
monitor_spec?: MonitorSpec;
|
|
3349
3384
|
};
|
|
3350
3385
|
type MonitorDependents = Record<string, unknown>;
|
|
@@ -3397,18 +3432,94 @@ type MonitorValidateResult = Record<string, unknown>;
|
|
|
3397
3432
|
/**
|
|
3398
3433
|
* Server-owned fleet response envelope.
|
|
3399
3434
|
*
|
|
3400
|
-
* The server computes
|
|
3401
|
-
*
|
|
3402
|
-
*
|
|
3403
|
-
* moment the server changes what "converged" means.
|
|
3435
|
+
* The server computes the canonical customer `state` and the SDK never
|
|
3436
|
+
* recomputes it. Transitional convergence details remain in the owning Fleet
|
|
3437
|
+
* Job; the deprecated `status` alias is retained only for installed clients.
|
|
3404
3438
|
*/
|
|
3405
|
-
type MonitorFleetResult = Record<string, unknown
|
|
3406
|
-
/**
|
|
3407
|
-
|
|
3439
|
+
type MonitorFleetResult = Record<string, unknown> & {
|
|
3440
|
+
/** Canonical customer-facing Fleet state. */
|
|
3441
|
+
state?: MonitorState;
|
|
3442
|
+
/** @deprecated Fleet operation/convergence status; use state + jobs. */
|
|
3443
|
+
status?: string;
|
|
3444
|
+
};
|
|
3445
|
+
/** Standalone SDK mirror of the server-owned Monitor Job contract. */
|
|
3446
|
+
declare const MONITOR_JOB_STATES: readonly ["queued", "running", "cancelling", "succeeded", "failed", "cancelled"];
|
|
3447
|
+
type MonitorJobState = (typeof MONITOR_JOB_STATES)[number];
|
|
3448
|
+
declare const MONITOR_JOB_PHASES: readonly ["queued", "provider_create", "provider_readback", "reconciliation", "completed"];
|
|
3449
|
+
type MonitorJobPhase = (typeof MONITOR_JOB_PHASES)[number];
|
|
3450
|
+
declare const MONITOR_JOB_RECONCILIATION_STATES: readonly ["pending", "aligned", "partial", "mismatched"];
|
|
3451
|
+
type MonitorJobReconciliationState = (typeof MONITOR_JOB_RECONCILIATION_STATES)[number];
|
|
3452
|
+
type MonitorJobProjection = {
|
|
3453
|
+
id: string;
|
|
3454
|
+
kind: 'batch_deploy' | 'fleet_deploy';
|
|
3455
|
+
state: MonitorJobState;
|
|
3456
|
+
phase: MonitorJobPhase;
|
|
3457
|
+
target: {
|
|
3458
|
+
monitor_key?: string;
|
|
3459
|
+
batch_id?: string;
|
|
3460
|
+
generation?: number;
|
|
3461
|
+
fleet_id?: string;
|
|
3462
|
+
};
|
|
3463
|
+
counts: {
|
|
3464
|
+
requested: number;
|
|
3465
|
+
valid: number;
|
|
3466
|
+
queued: number;
|
|
3467
|
+
running: number;
|
|
3468
|
+
created: number;
|
|
3469
|
+
updated: number;
|
|
3470
|
+
removed: number;
|
|
3471
|
+
unchanged: number;
|
|
3472
|
+
settled: number;
|
|
3473
|
+
verified: number;
|
|
3474
|
+
failed: number;
|
|
3475
|
+
cancelled_before_start: number;
|
|
3476
|
+
};
|
|
3477
|
+
reconciliation: {
|
|
3478
|
+
state: MonitorJobReconciliationState;
|
|
3479
|
+
expected_bindings: number;
|
|
3480
|
+
observed_bindings: number;
|
|
3481
|
+
active_mismatches: number;
|
|
3482
|
+
provider_only_matching_markers: number;
|
|
3483
|
+
next?: string;
|
|
3484
|
+
};
|
|
3485
|
+
error?: string;
|
|
3486
|
+
};
|
|
3487
|
+
type MonitorNamedBatchProjection = {
|
|
3488
|
+
id: string;
|
|
3489
|
+
state: 'active' | 'stopped';
|
|
3490
|
+
generation: number;
|
|
3491
|
+
desired_count: number;
|
|
3492
|
+
retained_count: number;
|
|
3493
|
+
last_job_id: string;
|
|
3494
|
+
updated_at: string;
|
|
3495
|
+
};
|
|
3496
|
+
/** Shared typed envelope for immutable batch and desired-set Monitor Jobs. */
|
|
3497
|
+
type MonitorJobResult = {
|
|
3498
|
+
ok?: boolean;
|
|
3499
|
+
job?: MonitorJobProjection;
|
|
3500
|
+
batch?: MonitorNamedBatchProjection;
|
|
3501
|
+
logs?: Array<{
|
|
3502
|
+
level: string;
|
|
3503
|
+
phase: string;
|
|
3504
|
+
message: string;
|
|
3505
|
+
monitor_key?: string;
|
|
3506
|
+
at: string;
|
|
3507
|
+
}>;
|
|
3508
|
+
replayed?: boolean;
|
|
3509
|
+
already_terminal?: boolean;
|
|
3510
|
+
next?: string;
|
|
3511
|
+
[key: string]: unknown;
|
|
3512
|
+
};
|
|
3408
3513
|
type MonitorJobDeployOptions = {
|
|
3409
3514
|
/** Stable retry key; the server binds it to the submitted immutable set. */
|
|
3410
3515
|
idempotencyKey?: string;
|
|
3411
3516
|
};
|
|
3517
|
+
type MonitorLifecycleOptions = {
|
|
3518
|
+
/** Return the plan without changing provider state. */
|
|
3519
|
+
dryRun?: boolean;
|
|
3520
|
+
/** Stable retry key for durable start/stop work. */
|
|
3521
|
+
idempotencyKey?: string;
|
|
3522
|
+
};
|
|
3412
3523
|
type MonitorJobLogsOptions = {
|
|
3413
3524
|
limit?: number;
|
|
3414
3525
|
};
|
|
@@ -3499,7 +3610,7 @@ type MonitorBatchOperationResult = {
|
|
|
3499
3610
|
rejoined?: boolean;
|
|
3500
3611
|
operation: {
|
|
3501
3612
|
runId: string;
|
|
3502
|
-
kind: 'audit' | 'converge' | 'deactivate' | 'reactivate' | 'deploy' | 'repair';
|
|
3613
|
+
kind: 'audit' | 'converge' | 'deactivate' | 'reactivate' | 'deploy' | 'repair' | 'named_batch';
|
|
3503
3614
|
state: 'running' | 'retry_scheduled' | 'completed' | 'failed' | 'cancelled';
|
|
3504
3615
|
dryRun: boolean;
|
|
3505
3616
|
scope: unknown;
|
|
@@ -3536,6 +3647,10 @@ type MonitorFleetsNamespace = {
|
|
|
3536
3647
|
deactivate: (fleetId: string, options?: MonitorFleetDeactivateOptions) => Promise<MonitorFleetResult>;
|
|
3537
3648
|
/** Explicitly recreate a fleet after a credit-triggered suspension. */
|
|
3538
3649
|
reactivate: (fleetId: string, options?: MonitorFleetReactivateOptions) => Promise<MonitorFleetResult>;
|
|
3650
|
+
/** Customer-facing alias for `reactivate`. */
|
|
3651
|
+
start: (fleetId: string, options?: MonitorFleetReactivateOptions) => Promise<MonitorFleetResult>;
|
|
3652
|
+
/** Customer-facing alias for `deactivate`. */
|
|
3653
|
+
stop: (fleetId: string, options?: MonitorFleetDeactivateOptions) => Promise<MonitorFleetResult>;
|
|
3539
3654
|
/** Poll the fleet until the server reports a terminal status (or the timeout elapses). */
|
|
3540
3655
|
waitForConvergence: (fleetId: string, options?: MonitorFleetWaitOptions) => Promise<MonitorFleetResult>;
|
|
3541
3656
|
};
|
|
@@ -3547,6 +3662,16 @@ type MonitorBatchNamespace = {
|
|
|
3547
3662
|
cursor?: string | null;
|
|
3548
3663
|
}) => Promise<MonitorBatchOperationResult>;
|
|
3549
3664
|
};
|
|
3665
|
+
type MonitorNamedBatchOptions = {
|
|
3666
|
+
idempotencyKey?: string;
|
|
3667
|
+
expectedGeneration?: number;
|
|
3668
|
+
};
|
|
3669
|
+
type MonitorNamedBatchesNamespace = {
|
|
3670
|
+
sync: (batchId: string, definitions: MonitorDefinition[], options?: MonitorNamedBatchOptions) => Promise<MonitorJobResult>;
|
|
3671
|
+
start: (batchId: string, options?: Pick<MonitorNamedBatchOptions, 'idempotencyKey'>) => Promise<MonitorJobResult>;
|
|
3672
|
+
stop: (batchId: string, options?: Pick<MonitorNamedBatchOptions, 'idempotencyKey'>) => Promise<MonitorJobResult>;
|
|
3673
|
+
get: (batchId: string) => Promise<MonitorJobResult>;
|
|
3674
|
+
};
|
|
3550
3675
|
/**
|
|
3551
3676
|
* Delivery and convergence health for a scope, from
|
|
3552
3677
|
* `GET /api/v2/monitors/health`.
|
|
@@ -3612,7 +3737,7 @@ type MonitorsHealth = {
|
|
|
3612
3737
|
/** Bounded current durable monitor work, if the server supports it. */
|
|
3613
3738
|
batch_operations?: Array<{
|
|
3614
3739
|
run_id: string;
|
|
3615
|
-
kind: 'audit' | 'converge' | 'deactivate' | 'reactivate' | 'repair' | 'deploy';
|
|
3740
|
+
kind: 'audit' | 'converge' | 'deactivate' | 'named_batch' | 'reactivate' | 'repair' | 'deploy';
|
|
3616
3741
|
state: 'running' | 'retry_scheduled';
|
|
3617
3742
|
updated_at: number;
|
|
3618
3743
|
next_attempt_at?: number;
|
|
@@ -3716,7 +3841,11 @@ type MonitorsNamespace = {
|
|
|
3716
3841
|
deploy: (definition: MonitorDefinition, options?: {
|
|
3717
3842
|
dryRun?: boolean;
|
|
3718
3843
|
}) => Promise<MonitorDeployResult>;
|
|
3719
|
-
/**
|
|
3844
|
+
/** Set the desired definition for one stable monitor key. */
|
|
3845
|
+
sync: (definition: MonitorDefinition, options?: MonitorLifecycleOptions) => Promise<MonitorJobResult | MonitorDeployResult>;
|
|
3846
|
+
/** List deployed monitors (active by default). Use `state` to filter the
|
|
3847
|
+
* three customer states; `status` is retained for older servers.
|
|
3848
|
+
* `includeConsumers` requires a limit of 20 or fewer. */
|
|
3720
3849
|
list: (options?: MonitorsListOptions) => Promise<MonitorsListResult>;
|
|
3721
3850
|
/** Fetch one deployed monitor by public key with bounded current listener health. */
|
|
3722
3851
|
get: (key: string) => Promise<MonitorDetail>;
|
|
@@ -3735,6 +3864,10 @@ type MonitorsNamespace = {
|
|
|
3735
3864
|
reactivate: (key: string, options?: {
|
|
3736
3865
|
dryRun?: boolean;
|
|
3737
3866
|
}) => Promise<MonitorReactivateResult>;
|
|
3867
|
+
/** Explicitly apply the retained definition for a stopped monitor. */
|
|
3868
|
+
start: (key: string, options?: MonitorLifecycleOptions) => Promise<MonitorJobResult | MonitorBatchOperationResult>;
|
|
3869
|
+
/** Converge one monitor to inactive while retaining its definition. */
|
|
3870
|
+
stop: (key: string, options?: MonitorLifecycleOptions) => Promise<MonitorJobResult | MonitorBatchOperationResult>;
|
|
3738
3871
|
/**
|
|
3739
3872
|
* Re-read what the provider holds onto the monitors that claim it. Bounded
|
|
3740
3873
|
* and idempotent: pass `cursor` back while `audit.cursor` is non-null.
|
|
@@ -3759,6 +3892,8 @@ type MonitorsNamespace = {
|
|
|
3759
3892
|
fleets: MonitorFleetsNamespace;
|
|
3760
3893
|
/** Deploy an immutable one-off list through the common Monitor Job engine. */
|
|
3761
3894
|
batch: MonitorBatchNamespace;
|
|
3895
|
+
/** Reconcile and control a stable named static Batch. */
|
|
3896
|
+
batches: MonitorNamedBatchesNamespace;
|
|
3762
3897
|
/** Read, wait for, inspect, or cancel Monitor Jobs. */
|
|
3763
3898
|
jobs: MonitorJobsNamespace;
|
|
3764
3899
|
};
|
|
@@ -5266,6 +5401,13 @@ declare class DeeplineClient {
|
|
|
5266
5401
|
private monitorJobIdempotencyKey;
|
|
5267
5402
|
private monitorJobHeaders;
|
|
5268
5403
|
deployMonitorBatch(definitions: MonitorDefinition[], options?: MonitorJobDeployOptions): Promise<MonitorJobResult>;
|
|
5404
|
+
private namedMonitorBatchPath;
|
|
5405
|
+
syncNamedMonitorBatch(batchId: string, definitions: MonitorDefinition[], options?: MonitorNamedBatchOptions): Promise<MonitorJobResult>;
|
|
5406
|
+
startNamedMonitorBatch(batchId: string, options?: Pick<MonitorNamedBatchOptions, 'idempotencyKey'>): Promise<MonitorJobResult>;
|
|
5407
|
+
stopNamedMonitorBatch(batchId: string, options?: Pick<MonitorNamedBatchOptions, 'idempotencyKey'>): Promise<MonitorJobResult>;
|
|
5408
|
+
getNamedMonitorBatch(batchId: string): Promise<MonitorJobResult>;
|
|
5409
|
+
submitScalarMonitorLifecycle(monitorKey: string, action: 'start' | 'stop', options?: Pick<MonitorLifecycleOptions, 'idempotencyKey'>): Promise<MonitorJobResult>;
|
|
5410
|
+
syncScalarMonitor(definition: MonitorDefinition, options?: Pick<MonitorLifecycleOptions, 'idempotencyKey'>): Promise<MonitorJobResult>;
|
|
5269
5411
|
getMonitorJob(jobId: string): Promise<MonitorJobResult>;
|
|
5270
5412
|
getMonitorJobLogs(jobId: string, options?: MonitorJobLogsOptions): Promise<MonitorJobResult>;
|
|
5271
5413
|
cancelMonitorJob(jobId: string): Promise<MonitorJobResult>;
|
|
@@ -6305,4 +6447,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
6305
6447
|
*/
|
|
6306
6448
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
6307
6449
|
|
|
6308
|
-
export { type AsyncPlayRunRef, 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 CreateNotificationGroupInput, type CreateNotificationGroupResult, 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, type MonitorBatchNamespace, type MonitorCheckResult, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetDeactivateOptions, MonitorFleetDefinition, type MonitorFleetGetOptions, type MonitorFleetReactivateOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetWaitOptions, type MonitorFleetsNamespace, type MonitorJobDeployOptions, type MonitorJobLogsOptions, type MonitorJobResult, type MonitorJobWaitOptions, type MonitorJobsNamespace, 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 PlayAsyncCallOptions, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayCostEstimate, type PlayFetchResponse, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayReferenceLike, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunId, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PlaysListOptions, type PlaysListPage, type PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsListPage, 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, ToolResultBilling, type ToolSearchOptions, type ToolSearchResult, type WorkspaceCreateResult, type WorkspacesNamespace, defineInput, defineMonitor, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
|
6450
|
+
export { type AsyncPlayRunRef, 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 CreateNotificationGroupInput, type CreateNotificationGroupResult, 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 LegacyMonitorStatusFilter, type LiveEventEnvelope, MONITOR_JOB_PHASES, MONITOR_JOB_RECONCILIATION_STATES, MONITOR_JOB_STATES, type MonitorBatchNamespace, type MonitorCheckResult, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetDeactivateOptions, MonitorFleetDefinition, type MonitorFleetGetOptions, type MonitorFleetReactivateOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetWaitOptions, type MonitorFleetsNamespace, type MonitorJobDeployOptions, type MonitorJobLogsOptions, type MonitorJobPhase, type MonitorJobReconciliationState, type MonitorJobResult, type MonitorJobState, type MonitorJobWaitOptions, type MonitorJobsNamespace, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorSpec, type MonitorState, type MonitorStateFilter, 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 PlayAsyncCallOptions, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayCostEstimate, type PlayFetchResponse, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayReferenceLike, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunId, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PlaysListOptions, type PlaysListPage, type PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsListPage, 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, ToolResultBilling, type ToolSearchOptions, type ToolSearchResult, type WorkspaceCreateResult, type WorkspacesNamespace, defineInput, defineMonitor, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|