@tailor-platform/sdk 0.16.2 → 0.17.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +75 -8
  3. package/dist/cli/api.d.mts +6 -2
  4. package/dist/cli/api.mjs +1 -1
  5. package/dist/cli/index.mjs +51 -75
  6. package/dist/cli/index.mjs.map +1 -1
  7. package/dist/configure/index.d.mts +2 -2
  8. package/dist/{index-DOA9RfBq.d.mts → index-Bin7-j3v.d.mts} +2 -2
  9. package/dist/{resume-Yw6OGEYO.mjs → resume-B2ba5opn.mjs} +165 -122
  10. package/dist/{resume-Yw6OGEYO.mjs.map → resume-B2ba5opn.mjs.map} +1 -1
  11. package/dist/{types-DUYX8rv-.d.mts → types-Da_WnvA0.d.mts} +15 -1
  12. package/dist/utils/test/index.d.mts +9 -3
  13. package/dist/utils/test/index.mjs +8 -6
  14. package/dist/utils/test/index.mjs.map +1 -1
  15. package/docs/cli/application.md +136 -0
  16. package/docs/cli/auth.md +110 -0
  17. package/docs/cli/secret.md +125 -0
  18. package/docs/cli/user.md +183 -0
  19. package/docs/cli/workflow.md +144 -0
  20. package/docs/cli/workspace.md +122 -0
  21. package/docs/cli-reference.md +80 -801
  22. package/docs/configuration.md +36 -32
  23. package/docs/generator/builtin.md +194 -0
  24. package/docs/generator/custom.md +150 -0
  25. package/docs/generator/index.md +56 -0
  26. package/docs/quickstart.md +9 -4
  27. package/docs/services/auth.md +225 -0
  28. package/docs/services/executor.md +304 -0
  29. package/docs/services/idp.md +106 -0
  30. package/docs/services/resolver.md +213 -0
  31. package/docs/services/secret.md +116 -0
  32. package/docs/services/staticwebsite.md +132 -0
  33. package/docs/services/tailordb.md +305 -0
  34. package/docs/services/workflow.md +176 -0
  35. package/docs/testing.md +3 -1
  36. package/package.json +4 -3
  37. package/postinstall.mjs +1 -0
  38. package/docs/core-concepts.md +0 -609
