@withpica/mcp-sdk 3.17.0 → 3.19.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/CHANGELOG.md +21 -0
- package/dist/index.d.ts +25 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1899,11 +1899,11 @@ class SettingsResource extends BaseResource {
|
|
|
1899
1899
|
* the auth context — `user_id` is never accepted (ADR-184 rule 2).
|
|
1900
1900
|
*
|
|
1901
1901
|
* The route lazy-creates the backing `people` row if the user's
|
|
1902
|
-
* `user_profiles.person_id` is null
|
|
1903
|
-
*
|
|
1904
|
-
*
|
|
1905
|
-
* count of
|
|
1906
|
-
*
|
|
1902
|
+
* `user_profiles.person_id` is null. Identifiers are saved on that record
|
|
1903
|
+
* only; this call triggers no cross-org linking (a typed IPI is not
|
|
1904
|
+
* evidence).
|
|
1905
|
+
* Response includes the count of discoveries written in each of the 3
|
|
1906
|
+
* typed tables in the last 10 seconds.
|
|
1907
1907
|
* ADR-189 Phase 3.
|
|
1908
1908
|
*/
|
|
1909
1909
|
async updateMyIdentity(params) {
|
|
@@ -1926,20 +1926,18 @@ class SettingsResource extends BaseResource {
|
|
|
1926
1926
|
// --- GDPR Resource (user self-service delete + export) ---
|
|
1927
1927
|
class GdprResource extends BaseResource {
|
|
1928
1928
|
/**
|
|
1929
|
-
* Create a
|
|
1929
|
+
* Create a pending deletion request for the authenticated user's account.
|
|
1930
1930
|
* Never accepts a user_id — the subject is derived from the bearer token
|
|
1931
|
-
* (ADR-184 rule 2). Returns the deletion_request_id immediately;
|
|
1932
|
-
*
|
|
1933
|
-
* the web UI's 30-day reversal window.
|
|
1931
|
+
* (ADR-184 rule 2). Returns the deletion_request_id immediately; nothing
|
|
1932
|
+
* is erased until an org owner/admin or the PICA team confirms the request.
|
|
1934
1933
|
*/
|
|
1935
1934
|
async deleteMyAccount(params) {
|
|
1936
1935
|
return this.request("POST", "/admin/gdpr/delete-my-account", params ?? {});
|
|
1937
1936
|
}
|
|
1938
1937
|
/**
|
|
1939
1938
|
* Queue a GDPR Article 15 / 20 data export for the authenticated user.
|
|
1940
|
-
* Returns a job_id immediately;
|
|
1941
|
-
*
|
|
1942
|
-
* negotiation to a future parameter).
|
|
1939
|
+
* Returns a job_id immediately; a download link is emailed when the job
|
|
1940
|
+
* completes. Sends `{}`, so the route's defaults apply (JSON, no files).
|
|
1943
1941
|
*/
|
|
1944
1942
|
async exportMyData() {
|
|
1945
1943
|
return this.request("POST", "/admin/gdpr/export-my-data", {});
|
|
@@ -2517,9 +2515,24 @@ class ExportResource extends BaseResource {
|
|
|
2517
2515
|
const query = qs.toString();
|
|
2518
2516
|
return this.request("GET", `/admin/exports/industry-ready${query ? `?${query}` : ""}`);
|
|
2519
2517
|
}
|
|
2518
|
+
/**
|
|
2519
|
+
* Builds an UNSIGNED catalog asset report. Its declaration can only be
|
|
2520
|
+
* attested by a person signed in to PICA (the export panel), so the API
|
|
2521
|
+
* refuses an attestation sent with an API key, agent grant or OAuth token.
|
|
2522
|
+
*/
|
|
2520
2523
|
async catalogAssetReport(params) {
|
|
2521
2524
|
return this.request("POST", "/admin/exports/catalog-asset-report", params);
|
|
2522
2525
|
}
|
|
2526
|
+
/**
|
|
2527
|
+
* One ZIP holding the song dossier (PDF + JSON) of each work named — the
|
|
2528
|
+
* work, its recordings, the releases they appear on, people, provenance and
|
|
2529
|
+
* consent — plus a manifest and README. Returns a signed-URL JSON envelope
|
|
2530
|
+
* with a per-work `works[]` account of what was included. 1–60 work ids;
|
|
2531
|
+
* a malformed id or a longer list is refused with a 400.
|
|
2532
|
+
*/
|
|
2533
|
+
async songDossiers(params) {
|
|
2534
|
+
return this.request("POST", "/admin/exports/song-dossiers", params);
|
|
2535
|
+
}
|
|
2523
2536
|
async aiConsent(params) {
|
|
2524
2537
|
// Returns a signed-URL JSON envelope. The inline `?format=json`
|
|
2525
2538
|
// path stays the default for the SDK; the route also returns the
|