@deepraxis/sdk 0.1.1-dev.da4893e → 0.1.1-dev.daf3004

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # SDK methods
2
2
 
3
- Generated by `bun run generate`. 525 HTTP operations, plus product aliases. Version segments and path parameters are omitted from resource names. Inputs use typed `{ path, query, body, headers }` options. Collections form nested resource objects; POST actions retain their verb. Naming rules are documented in `scripts/resources.ts`; semantic exceptions and aliases with reasons are in `scripts/naming-overrides.ts`.
3
+ Generated by `bun run generate`. 548 HTTP operations, plus product aliases. Version segments and path parameters are omitted from resource names. Inputs use typed `{ path, query, body, headers }` options. Collections form nested resource objects; POST actions retain their verb. Naming rules are documented in `scripts/resources.ts`; semantic exceptions and aliases with reasons are in `scripts/naming-overrides.ts`.
4
4
 
5
5
  `always` returns an AsyncIterable; `optional` streams with `{ stream: true }`; `yes` pagination returns a Page. Only `{ data, next_cursor }` + `cursor` query contracts are automatically paginated.
6
6
 
@@ -103,6 +103,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
103
103
  | list | GET | `/agent/v1/computers/{computer_id}/files` | no | no |
104
104
  | retrieveContent | GET | `/agent/v1/computers/{computer_id}/files/content` | no | no |
105
105
 
106
+ ### agent.computers.files.convert
107
+
108
+ | Method | HTTP | Path | Streaming | Pagination |
109
+ |---|---|---|---|---|
110
+ | create | POST | `/agent/v1/computers/{computer_id}/files/convert` | no | no |
111
+
106
112
  ### agent.computers.leases
107
113
 
108
114
  | Method | HTTP | Path | Streaming | Pagination |
@@ -786,6 +792,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
786
792
  |---|---|---|---|---|
787
793
  | import | POST | `/cut/v1/projects/{project_id}/media:import` | no | no |
788
794
 
795
+ ### cut.projects.renders
796
+
797
+ | Method | HTTP | Path | Streaming | Pagination |
798
+ |---|---|---|---|---|
799
+ | create | POST | `/cut/v1/projects/{project_id}/renders` | no | no |
800
+
789
801
  ### cut.projects.versions
790
802
 
791
803
  | Method | HTTP | Path | Streaming | Pagination |
@@ -793,6 +805,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
793
805
  | create | POST | `/cut/v1/projects/{project_id}/versions` | no | no |
794
806
  | list | GET | `/cut/v1/projects/{project_id}/versions` | no | no |
795
807
 
808
+ ### cut.renders
809
+
810
+ | Method | HTTP | Path | Streaming | Pagination |
811
+ |---|---|---|---|---|
812
+ | retrieve | GET | `/cut/v1/renders/{render_id}` | no | no |
813
+
796
814
  ### cut.versions
797
815
 
798
816
  | Method | HTTP | Path | Streaming | Pagination |
