@podosoft/podokit-api-client 0.8.1 → 0.8.3

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 (2) hide show
  1. package/dist/index.d.ts +9 -5
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -330,13 +330,13 @@ export declare function createApiClient(options?: ApiClientOptions): {
330
330
  filterField: import("zod").ZodOptional<import("zod").ZodString>;
331
331
  filterValue: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBoolean]>, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodArray<import("zod").ZodNumber>]>>;
332
332
  filterOperator: import("zod").ZodOptional<import("zod").ZodEnum<{
333
+ in: "in";
334
+ lte: "lte";
333
335
  eq: "eq";
334
336
  ne: "ne";
337
+ lt: "lt";
335
338
  gt: "gt";
336
339
  gte: "gte";
337
- lt: "lt";
338
- lte: "lte";
339
- in: "in";
340
340
  not_in: "not_in";
341
341
  contains: "contains";
342
342
  starts_with: "starts_with";
@@ -1650,6 +1650,7 @@ export declare function createApiClient(options?: ApiClientOptions): {
1650
1650
  OTP_NOT_CONFIGURED: import("better-auth").RawError<"OTP_NOT_CONFIGURED">;
1651
1651
  OTP_HAS_EXPIRED: import("better-auth").RawError<"OTP_HAS_EXPIRED">;
1652
1652
  TOTP_NOT_ENABLED: import("better-auth").RawError<"TOTP_NOT_ENABLED">;
1653
+ TOTP_ALREADY_ENABLED: import("better-auth").RawError<"TOTP_ALREADY_ENABLED">;
1653
1654
  TOTP_NOT_CONFIGURED: import("better-auth").RawError<"TOTP_NOT_CONFIGURED">;
1654
1655
  TWO_FACTOR_NOT_ENABLED: import("better-auth").RawError<"TWO_FACTOR_NOT_ENABLED">;
1655
1656
  BACKUP_CODES_NOT_ENABLED: import("better-auth").RawError<"BACKUP_CODES_NOT_ENABLED">;
@@ -1686,6 +1687,7 @@ export declare function createApiClient(options?: ApiClientOptions): {
1686
1687
  OTP_NOT_CONFIGURED: import("better-auth").RawError<"OTP_NOT_CONFIGURED">;
1687
1688
  OTP_HAS_EXPIRED: import("better-auth").RawError<"OTP_HAS_EXPIRED">;
1688
1689
  TOTP_NOT_ENABLED: import("better-auth").RawError<"TOTP_NOT_ENABLED">;
1690
+ TOTP_ALREADY_ENABLED: import("better-auth").RawError<"TOTP_ALREADY_ENABLED">;
1689
1691
  TOTP_NOT_CONFIGURED: import("better-auth").RawError<"TOTP_NOT_CONFIGURED">;
1690
1692
  TWO_FACTOR_NOT_ENABLED: import("better-auth").RawError<"TWO_FACTOR_NOT_ENABLED">;
1691
1693
  BACKUP_CODES_NOT_ENABLED: import("better-auth").RawError<"BACKUP_CODES_NOT_ENABLED">;
@@ -2530,14 +2532,14 @@ export declare function createApiClient(options?: ApiClientOptions): {
2530
2532
  unique: true;
2531
2533
  returned: true;
2532
2534
  transform: {
2533
- input(value: import("better-auth").DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
2535
+ input(value: import("better-auth").DBPrimitive): string | number | boolean | Date | unknown[] | Record<string, unknown> | null | undefined;
2534
2536
  };
2535
2537
  };
2536
2538
  displayUsername: {
2537
2539
  type: "string";
2538
2540
  required: false;
2539
2541
  transform: {
2540
- input(value: import("better-auth").DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
2542
+ input(value: import("better-auth").DBPrimitive): string | number | boolean | Date | unknown[] | Record<string, unknown> | null | undefined;
2541
2543
  };
2542
2544
  };
2543
2545
  };
@@ -3241,6 +3243,8 @@ export declare function createApiClient(options?: ApiClientOptions): {
3241
3243
  storage: "memory" | "database" | "secondary-storage";
3242
3244
  } & Omit<import("better-auth").BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
3243
3245
  adapter: import("better-auth").DBAdapter<import("better-auth").BetterAuthOptions>;
3246
+ checkSchema?: import("@better-auth/core/db/internal").SchemaCheck | undefined;
3247
+ explicitSchemaCheck?: import("@better-auth/core/db/internal").SchemaCheck | undefined;
3244
3248
  internalAdapter: import("better-auth").InternalAdapter<import("better-auth").BetterAuthOptions>;
3245
3249
  createAuthCookie: (cookieName: string, overrideAttributes?: Partial<import("better-call").CookieOptions> | undefined) => import("better-auth").BetterAuthCookie;
3246
3250
  secret: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@podosoft/podokit-api-client",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "description": "Typed API client for PodoKit backends: better-auth (auth + admin) plus a standard error-envelope request layer.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@podosoft/podokit-contracts": "^0.4.0",
33
- "better-auth": "^1.7.1",
34
- "@better-auth/api-key": "^1.7.1",
35
- "@better-auth/passkey": "^1.7.1"
33
+ "better-auth": "^1.7.4",
34
+ "@better-auth/api-key": "^1.7.4",
35
+ "@better-auth/passkey": "^1.7.4"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "tsc -p tsconfig.json",