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.js
CHANGED
|
@@ -46,6 +46,9 @@ __export(src_exports, {
|
|
|
46
46
|
MONITOR_FLEET_DOCUMENTATION: () => MONITOR_FLEET_DOCUMENTATION,
|
|
47
47
|
MONITOR_FLEET_FRONTIER_MAX_ROWS: () => MONITOR_FLEET_FRONTIER_MAX_ROWS,
|
|
48
48
|
MONITOR_FLEET_MAX_MEMBERS: () => MONITOR_FLEET_MAX_MEMBERS,
|
|
49
|
+
MONITOR_JOB_PHASES: () => MONITOR_JOB_PHASES,
|
|
50
|
+
MONITOR_JOB_RECONCILIATION_STATES: () => MONITOR_JOB_RECONCILIATION_STATES,
|
|
51
|
+
MONITOR_JOB_STATES: () => MONITOR_JOB_STATES,
|
|
49
52
|
PHONE_STATUS_VALUES: () => PHONE_STATUS_VALUES,
|
|
50
53
|
PLAY_BOOTSTRAP_COMPANY_FIELDS: () => PLAY_BOOTSTRAP_COMPANY_FIELDS,
|
|
51
54
|
PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY: () => PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY,
|
|
@@ -860,7 +863,7 @@ var SDK_RELEASE = {
|
|
|
860
863
|
// getters keep their established compatibility behavior.
|
|
861
864
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
862
865
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
863
|
-
version: "0.3.
|
|
866
|
+
version: "0.3.117",
|
|
864
867
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
865
868
|
packageCapabilities: {
|
|
866
869
|
updatePreferences: 1
|
|
@@ -4284,6 +4287,27 @@ function resolveToolExecuteTimeoutMs(toolId, input) {
|
|
|
4284
4287
|
}
|
|
4285
4288
|
var RUNS_FAILED_LOG_LIMIT = 20;
|
|
4286
4289
|
var RUN_LOGS_PAGE_LIMIT = 1e3;
|
|
4290
|
+
var MONITOR_JOB_STATES = [
|
|
4291
|
+
"queued",
|
|
4292
|
+
"running",
|
|
4293
|
+
"cancelling",
|
|
4294
|
+
"succeeded",
|
|
4295
|
+
"failed",
|
|
4296
|
+
"cancelled"
|
|
4297
|
+
];
|
|
4298
|
+
var MONITOR_JOB_PHASES = [
|
|
4299
|
+
"queued",
|
|
4300
|
+
"provider_create",
|
|
4301
|
+
"provider_readback",
|
|
4302
|
+
"reconciliation",
|
|
4303
|
+
"completed"
|
|
4304
|
+
];
|
|
4305
|
+
var MONITOR_JOB_RECONCILIATION_STATES = [
|
|
4306
|
+
"pending",
|
|
4307
|
+
"aligned",
|
|
4308
|
+
"partial",
|
|
4309
|
+
"mismatched"
|
|
4310
|
+
];
|
|
4287
4311
|
function requireTargetBillingIdempotencyKey(value) {
|
|
4288
4312
|
const normalized = value.trim();
|
|
4289
4313
|
if (normalized.length === 0 || normalized.length > 200 || normalized !== value) {
|
|
@@ -4641,6 +4665,7 @@ var DeeplineClient = class {
|
|
|
4641
4665
|
available: (toolIdOrOptions, options2) => this.getMonitorsAvailable(toolIdOrOptions, options2),
|
|
4642
4666
|
check: (definition) => this.checkMonitor(definition),
|
|
4643
4667
|
deploy: (definition, options2) => this.deployMonitor(definition, options2),
|
|
4668
|
+
sync: (definition, options2) => options2?.dryRun ? this.deployMonitor(definition, { dryRun: true }) : this.syncScalarMonitor(definition, options2),
|
|
4644
4669
|
list: (options2) => this.listMonitors(options2),
|
|
4645
4670
|
get: (key) => this.getMonitor(key),
|
|
4646
4671
|
test: (key, payload, options2) => this.testMonitorWebhook(key, payload, options2),
|
|
@@ -4649,6 +4674,18 @@ var DeeplineClient = class {
|
|
|
4649
4674
|
update: (key, patch) => this.updateMonitor(key, patch),
|
|
4650
4675
|
delete: (key, options2) => this.deleteMonitor(key, options2),
|
|
4651
4676
|
reactivate: (key, options2) => this.reactivateMonitor(key, options2),
|
|
4677
|
+
start: (key, options2) => options2?.dryRun ? this.submitMonitorBatch({
|
|
4678
|
+
kind: "reactivate",
|
|
4679
|
+
scope: { kind: "keys", monitorKeys: [key] },
|
|
4680
|
+
dryRun: true,
|
|
4681
|
+
idempotencyKey: options2.idempotencyKey ?? this.monitorJobIdempotencyKey(`start-${key}`)
|
|
4682
|
+
}) : this.submitScalarMonitorLifecycle(key, "start", options2),
|
|
4683
|
+
stop: (key, options2) => options2?.dryRun ? this.submitMonitorBatch({
|
|
4684
|
+
kind: "deactivate",
|
|
4685
|
+
scope: { kind: "keys", monitorKeys: [key] },
|
|
4686
|
+
dryRun: true,
|
|
4687
|
+
idempotencyKey: options2.idempotencyKey ?? this.monitorJobIdempotencyKey(`stop-${key}`)
|
|
4688
|
+
}) : this.submitScalarMonitorLifecycle(key, "stop", options2),
|
|
4652
4689
|
audit: (options2) => this.auditMonitors(options2),
|
|
4653
4690
|
repair: (options2) => this.repairMonitors(options2),
|
|
4654
4691
|
health: (options2) => this.readMonitorsHealth(options2),
|
|
@@ -4657,6 +4694,12 @@ var DeeplineClient = class {
|
|
|
4657
4694
|
submit: (options2) => this.submitMonitorBatch(options2),
|
|
4658
4695
|
get: (operationId, options2) => this.getMonitorBatch(operationId, options2)
|
|
4659
4696
|
},
|
|
4697
|
+
batches: {
|
|
4698
|
+
sync: (batchId, definitions, options2) => this.syncNamedMonitorBatch(batchId, definitions, options2),
|
|
4699
|
+
start: (batchId, options2) => this.startNamedMonitorBatch(batchId, options2),
|
|
4700
|
+
stop: (batchId, options2) => this.stopNamedMonitorBatch(batchId, options2),
|
|
4701
|
+
get: (batchId) => this.getNamedMonitorBatch(batchId)
|
|
4702
|
+
},
|
|
4660
4703
|
jobs: {
|
|
4661
4704
|
get: (jobId) => this.getMonitorJob(jobId),
|
|
4662
4705
|
logs: (jobId, options2) => this.getMonitorJobLogs(jobId, options2),
|
|
@@ -4670,6 +4713,8 @@ var DeeplineClient = class {
|
|
|
4670
4713
|
list: () => this.listMonitorFleets(),
|
|
4671
4714
|
deactivate: (fleetId, options2) => this.deactivateMonitorFleet(fleetId, options2),
|
|
4672
4715
|
reactivate: (fleetId, options2) => this.reactivateMonitorFleet(fleetId, options2),
|
|
4716
|
+
start: (fleetId, options2) => this.reactivateMonitorFleet(fleetId, options2),
|
|
4717
|
+
stop: (fleetId, options2) => this.deactivateMonitorFleet(fleetId, options2),
|
|
4673
4718
|
waitForConvergence: (fleetId, options2) => this.waitForMonitorFleetConvergence(fleetId, options2)
|
|
4674
4719
|
}
|
|
4675
4720
|
};
|
|
@@ -7320,7 +7365,8 @@ var DeeplineClient = class {
|
|
|
7320
7365
|
/** List deployed monitors. Prefer `client.monitors.list(...)`. */
|
|
7321
7366
|
async listMonitors(options) {
|
|
7322
7367
|
const params = new URLSearchParams();
|
|
7323
|
-
if (options?.
|
|
7368
|
+
if (options?.state) params.set("state", options.state);
|
|
7369
|
+
else if (options?.status) params.set("status", options.status);
|
|
7324
7370
|
if (options?.limit !== void 0)
|
|
7325
7371
|
params.set("limit", String(options.limit));
|
|
7326
7372
|
if (options?.cursor) params.set("cursor", options.cursor);
|
|
@@ -7459,6 +7505,92 @@ var DeeplineClient = class {
|
|
|
7459
7505
|
}
|
|
7460
7506
|
);
|
|
7461
7507
|
}
|
|
7508
|
+
namedMonitorBatchPath(batchId) {
|
|
7509
|
+
return `/api/v2/monitors/batches/${encodeURIComponent(batchId)}`;
|
|
7510
|
+
}
|
|
7511
|
+
async syncNamedMonitorBatch(batchId, definitions, options) {
|
|
7512
|
+
return this.http.request(
|
|
7513
|
+
this.namedMonitorBatchPath(batchId),
|
|
7514
|
+
{
|
|
7515
|
+
method: "PUT",
|
|
7516
|
+
body: {
|
|
7517
|
+
version: 1,
|
|
7518
|
+
kind: "batch",
|
|
7519
|
+
monitors: definitions,
|
|
7520
|
+
...options?.expectedGeneration === void 0 ? {} : { expected_generation: options.expectedGeneration }
|
|
7521
|
+
},
|
|
7522
|
+
headers: this.monitorJobHeaders(
|
|
7523
|
+
`batch-sync-${batchId}`,
|
|
7524
|
+
options?.idempotencyKey
|
|
7525
|
+
),
|
|
7526
|
+
maxRetries: 0,
|
|
7527
|
+
exactUrlOnly: true
|
|
7528
|
+
}
|
|
7529
|
+
);
|
|
7530
|
+
}
|
|
7531
|
+
async startNamedMonitorBatch(batchId, options) {
|
|
7532
|
+
return this.http.request(
|
|
7533
|
+
`${this.namedMonitorBatchPath(batchId)}/start`,
|
|
7534
|
+
{
|
|
7535
|
+
method: "POST",
|
|
7536
|
+
body: {},
|
|
7537
|
+
headers: this.monitorJobHeaders(
|
|
7538
|
+
`batch-start-${batchId}`,
|
|
7539
|
+
options?.idempotencyKey
|
|
7540
|
+
),
|
|
7541
|
+
maxRetries: 0,
|
|
7542
|
+
exactUrlOnly: true
|
|
7543
|
+
}
|
|
7544
|
+
);
|
|
7545
|
+
}
|
|
7546
|
+
async stopNamedMonitorBatch(batchId, options) {
|
|
7547
|
+
return this.http.request(
|
|
7548
|
+
this.namedMonitorBatchPath(batchId),
|
|
7549
|
+
{
|
|
7550
|
+
method: "DELETE",
|
|
7551
|
+
body: {},
|
|
7552
|
+
headers: this.monitorJobHeaders(
|
|
7553
|
+
`batch-stop-${batchId}`,
|
|
7554
|
+
options?.idempotencyKey
|
|
7555
|
+
),
|
|
7556
|
+
maxRetries: 0,
|
|
7557
|
+
exactUrlOnly: true
|
|
7558
|
+
}
|
|
7559
|
+
);
|
|
7560
|
+
}
|
|
7561
|
+
async getNamedMonitorBatch(batchId) {
|
|
7562
|
+
return this.http.request(
|
|
7563
|
+
this.namedMonitorBatchPath(batchId),
|
|
7564
|
+
{ method: "GET" }
|
|
7565
|
+
);
|
|
7566
|
+
}
|
|
7567
|
+
async submitScalarMonitorLifecycle(monitorKey, action, options) {
|
|
7568
|
+
return this.http.request(
|
|
7569
|
+
`/api/v2/monitors/deployed/${encodeURIComponent(monitorKey)}/${action}`,
|
|
7570
|
+
{
|
|
7571
|
+
method: "POST",
|
|
7572
|
+
body: {},
|
|
7573
|
+
headers: this.monitorJobHeaders(
|
|
7574
|
+
`${action}-${monitorKey}`,
|
|
7575
|
+
options?.idempotencyKey
|
|
7576
|
+
),
|
|
7577
|
+
maxRetries: 0,
|
|
7578
|
+
exactUrlOnly: true
|
|
7579
|
+
}
|
|
7580
|
+
);
|
|
7581
|
+
}
|
|
7582
|
+
async syncScalarMonitor(definition, options) {
|
|
7583
|
+
return this.http.request("/api/v2/monitors/sync", {
|
|
7584
|
+
method: "POST",
|
|
7585
|
+
body: definition,
|
|
7586
|
+
headers: this.monitorJobHeaders(
|
|
7587
|
+
`sync-${definition.key}`,
|
|
7588
|
+
options?.idempotencyKey
|
|
7589
|
+
),
|
|
7590
|
+
maxRetries: 0,
|
|
7591
|
+
exactUrlOnly: true
|
|
7592
|
+
});
|
|
7593
|
+
}
|
|
7462
7594
|
async getMonitorJob(jobId) {
|
|
7463
7595
|
return this.http.request(
|
|
7464
7596
|
`/api/v2/monitors/jobs/${encodeURIComponent(jobId)}`,
|
|
@@ -12444,6 +12576,9 @@ function extractSummaryFields(payload) {
|
|
|
12444
12576
|
MONITOR_FLEET_DOCUMENTATION,
|
|
12445
12577
|
MONITOR_FLEET_FRONTIER_MAX_ROWS,
|
|
12446
12578
|
MONITOR_FLEET_MAX_MEMBERS,
|
|
12579
|
+
MONITOR_JOB_PHASES,
|
|
12580
|
+
MONITOR_JOB_RECONCILIATION_STATES,
|
|
12581
|
+
MONITOR_JOB_STATES,
|
|
12447
12582
|
PHONE_STATUS_VALUES,
|
|
12448
12583
|
PLAY_BOOTSTRAP_COMPANY_FIELDS,
|
|
12449
12584
|
PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY,
|
package/dist/index.mjs
CHANGED
|
@@ -768,7 +768,7 @@ var SDK_RELEASE = {
|
|
|
768
768
|
// getters keep their established compatibility behavior.
|
|
769
769
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
770
770
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
771
|
-
version: "0.3.
|
|
771
|
+
version: "0.3.117",
|
|
772
772
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
773
773
|
packageCapabilities: {
|
|
774
774
|
updatePreferences: 1
|
|
@@ -4192,6 +4192,27 @@ function resolveToolExecuteTimeoutMs(toolId, input) {
|
|
|
4192
4192
|
}
|
|
4193
4193
|
var RUNS_FAILED_LOG_LIMIT = 20;
|
|
4194
4194
|
var RUN_LOGS_PAGE_LIMIT = 1e3;
|
|
4195
|
+
var MONITOR_JOB_STATES = [
|
|
4196
|
+
"queued",
|
|
4197
|
+
"running",
|
|
4198
|
+
"cancelling",
|
|
4199
|
+
"succeeded",
|
|
4200
|
+
"failed",
|
|
4201
|
+
"cancelled"
|
|
4202
|
+
];
|
|
4203
|
+
var MONITOR_JOB_PHASES = [
|
|
4204
|
+
"queued",
|
|
4205
|
+
"provider_create",
|
|
4206
|
+
"provider_readback",
|
|
4207
|
+
"reconciliation",
|
|
4208
|
+
"completed"
|
|
4209
|
+
];
|
|
4210
|
+
var MONITOR_JOB_RECONCILIATION_STATES = [
|
|
4211
|
+
"pending",
|
|
4212
|
+
"aligned",
|
|
4213
|
+
"partial",
|
|
4214
|
+
"mismatched"
|
|
4215
|
+
];
|
|
4195
4216
|
function requireTargetBillingIdempotencyKey(value) {
|
|
4196
4217
|
const normalized = value.trim();
|
|
4197
4218
|
if (normalized.length === 0 || normalized.length > 200 || normalized !== value) {
|
|
@@ -4549,6 +4570,7 @@ var DeeplineClient = class {
|
|
|
4549
4570
|
available: (toolIdOrOptions, options2) => this.getMonitorsAvailable(toolIdOrOptions, options2),
|
|
4550
4571
|
check: (definition) => this.checkMonitor(definition),
|
|
4551
4572
|
deploy: (definition, options2) => this.deployMonitor(definition, options2),
|
|
4573
|
+
sync: (definition, options2) => options2?.dryRun ? this.deployMonitor(definition, { dryRun: true }) : this.syncScalarMonitor(definition, options2),
|
|
4552
4574
|
list: (options2) => this.listMonitors(options2),
|
|
4553
4575
|
get: (key) => this.getMonitor(key),
|
|
4554
4576
|
test: (key, payload, options2) => this.testMonitorWebhook(key, payload, options2),
|
|
@@ -4557,6 +4579,18 @@ var DeeplineClient = class {
|
|
|
4557
4579
|
update: (key, patch) => this.updateMonitor(key, patch),
|
|
4558
4580
|
delete: (key, options2) => this.deleteMonitor(key, options2),
|
|
4559
4581
|
reactivate: (key, options2) => this.reactivateMonitor(key, options2),
|
|
4582
|
+
start: (key, options2) => options2?.dryRun ? this.submitMonitorBatch({
|
|
4583
|
+
kind: "reactivate",
|
|
4584
|
+
scope: { kind: "keys", monitorKeys: [key] },
|
|
4585
|
+
dryRun: true,
|
|
4586
|
+
idempotencyKey: options2.idempotencyKey ?? this.monitorJobIdempotencyKey(`start-${key}`)
|
|
4587
|
+
}) : this.submitScalarMonitorLifecycle(key, "start", options2),
|
|
4588
|
+
stop: (key, options2) => options2?.dryRun ? this.submitMonitorBatch({
|
|
4589
|
+
kind: "deactivate",
|
|
4590
|
+
scope: { kind: "keys", monitorKeys: [key] },
|
|
4591
|
+
dryRun: true,
|
|
4592
|
+
idempotencyKey: options2.idempotencyKey ?? this.monitorJobIdempotencyKey(`stop-${key}`)
|
|
4593
|
+
}) : this.submitScalarMonitorLifecycle(key, "stop", options2),
|
|
4560
4594
|
audit: (options2) => this.auditMonitors(options2),
|
|
4561
4595
|
repair: (options2) => this.repairMonitors(options2),
|
|
4562
4596
|
health: (options2) => this.readMonitorsHealth(options2),
|
|
@@ -4565,6 +4599,12 @@ var DeeplineClient = class {
|
|
|
4565
4599
|
submit: (options2) => this.submitMonitorBatch(options2),
|
|
4566
4600
|
get: (operationId, options2) => this.getMonitorBatch(operationId, options2)
|
|
4567
4601
|
},
|
|
4602
|
+
batches: {
|
|
4603
|
+
sync: (batchId, definitions, options2) => this.syncNamedMonitorBatch(batchId, definitions, options2),
|
|
4604
|
+
start: (batchId, options2) => this.startNamedMonitorBatch(batchId, options2),
|
|
4605
|
+
stop: (batchId, options2) => this.stopNamedMonitorBatch(batchId, options2),
|
|
4606
|
+
get: (batchId) => this.getNamedMonitorBatch(batchId)
|
|
4607
|
+
},
|
|
4568
4608
|
jobs: {
|
|
4569
4609
|
get: (jobId) => this.getMonitorJob(jobId),
|
|
4570
4610
|
logs: (jobId, options2) => this.getMonitorJobLogs(jobId, options2),
|
|
@@ -4578,6 +4618,8 @@ var DeeplineClient = class {
|
|
|
4578
4618
|
list: () => this.listMonitorFleets(),
|
|
4579
4619
|
deactivate: (fleetId, options2) => this.deactivateMonitorFleet(fleetId, options2),
|
|
4580
4620
|
reactivate: (fleetId, options2) => this.reactivateMonitorFleet(fleetId, options2),
|
|
4621
|
+
start: (fleetId, options2) => this.reactivateMonitorFleet(fleetId, options2),
|
|
4622
|
+
stop: (fleetId, options2) => this.deactivateMonitorFleet(fleetId, options2),
|
|
4581
4623
|
waitForConvergence: (fleetId, options2) => this.waitForMonitorFleetConvergence(fleetId, options2)
|
|
4582
4624
|
}
|
|
4583
4625
|
};
|
|
@@ -7228,7 +7270,8 @@ var DeeplineClient = class {
|
|
|
7228
7270
|
/** List deployed monitors. Prefer `client.monitors.list(...)`. */
|
|
7229
7271
|
async listMonitors(options) {
|
|
7230
7272
|
const params = new URLSearchParams();
|
|
7231
|
-
if (options?.
|
|
7273
|
+
if (options?.state) params.set("state", options.state);
|
|
7274
|
+
else if (options?.status) params.set("status", options.status);
|
|
7232
7275
|
if (options?.limit !== void 0)
|
|
7233
7276
|
params.set("limit", String(options.limit));
|
|
7234
7277
|
if (options?.cursor) params.set("cursor", options.cursor);
|
|
@@ -7367,6 +7410,92 @@ var DeeplineClient = class {
|
|
|
7367
7410
|
}
|
|
7368
7411
|
);
|
|
7369
7412
|
}
|
|
7413
|
+
namedMonitorBatchPath(batchId) {
|
|
7414
|
+
return `/api/v2/monitors/batches/${encodeURIComponent(batchId)}`;
|
|
7415
|
+
}
|
|
7416
|
+
async syncNamedMonitorBatch(batchId, definitions, options) {
|
|
7417
|
+
return this.http.request(
|
|
7418
|
+
this.namedMonitorBatchPath(batchId),
|
|
7419
|
+
{
|
|
7420
|
+
method: "PUT",
|
|
7421
|
+
body: {
|
|
7422
|
+
version: 1,
|
|
7423
|
+
kind: "batch",
|
|
7424
|
+
monitors: definitions,
|
|
7425
|
+
...options?.expectedGeneration === void 0 ? {} : { expected_generation: options.expectedGeneration }
|
|
7426
|
+
},
|
|
7427
|
+
headers: this.monitorJobHeaders(
|
|
7428
|
+
`batch-sync-${batchId}`,
|
|
7429
|
+
options?.idempotencyKey
|
|
7430
|
+
),
|
|
7431
|
+
maxRetries: 0,
|
|
7432
|
+
exactUrlOnly: true
|
|
7433
|
+
}
|
|
7434
|
+
);
|
|
7435
|
+
}
|
|
7436
|
+
async startNamedMonitorBatch(batchId, options) {
|
|
7437
|
+
return this.http.request(
|
|
7438
|
+
`${this.namedMonitorBatchPath(batchId)}/start`,
|
|
7439
|
+
{
|
|
7440
|
+
method: "POST",
|
|
7441
|
+
body: {},
|
|
7442
|
+
headers: this.monitorJobHeaders(
|
|
7443
|
+
`batch-start-${batchId}`,
|
|
7444
|
+
options?.idempotencyKey
|
|
7445
|
+
),
|
|
7446
|
+
maxRetries: 0,
|
|
7447
|
+
exactUrlOnly: true
|
|
7448
|
+
}
|
|
7449
|
+
);
|
|
7450
|
+
}
|
|
7451
|
+
async stopNamedMonitorBatch(batchId, options) {
|
|
7452
|
+
return this.http.request(
|
|
7453
|
+
this.namedMonitorBatchPath(batchId),
|
|
7454
|
+
{
|
|
7455
|
+
method: "DELETE",
|
|
7456
|
+
body: {},
|
|
7457
|
+
headers: this.monitorJobHeaders(
|
|
7458
|
+
`batch-stop-${batchId}`,
|
|
7459
|
+
options?.idempotencyKey
|
|
7460
|
+
),
|
|
7461
|
+
maxRetries: 0,
|
|
7462
|
+
exactUrlOnly: true
|
|
7463
|
+
}
|
|
7464
|
+
);
|
|
7465
|
+
}
|
|
7466
|
+
async getNamedMonitorBatch(batchId) {
|
|
7467
|
+
return this.http.request(
|
|
7468
|
+
this.namedMonitorBatchPath(batchId),
|
|
7469
|
+
{ method: "GET" }
|
|
7470
|
+
);
|
|
7471
|
+
}
|
|
7472
|
+
async submitScalarMonitorLifecycle(monitorKey, action, options) {
|
|
7473
|
+
return this.http.request(
|
|
7474
|
+
`/api/v2/monitors/deployed/${encodeURIComponent(monitorKey)}/${action}`,
|
|
7475
|
+
{
|
|
7476
|
+
method: "POST",
|
|
7477
|
+
body: {},
|
|
7478
|
+
headers: this.monitorJobHeaders(
|
|
7479
|
+
`${action}-${monitorKey}`,
|
|
7480
|
+
options?.idempotencyKey
|
|
7481
|
+
),
|
|
7482
|
+
maxRetries: 0,
|
|
7483
|
+
exactUrlOnly: true
|
|
7484
|
+
}
|
|
7485
|
+
);
|
|
7486
|
+
}
|
|
7487
|
+
async syncScalarMonitor(definition, options) {
|
|
7488
|
+
return this.http.request("/api/v2/monitors/sync", {
|
|
7489
|
+
method: "POST",
|
|
7490
|
+
body: definition,
|
|
7491
|
+
headers: this.monitorJobHeaders(
|
|
7492
|
+
`sync-${definition.key}`,
|
|
7493
|
+
options?.idempotencyKey
|
|
7494
|
+
),
|
|
7495
|
+
maxRetries: 0,
|
|
7496
|
+
exactUrlOnly: true
|
|
7497
|
+
});
|
|
7498
|
+
}
|
|
7370
7499
|
async getMonitorJob(jobId) {
|
|
7371
7500
|
return this.http.request(
|
|
7372
7501
|
`/api/v2/monitors/jobs/${encodeURIComponent(jobId)}`,
|
|
@@ -12357,6 +12486,9 @@ export {
|
|
|
12357
12486
|
MONITOR_FLEET_DOCUMENTATION,
|
|
12358
12487
|
MONITOR_FLEET_FRONTIER_MAX_ROWS,
|
|
12359
12488
|
MONITOR_FLEET_MAX_MEMBERS,
|
|
12489
|
+
MONITOR_JOB_PHASES,
|
|
12490
|
+
MONITOR_JOB_RECONCILIATION_STATES,
|
|
12491
|
+
MONITOR_JOB_STATES,
|
|
12360
12492
|
PHONE_STATUS_VALUES,
|
|
12361
12493
|
PLAY_BOOTSTRAP_COMPANY_FIELDS,
|
|
12362
12494
|
PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY,
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"dist/bundling-sources/shared_libs/monitors/inventory-reconciliation.ts",
|
|
58
58
|
"dist/bundling-sources/shared_libs/monitors/lifecycle-notifications.ts",
|
|
59
59
|
"dist/bundling-sources/shared_libs/monitors/monitor-fleet-limits.ts",
|
|
60
|
+
"dist/bundling-sources/shared_libs/monitors/monitor-job-state.ts",
|
|
60
61
|
"dist/bundling-sources/shared_libs/monitors/org-monitor-limits.ts",
|
|
61
62
|
"dist/bundling-sources/shared_libs/monitors/package.json",
|
|
62
63
|
"dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts",
|
package/dist/release.d.mts
CHANGED
|
@@ -149,7 +149,7 @@ type SdkRelease = {
|
|
|
149
149
|
supportPolicy: SdkSupportPolicy;
|
|
150
150
|
};
|
|
151
151
|
declare const SDK_RELEASE: {
|
|
152
|
-
readonly version: "0.3.
|
|
152
|
+
readonly version: "0.3.117";
|
|
153
153
|
readonly updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
|
|
154
154
|
readonly packageCapabilities: {
|
|
155
155
|
readonly updatePreferences: 1;
|
package/dist/release.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ type SdkRelease = {
|
|
|
149
149
|
supportPolicy: SdkSupportPolicy;
|
|
150
150
|
};
|
|
151
151
|
declare const SDK_RELEASE: {
|
|
152
|
-
readonly version: "0.3.
|
|
152
|
+
readonly version: "0.3.117";
|
|
153
153
|
readonly updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
|
|
154
154
|
readonly packageCapabilities: {
|
|
155
155
|
readonly updatePreferences: 1;
|
package/dist/release.js
CHANGED
|
@@ -74,7 +74,7 @@ var SDK_RELEASE = {
|
|
|
74
74
|
// getters keep their established compatibility behavior.
|
|
75
75
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
76
76
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
77
|
-
version: "0.3.
|
|
77
|
+
version: "0.3.117",
|
|
78
78
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
79
79
|
packageCapabilities: {
|
|
80
80
|
updatePreferences: 1
|
package/dist/release.mjs
CHANGED
|
@@ -48,7 +48,7 @@ var SDK_RELEASE = {
|
|
|
48
48
|
// getters keep their established compatibility behavior.
|
|
49
49
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
50
50
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
51
|
-
version: "0.3.
|
|
51
|
+
version: "0.3.117",
|
|
52
52
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
53
53
|
packageCapabilities: {
|
|
54
54
|
updatePreferences: 1
|