@deepraxis/sdk 0.1.1-dev.92000a0 → 0.1.1-dev.93014f4

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.
@@ -1371,6 +1371,43 @@ export const operations = [
1371
1371
  }
1372
1372
  ]
1373
1373
  },
1374
+ {
1375
+ "resource": "agent.computers.files",
1376
+ "method": "updateContent",
1377
+ "summary": "Write computer file content",
1378
+ "description": "Write the bytes of one existing file on a computer, only if the file is still the version you read.\n\nSend the raw bytes as the body (at most 16 MiB) and the version you edited in `If-Match`: the `version` field of the file listing (`<size>-<mtimeMs>`). The file must already exist; the write replaces it whole and keeps its permissions. A request without `If-Match` answers 428 FILE_VERSION_REQUIRED and nothing is written. When the file has changed since that version, the answer is 412 FILE_VERSION_MISMATCH with `error.current_version`, and nothing is written: read the file again, redo the edit and write with the new version. The version is checked against the file's current size and modification time, then the content digest is bound into the write itself, so a change that lands while the bytes are being written is refused instead of overwritten. Paths under /attachments and /skills are read-only (403 READ_ONLY). A successful write answers the new path, size, mtime and version; use that version for the next write.",
1379
+ "http": "PUT",
1380
+ "path": "/agent/v1/computers/{computer_id}/files/content",
1381
+ "streaming": "no",
1382
+ "pagination": false,
1383
+ "pathParams": [
1384
+ {
1385
+ "name": "computer_id",
1386
+ "sdkName": "computer_id",
1387
+ "description": "Computer id from computer creation or listing; a computer another tenant owns is not found."
1388
+ }
1389
+ ],
1390
+ "query": [
1391
+ {
1392
+ "name": "path",
1393
+ "type": "string",
1394
+ "required": true,
1395
+ "description": "Absolute path of the existing file on the computer, or a /workspace/ relative path."
1396
+ }
1397
+ ],
1398
+ "headers": [
1399
+ {
1400
+ "name": "If-Match",
1401
+ "type": "string",
1402
+ "required": true,
1403
+ "description": "The file version you edited, as the file listing gives it (<size>-<mtimeMs>); a quoted value is accepted."
1404
+ }
1405
+ ],
1406
+ "body": {
1407
+ "required": true,
1408
+ "fields": []
1409
+ }
1410
+ },
1374
1411
  {
1375
1412
  "resource": "agent.computers.files.convert",
1376
1413
  "method": "create",
@@ -4007,7 +4044,7 @@ export const operations = [
4007
4044
  "resource": "application.workers.grants",
4008
4045
  "method": "create",
4009
4046
  "summary": "Create grant",
4010
- "description": "Record access to an organization-owned database or knowledge base, all organization files (files, id *), or models (models, id *, read only). Each resource and optional alias must be unique within this Worker. Foreign and missing resources both return RESOURCE_NOT_FOUND (404); an unavailable resource service returns PROVIDER_CAPACITY (503, retryable).",
4047
+ "description": "Record access to an organization-owned database, knowledge base or agent, all organization files (files, id *), or models (models, id *, read only). Once a Worker has any grant, its platform calls reach only what its grants name; an agent grant at read_write is what lets it issue that agent's customer grant codes. Each resource and optional alias must be unique within this Worker. Foreign and missing resources both return RESOURCE_NOT_FOUND (404); an unavailable resource service returns PROVIDER_CAPACITY (503, retryable).",
4011
4048
  "http": "POST",
4012
4049
  "path": "/application/v1/workers/{worker_id}/grants",
4013
4050
  "streaming": "no",
@@ -4542,6 +4579,14 @@ export const operations = [
4542
4579
  "description": "true checks compatibility without persisting and may omit If-Match; omitted or false performs a normal update."
4543
4580
  }
4544
4581
  ],
4582
+ "headers": [
4583
+ {
4584
+ "name": "If-Match",
4585
+ "type": "string",
4586
+ "required": false,
4587
+ "description": "Required for normal updates; optional for dry_run=true but still validated when supplied. * matches any existing representation; otherwise supply the current revision ETag."
4588
+ }
4589
+ ],
4545
4590
  "body": {
4546
4591
  "required": true,
4547
4592
  "fields": [
@@ -4865,6 +4910,14 @@ export const operations = [
4865
4910
  }
4866
4911
  ],
4867
4912
  "query": [],
4913
+ "headers": [
4914
+ {
4915
+ "name": "If-Match",
4916
+ "type": "string",
4917
+ "required": false,
4918
+ "description": "Optional current revision or *; checked when supplied, with * matching any existing representation."
4919
+ }
4920
+ ],
4868
4921
  "body": {
4869
4922
  "required": true,
4870
4923
  "fields": [
@@ -4905,6 +4958,14 @@ export const operations = [
4905
4958
  }
4906
4959
  ],
4907
4960
  "query": [],
4961
+ "headers": [
4962
+ {
4963
+ "name": "webhook-id",
4964
+ "type": "string",
4965
+ "required": false,
4966
+ "description": "Optional deduplication identifier, retained for 24 hours within this trigger."
4967
+ }
4968
+ ],
4908
4969
  "body": {
4909
4970
  "required": false,
4910
4971
  "fields": []
@@ -5432,6 +5493,14 @@ export const operations = [
5432
5493
  "required": false,
5433
5494
  "description": "Opaque next_cursor from the previous page; keep the original filters when paging."
5434
5495
  }
5496
+ ],
5497
+ "headers": [
5498
+ {
5499
+ "name": "Last-Event-ID",
5500
+ "type": "string",
5501
+ "required": false,
5502
+ "description": "SSE resume cursor; read entries after this event. Takes precedence over cursor and applies only to streams."
5503
+ }
5435
5504
  ]
5436
5505
  },
5437
5506
  {
@@ -5463,6 +5532,14 @@ export const operations = [
5463
5532
  "required": false,
5464
5533
  "description": "Opaque next_cursor from the previous page; keep the original filters when paging."
5465
5534
  }
5535
+ ],
5536
+ "headers": [
5537
+ {
5538
+ "name": "Last-Event-ID",
5539
+ "type": "string",
5540
+ "required": false,
5541
+ "description": "SSE resume cursor; read entries after this event. Takes precedence over cursor and applies only to streams."
5542
+ }
5466
5543
  ]
5467
5544
  },
5468
5545
  {
@@ -5841,6 +5918,14 @@ export const operations = [
5841
5918
  }
5842
5919
  ],
5843
5920
  "query": [],
5921
+ "headers": [
5922
+ {
5923
+ "name": "If-Match",
5924
+ "type": "string",
5925
+ "required": true,
5926
+ "description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
5927
+ }
5928
+ ],
5844
5929
  "body": {
5845
5930
  "required": true,
5846
5931
  "fields": [
@@ -6501,6 +6586,14 @@ export const operations = [
6501
6586
  "pagination": false,
6502
6587
  "pathParams": [],
6503
6588
  "query": [],
6589
+ "headers": [
6590
+ {
6591
+ "name": "Accept-Language",
6592
+ "type": "string",
6593
+ "required": false,
6594
+ "description": "Language for the readable description; supports Chinese (default) and English by language quality preference."
6595
+ }
6596
+ ],
6504
6597
  "body": {
6505
6598
  "required": true,
6506
6599
  "fields": [
@@ -6572,6 +6665,14 @@ export const operations = [
6572
6665
  }
6573
6666
  ],
6574
6667
  "query": [],
6668
+ "headers": [
6669
+ {
6670
+ "name": "If-Match",
6671
+ "type": "string",
6672
+ "required": true,
6673
+ "description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
6674
+ }
6675
+ ],
6575
6676
  "body": {
6576
6677
  "required": true,
6577
6678
  "fields": [
@@ -6987,6 +7088,14 @@ export const operations = [
6987
7088
  }
6988
7089
  ],
6989
7090
  "query": [],
7091
+ "headers": [
7092
+ {
7093
+ "name": "If-Match",
7094
+ "type": "string",
7095
+ "required": true,
7096
+ "description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
7097
+ }
7098
+ ],
6990
7099
  "body": {
6991
7100
  "required": true,
6992
7101
  "fields": [
@@ -8764,6 +8873,14 @@ export const operations = [
8764
8873
  "pagination": false,
8765
8874
  "pathParams": [],
8766
8875
  "query": [],
8876
+ "headers": [
8877
+ {
8878
+ "name": "Origin",
8879
+ "type": "string",
8880
+ "required": false,
8881
+ "description": "Browser page origin the playback is opened from, for example https://school.example.com. Required when the content's allowed_origins is not empty; it must then match one of its entries exactly."
8882
+ }
8883
+ ],
8767
8884
  "body": {
8768
8885
  "required": true,
8769
8886
  "fields": [
@@ -10498,6 +10615,14 @@ export const operations = [
10498
10615
  "pagination": false,
10499
10616
  "pathParams": [],
10500
10617
  "query": [],
10618
+ "headers": [
10619
+ {
10620
+ "name": "Origin",
10621
+ "type": "string",
10622
+ "required": false,
10623
+ "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."
10624
+ }
10625
+ ],
10501
10626
  "body": {
10502
10627
  "required": true,
10503
10628
  "fields": [
@@ -11990,6 +12115,20 @@ export const operations = [
11990
12115
  "required": false,
11991
12116
  "description": "Comma-separated input columns; keys outside this set are ignored."
11992
12117
  }
12118
+ ],
12119
+ "headers": [
12120
+ {
12121
+ "name": "Range-Unit",
12122
+ "type": "string",
12123
+ "required": false,
12124
+ "description": "items; other units cause Range to be ignored."
12125
+ },
12126
+ {
12127
+ "name": "Prefer",
12128
+ "type": "string",
12129
+ "required": false,
12130
+ "description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
12131
+ }
11993
12132
  ]
11994
12133
  },
11995
12134
  {
@@ -12080,6 +12219,20 @@ export const operations = [
12080
12219
  "required": false,
12081
12220
  "description": "Comma-separated input columns; keys outside this set are ignored."
12082
12221
  }
12222
+ ],
12223
+ "headers": [
12224
+ {
12225
+ "name": "Range-Unit",
12226
+ "type": "string",
12227
+ "required": false,
12228
+ "description": "items; other units cause Range to be ignored."
12229
+ },
12230
+ {
12231
+ "name": "Prefer",
12232
+ "type": "string",
12233
+ "required": false,
12234
+ "description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
12235
+ }
12083
12236
  ]
12084
12237
  },
12085
12238
  {
@@ -12170,6 +12323,20 @@ export const operations = [
12170
12323
  "required": false,
12171
12324
  "description": "Comma-separated input columns; keys outside this set are ignored."
12172
12325
  }
12326
+ ],
12327
+ "headers": [
12328
+ {
12329
+ "name": "Range-Unit",
12330
+ "type": "string",
12331
+ "required": false,
12332
+ "description": "items; other units cause Range to be ignored."
12333
+ },
12334
+ {
12335
+ "name": "Prefer",
12336
+ "type": "string",
12337
+ "required": false,
12338
+ "description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
12339
+ }
12173
12340
  ]
12174
12341
  },
12175
12342
  {
@@ -12261,6 +12428,20 @@ export const operations = [
12261
12428
  "description": "Comma-separated input columns; keys outside this set are ignored."
12262
12429
  }
12263
12430
  ],
12431
+ "headers": [
12432
+ {
12433
+ "name": "Range-Unit",
12434
+ "type": "string",
12435
+ "required": false,
12436
+ "description": "items; other units cause Range to be ignored."
12437
+ },
12438
+ {
12439
+ "name": "Prefer",
12440
+ "type": "string",
12441
+ "required": false,
12442
+ "description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
12443
+ }
12444
+ ],
12264
12445
  "body": {
12265
12446
  "required": true,
12266
12447
  "fields": []
@@ -12355,6 +12536,20 @@ export const operations = [
12355
12536
  "description": "Comma-separated input columns; keys outside this set are ignored."
12356
12537
  }
12357
12538
  ],
12539
+ "headers": [
12540
+ {
12541
+ "name": "Range-Unit",
12542
+ "type": "string",
12543
+ "required": false,
12544
+ "description": "items; other units cause Range to be ignored."
12545
+ },
12546
+ {
12547
+ "name": "Prefer",
12548
+ "type": "string",
12549
+ "required": false,
12550
+ "description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
12551
+ }
12552
+ ],
12358
12553
  "body": {
12359
12554
  "required": true,
12360
12555
  "fields": []
@@ -17897,6 +18092,20 @@ export const operations = [
17897
18092
  }
17898
18093
  ],
17899
18094
  "query": [],
18095
+ "headers": [
18096
+ {
18097
+ "name": "X-Unique-Upload-Id",
18098
+ "type": "string",
18099
+ "required": false,
18100
+ "description": "Stable identifier shared by every chunk of this upload."
18101
+ },
18102
+ {
18103
+ "name": "Content-Range",
18104
+ "type": "string",
18105
+ "required": false,
18106
+ "description": "Chunk byte range: bytes start-end/total; total may be -1 until the final chunk."
18107
+ }
18108
+ ],
17900
18109
  "body": {
17901
18110
  "required": true,
17902
18111
  "fields": [
@@ -20186,6 +20395,14 @@ export const operations = [
20186
20395
  "pagination": false,
20187
20396
  "pathParams": [],
20188
20397
  "query": [],
20398
+ "headers": [
20399
+ {
20400
+ "name": "X-OpenRouter-Metadata",
20401
+ "type": "string",
20402
+ "required": false,
20403
+ "description": "OpenRouter-style request header that asks for routing metadata in the response. It is accepted for compatibility and has no effect: the routing metadata is not returned."
20404
+ }
20405
+ ],
20189
20406
  "body": {
20190
20407
  "required": true,
20191
20408
  "fields": [
@@ -26187,6 +26404,12 @@ export const operations = [
26187
26404
  "type": "string",
26188
26405
  "required": false,
26189
26406
  "description": "The operating-system version the app reports, at most 64 characters; it is display only and can be omitted."
26407
+ },
26408
+ {
26409
+ "name": "device_key",
26410
+ "type": "string",
26411
+ "required": false,
26412
+ "description": "A stable key the app reads from the phone itself (Android: ANDROID_ID), 8 to 128 characters of letters, digits, underscore and hyphen; any other value answers INVALID_PARAMS. The service keeps only a hash scoped to the organization and platform. When the same organization already has a device with this key, even a disconnected one, the claim reuses that device: the same device_id comes back with a new credential, the old connection is closed, and its name is kept. Omit it and every claim registers a new device."
26190
26413
  }
26191
26414
  ]
26192
26415
  }
@@ -2374,6 +2374,12 @@ export declare function createAgent(transport: Transport): {
2374
2374
  fallback?: "content";
2375
2375
  skipped?: boolean;
2376
2376
  }>;
2377
+ updateContent: (options: import("./core/transport.js").CallOptions<Types.UpdateComputerFileContentData>) => Promise<{
2378
+ path: string;
2379
+ size: number;
2380
+ mtime: string | null;
2381
+ version: string;
2382
+ }>;
2377
2383
  };
2378
2384
  leases: {
2379
2385
  delete: (options: import("./core/transport.js").CallOptions<Types.ReleaseComputerLeaseData>) => Promise<{
@@ -69,6 +69,7 @@ export function createAgent(transport) {
69
69
  list: bind(transport, sdk.computersFilesList),
70
70
  retrieveContent: bind(transport, sdk.computersFilesContent),
71
71
  retrievePreview: bind(transport, sdk.previewComputerFile),
72
+ updateContent: bind(transport, sdk.updateComputerFileContent),
72
73
  },
73
74
  leases: {
74
75
  delete: bind(transport, sdk.releaseComputerLease),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.1.1-dev.92000a0",
3
+ "version": "0.1.1-dev.93014f4",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {