@openrouter/sdk 1.5.24 → 1.5.26

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.
Files changed (70) hide show
  1. package/esm/funcs/alphaExtractionsCreate.d.ts +19 -0
  2. package/esm/funcs/alphaExtractionsCreate.js +105 -0
  3. package/esm/lib/config.d.ts +2 -2
  4. package/esm/lib/config.js +2 -2
  5. package/esm/models/decisionsresponse.d.ts +3 -3
  6. package/esm/models/decisionsresponse.js +3 -3
  7. package/esm/models/extractiondateanswer.d.ts +46 -0
  8. package/esm/models/extractiondateanswer.js +37 -0
  9. package/esm/models/extractiondatefield.d.ts +22 -0
  10. package/esm/models/extractiondatefield.js +20 -0
  11. package/esm/models/extractiondatetimeanswer.d.ts +46 -0
  12. package/esm/models/extractiondatetimeanswer.js +37 -0
  13. package/esm/models/extractiondatetimefield.d.ts +22 -0
  14. package/esm/models/extractiondatetimefield.js +20 -0
  15. package/esm/models/extractiondurationanswer.d.ts +50 -0
  16. package/esm/models/extractiondurationanswer.js +38 -0
  17. package/esm/models/extractiondurationfield.d.ts +34 -0
  18. package/esm/models/extractiondurationfield.js +23 -0
  19. package/esm/models/extractionestimateanswer.d.ts +89 -0
  20. package/esm/models/extractionestimateanswer.js +80 -0
  21. package/esm/models/extractionestimatefield.d.ts +70 -0
  22. package/esm/models/extractionestimatefield.js +65 -0
  23. package/esm/models/extractionforecastanswer.d.ts +72 -0
  24. package/esm/models/extractionforecastanswer.js +72 -0
  25. package/esm/models/extractionforecastfield.d.ts +90 -0
  26. package/esm/models/extractionforecastfield.js +80 -0
  27. package/esm/models/extractionforecaststep.d.ts +50 -0
  28. package/esm/models/extractionforecaststep.js +57 -0
  29. package/esm/models/extractionlistanswer.d.ts +51 -0
  30. package/esm/models/extractionlistanswer.js +47 -0
  31. package/esm/models/extractionlistfield.d.ts +38 -0
  32. package/esm/models/extractionlistfield.js +31 -0
  33. package/esm/models/extractionnumberanswer.d.ts +46 -0
  34. package/esm/models/extractionnumberanswer.js +37 -0
  35. package/esm/models/extractionnumberfield.d.ts +31 -0
  36. package/esm/models/extractionnumberfield.js +23 -0
  37. package/esm/models/extractionsrequest.d.ts +75 -0
  38. package/esm/models/extractionsrequest.js +65 -0
  39. package/esm/models/extractionsresponse.d.ts +42 -0
  40. package/esm/models/extractionsresponse.js +61 -0
  41. package/esm/models/extractionsusage.d.ts +19 -0
  42. package/esm/models/extractionsusage.js +29 -0
  43. package/esm/models/extractiontextanswer.d.ts +46 -0
  44. package/esm/models/extractiontextanswer.js +37 -0
  45. package/esm/models/extractiontextfield.d.ts +22 -0
  46. package/esm/models/extractiontextfield.js +20 -0
  47. package/esm/models/extractiontimeanswer.d.ts +46 -0
  48. package/esm/models/extractiontimeanswer.js +37 -0
  49. package/esm/models/extractiontimefield.d.ts +22 -0
  50. package/esm/models/extractiontimefield.js +20 -0
  51. package/esm/models/generationresponse.d.ts +1 -0
  52. package/esm/models/generationresponse.js +1 -0
  53. package/esm/models/imagegenerationproviderpreferences.d.ts +1 -1
  54. package/esm/models/index.d.ts +22 -0
  55. package/esm/models/index.js +22 -0
  56. package/esm/models/operations/createapialphaextractions.d.ts +57 -0
  57. package/esm/models/operations/createapialphaextractions.js +26 -0
  58. package/esm/models/operations/index.d.ts +1 -0
  59. package/esm/models/operations/index.js +1 -0
  60. package/esm/models/provideroptions.d.ts +1 -1
  61. package/esm/models/providerpreferences.d.ts +1 -1
  62. package/esm/models/speechrequest.d.ts +1 -1
  63. package/esm/models/sttrequest.d.ts +1 -1
  64. package/esm/models/videogenerationrequest.d.ts +1 -1
  65. package/esm/sdk/alpha.d.ts +3 -0
  66. package/esm/sdk/alpha.js +4 -0
  67. package/esm/sdk/extractions.d.ts +13 -0
  68. package/esm/sdk/extractions.js +19 -0
  69. package/jsr.json +1 -1
  70. package/package.json +9 -9
