@atproto/oauth-types 0.7.1 → 0.7.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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @atproto/oauth-types
2
2
 
3
+ ## 0.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#4967](https://github.com/bluesky-social/atproto/pull/4967) [`9fc720c`](https://github.com/bluesky-social/atproto/commit/9fc720ce75f3ee88a5e48a9be919b07c7647f6f5) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Use TypeScript 7 to build package
8
+
9
+ - Updated dependencies [[`9fc720c`](https://github.com/bluesky-social/atproto/commit/9fc720ce75f3ee88a5e48a9be919b07c7647f6f5)]:
10
+ - @atproto/jwk@0.7.1
11
+ - @atproto/did@0.5.1
12
+
3
13
  ## 0.7.1
4
14
 
5
15
  ### Patch Changes
@@ -5,7 +5,7 @@ export declare const ATPROTO_SCOPE_VALUE = "atproto";
5
5
  export type AtprotoScopeValue = typeof ATPROTO_SCOPE_VALUE;
6
6
  export type AtprotoOAuthScope = OAuthScope & SpaceSeparatedValue<AtprotoScopeValue>;
7
7
  export declare function isAtprotoOAuthScope(input: string): input is AtprotoOAuthScope;
8
- export declare function asAtprotoOAuthScope<I extends string>(input: I): (I & "atproto") | (I & `atproto ${string}`) | (I & `${string} atproto`) | (I & `${string} atproto ${string}`);
8
+ export declare function asAtprotoOAuthScope<I extends string>(input: I): (I & "atproto") | (I & `${string} atproto`) | (I & `${string} atproto ${string}`) | (I & `atproto ${string}`);
9
9
  export declare function assertAtprotoOAuthScope(input: string): asserts input is AtprotoOAuthScope;
10
10
  export declare const atprotoOAuthScopeSchema: z.ZodEffects<z.ZodString, AtprotoOAuthScope, string>;
11
11
  export declare const DEFAULT_ATPROTO_OAUTH_SCOPE = "atproto";
@@ -2,18 +2,18 @@ import { z } from 'zod';
2
2
  export declare const oauthAuthorizationCodeGrantTokenRequestSchema: z.ZodObject<{
3
3
  grant_type: z.ZodLiteral<"authorization_code">;
4
4
  code: z.ZodString;
5
- redirect_uri: z.ZodEffects<z.ZodString, `http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}`, string>;
5
+ redirect_uri: z.ZodEffects<z.ZodString, "http://127.0.0.1" | `${string}.${string}:/${string}` | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `https://${string}`, string>;
6
6
  /** @see {@link https://datatracker.ietf.org/doc/html/rfc7636#section-4.1} */
7
7
  code_verifier: z.ZodOptional<z.ZodString>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- code: string;
10
- redirect_uri: `http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}`;
11
9
  grant_type: "authorization_code";
10
+ code: string;
11
+ redirect_uri: "http://127.0.0.1" | `${string}.${string}:/${string}` | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `https://${string}`;
12
12
  code_verifier?: string | undefined;
13
13
  }, {
14
+ grant_type: "authorization_code";
14
15
  code: string;
15
16
  redirect_uri: string;
16
- grant_type: "authorization_code";
17
17
  code_verifier?: string | undefined;
18
18
  }>;
19
19
  export type OAuthAuthorizationCodeGrantTokenRequest = z.infer<typeof oauthAuthorizationCodeGrantTokenRequestSchema>;
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const oauthAuthorizationRequestParSchema: z.ZodUnion<[z.ZodObject<{
3
3
  client_id: z.ZodString;
4
4
  state: z.ZodOptional<z.ZodString>;
5
- redirect_uri: z.ZodOptional<z.ZodEffects<z.ZodString, `http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}`, string>>;
5
+ redirect_uri: z.ZodOptional<z.ZodEffects<z.ZodString, "http://127.0.0.1" | `${string}.${string}:/${string}` | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `https://${string}`, string>>;
6
6
  scope: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
7
7
  response_type: z.ZodEnum<["code", "token", "none", "code id_token token", "code id_token", "code token", "id_token token", "id_token"]>;
8
8
  code_challenge: z.ZodOptional<z.ZodString>;
@@ -16,17 +16,17 @@ export declare const oauthAuthorizationRequestParSchema: z.ZodUnion<[z.ZodObject
16
16
  value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
17
17
  values: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">>;
18
18
  }, "strip", z.ZodTypeAny, {
19
+ essential?: boolean | undefined;
19
20
  value?: string | number | boolean | undefined;
20
21
  values?: (string | number | boolean)[] | undefined;
21
- essential?: boolean | undefined;
22
22
  }, {
23
+ essential?: boolean | undefined;
23
24
  value?: string | number | boolean | undefined;
24
25
  values?: (string | number | boolean)[] | undefined;
26
+ }>]>>>, Partial<Record<"id_token" | "userinfo", Partial<Record<"acr" | "address" | "auth_time" | "birthdate" | "email" | "email_verified" | "family_name" | "gender" | "given_name" | "locale" | "middle_name" | "name" | "nickname" | "nonce" | "phone_number" | "phone_number_verified" | "picture" | "preferred_username" | "profile" | "updated_at" | "website" | "zoneinfo", {
25
27
  essential?: boolean | undefined;
26
- }>]>>>, Partial<Record<"id_token" | "userinfo", Partial<Record<"email" | "auth_time" | "nonce" | "acr" | "name" | "family_name" | "given_name" | "middle_name" | "nickname" | "preferred_username" | "gender" | "picture" | "profile" | "website" | "birthdate" | "zoneinfo" | "locale" | "updated_at" | "email_verified" | "phone_number" | "phone_number_verified" | "address", {
27
28
  value?: string | number | boolean | undefined;
28
29
  values?: (string | number | boolean)[] | undefined;
29
- essential?: boolean | undefined;
30
30
  } | null>>>>, unknown>>;
31
31
  login_hint: z.ZodOptional<z.ZodString>;
32
32
  ui_locales: z.ZodOptional<z.ZodString>;
@@ -64,53 +64,53 @@ export declare const oauthAuthorizationRequestParSchema: z.ZodUnion<[z.ZodObject
64
64
  }[], unknown>>;
65
65
  }, "strip", z.ZodTypeAny, {
66
66
  client_id: string;
67
- response_type: "code" | "none" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token" | "id_token";
68
- scope?: string | undefined;
69
- redirect_uri?: `http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}` | undefined;
70
- authorization_details?: {
71
- type: string;
72
- locations?: `${string}:${string}`[] | undefined;
73
- actions?: string[] | undefined;
74
- datatypes?: string[] | undefined;
75
- identifier?: string | undefined;
76
- privileges?: string[] | undefined;
77
- }[] | undefined;
78
- nonce?: string | undefined;
79
67
  state?: string | undefined;
68
+ redirect_uri?: "http://127.0.0.1" | `${string}.${string}:/${string}` | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `https://${string}` | undefined;
69
+ scope?: string | undefined;
70
+ response_type: "code" | "code id_token" | "code id_token token" | "code token" | "id_token" | "id_token token" | "none" | "token";
80
71
  code_challenge?: string | undefined;
81
72
  code_challenge_method?: "S256" | "plain" | undefined;
82
73
  dpop_jkt?: string | undefined;
83
- response_mode?: "query" | "fragment" | "form_post" | undefined;
74
+ response_mode?: "form_post" | "fragment" | "query" | undefined;
75
+ nonce?: string | undefined;
84
76
  max_age?: number | undefined;
85
- claims?: Partial<Record<"id_token" | "userinfo", Partial<Record<"email" | "auth_time" | "nonce" | "acr" | "name" | "family_name" | "given_name" | "middle_name" | "nickname" | "preferred_username" | "gender" | "picture" | "profile" | "website" | "birthdate" | "zoneinfo" | "locale" | "updated_at" | "email_verified" | "phone_number" | "phone_number_verified" | "address", {
77
+ claims?: Partial<Record<"id_token" | "userinfo", Partial<Record<"acr" | "address" | "auth_time" | "birthdate" | "email" | "email_verified" | "family_name" | "gender" | "given_name" | "locale" | "middle_name" | "name" | "nickname" | "nonce" | "phone_number" | "phone_number_verified" | "picture" | "preferred_username" | "profile" | "updated_at" | "website" | "zoneinfo", {
78
+ essential?: boolean | undefined;
86
79
  value?: string | number | boolean | undefined;
87
80
  values?: (string | number | boolean)[] | undefined;
88
- essential?: boolean | undefined;
89
81
  } | null>>>> | undefined;
90
82
  login_hint?: string | undefined;
91
83
  ui_locales?: string | undefined;
92
84
  id_token_hint?: `${string}.${string}.${string}` | undefined;
93
85
  display?: "page" | "popup" | "touch" | "wap" | undefined;
94
- prompt?: "none" | "login" | "consent" | "select_account" | "create" | undefined;
86
+ prompt?: "consent" | "create" | "login" | "none" | "select_account" | undefined;
87
+ authorization_details?: {
88
+ type: string;
89
+ locations?: `${string}:${string}`[] | undefined;
90
+ actions?: string[] | undefined;
91
+ datatypes?: string[] | undefined;
92
+ identifier?: string | undefined;
93
+ privileges?: string[] | undefined;
94
+ }[] | undefined;
95
95
  }, {
96
96
  client_id: string;
97
- response_type: "code" | "none" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token" | "id_token";
98
- scope?: string | undefined;
99
- redirect_uri?: string | undefined;
100
- authorization_details?: unknown;
101
- nonce?: string | undefined;
102
97
  state?: string | undefined;
98
+ redirect_uri?: string | undefined;
99
+ scope?: string | undefined;
100
+ response_type: "code" | "code id_token" | "code id_token token" | "code token" | "id_token" | "id_token token" | "none" | "token";
103
101
  code_challenge?: string | undefined;
104
102
  code_challenge_method?: "S256" | "plain" | undefined;
105
103
  dpop_jkt?: string | undefined;
106
- response_mode?: "query" | "fragment" | "form_post" | undefined;
104
+ response_mode?: "form_post" | "fragment" | "query" | undefined;
105
+ nonce?: string | undefined;
107
106
  max_age?: unknown;
108
107
  claims?: unknown;
109
108
  login_hint?: string | undefined;
110
109
  ui_locales?: string | undefined;
111
110
  id_token_hint?: string | undefined;
112
111
  display?: "page" | "popup" | "touch" | "wap" | undefined;
113
- prompt?: "none" | "login" | "consent" | "select_account" | "create" | undefined;
112
+ prompt?: "consent" | "create" | "login" | "none" | "select_account" | undefined;
113
+ authorization_details?: unknown;
114
114
  }>, z.ZodObject<{
115
115
  request: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `${string}.${string}.${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `${string}.${string}`, string>]>;
116
116
  }, "strip", z.ZodTypeAny, {
@@ -8,7 +8,7 @@ import { z } from 'zod';
8
8
  export declare const oauthAuthorizationRequestParametersSchema: z.ZodObject<{
9
9
  client_id: z.ZodString;
10
10
  state: z.ZodOptional<z.ZodString>;
11
- redirect_uri: z.ZodOptional<z.ZodEffects<z.ZodString, `http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}`, string>>;
11
+ redirect_uri: z.ZodOptional<z.ZodEffects<z.ZodString, "http://127.0.0.1" | `${string}.${string}:/${string}` | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `https://${string}`, string>>;
12
12
  scope: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
13
13
  response_type: z.ZodEnum<["code", "token", "none", "code id_token token", "code id_token", "code token", "id_token token", "id_token"]>;
14
14
  code_challenge: z.ZodOptional<z.ZodString>;
@@ -22,17 +22,17 @@ export declare const oauthAuthorizationRequestParametersSchema: z.ZodObject<{
22
22
  value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
23
23
  values: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">>;
24
24
  }, "strip", z.ZodTypeAny, {
25
+ essential?: boolean | undefined;
25
26
  value?: string | number | boolean | undefined;
26
27
  values?: (string | number | boolean)[] | undefined;
27
- essential?: boolean | undefined;
28
28
  }, {
29
+ essential?: boolean | undefined;
29
30
  value?: string | number | boolean | undefined;
30
31
  values?: (string | number | boolean)[] | undefined;
32
+ }>]>>>, Partial<Record<"id_token" | "userinfo", Partial<Record<"acr" | "address" | "auth_time" | "birthdate" | "email" | "email_verified" | "family_name" | "gender" | "given_name" | "locale" | "middle_name" | "name" | "nickname" | "nonce" | "phone_number" | "phone_number_verified" | "picture" | "preferred_username" | "profile" | "updated_at" | "website" | "zoneinfo", {
31
33
  essential?: boolean | undefined;
32
- }>]>>>, Partial<Record<"id_token" | "userinfo", Partial<Record<"email" | "auth_time" | "nonce" | "acr" | "name" | "family_name" | "given_name" | "middle_name" | "nickname" | "preferred_username" | "gender" | "picture" | "profile" | "website" | "birthdate" | "zoneinfo" | "locale" | "updated_at" | "email_verified" | "phone_number" | "phone_number_verified" | "address", {
33
34
  value?: string | number | boolean | undefined;
34
35
  values?: (string | number | boolean)[] | undefined;
35
- essential?: boolean | undefined;
36
36
  } | null>>>>, unknown>>;
