@pdfvector/util 0.1.0 → 0.2.0

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 (69) hide show
  1. package/.tsc/lib/api-docs.d.ts +50 -0
  2. package/.tsc/lib/api-docs.d.ts.map +1 -0
  3. package/.tsc/lib/api-docs.js +1803 -0
  4. package/.tsc/lib/contract/gateway/router/admin/usage/records.d.ts +1 -1
  5. package/.tsc/lib/contract/gateway/router/admin/usage/records.js +1 -1
  6. package/.tsc/lib/contract/gateway/router/billing.d.ts +1 -0
  7. package/.tsc/lib/contract/gateway/router/billing.d.ts.map +1 -1
  8. package/.tsc/lib/contract/gateway/router/billing.js +1 -1
  9. package/.tsc/lib/contract/gateway/router/instance/api-keys.d.ts +2 -1
  10. package/.tsc/lib/contract/gateway/router/instance/api-keys.d.ts.map +1 -1
  11. package/.tsc/lib/contract/gateway/router/instance/api-keys.js +1 -1
  12. package/.tsc/lib/contract/gateway/router/instance/billing.d.ts +77 -0
  13. package/.tsc/lib/contract/gateway/router/instance/billing.d.ts.map +1 -0
  14. package/.tsc/lib/contract/gateway/router/instance/billing.js +43 -0
  15. package/.tsc/lib/contract/gateway/router/instance/instances.d.ts +95 -0
  16. package/.tsc/lib/contract/gateway/router/instance/instances.d.ts.map +1 -1
  17. package/.tsc/lib/contract/gateway/router/instance/instances.js +22 -0
  18. package/.tsc/lib/contract/gateway/router/instance/usage.d.ts +25 -3
  19. package/.tsc/lib/contract/gateway/router/instance/usage.d.ts.map +1 -1
  20. package/.tsc/lib/contract/gateway/router/instance/usage.js +18 -1
  21. package/.tsc/lib/contract/gateway/router/instance.d.ts +1 -0
  22. package/.tsc/lib/contract/gateway/router/instance.d.ts.map +1 -1
  23. package/.tsc/lib/contract/gateway/router/instance.js +1 -0
  24. package/.tsc/lib/contract/instance/router/academic/fetch.d.ts.map +1 -1
  25. package/.tsc/lib/contract/instance/router/academic/fetch.js +1 -1
  26. package/.tsc/lib/contract/instance/router/academic/find-citations.d.ts.map +1 -1
  27. package/.tsc/lib/contract/instance/router/academic/find-citations.js +1 -1
  28. package/.tsc/lib/contract/instance/router/academic/paper-graph.d.ts.map +1 -1
  29. package/.tsc/lib/contract/instance/router/academic/paper-graph.js +1 -1
  30. package/.tsc/lib/contract/instance/router/academic/parse.d.ts.map +1 -1
  31. package/.tsc/lib/contract/instance/router/academic/parse.js +1 -1
  32. package/.tsc/lib/contract/instance/router/academic/search-grants.d.ts.map +1 -1
  33. package/.tsc/lib/contract/instance/router/academic/search-grants.js +1 -1
  34. package/.tsc/lib/contract/instance/router/academic/search.d.ts.map +1 -1
  35. package/.tsc/lib/contract/instance/router/academic/search.js +1 -1
  36. package/.tsc/lib/contract/instance/router/academic/similar-papers.d.ts.map +1 -1
  37. package/.tsc/lib/contract/instance/router/academic/similar-papers.js +1 -1
  38. package/.tsc/lib/contract/instance/router/bankStatement/ask.d.ts.map +1 -1
  39. package/.tsc/lib/contract/instance/router/bankStatement/ask.js +1 -1
  40. package/.tsc/lib/contract/instance/router/bankStatement/extract.d.ts.map +1 -1
  41. package/.tsc/lib/contract/instance/router/bankStatement/extract.js +1 -1
  42. package/.tsc/lib/contract/instance/router/bankStatement/parse.d.ts.map +1 -1
  43. package/.tsc/lib/contract/instance/router/bankStatement/parse.js +1 -1
  44. package/.tsc/lib/contract/instance/router/document/ask.d.ts.map +1 -1
  45. package/.tsc/lib/contract/instance/router/document/ask.js +1 -1
  46. package/.tsc/lib/contract/instance/router/document/extract.d.ts.map +1 -1
  47. package/.tsc/lib/contract/instance/router/document/extract.js +1 -1
  48. package/.tsc/lib/contract/instance/router/document/parse.d.ts.map +1 -1
  49. package/.tsc/lib/contract/instance/router/document/parse.js +1 -1
  50. package/.tsc/lib/contract/instance/router/identity/ask.d.ts.map +1 -1
  51. package/.tsc/lib/contract/instance/router/identity/ask.js +1 -1
  52. package/.tsc/lib/contract/instance/router/identity/extract.d.ts.map +1 -1
  53. package/.tsc/lib/contract/instance/router/identity/extract.js +1 -1
  54. package/.tsc/lib/contract/instance/router/identity/parse.d.ts.map +1 -1
  55. package/.tsc/lib/contract/instance/router/identity/parse.js +1 -1
  56. package/.tsc/lib/contract/instance/router/invoice/ask.d.ts.map +1 -1
  57. package/.tsc/lib/contract/instance/router/invoice/ask.js +1 -1
  58. package/.tsc/lib/contract/instance/router/invoice/extract.d.ts.map +1 -1
  59. package/.tsc/lib/contract/instance/router/invoice/extract.js +1 -1
  60. package/.tsc/lib/contract/instance/router/invoice/parse.d.ts.map +1 -1
  61. package/.tsc/lib/contract/instance/router/invoice/parse.js +1 -1
  62. package/.tsc/lib/fly-regions.d.ts +53 -0
  63. package/.tsc/lib/fly-regions.d.ts.map +1 -0
  64. package/.tsc/lib/fly-regions.js +19 -0
  65. package/.tsc/lib/plan.d.ts +1 -1
  66. package/.tsc/lib/plan.d.ts.map +1 -1
  67. package/.tsc/lib/plan.js +7 -0
  68. package/CHANGELOG.md +18 -0
  69. package/package.json +9 -6