@@ -0,0 +1,13 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as models from "../models/index.js";
3
+ import * as operations from "../models/operations/index.js";
4
+ export declare class Extractions extends ClientSDK {
5
+ /**
6
+ * Submit an Extractions request
7
+ *
8
+ * @remarks
9
+ * Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable.
10
+ */
11
+ create(request: operations.CreateApiAlphaExtractionsRequest, options?: RequestOptions): Promise<models.ExtractionsResponse>;
12
+ }
13
+ //# sourceMappingURL=extractions.d.ts.map
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 86201a09fb0f
4
+ */
5
+ import { alphaExtractionsCreate } from "../funcs/alphaExtractionsCreate.js";
6
+ import { ClientSDK } from "../lib/sdks.js";
7
+ import { unwrapAsync } from "../types/fp.js";
8
+ export class Extractions extends ClientSDK {
9
+ /**
10
+ * Submit an Extractions request
11
+ *
12
+ * @remarks
13
+ * Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable.
14
+ */
15
+ async create(request, options) {
16
+ return unwrapAsync(alphaExtractionsCreate(this, request, options));
17
+ }
18
+ }
19
+ //# sourceMappingURL=extractions.js.map
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.5.24",
5
+ "version": "1.5.26",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openrouter/sdk",
3
- "version": "1.5.24",
3
+ "version": "1.5.26",
4
4
  "author": "OpenRouter",
5
5
  "description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
6
6
  "keywords": [
@@ -21,8 +21,8 @@
21
21
  "license": "Apache-2.0",
22
22
  "packageManager": "pnpm@10.22.0",
23
23
  "publishConfig": {
24
- "access": "public",
25
- "provenance": true
24
+ "provenance": true,
25
+ "access": "public"
26
26
  },
27
27
  "type": "module",
28
28
  "main": "./esm/index.js",
@@ -73,15 +73,15 @@
73
73
  "lint": "eslint --cache --max-warnings=0 src",
74
74
  "build": "tsc && node scripts/unbarrel-imports.js",
75
75
  "prepublishOnly": "npm run build",
76
- "compile": "tsc && node scripts/unbarrel-imports.js",
77
- "test:transit": "exit 0",
78
- "test:watch": "vitest --watch --project unit",
79
- "typecheck": "tsc --noEmit",
80
- "postinstall": "node scripts/check-types.js || true",
81
76
  "prepare": "npm run build",
82
77
  "test": "vitest --run --project unit",
78
+ "typecheck": "tsc --noEmit",
79
+ "typecheck:transit": "exit 0",
80
+ "compile": "tsc && node scripts/unbarrel-imports.js",
81
+ "postinstall": "node scripts/check-types.js || true",
83
82
  "test:e2e": "vitest --run --project e2e",
84
- "typecheck:transit": "exit 0"
83
+ "test:transit": "exit 0",
84
+ "test:watch": "vitest --watch --project unit"
85
85
  },
86
86
  "peerDependencies": {
87
87