37
37
  login_hint: z.ZodOptional<z.ZodString>;
38
38
  ui_locales: z.ZodOptional<z.ZodString>;
@@ -70,53 +70,53 @@ export declare const oauthAuthorizationRequestParametersSchema: z.ZodObject<{
70
70
  }[], unknown>>;
71
71
  }, "strip", z.ZodTypeAny, {
72
72
  client_id: string;
73
- response_type: "code" | "none" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token" | "id_token";
74
- scope?: string | undefined;
75
- redirect_uri?: `http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}` | undefined;
76
- authorization_details?: {
77
- type: string;
78
- locations?: `${string}:${string}`[] | undefined;
79
- actions?: string[] | undefined;
80
- datatypes?: string[] | undefined;
81
- identifier?: string | undefined;
82
- privileges?: string[] | undefined;
83
- }[] | undefined;
84
- nonce?: string | undefined;
85
73
  state?: string | undefined;
74
+ redirect_uri?: "http://127.0.0.1" | `${string}.${string}:/${string}` | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `https://${string}` | undefined;
75
+ scope?: string | undefined;
76
+ response_type: "code" | "code id_token" | "code id_token token" | "code token" | "id_token" | "id_token token" | "none" | "token";
86
77
  code_challenge?: string | undefined;
87
78
  code_challenge_method?: "S256" | "plain" | undefined;
88
79
  dpop_jkt?: string | undefined;
89
- response_mode?: "query" | "fragment" | "form_post" | undefined;
80
+ response_mode?: "form_post" | "fragment" | "query" | undefined;
81
+ nonce?: string | undefined;
90
82
  max_age?: number | undefined;
91
- claims?: Partial<Record<"id_token" | "userinfo", Partial<Record<"email" | "auth_time" | "nonce" | "acr" | "name" | "family_name" | "given_name" | "middle_name" | "nickname" | "preferred_username" | "gender" | "picture" | "profile" | "website" | "birthdate" | "zoneinfo" | "locale" | "updated_at" | "email_verified" | "phone_number" | "phone_number_verified" | "address", {
83
+ claims?: Partial<Record<"id_token" | "userinfo", Partial<Record<"acr" | "address" | "auth_time" | "birthdate" | "email" | "email_verified" | "family_name" | "gender" | "given_name" | "locale" | "middle_name" | "name" | "nickname" | "nonce" | "phone_number" | "phone_number_verified" | "picture" | "preferred_username" | "profile" | "updated_at" | "website" | "zoneinfo", {
84
+ essential?: boolean | undefined;
92
85
  value?: string | number | boolean | undefined;
93
86
  values?: (string | number | boolean)[] | undefined;
94
- essential?: boolean | undefined;
95
87
  } | null>>>> | undefined;
96
88
  login_hint?: string | undefined;
97
89
  ui_locales?: string | undefined;
98
90
  id_token_hint?: `${string}.${string}.${string}` | undefined;
99
91
  display?: "page" | "popup" | "touch" | "wap" | undefined;
100
- prompt?: "none" | "login" | "consent" | "select_account" | "create" | undefined;
92
+ prompt?: "consent" | "create" | "login" | "none" | "select_account" | undefined;
93
+ authorization_details?: {
94
+ type: string;
95
+ locations?: `${string}:${string}`[] | undefined;
96
+ actions?: string[] | undefined;
97
+ datatypes?: string[] | undefined;
98
+ identifier?: string | undefined;
99
+ privileges?: string[] | undefined;
100
+ }[] | undefined;
101
101
  }, {
102
102
  client_id: string;
103
- response_type: "code" | "none" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token" | "id_token";
104
- scope?: string | undefined;
105
- redirect_uri?: string | undefined;
106
- authorization_details?: unknown;
107
- nonce?: string | undefined;
108
103
  state?: string | undefined;
104
+ redirect_uri?: string | undefined;
105
+ scope?: string | undefined;
106
+ response_type: "code" | "code id_token" | "code id_token token" | "code token" | "id_token" | "id_token token" | "none" | "token";
109
107
  code_challenge?: string | undefined;
110
108
  code_challenge_method?: "S256" | "plain" | undefined;
111
109
  dpop_jkt?: string | undefined;
112
- response_mode?: "query" | "fragment" | "form_post" | undefined;
110
+ response_mode?: "form_post" | "fragment" | "query" | undefined;
111
+ nonce?: string | undefined;
113
112
  max_age?: unknown;
114
113
  claims?: unknown;
115
114
  login_hint?: string | undefined;
116
115
  ui_locales?: string | undefined;
117
116
  id_token_hint?: string | undefined;
118
117
  display?: "page" | "popup" | "touch" | "wap" | undefined;
119
- prompt?: "none" | "login" | "consent" | "select_account" | "create" | undefined;
118
+ prompt?: "consent" | "create" | "login" | "none" | "select_account" | undefined;
119
+ authorization_details?: unknown;
120
120
  }>;
121
121
  /**
122
122
  * @see {oauthAuthorizationRequestParametersSchema}
@@ -8,7 +8,7 @@ export declare const oauthAuthorizationRequestQuerySchema: z.ZodIntersection<z.Z
8
8
  }>, z.ZodUnion<[z.ZodObject<{
9
9
  client_id: z.ZodString;
10
10
  state: z.ZodOptional<z.ZodString>;
11
- redirect_uri: z.ZodOptional<z.ZodEffects<z.ZodString, `http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}`, string>>;
11
+ redirect_uri: z.ZodOptional<z.ZodEffects<z.ZodString, "http://127.0.0.1" | `${string}.${string}:/${string}` | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `https://${string}`, string>>;
12
12
  scope: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
13
13
  response_type: z.ZodEnum<["code", "token", "none", "code id_token token", "code id_token", "code token", "id_token token", "id_token"]>;
14
14
  code_challenge: z.ZodOptional<z.ZodString>;
@@ -22,17 +22,17 @@ export declare const oauthAuthorizationRequestQuerySchema: z.ZodIntersection<z.Z
22
22
  value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
23
23
  values: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">>;
24
24
  }, "strip", z.ZodTypeAny, {
25
+ essential?: boolean | undefined;
25
26
  value?: string | number | boolean | undefined;
26
27
  values?: (string | number | boolean)[] | undefined;
27
- essential?: boolean | undefined;
28
28
  }, {
29
+ essential?: boolean | undefined;
29
30
  value?: string | number | boolean | undefined;
30
31
  values?: (string | number | boolean)[] | undefined;
32
+ }>]>>>, Partial<Record<"id_token" | "userinfo", Partial<Record<"acr" | "address" | "auth_time" | "birthdate" | "email" | "email_verified" | "family_name" | "gender" | "given_name" | "locale" | "middle_name" | "name" | "nickname" | "nonce" | "phone_number" | "phone_number_verified" | "picture" | "preferred_username" | "profile" | "updated_at" | "website" | "zoneinfo", {
31
33
  essential?: boolean | undefined;
32
- }>]>>>, Partial<Record<"id_token" | "userinfo", Partial<Record<"email" | "auth_time" | "nonce" | "acr" | "name" | "family_name" | "given_name" | "middle_name" | "nickname" | "preferred_username" | "gender" | "picture" | "profile" | "website" | "birthdate" | "zoneinfo" | "locale" | "updated_at" | "email_verified" | "phone_number" | "phone_number_verified" | "address", {
33
34
  value?: string | number | boolean | undefined;
34
35
  values?: (string | number | boolean)[] | undefined;
35
- essential?: boolean | undefined;
36
36
  } | null>>>>, unknown>>;
37
37
  login_hint: z.ZodOptional<z.ZodString>;
38
38
  ui_locales: z.ZodOptional<z.ZodString>;
@@ -70,53 +70,53 @@ export declare const oauthAuthorizationRequestQuerySchema: z.ZodIntersection<z.Z
70
70
  }[], unknown>>;
71
71
  }, "strip", z.ZodTypeAny, {
72
72
  client_id: string;
73
- response_type: "code" | "none" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token" | "id_token";
74
- scope?: string | undefined;
75
- redirect_uri?: `http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}` | undefined;
76
- authorization_details?: {
77
- type: string;
78
- locations?: `${string}:${string}`[] | undefined;
79
- actions?: string[] | undefined;
80
- datatypes?: string[] | undefined;
81
- identifier?: string | undefined;
82
- privileges?: string[] | undefined;
83
- }[] | undefined;
84
- nonce?: string | undefined;
85
73
  state?: string | undefined;
74
+ redirect_uri?: "http://127.0.0.1" | `${string}.${string}:/${string}` | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `https://${string}` | undefined;
75
+ scope?: string | undefined;
76
+ response_type: "code" | "code id_token" | "code id_token token" | "code token" | "id_token" | "id_token token" | "none" | "token";
86
77
  code_challenge?: string | undefined;
87
78
  code_challenge_method?: "S256" | "plain" | undefined;
88
79
  dpop_jkt?: string | undefined;
89
- response_mode?: "query" | "fragment" | "form_post" | undefined;
80
+ response_mode?: "form_post" | "fragment" | "query" | undefined;
81
+ nonce?: string | undefined;
90
82
  max_age?: number | undefined;
91
- claims?: Partial<Record<"id_token" | "userinfo", Partial<Record<"email" | "auth_time" | "nonce" | "acr" | "name" | "family_name" | "given_name" | "middle_name" | "nickname" | "preferred_username" | "gender" | "picture" | "profile" | "website" | "birthdate" | "zoneinfo" | "locale" | "updated_at" | "email_verified" | "phone_number" | "phone_number_verified" | "address", {
83
+ claims?: Partial<Record<"id_token" | "userinfo", Partial<Record<"acr" | "address" | "auth_time" | "birthdate" | "email" | "email_verified" | "family_name" | "gender" | "given_name" | "locale" | "middle_name" | "name" | "nickname" | "nonce" | "phone_number" | "phone_number_verified" | "picture" | "preferred_username" | "profile" | "updated_at" | "website" | "zoneinfo", {
84
+ essential?: boolean | undefined;
92
85
  value?: string | number | boolean | undefined;
93
86
  values?: (string | number | boolean)[] | undefined;
94
- essential?: boolean | undefined;
95
87
  } | null>>>> | undefined;
96
88
  login_hint?: string | undefined;
97
89
  ui_locales?: string | undefined;
98
90
  id_token_hint?: `${string}.${string}.${string}` | undefined;
99
91
  display?: "page" | "popup" | "touch" | "wap" | undefined;
100
- prompt?: "none" | "login" | "consent" | "select_account" | "create" | undefined;
92
+ prompt?: "consent" | "create" | "login" | "none" | "select_account" | undefined;
93
+ authorization_details?: {
94
+ type: string;
95
+ locations?: `${string}:${string}`[] | undefined;
96
+ actions?: string[] | undefined;
97
+ datatypes?: string[] | undefined;
98
+ identifier?: string | undefined;
99
+ privileges?: string[] | undefined;
100
+ }[] | undefined;
101
101
  }, {
102
102
  client_id: string;
103
- response_type: "code" | "none" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token" | "id_token";
104
- scope?: string | undefined;
105
- redirect_uri?: string | undefined;
106
- authorization_details?: unknown;
107
- nonce?: string | undefined;
108
103
  state?: string | undefined;
104
+ redirect_uri?: string | undefined;
105
+ scope?: string | undefined;
106
+ response_type: "code" | "code id_token" | "code id_token token" | "code token" | "id_token" | "id_token token" | "none" | "token";
109
107
  code_challenge?: string | undefined;
110
108
  code_challenge_method?: "S256" | "plain" | undefined;
111
109
  dpop_jkt?: string | undefined;
112
- response_mode?: "query" | "fragment" | "form_post" | undefined;
110
+ response_mode?: "form_post" | "fragment" | "query" | undefined;
111
+ nonce?: string | undefined;
113
112
  max_age?: unknown;
114
113
  claims?: unknown;
115
114
  login_hint?: string | undefined;
116
115
  ui_locales?: string | undefined;
117
116
  id_token_hint?: string | undefined;
118
117
  display?: "page" | "popup" | "touch" | "wap" | undefined;
119
- prompt?: "none" | "login" | "consent" | "select_account" | "create" | undefined;
118
+ prompt?: "consent" | "create" | "login" | "none" | "select_account" | undefined;
119
+ authorization_details?: unknown;
120
120
  }>, z.ZodObject<{
121
121
  request: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `${string}.${string}.${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `${string}.${string}`, string>]>;
122
122
  }, "strip", z.ZodTypeAny, {