@@ -1,6 +1,6 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { getOpenApiCodeSamples } from "@pdfvector/api-docs";
3
2
  import { z } from "zod";
3
+ import { getOpenApiCodeSamples } from "../../../../api-docs.js";
4
4
  import { fetchableUrlSchema } from "../../fetchable-url-schema.js";
5
5
  import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
6
6
  import { documentAskModelDescription, outputAskModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
@@ -1 +1 @@
1
- {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/document/extract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2KxB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
1
+ {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/document/extract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4KxB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { getOpenApiCodeSamples } from "@pdfvector/api-docs";
3
2
  import { z } from "zod";
3
+ import { getOpenApiCodeSamples } from "../../../../api-docs.js";
4
4
  import { fetchableUrlSchema } from "../../fetchable-url-schema.js";
5
5
  import { jsonSchemaInput } from "../../json-schema-input.js";
6
6
  import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
@@ -1 +1 @@
1
- {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/document/parse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6JxB,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
1
+ {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/document/parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8JxB,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { documentParseOpenApiCodeSamples } from "@pdfvector/api-docs";
3
2
  import { z } from "zod";
3
+ import { documentParseOpenApiCodeSamples } from "../../../../api-docs.js";
4
4
  import { fetchableUrlSchema } from "../../fetchable-url-schema.js";
5
5
  import { pageMarkdownSchema } from "../../page-markdown-schema.js";
6
6
  import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
@@ -1 +1 @@
1
- {"version":3,"file":"ask.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/identity/ask.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyGxB,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
1
+ {"version":3,"file":"ask.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/identity/ask.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0GxB,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { getOpenApiCodeSamples } from "@pdfvector/api-docs";
3
2
  import { z } from "zod";
3
+ import { getOpenApiCodeSamples } from "../../../../api-docs.js";
4
4
  import { fetchableUrlSchema } from "../../fetchable-url-schema.js";
5
5
  import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
6
6
  import { outputAskModelDescription, specializedAskModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
@@ -1 +1 @@
1
- {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/identity/extract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwHxB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
1
+ {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/identity/extract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyHxB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { getOpenApiCodeSamples } from "@pdfvector/api-docs";
3
2
  import { z } from "zod";
3
+ import { getOpenApiCodeSamples } from "../../../../api-docs.js";
4
4
  import { fetchableUrlSchema } from "../../fetchable-url-schema.js";
5
5
  import { jsonSchemaInput } from "../../json-schema-input.js";
6
6
  import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
@@ -1 +1 @@
1
- {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/identity/parse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4HxB,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
1
+ {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/identity/parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6HxB,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { getOpenApiCodeSamples } from "@pdfvector/api-docs";
3
2
  import { z } from "zod";
3
+ import { getOpenApiCodeSamples } from "../../../../api-docs.js";
4
4
  import { fetchableUrlSchema } from "../../fetchable-url-schema.js";
5
5
  import { specializedParseModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
6
6
  import { getDefaultSpec } from "./get-default-spec.js";
@@ -1 +1 @@
1
- {"version":3,"file":"ask.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/invoice/ask.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8FxB,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
1
+ {"version":3,"file":"ask.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/invoice/ask.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA+FxB,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { getOpenApiCodeSamples } from "@pdfvector/api-docs";
3
2
  import { z } from "zod";
3
+ import { getOpenApiCodeSamples } from "../../../../api-docs.js";
4
4
  import { fetchableUrlSchema } from "../../fetchable-url-schema.js";
5
5
  import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
6
6
  import { outputAskModelDescription, specializedAskModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
@@ -1 +1 @@
1
- {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/invoice/extract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8HxB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
1
+ {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/invoice/extract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA+HxB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { getOpenApiCodeSamples } from "@pdfvector/api-docs";
3
2
  import { z } from "zod";
3
+ import { getOpenApiCodeSamples } from "../../../../api-docs.js";
4
4
  import { fetchableUrlSchema } from "../../fetchable-url-schema.js";
5
5
  import { jsonSchemaInput } from "../../json-schema-input.js";
6
6
  import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
@@ -1 +1 @@
1
- {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/invoice/parse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiHxB,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
1
+ {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../lib/contract/instance/router/invoice/parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkHxB,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;8DAYS,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { getOpenApiCodeSamples } from "@pdfvector/api-docs";
3
2
  import { z } from "zod";
3
+ import { getOpenApiCodeSamples } from "../../../../api-docs.js";
4
4
  import { fetchableUrlSchema } from "../../fetchable-url-schema.js";
5
5
  import { specializedParseModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
6
6
  import { getDefaultSpec } from "./get-default-spec.js";
@@ -0,0 +1,53 @@
1
+ export declare const flyRegions: readonly [{
2
+ readonly code: "ams";
3
+ readonly name: "Amsterdam, Netherlands";
4
+ }, {
5
+ readonly code: "arn";
6
+ readonly name: "Stockholm, Sweden";
7
+ }, {
8
+ readonly code: "cdg";
9
+ readonly name: "Paris, France";
10
+ }, {
11
+ readonly code: "dfw";
12
+ readonly name: "Dallas, Texas (US)";
13
+ }, {
14
+ readonly code: "ewr";
15
+ readonly name: "Secaucus, NJ (US)";
16
+ }, {
17
+ readonly code: "fra";
18
+ readonly name: "Frankfurt, Germany";
19
+ }, {
20
+ readonly code: "gru";
21
+ readonly name: "Sao Paulo, Brazil";
22
+ }, {
23
+ readonly code: "iad";
24
+ readonly name: "Ashburn, Virginia (US)";
25
+ }, {
26
+ readonly code: "jnb";
27
+ readonly name: "Johannesburg, South Africa";
28
+ }, {
29
+ readonly code: "lax";
30
+ readonly name: "Los Angeles, California (US)";
31
+ }, {
32
+ readonly code: "lhr";
33
+ readonly name: "London, United Kingdom";
34
+ }, {
35
+ readonly code: "nrt";
36
+ readonly name: "Tokyo, Japan";
37
+ }, {
38
+ readonly code: "ord";
39
+ readonly name: "Chicago, Illinois (US)";
40
+ }, {
41
+ readonly code: "sin";
42
+ readonly name: "Singapore, Singapore";
43
+ }, {
44
+ readonly code: "sjc";
45
+ readonly name: "San Jose, California (US)";
46
+ }, {
47
+ readonly code: "syd";
48
+ readonly name: "Sydney, Australia";
49
+ }, {
50
+ readonly code: "yyz";
51
+ readonly name: "Toronto, Canada";
52
+ }];
53
+ //# sourceMappingURL=fly-regions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fly-regions.d.ts","sourceRoot":"","sources":["../../lib/fly-regions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;aACpB,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,wBAAwB;;aAC3C,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,mBAAmB;;aACtC,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,eAAe;;aAClC,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,oBAAoB;;aACvC,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,mBAAmB;;aACtC,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,oBAAoB;;aACvC,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,mBAAmB;;aACtC,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,wBAAwB;;aAC3C,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,4BAA4B;;aAC/C,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,8BAA8B;;aACjD,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,wBAAwB;;aAC3C,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,cAAc;;aACjC,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,wBAAwB;;aAC3C,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,sBAAsB;;aACzC,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,2BAA2B;;aAC9C,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,mBAAmB;;aACtC,IAAI,EAAE,KAAK;aAAE,IAAI,EAAE,iBAAiB;EAC7B,CAAC"}
@@ -0,0 +1,19 @@
1
+ export const flyRegions = [
2
+ { code: "ams", name: "Amsterdam, Netherlands" },
3
+ { code: "arn", name: "Stockholm, Sweden" },
4
+ { code: "cdg", name: "Paris, France" },
5
+ { code: "dfw", name: "Dallas, Texas (US)" },
6
+ { code: "ewr", name: "Secaucus, NJ (US)" },
7
+ { code: "fra", name: "Frankfurt, Germany" },
8
+ { code: "gru", name: "Sao Paulo, Brazil" },
9
+ { code: "iad", name: "Ashburn, Virginia (US)" },
10
+ { code: "jnb", name: "Johannesburg, South Africa" },
11
+ { code: "lax", name: "Los Angeles, California (US)" },
12
+ { code: "lhr", name: "London, United Kingdom" },
13
+ { code: "nrt", name: "Tokyo, Japan" },
14
+ { code: "ord", name: "Chicago, Illinois (US)" },
15
+ { code: "sin", name: "Singapore, Singapore" },
16
+ { code: "sjc", name: "San Jose, California (US)" },
17
+ { code: "syd", name: "Sydney, Australia" },
18
+ { code: "yyz", name: "Toronto, Canada" },
19
+ ];
@@ -5,7 +5,7 @@ export interface PlanDefinition {
5
5
  annualPrice: number;
6
6
  maxInstances: number;
7
7
  }
8
- export type PlanKey = "free" | "basic" | "pro";
8
+ export type PlanKey = "free" | "basic" | "pro" | "enterprise";
9
9
  export type AnyPlanKey = string;
10
10
  export interface Plan {
11
11
  key: AnyPlanKey;
@@ -1 +1 @@
1
- {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../lib/plan.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAE/C,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,MAAM,WAAW,IAAI;IACpB,GAAG,EAAE,UAAU,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,IAAI,CAAC;CACX;AAED,MAAM,WAAW,WAAW;IAC3B,GAAG,EAAE,UAAU,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,OAAO,EAAE,cAAc,CAsB3D,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAmC,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;AAEhF,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAEzD;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAIhD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAMlD"}
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../lib/plan.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,YAAY,CAAC;AAE9D,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,MAAM,WAAW,IAAI;IACpB,GAAG,EAAE,UAAU,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,IAAI,CAAC;CACX;AAED,MAAM,WAAW,WAAW;IAC3B,GAAG,EAAE,UAAU,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,OAAO,EAAE,cAAc,CA6B3D,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAmC,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;AAEhF,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAEzD;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAIhD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAMlD"}
package/.tsc/lib/plan.js CHANGED
@@ -21,6 +21,13 @@ export const planDefinitions = {
21
21
  annualPrice: 89,
22
22
  maxInstances: 0,
23
23
  },
24
+ enterprise: {
25
+ label: "Enterprise",
26
+ monthlyCredits: 100000,
27
+ monthlyPrice: 299,
28
+ annualPrice: (299 * 11) / 12,
29
+ maxInstances: Number.POSITIVE_INFINITY,
30
+ },
24
31
  };
25
32
  export const planKeys = Object.keys(planDefinitions);
26
33
  export function isPlanKey(value) {
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @pdfvector/util
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#392](https://github.com/phuctm97/pdfvector/pull/392) [`ba1e57c`](https://github.com/phuctm97/pdfvector/commit/ba1e57cd88ccbcea74df1e5cd39cb41f1f6f12ca) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Add workspace-owned Fly-managed local PDF instances with durable provisioning, verified API-key rotation, bounded text-only parsing, and idempotent per-page credit accounting. Expose managed lifecycle actions and local PDF uploads in the instance UI and extend gateway contracts with managed instance status and capabilities. Let users select a supported Fly region for the parser and its persistent volume, validating placement against the shared active-region catalog. Give new instances native Fly HTTPS hostnames `pv-<workspaceId>-<instanceId>-instance.fly.dev`, with an explicitly configured `pv-stg` prefix for staging and no custom DNS or certificate setup. Preserve existing native URLs and fail-closed certificate/readiness support for already persisted custom domains. Add instance-based Enterprise billing without a separate slot-purchase workflow, confirmation before destructive deletion, final accounting recovery before cleanup, and retained per-instance usage summaries for the workspace dashboard.
8
+
9
+ Add authenticated immutable parser-image releases with durable canary promotion, retry and rollback while retaining volumes, credentials and credit accounting. Verify compiled release metadata and a zero-credit admin parser smoke before publishing readiness, and safely defer asynchronous Fly machine replacements. Use one protected release job to build and publish directly to the configured private Fly registry, enqueue the gateway rollout and wait for convergence of the entire available managed fleet. Keep credential-free PR artifact verification and the image package private to npm. Recognize managed Enterprise subscription prices through existing lookup-key and credit-metadata conventions instead of a per-environment price ID, while retaining strict pricing, payment and concurrency checks.
10
+
11
+ Offer self-service Enterprise monthly and yearly subscriptions, with yearly pricing charged for eleven months and fixed workspace monthly credits. Keep the instance creation action visible for every plan, guide non-Enterprise workspaces into the preselected Change Plan dialog, and publish the Enterprise pricing and upgrade path on the landing page.
12
+
13
+ Keep the Enterprise workspace subscription at quantity one, including one dedicated instance and 100,000 monthly credits. Bill each additional dedicated instance through its own monthly or yearly subscription, with independent cancellation and payment recovery. Add a Details → Plan → Review creation wizard, durable accepted-price quotes and idempotent billing operations, and provision only after verified payment. Preserve deleted-instance history with clear destructive styling and release the included slot only after provider cleanup completes.
14
+
15
+ ## 0.1.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [#376](https://github.com/phuctm97/pdfvector/pull/376) [`3b01a52`](https://github.com/phuctm97/pdfvector/commit/3b01a52958ae4d2d7830d41ae36b1021ab6fc8a7) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Upgrade workspace dependencies, remove package overrides and redundant declarations, merge shared API documentation into the util package, use native Bun timing in instance retries, and replace manual browser detection with Bowser.
20
+
3
21
  ## 0.1.0
4
22
 
5
23
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfvector/util",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "main": "./.tsc/lib/index.js",
6
6
  "exports": {
@@ -8,6 +8,10 @@
8
8
  "types": "./.tsc/lib/index.d.ts",
9
9
  "default": "./.tsc/lib/index.js"
10
10
  },
11
+ "./api-docs": {
12
+ "types": "./.tsc/lib/api-docs.d.ts",
13
+ "default": "./.tsc/lib/api-docs.js"
14
+ },
11
15
  "./gateway-contract": {
12
16
  "types": "./.tsc/lib/contract/gateway/index.d.ts",
13
17
  "default": "./.tsc/lib/contract/gateway/index.js"
@@ -30,11 +34,10 @@
30
34
  }
31
35
  },
32
36
  "dependencies": {
33
- "@sentry/core": "^10.74.0",
34
- "@orpc/contract": "^1.15.0",
35
- "@orpc/client": "^1.15.0",
36
- "@pdfvector/api-docs": "^0.0.9",
37
- "zod": "^4.6.4"
37
+ "@sentry/core": "^10.75.0",
38
+ "@orpc/contract": "^1.15.2",
39
+ "@orpc/client": "^1.15.2",
40
+ "zod": "^4.6.5"
38
41
  },
39
42
  "types": "./.tsc/lib/index.d.ts",
40
43
  "files": [