@descix/platform-api 5.1.1 → 5.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descix/platform-api",
3
- "version": "5.1.1",
3
+ "version": "5.2.0",
4
4
  "description": "Shared platform infrastructure: Firestore models, auth/session, permissions, entitlements, email",
5
5
  "repository": {
6
6
  "type": "git",
@@ -118,6 +118,59 @@
118
118
  "options": [],
119
119
  "runbookAnchor": null
120
120
  },
121
+ {
122
+ "verbPath": "app media-delete",
123
+ "description": "Delete uploaded media from an app's assets/ prefix, one path per server call; a path that does not exist is reported and the rest still run (exit 1 only when a call fails)",
124
+ "arguments": [
125
+ {
126
+ "name": "path",
127
+ "required": true,
128
+ "variadic": true,
129
+ "description": "One or more object paths relative to the app assets/ prefix, as media-list prints them"
130
+ }
131
+ ],
132
+ "options": [
133
+ {
134
+ "flags": "-a, --app <id>",
135
+ "description": "App ID (community is resolved server-side from Products)",
136
+ "required": true
137
+ },
138
+ {
139
+ "flags": "--dry-run",
140
+ "description": "Ask the server what would be deleted; nothing is deleted",
141
+ "required": false
142
+ },
143
+ {
144
+ "flags": "--json",
145
+ "description": "Print every per-path server result and the summary as JSON (for scripting)",
146
+ "required": false
147
+ }
148
+ ],
149
+ "runbookAnchor": null
150
+ },
151
+ {
152
+ "verbPath": "app media-list",
153
+ "description": "List an app's uploaded media (path, size, content type, updated, public_url) and its storage total against the quota",
154
+ "arguments": [],
155
+ "options": [
156
+ {
157
+ "flags": "-a, --app <id>",
158
+ "description": "App ID (community is resolved server-side from Products)",
159
+ "required": true
160
+ },
161
+ {
162
+ "flags": "--prefix <relPath>",
163
+ "description": "Only objects under this sub-path of the app assets/ prefix (e.g. \"shows/myshow\")",
164
+ "required": false
165
+ },
166
+ {
167
+ "flags": "--json",
168
+ "description": "Print the server's listing object unchanged (for scripting)",
169
+ "required": false
170
+ }
171
+ ],
172
+ "runbookAnchor": null
173
+ },
121
174
  {
122
175
  "verbPath": "app media-upload",
123
176
  "description": "Upload media/asset files to an app's GCS assets prefix (200 MB per app today; app owners, community admins and platform admins may upload — returns asset references)",
@@ -1713,18 +1766,23 @@
1713
1766
  },
1714
1767
  {
1715
1768
  "verbPath": "referral create",
1716
- "description": "Generate a referral code for a community/app",
1769
+ "description": "Get your share link to a page: <page>?ref=<code> (the same link each time you ask)",
1717
1770
  "arguments": [],
1718
1771
  "options": [
1719
1772
  {
1720
- "flags": "-c, --community <id>",
1721
- "description": "Community ID",
1773
+ "flags": "--url <page>",
1774
+ "description": "The page to share: an https URL on the platform domain (the query is dropped)",
1722
1775
  "required": true
1723
1776
  },
1724
1777
  {
1725
- "flags": "-a, --app <id>",
1726
- "description": "App ID (optional)",
1727
- "required": false
1778
+ "flags": "--channel <channel>",
1779
+ "description": "How the link travels, e.g. web_share or email (the server names the accepted values)",
1780
+ "required": true
1781
+ },
1782
+ {
1783
+ "flags": "-c, --community <id>",
1784
+ "description": "The community the referral credits",
1785
+ "required": true
1728
1786
  }
1729
1787
  ],
1730
1788
  "runbookAnchor": null