@itphx/synth-sdk 0.10.1 → 0.12.4
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/dist/types.d.ts +9 -10
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -8,12 +8,10 @@
|
|
|
8
8
|
* контракт LLM-прокси (источник — `public-openapi.ts`).
|
|
9
9
|
*/
|
|
10
10
|
import type { EventBinding, EventBindingApiKey, EventBindingApiKeyCreated, EventRouteRule, RouteDecision, Schedule, ScheduleJob, SynthEvent } from '@itphx/synth-shared/types';
|
|
11
|
-
import type { EventBindingApiKeyCreateRequest, EventBindingApiKeyUpdateRequest, EventBindingInputRequest, EventIngestRequest, EventRouteRuleUpsertRequest, PromptRequest, ScheduleInputRequest, SessionCreateRequest, SessionUpdateRequest } from '@itphx/synth-shared/schemas';
|
|
12
|
-
export type { EventBinding, EventBindingApiKey, EventBindingApiKeyCreateRequest, EventBindingApiKeyCreated, EventBindingApiKeyUpdateRequest, EventBindingInputRequest, EventIngestRequest, EventRouteRule, EventRouteRuleUpsertRequest, PromptRequest, RouteDecision, Schedule, ScheduleInputRequest, ScheduleJob, SessionCreateRequest, SessionUpdateRequest, SynthEvent, };
|
|
13
|
-
/** Тело `POST /sessions` — `
|
|
14
|
-
export type SessionCreateInput =
|
|
15
|
-
engine?: SessionCreateRequest['engine'];
|
|
16
|
-
};
|
|
11
|
+
import type { EventBindingApiKeyCreateRequest, EventBindingApiKeyUpdateRequest, EventBindingInputRequest, EventIngestRequest, EventRouteRuleUpsertRequest, PromptRequest, PromptRequestInput, ScheduleInputRequest, SessionCreateRequest, SessionUpdateRequest } from '@itphx/synth-shared/schemas';
|
|
12
|
+
export type { EventBinding, EventBindingApiKey, EventBindingApiKeyCreateRequest, EventBindingApiKeyCreated, EventBindingApiKeyUpdateRequest, EventBindingInputRequest, EventIngestRequest, EventRouteRule, EventRouteRuleUpsertRequest, PromptRequest, PromptRequestInput, RouteDecision, Schedule, ScheduleInputRequest, ScheduleJob, SessionCreateRequest, SessionUpdateRequest, SynthEvent, };
|
|
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`.
|
|
@@ -23,8 +21,11 @@ export type SessionPatch = SessionUpdateRequest & {
|
|
|
23
21
|
mode?: 'plan' | 'act' | 'yolo';
|
|
24
22
|
project_id?: string | null;
|
|
25
23
|
};
|
|
26
|
-
/**
|
|
27
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Тело `POST /sessions/:id/prompt` — `stream` и `mode` имеют серверные
|
|
26
|
+
* default'ы (`true` и `queue` соответственно, ADR-104).
|
|
27
|
+
*/
|
|
28
|
+
export type SessionPromptInput = Omit<PromptRequestInput, 'stream'> & {
|
|
28
29
|
stream?: boolean;
|
|
29
30
|
};
|
|
30
31
|
/** Тело `POST/PUT /schedules` — `enabled` имеет серверный default `true`. */
|
|
@@ -71,7 +72,6 @@ export interface SerializedSession {
|
|
|
71
72
|
user_id?: string | null;
|
|
72
73
|
owner_id?: string | null;
|
|
73
74
|
project_id?: string | null;
|
|
74
|
-
engine: 'synth' | 'opencode' | 'cline' | string;
|
|
75
75
|
messages?: unknown[];
|
|
76
76
|
pending_messages?: unknown[];
|
|
77
77
|
pending_count?: number;
|
|
@@ -91,7 +91,6 @@ export interface SerializedSession {
|
|
|
91
91
|
export interface SessionMessagesResponse {
|
|
92
92
|
messages: unknown[];
|
|
93
93
|
session_id: string;
|
|
94
|
-
engine: string;
|
|
95
94
|
}
|
|
96
95
|
/** Ответ `GET /sessions/:id/status`. */
|
|
97
96
|
export interface SessionStatusResponse {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itphx/synth-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.4",
|
|
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.
|
|
19
|
+
"@itphx/synth-shared": "0.12.4"
|
|
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
|
|
40
|
+
"test": "vitest run",
|
|
41
41
|
"test:watch": "vitest",
|
|
42
42
|
"clean": "rm -rf dist"
|
|
43
43
|
}
|