@deepraxis/sdk 0.2.0-dev.855f099 → 0.2.0-dev.8f994de

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.
@@ -4681,7 +4681,7 @@ export type BrowserStreamMessage = {
4681
4681
  nextCursor: string | null;
4682
4682
  };
4683
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.
4684
+ * The tab in front: the newest one the browser opened, the one a client or a page action last brought to the front, or the fallback tab after the front one closed. null when the session has no tab.
4685
4685
  */
4686
4686
  activePageId?: string | null;
4687
4687
  };
@@ -4690,7 +4690,12 @@ export type BrowserStreamMessage = {
4690
4690
  data: BrowserSession;
4691
4691
  } | {
4692
4692
  event: 'pages';
4693
- data: BrowserSessionLiveUrls;
4693
+ data: BrowserSessionLiveUrls & {
4694
+ /**
4695
+ * The tab in front, sent with every pages message and whenever the front tab moves even if the tab list did not. A viewer shows this tab and never infers its own; null when the session has no tab.
4696
+ */
4697
+ activePageId?: string | null;
4698
+ };
4694
4699
  } | {
4695
4700
  event: 'action';
4696
4701
  data: {
@@ -12218,6 +12223,19 @@ export type AutomationDefinition = {
12218
12223
  */
12219
12224
  updated_at: string;
12220
12225
  };
12226
+ /**
12227
+ * The draft written on creation, in the shape a read returns: source is required and revision may be omitted.
12228
+ */
12229
+ export type AutomationDraftCreateInput = {
12230
+ /**
12231
+ * Draft source: TypeScript for scripts, YAML for workflows.
12232
+ */
12233
+ source: string;
12234
+ /**
12235
+ * 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.
12236
+ */
12237
+ revision?: string;
12238
+ };
12221
12239
  export type AutomationDefinitionDetail = {
12222
12240
  draft: AutomationDraft;
12223
12241
  /**
@@ -12295,6 +12313,19 @@ export type AutomationDefinitionDetail = {
12295
12313
  */
12296
12314
  updated_at: string;
12297
12315
  };
12316
+ /**
12317
+ * The draft written on update, in the shape a read returns: revision is the concurrency token, and omitting source changes only metadata.
12318
+ */
12319
+ export type AutomationDraftUpdateInput = {
12320
+ /**
12321
+ * The new draft source; omit it to keep the draft source and change only metadata.
12322
+ */
12323
+ source?: string;
12324
+ /**
12325
+ * 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.
12326
+ */
12327
+ revision?: string;
12328
+ };
12298
12329
  export type AutomationVersion = {
12299
12330
  /**
12300
12331
  * Version id, prefixed scv_ for scripts and wfv_ for workflows.
@@ -12975,7 +13006,9 @@ export type AutomationWait = {
12975
13006
  */
12976
13007
  kind: 'event' | 'timer' | 'child';
12977
13008
  /**
12978
- * Wait point state. open is still waiting; resolved was satisfied; expired passed its expires_at; cancelled was cancelled and can no longer be satisfied.
13009
+ * 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.
13010
+ *
13011
+ * @deprecated
12979
13012
  */
12980
13013
  state: 'cancelled' | 'open' | 'resolved' | 'expired';
12981
13014
  /**
@@ -13015,6 +13048,10 @@ export type AutomationWait = {
13015
13048
  * Time the wait point was resolved (RFC 3339 UTC), or null if still open.
13016
13049
  */
13017
13050
  resolved_at: null | string;
13051
+ /**
13052
+ * Wait point status. open is still waiting; resolved was satisfied; expired passed its expires_at; cancelled was cancelled and can no longer be satisfied.
13053
+ */
13054
+ status: 'cancelled' | 'open' | 'resolved' | 'expired';
13018
13055
  };
13019
13056
  /**
13020
13057
  * Record of one call made during a script run (an action, platform API, script or workflow), ordered by seq.
@@ -13259,7 +13296,7 @@ export type AutomationRunEvent = {
13259
13296
  */
13260
13297
  id: string;
13261
13298
  /**
13262
- * Event source, of the form /automation/v1/runs/{id}.
13299
+ * Event source, of the form /automation/v1/runs/{run_id}.
13263
13300
  */
13264
13301
  source: string;
13265
13302
  /**
@@ -13289,7 +13326,7 @@ export type AutomationRunEvent = {
13289
13326
  */
13290
13327
  id: string;
13291
13328
  /**
13292
- * Event source, of the form /automation/v1/runs/{id}.
13329
+ * Event source, of the form /automation/v1/runs/{run_id}.
13293
13330
  */
13294
13331
  source: string;
13295
13332
  /**
@@ -13319,7 +13356,7 @@ export type AutomationRunEvent = {
13319
13356
  */
13320
13357
  id: string;
13321
13358
  /**
13322
- * Event source, of the form /automation/v1/runs/{id}.
13359
+ * Event source, of the form /automation/v1/runs/{run_id}.
13323
13360
  */
13324
13361
  source: string;
13325
13362
  /**
@@ -13349,7 +13386,7 @@ export type AutomationRunEvent = {
13349
13386
  */
13350
13387
  id: string;
13351
13388
  /**
13352
- * Event source, of the form /automation/v1/runs/{id}.
13389
+ * Event source, of the form /automation/v1/runs/{run_id}.
13353
13390
  */
13354
13391
  source: string;
13355
13392
  /**
@@ -13379,7 +13416,7 @@ export type AutomationRunEvent = {
13379
13416
  */
13380
13417
  id: string;
13381
13418
  /**
13382
- * Event source, of the form /automation/v1/runs/{id}.
13419
+ * Event source, of the form /automation/v1/runs/{run_id}.
13383
13420
  */
13384
13421
  source: string;
13385
13422
  /**
@@ -13476,7 +13513,7 @@ export type AutomationTrigger = {
13476
13513
  */
13477
13514
  input_mode: 'body' | 'envelope';
13478
13515
  /**
13479
- * 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.
13516
+ * 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.
13480
13517
  */
13481
13518
  url_hint: string;
13482
13519
  } | null;
@@ -13488,6 +13525,11 @@ export type AutomationTrigger = {
13488
13525
  * Tenant that owns the trigger, injected by the gateway; treat it as an opaque string.
13489
13526
  */
13490
13527
  owner: string;
13528
+ /**
13529
+ * Deprecated, read status, which holds the same value. Trigger state: enabled, paused or expired.
13530
+ *
13531
+ * @deprecated
13532
+ */
13491
13533
  state: AutomationTriggerState;
13492
13534
  /**
13493
13535
  * 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.
@@ -13540,9 +13582,13 @@ export type AutomationTrigger = {
13540
13582
  */
13541
13583
  etag: string;
13542
13584
  /**
13543
- * 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.
13585
+ * 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.
13544
13586
  */
13545
13587
  usage_30d?: AutomationAttributedUsage | null;
13588
+ /**
13589
+ * Trigger status: enabled fires on schedule or request; paused does not fire; expired is final and no longer fires.
13590
+ */
13591
+ status: AutomationTriggerState;
13546
13592
  };
13547
13593
  export type AutomationTriggerCreateResult = {
13548
13594
  /**
@@ -13596,7 +13642,7 @@ export type AutomationTriggerCreateResult = {
13596
13642
  */
13597
13643
  input_mode: 'body' | 'envelope';
13598
13644
  /**
13599
- * 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.
13645
+ * 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.
13600
13646
  */
13601
13647
  url_hint: string;
13602
13648
  } | null;
@@ -13608,6 +13654,11 @@ export type AutomationTriggerCreateResult = {
13608
13654
  * Tenant that owns the trigger, injected by the gateway; treat it as an opaque string.
13609
13655
  */
13610
13656
  owner: string;
13657
+ /**
13658
+ * Deprecated, read status, which holds the same value. Trigger state: enabled, paused or expired.
13659
+ *
13660
+ * @deprecated
13661
+ */
13611
13662
  state: AutomationTriggerState;
13612
13663
  /**
13613
13664
  * 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.
@@ -13660,13 +13711,19 @@ export type AutomationTriggerCreateResult = {
13660
13711
  */
13661
13712
  etag: string;
13662
13713
  /**
13663
- * Always null in a create response; the 30-day usage is only returned by GET /triggers/{id}.
13714
+ * Always null in a create response; the 30-day usage is only returned by GET /triggers/{trigger_id}.
13664
13715
  */
13665
13716
  usage_30d?: AutomationAttributedUsage | null;
13666
13717
  /**
13667
13718
  * Returned only on webhook creation or rotation.
13668
13719
  */
13669
13720
  webhook_url?: string;
13721
+ /**
13722
+ * Trigger status: enabled fires on schedule or request; paused does not fire; expired is final and no longer fires.
13723
+ *
13724
+ * @deprecated
13725
+ */
13726
+ status: AutomationTriggerState;
13670
13727
  };
13671
13728
  /**
13672
13729
  * 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).
@@ -14398,6 +14455,95 @@ export type CanvasLibraryVersionPage = {
14398
14455
  */
14399
14456
  next_cursor: string | null;
14400
14457
  };
