@deepraxis/cli 0.2.2-dev.936276d → 0.2.2-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.
package/dist/praxis.js CHANGED
@@ -18683,6 +18683,718 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
18683
18683
  ]
18684
18684
  }
18685
18685
  },
18686
+ {
18687
+ resource: "devops.environments.checkpoints",
18688
+ method: "list",
18689
+ summary: "List environment checkpoints",
18690
+ 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.',
18691
+ http: "GET",
18692
+ path: "/devops/v1/environments/{id}/checkpoints",
18693
+ streaming: "no",
18694
+ pagination: false,
18695
+ pathParams: [
18696
+ {
18697
+ name: "id",
18698
+ sdkName: "id",
18699
+ description: "The environment identifier from a project's environment list; the tier or the display name is not an address."
18700
+ }
18701
+ ],
18702
+ query: []
18703
+ },
18704
+ {
18705
+ resource: "devops.flags",
18706
+ method: "retrieve",
18707
+ summary: "Retrieve a flag",
18708
+ 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.",
18709
+ http: "GET",
18710
+ path: "/devops/v1/flags/{id}",
18711
+ streaming: "no",
18712
+ pagination: false,
18713
+ pathParams: [
18714
+ {
18715
+ name: "id",
18716
+ sdkName: "id",
18717
+ 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."
18718
+ }
18719
+ ],
18720
+ query: []
18721
+ },
18722
+ {
18723
+ resource: "devops.flags",
18724
+ method: "update",
18725
+ summary: "Update a flag",
18726
+ 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.",
18727
+ http: "PATCH",
18728
+ path: "/devops/v1/flags/{id}",
18729
+ streaming: "no",
18730
+ pagination: false,
18731
+ pathParams: [
18732
+ {
18733
+ name: "id",
18734
+ sdkName: "id",
18735
+ 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."
18736
+ }
18737
+ ],
18738
+ query: [],
18739
+ body: {
18740
+ required: true,
18741
+ fields: [
18742
+ {
18743
+ name: "flag",
18744
+ type: "object",
18745
+ required: true,
18746
+ 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."
18747
+ },
18748
+ {
18749
+ name: "updateMask",
18750
+ type: "array",
18751
+ itemType: "string",
18752
+ required: false,
18753
+ 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."
18754
+ }
18755
+ ]
18756
+ }
18757
+ },
18758
+ {
18759
+ resource: "devops.flags.environments",
18760
+ method: "update",
18761
+ summary: "Update a flag's environment",
18762
+ 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.",
18763
+ http: "PATCH",
18764
+ path: "/devops/v1/flags/{id}/environments/{environment}",
18765
+ streaming: "no",
18766
+ pagination: false,
18767
+ pathParams: [
18768
+ {
18769
+ name: "id",
18770
+ sdkName: "id",
18771
+ 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."
18772
+ },
18773
+ {
18774
+ name: "environment",
18775
+ sdkName: "environment",
18776
+ description: "The environment whose configuration you are changing, from the flag's own environments map or the project's environment list."
18777
+ }
18778
+ ],
18779
+ query: [],
18780
+ body: {
18781
+ required: true,
18782
+ fields: [
18783
+ {
18784
+ name: "version",
18785
+ type: "number",
18786
+ required: true,
18787
+ 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."
18788
+ },
18789
+ {
18790
+ name: "comment",
18791
+ type: "string",
18792
+ required: true,
18793
+ description: "Why the configuration is changing, stored with the change so the history reads as decisions rather than as diffs."
18794
+ },
18795
+ {
18796
+ name: "config",
18797
+ type: "object",
18798
+ required: true,
18799
+ 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."
18800
+ }
18801
+ ]
18802
+ }
18803
+ },
18804
+ {
18805
+ resource: "devops.flags",
18806
+ method: "archive",
18807
+ summary: "Archive a flag",
18808
+ 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.",
18809
+ http: "POST",
18810
+ path: "/devops/v1/flags/{id}:archive",
18811
+ streaming: "no",
18812
+ pagination: false,
18813
+ pathParams: [
18814
+ {
18815
+ name: "id",
18816
+ sdkName: "id",
18817
+ 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."
18818
+ }
18819
+ ],
18820
+ query: []
18821
+ },
18822
+ {
18823
+ resource: "devops.flags",
18824
+ method: "conclude",
18825
+ summary: "Conclude a flag",
18826
+ 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.",
18827
+ http: "POST",
18828
+ path: "/devops/v1/flags/{id}:conclude",
18829
+ streaming: "no",
18830
+ pagination: false,
18831
+ pathParams: [
18832
+ {
18833
+ name: "id",
18834
+ sdkName: "id",
18835
+ 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."
18836
+ }
18837
+ ],
18838
+ query: [],
18839
+ body: {
18840
+ required: true,
18841
+ fields: [
18842
+ {
18843
+ name: "action",
18844
+ type: "string",
18845
+ enum: [
18846
+ "promote",
18847
+ "rollback",
18848
+ "extend"
18849
+ ],
18850
+ required: true,
18851
+ description: "What the deadline decided; promote and rollback finish the flag's rollout, while extend keeps it running with a new deadline."
18852
+ },
18853
+ {
18854
+ name: "observeUntil",
18855
+ type: "string",
18856
+ required: false,
18857
+ description: "The new deadline, required by extend and refused with the others; it must be later than the deadline being replaced."
18858
+ },
18859
+ {
18860
+ name: "reason",
18861
+ type: "string",
18862
+ required: true,
18863
+ description: "Why the decision went this way, recorded on the flag as the attribution the observation machinery requires."
18864
+ }
18865
+ ]
18866
+ }
18867
+ },
18868
+ {
18869
+ resource: "devops.progressiveRollouts",
18870
+ method: "create",
18871
+ summary: "Create a progressive rollout",
18872
+ 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.",
18873
+ http: "POST",
18874
+ path: "/devops/v1/progressive-rollouts",
18875
+ streaming: "no",
18876
+ pagination: false,
18877
+ pathParams: [],
18878
+ query: [],
18879
+ body: {
18880
+ required: true,
18881
+ fields: [
18882
+ {
18883
+ name: "flag",
18884
+ type: "string",
18885
+ required: true,
18886
+ description: "The flag to ramp; it must not be archived, its environment must already be on, and its configuration must exist there."
18887
+ },
18888
+ {
18889
+ name: "environment",
18890
+ type: "string",
18891
+ required: true,
18892
+ description: "The environment to ramp in; the flag must be on there already, because ramping an off environment would serve nobody."
18893
+ },
18894
+ {
18895
+ name: "variation",
18896
+ type: "string",
18897
+ required: true,
18898
+ 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."
18899
+ },
18900
+ {
18901
+ name: "bucketBy",
18902
+ type: "string",
18903
+ required: false,
18904
+ description: "Which context attribute decides a caller's bucket; omit it to bucket by the targeting key, which keeps one caller on one side."
18905
+ },
18906
+ {
18907
+ name: "steps",
18908
+ type: "array",
18909
+ itemType: "object",
18910
+ required: true,
18911
+ 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."
18912
+ },
18913
+ {
18914
+ name: "guard",
18915
+ type: "object",
18916
+ required: true,
18917
+ description: "What is watched while a rollout runs, and what happens when a reading is bad."
18918
+ }
18919
+ ]
18920
+ }
18921
+ },
18922
+ {
18923
+ resource: "devops.progressiveRollouts",
18924
+ method: "retrieve",
18925
+ summary: "Retrieve a progressive rollout",
18926
+ 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.",
18927
+ http: "GET",
18928
+ path: "/devops/v1/progressive-rollouts/{id}",
18929
+ streaming: "no",
18930
+ pagination: false,
18931
+ pathParams: [
18932
+ {
18933
+ name: "id",
18934
+ sdkName: "id",
18935
+ description: "The progressive rollout identifier returned by the progressive rollout create answer."
18936
+ }
18937
+ ],
18938
+ query: []
18939
+ },
18940
+ {
18941
+ resource: "devops.progressiveRollouts",
18942
+ method: "pause",
18943
+ summary: "Pause a progressive rollout",
18944
+ 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.",
18945
+ http: "POST",
18946
+ path: "/devops/v1/progressive-rollouts/{id}:pause",
18947
+ streaming: "no",
18948
+ pagination: false,
18949
+ pathParams: [
18950
+ {
18951
+ name: "id",
18952
+ sdkName: "id",
18953
+ description: "The progressive rollout identifier returned by the progressive rollout create answer."
18954
+ }
18955
+ ],
18956
+ query: [],
18957
+ body: {
18958
+ required: true,
18959
+ fields: [
18960
+ {
18961
+ name: "reason",
18962
+ type: "string",
18963
+ required: true,
18964
+ description: "Why the rollout is being paused or rolled back, recorded verbatim in the rollout's history as the attribution of the act."
18965
+ }
18966
+ ]
18967
+ }
18968
+ },
18969
+ {
18970
+ resource: "devops.progressiveRollouts",
18971
+ method: "resume",
18972
+ summary: "Resume a progressive rollout",
18973
+ 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.",
18974
+ http: "POST",
18975
+ path: "/devops/v1/progressive-rollouts/{id}:resume",
18976
+ streaming: "no",
18977
+ pagination: false,
18978
+ pathParams: [
18979
+ {
18980
+ name: "id",
18981
+ sdkName: "id",
18982
+ description: "The progressive rollout identifier returned by the progressive rollout create answer."
18983
+ }
18984
+ ],
18985
+ query: []
18986
+ },
18987
+ {
18988
+ resource: "devops.progressiveRollouts",
18989
+ method: "rollback",
18990
+ summary: "Roll back a progressive rollout",
18991
+ 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.",
18992
+ http: "POST",
18993
+ path: "/devops/v1/progressive-rollouts/{id}:rollback",
18994
+ streaming: "no",
18995
+ pagination: false,
18996
+ pathParams: [
18997
+ {
18998
+ name: "id",
18999
+ sdkName: "id",
19000
+ description: "The progressive rollout identifier returned by the progressive rollout create answer."
19001
+ }
19002
+ ],
19003
+ query: [],
19004
+ body: {
19005
+ required: true,
19006
+ fields: [
19007
+ {
19008
+ name: "reason",
19009
+ type: "string",
19010
+ required: true,
19011
+ description: "Why the rollout is being paused or rolled back, recorded verbatim in the rollout's history as the attribution of the act."
19012
+ }
19013
+ ]
19014
+ }
19015
+ },
19016
+ {
19017
+ resource: "devops.projects",
19018
+ method: "list",
19019
+ summary: "List projects",
19020
+ 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.",
19021
+ http: "GET",
19022
+ path: "/devops/v1/projects",
19023
+ streaming: "no",
19024
+ pagination: false,
19025
+ pathParams: [],
19026
+ query: [
19027
+ {
19028
+ name: "pageSize",
19029
+ type: "integer",
19030
+ required: false,
19031
+ 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."
19032
+ },
19033
+ {
19034
+ name: "pageToken",
19035
+ type: "string",
19036
+ required: false,
19037
+ description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
19038
+ }
19039
+ ]
19040
+ },
19041
+ {
19042
+ resource: "devops.projects",
19043
+ method: "retrieve",
19044
+ summary: "Retrieve a project",
19045
+ 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.",
19046
+ http: "GET",
19047
+ path: "/devops/v1/projects/{id}",
19048
+ streaming: "no",
19049
+ pagination: false,
19050
+ pathParams: [
19051
+ {
19052
+ name: "id",
19053
+ sdkName: "id",
19054
+ description: "The project identifier returned by the project list, not the project's display name or its repository name."
19055
+ }
19056
+ ],
19057
+ query: []
19058
+ },
19059
+ {
19060
+ resource: "devops.projects.environments",
19061
+ method: "list",
19062
+ summary: "List environments",
19063
+ 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.",
19064
+ http: "GET",
19065
+ path: "/devops/v1/projects/{project}/environments",
19066
+ streaming: "no",
19067
+ pagination: false,
19068
+ pathParams: [
19069
+ {
19070
+ name: "project",
19071
+ sdkName: "project",
19072
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
19073
+ }
19074
+ ],
19075
+ query: []
19076
+ },
19077
+ {
19078
+ resource: "devops.projects.flags",
19079
+ method: "list",
19080
+ summary: "List flags",
19081
+ 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.",
19082
+ http: "GET",
19083
+ path: "/devops/v1/projects/{project}/flags",
19084
+ streaming: "no",
19085
+ pagination: false,
19086
+ pathParams: [
19087
+ {
19088
+ name: "project",
19089
+ sdkName: "project",
19090
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
19091
+ }
19092
+ ],
19093
+ query: [
19094
+ {
19095
+ name: "pageSize",
19096
+ type: "integer",
19097
+ required: false,
19098
+ 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."
19099
+ },
19100
+ {
19101
+ name: "pageToken",
19102
+ type: "string",
19103
+ required: false,
19104
+ description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
19105
+ },
19106
+ {
19107
+ name: "filter",
19108
+ type: "string",
19109
+ required: false,
19110
+ 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."
19111
+ }
19112
+ ]
19113
+ },
19114
+ {
19115
+ resource: "devops.projects.flags",
19116
+ method: "create",
19117
+ summary: "Create a flag",
19118
+ 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.",
19119
+ http: "POST",
19120
+ path: "/devops/v1/projects/{project}/flags",
19121
+ streaming: "no",
19122
+ pagination: false,
19123
+ pathParams: [
19124
+ {
19125
+ name: "project",
19126
+ sdkName: "project",
19127
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
19128
+ }
19129
+ ],
19130
+ query: [],
19131
+ body: {
19132
+ required: true,
19133
+ fields: [
19134
+ {
19135
+ name: "key",
19136
+ type: "string",
19137
+ required: true,
19138
+ 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."
19139
+ },
19140
+ {
19141
+ name: "name",
19142
+ type: "string",
19143
+ required: true,
19144
+ description: "Display name of the flag, shown wherever it is listed."
19145
+ },
19146
+ {
19147
+ name: "description",
19148
+ type: "string",
19149
+ required: false,
19150
+ description: "What this flag does to the product, so a later reader does not have to trace the code to find out."
19151
+ },
19152
+ {
19153
+ name: "kind",
19154
+ type: "string",
19155
+ enum: [
19156
+ "release",
19157
+ "experiment",
19158
+ "ops",
19159
+ "permission"
19160
+ ],
19161
+ required: true,
19162
+ description: "What sort of flag this is; it decides the expected lifetime, and a release or experiment flag must carry an observation deadline."
19163
+ },
19164
+ {
19165
+ name: "valueType",
19166
+ type: "string",
19167
+ enum: [
19168
+ "boolean",
19169
+ "string",
19170
+ "number",
19171
+ "object"
19172
+ ],
19173
+ required: true,
19174
+ description: "The type every variation must have; a variation of another type is refused."
19175
+ },
19176
+ {
19177
+ name: "variations",
19178
+ type: "array",
19179
+ itemType: "object",
19180
+ required: true,
19181
+ description: "The values the flag can serve, at least two for a flag that decides anything; their ids are what defaults and rules name."
19182
+ },
19183
+ {
19184
+ name: "defaults",
19185
+ type: "object",
19186
+ required: true,
19187
+ 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."
19188
+ },
19189
+ {
19190
+ name: "owner",
19191
+ type: "object",
19192
+ required: false,
19193
+ description: "Who performed an action, so a state change or a run can be attributed rather than guessed at."
19194
+ },
19195
+ {
19196
+ name: "observeUntil",
19197
+ type: "string",
19198
+ required: false,
19199
+ 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."
19200
+ },
19201
+ {
19202
+ name: "removalTicket",
19203
+ type: "string",
19204
+ required: false,
19205
+ description: "The ticket that will remove the flag and its code; giving it here is what makes the removal traceable from the flag itself."
19206
+ },
19207
+ {
19208
+ name: "pullRequest",
19209
+ type: "string",
19210
+ required: false,
19211
+ description: "The pull request that declared this flag, when the flag comes from a code change rather than being created by hand."
19212
+ },
19213
+ {
19214
+ name: "requestId",
19215
+ type: "string",
19216
+ required: false,
19217
+ 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."
19218
+ }
19219
+ ]
19220
+ }
19221
+ },
19222
+ {
19223
+ resource: "devops.projects.promotions",
19224
+ method: "list",
19225
+ summary: "List promotions",
19226
+ 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.`,
19227
+ http: "GET",
19228
+ path: "/devops/v1/projects/{project}/promotions",
19229
+ streaming: "no",
19230
+ pagination: false,
19231
+ pathParams: [
19232
+ {
19233
+ name: "project",
19234
+ sdkName: "project",
19235
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
19236
+ }
19237
+ ],
19238
+ query: [
19239
+ {
19240
+ name: "pageSize",
19241
+ type: "integer",
19242
+ required: false,
19243
+ 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."
19244
+ },
19245
+ {
19246
+ name: "pageToken",
19247
+ type: "string",
19248
+ required: false,
19249
+ description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
19250
+ }
19251
+ ]
19252
+ },
19253
+ {
19254
+ resource: "devops.projects.releases",
19255
+ method: "list",
19256
+ summary: "List releases",
19257
+ 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.",
19258
+ http: "GET",
19259
+ path: "/devops/v1/projects/{project}/releases",
19260
+ streaming: "no",
19261
+ pagination: false,
19262
+ pathParams: [
19263
+ {
19264
+ name: "project",
19265
+ sdkName: "project",
19266
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
19267
+ }
19268
+ ],
19269
+ query: [
19270
+ {
19271
+ name: "pageSize",
19272
+ type: "integer",
19273
+ required: false,
19274
+ 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."
19275
+ },
19276
+ {
19277
+ name: "pageToken",
19278
+ type: "string",
19279
+ required: false,
19280
+ description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
19281
+ }
19282
+ ]
19283
+ },
19284
+ {
19285
+ resource: "devops.projects.releases",
19286
+ method: "create",
19287
+ summary: "Create a release",
19288
+ 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.",
19289
+ http: "POST",
19290
+ path: "/devops/v1/projects/{project}/releases",
19291
+ streaming: "no",
19292
+ pagination: false,
19293
+ pathParams: [
19294
+ {
19295
+ name: "project",
19296
+ sdkName: "project",
19297
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
19298
+ }
19299
+ ],
19300
+ query: [],
19301
+ body: {
19302
+ required: true,
19303
+ fields: [
19304
+ {
19305
+ name: "commit",
19306
+ type: "string",
19307
+ required: false,
19308
+ description: "Full 40-character commit to release as it stands; give this or base with picks, never both."
19309
+ },
19310
+ {
19311
+ name: "base",
19312
+ type: "string",
19313
+ required: false,
19314
+ description: "The production release a patch is built on; give it together with picks, and only when production currently runs that release."
19315
+ },
19316
+ {
19317
+ name: "picks",
19318
+ type: "array",
19319
+ itemType: "string",
19320
+ required: false,
19321
+ 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."
19322
+ },
19323
+ {
19324
+ name: "validateOnly",
19325
+ type: "boolean",
19326
+ required: false,
19327
+ 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."
19328
+ },
19329
+ {
19330
+ name: "requestId",
19331
+ type: "string",
19332
+ required: false,
19333
+ 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."
19334
+ }
19335
+ ]
19336
+ }
19337
+ },
19338
+ {
19339
+ resource: "devops.projects.targets",
19340
+ method: "list",
19341
+ summary: "List targets",
19342
+ 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.",
19343
+ http: "GET",
19344
+ path: "/devops/v1/projects/{project}/targets",
19345
+ streaming: "no",
19346
+ pagination: false,
19347
+ pathParams: [
19348
+ {
19349
+ name: "project",
19350
+ sdkName: "project",
19351
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
19352
+ }
19353
+ ],
19354
+ query: [
19355
+ {
19356
+ name: "pageSize",
19357
+ type: "integer",
19358
+ required: false,
19359
+ 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."
19360
+ },
19361
+ {
19362
+ name: "pageToken",
19363
+ type: "string",
19364
+ required: false,
19365
+ description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
19366
+ }
19367
+ ]
19368
+ },
19369
+ {
19370
+ resource: "devops.projects.targets",
19371
+ method: "refresh",
19372
+ summary: "Refresh the target catalog",
19373
+ 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.",
19374
+ http: "POST",
19375
+ path: "/devops/v1/projects/{project}/targets:refresh",
19376
+ streaming: "no",
19377
+ pagination: false,
19378
+ pathParams: [
19379
+ {
19380
+ name: "project",
19381
+ sdkName: "project",
19382
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
19383
+ }
19384
+ ],
19385
+ query: [],
19386
+ body: {
19387
+ required: false,
19388
+ fields: [
19389
+ {
19390
+ name: "commit",
19391
+ type: "string",
19392
+ required: false,
19393
+ 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."
19394
+ }
19395
+ ]
19396
+ }
19397
+ },
18686
19398
  {
18687
19399
  resource: "devops.projects.testCases",
18688
19400
  method: "list",
@@ -19023,49 +19735,302 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
19023
19735
  description: "How many times each selected case runs, which is how a flake is told apart from a real failure; omit for once."
19024
19736
  },
19025
19737
  {
19026
- name: "waitUntil",
19738
+ name: "waitUntil",
19739
+ type: "string",
19740
+ enum: [
19741
+ "queued",
19742
+ "started",
19743
+ "finished"
19744
+ ],
19745
+ required: false,
19746
+ 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."
19747
+ },
19748
+ {
19749
+ name: "executor",
19750
+ type: "string",
19751
+ enum: [
19752
+ "cloud",
19753
+ "external"
19754
+ ],
19755
+ required: false,
19756
+ 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."
19757
+ },
19758
+ {
19759
+ name: "requestId",
19760
+ type: "string",
19761
+ required: false,
19762
+ 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."
19763
+ }
19764
+ ]
19765
+ }
19766
+ },
19767
+ {
19768
+ resource: "devops.projects.testSuites",
19769
+ method: "list",
19770
+ summary: "List test suites",
19771
+ 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.",
19772
+ http: "GET",
19773
+ path: "/devops/v1/projects/{project}/test-suites",
19774
+ streaming: "no",
19775
+ pagination: false,
19776
+ pathParams: [
19777
+ {
19778
+ name: "project",
19779
+ sdkName: "project",
19780
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
19781
+ }
19782
+ ],
19783
+ query: [
19784
+ {
19785
+ name: "pageSize",
19786
+ type: "integer",
19787
+ required: false,
19788
+ 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."
19789
+ },
19790
+ {
19791
+ name: "pageToken",
19792
+ type: "string",
19793
+ required: false,
19794
+ description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
19795
+ },
19796
+ {
19797
+ name: "orderBy",
19798
+ type: "string",
19799
+ required: false,
19800
+ 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."
19801
+ }
19802
+ ]
19803
+ },
19804
+ {
19805
+ resource: "devops.promotions",
19806
+ method: "create",
19807
+ summary: "Create a promotion",
19808
+ 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.",
19809
+ http: "POST",
19810
+ path: "/devops/v1/promotions",
19811
+ streaming: "no",
19812
+ pagination: false,
19813
+ pathParams: [],
19814
+ query: [],
19815
+ body: {
19816
+ required: true,
19817
+ fields: [
19818
+ {
19819
+ name: "release",
19820
+ type: "string",
19821
+ required: true,
19822
+ description: "The release to promote, from a release list or create answer; promoting an abandoned release is refused."
19823
+ },
19824
+ {
19825
+ name: "environment",
19826
+ type: "string",
19827
+ required: true,
19828
+ 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."
19829
+ },
19830
+ {
19831
+ name: "path",
19832
+ type: "string",
19833
+ enum: [
19834
+ "regular",
19835
+ "patch",
19836
+ "targeted",
19837
+ "rollback"
19838
+ ],
19839
+ required: false,
19840
+ 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."
19841
+ },
19842
+ {
19843
+ name: "targets",
19844
+ type: "array",
19845
+ itemType: "string",
19846
+ required: false,
19847
+ 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."
19848
+ },
19849
+ {
19850
+ name: "bypass",
19851
+ type: "array",
19852
+ itemType: "object",
19853
+ required: false,
19854
+ 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."
19855
+ },
19856
+ {
19857
+ name: "validateOnly",
19858
+ type: "boolean",
19859
+ required: false,
19860
+ 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."
19861
+ },
19862
+ {
19863
+ name: "requestId",
19864
+ type: "string",
19865
+ required: false,
19866
+ description: "Caller-chosen key that makes this create idempotent: repeating it answers the promotion the first call made instead of scheduling a second one."
19867
+ }
19868
+ ]
19869
+ }
19870
+ },
19871
+ {
19872
+ resource: "devops.promotions",
19873
+ method: "retrieve",
19874
+ summary: "Retrieve a promotion",
19875
+ 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.",
19876
+ http: "GET",
19877
+ path: "/devops/v1/promotions/{id}",
19878
+ streaming: "no",
19879
+ pagination: false,
19880
+ pathParams: [
19881
+ {
19882
+ name: "id",
19883
+ sdkName: "id",
19884
+ description: "The promotion identifier returned by a promotion list or create answer."
19885
+ }
19886
+ ],
19887
+ query: [
19888
+ {
19889
+ name: "expand",
19890
+ type: "string",
19891
+ enum: [
19892
+ "rollouts"
19893
+ ],
19894
+ required: false,
19895
+ 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."
19896
+ }
19897
+ ]
19898
+ },
19899
+ {
19900
+ resource: "devops.promotions",
19901
+ method: "approve",
19902
+ summary: "Approve or reject a promotion",
19903
+ 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.",
19904
+ http: "POST",
19905
+ path: "/devops/v1/promotions/{id}:approve",
19906
+ streaming: "no",
19907
+ pagination: false,
19908
+ pathParams: [
19909
+ {
19910
+ name: "id",
19911
+ sdkName: "id",
19912
+ description: "The promotion identifier returned by a promotion list or create answer."
19913
+ }
19914
+ ],
19915
+ query: [],
19916
+ body: {
19917
+ required: true,
19918
+ fields: [
19919
+ {
19920
+ name: "approved",
19921
+ type: "boolean",
19922
+ required: true,
19923
+ description: "True to approve, which lets the promotion deploy; false rejects it and ends the promotion as approval_rejected."
19924
+ },
19925
+ {
19926
+ name: "comment",
19927
+ type: "string",
19928
+ required: false,
19929
+ description: "What the approver wants recorded with the decision, stored verbatim; omit it when there is nothing to add."
19930
+ }
19931
+ ]
19932
+ }
19933
+ },
19934
+ {
19935
+ resource: "devops.promotions",
19936
+ method: "cancel",
19937
+ summary: "Cancel a promotion",
19938
+ 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.",
19939
+ http: "POST",
19940
+ path: "/devops/v1/promotions/{id}:cancel",
19941
+ streaming: "no",
19942
+ pagination: false,
19943
+ pathParams: [
19944
+ {
19945
+ name: "id",
19946
+ sdkName: "id",
19947
+ description: "The promotion identifier returned by a promotion list or create answer."
19948
+ }
19949
+ ],
19950
+ query: [],
19951
+ body: {
19952
+ required: true,
19953
+ fields: [
19954
+ {
19955
+ name: "reason",
19027
19956
  type: "string",
19028
- enum: [
19029
- "queued",
19030
- "started",
19031
- "finished"
19032
- ],
19033
- required: false,
19034
- 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."
19035
- },
19957
+ required: true,
19958
+ description: "Why the promotion is being cancelled, stored on it as the attribution of the act."
19959
+ }
19960
+ ]
19961
+ }
19962
+ },
19963
+ {
19964
+ resource: "devops.promotions",
19965
+ method: "conclude",
19966
+ summary: "Conclude an observation",
19967
+ 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.`,
19968
+ http: "POST",
19969
+ path: "/devops/v1/promotions/{id}:conclude",
19970
+ streaming: "no",
19971
+ pagination: false,
19972
+ pathParams: [
19973
+ {
19974
+ name: "id",
19975
+ sdkName: "id",
19976
+ description: "The promotion identifier returned by a promotion list or create answer."
19977
+ }
19978
+ ],
19979
+ query: [],
19980
+ body: {
19981
+ required: true,
19982
+ fields: [
19036
19983
  {
19037
- name: "executor",
19984
+ name: "action",
19038
19985
  type: "string",
19039
19986
  enum: [
19040
- "cloud",
19041
- "external"
19987
+ "keep",
19988
+ "rollback"
19042
19989
  ],
19043
- required: false,
19044
- 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."
19990
+ required: true,
19991
+ description: "Which way the window is decided; a rollback schedules the return of the environment rather than only labelling the promotion."
19045
19992
  },
19046
19993
  {
19047
- name: "requestId",
19994
+ name: "reason",
19048
19995
  type: "string",
19049
- required: false,
19050
- 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."
19996
+ required: true,
19997
+ description: "Why the window was decided that way, recorded on the promotion's observation as the attribution of the verdict."
19051
19998
  }
19052
19999
  ]
19053
20000
  }
19054
20001
  },
