@deepraxis/sdk 0.1.1-dev.2efda8a → 0.1.1-dev.3266b68

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.
@@ -134,7 +134,7 @@ export const operations = [
134
134
  "type": "array",
135
135
  "itemType": "object",
136
136
  "required": false,
137
- "description": "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time."
137
+ "description": "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {\"type\": \"ticket\", \"enabled\": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time."
138
138
  },
139
139
  {
140
140
  "name": "kind",
@@ -7251,6 +7251,16 @@ export const operations = [
7251
7251
  "required": false,
7252
7252
  "description": "可省略;账户使用 default 项目。"
7253
7253
  },
7254
+ {
7255
+ "name": "visibility",
7256
+ "type": "string",
7257
+ "enum": [
7258
+ "private",
7259
+ "organization"
7260
+ ],
7261
+ "required": false,
7262
+ "description": "谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。"
7263
+ },
7254
7264
  {
7255
7265
  "name": "keepAlive",
7256
7266
  "type": "boolean",
@@ -7442,6 +7452,42 @@ export const operations = [
7442
7452
  }
7443
7453
  ]
7444
7454
  },
7455
+ {
7456
+ "resource": "browser.sessions",
7457
+ "method": "retrieveFrame",
7458
+ "summary": "读取会话只读画面帧",
7459
+ "description": "读取会话的一张只读画面帧(JPEG 字节)。创建者可读,同组织其他成员只在该会话声明为组织可见时可读;其余情况一律返回 404 SESSION_NOT_FOUND,不提示会话是否存在。响应体没有任何可控制浏览器的凭据,且不接受任何动作参数。",
7460
+ "http": "GET",
7461
+ "path": "/browser/v1/sessions/{sessionId}/frame",
7462
+ "streaming": "no",
7463
+ "pagination": false,
7464
+ "pathParams": [
7465
+ {
7466
+ "name": "sessionId",
7467
+ "sdkName": "sessionId",
7468
+ "description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
7469
+ }
7470
+ ],
7471
+ "query": []
7472
+ },
7473
+ {
7474
+ "resource": "browser.sessions",
7475
+ "method": "frames",
7476
+ "summary": "订阅会话只读画面",
7477
+ "description": "SSE:只推送只读画面帧,event 为 frame 或 end,data 为帧的 JSON 或 null;帧 data 是 JPEG 的 base64 编码,ts 是浏览器产生该帧的时刻(epoch 毫秒),约每秒最多 5 帧。评论 ping 每 15 秒一次,end 后关闭。这条通道与 /sessions/{sessionId}/stream 相互独立:它的消息只含画面,绝不含 wsUrl、signingKey、connectUrl、debuggerUrl、debuggerFullscreenUrl。创建者可订阅,同组织其他成员只在该会话声明为组织可见时可订阅;其余情况一律返回 404 SESSION_NOT_FOUND。",
7478
+ "http": "GET",
7479
+ "path": "/browser/v1/sessions/{sessionId}/frames",
7480
+ "streaming": "always",
7481
+ "pagination": false,
7482
+ "pathParams": [
7483
+ {
7484
+ "name": "sessionId",
7485
+ "sdkName": "sessionId",
7486
+ "description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
7487
+ }
7488
+ ],
7489
+ "query": []
7490
+ },
7445
7491
  {
7446
7492
  "resource": "browser.sessions.handoff",
7447
7493
  "method": "create",
@@ -7538,6 +7584,16 @@ export const operations = [
7538
7584
  "type": "string",
7539
7585
  "required": true,
7540
7586
  "description": "当前观看者的稳定标识;同一观看者重复心跳应使用相同值,长度为 1–128 个 UTF-16 代码单元。"
7587
+ },
7588
+ {
7589
+ "name": "kind",
7590
+ "type": "string",
7591
+ "enum": [
7592
+ "control",
7593
+ "readonly"
7594
+ ],
7595
+ "required": false,
7596
+ "description": "观看者类型:control 是需要控制浏览器的客户端,readonly 是只读观看者。只读观看者发送 control 也会按 readonly 记录。"
7541
7597
  }
7542
7598
  ]
7543
7599
  }