@@ -884,6 +902,7 @@ Multipart request bodies expand plain objects into bracketed fields (for example
884
902
  | complete | POST | `/file/v1/uploads/{upload_id}/complete` | no | no |
885
903
  | create | POST | `/file/v1/uploads` | no | no |
886
904
  | createSigned | POST | `/file/v1/uploads/signed` | no | no |
905
+ | retrieve | GET | `/file/v1/uploads/{upload_id}` | no | no |
887
906
 
888
907
  ### file.uploads.parts
889
908
 
@@ -967,6 +986,12 @@ Multipart request bodies expand plain objects into bracketed fields (for example
967
986
 
968
987
  ## media
969
988
 
989
+ ### media.generation.capabilities
990
+
991
+ | Method | HTTP | Path | Streaming | Pagination |
992
+ |---|---|---|---|---|
993
+ | list | GET | `/media/v1/generation/capabilities` | no | no |
994
+
970
995
  ### media.libraries
971
996
 
972
997
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1038,12 +1063,26 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1038
1063
  |---|---|---|---|---|
1039
1064
  | list | GET | `/media/v1/libraries/{library_id}/folders` | no | no |
1040
1065
 
1066
+ ### media.libraries.generations
1067
+
1068
+ | Method | HTTP | Path | Streaming | Pagination |
1069
+ |---|---|---|---|---|
1070
+ | create | POST | `/media/v1/libraries/{library_id}/generations` | no | no |
1071
+
1041
1072
  ### media.libraries.jobs
1042
1073
 
1043
1074
  | Method | HTTP | Path | Streaming | Pagination |
1044
1075
  |---|---|---|---|---|
1076
+ | cancel | POST | `/media/v1/libraries/{library_id}/jobs/{job_id}/cancel` | no | no |
1077
+ | list | GET | `/media/v1/libraries/{library_id}/jobs` | no | yes |
1045
1078
  | retrieve | GET | `/media/v1/libraries/{library_id}/jobs/{job_id}` | no | no |
1046
1079
 
1080
+ ### media.libraries.jobs.outputs.save
1081
+
1082
+ | Method | HTTP | Path | Streaming | Pagination |
1083
+ |---|---|---|---|---|
1084
+ | create | POST | `/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save` | no | no |
1085
+
1047
1086
  ### media.libraries.purge
1048
1087
 
1049
1088
  | Method | HTTP | Path | Streaming | Pagination |
@@ -1230,6 +1269,57 @@ Multipart request bodies expand plain objects into bracketed fields (for example
1230
1269
  | retrieve | GET | `/model/v1/videos/{video_id}` | no | no |
1231
1270
  | retrieveContent | GET | `/model/v1/videos/{video_id}/content` | no | no |
1232
1271
 
1272
+ ## ontology
1273
+
1274
+ ### ontology.changesets
1275
+
1276
+ | Method | HTTP | Path | Streaming | Pagination |
1277
+ |---|---|---|---|---|
1278
+ | create | POST | `/ontology/v1/changesets` | no | no |
1279
+
1280
+ ### ontology.nodes
1281
+
1282
+ | Method | HTTP | Path | Streaming | Pagination |
1283
+ |---|---|---|---|---|
1284
+ | create | POST | `/ontology/v1/nodes` | no | no |
1285
+ | list | GET | `/ontology/v1/nodes` | no | yes |
1286
+ | retrieve | GET | `/ontology/v1/nodes/{node_id}` | no | no |
1287
+ | update | PATCH | `/ontology/v1/nodes/{node_id}` | no | no |
1288
+
1289
+ ### ontology.nodes.merge
1290
+
1291
+ | Method | HTTP | Path | Streaming | Pagination |
1292
+ |---|---|---|---|---|
1293
+ | create | POST | `/ontology/v1/nodes/{node_id}/merge` | no | no |
1294
+
1295
+ ### ontology.relations
1296
+
1297
+ | Method | HTTP | Path | Streaming | Pagination |
1298
+ |---|---|---|---|---|
1299
+ | create | POST | `/ontology/v1/relations` | no | no |
1300
+ | list | GET | `/ontology/v1/relations` | no | yes |
1301
+ | retrieve | GET | `/ontology/v1/relations/{relation_id}` | no | no |
1302
+
1303
+ ### ontology.relations.invalidate
1304
+
1305
+ | Method | HTTP | Path | Streaming | Pagination |
1306
+ |---|---|---|---|---|
1307
+ | create | POST | `/ontology/v1/relations/{relation_id}/invalidate` | no | no |
1308
+
1309
+ ### ontology.search
1310
+
1311
+ | Method | HTTP | Path | Streaming | Pagination |
1312
+ |---|---|---|---|---|
1313
+ | create | POST | `/ontology/v1/search` | no | no |
1314
+
1315
+ ### ontology.types
1316
+
1317
+ | Method | HTTP | Path | Streaming | Pagination |
1318
+ |---|---|---|---|---|
1319
+ | create | POST | `/ontology/v1/types` | no | no |
1320
+ | list | GET | `/ontology/v1/types` | no | no |
1321
+ | retrieve | GET | `/ontology/v1/types/{name}` | no | no |
1322
+
1233
1323
  ## organization
1234
1324
 
1235
1325
  ### organization.charges
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  **Models, agents, sandboxes, search, data and automation, typed end to end.**
6
6
 
7
- The official TypeScript SDK for [知行云 Praxis](https://deepraxis.com), the cloud where AI agents are built, run and hosted.
7
+ The official TypeScript SDK for [Praxis](https://deepraxis.com), the cloud where AI agents are built, run and hosted.
8
8
 
9
9
  [![npm](https://img.shields.io/npm/v/@deepraxis/sdk?label=npm&color=2e8555)](https://www.npmjs.com/package/@deepraxis/sdk)
10
10
  [![Bundle size](https://img.shields.io/bundlephobia/minzip/@deepraxis/sdk?color=2e8555)](https://bundlephobia.com/package/@deepraxis/sdk)
@@ -276,5 +276,5 @@ sandboxes, search, data, automation and the rest of the platform.
276
276
 
277
277
  [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0). Copyright 2026 南京深度实践人工智能科技有限公司 (Deepractice).
278
278
 
279
- "Praxis", "知行云" and "Deepraxis" are trademarks of Deepractice; the license does not grant
279
+ "Praxis" and "Deepraxis" are trademarks of Deepractice; the license does not grant
280
280
  rights to use them.
@@ -9,6 +9,9 @@ export interface ProblemDetails {
9
9
  requestId?: string;
10
10
  message?: string;
11
11
  param?: string | null;
12
+ /** ticket-681 — the documentation page the failure points at, and the exact section to read. */
13
+ docUrl?: string;
14
+ describe?: string;
12
15
  raw?: unknown;
13
16
  }
14
17
  /** Pure normalization shared by HTTP clients and the automation call ledger.
@@ -26,6 +29,9 @@ export declare class PraxisError extends Error {
26
29
  readonly errors: unknown[];
27
30
  readonly requestId?: string;
28
31
  readonly param?: string | null;
32
+ /** ticket-681 — the documented page and the exact section an agent should read to fix the call. */
33
+ readonly docUrl?: string;
34
+ readonly describe?: string;
29
35
  readonly raw?: unknown;
30
36
  constructor(problem?: ProblemDetails, options?: ErrorOptions);
31
37
  static fromResponse(response: Response, body: unknown): PraxisError;
@@ -16,6 +16,9 @@ export function problemFrom(status, headers, body, statusText) {
16
16
  param: typeof param === 'string' ? param : param === null || nested.param === null ? null : undefined,
17
17
  errors: Array.isArray(value.errors) ? value.errors : [],
18
18
  requestId: headers.get('x-request-id') ?? string(value.requestId) ?? string(value.request_id),
19
+ // Both spellings reach here: the own face writes snake_case, an in-process problem keeps docUrl.
20
+ docUrl: string(nested.doc_url) ?? string(value.doc_url) ?? string(nested.docUrl) ?? string(value.docUrl),
21
+ describe: string(nested.describe) ?? string(value.describe),
19
22
  raw: body,
20
23
  };
21
24
  }
@@ -28,6 +31,9 @@ export class PraxisError extends Error {
28
31
  errors;
29
32
  requestId;
30
33
  param;
34
+ /** ticket-681 — the documented page and the exact section an agent should read to fix the call. */
35
+ docUrl;
36
+ describe;
31
37
  raw;
32
38
  constructor(problem = {}, options) {
33
39
  super(problem.message ?? problem.detail ?? problem.title ?? `Praxis request failed${problem.status ? ` (${problem.status})` : ''}`, options);
@@ -40,6 +46,8 @@ export class PraxisError extends Error {
40
46
  this.errors = problem.errors ?? [];
41
47
  this.requestId = problem.requestId;
42
48
  this.param = problem.param;
49
+ this.docUrl = problem.docUrl;
50
+ this.describe = problem.describe;
43
51
  this.raw = problem.raw;
44
52
  }
45
53
  static fromResponse(response, body) {