@withpica/mcp-sdk 4.5.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 +7 -0
- package/dist/index.d.ts +28 -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,13 @@ 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
|
+
|
|
14
21
|
## [4.5.0] - 2026-11-04
|
|
15
22
|
|
|
16
23
|
### 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,12 +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;
|
|
6359
6379
|
/** Failed approvals only: why it did not run, in plain words. */
|
|
6360
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>;
|
|
6361
6387
|
/** Batched merge approvals only, once run: per-outcome counts. */
|
|
6362
6388
|
summary?: {
|
|
6363
6389
|
total: number;
|
|
@@ -6463,6 +6489,7 @@ export declare class PicaClient {
|
|
|
6463
6489
|
telegram: TelegramResource;
|
|
6464
6490
|
gdpr: GdprResource;
|
|
6465
6491
|
onboarding: OnboardingResource;
|
|
6492
|
+
exampleSong: ExampleSongResource;
|
|
6466
6493
|
agentIntroductions: AgentIntroductionsResource;
|
|
6467
6494
|
workflowOutcomes: WorkflowOutcomesResource;
|
|
6468
6495
|
feedback: FeedbackResource;
|