@deepraxis/sdk 0.1.1-dev.936276d → 0.1.1-dev.93cc895

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",
@@ -11446,6 +11445,718 @@ 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",
@@ -11797,38 +12508,291 @@ export const operations = [
11797
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."
11798
12509
  },
11799
12510
  {
11800
- "name": "executor",
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
+ }
12528
+ },
12529
+ {
12530
+ "resource": "devops.projects.testSuites",
12531
+ "method": "list",
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.",
12534
+ "http": "GET",
12535
+ "path": "/devops/v1/projects/{project}/test-suites",
12536
+ "streaming": "no",
12537
+ "pagination": false,
12538
+ "pathParams": [
12539
+ {
12540
+ "name": "project",
12541
+ "sdkName": "project",
12542
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12543
+ }
12544
+ ],
12545
+ "query": [
12546
+ {
12547
+ "name": "pageSize",
12548
+ "type": "integer",
12549
+ "required": false,
12550
+ "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."
12551
+ },
12552
+ {
12553
+ "name": "pageToken",
12554
+ "type": "string",
12555
+ "required": false,
12556
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
12557
+ },
12558
+ {
12559
+ "name": "orderBy",
12560
+ "type": "string",
12561
+ "required": false,
12562
+ "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."
12563
+ }
12564
+ ]
12565
+ },
12566
+ {
12567
+ "resource": "devops.promotions",
12568
+ "method": "create",
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.",
12571
+ "http": "POST",
12572
+ "path": "/devops/v1/promotions",
12573
+ "streaming": "no",
12574
+ "pagination": false,
12575
+ "pathParams": [],
12576
+ "query": [],
12577
+ "body": {
12578
+ "required": true,
12579
+ "fields": [
12580
+ {
12581
+ "name": "release",
12582
+ "type": "string",
12583
+ "required": true,
12584
+ "description": "The release to promote, from a release list or create answer; promoting an abandoned release is refused."
12585
+ },
12586
+ {
12587
+ "name": "environment",
12588
+ "type": "string",
12589
+ "required": true,
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."
12591
+ },
12592
+ {
12593
+ "name": "path",
12594
+ "type": "string",
12595
+ "enum": [
12596
+ "regular",
12597
+ "patch",
12598
+ "targeted",
12599
+ "rollback"
12600
+ ],
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."
12603
+ },
12604
+ {
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."
12610
+ },
12611
+ {
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."
12617
+ },
12618
+ {
12619
+ "name": "validateOnly",
12620
+ "type": "boolean",
12621
+ "required": false,
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."
12623
+ },
12624
+ {
12625
+ "name": "requestId",
12626
+ "type": "string",
12627
+ "required": false,
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."
12686
+ },
12687
+ {
12688
+ "name": "comment",
12689
+ "type": "string",
12690
+ "required": false,
12691
+ "description": "What the approver wants recorded with the decision, stored verbatim; omit it when there is nothing to add."
12692
+ }
12693
+ ]
12694
+ }
12695
+ },
12696
+ {
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.",
12701
+ "http": "POST",
12702
+ "path": "/devops/v1/promotions/{id}:cancel",
12703
+ "streaming": "no",
12704
+ "pagination": false,
12705
+ "pathParams": [
12706
+ {
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."
12739
+ }
12740
+ ],
12741
+ "query": [],
12742
+ "body": {
12743
+ "required": true,
12744
+ "fields": [
12745
+ {
12746
+ "name": "action",
11801
12747
  "type": "string",
11802
12748
  "enum": [
11803
- "cloud",
11804
- "external"
12749
+ "keep",
12750
+ "rollback"
11805
12751
  ],
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."
12752
+ "required": true,
12753
+ "description": "Which way the window is decided; a rollback schedules the return of the environment rather than only labelling the promotion."
11808
12754
  },
11809
12755
  {
11810
- "name": "requestId",
12756
+ "name": "reason",
11811
12757
  "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."
12758
+ "required": true,
12759
+ "description": "Why the window was decided that way, recorded on the promotion's observation as the attribution of the verdict."
11814
12760
  }
11815
12761
  ]
11816
12762
  }
11817
12763
  },