14458
+ /**
14459
+ * Everything needed to fill one step of a canvas process; a read of the document that stores nothing.
14460
+ */
14461
+ export type CanvasProcessStepBrief = {
14462
+ version: CanvasVersion;
14463
+ /**
14464
+ * The process this step belongs to.
14465
+ */
14466
+ process: {
14467
+ /**
14468
+ * Node id of the process frame or instance.
14469
+ */
14470
+ id: string;
14471
+ /**
14472
+ * Process name from its metadata.
14473
+ */
14474
+ name: string;
14475
+ };
14476
+ /**
14477
+ * The step and what is asked of it.
14478
+ */
14479
+ step: {
14480
+ /**
14481
+ * Step key within the process.
14482
+ */
14483
+ step: string;
14484
+ /**
14485
+ * Node id of the step frame; inside an instance it is a path such as inst/frame.
14486
+ */
14487
+ node_id: string;
14488
+ /**
14489
+ * Step title shown on the block.
14490
+ */
14491
+ title: string;
14492
+ /**
14493
+ * Derived from the document; filled means at least one output points at the step (an each step with expected needs that many), ready means unfilled with every needed step filled, waiting means otherwise; the state never blocks a write.
14494
+ */
14495
+ state: 'waiting' | 'ready' | 'filled';
14496
+ /**
14497
+ * For an each step, how many outputs the filler decided on; omitted when none was set.
14498
+ */
14499
+ expected?: number;
14500
+ /**
14501
+ * The requirement as stored in metadata.requirement; output says what to produce, rules are instructions where a skill:name entry names a skill to follow, and needs, back and each carry when and by text for you to read, never evaluated.
14502
+ */
14503
+ requirement: {
14504
+ [key: string]: unknown;
14505
+ };
14506
+ };
14507
+ /**
14508
+ * This production's linked materials for the step, resolved; dangling links are dropped.
14509
+ */
14510
+ materials: Array<CanvasProcessElement>;
14511
+ /**
14512
+ * The process's shared context elements, such as the series bible, resolved.
14513
+ */
14514
+ shared: Array<CanvasProcessElement>;
14515
+ /**
14516
+ * One entry per step in needs, in needs order, with that step's current outputs.
14517
+ */
14518
+ upstream: Array<{
14519
+ /**
14520
+ * Key of the upstream step.
14521
+ */
14522
+ step: string;
14523
+ /**
14524
+ * Title of the upstream step.
14525
+ */
14526
+ title: string;
14527
+ /**
14528
+ * Derived state of the upstream step; filled means it has its outputs, ready means unfilled with its own needs filled, waiting means otherwise.
14529
+ */
14530
+ state: 'waiting' | 'ready' | 'filled';
14531
+ /**
14532
+ * Outputs of the upstream step, resolved.
14533
+ */
14534
+ outputs: Array<CanvasProcessElement>;
14535
+ }>;
14536
+ /**
14537
+ * Elements that already answer this step through metadata.output; check them before adding more.
14538
+ */
14539
+ outputs: Array<CanvasProcessElement>;
14540
+ /**
14541
+ * Problems found in the whole process, such as dangling-material, dangling-shared, orphan-output, duplicate-step, unknown-step, needs-cycle and invalid-requirement; each has a kind plus the step or node it names.
14542
+ */
14543
+ issues: Array<{
14544
+ [key: string]: unknown;
14545
+ }>;
14546
+ };
14401
14547
  export type CanvasLibraryPage = {
14402
14548
  /**
14403
14549
  * Libraries on this page, most recently published first.
@@ -17023,7 +17169,7 @@ export type CutExportInput = {
17023
17169
  */
17024
17170
  output?: CutExportOutput;
17025
17171
  /**
17026
- * Writable binding name used as the export destination; omission uses default_upload. Naming a binding or a folder also imports the finished video into that media library as an asset. Omit both and the export is a file only; read file.url to download it.
17172
+ * Writable binding name the finished video is imported into; the response then carries asset. Omit binding and folder and nothing is imported (default_upload is not used here): the export is a file only, read file.url to download it within one hour.
17027
17173
  */
17028
17174
  binding?: string;
17029
17175
  revision?: CutRevision;
@@ -20252,6 +20398,31 @@ export type DevopsPullRequest = {
20252
20398
  */
20253
20399
  runs?: Array<string>;
20254
20400
  };
20401
+ /**
20402
+ * The exception to record: which head, which checks, and whose written authorization.
20403
+ */
20404
+ export type DevopsPullRequestOverrideGateRequest = {
20405
+ /**
20406
+ * The pull request's current head commit, from the pull request's head.sha; any other commit is refused with HEAD_MOVED.
20407
+ */
20408
+ headSha: string;
20409
+ /**
20410
+ * The gate checks the exception covers, at least one; a name that is not a gate check is refused with INVALID_ARGUMENT.
20411
+ */
20412
+ checks: Array<string>;
20413
+ /**
20414
+ * The ticket the authorization is written on, as #<number> or its URL.
20415
+ */
20416
+ ticket: string;
20417
+ /**
20418
+ * Why the check is let through at this head, in one sentence a later reader can audit.
20419
+ */
20420
+ reason: string;
20421
+ /**
20422
+ * The holder of a listed position who authorized it, as agent:<id> or human:<id>; must hold an active assignment to one of the positions listed in practice-config (today CEO, CTO, COO).
20423
+ */
20424
+ authorizedBy: string;
20425
+ };
20255
20426
  /**
20256
20427
  * How to land the pull request. Every field is optional: an empty object merges now with GitHub's default shape.
20257
20428
  */
@@ -20823,6 +20994,497 @@ export type DevopsUnitTransitionPage = {
20823
20994
  */
20824
20995
  nextPageToken: string;
20825
20996
  };
20997
+ /**
20998
+ * The end user to sign in and what the sign-in may reach.
20999
+ */
21000
+ export type EndGrantCodeInput = {
21001
+ /**
21002
+ * Your own identifier for the end user, a non-empty string; do not use an email address or phone number, and a value starting with anon_ is reserved for visitors.
21003
+ */
21004
+ end_user_id: string;
21005
+ /**
21006
+ * Product metadata to record with the end user, as string key to string value; it is merged over what is already stored.
21007
+ */
21008
+ metadata?: {
21009
+ [key: string]: string;
21010
+ };
21011
+ /**
21012
+ * Resource scopes the sign-in may reach, at least one, each a scope string or an object with scope and params.
21013
+ */
21014
+ resources: Array<EndScopeInput>;
21015
+ /**
21016
+ * Page origin this sign-in is bound to, for example https://school.example.com; a later exchange with another Origin is refused.
21017
+ */
21018
+ origin?: string;
21019
+ /**
21020
+ * Lifetime of the code in seconds; omit for the fifteen-minute default, and send a smaller number to shorten it.
21021
+ */
21022
+ expires_in?: number;
21023
+ /**
21024
+ * Lifetime of the sign-in the code starts, in seconds; omit for the seven-day default.
21025
+ */
21026
+ max_session_seconds?: number;
21027
+ /**
21028
+ * An existing anonymous end user (anon_…) whose record joins this person when the code is exchanged.
21029
+ */
21030
+ merge_end_user_id?: string;
21031
+ /**
21032
+ * The visitor's own Praxis end user access token, when the browser holds one, so this sign-in keeps that anonymous visitor instead of creating a new person; it is the access_token from a previous exchange, sent from your backend and never from the browser. It must be a live anonymous (anon_…) end user of this organization. It may not be combined with merge_end_user_id, and an expired, forged or foreign token answers 400 INVALID_PARAMS.
21033
+ */
21034
+ anonymous_access_token?: string;
21035
+ };
21036
+ /**
21037
+ * A one-time code that the browser exchanges for an access token.
21038
+ */
21039
+ export type EndGrantCode = {
21040
+ /**
21041
+ * Object type, always end_user_grant_code.
21042
+ */
21043
+ type?: 'end_user_grant_code';
21044
+ /**
21045
+ * The single-use code (cgc_…) to hand to the Kit in the browser; it is never shown again.
21046
+ */
21047
+ code?: string;
21048
+ /**
21049
+ * The end user this code signs in.
21050
+ */
21051
+ end_user_id?: string;
21052
+ /**
21053
+ * The resource scopes the sign-in will carry, exactly as they were requested.
21054
+ */
21055
+ resources?: Array<EndResourceGrant>;
21056
+ /**
21057
+ * RFC 3339 time after which the code can no longer be exchanged (fifteen minutes after issue by default).
21058
+ */
21059
+ expires_at?: string;
21060
+ };
21061
+ /**
21062
+ * Exactly one credential to exchange. A publishable_key may be accompanied by the continuation_token of an earlier anonymous answer.
21063
+ */
21064
+ export type EndAccessTokenInput = {
21065
+ /**
21066
+ * A grant code (cgc_…) from grant_codes, for an end user you signed in from your backend; it works once.
21067
+ */
21068
+ grant_code?: string;
21069
+ /**
21070
+ * A publishable key (pk_…) for an anonymous visitor; the exchange creates a new anonymous end user bound to the request Origin, unless continuation_token continues an earlier visitor of this key's organization.
21071
+ */
21072
+ publishable_key?: string;
21073
+ /**
21074
+ * The continuation_token of an earlier anonymous answer, kept by the page's own storage. A live one continues that anonymous end user (a new sign-in of seven days, with a rotated token); an unknown, expired, revoked, merged, blocked or foreign-organization one is treated as absent, so the answer never reveals whether it exists. It also continues the visitor when the page presents another publishable key of the same organization, but the resources it may reach are only those of the key presented now. Only accepted with publishable_key.
21075
+ */
21076
+ continuation_token?: string;
21077
+ };
21078
+ /**
21079
+ * The short Praxis end user access token the Kit carries, with the sign-in behind it.
21080
+ */
21081
+ export type EndAccessToken = {
21082
+ /**
21083
+ * Object type, always end_user_access_token.
21084
+ */
21085
+ type?: 'end_user_access_token';
21086
+ /**
21087
+ * The bearer token to send as `Authorization: Bearer <access_token>`; it lasts at most two hours and never outlives the sign-in.
21088
+ */
21089
+ access_token?: string;
21090
+ /**
21091
+ * RFC 3339 time this token stops working; renew before it with access_tokens/renew.
21092
+ */
21093
+ expires_at?: string;
21094
+ /**
21095
+ * RFC 3339 time the sign-in itself ends; a renewal never extends it.
21096
+ */
21097
+ session_expires_at?: string;
21098
+ /**
21099
+ * Id of the sign-in (csi_…) this token was issued from, which the renewal and the sign-out act on.
21100
+ */
21101
+ sign_in_id?: string;
21102
+ /**
21103
+ * Present on an anonymous answer only. An opaque credential the embed page stores in its own first-party storage and sends back with the next publishable-key exchange, so a returning visitor keeps the same anonymous end user after the access token has expired. It also carries the visitor across a change of publishable key within the same organization, while the accessible resources follow the key presented. It lasts as long as the sign-in (seven days) and is replaced on every anonymous exchange; sign-out ends it. Never put it in a URL or share it across origins.
21104
+ */
21105
+ continuation_token?: string;
21106
+ /**
21107
+ * The end user the token belongs to.
21108
+ */
21109
+ end_user?: {
21110
+ /**
21111
+ * End-user id (the merchant's own value, or anon_… for a visitor).
21112
+ */
21113
+ id: string;
21114
+ /**
21115
+ * Kind of end user: identified for one that signed in through a grant code, anonymous for a visitor admitted with a publishable key.
21116
+ */
21117
+ type: 'identified' | 'anonymous';
21118
+ };
21119
+ };
21120
+ /**
21121
+ * One page of end users.
21122
+ */
21123
+ export type EndEndUserPage = {
21124
+ /**
21125
+ * The end users of this page, most recently seen first.
21126
+ */
21127
+ data?: Array<EndEndUser>;
21128
+ /**
21129
+ * Cursor to send as page_token for the next page, or null when this is the last page.
21130
+ */
21131
+ next_page?: string | null;
21132
+ };
21133
+ /**
21134
+ * One end user in the organization's directory.
21135
+ */
21136
+ export type EndEndUser = {
21137
+ /**
21138
+ * Object type, always end user.
21139
+ */
21140
+ type?: 'end user';
21141
+ /**
21142
+ * End-user id — your own end_user_id for an identified person, or anon_… for a visitor admitted with a publishable key.
21143
+ */
21144
+ id?: string;
21145
+ /**
21146
+ * Kind of end user: identified for one that signed in through a grant code, anonymous for a visitor admitted with a publishable key.
21147
+ */
21148
+ end_user_type?: 'identified' | 'anonymous';
21149
+ /**
21150
+ * For an anonymous end user that later signed in, the identified end user it joined; null otherwise.
21151
+ */
21152
+ merged_into?: string | null;
21153
+ /**
21154
+ * The block fact (time, reason and actor) while the end user is blocked; null when it is not.
21155
+ */
21156
+ blocked?: EndEndUserBlock | null;
21157
+ /**
21158
+ * Product metadata recorded with this end user, as string key to string value; empty when none was sent.
21159
+ */
21160
+ metadata?: {
21161
+ [key: string]: string;
21162
+ };
21163
+ /**
21164
+ * RFC 3339 time the end user was first seen (first sign-in, admission or token issue).
21165
+ */
21166
+ first_seen_at?: string;
21167
+ /**
21168
+ * RFC 3339 time the end user was last seen; the directory list is ordered by it, newest first.
21169
+ */
21170
+ last_seen_at?: string;
21171
+ /**
21172
+ * Products this end user has used, with counts and last use; present only when expand asked for products.
21173
+ */
21174
+ products?: Array<EndEndUserProductUse>;
21175
+ /**
21176
+ * Sign-ins of this end user, newest first; present only when expand asked for sign_ins.
21177
+ */
21178
+ sign_ins?: Array<EndEndUserSignIn>;
21179
+ /**
21180
+ * Usage recorded for this end user; present only when expand asked for usage.
21181
+ */
21182
+ usage?: EndEndUserUsage;
21183
+ };
21184
+ /**
21185
+ * The result of deleting an end user.
21186
+ */
21187
+ export type EndEndUserDeleted = {
21188
+ /**
21189
+ * Object type, always end_user.deleted.
21190
+ */
21191
+ type?: 'end_user.deleted';
21192
+ /**
21193
+ * The end-user id that was deleted.
21194
+ */
21195
+ id?: string;
21196
+ /**
21197
+ * Always true; the call would have failed otherwise.
21198
+ */
21199
+ deleted?: boolean;
21200
+ };
21201
+ /**
21202
+ * What one end user has cost, read from billing by the endId dimension.
21203
+ */
21204
+ export type EndEndUserUsage = {
21205
+ /**
21206
+ * Object type, always end_user.usage.
21207
+ */
21208
+ type?: 'end_user.usage';
21209
+ /**
21210
+ * The end user this usage belongs to.
21211
+ */
21212
+ end_user_id?: string;
21213
+ /**
21214
+ * Total recorded cost over the window (or over everything when no window was sent).
21215
+ */
21216
+ total?: EndMoney;
21217
+ /**
21218
+ * The recorded cost split by the product that incurred it.
21219
+ */
21220
+ by_product?: Array<{
21221
+ /**
21222
+ * The product the cost belongs to.
21223
+ */
21224
+ product?: {
21225
+ /**
21226
+ * Product type: agent, content or application.
21227
+ */
21228
+ type: string;
21229
+ /**
21230
+ * Product id, for example agent_123 or cnt_0123456789abcdef.
21231
+ */
21232
+ id: string;
21233
+ };
21234
+ /**
21235
+ * Cost recorded for that product.
21236
+ */
21237
+ cost?: EndMoney;
21238
+ }>;
21239
+ /**
21240
+ * The recorded cost split by day.
21241
+ */
21242
+ by_day?: Array<{
21243
+ /**
21244
+ * Day the cost was recorded, as an ISO date such as 2026-11-17.
21245
+ */
21246
+ date?: string;
21247
+ /**
21248
+ * Cost recorded on that day.
21249
+ */
21250
+ cost?: EndMoney;
21251
+ }>;
21252
+ };
21253
+ /**
21254
+ * The optional detail of a block.
21255
+ */
21256
+ export type EndBlockInput = {
21257
+ /**
21258
+ * Why the end user is blocked, recorded with the block fact; omit for none.
21259
+ */
21260
+ reason?: string;
21261
+ };
21262
+ /**
21263
+ * The result of revoking every token of an end user.
21264
+ */
21265
+ export type EndTokensRevoked = {
21266
+ /**
21267
+ * Object type, always end_user_tokens_revoked.
21268
+ */
21269
+ type?: 'end_user_tokens_revoked';
21270
+ /**
21271
+ * How many sign-ins were revoked.
21272
+ */
21273
+ revoked?: number;
21274
+ };
21275
+ /**
21276
+ * One page of publishable keys.
21277
+ */
21278
+ export type EndPublishableKeyPage = {
21279
+ /**
21280
+ * The publishable keys of this page, newest first.
21281
+ */
21282
+ data?: Array<EndPublishableKey>;
21283
+ /**
21284
+ * Cursor to send as page_token for the next page, or null when this is the last page.
21285
+ */
21286
+ next_page?: string | null;
21287
+ };
21288
+ /**
21289
+ * A publishable key to mint.
21290
+ */
21291
+ export type EndCreatePublishableKeyInput = {
21292
+ /**
21293
+ * Label for the key, shown in the console and the key list, for example Storefront.
21294
+ */
21295
+ name: string;
21296
+ /**
21297
+ * Resource scopes an anonymous visitor may reach, at least one, each a scope string or an object with scope and params; grant only what the anonymous experience needs.
21298
+ */
21299
+ resources: Array<EndScopeInput>;
21300
+ /**
21301
+ * Most exchanges of this key per UTC minute, from 1 to 100000, counting every visitor together; omit or send null for no per-key limit.
21302
+ */
21303
+ anon_rate_per_min?: number | null;
21304
+ /**
21305
+ * Most new anonymous visitors this key admits per UTC day, from 0 to 10000000; returning visitors are not counted. Omit or send null for no limit.
21306
+ */
21307
+ daily_session_cap?: number | null;
21308
+ /**
21309
+ * The most the usage events of this key may cost in one UTC day, for example five dollars as amount 5.00 with currency USD; 0.00 closes the key. Omit or send null for no spend cap.
21310
+ */
21311
+ daily_spend_cap?: EndBudgetAmount | null;
21312
+ };
21313
+ /**
21314
+ * A key that admits anonymous visitors to the products it names.
21315
+ */
21316
+ export type EndPublishableKey = {
21317
+ /**
21318
+ * Object type, always end_user_publishable_key.
21319
+ */
21320
+ type?: 'end_user_publishable_key';
21321
+ /**
21322
+ * Key id (pk_…) used by the key list and the delete call.
21323
+ */
21324
+ id?: string;
21325
+ /**
21326
+ * Label you gave the key, for example Storefront.
21327
+ */
21328
+ name?: string;
21329
+ /**
21330
+ * The resource scopes the key grants an anonymous visitor.
21331
+ */
21332
+ resources?: Array<EndResourceGrant>;
21333
+ /**
21334
+ * RFC 3339 time the key was created; the key list is ordered by it, newest first.
21335
+ */
21336
+ created_at?: string;
21337
+ /**
21338
+ * Most exchanges this key allows per UTC minute, counting every exchange (a returning visitor's too), or null for no per-key limit; the per-IP limit of the exchange applies either way.
21339
+ */
21340
+ anon_rate_per_min?: number | null;
21341
+ /**
21342
+ * Most new anonymous visitors this key admits per UTC day, or null for no limit; a returning visitor that continues with its continuation_token is not counted, and 0 admits no new visitor at all.
21343
+ */
21344
+ daily_session_cap?: number | null;
21345
+ /**
21346
+ * The most the usage events of this key may cost in one UTC day, or null for no spend cap; once reached, every visitor is refused until 00:00 UTC and a running product answers its admission check as refused.
21347
+ */
21348
+ daily_spend_cap?: EndBudgetAmount | null;
21349
+ /**
21350
+ * The plaintext key value, present only in the create response; every later read returns the key without it, because only its hash is stored.
21351
+ */
21352
+ key?: string;
21353
+ };
21354
+ /**
21355
+ * The fields of a publishable key to change; at least one, and a field left out keeps its value.
21356
+ */
21357
+ export type EndUpdatePublishableKeyInput = {
21358
+ /**
21359
+ * New label for the key, 1 to 64 characters.
21360
+ */
21361
+ name?: string;
21362
+ /**
21363
+ * Most exchanges of this key per UTC minute, from 1 to 100000; null removes the per-key limit.
21364
+ */
21365
+ anon_rate_per_min?: number | null;
21366
+ /**
21367
+ * Most new anonymous visitors this key admits per UTC day, from 0 to 10000000; null removes the limit.
21368
+ */
21369
+ daily_session_cap?: number | null;
21370
+ /**
21371
+ * The most the usage events of this key may cost in one UTC day, for example five dollars as amount 5.00 with currency USD; null removes the cap.
21372
+ */
21373
+ daily_spend_cap?: EndBudgetAmount | null;
21374
+ };
21375
+ /**
21376
+ * The result of deleting a publishable key.
21377
+ */
21378
+ export type EndPublishableKeyDeleted = {
21379
+ /**
21380
+ * Object type, always end_user_publishable_key_deleted.
21381
+ */
21382
+ type?: 'end_user_publishable_key_deleted';
21383
+ /**
21384
+ * The key id that was deleted.
21385
+ */
21386
+ id?: string;
21387
+ /**
21388
+ * Always true; the call would have failed otherwise.
21389
+ */
21390
+ deleted?: boolean;
21391
+ };
21392
+ /**
21393
+ * The tenant event types.
21394
+ */
21395
+ export type EventsEventTypePage = {
21396
+ /**
21397
+ * One entry per type and schema version.
21398
+ */
21399
+ data: Array<EventsEventType>;
21400
+ /**
21401
+ * Always null today; the list is one page.
21402
+ */
21403
+ next_cursor: string | null;
21404
+ /**
21405
+ * Always false today; the list is one page.
21406
+ */
21407
+ has_more: boolean;
21408
+ };
21409
+ /**
21410
+ * What to subscribe to. The organization and the sink come from your credential and are not fields.
21411
+ */
21412
+ export type EventsCreateEventSubscriptionInput = {
21413
+ /**
21414
+ * The tenant event types to hear about, from events.types.list; an event of any one of them can match.
21415
+ */
21416
+ types: Array<string>;
21417
+ /**
21418
+ * Conditions that must all hold for an event to match; omit or leave empty to match every event of the types.
21419
+ */
21420
+ filters?: Array<EventsEventSubscriptionFilter>;
21421
+ /**
21422
+ * 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.
21423
+ */
21424
+ sink?: string;
21425
+ /**
21426
+ * True (the default) ends the subscription after the first letter; false keeps it until expires_at, at most 30 letters an hour.
21427
+ */
21428
+ once?: boolean;
21429
+ /**
21430
+ * When the subscription ends, RFC 3339. Defaults to 7 days from now; at most 30 days from now.
21431
+ */
21432
+ expires_at?: string;
21433
+ };
21434
+ /**
21435
+ * One event subscription.
21436
+ */
21437
+ export type EventsEventSubscription = {
21438
+ /**
21439
+ * The subscription id, esub_...; use it to retrieve or delete it.
21440
+ */
21441
+ id: string;
21442
+ /**
21443
+ * The tenant event types it listens to.
21444
+ */
21445
+ types: Array<string>;
21446
+ /**
21447
+ * The conditions that must all hold; empty means every event of the types.
21448
+ */
21449
+ filters: Array<EventsEventSubscriptionFilter>;
21450
+ /**
21451
+ * The inbox address the letters go to, agent:<id> or human:<id>.
21452
+ */
21453
+ sink: string;
21454
+ /**
21455
+ * Whether the subscription ends after its first letter.
21456
+ */
21457
+ once: boolean;
21458
+ /**
21459
+ * When the subscription ends and stops matching, RFC 3339.
21460
+ */
21461
+ expires_at: string;
21462
+ /**
21463
+ * When the subscription was created, RFC 3339.
21464
+ */
21465
+ created_at: string;
21466
+ /**
21467
+ * The address that created it, agent:<id> or human:<id>; only that caller can see it.
21468
+ */
21469
+ created_by: string;
21470
+ };
21471
+ /**
21472
+ * Your live subscriptions.
21473
+ */
21474
+ export type EventsEventSubscriptionPage = {
21475
+ /**
21476
+ * The subscriptions, at most limit.
21477
+ */
21478
+ data: Array<EventsEventSubscription>;
21479
+ /**
21480
+ * Always null today; the list is one page.
21481
+ */
21482
+ next_cursor: string | null;
21483
+ /**
21484
+ * Always false today; the list is one page.
21485
+ */
21486
+ has_more: boolean;
21487
+ };
20826
21488
  export type KnowledgeNativeVectorStore = {
20827
21489
  /**
20828
21490
  * Resource ID.
@@ -36977,7 +37639,7 @@ export type AutomationDraft = {
36977
37639
  */
36978
37640
  source: string;
36979
37641
  /**
36980
- * Draft revision tag (ETag); send it as expected_draft_revision when publishing or as If-Match when updating the draft; a mismatch returns 412.
37642
+ * Draft revision tag (ETag); send it back unchanged as draft.revision when updating the draft or publishing, and a mismatch returns 412.
36981
37643
  */
36982
37644
  revision: string;
36983
37645
  /**
@@ -37504,6 +38166,60 @@ export type CanvasLibraryVersion = {
37504
38166
  */
37505
38167
  removed: Array<CanvasComponentRef>;
37506
38168
  };
38169
+ /**
38170
+ * One canvas element resolved for a brief; which fields besides kind and node_id are present depends on kind.
38171
+ */
38172
+ export type CanvasProcessElement = {
38173
+ /**
38174
+ * What the element is; text carries content, image carries file_id, embed carries ref, other carries type, and html carries only its name because its source is large.
38175
+ */
38176
+ kind: 'text' | 'image' | 'html' | 'embed' | 'other';
38177
+ /**
38178
+ * Node id of the element on this canvas; use it with nodes.list to read the full node.
38179
+ */
38180
+ node_id: string;
38181
+ /**
38182
+ * The node's name, when it has one.
38183
+ */
38184
+ name?: string;
38185
+ /**
38186
+ * Text of a text node.
38187
+ */
38188
+ content?: string;
38189
+ /**
38190
+ * Platform file id of an image fill; read the picture through the file domain.
38191
+ */
38192
+ file_id?: string;
38193
+ /**
38194
+ * Reference of an embed node's platform object; read the object from its own domain, as the canvas stores no copy of it.
38195
+ */
38196
+ ref?: {
38197
+ /**
38198
+ * Object type such as media-asset or media-work.
38199
+ */
38200
+ object: string;
38201
+ /**
38202
+ * Object id inside its domain.
38203
+ */
38204
+ id: string;
38205
+ /**
38206
+ * Optional position inside the object, such as a timestamp or page.
38207
+ */
38208
+ anchor?: string;
38209
+ };
38210
+ /**
38211
+ * How an embed node is drawn on the canvas, one of card, embed or inline.
38212
+ */
38213
+ appearance?: string;
38214
+ /**
38215
+ * Node type of an element that is none of the other kinds.
38216
+ */
38217
+ type?: string;
38218
+ /**
38219
+ * For an output of an each step, which item it answers, such as a section name.
38220
+ */
38221
+ item?: string;
38222
+ };
37507
38223
  export type CanvasLibrarySummary = {
37508
38224
  /**
37509
38225
  * The library's canvas id; use it as canvas_id in library_versions and publish.
@@ -39370,7 +40086,7 @@ export type DevopsReleaseSchedule = {
39370
40086
  */
39371
40087
  export type DevopsGatePolicy = {
39372
40088
  /**
39373
- * How the merge gate's tests check reads on this project. evidence requires per-case test evidence: the check fails and names the command the author runs on the pushed head while a required case has no passing evidence. off does not gate tests: the check reports skipped, saying so, and no evidence is read. Absent means off, so a project that never wrote it keeps merging without test evidence until it is set to evidence.
40089
+ * How the merge gate's tests check reads on this project. evidence requires per-case test evidence: the check fails and names the command the author runs on the pushed head while a required case has no passing evidence. off does not gate tests: the check reports not_run with mode off, saying so, is not counted, and no evidence is read. Absent means off, so a project that never wrote it keeps merging without test evidence until it is set to evidence.
39374
40090
  */
39375
40091
  tests?: 'evidence' | 'off';
39376
40092
  /**
@@ -39386,7 +40102,7 @@ export type DevopsGatePolicy = {
39386
40102
  */
39387
40103
  mode: 'enforce' | 'evaluate' | 'off';
39388
40104
  /**
39389
- * What an unavailable check does: fail-closed blocks the gate, fail-open shows it without blocking.
40105
+ * What an unavailable check does: fail-closed blocks the gate, fail-open shows it without blocking. Every check defaults to fail-closed.
39390
40106
  */
39391
40107
  whenUnavailable: 'fail-closed' | 'fail-open';
39392
40108
  /**
@@ -39396,10 +40112,6 @@ export type DevopsGatePolicy = {
39396
40112
  [key: string]: unknown;
39397
40113
  };
39398
40114
  }>;
39399
- /**
39400
- * Subjects allowed to bypass the gate, as agent:<id> or human:<id>.
39401
- */
39402
- bypass?: Array<string>;
39403
40115
  };
39404
40116
  /**
39405
40117
  * One commit inside a release, so a reader can see what is about to ship without leaving this answer.
@@ -40212,7 +40924,7 @@ export type DevopsChangeCell = {
40212
40924
  */
40213
40925
  export type DevopsMergeGate = {
40214
40926
  /**
40215
- * The gate's verdict: failed as soon as one check failed, pending while one is still undecided, passed only when every check passed or was skipped.
40927
+ * The gate's verdict, fail-closed: failed as soon as one counted check failed, could not be evaluated (unavailable) or applies and produced no answer (not_run); pending while a counted check is still waiting; passed only when every counted check passed or does not apply (not_applicable). A check with no answer never passes; the one exception is a recorded override (overrideGate).
40216
40928
  */
40217
40929
  state: 'pending' | 'passed' | 'failed';
40218
40930
  /**
@@ -40228,9 +40940,38 @@ export type DevopsMergeGate = {
40228
40940
  */
40229
40941
  name: 'exposure-declared' | 'flag-registered' | 'flag-paired-scenarios' | 'removal-ticket' | 'tests' | 'lockfile' | 'exposure-judged' | 'owner-approved' | 'repo-lint';
40230
40942
  /**
40231
- * The check's verdict: skipped means the check does not apply to this exposure kind, and pending means its evidence has not arrived yet — which is never treated as passing.
40943
+ * The check's verdict; not_applicable means the check does not apply to this change and passes, while not_run means it applies and produced no answer, which never passes when counted.
40944
+ */
40945
+ result: 'passed' | 'failed' | 'not_applicable' | 'not_run' | 'pending' | 'unavailable';
40946
+ /**
40947
+ * How the project's gate policy counts this check; enforce when absent. off on a shown check means it is reported and not counted.
40948
+ */
40949
+ mode?: 'enforce' | 'evaluate' | 'off';
40950
+ /**
40951
+ * Whether this check moves the gate's state; false for evaluate and off checks and for a check a recorded override let through. Absent means counted.
40952
+ */
40953
+ counted?: boolean;
40954
+ /**
40955
+ * Why a check has no answer; infrastructure means the platform failed (the build machine did not come up, its records could not be read, no result within the bound), not the change, so the next step is rerunGate, not an edit.
40956
+ */
40957
+ cause?: 'infrastructure';
40958
+ /**
40959
+ * Present when a recorded override let this check through at this head: the check keeps its real result and stops counting.
40232
40960
  */
40233
- result: 'passed' | 'failed' | 'skipped' | 'pending';
40961
+ overriddenBy?: {
40962
+ /**
40963
+ * The override id (gov_…) overrideGate recorded.
40964
+ */
40965
+ override: string;
40966
+ /**
40967
+ * The holder of a listed position who authorized it, as agent:<id> or human:<id>.
40968
+ */
40969
+ authorizedBy: string;
40970
+ /**
40971
+ * The ticket the authorization is written on.
40972
+ */
40973
+ ticket: string;
40974
+ };
40234
40975
  /**
40235
40976
  * What to do about a failed or pending check, or the gatekeeper's reason for a judgement; absent when the check simply passed.
40236
40977
  */
@@ -40604,6 +41345,221 @@ export type DevopsCleanupEntry = {
40604
41345
  */
40605
41346
  error: string | null;
40606
41347
  };
41348
+ /**
41349
+ * One resource the sign-in may reach, as a scope string or an object carrying that scope and product params.
41350
+ */
41351
+ export type EndScopeInput = string | {
41352
+ /**
41353
+ * Scope in the form <type>:<id>:<action>, where <id> may be * for every object of that type.
41354
+ */
41355
+ scope: string;
41356
+ /**
41357
+ * Product-defined data for this grant, for example an agent version or a budget.
41358
+ */
41359
+ params?: {
41360
+ [key: string]: unknown;
41361
+ };
41362
+ };
41363
+ /**
41364
+ * One resource an end user may reach, as the sign-in carries it.
41365
+ */
41366
+ export type EndResourceGrant = {
41367
+ /**
41368
+ * Scope in the form <type>:<id>:<action> — agent:<id>:chat, content:<id>:play or application:<id>:visit — where <id> may be * for every object of that type.
41369
+ */
41370
+ scope?: string;
41371
+ /**
41372
+ * Product-defined data for this grant, for example an agent version or a budget; this service stores it and never interprets it.
41373
+ */
41374
+ params?: {
41375
+ [key: string]: unknown;
41376
+ };
41377
+ };
41378
+ /**
41379
+ * The refusal this face returns for a non-2xx status; the same envelope as the other own faces under /end user/v1.
41380
+ */
41381
+ export type EndErrorEnvelope = {
41382
+ /**
41383
+ * The refusal itself.
41384
+ */
41385
+ error?: {
41386
+ /**
41387
+ * Domain code of the refusal, for example END_USER_NOT_FOUND, GRANT_CODE_INVALID or INVALID_PARAMS.
41388
+ */
41389
+ code: string;
41390
+ /**
41391
+ * Human-readable reason, produced by the service or by this door, naming the condition that failed.
41392
+ */
41393
+ message: string;
41394
+ /**
41395
+ * Field at fault for an INVALID_PARAMS refusal, for example confirm or resources; null when the refusal is not about one field.
41396
+ */
41397
+ param?: string | null;
41398
+ };
41399
+ };
41400
+ /**
41401
+ * The block fact of an end user.
41402
+ */
41403
+ export type EndEndUserBlock = {
41404
+ /**
41405
+ * RFC 3339 time the end user was blocked; a repeated block keeps the first time.
41406
+ */
41407
+ time?: string;
41408
+ /**
41409
+ * Reason recorded with the block, or null when none was given.
41410
+ */
41411
+ reason?: string | null;
41412
+ /**
41413
+ * Actor that blocked the end user, either human:<user id> or agent:<api key id>.
41414
+ */
41415
+ by?: string;
41416
+ };
41417
+ /**
41418
+ * What one product has done with this end user.
41419
+ */
41420
+ export type EndEndUserProductUse = {
41421
+ /**
41422
+ * The product the end user used.
41423
+ */
41424
+ product?: {
41425
+ /**
41426
+ * Product type: agent, content or application.
41427
+ */
41428
+ type: string;
41429
+ /**
41430
+ * Product id, for example agent_123 or cnt_0123456789abcdef.
41431
+ */
41432
+ id: string;
41433
+ };
41434
+ /**
41435
+ * How many times this end user was admitted to that product.
41436
+ */
41437
+ count?: number;
41438
+ /**
41439
+ * RFC 3339 time this end user was last admitted to that product.
41440
+ */
41441
+ last_used_at?: string;
41442
+ };
41443
+ /**
41444
+ * One sign-in of an end user.
41445
+ */
41446
+ export type EndEndUserSignIn = {
41447
+ /**
41448
+ * Sign-in id (csi_…) that its tokens renew and that the sign-out act ends.
41449
+ */
41450
+ id?: string;
41451
+ /**
41452
+ * The resource scopes this sign-in may reach, recorded at issue time.
41453
+ */
41454
+ resources?: Array<EndResourceGrant>;
41455
+ /**
41456
+ * Page origin this sign-in is bound to, or null when it was not bound.
41457
+ */
41458
+ origin?: string | null;
41459
+ /**
41460
+ * RFC 3339 time this sign-in started.
41461
+ */
41462
+ created_at?: string;
41463
+ /**
41464
+ * RFC 3339 time this sign-in ends; a renewal of its tokens never extends it.
41465
+ */
41466
+ expires_at?: string;
41467
+ /**
41468
+ * RFC 3339 time this sign-in was revoked, or null while it is live.
41469
+ */
41470
+ revoked_at?: string | null;
41471
+ };
41472
+ /**
41473
+ * One money figure, as the platform recorded it.
41474
+ */
41475
+ export type EndMoney = {
41476
+ /**
41477
+ * Amount as a decimal string in the currency's smallest written form, for example 12.340000; never a float and never arithmetic on the client.
41478
+ */
41479
+ amount?: string;
41480
+ /**
41481
+ * Currency of the amount; platform usage is charged in USD.
41482
+ */
41483
+ currency?: string;
41484
+ };
41485
+ /**
41486
+ * A limit you set, as a money amount in the budget format.
41487
+ */
41488
+ export type EndBudgetAmount = {
41489
+ /**
41490
+ * Amount in major units of the currency as a decimal string with at most 2 decimals, for example 5.00 for five dollars; read back with exactly 2 decimals. Never a float, never cents.
41491
+ */
41492
+ amount: string;
41493
+ /**
41494
+ * Currency the amount is in, USD or CNY. The cap is compared with the usage the platform charged in this same currency; spend in another currency is not compared.
41495
+ */
41496
+ currency: 'USD' | 'CNY';
41497
+ };
41498
+ /**
41499
+ * One tenant event type at one schema version.
41500
+ */
41501
+ export type EventsEventType = {
41502
+ /**
41503
+ * The event type name, for example automation.run.finished; pass it in the types of subscriptions.create.
41504
+ */
41505
+ type: string;
41506
+ /**
41507
+ * 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.
41508
+ */
41509
+ schemaversion: number;
41510
+ /**
41511
+ * What the event means and when it is published.
41512
+ */
41513
+ description?: string;
41514
+ /**
41515
+ * JSON Schema of the event's data, the body of the letter a subscription writes.
41516
+ */
41517
+ data_schema: {
41518
+ [key: string]: unknown;
41519
+ };
41520
+ /**
41521
+ * The names a filter of this type may use, always subject and actor, plus data.<field> for each top-level field of data_schema.
41522
+ */
41523
+ filterable: Array<string>;
41524
+ };
41525
+ /**
41526
+ * An RFC 9457 problem; every non-2xx response of this face has this shape.
41527
+ */
41528
+ export type EventsEventsProblem = {
41529
+ /**
41530
+ * The HTTP status of the response.
41531
+ */
41532
+ status: number;
41533
+ /**
41534
+ * Machine-readable failure, such as INVALID_PARAMS, UNSUPPORTED_FILTER_DIALECT, SUBSCRIPTION_NOT_FOUND or PROVIDER_UNAVAILABLE.
41535
+ */
41536
+ code: string;
41537
+ /**
41538
+ * Human-readable reason; it names the offending field and what to do.
41539
+ */
41540
+ message: string;
41541
+ /**
41542
+ * True when repeating the same call can succeed, as for PROVIDER_UNAVAILABLE; false when the request itself must change.
41543
+ */
41544
+ retryable?: boolean;
41545
+ };
41546
+ /**
41547
+ * 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>.
41548
+ */
41549
+ export type EventsEventSubscriptionFilter = {
41550
+ /**
41551
+ * The attribute equals the value, for example { subject: "runs/run_1" } or { "data.status": "faulted" }.
41552
+ */
41553
+ exact?: {
41554
+ [key: string]: string;
41555
+ };
41556
+ /**
41557
+ * The attribute starts with the value, for example { subject: "runs/" }.
41558
+ */
41559
+ prefix?: {
41560
+ [key: string]: string;
41561
+ };
41562
+ };
40607
41563
  /**
40608
41564
  * Counts of files still attached to the store or batch, grouped by ingestion status.
40609
41565
  */
@@ -51298,7 +52254,7 @@ export type PraxisSdkSsePostModelV1Messages = {
51298
52254
  };
51299
52255
  export type PraxisSdkSseGetAgentV1SessionsSessionIdEventsStream = AgentSseEvent;
51300
52256
  export type PraxisSdkSseGetAgentV1SessionsSessionIdThreadsThreadIdStream = AgentSseEvent;
51301
- export type PraxisSdkSseGetAutomationV1RunsIdEvents = ({
52257
+ export type PraxisSdkSseGetAutomationV1RunsRunIdEvents = ({
51302
52258
  /**
51303
52259
  * 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.
51304
52260
  */
@@ -51331,7 +52287,7 @@ export type PraxisSdkSseGetAutomationV1RunsIdEvents = ({
51331
52287
  [key: string]: unknown;
51332
52288
  };
51333
52289
  };
51334
- export type PraxisSdkSseGetAutomationV1RunsIdLogs = ({
52290
+ export type PraxisSdkSseGetAutomationV1RunsRunIdLogs = ({
51335
52291
  /**
51336
52292
  * SSE event name: log, one log line is carried in data.
51337
52293
  */
@@ -52967,6 +53923,22 @@ export type DevopsWorkspaceStagePath = DevopsWorkspaceStage;
52967
53923
  * 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.
52968
53924
  */
52969
53925
  export type DevopsUnitIdPath = string;
53926
+ /**
53927
+ * Browser page origin the exchange is made from, for example https://school.example.com. Send it when the sign-in is bound to one; the service compares it with the binding and refuses a mismatch.
53928
+ */
53929
+ export type EndOriginHeader = string;
53930
+ /**
53931
+ * End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND.
53932
+ */
53933
+ export type EndEndUserIdPath = string;
53934
+ /**
53935
+ * Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value.
53936
+ */
53937
+ export type EndPublishableKeyIdPath = string;
53938
+ /**
53939
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
53940
+ */
53941
+ export type EventsSubscriptionId = string;
52970
53942
  /**
52971
53943
  * A type name from types.list, with its dots preserved — a display label is not accepted.
52972
53944
  */
@@ -69756,15 +70728,15 @@ export type CreateAgentUploadContentUrlResponse = CreateAgentUploadContentUrlRes
69756
70728
  export type CreateAudioSpeechData = {
69757
70729
  body: unknown & {
69758
70730
  /**
69759
- * Speech model id, for example `melotts` or `aura-2-en`; list candidates with listModels?type=speech. Router support (supported): Verified to take effect.
70731
+ * Speech model id, for example `aura-2-en`; list candidates with listModels?type=speech. Router support (supported): Verified to take effect.
69760
70732
  */
69761
70733
  model: string;
69762
70734
  /**
69763
- * Text to synthesize, 1 to 4096 characters. `text` and `prompt` are aliases; when several are given, `input` wins. Router support (supported): melotts supports input, lang and response_format=wav; text/prompt aliases also work.
70735
+ * Text to synthesize, 1 to 4096 characters. `text` and `prompt` are aliases; when several are given, `input` wins. Router support (supported): input is supported; text/prompt aliases also work.
69764
70736
  */
69765
70737
  input?: string;
69766
70738
  /**
69767
- * Aura speaker name; custom voice objects are rejected by Aura. MeloTTS ignores voice with a warning unless provider.require_parameters is true, in which case it returns 400.
70739
+ * Aura speaker name; custom voice objects are rejected by Aura.
69768
70740
  */
69769
70741
  voice?: string | {
69770
70742
  /**
@@ -69777,7 +70749,7 @@ export type CreateAudioSpeechData = {
69777
70749
  */
69778
70750
  instructions?: string;
69779
70751
  /**
69780
- * MeloTTS supports only wav (default); all other explicit formats return 400. When omitted the actual upstream format is returned. Aura defaults to mp3; aac returns 400.
70752
+ * When omitted the actual upstream format is returned. Aura defaults to mp3; aac returns 400.
69781
70753
  */
69782
70754
  response_format?: 'mp3' | 'opus' | 'flac' | 'wav' | 'pcm';
69783
70755
  /**
@@ -69793,7 +70765,7 @@ export type CreateAudioSpeechData = {
69793
70765
  */
69794
70766
  text?: string;
69795
70767
  /**
69796
- * MeloTTS alias for input; input then text take precedence.
70768
+ * Alias for input; input then text take precedence.
69797
70769
  */
69798
70770
  prompt?: string;
69799
70771
  /**
@@ -69801,7 +70773,7 @@ export type CreateAudioSpeechData = {
69801
70773
  */
69802
70774
  speaker?: string;
69803
70775
  /**
69804
- * MeloTTS language; defaults to en. Use this field to select language; voice is not supported by MeloTTS.
70776
+ * Language code. No speech model currently offered reads it. Aura rejects lang with 400 input_not_representable so omit it.
69805
70777
  */
69806
70778
  lang?: 'en' | 'fr' | 'es' | 'zh' | 'ja' | 'ko';
69807
70779
  /**
@@ -79323,10 +80295,10 @@ export type ListOrganizationCostsData = {
79323
80295
  */
79324
80296
  time_zone?: string;
79325
80297
  /**
79326
- * 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).
80298
+ * 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.
79327
80299
  *
79328
80300
  */
79329
- group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit'>;
80301
+ group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit' | 'SessionId' | 'AgentId' | 'ApiKeyId' | 'RunId'>;
79330
80302
  /**
79331
80303
  * Opaque cursor from the previous page's next_page.
79332
80304
  */
@@ -79393,6 +80365,22 @@ export type ListOrganizationCostsResponses = {
79393
80365
  * Display name of the resource; falls back to ResourceId when no name is known.
79394
80366
  */
79395
80367
  ResourceName?: string;
80368
+ /**
80369
+ * The session the usage belongs to. Present when SessionId is grouped by; null for a call no session made.
80370
+ */
80371
+ SessionId?: string | null;
80372
+ /**
80373
+ * The agent that made the call. Present when AgentId is grouped by; null when the caller is not a session's agent.
80374
+ */
80375
+ AgentId?: string | null;
80376
+ /**
80377
+ * The API key the call was made with. Present when ApiKeyId is grouped by; null for session, run and binding callers.
80378
+ */
80379
+ ApiKeyId?: string | null;
80380
+ /**
80381
+ * The automation run the usage belongs to. Present when RunId is grouped by; null when no automation run made the call.
80382
+ */
80383
+ RunId?: string | null;
79396
80384
  /**
79397
80385
  * Amount in BillingCurrency: US dollars for USD, decimal string, 6 decimals.
79398
80386
  */
@@ -79441,10 +80429,10 @@ export type ListOrganizationUsageData = {
79441
80429
  */
79442
80430
  time_zone?: string;
79443
80431
  /**
79444
- * 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).
80432
+ * 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.
79445
80433
  *
79446
80434
  */
79447
- group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit'>;
80435
+ group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit' | 'SessionId' | 'AgentId' | 'ApiKeyId' | 'RunId'>;
79448
80436
  /**
79449
80437
  * Opaque cursor from the previous page's next_page.
79450
80438
  */
@@ -79511,6 +80499,22 @@ export type ListOrganizationUsageResponses = {
79511
80499
  * Display name of the resource; falls back to ResourceId when no name is known.
79512
80500
  */
79513
80501
  ResourceName?: string;
80502
+ /**
80503
+ * The session the usage belongs to. Present when SessionId is grouped by; null for a call no session made.
80504
+ */
80505
+ SessionId?: string | null;
80506
+ /**
80507
+ * The agent that made the call. Present when AgentId is grouped by; null when the caller is not a session's agent.
80508
+ */
80509
+ AgentId?: string | null;
80510
+ /**
80511
+ * The API key the call was made with. Present when ApiKeyId is grouped by; null for session, run and binding callers.
80512
+ */
80513
+ ApiKeyId?: string | null;
80514
+ /**
80515
+ * The automation run the usage belongs to. Present when RunId is grouped by; null when no automation run made the call.
80516
+ */
80517
+ RunId?: string | null;
79514
80518
  /**
79515
80519
  * Exact decimal string in ConsumedUnit.
79516
80520
  */
@@ -79627,6 +80631,22 @@ export type ListOrganizationEventsResponses = {
79627
80631
  * X-Request-Id of the API call that produced the usage; null for usage that does not come from a request.
79628
80632
  */
79629
80633
  request_id: string | null;
80634
+ /**
80635
+ * The session the usage belongs to (sesn_…, public form); null for a call no session made.
80636
+ */
80637
+ session_id: string | null;
80638
+ /**
80639
+ * The agent that made the call (agent_…); null when the caller is not a session's agent.
80640
+ */
80641
+ agent_id: string | null;
80642
+ /**
80643
+ * The API key the call was made with (key_…); null for session, run and binding callers.
80644
+ */
80645
+ api_key_id: string | null;
80646
+ /**
80647
+ * The automation run the usage belongs to (run_…); null when no automation run made the call.
80648
+ */
80649
+ run_id: string | null;
79630
80650
  /**
79631
80651
  * How the usage was charged: settlement state, any shortfall, and why nothing was charged.
79632
80652
  */
@@ -79748,6 +80768,22 @@ export type GetOrganizationEventResponses = {
79748
80768
  * X-Request-Id of the API call that produced the usage; null for usage that does not come from a request.
79749
80769
  */
79750
80770
  request_id: string | null;
80771
+ /**
80772
+ * The session the usage belongs to (sesn_…, public form); null for a call no session made.
80773
+ */
80774
+ session_id: string | null;
80775
+ /**
80776
+ * The agent that made the call (agent_…); null when the caller is not a session's agent.
80777
+ */
80778
+ agent_id: string | null;
80779
+ /**
80780
+ * The API key the call was made with (key_…); null for session, run and binding callers.
80781
+ */
80782
+ api_key_id: string | null;
80783
+ /**
80784
+ * The automation run the usage belongs to (run_…); null when no automation run made the call.
80785
+ */
80786
+ run_id: string | null;
79751
80787
  /**
79752
80788
  * How the usage was charged: settlement state, any shortfall, and why nothing was charged.
79753
80789
  */
@@ -80026,9 +81062,9 @@ export type ListOrganizationNotificationLettersResponses = {
80026
81062
  */
80027
81063
  thread: string;
80028
81064
  /**
80029
- * 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.
81065
+ * 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.
80030
81066
  */
80031
- kind: 'notice' | 'mention' | 'decision';
81067
+ kind: 'notice' | 'mention' | 'decision' | 'event';
80032
81068
  /**
80033
81069
  * Where the letter came from (a ticket number, a comment, a change); null when the sender gave none.
80034
81070
  */
@@ -80215,7 +81251,7 @@ export type GetOrganizationNotificationLetterResponses = {
80215
81251
  /**
80216
81252
  * The letter's kind (ADR-193 §2, #4107).
80217
81253
  */
80218
- kind: 'notice' | 'mention' | 'decision';
81254
+ kind: 'notice' | 'mention' | 'decision' | 'event';
80219
81255
  /**
80220
81256
  * Where the letter came from (a ticket number, a comment, a change); null when the sender gave none.
80221
81257
  */
@@ -80308,7 +81344,7 @@ export type ReadAllOrganizationNotificationLettersData = {
80308
81344
  /**
80309
81345
  * Only letters of this kind; omit for all kinds.
80310
81346
  */
80311
- kind?: 'notice' | 'mention' | 'decision';
81347
+ kind?: 'notice' | 'mention' | 'decision' | 'event';
80312
81348
  };
80313
81349
  path?: never;
80314
81350
  query?: never;
@@ -82548,6 +83584,117 @@ export type GetByodPairingResponses = {
82548
83584
  };
82549
83585
  };
82550
83586
  export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
83587
+ export type GetByodPairingStatusData = {
83588
+ body?: never;
83589
+ path: {
83590
+ /**
83591
+ * The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
83592
+ */
83593
+ code: string;
83594
+ };
83595
+ query?: never;
83596
+ url: '/sandbox/v1/byod/pairings/{code}/status';
83597
+ };
83598
+ export type GetByodPairingStatusErrors = {
83599
+ /**
83600
+ * Authentication required: supply an organization API key that carries a tenant.
83601
+ */
83602
+ 401: unknown;
83603
+ /**
83604
+ * NOT_FOUND: no such pairing for this organization. The code is unknown or belongs to another organization; the two are indistinguishable.
83605
+ */
83606
+ 404: unknown;
83607
+ /**
83608
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
83609
+ */
83610
+ 503: unknown;
83611
+ };
83612
+ export type GetByodPairingStatusResponses = {
83613
+ /**
83614
+ * One pairing of the organization.
83615
+ */
83616
+ 200: {
83617
+ /**
83618
+ * The 8-character pairing code that was asked about.
83619
+ */
83620
+ code: string;
83621
+ /**
83622
+ * When the code stops working, as an ISO-8601 timestamp.
83623
+ */
83624
+ expires_at: string;
83625
+ /**
83626
+ * The device this code registered, or null while no phone has claimed it (or when that device was disconnected since).
83627
+ */
83628
+ claimed_device: {
83629
+ /**
83630
+ * Resource type; always "byod_device".
83631
+ */
83632
+ object: 'byod_device';
83633
+ /**
83634
+ * 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.
83635
+ */
83636
+ id: string;
83637
+ /**
83638
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
83639
+ */
83640
+ platform: 'android' | 'macos' | 'linux';
83641
+ /**
83642
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
83643
+ */
83644
+ name: string;
83645
+ /**
83646
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
83647
+ */
83648
+ model: string;
83649
+ /**
83650
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
83651
+ */
83652
+ os_version: string;
83653
+ /**
83654
+ * 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.
83655
+ */
83656
+ online: boolean;
83657
+ /**
83658
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
83659
+ */
83660
+ last_seen_at: string | null;
83661
+ /**
83662
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
83663
+ */
83664
+ created_at: string;
83665
+ /**
83666
+ * 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).
83667
+ */
83668
+ capabilities: Array<'display' | 'agent'>;
83669
+ /**
83670
+ * 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.
83671
+ */
83672
+ agent_dirs: Array<string>;
83673
+ /**
83674
+ * 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.
83675
+ */
83676
+ agent_bindings: Array<{
83677
+ /**
83678
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
83679
+ */
83680
+ dir: string;
83681
+ /**
83682
+ * The agent the directory is bound to: its identity number or its agent id.
83683
+ */
83684
+ agent: string;
83685
+ }>;
83686
+ /**
83687
+ * 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.
83688
+ */
83689
+ envd_version: string | null;
83690
+ /**
83691
+ * 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.
83692
+ */
83693
+ allow_bypass: boolean;
83694
+ } | null;
83695
+ };
83696
+ };
83697
+ export type GetByodPairingStatusResponse = GetByodPairingStatusResponses[keyof GetByodPairingStatusResponses];
82551
83698
  export type ClaimByodPairingData = {
82552
83699
  /**
82553
83700
  * What the phone's app knows about itself when it claims the pairing.
@@ -98168,14 +99315,14 @@ export type AutomationActionsGetData = {
98168
99315
  /**
98169
99316
  * 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.
98170
99317
  */
98171
- ns: string;
99318
+ namespace: string;
98172
99319
  /**
98173
99320
  * 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}.
98174
99321
  */
98175
99322
  name: string;
98176
99323
  };
98177
99324
  query?: never;
98178
- url: '/automation/v1/actions/{ns}/{name}';
99325
+ url: '/automation/v1/actions/{namespace}/{name}';
98179
99326
  };
98180
99327
  export type AutomationActionsGetErrors = {
98181
99328
  /**
@@ -98298,7 +99445,7 @@ export type AutomationActionsUpdateData = {
98298
99445
  /**
98299
99446
  * 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.
98300
99447
  */
98301
- ns: string;
99448
+ namespace: string;
98302
99449
  /**
98303
99450
  * 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}.
98304
99451
  */
@@ -98310,7 +99457,7 @@ export type AutomationActionsUpdateData = {
98310
99457
  */
98311
99458
  dry_run?: boolean;
98312
99459
  };
98313
- url: '/automation/v1/actions/{ns}/{name}';
99460
+ url: '/automation/v1/actions/{namespace}/{name}';
98314
99461
  };
98315
99462
  export type AutomationActionsUpdateErrors = {
98316
99463
  /**
@@ -98361,7 +99508,7 @@ export type AutomationActionsRevisionsData = {
98361
99508
  /**
98362
99509
  * 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.
98363
99510
  */
98364
- ns: string;
99511
+ namespace: string;
98365
99512
  /**
98366
99513
  * 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}.
98367
99514
  */
@@ -98381,7 +99528,7 @@ export type AutomationActionsRevisionsData = {
98381
99528
  */
98382
99529
  expand?: 'source';
98383
99530
  };
98384
- url: '/automation/v1/actions/{ns}/{name}/revisions';
99531
+ url: '/automation/v1/actions/{namespace}/{name}/revisions';
98385
99532
  };
98386
99533
  export type AutomationActionsRevisionsErrors = {
98387
99534
  /**
@@ -98420,7 +99567,7 @@ export type AutomationActionsRevisionData = {
98420
99567
  /**
98421
99568
  * 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.
98422
99569
  */
98423
- ns: string;
99570
+ namespace: string;
98424
99571
  /**
98425
99572
  * 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}.
98426
99573
  */
@@ -98431,7 +99578,7 @@ export type AutomationActionsRevisionData = {
98431
99578
  revision: string;
98432
99579
  };
98433
99580
  query?: never;
98434
- url: '/automation/v1/actions/{ns}/{name}/revisions/{revision}';
99581
+ url: '/automation/v1/actions/{namespace}/{name}/revisions/{revision}';
98435
99582
  };
98436
99583
  export type AutomationActionsRevisionErrors = {
98437
99584
  /**
@@ -98481,14 +99628,14 @@ export type AutomationActionsRollbackData = {
98481
99628
  /**
98482
99629
  * 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.
98483
99630
  */
98484
- ns: string;
99631
+ namespace: string;
98485
99632
  /**
98486
99633
  * 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}.
98487
99634
  */
98488
99635
  name: string;
98489
99636
  };
98490
99637
  query?: never;
98491
- url: '/automation/v1/actions/{ns}/{name}/rollback';
99638
+ url: '/automation/v1/actions/{namespace}/{name}/rollback';
98492
99639
  };
98493
99640
  export type AutomationActionsRollbackErrors = {
98494
99641
  /**
@@ -98542,7 +99689,7 @@ export type AutomationActionsInvocationsData = {
98542
99689
  /**
98543
99690
  * 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.
98544
99691
  */
98545
- ns: string;
99692
+ namespace: string;
98546
99693
  /**
98547
99694
  * 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}.
98548
99695
  */
@@ -98578,7 +99725,7 @@ export type AutomationActionsInvocationsData = {
98578
99725
  */
98579
99726
  'created_at[gte]'?: string;
98580
99727
  };
98581
- url: '/automation/v1/actions/{ns}/{name}/invocations';
99728
+ url: '/automation/v1/actions/{namespace}/{name}/invocations';
98582
99729
  };
98583
99730
  export type AutomationActionsInvocationsErrors = {
98584
99731
  /**
@@ -98617,7 +99764,7 @@ export type AutomationActionsDependentsData = {
98617
99764
  /**
98618
99765
  * 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.
98619
99766
  */
98620
- ns: string;
99767
+ namespace: string;
98621
99768
  /**
98622
99769
  * 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}.
98623
99770
  */
@@ -98633,7 +99780,7 @@ export type AutomationActionsDependentsData = {
98633
99780
  */
98634
99781
  cursor?: string;
98635
99782
  };
98636
- url: '/automation/v1/actions/{ns}/{name}/dependents';
99783
+ url: '/automation/v1/actions/{namespace}/{name}/dependents';
98637
99784
  };
98638
99785
  export type AutomationActionsDependentsErrors = {
98639
99786
  /**
@@ -98672,14 +99819,14 @@ export type AutomationActionsArchiveData = {
98672
99819
  /**
98673
99820
  * 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.
98674
99821
  */
98675
- ns: string;
99822
+ namespace: string;
98676
99823
  /**
98677
99824
  * 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}.
98678
99825
  */
98679
99826
  name: string;
98680
99827
  };
98681
99828
  query?: never;
98682
- url: '/automation/v1/actions/{ns}/{name}/archive';
99829
+ url: '/automation/v1/actions/{namespace}/{name}/archive';
98683
99830
  };
98684
99831
  export type AutomationActionsArchiveErrors = {
98685
99832
  /**
@@ -98713,14 +99860,14 @@ export type AutomationActionsRestoreData = {
98713
99860
  /**
98714
99861
  * 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.
98715
99862
  */
98716
- ns: string;
99863
+ namespace: string;
98717
99864
  /**
98718
99865
  * 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}.
98719
99866
  */
98720
99867
  name: string;
98721
99868
  };
98722
99869
  query?: never;
98723
- url: '/automation/v1/actions/{ns}/{name}/restore';
99870
+ url: '/automation/v1/actions/{namespace}/{name}/restore';
98724
99871
  };
98725
99872
  export type AutomationActionsRestoreErrors = {
98726
99873
  /**
@@ -98835,9 +99982,9 @@ export type AutomationScriptsCreateData = {
98835
99982
  */
98836
99983
  description?: string;
98837
99984
  /**
98838
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99985
+ * 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 }.
98839
99986
  */
98840
- draft?: string;
99987
+ draft?: AutomationDraftCreateInput | string;
98841
99988
  /**
98842
99989
  * At most 50 labels; keys contain 1–40 characters and values at most 500 characters.
98843
99990
  */
@@ -98892,14 +100039,14 @@ export type AutomationScriptsGetData = {
98892
100039
  /**
98893
100040
  * 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.
98894
100041
  */
98895
- ns: string;
100042
+ namespace: string;
98896
100043
  /**
98897
100044
  * 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}.
98898
100045
  */
98899
100046
  name: string;
98900
100047
  };
98901
100048
  query?: never;
98902
- url: '/automation/v1/scripts/{ns}/{name}';
100049
+ url: '/automation/v1/scripts/{namespace}/{name}';
98903
100050
  };
98904
100051
  export type AutomationScriptsGetErrors = {
98905
100052
  /**
@@ -98936,28 +100083,30 @@ export type AutomationScriptsPatchData = {
98936
100083
  [key: string]: string;
98937
100084
  };
98938
100085
  /**
98939
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
100086
+ * 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.
98940
100087
  */
98941
- draft?: string;
100088
+ draft?: AutomationDraftUpdateInput | string;
98942
100089
  };
98943
- headers: {
100090
+ headers?: {
98944
100091
  /**
98945
- * 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.
100092
+ * 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.
100093
+ *
100094
+ * @deprecated
98946
100095
  */
98947
- 'If-Match': string;
100096
+ 'If-Match'?: string;
98948
100097
  };
98949
100098
  path: {
98950
100099
  /**
98951
100100
  * 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.
98952
100101
  */
98953
- ns: string;
100102
+ namespace: string;
98954
100103
  /**
98955
100104
  * 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}.
98956
100105
  */
98957
100106
  name: string;
98958
100107
  };
98959
100108
  query?: never;
98960
- url: '/automation/v1/scripts/{ns}/{name}';
100109
+ url: '/automation/v1/scripts/{namespace}/{name}';
98961
100110
  };
98962
100111
  export type AutomationScriptsPatchErrors = {
98963
100112
  /**
@@ -98999,14 +100148,14 @@ export type AutomationScriptsArchiveData = {
98999
100148
  /**
99000
100149
  * 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.
99001
100150
  */
99002
- ns: string;
100151
+ namespace: string;
99003
100152
  /**
99004
100153
  * 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}.
99005
100154
  */
99006
100155
  name: string;
99007
100156
  };
99008
100157
  query?: never;
99009
- url: '/automation/v1/scripts/{ns}/{name}/archive';
100158
+ url: '/automation/v1/scripts/{namespace}/{name}/archive';
99010
100159
  };
99011
100160
  export type AutomationScriptsArchiveErrors = {
99012
100161
  /**
@@ -99044,14 +100193,14 @@ export type AutomationScriptsRestoreData = {
99044
100193
  /**
99045
100194
  * 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.
99046
100195
  */
99047
- ns: string;
100196
+ namespace: string;
99048
100197
  /**
99049
100198
  * 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}.
99050
100199
  */
99051
100200
  name: string;
99052
100201
  };
99053
100202
  query?: never;
99054
- url: '/automation/v1/scripts/{ns}/{name}/restore';
100203
+ url: '/automation/v1/scripts/{namespace}/{name}/restore';
99055
100204
  };
99056
100205
  export type AutomationScriptsRestoreErrors = {
99057
100206
  /**
@@ -99089,7 +100238,7 @@ export type AutomationScriptsVersionsData = {
99089
100238
  /**
99090
100239
  * 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.
99091
100240
  */
99092
- ns: string;
100241
+ namespace: string;
99093
100242
  /**
99094
100243
  * 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}.
99095
100244
  */
@@ -99109,7 +100258,7 @@ export type AutomationScriptsVersionsData = {
99109
100258
  */
99110
100259
  expand?: 'source';
99111
100260
  };
99112
- url: '/automation/v1/scripts/{ns}/{name}/versions';
100261
+ url: '/automation/v1/scripts/{namespace}/{name}/versions';
99113
100262
  };
99114
100263
  export type AutomationScriptsVersionsErrors = {
99115
100264
  /**
@@ -99149,13 +100298,24 @@ export type AutomationScriptsPublishData = {
99149
100298
  */
99150
100299
  version: string;
99151
100300
  /**
99152
- * Draft revision to publish, matching the current draft; alternative to publishing from_run.
100301
+ * Deprecated alias of draft.revision. Draft revision to publish, matching the current draft; a different value together with draft.revision returns 400.
100302
+ *
100303
+ * @deprecated
99153
100304
  */
99154
- expected_draft_revision: string;
100305
+ expected_draft_revision?: string;
99155
100306
  /**
99156
100307
  * 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.
99157
100308
  */
99158
100309
  tag?: string;
100310
+ /**
100311
+ * 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.
100312
+ */
100313
+ draft?: {
100314
+ /**
100315
+ * 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.
100316
+ */
100317
+ revision: string;
100318
+ };
99159
100319
  } | {
99160
100320
  /**
99161
100321
  * An exact canonical semantic version, such as 1.2.0 or 1.3.0-beta.1, not a range.
@@ -99184,14 +100344,14 @@ export type AutomationScriptsPublishData = {
99184
100344
  /**
99185
100345
  * 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.
99186
100346
  */
99187
- ns: string;
100347
+ namespace: string;
99188
100348
  /**
99189
100349
  * 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}.
99190
100350
  */
99191
100351
  name: string;
99192
100352
  };
99193
100353
  query?: never;
99194
- url: '/automation/v1/scripts/{ns}/{name}/versions';
100354
+ url: '/automation/v1/scripts/{namespace}/{name}/versions';
99195
100355
  };
99196
100356
  export type AutomationScriptsPublishErrors = {
99197
100357
  /**
@@ -99246,7 +100406,7 @@ export type AutomationScriptsVersionData = {
99246
100406
  /**
99247
100407
  * 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.
99248
100408
  */
99249
- ns: string;
100409
+ namespace: string;
99250
100410
  /**
99251
100411
  * 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}.
99252
100412
  */
@@ -99257,7 +100417,7 @@ export type AutomationScriptsVersionData = {
99257
100417
  version: string;
99258
100418
  };
99259
100419
  query?: never;
99260
- url: '/automation/v1/scripts/{ns}/{name}/versions/{version}';
100420
+ url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}';
99261
100421
  };
99262
100422
  export type AutomationScriptsVersionErrors = {
99263
100423
  /**
@@ -99293,7 +100453,7 @@ export type AutomationScriptsDeprecateData = {
99293
100453
  /**
99294
100454
  * 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.
99295
100455
  */
99296
- ns: string;
100456
+ namespace: string;
99297
100457
  /**
99298
100458
  * 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}.
99299
100459
  */
@@ -99304,7 +100464,7 @@ export type AutomationScriptsDeprecateData = {
99304
100464
  version: string;
99305
100465
  };
99306
100466
  query?: never;
99307
- url: '/automation/v1/scripts/{ns}/{name}/versions/{version}/deprecate';
100467
+ url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}/deprecate';
99308
100468
  };
99309
100469
  export type AutomationScriptsDeprecateErrors = {
99310
100470
  /**
@@ -99347,14 +100507,14 @@ export type AutomationScriptsDistTagsData = {
99347
100507
  /**
99348
100508
  * 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.
99349
100509
  */
99350
- ns: string;
100510
+ namespace: string;
99351
100511
  /**
99352
100512
  * 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}.
99353
100513
  */
99354
100514
  name: string;
99355
100515
  };
99356
100516
  query?: never;
99357
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags';
100517
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags';
99358
100518
  };
99359
100519
  export type AutomationScriptsDistTagsErrors = {
99360
100520
  /**
@@ -99386,7 +100546,7 @@ export type AutomationScriptsDeleteDistTagData = {
99386
100546
  /**
99387
100547
  * 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.
99388
100548
  */
99389
- ns: string;
100549
+ namespace: string;
99390
100550
  /**
99391
100551
  * 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}.
99392
100552
  */
@@ -99397,7 +100557,7 @@ export type AutomationScriptsDeleteDistTagData = {
99397
100557
  tag: string;
99398
100558
  };
99399
100559
  query?: never;
99400
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}';
100560
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}';
99401
100561
  };
99402
100562
  export type AutomationScriptsDeleteDistTagErrors = {
99403
100563
  /**
@@ -99447,7 +100607,7 @@ export type AutomationScriptsSetDistTagData = {
99447
100607
  /**
99448
100608
  * 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.
99449
100609
  */
99450
- ns: string;
100610
+ namespace: string;
99451
100611
  /**
99452
100612
  * 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}.
99453
100613
  */
@@ -99458,7 +100618,7 @@ export type AutomationScriptsSetDistTagData = {
99458
100618
  tag: string;
99459
100619
  };
99460
100620
  query?: never;
99461
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}';
100621
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}';
99462
100622
  };
99463
100623
  export type AutomationScriptsSetDistTagErrors = {
99464
100624
  /**
@@ -99585,9 +100745,9 @@ export type AutomationWorkflowsCreateData = {
99585
100745
  */
99586
100746
  description?: string;
99587
100747
  /**
99588
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
100748
+ * 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 }.
99589
100749
  */
99590
- draft?: string;
100750
+ draft?: AutomationDraftCreateInput | string;
99591
100751
  /**
99592
100752
  * At most 50 labels; keys contain 1–40 characters and values at most 500 characters.
99593
100753
  */
@@ -99642,14 +100802,14 @@ export type AutomationWorkflowsGetData = {
99642
100802
  /**
99643
100803
  * 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.
99644
100804
  */
99645
- ns: string;
100805
+ namespace: string;
99646
100806
  /**
99647
100807
  * 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}.
99648
100808
  */
99649
100809
  name: string;
99650
100810
  };
99651
100811
  query?: never;
99652
- url: '/automation/v1/workflows/{ns}/{name}';
100812
+ url: '/automation/v1/workflows/{namespace}/{name}';
99653
100813
  };
99654
100814
  export type AutomationWorkflowsGetErrors = {
99655
100815
  /**
@@ -99686,28 +100846,30 @@ export type AutomationWorkflowsPatchData = {
99686
100846
  [key: string]: string;
99687
100847
  };
99688
100848
  /**
99689
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
100849
+ * 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.
99690
100850
  */
99691
- draft?: string;
100851
+ draft?: AutomationDraftUpdateInput | string;
99692
100852
  };
99693
- headers: {
100853
+ headers?: {
99694
100854
  /**
99695
- * 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.
100855
+ * 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.
100856
+ *
100857
+ * @deprecated
99696
100858
  */
99697
- 'If-Match': string;
100859
+ 'If-Match'?: string;
99698
100860
  };
99699
100861
  path: {
99700
100862
  /**
99701
100863
  * 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.
99702
100864
  */
99703
- ns: string;
100865
+ namespace: string;
99704
100866
  /**
99705
100867
  * 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}.
99706
100868
  */
99707
100869
  name: string;
99708
100870
  };
99709
100871
  query?: never;
99710
- url: '/automation/v1/workflows/{ns}/{name}';
100872
+ url: '/automation/v1/workflows/{namespace}/{name}';
99711
100873
  };
99712
100874
  export type AutomationWorkflowsPatchErrors = {
99713
100875
  /**
@@ -99749,14 +100911,14 @@ export type AutomationWorkflowsArchiveData = {
99749
100911
  /**
99750
100912
  * 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.
99751
100913
  */
99752
- ns: string;
100914
+ namespace: string;
99753
100915
  /**
99754
100916
  * 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}.
99755
100917
  */
99756
100918
  name: string;
99757
100919
  };
99758
100920
  query?: never;
99759
- url: '/automation/v1/workflows/{ns}/{name}/archive';
100921
+ url: '/automation/v1/workflows/{namespace}/{name}/archive';
99760
100922
  };
99761
100923
  export type AutomationWorkflowsArchiveErrors = {
99762
100924
  /**
@@ -99794,14 +100956,14 @@ export type AutomationWorkflowsRestoreData = {
99794
100956
  /**
99795
100957
  * 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.
99796
100958
  */
99797
- ns: string;
100959
+ namespace: string;
99798
100960
  /**
99799
100961
  * 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}.
99800
100962
  */
99801
100963
  name: string;
99802
100964
  };
99803
100965
  query?: never;
99804
- url: '/automation/v1/workflows/{ns}/{name}/restore';
100966
+ url: '/automation/v1/workflows/{namespace}/{name}/restore';
99805
100967
  };
99806
100968
  export type AutomationWorkflowsRestoreErrors = {
99807
100969
  /**
@@ -99839,7 +101001,7 @@ export type AutomationWorkflowsVersionsData = {
99839
101001
  /**
99840
101002
  * 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.
99841
101003
  */
99842
- ns: string;
101004
+ namespace: string;
99843
101005
  /**
99844
101006
  * 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}.
99845
101007
  */
@@ -99859,7 +101021,7 @@ export type AutomationWorkflowsVersionsData = {
99859
101021
  */
99860
101022
  expand?: 'source';
99861
101023
  };
99862
- url: '/automation/v1/workflows/{ns}/{name}/versions';
101024
+ url: '/automation/v1/workflows/{namespace}/{name}/versions';
99863
101025
  };
99864
101026
  export type AutomationWorkflowsVersionsErrors = {
99865
101027
  /**
@@ -99899,13 +101061,24 @@ export type AutomationWorkflowsPublishData = {
99899
101061
  */
99900
101062
  version: string;
99901
101063
  /**
99902
- * Draft revision to publish, matching the current draft; alternative to publishing from_run.
101064
+ * Deprecated alias of draft.revision. Draft revision to publish, matching the current draft; a different value together with draft.revision returns 400.
101065
+ *
101066
+ * @deprecated
99903
101067
  */
99904
- expected_draft_revision: string;
101068
+ expected_draft_revision?: string;
99905
101069
  /**
99906
101070
  * 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.
99907
101071
  */
99908
101072
  tag?: string;
101073
+ /**
101074
+ * 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.
101075
+ */
101076
+ draft?: {
101077
+ /**
101078
+ * 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.
101079
+ */
101080
+ revision: string;
101081
+ };
99909
101082
  } | {
99910
101083
  /**
99911
101084
  * An exact canonical semantic version, such as 1.2.0 or 1.3.0-beta.1, not a range.
@@ -99934,14 +101107,14 @@ export type AutomationWorkflowsPublishData = {
99934
101107
  /**
99935
101108
  * 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.
99936
101109
  */
99937
- ns: string;
101110
+ namespace: string;
99938
101111
  /**
99939
101112
  * 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}.
99940
101113
  */
99941
101114
  name: string;
99942
101115
  };
99943
101116
  query?: never;
99944
- url: '/automation/v1/workflows/{ns}/{name}/versions';
101117
+ url: '/automation/v1/workflows/{namespace}/{name}/versions';
99945
101118
  };
99946
101119
  export type AutomationWorkflowsPublishErrors = {
99947
101120
  /**
@@ -100004,7 +101177,7 @@ export type AutomationWorkflowsVersionData = {
100004
101177
  /**
100005
101178
  * 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.
100006
101179
  */
100007
- ns: string;
101180
+ namespace: string;
100008
101181
  /**
100009
101182
  * 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}.
100010
101183
  */
@@ -100015,7 +101188,7 @@ export type AutomationWorkflowsVersionData = {
100015
101188
  version: string;
100016
101189
  };
100017
101190
  query?: never;
100018
- url: '/automation/v1/workflows/{ns}/{name}/versions/{version}';
101191
+ url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}';
100019
101192
  };
100020
101193
  export type AutomationWorkflowsVersionErrors = {
100021
101194
  /**
@@ -100051,7 +101224,7 @@ export type AutomationWorkflowsDeprecateData = {
100051
101224
  /**
100052
101225
  * 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.
100053
101226
  */
100054
- ns: string;
101227
+ namespace: string;
100055
101228
  /**
100056
101229
  * 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}.
100057
101230
  */
@@ -100062,7 +101235,7 @@ export type AutomationWorkflowsDeprecateData = {
100062
101235
  version: string;
100063
101236
  };
100064
101237
  query?: never;
100065
- url: '/automation/v1/workflows/{ns}/{name}/versions/{version}/deprecate';
101238
+ url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}/deprecate';
100066
101239
  };
100067
101240
  export type AutomationWorkflowsDeprecateErrors = {
100068
101241
  /**
@@ -100105,14 +101278,14 @@ export type AutomationWorkflowsDistTagsData = {
100105
101278
  /**
100106
101279
  * 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.
100107
101280
  */
100108
- ns: string;
101281
+ namespace: string;
100109
101282
  /**
100110
101283
  * 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}.
100111
101284
  */
100112
101285
  name: string;
100113
101286
  };
100114
101287
  query?: never;
100115
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags';
101288
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags';
100116
101289
  };
