@deepraxis/sdk 0.2.0-dev.78094d7 → 0.2.0-dev.7bb8403

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.
@@ -4680,6 +4680,10 @@ export type BrowserStreamMessage = {
4680
4680
  */
4681
4681
  nextCursor: string | null;
4682
4682
  };
4683
+ /**
4684
+ * The tab in front: the newest one the browser opened or the one a client last brought to the front. null when unknown.
4685
+ */
4686
+ activePageId?: string | null;
4683
4687
  };
4684
4688
  } | {
4685
4689
  event: 'session';
@@ -4690,7 +4694,10 @@ export type BrowserStreamMessage = {
4690
4694
  } | {
4691
4695
  event: 'action';
4692
4696
  data: {
4693
- kind: 'navigate' | 'click' | 'type' | 'scroll' | 'page_opened' | 'page_closed';
4697
+ /**
4698
+ * page_activated: a client brought pageId to the front. Tab changes (page_opened, page_closed, page_activated) are never thinned out; the other kinds are sent at most four times a second.
4699
+ */
4700
+ kind: 'navigate' | 'click' | 'type' | 'scroll' | 'page_opened' | 'page_closed' | 'page_activated';
4694
4701
  pageId?: string;
4695
4702
  url?: string;
4696
4703
  x?: number;
@@ -12211,6 +12218,19 @@ export type AutomationDefinition = {
12211
12218
  */
12212
12219
  updated_at: string;
12213
12220
  };
12221
+ /**
12222
+ * The draft written on creation, in the shape a read returns: source is required and revision may be omitted.
12223
+ */
12224
+ export type AutomationDraftCreateInput = {
12225
+ /**
12226
+ * Draft source: TypeScript for scripts, YAML for workflows.
12227
+ */
12228
+ source: string;
12229
+ /**
12230
+ * A new definition has no earlier draft, so revision has no meaning here and is ignored; it lets a draft that was read be written back as is.
12231
+ */
12232
+ revision?: string;
12233
+ };
12214
12234
  export type AutomationDefinitionDetail = {
12215
12235
  draft: AutomationDraft;
12216
12236
  /**
@@ -12288,6 +12308,19 @@ export type AutomationDefinitionDetail = {
12288
12308
  */
12289
12309
  updated_at: string;
12290
12310
  };
12311
+ /**
12312
+ * The draft written on update, in the shape a read returns: revision is the concurrency token, and omitting source changes only metadata.
12313
+ */
12314
+ export type AutomationDraftUpdateInput = {
12315
+ /**
12316
+ * The new draft source; omit it to keep the draft source and change only metadata.
12317
+ */
12318
+ source?: string;
12319
+ /**
12320
+ * Concurrency token of the draft: the draft.revision a read returned, which must equal the current draft revision (a mismatch returns 412); the If-Match header is its deprecated alias.
12321
+ */
12322
+ revision?: string;
12323
+ };
12291
12324
  export type AutomationVersion = {
12292
12325
  /**
12293
12326
  * Version id, prefixed scv_ for scripts and wfv_ for workflows.
@@ -12968,7 +13001,9 @@ export type AutomationWait = {
12968
13001
  */
12969
13002
  kind: 'event' | 'timer' | 'child';
12970
13003
  /**
12971
- * Wait point state. open is still waiting; resolved was satisfied; expired passed its expires_at; cancelled was cancelled and can no longer be satisfied.
13004
+ * Deprecated, read status, which holds the same value. Wait point state. open is still waiting; resolved was satisfied; expired passed its expires_at; cancelled was cancelled and can no longer be satisfied.
13005
+ *
13006
+ * @deprecated
12972
13007
  */
12973
13008
  state: 'cancelled' | 'open' | 'resolved' | 'expired';
12974
13009
  /**
@@ -13008,6 +13043,10 @@ export type AutomationWait = {
13008
13043
  * Time the wait point was resolved (RFC 3339 UTC), or null if still open.
13009
13044
  */
13010
13045
  resolved_at: null | string;
13046
+ /**
13047
+ * Wait point status. open is still waiting; resolved was satisfied; expired passed its expires_at; cancelled was cancelled and can no longer be satisfied.
13048
+ */
13049
+ status: 'cancelled' | 'open' | 'resolved' | 'expired';
13011
13050
  };
13012
13051
  /**
13013
13052
  * Record of one call made during a script run (an action, platform API, script or workflow), ordered by seq.
@@ -13252,7 +13291,7 @@ export type AutomationRunEvent = {
13252
13291
  */
13253
13292
  id: string;
13254
13293
  /**
13255
- * Event source, of the form /automation/v1/runs/{id}.
13294
+ * Event source, of the form /automation/v1/runs/{run_id}.
13256
13295
  */
13257
13296
  source: string;
13258
13297
  /**
@@ -13282,7 +13321,7 @@ export type AutomationRunEvent = {
13282
13321
  */
13283
13322
  id: string;
13284
13323
  /**
13285
- * Event source, of the form /automation/v1/runs/{id}.
13324
+ * Event source, of the form /automation/v1/runs/{run_id}.
13286
13325
  */
13287
13326
  source: string;
13288
13327
  /**
@@ -13312,7 +13351,7 @@ export type AutomationRunEvent = {
13312
13351
  */
13313
13352
  id: string;
13314
13353
  /**
13315
- * Event source, of the form /automation/v1/runs/{id}.
13354
+ * Event source, of the form /automation/v1/runs/{run_id}.
13316
13355
  */
13317
13356
  source: string;
13318
13357
  /**
@@ -13342,7 +13381,7 @@ export type AutomationRunEvent = {
13342
13381
  */
13343
13382
  id: string;
13344
13383
  /**
13345
- * Event source, of the form /automation/v1/runs/{id}.
13384
+ * Event source, of the form /automation/v1/runs/{run_id}.
13346
13385
  */
13347
13386
  source: string;
13348
13387
  /**
@@ -13372,7 +13411,7 @@ export type AutomationRunEvent = {
13372
13411
  */
13373
13412
  id: string;
13374
13413
  /**
13375
- * Event source, of the form /automation/v1/runs/{id}.
13414
+ * Event source, of the form /automation/v1/runs/{run_id}.
13376
13415
  */
13377
13416
  source: string;
13378
13417
  /**
@@ -13469,7 +13508,7 @@ export type AutomationTrigger = {
13469
13508
  */
13470
13509
  input_mode: 'body' | 'envelope';
13471
13510
  /**
13472
- * Masked webhook address with an ellipsis replacing the secret token; it cannot be invoked. Newly created triggers use a full public URL; historical records may contain a relative /automation/v1/hooks/{id}/… path.
13511
+ * Masked webhook address with an ellipsis replacing the secret token; it cannot be invoked. Newly created triggers use a full public URL; historical records may contain a relative /automation/v1/hooks/{trigger_id}/… path.
13473
13512
  */
13474
13513
  url_hint: string;
13475
13514
  } | null;
@@ -13481,6 +13520,11 @@ export type AutomationTrigger = {
13481
13520
  * Tenant that owns the trigger, injected by the gateway; treat it as an opaque string.
13482
13521
  */
13483
13522
  owner: string;
13523
+ /**
13524
+ * Deprecated, read status, which holds the same value. Trigger state: enabled, paused or expired.
13525
+ *
13526
+ * @deprecated
13527
+ */
13484
13528
  state: AutomationTriggerState;
13485
13529
  /**
13486
13530
  * Origin of the trigger. api was created through the API and can be changed and deleted; definition was generated from the schedule in a workflow YAML and can only be paused or resumed, changes return 409 TRIGGER_MANAGED.
@@ -13533,9 +13577,13 @@ export type AutomationTrigger = {
13533
13577
  */
13534
13578
  etag: string;
13535
13579
  /**
13536
- * Returned only by GET /triggers/{id}, omitted from lists. Attributed charges over the preceding 30 days for this trigger's runs and descendants. Runs themselves are free; these are actual charges for capabilities such as models and search called during runs, attributed by call. Unrated usage is included later. Aggregation failure or timeout (1.5 seconds) returns null while details still return 200.
13580
+ * Returned only by GET /triggers/{trigger_id}, omitted from lists. Attributed charges over the preceding 30 days for this trigger's runs and descendants. Runs themselves are free; these are actual charges for capabilities such as models and search called during runs, attributed by call. Unrated usage is included later. Aggregation failure or timeout (1.5 seconds) returns null while details still return 200.
13537
13581
  */
13538
13582
  usage_30d?: AutomationAttributedUsage | null;
13583
+ /**
13584
+ * Trigger status: enabled fires on schedule or request; paused does not fire; expired is final and no longer fires.
13585
+ */
13586
+ status: AutomationTriggerState;
13539
13587
  };
13540
13588
  export type AutomationTriggerCreateResult = {
13541
13589
  /**
@@ -13589,7 +13637,7 @@ export type AutomationTriggerCreateResult = {
13589
13637
  */
13590
13638
  input_mode: 'body' | 'envelope';
13591
13639
  /**
13592
- * Masked webhook address with an ellipsis replacing the secret token; it cannot be invoked. Newly created triggers use a full public URL; historical records may contain a relative /automation/v1/hooks/{id}/… path.
13640
+ * Masked webhook address with an ellipsis replacing the secret token; it cannot be invoked. Newly created triggers use a full public URL; historical records may contain a relative /automation/v1/hooks/{trigger_id}/… path.
13593
13641
  */
13594
13642
  url_hint: string;
13595
13643
  } | null;
@@ -13601,6 +13649,11 @@ export type AutomationTriggerCreateResult = {
13601
13649
  * Tenant that owns the trigger, injected by the gateway; treat it as an opaque string.
13602
13650
  */
13603
13651
  owner: string;
13652
+ /**
13653
+ * Deprecated, read status, which holds the same value. Trigger state: enabled, paused or expired.
13654
+ *
13655
+ * @deprecated
13656
+ */
13604
13657
  state: AutomationTriggerState;
13605
13658
  /**
13606
13659
  * Origin of the trigger. api was created through the API and can be changed and deleted; definition was generated from the schedule in a workflow YAML and can only be paused or resumed, changes return 409 TRIGGER_MANAGED.
@@ -13653,13 +13706,19 @@ export type AutomationTriggerCreateResult = {
13653
13706
  */
13654
13707
  etag: string;
13655
13708
  /**
13656
- * Always null in a create response; the 30-day usage is only returned by GET /triggers/{id}.
13709
+ * Always null in a create response; the 30-day usage is only returned by GET /triggers/{trigger_id}.
13657
13710
  */
13658
13711
  usage_30d?: AutomationAttributedUsage | null;
13659
13712
  /**
13660
13713
  * Returned only on webhook creation or rotation.
13661
13714
  */
13662
13715
  webhook_url?: string;
13716
+ /**
13717
+ * Trigger status: enabled fires on schedule or request; paused does not fire; expired is final and no longer fires.
13718
+ *
13719
+ * @deprecated
13720
+ */
13721
+ status: AutomationTriggerState;
13663
13722
  };
13664
13723
  /**
13665
13724
  * A duration: an ISO 8601 string such as PT5M, or an object with days, hours, minutes, seconds and milliseconds. It must convert to a whole number of milliseconds between 60000 and 31622400000 (1 minute to 366 days).
@@ -20136,6 +20195,10 @@ export type DevopsPullRequest = {
20136
20195
  * The mergeability word, an open set. A GitHub project keeps GitHub's own word verbatim (clean, dirty, blocked, behind, unstable and so on), unknown when GitHub has not said. A project whose code is on our own Git gets DevOps's reading of the head against the base: clean when nothing stands in the way, behind when the head adds nothing the base lacks, dirty when both sides changed the same path since they diverged, unknown when the comparison was capped.
20137
20196
  */
20138
20197
  mergeableState: string;
20198
+ /**
20199
+ * Who this pull request's letters go to — the gate verdict, the merge, the deploy to each integration environment and an integration failure — as the description's praxis block names it with notify: agent:<id> or notify: human:<id>. Optional and never part of the gate: absent when the block names nobody or names something that is not an address. A pull request of a DevOps change that names nobody writes to the change's owner.
20200
+ */
20201
+ notify?: string;
20139
20202
  /**
20140
20203
  * The exposure the description's praxis block declares, or null when the description declares none — which is itself a failed gate check. The kind decides which other checks apply: a flag adds its key and observe window, unwired and expand-contract add a reason, expand-contract also a phase, and direct is judged by a person.
20141
20204
  */
@@ -20812,6 +20875,102 @@ export type DevopsUnitTransitionPage = {
20812
20875
  */
20813
20876
  nextPageToken: string;
20814
20877
  };
20878
+ /**
20879
+ * The tenant event types.
20880
+ */
20881
+ export type EventsEventTypePage = {
20882
+ /**
20883
+ * One entry per type and schema version.
20884
+ */
20885
+ data: Array<EventsEventType>;
20886
+ /**
20887
+ * Always null today; the list is one page.
20888
+ */
20889
+ next_cursor: string | null;
20890
+ /**
20891
+ * Always false today; the list is one page.
20892
+ */
20893
+ has_more: boolean;
20894
+ };
20895
+ /**
20896
+ * What to subscribe to. The organization and the sink come from your credential and are not fields.
20897
+ */
20898
+ export type EventsCreateEventSubscriptionInput = {
20899
+ /**
20900
+ * The tenant event types to hear about, from events.types.list; an event of any one of them can match.
20901
+ */
20902
+ types: Array<string>;
20903
+ /**
20904
+ * Conditions that must all hold for an event to match; omit or leave empty to match every event of the types.
20905
+ */
20906
+ filters?: Array<EventsEventSubscriptionFilter>;
20907
+ /**
20908
+ * The inbox address that receives the letters, agent:<id> or human:<id>. Today only the caller's own address is accepted, which is also the default.
20909
+ */
20910
+ sink?: string;
20911
+ /**
20912
+ * True (the default) ends the subscription after the first letter; false keeps it until expires_at, at most 30 letters an hour.
20913
+ */
20914
+ once?: boolean;
20915
+ /**
20916
+ * When the subscription ends, RFC 3339. Defaults to 7 days from now; at most 30 days from now.
20917
+ */
20918
+ expires_at?: string;
20919
+ };
20920
+ /**
20921
+ * One event subscription.
20922
+ */
20923
+ export type EventsEventSubscription = {
20924
+ /**
20925
+ * The subscription id, esub_...; use it to retrieve or delete it.
20926
+ */
20927
+ id: string;
20928
+ /**
20929
+ * The tenant event types it listens to.
20930
+ */
20931
+ types: Array<string>;
20932
+ /**
20933
+ * The conditions that must all hold; empty means every event of the types.
20934
+ */
20935
+ filters: Array<EventsEventSubscriptionFilter>;
20936
+ /**
20937
+ * The inbox address the letters go to, agent:<id> or human:<id>.
20938
+ */
20939
+ sink: string;
20940
+ /**
20941
+ * Whether the subscription ends after its first letter.
20942
+ */
20943
+ once: boolean;
20944
+ /**
20945
+ * When the subscription ends and stops matching, RFC 3339.
20946
+ */
20947
+ expires_at: string;
20948
+ /**
20949
+ * When the subscription was created, RFC 3339.
20950
+ */
20951
+ created_at: string;
20952
+ /**
20953
+ * The address that created it, agent:<id> or human:<id>; only that caller can see it.
20954
+ */
20955
+ created_by: string;
20956
+ };
20957
+ /**
20958
+ * Your live subscriptions.
20959
+ */
20960
+ export type EventsEventSubscriptionPage = {
20961
+ /**
20962
+ * The subscriptions, at most limit.
20963
+ */
20964
+ data: Array<EventsEventSubscription>;
20965
+ /**
20966
+ * Always null today; the list is one page.
20967
+ */
20968
+ next_cursor: string | null;
20969
+ /**
20970
+ * Always false today; the list is one page.
20971
+ */
20972
+ has_more: boolean;
20973
+ };
20815
20974
  export type KnowledgeNativeVectorStore = {
20816
20975
  /**
20817
20976
  * Resource ID.
@@ -36966,7 +37125,7 @@ export type AutomationDraft = {
36966
37125
  */
36967
37126
  source: string;
36968
37127
  /**
36969
- * Draft revision tag (ETag); send it as expected_draft_revision when publishing or as If-Match when updating the draft; a mismatch returns 412.
37128
+ * Draft revision tag (ETag); send it back unchanged as draft.revision when updating the draft or publishing, and a mismatch returns 412.
36970
37129
  */
36971
37130
  revision: string;
36972
37131
  /**
@@ -40593,6 +40752,71 @@ export type DevopsCleanupEntry = {
40593
40752
  */
40594
40753
  error: string | null;
40595
40754
  };
40755
+ /**
40756
+ * One tenant event type at one schema version.
40757
+ */
40758
+ export type EventsEventType = {
40759
+ /**
40760
+ * The event type name, for example automation.run.finished; pass it in the types of subscriptions.create.
40761
+ */
40762
+ type: string;
40763
+ /**
40764
+ * The version of this type's data schema. Within one version fields are only added; a breaking change publishes a new version, and both are listed side by side for a while.
40765
+ */
40766
+ schemaversion: number;
40767
+ /**
40768
+ * What the event means and when it is published.
40769
+ */
40770
+ description?: string;
40771
+ /**
40772
+ * JSON Schema of the event's data, the body of the letter a subscription writes.
40773
+ */
40774
+ data_schema: {
40775
+ [key: string]: unknown;
40776
+ };
40777
+ /**
40778
+ * The names a filter of this type may use, always subject and actor, plus data.<field> for each top-level field of data_schema.
40779
+ */
40780
+ filterable: Array<string>;
40781
+ };
40782
+ /**
40783
+ * An RFC 9457 problem; every non-2xx response of this face has this shape.
40784
+ */
40785
+ export type EventsEventsProblem = {
40786
+ /**
40787
+ * The HTTP status of the response.
40788
+ */
40789
+ status: number;
40790
+ /**
40791
+ * Machine-readable failure, such as INVALID_PARAMS, UNSUPPORTED_FILTER_DIALECT, SUBSCRIPTION_NOT_FOUND or PROVIDER_UNAVAILABLE.
40792
+ */
40793
+ code: string;
40794
+ /**
40795
+ * Human-readable reason; it names the offending field and what to do.
40796
+ */
40797
+ message: string;
40798
+ /**
40799
+ * True when repeating the same call can succeed, as for PROVIDER_UNAVAILABLE; false when the request itself must change.
40800
+ */
40801
+ retryable?: boolean;
40802
+ };
40803
+ /**
40804
+ * One condition on an event. Write exactly one dialect key: exact (the named attribute equals the value) or prefix (it starts with the value). The attribute is subject, actor or data.<field>.
40805
+ */
40806
+ export type EventsEventSubscriptionFilter = {
40807
+ /**
40808
+ * The attribute equals the value, for example { subject: "runs/run_1" } or { "data.status": "faulted" }.
40809
+ */
40810
+ exact?: {
40811
+ [key: string]: string;
40812
+ };
40813
+ /**
40814
+ * The attribute starts with the value, for example { subject: "runs/" }.
40815
+ */
40816
+ prefix?: {
40817
+ [key: string]: string;
40818
+ };
40819
+ };
40596
40820
  /**
40597
40821
  * Counts of files still attached to the store or batch, grouped by ingestion status.
40598
40822
  */
@@ -42126,9 +42350,13 @@ export type MediaProductListingBody = {
42126
42350
  style?: MediaWorkStyle;
42127
42351
  };
42128
42352
  /**
42129
- * Body of a general work (通用作品) in Editor.js saved-data format. Business attributes go in the work’s custom, not in a block. The work’s title is the first header block’s text, else the first paragraph’s.
42353
+ * Body of a general work (通用作品): Editor.js saved data plus one field of ours, a required title. Business attributes go in the work’s custom, not in a block.
42130
42354
  */
42131
42355
  export type MediaBlocksBody = {
42356
+ /**
42357
+ * The work’s title, 1 to 200 characters, written explicitly as in the other kinds; lists and sorting use it.
42358
+ */
42359
+ title: string;
42132
42360
  /**
42133
42361
  * Optional Editor.js save time in milliseconds, kept as sent.
42134
42362
  */
@@ -51283,7 +51511,7 @@ export type PraxisSdkSsePostModelV1Messages = {
51283
51511
  };
51284
51512
  export type PraxisSdkSseGetAgentV1SessionsSessionIdEventsStream = AgentSseEvent;
51285
51513
  export type PraxisSdkSseGetAgentV1SessionsSessionIdThreadsThreadIdStream = AgentSseEvent;
51286
- export type PraxisSdkSseGetAutomationV1RunsIdEvents = ({
51514
+ export type PraxisSdkSseGetAutomationV1RunsRunIdEvents = ({
51287
51515
  /**
51288
51516
  * SSE event name: one of ai.praxis.automation.run.status, ai.praxis.automation.run.progress, ai.praxis.automation.call.started, ai.praxis.automation.call.completed, ai.praxis.automation.task.started, ai.praxis.automation.task.completed, ai.praxis.automation.wait.created, ai.praxis.automation.wait.resolved, naming the RunEvent type carried in data.
51289
51517
  */
@@ -51316,7 +51544,7 @@ export type PraxisSdkSseGetAutomationV1RunsIdEvents = ({
51316
51544
  [key: string]: unknown;
51317
51545
  };
51318
51546
  };
51319
- export type PraxisSdkSseGetAutomationV1RunsIdLogs = ({
51547
+ export type PraxisSdkSseGetAutomationV1RunsRunIdLogs = ({
51320
51548
  /**
51321
51549
  * SSE event name: log, one log line is carried in data.
51322
51550
  */
@@ -52952,6 +53180,10 @@ export type DevopsWorkspaceStagePath = DevopsWorkspaceStage;
52952
53180
  * The unit identifier returned by the unit create answer or a unit list, such as wsu_…; not the id of the change it was opened for.
52953
53181
  */
52954
53182
  export type DevopsUnitIdPath = string;
53183
+ /**
53184
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
53185
+ */
53186
+ export type EventsSubscriptionId = string;
52955
53187
  /**
52956
53188
  * A type name from types.list, with its dots preserved — a display label is not accepted.
52957
53189
  */
@@ -70565,6 +70797,78 @@ export type BrowserRunPageActionData = {
70565
70797
  * 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
70566
70798
  */
70567
70799
  tab?: string;
70800
+ } | {
70801
+ /**
70802
+ * 动作类型,固定为 route。
70803
+ */
70804
+ type: 'route';
70805
+ /**
70806
+ * 要匹配的请求地址:glob(* 不跨 /,** 跨 /,** 匹配零段或更多路径段)或用 /…/ 包起来的正则;最多 2048 个字符,写错在注册时即返回 400 INVALID_PARAMS。
70807
+ */
70808
+ url: string;
70809
+ /**
70810
+ * 只匹配这个 HTTP 方法(不区分大小写);省略则匹配所有方法。
70811
+ */
70812
+ method?: string;
70813
+ /**
70814
+ * 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
70815
+ */
70816
+ tab?: string;
70817
+ /**
70818
+ * 命中后的处理方式,由 kind 选择:fulfill 直接返回给定响应,abort 让请求失败,delay 按原样转发但推迟给定的毫秒数。
70819
+ */
70820
+ response: {
70821
+ /**
70822
+ * 直接返回给定响应。
70823
+ */
70824
+ kind: 'fulfill';
70825
+ /**
70826
+ * 返回的 HTTP 状态码,100 到 599。
70827
+ */
70828
+ status: number;
70829
+ /**
70830
+ * 返回的响应头,名 → 值;最多 100 项。
70831
+ */
70832
+ headers?: {
70833
+ [key: string]: string;
70834
+ };
70835
+ /**
70836
+ * 返回的响应体,最多 1000000 个字符。
70837
+ */
70838
+ body?: string;
70839
+ } | {
70840
+ /**
70841
+ * 让请求失败,页面看到一次网络错误。
70842
+ */
70843
+ kind: 'abort';
70844
+ /**
70845
+ * Playwright 的错误码;省略为 failed。
70846
+ */
70847
+ error?: 'aborted' | 'accessdenied' | 'addressunreachable' | 'blockedbyclient' | 'blockedbyresponse' | 'connectionaborted' | 'connectionclosed' | 'connectionfailed' | 'connectionrefused' | 'connectionreset' | 'internetdisconnected' | 'namenotresolved' | 'timedout' | 'failed';
70848
+ } | {
70849
+ /**
70850
+ * 按原样转发请求,但推迟给定毫秒数,用来观察页面的加载态。
70851
+ */
70852
+ kind: 'delay';
70853
+ /**
70854
+ * 推迟的毫秒数,0 到 60000;超出返回 400 INVALID_PARAMS。
70855
+ */
70856
+ ms: number;
70857
+ };
70858
+ } | {
70859
+ /**
70860
+ * 动作类型,固定为 unroute。
70861
+ */
70862
+ type: 'unroute';
70863
+ /**
70864
+ * route 动作返回的规则 ID;不存在时 removed 为 false,不报错。
70865
+ */
70866
+ routeId: string;
70867
+ } | {
70868
+ /**
70869
+ * 动作类型,固定为 routes。
70870
+ */
70871
+ type: 'routes';
70568
70872
  } | {
70569
70873
  /**
70570
70874
  * 动作类型:后退、前进或刷新当前页。
@@ -70783,6 +71087,60 @@ export type BrowserRunPageActionResponses = {
70783
71087
  * 已设置的 cookie 的域。
70784
71088
  */
70785
71089
  domain: string;
71090
+ } | {
71091
+ /**
71092
+ * 动作类型,固定为 route。
71093
+ */
71094
+ type: 'route';
71095
+ /**
71096
+ * 新规则的 ID,后续 unroute 用它移除;规则的作用域是会话,会话结束时随之清除。
71097
+ */
71098
+ routeId: string;
71099
+ } | {
71100
+ /**
71101
+ * 动作类型,固定为 unroute。
71102
+ */
71103
+ type: 'unroute';
71104
+ /**
71105
+ * 请求移除的规则 ID。
71106
+ */
71107
+ routeId: string;
71108
+ /**
71109
+ * 是否真的移除了一条规则;ID 不存在时为 false。
71110
+ */
71111
+ removed: boolean;
71112
+ } | {
71113
+ /**
71114
+ * 动作类型,固定为 routes。
71115
+ */
71116
+ type: 'routes';
71117
+ /**
71118
+ * 当前会话上的规则,按注册顺序;多条都匹配时后注册的优先。
71119
+ */
71120
+ routes: Array<{
71121
+ /**
71122
+ * 规则 ID,注册时由服务端生成并返回。
71123
+ */
71124
+ routeId: string;
71125
+ /**
71126
+ * 规则匹配的地址模式。
71127
+ */
71128
+ url: string;
71129
+ /**
71130
+ * 规则限定的 HTTP 方法;不限定时省略。
71131
+ */
71132
+ method?: string;
71133
+ /**
71134
+ * 规则只作用的标签页;作用于整个会话时省略。
71135
+ */
71136
+ tab?: string;
71137
+ /**
71138
+ * 规则的处理方式:kind 为 fulfill、abort 或 delay,其余字段同注册时的 response。
71139
+ */
71140
+ response: {
71141
+ [key: string]: unknown;
71142
+ };
71143
+ }>;
70786
71144
  };
70787
71145
  };
70788
71146
  export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
@@ -79182,10 +79540,10 @@ export type ListOrganizationCostsData = {
79182
79540
  */
79183
79541
  time_zone?: string;
79184
79542
  /**
79185
- * FOCUS columns to group by (repeatable). Defaults to ServiceName. Grouping columns appear on each result only when requested; ResourceName rides with ResourceId. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).
79543
+ * Columns to group by (repeatable). Defaults to ServiceName. Grouping columns appear on each result only when requested; ResourceName rides with ResourceId. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637). SessionId, AgentId, ApiKeyId and RunId group by the usage event's own attribution: the session, agent, API key or automation run the call belongs to. A requested attribution column is on every result — null when that group's events carry none, never an omitted key.
79186
79544
  *
79187
79545
  */
79188
- group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit'>;
79546
+ group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit' | 'SessionId' | 'AgentId' | 'ApiKeyId' | 'RunId'>;
79189
79547
  /**
79190
79548
  * Opaque cursor from the previous page's next_page.
79191
79549
  */
@@ -79252,6 +79610,22 @@ export type ListOrganizationCostsResponses = {
79252
79610
  * Display name of the resource; falls back to ResourceId when no name is known.
79253
79611
  */
79254
79612
  ResourceName?: string;
79613
+ /**
79614
+ * The session the usage belongs to. Present when SessionId is grouped by; null for a call no session made.
79615
+ */
79616
+ SessionId?: string | null;
79617
+ /**
79618
+ * The agent that made the call. Present when AgentId is grouped by; null when the caller is not a session's agent.
79619
+ */
79620
+ AgentId?: string | null;
79621
+ /**
79622
+ * The API key the call was made with. Present when ApiKeyId is grouped by; null for session, run and binding callers.
79623
+ */
79624
+ ApiKeyId?: string | null;
79625
+ /**
79626
+ * The automation run the usage belongs to. Present when RunId is grouped by; null when no automation run made the call.
79627
+ */
79628
+ RunId?: string | null;
79255
79629
  /**
79256
79630
  * Amount in BillingCurrency: US dollars for USD, decimal string, 6 decimals.
79257
79631
  */
@@ -79300,10 +79674,10 @@ export type ListOrganizationUsageData = {
79300
79674
  */
79301
79675
  time_zone?: string;
79302
79676
  /**
79303
- * FOCUS columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).
79677
+ * Columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637). SessionId, AgentId, ApiKeyId and RunId group by the usage event's own attribution: the session, agent, API key or automation run the call belongs to. A requested attribution column is on every result — null when that group's events carry none, never an omitted key.
79304
79678
  *
79305
79679
  */
79306
- group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit'>;
79680
+ group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit' | 'SessionId' | 'AgentId' | 'ApiKeyId' | 'RunId'>;
79307
79681
  /**
79308
79682
  * Opaque cursor from the previous page's next_page.
79309
79683
  */
@@ -79370,6 +79744,22 @@ export type ListOrganizationUsageResponses = {
79370
79744
  * Display name of the resource; falls back to ResourceId when no name is known.
79371
79745
  */
79372
79746
  ResourceName?: string;
79747
+ /**
79748
+ * The session the usage belongs to. Present when SessionId is grouped by; null for a call no session made.
79749
+ */
79750
+ SessionId?: string | null;
79751
+ /**
79752
+ * The agent that made the call. Present when AgentId is grouped by; null when the caller is not a session's agent.
79753
+ */
79754
+ AgentId?: string | null;
79755
+ /**
79756
+ * The API key the call was made with. Present when ApiKeyId is grouped by; null for session, run and binding callers.
79757
+ */
79758
+ ApiKeyId?: string | null;
79759
+ /**
79760
+ * The automation run the usage belongs to. Present when RunId is grouped by; null when no automation run made the call.
79761
+ */
79762
+ RunId?: string | null;
79373
79763
  /**
79374
79764
  * Exact decimal string in ConsumedUnit.
79375
79765
  */
@@ -79486,6 +79876,22 @@ export type ListOrganizationEventsResponses = {
79486
79876
  * X-Request-Id of the API call that produced the usage; null for usage that does not come from a request.
79487
79877
  */
79488
79878
  request_id: string | null;
79879
+ /**
79880
+ * The session the usage belongs to (sesn_…, public form); null for a call no session made.
79881
+ */
79882
+ session_id: string | null;
79883
+ /**
79884
+ * The agent that made the call (agent_…); null when the caller is not a session's agent.
79885
+ */
79886
+ agent_id: string | null;
79887
+ /**
79888
+ * The API key the call was made with (key_…); null for session, run and binding callers.
79889
+ */
79890
+ api_key_id: string | null;
79891
+ /**
79892
+ * The automation run the usage belongs to (run_…); null when no automation run made the call.
79893
+ */
79894
+ run_id: string | null;
79489
79895
  /**
79490
79896
  * How the usage was charged: settlement state, any shortfall, and why nothing was charged.
79491
79897
  */
@@ -79607,6 +80013,22 @@ export type GetOrganizationEventResponses = {
79607
80013
  * X-Request-Id of the API call that produced the usage; null for usage that does not come from a request.
79608
80014
  */
79609
80015
  request_id: string | null;
80016
+ /**
80017
+ * The session the usage belongs to (sesn_…, public form); null for a call no session made.
80018
+ */
80019
+ session_id: string | null;
80020
+ /**
80021
+ * The agent that made the call (agent_…); null when the caller is not a session's agent.
80022
+ */
80023
+ agent_id: string | null;
80024
+ /**
80025
+ * The API key the call was made with (key_…); null for session, run and binding callers.
80026
+ */
80027
+ api_key_id: string | null;
80028
+ /**
80029
+ * The automation run the usage belongs to (run_…); null when no automation run made the call.
80030
+ */
80031
+ run_id: string | null;
79610
80032
  /**
79611
80033
  * How the usage was charged: settlement state, any shortfall, and why nothing was charged.
79612
80034
  */
@@ -79885,9 +80307,9 @@ export type ListOrganizationNotificationLettersResponses = {
79885
80307
  */
79886
80308
  thread: string;
79887
80309
  /**
79888
- * The letter's kind (ADR-193 §2, #4107): notice, mention or decision; the kind is its category and decides the channels. Letters written before the column existed read mention.
80310
+ * The letter's kind (ADR-193 §2, #4107): notice, mention, decision, or event (a subscribed event, ADR-218); the kind is its category and decides the channels. Letters written before the column existed read mention.
79889
80311
  */
79890
- kind: 'notice' | 'mention' | 'decision';
80312
+ kind: 'notice' | 'mention' | 'decision' | 'event';
79891
80313
  /**
79892
80314
  * Where the letter came from (a ticket number, a comment, a change); null when the sender gave none.
79893
80315
  */
@@ -80074,7 +80496,7 @@ export type GetOrganizationNotificationLetterResponses = {
80074
80496
  /**
80075
80497
  * The letter's kind (ADR-193 §2, #4107).
80076
80498
  */
80077
- kind: 'notice' | 'mention' | 'decision';
80499
+ kind: 'notice' | 'mention' | 'decision' | 'event';
80078
80500
  /**
80079
80501
  * Where the letter came from (a ticket number, a comment, a change); null when the sender gave none.
80080
80502
  */
@@ -80167,7 +80589,7 @@ export type ReadAllOrganizationNotificationLettersData = {
80167
80589
  /**
80168
80590
  * Only letters of this kind; omit for all kinds.
80169
80591
  */
80170
- kind?: 'notice' | 'mention' | 'decision';
80592
+ kind?: 'notice' | 'mention' | 'decision' | 'event';
80171
80593
  };
80172
80594
  path?: never;
80173
80595
  query?: never;
@@ -82407,6 +82829,117 @@ export type GetByodPairingResponses = {
82407
82829
  };
82408
82830
  };
82409
82831
  export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
82832
+ export type GetByodPairingStatusData = {
82833
+ body?: never;
82834
+ path: {
82835
+ /**
82836
+ * The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
82837
+ */
82838
+ code: string;
82839
+ };
82840
+ query?: never;
82841
+ url: '/sandbox/v1/byod/pairings/{code}/status';
82842
+ };
82843
+ export type GetByodPairingStatusErrors = {
82844
+ /**
82845
+ * Authentication required: supply an organization API key that carries a tenant.
82846
+ */
82847
+ 401: unknown;
82848
+ /**
82849
+ * NOT_FOUND: no such pairing for this organization. The code is unknown or belongs to another organization; the two are indistinguishable.
82850
+ */
82851
+ 404: unknown;
82852
+ /**
82853
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
82854
+ */
82855
+ 503: unknown;
82856
+ };
82857
+ export type GetByodPairingStatusResponses = {
82858
+ /**
82859
+ * One pairing of the organization.
82860
+ */
82861
+ 200: {
82862
+ /**
82863
+ * The 8-character pairing code that was asked about.
82864
+ */
82865
+ code: string;
82866
+ /**
82867
+ * When the code stops working, as an ISO-8601 timestamp.
82868
+ */
82869
+ expires_at: string;
82870
+ /**
82871
+ * The device this code registered, or null while no phone has claimed it (or when that device was disconnected since).
82872
+ */
82873
+ claimed_device: {
82874
+ /**
82875
+ * Resource type; always "byod_device".
82876
+ */
82877
+ object: 'byod_device';
82878
+ /**
82879
+ * Device id, `byd_` followed by 26 lowercase hex characters. Pass it wherever a use face takes a sandbox id, such as POST /sandbox/v1/sandboxes/{id}/act; every lifecycle operation on it answers CAPABILITY_UNSUPPORTED.
82880
+ */
82881
+ id: string;
82882
+ /**
82883
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
82884
+ */
82885
+ platform: 'android' | 'macos' | 'linux';
82886
+ /**
82887
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
82888
+ */
82889
+ name: string;
82890
+ /**
82891
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
82892
+ */
82893
+ model: string;
82894
+ /**
82895
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
82896
+ */
82897
+ os_version: string;
82898
+ /**
82899
+ * True while the device holds its one control connection; false when it is paired but not connected. An act on an offline device answers 503 DEVICE_NOT_READY.
82900
+ */
82901
+ online: boolean;
82902
+ /**
82903
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
82904
+ */
82905
+ last_seen_at: string | null;
82906
+ /**
82907
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
82908
+ */
82909
+ created_at: string;
82910
+ /**
82911
+ * What the device can be asked to do, derived from its platform: display for a phone (act, the action socket), agent for a desktop (a local coding agent session).
82912
+ */
82913
+ capabilities: Array<'display' | 'agent'>;
82914
+ /**
82915
+ * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
82916
+ */
82917
+ agent_dirs: Array<string>;
82918
+ /**
82919
+ * Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
82920
+ */
82921
+ agent_bindings: Array<{
82922
+ /**
82923
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
82924
+ */
82925
+ dir: string;
82926
+ /**
82927
+ * The agent the directory is bound to: its identity number or its agent id.
82928
+ */
82929
+ agent: string;
82930
+ }>;
82931
+ /**
82932
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
82933
+ */
82934
+ envd_version: string | null;
82935
+ /**
82936
+ * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
82937
+ */
82938
+ allow_bypass: boolean;
82939
+ } | null;
82940
+ };
82941
+ };
82942
+ export type GetByodPairingStatusResponse = GetByodPairingStatusResponses[keyof GetByodPairingStatusResponses];
82410
82943
  export type ClaimByodPairingData = {
82411
82944
  /**
82412
82945
  * What the phone's app knows about itself when it claims the pairing.
@@ -98027,14 +98560,14 @@ export type AutomationActionsGetData = {
98027
98560
  /**
98028
98561
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98029
98562
  */
98030
- ns: string;
98563
+ namespace: string;
98031
98564
  /**
98032
98565
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98033
98566
  */
98034
98567
  name: string;
98035
98568
  };
98036
98569
  query?: never;
98037
- url: '/automation/v1/actions/{ns}/{name}';
98570
+ url: '/automation/v1/actions/{namespace}/{name}';
98038
98571
  };
98039
98572
  export type AutomationActionsGetErrors = {
98040
98573
  /**
@@ -98157,7 +98690,7 @@ export type AutomationActionsUpdateData = {
98157
98690
  /**
98158
98691
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98159
98692
  */
98160
- ns: string;
98693
+ namespace: string;
98161
98694
  /**
98162
98695
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98163
98696
  */
@@ -98169,7 +98702,7 @@ export type AutomationActionsUpdateData = {
98169
98702
  */
98170
98703
  dry_run?: boolean;
98171
98704
  };
98172
- url: '/automation/v1/actions/{ns}/{name}';
98705
+ url: '/automation/v1/actions/{namespace}/{name}';
98173
98706
  };
98174
98707
  export type AutomationActionsUpdateErrors = {
98175
98708
  /**
@@ -98220,7 +98753,7 @@ export type AutomationActionsRevisionsData = {
98220
98753
  /**
98221
98754
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98222
98755
  */
98223
- ns: string;
98756
+ namespace: string;
98224
98757
  /**
98225
98758
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98226
98759
  */
@@ -98240,7 +98773,7 @@ export type AutomationActionsRevisionsData = {
98240
98773
  */
98241
98774
  expand?: 'source';
98242
98775
  };
98243
- url: '/automation/v1/actions/{ns}/{name}/revisions';
98776
+ url: '/automation/v1/actions/{namespace}/{name}/revisions';
98244
98777
  };
98245
98778
  export type AutomationActionsRevisionsErrors = {
98246
98779
  /**
@@ -98279,7 +98812,7 @@ export type AutomationActionsRevisionData = {
98279
98812
  /**
98280
98813
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98281
98814
  */
98282
- ns: string;
98815
+ namespace: string;
98283
98816
  /**
98284
98817
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98285
98818
  */
@@ -98290,7 +98823,7 @@ export type AutomationActionsRevisionData = {
98290
98823
  revision: string;
98291
98824
  };
98292
98825
  query?: never;
98293
- url: '/automation/v1/actions/{ns}/{name}/revisions/{revision}';
98826
+ url: '/automation/v1/actions/{namespace}/{name}/revisions/{revision}';
98294
98827
  };
98295
98828
  export type AutomationActionsRevisionErrors = {
98296
98829
  /**
@@ -98340,14 +98873,14 @@ export type AutomationActionsRollbackData = {
98340
98873
  /**
98341
98874
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98342
98875
  */
98343
- ns: string;
98876
+ namespace: string;
98344
98877
  /**
98345
98878
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98346
98879
  */
98347
98880
  name: string;
98348
98881
  };
98349
98882
  query?: never;
98350
- url: '/automation/v1/actions/{ns}/{name}/rollback';
98883
+ url: '/automation/v1/actions/{namespace}/{name}/rollback';
98351
98884
  };
98352
98885
  export type AutomationActionsRollbackErrors = {
98353
98886
  /**
@@ -98401,7 +98934,7 @@ export type AutomationActionsInvocationsData = {
98401
98934
  /**
98402
98935
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98403
98936
  */
98404
- ns: string;
98937
+ namespace: string;
98405
98938
  /**
98406
98939
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98407
98940
  */
@@ -98437,7 +98970,7 @@ export type AutomationActionsInvocationsData = {
98437
98970
  */
98438
98971
  'created_at[gte]'?: string;
98439
98972
  };
98440
- url: '/automation/v1/actions/{ns}/{name}/invocations';
98973
+ url: '/automation/v1/actions/{namespace}/{name}/invocations';
98441
98974
  };
98442
98975
  export type AutomationActionsInvocationsErrors = {
98443
98976
  /**
@@ -98476,7 +99009,7 @@ export type AutomationActionsDependentsData = {
98476
99009
  /**
98477
99010
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98478
99011
  */
98479
- ns: string;
99012
+ namespace: string;
98480
99013
  /**
98481
99014
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98482
99015
  */
@@ -98492,7 +99025,7 @@ export type AutomationActionsDependentsData = {
98492
99025
  */
98493
99026
  cursor?: string;
98494
99027
  };
98495
- url: '/automation/v1/actions/{ns}/{name}/dependents';
99028
+ url: '/automation/v1/actions/{namespace}/{name}/dependents';
98496
99029
  };
98497
99030
  export type AutomationActionsDependentsErrors = {
98498
99031
  /**
@@ -98531,14 +99064,14 @@ export type AutomationActionsArchiveData = {
98531
99064
  /**
98532
99065
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98533
99066
  */
98534
- ns: string;
99067
+ namespace: string;
98535
99068
  /**
98536
99069
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98537
99070
  */
98538
99071
  name: string;
98539
99072
  };
98540
99073
  query?: never;
98541
- url: '/automation/v1/actions/{ns}/{name}/archive';
99074
+ url: '/automation/v1/actions/{namespace}/{name}/archive';
98542
99075
  };
98543
99076
  export type AutomationActionsArchiveErrors = {
98544
99077
  /**
@@ -98572,14 +99105,14 @@ export type AutomationActionsRestoreData = {
98572
99105
  /**
98573
99106
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98574
99107
  */
98575
- ns: string;
99108
+ namespace: string;
98576
99109
  /**
98577
99110
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98578
99111
  */
98579
99112
  name: string;
98580
99113
  };
98581
99114
  query?: never;
98582
- url: '/automation/v1/actions/{ns}/{name}/restore';
99115
+ url: '/automation/v1/actions/{namespace}/{name}/restore';
98583
99116
  };
98584
99117
  export type AutomationActionsRestoreErrors = {
98585
99118
  /**
@@ -98694,9 +99227,9 @@ export type AutomationScriptsCreateData = {
98694
99227
  */
98695
99228
  description?: string;
98696
99229
  /**
98697
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99230
+ * Editable source in the shape a read returns: { source, revision }; TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation, where revision has no meaning. A bare string is the deprecated spelling of { source }.
98698
99231
  */
98699
- draft?: string;
99232
+ draft?: AutomationDraftCreateInput | string;
98700
99233
  /**
98701
99234
  * At most 50 labels; keys contain 1–40 characters and values at most 500 characters.
98702
99235
  */
@@ -98751,14 +99284,14 @@ export type AutomationScriptsGetData = {
98751
99284
  /**
98752
99285
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98753
99286
  */
98754
- ns: string;
99287
+ namespace: string;
98755
99288
  /**
98756
99289
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98757
99290
  */
98758
99291
  name: string;
98759
99292
  };
98760
99293
  query?: never;
98761
- url: '/automation/v1/scripts/{ns}/{name}';
99294
+ url: '/automation/v1/scripts/{namespace}/{name}';
98762
99295
  };
98763
99296
  export type AutomationScriptsGetErrors = {
98764
99297
  /**
@@ -98795,28 +99328,30 @@ export type AutomationScriptsPatchData = {
98795
99328
  [key: string]: string;
98796
99329
  };
98797
99330
  /**
98798
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99331
+ * Draft in the shape a read returns: { source, revision }. revision is the one concurrency token and must equal the current draft revision (a mismatch returns 412); omit source to change only metadata and keep the draft source; updated_at and updated_by are read-only echoes and are ignored. A bare string is the deprecated spelling of { source }, and the revision then travels in If-Match.
98799
99332
  */
98800
- draft?: string;
99333
+ draft?: AutomationDraftUpdateInput | string;
98801
99334
  };
98802
- headers: {
99335
+ headers?: {
98803
99336
  /**
98804
- * Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/"…" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412.
99337
+ * Deprecated alias of draft.revision in the body. Give the draft revision once; the two together with different values return 400. The bare value, the quoted form and the weak form W/"…" are all accepted (RFC 7232 weak comparison), and a revision mismatch returns 412.
99338
+ *
99339
+ * @deprecated
98805
99340
  */
98806
- 'If-Match': string;
99341
+ 'If-Match'?: string;
98807
99342
  };
98808
99343
  path: {
98809
99344
  /**
98810
99345
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98811
99346
  */
98812
- ns: string;
99347
+ namespace: string;
98813
99348
  /**
98814
99349
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98815
99350
  */
98816
99351
  name: string;
98817
99352
  };
98818
99353
  query?: never;
98819
- url: '/automation/v1/scripts/{ns}/{name}';
99354
+ url: '/automation/v1/scripts/{namespace}/{name}';
98820
99355
  };
98821
99356
  export type AutomationScriptsPatchErrors = {
98822
99357
  /**
@@ -98858,14 +99393,14 @@ export type AutomationScriptsArchiveData = {
98858
99393
  /**
98859
99394
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98860
99395
  */
98861
- ns: string;
99396
+ namespace: string;
98862
99397
  /**
98863
99398
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98864
99399
  */
98865
99400
  name: string;
98866
99401
  };
98867
99402
  query?: never;
98868
- url: '/automation/v1/scripts/{ns}/{name}/archive';
99403
+ url: '/automation/v1/scripts/{namespace}/{name}/archive';
98869
99404
  };
98870
99405
  export type AutomationScriptsArchiveErrors = {
98871
99406
  /**
@@ -98903,14 +99438,14 @@ export type AutomationScriptsRestoreData = {
98903
99438
  /**
98904
99439
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98905
99440
  */
98906
- ns: string;
99441
+ namespace: string;
98907
99442
  /**
98908
99443
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98909
99444
  */
98910
99445
  name: string;
98911
99446
  };
98912
99447
  query?: never;
98913
- url: '/automation/v1/scripts/{ns}/{name}/restore';
99448
+ url: '/automation/v1/scripts/{namespace}/{name}/restore';
98914
99449
  };
98915
99450
  export type AutomationScriptsRestoreErrors = {
98916
99451
  /**
@@ -98948,7 +99483,7 @@ export type AutomationScriptsVersionsData = {
98948
99483
  /**
98949
99484
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98950
99485
  */
98951
- ns: string;
99486
+ namespace: string;
98952
99487
  /**
98953
99488
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98954
99489
  */
@@ -98968,7 +99503,7 @@ export type AutomationScriptsVersionsData = {
98968
99503
  */
98969
99504
  expand?: 'source';
98970
99505
  };
98971
- url: '/automation/v1/scripts/{ns}/{name}/versions';
99506
+ url: '/automation/v1/scripts/{namespace}/{name}/versions';
98972
99507
  };
98973
99508
  export type AutomationScriptsVersionsErrors = {
98974
99509
  /**
@@ -99008,13 +99543,24 @@ export type AutomationScriptsPublishData = {
99008
99543
  */
99009
99544
  version: string;
99010
99545
  /**
99011
- * Draft revision to publish, matching the current draft; alternative to publishing from_run.
99546
+ * Deprecated alias of draft.revision. Draft revision to publish, matching the current draft; a different value together with draft.revision returns 400.
99547
+ *
99548
+ * @deprecated
99012
99549
  */
99013
- expected_draft_revision: string;
99550
+ expected_draft_revision?: string;
99014
99551
  /**
99015
99552
  * Distribution tag. A prerelease (such as 1.3.0-beta.1) requires a tag and it cannot be latest; a tag may only use URL-safe characters (letters, digits and - _ . ! ~ * ' ( )), no spaces or / ? # and no leading or trailing whitespace; it cannot be a version or a version range (such as 1.2.3, ^1, 1.x, *); any other name such as beta, next or debug is allowed. Violations return TAG_INVALID or TAG_REQUIRED with the complete rules in hint.
99016
99553
  */
99017
99554
  tag?: string;
99555
+ /**
99556
+ * Precondition for publishing the draft: { revision } is the draft.revision from a read or update and must match the current draft; alternative to publishing from_run. The whole draft object a read returned may be sent back as is, and its other fields are ignored.
99557
+ */
99558
+ draft?: {
99559
+ /**
99560
+ * Draft revision to publish: the draft.revision a read or update returned, which must equal the current draft revision; expected_draft_revision is its deprecated alias.
99561
+ */
99562
+ revision: string;
99563
+ };
99018
99564
  } | {
99019
99565
  /**
99020
99566
  * An exact canonical semantic version, such as 1.2.0 or 1.3.0-beta.1, not a range.
@@ -99043,14 +99589,14 @@ export type AutomationScriptsPublishData = {
99043
99589
  /**
99044
99590
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99045
99591
  */
99046
- ns: string;
99592
+ namespace: string;
99047
99593
  /**
99048
99594
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99049
99595
  */
99050
99596
  name: string;
99051
99597
  };
99052
99598
  query?: never;
99053
- url: '/automation/v1/scripts/{ns}/{name}/versions';
99599
+ url: '/automation/v1/scripts/{namespace}/{name}/versions';
99054
99600
  };
99055
99601
  export type AutomationScriptsPublishErrors = {
99056
99602
  /**
@@ -99105,7 +99651,7 @@ export type AutomationScriptsVersionData = {
99105
99651
  /**
99106
99652
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99107
99653
  */
99108
- ns: string;
99654
+ namespace: string;
99109
99655
  /**
99110
99656
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99111
99657
  */
@@ -99116,7 +99662,7 @@ export type AutomationScriptsVersionData = {
99116
99662
  version: string;
99117
99663
  };
99118
99664
  query?: never;
99119
- url: '/automation/v1/scripts/{ns}/{name}/versions/{version}';
99665
+ url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}';
99120
99666
  };
99121
99667
  export type AutomationScriptsVersionErrors = {
99122
99668
  /**
@@ -99152,7 +99698,7 @@ export type AutomationScriptsDeprecateData = {
99152
99698
  /**
99153
99699
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99154
99700
  */
99155
- ns: string;
99701
+ namespace: string;
99156
99702
  /**
99157
99703
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99158
99704
  */
@@ -99163,7 +99709,7 @@ export type AutomationScriptsDeprecateData = {
99163
99709
  version: string;
99164
99710
  };
99165
99711
  query?: never;
99166
- url: '/automation/v1/scripts/{ns}/{name}/versions/{version}/deprecate';
99712
+ url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}/deprecate';
99167
99713
  };
99168
99714
  export type AutomationScriptsDeprecateErrors = {
99169
99715
  /**
@@ -99206,14 +99752,14 @@ export type AutomationScriptsDistTagsData = {
99206
99752
  /**
99207
99753
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99208
99754
  */
99209
- ns: string;
99755
+ namespace: string;
99210
99756
  /**
99211
99757
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99212
99758
  */
99213
99759
  name: string;
99214
99760
  };
99215
99761
  query?: never;
99216
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags';
99762
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags';
99217
99763
  };
99218
99764
  export type AutomationScriptsDistTagsErrors = {
99219
99765
  /**
@@ -99245,7 +99791,7 @@ export type AutomationScriptsDeleteDistTagData = {
99245
99791
  /**
99246
99792
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99247
99793
  */
99248
- ns: string;
99794
+ namespace: string;
99249
99795
  /**
99250
99796
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99251
99797
  */
@@ -99256,7 +99802,7 @@ export type AutomationScriptsDeleteDistTagData = {
99256
99802
  tag: string;
99257
99803
  };
99258
99804
  query?: never;
99259
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}';
99805
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}';
99260
99806
  };
99261
99807
  export type AutomationScriptsDeleteDistTagErrors = {
99262
99808
  /**
@@ -99306,7 +99852,7 @@ export type AutomationScriptsSetDistTagData = {
99306
99852
  /**
99307
99853
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99308
99854
  */
99309
- ns: string;
99855
+ namespace: string;
99310
99856
  /**
99311
99857
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99312
99858
  */
@@ -99317,7 +99863,7 @@ export type AutomationScriptsSetDistTagData = {
99317
99863
  tag: string;
99318
99864
  };
99319
99865
  query?: never;
99320
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}';
99866
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}';
99321
99867
  };
99322
99868
  export type AutomationScriptsSetDistTagErrors = {
99323
99869
  /**
@@ -99444,9 +99990,9 @@ export type AutomationWorkflowsCreateData = {
99444
99990
  */
99445
99991
  description?: string;
99446
99992
  /**
99447
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99993
+ * Editable source in the shape a read returns: { source, revision }; TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation, where revision has no meaning. A bare string is the deprecated spelling of { source }.
99448
99994
  */
99449
- draft?: string;
99995
+ draft?: AutomationDraftCreateInput | string;
99450
99996
  /**
99451
99997
  * At most 50 labels; keys contain 1–40 characters and values at most 500 characters.
99452
99998
  */
@@ -99501,14 +100047,14 @@ export type AutomationWorkflowsGetData = {
99501
100047
  /**
99502
100048
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99503
100049
  */
99504
- ns: string;
100050
+ namespace: string;
99505
100051
  /**
99506
100052
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99507
100053
  */
99508
100054
  name: string;
99509
100055
  };
99510
100056
  query?: never;
99511
- url: '/automation/v1/workflows/{ns}/{name}';
100057
+ url: '/automation/v1/workflows/{namespace}/{name}';
99512
100058
  };
99513
100059
  export type AutomationWorkflowsGetErrors = {
99514
100060
  /**
@@ -99545,28 +100091,30 @@ export type AutomationWorkflowsPatchData = {
99545
100091
  [key: string]: string;
99546
100092
  };
99547
100093
  /**
99548
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
100094
+ * Draft in the shape a read returns: { source, revision }. revision is the one concurrency token and must equal the current draft revision (a mismatch returns 412); omit source to change only metadata and keep the draft source; updated_at and updated_by are read-only echoes and are ignored. A bare string is the deprecated spelling of { source }, and the revision then travels in If-Match.
99549
100095
  */
99550
- draft?: string;
100096
+ draft?: AutomationDraftUpdateInput | string;
99551
100097
  };
99552
- headers: {
100098
+ headers?: {
99553
100099
  /**
99554
- * Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/"…" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412.
100100
+ * Deprecated alias of draft.revision in the body. Give the draft revision once; the two together with different values return 400. The bare value, the quoted form and the weak form W/"…" are all accepted (RFC 7232 weak comparison), and a revision mismatch returns 412.
100101
+ *
100102
+ * @deprecated
99555
100103
  */
99556
- 'If-Match': string;
100104
+ 'If-Match'?: string;
99557
100105
  };
99558
100106
  path: {
99559
100107
  /**
99560
100108
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99561
100109
  */
99562
- ns: string;
100110
+ namespace: string;
99563
100111
  /**
99564
100112
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99565
100113
  */
99566
100114
  name: string;
99567
100115
  };
99568
100116
  query?: never;
99569
- url: '/automation/v1/workflows/{ns}/{name}';
100117
+ url: '/automation/v1/workflows/{namespace}/{name}';
99570
100118
  };
99571
100119
  export type AutomationWorkflowsPatchErrors = {
99572
100120
  /**
@@ -99608,14 +100156,14 @@ export type AutomationWorkflowsArchiveData = {
99608
100156
  /**
99609
100157
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99610
100158
  */
99611
- ns: string;
100159
+ namespace: string;
99612
100160
  /**
99613
100161
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99614
100162
  */
99615
100163
  name: string;
99616
100164
  };
99617
100165
  query?: never;
99618
- url: '/automation/v1/workflows/{ns}/{name}/archive';
100166
+ url: '/automation/v1/workflows/{namespace}/{name}/archive';
99619
100167
  };
99620
100168
  export type AutomationWorkflowsArchiveErrors = {
99621
100169
  /**
@@ -99653,14 +100201,14 @@ export type AutomationWorkflowsRestoreData = {
99653
100201
  /**
99654
100202
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99655
100203
  */
99656
- ns: string;
100204
+ namespace: string;
99657
100205
  /**
99658
100206
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99659
100207
  */
99660
100208
  name: string;
99661
100209
  };
99662
100210
  query?: never;
99663
- url: '/automation/v1/workflows/{ns}/{name}/restore';
100211
+ url: '/automation/v1/workflows/{namespace}/{name}/restore';
99664
100212
  };
99665
100213
  export type AutomationWorkflowsRestoreErrors = {
99666
100214
  /**
@@ -99698,7 +100246,7 @@ export type AutomationWorkflowsVersionsData = {
99698
100246
  /**
99699
100247
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99700
100248
  */
99701
- ns: string;
100249
+ namespace: string;
99702
100250
  /**
99703
100251
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99704
100252
  */
@@ -99718,7 +100266,7 @@ export type AutomationWorkflowsVersionsData = {
99718
100266
  */
99719
100267
  expand?: 'source';
99720
100268
  };
99721
- url: '/automation/v1/workflows/{ns}/{name}/versions';
100269
+ url: '/automation/v1/workflows/{namespace}/{name}/versions';
99722
100270
  };
99723
100271
  export type AutomationWorkflowsVersionsErrors = {
99724
100272
  /**
@@ -99758,13 +100306,24 @@ export type AutomationWorkflowsPublishData = {
99758
100306
  */
99759
100307
  version: string;
99760
100308
  /**
99761
- * Draft revision to publish, matching the current draft; alternative to publishing from_run.
100309
+ * Deprecated alias of draft.revision. Draft revision to publish, matching the current draft; a different value together with draft.revision returns 400.
100310
+ *
100311
+ * @deprecated
99762
100312
  */
99763
- expected_draft_revision: string;
100313
+ expected_draft_revision?: string;
99764
100314
  /**
99765
100315
  * Distribution tag. A prerelease (such as 1.3.0-beta.1) requires a tag and it cannot be latest; a tag may only use URL-safe characters (letters, digits and - _ . ! ~ * ' ( )), no spaces or / ? # and no leading or trailing whitespace; it cannot be a version or a version range (such as 1.2.3, ^1, 1.x, *); any other name such as beta, next or debug is allowed. Violations return TAG_INVALID or TAG_REQUIRED with the complete rules in hint.
99766
100316
  */
99767
100317
  tag?: string;
100318
+ /**
100319
+ * Precondition for publishing the draft: { revision } is the draft.revision from a read or update and must match the current draft; alternative to publishing from_run. The whole draft object a read returned may be sent back as is, and its other fields are ignored.
100320
+ */
100321
+ draft?: {
100322
+ /**
100323
+ * Draft revision to publish: the draft.revision a read or update returned, which must equal the current draft revision; expected_draft_revision is its deprecated alias.
100324
+ */
100325
+ revision: string;
100326
+ };
99768
100327
  } | {
99769
100328
  /**
99770
100329
  * An exact canonical semantic version, such as 1.2.0 or 1.3.0-beta.1, not a range.
@@ -99793,14 +100352,14 @@ export type AutomationWorkflowsPublishData = {
99793
100352
  /**
99794
100353
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99795
100354
  */
99796
- ns: string;
100355
+ namespace: string;
99797
100356
  /**
99798
100357
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99799
100358
  */
99800
100359
  name: string;
99801
100360
  };
99802
100361
  query?: never;
99803
- url: '/automation/v1/workflows/{ns}/{name}/versions';
100362
+ url: '/automation/v1/workflows/{namespace}/{name}/versions';
99804
100363
  };
