@tailor-platform/sdk 0.18.2 → 0.20.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 +18 -0
- package/dist/cli/api.d.mts +24 -14
- package/dist/cli/api.mjs +1 -1
- package/dist/cli/api.mjs.map +1 -1
- package/dist/cli/index.d.mts +8 -1
- package/dist/cli/index.mjs +74 -182
- package/dist/cli/index.mjs.map +1 -1
- package/dist/configure/index.d.mts +2 -2
- package/dist/{index-Ba6ekRxa.d.mts → index-Zqsfkae6.d.mts} +2 -2
- package/dist/job-CL8myeqs.mjs.map +1 -1
- package/dist/{resume-8Y9mmXHa.mjs → resume-DSfYKl2w.mjs} +754 -665
- package/dist/{resume-8Y9mmXHa.mjs.map → resume-DSfYKl2w.mjs.map} +1 -1
- package/dist/{types-Dz5wcR2h.d.mts → types-BLZiwB6E.d.mts} +31 -7
- package/dist/utils/test/index.d.mts +2 -2
- package/docs/cli/application.md +3 -3
- package/docs/cli/auth.md +4 -4
- package/docs/cli/secret.md +2 -2
- package/docs/cli/user.md +10 -10
- package/docs/cli/workflow.md +12 -12
- package/docs/cli/workspace.md +6 -6
- package/docs/cli-reference.md +34 -7
- package/docs/services/workflow.md +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 0.20.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#220](https://github.com/tailor-platform/sdk/pull/220) [`f4b3d4e`](https://github.com/tailor-platform/sdk/commit/f4b3d4e237e08982e185db980a6b5666fb89cb5a) Thanks [@toiroakr](https://github.com/toiroakr)! - refactor(cli)!: rename "user use" to "user switch"
|
|
8
|
+
|
|
9
|
+
## 0.19.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#213](https://github.com/tailor-platform/sdk/pull/213) [`09b7a9b`](https://github.com/tailor-platform/sdk/commit/09b7a9b160d5263215c24ba1846ca084bd915323) Thanks [@toiroakr](https://github.com/toiroakr)! - refactor(cli)!: unify logger/styles
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#214](https://github.com/tailor-platform/sdk/pull/214) [`45f07e0`](https://github.com/tailor-platform/sdk/commit/45f07e0f96192e530c1a7230efcf494c0e92fb13) Thanks [@k1LoW](https://github.com/k1LoW)! - feat: support password policy fields for IdP userAuthPolicy
|
|
18
|
+
|
|
19
|
+
- [#215](https://github.com/tailor-platform/sdk/pull/215) [`63fe144`](https://github.com/tailor-platform/sdk/commit/63fe144eef6e40ef03cbb6414f08de011cd47014) Thanks [@riku99](https://github.com/riku99)! - Add test to ensure CLI subcommands do not define duplicate short option aliases
|
|
20
|
+
|
|
3
21
|
## 0.18.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
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, OAuth2ClientInput, Resolver, TailorDBTypeConfig } from "../types-
|
|
3
|
+
import { AppConfig, CodeGeneratorBase, Executor, Generator, IdProviderConfig, OAuth2ClientInput, Resolver, TailorDBTypeConfig } from "../types-BLZiwB6E.mjs";
|
|
4
4
|
import "citty";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import "@bufbuild/protobuf/wkt";
|
|
@@ -184,13 +184,19 @@ interface WorkspaceInfo {
|
|
|
184
184
|
}
|
|
185
185
|
//#endregion
|
|
186
186
|
//#region src/cli/workspace/create.d.ts
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
187
|
+
/**
|
|
188
|
+
* Schema for workspace creation options
|
|
189
|
+
* - name: 3-63 chars, lowercase alphanumeric and hyphens, cannot start/end with hyphen
|
|
190
|
+
* - organizationId, folderId: optional UUIDs
|
|
191
|
+
*/
|
|
192
|
+
declare const createWorkspaceOptionsSchema: z.ZodObject<{
|
|
193
|
+
name: z.ZodString;
|
|
194
|
+
region: z.ZodString;
|
|
195
|
+
deleteProtection: z.ZodOptional<z.ZodBoolean>;
|
|
196
|
+
organizationId: z.ZodOptional<z.ZodUUID>;
|
|
197
|
+
folderId: z.ZodOptional<z.ZodUUID>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
type CreateWorkspaceOptions = z.input<typeof createWorkspaceOptionsSchema>;
|
|
194
200
|
declare function createWorkspace(options: CreateWorkspaceOptions): Promise<WorkspaceInfo>;
|
|
195
201
|
//#endregion
|
|
196
202
|
//#region src/cli/workspace/list.d.ts
|
|
@@ -200,9 +206,10 @@ interface ListWorkspacesOptions {
|
|
|
200
206
|
declare function listWorkspaces(options?: ListWorkspacesOptions): Promise<WorkspaceInfo[]>;
|
|
201
207
|
//#endregion
|
|
202
208
|
//#region src/cli/workspace/delete.d.ts
|
|
203
|
-
|
|
204
|
-
workspaceId:
|
|
205
|
-
}
|
|
209
|
+
declare const deleteWorkspaceOptionsSchema: z.ZodObject<{
|
|
210
|
+
workspaceId: z.ZodUUID;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
type DeleteWorkspaceOptions = z.input<typeof deleteWorkspaceOptionsSchema>;
|
|
206
213
|
declare function deleteWorkspace(options: DeleteWorkspaceOptions): Promise<void>;
|
|
207
214
|
//#endregion
|
|
208
215
|
//#region src/cli/machineuser/list.d.ts
|
|
@@ -327,9 +334,12 @@ interface StartWorkflowOptions {
|
|
|
327
334
|
configPath?: string;
|
|
328
335
|
interval?: number;
|
|
329
336
|
}
|
|
337
|
+
interface WaitOptions {
|
|
338
|
+
showProgress?: boolean;
|
|
339
|
+
}
|
|
330
340
|
interface StartWorkflowResultWithWait {
|
|
331
341
|
executionId: string;
|
|
332
|
-
wait: () => Promise<WorkflowExecutionInfo>;
|
|
342
|
+
wait: (options?: WaitOptions) => Promise<WorkflowExecutionInfo>;
|
|
333
343
|
}
|
|
334
344
|
declare function startWorkflow(options: StartWorkflowOptions): Promise<StartWorkflowResultWithWait>;
|
|
335
345
|
//#endregion
|
|
@@ -369,7 +379,7 @@ interface ResumeWorkflowOptions {
|
|
|
369
379
|
}
|
|
370
380
|
interface ResumeWorkflowResultWithWait {
|
|
371
381
|
executionId: string;
|
|
372
|
-
wait: () => Promise<WorkflowExecutionInfo>;
|
|
382
|
+
wait: (options?: WaitOptions) => Promise<WorkflowExecutionInfo>;
|
|
373
383
|
}
|
|
374
384
|
declare function resumeWorkflow(options: ResumeWorkflowOptions): Promise<ResumeWorkflowResultWithWait>;
|
|
375
385
|
//#endregion
|
|
@@ -383,5 +393,5 @@ declare function loadAccessToken(opts?: {
|
|
|
383
393
|
profile?: string;
|
|
384
394
|
}): Promise<string>;
|
|
385
395
|
//#endregion
|
|
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 };
|
|
396
|
+
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 WaitOptions, 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 };
|
|
387
397
|
//# sourceMappingURL=api.d.mts.map
|
package/dist/cli/api.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-DSfYKl2w.mjs";
|
|
2
2
|
import "../job-CL8myeqs.mjs";
|
|
3
3
|
import { register } from "node:module";
|
|
4
4
|
|
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 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"}
|
|
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 type WaitOptions,\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"}
|
package/dist/cli/index.d.mts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
/// <reference path="./../user-defined.d.ts" />
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
#!/usr/bin/env node
|
|
4
|
+
import * as citty0 from "citty";
|
|
5
|
+
|
|
6
|
+
//#region src/cli/index.d.ts
|
|
7
|
+
declare const mainCommand: citty0.CommandDef<citty0.ArgsDef>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { mainCommand };
|
|
10
|
+
//# sourceMappingURL=index.d.mts.map
|