@deepraxis/sdk 0.2.0-dev.c1f0e29 → 0.2.0-dev.c84516a
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 +9 -11
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +28 -40
- package/dist/generated/sdk.gen.js +63 -202
- package/dist/generated/types.gen.d.ts +298 -303
- package/dist/operations.generated.js +215 -141
- package/dist/resources.generated.d.ts +5 -7
- package/dist/resources.generated.js +5 -7
- package/package.json +1 -1
|
@@ -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",
|
|
@@ -9430,7 +9630,7 @@ export const operations = [
|
|
|
9430
9630
|
"resource": "content.playbackSessions",
|
|
9431
9631
|
"method": "create",
|
|
9432
9632
|
"summary": "Open a playback session",
|
|
9433
|
-
"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.",
|
|
9434
9634
|
"http": "POST",
|
|
9435
9635
|
"path": "/content/v1/playback/sessions",
|
|
9436
9636
|
"streaming": "no",
|
|
@@ -10520,7 +10720,7 @@ export const operations = [
|
|
|
10520
10720
|
"resource": "crm.properties",
|
|
10521
10721
|
"method": "list",
|
|
10522
10722
|
"summary": "List properties",
|
|
10523
|
-
"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.",
|
|
10524
10724
|
"http": "GET",
|
|
10525
10725
|
"path": "/crm/v1/properties/{objectType}",
|
|
10526
10726
|
"streaming": "no",
|
|
@@ -11577,7 +11777,7 @@ export const operations = [
|
|
|
11577
11777
|
"resource": "customer.publishableKeys",
|
|
11578
11778
|
"method": "delete",
|
|
11579
11779
|
"summary": "Delete a publishable key",
|
|
11580
|
-
"description": "Deprecated: use DELETE /end/v1/publishable_keys/{key_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nDelete a publishable key, closing that anonymous admittance for good. A page that still carries the plaintext key can no longer exchange it; any anonymous sign-ins it already made keep working until their own sign-in expires, so end users already admitted are not signed out by this call. Get the key id from the publishable key list, not from the plaintext value (only its hash is stored). An unknown or foreign id answers 404
|
|
11780
|
+
"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.",
|
|
11581
11781
|
"http": "DELETE",
|
|
11582
11782
|
"path": "/customer/v1/publishable_keys/{key_id}",
|
|
11583
11783
|
"streaming": "no",
|
|
@@ -12027,7 +12227,7 @@ export const operations = [
|
|
|
12027
12227
|
"resource": "cut.projects.exports",
|
|
12028
12228
|
"method": "create",
|
|
12029
12229
|
"summary": "Create video export",
|
|
12030
|
-
"description": "Start an asynchronous video export from the project
|
|
12230
|
+
"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.",
|
|
12031
12231
|
"http": "POST",
|
|
12032
12232
|
"path": "/cut/v1/projects/{project_id}/exports",
|
|
12033
12233
|
"streaming": "no",
|
|
@@ -12065,7 +12265,7 @@ export const operations = [
|
|
|
12065
12265
|
"name": "binding",
|
|
12066
12266
|
"type": "string",
|
|
12067
12267
|
"required": false,
|
|
12068
|
-
"description": "Writable binding name
|
|
12268
|
+
"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."
|
|
12069
12269
|
},
|
|
12070
12270
|
{
|
|
12071
12271
|
"name": "revision",
|
|
@@ -18257,8 +18457,8 @@ export const operations = [
|
|
|
18257
18457
|
{
|
|
18258
18458
|
"resource": "devops.pullRequests",
|
|
18259
18459
|
"method": "overrideGate",
|
|
18260
|
-
"summary": "Record a
|
|
18261
|
-
"description": "Record the one exception to the fail-closed merge gate: a
|
|
18460
|
+
"summary": "Record a listed position's exception to the merge gate",
|
|
18461
|
+
"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\"}.",
|
|
18262
18462
|
"http": "POST",
|
|
18263
18463
|
"path": "/devops/v1/pull-requests/{id}:overrideGate",
|
|
18264
18464
|
"streaming": "no",
|
|
@@ -18291,7 +18491,7 @@ export const operations = [
|
|
|
18291
18491
|
"name": "ticket",
|
|
18292
18492
|
"type": "string",
|
|
18293
18493
|
"required": true,
|
|
18294
|
-
"description": "The ticket the
|
|
18494
|
+
"description": "The ticket the authorization is written on, as #<number> or its URL."
|
|
18295
18495
|
},
|
|
18296
18496
|
{
|
|
18297
18497
|
"name": "reason",
|
|
@@ -18303,7 +18503,7 @@ export const operations = [
|
|
|
18303
18503
|
"name": "authorizedBy",
|
|
18304
18504
|
"type": "string",
|
|
18305
18505
|
"required": true,
|
|
18306
|
-
"description": "The
|
|
18506
|
+
"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)."
|
|
18307
18507
|
}
|
|
18308
18508
|
]
|
|
18309
18509
|
}
|
|
@@ -19223,7 +19423,7 @@ export const operations = [
|
|
|
19223
19423
|
"resource": "end.publishableKeys",
|
|
19224
19424
|
"method": "delete",
|
|
19225
19425
|
"summary": "Delete a publishable key",
|
|
19226
|
-
"description": "Delete a publishable key, closing that anonymous admittance for good. A page that still carries the plaintext key can no longer exchange it; any anonymous sign-ins it already made keep working until their own sign-in expires, so end users already admitted are not signed out by this call. Get the key id from the publishable key list, not from the plaintext value (only its hash is stored). An unknown or foreign id answers 404
|
|
19426
|
+
"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.",
|
|
19227
19427
|
"http": "DELETE",
|
|
19228
19428
|
"path": "/end/v1/publishable_keys/{key_id}",
|
|
19229
19429
|
"streaming": "no",
|
|
@@ -27478,7 +27678,7 @@ export const operations = [
|
|
|
27478
27678
|
"resource": "organization.notifications.letters",
|
|
27479
27679
|
"method": "create",
|
|
27480
27680
|
"summary": "Send a letter to a person or an agent",
|
|
27481
|
-
"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
|
|
27681
|
+
"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.",
|
|
27482
27682
|
"http": "POST",
|
|
27483
27683
|
"path": "/organization/v1/notifications/letters",
|
|
27484
27684
|
"streaming": "no",
|
|
@@ -29055,7 +29255,7 @@ export const operations = [
|
|
|
29055
29255
|
"resource": "sandbox.sandboxes",
|
|
29056
29256
|
"method": "create",
|
|
29057
29257
|
"summary": "Create sandbox (v2)",
|
|
29058
|
-
"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,
|
|
29258
|
+
"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.",
|
|
29059
29259
|
"http": "POST",
|
|
29060
29260
|
"path": "/sandbox/v1/sandboxes",
|
|
29061
29261
|
"streaming": "no",
|
|
@@ -29099,7 +29299,7 @@ export const operations = [
|
|
|
29099
29299
|
"name": "allow_internet_access",
|
|
29100
29300
|
"type": "boolean",
|
|
29101
29301
|
"required": false,
|
|
29102
|
-
"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."
|
|
29302
|
+
"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)."
|
|
29103
29303
|
},
|
|
29104
29304
|
{
|
|
29105
29305
|
"name": "network",
|
|
@@ -29136,13 +29336,13 @@ export const operations = [
|
|
|
29136
29336
|
"type": "array",
|
|
29137
29337
|
"itemType": "object",
|
|
29138
29338
|
"required": false,
|
|
29139
|
-
"description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox."
|
|
29339
|
+
"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."
|
|
29140
29340
|
},
|
|
29141
29341
|
{
|
|
29142
29342
|
"name": "ephemeral",
|
|
29143
29343
|
"type": "boolean",
|
|
29144
29344
|
"required": false,
|
|
29145
|
-
"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
|
|
29345
|
+
"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."
|
|
29146
29346
|
},
|
|
29147
29347
|
{
|
|
29148
29348
|
"name": "size",
|
|
@@ -29514,61 +29714,6 @@ export const operations = [
|
|
|
29514
29714
|
}
|
|
29515
29715
|
]
|
|
29516
29716
|
},
|
|
29517
|
-
{
|
|
29518
|
-
"resource": "sandbox.sandboxes",
|
|
29519
|
-
"method": "updateNetwork",
|
|
29520
|
-
"summary": "Update sandbox network",
|
|
29521
|
-
"description": "Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting field clears it.",
|
|
29522
|
-
"http": "PUT",
|
|
29523
|
-
"path": "/sandbox/v1/sandboxes/{sandboxID}/network",
|
|
29524
|
-
"streaming": "no",
|
|
29525
|
-
"pagination": false,
|
|
29526
|
-
"pathParams": [
|
|
29527
|
-
{
|
|
29528
|
-
"name": "sandboxID",
|
|
29529
|
-
"sdkName": "sandboxID",
|
|
29530
|
-
"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."
|
|
29531
|
-
}
|
|
29532
|
-
],
|
|
29533
|
-
"query": [],
|
|
29534
|
-
"body": {
|
|
29535
|
-
"required": true,
|
|
29536
|
-
"fields": [
|
|
29537
|
-
{
|
|
29538
|
-
"name": "allowOut",
|
|
29539
|
-
"type": "array",
|
|
29540
|
-
"itemType": "string",
|
|
29541
|
-
"required": false,
|
|
29542
|
-
"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."
|
|
29543
|
-
},
|
|
29544
|
-
{
|
|
29545
|
-
"name": "denyOut",
|
|
29546
|
-
"type": "array",
|
|
29547
|
-
"itemType": "string",
|
|
29548
|
-
"required": false,
|
|
29549
|
-
"description": "List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules."
|
|
29550
|
-
},
|
|
29551
|
-
{
|
|
29552
|
-
"name": "egressProxy",
|
|
29553
|
-
"type": "object",
|
|
29554
|
-
"required": false,
|
|
29555
|
-
"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)."
|
|
29556
|
-
},
|
|
29557
|
-
{
|
|
29558
|
-
"name": "rules",
|
|
29559
|
-
"type": "object",
|
|
29560
|
-
"required": false,
|
|
29561
|
-
"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"
|
|
29562
|
-
},
|
|
29563
|
-
{
|
|
29564
|
-
"name": "allow_internet_access",
|
|
29565
|
-
"type": "boolean",
|
|
29566
|
-
"required": false,
|
|
29567
|
-
"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."
|
|
29568
|
-
}
|
|
29569
|
-
]
|
|
29570
|
-
}
|
|
29571
|
-
},
|
|
29572
29717
|
{
|
|
29573
29718
|
"resource": "sandbox.sandboxes",
|
|
29574
29719
|
"method": "pause",
|
|
@@ -30444,77 +30589,6 @@ export const operations = [
|
|
|
30444
30589
|
],
|
|
30445
30590
|
"query": []
|
|
30446
30591
|
},
|
|
30447
|
-
{
|
|
30448
|
-
"resource": "sandbox.volumes",
|
|
30449
|
-
"method": "list",
|
|
30450
|
-
"summary": "List team volumes",
|
|
30451
|
-
"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.",
|
|
30452
|
-
"http": "GET",
|
|
30453
|
-
"path": "/sandbox/v1/volumes",
|
|
30454
|
-
"streaming": "no",
|
|
30455
|
-
"pagination": false,
|
|
30456
|
-
"pathParams": [],
|
|
30457
|
-
"query": []
|
|
30458
|
-
},
|
|
30459
|
-
{
|
|
30460
|
-
"resource": "sandbox.volumes",
|
|
30461
|
-
"method": "create",
|
|
30462
|
-
"summary": "Create team volume",
|
|
30463
|
-
"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.",
|
|
30464
|
-
"http": "POST",
|
|
30465
|
-
"path": "/sandbox/v1/volumes",
|
|
30466
|
-
"streaming": "no",
|
|
30467
|
-
"pagination": false,
|
|
30468
|
-
"pathParams": [],
|
|
30469
|
-
"query": [],
|
|
30470
|
-
"body": {
|
|
30471
|
-
"required": true,
|
|
30472
|
-
"fields": [
|
|
30473
|
-
{
|
|
30474
|
-
"name": "name",
|
|
30475
|
-
"type": "string",
|
|
30476
|
-
"required": true,
|
|
30477
|
-
"description": "Volume name, unique within your team. Use one or more ASCII letters, digits, underscores or hyphens."
|
|
30478
|
-
}
|
|
30479
|
-
]
|
|
30480
|
-
}
|
|
30481
|
-
},
|
|
30482
|
-
{
|
|
30483
|
-
"resource": "sandbox.volumes",
|
|
30484
|
-
"method": "delete",
|
|
30485
|
-
"summary": "Delete team volume",
|
|
30486
|
-
"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.",
|
|
30487
|
-
"http": "DELETE",
|
|
30488
|
-
"path": "/sandbox/v1/volumes/{volumeID}",
|
|
30489
|
-
"streaming": "no",
|
|
30490
|
-
"pagination": false,
|
|
30491
|
-
"pathParams": [
|
|
30492
|
-
{
|
|
30493
|
-
"name": "volumeID",
|
|
30494
|
-
"sdkName": "volumeID",
|
|
30495
|
-
"description": "Id of the team volume, the `volumeID` returned by createVolume or listVolumes."
|
|
30496
|
-
}
|
|
30497
|
-
],
|
|
30498
|
-
"query": []
|
|
30499
|
-
},
|
|
30500
|
-
{
|
|
30501
|
-
"resource": "sandbox.volumes",
|
|
30502
|
-
"method": "retrieve",
|
|
30503
|
-
"summary": "Team volume",
|
|
30504
|
-
"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.",
|
|
30505
|
-
"http": "GET",
|
|
30506
|
-
"path": "/sandbox/v1/volumes/{volumeID}",
|
|
30507
|
-
"streaming": "no",
|
|
30508
|
-
"pagination": false,
|
|
30509
|
-
"pathParams": [
|
|
30510
|
-
{
|
|
30511
|
-
"name": "volumeID",
|
|
30512
|
-
"sdkName": "volumeID",
|
|
30513
|
-
"description": "Id of the team volume, the `volumeID` returned by createVolume or listVolumes."
|
|
30514
|
-
}
|
|
30515
|
-
],
|
|
30516
|
-
"query": []
|
|
30517
|
-
},
|
|
30518
30592
|
{
|
|
30519
30593
|
"resource": "search.crawl",
|
|
30520
30594
|
"method": "create",
|
|
@@ -6049,6 +6049,11 @@ export declare function createApplication(transport: Transport): {
|
|
|
6049
6049
|
list: (options: import("./core/transport.js").CallOptions<Types.ApplicationListGrantsData>) => Promise<Types.ApplicationGrant[]>;
|
|
6050
6050
|
};
|
|
6051
6051
|
list: (options?: import("./core/transport.js").CallOptions<Types.ApplicationListWorkersData> | undefined) => Promise<import("./automation.js").Page<Types.ApplicationWorker>>;
|
|
6052
|
+
logs: {
|
|
6053
|
+
keys: (options: import("./core/transport.js").CallOptions<Types.ApplicationListWorkerLogKeysData>) => Promise<Types.ApplicationTelemetryKey[]>;
|
|
6054
|
+
query: (options: import("./core/transport.js").CallOptions<Types.ApplicationQueryWorkerLogsData>) => Promise<Types.ApplicationTelemetryQueryResult>;
|
|
6055
|
+
values: (options: import("./core/transport.js").CallOptions<Types.ApplicationListWorkerLogValuesData>) => Promise<Types.ApplicationTelemetryValue[]>;
|
|
6056
|
+
};
|
|
6052
6057
|
restore: (options: import("./core/transport.js").CallOptions<Types.ApplicationRestoreWorkerData>) => Promise<Types.ApplicationWorker>;
|
|
6053
6058
|
retrieve: (options: import("./core/transport.js").CallOptions<Types.ApplicationGetWorkerData>) => Promise<Types.ApplicationWorkerDetail>;
|
|
6054
6059
|
secrets: {
|
|
@@ -9230,7 +9235,6 @@ export declare function createSandbox(transport: Transport): {
|
|
|
9230
9235
|
update: (options: import("./core/transport.js").CallOptions<Types.RenameSandboxData>) => Promise<Types.SandboxSandboxDetail & {
|
|
9231
9236
|
name: string;
|
|
9232
9237
|
}>;
|
|
9233
|
-
updateNetwork: (options: import("./core/transport.js").CallOptions<Types.PutSandboxV1SandboxesBySandboxIdNetworkData>) => Promise<void>;
|
|
9234
9238
|
upgrade: {
|
|
9235
9239
|
create: (options: import("./core/transport.js").CallOptions<Types.UpgradeSandboxData>) => Promise<Types.SandboxSandboxDetail>;
|
|
9236
9240
|
};
|
|
@@ -9278,12 +9282,6 @@ export declare function createSandbox(transport: Transport): {
|
|
|
9278
9282
|
list: (options: import("./core/transport.js").CallOptions<Types.ListTemplateTagsData>) => Promise<Types.SandboxTemplateTag[]>;
|
|
9279
9283
|
};
|
|
9280
9284
|
};
|
|
9281
|
-
volumes: {
|
|
9282
|
-
create: (options: import("./core/transport.js").CallOptions<Types.PostSandboxV1VolumesData>) => Promise<Types.SandboxVolumeAndToken>;
|
|
9283
|
-
delete: (options: import("./core/transport.js").CallOptions<Types.DeleteSandboxV1VolumesByVolumeIdData>) => Promise<void>;
|
|
9284
|
-
list: (options?: import("./core/transport.js").CallOptions<Types.GetSandboxV1VolumesData> | undefined) => Promise<Types.SandboxVolume[]>;
|
|
9285
|
-
retrieve: (options: import("./core/transport.js").CallOptions<Types.GetSandboxV1VolumesByVolumeIdData>) => Promise<Types.SandboxVolumeAndToken>;
|
|
9286
|
-
};
|
|
9287
9285
|
};
|
|
9288
9286
|
export declare function createSearch(transport: Transport): {
|
|
9289
9287
|
crawl: {
|
|
@@ -412,6 +412,11 @@ export function createApplication(transport) {
|
|
|
412
412
|
list: bind(transport, sdk.applicationListGrants),
|
|
413
413
|
},
|
|
414
414
|
list: bindPage(transport, sdk.applicationListWorkers),
|
|
415
|
+
logs: {
|
|
416
|
+
keys: bind(transport, sdk.applicationListWorkerLogKeys),
|
|
417
|
+
query: bind(transport, sdk.applicationQueryWorkerLogs),
|
|
418
|
+
values: bind(transport, sdk.applicationListWorkerLogValues),
|
|
419
|
+
},
|
|
415
420
|
restore: bind(transport, sdk.applicationRestoreWorker),
|
|
416
421
|
retrieve: bind(transport, sdk.applicationGetWorker),
|
|
417
422
|
secrets: {
|
|
@@ -1774,7 +1779,6 @@ export function createSandbox(transport) {
|
|
|
1774
1779
|
},
|
|
1775
1780
|
timeout: bind(transport, sdk.postSandboxV1SandboxesBySandboxIdTimeout),
|
|
1776
1781
|
update: bind(transport, sdk.renameSandbox),
|
|
1777
|
-
updateNetwork: bind(transport, sdk.putSandboxV1SandboxesBySandboxIdNetwork),
|
|
1778
1782
|
upgrade: {
|
|
1779
1783
|
create: bind(transport, sdk.upgradeSandbox),
|
|
1780
1784
|
},
|
|
@@ -1803,12 +1807,6 @@ export function createSandbox(transport) {
|
|
|
1803
1807
|
list: bind(transport, sdk.listTemplateTags),
|
|
1804
1808
|
},
|
|
1805
1809
|
},
|
|
1806
|
-
volumes: {
|
|
1807
|
-
create: bind(transport, sdk.postSandboxV1Volumes),
|
|
1808
|
-
delete: bind(transport, sdk.deleteSandboxV1VolumesByVolumeId),
|
|
1809
|
-
list: bind(transport, sdk.getSandboxV1Volumes),
|
|
1810
|
-
retrieve: bind(transport, sdk.getSandboxV1VolumesByVolumeId),
|
|
1811
|
-
},
|
|
1812
1810
|
};
|
|
1813
1811
|
}
|
|
1814
1812
|
export function createSearch(transport) {
|