99805
100364
  export type AutomationWorkflowsPublishErrors = {
99806
100365
  /**
@@ -99863,7 +100422,7 @@ export type AutomationWorkflowsVersionData = {
99863
100422
  /**
99864
100423
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99865
100424
  */
99866
- ns: string;
100425
+ namespace: string;
99867
100426
  /**
99868
100427
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99869
100428
  */
@@ -99874,7 +100433,7 @@ export type AutomationWorkflowsVersionData = {
99874
100433
  version: string;
99875
100434
  };
99876
100435
  query?: never;
99877
- url: '/automation/v1/workflows/{ns}/{name}/versions/{version}';
100436
+ url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}';
99878
100437
  };
99879
100438
  export type AutomationWorkflowsVersionErrors = {
99880
100439
  /**
@@ -99910,7 +100469,7 @@ export type AutomationWorkflowsDeprecateData = {
99910
100469
  /**
99911
100470
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99912
100471
  */
99913
- ns: string;
100472
+ namespace: string;
99914
100473
  /**
99915
100474
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99916
100475
  */
@@ -99921,7 +100480,7 @@ export type AutomationWorkflowsDeprecateData = {
99921
100480
  version: string;
99922
100481
  };
99923
100482
  query?: never;
99924
- url: '/automation/v1/workflows/{ns}/{name}/versions/{version}/deprecate';
100483
+ url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}/deprecate';
99925
100484
  };
