@z3rno/sdk 0.3.0 → 0.4.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/dist/index.cjs +144 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +260 -1
- package/dist/index.d.ts +260 -1
- package/dist/index.js +139 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -755,6 +755,240 @@ declare const EndSessionResponse: z.ZodObject<{
|
|
|
755
755
|
}>;
|
|
756
756
|
/** Parsed type for an end-session response. */
|
|
757
757
|
type EndSessionResponse = z.infer<typeof EndSessionResponse>;
|
|
758
|
+
/** Response to POST /v1/ingest — the enqueue ack. */
|
|
759
|
+
declare const IngestJobResponse: z.ZodObject<{
|
|
760
|
+
job_id: z.ZodString;
|
|
761
|
+
kind: z.ZodString;
|
|
762
|
+
status: z.ZodString;
|
|
763
|
+
dataset_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
764
|
+
enqueued_at: z.ZodString;
|
|
765
|
+
}, "strip", z.ZodTypeAny, {
|
|
766
|
+
status: string;
|
|
767
|
+
job_id: string;
|
|
768
|
+
kind: string;
|
|
769
|
+
enqueued_at: string;
|
|
770
|
+
dataset_id?: string | null | undefined;
|
|
771
|
+
}, {
|
|
772
|
+
status: string;
|
|
773
|
+
job_id: string;
|
|
774
|
+
kind: string;
|
|
775
|
+
enqueued_at: string;
|
|
776
|
+
dataset_id?: string | null | undefined;
|
|
777
|
+
}>;
|
|
778
|
+
type IngestJobResponse = z.infer<typeof IngestJobResponse>;
|
|
779
|
+
/** Full state from GET /v1/ingest/{job_id}. */
|
|
780
|
+
declare const IngestJobStatusResponse: z.ZodObject<{
|
|
781
|
+
job_id: z.ZodString;
|
|
782
|
+
agent_id: z.ZodString;
|
|
783
|
+
dataset_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
784
|
+
kind: z.ZodString;
|
|
785
|
+
status: z.ZodString;
|
|
786
|
+
source_uri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
787
|
+
content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
788
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
789
|
+
file_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
790
|
+
memory_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
791
|
+
memos_written: z.ZodDefault<z.ZodNumber>;
|
|
792
|
+
distill_job_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
793
|
+
codegraph_memos_written: z.ZodDefault<z.ZodNumber>;
|
|
794
|
+
codegraph_edges_written: z.ZodDefault<z.ZodNumber>;
|
|
795
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
796
|
+
warnings: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
797
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
798
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
799
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
800
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
801
|
+
}, "strip", z.ZodTypeAny, {
|
|
802
|
+
status: string;
|
|
803
|
+
agent_id: string;
|
|
804
|
+
memory_ids: string[];
|
|
805
|
+
job_id: string;
|
|
806
|
+
kind: string;
|
|
807
|
+
memos_written: number;
|
|
808
|
+
codegraph_memos_written: number;
|
|
809
|
+
codegraph_edges_written: number;
|
|
810
|
+
warnings: Record<string, unknown>[];
|
|
811
|
+
created_at?: string | null | undefined;
|
|
812
|
+
started_at?: string | null | undefined;
|
|
813
|
+
dataset_id?: string | null | undefined;
|
|
814
|
+
source_uri?: string | null | undefined;
|
|
815
|
+
content_type?: string | null | undefined;
|
|
816
|
+
filename?: string | null | undefined;
|
|
817
|
+
file_size?: number | null | undefined;
|
|
818
|
+
distill_job_id?: string | null | undefined;
|
|
819
|
+
error?: string | null | undefined;
|
|
820
|
+
completed_at?: string | null | undefined;
|
|
821
|
+
updated_at?: string | null | undefined;
|
|
822
|
+
}, {
|
|
823
|
+
status: string;
|
|
824
|
+
agent_id: string;
|
|
825
|
+
job_id: string;
|
|
826
|
+
kind: string;
|
|
827
|
+
created_at?: string | null | undefined;
|
|
828
|
+
memory_ids?: string[] | undefined;
|
|
829
|
+
started_at?: string | null | undefined;
|
|
830
|
+
dataset_id?: string | null | undefined;
|
|
831
|
+
source_uri?: string | null | undefined;
|
|
832
|
+
content_type?: string | null | undefined;
|
|
833
|
+
filename?: string | null | undefined;
|
|
834
|
+
file_size?: number | null | undefined;
|
|
835
|
+
memos_written?: number | undefined;
|
|
836
|
+
distill_job_id?: string | null | undefined;
|
|
837
|
+
codegraph_memos_written?: number | undefined;
|
|
838
|
+
codegraph_edges_written?: number | undefined;
|
|
839
|
+
error?: string | null | undefined;
|
|
840
|
+
warnings?: Record<string, unknown>[] | undefined;
|
|
841
|
+
completed_at?: string | null | undefined;
|
|
842
|
+
updated_at?: string | null | undefined;
|
|
843
|
+
}>;
|
|
844
|
+
type IngestJobStatusResponse = z.infer<typeof IngestJobStatusResponse>;
|
|
845
|
+
/** Distill enqueue ack. */
|
|
846
|
+
declare const DistillJobResponse: z.ZodObject<{
|
|
847
|
+
job_id: z.ZodString;
|
|
848
|
+
status: z.ZodString;
|
|
849
|
+
memory_ids: z.ZodArray<z.ZodString, "many">;
|
|
850
|
+
enqueued_at: z.ZodString;
|
|
851
|
+
}, "strip", z.ZodTypeAny, {
|
|
852
|
+
status: string;
|
|
853
|
+
memory_ids: string[];
|
|
854
|
+
job_id: string;
|
|
855
|
+
enqueued_at: string;
|
|
856
|
+
}, {
|
|
857
|
+
status: string;
|
|
858
|
+
memory_ids: string[];
|
|
859
|
+
job_id: string;
|
|
860
|
+
enqueued_at: string;
|
|
861
|
+
}>;
|
|
862
|
+
type DistillJobResponse = z.infer<typeof DistillJobResponse>;
|
|
863
|
+
/** Full distill job state. */
|
|
864
|
+
declare const DistillJobStatusResponse: z.ZodObject<{
|
|
865
|
+
job_id: z.ZodString;
|
|
866
|
+
agent_id: z.ZodString;
|
|
867
|
+
status: z.ZodString;
|
|
868
|
+
model: z.ZodString;
|
|
869
|
+
memory_ids: z.ZodArray<z.ZodString, "many">;
|
|
870
|
+
chunk_size: z.ZodNumber;
|
|
871
|
+
chunk_overlap: z.ZodNumber;
|
|
872
|
+
max_concurrency: z.ZodNumber;
|
|
873
|
+
chunks_total: z.ZodNumber;
|
|
874
|
+
chunks_failed: z.ZodNumber;
|
|
875
|
+
entities_extracted: z.ZodNumber;
|
|
876
|
+
relationships_extracted: z.ZodNumber;
|
|
877
|
+
memos_written: z.ZodNumber;
|
|
878
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
879
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
880
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
881
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
882
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
883
|
+
}, "strip", z.ZodTypeAny, {
|
|
884
|
+
status: string;
|
|
885
|
+
agent_id: string;
|
|
886
|
+
memory_ids: string[];
|
|
887
|
+
job_id: string;
|
|
888
|
+
memos_written: number;
|
|
889
|
+
model: string;
|
|
890
|
+
chunk_size: number;
|
|
891
|
+
chunk_overlap: number;
|
|
892
|
+
max_concurrency: number;
|
|
893
|
+
chunks_total: number;
|
|
894
|
+
chunks_failed: number;
|
|
895
|
+
entities_extracted: number;
|
|
896
|
+
relationships_extracted: number;
|
|
897
|
+
created_at?: string | null | undefined;
|
|
898
|
+
started_at?: string | null | undefined;
|
|
899
|
+
error?: string | null | undefined;
|
|
900
|
+
completed_at?: string | null | undefined;
|
|
901
|
+
updated_at?: string | null | undefined;
|
|
902
|
+
}, {
|
|
903
|
+
status: string;
|
|
904
|
+
agent_id: string;
|
|
905
|
+
memory_ids: string[];
|
|
906
|
+
job_id: string;
|
|
907
|
+
memos_written: number;
|
|
908
|
+
model: string;
|
|
909
|
+
chunk_size: number;
|
|
910
|
+
chunk_overlap: number;
|
|
911
|
+
max_concurrency: number;
|
|
912
|
+
chunks_total: number;
|
|
913
|
+
chunks_failed: number;
|
|
914
|
+
entities_extracted: number;
|
|
915
|
+
relationships_extracted: number;
|
|
916
|
+
created_at?: string | null | undefined;
|
|
917
|
+
started_at?: string | null | undefined;
|
|
918
|
+
error?: string | null | undefined;
|
|
919
|
+
completed_at?: string | null | undefined;
|
|
920
|
+
updated_at?: string | null | undefined;
|
|
921
|
+
}>;
|
|
922
|
+
type DistillJobStatusResponse = z.infer<typeof DistillJobStatusResponse>;
|
|
923
|
+
/** Refine enqueue ack. */
|
|
924
|
+
declare const RefineJobResponse: z.ZodObject<{
|
|
925
|
+
job_id: z.ZodString;
|
|
926
|
+
status: z.ZodString;
|
|
927
|
+
dataset_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
928
|
+
enqueued_at: z.ZodString;
|
|
929
|
+
}, "strip", z.ZodTypeAny, {
|
|
930
|
+
status: string;
|
|
931
|
+
job_id: string;
|
|
932
|
+
enqueued_at: string;
|
|
933
|
+
dataset_id?: string | null | undefined;
|
|
934
|
+
}, {
|
|
935
|
+
status: string;
|
|
936
|
+
job_id: string;
|
|
937
|
+
enqueued_at: string;
|
|
938
|
+
dataset_id?: string | null | undefined;
|
|
939
|
+
}>;
|
|
940
|
+
type RefineJobResponse = z.infer<typeof RefineJobResponse>;
|
|
941
|
+
/** Full refine job state. */
|
|
942
|
+
declare const RefineJobStatusResponse: z.ZodObject<{
|
|
943
|
+
job_id: z.ZodString;
|
|
944
|
+
status: z.ZodString;
|
|
945
|
+
dataset_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
946
|
+
trigger: z.ZodString;
|
|
947
|
+
memos_scanned: z.ZodDefault<z.ZodNumber>;
|
|
948
|
+
memos_deduped: z.ZodDefault<z.ZodNumber>;
|
|
949
|
+
edges_reweighted: z.ZodDefault<z.ZodNumber>;
|
|
950
|
+
edges_pruned: z.ZodDefault<z.ZodNumber>;
|
|
951
|
+
feedback_drained: z.ZodDefault<z.ZodNumber>;
|
|
952
|
+
job_metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
953
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
954
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
955
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
956
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
957
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
958
|
+
}, "strip", z.ZodTypeAny, {
|
|
959
|
+
status: string;
|
|
960
|
+
job_id: string;
|
|
961
|
+
trigger: string;
|
|
962
|
+
memos_scanned: number;
|
|
963
|
+
memos_deduped: number;
|
|
964
|
+
edges_reweighted: number;
|
|
965
|
+
edges_pruned: number;
|
|
966
|
+
feedback_drained: number;
|
|
967
|
+
job_metadata: Record<string, unknown>;
|
|
968
|
+
created_at?: string | null | undefined;
|
|
969
|
+
started_at?: string | null | undefined;
|
|
970
|
+
dataset_id?: string | null | undefined;
|
|
971
|
+
error?: string | null | undefined;
|
|
972
|
+
completed_at?: string | null | undefined;
|
|
973
|
+
updated_at?: string | null | undefined;
|
|
974
|
+
}, {
|
|
975
|
+
status: string;
|
|
976
|
+
job_id: string;
|
|
977
|
+
trigger: string;
|
|
978
|
+
created_at?: string | null | undefined;
|
|
979
|
+
started_at?: string | null | undefined;
|
|
980
|
+
dataset_id?: string | null | undefined;
|
|
981
|
+
error?: string | null | undefined;
|
|
982
|
+
completed_at?: string | null | undefined;
|
|
983
|
+
updated_at?: string | null | undefined;
|
|
984
|
+
memos_scanned?: number | undefined;
|
|
985
|
+
memos_deduped?: number | undefined;
|
|
986
|
+
edges_reweighted?: number | undefined;
|
|
987
|
+
edges_pruned?: number | undefined;
|
|
988
|
+
feedback_drained?: number | undefined;
|
|
989
|
+
job_metadata?: Record<string, unknown> | undefined;
|
|
990
|
+
}>;
|
|
991
|
+
type RefineJobStatusResponse = z.infer<typeof RefineJobStatusResponse>;
|
|
758
992
|
|
|
759
993
|
/**
|
|
760
994
|
* Z3rno TypeScript SDK client.
|
|
@@ -1159,6 +1393,31 @@ declare class Z3rnoClient {
|
|
|
1159
1393
|
page?: number;
|
|
1160
1394
|
pageSize?: number;
|
|
1161
1395
|
}): Promise<AuditPageResponse>;
|
|
1396
|
+
ingestText(params: {
|
|
1397
|
+
agentId: string;
|
|
1398
|
+
text: string;
|
|
1399
|
+
datasetId?: string;
|
|
1400
|
+
}): Promise<IngestJobResponse>;
|
|
1401
|
+
ingestUrl(params: {
|
|
1402
|
+
agentId: string;
|
|
1403
|
+
url: string;
|
|
1404
|
+
datasetId?: string;
|
|
1405
|
+
}): Promise<IngestJobResponse>;
|
|
1406
|
+
getIngestStatus(jobId: string): Promise<IngestJobStatusResponse>;
|
|
1407
|
+
distill(params: {
|
|
1408
|
+
agentId: string;
|
|
1409
|
+
memoryIds: string[];
|
|
1410
|
+
chunkSize?: number;
|
|
1411
|
+
chunkOverlap?: number;
|
|
1412
|
+
maxConcurrency?: number;
|
|
1413
|
+
summaryStyle?: string;
|
|
1414
|
+
includeSummary?: boolean;
|
|
1415
|
+
}): Promise<DistillJobResponse>;
|
|
1416
|
+
getDistillStatus(jobId: string): Promise<DistillJobStatusResponse>;
|
|
1417
|
+
refine(params?: {
|
|
1418
|
+
datasetId?: string;
|
|
1419
|
+
}): Promise<RefineJobResponse>;
|
|
1420
|
+
getRefineStatus(jobId: string): Promise<RefineJobStatusResponse>;
|
|
1162
1421
|
private request;
|
|
1163
1422
|
private sleep;
|
|
1164
1423
|
private handleResponse;
|
|
@@ -1363,4 +1622,4 @@ declare class Z3rnoConnectionError extends Z3rnoError {
|
|
|
1363
1622
|
constructor(message: string);
|
|
1364
1623
|
}
|
|
1365
1624
|
|
|
1366
|
-
export { AuditEntry, AuditPageResponse, AuthenticationError, BatchStoreResponse, EndSessionResponse, ForgetResponse, MemoryHistoryResponse, MemoryResponse, MemoryType, MemoryVersion, NotFoundError, RateLimitError, RecallResponse, RecallResultItem, RelationshipType, RetrievalStrategy, ServerError, SessionResponse, StoreMemoryRequest, ValidationError, Z3rnoClient, type Z3rnoClientConfig, Z3rnoConnectionError, Z3rnoError, Z3rnoTimeoutError };
|
|
1625
|
+
export { AuditEntry, AuditPageResponse, AuthenticationError, BatchStoreResponse, DistillJobResponse, DistillJobStatusResponse, EndSessionResponse, ForgetResponse, IngestJobResponse, IngestJobStatusResponse, MemoryHistoryResponse, MemoryResponse, MemoryType, MemoryVersion, NotFoundError, RateLimitError, RecallResponse, RecallResultItem, RefineJobResponse, RefineJobStatusResponse, RelationshipType, RetrievalStrategy, ServerError, SessionResponse, StoreMemoryRequest, ValidationError, Z3rnoClient, type Z3rnoClientConfig, Z3rnoConnectionError, Z3rnoError, Z3rnoTimeoutError };
|
package/dist/index.d.ts
CHANGED
|
@@ -755,6 +755,240 @@ declare const EndSessionResponse: z.ZodObject<{
|
|
|
755
755
|
}>;
|
|
756
756
|
/** Parsed type for an end-session response. */
|
|
757
757
|
type EndSessionResponse = z.infer<typeof EndSessionResponse>;
|
|
758
|
+
/** Response to POST /v1/ingest — the enqueue ack. */
|
|
759
|
+
declare const IngestJobResponse: z.ZodObject<{
|
|
760
|
+
job_id: z.ZodString;
|
|
761
|
+
kind: z.ZodString;
|
|
762
|
+
status: z.ZodString;
|
|
763
|
+
dataset_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
764
|
+
enqueued_at: z.ZodString;
|
|
765
|
+
}, "strip", z.ZodTypeAny, {
|
|
766
|
+
status: string;
|
|
767
|
+
job_id: string;
|
|
768
|
+
kind: string;
|
|
769
|
+
enqueued_at: string;
|
|
770
|
+
dataset_id?: string | null | undefined;
|
|
771
|
+
}, {
|
|
772
|
+
status: string;
|
|
773
|
+
job_id: string;
|
|
774
|
+
kind: string;
|
|
775
|
+
enqueued_at: string;
|
|
776
|
+
dataset_id?: string | null | undefined;
|
|
777
|
+
}>;
|
|
778
|
+
type IngestJobResponse = z.infer<typeof IngestJobResponse>;
|
|
779
|
+
/** Full state from GET /v1/ingest/{job_id}. */
|
|
780
|
+
declare const IngestJobStatusResponse: z.ZodObject<{
|
|
781
|
+
job_id: z.ZodString;
|
|
782
|
+
agent_id: z.ZodString;
|
|
783
|
+
dataset_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
784
|
+
kind: z.ZodString;
|
|
785
|
+
status: z.ZodString;
|
|
786
|
+
source_uri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
787
|
+
content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
788
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
789
|
+
file_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
790
|
+
memory_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
791
|
+
memos_written: z.ZodDefault<z.ZodNumber>;
|
|
792
|
+
distill_job_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
793
|
+
codegraph_memos_written: z.ZodDefault<z.ZodNumber>;
|
|
794
|
+
codegraph_edges_written: z.ZodDefault<z.ZodNumber>;
|
|
795
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
796
|
+
warnings: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
797
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
798
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
799
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
800
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
801
|
+
}, "strip", z.ZodTypeAny, {
|
|
802
|
+
status: string;
|
|
803
|
+
agent_id: string;
|
|
804
|
+
memory_ids: string[];
|
|
805
|
+
job_id: string;
|
|
806
|
+
kind: string;
|
|
807
|
+
memos_written: number;
|
|
808
|
+
codegraph_memos_written: number;
|
|
809
|
+
codegraph_edges_written: number;
|
|
810
|
+
warnings: Record<string, unknown>[];
|
|
811
|
+
created_at?: string | null | undefined;
|
|
812
|
+
started_at?: string | null | undefined;
|
|
813
|
+
dataset_id?: string | null | undefined;
|
|
814
|
+
source_uri?: string | null | undefined;
|
|
815
|
+
content_type?: string | null | undefined;
|
|
816
|
+
filename?: string | null | undefined;
|
|
817
|
+
file_size?: number | null | undefined;
|
|
818
|
+
distill_job_id?: string | null | undefined;
|
|
819
|
+
error?: string | null | undefined;
|
|
820
|
+
completed_at?: string | null | undefined;
|
|
821
|
+
updated_at?: string | null | undefined;
|
|
822
|
+
}, {
|
|
823
|
+
status: string;
|
|
824
|
+
agent_id: string;
|
|
825
|
+
job_id: string;
|
|
826
|
+
kind: string;
|
|
827
|
+
created_at?: string | null | undefined;
|
|
828
|
+
memory_ids?: string[] | undefined;
|
|
829
|
+
started_at?: string | null | undefined;
|
|
830
|
+
dataset_id?: string | null | undefined;
|
|
831
|
+
source_uri?: string | null | undefined;
|
|
832
|
+
content_type?: string | null | undefined;
|
|
833
|
+
filename?: string | null | undefined;
|
|
834
|
+
file_size?: number | null | undefined;
|
|
835
|
+
memos_written?: number | undefined;
|
|
836
|
+
distill_job_id?: string | null | undefined;
|
|
837
|
+
codegraph_memos_written?: number | undefined;
|
|
838
|
+
codegraph_edges_written?: number | undefined;
|
|
839
|
+
error?: string | null | undefined;
|
|
840
|
+
warnings?: Record<string, unknown>[] | undefined;
|
|
841
|
+
completed_at?: string | null | undefined;
|
|
842
|
+
updated_at?: string | null | undefined;
|
|
843
|
+
}>;
|
|
844
|
+
type IngestJobStatusResponse = z.infer<typeof IngestJobStatusResponse>;
|
|
845
|
+
/** Distill enqueue ack. */
|
|
846
|
+
declare const DistillJobResponse: z.ZodObject<{
|
|
847
|
+
job_id: z.ZodString;
|
|
848
|
+
status: z.ZodString;
|
|
849
|
+
memory_ids: z.ZodArray<z.ZodString, "many">;
|
|
850
|
+
enqueued_at: z.ZodString;
|
|
851
|
+
}, "strip", z.ZodTypeAny, {
|
|
852
|
+
status: string;
|
|
853
|
+
memory_ids: string[];
|
|
854
|
+
job_id: string;
|
|
855
|
+
enqueued_at: string;
|
|
856
|
+
}, {
|
|
857
|
+
status: string;
|
|
858
|
+
memory_ids: string[];
|
|
859
|
+
job_id: string;
|
|
860
|
+
enqueued_at: string;
|
|
861
|
+
}>;
|
|
862
|
+
type DistillJobResponse = z.infer<typeof DistillJobResponse>;
|
|
863
|
+
/** Full distill job state. */
|
|
864
|
+
declare const DistillJobStatusResponse: z.ZodObject<{
|
|
865
|
+
job_id: z.ZodString;
|
|
866
|
+
agent_id: z.ZodString;
|
|
867
|
+
status: z.ZodString;
|
|
868
|
+
model: z.ZodString;
|
|
869
|
+
memory_ids: z.ZodArray<z.ZodString, "many">;
|
|
870
|
+
chunk_size: z.ZodNumber;
|
|
871
|
+
chunk_overlap: z.ZodNumber;
|
|
872
|
+
max_concurrency: z.ZodNumber;
|
|
873
|
+
chunks_total: z.ZodNumber;
|
|
874
|
+
chunks_failed: z.ZodNumber;
|
|
875
|
+
entities_extracted: z.ZodNumber;
|
|
876
|
+
relationships_extracted: z.ZodNumber;
|
|
877
|
+
memos_written: z.ZodNumber;
|
|
878
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
879
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
880
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
881
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
882
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
883
|
+
}, "strip", z.ZodTypeAny, {
|
|
884
|
+
status: string;
|
|
885
|
+
agent_id: string;
|
|
886
|
+
memory_ids: string[];
|
|
887
|
+
job_id: string;
|
|
888
|
+
memos_written: number;
|
|
889
|
+
model: string;
|
|
890
|
+
chunk_size: number;
|
|
891
|
+
chunk_overlap: number;
|
|
892
|
+
max_concurrency: number;
|
|
893
|
+
chunks_total: number;
|
|
894
|
+
chunks_failed: number;
|
|
895
|
+
entities_extracted: number;
|
|
896
|
+
relationships_extracted: number;
|
|
897
|
+
created_at?: string | null | undefined;
|
|
898
|
+
started_at?: string | null | undefined;
|
|
899
|
+
error?: string | null | undefined;
|
|
900
|
+
completed_at?: string | null | undefined;
|
|
901
|
+
updated_at?: string | null | undefined;
|
|
902
|
+
}, {
|
|
903
|
+
status: string;
|
|
904
|
+
agent_id: string;
|
|
905
|
+
memory_ids: string[];
|
|
906
|
+
job_id: string;
|
|
907
|
+
memos_written: number;
|
|
908
|
+
model: string;
|
|
909
|
+
chunk_size: number;
|
|
910
|
+
chunk_overlap: number;
|
|
911
|
+
max_concurrency: number;
|
|
912
|
+
chunks_total: number;
|
|
913
|
+
chunks_failed: number;
|
|
914
|
+
entities_extracted: number;
|
|
915
|
+
relationships_extracted: number;
|
|
916
|
+
created_at?: string | null | undefined;
|
|
917
|
+
started_at?: string | null | undefined;
|
|
918
|
+
error?: string | null | undefined;
|
|
919
|
+
completed_at?: string | null | undefined;
|
|
920
|
+
updated_at?: string | null | undefined;
|
|
921
|
+
}>;
|
|
922
|
+
type DistillJobStatusResponse = z.infer<typeof DistillJobStatusResponse>;
|
|
923
|
+
/** Refine enqueue ack. */
|
|
924
|
+
declare const RefineJobResponse: z.ZodObject<{
|
|
925
|
+
job_id: z.ZodString;
|
|
926
|
+
status: z.ZodString;
|
|
927
|
+
dataset_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
928
|
+
enqueued_at: z.ZodString;
|
|
929
|
+
}, "strip", z.ZodTypeAny, {
|
|
930
|
+
status: string;
|
|
931
|
+
job_id: string;
|
|
932
|
+
enqueued_at: string;
|
|
933
|
+
dataset_id?: string | null | undefined;
|
|
934
|
+
}, {
|
|
935
|
+
status: string;
|
|
936
|
+
job_id: string;
|
|
937
|
+
enqueued_at: string;
|
|
938
|
+
dataset_id?: string | null | undefined;
|
|
939
|
+
}>;
|
|
940
|
+
type RefineJobResponse = z.infer<typeof RefineJobResponse>;
|
|
941
|
+
/** Full refine job state. */
|
|
942
|
+
declare const RefineJobStatusResponse: z.ZodObject<{
|
|
943
|
+
job_id: z.ZodString;
|
|
944
|
+
status: z.ZodString;
|
|
945
|
+
dataset_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
946
|
+
trigger: z.ZodString;
|
|
947
|
+
memos_scanned: z.ZodDefault<z.ZodNumber>;
|
|
948
|
+
memos_deduped: z.ZodDefault<z.ZodNumber>;
|
|
949
|
+
edges_reweighted: z.ZodDefault<z.ZodNumber>;
|
|
950
|
+
edges_pruned: z.ZodDefault<z.ZodNumber>;
|
|
951
|
+
feedback_drained: z.ZodDefault<z.ZodNumber>;
|
|
952
|
+
job_metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
953
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
954
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
955
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
956
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
957
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
958
|
+
}, "strip", z.ZodTypeAny, {
|
|
959
|
+
status: string;
|
|
960
|
+
job_id: string;
|
|
961
|
+
trigger: string;
|
|
962
|
+
memos_scanned: number;
|
|
963
|
+
memos_deduped: number;
|
|
964
|
+
edges_reweighted: number;
|
|
965
|
+
edges_pruned: number;
|
|
966
|
+
feedback_drained: number;
|
|
967
|
+
job_metadata: Record<string, unknown>;
|
|
968
|
+
created_at?: string | null | undefined;
|
|
969
|
+
started_at?: string | null | undefined;
|
|
970
|
+
dataset_id?: string | null | undefined;
|
|
971
|
+
error?: string | null | undefined;
|
|
972
|
+
completed_at?: string | null | undefined;
|
|
973
|
+
updated_at?: string | null | undefined;
|
|
974
|
+
}, {
|
|
975
|
+
status: string;
|
|
976
|
+
job_id: string;
|
|
977
|
+
trigger: string;
|
|
978
|
+
created_at?: string | null | undefined;
|
|
979
|
+
started_at?: string | null | undefined;
|
|
980
|
+
dataset_id?: string | null | undefined;
|
|
981
|
+
error?: string | null | undefined;
|
|
982
|
+
completed_at?: string | null | undefined;
|
|
983
|
+
updated_at?: string | null | undefined;
|
|
984
|
+
memos_scanned?: number | undefined;
|
|
985
|
+
memos_deduped?: number | undefined;
|
|
986
|
+
edges_reweighted?: number | undefined;
|
|
987
|
+
edges_pruned?: number | undefined;
|
|
988
|
+
feedback_drained?: number | undefined;
|
|
989
|
+
job_metadata?: Record<string, unknown> | undefined;
|
|
990
|
+
}>;
|
|
991
|
+
type RefineJobStatusResponse = z.infer<typeof RefineJobStatusResponse>;
|
|
758
992
|
|
|
759
993
|
/**
|
|
760
994
|
* Z3rno TypeScript SDK client.
|
|
@@ -1159,6 +1393,31 @@ declare class Z3rnoClient {
|
|
|
1159
1393
|
page?: number;
|
|
1160
1394
|
pageSize?: number;
|
|
1161
1395
|
}): Promise<AuditPageResponse>;
|
|
1396
|
+
ingestText(params: {
|
|
1397
|
+
agentId: string;
|
|
1398
|
+
text: string;
|
|
1399
|
+
datasetId?: string;
|
|
1400
|
+
}): Promise<IngestJobResponse>;
|
|
1401
|
+
ingestUrl(params: {
|
|
1402
|
+
agentId: string;
|
|
1403
|
+
url: string;
|
|
1404
|
+
datasetId?: string;
|
|
1405
|
+
}): Promise<IngestJobResponse>;
|
|
1406
|
+
getIngestStatus(jobId: string): Promise<IngestJobStatusResponse>;
|
|
1407
|
+
distill(params: {
|
|
1408
|
+
agentId: string;
|
|
1409
|
+
memoryIds: string[];
|
|
1410
|
+
chunkSize?: number;
|
|
1411
|
+
chunkOverlap?: number;
|
|
1412
|
+
maxConcurrency?: number;
|
|
1413
|
+
summaryStyle?: string;
|
|
1414
|
+
includeSummary?: boolean;
|
|
1415
|
+
}): Promise<DistillJobResponse>;
|
|
1416
|
+
getDistillStatus(jobId: string): Promise<DistillJobStatusResponse>;
|
|
1417
|
+
refine(params?: {
|
|
1418
|
+
datasetId?: string;
|
|
1419
|
+
}): Promise<RefineJobResponse>;
|
|
1420
|
+
getRefineStatus(jobId: string): Promise<RefineJobStatusResponse>;
|
|
1162
1421
|
private request;
|
|
1163
1422
|
private sleep;
|
|
1164
1423
|
private handleResponse;
|
|
@@ -1363,4 +1622,4 @@ declare class Z3rnoConnectionError extends Z3rnoError {
|
|
|
1363
1622
|
constructor(message: string);
|
|
1364
1623
|
}
|
|
1365
1624
|
|
|
1366
|
-
export { AuditEntry, AuditPageResponse, AuthenticationError, BatchStoreResponse, EndSessionResponse, ForgetResponse, MemoryHistoryResponse, MemoryResponse, MemoryType, MemoryVersion, NotFoundError, RateLimitError, RecallResponse, RecallResultItem, RelationshipType, RetrievalStrategy, ServerError, SessionResponse, StoreMemoryRequest, ValidationError, Z3rnoClient, type Z3rnoClientConfig, Z3rnoConnectionError, Z3rnoError, Z3rnoTimeoutError };
|
|
1625
|
+
export { AuditEntry, AuditPageResponse, AuthenticationError, BatchStoreResponse, DistillJobResponse, DistillJobStatusResponse, EndSessionResponse, ForgetResponse, IngestJobResponse, IngestJobStatusResponse, MemoryHistoryResponse, MemoryResponse, MemoryType, MemoryVersion, NotFoundError, RateLimitError, RecallResponse, RecallResultItem, RefineJobResponse, RefineJobStatusResponse, RelationshipType, RetrievalStrategy, ServerError, SessionResponse, StoreMemoryRequest, ValidationError, Z3rnoClient, type Z3rnoClientConfig, Z3rnoConnectionError, Z3rnoError, Z3rnoTimeoutError };
|