@dbos-inc/dbos-sdk 2.7.27-preview → 2.7.34

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.
Files changed (57) hide show
  1. package/dist/src/context.d.ts +3 -1
  2. package/dist/src/context.d.ts.map +1 -1
  3. package/dist/src/context.js +0 -1
  4. package/dist/src/context.js.map +1 -1
  5. package/dist/src/dbos-executor.d.ts +1 -0
  6. package/dist/src/dbos-executor.d.ts.map +1 -1
  7. package/dist/src/dbos-executor.js.map +1 -1
  8. package/dist/src/dbos-runtime/config.d.ts.map +1 -1
  9. package/dist/src/dbos-runtime/config.js +21 -9
  10. package/dist/src/dbos-runtime/config.js.map +1 -1
  11. package/dist/src/dbos-runtime/reset.d.ts.map +1 -1
  12. package/dist/src/dbos-runtime/reset.js +2 -16
  13. package/dist/src/dbos-runtime/reset.js.map +1 -1
  14. package/dist/src/dbos.d.ts +310 -7
  15. package/dist/src/dbos.d.ts.map +1 -1
  16. package/dist/src/dbos.js +309 -22
  17. package/dist/src/dbos.js.map +1 -1
  18. package/dist/src/decorators.d.ts +32 -0
  19. package/dist/src/decorators.d.ts.map +1 -1
  20. package/dist/src/decorators.js +35 -0
  21. package/dist/src/decorators.js.map +1 -1
  22. package/dist/src/httpServer/handler.d.ts +12 -0
  23. package/dist/src/httpServer/handler.d.ts.map +1 -1
  24. package/dist/src/httpServer/handler.js +5 -0
  25. package/dist/src/httpServer/handler.js.map +1 -1
  26. package/dist/src/httpServer/server.d.ts.map +1 -1
  27. package/dist/src/httpServer/server.js +8 -1
  28. package/dist/src/httpServer/server.js.map +1 -1
  29. package/dist/src/index.d.ts +25 -15
  30. package/dist/src/index.d.ts.map +1 -1
  31. package/dist/src/index.js +71 -60
  32. package/dist/src/index.js.map +1 -1
  33. package/dist/src/procedure.d.ts +7 -0
  34. package/dist/src/procedure.d.ts.map +1 -1
  35. package/dist/src/procedure.js.map +1 -1
  36. package/dist/src/step.d.ts +7 -0
  37. package/dist/src/step.d.ts.map +1 -1
  38. package/dist/src/step.js.map +1 -1
  39. package/dist/src/telemetry/exporters.d.ts +4 -4
  40. package/dist/src/telemetry/exporters.d.ts.map +1 -1
  41. package/dist/src/telemetry/exporters.js +28 -16
  42. package/dist/src/telemetry/exporters.js.map +1 -1
  43. package/dist/src/testing/testing_runtime.d.ts +2 -0
  44. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  45. package/dist/src/testing/testing_runtime.js +1 -0
  46. package/dist/src/testing/testing_runtime.js.map +1 -1
  47. package/dist/src/transaction.d.ts +7 -0
  48. package/dist/src/transaction.d.ts.map +1 -1
  49. package/dist/src/transaction.js.map +1 -1
  50. package/dist/src/wfqueue.d.ts.map +1 -1
  51. package/dist/src/wfqueue.js +4 -0
  52. package/dist/src/wfqueue.js.map +1 -1
  53. package/dist/src/workflow.d.ts +7 -0
  54. package/dist/src/workflow.d.ts.map +1 -1
  55. package/dist/src/workflow.js.map +1 -1
  56. package/dist/tsconfig.tsbuildinfo +1 -1
  57. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.reset = void 0;
4
- const pg_1 = require("pg");
5
4
  const prompts_1 = require("@inquirer/prompts");
5
+ const system_database_1 = require("../system_database");
6
6
  async function reset(config, logger, cnf) {
7
7
  if (cnf) {
8
8
  const userConfirmed = await (0, prompts_1.confirm)({
@@ -16,21 +16,7 @@ async function reset(config, logger, cnf) {
16
16
  }
17
17
  const sysDbName = config.system_database;
18
18
  logger.info(`Resetting ${sysDbName} if it exists`);
19
- const pgClient = new pg_1.Client({
20
- user: config.poolConfig.user,
21
- host: config.poolConfig.host,
22
- database: 'postgres', // Connect to the default PostgreSQL database
23
- password: config.poolConfig.password,
24
- port: config.poolConfig.port,
25
- });
26
- await pgClient.connect();
27
- console.log('Terminating connections to system database');
28
- await pgClient.query(`SELECT pg_terminate_backend(pg_stat_activity.pid)
29
- FROM pg_stat_activity
30
- WHERE pg_stat_activity.datname = $1
31
- AND pid <> pg_backend_pid()`, [sysDbName]);
32
- await pgClient.query(`DROP DATABASE IF EXISTS ${sysDbName};`);
33
- await pgClient.end();
19
+ await system_database_1.PostgresSystemDatabase.dropSystemDB(config);
34
20
  return 0;
35
21
  }
36
22
  exports.reset = reset;
@@ -1 +1 @@
1
- {"version":3,"file":"reset.js","sourceRoot":"","sources":["../../../src/dbos-runtime/reset.ts"],"names":[],"mappings":";;;AACA,2BAA4B;AAC5B,+CAA4C;AAGrC,KAAK,UAAU,KAAK,CAAC,MAA0B,EAAE,MAAoB,EAAE,GAAY;IACxF,IAAI,GAAG,EAAE,CAAC;QACR,MAAM,aAAa,GAAG,MAAM,IAAA,iBAAO,EAAC;YAClC,OAAO,EACL,oIAAoI;YACtI,OAAO,EAAE,KAAK,EAAE,iCAAiC;SAClD,CAAC,CAAC;QAEH,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;YACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,uCAAuC;QAC1D,CAAC;IACH,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,eAAe,CAAC;IAEzC,MAAM,CAAC,IAAI,CAAC,aAAa,SAAS,eAAe,CAAC,CAAC;IAEnD,MAAM,QAAQ,GAAG,IAAI,WAAM,CAAC;QAC1B,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI;QAC5B,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI;QAC5B,QAAQ,EAAE,UAAU,EAAE,6CAA6C;QACnE,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,QAAQ;QACpC,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI;KAC7B,CAAC,CAAC;IAEH,MAAM,QAAQ,CAAC,OAAO,EAAE,CAAC;IAEzB,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;IAE1D,MAAM,QAAQ,CAAC,KAAK,CAClB;;;4CAGwC,EACxC,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,MAAM,QAAQ,CAAC,KAAK,CAAC,2BAA2B,SAAS,GAAG,CAAC,CAAC;IAE9D,MAAM,QAAQ,CAAC,GAAG,EAAE,CAAC;IAErB,OAAO,CAAC,CAAC;AACX,CAAC;AA3CD,sBA2CC"}
1
+ {"version":3,"file":"reset.js","sourceRoot":"","sources":["../../../src/dbos-runtime/reset.ts"],"names":[],"mappings":";;;AACA,+CAA4C;AAE5C,wDAA4D;AAErD,KAAK,UAAU,KAAK,CAAC,MAA0B,EAAE,MAAoB,EAAE,GAAY;IACxF,IAAI,GAAG,EAAE,CAAC;QACR,MAAM,aAAa,GAAG,MAAM,IAAA,iBAAO,EAAC;YAClC,OAAO,EACL,oIAAoI;YACtI,OAAO,EAAE,KAAK,EAAE,iCAAiC;SAClD,CAAC,CAAC;QAEH,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;YACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,uCAAuC;QAC1D,CAAC;IACH,CAAC;IACD,MAAM,SAAS,GAAG,MAAM,CAAC,eAAe,CAAC;IACzC,MAAM,CAAC,IAAI,CAAC,aAAa,SAAS,eAAe,CAAC,CAAC;IACnD,MAAM,wCAAsB,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAClD,OAAO,CAAC,CAAC;AACX,CAAC;AAjBD,sBAiBC"}
@@ -63,93 +63,395 @@ export declare class DBOS {
63
63
  static appServer: Server | undefined;
64
64
  static conductor: Conductor | undefined;
65
65
  private static getDebugModeFromEnv;
66
+ /**
67
+ * Set configuration of `DBOS` prior to `launch`
68
+ * @param config - configuration of services needed by DBOS
69
+ * @param runtimeConfig - configuration of runtime access to DBOS
70
+ */
66
71
  static setConfig(config: DBOSConfig, runtimeConfig?: DBOSRuntimeConfig): void;
67
72
  private static translateConfig;
73
+ /**
74
+ * @deprecated For unit testing purposes only
75
+ * Use `setConfig`
76
+ */
68
77
  static setAppConfig<T>(key: string, newValue: T): void;
78
+ /**
79
+ * Drop DBOS system database.
80
+ * USE IN TESTS ONLY - ALL WORKFLOWS, QUEUES, ETC. WILL BE LOST.
81
+ */
69
82
  static dropSystemDB(): Promise<void>;
70
- /** Only relevant for TypeORM, and for testing purposes only, not production */
83
+ /**
84
+ * Use ORMEntities to set up database schema.
85
+ * Only relevant for TypeORM, and for testing purposes only, not production
86
+ */
71
87
  static createUserSchema(): Promise<void | undefined>;
72
- /** Only relevant for TypeORM, and for testing purposes only, not production */
88
+ /**
89
+ * Use ORMEntities to drop database schema.
90
+ * Only relevant for TypeORM, and for testing purposes only, not production
91
+ */
73
92
  static dropUserSchema(): Promise<void | undefined>;
74
93
  static loadClasses(dbosEntrypointFiles: string[]): Promise<object[]>;
94
+ /**
95
+ * Check if DBOS has been `launch`ed (and not `shutdown`)
96
+ * @returns `true` if DBOS has been launched, or `false` otherwise
97
+ */
98
+ static isInitialized(): boolean;
99
+ /**
100
+ * Launch DBOS, starting recovery and request handling
101
+ * @param options - Launch options for connecting to DBOS Conductor
102
+ */
75
103
  static launch(options?: DBOSLaunchOptions): Promise<void>;
104
+ /**
105
+ * Logs all workflows that can be invoked externally, rather than directly by the applicaton.
106
+ * This includes:
107
+ * All DBOS event receiver entrypoints (message queues, URLs, etc.)
108
+ * Scheduled workflows
109
+ * Queues
110
+ */
76
111
  static logRegisteredEndpoints(): void;
112
+ /**
113
+ * Shut down DBOS processing:
114
+ * Stops receiving external workflow requests
115
+ * Disconnects from administration / Conductor
116
+ * Stops workflow processing and disconnects from databases
117
+ */
77
118
  static shutdown(): Promise<void>;
119
+ /** Stop listening for external events (for testing) */
78
120
  static deactivateEventReceivers(): Promise<void | undefined>;
121
+ /** Start listening for external events (for testing) */
79
122
  static initEventReceivers(): Promise<void | undefined>;
123
+ /**
124
+ * Global DBOS executor instance
125
+ */
80
126
  static get executor(): DBOSExecutorContext;
127
+ /**
128
+ * Creates a node.js HTTP handler for all entrypoints registered with `@DBOS.getApi`
129
+ * and other decorators. The handler can be retrieved with `DBOS.getHTTPHandlersCallback()`.
130
+ * This method does not start listening for requests. For that, call `DBOS.launchAppHTTPServer()`.
131
+ */
81
132
  static setUpHandlerCallback(): DBOSHttpServer;
133
+ /**
134
+ * Creates a node.js HTTP handler for all entrypoints registered with `@DBOS.getApi`
135
+ * and other decorators. This method also starts listening for requests, on the port
136
+ * specified in the `DBOSRuntimeConfig`.
137
+ */
82
138
  static launchAppHTTPServer(): Promise<void>;
139
+ /**
140
+ * Retrieves the HTTP handlers callback for DBOS HTTP.
141
+ * (This is the one that handles the @DBOS.getApi, etc., methods.)
142
+ * Useful for testing purposes, or to combine the DBOS service with other
143
+ * node.js HTTP server frameworks.
144
+ */
83
145
  static getHTTPHandlersCallback(): ((req: import("http").IncomingMessage | import("http2").Http2ServerRequest, res: import("http").ServerResponse<import("http").IncomingMessage> | import("http2").Http2ServerResponse) => Promise<void>) | undefined;
146
+ /** For unit testing of admin server (do not call) */
84
147
  static getAdminCallback(): ((req: import("http").IncomingMessage | import("http2").Http2ServerRequest, res: import("http").ServerResponse<import("http").IncomingMessage> | import("http2").Http2ServerResponse) => Promise<void>) | undefined;
85
148
  static globalLogger?: DLogger;
86
149
  static dbosConfig?: DBOSConfig;
87
150
  static runtimeConfig?: DBOSRuntimeConfig;
88
151
  static invokeWrappers: Map<unknown, unknown>;
152
+ /** Get the current DBOS Logger, appropriate to the current context */
89
153
  static get logger(): DLogger;
154
+ /** Get the current DBOS tracing span, appropriate to the current context */
90
155
  static get span(): Span | undefined;
156
+ /** Get the current HTTP request (within `@DBOS.getApi` et al) */
91
157
  static getRequest(): HTTPRequest | undefined;
158
+ /** Get the current HTTP request (within `@DBOS.getApi` et al) */
92
159
  static get request(): HTTPRequest;
160
+ /** Get the current Koa context (within `@DBOS.getApi` et al) */
93
161
  static getKoaContext(): Koa.Context | undefined;
162
+ /** Get the current Koa context (within `@DBOS.getApi` et al) */
94
163
  static get koaContext(): Koa.Context;
164
+ /** Get the current workflow ID */
95
165
  static get workflowID(): string | undefined;
166
+ /** Get the current step number, within the current workflow */
96
167
  static get stepID(): number | undefined;
97
168
  static get stepStatus(): StepStatus | undefined;
169
+ /** Get the current authenticated user */
98
170
  static get authenticatedUser(): string;
171
+ /** Get the roles granted to the current authenticated user */
99
172
  static get authenticatedRoles(): string[];
173
+ /** Get the role assumed by the current user giving authorization to execute the current function */
100
174
  static get assumedRole(): string;
175
+ /** @returns true if called from within a transaction, false otherwise */
101
176
  static isInTransaction(): boolean;
177
+ /** @returns true if called from within a stored procedure, false otherwise */
102
178
  static isInStoredProc(): boolean;
179
+ /** @returns true if called from within a step, false otherwise */
103
180
  static isInStep(): boolean;
181
+ /**
182
+ * @returns true if called from within a workflow
183
+ * (regardless of whether the workflow is currently executing a step,
184
+ * transaction, or procedure), false otherwise
185
+ */
104
186
  static isWithinWorkflow(): boolean;
187
+ /**
188
+ * @returns true if called from within a workflow that is not currently executing
189
+ * a step, transaction, or procedure, or false otherwise
190
+ */
105
191
  static isInWorkflow(): boolean;
192
+ /** @returns the current SQL client; only allowed within `@DBOS.transaction` functions */
106
193
  static get sqlClient(): UserDatabaseClient;
194
+ /**
195
+ * @returns the current PG SQL client;
196
+ * only allowed within `@DBOS.transaction` functions when a `PGNODE` user database is in use
197
+ */
107
198
  static get pgClient(): PoolClient;
199
+ /**
200
+ * @returns the current Knex SQL client;
201
+ * only allowed within `@DBOS.transaction` functions when a `KNEX` user database is in use
202
+ */
108
203
  static get knexClient(): Knex;
204
+ /**
205
+ * @returns the current Prisma SQL client;
206
+ * only allowed within `@DBOS.transaction` functions when a `PRISMA` user database is in use
207
+ */
109
208
  static get prismaClient(): PrismaClient;
209
+ /**
210
+ * @returns the current TypeORM SQL client;
211
+ * only allowed within `@DBOS.transaction` functions when the `TYPEORM` user database is in use
212
+ */
110
213
  static get typeORMClient(): TypeORMEntityManager;
214
+ /**
215
+ * @returns the current Drizzle SQL client;
216
+ * only allowed within `@DBOS.transaction` functions when the `DRIZZLE` user database is in use
217
+ */
111
218
  static get drizzleClient(): DrizzleClient;
112
219
  static getConfig<T>(key: string): T | undefined;
113
220
  static getConfig<T>(key: string, defaultValue: T): T;
221
+ /**
222
+ * Query the current application database
223
+ * @param sql - parameterized SQL statement (string) to execute
224
+ * @param params - parameter values for `sql`
225
+ * @template T - Type for the returned records
226
+ * @returns Array of records returned by the SQL statement
227
+ */
114
228
  static queryUserDB<T = unknown>(sql: string, params?: unknown[]): Promise<T[]>;
229
+ /**
230
+ * Get the workflow status given a workflow ID
231
+ * @param workflowID - ID of the workflow
232
+ * @returns status of the workflow as `WorkflowStatus`, or `null` if there is no workflow with `workflowID`
233
+ */
115
234
  static getWorkflowStatus(workflowID: string): Promise<import("./workflow").WorkflowStatus | null>;
235
+ /**
236
+ * Create a workflow handle with a given workflow ID.
237
+ * This call always returns a handle, even if the workflow does not exist.
238
+ * The resulting handle will check the database to provide any workflow information.
239
+ * @param workflowID - ID of the workflow
240
+ * @returns `WorkflowHandle` that can be used to poll for the status or result of any workflow with `workflowID`
241
+ */
116
242
  static retrieveWorkflow<T = unknown>(workflowID: string): WorkflowHandle<Awaited<T>>;
243
+ /**
244
+ * Query the system database for all workflows matching the provided predicate
245
+ * @param input - `GetWorkflowsInput` predicate for filtering returned workflows
246
+ * @returns `GetWorkflowsOutput` listing the workflow IDs of matching workflows
247
+ */
117
248
  static getWorkflows(input: GetWorkflowsInput): Promise<GetWorkflowsOutput>;
118
- static cancelWorkflow(wfid: string): Promise<void>;
119
- static resumeWorkflow(wfid: string): Promise<WorkflowHandle<unknown>>;
249
+ /**
250
+ * Cancel a workflow given its ID.
251
+ * If the workflow is currently running, `DBOSWorkflowCancelledError` will be
252
+ * thrown from its next DBOS call.
253
+ * @param workflowID - ID of the workflow
254
+ */
255
+ static cancelWorkflow(workflowID: string): Promise<void>;
256
+ /**
257
+ * Resume a workflow given its ID.
258
+ * @param workflowID - ID of the workflow
259
+ */
260
+ static resumeWorkflow(workflowID: string): Promise<WorkflowHandle<unknown>>;
261
+ /**
262
+ * Retrieve the contents of a workflow queue.
263
+ * @param input - Filter predicate, containing the queue name and other criteria
264
+ */
120
265
  static getWorkflowQueue(input: GetWorkflowQueueInput): Promise<GetWorkflowQueueOutput>;
266
+ /**
267
+ * Sleep for the specified amount of time.
268
+ * If called from within a workflow, the sleep is "durable",
269
+ * meaning that the workflow will sleep until the wakeup time
270
+ * (calculated by adding `durationMS` to the original invocation time),
271
+ * regardless of workflow recovery.
272
+ * @param durationMS - Length of sleep, in milliseconds.
273
+ */
121
274
  static sleepms(durationMS: number): Promise<void>;
275
+ /** @see sleepms */
122
276
  static sleepSeconds(durationSec: number): Promise<void>;
277
+ /** @see sleepms */
123
278
  static sleep(durationMS: number): Promise<void>;
124
- static withNextWorkflowID<R>(wfid: string, callback: () => Promise<R>): Promise<R>;
279
+ /**
280
+ * Use the provided `workflowID` as the identifier for first workflow started
281
+ * within the `callback` function.
282
+ * @param workflowID - ID to assign to the first workflow started
283
+ * @param callback - Function to run, which would start a workflow
284
+ * @returns - Return value from `callback`
285
+ */
286
+ static withNextWorkflowID<R>(workflowID: string, callback: () => Promise<R>): Promise<R>;
287
+ /**
288
+ * Use the provided `callerName`, `span`, and `request` as context for any
289
+ * DBOS functions called within the `callback` function.
290
+ * @param callerName - Tracing caller name
291
+ * @param span - Tracing span
292
+ * @param request - HTTP request that initiated the call
293
+ * @param callback - Function to run with tracing context in place
294
+ * @returns - Return value from `callback`
295
+ */
125
296
  static withTracedContext<R>(callerName: string, span: Span, request: HTTPRequest, callback: () => Promise<R>): Promise<R>;
297
+ /**
298
+ * Use the provided `authedUser` and `authedRoles` as the authenticated user for
299
+ * any security checks or calls to `DBOS.authenticatedUser`
300
+ * or `DBOS.authenticatedRoles` placed within the `callback` function.
301
+ * @param authedUser - Authenticated user
302
+ * @param authedRoles - Authenticated roles
303
+ * @param callback - Function to run with authentication context in place
304
+ * @returns - Return value from `callback`
305
+ */
126
306
  static withAuthedContext<R>(authedUser: string, authedRoles: string[], callback: () => Promise<R>): Promise<R>;
307
+ /**
308
+ * This generic setter helps users calling DBOS operation to pass a name,
309
+ * later used in seeding a parent OTel span for the operation.
310
+ * @param callerName - Tracing caller name
311
+ * @param callback - Function to run with tracing context in place
312
+ * @returns - Return value from `callback`
313
+ */
127
314
  static withNamedContext<R>(callerName: string, callback: () => Promise<R>): Promise<R>;
128
- static withWorkflowQueue<R>(wfq: string, callback: () => Promise<R>): Promise<R>;
129
- static startWorkflow<T extends ConfiguredInstance>(targetClass: T, params?: StartWorkflowParams): InvokeFunctionsAsyncInst<T>;
315
+ /**
316
+ * Use queue named `queueName` for any workflows started within the `callback`.
317
+ * @param queueName - Name of queue upon which qll workflows called or started within `callback` will be run
318
+ * @param callback - Function to run, which would call or start workflows
319
+ * @returns - Return value from `callback`
320
+ */
321
+ static withWorkflowQueue<R>(queueName: string, callback: () => Promise<R>): Promise<R>;
322
+ /**
323
+ * Start a workflow in the background, returning a handle that can be used to check status, await a result,
324
+ * or otherwise interact with the workflow.
325
+ * The full syntax is:
326
+ * `handle = await DBOS.startWorkflow(<target object>, <params>).<target method>(<args>);`
327
+ * @param target - Object (which must be a `ConfiguredInstance`) containing the instance method to invoke
328
+ * @param params - `StartWorkflowParams` which may specify the ID, queue, or other parameters for starting the workflow
329
+ * @returns - `WorkflowHandle` which can be used to interact with the workflow
330
+ */
331
+ static startWorkflow<T extends ConfiguredInstance>(target: T, params?: StartWorkflowParams): InvokeFunctionsAsyncInst<T>;
332
+ /**
333
+ * Start a workflow in the background, returning a handle that can be used to check status, await a result,
334
+ * or otherwise interact with the workflow.
335
+ * The full syntax is:
336
+ * `handle = await DBOS.startWorkflow(<target class>, <params>).<target method>(<args>);`
337
+ * @param target - Class containing the static method to invoke
338
+ * @param params - `StartWorkflowParams` which may specify the ID, queue, or other parameters for starting the workflow
339
+ * @returns - `WorkflowHandle` which can be used to interact with the workflow
340
+ */
130
341
  static startWorkflow<T extends object>(targetClass: T, params?: StartWorkflowParams): InvokeFunctionsAsync<T>;
131
342
  static proxyInvokeWF<T extends object>(object: T, configuredInstance: ConfiguredInstance | null, inParams?: StartWorkflowParams): InvokeFunctionsAsync<T>;
343
+ /** @deprecated Adjust target function to exclude its `DBOSContext` argument, and then call the function directly */
132
344
  static invoke<T extends ConfiguredInstance>(targetCfg: T): InvokeFuncsInst<T>;
133
345
  static invoke<T extends object>(targetClass: T): InvokeFuncs<T>;
346
+ /**
347
+ * Send `message` on optional `topic` to the workflow with `destinationID`
348
+ * This can be done from inside or outside of DBOS workflow functions
349
+ * Use the optional `idempotencyKey` to guarantee that the message is sent exactly once
350
+ * @see `DBOS.recv`
351
+ *
352
+ * @param destinationID - ID of the workflow that will `recv` the message
353
+ * @param message - Message to send, which must be serializable as JSON
354
+ * @param topic - Optional topic; if specified the `recv` command can specify the same topic to receive selectively
355
+ * @param idempotencyKey - Optional key for sending the message exactly once
356
+ */
134
357
  static send<T>(destinationID: string, message: T, topic?: string, idempotencyKey?: string): Promise<void>;
358
+ /**
359
+ * Receive a message on optional `topic` from within a workflow.
360
+ * This must be called from within a workflow; this workflow's ID is used to check for messages sent by `DBOS.send`
361
+ * This can be configured to time out.
362
+ * Messages are received in the order in which they are sent (per-sender / causal order).
363
+ * @see `DBOS.send`
364
+ *
365
+ * @param topic - Optional topic; if specified the `recv` command can specify the same topic to receive selectively
366
+ * @param timeoutSeconds - Optional timeout; if no message is received before the timeout, `null` will be returned
367
+ * @template T - The type of message that is expected to be received
368
+ * @returns Any message received, or `null` if the timeout expires
369
+ */
135
370
  static recv<T>(topic?: string, timeoutSeconds?: number): Promise<T | null>;
371
+ /**
372
+ * Set an event, from within a DBOS workflow. This value can be retrieved with `DBOS.getEvent`.
373
+ * If the event `key` already exists, its `value` is updated.
374
+ * This function can only be called from within a workflow.
375
+ * @see `DBOS.getEvent`
376
+ *
377
+ * @param key - The key for the event; at most one value is associated with a key at any given time.
378
+ * @param value - The value to associate with `key`
379
+ */
136
380
  static setEvent<T>(key: string, value: T): Promise<void>;
381
+ /**
382
+ * Get the value of a workflow event, or wait for it to be set.
383
+ * This function can be called inside or outside of DBOS workflow functions.
384
+ * If this function is called from within a workflow, its result is durably checkpointed.
385
+ * @see `DBOS.setEvent`
386
+ *
387
+ * @param workflowID - The ID of the workflow with the corresponding `setEvent`
388
+ * @param key - The key for the event; at most one value is associated with a key at any given time.
389
+ * @param timeoutSeconds - Optional timeout; if a value for `key` is not set before the timeout, `null` will be returned
390
+ * @template T - The expected type for the value assigned to `key`
391
+ * @returns The value to associate with `key`, or `null` if the timeout is hit
392
+ */
137
393
  static getEvent<T>(workflowID: string, key: string, timeoutSeconds?: number): Promise<T | null>;
394
+ /**
395
+ * Decorator associating a class static method with an invocation schedule
396
+ * @param schedulerConfig - The schedule, consisting of a crontab and policy for "make-up work"
397
+ */
138
398
  static scheduled(schedulerConfig: SchedulerConfig): <This, Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ...args: ScheduledArgs) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, args_0: Date, args_1: Date) => Promise<Return>>;
399
+ /**
400
+ * Decorator designating a method as a DBOS workflow
401
+ * Durable execution will be applied within calls to the workflow function
402
+ * This also registers the function so that it is available during recovery
403
+ * @param config - Configuration information for the workflow
404
+ */
139
405
  static workflow(config?: WorkflowConfig): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>;
406
+ /**
407
+ * Decorator designating a method as a DBOS transaction, making SQL clients available.
408
+ * A durable execution checkpoint will be applied to to the underlying database transaction
409
+ * @see `DBOS.sqlClient`
410
+ * @param config - Configuration information for the transaction, particularly its isolation mode
411
+ */
140
412
  static transaction(config?: TransactionConfig): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>;
413
+ /**
414
+ * Decorator designating a method as a DBOS stored procedure.
415
+ * Within the procedure, `DBOS.sqlClient` is available for database operations.
416
+ * A durable execution checkpoint will be applied to to the underlying database transaction
417
+ * @param config - Configuration information for the stored procedure, particularly its execution mode
418
+ */
141
419
  static storedProcedure(config?: StoredProcedureConfig): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>;
420
+ /**
421
+ * Decorator designating a method as a DBOS step.
422
+ * A durable checkpoint will be made after the step completes
423
+ * This ensures "at least once" execution of the step, and that the step will not
424
+ * be executed again once the checkpoint is recorded
425
+ *
426
+ * @param config - Configuration information for the step, particularly the retry policy
427
+ */
142
428
  static step(config?: StepConfig): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>;
429
+ /** Decorator indicating that the method is the target of HTTP GET operations for `url` */
143
430
  static getApi(url: string): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>;
431
+ /** Decorator indicating that the method is the target of HTTP POST operations for `url` */
144
432
  static postApi(url: string): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>;
433
+ /** Decorator indicating that the method is the target of HTTP PUT operations for `url` */
145
434
  static putApi(url: string): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>;
435
+ /** Decorator indicating that the method is the target of HTTP PATCH operations for `url` */
146
436
  static patchApi(url: string): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>;
437
+ /** Decorator indicating that the method is the target of HTTP DELETE operations for `url` */
147
438
  static deleteApi(url: string): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>;
439
+ /**
440
+ * Decorate a class with the default list of required roles.
441
+ * This class-level default can be overridden on a per-function basis with `requiredRole`.
442
+ * @param anyOf - The list of roles allowed access; authorization is granted if the authenticated user has any role on the list
443
+ */
148
444
  static defaultRequiredRole(anyOf: string[]): <T extends new (...args: any[]) => object>(ctor: T) => void;
445
+ /**
446
+ * Decorate a method with the default list of required roles.
447
+ * @see `DBOS.defaultRequiredRole`
448
+ * @param anyOf - The list of roles allowed access; authorization is granted if the authenticated user has any role on the list
449
+ */
149
450
  static requiredRole(anyOf: string[]): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>;
150
451
  /**
151
452
  * Construct and register an object.
152
453
  * Calling this is not necessary; calling the constructor of any `ConfiguredInstance` subclass is sufficient
454
+ * @deprecated Use `new` directly
153
455
  */
154
456
  static configureInstance<R extends ConfiguredInstance, T extends unknown[]>(cls: new (name: string, ...args: T) => R, name: string, ...args: T): R;
155
457
  static registerAndWrapDBOSFunction<This, Args extends unknown[], Return>(target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>): {
@@ -159,6 +461,7 @@ export declare class DBOS {
159
461
  static executeWorkflowById(workflowId: string, startNewWorkflow?: boolean): Promise<WorkflowHandle<unknown>>;
160
462
  static recoverPendingWorkflows(executorIDs?: string[]): Promise<WorkflowHandle<unknown>[]>;
161
463
  }
464
+ /** @deprecated */
162
465
  export declare class InitContext {
163
466
  createUserSchema(): Promise<void>;
164
467
  dropUserSchema(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"dbos.d.ts","sourceRoot":"","sources":["../../src/dbos.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAKL,WAAW,EAIX,UAAU,EACX,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,UAAU,EAIV,SAAS,EAEV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EAGf,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAgB,MAAM,kBAAkB,CAAC;AASzD,OAAO,EAAe,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,eAAe,EAA6B,MAAM,uBAAuB,CAAC;AAClG,OAAO,EAIL,kBAAkB,EAKnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EACL,aAAa,EACb,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAEnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,iBAAiB,EAA+C,MAAM,eAAe,CAAC;AAE/F,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,C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