99926
100485
  export type AutomationWorkflowsDeprecateErrors = {
99927
100486
  /**
@@ -99964,14 +100523,14 @@ export type AutomationWorkflowsDistTagsData = {
99964
100523
  /**
99965
100524
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99966
100525
  */
99967
- ns: string;
100526
+ namespace: string;
99968
100527
  /**
99969
100528
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99970
100529
  */
99971
100530
  name: string;
99972
100531
  };
99973
100532
  query?: never;
99974
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags';
100533
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags';
99975
100534
  };
99976
100535
  export type AutomationWorkflowsDistTagsErrors = {
99977
100536
  /**
@@ -100003,7 +100562,7 @@ export type AutomationWorkflowsDeleteDistTagData = {
100003
100562
  /**
100004
100563
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
100005
100564
  */
100006
- ns: string;
100565
+ namespace: string;
100007
100566
  /**
100008
100567
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
100009
100568
  */
@@ -100014,7 +100573,7 @@ export type AutomationWorkflowsDeleteDistTagData = {
100014
100573
  tag: string;
100015
100574
  };
100016
100575
  query?: never;
100017
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}';
100576
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}';
100018
100577
  };
100019
100578
  export type AutomationWorkflowsDeleteDistTagErrors = {
100020
100579
  /**
@@ -100064,7 +100623,7 @@ export type AutomationWorkflowsSetDistTagData = {
100064
100623
  /**
100065
100624
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
100066
100625
  */
100067
- ns: string;
100626
+ namespace: string;
100068
100627
  /**
100069
100628
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
100070
100629
  */
@@ -100075,7 +100634,7 @@ export type AutomationWorkflowsSetDistTagData = {
100075
100634
  tag: string;
100076
100635
  };
100077
100636
  query?: never;
100078
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}';
100637
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}';
100079
100638
  };
