1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Vortex Rust SDK
//!
//! This crate provides a Rust SDK for the Vortex authentication and invitation management platform.
//!
//! # Features
//!
//! - Generate JWTs compatible with React providers
//! - Full API integration for invitation management
//! - Async/await support with tokio
//! - Type-safe API with comprehensive error handling
//!
//! # Example
//!
//! ```no_run
//! use vortex_sdk::{VortexClient, User};
//!
//! #[tokio::main]
//! async fn main() {
//! let client = VortexClient::new(std::env::var("VORTEX_API_KEY").unwrap());
//!
//! // Generate a JWT
//! let user = User::new("user-123", "user@example.com")
//! .with_admin_scopes(vec!["autojoin".to_string()]);
//! let jwt = client.generate_jwt(&user, None).unwrap();
//!
//! println!("JWT: {}", jwt);
//!
//! // Get invitations
//! let invitations = client
//! .get_invitations_by_target("email", "user@example.com")
//! .await
//! .unwrap();
//!
//! println!("Found {} invitations", invitations.len());
//! }
//! ```
pub use VortexClient;
pub use VortexError;
pub use *;
pub use *;
pub use VortexWebhooks;