@soat/sdk 0.15.2 → 0.15.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.
- package/dist/index.d.cts +25 -16
- package/dist/index.d.mts +25 -16
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1240,7 +1240,13 @@ type DiscussionRunRecord = {
|
|
|
1240
1240
|
started_by?: {
|
|
1241
1241
|
[key: string]: unknown;
|
|
1242
1242
|
} | null;
|
|
1243
|
+
/**
|
|
1244
|
+
* Reserved for the generation that invoked this run as a tool. Not currently populated — see trace_id.
|
|
1245
|
+
*/
|
|
1243
1246
|
initiator_generation_id?: string | null;
|
|
1247
|
+
/**
|
|
1248
|
+
* Trace of the generation that invoked this run as a tool. Null for runs started directly via POST /discussions/{discussion_id}/runs.
|
|
1249
|
+
*/
|
|
1244
1250
|
trace_id?: string | null;
|
|
1245
1251
|
completed_at?: Date | null;
|
|
1246
1252
|
created_at?: Date;
|
|
@@ -2600,7 +2606,7 @@ type OrchestrationNode = {
|
|
|
2600
2606
|
/**
|
|
2601
2607
|
* Node execution type.
|
|
2602
2608
|
*/
|
|
2603
|
-
type: 'agent' | 'tool' | 'transform' | 'knowledge' | 'memory_write' | 'condition' | 'human' | 'approval' | 'loop' | 'poll' | 'delay' | 'webhook' | 'sub_orchestration';
|
|
2609
|
+
type: 'agent' | 'tool' | 'transform' | 'knowledge' | 'memory_write' | 'condition' | 'human' | 'approval' | 'loop' | 'poll' | 'delay' | 'webhook' | 'emit_event' | 'sub_orchestration';
|
|
2604
2610
|
/**
|
|
2605
2611
|
* For agent nodes — public ID of the agent to invoke.
|
|
2606
2612
|
*/
|
|
@@ -2720,25 +2726,15 @@ type OrchestrationNode = {
|
|
|
2720
2726
|
*/
|
|
2721
2727
|
duration?: string;
|
|
2722
2728
|
/**
|
|
2723
|
-
* For webhook nodes —
|
|
2724
|
-
*/
|
|
2725
|
-
mode?: 'emit' | 'receive';
|
|
2726
|
-
/**
|
|
2727
|
-
* For webhook emit nodes — URL to POST to.
|
|
2728
|
-
*/
|
|
2729
|
-
webhook_url?: string;
|
|
2730
|
-
/**
|
|
2731
|
-
* For webhook emit nodes — extra HTTP headers sent with the POST. Values support `{{secret:...}}` templating, resolved against the run's project at emit time, so an auth header can carry a secret without embedding it in the URL.
|
|
2729
|
+
* For webhook nodes — parks the run awaiting an inbound callback. `receive` is the only mode; to send a notification out of a graph, use an `emit_event` node instead.
|
|
2732
2730
|
*
|
|
2733
2731
|
*/
|
|
2734
|
-
|
|
2735
|
-
[key: string]: string;
|
|
2736
|
-
};
|
|
2732
|
+
mode?: 'receive';
|
|
2737
2733
|
/**
|
|
2738
|
-
* For
|
|
2734
|
+
* For emit_event nodes — the internal event type to emit (e.g. `guardrail.exception`). The node's input_mapping becomes the event `data`. Any Webhook subscribed to this event type in the run's project then delivers it — signed, retried, and tracked by the Webhooks module — so the graph holds no URL or secret of its own.
|
|
2739
2735
|
*
|
|
2740
2736
|
*/
|
|
2741
|
-
|
|
2737
|
+
event_type?: string;
|
|
2742
2738
|
/**
|
|
2743
2739
|
* Public ID of the orchestration this node runs — the child orchestration for sub_orchestration nodes, and the orchestration run once per item for loop nodes.
|
|
2744
2740
|
*
|
|
@@ -6300,6 +6296,14 @@ type ListDocumentsData = {
|
|
|
6300
6296
|
* Project ID (optional)
|
|
6301
6297
|
*/
|
|
6302
6298
|
project_id?: string;
|
|
6299
|
+
/**
|
|
6300
|
+
* Maximum number of results to return
|
|
6301
|
+
*/
|
|
6302
|
+
limit?: number;
|
|
6303
|
+
/**
|
|
6304
|
+
* Number of results to skip
|
|
6305
|
+
*/
|
|
6306
|
+
offset?: number;
|
|
6303
6307
|
};
|
|
6304
6308
|
url: '/api/v1/documents';
|
|
6305
6309
|
};
|
|
@@ -6318,7 +6322,12 @@ type ListDocumentsResponses = {
|
|
|
6318
6322
|
/**
|
|
6319
6323
|
* List of documents
|
|
6320
6324
|
*/
|
|
6321
|
-
200:
|
|
6325
|
+
200: {
|
|
6326
|
+
data?: Array<DocumentRecord>;
|
|
6327
|
+
total?: number;
|
|
6328
|
+
limit?: number;
|
|
6329
|
+
offset?: number;
|
|
6330
|
+
};
|
|
6322
6331
|
};
|
|
6323
6332
|
type ListDocumentsResponse = ListDocumentsResponses[keyof ListDocumentsResponses];
|
|
6324
6333
|
type CreateDocumentData = {
|
package/dist/index.d.mts
CHANGED
|
@@ -1240,7 +1240,13 @@ type DiscussionRunRecord = {
|
|
|
1240
1240
|
started_by?: {
|
|
1241
1241
|
[key: string]: unknown;
|
|
1242
1242
|
} | null;
|
|
1243
|
+
/**
|
|
1244
|
+
* Reserved for the generation that invoked this run as a tool. Not currently populated — see trace_id.
|
|
1245
|
+
*/
|
|
1243
1246
|
initiator_generation_id?: string | null;
|
|
1247
|
+
/**
|
|
1248
|
+
* Trace of the generation that invoked this run as a tool. Null for runs started directly via POST /discussions/{discussion_id}/runs.
|
|
1249
|
+
*/
|
|
1244
1250
|
trace_id?: string | null;
|
|
1245
1251
|
completed_at?: Date | null;
|
|
1246
1252
|
created_at?: Date;
|
|
@@ -2600,7 +2606,7 @@ type OrchestrationNode = {
|
|
|
2600
2606
|
/**
|
|
2601
2607
|
* Node execution type.
|
|
2602
2608
|
*/
|
|
2603
|
-
type: 'agent' | 'tool' | 'transform' | 'knowledge' | 'memory_write' | 'condition' | 'human' | 'approval' | 'loop' | 'poll' | 'delay' | 'webhook' | 'sub_orchestration';
|
|
2609
|
+
type: 'agent' | 'tool' | 'transform' | 'knowledge' | 'memory_write' | 'condition' | 'human' | 'approval' | 'loop' | 'poll' | 'delay' | 'webhook' | 'emit_event' | 'sub_orchestration';
|
|
2604
2610
|
/**
|
|
2605
2611
|
* For agent nodes — public ID of the agent to invoke.
|
|
2606
2612
|
*/
|
|
@@ -2720,25 +2726,15 @@ type OrchestrationNode = {
|
|
|
2720
2726
|
*/
|
|
2721
2727
|
duration?: string;
|
|
2722
2728
|
/**
|
|
2723
|
-
* For webhook nodes —
|
|
2724
|
-
*/
|
|
2725
|
-
mode?: 'emit' | 'receive';
|
|
2726
|
-
/**
|
|
2727
|
-
* For webhook emit nodes — URL to POST to.
|
|
2728
|
-
*/
|
|
2729
|
-
webhook_url?: string;
|
|
2730
|
-
/**
|
|
2731
|
-
* For webhook emit nodes — extra HTTP headers sent with the POST. Values support `{{secret:...}}` templating, resolved against the run's project at emit time, so an auth header can carry a secret without embedding it in the URL.
|
|
2729
|
+
* For webhook nodes — parks the run awaiting an inbound callback. `receive` is the only mode; to send a notification out of a graph, use an `emit_event` node instead.
|
|
2732
2730
|
*
|
|
2733
2731
|
*/
|
|
2734
|
-
|
|
2735
|
-
[key: string]: string;
|
|
2736
|
-
};
|
|
2732
|
+
mode?: 'receive';
|
|
2737
2733
|
/**
|
|
2738
|
-
* For
|
|
2734
|
+
* For emit_event nodes — the internal event type to emit (e.g. `guardrail.exception`). The node's input_mapping becomes the event `data`. Any Webhook subscribed to this event type in the run's project then delivers it — signed, retried, and tracked by the Webhooks module — so the graph holds no URL or secret of its own.
|
|
2739
2735
|
*
|
|
2740
2736
|
*/
|
|
2741
|
-
|
|
2737
|
+
event_type?: string;
|
|
2742
2738
|
/**
|
|
2743
2739
|
* Public ID of the orchestration this node runs — the child orchestration for sub_orchestration nodes, and the orchestration run once per item for loop nodes.
|
|
2744
2740
|
*
|
|
@@ -6300,6 +6296,14 @@ type ListDocumentsData = {
|
|
|
6300
6296
|
* Project ID (optional)
|
|
6301
6297
|
*/
|
|
6302
6298
|
project_id?: string;
|
|
6299
|
+
/**
|
|
6300
|
+
* Maximum number of results to return
|
|
6301
|
+
*/
|
|
6302
|
+
limit?: number;
|
|
6303
|
+
/**
|
|
6304
|
+
* Number of results to skip
|
|
6305
|
+
*/
|
|
6306
|
+
offset?: number;
|
|
6303
6307
|
};
|
|
6304
6308
|
url: '/api/v1/documents';
|
|
6305
6309
|
};
|
|
@@ -6318,7 +6322,12 @@ type ListDocumentsResponses = {
|
|
|
6318
6322
|
/**
|
|
6319
6323
|
* List of documents
|
|
6320
6324
|
*/
|
|
6321
|
-
200:
|
|
6325
|
+
200: {
|
|
6326
|
+
data?: Array<DocumentRecord>;
|
|
6327
|
+
total?: number;
|
|
6328
|
+
limit?: number;
|
|
6329
|
+
offset?: number;
|
|
6330
|
+
};
|
|
6322
6331
|
};
|
|
6323
6332
|
type ListDocumentsResponse = ListDocumentsResponses[keyof ListDocumentsResponses];
|
|
6324
6333
|
type CreateDocumentData = {
|