@tailor-platform/sdk 1.28.0 → 1.30.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 +30 -0
- package/dist/{application-CBJFUKrU.mjs → application-Bf8SUAtR.mjs} +97 -77
- package/dist/application-Bf8SUAtR.mjs.map +1 -0
- package/dist/{application-WyZetOky.mjs → application-DAQVP9CS.mjs} +3 -3
- package/dist/chunk-DEt8GZDa.mjs +8 -0
- package/dist/cli/index.mjs +118 -52
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +208 -43
- package/dist/cli/lib.mjs +26 -28
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/skills.mjs +1 -1
- package/dist/client-CW4Oh3iz.mjs +6 -0
- package/dist/client-CZmQBXAY.mjs +16294 -0
- package/dist/client-CZmQBXAY.mjs.map +1 -0
- package/dist/configure/index.d.mts +4 -4
- package/dist/configure/index.mjs +1 -1
- package/dist/{crash-report-Cot_9Esm.mjs → crash-report-CYrETw1c.mjs} +2 -2
- package/dist/{crash-report-Ju8cQF-l.mjs → crash-report-DizNMVnm.mjs} +3 -3
- package/dist/{crash-report-Ju8cQF-l.mjs.map → crash-report-DizNMVnm.mjs.map} +1 -1
- package/dist/{env-BuMbIknz.d.mts → env-DiWYe80_.d.mts} +2 -2
- package/dist/{index-CbnLNm14.d.mts → index-2WQbf_LH.d.mts} +2 -2
- package/dist/{index-cD9sQLTh.d.mts → index-BU7Cd5I4.d.mts} +4 -4
- package/dist/{index-B0Lrzywd.d.mts → index-DCEMVfJA.d.mts} +2 -2
- package/dist/{index-D1AM_02Y.d.mts → index-HvMUWjvV.d.mts} +2 -2
- package/dist/{index-CyapgSFI.d.mts → index-rH_De6hM.d.mts} +2 -2
- package/dist/{interceptor-B0d_GrI5.mjs → interceptor-DgQNmwWJ.mjs} +2 -2
- package/dist/{interceptor-B0d_GrI5.mjs.map → interceptor-DgQNmwWJ.mjs.map} +1 -1
- package/dist/kysely/index.mjs +1 -1
- package/dist/{package-json-DHfTiUCS.mjs → package-json-DiZWrkIA.mjs} +1 -1
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/enum-constants/index.mjs +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.mjs +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/index.d.mts +2 -2
- package/dist/plugin/index.mjs +1 -1
- package/dist/{plugin-D3a0-qe0.d.mts → plugin-C-UdAM8C.d.mts} +2 -2
- package/dist/{query-WYq8RvYp.mjs → query-C3oQTLvb.mjs} +670 -132
- package/dist/query-C3oQTLvb.mjs.map +1 -0
- package/dist/schema-BePzTFBV.mjs.map +1 -1
- package/dist/seed/index.mjs +1 -1
- package/dist/{telemetry-VvNfsyEE.mjs → telemetry-BSUlYTs-.mjs} +2 -2
- package/dist/{telemetry-VvNfsyEE.mjs.map → telemetry-BSUlYTs-.mjs.map} +1 -1
- package/dist/telemetry-BtN2l0f1.mjs +4 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/utils/test/index.mjs +1 -1
- package/dist/{workflow.generated-BsgIlrH-.d.mts → workflow.generated-C5wMcCjB.d.mts} +2 -2
- package/docs/cli/function.md +1 -1
- package/docs/cli/organization.md +426 -0
- package/docs/cli/user.md +21 -22
- package/docs/cli/workspace.md +0 -7
- package/docs/cli-reference.md +32 -12
- package/docs/services/executor.md +46 -0
- package/package.json +8 -8
- package/dist/application-CBJFUKrU.mjs.map +0 -1
- package/dist/chunk-Cz-A8uMR.mjs +0 -3
- package/dist/client-C2_wgujH.mjs +0 -6
- package/dist/client-bTbnbQbB.mjs +0 -957
- package/dist/client-bTbnbQbB.mjs.map +0 -1
- package/dist/query-WYq8RvYp.mjs.map +0 -1
- package/dist/telemetry-BevrwWwF.mjs +0 -4
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
<!-- politty:command:organization:heading:start -->
|
|
2
|
+
|
|
3
|
+
## organization
|
|
4
|
+
|
|
5
|
+
<!-- politty:command:organization:heading:end -->
|
|
6
|
+
|
|
7
|
+
<!-- politty:command:organization:description:start -->
|
|
8
|
+
|
|
9
|
+
Manage Tailor Platform organizations.
|
|
10
|
+
|
|
11
|
+
<!-- politty:command:organization:description:end -->
|
|
12
|
+
|
|
13
|
+
<!-- politty:command:organization:usage:start -->
|
|
14
|
+
|
|
15
|
+
**Usage**
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
tailor-sdk organization [command]
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
<!-- politty:command:organization:usage:end -->
|
|
22
|
+
|
|
23
|
+
<!-- politty:command:organization:global-options-link:start -->
|
|
24
|
+
|
|
25
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
26
|
+
|
|
27
|
+
<!-- politty:command:organization:global-options-link:end -->
|
|
28
|
+
|
|
29
|
+
<!-- politty:command:organization:subcommands:start -->
|
|
30
|
+
|
|
31
|
+
**Commands**
|
|
32
|
+
|
|
33
|
+
| Command | Description |
|
|
34
|
+
| --------------------------------------------- | ------------------------------------------------ |
|
|
35
|
+
| [`organization folder`](#organization-folder) | Manage organization folders. |
|
|
36
|
+
| [`organization get`](#organization-get) | Show detailed information about an organization. |
|
|
37
|
+
| [`organization list`](#organization-list) | List organizations you belong to. |
|
|
38
|
+
| [`organization tree`](#organization-tree) | Display organization folder hierarchy as a tree. |
|
|
39
|
+
| [`organization update`](#organization-update) | Update an organization's name. |
|
|
40
|
+
|
|
41
|
+
<!-- politty:command:organization:subcommands:end -->
|
|
42
|
+
<!-- politty:command:organization folder:heading:start -->
|
|
43
|
+
|
|
44
|
+
### organization folder
|
|
45
|
+
|
|
46
|
+
<!-- politty:command:organization folder:heading:end -->
|
|
47
|
+
|
|
48
|
+
<!-- politty:command:organization folder:description:start -->
|
|
49
|
+
|
|
50
|
+
Manage organization folders.
|
|
51
|
+
|
|
52
|
+
<!-- politty:command:organization folder:description:end -->
|
|
53
|
+
|
|
54
|
+
<!-- politty:command:organization folder:usage:start -->
|
|
55
|
+
|
|
56
|
+
**Usage**
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
tailor-sdk organization folder [command]
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
<!-- politty:command:organization folder:usage:end -->
|
|
63
|
+
|
|
64
|
+
<!-- politty:command:organization folder:global-options-link:start -->
|
|
65
|
+
|
|
66
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
67
|
+
|
|
68
|
+
<!-- politty:command:organization folder:global-options-link:end -->
|
|
69
|
+
|
|
70
|
+
<!-- politty:command:organization folder:subcommands:start -->
|
|
71
|
+
|
|
72
|
+
**Commands**
|
|
73
|
+
|
|
74
|
+
| Command | Description |
|
|
75
|
+
| ----------------------------------------------------------- | ----------------------------------------- |
|
|
76
|
+
| [`organization folder create`](#organization-folder-create) | Create a new folder in an organization. |
|
|
77
|
+
| [`organization folder delete`](#organization-folder-delete) | Delete a folder from an organization. |
|
|
78
|
+
| [`organization folder get`](#organization-folder-get) | Show detailed information about a folder. |
|
|
79
|
+
| [`organization folder list`](#organization-folder-list) | List folders in an organization. |
|
|
80
|
+
| [`organization folder update`](#organization-folder-update) | Update a folder's name. |
|
|
81
|
+
|
|
82
|
+
<!-- politty:command:organization folder:subcommands:end -->
|
|
83
|
+
<!-- politty:command:organization folder create:heading:start -->
|
|
84
|
+
|
|
85
|
+
#### organization folder create
|
|
86
|
+
|
|
87
|
+
<!-- politty:command:organization folder create:heading:end -->
|
|
88
|
+
|
|
89
|
+
<!-- politty:command:organization folder create:description:start -->
|
|
90
|
+
|
|
91
|
+
Create a new folder in an organization.
|
|
92
|
+
|
|
93
|
+
<!-- politty:command:organization folder create:description:end -->
|
|
94
|
+
|
|
95
|
+
<!-- politty:command:organization folder create:usage:start -->
|
|
96
|
+
|
|
97
|
+
**Usage**
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
tailor-sdk organization folder create [options]
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
<!-- politty:command:organization folder create:usage:end -->
|
|
104
|
+
|
|
105
|
+
<!-- politty:command:organization folder create:options:start -->
|
|
106
|
+
|
|
107
|
+
**Options**
|
|
108
|
+
|
|
109
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
110
|
+
| --------------------------------------- | ----- | ---------------- | -------- | ------- | --------------------------------- |
|
|
111
|
+
| `--organization-id <ORGANIZATION_ID>` | `-o` | Organization ID | Yes | - | `TAILOR_PLATFORM_ORGANIZATION_ID` |
|
|
112
|
+
| `--parent-folder-id <PARENT_FOLDER_ID>` | - | Parent folder ID | No | - | - |
|
|
113
|
+
| `--name <NAME>` | `-n` | Folder name | Yes | - | - |
|
|
114
|
+
|
|
115
|
+
<!-- politty:command:organization folder create:options:end -->
|
|
116
|
+
|
|
117
|
+
<!-- politty:command:organization folder create:global-options-link:start -->
|
|
118
|
+
|
|
119
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
120
|
+
|
|
121
|
+
<!-- politty:command:organization folder create:global-options-link:end -->
|
|
122
|
+
<!-- politty:command:organization folder delete:heading:start -->
|
|
123
|
+
|
|
124
|
+
#### organization folder delete
|
|
125
|
+
|
|
126
|
+
<!-- politty:command:organization folder delete:heading:end -->
|
|
127
|
+
|
|
128
|
+
<!-- politty:command:organization folder delete:description:start -->
|
|
129
|
+
|
|
130
|
+
Delete a folder from an organization.
|
|
131
|
+
|
|
132
|
+
<!-- politty:command:organization folder delete:description:end -->
|
|
133
|
+
|
|
134
|
+
<!-- politty:command:organization folder delete:usage:start -->
|
|
135
|
+
|
|
136
|
+
**Usage**
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
tailor-sdk organization folder delete [options]
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
<!-- politty:command:organization folder delete:usage:end -->
|
|
143
|
+
|
|
144
|
+
<!-- politty:command:organization folder delete:options:start -->
|
|
145
|
+
|
|
146
|
+
**Options**
|
|
147
|
+
|
|
148
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
149
|
+
| ------------------------------------- | ----- | ------------------------- | -------- | ------- | --------------------------------- |
|
|
150
|
+
| `--organization-id <ORGANIZATION_ID>` | `-o` | Organization ID | Yes | - | `TAILOR_PLATFORM_ORGANIZATION_ID` |
|
|
151
|
+
| `--folder-id <FOLDER_ID>` | `-f` | Folder ID | Yes | - | `TAILOR_PLATFORM_FOLDER_ID` |
|
|
152
|
+
| `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
|
|
153
|
+
|
|
154
|
+
<!-- politty:command:organization folder delete:options:end -->
|
|
155
|
+
|
|
156
|
+
<!-- politty:command:organization folder delete:global-options-link:start -->
|
|
157
|
+
|
|
158
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
159
|
+
|
|
160
|
+
<!-- politty:command:organization folder delete:global-options-link:end -->
|
|
161
|
+
<!-- politty:command:organization folder get:heading:start -->
|
|
162
|
+
|
|
163
|
+
#### organization folder get
|
|
164
|
+
|
|
165
|
+
<!-- politty:command:organization folder get:heading:end -->
|
|
166
|
+
|
|
167
|
+
<!-- politty:command:organization folder get:description:start -->
|
|
168
|
+
|
|
169
|
+
Show detailed information about a folder.
|
|
170
|
+
|
|
171
|
+
<!-- politty:command:organization folder get:description:end -->
|
|
172
|
+
|
|
173
|
+
<!-- politty:command:organization folder get:usage:start -->
|
|
174
|
+
|
|
175
|
+
**Usage**
|
|
176
|
+
|
|
177
|
+
```
|
|
178
|
+
tailor-sdk organization folder get [options]
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
<!-- politty:command:organization folder get:usage:end -->
|
|
182
|
+
|
|
183
|
+
<!-- politty:command:organization folder get:options:start -->
|
|
184
|
+
|
|
185
|
+
**Options**
|
|
186
|
+
|
|
187
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
188
|
+
| ------------------------------------- | ----- | --------------- | -------- | ------- | --------------------------------- |
|
|
189
|
+
| `--organization-id <ORGANIZATION_ID>` | `-o` | Organization ID | Yes | - | `TAILOR_PLATFORM_ORGANIZATION_ID` |
|
|
190
|
+
| `--folder-id <FOLDER_ID>` | `-f` | Folder ID | Yes | - | `TAILOR_PLATFORM_FOLDER_ID` |
|
|
191
|
+
|
|
192
|
+
<!-- politty:command:organization folder get:options:end -->
|
|
193
|
+
|
|
194
|
+
<!-- politty:command:organization folder get:global-options-link:start -->
|
|
195
|
+
|
|
196
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
197
|
+
|
|
198
|
+
<!-- politty:command:organization folder get:global-options-link:end -->
|
|
199
|
+
<!-- politty:command:organization folder list:heading:start -->
|
|
200
|
+
|
|
201
|
+
#### organization folder list
|
|
202
|
+
|
|
203
|
+
<!-- politty:command:organization folder list:heading:end -->
|
|
204
|
+
|
|
205
|
+
<!-- politty:command:organization folder list:description:start -->
|
|
206
|
+
|
|
207
|
+
List folders in an organization.
|
|
208
|
+
|
|
209
|
+
<!-- politty:command:organization folder list:description:end -->
|
|
210
|
+
|
|
211
|
+
<!-- politty:command:organization folder list:usage:start -->
|
|
212
|
+
|
|
213
|
+
**Usage**
|
|
214
|
+
|
|
215
|
+
```
|
|
216
|
+
tailor-sdk organization folder list [options]
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
<!-- politty:command:organization folder list:usage:end -->
|
|
220
|
+
|
|
221
|
+
<!-- politty:command:organization folder list:options:start -->
|
|
222
|
+
|
|
223
|
+
**Options**
|
|
224
|
+
|
|
225
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
226
|
+
| --------------------------------------- | ----- | ------------------------------------ | -------- | ------- | --------------------------------- |
|
|
227
|
+
| `--organization-id <ORGANIZATION_ID>` | `-o` | Organization ID | Yes | - | `TAILOR_PLATFORM_ORGANIZATION_ID` |
|
|
228
|
+
| `--parent-folder-id <PARENT_FOLDER_ID>` | - | Parent folder ID to list children of | No | - | - |
|
|
229
|
+
| `--limit <LIMIT>` | `-l` | Maximum number of folders to list | No | - | - |
|
|
230
|
+
|
|
231
|
+
<!-- politty:command:organization folder list:options:end -->
|
|
232
|
+
|
|
233
|
+
<!-- politty:command:organization folder list:global-options-link:start -->
|
|
234
|
+
|
|
235
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
236
|
+
|
|
237
|
+
<!-- politty:command:organization folder list:global-options-link:end -->
|
|
238
|
+
<!-- politty:command:organization folder update:heading:start -->
|
|
239
|
+
|
|
240
|
+
#### organization folder update
|
|
241
|
+
|
|
242
|
+
<!-- politty:command:organization folder update:heading:end -->
|
|
243
|
+
|
|
244
|
+
<!-- politty:command:organization folder update:description:start -->
|
|
245
|
+
|
|
246
|
+
Update a folder's name.
|
|
247
|
+
|
|
248
|
+
<!-- politty:command:organization folder update:description:end -->
|
|
249
|
+
|
|
250
|
+
<!-- politty:command:organization folder update:usage:start -->
|
|
251
|
+
|
|
252
|
+
**Usage**
|
|
253
|
+
|
|
254
|
+
```
|
|
255
|
+
tailor-sdk organization folder update [options]
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
<!-- politty:command:organization folder update:usage:end -->
|
|
259
|
+
|
|
260
|
+
<!-- politty:command:organization folder update:options:start -->
|
|
261
|
+
|
|
262
|
+
**Options**
|
|
263
|
+
|
|
264
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
265
|
+
| ------------------------------------- | ----- | --------------- | -------- | ------- | --------------------------------- |
|
|
266
|
+
| `--organization-id <ORGANIZATION_ID>` | `-o` | Organization ID | Yes | - | `TAILOR_PLATFORM_ORGANIZATION_ID` |
|
|
267
|
+
| `--folder-id <FOLDER_ID>` | `-f` | Folder ID | Yes | - | `TAILOR_PLATFORM_FOLDER_ID` |
|
|
268
|
+
| `--name <NAME>` | `-n` | New folder name | Yes | - | - |
|
|
269
|
+
|
|
270
|
+
<!-- politty:command:organization folder update:options:end -->
|
|
271
|
+
|
|
272
|
+
<!-- politty:command:organization folder update:global-options-link:start -->
|
|
273
|
+
|
|
274
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
275
|
+
|
|
276
|
+
<!-- politty:command:organization folder update:global-options-link:end -->
|
|
277
|
+
<!-- politty:command:organization get:heading:start -->
|
|
278
|
+
|
|
279
|
+
### organization get
|
|
280
|
+
|
|
281
|
+
<!-- politty:command:organization get:heading:end -->
|
|
282
|
+
|
|
283
|
+
<!-- politty:command:organization get:description:start -->
|
|
284
|
+
|
|
285
|
+
Show detailed information about an organization.
|
|
286
|
+
|
|
287
|
+
<!-- politty:command:organization get:description:end -->
|
|
288
|
+
|
|
289
|
+
<!-- politty:command:organization get:usage:start -->
|
|
290
|
+
|
|
291
|
+
**Usage**
|
|
292
|
+
|
|
293
|
+
```
|
|
294
|
+
tailor-sdk organization get [options]
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
<!-- politty:command:organization get:usage:end -->
|
|
298
|
+
|
|
299
|
+
<!-- politty:command:organization get:options:start -->
|
|
300
|
+
|
|
301
|
+
**Options**
|
|
302
|
+
|
|
303
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
304
|
+
| ------------------------------------- | ----- | --------------- | -------- | ------- | --------------------------------- |
|
|
305
|
+
| `--organization-id <ORGANIZATION_ID>` | `-o` | Organization ID | Yes | - | `TAILOR_PLATFORM_ORGANIZATION_ID` |
|
|
306
|
+
|
|
307
|
+
<!-- politty:command:organization get:options:end -->
|
|
308
|
+
|
|
309
|
+
<!-- politty:command:organization get:global-options-link:start -->
|
|
310
|
+
|
|
311
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
312
|
+
|
|
313
|
+
<!-- politty:command:organization get:global-options-link:end -->
|
|
314
|
+
<!-- politty:command:organization list:heading:start -->
|
|
315
|
+
|
|
316
|
+
### organization list
|
|
317
|
+
|
|
318
|
+
<!-- politty:command:organization list:heading:end -->
|
|
319
|
+
|
|
320
|
+
<!-- politty:command:organization list:description:start -->
|
|
321
|
+
|
|
322
|
+
List organizations you belong to.
|
|
323
|
+
|
|
324
|
+
<!-- politty:command:organization list:description:end -->
|
|
325
|
+
|
|
326
|
+
<!-- politty:command:organization list:usage:start -->
|
|
327
|
+
|
|
328
|
+
**Usage**
|
|
329
|
+
|
|
330
|
+
```
|
|
331
|
+
tailor-sdk organization list [options]
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
<!-- politty:command:organization list:usage:end -->
|
|
335
|
+
|
|
336
|
+
<!-- politty:command:organization list:options:start -->
|
|
337
|
+
|
|
338
|
+
**Options**
|
|
339
|
+
|
|
340
|
+
| Option | Alias | Description | Required | Default |
|
|
341
|
+
| ----------------- | ----- | --------------------------------------- | -------- | ------- |
|
|
342
|
+
| `--limit <LIMIT>` | `-l` | Maximum number of organizations to list | No | - |
|
|
343
|
+
|
|
344
|
+
<!-- politty:command:organization list:options:end -->
|
|
345
|
+
|
|
346
|
+
<!-- politty:command:organization list:global-options-link:start -->
|
|
347
|
+
|
|
348
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
349
|
+
|
|
350
|
+
<!-- politty:command:organization list:global-options-link:end -->
|
|
351
|
+
<!-- politty:command:organization tree:heading:start -->
|
|
352
|
+
|
|
353
|
+
### organization tree
|
|
354
|
+
|
|
355
|
+
<!-- politty:command:organization tree:heading:end -->
|
|
356
|
+
|
|
357
|
+
<!-- politty:command:organization tree:description:start -->
|
|
358
|
+
|
|
359
|
+
Display organization folder hierarchy as a tree.
|
|
360
|
+
|
|
361
|
+
<!-- politty:command:organization tree:description:end -->
|
|
362
|
+
|
|
363
|
+
<!-- politty:command:organization tree:usage:start -->
|
|
364
|
+
|
|
365
|
+
**Usage**
|
|
366
|
+
|
|
367
|
+
```
|
|
368
|
+
tailor-sdk organization tree [options]
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
<!-- politty:command:organization tree:usage:end -->
|
|
372
|
+
|
|
373
|
+
<!-- politty:command:organization tree:options:start -->
|
|
374
|
+
|
|
375
|
+
**Options**
|
|
376
|
+
|
|
377
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
378
|
+
| ------------------------------------- | ----- | ------------------------------------- | -------- | ------- | --------------------------------- |
|
|
379
|
+
| `--organization-id <ORGANIZATION_ID>` | `-o` | Organization ID (show all if omitted) | No | - | `TAILOR_PLATFORM_ORGANIZATION_ID` |
|
|
380
|
+
| `--depth <DEPTH>` | `-d` | Maximum folder depth to display | No | - | - |
|
|
381
|
+
|
|
382
|
+
<!-- politty:command:organization tree:options:end -->
|
|
383
|
+
|
|
384
|
+
<!-- politty:command:organization tree:global-options-link:start -->
|
|
385
|
+
|
|
386
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
387
|
+
|
|
388
|
+
<!-- politty:command:organization tree:global-options-link:end -->
|
|
389
|
+
<!-- politty:command:organization update:heading:start -->
|
|
390
|
+
|
|
391
|
+
### organization update
|
|
392
|
+
|
|
393
|
+
<!-- politty:command:organization update:heading:end -->
|
|
394
|
+
|
|
395
|
+
<!-- politty:command:organization update:description:start -->
|
|
396
|
+
|
|
397
|
+
Update an organization's name.
|
|
398
|
+
|
|
399
|
+
<!-- politty:command:organization update:description:end -->
|
|
400
|
+
|
|
401
|
+
<!-- politty:command:organization update:usage:start -->
|
|
402
|
+
|
|
403
|
+
**Usage**
|
|
404
|
+
|
|
405
|
+
```
|
|
406
|
+
tailor-sdk organization update [options]
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
<!-- politty:command:organization update:usage:end -->
|
|
410
|
+
|
|
411
|
+
<!-- politty:command:organization update:options:start -->
|
|
412
|
+
|
|
413
|
+
**Options**
|
|
414
|
+
|
|
415
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
416
|
+
| ------------------------------------- | ----- | --------------------- | -------- | ------- | --------------------------------- |
|
|
417
|
+
| `--organization-id <ORGANIZATION_ID>` | `-o` | Organization ID | Yes | - | `TAILOR_PLATFORM_ORGANIZATION_ID` |
|
|
418
|
+
| `--name <NAME>` | `-n` | New organization name | Yes | - | - |
|
|
419
|
+
|
|
420
|
+
<!-- politty:command:organization update:options:end -->
|
|
421
|
+
|
|
422
|
+
<!-- politty:command:organization update:global-options-link:start -->
|
|
423
|
+
|
|
424
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
425
|
+
|
|
426
|
+
<!-- politty:command:organization update:global-options-link:end -->
|
package/docs/cli/user.md
CHANGED
|
@@ -19,11 +19,31 @@ Login to Tailor Platform.
|
|
|
19
19
|
**Usage**
|
|
20
20
|
|
|
21
21
|
```
|
|
22
|
-
tailor-sdk login
|
|
22
|
+
tailor-sdk login [options]
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
<!-- politty:command:login:usage:end -->
|
|
26
26
|
|
|
27
|
+
<!-- politty:command:login:options:start -->
|
|
28
|
+
|
|
29
|
+
**Options**
|
|
30
|
+
|
|
31
|
+
> One of the following option groups is required:
|
|
32
|
+
|
|
33
|
+
**User Login:**
|
|
34
|
+
|
|
35
|
+
_no options_
|
|
36
|
+
|
|
37
|
+
**Machine User Login:**
|
|
38
|
+
|
|
39
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
40
|
+
| --------------------------------- | ----- | --------------------------------- | -------- | ------- | -------------------------------------------- |
|
|
41
|
+
| `--machineuser <MACHINEUSER>` | - | Login as a platform machine user. | Yes | - | - |
|
|
42
|
+
| `--client-id <CLIENT_ID>` | - | Client ID | Yes | - | `TAILOR_PLATFORM_MACHINE_USER_CLIENT_ID` |
|
|
43
|
+
| `--client-secret <CLIENT_SECRET>` | - | Client secret | No | - | `TAILOR_PLATFORM_MACHINE_USER_CLIENT_SECRET` |
|
|
44
|
+
|
|
45
|
+
<!-- politty:command:login:options:end -->
|
|
46
|
+
|
|
27
47
|
<!-- politty:command:login:global-options-link:start -->
|
|
28
48
|
|
|
29
49
|
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
@@ -148,13 +168,6 @@ tailor-sdk user list
|
|
|
148
168
|
<!-- politty:command:user list:usage:end -->
|
|
149
169
|
|
|
150
170
|
<!-- politty:command:user list:options:start -->
|
|
151
|
-
|
|
152
|
-
**Options**
|
|
153
|
-
|
|
154
|
-
| Option | Alias | Description | Required | Default |
|
|
155
|
-
| -------- | ----- | -------------- | -------- | ------- |
|
|
156
|
-
| `--json` | `-j` | Output as JSON | No | `false` |
|
|
157
|
-
|
|
158
171
|
<!-- politty:command:user list:options:end -->
|
|
159
172
|
|
|
160
173
|
<!-- politty:command:user list:global-options-link:start -->
|
|
@@ -222,13 +235,6 @@ tailor-sdk user pat [command]
|
|
|
222
235
|
<!-- politty:command:user pat:usage:end -->
|
|
223
236
|
|
|
224
237
|
<!-- politty:command:user pat:options:start -->
|
|
225
|
-
|
|
226
|
-
**Options**
|
|
227
|
-
|
|
228
|
-
| Option | Alias | Description | Required | Default |
|
|
229
|
-
| -------- | ----- | -------------- | -------- | ------- |
|
|
230
|
-
| `--json` | `-j` | Output as JSON | No | `false` |
|
|
231
|
-
|
|
232
238
|
<!-- politty:command:user pat:options:end -->
|
|
233
239
|
|
|
234
240
|
<!-- politty:command:user pat:subcommands:start -->
|
|
@@ -272,13 +278,6 @@ tailor-sdk user pat list
|
|
|
272
278
|
<!-- politty:command:user pat list:usage:end -->
|
|
273
279
|
|
|
274
280
|
<!-- politty:command:user pat list:options:start -->
|
|
275
|
-
|
|
276
|
-
**Options**
|
|
277
|
-
|
|
278
|
-
| Option | Alias | Description | Required | Default |
|
|
279
|
-
| -------- | ----- | -------------- | -------- | ------- |
|
|
280
|
-
| `--json` | `-j` | Output as JSON | No | `false` |
|
|
281
|
-
|
|
282
281
|
<!-- politty:command:user pat list:options:end -->
|
|
283
282
|
|
|
284
283
|
<!-- politty:command:user pat list:global-options-link:start -->
|
package/docs/cli/workspace.md
CHANGED
|
@@ -274,13 +274,6 @@ tailor-sdk profile list
|
|
|
274
274
|
<!-- politty:command:profile list:usage:end -->
|
|
275
275
|
|
|
276
276
|
<!-- politty:command:profile list:options:start -->
|
|
277
|
-
|
|
278
|
-
**Options**
|
|
279
|
-
|
|
280
|
-
| Option | Alias | Description | Required | Default |
|
|
281
|
-
| -------- | ----- | -------------- | -------- | ------- |
|
|
282
|
-
| `--json` | `-j` | Output as JSON | No | `false` |
|
|
283
|
-
|
|
284
277
|
<!-- politty:command:profile list:options:end -->
|
|
285
278
|
|
|
286
279
|
<!-- politty:command:profile list:global-options-link:start -->
|
package/docs/cli-reference.md
CHANGED
|
@@ -53,16 +53,20 @@ tailor-sdk apply --env-file .env --env-file .env.production
|
|
|
53
53
|
|
|
54
54
|
You can use environment variables to configure workspace and authentication:
|
|
55
55
|
|
|
56
|
-
| Variable
|
|
57
|
-
|
|
|
58
|
-
| `TAILOR_PLATFORM_WORKSPACE_ID`
|
|
59
|
-
| `
|
|
60
|
-
| `
|
|
61
|
-
| `
|
|
62
|
-
| `
|
|
63
|
-
| `
|
|
64
|
-
| `
|
|
65
|
-
| `
|
|
56
|
+
| Variable | Description |
|
|
57
|
+
| -------------------------------------------- | --------------------------------------------------------------------------- |
|
|
58
|
+
| `TAILOR_PLATFORM_WORKSPACE_ID` | Workspace ID for deployment commands |
|
|
59
|
+
| `TAILOR_PLATFORM_ORGANIZATION_ID` | Organization ID for organization commands |
|
|
60
|
+
| `TAILOR_PLATFORM_FOLDER_ID` | Folder ID for folder commands |
|
|
61
|
+
| `TAILOR_PLATFORM_TOKEN` | Authentication token (alternative to `login`) |
|
|
62
|
+
| `TAILOR_TOKEN` | **Deprecated.** Use `TAILOR_PLATFORM_TOKEN` instead |
|
|
63
|
+
| `TAILOR_PLATFORM_PROFILE` | Workspace profile name |
|
|
64
|
+
| `TAILOR_PLATFORM_SDK_CONFIG_PATH` | Path to SDK config file |
|
|
65
|
+
| `TAILOR_PLATFORM_MACHINE_USER_CLIENT_ID` | Client ID for `login --machineuser` |
|
|
66
|
+
| `TAILOR_PLATFORM_MACHINE_USER_CLIENT_SECRET` | Client secret for `login --machineuser` |
|
|
67
|
+
| `VISUAL` / `EDITOR` | Preferred editor for commands that open files (e.g., `vim`, `code`, `nano`) |
|
|
68
|
+
| `TAILOR_CRASH_REPORTS_LOCAL` | Local crash log writing: `on` (default) or `off` |
|
|
69
|
+
| `TAILOR_CRASH_REPORTS_REMOTE` | Automatic crash report submission: `off` (default) or `on` |
|
|
66
70
|
|
|
67
71
|
### Authentication Token Priority
|
|
68
72
|
|
|
@@ -127,9 +131,25 @@ Commands for authentication and user management.
|
|
|
127
131
|
| [user pat delete](./cli/user.md#user-pat-delete) | Delete a personal access token |
|
|
128
132
|
| [user pat update](./cli/user.md#user-pat-update) | Update a personal access token |
|
|
129
133
|
|
|
130
|
-
###
|
|
134
|
+
### Workspace & Organization Commands
|
|
131
135
|
|
|
132
|
-
Commands for managing workspaces and
|
|
136
|
+
Commands for managing workspaces, profiles, organizations, and folders.
|
|
137
|
+
|
|
138
|
+
**[Organization Commands](./cli/organization.md)**
|
|
139
|
+
|
|
140
|
+
| Command | Description |
|
|
141
|
+
| ------------------------------------------------------------------------------ | ----------------------------------------------- |
|
|
142
|
+
| [organization list](./cli/organization.md#organization-list) | List organizations you belong to |
|
|
143
|
+
| [organization get](./cli/organization.md#organization-get) | Show detailed information about an organization |
|
|
144
|
+
| [organization update](./cli/organization.md#organization-update) | Update an organization's name |
|
|
145
|
+
| [organization tree](./cli/organization.md#organization-tree) | Display organization folder hierarchy as a tree |
|
|
146
|
+
| [organization folder list](./cli/organization.md#organization-folder-list) | List folders in an organization |
|
|
147
|
+
| [organization folder get](./cli/organization.md#organization-folder-get) | Show detailed information about a folder |
|
|
148
|
+
| [organization folder create](./cli/organization.md#organization-folder-create) | Create a new folder in an organization |
|
|
149
|
+
| [organization folder update](./cli/organization.md#organization-folder-update) | Update a folder's name |
|
|
150
|
+
| [organization folder delete](./cli/organization.md#organization-folder-delete) | Delete a folder from an organization |
|
|
151
|
+
|
|
152
|
+
**[Workspace Commands](./cli/workspace.md)**
|
|
133
153
|
|
|
134
154
|
| Command | Description |
|
|
135
155
|
| ------------------------------------------------------- | ---------------------- |
|
|
@@ -99,6 +99,30 @@ resolverExecutedTrigger({
|
|
|
99
99
|
});
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
+
### IdP User Triggers
|
|
103
|
+
|
|
104
|
+
Fire when IdP users are created, updated, or deleted:
|
|
105
|
+
|
|
106
|
+
- `idpUserCreatedTrigger()`: Fires when a new IdP user is created
|
|
107
|
+
- `idpUserUpdatedTrigger()`: Fires when an IdP user is updated
|
|
108
|
+
- `idpUserDeletedTrigger()`: Fires when an IdP user is deleted
|
|
109
|
+
|
|
110
|
+
```typescript
|
|
111
|
+
idpUserCreatedTrigger();
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Auth Access Token Triggers
|
|
115
|
+
|
|
116
|
+
Fire on auth access token lifecycle events:
|
|
117
|
+
|
|
118
|
+
- `authAccessTokenIssuedTrigger()`: Fires when a new access token is issued
|
|
119
|
+
- `authAccessTokenRefreshedTrigger()`: Fires when an access token is refreshed
|
|
120
|
+
- `authAccessTokenRevokedTrigger()`: Fires when an access token is revoked
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
authAccessTokenIssuedTrigger();
|
|
124
|
+
```
|
|
125
|
+
|
|
102
126
|
## Operation Types
|
|
103
127
|
|
|
104
128
|
### Function Operation
|
|
@@ -401,3 +425,25 @@ export default createExecutor({
|
|
|
401
425
|
},
|
|
402
426
|
});
|
|
403
427
|
```
|
|
428
|
+
|
|
429
|
+
### IdP User Event Payload
|
|
430
|
+
|
|
431
|
+
IdP user triggers receive user context:
|
|
432
|
+
|
|
433
|
+
```typescript
|
|
434
|
+
interface IdpUserContext {
|
|
435
|
+
namespaceName: string; // IdP namespace name
|
|
436
|
+
userId: string; // The affected user ID
|
|
437
|
+
}
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
### Auth Access Token Event Payload
|
|
441
|
+
|
|
442
|
+
Auth access token triggers receive token context:
|
|
443
|
+
|
|
444
|
+
```typescript
|
|
445
|
+
interface AuthAccessTokenContext {
|
|
446
|
+
namespaceName: string; // Auth namespace name
|
|
447
|
+
userId: string; // The user associated with the token
|
|
448
|
+
}
|
|
449
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.30.0",
|
|
4
4
|
"description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@opentelemetry/resources": "2.6.0",
|
|
90
90
|
"@opentelemetry/sdk-trace-node": "2.6.0",
|
|
91
91
|
"@opentelemetry/semantic-conventions": "1.40.0",
|
|
92
|
-
"@oxc-project/types": "0.
|
|
92
|
+
"@oxc-project/types": "0.120.0",
|
|
93
93
|
"@standard-schema/spec": "1.1.0",
|
|
94
94
|
"@tailor-platform/function-kysely-tailordb": "0.1.3",
|
|
95
95
|
"@toiroakr/lines-db": "0.9.0",
|
|
@@ -102,18 +102,18 @@
|
|
|
102
102
|
"find-up-simple": "1.0.1",
|
|
103
103
|
"globals": "17.0.0",
|
|
104
104
|
"inflection": "3.0.2",
|
|
105
|
-
"kysely": "0.28.
|
|
105
|
+
"kysely": "0.28.14",
|
|
106
106
|
"madge": "8.0.0",
|
|
107
107
|
"mime-types": "3.0.2",
|
|
108
108
|
"multiline-ts": "4.0.1",
|
|
109
109
|
"open": "11.0.0",
|
|
110
110
|
"ora": "9.0.0",
|
|
111
|
-
"oxc-parser": "0.
|
|
112
|
-
"p-limit": "7.
|
|
111
|
+
"oxc-parser": "0.119.0",
|
|
112
|
+
"p-limit": "7.3.0",
|
|
113
113
|
"pathe": "2.0.3",
|
|
114
114
|
"pgsql-ast-parser": "12.0.2",
|
|
115
115
|
"pkg-types": "2.3.0",
|
|
116
|
-
"politty": "0.4.
|
|
116
|
+
"politty": "0.4.12",
|
|
117
117
|
"rolldown": "1.0.0-rc.9",
|
|
118
118
|
"serve": "14.2.6",
|
|
119
119
|
"std-env": "3.10.0",
|
|
@@ -135,8 +135,8 @@
|
|
|
135
135
|
"@vitest/coverage-v8": "4.1.0",
|
|
136
136
|
"eslint": "9.39.4",
|
|
137
137
|
"eslint-plugin-jsdoc": "62.8.0",
|
|
138
|
-
"eslint-plugin-oxlint": "1.
|
|
139
|
-
"oxlint": "1.
|
|
138
|
+
"eslint-plugin-oxlint": "1.55.0",
|
|
139
|
+
"oxlint": "1.55.0",
|
|
140
140
|
"oxlint-tsgolint": "0.16.0",
|
|
141
141
|
"sonda": "0.11.1",
|
|
142
142
|
"tsdown": "0.21.2",
|