100117
101290
  export type AutomationWorkflowsDistTagsErrors = {
100118
101291
  /**
@@ -100144,7 +101317,7 @@ export type AutomationWorkflowsDeleteDistTagData = {
100144
101317
  /**
100145
101318
  * 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.
100146
101319
  */
100147
- ns: string;
101320
+ namespace: string;
100148
101321
  /**
100149
101322
  * 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}.
100150
101323
  */
@@ -100155,7 +101328,7 @@ export type AutomationWorkflowsDeleteDistTagData = {
100155
101328
  tag: string;
100156
101329
  };
100157
101330
  query?: never;
100158
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}';
101331
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}';
100159
101332
  };
100160
101333
  export type AutomationWorkflowsDeleteDistTagErrors = {
100161
101334
  /**
@@ -100205,7 +101378,7 @@ export type AutomationWorkflowsSetDistTagData = {
100205
101378
  /**
100206
101379
  * 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.
100207
101380
  */
100208
- ns: string;
101381
+ namespace: string;
100209
101382
  /**
100210
101383
  * 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}.
100211
101384
  */
@@ -100216,7 +101389,7 @@ export type AutomationWorkflowsSetDistTagData = {
100216
101389
  tag: string;
100217
101390
  };
100218
101391
  query?: never;
100219
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}';
101392
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}';
100220
101393
  };
