@polaris-auth/client 0.7.0 → 0.8.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/src/schema.d.ts CHANGED
@@ -2044,6 +2044,246 @@ export interface paths {
2044
2044
  patch?: never;
2045
2045
  trace?: never;
2046
2046
  };
2047
+ "/social/accounts": {
2048
+ parameters: {
2049
+ query?: never;
2050
+ header?: never;
2051
+ path?: never;
2052
+ cookie?: never;
2053
+ };
2054
+ /** List your linked provider accounts */
2055
+ get: operations["get_social_AccountsEndpoint"];
2056
+ put?: never;
2057
+ post?: never;
2058
+ delete?: never;
2059
+ options?: never;
2060
+ head?: never;
2061
+ patch?: never;
2062
+ trace?: never;
2063
+ };
2064
+ "/social/{provider}/callback": {
2065
+ parameters: {
2066
+ query?: never;
2067
+ header?: never;
2068
+ path?: never;
2069
+ cookie?: never;
2070
+ };
2071
+ /** The provider's callback */
2072
+ get: operations["get_social_CallbackEndpoint"];
2073
+ put?: never;
2074
+ /** The provider's callback (form_post) */
2075
+ post: operations["post_social_CallbackPostEndpoint"];
2076
+ delete?: never;
2077
+ options?: never;
2078
+ head?: never;
2079
+ patch?: never;
2080
+ trace?: never;
2081
+ };
2082
+ "/social/exchange": {
2083
+ parameters: {
2084
+ query?: never;
2085
+ header?: never;
2086
+ path?: never;
2087
+ cookie?: never;
2088
+ };
2089
+ get?: never;
2090
+ put?: never;
2091
+ /** Exchange the sign-in code for the session */
2092
+ post: operations["post_social_ExchangeEndpoint"];
2093
+ delete?: never;
2094
+ options?: never;
2095
+ head?: never;
2096
+ patch?: never;
2097
+ trace?: never;
2098
+ };
2099
+ "/social/{provider}/link": {
2100
+ parameters: {
2101
+ query?: never;
2102
+ header?: never;
2103
+ path?: never;
2104
+ cookie?: never;
2105
+ };
2106
+ get?: never;
2107
+ put?: never;
2108
+ /** Link a provider to your account */
2109
+ post: operations["post_social_LinkEndpoint"];
2110
+ delete?: never;
2111
+ options?: never;
2112
+ head?: never;
2113
+ patch?: never;
2114
+ trace?: never;
2115
+ };
2116
+ "/social/google/one-tap": {
2117
+ parameters: {
2118
+ query?: never;
2119
+ header?: never;
2120
+ path?: never;
2121
+ cookie?: never;
2122
+ };
2123
+ get?: never;
2124
+ put?: never;
2125
+ /** Sign in with Google One Tap */
2126
+ post: operations["post_social_OneTapEndpoint"];
2127
+ delete?: never;
2128
+ options?: never;
2129
+ head?: never;
2130
+ patch?: never;
2131
+ trace?: never;
2132
+ };
2133
+ "/social/{provider}/start": {
2134
+ parameters: {
2135
+ query?: never;
2136
+ header?: never;
2137
+ path?: never;
2138
+ cookie?: never;
2139
+ };
2140
+ get?: never;
2141
+ put?: never;
2142
+ /** Start a social sign-in */
2143
+ post: operations["post_social_StartEndpoint"];
2144
+ delete?: never;
2145
+ options?: never;
2146
+ head?: never;
2147
+ patch?: never;
2148
+ trace?: never;
2149
+ };
2150
+ "/social/{provider}/token": {
2151
+ parameters: {
2152
+ query?: never;
2153
+ header?: never;
2154
+ path?: never;
2155
+ cookie?: never;
2156
+ };
2157
+ get?: never;
2158
+ put?: never;
2159
+ /** Get a provider token for the user */
2160
+ post: operations["post_social_TokenEndpoint"];
2161
+ delete?: never;
2162
+ options?: never;
2163
+ head?: never;
2164
+ patch?: never;
2165
+ trace?: never;
2166
+ };
2167
+ "/social/{provider}": {
2168
+ parameters: {
2169
+ query?: never;
2170
+ header?: never;
2171
+ path?: never;
2172
+ cookie?: never;
2173
+ };
2174
+ get?: never;
2175
+ put?: never;
2176
+ post?: never;
2177
+ /** Unlink a provider */
2178
+ delete: operations["delete_social_UnlinkEndpoint"];
2179
+ options?: never;
2180
+ head?: never;
2181
+ patch?: never;
2182
+ trace?: never;
2183
+ };
2184
+ "/passkey/authenticate/options": {
2185
+ parameters: {
2186
+ query?: never;
2187
+ header?: never;
2188
+ path?: never;
2189
+ cookie?: never;
2190
+ };
2191
+ get?: never;
2192
+ put?: never;
2193
+ /** Start a passkey sign-in */
2194
+ post: operations["post_passkey_AuthenticateOptionsEndpoint"];
2195
+ delete?: never;
2196
+ options?: never;
2197
+ head?: never;
2198
+ patch?: never;
2199
+ trace?: never;
2200
+ };
2201
+ "/passkey/authenticate/verify": {
2202
+ parameters: {
2203
+ query?: never;
2204
+ header?: never;
2205
+ path?: never;
2206
+ cookie?: never;
2207
+ };
2208
+ get?: never;
2209
+ put?: never;
2210
+ /** Sign in with a passkey */
2211
+ post: operations["post_passkey_AuthenticateVerifyEndpoint"];
2212
+ delete?: never;
2213
+ options?: never;
2214
+ head?: never;
2215
+ patch?: never;
2216
+ trace?: never;
2217
+ };
2218
+ "/passkey/{id}": {
2219
+ parameters: {
2220
+ query?: never;
2221
+ header?: never;
2222
+ path?: never;
2223
+ cookie?: never;
2224
+ };
2225
+ get?: never;
2226
+ put?: never;
2227
+ post?: never;
2228
+ /** Remove a passkey */
2229
+ delete: operations["delete_passkey_DeleteEndpoint"];
2230
+ options?: never;
2231
+ head?: never;
2232
+ /** Rename a passkey */
2233
+ patch: operations["patch_passkey_RenameEndpoint"];
2234
+ trace?: never;
2235
+ };
2236
+ "/passkey/list": {
2237
+ parameters: {
2238
+ query?: never;
2239
+ header?: never;
2240
+ path?: never;
2241
+ cookie?: never;
2242
+ };
2243
+ /** List your passkeys */
2244
+ get: operations["get_passkey_ListEndpoint"];
2245
+ put?: never;
2246
+ post?: never;
2247
+ delete?: never;
2248
+ options?: never;
2249
+ head?: never;
2250
+ patch?: never;
2251
+ trace?: never;
2252
+ };
2253
+ "/passkey/register/options": {
2254
+ parameters: {
2255
+ query?: never;
2256
+ header?: never;
2257
+ path?: never;
2258
+ cookie?: never;
2259
+ };
2260
+ get?: never;
2261
+ put?: never;
2262
+ /** Start registering a passkey */
2263
+ post: operations["post_passkey_RegisterOptionsEndpoint"];
2264
+ delete?: never;
2265
+ options?: never;
2266
+ head?: never;
2267
+ patch?: never;
2268
+ trace?: never;
2269
+ };
2270
+ "/passkey/register/verify": {
2271
+ parameters: {
2272
+ query?: never;
2273
+ header?: never;
2274
+ path?: never;
2275
+ cookie?: never;
2276
+ };
2277
+ get?: never;
2278
+ put?: never;
2279
+ /** Finish registering a passkey */
2280
+ post: operations["post_passkey_RegisterVerifyEndpoint"];
2281
+ delete?: never;
2282
+ options?: never;
2283
+ head?: never;
2284
+ patch?: never;
2285
+ trace?: never;
2286
+ };
2047
2287
  }
