Skip to main content

nominal_api_conjure/conjure/clients/authentication/api/
authentication_service_v2.rs

1use conjure_http::endpoint;
2/// This service provides operations for managing user and org profiles/settings.
3/// Its name is a bit of a misnomer.
4#[conjure_http::conjure_client(name = "AuthenticationServiceV2")]
5pub trait AuthenticationServiceV2<
6    #[response_body]
7    I: Iterator<
8            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
9        >,
10> {
11    /// Gets the profile of the authenticated user.
12    #[endpoint(
13        method = GET,
14        path = "/authentication/v2/my/profile",
15        name = "getMyProfile",
16        accept = conjure_http::client::StdResponseDeserializer
17    )]
18    fn get_my_profile(
19        &self,
20        #[auth]
21        auth_: &conjure_object::BearerToken,
22    ) -> Result<
23        super::super::super::super::objects::authentication::api::UserV2,
24        conjure_http::private::Error,
25    >;
26    /// Updates the profile of the authenticated user.
27    #[endpoint(
28        method = PUT,
29        path = "/authentication/v2/my/profile",
30        name = "updateMyProfile",
31        accept = conjure_http::client::StdResponseDeserializer
32    )]
33    fn update_my_profile(
34        &self,
35        #[auth]
36        auth_: &conjure_object::BearerToken,
37        #[body(serializer = conjure_http::client::StdRequestSerializer)]
38        update_my_profile_request: &super::super::super::super::objects::authentication::api::UpdateMyProfileRequest,
39    ) -> Result<
40        super::super::super::super::objects::authentication::api::UserV2,
41        conjure_http::private::Error,
42    >;
43    /// Gets the settings of the authenticated user.
44    #[endpoint(
45        method = GET,
46        path = "/authentication/v2/my/settings",
47        name = "getMySettings",
48        accept = conjure_http::client::StdResponseDeserializer
49    )]
50    fn get_my_settings(
51        &self,
52        #[auth]
53        auth_: &conjure_object::BearerToken,
54    ) -> Result<
55        super::super::super::super::objects::authentication::api::UserSettings,
56        conjure_http::private::Error,
57    >;
58    /// Updates the settings of the authenticated user.
59    #[endpoint(
60        method = PUT,
61        path = "/authentication/v2/my/settings",
62        name = "updateMySettings",
63        accept = conjure_http::client::StdResponseDeserializer
64    )]
65    fn update_my_settings(
66        &self,
67        #[auth]
68        auth_: &conjure_object::BearerToken,
69        #[body(serializer = conjure_http::client::StdRequestSerializer)]
70        user_settings: &super::super::super::super::objects::authentication::api::UserSettings,
71    ) -> Result<
72        super::super::super::super::objects::authentication::api::UserSettings,
73        conjure_http::private::Error,
74    >;
75    /// Gets the settings of the org of the authenticated user.
76    #[endpoint(
77        method = GET,
78        path = "/authentication/v2/org/settings",
79        name = "getMyOrgSettings",
80        accept = conjure_http::client::StdResponseDeserializer
81    )]
82    fn get_my_org_settings(
83        &self,
84        #[auth]
85        auth_: &conjure_object::BearerToken,
86    ) -> Result<
87        super::super::super::super::objects::authentication::api::OrgSettings,
88        conjure_http::private::Error,
89    >;
90    /// Updates the settings of the org of the authenticated user.
91    #[endpoint(
92        method = PUT,
93        path = "/authentication/v2/org/settings",
94        name = "updateMyOrgSettings",
95        accept = conjure_http::client::StdResponseDeserializer
96    )]
97    fn update_my_org_settings(
98        &self,
99        #[auth]
100        auth_: &conjure_object::BearerToken,
101        #[body(serializer = conjure_http::client::StdRequestSerializer)]
102        org_settings: &super::super::super::super::objects::authentication::api::OrgSettings,
103    ) -> Result<
104        super::super::super::super::objects::authentication::api::OrgSettings,
105        conjure_http::private::Error,
106    >;
107    /// Searches for users by email and displayName.
108    #[endpoint(
109        method = POST,
110        path = "/authentication/v2/users",
111        name = "searchUsersV2",
112        accept = conjure_http::client::StdResponseDeserializer
113    )]
114    fn search_users_v2(
115        &self,
116        #[auth]
117        auth_: &conjure_object::BearerToken,
118        #[body(serializer = conjure_http::client::StdRequestSerializer)]
119        request: &super::super::super::super::objects::authentication::api::SearchUsersRequest,
120    ) -> Result<
121        super::super::super::super::objects::authentication::api::SearchUsersResponseV2,
122        conjure_http::private::Error,
123    >;
124    /// Get users by RID.
125    #[endpoint(
126        method = POST,
127        path = "/authentication/v2/users/batch",
128        name = "getUsers",
129        accept = conjure_http::client::conjure::CollectionResponseDeserializer
130    )]
131    fn get_users(
132        &self,
133        #[auth]
134        auth_: &conjure_object::BearerToken,
135        #[body(serializer = conjure_http::client::StdRequestSerializer)]
136        user_rids: &std::collections::BTreeSet<
137            super::super::super::super::objects::authentication::api::UserRid,
138        >,
139    ) -> Result<
140        std::collections::BTreeSet<
141            super::super::super::super::objects::authentication::api::UserV2,
142        >,
143        conjure_http::private::Error,
144    >;
145    /// Gets a user by RID.
146    #[endpoint(
147        method = GET,
148        path = "/authentication/v2/users/{userRid}",
149        name = "getUser",
150        accept = conjure_http::client::StdResponseDeserializer
151    )]
152    fn get_user(
153        &self,
154        #[auth]
155        auth_: &conjure_object::BearerToken,
156        #[path(name = "userRid", encoder = conjure_http::client::conjure::PlainEncoder)]
157        user_rid: &super::super::super::super::objects::authentication::api::UserRid,
158    ) -> Result<
159        super::super::super::super::objects::authentication::api::UserV2,
160        conjure_http::private::Error,
161    >;
162    /// Returns JWKS (JSON Web Key Set) for MediaMTX JWT verification.
163    /// Only available if MediaMTX integration is enabled.
164    #[endpoint(
165        method = GET,
166        path = "/authentication/v2/jwks",
167        name = "getJwks",
168        accept = conjure_http::client::StdResponseDeserializer
169    )]
170    fn get_jwks(
171        &self,
172    ) -> Result<
173        super::super::super::super::objects::authentication::api::Jwks,
174        conjure_http::private::Error,
175    >;
176    /// Generates a JWT token for MediaMTX authentication with a 2-hour expiration.
177    /// The token is signed with the MediaMTX private key and contains the specified permissions.
178    /// Requires authentication with Nominal. This endpoint is intended for internal use only.
179    #[endpoint(
180        method = POST,
181        path = "/authentication/v2/mediamtx/token",
182        name = "generateMediaMtxToken",
183        accept = conjure_http::client::StdResponseDeserializer
184    )]
185    fn generate_media_mtx_token(
186        &self,
187        #[auth]
188        auth_: &conjure_object::BearerToken,
189        #[body(serializer = conjure_http::client::StdRequestSerializer)]
190        request: &super::super::super::super::objects::authentication::api::GenerateMediaMtxTokenRequest,
191    ) -> Result<
192        super::super::super::super::objects::authentication::api::GenerateMediaMtxTokenResponse,
193        conjure_http::private::Error,
194    >;
195    /// Batch preregister users in the caller's organization. Only creates new users for
196    /// emails that don't already exist — existing accounts are silently skipped and not
197    /// returned in the response. The caller must be an admin of the organization.
198    #[endpoint(
199        method = POST,
200        path = "/authentication/v2/batch-preregister-users",
201        name = "batchPreregisterUsers",
202        accept = conjure_http::client::StdResponseDeserializer
203    )]
204    fn batch_preregister_users(
205        &self,
206        #[auth]
207        auth_: &conjure_object::BearerToken,
208        #[body(serializer = conjure_http::client::StdRequestSerializer)]
209        request: &super::super::super::super::objects::authentication::api::BatchPreregisterUsersRequest,
210    ) -> Result<
211        super::super::super::super::objects::authentication::api::BatchPreregisterUsersResponse,
212        conjure_http::private::Error,
213    >;
214    /// Lists members of one or more orgs together with their most recent login into each org,
215    /// sorted and paginated. The caller must be an admin of every org requested — defaults to
216    /// the caller's own org if none are specified.
217    #[endpoint(
218        method = POST,
219        path = "/authentication/v2/admin/org/login-activity",
220        name = "listOrgLoginActivity",
221        accept = conjure_http::client::StdResponseDeserializer
222    )]
223    fn list_org_login_activity(
224        &self,
225        #[auth]
226        auth_: &conjure_object::BearerToken,
227        #[body(serializer = conjure_http::client::StdRequestSerializer)]
228        request: &super::super::super::super::objects::authentication::api::ListOrgLoginActivityRequest,
229    ) -> Result<
230        super::super::super::super::objects::authentication::api::ListOrgLoginActivityResponse,
231        conjure_http::private::Error,
232    >;
233}
234/// This service provides operations for managing user and org profiles/settings.
235/// Its name is a bit of a misnomer.
236#[conjure_http::conjure_client(name = "AuthenticationServiceV2")]
237pub trait AsyncAuthenticationServiceV2<
238    #[response_body]
239    I: conjure_http::private::Stream<
240            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
241        >,
242> {
243    /// Gets the profile of the authenticated user.
244    #[endpoint(
245        method = GET,
246        path = "/authentication/v2/my/profile",
247        name = "getMyProfile",
248        accept = conjure_http::client::StdResponseDeserializer
249    )]
250    async fn get_my_profile(
251        &self,
252        #[auth]
253        auth_: &conjure_object::BearerToken,
254    ) -> Result<
255        super::super::super::super::objects::authentication::api::UserV2,
256        conjure_http::private::Error,
257    >;
258    /// Updates the profile of the authenticated user.
259    #[endpoint(
260        method = PUT,
261        path = "/authentication/v2/my/profile",
262        name = "updateMyProfile",
263        accept = conjure_http::client::StdResponseDeserializer
264    )]
265    async fn update_my_profile(
266        &self,
267        #[auth]
268        auth_: &conjure_object::BearerToken,
269        #[body(serializer = conjure_http::client::StdRequestSerializer)]
270        update_my_profile_request: &super::super::super::super::objects::authentication::api::UpdateMyProfileRequest,
271    ) -> Result<
272        super::super::super::super::objects::authentication::api::UserV2,
273        conjure_http::private::Error,
274    >;
275    /// Gets the settings of the authenticated user.
276    #[endpoint(
277        method = GET,
278        path = "/authentication/v2/my/settings",
279        name = "getMySettings",
280        accept = conjure_http::client::StdResponseDeserializer
281    )]
282    async fn get_my_settings(
283        &self,
284        #[auth]
285        auth_: &conjure_object::BearerToken,
286    ) -> Result<
287        super::super::super::super::objects::authentication::api::UserSettings,
288        conjure_http::private::Error,
289    >;
290    /// Updates the settings of the authenticated user.
291    #[endpoint(
292        method = PUT,
293        path = "/authentication/v2/my/settings",
294        name = "updateMySettings",
295        accept = conjure_http::client::StdResponseDeserializer
296    )]
297    async fn update_my_settings(
298        &self,
299        #[auth]
300        auth_: &conjure_object::BearerToken,
301        #[body(serializer = conjure_http::client::StdRequestSerializer)]
302        user_settings: &super::super::super::super::objects::authentication::api::UserSettings,
303    ) -> Result<
304        super::super::super::super::objects::authentication::api::UserSettings,
305        conjure_http::private::Error,
306    >;
307    /// Gets the settings of the org of the authenticated user.
308    #[endpoint(
309        method = GET,
310        path = "/authentication/v2/org/settings",
311        name = "getMyOrgSettings",
312        accept = conjure_http::client::StdResponseDeserializer
313    )]
314    async fn get_my_org_settings(
315        &self,
316        #[auth]
317        auth_: &conjure_object::BearerToken,
318    ) -> Result<
319        super::super::super::super::objects::authentication::api::OrgSettings,
320        conjure_http::private::Error,
321    >;
322    /// Updates the settings of the org of the authenticated user.
323    #[endpoint(
324        method = PUT,
325        path = "/authentication/v2/org/settings",
326        name = "updateMyOrgSettings",
327        accept = conjure_http::client::StdResponseDeserializer
328    )]
329    async fn update_my_org_settings(
330        &self,
331        #[auth]
332        auth_: &conjure_object::BearerToken,
333        #[body(serializer = conjure_http::client::StdRequestSerializer)]
334        org_settings: &super::super::super::super::objects::authentication::api::OrgSettings,
335    ) -> Result<
336        super::super::super::super::objects::authentication::api::OrgSettings,
337        conjure_http::private::Error,
338    >;
339    /// Searches for users by email and displayName.
340    #[endpoint(
341        method = POST,
342        path = "/authentication/v2/users",
343        name = "searchUsersV2",
344        accept = conjure_http::client::StdResponseDeserializer
345    )]
346    async fn search_users_v2(
347        &self,
348        #[auth]
349        auth_: &conjure_object::BearerToken,
350        #[body(serializer = conjure_http::client::StdRequestSerializer)]
351        request: &super::super::super::super::objects::authentication::api::SearchUsersRequest,
352    ) -> Result<
353        super::super::super::super::objects::authentication::api::SearchUsersResponseV2,
354        conjure_http::private::Error,
355    >;
356    /// Get users by RID.
357    #[endpoint(
358        method = POST,
359        path = "/authentication/v2/users/batch",
360        name = "getUsers",
361        accept = conjure_http::client::conjure::CollectionResponseDeserializer
362    )]
363    async fn get_users(
364        &self,
365        #[auth]
366        auth_: &conjure_object::BearerToken,
367        #[body(serializer = conjure_http::client::StdRequestSerializer)]
368        user_rids: &std::collections::BTreeSet<
369            super::super::super::super::objects::authentication::api::UserRid,
370        >,
371    ) -> Result<
372        std::collections::BTreeSet<
373            super::super::super::super::objects::authentication::api::UserV2,
374        >,
375        conjure_http::private::Error,
376    >;
377    /// Gets a user by RID.
378    #[endpoint(
379        method = GET,
380        path = "/authentication/v2/users/{userRid}",
381        name = "getUser",
382        accept = conjure_http::client::StdResponseDeserializer
383    )]
384    async fn get_user(
385        &self,
386        #[auth]
387        auth_: &conjure_object::BearerToken,
388        #[path(name = "userRid", encoder = conjure_http::client::conjure::PlainEncoder)]
389        user_rid: &super::super::super::super::objects::authentication::api::UserRid,
390    ) -> Result<
391        super::super::super::super::objects::authentication::api::UserV2,
392        conjure_http::private::Error,
393    >;
394    /// Returns JWKS (JSON Web Key Set) for MediaMTX JWT verification.
395    /// Only available if MediaMTX integration is enabled.
396    #[endpoint(
397        method = GET,
398        path = "/authentication/v2/jwks",
399        name = "getJwks",
400        accept = conjure_http::client::StdResponseDeserializer
401    )]
402    async fn get_jwks(
403        &self,
404    ) -> Result<
405        super::super::super::super::objects::authentication::api::Jwks,
406        conjure_http::private::Error,
407    >;
408    /// Generates a JWT token for MediaMTX authentication with a 2-hour expiration.
409    /// The token is signed with the MediaMTX private key and contains the specified permissions.
410    /// Requires authentication with Nominal. This endpoint is intended for internal use only.
411    #[endpoint(
412        method = POST,
413        path = "/authentication/v2/mediamtx/token",
414        name = "generateMediaMtxToken",
415        accept = conjure_http::client::StdResponseDeserializer
416    )]
417    async fn generate_media_mtx_token(
418        &self,
419        #[auth]
420        auth_: &conjure_object::BearerToken,
421        #[body(serializer = conjure_http::client::StdRequestSerializer)]
422        request: &super::super::super::super::objects::authentication::api::GenerateMediaMtxTokenRequest,
423    ) -> Result<
424        super::super::super::super::objects::authentication::api::GenerateMediaMtxTokenResponse,
425        conjure_http::private::Error,
426    >;
427    /// Batch preregister users in the caller's organization. Only creates new users for
428    /// emails that don't already exist — existing accounts are silently skipped and not
429    /// returned in the response. The caller must be an admin of the organization.
430    #[endpoint(
431        method = POST,
432        path = "/authentication/v2/batch-preregister-users",
433        name = "batchPreregisterUsers",
434        accept = conjure_http::client::StdResponseDeserializer
435    )]
436    async fn batch_preregister_users(
437        &self,
438        #[auth]
439        auth_: &conjure_object::BearerToken,
440        #[body(serializer = conjure_http::client::StdRequestSerializer)]
441        request: &super::super::super::super::objects::authentication::api::BatchPreregisterUsersRequest,
442    ) -> Result<
443        super::super::super::super::objects::authentication::api::BatchPreregisterUsersResponse,
444        conjure_http::private::Error,
445    >;
446    /// Lists members of one or more orgs together with their most recent login into each org,
447    /// sorted and paginated. The caller must be an admin of every org requested — defaults to
448    /// the caller's own org if none are specified.
449    #[endpoint(
450        method = POST,
451        path = "/authentication/v2/admin/org/login-activity",
452        name = "listOrgLoginActivity",
453        accept = conjure_http::client::StdResponseDeserializer
454    )]
455    async fn list_org_login_activity(
456        &self,
457        #[auth]
458        auth_: &conjure_object::BearerToken,
459        #[body(serializer = conjure_http::client::StdRequestSerializer)]
460        request: &super::super::super::super::objects::authentication::api::ListOrgLoginActivityRequest,
461    ) -> Result<
462        super::super::super::super::objects::authentication::api::ListOrgLoginActivityResponse,
463        conjure_http::private::Error,
464    >;
465}
466/// This service provides operations for managing user and org profiles/settings.
467/// Its name is a bit of a misnomer.
468#[conjure_http::conjure_client(name = "AuthenticationServiceV2", local)]
469pub trait LocalAsyncAuthenticationServiceV2<
470    #[response_body]
471    I: conjure_http::private::Stream<
472            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
473        >,
474> {
475    /// Gets the profile of the authenticated user.
476    #[endpoint(
477        method = GET,
478        path = "/authentication/v2/my/profile",
479        name = "getMyProfile",
480        accept = conjure_http::client::StdResponseDeserializer
481    )]
482    async fn get_my_profile(
483        &self,
484        #[auth]
485        auth_: &conjure_object::BearerToken,
486    ) -> Result<
487        super::super::super::super::objects::authentication::api::UserV2,
488        conjure_http::private::Error,
489    >;
490    /// Updates the profile of the authenticated user.
491    #[endpoint(
492        method = PUT,
493        path = "/authentication/v2/my/profile",
494        name = "updateMyProfile",
495        accept = conjure_http::client::StdResponseDeserializer
496    )]
497    async fn update_my_profile(
498        &self,
499        #[auth]
500        auth_: &conjure_object::BearerToken,
501        #[body(serializer = conjure_http::client::StdRequestSerializer)]
502        update_my_profile_request: &super::super::super::super::objects::authentication::api::UpdateMyProfileRequest,
503    ) -> Result<
504        super::super::super::super::objects::authentication::api::UserV2,
505        conjure_http::private::Error,
506    >;
507    /// Gets the settings of the authenticated user.
508    #[endpoint(
509        method = GET,
510        path = "/authentication/v2/my/settings",
511        name = "getMySettings",
512        accept = conjure_http::client::StdResponseDeserializer
513    )]
514    async fn get_my_settings(
515        &self,
516        #[auth]
517        auth_: &conjure_object::BearerToken,
518    ) -> Result<
519        super::super::super::super::objects::authentication::api::UserSettings,
520        conjure_http::private::Error,
521    >;
522    /// Updates the settings of the authenticated user.
523    #[endpoint(
524        method = PUT,
525        path = "/authentication/v2/my/settings",
526        name = "updateMySettings",
527        accept = conjure_http::client::StdResponseDeserializer
528    )]
529    async fn update_my_settings(
530        &self,
531        #[auth]
532        auth_: &conjure_object::BearerToken,
533        #[body(serializer = conjure_http::client::StdRequestSerializer)]
534        user_settings: &super::super::super::super::objects::authentication::api::UserSettings,
535    ) -> Result<
536        super::super::super::super::objects::authentication::api::UserSettings,
537        conjure_http::private::Error,
538    >;
539    /// Gets the settings of the org of the authenticated user.
540    #[endpoint(
541        method = GET,
542        path = "/authentication/v2/org/settings",
543        name = "getMyOrgSettings",
544        accept = conjure_http::client::StdResponseDeserializer
545    )]
546    async fn get_my_org_settings(
547        &self,
548        #[auth]
549        auth_: &conjure_object::BearerToken,
550    ) -> Result<
551        super::super::super::super::objects::authentication::api::OrgSettings,
552        conjure_http::private::Error,
553    >;
554    /// Updates the settings of the org of the authenticated user.
555    #[endpoint(
556        method = PUT,
557        path = "/authentication/v2/org/settings",
558        name = "updateMyOrgSettings",
559        accept = conjure_http::client::StdResponseDeserializer
560    )]
561    async fn update_my_org_settings(
562        &self,
563        #[auth]
564        auth_: &conjure_object::BearerToken,
565        #[body(serializer = conjure_http::client::StdRequestSerializer)]
566        org_settings: &super::super::super::super::objects::authentication::api::OrgSettings,
567    ) -> Result<
568        super::super::super::super::objects::authentication::api::OrgSettings,
569        conjure_http::private::Error,
570    >;
571    /// Searches for users by email and displayName.
572    #[endpoint(
573        method = POST,
574        path = "/authentication/v2/users",
575        name = "searchUsersV2",
576        accept = conjure_http::client::StdResponseDeserializer
577    )]
578    async fn search_users_v2(
579        &self,
580        #[auth]
581        auth_: &conjure_object::BearerToken,
582        #[body(serializer = conjure_http::client::StdRequestSerializer)]
583        request: &super::super::super::super::objects::authentication::api::SearchUsersRequest,
584    ) -> Result<
585        super::super::super::super::objects::authentication::api::SearchUsersResponseV2,
586        conjure_http::private::Error,
587    >;
588    /// Get users by RID.
589    #[endpoint(
590        method = POST,
591        path = "/authentication/v2/users/batch",
592        name = "getUsers",
593        accept = conjure_http::client::conjure::CollectionResponseDeserializer
594    )]
595    async fn get_users(
596        &self,
597        #[auth]
598        auth_: &conjure_object::BearerToken,
599        #[body(serializer = conjure_http::client::StdRequestSerializer)]
600        user_rids: &std::collections::BTreeSet<
601            super::super::super::super::objects::authentication::api::UserRid,
602        >,
603    ) -> Result<
604        std::collections::BTreeSet<
605            super::super::super::super::objects::authentication::api::UserV2,
606        >,
607        conjure_http::private::Error,
608    >;
609    /// Gets a user by RID.
610    #[endpoint(
611        method = GET,
612        path = "/authentication/v2/users/{userRid}",
613        name = "getUser",
614        accept = conjure_http::client::StdResponseDeserializer
615    )]
616    async fn get_user(
617        &self,
618        #[auth]
619        auth_: &conjure_object::BearerToken,
620        #[path(name = "userRid", encoder = conjure_http::client::conjure::PlainEncoder)]
621        user_rid: &super::super::super::super::objects::authentication::api::UserRid,
622    ) -> Result<
623        super::super::super::super::objects::authentication::api::UserV2,
624        conjure_http::private::Error,
625    >;
626    /// Returns JWKS (JSON Web Key Set) for MediaMTX JWT verification.
627    /// Only available if MediaMTX integration is enabled.
628    #[endpoint(
629        method = GET,
630        path = "/authentication/v2/jwks",
631        name = "getJwks",
632        accept = conjure_http::client::StdResponseDeserializer
633    )]
634    async fn get_jwks(
635        &self,
636    ) -> Result<
637        super::super::super::super::objects::authentication::api::Jwks,
638        conjure_http::private::Error,
639    >;
640    /// Generates a JWT token for MediaMTX authentication with a 2-hour expiration.
641    /// The token is signed with the MediaMTX private key and contains the specified permissions.
642    /// Requires authentication with Nominal. This endpoint is intended for internal use only.
643    #[endpoint(
644        method = POST,
645        path = "/authentication/v2/mediamtx/token",
646        name = "generateMediaMtxToken",
647        accept = conjure_http::client::StdResponseDeserializer
648    )]
649    async fn generate_media_mtx_token(
650        &self,
651        #[auth]
652        auth_: &conjure_object::BearerToken,
653        #[body(serializer = conjure_http::client::StdRequestSerializer)]
654        request: &super::super::super::super::objects::authentication::api::GenerateMediaMtxTokenRequest,
655    ) -> Result<
656        super::super::super::super::objects::authentication::api::GenerateMediaMtxTokenResponse,
657        conjure_http::private::Error,
658    >;
659    /// Batch preregister users in the caller's organization. Only creates new users for
660    /// emails that don't already exist — existing accounts are silently skipped and not
661    /// returned in the response. The caller must be an admin of the organization.
662    #[endpoint(
663        method = POST,
664        path = "/authentication/v2/batch-preregister-users",
665        name = "batchPreregisterUsers",
666        accept = conjure_http::client::StdResponseDeserializer
667    )]
668    async fn batch_preregister_users(
669        &self,
670        #[auth]
671        auth_: &conjure_object::BearerToken,
672        #[body(serializer = conjure_http::client::StdRequestSerializer)]
673        request: &super::super::super::super::objects::authentication::api::BatchPreregisterUsersRequest,
674    ) -> Result<
675        super::super::super::super::objects::authentication::api::BatchPreregisterUsersResponse,
676        conjure_http::private::Error,
677    >;
678    /// Lists members of one or more orgs together with their most recent login into each org,
679    /// sorted and paginated. The caller must be an admin of every org requested — defaults to
680    /// the caller's own org if none are specified.
681    #[endpoint(
682        method = POST,
683        path = "/authentication/v2/admin/org/login-activity",
684        name = "listOrgLoginActivity",
685        accept = conjure_http::client::StdResponseDeserializer
686    )]
687    async fn list_org_login_activity(
688        &self,
689        #[auth]
690        auth_: &conjure_object::BearerToken,
691        #[body(serializer = conjure_http::client::StdRequestSerializer)]
692        request: &super::super::super::super::objects::authentication::api::ListOrgLoginActivityRequest,
693    ) -> Result<
694        super::super::super::super::objects::authentication::api::ListOrgLoginActivityResponse,
695        conjure_http::private::Error,
696    >;
697}