@deepraxis/sdk 0.1.1-dev.3656610 → 0.1.1-dev.36d48d0

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.
@@ -1,4 +1,3 @@
1
- // Generated by scripts/resources.ts. DO NOT EDIT.
2
1
  export const operations = [
3
2
  {
4
3
  "resource": "agent.agents",
@@ -10085,7 +10084,7 @@ export const operations = [
10085
10084
  "name": "folder",
10086
10085
  "type": "string",
10087
10086
  "required": false,
10088
- "description": "Optional destination path within the bound media library; omitted uses its default folder."
10087
+ "description": "Optional destination path within the bound media library; omitted uses its default folder. Naming a binding or a folder also imports the finished video into that media library as an asset. Omit both and the export is a file only: read file.url to download it."
10089
10088
  },
10090
10089
  {
10091
10090
  "name": "name",
@@ -10103,7 +10102,7 @@ export const operations = [
10103
10102
  "name": "binding",
10104
10103
  "type": "string",
10105
10104
  "required": false,
10106
- "description": "Writable binding name used as the export destination; omission uses default_upload."
10105
+ "description": "Writable binding name used as the export destination; omission uses default_upload. Naming a binding or a folder also imports the finished video into that media library as an asset. Omit both and the export is a file only; read file.url to download it."
10107
10106
  },
10108
10107
  {
10109
10108
  "name": "revision",
@@ -11446,13 +11445,971 @@ export const operations = [
11446
11445
  ]
11447
11446
  }
11448
11447
  },
11448
+ {
11449
+ "resource": "devops.environments.checkpoints",
11450
+ "method": "list",
11451
+ "summary": "List environment checkpoints",
11452
+ "description": "List where each target of an environment currently stands: the release and commit deployed to it, the promotion that put it there, and how far behind the default branch that commit is. Read it to answer \"what is running in production right now\" and to tell a promotion that will change something apart from one that will skip every target as unchanged. behindMain counts commits on the default branch that the deployed commit does not have, so zero means the environment carries the current branch head. Targets that were never deployed to have no checkpoints until something deploys to them.",
11453
+ "http": "GET",
11454
+ "path": "/devops/v1/environments/{id}/checkpoints",
11455
+ "streaming": "no",
11456
+ "pagination": false,
11457
+ "pathParams": [
11458
+ {
11459
+ "name": "id",
11460
+ "sdkName": "id",
11461
+ "description": "The environment identifier from a project's environment list; the tier or the display name is not an address."
11462
+ }
11463
+ ],
11464
+ "query": []
11465
+ },
11466
+ {
11467
+ "resource": "devops.flags",
11468
+ "method": "retrieve",
11469
+ "summary": "Retrieve a flag",
11470
+ "description": "Read one flag in full: every environment's configuration, the rules and rollouts each environment serves, the flag's lifecycle, and where code references its key as of the last scan. Call it before changing an environment so you can send the version you read, and after a release to confirm the flag reached the state you expected. An archived flag is still readable here — that is how its key and history stay answerable after it stopped evaluating. codeRefs.count tells you how much code still names the key, which is what decides whether removing the flag is safe.",
11471
+ "http": "GET",
11472
+ "path": "/devops/v1/flags/{id}",
11473
+ "streaming": "no",
11474
+ "pagination": false,
11475
+ "pathParams": [
11476
+ {
11477
+ "name": "id",
11478
+ "sdkName": "id",
11479
+ "description": "The flag identifier from a flag list or create answer; code names a flag by its key, while this API addresses it by id."
11480
+ }
11481
+ ],
11482
+ "query": []
11483
+ },
11484
+ {
11485
+ "resource": "devops.flags",
11486
+ "method": "update",
11487
+ "summary": "Update a flag",
11488
+ "description": "Change a flag's metadata — its name, description, owner, observation deadline, removal ticket or tags — without touching what any environment serves. Send the fields to change inside flag and name them in updateMask; a field present in flag but absent from the mask is left alone, and a mask naming a field this operation cannot change is refused rather than ignored. Sending null clears a nullable field such as observeUntil. Served values are not changed here: use the environment update for what an environment serves, which is versioned and checked. An archived flag cannot be updated.",
11489
+ "http": "PATCH",
11490
+ "path": "/devops/v1/flags/{id}",
11491
+ "streaming": "no",
11492
+ "pagination": false,
11493
+ "pathParams": [
11494
+ {
11495
+ "name": "id",
11496
+ "sdkName": "id",
11497
+ "description": "The flag identifier from a flag list or create answer; code names a flag by its key, while this API addresses it by id."
11498
+ }
11499
+ ],
11500
+ "query": [],
11501
+ "body": {
11502
+ "required": true,
11503
+ "fields": [
11504
+ {
11505
+ "name": "flag",
11506
+ "type": "object",
11507
+ "required": true,
11508
+ "description": "The updatable fields of a flag, as the body of an update. Values left out are not touched, and null clears a nullable one."
11509
+ },
11510
+ {
11511
+ "name": "updateMask",
11512
+ "type": "array",
11513
+ "itemType": "string",
11514
+ "required": false,
11515
+ "description": "Which fields to write, by name; omit it to write every field the flag object carries. A field not listed here is left as it is, even when the object carries it."
11516
+ }
11517
+ ]
11518
+ }
11519
+ },
11520
+ {
11521
+ "resource": "devops.flags.environments",
11522
+ "method": "update",
11523
+ "summary": "Update a flag's environment",
11524
+ "description": "Change what one environment of a flag serves: whether it is on, its targeting rules, its prerequisite flags, its individually targeted keys, its fallthrough, and the progressive rollout it runs. This is the write that changes runtime behaviour, so it is versioned: send the version you read and a change based on a stale version is refused with FLAG_VERSION_CONFLICT instead of silently overwriting someone else's edit. comment records why the configuration changed, next to the change itself. Targets whose keys are not deployed yet are refused with FLAG_CODE_NOT_DEPLOYED, because serving a variation the running code cannot name would fail at evaluation time.",
11525
+ "http": "PATCH",
11526
+ "path": "/devops/v1/flags/{id}/environments/{environment}",
11527
+ "streaming": "no",
11528
+ "pagination": false,
11529
+ "pathParams": [
11530
+ {
11531
+ "name": "id",
11532
+ "sdkName": "id",
11533
+ "description": "The flag identifier from a flag list or create answer; code names a flag by its key, while this API addresses it by id."
11534
+ },
11535
+ {
11536
+ "name": "environment",
11537
+ "sdkName": "environment",
11538
+ "description": "The environment whose configuration you are changing, from the flag's own environments map or the project's environment list."
11539
+ }
11540
+ ],
11541
+ "query": [],
11542
+ "body": {
11543
+ "required": true,
11544
+ "fields": [
11545
+ {
11546
+ "name": "version",
11547
+ "type": "number",
11548
+ "required": true,
11549
+ "description": "The configuration version you read before making this change; when the environment has moved past it the write is refused with FLAG_VERSION_CONFLICT rather than overwriting."
11550
+ },
11551
+ {
11552
+ "name": "comment",
11553
+ "type": "string",
11554
+ "required": true,
11555
+ "description": "Why the configuration is changing, stored with the change so the history reads as decisions rather than as diffs."
11556
+ },
11557
+ {
11558
+ "name": "config",
11559
+ "type": "object",
11560
+ "required": true,
11561
+ "description": "The configuration to write for one environment. This call replaces the whole configuration, so send what you read with your change applied rather than only the changed part."
11562
+ }
11563
+ ]
11564
+ }
11565
+ },
11566
+ {
11567
+ "resource": "devops.flags",
11568
+ "method": "archive",
11569
+ "summary": "Archive a flag",
11570
+ "description": "Archive a flag once it is no longer needed: it stops evaluating in every environment, leaves the ordinary flag list, and keeps its key and history. Use it for a flag whose code has been removed and whose key nothing names any more; codeRefs.count on the flag is what tells you whether that is true. Archiving is the terminal lifecycle state — an archived flag is never un-archived and its key is never reused, so a flag that may come back is turned off in its environment instead. The key stays reserved, which is why a later create with the same key is refused.",
11571
+ "http": "POST",
11572
+ "path": "/devops/v1/flags/{id}:archive",
11573
+ "streaming": "no",
11574
+ "pagination": false,
11575
+ "pathParams": [
11576
+ {
11577
+ "name": "id",
11578
+ "sdkName": "id",
11579
+ "description": "The flag identifier from a flag list or create answer; code names a flag by its key, while this API addresses it by id."
11580
+ }
11581
+ ],
11582
+ "query": []
11583
+ },
11584
+ {
11585
+ "resource": "devops.flags",
11586
+ "method": "conclude",
11587
+ "summary": "Conclude a flag",
11588
+ "description": "Record the decision a temporary flag's observation window ended with: promote makes the chosen variation the permanent behaviour and moves the flag to launched, rollback returns the environment to its off behaviour, and extend keeps observing with a new observeUntil deadline. reason is stored as the attribution of the decision. This is the act the observation flag machinery requires when the deadline arrives, so an expired flag is concluded rather than left standing. A promote or rollback finishes the flag's rollout; the code and the flag are then removed by the ticket the flag recorded, which this call does not do.",
11589
+ "http": "POST",
11590
+ "path": "/devops/v1/flags/{id}:conclude",
11591
+ "streaming": "no",
11592
+ "pagination": false,
11593
+ "pathParams": [
11594
+ {
11595
+ "name": "id",
11596
+ "sdkName": "id",
11597
+ "description": "The flag identifier from a flag list or create answer; code names a flag by its key, while this API addresses it by id."
11598
+ }
11599
+ ],
11600
+ "query": [],
11601
+ "body": {
11602
+ "required": true,
11603
+ "fields": [
11604
+ {
11605
+ "name": "action",
11606
+ "type": "string",
11607
+ "enum": [
11608
+ "promote",
11609
+ "rollback",
11610
+ "extend"
11611
+ ],
11612
+ "required": true,
11613
+ "description": "What the deadline decided; promote and rollback finish the flag's rollout, while extend keeps it running with a new deadline."
11614
+ },
11615
+ {
11616
+ "name": "observeUntil",
11617
+ "type": "string",
11618
+ "required": false,
11619
+ "description": "The new deadline, required by extend and refused with the others; it must be later than the deadline being replaced."
11620
+ },
11621
+ {
11622
+ "name": "reason",
11623
+ "type": "string",
11624
+ "required": true,
11625
+ "description": "Why the decision went this way, recorded on the flag as the attribution the observation machinery requires."
11626
+ }
11627
+ ]
11628
+ }
11629
+ },
11630
+ {
11631
+ "resource": "devops.progressiveRollouts",
11632
+ "method": "create",
11633
+ "summary": "Create a progressive rollout",
11634
+ "description": "Start a staged rollout of one variation of a flag in one environment: the steps are percentages with a hold time each, and the guard says which signals are watched and whether a bad reading pauses the rollout or rolls it back. Use it instead of turning a flag fully on, so a bad variation is caught at a small percentage. bucketBy names the context attribute that decides which bucket a caller falls into, so the same caller stays in the same bucket across steps. One progressive rollout runs per flag and environment; a second one while the first is active is refused with ROLLOUT_ALREADY_ACTIVE.",
11635
+ "http": "POST",
11636
+ "path": "/devops/v1/progressive-rollouts",
11637
+ "streaming": "no",
11638
+ "pagination": false,
11639
+ "pathParams": [],
11640
+ "query": [],
11641
+ "body": {
11642
+ "required": true,
11643
+ "fields": [
11644
+ {
11645
+ "name": "flag",
11646
+ "type": "string",
11647
+ "required": true,
11648
+ "description": "The flag to ramp; it must not be archived, its environment must already be on, and its configuration must exist there."
11649
+ },
11650
+ {
11651
+ "name": "environment",
11652
+ "type": "string",
11653
+ "required": true,
11654
+ "description": "The environment to ramp in; the flag must be on there already, because ramping an off environment would serve nobody."
11655
+ },
11656
+ {
11657
+ "name": "variation",
11658
+ "type": "string",
11659
+ "required": true,
11660
+ "description": "The variation to ramp up; it must be one of the flag's variations and must not be the off variation, which is what the rest of the callers already get."
11661
+ },
11662
+ {
11663
+ "name": "bucketBy",
11664
+ "type": "string",
11665
+ "required": false,
11666
+ "description": "Which context attribute decides a caller's bucket; omit it to bucket by the targeting key, which keeps one caller on one side."
11667
+ },
11668
+ {
11669
+ "name": "steps",
11670
+ "type": "array",
11671
+ "itemType": "object",
11672
+ "required": true,
11673
+ "description": "The steps to walk, at least one; percentages must be whole numbers from 0 to 100 that never decrease, and the first step takes effect immediately."
11674
+ },
11675
+ {
11676
+ "name": "guard",
11677
+ "type": "object",
11678
+ "required": true,
11679
+ "description": "What is watched while a rollout runs, and what happens when a reading is bad."
11680
+ }
11681
+ ]
11682
+ }
11683
+ },
11684
+ {
11685
+ "resource": "devops.progressiveRollouts",
11686
+ "method": "retrieve",
11687
+ "summary": "Retrieve a progressive rollout",
11688
+ "description": "Read one progressive rollout: which step it is on, how much of the audience that is, when the next step is due, and every step it has already taken with who moved it and why. Poll it to follow a rollout, and read history to find out why it paused or rolled back — a guard that fired leaves the step and the reason there. state scheduled means the first step has not started, running means it is advancing on its hold times, and rolled_back is terminal. nextStepTime is the time the current hold ends.",
11689
+ "http": "GET",
11690
+ "path": "/devops/v1/progressive-rollouts/{id}",
11691
+ "streaming": "no",
11692
+ "pagination": false,
11693
+ "pathParams": [
11694
+ {
11695
+ "name": "id",
11696
+ "sdkName": "id",
11697
+ "description": "The progressive rollout identifier returned by the progressive rollout create answer."
11698
+ }
11699
+ ],
11700
+ "query": []
11701
+ },
11702
+ {
11703
+ "resource": "devops.progressiveRollouts",
11704
+ "method": "pause",
11705
+ "summary": "Pause a progressive rollout",
11706
+ "description": "Hold a running progressive rollout at its current percentage: no further step is taken until it is resumed, and the percentage already served keeps being served. Use it when a guard signal looks wrong but not wrong enough to roll back, so a person can look before the rollout advances. reason is recorded on the rollout as the attribution of the hold. Pausing a rollout that already completed or was rolled back is refused; read it first to see whether there is anything to hold.",
11707
+ "http": "POST",
11708
+ "path": "/devops/v1/progressive-rollouts/{id}:pause",
11709
+ "streaming": "no",
11710
+ "pagination": false,
11711
+ "pathParams": [
11712
+ {
11713
+ "name": "id",
11714
+ "sdkName": "id",
11715
+ "description": "The progressive rollout identifier returned by the progressive rollout create answer."
11716
+ }
11717
+ ],
11718
+ "query": [],
11719
+ "body": {
11720
+ "required": true,
11721
+ "fields": [
11722
+ {
11723
+ "name": "reason",
11724
+ "type": "string",
11725
+ "required": true,
11726
+ "description": "Why the rollout is being paused or rolled back, recorded verbatim in the rollout's history as the attribution of the act."
11727
+ }
11728
+ ]
11729
+ }
11730
+ },
11731
+ {
11732
+ "resource": "devops.progressiveRollouts",
11733
+ "method": "resume",
11734
+ "summary": "Resume a progressive rollout",
11735
+ "description": "Continue a paused progressive rollout from the step it stopped at, restarting the hold time for the current step rather than skipping it. Use it after a pause has been looked into and the rollout is judged safe to continue. A rollout that is running already, or that finished, is refused; read it first to see whether it is paused. The resumption is attributed to the credential that sends it and recorded in the rollout's step history.",
11736
+ "http": "POST",
11737
+ "path": "/devops/v1/progressive-rollouts/{id}:resume",
11738
+ "streaming": "no",
11739
+ "pagination": false,
11740
+ "pathParams": [
11741
+ {
11742
+ "name": "id",
11743
+ "sdkName": "id",
11744
+ "description": "The progressive rollout identifier returned by the progressive rollout create answer."
11745
+ }
11746
+ ],
11747
+ "query": []
11748
+ },
11749
+ {
11750
+ "resource": "devops.progressiveRollouts",
11751
+ "method": "rollback",
11752
+ "summary": "Roll back a progressive rollout",
11753
+ "description": "End a progressive rollout by returning the flag's environment to the variation it served before the rollout started, so the audience that was already switched over goes back. Use it when a guard signal says the variation is bad and waiting for the next step would expose more callers. reason is recorded on the rollout as the attribution of the decision. The rollback is terminal: the rollout does not restart, and a new rollout is created if the variation should be tried again. It changes what the environment serves, not the flag's other environments.",
11754
+ "http": "POST",
11755
+ "path": "/devops/v1/progressive-rollouts/{id}:rollback",
11756
+ "streaming": "no",
11757
+ "pagination": false,
11758
+ "pathParams": [
11759
+ {
11760
+ "name": "id",
11761
+ "sdkName": "id",
11762
+ "description": "The progressive rollout identifier returned by the progressive rollout create answer."
11763
+ }
11764
+ ],
11765
+ "query": [],
11766
+ "body": {
11767
+ "required": true,
11768
+ "fields": [
11769
+ {
11770
+ "name": "reason",
11771
+ "type": "string",
11772
+ "required": true,
11773
+ "description": "Why the rollout is being paused or rolled back, recorded verbatim in the rollout's history as the attribution of the act."
11774
+ }
11775
+ ]
11776
+ }
11777
+ },
11778
+ {
11779
+ "resource": "devops.projects",
11780
+ "method": "list",
11781
+ "summary": "List projects",
11782
+ "description": "List the delivery projects this organization has, newest first, with each project's repository binding and settings. Call this first when you do not already hold a project id: every other operation in this domain is addressed by one. A project from another organization is never listed, so an empty page means this organization has none rather than that they are hidden. The order is by creation time descending; follow nextPageToken until it is empty to see them all.",
11783
+ "http": "GET",
11784
+ "path": "/devops/v1/projects",
11785
+ "streaming": "no",
11786
+ "pagination": false,
11787
+ "pathParams": [],
11788
+ "query": [
11789
+ {
11790
+ "name": "pageSize",
11791
+ "type": "integer",
11792
+ "required": false,
11793
+ "description": "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone."
11794
+ },
11795
+ {
11796
+ "name": "pageToken",
11797
+ "type": "string",
11798
+ "required": false,
11799
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
11800
+ }
11801
+ ]
11802
+ },
11803
+ {
11804
+ "resource": "devops.projects",
11805
+ "method": "retrieve",
11806
+ "summary": "Retrieve a project",
11807
+ "description": "Read one project by id: its repository binding, its release schedule and its gate settings. Use it to confirm a project's configuration before releasing into it, and to learn which environment a promotion order starts from. A project that was deleted, or that belongs to another organization, answers PROJECT_NOT_FOUND — the two are indistinguishable on purpose, so the answer never tells you whether a project exists elsewhere.",
11808
+ "http": "GET",
11809
+ "path": "/devops/v1/projects/{id}",
11810
+ "streaming": "no",
11811
+ "pagination": false,
11812
+ "pathParams": [
11813
+ {
11814
+ "name": "id",
11815
+ "sdkName": "id",
11816
+ "description": "The project identifier returned by the project list, not the project's display name or its repository name."
11817
+ }
11818
+ ],
11819
+ "query": []
11820
+ },
11821
+ {
11822
+ "resource": "devops.projects.environments",
11823
+ "method": "list",
11824
+ "summary": "List environments",
11825
+ "description": "List the project's environments in promotion order: development first, production last. order is the promotion sequence, so the environment before the one you are promoting into is the one that must have verified the release first. Each entry carries its tier, whether it requires approval, and whether its queue is idle or busy; a busy queue names the promotion holding it and how many wait behind. This collection is not paged: a project has few environments and the whole ordered list is the answer.",
11826
+ "http": "GET",
11827
+ "path": "/devops/v1/projects/{project}/environments",
11828
+ "streaming": "no",
11829
+ "pagination": false,
11830
+ "pathParams": [
11831
+ {
11832
+ "name": "project",
11833
+ "sdkName": "project",
11834
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
11835
+ }
11836
+ ],
11837
+ "query": []
11838
+ },
11839
+ {
11840
+ "resource": "devops.projects.flags",
11841
+ "method": "list",
11842
+ "summary": "List flags",
11843
+ "description": "List the project's flags with their per-environment configuration, newest first. Use it to find a flag by key when code names one, and to review the flags of a project — the entries carry lifecycle, staleness, the observation deadline and the removal ticket, which is what an expiry review reads. filter accepts exactly one term, lifecycle=archived, to list the archived flags instead of the live ones; any other filter or orderBy is refused rather than ignored. totalSize is answered on the first page only.",
11844
+ "http": "GET",
11845
+ "path": "/devops/v1/projects/{project}/flags",
11846
+ "streaming": "no",
11847
+ "pagination": false,
11848
+ "pathParams": [
11849
+ {
11850
+ "name": "project",
11851
+ "sdkName": "project",
11852
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
11853
+ }
11854
+ ],
11855
+ "query": [
11856
+ {
11857
+ "name": "pageSize",
11858
+ "type": "integer",
11859
+ "required": false,
11860
+ "description": "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone."
11861
+ },
11862
+ {
11863
+ "name": "pageToken",
11864
+ "type": "string",
11865
+ "required": false,
11866
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
11867
+ },
11868
+ {
11869
+ "name": "filter",
11870
+ "type": "string",
11871
+ "required": false,
11872
+ "description": "Exactly one filter term is accepted: lifecycle=archived lists the archived flags, which are hidden by default. Any other field, operator or value is refused with INVALID_ARGUMENT rather than ignored."
11873
+ }
11874
+ ]
11875
+ },
11876
+ {
11877
+ "resource": "devops.projects.flags",
11878
+ "method": "create",
11879
+ "summary": "Create a flag",
11880
+ "description": "Create a feature flag in a project: its key, what kind of flag it is, the values it can serve, and which variation is served when it is off. The key is what code names, so it is unique per project and a key already in use is refused with FLAG_KEY_TAKEN rather than reused — an archived flag keeps its key. owner, observeUntil and removalTicket carry the flag's lifecycle: a release or experiment flag expects an observation deadline and the ticket that removes it, and a flag missing them is refused with FLAG_LIFECYCLE_INCOMPLETE. A new flag starts with every environment off, so creating one changes no runtime behaviour; turn an environment on with the environment update.",
11881
+ "http": "POST",
11882
+ "path": "/devops/v1/projects/{project}/flags",
11883
+ "streaming": "no",
11884
+ "pagination": false,
11885
+ "pathParams": [
11886
+ {
11887
+ "name": "project",
11888
+ "sdkName": "project",
11889
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
11890
+ }
11891
+ ],
11892
+ "query": [],
11893
+ "body": {
11894
+ "required": true,
11895
+ "fields": [
11896
+ {
11897
+ "name": "key",
11898
+ "type": "string",
11899
+ "required": true,
11900
+ "description": "The name code will call this flag by; unique inside the project, and a key already in use is refused with FLAG_KEY_TAKEN rather than reused."
11901
+ },
11902
+ {
11903
+ "name": "name",
11904
+ "type": "string",
11905
+ "required": true,
11906
+ "description": "Display name of the flag, shown wherever it is listed."
11907
+ },
11908
+ {
11909
+ "name": "description",
11910
+ "type": "string",
11911
+ "required": false,
11912
+ "description": "What this flag does to the product, so a later reader does not have to trace the code to find out."
11913
+ },
11914
+ {
11915
+ "name": "kind",
11916
+ "type": "string",
11917
+ "enum": [
11918
+ "release",
11919
+ "experiment",
11920
+ "ops",
11921
+ "permission"
11922
+ ],
11923
+ "required": true,
11924
+ "description": "What sort of flag this is; it decides the expected lifetime, and a release or experiment flag must carry an observation deadline."
11925
+ },
11926
+ {
11927
+ "name": "valueType",
11928
+ "type": "string",
11929
+ "enum": [
11930
+ "boolean",
11931
+ "string",
11932
+ "number",
11933
+ "object"
11934
+ ],
11935
+ "required": true,
11936
+ "description": "The type every variation must have; a variation of another type is refused."
11937
+ },
11938
+ {
11939
+ "name": "variations",
11940
+ "type": "array",
11941
+ "itemType": "object",
11942
+ "required": true,
11943
+ "description": "The values the flag can serve, at least two for a flag that decides anything; their ids are what defaults and rules name."
11944
+ },
11945
+ {
11946
+ "name": "defaults",
11947
+ "type": "object",
11948
+ "required": true,
11949
+ "description": "The variations a flag falls back to: what a caller that matches nothing gets when the flag is on, and what everyone gets when it is off."
11950
+ },
11951
+ {
11952
+ "name": "owner",
11953
+ "type": "object",
11954
+ "required": false,
11955
+ "description": "Who performed an action, so a state change or a run can be attributed rather than guessed at."
11956
+ },
11957
+ {
11958
+ "name": "observeUntil",
11959
+ "type": "string",
11960
+ "required": false,
11961
+ "description": "RFC 3339 UTC time this flag must be decided by; required for a release or experiment flag and refused with INVALID_ARGUMENT when it is missing."
11962
+ },
11963
+ {
11964
+ "name": "removalTicket",
11965
+ "type": "string",
11966
+ "required": false,
11967
+ "description": "The ticket that will remove the flag and its code; giving it here is what makes the removal traceable from the flag itself."
11968
+ },
11969
+ {
11970
+ "name": "pullRequest",
11971
+ "type": "string",
11972
+ "required": false,
11973
+ "description": "The pull request that declared this flag, when the flag comes from a code change rather than being created by hand."
11974
+ },
11975
+ {
11976
+ "name": "requestId",
11977
+ "type": "string",
11978
+ "required": false,
11979
+ "description": "Caller-chosen key that makes this create idempotent: repeating it answers the flag the first call created instead of refusing the key as taken."
11980
+ }
11981
+ ]
11982
+ }
11983
+ },
11984
+ {
11985
+ "resource": "devops.projects.promotions",
11986
+ "method": "list",
11987
+ "summary": "List promotions",
11988
+ "description": "List the project's promotions, newest first, across every environment. Use it to see what is queued, what is observing, and what finished recently, without reading each environment separately. A promotion in a terminal state stays in this list, which is how a caller tells \"never promoted\" apart from \"promoted and then rolled back\". Neither filter nor orderBy is accepted yet, so page through with pageToken instead of narrowing the query.",
11989
+ "http": "GET",
11990
+ "path": "/devops/v1/projects/{project}/promotions",
11991
+ "streaming": "no",
11992
+ "pagination": false,
11993
+ "pathParams": [
11994
+ {
11995
+ "name": "project",
11996
+ "sdkName": "project",
11997
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
11998
+ }
11999
+ ],
12000
+ "query": [
12001
+ {
12002
+ "name": "pageSize",
12003
+ "type": "integer",
12004
+ "required": false,
12005
+ "description": "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone."
12006
+ },
12007
+ {
12008
+ "name": "pageToken",
12009
+ "type": "string",
12010
+ "required": false,
12011
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
12012
+ }
12013
+ ]
12014
+ },
12015
+ {
12016
+ "resource": "devops.projects.releases",
12017
+ "method": "list",
12018
+ "summary": "List releases",
12019
+ "description": "List the project's releases, newest first. Use it to find the release a promotion should carry, or to see what has been released recently and whether any of it was abandoned. The list carries the render state and the abandoned flag, so a caller can skip a release that is still rendering or that was withdrawn without reading each one. Neither filter nor orderBy is accepted on this collection yet; a request that sends one is refused rather than silently ignored.",
12020
+ "http": "GET",
12021
+ "path": "/devops/v1/projects/{project}/releases",
12022
+ "streaming": "no",
12023
+ "pagination": false,
12024
+ "pathParams": [
12025
+ {
12026
+ "name": "project",
12027
+ "sdkName": "project",
12028
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12029
+ }
12030
+ ],
12031
+ "query": [
12032
+ {
12033
+ "name": "pageSize",
12034
+ "type": "integer",
12035
+ "required": false,
12036
+ "description": "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone."
12037
+ },
12038
+ {
12039
+ "name": "pageToken",
12040
+ "type": "string",
12041
+ "required": false,
12042
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
12043
+ }
12044
+ ]
12045
+ },
12046
+ {
12047
+ "resource": "devops.projects.releases",
12048
+ "method": "create",
12049
+ "summary": "Create a release",
12050
+ "description": "Create a release: an immutable snapshot of what will be deployed, named and fingerprinted once so later promotions can be compared against it. Send commit to release a commit as it stands, or base plus picks to build a patch release on a release that is already in production; the two shapes are exclusive and the patch shape is refused with PATCH_NOT_ELIGIBLE when the picks do not qualify. Rendering starts immediately and the answer reports its state; a promotion refuses a release that is still rendering with RELEASE_NOT_READY rather than deploying half of it. Set validateOnly to see the plan and the refusals without writing a release, and requestId to make a retry of the same call answer the first release instead of creating a second.",
12051
+ "http": "POST",
12052
+ "path": "/devops/v1/projects/{project}/releases",
12053
+ "streaming": "no",
12054
+ "pagination": false,
12055
+ "pathParams": [
12056
+ {
12057
+ "name": "project",
12058
+ "sdkName": "project",
12059
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12060
+ }
12061
+ ],
12062
+ "query": [],
12063
+ "body": {
12064
+ "required": true,
12065
+ "fields": [
12066
+ {
12067
+ "name": "commit",
12068
+ "type": "string",
12069
+ "required": false,
12070
+ "description": "Full 40-character commit to release as it stands; give this or base with picks, never both."
12071
+ },
12072
+ {
12073
+ "name": "base",
12074
+ "type": "string",
12075
+ "required": false,
12076
+ "description": "The production release a patch is built on; give it together with picks, and only when production currently runs that release."
12077
+ },
12078
+ {
12079
+ "name": "picks",
12080
+ "type": "array",
12081
+ "itemType": "string",
12082
+ "required": false,
12083
+ "description": "The commits to cherry-pick onto base, in the request; each must be on the default branch and already verified below production. Request order is not the order they land in."
12084
+ },
12085
+ {
12086
+ "name": "validateOnly",
12087
+ "type": "boolean",
12088
+ "required": false,
12089
+ "description": "True to check the request and answer the plan and its refusals without creating a release; use it to find out whether a patch qualifies before committing to it."
12090
+ },
12091
+ {
12092
+ "name": "requestId",
12093
+ "type": "string",
12094
+ "required": false,
12095
+ "description": "Caller-chosen key that makes this call idempotent: repeating it answers the release the first call created instead of cutting a second one. Reuse it only for the same content."
12096
+ }
12097
+ ]
12098
+ }
12099
+ },
12100
+ {
12101
+ "resource": "devops.projects.targets",
12102
+ "method": "list",
12103
+ "summary": "List targets",
12104
+ "description": "List what the project deploys — one target per deployable path in the repository, with its kind, its destination and the targets it depends on. Targets are discovered from the code, not entered by hand, so this list is the service's reading of the repository rather than a configuration you maintain here. A project whose catalog has never been read has it read on the first call, at the default branch's head, so the first answer is already the catalog instead of an empty page. Archived targets, which the repository no longer deploys, are left out.",
12105
+ "http": "GET",
12106
+ "path": "/devops/v1/projects/{project}/targets",
12107
+ "streaming": "no",
12108
+ "pagination": false,
12109
+ "pathParams": [
12110
+ {
12111
+ "name": "project",
12112
+ "sdkName": "project",
12113
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12114
+ }
12115
+ ],
12116
+ "query": [
12117
+ {
12118
+ "name": "pageSize",
12119
+ "type": "integer",
12120
+ "required": false,
12121
+ "description": "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone."
12122
+ },
12123
+ {
12124
+ "name": "pageToken",
12125
+ "type": "string",
12126
+ "required": false,
12127
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
12128
+ }
12129
+ ]
12130
+ },
12131
+ {
12132
+ "resource": "devops.projects.targets",
12133
+ "method": "refresh",
12134
+ "summary": "Refresh the target catalog",
12135
+ "description": "Re-read the repository at a commit and answer the deployment targets it implies, recording what was found. Call it after adding or removing a deployable service so later promotions see the current layout; omit commit to read the default branch's head, or name one to read that commit. The answer includes the dependency graph and any cycles in it, and a cycle is reported rather than refused, matching how the deploy pipeline treats one. This is a read of the repository that also remembers what it read, so it is safe to call again; nothing is deployed by it.",
12136
+ "http": "POST",
12137
+ "path": "/devops/v1/projects/{project}/targets:refresh",
12138
+ "streaming": "no",
12139
+ "pagination": false,
12140
+ "pathParams": [
12141
+ {
12142
+ "name": "project",
12143
+ "sdkName": "project",
12144
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12145
+ }
12146
+ ],
12147
+ "query": [],
12148
+ "body": {
12149
+ "required": false,
12150
+ "fields": [
12151
+ {
12152
+ "name": "commit",
12153
+ "type": "string",
12154
+ "required": false,
12155
+ "description": "Full 40-character commit sha to read instead of the default branch's head; use it to see what a past commit implied rather than what the branch says now."
12156
+ }
12157
+ ]
12158
+ }
12159
+ },
11449
12160
  {
11450
12161
  "resource": "devops.projects.testCases",
11451
12162
  "method": "list",
11452
- "summary": "List test cases",
11453
- "description": "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.",
12163
+ "summary": "List test cases",
12164
+ "description": "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.",
12165
+ "http": "GET",
12166
+ "path": "/devops/v1/projects/{project}/test-cases",
12167
+ "streaming": "no",
12168
+ "pagination": false,
12169
+ "pathParams": [
12170
+ {
12171
+ "name": "project",
12172
+ "sdkName": "project",
12173
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12174
+ }
12175
+ ],
12176
+ "query": [
12177
+ {
12178
+ "name": "pageSize",
12179
+ "type": "integer",
12180
+ "required": false,
12181
+ "description": "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone."
12182
+ },
12183
+ {
12184
+ "name": "pageToken",
12185
+ "type": "string",
12186
+ "required": false,
12187
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
12188
+ },
12189
+ {
12190
+ "name": "filter",
12191
+ "type": "string",
12192
+ "required": false,
12193
+ "description": "AIP-160 equality filter over one declared field at a time, for example state=quarantined or health=broken. Fields a case list does not declare are refused with INVALID_ARGUMENT rather than ignored, so a typo never silently widens the result."
12194
+ },
12195
+ {
12196
+ "name": "orderBy",
12197
+ "type": "string",
12198
+ "required": false,
12199
+ "description": "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order."
12200
+ }
12201
+ ]
12202
+ },
12203
+ {
12204
+ "resource": "devops.projects",
12205
+ "method": "retrieveTestCatalog",
12206
+ "summary": "Read a commit's test catalog",
12207
+ "description": "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.",
12208
+ "http": "GET",
12209
+ "path": "/devops/v1/projects/{project}/test-catalog",
12210
+ "streaming": "no",
12211
+ "pagination": false,
12212
+ "pathParams": [
12213
+ {
12214
+ "name": "project",
12215
+ "sdkName": "project",
12216
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12217
+ }
12218
+ ],
12219
+ "query": [
12220
+ {
12221
+ "name": "commit",
12222
+ "type": "string",
12223
+ "required": false,
12224
+ "description": "Full 40-character commit sha whose catalog you want, from a project branch or commit read. Omit it to read the newest catalog published for the project."
12225
+ }
12226
+ ]
12227
+ },
12228
+ {
12229
+ "resource": "devops.projects.testPlans",
12230
+ "method": "list",
12231
+ "summary": "List test plans",
12232
+ "description": "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.",
12233
+ "http": "GET",
12234
+ "path": "/devops/v1/projects/{project}/test-plans",
12235
+ "streaming": "no",
12236
+ "pagination": false,
12237
+ "pathParams": [
12238
+ {
12239
+ "name": "project",
12240
+ "sdkName": "project",
12241
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12242
+ }
12243
+ ],
12244
+ "query": [
12245
+ {
12246
+ "name": "pageSize",
12247
+ "type": "integer",
12248
+ "required": false,
12249
+ "description": "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone."
12250
+ },
12251
+ {
12252
+ "name": "pageToken",
12253
+ "type": "string",
12254
+ "required": false,
12255
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
12256
+ },
12257
+ {
12258
+ "name": "orderBy",
12259
+ "type": "string",
12260
+ "required": false,
12261
+ "description": "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order."
12262
+ }
12263
+ ]
12264
+ },
12265
+ {
12266
+ "resource": "devops.projects.testPlans",
12267
+ "method": "create",
12268
+ "summary": "Create a test plan",
12269
+ "description": "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.",
12270
+ "http": "POST",
12271
+ "path": "/devops/v1/projects/{project}/test-plans",
12272
+ "streaming": "no",
12273
+ "pagination": false,
12274
+ "pathParams": [
12275
+ {
12276
+ "name": "project",
12277
+ "sdkName": "project",
12278
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12279
+ }
12280
+ ],
12281
+ "query": [],
12282
+ "body": {
12283
+ "required": true,
12284
+ "fields": [
12285
+ {
12286
+ "name": "key",
12287
+ "type": "string",
12288
+ "required": true,
12289
+ "description": "Short name for the plan, unique inside the project; a key already in use is refused rather than silently reused."
12290
+ },
12291
+ {
12292
+ "name": "title",
12293
+ "type": "string",
12294
+ "required": true,
12295
+ "description": "Display title of the plan, shown wherever the plan is listed."
12296
+ },
12297
+ {
12298
+ "name": "stage",
12299
+ "type": "string",
12300
+ "enum": [
12301
+ "dev",
12302
+ "presubmit",
12303
+ "postsubmit",
12304
+ "nightly",
12305
+ "production"
12306
+ ],
12307
+ "required": true,
12308
+ "description": "Which stage of delivery this plan belongs to, which decides when it is expected to run."
12309
+ },
12310
+ {
12311
+ "name": "trigger",
12312
+ "type": "object",
12313
+ "required": true,
12314
+ "description": "What starts a run of this plan. Exactly one kind applies; the fields a kind needs are the ones it carries."
12315
+ },
12316
+ {
12317
+ "name": "selector",
12318
+ "type": "object",
12319
+ "required": true,
12320
+ "description": "Which cases a plan or run selects. Every member is optional and they combine as an intersection, so a selector with no member selects every case in the catalog."
12321
+ },
12322
+ {
12323
+ "name": "environment",
12324
+ "type": "string",
12325
+ "required": false,
12326
+ "description": "The environment this plan runs against; required by a merge or promotion gate, and refused with PLAN_GATE_ENVIRONMENT_MISMATCH when it disagrees with the gate."
12327
+ },
12328
+ {
12329
+ "name": "gate",
12330
+ "type": "string",
12331
+ "enum": [
12332
+ "merge",
12333
+ "promotion",
12334
+ "observation",
12335
+ "none"
12336
+ ],
12337
+ "required": true,
12338
+ "description": "Whether this plan's result blocks a stage; a merge or promotion gate must name its environment."
12339
+ },
12340
+ {
12341
+ "name": "repeat",
12342
+ "type": "integer",
12343
+ "required": false,
12344
+ "description": "How many times each selected case runs in one run; omit for once. More than one is how a flake is told apart from a real failure."
12345
+ },
12346
+ {
12347
+ "name": "timeoutMinutes",
12348
+ "type": "integer",
12349
+ "required": false,
12350
+ "description": "How many minutes a run of this plan may take before it is timed out; omit for the service's default."
12351
+ }
12352
+ ]
12353
+ }
12354
+ },
12355
+ {
12356
+ "resource": "devops.projects.testReports",
12357
+ "method": "create",
12358
+ "summary": "Upload an external test report",
12359
+ "description": "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.",
12360
+ "http": "POST",
12361
+ "path": "/devops/v1/projects/{project}/test-reports",
12362
+ "streaming": "no",
12363
+ "pagination": false,
12364
+ "pathParams": [
12365
+ {
12366
+ "name": "project",
12367
+ "sdkName": "project",
12368
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12369
+ }
12370
+ ],
12371
+ "query": [],
12372
+ "body": {
12373
+ "required": true,
12374
+ "fields": [
12375
+ {
12376
+ "name": "reportId",
12377
+ "type": "string",
12378
+ "required": true,
12379
+ "description": "Your own identifier for this report. Uploading the same id again is idempotent and counts once, so a retry after a timeout is safe."
12380
+ },
12381
+ {
12382
+ "name": "format",
12383
+ "type": "string",
12384
+ "enum": [
12385
+ "ctrf",
12386
+ "junit"
12387
+ ],
12388
+ "required": true,
12389
+ "description": "Which report format the document is in; it decides how the document is parsed."
12390
+ },
12391
+ {
12392
+ "name": "ref",
12393
+ "type": "object",
12394
+ "required": true,
12395
+ "description": "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against."
12396
+ },
12397
+ {
12398
+ "name": "report",
12399
+ "type": "string",
12400
+ "required": true,
12401
+ "description": "The report document itself, as text — JSON for ctrf, XML for junit. Send the file's contents unchanged; a malformed document is refused with REPORT_INVALID and records nothing."
12402
+ }
12403
+ ]
12404
+ }
12405
+ },
12406
+ {
12407
+ "resource": "devops.projects.testRuns",
12408
+ "method": "list",
12409
+ "summary": "List test runs",
12410
+ "description": "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.",
11454
12411
  "http": "GET",
11455
- "path": "/devops/v1/projects/{project}/test-cases",
12412
+ "path": "/devops/v1/projects/{project}/test-runs",
11456
12413
  "streaming": "no",
11457
12414
  "pagination": false,
11458
12415
  "pathParams": [
@@ -11479,7 +12436,7 @@ export const operations = [
11479
12436
  "name": "filter",
11480
12437
  "type": "string",
11481
12438
  "required": false,
11482
- "description": "AIP-160 equality filter over one declared field at a time, for example state=quarantined or health=broken. Fields a case list does not declare are refused with INVALID_ARGUMENT rather than ignored, so a typo never silently widens the result."
12439
+ "description": "AIP-160 equality filter over one declared field, for example state=running or result=failed. An undeclared field is refused with INVALID_ARGUMENT; it is never ignored, so a mistyped filter cannot quietly return everything."
11483
12440
  },
11484
12441
  {
11485
12442
  "name": "orderBy",
@@ -11490,12 +12447,12 @@ export const operations = [
11490
12447
  ]
11491
12448
  },
11492
12449
  {
11493
- "resource": "devops.projects",
11494
- "method": "retrieveTestCatalog",
11495
- "summary": "Read a commit's test catalog",
11496
- "description": "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.",
11497
- "http": "GET",
11498
- "path": "/devops/v1/projects/{project}/test-catalog",
12450
+ "resource": "devops.projects.testRuns",
12451
+ "method": "create",
12452
+ "summary": "Create a test run",
12453
+ "description": "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.",
12454
+ "http": "POST",
12455
+ "path": "/devops/v1/projects/{project}/test-runs",
11499
12456
  "streaming": "no",
11500
12457
  "pagination": false,
11501
12458
  "pathParams": [
@@ -11505,22 +12462,77 @@ export const operations = [
11505
12462
  "description": "Identifies the project whose data you are reading, from the project list or create answer."
11506
12463
  }
11507
12464
  ],
11508
- "query": [
11509
- {
11510
- "name": "commit",
11511
- "type": "string",
11512
- "required": false,
11513
- "description": "Full 40-character commit sha whose catalog you want, from a project branch or commit read. Omit it to read the newest catalog published for the project."
11514
- }
11515
- ]
12465
+ "query": [],
12466
+ "body": {
12467
+ "required": true,
12468
+ "fields": [
12469
+ {
12470
+ "name": "ref",
12471
+ "type": "object",
12472
+ "required": true,
12473
+ "description": "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against."
12474
+ },
12475
+ {
12476
+ "name": "plan",
12477
+ "type": "string",
12478
+ "required": false,
12479
+ "description": "Plan whose selector this run uses; omit it when passing selector instead. Naming a plan records the run against that plan, which is what a gate reads."
12480
+ },
12481
+ {
12482
+ "name": "selector",
12483
+ "type": "object",
12484
+ "required": false,
12485
+ "description": "An ad-hoc selector for this run alone, used instead of a plan's; it is not saved as a plan, so a run you want to repeat should name a plan."
12486
+ },
12487
+ {
12488
+ "name": "environment",
12489
+ "type": "string",
12490
+ "required": false,
12491
+ "description": "Environment to run against; it decides whether production-only cases become selectable. Omit it for a run that needs no environment."
12492
+ },
12493
+ {
12494
+ "name": "repeat",
12495
+ "type": "integer",
12496
+ "required": false,
12497
+ "description": "How many times each selected case runs, which is how a flake is told apart from a real failure; omit for once."
12498
+ },
12499
+ {
12500
+ "name": "waitUntil",
12501
+ "type": "string",
12502
+ "enum": [
12503
+ "queued",
12504
+ "started",
12505
+ "finished"
12506
+ ],
12507
+ "required": false,
12508
+ "description": "How far the call waits before answering, bounded at about 25 seconds; omit it for queued, which returns at once. The wait reads the run's own state, so a wait that reaches the bound returns the run as it stands instead of failing — check state before assuming the request was honoured."
12509
+ },
12510
+ {
12511
+ "name": "executor",
12512
+ "type": "string",
12513
+ "enum": [
12514
+ "cloud",
12515
+ "external"
12516
+ ],
12517
+ "required": false,
12518
+ "description": "Who carries the run out. cloud, the default, runs the selected cases in Praxis at the commit; external creates a run that waits for your own CI to upload a report with test-reports."
12519
+ },
12520
+ {
12521
+ "name": "requestId",
12522
+ "type": "string",
12523
+ "required": false,
12524
+ "description": "A key you choose to make creating this run idempotent: repeating the call with the same requestId returns the run it created instead of starting another, so a retry after a timeout is safe."
12525
+ }
12526
+ ]
12527
+ }
11516
12528
  },
11517
12529
  {
11518
- "resource": "devops.projects.testPlans",
12530
+ "resource": "devops.projects.testSuites",
11519
12531
  "method": "list",
11520
- "summary": "List test plans",
11521
- "description": "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.",
12532
+ "summary": "List test suites",
12533
+ "description": "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.",
11522
12534
  "http": "GET",
11523
- "path": "/devops/v1/projects/{project}/test-plans",
12535
+ "path": "/devops/v1/projects/{project}/test-suites",
11524
12536
  "streaming": "no",
11525
12537
  "pagination": false,
11526
12538
  "pathParams": [
@@ -11552,109 +12564,178 @@ export const operations = [
11552
12564
  ]
11553
12565
  },
11554
12566
  {
11555
- "resource": "devops.projects.testPlans",
12567
+ "resource": "devops.promotions",
11556
12568
  "method": "create",
11557
- "summary": "Create a test plan",
11558
- "description": "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.",
12569
+ "summary": "Create a promotion",
12570
+ "description": "Promote a release into one environment: this is the operation that actually schedules a deployment. Name the release and the environment; path is regular for an ordinary promotion, patch to carry a patch release, targeted to deploy only the targets you list, and rollback to return the environment to an earlier release. The service reads the environment's promotion order and refuses when an upstream environment has not verified this release yet, unless a bypass carries the authorization for that gate. An environment takes one promotion at a time, so a create while another is running is queued behind it rather than refused. Set validateOnly to read the plan and its refusals — layers, skipped targets, pending migrations, missing configuration keys — without scheduling anything, which is the safe way to find out what a promotion will do.",
11559
12571
  "http": "POST",
11560
- "path": "/devops/v1/projects/{project}/test-plans",
12572
+ "path": "/devops/v1/promotions",
11561
12573
  "streaming": "no",
11562
12574
  "pagination": false,
11563
- "pathParams": [
11564
- {
11565
- "name": "project",
11566
- "sdkName": "project",
11567
- "description": "Identifies the project whose data you are reading, from the project list or create answer."
11568
- }
11569
- ],
12575
+ "pathParams": [],
11570
12576
  "query": [],
11571
12577
  "body": {
11572
12578
  "required": true,
11573
12579
  "fields": [
11574
12580
  {
11575
- "name": "key",
12581
+ "name": "release",
11576
12582
  "type": "string",
11577
12583
  "required": true,
11578
- "description": "Short name for the plan, unique inside the project; a key already in use is refused rather than silently reused."
12584
+ "description": "The release to promote, from a release list or create answer; promoting an abandoned release is refused."
11579
12585
  },
11580
12586
  {
11581
- "name": "title",
12587
+ "name": "environment",
11582
12588
  "type": "string",
11583
12589
  "required": true,
11584
- "description": "Display title of the plan, shown wherever the plan is listed."
12590
+ "description": "The environment to deploy into, from the project's environment list; the upstream environment must have verified the release unless a bypass covers that gate."
11585
12591
  },
11586
12592
  {
11587
- "name": "stage",
12593
+ "name": "path",
11588
12594
  "type": "string",
11589
12595
  "enum": [
11590
- "dev",
11591
- "presubmit",
11592
- "postsubmit",
11593
- "nightly",
11594
- "production"
12596
+ "regular",
12597
+ "patch",
12598
+ "targeted",
12599
+ "rollback"
11595
12600
  ],
11596
- "required": true,
11597
- "description": "Which stage of delivery this plan belongs to, which decides when it is expected to run."
12601
+ "required": false,
12602
+ "description": "How the release should travel; omit it for an ordinary promotion. A path other than regular is not creatable yet and is refused with NOT_IMPLEMENTED."
11598
12603
  },
11599
12604
  {
11600
- "name": "trigger",
11601
- "type": "object",
11602
- "required": true,
11603
- "description": "What starts a run of this plan. Exactly one kind applies; the fields a kind needs are the ones it carries."
12605
+ "name": "targets",
12606
+ "type": "array",
12607
+ "itemType": "string",
12608
+ "required": false,
12609
+ "description": "Deploy only these targets; omit it to let the plan choose from what changed. Naming a target the plan would skip does not force it — read skipped in the plan."
11604
12610
  },
11605
12611
  {
11606
- "name": "selector",
11607
- "type": "object",
11608
- "required": true,
11609
- "description": "Which cases a plan or run selects. Every member is optional and they combine as an intersection, so a selector with no member selects every case in the catalog."
12612
+ "name": "bypass",
12613
+ "type": "array",
12614
+ "itemType": "object",
12615
+ "required": false,
12616
+ "description": "Gates to skip, each naming the approval that authorizes it; a bypass is refused unless the project allows skipping upstream and the approval covers this release, environment and gate."
11610
12617
  },
11611
12618
  {
11612
- "name": "environment",
11613
- "type": "string",
12619
+ "name": "validateOnly",
12620
+ "type": "boolean",
11614
12621
  "required": false,
11615
- "description": "The environment this plan runs against; required by a merge or promotion gate, and refused with PLAN_GATE_ENVIRONMENT_MISMATCH when it disagrees with the gate."
12622
+ "description": "True to answer the plan without scheduling anything; use it to find out whether a promotion would be refused before committing to it. Nothing is deployed."
11616
12623
  },
11617
12624
  {
11618
- "name": "gate",
12625
+ "name": "requestId",
11619
12626
  "type": "string",
11620
- "enum": [
11621
- "merge",
11622
- "promotion",
11623
- "observation",
11624
- "none"
11625
- ],
11626
- "required": true,
11627
- "description": "Whether this plan's result blocks a stage; a merge or promotion gate must name its environment."
11628
- },
11629
- {
11630
- "name": "repeat",
11631
- "type": "integer",
11632
12627
  "required": false,
11633
- "description": "How many times each selected case runs in one run; omit for once. More than one is how a flake is told apart from a real failure."
12628
+ "description": "Caller-chosen key that makes this create idempotent: repeating it answers the promotion the first call made instead of scheduling a second one."
12629
+ }
12630
+ ]
12631
+ }
12632
+ },
12633
+ {
12634
+ "resource": "devops.promotions",
12635
+ "method": "retrieve",
12636
+ "summary": "Retrieve a promotion",
12637
+ "description": "Read one promotion: its state, its approval, its plan, and the failure that stopped it when there is one. Poll this after creating a promotion to follow it to a terminal state, or read it to find out why a deployment stopped — failure.cause tells plan refusal apart from a failed deploy, and executor names the runs involved. Pass expand=rollouts to receive the per-target rollouts in the same answer instead of listing them separately. state observing means the environment is deployed and the observation window is running, so the promotion is not finished and conclude is still to come.",
12638
+ "http": "GET",
12639
+ "path": "/devops/v1/promotions/{id}",
12640
+ "streaming": "no",
12641
+ "pagination": false,
12642
+ "pathParams": [
12643
+ {
12644
+ "name": "id",
12645
+ "sdkName": "id",
12646
+ "description": "The promotion identifier returned by a promotion list or create answer."
12647
+ }
12648
+ ],
12649
+ "query": [
12650
+ {
12651
+ "name": "expand",
12652
+ "type": "string",
12653
+ "enum": [
12654
+ "rollouts"
12655
+ ],
12656
+ "required": false,
12657
+ "description": "Extra sections to inline in the answer; today only rollouts, which adds the per-target rollouts this promotion owns. Omit it for the promotion alone."
12658
+ }
12659
+ ]
12660
+ },
12661
+ {
12662
+ "resource": "devops.promotions",
12663
+ "method": "approve",
12664
+ "summary": "Approve or reject a promotion",
12665
+ "description": "Answer the approval an environment asked for: send approved true to let the promotion proceed, false to reject it and end it in approval_rejected. This is the environment-level gate an environment with requireApproval raises, not the per-rollout approval. Comment records the reasoning next to the decision, which is what a later reader sees instead of the bare verdict. The call is refused with PROMOTION_NOT_AWAITING_APPROVAL when the promotion is not waiting for one, so a stale approval cannot restart something that already finished. Approving is attributed to the credential that sends it.",
12666
+ "http": "POST",
12667
+ "path": "/devops/v1/promotions/{id}:approve",
12668
+ "streaming": "no",
12669
+ "pagination": false,
12670
+ "pathParams": [
12671
+ {
12672
+ "name": "id",
12673
+ "sdkName": "id",
12674
+ "description": "The promotion identifier returned by a promotion list or create answer."
12675
+ }
12676
+ ],
12677
+ "query": [],
12678
+ "body": {
12679
+ "required": true,
12680
+ "fields": [
12681
+ {
12682
+ "name": "approved",
12683
+ "type": "boolean",
12684
+ "required": true,
12685
+ "description": "True to approve, which lets the promotion deploy; false rejects it and ends the promotion as approval_rejected."
11634
12686
  },
11635
12687
  {
11636
- "name": "timeoutMinutes",
11637
- "type": "integer",
12688
+ "name": "comment",
12689
+ "type": "string",
11638
12690
  "required": false,
11639
- "description": "How many minutes a run of this plan may take before it is timed out; omit for the service's default."
12691
+ "description": "What the approver wants recorded with the decision, stored verbatim; omit it when there is nothing to add."
11640
12692
  }
11641
12693
  ]
11642
12694
  }
11643
12695
  },
11644
12696
  {
11645
- "resource": "devops.projects.testReports",
11646
- "method": "create",
11647
- "summary": "Upload an external test report",
11648
- "description": "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.",
12697
+ "resource": "devops.promotions",
12698
+ "method": "cancel",
12699
+ "summary": "Cancel a promotion",
12700
+ "description": "Stop a promotion that has not finished, moving it through cancelling to cancelled and stopping the deploys it had scheduled. Use it to halt a deployment that is failing or that should no longer continue; reason is recorded as the attribution of the stop. Cancelling does not undo what already deployed: an environment whose targets were written keeps those targets, and returning them to an earlier release is a separate rollback promotion. A promotion that already reached a terminal state is refused with PROMOTION_ALREADY_FINISHED rather than silently ignored.",
11649
12701
  "http": "POST",
11650
- "path": "/devops/v1/projects/{project}/test-reports",
12702
+ "path": "/devops/v1/promotions/{id}:cancel",
11651
12703
  "streaming": "no",
11652
12704
  "pagination": false,
11653
12705
  "pathParams": [
11654
12706
  {
11655
- "name": "project",
11656
- "sdkName": "project",
11657
- "description": "Identifies the project whose data you are reading, from the project list or create answer."
12707
+ "name": "id",
12708
+ "sdkName": "id",
12709
+ "description": "The promotion identifier returned by a promotion list or create answer."
12710
+ }
12711
+ ],
12712
+ "query": [],
12713
+ "body": {
12714
+ "required": true,
12715
+ "fields": [
12716
+ {
12717
+ "name": "reason",
12718
+ "type": "string",
12719
+ "required": true,
12720
+ "description": "Why the promotion is being cancelled, stored on it as the attribution of the act."
12721
+ }
12722
+ ]
12723
+ }
12724
+ },
12725
+ {
12726
+ "resource": "devops.promotions",
12727
+ "method": "conclude",
12728
+ "summary": "Conclude an observation",
12729
+ "description": "Record the verdict on a promotion that is observing: send keep to accept the deployment as the environment's new state, or rollback to return the environment to the release it held before. This is the decision the observation window exists for, so a promotion in observing state stays open until it is concluded; reason is stored as the attribution. Concluding with rollback schedules the return, it does not merely label the promotion. A promotion that is not observing is refused with PROMOTION_NOT_OBSERVING, which is how a caller tells \"already concluded\" apart from a call that had no effect.",
12730
+ "http": "POST",
12731
+ "path": "/devops/v1/promotions/{id}:conclude",
12732
+ "streaming": "no",
12733
+ "pagination": false,
12734
+ "pathParams": [
12735
+ {
12736
+ "name": "id",
12737
+ "sdkName": "id",
12738
+ "description": "The promotion identifier returned by a promotion list or create answer."
11658
12739
  }
11659
12740
  ],
11660
12741
  "query": [],
@@ -11662,50 +12743,56 @@ export const operations = [
11662
12743
  "required": true,
11663
12744
  "fields": [
11664
12745
  {
11665
- "name": "reportId",
11666
- "type": "string",
11667
- "required": true,
11668
- "description": "Your own identifier for this report. Uploading the same id again is idempotent and counts once, so a retry after a timeout is safe."
11669
- },
11670
- {
11671
- "name": "format",
12746
+ "name": "action",
11672
12747
  "type": "string",
11673
12748
  "enum": [
11674
- "ctrf",
11675
- "junit"
12749
+ "keep",
12750
+ "rollback"
11676
12751
  ],
11677
12752
  "required": true,
11678
- "description": "Which report format the document is in; it decides how the document is parsed."
11679
- },
11680
- {
11681
- "name": "ref",
11682
- "type": "object",
11683
- "required": true,
11684
- "description": "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against."
12753
+ "description": "Which way the window is decided; a rollback schedules the return of the environment rather than only labelling the promotion."
11685
12754
  },
11686
12755
  {
11687
- "name": "report",
12756
+ "name": "reason",
11688
12757
  "type": "string",
11689
12758
  "required": true,
11690
- "description": "The report document itself, as text — JSON for ctrf, XML for junit. Send the file's contents unchanged; a malformed document is refused with REPORT_INVALID and records nothing."
12759
+ "description": "Why the window was decided that way, recorded on the promotion's observation as the attribution of the verdict."
11691
12760
  }
11692
12761
  ]
11693
12762
  }
11694
12763
  },
11695
12764
  {
11696
- "resource": "devops.projects.testRuns",
12765
+ "resource": "devops.promotions",
12766
+ "method": "retry",
12767
+ "summary": "Retry a promotion",
12768
+ "description": "Continue a promotion that stopped part-way, such as one in halted where some targets succeeded and others failed. The retry re-runs the targets that did not succeed and leaves the ones that did alone, so a partially deployed environment is completed rather than redeployed from the start. A promotion that is still running is refused, and so is one that already reached a terminal state; read the promotion first and retry only a halted or errored one. The retry is attributed to the credential that sends it and is recorded on the promotion.",
12769
+ "http": "POST",
12770
+ "path": "/devops/v1/promotions/{id}:retry",
12771
+ "streaming": "no",
12772
+ "pagination": false,
12773
+ "pathParams": [
12774
+ {
12775
+ "name": "id",
12776
+ "sdkName": "id",
12777
+ "description": "The promotion identifier returned by a promotion list or create answer."
12778
+ }
12779
+ ],
12780
+ "query": []
12781
+ },
12782
+ {
12783
+ "resource": "devops.promotions.rollouts",
11697
12784
  "method": "list",
11698
- "summary": "List test runs",
11699
- "description": "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.",
12785
+ "summary": "List a promotion's rollouts",
12786
+ "description": "List the per-target rollouts of one promotion: which target each is deploying, which layer it waits on, and where in its phases it has got to. Call it when a promotion is halted or failed to find the target that stopped, since the promotion's own state summarises what the rollouts show one by one. A promotion with nothing to deploy answers an empty page rather than a refusal. Neither filter nor orderBy is accepted here, and the rollouts come in the order the plan laid them out.",
11700
12787
  "http": "GET",
11701
- "path": "/devops/v1/projects/{project}/test-runs",
12788
+ "path": "/devops/v1/promotions/{promotion}/rollouts",
11702
12789
  "streaming": "no",
11703
12790
  "pagination": false,
11704
12791
  "pathParams": [
11705
12792
  {
11706
- "name": "project",
11707
- "sdkName": "project",
11708
- "description": "Identifies the project whose data you are reading, from the project list or create answer."
12793
+ "name": "promotion",
12794
+ "sdkName": "promotion",
12795
+ "description": "The promotion whose rollouts you are reading, from a promotion list or create answer."
11709
12796
  }
11710
12797
  ],
11711
12798
  "query": [
@@ -11720,35 +12807,41 @@ export const operations = [
11720
12807
  "type": "string",
11721
12808
  "required": false,
11722
12809
  "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
11723
- },
11724
- {
11725
- "name": "filter",
11726
- "type": "string",
11727
- "required": false,
11728
- "description": "AIP-160 equality filter over one declared field, for example state=running or result=failed. An undeclared field is refused with INVALID_ARGUMENT; it is never ignored, so a mistyped filter cannot quietly return everything."
11729
- },
11730
- {
11731
- "name": "orderBy",
11732
- "type": "string",
11733
- "required": false,
11734
- "description": "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order."
11735
12810
  }
11736
12811
  ]
11737
12812
  },
11738
12813
  {
11739
- "resource": "devops.projects.testRuns",
11740
- "method": "create",
11741
- "summary": "Create a test run",
11742
- "description": "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.",
12814
+ "resource": "devops.releases",
12815
+ "method": "retrieve",
12816
+ "summary": "Retrieve a release",
12817
+ "description": "Read one release in full: the commit it carries, the targets and source digests it was rendered from, which environments have verified it, and where it currently runs. Call it before promoting to confirm the release is not abandoned and that its render succeeded, and after deploying to learn which environments already hold it so the same release is not promoted twice. A release from another organization answers RELEASE_NOT_FOUND, which is also the answer for one that never existed.",
12818
+ "http": "GET",
12819
+ "path": "/devops/v1/releases/{id}",
12820
+ "streaming": "no",
12821
+ "pagination": false,
12822
+ "pathParams": [
12823
+ {
12824
+ "name": "id",
12825
+ "sdkName": "id",
12826
+ "description": "The release identifier returned by a release list or create answer; a release is addressed by this id, never by its display name."
12827
+ }
12828
+ ],
12829
+ "query": []
12830
+ },
12831
+ {
12832
+ "resource": "devops.releases",
12833
+ "method": "abandon",
12834
+ "summary": "Abandon a release",
12835
+ "description": "Withdraw a release so it can no longer be promoted: a later promotion of it is refused with RELEASE_ABANDONED. Use it when a release was created by mistake or has been superseded, and record why in reason — the reason is stored on the release as the attribution of the act. A release with a promotion still in flight cannot be abandoned, because the queue is mid-flight on it; cancel that promotion first, which is the door for stopping a deployment. Abandoning is one-way: a withdrawn release is never un-abandoned, and a new release is created instead.",
11743
12836
  "http": "POST",
11744
- "path": "/devops/v1/projects/{project}/test-runs",
12837
+ "path": "/devops/v1/releases/{id}:abandon",
11745
12838
  "streaming": "no",
11746
12839
  "pagination": false,
11747
12840
  "pathParams": [
11748
12841
  {
11749
- "name": "project",
11750
- "sdkName": "project",
11751
- "description": "Identifies the project whose data you are reading, from the project list or create answer."
12842
+ "name": "id",
12843
+ "sdkName": "id",
12844
+ "description": "The release identifier returned by a release list or create answer; a release is addressed by this id, never by its display name."
11752
12845
  }
11753
12846
  ],
11754
12847
  "query": [],
@@ -11756,101 +12849,31 @@ export const operations = [
11756
12849
  "required": true,
11757
12850
  "fields": [
11758
12851
  {
11759
- "name": "ref",
11760
- "type": "object",
11761
- "required": true,
11762
- "description": "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against."
11763
- },
11764
- {
11765
- "name": "plan",
11766
- "type": "string",
11767
- "required": false,
11768
- "description": "Plan whose selector this run uses; omit it when passing selector instead. Naming a plan records the run against that plan, which is what a gate reads."
11769
- },
11770
- {
11771
- "name": "selector",
11772
- "type": "object",
11773
- "required": false,
11774
- "description": "An ad-hoc selector for this run alone, used instead of a plan's; it is not saved as a plan, so a run you want to repeat should name a plan."
11775
- },
11776
- {
11777
- "name": "environment",
11778
- "type": "string",
11779
- "required": false,
11780
- "description": "Environment to run against; it decides whether production-only cases become selectable. Omit it for a run that needs no environment."
11781
- },
11782
- {
11783
- "name": "repeat",
11784
- "type": "integer",
11785
- "required": false,
11786
- "description": "How many times each selected case runs, which is how a flake is told apart from a real failure; omit for once."
11787
- },
11788
- {
11789
- "name": "waitUntil",
11790
- "type": "string",
11791
- "enum": [
11792
- "queued",
11793
- "started",
11794
- "finished"
11795
- ],
11796
- "required": false,
11797
- "description": "How far the call waits before answering, bounded at about 25 seconds; omit it for queued, which returns at once. The wait reads the run's own state, so a wait that reaches the bound returns the run as it stands instead of failing — check state before assuming the request was honoured."
11798
- },
11799
- {
11800
- "name": "executor",
11801
- "type": "string",
11802
- "enum": [
11803
- "cloud",
11804
- "external"
11805
- ],
11806
- "required": false,
11807
- "description": "Who carries the run out. cloud, the default, runs the selected cases in Praxis at the commit; external creates a run that waits for your own CI to upload a report with test-reports."
11808
- },
11809
- {
11810
- "name": "requestId",
12852
+ "name": "reason",
11811
12853
  "type": "string",
11812
- "required": false,
11813
- "description": "A key you choose to make creating this run idempotent: repeating the call with the same requestId returns the run it created instead of starting another, so a retry after a timeout is safe."
12854
+ "required": true,
12855
+ "description": "Why this release no longer should be promoted, recorded verbatim on the release for whoever reads it later."
11814
12856
  }
11815
12857
  ]
11816
12858
  }
11817
12859
  },
11818
12860
  {
11819
- "resource": "devops.projects.testSuites",
11820
- "method": "list",
11821
- "summary": "List test suites",
11822
- "description": "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.",
12861
+ "resource": "devops.rollouts",
12862
+ "method": "retrieve",
12863
+ "summary": "Retrieve a rollout",
12864
+ "description": "Read one rollout in full: its phases and the jobs inside them, each job's most recent attempt, the checkpoint it was deploying from, and why it failed when it did. This is the level that names the failing step — a promotion tells you that a target failed, a rollout tells you which job run did and what it reported. Use logFileId or a job run's eventLogPath to reach the logs that step produced. A rollout from another organization answers ROLLOUT_NOT_FOUND, the same answer as one that never existed.",
11823
12865
  "http": "GET",
11824
- "path": "/devops/v1/projects/{project}/test-suites",
12866
+ "path": "/devops/v1/rollouts/{id}",
11825
12867
  "streaming": "no",
11826
12868
  "pagination": false,
11827
12869
  "pathParams": [
11828
12870
  {
11829
- "name": "project",
11830
- "sdkName": "project",
11831
- "description": "Identifies the project whose data you are reading, from the project list or create answer."
12871
+ "name": "id",
12872
+ "sdkName": "id",
12873
+ "description": "The rollout identifier from a promotion's rollout list or a promotion read with expand=rollouts."
11832
12874
  }
11833
12875
  ],
11834
- "query": [
11835
- {
11836
- "name": "pageSize",
11837
- "type": "integer",
11838
- "required": false,
11839
- "description": "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone."
11840
- },
11841
- {
11842
- "name": "pageToken",
11843
- "type": "string",
11844
- "required": false,
11845
- "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
11846
- },
11847
- {
11848
- "name": "orderBy",
11849
- "type": "string",
11850
- "required": false,
11851
- "description": "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order."
11852
- }
11853
- ]
12876
+ "query": []
11854
12877
  },
11855
12878
  {
11856
12879
  "resource": "devops.testCases",
@@ -13441,6 +14464,41 @@ export const operations = [
13441
14464
  ]
13442
14465
  }
13443
14466
  },
14467
+ {
14468
+ "resource": "media.libraries",
14469
+ "method": "retrieveDefault",
14470
+ "summary": "Get default library",
14471
+ "description": "Return this organization’s default library. Calling ensures the organization’s default library exists (ADR-093): the first call creates it and later calls return the same library, so this is the method to call before writing when no library id is known. Generated and edited media land here when no library is named. The path segment {lib} accepts the literal default, which resolves to this library before the credential check — so an agent that has never listed libraries can still write to the right place. Returns the same Library object as libraries.retrieve; a credential bound to one library reaches this only when that binding covers the default library.",
14472
+ "http": "GET",
14473
+ "path": "/media/v1/libraries/default",
14474
+ "streaming": "no",
14475
+ "pagination": false,
14476
+ "pathParams": [],
14477
+ "query": []
14478
+ },
14479
+ {
14480
+ "resource": "media.libraries",
14481
+ "method": "setDefault",
14482
+ "summary": "Set default library",
14483
+ "description": "Point this organization’s default library at an existing library. Calling ensures the organization’s default library exists (ADR-093): the path is resolved before the credential check, so a first call creates the default library when there is none and then repoints it. The path segment {lib} accepts the literal default, which resolves to this library before the credential check. Supply library_id from library creation or listing; the library must be active and belong to the organization. This changes where library-less generation and uploads land across the whole organization, so it affects other callers as well as this one. It does not move or copy any asset — assets already in the previous default library stay there. Returns the library now set as the default. Deleting the default library is refused with LIBRARY_IS_DEFAULT until another library is made the default.",
14484
+ "http": "PUT",
14485
+ "path": "/media/v1/libraries/default",
14486
+ "streaming": "no",
14487
+ "pagination": false,
14488
+ "pathParams": [],
14489
+ "query": [],
14490
+ "body": {
14491
+ "required": true,
14492
+ "fields": [
14493
+ {
14494
+ "name": "library_id",
14495
+ "type": "string",
14496
+ "required": true,
14497
+ "description": "Identifier of a library belonging to the caller."
14498
+ }
14499
+ ]
14500
+ }
14501
+ },
13444
14502
  {
13445
14503
  "resource": "media.libraries",
13446
14504
  "method": "delete",
@@ -13565,6 +14623,25 @@ export const operations = [
13565
14623
  "required": false,
13566
14624
  "description": "image, video (including audio), raw; auto is accepted by Upload actions only, and listing with auto returns 400."
13567
14625
  },
14626
+ {
14627
+ "name": "material_type",
14628
+ "type": "string",
14629
+ "enum": [
14630
+ "image",
14631
+ "video",
14632
+ "audio",
14633
+ "voice",
14634
+ "sticker",
14635
+ "font",
14636
+ "text_style",
14637
+ "text_template",
14638
+ "animation_preset",
14639
+ "lut",
14640
+ "transition_map"
14641
+ ],
14642
+ "required": false,
14643
+ "description": "Filter assets to one kind of material, independent of the stored resource_type. Omit to list every material type. Assets stored before this field existed match no material_type filter."
14644
+ },
13568
14645
  {
13569
14646
  "name": "cursor",
13570
14647
  "type": "string",
@@ -13925,6 +15002,68 @@ export const operations = [
13925
15002
  ]
13926
15003
  }
13927
15004
  },
15005
+ {
15006
+ "resource": "media.assets",
15007
+ "method": "edit",
15008
+ "summary": "Edit asset",
15009
+ "description": "Edit an existing asset and store the result as a new asset. Use library_id from creation or listing and asset_id from asset creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. The source asset is never overwritten: the new asset hangs under it in the edit chain, records it in derived_from, and reads back with assets.lineage, so earlier steps stay reachable. The body is operation plus the optional model, asset_folder, understanding and idempotency_key; operation.type selects the edit and carries that operation’s own fields. This release performs variations, inpaint, erase, replace_object, recolor, remove_background and replace_background on images; every other type in the operation vocabulary — the video and audio edits — is refused with OPERATION_NOT_SUPPORTED. inpaint takes mask, a PNG File identifier beginning with file- whose transparent area marks the region to replace, plus the prompt describing what belongs there. Aspects beyond the source asset’s material type return REFERENCE_TYPE_MISMATCH. Editing is charged through Router and the job records the charge in usage. The response is 202 with a queued Job whose type is image, whose operation is the edit applied, and whose source_asset_id is the asset edited; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until it is completed or failed, then read the produced asset. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/edits with {\"operation\":{\"type\":\"variations\",\"strength\":\"subtle\"}}.",
15010
+ "http": "POST",
15011
+ "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
15012
+ "streaming": "no",
15013
+ "pagination": false,
15014
+ "pathParams": [
15015
+ {
15016
+ "name": "library_id",
15017
+ "sdkName": "library_id",
15018
+ "description": "Library ID returned by creation."
15019
+ },
15020
+ {
15021
+ "name": "asset_id",
15022
+ "sdkName": "asset_id",
15023
+ "description": "32-character asset ID."
15024
+ }
15025
+ ],
15026
+ "query": [],
15027
+ "body": {
15028
+ "required": true,
15029
+ "fields": [
15030
+ {
15031
+ "name": "operation",
15032
+ "type": "object",
15033
+ "required": true,
15034
+ "description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor, remove_background and replace_background on images; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED."
15035
+ },
15036
+ {
15037
+ "name": "model",
15038
+ "type": "string",
15039
+ "required": false,
15040
+ "description": "Router model that performs the edit; omit it to use the library default image model."
15041
+ },
15042
+ {
15043
+ "name": "asset_folder",
15044
+ "type": "string",
15045
+ "required": false,
15046
+ "description": "Folder the produced asset is filed under; defaults to the source asset’s folder. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
15047
+ },
15048
+ {
15049
+ "name": "understanding",
15050
+ "type": "string",
15051
+ "enum": [
15052
+ "auto",
15053
+ "skip"
15054
+ ],
15055
+ "required": false,
15056
+ "description": "Understanding behavior for the produced asset; defaults to auto."
15057
+ },
15058
+ {
15059
+ "name": "idempotency_key",
15060
+ "type": "string",
15061
+ "required": false,
15062
+ "description": "Stable key so a retried request reuses the same job instead of editing and charging again; reusing it with different content is rejected."
15063
+ }
15064
+ ]
15065
+ }
15066
+ },
13928
15067
  {
13929
15068
  "resource": "media.libraries.assets.frames",
13930
15069
  "method": "create",
@@ -13971,6 +15110,29 @@ export const operations = [
13971
15110
  ]
13972
15111
  }
13973
15112
  },
15113
+ {
15114
+ "resource": "media.assets",
15115
+ "method": "lineage",
15116
+ "summary": "Get asset lineage",
15117
+ "description": "Read the whole edit tree containing one asset, so a caller sees what it was edited from and what was edited from it. Use library_id from creation or listing and asset_id from asset creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. The response names the root the tree descends from, the asset asked about, and every step between them, each with the operation, prompt and creation time that produced it. Deleted assets stay in the tree, marked deleted, so the chain stays connected after cleanup. This is a read: it starts no processing and changes no asset. Example: GET /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/lineage.",
15118
+ "http": "GET",
15119
+ "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/lineage",
15120
+ "streaming": "no",
15121
+ "pagination": false,
15122
+ "pathParams": [
15123
+ {
15124
+ "name": "library_id",
15125
+ "sdkName": "library_id",
15126
+ "description": "Library ID returned by creation."
15127
+ },
15128
+ {
15129
+ "name": "asset_id",
15130
+ "sdkName": "asset_id",
15131
+ "description": "32-character asset ID."
15132
+ }
15133
+ ],
15134
+ "query": []
15135
+ },
13974
15136
  {
13975
15137
  "resource": "media.libraries.assets.reprocess",
13976
15138
  "method": "create",
@@ -14108,6 +15270,73 @@ export const operations = [
14108
15270
  ]
14109
15271
  }
14110
15272
  },
15273
+ {
15274
+ "resource": "media.speech",
15275
+ "method": "create",
15276
+ "summary": "Create speech",
15277
+ "description": "Synthesise speech from text and store the recording straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still synthesise. input is the text to speak and voice is required; speed is passed to the provider unchanged, and instructions and language are refused with OPERATION_NOT_SUPPORTED in this release. A voice that names a voice material of this library is refused the same way — voice cloning opens with voices.create. The provider caps one request at a short stretch of text, so a long input is cut into segments at paragraph and sentence boundaries and synthesised in order, then joined into the single recording the library receives: nothing is spoken twice and nothing is dropped. Because the segments are joined byte for byte, a multi-segment input accepts only response_format mp3 (the default) or pcm; opus is available for a single-segment input. A speech job has one result however many segments it took. Synthesis is charged through Router and the job records the charge in usage; a request refused before it starts costs nothing. The response is 202 with a queued Job whose type is speech and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced asset from the library — the recording carries material_type audio, audio_role voice, ai_generated true, and provenance naming this job, the text spoken and the model. Send Idempotency-Key, or idempotency_key in the body, to retry without synthesising and charging twice. Example: POST /media/v1/libraries/default/audio/speech with {\"input\":\"A red kite above a calm sea at sunrise.\",\"voice\":\"alloy\"}.",
15278
+ "http": "POST",
15279
+ "path": "/media/v1/libraries/{library_id}/audio/speech",
15280
+ "streaming": "no",
15281
+ "pagination": false,
15282
+ "pathParams": [
15283
+ {
15284
+ "name": "library_id",
15285
+ "sdkName": "library_id",
15286
+ "description": "Library ID returned by creation."
15287
+ }
15288
+ ],
15289
+ "query": [],
15290
+ "body": {
15291
+ "required": true,
15292
+ "fields": [
15293
+ {
15294
+ "name": "input",
15295
+ "type": "string",
15296
+ "required": true,
15297
+ "description": "Text to synthesize; long text is synthesized paragraph by paragraph."
15298
+ },
15299
+ {
15300
+ "name": "voice",
15301
+ "type": "string",
15302
+ "required": true,
15303
+ "description": "Voice identifier or platform voice name."
15304
+ },
15305
+ {
15306
+ "name": "instructions",
15307
+ "type": "string",
15308
+ "required": false,
15309
+ "description": "Emotion and style guidance for the synthesized speech."
15310
+ },
15311
+ {
15312
+ "name": "speed",
15313
+ "type": "number",
15314
+ "required": false,
15315
+ "description": "Speaking-rate multiplier; 1 is the model default."
15316
+ },
15317
+ {
15318
+ "name": "response_format",
15319
+ "type": "string",
15320
+ "enum": [
15321
+ "mp3",
15322
+ "wav",
15323
+ "opus",
15324
+ "aac",
15325
+ "flac",
15326
+ "pcm"
15327
+ ],
15328
+ "required": false,
15329
+ "description": "Audio encoding of the synthesized speech."
15330
+ },
15331
+ {
15332
+ "name": "language",
15333
+ "type": "string",
15334
+ "required": false,
15335
+ "description": "Language of the text, when the voice supports several."
15336
+ }
15337
+ ]
15338
+ }
15339
+ },
14111
15340
  {
14112
15341
  "resource": "media.libraries.batches",
14113
15342
  "method": "create",
@@ -14372,6 +15601,126 @@ export const operations = [
14372
15601
  ]
14373
15602
  }
14374
15603
  },
15604
+ {
15605
+ "resource": "media.images",
15606
+ "method": "generate",
15607
+ "summary": "Generate image",
15608
+ "description": "Generate one or more images from a text prompt and store them straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still generate. The request body is the image request itself: prompt is required, and n, size, background, output_format, output, references, seed, model, asset_folder and understanding are optional. Set output to sticker for a cut-out with a transparent background. references attach existing assets with a role — edit_target, style, structure or subject — and a model that cannot honour a role returns REFERENCE_TYPE_MISMATCH. Aspect ratio is not accepted for images; name size instead. Generation is charged through Router and the job records the charge in usage; nothing is charged for a request refused before it starts. The response is 202 with a queued Job whose type is image and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced assets from the library. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice. Example: POST /media/v1/libraries/default/images/generations with {\"prompt\":\"A red kite above a calm sea at sunrise\",\"n\":1,\"output\":\"sticker\"}.",
15609
+ "http": "POST",
15610
+ "path": "/media/v1/libraries/{library_id}/images/generations",
15611
+ "streaming": "no",
15612
+ "pagination": false,
15613
+ "pathParams": [
15614
+ {
15615
+ "name": "library_id",
15616
+ "sdkName": "library_id",
15617
+ "description": "Library ID returned by creation."
15618
+ }
15619
+ ],
15620
+ "query": [],
15621
+ "body": {
15622
+ "required": true,
15623
+ "fields": [
15624
+ {
15625
+ "name": "prompt",
15626
+ "type": "string",
15627
+ "required": true,
15628
+ "description": "Text prompt describing the image to generate; Router forwards it to the image model unchanged."
15629
+ },
15630
+ {
15631
+ "name": "negative_prompt",
15632
+ "type": "string",
15633
+ "required": false,
15634
+ "description": "What the image must not contain. Models without a negative-prompt control ignore it."
15635
+ },
15636
+ {
15637
+ "name": "n",
15638
+ "type": "integer",
15639
+ "required": false,
15640
+ "description": "Images to generate in one job, from 1 to 10; defaults to 1. Each produced image is charged separately."
15641
+ },
15642
+ {
15643
+ "name": "size",
15644
+ "type": "string",
15645
+ "required": false,
15646
+ "description": "Requested pixel size written as width x height. Router validates it against the chosen model and rejects an unsupported size with INVALID_PARAMS."
15647
+ },
15648
+ {
15649
+ "name": "background",
15650
+ "type": "string",
15651
+ "enum": [
15652
+ "transparent",
15653
+ "opaque",
15654
+ "auto"
15655
+ ],
15656
+ "required": false,
15657
+ "description": "Background handling; defaults to auto. Whether transparency is honoured depends on the model."
15658
+ },
15659
+ {
15660
+ "name": "output_format",
15661
+ "type": "string",
15662
+ "enum": [
15663
+ "png",
15664
+ "jpeg",
15665
+ "webp"
15666
+ ],
15667
+ "required": false,
15668
+ "description": "Encoding of the stored image; defaults to png. Transparency requires png or webp."
15669
+ },
15670
+ {
15671
+ "name": "output",
15672
+ "type": "string",
15673
+ "enum": [
15674
+ "image",
15675
+ "sticker"
15676
+ ],
15677
+ "required": false,
15678
+ "description": "How the result is stored: image for a normal picture, or sticker for a cut-out committed with material_type sticker; defaults to image."
15679
+ },
15680
+ {
15681
+ "name": "references",
15682
+ "type": "array",
15683
+ "itemType": "object",
15684
+ "required": false,
15685
+ "description": "Existing assets the model may use, each with the role it plays. Router answers REFERENCE_TYPE_MISMATCH when the chosen model cannot honour a role."
15686
+ },
15687
+ {
15688
+ "name": "seed",
15689
+ "type": "integer",
15690
+ "required": false,
15691
+ "description": "Seed for reproducible sampling; omit it to let the model choose one."
15692
+ },
15693
+ {
15694
+ "name": "model",
15695
+ "type": "string",
15696
+ "required": false,
15697
+ "description": "Router model with image-generation capability; omit it to use the library default image model."
15698
+ },
15699
+ {
15700
+ "name": "asset_folder",
15701
+ "type": "string",
15702
+ "required": false,
15703
+ "description": "Folder the produced asset is filed under; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
15704
+ },
15705
+ {
15706
+ "name": "understanding",
15707
+ "type": "string",
15708
+ "enum": [
15709
+ "auto",
15710
+ "skip"
15711
+ ],
15712
+ "required": false,
15713
+ "description": "Understanding behavior for the produced asset; defaults to auto."
15714
+ },
15715
+ {
15716
+ "name": "idempotency_key",
15717
+ "type": "string",
15718
+ "required": false,
15719
+ "description": "Stable key so a retried request reuses the same job instead of generating and charging again; reusing it with different content is rejected."
15720
+ }
15721
+ ]
15722
+ }
15723
+ },
14375
15724
  {
14376
15725
  "resource": "media.libraries.jobs",
14377
15726
  "method": "list",
@@ -14394,11 +15743,13 @@ export const operations = [
14394
15743
  "type": "string",
14395
15744
  "enum": [
14396
15745
  "queued",
15746
+ "in_progress",
14397
15747
  "running",
14398
15748
  "completed",
14399
15749
  "completed_with_errors",
14400
15750
  "failed",
14401
- "cancelled"
15751
+ "cancelled",
15752
+ "canceled"
14402
15753
  ],
14403
15754
  "required": false,
14404
15755
  "description": "Filter jobs by their current status."
@@ -14597,7 +15948,7 @@ export const operations = [
14597
15948
  "name": "top_k",
14598
15949
  "type": "integer",
14599
15950
  "required": false,
14600
- "description": "Maximum search hits, from 1 to 50; defaults to 20."
15951
+ "description": "Maximum search hits, from 1 to 50; defaults to 20. top_k takes effect and bounds how many distinct hits come back, counting collapsed duplicates as one hit."
14601
15952
  },
14602
15953
  {
14603
15954
  "name": "mode",
@@ -14608,6 +15959,25 @@ export const operations = [
14608
15959
  ],
14609
15960
  "required": false,
14610
15961
  "description": "Ranking mode: hybrid combines semantic and keyword matches; semantic uses vector similarity only. Defaults to hybrid."
15962
+ },
15963
+ {
15964
+ "name": "material_type",
15965
+ "type": "string",
15966
+ "enum": [
15967
+ "image",
15968
+ "video",
15969
+ "audio",
15970
+ "voice",
15971
+ "sticker",
15972
+ "font",
15973
+ "text_style",
15974
+ "text_template",
15975
+ "animation_preset",
15976
+ "lut",
15977
+ "transition_map"
15978
+ ],
15979
+ "required": false,
15980
+ "description": "What this asset is as a reusable material, as opposed to resource_type (its stored file category). Omitted on assets stored before this field existed and on raw assets that are not materials."
14611
15981
  }
14612
15982
  ]
14613
15983
  }
@@ -14720,7 +16090,7 @@ export const operations = [
14720
16090
  "name": "top_k",
14721
16091
  "type": "integer",
14722
16092
  "required": false,
14723
- "description": "Maximum search hits, from 1 to 50; defaults to 20."
16093
+ "description": "Maximum search hits, from 1 to 50; defaults to 20. top_k takes effect and bounds how many distinct hits come back, counting collapsed duplicates as one hit."
14724
16094
  },
14725
16095
  {
14726
16096
  "name": "mode",
@@ -14731,6 +16101,25 @@ export const operations = [
14731
16101
  ],
14732
16102
  "required": false,
14733
16103
  "description": "Ranking mode: hybrid combines semantic and keyword matches; semantic uses vector similarity only. Defaults to hybrid."
16104
+ },
16105
+ {
16106
+ "name": "material_type",
16107
+ "type": "string",
16108
+ "enum": [
16109
+ "image",
16110
+ "video",
16111
+ "audio",
16112
+ "voice",
16113
+ "sticker",
16114
+ "font",
16115
+ "text_style",
16116
+ "text_template",
16117
+ "animation_preset",
16118
+ "lut",
16119
+ "transition_map"
16120
+ ],
16121
+ "required": false,
16122
+ "description": "What this asset is as a reusable material, as opposed to resource_type (its stored file category). Omitted on assets stored before this field existed and on raw assets that are not materials."
14734
16123
  }
14735
16124
  ]
