@withpica/mcp-server 2.43.0 → 2.44.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 +37 -4
- package/dist/resources/agent-guide.d.ts +2 -2
- package/dist/resources/agent-guide.d.ts.map +1 -1
- package/dist/resources/agent-guide.js +54 -20
- package/dist/resources/agent-guide.js.map +1 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +37 -1
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/required-schemas.generated.d.ts +193 -12
- package/dist/resources/required-schemas.generated.d.ts.map +1 -1
- package/dist/resources/required-schemas.generated.js +432 -18
- package/dist/resources/required-schemas.generated.js.map +1 -1
- package/dist/resources/required-schemas.source.d.ts.map +1 -1
- package/dist/resources/required-schemas.source.js +228 -15
- package/dist/resources/required-schemas.source.js.map +1 -1
- package/dist/tools/agreement-types.js +1 -1
- package/dist/tools/agreement-types.js.map +1 -1
- package/dist/tools/agreements.js +3 -3
- package/dist/tools/agreements.js.map +1 -1
- package/dist/tools/audio-files.js +4 -4
- package/dist/tools/audio-files.js.map +1 -1
- package/dist/tools/dashboard.js +5 -5
- package/dist/tools/dashboard.js.map +1 -1
- package/dist/tools/enrichment.js +6 -6
- package/dist/tools/enrichment.js.map +1 -1
- package/dist/tools/exports.js +5 -5
- package/dist/tools/exports.js.map +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/multimedia.js +4 -4
- package/dist/tools/multimedia.js.map +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,40 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
|
|
12
12
|
## [Unreleased]
|
|
13
13
|
|
|
14
|
+
## [2.44.0] - 2026-04-30
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- **ADR-214 Phase 2 — 6 new workflow schema resources.**
|
|
19
|
+
- `pica://schemas/audio-upload-required` (3-step chain: presigned →
|
|
20
|
+
complete → analyze + poll)
|
|
21
|
+
- `pica://schemas/enrichment-resolve-required` (resolve fan-out →
|
|
22
|
+
proposals_list → proposal_apply / reject)
|
|
23
|
+
- `pica://schemas/agreement-required`
|
|
24
|
+
- `pica://schemas/multimedia-required`
|
|
25
|
+
- `pica://schemas/export-required`
|
|
26
|
+
- `pica://schemas/claim-required`
|
|
27
|
+
|
|
28
|
+
Each derives required + recommended fields from the live tool input
|
|
29
|
+
schemas at build time and embeds CHECK enums from `schema-mirror.json`.
|
|
30
|
+
Agent-guide expanded with 6 workflow sections (4 net-new, 2 rewrites
|
|
31
|
+
with schema-URI footers); intro bumps "five core" → "eleven core" and
|
|
32
|
+
"~227 tools" → "~231 tools".
|
|
33
|
+
|
|
34
|
+
- **WorkflowTag union expanded to 12 values** (5 Phase 1 + 6 Phase 2 +
|
|
35
|
+
`infrastructure`). 28 tools migrated from `"infrastructure"` to their
|
|
36
|
+
Phase 2 workflow tag (4 audio-upload, 6 enrichment-resolve, 4
|
|
37
|
+
agreement, 4 multimedia, 5 export, 5 claim).
|
|
38
|
+
- **`schema-mirror.json` extended with 6 new tables** for Phase 2
|
|
39
|
+
CHECK-constraint enum resolution (agreements, discovered_artists,
|
|
40
|
+
discovered_credits, discovered_custody, enrichment_proposals,
|
|
41
|
+
multimedia_items). Verified live against prod project
|
|
42
|
+
`fwgcmjhlwevdnxgqmkmh`.
|
|
43
|
+
- **HTTP transport coverage** — `app/api/mcp/route.ts` `UI_RESOURCE_DEFS`
|
|
44
|
+
- `UI_RESOURCE_BODIES` extended with the 6 new schema URIs (matches
|
|
45
|
+
the Phase 1 pattern from PR #152). Per
|
|
46
|
+
`feedback_cross_transport_resource_coverage`.
|
|
47
|
+
|
|
14
48
|
## [2.42.0] - 2026-04-30
|
|
15
49
|
|
|
16
50
|
### Added
|
|
@@ -27,10 +61,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
27
61
|
to each event's `seen_in` array. Idempotent — re-acknowledging is a no-op.
|
|
28
62
|
Org-scoped server-side: out-of-org ids are silently skipped. Empty
|
|
29
63
|
`event_ids` returns a `VALIDATION_ERROR` without hitting the API.
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
`pica_notify_*` families — the agent disambiguates from the descriptions.
|
|
64
|
+
- \*\*Both tools registered in the existing `notifications` taxonomy bucket
|
|
65
|
+
- TOOL*METADATA (`category: "comms"`)\*\* + tagged `workflows: "infrastructure"`
|
|
66
|
+
per ADR-214 W4. Ride alongside the legacy `pica_notifications*_`and`pica*notify*_` families — the agent disambiguates from the descriptions.
|
|
34
67
|
|
|
35
68
|
### Changed
|
|
36
69
|
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
* Edits to this file are linted by scripts/lint-agent-guide.ts: every
|
|
11
11
|
* `pica_*` token must resolve to a real tool in ToolRegistry.
|
|
12
12
|
*/
|
|
13
|
-
export declare const AGENT_GUIDE_AUTHENTICATED = "# pica \u2014 agent guide\n\npica manages a music catalog: works (compositions), recordings (masters),\npeople (writers, performers, publishers), credits, agreements, exports.\nmulti-tenant per organisation; every write is org-scoped automatically.\n\nyou are signed in. ~
|
|
14
|
-
export declare const AGENT_GUIDE_LOBBY = "# pica \u2014 sign in to begin\n\nyou are in lobby mode. three tools are available; the rest unlock after\nsign-in.\n\n## lobby tools\n- `pica_signup_start` \u2014 create a new organisation and get a magic link\n for first-time setup.\n- `pica_sign_in` \u2014 request a magic link for an existing user.\n- `pica_sign_out` \u2014 drop session.\n\n## to sign in\n1. ask the user for an email address.\n2. call `pica_signup_start` (new user) or `pica_sign_in` (returning).\n3. user clicks the magic link. on the next request, the catalog tool\n surface unlocks automatically \u2014 no config to refresh.\n\n## what unlocks after sign-in\n~
|
|
13
|
+
export declare const AGENT_GUIDE_AUTHENTICATED = "# pica \u2014 agent guide\n\npica manages a music catalog: works (compositions), recordings (masters),\npeople (writers, performers, publishers), credits, agreements, exports.\nmulti-tenant per organisation; every write is org-scoped automatically.\n\nyou are signed in. ~231 tools are available. eleven core workflows below\ncover most of the surface; for anything not listed, fall back to\n`pica_discover` (mode: list_categories \u2192 list_tools) \u2192 `pica_tool_details`.\n\n## top workflows\n\n### register a new work\n1. `pica_works_create` \u2014 title required; iswc settable inline.\n2. `pica_credits_update` \u2014 batch; attach writer/composer credits.\n writer_split_percentage values must sum to 100 across all writer rows.\n see `pica://schemas/work-required` and `pica://schemas/work-credits-required`.\n\n### add a recording to an existing work\n- `pica_recordings_create` \u2014 title + artist_name + version_type required\n (version_type defaults to `master`). isrc and duration_ms are inline.\n- see `pica://schemas/recording-required`.\n\n### add audio to a recording\n1. `pica_audio_presigned_upload` \u2014 returns a signed url + token.\n2. uploader (browser, curl, sdk) PUTs the file to that url.\n3. `pica_audio_complete_upload` \u2014 registers the upload in the catalog.\n4. (optional) `pica_audio_analyze` \u2014 async; extracts bpm, key, mood, and\n transcribes lyrics via whisper.\n5. `pica_audio_inspect` (sections: [\"analysis\", \"status\"]) \u2014 poll for\n analysis results when you called step 4.\n- see `pica://schemas/audio-upload-required`.\n\n### add recording credits\n- `pica_recording_credits_update` \u2014 batch. role enum is DISTINCT from\n work credits (MainArtist / FeaturedArtist / Producer / Engineer / etc.).\n- person_id is OPTIONAL \u2014 credits can carry just credited_name when the\n person isn't in the catalog yet.\n- see `pica://schemas/recording-credits-required`.\n\n### enrich existing metadata\n1. `pica_resolve_work` / `pica_resolve_person` / `pica_resolve_recording` \u2014\n tier A identifier matches apply directly; tier B fuzzy matches queue\n as proposals.\n2. `pica_enrichment_proposals_list` \u2014 view pending proposals.\n3. `pica_enrichment_proposal_apply` \u2014 commit a proposal you've reviewed.\n `pica_enrichment_proposal_reject` \u2014 dismiss with content-hash suppression.\n- see `pica://schemas/enrichment-resolve-required`.\n\n### create an agreement\n1. `pica_agreements_create` \u2014 title + agreement_type + other_party_name\n required. prefer counterparty_org_id (FK) over free-text other_party_name.\n2. `pica_agreements_link_work` \u2014 attach works (optional royalty_split per work).\n3. `pica_agreement_templates_render` \u2014 template-driven alternative.\n- see `pica://schemas/agreement-required`.\n\n### add multimedia\n- `pica_multimedia_create` \u2014 title + content_type required.\n- `pica_multimedia_link_youtube` \u2014 YouTube videos (auto-enriched).\n- `pica_multimedia_import_url` \u2014 external image / video URL (downloads\n into PICA storage).\n- `pica_multimedia_link_work` \u2014 attach to a work (relationship_type required).\n- see `pica://schemas/multimedia-required`.\n\n### export the catalog\n- one of: `pica_export_catalog_csv` (broadest, ungated) /\n `pica_export_song_registration` (CWR for PRO/CMO) /\n `pica_export_industry_ready` (publisher / label / sync) /\n `pica_export_catalog_asset_report` (CAR \u2014 finance / insurance / diligence) /\n `pica_export_ai_consent` (AI-consent matrix).\n- see `pica://schemas/export-required` for which export matches which destination.\n\n### claim a discovery\n1. `pica_discoveries_query` \u2014 list pending; row carries\n `type: 'credit' | 'custody' | 'artist'`.\n2. typed claim: `pica_claim_credit` / `pica_claim_custody` /\n `pica_claim_artist`. or `pica_discoveries_review` for generic accept/reject.\n- see `pica://schemas/claim-required`.\n\n## common gotchas\n\n- **duration units differ.** `works.duration_seconds` (integer seconds);\n `recordings.duration_ms` (integer milliseconds);\n `audio_files.duration_seconds` (seconds again).\n- **no standalone identifier-assign tool.** iswc, isrc, ipi/pro/etc.\n are all inline on the entity create/update \u2014 no separate tool family.\n- **two write surfaces for collaborators.** `pica_credits_update` is\n canonical for work splits; `pica_recording_credits_update` is the\n recording-side variant with a different role enum (MainArtist /\n FeaturedArtist / Producer / etc.). don't cross them.\n- **people identifiers \u2014 treat as one inline surface.** see\n `pica://schemas/person-required` for the full set (ipi / ipn / prs / ppl /\n pro / mcps / isni / musicbrainz / wikidata / discogs / imdb / viaf / deezer).\n- **audio analysis is async + explicit.** `pica_audio_complete_upload`\n does NOT auto-trigger analysis. call `pica_audio_analyze` and poll.\n- **lyrics from analysis don't auto-write back to `works.lyrics`.**\n whisper transcripts land on the analysis row; copy is a separate step.\n- **org scoping + duplicate prevention.** writes are org-scoped; iswc\n and isrc duplicates are blocked at write.\n\n## schema resources (pre-flight before each workflow)\n\n- `pica://schemas/work-required` \u2014 backs `pica_works_create`.\n- `pica://schemas/recording-required` \u2014 backs `pica_recordings_create`.\n- `pica://schemas/work-credits-required` \u2014 backs `pica_credits_update`.\n- `pica://schemas/recording-credits-required` \u2014 backs `pica_recording_credits_update`.\n- `pica://schemas/person-required` \u2014 backs `pica_people_create`.\n- `pica://schemas/audio-upload-required` \u2014 3-step audio chain.\n- `pica://schemas/enrichment-resolve-required` \u2014 resolve \u2192 proposals chain.\n- `pica://schemas/agreement-required` \u2014 backs `pica_agreements_create`.\n- `pica://schemas/multimedia-required` \u2014 backs `pica_multimedia_create`.\n- `pica://schemas/export-required` \u2014 five export destinations.\n- `pica://schemas/claim-required` \u2014 three discovery claim verbs.\n\neach schema returns a json contract: required fields, recommended fields,\nCHECK enum values, companion-call orchestration, and an example payload.\n";
|
|
14
|
+
export declare const AGENT_GUIDE_LOBBY = "# pica \u2014 sign in to begin\n\nyou are in lobby mode. three tools are available; the rest unlock after\nsign-in.\n\n## lobby tools\n- `pica_signup_start` \u2014 create a new organisation and get a magic link\n for first-time setup.\n- `pica_sign_in` \u2014 request a magic link for an existing user.\n- `pica_sign_out` \u2014 drop session.\n\n## to sign in\n1. ask the user for an email address.\n2. call `pica_signup_start` (new user) or `pica_sign_in` (returning).\n3. user clicks the magic link. on the next request, the catalog tool\n surface unlocks automatically \u2014 no config to refresh.\n\n## what unlocks after sign-in\n~231 tools across catalog (works, recordings, people, credits),\nenrichment, exports, agreements, multimedia, analytics, and audio.\neleven required-fields schema resources at `pica://schemas/<workflow>-required`.\nthe full agent-guide replaces this lobby content.\n";
|
|
15
15
|
//# sourceMappingURL=agent-guide.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-guide.d.ts","sourceRoot":"","sources":["../../src/resources/agent-guide.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"agent-guide.d.ts","sourceRoot":"","sources":["../../src/resources/agent-guide.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,yBAAyB,2lMAoHrC,CAAC;AAEF,eAAO,MAAM,iBAAiB,64BAsB7B,CAAC"}
|
|
@@ -17,7 +17,7 @@ pica manages a music catalog: works (compositions), recordings (masters),
|
|
|
17
17
|
people (writers, performers, publishers), credits, agreements, exports.
|
|
18
18
|
multi-tenant per organisation; every write is org-scoped automatically.
|
|
19
19
|
|
|
20
|
-
you are signed in. ~
|
|
20
|
+
you are signed in. ~231 tools are available. eleven core workflows below
|
|
21
21
|
cover most of the surface; for anything not listed, fall back to
|
|
22
22
|
\`pica_discover\` (mode: list_categories → list_tools) → \`pica_tool_details\`.
|
|
23
23
|
|
|
@@ -42,6 +42,7 @@ cover most of the surface; for anything not listed, fall back to
|
|
|
42
42
|
transcribes lyrics via whisper.
|
|
43
43
|
5. \`pica_audio_inspect\` (sections: ["analysis", "status"]) — poll for
|
|
44
44
|
analysis results when you called step 4.
|
|
45
|
+
- see \`pica://schemas/audio-upload-required\`.
|
|
45
46
|
|
|
46
47
|
### add recording credits
|
|
47
48
|
- \`pica_recording_credits_update\` — batch. role enum is DISTINCT from
|
|
@@ -56,32 +57,59 @@ cover most of the surface; for anything not listed, fall back to
|
|
|
56
57
|
as proposals.
|
|
57
58
|
2. \`pica_enrichment_proposals_list\` — view pending proposals.
|
|
58
59
|
3. \`pica_enrichment_proposal_apply\` — commit a proposal you've reviewed.
|
|
60
|
+
\`pica_enrichment_proposal_reject\` — dismiss with content-hash suppression.
|
|
61
|
+
- see \`pica://schemas/enrichment-resolve-required\`.
|
|
62
|
+
|
|
63
|
+
### create an agreement
|
|
64
|
+
1. \`pica_agreements_create\` — title + agreement_type + other_party_name
|
|
65
|
+
required. prefer counterparty_org_id (FK) over free-text other_party_name.
|
|
66
|
+
2. \`pica_agreements_link_work\` — attach works (optional royalty_split per work).
|
|
67
|
+
3. \`pica_agreement_templates_render\` — template-driven alternative.
|
|
68
|
+
- see \`pica://schemas/agreement-required\`.
|
|
69
|
+
|
|
70
|
+
### add multimedia
|
|
71
|
+
- \`pica_multimedia_create\` — title + content_type required.
|
|
72
|
+
- \`pica_multimedia_link_youtube\` — YouTube videos (auto-enriched).
|
|
73
|
+
- \`pica_multimedia_import_url\` — external image / video URL (downloads
|
|
74
|
+
into PICA storage).
|
|
75
|
+
- \`pica_multimedia_link_work\` — attach to a work (relationship_type required).
|
|
76
|
+
- see \`pica://schemas/multimedia-required\`.
|
|
77
|
+
|
|
78
|
+
### export the catalog
|
|
79
|
+
- one of: \`pica_export_catalog_csv\` (broadest, ungated) /
|
|
80
|
+
\`pica_export_song_registration\` (CWR for PRO/CMO) /
|
|
81
|
+
\`pica_export_industry_ready\` (publisher / label / sync) /
|
|
82
|
+
\`pica_export_catalog_asset_report\` (CAR — finance / insurance / diligence) /
|
|
83
|
+
\`pica_export_ai_consent\` (AI-consent matrix).
|
|
84
|
+
- see \`pica://schemas/export-required\` for which export matches which destination.
|
|
85
|
+
|
|
86
|
+
### claim a discovery
|
|
87
|
+
1. \`pica_discoveries_query\` — list pending; row carries
|
|
88
|
+
\`type: 'credit' | 'custody' | 'artist'\`.
|
|
89
|
+
2. typed claim: \`pica_claim_credit\` / \`pica_claim_custody\` /
|
|
90
|
+
\`pica_claim_artist\`. or \`pica_discoveries_review\` for generic accept/reject.
|
|
91
|
+
- see \`pica://schemas/claim-required\`.
|
|
59
92
|
|
|
60
93
|
## common gotchas
|
|
61
94
|
|
|
62
95
|
- **duration units differ.** \`works.duration_seconds\` (integer seconds);
|
|
63
96
|
\`recordings.duration_ms\` (integer milliseconds);
|
|
64
97
|
\`audio_files.duration_seconds\` (seconds again).
|
|
65
|
-
- **no standalone identifier-assign tool.** iswc
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
for
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
-
|
|
73
|
-
|
|
74
|
-
- **people identifier sprawl.** inline columns: \`cae_ipi_number\`,
|
|
75
|
-
\`ipn_number\`, \`prs_number\`, \`ppl_number\`, \`pro_member_number\`,
|
|
76
|
-
\`mcps_member_number\`. satellite (settable through the same create/update
|
|
77
|
-
call): \`isni\`, \`musicbrainz_id\`, \`wikidata_id\`, \`discogs_artist_id\`,
|
|
78
|
-
\`imdb_id\`, \`viaf_id\`, \`deezer_artist_id\`. treat as one inline surface.
|
|
98
|
+
- **no standalone identifier-assign tool.** iswc, isrc, ipi/pro/etc.
|
|
99
|
+
are all inline on the entity create/update — no separate tool family.
|
|
100
|
+
- **two write surfaces for collaborators.** \`pica_credits_update\` is
|
|
101
|
+
canonical for work splits; \`pica_recording_credits_update\` is the
|
|
102
|
+
recording-side variant with a different role enum (MainArtist /
|
|
103
|
+
FeaturedArtist / Producer / etc.). don't cross them.
|
|
104
|
+
- **people identifiers — treat as one inline surface.** see
|
|
105
|
+
\`pica://schemas/person-required\` for the full set (ipi / ipn / prs / ppl /
|
|
106
|
+
pro / mcps / isni / musicbrainz / wikidata / discogs / imdb / viaf / deezer).
|
|
79
107
|
- **audio analysis is async + explicit.** \`pica_audio_complete_upload\`
|
|
80
108
|
does NOT auto-trigger analysis. call \`pica_audio_analyze\` and poll.
|
|
81
109
|
- **lyrics from analysis don't auto-write back to \`works.lyrics\`.**
|
|
82
110
|
whisper transcripts land on the analysis row; copy is a separate step.
|
|
83
|
-
- **org scoping + duplicate prevention.**
|
|
84
|
-
|
|
111
|
+
- **org scoping + duplicate prevention.** writes are org-scoped; iswc
|
|
112
|
+
and isrc duplicates are blocked at write.
|
|
85
113
|
|
|
86
114
|
## schema resources (pre-flight before each workflow)
|
|
87
115
|
|
|
@@ -90,6 +118,12 @@ cover most of the surface; for anything not listed, fall back to
|
|
|
90
118
|
- \`pica://schemas/work-credits-required\` — backs \`pica_credits_update\`.
|
|
91
119
|
- \`pica://schemas/recording-credits-required\` — backs \`pica_recording_credits_update\`.
|
|
92
120
|
- \`pica://schemas/person-required\` — backs \`pica_people_create\`.
|
|
121
|
+
- \`pica://schemas/audio-upload-required\` — 3-step audio chain.
|
|
122
|
+
- \`pica://schemas/enrichment-resolve-required\` — resolve → proposals chain.
|
|
123
|
+
- \`pica://schemas/agreement-required\` — backs \`pica_agreements_create\`.
|
|
124
|
+
- \`pica://schemas/multimedia-required\` — backs \`pica_multimedia_create\`.
|
|
125
|
+
- \`pica://schemas/export-required\` — five export destinations.
|
|
126
|
+
- \`pica://schemas/claim-required\` — three discovery claim verbs.
|
|
93
127
|
|
|
94
128
|
each schema returns a json contract: required fields, recommended fields,
|
|
95
129
|
CHECK enum values, companion-call orchestration, and an example payload.
|
|
@@ -112,9 +146,9 @@ sign-in.
|
|
|
112
146
|
surface unlocks automatically — no config to refresh.
|
|
113
147
|
|
|
114
148
|
## what unlocks after sign-in
|
|
115
|
-
~
|
|
116
|
-
enrichment, exports, agreements, multimedia, analytics, and audio.
|
|
117
|
-
required-fields schema resources at \`pica://schemas/<workflow>-required\`.
|
|
149
|
+
~231 tools across catalog (works, recordings, people, credits),
|
|
150
|
+
enrichment, exports, agreements, multimedia, analytics, and audio.
|
|
151
|
+
eleven required-fields schema resources at \`pica://schemas/<workflow>-required\`.
|
|
118
152
|
the full agent-guide replaces this lobby content.
|
|
119
153
|
`;
|
|
120
154
|
//# sourceMappingURL=agent-guide.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-guide.js","sourceRoot":"","sources":["../../src/resources/agent-guide.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAE7D;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG
|
|
1
|
+
{"version":3,"file":"agent-guide.js","sourceRoot":"","sources":["../../src/resources/agent-guide.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAE7D;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHxC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsBhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAU/C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAM5C,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,KAAK,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC,CAAC;CACJ;AAED,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC;AAEjC,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,IAAI,CAAoB;IAChC,OAAO,CAAC,MAAM,CAAC,CAAe;gBAElB,IAAI,EAAE,UAAU,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,YAAY;IAK1D;;OAEG;IACH,aAAa,IAAI,kBAAkB,EAAE;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAU/C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAM5C,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,KAAK,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC,CAAC;CACJ;AAED,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC;AAEjC,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,IAAI,CAAoB;IAChC,OAAO,CAAC,MAAM,CAAC,CAAe;gBAElB,IAAI,EAAE,UAAU,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,YAAY;IAK1D;;OAEG;IACH,aAAa,IAAI,kBAAkB,EAAE;IAyLrC;;OAEG;IACG,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAsJ7C;;OAEG;IACH,OAAO,CAAC,cAAc;IA6BtB;;OAEG;YACW,YAAY;IA4B1B;;OAEG;YACW,aAAa;IA4B3B;;OAEG;YACW,iBAAiB;IA2B/B;;OAEG;YACW,eAAe;IAoD7B;;OAEG;YACW,gBAAgB;IAc9B;;OAEG;YACW,mBAAmB;IAcjC;;OAEG;YACW,eAAe;CAa9B"}
|
package/dist/resources/index.js
CHANGED
|
@@ -123,6 +123,36 @@ export class ResourceRegistry {
|
|
|
123
123
|
name: "Required Fields — Register a Person",
|
|
124
124
|
description: "Required + recommended fields for pica_people_create (writers, performers, publishers; identifiers settable inline).",
|
|
125
125
|
mimeType: "application/json",
|
|
126
|
+
}, {
|
|
127
|
+
uri: "pica://schemas/audio-upload-required",
|
|
128
|
+
name: "Required Fields — Upload Audio (3-Step Chain)",
|
|
129
|
+
description: "Required fields per step of the audio-upload chain (pica_audio_presigned_upload → pica_audio_complete_upload → pica_audio_analyze + poll), plus audio_files file_type / classification CHECK enums.",
|
|
130
|
+
mimeType: "application/json",
|
|
131
|
+
}, {
|
|
132
|
+
uri: "pica://schemas/enrichment-resolve-required",
|
|
133
|
+
name: "Required Fields — Run Enrichment",
|
|
134
|
+
description: "Required fields for pica_resolve_work / _person / _recording and the proposals review chain (list → apply / reject). Includes enrichment_proposals entity_type / status / proposal_action enums.",
|
|
135
|
+
mimeType: "application/json",
|
|
136
|
+
}, {
|
|
137
|
+
uri: "pica://schemas/agreement-required",
|
|
138
|
+
name: "Required Fields — Create an Agreement",
|
|
139
|
+
description: "Required + recommended fields for pica_agreements_create plus link-work and template-render companions. Includes agreements agreement_type / status / other_party_type CHECK enums.",
|
|
140
|
+
mimeType: "application/json",
|
|
141
|
+
}, {
|
|
142
|
+
uri: "pica://schemas/multimedia-required",
|
|
143
|
+
name: "Required Fields — Add Multimedia",
|
|
144
|
+
description: "Required fields for pica_multimedia_create and the import / YouTube / link-work companions. Includes multimedia_items content_type / classification CHECK enums.",
|
|
145
|
+
mimeType: "application/json",
|
|
146
|
+
}, {
|
|
147
|
+
uri: "pica://schemas/export-required",
|
|
148
|
+
name: "Required Fields — Export the Catalog",
|
|
149
|
+
description: "Five export destinations (CSV, song-registration, industry-ready, CAR, AI-consent) with destination guidance.",
|
|
150
|
+
mimeType: "application/json",
|
|
151
|
+
}, {
|
|
152
|
+
uri: "pica://schemas/claim-required",
|
|
153
|
+
name: "Required Fields — Claim a Discovery",
|
|
154
|
+
description: "Required fields for pica_discoveries_query and the typed claim verbs (credit / custody / artist), plus the generic discoveries_review surface. Includes discovered_credits / _custody / _artists status + match_basis + custody_type CHECK enums.",
|
|
155
|
+
mimeType: "application/json",
|
|
126
156
|
});
|
|
127
157
|
return resources;
|
|
128
158
|
}
|
|
@@ -234,7 +264,13 @@ export class ResourceRegistry {
|
|
|
234
264
|
case "pica://schemas/recording-required":
|
|
235
265
|
case "pica://schemas/work-credits-required":
|
|
236
266
|
case "pica://schemas/recording-credits-required":
|
|
237
|
-
case "pica://schemas/person-required":
|
|
267
|
+
case "pica://schemas/person-required":
|
|
268
|
+
case "pica://schemas/audio-upload-required":
|
|
269
|
+
case "pica://schemas/enrichment-resolve-required":
|
|
270
|
+
case "pica://schemas/agreement-required":
|
|
271
|
+
case "pica://schemas/multimedia-required":
|
|
272
|
+
case "pica://schemas/export-required":
|
|
273
|
+
case "pica://schemas/claim-required": {
|
|
238
274
|
const key = uri.replace("pica://schemas/", "");
|
|
239
275
|
const body = REQUIRED_SCHEMAS[key];
|
|
240
276
|
if (!body)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAS7D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,IAAI,EAAW,MAAM,MAAM,CAAC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAmBjE,MAAM,OAAO,gBAAgB;IACnB,IAAI,CAAoB;IACxB,MAAM,CAAgB;IAE9B,YAAY,IAAuB,EAAE,MAAqB;QACxD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CA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
|
+
readonly workflow: "agreement-required";
|
|
4
|
+
readonly summary: "Required fields to create an agreement, then attach works and (optionally) render from a template.";
|
|
5
|
+
readonly primary_tool: "pica_agreements_create";
|
|
6
|
+
readonly primary_required: readonly ["title", "agreement_type", "other_party_name"];
|
|
7
|
+
readonly primary_recommended: readonly ["id", "other_party_type", "description", "notes", "tags", "agreement_category", "status", "signing_date", "start_date", "end_date", "expires_at", "renewal_date", "termination_date", "counterparty_org_id", "counterparty_email", "advance_amount", "advance_currency", "is_recoupable", "financial_terms", "agreement_terms", "termination_notice_period_days", "include_future_works"];
|
|
8
|
+
readonly enums: {
|
|
9
|
+
readonly agreement_type: readonly ["admin_only", "artist_contract", "co_publishing", "distribution", "library_music", "master_recording", "other", "production", "publishing_admin", "report", "sub_publishing", "termination"];
|
|
10
|
+
readonly other_party_type: readonly ["artist", "individual", "label", "music_library", "other", "production_company", "publisher"];
|
|
11
|
+
readonly status: readonly ["active", "cancelled", "completed", "draft", "expired", "fully_executed", "partially_signed", "pending_signature", "terminated", "unknown"];
|
|
12
|
+
};
|
|
13
|
+
readonly companion_calls: readonly [{
|
|
14
|
+
readonly tool: "pica_agreements_update";
|
|
15
|
+
readonly when: "After creation — to amend any inline field. Status changes trigger notifications; counterparty_org_id changes require the linked-org check at the route layer.";
|
|
16
|
+
readonly required: readonly ["id"];
|
|
17
|
+
}, {
|
|
18
|
+
readonly tool: "pica_agreements_link_work";
|
|
19
|
+
readonly when: "Attach a work to the agreement. Optionally set a royalty split percentage per work.";
|
|
20
|
+
readonly required: readonly ["agreement_id", "work_id"];
|
|
21
|
+
}, {
|
|
22
|
+
readonly tool: "pica_agreement_templates_render";
|
|
23
|
+
readonly when: "Template-driven flow — fill an agreement template with catalog data (work_id + people_ids) before creating the agreement row.";
|
|
24
|
+
readonly required: readonly ["id"];
|
|
25
|
+
}];
|
|
26
|
+
readonly example: {
|
|
27
|
+
readonly title: "Songwriter Admin Deal — Midnight Rivers";
|
|
28
|
+
readonly agreement_type: "publishing_admin";
|
|
29
|
+
readonly other_party_name: "Indigo Music Publishing Ltd.";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly "audio-upload-required": {
|
|
33
|
+
readonly workflow: "audio-upload-required";
|
|
34
|
+
readonly summary: "Three-step chain to add an audio master / stem / version to the catalog: presign → PUT → finalize, then optional async analyze + poll.";
|
|
35
|
+
readonly primary_tool: "pica_audio_presigned_upload";
|
|
36
|
+
readonly primary_required: readonly ["filename", "content_type", "file_size"];
|
|
37
|
+
readonly primary_recommended: readonly ["work_id", "title", "file_type"];
|
|
38
|
+
readonly enums: {
|
|
39
|
+
readonly file_type: readonly ["demo", "instrumental", "master", "stem", "version"];
|
|
40
|
+
readonly classification: readonly ["composition", "demo", "drum_pack", "loop", "other", "released_song", "sample", "stem", "unreleased_song"];
|
|
41
|
+
};
|
|
42
|
+
readonly companion_calls: readonly [{
|
|
43
|
+
readonly tool: "pica_audio_complete_upload";
|
|
44
|
+
readonly when: "Step 2 — after the uploader PUTs the file to the signed URL returned by step 1. Finalizes the upload, writes the audio_files row, and (optionally) links or auto-creates a recording for master files.";
|
|
45
|
+
readonly required: readonly ["upload_id", "key", "bucket", "filename", "content_type", "file_size"];
|
|
46
|
+
}, {
|
|
47
|
+
readonly tool: "pica_audio_analyze";
|
|
48
|
+
readonly when: "Step 3 (optional, async). Triggers BPM / key / mood feature extraction (Librosa) and lyrics transcription (Whisper). Each side bills 1 credit. Does not auto-run on complete_upload — explicit call required.";
|
|
49
|
+
readonly required: readonly ["id"];
|
|
50
|
+
}, {
|
|
51
|
+
readonly tool: "pica_audio_inspect";
|
|
52
|
+
readonly when: "Step 4 (poll). Call with sections: ['analysis', 'status'] until the analysis job reports complete. Lyrics transcripts land on the analysis row, not works.lyrics — copy is a separate step.";
|
|
53
|
+
readonly required: readonly ["id"];
|
|
54
|
+
}];
|
|
55
|
+
readonly example: {
|
|
56
|
+
readonly filename: "midnight-rivers-master.wav";
|
|
57
|
+
readonly content_type: "audio/wav";
|
|
58
|
+
readonly file_size: 48234567;
|
|
59
|
+
readonly work_id: "<optional uuid — auto-creates a recording for master files>";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
readonly "claim-required": {
|
|
63
|
+
readonly workflow: "claim-required";
|
|
64
|
+
readonly summary: "Resolve pending discoveries (credits, custody, artist links) into your catalog. Each discovery type has a typed claim verb; the generic discoveries_review surface accepts/rejects without specialised handling.";
|
|
65
|
+
readonly primary_tool: "pica_discoveries_query";
|
|
66
|
+
readonly primary_required: readonly [];
|
|
67
|
+
readonly primary_recommended: readonly ["status", "limit"];
|
|
68
|
+
readonly enums: {
|
|
69
|
+
readonly status: readonly ["expired", "pending", "resolved", "revoked"];
|
|
70
|
+
readonly match_basis: readonly ["email", "ipi", "ipn", "isni", "musicbrainz"];
|
|
71
|
+
readonly custody_type: readonly ["composition", "master"];
|
|
72
|
+
};
|
|
73
|
+
readonly companion_calls: readonly [{
|
|
74
|
+
readonly tool: "pica_discoveries_review";
|
|
75
|
+
readonly when: "Generic accept/reject for any discovery row — accepted discoveries update your catalog automatically. Use for non-credit / non-custody / non-artist discoveries, or when the typed claim tools refuse on rate-limit / state preconditions.";
|
|
76
|
+
readonly required: readonly ["discovery_id", "status"];
|
|
77
|
+
}, {
|
|
78
|
+
readonly tool: "pica_claim_credit";
|
|
79
|
+
readonly when: "Drain a discovered_credits row and insert a work_credits row in your catalog. Rate-limited to 20 claims/hour. Re-claiming an already-resolved row returns DISCOVERY_ALREADY_RESOLVED (409).";
|
|
80
|
+
readonly required: readonly ["id"];
|
|
81
|
+
}, {
|
|
82
|
+
readonly tool: "pica_claim_custody";
|
|
83
|
+
readonly when: "Drain a discovered_custody row into a pending custody_claims row with +72h silent-consent auto-approve. The current custodian keeps the catalog row until the window elapses.";
|
|
84
|
+
readonly required: readonly ["id"];
|
|
85
|
+
}, {
|
|
86
|
+
readonly tool: "pica_claim_artist";
|
|
87
|
+
readonly when: "Drain a discovered_artists row instantly (identity evidence already validated at discovery time). Requires your identity to already be linked via pica_update_my_identity. Refuses (409) when an open artist_claims review row exists.";
|
|
88
|
+
readonly required: readonly ["id"];
|
|
89
|
+
}];
|
|
90
|
+
readonly example: {
|
|
91
|
+
readonly status: "pending";
|
|
92
|
+
readonly limit: 50;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly "enrichment-resolve-required": {
|
|
96
|
+
readonly workflow: "enrichment-resolve-required";
|
|
97
|
+
readonly summary: "Fan out enrichment across every eligible source for an entity (work / recording / person), then review fuzzy Tier B matches in the proposals queue. Tier A identifier matches apply directly; Tier B fuzzy matches queue as proposals.";
|
|
98
|
+
readonly primary_tool: "pica_resolve_work";
|
|
99
|
+
readonly primary_required: readonly ["work_id"];
|
|
100
|
+
readonly primary_recommended: readonly ["sources", "include_fuzzy"];
|
|
101
|
+
readonly enums: {
|
|
102
|
+
readonly status: readonly ["applied", "expired", "pending", "rejected"];
|
|
103
|
+
readonly entity_type: readonly ["person", "recording", "work"];
|
|
104
|
+
readonly proposal_action: readonly ["create", "update"];
|
|
105
|
+
};
|
|
106
|
+
readonly companion_calls: readonly [{
|
|
107
|
+
readonly tool: "pica_resolve_recording";
|
|
108
|
+
readonly when: "Recording-side variant. Fans out across Spotify, YouTube, MusicBrainz, Discogs. Triggered by spotify_track_uri / youtube_video_id on the recording.";
|
|
109
|
+
readonly required: readonly ["recording_id"];
|
|
110
|
+
}, {
|
|
111
|
+
readonly tool: "pica_resolve_person";
|
|
112
|
+
readonly when: "Person-side variant. Fans out across ISNI and MusicBrainz (Wikidata downstream). Triggered by isni / musicbrainz_id on the person.";
|
|
113
|
+
readonly required: readonly ["person_id"];
|
|
114
|
+
}, {
|
|
115
|
+
readonly tool: "pica_enrichment_proposals_list";
|
|
116
|
+
readonly when: "After resolve — list pending Tier B fuzzy matches awaiting review. Only pending status is returned.";
|
|
117
|
+
readonly required: readonly [];
|
|
118
|
+
}, {
|
|
119
|
+
readonly tool: "pica_enrichment_proposal_apply";
|
|
120
|
+
readonly when: "Commit a reviewed proposal. Drift detection runs first on update proposals — pass force=true only after the user has reviewed any conflicts from a prior drift_detected response.";
|
|
121
|
+
readonly required: readonly ["proposal_id"];
|
|
122
|
+
}, {
|
|
123
|
+
readonly tool: "pica_enrichment_proposal_reject";
|
|
124
|
+
readonly when: "Dismiss a proposal. Content-hash suppression permanently blocks re-proposal of the same exact content; cascade only re-proposes if the source data genuinely changes.";
|
|
125
|
+
readonly required: readonly ["proposal_id"];
|
|
126
|
+
}];
|
|
127
|
+
readonly example: {
|
|
128
|
+
readonly work_id: "<uuid>";
|
|
129
|
+
readonly sources: readonly ["mlc", "spotify"];
|
|
130
|
+
readonly include_fuzzy: true;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
readonly "export-required": {
|
|
134
|
+
readonly workflow: "export-required";
|
|
135
|
+
readonly summary: "Generate exports of the works catalog in formats matching the destination — CSV/JSON for general use, CWR for PRO registration, industry-ready packages for publishers/labels/sync, CAR for diligence and finance, AI-consent for declaration matrices.";
|
|
136
|
+
readonly primary_tool: "pica_export_catalog_csv";
|
|
137
|
+
readonly primary_required: readonly [];
|
|
138
|
+
readonly primary_recommended: readonly ["format"];
|
|
139
|
+
readonly enums: {};
|
|
140
|
+
readonly companion_calls: readonly [{
|
|
141
|
+
readonly tool: "pica_export_song_registration";
|
|
142
|
+
readonly when: "CWR-compatible song-registration export, formatted for PRO/CMO submission. Billing-gated.";
|
|
143
|
+
readonly required: readonly [];
|
|
144
|
+
}, {
|
|
145
|
+
readonly tool: "pica_export_industry_ready";
|
|
146
|
+
readonly when: "Industry-ready metadata package — formatted for distribution to publishers, labels, and sync agents. Billing-gated.";
|
|
147
|
+
readonly required: readonly [];
|
|
148
|
+
}, {
|
|
149
|
+
readonly tool: "pica_export_catalog_asset_report";
|
|
150
|
+
readonly when: "Catalog Asset Report (CAR) — unified ZIP bundle with cover PDF, evidence folders, integrity manifest. Property-lending framing for finance / insurance / diligence. Nested `sections` object accepts boolean flags: valuation, assets, agreements, intelligence, audio. Ownership is always included. Billing-gated.";
|
|
151
|
+
readonly required: readonly [];
|
|
152
|
+
}, {
|
|
153
|
+
readonly tool: "pica_export_ai_consent";
|
|
154
|
+
readonly when: "AI-usage consent declaration matrix — per-work + per-contributor declarations of human-made / AI-assisted / AI-generated.";
|
|
155
|
+
readonly required: readonly [];
|
|
156
|
+
}];
|
|
157
|
+
readonly example: {
|
|
158
|
+
readonly format: "csv";
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
readonly "multimedia-required": {
|
|
162
|
+
readonly workflow: "multimedia-required";
|
|
163
|
+
readonly summary: "Required fields to register a multimedia item (photo / video / audio / external streaming link), and the patterns for importing or attaching to a work.";
|
|
164
|
+
readonly primary_tool: "pica_multimedia_create";
|
|
165
|
+
readonly primary_required: readonly ["title", "content_type"];
|
|
166
|
+
readonly primary_recommended: readonly ["url", "classification", "caption", "description", "tags", "credits", "duration_seconds", "collection_id", "display_order", "is_featured", "is_published", "venue", "event_name", "performance_date", "setlist_position", "sync_side", "spotify_url", "spotify_track_uri", "spotify_track_id", "youtube_url", "youtube_video_id", "soundcloud_url", "thumbnail_url"];
|
|
167
|
+
readonly enums: {
|
|
168
|
+
readonly content_type: readonly ["live_performance", "soundcloud_track", "spotify_track", "uploaded_audio", "uploaded_photo", "uploaded_video", "youtube_video"];
|
|
169
|
+
readonly classification: readonly ["album_artwork", "artist_showcase", "behind_the_scenes", "general", "live_performance", "music_video", "promo_material", "studio_session", "sync_placement"];
|
|
170
|
+
};
|
|
171
|
+
readonly companion_calls: readonly [{
|
|
172
|
+
readonly tool: "pica_multimedia_import_url";
|
|
173
|
+
readonly when: "Import an external image or video URL — downloads the file into PICA storage rather than referencing it externally. Use for Spotify artwork, web images, etc.";
|
|
174
|
+
readonly required: readonly ["url"];
|
|
175
|
+
}, {
|
|
176
|
+
readonly tool: "pica_multimedia_link_youtube";
|
|
177
|
+
readonly when: "YouTube-specific variant — pulls thumbnail, title, and view count automatically. Use this instead of pica_multimedia_create for YouTube videos.";
|
|
178
|
+
readonly required: readonly ["youtube_video_id", "title"];
|
|
179
|
+
}, {
|
|
180
|
+
readonly tool: "pica_multimedia_link_work";
|
|
181
|
+
readonly when: "Attach an existing multimedia item to a work with a typed relationship (music_video_for, sync_placement, album_artwork, etc.).";
|
|
182
|
+
readonly required: readonly ["multimedia_id", "work_id", "relationship_type"];
|
|
183
|
+
}];
|
|
184
|
+
readonly example: {
|
|
185
|
+
readonly title: "Midnight Rivers — Official Music Video";
|
|
186
|
+
readonly content_type: "youtube_video";
|
|
187
|
+
readonly url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ";
|
|
188
|
+
};
|
|
189
|
+
};
|
|
2
190
|
readonly "person-required": {
|
|
3
191
|
readonly workflow: "person-required";
|
|
4
192
|
readonly summary: "Required fields to register a person (writer, performer, producer, publisher). Identifiers (IPI / ISNI / PRO / MusicBrainz / etc.) are inline-settable at create time.";
|
|
@@ -31,15 +219,9 @@ export declare const REQUIRED_SCHEMAS: {
|
|
|
31
219
|
readonly companion_calls: readonly [];
|
|
32
220
|
readonly example: {
|
|
33
221
|
readonly recording_id: "<uuid>";
|
|
34
|
-
readonly
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
readonly display_order: 0;
|
|
38
|
-
}, {
|
|
39
|
-
readonly credited_name: "Sam Producer";
|
|
40
|
-
readonly role: "Producer";
|
|
41
|
-
readonly display_order: 1;
|
|
42
|
-
}];
|
|
222
|
+
readonly credited_name: "The Riverbed Trio";
|
|
223
|
+
readonly role: "MainArtist";
|
|
224
|
+
readonly person_id: "<uuid>";
|
|
43
225
|
};
|
|
44
226
|
};
|
|
45
227
|
readonly "recording-required": {
|
|
@@ -53,9 +235,8 @@ export declare const REQUIRED_SCHEMAS: {
|
|
|
53
235
|
};
|
|
54
236
|
readonly companion_calls: readonly [{
|
|
55
237
|
readonly tool: "pica_recording_credits_update";
|
|
56
|
-
readonly when: "
|
|
57
|
-
readonly required: readonly ["recording_id", "
|
|
58
|
-
readonly per_row_required: readonly ["credited_name", "role", "display_order"];
|
|
238
|
+
readonly when: "Per credit — attach a single MainArtist / Producer / Engineer credit. Call once per person; does NOT take a credits[] batch (asymmetric with pica_credits_update for works).";
|
|
239
|
+
readonly required: readonly ["recording_id", "credited_name", "role"];
|
|
59
240
|
}, {
|
|
60
241
|
readonly tool: "pica_recordings_update";
|
|
61
242
|
readonly when: "After creation — to amend recording_title, artist_name, version_type, isrc, duration_ms, or any other inline field. Same payload shape as create plus `id`.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"required-schemas.generated.d.ts","sourceRoot":"","sources":["../../src/resources/required-schemas.generated.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"required-schemas.generated.d.ts","sourceRoot":"","sources":["../../src/resources/required-schemas.generated.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8uBnB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,gBAAgB,CAAC"}
|