100221
101394
  export type AutomationWorkflowsSetDistTagErrors = {
100222
101395
  /**
@@ -100631,7 +101804,7 @@ export type AutomationRunsGetData = {
100631
101804
  /**
100632
101805
  * Run ID (run_).
100633
101806
  */
100634
- id: string;
101807
+ run_id: string;
100635
101808
  };
100636
101809
  query?: {
100637
101810
  /**
@@ -100643,7 +101816,7 @@ export type AutomationRunsGetData = {
100643
101816
  */
100644
101817
  wait?: number;
100645
101818
  };
100646
- url: '/automation/v1/runs/{id}';
101819
+ url: '/automation/v1/runs/{run_id}';
100647
101820
  };
100648
101821
  export type AutomationRunsGetErrors = {
100649
101822
  /**
@@ -100678,10 +101851,10 @@ export type AutomationRunsCancelData = {
100678
101851
  /**
100679
101852
  * Run ID (run_).
100680
101853
  */
100681
- id: string;
101854
+ run_id: string;
100682
101855
  };
100683
101856
  query?: never;
100684
- url: '/automation/v1/runs/{id}/cancel';
101857
+ url: '/automation/v1/runs/{run_id}/cancel';
100685
101858
  };
100686
101859
  export type AutomationRunsCancelErrors = {
100687
101860
  /**
@@ -100726,10 +101899,10 @@ export type AutomationRunsRerunData = {
100726
101899
  /**
100727
101900
  * Run ID (run_).
100728
101901
  */
100729
- id: string;
101902
+ run_id: string;
100730
101903
  };