100080
100639
  export type AutomationWorkflowsSetDistTagErrors = {
100081
100640
  /**
@@ -100490,7 +101049,7 @@ export type AutomationRunsGetData = {
100490
101049
  /**
100491
101050
  * Run ID (run_).
100492
101051
  */
100493
- id: string;
101052
+ run_id: string;
100494
101053
  };
100495
101054
  query?: {
100496
101055
  /**
@@ -100502,7 +101061,7 @@ export type AutomationRunsGetData = {
100502
101061
  */
100503
101062
  wait?: number;
100504
101063
  };
100505
- url: '/automation/v1/runs/{id}';
101064
+ url: '/automation/v1/runs/{run_id}';
100506
101065
  };
100507
101066
  export type AutomationRunsGetErrors = {
100508
101067
  /**
@@ -100537,10 +101096,10 @@ export type AutomationRunsCancelData = {
100537
101096
  /**
100538
101097
  * Run ID (run_).
100539
101098
  */
100540
- id: string;
101099
+ run_id: string;
100541
101100
  };
100542
101101
  query?: never;
100543
- url: '/automation/v1/runs/{id}/cancel';
101102
+ url: '/automation/v1/runs/{run_id}/cancel';
100544
101103
  };
100545
101104
  export type AutomationRunsCancelErrors = {
100546
101105
  /**
@@ -100585,10 +101144,10 @@ export type AutomationRunsRerunData = {
100585
101144
  /**
100586
101145
  * Run ID (run_).
100587
101146
  */
100588
- id: string;
101147
+ run_id: string;
100589
101148
  };
