@pdfvector/instance-contract 0.0.14 → 0.0.15

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.
@@ -1,5 +1,6 @@
1
1
  export * from "./get-usage-records";
2
2
  export * from "./health-check";
3
+ export * from "./set-credit-status";
3
4
  export * from "./set-domain";
4
5
  export * from "./set-environment";
5
6
  export * from "./set-version";
@@ -1,5 +1,6 @@
1
1
  export * from "./get-usage-records";
2
2
  export * from "./health-check";
3
+ export * from "./set-credit-status";
3
4
  export * from "./set-domain";
4
5
  export * from "./set-environment";
5
6
  export * from "./set-version";
@@ -0,0 +1,6 @@
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>>;
@@ -0,0 +1,14 @@
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() }));
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @pdfvector/instance-contract
2
2
 
3
+ ## 0.0.15
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#105](https://github.com/phuctm97/pdfvector/pull/105) [`367df86`](https://github.com/phuctm97/pdfvector/commit/367df86a7b315d79a0e8de359feacc010d2b1250) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Update credits systems
9
+
3
10
  ## 0.0.14
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.14",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "main": ".tsc/lib/index.js",
6
6
  "dependencies": {
7
- "@orpc/contract": "^1.13.5",
7
+ "@orpc/contract": "^1.13.6",
8
8
  "zod": "^4.3.6"
9
9
  },
10
10
  "files": [