@authara/react-native 0.0.0-stage → 0.0.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.
@@ -0,0 +1,1060 @@
1
+ export declare const autharaGeneratedOperations: readonly [{
2
+ readonly id: "getCurrentAccount";
3
+ readonly method: "GET";
4
+ readonly path: "/auth/api/v1/account";
5
+ readonly summary: "Get the authenticated user's account";
6
+ readonly tag: "Users";
7
+ readonly access: "user";
8
+ readonly hasOptions: true;
9
+ readonly optionsRequired: false;
10
+ readonly optionsType: "{ sessions_cursor?: string; sessions_limit?: number; passkeys_cursor?: string; passkeys_limit?: number }";
11
+ readonly exampleOptions: {
12
+ readonly sessions_limit: 20;
13
+ readonly passkeys_limit: 20;
14
+ };
15
+ readonly mutates: false;
16
+ }, {
17
+ readonly id: "linkCurrentUserApple";
18
+ readonly method: "POST";
19
+ readonly path: "/auth/api/v1/account/auth-methods/apple";
20
+ readonly summary: "Link Apple to the authenticated user's account";
21
+ readonly tag: "Users";
22
+ readonly access: "user";
23
+ readonly hasOptions: true;
24
+ readonly optionsRequired: true;
25
+ readonly optionsType: "{ body: API.AppleAuthorizationRequest }";
26
+ readonly exampleOptions: {
27
+ readonly body: {
28
+ readonly code: "000000";
29
+ readonly state: "<state>";
30
+ };
31
+ };
32
+ readonly mutates: true;
33
+ }, {
34
+ readonly id: "linkCurrentUserGoogle";
35
+ readonly method: "POST";
36
+ readonly path: "/auth/api/v1/account/auth-methods/google";
37
+ readonly summary: "Link Google to the authenticated user's account";
38
+ readonly tag: "Users";
39
+ readonly access: "user";
40
+ readonly hasOptions: true;
41
+ readonly optionsRequired: true;
42
+ readonly optionsType: "{ body: API.GoogleLoginRequest }";
43
+ readonly exampleOptions: {
44
+ readonly body: {};
45
+ };
46
+ readonly mutates: true;
47
+ }, {
48
+ readonly id: "linkCurrentUserMicrosoft";
49
+ readonly method: "POST";
50
+ readonly path: "/auth/api/v1/account/auth-methods/microsoft";
51
+ readonly summary: "Link Microsoft to the authenticated user's account";
52
+ readonly tag: "Users";
53
+ readonly access: "user";
54
+ readonly hasOptions: true;
55
+ readonly optionsRequired: true;
56
+ readonly optionsType: "{ body: API.MicrosoftLoginRequest }";
57
+ readonly exampleOptions: {
58
+ readonly body: {
59
+ readonly credential: "<token>";
60
+ readonly nonce: "<nonce>";
61
+ };
62
+ };
63
+ readonly mutates: true;
64
+ }, {
65
+ readonly id: "unlinkCurrentUserAuthMethod";
66
+ readonly method: "DELETE";
67
+ readonly path: "/auth/api/v1/account/auth-methods/{provider}";
68
+ readonly summary: "Unlink an authentication method from the authenticated user's account";
69
+ readonly tag: "Users";
70
+ readonly access: "user";
71
+ readonly hasOptions: true;
72
+ readonly optionsRequired: true;
73
+ readonly optionsType: "{ provider: \"password\" | \"google\" | \"apple\" | \"microsoft\" }";
74
+ readonly exampleOptions: {
75
+ readonly provider: "password";
76
+ };
77
+ readonly mutates: true;
78
+ }, {
79
+ readonly id: "startCurrentUserEmailChange";
80
+ readonly method: "POST";
81
+ readonly path: "/auth/api/v1/account/email-change/challenges";
82
+ readonly summary: "Start an email change challenge";
83
+ readonly tag: "Users";
84
+ readonly access: "user";
85
+ readonly hasOptions: true;
86
+ readonly optionsRequired: true;
87
+ readonly optionsType: "{ body: API.EmailChangeRequest }";
88
+ readonly exampleOptions: {
89
+ readonly body: {
90
+ readonly new_email: "mobile@example.com";
91
+ };
92
+ };
93
+ readonly mutates: true;
94
+ }, {
95
+ readonly id: "verifyCurrentUserEmailChange";
96
+ readonly method: "POST";
97
+ readonly path: "/auth/api/v1/account/email-change/challenges/verify";
98
+ readonly summary: "Verify an email change challenge";
99
+ readonly tag: "Users";
100
+ readonly access: "user";
101
+ readonly hasOptions: true;
102
+ readonly optionsRequired: true;
103
+ readonly optionsType: "{ body: API.ChallengeVerification }";
104
+ readonly exampleOptions: {
105
+ readonly body: {
106
+ readonly challenge_id: "00000000-0000-0000-0000-000000000000";
107
+ readonly code: "000000";
108
+ };
109
+ };
110
+ readonly mutates: true;
111
+ }, {
112
+ readonly id: "deleteCurrentUserPasskey";
113
+ readonly method: "DELETE";
114
+ readonly path: "/auth/api/v1/account/passkeys/{passkeyID}";
115
+ readonly summary: "Delete a passkey from the authenticated user's account";
116
+ readonly tag: "Passkeys";
117
+ readonly access: "user";
118
+ readonly hasOptions: true;
119
+ readonly optionsRequired: true;
120
+ readonly optionsType: "{ passkeyID: string }";
121
+ readonly exampleOptions: {
122
+ readonly passkeyID: "00000000-0000-0000-0000-000000000000";
123
+ };
124
+ readonly mutates: true;
125
+ }, {
126
+ readonly id: "addCurrentUserPassword";
127
+ readonly method: "POST";
128
+ readonly path: "/auth/api/v1/account/password";
129
+ readonly summary: "Add password authentication to the authenticated user's account";
130
+ readonly tag: "Users";
131
+ readonly access: "user";
132
+ readonly hasOptions: true;
133
+ readonly optionsRequired: true;
134
+ readonly optionsType: "{ body: API.SetPasswordRequest }";
135
+ readonly exampleOptions: {
136
+ readonly body: {
137
+ readonly password: "change-me-123456";
138
+ };
139
+ };
140
+ readonly mutates: true;
141
+ }, {
142
+ readonly id: "changeCurrentUserPassword";
143
+ readonly method: "PUT";
144
+ readonly path: "/auth/api/v1/account/password";
145
+ readonly summary: "Change the authenticated user's password";
146
+ readonly tag: "Users";
147
+ readonly access: "user";
148
+ readonly hasOptions: true;
149
+ readonly optionsRequired: true;
150
+ readonly optionsType: "{ body: API.ChangePasswordRequest }";
151
+ readonly exampleOptions: {
152
+ readonly body: {
153
+ readonly current_password: "change-me-123456";
154
+ readonly new_password: "change-me-123456";
155
+ };
156
+ };
157
+ readonly mutates: true;
158
+ }, {
159
+ readonly id: "revokeCurrentUserOtherSessions";
160
+ readonly method: "DELETE";
161
+ readonly path: "/auth/api/v1/account/sessions/others";
162
+ readonly summary: "Revoke all sessions except the current session";
163
+ readonly tag: "Sessions";
164
+ readonly access: "user";
165
+ readonly hasOptions: false;
166
+ readonly optionsRequired: false;
167
+ readonly optionsType: "No options";
168
+ readonly exampleOptions: {};
169
+ readonly mutates: true;
170
+ }, {
171
+ readonly id: "revokeCurrentUserSession";
172
+ readonly method: "DELETE";
173
+ readonly path: "/auth/api/v1/account/sessions/{sessionID}";
174
+ readonly summary: "Revoke one of the authenticated user's sessions";
175
+ readonly tag: "Sessions";
176
+ readonly access: "user";
177
+ readonly hasOptions: true;
178
+ readonly optionsRequired: true;
179
+ readonly optionsType: "{ sessionID: string }";
180
+ readonly exampleOptions: {
181
+ readonly sessionID: "00000000-0000-0000-0000-000000000000";
182
+ };
183
+ readonly mutates: true;
184
+ }, {
185
+ readonly id: "changeCurrentUsername";
186
+ readonly method: "PATCH";
187
+ readonly path: "/auth/api/v1/account/username";
188
+ readonly summary: "Change the authenticated user's username";
189
+ readonly tag: "Users";
190
+ readonly access: "user";
191
+ readonly hasOptions: true;
192
+ readonly optionsRequired: true;
193
+ readonly optionsType: "{ body: API.ChangeUsernameRequest }";
194
+ readonly exampleOptions: {
195
+ readonly body: {
196
+ readonly username: "mobile-tester";
197
+ };
198
+ };
199
+ readonly mutates: true;
200
+ }, {
201
+ readonly id: "getPublicCapabilities";
202
+ readonly method: "GET";
203
+ readonly path: "/auth/api/v1/capabilities";
204
+ readonly summary: "Get organization capabilities";
205
+ readonly tag: "Organizations";
206
+ readonly access: "user";
207
+ readonly hasOptions: false;
208
+ readonly optionsRequired: false;
209
+ readonly optionsType: "No options";
210
+ readonly exampleOptions: {};
211
+ readonly mutates: false;
212
+ }, {
213
+ readonly id: "resendChallenge";
214
+ readonly method: "POST";
215
+ readonly path: "/auth/api/v1/challenges/resend";
216
+ readonly summary: "Request another challenge verification code";
217
+ readonly tag: "Authentication";
218
+ readonly access: "public";
219
+ readonly hasOptions: true;
220
+ readonly optionsRequired: true;
221
+ readonly optionsType: "{ session_transport?: \"cookie\" | \"token\"; body: API.ChallengeReference }";
222
+ readonly exampleOptions: {
223
+ readonly session_transport: "token";
224
+ readonly body: {
225
+ readonly challenge_id: "00000000-0000-0000-0000-000000000000";
226
+ };
227
+ };
228
+ readonly mutates: true;
229
+ }, {
230
+ readonly id: "getCsrfToken";
231
+ readonly method: "GET";
232
+ readonly path: "/auth/api/v1/csrf";
233
+ readonly summary: "Get a CSRF token";
234
+ readonly tag: "Authentication";
235
+ readonly access: "public";
236
+ readonly hasOptions: false;
237
+ readonly optionsRequired: false;
238
+ readonly optionsType: "No options";
239
+ readonly exampleOptions: {};
240
+ readonly mutates: false;
241
+ }, {
242
+ readonly id: "acceptInvitation";
243
+ readonly method: "POST";
244
+ readonly path: "/auth/api/v1/invitations/accept";
245
+ readonly summary: "Accept an invitation and switch the current session to its organization";
246
+ readonly tag: "Organizations";
247
+ readonly access: "user";
248
+ readonly hasOptions: true;
249
+ readonly optionsRequired: true;
250
+ readonly optionsType: "{ audience?: \"app\"; body: API.InvitationTokenRequest }";
251
+ readonly exampleOptions: {
252
+ readonly audience: "app";
253
+ readonly body: {
254
+ readonly token: "<token>";
255
+ };
256
+ };
257
+ readonly mutates: true;
258
+ }, {
259
+ readonly id: "authenticateAndAcceptInvitationWithGoogle";
260
+ readonly method: "POST";
261
+ readonly path: "/auth/api/v1/invitations/google";
262
+ readonly summary: "Sign up or log in with Google, accept an invitation, and switch organizations";
263
+ readonly tag: "Authentication";
264
+ readonly access: "public";
265
+ readonly hasOptions: true;
266
+ readonly optionsRequired: true;
267
+ readonly optionsType: "{ audience?: \"app\"; body: API.InvitationGoogleRequest }";
268
+ readonly exampleOptions: {
269
+ readonly audience: "app";
270
+ readonly body: {
271
+ readonly token: "<token>";
272
+ readonly flow: "signup";
273
+ };
274
+ };
275
+ readonly mutates: true;
276
+ }, {
277
+ readonly id: "loginAndAcceptInvitation";
278
+ readonly method: "POST";
279
+ readonly path: "/auth/api/v1/invitations/login";
280
+ readonly summary: "Log in with a password, accept an invitation, and switch organizations";
281
+ readonly tag: "Authentication";
282
+ readonly access: "public";
283
+ readonly hasOptions: true;
284
+ readonly optionsRequired: true;
285
+ readonly optionsType: "{ audience?: \"app\"; body: API.InvitationPasswordLoginRequest }";
286
+ readonly exampleOptions: {
287
+ readonly audience: "app";
288
+ readonly body: {
289
+ readonly token: "<token>";
290
+ readonly password: "change-me-123456";
291
+ };
292
+ };
293
+ readonly mutates: true;
294
+ }, {
295
+ readonly id: "previewInvitation";
296
+ readonly method: "GET";
297
+ readonly path: "/auth/api/v1/invitations/preview";
298
+ readonly summary: "Preview an organization invitation";
299
+ readonly tag: "Organizations";
300
+ readonly access: "public";
301
+ readonly hasOptions: true;
302
+ readonly optionsRequired: true;
303
+ readonly optionsType: "{ token: string }";
304
+ readonly exampleOptions: {
305
+ readonly token: "<token>";
306
+ };
307
+ readonly mutates: false;
308
+ }, {
309
+ readonly id: "loginWithPassword";
310
+ readonly method: "POST";
311
+ readonly path: "/auth/api/v1/login";
312
+ readonly summary: "Log in with a password";
313
+ readonly tag: "Authentication";
314
+ readonly access: "public";
315
+ readonly hasOptions: true;
316
+ readonly optionsRequired: true;
317
+ readonly optionsType: "{ audience?: \"app\" | \"admin\" | \"operator\"; session_transport?: \"cookie\" | \"token\"; body: API.PasswordLoginRequest }";
318
+ readonly exampleOptions: {
319
+ readonly audience: "app";
320
+ readonly session_transport: "token";
321
+ readonly body: {
322
+ readonly identifier: "mobile@example.com";
323
+ readonly password: "change-me-123456";
324
+ };
325
+ };
326
+ readonly mutates: true;
327
+ }, {
328
+ readonly id: "loginWithApple";
329
+ readonly method: "POST";
330
+ readonly path: "/auth/api/v1/oauth/apple";
331
+ readonly summary: "Log in with an Apple authorization code";
332
+ readonly tag: "Authentication";
333
+ readonly access: "public";
334
+ readonly hasOptions: true;
335
+ readonly optionsRequired: true;
336
+ readonly optionsType: "{ audience?: \"app\" | \"admin\" | \"operator\"; session_transport?: \"cookie\" | \"token\"; body: API.AppleAuthorizationRequest }";
337
+ readonly exampleOptions: {
338
+ readonly audience: "app";
339
+ readonly session_transport: "token";
340
+ readonly body: {
341
+ readonly code: "000000";
342
+ readonly state: "<state>";
343
+ };
344
+ };
345
+ readonly mutates: true;
346
+ }, {
347
+ readonly id: "getAppleLoginOptions";
348
+ readonly method: "GET";
349
+ readonly path: "/auth/api/v1/oauth/apple/options";
350
+ readonly summary: "Get Apple login options";
351
+ readonly tag: "Authentication";
352
+ readonly access: "public";
353
+ readonly hasOptions: true;
354
+ readonly optionsRequired: false;
355
+ readonly optionsType: "{ session_transport?: \"cookie\" | \"token\" }";
356
+ readonly exampleOptions: {
357
+ readonly session_transport: "token";
358
+ };
359
+ readonly mutates: false;
360
+ }, {
361
+ readonly id: "loginWithGoogle";
362
+ readonly method: "POST";
363
+ readonly path: "/auth/api/v1/oauth/google";
364
+ readonly summary: "Log in with Google";
365
+ readonly tag: "Authentication";
366
+ readonly access: "public";
367
+ readonly hasOptions: true;
368
+ readonly optionsRequired: true;
369
+ readonly optionsType: "{ audience?: \"app\" | \"admin\" | \"operator\"; session_transport?: \"cookie\" | \"token\"; body: API.GoogleLoginRequest }";
370
+ readonly exampleOptions: {
371
+ readonly audience: "app";
372
+ readonly session_transport: "token";
373
+ readonly body: {};
374
+ };
375
+ readonly mutates: true;
376
+ }, {
377
+ readonly id: "getGoogleLoginOptions";
378
+ readonly method: "GET";
379
+ readonly path: "/auth/api/v1/oauth/google/options";
380
+ readonly summary: "Get Google login options";
381
+ readonly tag: "Authentication";
382
+ readonly access: "public";
383
+ readonly hasOptions: true;
384
+ readonly optionsRequired: false;
385
+ readonly optionsType: "{ session_transport?: \"cookie\" | \"token\" }";
386
+ readonly exampleOptions: {
387
+ readonly session_transport: "token";
388
+ };
389
+ readonly mutates: false;
390
+ }, {
391
+ readonly id: "loginWithMicrosoft";
392
+ readonly method: "POST";
393
+ readonly path: "/auth/api/v1/oauth/microsoft";
394
+ readonly summary: "Log in with Microsoft";
395
+ readonly tag: "Authentication";
396
+ readonly access: "public";
397
+ readonly hasOptions: true;
398
+ readonly optionsRequired: true;
399
+ readonly optionsType: "{ audience?: \"app\" | \"admin\" | \"operator\"; session_transport?: \"cookie\" | \"token\"; body: API.MicrosoftLoginRequest }";
400
+ readonly exampleOptions: {
401
+ readonly audience: "app";
402
+ readonly session_transport: "token";
403
+ readonly body: {
404
+ readonly credential: "<token>";
405
+ readonly nonce: "<nonce>";
406
+ };
407
+ };
408
+ readonly mutates: true;
409
+ }, {
410
+ readonly id: "getMicrosoftLoginOptions";
411
+ readonly method: "GET";
412
+ readonly path: "/auth/api/v1/oauth/microsoft/options";
413
+ readonly summary: "Get Microsoft login options";
414
+ readonly tag: "Authentication";
415
+ readonly access: "public";
416
+ readonly hasOptions: true;
417
+ readonly optionsRequired: false;
418
+ readonly optionsType: "{ session_transport?: \"cookie\" | \"token\" }";
419
+ readonly exampleOptions: {
420
+ readonly session_transport: "token";
421
+ };
422
+ readonly mutates: false;
423
+ }, {
424
+ readonly id: "listCurrentUserOrganizations";
425
+ readonly method: "GET";
426
+ readonly path: "/auth/api/v1/organizations";
427
+ readonly summary: "List organizations for the authenticated user";
428
+ readonly tag: "Organizations";
429
+ readonly access: "user";
430
+ readonly hasOptions: true;
431
+ readonly optionsRequired: false;
432
+ readonly optionsType: "{ cursor?: string; limit?: number }";
433
+ readonly exampleOptions: {
434
+ readonly limit: 20;
435
+ };
436
+ readonly mutates: false;
437
+ }, {
438
+ readonly id: "getCurrentOrganization";
439
+ readonly method: "GET";
440
+ readonly path: "/auth/api/v1/organizations/current";
441
+ readonly summary: "Get the organization in the current access token";
442
+ readonly tag: "Organizations";
443
+ readonly access: "user";
444
+ readonly hasOptions: false;
445
+ readonly optionsRequired: false;
446
+ readonly optionsType: "No options";
447
+ readonly exampleOptions: {};
448
+ readonly mutates: false;
449
+ }, {
450
+ readonly id: "listCurrentOrganizationMembers";
451
+ readonly method: "GET";
452
+ readonly path: "/auth/api/v1/organizations/current/members";
453
+ readonly summary: "List members of the current organization";
454
+ readonly tag: "Organizations";
455
+ readonly access: "user";
456
+ readonly hasOptions: true;
457
+ readonly optionsRequired: false;
458
+ readonly optionsType: "{ cursor?: string; limit?: number }";
459
+ readonly exampleOptions: {
460
+ readonly limit: 20;
461
+ };
462
+ readonly mutates: false;
463
+ }, {
464
+ readonly id: "getPublicOrganization";
465
+ readonly method: "GET";
466
+ readonly path: "/auth/api/v1/organizations/{organizationID}";
467
+ readonly summary: "Get an organization";
468
+ readonly tag: "Organizations";
469
+ readonly access: "user";
470
+ readonly hasOptions: true;
471
+ readonly optionsRequired: true;
472
+ readonly optionsType: "{ organizationID: string }";
473
+ readonly exampleOptions: {
474
+ readonly organizationID: "00000000-0000-0000-0000-000000000000";
475
+ };
476
+ readonly mutates: false;
477
+ }, {
478
+ readonly id: "updatePublicOrganization";
479
+ readonly method: "PATCH";
480
+ readonly path: "/auth/api/v1/organizations/{organizationID}";
481
+ readonly summary: "Update an organization";
482
+ readonly tag: "Organizations";
483
+ readonly access: "user";
484
+ readonly hasOptions: true;
485
+ readonly optionsRequired: true;
486
+ readonly optionsType: "{ organizationID: string; body: API.UpdateOrganizationRequest }";
487
+ readonly exampleOptions: {
488
+ readonly organizationID: "00000000-0000-0000-0000-000000000000";
489
+ readonly body: {
490
+ readonly name: "Mobile test";
491
+ };
492
+ };
493
+ readonly mutates: true;
494
+ }, {
495
+ readonly id: "listPublicOrganizationInvitations";
496
+ readonly method: "GET";
497
+ readonly path: "/auth/api/v1/organizations/{organizationID}/invitations";
498
+ readonly summary: "List organization invitations";
499
+ readonly tag: "Organizations";
500
+ readonly access: "user";
501
+ readonly hasOptions: true;
502
+ readonly optionsRequired: true;
503
+ readonly optionsType: "{ organizationID: string; cursor?: string; limit?: number }";
504
+ readonly exampleOptions: {
505
+ readonly organizationID: "00000000-0000-0000-0000-000000000000";
506
+ readonly limit: 20;
507
+ };
508
+ readonly mutates: false;
509
+ }, {
510
+ readonly id: "getPublicOrganizationInvitation";
511
+ readonly method: "GET";
512
+ readonly path: "/auth/api/v1/organizations/{organizationID}/invitations/{invitationID}";
513
+ readonly summary: "Get an organization invitation";
514
+ readonly tag: "Organizations";
515
+ readonly access: "user";
516
+ readonly hasOptions: true;
517
+ readonly optionsRequired: true;
518
+ readonly optionsType: "{ organizationID: string; invitationID: string }";
519
+ readonly exampleOptions: {
520
+ readonly organizationID: "00000000-0000-0000-0000-000000000000";
521
+ readonly invitationID: "00000000-0000-0000-0000-000000000000";
522
+ };
523
+ readonly mutates: false;
524
+ }, {
525
+ readonly id: "revokePublicOrganizationInvitation";
526
+ readonly method: "POST";
527
+ readonly path: "/auth/api/v1/organizations/{organizationID}/invitations/{invitationID}/revoke";
528
+ readonly summary: "Revoke an organization invitation";
529
+ readonly tag: "Organizations";
530
+ readonly access: "user";
531
+ readonly hasOptions: true;
532
+ readonly optionsRequired: true;
533
+ readonly optionsType: "{ organizationID: string; invitationID: string }";
534
+ readonly exampleOptions: {
535
+ readonly organizationID: "00000000-0000-0000-0000-000000000000";
536
+ readonly invitationID: "00000000-0000-0000-0000-000000000000";
537
+ };
538
+ readonly mutates: true;
539
+ }, {
540
+ readonly id: "listPublicOrganizationMembers";
541
+ readonly method: "GET";
542
+ readonly path: "/auth/api/v1/organizations/{organizationID}/members";
543
+ readonly summary: "List organization members";
544
+ readonly tag: "Organizations";
545
+ readonly access: "user";
546
+ readonly hasOptions: true;
547
+ readonly optionsRequired: true;
548
+ readonly optionsType: "{ organizationID: string; cursor?: string; limit?: number }";
549
+ readonly exampleOptions: {
550
+ readonly organizationID: "00000000-0000-0000-0000-000000000000";
551
+ readonly limit: 20;
552
+ };
553
+ readonly mutates: false;
554
+ }, {
555
+ readonly id: "getPublicOrganizationMember";
556
+ readonly method: "GET";
557
+ readonly path: "/auth/api/v1/organizations/{organizationID}/members/{userID}";
558
+ readonly summary: "Get an organization member";
559
+ readonly tag: "Organizations";
560
+ readonly access: "user";
561
+ readonly hasOptions: true;
562
+ readonly optionsRequired: true;
563
+ readonly optionsType: "{ organizationID: string; userID: string }";
564
+ readonly exampleOptions: {
565
+ readonly organizationID: "00000000-0000-0000-0000-000000000000";
566
+ readonly userID: "00000000-0000-0000-0000-000000000000";
567
+ };
568
+ readonly mutates: false;
569
+ }, {
570
+ readonly id: "updatePublicOrganizationMember";
571
+ readonly method: "PATCH";
572
+ readonly path: "/auth/api/v1/organizations/{organizationID}/members/{userID}";
573
+ readonly summary: "Update an organization member role";
574
+ readonly tag: "Organizations";
575
+ readonly access: "user";
576
+ readonly hasOptions: true;
577
+ readonly optionsRequired: true;
578
+ readonly optionsType: "{ organizationID: string; userID: string; body: API.UpdateOrganizationMemberRequest }";
579
+ readonly exampleOptions: {
580
+ readonly organizationID: "00000000-0000-0000-0000-000000000000";
581
+ readonly userID: "00000000-0000-0000-0000-000000000000";
582
+ readonly body: {
583
+ readonly role: "admin";
584
+ };
585
+ };
586
+ readonly mutates: true;
587
+ }, {
588
+ readonly id: "switchOrganization";
589
+ readonly method: "POST";
590
+ readonly path: "/auth/api/v1/organizations/{organizationID}/switch";
591
+ readonly summary: "Switch the current session to another organization";
592
+ readonly tag: "Organizations";
593
+ readonly access: "user";
594
+ readonly hasOptions: true;
595
+ readonly optionsRequired: true;
596
+ readonly optionsType: "{ organizationID: string; audience?: \"app\" | \"admin\" | \"operator\" }";
597
+ readonly exampleOptions: {
598
+ readonly organizationID: "00000000-0000-0000-0000-000000000000";
599
+ readonly audience: "app";
600
+ };
601
+ readonly mutates: true;
602
+ }, {
603
+ readonly id: "finishPasskeyAuthentication";
604
+ readonly method: "POST";
605
+ readonly path: "/auth/api/v1/passkeys/authenticate/finish";
606
+ readonly summary: "Finish passkey authentication";
607
+ readonly tag: "Passkeys";
608
+ readonly access: "public";
609
+ readonly hasOptions: true;
610
+ readonly optionsRequired: true;
611
+ readonly optionsType: "{ audience?: \"app\" | \"admin\" | \"operator\"; session_transport?: \"cookie\" | \"token\"; body: API.PasskeyAuthenticationFinishRequest }";
612
+ readonly exampleOptions: {
613
+ readonly audience: "app";
614
+ readonly session_transport: "token";
615
+ readonly body: {
616
+ readonly challenge_id: "00000000-0000-0000-0000-000000000000";
617
+ readonly credential: {};
618
+ };
619
+ };
620
+ readonly mutates: true;
621
+ }, {
622
+ readonly id: "beginPasskeyAuthentication";
623
+ readonly method: "POST";
624
+ readonly path: "/auth/api/v1/passkeys/authenticate/options";
625
+ readonly summary: "Start passkey authentication";
626
+ readonly tag: "Passkeys";
627
+ readonly access: "public";
628
+ readonly hasOptions: true;
629
+ readonly optionsRequired: false;
630
+ readonly optionsType: "{ session_transport?: \"cookie\" | \"token\" }";
631
+ readonly exampleOptions: {
632
+ readonly session_transport: "token";
633
+ };
634
+ readonly mutates: true;
635
+ }, {
636
+ readonly id: "finishPasskeyRegistration";
637
+ readonly method: "POST";
638
+ readonly path: "/auth/api/v1/passkeys/register/finish";
639
+ readonly summary: "Finish passkey registration";
640
+ readonly tag: "Passkeys";
641
+ readonly access: "user";
642
+ readonly hasOptions: true;
643
+ readonly optionsRequired: true;
644
+ readonly optionsType: "{ body: API.PasskeyRegistrationFinishRequest }";
645
+ readonly exampleOptions: {
646
+ readonly body: {
647
+ readonly challenge_id: "00000000-0000-0000-0000-000000000000";
648
+ readonly credential: {};
649
+ };
650
+ };
651
+ readonly mutates: true;
652
+ }, {
653
+ readonly id: "beginPasskeyRegistration";
654
+ readonly method: "POST";
655
+ readonly path: "/auth/api/v1/passkeys/register/options";
656
+ readonly summary: "Start passkey registration";
657
+ readonly tag: "Passkeys";
658
+ readonly access: "user";
659
+ readonly hasOptions: false;
660
+ readonly optionsRequired: false;
661
+ readonly optionsType: "No options";
662
+ readonly exampleOptions: {};
663
+ readonly mutates: true;
664
+ }, {
665
+ readonly id: "startPasswordResetChallenge";
666
+ readonly method: "POST";
667
+ readonly path: "/auth/api/v1/password-reset/challenges";
668
+ readonly summary: "Start a password reset challenge";
669
+ readonly tag: "Authentication";
670
+ readonly access: "public";
671
+ readonly hasOptions: true;
672
+ readonly optionsRequired: true;
673
+ readonly optionsType: "{ session_transport?: \"cookie\" | \"token\"; body: API.PasswordResetRequest }";
674
+ readonly exampleOptions: {
675
+ readonly session_transport: "token";
676
+ readonly body: {
677
+ readonly email: "mobile@example.com";
678
+ readonly new_password: "change-me-123456";
679
+ };
680
+ };
681
+ readonly mutates: true;
682
+ }, {
683
+ readonly id: "verifyPasswordResetChallenge";
684
+ readonly method: "POST";
685
+ readonly path: "/auth/api/v1/password-reset/challenges/verify";
686
+ readonly summary: "Verify a password reset challenge";
687
+ readonly tag: "Authentication";
688
+ readonly access: "public";
689
+ readonly hasOptions: true;
690
+ readonly optionsRequired: true;
691
+ readonly optionsType: "{ session_transport?: \"cookie\" | \"token\"; body: API.PasswordResetChallengeVerification }";
692
+ readonly exampleOptions: {
693
+ readonly session_transport: "token";
694
+ readonly body: {
695
+ readonly challenge_id: "00000000-0000-0000-0000-000000000000";
696
+ readonly code: "000000";
697
+ };
698
+ };
699
+ readonly mutates: true;
700
+ }, {
701
+ readonly id: "startGoogleAccountRecoveryLink";
702
+ readonly method: "POST";
703
+ readonly path: "/auth/api/v1/provider-links/recovery/google";
704
+ readonly summary: "Start linking Google to an existing account with the same email";
705
+ readonly tag: "Authentication";
706
+ readonly access: "public";
707
+ readonly hasOptions: true;
708
+ readonly optionsRequired: true;
709
+ readonly optionsType: "{ body: API.GoogleLoginRequest }";
710
+ readonly exampleOptions: {
711
+ readonly body: {};
712
+ };
713
+ readonly mutates: true;
714
+ }, {
715
+ readonly id: "completeAccountRecoveryLinkWithApple";
716
+ readonly method: "POST";
717
+ readonly path: "/auth/api/v1/provider-links/recovery/{linkID}/apple";
718
+ readonly summary: "Prove ownership with an existing Apple login and finish linking";
719
+ readonly tag: "Authentication";
720
+ readonly access: "public";
721
+ readonly hasOptions: true;
722
+ readonly optionsRequired: true;
723
+ readonly optionsType: "{ linkID: string; audience?: \"app\"; body: API.AccountRecoveryAppleProofRequest }";
724
+ readonly exampleOptions: {
725
+ readonly linkID: "00000000-0000-0000-0000-000000000000";
726
+ readonly audience: "app";
727
+ readonly body: {
728
+ readonly code: "000000";
729
+ readonly state: "<state>";
730
+ };
731
+ };
732
+ readonly mutates: true;
733
+ }, {
734
+ readonly id: "completeAccountRecoveryLinkWithGoogle";
735
+ readonly method: "POST";
736
+ readonly path: "/auth/api/v1/provider-links/recovery/{linkID}/google";
737
+ readonly summary: "Prove ownership with an existing Google login and finish linking";
738
+ readonly tag: "Authentication";
739
+ readonly access: "public";
740
+ readonly hasOptions: true;
741
+ readonly optionsRequired: true;
742
+ readonly optionsType: "{ linkID: string; audience?: \"app\"; body: API.AccountRecoveryGoogleProofRequest }";
743
+ readonly exampleOptions: {
744
+ readonly linkID: "00000000-0000-0000-0000-000000000000";
745
+ readonly audience: "app";
746
+ readonly body: {};
747
+ };
748
+ readonly mutates: true;
749
+ }, {
750
+ readonly id: "completeAccountRecoveryLinkWithMicrosoft";
751
+ readonly method: "POST";
752
+ readonly path: "/auth/api/v1/provider-links/recovery/{linkID}/microsoft";
753
+ readonly summary: "Prove ownership with an existing Microsoft login and finish linking";
754
+ readonly tag: "Authentication";
755
+ readonly access: "public";
756
+ readonly hasOptions: true;
757
+ readonly optionsRequired: true;
758
+ readonly optionsType: "{ linkID: string; audience?: \"app\"; body: API.AccountRecoveryMicrosoftProofRequest }";
759
+ readonly exampleOptions: {
760
+ readonly linkID: "00000000-0000-0000-0000-000000000000";
761
+ readonly audience: "app";
762
+ readonly body: {
763
+ readonly credential: "<token>";
764
+ readonly nonce: "<nonce>";
765
+ };
766
+ };
767
+ readonly mutates: true;
768
+ }, {
769
+ readonly id: "completeAccountRecoveryLinkWithPassword";
770
+ readonly method: "POST";
771
+ readonly path: "/auth/api/v1/provider-links/recovery/{linkID}/password";
772
+ readonly summary: "Prove ownership with the existing account password and finish linking";
773
+ readonly tag: "Authentication";
774
+ readonly access: "public";
775
+ readonly hasOptions: true;
776
+ readonly optionsRequired: true;
777
+ readonly optionsType: "{ linkID: string; audience?: \"app\"; body: API.AccountRecoveryPasswordProofRequest }";
778
+ readonly exampleOptions: {
779
+ readonly linkID: "00000000-0000-0000-0000-000000000000";
780
+ readonly audience: "app";
781
+ readonly body: {
782
+ readonly password: "change-me-123456";
783
+ };
784
+ };
785
+ readonly mutates: true;
786
+ }, {
787
+ readonly id: "reauthenticateWithApple";
788
+ readonly method: "POST";
789
+ readonly path: "/auth/api/v1/reauthenticate/apple";
790
+ readonly summary: "Reauthenticate the current session with a linked Apple identity";
791
+ readonly tag: "Sessions";
792
+ readonly access: "user";
793
+ readonly hasOptions: true;
794
+ readonly optionsRequired: true;
795
+ readonly optionsType: "{ body: API.AppleReauthenticationRequest }";
796
+ readonly exampleOptions: {
797
+ readonly body: {
798
+ readonly authentication_challenge_id: "00000000-0000-0000-0000-000000000000";
799
+ readonly code: "000000";
800
+ readonly state: "<state>";
801
+ };
802
+ };
803
+ readonly mutates: true;
804
+ }, {
805
+ readonly id: "checkRecentAuthentication";
806
+ readonly method: "POST";
807
+ readonly path: "/auth/api/v1/reauthenticate/check";
808
+ readonly summary: "Require recent authentication for an application action";
809
+ readonly tag: "Sessions";
810
+ readonly access: "user";
811
+ readonly hasOptions: false;
812
+ readonly optionsRequired: false;
813
+ readonly optionsType: "No options";
814
+ readonly exampleOptions: {};
815
+ readonly mutates: true;
816
+ }, {
817
+ readonly id: "reauthenticateWithGoogle";
818
+ readonly method: "POST";
819
+ readonly path: "/auth/api/v1/reauthenticate/google";
820
+ readonly summary: "Reauthenticate the current session with a linked Google identity";
821
+ readonly tag: "Sessions";
822
+ readonly access: "user";
823
+ readonly hasOptions: true;
824
+ readonly optionsRequired: true;
825
+ readonly optionsType: "{ body: API.GoogleReauthenticationRequest }";
826
+ readonly exampleOptions: {
827
+ readonly body: {
828
+ readonly authentication_challenge_id: "00000000-0000-0000-0000-000000000000";
829
+ };
830
+ };
831
+ readonly mutates: true;
832
+ }, {
833
+ readonly id: "reauthenticateWithMicrosoft";
834
+ readonly method: "POST";
835
+ readonly path: "/auth/api/v1/reauthenticate/microsoft";
836
+ readonly summary: "Reauthenticate the current session with a linked Microsoft identity";
837
+ readonly tag: "Sessions";
838
+ readonly access: "user";
839
+ readonly hasOptions: true;
840
+ readonly optionsRequired: true;
841
+ readonly optionsType: "{ body: API.MicrosoftReauthenticationRequest }";
842
+ readonly exampleOptions: {
843
+ readonly body: {
844
+ readonly authentication_challenge_id: "00000000-0000-0000-0000-000000000000";
845
+ readonly credential: "<token>";
846
+ readonly nonce: "<nonce>";
847
+ };
848
+ };
849
+ readonly mutates: true;
850
+ }, {
851
+ readonly id: "finishPasskeyReauthentication";
852
+ readonly method: "POST";
853
+ readonly path: "/auth/api/v1/reauthenticate/passkeys/finish";
854
+ readonly summary: "Finish passkey reauthentication for the current session";
855
+ readonly tag: "Passkeys";
856
+ readonly access: "user";
857
+ readonly hasOptions: true;
858
+ readonly optionsRequired: true;
859
+ readonly optionsType: "{ body: API.PasskeyReauthenticationFinishRequest }";
860
+ readonly exampleOptions: {
861
+ readonly body: {
862
+ readonly authentication_challenge_id: "00000000-0000-0000-0000-000000000000";
863
+ readonly challenge_id: "00000000-0000-0000-0000-000000000000";
864
+ readonly credential: {};
865
+ };
866
+ };
867
+ readonly mutates: true;
868
+ }, {
869
+ readonly id: "beginPasskeyReauthentication";
870
+ readonly method: "POST";
871
+ readonly path: "/auth/api/v1/reauthenticate/passkeys/options";
872
+ readonly summary: "Start passkey reauthentication for the current session";
873
+ readonly tag: "Passkeys";
874
+ readonly access: "user";
875
+ readonly hasOptions: true;
876
+ readonly optionsRequired: true;
877
+ readonly optionsType: "{ body: API.AuthenticationChallengeReference }";
878
+ readonly exampleOptions: {
879
+ readonly body: {
880
+ readonly authentication_challenge_id: "00000000-0000-0000-0000-000000000000";
881
+ };
882
+ };
883
+ readonly mutates: true;
884
+ }, {
885
+ readonly id: "reauthenticateWithPassword";
886
+ readonly method: "POST";
887
+ readonly path: "/auth/api/v1/reauthenticate/password";
888
+ readonly summary: "Reauthenticate the current session with a password";
889
+ readonly tag: "Sessions";
890
+ readonly access: "user";
891
+ readonly hasOptions: true;
892
+ readonly optionsRequired: true;
893
+ readonly optionsType: "{ body: API.PasswordReauthenticationRequest }";
894
+ readonly exampleOptions: {
895
+ readonly body: {
896
+ readonly authentication_challenge_id: "00000000-0000-0000-0000-000000000000";
897
+ readonly password: "change-me-123456";
898
+ };
899
+ };
900
+ readonly mutates: true;
901
+ }, {
902
+ readonly id: "logout";
903
+ readonly method: "POST";
904
+ readonly path: "/auth/api/v1/sessions/logout";
905
+ readonly summary: "Log out the current session";
906
+ readonly tag: "Sessions";
907
+ readonly access: "public";
908
+ readonly hasOptions: false;
909
+ readonly optionsRequired: false;
910
+ readonly optionsType: "No options";
911
+ readonly exampleOptions: {};
912
+ readonly mutates: true;
913
+ }, {
914
+ readonly id: "refreshSession";
915
+ readonly method: "POST";
916
+ readonly path: "/auth/api/v1/sessions/refresh";
917
+ readonly summary: "Refresh a cookie-backed session";
918
+ readonly tag: "Sessions";
919
+ readonly access: "public";
920
+ readonly hasOptions: true;
921
+ readonly optionsRequired: false;
922
+ readonly optionsType: "{ audience?: \"app\" | \"admin\" | \"operator\" }";
923
+ readonly exampleOptions: {
924
+ readonly audience: "app";
925
+ };
926
+ readonly mutates: true;
927
+ }, {
928
+ readonly id: "startSignupChallenge";
929
+ readonly method: "POST";
930
+ readonly path: "/auth/api/v1/signup/challenges";
931
+ readonly summary: "Start challenge-based signup";
932
+ readonly tag: "Authentication";
933
+ readonly access: "public";
934
+ readonly hasOptions: true;
935
+ readonly optionsRequired: true;
936
+ readonly optionsType: "{ audience?: \"app\"; session_transport?: \"cookie\" | \"token\"; body: API.SignupRequest }";
937
+ readonly exampleOptions: {
938
+ readonly audience: "app";
939
+ readonly session_transport: "token";
940
+ readonly body: {
941
+ readonly email: "mobile@example.com";
942
+ readonly password: "change-me-123456";
943
+ };
944
+ };
945
+ readonly mutates: true;
946
+ }, {
947
+ readonly id: "verifySignupChallenge";
948
+ readonly method: "POST";
949
+ readonly path: "/auth/api/v1/signup/challenges/verify";
950
+ readonly summary: "Verify a signup challenge and create the account";
951
+ readonly tag: "Authentication";
952
+ readonly access: "public";
953
+ readonly hasOptions: true;
954
+ readonly optionsRequired: true;
955
+ readonly optionsType: "{ audience?: \"app\"; session_transport?: \"cookie\" | \"token\"; body: API.SignupChallengeVerification }";
956
+ readonly exampleOptions: {
957
+ readonly audience: "app";
958
+ readonly session_transport: "token";
959
+ readonly body: {
960
+ readonly challenge_id: "00000000-0000-0000-0000-000000000000";
961
+ readonly code: "000000";
962
+ };
963
+ };
964
+ readonly mutates: true;
965
+ }, {
966
+ readonly id: "signupDirect";
967
+ readonly method: "POST";
968
+ readonly path: "/auth/api/v1/signup/direct";
969
+ readonly summary: "Create an account without a signup challenge";
970
+ readonly tag: "Authentication";
971
+ readonly access: "public";
972
+ readonly hasOptions: true;
973
+ readonly optionsRequired: true;
974
+ readonly optionsType: "{ audience?: \"app\"; session_transport?: \"cookie\" | \"token\"; body: API.SignupRequest }";
975
+ readonly exampleOptions: {
976
+ readonly audience: "app";
977
+ readonly session_transport: "token";
978
+ readonly body: {
979
+ readonly email: "mobile@example.com";
980
+ readonly password: "change-me-123456";
981
+ };
982
+ };
983
+ readonly mutates: true;
984
+ }, {
985
+ readonly id: "refreshTokens";
986
+ readonly method: "POST";
987
+ readonly path: "/auth/api/v1/tokens/refresh";
988
+ readonly summary: "Refresh tokens supplied in JSON";
989
+ readonly tag: "Sessions";
990
+ readonly access: "public";
991
+ readonly hasOptions: true;
992
+ readonly optionsRequired: true;
993
+ readonly optionsType: "{ body: API.TokenRefreshRequest }";
994
+ readonly exampleOptions: {
995
+ readonly body: {
996
+ readonly refresh_token: "<token>";
997
+ };
998
+ };
999
+ readonly mutates: true;
1000
+ }, {
1001
+ readonly id: "revokeTokens";
1002
+ readonly method: "POST";
1003
+ readonly path: "/auth/api/v1/tokens/revoke";
1004
+ readonly summary: "Revoke a token-backed session";
1005
+ readonly tag: "Sessions";
1006
+ readonly access: "public";
1007
+ readonly hasOptions: true;
1008
+ readonly optionsRequired: true;
1009
+ readonly optionsType: "{ body: API.TokenRevocationRequest }";
1010
+ readonly exampleOptions: {
1011
+ readonly body: {
1012
+ readonly refresh_token: "<token>";
1013
+ };
1014
+ };
1015
+ readonly mutates: true;
1016
+ }, {
1017
+ readonly id: "getCurrentUser";
1018
+ readonly method: "GET";
1019
+ readonly path: "/auth/api/v1/user";
1020
+ readonly summary: "Get the authenticated user";
1021
+ readonly tag: "Users";
1022
+ readonly access: "user";
1023
+ readonly hasOptions: false;
1024
+ readonly optionsRequired: false;
1025
+ readonly optionsType: "No options";
1026
+ readonly exampleOptions: {};
1027
+ readonly mutates: false;
1028
+ }, {
1029
+ readonly id: "setCurrentUserPassword";
1030
+ readonly method: "PUT";
1031
+ readonly path: "/auth/api/v1/users/password";
1032
+ readonly summary: "Set the authenticated user's password";
1033
+ readonly tag: "Users";
1034
+ readonly access: "user";
1035
+ readonly hasOptions: true;
1036
+ readonly optionsRequired: true;
1037
+ readonly optionsType: "{ body: API.SetPasswordRequest }";
1038
+ readonly exampleOptions: {
1039
+ readonly body: {
1040
+ readonly password: "change-me-123456";
1041
+ };
1042
+ };
1043
+ readonly mutates: true;
1044
+ }, {
1045
+ readonly id: "listPublicUserMemberships";
1046
+ readonly method: "GET";
1047
+ readonly path: "/auth/api/v1/users/{userID}/memberships";
1048
+ readonly summary: "List memberships for the authenticated user";
1049
+ readonly tag: "Organizations";
1050
+ readonly access: "user";
1051
+ readonly hasOptions: true;
1052
+ readonly optionsRequired: true;
1053
+ readonly optionsType: "{ userID: string; cursor?: string; limit?: number }";
1054
+ readonly exampleOptions: {
1055
+ readonly userID: "00000000-0000-0000-0000-000000000000";
1056
+ readonly limit: 20;
1057
+ };
1058
+ readonly mutates: false;
1059
+ }];
1060
+ export type AutharaGeneratedOperation = (typeof autharaGeneratedOperations)[number];