@tern-secure/types 1.1.0-canary.v20251003171521 → 1.1.0-canary.v20251008131428

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/dist/index.d.mts CHANGED
@@ -136,11 +136,14 @@ interface CookieStore {
136
136
  delete(name: string): Promise<void>;
137
137
  }
138
138
  interface CookieOptions {
139
- maxAge?: number;
140
- httpOnly?: boolean;
141
- secure?: boolean;
142
- sameSite?: 'strict' | 'lax' | 'none';
143
- path?: string;
139
+ httpOnly?: boolean | undefined;
140
+ path?: string | undefined;
141
+ partitioned?: boolean | undefined;
142
+ maxAge?: number | undefined;
143
+ expires?: Date | undefined;
144
+ priority?: 'low' | 'medium' | 'high' | undefined;
145
+ sameSite?: 'strict' | 'lax' | 'none' | undefined;
146
+ secure?: boolean | undefined;
144
147
  }
145
148
 
146
149
  type AuthErrorCode = keyof typeof ERRORS;
@@ -191,22 +194,25 @@ interface CorsOptions {
191
194
  skipSameOrigin?: boolean;
192
195
  }
193
196
  interface SessionCookieConfig {
194
- domain?: string;
195
197
  path?: string;
196
198
  httpOnly?: boolean;
197
199
  sameSite?: 'strict' | 'lax' | 'none';
200
+ partitioned?: boolean;
198
201
  maxAge?: number;
202
+ priority?: 'low' | 'medium' | 'high';
199
203
  }
200
204
  interface TokenCookieConfig {
201
- domain?: string;
202
205
  path: string;
203
206
  httpOnly: boolean;
204
207
  sameSite: 'strict' | 'lax' | 'none';
208
+ partitioned?: boolean;
205
209
  maxAge: number;
210
+ expires?: Date;
211
+ priority?: 'low' | 'medium' | 'high';
206
212
  }
207
213
  interface CookieOpts extends CookieOptions {
208
- namePrefix?: string;
209
214
  domain?: string;
215
+ namePrefix?: string;
210
216
  session?: SessionCookieConfig;
211
217
  }
212
218
  interface RateLimitOptions {
package/dist/index.d.ts CHANGED
@@ -136,11 +136,14 @@ interface CookieStore {
136
136
  delete(name: string): Promise<void>;
137
137
  }
138
138
  interface CookieOptions {
139
- maxAge?: number;
140
- httpOnly?: boolean;
141
- secure?: boolean;
142
- sameSite?: 'strict' | 'lax' | 'none';
143
- path?: string;
139
+ httpOnly?: boolean | undefined;
140
+ path?: string | undefined;
141
+ partitioned?: boolean | undefined;
142
+ maxAge?: number | undefined;
143
+ expires?: Date | undefined;
144
+ priority?: 'low' | 'medium' | 'high' | undefined;
145
+ sameSite?: 'strict' | 'lax' | 'none' | undefined;
146
+ secure?: boolean | undefined;
144
147
  }
145
148
 
146
149
  type AuthErrorCode = keyof typeof ERRORS;
@@ -191,22 +194,25 @@ interface CorsOptions {
191
194
  skipSameOrigin?: boolean;
192
195
  }
193
196
  interface SessionCookieConfig {
194
- domain?: string;
195
197
  path?: string;
196
198
  httpOnly?: boolean;
197
199
  sameSite?: 'strict' | 'lax' | 'none';
200
+ partitioned?: boolean;
198
201
  maxAge?: number;
202
+ priority?: 'low' | 'medium' | 'high';
199
203
  }
200
204
  interface TokenCookieConfig {
201
- domain?: string;
202
205
  path: string;
203
206
  httpOnly: boolean;
204
207
  sameSite: 'strict' | 'lax' | 'none';
208
+ partitioned?: boolean;
205
209
  maxAge: number;
210
+ expires?: Date;
211
+ priority?: 'low' | 'medium' | 'high';
206
212
  }
207
213
  interface CookieOpts extends CookieOptions {
208
- namePrefix?: string;
209
214
  domain?: string;
215
+ namePrefix?: string;
210
216
  session?: SessionCookieConfig;
211
217
  }
212
218
  interface RateLimitOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tern-secure/types",
3
- "version": "1.1.0-canary.v20251003171521",
3
+ "version": "1.1.0-canary.v20251008131428",
4
4
  "description": "Type definitions for TernSecure packages",
5
5
  "repository": {
6
6
  "type": "git",