100590
101149
  query?: never;
100591
- url: '/automation/v1/runs/{id}/rerun';
101150
+ url: '/automation/v1/runs/{run_id}/rerun';
100592
101151
  };
100593
101152
  export type AutomationRunsRerunErrors = {
100594
101153
  /**
@@ -100640,10 +101199,10 @@ export type AutomationRunsSuspendData = {
100640
101199
  /**
100641
101200
  * Run ID (run_).
100642
101201
  */
100643
- id: string;
101202
+ run_id: string;
100644
101203
  };
100645
101204
  query?: never;
100646
- url: '/automation/v1/runs/{id}/suspend';
101205
+ url: '/automation/v1/runs/{run_id}/suspend';
100647
101206
  };
100648
101207
  export type AutomationRunsSuspendErrors = {
100649
101208
  /**
@@ -100678,10 +101237,10 @@ export type AutomationRunsResumeData = {
100678
101237
  /**
100679
101238
  * Run ID (run_).
100680
101239
  */
100681
- id: string;
101240
+ run_id: string;
100682
101241
  };
100683
101242
  query?: never;
100684
- url: '/automation/v1/runs/{id}/resume';
101243
+ url: '/automation/v1/runs/{run_id}/resume';
100685
101244
  };
100686
101245
  export type AutomationRunsResumeErrors = {
100687
101246
  /**
@@ -100716,7 +101275,7 @@ export type AutomationRunsWaitsData = {
100716
101275
  /**
100717
101276
  * Run ID (run_).
100718
101277
  */
100719
- id: string;
101278
+ run_id: string;
100720
101279
  };