19055
20002
  {
19056
- resource: "devops.projects.testSuites",
20003
+ resource: "devops.promotions",
20004
+ method: "retry",
20005
+ summary: "Retry a promotion",
20006
+ 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.",
20007
+ http: "POST",
20008
+ path: "/devops/v1/promotions/{id}:retry",
20009
+ streaming: "no",
20010
+ pagination: false,
20011
+ pathParams: [
20012
+ {
20013
+ name: "id",
20014
+ sdkName: "id",
20015
+ description: "The promotion identifier returned by a promotion list or create answer."
20016
+ }
20017
+ ],
20018
+ query: []
20019
+ },
20020
+ {
20021
+ resource: "devops.promotions.rollouts",
19057
20022
  method: "list",
19058
- summary: "List test suites",
19059
- 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.",
20023
+ summary: "List a promotion's rollouts",
20024
+ 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.",
19060
20025
  http: "GET",
19061
- path: "/devops/v1/projects/{project}/test-suites",
20026
+ path: "/devops/v1/promotions/{promotion}/rollouts",
19062
20027
  streaming: "no",
19063
20028
  pagination: false,
19064
20029
  pathParams: [
19065
20030
  {
19066
- name: "project",
19067
- sdkName: "project",
19068
- description: "Identifies the project whose data you are reading, from the project list or create answer."
20031
+ name: "promotion",
20032
+ sdkName: "promotion",
20033
+ description: "The promotion whose rollouts you are reading, from a promotion list or create answer."
19069
20034
  }
19070
20035
  ],
19071
20036
  query: [
@@ -19080,15 +20045,74 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
19080
20045
  type: "string",
19081
20046
  required: false,
19082
20047
  description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
19083
- },
19084
- {
19085
- name: "orderBy",
19086
- type: "string",
19087
- required: false,
19088
- 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."
19089
20048
  }
19090
20049
  ]
19091
20050
  },
20051
+ {
20052
+ resource: "devops.releases",
20053
+ method: "retrieve",
20054
+ summary: "Retrieve a release",
20055
+ 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.",
20056
+ http: "GET",
20057
+ path: "/devops/v1/releases/{id}",
20058
+ streaming: "no",
20059
+ pagination: false,
20060
+ pathParams: [
20061
+ {
20062
+ name: "id",
20063
+ sdkName: "id",
20064
+ description: "The release identifier returned by a release list or create answer; a release is addressed by this id, never by its display name."
20065
+ }
20066
+ ],
20067
+ query: []
20068
+ },
20069
+ {
20070
+ resource: "devops.releases",
20071
+ method: "abandon",
20072
+ summary: "Abandon a release",
20073
+ 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.",
20074
+ http: "POST",
20075
+ path: "/devops/v1/releases/{id}:abandon",
20076
+ streaming: "no",
20077
+ pagination: false,
20078
+ pathParams: [
20079
+ {
20080
+ name: "id",
20081
+ sdkName: "id",
20082
+ description: "The release identifier returned by a release list or create answer; a release is addressed by this id, never by its display name."
20083
+ }
20084
+ ],
20085
+ query: [],
20086
+ body: {
20087
+ required: true,
20088
+ fields: [
20089
+ {
20090
+ name: "reason",
20091
+ type: "string",
20092
+ required: true,
20093
+ description: "Why this release no longer should be promoted, recorded verbatim on the release for whoever reads it later."
20094
+ }
20095
+ ]
20096
+ }
20097
+ },
20098
+ {
20099
+ resource: "devops.rollouts",
20100
+ method: "retrieve",
20101
+ summary: "Retrieve a rollout",
20102
+ 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.",
20103
+ http: "GET",
20104
+ path: "/devops/v1/rollouts/{id}",
20105
+ streaming: "no",
20106
+ pagination: false,
20107
+ pathParams: [
20108
+ {
20109
+ name: "id",
20110
+ sdkName: "id",
20111
+ description: "The rollout identifier from a promotion's rollout list or a promotion read with expand=rollouts."
20112
+ }
20113
+ ],
20114
+ query: []
20115
+ },
19092
20116
  {
19093
20117
  resource: "devops.testCases",
19094
20118
  method: "retrieve",
@@ -20589,7 +21613,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
20589
21613
  resource: "media.generation.capabilities",
20590
21614
  method: "list",
20591
21615
  summary: "Get generation capabilities",
20592
- 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.",
21616
+ 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.",
20593
21617
  http: "GET",
20594
21618
  path: "/media/v1/generation/capabilities",
20595
21619
  streaming: "no",
@@ -20679,6 +21703,41 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
20679
21703
  ]
20680
21704
  }
20681
21705
  },
21706
+ {
21707
+ resource: "media.libraries",
21708
+ method: "retrieveDefault",
21709
+ summary: "Get default library",
21710
+ 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.",
21711
+ http: "GET",
21712
+ path: "/media/v1/libraries/default",
21713
+ streaming: "no",
21714
+ pagination: false,
21715
+ pathParams: [],
21716
+ query: []
21717
+ },
21718
+ {
21719
+ resource: "media.libraries",
21720
+ method: "setDefault",
21721
+ summary: "Set default library",
21722
+ 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.",
21723
+ http: "PUT",
21724
+ path: "/media/v1/libraries/default",
21725
+ streaming: "no",
21726
+ pagination: false,
21727
+ pathParams: [],
21728
+ query: [],
21729
+ body: {
21730
+ required: true,
21731
+ fields: [
21732
+ {
21733
+ name: "library_id",
21734
+ type: "string",
21735
+ required: true,
21736
+ description: "Identifier of a library belonging to the caller."
21737
+ }
21738
+ ]
21739
+ }
21740
+ },
20682
21741
  {
20683
21742
  resource: "media.libraries",
20684
21743
  method: "delete",
@@ -20803,6 +21862,25 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
20803
21862
  required: false,
20804
21863
  description: "image, video (including audio), raw; auto is accepted by Upload actions only, and listing with auto returns 400."
20805
21864
  },
21865
+ {
21866
+ name: "material_type",
21867
+ type: "string",
21868
+ enum: [
21869
+ "image",
21870
+ "video",
21871
+ "audio",
21872
+ "voice",
21873
+ "sticker",
21874
+ "font",
21875
+ "text_style",
21876
+ "text_template",
21877
+ "animation_preset",
21878
+ "lut",
21879
+ "transition_map"
21880
+ ],
21881
+ required: false,
21882
+ 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."
21883
+ },
20806
21884
  {
20807
21885
  name: "cursor",
20808
21886
  type: "string",
@@ -21163,6 +22241,68 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21163
22241
  ]
21164
22242
  }
21165
22243
  },
22244
+ {
22245
+ resource: "media.assets",
22246
+ method: "edit",
22247
+ summary: "Edit asset",
22248
+ 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\"}}.",
22249
+ http: "POST",
22250
+ path: "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
22251
+ streaming: "no",
22252
+ pagination: false,
22253
+ pathParams: [
22254
+ {
22255
+ name: "library_id",
22256
+ sdkName: "library_id",
22257
+ description: "Library ID returned by creation."
22258
+ },
22259
+ {
22260
+ name: "asset_id",
22261
+ sdkName: "asset_id",
22262
+ description: "32-character asset ID."
22263
+ }
22264
+ ],
22265
+ query: [],
22266
+ body: {
22267
+ required: true,
22268
+ fields: [
22269
+ {
22270
+ name: "operation",
22271
+ type: "object",
22272
+ required: true,
22273
+ 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."
22274
+ },
22275
+ {
22276
+ name: "model",
22277
+ type: "string",
22278
+ required: false,
22279
+ description: "Router model that performs the edit; omit it to use the library default image model."
22280
+ },
22281
+ {
22282
+ name: "asset_folder",
22283
+ type: "string",
22284
+ required: false,
22285
+ 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."
22286
+ },
22287
+ {
22288
+ name: "understanding",
22289
+ type: "string",
22290
+ enum: [
22291
+ "auto",
22292
+ "skip"
22293
+ ],
22294
+ required: false,
22295
+ description: "Understanding behavior for the produced asset; defaults to auto."
22296
+ },
22297
+ {
22298
+ name: "idempotency_key",
22299
+ type: "string",
22300
+ required: false,
22301
+ description: "Stable key so a retried request reuses the same job instead of editing and charging again; reusing it with different content is rejected."
22302
+ }
22303
+ ]
22304
+ }
22305
+ },
21166
22306
  {
21167
22307
  resource: "media.libraries.assets.frames",
21168
22308
  method: "create",
@@ -21209,6 +22349,29 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21209
22349
  ]
21210
22350
  }
21211
22351
  },
22352
+ {
22353
+ resource: "media.assets",
22354
+ method: "lineage",
22355
+ summary: "Get asset lineage",
22356
+ 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.",
22357
+ http: "GET",
22358
+ path: "/media/v1/libraries/{library_id}/assets/{asset_id}/lineage",
22359
+ streaming: "no",
22360
+ pagination: false,
22361
+ pathParams: [
22362
+ {
22363
+ name: "library_id",
22364
+ sdkName: "library_id",
22365
+ description: "Library ID returned by creation."
22366
+ },
22367
+ {
22368
+ name: "asset_id",
22369
+ sdkName: "asset_id",
22370
+ description: "32-character asset ID."
22371
+ }
22372
+ ],
22373
+ query: []
22374
+ },
21212
22375
  {
21213
22376
  resource: "media.libraries.assets.reprocess",
21214
22377
  method: "create",
@@ -21332,16 +22495,83 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21332
22495
  required: true,
21333
22496
  fields: [
21334
22497
  {
21335
- name: "selector",
21336
- type: "object",
22498
+ name: "selector",
22499
+ type: "object",
22500
+ required: true,
22501
+ description: "Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created."
22502
+ },
22503
+ {
22504
+ name: "reason",
22505
+ type: "string",
22506
+ required: false,
22507
+ description: "Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters."
22508
+ }
22509
+ ]
22510
+ }
22511
+ },
22512
+ {
22513
+ resource: "media.speech",
22514
+ method: "create",
22515
+ summary: "Create speech",
22516
+ 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\"}.",
22517
+ http: "POST",
22518
+ path: "/media/v1/libraries/{library_id}/audio/speech",
22519
+ streaming: "no",
22520
+ pagination: false,
22521
+ pathParams: [
22522
+ {
22523
+ name: "library_id",
22524
+ sdkName: "library_id",
22525
+ description: "Library ID returned by creation."
22526
+ }
22527
+ ],
22528
+ query: [],
22529
+ body: {
22530
+ required: true,
22531
+ fields: [
22532
+ {
22533
+ name: "input",
22534
+ type: "string",
22535
+ required: true,
22536
+ description: "Text to synthesize; long text is synthesized paragraph by paragraph."
22537
+ },
22538
+ {
22539
+ name: "voice",
22540
+ type: "string",
21337
22541
  required: true,
21338
- description: "Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created."
22542
+ description: "Voice identifier or platform voice name."
21339
22543
  },
21340
22544
  {
21341
- name: "reason",
22545
+ name: "instructions",
21342
22546
  type: "string",
21343
22547
  required: false,
21344
- description: "Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters."
22548
+ description: "Emotion and style guidance for the synthesized speech."
22549
+ },
22550
+ {
22551
+ name: "speed",
22552
+ type: "number",
22553
+ required: false,
22554
+ description: "Speaking-rate multiplier; 1 is the model default."
22555
+ },
22556
+ {
22557
+ name: "response_format",
22558
+ type: "string",
22559
+ enum: [
22560
+ "mp3",
22561
+ "wav",
22562
+ "opus",
22563
+ "aac",
22564
+ "flac",
22565
+ "pcm"
22566
+ ],
22567
+ required: false,
22568
+ description: "Audio encoding of the synthesized speech."
22569
+ },
22570
+ {
22571
+ name: "language",
22572
+ type: "string",
22573
+ required: false,
22574
+ description: "Language of the text, when the voice supports several."
21345
22575
  }
21346
22576
  ]
21347
22577
  }
@@ -21512,12 +22742,12 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21512
22742
  ]
21513
22743
  },
21514
22744
  {
21515
- resource: "media.libraries.generations",
21516
- method: "create",
21517
- summary: "Create video generation",
21518
- 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.",
22745
+ resource: "media.images",
22746
+ method: "generate",
22747
+ summary: "Generate image",
22748
+ 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\"}.",
21519
22749
  http: "POST",
21520
- path: "/media/v1/libraries/{library_id}/generations",
22750
+ path: "/media/v1/libraries/{library_id}/images/generations",
21521
22751
  streaming: "no",
21522
22752
  pagination: false,
21523
22753
  pathParams: [
@@ -21532,63 +22762,85 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21532
22762
  required: true,
21533
22763
  fields: [
21534
22764
  {
21535
- name: "intent",
22765
+ name: "prompt",
21536
22766
  type: "string",
21537
22767
  required: true,
21538
- description: "Generation operation; v1 accepts only video.generate text-to-video requests."
22768
+ description: "Text prompt describing the image to generate; Router forwards it to the image model unchanged."
21539
22769
  },
21540
22770
  {
21541
- name: "prompt",
22771
+ name: "negative_prompt",
21542
22772
  type: "string",
21543
- required: true,
21544
- description: "Text prompt describing the video to generate."
22773
+ required: false,
22774
+ description: "What the image must not contain. Models without a negative-prompt control ignore it."
21545
22775
  },
21546
22776
  {
21547
- name: "count",
22777
+ name: "n",
21548
22778
  type: "integer",
21549
22779
  required: false,
21550
- description: "Number of videos to generate; defaults to 1 and must be from 1 to 4."
22780
+ description: "Images to generate in one job, from 1 to 10; defaults to 1. Each produced image is charged separately."
21551
22781
  },
21552
22782
  {
21553
- name: "duration_seconds",
21554
- type: "integer",
22783
+ name: "size",
22784
+ type: "string",
21555
22785
  required: false,
21556
- description: "Requested video duration in seconds; Router validates the model-specific supported durations."
22786
+ description: "Requested pixel size written as width x height. Router validates it against the chosen model and rejects an unsupported size with INVALID_PARAMS."
21557
22787
  },
21558
22788
  {
21559
- name: "aspect_ratio",
22789
+ name: "background",
21560
22790
  type: "string",
22791
+ enum: [
22792
+ "transparent",
22793
+ "opaque",
22794
+ "auto"
22795
+ ],
21561
22796
  required: false,
21562
- description: "Requested output aspect ratio; defaults to 16:9 and Router validates model support."
22797
+ description: "Background handling; defaults to auto. Whether transparency is honoured depends on the model."
21563
22798
  },
21564
22799
  {
21565
- name: "model",
22800
+ name: "output_format",
21566
22801
  type: "string",
22802
+ enum: [
22803
+ "png",
22804
+ "jpeg",
22805
+ "webp"
22806
+ ],
21567
22807
  required: false,
21568
- description: "Router model with video_generation capability; defaults to wan2.7-t2v."
22808
+ description: "Encoding of the stored image; defaults to png. Transparency requires png or webp."
21569
22809
  },
21570
22810
  {
21571
- name: "save",
22811
+ name: "output",
21572
22812
  type: "string",
21573
22813
  enum: [
21574
- "candidate",
21575
- "library"
22814
+ "image",
22815
+ "sticker"
21576
22816
  ],
21577
22817
  required: false,
21578
- description: "candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically."
22818
+ 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."
21579
22819
  },
21580
22820
  {
21581
- name: "asset_folder",
22821
+ name: "references",
22822
+ type: "array",
22823
+ itemType: "object",
22824
+ required: false,
22825
+ 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."
22826
+ },
22827
+ {
22828
+ name: "seed",
22829
+ type: "integer",
22830
+ required: false,
22831
+ description: "Seed for reproducible sampling; omit it to let the model choose one."
22832
+ },
22833
+ {
22834
+ name: "model",
21582
22835
  type: "string",
21583
22836
  required: false,
21584
- 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."
22837
+ description: "Router model with image-generation capability; omit it to use the library default image model."
21585
22838
  },
21586
22839
  {
21587
- name: "tags",
21588
- type: "array",
21589
- itemType: "string",
22840
+ name: "asset_folder",
22841
+ type: "string",
21590
22842
  required: false,
21591
- description: "Tags applied when an output becomes a library asset."
22843
+ 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."
21592
22844
  },
21593
22845
  {
21594
22846
  name: "understanding",
@@ -21598,14 +22850,13 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21598
22850
  "skip"
21599
22851
  ],
21600
22852
  required: false,
21601
- description: "Understanding behavior when a candidate is saved as an asset; defaults to auto."
22853
+ description: "Understanding behavior for the produced asset; defaults to auto."
21602
22854
  },
21603
22855
  {
21604
- name: "references",
21605
- type: "array",
21606
- itemType: "object",
22856
+ name: "idempotency_key",
22857
+ type: "string",
21607
22858
  required: false,
21608
- description: "Not supported in v1; omit this field. Only text-to-video is currently available."
22859
+ description: "Stable key so a retried request reuses the same job instead of generating and charging again; reusing it with different content is rejected."
21609
22860
  }
21610
22861
  ]
21611
22862
  }