@@ -0,0 +1,144 @@
1
+ # Workflow Commands
2
+
3
+ Commands for managing workflows and workflow executions.
4
+
5
+ ## workflow
6
+
7
+ Manage workflows and workflow executions.
8
+
9
+ ```bash
10
+ tailor-sdk workflow <subcommand> [options]
11
+ ```
12
+
13
+ ### workflow list
14
+
15
+ List all workflows in the workspace.
16
+
17
+ ```bash
18
+ tailor-sdk workflow list [options]
19
+ ```
20
+
21
+ **Options:**
22
+
23
+ - `-w, --workspace-id` - ID of the workspace
24
+ - `-p, --profile` - Workspace profile to use
25
+ - `--json` - Output as JSON
26
+
27
+ ### workflow get
28
+
29
+ Get workflow details.
30
+
31
+ ```bash
32
+ tailor-sdk workflow get <nameOrId> [options]
33
+ ```
34
+
35
+ **Arguments:**
36
+
37
+ - `nameOrId` - Workflow name or ID (required)
38
+
39
+ **Options:**
40
+
41
+ - `-w, --workspace-id` - ID of the workspace
42
+ - `-p, --profile` - Workspace profile to use
43
+ - `--json` - Output as JSON
44
+
45
+ ### workflow start
46
+
47
+ Start a workflow execution.
48
+
49
+ ```bash
50
+ tailor-sdk workflow start <nameOrId> [options]
51
+ ```
52
+
53
+ **Arguments:**
54
+
55
+ - `nameOrId` - Workflow name or ID (required)
56
+
57
+ **Options:**
58
+
59
+ - `-m, --machineuser` - Machine user name (required)
60
+ - `-g, --arg` - Workflow argument (JSON string)
61
+ - `-w, --workspace-id` - ID of the workspace
62
+ - `-p, --profile` - Workspace profile to use
63
+ - `-c, --config` - Path to the SDK config file (default: `tailor.config.ts`)
64
+ - `--wait` - Wait for execution to complete
65
+ - `--interval` - Polling interval when using --wait (default: `3s`)
66
+ - `--json` - Output as JSON
67
+
68
+ **Usage Examples:**
69
+
70
+ ```bash
71
+ # Start a workflow
72
+ tailor-sdk workflow start my-workflow -m admin-machine-user
73
+
74
+ # Start with argument
75
+ tailor-sdk workflow start my-workflow -m admin -g '{"userId": "123"}'
76
+
77
+ # Start and wait for completion
78
+ tailor-sdk workflow start my-workflow -m admin --wait
79
+ ```
80
+
81
+ ### workflow executions
82
+
83
+ List or get workflow executions.
84
+
85
+ ```bash
86
+ tailor-sdk workflow executions [executionId] [options]
87
+ ```
88
+
89
+ **Arguments:**
90
+
91
+ - `executionId` - Execution ID (optional, if provided shows details)
92
+
93
+ **Options:**
94
+
95
+ - `-w, --workspace-id` - ID of the workspace
96
+ - `-p, --profile` - Workspace profile to use
97
+ - `-n, --workflow-name` - Filter by workflow name (list mode only)
98
+ - `-s, --status` - Filter by status: `PENDING`, `PENDING_RESUME`, `RUNNING`, `SUCCESS`, `FAILED` (list mode only)
99
+ - `--wait` - Wait for execution to complete (detail mode only)
100
+ - `--interval` - Polling interval when using --wait (default: `3s`)
101
+ - `--logs` - Display job execution logs (detail mode only)
102
+ - `--json` - Output as JSON
103
+
104
+ **Usage Examples:**
105
+
106
+ ```bash
107
+ # List all executions
108
+ tailor-sdk workflow executions
109
+
110
+ # Filter by workflow name
111
+ tailor-sdk workflow executions -n my-workflow
112
+
113
+ # Filter by status
114
+ tailor-sdk workflow executions -s RUNNING
115
+
116
+ # Get execution details
117
+ tailor-sdk workflow executions <execution-id>
118
+
119
+ # Get execution details with logs
120
+ tailor-sdk workflow executions <execution-id> --logs
121
+
122
+ # Wait for execution to complete
123
+ tailor-sdk workflow executions <execution-id> --wait
124
+ ```
125
+
126
+ ### workflow resume
127
+
128
+ Resume a failed or pending workflow execution.
129
+
130
+ ```bash
131
+ tailor-sdk workflow resume <executionId> [options]
132
+ ```
133
+
134
+ **Arguments:**
135
+
136
+ - `executionId` - Failed or pending execution ID (required)
137
+
138
+ **Options:**
139
+
140
+ - `-w, --workspace-id` - ID of the workspace
141
+ - `-p, --profile` - Workspace profile to use
142
+ - `--wait` - Wait for execution to complete after resuming
143
+ - `--interval` - Polling interval when using --wait (default: `3s`)
144
+ - `--json` - Output as JSON
@@ -0,0 +1,122 @@
1
+ # Workspace Commands
2
+
3
+ Commands for managing workspaces and profiles.
4
+
5
+ ## workspace
6
+
7
+ Manage Tailor Platform workspaces.
8
+
9
+ ```bash
10
+ tailor-sdk workspace <subcommand> [options]
11
+ ```
12
+
13
+ ### workspace create
14
+
15
+ Create a new Tailor Platform workspace.
16
+
17
+ ```bash
18
+ tailor-sdk workspace create [options]
19
+ ```
20
+
21
+ **Options:**
22
+
23
+ - `-n, --name` - Name of the workspace (required)
24
+ - `-r, --region` - Region of the workspace: `us-west` or `asia-northeast` (required)
25
+ - `-d, --delete-protection` - Enable delete protection for the workspace
26
+ - `-o, --organization-id` - Organization ID to associate the workspace with
27
+ - `-f, --folder-id` - Folder ID to associate the workspace with
28
+ - `--json` - Output as JSON
29
+
30
+ ### workspace list
31
+
32
+ List all Tailor Platform workspaces.
33
+
34
+ ```bash
35
+ tailor-sdk workspace list [options]
36
+ ```
37
+
38
+ **Options:**
39
+
40
+ - `--json` - Output as JSON
41
+ - `--limit <number>` - Maximum number of workspaces to list (positive integer)
42
+
43
+ ### workspace delete
44
+
45
+ Delete a Tailor Platform workspace.
46
+
47
+ ```bash
48
+ tailor-sdk workspace delete [options]
49
+ ```
50
+
51
+ **Options:**
52
+
53
+ - `-w, --workspace-id` - ID of the workspace to delete (required)
54
+ - `-y, --yes` - Skip confirmation prompt
55
+
56
+ ## profile
57
+
58
+ Manage workspace profiles (user + workspace combinations).
59
+
60
+ ```bash
61
+ tailor-sdk profile <subcommand> [options]
62
+ ```
63
+
64
+ ### profile create
65
+
66
+ Create a new profile.
67
+
68
+ ```bash
69
+ tailor-sdk profile create <name> [options]
70
+ ```
71
+
72
+ **Arguments:**
73
+
74
+ - `name` - Profile name (required)
75
+
76
+ **Options:**
77
+
78
+ - `-u, --user` - User email (required)
79
+ - `-w, --workspace-id` - Workspace ID (required)
80
+ - `--json` - Output as JSON
81
+
82
+ ### profile list
83
+
84
+ List all profiles.
85
+
86
+ ```bash
87
+ tailor-sdk profile list [options]
88
+ ```
89
+
90
+ **Options:**
91
+
92
+ - `--json` - Output as JSON
93
+
94
+ ### profile update
95
+
96
+ Update profile properties.
97
+
98
+ ```bash
99
+ tailor-sdk profile update <name> [options]
100
+ ```
101
+
102
+ **Arguments:**
103
+
104
+ - `name` - Profile name (required)
105
+
106
+ **Options:**
107
+
108
+ - `-u, --user` - New user email
109
+ - `-w, --workspace-id` - New workspace ID
110
+ - `--json` - Output as JSON
111
+
112
+ ### profile delete
113
+
114
+ Delete a profile.
115
+
116
+ ```bash
117
+ tailor-sdk profile delete <name>
118
+ ```
119
+
120
+ **Arguments:**
121
+
122
+ - `name` - Profile name (required)