Skip to content

Commit f7da653

Browse files
committed
feat(project-files): add public sharing and protected delivery
1 parent 6e3b83b commit f7da653

55 files changed

Lines changed: 4545 additions & 1869 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/docs/content/docs/cli/projects.mdx‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,57 @@ Show Project file metadata and ownership (OAuth login or personal API key requir
339339

340340
</CommandTable>
341341

342+
## Show a project file’s share settings
343+
344+
```bash
345+
sim projects files share get <projectId> <fileId>
346+
```
347+
348+
Show a Project file’s share settings (OAuth login or personal API key required)
349+
350+
**Arguments**
351+
352+
<CommandTable>
353+
354+
| Argument | Required | Description |
355+
| --- | --- | --- |
356+
| `projectId` | Yes | Project identifier. |
357+
| `fileId` | Yes | File identifier within the Project. |
358+
359+
</CommandTable>
360+
361+
## Enable or disable sharing for a project file
362+
363+
```bash
364+
sim projects files share set <projectId> <fileId> [options]
365+
```
366+
367+
Enable or disable sharing for a Project file (OAuth login or personal API key required)
368+
369+
**Arguments**
370+
371+
<CommandTable>
372+
373+
| Argument | Required | Description |
374+
| --- | --- | --- |
375+
| `projectId` | Yes | Project identifier. |
376+
| `fileId` | Yes | File identifier within the Project. |
377+
378+
</CommandTable>
379+
380+
**Options**
381+
382+
<CommandTable>
383+
384+
| Option | Required | Description |
385+
| --- | --- | --- |
386+
| `--is-active <true\|false>` | Yes | Whether the share should resolve. Disabling preserves the token and the whole access configuration, so re-enabling restores the share as it was; enabling rewrites the credentials the resulting mode does not use. Accepted values: `true`, `false`. |
387+
| `--auth-type <value>` | No | How access to the share is gated. The stored mode is kept when omitted. Enabling `public` clears the stored password and empties `allowedEmails`; `password` empties `allowedEmails`; `email` and `sso` clear the stored password. Accepted values: `public`, `password`, `email`, `sso`. |
388+
| `--password <value>` | No | Literal password of 15 to 1024 characters. Kept when omitted; enabling password access without a supplied or stored password is rejected. |
389+
| `--allowed-emails <value...>` | No | Allowed addresses or `@domain` patterns for email and SSO shares. Kept when omitted; enabling `email` or `sso` with an empty resulting list is a 400. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
390+
391+
</CommandTable>
392+
342393
## List project files
343394

344395
```bash

‎apps/docs/content/docs/cli/reference.mdx‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4647,6 +4647,57 @@ sim projects files describe <projectId> <fileId>
46474647

46484648
</CommandTable>
46494649

4650+
### sim projects files share get
4651+
4652+
Show a Project file’s share settings (OAuth login or personal API key required)
4653+
4654+
```bash
4655+
sim projects files share get <projectId> <fileId>
4656+
```
4657+
4658+
**Arguments**
4659+
4660+
<CommandTable>
4661+
4662+
| Argument | Required | Description |
4663+
| --- | --- | --- |
4664+
| `projectId` | Yes | Project identifier. |
4665+
| `fileId` | Yes | File identifier within the Project. |
4666+
4667+
</CommandTable>
4668+
4669+
### sim projects files share set
4670+
4671+
Enable or disable sharing for a Project file (OAuth login or personal API key required)
4672+
4673+
```bash
4674+
sim projects files share set <projectId> <fileId> [options]
4675+
```
4676+
4677+
**Arguments**
4678+
4679+
<CommandTable>
4680+
4681+
| Argument | Required | Description |
4682+
| --- | --- | --- |
4683+
| `projectId` | Yes | Project identifier. |
4684+
| `fileId` | Yes | File identifier within the Project. |
4685+
4686+
</CommandTable>
4687+
4688+
**Options**
4689+
4690+
<CommandTable>
4691+
4692+
| Option | Required | Description |
4693+
| --- | --- | --- |
4694+
| `--is-active <true\|false>` | Yes | Whether the share should resolve. Disabling preserves the token and the whole access configuration, so re-enabling restores the share as it was; enabling rewrites the credentials the resulting mode does not use. Accepted values: `true`, `false`. |
4695+
| `--auth-type <value>` | No | How access to the share is gated. The stored mode is kept when omitted. Enabling `public` clears the stored password and empties `allowedEmails`; `password` empties `allowedEmails`; `email` and `sso` clear the stored password. Accepted values: `public`, `password`, `email`, `sso`. |
4696+
| `--password <value>` | No | Literal password of 15 to 1024 characters. Kept when omitted; enabling password access without a supplied or stored password is rejected. |
4697+
| `--allowed-emails <value...>` | No | Allowed addresses or `@domain` patterns for email and SSO shares. Kept when omitted; enabling `email` or `sso` with an empty resulting list is a 400. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
4698+
4699+
</CommandTable>
4700+
46504701
### sim projects files list
46514702

46524703
List Project Files (OAuth login or personal API key required)

0 commit comments

Comments
 (0)