@scalar/api-client 2.6.0 → 2.7.0
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/CHANGELOG.md +55 -0
- package/dist/analytics.d.ts +2 -18
- package/dist/analytics.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +66 -42
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/hooks/useAnalytics.d.ts +2 -18
- package/dist/hooks/useAnalytics.d.ts.map +1 -1
- package/dist/hooks/useClientConfig.d.ts +115 -112
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +1378 -1306
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +2752 -2608
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +1378 -1306
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +1378 -1306
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +17 -17
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/send-request/build-request-security.d.ts +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts +82 -82
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.d.ts +1 -1
- package/dist/store/active-entities.d.ts +118 -118
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +127 -127
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +14 -14
- package/dist/store/environment.d.ts +23 -23
- package/dist/store/request-example.d.ts +546 -546
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +194 -194
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +281 -281
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/servers.d.ts +45 -45
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/store.d.ts +1378 -1306
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +18 -18
- package/dist/store/tags.d.ts +35 -35
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +47 -47
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts +2 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.d.ts +25 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +30 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue2.js +4 -0
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +3 -3
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +102 -95
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.js +16 -14
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +31 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts +6 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +198 -131
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts +2 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts +4 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +10 -4
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +2 -6
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +54 -54
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +54 -54
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +1 -1
- package/dist/views/Request/libs/auth.d.ts +2 -2
- package/dist/views/Request/libs/watch-mode.d.ts +4 -4
- package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
- package/dist/views/Request/libs/watch-mode.js +241 -186
- package/package.json +25 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/store/collections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAExB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,yCAAyC;AACzC,wBAAgB,sBAAsB,CAAC,eAAe,EAAE,OAAO
|
|
1
|
+
{"version":3,"file":"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M,iBAAiB,UAAU,CAAC,KAAK,CAAC;EAiB/F"}
|
package/dist/store/cookies.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Create cookie mutators for the workspace */
|
|
2
2
|
export declare function createStoreCookies(useLocalStorage: boolean): {
|
|
3
3
|
cookies: Record<string, {
|
|
4
|
-
uid: string & import("zod")
|
|
4
|
+
uid: string & import("zod").$brand<"cookie">;
|
|
5
5
|
name: string;
|
|
6
6
|
value: string;
|
|
7
7
|
domain?: string | undefined;
|
|
@@ -9,60 +9,60 @@ export declare function createStoreCookies(useLocalStorage: boolean): {
|
|
|
9
9
|
}>;
|
|
10
10
|
cookieMutators: {
|
|
11
11
|
add: (item: {
|
|
12
|
-
uid: string & import("zod")
|
|
12
|
+
uid: string & import("zod").$brand<"cookie">;
|
|
13
13
|
name: string;
|
|
14
14
|
value: string;
|
|
15
15
|
domain?: string | undefined;
|
|
16
16
|
path?: string | undefined;
|
|
17
17
|
}) => void;
|
|
18
|
-
delete: (uid: (string & import("zod")
|
|
18
|
+
delete: (uid: (string & import("zod").$brand<"cookie">) | null | undefined) => void;
|
|
19
19
|
set: (item: {
|
|
20
|
-
uid: string & import("zod")
|
|
20
|
+
uid: string & import("zod").$brand<"cookie">;
|
|
21
21
|
name: string;
|
|
22
22
|
value: string;
|
|
23
23
|
domain?: string | undefined;
|
|
24
24
|
path?: string | undefined;
|
|
25
25
|
}) => void;
|
|
26
|
-
edit: <P extends "path" | "value" | "uid" | "name" | "domain">(uid: (string & import("zod")
|
|
27
|
-
uid: string & import("zod")
|
|
26
|
+
edit: <P extends "path" | "value" | "uid" | "name" | "domain">(uid: (string & import("zod").$brand<"cookie">) | null | undefined, path: P, value: P extends "path" | "value" | "uid" | "name" | "domain" ? {
|
|
27
|
+
uid: string & import("zod").$brand<"cookie">;
|
|
28
28
|
name: string;
|
|
29
29
|
value: string;
|
|
30
30
|
domain?: string | undefined;
|
|
31
31
|
path?: string | undefined;
|
|
32
32
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "path" | "value" | "uid" | "name" | "domain" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
33
|
-
uid: string & import("zod")
|
|
33
|
+
uid: string & import("zod").$brand<"cookie">;
|
|
34
34
|
name: string;
|
|
35
35
|
value: string;
|
|
36
36
|
domain?: string | undefined;
|
|
37
37
|
path?: string | undefined;
|
|
38
38
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
39
|
-
uid: string & import("zod")
|
|
39
|
+
uid: string & import("zod").$brand<"cookie">;
|
|
40
40
|
name: string;
|
|
41
41
|
value: string;
|
|
42
42
|
domain?: string | undefined;
|
|
43
43
|
path?: string | undefined;
|
|
44
44
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
45
|
-
untrackedEdit: <P extends "path" | "value" | "uid" | "name" | "domain">(uid: string & import("zod")
|
|
46
|
-
uid: string & import("zod")
|
|
45
|
+
untrackedEdit: <P extends "path" | "value" | "uid" | "name" | "domain">(uid: string & import("zod").$brand<"cookie">, path: P, value: P extends "path" | "value" | "uid" | "name" | "domain" ? {
|
|
46
|
+
uid: string & import("zod").$brand<"cookie">;
|
|
47
47
|
name: string;
|
|
48
48
|
value: string;
|
|
49
49
|
domain?: string | undefined;
|
|
50
50
|
path?: string | undefined;
|
|
51
51
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "path" | "value" | "uid" | "name" | "domain" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
52
|
-
uid: string & import("zod")
|
|
52
|
+
uid: string & import("zod").$brand<"cookie">;
|
|
53
53
|
name: string;
|
|
54
54
|
value: string;
|
|
55
55
|
domain?: string | undefined;
|
|
56
56
|
path?: string | undefined;
|
|
57
57
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
58
|
-
uid: string & import("zod")
|
|
58
|
+
uid: string & import("zod").$brand<"cookie">;
|
|
59
59
|
name: string;
|
|
60
60
|
value: string;
|
|
61
61
|
domain?: string | undefined;
|
|
62
62
|
path?: string | undefined;
|
|
63
63
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
64
|
-
undo: (uid: string & import("zod")
|
|
65
|
-
redo: (uid: string & import("zod")
|
|
64
|
+
undo: (uid: string & import("zod").$brand<"cookie">) => void;
|
|
65
|
+
redo: (uid: string & import("zod").$brand<"cookie">) => void;
|
|
66
66
|
reset: () => void;
|
|
67
67
|
};
|
|
68
68
|
};
|
|
@@ -3,68 +3,68 @@ import { type Environment } from '@scalar/oas-utils/entities/environment';
|
|
|
3
3
|
/** Generate reactive environments for the workspace */
|
|
4
4
|
export declare function createStoreEnvironments(useLocalStorage: boolean): {
|
|
5
5
|
environments: Record<string, {
|
|
6
|
-
uid: string & import("zod")
|
|
6
|
+
uid: string & import("zod").$brand<"environment">;
|
|
7
7
|
name: string;
|
|
8
|
-
value: string;
|
|
9
8
|
color: string;
|
|
9
|
+
value: string;
|
|
10
10
|
isDefault?: boolean | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
environmentMutators: {
|
|
13
13
|
add: (item: {
|
|
14
|
-
uid: string & import("zod")
|
|
14
|
+
uid: string & import("zod").$brand<"environment">;
|
|
15
15
|
name: string;
|
|
16
|
-
value: string;
|
|
17
16
|
color: string;
|
|
17
|
+
value: string;
|
|
18
18
|
isDefault?: boolean | undefined;
|
|
19
19
|
}) => void;
|
|
20
|
-
delete: (uid: (string & import("zod")
|
|
20
|
+
delete: (uid: (string & import("zod").$brand<"environment">) | null | undefined) => void;
|
|
21
21
|
set: (item: {
|
|
22
|
-
uid: string & import("zod")
|
|
22
|
+
uid: string & import("zod").$brand<"environment">;
|
|
23
23
|
name: string;
|
|
24
|
-
value: string;
|
|
25
24
|
color: string;
|
|
25
|
+
value: string;
|
|
26
26
|
isDefault?: boolean | undefined;
|
|
27
27
|
}) => void;
|
|
28
|
-
edit: <P extends "value" | "uid" | "name" | "color" | "isDefault">(uid: (string & import("zod")
|
|
29
|
-
uid: string & import("zod")
|
|
28
|
+
edit: <P extends "value" | "uid" | "name" | "color" | "isDefault">(uid: (string & import("zod").$brand<"environment">) | null | undefined, path: P, value: P extends "value" | "uid" | "name" | "color" | "isDefault" ? {
|
|
29
|
+
uid: string & import("zod").$brand<"environment">;
|
|
30
30
|
name: string;
|
|
31
|
-
value: string;
|
|
32
31
|
color: string;
|
|
32
|
+
value: string;
|
|
33
33
|
isDefault?: boolean | undefined;
|
|
34
34
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "uid" | "name" | "color" | "isDefault" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
35
|
-
uid: string & import("zod")
|
|
35
|
+
uid: string & import("zod").$brand<"environment">;
|
|
36
36
|
name: string;
|
|
37
|
-
value: string;
|
|
38
37
|
color: string;
|
|
38
|
+
value: string;
|
|
39
39
|
isDefault?: boolean | undefined;
|
|
40
40
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
41
|
-
uid: string & import("zod")
|
|
41
|
+
uid: string & import("zod").$brand<"environment">;
|
|
42
42
|
name: string;
|
|
43
|
-
value: string;
|
|
44
43
|
color: string;
|
|
44
|
+
value: string;
|
|
45
45
|
isDefault?: boolean | undefined;
|
|
46
46
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
47
|
-
untrackedEdit: <P extends "value" | "uid" | "name" | "color" | "isDefault">(uid: string & import("zod")
|
|
48
|
-
uid: string & import("zod")
|
|
47
|
+
untrackedEdit: <P extends "value" | "uid" | "name" | "color" | "isDefault">(uid: string & import("zod").$brand<"environment">, path: P, value: P extends "value" | "uid" | "name" | "color" | "isDefault" ? {
|
|
48
|
+
uid: string & import("zod").$brand<"environment">;
|
|
49
49
|
name: string;
|
|
50
|
-
value: string;
|
|
51
50
|
color: string;
|
|
51
|
+
value: string;
|
|
52
52
|
isDefault?: boolean | undefined;
|
|
53
53
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "uid" | "name" | "color" | "isDefault" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
54
|
-
uid: string & import("zod")
|
|
54
|
+
uid: string & import("zod").$brand<"environment">;
|
|
55
55
|
name: string;
|
|
56
|
-
value: string;
|
|
57
56
|
color: string;
|
|
57
|
+
value: string;
|
|
58
58
|
isDefault?: boolean | undefined;
|
|
59
59
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
60
|
-
uid: string & import("zod")
|
|
60
|
+
uid: string & import("zod").$brand<"environment">;
|
|
61
61
|
name: string;
|
|
62
|
-
value: string;
|
|
63
62
|
color: string;
|
|
63
|
+
value: string;
|
|
64
64
|
isDefault?: boolean | undefined;
|
|
65
65
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
66
|
-
undo: (uid: string & import("zod")
|
|
67
|
-
redo: (uid: string & import("zod")
|
|
66
|
+
undo: (uid: string & import("zod").$brand<"environment">) => void;
|
|
67
|
+
redo: (uid: string & import("zod").$brand<"environment">) => void;
|
|
68
68
|
reset: () => void;
|
|
69
69
|
};
|
|
70
70
|
};
|