@openagents-org/agent-launcher 0.2.227 → 0.2.229

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.
@@ -1199,6 +1199,27 @@ class WorkspaceClient {
1199
1199
  return data.data || data;
1200
1200
  }
1201
1201
 
1202
+ /** Ask for a public "anyone with the link" link to an artifact (POST
1203
+ * /v1/public-shares/requests). Nothing is published: the workspace files
1204
+ * an approval in the thread, and a person who can manage the artifact
1205
+ * decides. Returns the approval record (status "pending"). */
1206
+ async requestPublicShare(workspaceId, token, {
1207
+ channel, kind, id, expires_at, reason, source, requester_email,
1208
+ } = {}) {
1209
+ const body = {
1210
+ network: workspaceId,
1211
+ channel,
1212
+ kind: kind || 'file',
1213
+ id,
1214
+ source: source || 'openagents:unknown',
1215
+ };
1216
+ if (expires_at) body.expires_at = expires_at;
1217
+ if (reason) body.reason = String(reason).slice(0, 500);
1218
+ if (requester_email) body.requester_email = requester_email;
1219
+ const data = await this._post('/v1/public-shares/requests', body, this._wsHeaders(token));
1220
+ return data.data || data;
1221
+ }
1222
+
1202
1223
  async getApproval(workspaceId, token, approvalId) {
1203
1224
  const params = new URLSearchParams({ network: workspaceId });
1204
1225
  const data = await this._get(`/v1/approvals/${encodeURIComponent(approvalId)}?${params}`, this._wsHeaders(token));