@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.
@@ -1186,7 +1186,7 @@ export const createAgentUploadContentUrl = (options) => (options.client ?? clien
1186
1186
  /**
1187
1187
  * Generate speech
1188
1188
  *
1189
- * Synthesize speech from text and return the complete audio as the response body. Use it for text-to-speech; to turn audio into text use createAudioTranscription. model is a speech model such as melotts or aura-2-en (list them with listModels?type=speech). MeloTTS supports response_format wav only and takes lang (en default, fr, es, zh; ja and ko currently error) and no voice; Aura takes a native speaker name in voice (default luna) and supports mp3, opus, flac, wav and pcm (pcm is raw signed 16-bit little-endian audio at 24 kHz). Unlike OpenAI, voice names such as alloy are not aliases for Aura speakers. Non-default speed, instructions and stream_format sse are not representable and return 400 input_not_representable. No transcoding is done: when response_format is omitted the format the upstream produced is returned. Minimal request: {"model":"melotts","input":"Hello","lang":"en","response_format":"wav"}.
1189
+ * Synthesize speech from text and return the complete audio as the response body. Use it for text-to-speech; to turn audio into text use createAudioTranscription. model is a speech model such as aura-2-en (list them with listModels?type=speech). Aura takes a native speaker name in voice (default luna) and supports mp3, opus, flac, wav and pcm (pcm is raw signed 16-bit little-endian audio at 24 kHz). lang is not read by any speech model offered today: Aura rejects it with 400 input_not_representable. Unlike OpenAI, voice names such as alloy are not aliases for Aura speakers. Non-default speed, instructions and stream_format sse are not representable and return 400 input_not_representable. No transcoding is done: when response_format is omitted the format the upstream produced is returned. Minimal request: {"model":"aura-2-en","input":"Hello","response_format":"mp3"}.
1190
1190
  */
1191
1191
  export const createAudioSpeech = (options) => (options.client ?? client).post({
1192
1192
  security: [{
@@ -8457,6 +8457,20 @@ export const canvasListLibraryVersions = (options) => (options.client ?? client)
8457
8457
  url: '/canvas/v1/canvases/{canvas_id}/library_versions',
8458
8458
  ...options
8459
8459
  });
8460
+ /**
8461
+ * Read a process step brief
8462
+ *
8463
+ * Read everything needed to fill one step of a canvas process, in one call, before writing its output. A process is a frame whose steps are requirement blocks; this read returns the step's requirement and derived state (waiting, ready or filled), its linked materials resolved to content, the process's shared context, the outputs of the steps it needs, and its own current outputs. Supply process_id from canvases.state or nodes.list (the process frame, or the instance of a library process that is this production) and the step key from a requirement. To fill the step, create the output element and write metadata.output through canvases.execute; this read stores nothing. A platform object linked as an embed node comes back as its reference only; read it from its own domain. Links that point at deleted nodes are dropped from the lists and named in issues.
8464
+ */
8465
+ export const canvasRetrieveProcessStepBrief = (options) => (options.client ?? client).get({
8466
+ security: [{
8467
+ key: 'canvas-bearerAuth',
8468
+ scheme: 'bearer',
8469
+ type: 'http'
8470
+ }],
8471
+ url: '/canvas/v1/canvases/{canvas_id}/processes/{process_id}/steps/{step_id}/brief',
8472
+ ...options
8473
+ });
8460
8474
  /**
8461
8475
  * List libraries
8462
8476
  *
@@ -9283,7 +9297,10 @@ export const crmLayoutsUpdate = (options) => (options.client ?? client).put({
9283
9297
  /**
9284
9298
  * Create a grant code
9285
9299
  *
9300
+ * Deprecated: use POST /end/v1/grant_codes instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9286
9301
  * Sign one of your logged-in end users in from your backend, after your own login succeeded, by handing out a one-time grant code that the browser exchanges for an access token. Call it with the organization API key; never from the browser, because the API key must stay on your server. customer_id is your own identifier for the person (an opaque value such as your database user id, not an email address or phone number); a value starting with anon_ is reserved for anonymous visitors. resources name what the sign-in may reach and is required: each entry is a scope string in the form agent:<id>:chat, content:<id>:play or application:<id>:visit, or an object with that scope plus product params this service stores without interpreting; use the id form for one object and * for every object of a type. expires_in shortens the code's life in seconds (900 seconds, fifteen minutes, by default) and max_session_seconds shortens the sign-in's life (7 days by default); merge_customer_id merges an anonymous visitor's record into this person; origin pins the page the sign-in may be made from. When the browser still holds that visitor's own access token, send it as anonymous_access_token instead of merge_customer_id: the door verifies it and merges the visitor it names, which is the usual way a merchant continues a session the browser already began. The code is single use and unknown, used or expired codes all answer 401 GRANT_CODE_INVALID at the exchange. Returns the code with HTTP 201; pass it to the Kit in the browser and never call this route with it.
9302
+ *
9303
+ * @deprecated
9287
9304
  */
9288
9305
  export const customerCreateGrantCode = (options) => (options.client ?? client).post({
9289
9306
  security: [{
@@ -9305,7 +9322,10 @@ export const customerCreateGrantCode = (options) => (options.client ?? client).p
9305
9322
  /**
9306
9323
  * Exchange a grant code or publishable key
9307
9324
  *
9325
+ * Deprecated: use POST /end/v1/access_tokens instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9308
9326
  * Turn a grant code, or a publishable key for an anonymous visitor, into the Praxis customer access token that authorizes the Kit's sessions and playbacks. It is PRE-AUTH: no platform API key is needed, because the grant code or the publishable key is the credential; the Kit calls it from the browser, so send the page Origin when the code or key is bound to one. Send exactly one of grant_code or publishable_key — the door refuses any other combination with 400. With grant_code the code is consumed atomically: concurrent attempts have exactly one winner, and unknown, already used, expired and foreign codes all answer 401 GRANT_CODE_INVALID. With publishable_key a new anonymous customer (anon_…) is created and merged into the identified one later if it signs in. The sign-in may be bound to an origin at creation; when the request Origin does not satisfy it, the exchange answers 403 ORIGIN_NOT_ALLOWED, and a blocked end user answers 403 CUSTOMER_BLOCKED. The access token lasts at most two hours and never outlives the sign-in; renew it with praxis.customer.accessTokens.renew before expires_at. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After. A publishable key may also carry its own limits (anon_rate_per_min and daily_session_cap, set on the key): over the key's per-minute exchanges the door answers 429 PUBLISHABLE_KEY_RATE_LIMITED, and once the key has admitted daily_session_cap new anonymous visitors in the current UTC day it answers 429 PUBLISHABLE_KEY_DAILY_CAP_REACHED to a new visitor while a returning visitor with a continuation_token still continues; both carry Retry-After, the seconds until their UTC minute or day ends. A key may also carry a daily_spend_cap, the most its visitors' usage may cost in one UTC day: once the usage events of this key in the current UTC day add up to it (when the platform has switched the spend cap on for your organization), the door answers 429 PUBLISHABLE_KEY_DAILY_SPEND_CAP_REACHED to every visitor, a returning one with a continuation_token included, with Retry-After until 00:00 UTC.
9327
+ *
9328
+ * @deprecated
9309
9329
  */
9310
9330
  export const customerCreateAccessToken = (options) => (options.client ?? client).post({
9311
9331
  url: '/customer/v1/access_tokens',
@@ -9318,19 +9338,28 @@ export const customerCreateAccessToken = (options) => (options.client ?? client)
9318
9338
  /**
9319
9339
  * Renew an access token
9320
9340
  *
9341
+ * Deprecated: use POST /end/v1/access_tokens/renew instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9321
9342
  * Replace a live access token with a fresh one so a signed-in end user stays signed in without signing in again. It is PRE-AUTH: the credential is the token the caller already carries as `Authorization: Bearer <access_token>`, verified by this door, and the token names the sign-in it renews. Call it before the token's expires_at; the sign-in and its resource scopes stay the same, so what the end user may reach does not change. A missing, unverifiable or foreign token answers 401 ACCESS_TOKEN_EXPIRED, and a sign-in that is over answers 401 SIGN_IN_EXPIRED or SIGN_IN_REVOKED, in which case the end user signs in again through praxis.customer.accessTokens.create. A blocked end user answers 403 CUSTOMER_BLOCKED. When the sign-in itself has ended, the renewal does not extend it. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.
9343
+ *
9344
+ * @deprecated
9322
9345
  */
9323
9346
  export const customerRenewAccessToken = (options) => (options?.client ?? client).post({ url: '/customer/v1/access_tokens/renew', ...options });
9324
9347
  /**
9325
9348
  * Sign out the current token
9326
9349
  *
9350
+ * Deprecated: use DELETE /end/v1/access_tokens/current instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9327
9351
  * Sign out: end the sign-in the caller's token belongs to and revoke every token issued from it, exactly as a logout does. It is PRE-AUTH: the credential is the token the caller carries as `Authorization: Bearer <access_token>`. Use it when the end user asks to sign out, and after it every token of that sign-in stops working and a later session or playback answers 401 SIGN_IN_REVOKED; other sign-ins of the same end user are untouched (revoke every token of one end user, organization-wide, with praxis.customer.customers.revokeTokens). A missing or unverifiable token answers 401 ACCESS_TOKEN_EXPIRED. The call answers 200 with an empty body. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.
9352
+ *
9353
+ * @deprecated
9328
9354
  */
9329
9355
  export const customerRevokeCurrentTokens = (options) => (options?.client ?? client).delete({ url: '/customer/v1/access_tokens/current', ...options });
9330
9356
  /**
9331
9357
  * List end users
9332
9358
  *
9359
+ * Deprecated: use GET /end/v1/users instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9333
9360
  * Read the organization's end-user directory and obtain the customer_id the administrative acts take. Results are ordered by last_seen_at, most recently seen first. Filter with type (identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key), blocked (true or false), resource (one product in the form agent:<id>, content:<id> or application:<id>, giving that product's own view of the directory) and q (a prefix of the customer id). Identified and anonymous end users both appear; an anonymous one that later signs in shows merged_into and its record joins that person. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null, keeping the same filters.
9361
+ *
9362
+ * @deprecated
9334
9363
  */
9335
9364
  export const customerListCustomers = (options) => (options?.client ?? client).get({
9336
9365
  security: [{
@@ -9348,7 +9377,10 @@ export const customerListCustomers = (options) => (options?.client ?? client).ge
9348
9377
  /**
9349
9378
  * Delete an end user
9350
9379
  *
9380
+ * Deprecated: use DELETE /end/v1/users/{end_user_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9351
9381
  * Delete one end user on the merchant's own confirmation, for a deletion request the person made to you. The confirm query parameter must repeat the path's customer_id; the door passes it through verbatim and the service refuses any other value with 400 INVALID_PARAMS, so a missing confirm never deletes anything. The deletion is announced on the platform event bus and each product deletes its own sessions, events and files for that person, so the call returns as soon as the directory record is gone, not when every product has finished. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.
9382
+ *
9383
+ * @deprecated
9352
9384
  */
9353
9385
  export const customerDeleteCustomer = (options) => (options.client ?? client).delete({
9354
9386
  security: [{
@@ -9366,7 +9398,10 @@ export const customerDeleteCustomer = (options) => (options.client ?? client).de
9366
9398
  /**
9367
9399
  * Get an end user
9368
9400
  *
9401
+ * Deprecated: use GET /end/v1/users/{end_user_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9369
9402
  * Read one end user of the organization: the id, its kind, whether it is blocked, its metadata and when it was first and last seen. Add expand=products,sign_ins,usage (comma separated, any combination) to also receive the products it has used with their counts, its sign-ins with their resource scopes, and its recorded usage over the whole time. An unknown id, and an id of another organization, answer 404 CUSTOMER_NOT_FOUND.
9403
+ *
9404
+ * @deprecated
9370
9405
  */
9371
9406
  export const customerGetCustomer = (options) => (options.client ?? client).get({
9372
9407
  security: [{
@@ -9384,7 +9419,10 @@ export const customerGetCustomer = (options) => (options.client ?? client).get({
9384
9419
  /**
9385
9420
  * Read end-user usage
9386
9421
  *
9422
+ * Deprecated: use GET /end/v1/users/{end_user_id}/usage instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9387
9423
  * Read what one end user has cost the organization, per product and per day. The directory stores no cost itself: this reads billing by the customerId dimension shared by every product, so it is the money figure the platform charged for that person. Send from and/or to as RFC 3339 times to narrow the window; omit both for everything recorded. Returns the total, the per-product breakdown and the per-day breakdown. An unknown id answers 404 CUSTOMER_NOT_FOUND.
9424
+ *
9425
+ * @deprecated
9388
9426
  */
9389
9427
  export const customerGetUsage = (options) => (options.client ?? client).get({
9390
9428
  security: [{
@@ -9402,7 +9440,10 @@ export const customerGetUsage = (options) => (options.client ?? client).get({
9402
9440
  /**
9403
9441
  * Block an end user
9404
9442
  *
9443
+ * Deprecated: use POST /end/v1/users/{end_user_id}/block instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9405
9444
  * Block one end user across every product of the organization. From then on no grant code, sign-in, renewal or new session and no playback is accepted for this id — each product's admission door refuses it at once. A stream already running and a playback capability already issued ride out their own token, at most two hours and 3000 seconds; they are not cut off. Send reason to record why, and the response's blocked field carries the block time, the reason and the actor. Blocking an already blocked end user is idempotent: the first block time is kept. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.
9445
+ *
9446
+ * @deprecated
9406
9447
  */
9407
9448
  export const customerBlockCustomer = (options) => (options.client ?? client).post({
9408
9449
  security: [{
@@ -9424,7 +9465,10 @@ export const customerBlockCustomer = (options) => (options.client ?? client).pos
9424
9465
  /**
9425
9466
  * Unblock an end user
9426
9467
  *
9468
+ * Deprecated: use POST /end/v1/users/{end_user_id}/unblock instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9427
9469
  * Lift a block from one end user, so the products accept its grant codes, sign-ins, renewals and new sessions again. Tokens that were revoked to enforce the block are not restored: the end user signs in again for a fresh sign-in. Unblocking an end user that is not blocked is idempotent and returns it unchanged. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.
9470
+ *
9471
+ * @deprecated
9428
9472
  */
9429
9473
  export const customerUnblockCustomer = (options) => (options.client ?? client).post({
9430
9474
  security: [{
@@ -9442,7 +9486,10 @@ export const customerUnblockCustomer = (options) => (options.client ?? client).p
9442
9486
  /**
9443
9487
  * Revoke every token of an end user
9444
9488
  *
9489
+ * Deprecated: use POST /end/v1/users/{end_user_id}/revoke_tokens instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9445
9490
  * End every sign-in of one end user at once, everything of the organization's, not one product's and not one token's. Use it when credentials may have leaked and the end user must not be trusted until it signs in again; a single sign-in is ended instead with praxis.customer.accessTokens.revoke. After it every token of that end user stops working and a new session or playback answers 401 SIGN_IN_REVOKED, while the end user itself stays in the directory and may sign in again. The response counts how many sign-ins were revoked. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.
9491
+ *
9492
+ * @deprecated
9446
9493
  */
9447
9494
  export const customerRevokeTokens = (options) => (options.client ?? client).post({
9448
9495
  security: [{
@@ -9460,7 +9507,10 @@ export const customerRevokeTokens = (options) => (options.client ?? client).post
9460
9507
  /**
9461
9508
  * List publishable keys
9462
9509
  *
9510
+ * Deprecated: use GET /end/v1/publishable_keys instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9463
9511
  * List the organization's publishable keys, newest first, so you can see which anonymous admittance is open and what each one may reach. A publishable key is public by design (it ships in the browser page); use it from the Kit to admit anonymous visitors, and never expose an API key this way. The plaintext value is not in this list: it is returned once, by the create call, and only its hash is stored. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null.
9512
+ *
9513
+ * @deprecated
9464
9514
  */
9465
9515
  export const customerListPublishableKeys = (options) => (options?.client ?? client).get({
9466
9516
  security: [{
@@ -9478,7 +9528,10 @@ export const customerListPublishableKeys = (options) => (options?.client ?? clie
9478
9528
  /**
9479
9529
  * Create a publishable key
9480
9530
  *
9531
+ * Deprecated: use POST /end/v1/publishable_keys instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9481
9532
  * Mint a publishable key so a page can admit anonymous visitors without you signing each one in from your backend. name labels the key for the console and the key list. resources is required and names what an anonymous visitor may reach, in the same form as the grant-code scopes: agent:<id>:chat, content:<id>:play or application:<id>:visit, with * for every object of one type; give it only what the anonymous experience needs, because any visitor who has the page can use the key. The response carries the plaintext key once, in key, and the store keeps only its hash — save it then, because no later call returns it. anon_rate_per_min, daily_session_cap and daily_spend_cap are optional limits of the key itself, all absent by default: the first caps how many exchanges the key allows per UTC minute across all visitors, the second how many new anonymous visitors it admits per UTC day (returning visitors are not counted); the third, daily_spend_cap, is the most the usage of this key's visitors may cost in one UTC day, as an amount with its currency such as {"amount": "5.00", "currency": "USD"} (at most 2 decimals), read from the key's usage events; change them later with praxis.customer.publishableKeys.update. Returns HTTP 201; the exchange that consumes it is praxis.customer.accessTokens.create with publishable_key.
9533
+ *
9534
+ * @deprecated
9482
9535
  */
9483
9536
  export const customerCreatePublishableKey = (options) => (options.client ?? client).post({
9484
9537
  security: [{
@@ -9500,7 +9553,10 @@ export const customerCreatePublishableKey = (options) => (options.client ?? clie
9500
9553
  /**
9501
9554
  * Delete a publishable key
9502
9555
  *
9556
+ * Deprecated: use DELETE /end/v1/publishable_keys/{key_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9503
9557
  * Delete a publishable key, closing that anonymous admittance for good. A page that still carries the plaintext key can no longer exchange it; any anonymous sign-ins it already made keep working until their own sign-in expires, so end users already admitted are not signed out by this call. Get the key id from the publishable key list, not from the plaintext value (only its hash is stored). An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.
9558
+ *
9559
+ * @deprecated
9504
9560
  */
9505
9561
  export const customerDeletePublishableKey = (options) => (options.client ?? client).delete({
9506
9562
  security: [{
@@ -9518,7 +9574,10 @@ export const customerDeletePublishableKey = (options) => (options.client ?? clie
9518
9574
  /**
9519
9575
  * Update a publishable key
9520
9576
  *
9577
+ * Deprecated: use PATCH /end/v1/publishable_keys/{key_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
9521
9578
  * Change the name of a publishable key or its own limits on anonymous admittance, for example to cap a page that is drawing more anonymous visitors than you want to pay for. Send at least one of name, anon_rate_per_min, daily_session_cap or daily_spend_cap; a field left out keeps its value, and null removes that limit. anon_rate_per_min caps the exchanges of this key per UTC minute across all visitors (returning visitors included), daily_session_cap caps the new anonymous visitors it admits per UTC day, and daily_spend_cap caps what its visitors' usage may cost per UTC day (a returning visitor is refused too, because it would start new chargeable work); a returning visitor that sends its continuation_token is never counted toward or refused by the daily cap. A new limit applies from the next exchange. The resources a key grants and its plaintext value never change; mint a new key for different resources. Get the key id from the publishable key list. An unknown, deleted or foreign id answers 400 INVALID_PARAMS, as does a limit outside its range.
9579
+ *
9580
+ * @deprecated
9522
9581
  */
9523
9582
  export const customerUpdatePublishableKey = (options) => (options.client ?? client).patch({
9524
9583
  security: [{
@@ -12355,7 +12414,7 @@ export const devopsPullRequestsGet = (options) => (options.client ?? client).get
12355
12414
  /**
12356
12415
  * Decide a pull request's merge gate again
12357
12416
  *
12358
- * Decide the merge gate again at the pull request's current head and report the result on GitHub as the "Praxis DevOps / gate" check run. Use it when a fact the gate reads has changed without a new push — a flag was registered, or a check that had no evidence now has some (test evidence uploaded for the head already decides the gate again by itself) — so nobody has to push an empty commit to make the check move. The answer is the pull request with the gate it now reaches. A head whose earlier gate already had a verdict and comes back pending opens a NEW check run, because GitHub will not reopen a completed one; while the same head is still deciding, the run it already owns is updated in place. Nothing else on the pull request changes, and repeating the call is safe: the same facts decide the same gate.
12417
+ * Decide the merge gate again at the pull request's current head and report the result on GitHub as the "Praxis DevOps / gate" check run; use it when a check says 平台故障,不是代码问题 (cause infrastructure) or when a fact the gate reads changed without a new push. First it restarts the checks the platform could not answer at this head — repo-lint or lockfile reading unavailable with cause infrastructure, or not_run — by clearing their unanswered records and starting the check machine again; a passed or failed result is never reopened. Restarting is limited to 3 times per head per hour, and a fourth is refused with GATE_RERUN_LIMITED (429): an outage that is not fixed only fails again, so report it to 运维部 instead. A call with nothing to restart only decides again and is never limited — for example after a flag was registered (test evidence uploaded for the head already decides the gate again by itself). The answer is the pull request with the gate it now reaches; a restarted check reads pending until the machine answers. A head whose earlier gate already had a verdict and comes back pending opens a NEW check run, because GitHub will not reopen a completed one.
12359
12418
  */
12360
12419
  export const devopsPullRequestsRerunGate = (options) => (options.client ?? client).post({
12361
12420
  security: [{
@@ -12366,6 +12425,24 @@ export const devopsPullRequestsRerunGate = (options) => (options.client ?? clien
12366
12425
  url: '/devops/v1/pull-requests/{id}:rerunGate',
12367
12426
  ...options
12368
12427
  });
12428
+ /**
12429
+ * Record a Vice President's exception to the merge gate
12430
+ *
12431
+ * Record the one exception to the fail-closed merge gate: a Vice President's written authorization, for named checks, at the pull request's current head. Use it only when the authorization is already written on a ticket and the platform cannot answer a check in time; to restart a check the platform failed, use rerunGate first. headSha must be the current head (HEAD_MOVED otherwise), and a new push voids the override, because the gate reads only the overrides of its own head. authorizedBy must be the address (agent:<id> or human:<id>) of an actor holding an active workforce assignment to the job whose code is vice-president, otherwise GATE_OVERRIDE_NOT_AUTHORIZED (403) and nothing is written; when the workforce positions cannot be read the call is refused too (fail-closed). The override is written once and never changed: the checks keep their real result, stop counting, and carry overriddenBy; the gate is decided again and its summary lists them on their own line, and the event devops.gate.overridden is published. A pull request that is not open is refused with PULL_REQUEST_NOT_OPEN. Example body: {"headSha":"4f2a9c1…","checks":["repo-lint"],"ticket":"#5273","reason":"build machines down, fix in #6801","authorizedBy":"agent:agent_praxisfour"}.
12432
+ */
12433
+ export const devopsPullRequestsOverrideGate = (options) => (options.client ?? client).post({
12434
+ security: [{
12435
+ key: 'devops-bearerAuth',
12436
+ scheme: 'bearer',
12437
+ type: 'http'
12438
+ }],
12439
+ url: '/devops/v1/pull-requests/{id}:overrideGate',
12440
+ ...options,
12441
+ headers: {
12442
+ 'Content-Type': 'application/json',
12443
+ ...options.headers
12444
+ }
12445
+ });
12369
12446
  /**
12370
12447
  * Merge a pull request through its gate
12371
12448
  *
@@ -12806,6 +12883,263 @@ export const devopsUnitsTransitionsList = (options) => (options.client ?? client
12806
12883
  url: '/devops/v1/units/{id}/transitions',
12807
12884
  ...options
12808
12885
  });
12886
+ /**
12887
+ * Create a grant code
12888
+ *
12889
+ * Sign one of your logged-in end users in from your backend, after your own login succeeded, by handing out a one-time grant code that the browser exchanges for an access token. Call it with the organization API key; never from the browser, because the API key must stay on your server. end_user_id is your own identifier for the person (an opaque value such as your database user id, not an email address or phone number); a value starting with anon_ is reserved for anonymous visitors. resources name what the sign-in may reach and is required: each entry is a scope string in the form agent:<id>:chat, content:<id>:play or application:<id>:visit, or an object with that scope plus product params this service stores without interpreting; use the id form for one object and * for every object of a type. expires_in shortens the code's life in seconds (900 seconds, fifteen minutes, by default) and max_session_seconds shortens the sign-in's life (7 days by default); merge_end_user_id merges an anonymous visitor's record into this person; origin pins the page the sign-in may be made from. When the browser still holds that visitor's own access token, send it as anonymous_access_token instead of merge_end_user_id: the door verifies it and merges the visitor it names, which is the usual way a merchant continues a session the browser already began. The code is single use and unknown, used or expired codes all answer 401 GRANT_CODE_INVALID at the exchange. Returns the code with HTTP 201; pass it to the Kit in the browser and never call this route with it.
12890
+ */
12891
+ export const endCreateGrantCode = (options) => (options.client ?? client).post({
12892
+ security: [{
12893
+ key: 'BearerAuth',
12894
+ scheme: 'bearer',
12895
+ type: 'http'
12896
+ }, {
12897
+ key: 'ApiKeyAuth',
12898
+ name: 'X-API-Key',
12899
+ type: 'apiKey'
12900
+ }],
12901
+ url: '/end/v1/grant_codes',
12902
+ ...options,
12903
+ headers: {
12904
+ 'Content-Type': 'application/json',
12905
+ ...options.headers
12906
+ }
12907
+ });
12908
+ /**
12909
+ * Exchange a grant code or publishable key
12910
+ *
12911
+ * Turn a grant code, or a publishable key for an anonymous visitor, into the Praxis end user access token that authorizes the Kit's sessions and playbacks. It is PRE-AUTH: no platform API key is needed, because the grant code or the publishable key is the credential; the Kit calls it from the browser, so send the page Origin when the code or key is bound to one. Send exactly one of grant_code or publishable_key — the door refuses any other combination with 400. With grant_code the code is consumed atomically: concurrent attempts have exactly one winner, and unknown, already used, expired and foreign codes all answer 401 GRANT_CODE_INVALID. With publishable_key a new anonymous end user (anon_…) is created and merged into the identified one later if it signs in. The sign-in may be bound to an origin at creation; when the request Origin does not satisfy it, the exchange answers 403 ORIGIN_NOT_ALLOWED, and a blocked end user answers 403 END_USER_BLOCKED. The access token lasts at most two hours and never outlives the sign-in; renew it with praxis.end.accessTokens.renew before expires_at. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After. A publishable key may also carry its own limits (anon_rate_per_min and daily_session_cap, set on the key): over the key's per-minute exchanges the door answers 429 PUBLISHABLE_KEY_RATE_LIMITED, and once the key has admitted daily_session_cap new anonymous visitors in the current UTC day it answers 429 PUBLISHABLE_KEY_DAILY_CAP_REACHED to a new visitor while a returning visitor with a continuation_token still continues; both carry Retry-After, the seconds until their UTC minute or day ends. A key may also carry a daily_spend_cap, the most its visitors' usage may cost in one UTC day: once the usage events of this key in the current UTC day add up to it (when the platform has switched the spend cap on for your organization), the door answers 429 PUBLISHABLE_KEY_DAILY_SPEND_CAP_REACHED to every visitor, a returning one with a continuation_token included, with Retry-After until 00:00 UTC.
12912
+ */
12913
+ export const endCreateAccessToken = (options) => (options.client ?? client).post({
12914
+ url: '/end/v1/access_tokens',
12915
+ ...options,
12916
+ headers: {
12917
+ 'Content-Type': 'application/json',
12918
+ ...options.headers
12919
+ }
12920
+ });
12921
+ /**
12922
+ * Renew an access token
12923
+ *
12924
+ * Replace a live access token with a fresh one so a signed-in end user stays signed in without signing in again. It is PRE-AUTH: the credential is the token the caller already carries as `Authorization: Bearer <access_token>`, verified by this door, and the token names the sign-in it renews. Call it before the token's expires_at; the sign-in and its resource scopes stay the same, so what the end user may reach does not change. A missing, unverifiable or foreign token answers 401 ACCESS_TOKEN_EXPIRED, and a sign-in that is over answers 401 SIGN_IN_EXPIRED or SIGN_IN_REVOKED, in which case the end user signs in again through praxis.end.accessTokens.create. A blocked end user answers 403 END_USER_BLOCKED. When the sign-in itself has ended, the renewal does not extend it. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.
12925
+ */
12926
+ export const endRenewAccessToken = (options) => (options?.client ?? client).post({ url: '/end/v1/access_tokens/renew', ...options });
12927
+ /**
12928
+ * Sign out the current token
12929
+ *
12930
+ * Sign out: end the sign-in the caller's token belongs to and revoke every token issued from it, exactly as a logout does. It is PRE-AUTH: the credential is the token the caller carries as `Authorization: Bearer <access_token>`. Use it when the end user asks to sign out, and after it every token of that sign-in stops working and a later session or playback answers 401 SIGN_IN_REVOKED; other sign-ins of the same end user are untouched (revoke every token of one end user, organization-wide, with praxis.end.users.revokeTokens). A missing or unverifiable token answers 401 ACCESS_TOKEN_EXPIRED. The call answers 200 with an empty body. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.
12931
+ */
12932
+ export const endRevokeCurrentTokens = (options) => (options?.client ?? client).delete({ url: '/end/v1/access_tokens/current', ...options });
12933
+ /**
12934
+ * List end users
12935
+ *
12936
+ * Read the organization's end-user directory and obtain the end_user_id the administrative acts take. Results are ordered by last_seen_at, most recently seen first. Filter with type (identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key), blocked (true or false), resource (one product in the form agent:<id>, content:<id> or application:<id>, giving that product's own view of the directory) and q (a prefix of the end user id). Identified and anonymous end users both appear; an anonymous one that later signs in shows merged_into and its record joins that person. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null, keeping the same filters.
12937
+ */
12938
+ export const endListUsers = (options) => (options?.client ?? client).get({
12939
+ security: [{
12940
+ key: 'BearerAuth',
12941
+ scheme: 'bearer',
12942
+ type: 'http'
12943
+ }, {
12944
+ key: 'ApiKeyAuth',
12945
+ name: 'X-API-Key',
12946
+ type: 'apiKey'
12947
+ }],
12948
+ url: '/end/v1/users',
12949
+ ...options
12950
+ });
12951
+ /**
12952
+ * Delete an end user
12953
+ *
12954
+ * Delete one end user on the merchant's own confirmation, for a deletion request the person made to you. The confirm query parameter must repeat the path's end_user_id; the door passes it through verbatim and the service refuses any other value with 400 INVALID_PARAMS, so a missing confirm never deletes anything. The deletion is announced on the platform event bus and each product deletes its own sessions, events and files for that person, so the call returns as soon as the directory record is gone, not when every product has finished. An unknown or foreign id answers 404 END_USER_NOT_FOUND.
12955
+ */
12956
+ export const endDeleteUser = (options) => (options.client ?? client).delete({
12957
+ security: [{
12958
+ key: 'BearerAuth',
12959
+ scheme: 'bearer',
12960
+ type: 'http'
12961
+ }, {
12962
+ key: 'ApiKeyAuth',
12963
+ name: 'X-API-Key',
12964
+ type: 'apiKey'
12965
+ }],
12966
+ url: '/end/v1/users/{end_user_id}',
12967
+ ...options
12968
+ });
12969
+ /**
12970
+ * Get an end user
12971
+ *
12972
+ * Read one end user of the organization: the id, its kind, whether it is blocked, its metadata and when it was first and last seen. Add expand=products,sign_ins,usage (comma separated, any combination) to also receive the products it has used with their counts, its sign-ins with their resource scopes, and its recorded usage over the whole time. An unknown id, and an id of another organization, answer 404 END_USER_NOT_FOUND.
12973
+ */
12974
+ export const endGetUser = (options) => (options.client ?? client).get({
12975
+ security: [{
12976
+ key: 'BearerAuth',
12977
+ scheme: 'bearer',
12978
+ type: 'http'
12979
+ }, {
12980
+ key: 'ApiKeyAuth',
12981
+ name: 'X-API-Key',
12982
+ type: 'apiKey'
12983
+ }],
12984
+ url: '/end/v1/users/{end_user_id}',
12985
+ ...options
12986
+ });
12987
+ /**
12988
+ * Read end-user usage
12989
+ *
12990
+ * Read what one end user has cost the organization, per product and per day. The directory stores no cost itself: this reads billing by the endId dimension shared by every product, so it is the money figure the platform charged for that person. Send from and/or to as RFC 3339 times to narrow the window; omit both for everything recorded. Returns the total, the per-product breakdown and the per-day breakdown. An unknown id answers 404 END_USER_NOT_FOUND.
12991
+ */
12992
+ export const endGetUsage = (options) => (options.client ?? client).get({
12993
+ security: [{
12994
+ key: 'BearerAuth',
12995
+ scheme: 'bearer',
12996
+ type: 'http'
12997
+ }, {
12998
+ key: 'ApiKeyAuth',
12999
+ name: 'X-API-Key',
13000
+ type: 'apiKey'
13001
+ }],
13002
+ url: '/end/v1/users/{end_user_id}/usage',
13003
+ ...options
13004
+ });
13005
+ /**
13006
+ * Block an end user
13007
+ *
13008
+ * Block one end user across every product of the organization. From then on no grant code, sign-in, renewal or new session and no playback is accepted for this id — each product's admission door refuses it at once. A stream already running and a playback capability already issued ride out their own token, at most two hours and 3000 seconds; they are not cut off. Send reason to record why, and the response's blocked field carries the block time, the reason and the actor. Blocking an already blocked end user is idempotent: the first block time is kept. An unknown or foreign id answers 404 END_USER_NOT_FOUND.
13009
+ */
13010
+ export const endBlockUser = (options) => (options.client ?? client).post({
13011
+ security: [{
13012
+ key: 'BearerAuth',
13013
+ scheme: 'bearer',
13014
+ type: 'http'
13015
+ }, {
13016
+ key: 'ApiKeyAuth',
13017
+ name: 'X-API-Key',
13018
+ type: 'apiKey'
13019
+ }],
13020
+ url: '/end/v1/users/{end_user_id}/block',
13021
+ ...options,
13022
+ headers: {
13023
+ 'Content-Type': 'application/json',
13024
+ ...options.headers
13025
+ }
13026
+ });
13027
+ /**
13028
+ * Unblock an end user
13029
+ *
13030
+ * Lift a block from one end user, so the products accept its grant codes, sign-ins, renewals and new sessions again. Tokens that were revoked to enforce the block are not restored: the end user signs in again for a fresh sign-in. Unblocking an end user that is not blocked is idempotent and returns it unchanged. An unknown or foreign id answers 404 END_USER_NOT_FOUND.
13031
+ */
13032
+ export const endUnblockUser = (options) => (options.client ?? client).post({
13033
+ security: [{
13034
+ key: 'BearerAuth',
13035
+ scheme: 'bearer',
13036
+ type: 'http'
13037
+ }, {
13038
+ key: 'ApiKeyAuth',
13039
+ name: 'X-API-Key',
13040
+ type: 'apiKey'
13041
+ }],
13042
+ url: '/end/v1/users/{end_user_id}/unblock',
13043
+ ...options
13044
+ });
13045
+ /**
13046
+ * Revoke every token of an end user
13047
+ *
13048
+ * End every sign-in of one end user at once, everything of the organization's, not one product's and not one token's. Use it when credentials may have leaked and the end user must not be trusted until it signs in again; a single sign-in is ended instead with praxis.end.accessTokens.revoke. After it every token of that end user stops working and a new session or playback answers 401 SIGN_IN_REVOKED, while the end user itself stays in the directory and may sign in again. The response counts how many sign-ins were revoked. An unknown or foreign id answers 404 END_USER_NOT_FOUND.
13049
+ */
13050
+ export const endRevokeTokens = (options) => (options.client ?? client).post({
13051
+ security: [{
13052
+ key: 'BearerAuth',
13053
+ scheme: 'bearer',
13054
+ type: 'http'
13055
+ }, {
13056
+ key: 'ApiKeyAuth',
13057
+ name: 'X-API-Key',
13058
+ type: 'apiKey'
13059
+ }],
13060
+ url: '/end/v1/users/{end_user_id}/revoke_tokens',
13061
+ ...options
13062
+ });
13063
+ /**
13064
+ * List publishable keys
13065
+ *
13066
+ * List the organization's publishable keys, newest first, so you can see which anonymous admittance is open and what each one may reach. A publishable key is public by design (it ships in the browser page); use it from the Kit to admit anonymous visitors, and never expose an API key this way. The plaintext value is not in this list: it is returned once, by the create call, and only its hash is stored. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null.
13067
+ */
13068
+ export const endListPublishableKeys = (options) => (options?.client ?? client).get({
13069
+ security: [{
13070
+ key: 'BearerAuth',
13071
+ scheme: 'bearer',
13072
+ type: 'http'
13073
+ }, {
13074
+ key: 'ApiKeyAuth',
13075
+ name: 'X-API-Key',
13076
+ type: 'apiKey'
13077
+ }],
13078
+ url: '/end/v1/publishable_keys',
13079
+ ...options
13080
+ });
13081
+ /**
13082
+ * Create a publishable key
13083
+ *
13084
+ * Mint a publishable key so a page can admit anonymous visitors without you signing each one in from your backend. name labels the key for the console and the key list. resources is required and names what an anonymous visitor may reach, in the same form as the grant-code scopes: agent:<id>:chat, content:<id>:play or application:<id>:visit, with * for every object of one type; give it only what the anonymous experience needs, because any visitor who has the page can use the key. The response carries the plaintext key once, in key, and the store keeps only its hash — save it then, because no later call returns it. anon_rate_per_min, daily_session_cap and daily_spend_cap are optional limits of the key itself, all absent by default: the first caps how many exchanges the key allows per UTC minute across all visitors, the second how many new anonymous visitors it admits per UTC day (returning visitors are not counted); the third, daily_spend_cap, is the most the usage of this key's visitors may cost in one UTC day, as an amount with its currency such as {"amount": "5.00", "currency": "USD"} (at most 2 decimals), read from the key's usage events; change them later with praxis.end.publishableKeys.update. Returns HTTP 201; the exchange that consumes it is praxis.end.accessTokens.create with publishable_key.
13085
+ */
13086
+ export const endCreatePublishableKey = (options) => (options.client ?? client).post({
13087
+ security: [{
13088
+ key: 'BearerAuth',
13089
+ scheme: 'bearer',
13090
+ type: 'http'
13091
+ }, {
13092
+ key: 'ApiKeyAuth',
13093
+ name: 'X-API-Key',
13094
+ type: 'apiKey'
13095
+ }],
13096
+ url: '/end/v1/publishable_keys',
13097
+ ...options,
13098
+ headers: {
13099
+ 'Content-Type': 'application/json',
13100
+ ...options.headers
13101
+ }
13102
+ });
13103
+ /**
13104
+ * Delete a publishable key
13105
+ *
13106
+ * Delete a publishable key, closing that anonymous admittance for good. A page that still carries the plaintext key can no longer exchange it; any anonymous sign-ins it already made keep working until their own sign-in expires, so end users already admitted are not signed out by this call. Get the key id from the publishable key list, not from the plaintext value (only its hash is stored). An unknown or foreign id answers 404 END_USER_NOT_FOUND.
13107
+ */
13108
+ export const endDeletePublishableKey = (options) => (options.client ?? client).delete({
13109
+ security: [{
13110
+ key: 'BearerAuth',
13111
+ scheme: 'bearer',
13112
+ type: 'http'
13113
+ }, {
13114
+ key: 'ApiKeyAuth',
13115
+ name: 'X-API-Key',
13116
+ type: 'apiKey'
13117
+ }],
13118
+ url: '/end/v1/publishable_keys/{key_id}',
13119
+ ...options
13120
+ });
13121
+ /**
13122
+ * Update a publishable key
13123
+ *
13124
+ * Change the name of a publishable key or its own limits on anonymous admittance, for example to cap a page that is drawing more anonymous visitors than you want to pay for. Send at least one of name, anon_rate_per_min, daily_session_cap or daily_spend_cap; a field left out keeps its value, and null removes that limit. anon_rate_per_min caps the exchanges of this key per UTC minute across all visitors (returning visitors included), daily_session_cap caps the new anonymous visitors it admits per UTC day, and daily_spend_cap caps what its visitors' usage may cost per UTC day (a returning visitor is refused too, because it would start new chargeable work); a returning visitor that sends its continuation_token is never counted toward or refused by the daily cap. A new limit applies from the next exchange. The resources a key grants and its plaintext value never change; mint a new key for different resources. Get the key id from the publishable key list. An unknown, deleted or foreign id answers 400 INVALID_PARAMS, as does a limit outside its range.
13125
+ */
13126
+ export const endUpdatePublishableKey = (options) => (options.client ?? client).patch({
13127
+ security: [{
13128
+ key: 'BearerAuth',
13129
+ scheme: 'bearer',
13130
+ type: 'http'
13131
+ }, {
13132
+ key: 'ApiKeyAuth',
13133
+ name: 'X-API-Key',
13134
+ type: 'apiKey'
13135
+ }],
13136
+ url: '/end/v1/publishable_keys/{key_id}',
13137
+ ...options,
13138
+ headers: {
13139
+ 'Content-Type': 'application/json',
13140
+ ...options.headers
13141
+ }
13142
+ });
12809
13143
  /**
12810
13144
  * List event types
12811
13145
  *