11818
12764
  {
11819
- "resource": "devops.projects.testSuites",
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",
11820
12784
  "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.",
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.",
11823
12787
  "http": "GET",
11824
- "path": "/devops/v1/projects/{project}/test-suites",
12788
+ "path": "/devops/v1/promotions/{promotion}/rollouts",
11825
12789
  "streaming": "no",
11826
12790
  "pagination": false,
11827
12791
  "pathParams": [
11828
12792
  {
11829
- "name": "project",
11830
- "sdkName": "project",
11831
- "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."
11832
12796
  }
11833
12797
  ],
11834
12798
  "query": [
@@ -11843,15 +12807,74 @@ export const operations = [
11843
12807
  "type": "string",
11844
12808
  "required": false,
11845
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."
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
12810
  }
11853
12811
  ]
11854
12812
  },
12813
+ {
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.",
12836
+ "http": "POST",
12837
+ "path": "/devops/v1/releases/{id}:abandon",
12838
+ "streaming": "no",
12839
+ "pagination": false,
12840
+ "pathParams": [
12841
+ {
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."
12845
+ }
12846
+ ],
12847
+ "query": [],
12848
+ "body": {
12849
+ "required": true,
12850
+ "fields": [
12851
+ {
12852
+ "name": "reason",
12853
+ "type": "string",
12854
+ "required": true,
12855
+ "description": "Why this release no longer should be promoted, recorded verbatim on the release for whoever reads it later."
12856
+ }
12857
+ ]
12858
+ }
12859
+ },
12860
+ {
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.",
12865
+ "http": "GET",
12866
+ "path": "/devops/v1/rollouts/{id}",
12867
+ "streaming": "no",
12868
+ "pagination": false,
12869
+ "pathParams": [
12870
+ {
12871
+ "name": "id",
12872
+ "sdkName": "id",
12873
+ "description": "The rollout identifier from a promotion's rollout list or a promotion read with expand=rollouts."
12874
+ }
12875
+ ],
12876
+ "query": []
12877
+ },
11855
12878
  {
11856
12879
  "resource": "devops.testCases",
11857
12880
  "method": "retrieve",
@@ -13351,7 +14374,7 @@ export const operations = [
13351
14374
  "resource": "media.generation.capabilities",
13352
14375
  "method": "list",
13353
14376
  "summary": "Get generation capabilities",
13354
- "description": "Read supported text-to-video intent, default model, duration and aspect-ratio limits, per-library concurrency and candidate retention. Generation is charged per second; unsaved candidates expire after 7 days.",
14377
+ "description": "Read supported video generation intents, default model, duration and aspect-ratio limits and per-library concurrency. Generation is charged per second; every output is stored in the library.",
13355
14378
  "http": "GET",
13356
14379
  "path": "/media/v1/generation/capabilities",
13357
14380
  "streaming": "no",
@@ -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",
@@ -14100,10 +15262,77 @@ export const operations = [
14100
15262
  "description": "Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created."
14101
15263
  },
14102
15264
  {
14103
- "name": "reason",
15265
+ "name": "reason",
15266
+ "type": "string",
15267
+ "required": false,
15268
+ "description": "Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters."
15269
+ }
15270
+ ]
15271
+ }
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",
14104
15333
  "type": "string",
14105
15334
  "required": false,
14106
- "description": "Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters."
15335
+ "description": "Language of the text, when the voice supports several."
14107
15336
  }
14108
15337
  ]
14109
15338
  }
@@ -14274,12 +15503,12 @@ export const operations = [
14274
15503
  ]
14275
15504
  },
