@deepraxis/sdk 0.1.1-dev.9b41ea1 → 0.1.1-dev.9c5dc2f
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/METHODS.md +146 -1
- package/README.md +2 -2
- package/dist/core/errors.d.ts +6 -0
- package/dist/core/errors.js +8 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +374 -138
- package/dist/generated/sdk.gen.js +737 -137
- package/dist/generated/types.gen.d.ts +3909 -108
- package/dist/operations.generated.d.ts +1793 -714
- package/dist/operations.generated.js +4487 -3157
- package/dist/resources.generated.d.ts +95 -0
- package/dist/resources.generated.js +88 -0
- package/package.json +2 -2
|
@@ -513,6 +513,30 @@ export const computersFilesContent = (options) => (options.client ?? client).get
|
|
|
513
513
|
url: '/agent/v1/computers/{computer_id}/files/content',
|
|
514
514
|
...options
|
|
515
515
|
});
|
|
516
|
+
/**
|
|
517
|
+
* Convert a Computer Document to PDF
|
|
518
|
+
*
|
|
519
|
+
* Convert an Office document (docx, doc, ppt, pptx, rtf, odt; up to 16 MiB) to PDF inside a platform-owned ephemeral document sandbox, whatever machine family the computer itself runs on. Returns base64 PDF bytes.
|
|
520
|
+
*
|
|
521
|
+
* Praxis extension: the preview conversion endpoint. The browser never parses an untrusted document — LibreOffice runs only inside an ephemeral document-family sandbox and the converter instance is killed after use. The file stays tenant-owned; non-convertible types answer EXTENSION_NOT_CONVERTIBLE and a failed conversion answers CONVERSION_FAILED.
|
|
522
|
+
*/
|
|
523
|
+
export const computersFilesConvert = (options) => (options.client ?? client).post({
|
|
524
|
+
security: [{
|
|
525
|
+
key: 'BearerAuth',
|
|
526
|
+
scheme: 'bearer',
|
|
527
|
+
type: 'http'
|
|
528
|
+
}, {
|
|
529
|
+
key: 'ApiKeyAuth',
|
|
530
|
+
name: 'X-API-Key',
|
|
531
|
+
type: 'apiKey'
|
|
532
|
+
}],
|
|
533
|
+
url: '/agent/v1/computers/{computer_id}/files/convert',
|
|
534
|
+
...options,
|
|
535
|
+
headers: {
|
|
536
|
+
'Content-Type': 'application/json',
|
|
537
|
+
...options.headers
|
|
538
|
+
}
|
|
539
|
+
});
|
|
516
540
|
/**
|
|
517
541
|
* Connect computer
|
|
518
542
|
*
|
|
@@ -6385,138 +6409,156 @@ export const cutUndeleteProject = (options) => (options.client ?? client).post({
|
|
|
6385
6409
|
*
|
|
6386
6410
|
* 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);`
|
|
6387
6411
|
*
|
|
6388
|
-
*
|
|
6389
|
-
*
|
|
6390
|
-
* 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. JoinId is the string returned by Join or read from GetTimeline().joins. Reads see earlier writes in the same script.
|
|
6391
|
-
*
|
|
6392
|
-
* ```ts
|
|
6393
|
-
* GetTimeline(o?: { from?: number; to?: number; tracks?: TrackId[] }): TimelineView;
|
|
6394
|
-
* GetItem(id: ClipId): ItemView;
|
|
6395
|
-
* FindItems<T>(visit: (item: ItemView, ctx: { track: TrackView; index: number }) => T | undefined): T[];
|
|
6396
|
-
* GetMedia(ref: MediaRef): MediaInfo;
|
|
6397
|
-
* GetTranscript(ref: MediaRef, o?: { from?: number; to?: number }): Word[];
|
|
6398
|
-
* GetAnalysis(ref: MediaRef, kind: AnalysisKind): Segment[];
|
|
6399
|
-
* ListTransitions(): TransitionInfo[];
|
|
6400
|
-
* ListEffects(): EffectInfo[];
|
|
6401
|
-
* ListTextStyles(): TextStylePreset[];
|
|
6402
|
-
* ListTextTemplates(): TextTemplate[];
|
|
6403
|
-
* ListAnimations(): { id: string; version: number; phase: "in" | "out" | "loop"; target: "any" | "text"; name: string; description: string; defaultDuration: number; params: { name: string; type: string; values?: string[]; default?: string | number; min?: number; max?: number; description: string }[] }[];
|
|
6404
|
-
* ListFonts(): { family: string; weights: number[]; scripts: ("latin"|"cjk")[]; source: "bundled"|"catalog" }[];
|
|
6405
|
-
* Insert(track: TrackId, item: ItemInit, o?: { ripple?: boolean }): ClipId;
|
|
6406
|
-
* Update(id: ClipId, patch: ItemPatchView): void;
|
|
6407
|
-
* SetSpeed(id: ClipId, rate: number | { curve: { at: number; rate: number; ease?: Ease }[]; audio?: "mute" | "resample" }, o: { keep: "source" | "duration"; ripple?: boolean }): { length: number; sourceOut: number };
|
|
6408
|
-
* Delete(id: ClipId, o?: { ripple?: boolean }): void;
|
|
6409
|
-
* Join(left: ClipId, right: ClipId, o: { length?: number; effect: TransitionInput }): JoinId;
|
|
6410
|
-
* UpdateJoin(id: JoinId, patch: { length?: number; effect?: TransitionInput }): void;
|
|
6411
|
-
* DeleteJoin(id: JoinId): void;
|
|
6412
|
-
* Split(id: ClipId, at: number): ClipId;
|
|
6413
|
-
* Trim(id: ClipId, edge: "in" | "out", delta: number, o?: { ripple?: boolean }): void;
|
|
6414
|
-
* Move(id: ClipId, start: number, track?: TrackId): void;
|
|
6415
|
-
* RippleDeleteRange(from: number, to: number, tracks?: TrackId[]): void;
|
|
6416
|
-
* AddTrack(kind: "video" | "audio" | "caption", init?: { name?: string; role?: "voice" | "music" | "sfx" }, index?: number): TrackId;
|
|
6417
|
-
* UpdateTrack(id: TrackId, patch: TrackPatch): void;
|
|
6418
|
-
* DeleteTrack(id: TrackId): void;
|
|
6419
|
-
* SetSettings(patch: Partial<ProjectSettingsView>): void;
|
|
6420
|
-
* AddCaptionsFromTranscript(track: TrackId, source: ClipId, o?: { style?: Partial<CaptionStyle> & { preset?: string }; maxChars?: number }): ClipId[];
|
|
6421
|
-
* InsertTemplate(track: TrackId, o: { template: string; start: number; slots?: Record<string, string> }): ClipId[];
|
|
6422
|
-
* AlignCaptions(trackId: TrackId, script: string, options?: { resplit?: boolean; maxChars?: number }): { replaced: number; added: number; deleted: number };
|
|
6423
|
-
* ImportCaptions(trackId: TrackId, text: string, o?: { format?: "srt" | "vtt"; offset?: number }): ClipId[];
|
|
6424
|
-
* ExportCaptions(trackId: TrackId, o: { format: "srt" | "vtt" }): string;
|
|
6425
|
-
* SetMarker(at: number, label: string): string;
|
|
6426
|
-
* Print(...values: unknown[]): void;
|
|
6427
|
-
* Preview(at: number[]): void;
|
|
6428
|
-
* ```
|
|
6429
|
-
*
|
|
6430
|
-
* | Functions | Behavior and arguments |
|
|
6431
|
-
* | --- | --- |
|
|
6432
|
-
* | GetTimeline, GetItem | Read compact item views: id, track, type, start, end, length, optional media, playback, sourceIn/sourceOut, text, effects, blend and offline reason. GetTimeline returns duration, tracks (id, kind, name, index, locked, items), and joins (id, track, left, right, length in seconds, normalized effect). from/to and tracks narrow the items and joins; joins are selected by their overlap window. |
|
|
6433
|
-
* | ListEffects | Discover the shared visual-effect catalog with parameter types, ranges, defaults, cost and bounds. Effects are supported only on visual clips. |
|
|
6434
|
-
* | ListTransitions | Discover the shared validation catalog: each entry contains kind (effect ID), name, description and params. Each parameter has name, type (enum/number/integer), default, description, enum values or numeric min/max. Use the returned kind and parameter names inside effect. |
|
|
6435
|
-
* | ListAnimations | Discover animation presets. Each entry has id, version, phase (`in`, `out`, `loop`), target (`any`, `text`), name, description, defaultDuration (seconds), and params (name, type, values/default/min/max/description as applicable). A slot use is `{preset, duration?, ...params}`; duration is seconds. |
|
|
6436
|
-
* | FindItems | Visit items with their track and index; return undefined to omit an item, any other value to collect it. |
|
|
6437
|
-
* | GetMedia | Read metadata for `{libraryId, assetId}` in a bound library: kind, dimensions, fps, hasAudio and durationUs when available. durationUs is microseconds. |
|
|
6438
|
-
* | 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. |
|
|
6439
|
-
* | 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. |
|
|
6440
|
-
* | SetSpeed | Change video/audio rate in 0.25–4; keep is required. A `{curve: [{at, rate, ease?}, ...], audio?: "mute" | "resample"}` rate is forward-only and holds output duration fixed; pitch preservation is unavailable. Scalar rates: source preserves consumed source and changes length; duration preserves output length. Returns actual length and sourceOut in seconds. Optional ripple explicitly shifts same-track followers when keeping source; otherwise overlaps are rejected. |
|
|
6441
|
-
* | Join, UpdateJoin, DeleteJoin | Join creates an overlap between two butt-adjacent visual clips on the same track and returns its ID. length defaults to 0.5 seconds; effect is required. The right clip and all same-track followers move left by length, shortening that track and potentially the project. UpdateJoin moves those followers by the difference in length; omitted fields are preserved. DeleteJoin moves them right to restore the butt cut. Other tracks stay in place. |
|
|
6442
|
-
* | 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. |
|
|
6443
|
-
* | RippleDeleteRange | Delete a timeline interval and close its gap on the specified tracks, or all unlocked tracks when omitted. |
|
|
6444
|
-
* | AddTrack, UpdateTrack, DeleteTrack | Add video/audio/caption tracks; index selects layer order (0 is top). TrackPatch supports name, locked, hidden, muted, gainDb, audio role (`voice`, `music`, `sfx`) and style as appropriate to track kind. |
|
|
6445
|
-
* | SetSettings | Supply any of width/height (pixels), fps (frames per second), background (color). |
|
|
6446
|
-
* | AddCaptionsFromTranscript | Create captions from an audio/video clip's kept words. Optional maxChars is 1–1000, default 16; style updates the caption track. Returns caption IDs. |
|
|
6447
|
-
* | ImportCaptions, ExportCaptions | Import SRT or WebVTT text onto a caption track and export it back. format is inferred from a WEBVTT header when omitted. offset shifts imported cues in seconds. Import rejects more than 100000 bytes, more than 5000 cues, malformed or overlapping file cues with INVALID_CAPTION_FILE; overlap with existing timeline clips uses the normal OVERLAP rejection. Export sorts by timeline start and writes millisecond timecodes. |
|
|
6448
|
-
* | SetMarker | Add a label at a timeline time and return its ID. |
|
|
6449
|
-
* | Print, Preview | Print appends text to prints. Preview requests up to eight times total per execute and puts images in the result's frames. Each url is an inline PNG data URL, not an HTTP image link. Decode the base64 payload to save an image. Codemode returns at most four images per call; request at most four times there. |
|
|
6450
|
-
*
|
|
6451
|
-
* #### Joins between clips
|
|
6452
|
-
*
|
|
6453
|
-
* Endpoints may be video, image, text, color or shape; audio and caption are rejected. Require 0 < length < each endpoint's length. Each clip allows at most one incoming and one outgoing join; their summed lengths cannot exceed its length. Three-input overlaps, nonadjacent endpoints and cross-track joins are rejected with OPS_REJECTED. Read the rejection's code and message, shorten or remove conflicting joins, and retry the saved edit.
|
|
6454
|
-
*
|
|
6455
|
-
* TransitionInput is an object with kind plus the parameters returned by ListTransitions; omitted parameters use catalog defaults. Unknown kinds and invalid parameters return INVALID_TRANSITION_PARAM with available parameters. Effects: dissolve; dip color black/white default black; push and wipe direction left/right/up/down default left; wipe softness 0–1 default 0; iris centerX/centerY 0–1 default 0.5; blinds integer count 2–64 default 8 and orientation vertical/horizontal default vertical; blur radius 0–100 pixels at 1080-pixel frame height default 24; zoom direction in/out default in, amount 0.1–3 default 1, blur 0–1 default 0.5; clock direction clockwise/counterclockwise default clockwise, startAngle 0–360 degrees default 0 (twelve o'clock), softness 0–1 default 0; flash color white/black default white, intensity 0–1 default 1. Zoom blur uses up to eight radial samples per shot and is slower on server rendering. Join options and UpdateJoin patches accept only length and effect. Effect updates replace the effect object and apply defaults for omitted parameters.
|
|
6456
|
-
*
|
|
6457
|
-
* Minimal example on an existing visual track with adjacent clips left and right: `Print(ListTransitions()); const j = Join(left, right, {length: 0.5, effect: {kind: "dissolve"}}); Print(GetTimeline().joins); Preview([GetItem(right).start + 0.25]);` Use `UpdateJoin(j, {length: 0.8})` to adjust it in a later edit or `DeleteJoin(j)` to restore the cut. Preview uses server-rendered frames and includes joins. Per-clip transitionIn/transitionOut remain separate entrance/exit effects.
|
|
6458
|
-
*
|
|
6459
|
-
* #### Insert fields (ItemInit)
|
|
6460
|
-
*
|
|
6461
|
-
* 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.
|
|
6412
|
+
* <!-- cut-reference:start -->
|
|
6413
|
+
* ### Script function, field and error reference
|
|
6462
6414
|
*
|
|
6463
|
-
*
|
|
6464
|
-
* | --- | --- | --- |
|
|
6465
|
-
* | video | media | length, sourceIn, playback, volumeDb, transform, fit, blend, animate, animation, effects, mask, transitionIn, transitionOut |
|
|
6466
|
-
* | image | media, length | transform, fit, blend, animate, animation, effects, mask, transitionIn, transitionOut |
|
|
6467
|
-
* | text | text, length | style, transform, blend, reveal, animate, animation, effects, mask, transitionIn, transitionOut |
|
|
6468
|
-
* | color | color, length | transform, fill, blend, animate, animation, effects, mask, transitionIn, transitionOut |
|
|
6469
|
-
* | shape | shape, length, width, height, fill | radius, stroke, transform, blend, animate, animation, effects, mask, transitionIn, transitionOut |
|
|
6470
|
-
* | audio | media | length, sourceIn, playback, volumeDb, gain, fadeIn, fadeOut, duck |
|
|
6471
|
-
* | caption | text, length | — |
|
|
6415
|
+
* Every script function, clip field and error code has its own section, read one at a time:
|
|
6472
6416
|
*
|
|
6473
|
-
*
|
|
6474
|
-
*
|
|
6475
|
-
*
|
|
6476
|
-
*
|
|
6477
|
-
*
|
|
6478
|
-
*
|
|
6479
|
-
* | 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. |
|
|
6480
|
-
* | animation | `{in?: AnimationUse, out?: AnimationUse, loop?: AnimationUse}` on visual clips. Each use is `{preset: string, duration?: number, ...params}`; duration and parameter units follow `ListAnimations()`. Presets replace existing animate and reveal when applied. Update accepts `animation: null` to clear the preset and its generated effects. |
|
|
6481
|
-
* | 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. |
|
|
6482
|
-
* | 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. |
|
|
6483
|
-
* | 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. |
|
|
6484
|
-
* | 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}`. |
|
|
6485
|
-
* | 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. |
|
|
6486
|
-
*
|
|
6487
|
-
* #### Visual effects
|
|
6488
|
-
*
|
|
6489
|
-
* `effects` is an ordered stack of at most 8 catalog entries. Call `ListEffects()` to discover the catalog; unknown kinds return `UNKNOWN_EFFECT`, invalid names/values/keyframes return `INVALID_EFFECT_PARAM`, and stacks over 8 return `TOO_MANY_EFFECTS`. Entries include blur, color adjustment, vignette, film grain, chromatic aberration, pixelate, glitch, shake, flash, light leak and built-in `lut` looks; user `.cube` LUTs are not supported. `speed` is cycles per second. Effects run on CPU during export and increase render time. Parameters are discovered with ListEffects(). Catalog entries expose their own parameters through ListEffects(), including `blur` (`radius` 0–100, default 24) and `color_adjust`: `brightness`, `contrast`, `temperature`, and `tint` each range -1–1 (default 0), while `saturation` ranges 0–2 (default 1). Disabled entries are skipped. `color_adjust` uses an SDR-only Rec.709 adjustment matrix with no color management.
|
|
6490
|
-
*
|
|
6491
|
-
* Numeric and integer effect parameters accept `keyframes: {parameter: [{at, value, ease?}, ...]}`; times are seconds relative to the clip, snap to frames like `animate`, must be strictly increasing and within clip duration, and values follow that parameter's catalog range. Omitted parameters use catalog defaults. Trim and Split preserve effect keyframes with the same clip-local behavior as `animate`. There are no custom shaders.
|
|
6492
|
-
*
|
|
6493
|
-
* `blend` applies to the completed visual layer after its content, effects and `transform.blur`; `add` maps to Skia Plus. The default `normal` path adds no blend layer. During Join overlaps, blending is forced to normal because each input is composed on transparency.
|
|
6494
|
-
*
|
|
6495
|
-
* #### Update fields (ItemPatchView)
|
|
6496
|
-
*
|
|
6497
|
-
* All fields are optional; use only fields relevant to the item's type. Supported fields: start, length, sourceIn, playback, volumeDb, transform, fit, text, style, color, fadeIn, fadeOut, duck, animate, reveal, animation, fill, stroke, shape, width, height, radius, transitionIn, transitionOut, effects, blend, mask, gain. Values and units match Insert; set effects or blend to null to clear them. Set animation to null to clear the preset; set animate or reveal to null to remove that effect. Applying a preset replaces existing animate/reveal. Do not set animation together with animate or reveal in one Insert/Update call. Omit a field to preserve it.
|
|
6498
|
-
*
|
|
6499
|
-
* #### Animation presets
|
|
6500
|
-
*
|
|
6501
|
-
* Discover the catalog with `ListAnimations()`. Its entries contain id, version, phase (`in`, `out`, `loop`), target (`any` or `text`), name, description, defaultDuration in seconds, and params. Slots may combine one in, one out and one loop preset. A loop runs only in the interval between in and out; if the same property is animated by multiple slots, loop occupies only that middle interval. Text-target presets are entrances. Their duration controls the rhythm per character/word/line, not the total reveal time. Out and loop presets apply to the whole clip, not per text unit.
|
|
6502
|
-
*
|
|
6503
|
-
* Presets replace the clip's existing animate and reveal when applied. The source preset is retained, so changing clip length or transform automatically regenerates its keyframes/reveal. If a clip becomes shorter, in/out durations shrink proportionally; when it grows, the requested durations are restored. Split keeps in on the left, out on the right, and loop on both. Writing animate or reveal directly detaches the preset; setting animation to null clears both source and generated effects. Insert/Update reject a call that supplies animation together with animate or reveal.
|
|
6504
|
-
*
|
|
6505
|
-
* Errors: UNKNOWN_ANIMATION (unknown preset), INVALID_ANIMATION_PARAM (invalid slot/parameter or frame/keyframe limit), ANIMATION_TOO_LONG (in+out exceed clip length), ANIMATION_TARGET_MISMATCH (text-only preset on a non-text or preset on non-visual clip), ANIMATION_PHASE_MISMATCH (preset in the wrong slot). Each animated property is limited to 600 keyframes; loop duration must be at least 4 frames. `ANIMATION_TOO_LONG` is avoided during later length changes by proportional fitting.
|
|
6506
|
-
*
|
|
6507
|
-
* #### Speed, reverse and freeze
|
|
6508
|
-
*
|
|
6509
|
-
* Video/audio Insert and Update accept playback as `{kind: "rate", rate: number, direction: "forward" | "reverse", audio: "preservePitch" | "resample" | "mute"}` or `{kind: "freeze"}`. Rate is finite and inclusive 0.25–4. Omitted playback defaults to 1× forward with preservePitch; supply the complete rate object when changing playback. preservePitch keeps pitch, resample changes pitch with speed, mute removes audio. Reverse requires explicit audio: "mute"; preservePitch/resample are rejected with UNSUPPORTED_PLAYBACK rather than silently muted. Freeze holds sourceIn and is silent. GetItem/GetTimeline echo playback and the source interval in seconds; sourceOut is exclusive even for reverse and equals sourceIn for freeze.
|
|
6510
|
-
*
|
|
6511
|
-
* Update of playback keeps output length unless length is also supplied. SetSpeed preserves direction/audio, rejects frozen and non-video/audio clips, and requires keep: "source" or "duration". keep: "source" computes round(consumed source / new rate × fps) frames, falling back to floor if rounding would exceed the source end; the returned length/sourceOut are actual frame-rounded seconds. keep: "duration" keeps output length and changes source consumption. Length conflicts fail with OVERLAP; move/shorten the conflicting clip, keep duration, or explicitly use ripple: true to shift following clips on the same track. Source overflow fails with OUT_OF_SOURCE; rate limits fail with RATE_OUT_OF_RANGE. Unknown playback fields and SetSpeed options are rejected with UNKNOWN_FIELD; options only accept keep and boolean ripple.
|
|
6512
|
-
*
|
|
6513
|
-
* Example for an existing four-second video/audio clip id: `Print(SetSpeed(id, 0.5, {keep: "source"})); Print(SetSpeed(id, 2, {keep: "source"}));` returns lengths 8 then 2, keeping the same source interval. Reverse: `Update(id, {playback: {kind: "rate", rate: 1, direction: "reverse", audio: "mute"}})`. Freeze: `Update(id, {playback: {kind: "freeze"}})`. Ensure enough source remains for the chosen length/rate. Browser reverse playback currently displays a placeholder; server-rendered Preview/frames and exports support reverse normally. Speed-adjusted audio is generated asynchronously after the edit transaction commits; exports wait for that audio before rendering.
|
|
6514
|
-
*
|
|
6515
|
-
* #### Script names versus HTTP response names
|
|
6516
|
-
*
|
|
6517
|
-
* 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.
|
|
6417
|
+
* ```
|
|
6418
|
+
* codemode.describe("praxis.cut.script.<Name>") // one function: signature, arguments, return, errors, example
|
|
6419
|
+
* codemode.describe("praxis.cut.fields.<name>") // one field: type, unit, range, default, where writable
|
|
6420
|
+
* codemode.describe("praxis.cut.errors.<CODE>") // one code: meaning, causes, fix
|
|
6421
|
+
* codemode.describe("praxis.cut.script") // names, one page at a time
|
|
6422
|
+
* ```
|
|
6518
6423
|
*
|
|
6519
|
-
*
|
|
6424
|
+
* Published at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.
|
|
6425
|
+
*
|
|
6426
|
+
* #### Script functions (script)
|
|
6427
|
+
*
|
|
6428
|
+
* - `GetTimeline` — Duration, tracks, joins; clips are under `items`.
|
|
6429
|
+
* - `GetItem` — One clip's compact view, by id.
|
|
6430
|
+
* - `FindItems` — Visit every clip with its track; collect results.
|
|
6431
|
+
* - `GetMedia` — Media metadata; `durationUs` is microseconds.
|
|
6432
|
+
* - `GetTranscript` — Transcript words in source microseconds.
|
|
6433
|
+
* - `GetAnalysis` — Silence, filler or scene segments.
|
|
6434
|
+
* - `ListTransitions` — Join transition kinds and parameters.
|
|
6435
|
+
* - `ListEffects` — Visual-effect catalog and parameters.
|
|
6436
|
+
* - `ListAnimations` — Animation presets by phase and target.
|
|
6437
|
+
* - `ListFonts` — Font families, weights and scripts.
|
|
6438
|
+
* - `ListTextStyles` — Text style presets for `style.preset`.
|
|
6439
|
+
* - `ListTextTemplates` — Multi-layer templates and their slots.
|
|
6440
|
+
* - `Insert` — Add a clip; a track never overlaps itself.
|
|
6441
|
+
* - `Append` — Add a clip at the end of a track.
|
|
6442
|
+
* - `Update` — Change named fields; the rest stay.
|
|
6443
|
+
* - `SetSpeed` — Change rate, keeping source or duration.
|
|
6444
|
+
* - `Delete` — Remove a clip. There is no `Remove`.
|
|
6445
|
+
* - `Join` — Overlap clips; followers shift, track shortens.
|
|
6446
|
+
* - `UpdateJoin` — Change a join's length or effect.
|
|
6447
|
+
* - `DeleteJoin` — Remove a join; restore the butt cut.
|
|
6448
|
+
* - `Split` — Cut a clip in two at a time.
|
|
6449
|
+
* - `Trim` — Move one clip edge by seconds.
|
|
6450
|
+
* - `Move` — Set a clip's start or track.
|
|
6451
|
+
* - `RippleDeleteRange` — Cut a time range and close the gap.
|
|
6452
|
+
* - `AddTrack` — Add a video, audio or caption track.
|
|
6453
|
+
* - `UpdateTrack` — Change a track's name, lock, gain or role.
|
|
6454
|
+
* - `DeleteTrack` — Remove a track and its clips.
|
|
6455
|
+
* - `SetSettings` — Change canvas, frame rate or background.
|
|
6456
|
+
* - `AddCaptionsFromTranscript` — Captions from a clip's kept words.
|
|
6457
|
+
* - `InsertTemplate` — Insert a template and fill its slots.
|
|
6458
|
+
* - `AlignCaptions` — Rebuild captions from text punctuation.
|
|
6459
|
+
* - `ImportCaptions` — Import SRT or WebVTT onto captions.
|
|
6460
|
+
* - `ExportCaptions` — Export captions as SRT or WebVTT.
|
|
6461
|
+
* - `SetMarker` — Label a timeline position.
|
|
6462
|
+
* - `Print` — Append values to the result's `prints`.
|
|
6463
|
+
* - `Preview` — Up to 8 frames as inline PNG data URLs.
|
|
6464
|
+
*
|
|
6465
|
+
* #### Fields (fields)
|
|
6466
|
+
*
|
|
6467
|
+
* - `type` — Clip kind; decides which fields apply.
|
|
6468
|
+
* - `start` — Clip start in seconds; snaps to frames.
|
|
6469
|
+
* - `length` — Duration; optional for video and audio.
|
|
6470
|
+
* - `media` — Source `{ libraryId, assetId }`.
|
|
6471
|
+
* - `sourceIn` — First source second kept; default 0.
|
|
6472
|
+
* - `sourceOut` — Exclusive source end; read-only.
|
|
6473
|
+
* - `text` — Text of a text or caption clip.
|
|
6474
|
+
* - `color` — Solid colour of a color clip.
|
|
6475
|
+
* - `shape` — Shape clip kind: `rect` or `ellipse`.
|
|
6476
|
+
* - `width` — Shape width, a fraction of canvas width.
|
|
6477
|
+
* - `height` — Shape height, a fraction of canvas height.
|
|
6478
|
+
* - `radius` — Rect corner rounding, in 1080-height px.
|
|
6479
|
+
* - `fill` — Shape or text paint: colour or gradient.
|
|
6480
|
+
* - `stroke` — Shape outline: colour and width.
|
|
6481
|
+
* - `transform` — Position, scale, rotation, opacity, crop, blur.
|
|
6482
|
+
* - `fit` — contain, cover, fill or none.
|
|
6483
|
+
* - `blend` — Layer blend mode; null clears.
|
|
6484
|
+
* - `style` — Text styling: font, fill, strokes, glow, position.
|
|
6485
|
+
* - `style.position` — top, middle or bottom; omit it, never null.
|
|
6486
|
+
* - `playback` — Rate, direction, audio policy, or freeze.
|
|
6487
|
+
* - `volumeDb` — Audio level in dB; 0 is source level.
|
|
6488
|
+
* - `gain` — Keyframed audio level in dB.
|
|
6489
|
+
* - `fadeIn` — Fade-in seconds at the clip's start.
|
|
6490
|
+
* - `fadeOut` — Fade-out seconds at the clip's end.
|
|
6491
|
+
* - `duck` — Lower this clip while another track plays.
|
|
6492
|
+
* - `animate` — Transform keyframes; `at` is clip-relative seconds.
|
|
6493
|
+
* - `reveal` — Per-character, word or line reveal timing.
|
|
6494
|
+
* - `animation` — Preset slots `{ in, out, loop }`; null clears.
|
|
6495
|
+
* - `effects` — Effect stack, at most 8; null clears.
|
|
6496
|
+
* - `transitionIn` — Entrance effect: kind plus seconds.
|
|
6497
|
+
* - `transitionOut` — Exit effect: kind plus seconds.
|
|
6498
|
+
* - `mask` — Shape, path or track matte.
|
|
6499
|
+
* - `words` — Caption words with clip-local times.
|
|
6500
|
+
*
|
|
6501
|
+
* #### Error codes (errors)
|
|
6502
|
+
*
|
|
6503
|
+
* - `JOIN_CONFLICT` — A join is invalid or blocks this edit.
|
|
6504
|
+
* - `INVALID_TRANSITION` — Bad transition kind, parameter or length.
|
|
6505
|
+
* - `INVALID_STYLE` — A style value is out of range.
|
|
6506
|
+
* - `INVALID_MASK` — A mask definition is malformed.
|
|
6507
|
+
* - `MASK_IN_USE` — The edit would break a live mask.
|
|
6508
|
+
* - `TOO_MANY_MASKS` — At most 16 masks per project.
|
|
6509
|
+
* - `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.
|
|
6510
|
+
* - `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.
|
|
6511
|
+
* - `INVALID_PLAYBACK` — A playback object is partial or malformed.
|
|
6512
|
+
* - `UNKNOWN_FONT` — The family is not in `ListFonts()`.
|
|
6513
|
+
* - `UNKNOWN_FIELD` — The field name is not accepted here.
|
|
6514
|
+
* - `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.
|
|
6515
|
+
* - `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.
|
|
6516
|
+
* - `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.
|
|
6517
|
+
* - `OVERLAP` — Two clips on one track would share time.
|
|
6518
|
+
* - `OUT_OF_SOURCE` — The clip would read past its source.
|
|
6519
|
+
* - `LOCKED_TRACK` — The edit targets a locked track.
|
|
6520
|
+
* - `UNBOUND_LIBRARY` — The library is not bound to the project.
|
|
6521
|
+
* - `TRACK_KIND_MISMATCH` — The clip type does not fit the track.
|
|
6522
|
+
* - `NOT_FOUND` — The named id is not in this project.
|
|
6523
|
+
* - `TOO_SHORT` — The result would be under one frame.
|
|
6524
|
+
* - `INVALID_DUCK` — Bad `duck` level or a missing track.
|
|
6525
|
+
* - `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.
|
|
6526
|
+
* - `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.
|
|
6527
|
+
* - `ANIMATION_TOO_LONG` — In plus out exceed the clip length.
|
|
6528
|
+
* - `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.
|
|
6529
|
+
* - `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.
|
|
6530
|
+
* - `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.
|
|
6531
|
+
* - `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.
|
|
6532
|
+
* - `TOO_MANY_EFFECTS` — More than 8 effects on one clip.
|
|
6533
|
+
* - `PROJECT_NOT_FOUND` — No visible project has this id.
|
|
6534
|
+
* - `EXPORT_NOT_FOUND` — No such export in this project.
|
|
6535
|
+
* - `DRAFT_RENDER_NOT_FOUND` — No such draft render.
|
|
6536
|
+
* - `VERSION_NOT_FOUND` — No saved version has this revision.
|
|
6537
|
+
* - `LIBRARY_NOT_FOUND` — The library is missing or invisible.
|
|
6538
|
+
* - `BINDING_INVALID` — The binding request is malformed.
|
|
6539
|
+
* - `BINDING_IN_USE` — Clips still use this library's assets.
|
|
6540
|
+
* - `NOTHING_TO_UNDO` — No earlier revision to return to.
|
|
6541
|
+
* - `NOTHING_TO_REDO` — No undone revision is waiting.
|
|
6542
|
+
* - `UNDO_CONFLICT` — The revision to undo is no longer head.
|
|
6543
|
+
* - `REVISION_CONFLICT` — The project moved; your revision is stale.
|
|
6544
|
+
* - `CUT_BUSY` — The project is busy; retry.
|
|
6545
|
+
* - `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.
|
|
6546
|
+
* - `SCRIPT_ERROR` — The script threw or did not parse.
|
|
6547
|
+
* - `SCRIPT_LIMIT` — An execute budget was exceeded.
|
|
6548
|
+
* - `OPS_REJECTED` — An op failed; the whole edit rolled back.
|
|
6549
|
+
* - `EDIT_EXPIRED` — The saved edit id is over ten minutes old.
|
|
6550
|
+
* - `MEDIA_OFFLINE` — The asset cannot be fetched right now.
|
|
6551
|
+
* - `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.
|
|
6552
|
+
* - `MEDIA_IMPORT_FAILED` — Importing media failed.
|
|
6553
|
+
* - `FRAME_OUT_OF_RANGE` — The preview time is outside the project.
|
|
6554
|
+
* - `PROJECT_TOO_LARGE` — The project exceeds the size limit.
|
|
6555
|
+
* - `RESPONSE_TOO_LARGE` — The response would exceed its budget.
|
|
6556
|
+
* - `EXPORT_FAILED` — The render failed; read `error.cause`.
|
|
6557
|
+
* - `INVALID_PARAMS` — The request is malformed.
|
|
6558
|
+
* - `PERMISSION_DENIED` — This credential may not do that here.
|
|
6559
|
+
* - `NOT_IMPLEMENTED` — Not available on this platform yet.
|
|
6560
|
+
* - `INTERNAL` — Unexpected failure; retry with the request id.
|
|
6561
|
+
* <!-- cut-reference:end -->
|
|
6520
6562
|
*
|
|
6521
6563
|
*/
|
|
6522
6564
|
export const cutExecute = (options) => (options.client ?? client).post({
|
|
@@ -6732,6 +6774,46 @@ export const cutCreateExport = (options) => (options.client ?? client).post({
|
|
|
6732
6774
|
...options.headers
|
|
6733
6775
|
}
|
|
6734
6776
|
});
|
|
6777
|
+
/**
|
|
6778
|
+
* Create draft range render
|
|
6779
|
+
*
|
|
6780
|
+
* Render one interval of the timeline so you can hear or look at how that passage comes out, without publishing anything to a media library. Choose kind audio for the mixed soundtrack as an .m4a file, or kind video for a draft-quality .mp4 with picture and sound. from and to are seconds on the project clock and must satisfy 0 <= from < to, to <= the timeline duration, and to - from <= 120; a longer passage is requested in several 分段请求 ranges and joined by the caller. The result is a temporary file (purpose user_data) that expires 24 hours after it is stored and is never imported into a library, so it is not a deliverable and carries no cut-export tag. HTTP 202 only accepts the job; poll praxis.cut.renders.retrieve using the returned id until status is done or failed, then read url while it lasts. A draft also bills like a draft export, by rendered seconds. Each project runs at most 2 draft renders at a time, a budget separate from its exports; a third answers HTTP 429 CUT_BUSY and the same call succeeds once one finishes.
|
|
6781
|
+
*/
|
|
6782
|
+
export const cutCreateRender = (options) => (options.client ?? client).post({
|
|
6783
|
+
security: [{
|
|
6784
|
+
key: 'BearerAuth',
|
|
6785
|
+
scheme: 'bearer',
|
|
6786
|
+
type: 'http'
|
|
6787
|
+
}, {
|
|
6788
|
+
key: 'ApiKeyAuth',
|
|
6789
|
+
name: 'X-API-Key',
|
|
6790
|
+
type: 'apiKey'
|
|
6791
|
+
}],
|
|
6792
|
+
url: '/cut/v1/projects/{project_id}/renders',
|
|
6793
|
+
...options,
|
|
6794
|
+
headers: {
|
|
6795
|
+
'Content-Type': 'application/json',
|
|
6796
|
+
...options.headers
|
|
6797
|
+
}
|
|
6798
|
+
});
|
|
6799
|
+
/**
|
|
6800
|
+
* Retrieve draft range render
|
|
6801
|
+
*
|
|
6802
|
+
* Poll a draft render id returned by projects.renders.create to see whether the interval is ready, then read url while it lasts. queued and rendering are in progress; done provides file_id and a short-lived url for the rendered .m4a or .mp4; failed provides error. Only done yields a url, and the file behind it disappears 24 hours after it was stored, so retrieve again when the link has expired.
|
|
6803
|
+
*/
|
|
6804
|
+
export const cutRetrieveRender = (options) => (options.client ?? client).get({
|
|
6805
|
+
security: [{
|
|
6806
|
+
key: 'BearerAuth',
|
|
6807
|
+
scheme: 'bearer',
|
|
6808
|
+
type: 'http'
|
|
6809
|
+
}, {
|
|
6810
|
+
key: 'ApiKeyAuth',
|
|
6811
|
+
name: 'X-API-Key',
|
|
6812
|
+
type: 'apiKey'
|
|
6813
|
+
}],
|
|
6814
|
+
url: '/cut/v1/renders/{render_id}',
|
|
6815
|
+
...options
|
|
6816
|
+
});
|
|
6735
6817
|
/**
|
|
6736
6818
|
* Retrieve video export
|
|
6737
6819
|
*
|
|
@@ -7154,6 +7236,296 @@ export const databaseInsert = (options) => (options.client ?? client).post({
|
|
|
7154
7236
|
...options.headers
|
|
7155
7237
|
}
|
|
7156
7238
|
});
|
|
7239
|
+
/**
|
|
7240
|
+
* Read a commit's test catalog
|
|
7241
|
+
*
|
|
7242
|
+
* Read the catalog version discovered at one commit — how many suites and cases it holds, which frameworks they come from, and how the commit changed them. Call this first: it tells you which suites, cases and sizes exist before you list them or select them into a plan, and the reported diff explains why a case count moved. A commit whose discovery has not finished answers CATALOG_NOT_READY, which means "not yet", not "no tests"; wait and read again. Omit commit to read the newest catalog published for the project.
|
|
7243
|
+
*/
|
|
7244
|
+
export const devopsTestCatalogGet = (options) => (options.client ?? client).get({
|
|
7245
|
+
security: [{
|
|
7246
|
+
key: 'devops-bearerAuth',
|
|
7247
|
+
scheme: 'bearer',
|
|
7248
|
+
type: 'http'
|
|
7249
|
+
}],
|
|
7250
|
+
url: '/devops/v1/projects/{project}/test-catalog',
|
|
7251
|
+
...options
|
|
7252
|
+
});
|
|
7253
|
+
/**
|
|
7254
|
+
* List test suites
|
|
7255
|
+
*
|
|
7256
|
+
* List the suites the project's newest catalog discovered — one suite per test file and framework pair, with its size, purposes and question count. Use it to find the suite id a case belongs to, or to see which files make up an area before selecting cases from them. Suites come from the catalog, so a file added in code appears only after its commit's catalog is published. Archived suites are returned too; they carry archived true and no case is ever silently dropped from the list.
|
|
7257
|
+
*/
|
|
7258
|
+
export const devopsTestSuitesList = (options) => (options.client ?? client).get({
|
|
7259
|
+
security: [{
|
|
7260
|
+
key: 'devops-bearerAuth',
|
|
7261
|
+
scheme: 'bearer',
|
|
7262
|
+
type: 'http'
|
|
7263
|
+
}],
|
|
7264
|
+
url: '/devops/v1/projects/{project}/test-suites',
|
|
7265
|
+
...options
|
|
7266
|
+
});
|
|
7267
|
+
/**
|
|
7268
|
+
* Retrieve a test suite
|
|
7269
|
+
*
|
|
7270
|
+
* Read one suite by the id a suite list returned, to learn its file, framework, size, purposes and how many cases it holds. Use it when a case's suite id needs a name for display, or to confirm which commit's catalog a suite came from. The id is opaque; it comes from the list, never from the file path.
|
|
7271
|
+
*/
|
|
7272
|
+
export const devopsTestSuitesGet = (options) => (options.client ?? client).get({
|
|
7273
|
+
security: [{
|
|
7274
|
+
key: 'devops-bearerAuth',
|
|
7275
|
+
scheme: 'bearer',
|
|
7276
|
+
type: 'http'
|
|
7277
|
+
}],
|
|
7278
|
+
url: '/devops/v1/test-suites/{id}',
|
|
7279
|
+
...options
|
|
7280
|
+
});
|
|
7281
|
+
/**
|
|
7282
|
+
* List test cases
|
|
7283
|
+
*
|
|
7284
|
+
* List a project's cases with their health, state and recent statistics, so you can decide which ones a plan must run and which are quarantined. This is the read a test dashboard is built on; filter it to narrow by state or health instead of paging through everything. A case's id is a fingerprint of its own title and path, so it survives a rename — read aliases when reconciling history recorded under an older title.
|
|
7285
|
+
*/
|
|
7286
|
+
export const devopsTestCasesList = (options) => (options.client ?? client).get({
|
|
7287
|
+
security: [{
|
|
7288
|
+
key: 'devops-bearerAuth',
|
|
7289
|
+
scheme: 'bearer',
|
|
7290
|
+
type: 'http'
|
|
7291
|
+
}],
|
|
7292
|
+
url: '/devops/v1/projects/{project}/test-cases',
|
|
7293
|
+
...options
|
|
7294
|
+
});
|
|
7295
|
+
/**
|
|
7296
|
+
* Retrieve a test case
|
|
7297
|
+
*
|
|
7298
|
+
* Read one case in full — its steps, tags, declared owners, current state with the policy and ticket behind it, and its rolling 7 or 30 day statistics. Use it before quarantining or fixing a case, to see what the state already is and why. A case that was renamed is reachable by both its current fingerprint id and the ids listed in aliases.
|
|
7299
|
+
*/
|
|
7300
|
+
export const devopsTestCasesGet = (options) => (options.client ?? client).get({
|
|
7301
|
+
security: [{
|
|
7302
|
+
key: 'devops-bearerAuth',
|
|
7303
|
+
scheme: 'bearer',
|
|
7304
|
+
type: 'http'
|
|
7305
|
+
}],
|
|
7306
|
+
url: '/devops/v1/test-cases/{id}',
|
|
7307
|
+
...options
|
|
7308
|
+
});
|
|
7309
|
+
/**
|
|
7310
|
+
* List test plans
|
|
7311
|
+
*
|
|
7312
|
+
* List the project's plans — what each one selects, which stage and gate it belongs to, and when it runs next. Read this before creating a plan, so a new plan extends what exists instead of duplicating a selector an existing plan already covers.
|
|
7313
|
+
*/
|
|
7314
|
+
export const devopsTestPlansList = (options) => (options.client ?? client).get({
|
|
7315
|
+
security: [{
|
|
7316
|
+
key: 'devops-bearerAuth',
|
|
7317
|
+
scheme: 'bearer',
|
|
7318
|
+
type: 'http'
|
|
7319
|
+
}],
|
|
7320
|
+
url: '/devops/v1/projects/{project}/test-plans',
|
|
7321
|
+
...options
|
|
7322
|
+
});
|
|
7323
|
+
/**
|
|
7324
|
+
* Create a test plan
|
|
7325
|
+
*
|
|
7326
|
+
* Create a plan that decides which cases a stage must run. The plan's key is unique inside the project and is what a later run names; the selector chooses cases by size, purpose, tag, package or explicit ids, and the trigger says when the plan fires by itself. A merge or promotion gate must name the environment it guards, and a plan with a gate but no environment is refused with PLAN_GATE_ENVIRONMENT_MISMATCH rather than created and silently ignored. A plan has no revision history: update it with a patch.
|
|
7327
|
+
*/
|
|
7328
|
+
export const devopsTestPlansCreate = (options) => (options.client ?? client).post({
|
|
7329
|
+
security: [{
|
|
7330
|
+
key: 'devops-bearerAuth',
|
|
7331
|
+
scheme: 'bearer',
|
|
7332
|
+
type: 'http'
|
|
7333
|
+
}],
|
|
7334
|
+
url: '/devops/v1/projects/{project}/test-plans',
|
|
7335
|
+
...options,
|
|
7336
|
+
headers: {
|
|
7337
|
+
'Content-Type': 'application/json',
|
|
7338
|
+
...options.headers
|
|
7339
|
+
}
|
|
7340
|
+
});
|
|
7341
|
+
/**
|
|
7342
|
+
* Delete a test plan
|
|
7343
|
+
*
|
|
7344
|
+
* Delete a plan so it schedules nothing further. The plan stops firing immediately; runs it already produced keep their own record and are not deleted with it. To stop a plan temporarily and keep it for later, pause it instead — deleting cannot be undone and the plan's key becomes free for another plan to take.
|
|
7345
|
+
*/
|
|
7346
|
+
export const devopsTestPlansDelete = (options) => (options.client ?? client).delete({
|
|
7347
|
+
security: [{
|
|
7348
|
+
key: 'devops-bearerAuth',
|
|
7349
|
+
scheme: 'bearer',
|
|
7350
|
+
type: 'http'
|
|
7351
|
+
}],
|
|
7352
|
+
url: '/devops/v1/test-plans/{id}',
|
|
7353
|
+
...options
|
|
7354
|
+
});
|
|
7355
|
+
/**
|
|
7356
|
+
* Retrieve a test plan
|
|
7357
|
+
*
|
|
7358
|
+
* Read one plan by the id a plan list returned, to see its selector, gate, repeat count, timeout and pause state before updating or deleting it. A paused plan carries the reason, the actor and the time it resumes, so a pause you did not set is explained here rather than guessed at.
|
|
7359
|
+
*/
|
|
7360
|
+
export const devopsTestPlansGet = (options) => (options.client ?? client).get({
|
|
7361
|
+
security: [{
|
|
7362
|
+
key: 'devops-bearerAuth',
|
|
7363
|
+
scheme: 'bearer',
|
|
7364
|
+
type: 'http'
|
|
7365
|
+
}],
|
|
7366
|
+
url: '/devops/v1/test-plans/{id}',
|
|
7367
|
+
...options
|
|
7368
|
+
});
|
|
7369
|
+
/**
|
|
7370
|
+
* Update a test plan
|
|
7371
|
+
*
|
|
7372
|
+
* Change a plan's title, trigger, selector, gate, repeat count, timeout or enabled flag. Only the fields present in the body are changed, so a body naming one field leaves the rest exactly as they were. Changing a selector does not create a version — the plan is not a published artefact, and runs already started keep the selection they were created with. Read the plan first to know what you are leaving unchanged.
|
|
7373
|
+
*/
|
|
7374
|
+
export const devopsTestPlansUpdate = (options) => (options.client ?? client).patch({
|
|
7375
|
+
security: [{
|
|
7376
|
+
key: 'devops-bearerAuth',
|
|
7377
|
+
scheme: 'bearer',
|
|
7378
|
+
type: 'http'
|
|
7379
|
+
}],
|
|
7380
|
+
url: '/devops/v1/test-plans/{id}',
|
|
7381
|
+
...options,
|
|
7382
|
+
headers: {
|
|
7383
|
+
'Content-Type': 'application/json',
|
|
7384
|
+
...options.headers
|
|
7385
|
+
}
|
|
7386
|
+
});
|
|
7387
|
+
/**
|
|
7388
|
+
* Pause a test plan
|
|
7389
|
+
*
|
|
7390
|
+
* Stop a plan from starting new runs while keeping it and its history. A reason is required and is recorded on the plan, so the next reader learns why it stopped. Give until to resume automatically at a time; omit it to stay paused until someone resumes it. Runs already in flight are not cancelled — cancel those individually.
|
|
7391
|
+
*/
|
|
7392
|
+
export const devopsTestPlansPause = (options) => (options.client ?? client).post({
|
|
7393
|
+
security: [{
|
|
7394
|
+
key: 'devops-bearerAuth',
|
|
7395
|
+
scheme: 'bearer',
|
|
7396
|
+
type: 'http'
|
|
7397
|
+
}],
|
|
7398
|
+
url: '/devops/v1/test-plans/{id}:pause',
|
|
7399
|
+
...options,
|
|
7400
|
+
headers: {
|
|
7401
|
+
'Content-Type': 'application/json',
|
|
7402
|
+
...options.headers
|
|
7403
|
+
}
|
|
7404
|
+
});
|
|
7405
|
+
/**
|
|
7406
|
+
* Resume a test plan
|
|
7407
|
+
*
|
|
7408
|
+
* Clear a plan's pause so it schedules runs again. Resuming an active plan changes nothing and is safe to repeat. The plan keeps its selector, gate and key; only the pause is removed.
|
|
7409
|
+
*/
|
|
7410
|
+
export const devopsTestPlansResume = (options) => (options.client ?? client).post({
|
|
7411
|
+
security: [{
|
|
7412
|
+
key: 'devops-bearerAuth',
|
|
7413
|
+
scheme: 'bearer',
|
|
7414
|
+
type: 'http'
|
|
7415
|
+
}],
|
|
7416
|
+
url: '/devops/v1/test-plans/{id}:resume',
|
|
7417
|
+
...options
|
|
7418
|
+
});
|
|
7419
|
+
/**
|
|
7420
|
+
* List test runs
|
|
7421
|
+
*
|
|
7422
|
+
* List the project's runs newest first, with each run's state, result and counts. Use it to find the run id whose executions you want to read, or to see whether a commit's tests have finished. A run whose result is pending has not reached a verdict yet — read it again rather than treating it as passed. Filter by state or result to watch only the runs still in flight.
|
|
7423
|
+
*/
|
|
7424
|
+
export const devopsTestRunsList = (options) => (options.client ?? client).get({
|
|
7425
|
+
security: [{
|
|
7426
|
+
key: 'devops-bearerAuth',
|
|
7427
|
+
scheme: 'bearer',
|
|
7428
|
+
type: 'http'
|
|
7429
|
+
}],
|
|
7430
|
+
url: '/devops/v1/projects/{project}/test-runs',
|
|
7431
|
+
...options
|
|
7432
|
+
});
|
|
7433
|
+
/**
|
|
7434
|
+
* Create a test run
|
|
7435
|
+
*
|
|
7436
|
+
* Start a run of the project's tests at one commit. Name a plan to use its selector, or pass a selector directly for this run alone; the ref says which commit to test and is required, because a run without a commit has nothing to report against. waitUntil decides how far the call waits before answering — queued, the default, returns as soon as the run exists; started waits until the run has begun, except for an external run, which is answered at once because it leaves queued only when your own CI uploads; finished waits for a verdict. The wait is bounded at about 25 seconds, and a wait that reaches that bound returns the run as it stands rather than failing — read state to see whether it finished. A retry of an earlier run is a new run: pass its commit and selector, and read the earlier run to compare.
|
|
7437
|
+
*/
|
|
7438
|
+
export const devopsTestRunsCreate = (options) => (options.client ?? client).post({
|
|
7439
|
+
security: [{
|
|
7440
|
+
key: 'devops-bearerAuth',
|
|
7441
|
+
scheme: 'bearer',
|
|
7442
|
+
type: 'http'
|
|
7443
|
+
}],
|
|
7444
|
+
url: '/devops/v1/projects/{project}/test-runs',
|
|
7445
|
+
...options,
|
|
7446
|
+
headers: {
|
|
7447
|
+
'Content-Type': 'application/json',
|
|
7448
|
+
...options.headers
|
|
7449
|
+
}
|
|
7450
|
+
});
|
|
7451
|
+
/**
|
|
7452
|
+
* Retrieve a test run
|
|
7453
|
+
*
|
|
7454
|
+
* Read one run's current state, result and counts, and ask for its failed executions inline with expand. Poll this after creating a run whose result was pending. A result is monotonic once it reaches a verdict — a failed run never becomes passed by a later report, so read the run rather than the last report to know where it ended.
|
|
7455
|
+
*/
|
|
7456
|
+
export const devopsTestRunsGet = (options) => (options.client ?? client).get({
|
|
7457
|
+
security: [{
|
|
7458
|
+
key: 'devops-bearerAuth',
|
|
7459
|
+
scheme: 'bearer',
|
|
7460
|
+
type: 'http'
|
|
7461
|
+
}],
|
|
7462
|
+
url: '/devops/v1/test-runs/{id}',
|
|
7463
|
+
...options
|
|
7464
|
+
});
|
|
7465
|
+
/**
|
|
7466
|
+
* Cancel a test run
|
|
7467
|
+
*
|
|
7468
|
+
* Stop a run that is still going. A reason is required and is recorded on the run, because a cancelled run is read later as evidence about why a commit was not verified. Cancelling a run that already reached a verdict is refused with RUN_ALREADY_FINISHED: its result is final and cancelling it would erase the verdict. Executions already recorded stay readable.
|
|
7469
|
+
*/
|
|
7470
|
+
export const devopsTestRunsCancel = (options) => (options.client ?? client).post({
|
|
7471
|
+
security: [{
|
|
7472
|
+
key: 'devops-bearerAuth',
|
|
7473
|
+
scheme: 'bearer',
|
|
7474
|
+
type: 'http'
|
|
7475
|
+
}],
|
|
7476
|
+
url: '/devops/v1/test-runs/{id}:cancel',
|
|
7477
|
+
...options,
|
|
7478
|
+
headers: {
|
|
7479
|
+
'Content-Type': 'application/json',
|
|
7480
|
+
...options.headers
|
|
7481
|
+
}
|
|
7482
|
+
});
|
|
7483
|
+
/**
|
|
7484
|
+
* List a run's executions
|
|
7485
|
+
*
|
|
7486
|
+
* List the executions recorded against one run — one entry per case the run selected, with its status, duration, attempts and evidence. Use it to find the case that failed, or to compare a repeat run against the previous one case by case. Reads happen while the run is still going, so a case may still be pending; filter by status to watch only the failures.
|
|
7487
|
+
*/
|
|
7488
|
+
export const devopsTestExecutionsList = (options) => (options.client ?? client).get({
|
|
7489
|
+
security: [{
|
|
7490
|
+
key: 'devops-bearerAuth',
|
|
7491
|
+
scheme: 'bearer',
|
|
7492
|
+
type: 'http'
|
|
7493
|
+
}],
|
|
7494
|
+
url: '/devops/v1/test-runs/{run}/executions',
|
|
7495
|
+
...options
|
|
7496
|
+
});
|
|
7497
|
+
/**
|
|
7498
|
+
* Retrieve one case's execution in a run
|
|
7499
|
+
*
|
|
7500
|
+
* Read one case's execution inside one run, including every attempt with its own duration and message. Use it after a run reports a failure to see whether the case failed once and passed on retry — that is what flaky true means — and to reach the evidence files a triage needs. Both ids come from the run and case reads; an execution that does not exist for that pair is NOT_FOUND rather than an empty answer.
|
|
7501
|
+
*/
|
|
7502
|
+
export const devopsTestExecutionsGet = (options) => (options.client ?? client).get({
|
|
7503
|
+
security: [{
|
|
7504
|
+
key: 'devops-bearerAuth',
|
|
7505
|
+
scheme: 'bearer',
|
|
7506
|
+
type: 'http'
|
|
7507
|
+
}],
|
|
7508
|
+
url: '/devops/v1/test-runs/{run}/executions/{case}',
|
|
7509
|
+
...options
|
|
7510
|
+
});
|
|
7511
|
+
/**
|
|
7512
|
+
* Upload an external test report
|
|
7513
|
+
*
|
|
7514
|
+
* Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. Nothing has to exist first: a first upload from CI creates the run it reports on (executor external) and catalogues the cases the report names, so there is no setup call before the first result. When the report already belongs to a run, pass ref and the upload joins it; the run's counts and verdict are recomputed from the report. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe — and a reported case is catalogued once, however many reports carry it. The report's bytes are kept as a file (the file field of the answer) rather than in the results database, so the original document stays retrievable.
|
|
7515
|
+
*/
|
|
7516
|
+
export const devopsTestReportsUpload = (options) => (options.client ?? client).post({
|
|
7517
|
+
security: [{
|
|
7518
|
+
key: 'devops-bearerAuth',
|
|
7519
|
+
scheme: 'bearer',
|
|
7520
|
+
type: 'http'
|
|
7521
|
+
}],
|
|
7522
|
+
url: '/devops/v1/projects/{project}/test-reports',
|
|
7523
|
+
...options,
|
|
7524
|
+
headers: {
|
|
7525
|
+
'Content-Type': 'application/json',
|
|
7526
|
+
...options.headers
|
|
7527
|
+
}
|
|
7528
|
+
});
|
|
7157
7529
|
/**
|
|
7158
7530
|
* List knowledge bases
|
|
7159
7531
|
*
|
|
@@ -7627,7 +7999,7 @@ export const mediaListAssets = (options) => (options.client ?? client).get({
|
|
|
7627
7999
|
/**
|
|
7628
8000
|
* Upload asset
|
|
7629
8001
|
*
|
|
7630
|
-
* 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.
|
|
8002
|
+
* For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
|
|
7631
8003
|
*/
|
|
7632
8004
|
export const mediaUploadAsset = (options) => (options.client ?? client).post({
|
|
7633
8005
|
security: [{
|
|
@@ -7645,7 +8017,7 @@ export const mediaUploadAsset = (options) => (options.client ?? client).post({
|
|
|
7645
8017
|
/**
|
|
7646
8018
|
* Import file
|
|
7647
8019
|
*
|
|
7648
|
-
* Copy a File into an independent Media asset. New assets default to organization-private delivery (type=authenticated); explicitly set type=upload for public originals and derivatives. Omitting type on overwrite preserves the current type. Deleting the source File does not delete this copy. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged.
|
|
8020
|
+
* Copy a File into an independent Media asset. New assets default to organization-private delivery (type=authenticated); explicitly set type=upload for public originals and derivatives. Omitting type on overwrite preserves the current type. Deleting the source File does not delete this copy. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
|
|
7649
8021
|
*/
|
|
7650
8022
|
export const mediaImportAsset = (options) => (options.client ?? client).post({
|
|
7651
8023
|
security: [{
|
|
@@ -7709,7 +8081,7 @@ export const mediaUpdateAsset = (options) => (options.client ?? client).patch({
|
|
|
7709
8081
|
/**
|
|
7710
8082
|
* Reprocess asset
|
|
7711
8083
|
*
|
|
7712
|
-
* 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.
|
|
8084
|
+
* For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
|
|
7713
8085
|
*/
|
|
7714
8086
|
export const mediaReprocessAsset = (options) => (options.client ?? client).post({
|
|
7715
8087
|
security: [{
|
|
@@ -7827,7 +8199,7 @@ export const mediaListFolders = (options) => (options.client ?? client).get({
|
|
|
7827
8199
|
/**
|
|
7828
8200
|
* Create batch
|
|
7829
8201
|
*
|
|
7830
|
-
* Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged.
|
|
8202
|
+
* Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
|
|
7831
8203
|
*/
|
|
7832
8204
|
export const mediaCreateBatch = (options) => (options.client ?? client).post({
|
|
7833
8205
|
security: [{
|
|
@@ -7859,7 +8231,7 @@ export const mediaGetBatch = (options) => (options.client ?? client).get({
|
|
|
7859
8231
|
/**
|
|
7860
8232
|
* Batch assets alias
|
|
7861
8233
|
*
|
|
7862
|
-
* Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged.
|
|
8234
|
+
* Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
|
|
7863
8235
|
*/
|
|
7864
8236
|
export const mediaBatchAssets = (options) => (options.client ?? client).post({
|
|
7865
8237
|
security: [{
|
|
@@ -8026,6 +8398,234 @@ export const mediaGetGenerationCapabilities = (options) => (options?.client ?? c
|
|
|
8026
8398
|
url: '/media/v1/generation/capabilities',
|
|
8027
8399
|
...options
|
|
8028
8400
|
});
|
|
8401
|
+
/**
|
|
8402
|
+
* List types
|
|
8403
|
+
*
|
|
8404
|
+
* Read the node and relation types registered for this organization before writing, so a create names a type the graph accepts. Each entry is one registrant's registration with its owner, version and definitions. Types cannot be created at runtime; they are registered by the owning service at deploy time, so a type missing here is not available to write.
|
|
8405
|
+
*/
|
|
8406
|
+
export const ontologyListTypes = (options) => (options?.client ?? client).get({
|
|
8407
|
+
security: [{
|
|
8408
|
+
key: 'ontology-bearerAuth',
|
|
8409
|
+
scheme: 'bearer',
|
|
8410
|
+
type: 'http'
|
|
8411
|
+
}],
|
|
8412
|
+
url: '/ontology/v1/types',
|
|
8413
|
+
...options
|
|
8414
|
+
});
|
|
8415
|
+
/**
|
|
8416
|
+
* Register type
|
|
8417
|
+
*
|
|
8418
|
+
* Register a node or relation type for this organization. Not open yet — this call currently answers 501 NOT_IMPLEMENTED and writes nothing, because a registration is checked and stored by the deploy gate that ships the registering service, not by a runtime call. Until it opens, read the types already in force with praxis.ontology.types.list and create records only of those types.
|
|
8419
|
+
*/
|
|
8420
|
+
export const ontologyRegisterType = (options) => (options.client ?? client).post({
|
|
8421
|
+
security: [{
|
|
8422
|
+
key: 'ontology-bearerAuth',
|
|
8423
|
+
scheme: 'bearer',
|
|
8424
|
+
type: 'http'
|
|
8425
|
+
}],
|
|
8426
|
+
url: '/ontology/v1/types',
|
|
8427
|
+
...options,
|
|
8428
|
+
headers: {
|
|
8429
|
+
'Content-Type': 'application/json',
|
|
8430
|
+
...options.headers
|
|
8431
|
+
}
|
|
8432
|
+
});
|
|
8433
|
+
/**
|
|
8434
|
+
* Retrieve type
|
|
8435
|
+
*
|
|
8436
|
+
* Read one registered type's definition before writing a record of it, to learn whether it is a node or an edge, which endpoints an edge type admits, and which origins it accepts. The name comes from types.list; a name that is not registered answers ONTOLOGY_TYPE_UNKNOWN, and writes of that type are refused.
|
|
8437
|
+
*/
|
|
8438
|
+
export const ontologyRetrieveType = (options) => (options.client ?? client).get({
|
|
8439
|
+
security: [{
|
|
8440
|
+
key: 'ontology-bearerAuth',
|
|
8441
|
+
scheme: 'bearer',
|
|
8442
|
+
type: 'http'
|
|
8443
|
+
}],
|
|
8444
|
+
url: '/ontology/v1/types/{name}',
|
|
8445
|
+
...options
|
|
8446
|
+
});
|
|
8447
|
+
/**
|
|
8448
|
+
* List nodes
|
|
8449
|
+
*
|
|
8450
|
+
* Discover the entities in this organization's graph and obtain node ids for retrieval, updates and relations. Filter by type, by free text over names, aliases, descriptions and facts, or by owner; limit is 1–100 and defaults to 50. Omit cursor for the first page, then copy next_cursor into the next request until it is null. A node whose content belongs to somebody else comes back as a restricted entry carrying only its id, type and name.
|
|
8451
|
+
*/
|
|
8452
|
+
export const ontologyListNodes = (options) => (options?.client ?? client).get({
|
|
8453
|
+
security: [{
|
|
8454
|
+
key: 'ontology-bearerAuth',
|
|
8455
|
+
scheme: 'bearer',
|
|
8456
|
+
type: 'http'
|
|
8457
|
+
}],
|
|
8458
|
+
url: '/ontology/v1/nodes',
|
|
8459
|
+
...options
|
|
8460
|
+
});
|
|
8461
|
+
/**
|
|
8462
|
+
* Create node
|
|
8463
|
+
*
|
|
8464
|
+
* Record one entity in the graph, for a system mirroring a record it owns. type must already be registered and ref, when given, must match that type's ref_prefix. Send an Idempotency-Key header; repeating the same key with the same content returns the first result instead of creating a second node. This writes structure only — to give an agent something to remember, use POST /agent/v1/agents/{agent_id}/consolidations.
|
|
8465
|
+
*/
|
|
8466
|
+
export const ontologyCreateNode = (options) => (options.client ?? client).post({
|
|
8467
|
+
security: [{
|
|
8468
|
+
key: 'ontology-bearerAuth',
|
|
8469
|
+
scheme: 'bearer',
|
|
8470
|
+
type: 'http'
|
|
8471
|
+
}],
|
|
8472
|
+
url: '/ontology/v1/nodes',
|
|
8473
|
+
...options,
|
|
8474
|
+
headers: {
|
|
8475
|
+
'Content-Type': 'application/json',
|
|
8476
|
+
...options.headers
|
|
8477
|
+
}
|
|
8478
|
+
});
|
|
8479
|
+
/**
|
|
8480
|
+
* Retrieve node
|
|
8481
|
+
*
|
|
8482
|
+
* Read one node's content and, with expand=relations, every relation on and around it. as_of reads the node as it was at that time. A node id from another organization, or one that never existed, answers ONTOLOGY_NODE_NOT_FOUND; a node you may reach but not read returns restricted true with its name only.
|
|
8483
|
+
*/
|
|
8484
|
+
export const ontologyRetrieveNode = (options) => (options.client ?? client).get({
|
|
8485
|
+
security: [{
|
|
8486
|
+
key: 'ontology-bearerAuth',
|
|
8487
|
+
scheme: 'bearer',
|
|
8488
|
+
type: 'http'
|
|
8489
|
+
}],
|
|
8490
|
+
url: '/ontology/v1/nodes/{node_id}',
|
|
8491
|
+
...options
|
|
8492
|
+
});
|
|
8493
|
+
/**
|
|
8494
|
+
* Update node
|
|
8495
|
+
*
|
|
8496
|
+
* Change a node's name, aliases or description when the mirrored record was renamed, without touching its type or identity. Send only the fields to change; omitted fields keep their current values and an explicitly null description clears it. Repeating the same edit converges on the same node, so this needs no Idempotency-Key.
|
|
8497
|
+
*/
|
|
8498
|
+
export const ontologyUpdateNode = (options) => (options.client ?? client).patch({
|
|
8499
|
+
security: [{
|
|
8500
|
+
key: 'ontology-bearerAuth',
|
|
8501
|
+
scheme: 'bearer',
|
|
8502
|
+
type: 'http'
|
|
8503
|
+
}],
|
|
8504
|
+
url: '/ontology/v1/nodes/{node_id}',
|
|
8505
|
+
...options,
|
|
8506
|
+
headers: {
|
|
8507
|
+
'Content-Type': 'application/json',
|
|
8508
|
+
...options.headers
|
|
8509
|
+
}
|
|
8510
|
+
});
|
|
8511
|
+
/**
|
|
8512
|
+
* Merge node
|
|
8513
|
+
*
|
|
8514
|
+
* Fold a duplicate node into the node that should survive, when two records are discovered to be the same entity. The merged node's relations and aliases move to the survivor and later reads of the duplicate resolve to it. Send an Idempotency-Key header; repeating the same key replays the first result. Reversal is a staff operation, not available here.
|
|
8515
|
+
*/
|
|
8516
|
+
export const ontologyMergeNode = (options) => (options.client ?? client).post({
|
|
8517
|
+
security: [{
|
|
8518
|
+
key: 'ontology-bearerAuth',
|
|
8519
|
+
scheme: 'bearer',
|
|
8520
|
+
type: 'http'
|
|
8521
|
+
}],
|
|
8522
|
+
url: '/ontology/v1/nodes/{node_id}/merge',
|
|
8523
|
+
...options,
|
|
8524
|
+
headers: {
|
|
8525
|
+
'Content-Type': 'application/json',
|
|
8526
|
+
...options.headers
|
|
8527
|
+
}
|
|
8528
|
+
});
|
|
8529
|
+
/**
|
|
8530
|
+
* List relations
|
|
8531
|
+
*
|
|
8532
|
+
* Read the facts in the graph and obtain relation ids for retrieval, invalidation or spreading. Filter by endpoint node, by type and by direction; as_of reads the relations as they were then. Invalidated relations are omitted unless include_invalid is true. limit is 1–100 and defaults to 50; follow next_cursor until it is null.
|
|
8533
|
+
*/
|
|
8534
|
+
export const ontologyListRelations = (options) => (options?.client ?? client).get({
|
|
8535
|
+
security: [{
|
|
8536
|
+
key: 'ontology-bearerAuth',
|
|
8537
|
+
scheme: 'bearer',
|
|
8538
|
+
type: 'http'
|
|
8539
|
+
}],
|
|
8540
|
+
url: '/ontology/v1/relations',
|
|
8541
|
+
...options
|
|
8542
|
+
});
|
|
8543
|
+
/**
|
|
8544
|
+
* Create relation
|
|
8545
|
+
*
|
|
8546
|
+
* Record one fact between two existing nodes, for a system mirroring a relationship it owns. type must be registered and must admit these endpoints; fact states the relationship in one sentence. Send an Idempotency-Key header; repeating the same key returns the first result instead of writing a second relation. This writes structure only — to give an agent something to remember, use POST /agent/v1/agents/{agent_id}/consolidations.
|
|
8547
|
+
*/
|
|
8548
|
+
export const ontologyCreateRelation = (options) => (options.client ?? client).post({
|
|
8549
|
+
security: [{
|
|
8550
|
+
key: 'ontology-bearerAuth',
|
|
8551
|
+
scheme: 'bearer',
|
|
8552
|
+
type: 'http'
|
|
8553
|
+
}],
|
|
8554
|
+
url: '/ontology/v1/relations',
|
|
8555
|
+
...options,
|
|
8556
|
+
headers: {
|
|
8557
|
+
'Content-Type': 'application/json',
|
|
8558
|
+
...options.headers
|
|
8559
|
+
}
|
|
8560
|
+
});
|
|
8561
|
+
/**
|
|
8562
|
+
* Retrieve relation
|
|
8563
|
+
*
|
|
8564
|
+
* Read one relation's fact and both of its clocks — valid_at and invalid_at for when it was true in the world, created_at and expired_at for when it was recorded and retired. An id from another organization, or one that never existed, answers ONTOLOGY_EDGE_NOT_FOUND.
|
|
8565
|
+
*/
|
|
8566
|
+
export const ontologyRetrieveRelation = (options) => (options.client ?? client).get({
|
|
8567
|
+
security: [{
|
|
8568
|
+
key: 'ontology-bearerAuth',
|
|
8569
|
+
scheme: 'bearer',
|
|
8570
|
+
type: 'http'
|
|
8571
|
+
}],
|
|
8572
|
+
url: '/ontology/v1/relations/{relation_id}',
|
|
8573
|
+
...options
|
|
8574
|
+
});
|
|
8575
|
+
/**
|
|
8576
|
+
* Invalidate relation
|
|
8577
|
+
*
|
|
8578
|
+
* Mark a relation as no longer true from a world time, when the mirrored record changed. The relation is kept — invalid_at moves and the relation still reads at an earlier as_of, so history stays answerable. Send an Idempotency-Key header; repeating the same key replays the first result. There is no delete.
|
|
8579
|
+
*/
|
|
8580
|
+
export const ontologyInvalidateRelation = (options) => (options.client ?? client).post({
|
|
8581
|
+
security: [{
|
|
8582
|
+
key: 'ontology-bearerAuth',
|
|
8583
|
+
scheme: 'bearer',
|
|
8584
|
+
type: 'http'
|
|
8585
|
+
}],
|
|
8586
|
+
url: '/ontology/v1/relations/{relation_id}/invalidate',
|
|
8587
|
+
...options,
|
|
8588
|
+
headers: {
|
|
8589
|
+
'Content-Type': 'application/json',
|
|
8590
|
+
...options.headers
|
|
8591
|
+
}
|
|
8592
|
+
});
|
|
8593
|
+
/**
|
|
8594
|
+
* Apply changeset
|
|
8595
|
+
*
|
|
8596
|
+
* Apply a batch of node, relation and invalidation operations as one transaction, when a mirror has several records to write together and a partial write would leave the graph inconsistent. Every operation succeeds or none is applied. Send an Idempotency-Key header; the same key with the same content replays the first result, and the same key with different content is ONTOLOGY_CONFLICT.
|
|
8597
|
+
*/
|
|
8598
|
+
export const ontologyApplyChangeset = (options) => (options.client ?? client).post({
|
|
8599
|
+
security: [{
|
|
8600
|
+
key: 'ontology-bearerAuth',
|
|
8601
|
+
scheme: 'bearer',
|
|
8602
|
+
type: 'http'
|
|
8603
|
+
}],
|
|
8604
|
+
url: '/ontology/v1/changesets',
|
|
8605
|
+
...options,
|
|
8606
|
+
headers: {
|
|
8607
|
+
'Content-Type': 'application/json',
|
|
8608
|
+
...options.headers
|
|
8609
|
+
}
|
|
8610
|
+
});
|
|
8611
|
+
/**
|
|
8612
|
+
* Search nodes
|
|
8613
|
+
*
|
|
8614
|
+
* Resolve text to the nodes it most likely names, when a mirror holds a name and needs the node id it corresponds to. Results are ranked candidates, not an answer, each reporting whether the match came from the node's name, an alias, its description or a relation's fact. Narrow with types, and cap the result count with limit (1–50, default 20). This reads structure; it is not an agent recall — agents recall through POST /agent/v1/agents/{agent_id}/consolidations.
|
|
8615
|
+
*/
|
|
8616
|
+
export const ontologySearch = (options) => (options.client ?? client).post({
|
|
8617
|
+
security: [{
|
|
8618
|
+
key: 'ontology-bearerAuth',
|
|
8619
|
+
scheme: 'bearer',
|
|
8620
|
+
type: 'http'
|
|
8621
|
+
}],
|
|
8622
|
+
url: '/ontology/v1/search',
|
|
8623
|
+
...options,
|
|
8624
|
+
headers: {
|
|
8625
|
+
'Content-Type': 'application/json',
|
|
8626
|
+
...options.headers
|
|
8627
|
+
}
|
|
8628
|
+
});
|
|
8029
8629
|
/**
|
|
8030
8630
|
* List sandboxes (v2)
|
|
8031
8631
|
*
|
|
@@ -9722,7 +10322,7 @@ export const ticketGetLabels = (options) => (options?.client ?? client).get({
|
|
|
9722
10322
|
/**
|
|
9723
10323
|
* Create or add labels
|
|
9724
10324
|
*
|
|
9725
|
-
* Create or add labels 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.
|
|
10325
|
+
* Create or add labels 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.
|
|
9726
10326
|
*/
|
|
9727
10327
|
export const ticketPostLabels = (options) => (options.client ?? client).post({
|
|
9728
10328
|
security: [{
|
|
@@ -9744,7 +10344,7 @@ export const ticketPostLabels = (options) => (options.client ?? client).post({
|
|
|
9744
10344
|
/**
|
|
9745
10345
|
* Remove labels
|
|
9746
10346
|
*
|
|
9747
|
-
* Remove labels 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.
|
|
10347
|
+
* Remove labels 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.
|
|
9748
10348
|
*/
|
|
9749
10349
|
export const ticketDeleteLabelsName = (options) => (options.client ?? client).delete({
|
|
9750
10350
|
security: [{
|
|
@@ -9762,7 +10362,7 @@ export const ticketDeleteLabelsName = (options) => (options.client ?? client).de
|
|
|
9762
10362
|
/**
|
|
9763
10363
|
* Update labels
|
|
9764
10364
|
*
|
|
9765
|
-
* Update labels 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.
|
|
10365
|
+
* Update labels 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.
|
|
9766
10366
|
*/
|
|
9767
10367
|
export const ticketPatchLabelsName = (options) => (options.client ?? client).patch({
|
|
9768
10368
|
security: [{
|