@typespec/http 0.57.0-dev.1 → 0.57.0-dev.4
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
|
@@ -154,8 +154,8 @@ export type HeadDecorator = (context: DecoratorContext, target: Operation) => vo
|
|
|
154
154
|
*
|
|
155
155
|
* ```typespec
|
|
156
156
|
* @server("https://{region}.foo.com", "Regional endpoint", {
|
|
157
|
-
*
|
|
158
|
-
*
|
|
157
|
+
* @doc("Region name")
|
|
158
|
+
* region?: string = "westus",
|
|
159
159
|
* })
|
|
160
160
|
* ```
|
|
161
161
|
*/
|
package/dist/src/types.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export interface HttpAuthBase {
|
|
|
34
34
|
* The client sends HTTP requests with the Authorization header that contains the word Basic word followed by a space and a base64-encoded string username:password.
|
|
35
35
|
* For example, to authorize as demo / p@55w0rd the client would send
|
|
36
36
|
* ```
|
|
37
|
-
*
|
|
37
|
+
* Authorization: Basic ZGVtbzpwQDU1dzByZA==
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
40
|
export interface BasicAuth extends HttpAuthBase {
|
package/dist/src/validate.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/validate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAMlD,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,QAO3C"}
|
package/lib/auth.tsp
CHANGED
|
@@ -19,12 +19,12 @@ enum AuthType {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
22
|
+
* Basic authentication is a simple authentication scheme built into the HTTP protocol.
|
|
23
|
+
* The client sends HTTP requests with the Authorization header that contains the word Basic word followed by a space and a base64-encoded string username:password.
|
|
24
|
+
* For example, to authorize as demo / `p@55w0rd` the client would send
|
|
25
|
+
* ```
|
|
26
|
+
* Authorization: Basic ZGVtbzpwQDU1dzByZA==
|
|
27
|
+
* ```
|
|
28
28
|
*/
|
|
29
29
|
@doc("")
|
|
30
30
|
model BasicAuth {
|
|
@@ -40,7 +40,7 @@ model BasicAuth {
|
|
|
40
40
|
* The name “Bearer authentication” can be understood as “give access to the bearer of this token.” The bearer token is a cryptic string, usually generated by the server in response to a login request.
|
|
41
41
|
* The client must send this token in the Authorization header when making requests to protected resources:
|
|
42
42
|
* ```
|
|
43
|
-
*
|
|
43
|
+
* Authorization: Bearer <token>
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
46
|
@doc("")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/http",
|
|
3
|
-
"version": "0.57.0-dev.
|
|
3
|
+
"version": "0.57.0-dev.4",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec HTTP protocol binding",
|
|
6
6
|
"homepage": "https://github.com/microsoft/typespec",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"@types/node": "~18.11.19",
|
|
46
46
|
"@typespec/compiler": "~0.56.0 || >=0.57.0-dev <0.57.0",
|
|
47
47
|
"@typespec/library-linter": "~0.56.0 || >=0.57.0-dev <0.57.0",
|
|
48
|
-
"@vitest/coverage-v8": "^1.
|
|
49
|
-
"@vitest/ui": "^1.
|
|
48
|
+
"@vitest/coverage-v8": "^1.6.0",
|
|
49
|
+
"@vitest/ui": "^1.6.0",
|
|
50
50
|
"c8": "^9.1.0",
|
|
51
|
-
"rimraf": "~5.0.
|
|
51
|
+
"rimraf": "~5.0.7",
|
|
52
52
|
"typescript": "~5.4.5",
|
|
53
|
-
"vitest": "^1.
|
|
53
|
+
"vitest": "^1.6.0",
|
|
54
54
|
"@typespec/tspd": "~0.46.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {},
|