@@ -14593,7 +14649,7 @@ export const operations = [
14593
14649
  "resource": "media.libraries.assets",
14594
14650
  "method": "list",
14595
14651
  "summary": "List assets",
14596
- "description": "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.",
14652
+ "description": "Upload content into an active library and return the stored asset. 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 asset. Chunk uploads require both chunk headers.",
14597
14653
  "http": "GET",
14598
14654
  "path": "/media/v1/libraries/{library_id}/assets",
14599
14655
  "streaming": "no",
@@ -14612,17 +14668,6 @@ export const operations = [
14612
14668
  "required": false,
14613
14669
  "description": "Filter by the exact organizational folder path; an empty value selects assets at the root. Descendant folders are not included."
14614
14670
  },
14615
- {
14616
- "name": "resource_type",
14617
- "type": "string",
14618
- "enum": [
14619
- "image",
14620
- "video",
14621
- "raw"
14622
- ],
14623
- "required": false,
14624
- "description": "image, video (including audio), raw; auto is accepted by Upload actions only, and listing with auto returns 400."
14625
- },
14626
14671
  {
14627
14672
  "name": "material_type",
14628
14673
  "type": "string",
@@ -14637,10 +14682,11 @@ export const operations = [
14637
14682
  "text_template",
14638
14683
  "animation_preset",
14639
14684
  "lut",
14640
- "transition_map"
14685
+ "transition_map",
14686
+ "file"
14641
14687
  ],
14642
14688
  "required": false,
14643
- "description": "Filter assets to one kind of material, independent of the stored resource_type. Omit to list every material type. Assets stored before this field existed match no material_type filter."
14689
+ "description": "Filter assets to one kind of material. Audio is one material type; use audio_role to tell speech, music and sound effects apart. Omit to list every material type."
14644
14690
  },
14645
14691
  {
14646
14692
  "name": "cursor",
@@ -14755,18 +14801,6 @@ export const operations = [
14755
14801
  "required": false,
14756
14802
  "description": "Requires an image and visual understanding enabled in the library; otherwise returns UNSUPPORTED. Tagging is asynchronous."
14757
14803
  },
14758
- {
14759
- "name": "resource_type",
14760
- "type": "string",
14761
- "enum": [
14762
- "image",
14763
- "video",
14764
- "raw",
14765
- "auto"
14766
- ],
14767
- "required": false,
14768
- "description": "Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto."
14769
- },
14770
14804
  {
14771
14805
  "name": "type",
14772
14806
  "type": "string",
@@ -14878,18 +14912,6 @@ export const operations = [
14878
14912
  "required": false,
14879
14913
  "description": "Minimum confidence for adding generated labels to tags, from 0 to 1 inclusive. Requires an image and enabled visual understanding; labels appear after processing completes."
14880
14914
  },
14881
- {
14882
- "name": "resource_type",
14883
- "type": "string",
14884
- "enum": [
14885
- "image",
14886
- "video",
14887
- "raw",
14888
- "auto"
14889
- ],
14890
- "required": false,
14891
- "description": "Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto."
14892
- },
14893
14915
  {
14894
14916
  "name": "type",
14895
14917
  "type": "string",
@@ -15006,7 +15028,7 @@ export const operations = [
15006
15028
  "resource": "media.assets",
15007
15029
  "method": "edit",
15008
15030
  "summary": "Edit asset",
15009
- "description": "Edit an existing asset and store the result as a new asset. Use library_id from creation or listing and asset_id from asset creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. The source asset is never overwritten: the new asset hangs under it in the edit chain, records it in derived_from, and reads back with assets.lineage, so earlier steps stay reachable. The body is operation plus the optional model, asset_folder, understanding and idempotency_key; operation.type selects the edit and carries that operation’s own fields. This release performs variations, inpaint, erase, replace_object, recolor, remove_background and replace_background on images; every other type in the operation vocabulary — the video and audio edits — is refused with OPERATION_NOT_SUPPORTED. inpaint takes mask, a PNG File identifier beginning with file- whose transparent area marks the region to replace, plus the prompt describing what belongs there. Aspects beyond the source asset’s material type return REFERENCE_TYPE_MISMATCH. Editing is charged through Router and the job records the charge in usage. The response is 202 with a queued Job whose type is image, whose operation is the edit applied, and whose source_asset_id is the asset edited; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until it is completed or failed, then read the produced asset. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/edits with {\"operation\":{\"type\":\"variations\",\"strength\":\"subtle\"}}.",
15031
+ "description": "Edit an existing asset and store the result as a new asset. Use library_id from creation or listing and asset_id from asset creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. The source asset is never overwritten: the new asset hangs under it in the edit chain, records it in derived_from, and reads back with assets.lineage, so earlier steps stay reachable. The body is operation plus the optional model, asset_folder, understanding and idempotency_key; operation.type selects the edit and carries that operation’s own fields. This release performs variations, inpaint, erase, replace_object, recolor, remove_background and replace_background on images; every other type in the operation vocabulary — the video and audio edits — is refused with OPERATION_NOT_SUPPORTED. inpaint takes mask, a PNG File identifier beginning with file- whose transparent area marks the region to replace, plus the prompt describing what belongs there. Aspects beyond the source asset’s material type return REFERENCE_TYPE_MISMATCH. Editing is billed by the model usage it consumes, at the same prices as the model API, and the job records the charge in usage. The response is 202 with a queued Job whose type is image, whose operation is the edit applied, and whose source_asset_id is the asset edited; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until it is completed or failed, then read the produced asset. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/edits with {\"operation\":{\"type\":\"variations\",\"strength\":\"subtle\"}}.",
15010
15032
  "http": "POST",
15011
15033
  "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
15012
15034
  "streaming": "no",
@@ -15037,7 +15059,7 @@ export const operations = [
15037
15059
  "name": "model",
15038
15060
  "type": "string",
15039
15061
  "required": false,
15040
- "description": "Router model that performs the edit; omit it to use the library default image model."
15062
+ "description": "Model that performs the edit; omit it to use the library default image model."
15041
15063
  },
15042
15064
  {
15043
15065
  "name": "asset_folder",
@@ -15274,7 +15296,7 @@ export const operations = [
15274
15296
  "resource": "media.speech",
15275
15297
  "method": "create",
15276
15298
  "summary": "Create speech",
15277
- "description": "Synthesise speech from text and store the recording straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still synthesise. input is the text to speak and voice is required; speed is passed to the provider unchanged, and instructions and language are refused with OPERATION_NOT_SUPPORTED in this release. A voice that names a voice material of this library is refused the same way — voice cloning opens with voices.create. The provider caps one request at a short stretch of text, so a long input is cut into segments at paragraph and sentence boundaries and synthesised in order, then joined into the single recording the library receives: nothing is spoken twice and nothing is dropped. Because the segments are joined byte for byte, a multi-segment input accepts only response_format mp3 (the default) or pcm; opus is available for a single-segment input. A speech job has one result however many segments it took. Synthesis is charged through Router and the job records the charge in usage; a request refused before it starts costs nothing. The response is 202 with a queued Job whose type is speech and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced asset from the library — the recording carries material_type audio, audio_role voice, ai_generated true, and provenance naming this job, the text spoken and the model. Send Idempotency-Key, or idempotency_key in the body, to retry without synthesising and charging twice. Example: POST /media/v1/libraries/default/audio/speech with {\"input\":\"A red kite above a calm sea at sunrise.\",\"voice\":\"alloy\"}.",
15299
+ "description": "Synthesise speech from text and store the recording straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still synthesise. input is the text to speak and voice is required; speed is passed to the provider unchanged, and instructions and language are refused with OPERATION_NOT_SUPPORTED in this release. A voice that names a voice material of this library is refused the same way — voice cloning opens with voices.create. The provider caps one request at a short stretch of text, so a long input is cut into segments at paragraph and sentence boundaries and synthesised in order, then joined into the single recording the library receives: nothing is spoken twice and nothing is dropped. Because the segments are joined byte for byte, a multi-segment input accepts only response_format mp3 (the default) or pcm; opus is available for a single-segment input. A speech job has one result however many segments it took. Synthesis is billed by the model usage it consumes, at the same prices as the model API, and the job records the charge in usage; a request refused before it starts costs nothing. The response is 202 with a queued Job whose type is speech and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced asset from the library — the recording carries material_type audio, audio_role voice, ai_generated true, and provenance naming this job, the text spoken and the model. Send Idempotency-Key, or idempotency_key in the body, to retry without synthesising and charging twice. Example: POST /media/v1/libraries/default/audio/speech with {\"input\":\"A red kite above a calm sea at sunrise.\",\"voice\":\"alloy\"}.",
15278
15300
  "http": "POST",
15279
15301
  "path": "/media/v1/libraries/{library_id}/audio/speech",
15280
15302
  "streaming": "no",
@@ -15506,7 +15528,7 @@ export const operations = [
15506
15528
  "resource": "media.images",
15507
15529
  "method": "generate",
15508
15530
  "summary": "Generate image",
15509
- "description": "Generate one or more images from a text prompt and store them straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still generate. The request body is the image request itself: prompt is required, and n, size, background, output_format, output, references, seed, model, asset_folder and understanding are optional. Set output to sticker for a cut-out with a transparent background. references attach existing assets with a role — edit_target, style, structure or subject — and a model that cannot honour a role returns REFERENCE_TYPE_MISMATCH. Aspect ratio is not accepted for images; name size instead. Generation is charged through Router and the job records the charge in usage; nothing is charged for a request refused before it starts. The response is 202 with a queued Job whose type is image and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced assets from the library. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice. Example: POST /media/v1/libraries/default/images/generations with {\"prompt\":\"A red kite above a calm sea at sunrise\",\"n\":1,\"output\":\"sticker\"}.",
15531
+ "description": "Generate one or more images from a text prompt and store them straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still generate. The request body is the image request itself: prompt is required, and n, size, background, output_format, output, references, seed, model, asset_folder and understanding are optional. Set output to sticker for a cut-out with a transparent background. references attach existing assets with a role — edit_target, style, structure or subject — and a model that cannot honour a role returns REFERENCE_TYPE_MISMATCH. Aspect ratio is not accepted for images; name size instead. Generation is billed by the model usage it consumes, at the same prices as the model API, and the job records the charge in usage; nothing is charged for a request refused before it starts. The response is 202 with a queued Job whose type is image and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced assets from the library. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice. Example: POST /media/v1/libraries/default/images/generations with {\"prompt\":\"A red kite above a calm sea at sunrise\",\"n\":1,\"output\":\"sticker\"}.",
15510
15532
  "http": "POST",
15511
15533
  "path": "/media/v1/libraries/{library_id}/images/generations",
15512
15534
  "streaming": "no",
@@ -15526,7 +15548,7 @@ export const operations = [
15526
15548
  "name": "prompt",
15527
15549
  "type": "string",
15528
15550
  "required": true,
15529
- "description": "Text prompt describing the image to generate; Router forwards it to the image model unchanged."
15551
+ "description": "Text prompt describing the image to generate; the image model receives it unchanged."
15530
15552
  },
15531
15553
  {
15532
15554
  "name": "negative_prompt",
@@ -15544,7 +15566,7 @@ export const operations = [
15544
15566
  "name": "size",
15545
15567
  "type": "string",
15546
15568
  "required": false,
15547
- "description": "Requested pixel size written as width x height. Router validates it against the chosen model and rejects an unsupported size with INVALID_PARAMS."
15569
+ "description": "Requested pixel size written as width x height. The chosen model is validated against it and an unsupported size is rejected with INVALID_PARAMS."
15548
15570
  },
15549
15571
  {
15550
15572
  "name": "background",
@@ -15583,7 +15605,7 @@ export const operations = [
15583
15605
  "type": "array",
15584
15606
  "itemType": "object",
15585
15607
  "required": false,
15586
- "description": "Existing assets the model may use, each with the role it plays. Router answers REFERENCE_TYPE_MISMATCH when the chosen model cannot honour a role."
15608
+ "description": "Existing assets the model may use, each with the role it plays. A chosen model that cannot honour a role answers REFERENCE_TYPE_MISMATCH."
15587
15609
  },
15588
15610
  {
15589
15611
  "name": "seed",
@@ -15595,7 +15617,7 @@ export const operations = [
15595
15617
  "name": "model",
15596
15618
  "type": "string",
15597
15619
  "required": false,
15598
- "description": "Router model with image-generation capability; omit it to use the library default image model."
15620
+ "description": "Model with image-generation capability; omit it to use the library default image model."
15599
15621
  },
15600
15622
  {
15601
15623
  "name": "asset_folder",
@@ -15813,10 +15835,11 @@ export const operations = [
15813
15835
  "text_template",
15814
15836
  "animation_preset",
15815
15837
  "lut",
15816
- "transition_map"
15838
+ "transition_map",
15839
+ "file"
15817
15840
  ],
15818
15841
  "required": false,
15819
- "description": "What this asset is as a reusable material, as opposed to resource_type (its stored file category). Omitted on assets stored before this field existed and on raw assets that are not materials."
15842
+ "description": "What this asset is as a reusable material. Always present: a file whose specific kind cannot be identified is file."
15820
15843
  }
15821
15844
  ]
15822
15845
  }
@@ -15882,7 +15905,7 @@ export const operations = [
15882
15905
  "type": "array",
15883
15906
  "itemType": "string",
15884
15907
  "enum": [
15885
- "resource_type",
15908
+ "material_type",
15886
15909
  "format",
15887
15910
  "asset_folder",
15888
15911
  "processing_state"
@@ -15955,10 +15978,11 @@ export const operations = [
15955
15978
  "text_template",
15956
15979
  "animation_preset",
15957
15980
  "lut",
15958
- "transition_map"
15981
+ "transition_map",
15982
+ "file"
15959
15983
  ],
15960
15984
  "required": false,
15961
- "description": "What this asset is as a reusable material, as opposed to resource_type (its stored file category). Omitted on assets stored before this field existed and on raw assets that are not materials."
15985
+ "description": "What this asset is as a reusable material. Always present: a file whose specific kind cannot be identified is file."
15962
15986
  }
15963
15987
  ]
15964
15988
  }
@@ -16075,7 +16099,7 @@ export const operations = [
16075
16099
  "resource": "media.videos",
16076
16100
  "method": "generate",
16077
16101
  "summary": "Generate video",
16078
- "description": "Generate one or more videos from a text prompt and store them straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still generate. mode says what the video is anchored to: text needs only a prompt, image animates the existing image named by first_frame, and first_last interpolates between first_frame and last_frame. The frames must be image or sticker assets of the same library; Router is sent a fetchable URL for each, recorded in the produced asset’s provenance. mode reference and output gif are refused with OPERATION_NOT_SUPPORTED in this release, and negative_prompt, references and an unknown mode are refused before anything is charged. Every output lands in the library as a video asset as soon as it is ready — there is no candidate state and nothing expires, so outputs.save is not part of this lane. Generation is charged per second through Router and the job records the charge in usage; a refused request costs nothing. The response is 202 with a queued Job whose type is video and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced assets from the library. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice. Example: POST /media/v1/libraries/default/videos/generations with {\"prompt\":\"A red kite above a calm sea at sunrise\",\"mode\":\"text\",\"n\":1}.",
16102
+ "description": "Generate one or more videos from a text prompt and store them straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still generate. mode says what the video is anchored to: text needs only a prompt, image animates the existing image named by first_frame, and first_last interpolates between first_frame and last_frame. The frames must be image or sticker assets of the same library; a fetchable URL for each is sent to the model and recorded in the produced asset’s provenance. mode reference and output gif are refused with OPERATION_NOT_SUPPORTED in this release, and negative_prompt, references and an unknown mode are refused before anything is charged. Every output lands in the library as a video asset as soon as it is ready — there is no candidate state and nothing expires, so outputs.save is not part of this lane. Generation is billed per second by the model usage it consumes, at the same prices as the model API, and the job records the charge in usage; a refused request costs nothing. The response is 202 with a queued Job whose type is video and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced assets from the library. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice. Example: POST /media/v1/libraries/default/videos/generations with {\"prompt\":\"A red kite above a calm sea at sunrise\",\"mode\":\"text\",\"n\":1}.",
16079
16103
  "http": "POST",
16080
16104
  "path": "/media/v1/libraries/{library_id}/videos/generations",
16081
16105
  "streaming": "no",
@@ -16095,7 +16119,7 @@ export const operations = [
16095
16119
  "name": "prompt",
16096
16120
  "type": "string",
16097
16121
  "required": true,
16098
- "description": "Text prompt describing the video to generate; Router forwards it to the video model unchanged."
16122
+ "description": "Text prompt describing the video to generate; the video model receives it unchanged."
16099
16123
  },
16100
16124
  {
16101
16125
  "name": "negative_prompt",
@@ -16138,7 +16162,7 @@ export const operations = [
16138
16162
  "name": "duration_seconds",
16139
16163
  "type": "integer",
16140
16164
  "required": false,
16141
- "description": "Requested video length in seconds. Router validates it against the chosen model’s supported durations and rejects an unsupported value with INVALID_PARAMS."
16165
+ "description": "Requested video length in seconds. The chosen model’s supported durations are validated against it and an unsupported value is rejected with INVALID_PARAMS."
16142
16166
  },
16143
16167
  {
16144
16168
  "name": "resolution",
@@ -16150,13 +16174,13 @@ export const operations = [
16150
16174
  "4k"
16151
16175
  ],
16152
16176
  "required": false,
16153
- "description": "Requested output resolution; Router validates it against the chosen model."
16177
+ "description": "Requested output resolution, validated against the chosen model."
16154
16178
  },
16155
16179
  {
16156
16180
  "name": "aspect_ratio",
16157
16181
  "type": "string",
16158
16182
  "required": false,
16159
- "description": "Output aspect ratio written as width:height; defaults to 16:9. Router validates it against the chosen model and rejects an unsupported ratio with INVALID_PARAMS."
16183
+ "description": "Output aspect ratio written as width:height; defaults to 16:9. The chosen model is validated against it and an unsupported ratio is rejected with INVALID_PARAMS."
16160
16184
  },
16161
16185
  {
16162
16186
  "name": "generate_audio",
@@ -16190,7 +16214,7 @@ export const operations = [
16190
16214
  "name": "model",
16191
16215
  "type": "string",
16192
16216
  "required": false,
16193
- "description": "Router model with video-generation capability; omit it to use the library default video model."
16217
+ "description": "Model with video-generation capability; omit it to use the library default video model."
16194
16218
  },
16195
16219
  {
16196
16220
  "name": "asset_folder",
@@ -17648,7 +17672,9 @@ export const operations = [
17648
17672
  "openai.images.generations",
17649
17673
  "openai.responses",
17650
17674
  "openai.videos",
17651
- "typesafe.systemone"
17675
+ "typesafe.systemone",
17676
+ "volcengine.music",
17677
+ "volcengine.voice_clone"
17652
17678
  ],
17653
17679
  "required": false,
17654
17680
  "description": "Match any comma-separated declared protocol ID; omitted or empty includes all models. Combined with type and output_modalities using AND. Invalid IDs return 400 with all legal values."
@@ -19527,6 +19553,50 @@ export const operations = [
19527
19553
  }
19528
19554
  ]
19529
19555
  },
19556
+ {
19557
+ "resource": "sandbox.events.sandboxes",
19558
+ "method": "retrieve",
19559
+ "summary": "Get sandbox events",
19560
+ "description": "Read one sandbox's lifecycle events, newest first by default. Unlike every other read on this face, it answers for a sandbox whose machine has ENDED (killed or failed) — a sandbox's cause of death is readable here even after its files are gone. The killed event carries eventData.terminationReason (the platform's own reason: requested, lease_expired, max_running, provider_lost, start_failed, retention, admin, unknown) and eventData.kill_reason (the E2B-shaped bucket: request, timeout, admin, orphaned, unknown); the updated event carries expiresAt. Page with offset, limit (1–100, default 10), orderAsc and repeatable types. An ended sandbox that is never going to come back also answers SANDBOX_EXPIRED (410) with terminationReason on its files and commands.",
19561
+ "http": "GET",
19562
+ "path": "/sandbox/v1/events/sandboxes/{sandboxID}",
19563
+ "streaming": "no",
19564
+ "pagination": false,
19565
+ "pathParams": [
19566
+ {
19567
+ "name": "sandboxID",
19568
+ "sdkName": "sandboxID",
19569
+ "description": "Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404."
19570
+ }
19571
+ ],
19572
+ "query": [
19573
+ {
19574
+ "name": "offset",
19575
+ "type": "integer",
19576
+ "required": false,
19577
+ "description": "Number of the newest events to skip before collecting the page; omit to start at the first one. Use it with limit to walk pages: the next page is offset + limit."
19578
+ },
19579
+ {
19580
+ "name": "limit",
19581
+ "type": "integer",
19582
+ "required": false,
19583
+ "description": "Page size from 1 to 100; defaults to 10. A larger value returns INVALID_PARAMS rather than being clipped."
19584
+ },
19585
+ {
19586
+ "name": "orderAsc",
19587
+ "type": "boolean",
19588
+ "required": false,
19589
+ "description": "true returns the oldest event first, false or omitted returns the newest first. Only the literal spellings true and false are accepted."
19590
+ },
19591
+ {
19592
+ "name": "types",
19593
+ "type": "array",
19594
+ "itemType": "string",
19595
+ "required": false,
19596
+ "description": "Filter events to the provided event types"
19597
+ }
19598
+ ]
19599
+ },
19530
19600
  {
19531
19601
  "resource": "sandbox.sandboxes",
19532
19602
  "method": "list",
@@ -20219,6 +20289,12 @@ export const operations = [
20219
20289
  "type": "integer",
20220
20290
  "required": false,
20221
20291
  "description": "Execution timeout in milliseconds, from 1 to 3600000 (1 hour); defaults to 600000 (10 minutes). In background mode this limits process runtime; expiry records exit code 124."
20292
+ },
20293
+ {
20294
+ "name": "progressTimeoutMs",
20295
+ "type": "integer",
20296
+ "required": false,
20297
+ "description": "Foreground commands only, off by default: end this command once it goes this many milliseconds (1000 to 3600000) without writing a single byte to stdout or stderr, and answer COMMAND_NO_PROGRESS (504) with the output received so far and lastOutputAt. The sandbox itself keeps running, so decide afterwards whether to read what it produced or stop it with DELETE. A slow command that keeps producing output is never ended by it; if the program buffers its output, turn buffering off first, for example PYTHONUNBUFFERED=1 or stdbuf -oL. Passing it together with background true is refused with INVALID_PARAMS."
20222
20298
  }
20223
20299
  ]
20224
20300
  }
@@ -21738,6 +21814,12 @@ export const operations = [
21738
21814
  "required": true,
21739
21815
  "description": "Name as the text will mention it; it must be unique inside this library after normalization, and it is what a unit claims when it links this entry."
21740
21816
  },
21817
+ {
21818
+ "name": "group",
21819
+ "type": "string",
21820
+ "required": false,
21821
+ "description": "Free-text group to file this entry under, such as a layer of the setting, a faction or a cast, so people and later sessions find related entries together; leave it out or send an empty string for no group. At most 60 characters."
21822
+ },
21741
21823
  {
21742
21824
  "name": "aliases",
21743
21825
  "type": "array",
@@ -21909,6 +21991,12 @@ export const operations = [
21909
21991
  "required": false,
21910
21992
  "description": "New name for this entry, which also changes what the text has to mention for detection to find it."
21911
21993
  },
21994
+ {
21995
+ "name": "group",
21996
+ "type": "string",
21997
+ "required": false,
21998
+ "description": "New group, replacing the previous one when group is named in the update mask; an empty string removes the entry from its group. At most 60 characters."
21999
+ },
21912
22000
  {
21913
22001
  "name": "aliases",
21914
22002
  "type": "array",
@@ -24806,6 +24894,31 @@ export const operations = [
24806
24894
  }
24807
24895
  ]
24808
24896
  },
24897
+ {
24898
+ "resource": "ticket.repositories",
24899
+ "method": "update",
24900
+ "summary": "Update repositories",
24901
+ "description": "Update repositories within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.",
24902
+ "http": "PATCH",
24903
+ "path": "/ticket/v1/repositories/{id}",
24904
+ "streaming": "no",
24905
+ "pagination": false,
24906
+ "pathParams": [
24907
+ {
24908
+ "name": "id",
24909
+ "sdkName": "id",
24910
+ "description": "Identifier returned by the matching create or list operation; number paths take repository-local numbers."
24911
+ }
24912
+ ],
24913
+ "query": [
24914
+ {
24915
+ "name": "repository",
24916
+ "type": "string",
24917
+ "required": false,
24918
+ "description": "Repository id from GET /ticket/v1/repositories; omit for the default tickets container."
24919
+ }
24920
+ ]
24921
+ },
24809
24922
  {
24810
24923
  "resource": "ticket.tickets",
24811
24924
  "method": "list",
@@ -4011,6 +4011,7 @@ export declare function createBrowser(transport: Transport): {
4011
4011
  nextCursor: string | null;
4012
4012
  }>;
4013
4013
  };
4014
+ frames: (options: import("./core/transport.js").StreamOptions<Types.BrowserStreamSessionFramesData>) => AsyncIterable<Types.BrowserFrameStreamMessage>;
4014
4015
  handoff: {
4015
4016
  complete: (options: import("./core/transport.js").CallOptions<Types.BrowserCompleteHandoffData>) => Promise<Types.BrowserEventRecord>;
4016
4017
  create: (options: import("./core/transport.js").CallOptions<Types.BrowserRequestHandoffData>) => Promise<Types.BrowserEventRecord>;
@@ -4021,6 +4022,7 @@ export declare function createBrowser(transport: Transport): {
4021
4022
  }>;
4022
4023
  retrieve: (options: import("./core/transport.js").CallOptions<Types.BrowserGetSessionData>) => Promise<Types.BrowserSessionGetResult>;
4023
4024
  retrieveDebug: (options: import("./core/transport.js").CallOptions<Types.BrowserGetDebugData>) => Promise<Types.BrowserSessionLiveUrls>;
4025
+ retrieveFrame: (options: import("./core/transport.js").CallOptions<Types.BrowserGetSessionFrameData>) => Promise<Blob | File>;
4024
4026
  stream: (options: import("./core/transport.js").StreamOptions<Types.BrowserStreamSessionData>) => AsyncIterable<Types.BrowserStreamMessage>;
4025
4027
  update: (options: import("./core/transport.js").CallOptions<Types.BrowserCloseSessionData>) => Promise<Types.BrowserSession>;
4026
4028
  viewer: {
@@ -5335,6 +5337,11 @@ export declare function createOrganization(transport: Transport): {
5335
5337
  };
5336
5338
  };
5337
5339
  export declare function createSandbox(transport: Transport): {
5340
+ events: {
5341
+ sandboxes: {
5342
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetSandboxEventsData>) => Promise<Types.SandboxSandboxEvent[]>;
5343
+ };
5344
+ };
5338
5345
  sandboxes: {
5339
5346
  commands: {
5340
5347
  run: (options: import("./core/transport.js").CallOptions<Types.RunSandboxCommandData>) => Promise<{
@@ -5701,6 +5708,7 @@ export declare function createTicket(transport: Transport): {
5701
5708
  repositories: Array<Types.TicketRepository>;
5702
5709
  next_page_token: string;
5703
5710
  }>;
5711
+ update: (options: import("./core/transport.js").CallOptions<Types.TicketPatchRepositoriesIdData>) => Promise<Types.TicketRecord>;
5704
5712
  };
5705
5713
  tickets: {
5706
5714
  comments: {
@@ -373,6 +373,7 @@ export function createBrowser(transport) {
373
373
  events: {
374
374
  list: bind(transport, sdk.browserListEvents),
375
375
  },
376
+ frames: bindStream(transport, sdk.browserStreamSessionFrames),
376
377
  handoff: {
377
378
  complete: bind(transport, sdk.browserCompleteHandoff),
378
379
  create: bind(transport, sdk.browserRequestHandoff),
@@ -380,6 +381,7 @@ export function createBrowser(transport) {
380
381
  list: bind(transport, sdk.browserListSessions),
381
382
  retrieve: bind(transport, sdk.browserGetSession),
382
383
  retrieveDebug: bind(transport, sdk.browserGetDebug),
384
+ retrieveFrame: bind(transport, sdk.browserGetSessionFrame),
383
385
  stream: bindStream(transport, sdk.browserStreamSession),
384
386
  update: bind(transport, sdk.browserCloseSession),
385
387
  viewer: {
@@ -995,6 +997,11 @@ export function createOrganization(transport) {
995
997
  }
996
998
  export function createSandbox(transport) {
997
999
  return {
1000
+ events: {
1001
+ sandboxes: {
1002
+ retrieve: bind(transport, sdk.getSandboxEvents),
1003
+ },
1004
+ },
998
1005
  sandboxes: {
999
1006
  commands: {
1000
1007
  run: bind(transport, sdk.runSandboxCommand),
@@ -1220,6 +1227,7 @@ export function createTicket(transport) {
1220
1227
  },
1221
1228
  repositories: {
1222
1229
  list: bind(transport, sdk.ticketGetRepositories),
1230
+ update: bind(transport, sdk.ticketPatchRepositoriesId),
1223
1231
  },
1224
1232
  tickets: {
1225
1233
  comments: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.1.1-dev.2efda8a",
3
+ "version": "0.1.1-dev.3266b68",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {