@deepraxis/cli 0.2.1-dev.e5614a0 → 0.2.1-dev.ea9c801
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COMMANDS.md +3 -2
- package/dist/praxis.js +146 -14
- package/package.json +1 -1
package/COMMANDS.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Generated by `bun run commands`. DO NOT EDIT.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
522 HTTP operations; 524 commands including aliases.
|
|
6
6
|
|
|
7
7
|
Environment: `PRAXIS_ENV=develop|production` (dev package defaults to `develop`; stable package defaults to `production`). No `--env` option.
|
|
8
8
|
|
|
@@ -381,7 +381,7 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
381
381
|
| `praxis api media library search-expression` | `media.libraries.search.expression.create` | POST `/media/v1/libraries/{library_id}/search/expression` | `--library`, `--expression`, `--max-results`, `--next-cursor`, `--with-field`, `--aggregate` |
|
|
382
382
|
| `praxis api media library search-semantic` | `media.libraries.search.semantic.create` | POST `/media/v1/libraries/{library_id}/search/semantic` | `--library`, `--query`, `--filter`, `--top-k`, `--mode` |
|
|
383
383
|
| `praxis api media library search-visual` | `media.libraries.search.visual.create` | POST `/media/v1/libraries/{library_id}/search/visual` | `--library`, `--asset-id`, `--top-k`, `--filter` |
|
|
384
|
-
| `praxis api media library update <library_id>` | `media.libraries.update` | PATCH `/media/v1/libraries/{library_id}` | `--name` |
|
|
384
|
+
| `praxis api media library update <library_id>` | `media.libraries.update` | PATCH `/media/v1/libraries/{library_id}` | `--hotwords`, `--name` |
|
|
385
385
|
| `praxis api meta doc get <path>` | `meta.docs.retrieve` | GET `/meta/v1/docs/{path}` | `--lang` |
|
|
386
386
|
| `praxis api meta doc search` | `meta.docs.search` | GET `/meta/v1/docs/search` | `--q`, `--param-limit`, `--lang` |
|
|
387
387
|
| `praxis api meta health get` | `meta.health.retrieve` | GET `/meta/v1/health` | |
|
|
@@ -432,6 +432,7 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
432
432
|
| `praxis api organization feedback list` | `organization.feedback.list` | GET `/organization/v1/feedback` | `--phase`, `--query`, `--param-limit`, `--page` |
|
|
433
433
|
| `praxis api organization feedback message create` | `organization.feedback.messages.create` | POST `/organization/v1/feedback/{id}/messages` | `--feedback`, `--body` |
|
|
434
434
|
| `praxis api organization feedback message list` | `organization.feedback.messages.list` | GET `/organization/v1/feedback/{id}/messages` | `--feedback`, `--param-limit`, `--page` |
|
|
435
|
+
| `praxis api organization member list` | `organization.members.list` | GET `/organization/v1/members` | `--param-limit`, `--page` |
|
|
435
436
|
| `praxis api organization usage list` | `organization.usage.list` | GET `/organization/v1/usage` | `--starting-at`, `--ending-at`, `--bucket-width`, `--time-zone`, `--group-by`, `--page` |
|
|
436
437
|
| `praxis api sandbox command run <sandbox_id>` | `sandbox.sandboxes.commands.run` | POST `/sandbox/v1/sandboxes/{sandbox_id}/commands` | `--cmd`, `--background`, `--cwd`, `--timeout-ms` |
|
|
437
438
|
| `praxis api sandbox connect <sandboxID>` | `sandbox.sandboxes.connect` | POST `/sandbox/v1/sandboxes/{sandboxID}/connect` | `--timeout`, `--memory` |
|
package/dist/praxis.js
CHANGED
|
@@ -10158,7 +10158,7 @@ Execution errors include error.details.prints containing output printed before f
|
|
|
10158
10158
|
resource: "cut.projects.frames",
|
|
10159
10159
|
method: "list",
|
|
10160
10160
|
summary: "Render preview frames",
|
|
10161
|
-
description: "Review the visual result at one or more project times without creating an export. Pass comma-separated seconds in at, such as 12,15.5; scale changes preview size and revision selects a committed project revision.
|
|
10161
|
+
description: "Review the visual result at one or more project times without creating an export. Pass comma-separated seconds in at, such as 12,15.5; scale changes preview size and revision selects a committed project revision. Request at most eight times. Each returned url is an inline PNG data URL (data:image/png;base64,...), not a hosted HTTP image link. Decode its base64 payload to save the image. Codemode returns at most four images per call, so request at most four times when reviewing there.",
|
|
10162
10162
|
http: "GET",
|
|
10163
10163
|
path: "/cut/v1/projects/{project_id}/frames",
|
|
10164
10164
|
streaming: "no",
|
|
@@ -10373,7 +10373,88 @@ Execution errors include error.details.prints containing output printed before f
|
|
|
10373
10373
|
resource: "cut.projects",
|
|
10374
10374
|
method: "execute",
|
|
10375
10375
|
summary: "Execute editing script",
|
|
10376
|
-
description:
|
|
10376
|
+
description: `Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: \`const t = AddTrack("video"); Insert(t, {type: "color", color: "#123456", start: 0, length: 3}); Print(t);\`
|
|
10377
|
+
|
|
10378
|
+
### Script function reference
|
|
10379
|
+
|
|
10380
|
+
Functions are synchronous globals; do not import them. \`project\` is the current project ID. TrackId and ClipId are strings returned by AddTrack and Insert or read from GetTimeline. Reads see earlier writes in the same script.
|
|
10381
|
+
|
|
10382
|
+
\`\`\`ts
|
|
10383
|
+
GetTimeline(o?: { from?: number; to?: number; tracks?: TrackId[] }): TimelineView;
|
|
10384
|
+
GetItem(id: ClipId): ItemView;
|
|
10385
|
+
FindItems<T>(visit: (item: ItemView, ctx: { track: TrackView; index: number }) => T | undefined): T[];
|
|
10386
|
+
GetMedia(ref: MediaRef): MediaInfo;
|
|
10387
|
+
GetTranscript(ref: MediaRef, o?: { from?: number; to?: number }): Word[];
|
|
10388
|
+
GetAnalysis(ref: MediaRef, kind: AnalysisKind): Segment[];
|
|
10389
|
+
Insert(track: TrackId, item: ItemInit, o?: { ripple?: boolean }): ClipId;
|
|
10390
|
+
Update(id: ClipId, patch: ItemPatchView): void;
|
|
10391
|
+
Delete(id: ClipId, o?: { ripple?: boolean }): void;
|
|
10392
|
+
Split(id: ClipId, at: number): ClipId;
|
|
10393
|
+
Trim(id: ClipId, edge: "in" | "out", delta: number, o?: { ripple?: boolean }): void;
|
|
10394
|
+
Move(id: ClipId, start: number, track?: TrackId): void;
|
|
10395
|
+
RippleDeleteRange(from: number, to: number, tracks?: TrackId[]): void;
|
|
10396
|
+
AddTrack(kind: "video" | "audio" | "caption", init?: { name?: string }, index?: number): TrackId;
|
|
10397
|
+
UpdateTrack(id: TrackId, patch: TrackPatch): void;
|
|
10398
|
+
DeleteTrack(id: TrackId): void;
|
|
10399
|
+
SetSettings(patch: Partial<ProjectSettingsView>): void;
|
|
10400
|
+
AddCaptionsFromTranscript(track: TrackId, source: ClipId, o?: { style?: Partial<CaptionStyle>; maxChars?: number }): ClipId[];
|
|
10401
|
+
SetMarker(at: number, label: string): string;
|
|
10402
|
+
Print(...values: unknown[]): void;
|
|
10403
|
+
Preview(at: number[]): void;
|
|
10404
|
+
\`\`\`
|
|
10405
|
+
|
|
10406
|
+
| Functions | Behavior and arguments |
|
|
10407
|
+
| --- | --- |
|
|
10408
|
+
| GetTimeline, GetItem | Read compact item views: id, track, type, start, end, length, optional media, sourceIn/sourceOut, text and offline reason. GetTimeline returns duration and tracks (id, kind, name, index, locked, items); from/to and tracks narrow the read. |
|
|
10409
|
+
| FindItems | Visit items with their track and index; return undefined to omit an item, any other value to collect it. |
|
|
10410
|
+
| GetMedia | Read metadata for \`{libraryId, assetId}\` in a bound library: kind, dimensions, fps, hasAudio and durationUs when available. durationUs is microseconds. |
|
|
10411
|
+
| GetTranscript, GetAnalysis | Read available transcript words or silence/filler/scenes segments. Transcript filter from/to is seconds; returned word and segment from/to values are source microseconds (divide by 1,000,000 for editing). Words contain text and optional speaker/filler; segments may include label/confidence. Request analysis first if unavailable. |
|
|
10412
|
+
| Insert, Update, Delete | Insert returns the new clip ID; Update changes supplied fields; Delete removes the clip. Optional ripple on Insert/Delete closes or opens space on the track. |
|
|
10413
|
+
| Split, Trim, Move | Split at a timeline position and return the new right-hand clip ID. Trim changes the in or out edge by delta seconds. Move sets the timeline start and optionally a new track. |
|
|
10414
|
+
| RippleDeleteRange | Delete a timeline interval and close its gap on the specified tracks, or all unlocked tracks when omitted. |
|
|
10415
|
+
| AddTrack, UpdateTrack, DeleteTrack | Add video/audio/caption tracks; index selects layer order (0 is top). TrackPatch supports name, locked, hidden, muted, gainDb and style as appropriate to track kind. |
|
|
10416
|
+
| SetSettings | Supply any of width/height (pixels), fps (frames per second), background (color). |
|
|
10417
|
+
| 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. |
|
|
10418
|
+
| SetMarker | Add a label at a timeline time and return its ID. |
|
|
10419
|
+
| 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. |
|
|
10420
|
+
|
|
10421
|
+
#### Insert fields (ItemInit)
|
|
10422
|
+
|
|
10423
|
+
Every item requires \`type\` and \`start\`. Times used for editing are seconds and snap to the project frame rate: start, length, sourceIn, fadeIn/fadeOut, transition length, keyframe at, reveal delay/stagger/duration. Keyframe and reveal times are relative to the clip start. Video/audio may omit length to use the remaining source duration; other types require length.
|
|
10424
|
+
|
|
10425
|
+
| type | Required fields beyond type/start | Optional fields |
|
|
10426
|
+
| --- | --- | --- |
|
|
10427
|
+
| video | media | length, sourceIn, volumeDb, transform, fit, animate, transitionIn, transitionOut |
|
|
10428
|
+
| image | media, length | transform, fit, animate, transitionIn, transitionOut |
|
|
10429
|
+
| text | text, length | style, transform, reveal, animate, transitionIn, transitionOut |
|
|
10430
|
+
| color | color, length | transform, fill, animate, transitionIn, transitionOut |
|
|
10431
|
+
| shape | shape, length, width, height, fill | radius, stroke, transform, animate, transitionIn, transitionOut |
|
|
10432
|
+
| audio | media | length, sourceIn, volumeDb, fadeIn, fadeOut, transitionIn, transitionOut |
|
|
10433
|
+
| caption | text, length | — |
|
|
10434
|
+
|
|
10435
|
+
Video tracks accept video/image/text/color/shape; audio and caption tracks accept their corresponding type. Media is \`{libraryId: string, assetId: string}\` from a bound library. sourceIn defaults to 0, volumeDb to 0 dB, audio fades to 0 seconds. fit defaults to contain: contain fits the whole image, cover fills and crops, fill stretches, none keeps native dimensions.
|
|
10436
|
+
|
|
10437
|
+
| Field | Value |
|
|
10438
|
+
| --- | --- |
|
|
10439
|
+
| transform | Partial \`{x, y, scale, rotation, opacity, crop, blur}\`. x/y are normalized canvas center coordinates (default 0.5); scale 1 is fitted size; rotation is degrees (default 0); opacity is 0–1 (default 1). crop is \`{top,right,bottom,left}\`. blur is 0–100 pixels at 1080-pixel frame height. |
|
|
10440
|
+
| style | Partial \`{fontFamily, fontSize, fontWeight, color, stroke, background, align, maxWidth}\`. fontFamily: Geist or Noto Sans SC (default); fontSize defaults to 48; fontWeight: 400 (default), 500 or 700; color defaults to #FFFFFF; align: left, center (default), right; maxWidth is a fraction of canvas width (default 0.9). stroke is \`{color,width}\`. Caption style additionally supports position (top/middle/bottom), margin (0–0.4 of canvas height), highlightColor and maxLines: 2. |
|
|
10441
|
+
| animate | An object keyed by x, y, scale, rotation, opacity or blur. Each value is an array of \`{at: number, value: number, ease?: Ease}\` sorted by at with distinct frame-snapped times. Values hold before the first and after the last keyframe, overriding the static transform. |
|
|
10442
|
+
| Ease | linear, in, out, inOut, \`{bezier: [x1,y1,x2,y2]}\` or \`{spring: {stiffness, damping, mass?}}\`. Easing shapes the segment arriving at that keyframe; springs may overshoot. |
|
|
10443
|
+
| reveal | \`{by, delay?: number, stagger: number, duration: number, from: {y?, opacity?, scale?, blur?}, ease?: Ease}\`. by selects char, word or line. Unit k starts at delay + k * stagger and takes duration seconds to reach its resting state; from.y is a fraction of font size. |
|
|
10444
|
+
| fill | A color string (#RRGGBB or #RRGGBBAA), \`{linear: {angle, stops: [{at,color}, ...]}}\` or \`{radial: {stops: [{at,color}, ...]}}\`. Stop positions are 0–1; angle is degrees, 0 left to right. On color clips, fill replaces color when supplied. |
|
|
10445
|
+
| shape, width, height, radius, stroke | shape is rect or ellipse. width/height are fractions of canvas width/height before scaling. radius rounds rect corners in pixels at 1080-pixel frame height. stroke is \`{color: string, width: number}\`. |
|
|
10446
|
+
| transitionIn, transitionOut | \`{kind, length: number}\` at the clip's beginning/end. length is seconds. fade changes opacity; dissolve blends; push_left/push_right move horizontally; wipe_left reveals horizontally. |
|
|
10447
|
+
|
|
10448
|
+
#### Update fields (ItemPatchView)
|
|
10449
|
+
|
|
10450
|
+
All fields are optional; use only fields relevant to the item's type. Supported fields: start, length, sourceIn, volumeDb, transform, fit, text, style, color, fadeIn, fadeOut, animate, reveal, fill, stroke, shape, width, height, radius, transitionIn, transitionOut. Values and units match Insert. Set animate, reveal, fill, stroke, transitionIn or transitionOut to null to remove that effect; omitting a field preserves it. For example: \`Update(id, {volumeDb: -12})\` or \`Update(id, {transitionIn: null})\`.
|
|
10451
|
+
|
|
10452
|
+
#### Script names versus HTTP response names
|
|
10453
|
+
|
|
10454
|
+
Use camelCase inside scripts, including nested objects. HTTP request/response JSON outside script source uses snake_case. Map media.library_id → media.libraryId, media.asset_id → media.assetId, source_in → sourceIn, volume_db → volumeDb, fade_in/fade_out → fadeIn/fadeOut, transition_in/transition_out → transitionIn/transitionOut, font_family/font_size/font_weight/max_width → fontFamily/fontSize/fontWeight/maxWidth, gain_db → gainDb, highlight_color/max_lines → highlightColor/maxLines. Fields such as animate, reveal, fill, stroke, at and length retain their spelling. GetTimeline/GetItem already return camelCase compact views; the expanded retrieveTimeline HTTP response is not an Insert object.
|
|
10455
|
+
|
|
10456
|
+
Unrecognized script fields fail with OPS_REJECTED and rejection code UNKNOWN_FIELD; snake_case mistakes suggest the corresponding camelCase name. The error message lists each rejection's #opIndex, code and reason. Correct the named fields and retry the saved edit; do not assume an ignored field applied an effect.
|
|
10457
|
+
`,
|
|
10377
10458
|
http: "POST",
|
|
10378
10459
|
path: "/cut/v1/projects/{project_id}:execute",
|
|
10379
10460
|
streaming: "no",
|
|
@@ -11465,7 +11546,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11465
11546
|
resource: "file.files",
|
|
11466
11547
|
method: "create",
|
|
11467
11548
|
summary: "Upload file",
|
|
11468
|
-
description: 'Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File(["Return within 23 days."], "policy.txt", { type: "text/plain" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–7776000). Without expiry, the file persists until deleted.',
|
|
11549
|
+
description: 'Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File(["Return within 23 days."], "policy.txt", { type: "text/plain" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–7776000). Without expiry, the file persists until deleted.',
|
|
11469
11550
|
http: "POST",
|
|
11470
11551
|
path: "/file/v1/files",
|
|
11471
11552
|
streaming: "no",
|
|
@@ -11487,10 +11568,11 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11487
11568
|
type: "string",
|
|
11488
11569
|
enum: [
|
|
11489
11570
|
"user_data",
|
|
11571
|
+
"assistants",
|
|
11490
11572
|
"vision"
|
|
11491
11573
|
],
|
|
11492
11574
|
required: true,
|
|
11493
|
-
description: "Purpose label stored with the file: user_data or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data."
|
|
11575
|
+
description: "Purpose label stored with the file: user_data, assistants or vision. The label is stored and returned unchanged; assistants follows the same rules as user_data. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data."
|
|
11494
11576
|
},
|
|
11495
11577
|
{
|
|
11496
11578
|
name: "expires_after",
|
|
@@ -11559,7 +11641,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11559
11641
|
resource: "file.files.contentLinks",
|
|
11560
11642
|
method: "revoke",
|
|
11561
11643
|
summary: "Revoke a file content link",
|
|
11562
|
-
description: 'Stop a previously issued content link from reading a file. Obtain the link with files.contentUrl.create. Use file_id from file creation or listing and the token path component from a content URL (/c/<token>), not the complete URL. The caller must own the file and have write access; a read-only binding is refused. Revocation propagates through the capability deny list within
|
|
11644
|
+
description: 'Stop a previously issued content link from reading a file. Obtain the link with files.contentUrl.create. Use file_id from file creation or listing and the token path component from a content URL (/c/<token>), not the complete URL. The caller must own the file and have write access; a read-only binding is refused. Revocation propagates through the capability deny list within 15 minutes; the file and other links remain available. Only current IAM capability tokens can be revoked; legacy content links expire at the migration deadline. Example body: {"token":"<token from /c/>"}.',
|
|
11563
11645
|
http: "POST",
|
|
11564
11646
|
path: "/file/v1/files/{file_id}/content_links:revoke",
|
|
11565
11647
|
streaming: "no",
|
|
@@ -11588,7 +11670,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11588
11670
|
resource: "file.files.contentUrl",
|
|
11589
11671
|
method: "create",
|
|
11590
11672
|
summary: "Create a download URL",
|
|
11591
|
-
description: `Download a file's bytes to a local disk from a coding agent without sending them through the model. Use file_id from file creation or listing, then run curl -fsSL -o <filename> '<url>' locally with the returned URL; GET needs no Authorization header. The link is reusable until expiry and supports a single byte Range (for example Range: bytes=0-9 returns 206). Revoke it with files.contentLinks.revoke, passing the token after /c/ in the URL. Expired, revoked, invalid or cross-organization URLs return 404. Lifetime defaults to
|
|
11673
|
+
description: `Download a file's bytes to a local disk from a coding agent without sending them through the model. Use file_id from file creation or listing, then run curl -fsSL -o <filename> '<url>' locally with the returned URL; GET needs no Authorization header. The link is reusable until expiry and supports a single byte Range (for example Range: bytes=0-9 returns 206). Revoke it with files.contentLinks.revoke, passing the token after /c/ in the URL. Expired, revoked, invalid or cross-organization URLs return 404. Lifetime defaults to 900 seconds and is at most 604800 seconds. Issuance requires the same credential and file-read access as files.retrieveContent; a processing file returns 409 FILE_NOT_READY, so poll files.retrieve until active before retrying. A missing, expired or other-organization file returns 404. Each issuance creates a new link. OpenAI Files has no signed download URL; this follows S3 presigned GET semantics. Example body: {"ttl_seconds":3600}.`,
|
|
11592
11674
|
http: "POST",
|
|
11593
11675
|
path: "/file/v1/files/{file_id}/content_url",
|
|
11594
11676
|
streaming: "no",
|
|
@@ -11608,7 +11690,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11608
11690
|
name: "ttl_seconds",
|
|
11609
11691
|
type: "integer",
|
|
11610
11692
|
required: false,
|
|
11611
|
-
description: "Download link lifetime in seconds, from 1 through 604800; omitted means
|
|
11693
|
+
description: "Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry."
|
|
11612
11694
|
}
|
|
11613
11695
|
]
|
|
11614
11696
|
}
|
|
@@ -11617,7 +11699,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11617
11699
|
resource: "file.uploads",
|
|
11618
11700
|
method: "create",
|
|
11619
11701
|
summary: "Create an upload",
|
|
11620
|
-
description: "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 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.",
|
|
11702
|
+
description: "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.",
|
|
11621
11703
|
http: "POST",
|
|
11622
11704
|
path: "/file/v1/uploads",
|
|
11623
11705
|
streaming: "no",
|
|
@@ -11650,10 +11732,11 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11650
11732
|
type: "string",
|
|
11651
11733
|
enum: [
|
|
11652
11734
|
"user_data",
|
|
11735
|
+
"assistants",
|
|
11653
11736
|
"vision"
|
|
11654
11737
|
],
|
|
11655
11738
|
required: true,
|
|
11656
|
-
description: "Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images."
|
|
11739
|
+
description: "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images."
|
|
11657
11740
|
},
|
|
11658
11741
|
{
|
|
11659
11742
|
name: "expires_after",
|
|
@@ -11707,10 +11790,11 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11707
11790
|
type: "string",
|
|
11708
11791
|
enum: [
|
|
11709
11792
|
"user_data",
|
|
11793
|
+
"assistants",
|
|
11710
11794
|
"vision"
|
|
11711
11795
|
],
|
|
11712
11796
|
required: false,
|
|
11713
|
-
description: "user_data
|
|
11797
|
+
description: "user_data and assistants store ordinary files and conversation images with their original purpose label; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data."
|
|
11714
11798
|
},
|
|
11715
11799
|
{
|
|
11716
11800
|
name: "expires_in",
|
|
@@ -12736,6 +12820,13 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12736
12820
|
body: {
|
|
12737
12821
|
required: true,
|
|
12738
12822
|
fields: [
|
|
12823
|
+
{
|
|
12824
|
+
name: "hotwords",
|
|
12825
|
+
type: "array",
|
|
12826
|
+
itemType: "string",
|
|
12827
|
+
required: false,
|
|
12828
|
+
description: "Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results."
|
|
12829
|
+
},
|
|
12739
12830
|
{
|
|
12740
12831
|
name: "models",
|
|
12741
12832
|
type: "object",
|
|
@@ -13338,7 +13429,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13338
13429
|
resource: "media.libraries.deliveryTokens",
|
|
13339
13430
|
method: "create",
|
|
13340
13431
|
summary: "Create delivery token",
|
|
13341
|
-
description: "Issue a time-limited bearer token for originals and transformed authenticated assets in an active library. Use library_id from library creation or listing; read access is sufficient. Append token as the __cld_token__ query parameter on a matching delivery URL. The default ACL covers this library and the default lifetime is
|
|
13432
|
+
description: "Issue a time-limited bearer token for originals and transformed authenticated assets in an active library. Use library_id from library creation or listing; read access is sufficient. Append token as the __cld_token__ query parameter on a matching delivery URL. The default ACL covers this library and the default lifetime is 900 seconds; narrow acl and expires_in before sharing. Anyone holding the token can read matching paths until expires_at.",
|
|
13342
13433
|
http: "POST",
|
|
13343
13434
|
path: "/media/v1/libraries/{library_id}/delivery_tokens",
|
|
13344
13435
|
streaming: "no",
|
|
@@ -13364,7 +13455,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13364
13455
|
name: "expires_in",
|
|
13365
13456
|
type: "integer",
|
|
13366
13457
|
required: false,
|
|
13367
|
-
description: "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to
|
|
13458
|
+
description: "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900."
|
|
13368
13459
|
}
|
|
13369
13460
|
]
|
|
13370
13461
|
}
|
|
@@ -13575,7 +13666,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13575
13666
|
name: "expression",
|
|
13576
13667
|
type: "string",
|
|
13577
13668
|
required: false,
|
|
13578
|
-
description: 'Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context.'
|
|
13669
|
+
description: 'Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters.'
|
|
13579
13670
|
},
|
|
13580
13671
|
{
|
|
13581
13672
|
name: "sort_by",
|
|
@@ -16569,6 +16660,31 @@ for more details.`
|
|
|
16569
16660
|
]
|
|
16570
16661
|
}
|
|
16571
16662
|
},
|
|
16663
|
+
{
|
|
16664
|
+
resource: "organization.members",
|
|
16665
|
+
method: "list",
|
|
16666
|
+
summary: "List organization members",
|
|
16667
|
+
description: "Concepts follow GitHub org members: find a person's user id, for example to assign an approver to an approval task. Lists only members of the organization behind your API key or runtime token, ordered by joined_at ascending (membership id breaks ties). Ask the user who should approve, then use that member's id. Emails are visible only within this organization. The request cannot select another organization. Pass next_page unchanged as page; null means the end. Read-only; no usage charge. Example: GET /organization/v1/members?limit=20.",
|
|
16668
|
+
http: "GET",
|
|
16669
|
+
path: "/organization/v1/members",
|
|
16670
|
+
streaming: "no",
|
|
16671
|
+
pagination: false,
|
|
16672
|
+
pathParams: [],
|
|
16673
|
+
query: [
|
|
16674
|
+
{
|
|
16675
|
+
name: "limit",
|
|
16676
|
+
type: "integer",
|
|
16677
|
+
required: false,
|
|
16678
|
+
description: "Maximum members per page, from 1 to 100; defaults to 20."
|
|
16679
|
+
},
|
|
16680
|
+
{
|
|
16681
|
+
name: "page",
|
|
16682
|
+
type: "string",
|
|
16683
|
+
required: false,
|
|
16684
|
+
description: "Opaque next_page cursor returned by the previous response; omit for the first page."
|
|
16685
|
+
}
|
|
16686
|
+
]
|
|
16687
|
+
},
|
|
16572
16688
|
{
|
|
16573
16689
|
resource: "organization.usage",
|
|
16574
16690
|
method: "list",
|
|
@@ -23355,6 +23471,19 @@ var countResponseInputTokens = (options) => (options.client ?? client).post({
|
|
|
23355
23471
|
...options.headers
|
|
23356
23472
|
}
|
|
23357
23473
|
});
|
|
23474
|
+
var listOrganizationMembers = (options) => (options?.client ?? client).get({
|
|
23475
|
+
security: [{
|
|
23476
|
+
key: "BearerAuth",
|
|
23477
|
+
scheme: "bearer",
|
|
23478
|
+
type: "http"
|
|
23479
|
+
}, {
|
|
23480
|
+
key: "ApiKeyAuth",
|
|
23481
|
+
name: "X-API-Key",
|
|
23482
|
+
type: "apiKey"
|
|
23483
|
+
}],
|
|
23484
|
+
url: "/organization/v1/members",
|
|
23485
|
+
...options
|
|
23486
|
+
});
|
|
23358
23487
|
var listOrganizationFeedback = (options) => (options?.client ?? client).get({
|
|
23359
23488
|
security: [{
|
|
23360
23489
|
key: "BearerAuth",
|
|
@@ -30117,6 +30246,9 @@ function createOrganization(transport) {
|
|
|
30117
30246
|
},
|
|
30118
30247
|
retrieve: bind(transport, getOrganizationFeedback)
|
|
30119
30248
|
},
|
|
30249
|
+
members: {
|
|
30250
|
+
list: bind(transport, listOrganizationMembers)
|
|
30251
|
+
},
|
|
30120
30252
|
usage: {
|
|
30121
30253
|
list: bind(transport, listOrganizationUsage)
|
|
30122
30254
|
}
|
|
@@ -33369,7 +33501,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
33369
33501
|
}
|
|
33370
33502
|
|
|
33371
33503
|
// src/main.ts
|
|
33372
|
-
var version = "0.2.1-dev.
|
|
33504
|
+
var version = "0.2.1-dev.ea9c801";
|
|
33373
33505
|
var commands = commandTree(operations);
|
|
33374
33506
|
var manual = [...workflows.map((w) => w.words), [API_WORD]];
|
|
33375
33507
|
function route(argv) {
|