@withpica/mcp-sdk 4.4.0 → 4.6.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 +14 -0
- package/dist/index.d.ts +30 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
|
|
12
12
|
## [Unreleased]
|
|
13
13
|
|
|
14
|
+
## [4.6.0] - 2026-11-06
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- `exampleSong.get()` reads PICA's fixed example song (`GET /api/example-song`).
|
|
19
|
+
- `ImportAnalysis.analysis` declares the optional `warnings`, `confidence`, `detectedDomain` and `estimatedSuccessRate` fields the analyse route already returns.
|
|
20
|
+
|
|
21
|
+
## [4.5.0] - 2026-11-04
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- `ApprovalStatusResult.failure_reason`: on a failed approval, why it did not run, in plain
|
|
26
|
+
words (optional).
|
|
27
|
+
|
|
14
28
|
## [4.4.0] - 2026-11-03
|
|
15
29
|
|
|
16
30
|
### Added
|
package/dist/index.d.ts
CHANGED
|
@@ -3222,6 +3222,21 @@ declare class OnboardingResource extends BaseResource {
|
|
|
3222
3222
|
intent_notes?: string;
|
|
3223
3223
|
}): Promise<AcknowledgeOnboardingResponse>;
|
|
3224
3224
|
}
|
|
3225
|
+
/**
|
|
3226
|
+
* The example song: a made-up, complete song every account can read, marked
|
|
3227
|
+
* `example: true` with a note saying so. It is in no catalogue.
|
|
3228
|
+
*/
|
|
3229
|
+
export interface ExampleSong {
|
|
3230
|
+
example: true;
|
|
3231
|
+
example_note: string;
|
|
3232
|
+
url: string;
|
|
3233
|
+
work: Record<string, unknown>;
|
|
3234
|
+
[key: string]: unknown;
|
|
3235
|
+
}
|
|
3236
|
+
declare class ExampleSongResource extends BaseResource {
|
|
3237
|
+
/** GET /api/example-song — the example song, read-only. */
|
|
3238
|
+
get(): Promise<ExampleSong>;
|
|
3239
|
+
}
|
|
3225
3240
|
export interface IntroduceSelfResponse {
|
|
3226
3241
|
success: boolean;
|
|
3227
3242
|
data: {
|
|
@@ -4053,7 +4068,12 @@ interface ImportAnalysis {
|
|
|
4053
4068
|
aiConfidence?: number;
|
|
4054
4069
|
required?: boolean;
|
|
4055
4070
|
}>;
|
|
4071
|
+
/** Columns left unmatched, duplicates, missing required fields. */
|
|
4072
|
+
warnings?: string[];
|
|
4056
4073
|
suggestions: string[];
|
|
4074
|
+
confidence?: number;
|
|
4075
|
+
detectedDomain?: string;
|
|
4076
|
+
estimatedSuccessRate?: number;
|
|
4057
4077
|
};
|
|
4058
4078
|
}
|
|
4059
4079
|
interface ImportValidation {
|
|
@@ -6352,10 +6372,18 @@ export interface ApprovalStatusResult {
|
|
|
6352
6372
|
status: ApprovalStatusValue;
|
|
6353
6373
|
/** ISO timestamp the owner decided; null while still pending. */
|
|
6354
6374
|
decided_at: string | null;
|
|
6355
|
-
/** Channel the decision arrived through ("email" | "telegram"); null while pending. */
|
|
6375
|
+
/** Channel the decision arrived through ("email" | "telegram" | "in_app"); null while pending. */
|
|
6356
6376
|
decided_via: string | null;
|
|
6357
6377
|
/** ISO timestamp the pending request expires. */
|
|
6358
6378
|
expires_at: string | null;
|
|
6379
|
+
/** Failed approvals only: why it did not run, in plain words. */
|
|
6380
|
+
failure_reason?: string;
|
|
6381
|
+
/**
|
|
6382
|
+
* Executed single approvals only: what ran — ids, counts, flags and short
|
|
6383
|
+
* status words from the executor's result (the rule, agreement or
|
|
6384
|
+
* relationship id; how many were sent, moved or deleted). Never free text.
|
|
6385
|
+
*/
|
|
6386
|
+
result?: Record<string, unknown>;
|
|
6359
6387
|
/** Batched merge approvals only, once run: per-outcome counts. */
|
|
6360
6388
|
summary?: {
|
|
6361
6389
|
total: number;
|
|
@@ -6461,6 +6489,7 @@ export declare class PicaClient {
|
|
|
6461
6489
|
telegram: TelegramResource;
|
|
6462
6490
|
gdpr: GdprResource;
|
|
6463
6491
|
onboarding: OnboardingResource;
|
|
6492
|
+
exampleSong: ExampleSongResource;
|
|
6464
6493
|
agentIntroductions: AgentIntroductionsResource;
|
|
6465
6494
|
workflowOutcomes: WorkflowOutcomesResource;
|
|
6466
6495
|
feedback: FeedbackResource;
|