@deepraxis/sdk 0.2.0-dev.bf85cdc → 0.2.0-dev.c1f0e29

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: {
@@ -14450,6 +14455,95 @@ export type CanvasLibraryVersionPage = {
14450
14455
  */
14451
14456
  next_cursor: string | null;
14452
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
+ };
14453
14547
  export type CanvasLibraryPage = {
14454
14548
  /**
14455
14549
  * Libraries on this page, most recently published first.
@@ -20304,6 +20398,31 @@ export type DevopsPullRequest = {
20304
20398
  */
20305
20399
  runs?: Array<string>;
20306
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 Vice President's 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 Vice President who authorized it, as agent:<id> or human:<id>; must hold an active assignment to the workforce job whose code is vice-president.
20423
+ */
20424
+ authorizedBy: string;
20425
+ };
20307
20426
  /**
20308
20427
  * How to land the pull request. Every field is optional: an empty object merges now with GitHub's default shape.
20309
20428
  */
@@ -20875,6 +20994,401 @@ export type DevopsUnitTransitionPage = {
20875
20994
  */
20876
20995
  nextPageToken: string;
20877
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
+ };
20878
21392
  /**
20879
21393
  * The tenant event types.
20880
21394
  */
@@ -37652,6 +38166,60 @@ export type CanvasLibraryVersion = {
37652
38166
  */
37653
38167
  removed: Array<CanvasComponentRef>;
37654
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
+ };
37655
38223
  export type CanvasLibrarySummary = {
37656
38224
  /**
37657
38225
  * The library's canvas id; use it as canvas_id in library_versions and publish.
@@ -39518,7 +40086,7 @@ export type DevopsReleaseSchedule = {
39518
40086
  */
39519
40087
  export type DevopsGatePolicy = {
39520
40088
  /**
39521
- * 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.
39522
40090
  */
39523
40091
  tests?: 'evidence' | 'off';
39524
40092
  /**
@@ -39534,7 +40102,7 @@ export type DevopsGatePolicy = {
39534
40102
  */
39535
40103
  mode: 'enforce' | 'evaluate' | 'off';
39536
40104
  /**
39537
- * 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.
39538
40106
  */
39539
40107
  whenUnavailable: 'fail-closed' | 'fail-open';
39540
40108
  /**
@@ -39544,10 +40112,6 @@ export type DevopsGatePolicy = {
39544
40112
  [key: string]: unknown;
39545
40113
  };
39546
40114
  }>;
39547
- /**
39548
- * Subjects allowed to bypass the gate, as agent:<id> or human:<id>.
39549
- */
39550
- bypass?: Array<string>;
39551
40115
  };
39552
40116
  /**
39553
40117
  * One commit inside a release, so a reader can see what is about to ship without leaving this answer.
@@ -40360,7 +40924,7 @@ export type DevopsChangeCell = {
40360
40924
  */
40361
40925
  export type DevopsMergeGate = {
40362
40926
  /**
40363
- * 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).
40364
40928
  */
40365
40929
  state: 'pending' | 'passed' | 'failed';
40366
40930
  /**
@@ -40376,9 +40940,38 @@ export type DevopsMergeGate = {
40376
40940
  */
40377
40941
  name: 'exposure-declared' | 'flag-registered' | 'flag-paired-scenarios' | 'removal-ticket' | 'tests' | 'lockfile' | 'exposure-judged' | 'owner-approved' | 'repo-lint';
40378
40942
  /**
40379
- * 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.
40380
40944
  */
40381
- result: 'passed' | 'failed' | 'skipped' | 'pending';
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.
40960
+ */
40961
+ overriddenBy?: {
40962
+ /**
40963
+ * The override id (gov_…) overrideGate recorded.
40964
+ */
40965
+ override: string;
40966
+ /**
40967
+ * The Vice President 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
+ };
40382
40975
  /**
40383
40976
  * What to do about a failed or pending check, or the gatekeeper's reason for a judgement; absent when the check simply passed.
40384
40977
  */
@@ -40752,6 +41345,156 @@ export type DevopsCleanupEntry = {
40752
41345
  */
40753
41346
  error: string | null;
40754
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
+ };
40755
41498
  /**
40756
41499
  * One tenant event type at one schema version.
40757
41500
  */
@@ -53180,6 +53923,18 @@ export type DevopsWorkspaceStagePath = DevopsWorkspaceStage;
53180
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.
53181
53924
  */
53182
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;
53183
53938
  /**
53184
53939
  * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
53185
53940
  */
@@ -69973,15 +70728,15 @@ export type CreateAgentUploadContentUrlResponse = CreateAgentUploadContentUrlRes
69973
70728
  export type CreateAudioSpeechData = {
69974
70729
  body: unknown & {
69975
70730
  /**
69976
- * 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.
69977
70732
  */
69978
70733
  model: string;
69979
70734
  /**
69980
- * 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.
69981
70736
  */
69982
70737
  input?: string;
69983
70738
  /**
69984
- * 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.
69985
70740
  */
69986
70741
  voice?: string | {
69987
70742
  /**
@@ -69994,7 +70749,7 @@ export type CreateAudioSpeechData = {
69994
70749
  */
69995
70750
  instructions?: string;
69996
70751
  /**
69997
- * 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.
69998
70753
  */
69999
70754
  response_format?: 'mp3' | 'opus' | 'flac' | 'wav' | 'pcm';
70000
70755
  /**
@@ -70010,7 +70765,7 @@ export type CreateAudioSpeechData = {
70010
70765
  */
70011
70766
  text?: string;
70012
70767
  /**
70013
- * MeloTTS alias for input; input then text take precedence.
70768
+ * Alias for input; input then text take precedence.
70014
70769
  */
70015
70770
  prompt?: string;
70016
70771
  /**
@@ -70018,7 +70773,7 @@ export type CreateAudioSpeechData = {
70018
70773
  */
70019
70774
  speaker?: string;
70020
70775
  /**
70021
- * 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.
70022
70777
  */
70023
70778
  lang?: 'en' | 'fr' | 'es' | 'zh' | 'ja' | 'ko';
70024
70779
  /**
@@ -79540,10 +80295,10 @@ export type ListOrganizationCostsData = {
79540
80295
  */
79541
80296
  time_zone?: string;
79542
80297
  /**
79543
- * 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.
79544
80299
  *
79545
80300
  */
79546
- group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit'>;
80301
+ group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit' | 'SessionId' | 'AgentId' | 'ApiKeyId' | 'RunId'>;
79547
80302
  /**
79548
80303
  * Opaque cursor from the previous page's next_page.
79549
80304
  */
@@ -79610,6 +80365,22 @@ export type ListOrganizationCostsResponses = {
79610
80365
  * Display name of the resource; falls back to ResourceId when no name is known.
79611
80366
  */
79612
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;
79613
80384
  /**
79614
80385
  * Amount in BillingCurrency: US dollars for USD, decimal string, 6 decimals.
79615
80386
  */
@@ -79658,10 +80429,10 @@ export type ListOrganizationUsageData = {
79658
80429
  */
79659
80430
  time_zone?: string;
79660
80431
  /**
79661
- * 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.
79662
80433
  *
79663
80434
  */
79664
- group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit'>;
80435
+ group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit' | 'SessionId' | 'AgentId' | 'ApiKeyId' | 'RunId'>;
79665
80436
  /**
79666
80437
  * Opaque cursor from the previous page's next_page.
79667
80438
  */
@@ -79728,6 +80499,22 @@ export type ListOrganizationUsageResponses = {
79728
80499
  * Display name of the resource; falls back to ResourceId when no name is known.
79729
80500
  */
79730
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;
79731
80518
  /**
79732
80519
  * Exact decimal string in ConsumedUnit.
79733
80520
  */
@@ -79844,6 +80631,22 @@ export type ListOrganizationEventsResponses = {
79844
80631
  * X-Request-Id of the API call that produced the usage; null for usage that does not come from a request.
79845
80632
  */
79846
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;
79847
80650
  /**
79848
80651
  * How the usage was charged: settlement state, any shortfall, and why nothing was charged.
79849
80652
  */
@@ -79965,6 +80768,22 @@ export type GetOrganizationEventResponses = {
79965
80768
  * X-Request-Id of the API call that produced the usage; null for usage that does not come from a request.
79966
80769
  */
79967
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;
79968
80787
  /**
79969
80788
  * How the usage was charged: settlement state, any shortfall, and why nothing was charged.
79970
80789
  */
@@ -103873,6 +104692,60 @@ export type CanvasListLibraryVersionsResponses = {
103873
104692
  200: CanvasLibraryVersionPage;
103874
104693
  };
103875
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];
103876
104749
  export type CanvasListLibrariesData = {
103877
104750
  body?: never;
103878
104751
  path?: never;
@@ -114227,6 +115100,10 @@ export type DevopsPullRequestsRerunGateErrors = {
114227
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.
114228
115101
  */
114229
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;
114230
115107
  /**
114231
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.
114232
115109
  */
@@ -114240,6 +115117,51 @@ export type DevopsPullRequestsRerunGateResponses = {
114240
115117
  200: DevopsPullRequest;
114241
115118
  };
114242
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 the vice-president job (or the workforce positions 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];
114243
115165
  export type DevopsPullRequestsMergeData = {
114244
115166
  body?: DevopsPullRequestMergeRequest;
114245
115167
  path: {
@@ -115505,6 +116427,651 @@ export type DevopsUnitsTransitionsListResponses = {
115505
116427
  200: DevopsUnitTransitionPage;
115506
116428
  };
115507
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];
115508
117075
  export type EventsListTypesData = {
115509
117076
  body?: never;
115510
117077
  path?: never;