100731
101904
  query?: never;
100732
- url: '/automation/v1/runs/{id}/rerun';
101905
+ url: '/automation/v1/runs/{run_id}/rerun';
100733
101906
  };
100734
101907
  export type AutomationRunsRerunErrors = {
100735
101908
  /**
@@ -100781,10 +101954,10 @@ export type AutomationRunsSuspendData = {
100781
101954
  /**
100782
101955
  * Run ID (run_).
100783
101956
  */
100784
- id: string;
101957
+ run_id: string;
100785
101958
  };
100786
101959
  query?: never;
100787
- url: '/automation/v1/runs/{id}/suspend';
101960
+ url: '/automation/v1/runs/{run_id}/suspend';
100788
101961
  };
100789
101962
  export type AutomationRunsSuspendErrors = {
100790
101963
  /**
@@ -100819,10 +101992,10 @@ export type AutomationRunsResumeData = {
100819
101992
  /**
100820
101993
  * Run ID (run_).
100821
101994
  */
100822
- id: string;
101995
+ run_id: string;
100823
101996
  };
100824
101997
  query?: never;
100825
- url: '/automation/v1/runs/{id}/resume';
101998
+ url: '/automation/v1/runs/{run_id}/resume';
100826
101999
  };
100827
102000
  export type AutomationRunsResumeErrors = {
100828
102001
  /**
@@ -100857,7 +102030,7 @@ export type AutomationRunsWaitsData = {
100857
102030
  /**
100858
102031
  * Run ID (run_).
100859
102032
  */
100860
- id: string;
102033
+ run_id: string;
100861
102034
  };
100862
102035
  query?: {
100863
102036
  /**
@@ -100869,7 +102042,7 @@ export type AutomationRunsWaitsData = {
100869
102042
  */
100870
102043
  cursor?: string;
100871
102044
  };
100872
- url: '/automation/v1/runs/{id}/waits';
102045
+ url: '/automation/v1/runs/{run_id}/waits';
100873
102046
  };
