@tailor-platform/sdk 0.16.3 → 0.18.0
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/CHANGELOG.md +29 -0
- package/README.md +75 -8
- package/dist/cli/api.d.mts +35 -31
- package/dist/cli/api.mjs +2 -2
- package/dist/cli/api.mjs.map +1 -1
- package/dist/cli/index.mjs +51 -75
- package/dist/cli/index.mjs.map +1 -1
- package/dist/configure/index.d.mts +3 -3
- package/dist/{index-Bin7-j3v.d.mts → index-BWqIQ4iC.d.mts} +2 -2
- package/dist/job-CL8myeqs.mjs.map +1 -1
- package/dist/{resume-kyHIaNvK.mjs → resume-ChDChtAZ.mjs} +200 -137
- package/dist/{resume-kyHIaNvK.mjs.map → resume-ChDChtAZ.mjs.map} +1 -1
- package/dist/{types-Da_WnvA0.d.mts → types-DgaCdTug.d.mts} +21 -13
- package/dist/utils/test/index.d.mts +9 -3
- package/dist/utils/test/index.mjs +8 -6
- package/dist/utils/test/index.mjs.map +1 -1
- package/docs/cli/application.md +136 -0
- package/docs/cli/auth.md +110 -0
- package/docs/cli/secret.md +125 -0
- package/docs/cli/user.md +183 -0
- package/docs/cli/workflow.md +144 -0
- package/docs/cli/workspace.md +122 -0
- package/docs/cli-reference.md +80 -801
- package/docs/configuration.md +62 -32
- package/docs/generator/builtin.md +194 -0
- package/docs/generator/custom.md +150 -0
- package/docs/generator/index.md +56 -0
- package/docs/quickstart.md +9 -4
- package/docs/services/auth.md +244 -0
- package/docs/services/executor.md +304 -0
- package/docs/services/idp.md +106 -0
- package/docs/services/resolver.md +213 -0
- package/docs/services/secret.md +116 -0
- package/docs/services/staticwebsite.md +132 -0
- package/docs/services/tailordb.md +325 -0
- package/docs/services/workflow.md +176 -0
- package/docs/testing.md +3 -1
- package/package.json +9 -8
- package/docs/core-concepts.md +0 -609
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 0.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#198](https://github.com/tailor-platform/sdk/pull/198) [`7f06c62`](https://github.com/tailor-platform/sdk/commit/7f06c620a2b3baf551dcbd39418fcb0675661463) Thanks [@toiroakr](https://github.com/toiroakr)! - refactor!: rename entityAction to actionEntity
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#203](https://github.com/tailor-platform/sdk/pull/203) [`f3c559e`](https://github.com/tailor-platform/sdk/commit/f3c559e426572431db25f4b71af414650dc6e9a4) Thanks [@remiposo](https://github.com/remiposo)! - Fix Kysely type generation for enum array fields to wrap union types in parentheses
|
|
12
|
+
|
|
13
|
+
- [#192](https://github.com/tailor-platform/sdk/pull/192) [`d2ce834`](https://github.com/tailor-platform/sdk/commit/d2ce8345fb839f6086f4286c27373dfa3336734c) Thanks [@k1LoW](https://github.com/k1LoW)! - feat: support `accessTokenLifetimeSeconds` and `refreshTokenLifetimeSeconds` for auth oauth2 client
|
|
14
|
+
|
|
15
|
+
## 0.17.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#158](https://github.com/tailor-platform/sdk/pull/158) [`cde0a0a`](https://github.com/tailor-platform/sdk/commit/cde0a0a3e1d517e8036f799ce2a0b8958f7e18c4) Thanks [@riku99](https://github.com/riku99)! - CLI changes:
|
|
20
|
+
- Replace `--format` with `--json` for all list/detail commands. `--format` is no longer supported.
|
|
21
|
+
- Change default table layout for list output and humanize `createdAt` / `updatedAt` in table format (JSON remains ISO strings).
|
|
22
|
+
- `workspace list`: hide `updatedAt` in table output and add `--limit=<number>` to cap the number of workspaces shown.
|
|
23
|
+
|
|
24
|
+
**Breaking:** Scripts or tooling that relied on `--format` or the previous table layout may need to be updated.
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- [#197](https://github.com/tailor-platform/sdk/pull/197) [`6c141f0`](https://github.com/tailor-platform/sdk/commit/6c141f0cf23d360f531dec2a39330b3fa755f7e1) Thanks [@toiroakr](https://github.com/toiroakr)! - Fix `tailordb truncate` command argument parsing: `-n` alias now works correctly and multiple type names can be specified as space-separated arguments
|
|
29
|
+
|
|
30
|
+
- [#191](https://github.com/tailor-platform/sdk/pull/191) [`92f0e99`](https://github.com/tailor-platform/sdk/commit/92f0e99f0bbcdd4616b56157cd2b67a71757fb05) Thanks [@toiroakr](https://github.com/toiroakr)! - fix: createTailorDBHook for Date
|
|
31
|
+
|
|
3
32
|
## 0.16.3
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,13 +1,80 @@
|
|
|
1
1
|
# Tailor Platform SDK
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@tailor-platform/sdk` is a TypeScript SDK for building applications on the [Tailor Platform](https://docs.tailor.tech/).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Overview
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Tailor Platform is a headless business platform that provides backend services for building enterprise applications. The SDK enables you to:
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
9
|
+
- Define type-safe database schemas with TailorDB
|
|
10
|
+
- Create custom GraphQL resolvers with business logic
|
|
11
|
+
- Set up event-driven executors for automation
|
|
12
|
+
- Orchestrate complex workflows with multiple jobs
|
|
13
|
+
- Configure authentication and authorization
|
|
14
|
+
|
|
15
|
+
All configurations are written in TypeScript, providing full type safety.
|
|
16
|
+
|
|
17
|
+
### Important Notes
|
|
18
|
+
|
|
19
|
+
Some SDK concepts differ from the native Tailor Platform. Be aware of these differences when referring to the official Tailor Platform documentation.
|
|
20
|
+
|
|
21
|
+
#### Resolver
|
|
22
|
+
|
|
23
|
+
The SDK's Resolver corresponds to Tailor Platform's [Pipeline Resolver](https://docs.tailor.tech/guides/pipeline). The key difference is that Pipeline steps are replaced with a single `body` function. See [Resolver](./docs/services/resolver.md) for details.
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm install @tailor-platform/sdk
|
|
29
|
+
# OR
|
|
30
|
+
yarn add @tailor-platform/sdk
|
|
31
|
+
# OR
|
|
32
|
+
pnpm add @tailor-platform/sdk
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Quick Start
|
|
36
|
+
|
|
37
|
+
Create a new project using the CLI:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm create @tailor-platform/sdk my-app --template hello-world
|
|
41
|
+
cd my-app
|
|
42
|
+
npm run deploy -- --workspace-id <your-workspace-id>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
See [Available Templates](https://github.com/tailor-platform/sdk/tree/main/packages/create-sdk#available-templates) for more options.
|
|
46
|
+
|
|
47
|
+
For more details, see the [Quickstart Guide](./docs/quickstart.md).
|
|
48
|
+
|
|
49
|
+
## Learn More
|
|
50
|
+
|
|
51
|
+
### Configuration
|
|
52
|
+
|
|
53
|
+
- [Configuration](./docs/configuration.md) - Application and service configuration
|
|
54
|
+
|
|
55
|
+
### Services
|
|
56
|
+
|
|
57
|
+
| Service | Description |
|
|
58
|
+
| -------------------------------------------------- | -------------------------------------------- |
|
|
59
|
+
| [TailorDB](./docs/services/tailordb.md) | Type-safe database schema definition |
|
|
60
|
+
| [Resolver](./docs/services/resolver.md) | Custom GraphQL resolvers with business logic |
|
|
61
|
+
| [Executor](./docs/services/executor.md) | Event-driven handlers for automation |
|
|
62
|
+
| [Workflow](./docs/services/workflow.md) | Job orchestration for complex operations |
|
|
63
|
+
| [Auth](./docs/services/auth.md) | Authentication and authorization |
|
|
64
|
+
| [IdP](./docs/services/idp.md) | Built-in identity provider |
|
|
65
|
+
| [Static Website](./docs/services/staticwebsite.md) | Static file hosting |
|
|
66
|
+
| [Secret Manager](./docs/services/secret.md) | Secure credential storage |
|
|
67
|
+
|
|
68
|
+
### Guides
|
|
69
|
+
|
|
70
|
+
- [Testing Guide](./docs/testing.md) - Unit and E2E testing patterns
|
|
71
|
+
- [CLI Reference](./docs/cli-reference.md) - Command-line interface documentation
|
|
72
|
+
|
|
73
|
+
### Templates
|
|
74
|
+
|
|
75
|
+
See [Create Tailor Platform SDK](https://github.com/tailor-platform/sdk/tree/main/packages/create-sdk) for available project templates.
|
|
76
|
+
|
|
77
|
+
## Requirements
|
|
78
|
+
|
|
79
|
+
- Node.js 22 or later
|
|
80
|
+
- A Tailor Platform account ([request access](https://www.tailor.tech/demo))
|
package/dist/cli/api.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./../user-defined.d.ts" />
|
|
2
2
|
|
|
3
|
-
import { AppConfig, CodeGeneratorBase, Executor, Generator, IdProviderConfig,
|
|
3
|
+
import { AppConfig, CodeGeneratorBase, Executor, Generator, IdProviderConfig, OAuth2ClientInput, Resolver, TailorDBTypeConfig } from "../types-DgaCdTug.mjs";
|
|
4
4
|
import "citty";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import "@bufbuild/protobuf/wkt";
|
|
@@ -90,7 +90,7 @@ interface GeneratorAuthInput {
|
|
|
90
90
|
machineUsers?: Record<string, {
|
|
91
91
|
attributes: Record<string, unknown>;
|
|
92
92
|
}>;
|
|
93
|
-
oauth2Clients?: Record<string,
|
|
93
|
+
oauth2Clients?: Record<string, OAuth2ClientInput>;
|
|
94
94
|
idProvider?: IdProviderConfig;
|
|
95
95
|
}
|
|
96
96
|
interface GeneratorInput<T, R> {
|
|
@@ -124,6 +124,7 @@ interface CodeGenerator<T = any, R = any, E = any, Ts = any, Rs = any> extends O
|
|
|
124
124
|
input: GeneratorInput<Ts, Rs>;
|
|
125
125
|
executorInputs: E[];
|
|
126
126
|
baseDir: string;
|
|
127
|
+
configPath: string;
|
|
127
128
|
}): GeneratorResult | Promise<GeneratorResult>;
|
|
128
129
|
}
|
|
129
130
|
//#endregion
|
|
@@ -183,26 +184,29 @@ interface WorkspaceInfo {
|
|
|
183
184
|
}
|
|
184
185
|
//#endregion
|
|
185
186
|
//#region src/cli/workspace/create.d.ts
|
|
186
|
-
interface
|
|
187
|
+
interface CreateWorkspaceOptions {
|
|
187
188
|
name: string;
|
|
188
189
|
region: string;
|
|
189
190
|
deleteProtection?: boolean;
|
|
190
191
|
organizationId?: string;
|
|
191
192
|
folderId?: string;
|
|
192
193
|
}
|
|
193
|
-
declare function
|
|
194
|
+
declare function createWorkspace(options: CreateWorkspaceOptions): Promise<WorkspaceInfo>;
|
|
194
195
|
//#endregion
|
|
195
196
|
//#region src/cli/workspace/list.d.ts
|
|
196
|
-
|
|
197
|
+
interface ListWorkspacesOptions {
|
|
198
|
+
limit?: number;
|
|
199
|
+
}
|
|
200
|
+
declare function listWorkspaces(options?: ListWorkspacesOptions): Promise<WorkspaceInfo[]>;
|
|
197
201
|
//#endregion
|
|
198
202
|
//#region src/cli/workspace/delete.d.ts
|
|
199
|
-
interface
|
|
203
|
+
interface DeleteWorkspaceOptions {
|
|
200
204
|
workspaceId: string;
|
|
201
205
|
}
|
|
202
|
-
declare function
|
|
206
|
+
declare function deleteWorkspace(options: DeleteWorkspaceOptions): Promise<void>;
|
|
203
207
|
//#endregion
|
|
204
208
|
//#region src/cli/machineuser/list.d.ts
|
|
205
|
-
interface
|
|
209
|
+
interface ListMachineUsersOptions {
|
|
206
210
|
workspaceId?: string;
|
|
207
211
|
profile?: string;
|
|
208
212
|
configPath?: string;
|
|
@@ -214,10 +218,10 @@ interface MachineUserInfo {
|
|
|
214
218
|
createdAt: string;
|
|
215
219
|
updatedAt: string;
|
|
216
220
|
}
|
|
217
|
-
declare function
|
|
221
|
+
declare function listMachineUsers(options?: ListMachineUsersOptions): Promise<MachineUserInfo[]>;
|
|
218
222
|
//#endregion
|
|
219
223
|
//#region src/cli/machineuser/token.d.ts
|
|
220
|
-
interface
|
|
224
|
+
interface GetMachineUserTokenOptions {
|
|
221
225
|
name: string;
|
|
222
226
|
workspaceId?: string;
|
|
223
227
|
profile?: string;
|
|
@@ -228,7 +232,7 @@ interface MachineUserTokenInfo {
|
|
|
228
232
|
tokenType: string;
|
|
229
233
|
expiresAt: string;
|
|
230
234
|
}
|
|
231
|
-
declare function
|
|
235
|
+
declare function getMachineUserToken(options: GetMachineUserTokenOptions): Promise<MachineUserTokenInfo>;
|
|
232
236
|
//#endregion
|
|
233
237
|
//#region src/cli/oauth2client/transform.d.ts
|
|
234
238
|
interface OAuth2ClientInfo {
|
|
@@ -250,21 +254,21 @@ interface OAuth2ClientCredentials {
|
|
|
250
254
|
}
|
|
251
255
|
//#endregion
|
|
252
256
|
//#region src/cli/oauth2client/get.d.ts
|
|
253
|
-
interface
|
|
257
|
+
interface GetOAuth2ClientOptions {
|
|
254
258
|
name: string;
|
|
255
259
|
workspaceId?: string;
|
|
256
260
|
profile?: string;
|
|
257
261
|
configPath?: string;
|
|
258
262
|
}
|
|
259
|
-
declare function
|
|
263
|
+
declare function getOAuth2Client(options: GetOAuth2ClientOptions): Promise<OAuth2ClientCredentials>;
|
|
260
264
|
//#endregion
|
|
261
265
|
//#region src/cli/oauth2client/list.d.ts
|
|
262
|
-
interface
|
|
266
|
+
interface ListOAuth2ClientsOptions {
|
|
263
267
|
workspaceId?: string;
|
|
264
268
|
profile?: string;
|
|
265
269
|
configPath?: string;
|
|
266
270
|
}
|
|
267
|
-
declare function
|
|
271
|
+
declare function listOAuth2Clients(options?: ListOAuth2ClientsOptions): Promise<OAuth2ClientInfo[]>;
|
|
268
272
|
//#endregion
|
|
269
273
|
//#region src/cli/workflow/transform.d.ts
|
|
270
274
|
interface WorkflowListInfo {
|
|
@@ -299,22 +303,22 @@ interface WorkflowExecutionInfo {
|
|
|
299
303
|
}
|
|
300
304
|
//#endregion
|
|
301
305
|
//#region src/cli/workflow/list.d.ts
|
|
302
|
-
interface
|
|
306
|
+
interface ListWorkflowsOptions {
|
|
303
307
|
workspaceId?: string;
|
|
304
308
|
profile?: string;
|
|
305
309
|
}
|
|
306
|
-
declare function
|
|
310
|
+
declare function listWorkflows(options?: ListWorkflowsOptions): Promise<WorkflowListInfo[]>;
|
|
307
311
|
//#endregion
|
|
308
312
|
//#region src/cli/workflow/get.d.ts
|
|
309
|
-
interface
|
|
313
|
+
interface GetWorkflowOptions {
|
|
310
314
|
nameOrId: string;
|
|
311
315
|
workspaceId?: string;
|
|
312
316
|
profile?: string;
|
|
313
317
|
}
|
|
314
|
-
declare function
|
|
318
|
+
declare function getWorkflow(options: GetWorkflowOptions): Promise<WorkflowInfo>;
|
|
315
319
|
//#endregion
|
|
316
320
|
//#region src/cli/workflow/start.d.ts
|
|
317
|
-
interface
|
|
321
|
+
interface StartWorkflowOptions {
|
|
318
322
|
nameOrId: string;
|
|
319
323
|
machineUser: string;
|
|
320
324
|
arg?: Jsonifiable;
|
|
@@ -323,20 +327,20 @@ interface WorkflowStartOptions {
|
|
|
323
327
|
configPath?: string;
|
|
324
328
|
interval?: number;
|
|
325
329
|
}
|
|
326
|
-
interface
|
|
330
|
+
interface StartWorkflowResultWithWait {
|
|
327
331
|
executionId: string;
|
|
328
332
|
wait: () => Promise<WorkflowExecutionInfo>;
|
|
329
333
|
}
|
|
330
|
-
declare function
|
|
334
|
+
declare function startWorkflow(options: StartWorkflowOptions): Promise<StartWorkflowResultWithWait>;
|
|
331
335
|
//#endregion
|
|
332
336
|
//#region src/cli/workflow/executions.d.ts
|
|
333
|
-
interface
|
|
337
|
+
interface ListWorkflowExecutionsOptions {
|
|
334
338
|
workspaceId?: string;
|
|
335
339
|
profile?: string;
|
|
336
340
|
workflowName?: string;
|
|
337
341
|
status?: string;
|
|
338
342
|
}
|
|
339
|
-
interface
|
|
343
|
+
interface GetWorkflowExecutionOptions {
|
|
340
344
|
executionId: string;
|
|
341
345
|
workspaceId?: string;
|
|
342
346
|
profile?: string;
|
|
@@ -349,25 +353,25 @@ interface WorkflowExecutionDetailInfo extends WorkflowExecutionInfo {
|
|
|
349
353
|
result?: string;
|
|
350
354
|
})[];
|
|
351
355
|
}
|
|
352
|
-
interface
|
|
356
|
+
interface GetWorkflowExecutionResult {
|
|
353
357
|
execution: WorkflowExecutionDetailInfo;
|
|
354
358
|
wait: () => Promise<WorkflowExecutionDetailInfo>;
|
|
355
359
|
}
|
|
356
|
-
declare function
|
|
357
|
-
declare function
|
|
360
|
+
declare function listWorkflowExecutions(options?: ListWorkflowExecutionsOptions): Promise<WorkflowExecutionInfo[]>;
|
|
361
|
+
declare function getWorkflowExecution(options: GetWorkflowExecutionOptions): Promise<GetWorkflowExecutionResult>;
|
|
358
362
|
//#endregion
|
|
359
363
|
//#region src/cli/workflow/resume.d.ts
|
|
360
|
-
interface
|
|
364
|
+
interface ResumeWorkflowOptions {
|
|
361
365
|
executionId: string;
|
|
362
366
|
workspaceId?: string;
|
|
363
367
|
profile?: string;
|
|
364
368
|
interval?: number;
|
|
365
369
|
}
|
|
366
|
-
interface
|
|
370
|
+
interface ResumeWorkflowResultWithWait {
|
|
367
371
|
executionId: string;
|
|
368
372
|
wait: () => Promise<WorkflowExecutionInfo>;
|
|
369
373
|
}
|
|
370
|
-
declare function
|
|
374
|
+
declare function resumeWorkflow(options: ResumeWorkflowOptions): Promise<ResumeWorkflowResultWithWait>;
|
|
371
375
|
//#endregion
|
|
372
376
|
//#region src/cli/context.d.ts
|
|
373
377
|
declare function loadWorkspaceId(opts?: {
|
|
@@ -379,5 +383,5 @@ declare function loadAccessToken(opts?: {
|
|
|
379
383
|
profile?: string;
|
|
380
384
|
}): Promise<string>;
|
|
381
385
|
//#endregion
|
|
382
|
-
export { type ApplicationInfo, type ApplyOptions, type CodeGenerator, type
|
|
386
|
+
export { type ApplicationInfo, type ApplyOptions, type CodeGenerator, type CreateWorkspaceOptions, type DeleteWorkspaceOptions, type Executor, type GenerateOptions, type GeneratorInput, type GeneratorResult, type GetMachineUserTokenOptions, type GetOAuth2ClientOptions, type GetWorkflowExecutionOptions, type GetWorkflowExecutionResult, type GetWorkflowOptions, type ListMachineUsersOptions, type ListOAuth2ClientsOptions, type ListWorkflowExecutionsOptions, type ListWorkflowsOptions, type ListWorkspacesOptions, type MachineUserInfo, type MachineUserTokenInfo, type OAuth2ClientCredentials, type OAuth2ClientInfo, type RemoveOptions, type Resolver, type ResumeWorkflowOptions, type ResumeWorkflowResultWithWait, type ShowOptions, type StartWorkflowOptions, type StartWorkflowResultWithWait, type ParsedTailorDBType as TailorDBType, type WorkflowExecutionInfo, type WorkflowInfo, type WorkflowJobExecutionInfo, type WorkflowListInfo, type WorkspaceInfo, apply, createWorkspace, deleteWorkspace, generate, generateUserTypes, getMachineUserToken, getOAuth2Client, getWorkflow, getWorkflowExecution, listMachineUsers, listOAuth2Clients, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadWorkspaceId, remove, resumeWorkflow, show, startWorkflow };
|
|
383
387
|
//# sourceMappingURL=api.d.mts.map
|
package/dist/cli/api.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { apply,
|
|
1
|
+
import { apply, createWorkspace, deleteWorkspace, generate, generateUserTypes, getMachineUserToken, getOAuth2Client, getWorkflow, getWorkflowExecution, listMachineUsers, listOAuth2Clients, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadWorkspaceId, remove, resumeWorkflow, show, startWorkflow } from "../resume-ChDChtAZ.mjs";
|
|
2
2
|
import "../job-CL8myeqs.mjs";
|
|
3
3
|
import { register } from "node:module";
|
|
4
4
|
|
|
@@ -6,5 +6,5 @@ import { register } from "node:module";
|
|
|
6
6
|
register("tsx", import.meta.url, { data: {} });
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
|
-
export { apply,
|
|
9
|
+
export { apply, createWorkspace, deleteWorkspace, generate, generateUserTypes, getMachineUserToken, getOAuth2Client, getWorkflow, getWorkflowExecution, listMachineUsers, listOAuth2Clients, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadWorkspaceId, remove, resumeWorkflow, show, startWorkflow };
|
|
10
10
|
//# sourceMappingURL=api.mjs.map
|
package/dist/cli/api.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.mjs","names":[],"sources":["../../src/cli/api.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { register } from \"node:module\";\n\n// Register tsx to handle TypeScript files when using CLI API programmatically\nregister(\"tsx\", import.meta.url, { data: {} });\n\nexport { apply } from \"./apply/index\";\nexport type { ApplyOptions } from \"./apply/index\";\nexport { generate } from \"./generator/index\";\nexport type { GenerateOptions } from \"./generator/options\";\nexport { loadConfig } from \"./config-loader\";\nexport { generateUserTypes } from \"./type-generator\";\nexport type {\n CodeGenerator,\n GeneratorInput,\n GeneratorResult,\n} from \"./generator/types\";\nexport type { ParsedTailorDBType as TailorDBType } from \"@/parser/service/tailordb/types\";\nexport type { Resolver } from \"@/parser/service/resolver\";\nexport type { Executor } from \"@/parser/service/executor\";\n\nexport { show, type ShowOptions, type ApplicationInfo } from \"./show\";\nexport { remove, type RemoveOptions } from \"./remove\";\nexport {\n
|
|
1
|
+
{"version":3,"file":"api.mjs","names":[],"sources":["../../src/cli/api.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { register } from \"node:module\";\n\n// Register tsx to handle TypeScript files when using CLI API programmatically\nregister(\"tsx\", import.meta.url, { data: {} });\n\nexport { apply } from \"./apply/index\";\nexport type { ApplyOptions } from \"./apply/index\";\nexport { generate } from \"./generator/index\";\nexport type { GenerateOptions } from \"./generator/options\";\nexport { loadConfig } from \"./config-loader\";\nexport { generateUserTypes } from \"./type-generator\";\nexport type {\n CodeGenerator,\n GeneratorInput,\n GeneratorResult,\n} from \"./generator/types\";\nexport type { ParsedTailorDBType as TailorDBType } from \"@/parser/service/tailordb/types\";\nexport type { Resolver } from \"@/parser/service/resolver\";\nexport type { Executor } from \"@/parser/service/executor\";\n\nexport { show, type ShowOptions, type ApplicationInfo } from \"./show\";\nexport { remove, type RemoveOptions } from \"./remove\";\nexport {\n createWorkspace,\n type CreateWorkspaceOptions,\n} from \"./workspace/create\";\nexport { listWorkspaces, type ListWorkspacesOptions } from \"./workspace/list\";\nexport {\n deleteWorkspace,\n type DeleteWorkspaceOptions,\n} from \"./workspace/delete\";\nexport type { WorkspaceInfo } from \"./workspace/transform\";\nexport {\n listMachineUsers,\n type ListMachineUsersOptions,\n type MachineUserInfo,\n} from \"./machineuser/list\";\nexport {\n getMachineUserToken,\n type GetMachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./machineuser/token\";\nexport {\n getOAuth2Client,\n type GetOAuth2ClientOptions,\n} from \"./oauth2client/get\";\nexport {\n listOAuth2Clients,\n type ListOAuth2ClientsOptions,\n} from \"./oauth2client/list\";\nexport type {\n OAuth2ClientInfo,\n OAuth2ClientCredentials,\n} from \"./oauth2client/transform\";\nexport { listWorkflows, type ListWorkflowsOptions } from \"./workflow/list\";\nexport { getWorkflow, type GetWorkflowOptions } from \"./workflow/get\";\nexport {\n startWorkflow,\n type StartWorkflowOptions,\n type StartWorkflowResultWithWait,\n} from \"./workflow/start\";\nexport {\n listWorkflowExecutions,\n getWorkflowExecution,\n type ListWorkflowExecutionsOptions,\n type GetWorkflowExecutionOptions,\n type GetWorkflowExecutionResult,\n} from \"./workflow/executions\";\nexport {\n resumeWorkflow,\n type ResumeWorkflowOptions,\n type ResumeWorkflowResultWithWait,\n} from \"./workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n} from \"./workflow/transform\";\nexport { loadAccessToken, loadWorkspaceId } from \"./context\";\n"],"mappings":";;;;;AAIA,SAAS,OAAO,OAAO,KAAK,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC"}
|