@ogment-ai/cli-contract 0.3.3 → 0.3.5
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/v1/auth.d.ts +2 -2
- package/dist/v1/auth.js +2 -2
- package/package.json +15 -18
package/dist/v1/auth.d.ts
CHANGED
|
@@ -19,12 +19,12 @@ export declare const oauthClientRegistrationSchema: z.ZodObject<{
|
|
|
19
19
|
client_name: z.ZodString;
|
|
20
20
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
21
21
|
redirect_uris: z.ZodArray<z.ZodString>;
|
|
22
|
-
scope: z.ZodString
|
|
22
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
export declare const oauthTokenSchema: z.ZodObject<{
|
|
25
25
|
access_token: z.ZodString;
|
|
26
26
|
expires_in: z.ZodNumber;
|
|
27
|
-
scope: z.ZodString
|
|
27
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
28
28
|
token_type: z.ZodString;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
export declare const browserAgentCallbackSchema: z.ZodObject<{
|
package/dist/v1/auth.js
CHANGED
|
@@ -20,12 +20,12 @@ export const oauthClientRegistrationSchema = z.object({
|
|
|
20
20
|
client_name: z.string().min(1),
|
|
21
21
|
client_secret: z.string().optional(),
|
|
22
22
|
redirect_uris: z.array(z.string().min(1)),
|
|
23
|
-
scope: z.string().
|
|
23
|
+
scope: z.string().optional().default(""),
|
|
24
24
|
});
|
|
25
25
|
export const oauthTokenSchema = z.object({
|
|
26
26
|
access_token: z.string().min(1),
|
|
27
27
|
expires_in: z.number().int().positive(),
|
|
28
|
-
scope: z.string().
|
|
28
|
+
scope: z.string().optional().default(""),
|
|
29
29
|
token_type: z.string().min(1),
|
|
30
30
|
});
|
|
31
31
|
export const browserAgentCallbackSchema = z.object({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ogment-ai/cli-contract",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Shared API contracts for Ogment CLI and backend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -16,20 +16,6 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
|
-
"scripts": {
|
|
20
|
-
"clean": "node -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true });\"",
|
|
21
|
-
"build": "npm run clean && tsc -p tsconfig.build.json",
|
|
22
|
-
"check-types": "tsc -p tsconfig.json --noEmit",
|
|
23
|
-
"lint": "oxlint --type-aware --type-check --tsconfig tsconfig.json src",
|
|
24
|
-
"lint:fix": "npm run lint -- --fix",
|
|
25
|
-
"format": "oxfmt --write src test",
|
|
26
|
-
"format:check": "oxfmt --check src test",
|
|
27
|
-
"test": "vitest -c vitest.config.ts",
|
|
28
|
-
"test:run": "vitest run -c vitest.config.ts",
|
|
29
|
-
"test:coverage": "npm run test:run -- --coverage",
|
|
30
|
-
"qa": "npm run lint && npm run check-types && npm run test:run",
|
|
31
|
-
"prepublishOnly": "npm run build"
|
|
32
|
-
},
|
|
33
19
|
"license": "MIT",
|
|
34
20
|
"dependencies": {
|
|
35
21
|
"zod": "^4.3.6"
|
|
@@ -37,9 +23,20 @@
|
|
|
37
23
|
"devDependencies": {
|
|
38
24
|
"@types/node": "^22.18.12",
|
|
39
25
|
"@vitest/coverage-v8": "^4.0.18",
|
|
40
|
-
"oxfmt": "^0.
|
|
41
|
-
"oxlint": "^1.
|
|
26
|
+
"oxfmt": "^0.35.0",
|
|
27
|
+
"oxlint": "^1.50.0",
|
|
28
|
+
"oxlint-tsgolint": "^0.14.2",
|
|
42
29
|
"typescript": "^5.9.3",
|
|
43
30
|
"vitest": "^4.0.18"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"clean": "node -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true });\"",
|
|
34
|
+
"build": "pnpm clean && tsc -p tsconfig.build.json",
|
|
35
|
+
"lint": "oxlint --type-aware --type-check --tsconfig tsconfig.json src",
|
|
36
|
+
"lint:fix": "pnpm lint -- --fix",
|
|
37
|
+
"format": "oxfmt --write src test",
|
|
38
|
+
"format:check": "oxfmt --check src test",
|
|
39
|
+
"test": "vitest run -c vitest.config.ts",
|
|
40
|
+
"test:coverage": "vitest run -c vitest.config.ts --coverage"
|
|
44
41
|
}
|
|
45
|
-
}
|
|
42
|
+
}
|