@deepraxis/sdk 0.1.1-dev.7d20ab6 → 0.1.1-dev.7fcfb44

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.
@@ -7128,7 +7128,7 @@ export const knowledgeListVectorStores = (options) => (options?.client ?? client
7128
7128
  /**
7129
7129
  * Create knowledge base
7130
7130
  *
7131
- * Create a knowledge base, optionally starting ingestion of uploaded file_ids in the same call; no separate attachment or batch is needed for those files. Use the returned id with vectorStores.files.retrieve to poll each attachment until completed, failed or cancelled; store status=completed alone does not mean every file succeeded. Each file accepts up to 52428800 bytes and 5000000 estimated tokens; each account holds up to 100 active/nondeleted stores. Minimal body: {"name":"Refund policies"}.
7131
+ * Create a knowledge base, optionally starting ingestion of uploaded file_ids in the same call; no separate attachment or batch is needed for those files. Use the returned id with vectorStores.files.retrieve to poll each attachment until completed, failed or cancelled; store status=completed alone does not mean every file succeeded. PDF files accept up to 536870912 bytes (512 MiB), while other formats accept up to 52428800 bytes (50 MiB), constrained by Router conversion; every file is limited to 5000000 estimated tokens; each account holds up to 100 active/nondeleted stores. Minimal body: {"name":"Refund policies"}.
7132
7132
  */
7133
7133
  export const knowledgeCreateVectorStore = (options) => (options.client ?? client).post({
7134
7134
  security: [{
@@ -7224,7 +7224,7 @@ export const knowledgeListFiles = (options) => (options.client ?? client).get({
7224
7224
  /**
7225
7225
  * Add file
7226
7226
  *
7227
- * Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching. Each file accepts up to 52428800 bytes and 5000000 estimated tokens; chunk sizes use estimated tokens rather than a model tokenizer. Text, Markdown, CSV, JSON, HTML, PDF, DOCX, PPTX, XLSX and PNG/JPEG/GIF/WebP images can be extracted; audio and video uploads are not knowledge documents. Images may yield generated descriptions rather than verbatim OCR. auto chunking resolves to static 800/400; explicit sizes are 100–4096 with overlap at most half the size. Each store holds at most 10000 attached files. Reattaching the same file returns its existing record without applying new attributes or chunking; inspect last_error after failure.
7227
+ * Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching. PDF files accept up to 536870912 bytes (512 MiB), while other formats accept up to 52428800 bytes (50 MiB), constrained by Router conversion; every file is limited to 5000000 estimated tokens; chunk sizes use estimated tokens rather than a model tokenizer. Text, Markdown, CSV, JSON, HTML, PDF, DOCX, PPTX, XLSX and PNG/JPEG/GIF/WebP images can be extracted; audio and video uploads are not knowledge documents. Images may yield generated descriptions rather than verbatim OCR. auto chunking resolves to static 800/400; explicit sizes are 100–4096 with overlap at most half the size. Each store holds at most 10000 attached files. Reattaching the same file returns its existing record without applying new attributes or chunking; inspect last_error after failure.
7228
7228
  */
7229
7229
  export const knowledgeAttachFile = (options) => (options.client ?? client).post({
7230
7230
  security: [{
@@ -7446,7 +7446,7 @@ export const knowledgeListEvents = (options) => (options.client ?? client).get({
7446
7446
  /**
7447
7447
  * List libraries
7448
7448
  *
7449
- * List libraries owned by the caller, newest first. By default, deleting and deleted libraries are excluded; use status=deleting to find libraries awaiting purge. All supplied label pairs must match.
7449
+ * Read a caller-owned library’s current settings, usage and lifecycle status. A deleting library remains readable; missing, foreign or purged libraries return LIBRARY_NOT_FOUND.
7450
7450
  */
7451
7451
  export const mediaListLibraries = (options) => (options?.client ?? client).get({
7452
7452
  security: [{
@@ -7475,10 +7475,28 @@ export const mediaCreateLibrary = (options) => (options.client ?? client).post({
7475
7475
  ...options.headers
7476
7476
  }
7477
7477
  });
7478
+ /**
7479
+ * Create frame URLs
7480
+ *
7481
+ * Media creates JPEG frame URLs for inspecting one or more moments in a video without downloading the original. Obtain library_id from libraries and asset_id plus duration from assets. Send 1–20 integer microsecond timestamps strictly below duration, for example {"at_micros":[0,1000000],"width":640}. Only video assets are supported; audio and images return INVALID_PARAMS. Width defaults to 640 and accepts 160, 320 or 640. This read operation does not store a new asset or rerun understanding. Fetch each returned URL to obtain the frame; delivery usage follows media pricing. Authenticated links expire after 300 seconds; upload links remain public and permanent. Reissue expired links. Foreign libraries and assets return 404 without revealing their existence.
7482
+ */
7483
+ export const mediaCreateFrameUrls = (options) => (options.client ?? client).post({
7484
+ security: [{
7485
+ key: 'media-BearerAuth',
7486
+ scheme: 'bearer',
7487
+ type: 'http'
7488
+ }],
7489
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/frames',
7490
+ ...options,
7491
+ headers: {
7492
+ 'Content-Type': 'application/json',
7493
+ ...options.headers
7494
+ }
7495
+ });
7478
7496
  /**
7479
7497
  * Delete library
7480
7498
  *
7481
- * Soft-delete an active library, returning its deleting status and purge_at deadline. Asset operations and delivery become unavailable; the library can be restored before purge_at. Repeated deletion while deleting returns the current library.
7499
+ * Restore a deleting library before its purge_at deadline. The library becomes active again and deleted_at and purge_at are cleared; expired or non-deleting libraries cannot be restored.
7482
7500
  */
7483
7501
  export const mediaDeleteLibrary = (options) => (options.client ?? client).delete({
7484
7502
  security: [{
@@ -7492,7 +7510,7 @@ export const mediaDeleteLibrary = (options) => (options.client ?? client).delete
7492
7510
  /**
7493
7511
  * Get library
7494
7512
  *
7495
- * Read a caller-owned library’s current settings, usage and lifecycle status. A deleting library remains readable; missing, foreign or purged libraries return LIBRARY_NOT_FOUND.
7513
+ * Update an active library’s supplied settings. Labels replace the complete map; understanding settings and model roles merge with current values. Changing the embedding model is rejected while assets exist.
7496
7514
  */
7497
7515
  export const mediaGetLibrary = (options) => (options.client ?? client).get({
7498
7516
  security: [{
@@ -7524,7 +7542,7 @@ export const mediaUpdateLibrary = (options) => (options.client ?? client).patch(
7524
7542
  /**
7525
7543
  * Restore library
7526
7544
  *
7527
- * Restore a deleting library before its purge_at deadline. The library becomes active again and deleted_at and purge_at are cleared; expired or non-deleting libraries cannot be restored.
7545
+ * Permanently remove a library that is already deleting, without waiting for purge_at. Its assets and related resources are removed and cannot be restored; first soft-delete an active library.
7528
7546
  */
7529
7547
  export const mediaRestoreLibrary = (options) => (options.client ?? client).post({
7530
7548
  security: [{
@@ -7538,7 +7556,7 @@ export const mediaRestoreLibrary = (options) => (options.client ?? client).post(
7538
7556
  /**
7539
7557
  * Purge library
7540
7558
  *
7541
- * Permanently remove a library that is already deleting, without waiting for purge_at. Its assets and related resources are removed and cannot be restored; first soft-delete an active library.
7559
+ * List assets in an active library, newest first, optionally filtering by exact folder and stored resource type. Continue using next_cursor; video includes audio-only assets.
7542
7560
  */
7543
7561
  export const mediaPurgeLibrary = (options) => (options.client ?? client).post({
7544
7562
  security: [{
@@ -7552,7 +7570,7 @@ export const mediaPurgeLibrary = (options) => (options.client ?? client).post({
7552
7570
  /**
7553
7571
  * List assets
7554
7572
  *
7555
- * List assets in an active library, newest first, optionally filtering by exact folder and stored resource type. Continue using next_cursor; video includes audio-only assets.
7573
+ * Upload content into an active library and return a Cloudinary-compatible resource. Use file for a multipart file, data URI, public HTTPS URL or same-owner file identifier. Reusing public_id overwrites by default; overwrite=false returns the existing resource. Chunk uploads require both chunk headers.
7556
7574
  */
7557
7575
  export const mediaListAssets = (options) => (options.client ?? client).get({
7558
7576
  security: [{
@@ -7566,7 +7584,7 @@ export const mediaListAssets = (options) => (options.client ?? client).get({
7566
7584
  /**
7567
7585
  * Upload asset
7568
7586
  *
7569
- * Upload content into an active library and return a Cloudinary-compatible resource. Use file for a multipart file, data URI, public HTTPS URL or same-owner file identifier. Reusing public_id overwrites by default; overwrite=false returns the existing resource. Chunk uploads require both chunk headers.
7587
+ * 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.
7570
7588
  */
7571
7589
  export const mediaUploadAsset = (options) => (options.client ?? client).post({
7572
7590
  security: [{
@@ -7584,7 +7602,7 @@ export const mediaUploadAsset = (options) => (options.client ?? client).post({
7584
7602
  /**
7585
7603
  * Import file
7586
7604
  *
7587
- * Copy a File into an independent Media asset. Defaults to public delivery (type=upload); use type=authenticated for private originals and derivatives. Deleting the source File does not delete this copy.
7605
+ * 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.
7588
7606
  */
7589
7607
  export const mediaImportAsset = (options) => (options.client ?? client).post({
7590
7608
  security: [{
@@ -7602,7 +7620,7 @@ export const mediaImportAsset = (options) => (options.client ?? client).post({
7602
7620
  /**
7603
7621
  * Delete asset
7604
7622
  *
7605
- * Delete an asset from the library so it is no longer readable, searchable or deliverable. This removes the asset rather than placing it in the library’s restoration window; a missing asset returns ASSET_NOT_FOUND.
7623
+ * Queue reprocessing of the asset’s current version and return its updated state immediately. Omit kinds to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable completed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Replaced understandings become superseded, and processing finishes asynchronously.
7606
7624
  */
7607
7625
  export const mediaDeleteAsset = (options) => (options.client ?? client).delete({
7608
7626
  security: [{
@@ -7616,7 +7634,7 @@ export const mediaDeleteAsset = (options) => (options.client ?? client).delete({
7616
7634
  /**
7617
7635
  * Get asset
7618
7636
  *
7619
- * Read a non-deleted asset by its asset_id in an active library, including content hashes, processing progress and available previews. Missing or deleted assets return ASSET_NOT_FOUND.
7637
+ * Update an asset’s supplied metadata fields. Tags and context replace their current collections; an empty collection clears them. Moving asset_folder or changing display_name preserves public_id and delivery URLs.
7620
7638
  */
7621
7639
  export const mediaGetAsset = (options) => (options.client ?? client).get({
7622
7640
  security: [{
@@ -7630,7 +7648,7 @@ export const mediaGetAsset = (options) => (options.client ?? client).get({
7630
7648
  /**
7631
7649
  * Update asset
7632
7650
  *
7633
- * Update an asset’s supplied metadata fields. Tags and context replace their current collections; an empty collection clears them. Moving asset_folder or changing display_name preserves public_id and delivery URLs.
7651
+ * Delete an asset from the library so it is no longer readable, searchable or deliverable. This removes the asset rather than placing it in the library’s restoration window; a missing asset returns ASSET_NOT_FOUND.
7634
7652
  */
7635
7653
  export const mediaUpdateAsset = (options) => (options.client ?? client).patch({
7636
7654
  security: [{
@@ -7648,7 +7666,7 @@ export const mediaUpdateAsset = (options) => (options.client ?? client).patch({
7648
7666
  /**
7649
7667
  * Reprocess asset
7650
7668
  *
7651
- * Queue reprocessing of the asset’s current version and return its updated state immediately. Omit kinds to retry failed tasks; explicit kinds rerun applicable completed tasks. Replaced understandings become superseded, and processing finishes asynchronously.
7669
+ * 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.
7652
7670
  */
7653
7671
  export const mediaReprocessAsset = (options) => (options.client ?? client).post({
7654
7672
  security: [{
@@ -7680,7 +7698,7 @@ export const mediaListUnderstandings = (options) => (options.client ?? client).g
7680
7698
  /**
7681
7699
  * Expression search
7682
7700
  *
7683
- * Search active assets using the supported filter-expression syntax, sorting and cursor pagination. Empty expression matches all assets. Tags and context require with_field; inspect the exactness flags before treating counts as complete.
7701
+ * Find visually similar assets using exactly one of asset_id or an inline base64 image. The library must support image search; an asset query needs a current image embedding and excludes that source asset from results.
7684
7702
  */
7685
7703
  export const mediaExpressionSearch = (options) => (options.client ?? client).post({
7686
7704
  security: [{
@@ -7698,7 +7716,7 @@ export const mediaExpressionSearch = (options) => (options.client ?? client).pos
7698
7716
  /**
7699
7717
  * Visual search
7700
7718
  *
7701
- * Find visually similar assets using exactly one of asset_id or an inline base64 image. The library must support image search; an asset query needs a current image embedding and excludes that source asset from results.
7719
+ * Search assets with a nonblank text query and optional expression filter. Hybrid mode combines semantic and keyword matches; semantic mode uses vector similarity only. Results are ranked and limited by top_k.
7702
7720
  */
7703
7721
  export const mediaVisualSearch = (options) => (options.client ?? client).post({
7704
7722
  security: [{
@@ -7716,7 +7734,7 @@ export const mediaVisualSearch = (options) => (options.client ?? client).post({
7716
7734
  /**
7717
7735
  * Semantic search
7718
7736
  *
7719
- * Search assets with a nonblank text query and optional expression filter. Hybrid mode combines semantic and keyword matches; semantic mode uses vector similarity only. Results are ranked and limited by top_k.
7737
+ * Alias of semantic search. Search assets with a nonblank text query, optional expression filter and top_k; hybrid combines semantic and keyword matches, while semantic uses vector similarity only.
7720
7738
  */
7721
7739
  export const mediaSemanticSearch = (options) => (options.client ?? client).post({
7722
7740
  security: [{
@@ -7734,7 +7752,7 @@ export const mediaSemanticSearch = (options) => (options.client ?? client).post(
7734
7752
  /**
7735
7753
  * Semantic search alias
7736
7754
  *
7737
- * Alias of semantic search. Search assets with a nonblank text query, optional expression filter and top_k; hybrid combines semantic and keyword matches, while semantic uses vector similarity only.
7755
+ * List all immediate child folders under parent, or under the root when parent is omitted. Counts include descendant assets. The result is unpaginated; limit and cursor are rejected.
7738
7756
  */
7739
7757
  export const mediaSearch = (options) => (options.client ?? client).post({
7740
7758
  security: [{
@@ -7766,7 +7784,7 @@ export const mediaListFolders = (options) => (options.client ?? client).get({
7766
7784
  /**
7767
7785
  * Create batch
7768
7786
  *
7769
- * 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 rerun. Omit kinds to inspect all failed steps, or supply kinds to narrow them. Unsupported, permanent and completed steps remain unchanged and do not block other retryable steps on the same asset. Assets without any selected retryable failed 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"}}.
7787
+ * 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.
7770
7788
  */
7771
7789
  export const mediaCreateBatch = (options) => (options.client ?? client).post({
7772
7790
  security: [{
@@ -7784,7 +7802,7 @@ export const mediaCreateBatch = (options) => (options.client ?? client).post({
7784
7802
  /**
7785
7803
  * Get batch
7786
7804
  *
7787
- * Read a batch job’s status, successful and failed item counts, and a bounded list of failed items. Use the id returned by batch creation; a job outside this library is not found.
7805
+ * Alias of batch creation. Apply one metadata or deletion action to ids or a frozen expression selection asynchronously; poll the returned job id to inspect completion and item failures.
7788
7806
  */
7789
7807
  export const mediaGetBatch = (options) => (options.client ?? client).get({
7790
7808
  security: [{
@@ -7798,7 +7816,7 @@ export const mediaGetBatch = (options) => (options.client ?? client).get({
7798
7816
  /**
7799
7817
  * Batch assets alias
7800
7818
  *
7801
- * 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 rerun. Omit kinds to inspect all failed steps, or supply kinds to narrow them. Unsupported, permanent and completed steps remain unchanged and do not block other retryable steps on the same asset. Assets without any selected retryable failed 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"}}.
7819
+ * 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.
7802
7820
  */
7803
7821
  export const mediaBatchAssets = (options) => (options.client ?? client).post({
7804
7822
  security: [{
@@ -7816,7 +7834,7 @@ export const mediaBatchAssets = (options) => (options.client ?? client).post({
7816
7834
  /**
7817
7835
  * Get job alias
7818
7836
  *
7819
- * Alias of batch retrieval. Read the job returned by a batch request, including terminal status, successful and failed counts, and individual failure codes.
7837
+ * Read library events in sequence order, including while the library is deleting. Page forward with asc and after_seq, or backward with desc and before_seq; never combine the two sequence cursors.
7820
7838
  */
7821
7839
  export const mediaGetJob = (options) => (options.client ?? client).get({
7822
7840
  security: [{
@@ -7830,7 +7848,7 @@ export const mediaGetJob = (options) => (options.client ?? client).get({
7830
7848
  /**
7831
7849
  * List events
7832
7850
  *
7833
- * Read library events in sequence order, including while the library is deleting. Page forward with asc and after_seq, or backward with desc and before_seq; never combine the two sequence cursors.
7851
+ * Read library events in sequence order for observing asset writes and understanding progress. Obtain library_id from creation or listing; continue with after_seq for asc or before_seq for desc, without combining both. Use next_cursor when supplied. Reads do not start or retry understanding.
7834
7852
  */
7835
7853
  export const mediaListEvents = (options) => (options.client ?? client).get({
7836
7854
  security: [{