@deepraxis/sdk 0.1.1-dev.2835e50 → 0.1.1-dev.2cec3b3

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.
@@ -1169,7 +1169,7 @@ export const fileRetrieveFileContent = (options) => (options.client ?? client).g
1169
1169
  /**
1170
1170
  * Create an upload
1171
1171
  *
1172
- * Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most 2 GiB (2147483648 bytes) and only user_data, assistants and vision purposes. Add parts of at most 64000000 bytes and complete within one hour. Optional part_size enables fixed-size, retryable parts. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.
1172
+ * Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most 20 GiB (21474836480 bytes) and only user_data, assistants and vision purposes. Send parts of at most 64000000 bytes; an unfinished upload waits for them for 7 days, so a client can create → send parts → query GET /file/v1/uploads/{upload_id} → resend only the missing parts → complete. Optional part_size fixes every part length and makes each numbered part retryable with identical bytes. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.
1173
1173
  */
1174
1174
  export const fileCreateUpload = (options) => (options.client ?? client).post({
1175
1175
  security: [{
@@ -1187,7 +1187,7 @@ export const fileCreateUpload = (options) => (options.client ?? client).post({
1187
1187
  /**
1188
1188
  * Add an upload part
1189
1189
  *
1190
- * Send one nonempty part as the multipart data field, at most 64000000 bytes. Parts may arrive concurrently in any order. Use upload_id from create. For a fixed-size upload, supply part_number starting at 1 and exactly part_size bytes except for the final remainder; retry the same number with identical bytes to recover its part ID. Without part_size, each request creates a new part and part_number is ignored. Save the returned part IDs for complete.
1190
+ * Send one nonempty part as the multipart data field, at most 64000000 bytes. Parts may arrive concurrently in any order. Use upload_id from create. For a fixed-size upload, supply part_number starting at 1 and exactly part_size bytes except for the final remainder; retry the same number with identical bytes to recover its part ID, and query GET /file/v1/uploads/{upload_id} to see which numbers already arrived. Without part_size, each request creates a new part and part_number is ignored. Save the returned part IDs for complete.
1191
1191
  */
1192
1192
  export const fileAddUploadPart = (options) => (options.client ?? client).post({
1193
1193
  ...formDataBodySerializer,
@@ -1206,7 +1206,7 @@ export const fileAddUploadPart = (options) => (options.client ?? client).post({
1206
1206
  /**
1207
1207
  * Complete an upload
1208
1208
  *
1209
- * Assemble the uploaded parts into a file. Supply upload_id from create and part_ids from addPart in file byte order; their sizes must total the declared bytes. Optional md5 verifies the assembled content. Retrying identical part_ids and normalized md5 returns the same result; different inputs return 409. Unlike OpenAI, completed can contain a file still processing (status uploaded). Poll files.retrieve using file.id until status processed (own face state active); error, expiry or 404 means processing failed and the file cannot be used.
1209
+ * Assemble the uploaded parts into a file. Supply upload_id from create and part_ids from addPart in file byte order; their sizes must total the declared bytes. When parts were lost, query GET /file/v1/uploads/{upload_id} and resend them before completing. Optional md5 verifies the assembled content. Retrying identical part_ids and normalized md5 returns the same result; different inputs return 409. Unlike OpenAI, completed can contain a file still processing (status uploaded). Poll files.retrieve using file.id until status processed (own face state active); error, expiry or 404 means processing failed and the file cannot be used.
1210
1210
  */
1211
1211
  export const fileCompleteUpload = (options) => (options.client ?? client).post({
1212
1212
  security: [{
@@ -1235,10 +1235,24 @@ export const fileCancelUpload = (options) => (options.client ?? client).post({
1235
1235
  url: '/file/v1/uploads/{upload_id}/cancel',
1236
1236
  ...options
1237
1237
  });
1238
+ /**
1239
+ * Retrieve an upload
1240
+ *
1241
+ * Read the state of an unfinished upload — its status, declared bytes, fixed part_size and the parts it already holds (received_parts, each with part_number, bytes and sha256). After a break or a failed part, call it to resend only the missing numbers, then complete. A cancelled or expired upload is refused; a completed one returns its file. A missing or other-organization upload returns 404.
1242
+ */
1243
+ export const fileRetrieveUpload = (options) => (options.client ?? client).get({
1244
+ security: [{
1245
+ key: 'BearerAuth',
1246
+ scheme: 'bearer',
1247
+ type: 'http'
1248
+ }],
1249
+ url: '/file/v1/uploads/{upload_id}',
1250
+ ...options
1251
+ });
1238
1252
  /**
1239
1253
  * Create a one-time upload URL
1240
1254
  *
1241
- * Upload a local file of up to 2 GiB from a coding agent without sending bytes through the model. Provide basename, exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes), PUT each chunk to its numbered parts[].url in any order, then POST complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid, wrong-action or cross-organization URLs return 404. URL lifetime defaults to 900 seconds for single PUT or 3600 for multipart, at most 604800; all multipart URLs share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {"filename":"photo.png","bytes":2048,"content_type":"image/png"}.
1255
+ * Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide basename, exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid, wrong-action or cross-organization URLs return 404. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {"filename":"photo.png","bytes":2048,"content_type":"image/png"}.
1242
1256
  */
1243
1257
  export const fileCreateSignedUpload = (options) => (options.client ?? client).post({
1244
1258
  security: [{
@@ -6405,7 +6419,9 @@ export const cutUndeleteProject = (options) => (options.client ?? client).post({
6405
6419
  * SetSettings(patch: Partial<ProjectSettingsView>): void;
6406
6420
  * AddCaptionsFromTranscript(track: TrackId, source: ClipId, o?: { style?: Partial<CaptionStyle> & { preset?: string }; maxChars?: number }): ClipId[];
6407
6421
  * InsertTemplate(track: TrackId, o: { template: string; start: number; slots?: Record<string, string> }): ClipId[];
6408
- * AlignCaptions(trackId: TrackId, script: string): { replaced: number; added: number; deleted: number };
6422
+ * AlignCaptions(trackId: TrackId, script: string, options?: { resplit?: boolean; maxChars?: number }): { replaced: number; added: number; deleted: number };
6423
+ * ImportCaptions(trackId: TrackId, text: string, o?: { format?: "srt" | "vtt"; offset?: number }): ClipId[];
6424
+ * ExportCaptions(trackId: TrackId, o: { format: "srt" | "vtt" }): string;
6409
6425
  * SetMarker(at: number, label: string): string;
6410
6426
  * Print(...values: unknown[]): void;
6411
6427
  * Preview(at: number[]): void;
@@ -6428,6 +6444,7 @@ export const cutUndeleteProject = (options) => (options.client ?? client).post({
6428
6444
  * | AddTrack, UpdateTrack, DeleteTrack | Add video/audio/caption tracks; index selects layer order (0 is top). TrackPatch supports name, locked, hidden, muted, gainDb, audio role (`voice`, `music`, `sfx`) and style as appropriate to track kind. |
6429
6445
  * | SetSettings | Supply any of width/height (pixels), fps (frames per second), background (color). |
6430
6446
  * | AddCaptionsFromTranscript | Create captions from an audio/video clip's kept words. Optional maxChars is 1–1000, default 16; style updates the caption track. Returns caption IDs. |
6447
+ * | ImportCaptions, ExportCaptions | Import SRT or WebVTT text onto a caption track and export it back. format is inferred from a WEBVTT header when omitted. offset shifts imported cues in seconds. Import rejects more than 100000 bytes, more than 5000 cues, malformed or overlapping file cues with INVALID_CAPTION_FILE; overlap with existing timeline clips uses the normal OVERLAP rejection. Export sorts by timeline start and writes millisecond timecodes. |
6431
6448
  * | SetMarker | Add a label at a timeline time and return its ID. |
6432
6449
  * | Print, Preview | Print appends text to prints. Preview requests up to eight times total per execute and puts images in the result's frames. Each url is an inline PNG data URL, not an HTTP image link. Decode the base64 payload to save an image. Codemode returns at most four images per call; request at most four times there. |
6433
6450
  *
@@ -7610,7 +7627,7 @@ export const mediaListAssets = (options) => (options.client ?? client).get({
7610
7627
  /**
7611
7628
  * Upload asset
7612
7629
  *
7613
- * For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
7630
+ * For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
7614
7631
  */
7615
7632
  export const mediaUploadAsset = (options) => (options.client ?? client).post({
7616
7633
  security: [{
@@ -7628,7 +7645,7 @@ export const mediaUploadAsset = (options) => (options.client ?? client).post({
7628
7645
  /**
7629
7646
  * Import file
7630
7647
  *
7631
- * Copy a File into an independent Media asset. New assets default to organization-private delivery (type=authenticated); explicitly set type=upload for public originals and derivatives. Omitting type on overwrite preserves the current type. Deleting the source File does not delete this copy. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
7648
+ * Copy a File into an independent Media asset. New assets default to organization-private delivery (type=authenticated); explicitly set type=upload for public originals and derivatives. Omitting type on overwrite preserves the current type. Deleting the source File does not delete this copy. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
7632
7649
  */
7633
7650
  export const mediaImportAsset = (options) => (options.client ?? client).post({
7634
7651
  security: [{
@@ -7692,7 +7709,7 @@ export const mediaUpdateAsset = (options) => (options.client ?? client).patch({
7692
7709
  /**
7693
7710
  * Reprocess asset
7694
7711
  *
7695
- * For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
7712
+ * For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
7696
7713
  */
7697
7714
  export const mediaReprocessAsset = (options) => (options.client ?? client).post({
7698
7715
  security: [{
@@ -7810,7 +7827,7 @@ export const mediaListFolders = (options) => (options.client ?? client).get({
7810
7827
  /**
7811
7828
  * Create batch
7812
7829
  *
7813
- * Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
7830
+ * Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
7814
7831
  */
7815
7832
  export const mediaCreateBatch = (options) => (options.client ?? client).post({
7816
7833
  security: [{
@@ -7842,7 +7859,7 @@ export const mediaGetBatch = (options) => (options.client ?? client).get({
7842
7859
  /**
7843
7860
  * Batch assets alias
7844
7861
  *
7845
- * Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
7862
+ * Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
7846
7863
  */
7847
7864
  export const mediaBatchAssets = (options) => (options.client ?? client).post({
7848
7865
  security: [{
@@ -8009,6 +8026,234 @@ export const mediaGetGenerationCapabilities = (options) => (options?.client ?? c
8009
8026
  url: '/media/v1/generation/capabilities',
8010
8027
  ...options
8011
8028
  });
8029
+ /**
8030
+ * List types
8031
+ *
8032
+ * Read the node and relation types registered for this organization before writing, so a create names a type the graph accepts. Each entry is one registrant's registration with its owner, version and definitions. Types cannot be created at runtime; they are registered by the owning service at deploy time, so a type missing here is not available to write.
8033
+ */
8034
+ export const ontologyListTypes = (options) => (options?.client ?? client).get({
8035
+ security: [{
8036
+ key: 'ontology-bearerAuth',
8037
+ scheme: 'bearer',
8038
+ type: 'http'
8039
+ }],
8040
+ url: '/ontology/v1/types',
8041
+ ...options
8042
+ });
8043
+ /**
8044
+ * Register type
8045
+ *
8046
+ * Register a node or relation type for this organization. Not open yet — this call currently answers 501 NOT_IMPLEMENTED and writes nothing, because a registration is checked and stored by the deploy gate that ships the registering service, not by a runtime call. Until it opens, read the types already in force with praxis.ontology.types.list and create records only of those types.
8047
+ */
8048
+ export const ontologyRegisterType = (options) => (options.client ?? client).post({
8049
+ security: [{
8050
+ key: 'ontology-bearerAuth',
8051
+ scheme: 'bearer',
8052
+ type: 'http'
8053
+ }],
8054
+ url: '/ontology/v1/types',
8055
+ ...options,
8056
+ headers: {
8057
+ 'Content-Type': 'application/json',
8058
+ ...options.headers
8059
+ }
8060
+ });
8061
+ /**
8062
+ * Retrieve type
8063
+ *
8064
+ * Read one registered type's definition before writing a record of it, to learn whether it is a node or an edge, which endpoints an edge type admits, and which origins it accepts. The name comes from types.list; a name that is not registered answers ONTOLOGY_TYPE_UNKNOWN, and writes of that type are refused.
8065
+ */
8066
+ export const ontologyRetrieveType = (options) => (options.client ?? client).get({
8067
+ security: [{
8068
+ key: 'ontology-bearerAuth',
8069
+ scheme: 'bearer',
8070
+ type: 'http'
8071
+ }],
8072
+ url: '/ontology/v1/types/{name}',
8073
+ ...options
8074
+ });
8075
+ /**
8076
+ * List nodes
8077
+ *
8078
+ * Discover the entities in this organization's graph and obtain node ids for retrieval, updates and relations. Filter by type, by free text over names, aliases, descriptions and facts, or by owner; limit is 1–100 and defaults to 50. Omit cursor for the first page, then copy next_cursor into the next request until it is null. A node whose content belongs to somebody else comes back as a restricted entry carrying only its id, type and name.
8079
+ */
8080
+ export const ontologyListNodes = (options) => (options?.client ?? client).get({
8081
+ security: [{
8082
+ key: 'ontology-bearerAuth',
8083
+ scheme: 'bearer',
8084
+ type: 'http'
8085
+ }],
8086
+ url: '/ontology/v1/nodes',
8087
+ ...options
8088
+ });
8089
+ /**
8090
+ * Create node
8091
+ *
8092
+ * Record one entity in the graph, for a system mirroring a record it owns. type must already be registered and ref, when given, must match that type's ref_prefix. Send an Idempotency-Key header; repeating the same key with the same content returns the first result instead of creating a second node. This writes structure only — to give an agent something to remember, use POST /agent/v1/agents/{agent_id}/consolidations.
8093
+ */
8094
+ export const ontologyCreateNode = (options) => (options.client ?? client).post({
8095
+ security: [{
8096
+ key: 'ontology-bearerAuth',
8097
+ scheme: 'bearer',
8098
+ type: 'http'
8099
+ }],
8100
+ url: '/ontology/v1/nodes',
8101
+ ...options,
8102
+ headers: {
8103
+ 'Content-Type': 'application/json',
8104
+ ...options.headers
8105
+ }
8106
+ });
8107
+ /**
8108
+ * Retrieve node
8109
+ *
8110
+ * Read one node's content and, with expand=relations, every relation on and around it. as_of reads the node as it was at that time. A node id from another organization, or one that never existed, answers ONTOLOGY_NODE_NOT_FOUND; a node you may reach but not read returns restricted true with its name only.
8111
+ */
8112
+ export const ontologyRetrieveNode = (options) => (options.client ?? client).get({
8113
+ security: [{
8114
+ key: 'ontology-bearerAuth',
8115
+ scheme: 'bearer',
8116
+ type: 'http'
8117
+ }],
8118
+ url: '/ontology/v1/nodes/{node_id}',
8119
+ ...options
8120
+ });
8121
+ /**
8122
+ * Update node
8123
+ *
8124
+ * Change a node's name, aliases or description when the mirrored record was renamed, without touching its type or identity. Send only the fields to change; omitted fields keep their current values and an explicitly null description clears it. Repeating the same edit converges on the same node, so this needs no Idempotency-Key.
8125
+ */
8126
+ export const ontologyUpdateNode = (options) => (options.client ?? client).patch({
8127
+ security: [{
8128
+ key: 'ontology-bearerAuth',
8129
+ scheme: 'bearer',
8130
+ type: 'http'
8131
+ }],
8132
+ url: '/ontology/v1/nodes/{node_id}',
8133
+ ...options,
8134
+ headers: {
8135
+ 'Content-Type': 'application/json',
8136
+ ...options.headers
8137
+ }
8138
+ });
8139
+ /**
8140
+ * Merge node
8141
+ *
8142
+ * Fold a duplicate node into the node that should survive, when two records are discovered to be the same entity. The merged node's relations and aliases move to the survivor and later reads of the duplicate resolve to it. Send an Idempotency-Key header; repeating the same key replays the first result. Reversal is a staff operation, not available here.
8143
+ */
8144
+ export const ontologyMergeNode = (options) => (options.client ?? client).post({
8145
+ security: [{
8146
+ key: 'ontology-bearerAuth',
8147
+ scheme: 'bearer',
8148
+ type: 'http'
8149
+ }],
8150
+ url: '/ontology/v1/nodes/{node_id}/merge',
8151
+ ...options,
8152
+ headers: {
8153
+ 'Content-Type': 'application/json',
8154
+ ...options.headers
8155
+ }
8156
+ });
8157
+ /**
8158
+ * List relations
8159
+ *
8160
+ * Read the facts in the graph and obtain relation ids for retrieval, invalidation or spreading. Filter by endpoint node, by type and by direction; as_of reads the relations as they were then. Invalidated relations are omitted unless include_invalid is true. limit is 1–100 and defaults to 50; follow next_cursor until it is null.
8161
+ */
8162
+ export const ontologyListRelations = (options) => (options?.client ?? client).get({
8163
+ security: [{
8164
+ key: 'ontology-bearerAuth',
8165
+ scheme: 'bearer',
8166
+ type: 'http'
8167
+ }],
8168
+ url: '/ontology/v1/relations',
8169
+ ...options
8170
+ });
8171
+ /**
8172
+ * Create relation
8173
+ *
8174
+ * Record one fact between two existing nodes, for a system mirroring a relationship it owns. type must be registered and must admit these endpoints; fact states the relationship in one sentence. Send an Idempotency-Key header; repeating the same key returns the first result instead of writing a second relation. This writes structure only — to give an agent something to remember, use POST /agent/v1/agents/{agent_id}/consolidations.
8175
+ */
8176
+ export const ontologyCreateRelation = (options) => (options.client ?? client).post({
8177
+ security: [{
8178
+ key: 'ontology-bearerAuth',
8179
+ scheme: 'bearer',
8180
+ type: 'http'
8181
+ }],
8182
+ url: '/ontology/v1/relations',
8183
+ ...options,
8184
+ headers: {
8185
+ 'Content-Type': 'application/json',
8186
+ ...options.headers
8187
+ }
8188
+ });
8189
+ /**
8190
+ * Retrieve relation
8191
+ *
8192
+ * Read one relation's fact and both of its clocks — valid_at and invalid_at for when it was true in the world, created_at and expired_at for when it was recorded and retired. An id from another organization, or one that never existed, answers ONTOLOGY_EDGE_NOT_FOUND.
8193
+ */
8194
+ export const ontologyRetrieveRelation = (options) => (options.client ?? client).get({
8195
+ security: [{
8196
+ key: 'ontology-bearerAuth',
8197
+ scheme: 'bearer',
8198
+ type: 'http'
8199
+ }],
8200
+ url: '/ontology/v1/relations/{relation_id}',
8201
+ ...options
8202
+ });
8203
+ /**
8204
+ * Invalidate relation
8205
+ *
8206
+ * Mark a relation as no longer true from a world time, when the mirrored record changed. The relation is kept — invalid_at moves and the relation still reads at an earlier as_of, so history stays answerable. Send an Idempotency-Key header; repeating the same key replays the first result. There is no delete.
8207
+ */
8208
+ export const ontologyInvalidateRelation = (options) => (options.client ?? client).post({
8209
+ security: [{
8210
+ key: 'ontology-bearerAuth',
8211
+ scheme: 'bearer',
8212
+ type: 'http'
8213
+ }],
8214
+ url: '/ontology/v1/relations/{relation_id}/invalidate',
8215
+ ...options,
8216
+ headers: {
8217
+ 'Content-Type': 'application/json',
8218
+ ...options.headers
8219
+ }
8220
+ });
8221
+ /**
8222
+ * Apply changeset
8223
+ *
8224
+ * Apply a batch of node, relation and invalidation operations as one transaction, when a mirror has several records to write together and a partial write would leave the graph inconsistent. Every operation succeeds or none is applied. Send an Idempotency-Key header; the same key with the same content replays the first result, and the same key with different content is ONTOLOGY_CONFLICT.
8225
+ */
8226
+ export const ontologyApplyChangeset = (options) => (options.client ?? client).post({
8227
+ security: [{
8228
+ key: 'ontology-bearerAuth',
8229
+ scheme: 'bearer',
8230
+ type: 'http'
8231
+ }],
8232
+ url: '/ontology/v1/changesets',
8233
+ ...options,
8234
+ headers: {
8235
+ 'Content-Type': 'application/json',
8236
+ ...options.headers
8237
+ }
8238
+ });
8239
+ /**
8240
+ * Search nodes
8241
+ *
8242
+ * Resolve text to the nodes it most likely names, when a mirror holds a name and needs the node id it corresponds to. Results are ranked candidates, not an answer, each reporting whether the match came from the node's name, an alias, its description or a relation's fact. Narrow with types, and cap the result count with limit (1–50, default 20). This reads structure; it is not an agent recall — agents recall through POST /agent/v1/agents/{agent_id}/consolidations.
8243
+ */
8244
+ export const ontologySearch = (options) => (options.client ?? client).post({
8245
+ security: [{
8246
+ key: 'ontology-bearerAuth',
8247
+ scheme: 'bearer',
8248
+ type: 'http'
8249
+ }],
8250
+ url: '/ontology/v1/search',
8251
+ ...options,
8252
+ headers: {
8253
+ 'Content-Type': 'application/json',
8254
+ ...options.headers
8255
+ }
8256
+ });
8012
8257
  /**
8013
8258
  * List sandboxes (v2)
8014
8259
  *
@@ -9109,7 +9354,7 @@ export const vaultListVaults = (options) => (options?.client ?? client).get({
9109
9354
  /**
9110
9355
  * Create vault
9111
9356
  *
9112
- * Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. Unlike Anthropic, Agent sessions do not accept nonempty vault_ids; storing a credential or adding its ID to metadata does not enable vault-backed MCP authentication. Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.
9357
+ * Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. Agent sessions and deployments accept up to 50 vault_ids and match their credentials against the session's MCP servers, so a stored static or oauth credential does serve as vault-backed MCP authentication; only environment_variable credentials are not yet placed, because the egress proxy ADR-058 §6 gives them is not built. Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.
9113
9358
  */
9114
9359
  export const vaultCreateVault = (options) => (options.client ?? client).post({
9115
9360
  security: [{