100721
101280
  query?: {
100722
101281
  /**
@@ -100728,7 +101287,7 @@ export type AutomationRunsWaitsData = {
100728
101287
  */
100729
101288
  cursor?: string;
100730
101289
  };
100731
- url: '/automation/v1/runs/{id}/waits';
101290
+ url: '/automation/v1/runs/{run_id}/waits';
100732
101291
  };
100733
101292
  export type AutomationRunsWaitsErrors = {
100734
101293
  /**
@@ -100767,7 +101326,7 @@ export type AutomationRunsCallsData = {
100767
101326
  /**
100768
101327
  * Run ID (run_).
100769
101328
  */
100770
- id: string;
101329
+ run_id: string;
100771
101330
  };
100772
101331
  query?: {
100773
101332
  /**
@@ -100779,7 +101338,7 @@ export type AutomationRunsCallsData = {
100779
101338
  */
100780
101339
  cursor?: string;
100781
101340
  };
100782
- url: '/automation/v1/runs/{id}/calls';
101341
+ url: '/automation/v1/runs/{run_id}/calls';
100783
101342
  };
100784
101343
  export type AutomationRunsCallsErrors = {
100785
101344
  /**
@@ -100818,7 +101377,7 @@ export type AutomationRunsArtifactsData = {
100818
101377
  /**
100819
101378
  * Run ID (run_).
100820
101379
  */
100821
- id: string;
101380
+ run_id: string;
100822
101381
  };
100823
101382
  query?: {
100824
101383
  /**
@@ -100830,7 +101389,7 @@ export type AutomationRunsArtifactsData = {
100830
101389
  */
100831
101390
  cursor?: string;
100832
101391
  };
100833
- url: '/automation/v1/runs/{id}/artifacts';
101392
+ url: '/automation/v1/runs/{run_id}/artifacts';
100834
101393
  };
100835
101394
  export type AutomationRunsArtifactsErrors = {
100836
101395
  /**
@@ -100878,14 +101437,14 @@ export type AutomationRunsCompleteWaitData = {
100878
101437
  /**
100879
101438
  * Run ID (run_).
100880
101439
  */
100881
- id: string;
101440
+ run_id: string;
100882
101441
  /**
100883
101442
  * Wait ID (wait_) belonging to this run.
100884
101443
  */
100885
101444
  wait_id: string;
100886
101445
  };
100887
101446
  query?: never;
100888
- url: '/automation/v1/runs/{id}/waits/{wait_id}/complete';
101447
+ url: '/automation/v1/runs/{run_id}/waits/{wait_id}/complete';
100889
101448
  };
100890
101449
  export type AutomationRunsCompleteWaitErrors = {
100891
101450
  /**
@@ -100936,6 +101495,8 @@ export type AutomationRunsCompleteWaitResponses = {
100936
101495
  kind: 'event' | 'timer' | 'child';
100937
101496
  /**
100938
101497
  * Wait state after the call. open is still waiting; resolved was satisfied; expired passed its deadline; cancelled was cancelled. A successfully submitted event leaves it resolved.
101498
+ *
101499
+ * @deprecated
100939
101500
  */
100940
101501
  state: 'cancelled' | 'open' | 'resolved' | 'expired';
100941
101502
  /**
@@ -100979,6 +101540,10 @@ export type AutomationRunsCompleteWaitResponses = {
100979
101540
  * true when this was a repeated submission with the same id and payload, so the original result is returned instead of processing it again.
100980
101541
  */
100981
101542
  replayed: boolean;
101543
+ /**
101544
+ * Wait state after the call. open is still waiting; resolved was satisfied; expired passed its deadline; cancelled was cancelled. A successfully submitted event leaves it resolved.
101545
+ */
101546
+ status: 'cancelled' | 'open' | 'resolved' | 'expired';
100982
101547
  };
100983
101548
  };
100984
101549
  export type AutomationRunsCompleteWaitResponse = AutomationRunsCompleteWaitResponses[keyof AutomationRunsCompleteWaitResponses];
@@ -100988,7 +101553,7 @@ export type AutomationRunsTasksData = {
100988
101553
  /**
100989
101554
  * Run ID (run_).
100990
101555
  */
100991
- id: string;
101556
+ run_id: string;
100992
101557
  };
100993
101558
  query?: {
100994
101559
  /**
@@ -101008,7 +101573,7 @@ export type AutomationRunsTasksData = {
101008
101573
  */
101009
101574
  group_by?: 'reference';
101010
101575
  };
101011
- url: '/automation/v1/runs/{id}/tasks';
101576
+ url: '/automation/v1/runs/{run_id}/tasks';
101012
101577
  };
101013
101578
  export type AutomationRunsTasksErrors = {
101014
101579
  /**
@@ -101057,7 +101622,7 @@ export type AutomationRunsEventsData = {
101057
101622
  /**
101058
101623
  * Run ID (run_).
101059
101624
  */
101060
- id: string;
101625
+ run_id: string;
101061
101626
  };
101062
101627
  query?: {
101063
101628
  /**
@@ -101069,7 +101634,7 @@ export type AutomationRunsEventsData = {
101069
101634
  */
101070
101635
  cursor?: string;
101071
101636
  };
101072
- url: '/automation/v1/runs/{id}/events';
101637
+ url: '/automation/v1/runs/{run_id}/events';
101073
101638
  };
101074
101639
  export type AutomationRunsEventsErrors = {
101075
101640
  /**
@@ -101118,7 +101683,7 @@ export type AutomationRunsLogsData = {
101118
101683
  /**
101119
101684
  * Run ID (run_).
101120
101685
  */
101121
- id: string;
101686
+ run_id: string;
101122
101687
  };
101123
101688
  query?: {
101124
101689
  /**
@@ -101130,7 +101695,7 @@ export type AutomationRunsLogsData = {
101130
101695
  */
101131
101696
  cursor?: string;
101132
101697
  };
101133
- url: '/automation/v1/runs/{id}/logs';
101698
+ url: '/automation/v1/runs/{run_id}/logs';
101134
101699
  };
101135
101700
  export type AutomationRunsLogsErrors = {
101136
101701
  /**
@@ -101169,10 +101734,10 @@ export type AutomationRunsSourceData = {
101169
101734
  /**
101170
101735
  * Run ID (run_).
101171
101736
  */
101172
- id: string;
101737
+ run_id: string;
101173
101738
  };
101174
101739
  query?: never;
101175
- url: '/automation/v1/runs/{id}/source';
101740
+ url: '/automation/v1/runs/{run_id}/source';
101176
101741
  };
101177
101742
  export type AutomationRunsSourceErrors = {
101178
101743
  /**
@@ -101227,7 +101792,9 @@ export type AutomationTriggersListData = {
101227
101792
  */
101228
101793
  kind?: Array<'schedule' | 'webhook'>;
101229
101794
  /**
101230
- * Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value.
101795
+ * Deprecated, use status. Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value.
101796
+ *
101797
+ * @deprecated
101231
101798
  */
101232
101799
  state?: Array<AutomationTriggerState>;
101233
101800
  /**
@@ -101244,6 +101811,10 @@ export type AutomationTriggersListData = {
101244
101811
  * Inclusive creation-time upper bound, as an ISO 8601 timestamp with timezone.
101245
101812
  */
101246
101813
  'created_at[lte]'?: string;
101814
+ /**
101815
+ * Trigger status: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value. Giving it together with a different state returns 400.
101816
+ */
101817
+ status?: Array<AutomationTriggerState>;
101247
101818
  };
101248
101819
  url: '/automation/v1/triggers';
101249
101820
  };
@@ -101409,10 +101980,10 @@ export type AutomationTriggersDeleteData = {
101409
101980
  /**
101410
101981
  * Trigger ID (trg_).
101411
101982
  */
101412
- id: string;
101983
+ trigger_id: string;
101413
101984
  };
101414
101985
  query?: never;
101415
- url: '/automation/v1/triggers/{id}';
101986
+ url: '/automation/v1/triggers/{trigger_id}';
101416
101987
  };
101417
101988
  export type AutomationTriggersDeleteErrors = {
101418
101989
  /**
@@ -101446,10 +102017,10 @@ export type AutomationTriggersGetData = {
101446
102017
  /**
101447
102018
  * Trigger ID (trg_).
101448
102019
  */
101449
- id: string;
102020
+ trigger_id: string;
101450
102021
  };
101451
102022
  query?: never;
101452
- url: '/automation/v1/triggers/{id}';
102023
+ url: '/automation/v1/triggers/{trigger_id}';
101453
102024
  };
101454
102025
  export type AutomationTriggersGetErrors = {
101455
102026
  /**
@@ -101557,10 +102128,10 @@ export type AutomationTriggersPatchData = {
101557
102128
  /**
101558
102129
  * Trigger ID (trg_).
101559
102130
  */
101560
- id: string;
102131
+ trigger_id: string;
101561
102132
  };
101562
102133
  query?: never;
101563
- url: '/automation/v1/triggers/{id}';
102134
+ url: '/automation/v1/triggers/{trigger_id}';
101564
102135
  };
101565
102136
  export type AutomationTriggersPatchErrors = {
101566
102137
  /**
@@ -101613,10 +102184,10 @@ export type AutomationTriggersPauseData = {
101613
102184
  /**
101614
102185
  * Trigger ID (trg_).
101615
102186
  */
101616
- id: string;
102187
+ trigger_id: string;
101617
102188
  };
101618
102189
  query?: never;
101619
- url: '/automation/v1/triggers/{id}/pause';
102190
+ url: '/automation/v1/triggers/{trigger_id}/pause';
101620
102191
  };
101621
102192
  export type AutomationTriggersPauseErrors = {
101622
102193
  /**
@@ -101650,10 +102221,10 @@ export type AutomationTriggersResumeData = {
101650
102221
  /**
101651
102222
  * Trigger ID (trg_).
101652
102223
  */
101653
- id: string;
102224
+ trigger_id: string;
101654
102225
  };
101655
102226
  query?: never;
101656
- url: '/automation/v1/triggers/{id}/resume';
102227
+ url: '/automation/v1/triggers/{trigger_id}/resume';
101657
102228
  };
101658
102229
  export type AutomationTriggersResumeErrors = {
101659
102230
  /**
@@ -101697,10 +102268,10 @@ export type AutomationTriggersFireData = {
101697
102268
  /**
101698
102269
  * Trigger ID (trg_).
101699
102270
  */
101700
- id: string;
102271
+ trigger_id: string;
101701
102272
  };
101702
102273
  query?: never;
101703
- url: '/automation/v1/triggers/{id}/fire';
102274
+ url: '/automation/v1/triggers/{trigger_id}/fire';
101704
102275
  };
101705
102276
  export type AutomationTriggersFireErrors = {
101706
102277
  /**
@@ -101743,10 +102314,10 @@ export type AutomationTriggersRotateWebhookData = {
101743
102314
  /**
101744
102315
  * Trigger ID (trg_).
101745
102316
  */
101746
- id: string;
102317
+ trigger_id: string;
101747
102318
  };
101748
102319
  query?: never;
101749
- url: '/automation/v1/triggers/{id}/rotate-webhook';
102320
+ url: '/automation/v1/triggers/{trigger_id}/rotate-webhook';
101750
102321
  };
101751
102322
  export type AutomationTriggersRotateWebhookErrors = {
101752
102323
  /**
@@ -101776,7 +102347,7 @@ export type AutomationTriggersFiringsData = {
101776
102347
  /**
101777
102348
  * Trigger ID (trg_).
101778
102349
  */
101779
- id: string;
102350
+ trigger_id: string;
101780
102351
  };
101781
102352
  query?: {
101782
102353
  /**
@@ -101796,7 +102367,7 @@ export type AutomationTriggersFiringsData = {
101796
102367
  */
101797
102368
  run_id?: string;
101798
102369
  };
101799
- url: '/automation/v1/triggers/{id}/firings';
102370
+ url: '/automation/v1/triggers/{trigger_id}/firings';
101800
102371
  };
101801
102372
  export type AutomationTriggersFiringsErrors = {
101802
102373
  /**
@@ -102002,10 +102573,10 @@ export type AutomationHumanTasksGetData = {
102002
102573
  /**
102003
102574
  * Human task ID (htask_), from the list or the run's waits.
102004
102575
  */
102005
- id: string;
102576
+ task_id: string;
102006
102577
  };
102007
102578
  query?: never;
102008
- url: '/automation/v1/human-tasks/{id}';
102579
+ url: '/automation/v1/human-tasks/{task_id}';
102009
102580
  };
102010
102581
  export type AutomationHumanTasksGetErrors = {
102011
102582
  /**
@@ -102041,10 +102612,10 @@ export type AutomationHumanTasksRespondData = {
102041
102612
  /**
102042
102613
  * Human task ID (htask_).
102043
102614
  */
102044
- id: string;
102615
+ task_id: string;
102045
102616
  };
102046
102617
  query?: never;
102047
- url: '/automation/v1/human-tasks/{id}/respond';
102618
+ url: '/automation/v1/human-tasks/{task_id}/respond';
102048
102619
  };
102049
102620
  export type AutomationHumanTasksRespondErrors = {
102050
102621
  /**
@@ -102099,10 +102670,10 @@ export type AutomationHumanTasksCancelData = {
102099
102670
  /**
102100
102671
  * Human task ID (htask_).
102101
102672
  */
102102
- id: string;
102673
+ task_id: string;
102103
102674
  };
102104
102675
  query?: never;
102105
- url: '/automation/v1/human-tasks/{id}/cancel';
102676
+ url: '/automation/v1/human-tasks/{task_id}/cancel';
102106
102677
  };
102107
102678
  export type AutomationHumanTasksCancelErrors = {
102108
102679
  /**
@@ -102145,10 +102716,10 @@ export type AutomationHumanTasksDelegateData = {
102145
102716
  /**
102146
102717
  * Human task ID (htask_).
102147
102718
  */
102148
- id: string;
102719
+ task_id: string;
102149
102720
  };
102150
102721
  query?: never;
102151
- url: '/automation/v1/human-tasks/{id}/delegate';
102722
+ url: '/automation/v1/human-tasks/{task_id}/delegate';
102152
102723
  };
102153
102724
  export type AutomationHumanTasksDelegateErrors = {
102154
102725
  /**
@@ -102189,14 +102760,14 @@ export type AutomationScriptsVaultsListData = {
102189
102760
  /**
102190
102761
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
102191
102762
  */
102192
- ns: string;
102763
+ namespace: string;
102193
102764
  /**
102194
102765
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
102195
102766
  */
102196
102767
  name: string;
102197
102768
  };
102198
102769
  query?: never;
102199
- url: '/automation/v1/scripts/{ns}/{name}/vaults';
102770
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults';
102200
102771
  };
102201
102772
  export type AutomationScriptsVaultsListErrors = {
102202
102773
  /**
@@ -102262,7 +102833,7 @@ export type AutomationScriptsVaultsDeleteData = {
102262
102833
  /**
102263
102834
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
102264
102835
  */
102265
- ns: string;
102836
+ namespace: string;
102266
102837
  /**
102267
102838
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
102268
102839
  */
@@ -102273,7 +102844,7 @@ export type AutomationScriptsVaultsDeleteData = {
102273
102844
  alias: string;
102274
102845
  };
102275
102846
  query?: never;
102276
- url: '/automation/v1/scripts/{ns}/{name}/vaults/{alias}';
102847
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}';
102277
102848
  };
102278
102849
  export type AutomationScriptsVaultsDeleteErrors = {
102279
102850
  /**
@@ -102308,7 +102879,7 @@ export type AutomationScriptsVaultsSetData = {
102308
102879
  /**
102309
102880
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
102310
102881
  */
102311
- ns: string;
102882
+ namespace: string;
102312
102883
  /**
102313
102884
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
102314
102885
  */
@@ -102319,7 +102890,7 @@ export type AutomationScriptsVaultsSetData = {
102319
102890
  alias: string;
102320
102891
  };
102321
102892
  query?: never;
102322
- url: '/automation/v1/scripts/{ns}/{name}/vaults/{alias}';
102893
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}';
102323
102894
  };
102324
102895
  export type AutomationScriptsVaultsSetErrors = {
102325
102896
  /**
@@ -102389,14 +102960,14 @@ export type AutomationWorkflowsVaultsListData = {
102389
102960
  /**
102390
102961
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
102391
102962
  */
102392
- ns: string;
102963
+ namespace: string;
102393
102964
  /**
102394
102965
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
102395
102966
  */
102396
102967
  name: string;
102397
102968
  };
102398
102969
  query?: never;
102399
- url: '/automation/v1/workflows/{ns}/{name}/vaults';
102970
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults';
102400
102971
  };
102401
102972
  export type AutomationWorkflowsVaultsListErrors = {
102402
102973
  /**
@@ -102462,7 +103033,7 @@ export type AutomationWorkflowsVaultsDeleteData = {
102462
103033
  /**
102463
103034
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
102464
103035
  */
102465
- ns: string;
103036
+ namespace: string;
102466
103037
  /**
102467
103038
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
102468
103039
  */
@@ -102473,7 +103044,7 @@ export type AutomationWorkflowsVaultsDeleteData = {
102473
103044
  alias: string;
102474
103045
  };
102475
103046
  query?: never;
102476
- url: '/automation/v1/workflows/{ns}/{name}/vaults/{alias}';
103047
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}';
102477
103048
  };
102478
103049
  export type AutomationWorkflowsVaultsDeleteErrors = {
102479
103050
  /**
@@ -102508,7 +103079,7 @@ export type AutomationWorkflowsVaultsSetData = {
102508
103079
  /**
102509
103080
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
102510
103081
  */
102511
- ns: string;
103082
+ namespace: string;
102512
103083
  /**
102513
103084
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
102514
103085
  */
@@ -102519,7 +103090,7 @@ export type AutomationWorkflowsVaultsSetData = {
102519
103090
  alias: string;
102520
103091
  };
102521
103092
  query?: never;
102522
- url: '/automation/v1/workflows/{ns}/{name}/vaults/{alias}';
103093
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}';
102523
103094
  };
102524
103095
  export type AutomationWorkflowsVaultsSetErrors = {
102525
103096
  /**
@@ -114998,6 +115569,160 @@ export type DevopsUnitsTransitionsListResponses = {
114998
115569
  200: DevopsUnitTransitionPage;
114999
115570
  };
115000
115571
  export type DevopsUnitsTransitionsListResponse = DevopsUnitsTransitionsListResponses[keyof DevopsUnitsTransitionsListResponses];
115572
+ export type EventsListTypesData = {
115573
+ body?: never;
115574
+ path?: never;
115575
+ query?: never;
115576
+ url: '/events/v1/types';
115577
+ };
115578
+ export type EventsListTypesErrors = {
115579
+ /**
115580
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
115581
+ */
115582
+ 401: EventsEventsProblem;
115583
+ /**
115584
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
115585
+ */
115586
+ 503: EventsEventsProblem;
115587
+ };
115588
+ export type EventsListTypesError = EventsListTypesErrors[keyof EventsListTypesErrors];
115589
+ export type EventsListTypesResponses = {
115590
+ /**
115591
+ * The tenant event types, one entry per type and schema version.
115592
+ */
115593
+ 200: EventsEventTypePage;
115594
+ };
115595
+ export type EventsListTypesResponse = EventsListTypesResponses[keyof EventsListTypesResponses];
115596
+ export type EventsListSubscriptionsData = {
115597
+ body?: never;
115598
+ path?: never;
115599
+ query?: {
115600
+ /**
115601
+ * Maximum subscriptions to return, from 1 to 100; defaults to 50.
115602
+ */
115603
+ limit?: number;
115604
+ };
115605
+ url: '/events/v1/subscriptions';
115606
+ };
115607
+ export type EventsListSubscriptionsErrors = {
115608
+ /**
115609
+ * UNSUPPORTED_FILTER_DIALECT means a filter used a form other than exact and prefix; INVALID_PARAMS means a field, type, filter name, count, date or query value is not accepted, and the message names it. Correct the request; retrying it unchanged fails again.
115610
+ */
115611
+ 400: EventsEventsProblem;
115612
+ /**
115613
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
115614
+ */
115615
+ 401: EventsEventsProblem;
115616
+ /**
115617
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
115618
+ */
115619
+ 503: EventsEventsProblem;
115620
+ };
115621
+ export type EventsListSubscriptionsError = EventsListSubscriptionsErrors[keyof EventsListSubscriptionsErrors];
115622
+ export type EventsListSubscriptionsResponses = {
115623
+ /**
115624
+ * Your live subscriptions.
115625
+ */
115626
+ 200: EventsEventSubscriptionPage;
115627
+ };
115628
+ export type EventsListSubscriptionsResponse = EventsListSubscriptionsResponses[keyof EventsListSubscriptionsResponses];
115629
+ export type EventsCreateSubscriptionData = {
115630
+ /**
115631
+ * What to subscribe to and how long the subscription lasts.
115632
+ */
115633
+ body: EventsCreateEventSubscriptionInput;
115634
+ path?: never;
115635
+ query?: never;
115636
+ url: '/events/v1/subscriptions';
115637
+ };
115638
+ export type EventsCreateSubscriptionErrors = {
115639
+ /**
115640
+ * UNSUPPORTED_FILTER_DIALECT means a filter used a form other than exact and prefix; INVALID_PARAMS means a field, type, filter name, count, date or query value is not accepted, and the message names it. Correct the request; retrying it unchanged fails again.
115641
+ */
115642
+ 400: EventsEventsProblem;
115643
+ /**
115644
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
115645
+ */
115646
+ 401: EventsEventsProblem;
115647
+ /**
115648
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
115649
+ */
115650
+ 503: EventsEventsProblem;
115651
+ };
115652
+ export type EventsCreateSubscriptionError = EventsCreateSubscriptionErrors[keyof EventsCreateSubscriptionErrors];
115653
+ export type EventsCreateSubscriptionResponses = {
115654
+ /**
115655
+ * The new subscription.
115656
+ */
115657
+ 201: EventsEventSubscription;
115658
+ };
115659
+ export type EventsCreateSubscriptionResponse = EventsCreateSubscriptionResponses[keyof EventsCreateSubscriptionResponses];
115660
+ export type EventsDeleteSubscriptionData = {
115661
+ body?: never;
115662
+ path: {
115663
+ /**
115664
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
115665
+ */
115666
+ subscription_id: string;
115667
+ };
115668
+ query?: never;
115669
+ url: '/events/v1/subscriptions/{subscription_id}';
115670
+ };
115671
+ export type EventsDeleteSubscriptionErrors = {
115672
+ /**
115673
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
115674
+ */
115675
+ 401: EventsEventsProblem;
115676
+ /**
115677
+ * SUBSCRIPTION_NOT_FOUND means no live subscription with this id belongs to you; it was deleted, it expired, a once subscription fired, or it is someone else's. List subscriptions to find an id you can reach.
115678
+ */
115679
+ 404: EventsEventsProblem;
115680
+ /**
115681
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
115682
+ */
115683
+ 503: EventsEventsProblem;
115684
+ };
115685
+ export type EventsDeleteSubscriptionError = EventsDeleteSubscriptionErrors[keyof EventsDeleteSubscriptionErrors];
115686
+ export type EventsDeleteSubscriptionResponses = {
115687
+ /**
115688
+ * The subscription is deleted; there is no body.
115689
+ */
115690
+ 204: void;
115691
+ };
115692
+ export type EventsDeleteSubscriptionResponse = EventsDeleteSubscriptionResponses[keyof EventsDeleteSubscriptionResponses];
115693
+ export type EventsRetrieveSubscriptionData = {
115694
+ body?: never;
115695
+ path: {
115696
+ /**
115697
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
115698
+ */
115699
+ subscription_id: string;
115700
+ };
115701
+ query?: never;
115702
+ url: '/events/v1/subscriptions/{subscription_id}';
115703
+ };
115704
+ export type EventsRetrieveSubscriptionErrors = {
115705
+ /**
115706
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
115707
+ */
115708
+ 401: EventsEventsProblem;
115709
+ /**
115710
+ * SUBSCRIPTION_NOT_FOUND means no live subscription with this id belongs to you; it was deleted, it expired, a once subscription fired, or it is someone else's. List subscriptions to find an id you can reach.
115711
+ */
115712
+ 404: EventsEventsProblem;
115713
+ /**
115714
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
115715
+ */
115716
+ 503: EventsEventsProblem;
115717
+ };
115718
+ export type EventsRetrieveSubscriptionError = EventsRetrieveSubscriptionErrors[keyof EventsRetrieveSubscriptionErrors];
115719
+ export type EventsRetrieveSubscriptionResponses = {
115720
+ /**
115721
+ * The subscription.
115722
+ */
115723
+ 200: EventsEventSubscription;
115724
+ };
115725
+ export type EventsRetrieveSubscriptionResponse = EventsRetrieveSubscriptionResponses[keyof EventsRetrieveSubscriptionResponses];
115001
115726
  export type KnowledgeListVectorStoresData = {
115002
115727
  body?: never;
115003
115728
  path?: never;