@openai-oauth/local 2.0.0-beta.1 → 2.0.0-beta.2

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
@@ -66,7 +66,6 @@ type LocalOpenAIOAuthOptions = {
66
66
  headers?: Record<string, string>;
67
67
  instructions?: string;
68
68
  openAIBaseURL?: string;
69
- storeResponses?: boolean;
70
69
  };
71
70
  ```
72
71
 
package/dist/index.d.ts CHANGED
@@ -6,7 +6,6 @@ export type LocalOpenAIOAuthOptions = Omit<AuthLoaderOptions, "fetch"> & {
6
6
  headers?: Record<string, string>;
7
7
  instructions?: string;
8
8
  openAIBaseURL?: string;
9
- storeResponses?: boolean;
10
9
  };
11
10
  export declare const openaiCredentials: (options?: LocalOpenAIOAuthOptions) => OpenAIOAuth;
12
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EACb,WAAW,EAEX,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACN,KAAK,iBAAiB,EAGtB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,GAAG;IACxE,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAoBD,eAAO,MAAM,iBAAiB,GAC7B,UAAS,uBAA4B,KACnC,WAgCD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EACb,WAAW,EAEX,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACN,KAAK,iBAAiB,EAGtB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,GAAG;IACxE,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAqBD,eAAO,MAAM,iBAAiB,GAC7B,UAAS,uBAA4B,KACnC,WA+BD,CAAA"}
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ const pickFetch = (customFetch) => {
11
11
  const toSession = (auth) => ({
12
12
  accessToken: auth.accessToken,
13
13
  accountId: auth.accountId,
14
+ isFedRamp: auth.isFedRamp,
14
15
  idToken: auth.idToken,
15
16
  refreshToken: auth.refreshToken,
16
17
  lastRefresh: auth.lastRefresh,
@@ -22,7 +23,6 @@ export const openaiCredentials = (options = {}) => ({
22
23
  headers: options.headers,
23
24
  instructions: options.instructions,
24
25
  openAIBaseURL: options.openAIBaseURL,
25
- storeResponses: options.storeResponses,
26
26
  getSession: async () => toSession(await loadAuthTokens({
27
27
  authFilePath: options.authFilePath,
28
28
  clientId: options.clientId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openai-oauth/local",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.2",
4
4
  "description": "Local Codex auth-file auth handle for openai-oauth.",
5
5
  "keywords": [
6
6
  "openai",
@@ -36,7 +36,7 @@
36
36
  "access": "public"
37
37
  },
38
38
  "dependencies": {
39
- "@openai-oauth/core": "2.0.0-beta.1"
39
+ "@openai-oauth/core": "2.0.0-beta.2"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "20.17.24",