@tnnevol/dsh-codex-auth 0.1.2-rc.1 → 0.1.2-rc.1.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/lib/auth-paths.d.ts +3 -5
- package/lib/auth-paths.js +3 -5
- package/lib/client.js +199 -1232
- package/lib/index.d.ts +4 -5
- package/lib/index.js +245 -290
- package/lib/style.css +1 -1
- package/package.json +4 -9
package/lib/auth-paths.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
//#region src/contracts/auth-paths.d.ts
|
|
2
2
|
/** Browser-facing paths owned by the standalone Codex authentication plugin. */
|
|
3
|
-
/** Host settings namespace used to dispatch the browser settings card. */
|
|
4
|
-
declare const CODEX_AUTH_SETTINGS_NAMESPACE = "dsh-codex-auth";
|
|
5
3
|
declare const CODEX_AUTH_STATUS_PATH = "/plugins/dsh-codex-auth-plugin/auth/status";
|
|
6
4
|
declare const CODEX_AUTH_LOGIN_PATH = "/plugins/dsh-codex-auth-plugin/auth/login";
|
|
7
5
|
declare const CODEX_AUTH_LOGOUT_PATH = "/plugins/dsh-codex-auth-plugin/auth/logout";
|
|
8
6
|
declare const CODEX_USAGE_PATH = "/plugins/dsh-codex-auth-plugin/auth/usage";
|
|
9
|
-
/** Same-origin settings endpoint used when DSH marks a NAS browser as remote. */
|
|
10
|
-
declare const CODEX_AUTH_SETTINGS_PATH = "/plugins/dsh-codex-auth-plugin/auth/settings";
|
|
11
7
|
/** Same-origin endpoint for the DSH-wide Codex default model selection. */
|
|
12
8
|
declare const CODEX_GLOBAL_MODEL_PATH = "/plugins/dsh-codex-auth-plugin/auth/global-model";
|
|
9
|
+
/** Same-origin endpoint that refreshes the OpenAI Codex route's model catalog. */
|
|
10
|
+
declare const CODEX_MODEL_REFRESH_PATH = "/plugins/dsh-codex-auth-plugin/auth/refresh-models";
|
|
13
11
|
//#endregion
|
|
14
|
-
export { CODEX_AUTH_LOGIN_PATH, CODEX_AUTH_LOGOUT_PATH,
|
|
12
|
+
export { CODEX_AUTH_LOGIN_PATH, CODEX_AUTH_LOGOUT_PATH, CODEX_AUTH_STATUS_PATH, CODEX_GLOBAL_MODEL_PATH, CODEX_MODEL_REFRESH_PATH, CODEX_USAGE_PATH };
|
package/lib/auth-paths.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
//#region src/contracts/auth-paths.ts
|
|
2
2
|
/** Browser-facing paths owned by the standalone Codex authentication plugin. */
|
|
3
|
-
/** Host settings namespace used to dispatch the browser settings card. */
|
|
4
|
-
const CODEX_AUTH_SETTINGS_NAMESPACE = "dsh-codex-auth";
|
|
5
3
|
const CODEX_AUTH_STATUS_PATH = "/plugins/dsh-codex-auth-plugin/auth/status";
|
|
6
4
|
const CODEX_AUTH_LOGIN_PATH = "/plugins/dsh-codex-auth-plugin/auth/login";
|
|
7
5
|
const CODEX_AUTH_LOGOUT_PATH = "/plugins/dsh-codex-auth-plugin/auth/logout";
|
|
8
6
|
const CODEX_USAGE_PATH = "/plugins/dsh-codex-auth-plugin/auth/usage";
|
|
9
|
-
/** Same-origin settings endpoint used when DSH marks a NAS browser as remote. */
|
|
10
|
-
const CODEX_AUTH_SETTINGS_PATH = "/plugins/dsh-codex-auth-plugin/auth/settings";
|
|
11
7
|
/** Same-origin endpoint for the DSH-wide Codex default model selection. */
|
|
12
8
|
const CODEX_GLOBAL_MODEL_PATH = "/plugins/dsh-codex-auth-plugin/auth/global-model";
|
|
9
|
+
/** Same-origin endpoint that refreshes the OpenAI Codex route's model catalog. */
|
|
10
|
+
const CODEX_MODEL_REFRESH_PATH = "/plugins/dsh-codex-auth-plugin/auth/refresh-models";
|
|
13
11
|
//#endregion
|
|
14
|
-
export { CODEX_AUTH_LOGIN_PATH, CODEX_AUTH_LOGOUT_PATH,
|
|
12
|
+
export { CODEX_AUTH_LOGIN_PATH, CODEX_AUTH_LOGOUT_PATH, CODEX_AUTH_STATUS_PATH, CODEX_GLOBAL_MODEL_PATH, CODEX_MODEL_REFRESH_PATH, CODEX_USAGE_PATH };
|