@pdfvector/instance-contract 0.2.6 → 0.2.8

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.
@@ -12,11 +12,16 @@ export declare const getProviderUsageRecords: import("@orpc/contract").ContractP
12
12
  service: z.ZodString;
13
13
  providerModel: z.ZodNullable<z.ZodString>;
14
14
  providerRegion: z.ZodNullable<z.ZodString>;
15
+ providerResource: z.ZodNullable<z.ZodString>;
15
16
  documentType: z.ZodNullable<z.ZodString>;
16
17
  fileSize: z.ZodNullable<z.ZodNumber>;
17
18
  pageCount: z.ZodNullable<z.ZodNumber>;
18
19
  inputTokens: z.ZodNullable<z.ZodNumber>;
20
+ uncachedInputTokens: z.ZodNullable<z.ZodNumber>;
21
+ cachedInputTokens: z.ZodNullable<z.ZodNumber>;
22
+ cacheWriteTokens: z.ZodNullable<z.ZodNumber>;
19
23
  outputTokens: z.ZodNullable<z.ZodNumber>;
24
+ reasoningTokens: z.ZodNullable<z.ZodNumber>;
20
25
  totalTokens: z.ZodNullable<z.ZodNumber>;
21
26
  featuresJson: z.ZodNullable<z.ZodString>;
22
27
  status: z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"get-provider-usage-records.d.ts","sourceRoot":"","sources":["../../../../lib/router/admin/get-provider-usage-records.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2BxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAsBlC,CAAC"}
1
+ {"version":3,"file":"get-provider-usage-records.d.ts","sourceRoot":"","sources":["../../../../lib/router/admin/get-provider-usage-records.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgCxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAsBlC,CAAC"}
@@ -10,11 +10,16 @@ const providerUsageRecordSchema = z.object({
10
10
  service: z.string(),
11
11
  providerModel: z.string().nullable(),
12
12
  providerRegion: z.string().nullable(),
13
+ providerResource: z.string().nullable(),
13
14
  documentType: z.string().nullable(),
14
15
  fileSize: z.number().nullable(),
15
16
  pageCount: z.number().nullable(),
16
17
  inputTokens: z.number().nullable(),
18
+ uncachedInputTokens: z.number().nullable(),
19
+ cachedInputTokens: z.number().nullable(),
20
+ cacheWriteTokens: z.number().nullable(),
17
21
  outputTokens: z.number().nullable(),
22
+ reasoningTokens: z.number().nullable(),
18
23
  totalTokens: z.number().nullable(),
19
24
  featuresJson: z.string().nullable(),
20
25
  status: z.enum(usageStatuses),
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @pdfvector/instance-contract
2
2
 
3
+ ## 0.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#353](https://github.com/phuctm97/pdfvector/pull/353) [`f36260d`](https://github.com/phuctm97/pdfvector/commit/f36260d3f793f7b58b005dadd66adfd90dcdb598) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Upgrade every workspace dependency to its latest compatible version, migrate the SPA to TanStack Table 9, and use Papa Parse for robust blog CSV imports.
8
+
9
+ - [#353](https://github.com/phuctm97/pdfvector/pull/353) [`f36260d`](https://github.com/phuctm97/pdfvector/commit/f36260d3f793f7b58b005dadd66adfd90dcdb598) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Persist invoice-reconcilable Azure usage meters, charge credits when provider work succeeds before a request error, and preserve overage usage in gateway totals.
10
+ - Updated dependencies [[`f36260d`](https://github.com/phuctm97/pdfvector/commit/f36260d3f793f7b58b005dadd66adfd90dcdb598)]:
11
+ - @pdfvector/util@0.0.31
12
+
13
+ ## 0.2.7
14
+ ### Patch Changes
15
+
16
+
17
+
18
+ - [#344](https://github.com/phuctm97/pdfvector/pull/344) [`f73ad67`](https://github.com/phuctm97/pdfvector/commit/f73ad675d3d3a1c5f02faa209857e4db795fef40) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Move every application into the packages workspace, remove Turbo, simplify repository scripts, and enforce Biome, typechecking, and complete package coverage in validation.
19
+
20
+ - Updated dependencies [[`f73ad67`](https://github.com/phuctm97/pdfvector/commit/f73ad675d3d3a1c5f02faa209857e4db795fef40)]:
21
+ - @pdfvector/api-docs@0.0.8
22
+ - @pdfvector/util@0.0.30
23
+
3
24
  ## 0.2.6
4
25
  ### Patch Changes
5
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfvector/instance-contract",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "type": "module",
5
5
  "description": "API contract definitions for PDF Vector instance server",
6
6
  "license": "MIT",
@@ -20,10 +20,10 @@
20
20
  },
21
21
  "main": ".tsc/lib/index.js",
22
22
  "dependencies": {
23
- "@orpc/client": "^1.14.12",
24
- "@orpc/contract": "^1.14.12",
25
- "@pdfvector/api-docs": "^0.0.7",
26
- "@pdfvector/util": "^0.0.29"
23
+ "@orpc/client": "^1.15.0",
24
+ "@orpc/contract": "^1.15.0",
25
+ "@pdfvector/api-docs": "^0.0.8",
26
+ "@pdfvector/util": "^0.0.31"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "zod": "^4.4.3"