@itphx/synth-sdk 0.10.1 → 0.11.3

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/types.d.ts +2 -6
  2. package/package.json +3 -3
package/dist/types.d.ts CHANGED
@@ -10,10 +10,8 @@
10
10
  import type { EventBinding, EventBindingApiKey, EventBindingApiKeyCreated, EventRouteRule, RouteDecision, Schedule, ScheduleJob, SynthEvent } from '@itphx/synth-shared/types';
11
11
  import type { EventBindingApiKeyCreateRequest, EventBindingApiKeyUpdateRequest, EventBindingInputRequest, EventIngestRequest, EventRouteRuleUpsertRequest, PromptRequest, ScheduleInputRequest, SessionCreateRequest, SessionUpdateRequest } from '@itphx/synth-shared/schemas';
12
12
  export type { EventBinding, EventBindingApiKey, EventBindingApiKeyCreateRequest, EventBindingApiKeyCreated, EventBindingApiKeyUpdateRequest, EventBindingInputRequest, EventIngestRequest, EventRouteRule, EventRouteRuleUpsertRequest, PromptRequest, RouteDecision, Schedule, ScheduleInputRequest, ScheduleJob, SessionCreateRequest, SessionUpdateRequest, SynthEvent, };
13
- /** Тело `POST /sessions` — `engine` имеет серверный default, необязателен. */
14
- export type SessionCreateInput = Omit<SessionCreateRequest, 'engine'> & {
15
- engine?: SessionCreateRequest['engine'];
16
- };
13
+ /** Тело `POST /sessions` — публичный контракт `SessionCreateRequest` из shared. */
14
+ export type SessionCreateInput = SessionCreateRequest;
17
15
  /**
18
16
  * Тело `PATCH /sessions/:id` — публичный контракт `SessionPatch` из
19
17
  * `public-openapi.ts`: shared-`SessionUpdateRequest` + `title`/`mode`/`project_id`.
@@ -71,7 +69,6 @@ export interface SerializedSession {
71
69
  user_id?: string | null;
72
70
  owner_id?: string | null;
73
71
  project_id?: string | null;
74
- engine: 'synth' | 'opencode' | 'cline' | string;
75
72
  messages?: unknown[];
76
73
  pending_messages?: unknown[];
77
74
  pending_count?: number;
@@ -91,7 +88,6 @@ export interface SerializedSession {
91
88
  export interface SessionMessagesResponse {
92
89
  messages: unknown[];
93
90
  session_id: string;
94
- engine: string;
95
91
  }
96
92
  /** Ответ `GET /sessions/:id/status`. */
97
93
  export interface SessionStatusResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itphx/synth-sdk",
3
- "version": "0.10.1",
3
+ "version": "0.11.3",
4
4
  "description": "Типизированный клиент публичного API Synth (ADR-052)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -16,7 +16,7 @@
16
16
  }
17
17
  },
18
18
  "dependencies": {
19
- "@itphx/synth-shared": "0.10.1"
19
+ "@itphx/synth-shared": "0.11.3"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "^22.0.0",
@@ -37,7 +37,7 @@
37
37
  "build": "rm -rf dist && tsc -p tsconfig.build.json",
38
38
  "typecheck": "tsc --noEmit",
39
39
  "lint": "eslint src/",
40
- "test": "vitest run --passWithNoTests",
40
+ "test": "vitest run",
41
41
  "test:watch": "vitest",
42
42
  "clean": "rm -rf dist"
43
43
  }