@pdfvector/instance-contract 0.0.15 → 0.0.16

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.
@@ -17,6 +17,8 @@ export declare const getUsageRecords: import("@orpc/contract").ContractProcedure
17
17
  operation: z.ZodString;
18
18
  pageCount: z.ZodNullable<z.ZodNumber>;
19
19
  requestedModel: z.ZodString;
20
+ apiKey: z.ZodNullable<z.ZodString>;
21
+ workspaceId: z.ZodNullable<z.ZodNumber>;
20
22
  createdAt: z.ZodNumber;
21
23
  }, z.core.$strip>>;
22
24
  hasMore: z.ZodBoolean;
@@ -14,6 +14,8 @@ const usageRecordSchema = z.object({
14
14
  operation: z.string(),
15
15
  pageCount: z.number().nullable(),
16
16
  requestedModel: z.string(),
17
+ apiKey: z.string().nullable(),
18
+ workspaceId: z.number().nullable(),
17
19
  createdAt: z.number(),
18
20
  });
19
21
  export const getUsageRecords = oc
@@ -1,6 +1,5 @@
1
1
  export * from "./get-usage-records";
2
2
  export * from "./health-check";
3
- export * from "./set-credit-status";
4
3
  export * from "./set-domain";
5
4
  export * from "./set-environment";
6
5
  export * from "./set-version";
@@ -1,6 +1,5 @@
1
1
  export * from "./get-usage-records";
2
2
  export * from "./health-check";
3
- export * from "./set-credit-status";
4
3
  export * from "./set-domain";
5
4
  export * from "./set-environment";
6
5
  export * from "./set-version";
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @pdfvector/instance-contract
2
2
 
3
+ ## 0.0.16
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#108](https://github.com/phuctm97/pdfvector/pull/108) [`28b850f`](https://github.com/phuctm97/pdfvector/commit/28b850f3d8cdaa7ec8225cb4e1f1ffcd4a1a23bd) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Add JWT
9
+
3
10
  ## 0.0.15
4
11
  ### Patch Changes
5
12
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@pdfvector/instance-contract",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "type": "module",
5
5
  "main": ".tsc/lib/index.js",
6
6
  "dependencies": {
7
- "@orpc/contract": "^1.13.6",
7
+ "@orpc/contract": "^1.13.10",
8
8
  "zod": "^4.3.6"
9
9
  },
10
10
  "files": [
@@ -1,6 +0,0 @@
1
- import { z } from "zod";
2
- export declare const setCreditStatus: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3
- blocked: z.ZodBoolean;
4
- }, z.core.$strip>, z.ZodObject<{
5
- message: z.ZodString;
6
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
@@ -1,14 +0,0 @@
1
- import { oc } from "@orpc/contract";
2
- import { z } from "zod";
3
- export const setCreditStatus = oc
4
- .route({
5
- summary: "Set credit status",
6
- description: "Set whether the instance is blocked due to credit limits",
7
- tags: ["Admin"],
8
- spec: (op) => {
9
- op.security = [{ bearerAuth: [] }];
10
- return op;
11
- },
12
- })
13
- .input(z.object({ blocked: z.boolean() }))
14
- .output(z.object({ message: z.string() }));