100874
102047
  export type AutomationRunsWaitsErrors = {
100875
102048
  /**
@@ -100908,7 +102081,7 @@ export type AutomationRunsCallsData = {
100908
102081
  /**
100909
102082
  * Run ID (run_).
100910
102083
  */
100911
- id: string;
102084
+ run_id: string;
100912
102085
  };
100913
102086
  query?: {
100914
102087
  /**
@@ -100920,7 +102093,7 @@ export type AutomationRunsCallsData = {
100920
102093
  */
100921
102094
  cursor?: string;
100922
102095
  };
100923
- url: '/automation/v1/runs/{id}/calls';
102096
+ url: '/automation/v1/runs/{run_id}/calls';
100924
102097
  };
100925
102098
  export type AutomationRunsCallsErrors = {
100926
102099
  /**
@@ -100959,7 +102132,7 @@ export type AutomationRunsArtifactsData = {
100959
102132
  /**
100960
102133
  * Run ID (run_).
100961
102134
  */
100962
- id: string;
102135
+ run_id: string;
100963
102136
  };
100964
102137
  query?: {
100965
102138
  /**
@@ -100971,7 +102144,7 @@ export type AutomationRunsArtifactsData = {
100971
102144
  */
100972
102145
  cursor?: string;
100973
102146
  };
100974
- url: '/automation/v1/runs/{id}/artifacts';
102147
+ url: '/automation/v1/runs/{run_id}/artifacts';
100975
102148
  };
100976
102149
  export type AutomationRunsArtifactsErrors = {
100977
102150
  /**
@@ -101019,14 +102192,14 @@ export type AutomationRunsCompleteWaitData = {
101019
102192
  /**
101020
102193
  * Run ID (run_).
101021
102194
  */
101022
- id: string;
102195
+ run_id: string;
101023
102196
  /**
101024
102197
  * Wait ID (wait_) belonging to this run.
101025
102198
  */
101026
102199
  wait_id: string;
101027
102200
  };
101028
102201
  query?: never;
101029
- url: '/automation/v1/runs/{id}/waits/{wait_id}/complete';
102202
+ url: '/automation/v1/runs/{run_id}/waits/{wait_id}/complete';
101030
102203
  };
101031
102204
  export type AutomationRunsCompleteWaitErrors = {
101032
102205
  /**
@@ -101077,6 +102250,8 @@ export type AutomationRunsCompleteWaitResponses = {
101077
102250
  kind: 'event' | 'timer' | 'child';
101078
102251
  /**
101079
102252
  * 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.
102253
+ *
102254
+ * @deprecated
101080
102255
  */
101081
102256
  state: 'cancelled' | 'open' | 'resolved' | 'expired';
101082
102257
  /**
@@ -101120,6 +102295,10 @@ export type AutomationRunsCompleteWaitResponses = {
101120
102295
  * true when this was a repeated submission with the same id and payload, so the original result is returned instead of processing it again.
101121
102296
  */
101122
102297
  replayed: boolean;
102298
+ /**
102299
+ * 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.
102300
+ */
102301
+ status: 'cancelled' | 'open' | 'resolved' | 'expired';
101123
102302
  };
101124
102303
  };
101125
102304
  export type AutomationRunsCompleteWaitResponse = AutomationRunsCompleteWaitResponses[keyof AutomationRunsCompleteWaitResponses];
@@ -101129,7 +102308,7 @@ export type AutomationRunsTasksData = {
101129
102308
  /**
101130
102309
  * Run ID (run_).
101131
102310
  */
101132
- id: string;
102311
+ run_id: string;
101133
102312
  };
101134
102313
  query?: {
101135
102314
  /**
@@ -101149,7 +102328,7 @@ export type AutomationRunsTasksData = {
101149
102328
  */
101150
102329
  group_by?: 'reference';
101151
102330
  };
101152
- url: '/automation/v1/runs/{id}/tasks';
102331
+ url: '/automation/v1/runs/{run_id}/tasks';
101153
102332
  };
101154
102333
  export type AutomationRunsTasksErrors = {
101155
102334
  /**
@@ -101198,7 +102377,7 @@ export type AutomationRunsEventsData = {
101198
102377
  /**
101199
102378
  * Run ID (run_).
101200
102379
  */
101201
- id: string;
102380
+ run_id: string;
101202
102381
  };
101203
102382
  query?: {
101204
102383
  /**
@@ -101210,7 +102389,7 @@ export type AutomationRunsEventsData = {
101210
102389
  */
101211
102390
  cursor?: string;
101212
102391
  };
101213
- url: '/automation/v1/runs/{id}/events';
102392
+ url: '/automation/v1/runs/{run_id}/events';
101214
102393
  };
101215
102394
  export type AutomationRunsEventsErrors = {
101216
102395
  /**
@@ -101259,7 +102438,7 @@ export type AutomationRunsLogsData = {
101259
102438
  /**
101260
102439
  * Run ID (run_).
101261
102440
  */
101262
- id: string;
102441
+ run_id: string;
101263
102442
  };
101264
102443
  query?: {
101265
102444
  /**
@@ -101271,7 +102450,7 @@ export type AutomationRunsLogsData = {
101271
102450
  */
101272
102451
  cursor?: string;
101273
102452
  };
101274
- url: '/automation/v1/runs/{id}/logs';
102453
+ url: '/automation/v1/runs/{run_id}/logs';
101275
102454
  };
101276
102455
  export type AutomationRunsLogsErrors = {
101277
102456
  /**
@@ -101310,10 +102489,10 @@ export type AutomationRunsSourceData = {
101310
102489
  /**
101311
102490
  * Run ID (run_).
101312
102491
  */
101313
- id: string;
102492
+ run_id: string;
101314
102493
  };
101315
102494
  query?: never;
101316
- url: '/automation/v1/runs/{id}/source';
102495
+ url: '/automation/v1/runs/{run_id}/source';
101317
102496
  };
101318
102497
  export type AutomationRunsSourceErrors = {
101319
102498
  /**
@@ -101368,7 +102547,9 @@ export type AutomationTriggersListData = {
101368
102547
  */
101369
102548
  kind?: Array<'schedule' | 'webhook'>;
101370
102549
  /**
101371
- * Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value.
102550
+ * Deprecated, use status. Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value.
102551
+ *
102552
+ * @deprecated
101372
102553
  */
101373
102554
  state?: Array<AutomationTriggerState>;
101374
102555
  /**
@@ -101385,6 +102566,10 @@ export type AutomationTriggersListData = {
101385
102566
  * Inclusive creation-time upper bound, as an ISO 8601 timestamp with timezone.
101386
102567
  */
101387
102568
  'created_at[lte]'?: string;
102569
+ /**
102570
+ * 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.
102571
+ */
102572
+ status?: Array<AutomationTriggerState>;
101388
102573
  };
101389
102574
  url: '/automation/v1/triggers';
101390
102575
  };
@@ -101550,10 +102735,10 @@ export type AutomationTriggersDeleteData = {
101550
102735
  /**
101551
102736
  * Trigger ID (trg_).
101552
102737
  */
101553
- id: string;
102738
+ trigger_id: string;
101554
102739
  };
101555
102740
  query?: never;
101556
- url: '/automation/v1/triggers/{id}';
102741
+ url: '/automation/v1/triggers/{trigger_id}';
101557
102742
  };
101558
102743
  export type AutomationTriggersDeleteErrors = {
101559
102744
  /**
@@ -101587,10 +102772,10 @@ export type AutomationTriggersGetData = {
101587
102772
  /**
101588
102773
  * Trigger ID (trg_).
101589
102774
  */
101590
- id: string;
102775
+ trigger_id: string;
101591
102776
  };
101592
102777
  query?: never;
101593
- url: '/automation/v1/triggers/{id}';
102778
+ url: '/automation/v1/triggers/{trigger_id}';
101594
102779
  };
101595
102780
  export type AutomationTriggersGetErrors = {
101596
102781
  /**
@@ -101698,10 +102883,10 @@ export type AutomationTriggersPatchData = {
101698
102883
  /**
101699
102884
  * Trigger ID (trg_).
101700
102885
  */
101701
- id: string;
102886
+ trigger_id: string;
101702
102887
  };
101703
102888
  query?: never;
101704
- url: '/automation/v1/triggers/{id}';
102889
+ url: '/automation/v1/triggers/{trigger_id}';
101705
102890
  };
101706
102891
  export type AutomationTriggersPatchErrors = {
101707
102892
  /**
@@ -101754,10 +102939,10 @@ export type AutomationTriggersPauseData = {
101754
102939
  /**
101755
102940
  * Trigger ID (trg_).
101756
102941
  */
101757
- id: string;
102942
+ trigger_id: string;
101758
102943
  };
101759
102944
  query?: never;
101760
- url: '/automation/v1/triggers/{id}/pause';
102945
+ url: '/automation/v1/triggers/{trigger_id}/pause';
101761
102946
  };
101762
102947
  export type AutomationTriggersPauseErrors = {
101763
102948
  /**
@@ -101791,10 +102976,10 @@ export type AutomationTriggersResumeData = {
101791
102976
  /**
101792
102977
  * Trigger ID (trg_).
101793
102978
  */
101794
- id: string;
102979
+ trigger_id: string;
101795
102980
  };
101796
102981
  query?: never;
101797
- url: '/automation/v1/triggers/{id}/resume';
102982
+ url: '/automation/v1/triggers/{trigger_id}/resume';
101798
102983
  };
101799
102984
  export type AutomationTriggersResumeErrors = {
101800
102985
  /**
@@ -101838,10 +103023,10 @@ export type AutomationTriggersFireData = {
101838
103023
  /**
101839
103024
  * Trigger ID (trg_).
101840
103025
  */
101841
- id: string;
103026
+ trigger_id: string;
101842
103027
  };
101843
103028
  query?: never;
101844
- url: '/automation/v1/triggers/{id}/fire';
103029
+ url: '/automation/v1/triggers/{trigger_id}/fire';
101845
103030
  };
101846
103031
  export type AutomationTriggersFireErrors = {
101847
103032
  /**
@@ -101884,10 +103069,10 @@ export type AutomationTriggersRotateWebhookData = {
101884
103069
  /**
101885
103070
  * Trigger ID (trg_).
101886
103071
  */
101887
- id: string;
103072
+ trigger_id: string;
101888
103073
  };
101889
103074
  query?: never;
101890
- url: '/automation/v1/triggers/{id}/rotate-webhook';
103075
+ url: '/automation/v1/triggers/{trigger_id}/rotate-webhook';
101891
103076
  };
101892
103077
  export type AutomationTriggersRotateWebhookErrors = {
101893
103078
  /**
@@ -101917,7 +103102,7 @@ export type AutomationTriggersFiringsData = {
101917
103102
  /**
101918
103103
  * Trigger ID (trg_).
101919
103104
  */
101920
- id: string;
103105
+ trigger_id: string;
101921
103106
  };
101922
103107
  query?: {
101923
103108
  /**
@@ -101937,7 +103122,7 @@ export type AutomationTriggersFiringsData = {
101937
103122
  */
101938
103123
  run_id?: string;
101939
103124
  };
101940
- url: '/automation/v1/triggers/{id}/firings';
103125
+ url: '/automation/v1/triggers/{trigger_id}/firings';
101941
103126
  };
101942
103127
  export type AutomationTriggersFiringsErrors = {
101943
103128
  /**
@@ -102143,10 +103328,10 @@ export type AutomationHumanTasksGetData = {
102143
103328
  /**
102144
103329
  * Human task ID (htask_), from the list or the run's waits.
102145
103330
  */
102146
- id: string;
103331
+ task_id: string;
102147
103332
  };
102148
103333
  query?: never;
102149
- url: '/automation/v1/human-tasks/{id}';
103334
+ url: '/automation/v1/human-tasks/{task_id}';
102150
103335
  };
102151
103336
  export type AutomationHumanTasksGetErrors = {
102152
103337
  /**
@@ -102182,10 +103367,10 @@ export type AutomationHumanTasksRespondData = {
102182
103367
  /**
102183
103368
  * Human task ID (htask_).
102184
103369
  */
102185
- id: string;
103370
+ task_id: string;
102186
103371
  };
102187
103372
  query?: never;
102188
- url: '/automation/v1/human-tasks/{id}/respond';
103373
+ url: '/automation/v1/human-tasks/{task_id}/respond';
102189
103374
  };
102190
103375
  export type AutomationHumanTasksRespondErrors = {
102191
103376
  /**
@@ -102240,10 +103425,10 @@ export type AutomationHumanTasksCancelData = {
102240
103425
  /**
102241
103426
  * Human task ID (htask_).
102242
103427
  */
102243
- id: string;
103428
+ task_id: string;
102244
103429
  };
102245
103430
  query?: never;
102246
- url: '/automation/v1/human-tasks/{id}/cancel';
103431
+ url: '/automation/v1/human-tasks/{task_id}/cancel';
102247
103432
  };
102248
103433
  export type AutomationHumanTasksCancelErrors = {
102249
103434
  /**
@@ -102286,10 +103471,10 @@ export type AutomationHumanTasksDelegateData = {
102286
103471
  /**
102287
103472
  * Human task ID (htask_).
102288
103473
  */
102289
- id: string;
103474
+ task_id: string;
102290
103475
  };
102291
103476
  query?: never;
102292
- url: '/automation/v1/human-tasks/{id}/delegate';
103477
+ url: '/automation/v1/human-tasks/{task_id}/delegate';
102293
103478
  };
102294
103479
  export type AutomationHumanTasksDelegateErrors = {
102295
103480
  /**
@@ -102330,14 +103515,14 @@ export type AutomationScriptsVaultsListData = {
102330
103515
  /**
102331
103516
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
102332
103517
  */
102333
- ns: string;
103518
+ namespace: string;
102334
103519
  /**
102335
103520
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
102336
103521
  */
102337
103522
  name: string;
102338
103523
  };
102339
103524
  query?: never;
102340
- url: '/automation/v1/scripts/{ns}/{name}/vaults';
103525
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults';
102341
103526
  };
102342
103527
  export type AutomationScriptsVaultsListErrors = {
102343
103528
  /**
@@ -102403,7 +103588,7 @@ export type AutomationScriptsVaultsDeleteData = {
102403
103588
  /**
102404
103589
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
102405
103590
  */
102406
- ns: string;
103591
+ namespace: string;
102407
103592
  /**
102408
103593
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
102409
103594
  */
@@ -102414,7 +103599,7 @@ export type AutomationScriptsVaultsDeleteData = {
102414
103599
  alias: string;
102415
103600
  };
102416
103601
  query?: never;
102417
- url: '/automation/v1/scripts/{ns}/{name}/vaults/{alias}';
103602
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}';
102418
103603
  };
102419
103604
  export type AutomationScriptsVaultsDeleteErrors = {
102420
103605
  /**
@@ -102449,7 +103634,7 @@ export type AutomationScriptsVaultsSetData = {
102449
103634
  /**
102450
103635
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
102451
103636
  */
102452
- ns: string;
103637
+ namespace: string;
102453
103638
  /**
102454
103639
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
102455
103640
  */
@@ -102460,7 +103645,7 @@ export type AutomationScriptsVaultsSetData = {
102460
103645
  alias: string;
102461
103646
  };
102462
103647
  query?: never;
102463
- url: '/automation/v1/scripts/{ns}/{name}/vaults/{alias}';
103648
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}';
102464
103649
  };
102465
103650
  export type AutomationScriptsVaultsSetErrors = {
102466
103651
  /**
@@ -102530,14 +103715,14 @@ export type AutomationWorkflowsVaultsListData = {
102530
103715
  /**
102531
103716
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
102532
103717
  */
102533
- ns: string;
103718
+ namespace: string;
102534
103719
  /**
102535
103720
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
102536
103721
  */
102537
103722
  name: string;
102538
103723
  };
102539
103724
  query?: never;
102540
- url: '/automation/v1/workflows/{ns}/{name}/vaults';
103725
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults';
102541
103726
  };
102542
103727
  export type AutomationWorkflowsVaultsListErrors = {
102543
103728
  /**
@@ -102603,7 +103788,7 @@ export type AutomationWorkflowsVaultsDeleteData = {
102603
103788
  /**
102604
103789
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
102605
103790
  */
102606
- ns: string;
103791
+ namespace: string;
102607
103792
  /**
102608
103793
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
102609
103794
  */
@@ -102614,7 +103799,7 @@ export type AutomationWorkflowsVaultsDeleteData = {
102614
103799
  alias: string;
102615
103800
  };
102616
103801
  query?: never;
102617
- url: '/automation/v1/workflows/{ns}/{name}/vaults/{alias}';
103802
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}';
102618
103803
  };
102619
103804
  export type AutomationWorkflowsVaultsDeleteErrors = {
102620
103805
  /**
@@ -102649,7 +103834,7 @@ export type AutomationWorkflowsVaultsSetData = {
102649
103834
  /**
102650
103835
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
102651
103836
  */
102652
- ns: string;
103837
+ namespace: string;
102653
103838
  /**
102654
103839
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
102655
103840
  */
@@ -102660,7 +103845,7 @@ export type AutomationWorkflowsVaultsSetData = {
102660
103845
  alias: string;
102661
103846
  };
102662
103847
  query?: never;
102663
- url: '/automation/v1/workflows/{ns}/{name}/vaults/{alias}';
103848
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}';
102664
103849
  };
