@deepraxis/sdk 0.2.0-dev.a24e748 → 0.2.0-dev.aa49a60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/METHODS.md +66 -11
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +188 -41
- package/dist/generated/sdk.gen.js +426 -203
- package/dist/generated/types.gen.d.ts +2275 -715
- package/dist/operations.generated.js +835 -166
- package/dist/resources.generated.d.ts +63 -14
- package/dist/resources.generated.js +133 -22
- package/package.json +1 -1
|
@@ -300,7 +300,7 @@ export const getCustomer = (options) => (options.client ?? client).get({
|
|
|
300
300
|
*
|
|
301
301
|
* Poll the latest deletion task of a customer, including after its data has been removed.
|
|
302
302
|
*
|
|
303
|
-
* Use the same agent_id and customer id as the confirmed DELETE. Status is pending, snapshotting, deleting, done or failed. Counts are empty until a verified snapshot exists. snapshot_key is an operator recovery reference retained for seven days, not a download URL. A customer access token
|
|
303
|
+
* Use the same agent_id and customer id as the confirmed DELETE. Status is pending, snapshotting, deleting, done or failed. Counts are empty until a verified snapshot exists. snapshot_key is an operator recovery reference retained for seven days, not a download URL. A customer access token returns 404, as does a missing task (404 END_USER_DELETION_NOT_FOUND). Outside develop the endpoint answers 404 NOT_FOUND with "End-user deletion unavailable".
|
|
304
304
|
*/
|
|
305
305
|
export const getCustomerDeletion = (options) => (options.client ?? client).get({
|
|
306
306
|
security: [{
|
|
@@ -844,7 +844,7 @@ export const getSessionContext = (options) => (options.client ?? client).get({
|
|
|
844
844
|
*
|
|
845
845
|
* **What this method does not tell you:** whether the object was a new instance or a rebuilt first probe. That distinction is not in the contract yet; when `agent.sessions.tablesInfo`'s contract face carries `start_phase`, the two read methods move to it together. Do not infer it from this answer.
|
|
846
846
|
*
|
|
847
|
-
* A run that was never recorded, or a session that has recorded nothing yet, answers 404 with `reason: unknown_run`; a session that is absent or unreadable answers 404 with `
|
|
847
|
+
* A run that was never recorded, or a session that has recorded nothing yet, answers 404 with `reason: unknown_run`; a session that is absent or unreadable answers 404 in the one /agent/v1 error body with `error.code = SESSION_NOT_FOUND`, as every other session door does. Neither 404 body carries a record field — not even `run_id: null` — because "no record" and "an empty record" must not look the same. Own face only: the compatible face's vocabulary is the vendor's.
|
|
848
848
|
*/
|
|
849
849
|
export const getSessionPromptRevs = (options) => (options.client ?? client).get({
|
|
850
850
|
security: [{
|
|
@@ -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
|
|
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: [{
|
|
@@ -3296,7 +3296,7 @@ export const listOrganizationNotificationLetters = (options) => (options?.client
|
|
|
3296
3296
|
/**
|
|
3297
3297
|
* Send a letter to a person or an agent
|
|
3298
3298
|
*
|
|
3299
|
-
* Write one letter to a member or an agent of this organization, for an automation script or an outside caller that needs to reach someone, or to leave itself an alarm: a letter to your own address is allowed and arrives at its deliver_at. The sender is the credential's own and is never a request field
|
|
3299
|
+
* Write one letter to a member or an agent of this organization, for an automation script or an outside caller that needs to reach someone, or to leave itself an alarm: a letter to your own address is allowed and arrives at its deliver_at. The sender is the credential's own and is never a request field; a `sender` in the body is ignored. Who can send: a person's signed-in session (the person is the sender), a personal API key (it acts as the member who created it, and that member is recorded as the sender), an agent (it writes as itself), and an automation run (a scheduled or service-started one included; it writes as the platform's automation sender, with the run recorded in the letter's source). Who is refused with 403 `PERMISSION_DENIED`: a service-account API key and an application, which have no address to write from. The recipient must belong to this organization: a person or agent of another organization answers 404 without saying whether it exists. A newly created agent may answer 404 `SUBSCRIBER_NOT_FOUND` for a few seconds; retry shortly. A letter to a person needs a summary of at most 60 characters — one sentence saying what the reader must do or know; a longer one is refused, never cut. An agent's letter may leave summary out and the first line of body stands in. Repeating the same letter (same recipient, kind, thread, body and time) returns the same id and writes it once. Usage charge: none.
|
|
3300
3300
|
*/
|
|
3301
3301
|
export const createOrganizationNotificationLetter = (options) => (options.client ?? client).post({
|
|
3302
3302
|
security: [{
|
|
@@ -6537,6 +6537,60 @@ export const applicationListEvents = (options) => (options.client ?? client).get
|
|
|
6537
6537
|
url: '/application/v1/workers/{worker_id}/events',
|
|
6538
6538
|
...options
|
|
6539
6539
|
});
|
|
6540
|
+
/**
|
|
6541
|
+
* Query Worker logs
|
|
6542
|
+
*
|
|
6543
|
+
* Read this application's request logs for a time window: individual log lines (view events) or aggregates (calculations), with Cloudflare's filters, group-bys and pagination. The body is Cloudflare's Workers Observability query body and the answer its result, field for field, so examples from Cloudflare's documentation work as they are. The server scopes every read to this application: it adds the application's script name as a filter, forces the dataset to cloudflare-workers and drops any caller filter on the script or dataset, so one application never reads another's logs. Logs are kept 7 days and start once the next deployment runs with observability on (on by default). Use logs:keys and logs:values to discover the fields to filter on, and the Worker's events (ListEvents) for lifecycle rather than request logs.
|
|
6544
|
+
*/
|
|
6545
|
+
export const applicationQueryWorkerLogs = (options) => (options.client ?? client).post({
|
|
6546
|
+
security: [{
|
|
6547
|
+
key: 'application-bearerAuth',
|
|
6548
|
+
scheme: 'bearer',
|
|
6549
|
+
type: 'http'
|
|
6550
|
+
}],
|
|
6551
|
+
url: '/application/v1/workers/{worker_id}/logs:query',
|
|
6552
|
+
...options,
|
|
6553
|
+
headers: {
|
|
6554
|
+
'Content-Type': 'application/json',
|
|
6555
|
+
...options.headers
|
|
6556
|
+
}
|
|
6557
|
+
});
|
|
6558
|
+
/**
|
|
6559
|
+
* List log fields
|
|
6560
|
+
*
|
|
6561
|
+
* List the fields present in this application's request logs (key, type, last seen), to build filters for logs:query or values for logs:values. Scoped to this application exactly like logs:query. Cloudflare's telemetry keys body and answer, unchanged.
|
|
6562
|
+
*/
|
|
6563
|
+
export const applicationListWorkerLogKeys = (options) => (options.client ?? client).post({
|
|
6564
|
+
security: [{
|
|
6565
|
+
key: 'application-bearerAuth',
|
|
6566
|
+
scheme: 'bearer',
|
|
6567
|
+
type: 'http'
|
|
6568
|
+
}],
|
|
6569
|
+
url: '/application/v1/workers/{worker_id}/logs:keys',
|
|
6570
|
+
...options,
|
|
6571
|
+
headers: {
|
|
6572
|
+
'Content-Type': 'application/json',
|
|
6573
|
+
...options.headers
|
|
6574
|
+
}
|
|
6575
|
+
});
|
|
6576
|
+
/**
|
|
6577
|
+
* List log field values
|
|
6578
|
+
*
|
|
6579
|
+
* List the distinct values a field takes in this application's request logs within a window, to build filters whose values actually match (for example the levels that occur). Scoped to this application exactly like logs:query. Cloudflare's telemetry values body and answer, unchanged.
|
|
6580
|
+
*/
|
|
6581
|
+
export const applicationListWorkerLogValues = (options) => (options.client ?? client).post({
|
|
6582
|
+
security: [{
|
|
6583
|
+
key: 'application-bearerAuth',
|
|
6584
|
+
scheme: 'bearer',
|
|
6585
|
+
type: 'http'
|
|
6586
|
+
}],
|
|
6587
|
+
url: '/application/v1/workers/{worker_id}/logs:values',
|
|
6588
|
+
...options,
|
|
6589
|
+
headers: {
|
|
6590
|
+
'Content-Type': 'application/json',
|
|
6591
|
+
...options.headers
|
|
6592
|
+
}
|
|
6593
|
+
});
|
|
6540
6594
|
/**
|
|
6541
6595
|
* Create asset upload session
|
|
6542
6596
|
*
|
|
@@ -8457,6 +8511,20 @@ export const canvasListLibraryVersions = (options) => (options.client ?? client)
|
|
|
8457
8511
|
url: '/canvas/v1/canvases/{canvas_id}/library_versions',
|
|
8458
8512
|
...options
|
|
8459
8513
|
});
|
|
8514
|
+
/**
|
|
8515
|
+
* Read a process step brief
|
|
8516
|
+
*
|
|
8517
|
+
* 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.
|
|
8518
|
+
*/
|
|
8519
|
+
export const canvasRetrieveProcessStepBrief = (options) => (options.client ?? client).get({
|
|
8520
|
+
security: [{
|
|
8521
|
+
key: 'canvas-bearerAuth',
|
|
8522
|
+
scheme: 'bearer',
|
|
8523
|
+
type: 'http'
|
|
8524
|
+
}],
|
|
8525
|
+
url: '/canvas/v1/canvases/{canvas_id}/processes/{process_id}/steps/{step_id}/brief',
|
|
8526
|
+
...options
|
|
8527
|
+
});
|
|
8460
8528
|
/**
|
|
8461
8529
|
* List libraries
|
|
8462
8530
|
*
|
|
@@ -8680,7 +8748,7 @@ export const contentGetVersion = (options) => (options.client ?? client).get({
|
|
|
8680
8748
|
/**
|
|
8681
8749
|
* Open a playback session
|
|
8682
8750
|
*
|
|
8683
|
-
* Open one playback of a published content for an end user and get the manifest address a player loads. No platform API key is needed: the caller is the end user's own Praxis customer access token carried as `Authorization: Bearer <access_token>`, verified by this door exactly as the customer exchange verifies it. A caller with no token is left to the service, which refuses it RESOURCE_NOT_GRANTED, because a content is always signed and there is no public playback. The organization is taken from the content row, never from the token, and a token that claims another organization is refused. The content must be published (otherwise 403 CONTENT_NOT_PUBLISHED), its allowed_origins must accept the request Origin when the list is not empty (otherwise 403 ORIGIN_NOT_ALLOWED), the token must cover a resource for this content (otherwise 403 RESOURCE_NOT_GRANTED) and the pinned version must be ready (otherwise 409 SOURCE_NOT_READY; retry once readiness is ready). Returns HTTP 201 with the session id, manifest_url (https://content.praxisusercontent.com/{content_id}/{capability}/master.m3u8), expire_time, the renditions, the poster, the title when the player shows it, and the player settings. The playback reads access settings from the content's latest version and source and player from the live version, so a tightened origin or lifetime takes effect without a republish. This door has its own per-IP request budget: over it answers 429 RATE_LIMITED with Retry-After.
|
|
8751
|
+
* Open one playback of a published content for an end user and get the manifest address a player loads. No platform API key is needed: the caller is the end user's own Praxis customer access token carried as `Authorization: Bearer <access_token>`, verified by this door exactly as the customer exchange verifies it. A caller with no token is left to the service, which refuses it RESOURCE_NOT_GRANTED, because a content is always signed and there is no public playback. The organization is taken from the content row, never from the token, and a token that claims another organization is refused. The content must be published (otherwise 403 CONTENT_NOT_PUBLISHED), its allowed_origins must accept the request Origin when the list is not empty (otherwise 403 ORIGIN_NOT_ALLOWED), the token must cover a resource for this content (otherwise 403 RESOURCE_NOT_GRANTED) and the pinned version must be ready (otherwise 409 SOURCE_NOT_READY; retry once readiness is ready). Returns HTTP 201 with the session id, manifest_url (its host depends on the viewer's region, https://content.praxisusercontent.com/{content_id}/{capability}/master.m3u8 or a mainland edge address such as https://media-hk.deepractice.cn/play/{content_id}/{capability}/master.m3u8; pass it to the player exactly as returned), expire_time, the renditions, the poster, the title when the player shows it, and the player settings. The playback reads access settings from the content's latest version and source and player from the live version, so a tightened origin or lifetime takes effect without a republish. This door has its own per-IP request budget: over it answers 429 RATE_LIMITED with Retry-After.
|
|
8684
8752
|
*/
|
|
8685
8753
|
export const contentCreatePlaybackSession = (options) => (options.client ?? client).post({
|
|
8686
8754
|
url: '/content/v1/playback/sessions',
|
|
@@ -8889,7 +8957,7 @@ export const crmObjectsBatchArchive = (options) => (options.client ?? client).po
|
|
|
8889
8957
|
/**
|
|
8890
8958
|
* List properties
|
|
8891
8959
|
*
|
|
8892
|
-
* Inspect the property definitions available for an object type before writing or filtering records. Obtain objectType from schemas.list; reuse each immutable name in record properties and filters. archived defaults to false.
|
|
8960
|
+
* Inspect the property definitions available for an object type before writing or filtering records. Obtain objectType from schemas.list; reuse each immutable name in record properties and filters. archived defaults to false. Every organization starts with preset definitions. For contacts these are the HubSpot default contact properties that a person or the API can write - salutation, firstname, lastname, email, phone, mobilephone, fax, company, jobtitle, website, address, city, state, zip, country, industry, numemployees, annualrevenue and message - plus hubspot_owner_id, lifecyclestage (HubSpot's default stages) and hs_lead_status (HubSpot's default statuses). All of them sit in the contactinformation group and are writable; industry is free text here where HubSpot presents a fixed dropdown, and fax uses the phone-number format. The remaining HubSpot default contact properties are deliberately not provided, because the HubSpot feature behind each one is not part of Praxis - values HubSpot computes and keeps read-only (create and last-modified dates, created-by and updated-by user ids, owner-assigned date, email domain, record id and record source, country and state codes, contact unworked), activity, sequence, meeting and NPS dates and counters and predictive scores, form and conversion tracking (first and recent conversion, form submission counts, ad click ids, IP location, original and latest traffic source, page views and sessions), marketing email state (opt-outs, bounces, quarantine, delivered, opened and clicked counts and dates, marketing contact status), deal rollups (associated deals, revenue, close and first deal dates, days to close), lifecycle-stage timing, the ads form fields (date of birth, gender, marital status, education), private content membership, social profile handles, follower counts and photo, and account-level fields HubSpot maintains from its own settings (persona, preferred language, time zone, legal basis, brands, shared teams and users, team and merged ids). Create one as a custom property when a workflow needs it.
|
|
8893
8961
|
*/
|
|
8894
8962
|
export const crmPropertiesList = (options) => (options.client ?? client).get({
|
|
8895
8963
|
security: [{
|
|
@@ -9216,6 +9284,34 @@ export const crmSchemasCreate = (options) => (options.client ?? client).post({
|
|
|
9216
9284
|
...options.headers
|
|
9217
9285
|
}
|
|
9218
9286
|
});
|
|
9287
|
+
/**
|
|
9288
|
+
* Delete object schema
|
|
9289
|
+
*
|
|
9290
|
+
* Remove a custom object type together with its properties, property groups, pipelines, layout, archived records and their history, its associations and the association definitions created with it. A record that is not archived blocks the delete, and so does a rollup property on another object that reads this object, because it would silently read empty afterwards. Standard object types cannot be deleted. As in HubSpot, the delete answers HTTP 204 with no body, because the object has no records left whose refs it would return.
|
|
9291
|
+
*/
|
|
9292
|
+
export const crmSchemasDelete = (options) => (options.client ?? client).delete({
|
|
9293
|
+
security: [{
|
|
9294
|
+
key: 'crm-bearerAuth',
|
|
9295
|
+
scheme: 'bearer',
|
|
9296
|
+
type: 'http'
|
|
9297
|
+
}],
|
|
9298
|
+
url: '/crm/v1/schemas/{objectType}',
|
|
9299
|
+
...options
|
|
9300
|
+
});
|
|
9301
|
+
/**
|
|
9302
|
+
* Read object schema
|
|
9303
|
+
*
|
|
9304
|
+
* Read one object type with its property definitions and association definitions. Discover the name from schemas.list first; a custom object answers to its name (p_<name>) or its object type id. An unknown type answers OBJECT_NOT_FOUND, which is also how a deleted custom object reads afterwards.
|
|
9305
|
+
*/
|
|
9306
|
+
export const crmSchemasGet = (options) => (options.client ?? client).get({
|
|
9307
|
+
security: [{
|
|
9308
|
+
key: 'crm-bearerAuth',
|
|
9309
|
+
scheme: 'bearer',
|
|
9310
|
+
type: 'http'
|
|
9311
|
+
}],
|
|
9312
|
+
url: '/crm/v1/schemas/{objectType}',
|
|
9313
|
+
...options
|
|
9314
|
+
});
|
|
9219
9315
|
/**
|
|
9220
9316
|
* Qualify lead
|
|
9221
9317
|
*
|
|
@@ -9283,7 +9379,10 @@ export const crmLayoutsUpdate = (options) => (options.client ?? client).put({
|
|
|
9283
9379
|
/**
|
|
9284
9380
|
* Create a grant code
|
|
9285
9381
|
*
|
|
9382
|
+
* 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
9383
|
* 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.
|
|
9384
|
+
*
|
|
9385
|
+
* @deprecated
|
|
9287
9386
|
*/
|
|
9288
9387
|
export const customerCreateGrantCode = (options) => (options.client ?? client).post({
|
|
9289
9388
|
security: [{
|
|
@@ -9305,7 +9404,10 @@ export const customerCreateGrantCode = (options) => (options.client ?? client).p
|
|
|
9305
9404
|
/**
|
|
9306
9405
|
* Exchange a grant code or publishable key
|
|
9307
9406
|
*
|
|
9407
|
+
* 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
9408
|
* 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.
|
|
9409
|
+
*
|
|
9410
|
+
* @deprecated
|
|
9309
9411
|
*/
|
|
9310
9412
|
export const customerCreateAccessToken = (options) => (options.client ?? client).post({
|
|
9311
9413
|
url: '/customer/v1/access_tokens',
|
|
@@ -9318,19 +9420,28 @@ export const customerCreateAccessToken = (options) => (options.client ?? client)
|
|
|
9318
9420
|
/**
|
|
9319
9421
|
* Renew an access token
|
|
9320
9422
|
*
|
|
9423
|
+
* 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
9424
|
* 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.
|
|
9425
|
+
*
|
|
9426
|
+
* @deprecated
|
|
9322
9427
|
*/
|
|
9323
9428
|
export const customerRenewAccessToken = (options) => (options?.client ?? client).post({ url: '/customer/v1/access_tokens/renew', ...options });
|
|
9324
9429
|
/**
|
|
9325
9430
|
* Sign out the current token
|
|
9326
9431
|
*
|
|
9432
|
+
* 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
9433
|
* 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.
|
|
9434
|
+
*
|
|
9435
|
+
* @deprecated
|
|
9328
9436
|
*/
|
|
9329
9437
|
export const customerRevokeCurrentTokens = (options) => (options?.client ?? client).delete({ url: '/customer/v1/access_tokens/current', ...options });
|
|
9330
9438
|
/**
|
|
9331
9439
|
* List end users
|
|
9332
9440
|
*
|
|
9441
|
+
* 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
9442
|
* 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.
|
|
9443
|
+
*
|
|
9444
|
+
* @deprecated
|
|
9334
9445
|
*/
|
|
9335
9446
|
export const customerListCustomers = (options) => (options?.client ?? client).get({
|
|
9336
9447
|
security: [{
|
|
@@ -9348,7 +9459,10 @@ export const customerListCustomers = (options) => (options?.client ?? client).ge
|
|
|
9348
9459
|
/**
|
|
9349
9460
|
* Delete an end user
|
|
9350
9461
|
*
|
|
9462
|
+
* 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
9463
|
* 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.
|
|
9464
|
+
*
|
|
9465
|
+
* @deprecated
|
|
9352
9466
|
*/
|
|
9353
9467
|
export const customerDeleteCustomer = (options) => (options.client ?? client).delete({
|
|
9354
9468
|
security: [{
|
|
@@ -9366,7 +9480,10 @@ export const customerDeleteCustomer = (options) => (options.client ?? client).de
|
|
|
9366
9480
|
/**
|
|
9367
9481
|
* Get an end user
|
|
9368
9482
|
*
|
|
9483
|
+
* 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
9484
|
* 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.
|
|
9485
|
+
*
|
|
9486
|
+
* @deprecated
|
|
9370
9487
|
*/
|
|
9371
9488
|
export const customerGetCustomer = (options) => (options.client ?? client).get({
|
|
9372
9489
|
security: [{
|
|
@@ -9384,7 +9501,10 @@ export const customerGetCustomer = (options) => (options.client ?? client).get({
|
|
|
9384
9501
|
/**
|
|
9385
9502
|
* Read end-user usage
|
|
9386
9503
|
*
|
|
9504
|
+
* 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
9505
|
* 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.
|
|
9506
|
+
*
|
|
9507
|
+
* @deprecated
|
|
9388
9508
|
*/
|
|
9389
9509
|
export const customerGetUsage = (options) => (options.client ?? client).get({
|
|
9390
9510
|
security: [{
|
|
@@ -9402,7 +9522,10 @@ export const customerGetUsage = (options) => (options.client ?? client).get({
|
|
|
9402
9522
|
/**
|
|
9403
9523
|
* Block an end user
|
|
9404
9524
|
*
|
|
9525
|
+
* 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
9526
|
* 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.
|
|
9527
|
+
*
|
|
9528
|
+
* @deprecated
|
|
9406
9529
|
*/
|
|
9407
9530
|
export const customerBlockCustomer = (options) => (options.client ?? client).post({
|
|
9408
9531
|
security: [{
|
|
@@ -9424,7 +9547,10 @@ export const customerBlockCustomer = (options) => (options.client ?? client).pos
|
|
|
9424
9547
|
/**
|
|
9425
9548
|
* Unblock an end user
|
|
9426
9549
|
*
|
|
9550
|
+
* 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
9551
|
* 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.
|
|
9552
|
+
*
|
|
9553
|
+
* @deprecated
|
|
9428
9554
|
*/
|
|
9429
9555
|
export const customerUnblockCustomer = (options) => (options.client ?? client).post({
|
|
9430
9556
|
security: [{
|
|
@@ -9442,7 +9568,10 @@ export const customerUnblockCustomer = (options) => (options.client ?? client).p
|
|
|
9442
9568
|
/**
|
|
9443
9569
|
* Revoke every token of an end user
|
|
9444
9570
|
*
|
|
9571
|
+
* 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
9572
|
* 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.
|
|
9573
|
+
*
|
|
9574
|
+
* @deprecated
|
|
9446
9575
|
*/
|
|
9447
9576
|
export const customerRevokeTokens = (options) => (options.client ?? client).post({
|
|
9448
9577
|
security: [{
|
|
@@ -9460,7 +9589,10 @@ export const customerRevokeTokens = (options) => (options.client ?? client).post
|
|
|
9460
9589
|
/**
|
|
9461
9590
|
* List publishable keys
|
|
9462
9591
|
*
|
|
9592
|
+
* 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
9593
|
* 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.
|
|
9594
|
+
*
|
|
9595
|
+
* @deprecated
|
|
9464
9596
|
*/
|
|
9465
9597
|
export const customerListPublishableKeys = (options) => (options?.client ?? client).get({
|
|
9466
9598
|
security: [{
|
|
@@ -9478,7 +9610,10 @@ export const customerListPublishableKeys = (options) => (options?.client ?? clie
|
|
|
9478
9610
|
/**
|
|
9479
9611
|
* Create a publishable key
|
|
9480
9612
|
*
|
|
9613
|
+
* 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
9614
|
* 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.
|
|
9615
|
+
*
|
|
9616
|
+
* @deprecated
|
|
9482
9617
|
*/
|
|
9483
9618
|
export const customerCreatePublishableKey = (options) => (options.client ?? client).post({
|
|
9484
9619
|
security: [{
|
|
@@ -9500,7 +9635,10 @@ export const customerCreatePublishableKey = (options) => (options.client ?? clie
|
|
|
9500
9635
|
/**
|
|
9501
9636
|
* Delete a publishable key
|
|
9502
9637
|
*
|
|
9503
|
-
*
|
|
9638
|
+
* 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).
|
|
9639
|
+
* 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 PUBLISHABLE_KEY_NOT_FOUND.
|
|
9640
|
+
*
|
|
9641
|
+
* @deprecated
|
|
9504
9642
|
*/
|
|
9505
9643
|
export const customerDeletePublishableKey = (options) => (options.client ?? client).delete({
|
|
9506
9644
|
security: [{
|
|
@@ -9518,7 +9656,10 @@ export const customerDeletePublishableKey = (options) => (options.client ?? clie
|
|
|
9518
9656
|
/**
|
|
9519
9657
|
* Update a publishable key
|
|
9520
9658
|
*
|
|
9659
|
+
* 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
9660
|
* 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.
|
|
9661
|
+
*
|
|
9662
|
+
* @deprecated
|
|
9522
9663
|
*/
|
|
9523
9664
|
export const customerUpdatePublishableKey = (options) => (options.client ?? client).patch({
|
|
9524
9665
|
security: [{
|
|
@@ -10019,7 +10160,7 @@ export const cutListExports = (options) => (options.client ?? client).get({
|
|
|
10019
10160
|
/**
|
|
10020
10161
|
* Create video export
|
|
10021
10162
|
*
|
|
10022
|
-
* Start an asynchronous video export from the project
|
|
10163
|
+
* Start an asynchronous video export from the project, and optionally select revision and output settings. Omit both binding and folder and the export only produces a file: no library receives it, and on done file.url downloads it (the link is valid for one hour and is minted on every read). Name a binding from bindings.list (a writable one), or a folder, and the finished video is also imported into that media library, and on done asset identifies it in praxis.media. HTTP 202 only accepts the job; poll praxis.cut.exports.retrieve using the returned id until status is done, failed or canceled. Each call starts a job, so retrieve a known job before retrying a submission.
|
|
10023
10164
|
*/
|
|
10024
10165
|
export const cutCreateExport = (options) => (options.client ?? client).post({
|
|
10025
10166
|
security: [{
|
|
@@ -12355,7 +12496,7 @@ export const devopsPullRequestsGet = (options) => (options.client ?? client).get
|
|
|
12355
12496
|
/**
|
|
12356
12497
|
* Decide a pull request's merge gate again
|
|
12357
12498
|
*
|
|
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
|
|
12499
|
+
* 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
12500
|
*/
|
|
12360
12501
|
export const devopsPullRequestsRerunGate = (options) => (options.client ?? client).post({
|
|
12361
12502
|
security: [{
|
|
@@ -12366,6 +12507,24 @@ export const devopsPullRequestsRerunGate = (options) => (options.client ?? clien
|
|
|
12366
12507
|
url: '/devops/v1/pull-requests/{id}:rerunGate',
|
|
12367
12508
|
...options
|
|
12368
12509
|
});
|
|
12510
|
+
/**
|
|
12511
|
+
* Record a listed position's exception to the merge gate
|
|
12512
|
+
*
|
|
12513
|
+
* Record the one exception to the fail-closed merge gate: the written authorization of a holder of a position listed in practice-config (today CEO, CTO, COO), 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 one of the positions listed in practice-config (today CEO, CTO, COO), otherwise GATE_OVERRIDE_NOT_AUTHORIZED (403) and nothing is written; when the position list or the workforce assignments cannot be read, or the list is empty, 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"}.
|
|
12514
|
+
*/
|
|
12515
|
+
export const devopsPullRequestsOverrideGate = (options) => (options.client ?? client).post({
|
|
12516
|
+
security: [{
|
|
12517
|
+
key: 'devops-bearerAuth',
|
|
12518
|
+
scheme: 'bearer',
|
|
12519
|
+
type: 'http'
|
|
12520
|
+
}],
|
|
12521
|
+
url: '/devops/v1/pull-requests/{id}:overrideGate',
|
|
12522
|
+
...options,
|
|
12523
|
+
headers: {
|
|
12524
|
+
'Content-Type': 'application/json',
|
|
12525
|
+
...options.headers
|
|
12526
|
+
}
|
|
12527
|
+
});
|
|
12369
12528
|
/**
|
|
12370
12529
|
* Merge a pull request through its gate
|
|
12371
12530
|
*
|
|
@@ -12806,6 +12965,263 @@ export const devopsUnitsTransitionsList = (options) => (options.client ?? client
|
|
|
12806
12965
|
url: '/devops/v1/units/{id}/transitions',
|
|
12807
12966
|
...options
|
|
12808
12967
|
});
|
|
12968
|
+
/**
|
|
12969
|
+
* Create a grant code
|
|
12970
|
+
*
|
|
12971
|
+
* 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.
|
|
12972
|
+
*/
|
|
12973
|
+
export const endCreateGrantCode = (options) => (options.client ?? client).post({
|
|
12974
|
+
security: [{
|
|
12975
|
+
key: 'BearerAuth',
|
|
12976
|
+
scheme: 'bearer',
|
|
12977
|
+
type: 'http'
|
|
12978
|
+
}, {
|
|
12979
|
+
key: 'ApiKeyAuth',
|
|
12980
|
+
name: 'X-API-Key',
|
|
12981
|
+
type: 'apiKey'
|
|
12982
|
+
}],
|
|
12983
|
+
url: '/end/v1/grant_codes',
|
|
12984
|
+
...options,
|
|
12985
|
+
headers: {
|
|
12986
|
+
'Content-Type': 'application/json',
|
|
12987
|
+
...options.headers
|
|
12988
|
+
}
|
|
12989
|
+
});
|
|
12990
|
+
/**
|
|
12991
|
+
* Exchange a grant code or publishable key
|
|
12992
|
+
*
|
|
12993
|
+
* 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.
|
|
12994
|
+
*/
|
|
12995
|
+
export const endCreateAccessToken = (options) => (options.client ?? client).post({
|
|
12996
|
+
url: '/end/v1/access_tokens',
|
|
12997
|
+
...options,
|
|
12998
|
+
headers: {
|
|
12999
|
+
'Content-Type': 'application/json',
|
|
13000
|
+
...options.headers
|
|
13001
|
+
}
|
|
13002
|
+
});
|
|
13003
|
+
/**
|
|
13004
|
+
* Renew an access token
|
|
13005
|
+
*
|
|
13006
|
+
* 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.
|
|
13007
|
+
*/
|
|
13008
|
+
export const endRenewAccessToken = (options) => (options?.client ?? client).post({ url: '/end/v1/access_tokens/renew', ...options });
|
|
13009
|
+
/**
|
|
13010
|
+
* Sign out the current token
|
|
13011
|
+
*
|
|
13012
|
+
* 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.
|
|
13013
|
+
*/
|
|
13014
|
+
export const endRevokeCurrentTokens = (options) => (options?.client ?? client).delete({ url: '/end/v1/access_tokens/current', ...options });
|
|
13015
|
+
/**
|
|
13016
|
+
* List end users
|
|
13017
|
+
*
|
|
13018
|
+
* 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.
|
|
13019
|
+
*/
|
|
13020
|
+
export const endListUsers = (options) => (options?.client ?? client).get({
|
|
13021
|
+
security: [{
|
|
13022
|
+
key: 'BearerAuth',
|
|
13023
|
+
scheme: 'bearer',
|
|
13024
|
+
type: 'http'
|
|
13025
|
+
}, {
|
|
13026
|
+
key: 'ApiKeyAuth',
|
|
13027
|
+
name: 'X-API-Key',
|
|
13028
|
+
type: 'apiKey'
|
|
13029
|
+
}],
|
|
13030
|
+
url: '/end/v1/users',
|
|
13031
|
+
...options
|
|
13032
|
+
});
|
|
13033
|
+
/**
|
|
13034
|
+
* Delete an end user
|
|
13035
|
+
*
|
|
13036
|
+
* 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.
|
|
13037
|
+
*/
|
|
13038
|
+
export const endDeleteUser = (options) => (options.client ?? client).delete({
|
|
13039
|
+
security: [{
|
|
13040
|
+
key: 'BearerAuth',
|
|
13041
|
+
scheme: 'bearer',
|
|
13042
|
+
type: 'http'
|
|
13043
|
+
}, {
|
|
13044
|
+
key: 'ApiKeyAuth',
|
|
13045
|
+
name: 'X-API-Key',
|
|
13046
|
+
type: 'apiKey'
|
|
13047
|
+
}],
|
|
13048
|
+
url: '/end/v1/users/{end_user_id}',
|
|
13049
|
+
...options
|
|
13050
|
+
});
|
|
13051
|
+
/**
|
|
13052
|
+
* Get an end user
|
|
13053
|
+
*
|
|
13054
|
+
* 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.
|
|
13055
|
+
*/
|
|
13056
|
+
export const endGetUser = (options) => (options.client ?? client).get({
|
|
13057
|
+
security: [{
|
|
13058
|
+
key: 'BearerAuth',
|
|
13059
|
+
scheme: 'bearer',
|
|
13060
|
+
type: 'http'
|
|
13061
|
+
}, {
|
|
13062
|
+
key: 'ApiKeyAuth',
|
|
13063
|
+
name: 'X-API-Key',
|
|
13064
|
+
type: 'apiKey'
|
|
13065
|
+
}],
|
|
13066
|
+
url: '/end/v1/users/{end_user_id}',
|
|
13067
|
+
...options
|
|
13068
|
+
});
|
|
13069
|
+
/**
|
|
13070
|
+
* Read end-user usage
|
|
13071
|
+
*
|
|
13072
|
+
* 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.
|
|
13073
|
+
*/
|
|
13074
|
+
export const endGetUsage = (options) => (options.client ?? client).get({
|
|
13075
|
+
security: [{
|
|
13076
|
+
key: 'BearerAuth',
|
|
13077
|
+
scheme: 'bearer',
|
|
13078
|
+
type: 'http'
|
|
13079
|
+
}, {
|
|
13080
|
+
key: 'ApiKeyAuth',
|
|
13081
|
+
name: 'X-API-Key',
|
|
13082
|
+
type: 'apiKey'
|
|
13083
|
+
}],
|
|
13084
|
+
url: '/end/v1/users/{end_user_id}/usage',
|
|
13085
|
+
...options
|
|
13086
|
+
});
|
|
13087
|
+
/**
|
|
13088
|
+
* Block an end user
|
|
13089
|
+
*
|
|
13090
|
+
* 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.
|
|
13091
|
+
*/
|
|
13092
|
+
export const endBlockUser = (options) => (options.client ?? client).post({
|
|
13093
|
+
security: [{
|
|
13094
|
+
key: 'BearerAuth',
|
|
13095
|
+
scheme: 'bearer',
|
|
13096
|
+
type: 'http'
|
|
13097
|
+
}, {
|
|
13098
|
+
key: 'ApiKeyAuth',
|
|
13099
|
+
name: 'X-API-Key',
|
|
13100
|
+
type: 'apiKey'
|
|
13101
|
+
}],
|
|
13102
|
+
url: '/end/v1/users/{end_user_id}/block',
|
|
13103
|
+
...options,
|
|
13104
|
+
headers: {
|
|
13105
|
+
'Content-Type': 'application/json',
|
|
13106
|
+
...options.headers
|
|
13107
|
+
}
|
|
13108
|
+
});
|
|
13109
|
+
/**
|
|
13110
|
+
* Unblock an end user
|
|
13111
|
+
*
|
|
13112
|
+
* 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.
|
|
13113
|
+
*/
|
|
13114
|
+
export const endUnblockUser = (options) => (options.client ?? client).post({
|
|
13115
|
+
security: [{
|
|
13116
|
+
key: 'BearerAuth',
|
|
13117
|
+
scheme: 'bearer',
|
|
13118
|
+
type: 'http'
|
|
13119
|
+
}, {
|
|
13120
|
+
key: 'ApiKeyAuth',
|
|
13121
|
+
name: 'X-API-Key',
|
|
13122
|
+
type: 'apiKey'
|
|
13123
|
+
}],
|
|
13124
|
+
url: '/end/v1/users/{end_user_id}/unblock',
|
|
13125
|
+
...options
|
|
13126
|
+
});
|
|
13127
|
+
/**
|
|
13128
|
+
* Revoke every token of an end user
|
|
13129
|
+
*
|
|
13130
|
+
* 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.
|
|
13131
|
+
*/
|
|
13132
|
+
export const endRevokeTokens = (options) => (options.client ?? client).post({
|
|
13133
|
+
security: [{
|
|
13134
|
+
key: 'BearerAuth',
|
|
13135
|
+
scheme: 'bearer',
|
|
13136
|
+
type: 'http'
|
|
13137
|
+
}, {
|
|
13138
|
+
key: 'ApiKeyAuth',
|
|
13139
|
+
name: 'X-API-Key',
|
|
13140
|
+
type: 'apiKey'
|
|
13141
|
+
}],
|
|
13142
|
+
url: '/end/v1/users/{end_user_id}/revoke_tokens',
|
|
13143
|
+
...options
|
|
13144
|
+
});
|
|
13145
|
+
/**
|
|
13146
|
+
* List publishable keys
|
|
13147
|
+
*
|
|
13148
|
+
* 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.
|
|
13149
|
+
*/
|
|
13150
|
+
export const endListPublishableKeys = (options) => (options?.client ?? client).get({
|
|
13151
|
+
security: [{
|
|
13152
|
+
key: 'BearerAuth',
|
|
13153
|
+
scheme: 'bearer',
|
|
13154
|
+
type: 'http'
|
|
13155
|
+
}, {
|
|
13156
|
+
key: 'ApiKeyAuth',
|
|
13157
|
+
name: 'X-API-Key',
|
|
13158
|
+
type: 'apiKey'
|
|
13159
|
+
}],
|
|
13160
|
+
url: '/end/v1/publishable_keys',
|
|
13161
|
+
...options
|
|
13162
|
+
});
|
|
13163
|
+
/**
|
|
13164
|
+
* Create a publishable key
|
|
13165
|
+
*
|
|
13166
|
+
* 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.
|
|
13167
|
+
*/
|
|
13168
|
+
export const endCreatePublishableKey = (options) => (options.client ?? client).post({
|
|
13169
|
+
security: [{
|
|
13170
|
+
key: 'BearerAuth',
|
|
13171
|
+
scheme: 'bearer',
|
|
13172
|
+
type: 'http'
|
|
13173
|
+
}, {
|
|
13174
|
+
key: 'ApiKeyAuth',
|
|
13175
|
+
name: 'X-API-Key',
|
|
13176
|
+
type: 'apiKey'
|
|
13177
|
+
}],
|
|
13178
|
+
url: '/end/v1/publishable_keys',
|
|
13179
|
+
...options,
|
|
13180
|
+
headers: {
|
|
13181
|
+
'Content-Type': 'application/json',
|
|
13182
|
+
...options.headers
|
|
13183
|
+
}
|
|
13184
|
+
});
|
|
13185
|
+
/**
|
|
13186
|
+
* Delete a publishable key
|
|
13187
|
+
*
|
|
13188
|
+
* 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 PUBLISHABLE_KEY_NOT_FOUND.
|
|
13189
|
+
*/
|
|
13190
|
+
export const endDeletePublishableKey = (options) => (options.client ?? client).delete({
|
|
13191
|
+
security: [{
|
|
13192
|
+
key: 'BearerAuth',
|
|
13193
|
+
scheme: 'bearer',
|
|
13194
|
+
type: 'http'
|
|
13195
|
+
}, {
|
|
13196
|
+
key: 'ApiKeyAuth',
|
|
13197
|
+
name: 'X-API-Key',
|
|
13198
|
+
type: 'apiKey'
|
|
13199
|
+
}],
|
|
13200
|
+
url: '/end/v1/publishable_keys/{key_id}',
|
|
13201
|
+
...options
|
|
13202
|
+
});
|
|
13203
|
+
/**
|
|
13204
|
+
* Update a publishable key
|
|
13205
|
+
*
|
|
13206
|
+
* 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.
|
|
13207
|
+
*/
|
|
13208
|
+
export const endUpdatePublishableKey = (options) => (options.client ?? client).patch({
|
|
13209
|
+
security: [{
|
|
13210
|
+
key: 'BearerAuth',
|
|
13211
|
+
scheme: 'bearer',
|
|
13212
|
+
type: 'http'
|
|
13213
|
+
}, {
|
|
13214
|
+
key: 'ApiKeyAuth',
|
|
13215
|
+
name: 'X-API-Key',
|
|
13216
|
+
type: 'apiKey'
|
|
13217
|
+
}],
|
|
13218
|
+
url: '/end/v1/publishable_keys/{key_id}',
|
|
13219
|
+
...options,
|
|
13220
|
+
headers: {
|
|
13221
|
+
'Content-Type': 'application/json',
|
|
13222
|
+
...options.headers
|
|
13223
|
+
}
|
|
13224
|
+
});
|
|
12809
13225
|
/**
|
|
12810
13226
|
* List event types
|
|
12811
13227
|
*
|
|
@@ -14766,7 +15182,7 @@ export const getSandboxV1Sandboxes = (options) => (options?.client ?? client).ge
|
|
|
14766
15182
|
/**
|
|
14767
15183
|
* Create sandbox (v2)
|
|
14768
15184
|
*
|
|
14769
|
-
* Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots,
|
|
15185
|
+
* Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots, kept after it stops; for long-lived computers). Leaving ephemeral out returns INVALID_PARAMS. autoPause: true, onExpire: pause, autoPauseMemory, autoResume, idleTimeout, retention belong to persistent sandboxes and need ephemeral: false. Choose persistent only for long-lived computers. On the E2B-compatible face autoPause is the declaration: true is persistent, false or absent is ephemeral and ends at its timeout. Responses carry ephemeral. When a sandbox's machine has ended (timeout, kill, retention, provider loss), reaching it returns SANDBOX_EXPIRED (410) with terminationReason in the message: its files are gone, create a new sandbox. To keep results, declare outputs: [{ path }] on the own face (up to eight absolute paths, a directory or a file): when the sandbox ends for any reason except provider loss or a failed start, each path is packed as .tar.gz and stored in File, and the killed event of GET /sandbox/v1/events/sandboxes/{sandboxID} lists each fileId or the reason it was not kept. Paths not declared are not kept. The E2B face refuses outputs. On the own face an android phone accepts waitForReady: true, an own-face-only option: the create then waits until the phone program has connected (state running) or 55 seconds have passed since the request arrived (the vendor create itself takes about 48 s, so this is often not enough), and answers with the state it reached — a timeout is not an error; omit it (the default) and the create answers at once, before the phone connects, with state starting or booting, which you follow with the detail read or the act socket.
|
|
14770
15186
|
*/
|
|
14771
15187
|
export const postSandboxV1Sandboxes = (options) => (options.client ?? client).post({
|
|
14772
15188
|
security: [
|
|
@@ -15042,158 +15458,6 @@ export const requestTemplateBuild = (options) => (options.client ?? client).post
|
|
|
15042
15458
|
...options.headers
|
|
15043
15459
|
}
|
|
15044
15460
|
});
|
|
15045
|
-
/**
|
|
15046
|
-
* List team volumes
|
|
15047
|
-
*
|
|
15048
|
-
* List the volumes of your team. Use it to find a volumeID before reading or deleting a volume, or to attach a volume to a sandbox by name when you create it.
|
|
15049
|
-
*/
|
|
15050
|
-
export const getSandboxV1Volumes = (options) => (options?.client ?? client).get({
|
|
15051
|
-
security: [
|
|
15052
|
-
{
|
|
15053
|
-
key: 'sandbox-ApiKeyAuth',
|
|
15054
|
-
name: 'X-API-Key',
|
|
15055
|
-
type: 'apiKey'
|
|
15056
|
-
},
|
|
15057
|
-
{
|
|
15058
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
15059
|
-
scheme: 'bearer',
|
|
15060
|
-
type: 'http'
|
|
15061
|
-
},
|
|
15062
|
-
{
|
|
15063
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
15064
|
-
name: 'X-Team-ID',
|
|
15065
|
-
type: 'apiKey'
|
|
15066
|
-
},
|
|
15067
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
15068
|
-
{
|
|
15069
|
-
key: 'sandbox-AdminTeamAuth',
|
|
15070
|
-
name: 'X-Team-ID',
|
|
15071
|
-
type: 'apiKey'
|
|
15072
|
-
},
|
|
15073
|
-
{
|
|
15074
|
-
key: 'sandbox-AdminJWTAuth',
|
|
15075
|
-
scheme: 'bearer',
|
|
15076
|
-
type: 'http'
|
|
15077
|
-
}
|
|
15078
|
-
],
|
|
15079
|
-
url: '/sandbox/v1/volumes',
|
|
15080
|
-
...options
|
|
15081
|
-
});
|
|
15082
|
-
/**
|
|
15083
|
-
* Create team volume
|
|
15084
|
-
*
|
|
15085
|
-
* Create a team volume: persistent storage that can be mounted into sandboxes and outlives them. Send the volume name; the response returns the volume id and name. Use getVolume to read it back and deleteVolume to remove it.
|
|
15086
|
-
*/
|
|
15087
|
-
export const postSandboxV1Volumes = (options) => (options.client ?? client).post({
|
|
15088
|
-
security: [
|
|
15089
|
-
{
|
|
15090
|
-
key: 'sandbox-ApiKeyAuth',
|
|
15091
|
-
name: 'X-API-Key',
|
|
15092
|
-
type: 'apiKey'
|
|
15093
|
-
},
|
|
15094
|
-
{
|
|
15095
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
15096
|
-
scheme: 'bearer',
|
|
15097
|
-
type: 'http'
|
|
15098
|
-
},
|
|
15099
|
-
{
|
|
15100
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
15101
|
-
name: 'X-Team-ID',
|
|
15102
|
-
type: 'apiKey'
|
|
15103
|
-
},
|
|
15104
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
15105
|
-
{
|
|
15106
|
-
key: 'sandbox-AdminTeamAuth',
|
|
15107
|
-
name: 'X-Team-ID',
|
|
15108
|
-
type: 'apiKey'
|
|
15109
|
-
},
|
|
15110
|
-
{
|
|
15111
|
-
key: 'sandbox-AdminJWTAuth',
|
|
15112
|
-
scheme: 'bearer',
|
|
15113
|
-
type: 'http'
|
|
15114
|
-
}
|
|
15115
|
-
],
|
|
15116
|
-
url: '/sandbox/v1/volumes',
|
|
15117
|
-
...options,
|
|
15118
|
-
headers: {
|
|
15119
|
-
'Content-Type': 'application/json',
|
|
15120
|
-
...options.headers
|
|
15121
|
-
}
|
|
15122
|
-
});
|
|
15123
|
-
/**
|
|
15124
|
-
* Delete team volume
|
|
15125
|
-
*
|
|
15126
|
-
* Delete a team volume and its data permanently. Use it only when no sandbox needs the volume any more; the data cannot be recovered. Success answers 204; an unknown id answers 404.
|
|
15127
|
-
*/
|
|
15128
|
-
export const deleteSandboxV1VolumesByVolumeId = (options) => (options.client ?? client).delete({
|
|
15129
|
-
security: [
|
|
15130
|
-
{
|
|
15131
|
-
key: 'sandbox-ApiKeyAuth',
|
|
15132
|
-
name: 'X-API-Key',
|
|
15133
|
-
type: 'apiKey'
|
|
15134
|
-
},
|
|
15135
|
-
{
|
|
15136
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
15137
|
-
scheme: 'bearer',
|
|
15138
|
-
type: 'http'
|
|
15139
|
-
},
|
|
15140
|
-
{
|
|
15141
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
15142
|
-
name: 'X-Team-ID',
|
|
15143
|
-
type: 'apiKey'
|
|
15144
|
-
},
|
|
15145
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
15146
|
-
{
|
|
15147
|
-
key: 'sandbox-AdminTeamAuth',
|
|
15148
|
-
name: 'X-Team-ID',
|
|
15149
|
-
type: 'apiKey'
|
|
15150
|
-
},
|
|
15151
|
-
{
|
|
15152
|
-
key: 'sandbox-AdminJWTAuth',
|
|
15153
|
-
scheme: 'bearer',
|
|
15154
|
-
type: 'http'
|
|
15155
|
-
}
|
|
15156
|
-
],
|
|
15157
|
-
url: '/sandbox/v1/volumes/{volumeID}',
|
|
15158
|
-
...options
|
|
15159
|
-
});
|
|
15160
|
-
/**
|
|
15161
|
-
* Team volume
|
|
15162
|
-
*
|
|
15163
|
-
* Read one team volume by id. Use it to confirm a volume exists and to read its name before mounting it in a sandbox. An unknown id answers 404.
|
|
15164
|
-
*/
|
|
15165
|
-
export const getSandboxV1VolumesByVolumeId = (options) => (options.client ?? client).get({
|
|
15166
|
-
security: [
|
|
15167
|
-
{
|
|
15168
|
-
key: 'sandbox-ApiKeyAuth',
|
|
15169
|
-
name: 'X-API-Key',
|
|
15170
|
-
type: 'apiKey'
|
|
15171
|
-
},
|
|
15172
|
-
{
|
|
15173
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
15174
|
-
scheme: 'bearer',
|
|
15175
|
-
type: 'http'
|
|
15176
|
-
},
|
|
15177
|
-
{
|
|
15178
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
15179
|
-
name: 'X-Team-ID',
|
|
15180
|
-
type: 'apiKey'
|
|
15181
|
-
},
|
|
15182
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
15183
|
-
{
|
|
15184
|
-
key: 'sandbox-AdminTeamAuth',
|
|
15185
|
-
name: 'X-Team-ID',
|
|
15186
|
-
type: 'apiKey'
|
|
15187
|
-
},
|
|
15188
|
-
{
|
|
15189
|
-
key: 'sandbox-AdminJWTAuth',
|
|
15190
|
-
scheme: 'bearer',
|
|
15191
|
-
type: 'http'
|
|
15192
|
-
}
|
|
15193
|
-
],
|
|
15194
|
-
url: '/sandbox/v1/volumes/{volumeID}',
|
|
15195
|
-
...options
|
|
15196
|
-
});
|
|
15197
15461
|
/**
|
|
15198
15462
|
* Fork sandbox
|
|
15199
15463
|
*
|
|
@@ -15350,47 +15614,6 @@ export const deleteSandboxV1SnapshotsBySnapshotId = (options) => (options.client
|
|
|
15350
15614
|
url: '/sandbox/v1/snapshots/{snapshotID}',
|
|
15351
15615
|
...options
|
|
15352
15616
|
});
|
|
15353
|
-
/**
|
|
15354
|
-
* Update sandbox network
|
|
15355
|
-
*
|
|
15356
|
-
* Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting field clears it.
|
|
15357
|
-
*/
|
|
15358
|
-
export const putSandboxV1SandboxesBySandboxIdNetwork = (options) => (options.client ?? client).put({
|
|
15359
|
-
security: [
|
|
15360
|
-
{
|
|
15361
|
-
key: 'sandbox-ApiKeyAuth',
|
|
15362
|
-
name: 'X-API-Key',
|
|
15363
|
-
type: 'apiKey'
|
|
15364
|
-
},
|
|
15365
|
-
{
|
|
15366
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
15367
|
-
scheme: 'bearer',
|
|
15368
|
-
type: 'http'
|
|
15369
|
-
},
|
|
15370
|
-
{
|
|
15371
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
15372
|
-
name: 'X-Team-ID',
|
|
15373
|
-
type: 'apiKey'
|
|
15374
|
-
},
|
|
15375
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
15376
|
-
{
|
|
15377
|
-
key: 'sandbox-AdminTeamAuth',
|
|
15378
|
-
name: 'X-Team-ID',
|
|
15379
|
-
type: 'apiKey'
|
|
15380
|
-
},
|
|
15381
|
-
{
|
|
15382
|
-
key: 'sandbox-AdminJWTAuth',
|
|
15383
|
-
scheme: 'bearer',
|
|
15384
|
-
type: 'http'
|
|
15385
|
-
}
|
|
15386
|
-
],
|
|
15387
|
-
url: '/sandbox/v1/sandboxes/{sandboxID}/network',
|
|
15388
|
-
...options,
|
|
15389
|
-
headers: {
|
|
15390
|
-
'Content-Type': 'application/json',
|
|
15391
|
-
...options.headers
|
|
15392
|
-
}
|
|
15393
|
-
});
|
|
15394
15617
|
/**
|
|
15395
15618
|
* Sandbox logs (v2)
|
|
15396
15619
|
*
|