@pdfvector/instance-contract 0.0.41 → 0.0.43

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 (44) hide show
  1. package/.tsc/lib/index.d.ts +3 -3
  2. package/.tsc/lib/index.js +3 -3
  3. package/.tsc/lib/pdfvector-model.d.ts +1 -1
  4. package/.tsc/lib/router/academic/fetch.js +1 -1
  5. package/.tsc/lib/router/academic/find-citations.js +1 -1
  6. package/.tsc/lib/router/academic/index.d.ts +6 -6
  7. package/.tsc/lib/router/academic/index.js +6 -6
  8. package/.tsc/lib/router/academic/paper-graph.js +1 -1
  9. package/.tsc/lib/router/academic/search-grants.js +1 -1
  10. package/.tsc/lib/router/academic/search.js +1 -1
  11. package/.tsc/lib/router/academic/similar-papers.js +1 -1
  12. package/.tsc/lib/router/admin/get-usage-records.d.ts +9 -0
  13. package/.tsc/lib/router/admin/get-usage-records.js +2 -1
  14. package/.tsc/lib/router/admin/index.d.ts +6 -6
  15. package/.tsc/lib/router/admin/index.js +6 -6
  16. package/.tsc/lib/router/authenticate/index.d.ts +1 -1
  17. package/.tsc/lib/router/authenticate/index.js +1 -1
  18. package/.tsc/lib/router/bankStatement/ask.js +3 -3
  19. package/.tsc/lib/router/bankStatement/extract.js +4 -4
  20. package/.tsc/lib/router/bankStatement/index.d.ts +3 -3
  21. package/.tsc/lib/router/bankStatement/index.js +3 -3
  22. package/.tsc/lib/router/bankStatement/parse.js +2 -2
  23. package/.tsc/lib/router/document/ask.js +3 -3
  24. package/.tsc/lib/router/document/extract.js +4 -4
  25. package/.tsc/lib/router/document/index.d.ts +3 -3
  26. package/.tsc/lib/router/document/index.js +3 -3
  27. package/.tsc/lib/router/document/parse.js +3 -3
  28. package/.tsc/lib/router/free/bank-statement-parse.js +1 -1
  29. package/.tsc/lib/router/free/index.d.ts +4 -4
  30. package/.tsc/lib/router/free/index.js +4 -4
  31. package/.tsc/lib/router/identity/ask.js +3 -3
  32. package/.tsc/lib/router/identity/extract.js +4 -4
  33. package/.tsc/lib/router/identity/index.d.ts +3 -3
  34. package/.tsc/lib/router/identity/index.js +3 -3
  35. package/.tsc/lib/router/identity/parse.js +2 -2
  36. package/.tsc/lib/router/index.d.ts +8 -8
  37. package/.tsc/lib/router/index.js +8 -8
  38. package/.tsc/lib/router/invoice/ask.js +3 -3
  39. package/.tsc/lib/router/invoice/extract.js +4 -4
  40. package/.tsc/lib/router/invoice/index.d.ts +3 -3
  41. package/.tsc/lib/router/invoice/index.js +3 -3
  42. package/.tsc/lib/router/invoice/parse.js +2 -2
  43. package/CHANGELOG.md +20 -0
  44. package/package.json +3 -3
@@ -1,11 +1,11 @@
1
1
  import type { InferContractRouterInputs, InferContractRouterOutputs } from "@orpc/contract";
2
- import * as contract from "./router";
2
+ import * as contract from "./router/index.js";
3
3
  export { contract };
4
4
  export type ContractInputs = InferContractRouterInputs<typeof contract>;
5
5
  export type ContractOutputs = InferContractRouterOutputs<typeof contract>;
6
6
  import { createORPCClient, ORPCError, onError } from "@orpc/client";
7
7
  import { RPCLink } from "@orpc/client/fetch";
8
8
  export type { ContractRouterClient } from "@orpc/contract";
9
- export * from "./pdfvector-model";
10
- export * from "./pdfvector-model-schema";
9
+ export * from "./pdfvector-model.js";
10
+ export * from "./pdfvector-model-schema.js";
11
11
  export { createORPCClient, ORPCError, onError, RPCLink };