@@ -21614,7 +22865,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21614
22865
  resource: "media.libraries.jobs",
21615
22866
  method: "list",
21616
22867
  summary: "List jobs",
21617
- 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.",
22868
+ 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.",
21618
22869
  http: "GET",
21619
22870
  path: "/media/v1/libraries/{library_id}/jobs",
21620
22871
  streaming: "no",
@@ -21632,11 +22883,13 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21632
22883
  type: "string",
21633
22884
  enum: [
21634
22885
  "queued",
22886
+ "in_progress",
21635
22887
  "running",
21636
22888
  "completed",
21637
22889
  "completed_with_errors",
21638
22890
  "failed",
21639
- "cancelled"
22891
+ "cancelled",
22892
+ "canceled"
21640
22893
  ],
21641
22894
  required: false,
21642
22895
  description: "Filter jobs by their current status."
@@ -21659,7 +22912,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21659
22912
  resource: "media.libraries.jobs",
21660
22913
  method: "retrieve",
21661
22914
  summary: "Get job",
21662
- 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.",
22915
+ 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.",
21663
22916
  http: "GET",
21664
22917
  path: "/media/v1/libraries/{library_id}/jobs/{job_id}",
21665
22918
  streaming: "no",
@@ -21673,7 +22926,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21673
22926
  {
21674
22927
  name: "job_id",
21675
22928
  sdkName: "job_id",
21676
- description: "Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library."
22929
+ description: "Job identifier returned by batch creation, generation creation or job listing; resolved within this library."
21677
22930
  }
21678
22931
  ],
21679
22932
  query: []
@@ -21682,7 +22935,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21682
22935
  resource: "media.libraries.jobs",
21683
22936
  method: "cancel",
21684
22937
  summary: "Cancel job",
21685
- 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.",
22938
+ 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.",
21686
22939
  http: "POST",
21687
22940
  path: "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
21688
22941
  streaming: "no",
@@ -21701,68 +22954,6 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21701
22954
  ],
21702
22955
  query: []
21703
22956
  },
21704
- {
21705
- resource: "media.libraries.jobs.outputs.save",
21706
- method: "create",
21707
- summary: "Save generation output",
21708
- 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.",
21709
- http: "POST",
21710
- path: "/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save",
21711
- streaming: "no",
21712
- pagination: false,
21713
- pathParams: [
21714
- {
21715
- name: "library_id",
21716
- sdkName: "library_id",
21717
- description: "Library ID returned by creation."
21718
- },
21719
- {
21720
- name: "job_id",
21721
- sdkName: "job_id",
21722
- description: "Job identifier returned by batch or generation creation; the job is resolved within the specified library."
21723
- },
21724
- {
21725
- name: "index",
21726
- sdkName: "index",
21727
- description: "Zero-based position of the candidate in the Job outputs array."
21728
- }
21729
- ],
21730
- query: [],
21731
- body: {
21732
- required: false,
21733
- fields: [
21734
- {
21735
- name: "public_id",
21736
- type: "string",
21737
- required: false,
21738
- description: "Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent."
21739
- },
21740
- {
21741
- name: "asset_folder",
21742
- type: "string",
21743
- required: false,
21744
- 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."
21745
- },
21746
- {
21747
- name: "tags",
21748
- type: "array",
21749
- itemType: "string",
21750
- required: false,
21751
- description: "Tags to apply to the saved asset."
21752
- },
21753
- {
21754
- name: "understanding",
21755
- type: "string",
21756
- enum: [
21757
- "auto",
21758
- "skip"
21759
- ],
21760
- required: false,
21761
- description: "Understanding behavior for the saved asset; defaults to auto."
21762
- }
21763
- ]
21764
- }
21765
- },
21766
22957
  {
21767
22958
  resource: "media.libraries.purge",
21768
22959
  method: "create",
@@ -21835,7 +23026,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21835
23026
  name: "top_k",
21836
23027
  type: "integer",
21837
23028
  required: false,
21838
- description: "Maximum search hits, from 1 to 50; defaults to 20."
23029
+ 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."
21839
23030
  },
21840
23031
  {
21841
23032
  name: "mode",
@@ -21846,6 +23037,25 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21846
23037
  ],
21847
23038
  required: false,
21848
23039
  description: "Ranking mode: hybrid combines semantic and keyword matches; semantic uses vector similarity only. Defaults to hybrid."
23040
+ },
23041
+ {
23042
+ name: "material_type",
23043
+ type: "string",
23044
+ enum: [
23045
+ "image",
23046
+ "video",
23047
+ "audio",
23048
+ "voice",
23049
+ "sticker",
23050
+ "font",
23051
+ "text_style",
23052
+ "text_template",
23053
+ "animation_preset",
23054
+ "lut",
23055
+ "transition_map"
23056
+ ],
23057
+ required: false,
23058
+ 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."
21849
23059
  }
21850
23060
  ]
21851
23061
  }
@@ -21958,7 +23168,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21958
23168
  name: "top_k",
21959
23169
  type: "integer",
21960
23170
  required: false,
21961
- description: "Maximum search hits, from 1 to 50; defaults to 20."
23171
+ 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."
21962
23172
  },
21963
23173
  {
21964
23174
  name: "mode",
@@ -21969,6 +23179,25 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
21969
23179
  ],
21970
23180
  required: false,
21971
23181
  description: "Ranking mode: hybrid combines semantic and keyword matches; semantic uses vector similarity only. Defaults to hybrid."
23182
+ },
23183
+ {
23184
+ name: "material_type",
23185
+ type: "string",
23186
+ enum: [
23187
+ "image",
23188
+ "video",
23189
+ "audio",
23190
+ "voice",
23191
+ "sticker",
23192
+ "font",
23193
+ "text_style",
23194
+ "text_template",
23195
+ "animation_preset",
23196
+ "lut",
23197
+ "transition_map"
23198
+ ],
23199
+ required: false,
23200
+ 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."
21972
23201
  }
21973
23202
  ]
21974
23203
  }
@@ -22081,6 +23310,152 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
22081
23310
  ],
22082
23311
  query: []
22083
23312
  },