102665
103850
  export type AutomationWorkflowsVaultsSetErrors = {
102666
103851
  /**
@@ -103507,6 +104692,60 @@ export type CanvasListLibraryVersionsResponses = {
103507
104692
  200: CanvasLibraryVersionPage;
103508
104693
  };
103509
104694
  export type CanvasListLibraryVersionsResponse = CanvasListLibraryVersionsResponses[keyof CanvasListLibraryVersionsResponses];
104695
+ export type CanvasRetrieveProcessStepBriefData = {
104696
+ body?: never;
104697
+ path: {
104698
+ /**
104699
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
104700
+ */
104701
+ canvas_id: string;
104702
+ /**
104703
+ * Node id of the process frame, or of the ref instance that is one production of a library process; the outputs of a production point at this id.
104704
+ */
104705
+ process_id: string;
104706
+ /**
104707
+ * Step key from the requirement block, such as 1 or 9a; not the node id of the step frame.
104708
+ */
104709
+ step_id: string;
104710
+ };
104711
+ query?: {
104712
+ /**
104713
+ * Decimal version from versions.list, or its earliest_restorable_version, for a read-only historical snapshot; omit to read current state. Unavailable versions return VERSION_NOT_FOUND.
104714
+ */
104715
+ version?: string;
104716
+ };
104717
+ url: '/canvas/v1/canvases/{canvas_id}/processes/{process_id}/steps/{step_id}/brief';
104718
+ };
104719
+ export type CanvasRetrieveProcessStepBriefErrors = {
104720
+ /**
104721
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
104722
+ */
104723
+ 400: CanvasCanvasError;
104724
+ /**
104725
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
104726
+ */
104727
+ 401: CanvasCanvasError;
104728
+ /**
104729
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
104730
+ */
104731
+ 403: CanvasCanvasError;
104732
+ /**
104733
+ * CANVAS_NOT_FOUND means the canvas is missing or belongs to another organization. NODE_NOT_FOUND means process_id is not a process on this canvas or step is not one of its step keys; read the process with nodes.list to see its requirement blocks.
104734
+ */
104735
+ 404: CanvasCanvasError;
104736
+ /**
104737
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
104738
+ */
104739
+ 500: CanvasCanvasError;
104740
+ };
104741
+ export type CanvasRetrieveProcessStepBriefError = CanvasRetrieveProcessStepBriefErrors[keyof CanvasRetrieveProcessStepBriefErrors];
104742
+ export type CanvasRetrieveProcessStepBriefResponses = {
104743
+ /**
104744
+ * The step brief at the requested canvas version.
104745
+ */
104746
+ 200: CanvasProcessStepBrief;
104747
+ };
104748
+ export type CanvasRetrieveProcessStepBriefResponse = CanvasRetrieveProcessStepBriefResponses[keyof CanvasRetrieveProcessStepBriefResponses];
103510
104749
  export type CanvasListLibrariesData = {
103511
104750
  body?: never;
103512
104751
  path?: never;
@@ -113861,6 +115100,10 @@ export type DevopsPullRequestsRerunGateErrors = {
113861
115100
  * PULL_REQUEST_NOT_FOUND means no pull request with that id is visible to this organization — one of another organization is never readable; list the project's pull requests and use an id from that answer.
113862
115101
  */
113863
115102
  404: DevopsDevOpsError;
115103
+ /**
115104
+ * GATE_RERUN_LIMITED: this head's checks were already restarted 3 times in the last hour, or another rerun of this head is restarting them right now; the message says which.
115105
+ */
115106
+ 429: DevopsDevOpsError;
113864
115107
  /**
113865
115108
  * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
113866
115109
  */
@@ -113874,6 +115117,51 @@ export type DevopsPullRequestsRerunGateResponses = {
113874
115117
  200: DevopsPullRequest;
113875
115118
  };
113876
115119
  export type DevopsPullRequestsRerunGateResponse = DevopsPullRequestsRerunGateResponses[keyof DevopsPullRequestsRerunGateResponses];
115120
+ export type DevopsPullRequestsOverrideGateData = {
115121
+ body: DevopsPullRequestOverrideGateRequest;
115122
+ path: {
115123
+ /**
115124
+ * The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it.
115125
+ */
115126
+ id: string;
115127
+ };
115128
+ query?: never;
115129
+ url: '/devops/v1/pull-requests/{id}:overrideGate';
115130
+ };
115131
+ export type DevopsPullRequestsOverrideGateErrors = {
115132
+ /**
115133
+ * INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
115134
+ */
115135
+ 400: DevopsDevOpsError;
115136
+ /**
115137
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
115138
+ */
115139
+ 401: DevopsDevOpsError;
115140
+ /**
115141
+ * GATE_OVERRIDE_NOT_AUTHORIZED when authorizedBy holds no active assignment to a position listed in practice-config (or the list or the workforce assignments could not be read), or the caller's key lacks the permission.
115142
+ */
115143
+ 403: DevopsDevOpsError;
115144
+ /**
115145
+ * PULL_REQUEST_NOT_FOUND means no pull request with that id is visible to this organization — one of another organization is never readable; list the project's pull requests and use an id from that answer.
115146
+ */
115147
+ 404: DevopsDevOpsError;
115148
+ /**
115149
+ * HEAD_MOVED when headSha is not the pull request's current head, or PULL_REQUEST_NOT_OPEN when the pull request is merged or closed.
115150
+ */
115151
+ 409: DevopsDevOpsError;
115152
+ /**
115153
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
115154
+ */
115155
+ 500: DevopsDevOpsError;
115156
+ };
115157
+ export type DevopsPullRequestsOverrideGateError = DevopsPullRequestsOverrideGateErrors[keyof DevopsPullRequestsOverrideGateErrors];
115158
+ export type DevopsPullRequestsOverrideGateResponses = {
115159
+ /**
115160
+ * The pull request with the gate decided again under the override: the covered checks show their real result with counted false and overriddenBy.
115161
+ */
115162
+ 200: DevopsPullRequest;
115163
+ };
115164
+ export type DevopsPullRequestsOverrideGateResponse = DevopsPullRequestsOverrideGateResponses[keyof DevopsPullRequestsOverrideGateResponses];
113877
115165
  export type DevopsPullRequestsMergeData = {
113878
115166
  body?: DevopsPullRequestMergeRequest;
113879
115167
  path: {
@@ -115139,6 +116427,805 @@ export type DevopsUnitsTransitionsListResponses = {
115139
116427
  200: DevopsUnitTransitionPage;
115140
116428
  };
115141
116429
  export type DevopsUnitsTransitionsListResponse = DevopsUnitsTransitionsListResponses[keyof DevopsUnitsTransitionsListResponses];
116430
+ export type EndCreateGrantCodeData = {
116431
+ /**
116432
+ * The end user to sign in and the resources the sign-in may reach.
116433
+ */
116434
+ body: EndGrantCodeInput;
116435
+ path?: never;
116436
+ query?: never;
116437
+ url: '/end/v1/grant_codes';
116438
+ };
116439
+ export type EndCreateGrantCodeErrors = {
116440
+ /**
116441
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
116442
+ */
116443
+ 400: EndErrorEnvelope;
116444
+ /**
116445
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
116446
+ */
116447
+ 401: EndErrorEnvelope;
116448
+ /**
116449
+ * The credential is valid but the call is refused: ORIGIN_NOT_ALLOWED when the request Origin does not satisfy the sign-in or grant binding, END_USER_BLOCKED when the directory has blocked that end user, RESOURCE_NOT_GRANTED when the resource asked for is outside what the sign-in carries. Fix the cause the message names — send the bound origin, unblock the end user, or grant the resource in the next grant code — then retry.
116450
+ */
116451
+ 403: EndErrorEnvelope;
116452
+ /**
116453
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
116454
+ */
116455
+ 502: EndErrorEnvelope;
116456
+ /**
116457
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
116458
+ */
116459
+ 503: EndErrorEnvelope;
116460
+ };
116461
+ export type EndCreateGrantCodeError = EndCreateGrantCodeErrors[keyof EndCreateGrantCodeErrors];
116462
+ export type EndCreateGrantCodeResponses = {
116463
+ /**
116464
+ * The one-time grant code and the moment it stops being exchangeable.
116465
+ */
116466
+ 201: EndGrantCode;
116467
+ };
116468
+ export type EndCreateGrantCodeResponse = EndCreateGrantCodeResponses[keyof EndCreateGrantCodeResponses];
116469
+ export type EndCreateAccessTokenData = {
116470
+ /**
116471
+ * Exactly one credential to exchange: a grant code from grant_codes, or a publishable key for an anonymous visitor.
116472
+ */
116473
+ body: EndAccessTokenInput;
116474
+ headers?: {
116475
+ /**
116476
+ * Browser page origin the exchange is made from, for example https://school.example.com. Send it when the sign-in is bound to one; the service compares it with the binding and refuses a mismatch.
116477
+ */
116478
+ Origin?: string;
116479
+ };
116480
+ path?: never;
116481
+ query?: never;
116482
+ url: '/end/v1/access_tokens';
116483
+ };
116484
+ export type EndCreateAccessTokenErrors = {
116485
+ /**
116486
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
116487
+ */
116488
+ 400: EndErrorEnvelope;
116489
+ /**
116490
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
116491
+ */
116492
+ 401: EndErrorEnvelope;
116493
+ /**
116494
+ * The credential is valid but the call is refused: ORIGIN_NOT_ALLOWED when the request Origin does not satisfy the sign-in or grant binding, END_USER_BLOCKED when the directory has blocked that end user, RESOURCE_NOT_GRANTED when the resource asked for is outside what the sign-in carries. Fix the cause the message names — send the bound origin, unblock the end user, or grant the resource in the next grant code — then retry.
116495
+ */
116496
+ 403: EndErrorEnvelope;
116497
+ /**
116498
+ * One of four limits on the exchange, each with a Retry-After header in seconds. RATE_LIMITED: the caller IP has spent this door per-minute anonymous budget. PUBLISHABLE_KEY_RATE_LIMITED: the publishable key has spent its anon_rate_per_min exchanges for this UTC minute, whoever sent them; Retry-After is the rest of the minute. PUBLISHABLE_KEY_DAILY_CAP_REACHED: the key has admitted daily_session_cap new anonymous visitors in this UTC day; a new visitor is refused until 00:00 UTC (Retry-After), while a returning visitor that sends its continuation_token is still admitted. PUBLISHABLE_KEY_DAILY_SPEND_CAP_REACHED: what the usage of this key has cost in this UTC day reached its daily_spend_cap; every visitor, a returning one included, is refused until 00:00 UTC (Retry-After). Wait before retrying, never retry immediately; raise or clear the key limit with praxis.end.publishableKeys.update if it is set too low.
116499
+ */
116500
+ 429: EndErrorEnvelope;
116501
+ /**
116502
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
116503
+ */
116504
+ 502: EndErrorEnvelope;
116505
+ /**
116506
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
116507
+ */
116508
+ 503: EndErrorEnvelope;
116509
+ };
116510
+ export type EndCreateAccessTokenError = EndCreateAccessTokenErrors[keyof EndCreateAccessTokenErrors];
116511
+ export type EndCreateAccessTokenResponses = {
116512
+ /**
116513
+ * The new access token, the sign-in behind it and the end user it belongs to.
116514
+ */
116515
+ 201: EndAccessToken;
116516
+ };
116517
+ export type EndCreateAccessTokenResponse = EndCreateAccessTokenResponses[keyof EndCreateAccessTokenResponses];
116518
+ export type EndRenewAccessTokenData = {
116519
+ body?: never;
116520
+ path?: never;
116521
+ query?: never;
116522
+ url: '/end/v1/access_tokens/renew';
116523
+ };
116524
+ export type EndRenewAccessTokenErrors = {
116525
+ /**
116526
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
116527
+ */
116528
+ 400: EndErrorEnvelope;
116529
+ /**
116530
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
116531
+ */
116532
+ 401: EndErrorEnvelope;
116533
+ /**
116534
+ * The credential is valid but the call is refused: ORIGIN_NOT_ALLOWED when the request Origin does not satisfy the sign-in or grant binding, END_USER_BLOCKED when the directory has blocked that end user, RESOURCE_NOT_GRANTED when the resource asked for is outside what the sign-in carries. Fix the cause the message names — send the bound origin, unblock the end user, or grant the resource in the next grant code — then retry.
116535
+ */
116536
+ 403: EndErrorEnvelope;
116537
+ /**
116538
+ * RATE_LIMITED: the caller IP has spent this door per-minute anonymous budget. Wait the seconds in the Retry-After response header and send the request again; do not retry immediately.
116539
+ */
116540
+ 429: EndErrorEnvelope;
116541
+ /**
116542
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
116543
+ */
116544
+ 502: EndErrorEnvelope;
116545
+ /**
116546
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
116547
+ */
116548
+ 503: EndErrorEnvelope;
116549
+ };
116550
+ export type EndRenewAccessTokenError = EndRenewAccessTokenErrors[keyof EndRenewAccessTokenErrors];
116551
+ export type EndRenewAccessTokenResponses = {
116552
+ /**
116553
+ * A fresh access token for the same sign-in, with its new expiry.
116554
+ */
116555
+ 201: EndAccessToken;
116556
+ };
116557
+ export type EndRenewAccessTokenResponse = EndRenewAccessTokenResponses[keyof EndRenewAccessTokenResponses];
116558
+ export type EndRevokeCurrentTokensData = {
116559
+ body?: never;
116560
+ path?: never;
116561
+ query?: never;
116562
+ url: '/end/v1/access_tokens/current';
116563
+ };
116564
+ export type EndRevokeCurrentTokensErrors = {
116565
+ /**
116566
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
116567
+ */
116568
+ 400: EndErrorEnvelope;
116569
+ /**
116570
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
116571
+ */
116572
+ 401: EndErrorEnvelope;
116573
+ /**
116574
+ * RATE_LIMITED: the caller IP has spent this door per-minute anonymous budget. Wait the seconds in the Retry-After response header and send the request again; do not retry immediately.
116575
+ */
116576
+ 429: EndErrorEnvelope;
116577
+ /**
116578
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
116579
+ */
116580
+ 502: EndErrorEnvelope;
116581
+ /**
116582
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
116583
+ */
116584
+ 503: EndErrorEnvelope;
116585
+ };
116586
+ export type EndRevokeCurrentTokensError = EndRevokeCurrentTokensErrors[keyof EndRevokeCurrentTokensErrors];
116587
+ export type EndRevokeCurrentTokensResponses = {
116588
+ /**
116589
+ * The sign-in and its tokens are revoked; the response body is empty.
116590
+ */
116591
+ 200: unknown;
116592
+ };
116593
+ export type EndListUsersData = {
116594
+ body?: never;
116595
+ path?: never;
116596
+ query?: {
116597
+ /**
116598
+ * Maximum end users in one page, from 1 to 100; defaults to 50.
116599
+ */
116600
+ page_size?: number;
116601
+ /**
116602
+ * next_page from the preceding list response with the same filters; omit for the first page.
116603
+ */
116604
+ page_token?: string;
116605
+ /**
116606
+ * Only end users of this kind; identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key. Omit for both.
116607
+ */
116608
+ type?: 'identified' | 'anonymous';
116609
+ /**
116610
+ * true for blocked end users only, false for end users who are not blocked; omit for both.
116611
+ */
116612
+ blocked?: boolean;
116613
+ /**
116614
+ * Only end users of one product, as <type>:<id>, for example content:cnt_0123456789abcdef, agent:agent_123 or application:app_456.
116615
+ */
116616
+ resource?: string;
116617
+ /**
116618
+ * Only end users whose end user id starts with this prefix, for example cus_; omit for every id.
116619
+ */
116620
+ q?: string;
116621
+ };
116622
+ url: '/end/v1/users';
116623
+ };
116624
+ export type EndListUsersErrors = {
116625
+ /**
116626
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
116627
+ */
116628
+ 400: EndErrorEnvelope;
116629
+ /**
116630
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
116631
+ */
116632
+ 401: EndErrorEnvelope;
116633
+ /**
116634
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
116635
+ */
116636
+ 502: EndErrorEnvelope;
116637
+ /**
116638
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
116639
+ */
116640
+ 503: EndErrorEnvelope;
116641
+ };
116642
+ export type EndListUsersError = EndListUsersErrors[keyof EndListUsersErrors];
116643
+ export type EndListUsersResponses = {
116644
+ /**
116645
+ * One page of end users, most recently seen first, with each one's product use.
116646
+ */
116647
+ 200: EndEndUserPage;
116648
+ };
116649
+ export type EndListUsersResponse = EndListUsersResponses[keyof EndListUsersResponses];
116650
+ export type EndDeleteUserData = {
116651
+ body?: never;
116652
+ path: {
116653
+ /**
116654
+ * End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND.
116655
+ */
116656
+ end_user_id: string;
116657
+ };
116658
+ query: {
116659
+ /**
116660
+ * The end_user_id being deleted, repeated exactly; the service compares it with the path and refuses a mismatch with 400.
116661
+ */
116662
+ confirm: string;
116663
+ };
116664
+ url: '/end/v1/users/{end_user_id}';
116665
+ };
116666
+ export type EndDeleteUserErrors = {
116667
+ /**
116668
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
116669
+ */
116670
+ 400: EndErrorEnvelope;
116671
+ /**
116672
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
116673
+ */
116674
+ 401: EndErrorEnvelope;
116675
+ /**
116676
+ * END_USER_NOT_FOUND: no end user of this organization has that id, or the id belongs to another organization; a deleted key answers the same way. Read the current id from users.list (or publishable_keys.list for a key) and retry with that; never construct an id.
116677
+ */
116678
+ 404: EndErrorEnvelope;
116679
+ /**
116680
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
116681
+ */
116682
+ 502: EndErrorEnvelope;
116683
+ /**
116684
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
116685
+ */
116686
+ 503: EndErrorEnvelope;
116687
+ };
116688
+ export type EndDeleteUserError = EndDeleteUserErrors[keyof EndDeleteUserErrors];
116689
+ export type EndDeleteUserResponses = {
116690
+ /**
116691
+ * The directory record is gone and the deletion has been announced to the products.
116692
+ */
116693
+ 200: EndEndUserDeleted;
116694
+ };
116695
+ export type EndDeleteUserResponse = EndDeleteUserResponses[keyof EndDeleteUserResponses];
116696
+ export type EndGetUserData = {
116697
+ body?: never;
116698
+ path: {
116699
+ /**
116700
+ * End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND.
116701
+ */
116702
+ end_user_id: string;
116703
+ };
116704
+ query?: {
116705
+ /**
116706
+ * Comma-separated extras to include; products for the products this end user has used, sign_ins for its sign-ins, usage for its recorded usage. Omit to get only the directory record.
116707
+ */
116708
+ expand?: string;
116709
+ };
116710
+ url: '/end/v1/users/{end_user_id}';
116711
+ };
116712
+ export type EndGetUserErrors = {
116713
+ /**
116714
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
116715
+ */
116716
+ 400: EndErrorEnvelope;
116717
+ /**
116718
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
116719
+ */
116720
+ 401: EndErrorEnvelope;
116721
+ /**
116722
+ * END_USER_NOT_FOUND: no end user of this organization has that id, or the id belongs to another organization; a deleted key answers the same way. Read the current id from users.list (or publishable_keys.list for a key) and retry with that; never construct an id.
116723
+ */
116724
+ 404: EndErrorEnvelope;
116725
+ /**
116726
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
116727
+ */
116728
+ 502: EndErrorEnvelope;
116729
+ /**
116730
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
116731
+ */
116732
+ 503: EndErrorEnvelope;
116733
+ };
116734
+ export type EndGetUserError = EndGetUserErrors[keyof EndGetUserErrors];
116735
+ export type EndGetUserResponses = {
116736
+ /**
116737
+ * The end user, with the extras named by expand when it was sent.
116738
+ */
116739
+ 200: EndEndUser;
116740
+ };
116741
+ export type EndGetUserResponse = EndGetUserResponses[keyof EndGetUserResponses];
116742
+ export type EndGetUsageData = {
116743
+ body?: never;
116744
+ path: {
116745
+ /**
116746
+ * End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND.
116747
+ */
116748
+ end_user_id: string;
116749
+ };
116750
+ query?: {
116751
+ /**
116752
+ * Start of the window as an RFC 3339 time, inclusive; omit for the beginning of the record.
116753
+ */
116754
+ from?: string;
116755
+ /**
116756
+ * End of the window as an RFC 3339 time, exclusive; omit for now.
116757
+ */
116758
+ to?: string;
116759
+ };
116760
+ url: '/end/v1/users/{end_user_id}/usage';
116761
+ };
116762
+ export type EndGetUsageErrors = {
116763
+ /**
116764
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
116765
+ */
116766
+ 400: EndErrorEnvelope;
116767
+ /**
116768
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
116769
+ */
116770
+ 401: EndErrorEnvelope;
116771
+ /**
116772
+ * END_USER_NOT_FOUND: no end user of this organization has that id, or the id belongs to another organization; a deleted key answers the same way. Read the current id from users.list (or publishable_keys.list for a key) and retry with that; never construct an id.
116773
+ */
116774
+ 404: EndErrorEnvelope;
116775
+ /**
116776
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
116777
+ */
116778
+ 502: EndErrorEnvelope;
116779
+ /**
116780
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
116781
+ */
116782
+ 503: EndErrorEnvelope;
116783
+ };
116784
+ export type EndGetUsageError = EndGetUsageErrors[keyof EndGetUsageErrors];
116785
+ export type EndGetUsageResponses = {
116786
+ /**
116787
+ * The end user's recorded cost with its per-product and per-day breakdowns.
116788
+ */
116789
+ 200: EndEndUserUsage;
116790
+ };
116791
+ export type EndGetUsageResponse = EndGetUsageResponses[keyof EndGetUsageResponses];
116792
+ export type EndBlockUserData = {
116793
+ /**
116794
+ * Optionally the reason for the block, recorded with the block fact.
116795
+ */
116796
+ body?: EndBlockInput;
116797
+ path: {
116798
+ /**
116799
+ * End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND.
116800
+ */
116801
+ end_user_id: string;
116802
+ };
116803
+ query?: never;
116804
+ url: '/end/v1/users/{end_user_id}/block';
116805
+ };
116806
+ export type EndBlockUserErrors = {
116807
+ /**
116808
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
116809
+ */
116810
+ 400: EndErrorEnvelope;
116811
+ /**
116812
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
116813
+ */
116814
+ 401: EndErrorEnvelope;
116815
+ /**
116816
+ * END_USER_NOT_FOUND: no end user of this organization has that id, or the id belongs to another organization; a deleted key answers the same way. Read the current id from users.list (or publishable_keys.list for a key) and retry with that; never construct an id.
116817
+ */
116818
+ 404: EndErrorEnvelope;
116819
+ /**
116820
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
116821
+ */
116822
+ 502: EndErrorEnvelope;
116823
+ /**
116824
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
116825
+ */
116826
+ 503: EndErrorEnvelope;
116827
+ };
116828
+ export type EndBlockUserError = EndBlockUserErrors[keyof EndBlockUserErrors];
116829
+ export type EndBlockUserResponses = {
116830
+ /**
116831
+ * The end user with its block fact set.
116832
+ */
116833
+ 200: EndEndUser;
116834
+ };
116835
+ export type EndBlockUserResponse = EndBlockUserResponses[keyof EndBlockUserResponses];
116836
+ export type EndUnblockUserData = {
116837
+ body?: never;
116838
+ path: {
116839
+ /**
116840
+ * End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND.
116841
+ */
116842
+ end_user_id: string;
116843
+ };
116844
+ query?: never;
116845
+ url: '/end/v1/users/{end_user_id}/unblock';
116846
+ };
116847
+ export type EndUnblockUserErrors = {
116848
+ /**
116849
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
116850
+ */
116851
+ 400: EndErrorEnvelope;
116852
+ /**
116853
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
116854
+ */
116855
+ 401: EndErrorEnvelope;
116856
+ /**
116857
+ * END_USER_NOT_FOUND: no end user of this organization has that id, or the id belongs to another organization; a deleted key answers the same way. Read the current id from users.list (or publishable_keys.list for a key) and retry with that; never construct an id.
116858
+ */
116859
+ 404: EndErrorEnvelope;
116860
+ /**
116861
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
116862
+ */
116863
+ 502: EndErrorEnvelope;
116864
+ /**
116865
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
116866
+ */
116867
+ 503: EndErrorEnvelope;
116868
+ };
116869
+ export type EndUnblockUserError = EndUnblockUserErrors[keyof EndUnblockUserErrors];
116870
+ export type EndUnblockUserResponses = {
116871
+ /**
116872
+ * The end user with no block fact.
116873
+ */
116874
+ 200: EndEndUser;
116875
+ };
116876
+ export type EndUnblockUserResponse = EndUnblockUserResponses[keyof EndUnblockUserResponses];
116877
+ export type EndRevokeTokensData = {
116878
+ body?: never;
116879
+ path: {
116880
+ /**
116881
+ * End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND.
116882
+ */
116883
+ end_user_id: string;
116884
+ };
116885
+ query?: never;
116886
+ url: '/end/v1/users/{end_user_id}/revoke_tokens';
116887
+ };
116888
+ export type EndRevokeTokensErrors = {
116889
+ /**
116890
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
116891
+ */
116892
+ 400: EndErrorEnvelope;
116893
+ /**
116894
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
116895
+ */
116896
+ 401: EndErrorEnvelope;
116897
+ /**
116898
+ * END_USER_NOT_FOUND: no end user of this organization has that id, or the id belongs to another organization; a deleted key answers the same way. Read the current id from users.list (or publishable_keys.list for a key) and retry with that; never construct an id.
116899
+ */
116900
+ 404: EndErrorEnvelope;
116901
+ /**
116902
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
116903
+ */
116904
+ 502: EndErrorEnvelope;
116905
+ /**
116906
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
116907
+ */
116908
+ 503: EndErrorEnvelope;
116909
+ };
116910
+ export type EndRevokeTokensError = EndRevokeTokensErrors[keyof EndRevokeTokensErrors];
116911
+ export type EndRevokeTokensResponses = {
116912
+ /**
116913
+ * How many sign-ins were revoked; the end user stays in the directory.
116914
+ */
116915
+ 200: EndTokensRevoked;
116916
+ };
116917
+ export type EndRevokeTokensResponse = EndRevokeTokensResponses[keyof EndRevokeTokensResponses];
116918
+ export type EndListPublishableKeysData = {
116919
+ body?: never;
116920
+ path?: never;
116921
+ query?: {
116922
+ /**
116923
+ * Maximum keys in one page, from 1 to 100; defaults to 50.
116924
+ */
116925
+ page_size?: number;
116926
+ /**
116927
+ * next_page from the preceding key list response; omit for the first page.
116928
+ */
116929
+ page_token?: string;
116930
+ };
116931
+ url: '/end/v1/publishable_keys';
116932
+ };
116933
+ export type EndListPublishableKeysErrors = {
116934
+ /**
116935
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
116936
+ */
116937
+ 400: EndErrorEnvelope;
116938
+ /**
116939
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
116940
+ */
116941
+ 401: EndErrorEnvelope;
116942
+ /**
116943
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
116944
+ */
116945
+ 502: EndErrorEnvelope;
116946
+ /**
116947
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
116948
+ */
116949
+ 503: EndErrorEnvelope;
116950
+ };
116951
+ export type EndListPublishableKeysError = EndListPublishableKeysErrors[keyof EndListPublishableKeysErrors];
116952
+ export type EndListPublishableKeysResponses = {
116953
+ /**
116954
+ * One page of publishable keys, newest first, with the cursor for the next page.
116955
+ */
116956
+ 200: EndPublishableKeyPage;
116957
+ };
116958
+ export type EndListPublishableKeysResponse = EndListPublishableKeysResponses[keyof EndListPublishableKeysResponses];
116959
+ export type EndCreatePublishableKeyData = {
116960
+ /**
116961
+ * The name of the key and the resource scopes it grants anonymous visitors.
116962
+ */
116963
+ body: EndCreatePublishableKeyInput;
116964
+ path?: never;
116965
+ query?: never;
116966
+ url: '/end/v1/publishable_keys';
116967
+ };
116968
+ export type EndCreatePublishableKeyErrors = {
116969
+ /**
116970
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
116971
+ */
116972
+ 400: EndErrorEnvelope;
116973
+ /**
116974
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
116975
+ */
116976
+ 401: EndErrorEnvelope;
116977
+ /**
116978
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
116979
+ */
116980
+ 502: EndErrorEnvelope;
116981
+ /**
116982
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
116983
+ */
116984
+ 503: EndErrorEnvelope;
116985
+ };
116986
+ export type EndCreatePublishableKeyError = EndCreatePublishableKeyErrors[keyof EndCreatePublishableKeyErrors];
116987
+ export type EndCreatePublishableKeyResponses = {
116988
+ /**
116989
+ * The new key with its plaintext value, shown only in this response.
116990
+ */
116991
+ 201: EndPublishableKey;
116992
+ };
116993
+ export type EndCreatePublishableKeyResponse = EndCreatePublishableKeyResponses[keyof EndCreatePublishableKeyResponses];
116994
+ export type EndDeletePublishableKeyData = {
116995
+ body?: never;
116996
+ path: {
116997
+ /**
116998
+ * Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value.
116999
+ */
117000
+ key_id: string;
117001
+ };
117002
+ query?: never;
117003
+ url: '/end/v1/publishable_keys/{key_id}';
117004
+ };
117005
+ export type EndDeletePublishableKeyErrors = {
117006
+ /**
117007
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
117008
+ */
117009
+ 400: EndErrorEnvelope;
117010
+ /**
117011
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
117012
+ */
117013
+ 401: EndErrorEnvelope;
117014
+ /**
117015
+ * END_USER_NOT_FOUND: no end user of this organization has that id, or the id belongs to another organization; a deleted key answers the same way. Read the current id from users.list (or publishable_keys.list for a key) and retry with that; never construct an id.
117016
+ */
117017
+ 404: EndErrorEnvelope;
117018
+ /**
117019
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
117020
+ */
117021
+ 502: EndErrorEnvelope;
117022
+ /**
117023
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
117024
+ */
117025
+ 503: EndErrorEnvelope;
117026
+ };
117027
+ export type EndDeletePublishableKeyError = EndDeletePublishableKeyErrors[keyof EndDeletePublishableKeyErrors];
117028
+ export type EndDeletePublishableKeyResponses = {
117029
+ /**
117030
+ * The key is gone; the response repeats its id with deleted true.
117031
+ */
117032
+ 200: EndPublishableKeyDeleted;
117033
+ };
117034
+ export type EndDeletePublishableKeyResponse = EndDeletePublishableKeyResponses[keyof EndDeletePublishableKeyResponses];
117035
+ export type EndUpdatePublishableKeyData = {
117036
+ /**
117037
+ * The fields to change; at least one.
117038
+ */
117039
+ body: EndUpdatePublishableKeyInput;
117040
+ path: {
117041
+ /**
117042
+ * Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value.
117043
+ */
117044
+ key_id: string;
117045
+ };
117046
+ query?: never;
117047
+ url: '/end/v1/publishable_keys/{key_id}';
117048
+ };
117049
+ export type EndUpdatePublishableKeyErrors = {
117050
+ /**
117051
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path end user id. The error names the field at fault and what it accepts; correct that field and send the request again.
117052
+ */
117053
+ 400: EndErrorEnvelope;
117054
+ /**
117055
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
117056
+ */
117057
+ 401: EndErrorEnvelope;
117058
+ /**
117059
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
117060
+ */
117061
+ 502: EndErrorEnvelope;
117062
+ /**
117063
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the end user service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
117064
+ */
117065
+ 503: EndErrorEnvelope;
117066
+ };
117067
+ export type EndUpdatePublishableKeyError = EndUpdatePublishableKeyErrors[keyof EndUpdatePublishableKeyErrors];
117068
+ export type EndUpdatePublishableKeyResponses = {
117069
+ /**
117070
+ * The key with its new name and limits, without its plaintext value.
117071
+ */
117072
+ 200: EndPublishableKey;
117073
+ };
117074
+ export type EndUpdatePublishableKeyResponse = EndUpdatePublishableKeyResponses[keyof EndUpdatePublishableKeyResponses];
117075
+ export type EventsListTypesData = {
117076
+ body?: never;
117077
+ path?: never;
117078
+ query?: never;
117079
+ url: '/events/v1/types';
117080
+ };
117081
+ export type EventsListTypesErrors = {
117082
+ /**
117083
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
117084
+ */
117085
+ 401: EventsEventsProblem;
117086
+ /**
117087
+ * 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.
117088
+ */
117089
+ 503: EventsEventsProblem;
117090
+ };
117091
+ export type EventsListTypesError = EventsListTypesErrors[keyof EventsListTypesErrors];
117092
+ export type EventsListTypesResponses = {
117093
+ /**
117094
+ * The tenant event types, one entry per type and schema version.
117095
+ */
117096
+ 200: EventsEventTypePage;
117097
+ };
117098
+ export type EventsListTypesResponse = EventsListTypesResponses[keyof EventsListTypesResponses];
117099
+ export type EventsListSubscriptionsData = {
117100
+ body?: never;
117101
+ path?: never;
117102
+ query?: {
117103
+ /**
117104
+ * Maximum subscriptions to return, from 1 to 100; defaults to 50.
117105
+ */
117106
+ limit?: number;
117107
+ };
117108
+ url: '/events/v1/subscriptions';
117109
+ };
117110
+ export type EventsListSubscriptionsErrors = {
117111
+ /**
117112
+ * 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.
117113
+ */
117114
+ 400: EventsEventsProblem;
117115
+ /**
117116
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
117117
+ */
117118
+ 401: EventsEventsProblem;
117119
+ /**
117120
+ * 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.
117121
+ */
117122
+ 503: EventsEventsProblem;
117123
+ };
117124
+ export type EventsListSubscriptionsError = EventsListSubscriptionsErrors[keyof EventsListSubscriptionsErrors];
117125
+ export type EventsListSubscriptionsResponses = {
117126
+ /**
117127
+ * Your live subscriptions.
117128
+ */
117129
+ 200: EventsEventSubscriptionPage;
117130
+ };
117131
+ export type EventsListSubscriptionsResponse = EventsListSubscriptionsResponses[keyof EventsListSubscriptionsResponses];
117132
+ export type EventsCreateSubscriptionData = {
117133
+ /**
117134
+ * What to subscribe to and how long the subscription lasts.
117135
+ */
117136
+ body: EventsCreateEventSubscriptionInput;
117137
+ path?: never;
117138
+ query?: never;
117139
+ url: '/events/v1/subscriptions';
117140
+ };
117141
+ export type EventsCreateSubscriptionErrors = {
117142
+ /**
117143
+ * 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.
117144
+ */
117145
+ 400: EventsEventsProblem;
117146
+ /**
117147
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
117148
+ */
117149
+ 401: EventsEventsProblem;
117150
+ /**
117151
+ * 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.
117152
+ */
117153
+ 503: EventsEventsProblem;
117154
+ };
117155
+ export type EventsCreateSubscriptionError = EventsCreateSubscriptionErrors[keyof EventsCreateSubscriptionErrors];
117156
+ export type EventsCreateSubscriptionResponses = {
117157
+ /**
117158
+ * The new subscription.
117159
+ */
117160
+ 201: EventsEventSubscription;
117161
+ };
117162
+ export type EventsCreateSubscriptionResponse = EventsCreateSubscriptionResponses[keyof EventsCreateSubscriptionResponses];
117163
+ export type EventsDeleteSubscriptionData = {
117164
+ body?: never;
117165
+ path: {
117166
+ /**
117167
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
117168
+ */
117169
+ subscription_id: string;
117170
+ };
117171
+ query?: never;
117172
+ url: '/events/v1/subscriptions/{subscription_id}';
117173
+ };
117174
+ export type EventsDeleteSubscriptionErrors = {
117175
+ /**
117176
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
117177
+ */
117178
+ 401: EventsEventsProblem;
117179
+ /**
117180
+ * 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.
117181
+ */
117182
+ 404: EventsEventsProblem;
117183
+ /**
117184
+ * 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.
117185
+ */
117186
+ 503: EventsEventsProblem;
117187
+ };
117188
+ export type EventsDeleteSubscriptionError = EventsDeleteSubscriptionErrors[keyof EventsDeleteSubscriptionErrors];
117189
+ export type EventsDeleteSubscriptionResponses = {
117190
+ /**
117191
+ * The subscription is deleted; there is no body.
117192
+ */
117193
+ 204: void;
117194
+ };
117195
+ export type EventsDeleteSubscriptionResponse = EventsDeleteSubscriptionResponses[keyof EventsDeleteSubscriptionResponses];
117196
+ export type EventsRetrieveSubscriptionData = {
117197
+ body?: never;
117198
+ path: {
117199
+ /**
117200
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
117201
+ */
117202
+ subscription_id: string;
117203
+ };
117204
+ query?: never;
117205
+ url: '/events/v1/subscriptions/{subscription_id}';
117206
+ };
117207
+ export type EventsRetrieveSubscriptionErrors = {
117208
+ /**
117209
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
117210
+ */
117211
+ 401: EventsEventsProblem;
117212
+ /**
117213
+ * 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.
117214
+ */
117215
+ 404: EventsEventsProblem;
117216
+ /**
117217
+ * 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.
117218
+ */
117219
+ 503: EventsEventsProblem;
117220
+ };
117221
+ export type EventsRetrieveSubscriptionError = EventsRetrieveSubscriptionErrors[keyof EventsRetrieveSubscriptionErrors];
117222
+ export type EventsRetrieveSubscriptionResponses = {
117223
+ /**
117224
+ * The subscription.
117225
+ */
117226
+ 200: EventsEventSubscription;
117227
+ };
117228
+ export type EventsRetrieveSubscriptionResponse = EventsRetrieveSubscriptionResponses[keyof EventsRetrieveSubscriptionResponses];
115142
117229
  export type KnowledgeListVectorStoresData = {
115143
117230
  body?: never;
115144
117231
  path?: never;