@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
|
@@ -723,7 +723,7 @@ export const operations = [
|
|
|
723
723
|
"resource": "agent.agents.customers",
|
|
724
724
|
"method": "retrieveDeletion",
|
|
725
725
|
"summary": "Get customer deletion",
|
|
726
|
-
"description": "Poll the latest deletion task of a customer, including after its data has been removed.\n\nUse 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
|
|
726
|
+
"description": "Poll the latest deletion task of a customer, including after its data has been removed.\n\nUse 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\".",
|
|
727
727
|
"http": "GET",
|
|
728
728
|
"path": "/agent/v1/agents/{agent_id}/customers/{customer_id}/deletion",
|
|
729
729
|
"streaming": "no",
|
|
@@ -2998,7 +2998,7 @@ export const operations = [
|
|
|
2998
2998
|
"resource": "agent.sessions",
|
|
2999
2999
|
"method": "retrievePromptRevs",
|
|
3000
3000
|
"summary": "Read one turn's platform prompt Revs",
|
|
3001
|
-
"description": "Read back which platform prompt inputs one turn ran on, from the session's own ledger.\n\nThe answer carries the configuration revision the turn pinned, that revision's version number, one 8-hex content Rev per platform input and when the record was taken. The platform inputs are ONE map keyed by each input's own name — `section:<name>` for a prompt section, plus `catalog` and `tools` — because catalog and tools are ordinary entries of that map, not layers of their own. Revs are content hashes: no prompt text, no tool description and no catalog content is ever in the answer, so the body can be compared across turns and releases without exposing what it names.\n\nWith `run_id` you read that run's own record; without it you read the LAST record written. The last record is rewritten when the Rev set moves, not once per turn, so it may be several turns older than this call — which is why the answer's `run_id` is null in that case rather than naming a turn the record does not belong to, and why `at` is there: it is how you see how old the answer is. `at` never takes part in a comparison.\n\n**This read constructs the session object once.** A Durable Object cannot be read without being entered, so the call runs the object's startup, which may settle an interrupted turn; `acknowledge_wake=true` is required for exactly that reason, and the answer reports `reaped_turns` — how many interrupted turns this call's own arrival settled, `0` when it settled none. Only a value above 0 is evidence about this call. The read writes no row and does not refresh the eviction ordering key of the session's cached context parts.\n\n**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.\n\nA 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 `
|
|
3001
|
+
"description": "Read back which platform prompt inputs one turn ran on, from the session's own ledger.\n\nThe answer carries the configuration revision the turn pinned, that revision's version number, one 8-hex content Rev per platform input and when the record was taken. The platform inputs are ONE map keyed by each input's own name — `section:<name>` for a prompt section, plus `catalog` and `tools` — because catalog and tools are ordinary entries of that map, not layers of their own. Revs are content hashes: no prompt text, no tool description and no catalog content is ever in the answer, so the body can be compared across turns and releases without exposing what it names.\n\nWith `run_id` you read that run's own record; without it you read the LAST record written. The last record is rewritten when the Rev set moves, not once per turn, so it may be several turns older than this call — which is why the answer's `run_id` is null in that case rather than naming a turn the record does not belong to, and why `at` is there: it is how you see how old the answer is. `at` never takes part in a comparison.\n\n**This read constructs the session object once.** A Durable Object cannot be read without being entered, so the call runs the object's startup, which may settle an interrupted turn; `acknowledge_wake=true` is required for exactly that reason, and the answer reports `reaped_turns` — how many interrupted turns this call's own arrival settled, `0` when it settled none. Only a value above 0 is evidence about this call. The read writes no row and does not refresh the eviction ordering key of the session's cached context parts.\n\n**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.\n\nA 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.",
|
|
3002
3002
|
"http": "GET",
|
|
3003
3003
|
"path": "/agent/v1/sessions/{session_id}/prompt-revs",
|
|
3004
3004
|
"streaming": "no",
|
|
@@ -4238,6 +4238,206 @@ export const operations = [
|
|
|
4238
4238
|
],
|
|
4239
4239
|
"query": []
|
|
4240
4240
|
},
|
|
4241
|
+
{
|
|
4242
|
+
"resource": "application.workers.logs",
|
|
4243
|
+
"method": "keys",
|
|
4244
|
+
"summary": "List log fields",
|
|
4245
|
+
"description": "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.",
|
|
4246
|
+
"http": "POST",
|
|
4247
|
+
"path": "/application/v1/workers/{worker_id}/logs:keys",
|
|
4248
|
+
"streaming": "no",
|
|
4249
|
+
"pagination": false,
|
|
4250
|
+
"pathParams": [
|
|
4251
|
+
{
|
|
4252
|
+
"name": "worker_id",
|
|
4253
|
+
"sdkName": "worker_id",
|
|
4254
|
+
"description": "Worker ID (wkr_…)."
|
|
4255
|
+
}
|
|
4256
|
+
],
|
|
4257
|
+
"query": [],
|
|
4258
|
+
"body": {
|
|
4259
|
+
"required": true,
|
|
4260
|
+
"fields": [
|
|
4261
|
+
{
|
|
4262
|
+
"name": "filters",
|
|
4263
|
+
"type": "array",
|
|
4264
|
+
"itemType": "object",
|
|
4265
|
+
"required": false,
|
|
4266
|
+
"description": "Cloudflare filters, narrowed by the server to this Worker; filters on $metadata.service, $workers.scriptName or dataset are dropped."
|
|
4267
|
+
},
|
|
4268
|
+
{
|
|
4269
|
+
"name": "from",
|
|
4270
|
+
"type": "integer",
|
|
4271
|
+
"required": false,
|
|
4272
|
+
"description": "Window start, epoch milliseconds."
|
|
4273
|
+
},
|
|
4274
|
+
{
|
|
4275
|
+
"name": "to",
|
|
4276
|
+
"type": "integer",
|
|
4277
|
+
"required": false,
|
|
4278
|
+
"description": "Window end, epoch milliseconds."
|
|
4279
|
+
},
|
|
4280
|
+
{
|
|
4281
|
+
"name": "limit",
|
|
4282
|
+
"type": "integer",
|
|
4283
|
+
"required": false,
|
|
4284
|
+
"description": "Maximum keys; values above 2000 are clamped."
|
|
4285
|
+
},
|
|
4286
|
+
{
|
|
4287
|
+
"name": "needle",
|
|
4288
|
+
"type": "object",
|
|
4289
|
+
"required": false,
|
|
4290
|
+
"description": "Full-text search across events; Cloudflare's shape."
|
|
4291
|
+
}
|
|
4292
|
+
]
|
|
4293
|
+
}
|
|
4294
|
+
},
|
|
4295
|
+
{
|
|
4296
|
+
"resource": "application.workers.logs",
|
|
4297
|
+
"method": "query",
|
|
4298
|
+
"summary": "Query Worker logs",
|
|
4299
|
+
"description": "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.",
|
|
4300
|
+
"http": "POST",
|
|
4301
|
+
"path": "/application/v1/workers/{worker_id}/logs:query",
|
|
4302
|
+
"streaming": "no",
|
|
4303
|
+
"pagination": false,
|
|
4304
|
+
"pathParams": [
|
|
4305
|
+
{
|
|
4306
|
+
"name": "worker_id",
|
|
4307
|
+
"sdkName": "worker_id",
|
|
4308
|
+
"description": "Worker ID (wkr_…)."
|
|
4309
|
+
}
|
|
4310
|
+
],
|
|
4311
|
+
"query": [],
|
|
4312
|
+
"body": {
|
|
4313
|
+
"required": true,
|
|
4314
|
+
"fields": [
|
|
4315
|
+
{
|
|
4316
|
+
"name": "timeframe",
|
|
4317
|
+
"type": "object",
|
|
4318
|
+
"required": true,
|
|
4319
|
+
"description": "The window to read; required, at most 7 days (the retention), from earlier than to."
|
|
4320
|
+
},
|
|
4321
|
+
{
|
|
4322
|
+
"name": "view",
|
|
4323
|
+
"type": "string",
|
|
4324
|
+
"enum": [
|
|
4325
|
+
"events",
|
|
4326
|
+
"calculations"
|
|
4327
|
+
],
|
|
4328
|
+
"required": false,
|
|
4329
|
+
"description": "What the query returns: events (individual log lines, the default) or calculations (aggregates)."
|
|
4330
|
+
},
|
|
4331
|
+
{
|
|
4332
|
+
"name": "limit",
|
|
4333
|
+
"type": "integer",
|
|
4334
|
+
"required": false,
|
|
4335
|
+
"description": "Events per page (or group-by rows for calculations); values above 2000 are clamped to 2000."
|
|
4336
|
+
},
|
|
4337
|
+
{
|
|
4338
|
+
"name": "offset",
|
|
4339
|
+
"type": "string",
|
|
4340
|
+
"required": false,
|
|
4341
|
+
"description": "Cursor to the next page: the $metadata.id of the last event of the previous page."
|
|
4342
|
+
},
|
|
4343
|
+
{
|
|
4344
|
+
"name": "compare",
|
|
4345
|
+
"type": "boolean",
|
|
4346
|
+
"required": false,
|
|
4347
|
+
"description": "Include a comparison dataset from the previous window of equal length."
|
|
4348
|
+
},
|
|
4349
|
+
{
|
|
4350
|
+
"name": "dry",
|
|
4351
|
+
"type": "boolean",
|
|
4352
|
+
"required": false,
|
|
4353
|
+
"description": "Validate and run without persisting the query."
|
|
4354
|
+
},
|
|
4355
|
+
{
|
|
4356
|
+
"name": "granularity",
|
|
4357
|
+
"type": "integer",
|
|
4358
|
+
"required": false,
|
|
4359
|
+
"description": "Number of time-series buckets for calculations; omitting lets Cloudflare decide."
|
|
4360
|
+
},
|
|
4361
|
+
{
|
|
4362
|
+
"name": "chart",
|
|
4363
|
+
"type": "boolean",
|
|
4364
|
+
"required": false,
|
|
4365
|
+
"description": "Include time-series data in the response."
|
|
4366
|
+
},
|
|
4367
|
+
{
|
|
4368
|
+
"name": "parameters",
|
|
4369
|
+
"type": "object",
|
|
4370
|
+
"required": false,
|
|
4371
|
+
"description": "Cloudflare's parameters object, passed through: filters, filterCombination, calculations, groupBys, havings, orderBy, needle and datasets are Cloudflare's own fields. The server forces datasets to cloudflare-workers, adds the Worker's script as a filter, forces filterCombination to and, and drops any caller filter on $metadata.service, $workers.scriptName or dataset, so a query can never read another application's events."
|
|
4372
|
+
}
|
|
4373
|
+
]
|
|
4374
|
+
}
|
|
4375
|
+
},
|
|
4376
|
+
{
|
|
4377
|
+
"resource": "application.workers.logs",
|
|
4378
|
+
"method": "values",
|
|
4379
|
+
"summary": "List log field values",
|
|
4380
|
+
"description": "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.",
|
|
4381
|
+
"http": "POST",
|
|
4382
|
+
"path": "/application/v1/workers/{worker_id}/logs:values",
|
|
4383
|
+
"streaming": "no",
|
|
4384
|
+
"pagination": false,
|
|
4385
|
+
"pathParams": [
|
|
4386
|
+
{
|
|
4387
|
+
"name": "worker_id",
|
|
4388
|
+
"sdkName": "worker_id",
|
|
4389
|
+
"description": "Worker ID (wkr_…)."
|
|
4390
|
+
}
|
|
4391
|
+
],
|
|
4392
|
+
"query": [],
|
|
4393
|
+
"body": {
|
|
4394
|
+
"required": true,
|
|
4395
|
+
"fields": [
|
|
4396
|
+
{
|
|
4397
|
+
"name": "key",
|
|
4398
|
+
"type": "string",
|
|
4399
|
+
"required": true,
|
|
4400
|
+
"description": "The field whose values to list, e.g. $metadata.level; discover fields with logs:keys."
|
|
4401
|
+
},
|
|
4402
|
+
{
|
|
4403
|
+
"name": "type",
|
|
4404
|
+
"type": "string",
|
|
4405
|
+
"enum": [
|
|
4406
|
+
"string",
|
|
4407
|
+
"number",
|
|
4408
|
+
"boolean"
|
|
4409
|
+
],
|
|
4410
|
+
"required": true,
|
|
4411
|
+
"description": "Type of the field, as keys reports it."
|
|
4412
|
+
},
|
|
4413
|
+
{
|
|
4414
|
+
"name": "timeframe",
|
|
4415
|
+
"type": "object",
|
|
4416
|
+
"required": true,
|
|
4417
|
+
"description": "The window to read; required, at most 7 days."
|
|
4418
|
+
},
|
|
4419
|
+
{
|
|
4420
|
+
"name": "filters",
|
|
4421
|
+
"type": "array",
|
|
4422
|
+
"itemType": "object",
|
|
4423
|
+
"required": false,
|
|
4424
|
+
"description": "Cloudflare filters, narrowed by the server to this Worker; filters on $metadata.service, $workers.scriptName or dataset are dropped."
|
|
4425
|
+
},
|
|
4426
|
+
{
|
|
4427
|
+
"name": "limit",
|
|
4428
|
+
"type": "integer",
|
|
4429
|
+
"required": false,
|
|
4430
|
+
"description": "Maximum values; values above 2000 are clamped."
|
|
4431
|
+
},
|
|
4432
|
+
{
|
|
4433
|
+
"name": "needle",
|
|
4434
|
+
"type": "object",
|
|
4435
|
+
"required": false,
|
|
4436
|
+
"description": "Full-text search across events; Cloudflare's shape."
|
|
4437
|
+
}
|
|
4438
|
+
]
|
|
4439
|
+
}
|
|
4440
|
+
},
|
|
4241
4441
|
{
|
|
4242
4442
|
"resource": "application.workers",
|
|
4243
4443
|
"method": "restore",
|
|
@@ -8848,6 +9048,41 @@ export const operations = [
|
|
|
8848
9048
|
}
|
|
8849
9049
|
]
|
|
8850
9050
|
},
|
|
9051
|
+
{
|
|
9052
|
+
"resource": "canvas.canvases.processes.steps",
|
|
9053
|
+
"method": "retrieveBrief",
|
|
9054
|
+
"summary": "Read a process step brief",
|
|
9055
|
+
"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.",
|
|
9056
|
+
"http": "GET",
|
|
9057
|
+
"path": "/canvas/v1/canvases/{canvas_id}/processes/{process_id}/steps/{step_id}/brief",
|
|
9058
|
+
"streaming": "no",
|
|
9059
|
+
"pagination": false,
|
|
9060
|
+
"pathParams": [
|
|
9061
|
+
{
|
|
9062
|
+
"name": "canvas_id",
|
|
9063
|
+
"sdkName": "canvas_id",
|
|
9064
|
+
"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."
|
|
9065
|
+
},
|
|
9066
|
+
{
|
|
9067
|
+
"name": "process_id",
|
|
9068
|
+
"sdkName": "process_id",
|
|
9069
|
+
"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."
|
|
9070
|
+
},
|
|
9071
|
+
{
|
|
9072
|
+
"name": "step_id",
|
|
9073
|
+
"sdkName": "step_id",
|
|
9074
|
+
"description": "Step key from the requirement block, such as 1 or 9a; not the node id of the step frame."
|
|
9075
|
+
}
|
|
9076
|
+
],
|
|
9077
|
+
"query": [
|
|
9078
|
+
{
|
|
9079
|
+
"name": "version",
|
|
9080
|
+
"type": "string",
|
|
9081
|
+
"required": false,
|
|
9082
|
+
"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."
|
|
9083
|
+
}
|
|
9084
|
+
]
|
|
9085
|
+
},
|
|
8851
9086
|
{
|
|
8852
9087
|
"resource": "canvas.canvases.versions",
|
|
8853
9088
|
"method": "list",
|
|
@@ -9395,7 +9630,7 @@ export const operations = [
|
|
|
9395
9630
|
"resource": "content.playbackSessions",
|
|
9396
9631
|
"method": "create",
|
|
9397
9632
|
"summary": "Open a playback session",
|
|
9398
|
-
"description": "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.",
|
|
9633
|
+
"description": "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.",
|
|
9399
9634
|
"http": "POST",
|
|
9400
9635
|
"path": "/content/v1/playback/sessions",
|
|
9401
9636
|
"streaming": "no",
|
|
@@ -10485,7 +10720,7 @@ export const operations = [
|
|
|
10485
10720
|
"resource": "crm.properties",
|
|
10486
10721
|
"method": "list",
|
|
10487
10722
|
"summary": "List properties",
|
|
10488
|
-
"description": "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.",
|
|
10723
|
+
"description": "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.",
|
|
10489
10724
|
"http": "GET",
|
|
10490
10725
|
"path": "/crm/v1/properties/{objectType}",
|
|
10491
10726
|
"streaming": "no",
|
|
@@ -11133,11 +11368,47 @@ export const operations = [
|
|
|
11133
11368
|
]
|
|
11134
11369
|
}
|
|
11135
11370
|
},
|
|
11371
|
+
{
|
|
11372
|
+
"resource": "crm.schemas",
|
|
11373
|
+
"method": "delete",
|
|
11374
|
+
"summary": "Delete object schema",
|
|
11375
|
+
"description": "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.",
|
|
11376
|
+
"http": "DELETE",
|
|
11377
|
+
"path": "/crm/v1/schemas/{objectType}",
|
|
11378
|
+
"streaming": "no",
|
|
11379
|
+
"pagination": false,
|
|
11380
|
+
"pathParams": [
|
|
11381
|
+
{
|
|
11382
|
+
"name": "objectType",
|
|
11383
|
+
"sdkName": "objectType",
|
|
11384
|
+
"description": "Object type name or object type id from schemas.list; a custom object is p_<name>."
|
|
11385
|
+
}
|
|
11386
|
+
],
|
|
11387
|
+
"query": []
|
|
11388
|
+
},
|
|
11389
|
+
{
|
|
11390
|
+
"resource": "crm.schemas",
|
|
11391
|
+
"method": "retrieve",
|
|
11392
|
+
"summary": "Read object schema",
|
|
11393
|
+
"description": "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.",
|
|
11394
|
+
"http": "GET",
|
|
11395
|
+
"path": "/crm/v1/schemas/{objectType}",
|
|
11396
|
+
"streaming": "no",
|
|
11397
|
+
"pagination": false,
|
|
11398
|
+
"pathParams": [
|
|
11399
|
+
{
|
|
11400
|
+
"name": "objectType",
|
|
11401
|
+
"sdkName": "objectType",
|
|
11402
|
+
"description": "Object type name or object type id from schemas.list; a custom object is p_<name>."
|
|
11403
|
+
}
|
|
11404
|
+
],
|
|
11405
|
+
"query": []
|
|
11406
|
+
},
|
|
11136
11407
|
{
|
|
11137
11408
|
"resource": "customer.accessTokens",
|
|
11138
11409
|
"method": "create",
|
|
11139
11410
|
"summary": "Exchange a grant code or publishable key",
|
|
11140
|
-
"description": "
|
|
11411
|
+
"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
11412
|
"http": "POST",
|
|
11142
11413
|
"path": "/customer/v1/access_tokens",
|
|
11143
11414
|
"streaming": "no",
|
|
@@ -11180,7 +11451,7 @@ export const operations = [
|
|
|
11180
11451
|
"resource": "customer.accessTokens",
|
|
11181
11452
|
"method": "revoke",
|
|
11182
11453
|
"summary": "Sign out the current token",
|
|
11183
|
-
"description": "
|
|
11454
|
+
"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
11455
|
"http": "DELETE",
|
|
11185
11456
|
"path": "/customer/v1/access_tokens/current",
|
|
11186
11457
|
"streaming": "no",
|
|
@@ -11192,7 +11463,7 @@ export const operations = [
|
|
|
11192
11463
|
"resource": "customer.accessTokens",
|
|
11193
11464
|
"method": "renew",
|
|
11194
11465
|
"summary": "Renew an access token",
|
|
11195
|
-
"description": "
|
|
11466
|
+
"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
11467
|
"http": "POST",
|
|
11197
11468
|
"path": "/customer/v1/access_tokens/renew",
|
|
11198
11469
|
"streaming": "no",
|
|
@@ -11204,7 +11475,7 @@ export const operations = [
|
|
|
11204
11475
|
"resource": "customer.customers",
|
|
11205
11476
|
"method": "list",
|
|
11206
11477
|
"summary": "List end users",
|
|
11207
|
-
"description": "
|
|
11478
|
+
"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
11479
|
"http": "GET",
|
|
11209
11480
|
"path": "/customer/v1/customers",
|
|
11210
11481
|
"streaming": "no",
|
|
@@ -11257,7 +11528,7 @@ export const operations = [
|
|
|
11257
11528
|
"resource": "customer.customers",
|
|
11258
11529
|
"method": "delete",
|
|
11259
11530
|
"summary": "Delete an end user",
|
|
11260
|
-
"description": "
|
|
11531
|
+
"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
11532
|
"http": "DELETE",
|
|
11262
11533
|
"path": "/customer/v1/customers/{customer_id}",
|
|
11263
11534
|
"streaming": "no",
|
|
@@ -11282,7 +11553,7 @@ export const operations = [
|
|
|
11282
11553
|
"resource": "customer.customers",
|
|
11283
11554
|
"method": "retrieve",
|
|
11284
11555
|
"summary": "Get an end user",
|
|
11285
|
-
"description": "
|
|
11556
|
+
"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
11557
|
"http": "GET",
|
|
11287
11558
|
"path": "/customer/v1/customers/{customer_id}",
|
|
11288
11559
|
"streaming": "no",
|
|
@@ -11307,7 +11578,7 @@ export const operations = [
|
|
|
11307
11578
|
"resource": "customer.customers",
|
|
11308
11579
|
"method": "block",
|
|
11309
11580
|
"summary": "Block an end user",
|
|
11310
|
-
"description": "
|
|
11581
|
+
"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
11582
|
"http": "POST",
|
|
11312
11583
|
"path": "/customer/v1/customers/{customer_id}/block",
|
|
11313
11584
|
"streaming": "no",
|
|
@@ -11336,7 +11607,7 @@ export const operations = [
|
|
|
11336
11607
|
"resource": "customer.customers",
|
|
11337
11608
|
"method": "revokeTokens",
|
|
11338
11609
|
"summary": "Revoke every token of an end user",
|
|
11339
|
-
"description": "
|
|
11610
|
+
"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
11611
|
"http": "POST",
|
|
11341
11612
|
"path": "/customer/v1/customers/{customer_id}/revoke_tokens",
|
|
11342
11613
|
"streaming": "no",
|
|
@@ -11354,7 +11625,7 @@ export const operations = [
|
|
|
11354
11625
|
"resource": "customer.customers",
|
|
11355
11626
|
"method": "unblock",
|
|
11356
11627
|
"summary": "Unblock an end user",
|
|
11357
|
-
"description": "
|
|
11628
|
+
"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
11629
|
"http": "POST",
|
|
11359
11630
|
"path": "/customer/v1/customers/{customer_id}/unblock",
|
|
11360
11631
|
"streaming": "no",
|
|
@@ -11372,7 +11643,7 @@ export const operations = [
|
|
|
11372
11643
|
"resource": "customer.usage",
|
|
11373
11644
|
"method": "retrieve",
|
|
11374
11645
|
"summary": "Read end-user usage",
|
|
11375
|
-
"description": "
|
|
11646
|
+
"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
11647
|
"http": "GET",
|
|
11377
11648
|
"path": "/customer/v1/customers/{customer_id}/usage",
|
|
11378
11649
|
"streaming": "no",
|
|
@@ -11403,7 +11674,7 @@ export const operations = [
|
|
|
11403
11674
|
"resource": "customer.grantCodes",
|
|
11404
11675
|
"method": "create",
|
|
11405
11676
|
"summary": "Create a grant code",
|
|
11406
|
-
"description": "
|
|
11677
|
+
"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
11678
|
"http": "POST",
|
|
11408
11679
|
"path": "/customer/v1/grant_codes",
|
|
11409
11680
|
"streaming": "no",
|
|
@@ -11469,7 +11740,7 @@ export const operations = [
|
|
|
11469
11740
|
"resource": "customer.publishableKeys",
|
|
11470
11741
|
"method": "list",
|
|
11471
11742
|
"summary": "List publishable keys",
|
|
11472
|
-
"description": "
|
|
11743
|
+
"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
11744
|
"http": "GET",
|
|
11474
11745
|
"path": "/customer/v1/publishable_keys",
|
|
11475
11746
|
"streaming": "no",
|
|
@@ -11494,7 +11765,7 @@ export const operations = [
|
|
|
11494
11765
|
"resource": "customer.publishableKeys",
|
|
11495
11766
|
"method": "create",
|
|
11496
11767
|
"summary": "Create a publishable key",
|
|
11497
|
-
"description": "
|
|
11768
|
+
"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
11769
|
"http": "POST",
|
|
11499
11770
|
"path": "/customer/v1/publishable_keys",
|
|
11500
11771
|
"streaming": "no",
|
|
@@ -11542,7 +11813,7 @@ export const operations = [
|
|
|
11542
11813
|
"resource": "customer.publishableKeys",
|
|
11543
11814
|
"method": "delete",
|
|
11544
11815
|
"summary": "Delete a publishable key",
|
|
11545
|
-
"description": "
|
|
11816
|
+
"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 PUBLISHABLE_KEY_NOT_FOUND.",
|
|
11546
11817
|
"http": "DELETE",
|
|
11547
11818
|
"path": "/customer/v1/publishable_keys/{key_id}",
|
|
11548
11819
|
"streaming": "no",
|
|
@@ -11560,7 +11831,7 @@ export const operations = [
|
|
|
11560
11831
|
"resource": "customer.publishableKeys",
|
|
11561
11832
|
"method": "update",
|
|
11562
11833
|
"summary": "Update a publishable key",
|
|
11563
|
-
"description": "
|
|
11834
|
+
"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
11835
|
"http": "PATCH",
|
|
11565
11836
|
"path": "/customer/v1/publishable_keys/{key_id}",
|
|
11566
11837
|
"streaming": "no",
|
|
@@ -11992,7 +12263,7 @@ export const operations = [
|
|
|
11992
12263
|
"resource": "cut.projects.exports",
|
|
11993
12264
|
"method": "create",
|
|
11994
12265
|
"summary": "Create video export",
|
|
11995
|
-
"description": "Start an asynchronous video export from the project
|
|
12266
|
+
"description": "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.",
|
|
11996
12267
|
"http": "POST",
|
|
11997
12268
|
"path": "/cut/v1/projects/{project_id}/exports",
|
|
11998
12269
|
"streaming": "no",
|
|
@@ -12030,7 +12301,7 @@ export const operations = [
|
|
|
12030
12301
|
"name": "binding",
|
|
12031
12302
|
"type": "string",
|
|
12032
12303
|
"required": false,
|
|
12033
|
-
"description": "Writable binding name
|
|
12304
|
+
"description": "Writable binding name the finished video is imported into; the response then carries asset. Omit binding and folder and nothing is imported (default_upload is not used here): the export is a file only, read file.url to download it within one hour."
|
|
12034
12305
|
},
|
|
12035
12306
|
{
|
|
12036
12307
|
"name": "revision",
|
|
@@ -18219,6 +18490,60 @@ export const operations = [
|
|
|
18219
18490
|
]
|
|
18220
18491
|
}
|
|
18221
18492
|
},
|
|
18493
|
+
{
|
|
18494
|
+
"resource": "devops.pullRequests",
|
|
18495
|
+
"method": "overrideGate",
|
|
18496
|
+
"summary": "Record a listed position's exception to the merge gate",
|
|
18497
|
+
"description": "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\"}.",
|
|
18498
|
+
"http": "POST",
|
|
18499
|
+
"path": "/devops/v1/pull-requests/{id}:overrideGate",
|
|
18500
|
+
"streaming": "no",
|
|
18501
|
+
"pagination": false,
|
|
18502
|
+
"pathParams": [
|
|
18503
|
+
{
|
|
18504
|
+
"name": "id",
|
|
18505
|
+
"sdkName": "id",
|
|
18506
|
+
"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."
|
|
18507
|
+
}
|
|
18508
|
+
],
|
|
18509
|
+
"query": [],
|
|
18510
|
+
"body": {
|
|
18511
|
+
"required": true,
|
|
18512
|
+
"fields": [
|
|
18513
|
+
{
|
|
18514
|
+
"name": "headSha",
|
|
18515
|
+
"type": "string",
|
|
18516
|
+
"required": true,
|
|
18517
|
+
"description": "The pull request's current head commit, from the pull request's head.sha; any other commit is refused with HEAD_MOVED."
|
|
18518
|
+
},
|
|
18519
|
+
{
|
|
18520
|
+
"name": "checks",
|
|
18521
|
+
"type": "array",
|
|
18522
|
+
"itemType": "string",
|
|
18523
|
+
"required": true,
|
|
18524
|
+
"description": "The gate checks the exception covers, at least one; a name that is not a gate check is refused with INVALID_ARGUMENT."
|
|
18525
|
+
},
|
|
18526
|
+
{
|
|
18527
|
+
"name": "ticket",
|
|
18528
|
+
"type": "string",
|
|
18529
|
+
"required": true,
|
|
18530
|
+
"description": "The ticket the authorization is written on, as #<number> or its URL."
|
|
18531
|
+
},
|
|
18532
|
+
{
|
|
18533
|
+
"name": "reason",
|
|
18534
|
+
"type": "string",
|
|
18535
|
+
"required": true,
|
|
18536
|
+
"description": "Why the check is let through at this head, in one sentence a later reader can audit."
|
|
18537
|
+
},
|
|
18538
|
+
{
|
|
18539
|
+
"name": "authorizedBy",
|
|
18540
|
+
"type": "string",
|
|
18541
|
+
"required": true,
|
|
18542
|
+
"description": "The holder of a listed position who authorized it, as agent:<id> or human:<id>; must hold an active assignment to one of the positions listed in practice-config (today CEO, CTO, COO)."
|
|
18543
|
+
}
|
|
18544
|
+
]
|
|
18545
|
+
}
|
|
18546
|
+
},
|
|
18222
18547
|
{
|
|
18223
18548
|
"resource": "devops.pullRequests",
|
|
18224
18549
|
"method": "recordVerdict",
|
|
@@ -18274,7 +18599,7 @@ export const operations = [
|
|
|
18274
18599
|
"resource": "devops.pullRequests",
|
|
18275
18600
|
"method": "rerunGate",
|
|
18276
18601
|
"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
|
|
18602
|
+
"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
18603
|
"http": "POST",
|
|
18279
18604
|
"path": "/devops/v1/pull-requests/{id}:rerunGate",
|
|
18280
18605
|
"streaming": "no",
|
|
@@ -18925,12 +19250,482 @@ export const operations = [
|
|
|
18925
19250
|
"query": []
|
|
18926
19251
|
},
|
|
18927
19252
|
{
|
|
18928
|
-
"resource": "
|
|
18929
|
-
"method": "
|
|
18930
|
-
"summary": "
|
|
18931
|
-
"description": "
|
|
18932
|
-
"http": "
|
|
18933
|
-
"path": "/
|
|
19253
|
+
"resource": "end.accessTokens",
|
|
19254
|
+
"method": "create",
|
|
19255
|
+
"summary": "Exchange a grant code or publishable key",
|
|
19256
|
+
"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.",
|
|
19257
|
+
"http": "POST",
|
|
19258
|
+
"path": "/end/v1/access_tokens",
|
|
19259
|
+
"streaming": "no",
|
|
19260
|
+
"pagination": false,
|
|
19261
|
+
"pathParams": [],
|
|
19262
|
+
"query": [],
|
|
19263
|
+
"headers": [
|
|
19264
|
+
{
|
|
19265
|
+
"name": "Origin",
|
|
19266
|
+
"type": "string",
|
|
19267
|
+
"required": false,
|
|
19268
|
+
"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."
|
|
19269
|
+
}
|
|
19270
|
+
],
|
|
19271
|
+
"body": {
|
|
19272
|
+
"required": true,
|
|
19273
|
+
"fields": [
|
|
19274
|
+
{
|
|
19275
|
+
"name": "grant_code",
|
|
19276
|
+
"type": "string",
|
|
19277
|
+
"required": false,
|
|
19278
|
+
"description": "A grant code (cgc_…) from grant_codes, for an end user you signed in from your backend; it works once."
|
|
19279
|
+
},
|
|
19280
|
+
{
|
|
19281
|
+
"name": "publishable_key",
|
|
19282
|
+
"type": "string",
|
|
19283
|
+
"required": false,
|
|
19284
|
+
"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."
|
|
19285
|
+
},
|
|
19286
|
+
{
|
|
19287
|
+
"name": "continuation_token",
|
|
19288
|
+
"type": "string",
|
|
19289
|
+
"required": false,
|
|
19290
|
+
"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."
|
|
19291
|
+
}
|
|
19292
|
+
]
|
|
19293
|
+
}
|
|
19294
|
+
},
|
|
19295
|
+
{
|
|
19296
|
+
"resource": "end.accessTokens",
|
|
19297
|
+
"method": "revoke",
|
|
19298
|
+
"summary": "Sign out the current token",
|
|
19299
|
+
"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.",
|
|
19300
|
+
"http": "DELETE",
|
|
19301
|
+
"path": "/end/v1/access_tokens/current",
|
|
19302
|
+
"streaming": "no",
|
|
19303
|
+
"pagination": false,
|
|
19304
|
+
"pathParams": [],
|
|
19305
|
+
"query": []
|
|
19306
|
+
},
|
|
19307
|
+
{
|
|
19308
|
+
"resource": "end.accessTokens",
|
|
19309
|
+
"method": "renew",
|
|
19310
|
+
"summary": "Renew an access token",
|
|
19311
|
+
"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.",
|
|
19312
|
+
"http": "POST",
|
|
19313
|
+
"path": "/end/v1/access_tokens/renew",
|
|
19314
|
+
"streaming": "no",
|
|
19315
|
+
"pagination": false,
|
|
19316
|
+
"pathParams": [],
|
|
19317
|
+
"query": []
|
|
19318
|
+
},
|
|
19319
|
+
{
|
|
19320
|
+
"resource": "end.grantCodes",
|
|
19321
|
+
"method": "create",
|
|
19322
|
+
"summary": "Create a grant code",
|
|
19323
|
+
"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.",
|
|
19324
|
+
"http": "POST",
|
|
19325
|
+
"path": "/end/v1/grant_codes",
|
|
19326
|
+
"streaming": "no",
|
|
19327
|
+
"pagination": false,
|
|
19328
|
+
"pathParams": [],
|
|
19329
|
+
"query": [],
|
|
19330
|
+
"body": {
|
|
19331
|
+
"required": true,
|
|
19332
|
+
"fields": [
|
|
19333
|
+
{
|
|
19334
|
+
"name": "end_user_id",
|
|
19335
|
+
"type": "string",
|
|
19336
|
+
"required": true,
|
|
19337
|
+
"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."
|
|
19338
|
+
},
|
|
19339
|
+
{
|
|
19340
|
+
"name": "metadata",
|
|
19341
|
+
"type": "object",
|
|
19342
|
+
"required": false,
|
|
19343
|
+
"description": "Product metadata to record with the end user, as string key to string value; it is merged over what is already stored."
|
|
19344
|
+
},
|
|
19345
|
+
{
|
|
19346
|
+
"name": "resources",
|
|
19347
|
+
"type": "array",
|
|
19348
|
+
"itemType": "object",
|
|
19349
|
+
"required": true,
|
|
19350
|
+
"description": "Resource scopes the sign-in may reach, at least one, each a scope string or an object with scope and params."
|
|
19351
|
+
},
|
|
19352
|
+
{
|
|
19353
|
+
"name": "origin",
|
|
19354
|
+
"type": "string",
|
|
19355
|
+
"required": false,
|
|
19356
|
+
"description": "Page origin this sign-in is bound to, for example https://school.example.com; a later exchange with another Origin is refused."
|
|
19357
|
+
},
|
|
19358
|
+
{
|
|
19359
|
+
"name": "expires_in",
|
|
19360
|
+
"type": "integer",
|
|
19361
|
+
"required": false,
|
|
19362
|
+
"description": "Lifetime of the code in seconds; omit for the fifteen-minute default, and send a smaller number to shorten it."
|
|
19363
|
+
},
|
|
19364
|
+
{
|
|
19365
|
+
"name": "max_session_seconds",
|
|
19366
|
+
"type": "integer",
|
|
19367
|
+
"required": false,
|
|
19368
|
+
"description": "Lifetime of the sign-in the code starts, in seconds; omit for the seven-day default."
|
|
19369
|
+
},
|
|
19370
|
+
{
|
|
19371
|
+
"name": "merge_end_user_id",
|
|
19372
|
+
"type": "string",
|
|
19373
|
+
"required": false,
|
|
19374
|
+
"description": "An existing anonymous end user (anon_…) whose record joins this person when the code is exchanged."
|
|
19375
|
+
},
|
|
19376
|
+
{
|
|
19377
|
+
"name": "anonymous_access_token",
|
|
19378
|
+
"type": "string",
|
|
19379
|
+
"required": false,
|
|
19380
|
+
"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."
|
|
19381
|
+
}
|
|
19382
|
+
]
|
|
19383
|
+
}
|
|
19384
|
+
},
|
|
19385
|
+
{
|
|
19386
|
+
"resource": "end.publishableKeys",
|
|
19387
|
+
"method": "list",
|
|
19388
|
+
"summary": "List publishable keys",
|
|
19389
|
+
"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.",
|
|
19390
|
+
"http": "GET",
|
|
19391
|
+
"path": "/end/v1/publishable_keys",
|
|
19392
|
+
"streaming": "no",
|
|
19393
|
+
"pagination": false,
|
|
19394
|
+
"pathParams": [],
|
|
19395
|
+
"query": [
|
|
19396
|
+
{
|
|
19397
|
+
"name": "page_size",
|
|
19398
|
+
"type": "integer",
|
|
19399
|
+
"required": false,
|
|
19400
|
+
"description": "Maximum keys in one page, from 1 to 100; defaults to 50."
|
|
19401
|
+
},
|
|
19402
|
+
{
|
|
19403
|
+
"name": "page_token",
|
|
19404
|
+
"type": "string",
|
|
19405
|
+
"required": false,
|
|
19406
|
+
"description": "next_page from the preceding key list response; omit for the first page."
|
|
19407
|
+
}
|
|
19408
|
+
]
|
|
19409
|
+
},
|
|
19410
|
+
{
|
|
19411
|
+
"resource": "end.publishableKeys",
|
|
19412
|
+
"method": "create",
|
|
19413
|
+
"summary": "Create a publishable key",
|
|
19414
|
+
"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.",
|
|
19415
|
+
"http": "POST",
|
|
19416
|
+
"path": "/end/v1/publishable_keys",
|
|
19417
|
+
"streaming": "no",
|
|
19418
|
+
"pagination": false,
|
|
19419
|
+
"pathParams": [],
|
|
19420
|
+
"query": [],
|
|
19421
|
+
"body": {
|
|
19422
|
+
"required": true,
|
|
19423
|
+
"fields": [
|
|
19424
|
+
{
|
|
19425
|
+
"name": "name",
|
|
19426
|
+
"type": "string",
|
|
19427
|
+
"required": true,
|
|
19428
|
+
"description": "Label for the key, shown in the console and the key list, for example Storefront."
|
|
19429
|
+
},
|
|
19430
|
+
{
|
|
19431
|
+
"name": "resources",
|
|
19432
|
+
"type": "array",
|
|
19433
|
+
"itemType": "object",
|
|
19434
|
+
"required": true,
|
|
19435
|
+
"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."
|
|
19436
|
+
},
|
|
19437
|
+
{
|
|
19438
|
+
"name": "anon_rate_per_min",
|
|
19439
|
+
"type": "integer",
|
|
19440
|
+
"required": false,
|
|
19441
|
+
"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."
|
|
19442
|
+
},
|
|
19443
|
+
{
|
|
19444
|
+
"name": "daily_session_cap",
|
|
19445
|
+
"type": "integer",
|
|
19446
|
+
"required": false,
|
|
19447
|
+
"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."
|
|
19448
|
+
},
|
|
19449
|
+
{
|
|
19450
|
+
"name": "daily_spend_cap",
|
|
19451
|
+
"type": "object",
|
|
19452
|
+
"required": false,
|
|
19453
|
+
"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."
|
|
19454
|
+
}
|
|
19455
|
+
]
|
|
19456
|
+
}
|
|
19457
|
+
},
|
|
19458
|
+
{
|
|
19459
|
+
"resource": "end.publishableKeys",
|
|
19460
|
+
"method": "delete",
|
|
19461
|
+
"summary": "Delete a publishable key",
|
|
19462
|
+
"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 PUBLISHABLE_KEY_NOT_FOUND.",
|
|
19463
|
+
"http": "DELETE",
|
|
19464
|
+
"path": "/end/v1/publishable_keys/{key_id}",
|
|
19465
|
+
"streaming": "no",
|
|
19466
|
+
"pagination": false,
|
|
19467
|
+
"pathParams": [
|
|
19468
|
+
{
|
|
19469
|
+
"name": "key_id",
|
|
19470
|
+
"sdkName": "key_id",
|
|
19471
|
+
"description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
|
|
19472
|
+
}
|
|
19473
|
+
],
|
|
19474
|
+
"query": []
|
|
19475
|
+
},
|
|
19476
|
+
{
|
|
19477
|
+
"resource": "end.publishableKeys",
|
|
19478
|
+
"method": "update",
|
|
19479
|
+
"summary": "Update a publishable key",
|
|
19480
|
+
"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.",
|
|
19481
|
+
"http": "PATCH",
|
|
19482
|
+
"path": "/end/v1/publishable_keys/{key_id}",
|
|
19483
|
+
"streaming": "no",
|
|
19484
|
+
"pagination": false,
|
|
19485
|
+
"pathParams": [
|
|
19486
|
+
{
|
|
19487
|
+
"name": "key_id",
|
|
19488
|
+
"sdkName": "key_id",
|
|
19489
|
+
"description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
|
|
19490
|
+
}
|
|
19491
|
+
],
|
|
19492
|
+
"query": [],
|
|
19493
|
+
"body": {
|
|
19494
|
+
"required": true,
|
|
19495
|
+
"fields": [
|
|
19496
|
+
{
|
|
19497
|
+
"name": "name",
|
|
19498
|
+
"type": "string",
|
|
19499
|
+
"required": false,
|
|
19500
|
+
"description": "New label for the key, 1 to 64 characters."
|
|
19501
|
+
},
|
|
19502
|
+
{
|
|
19503
|
+
"name": "anon_rate_per_min",
|
|
19504
|
+
"type": "integer",
|
|
19505
|
+
"required": false,
|
|
19506
|
+
"description": "Most exchanges of this key per UTC minute, from 1 to 100000; null removes the per-key limit."
|
|
19507
|
+
},
|
|
19508
|
+
{
|
|
19509
|
+
"name": "daily_session_cap",
|
|
19510
|
+
"type": "integer",
|
|
19511
|
+
"required": false,
|
|
19512
|
+
"description": "Most new anonymous visitors this key admits per UTC day, from 0 to 10000000; null removes the limit."
|
|
19513
|
+
},
|
|
19514
|
+
{
|
|
19515
|
+
"name": "daily_spend_cap",
|
|
19516
|
+
"type": "object",
|
|
19517
|
+
"required": false,
|
|
19518
|
+
"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."
|
|
19519
|
+
}
|
|
19520
|
+
]
|
|
19521
|
+
}
|
|
19522
|
+
},
|
|
19523
|
+
{
|
|
19524
|
+
"resource": "end.users",
|
|
19525
|
+
"method": "list",
|
|
19526
|
+
"summary": "List end users",
|
|
19527
|
+
"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.",
|
|
19528
|
+
"http": "GET",
|
|
19529
|
+
"path": "/end/v1/users",
|
|
19530
|
+
"streaming": "no",
|
|
19531
|
+
"pagination": false,
|
|
19532
|
+
"pathParams": [],
|
|
19533
|
+
"query": [
|
|
19534
|
+
{
|
|
19535
|
+
"name": "page_size",
|
|
19536
|
+
"type": "integer",
|
|
19537
|
+
"required": false,
|
|
19538
|
+
"description": "Maximum end users in one page, from 1 to 100; defaults to 50."
|
|
19539
|
+
},
|
|
19540
|
+
{
|
|
19541
|
+
"name": "page_token",
|
|
19542
|
+
"type": "string",
|
|
19543
|
+
"required": false,
|
|
19544
|
+
"description": "next_page from the preceding list response with the same filters; omit for the first page."
|
|
19545
|
+
},
|
|
19546
|
+
{
|
|
19547
|
+
"name": "type",
|
|
19548
|
+
"type": "string",
|
|
19549
|
+
"enum": [
|
|
19550
|
+
"identified",
|
|
19551
|
+
"anonymous"
|
|
19552
|
+
],
|
|
19553
|
+
"required": false,
|
|
19554
|
+
"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."
|
|
19555
|
+
},
|
|
19556
|
+
{
|
|
19557
|
+
"name": "blocked",
|
|
19558
|
+
"type": "boolean",
|
|
19559
|
+
"required": false,
|
|
19560
|
+
"description": "true for blocked end users only, false for end users who are not blocked; omit for both."
|
|
19561
|
+
},
|
|
19562
|
+
{
|
|
19563
|
+
"name": "resource",
|
|
19564
|
+
"type": "string",
|
|
19565
|
+
"required": false,
|
|
19566
|
+
"description": "Only end users of one product, as <type>:<id>, for example content:cnt_0123456789abcdef, agent:agent_123 or application:app_456."
|
|
19567
|
+
},
|
|
19568
|
+
{
|
|
19569
|
+
"name": "q",
|
|
19570
|
+
"type": "string",
|
|
19571
|
+
"required": false,
|
|
19572
|
+
"description": "Only end users whose end user id starts with this prefix, for example cus_; omit for every id."
|
|
19573
|
+
}
|
|
19574
|
+
]
|
|
19575
|
+
},
|
|
19576
|
+
{
|
|
19577
|
+
"resource": "end.users",
|
|
19578
|
+
"method": "delete",
|
|
19579
|
+
"summary": "Delete an end user",
|
|
19580
|
+
"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.",
|
|
19581
|
+
"http": "DELETE",
|
|
19582
|
+
"path": "/end/v1/users/{end_user_id}",
|
|
19583
|
+
"streaming": "no",
|
|
19584
|
+
"pagination": false,
|
|
19585
|
+
"pathParams": [
|
|
19586
|
+
{
|
|
19587
|
+
"name": "end_user_id",
|
|
19588
|
+
"sdkName": "end_user_id",
|
|
19589
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19590
|
+
}
|
|
19591
|
+
],
|
|
19592
|
+
"query": [
|
|
19593
|
+
{
|
|
19594
|
+
"name": "confirm",
|
|
19595
|
+
"type": "string",
|
|
19596
|
+
"required": true,
|
|
19597
|
+
"description": "The end_user_id being deleted, repeated exactly; the service compares it with the path and refuses a mismatch with 400."
|
|
19598
|
+
}
|
|
19599
|
+
]
|
|
19600
|
+
},
|
|
19601
|
+
{
|
|
19602
|
+
"resource": "end.users",
|
|
19603
|
+
"method": "retrieve",
|
|
19604
|
+
"summary": "Get an end user",
|
|
19605
|
+
"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.",
|
|
19606
|
+
"http": "GET",
|
|
19607
|
+
"path": "/end/v1/users/{end_user_id}",
|
|
19608
|
+
"streaming": "no",
|
|
19609
|
+
"pagination": false,
|
|
19610
|
+
"pathParams": [
|
|
19611
|
+
{
|
|
19612
|
+
"name": "end_user_id",
|
|
19613
|
+
"sdkName": "end_user_id",
|
|
19614
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19615
|
+
}
|
|
19616
|
+
],
|
|
19617
|
+
"query": [
|
|
19618
|
+
{
|
|
19619
|
+
"name": "expand",
|
|
19620
|
+
"type": "string",
|
|
19621
|
+
"required": false,
|
|
19622
|
+
"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."
|
|
19623
|
+
}
|
|
19624
|
+
]
|
|
19625
|
+
},
|
|
19626
|
+
{
|
|
19627
|
+
"resource": "end.users",
|
|
19628
|
+
"method": "block",
|
|
19629
|
+
"summary": "Block an end user",
|
|
19630
|
+
"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.",
|
|
19631
|
+
"http": "POST",
|
|
19632
|
+
"path": "/end/v1/users/{end_user_id}/block",
|
|
19633
|
+
"streaming": "no",
|
|
19634
|
+
"pagination": false,
|
|
19635
|
+
"pathParams": [
|
|
19636
|
+
{
|
|
19637
|
+
"name": "end_user_id",
|
|
19638
|
+
"sdkName": "end_user_id",
|
|
19639
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19640
|
+
}
|
|
19641
|
+
],
|
|
19642
|
+
"query": [],
|
|
19643
|
+
"body": {
|
|
19644
|
+
"required": false,
|
|
19645
|
+
"fields": [
|
|
19646
|
+
{
|
|
19647
|
+
"name": "reason",
|
|
19648
|
+
"type": "string",
|
|
19649
|
+
"required": false,
|
|
19650
|
+
"description": "Why the end user is blocked, recorded with the block fact; omit for none."
|
|
19651
|
+
}
|
|
19652
|
+
]
|
|
19653
|
+
}
|
|
19654
|
+
},
|
|
19655
|
+
{
|
|
19656
|
+
"resource": "end.users",
|
|
19657
|
+
"method": "revokeTokens",
|
|
19658
|
+
"summary": "Revoke every token of an end user",
|
|
19659
|
+
"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.",
|
|
19660
|
+
"http": "POST",
|
|
19661
|
+
"path": "/end/v1/users/{end_user_id}/revoke_tokens",
|
|
19662
|
+
"streaming": "no",
|
|
19663
|
+
"pagination": false,
|
|
19664
|
+
"pathParams": [
|
|
19665
|
+
{
|
|
19666
|
+
"name": "end_user_id",
|
|
19667
|
+
"sdkName": "end_user_id",
|
|
19668
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19669
|
+
}
|
|
19670
|
+
],
|
|
19671
|
+
"query": []
|
|
19672
|
+
},
|
|
19673
|
+
{
|
|
19674
|
+
"resource": "end.users",
|
|
19675
|
+
"method": "unblock",
|
|
19676
|
+
"summary": "Unblock an end user",
|
|
19677
|
+
"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.",
|
|
19678
|
+
"http": "POST",
|
|
19679
|
+
"path": "/end/v1/users/{end_user_id}/unblock",
|
|
19680
|
+
"streaming": "no",
|
|
19681
|
+
"pagination": false,
|
|
19682
|
+
"pathParams": [
|
|
19683
|
+
{
|
|
19684
|
+
"name": "end_user_id",
|
|
19685
|
+
"sdkName": "end_user_id",
|
|
19686
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19687
|
+
}
|
|
19688
|
+
],
|
|
19689
|
+
"query": []
|
|
19690
|
+
},
|
|
19691
|
+
{
|
|
19692
|
+
"resource": "end.usage",
|
|
19693
|
+
"method": "retrieve",
|
|
19694
|
+
"summary": "Read end-user usage",
|
|
19695
|
+
"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.",
|
|
19696
|
+
"http": "GET",
|
|
19697
|
+
"path": "/end/v1/users/{end_user_id}/usage",
|
|
19698
|
+
"streaming": "no",
|
|
19699
|
+
"pagination": false,
|
|
19700
|
+
"pathParams": [
|
|
19701
|
+
{
|
|
19702
|
+
"name": "end_user_id",
|
|
19703
|
+
"sdkName": "end_user_id",
|
|
19704
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19705
|
+
}
|
|
19706
|
+
],
|
|
19707
|
+
"query": [
|
|
19708
|
+
{
|
|
19709
|
+
"name": "from",
|
|
19710
|
+
"type": "string",
|
|
19711
|
+
"required": false,
|
|
19712
|
+
"description": "Start of the window as an RFC 3339 time, inclusive; omit for the beginning of the record."
|
|
19713
|
+
},
|
|
19714
|
+
{
|
|
19715
|
+
"name": "to",
|
|
19716
|
+
"type": "string",
|
|
19717
|
+
"required": false,
|
|
19718
|
+
"description": "End of the window as an RFC 3339 time, exclusive; omit for now."
|
|
19719
|
+
}
|
|
19720
|
+
]
|
|
19721
|
+
},
|
|
19722
|
+
{
|
|
19723
|
+
"resource": "events.subscriptions",
|
|
19724
|
+
"method": "list",
|
|
19725
|
+
"summary": "List event subscriptions",
|
|
19726
|
+
"description": "See which subscriptions you still have waiting, for example to avoid subscribing twice to the same run or to find an id to delete. Only subscriptions you created, in your organization, that have not expired are listed. The list is one page of at most limit entries: next_cursor is always null today. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter or a limit outside 1 to 100.",
|
|
19727
|
+
"http": "GET",
|
|
19728
|
+
"path": "/events/v1/subscriptions",
|
|
18934
19729
|
"streaming": "no",
|
|
18935
19730
|
"pagination": false,
|
|
18936
19731
|
"pathParams": [],
|
|
@@ -23550,7 +24345,7 @@ export const operations = [
|
|
|
23550
24345
|
"resource": "model.audio.speech",
|
|
23551
24346
|
"method": "create",
|
|
23552
24347
|
"summary": "Generate speech",
|
|
23553
|
-
"description": "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
|
|
24348
|
+
"description": "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\"}.",
|
|
23554
24349
|
"http": "POST",
|
|
23555
24350
|
"path": "/model/v1/audio/speech",
|
|
23556
24351
|
"streaming": "no",
|
|
@@ -23564,19 +24359,19 @@ export const operations = [
|
|
|
23564
24359
|
"name": "model",
|
|
23565
24360
|
"type": "string",
|
|
23566
24361
|
"required": true,
|
|
23567
|
-
"description": "Speech model id, for example `
|
|
24362
|
+
"description": "Speech model id, for example `aura-2-en`; list candidates with listModels?type=speech. Router support (supported): Verified to take effect."
|
|
23568
24363
|
},
|
|
23569
24364
|
{
|
|
23570
24365
|
"name": "input",
|
|
23571
24366
|
"type": "string",
|
|
23572
24367
|
"required": false,
|
|
23573
|
-
"description": "Text to synthesize, 1 to 4096 characters. `text` and `prompt` are aliases; when several are given, `input` wins. Router support (supported):
|
|
24368
|
+
"description": "Text to synthesize, 1 to 4096 characters. `text` and `prompt` are aliases; when several are given, `input` wins. Router support (supported): input is supported; text/prompt aliases also work."
|
|
23574
24369
|
},
|
|
23575
24370
|
{
|
|
23576
24371
|
"name": "voice",
|
|
23577
24372
|
"type": "object",
|
|
23578
24373
|
"required": false,
|
|
23579
|
-
"description": "Aura speaker name; custom voice objects are rejected by Aura.
|
|
24374
|
+
"description": "Aura speaker name; custom voice objects are rejected by Aura."
|
|
23580
24375
|
},
|
|
23581
24376
|
{
|
|
23582
24377
|
"name": "instructions",
|
|
@@ -23595,7 +24390,7 @@ export const operations = [
|
|
|
23595
24390
|
"pcm"
|
|
23596
24391
|
],
|
|
23597
24392
|
"required": false,
|
|
23598
|
-
"description": "
|
|
24393
|
+
"description": "When omitted the actual upstream format is returned. Aura defaults to mp3; aac returns 400."
|
|
23599
24394
|
},
|
|
23600
24395
|
{
|
|
23601
24396
|
"name": "speed",
|
|
@@ -23622,7 +24417,7 @@ export const operations = [
|
|
|
23622
24417
|
"name": "prompt",
|
|
23623
24418
|
"type": "string",
|
|
23624
24419
|
"required": false,
|
|
23625
|
-
"description": "
|
|
24420
|
+
"description": "Alias for input; input then text take precedence."
|
|
23626
24421
|
},
|
|
23627
24422
|
{
|
|
23628
24423
|
"name": "speaker",
|
|
@@ -23642,7 +24437,7 @@ export const operations = [
|
|
|
23642
24437
|
"ko"
|
|
23643
24438
|
],
|
|
23644
24439
|
"required": false,
|
|
23645
|
-
"description": "
|
|
24440
|
+
"description": "Language code. No speech model currently offered reads it. Aura rejects lang with 400 input_not_representable so omit it."
|
|
23646
24441
|
},
|
|
23647
24442
|
{
|
|
23648
24443
|
"name": "encoding",
|
|
@@ -26919,7 +27714,7 @@ export const operations = [
|
|
|
26919
27714
|
"resource": "organization.notifications.letters",
|
|
26920
27715
|
"method": "create",
|
|
26921
27716
|
"summary": "Send a letter to a person or an agent",
|
|
26922
|
-
"description": "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
|
|
27717
|
+
"description": "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.",
|
|
26923
27718
|
"http": "POST",
|
|
26924
27719
|
"path": "/organization/v1/notifications/letters",
|
|
26925
27720
|
"streaming": "no",
|
|
@@ -28496,7 +29291,7 @@ export const operations = [
|
|
|
28496
29291
|
"resource": "sandbox.sandboxes",
|
|
28497
29292
|
"method": "create",
|
|
28498
29293
|
"summary": "Create sandbox (v2)",
|
|
28499
|
-
"description": "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,
|
|
29294
|
+
"description": "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.",
|
|
28500
29295
|
"http": "POST",
|
|
28501
29296
|
"path": "/sandbox/v1/sandboxes",
|
|
28502
29297
|
"streaming": "no",
|
|
@@ -28540,7 +29335,7 @@ export const operations = [
|
|
|
28540
29335
|
"name": "allow_internet_access",
|
|
28541
29336
|
"type": "boolean",
|
|
28542
29337
|
"required": false,
|
|
28543
|
-
"description": "Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config."
|
|
29338
|
+
"description": "Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config. Not available yet: egress control is not implemented, so any value answers 501 PROVIDER_UNSUPPORTED; omit it (internet access is on by default)."
|
|
28544
29339
|
},
|
|
28545
29340
|
{
|
|
28546
29341
|
"name": "network",
|
|
@@ -28577,13 +29372,13 @@ export const operations = [
|
|
|
28577
29372
|
"type": "array",
|
|
28578
29373
|
"itemType": "object",
|
|
28579
29374
|
"required": false,
|
|
28580
|
-
"description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox."
|
|
29375
|
+
"description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox. Not available yet: volumes are not implemented, so omit this field or send an empty array; any volume answers 501 PROVIDER_UNSUPPORTED."
|
|
28581
29376
|
},
|
|
28582
29377
|
{
|
|
28583
29378
|
"name": "ephemeral",
|
|
28584
29379
|
"type": "boolean",
|
|
28585
29380
|
"required": false,
|
|
28586
|
-
"description": "Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots
|
|
29381
|
+
"description": "Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots). Leaving it out returns INVALID_PARAMS."
|
|
28587
29382
|
},
|
|
28588
29383
|
{
|
|
28589
29384
|
"name": "size",
|
|
@@ -28955,61 +29750,6 @@ export const operations = [
|
|
|
28955
29750
|
}
|
|
28956
29751
|
]
|
|
28957
29752
|
},
|
|
28958
|
-
{
|
|
28959
|
-
"resource": "sandbox.sandboxes",
|
|
28960
|
-
"method": "updateNetwork",
|
|
28961
|
-
"summary": "Update sandbox network",
|
|
28962
|
-
"description": "Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting field clears it.",
|
|
28963
|
-
"http": "PUT",
|
|
28964
|
-
"path": "/sandbox/v1/sandboxes/{sandboxID}/network",
|
|
28965
|
-
"streaming": "no",
|
|
28966
|
-
"pagination": false,
|
|
28967
|
-
"pathParams": [
|
|
28968
|
-
{
|
|
28969
|
-
"name": "sandboxID",
|
|
28970
|
-
"sdkName": "sandboxID",
|
|
28971
|
-
"description": "Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404."
|
|
28972
|
-
}
|
|
28973
|
-
],
|
|
28974
|
-
"query": [],
|
|
28975
|
-
"body": {
|
|
28976
|
-
"required": true,
|
|
28977
|
-
"fields": [
|
|
28978
|
-
{
|
|
28979
|
-
"name": "allowOut",
|
|
28980
|
-
"type": "array",
|
|
28981
|
-
"itemType": "string",
|
|
28982
|
-
"required": false,
|
|
28983
|
-
"description": "List of allowed destinations for egress traffic. Each entry can be a CIDR block (e.g. \"8.8.8.8/32\"), a bare IP address (e.g. \"8.8.8.8\"), or a domain name (e.g. \"example.com\", \"*.example.com\"). Allowed entries always take precedence over denied entries."
|
|
28984
|
-
},
|
|
28985
|
-
{
|
|
28986
|
-
"name": "denyOut",
|
|
28987
|
-
"type": "array",
|
|
28988
|
-
"itemType": "string",
|
|
28989
|
-
"required": false,
|
|
28990
|
-
"description": "List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules."
|
|
28991
|
-
},
|
|
28992
|
-
{
|
|
28993
|
-
"name": "egressProxy",
|
|
28994
|
-
"type": "object",
|
|
28995
|
-
"required": false,
|
|
28996
|
-
"description": "SOCKS5 proxy for sandbox egress. Outbound TCP is tunneled through the proxy after allow/deny filtering; the sandbox is unaware. Domain-matched flows use remote DNS (ATYP=domain)."
|
|
28997
|
-
},
|
|
28998
|
-
{
|
|
28999
|
-
"name": "rules",
|
|
29000
|
-
"type": "object",
|
|
29001
|
-
"required": false,
|
|
29002
|
-
"description": "Per-domain transform rules applied to matching outbound HTTPS requests. Replaces all existing rules when provided. Keys may be exact DNS names or a single leading wildcard (for example, \"*.example.com\"), and are normalized to lowercase on write. Wildcards match subdomains at any depth but not the apex domain; a bare \"*\" is invalid. Exact rules take precedence, followed by the longest matching wildcard suffix, and matching rule sets are not merged. Broad wildcards such as \"*.com\" are allowed and may expose transformed credentials to every matching destination the sandbox contacts. Rules do not grant network access; configure allowOut separately to permit the destination.\n"
|
|
29003
|
-
},
|
|
29004
|
-
{
|
|
29005
|
-
"name": "allow_internet_access",
|
|
29006
|
-
"type": "boolean",
|
|
29007
|
-
"required": false,
|
|
29008
|
-
"description": "Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config."
|
|
29009
|
-
}
|
|
29010
|
-
]
|
|
29011
|
-
}
|
|
29012
|
-
},
|
|
29013
29753
|
{
|
|
29014
29754
|
"resource": "sandbox.sandboxes",
|
|
29015
29755
|
"method": "pause",
|
|
@@ -29885,77 +30625,6 @@ export const operations = [
|
|
|
29885
30625
|
],
|
|
29886
30626
|
"query": []
|
|
29887
30627
|
},
|
|
29888
|
-
{
|
|
29889
|
-
"resource": "sandbox.volumes",
|
|
29890
|
-
"method": "list",
|
|
29891
|
-
"summary": "List team volumes",
|
|
29892
|
-
"description": "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.",
|
|
29893
|
-
"http": "GET",
|
|
29894
|
-
"path": "/sandbox/v1/volumes",
|
|
29895
|
-
"streaming": "no",
|
|
29896
|
-
"pagination": false,
|
|
29897
|
-
"pathParams": [],
|
|
29898
|
-
"query": []
|
|
29899
|
-
},
|
|
29900
|
-
{
|
|
29901
|
-
"resource": "sandbox.volumes",
|
|
29902
|
-
"method": "create",
|
|
29903
|
-
"summary": "Create team volume",
|
|
29904
|
-
"description": "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.",
|
|
29905
|
-
"http": "POST",
|
|
29906
|
-
"path": "/sandbox/v1/volumes",
|
|
29907
|
-
"streaming": "no",
|
|
29908
|
-
"pagination": false,
|
|
29909
|
-
"pathParams": [],
|
|
29910
|
-
"query": [],
|
|
29911
|
-
"body": {
|
|
29912
|
-
"required": true,
|
|
29913
|
-
"fields": [
|
|
29914
|
-
{
|
|
29915
|
-
"name": "name",
|
|
29916
|
-
"type": "string",
|
|
29917
|
-
"required": true,
|
|
29918
|
-
"description": "Volume name, unique within your team. Use one or more ASCII letters, digits, underscores or hyphens."
|
|
29919
|
-
}
|
|
29920
|
-
]
|
|
29921
|
-
}
|
|
29922
|
-
},
|
|
29923
|
-
{
|
|
29924
|
-
"resource": "sandbox.volumes",
|
|
29925
|
-
"method": "delete",
|
|
29926
|
-
"summary": "Delete team volume",
|
|
29927
|
-
"description": "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.",
|
|
29928
|
-
"http": "DELETE",
|
|
29929
|
-
"path": "/sandbox/v1/volumes/{volumeID}",
|
|
29930
|
-
"streaming": "no",
|
|
29931
|
-
"pagination": false,
|
|
29932
|
-
"pathParams": [
|
|
29933
|
-
{
|
|
29934
|
-
"name": "volumeID",
|
|
29935
|
-
"sdkName": "volumeID",
|
|
29936
|
-
"description": "Id of the team volume, the `volumeID` returned by createVolume or listVolumes."
|
|
29937
|
-
}
|
|
29938
|
-
],
|
|
29939
|
-
"query": []
|
|
29940
|
-
},
|
|
29941
|
-
{
|
|
29942
|
-
"resource": "sandbox.volumes",
|
|
29943
|
-
"method": "retrieve",
|
|
29944
|
-
"summary": "Team volume",
|
|
29945
|
-
"description": "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.",
|
|
29946
|
-
"http": "GET",
|
|
29947
|
-
"path": "/sandbox/v1/volumes/{volumeID}",
|
|
29948
|
-
"streaming": "no",
|
|
29949
|
-
"pagination": false,
|
|
29950
|
-
"pathParams": [
|
|
29951
|
-
{
|
|
29952
|
-
"name": "volumeID",
|
|
29953
|
-
"sdkName": "volumeID",
|
|
29954
|
-
"description": "Id of the team volume, the `volumeID` returned by createVolume or listVolumes."
|
|
29955
|
-
}
|
|
29956
|
-
],
|
|
29957
|
-
"query": []
|
|
29958
|
-
},
|
|
29959
30628
|
{
|
|
29960
30629
|
"resource": "search.crawl",
|
|
29961
30630
|
"method": "create",
|