Skip to main content

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