14276
15505
  {
14277
- "resource": "media.libraries.generations",
14278
- "method": "create",
14279
- "summary": "Create video generation",
14280
- "description": "Create a video.generate job. Generation is charged per second. The response is 202 with a queued Job; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until terminal, then save successful outputs. Unsaved candidate Files expire after 7 days.",
15506
+ "resource": "media.images",
15507
+ "method": "generate",
15508
+ "summary": "Generate image",
15509
+ "description": "Generate one or more images from a text prompt and store them straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still generate. The request body is the image request itself: prompt is required, and n, size, background, output_format, output, references, seed, model, asset_folder and understanding are optional. Set output to sticker for a cut-out with a transparent background. references attach existing assets with a role — edit_target, style, structure or subject — and a model that cannot honour a role returns REFERENCE_TYPE_MISMATCH. Aspect ratio is not accepted for images; name size instead. Generation is charged through Router and the job records the charge in usage; nothing is charged for a request refused before it starts. The response is 202 with a queued Job whose type is image and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced assets from the library. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice. Example: POST /media/v1/libraries/default/images/generations with {\"prompt\":\"A red kite above a calm sea at sunrise\",\"n\":1,\"output\":\"sticker\"}.",
14281
15510
  "http": "POST",
14282
- "path": "/media/v1/libraries/{library_id}/generations",
15511
+ "path": "/media/v1/libraries/{library_id}/images/generations",
14283
15512
  "streaming": "no",
14284
15513
  "pagination": false,
14285
15514
  "pathParams": [
@@ -14294,63 +15523,85 @@ export const operations = [
14294
15523
  "required": true,
14295
15524
  "fields": [
14296
15525
  {
14297
- "name": "intent",
15526
+ "name": "prompt",
14298
15527
  "type": "string",
14299
15528
  "required": true,
14300
- "description": "Generation operation; v1 accepts only video.generate text-to-video requests."
15529
+ "description": "Text prompt describing the image to generate; Router forwards it to the image model unchanged."
14301
15530
  },
14302
15531
  {
14303
- "name": "prompt",
15532
+ "name": "negative_prompt",
14304
15533
  "type": "string",
14305
- "required": true,
14306
- "description": "Text prompt describing the video to generate."
15534
+ "required": false,
15535
+ "description": "What the image must not contain. Models without a negative-prompt control ignore it."
14307
15536
  },
14308
15537
  {
14309
- "name": "count",
15538
+ "name": "n",
14310
15539
  "type": "integer",
14311
15540
  "required": false,
14312
- "description": "Number of videos to generate; defaults to 1 and must be from 1 to 4."
15541
+ "description": "Images to generate in one job, from 1 to 10; defaults to 1. Each produced image is charged separately."
14313
15542
  },
14314
15543
  {
14315
- "name": "duration_seconds",
14316
- "type": "integer",
15544
+ "name": "size",
15545
+ "type": "string",
14317
15546
  "required": false,
14318
- "description": "Requested video duration in seconds; Router validates the model-specific supported durations."
15547
+ "description": "Requested pixel size written as width x height. Router validates it against the chosen model and rejects an unsupported size with INVALID_PARAMS."
14319
15548
  },
14320
15549
  {
14321
- "name": "aspect_ratio",
15550
+ "name": "background",
14322
15551
  "type": "string",
15552
+ "enum": [
15553
+ "transparent",
15554
+ "opaque",
15555
+ "auto"
15556
+ ],
14323
15557
  "required": false,
14324
- "description": "Requested output aspect ratio; defaults to 16:9 and Router validates model support."
15558
+ "description": "Background handling; defaults to auto. Whether transparency is honoured depends on the model."
14325
15559
  },
14326
15560
  {
14327
- "name": "model",
15561
+ "name": "output_format",
14328
15562
  "type": "string",
15563
+ "enum": [
15564
+ "png",
15565
+ "jpeg",
15566
+ "webp"
15567
+ ],
14329
15568
  "required": false,
14330
- "description": "Router model with video_generation capability; defaults to wan2.7-t2v."
15569
+ "description": "Encoding of the stored image; defaults to png. Transparency requires png or webp."
14331
15570
  },
14332
15571
  {
14333
- "name": "save",
15572
+ "name": "output",
14334
15573
  "type": "string",
14335
15574
  "enum": [
14336
- "candidate",
14337
- "library"
15575
+ "image",
15576
+ "sticker"
14338
15577
  ],
14339
15578
  "required": false,
14340
- "description": "candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically."
15579
+ "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."
14341
15580
  },
14342
15581
  {
14343
- "name": "asset_folder",
15582
+ "name": "references",
15583
+ "type": "array",
15584
+ "itemType": "object",
15585
+ "required": false,
15586
+ "description": "Existing assets the model may use, each with the role it plays. Router answers REFERENCE_TYPE_MISMATCH when the chosen model cannot honour a role."
15587
+ },
15588
+ {
15589
+ "name": "seed",
15590
+ "type": "integer",
15591
+ "required": false,
15592
+ "description": "Seed for reproducible sampling; omit it to let the model choose one."
15593
+ },
15594
+ {
15595
+ "name": "model",
14344
15596
  "type": "string",
14345
15597
  "required": false,
14346
- "description": "Folder for assets saved automatically or by later save calls; 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."
15598
+ "description": "Router model with image-generation capability; omit it to use the library default image model."
14347
15599
  },
14348
15600
  {
14349
- "name": "tags",
14350
- "type": "array",
14351
- "itemType": "string",
15601
+ "name": "asset_folder",
15602
+ "type": "string",
14352
15603
  "required": false,
14353
- "description": "Tags applied when an output becomes a library asset."
15604
+ "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."
14354
15605
  },
14355
15606
  {
14356
15607
  "name": "understanding",
@@ -14360,14 +15611,13 @@ export const operations = [
14360
15611
  "skip"
14361
15612
  ],
14362
15613
  "required": false,
14363
- "description": "Understanding behavior when a candidate is saved as an asset; defaults to auto."
15614
+ "description": "Understanding behavior for the produced asset; defaults to auto."
14364
15615
  },
14365
15616
  {
14366
- "name": "references",
14367
- "type": "array",
14368
- "itemType": "object",
15617
+ "name": "idempotency_key",
15618
+ "type": "string",
14369
15619
  "required": false,
14370
- "description": "Not supported in v1; omit this field. Only text-to-video is currently available."
15620
+ "description": "Stable key so a retried request reuses the same job instead of generating and charging again; reusing it with different content is rejected."
14371
15621
  }
14372
15622
  ]
14373
15623
  }
@@ -14376,7 +15626,7 @@ export const operations = [
14376
15626
  "resource": "media.libraries.jobs",
14377
15627
  "method": "list",
14378
15628
  "summary": "List jobs",
14379
- "description": "List batch and video-generation jobs in a library. Filter by status and continue with next_cursor. Poll a generation Job until terminal, then save successful candidate outputs before they expire after 7 days.",
15629
+ "description": "List batch and generation jobs in a library. Filter by status and continue with next_cursor. Poll a generation Job until terminal; every produced output is already a library asset.",
14380
15630
  "http": "GET",
14381
15631
  "path": "/media/v1/libraries/{library_id}/jobs",
14382
15632
  "streaming": "no",
@@ -14394,11 +15644,13 @@ export const operations = [
14394
15644
  "type": "string",
14395
15645
  "enum": [
14396
15646
  "queued",
15647
+ "in_progress",
14397
15648
  "running",
14398
15649
  "completed",
14399
15650
  "completed_with_errors",
14400
15651
  "failed",
14401
- "cancelled"
15652
+ "cancelled",
15653
+ "canceled"
14402
15654
  ],
14403
15655
  "required": false,
14404
15656
  "description": "Filter jobs by their current status."
@@ -14421,7 +15673,7 @@ export const operations = [
14421
15673
  "resource": "media.libraries.jobs",
14422
15674
  "method": "retrieve",
14423
15675
  "summary": "Get job",
14424
- "description": "Read the current batch or video-generation Job status and progress. For generation, inspect outputs and failures, then save successful candidates before their preview and save window expires after 7 days.",
15676
+ "description": "Read the current batch or generation Job status and progress. For generation, inspect outputs and failures; a successful output has already landed in the library as an asset.",
14425
15677
  "http": "GET",
14426
15678
  "path": "/media/v1/libraries/{library_id}/jobs/{job_id}",
14427
15679
  "streaming": "no",
@@ -14435,7 +15687,7 @@ export const operations = [
14435
15687
  {
14436
15688
  "name": "job_id",
14437
15689
  "sdkName": "job_id",
14438
- "description": "Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library."
15690
+ "description": "Job identifier returned by batch creation, generation creation or job listing; resolved within this library."
14439
15691
  }
14440
15692
  ],
14441
15693
  "query": []
@@ -14444,7 +15696,7 @@ export const operations = [
14444
15696
  "resource": "media.libraries.jobs",
14445
15697
  "method": "cancel",
14446
15698
  "summary": "Cancel job",
14447
- "description": "Cancel a queued or running generation job. Already completed outputs remain available to save; poll or read the returned Job to confirm its status.",
15699
+ "description": "Cancel a queued or running generation job. Outputs already produced remain in the library; poll or read the returned Job to confirm its status.",
14448
15700
  "http": "POST",
14449
15701
  "path": "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
14450
15702
  "streaming": "no",
@@ -14463,68 +15715,6 @@ export const operations = [
14463
15715
  ],
14464
15716
  "query": []
14465
15717
  },
14466
- {
14467
- "resource": "media.libraries.jobs.outputs.save",
14468
- "method": "create",
14469
- "summary": "Save generation output",
14470
- "description": "Save a successful candidate as a library asset. Candidate outputs expire after 7 days; save before expiry. Generation is charged per second when the job runs, not when an output is saved.",
14471
- "http": "POST",
14472
- "path": "/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save",
14473
- "streaming": "no",
14474
- "pagination": false,
14475
- "pathParams": [
14476
- {
14477
- "name": "library_id",
14478
- "sdkName": "library_id",
14479
- "description": "Library ID returned by creation."
14480
- },
14481
- {
14482
- "name": "job_id",
14483
- "sdkName": "job_id",
14484
- "description": "Job identifier returned by batch or generation creation; the job is resolved within the specified library."
14485
- },
14486
- {
14487
- "name": "index",
14488
- "sdkName": "index",
14489
- "description": "Zero-based position of the candidate in the Job outputs array."
14490
- }
14491
- ],
14492
- "query": [],
14493
- "body": {
14494
- "required": false,
14495
- "fields": [
14496
- {
14497
- "name": "public_id",
14498
- "type": "string",
14499
- "required": false,
14500
- "description": "Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent."
14501
- },
14502
- {
14503
- "name": "asset_folder",
14504
- "type": "string",
14505
- "required": false,
14506
- "description": "Destination folder for the saved asset; 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."
14507
- },
14508
- {
14509
- "name": "tags",
14510
- "type": "array",
14511
- "itemType": "string",
14512
- "required": false,
14513
- "description": "Tags to apply to the saved asset."
14514
- },
14515
- {
14516
- "name": "understanding",
14517
- "type": "string",
14518
- "enum": [
14519
- "auto",
14520
- "skip"
14521
- ],
14522
- "required": false,
14523
- "description": "Understanding behavior for the saved asset; defaults to auto."
14524
- }
14525
- ]
14526
- }
14527
- },
14528
15718
  {
14529
15719
  "resource": "media.libraries.purge",
14530
15720
  "method": "create",
@@ -14597,7 +15787,7 @@ export const operations = [
14597
15787
  "name": "top_k",
14598
15788
  "type": "integer",
14599
15789
  "required": false,
14600
- "description": "Maximum search hits, from 1 to 50; defaults to 20."
15790
+ "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
15791
  },
14602
15792
  {
14603
15793
  "name": "mode",
@@ -14608,6 +15798,25 @@ export const operations = [
14608
15798
  ],
14609
15799
  "required": false,
14610
15800
  "description": "Ranking mode: hybrid combines semantic and keyword matches; semantic uses vector similarity only. Defaults to hybrid."
15801
+ },
15802
+ {
15803
+ "name": "material_type",
15804
+ "type": "string",
15805
+ "enum": [
15806
+ "image",
15807
+ "video",
15808
+ "audio",
15809
+ "voice",
15810
+ "sticker",
15811
+ "font",
15812
+ "text_style",
15813
+ "text_template",
15814
+ "animation_preset",
15815
+ "lut",
15816
+ "transition_map"
15817
+ ],
15818
+ "required": false,
15819
+ "description": "What this asset is as a reusable material, as opposed to resource_type (its stored file category). Omitted on assets stored before this field existed and on raw assets that are not materials."
14611
15820
  }
14612
15821
  ]
14613
15822
  }
@@ -14720,7 +15929,7 @@ export const operations = [
14720
15929
  "name": "top_k",
14721
15930
  "type": "integer",
14722
15931
  "required": false,
14723
- "description": "Maximum search hits, from 1 to 50; defaults to 20."
15932
+ "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
15933
  },
14725
15934
  {
14726
15935
  "name": "mode",
@@ -14731,6 +15940,25 @@ export const operations = [
14731
15940
  ],
14732
15941
  "required": false,
14733
15942
  "description": "Ranking mode: hybrid combines semantic and keyword matches; semantic uses vector similarity only. Defaults to hybrid."
15943
+ },
15944
+ {
15945
+ "name": "material_type",
15946
+ "type": "string",
15947
+ "enum": [
15948
+ "image",
15949
+ "video",
15950
+ "audio",
15951
+ "voice",
15952
+ "sticker",
15953
+ "font",
15954
+ "text_style",
15955
+ "text_template",
15956
+ "animation_preset",
15957
+ "lut",
15958
+ "transition_map"
15959
+ ],
15960
+ "required": false,
15961
+ "description": "What this asset is as a reusable material, as opposed to resource_type (its stored file category). Omitted on assets stored before this field existed and on raw assets that are not materials."
14734
15962
  }
14735
15963
  ]
14736
15964
  }
@@ -14843,6 +16071,152 @@ export const operations = [
14843
16071
  ],
14844
16072
  "query": []
14845
16073
  },
16074
+ {
16075
+ "resource": "media.videos",
16076
+ "method": "generate",
16077
+ "summary": "Generate video",
16078
+ "description": "Generate one or more videos from a text prompt and store them straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still generate. mode says what the video is anchored to: text needs only a prompt, image animates the existing image named by first_frame, and first_last interpolates between first_frame and last_frame. The frames must be image or sticker assets of the same library; Router is sent a fetchable URL for each, recorded in the produced asset’s provenance. mode reference and output gif are refused with OPERATION_NOT_SUPPORTED in this release, and negative_prompt, references and an unknown mode are refused before anything is charged. Every output lands in the library as a video asset as soon as it is ready — there is no candidate state and nothing expires, so outputs.save is not part of this lane. Generation is charged per second through Router and the job records the charge in usage; a refused request costs nothing. The response is 202 with a queued Job whose type is video and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced assets from the library. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice. Example: POST /media/v1/libraries/default/videos/generations with {\"prompt\":\"A red kite above a calm sea at sunrise\",\"mode\":\"text\",\"n\":1}.",
16079
+ "http": "POST",
16080
+ "path": "/media/v1/libraries/{library_id}/videos/generations",
16081
+ "streaming": "no",
16082
+ "pagination": false,
16083
+ "pathParams": [
16084
+ {
16085
+ "name": "library_id",
16086
+ "sdkName": "library_id",
16087
+ "description": "Library ID returned by creation."
16088
+ }
16089
+ ],
16090
+ "query": [],
16091
+ "body": {
16092
+ "required": true,
16093
+ "fields": [
16094
+ {
16095
+ "name": "prompt",
16096
+ "type": "string",
16097
+ "required": true,
16098
+ "description": "Text prompt describing the video to generate; Router forwards it to the video model unchanged."
16099
+ },
16100
+ {
16101
+ "name": "negative_prompt",
16102
+ "type": "string",
16103
+ "required": false,
16104
+ "description": "What the video must not contain. Models without a negative-prompt control ignore it."
16105
+ },
16106
+ {
16107
+ "name": "mode",
16108
+ "type": "string",
16109
+ "enum": [
16110
+ "text",
16111
+ "image",
16112
+ "first_last",
16113
+ "reference"
16114
+ ],
16115
+ "required": true,
16116
+ "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."
16117
+ },
16118
+ {
16119
+ "name": "first_frame",
16120
+ "type": "string",
16121
+ "required": false,
16122
+ "description": "Asset identifier returned by upload or asset listing; distinct from public_id and content hashes."
16123
+ },
16124
+ {
16125
+ "name": "last_frame",
16126
+ "type": "string",
16127
+ "required": false,
16128
+ "description": "Asset identifier returned by upload or asset listing; distinct from public_id and content hashes."
16129
+ },
16130
+ {
16131
+ "name": "references",
16132
+ "type": "array",
16133
+ "itemType": "object",
16134
+ "required": false,
16135
+ "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."
16136
+ },
16137
+ {
16138
+ "name": "duration_seconds",
16139
+ "type": "integer",
16140
+ "required": false,
16141
+ "description": "Requested video length in seconds. Router validates it against the chosen model’s supported durations and rejects an unsupported value with INVALID_PARAMS."
16142
+ },
16143
+ {
16144
+ "name": "resolution",
16145
+ "type": "string",
16146
+ "enum": [
16147
+ "480p",
16148
+ "720p",
16149
+ "1080p",
16150
+ "4k"
16151
+ ],
16152
+ "required": false,
16153
+ "description": "Requested output resolution; Router validates it against the chosen model."
16154
+ },
16155
+ {
16156
+ "name": "aspect_ratio",
16157
+ "type": "string",
16158
+ "required": false,
16159
+ "description": "Output aspect ratio written as width:height; defaults to 16:9. Router validates it against the chosen model and rejects an unsupported ratio with INVALID_PARAMS."
16160
+ },
16161
+ {
16162
+ "name": "generate_audio",
16163
+ "type": "boolean",
16164
+ "required": false,
16165
+ "description": "True to generate an audio track with the video. Whether audio is produced depends on the model."
16166
+ },
16167
+ {
16168
+ "name": "output",
16169
+ "type": "string",
16170
+ "enum": [
16171
+ "mp4",
16172
+ "gif"
16173
+ ],
16174
+ "required": false,
16175
+ "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."
16176
+ },
16177
+ {
16178
+ "name": "n",
16179
+ "type": "integer",
16180
+ "required": false,
16181
+ "description": "Videos to generate in one job, from 1 to 4; defaults to 1. Each produced video is charged separately."
16182
+ },
16183
+ {
16184
+ "name": "seed",
16185
+ "type": "integer",
16186
+ "required": false,
16187
+ "description": "Seed for reproducible sampling; omit it to let the model choose one."
16188
+ },
16189
+ {
16190
+ "name": "model",
16191
+ "type": "string",
16192
+ "required": false,
16193
+ "description": "Router model with video-generation capability; omit it to use the library default video model."
16194
+ },
16195
+ {
16196
+ "name": "asset_folder",
16197
+ "type": "string",
16198
+ "required": false,
16199
+ "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."
16200
+ },
16201
+ {
16202
+ "name": "understanding",
16203
+ "type": "string",
16204
+ "enum": [
16205
+ "auto",
16206
+ "skip"
16207
+ ],
16208
+ "required": false,
16209
+ "description": "Understanding behavior for the produced asset; defaults to auto."
16210
+ },
16211
+ {
16212
+ "name": "idempotency_key",
16213
+ "type": "string",
16214
+ "required": false,
16215
+ "description": "Stable key so a retried request reuses the same job instead of generating and charging again; reusing it with different content is rejected."
16216
+ }
16217
+ ]
16218
+ }
16219
+ },
14846
16220
  {
14847
16221
  "resource": "meta.docs",
14848
16222
  "method": "search",
@@ -20259,7 +21633,7 @@ export const operations = [
20259
21633
  "required": true,
20260
21634
  "fields": [
20261
21635
  {
20262
- "name": "updateMask",
21636
+ "name": "update_mask",
20263
21637
  "type": "array",
20264
21638
  "itemType": "string",
20265
21639
  "required": true,
@@ -20502,7 +21876,7 @@ export const operations = [
20502
21876
  "required": true,
20503
21877
  "fields": [
20504
21878
  {
20505
- "name": "updateMask",
21879
+ "name": "update_mask",
20506
21880
  "type": "array",
20507
21881
  "itemType": "string",
20508
21882
  "required": true,
@@ -20813,7 +22187,7 @@ export const operations = [
20813
22187
  "required": true,
20814
22188
  "fields": [
20815
22189
  {
20816
- "name": "updateMask",
22190
+ "name": "update_mask",
20817
22191
  "type": "array",
20818
22192
  "itemType": "string",
20819
22193
  "required": true,
@@ -20974,7 +22348,7 @@ export const operations = [
20974
22348
  "resource": "studio.themes",
20975
22349
  "method": "list",
20976
22350
  "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.",
22351
+ "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
22352
  "http": "GET",
20979
22353
  "path": "/studio/v1/themes",
20980
22354
  "streaming": "no",
@@ -21123,7 +22497,7 @@ export const operations = [
21123
22497
  "required": true,
21124
22498
  "fields": [
21125
22499
  {
21126
- "name": "updateMask",
22500
+ "name": "update_mask",
21127
22501
  "type": "array",
21128
22502
  "itemType": "string",
21129
22503
  "required": true,
@@ -21263,7 +22637,7 @@ export const operations = [
21263
22637
  "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
22638
  },
21265
22639
  {
21266
- "name": "requestId",
22640
+ "name": "request_id",
21267
22641
  "type": "string",
21268
22642
  "required": false,
21269
22643
  "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 +22710,14 @@ export const operations = [
21336
22710
  "required": true,
21337
22711
  "fields": [
21338
22712
  {
21339
- "name": "updateMask",
22713
+ "name": "update_mask",
21340
22714
  "type": "array",
21341
22715
  "itemType": "string",
21342
22716
  "required": true,
21343
22717
  "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
22718
  },
21345
22719
  {
21346
- "name": "expectedRevision",
22720
+ "name": "expected_revision",
21347
22721
  "type": "integer",
21348
22722
  "required": false,
21349
22723
  "description": "Work revision the caller read; when the work moved past it the write is refused with REVISION_CONFLICT and nothing changes."
@@ -21415,7 +22789,7 @@ export const operations = [
21415
22789
  "required": true,
21416
22790
  "fields": [
21417
22791
  {
21418
- "name": "expectedRevision",
22792
+ "name": "expected_revision",
21419
22793
  "type": "integer",
21420
22794
  "required": false,
21421
22795
  "description": "Brief revision the caller read; a mismatch is refused with REVISION_CONFLICT rather than merged."
@@ -21434,21 +22808,21 @@ export const operations = [
21434
22808
  "description": "Source files to keep with the brief, added to the ones already attached."
21435
22809
  },
21436
22810
  {
21437
- "name": "addPoints",
22811
+ "name": "add_points",
21438
22812
  "type": "array",
21439
- "itemType": "string",
22813
+ "itemType": "object",
21440
22814
  "required": false,
21441
- "description": "New requirement points to split out of the brief; each receives the next free key in order."
22815
+ "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
22816
  },
21443
22817
  {
21444
- "name": "editPoints",
22818
+ "name": "edit_points",
21445
22819
  "type": "array",
21446
22820
  "itemType": "object",
21447
22821
  "required": false,
21448
22822
  "description": "Existing points to reword, each naming the key it keeps and the text that replaces it."
21449
22823
  },
21450
22824
  {
21451
- "name": "removePoints",
22825
+ "name": "remove_points",
21452
22826
  "type": "array",
21453
22827
  "itemType": "string",
21454
22828
  "required": false,
@@ -21531,7 +22905,7 @@ export const operations = [
21531
22905
  "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
22906
  },
21533
22907
  {
21534
- "name": "derivedFrom",
22908
+ "name": "derived_from",
21535
22909
  "type": "object",
21536
22910
  "required": false,
21537
22911
  "description": "What the new draft should be derived from, so the service can record the source revision for later staleness checks."
@@ -21543,7 +22917,7 @@ export const operations = [
21543
22917
  "description": "Initial values for the genre properties, keyed by property key; a value the genre does not define is refused rather than stored."
21544
22918
  },
21545
22919
  {
21546
- "name": "requestId",
22920
+ "name": "request_id",
21547
22921
  "type": "string",
21548
22922
  "required": false,
21549
22923
  "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 +22986,14 @@ export const operations = [
21612
22986
  "required": true,
21613
22987
  "fields": [
21614
22988
  {
21615
- "name": "updateMask",
22989
+ "name": "update_mask",
21616
22990
  "type": "array",
21617
22991
  "itemType": "string",
21618
22992
  "required": true,
21619
22993
  "description": "Field paths this call changes, such as title, key or props.topics; a field left out keeps its value."
21620
22994
  },
21621
22995
  {
21622
- "name": "expectedRevision",
22996
+ "name": "expected_revision",
21623
22997
  "type": "integer",
21624
22998
  "required": false,
21625
22999
  "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."
@@ -22021,7 +23395,7 @@ export const operations = [
22021
23395
  "required": false,
22022
23396
  "fields": [
22023
23397
  {
22024
- "name": "expectedRevision",
23398
+ "name": "expected_revision",
22025
23399
  "type": "integer",
22026
23400
  "required": false,
22027
23401
  "description": "Draft revision the caller read; a mismatch is refused rather than confirming a draft that changed under the caller."