@dbos-inc/dbos-sdk 4.28.12-preview → 4.28.14-preview
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/README.md +1 -1
- package/dbos-config.schema.json +0 -10
- package/dist/dbos-config.schema.json +0 -10
- package/dist/src/cli/cli.d.ts.map +1 -1
- package/dist/src/cli/cli.js +1 -2
- package/dist/src/cli/cli.js.map +1 -1
- package/dist/src/config.d.ts +1 -2
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +6 -21
- package/dist/src/config.js.map +1 -1
- package/dist/src/datasource.d.ts.map +1 -1
- package/dist/src/datasource.js +0 -6
- package/dist/src/datasource.js.map +1 -1
- package/dist/src/dbos-executor.d.ts +3 -21
- package/dist/src/dbos-executor.d.ts.map +1 -1
- package/dist/src/dbos-executor.js +15 -108
- package/dist/src/dbos-executor.js.map +1 -1
- package/dist/src/dbos.d.ts +5 -6
- package/dist/src/dbos.d.ts.map +1 -1
- package/dist/src/dbos.js +9 -52
- package/dist/src/dbos.js.map +1 -1
- package/dist/src/decorators.d.ts +0 -6
- package/dist/src/decorators.d.ts.map +1 -1
- package/dist/src/decorators.js +1 -19
- package/dist/src/decorators.js.map +1 -1
- package/dist/src/error.d.ts +0 -6
- package/dist/src/error.d.ts.map +1 -1
- package/dist/src/error.js +1 -15
- package/dist/src/error.js.map +1 -1
- package/dist/src/serialization.d.ts +1 -13
- package/dist/src/serialization.d.ts.map +1 -1
- package/dist/src/serialization.js +27 -122
- package/dist/src/serialization.js.map +1 -1
- package/dist/src/step.d.ts +1 -0
- package/dist/src/step.d.ts.map +1 -1
- package/dist/src/step.js.map +1 -1
- package/dist/src/sysdb_migrations/internal/migrations.d.ts.map +1 -1
- package/dist/src/sysdb_migrations/internal/migrations.js +16 -17
- package/dist/src/sysdb_migrations/internal/migrations.js.map +1 -1
- package/dist/src/system_database.d.ts.map +1 -1
- package/dist/src/system_database.js +1 -0
- package/dist/src/system_database.js.map +1 -1
- package/dist/src/telemetry/collector.d.ts.map +1 -1
- package/dist/src/telemetry/collector.js +0 -1
- package/dist/src/telemetry/collector.js.map +1 -1
- package/dist/src/utils.d.ts +0 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +1 -5
- package/dist/src/utils.js.map +1 -1
- package/dist/src/workflow.d.ts +0 -3
- package/dist/src/workflow.d.ts.map +1 -1
- package/dist/src/workflow.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/adminserver.d.ts +0 -100
- package/dist/src/adminserver.d.ts.map +0 -1
- package/dist/src/adminserver.js +0 -588
- package/dist/src/adminserver.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import * as http from 'http';
|
|
4
|
-
import { DBOSExecutor } from './dbos-executor';
|
|
5
|
-
import { GlobalLogger } from './telemetry/logs';
|
|
6
|
-
import { QueueParameters } from './wfqueue';
|
|
7
|
-
export type QueueMetadataResponse = QueueParameters & {
|
|
8
|
-
name: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const WorkflowUUIDHeader = "dbos-idempotency-key";
|
|
11
|
-
export declare const WorkflowRecoveryUrl = "/dbos-workflow-recovery";
|
|
12
|
-
export declare const HealthUrl = "/dbos-healthz";
|
|
13
|
-
export declare const PerfUrl = "/dbos-perf";
|
|
14
|
-
export declare const DeactivateUrl = "/deactivate";
|
|
15
|
-
export declare const ConductorUrl = "/conductor";
|
|
16
|
-
export declare const WorkflowQueuesMetadataUrl = "/dbos-workflow-queues-metadata";
|
|
17
|
-
interface Route {
|
|
18
|
-
method: string;
|
|
19
|
-
path: string;
|
|
20
|
-
handler: (req: http.IncomingMessage, res: http.ServerResponse, params?: Record<string, string>) => Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
/** @deprecated The admin server is deprecated and will be removed in a future version of DBOS. */
|
|
23
|
-
export declare class DBOSAdminServer {
|
|
24
|
-
static setupAdminApp(dbosExec: DBOSExecutor): http.Server;
|
|
25
|
-
static checkPortAvailabilityIPv4Ipv6(port: number, logger: GlobalLogger): Promise<void>;
|
|
26
|
-
static checkPortAvailability(port: number, host: string): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Health check endpoint.
|
|
29
|
-
*/
|
|
30
|
-
static registerHealthEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
31
|
-
/**
|
|
32
|
-
* Register workflow queue metadata endpoint.
|
|
33
|
-
*/
|
|
34
|
-
static registerQueueMetadataEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
35
|
-
/**
|
|
36
|
-
* Register workflow recovery endpoint.
|
|
37
|
-
* Receives a list of executor IDs and returns a list of workflowUUIDs.
|
|
38
|
-
*/
|
|
39
|
-
static registerRecoveryEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
40
|
-
/**
|
|
41
|
-
* Register performance endpoint.
|
|
42
|
-
* Returns information on VM performance since last call.
|
|
43
|
-
*/
|
|
44
|
-
static lastELU: import("perf_hooks").EventLoopUtilization;
|
|
45
|
-
static registerPerfEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
46
|
-
/**
|
|
47
|
-
* Register Deactivate endpoint.
|
|
48
|
-
* Deactivate consumers so that they don't start new workflows.
|
|
49
|
-
*/
|
|
50
|
-
static isDeactivated: boolean;
|
|
51
|
-
static registerDeactivateEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
52
|
-
/**
|
|
53
|
-
* Register Conductor status endpoint.
|
|
54
|
-
* Indicates that a Conductor connection is enabled for this executor.
|
|
55
|
-
*/
|
|
56
|
-
static registerConductorEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
57
|
-
static registerGarbageCollectEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
58
|
-
static registerGlobalTimeoutEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
59
|
-
/**
|
|
60
|
-
* Register Cancel Workflow endpoint.
|
|
61
|
-
* Cancels a workflow by setting its status to CANCELLED.
|
|
62
|
-
*/
|
|
63
|
-
static registerCancelWorkflowEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
64
|
-
/**
|
|
65
|
-
* Register Resume Workflow endpoint.
|
|
66
|
-
* Resume a workflow.
|
|
67
|
-
*/
|
|
68
|
-
static registerResumeWorkflowEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
69
|
-
/**
|
|
70
|
-
* Register Restart Workflow endpoint.
|
|
71
|
-
* Restart a workflow.
|
|
72
|
-
*/
|
|
73
|
-
static registerRestartWorkflowEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
74
|
-
/**
|
|
75
|
-
* Register Fork Workflow endpoint.
|
|
76
|
-
*/
|
|
77
|
-
static registerForkWorkflowEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
78
|
-
/**
|
|
79
|
-
* Register List Workflow Steps endpoint.
|
|
80
|
-
* List steps for a given workflow.
|
|
81
|
-
*/
|
|
82
|
-
static registerListWorkflowStepsEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
83
|
-
/**
|
|
84
|
-
* Register List Workflows endpoint.
|
|
85
|
-
* List workflows with optional filtering via request body.
|
|
86
|
-
*/
|
|
87
|
-
static registerListWorkflowsEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
88
|
-
/**
|
|
89
|
-
* Register List Queued Workflows endpoint.
|
|
90
|
-
* List queued workflows with optional filtering via request body.
|
|
91
|
-
*/
|
|
92
|
-
static registerListQueuedWorkflowsEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
|
|
93
|
-
/**
|
|
94
|
-
* Register Get Workflow endpoint.
|
|
95
|
-
* Get detailed information about a specific workflow by ID.
|
|
96
|
-
*/
|
|
97
|
-
static registerGetWorkflowEndpoint(dbosExec: DBOSExecutor, routes: Route[]): void;
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