23313
+ {
23314
+ resource: "media.videos",
23315
+ method: "generate",
23316
+ summary: "Generate video",
23317
+ 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}.",
23318
+ http: "POST",
23319
+ path: "/media/v1/libraries/{library_id}/videos/generations",
23320
+ streaming: "no",
23321
+ pagination: false,
23322
+ pathParams: [
23323
+ {
23324
+ name: "library_id",
23325
+ sdkName: "library_id",
23326
+ description: "Library ID returned by creation."
23327
+ }
23328
+ ],
23329
+ query: [],
23330
+ body: {
23331
+ required: true,
23332
+ fields: [
23333
+ {
23334
+ name: "prompt",
23335
+ type: "string",
23336
+ required: true,
23337
+ description: "Text prompt describing the video to generate; Router forwards it to the video model unchanged."
23338
+ },
23339
+ {
23340
+ name: "negative_prompt",
23341
+ type: "string",
23342
+ required: false,
23343
+ description: "What the video must not contain. Models without a negative-prompt control ignore it."
23344
+ },
23345
+ {
23346
+ name: "mode",
23347
+ type: "string",
23348
+ enum: [
23349
+ "text",
23350
+ "image",
23351
+ "first_last",
23352
+ "reference"
23353
+ ],
23354
+ required: true,
23355
+ 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."
23356
+ },
23357
+ {
23358
+ name: "first_frame",
23359
+ type: "string",
23360
+ required: false,
23361
+ description: "Asset identifier returned by upload or asset listing; distinct from public_id and content hashes."
23362
+ },
23363
+ {
23364
+ name: "last_frame",
23365
+ type: "string",
23366
+ required: false,
23367
+ description: "Asset identifier returned by upload or asset listing; distinct from public_id and content hashes."
23368
+ },
23369
+ {
23370
+ name: "references",
23371
+ type: "array",
23372
+ itemType: "object",
23373
+ required: false,
23374
+ 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."
23375
+ },
23376
+ {
23377
+ name: "duration_seconds",
23378
+ type: "integer",
23379
+ required: false,
23380
+ description: "Requested video length in seconds. Router validates it against the chosen model’s supported durations and rejects an unsupported value with INVALID_PARAMS."
23381
+ },
23382
+ {
23383
+ name: "resolution",
23384
+ type: "string",
23385
+ enum: [
23386
+ "480p",
23387
+ "720p",
23388
+ "1080p",
23389
+ "4k"
23390
+ ],
23391
+ required: false,
23392
+ description: "Requested output resolution; Router validates it against the chosen model."
23393
+ },
23394
+ {
23395
+ name: "aspect_ratio",
23396
+ type: "string",
23397
+ required: false,
23398
+ 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."
23399
+ },
23400
+ {
23401
+ name: "generate_audio",
23402
+ type: "boolean",
23403
+ required: false,
23404
+ description: "True to generate an audio track with the video. Whether audio is produced depends on the model."
23405
+ },
23406
+ {
23407
+ name: "output",
23408
+ type: "string",
23409
+ enum: [
23410
+ "mp4",
23411
+ "gif"
23412
+ ],
23413
+ required: false,
23414
+ 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."
23415
+ },
23416
+ {
23417
+ name: "n",
23418
+ type: "integer",
23419
+ required: false,
23420
+ description: "Videos to generate in one job, from 1 to 4; defaults to 1. Each produced video is charged separately."
23421
+ },
23422
+ {
23423
+ name: "seed",
23424
+ type: "integer",
23425
+ required: false,
23426
+ description: "Seed for reproducible sampling; omit it to let the model choose one."
23427
+ },
23428
+ {
23429
+ name: "model",
23430
+ type: "string",
23431
+ required: false,
23432
+ description: "Router model with video-generation capability; omit it to use the library default video model."
23433
+ },
23434
+ {
23435
+ name: "asset_folder",
23436
+ type: "string",
23437
+ required: false,
23438
+ 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."
23439
+ },
23440
+ {
23441
+ name: "understanding",
23442
+ type: "string",
23443
+ enum: [
23444
+ "auto",
23445
+ "skip"
23446
+ ],
23447
+ required: false,
23448
+ description: "Understanding behavior for the produced asset; defaults to auto."
23449
+ },
23450
+ {
23451
+ name: "idempotency_key",
23452
+ type: "string",
23453
+ required: false,
23454
+ description: "Stable key so a retried request reuses the same job instead of generating and charging again; reusing it with different content is rejected."
23455
+ }
23456
+ ]
23457
+ }
23458
+ },
22084
23459
  {
22085
23460
  resource: "meta.docs",
22086
23461
  method: "search",
@@ -27713,7 +29088,7 @@ for more details.`
27713
29088
  required: true,
27714
29089
  fields: [
27715
29090
  {
27716
- name: "updateMask",
29091
+ name: "update_mask",
27717
29092
  type: "array",
27718
29093
  itemType: "string",
27719
29094
  required: true,
@@ -27956,7 +29331,7 @@ for more details.`
27956
29331
  required: true,
27957
29332
  fields: [
27958
29333
  {
27959
- name: "updateMask",
29334
+ name: "update_mask",
27960
29335
  type: "array",
27961
29336
  itemType: "string",
27962
29337
  required: true,
@@ -28267,7 +29642,7 @@ for more details.`
28267
29642
  required: true,
28268
29643
  fields: [
28269
29644
  {
28270
- name: "updateMask",
29645
+ name: "update_mask",
28271
29646
  type: "array",
28272
29647
  itemType: "string",
28273
29648
  required: true,
@@ -28428,7 +29803,7 @@ for more details.`
28428
29803
  resource: "studio.themes",
28429
29804
  method: "list",
28430
29805
  summary: "List the rendition themes of a platform",
28431
- 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.",
29806
+ 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.",
28432
29807
  http: "GET",
28433
29808
  path: "/studio/v1/themes",
28434
29809
  streaming: "no",
@@ -28577,7 +29952,7 @@ for more details.`
28577
29952
  required: true,
28578
29953
  fields: [
28579
29954
  {
28580
- name: "updateMask",
29955
+ name: "update_mask",
28581
29956
  type: "array",
28582
29957
  itemType: "string",
28583
29958
  required: true,
@@ -28717,7 +30092,7 @@ for more details.`
28717
30092
  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."
28718
30093
  },
28719
30094
  {
28720
- name: "requestId",
30095
+ name: "request_id",
28721
30096
  type: "string",
28722
30097
  required: false,
28723
30098
  description: "Caller-chosen key that makes this create safe to repeat: the same value answers the first result instead of creating a second work."
@@ -28790,14 +30165,14 @@ for more details.`
28790
30165
  required: true,
28791
30166
  fields: [
28792
30167
  {
28793
- name: "updateMask",
30168
+ name: "update_mask",
28794
30169
  type: "array",
28795
30170
  itemType: "string",
28796
30171
  required: true,
28797
30172
  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."
28798
30173
  },
28799
30174
  {
28800
- name: "expectedRevision",
30175
+ name: "expected_revision",
28801
30176
  type: "integer",
28802
30177
  required: false,
28803
30178
  description: "Work revision the caller read; when the work moved past it the write is refused with REVISION_CONFLICT and nothing changes."
@@ -28869,7 +30244,7 @@ for more details.`
28869
30244
  required: true,
28870
30245
  fields: [
28871
30246
  {
28872
- name: "expectedRevision",
30247
+ name: "expected_revision",
28873
30248
  type: "integer",
28874
30249
  required: false,
28875
30250
  description: "Brief revision the caller read; a mismatch is refused with REVISION_CONFLICT rather than merged."
@@ -28888,21 +30263,21 @@ for more details.`
28888
30263
  description: "Source files to keep with the brief, added to the ones already attached."
28889
30264
  },
28890
30265
  {
28891
- name: "addPoints",
30266
+ name: "add_points",
28892
30267
  type: "array",
28893
- itemType: "string",
30268
+ itemType: "object",
28894
30269
  required: false,
28895
- description: "New requirement points to split out of the brief; each receives the next free key in order."
30270
+ 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)."
28896
30271
  },
28897
30272
  {
28898
- name: "editPoints",
30273
+ name: "edit_points",
28899
30274
  type: "array",
28900
30275
  itemType: "object",
28901
30276
  required: false,
28902
30277
  description: "Existing points to reword, each naming the key it keeps and the text that replaces it."
28903
30278
  },
28904
30279
  {
28905
- name: "removePoints",
30280
+ name: "remove_points",
28906
30281
  type: "array",
28907
30282
  itemType: "string",
28908
30283
  required: false,
@@ -28985,7 +30360,7 @@ for more details.`
28985
30360
  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."
28986
30361
  },
28987
30362
  {
28988
- name: "derivedFrom",
30363
+ name: "derived_from",
28989
30364
  type: "object",
28990
30365
  required: false,
28991
30366
  description: "What the new draft should be derived from, so the service can record the source revision for later staleness checks."
@@ -28997,7 +30372,7 @@ for more details.`
28997
30372
  description: "Initial values for the genre properties, keyed by property key; a value the genre does not define is refused rather than stored."
28998
30373
  },
28999
30374
  {
29000
- name: "requestId",
30375
+ name: "request_id",
29001
30376
  type: "string",
29002
30377
  required: false,
29003
30378
  description: "Caller-chosen key that makes this create safe to repeat: the same value answers the first draft instead of creating a second one."
@@ -29066,14 +30441,14 @@ for more details.`
29066
30441
  required: true,
29067
30442
  fields: [
29068
30443
  {
29069
- name: "updateMask",
30444
+ name: "update_mask",
29070
30445
  type: "array",
29071
30446
  itemType: "string",
29072
30447
  required: true,
29073
30448
  description: "Field paths this call changes, such as title, key or props.topics; a field left out keeps its value."
29074
30449
  },
29075
30450
  {
29076
- name: "expectedRevision",
30451
+ name: "expected_revision",
29077
30452
  type: "integer",
29078
30453
  required: false,
29079
30454
  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."
@@ -29475,7 +30850,7 @@ for more details.`
29475
30850
  required: false,
29476
30851
  fields: [
29477
30852
  {
29478
- name: "expectedRevision",
30853
+ name: "expected_revision",
29479
30854
  type: "integer",
29480
30855
  required: false,
29481
30856
  description: "Draft revision the caller read; a mismatch is refused rather than confirming a draft that changed under the caller."
@@ -37398,462 +38773,767 @@ var canvasRetrieveCollection = (options) => (options.client ?? client).get({
37398
38773
  });
37399
38774
  var canvasUpdateCollection = (options) => (options.client ?? client).patch({
37400
38775
  security: [{
37401
- key: "BearerAuth",
38776
+ key: "BearerAuth",
38777
+ scheme: "bearer",
38778
+ type: "http"
38779
+ }, {
38780
+ key: "ApiKeyAuth",
38781
+ name: "X-API-Key",
38782
+ type: "apiKey"
38783
+ }],
38784
+ url: "/canvas/v1/collections/{collection_id}",
38785
+ ...options,
38786
+ headers: {
38787
+ "Content-Type": "application/json",
38788
+ ...options.headers
38789
+ }
38790
+ });
38791
+ var canvasListVersions = (options) => (options.client ?? client).get({
38792
+ security: [{
38793
+ key: "BearerAuth",
38794
+ scheme: "bearer",
38795
+ type: "http"
38796
+ }, {
38797
+ key: "ApiKeyAuth",
38798
+ name: "X-API-Key",
38799
+ type: "apiKey"
38800
+ }],
38801
+ url: "/canvas/v1/canvases/{canvas_id}/versions",
38802
+ ...options
38803
+ });
38804
+ var canvasRestoreCanvas = (options) => (options.client ?? client).post({
38805
+ security: [{
38806
+ key: "BearerAuth",
38807
+ scheme: "bearer",
38808
+ type: "http"
38809
+ }, {
38810
+ key: "ApiKeyAuth",
38811
+ name: "X-API-Key",
38812
+ type: "apiKey"
38813
+ }],
38814
+ url: "/canvas/v1/canvases/{canvas_id}:restore",
38815
+ ...options,
38816
+ headers: {
38817
+ "Content-Type": "application/json",
38818
+ ...options.headers
38819
+ }
38820
+ });
38821
+ var crmObjectsList = (options) => (options.client ?? client).get({
38822
+ querySerializer: { parameters: {
38823
+ associations: { array: { explode: false } },
38824
+ properties: { array: { explode: false } },
38825
+ propertiesWithHistory: { array: { explode: false } }
38826
+ } },
38827
+ security: [{
38828
+ key: "crm-bearerAuth",
38829
+ scheme: "bearer",
38830
+ type: "http"
38831
+ }],
38832
+ url: "/crm/v1/objects/{objectType}",
38833
+ ...options
38834
+ });
38835
+ var crmObjectsCreate = (options) => (options.client ?? client).post({
38836
+ security: [{
38837
+ key: "crm-bearerAuth",
38838
+ scheme: "bearer",
38839
+ type: "http"
38840
+ }],
38841
+ url: "/crm/v1/objects/{objectType}",
38842
+ ...options,
38843
+ headers: {
38844
+ "Content-Type": "application/json",
38845
+ ...options.headers
38846
+ }
38847
+ });
38848
+ var crmObjectsArchive = (options) => (options.client ?? client).delete({
38849
+ security: [{
38850
+ key: "crm-bearerAuth",
38851
+ scheme: "bearer",
38852
+ type: "http"
38853
+ }],
38854
+ url: "/crm/v1/objects/{objectType}/{objectId}",
38855
+ ...options
38856
+ });
38857
+ var crmObjectsRetrieve = (options) => (options.client ?? client).get({
38858
+ querySerializer: { parameters: {
38859
+ associations: { array: { explode: false } },
38860
+ properties: { array: { explode: false } },
38861
+ propertiesWithHistory: { array: { explode: false } }
38862
+ } },
38863
+ security: [{
38864
+ key: "crm-bearerAuth",
38865
+ scheme: "bearer",
38866
+ type: "http"
38867
+ }],
38868
+ url: "/crm/v1/objects/{objectType}/{objectId}",
38869
+ ...options
38870
+ });
38871
+ var crmObjectsUpdate = (options) => (options.client ?? client).patch({
38872
+ security: [{
38873
+ key: "crm-bearerAuth",
38874
+ scheme: "bearer",
38875
+ type: "http"
38876
+ }],
38877
+ url: "/crm/v1/objects/{objectType}/{objectId}",
38878
+ ...options,
38879
+ headers: {
38880
+ "Content-Type": "application/json",
38881
+ ...options.headers
38882
+ }
38883
+ });
38884
+ var crmObjectsSearch = (options) => (options.client ?? client).post({
38885
+ security: [{
38886
+ key: "crm-bearerAuth",
38887
+ scheme: "bearer",
38888
+ type: "http"
38889
+ }],
38890
+ url: "/crm/v1/objects/{objectType}/search",
38891
+ ...options,
38892
+ headers: {
38893
+ "Content-Type": "application/json",
38894
+ ...options.headers
38895
+ }
38896
+ });
38897
+ var crmObjectsBatchRead = (options) => (options.client ?? client).post({
38898
+ security: [{
38899
+ key: "crm-bearerAuth",
38900
+ scheme: "bearer",
38901
+ type: "http"
38902
+ }],
38903
+ url: "/crm/v1/objects/{objectType}/batch/read",
38904
+ ...options,
38905
+ headers: {
38906
+ "Content-Type": "application/json",
38907
+ ...options.headers
38908
+ }
38909
+ });
38910
+ var crmObjectsBatchCreate = (options) => (options.client ?? client).post({
38911
+ security: [{
38912
+ key: "crm-bearerAuth",
38913
+ scheme: "bearer",
38914
+ type: "http"
38915
+ }],
38916
+ url: "/crm/v1/objects/{objectType}/batch/create",
38917
+ ...options,
38918
+ headers: {
38919
+ "Content-Type": "application/json",
38920
+ ...options.headers
38921
+ }
38922
+ });
38923
+ var crmObjectsBatchUpdate = (options) => (options.client ?? client).post({
38924
+ security: [{
38925
+ key: "crm-bearerAuth",
38926
+ scheme: "bearer",
38927
+ type: "http"
38928
+ }],
38929
+ url: "/crm/v1/objects/{objectType}/batch/update",
38930
+ ...options,
38931
+ headers: {
38932
+ "Content-Type": "application/json",
38933
+ ...options.headers
38934
+ }
38935
+ });
38936
+ var crmObjectsBatchUpsert = (options) => (options.client ?? client).post({
38937
+ security: [{
38938
+ key: "crm-bearerAuth",
38939
+ scheme: "bearer",
38940
+ type: "http"
38941
+ }],
38942
+ url: "/crm/v1/objects/{objectType}/batch/upsert",
38943
+ ...options,
38944
+ headers: {
38945
+ "Content-Type": "application/json",
38946
+ ...options.headers
38947
+ }
38948
+ });
38949
+ var crmObjectsBatchArchive = (options) => (options.client ?? client).post({
38950
+ security: [{
38951
+ key: "crm-bearerAuth",
38952
+ scheme: "bearer",
38953
+ type: "http"
38954
+ }],
38955
+ url: "/crm/v1/objects/{objectType}/batch/archive",
38956
+ ...options,
38957
+ headers: {
38958
+ "Content-Type": "application/json",
38959
+ ...options.headers
38960
+ }
38961
+ });
38962
+ var crmPropertiesList = (options) => (options.client ?? client).get({
38963
+ security: [{
38964
+ key: "crm-bearerAuth",
38965
+ scheme: "bearer",
38966
+ type: "http"
38967
+ }],
38968
+ url: "/crm/v1/properties/{objectType}",
38969
+ ...options
38970
+ });
38971
+ var crmPropertiesCreate = (options) => (options.client ?? client).post({
38972
+ security: [{
38973
+ key: "crm-bearerAuth",
38974
+ scheme: "bearer",
38975
+ type: "http"
38976
+ }],
38977
+ url: "/crm/v1/properties/{objectType}",
38978
+ ...options,
38979
+ headers: {
38980
+ "Content-Type": "application/json",
38981
+ ...options.headers
38982
+ }
38983
+ });
38984
+ var crmPropertiesArchive = (options) => (options.client ?? client).delete({
38985
+ security: [{
38986
+ key: "crm-bearerAuth",
38987
+ scheme: "bearer",
38988
+ type: "http"
38989
+ }],
38990
+ url: "/crm/v1/properties/{objectType}/{propertyName}",
38991
+ ...options
38992
+ });
38993
+ var crmPropertiesRetrieve = (options) => (options.client ?? client).get({
38994
+ security: [{
38995
+ key: "crm-bearerAuth",
38996
+ scheme: "bearer",
38997
+ type: "http"
38998
+ }],
38999
+ url: "/crm/v1/properties/{objectType}/{propertyName}",
39000
+ ...options
39001
+ });
39002
+ var crmPropertiesUpdate = (options) => (options.client ?? client).patch({
39003
+ security: [{
39004
+ key: "crm-bearerAuth",
37402
39005
  scheme: "bearer",
37403
39006
  type: "http"
37404
- }, {
37405
- key: "ApiKeyAuth",
37406
- name: "X-API-Key",
37407
- type: "apiKey"
37408
39007
  }],
37409
- url: "/canvas/v1/collections/{collection_id}",
39008
+ url: "/crm/v1/properties/{objectType}/{propertyName}",
37410
39009
  ...options,
37411
39010
  headers: {
37412
39011
  "Content-Type": "application/json",
37413
39012
  ...options.headers
37414
39013
  }
37415
39014
  });
37416
- var canvasListVersions = (options) => (options.client ?? client).get({
39015
+ var crmPropertiesGroupsList = (options) => (options.client ?? client).get({
37417
39016
  security: [{
37418
- key: "BearerAuth",
39017
+ key: "crm-bearerAuth",
37419
39018
  scheme: "bearer",
37420
39019
  type: "http"
37421
- }, {
37422
- key: "ApiKeyAuth",
37423
- name: "X-API-Key",
37424
- type: "apiKey"
37425
39020
  }],
37426
- url: "/canvas/v1/canvases/{canvas_id}/versions",
39021
+ url: "/crm/v1/properties/{objectType}/groups",
37427
39022
  ...options
37428
39023
  });
37429
- var canvasRestoreCanvas = (options) => (options.client ?? client).post({
39024
+ var crmPropertiesGroupsCreate = (options) => (options.client ?? client).post({
37430
39025
  security: [{
37431
- key: "BearerAuth",
39026
+ key: "crm-bearerAuth",
37432
39027
  scheme: "bearer",
37433
39028
  type: "http"
37434
- }, {
37435
- key: "ApiKeyAuth",
37436
- name: "X-API-Key",
37437
- type: "apiKey"
37438
39029
  }],
37439
- url: "/canvas/v1/canvases/{canvas_id}:restore",
39030
+ url: "/crm/v1/properties/{objectType}/groups",
37440
39031
  ...options,
37441
39032
  headers: {
37442
39033
  "Content-Type": "application/json",
37443
39034
  ...options.headers
37444
39035
  }
37445
39036
  });
37446
- var crmObjectsList = (options) => (options.client ?? client).get({
37447
- querySerializer: { parameters: {
37448
- associations: { array: { explode: false } },
37449
- properties: { array: { explode: false } },
37450
- propertiesWithHistory: { array: { explode: false } }
37451
- } },
39037
+ var crmPipelinesList = (options) => (options.client ?? client).get({
37452
39038
  security: [{
37453
39039
  key: "crm-bearerAuth",
37454
39040
  scheme: "bearer",
37455
39041
  type: "http"
37456
39042
  }],
37457
- url: "/crm/v1/objects/{objectType}",
39043
+ url: "/crm/v1/pipelines/{objectType}",
37458
39044
  ...options
37459
39045
  });
37460
- var crmObjectsCreate = (options) => (options.client ?? client).post({
39046
+ var crmPipelinesCreate = (options) => (options.client ?? client).post({
37461
39047
  security: [{
37462
39048
  key: "crm-bearerAuth",
37463
39049
  scheme: "bearer",
37464
39050
  type: "http"
37465
39051
  }],
37466
- url: "/crm/v1/objects/{objectType}",
39052
+ url: "/crm/v1/pipelines/{objectType}",
37467
39053
  ...options,
37468
39054
  headers: {
37469
39055
  "Content-Type": "application/json",
37470
39056
  ...options.headers
37471
39057
  }
37472
39058
  });
37473
- var crmObjectsArchive = (options) => (options.client ?? client).delete({
39059
+ var crmPipelinesArchive = (options) => (options.client ?? client).delete({
37474
39060
  security: [{
37475
39061
  key: "crm-bearerAuth",
37476
39062
  scheme: "bearer",
37477
39063
  type: "http"
37478
39064
  }],
37479
- url: "/crm/v1/objects/{objectType}/{objectId}",
39065
+ url: "/crm/v1/pipelines/{objectType}/{pipelineId}",
37480
39066
  ...options
37481
39067
  });
37482
- var crmObjectsRetrieve = (options) => (options.client ?? client).get({
37483
- querySerializer: { parameters: {
37484
- associations: { array: { explode: false } },
37485
- properties: { array: { explode: false } },
37486
- propertiesWithHistory: { array: { explode: false } }
37487
- } },
39068
+ var crmPipelinesRetrieve = (options) => (options.client ?? client).get({
37488
39069
  security: [{
37489
39070
  key: "crm-bearerAuth",
37490
39071
  scheme: "bearer",
37491
39072
  type: "http"
37492
39073
  }],
37493
- url: "/crm/v1/objects/{objectType}/{objectId}",
39074
+ url: "/crm/v1/pipelines/{objectType}/{pipelineId}",
37494
39075
  ...options
37495
39076
  });
37496
- var crmObjectsUpdate = (options) => (options.client ?? client).patch({
39077
+ var crmPipelinesUpdate = (options) => (options.client ?? client).patch({
37497
39078
  security: [{
37498
39079
  key: "crm-bearerAuth",
37499
39080
  scheme: "bearer",
37500
39081
  type: "http"
37501
39082
  }],
37502
- url: "/crm/v1/objects/{objectType}/{objectId}",
39083
+ url: "/crm/v1/pipelines/{objectType}/{pipelineId}",
37503
39084
  ...options,
37504
39085
  headers: {
37505
39086
  "Content-Type": "application/json",
37506
39087
  ...options.headers
37507
39088
  }
37508
39089
  });
37509
- var crmObjectsSearch = (options) => (options.client ?? client).post({
39090
+ var crmPipelinesStagesCreate = (options) => (options.client ?? client).post({
37510
39091
  security: [{
37511
39092
  key: "crm-bearerAuth",
37512
39093
  scheme: "bearer",
37513
39094
  type: "http"
37514
39095
  }],
37515
- url: "/crm/v1/objects/{objectType}/search",
39096
+ url: "/crm/v1/pipelines/{objectType}/{pipelineId}/stages",
37516
39097
  ...options,
37517
39098
  headers: {
37518
39099
  "Content-Type": "application/json",
37519
39100
  ...options.headers
37520
39101
  }
37521
39102
  });
37522
- var crmObjectsBatchRead = (options) => (options.client ?? client).post({
39103
+ var crmPipelinesStagesArchive = (options) => (options.client ?? client).delete({
37523
39104
  security: [{
37524
39105
  key: "crm-bearerAuth",
37525
39106
  scheme: "bearer",
37526
39107
  type: "http"
37527
39108
  }],
37528
- url: "/crm/v1/objects/{objectType}/batch/read",
37529
- ...options,
37530
- headers: {
37531
- "Content-Type": "application/json",
37532
- ...options.headers
37533
- }
39109
+ url: "/crm/v1/pipelines/{objectType}/{pipelineId}/stages/{stageId}",
39110
+ ...options
37534
39111
  });
37535
- var crmObjectsBatchCreate = (options) => (options.client ?? client).post({
39112
+ var crmPipelinesStagesUpdate = (options) => (options.client ?? client).patch({
37536
39113
  security: [{
37537
39114
  key: "crm-bearerAuth",
37538
39115
  scheme: "bearer",
37539
39116
  type: "http"
37540
39117
  }],
37541
- url: "/crm/v1/objects/{objectType}/batch/create",
39118
+ url: "/crm/v1/pipelines/{objectType}/{pipelineId}/stages/{stageId}",
37542
39119
  ...options,
37543
39120
  headers: {
37544
39121
  "Content-Type": "application/json",
37545
39122
  ...options.headers
37546
39123
  }
37547
39124
  });
37548
- var crmObjectsBatchUpdate = (options) => (options.client ?? client).post({
39125
+ var crmAssociationsList = (options) => (options.client ?? client).get({
37549
39126
  security: [{
37550
39127
  key: "crm-bearerAuth",
37551
39128
  scheme: "bearer",
37552
39129
  type: "http"
37553
39130
  }],
37554
- url: "/crm/v1/objects/{objectType}/batch/update",
39131
+ url: "/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}",
39132
+ ...options
39133
+ });
39134
+ var crmAssociationsRemove = (options) => (options.client ?? client).delete({
39135
+ security: [{
39136
+ key: "crm-bearerAuth",
39137
+ scheme: "bearer",
39138
+ type: "http"
39139
+ }],
39140
+ url: "/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}",
39141
+ ...options
39142
+ });
39143
+ var crmAssociationsCreate = (options) => (options.client ?? client).put({
39144
+ security: [{
39145
+ key: "crm-bearerAuth",
39146
+ scheme: "bearer",
39147
+ type: "http"
39148
+ }],
39149
+ url: "/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}",
37555
39150
  ...options,
37556
39151
  headers: {
37557
39152
  "Content-Type": "application/json",
37558
39153
  ...options.headers
37559
39154
  }
37560
39155
  });
37561
- var crmObjectsBatchUpsert = (options) => (options.client ?? client).post({
39156
+ var crmAssociationsCreateDefault = (options) => (options.client ?? client).put({
37562
39157
  security: [{
37563
39158
  key: "crm-bearerAuth",
37564
39159
  scheme: "bearer",
37565
39160
  type: "http"
37566
39161
  }],
37567
- url: "/crm/v1/objects/{objectType}/batch/upsert",
39162
+ url: "/crm/v1/objects/{objectType}/{objectId}/associations/default/{toObjectType}/{toObjectId}",
39163
+ ...options
39164
+ });
39165
+ var crmSchemasList = (options) => (options?.client ?? client).get({
39166
+ security: [{
39167
+ key: "crm-bearerAuth",
39168
+ scheme: "bearer",
39169
+ type: "http"
39170
+ }],
39171
+ url: "/crm/v1/schemas",
39172
+ ...options
39173
+ });
39174
+ var crmSchemasCreate = (options) => (options.client ?? client).post({
39175
+ security: [{
39176
+ key: "crm-bearerAuth",
39177
+ scheme: "bearer",
39178
+ type: "http"
39179
+ }],
39180
+ url: "/crm/v1/schemas",
37568
39181
  ...options,
37569
39182
  headers: {
37570
39183
  "Content-Type": "application/json",
37571
39184
  ...options.headers
37572
39185
  }
37573
39186
  });
37574
- var crmObjectsBatchArchive = (options) => (options.client ?? client).post({
39187
+ var crmLeadsQualify = (options) => (options.client ?? client).post({
37575
39188
  security: [{
37576
39189
  key: "crm-bearerAuth",
37577
39190
  scheme: "bearer",
37578
39191
  type: "http"
37579
39192
  }],
37580
- url: "/crm/v1/objects/{objectType}/batch/archive",
39193
+ url: "/crm/v1/leads/{leadId}:qualify",
37581
39194
  ...options,
37582
39195
  headers: {
37583
39196
  "Content-Type": "application/json",
37584
39197
  ...options.headers
37585
39198
  }
37586
39199
  });
37587
- var crmPropertiesList = (options) => (options.client ?? client).get({
39200
+ var crmChangesRevert = (options) => (options.client ?? client).post({
37588
39201
  security: [{
37589
39202
  key: "crm-bearerAuth",
37590
39203
  scheme: "bearer",
37591
39204
  type: "http"
37592
39205
  }],
37593
- url: "/crm/v1/properties/{objectType}",
39206
+ url: "/crm/v1/changes/{changeSetId}:revert",
37594
39207
  ...options
37595
39208
  });
37596
- var crmPropertiesCreate = (options) => (options.client ?? client).post({
39209
+ var crmLayoutsRetrieve = (options) => (options.client ?? client).get({
37597
39210
  security: [{
37598
39211
  key: "crm-bearerAuth",
37599
39212
  scheme: "bearer",
37600
39213
  type: "http"
37601
39214
  }],
37602
- url: "/crm/v1/properties/{objectType}",
37603
- ...options,
37604
- headers: {
37605
- "Content-Type": "application/json",
37606
- ...options.headers
37607
- }
39215
+ url: "/crm/v1/layouts/{objectType}",
39216
+ ...options
37608
39217
  });
37609
- var crmPropertiesArchive = (options) => (options.client ?? client).delete({
39218
+ var crmLayoutsUpdate = (options) => (options.client ?? client).put({
37610
39219
  security: [{
37611
39220
  key: "crm-bearerAuth",
37612
39221
  scheme: "bearer",
37613
39222
  type: "http"
37614
39223
  }],
37615
- url: "/crm/v1/properties/{objectType}/{propertyName}",
37616
- ...options
39224
+ url: "/crm/v1/layouts/{objectType}",
39225
+ ...options,
39226
+ headers: {
39227
+ "Content-Type": "application/json",
39228
+ ...options.headers
39229
+ }
37617
39230
  });
37618
- var crmPropertiesRetrieve = (options) => (options.client ?? client).get({
39231
+ var cutListProjects = (options) => (options?.client ?? client).get({
37619
39232
  security: [{
37620
- key: "crm-bearerAuth",
39233
+ key: "BearerAuth",
37621
39234
  scheme: "bearer",
37622
39235
  type: "http"
39236
+ }, {
39237
+ key: "ApiKeyAuth",
39238
+ name: "X-API-Key",
39239
+ type: "apiKey"
37623
39240
  }],
37624
- url: "/crm/v1/properties/{objectType}/{propertyName}",
39241
+ url: "/cut/v1/projects",
37625
39242
  ...options
37626
39243
  });
37627
- var crmPropertiesUpdate = (options) => (options.client ?? client).patch({
39244
+ var cutCreateProject = (options) => (options.client ?? client).post({
37628
39245
  security: [{
37629
- key: "crm-bearerAuth",
39246
+ key: "BearerAuth",
37630
39247
  scheme: "bearer",
37631
39248
  type: "http"
39249
+ }, {
39250
+ key: "ApiKeyAuth",
39251
+ name: "X-API-Key",
39252
+ type: "apiKey"
37632
39253
  }],
37633
- url: "/crm/v1/properties/{objectType}/{propertyName}",
39254
+ url: "/cut/v1/projects",
37634
39255
  ...options,
37635
39256
  headers: {
37636
39257
  "Content-Type": "application/json",
37637
39258
  ...options.headers
37638
39259
  }
37639
39260
  });
37640
- var crmPropertiesGroupsList = (options) => (options.client ?? client).get({
39261
+ var cutDeleteProject = (options) => (options.client ?? client).delete({
37641
39262
  security: [{
37642
- key: "crm-bearerAuth",
39263
+ key: "BearerAuth",
37643
39264
  scheme: "bearer",
37644
39265
  type: "http"
39266
+ }, {
39267
+ key: "ApiKeyAuth",
39268
+ name: "X-API-Key",
39269
+ type: "apiKey"
37645
39270
  }],
37646
- url: "/crm/v1/properties/{objectType}/groups",
39271
+ url: "/cut/v1/projects/{project_id}",
37647
39272
  ...options
37648
39273
  });
37649
- var crmPropertiesGroupsCreate = (options) => (options.client ?? client).post({
39274
+ var cutRetrieveProject = (options) => (options.client ?? client).get({
37650
39275
  security: [{
37651
- key: "crm-bearerAuth",
39276
+ key: "BearerAuth",
37652
39277
  scheme: "bearer",
37653
39278
  type: "http"
39279
+ }, {
39280
+ key: "ApiKeyAuth",
39281
+ name: "X-API-Key",
39282
+ type: "apiKey"
37654
39283
  }],
37655
- url: "/crm/v1/properties/{objectType}/groups",
39284
+ url: "/cut/v1/projects/{project_id}",
39285
+ ...options
39286
+ });
39287
+ var cutUpdateProject = (options) => (options.client ?? client).patch({
39288
+ security: [{
39289
+ key: "BearerAuth",
39290
+ scheme: "bearer",
39291
+ type: "http"
39292
+ }, {
39293
+ key: "ApiKeyAuth",
39294
+ name: "X-API-Key",
39295
+ type: "apiKey"
39296
+ }],
39297
+ url: "/cut/v1/projects/{project_id}",
37656
39298
  ...options,
37657
39299
  headers: {
37658
39300
  "Content-Type": "application/json",
37659
39301
  ...options.headers
37660
39302
  }
37661
39303
  });
37662
- var crmPipelinesList = (options) => (options.client ?? client).get({
39304
+ var cutUndeleteProject = (options) => (options.client ?? client).post({
37663
39305
  security: [{
37664
- key: "crm-bearerAuth",
39306
+ key: "BearerAuth",
37665
39307
  scheme: "bearer",
37666
39308
  type: "http"
39309
+ }, {
39310
+ key: "ApiKeyAuth",
39311
+ name: "X-API-Key",
39312
+ type: "apiKey"
37667
39313
  }],
37668
- url: "/crm/v1/pipelines/{objectType}",
39314
+ url: "/cut/v1/projects/{project_id}:undelete",
37669
39315
  ...options
37670
39316
  });
37671
- var crmPipelinesCreate = (options) => (options.client ?? client).post({
39317
+ var cutExecute = (options) => (options.client ?? client).post({
37672
39318
  security: [{
37673
- key: "crm-bearerAuth",
39319
+ key: "BearerAuth",
37674
39320
  scheme: "bearer",
37675
39321
  type: "http"
39322
+ }, {
39323
+ key: "ApiKeyAuth",
39324
+ name: "X-API-Key",
39325
+ type: "apiKey"
37676
39326
  }],
37677
- url: "/crm/v1/pipelines/{objectType}",
39327
+ url: "/cut/v1/projects/{project_id}:execute",
37678
39328
  ...options,
37679
39329
  headers: {
37680
39330
  "Content-Type": "application/json",
37681
39331
  ...options.headers
37682
39332
  }
37683
39333
  });
37684
- var crmPipelinesArchive = (options) => (options.client ?? client).delete({
39334
+ var cutRetrieveState = (options) => (options.client ?? client).get({
37685
39335
  security: [{
37686
- key: "crm-bearerAuth",
39336
+ key: "BearerAuth",
37687
39337
  scheme: "bearer",
37688
39338
  type: "http"
39339
+ }, {
39340
+ key: "ApiKeyAuth",
39341
+ name: "X-API-Key",
39342
+ type: "apiKey"
37689
39343
  }],
37690
- url: "/crm/v1/pipelines/{objectType}/{pipelineId}",
39344
+ url: "/cut/v1/projects/{project_id}/state",
37691
39345
  ...options
37692
39346
  });
37693
- var crmPipelinesRetrieve = (options) => (options.client ?? client).get({
39347
+ var cutRetrieveTimeline = (options) => (options.client ?? client).get({
37694
39348
  security: [{
37695
- key: "crm-bearerAuth",
39349
+ key: "BearerAuth",
37696
39350
  scheme: "bearer",
37697
39351
  type: "http"
39352
+ }, {
39353
+ key: "ApiKeyAuth",
39354
+ name: "X-API-Key",
39355
+ type: "apiKey"
37698
39356
  }],
37699
- url: "/crm/v1/pipelines/{objectType}/{pipelineId}",
39357
+ url: "/cut/v1/projects/{project_id}/timeline",
37700
39358
  ...options
37701
39359
  });
37702
- var crmPipelinesUpdate = (options) => (options.client ?? client).patch({
39360
+ var cutListFrames = (options) => (options.client ?? client).get({
37703
39361
  security: [{
37704
- key: "crm-bearerAuth",
39362
+ key: "BearerAuth",
37705
39363
  scheme: "bearer",
37706
39364
  type: "http"
37707
- }],
37708
- url: "/crm/v1/pipelines/{objectType}/{pipelineId}",
37709
- ...options,
37710
- headers: {
37711
- "Content-Type": "application/json",
37712
- ...options.headers
37713
- }
39365
+ }, {
39366
+ key: "ApiKeyAuth",
39367
+ name: "X-API-Key",
39368
+ type: "apiKey"
39369
+ }],
39370
+ url: "/cut/v1/projects/{project_id}/frames",
39371
+ ...options
37714
39372
  });
37715
- var crmPipelinesStagesCreate = (options) => (options.client ?? client).post({
39373
+ var cutCreateAnalysis = (options) => (options.client ?? client).post({
37716
39374
  security: [{
37717
- key: "crm-bearerAuth",
39375
+ key: "BearerAuth",
37718
39376
  scheme: "bearer",
37719
39377
  type: "http"
39378
+ }, {
39379
+ key: "ApiKeyAuth",
39380
+ name: "X-API-Key",
39381
+ type: "apiKey"
37720
39382
  }],
37721
- url: "/crm/v1/pipelines/{objectType}/{pipelineId}/stages",
39383
+ url: "/cut/v1/projects/{project_id}/analysis",
37722
39384
  ...options,
37723
39385
  headers: {
37724
39386
  "Content-Type": "application/json",
37725
39387
  ...options.headers
37726
39388
  }
37727
39389
  });
37728
- var crmPipelinesStagesArchive = (options) => (options.client ?? client).delete({
39390
+ var cutListBindings = (options) => (options.client ?? client).get({
37729
39391
  security: [{
37730
- key: "crm-bearerAuth",
39392
+ key: "BearerAuth",
37731
39393
  scheme: "bearer",
37732
39394
  type: "http"
39395
+ }, {
39396
+ key: "ApiKeyAuth",
39397
+ name: "X-API-Key",
39398
+ type: "apiKey"
37733
39399
  }],
37734
- url: "/crm/v1/pipelines/{objectType}/{pipelineId}/stages/{stageId}",
39400
+ url: "/cut/v1/projects/{project_id}/bindings",
37735
39401
  ...options
37736
39402
  });
37737
- var crmPipelinesStagesUpdate = (options) => (options.client ?? client).patch({
39403
+ var cutCreateBinding = (options) => (options.client ?? client).post({
37738
39404
  security: [{
37739
- key: "crm-bearerAuth",
39405
+ key: "BearerAuth",
37740
39406
  scheme: "bearer",
37741
39407
  type: "http"
39408
+ }, {
39409
+ key: "ApiKeyAuth",
39410
+ name: "X-API-Key",
39411
+ type: "apiKey"
37742
39412
  }],
37743
- url: "/crm/v1/pipelines/{objectType}/{pipelineId}/stages/{stageId}",
39413
+ url: "/cut/v1/projects/{project_id}/bindings",
37744
39414
  ...options,
37745
39415
  headers: {
37746
39416
  "Content-Type": "application/json",
37747
39417
  ...options.headers
37748
39418
  }
37749
39419
  });
37750
- var crmAssociationsList = (options) => (options.client ?? client).get({
37751
- security: [{
37752
- key: "crm-bearerAuth",
37753
- scheme: "bearer",
37754
- type: "http"
37755
- }],
37756
- url: "/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}",
37757
- ...options
37758
- });
37759
- var crmAssociationsRemove = (options) => (options.client ?? client).delete({
39420
+ var cutDeleteBinding = (options) => (options.client ?? client).delete({
37760
39421
  security: [{
37761
- key: "crm-bearerAuth",
39422
+ key: "BearerAuth",
37762
39423
  scheme: "bearer",
37763
39424
  type: "http"
39425
+ }, {
39426
+ key: "ApiKeyAuth",
39427
+ name: "X-API-Key",
39428
+ type: "apiKey"
37764
39429
  }],
37765
- url: "/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}",
39430
+ url: "/cut/v1/projects/{project_id}/bindings/{name}",
37766
39431
  ...options
37767
39432
  });
37768
- var crmAssociationsCreate = (options) => (options.client ?? client).put({
39433
+ var cutImportMedia = (options) => (options.client ?? client).post({
37769
39434
  security: [{
37770
- key: "crm-bearerAuth",
39435
+ key: "BearerAuth",
37771
39436
  scheme: "bearer",
37772
39437
  type: "http"
39438
+ }, {
39439
+ key: "ApiKeyAuth",
39440
+ name: "X-API-Key",
39441
+ type: "apiKey"
37773
39442
  }],
37774
- url: "/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}",
39443
+ url: "/cut/v1/projects/{project_id}/media:import",
37775
39444
  ...options,
37776
39445
  headers: {
37777
39446
  "Content-Type": "application/json",
37778
39447
  ...options.headers
37779
39448
  }
37780
39449
  });
37781
- var crmAssociationsCreateDefault = (options) => (options.client ?? client).put({
37782
- security: [{
37783
- key: "crm-bearerAuth",
37784
- scheme: "bearer",
37785
- type: "http"
37786
- }],
37787
- url: "/crm/v1/objects/{objectType}/{objectId}/associations/default/{toObjectType}/{toObjectId}",
37788
- ...options
37789
- });
37790
- var crmSchemasList = (options) => (options?.client ?? client).get({
39450
+ var cutListExports = (options) => (options.client ?? client).get({
37791
39451
  security: [{
37792
- key: "crm-bearerAuth",
39452
+ key: "BearerAuth",
37793
39453
  scheme: "bearer",
37794
39454
  type: "http"
39455
+ }, {
39456
+ key: "ApiKeyAuth",
39457
+ name: "X-API-Key",
39458
+ type: "apiKey"
37795
39459
  }],
37796
- url: "/crm/v1/schemas",
39460
+ url: "/cut/v1/projects/{project_id}/exports",
37797
39461
  ...options
37798
39462
  });
37799
- var crmSchemasCreate = (options) => (options.client ?? client).post({
39463
+ var cutCreateExport = (options) => (options.client ?? client).post({
37800
39464
  security: [{
37801
- key: "crm-bearerAuth",
39465
+ key: "BearerAuth",
37802
39466
  scheme: "bearer",
37803
39467
  type: "http"
39468
+ }, {
39469
+ key: "ApiKeyAuth",
39470
+ name: "X-API-Key",
39471
+ type: "apiKey"
37804
39472
  }],
37805
- url: "/crm/v1/schemas",
39473
+ url: "/cut/v1/projects/{project_id}/exports",
37806
39474
  ...options,
37807
39475
  headers: {
37808
39476
  "Content-Type": "application/json",
37809
39477
  ...options.headers
37810
39478
  }
37811
39479
  });
37812
- var crmLeadsQualify = (options) => (options.client ?? client).post({
39480
+ var cutCreateRender = (options) => (options.client ?? client).post({
37813
39481
  security: [{
37814
- key: "crm-bearerAuth",
39482
+ key: "BearerAuth",
37815
39483
  scheme: "bearer",
37816
39484
  type: "http"
39485
+ }, {
39486
+ key: "ApiKeyAuth",
39487
+ name: "X-API-Key",
39488
+ type: "apiKey"
37817
39489
  }],
37818
- url: "/crm/v1/leads/{leadId}:qualify",
39490
+ url: "/cut/v1/projects/{project_id}/renders",
37819
39491
  ...options,
37820
39492
  headers: {
37821
39493
  "Content-Type": "application/json",
37822
39494
  ...options.headers
37823
39495
  }
37824
39496
  });
37825
- var crmChangesRevert = (options) => (options.client ?? client).post({
39497
+ var cutRetrieveRender = (options) => (options.client ?? client).get({
37826
39498
  security: [{
37827
- key: "crm-bearerAuth",
39499
+ key: "BearerAuth",
37828
39500
  scheme: "bearer",
37829
39501
  type: "http"
39502
+ }, {
39503
+ key: "ApiKeyAuth",
39504
+ name: "X-API-Key",
39505
+ type: "apiKey"
37830
39506
  }],
37831
- url: "/crm/v1/changes/{changeSetId}:revert",
39507
+ url: "/cut/v1/renders/{render_id}",
37832
39508
  ...options
37833
39509
  });
37834
- var crmLayoutsRetrieve = (options) => (options.client ?? client).get({
39510
+ var cutRetrieveExport = (options) => (options.client ?? client).get({
37835
39511
  security: [{
37836
- key: "crm-bearerAuth",
39512
+ key: "BearerAuth",
37837
39513
  scheme: "bearer",
37838
39514
  type: "http"
39515
+ }, {
39516
+ key: "ApiKeyAuth",
39517
+ name: "X-API-Key",
39518
+ type: "apiKey"
37839
39519
  }],
37840
- url: "/crm/v1/layouts/{objectType}",
39520
+ url: "/cut/v1/exports/{export_id}",
37841
39521
  ...options
37842
39522
  });
37843
- var crmLayoutsUpdate = (options) => (options.client ?? client).put({
39523
+ var cutCancelExport = (options) => (options.client ?? client).post({
37844
39524
  security: [{
37845
- key: "crm-bearerAuth",
39525
+ key: "BearerAuth",
37846
39526
  scheme: "bearer",
37847
39527
  type: "http"
39528
+ }, {
39529
+ key: "ApiKeyAuth",
39530
+ name: "X-API-Key",
39531
+ type: "apiKey"
37848
39532
  }],
37849
- url: "/crm/v1/layouts/{objectType}",
37850
- ...options,
37851
- headers: {
37852
- "Content-Type": "application/json",
37853
- ...options.headers
37854
- }
39533
+ url: "/cut/v1/exports/{export_id}:cancel",
39534
+ ...options
37855
39535
  });
37856
- var cutListProjects = (options) => (options?.client ?? client).get({
39536
+ var cutListVersions = (options) => (options.client ?? client).get({
37857
39537
  security: [{
37858
39538
  key: "BearerAuth",
37859
39539
  scheme: "bearer",
@@ -37863,10 +39543,10 @@ var cutListProjects = (options) => (options?.client ?? client).get({
37863
39543
  name: "X-API-Key",
37864
39544
  type: "apiKey"
37865
39545
  }],
37866
- url: "/cut/v1/projects",
39546
+ url: "/cut/v1/projects/{project_id}/versions",
37867
39547
  ...options
37868
39548
  });
37869
- var cutCreateProject = (options) => (options.client ?? client).post({
39549
+ var cutCreateVersion = (options) => (options.client ?? client).post({
37870
39550
  security: [{
37871
39551
  key: "BearerAuth",
37872
39552
  scheme: "bearer",
@@ -37876,14 +39556,14 @@ var cutCreateProject = (options) => (options.client ?? client).post({
37876
39556
  name: "X-API-Key",
37877
39557
  type: "apiKey"
37878
39558
  }],
37879
- url: "/cut/v1/projects",
39559
+ url: "/cut/v1/projects/{project_id}/versions",
37880
39560
  ...options,
37881
39561
  headers: {
37882
39562
  "Content-Type": "application/json",
37883
39563
  ...options.headers
37884
39564
  }
37885
39565
  });
37886
- var cutDeleteProject = (options) => (options.client ?? client).delete({
39566
+ var cutRestoreVersion = (options) => (options.client ?? client).post({
37887
39567
  security: [{
37888
39568
  key: "BearerAuth",
37889
39569
  scheme: "bearer",
@@ -37893,724 +39573,754 @@ var cutDeleteProject = (options) => (options.client ?? client).delete({
37893
39573
  name: "X-API-Key",
37894
39574
  type: "apiKey"
37895
39575
  }],
37896
- url: "/cut/v1/projects/{project_id}",
39576
+ url: "/cut/v1/versions/{version_id}:restore",
37897
39577
  ...options
37898
39578
  });
37899
- var cutRetrieveProject = (options) => (options.client ?? client).get({
39579
+ var databaseListDatabases = (options) => (options?.client ?? client).get({
37900
39580
  security: [{
37901
- key: "BearerAuth",
39581
+ key: "database-bearerAuth",
37902
39582
  scheme: "bearer",
37903
39583
  type: "http"
37904
- }, {
37905
- key: "ApiKeyAuth",
37906
- name: "X-API-Key",
37907
- type: "apiKey"
37908
39584
  }],
37909
- url: "/cut/v1/projects/{project_id}",
39585
+ url: "/database/v1/databases",
37910
39586
  ...options
37911
39587
  });
37912
- var cutUpdateProject = (options) => (options.client ?? client).patch({
39588
+ var databaseCreateDatabase = (options) => (options.client ?? client).post({
37913
39589
  security: [{
37914
- key: "BearerAuth",
39590
+ key: "database-bearerAuth",
37915
39591
  scheme: "bearer",
37916
39592
  type: "http"
37917
- }, {
37918
- key: "ApiKeyAuth",
37919
- name: "X-API-Key",
37920
- type: "apiKey"
37921
39593
  }],
37922
- url: "/cut/v1/projects/{project_id}",
39594
+ url: "/database/v1/databases",
37923
39595
  ...options,
37924
39596
  headers: {
37925
39597
  "Content-Type": "application/json",
37926
39598
  ...options.headers
37927
39599
  }
37928
39600
  });
37929
- var cutUndeleteProject = (options) => (options.client ?? client).post({
39601
+ var databaseDeleteDatabase = (options) => (options.client ?? client).delete({
37930
39602
  security: [{
37931
- key: "BearerAuth",
39603
+ key: "database-bearerAuth",
37932
39604
  scheme: "bearer",
37933
39605
  type: "http"
37934
- }, {
37935
- key: "ApiKeyAuth",
37936
- name: "X-API-Key",
37937
- type: "apiKey"
37938
39606
  }],
37939
- url: "/cut/v1/projects/{project_id}:undelete",
39607
+ url: "/database/v1/databases/{database_id}",
37940
39608
  ...options
37941
39609
  });
37942
- var cutExecute = (options) => (options.client ?? client).post({
39610
+ var databaseGetDatabase = (options) => (options.client ?? client).get({
37943
39611
  security: [{
37944
- key: "BearerAuth",
39612
+ key: "database-bearerAuth",
37945
39613
  scheme: "bearer",
37946
39614
  type: "http"
37947
- }, {
37948
- key: "ApiKeyAuth",
37949
- name: "X-API-Key",
37950
- type: "apiKey"
37951
39615
  }],
37952
- url: "/cut/v1/projects/{project_id}:execute",
39616
+ url: "/database/v1/databases/{database_id}",
39617
+ ...options
39618
+ });
39619
+ var databaseUpdateDatabase = (options) => (options.client ?? client).patch({
39620
+ security: [{
39621
+ key: "database-bearerAuth",
39622
+ scheme: "bearer",
39623
+ type: "http"
39624
+ }],
39625
+ url: "/database/v1/databases/{database_id}",
37953
39626
  ...options,
37954
39627
  headers: {
37955
39628
  "Content-Type": "application/json",
37956
39629
  ...options.headers
37957
39630
  }
37958
39631
  });
37959
- var cutRetrieveState = (options) => (options.client ?? client).get({
39632
+ var databaseRestoreDatabase = (options) => (options.client ?? client).post({
37960
39633
  security: [{
37961
- key: "BearerAuth",
39634
+ key: "database-bearerAuth",
37962
39635
  scheme: "bearer",
37963
39636
  type: "http"
37964
- }, {
37965
- key: "ApiKeyAuth",
37966
- name: "X-API-Key",
37967
- type: "apiKey"
37968
39637
  }],
37969
- url: "/cut/v1/projects/{project_id}/state",
39638
+ url: "/database/v1/databases/{database_id}/restore",
37970
39639
  ...options
37971
39640
  });
37972
- var cutRetrieveTimeline = (options) => (options.client ?? client).get({
39641
+ var databasePurgeDatabase = (options) => (options.client ?? client).post({
37973
39642
  security: [{
37974
- key: "BearerAuth",
39643
+ key: "database-bearerAuth",
39644
+ scheme: "bearer",
39645
+ type: "http"
39646
+ }],
39647
+ url: "/database/v1/databases/{database_id}/purge",
39648
+ ...options
39649
+ });
39650
+ var databaseListTables = (options) => (options.client ?? client).get({
39651
+ security: [{
39652
+ key: "database-bearerAuth",
39653
+ scheme: "bearer",
39654
+ type: "http"
39655
+ }],
39656
+ url: "/database/v1/databases/{database_id}/tables",
39657
+ ...options
39658
+ });
39659
+ var databaseCreateTable = (options) => (options.client ?? client).post({
39660
+ security: [{
39661
+ key: "database-bearerAuth",
39662
+ scheme: "bearer",
39663
+ type: "http"
39664
+ }],
39665
+ url: "/database/v1/databases/{database_id}/tables",
39666
+ ...options,
39667
+ headers: {
39668
+ "Content-Type": "application/json",
39669
+ ...options.headers
39670
+ }
39671
+ });
39672
+ var databaseDeleteTable = (options) => (options.client ?? client).delete({
39673
+ security: [{
39674
+ key: "database-bearerAuth",
39675
+ scheme: "bearer",
39676
+ type: "http"
39677
+ }],
39678
+ url: "/database/v1/databases/{database_id}/tables/{table}",
39679
+ ...options
39680
+ });
39681
+ var databaseGetTable = (options) => (options.client ?? client).get({
39682
+ security: [{
39683
+ key: "database-bearerAuth",
37975
39684
  scheme: "bearer",
37976
39685
  type: "http"
37977
- }, {
37978
- key: "ApiKeyAuth",
37979
- name: "X-API-Key",
37980
- type: "apiKey"
37981
39686
  }],
37982
- url: "/cut/v1/projects/{project_id}/timeline",
39687
+ url: "/database/v1/databases/{database_id}/tables/{table}",
37983
39688
  ...options
37984
39689
  });
37985
- var cutListFrames = (options) => (options.client ?? client).get({
39690
+ var databaseUpdateTable = (options) => (options.client ?? client).patch({
37986
39691
  security: [{
37987
- key: "BearerAuth",
39692
+ key: "database-bearerAuth",
37988
39693
  scheme: "bearer",
37989
39694
  type: "http"
37990
- }, {
37991
- key: "ApiKeyAuth",
37992
- name: "X-API-Key",
37993
- type: "apiKey"
37994
39695
  }],
37995
- url: "/cut/v1/projects/{project_id}/frames",
37996
- ...options
39696
+ url: "/database/v1/databases/{database_id}/tables/{table}",
39697
+ ...options,
39698
+ headers: {
39699
+ "Content-Type": "application/json",
39700
+ ...options.headers
39701
+ }
37997
39702
  });
37998
- var cutCreateAnalysis = (options) => (options.client ?? client).post({
39703
+ var databaseAddField = (options) => (options.client ?? client).post({
37999
39704
  security: [{
38000
- key: "BearerAuth",
39705
+ key: "database-bearerAuth",
38001
39706
  scheme: "bearer",
38002
39707
  type: "http"
38003
- }, {
38004
- key: "ApiKeyAuth",
38005
- name: "X-API-Key",
38006
- type: "apiKey"
38007
39708
  }],
38008
- url: "/cut/v1/projects/{project_id}/analysis",
39709
+ url: "/database/v1/databases/{database_id}/tables/{table}/fields",
38009
39710
  ...options,
38010
39711
  headers: {
38011
39712
  "Content-Type": "application/json",
38012
39713
  ...options.headers
38013
39714
  }
38014
39715
  });
38015
- var cutListBindings = (options) => (options.client ?? client).get({
39716
+ var databaseDeleteField = (options) => (options.client ?? client).delete({
38016
39717
  security: [{
38017
- key: "BearerAuth",
39718
+ key: "database-bearerAuth",
38018
39719
  scheme: "bearer",
38019
39720
  type: "http"
38020
- }, {
38021
- key: "ApiKeyAuth",
38022
- name: "X-API-Key",
38023
- type: "apiKey"
38024
39721
  }],
38025
- url: "/cut/v1/projects/{project_id}/bindings",
39722
+ url: "/database/v1/databases/{database_id}/tables/{table}/fields/{field}",
38026
39723
  ...options
38027
39724
  });
38028
- var cutCreateBinding = (options) => (options.client ?? client).post({
39725
+ var databaseUpdateField = (options) => (options.client ?? client).patch({
38029
39726
  security: [{
38030
- key: "BearerAuth",
39727
+ key: "database-bearerAuth",
38031
39728
  scheme: "bearer",
38032
39729
  type: "http"
38033
- }, {
38034
- key: "ApiKeyAuth",
38035
- name: "X-API-Key",
38036
- type: "apiKey"
38037
39730
  }],
38038
- url: "/cut/v1/projects/{project_id}/bindings",
39731
+ url: "/database/v1/databases/{database_id}/tables/{table}/fields/{field}",
38039
39732
  ...options,
38040
39733
  headers: {
38041
39734
  "Content-Type": "application/json",
38042
39735
  ...options.headers
38043
39736
  }
38044
39737
  });
38045
- var cutDeleteBinding = (options) => (options.client ?? client).delete({
39738
+ var databaseListEvents = (options) => (options.client ?? client).get({
38046
39739
  security: [{
38047
- key: "BearerAuth",
39740
+ key: "database-bearerAuth",
38048
39741
  scheme: "bearer",
38049
39742
  type: "http"
38050
- }, {
38051
- key: "ApiKeyAuth",
38052
- name: "X-API-Key",
38053
- type: "apiKey"
38054
39743
  }],
38055
- url: "/cut/v1/projects/{project_id}/bindings/{name}",
39744
+ url: "/database/v1/databases/{database_id}/events",
38056
39745
  ...options
38057
39746
  });
38058
- var cutImportMedia = (options) => (options.client ?? client).post({
39747
+ var databaseDelete = (options) => (options.client ?? client).delete({
38059
39748
  security: [{
38060
- key: "BearerAuth",
39749
+ key: "database-bearerAuth",
38061
39750
  scheme: "bearer",
38062
39751
  type: "http"
38063
- }, {
38064
- key: "ApiKeyAuth",
38065
- name: "X-API-Key",
38066
- type: "apiKey"
38067
39752
  }],
38068
- url: "/cut/v1/projects/{project_id}/media:import",
38069
- ...options,
38070
- headers: {
38071
- "Content-Type": "application/json",
38072
- ...options.headers
38073
- }
39753
+ url: "/database/v1/databases/{database_id}/rest/{table}",
39754
+ ...options
38074
39755
  });
38075
- var cutListExports = (options) => (options.client ?? client).get({
39756
+ var databaseSelect = (options) => (options.client ?? client).get({
38076
39757
  security: [{
38077
- key: "BearerAuth",
39758
+ key: "database-bearerAuth",
38078
39759
  scheme: "bearer",
38079
39760
  type: "http"
38080
- }, {
38081
- key: "ApiKeyAuth",
38082
- name: "X-API-Key",
38083
- type: "apiKey"
38084
39761
  }],
38085
- url: "/cut/v1/projects/{project_id}/exports",
39762
+ url: "/database/v1/databases/{database_id}/rest/{table}",
38086
39763
  ...options
38087
39764
  });
38088
- var cutCreateExport = (options) => (options.client ?? client).post({
39765
+ var databaseHead = (options) => (options.client ?? client).head({
38089
39766
  security: [{
38090
- key: "BearerAuth",
39767
+ key: "database-bearerAuth",
38091
39768
  scheme: "bearer",
38092
39769
  type: "http"
38093
- }, {
38094
- key: "ApiKeyAuth",
38095
- name: "X-API-Key",
38096
- type: "apiKey"
38097
39770
  }],
38098
- url: "/cut/v1/projects/{project_id}/exports",
39771
+ url: "/database/v1/databases/{database_id}/rest/{table}",
39772
+ ...options
39773
+ });
39774
+ var databaseUpdate = (options) => (options.client ?? client).patch({
39775
+ security: [{
39776
+ key: "database-bearerAuth",
39777
+ scheme: "bearer",
39778
+ type: "http"
39779
+ }],
39780
+ url: "/database/v1/databases/{database_id}/rest/{table}",
38099
39781
  ...options,
38100
39782
  headers: {
38101
39783
  "Content-Type": "application/json",
38102
39784
  ...options.headers
38103
39785
  }
38104
39786
  });
38105
- var cutCreateRender = (options) => (options.client ?? client).post({
39787
+ var databaseInsert = (options) => (options.client ?? client).post({
38106
39788
  security: [{
38107
- key: "BearerAuth",
39789
+ key: "database-bearerAuth",
38108
39790
  scheme: "bearer",
38109
39791
  type: "http"
38110
- }, {
38111
- key: "ApiKeyAuth",
38112
- name: "X-API-Key",
38113
- type: "apiKey"
38114
39792
  }],
38115
- url: "/cut/v1/projects/{project_id}/renders",
39793
+ url: "/database/v1/databases/{database_id}/rest/{table}",
38116
39794
  ...options,
38117
39795
  headers: {
38118
39796
  "Content-Type": "application/json",
38119
39797
  ...options.headers
38120
39798
  }
38121
39799
  });
38122
- var cutRetrieveRender = (options) => (options.client ?? client).get({
39800
+ var devopsTestCatalogGet = (options) => (options.client ?? client).get({
38123
39801
  security: [{
38124
- key: "BearerAuth",
39802
+ key: "devops-bearerAuth",
38125
39803
  scheme: "bearer",
38126
39804
  type: "http"
38127
- }, {
38128
- key: "ApiKeyAuth",
38129
- name: "X-API-Key",
38130
- type: "apiKey"
38131
39805
  }],
38132
- url: "/cut/v1/renders/{render_id}",
39806
+ url: "/devops/v1/projects/{project}/test-catalog",
38133
39807
  ...options
38134
39808
  });
38135
- var cutRetrieveExport = (options) => (options.client ?? client).get({
39809
+ var devopsTestSuitesList = (options) => (options.client ?? client).get({
38136
39810
  security: [{
38137
- key: "BearerAuth",
39811
+ key: "devops-bearerAuth",
38138
39812
  scheme: "bearer",
38139
39813
  type: "http"
38140
- }, {
38141
- key: "ApiKeyAuth",
38142
- name: "X-API-Key",
38143
- type: "apiKey"
38144
39814
  }],
38145
- url: "/cut/v1/exports/{export_id}",
39815
+ url: "/devops/v1/projects/{project}/test-suites",
38146
39816
  ...options
38147
39817
  });
38148
- var cutCancelExport = (options) => (options.client ?? client).post({
39818
+ var devopsTestSuitesGet = (options) => (options.client ?? client).get({
38149
39819
  security: [{
38150
- key: "BearerAuth",
39820
+ key: "devops-bearerAuth",
38151
39821
  scheme: "bearer",
38152
39822
  type: "http"
38153
- }, {
38154
- key: "ApiKeyAuth",
38155
- name: "X-API-Key",
38156
- type: "apiKey"
38157
39823
  }],
38158
- url: "/cut/v1/exports/{export_id}:cancel",
39824
+ url: "/devops/v1/test-suites/{id}",
38159
39825
  ...options
38160
39826
  });
38161
- var cutListVersions = (options) => (options.client ?? client).get({
39827
+ var devopsTestCasesList = (options) => (options.client ?? client).get({
38162
39828
  security: [{
38163
- key: "BearerAuth",
39829
+ key: "devops-bearerAuth",
38164
39830
  scheme: "bearer",
38165
39831
  type: "http"
38166
- }, {
38167
- key: "ApiKeyAuth",
38168
- name: "X-API-Key",
38169
- type: "apiKey"
38170
39832
  }],
38171
- url: "/cut/v1/projects/{project_id}/versions",
39833
+ url: "/devops/v1/projects/{project}/test-cases",
38172
39834
  ...options
38173
39835
  });
38174
- var cutCreateVersion = (options) => (options.client ?? client).post({
39836
+ var devopsTestCasesGet = (options) => (options.client ?? client).get({
38175
39837
  security: [{
38176
- key: "BearerAuth",
39838
+ key: "devops-bearerAuth",
38177
39839
  scheme: "bearer",
38178
39840
  type: "http"
38179
- }, {
38180
- key: "ApiKeyAuth",
38181
- name: "X-API-Key",
38182
- type: "apiKey"
38183
39841
  }],
38184
- url: "/cut/v1/projects/{project_id}/versions",
39842
+ url: "/devops/v1/test-cases/{id}",
39843
+ ...options
39844
+ });
39845
+ var devopsTestPlansList = (options) => (options.client ?? client).get({
39846
+ security: [{
39847
+ key: "devops-bearerAuth",
39848
+ scheme: "bearer",
39849
+ type: "http"
39850
+ }],
39851
+ url: "/devops/v1/projects/{project}/test-plans",
39852
+ ...options
39853
+ });
39854
+ var devopsTestPlansCreate = (options) => (options.client ?? client).post({
39855
+ security: [{
39856
+ key: "devops-bearerAuth",
39857
+ scheme: "bearer",
39858
+ type: "http"
39859
+ }],
39860
+ url: "/devops/v1/projects/{project}/test-plans",
38185
39861
  ...options,
38186
39862
  headers: {
38187
39863
  "Content-Type": "application/json",
38188
39864
  ...options.headers
38189
39865
  }
38190
39866
  });
38191
- var cutRestoreVersion = (options) => (options.client ?? client).post({
39867
+ var devopsTestPlansDelete = (options) => (options.client ?? client).delete({
38192
39868
  security: [{
38193
- key: "BearerAuth",
39869
+ key: "devops-bearerAuth",
38194
39870
  scheme: "bearer",
38195
39871
  type: "http"
38196
- }, {
38197
- key: "ApiKeyAuth",
38198
- name: "X-API-Key",
38199
- type: "apiKey"
38200
39872
  }],
38201
- url: "/cut/v1/versions/{version_id}:restore",
39873
+ url: "/devops/v1/test-plans/{id}",
38202
39874
  ...options
38203
39875
  });
38204
- var databaseListDatabases = (options) => (options?.client ?? client).get({
39876
+ var devopsTestPlansGet = (options) => (options.client ?? client).get({
38205
39877
  security: [{
38206
- key: "database-bearerAuth",
39878
+ key: "devops-bearerAuth",
38207
39879
  scheme: "bearer",
38208
39880
  type: "http"
38209
39881
  }],
38210
- url: "/database/v1/databases",
39882
+ url: "/devops/v1/test-plans/{id}",
38211
39883
  ...options
38212
39884
  });
38213
- var databaseCreateDatabase = (options) => (options.client ?? client).post({
39885
+ var devopsTestPlansUpdate = (options) => (options.client ?? client).patch({
38214
39886
  security: [{
38215
- key: "database-bearerAuth",
39887
+ key: "devops-bearerAuth",
38216
39888
  scheme: "bearer",
38217
39889
  type: "http"
38218
39890
  }],
38219
- url: "/database/v1/databases",
39891
+ url: "/devops/v1/test-plans/{id}",
38220
39892
  ...options,
38221
39893
  headers: {
38222
39894
  "Content-Type": "application/json",
38223
39895
  ...options.headers
38224
39896
  }
38225
39897
  });
38226
- var databaseDeleteDatabase = (options) => (options.client ?? client).delete({
39898
+ var devopsTestPlansPause = (options) => (options.client ?? client).post({
38227
39899
  security: [{
38228
- key: "database-bearerAuth",
39900
+ key: "devops-bearerAuth",
38229
39901
  scheme: "bearer",
38230
39902
  type: "http"
38231
39903
  }],
38232
- url: "/database/v1/databases/{database_id}",
39904
+ url: "/devops/v1/test-plans/{id}:pause",
39905
+ ...options,
39906
+ headers: {
39907
+ "Content-Type": "application/json",
39908
+ ...options.headers
39909
+ }
39910
+ });
39911
+ var devopsTestPlansResume = (options) => (options.client ?? client).post({
39912
+ security: [{
39913
+ key: "devops-bearerAuth",
39914
+ scheme: "bearer",
39915
+ type: "http"
39916
+ }],
39917
+ url: "/devops/v1/test-plans/{id}:resume",
38233
39918
  ...options
38234
39919
  });
38235
- var databaseGetDatabase = (options) => (options.client ?? client).get({
39920
+ var devopsTestRunsList = (options) => (options.client ?? client).get({
38236
39921
  security: [{
38237
- key: "database-bearerAuth",
39922
+ key: "devops-bearerAuth",
38238
39923
  scheme: "bearer",
38239
39924
  type: "http"
38240
39925
  }],
38241
- url: "/database/v1/databases/{database_id}",
39926
+ url: "/devops/v1/projects/{project}/test-runs",
38242
39927
  ...options
38243
39928
  });
38244
- var databaseUpdateDatabase = (options) => (options.client ?? client).patch({
39929
+ var devopsTestRunsCreate = (options) => (options.client ?? client).post({
38245
39930
  security: [{
38246
- key: "database-bearerAuth",
39931
+ key: "devops-bearerAuth",
38247
39932
  scheme: "bearer",
38248
39933
  type: "http"
38249
39934
  }],
38250
- url: "/database/v1/databases/{database_id}",
39935
+ url: "/devops/v1/projects/{project}/test-runs",
38251
39936
  ...options,
38252
39937
  headers: {
38253
39938
  "Content-Type": "application/json",
38254
39939
  ...options.headers
38255
39940
  }
38256
39941
  });
38257
- var databaseRestoreDatabase = (options) => (options.client ?? client).post({
39942
+ var devopsTestRunsGet = (options) => (options.client ?? client).get({
38258
39943
  security: [{
38259
- key: "database-bearerAuth",
39944
+ key: "devops-bearerAuth",
38260
39945
  scheme: "bearer",
38261
39946
  type: "http"
38262
39947
  }],
38263
- url: "/database/v1/databases/{database_id}/restore",
39948
+ url: "/devops/v1/test-runs/{id}",
38264
39949
  ...options
38265
39950
  });
38266
- var databasePurgeDatabase = (options) => (options.client ?? client).post({
39951
+ var devopsTestRunsCancel = (options) => (options.client ?? client).post({
38267
39952
  security: [{
38268
- key: "database-bearerAuth",
39953
+ key: "devops-bearerAuth",
39954
+ scheme: "bearer",
39955
+ type: "http"
39956
+ }],
39957
+ url: "/devops/v1/test-runs/{id}:cancel",
39958
+ ...options,
39959
+ headers: {
39960
+ "Content-Type": "application/json",
39961
+ ...options.headers
39962
+ }
39963
+ });
39964
+ var devopsTestExecutionsList = (options) => (options.client ?? client).get({
39965
+ security: [{
39966
+ key: "devops-bearerAuth",
38269
39967
  scheme: "bearer",
38270
39968
  type: "http"
38271
39969
  }],
38272
- url: "/database/v1/databases/{database_id}/purge",
39970
+ url: "/devops/v1/test-runs/{run}/executions",
38273
39971
  ...options
38274
39972
  });
38275
- var databaseListTables = (options) => (options.client ?? client).get({
39973
+ var devopsTestExecutionsGet = (options) => (options.client ?? client).get({
38276
39974
  security: [{
38277
- key: "database-bearerAuth",
39975
+ key: "devops-bearerAuth",
38278
39976
  scheme: "bearer",
38279
39977
  type: "http"
38280
39978
  }],
38281
- url: "/database/v1/databases/{database_id}/tables",
39979
+ url: "/devops/v1/test-runs/{run}/executions/{case}",
38282
39980
  ...options
38283
39981
  });
38284
- var databaseCreateTable = (options) => (options.client ?? client).post({
39982
+ var devopsTestReportsUpload = (options) => (options.client ?? client).post({
38285
39983
  security: [{
38286
- key: "database-bearerAuth",
39984
+ key: "devops-bearerAuth",
38287
39985
  scheme: "bearer",
38288
39986
  type: "http"
38289
39987
  }],
38290
- url: "/database/v1/databases/{database_id}/tables",
39988
+ url: "/devops/v1/projects/{project}/test-reports",
38291
39989
  ...options,
38292
39990
  headers: {
38293
39991
  "Content-Type": "application/json",
38294
39992
  ...options.headers
38295
39993
  }
38296
39994
  });
38297
- var databaseDeleteTable = (options) => (options.client ?? client).delete({
39995
+ var devopsProjectsList = (options) => (options?.client ?? client).get({
38298
39996
  security: [{
38299
- key: "database-bearerAuth",
39997
+ key: "devops-bearerAuth",
38300
39998
  scheme: "bearer",
38301
39999
  type: "http"
38302
40000
  }],
38303
- url: "/database/v1/databases/{database_id}/tables/{table}",
40001
+ url: "/devops/v1/projects",
38304
40002
  ...options
38305
40003
  });
38306
- var databaseGetTable = (options) => (options.client ?? client).get({
40004
+ var devopsProjectsGet = (options) => (options.client ?? client).get({
38307
40005
  security: [{
38308
- key: "database-bearerAuth",
40006
+ key: "devops-bearerAuth",
38309
40007
  scheme: "bearer",
38310
40008
  type: "http"
38311
40009
  }],
38312
- url: "/database/v1/databases/{database_id}/tables/{table}",
40010
+ url: "/devops/v1/projects/{id}",
38313
40011
  ...options
38314
40012
  });
38315
- var databaseUpdateTable = (options) => (options.client ?? client).patch({
40013
+ var devopsReleasesList = (options) => (options.client ?? client).get({
38316
40014
  security: [{
38317
- key: "database-bearerAuth",
40015
+ key: "devops-bearerAuth",
38318
40016
  scheme: "bearer",
38319
40017
  type: "http"
38320
40018
  }],
38321
- url: "/database/v1/databases/{database_id}/tables/{table}",
38322
- ...options,
38323
- headers: {
38324
- "Content-Type": "application/json",
38325
- ...options.headers
38326
- }
40019
+ url: "/devops/v1/projects/{project}/releases",
40020
+ ...options
38327
40021
  });
38328
- var databaseAddField = (options) => (options.client ?? client).post({
40022
+ var devopsReleasesCreate = (options) => (options.client ?? client).post({
38329
40023
  security: [{
38330
- key: "database-bearerAuth",
40024
+ key: "devops-bearerAuth",
38331
40025
  scheme: "bearer",
38332
40026
  type: "http"
38333
40027
  }],
38334
- url: "/database/v1/databases/{database_id}/tables/{table}/fields",
40028
+ url: "/devops/v1/projects/{project}/releases",
38335
40029
  ...options,
38336
40030
  headers: {
38337
40031
  "Content-Type": "application/json",
38338
40032
  ...options.headers
38339
40033
  }
38340
40034
  });
38341
- var databaseDeleteField = (options) => (options.client ?? client).delete({
40035
+ var devopsReleasesGet = (options) => (options.client ?? client).get({
38342
40036
  security: [{
38343
- key: "database-bearerAuth",
40037
+ key: "devops-bearerAuth",
38344
40038
  scheme: "bearer",
38345
40039
  type: "http"
38346
40040
  }],
38347
- url: "/database/v1/databases/{database_id}/tables/{table}/fields/{field}",
40041
+ url: "/devops/v1/releases/{id}",
38348
40042
  ...options
38349
40043
  });
38350
- var databaseUpdateField = (options) => (options.client ?? client).patch({
40044
+ var devopsReleasesAbandon = (options) => (options.client ?? client).post({
38351
40045
  security: [{
38352
- key: "database-bearerAuth",
40046
+ key: "devops-bearerAuth",
38353
40047
  scheme: "bearer",
38354
40048
  type: "http"
38355
40049
  }],
38356
- url: "/database/v1/databases/{database_id}/tables/{table}/fields/{field}",
40050
+ url: "/devops/v1/releases/{id}:abandon",
38357
40051
  ...options,
38358
40052
  headers: {
38359
40053
  "Content-Type": "application/json",
38360
40054
  ...options.headers
38361
40055
  }
38362
40056
  });
38363
- var databaseListEvents = (options) => (options.client ?? client).get({
38364
- security: [{
38365
- key: "database-bearerAuth",
38366
- scheme: "bearer",
38367
- type: "http"
38368
- }],
38369
- url: "/database/v1/databases/{database_id}/events",
38370
- ...options
38371
- });
38372
- var databaseDelete = (options) => (options.client ?? client).delete({
40057
+ var devopsPromotionsCreate = (options) => (options.client ?? client).post({
38373
40058
  security: [{
38374
- key: "database-bearerAuth",
40059
+ key: "devops-bearerAuth",
38375
40060
  scheme: "bearer",
38376
40061
  type: "http"
38377
40062
  }],
38378
- url: "/database/v1/databases/{database_id}/rest/{table}",
38379
- ...options
40063
+ url: "/devops/v1/promotions",
40064
+ ...options,
40065
+ headers: {
40066
+ "Content-Type": "application/json",
40067
+ ...options.headers
40068
+ }
38380
40069
  });
38381
- var databaseSelect = (options) => (options.client ?? client).get({
40070
+ var devopsPromotionsList = (options) => (options.client ?? client).get({
38382
40071
  security: [{
38383
- key: "database-bearerAuth",
40072
+ key: "devops-bearerAuth",
38384
40073
  scheme: "bearer",
38385
40074
  type: "http"
38386
40075
  }],
38387
- url: "/database/v1/databases/{database_id}/rest/{table}",
40076
+ url: "/devops/v1/projects/{project}/promotions",
38388
40077
  ...options
38389
40078
  });
38390
- var databaseHead = (options) => (options.client ?? client).head({
40079
+ var devopsPromotionsGet = (options) => (options.client ?? client).get({
38391
40080
  security: [{
38392
- key: "database-bearerAuth",
40081
+ key: "devops-bearerAuth",
38393
40082
  scheme: "bearer",
38394
40083
  type: "http"
38395
40084
  }],
38396
- url: "/database/v1/databases/{database_id}/rest/{table}",
40085
+ url: "/devops/v1/promotions/{id}",
38397
40086
  ...options
38398
40087
  });
38399
- var databaseUpdate = (options) => (options.client ?? client).patch({
40088
+ var devopsPromotionsApprove = (options) => (options.client ?? client).post({
38400
40089
  security: [{
38401
- key: "database-bearerAuth",
40090
+ key: "devops-bearerAuth",
38402
40091
  scheme: "bearer",
38403
40092
  type: "http"
38404
40093
  }],
38405
- url: "/database/v1/databases/{database_id}/rest/{table}",
40094
+ url: "/devops/v1/promotions/{id}:approve",
38406
40095
  ...options,
38407
40096
  headers: {
38408
40097
  "Content-Type": "application/json",
38409
40098
  ...options.headers
38410
40099
  }
38411
40100
  });
38412
- var databaseInsert = (options) => (options.client ?? client).post({
40101
+ var devopsPromotionsCancel = (options) => (options.client ?? client).post({
38413
40102
  security: [{
38414
- key: "database-bearerAuth",
40103
+ key: "devops-bearerAuth",
38415
40104
  scheme: "bearer",
38416
40105
  type: "http"
38417
40106
  }],
38418
- url: "/database/v1/databases/{database_id}/rest/{table}",
40107
+ url: "/devops/v1/promotions/{id}:cancel",
38419
40108
  ...options,
38420
40109
  headers: {
38421
40110
  "Content-Type": "application/json",
38422
40111
  ...options.headers
38423
40112
  }
38424
40113
  });
38425
- var devopsTestCatalogGet = (options) => (options.client ?? client).get({
40114
+ var devopsPromotionsRetry = (options) => (options.client ?? client).post({
38426
40115
  security: [{
38427
40116
  key: "devops-bearerAuth",
38428
40117
  scheme: "bearer",
38429
40118
  type: "http"
38430
40119
  }],
38431
- url: "/devops/v1/projects/{project}/test-catalog",
40120
+ url: "/devops/v1/promotions/{id}:retry",
38432
40121
  ...options
38433
40122
  });
38434
- var devopsTestSuitesList = (options) => (options.client ?? client).get({
40123
+ var devopsPromotionsConclude = (options) => (options.client ?? client).post({
38435
40124
  security: [{
38436
40125
  key: "devops-bearerAuth",
38437
40126
  scheme: "bearer",
38438
40127
  type: "http"
38439
40128
  }],
38440
- url: "/devops/v1/projects/{project}/test-suites",
40129
+ url: "/devops/v1/promotions/{id}:conclude",
40130
+ ...options,
40131
+ headers: {
40132
+ "Content-Type": "application/json",
40133
+ ...options.headers
40134
+ }
40135
+ });
40136
+ var devopsRolloutsList = (options) => (options.client ?? client).get({
40137
+ security: [{
40138
+ key: "devops-bearerAuth",
40139
+ scheme: "bearer",
40140
+ type: "http"
40141
+ }],
40142
+ url: "/devops/v1/promotions/{promotion}/rollouts",
38441
40143
  ...options
38442
40144
  });
38443
- var devopsTestSuitesGet = (options) => (options.client ?? client).get({
40145
+ var devopsRolloutsGet = (options) => (options.client ?? client).get({
38444
40146
  security: [{
38445
40147
  key: "devops-bearerAuth",
38446
40148
  scheme: "bearer",
38447
40149
  type: "http"
38448
40150
  }],
38449
- url: "/devops/v1/test-suites/{id}",
40151
+ url: "/devops/v1/rollouts/{id}",
38450
40152
  ...options
38451
40153
  });
38452
- var devopsTestCasesList = (options) => (options.client ?? client).get({
40154
+ var devopsEnvironmentsList = (options) => (options.client ?? client).get({
38453
40155
  security: [{
38454
40156
  key: "devops-bearerAuth",
38455
40157
  scheme: "bearer",
38456
40158
  type: "http"
38457
40159
  }],
38458
- url: "/devops/v1/projects/{project}/test-cases",
40160
+ url: "/devops/v1/projects/{project}/environments",
38459
40161
  ...options
38460
40162
  });
38461
- var devopsTestCasesGet = (options) => (options.client ?? client).get({
40163
+ var devopsEnvironmentsCheckpointsList = (options) => (options.client ?? client).get({
38462
40164
  security: [{
38463
40165
  key: "devops-bearerAuth",
38464
40166
  scheme: "bearer",
38465
40167
  type: "http"
38466
40168
  }],
38467
- url: "/devops/v1/test-cases/{id}",
40169
+ url: "/devops/v1/environments/{id}/checkpoints",
38468
40170
  ...options
38469
40171
  });
38470
- var devopsTestPlansList = (options) => (options.client ?? client).get({
40172
+ var devopsTargetsList = (options) => (options.client ?? client).get({
38471
40173
  security: [{
38472
40174
  key: "devops-bearerAuth",
38473
40175
  scheme: "bearer",
38474
40176
  type: "http"
38475
40177
  }],
38476
- url: "/devops/v1/projects/{project}/test-plans",
40178
+ url: "/devops/v1/projects/{project}/targets",
38477
40179
  ...options
38478
40180
  });
38479
- var devopsTestPlansCreate = (options) => (options.client ?? client).post({
40181
+ var devopsTargetsRefresh = (options) => (options.client ?? client).post({
38480
40182
  security: [{
38481
40183
  key: "devops-bearerAuth",
38482
40184
  scheme: "bearer",
38483
40185
  type: "http"
38484
40186
  }],
38485
- url: "/devops/v1/projects/{project}/test-plans",
40187
+ url: "/devops/v1/projects/{project}/targets:refresh",
38486
40188
  ...options,
38487
40189
  headers: {
38488
40190
  "Content-Type": "application/json",
38489
40191
  ...options.headers
38490
40192
  }
38491
40193
  });
38492
- var devopsTestPlansDelete = (options) => (options.client ?? client).delete({
40194
+ var devopsFlagsList = (options) => (options.client ?? client).get({
38493
40195
  security: [{
38494
40196
  key: "devops-bearerAuth",
38495
40197
  scheme: "bearer",
38496
40198
  type: "http"
38497
40199
  }],
38498
- url: "/devops/v1/test-plans/{id}",
40200
+ url: "/devops/v1/projects/{project}/flags",
38499
40201
  ...options
38500
40202
  });
38501
- var devopsTestPlansGet = (options) => (options.client ?? client).get({
40203
+ var devopsFlagsCreate = (options) => (options.client ?? client).post({
38502
40204
  security: [{
38503
40205
  key: "devops-bearerAuth",
38504
40206
  scheme: "bearer",
38505
40207
  type: "http"
38506
40208
  }],
38507
- url: "/devops/v1/test-plans/{id}",
40209
+ url: "/devops/v1/projects/{project}/flags",
40210
+ ...options,
40211
+ headers: {
40212
+ "Content-Type": "application/json",
40213
+ ...options.headers
40214
+ }
40215
+ });
40216
+ var devopsFlagsGet = (options) => (options.client ?? client).get({
40217
+ security: [{
40218
+ key: "devops-bearerAuth",
40219
+ scheme: "bearer",
40220
+ type: "http"
40221
+ }],
40222
+ url: "/devops/v1/flags/{id}",
38508
40223
  ...options
38509
40224
  });
38510
- var devopsTestPlansUpdate = (options) => (options.client ?? client).patch({
40225
+ var devopsFlagsUpdate = (options) => (options.client ?? client).patch({
38511
40226
  security: [{
38512
40227
  key: "devops-bearerAuth",
38513
40228
  scheme: "bearer",
38514
40229
  type: "http"
38515
40230
  }],
38516
- url: "/devops/v1/test-plans/{id}",
40231
+ url: "/devops/v1/flags/{id}",
38517
40232
  ...options,
38518
40233
  headers: {
38519
40234
  "Content-Type": "application/json",
38520
40235
  ...options.headers
38521
40236
  }
38522
40237
  });
38523
- var devopsTestPlansPause = (options) => (options.client ?? client).post({
40238
+ var devopsFlagsUpdateEnvironment = (options) => (options.client ?? client).patch({
38524
40239
  security: [{
38525
40240
  key: "devops-bearerAuth",
38526
40241
  scheme: "bearer",
38527
40242
  type: "http"
38528
40243
  }],
38529
- url: "/devops/v1/test-plans/{id}:pause",
40244
+ url: "/devops/v1/flags/{id}/environments/{environment}",
38530
40245
  ...options,
38531
40246
  headers: {
38532
40247
  "Content-Type": "application/json",
38533
40248
  ...options.headers
38534
40249
  }
38535
40250
  });
38536
- var devopsTestPlansResume = (options) => (options.client ?? client).post({
40251
+ var devopsFlagsConclude = (options) => (options.client ?? client).post({
38537
40252
  security: [{
38538
40253
  key: "devops-bearerAuth",
38539
40254
  scheme: "bearer",
38540
40255
  type: "http"
38541
40256
  }],
38542
- url: "/devops/v1/test-plans/{id}:resume",
38543
- ...options
40257
+ url: "/devops/v1/flags/{id}:conclude",
40258
+ ...options,
40259
+ headers: {
40260
+ "Content-Type": "application/json",
40261
+ ...options.headers
40262
+ }
38544
40263
  });
38545
- var devopsTestRunsList = (options) => (options.client ?? client).get({
40264
+ var devopsFlagsArchive = (options) => (options.client ?? client).post({
38546
40265
  security: [{
38547
40266
  key: "devops-bearerAuth",
38548
40267
  scheme: "bearer",
38549
40268
  type: "http"
38550
40269
  }],
38551
- url: "/devops/v1/projects/{project}/test-runs",
40270
+ url: "/devops/v1/flags/{id}:archive",
38552
40271
  ...options
38553
40272
  });
38554
- var devopsTestRunsCreate = (options) => (options.client ?? client).post({
40273
+ var devopsProgressiveRolloutsCreate = (options) => (options.client ?? client).post({
38555
40274
  security: [{
38556
40275
  key: "devops-bearerAuth",
38557
40276
  scheme: "bearer",
38558
40277
  type: "http"
38559
40278
  }],
38560
- url: "/devops/v1/projects/{project}/test-runs",
40279
+ url: "/devops/v1/progressive-rollouts",
38561
40280
  ...options,
38562
40281
  headers: {
38563
40282
  "Content-Type": "application/json",
38564
40283
  ...options.headers
38565
40284
  }
38566
40285
  });
38567
- var devopsTestRunsGet = (options) => (options.client ?? client).get({
40286
+ var devopsProgressiveRolloutsGet = (options) => (options.client ?? client).get({
38568
40287
  security: [{
38569
40288
  key: "devops-bearerAuth",
38570
40289
  scheme: "bearer",
38571
40290
  type: "http"
38572
40291
  }],
38573
- url: "/devops/v1/test-runs/{id}",
40292
+ url: "/devops/v1/progressive-rollouts/{id}",
38574
40293
  ...options
38575
40294
  });
38576
- var devopsTestRunsCancel = (options) => (options.client ?? client).post({
40295
+ var devopsProgressiveRolloutsPause = (options) => (options.client ?? client).post({
38577
40296
  security: [{
38578
40297
  key: "devops-bearerAuth",
38579
40298
  scheme: "bearer",
38580
40299
  type: "http"
38581
40300
  }],
38582
- url: "/devops/v1/test-runs/{id}:cancel",
40301
+ url: "/devops/v1/progressive-rollouts/{id}:pause",
38583
40302
  ...options,
38584
40303
  headers: {
38585
40304
  "Content-Type": "application/json",
38586
40305
  ...options.headers
38587
40306
  }
38588
40307
  });
38589
- var devopsTestExecutionsList = (options) => (options.client ?? client).get({
38590
- security: [{
38591
- key: "devops-bearerAuth",
38592
- scheme: "bearer",
38593
- type: "http"
38594
- }],
38595
- url: "/devops/v1/test-runs/{run}/executions",
38596
- ...options
38597
- });
38598
- var devopsTestExecutionsGet = (options) => (options.client ?? client).get({
40308
+ var devopsProgressiveRolloutsResume = (options) => (options.client ?? client).post({
38599
40309
  security: [{
38600
40310
  key: "devops-bearerAuth",
38601
40311
  scheme: "bearer",
38602
40312
  type: "http"
38603
40313
  }],
38604
- url: "/devops/v1/test-runs/{run}/executions/{case}",
40314
+ url: "/devops/v1/progressive-rollouts/{id}:resume",
38605
40315
  ...options
38606
40316
  });
38607
- var devopsTestReportsUpload = (options) => (options.client ?? client).post({
40317
+ var devopsProgressiveRolloutsRollback = (options) => (options.client ?? client).post({
38608
40318
  security: [{
38609
40319
  key: "devops-bearerAuth",
38610
40320
  scheme: "bearer",
38611
40321
  type: "http"
38612
40322
  }],
38613
- url: "/devops/v1/projects/{project}/test-reports",
40323
+ url: "/devops/v1/progressive-rollouts/{id}:rollback",
38614
40324
  ...options,
38615
40325
  headers: {
38616
40326
  "Content-Type": "application/json",
@@ -39138,68 +40848,125 @@ var mediaCreateDeliveryToken = (options) => (options.client ?? client).post({
39138
40848
  ...options.headers
39139
40849
  }
39140
40850
  });
39141
- var mediaUnderstandingFailureSummary = (options) => (options.client ?? client).get({
40851
+ var mediaGetDefaultLibrary = (options) => (options?.client ?? client).get({
39142
40852
  security: [{
39143
40853
  key: "media-BearerAuth",
39144
40854
  scheme: "bearer",
39145
40855
  type: "http"
39146
40856
  }],
39147
- url: "/media/v1/libraries/{library_id}/understandings/failure_summary",
40857
+ url: "/media/v1/libraries/default",
39148
40858
  ...options
39149
40859
  });
39150
- var mediaListUnderstandingsByLibrary = (options) => (options.client ?? client).get({
40860
+ var mediaSetDefaultLibrary = (options) => (options.client ?? client).put({
39151
40861
  security: [{
39152
40862
  key: "media-BearerAuth",
39153
40863
  scheme: "bearer",
39154
40864
  type: "http"
39155
40865
  }],
39156
- url: "/media/v1/libraries/{library_id}/understandings",
40866
+ url: "/media/v1/libraries/default",
40867
+ ...options,
40868
+ headers: {
40869
+ "Content-Type": "application/json",
40870
+ ...options.headers
40871
+ }
40872
+ });
40873
+ var mediaGetAssetLineage = (options) => (options.client ?? client).get({
40874
+ security: [{
40875
+ key: "media-BearerAuth",
40876
+ scheme: "bearer",
40877
+ type: "http"
40878
+ }],
40879
+ url: "/media/v1/libraries/{library_id}/assets/{asset_id}/lineage",
39157
40880
  ...options
39158
40881
  });
39159
- var mediaCreateGeneration = (options) => (options.client ?? client).post({
40882
+ var mediaGenerateImage = (options) => (options.client ?? client).post({
39160
40883
  security: [{
39161
40884
  key: "media-BearerAuth",
39162
40885
  scheme: "bearer",
39163
40886
  type: "http"
39164
40887
  }],
39165
- url: "/media/v1/libraries/{library_id}/generations",
40888
+ url: "/media/v1/libraries/{library_id}/images/generations",
39166
40889
  ...options,
39167
40890
  headers: {
39168
40891
  "Content-Type": "application/json",
39169
40892
  ...options.headers
39170
40893
  }
39171
40894
  });
39172
- var mediaListJobs = (options) => (options.client ?? client).get({
40895
+ var mediaGenerateVideo = (options) => (options.client ?? client).post({
39173
40896
  security: [{
39174
40897
  key: "media-BearerAuth",
39175
40898
  scheme: "bearer",
39176
40899
  type: "http"
39177
40900
  }],
39178
- url: "/media/v1/libraries/{library_id}/jobs",
39179
- ...options
40901
+ url: "/media/v1/libraries/{library_id}/videos/generations",
40902
+ ...options,
40903
+ headers: {
40904
+ "Content-Type": "application/json",
40905
+ ...options.headers
40906
+ }
39180
40907
  });
39181
- var mediaCancelJob = (options) => (options.client ?? client).post({
40908
+ var mediaEditAsset = (options) => (options.client ?? client).post({
39182
40909
  security: [{
39183
40910
  key: "media-BearerAuth",
39184
40911
  scheme: "bearer",
39185
40912
  type: "http"
39186
40913
  }],
39187
- url: "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
39188
- ...options
40914
+ url: "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
40915
+ ...options,
40916
+ headers: {
40917
+ "Content-Type": "application/json",
40918
+ ...options.headers
40919
+ }
39189
40920
  });
39190
- var mediaSaveGenerationOutput = (options) => (options.client ?? client).post({
40921
+ var mediaCreateSpeech = (options) => (options.client ?? client).post({
39191
40922
  security: [{
39192
40923
  key: "media-BearerAuth",
39193
40924
  scheme: "bearer",
39194
40925
  type: "http"
39195
40926
  }],
39196
- url: "/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save",
40927
+ url: "/media/v1/libraries/{library_id}/audio/speech",
39197
40928
  ...options,
39198
40929
  headers: {
39199
40930
  "Content-Type": "application/json",
39200
40931
  ...options.headers
39201
40932
  }
39202
40933
  });
40934
+ var mediaUnderstandingFailureSummary = (options) => (options.client ?? client).get({
40935
+ security: [{
40936
+ key: "media-BearerAuth",
40937
+ scheme: "bearer",
40938
+ type: "http"
40939
+ }],
40940
+ url: "/media/v1/libraries/{library_id}/understandings/failure_summary",
40941
+ ...options
40942
+ });
40943
+ var mediaListUnderstandingsByLibrary = (options) => (options.client ?? client).get({
40944
+ security: [{
40945
+ key: "media-BearerAuth",
40946
+ scheme: "bearer",
40947
+ type: "http"
40948
+ }],
40949
+ url: "/media/v1/libraries/{library_id}/understandings",
40950
+ ...options
40951
+ });
40952
+ var mediaListJobs = (options) => (options.client ?? client).get({
40953
+ security: [{
40954
+ key: "media-BearerAuth",
40955
+ scheme: "bearer",
40956
+ type: "http"
40957
+ }],
40958
+ url: "/media/v1/libraries/{library_id}/jobs",
40959
+ ...options
40960
+ });
40961
+ var mediaCancelJob = (options) => (options.client ?? client).post({
40962
+ security: [{
40963
+ key: "media-BearerAuth",
40964
+ scheme: "bearer",
40965
+ type: "http"
40966
+ }],
40967
+ url: "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
40968
+ ...options
40969
+ });
39203
40970
  var mediaGetGenerationCapabilities = (options) => (options?.client ?? client).get({
39204
40971
  security: [{
39205
40972
  key: "media-BearerAuth",
@@ -42625,8 +44392,49 @@ function createDatabase(transport) {
42625
44392
  }
42626
44393
  function createDevops(transport) {
42627
44394
  return {
44395
+ environments: {
44396
+ checkpoints: {
44397
+ list: bind(transport, devopsEnvironmentsCheckpointsList)
44398
+ }
44399
+ },
44400
+ flags: {
44401
+ archive: bind(transport, devopsFlagsArchive),
44402
+ conclude: bind(transport, devopsFlagsConclude),
44403
+ environments: {
44404
+ update: bind(transport, devopsFlagsUpdateEnvironment)
44405
+ },
44406
+ retrieve: bind(transport, devopsFlagsGet),
44407
+ update: bind(transport, devopsFlagsUpdate)
44408
+ },
44409
+ progressiveRollouts: {
44410
+ create: bind(transport, devopsProgressiveRolloutsCreate),
44411
+ pause: bind(transport, devopsProgressiveRolloutsPause),
44412
+ resume: bind(transport, devopsProgressiveRolloutsResume),
44413
+ retrieve: bind(transport, devopsProgressiveRolloutsGet),
44414
+ rollback: bind(transport, devopsProgressiveRolloutsRollback)
44415
+ },
42628
44416
  projects: {
44417
+ environments: {
44418
+ list: bind(transport, devopsEnvironmentsList)
44419
+ },
44420
+ flags: {
44421
+ create: bind(transport, devopsFlagsCreate),
44422
+ list: bind(transport, devopsFlagsList)
44423
+ },
44424
+ list: bind(transport, devopsProjectsList),
44425
+ promotions: {
44426
+ list: bind(transport, devopsPromotionsList)
44427
+ },
44428
+ releases: {
44429
+ create: bind(transport, devopsReleasesCreate),
44430
+ list: bind(transport, devopsReleasesList)
44431
+ },
44432
+ retrieve: bind(transport, devopsProjectsGet),
42629
44433
  retrieveTestCatalog: bind(transport, devopsTestCatalogGet),
44434
+ targets: {
44435
+ list: bind(transport, devopsTargetsList),
44436
+ refresh: bind(transport, devopsTargetsRefresh)
44437
+ },
42630
44438
  testCases: {
42631
44439
  list: bind(transport, devopsTestCasesList)
42632
44440
  },
@@ -42645,6 +44453,24 @@ function createDevops(transport) {
42645
44453
  list: bind(transport, devopsTestSuitesList)
42646
44454
  }
42647
44455
  },
44456
+ promotions: {
44457
+ approve: bind(transport, devopsPromotionsApprove),
44458
+ cancel: bind(transport, devopsPromotionsCancel),
44459
+ conclude: bind(transport, devopsPromotionsConclude),
44460
+ create: bind(transport, devopsPromotionsCreate),
44461
+ retrieve: bind(transport, devopsPromotionsGet),
44462
+ retry: bind(transport, devopsPromotionsRetry),
44463
+ rollouts: {
44464
+ list: bind(transport, devopsRolloutsList)
44465
+ }
44466
+ },
44467
+ releases: {
44468
+ abandon: bind(transport, devopsReleasesAbandon),
44469
+ retrieve: bind(transport, devopsReleasesGet)
44470
+ },
44471
+ rollouts: {
44472
+ retrieve: bind(transport, devopsRolloutsGet)
44473
+ },
42648
44474
  testCases: {
42649
44475
  retrieve: bind(transport, devopsTestCasesGet)
42650
44476
  },
@@ -42743,11 +44569,18 @@ function createKnowledge(transport) {
42743
44569
  }
42744
44570
  function createMedia(transport) {
42745
44571
  return {
44572
+ assets: {
44573
+ edit: bind(transport, mediaEditAsset),
44574
+ lineage: bind(transport, mediaGetAssetLineage)
44575
+ },
42746
44576
  generation: {
42747
44577
  capabilities: {
42748
44578
  list: bind(transport, mediaGetGenerationCapabilities)
42749
44579
  }
42750
44580
  },
44581
+ images: {
44582
+ generate: bind(transport, mediaGenerateImage)
44583
+ },
42751
44584
  libraries: {
42752
44585
  assets: {
42753
44586
  batch: bind(transport, mediaBatchAssets),
@@ -42784,17 +44617,9 @@ function createMedia(transport) {
42784
44617
  folders: {
42785
44618
  list: bind(transport, mediaListFolders)
42786
44619
  },
42787
- generations: {
42788
- create: bind(transport, mediaCreateGeneration)
42789
- },
42790
44620
  jobs: {
42791
44621
  cancel: bind(transport, mediaCancelJob),
42792
44622
  list: bindPage(transport, mediaListJobs),
42793
- outputs: {
42794
- save: {
42795
- create: bind(transport, mediaSaveGenerationOutput)
42796
- }
42797
- },
42798
44623
  retrieve: bind(transport, mediaGetJob)
42799
44624
  },
42800
44625
  list: bindPage(transport, mediaListLibraries),
@@ -42803,6 +44628,7 @@ function createMedia(transport) {
42803
44628
  },
42804
44629
  restore: bind(transport, mediaRestoreLibrary),
42805
44630
  retrieve: bind(transport, mediaGetLibrary),
44631
+ retrieveDefault: bind(transport, mediaGetDefaultLibrary),
42806
44632
  search: {
42807
44633
  create: bind(transport, mediaSearch),
42808
44634
  expression: {
@@ -42815,11 +44641,18 @@ function createMedia(transport) {
42815
44641
  create: bind(transport, mediaVisualSearch)
42816
44642
  }
42817
44643
  },
44644
+ setDefault: bind(transport, mediaSetDefaultLibrary),
42818
44645
  understandings: {
42819
44646
  list: bindPage(transport, mediaListUnderstandingsByLibrary),
42820
44647
  retrieveFailureSummary: bind(transport, mediaUnderstandingFailureSummary)
42821
44648
  },
42822
44649
  update: bind(transport, mediaUpdateLibrary)
44650
+ },
44651
+ speech: {
44652
+ create: bind(transport, mediaCreateSpeech)
44653
+ },
44654
+ videos: {
44655
+ generate: bind(transport, mediaGenerateVideo)
42823
44656
  }
42824
44657
  };
42825
44658
  }
@@ -43396,9 +45229,22 @@ function defaultReadFile(path) {
43396
45229
  return null;
43397
45230
  }
43398
45231
  }
45232
+ function credentialsEnv(env) {
45233
+ const declared = nonEmpty(env.PRAXIS_ENV);
45234
+ if (declared && /^[A-Za-z0-9_-]+$/.test(declared))
45235
+ return declared;
45236
+ const apiUrl = nonEmpty(env.PRAXIS_API_URL);
45237
+ if (apiUrl) {
45238
+ try {
45239
+ if (new URL(apiUrl).hostname.includes("-develop."))
45240
+ return "develop";
45241
+ } catch {}
45242
+ }
45243
+ return "production";
45244
+ }
43399
45245
  function credentialsPath(env) {
43400
45246
  const home = nonEmpty(env.HOME) ?? nonEmpty(env.USERPROFILE);
43401
- return home ? `${home.replace(/\/$/, "")}/.praxis/credentials` : null;
45247
+ return home ? `${home.replace(/[/\\]+$/, "")}/.praxis/cli/${credentialsEnv(env)}.json` : null;
43402
45248
  }
43403
45249
  function resolveDefaultCredentials(env = globalThis.process?.env ?? {}, readFile = defaultReadFile) {
43404
45250
  const envToken = nonEmpty(env.PRAXIS_API_TOKEN);
@@ -43411,7 +45257,7 @@ function resolveDefaultCredentials(env = globalThis.process?.env ?? {}, readFile
43411
45257
  return envUrl ? { apiUrl: envUrl } : {};
43412
45258
  try {
43413
45259
  const file = JSON.parse(text);
43414
- const token = nonEmpty(file.token);
45260
+ const token = nonEmpty(file.access_token);
43415
45261
  const apiUrl = envUrl ?? nonEmpty(file.api_url);
43416
45262
  return { ...token ? { token } : {}, ...apiUrl ? { apiUrl } : {} };
43417
45263
  } catch {
@@ -45291,6 +47137,10 @@ function loadTokens(path) {
45291
47137
  return null;
45292
47138
  }
45293
47139
  }
47140
+ function loadManagedLogin(path) {
47141
+ const stored = loadTokens(path);
47142
+ return stored?.managed === true ? stored : null;
47143
+ }
45294
47144
  function deleteTokens(path) {
45295
47145
  if (!existsSync(path))
45296
47146
  return false;
@@ -45303,6 +47153,10 @@ function createTokenStore(env, path = tokenPath(env), secret = systemSecretStore
45303
47153
  location: () => location,
45304
47154
  async load() {
45305
47155
  const file = loadTokens(path);
47156
+ if (file?.managed === true) {
47157
+ location = `file ${path}`;
47158
+ return file;
47159
+ }
45306
47160
  if (file) {
45307
47161
  await session.save(file);
45308
47162
  return file;
@@ -45321,6 +47175,8 @@ function createTokenStore(env, path = tokenPath(env), secret = systemSecretStore
45321
47175
  }
45322
47176
  },
45323
47177
  async save(tokens) {
47178
+ if (tokens.managed === true || loadManagedLogin(path))
47179
+ throw new PraxisError({ code: "MANAGED_LOGIN_READ_ONLY", message: `This machine has a managed login (${path}) that the platform renews; it is already signed in and cannot be replaced locally.` });
45324
47180
  try {
45325
47181
  await secret.set(env, JSON.stringify(tokens));
45326
47182
  } catch {
@@ -45331,6 +47187,8 @@ function createTokenStore(env, path = tokenPath(env), secret = systemSecretStore
45331
47187
  return location = "keychain";
45332
47188
  },
45333
47189
  async delete() {
47190
+ if (loadManagedLogin(path))
47191
+ throw new PraxisError({ code: "MANAGED_LOGIN_READ_ONLY", message: `This machine has a managed login (${path}) that the platform renews, so there is nothing to log out of here.` });
45334
47192
  let removed = false;
45335
47193
  try {
45336
47194
  removed = await secret.delete(env);
@@ -45510,8 +47368,15 @@ async function withLock(lockPath, run, ports = {}) {
45510
47368
  }
45511
47369
 
45512
47370
  // src/auth/credentials.ts
45513
- function credentialSource(vars) {
45514
- return vars.PRAXIS_API_KEY ? "api-key" : vars.PRAXIS_API_TOKEN ? "machine-token" : "login";
47371
+ function apiKeyVariable(env) {
47372
+ return env === "develop" ? "PRAXIS_API_KEY_DEVELOP" : "PRAXIS_API_KEY";
47373
+ }
47374
+ function credentialSource(vars, env, readManaged) {
47375
+ if (vars[apiKeyVariable(env)])
47376
+ return "api-key";
47377
+ if (vars.PRAXIS_API_TOKEN)
47378
+ return "machine-token";
47379
+ return readManaged() ? "managed-login" : "login";
45515
47380
  }
45516
47381
  async function identityRpc(config, fetchImpl, method, params, token) {
45517
47382
  const response = await fetchImpl(`${config.gatewayUrl}/rpc/practice-identity`, {
@@ -45541,8 +47406,10 @@ function jwtFetch(fetchImpl, token) {
45541
47406
  function credentials(config, vars, ports) {
45542
47407
  const path = ports.path ?? tokenPath(config.env);
45543
47408
  const store = ports.store ?? createTokenStore(config.env, path, ports.secretStore);
45544
- const source = credentialSource(vars);
45545
- const apiKey = vars.PRAXIS_API_KEY;
47409
+ const readManagedLogin = ports.readManagedLogin ?? (() => loadManagedLogin(path));
47410
+ const source = credentialSource(vars, config.env, () => readManagedLogin() !== null);
47411
+ const keyVariable = apiKeyVariable(config.env);
47412
+ const apiKey = vars[keyVariable];
45546
47413
  const machineToken = source === "machine-token" ? vars.PRAXIS_API_TOKEN : undefined;
45547
47414
  const remember = ports.remember ?? (() => {});
45548
47415
  if (apiKey)
@@ -45554,10 +47421,20 @@ function credentials(config, vars, ports) {
45554
47421
  let pending;
45555
47422
  const requireLogin = () => {
45556
47423
  if (apiKey)
45557
- throw new UsageError("The API Key determines the organization; listing or switching login organizations is unavailable.", "Unset PRAXIS_API_KEY and run `praxis login`, then retry the org command.");
47424
+ throw new UsageError("The API Key determines the organization; listing or switching login organizations is unavailable.", `Unset ${keyVariable} and run \`praxis login\`, then retry the org command.`);
45558
47425
  if (machineToken)
45559
47426
  throw new UsageError("The machine token determines the organization; listing or switching login organizations is unavailable.", "Unset PRAXIS_API_TOKEN and run `praxis login`, then retry the org command.");
47427
+ if (source === "managed-login")
47428
+ throw new UsageError("The managed login determines the organization; listing or switching login organizations is unavailable.", "Run `praxis login` on your own computer, then retry the org command.");
45560
47429
  };
47430
+ function managedCredential(first) {
47431
+ const stale = (stored) => stored.expires_at - REFRESH_SKEW_MS <= ports.now();
47432
+ const current = stale(first) ? readManagedLogin() ?? first : first;
47433
+ if (stale(current))
47434
+ throw new PraxisError({ code: "MANAGED_LOGIN_EXPIRED", message: "Managed login expired; the platform renews it — retry in a minute, or run praxis login" });
47435
+ remember(current.access_token);
47436
+ return { source: "managed-login", storedIn: `file ${path}`, token: current.access_token, expiresAt: current.expires_at, ...current.organization_id ? { organizationId: current.organization_id } : {} };
47437
+ }
45561
47438
  async function exchange(organizationId) {
45562
47439
  const stored = await store.load();
45563
47440
  if (stored) {
@@ -45578,7 +47455,7 @@ function credentials(config, vars, ports) {
45578
47455
  async function get(org) {
45579
47456
  if (apiKey) {
45580
47457
  if (org)
45581
- throw new UsageError("--org cannot override an API Key organization", "Remove --org or unset PRAXIS_API_KEY and run `praxis login`.");
47458
+ throw new UsageError("--org cannot override an API Key organization", `Remove --org or unset ${keyVariable} and run \`praxis login\`.`);
45582
47459
  return { source: "api-key", token: apiKey };
45583
47460
  }
45584
47461
  if (machineToken) {
@@ -45586,6 +47463,12 @@ function credentials(config, vars, ports) {
45586
47463
  throw new UsageError("--org cannot override a machine token organization", "Remove --org or unset PRAXIS_API_TOKEN and run `praxis login`.");
45587
47464
  return { source: "machine-token", token: machineToken };
45588
47465
  }
47466
+ const managed = readManagedLogin();
47467
+ if (managed) {
47468
+ if (org)
47469
+ throw new UsageError("--org cannot override a managed login organization", "Remove --org; the managed login and its organization come from the platform.");
47470
+ return managedCredential(managed);
47471
+ }
45589
47472
  const stored = await store.load();
45590
47473
  const selected = org ?? stored?.organization_id;
45591
47474
  const opaqueFresh = stored !== null && stored.expires_at - 30000 > ports.now();
@@ -45661,13 +47544,13 @@ function skillDocument(commands) {
45661
47544
  "## General rules",
45662
47545
  "",
45663
47546
  "- Select the environment only with `PRAXIS_ENV`; there is no `--env` option. The dev package defaults to develop.",
45664
- "- Authenticate with `PRAXIS_API_KEY`, `PRAXIS_API_TOKEN` (a machine token, sent in the Authorization header; computers have it set) or `praxis login`, in that order. Login saves the session even when an environment credential takes precedence; unset the named variable in its warning to use the saved login. API keys and machine tokens determine the organization; login sessions can use `--org <organization_id>`. `PRAXIS_API_URL` overrides the API base and must be an https deepraxis.com URL.",
47547
+ "- Authenticate with the API key of the environment (`PRAXIS_API_KEY` for production, `PRAXIS_API_KEY_DEVELOP` for develop; a key only works in the environment that issued it), `PRAXIS_API_TOKEN` (a machine token, sent in the Authorization header) or the stored login, in that order. On a computer the platform manages you are already signed in: it writes the login file (`~/.praxis/cli/<env>.json`, marked `managed`) that the CLI and the SDK read, and it renews that file before the token expires — never run `praxis login` there. On your own computer `praxis login` writes the same file through a browser device code. Login saves the session even when an environment credential takes precedence; unset the named variable in its warning to use the saved login. API keys, machine tokens and managed logins determine the organization; a personal login session can use `--org <organization_id>`. `PRAXIS_API_URL` overrides the API base and must be an https deepraxis.com URL.",
45665
47548
  "- AI mode is enabled automatically in supported agent environments. Use `--format agent` to select it explicitly.",
45666
47549
  "- Use `--json` for the complete JSON response without presentation truncation. Successful JSON output goes to stdout; errors go to stderr.",
45667
47550
  "- Supply bodies with `--data JSON`, `--data @file.json`, or `--data -` for stdin. Scalar field options override matching JSON fields. Structured fields require `--data`. Multipart binary fields accept local file paths (or @paths), with repeatable flags for arrays. A binary field named data uses `--data <path>` instead of JSON.",
45668
47551
  "- Deletion requires `--yes` in AI mode. Confirm the intended resource before using it.",
45669
47552
  "- Use `--limit N` to limit a server page for SDK-paginated commands. Other lists apply it only to displayed rows; `--param-limit` still sends the API parameter when available. `--all` follows supported pagination and cannot be combined with `--limit`.",
45670
- "- Error JSON has an `error` object: `code` identifies the failure, `message` describes it, `hint` suggests recovery, `env` identifies the environment, `command` identifies the command, `status` is the HTTP status, and `request_id` correlates diagnostics. Authentication failures also include `credential_source` (api-key, machine-token, or login); follow the source-specific hint. Unavailable fields are null. Exit codes: 0 success, 1 runtime/API error, 2 usage error.",
47553
+ "- Error JSON has an `error` object: `code` identifies the failure, `message` describes it, `hint` suggests recovery, `env` identifies the environment, `command` identifies the command, `status` is the HTTP status, and `request_id` correlates diagnostics. Authentication failures also include `credential_source` (api-key, machine-token, managed-login, or login); follow the source-specific hint. Unavailable fields are null. Exit codes: 0 success, 1 runtime/API error, 2 usage error.",
45671
47554
  "- Append `--help` to a command for its optional parameters. Required scalar body options below can also be supplied as fields in `--data`.",
45672
47555
  "- Two layers: top-level commands (`login`, `org`, `skill`, …) are workflows and session commands; every API operation is under `praxis api <domain> …`. `praxis api <METHOD> <path>` sends a raw request (the method is uppercase).",
45673
47556
  "",
@@ -45834,7 +47717,7 @@ Enter code: ${code.user_code}` });
45834
47717
  const location = await (ports.store ?? createTokenStore(config.env, path)).save(toStored(flow.tokens, ports.now()));
45835
47718
  if (location !== "keychain")
45836
47719
  ports.emit({ kind: "message", channel: "stderr", text: "stored in a file (no system keychain available)" });
45837
- const shadowedBy = ports.source === "api-key" ? "PRAXIS_API_KEY" : ports.source === "machine-token" ? "PRAXIS_API_TOKEN" : undefined;
47720
+ const shadowedBy = ports.source === "api-key" ? apiKeyVariable(config.env) : ports.source === "machine-token" ? "PRAXIS_API_TOKEN" : undefined;
45838
47721
  ports.emit({ kind: "message", text: `Logged in (${config.env}).` });
45839
47722
  if (shadowedBy)
45840
47723
  ports.emit({ kind: "message", channel: "stderr", text: `Note: ${shadowedBy} is set and takes precedence over this login. Unset it (unset ${shadowedBy}) to use the login.` });
@@ -45851,7 +47734,7 @@ async function whoami(auth, env, org) {
45851
47734
  source: credential.source,
45852
47735
  ...credential.storedIn ? { "stored in": credential.storedIn } : {},
45853
47736
  expires_at: credential.expiresAt ? new Date(credential.expiresAt).toISOString() : null,
45854
- ...credential.source === "api-key" ? { note: "The API key determines the organization." } : credential.source === "machine-token" ? { note: "The machine token determines the organization." } : {}
47737
+ ...credential.source === "api-key" ? { note: "The API key determines the organization." } : credential.source === "machine-token" ? { note: "The machine token determines the organization." } : credential.source === "managed-login" ? { note: "The managed login determines the organization; the platform renews it." } : {}
45855
47738
  };
45856
47739
  }
45857
47740
 
@@ -46807,7 +48690,8 @@ var WORKSPACE_PASSES = Symbol("deploy-core.workspace-passes");
46807
48690
  async function readWorkspacesOnce(facts, options) {
46808
48691
  const tree = new Set(facts.tree);
46809
48692
  const index = await workspaceIndexOf(facts, options);
46810
- return await mapBounded(index.packages, READ_CONCURRENCY, async (entry) => {
48693
+ const limit = options.readConcurrency !== undefined && options.readConcurrency >= 1 ? Math.floor(options.readConcurrency) : READ_CONCURRENCY;
48694
+ return await mapBounded(index.packages, limit, async (entry) => {
46811
48695
  const manifest = manifestPathIn(entry.dir, tree);
46812
48696
  const [manifestText, configText] = await Promise.all([
46813
48697
  facts.read(entry.packageJson),
@@ -48924,14 +50808,17 @@ var humanize = (code) => {
48924
50808
  const words = code.toLowerCase().split("_").filter(Boolean).join(" ");
48925
50809
  return words.charAt(0).toUpperCase() + words.slice(1);
48926
50810
  };
48927
- function authHint(source) {
50811
+ function authHint(source, env) {
50812
+ const keyVariable = apiKeyVariable(env);
48928
50813
  switch (source) {
48929
50814
  case "api-key":
48930
- return "The API key from PRAXIS_API_KEY was rejected; check or replace it, or unset it to use `praxis login`.";
50815
+ return `The ${env} API key from ${keyVariable} was rejected; check or replace it, or unset it to use \`praxis login\`.`;
48931
50816
  case "machine-token":
48932
50817
  return "The machine token from PRAXIS_API_TOKEN was rejected (it may have expired); unset it to use `praxis login`, or refresh it.";
50818
+ case "managed-login":
50819
+ return "The managed login the platform wrote was rejected or has expired; the platform renews it — retry in a minute. Run `praxis login` on your own computer to use a personal login instead.";
48933
50820
  case "login":
48934
- return "Run `praxis login` or set PRAXIS_API_KEY.";
50821
+ return `Run \`praxis login\` or set ${keyVariable}.`;
48935
50822
  }
48936
50823
  }
48937
50824
  function errorInput(error, ctx) {
@@ -48953,7 +50840,7 @@ function errorInput(error, ctx) {
48953
50840
  message = `${humanize(code)}${message ? `: ${message}` : ""}`;
48954
50841
  const status = sdk?.status, request_id = sdk?.requestId;
48955
50842
  message = serverText(problem?.detail) ?? serverText(problem?.title) ?? message;
48956
- const authFailure = status === 401 || ["NOT_LOGGED_IN", "UNAUTHENTICATED", "TOKEN_REVOKED", "LOGIN_FAILED"].includes(code);
50843
+ const authFailure = status === 401 || ["NOT_LOGGED_IN", "UNAUTHENTICATED", "TOKEN_REVOKED", "LOGIN_FAILED", "MANAGED_LOGIN_EXPIRED"].includes(code);
48957
50844
  const source = ctx.credentialSource ?? "login";
48958
50845
  let hint2 = genericHint;
48959
50846
  if (error instanceof UsageError)
@@ -48961,7 +50848,7 @@ function errorInput(error, ctx) {
48961
50848
  else if (serverText(problem?.hint))
48962
50849
  hint2 = serverText(problem?.hint);
48963
50850
  else if (authFailure)
48964
- hint2 = authHint(source);
50851
+ hint2 = authHint(source, ctx.env === "develop" ? "develop" : "production");
48965
50852
  else if (status === 404)
48966
50853
  hint2 = ctx.listCommand ? `Check the id; list existing ones with \`${ctx.listCommand}\`` : "Check the id.";
48967
50854
  else if (status === 403)
@@ -49000,7 +50887,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
49000
50887
  }
49001
50888
 
49002
50889
  // src/main.ts
49003
- var version = "0.2.2-dev.936276d";
50890
+ var version = "0.2.2-dev.93cc895";
49004
50891
  var commands = commandTree(operations);
49005
50892
  var manual = [...workflows.map((w) => w.words), [API_WORD]];
49006
50893
  function route(argv) {
@@ -49113,6 +51000,8 @@ async function main(argv, injected = {}) {
49113
51000
  const write = outputSession((result, context) => ports.render(redact(result, secrets), context));
49114
51001
  if (ports.env.PRAXIS_API_KEY)
49115
51002
  secrets.push(ports.env.PRAXIS_API_KEY);
51003
+ if (ports.env.PRAXIS_API_KEY_DEVELOP)
51004
+ secrets.push(ports.env.PRAXIS_API_KEY_DEVELOP);
49116
51005
  if (ports.env.PRAXIS_API_TOKEN)
49117
51006
  secrets.push(ports.env.PRAXIS_API_TOKEN);
49118
51007
  let ctx = {
@@ -49321,11 +51210,15 @@ Examples:
49321
51210
  switch (name) {
49322
51211
  case "login":
49323
51212
  if (flags["no-input"] || quiet)
49324
- throw new UsageError("login requires displaying a device code", "Remove --no-input / --quiet or set PRAXIS_API_KEY for scripts.");
51213
+ throw new UsageError("login requires displaying a device code", "Remove --no-input / --quiet, or set PRAXIS_API_KEY (production) / PRAXIS_API_KEY_DEVELOP (develop) for scripts.");
51214
+ if (auth.source === "managed-login")
51215
+ throw new UsageError("This machine has a managed login the platform renews; it is already signed in", "Use it as it is. `praxis login` is for your own computer, where no platform writes the login file.");
49325
51216
  ctx.credentialSource = "login";
49326
51217
  await login(config, path, { ...ports, source: auth.source, json: ctx.mode === "json", store: store2, fetch: wireFetch, emit, remember: (s) => secrets.push(s) });
49327
51218
  break;
49328
51219
  case "logout":
51220
+ if (auth.source === "managed-login")
51221
+ throw new UsageError("This machine has a managed login the platform renews; there is nothing to log out of", "Nothing here is a session of yours to end. `praxis logout` removes a login you made on your own computer.");
49329
51222
  emit({ kind: "message", text: await store2.delete() ? "Logged out." : "Not logged in." });
49330
51223
  break;
49331
51224
  case "whoami":