14736
16125
  }
@@ -14843,6 +16232,152 @@ export const operations = [
14843
16232
  ],
14844
16233
  "query": []
14845
16234
  },
16235
+ {
16236
+ "resource": "media.videos",
16237
+ "method": "generate",
16238
+ "summary": "Generate video",
16239
+ "description": "Generate one or more videos from a text prompt and store them straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still generate. mode says what the video is anchored to: text needs only a prompt, image animates the existing image named by first_frame, and first_last interpolates between first_frame and last_frame. The frames must be image or sticker assets of the same library; Router is sent a fetchable URL for each, recorded in the produced asset’s provenance. mode reference and output gif are refused with OPERATION_NOT_SUPPORTED in this release, and negative_prompt, references and an unknown mode are refused before anything is charged. Every output lands in the library as a video asset as soon as it is ready — there is no candidate state and nothing expires, so outputs.save is not part of this lane. Generation is charged per second through Router and the job records the charge in usage; a refused request costs nothing. The response is 202 with a queued Job whose type is video and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced assets from the library. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice. Example: POST /media/v1/libraries/default/videos/generations with {\"prompt\":\"A red kite above a calm sea at sunrise\",\"mode\":\"text\",\"n\":1}.",
16240
+ "http": "POST",
16241
+ "path": "/media/v1/libraries/{library_id}/videos/generations",
16242
+ "streaming": "no",
16243
+ "pagination": false,
16244
+ "pathParams": [
16245
+ {
16246
+ "name": "library_id",
16247
+ "sdkName": "library_id",
16248
+ "description": "Library ID returned by creation."
16249
+ }
16250
+ ],
16251
+ "query": [],
16252
+ "body": {
16253
+ "required": true,
16254
+ "fields": [
16255
+ {
16256
+ "name": "prompt",
16257
+ "type": "string",
16258
+ "required": true,
16259
+ "description": "Text prompt describing the video to generate; Router forwards it to the video model unchanged."
16260
+ },
16261
+ {
16262
+ "name": "negative_prompt",
16263
+ "type": "string",
16264
+ "required": false,
16265
+ "description": "What the video must not contain. Models without a negative-prompt control ignore it."
16266
+ },
16267
+ {
16268
+ "name": "mode",
16269
+ "type": "string",
16270
+ "enum": [
16271
+ "text",
16272
+ "image",
16273
+ "first_last",
16274
+ "reference"
16275
+ ],
16276
+ "required": true,
16277
+ "description": "What the video is anchored to. text needs only a prompt; image animates first_frame; first_last bookends first_frame and last_frame; reference is refused with OPERATION_NOT_SUPPORTED in this release."
16278
+ },
16279
+ {
16280
+ "name": "first_frame",
16281
+ "type": "string",
16282
+ "required": false,
16283
+ "description": "Asset identifier returned by upload or asset listing; distinct from public_id and content hashes."
16284
+ },
16285
+ {
16286
+ "name": "last_frame",
16287
+ "type": "string",
16288
+ "required": false,
16289
+ "description": "Asset identifier returned by upload or asset listing; distinct from public_id and content hashes."
16290
+ },
16291
+ {
16292
+ "name": "references",
16293
+ "type": "array",
16294
+ "itemType": "object",
16295
+ "required": false,
16296
+ "description": "Existing assets the model may use, each with the role it plays. Not supported by the video lane in this release: sending it is refused with OPERATION_NOT_SUPPORTED."
16297
+ },
16298
+ {
16299
+ "name": "duration_seconds",
16300
+ "type": "integer",
16301
+ "required": false,
16302
+ "description": "Requested video length in seconds. Router validates it against the chosen model’s supported durations and rejects an unsupported value with INVALID_PARAMS."
16303
+ },
16304
+ {
16305
+ "name": "resolution",
16306
+ "type": "string",
16307
+ "enum": [
16308
+ "480p",
16309
+ "720p",
16310
+ "1080p",
16311
+ "4k"
16312
+ ],
16313
+ "required": false,
16314
+ "description": "Requested output resolution; Router validates it against the chosen model."
16315
+ },
16316
+ {
16317
+ "name": "aspect_ratio",
16318
+ "type": "string",
16319
+ "required": false,
16320
+ "description": "Output aspect ratio written as width:height; defaults to 16:9. Router validates it against the chosen model and rejects an unsupported ratio with INVALID_PARAMS."
16321
+ },
16322
+ {
16323
+ "name": "generate_audio",
16324
+ "type": "boolean",
16325
+ "required": false,
16326
+ "description": "True to generate an audio track with the video. Whether audio is produced depends on the model."
16327
+ },
16328
+ {
16329
+ "name": "output",
16330
+ "type": "string",
16331
+ "enum": [
16332
+ "mp4",
16333
+ "gif"
16334
+ ],
16335
+ "required": false,
16336
+ "description": "Container of the produced video; defaults to mp4. gif is refused with OPERATION_NOT_SUPPORTED because this release has no GIF encoding for the lane."
16337
+ },
16338
+ {
16339
+ "name": "n",
16340
+ "type": "integer",
16341
+ "required": false,
16342
+ "description": "Videos to generate in one job, from 1 to 4; defaults to 1. Each produced video is charged separately."
16343
+ },
16344
+ {
16345
+ "name": "seed",
16346
+ "type": "integer",
16347
+ "required": false,
16348
+ "description": "Seed for reproducible sampling; omit it to let the model choose one."
16349
+ },
16350
+ {
16351
+ "name": "model",
16352
+ "type": "string",
16353
+ "required": false,
16354
+ "description": "Router model with video-generation capability; omit it to use the library default video model."
16355
+ },
16356
+ {
16357
+ "name": "asset_folder",
16358
+ "type": "string",
16359
+ "required": false,
16360
+ "description": "Folder the produced asset is filed under; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
16361
+ },
16362
+ {
16363
+ "name": "understanding",
16364
+ "type": "string",
16365
+ "enum": [
16366
+ "auto",
16367
+ "skip"
16368
+ ],
16369
+ "required": false,
16370
+ "description": "Understanding behavior for the produced asset; defaults to auto."
16371
+ },
16372
+ {
16373
+ "name": "idempotency_key",
16374
+ "type": "string",
16375
+ "required": false,
16376
+ "description": "Stable key so a retried request reuses the same job instead of generating and charging again; reusing it with different content is rejected."
16377
+ }
16378
+ ]
16379
+ }
16380
+ },
14846
16381
  {
14847
16382
  "resource": "meta.docs",
14848
16383
  "method": "search",
@@ -17209,7 +18744,7 @@ export const operations = [
17209
18744
  "resource": "ontology.nodes",
17210
18745
  "method": "create",
17211
18746
  "summary": "Create node",
17212
- "description": "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.",
18747
+ "description": "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; it does not give any agent a memory.",
17213
18748
  "http": "POST",
17214
18749
  "path": "/ontology/v1/nodes",
17215
18750
  "streaming": "no",
@@ -17483,7 +19018,7 @@ export const operations = [
17483
19018
  "resource": "ontology.relations",
17484
19019
  "method": "create",
17485
19020
  "summary": "Create relation",
17486
- "description": "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.",
19021
+ "description": "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; it does not give any agent a memory.",
17487
19022
  "http": "POST",
17488
19023
  "path": "/ontology/v1/relations",
17489
19024
  "streaming": "no",
@@ -17595,7 +19130,7 @@ export const operations = [
17595
19130
  "resource": "ontology.search",
17596
19131
  "method": "create",
17597
19132
  "summary": "Search nodes",
17598
- "description": "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.",
19133
+ "description": "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's recall, which reads the graph from that agent's own viewpoint inside its sessions.",
17599
19134
  "http": "POST",
17600
19135
  "path": "/ontology/v1/search",
17601
19136
  "streaming": "no",
@@ -20259,7 +21794,7 @@ export const operations = [
20259
21794
  "required": true,
20260
21795
  "fields": [
20261
21796
  {
20262
- "name": "updateMask",
21797
+ "name": "update_mask",
20263
21798
  "type": "array",
20264
21799
  "itemType": "string",
20265
21800
  "required": true,
@@ -20502,7 +22037,7 @@ export const operations = [
20502
22037
  "required": true,
20503
22038
  "fields": [
20504
22039
  {
20505
- "name": "updateMask",
22040
+ "name": "update_mask",
20506
22041
  "type": "array",
20507
22042
  "itemType": "string",
20508
22043
  "required": true,
@@ -20813,7 +22348,7 @@ export const operations = [
20813
22348
  "required": true,
20814
22349
  "fields": [
20815
22350
  {
20816
- "name": "updateMask",
22351
+ "name": "update_mask",
20817
22352
  "type": "array",
20818
22353
  "itemType": "string",
20819
22354
  "required": true,
@@ -20974,7 +22509,7 @@ export const operations = [
20974
22509
  "resource": "studio.themes",
20975
22510
  "method": "list",
20976
22511
  "summary": "List the rendition themes of a platform",
20977
- "description": "List themes: the layouts a rendition is produced with, for one platform or for all of them. Pass a platform to see only the themes that platform can use. A theme decides the page or card a rendition is built into, so read the chosen theme before creating a rendition rather than after the output looks wrong.",
22512
+ "description": "List themes: the layouts a rendition is produced with, for one platform or for all of them. Pass a platform to see only the themes that platform can use. The first page starts with the built-in themes (builtin true, such as warm-card@1 for Xiaohongshu cards and plain-mono@1 for WeChat articles), which every organization can use and nobody can change or delete; your organization's own themes follow. A theme decides the page or card a rendition is built into, so read the chosen theme before creating a rendition rather than after the output looks wrong.",
20978
22513
  "http": "GET",
20979
22514
  "path": "/studio/v1/themes",
20980
22515
  "streaming": "no",
@@ -21123,7 +22658,7 @@ export const operations = [
21123
22658
  "required": true,
21124
22659
  "fields": [
21125
22660
  {
21126
- "name": "updateMask",
22661
+ "name": "update_mask",
21127
22662
  "type": "array",
21128
22663
  "itemType": "string",
21129
22664
  "required": true,
@@ -21263,7 +22798,7 @@ export const operations = [
21263
22798
  "description": "Caller-chosen key and value pairs kept on a resource; the keys are the caller's own names and no platform meaning is attached to them."
21264
22799
  },
21265
22800
  {
21266
- "name": "requestId",
22801
+ "name": "request_id",
21267
22802
  "type": "string",
21268
22803
  "required": false,
21269
22804
  "description": "Caller-chosen key that makes this create safe to repeat: the same value answers the first result instead of creating a second work."
@@ -21336,14 +22871,14 @@ export const operations = [
21336
22871
  "required": true,
21337
22872
  "fields": [
21338
22873
  {
21339
- "name": "updateMask",
22874
+ "name": "update_mask",
21340
22875
  "type": "array",
21341
22876
  "itemType": "string",
21342
22877
  "required": true,
21343
22878
  "description": "Field paths this call changes, spelled as they appear in the work, such as title or goal.message; a field left out keeps its value."
21344
22879
  },
21345
22880
  {
21346
- "name": "expectedRevision",
22881
+ "name": "expected_revision",
21347
22882
  "type": "integer",
21348
22883
  "required": false,
21349
22884
  "description": "Work revision the caller read; when the work moved past it the write is refused with REVISION_CONFLICT and nothing changes."
@@ -21415,7 +22950,7 @@ export const operations = [
21415
22950
  "required": true,
21416
22951
  "fields": [
21417
22952
  {
21418
- "name": "expectedRevision",
22953
+ "name": "expected_revision",
21419
22954
  "type": "integer",
21420
22955
  "required": false,
21421
22956
  "description": "Brief revision the caller read; a mismatch is refused with REVISION_CONFLICT rather than merged."
@@ -21434,21 +22969,21 @@ export const operations = [
21434
22969
  "description": "Source files to keep with the brief, added to the ones already attached."
21435
22970
  },
21436
22971
  {
21437
- "name": "addPoints",
22972
+ "name": "add_points",
21438
22973
  "type": "array",
21439
- "itemType": "string",
22974
+ "itemType": "object",
21440
22975
  "required": false,
21441
- "description": "New requirement points to split out of the brief; each receives the next free key in order."
22976
+ "description": "New requirement points to split out of the brief; each receives the next free key in order. A plain string is a unit point; pass { text, scope: work } for a constraint on the whole piece (period, voice, point of view, cast, words to avoid)."
21442
22977
  },
21443
22978
  {
21444
- "name": "editPoints",
22979
+ "name": "edit_points",
21445
22980
  "type": "array",
21446
22981
  "itemType": "object",
21447
22982
  "required": false,
21448
22983
  "description": "Existing points to reword, each naming the key it keeps and the text that replaces it."
21449
22984
  },
21450
22985
  {
21451
- "name": "removePoints",
22986
+ "name": "remove_points",
21452
22987
  "type": "array",
21453
22988
  "itemType": "string",
21454
22989
  "required": false,
@@ -21531,7 +23066,7 @@ export const operations = [
21531
23066
  "description": "Unit tree to create the draft with, given by the caller instead of a template; children nest, and a unit without a kind takes the genre default for its position."
21532
23067
  },
21533
23068
  {
21534
- "name": "derivedFrom",
23069
+ "name": "derived_from",
21535
23070
  "type": "object",
21536
23071
  "required": false,
21537
23072
  "description": "What the new draft should be derived from, so the service can record the source revision for later staleness checks."
@@ -21543,7 +23078,7 @@ export const operations = [
21543
23078
  "description": "Initial values for the genre properties, keyed by property key; a value the genre does not define is refused rather than stored."
21544
23079
  },
21545
23080
  {
21546
- "name": "requestId",
23081
+ "name": "request_id",
21547
23082
  "type": "string",
21548
23083
  "required": false,
21549
23084
  "description": "Caller-chosen key that makes this create safe to repeat: the same value answers the first draft instead of creating a second one."
@@ -21612,14 +23147,14 @@ export const operations = [
21612
23147
  "required": true,
21613
23148
  "fields": [
21614
23149
  {
21615
- "name": "updateMask",
23150
+ "name": "update_mask",
21616
23151
  "type": "array",
21617
23152
  "itemType": "string",
21618
23153
  "required": true,
21619
23154
  "description": "Field paths this call changes, such as title, key or props.topics; a field left out keeps its value."
21620
23155
  },
21621
23156
  {
21622
- "name": "expectedRevision",
23157
+ "name": "expected_revision",
21623
23158
  "type": "integer",
21624
23159
  "required": false,
21625
23160
  "description": "Draft revision the caller read; a mismatch is refused with REVISION_CONFLICT and nothing changes. Omit it only for structure calls that genuinely do not depend on the current state."
@@ -21718,6 +23253,64 @@ export const operations = [
21718
23253
  ],
21719
23254
  "query": []
21720
23255
  },
23256
+ {
23257
+ "resource": "studio.works.drafts.renditions",
23258
+ "method": "create",
23259
+ "summary": "Create a rendition of a draft for a platform",
23260
+ "description": "Create a rendition: the form of one draft that a platform receives, such as a Xiaohongshu card set, a DOCX file or a Markdown file. Read the platform first with the platform call and pass its versioned key; pass a theme only to override the platform's default layout. Pass render true to render in the same call and read render_state and issues in the answer; without it the rendition starts as pending and the render call produces it. Rendering a Xiaohongshu card set is billed by Browser Rendering time (meter browser_ms, product studio-render); DOCX and Markdown renditions are not billed. A draft with no body renders as invalid with a draft_empty issue, and an unavailable render service leaves render_state failed with a render_unavailable issue, so repeat the render call later. Send a request_id to make a repeated call return the first rendition instead of creating another. Next, publish the rendition to export it.",
23261
+ "http": "POST",
23262
+ "path": "/studio/v1/works/{work}/drafts/{draft}/renditions",
23263
+ "streaming": "no",
23264
+ "pagination": false,
23265
+ "pathParams": [
23266
+ {
23267
+ "name": "work",
23268
+ "sdkName": "work",
23269
+ "description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
23270
+ },
23271
+ {
23272
+ "name": "draft",
23273
+ "sdkName": "draft",
23274
+ "description": "Draft being addressed, either its in-work key such as novel or its drf_ identifier; a key renamed earlier still resolves through its previous value."
23275
+ }
23276
+ ],
23277
+ "query": [],
23278
+ "body": {
23279
+ "required": true,
23280
+ "fields": [
23281
+ {
23282
+ "name": "platform",
23283
+ "type": "string",
23284
+ "required": true,
23285
+ "description": "Versioned platform key from the platform list. Export platforms today are markdown@1, docx@1 and xiaohongshu@1; a platform that only publishes to an account answers PLATFORM_NOT_AVAILABLE."
23286
+ },
23287
+ {
23288
+ "name": "theme",
23289
+ "type": "string",
23290
+ "required": false,
23291
+ "description": "Theme to render with, a thm_ identifier or a built-in key from the theme list; omit it to use the platform default."
23292
+ },
23293
+ {
23294
+ "name": "settings",
23295
+ "type": "object",
23296
+ "required": false,
23297
+ "description": "Per-rendition settings; each platform reads only the settings that apply to it and ignores the rest."
23298
+ },
23299
+ {
23300
+ "name": "render",
23301
+ "type": "boolean",
23302
+ "required": false,
23303
+ "description": "Whether to render in the same call. True returns a rendition that is already rendered, invalid or failed; false or omitted returns it pending, to be rendered by the render operation."
23304
+ },
23305
+ {
23306
+ "name": "request_id",
23307
+ "type": "string",
23308
+ "required": false,
23309
+ "description": "Caller-chosen key that makes a repeated create return the first rendition instead of making another; use a new value for each distinct rendition."
23310
+ }
23311
+ ]
23312
+ }
23313
+ },
21721
23314
  {
21722
23315
  "resource": "studio.works.drafts",
21723
23316
  "method": "retrieveReview",
@@ -21963,7 +23556,7 @@ export const operations = [
21963
23556
  "required": false,
21964
23557
  "fields": [
21965
23558
  {
21966
- "name": "expectedRevision",
23559
+ "name": "expected_revision",
21967
23560
  "type": "integer",
21968
23561
  "required": false,
21969
23562
  "description": "Draft revision the caller read; a mismatch is refused rather than confirming a draft that changed under the caller."
@@ -21971,6 +23564,212 @@ export const operations = [
21971
23564
  ]
21972
23565
  }
21973
23566
  },
23567
+ {
23568
+ "resource": "studio.works.renditions",
23569
+ "method": "list",
23570
+ "summary": "List the renditions of a work",
23571
+ "description": "List the renditions of one work, each with its platform, render state, stale flag and publish state. Pass draft to see only the renditions of one draft. Use it to find the rendition to publish or to render again, and read stale before exporting: a stale rendition was built from an older draft and cannot be exported until the render call has rebuilt it. The answer is one page; keep following next_page_token while it is present.",
23572
+ "http": "GET",
23573
+ "path": "/studio/v1/works/{work}/renditions",
23574
+ "streaming": "no",
23575
+ "pagination": false,
23576
+ "pathParams": [
23577
+ {
23578
+ "name": "work",
23579
+ "sdkName": "work",
23580
+ "description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
23581
+ }
23582
+ ],
23583
+ "query": [
23584
+ {
23585
+ "name": "draft",
23586
+ "type": "string",
23587
+ "required": false,
23588
+ "description": "Draft key such as novel or its drf_ identifier; when given, only the renditions of that draft are returned. Omit it to list the renditions of every draft in the work."
23589
+ },
23590
+ {
23591
+ "name": "page_size",
23592
+ "type": "integer",
23593
+ "required": false,
23594
+ "description": "How many items this page returns, 1 to 100; omitted uses the service default. Treat the answer as one page, not the whole set, and keep following next_page_token while it is present."
23595
+ },
23596
+ {
23597
+ "name": "page_token",
23598
+ "type": "string",
23599
+ "required": false,
23600
+ "description": "Cursor from the previous answer's next_page_token; it is opaque, so pass it back unchanged and never build one from an id or an offset."
23601
+ }
23602
+ ]
23603
+ },
23604
+ {
23605
+ "resource": "studio.works.renditions",
23606
+ "method": "delete",
23607
+ "summary": "Delete a rendition",
23608
+ "description": "Delete a rendition and stop listing it. The draft it was built from is untouched, and a new rendition can be created from it at any time. Files already downloaded from an earlier export are not affected. Use it to clear a failed or abandoned rendition; to refresh one, call the render operation instead.",
23609
+ "http": "DELETE",
23610
+ "path": "/studio/v1/works/{work}/renditions/{rendition}",
23611
+ "streaming": "no",
23612
+ "pagination": false,
23613
+ "pathParams": [
23614
+ {
23615
+ "name": "work",
23616
+ "sdkName": "work",
23617
+ "description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
23618
+ },
23619
+ {
23620
+ "name": "rendition",
23621
+ "sdkName": "rendition",
23622
+ "description": "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer."
23623
+ }
23624
+ ],
23625
+ "query": []
23626
+ },
23627
+ {
23628
+ "resource": "studio.works.renditions",
23629
+ "method": "retrieve",
23630
+ "summary": "Read one rendition",
23631
+ "description": "Read one rendition in full: its render state, the validation issues the render found, the parts (one per card page or thread post), the files it produced and its publish state. Call it after create, render or publish to see the outcome, because a render that finished invalid or failed is reported here and not as an HTTP error. stale is true when the draft has changed since source_revision; call the render operation before exporting a stale rendition.",
23632
+ "http": "GET",
23633
+ "path": "/studio/v1/works/{work}/renditions/{rendition}",
23634
+ "streaming": "no",
23635
+ "pagination": false,
23636
+ "pathParams": [
23637
+ {
23638
+ "name": "work",
23639
+ "sdkName": "work",
23640
+ "description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
23641
+ },
23642
+ {
23643
+ "name": "rendition",
23644
+ "sdkName": "rendition",
23645
+ "description": "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer."
23646
+ }
23647
+ ],
23648
+ "query": []
23649
+ },
23650
+ {
23651
+ "resource": "studio.works.renditions",
23652
+ "method": "update",
23653
+ "summary": "Change the theme or settings of a rendition",
23654
+ "description": "Change a rendition's theme or settings. Send update_mask naming exactly the fields you change, such as theme or settings; a field left out keeps its value. The produced files are not rebuilt by this call, so call the render operation afterwards to apply the change. A rendition whose export or publish has started is locked and answers RENDITION_PUBLISH_LOCKED; create a new rendition for new content.",
23655
+ "http": "PATCH",
23656
+ "path": "/studio/v1/works/{work}/renditions/{rendition}",
23657
+ "streaming": "no",
23658
+ "pagination": false,
23659
+ "pathParams": [
23660
+ {
23661
+ "name": "work",
23662
+ "sdkName": "work",
23663
+ "description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
23664
+ },
23665
+ {
23666
+ "name": "rendition",
23667
+ "sdkName": "rendition",
23668
+ "description": "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer."
23669
+ }
23670
+ ],
23671
+ "query": [],
23672
+ "body": {
23673
+ "required": true,
23674
+ "fields": [
23675
+ {
23676
+ "name": "update_mask",
23677
+ "type": "array",
23678
+ "itemType": "string",
23679
+ "required": true,
23680
+ "description": "Field paths this call changes: theme, settings or both; a field left out keeps its value."
23681
+ },
23682
+ {
23683
+ "name": "theme",
23684
+ "type": "string",
23685
+ "required": false,
23686
+ "description": "New theme, a thm_ identifier or a built-in key, used when theme is named in the update mask; render again to apply it."
23687
+ },
23688
+ {
23689
+ "name": "settings",
23690
+ "type": "object",
23691
+ "required": false,
23692
+ "description": "Per-rendition settings; each platform reads only the settings that apply to it and ignores the rest."
23693
+ }
23694
+ ]
23695
+ }
23696
+ },
23697
+ {
23698
+ "resource": "studio.works.renditions",
23699
+ "method": "retrieveContent",
23700
+ "summary": "Get a download URL for a rendition file",
23701
+ "description": "Get a signed, short-lived URL to download what a rendition produced. Without part it points to the rendition's own first file: the ZIP of pages for a card rendition, the DOCX for docx@1. With part it points to that part's first file, such as one card PNG; a part that has no file, or a rendition not rendered yet, answers RENDITION_NOT_RENDERED, and an index no part has answers INVALID_PARAMS. Call it after a successful render or export, download the url before expire_time, and call again for a fresh one when it has expired. The URL is a credential: do not store or share it.",
23702
+ "http": "GET",
23703
+ "path": "/studio/v1/works/{work}/renditions/{rendition}/content",
23704
+ "streaming": "no",
23705
+ "pagination": false,
23706
+ "pathParams": [
23707
+ {
23708
+ "name": "work",
23709
+ "sdkName": "work",
23710
+ "description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
23711
+ },
23712
+ {
23713
+ "name": "rendition",
23714
+ "sdkName": "rendition",
23715
+ "description": "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer."
23716
+ }
23717
+ ],
23718
+ "query": [
23719
+ {
23720
+ "name": "part",
23721
+ "type": "integer",
23722
+ "required": false,
23723
+ "description": "Index of the part to download, the index value of an entry in the rendition's parts list; omit it to get the rendition's own first file."
23724
+ }
23725
+ ]
23726
+ },
23727
+ {
23728
+ "resource": "studio.works.renditions",
23729
+ "method": "publish",
23730
+ "summary": "Export a rendition",
23731
+ "description": "Export a rendition for the platforms that deliver a file: markdown@1, docx@1 and xiaohongshu@1 end with publish.state exported, and a card rendition gains one ZIP of its pages in files. Publishing to a platform account such as X or WeChat is not available yet and answers PLATFORM_NOT_AVAILABLE; export instead. The rendition must be rendered, not stale and without error-level issues: RENDITION_NOT_RENDERED means call the render operation first, RENDITION_STALE means the draft changed so render again, RENDITION_INVALID means fix the draft problems listed in issues and render again. Exporting the same rendition twice at once answers REVISION_CONFLICT; retry shortly. Next, call the content operation to download the file.",
23732
+ "http": "POST",
23733
+ "path": "/studio/v1/works/{work}/renditions/{rendition}:publish",
23734
+ "streaming": "no",
23735
+ "pagination": false,
23736
+ "pathParams": [
23737
+ {
23738
+ "name": "work",
23739
+ "sdkName": "work",
23740
+ "description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
23741
+ },
23742
+ {
23743
+ "name": "rendition",
23744
+ "sdkName": "rendition",
23745
+ "description": "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer."
23746
+ }
23747
+ ],
23748
+ "query": []
23749
+ },
23750
+ {
23751
+ "resource": "studio.works.renditions",
23752
+ "method": "render",
23753
+ "summary": "Render a rendition again from the current draft",
23754
+ "description": "Render the rendition from the draft as it is now, replacing its parts and files and clearing stale. Call it after the draft changed, after a theme or settings change, or after a failed render. The answer carries render_state: rendered, invalid when the draft has an error-level issue (for example draft_empty on a draft with no body), or failed when the render service was unavailable (issue render_unavailable; repeat later). A render does not fail the HTTP call for those outcomes, so read render_state and issues. Rendering a Xiaohongshu card set is billed by Browser Rendering time (meter browser_ms, product studio-render); DOCX and Markdown are not billed. Rendering the same rendition twice at once answers REVISION_CONFLICT; retry shortly. Next, publish the rendition to export it.",
23755
+ "http": "POST",
23756
+ "path": "/studio/v1/works/{work}/renditions/{rendition}:render",
23757
+ "streaming": "no",
23758
+ "pagination": false,
23759
+ "pathParams": [
23760
+ {
23761
+ "name": "work",
23762
+ "sdkName": "work",
23763
+ "description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
23764
+ },
23765
+ {
23766
+ "name": "rendition",
23767
+ "sdkName": "rendition",
23768
+ "description": "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer."
23769
+ }
23770
+ ],
23771
+ "query": []
23772
+ },
21974
23773
  {
21975
23774
  "resource": "studio.works.units",
21976
23775
  "method": "retrieve",