@podosoft/podokit-api-client 0.9.2 → 0.10.1

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.
package/README.md CHANGED
@@ -84,7 +84,7 @@ also re-exported so account UIs can display the exact limits enforced by the API
84
84
 
85
85
  ## Authentication upgrades
86
86
 
87
- The client requires Better Auth 1.7.10 or newer within the 1.x release line, with
87
+ The client requires Better Auth 1.7.12 or newer within the 1.x release line, with
88
88
  matching API key and passkey plugins. Upgrade the backend and its integrations
89
89
  together. The 1.7.7 security update changes verification-record namespaces and
90
90
  OAuth state encryption; pending Magic Links and OAuth/SAML sign-ins must be
package/dist/index.d.ts CHANGED
@@ -5065,35 +5065,9 @@ export declare function createApiClient(options?: ApiClientOptions): {
5065
5065
  owner: import("better-auth/client").Role;
5066
5066
  };
5067
5067
  teams: {
5068
- enabled: false;
5068
+ enabled: true;
5069
5069
  };
5070
- schema: {
5071
- organization?: {
5072
- additionalFields?: {
5073
- [key: string]: import("better-auth").DBFieldAttribute;
5074
- };
5075
- };
5076
- member?: {
5077
- additionalFields?: {
5078
- [key: string]: import("better-auth").DBFieldAttribute;
5079
- };
5080
- };
5081
- invitation?: {
5082
- additionalFields?: {
5083
- [key: string]: import("better-auth").DBFieldAttribute;
5084
- };
5085
- };
5086
- team?: {
5087
- additionalFields?: {
5088
- [key: string]: import("better-auth").DBFieldAttribute;
5089
- };
5090
- };
5091
- organizationRole?: {
5092
- additionalFields?: {
5093
- [key: string]: import("better-auth").DBFieldAttribute;
5094
- };
5095
- };
5096
- } | undefined;
5070
+ schema: unknown;
5097
5071
  dynamicAccessControl: {
5098
5072
  enabled: false;
5099
5073
  };
@@ -5107,6 +5081,7 @@ export declare function createApiClient(options?: ApiClientOptions): {
5107
5081
  role: "admin" | "member" | "owner";
5108
5082
  createdAt: Date;
5109
5083
  userId: string;
5084
+ teamId?: string | undefined | undefined;
5110
5085
  user: {
5111
5086
  id: string;
5112
5087
  email: string;
@@ -5123,6 +5098,14 @@ export declare function createApiClient(options?: ApiClientOptions): {
5123
5098
  inviterId: string;
5124
5099
  expiresAt: Date;
5125
5100
  createdAt: Date;
5101
+ teamId?: string | undefined | undefined;
5102
+ }[];
5103
+ teams: {
5104
+ id: string;
5105
+ name: string;
5106
+ organizationId: string;
5107
+ createdAt: Date;
5108
+ updatedAt?: Date | undefined;
5126
5109
  }[];
5127
5110
  } & {
5128
5111
  id: string;
@@ -5149,6 +5132,7 @@ export declare function createApiClient(options?: ApiClientOptions): {
5149
5132
  inviterId: string;
5150
5133
  expiresAt: Date;
5151
5134
  createdAt: Date;
5135
+ teamId?: string | undefined | undefined;
5152
5136
  };
5153
5137
  Member: {
5154
5138
  id: string;
@@ -5156,6 +5140,7 @@ export declare function createApiClient(options?: ApiClientOptions): {
5156
5140
  role: "admin" | "member" | "owner";
5157
5141
  createdAt: Date;
5158
5142
  userId: string;
5143
+ teamId?: string | undefined | undefined;
5159
5144
  user: {
5160
5145
  id: string;
5161
5146
  email: string;
@@ -5204,6 +5189,7 @@ export declare function createApiClient(options?: ApiClientOptions): {
5204
5189
  role: "admin" | "member" | "owner";
5205
5190
  createdAt: Date;
5206
5191
  userId: string;
5192
+ teamId?: string | undefined | undefined;
5207
5193
  user: {
5208
5194
  id: string;
5209
5195
  email: string;
@@ -5220,6 +5206,7 @@ export declare function createApiClient(options?: ApiClientOptions): {
5220
5206
  inviterId: string;
5221
5207
  expiresAt: Date;
5222
5208
  createdAt: Date;
5209
+ teamId?: string | undefined | undefined;
5223
5210
  }[];
5224
5211
  }>>;
5225
5212
  listOrganizations: import("better-auth/client").AuthQueryAtom<{
package/dist/index.js CHANGED
@@ -112,7 +112,8 @@ export function createApiClient(options = {}) {
112
112
  phoneNumberClient(),
113
113
  apiKeyClient(),
114
114
  passkeyClient(),
115
- organizationClient(),
115
+ // Teams are typed on the client; the server setting decides whether they answer.
116
+ organizationClient({ teams: { enabled: true } }),
116
117
  inferAdditionalFields({
117
118
  user: {
118
119
  signupApproved: { type: "boolean", required: false, defaultValue: true, input: false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@podosoft/podokit-api-client",
3
- "version": "0.9.2",
3
+ "version": "0.10.1",
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",
@@ -29,10 +29,10 @@
29
29
  "provenance": true
30
30
  },
31
31
  "dependencies": {
32
- "@podosoft/podokit-contracts": "^0.6.0",
33
- "better-auth": "^1.7.10",
34
- "@better-auth/api-key": "^1.7.10",
35
- "@better-auth/passkey": "^1.7.10"
32
+ "@podosoft/podokit-contracts": "^0.7.0",
33
+ "better-auth": "^1.7.12",
34
+ "@better-auth/api-key": "^1.7.12",
35
+ "@better-auth/passkey": "^1.7.12"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "tsc -p tsconfig.json",