2048
2288
  export type webhooks = Record<string, never>;
2049
2289
  export interface components {
@@ -12245,4 +12485,1108 @@ export interface operations {
12245
12485
  };
12246
12486
  };
12247
12487
  };
12488
+ get_social_AccountsEndpoint: {
12489
+ parameters: {
12490
+ query?: never;
12491
+ header?: never;
12492
+ path?: never;
12493
+ cookie?: never;
12494
+ };
12495
+ requestBody?: never;
12496
+ responses: {
12497
+ /** @description Success */
12498
+ 200: {
12499
+ headers: {
12500
+ [name: string]: unknown;
12501
+ };
12502
+ content: {
12503
+ /**
12504
+ * @example {
12505
+ * "data": [
12506
+ * {
12507
+ * "id": "018f...",
12508
+ * "provider": "google",
12509
+ * "provider_account_id": "1029384756",
12510
+ * "email": "ada@example.com",
12511
+ * "email_verified": true,
12512
+ * "scopes": [
12513
+ * "openid",
12514
+ * "email",
12515
+ * "profile"
12516
+ * ],
12517
+ * "profile": {
12518
+ * "name": "Ada",
12519
+ * "picture": "https://..."
12520
+ * },
12521
+ * "created_at": "2026-10-09T10:00:00+00:00",
12522
+ * "updated_at": "2026-10-09T10:00:00+00:00"
12523
+ * }
12524
+ * ]
12525
+ * }
12526
+ */
12527
+ "application/json": {
12528
+ data: {
12529
+ id: string;
12530
+ provider: string;
12531
+ provider_account_id: string;
12532
+ email: string;
12533
+ email_verified: boolean;
12534
+ scopes: string[];
12535
+ profile: {
12536
+ name: string;
12537
+ picture: string;
12538
+ };
12539
+ created_at: string;
12540
+ updated_at: string;
12541
+ }[];
12542
+ };
12543
+ };
12544
+ };
12545
+ /** @description unauthorized */
12546
+ 401: {
12547
+ headers: {
12548
+ [name: string]: unknown;
12549
+ };
12550
+ content: {
12551
+ "application/problem+json": components["schemas"]["Problem"];
12552
+ };
12553
+ };
12554
+ };
12555
+ };
12556
+ get_social_CallbackEndpoint: {
12557
+ parameters: {
12558
+ query: {
12559
+ code?: string;
12560
+ state: string;
12561
+ error?: string;
12562
+ };
12563
+ header?: never;
12564
+ path: {
12565
+ provider: string;
12566
+ };
12567
+ cookie?: never;
12568
+ };
12569
+ requestBody?: never;
12570
+ responses: {
12571
+ /** @description Success */
12572
+ 302: {
12573
+ headers: {
12574
+ [name: string]: unknown;
12575
+ };
12576
+ content: {
12577
+ /** @example [] */
12578
+ "application/json": [
12579
+ ];
12580
+ };
12581
+ };
12582
+ /** @description social_provider_error | social_account_disabled | social_email_unverified */
12583
+ 403: {
12584
+ headers: {
12585
+ [name: string]: unknown;
12586
+ };
12587
+ content: {
12588
+ "application/problem+json": components["schemas"]["Problem"];
12589
+ };
12590
+ };
12591
+ /** @description social_provider_not_found */
12592
+ 404: {
12593
+ headers: {
12594
+ [name: string]: unknown;
12595
+ };
12596
+ content: {
12597
+ "application/problem+json": components["schemas"]["Problem"];
12598
+ };
12599
+ };
12600
+ /** @description social_account_exists | social_account_linked | social_email_mismatch */
12601
+ 409: {
12602
+ headers: {
12603
+ [name: string]: unknown;
12604
+ };
12605
+ content: {
12606
+ "application/problem+json": components["schemas"]["Problem"];
12607
+ };
12608
+ };
12609
+ /** @description social_email_required | social_state_invalid */
12610
+ 422: {
12611
+ headers: {
12612
+ [name: string]: unknown;
12613
+ };
12614
+ content: {
12615
+ "application/problem+json": components["schemas"]["Problem"];
12616
+ };
12617
+ };
12618
+ };
12619
+ };
12620
+ post_social_CallbackPostEndpoint: {
12621
+ parameters: {
12622
+ query?: never;
12623
+ header?: never;
12624
+ path: {
12625
+ provider: string;
12626
+ };
12627
+ cookie?: never;
12628
+ };
12629
+ requestBody: {
12630
+ content: {
12631
+ "application/json": {
12632
+ /** Format: password */
12633
+ code?: string;
12634
+ state: string;
12635
+ error?: string;
12636
+ user?: string;
12637
+ };
12638
+ };
12639
+ };
12640
+ responses: {
12641
+ /** @description Success */
12642
+ 302: {
12643
+ headers: {
12644
+ [name: string]: unknown;
12645
+ };
12646
+ content: {
12647
+ /** @example [] */
12648
+ "application/json": [
12649
+ ];
12650
+ };
12651
+ };
12652
+ /** @description social_provider_error | social_account_disabled | social_email_unverified */
12653
+ 403: {
12654
+ headers: {
12655
+ [name: string]: unknown;
12656
+ };
12657
+ content: {
12658
+ "application/problem+json": components["schemas"]["Problem"];
12659
+ };
12660
+ };
12661
+ /** @description social_provider_not_found */
12662
+ 404: {
12663
+ headers: {
12664
+ [name: string]: unknown;
12665
+ };
12666
+ content: {
12667
+ "application/problem+json": components["schemas"]["Problem"];
12668
+ };
12669
+ };
12670
+ /** @description social_account_exists | social_account_linked | social_email_mismatch */
12671
+ 409: {
12672
+ headers: {
12673
+ [name: string]: unknown;
12674
+ };
12675
+ content: {
12676
+ "application/problem+json": components["schemas"]["Problem"];
12677
+ };
12678
+ };
12679
+ /** @description social_email_required | social_state_invalid */
12680
+ 422: {
12681
+ headers: {
12682
+ [name: string]: unknown;
12683
+ };
12684
+ content: {
12685
+ "application/problem+json": components["schemas"]["Problem"];
12686
+ };
12687
+ };
12688
+ };
12689
+ };
12690
+ post_social_ExchangeEndpoint: {
12691
+ parameters: {
12692
+ query?: never;
12693
+ header?: never;
12694
+ path?: never;
12695
+ cookie?: never;
12696
+ };
12697
+ requestBody: {
12698
+ content: {
12699
+ "application/json": {
12700
+ /** Format: password */
12701
+ code: string;
12702
+ };
12703
+ };
12704
+ };
12705
+ responses: {
12706
+ /** @description Success */
12707
+ 200: {
12708
+ headers: {
12709
+ [name: string]: unknown;
12710
+ };
12711
+ content: {
12712
+ /**
12713
+ * @example {
12714
+ * "data": {
12715
+ * "access_token": "<jwt>",
12716
+ * "token_type": "Bearer",
12717
+ * "expires_in": 900,
12718
+ * "refresh_token": "<opaque>",
12719
+ * "user": {
12720
+ * "id": "018f...",
12721
+ * "email": "ada@example.com",
12722
+ * "email_verified": true
12723
+ * }
12724
+ * }
12725
+ * }
12726
+ */
12727
+ "application/json": {
12728
+ data: {
12729
+ access_token: string;
12730
+ token_type: string;
12731
+ expires_in: number;
12732
+ refresh_token: string;
12733
+ user: {
12734
+ id: string;
12735
+ email: string;
12736
+ email_verified: boolean;
12737
+ };
12738
+ };
12739
+ };
12740
+ };
12741
+ };
12742
+ /** @description social_code_invalid | social_invalid_input */
12743
+ 422: {
12744
+ headers: {
12745
+ [name: string]: unknown;
12746
+ };
12747
+ content: {
12748
+ "application/problem+json": components["schemas"]["Problem"];
12749
+ };
12750
+ };
12751
+ };
12752
+ };
12753
+ post_social_LinkEndpoint: {
12754
+ parameters: {
12755
+ query?: never;
12756
+ header?: never;
12757
+ path: {
12758
+ provider: string;
12759
+ };
12760
+ cookie?: never;
12761
+ };
12762
+ requestBody: {
12763
+ content: {
12764
+ "application/json": {
12765
+ redirect_uri?: string;
12766
+ scopes?: string;
12767
+ };
12768
+ };
12769
+ };
12770
+ responses: {
12771
+ /** @description Success */
12772
+ 200: {
12773
+ headers: {
12774
+ [name: string]: unknown;
12775
+ };
12776
+ content: {
12777
+ /**
12778
+ * @example {
12779
+ * "data": {
12780
+ * "url": "https://github.com/login/oauth/authorize?client_id=...&state=...",
12781
+ * "state": "<opaque>"
12782
+ * }
12783
+ * }
12784
+ */
12785
+ "application/json": {
12786
+ data: {
12787
+ url: string;
12788
+ state: string;
12789
+ };
12790
+ };
12791
+ };
12792
+ };
12793
+ /** @description unauthorized | step_up_required */
12794
+ 401: {
12795
+ headers: {
12796
+ [name: string]: unknown;
12797
+ };
12798
+ content: {
12799
+ "application/problem+json": components["schemas"]["Problem"];
12800
+ };
12801
+ };
12802
+ /** @description social_provider_not_found */
12803
+ 404: {
12804
+ headers: {
12805
+ [name: string]: unknown;
12806
+ };
12807
+ content: {
12808
+ "application/problem+json": components["schemas"]["Problem"];
12809
+ };
12810
+ };
12811
+ /** @description social_redirect_not_allowed */
12812
+ 422: {
12813
+ headers: {
12814
+ [name: string]: unknown;
12815
+ };
12816
+ content: {
12817
+ "application/problem+json": components["schemas"]["Problem"];
12818
+ };
12819
+ };
12820
+ };
12821
+ };
12822
+ post_social_OneTapEndpoint: {
12823
+ parameters: {
12824
+ query?: never;
12825
+ header?: never;
12826
+ path?: never;
12827
+ cookie?: never;
12828
+ };
12829
+ requestBody: {
12830
+ content: {
12831
+ "application/json": {
12832
+ /** Format: password */
12833
+ credential: string;
12834
+ };
12835
+ };
12836
+ };
12837
+ responses: {
12838
+ /** @description Success */
12839
+ 200: {
12840
+ headers: {
12841
+ [name: string]: unknown;
12842
+ };
12843
+ content: {
12844
+ /**
12845
+ * @example {
12846
+ * "data": {
12847
+ * "access_token": "<jwt>",
12848
+ * "token_type": "Bearer",
12849
+ * "expires_in": 900,
12850
+ * "refresh_token": "<opaque>",
12851
+ * "user": {
12852
+ * "id": "018f...",
12853
+ * "email": "ada@example.com",
12854
+ * "email_verified": true
12855
+ * }
12856
+ * }
12857
+ * }
12858
+ */
12859
+ "application/json": {
12860
+ data: {
12861
+ access_token: string;
12862
+ token_type: string;
12863
+ expires_in: number;
12864
+ refresh_token: string;
12865
+ user: {
12866
+ id: string;
12867
+ email: string;
12868
+ email_verified: boolean;
12869
+ };
12870
+ };
12871
+ };
12872
+ };
12873
+ };
12874
+ /** @description social_provider_error | social_account_disabled | social_email_unverified */
12875
+ 403: {
12876
+ headers: {
12877
+ [name: string]: unknown;
12878
+ };
12879
+ content: {
12880
+ "application/problem+json": components["schemas"]["Problem"];
12881
+ };
12882
+ };
12883
+ /** @description social_provider_not_found */
12884
+ 404: {
12885
+ headers: {
12886
+ [name: string]: unknown;
12887
+ };
12888
+ content: {
12889
+ "application/problem+json": components["schemas"]["Problem"];
12890
+ };
12891
+ };
12892
+ /** @description social_account_exists */
12893
+ 409: {
12894
+ headers: {
12895
+ [name: string]: unknown;
12896
+ };
12897
+ content: {
12898
+ "application/problem+json": components["schemas"]["Problem"];
12899
+ };
12900
+ };
12901
+ /** @description social_invalid_input */
12902
+ 422: {
12903
+ headers: {
12904
+ [name: string]: unknown;
12905
+ };
12906
+ content: {
12907
+ "application/problem+json": components["schemas"]["Problem"];
12908
+ };
12909
+ };
12910
+ };
12911
+ };
12912
+ post_social_StartEndpoint: {
12913
+ parameters: {
12914
+ query?: never;
12915
+ header?: never;
12916
+ path: {
12917
+ provider: string;
12918
+ };
12919
+ cookie?: never;
12920
+ };
12921
+ requestBody: {
12922
+ content: {
12923
+ "application/json": {
12924
+ redirect_uri?: string;
12925
+ scopes?: string;
12926
+ };
12927
+ };
12928
+ };
12929
+ responses: {
12930
+ /** @description Success */
12931
+ 200: {
12932
+ headers: {
12933
+ [name: string]: unknown;
12934
+ };
12935
+ content: {
12936
+ /**
12937
+ * @example {
12938
+ * "data": {
12939
+ * "url": "https://accounts.google.com/o/oauth2/v2/auth?client_id=...&state=...",
12940
+ * "state": "<opaque>"
12941
+ * }
12942
+ * }
12943
+ */
12944
+ "application/json": {
12945
+ data: {
12946
+ url: string;
12947
+ state: string;
12948
+ };
12949
+ };
12950
+ };
12951
+ };
12952
+ /** @description social_provider_not_found */
12953
+ 404: {
12954
+ headers: {
12955
+ [name: string]: unknown;
12956
+ };
12957
+ content: {
12958
+ "application/problem+json": components["schemas"]["Problem"];
12959
+ };
12960
+ };
12961
+ /** @description social_redirect_not_allowed */
12962
+ 422: {
12963
+ headers: {
12964
+ [name: string]: unknown;
12965
+ };
12966
+ content: {
12967
+ "application/problem+json": components["schemas"]["Problem"];
12968
+ };
12969
+ };
12970
+ };
12971
+ };
12972
+ post_social_TokenEndpoint: {
12973
+ parameters: {
12974
+ query?: never;
12975
+ header?: never;
12976
+ path: {
12977
+ provider: string;
12978
+ };
12979
+ cookie?: never;
12980
+ };
12981
+ requestBody?: never;
12982
+ responses: {
12983
+ /** @description Success */
12984
+ 200: {
12985
+ headers: {
12986
+ [name: string]: unknown;
12987
+ };
12988
+ content: {
12989
+ /**
12990
+ * @example {
12991
+ * "data": {
12992
+ * "access_token": "<opaque>",
12993
+ * "expires_at": "2026-10-09T11:00:00+00:00",
12994
+ * "scopes": [
12995
+ * "repo"
12996
+ * ]
12997
+ * }
12998
+ * }
12999
+ */
13000
+ "application/json": {
13001
+ data: {
13002
+ access_token: string;
13003
+ expires_at: string;
13004
+ scopes: string[];
13005
+ };
13006
+ };
13007
+ };
13008
+ };
13009
+ /** @description unauthorized | step_up_required */
13010
+ 401: {
13011
+ headers: {
13012
+ [name: string]: unknown;
13013
+ };
13014
+ content: {
13015
+ "application/problem+json": components["schemas"]["Problem"];
13016
+ };
13017
+ };
13018
+ /** @description social_not_linked */
13019
+ 404: {
13020
+ headers: {
13021
+ [name: string]: unknown;
13022
+ };
13023
+ content: {
13024
+ "application/problem+json": components["schemas"]["Problem"];
13025
+ };
13026
+ };
13027
+ /** @description social_no_refresh */
13028
+ 409: {
13029
+ headers: {
13030
+ [name: string]: unknown;
13031
+ };
13032
+ content: {
13033
+ "application/problem+json": components["schemas"]["Problem"];
13034
+ };
13035
+ };
13036
+ };
13037
+ };
13038
+ delete_social_UnlinkEndpoint: {
13039
+ parameters: {
13040
+ query?: never;
13041
+ header?: never;
13042
+ path: {
13043
+ provider: string;
13044
+ };
13045
+ cookie?: never;
13046
+ };
13047
+ requestBody?: never;
13048
+ responses: {
13049
+ /** @description Success */
13050
+ 200: {
13051
+ headers: {
13052
+ [name: string]: unknown;
13053
+ };
13054
+ content: {
13055
+ /**
13056
+ * @example {
13057
+ * "data": {
13058
+ * "status": "unlinked"
13059
+ * }
13060
+ * }
13061
+ */
13062
+ "application/json": {
13063
+ data: {
13064
+ status: string;
13065
+ };
13066
+ };
13067
+ };
13068
+ };
13069
+ /** @description unauthorized | step_up_required */
13070
+ 401: {
13071
+ headers: {
13072
+ [name: string]: unknown;
13073
+ };
13074
+ content: {
13075
+ "application/problem+json": components["schemas"]["Problem"];
13076
+ };
13077
+ };
13078
+ /** @description social_not_linked */
13079
+ 404: {
13080
+ headers: {
13081
+ [name: string]: unknown;
13082
+ };
13083
+ content: {
13084
+ "application/problem+json": components["schemas"]["Problem"];
13085
+ };
13086
+ };
13087
+ /** @description social_last_credential */
13088
+ 409: {
13089
+ headers: {
13090
+ [name: string]: unknown;
13091
+ };
13092
+ content: {
13093
+ "application/problem+json": components["schemas"]["Problem"];
13094
+ };
13095
+ };
13096
+ };
13097
+ };
13098
+ post_passkey_AuthenticateOptionsEndpoint: {
13099
+ parameters: {
13100
+ query?: never;
13101
+ header?: never;
13102
+ path?: never;
13103
+ cookie?: never;
13104
+ };
13105
+ requestBody?: never;
13106
+ responses: {
13107
+ /** @description Success */
13108
+ 200: {
13109
+ headers: {
13110
+ [name: string]: unknown;
13111
+ };
13112
+ content: {
13113
+ /**
13114
+ * @example {
13115
+ * "data": {
13116
+ * "challenge": "<opaque>",
13117
+ * "rpId": "app.example.com",
13118
+ * "allowCredentials": [],
13119
+ * "userVerification": "preferred",
13120
+ * "timeout": 60000
13121
+ * }
13122
+ * }
13123
+ */
13124
+ "application/json": {
13125
+ data: {
13126
+ challenge: string;
13127
+ rpId: string;
13128
+ allowCredentials: [
13129
+ ];
13130
+ userVerification: string;
13131
+ timeout: number;
13132
+ };
13133
+ };
13134
+ };
13135
+ };
13136
+ };
13137
+ };
13138
+ post_passkey_AuthenticateVerifyEndpoint: {
13139
+ parameters: {
13140
+ query?: never;
13141
+ header?: never;
13142
+ path?: never;
13143
+ cookie?: never;
13144
+ };
13145
+ requestBody: {
13146
+ content: {
13147
+ "application/json": {
13148
+ credential: {
13149
+ [key: string]: unknown;
13150
+ };
13151
+ };
13152
+ };
13153
+ };
13154
+ responses: {
13155
+ /** @description Success */
13156
+ 200: {
13157
+ headers: {
13158
+ [name: string]: unknown;
13159
+ };
13160
+ content: {
13161
+ /**
13162
+ * @example {
13163
+ * "data": {
13164
+ * "access_token": "<jwt>",
13165
+ * "token_type": "Bearer",
13166
+ * "expires_in": 900,
13167
+ * "refresh_token": "<opaque>",
13168
+ * "user": {
13169
+ * "id": "018f...",
13170
+ * "email": "ada@example.com",
13171
+ * "email_verified": true
13172
+ * }
13173
+ * }
13174
+ * }
13175
+ */
13176
+ "application/json": {
13177
+ data: {
13178
+ access_token: string;
13179
+ token_type: string;
13180
+ expires_in: number;
13181
+ refresh_token: string;
13182
+ user: {
13183
+ id: string;
13184
+ email: string;
13185
+ email_verified: boolean;
13186
+ };
13187
+ };
13188
+ };
13189
+ };
13190
+ };
13191
+ /** @description passkey_account_disabled | passkey_email_unverified | passkey_user_verification_required | passkey_origin_mismatch */
13192
+ 403: {
13193
+ headers: {
13194
+ [name: string]: unknown;
13195
+ };
13196
+ content: {
13197
+ "application/problem+json": components["schemas"]["Problem"];
13198
+ };
13199
+ };
13200
+ /** @description passkey_challenge_invalid | passkey_credential_invalid | passkey_invalid_input */
13201
+ 422: {
13202
+ headers: {
13203
+ [name: string]: unknown;
13204
+ };
13205
+ content: {
13206
+ "application/problem+json": components["schemas"]["Problem"];
13207
+ };
13208
+ };
13209
+ };
13210
+ };
13211
+ delete_passkey_DeleteEndpoint: {
13212
+ parameters: {
13213
+ query?: never;
13214
+ header?: never;
13215
+ path: {
13216
+ id: string;
13217
+ };
13218
+ cookie?: never;
13219
+ };
13220
+ requestBody?: never;
13221
+ responses: {
13222
+ /** @description Success */
13223
+ 200: {
13224
+ headers: {
13225
+ [name: string]: unknown;
13226
+ };
13227
+ content: {
13228
+ /**
13229
+ * @example {
13230
+ * "data": {
13231
+ * "status": "deleted"
13232
+ * }
13233
+ * }
13234
+ */
13235
+ "application/json": {
13236
+ data: {
13237
+ status: string;
13238
+ };
13239
+ };
13240
+ };
13241
+ };
13242
+ /** @description unauthorized | step_up_required */
13243
+ 401: {
13244
+ headers: {
13245
+ [name: string]: unknown;
13246
+ };
13247
+ content: {
13248
+ "application/problem+json": components["schemas"]["Problem"];
13249
+ };
13250
+ };
13251
+ /** @description passkey_not_found */
13252
+ 404: {
13253
+ headers: {
13254
+ [name: string]: unknown;
13255
+ };
13256
+ content: {
13257
+ "application/problem+json": components["schemas"]["Problem"];
13258
+ };
13259
+ };
13260
+ /** @description passkey_last_factor */
13261
+ 409: {
13262
+ headers: {
13263
+ [name: string]: unknown;
13264
+ };
13265
+ content: {
13266
+ "application/problem+json": components["schemas"]["Problem"];
13267
+ };
13268
+ };
13269
+ };
13270
+ };
13271
+ patch_passkey_RenameEndpoint: {
13272
+ parameters: {
13273
+ query?: never;
13274
+ header?: never;
13275
+ path: {
13276
+ id: string;
13277
+ };
13278
+ cookie?: never;
13279
+ };
13280
+ requestBody: {
13281
+ content: {
13282
+ "application/json": {
13283
+ name: string;
13284
+ };
13285
+ };
13286
+ };
13287
+ responses: {
13288
+ /** @description Success */
13289
+ 200: {
13290
+ headers: {
13291
+ [name: string]: unknown;
13292
+ };
13293
+ content: {
13294
+ /**
13295
+ * @example {
13296
+ * "data": {
13297
+ * "id": "018f...",
13298
+ * "name": "Work laptop",
13299
+ * "aaguid": "<uuid>",
13300
+ * "transports": [
13301
+ * "internal"
13302
+ * ],
13303
+ * "backed_up": true,
13304
+ * "factor_id": "018f...",
13305
+ * "last_used_at": null,
13306
+ * "created_at": "2026-10-09T10:00:00+00:00"
13307
+ * }
13308
+ * }
13309
+ */
13310
+ "application/json": {
13311
+ data: {
13312
+ id: string;
13313
+ name: string;
13314
+ aaguid: string;
13315
+ transports: string[];
13316
+ backed_up: boolean;
13317
+ factor_id: string;
13318
+ last_used_at: string | null;
13319
+ created_at: string;
13320
+ };
13321
+ };
13322
+ };
13323
+ };
13324
+ /** @description unauthorized */
13325
+ 401: {
13326
+ headers: {
13327
+ [name: string]: unknown;
13328
+ };
13329
+ content: {
13330
+ "application/problem+json": components["schemas"]["Problem"];
13331
+ };
13332
+ };
13333
+ /** @description passkey_not_found */
13334
+ 404: {
13335
+ headers: {
13336
+ [name: string]: unknown;
13337
+ };
13338
+ content: {
13339
+ "application/problem+json": components["schemas"]["Problem"];
13340
+ };
13341
+ };
13342
+ /** @description passkey_invalid_input */
13343
+ 422: {
13344
+ headers: {
13345
+ [name: string]: unknown;
13346
+ };
13347
+ content: {
13348
+ "application/problem+json": components["schemas"]["Problem"];
13349
+ };
13350
+ };
13351
+ };
13352
+ };
13353
+ get_passkey_ListEndpoint: {
13354
+ parameters: {
13355
+ query?: never;
13356
+ header?: never;
13357
+ path?: never;
13358
+ cookie?: never;
13359
+ };
13360
+ requestBody?: never;
13361
+ responses: {
13362
+ /** @description Success */
13363
+ 200: {
13364
+ headers: {
13365
+ [name: string]: unknown;
13366
+ };
13367
+ content: {
13368
+ /**
13369
+ * @example {
13370
+ * "data": [
13371
+ * {
13372
+ * "id": "018f...",
13373
+ * "name": "MacBook",
13374
+ * "aaguid": "<uuid>",
13375
+ * "transports": [
13376
+ * "internal",
13377
+ * "hybrid"
13378
+ * ],
13379
+ * "backed_up": true,
13380
+ * "factor_id": "018f...",
13381
+ * "last_used_at": "2026-10-09T10:05:00+00:00",
13382
+ * "created_at": "2026-10-09T10:00:00+00:00"
13383
+ * }
13384
+ * ]
13385
+ * }
13386
+ */
13387
+ "application/json": {
13388
+ data: {
13389
+ id: string;
13390
+ name: string;
13391
+ aaguid: string;
13392
+ transports: string[];
13393
+ backed_up: boolean;
13394
+ factor_id: string;
13395
+ last_used_at: string;
13396
+ created_at: string;
13397
+ }[];
13398
+ };
13399
+ };
13400
+ };
13401
+ /** @description unauthorized */
13402
+ 401: {
13403
+ headers: {
13404
+ [name: string]: unknown;
13405
+ };
13406
+ content: {
13407
+ "application/problem+json": components["schemas"]["Problem"];
13408
+ };
13409
+ };
13410
+ };
13411
+ };
13412
+ post_passkey_RegisterOptionsEndpoint: {
13413
+ parameters: {
13414
+ query?: never;
13415
+ header?: never;
13416
+ path?: never;
13417
+ cookie?: never;
13418
+ };
13419
+ requestBody?: never;
13420
+ responses: {
13421
+ /** @description Success */
13422
+ 200: {
13423
+ headers: {
13424
+ [name: string]: unknown;
13425
+ };
13426
+ content: {
13427
+ /**
13428
+ * @example {
13429
+ * "data": {
13430
+ * "rp": {
13431
+ * "id": "app.example.com",
13432
+ * "name": "App"
13433
+ * },
13434
+ * "user": {
13435
+ * "id": "<opaque>",
13436
+ * "name": "ada@example.com",
13437
+ * "displayName": "Ada"
13438
+ * },
13439
+ * "challenge": "<opaque>",
13440
+ * "pubKeyCredParams": [
13441
+ * {
13442
+ * "type": "public-key",
13443
+ * "alg": -7
13444
+ * },
13445
+ * {
13446
+ * "type": "public-key",
13447
+ * "alg": -257
13448
+ * }
13449
+ * ],
13450
+ * "authenticatorSelection": {
13451
+ * "residentKey": "required",
13452
+ * "userVerification": "preferred"
13453
+ * },
13454
+ * "attestation": "none",
13455
+ * "excludeCredentials": [],
13456
+ * "timeout": 60000
13457
+ * }
13458
+ * }
13459
+ */
13460
+ "application/json": {
13461
+ data: {
13462
+ rp: {
13463
+ id: string;
13464
+ name: string;
13465
+ };
13466
+ user: {
13467
+ id: string;
13468
+ name: string;
13469
+ displayName: string;
13470
+ };
13471
+ challenge: string;
13472
+ pubKeyCredParams: {
13473
+ type: string;
13474
+ alg: number;
13475
+ }[];
13476
+ authenticatorSelection: {
13477
+ residentKey: string;
13478
+ userVerification: string;
13479
+ };
13480
+ attestation: string;
13481
+ excludeCredentials: [
13482
+ ];
13483
+ timeout: number;
13484
+ };
13485
+ };
13486
+ };
13487
+ };
13488
+ /** @description unauthorized | step_up_required */
13489
+ 401: {
13490
+ headers: {
13491
+ [name: string]: unknown;
13492
+ };
13493
+ content: {
13494
+ "application/problem+json": components["schemas"]["Problem"];
13495
+ };
13496
+ };
13497
+ };
13498
+ };
13499
+ post_passkey_RegisterVerifyEndpoint: {
13500
+ parameters: {
13501
+ query?: never;
13502
+ header?: never;
13503
+ path?: never;
13504
+ cookie?: never;
13505
+ };
13506
+ requestBody: {
13507
+ content: {
13508
+ "application/json": {
13509
+ credential: {
13510
+ [key: string]: unknown;
13511
+ };
13512
+ name?: string;
13513
+ };
13514
+ };
13515
+ };
13516
+ responses: {
13517
+ /** @description Success */
13518
+ 201: {
13519
+ headers: {
13520
+ [name: string]: unknown;
13521
+ };
13522
+ content: {
13523
+ /**
13524
+ * @example {
13525
+ * "data": {
13526
+ * "passkey": {
13527
+ * "id": "018f...",
13528
+ * "name": "MacBook",
13529
+ * "aaguid": "<uuid>",
13530
+ * "transports": [
13531
+ * "internal",
13532
+ * "hybrid"
13533
+ * ],
13534
+ * "backed_up": true,
13535
+ * "factor_id": "018f...",
13536
+ * "last_used_at": null,
13537
+ * "created_at": "2026-10-09T10:00:00+00:00"
13538
+ * },
13539
+ * "recovery_codes": [
13540
+ * "<code>",
13541
+ * "<code>"
13542
+ * ]
13543
+ * }
13544
+ * }
13545
+ */
13546
+ "application/json": {
13547
+ data: {
13548
+ passkey: {
13549
+ id: string;
13550
+ name: string;
13551
+ aaguid: string;
13552
+ transports: string[];
13553
+ backed_up: boolean;
13554
+ factor_id: string;
13555
+ last_used_at: string | null;
13556
+ created_at: string;
13557
+ };
13558
+ recovery_codes: string[];
13559
+ };
13560
+ };
13561
+ };
13562
+ };
13563
+ /** @description unauthorized | step_up_required */
13564
+ 401: {
13565
+ headers: {
13566
+ [name: string]: unknown;
13567
+ };
13568
+ content: {
13569
+ "application/problem+json": components["schemas"]["Problem"];
13570
+ };
13571
+ };
13572
+ /** @description passkey_origin_mismatch */
13573
+ 403: {
13574
+ headers: {
13575
+ [name: string]: unknown;
13576
+ };
13577
+ content: {
13578
+ "application/problem+json": components["schemas"]["Problem"];
13579
+ };
13580
+ };
13581
+ /** @description passkey_challenge_invalid | passkey_credential_invalid | passkey_invalid_input */
13582
+ 422: {
13583
+ headers: {
13584
+ [name: string]: unknown;
13585
+ };
13586
+ content: {
13587
+ "application/problem+json": components["schemas"]["Problem"];
13588
+ };
13589
+ };
13590
+ };
13591
+ };
12248
13592
  }