@scalar/api-client 0.1.1
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/components/ApiClient/AddressBar.vue.d.ts +17 -0
- package/dist/components/ApiClient/AddressBar.vue.d.ts.map +1 -0
- package/dist/components/ApiClient/ApiClient.vue.d.ts +17 -0
- package/dist/components/ApiClient/ApiClient.vue.d.ts.map +1 -0
- package/dist/components/ApiClient/Request/Request.vue.d.ts +3 -0
- package/dist/components/ApiClient/Request/Request.vue.d.ts.map +1 -0
- package/dist/components/ApiClient/Request/RequestAuth.vue.d.ts +3 -0
- package/dist/components/ApiClient/Request/RequestAuth.vue.d.ts.map +1 -0
- package/dist/components/ApiClient/Request/RequestBody.vue.d.ts +23 -0
- package/dist/components/ApiClient/Request/RequestBody.vue.d.ts.map +1 -0
- package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts +13 -0
- package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts.map +1 -0
- package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts +13 -0
- package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts.map +1 -0
- package/dist/components/ApiClient/Request/RequestVariables.vue.d.ts +14 -0
- package/dist/components/ApiClient/Request/RequestVariables.vue.d.ts.map +1 -0
- package/dist/components/ApiClient/Request/index.d.ts +2 -0
- package/dist/components/ApiClient/Request/index.d.ts.map +1 -0
- package/dist/components/ApiClient/RequestHistory.vue.d.ts +7 -0
- package/dist/components/ApiClient/RequestHistory.vue.d.ts.map +1 -0
- package/dist/components/ApiClient/RequestHistoryItem.vue.d.ts +13 -0
- package/dist/components/ApiClient/RequestHistoryItem.vue.d.ts.map +1 -0
- package/dist/components/ApiClient/Response/Response.vue.d.ts +3 -0
- package/dist/components/ApiClient/Response/Response.vue.d.ts.map +1 -0
- package/dist/components/ApiClient/Response/ResponseBody.vue.d.ts +28 -0
- package/dist/components/ApiClient/Response/ResponseBody.vue.d.ts.map +1 -0
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.d.ts +13 -0
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.d.ts.map +1 -0
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.d.ts +13 -0
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.d.ts.map +1 -0
- package/dist/components/ApiClient/Response/index.d.ts +2 -0
- package/dist/components/ApiClient/Response/index.d.ts.map +1 -0
- package/dist/components/ApiClient/index.d.ts +2 -0
- package/dist/components/ApiClient/index.d.ts.map +1 -0
- package/dist/components/CodeMirror/CodeMirror.vue.d.ts +46 -0
- package/dist/components/CodeMirror/CodeMirror.vue.d.ts.map +1 -0
- package/dist/components/CodeMirror/extensions/variables.d.ts +6 -0
- package/dist/components/CodeMirror/extensions/variables.d.ts.map +1 -0
- package/dist/components/CodeMirror/index.d.ts +2 -0
- package/dist/components/CodeMirror/index.d.ts.map +1 -0
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts +19 -0
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts.map +1 -0
- package/dist/components/CollapsibleSection/index.d.ts +2 -0
- package/dist/components/CollapsibleSection/index.d.ts.map +1 -0
- package/dist/components/FlowModal.vue.d.ts +62 -0
- package/dist/components/FlowModal.vue.d.ts.map +1 -0
- package/dist/components/Grid/Grid.vue.d.ts +13 -0
- package/dist/components/Grid/Grid.vue.d.ts.map +1 -0
- package/dist/components/Grid/SimpleGrid.vue.d.ts +13 -0
- package/dist/components/Grid/SimpleGrid.vue.d.ts.map +1 -0
- package/dist/components/Grid/index.d.ts +3 -0
- package/dist/components/Grid/index.d.ts.map +1 -0
- package/dist/components/HelpfulLink.vue.d.ts +20 -0
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -0
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts +40 -0
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts.map +1 -0
- package/dist/components/SimpleTable/SimpleHeader.vue.d.ts +10 -0
- package/dist/components/SimpleTable/SimpleHeader.vue.d.ts.map +1 -0
- package/dist/components/SimpleTable/SimpleRow.vue.d.ts +10 -0
- package/dist/components/SimpleTable/SimpleRow.vue.d.ts.map +1 -0
- package/dist/components/SimpleTable/SimpleTable.vue.d.ts +10 -0
- package/dist/components/SimpleTable/SimpleTable.vue.d.ts.map +1 -0
- package/dist/components/SimpleTable/index.d.ts +5 -0
- package/dist/components/SimpleTable/index.d.ts.map +1 -0
- package/dist/fixtures/httpHeaders.d.ts +7 -0
- package/dist/fixtures/httpHeaders.d.ts.map +1 -0
- package/dist/fixtures/httpStatusCodes.d.ts +8 -0
- package/dist/fixtures/httpStatusCodes.d.ts.map +1 -0
- package/dist/fixtures/index.d.ts +3 -0
- package/dist/fixtures/index.d.ts.map +1 -0
- package/dist/helpers/createPlaceholderRequest.d.ts +6 -0
- package/dist/helpers/createPlaceholderRequest.d.ts.map +1 -0
- package/dist/helpers/generateParameters.d.ts +6 -0
- package/dist/helpers/generateParameters.d.ts.map +1 -0
- package/dist/helpers/generateRequest.d.ts +7 -0
- package/dist/helpers/generateRequest.d.ts.map +1 -0
- package/dist/helpers/index.d.ts +6 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/mapFromArray.d.ts +5 -0
- package/dist/helpers/mapFromArray.d.ts.map +1 -0
- package/dist/helpers/sendRequest.d.ts +6 -0
- package/dist/helpers/sendRequest.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useCopilot.d.ts +31 -0
- package/dist/hooks/useCopilot.d.ts.map +1 -0
- package/dist/hooks/useOperation.d.ts +16 -0
- package/dist/hooks/useOperation.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31175 -0
- package/dist/stores/apiClientRequestStore.d.ts +70 -0
- package/dist/stores/apiClientRequestStore.d.ts.map +1 -0
- package/dist/stores/apiClientStore.d.ts +21 -0
- package/dist/stores/apiClientStore.d.ts.map +1 -0
- package/dist/stores/index.d.ts +3 -0
- package/dist/stores/index.d.ts.map +1 -0
- package/dist/style.css +1622 -0
- package/dist/types.d.ts +151 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/variables.css +53 -0
- package/package.json +56 -0
- package/src/index.ts +8 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
export type BasicAuth = {
|
|
2
|
+
userName: string;
|
|
3
|
+
password: string;
|
|
4
|
+
active: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type OAuthTwo = {
|
|
7
|
+
generatedToken: string;
|
|
8
|
+
discoveryURL: string;
|
|
9
|
+
authURL: string;
|
|
10
|
+
accessTokenURL: string;
|
|
11
|
+
clientID: string;
|
|
12
|
+
clientSecret: string;
|
|
13
|
+
scope: string;
|
|
14
|
+
active: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type Bearer = {
|
|
17
|
+
token: string;
|
|
18
|
+
active: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type Digest = {
|
|
21
|
+
userName: string;
|
|
22
|
+
password: string;
|
|
23
|
+
active: boolean;
|
|
24
|
+
};
|
|
25
|
+
export type AuthType = 'basic' | 'oauthTwo' | 'bearer' | 'digest' | 'none';
|
|
26
|
+
export type AuthState = {
|
|
27
|
+
type: AuthType;
|
|
28
|
+
basic: BasicAuth;
|
|
29
|
+
oauthTwo: OAuthTwo;
|
|
30
|
+
bearer: Bearer;
|
|
31
|
+
digest: Digest;
|
|
32
|
+
};
|
|
33
|
+
export type BaseParameter = {
|
|
34
|
+
name: string;
|
|
35
|
+
value: string | number;
|
|
36
|
+
customClass?: string;
|
|
37
|
+
};
|
|
38
|
+
export type Header = BaseParameter;
|
|
39
|
+
export type Query = BaseParameter;
|
|
40
|
+
export type FormDataItem = BaseParameter;
|
|
41
|
+
/** Complete request state for a client request */
|
|
42
|
+
export type ClientRequestConfig = {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
url: string;
|
|
46
|
+
/** HTTP Request Method */
|
|
47
|
+
type: string;
|
|
48
|
+
/** Request path */
|
|
49
|
+
path: string;
|
|
50
|
+
/** Path parameters */
|
|
51
|
+
parameters: BaseParameter[];
|
|
52
|
+
/** Query parameters */
|
|
53
|
+
query: Query[];
|
|
54
|
+
/** Request headers */
|
|
55
|
+
headers: Header[];
|
|
56
|
+
/** Content type matched body */
|
|
57
|
+
body: string;
|
|
58
|
+
/** Optional form data body */
|
|
59
|
+
formData?: FormDataItem[];
|
|
60
|
+
};
|
|
61
|
+
/** Formatted request for the proxy server */
|
|
62
|
+
export type ProxyPayload = {
|
|
63
|
+
method: string;
|
|
64
|
+
url: string;
|
|
65
|
+
body: string;
|
|
66
|
+
headers: Header[];
|
|
67
|
+
auth: Record<string, string>;
|
|
68
|
+
grpc: boolean;
|
|
69
|
+
};
|
|
70
|
+
/** Client response from the proxy */
|
|
71
|
+
export type ClientResponse = {
|
|
72
|
+
cookies: Record<string, string>;
|
|
73
|
+
headers: Record<string, string>;
|
|
74
|
+
statusCode: number;
|
|
75
|
+
statusText: string;
|
|
76
|
+
data: string;
|
|
77
|
+
duration: number;
|
|
78
|
+
};
|
|
79
|
+
export type RequestResult = {
|
|
80
|
+
request: ClientRequestConfig;
|
|
81
|
+
response: ClientResponse;
|
|
82
|
+
responseId: string;
|
|
83
|
+
sentTime: number;
|
|
84
|
+
};
|
|
85
|
+
export type Schema = {
|
|
86
|
+
format: string;
|
|
87
|
+
type: string;
|
|
88
|
+
};
|
|
89
|
+
export type Parameters = {
|
|
90
|
+
description?: string;
|
|
91
|
+
in?: string;
|
|
92
|
+
name: string;
|
|
93
|
+
required?: boolean;
|
|
94
|
+
schema?: Schema;
|
|
95
|
+
};
|
|
96
|
+
export type Security = {
|
|
97
|
+
api_key?: any[];
|
|
98
|
+
petstore_auth?: string[];
|
|
99
|
+
};
|
|
100
|
+
export type ContentProperties = {
|
|
101
|
+
[key: string]: {
|
|
102
|
+
type: string;
|
|
103
|
+
format: string;
|
|
104
|
+
example: string;
|
|
105
|
+
required: string[];
|
|
106
|
+
description?: string;
|
|
107
|
+
properties?: ContentProperties;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
export type ContentSchema = {
|
|
111
|
+
schema: {
|
|
112
|
+
type: string;
|
|
113
|
+
required: string[];
|
|
114
|
+
properties: ContentProperties;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
export type ContentType = 'application/json' | 'application/xml' | 'text/plain' | 'text/html' | 'application/x-www-form-urlencoded' | 'multipart/form-data';
|
|
118
|
+
export type Content = {
|
|
119
|
+
[key in ContentType]: ContentSchema;
|
|
120
|
+
};
|
|
121
|
+
export type RequestBody = {
|
|
122
|
+
description: string;
|
|
123
|
+
content: Content;
|
|
124
|
+
required: boolean;
|
|
125
|
+
};
|
|
126
|
+
export type Response = {
|
|
127
|
+
description: string;
|
|
128
|
+
content: any;
|
|
129
|
+
};
|
|
130
|
+
export type Information = {
|
|
131
|
+
description: string;
|
|
132
|
+
operationId: string;
|
|
133
|
+
parameters: Parameters[];
|
|
134
|
+
responses: Record<string, Response>;
|
|
135
|
+
security: Security[];
|
|
136
|
+
requestBody: RequestBody;
|
|
137
|
+
summary: string;
|
|
138
|
+
tags: string[];
|
|
139
|
+
};
|
|
140
|
+
export type Operation = {
|
|
141
|
+
httpVerb: string;
|
|
142
|
+
path: string;
|
|
143
|
+
operationId: string;
|
|
144
|
+
name: string;
|
|
145
|
+
description: string;
|
|
146
|
+
information: Information;
|
|
147
|
+
};
|
|
148
|
+
export type Server = {
|
|
149
|
+
url: string;
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM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ACxB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,UAAU,EAAE,CAAA;IACxB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IACnC,QAAQ,EAAE,QAAQ,EAAE,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,EAAE,CAAA;CACf,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,WAAW,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.scalar-api-client,
|
|
2
|
+
#headlessui-portal-root {
|
|
3
|
+
/** Font sizes */
|
|
4
|
+
--scalar-api-client-text-xs: 12px;
|
|
5
|
+
--scalar-api-client-text-sm: 14px;
|
|
6
|
+
--scalar-api-client-text-base: 16px;
|
|
7
|
+
--scalar-api-client-text-lg: 18px;
|
|
8
|
+
|
|
9
|
+
/** Colors */
|
|
10
|
+
--scalar-api-client-background-primary: #fff;
|
|
11
|
+
--scalar-api-client-background-secondary: #f1f3f5;
|
|
12
|
+
--scalar-api-client-background-input: #fff;
|
|
13
|
+
--scalar-api-client-border-color: #dee2e6;
|
|
14
|
+
|
|
15
|
+
/** Borders */
|
|
16
|
+
--scalar-api-client-border: 1px solid var(--scalar-api-client-border-color);
|
|
17
|
+
--scalar-api-client-rounded: 4px;
|
|
18
|
+
|
|
19
|
+
/** Fonts */
|
|
20
|
+
--scalar-api-client-font-sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial,
|
|
21
|
+
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
22
|
+
--scalar-api-client-font-mono: ui-monospace, Menlo, Monaco, 'Cascadia Mono',
|
|
23
|
+
'Segoe UI Mono', 'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace',
|
|
24
|
+
'Source Code Pro', 'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace;
|
|
25
|
+
|
|
26
|
+
/** Font weights */
|
|
27
|
+
--scalar-api-client-font-semibold: 600;
|
|
28
|
+
--scalar-api-client-font-bold: 700;
|
|
29
|
+
|
|
30
|
+
/** TODO: Go through the following variables and check what they do */
|
|
31
|
+
--scalar-api-client-post-color: white;
|
|
32
|
+
--scalar-api-client-post-background: black;
|
|
33
|
+
--scalar-api-client-delete-color: white;
|
|
34
|
+
--scalar-api-client-delete-background: black;
|
|
35
|
+
--scalar-api-client-patch-color: white;
|
|
36
|
+
--scalar-api-client-patch-background: black;
|
|
37
|
+
--scalar-api-client-get-color: #0ca678;
|
|
38
|
+
--scalar-api-client-get-background: white;
|
|
39
|
+
--scalar-api-client-put-color: white;
|
|
40
|
+
--scalar-api-client-put-background: black;
|
|
41
|
+
--scalar-api-client-color-3: #868e96;
|
|
42
|
+
/* Font color */
|
|
43
|
+
--scalar-api-client-theme-color-1: #343a40;
|
|
44
|
+
/* Select font color */
|
|
45
|
+
--scalar-api-client-theme-color-2: #868e96;
|
|
46
|
+
--scalar-api-client-theme-shadow-2: 0 0 0 1px white;
|
|
47
|
+
--scalar-api-client-fill: black;
|
|
48
|
+
--scalar-api-client-color2: white;
|
|
49
|
+
--scalar-api-client-bg3: black;
|
|
50
|
+
--scalar-api-client-gradient: linear-gradient(180deg, black 0%, black 100%);
|
|
51
|
+
/** Select background */
|
|
52
|
+
--scalar-api-client-background-3: #f8f9fa;
|
|
53
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@scalar/api-client",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"author": "Scalar",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=18"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "src/index.ts",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@codemirror/lang-javascript": "6.1.9",
|
|
16
|
+
"@codemirror/lang-json": "6.0.1",
|
|
17
|
+
"@codemirror/state": "6.2.1",
|
|
18
|
+
"@codemirror/view": "6.16.0",
|
|
19
|
+
"@headlessui/vue": "1.7.14",
|
|
20
|
+
"@lezer/highlight": "1.1.6",
|
|
21
|
+
"@types/nunjucks": "3.2.2",
|
|
22
|
+
"@uiw/codemirror-theme-duotone": "4.21.3",
|
|
23
|
+
"@uiw/codemirror-themes": "4.21.3",
|
|
24
|
+
"@vueuse/core": "10.1.2",
|
|
25
|
+
"axios": "1.4.0",
|
|
26
|
+
"codemirror": "6.0.1",
|
|
27
|
+
"javascript-time-ago": "2.5.9",
|
|
28
|
+
"nanoid": "4.0.2",
|
|
29
|
+
"nunjucks": "3.2.4",
|
|
30
|
+
"pretty-bytes": "6.1.0",
|
|
31
|
+
"pretty-ms": "8.0.0",
|
|
32
|
+
"tippy.js": "6.3.7",
|
|
33
|
+
"@scalar/use-codemirror": "0.1.1",
|
|
34
|
+
"@scalar/use-keyboard-event": "0.1.1"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@vitejs/plugin-vue": "4.2.3",
|
|
38
|
+
"tsc-alias": "1.8.6",
|
|
39
|
+
"vite": "4.4.8",
|
|
40
|
+
"vitest": "0.34.1",
|
|
41
|
+
"vue-tsc": "1.8.8"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"vue": "3.3.4"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
|
|
48
|
+
"dev": "vite",
|
|
49
|
+
"lint:check": "eslint .",
|
|
50
|
+
"lint:fix": "eslint . --fix",
|
|
51
|
+
"preview": "vite preview",
|
|
52
|
+
"test": "vitest",
|
|
53
|
+
"types:build": "vue-tsc -p tsconfig.build.json",
|
|
54
|
+
"types:check": "vue-tsc --noEmit --skipLibCheck"
|
|
55
|
+
}
|
|
56
|
+
}
|
package/src/index.ts
ADDED