@simonpeacocks/peacockery-voice-client 0.2.0 → 0.3.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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +204 -2
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1288,6 +1288,93 @@ export interface paths {
1288
1288
  patch?: never;
1289
1289
  trace?: never;
1290
1290
  };
1291
+ "/v1/diarizations": {
1292
+ parameters: {
1293
+ query?: never;
1294
+ header?: never;
1295
+ path?: never;
1296
+ cookie?: never;
1297
+ };
1298
+ get?: never;
1299
+ put?: never;
1300
+ /** Create a standalone speaker-track job */
1301
+ post: {
1302
+ parameters: {
1303
+ query?: never;
1304
+ header?: {
1305
+ "idempotency-key"?: string;
1306
+ };
1307
+ path?: never;
1308
+ cookie?: never;
1309
+ };
1310
+ requestBody: {
1311
+ content: {
1312
+ "application/json": components["schemas"]["DiarizationRequest"];
1313
+ };
1314
+ };
1315
+ responses: {
1316
+ /** @description Existing idempotent job */
1317
+ 200: {
1318
+ headers: {
1319
+ [name: string]: unknown;
1320
+ };
1321
+ content: {
1322
+ "application/json": components["schemas"]["JobView"];
1323
+ };
1324
+ };
1325
+ /** @description Queued diarization */
1326
+ 202: {
1327
+ headers: {
1328
+ [name: string]: unknown;
1329
+ };
1330
+ content: {
1331
+ "application/json": components["schemas"]["JobView"];
1332
+ };
1333
+ };
1334
+ /** @description Invalid request */
1335
+ 400: {
1336
+ headers: {
1337
+ [name: string]: unknown;
1338
+ };
1339
+ content: {
1340
+ "application/json": components["schemas"]["ErrorResponse"];
1341
+ };
1342
+ };
1343
+ /** @description Unauthorized */
1344
+ 401: {
1345
+ headers: {
1346
+ [name: string]: unknown;
1347
+ };
1348
+ content: {
1349
+ "application/json": components["schemas"]["ErrorResponse"];
1350
+ };
1351
+ };
1352
+ /** @description Owned input or linked transcript unavailable */
1353
+ 404: {
1354
+ headers: {
1355
+ [name: string]: unknown;
1356
+ };
1357
+ content: {
1358
+ "application/json": components["schemas"]["ErrorResponse"];
1359
+ };
1360
+ };
1361
+ /** @description Idempotency conflict */
1362
+ 409: {
1363
+ headers: {
1364
+ [name: string]: unknown;
1365
+ };
1366
+ content: {
1367
+ "application/json": components["schemas"]["ErrorResponse"];
1368
+ };
1369
+ };
1370
+ };
1371
+ };
1372
+ delete?: never;
1373
+ options?: never;
1374
+ head?: never;
1375
+ patch?: never;
1376
+ trace?: never;
1377
+ };
1291
1378
  "/v1/jobs/{job_id}": {
1292
1379
  parameters: {
1293
1380
  query?: never;
@@ -1549,6 +1636,64 @@ export interface paths {
1549
1636
  patch?: never;
1550
1637
  trace?: never;
1551
1638
  };
1639
+ "/v1/realtime/sessions/{session_id}/diarizations": {
1640
+ parameters: {
1641
+ query?: never;
1642
+ header?: never;
1643
+ path?: never;
1644
+ cookie?: never;
1645
+ };
1646
+ /** List speaker-track jobs linked to an owned realtime session */
1647
+ get: {
1648
+ parameters: {
1649
+ query?: never;
1650
+ header?: never;
1651
+ path: {
1652
+ session_id: string;
1653
+ };
1654
+ cookie?: never;
1655
+ };
1656
+ requestBody?: never;
1657
+ responses: {
1658
+ /** @description Linked jobs with separate speaker artifacts */
1659
+ 200: {
1660
+ headers: {
1661
+ [name: string]: unknown;
1662
+ };
1663
+ content: {
1664
+ "application/json": {
1665
+ jobs: components["schemas"]["JobView"][];
1666
+ };
1667
+ };
1668
+ };
1669
+ /** @description Unauthorized */
1670
+ 401: {
1671
+ headers: {
1672
+ [name: string]: unknown;
1673
+ };
1674
+ content: {
1675
+ "application/json": components["schemas"]["ErrorResponse"];
1676
+ };
1677
+ };
1678
+ /** @description Session unavailable */
1679
+ 404: {
1680
+ headers: {
1681
+ [name: string]: unknown;
1682
+ };
1683
+ content: {
1684
+ "application/json": components["schemas"]["ErrorResponse"];
1685
+ };
1686
+ };
1687
+ };
1688
+ };
1689
+ put?: never;
1690
+ post?: never;
1691
+ delete?: never;
1692
+ options?: never;
1693
+ head?: never;
1694
+ patch?: never;
1695
+ trace?: never;
1696
+ };
1552
1697
  "/v1/text": {
1553
1698
  parameters: {
1554
1699
  query?: never;
@@ -2080,10 +2225,10 @@ export interface components {
2080
2225
  error_details: components["schemas"]["ProviderFailureDiagnostic"];
2081
2226
  job_id: string;
2082
2227
  /** @enum {string} */
2083
- kind: "transcription";
2228
+ kind: "transcription" | "diarization";
2084
2229
  progress: number;
2085
2230
  queued_at: string | null;
2086
- result: components["schemas"]["TranscriptionArtifact"] | null;
2231
+ result: components["schemas"]["TranscriptionArtifact"] | components["schemas"]["DiarizationArtifact"] | null;
2087
2232
  started_at: string | null;
2088
2233
  /** @enum {string} */
2089
2234
  status: "pending" | "queued" | "running" | "succeeded" | "failed";
@@ -2247,6 +2392,58 @@ export interface components {
2247
2392
  message: string;
2248
2393
  }[];
2249
2394
  };
2395
+ DiarizationArtifact: {
2396
+ /** @enum {string} */
2397
+ artifact_type: "speaker_tracks";
2398
+ /** @enum {string} */
2399
+ attribution: "separate_timeline_requires_alignment";
2400
+ duration_seconds: number;
2401
+ input: {
2402
+ key: string;
2403
+ r2_etag: string;
2404
+ r2_version: string;
2405
+ sha256: string;
2406
+ size_bytes: number;
2407
+ };
2408
+ processing_seconds: number;
2409
+ provenance: {
2410
+ completed_at: string;
2411
+ device: string;
2412
+ job_id: string;
2413
+ /** @enum {string} */
2414
+ model: "nvidia/Nemotron-3-Diarization";
2415
+ model_revision: string;
2416
+ /** @enum {string} */
2417
+ provider: "gmk";
2418
+ provider_job_id: string;
2419
+ /** @enum {string} */
2420
+ revision_source: "deployment_manifest";
2421
+ runtime: string;
2422
+ /** @enum {string} */
2423
+ speaker_origin: "model_activity";
2424
+ };
2425
+ /** @enum {number} */
2426
+ schema_version: 1;
2427
+ segmentation: {
2428
+ /** @enum {number} */
2429
+ minimum_duration_seconds: 0;
2430
+ /** @enum {number} */
2431
+ offset: 0.5;
2432
+ /** @enum {number} */
2433
+ onset: 0.5;
2434
+ /** @enum {number} */
2435
+ padding_seconds: 0;
2436
+ /** @enum {string} */
2437
+ preset: "neutral-0.5";
2438
+ };
2439
+ /** @enum {string} */
2440
+ speaker_identity: "anonymous_recording_local";
2441
+ tracks: {
2442
+ end_seconds: number;
2443
+ speaker: string;
2444
+ start_seconds: number;
2445
+ }[];
2446
+ };
2250
2447
  TranscriptionRequest: {
2251
2448
  asr_model: string;
2252
2449
  diarize?: boolean;
@@ -2263,6 +2460,11 @@ export interface components {
2263
2460
  */
2264
2461
  sync?: boolean;
2265
2462
  };
2463
+ DiarizationRequest: {
2464
+ input_key: string;
2465
+ session_id?: string;
2466
+ transcription_job_id?: string;
2467
+ };
2266
2468
  TextResponse: {
2267
2469
  cache: components["schemas"]["TextCacheStatuses"];
2268
2470
  context: components["schemas"]["TextExecutionContext"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonpeacocks/peacockery-voice-client",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Generated TypeScript client for the Peacockery Voice API",
5
5
  "repository": {
6
6
  "type": "git",