@oddington/cli 0.1.28 → 0.1.29
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/README.md +46 -0
- package/dist/os.js +160 -158
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -252,6 +252,38 @@ Airtable expects:
|
|
|
252
252
|
Creating a connection verifies access before saving it. It does not grant
|
|
253
253
|
anyone permission to use it.
|
|
254
254
|
|
|
255
|
+
Outlook and SharePoint are separate connections for one mailbox or site. Both
|
|
256
|
+
require tenant and application IDs, declared access, and protected credential
|
|
257
|
+
JSON from stdin:
|
|
258
|
+
|
|
259
|
+
```sh
|
|
260
|
+
credential-source | os connection create outlook \
|
|
261
|
+
--workspace <workspace> \
|
|
262
|
+
--name accounts-payable \
|
|
263
|
+
--tenant-id <tenant-id> \
|
|
264
|
+
--client-id <client-id> \
|
|
265
|
+
--mailbox-email invoices@example.test \
|
|
266
|
+
--access read \
|
|
267
|
+
--credentials-stdin
|
|
268
|
+
|
|
269
|
+
credential-source | os connection create sharepoint \
|
|
270
|
+
--workspace <workspace> \
|
|
271
|
+
--name operations \
|
|
272
|
+
--tenant-id <tenant-id> \
|
|
273
|
+
--client-id <client-id> \
|
|
274
|
+
--site-url https://example.sharepoint.com/sites/Operations \
|
|
275
|
+
--access read-write \
|
|
276
|
+
--credentials-stdin
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
Each expects an object containing only `clientSecret`. The entire UTF-8 stdin
|
|
280
|
+
input must fit within 4,096 bytes. The secret never belongs in command arguments.
|
|
281
|
+
Outlook accepts only `read`; SharePoint accepts `read` or `read-write`. OS resolves
|
|
282
|
+
the SharePoint site ID during verification; callers cannot supply it.
|
|
283
|
+
The Entra application's Microsoft permissions and site or mailbox grants must
|
|
284
|
+
already be configured upstream. V0 manages and verifies these connections;
|
|
285
|
+
it does not provide Microsoft routine operations or SharePoint File storage.
|
|
286
|
+
|
|
255
287
|
### Test a connection
|
|
256
288
|
|
|
257
289
|
```sh
|
|
@@ -271,6 +303,13 @@ Gmail verification checks the configured account and scopes without reading
|
|
|
271
303
|
messages. Airtable verification makes a read-only schema request; it does not
|
|
272
304
|
prove that the credential can write records.
|
|
273
305
|
|
|
306
|
+
Outlook testing reads only the configured mailbox's inbox folder identity,
|
|
307
|
+
without reading messages or attachments. SharePoint testing resolves the site
|
|
308
|
+
URL to its saved ID and reads that site. Success establishes readable access
|
|
309
|
+
only, including when declared access is `read-write`; it does not prove write
|
|
310
|
+
access or the absence of broader Microsoft access. Inspect shows the complete
|
|
311
|
+
public configuration, including the verified SharePoint site ID.
|
|
312
|
+
|
|
274
313
|
### Grant and use a connection
|
|
275
314
|
|
|
276
315
|
Use `os whoami` to find your user ID, then grant access explicitly:
|
|
@@ -308,6 +347,13 @@ To rotate Gmail or Airtable credentials, repeat the matching `create` command
|
|
|
308
347
|
with the same name and external account or base. The new credentials are tested
|
|
309
348
|
before replacing the old ones.
|
|
310
349
|
|
|
350
|
+
For Outlook or SharePoint, repeat the matching `create` command with the same
|
|
351
|
+
provider and name and fresh credential stdin. Successful verification replaces
|
|
352
|
+
the credential while preserving the connection ID and history; failure leaves
|
|
353
|
+
the prior connection intact. Disconnect removes that connection's protected
|
|
354
|
+
credential without changing Microsoft permissions or other connections using
|
|
355
|
+
the same secret. Reconnecting requires fresh verified credentials.
|
|
356
|
+
|
|
311
357
|
To stop new use of a connection:
|
|
312
358
|
|
|
313
359
|
```sh
|