flipstream 0.4.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/LICENSE +202 -0
- package/README.md +659 -0
- package/bin/dev.js +9 -0
- package/bin/run.js +7 -0
- package/dist/commands/auth/clear-all.d.ts +10 -0
- package/dist/commands/auth/clear-all.js +50 -0
- package/dist/commands/auth/login.d.ts +11 -0
- package/dist/commands/auth/login.js +49 -0
- package/dist/commands/auth/logout.d.ts +10 -0
- package/dist/commands/auth/logout.js +51 -0
- package/dist/commands/auth/status.d.ts +8 -0
- package/dist/commands/auth/status.js +47 -0
- package/dist/commands/connections/list.d.ts +19 -0
- package/dist/commands/connections/list.js +43 -0
- package/dist/commands/query.d.ts +13 -0
- package/dist/commands/query.js +76 -0
- package/dist/commands/version.d.ts +15 -0
- package/dist/commands/version.js +17 -0
- package/dist/commands/workspaces/connections.d.ts +21 -0
- package/dist/commands/workspaces/connections.js +41 -0
- package/dist/commands/workspaces/get.d.ts +15 -0
- package/dist/commands/workspaces/get.js +65 -0
- package/dist/commands/workspaces/list.d.ts +20 -0
- package/dist/commands/workspaces/list.js +87 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/api/admin-client.d.ts +19 -0
- package/dist/lib/api/admin-client.js +44 -0
- package/dist/lib/api/client.d.ts +13 -0
- package/dist/lib/api/client.js +21 -0
- package/dist/lib/api/connections.d.ts +14 -0
- package/dist/lib/api/connections.js +44 -0
- package/dist/lib/api/errors.d.ts +7 -0
- package/dist/lib/api/errors.js +68 -0
- package/dist/lib/api/http.d.ts +9 -0
- package/dist/lib/api/http.js +55 -0
- package/dist/lib/api/ids.d.ts +1 -0
- package/dist/lib/api/ids.js +8 -0
- package/dist/lib/api/list.d.ts +12 -0
- package/dist/lib/api/list.js +31 -0
- package/dist/lib/api/projections.d.ts +2 -0
- package/dist/lib/api/projections.js +34 -0
- package/dist/lib/api/retry.d.ts +13 -0
- package/dist/lib/api/retry.js +37 -0
- package/dist/lib/auth/claims.d.ts +3 -0
- package/dist/lib/auth/claims.js +20 -0
- package/dist/lib/auth/discovery.d.ts +13 -0
- package/dist/lib/auth/discovery.js +62 -0
- package/dist/lib/auth/flow.d.ts +22 -0
- package/dist/lib/auth/flow.js +135 -0
- package/dist/lib/auth/headless.d.ts +12 -0
- package/dist/lib/auth/headless.js +61 -0
- package/dist/lib/auth/loopback.d.ts +15 -0
- package/dist/lib/auth/loopback.js +198 -0
- package/dist/lib/auth/pkce.d.ts +6 -0
- package/dist/lib/auth/pkce.js +17 -0
- package/dist/lib/auth/provider.d.ts +15 -0
- package/dist/lib/auth/provider.js +23 -0
- package/dist/lib/auth/refresh.d.ts +6 -0
- package/dist/lib/auth/refresh.js +69 -0
- package/dist/lib/auth/register.d.ts +4 -0
- package/dist/lib/auth/register.js +43 -0
- package/dist/lib/auth/revoke.d.ts +8 -0
- package/dist/lib/auth/revoke.js +28 -0
- package/dist/lib/auth/session.d.ts +6 -0
- package/dist/lib/auth/session.js +13 -0
- package/dist/lib/command/admin.d.ts +4 -0
- package/dist/lib/command/admin.js +30 -0
- package/dist/lib/command/base.d.ts +28 -0
- package/dist/lib/command/base.js +75 -0
- package/dist/lib/command/crash.d.ts +2 -0
- package/dist/lib/command/crash.js +37 -0
- package/dist/lib/command/flags.d.ts +7 -0
- package/dist/lib/command/flags.js +10 -0
- package/dist/lib/config/constants.d.ts +5 -0
- package/dist/lib/config/constants.js +20 -0
- package/dist/lib/config/xdg.d.ts +21 -0
- package/dist/lib/config/xdg.js +97 -0
- package/dist/lib/errors.d.ts +38 -0
- package/dist/lib/errors.js +122 -0
- package/dist/lib/exit-codes.d.ts +10 -0
- package/dist/lib/exit-codes.js +13 -0
- package/dist/lib/help.d.ts +4 -0
- package/dist/lib/help.js +14 -0
- package/dist/lib/output/ndjson.d.ts +1 -0
- package/dist/lib/output/ndjson.js +16 -0
- package/dist/lib/output/redact.d.ts +1 -0
- package/dist/lib/output/redact.js +47 -0
- package/dist/lib/output/render.d.ts +2 -0
- package/dist/lib/output/render.js +8 -0
- package/dist/lib/output/table.d.ts +3 -0
- package/dist/lib/output/table.js +19 -0
- package/dist/lib/store/credentials.d.ts +12 -0
- package/dist/lib/store/credentials.js +40 -0
- package/dist/lib/store/index.d.ts +5 -0
- package/dist/lib/store/index.js +21 -0
- package/dist/lib/store/keyring.d.ts +16 -0
- package/dist/lib/store/keyring.js +45 -0
- package/dist/lib/store/memory-store.d.ts +10 -0
- package/dist/lib/store/memory-store.js +21 -0
- package/oclif.manifest.json +851 -0
- package/package.json +79 -0
|
@@ -0,0 +1,851 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"query": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Send an OPAQUE JSON body (--body, --body-file, or piped stdin) to the Flipstream data API and print the structured JSON response. The CLI never constructs, validates, or transforms the query payload — the body is forwarded verbatim (your agent/Skill builds it).",
|
|
7
|
+
"examples": [
|
|
8
|
+
"<%= config.bin %> query --body '{\"opaque\":true}'",
|
|
9
|
+
"echo '{\"opaque\":true}' | <%= config.bin %> query",
|
|
10
|
+
"<%= config.bin %> query --body-file query.json --json"
|
|
11
|
+
],
|
|
12
|
+
"flags": {
|
|
13
|
+
"json": {
|
|
14
|
+
"description": "Format output as json.",
|
|
15
|
+
"helpGroup": "GLOBAL",
|
|
16
|
+
"name": "json",
|
|
17
|
+
"allowNo": false,
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"host": {
|
|
21
|
+
"char": "H",
|
|
22
|
+
"description": "OAuth provider host (defaults to the prod issuer).",
|
|
23
|
+
"name": "host",
|
|
24
|
+
"hasDynamicHelp": false,
|
|
25
|
+
"multiple": false,
|
|
26
|
+
"type": "option"
|
|
27
|
+
},
|
|
28
|
+
"ndjson": {
|
|
29
|
+
"description": "Stream output as NDJSON (one compact JSON object per line).",
|
|
30
|
+
"name": "ndjson",
|
|
31
|
+
"allowNo": false,
|
|
32
|
+
"type": "boolean"
|
|
33
|
+
},
|
|
34
|
+
"timeout": {
|
|
35
|
+
"description": "Network timeout in milliseconds.",
|
|
36
|
+
"name": "timeout",
|
|
37
|
+
"hasDynamicHelp": false,
|
|
38
|
+
"multiple": false,
|
|
39
|
+
"type": "option"
|
|
40
|
+
},
|
|
41
|
+
"verbose": {
|
|
42
|
+
"aliases": [
|
|
43
|
+
"debug"
|
|
44
|
+
],
|
|
45
|
+
"description": "Print redacted diagnostics to stderr.",
|
|
46
|
+
"name": "verbose",
|
|
47
|
+
"allowNo": false,
|
|
48
|
+
"type": "boolean"
|
|
49
|
+
},
|
|
50
|
+
"auth-host": {
|
|
51
|
+
"description": "OAuth issuer host for credentials/refresh (defaults to the prod issuer).",
|
|
52
|
+
"name": "auth-host",
|
|
53
|
+
"hasDynamicHelp": false,
|
|
54
|
+
"multiple": false,
|
|
55
|
+
"type": "option"
|
|
56
|
+
},
|
|
57
|
+
"body": {
|
|
58
|
+
"description": "Opaque JSON request body as a string.",
|
|
59
|
+
"exclusive": [
|
|
60
|
+
"body-file"
|
|
61
|
+
],
|
|
62
|
+
"name": "body",
|
|
63
|
+
"hasDynamicHelp": false,
|
|
64
|
+
"multiple": false,
|
|
65
|
+
"type": "option"
|
|
66
|
+
},
|
|
67
|
+
"body-file": {
|
|
68
|
+
"description": "Path to a file holding the opaque JSON request body.",
|
|
69
|
+
"name": "body-file",
|
|
70
|
+
"hasDynamicHelp": false,
|
|
71
|
+
"multiple": false,
|
|
72
|
+
"type": "option"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"hasDynamicHelp": false,
|
|
76
|
+
"hiddenAliases": [],
|
|
77
|
+
"id": "query",
|
|
78
|
+
"pluginAlias": "flipstream",
|
|
79
|
+
"pluginName": "flipstream",
|
|
80
|
+
"pluginType": "core",
|
|
81
|
+
"strict": true,
|
|
82
|
+
"summary": "Run an opaque query against the Flipstream data API.",
|
|
83
|
+
"enableJsonFlag": true,
|
|
84
|
+
"isESM": true,
|
|
85
|
+
"relativePath": [
|
|
86
|
+
"dist",
|
|
87
|
+
"commands",
|
|
88
|
+
"query.js"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"version": {
|
|
92
|
+
"aliases": [],
|
|
93
|
+
"args": {},
|
|
94
|
+
"description": "Print the CLI version, runtime, and agent-contract version as JSON.",
|
|
95
|
+
"examples": [
|
|
96
|
+
"<%= config.bin %> version",
|
|
97
|
+
"<%= config.bin %> version --json"
|
|
98
|
+
],
|
|
99
|
+
"flags": {
|
|
100
|
+
"json": {
|
|
101
|
+
"description": "Format output as json.",
|
|
102
|
+
"helpGroup": "GLOBAL",
|
|
103
|
+
"name": "json",
|
|
104
|
+
"allowNo": false,
|
|
105
|
+
"type": "boolean"
|
|
106
|
+
},
|
|
107
|
+
"host": {
|
|
108
|
+
"char": "H",
|
|
109
|
+
"description": "OAuth provider host (defaults to the prod issuer).",
|
|
110
|
+
"name": "host",
|
|
111
|
+
"hasDynamicHelp": false,
|
|
112
|
+
"multiple": false,
|
|
113
|
+
"type": "option"
|
|
114
|
+
},
|
|
115
|
+
"ndjson": {
|
|
116
|
+
"description": "Stream output as NDJSON (one compact JSON object per line).",
|
|
117
|
+
"name": "ndjson",
|
|
118
|
+
"allowNo": false,
|
|
119
|
+
"type": "boolean"
|
|
120
|
+
},
|
|
121
|
+
"timeout": {
|
|
122
|
+
"description": "Network timeout in milliseconds.",
|
|
123
|
+
"name": "timeout",
|
|
124
|
+
"hasDynamicHelp": false,
|
|
125
|
+
"multiple": false,
|
|
126
|
+
"type": "option"
|
|
127
|
+
},
|
|
128
|
+
"verbose": {
|
|
129
|
+
"aliases": [
|
|
130
|
+
"debug"
|
|
131
|
+
],
|
|
132
|
+
"description": "Print redacted diagnostics to stderr.",
|
|
133
|
+
"name": "verbose",
|
|
134
|
+
"allowNo": false,
|
|
135
|
+
"type": "boolean"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"hasDynamicHelp": false,
|
|
139
|
+
"hiddenAliases": [],
|
|
140
|
+
"id": "version",
|
|
141
|
+
"pluginAlias": "flipstream",
|
|
142
|
+
"pluginName": "flipstream",
|
|
143
|
+
"pluginType": "core",
|
|
144
|
+
"strict": true,
|
|
145
|
+
"summary": "Print version, runtime, and agent-contract version.",
|
|
146
|
+
"enableJsonFlag": true,
|
|
147
|
+
"isESM": true,
|
|
148
|
+
"relativePath": [
|
|
149
|
+
"dist",
|
|
150
|
+
"commands",
|
|
151
|
+
"version.js"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
"auth:clear-all": {
|
|
155
|
+
"aliases": [],
|
|
156
|
+
"args": {},
|
|
157
|
+
"description": "Purge ALL Flipstream credentials: every keychain entry and the local config directory.",
|
|
158
|
+
"examples": [
|
|
159
|
+
"<%= config.bin %> auth clear-all",
|
|
160
|
+
"<%= config.bin %> auth clear-all --no-revoke"
|
|
161
|
+
],
|
|
162
|
+
"flags": {
|
|
163
|
+
"json": {
|
|
164
|
+
"description": "Format output as json.",
|
|
165
|
+
"helpGroup": "GLOBAL",
|
|
166
|
+
"name": "json",
|
|
167
|
+
"allowNo": false,
|
|
168
|
+
"type": "boolean"
|
|
169
|
+
},
|
|
170
|
+
"host": {
|
|
171
|
+
"char": "H",
|
|
172
|
+
"description": "OAuth provider host (defaults to the prod issuer).",
|
|
173
|
+
"name": "host",
|
|
174
|
+
"hasDynamicHelp": false,
|
|
175
|
+
"multiple": false,
|
|
176
|
+
"type": "option"
|
|
177
|
+
},
|
|
178
|
+
"ndjson": {
|
|
179
|
+
"description": "Stream output as NDJSON (one compact JSON object per line).",
|
|
180
|
+
"name": "ndjson",
|
|
181
|
+
"allowNo": false,
|
|
182
|
+
"type": "boolean"
|
|
183
|
+
},
|
|
184
|
+
"timeout": {
|
|
185
|
+
"description": "Network timeout in milliseconds.",
|
|
186
|
+
"name": "timeout",
|
|
187
|
+
"hasDynamicHelp": false,
|
|
188
|
+
"multiple": false,
|
|
189
|
+
"type": "option"
|
|
190
|
+
},
|
|
191
|
+
"verbose": {
|
|
192
|
+
"aliases": [
|
|
193
|
+
"debug"
|
|
194
|
+
],
|
|
195
|
+
"description": "Print redacted diagnostics to stderr.",
|
|
196
|
+
"name": "verbose",
|
|
197
|
+
"allowNo": false,
|
|
198
|
+
"type": "boolean"
|
|
199
|
+
},
|
|
200
|
+
"no-revoke": {
|
|
201
|
+
"description": "Clear local credentials only; skip the per-host server revocation calls.",
|
|
202
|
+
"name": "no-revoke",
|
|
203
|
+
"allowNo": false,
|
|
204
|
+
"type": "boolean"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"hasDynamicHelp": false,
|
|
208
|
+
"hiddenAliases": [],
|
|
209
|
+
"id": "auth:clear-all",
|
|
210
|
+
"pluginAlias": "flipstream",
|
|
211
|
+
"pluginName": "flipstream",
|
|
212
|
+
"pluginType": "core",
|
|
213
|
+
"strict": true,
|
|
214
|
+
"summary": "Purge ALL credentials: every keychain entry and the local config dir.",
|
|
215
|
+
"enableJsonFlag": true,
|
|
216
|
+
"isESM": true,
|
|
217
|
+
"relativePath": [
|
|
218
|
+
"dist",
|
|
219
|
+
"commands",
|
|
220
|
+
"auth",
|
|
221
|
+
"clear-all.js"
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
"auth:login": {
|
|
225
|
+
"aliases": [],
|
|
226
|
+
"args": {},
|
|
227
|
+
"description": "Log in to Flipstream in the browser (OAuth2 Authorization Code + PKCE).",
|
|
228
|
+
"examples": [
|
|
229
|
+
"<%= config.bin %> auth login",
|
|
230
|
+
"<%= config.bin %> auth login --no-browser"
|
|
231
|
+
],
|
|
232
|
+
"flags": {
|
|
233
|
+
"json": {
|
|
234
|
+
"description": "Format output as json.",
|
|
235
|
+
"helpGroup": "GLOBAL",
|
|
236
|
+
"name": "json",
|
|
237
|
+
"allowNo": false,
|
|
238
|
+
"type": "boolean"
|
|
239
|
+
},
|
|
240
|
+
"host": {
|
|
241
|
+
"char": "H",
|
|
242
|
+
"description": "OAuth provider host (defaults to the prod issuer).",
|
|
243
|
+
"name": "host",
|
|
244
|
+
"hasDynamicHelp": false,
|
|
245
|
+
"multiple": false,
|
|
246
|
+
"type": "option"
|
|
247
|
+
},
|
|
248
|
+
"ndjson": {
|
|
249
|
+
"description": "Stream output as NDJSON (one compact JSON object per line).",
|
|
250
|
+
"name": "ndjson",
|
|
251
|
+
"allowNo": false,
|
|
252
|
+
"type": "boolean"
|
|
253
|
+
},
|
|
254
|
+
"timeout": {
|
|
255
|
+
"description": "Network timeout in milliseconds.",
|
|
256
|
+
"name": "timeout",
|
|
257
|
+
"hasDynamicHelp": false,
|
|
258
|
+
"multiple": false,
|
|
259
|
+
"type": "option"
|
|
260
|
+
},
|
|
261
|
+
"verbose": {
|
|
262
|
+
"aliases": [
|
|
263
|
+
"debug"
|
|
264
|
+
],
|
|
265
|
+
"description": "Print redacted diagnostics to stderr.",
|
|
266
|
+
"name": "verbose",
|
|
267
|
+
"allowNo": false,
|
|
268
|
+
"type": "boolean"
|
|
269
|
+
},
|
|
270
|
+
"no-browser": {
|
|
271
|
+
"description": "Headless mode: print the authorization URL, then paste the redirected URL back (no browser).",
|
|
272
|
+
"name": "no-browser",
|
|
273
|
+
"allowNo": false,
|
|
274
|
+
"type": "boolean"
|
|
275
|
+
},
|
|
276
|
+
"scope": {
|
|
277
|
+
"description": "OAuth scope (repeatable).",
|
|
278
|
+
"name": "scope",
|
|
279
|
+
"hasDynamicHelp": false,
|
|
280
|
+
"multiple": true,
|
|
281
|
+
"type": "option"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"hasDynamicHelp": false,
|
|
285
|
+
"hiddenAliases": [],
|
|
286
|
+
"id": "auth:login",
|
|
287
|
+
"pluginAlias": "flipstream",
|
|
288
|
+
"pluginName": "flipstream",
|
|
289
|
+
"pluginType": "core",
|
|
290
|
+
"strict": true,
|
|
291
|
+
"summary": "Log in via the browser (OAuth2 + PKCE).",
|
|
292
|
+
"enableJsonFlag": true,
|
|
293
|
+
"isESM": true,
|
|
294
|
+
"relativePath": [
|
|
295
|
+
"dist",
|
|
296
|
+
"commands",
|
|
297
|
+
"auth",
|
|
298
|
+
"login.js"
|
|
299
|
+
]
|
|
300
|
+
},
|
|
301
|
+
"auth:logout": {
|
|
302
|
+
"aliases": [],
|
|
303
|
+
"args": {},
|
|
304
|
+
"description": "Log out of Flipstream: revoke the token (best-effort) and clear the keychain.",
|
|
305
|
+
"examples": [
|
|
306
|
+
"<%= config.bin %> auth logout",
|
|
307
|
+
"<%= config.bin %> auth logout --no-revoke"
|
|
308
|
+
],
|
|
309
|
+
"flags": {
|
|
310
|
+
"json": {
|
|
311
|
+
"description": "Format output as json.",
|
|
312
|
+
"helpGroup": "GLOBAL",
|
|
313
|
+
"name": "json",
|
|
314
|
+
"allowNo": false,
|
|
315
|
+
"type": "boolean"
|
|
316
|
+
},
|
|
317
|
+
"host": {
|
|
318
|
+
"char": "H",
|
|
319
|
+
"description": "OAuth provider host (defaults to the prod issuer).",
|
|
320
|
+
"name": "host",
|
|
321
|
+
"hasDynamicHelp": false,
|
|
322
|
+
"multiple": false,
|
|
323
|
+
"type": "option"
|
|
324
|
+
},
|
|
325
|
+
"ndjson": {
|
|
326
|
+
"description": "Stream output as NDJSON (one compact JSON object per line).",
|
|
327
|
+
"name": "ndjson",
|
|
328
|
+
"allowNo": false,
|
|
329
|
+
"type": "boolean"
|
|
330
|
+
},
|
|
331
|
+
"timeout": {
|
|
332
|
+
"description": "Network timeout in milliseconds.",
|
|
333
|
+
"name": "timeout",
|
|
334
|
+
"hasDynamicHelp": false,
|
|
335
|
+
"multiple": false,
|
|
336
|
+
"type": "option"
|
|
337
|
+
},
|
|
338
|
+
"verbose": {
|
|
339
|
+
"aliases": [
|
|
340
|
+
"debug"
|
|
341
|
+
],
|
|
342
|
+
"description": "Print redacted diagnostics to stderr.",
|
|
343
|
+
"name": "verbose",
|
|
344
|
+
"allowNo": false,
|
|
345
|
+
"type": "boolean"
|
|
346
|
+
},
|
|
347
|
+
"no-revoke": {
|
|
348
|
+
"description": "Clear local credentials only; skip the server revocation call.",
|
|
349
|
+
"name": "no-revoke",
|
|
350
|
+
"allowNo": false,
|
|
351
|
+
"type": "boolean"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"hasDynamicHelp": false,
|
|
355
|
+
"hiddenAliases": [],
|
|
356
|
+
"id": "auth:logout",
|
|
357
|
+
"pluginAlias": "flipstream",
|
|
358
|
+
"pluginName": "flipstream",
|
|
359
|
+
"pluginType": "core",
|
|
360
|
+
"strict": true,
|
|
361
|
+
"summary": "Log out: revoke the token (best-effort) and clear the keychain.",
|
|
362
|
+
"enableJsonFlag": true,
|
|
363
|
+
"isESM": true,
|
|
364
|
+
"relativePath": [
|
|
365
|
+
"dist",
|
|
366
|
+
"commands",
|
|
367
|
+
"auth",
|
|
368
|
+
"logout.js"
|
|
369
|
+
]
|
|
370
|
+
},
|
|
371
|
+
"auth:status": {
|
|
372
|
+
"aliases": [],
|
|
373
|
+
"args": {},
|
|
374
|
+
"description": "Show the current Flipstream authentication status for a host.",
|
|
375
|
+
"examples": [
|
|
376
|
+
"<%= config.bin %> auth status",
|
|
377
|
+
"<%= config.bin %> auth status --json"
|
|
378
|
+
],
|
|
379
|
+
"flags": {
|
|
380
|
+
"json": {
|
|
381
|
+
"description": "Format output as json.",
|
|
382
|
+
"helpGroup": "GLOBAL",
|
|
383
|
+
"name": "json",
|
|
384
|
+
"allowNo": false,
|
|
385
|
+
"type": "boolean"
|
|
386
|
+
},
|
|
387
|
+
"host": {
|
|
388
|
+
"char": "H",
|
|
389
|
+
"description": "OAuth provider host (defaults to the prod issuer).",
|
|
390
|
+
"name": "host",
|
|
391
|
+
"hasDynamicHelp": false,
|
|
392
|
+
"multiple": false,
|
|
393
|
+
"type": "option"
|
|
394
|
+
},
|
|
395
|
+
"ndjson": {
|
|
396
|
+
"description": "Stream output as NDJSON (one compact JSON object per line).",
|
|
397
|
+
"name": "ndjson",
|
|
398
|
+
"allowNo": false,
|
|
399
|
+
"type": "boolean"
|
|
400
|
+
},
|
|
401
|
+
"timeout": {
|
|
402
|
+
"description": "Network timeout in milliseconds.",
|
|
403
|
+
"name": "timeout",
|
|
404
|
+
"hasDynamicHelp": false,
|
|
405
|
+
"multiple": false,
|
|
406
|
+
"type": "option"
|
|
407
|
+
},
|
|
408
|
+
"verbose": {
|
|
409
|
+
"aliases": [
|
|
410
|
+
"debug"
|
|
411
|
+
],
|
|
412
|
+
"description": "Print redacted diagnostics to stderr.",
|
|
413
|
+
"name": "verbose",
|
|
414
|
+
"allowNo": false,
|
|
415
|
+
"type": "boolean"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"hasDynamicHelp": false,
|
|
419
|
+
"hiddenAliases": [],
|
|
420
|
+
"id": "auth:status",
|
|
421
|
+
"pluginAlias": "flipstream",
|
|
422
|
+
"pluginName": "flipstream",
|
|
423
|
+
"pluginType": "core",
|
|
424
|
+
"strict": true,
|
|
425
|
+
"summary": "Show whether you are logged in, and your account, scopes, and expiry.",
|
|
426
|
+
"enableJsonFlag": true,
|
|
427
|
+
"isESM": true,
|
|
428
|
+
"relativePath": [
|
|
429
|
+
"dist",
|
|
430
|
+
"commands",
|
|
431
|
+
"auth",
|
|
432
|
+
"status.js"
|
|
433
|
+
]
|
|
434
|
+
},
|
|
435
|
+
"connections:list": {
|
|
436
|
+
"aliases": [
|
|
437
|
+
"conn:list"
|
|
438
|
+
],
|
|
439
|
+
"args": {},
|
|
440
|
+
"description": "List connections (data sources) — org-wide, or for one workspace via --workspace (or `ws connections <id>`). Returns each connection id + source metadata; secret_id / parameters are redacted. Targets the OAuth/admin host.",
|
|
441
|
+
"examples": [
|
|
442
|
+
"<%= config.bin %> connections list",
|
|
443
|
+
"<%= config.bin %> connections list --workspace <id> --json",
|
|
444
|
+
"<%= config.bin %> conn list --all"
|
|
445
|
+
],
|
|
446
|
+
"flags": {
|
|
447
|
+
"json": {
|
|
448
|
+
"description": "Format output as json.",
|
|
449
|
+
"helpGroup": "GLOBAL",
|
|
450
|
+
"name": "json",
|
|
451
|
+
"allowNo": false,
|
|
452
|
+
"type": "boolean"
|
|
453
|
+
},
|
|
454
|
+
"host": {
|
|
455
|
+
"char": "H",
|
|
456
|
+
"description": "OAuth provider host (defaults to the prod issuer).",
|
|
457
|
+
"name": "host",
|
|
458
|
+
"hasDynamicHelp": false,
|
|
459
|
+
"multiple": false,
|
|
460
|
+
"type": "option"
|
|
461
|
+
},
|
|
462
|
+
"ndjson": {
|
|
463
|
+
"description": "Stream output as NDJSON (one compact JSON object per line).",
|
|
464
|
+
"name": "ndjson",
|
|
465
|
+
"allowNo": false,
|
|
466
|
+
"type": "boolean"
|
|
467
|
+
},
|
|
468
|
+
"timeout": {
|
|
469
|
+
"description": "Network timeout in milliseconds.",
|
|
470
|
+
"name": "timeout",
|
|
471
|
+
"hasDynamicHelp": false,
|
|
472
|
+
"multiple": false,
|
|
473
|
+
"type": "option"
|
|
474
|
+
},
|
|
475
|
+
"verbose": {
|
|
476
|
+
"aliases": [
|
|
477
|
+
"debug"
|
|
478
|
+
],
|
|
479
|
+
"description": "Print redacted diagnostics to stderr.",
|
|
480
|
+
"name": "verbose",
|
|
481
|
+
"allowNo": false,
|
|
482
|
+
"type": "boolean"
|
|
483
|
+
},
|
|
484
|
+
"all": {
|
|
485
|
+
"description": "Fetch every page (drains pagination).",
|
|
486
|
+
"name": "all",
|
|
487
|
+
"allowNo": false,
|
|
488
|
+
"type": "boolean"
|
|
489
|
+
},
|
|
490
|
+
"limit": {
|
|
491
|
+
"description": "Page size.",
|
|
492
|
+
"name": "limit",
|
|
493
|
+
"default": 50,
|
|
494
|
+
"hasDynamicHelp": false,
|
|
495
|
+
"multiple": false,
|
|
496
|
+
"type": "option"
|
|
497
|
+
},
|
|
498
|
+
"offset": {
|
|
499
|
+
"description": "Starting offset.",
|
|
500
|
+
"name": "offset",
|
|
501
|
+
"default": 0,
|
|
502
|
+
"hasDynamicHelp": false,
|
|
503
|
+
"multiple": false,
|
|
504
|
+
"type": "option"
|
|
505
|
+
},
|
|
506
|
+
"q": {
|
|
507
|
+
"description": "Free-text filter.",
|
|
508
|
+
"name": "q",
|
|
509
|
+
"hasDynamicHelp": false,
|
|
510
|
+
"multiple": false,
|
|
511
|
+
"type": "option"
|
|
512
|
+
},
|
|
513
|
+
"sort": {
|
|
514
|
+
"description": "Sort field.",
|
|
515
|
+
"name": "sort",
|
|
516
|
+
"hasDynamicHelp": false,
|
|
517
|
+
"multiple": false,
|
|
518
|
+
"type": "option"
|
|
519
|
+
},
|
|
520
|
+
"workspace": {
|
|
521
|
+
"description": "List only this workspace's connections (UUID).",
|
|
522
|
+
"name": "workspace",
|
|
523
|
+
"hasDynamicHelp": false,
|
|
524
|
+
"multiple": false,
|
|
525
|
+
"type": "option"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"hasDynamicHelp": false,
|
|
529
|
+
"hiddenAliases": [],
|
|
530
|
+
"id": "connections:list",
|
|
531
|
+
"pluginAlias": "flipstream",
|
|
532
|
+
"pluginName": "flipstream",
|
|
533
|
+
"pluginType": "core",
|
|
534
|
+
"strict": true,
|
|
535
|
+
"summary": "List connections, org-wide or for one workspace.",
|
|
536
|
+
"enableJsonFlag": true,
|
|
537
|
+
"isESM": true,
|
|
538
|
+
"relativePath": [
|
|
539
|
+
"dist",
|
|
540
|
+
"commands",
|
|
541
|
+
"connections",
|
|
542
|
+
"list.js"
|
|
543
|
+
]
|
|
544
|
+
},
|
|
545
|
+
"workspaces:connections": {
|
|
546
|
+
"aliases": [
|
|
547
|
+
"ws:connections"
|
|
548
|
+
],
|
|
549
|
+
"args": {
|
|
550
|
+
"id": {
|
|
551
|
+
"description": "Workspace id (UUID).",
|
|
552
|
+
"name": "id",
|
|
553
|
+
"required": true
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
"description": "List one workspace's connections — the ergonomic form of `connections list --workspace <id>`. Targets the OAuth/admin host.",
|
|
557
|
+
"examples": [
|
|
558
|
+
"<%= config.bin %> workspaces connections <id>",
|
|
559
|
+
"<%= config.bin %> ws connections <id> --json",
|
|
560
|
+
"<%= config.bin %> ws connections <id> --all"
|
|
561
|
+
],
|
|
562
|
+
"flags": {
|
|
563
|
+
"json": {
|
|
564
|
+
"description": "Format output as json.",
|
|
565
|
+
"helpGroup": "GLOBAL",
|
|
566
|
+
"name": "json",
|
|
567
|
+
"allowNo": false,
|
|
568
|
+
"type": "boolean"
|
|
569
|
+
},
|
|
570
|
+
"host": {
|
|
571
|
+
"char": "H",
|
|
572
|
+
"description": "OAuth provider host (defaults to the prod issuer).",
|
|
573
|
+
"name": "host",
|
|
574
|
+
"hasDynamicHelp": false,
|
|
575
|
+
"multiple": false,
|
|
576
|
+
"type": "option"
|
|
577
|
+
},
|
|
578
|
+
"ndjson": {
|
|
579
|
+
"description": "Stream output as NDJSON (one compact JSON object per line).",
|
|
580
|
+
"name": "ndjson",
|
|
581
|
+
"allowNo": false,
|
|
582
|
+
"type": "boolean"
|
|
583
|
+
},
|
|
584
|
+
"timeout": {
|
|
585
|
+
"description": "Network timeout in milliseconds.",
|
|
586
|
+
"name": "timeout",
|
|
587
|
+
"hasDynamicHelp": false,
|
|
588
|
+
"multiple": false,
|
|
589
|
+
"type": "option"
|
|
590
|
+
},
|
|
591
|
+
"verbose": {
|
|
592
|
+
"aliases": [
|
|
593
|
+
"debug"
|
|
594
|
+
],
|
|
595
|
+
"description": "Print redacted diagnostics to stderr.",
|
|
596
|
+
"name": "verbose",
|
|
597
|
+
"allowNo": false,
|
|
598
|
+
"type": "boolean"
|
|
599
|
+
},
|
|
600
|
+
"all": {
|
|
601
|
+
"description": "Fetch every page (drains pagination).",
|
|
602
|
+
"name": "all",
|
|
603
|
+
"allowNo": false,
|
|
604
|
+
"type": "boolean"
|
|
605
|
+
},
|
|
606
|
+
"limit": {
|
|
607
|
+
"description": "Page size.",
|
|
608
|
+
"name": "limit",
|
|
609
|
+
"default": 50,
|
|
610
|
+
"hasDynamicHelp": false,
|
|
611
|
+
"multiple": false,
|
|
612
|
+
"type": "option"
|
|
613
|
+
},
|
|
614
|
+
"offset": {
|
|
615
|
+
"description": "Starting offset.",
|
|
616
|
+
"name": "offset",
|
|
617
|
+
"default": 0,
|
|
618
|
+
"hasDynamicHelp": false,
|
|
619
|
+
"multiple": false,
|
|
620
|
+
"type": "option"
|
|
621
|
+
},
|
|
622
|
+
"q": {
|
|
623
|
+
"description": "Free-text filter.",
|
|
624
|
+
"name": "q",
|
|
625
|
+
"hasDynamicHelp": false,
|
|
626
|
+
"multiple": false,
|
|
627
|
+
"type": "option"
|
|
628
|
+
},
|
|
629
|
+
"sort": {
|
|
630
|
+
"description": "Sort field.",
|
|
631
|
+
"name": "sort",
|
|
632
|
+
"hasDynamicHelp": false,
|
|
633
|
+
"multiple": false,
|
|
634
|
+
"type": "option"
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
"hasDynamicHelp": false,
|
|
638
|
+
"hiddenAliases": [],
|
|
639
|
+
"id": "workspaces:connections",
|
|
640
|
+
"pluginAlias": "flipstream",
|
|
641
|
+
"pluginName": "flipstream",
|
|
642
|
+
"pluginType": "core",
|
|
643
|
+
"strict": true,
|
|
644
|
+
"summary": "List one workspace's connections.",
|
|
645
|
+
"enableJsonFlag": true,
|
|
646
|
+
"isESM": true,
|
|
647
|
+
"relativePath": [
|
|
648
|
+
"dist",
|
|
649
|
+
"commands",
|
|
650
|
+
"workspaces",
|
|
651
|
+
"connections.js"
|
|
652
|
+
]
|
|
653
|
+
},
|
|
654
|
+
"workspaces:get": {
|
|
655
|
+
"aliases": [
|
|
656
|
+
"ws:get"
|
|
657
|
+
],
|
|
658
|
+
"args": {
|
|
659
|
+
"id": {
|
|
660
|
+
"description": "Workspace id (UUID).",
|
|
661
|
+
"name": "id",
|
|
662
|
+
"required": true
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
"description": "Fetch one workspace by id (the admin API \"Client\"). A foreign or missing id collapses to a single not-found message (no existence leak). Targets the OAuth/admin host.",
|
|
666
|
+
"examples": [
|
|
667
|
+
"<%= config.bin %> workspaces get <id>",
|
|
668
|
+
"<%= config.bin %> ws get <id> --json",
|
|
669
|
+
"<%= config.bin %> ws get <id> --with-connection-count"
|
|
670
|
+
],
|
|
671
|
+
"flags": {
|
|
672
|
+
"json": {
|
|
673
|
+
"description": "Format output as json.",
|
|
674
|
+
"helpGroup": "GLOBAL",
|
|
675
|
+
"name": "json",
|
|
676
|
+
"allowNo": false,
|
|
677
|
+
"type": "boolean"
|
|
678
|
+
},
|
|
679
|
+
"host": {
|
|
680
|
+
"char": "H",
|
|
681
|
+
"description": "OAuth provider host (defaults to the prod issuer).",
|
|
682
|
+
"name": "host",
|
|
683
|
+
"hasDynamicHelp": false,
|
|
684
|
+
"multiple": false,
|
|
685
|
+
"type": "option"
|
|
686
|
+
},
|
|
687
|
+
"ndjson": {
|
|
688
|
+
"description": "Stream output as NDJSON (one compact JSON object per line).",
|
|
689
|
+
"name": "ndjson",
|
|
690
|
+
"allowNo": false,
|
|
691
|
+
"type": "boolean"
|
|
692
|
+
},
|
|
693
|
+
"timeout": {
|
|
694
|
+
"description": "Network timeout in milliseconds.",
|
|
695
|
+
"name": "timeout",
|
|
696
|
+
"hasDynamicHelp": false,
|
|
697
|
+
"multiple": false,
|
|
698
|
+
"type": "option"
|
|
699
|
+
},
|
|
700
|
+
"verbose": {
|
|
701
|
+
"aliases": [
|
|
702
|
+
"debug"
|
|
703
|
+
],
|
|
704
|
+
"description": "Print redacted diagnostics to stderr.",
|
|
705
|
+
"name": "verbose",
|
|
706
|
+
"allowNo": false,
|
|
707
|
+
"type": "boolean"
|
|
708
|
+
},
|
|
709
|
+
"refresh": {
|
|
710
|
+
"description": "Ask the server to refresh derived data (refresh=true).",
|
|
711
|
+
"name": "refresh",
|
|
712
|
+
"allowNo": false,
|
|
713
|
+
"type": "boolean"
|
|
714
|
+
},
|
|
715
|
+
"with-connection-count": {
|
|
716
|
+
"description": "Include connection_count (one extra request to the connections endpoint).",
|
|
717
|
+
"name": "with-connection-count",
|
|
718
|
+
"allowNo": false,
|
|
719
|
+
"type": "boolean"
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
"hasDynamicHelp": false,
|
|
723
|
+
"hiddenAliases": [],
|
|
724
|
+
"id": "workspaces:get",
|
|
725
|
+
"pluginAlias": "flipstream",
|
|
726
|
+
"pluginName": "flipstream",
|
|
727
|
+
"pluginType": "core",
|
|
728
|
+
"strict": true,
|
|
729
|
+
"summary": "Show one workspace by id.",
|
|
730
|
+
"enableJsonFlag": true,
|
|
731
|
+
"isESM": true,
|
|
732
|
+
"relativePath": [
|
|
733
|
+
"dist",
|
|
734
|
+
"commands",
|
|
735
|
+
"workspaces",
|
|
736
|
+
"get.js"
|
|
737
|
+
]
|
|
738
|
+
},
|
|
739
|
+
"workspaces:list": {
|
|
740
|
+
"aliases": [
|
|
741
|
+
"ws:list"
|
|
742
|
+
],
|
|
743
|
+
"args": {},
|
|
744
|
+
"description": "List the workspaces (the Flipstream business entity, \"Client\" in the admin API) in your organization. Account-scoped server-side (the CLI sends no org id). Targets the OAuth/admin host (whereas `query` targets the data host).",
|
|
745
|
+
"examples": [
|
|
746
|
+
"<%= config.bin %> workspaces list",
|
|
747
|
+
"<%= config.bin %> ws list --json",
|
|
748
|
+
"<%= config.bin %> ws list --all",
|
|
749
|
+
"<%= config.bin %> ws list --q acme --limit 10"
|
|
750
|
+
],
|
|
751
|
+
"flags": {
|
|
752
|
+
"json": {
|
|
753
|
+
"description": "Format output as json.",
|
|
754
|
+
"helpGroup": "GLOBAL",
|
|
755
|
+
"name": "json",
|
|
756
|
+
"allowNo": false,
|
|
757
|
+
"type": "boolean"
|
|
758
|
+
},
|
|
759
|
+
"host": {
|
|
760
|
+
"char": "H",
|
|
761
|
+
"description": "OAuth provider host (defaults to the prod issuer).",
|
|
762
|
+
"name": "host",
|
|
763
|
+
"hasDynamicHelp": false,
|
|
764
|
+
"multiple": false,
|
|
765
|
+
"type": "option"
|
|
766
|
+
},
|
|
767
|
+
"ndjson": {
|
|
768
|
+
"description": "Stream output as NDJSON (one compact JSON object per line).",
|
|
769
|
+
"name": "ndjson",
|
|
770
|
+
"allowNo": false,
|
|
771
|
+
"type": "boolean"
|
|
772
|
+
},
|
|
773
|
+
"timeout": {
|
|
774
|
+
"description": "Network timeout in milliseconds.",
|
|
775
|
+
"name": "timeout",
|
|
776
|
+
"hasDynamicHelp": false,
|
|
777
|
+
"multiple": false,
|
|
778
|
+
"type": "option"
|
|
779
|
+
},
|
|
780
|
+
"verbose": {
|
|
781
|
+
"aliases": [
|
|
782
|
+
"debug"
|
|
783
|
+
],
|
|
784
|
+
"description": "Print redacted diagnostics to stderr.",
|
|
785
|
+
"name": "verbose",
|
|
786
|
+
"allowNo": false,
|
|
787
|
+
"type": "boolean"
|
|
788
|
+
},
|
|
789
|
+
"all": {
|
|
790
|
+
"description": "Fetch every page (drains pagination).",
|
|
791
|
+
"name": "all",
|
|
792
|
+
"allowNo": false,
|
|
793
|
+
"type": "boolean"
|
|
794
|
+
},
|
|
795
|
+
"limit": {
|
|
796
|
+
"description": "Page size.",
|
|
797
|
+
"name": "limit",
|
|
798
|
+
"default": 50,
|
|
799
|
+
"hasDynamicHelp": false,
|
|
800
|
+
"multiple": false,
|
|
801
|
+
"type": "option"
|
|
802
|
+
},
|
|
803
|
+
"offset": {
|
|
804
|
+
"description": "Starting offset.",
|
|
805
|
+
"name": "offset",
|
|
806
|
+
"default": 0,
|
|
807
|
+
"hasDynamicHelp": false,
|
|
808
|
+
"multiple": false,
|
|
809
|
+
"type": "option"
|
|
810
|
+
},
|
|
811
|
+
"q": {
|
|
812
|
+
"description": "Free-text filter.",
|
|
813
|
+
"name": "q",
|
|
814
|
+
"hasDynamicHelp": false,
|
|
815
|
+
"multiple": false,
|
|
816
|
+
"type": "option"
|
|
817
|
+
},
|
|
818
|
+
"sort": {
|
|
819
|
+
"description": "Sort field.",
|
|
820
|
+
"name": "sort",
|
|
821
|
+
"hasDynamicHelp": false,
|
|
822
|
+
"multiple": false,
|
|
823
|
+
"type": "option"
|
|
824
|
+
},
|
|
825
|
+
"with-connection-counts": {
|
|
826
|
+
"description": "Add connection_count per workspace (opt-in: one extra request each, N+1).",
|
|
827
|
+
"name": "with-connection-counts",
|
|
828
|
+
"allowNo": false,
|
|
829
|
+
"type": "boolean"
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
"hasDynamicHelp": false,
|
|
833
|
+
"hiddenAliases": [],
|
|
834
|
+
"id": "workspaces:list",
|
|
835
|
+
"pluginAlias": "flipstream",
|
|
836
|
+
"pluginName": "flipstream",
|
|
837
|
+
"pluginType": "core",
|
|
838
|
+
"strict": true,
|
|
839
|
+
"summary": "List your organization's workspaces.",
|
|
840
|
+
"enableJsonFlag": true,
|
|
841
|
+
"isESM": true,
|
|
842
|
+
"relativePath": [
|
|
843
|
+
"dist",
|
|
844
|
+
"commands",
|
|
845
|
+
"workspaces",
|
|
846
|
+
"list.js"
|
|
847
|
+
]
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
"version": "0.4.0"
|
|
851
|
+
}
|