package/.tsc/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import * as contract from "./router";
1
+ import * as contract from "./router/index.js";
2
2
  export { contract };
3
3
  import { createORPCClient, ORPCError, onError } from "@orpc/client";
4
4
  import { RPCLink } from "@orpc/client/fetch";
5
- export * from "./pdfvector-model";
6
- export * from "./pdfvector-model-schema";
5
+ export * from "./pdfvector-model.js";
6
+ export * from "./pdfvector-model-schema.js";
7
7
  export { createORPCClient, ORPCError, onError, RPCLink };
@@ -1,3 +1,3 @@
1
1
  import type { z } from "zod";
2
- import type { pdfvectorModelSchema } from "./pdfvector-model-schema";
2
+ import type { pdfvectorModelSchema } from "./pdfvector-model-schema.js";
3
3
  export type PDFVectorModel = z.infer<typeof pdfvectorModelSchema>;
@@ -1,7 +1,7 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { academicCreditCosts } from "@pdfvector/util";
3
3
  import { z } from "zod";
4
- import { providerSchema } from "./provider";
4
+ import { providerSchema } from "./provider.js";
5
5
  const authorSchema = z.object({
6
6
  name: z.string(),
7
7
  url: z.string().nullish(),
@@ -1,7 +1,7 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { academicCreditCosts } from "@pdfvector/util";
3
3
  import { z } from "zod";
4
- import { providerSchema } from "./provider";
4
+ import { providerSchema } from "./provider.js";
5
5
  const authorSchema = z.object({
6
6
  name: z.string(),
7
7
  url: z.string().nullish(),
@@ -1,6 +1,6 @@
1
- export * from "./fetch";
2
- export * from "./find-citations";
3
- export * from "./paper-graph";
4
- export * from "./search";
5
- export * from "./search-grants";
6
- export * from "./similar-papers";
1
+ export * from "./fetch.js";
2
+ export * from "./find-citations.js";
3
+ export * from "./paper-graph.js";
4
+ export * from "./search.js";
5
+ export * from "./search-grants.js";
6
+ export * from "./similar-papers.js";
@@ -1,6 +1,6 @@
1
- export * from "./fetch";
2
- export * from "./find-citations";
3
- export * from "./paper-graph";
4
- export * from "./search";
5
- export * from "./search-grants";
6
- export * from "./similar-papers";
1
+ export * from "./fetch.js";
2
+ export * from "./find-citations.js";
3
+ export * from "./paper-graph.js";
4
+ export * from "./search.js";
5
+ export * from "./search-grants.js";
6
+ export * from "./similar-papers.js";
@@ -1,7 +1,7 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { academicCreditCosts } from "@pdfvector/util";
3
3
  import { z } from "zod";
4
- import { providerSchema } from "./provider";
4
+ import { providerSchema } from "./provider.js";
5
5
  const authorSchema = z.object({
6
6
  name: z.string(),
7
7
  url: z.string().nullish(),
@@ -1,7 +1,7 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { academicCreditCosts } from "@pdfvector/util";
3
3
  import { z } from "zod";
4
- import { grantProviderSchema } from "./provider";
4
+ import { grantProviderSchema } from "./provider.js";
5
5
  const grantSchema = z.object({
6
6
  sourceId: z.string().nullish(),
7
7
  title: z.string().nullish(),
@@ -1,7 +1,7 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { academicCreditCosts } from "@pdfvector/util";
3
3
  import { z } from "zod";
4
- import { providerSchema } from "./provider";
4
+ import { providerSchema } from "./provider.js";
5
5
  const authorSchema = z.object({
6
6
  name: z.string(),
7
7
  url: z.string().nullish(),
@@ -1,7 +1,7 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { academicCreditCosts } from "@pdfvector/util";
3
3
  import { z } from "zod";
4
- import { providerSchema } from "./provider";
4
+ import { providerSchema } from "./provider.js";
5
5
  const authorSchema = z.object({
6
6
  name: z.string(),
7
7
  url: z.string().nullish(),
@@ -32,6 +32,15 @@ export declare const getUsageRecords: import("@orpc/contract").ContractProcedure
32
32
  actualModel: z.ZodNullable<z.ZodString>;
33
33
  apiKey: z.ZodNullable<z.ZodString>;
34
34
  workspaceId: z.ZodNullable<z.ZodNumber>;
35
+ source: z.ZodDefault<z.ZodEnum<{
36
+ make: "make";
37
+ zapier: "zapier";
38
+ n8n: "n8n";
39
+ sdk: "sdk";
40
+ playground: "playground";
41
+ api: "api";
42
+ unknown: "unknown";
43
+ }>>;
35
44
  createdAt: z.ZodNumber;
36
45
  }, z.core.$strip>>;
37
46
  hasMore: z.ZodBoolean;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { errorStages, usageStatuses } from "@pdfvector/util";
2
+ import { apiSources, errorStages, usageStatuses } from "@pdfvector/util";
3
3
  import { z } from "zod";
4
4
  const usageRecordSchema = z.object({
5
5
  id: z.number(),
@@ -21,6 +21,7 @@ const usageRecordSchema = z.object({
21
21
  actualModel: z.string().nullable(),
22
22
  apiKey: z.string().nullable(),
23
23
  workspaceId: z.number().nullable(),
24
+ source: z.enum(apiSources).default("unknown"),
24
25
  createdAt: z.number(),
25
26
  });
26
27
  export const getUsageRecords = oc
@@ -1,6 +1,6 @@
1
- export * from "./get-free-usage-records";
2
- export * from "./get-usage-records";
3
- export * from "./health-check";
4
- export * from "./set-domain";
5
- export * from "./set-environment";
6
- export * from "./set-version";
1
+ export * from "./get-free-usage-records.js";
2
+ export * from "./get-usage-records.js";
3
+ export * from "./health-check.js";
4
+ export * from "./set-domain.js";
5
+ export * from "./set-environment.js";
6
+ export * from "./set-version.js";
@@ -1,6 +1,6 @@
1
- export * from "./get-free-usage-records";
2
- export * from "./get-usage-records";
3
- export * from "./health-check";
4
- export * from "./set-domain";
5
- export * from "./set-environment";
6
- export * from "./set-version";
1
+ export * from "./get-free-usage-records.js";
2
+ export * from "./get-usage-records.js";
3
+ export * from "./health-check.js";
4
+ export * from "./set-domain.js";
5
+ export * from "./set-environment.js";
6
+ export * from "./set-version.js";
@@ -1 +1 @@
1
- export * from "./validate-credential";
1
+ export * from "./validate-credential.js";
@@ -1 +1 @@
1
- export * from "./validate-credential";
1
+ export * from "./validate-credential.js";
@@ -1,8 +1,8 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { z } from "zod";
3
- import { pdfvectorModelSchema } from "../../pdfvector-model-schema";
4
- import { outputAskModelDescription, specializedAskModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes";
5
- import { getDefaultSpec } from "./get-default-spec";
3
+ import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
4
+ import { outputAskModelDescription, specializedAskModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
5
+ import { getDefaultSpec } from "./get-default-spec.js";
6
6
  const specializedModelSchema = z
7
7
  .enum(["auto", ...pdfvectorModelSchema.options])
8
8
  .default("auto");
@@ -1,9 +1,9 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { z } from "zod";
3
- import { jsonSchemaInput } from "../../json-schema-input";
4
- import { pdfvectorModelSchema } from "../../pdfvector-model-schema";
5
- import { outputExtractModelDescription, specializedExtractModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes";
6
- import { getDefaultSpec } from "./get-default-spec";
3
+ import { jsonSchemaInput } from "../../json-schema-input.js";
4
+ import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
5
+ import { outputExtractModelDescription, specializedExtractModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
6
+ import { getDefaultSpec } from "./get-default-spec.js";
7
7
  const specializedModelSchema = z
8
8
  .enum(["auto", ...pdfvectorModelSchema.options])
9
9
  .default("auto");
@@ -1,3 +1,3 @@
1
- export * from "./ask";
2
- export * from "./extract";
3
- export * from "./parse";
1
+ export * from "./ask.js";
2
+ export * from "./extract.js";
3
+ export * from "./parse.js";
@@ -1,3 +1,3 @@
1
- export * from "./ask";
2
- export * from "./extract";
3
- export * from "./parse";
1
+ export * from "./ask.js";
2
+ export * from "./extract.js";
3
+ export * from "./parse.js";
@@ -1,7 +1,7 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { z } from "zod";
3
- import { specializedParseModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes";
4
- import { getDefaultSpec } from "./get-default-spec";
3
+ import { specializedParseModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
4
+ import { getDefaultSpec } from "./get-default-spec.js";
5
5
  const specializedParseModelSchema = z
6
6
  .enum(["pro", "max", "auto"], {
7
7
  message: "model must be one of: pro, max, auto",
@@ -1,8 +1,8 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { z } from "zod";
3
- import { pdfvectorModelSchema } from "../../pdfvector-model-schema";
4
- import { documentAskModelDescription, outputAskModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes";
5
- import { getDefaultSpec } from "./get-default-spec";
3
+ import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
4
+ import { documentAskModelDescription, outputAskModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
5
+ import { getDefaultSpec } from "./get-default-spec.js";
6
6
  const askInputSchema = z.object({
7
7
  url: z
8
8
  .url()
@@ -1,9 +1,9 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { z } from "zod";
3
- import { jsonSchemaInput } from "../../json-schema-input";
4
- import { pdfvectorModelSchema } from "../../pdfvector-model-schema";
5
- import { documentExtractModelDescription, outputExtractModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes";
6
- import { getDefaultSpec } from "./get-default-spec";
3
+ import { jsonSchemaInput } from "../../json-schema-input.js";
4
+ import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
5
+ import { documentExtractModelDescription, outputExtractModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
6
+ import { getDefaultSpec } from "./get-default-spec.js";
7
7
  const extractInputSchema = z.object({
8
8
  url: z
9
9
  .url()
@@ -1,3 +1,3 @@
1
- export * from "./ask";
2
- export * from "./extract";
3
- export * from "./parse";
1
+ export * from "./ask.js";
2
+ export * from "./extract.js";
3
+ export * from "./parse.js";
@@ -1,3 +1,3 @@
1
- export * from "./ask";
2
- export * from "./extract";
3
- export * from "./parse";
1
+ export * from "./ask.js";
2
+ export * from "./extract.js";
3
+ export * from "./parse.js";
@@ -1,8 +1,8 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { z } from "zod";
3
- import { pdfvectorModelSchema } from "../../pdfvector-model-schema";
4
- import { documentParseModelDescription, outputModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes";
5
- import { getDefaultSpec } from "./get-default-spec";
3
+ import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
4
+ import { documentParseModelDescription, outputModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
5
+ import { getDefaultSpec } from "./get-default-spec.js";
6
6
  const parseInputSchema = z.object({
7
7
  url: z
8
8
  .url()
@@ -1,6 +1,6 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { z } from "zod";
3
- import { supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes";
3
+ import { supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
4
4
  const inputSchema = z.object({
5
5
  url: z
6
6
  .url()
@@ -1,4 +1,4 @@
1
- export { bankStatementParse } from "./bank-statement-parse";
2
- export { generateSchema } from "./generate-schema";
3
- export { publicationPdfUrl } from "./publication-pdf-url";
4
- export { rateLimitStatus } from "./rate-limit-status";
1
+ export { bankStatementParse } from "./bank-statement-parse.js";
2
+ export { generateSchema } from "./generate-schema.js";
3
+ export { publicationPdfUrl } from "./publication-pdf-url.js";
4
+ export { rateLimitStatus } from "./rate-limit-status.js";
@@ -1,4 +1,4 @@
1
- export { bankStatementParse } from "./bank-statement-parse";
2
- export { generateSchema } from "./generate-schema";
3
- export { publicationPdfUrl } from "./publication-pdf-url";
4
- export { rateLimitStatus } from "./rate-limit-status";
1
+ export { bankStatementParse } from "./bank-statement-parse.js";
2
+ export { generateSchema } from "./generate-schema.js";
3
+ export { publicationPdfUrl } from "./publication-pdf-url.js";
4
+ export { rateLimitStatus } from "./rate-limit-status.js";
@@ -1,8 +1,8 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { z } from "zod";
3
- import { pdfvectorModelSchema } from "../../pdfvector-model-schema";
4
- import { outputAskModelDescription, specializedAskModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes";
5
- import { getDefaultSpec } from "./get-default-spec";
3
+ import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
4
+ import { outputAskModelDescription, specializedAskModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
5
+ import { getDefaultSpec } from "./get-default-spec.js";
6
6
  const specializedModelSchema = z
7
7
  .enum(["auto", ...pdfvectorModelSchema.options])
8
8
  .default("auto");
@@ -1,9 +1,9 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { z } from "zod";
3
- import { jsonSchemaInput } from "../../json-schema-input";
4
- import { pdfvectorModelSchema } from "../../pdfvector-model-schema";
5
- import { outputExtractModelDescription, specializedExtractModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes";
6
- import { getDefaultSpec } from "./get-default-spec";
3
+ import { jsonSchemaInput } from "../../json-schema-input.js";
4
+ import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
5
+ import { outputExtractModelDescription, specializedExtractModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
6
+ import { getDefaultSpec } from "./get-default-spec.js";
7
7
  const specializedModelSchema = z
8
8
  .enum(["auto", ...pdfvectorModelSchema.options])
9
9
  .default("auto");
@@ -1,3 +1,3 @@
1
- export * from "./ask";
2
- export * from "./extract";
3
- export * from "./parse";
1
+ export * from "./ask.js";
2
+ export * from "./extract.js";
3
+ export * from "./parse.js";
@@ -1,3 +1,3 @@
1
- export * from "./ask";
2
- export * from "./extract";
3
- export * from "./parse";
1
+ export * from "./ask.js";
2
+ export * from "./extract.js";
3
+ export * from "./parse.js";
@@ -1,7 +1,7 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { z } from "zod";
3
- import { specializedParseModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes";
4
- import { getDefaultSpec } from "./get-default-spec";
3
+ import { specializedParseModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
4
+ import { getDefaultSpec } from "./get-default-spec.js";
5
5
  const specializedParseModelSchema = z
6
6
  .enum(["pro", "max", "auto"], {
7
7
  message: "model must be one of: pro, max, auto",
@@ -1,8 +1,8 @@
1
- export * as academic from "./academic";
2
- export * as admin from "./admin";
3
- export * as authenticate from "./authenticate";
4
- export * as bankStatement from "./bankStatement";
5
- export * as document from "./document";
6
- export * as free from "./free";
7
- export * as identity from "./identity";
8
- export * as invoice from "./invoice";
1
+ export * as academic from "./academic/index.js";
2
+ export * as admin from "./admin/index.js";
3
+ export * as authenticate from "./authenticate/index.js";
4
+ export * as bankStatement from "./bankStatement/index.js";
5
+ export * as document from "./document/index.js";
6
+ export * as free from "./free/index.js";
7
+ export * as identity from "./identity/index.js";
8
+ export * as invoice from "./invoice/index.js";
@@ -1,8 +1,8 @@
1
- export * as academic from "./academic";
2
- export * as admin from "./admin";
3
- export * as authenticate from "./authenticate";
4
- export * as bankStatement from "./bankStatement";
5
- export * as document from "./document";
6
- export * as free from "./free";
7
- export * as identity from "./identity";
8
- export * as invoice from "./invoice";
1
+ export * as academic from "./academic/index.js";
2
+ export * as admin from "./admin/index.js";
3
+ export * as authenticate from "./authenticate/index.js";
4
+ export * as bankStatement from "./bankStatement/index.js";
5
+ export * as document from "./document/index.js";
6
+ export * as free from "./free/index.js";
7
+ export * as identity from "./identity/index.js";
8
+ export * as invoice from "./invoice/index.js";
@@ -1,8 +1,8 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { z } from "zod";
3
- import { pdfvectorModelSchema } from "../../pdfvector-model-schema";
4
- import { outputAskModelDescription, specializedAskModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes";
5
- import { getDefaultSpec } from "./get-default-spec";
3
+ import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
4
+ import { outputAskModelDescription, specializedAskModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
5
+ import { getDefaultSpec } from "./get-default-spec.js";
6
6
  const specializedModelSchema = z
7
7
  .enum(["auto", ...pdfvectorModelSchema.options])
8
8
  .default("auto");
@@ -1,9 +1,9 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { z } from "zod";
3
- import { jsonSchemaInput } from "../../json-schema-input";
4
- import { pdfvectorModelSchema } from "../../pdfvector-model-schema";
5
- import { outputExtractModelDescription, specializedExtractModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes";
6
- import { getDefaultSpec } from "./get-default-spec";
3
+ import { jsonSchemaInput } from "../../json-schema-input.js";
4
+ import { pdfvectorModelSchema } from "../../pdfvector-model-schema.js";
5
+ import { outputExtractModelDescription, specializedExtractModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
6
+ import { getDefaultSpec } from "./get-default-spec.js";
7
7
  const specializedModelSchema = z
8
8
  .enum(["auto", ...pdfvectorModelSchema.options])
9
9
  .default("auto");
@@ -1,3 +1,3 @@
1
- export * from "./ask";
2
- export * from "./extract";
3
- export * from "./parse";
1
+ export * from "./ask.js";
2
+ export * from "./extract.js";
3
+ export * from "./parse.js";
@@ -1,3 +1,3 @@
1
- export * from "./ask";
2
- export * from "./extract";
3
- export * from "./parse";
1
+ export * from "./ask.js";
2
+ export * from "./extract.js";
3
+ export * from "./parse.js";
@@ -1,7 +1,7 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { z } from "zod";
3
- import { specializedParseModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes";
4
- import { getDefaultSpec } from "./get-default-spec";
3
+ import { specializedParseModelDescription, supportedFileFormatsDescription, supportedFileMimeErrorMessage, supportedFileMimes, supportedFileTypesLong, } from "../../supported-mimes.js";
4
+ import { getDefaultSpec } from "./get-default-spec.js";
5
5
  const specializedParseModelSchema = z
6
6
  .enum(["pro", "max", "auto"], {
7
7
  message: "model must be one of: pro, max, auto",
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @pdfvector/instance-contract
2
2
 
3
+ ## 0.0.43
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#226](https://github.com/phuctm97/pdfvector/pull/226) [`216ba54`](https://github.com/phuctm97/pdfvector/commit/216ba5427a32de5eb3346f0b3ff8d60f01fb8751) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Fix published ESM artifact import paths and bump zapier and make
9
+
10
+ - Updated dependencies [[`216ba54`](https://github.com/phuctm97/pdfvector/commit/216ba5427a32de5eb3346f0b3ff8d60f01fb8751)]:
11
+ - @pdfvector/util@0.0.22
12
+
13
+ ## 0.0.42
14
+ ### Patch Changes
15
+
16
+
17
+
18
+ - [#225](https://github.com/phuctm97/pdfvector/pull/225) [`5d72a6c`](https://github.com/phuctm97/pdfvector/commit/5d72a6cb2dc5535b8c624f25709f8ae7fd9cc15b) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Track API caller source per usage record
19
+
20
+ - Updated dependencies [[`5d72a6c`](https://github.com/phuctm97/pdfvector/commit/5d72a6cb2dc5535b8c624f25709f8ae7fd9cc15b)]:
21
+ - @pdfvector/util@0.0.21
22
+
3
23
  ## 0.0.41
4
24
  ### Patch Changes
5
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfvector/instance-contract",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "type": "module",
5
5
  "description": "API contract definitions for PDF Vector instance server",
6
6
  "license": "MIT",
@@ -22,10 +22,10 @@
22
22
  "dependencies": {
23
23
  "@orpc/client": "^1.14.0",
24
24
  "@orpc/contract": "^1.14.0",
25
- "@pdfvector/util": "0.0.20"
25
+ "@pdfvector/util": "0.0.21"
26
26
  },
27
27
  "peerDependencies": {
28
- "zod": "^4.3.6"
28
+ "zod": "^4.4.1"
29
29
  },
30
30
  "files": [
31
31
  ".tsc",