@deepraxis/sdk 0.2.0-dev.360fcf1 → 0.2.0-dev.3e57790
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 +56 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +149 -2
- package/dist/generated/sdk.gen.js +335 -1
- package/dist/generated/types.gen.d.ts +1514 -11
- package/dist/operations.generated.js +575 -16
- package/dist/resources.generated.d.ts +49 -0
- package/dist/resources.generated.js +126 -15
- package/package.json +1 -1
|
@@ -8848,6 +8848,41 @@ export const operations = [
|
|
|
8848
8848
|
}
|
|
8849
8849
|
]
|
|
8850
8850
|
},
|
|
8851
|
+
{
|
|
8852
|
+
"resource": "canvas.canvases.processes.steps",
|
|
8853
|
+
"method": "retrieveBrief",
|
|
8854
|
+
"summary": "Read a process step brief",
|
|
8855
|
+
"description": "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.",
|
|
8856
|
+
"http": "GET",
|
|
8857
|
+
"path": "/canvas/v1/canvases/{canvas_id}/processes/{process_id}/steps/{step_id}/brief",
|
|
8858
|
+
"streaming": "no",
|
|
8859
|
+
"pagination": false,
|
|
8860
|
+
"pathParams": [
|
|
8861
|
+
{
|
|
8862
|
+
"name": "canvas_id",
|
|
8863
|
+
"sdkName": "canvas_id",
|
|
8864
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
8865
|
+
},
|
|
8866
|
+
{
|
|
8867
|
+
"name": "process_id",
|
|
8868
|
+
"sdkName": "process_id",
|
|
8869
|
+
"description": "Node id of the process frame, or of the ref instance that is one production of a library process; the outputs of a production point at this id."
|
|
8870
|
+
},
|
|
8871
|
+
{
|
|
8872
|
+
"name": "step_id",
|
|
8873
|
+
"sdkName": "step_id",
|
|
8874
|
+
"description": "Step key from the requirement block, such as 1 or 9a; not the node id of the step frame."
|
|
8875
|
+
}
|
|
8876
|
+
],
|
|
8877
|
+
"query": [
|
|
8878
|
+
{
|
|
8879
|
+
"name": "version",
|
|
8880
|
+
"type": "string",
|
|
8881
|
+
"required": false,
|
|
8882
|
+
"description": "Decimal version from versions.list, or its earliest_restorable_version, for a read-only historical snapshot; omit to read current state. Unavailable versions return VERSION_NOT_FOUND."
|
|
8883
|
+
}
|
|
8884
|
+
]
|
|
8885
|
+
},
|
|
8851
8886
|
{
|
|
8852
8887
|
"resource": "canvas.canvases.versions",
|
|
8853
8888
|
"method": "list",
|
|
@@ -11137,7 +11172,7 @@ export const operations = [
|
|
|
11137
11172
|
"resource": "customer.accessTokens",
|
|
11138
11173
|
"method": "create",
|
|
11139
11174
|
"summary": "Exchange a grant code or publishable key",
|
|
11140
|
-
"description": "
|
|
11175
|
+
"description": "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).\nTurn 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.",
|
|
11141
11176
|
"http": "POST",
|
|
11142
11177
|
"path": "/customer/v1/access_tokens",
|
|
11143
11178
|
"streaming": "no",
|
|
@@ -11180,7 +11215,7 @@ export const operations = [
|
|
|
11180
11215
|
"resource": "customer.accessTokens",
|
|
11181
11216
|
"method": "revoke",
|
|
11182
11217
|
"summary": "Sign out the current token",
|
|
11183
|
-
"description": "
|
|
11218
|
+
"description": "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).\nSign 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.",
|
|
11184
11219
|
"http": "DELETE",
|
|
11185
11220
|
"path": "/customer/v1/access_tokens/current",
|
|
11186
11221
|
"streaming": "no",
|
|
@@ -11192,7 +11227,7 @@ export const operations = [
|
|
|
11192
11227
|
"resource": "customer.accessTokens",
|
|
11193
11228
|
"method": "renew",
|
|
11194
11229
|
"summary": "Renew an access token",
|
|
11195
|
-
"description": "
|
|
11230
|
+
"description": "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).\nReplace 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.",
|
|
11196
11231
|
"http": "POST",
|
|
11197
11232
|
"path": "/customer/v1/access_tokens/renew",
|
|
11198
11233
|
"streaming": "no",
|
|
@@ -11204,7 +11239,7 @@ export const operations = [
|
|
|
11204
11239
|
"resource": "customer.customers",
|
|
11205
11240
|
"method": "list",
|
|
11206
11241
|
"summary": "List end users",
|
|
11207
|
-
"description": "
|
|
11242
|
+
"description": "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).\nRead 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.",
|
|
11208
11243
|
"http": "GET",
|
|
11209
11244
|
"path": "/customer/v1/customers",
|
|
11210
11245
|
"streaming": "no",
|
|
@@ -11257,7 +11292,7 @@ export const operations = [
|
|
|
11257
11292
|
"resource": "customer.customers",
|
|
11258
11293
|
"method": "delete",
|
|
11259
11294
|
"summary": "Delete an end user",
|
|
11260
|
-
"description": "
|
|
11295
|
+
"description": "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).\nDelete 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.",
|
|
11261
11296
|
"http": "DELETE",
|
|
11262
11297
|
"path": "/customer/v1/customers/{customer_id}",
|
|
11263
11298
|
"streaming": "no",
|
|
@@ -11282,7 +11317,7 @@ export const operations = [
|
|
|
11282
11317
|
"resource": "customer.customers",
|
|
11283
11318
|
"method": "retrieve",
|
|
11284
11319
|
"summary": "Get an end user",
|
|
11285
|
-
"description": "
|
|
11320
|
+
"description": "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).\nRead 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.",
|
|
11286
11321
|
"http": "GET",
|
|
11287
11322
|
"path": "/customer/v1/customers/{customer_id}",
|
|
11288
11323
|
"streaming": "no",
|
|
@@ -11307,7 +11342,7 @@ export const operations = [
|
|
|
11307
11342
|
"resource": "customer.customers",
|
|
11308
11343
|
"method": "block",
|
|
11309
11344
|
"summary": "Block an end user",
|
|
11310
|
-
"description": "
|
|
11345
|
+
"description": "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).\nBlock 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.",
|
|
11311
11346
|
"http": "POST",
|
|
11312
11347
|
"path": "/customer/v1/customers/{customer_id}/block",
|
|
11313
11348
|
"streaming": "no",
|
|
@@ -11336,7 +11371,7 @@ export const operations = [
|
|
|
11336
11371
|
"resource": "customer.customers",
|
|
11337
11372
|
"method": "revokeTokens",
|
|
11338
11373
|
"summary": "Revoke every token of an end user",
|
|
11339
|
-
"description": "
|
|
11374
|
+
"description": "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).\nEnd 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.",
|
|
11340
11375
|
"http": "POST",
|
|
11341
11376
|
"path": "/customer/v1/customers/{customer_id}/revoke_tokens",
|
|
11342
11377
|
"streaming": "no",
|
|
@@ -11354,7 +11389,7 @@ export const operations = [
|
|
|
11354
11389
|
"resource": "customer.customers",
|
|
11355
11390
|
"method": "unblock",
|
|
11356
11391
|
"summary": "Unblock an end user",
|
|
11357
|
-
"description": "
|
|
11392
|
+
"description": "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).\nLift 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.",
|
|
11358
11393
|
"http": "POST",
|
|
11359
11394
|
"path": "/customer/v1/customers/{customer_id}/unblock",
|
|
11360
11395
|
"streaming": "no",
|
|
@@ -11372,7 +11407,7 @@ export const operations = [
|
|
|
11372
11407
|
"resource": "customer.usage",
|
|
11373
11408
|
"method": "retrieve",
|
|
11374
11409
|
"summary": "Read end-user usage",
|
|
11375
|
-
"description": "
|
|
11410
|
+
"description": "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).\nRead 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.",
|
|
11376
11411
|
"http": "GET",
|
|
11377
11412
|
"path": "/customer/v1/customers/{customer_id}/usage",
|
|
11378
11413
|
"streaming": "no",
|
|
@@ -11403,7 +11438,7 @@ export const operations = [
|
|
|
11403
11438
|
"resource": "customer.grantCodes",
|
|
11404
11439
|
"method": "create",
|
|
11405
11440
|
"summary": "Create a grant code",
|
|
11406
|
-
"description": "
|
|
11441
|
+
"description": "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).\nSign 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.",
|
|
11407
11442
|
"http": "POST",
|
|
11408
11443
|
"path": "/customer/v1/grant_codes",
|
|
11409
11444
|
"streaming": "no",
|
|
@@ -11469,7 +11504,7 @@ export const operations = [
|
|
|
11469
11504
|
"resource": "customer.publishableKeys",
|
|
11470
11505
|
"method": "list",
|
|
11471
11506
|
"summary": "List publishable keys",
|
|
11472
|
-
"description": "
|
|
11507
|
+
"description": "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).\nList 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.",
|
|
11473
11508
|
"http": "GET",
|
|
11474
11509
|
"path": "/customer/v1/publishable_keys",
|
|
11475
11510
|
"streaming": "no",
|
|
@@ -11494,7 +11529,7 @@ export const operations = [
|
|
|
11494
11529
|
"resource": "customer.publishableKeys",
|
|
11495
11530
|
"method": "create",
|
|
11496
11531
|
"summary": "Create a publishable key",
|
|
11497
|
-
"description": "
|
|
11532
|
+
"description": "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).\nMint 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.",
|
|
11498
11533
|
"http": "POST",
|
|
11499
11534
|
"path": "/customer/v1/publishable_keys",
|
|
11500
11535
|
"streaming": "no",
|
|
@@ -11542,7 +11577,7 @@ export const operations = [
|
|
|
11542
11577
|
"resource": "customer.publishableKeys",
|
|
11543
11578
|
"method": "delete",
|
|
11544
11579
|
"summary": "Delete a publishable key",
|
|
11545
|
-
"description": "
|
|
11580
|
+
"description": "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).\nDelete 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.",
|
|
11546
11581
|
"http": "DELETE",
|
|
11547
11582
|
"path": "/customer/v1/publishable_keys/{key_id}",
|
|
11548
11583
|
"streaming": "no",
|
|
@@ -11560,7 +11595,7 @@ export const operations = [
|
|
|
11560
11595
|
"resource": "customer.publishableKeys",
|
|
11561
11596
|
"method": "update",
|
|
11562
11597
|
"summary": "Update a publishable key",
|
|
11563
|
-
"description": "
|
|
11598
|
+
"description": "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).\nChange 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.",
|
|
11564
11599
|
"http": "PATCH",
|
|
11565
11600
|
"path": "/customer/v1/publishable_keys/{key_id}",
|
|
11566
11601
|
"streaming": "no",
|
|
@@ -18219,6 +18254,60 @@ export const operations = [
|
|
|
18219
18254
|
]
|
|
18220
18255
|
}
|
|
18221
18256
|
},
|
|
18257
|
+
{
|
|
18258
|
+
"resource": "devops.pullRequests",
|
|
18259
|
+
"method": "overrideGate",
|
|
18260
|
+
"summary": "Record a Vice President's exception to the merge gate",
|
|
18261
|
+
"description": "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\"}.",
|
|
18262
|
+
"http": "POST",
|
|
18263
|
+
"path": "/devops/v1/pull-requests/{id}:overrideGate",
|
|
18264
|
+
"streaming": "no",
|
|
18265
|
+
"pagination": false,
|
|
18266
|
+
"pathParams": [
|
|
18267
|
+
{
|
|
18268
|
+
"name": "id",
|
|
18269
|
+
"sdkName": "id",
|
|
18270
|
+
"description": "The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it."
|
|
18271
|
+
}
|
|
18272
|
+
],
|
|
18273
|
+
"query": [],
|
|
18274
|
+
"body": {
|
|
18275
|
+
"required": true,
|
|
18276
|
+
"fields": [
|
|
18277
|
+
{
|
|
18278
|
+
"name": "headSha",
|
|
18279
|
+
"type": "string",
|
|
18280
|
+
"required": true,
|
|
18281
|
+
"description": "The pull request's current head commit, from the pull request's head.sha; any other commit is refused with HEAD_MOVED."
|
|
18282
|
+
},
|
|
18283
|
+
{
|
|
18284
|
+
"name": "checks",
|
|
18285
|
+
"type": "array",
|
|
18286
|
+
"itemType": "string",
|
|
18287
|
+
"required": true,
|
|
18288
|
+
"description": "The gate checks the exception covers, at least one; a name that is not a gate check is refused with INVALID_ARGUMENT."
|
|
18289
|
+
},
|
|
18290
|
+
{
|
|
18291
|
+
"name": "ticket",
|
|
18292
|
+
"type": "string",
|
|
18293
|
+
"required": true,
|
|
18294
|
+
"description": "The ticket the Vice President's authorization is written on, as #<number> or its URL."
|
|
18295
|
+
},
|
|
18296
|
+
{
|
|
18297
|
+
"name": "reason",
|
|
18298
|
+
"type": "string",
|
|
18299
|
+
"required": true,
|
|
18300
|
+
"description": "Why the check is let through at this head, in one sentence a later reader can audit."
|
|
18301
|
+
},
|
|
18302
|
+
{
|
|
18303
|
+
"name": "authorizedBy",
|
|
18304
|
+
"type": "string",
|
|
18305
|
+
"required": true,
|
|
18306
|
+
"description": "The Vice President who authorized it, as agent:<id> or human:<id>; must hold an active assignment to the workforce job whose code is vice-president."
|
|
18307
|
+
}
|
|
18308
|
+
]
|
|
18309
|
+
}
|
|
18310
|
+
},
|
|
18222
18311
|
{
|
|
18223
18312
|
"resource": "devops.pullRequests",
|
|
18224
18313
|
"method": "recordVerdict",
|
|
@@ -18274,7 +18363,7 @@ export const operations = [
|
|
|
18274
18363
|
"resource": "devops.pullRequests",
|
|
18275
18364
|
"method": "rerunGate",
|
|
18276
18365
|
"summary": "Decide a pull request's merge gate again",
|
|
18277
|
-
"description": "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
|
|
18366
|
+
"description": "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.",
|
|
18278
18367
|
"http": "POST",
|
|
18279
18368
|
"path": "/devops/v1/pull-requests/{id}:rerunGate",
|
|
18280
18369
|
"streaming": "no",
|
|
@@ -18924,6 +19013,476 @@ export const operations = [
|
|
|
18924
19013
|
],
|
|
18925
19014
|
"query": []
|
|
18926
19015
|
},
|
|
19016
|
+
{
|
|
19017
|
+
"resource": "end.accessTokens",
|
|
19018
|
+
"method": "create",
|
|
19019
|
+
"summary": "Exchange a grant code or publishable key",
|
|
19020
|
+
"description": "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.",
|
|
19021
|
+
"http": "POST",
|
|
19022
|
+
"path": "/end/v1/access_tokens",
|
|
19023
|
+
"streaming": "no",
|
|
19024
|
+
"pagination": false,
|
|
19025
|
+
"pathParams": [],
|
|
19026
|
+
"query": [],
|
|
19027
|
+
"headers": [
|
|
19028
|
+
{
|
|
19029
|
+
"name": "Origin",
|
|
19030
|
+
"type": "string",
|
|
19031
|
+
"required": false,
|
|
19032
|
+
"description": "Browser page origin the exchange is made from, for example https://school.example.com. Send it when the sign-in is bound to one; the service compares it with the binding and refuses a mismatch."
|
|
19033
|
+
}
|
|
19034
|
+
],
|
|
19035
|
+
"body": {
|
|
19036
|
+
"required": true,
|
|
19037
|
+
"fields": [
|
|
19038
|
+
{
|
|
19039
|
+
"name": "grant_code",
|
|
19040
|
+
"type": "string",
|
|
19041
|
+
"required": false,
|
|
19042
|
+
"description": "A grant code (cgc_…) from grant_codes, for an end user you signed in from your backend; it works once."
|
|
19043
|
+
},
|
|
19044
|
+
{
|
|
19045
|
+
"name": "publishable_key",
|
|
19046
|
+
"type": "string",
|
|
19047
|
+
"required": false,
|
|
19048
|
+
"description": "A publishable key (pk_…) for an anonymous visitor; the exchange creates a new anonymous end user bound to the request Origin, unless continuation_token continues an earlier visitor of this key's organization."
|
|
19049
|
+
},
|
|
19050
|
+
{
|
|
19051
|
+
"name": "continuation_token",
|
|
19052
|
+
"type": "string",
|
|
19053
|
+
"required": false,
|
|
19054
|
+
"description": "The continuation_token of an earlier anonymous answer, kept by the page's own storage. A live one continues that anonymous end user (a new sign-in of seven days, with a rotated token); an unknown, expired, revoked, merged, blocked or foreign-organization one is treated as absent, so the answer never reveals whether it exists. It also continues the visitor when the page presents another publishable key of the same organization, but the resources it may reach are only those of the key presented now. Only accepted with publishable_key."
|
|
19055
|
+
}
|
|
19056
|
+
]
|
|
19057
|
+
}
|
|
19058
|
+
},
|
|
19059
|
+
{
|
|
19060
|
+
"resource": "end.accessTokens",
|
|
19061
|
+
"method": "revoke",
|
|
19062
|
+
"summary": "Sign out the current token",
|
|
19063
|
+
"description": "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.",
|
|
19064
|
+
"http": "DELETE",
|
|
19065
|
+
"path": "/end/v1/access_tokens/current",
|
|
19066
|
+
"streaming": "no",
|
|
19067
|
+
"pagination": false,
|
|
19068
|
+
"pathParams": [],
|
|
19069
|
+
"query": []
|
|
19070
|
+
},
|
|
19071
|
+
{
|
|
19072
|
+
"resource": "end.accessTokens",
|
|
19073
|
+
"method": "renew",
|
|
19074
|
+
"summary": "Renew an access token",
|
|
19075
|
+
"description": "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.",
|
|
19076
|
+
"http": "POST",
|
|
19077
|
+
"path": "/end/v1/access_tokens/renew",
|
|
19078
|
+
"streaming": "no",
|
|
19079
|
+
"pagination": false,
|
|
19080
|
+
"pathParams": [],
|
|
19081
|
+
"query": []
|
|
19082
|
+
},
|
|
19083
|
+
{
|
|
19084
|
+
"resource": "end.grantCodes",
|
|
19085
|
+
"method": "create",
|
|
19086
|
+
"summary": "Create a grant code",
|
|
19087
|
+
"description": "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.",
|
|
19088
|
+
"http": "POST",
|
|
19089
|
+
"path": "/end/v1/grant_codes",
|
|
19090
|
+
"streaming": "no",
|
|
19091
|
+
"pagination": false,
|
|
19092
|
+
"pathParams": [],
|
|
19093
|
+
"query": [],
|
|
19094
|
+
"body": {
|
|
19095
|
+
"required": true,
|
|
19096
|
+
"fields": [
|
|
19097
|
+
{
|
|
19098
|
+
"name": "end_user_id",
|
|
19099
|
+
"type": "string",
|
|
19100
|
+
"required": true,
|
|
19101
|
+
"description": "Your own identifier for the end user, a non-empty string; do not use an email address or phone number, and a value starting with anon_ is reserved for visitors."
|
|
19102
|
+
},
|
|
19103
|
+
{
|
|
19104
|
+
"name": "metadata",
|
|
19105
|
+
"type": "object",
|
|
19106
|
+
"required": false,
|
|
19107
|
+
"description": "Product metadata to record with the end user, as string key to string value; it is merged over what is already stored."
|
|
19108
|
+
},
|
|
19109
|
+
{
|
|
19110
|
+
"name": "resources",
|
|
19111
|
+
"type": "array",
|
|
19112
|
+
"itemType": "object",
|
|
19113
|
+
"required": true,
|
|
19114
|
+
"description": "Resource scopes the sign-in may reach, at least one, each a scope string or an object with scope and params."
|
|
19115
|
+
},
|
|
19116
|
+
{
|
|
19117
|
+
"name": "origin",
|
|
19118
|
+
"type": "string",
|
|
19119
|
+
"required": false,
|
|
19120
|
+
"description": "Page origin this sign-in is bound to, for example https://school.example.com; a later exchange with another Origin is refused."
|
|
19121
|
+
},
|
|
19122
|
+
{
|
|
19123
|
+
"name": "expires_in",
|
|
19124
|
+
"type": "integer",
|
|
19125
|
+
"required": false,
|
|
19126
|
+
"description": "Lifetime of the code in seconds; omit for the fifteen-minute default, and send a smaller number to shorten it."
|
|
19127
|
+
},
|
|
19128
|
+
{
|
|
19129
|
+
"name": "max_session_seconds",
|
|
19130
|
+
"type": "integer",
|
|
19131
|
+
"required": false,
|
|
19132
|
+
"description": "Lifetime of the sign-in the code starts, in seconds; omit for the seven-day default."
|
|
19133
|
+
},
|
|
19134
|
+
{
|
|
19135
|
+
"name": "merge_end_user_id",
|
|
19136
|
+
"type": "string",
|
|
19137
|
+
"required": false,
|
|
19138
|
+
"description": "An existing anonymous end user (anon_…) whose record joins this person when the code is exchanged."
|
|
19139
|
+
},
|
|
19140
|
+
{
|
|
19141
|
+
"name": "anonymous_access_token",
|
|
19142
|
+
"type": "string",
|
|
19143
|
+
"required": false,
|
|
19144
|
+
"description": "The visitor's own Praxis end user access token, when the browser holds one, so this sign-in keeps that anonymous visitor instead of creating a new person; it is the access_token from a previous exchange, sent from your backend and never from the browser. It must be a live anonymous (anon_…) end user of this organization. It may not be combined with merge_end_user_id, and an expired, forged or foreign token answers 400 INVALID_PARAMS."
|
|
19145
|
+
}
|
|
19146
|
+
]
|
|
19147
|
+
}
|
|
19148
|
+
},
|
|
19149
|
+
{
|
|
19150
|
+
"resource": "end.publishableKeys",
|
|
19151
|
+
"method": "list",
|
|
19152
|
+
"summary": "List publishable keys",
|
|
19153
|
+
"description": "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.",
|
|
19154
|
+
"http": "GET",
|
|
19155
|
+
"path": "/end/v1/publishable_keys",
|
|
19156
|
+
"streaming": "no",
|
|
19157
|
+
"pagination": false,
|
|
19158
|
+
"pathParams": [],
|
|
19159
|
+
"query": [
|
|
19160
|
+
{
|
|
19161
|
+
"name": "page_size",
|
|
19162
|
+
"type": "integer",
|
|
19163
|
+
"required": false,
|
|
19164
|
+
"description": "Maximum keys in one page, from 1 to 100; defaults to 50."
|
|
19165
|
+
},
|
|
19166
|
+
{
|
|
19167
|
+
"name": "page_token",
|
|
19168
|
+
"type": "string",
|
|
19169
|
+
"required": false,
|
|
19170
|
+
"description": "next_page from the preceding key list response; omit for the first page."
|
|
19171
|
+
}
|
|
19172
|
+
]
|
|
19173
|
+
},
|
|
19174
|
+
{
|
|
19175
|
+
"resource": "end.publishableKeys",
|
|
19176
|
+
"method": "create",
|
|
19177
|
+
"summary": "Create a publishable key",
|
|
19178
|
+
"description": "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.",
|
|
19179
|
+
"http": "POST",
|
|
19180
|
+
"path": "/end/v1/publishable_keys",
|
|
19181
|
+
"streaming": "no",
|
|
19182
|
+
"pagination": false,
|
|
19183
|
+
"pathParams": [],
|
|
19184
|
+
"query": [],
|
|
19185
|
+
"body": {
|
|
19186
|
+
"required": true,
|
|
19187
|
+
"fields": [
|
|
19188
|
+
{
|
|
19189
|
+
"name": "name",
|
|
19190
|
+
"type": "string",
|
|
19191
|
+
"required": true,
|
|
19192
|
+
"description": "Label for the key, shown in the console and the key list, for example Storefront."
|
|
19193
|
+
},
|
|
19194
|
+
{
|
|
19195
|
+
"name": "resources",
|
|
19196
|
+
"type": "array",
|
|
19197
|
+
"itemType": "object",
|
|
19198
|
+
"required": true,
|
|
19199
|
+
"description": "Resource scopes an anonymous visitor may reach, at least one, each a scope string or an object with scope and params; grant only what the anonymous experience needs."
|
|
19200
|
+
},
|
|
19201
|
+
{
|
|
19202
|
+
"name": "anon_rate_per_min",
|
|
19203
|
+
"type": "integer",
|
|
19204
|
+
"required": false,
|
|
19205
|
+
"description": "Most exchanges of this key per UTC minute, from 1 to 100000, counting every visitor together; omit or send null for no per-key limit."
|
|
19206
|
+
},
|
|
19207
|
+
{
|
|
19208
|
+
"name": "daily_session_cap",
|
|
19209
|
+
"type": "integer",
|
|
19210
|
+
"required": false,
|
|
19211
|
+
"description": "Most new anonymous visitors this key admits per UTC day, from 0 to 10000000; returning visitors are not counted. Omit or send null for no limit."
|
|
19212
|
+
},
|
|
19213
|
+
{
|
|
19214
|
+
"name": "daily_spend_cap",
|
|
19215
|
+
"type": "object",
|
|
19216
|
+
"required": false,
|
|
19217
|
+
"description": "The most the usage events of this key may cost in one UTC day, for example five dollars as amount 5.00 with currency USD; 0.00 closes the key. Omit or send null for no spend cap."
|
|
19218
|
+
}
|
|
19219
|
+
]
|
|
19220
|
+
}
|
|
19221
|
+
},
|
|
19222
|
+
{
|
|
19223
|
+
"resource": "end.publishableKeys",
|
|
19224
|
+
"method": "delete",
|
|
19225
|
+
"summary": "Delete a publishable key",
|
|
19226
|
+
"description": "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.",
|
|
19227
|
+
"http": "DELETE",
|
|
19228
|
+
"path": "/end/v1/publishable_keys/{key_id}",
|
|
19229
|
+
"streaming": "no",
|
|
19230
|
+
"pagination": false,
|
|
19231
|
+
"pathParams": [
|
|
19232
|
+
{
|
|
19233
|
+
"name": "key_id",
|
|
19234
|
+
"sdkName": "key_id",
|
|
19235
|
+
"description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
|
|
19236
|
+
}
|
|
19237
|
+
],
|
|
19238
|
+
"query": []
|
|
19239
|
+
},
|
|
19240
|
+
{
|
|
19241
|
+
"resource": "end.publishableKeys",
|
|
19242
|
+
"method": "update",
|
|
19243
|
+
"summary": "Update a publishable key",
|
|
19244
|
+
"description": "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.",
|
|
19245
|
+
"http": "PATCH",
|
|
19246
|
+
"path": "/end/v1/publishable_keys/{key_id}",
|
|
19247
|
+
"streaming": "no",
|
|
19248
|
+
"pagination": false,
|
|
19249
|
+
"pathParams": [
|
|
19250
|
+
{
|
|
19251
|
+
"name": "key_id",
|
|
19252
|
+
"sdkName": "key_id",
|
|
19253
|
+
"description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
|
|
19254
|
+
}
|
|
19255
|
+
],
|
|
19256
|
+
"query": [],
|
|
19257
|
+
"body": {
|
|
19258
|
+
"required": true,
|
|
19259
|
+
"fields": [
|
|
19260
|
+
{
|
|
19261
|
+
"name": "name",
|
|
19262
|
+
"type": "string",
|
|
19263
|
+
"required": false,
|
|
19264
|
+
"description": "New label for the key, 1 to 64 characters."
|
|
19265
|
+
},
|
|
19266
|
+
{
|
|
19267
|
+
"name": "anon_rate_per_min",
|
|
19268
|
+
"type": "integer",
|
|
19269
|
+
"required": false,
|
|
19270
|
+
"description": "Most exchanges of this key per UTC minute, from 1 to 100000; null removes the per-key limit."
|
|
19271
|
+
},
|
|
19272
|
+
{
|
|
19273
|
+
"name": "daily_session_cap",
|
|
19274
|
+
"type": "integer",
|
|
19275
|
+
"required": false,
|
|
19276
|
+
"description": "Most new anonymous visitors this key admits per UTC day, from 0 to 10000000; null removes the limit."
|
|
19277
|
+
},
|
|
19278
|
+
{
|
|
19279
|
+
"name": "daily_spend_cap",
|
|
19280
|
+
"type": "object",
|
|
19281
|
+
"required": false,
|
|
19282
|
+
"description": "The most the usage events of this key may cost in one UTC day, for example five dollars as amount 5.00 with currency USD; null removes the cap."
|
|
19283
|
+
}
|
|
19284
|
+
]
|
|
19285
|
+
}
|
|
19286
|
+
},
|
|
19287
|
+
{
|
|
19288
|
+
"resource": "end.users",
|
|
19289
|
+
"method": "list",
|
|
19290
|
+
"summary": "List end users",
|
|
19291
|
+
"description": "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.",
|
|
19292
|
+
"http": "GET",
|
|
19293
|
+
"path": "/end/v1/users",
|
|
19294
|
+
"streaming": "no",
|
|
19295
|
+
"pagination": false,
|
|
19296
|
+
"pathParams": [],
|
|
19297
|
+
"query": [
|
|
19298
|
+
{
|
|
19299
|
+
"name": "page_size",
|
|
19300
|
+
"type": "integer",
|
|
19301
|
+
"required": false,
|
|
19302
|
+
"description": "Maximum end users in one page, from 1 to 100; defaults to 50."
|
|
19303
|
+
},
|
|
19304
|
+
{
|
|
19305
|
+
"name": "page_token",
|
|
19306
|
+
"type": "string",
|
|
19307
|
+
"required": false,
|
|
19308
|
+
"description": "next_page from the preceding list response with the same filters; omit for the first page."
|
|
19309
|
+
},
|
|
19310
|
+
{
|
|
19311
|
+
"name": "type",
|
|
19312
|
+
"type": "string",
|
|
19313
|
+
"enum": [
|
|
19314
|
+
"identified",
|
|
19315
|
+
"anonymous"
|
|
19316
|
+
],
|
|
19317
|
+
"required": false,
|
|
19318
|
+
"description": "Only end users of this kind; identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key. Omit for both."
|
|
19319
|
+
},
|
|
19320
|
+
{
|
|
19321
|
+
"name": "blocked",
|
|
19322
|
+
"type": "boolean",
|
|
19323
|
+
"required": false,
|
|
19324
|
+
"description": "true for blocked end users only, false for end users who are not blocked; omit for both."
|
|
19325
|
+
},
|
|
19326
|
+
{
|
|
19327
|
+
"name": "resource",
|
|
19328
|
+
"type": "string",
|
|
19329
|
+
"required": false,
|
|
19330
|
+
"description": "Only end users of one product, as <type>:<id>, for example content:cnt_0123456789abcdef, agent:agent_123 or application:app_456."
|
|
19331
|
+
},
|
|
19332
|
+
{
|
|
19333
|
+
"name": "q",
|
|
19334
|
+
"type": "string",
|
|
19335
|
+
"required": false,
|
|
19336
|
+
"description": "Only end users whose end user id starts with this prefix, for example cus_; omit for every id."
|
|
19337
|
+
}
|
|
19338
|
+
]
|
|
19339
|
+
},
|
|
19340
|
+
{
|
|
19341
|
+
"resource": "end.users",
|
|
19342
|
+
"method": "delete",
|
|
19343
|
+
"summary": "Delete an end user",
|
|
19344
|
+
"description": "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.",
|
|
19345
|
+
"http": "DELETE",
|
|
19346
|
+
"path": "/end/v1/users/{end_user_id}",
|
|
19347
|
+
"streaming": "no",
|
|
19348
|
+
"pagination": false,
|
|
19349
|
+
"pathParams": [
|
|
19350
|
+
{
|
|
19351
|
+
"name": "end_user_id",
|
|
19352
|
+
"sdkName": "end_user_id",
|
|
19353
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19354
|
+
}
|
|
19355
|
+
],
|
|
19356
|
+
"query": [
|
|
19357
|
+
{
|
|
19358
|
+
"name": "confirm",
|
|
19359
|
+
"type": "string",
|
|
19360
|
+
"required": true,
|
|
19361
|
+
"description": "The end_user_id being deleted, repeated exactly; the service compares it with the path and refuses a mismatch with 400."
|
|
19362
|
+
}
|
|
19363
|
+
]
|
|
19364
|
+
},
|
|
19365
|
+
{
|
|
19366
|
+
"resource": "end.users",
|
|
19367
|
+
"method": "retrieve",
|
|
19368
|
+
"summary": "Get an end user",
|
|
19369
|
+
"description": "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.",
|
|
19370
|
+
"http": "GET",
|
|
19371
|
+
"path": "/end/v1/users/{end_user_id}",
|
|
19372
|
+
"streaming": "no",
|
|
19373
|
+
"pagination": false,
|
|
19374
|
+
"pathParams": [
|
|
19375
|
+
{
|
|
19376
|
+
"name": "end_user_id",
|
|
19377
|
+
"sdkName": "end_user_id",
|
|
19378
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19379
|
+
}
|
|
19380
|
+
],
|
|
19381
|
+
"query": [
|
|
19382
|
+
{
|
|
19383
|
+
"name": "expand",
|
|
19384
|
+
"type": "string",
|
|
19385
|
+
"required": false,
|
|
19386
|
+
"description": "Comma-separated extras to include; products for the products this end user has used, sign_ins for its sign-ins, usage for its recorded usage. Omit to get only the directory record."
|
|
19387
|
+
}
|
|
19388
|
+
]
|
|
19389
|
+
},
|
|
19390
|
+
{
|
|
19391
|
+
"resource": "end.users",
|
|
19392
|
+
"method": "block",
|
|
19393
|
+
"summary": "Block an end user",
|
|
19394
|
+
"description": "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.",
|
|
19395
|
+
"http": "POST",
|
|
19396
|
+
"path": "/end/v1/users/{end_user_id}/block",
|
|
19397
|
+
"streaming": "no",
|
|
19398
|
+
"pagination": false,
|
|
19399
|
+
"pathParams": [
|
|
19400
|
+
{
|
|
19401
|
+
"name": "end_user_id",
|
|
19402
|
+
"sdkName": "end_user_id",
|
|
19403
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19404
|
+
}
|
|
19405
|
+
],
|
|
19406
|
+
"query": [],
|
|
19407
|
+
"body": {
|
|
19408
|
+
"required": false,
|
|
19409
|
+
"fields": [
|
|
19410
|
+
{
|
|
19411
|
+
"name": "reason",
|
|
19412
|
+
"type": "string",
|
|
19413
|
+
"required": false,
|
|
19414
|
+
"description": "Why the end user is blocked, recorded with the block fact; omit for none."
|
|
19415
|
+
}
|
|
19416
|
+
]
|
|
19417
|
+
}
|
|
19418
|
+
},
|
|
19419
|
+
{
|
|
19420
|
+
"resource": "end.users",
|
|
19421
|
+
"method": "revokeTokens",
|
|
19422
|
+
"summary": "Revoke every token of an end user",
|
|
19423
|
+
"description": "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.",
|
|
19424
|
+
"http": "POST",
|
|
19425
|
+
"path": "/end/v1/users/{end_user_id}/revoke_tokens",
|
|
19426
|
+
"streaming": "no",
|
|
19427
|
+
"pagination": false,
|
|
19428
|
+
"pathParams": [
|
|
19429
|
+
{
|
|
19430
|
+
"name": "end_user_id",
|
|
19431
|
+
"sdkName": "end_user_id",
|
|
19432
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19433
|
+
}
|
|
19434
|
+
],
|
|
19435
|
+
"query": []
|
|
19436
|
+
},
|
|
19437
|
+
{
|
|
19438
|
+
"resource": "end.users",
|
|
19439
|
+
"method": "unblock",
|
|
19440
|
+
"summary": "Unblock an end user",
|
|
19441
|
+
"description": "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.",
|
|
19442
|
+
"http": "POST",
|
|
19443
|
+
"path": "/end/v1/users/{end_user_id}/unblock",
|
|
19444
|
+
"streaming": "no",
|
|
19445
|
+
"pagination": false,
|
|
19446
|
+
"pathParams": [
|
|
19447
|
+
{
|
|
19448
|
+
"name": "end_user_id",
|
|
19449
|
+
"sdkName": "end_user_id",
|
|
19450
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19451
|
+
}
|
|
19452
|
+
],
|
|
19453
|
+
"query": []
|
|
19454
|
+
},
|
|
19455
|
+
{
|
|
19456
|
+
"resource": "end.usage",
|
|
19457
|
+
"method": "retrieve",
|
|
19458
|
+
"summary": "Read end-user usage",
|
|
19459
|
+
"description": "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.",
|
|
19460
|
+
"http": "GET",
|
|
19461
|
+
"path": "/end/v1/users/{end_user_id}/usage",
|
|
19462
|
+
"streaming": "no",
|
|
19463
|
+
"pagination": false,
|
|
19464
|
+
"pathParams": [
|
|
19465
|
+
{
|
|
19466
|
+
"name": "end_user_id",
|
|
19467
|
+
"sdkName": "end_user_id",
|
|
19468
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19469
|
+
}
|
|
19470
|
+
],
|
|
19471
|
+
"query": [
|
|
19472
|
+
{
|
|
19473
|
+
"name": "from",
|
|
19474
|
+
"type": "string",
|
|
19475
|
+
"required": false,
|
|
19476
|
+
"description": "Start of the window as an RFC 3339 time, inclusive; omit for the beginning of the record."
|
|
19477
|
+
},
|
|
19478
|
+
{
|
|
19479
|
+
"name": "to",
|
|
19480
|
+
"type": "string",
|
|
19481
|
+
"required": false,
|
|
19482
|
+
"description": "End of the window as an RFC 3339 time, exclusive; omit for now."
|
|
19483
|
+
}
|
|
19484
|
+
]
|
|
19485
|
+
},
|
|
18927
19486
|
{
|
|
18928
19487
|
"resource": "events.subscriptions",
|
|
18929
19488
|
"method": "list",
|