diff --git a/.forgejo/workflows/trifid_api.yml b/.forgejo/workflows/trifid_api.yml new file mode 100644 index 0000000..30f390b --- /dev/null +++ b/.forgejo/workflows/trifid_api.yml @@ -0,0 +1,73 @@ +on: + push: + branches: + master +env: + CARGO_TERM_COLOR: always +jobs: + build_x64: + runs_on: docker + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup Rust toolchain + uses: https://github.com/actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Install additional dependencies + run: apt update && apt-get install -y libclang-dev clang sshpass rsync + - name: Compile release binary + uses: https://github.com/actions-rs/cargo@v1 + with: + command: build + args: --bin trifid-api --profile release-ci + - name: Upload binary + run: sshpass -p "${{ secrets.TRIFID_DLCDN_PASSWORD }}" rsync --mkpath -e 'ssh -p ${{ secrets.TRIFID_DLCDN_PORT }} -o StrictHostKeyChecking=no' target/release-ci/trifid-api ${{ secrets.TRIFID_DLCDN_USER }}@${{ secrets.TRIFID_DLCDN_IP }}:${{ secrets.TRIFID_DLCDN_PATH }}/trifid-api/amd64/$GITHUB_SHA/trifid-api + build_arm64: + runs_on: docker-arm64 + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup Rust toolchain + uses: https://github.com/actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Install aarch64 target + run: rustup target add aarch64-unknown-linux-gnu + - name: Install additional dependencies + run: apt update && apt-get install -y libclang-dev clang sshpass rsync gcc-arm-linux-gnueabi gcc-aarch64-linux-gnu + - name: Compile release binary + uses: https://github.com/actions-rs/cargo@v1 + env: + RUSTFLAGS: "-C linker=aarch64-linux-gnu-gcc" + with: + command: build + args: --bin trifid-api --target aarch64-unknown-linux-gnu --profile release-ci + - name: Upload binary + run: sshpass -p "${{ secrets.TRIFID_DLCDN_PASSWORD }}" rsync --mkpath -e 'ssh -p ${{ secrets.TRIFID_DLCDN_PORT }} -o StrictHostKeyChecking=no' target/aarch64-unknown-linux-gnu/release-ci/trifid-api ${{ secrets.TRIFID_DLCDN_USER }}@${{ secrets.TRIFID_DLCDN_IP }}:${{ secrets.TRIFID_DLCDN_PATH }}/trifid-api/arm64/$GITHUB_SHA/trifid-api + build_win64: + runs_on: docker + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup Rust toolchain + uses: https://github.com/actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Install cross-compilation toolchain + run: rustup target add x86_64-pc-windows-gnu + - name: Install additional dependencies + run: apt update && apt-get install -y libclang-dev clang sshpass rsync mingw-w64 zip + - name: Compile release binary + uses: https://github.com/actions-rs/cargo@v1 + with: + command: build + args: --bin trifid-api --target x86_64-pc-windows-gnu --profile release-ci + - name: Upload binary + run: sshpass -p "${{ secrets.TRIFID_DLCDN_PASSWORD }}" rsync --mkpath -e 'ssh -p ${{ secrets.TRIFID_DLCDN_PORT }} -o StrictHostKeyChecking=no' target/x86_64-pc-windows-gnu/release-ci/trifid-api.zip ${{ secrets.TRIFID_DLCDN_USER }}@${{ secrets.TRIFID_DLCDN_IP }}:${{ secrets.TRIFID_DLCDN_PATH }}/trifid-api/win64/$GITHUB_SHA/trifid-api.zip diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index 1fec8e5..7074b84 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -1,7 +1,7 @@ - + postgresql true org.postgresql.Driver diff --git a/.idea/trifid.iml b/.idea/trifid.iml index 7ee0faa..85e74e1 100644 --- a/.idea/trifid.iml +++ b/.idea/trifid.iml @@ -13,6 +13,7 @@ + diff --git a/Cargo.lock b/Cargo.lock index 79cdf22..232d3b7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1025,7 +1025,7 @@ dependencies = [ [[package]] name = "dnapi-rs" -version = "0.2.1" +version = "0.2.3" dependencies = [ "base64 0.21.5", "base64-serde", @@ -1831,6 +1831,14 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "nebula-config" +version = "0.1.0" +dependencies = [ + "ipnet", + "serde", +] + [[package]] name = "nebula-ffi" version = "1.7.3" @@ -3075,22 +3083,28 @@ dependencies = [ [[package]] name = "trifid-api" -version = "0.3.0" +version = "0.3.0-alpha1" dependencies = [ "actix-cors", "actix-web", + "base64 0.21.5", "bb8", "chacha20poly1305", + "chrono", "diesel", "diesel-async", "diesel_migrations", + "dnapi-rs", "env_logger", "hex", + "ipnet", "log", "mail-send", + "nebula-config", "rand", "serde", "serde_json", + "serde_yaml", "thiserror", "toml 0.8.5", "totp-rs", diff --git a/Cargo.toml b/Cargo.toml index ec80311..082148f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ members = [ "dnapi-rs", "tfcli", "nebula-ffi", - + "nebula-config", "trifid-api", "trifid-api-derive" ] diff --git a/dnapi-rs/Cargo.toml b/dnapi-rs/Cargo.toml index 22492aa..b1da554 100644 --- a/dnapi-rs/Cargo.toml +++ b/dnapi-rs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dnapi-rs" -version = "0.2.1" +version = "0.2.3" edition = "2021" description = "A rust client for the Defined Networking API" license = "AGPL-3.0-or-later" diff --git a/dnapi-rs/src/client_async.rs b/dnapi-rs/src/client_async.rs index 8ced750..52ef34d 100644 --- a/dnapi-rs/src/client_async.rs +++ b/dnapi-rs/src/client_async.rs @@ -13,6 +13,7 @@ use log::{debug, error}; use reqwest::StatusCode; use serde::{Deserialize, Serialize}; use std::error::Error; +use reqwest::header::HeaderValue; use trifid_pki::cert::serialize_ed25519_public; use trifid_pki::ed25519_dalek::{Signature, Signer, SigningKey, Verifier}; use url::Url; @@ -89,10 +90,15 @@ impl Client { .send() .await?; + let empty_hval; + #[allow(clippy::unwrap_used)] { + empty_hval = HeaderValue::from_str("").unwrap(); + }; + let req_id = resp .headers() .get("X-Request-ID") - .ok_or("Response missing X-Request-ID")? + .unwrap_or(&empty_hval) .to_str()?; debug!("enrollment request complete {{req_id: {}}}", req_id); diff --git a/dnapi-rs/src/client_blocking.rs b/dnapi-rs/src/client_blocking.rs index 676d328..96e3a48 100644 --- a/dnapi-rs/src/client_blocking.rs +++ b/dnapi-rs/src/client_blocking.rs @@ -13,6 +13,7 @@ use log::{debug, error, trace}; use reqwest::StatusCode; use serde::{Deserialize, Serialize}; use std::error::Error; +use reqwest::header::HeaderValue; use trifid_pki::cert::serialize_ed25519_public; use trifid_pki::ed25519_dalek::{Signature, Signer, SigningKey, Verifier}; use url::Url; @@ -90,10 +91,15 @@ impl Client { .body(req_json) .send()?; + let empty_hval; + #[allow(clippy::unwrap_used)] { + empty_hval = HeaderValue::from_str("").unwrap(); + }; + let req_id = resp .headers() .get("X-Request-ID") - .ok_or("Response missing X-Request-ID")? + .unwrap_or(&empty_hval) .to_str()?; debug!("enrollment request complete {{req_id: {}}}", req_id); diff --git a/dnapi-rs/src/message.rs b/dnapi-rs/src/message.rs index e3a934f..c272a6e 100644 --- a/dnapi-rs/src/message.rs +++ b/dnapi-rs/src/message.rs @@ -13,7 +13,7 @@ pub const DO_UPDATE: &str = "DoUpdate"; base64_serde_type!(Base64Standard, base64::engine::general_purpose::STANDARD); -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug)] /// `RequestV1` is the version 1 `DNClient` request message. pub struct RequestV1 { /// Version is always 1 @@ -30,7 +30,7 @@ pub struct RequestV1 { pub signature: Vec, } -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug)] /// `RequestWrapper` wraps a `DNClient` request message. It consists of a /// type and value, with the type string indicating how to interpret the value blob. pub struct RequestWrapper { @@ -48,14 +48,14 @@ pub struct RequestWrapper { pub timestamp: String, } -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug)] /// `SignedResponseWrapper` contains a response message and a signature to validate inside `data`. pub struct SignedResponseWrapper { /// The response data contained in this message pub data: SignedResponse, } -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug)] /// `SignedResponse` contains a response message and a signature to validate. pub struct SignedResponse { /// The API version - always 1 @@ -68,14 +68,14 @@ pub struct SignedResponse { pub signature: Vec, } -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug)] /// `CheckForUpdateResponseWrapper` contains a response to `CheckForUpdate` inside "data." pub struct CheckForUpdateResponseWrapper { /// The response data contained in this message pub data: CheckForUpdateResponse, } -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug)] /// `CheckForUpdateResponse` is the response generated for a `CheckForUpdate` request. pub struct CheckForUpdateResponse { #[serde(rename = "updateAvailable")] @@ -83,7 +83,7 @@ pub struct CheckForUpdateResponse { pub update_available: bool, } -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug)] /// `DoUpdateRequest` is the request sent for a `DoUpdate` request. pub struct DoUpdateRequest { #[serde(rename = "edPubkeyPEM")] @@ -100,7 +100,7 @@ pub struct DoUpdateRequest { pub nonce: Vec, } -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug)] /// A server response to a `DoUpdateRequest`, with the updated config and key information pub struct DoUpdateResponse { #[serde(with = "Base64Standard")] @@ -141,7 +141,7 @@ pub struct EnrollRequest { pub timestamp: String, } -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug)] #[serde(untagged)] /// The response to an `EnrollRequest` pub enum EnrollResponse { @@ -157,7 +157,7 @@ pub enum EnrollResponse { }, } -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug)] /// The data included in an successful enrollment. pub struct EnrollResponseData { #[serde(with = "Base64Standard")] @@ -176,7 +176,7 @@ pub struct EnrollResponseData { pub organization: EnrollResponseDataOrg, } -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug)] /// The organization data that this node is now a part of pub struct EnrollResponseDataOrg { /// The organization ID that this node is now a part of @@ -185,7 +185,7 @@ pub struct EnrollResponseDataOrg { pub name: String, } -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug)] /// `APIError` represents a single error returned in an API error response. pub struct APIError { /// The error code diff --git a/nebula-config/Cargo.toml b/nebula-config/Cargo.toml new file mode 100644 index 0000000..cf72f43 --- /dev/null +++ b/nebula-config/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "nebula-config" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +serde = { version = "1", features = ["derive"] } +ipnet = { version = "2.9", features = ["serde"] } \ No newline at end of file diff --git a/nebula-config/src/lib.rs b/nebula-config/src/lib.rs new file mode 100644 index 0000000..81bb19e --- /dev/null +++ b/nebula-config/src/lib.rs @@ -0,0 +1,532 @@ +use std::collections::HashMap; +use std::net::{Ipv4Addr, SocketAddrV4}; +use ipnet::{IpNet, Ipv4Net}; +use serde::{Deserialize, Serialize}; + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfig { + pub pki: NebulaConfigPki, + #[serde(default = "empty_hashmap")] + #[serde(skip_serializing_if = "is_empty_hashmap")] + pub static_host_map: HashMap>, + #[serde(skip_serializing_if = "is_none")] + pub lighthouse: Option, + #[serde(skip_serializing_if = "is_none")] + pub listen: Option, + #[serde(skip_serializing_if = "is_none")] + pub punchy: Option, + #[serde(default = "cipher_aes")] + #[serde(skip_serializing_if = "is_cipher_aes")] + pub cipher: NebulaConfigCipher, + #[serde(default = "empty_vec")] + #[serde(skip_serializing_if = "is_empty_vec")] + pub preferred_ranges: Vec, + #[serde(skip_serializing_if = "is_none")] + pub relay: Option, + #[serde(skip_serializing_if = "is_none")] + pub tun: Option, + #[serde(skip_serializing_if = "is_none")] + pub logging: Option, + #[serde(skip_serializing_if = "is_none")] + pub sshd: Option, + + #[serde(skip_serializing_if = "is_none")] + pub firewall: Option, + + #[serde(default = "u64_1")] + #[serde(skip_serializing_if = "is_u64_1")] + pub routines: u64, + + #[serde(default = "none")] + #[serde(skip_serializing_if = "is_none")] + pub stats: Option, + + #[serde(default = "none")] + #[serde(skip_serializing_if = "is_none")] + pub local_range: Option, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigPki { + pub ca: String, + pub cert: String, + #[serde(default = "none")] + #[serde(skip_serializing_if = "is_none")] + pub key: Option, + #[serde(default = "empty_vec")] + #[serde(skip_serializing_if = "is_empty_vec")] + pub blocklist: Vec, + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub disconnect_invalid: bool, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigLighthouse { + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub am_lighthouse: bool, + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub serve_dns: bool, + #[serde(skip_serializing_if = "is_none")] + pub dns: Option, + #[serde(default = "u32_10")] + #[serde(skip_serializing_if = "is_u32_10")] + pub interval: u32, + #[serde(default = "empty_vec")] + #[serde(skip_serializing_if = "is_empty_vec")] + pub hosts: Vec, + #[serde(default = "empty_hashmap")] + #[serde(skip_serializing_if = "is_empty_hashmap")] + pub remote_allow_list: HashMap, + #[serde(default = "empty_hashmap")] + #[serde(skip_serializing_if = "is_empty_hashmap")] + pub local_allow_list: HashMap, // `interfaces` is not supported +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigLighthouseDns { + #[serde(default = "string_empty")] + #[serde(skip_serializing_if = "is_string_empty")] + pub host: String, + #[serde(default = "u16_53")] + #[serde(skip_serializing_if = "is_u16_53")] + pub port: u16, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigListen { + #[serde(default = "string_empty")] + #[serde(skip_serializing_if = "is_string_empty")] + pub host: String, + #[serde(default = "u16_0")] + #[serde(skip_serializing_if = "is_u16_0")] + pub port: u16, + #[serde(default = "u32_64")] + #[serde(skip_serializing_if = "is_u32_64")] + pub batch: u32, + #[serde(skip_serializing_if = "is_none")] + pub read_buffer: Option, + #[serde(skip_serializing_if = "is_none")] + pub write_buffer: Option, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigPunchy { + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub punch: bool, + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub respond: bool, + #[serde(default = "string_1s")] + #[serde(skip_serializing_if = "is_string_1s")] + pub delay: String, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub enum NebulaConfigCipher { + #[serde(rename = "aes")] + Aes, + #[serde(rename = "chachapoly")] + ChaChaPoly, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigRelay { + #[serde(default = "empty_vec")] + #[serde(skip_serializing_if = "is_empty_vec")] + pub relays: Vec, + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub am_relay: bool, + #[serde(default = "bool_true")] + #[serde(skip_serializing_if = "is_bool_true")] + pub use_relays: bool, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigTun { + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub disabled: bool, + #[serde(skip_serializing_if = "is_none")] + pub dev: Option, + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub drop_local_broadcast: bool, + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub drop_multicast: bool, + #[serde(default = "u64_500")] + #[serde(skip_serializing_if = "is_u64_500")] + pub tx_queue: u64, + #[serde(default = "u64_1300")] + #[serde(skip_serializing_if = "is_u64_1300")] + pub mtu: u64, + #[serde(default = "empty_vec")] + #[serde(skip_serializing_if = "is_empty_vec")] + pub routes: Vec, + #[serde(default = "empty_vec")] + #[serde(skip_serializing_if = "is_empty_vec")] + pub unsafe_routes: Vec, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigTunRouteOverride { + pub mtu: u64, + pub route: Ipv4Net, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigTunUnsafeRoute { + pub route: Ipv4Net, + pub via: Ipv4Addr, + #[serde(default = "u64_1300")] + #[serde(skip_serializing_if = "is_u64_1300")] + pub mtu: u64, + #[serde(default = "i64_100")] + #[serde(skip_serializing_if = "is_i64_100")] + pub metric: i64, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigLogging { + #[serde(default = "loglevel_info")] + #[serde(skip_serializing_if = "is_loglevel_info")] + pub level: NebulaConfigLoggingLevel, + #[serde(default = "format_text")] + #[serde(skip_serializing_if = "is_format_text")] + pub format: NebulaConfigLoggingFormat, + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub disable_timestamp: bool, + #[serde(default = "timestamp")] + #[serde(skip_serializing_if = "is_timestamp")] + pub timestamp_format: String, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub enum NebulaConfigLoggingLevel { + #[serde(rename = "panic")] + Panic, + #[serde(rename = "fatal")] + Fatal, + #[serde(rename = "error")] + Error, + #[serde(rename = "warning")] + Warning, + #[serde(rename = "info")] + Info, + #[serde(rename = "debug")] + Debug, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub enum NebulaConfigLoggingFormat { + #[serde(rename = "json")] + Json, + #[serde(rename = "text")] + Text, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigSshd { + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub enabled: bool, + pub listen: SocketAddrV4, + pub host_key: String, + #[serde(default = "empty_vec")] + #[serde(skip_serializing_if = "is_empty_vec")] + pub authorized_users: Vec, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigSshdAuthorizedUser { + pub user: String, + #[serde(default = "empty_vec")] + #[serde(skip_serializing_if = "is_empty_vec")] + pub keys: Vec, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +#[serde(tag = "type")] +pub enum NebulaConfigStats { + #[serde(rename = "graphite")] + Graphite(NebulaConfigStatsGraphite), + #[serde(rename = "prometheus")] + Prometheus(NebulaConfigStatsPrometheus), +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigStatsGraphite { + #[serde(default = "string_nebula")] + #[serde(skip_serializing_if = "is_string_nebula")] + pub prefix: String, + #[serde(default = "protocol_tcp")] + #[serde(skip_serializing_if = "is_protocol_tcp")] + pub protocol: NebulaConfigStatsGraphiteProtocol, + pub host: SocketAddrV4, + pub interval: String, + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub message_metrics: bool, + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub lighthouse_metrics: bool, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub enum NebulaConfigStatsGraphiteProtocol { + #[serde(rename = "tcp")] + Tcp, + #[serde(rename = "udp")] + Udp, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigStatsPrometheus { + pub listen: String, + pub path: String, + #[serde(default = "string_nebula")] + #[serde(skip_serializing_if = "is_string_nebula")] + pub namespace: String, + #[serde(default = "string_nebula")] + #[serde(skip_serializing_if = "is_string_nebula")] + pub subsystem: String, + pub interval: String, + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub message_metrics: bool, + #[serde(default = "bool_false")] + #[serde(skip_serializing_if = "is_bool_false")] + pub lighthouse_metrics: bool, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigFirewall { + #[serde(default = "none")] + #[serde(skip_serializing_if = "is_none")] + pub conntrack: Option, + + #[serde(default = "none")] + #[serde(skip_serializing_if = "is_none")] + pub inbound: Option>, + + #[serde(default = "none")] + #[serde(skip_serializing_if = "is_none")] + pub outbound: Option>, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigFirewallConntrack { + #[serde(default = "string_12m")] + #[serde(skip_serializing_if = "is_string_12m")] + pub tcp_timeout: String, + #[serde(default = "string_3m")] + #[serde(skip_serializing_if = "is_string_3m")] + pub udp_timeout: String, + #[serde(default = "string_10m")] + #[serde(skip_serializing_if = "is_string_10m")] + pub default_timeout: String, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct NebulaConfigFirewallRule { + #[serde(default = "none")] + #[serde(skip_serializing_if = "is_none")] + pub port: Option, + #[serde(default = "none")] + #[serde(skip_serializing_if = "is_none")] + pub proto: Option, + #[serde(default = "none")] + #[serde(skip_serializing_if = "is_none")] + pub ca_name: Option, + #[serde(default = "none")] + #[serde(skip_serializing_if = "is_none")] + pub ca_sha: Option, + #[serde(default = "none")] + #[serde(skip_serializing_if = "is_none")] + pub host: Option, + #[serde(default = "none")] + #[serde(skip_serializing_if = "is_none")] + pub group: Option, + #[serde(default = "none")] + #[serde(skip_serializing_if = "is_none")] + pub groups: Option>, + #[serde(default = "none")] + #[serde(skip_serializing_if = "is_none")] + pub cidr: Option, +} + +// Default values for serde + +fn string_12m() -> String { + "12m".to_string() +} +fn is_string_12m(s: &str) -> bool { + s == "12m" +} + +fn string_3m() -> String { + "3m".to_string() +} +fn is_string_3m(s: &str) -> bool { + s == "3m" +} + +fn string_10m() -> String { + "10m".to_string() +} +fn is_string_10m(s: &str) -> bool { + s == "10m" +} + +fn empty_vec() -> Vec { + vec![] +} +fn is_empty_vec(v: &Vec) -> bool { + v.is_empty() +} + +fn empty_hashmap() -> HashMap { + HashMap::new() +} +fn is_empty_hashmap(h: &HashMap) -> bool { + h.is_empty() +} + +fn bool_false() -> bool { + false +} +fn is_bool_false(b: &bool) -> bool { + !*b +} + +fn bool_true() -> bool { + true +} +fn is_bool_true(b: &bool) -> bool { + *b +} + +fn u16_53() -> u16 { + 53 +} +fn is_u16_53(u: &u16) -> bool { + *u == 53 +} + +fn u32_10() -> u32 { + 10 +} +fn is_u32_10(u: &u32) -> bool { + *u == 10 +} + +fn u16_0() -> u16 { + 0 +} +fn is_u16_0(u: &u16) -> bool { + *u == 0 +} + +fn u32_64() -> u32 { + 64 +} +fn is_u32_64(u: &u32) -> bool { + *u == 64 +} + +fn string_1s() -> String { + "1s".to_string() +} +fn is_string_1s(s: &str) -> bool { + s == "1s" +} + +fn cipher_aes() -> NebulaConfigCipher { + NebulaConfigCipher::Aes +} +fn is_cipher_aes(c: &NebulaConfigCipher) -> bool { + matches!(c, NebulaConfigCipher::Aes) +} + +fn u64_500() -> u64 { + 500 +} +fn is_u64_500(u: &u64) -> bool { + *u == 500 +} + +fn u64_1300() -> u64 { + 1300 +} +fn is_u64_1300(u: &u64) -> bool { + *u == 1300 +} + +fn i64_100() -> i64 { + 100 +} +fn is_i64_100(i: &i64) -> bool { + *i == 100 +} + +fn loglevel_info() -> NebulaConfigLoggingLevel { + NebulaConfigLoggingLevel::Info +} +fn is_loglevel_info(l: &NebulaConfigLoggingLevel) -> bool { + matches!(l, NebulaConfigLoggingLevel::Info) +} + +fn format_text() -> NebulaConfigLoggingFormat { + NebulaConfigLoggingFormat::Text +} +fn is_format_text(f: &NebulaConfigLoggingFormat) -> bool { + matches!(f, NebulaConfigLoggingFormat::Text) +} + +fn timestamp() -> String { + "2006-01-02T15:04:05Z07:00".to_string() +} +fn is_timestamp(s: &str) -> bool { + s == "2006-01-02T15:04:05Z07:00" +} + +fn u64_1() -> u64 { + 1 +} +fn is_u64_1(u: &u64) -> bool { + *u == 1 +} + +fn string_nebula() -> String { + "nebula".to_string() +} +fn is_string_nebula(s: &str) -> bool { + s == "nebula" +} + +fn string_empty() -> String { + String::new() +} +fn is_string_empty(s: &str) -> bool { + s.is_empty() +} + +fn protocol_tcp() -> NebulaConfigStatsGraphiteProtocol { + NebulaConfigStatsGraphiteProtocol::Tcp +} +fn is_protocol_tcp(p: &NebulaConfigStatsGraphiteProtocol) -> bool { + matches!(p, NebulaConfigStatsGraphiteProtocol::Tcp) +} + +fn none() -> Option { + None +} +fn is_none(o: &Option) -> bool { + o.is_none() +} \ No newline at end of file diff --git a/nebula-ffi/build.rs b/nebula-ffi/build.rs index 84f4b7d..d0eb7a3 100644 --- a/nebula-ffi/build.rs +++ b/nebula-ffi/build.rs @@ -1,7 +1,7 @@ +use bindgen::CargoCallbacks; use std::path::Path; use std::path::PathBuf; use std::{env, process}; -use bindgen::CargoCallbacks; fn get_cargo_target_dir() -> Result> { let skip_triple = std::env::var("TARGET")? == std::env::var("HOST")?; @@ -69,10 +69,7 @@ fn main() { println!("Go compile success"); - println!( - "cargo:rustc-link-search={}", - env::var("OUT_DIR").unwrap() - ); + println!("cargo:rustc-link-search={}", env::var("OUT_DIR").unwrap()); if compile_config.link_type == "c-shared" { copy_shared_lib(&compile_config); @@ -91,7 +88,12 @@ fn main() { println!("Generating bindings"); let bindings = bindgen::Builder::default() - .header(out_path.join(compile_config.header_filename).display().to_string()) + .header( + out_path + .join(compile_config.header_filename) + .display() + .to_string(), + ) .parse_callbacks(Box::new(CargoCallbacks::new())) .generate() .expect("Error generating CFFI bindings"); @@ -130,31 +132,44 @@ struct GoCompileConfig { goos: String, link_type: String, lib_filename: String, - header_filename: String + header_filename: String, } fn get_compile_config() -> GoCompileConfig { let goarch = goarch(); let goos = goos(); let platform_value = format!("{}/{}", goos, goarch); - let (preferred_link_type, lib_filename, header_filename) = match (goos.as_str(), goarch.as_str()) { - ("darwin", _) => ("c-archive", "libnebula.a", "libnebula.h"), - ("windows", _) => ("c-archive", "libnebula.a", "libnebula.h"), - ("linux", "386") | ("linux", "amd64") | ("linux", "arm") | ("linux", "armbe") | ("linux", "arm64") | ("linux", "arm64be") | ("linux", "loong64") | ("linux", "ppc64le") | ("linux", "riscv64") | ("linux", "s390x") => ("c-archive", "libnebula.a", "libnebula.h"), - ("freebsd", "amd64") => ("c-archive", "libnebula.a", "libnebula.h"), - _ => panic!("unsupported platform {} / {}", env::var("TARGET").unwrap(), platform_value) - }; + let (preferred_link_type, lib_filename, header_filename) = + match (goos.as_str(), goarch.as_str()) { + ("darwin", _) => ("c-archive", "libnebula.a", "libnebula.h"), + ("windows", _) => ("c-archive", "libnebula.a", "libnebula.h"), + ("linux", "386") + | ("linux", "amd64") + | ("linux", "arm") + | ("linux", "armbe") + | ("linux", "arm64") + | ("linux", "arm64be") + | ("linux", "loong64") + | ("linux", "ppc64le") + | ("linux", "riscv64") + | ("linux", "s390x") => ("c-archive", "libnebula.a", "libnebula.h"), + ("freebsd", "amd64") => ("c-archive", "libnebula.a", "libnebula.h"), + _ => panic!( + "unsupported platform {} / {}", + env::var("TARGET").unwrap(), + platform_value + ), + }; GoCompileConfig { goarch, goos, link_type: preferred_link_type.to_string(), lib_filename: lib_filename.to_string(), - header_filename: header_filename.to_string() + header_filename: header_filename.to_string(), } } - fn goarch() -> String { match env::var("CARGO_CFG_TARGET_ARCH").unwrap().as_str() { "x86" => "386", @@ -182,4 +197,4 @@ fn goos() -> String { os => panic!("unsupported operating system {os}"), } .to_string() -} \ No newline at end of file +} diff --git a/tfcli/src/host.rs b/tfcli/src/host.rs index e0d2398..4a61338 100644 --- a/tfcli/src/host.rs +++ b/tfcli/src/host.rs @@ -1,12 +1,12 @@ use crate::api::APIErrorResponse; use crate::{HostCommands, HostOverrideCommands, TableStyle}; +use comfy_table::modifiers::UTF8_ROUND_CORNERS; +use comfy_table::presets::UTF8_FULL; +use comfy_table::Table; use serde::{Deserialize, Serialize}; use std::error::Error; use std::fs; use std::net::{Ipv4Addr, SocketAddrV4}; -use comfy_table::modifiers::UTF8_ROUND_CORNERS; -use comfy_table::presets::UTF8_FULL; -use comfy_table::Table; use url::Url; pub async fn host_main(command: HostCommands, server: Url) -> Result<(), Box> { @@ -172,18 +172,55 @@ pub async fn list_hosts(server: Url, table_style: TableStyle) -> Result<(), Box< match table_style { TableStyle::List => unreachable!(), TableStyle::Basic => (), - TableStyle::Pretty => { table.load_preset(UTF8_FULL).apply_modifier(UTF8_ROUND_CORNERS) ; }, + TableStyle::Pretty => { + table + .load_preset(UTF8_FULL) + .apply_modifier(UTF8_ROUND_CORNERS); + } }; - table.set_header(vec!["ID", "Name", "Organization ID", "Network ID", "Role ID", "IP Address", "Static Addresses", "Listen Port", "Type", "Blocked", "Last Seen"]); + table.set_header(vec![ + "ID", + "Name", + "Organization ID", + "Network ID", + "Role ID", + "IP Address", + "Static Addresses", + "Listen Port", + "Type", + "Blocked", + "Last Seen", + ]); for host in &resp.data { - table.add_row(vec![host.id.as_str(), &host.name, &host.organization_id, &host.network_id, &host.role_id, &host.ip_address, &host.static_addresses.iter().map(|u| u.to_string()).collect::>().join(" "), &host.listen_port.to_string(), if host.is_lighthouse { "Lighthouse" } else if host.is_relay { "Relay" } else { "Host" }, if host.is_blocked { "true" } else { "false" }, &host.metadata.last_seen_at]); + table.add_row(vec![ + host.id.as_str(), + &host.name, + &host.organization_id, + &host.network_id, + &host.role_id, + &host.ip_address, + &host + .static_addresses + .iter() + .map(|u| u.to_string()) + .collect::>() + .join(" "), + &host.listen_port.to_string(), + if host.is_lighthouse { + "Lighthouse" + } else if host.is_relay { + "Relay" + } else { + "Host" + }, + if host.is_blocked { "true" } else { "false" }, + &host.metadata.last_seen_at, + ]); } println!("{table}"); - - } else { let resp: APIErrorResponse = res.json().await?; diff --git a/tfcli/src/main.rs b/tfcli/src/main.rs index 673d2d4..b3855d9 100644 --- a/tfcli/src/main.rs +++ b/tfcli/src/main.rs @@ -1,15 +1,15 @@ -use std::error::Error; -use std::fmt::{Display, Formatter}; -use std::fs; -use std::net::{Ipv4Addr, SocketAddrV4}; -use clap::{Parser, Subcommand, ValueEnum}; -use ipnet::Ipv4Net; -use url::Url; use crate::account::account_main; use crate::host::host_main; use crate::network::network_main; use crate::org::org_main; use crate::role::role_main; +use clap::{Parser, Subcommand, ValueEnum}; +use ipnet::Ipv4Net; +use std::error::Error; +use std::fmt::{Display, Formatter}; +use std::fs; +use std::net::{Ipv4Addr, SocketAddrV4}; +use url::Url; pub mod account; pub mod api; @@ -96,7 +96,7 @@ pub enum NetworkCommands { /// List all networks associated with your trifid account. List { #[clap(short = 'T', long, default_value_t = TableStyle::Basic)] - table_style: TableStyle + table_style: TableStyle, }, /// Lookup a specific network by ID. Lookup { @@ -129,7 +129,7 @@ pub enum RoleCommands { /// List all roles attached to your organization List { #[clap(short = 'T', long, default_value_t = TableStyle::Basic)] - table_style: TableStyle + table_style: TableStyle, }, /// Lookup a specific role by it's ID Lookup { @@ -177,7 +177,7 @@ pub enum HostCommands { /// List all hosts on your network List { #[clap(short = 'T', long, default_value_t = TableStyle::Basic)] - table_style: TableStyle + table_style: TableStyle, }, /// Lookup a specific host by it's ID Lookup { @@ -254,7 +254,7 @@ pub enum HostOverrideCommands { pub enum TableStyle { List, Basic, - Pretty + Pretty, } impl Default for TableStyle { fn default() -> Self { @@ -266,7 +266,7 @@ impl Display for TableStyle { match self { Self::List => write!(f, "list"), Self::Basic => write!(f, "basic"), - Self::Pretty => write!(f, "pretty") + Self::Pretty => write!(f, "pretty"), } } } diff --git a/tfcli/src/network.rs b/tfcli/src/network.rs index b1d8d7a..42d2c79 100644 --- a/tfcli/src/network.rs +++ b/tfcli/src/network.rs @@ -1,17 +1,17 @@ -use std::error::Error; -use std::fs; +use crate::api::APIErrorResponse; +use crate::{NetworkCommands, TableStyle}; use comfy_table::modifiers::UTF8_ROUND_CORNERS; use comfy_table::presets::UTF8_FULL; use comfy_table::Table; use serde::Deserialize; +use std::error::Error; +use std::fs; use url::Url; -use crate::api::APIErrorResponse; -use crate::{NetworkCommands, TableStyle}; pub async fn network_main(command: NetworkCommands, server: Url) -> Result<(), Box> { match command { NetworkCommands::List { table_style } => list_networks(server, table_style).await, - NetworkCommands::Lookup {id} => get_network(id, server).await + NetworkCommands::Lookup { id } => get_network(id, server).await, } } @@ -78,13 +78,33 @@ pub async fn list_networks(server: Url, table_style: TableStyle) -> Result<(), B match table_style { TableStyle::List => unreachable!(), TableStyle::Basic => (), - TableStyle::Pretty => { table.load_preset(UTF8_FULL).apply_modifier(UTF8_ROUND_CORNERS) ; }, + TableStyle::Pretty => { + table + .load_preset(UTF8_FULL) + .apply_modifier(UTF8_ROUND_CORNERS); + } }; - table.set_header(vec!["ID", "Name", "CIDR", "Organization ID", "Signing CA ID", "Dedicated Relays", "Created At"]); + table.set_header(vec![ + "ID", + "Name", + "CIDR", + "Organization ID", + "Signing CA ID", + "Dedicated Relays", + "Created At", + ]); for network in &resp.data { - table.add_row(vec![&network.id, &network.name, &network.cidr, &network.organization_id, &network.signing_ca_id, (!network.lighthouses_as_relays).to_string().as_str(), &network.created_at]); + table.add_row(vec![ + &network.id, + &network.name, + &network.cidr, + &network.organization_id, + &network.signing_ca_id, + (!network.lighthouses_as_relays).to_string().as_str(), + &network.created_at, + ]); } println!("{table}"); diff --git a/tfcli/src/role.rs b/tfcli/src/role.rs index 214ed70..10ec583 100644 --- a/tfcli/src/role.rs +++ b/tfcli/src/role.rs @@ -1,18 +1,22 @@ -use std::error::Error; -use std::fs; +use crate::api::APIErrorResponse; +use crate::{RoleCommands, TableStyle}; use comfy_table::modifiers::UTF8_ROUND_CORNERS; use comfy_table::presets::UTF8_FULL; use comfy_table::Table; use serde::{Deserialize, Serialize}; +use std::error::Error; +use std::fs; use url::Url; -use crate::api::APIErrorResponse; -use crate::{RoleCommands, TableStyle}; pub async fn role_main(command: RoleCommands, server: Url) -> Result<(), Box> { match command { RoleCommands::List { table_style } => list_roles(server, table_style).await, - RoleCommands::Lookup {id} => get_role(id, server).await, - RoleCommands::Create { name, description, rules_json } => create_role(name, description, rules_json, server).await, + RoleCommands::Lookup { id } => get_role(id, server).await, + RoleCommands::Create { + name, + description, + rules_json, + } => create_role(name, description, rules_json, server).await, RoleCommands::Delete { id } => delete_role(id, server).await, RoleCommands::Update { id, @@ -85,9 +89,21 @@ pub async fn list_roles(server: Url, table_style: TableStyle) -> Result<(), Box< println!(" Description: {}", role.description); for rule in &role.firewall_rules { println!("Rule Description: {}", rule.description); - println!(" Allowed Role: {}", rule.allowed_role_id.as_ref().unwrap_or(&"All roles".to_string())); + println!( + " Allowed Role: {}", + rule.allowed_role_id + .as_ref() + .unwrap_or(&"All roles".to_string()) + ); println!(" Protocol: {}", rule.protocol); - println!(" Port Range: {}", if let Some(pr) = rule.port_range.as_ref() { format!("{}-{}", pr.from, pr.to) } else { "Any".to_string() }); + println!( + " Port Range: {}", + if let Some(pr) = rule.port_range.as_ref() { + format!("{}-{}", pr.from, pr.to) + } else { + "Any".to_string() + } + ); } println!(" Created: {}", role.created_at); println!(" Updated: {}", role.modified_at); @@ -99,12 +115,30 @@ pub async fn list_roles(server: Url, table_style: TableStyle) -> Result<(), Box< match table_style { TableStyle::List => unreachable!(), TableStyle::Basic => (), - TableStyle::Pretty => { table.load_preset(UTF8_FULL).apply_modifier(UTF8_ROUND_CORNERS); }, + TableStyle::Pretty => { + table + .load_preset(UTF8_FULL) + .apply_modifier(UTF8_ROUND_CORNERS); + } }; - table.set_header(vec!["ID", "Name", "Description", "Rule Count", "Created", "Updated"]); + table.set_header(vec![ + "ID", + "Name", + "Description", + "Rule Count", + "Created", + "Updated", + ]); for role in &resp.data { - table.add_row(vec![&role.id, &role.name, &role.description, role.firewall_rules.len().to_string().as_str(), &role.created_at, &role.modified_at]); + table.add_row(vec![ + &role.id, + &role.name, + &role.description, + role.firewall_rules.len().to_string().as_str(), + &role.created_at, + &role.modified_at, + ]); } println!("{table}"); diff --git a/tfclient/src/nebulaworker.rs b/tfclient/src/nebulaworker.rs index 5e0eaad..260c5d9 100644 --- a/tfclient/src/nebulaworker.rs +++ b/tfclient/src/nebulaworker.rs @@ -28,7 +28,7 @@ fn insert_private_key(instance: &str) -> Result<(), Box> { config.pki.key = Some(String::from_utf8(key)?); - debug!("inserted private key into config: {:?}", config); + debug!("inserted private key into config"); let config_str = serde_yaml::to_string(&config)?; fs::write(nebula_yml(instance), config_str)?; diff --git a/tfweb/.eslintrc.cjs b/tfweb/.eslintrc.cjs index 9586e74..8304ad3 100644 --- a/tfweb/.eslintrc.cjs +++ b/tfweb/.eslintrc.cjs @@ -1,9 +1,11 @@ +/** @type { import("eslint").Linter.FlatConfig } */ module.exports = { root: true, extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', - 'plugin:svelte/recommended' + 'plugin:svelte/recommended', + 'prettier' ], parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint'], diff --git a/tfweb/.gitignore b/tfweb/.gitignore index f4a1c10..6635cf5 100644 --- a/tfweb/.gitignore +++ b/tfweb/.gitignore @@ -8,4 +8,3 @@ node_modules !.env.example vite.config.js.timestamp-* vite.config.ts.timestamp-* -.idea diff --git a/tfweb/.npmrc b/tfweb/.npmrc index 0c05da4..b6f27f1 100644 --- a/tfweb/.npmrc +++ b/tfweb/.npmrc @@ -1,2 +1 @@ engine-strict=true -resolution-mode=highest diff --git a/tfweb/.prettierignore b/tfweb/.prettierignore new file mode 100644 index 0000000..cc41cea --- /dev/null +++ b/tfweb/.prettierignore @@ -0,0 +1,4 @@ +# Ignore files for PNPM, NPM and YARN +pnpm-lock.yaml +package-lock.json +yarn.lock diff --git a/tfweb/.prettierrc b/tfweb/.prettierrc new file mode 100644 index 0000000..9023878 --- /dev/null +++ b/tfweb/.prettierrc @@ -0,0 +1,18 @@ +{ + "useTabs": true, + "singleQuote": true, + "trailingComma": "none", + "printWidth": 100, + "plugins": [ + "prettier-plugin-svelte", + "prettier-plugin-tailwindcss" + ], + "overrides": [ + { + "files": "*.svelte", + "options": { + "parser": "svelte" + } + } + ] +} \ No newline at end of file diff --git a/tfweb/components.json b/tfweb/components.json new file mode 100644 index 0000000..12c509b --- /dev/null +++ b/tfweb/components.json @@ -0,0 +1,13 @@ +{ + "$schema": "https://shadcn-svelte.com/schema.json", + "style": "default", + "tailwind": { + "config": "tailwind.config.js", + "css": "src/app.pcss", + "baseColor": "zinc" + }, + "aliases": { + "components": "$lib/components", + "utils": "$lib/utils" + } +} \ No newline at end of file diff --git a/tfweb/openapi.yaml b/tfweb/openapi.yaml deleted file mode 100644 index b3baf7b..0000000 --- a/tfweb/openapi.yaml +++ /dev/null @@ -1,1928 +0,0 @@ -openapi: 3.0.3 -info: - version: 1.0.0 - description: | -
-
- - This API enables automated administration of Defined Networking hosts, roles, logs, and more. - - To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. - - Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. - - In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). - -
- title: Defined Networking API - termsOfService: http://defined.net/terms/ - contact: - url: https://www.defined.net/contact?reason=support - x-logo: - url: https://docs.defined.net/img/logo.svg - altText: Defined Networking logo - x-dark-logo: - url: https://docs.defined.net/img/logo-dark.svg - altText: Defined Networking logo -servers: - - url: https://api.defined.net - description: Default server -security: - - ApiToken: [] -tags: - - name: hosts - x-displayName: Hosts - description: Operations requiring `hosts:` permission scopes - - name: roles - x-displayName: Roles - description: Operations requiring `roles:` permission scopes - - name: auditLogs - x-displayName: Audit Logs - description: Operations requiring `audit-logs:` permission scopes - - name: networks - x-displayName: Networks - description: Operations requiring `networks:` permission scopes - - name: downloads - x-displayName: Downloads - description: Information about software downloads -externalDocs: - description: Find more about the API here - url: https://docs.defined.net/guides/automating-host-creation/ -paths: - /v1/hosts: - post: - summary: Create host - description: | - Create a new host, lighthouse, or relay. - - Token scope required: `hosts:create` - - ### Request - operationId: hostCreate - tags: - - hosts - requestBody: - required: true - content: - application/json: - schema: - type: object - required: - - name - - networkID - properties: - name: - description: Name of the new host - type: string - minLength: 1 - maxLength: 255 - example: My new host - networkID: - description: ID of your network - type: string - example: network-KAOWMXZHZWCVMGGFKM22XEGYLE - roleID: - description: ID of the role you want to assign - type: string - nullable: true - example: role-PZEDBXHQEXKACJPZ6XOQTIAJA4 - ipAddress: - description: Assign an IP address to be used within the Managed Nebula network. Must be within the network's CIDR range. Will be chosen automatically if not provided. - type: string - format: ipv4 - example: 100.100.0.29 - staticAddresses: - description: List of static IPv4:port addresses. At least one is required if `isLighthouse` is `true`. - type: array - items: - type: string - format: ipv4:port - example: - - 84.123.10.1:4242 - default: [] - listenPort: - description: The UDP port nebula should use on the host. An available port will be automatically selected if `0` is specified. Required for lighthouses and relays. - format: integer - minimum: 0 - maximum: 65535 - default: 0 - isLighthouse: - description: Set to true to create a new lighthouse. A Lighthouse cannot also be relay. - format: boolean - isRelay: - description: Set to true to create a new relay. A relay cannot also be a lighthouse. - format: boolean - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - $ref: '#/components/schemas/Host' - metadata: - type: object - example: - data: - createdAt: '2023-01-25T18:15:27Z' - id: host-24NVITKMNU3CYCEDNFWKAOBX7I - ipAddress: 100.100.0.29 - isBlocked: false - isLighthouse: false - isRelay: false - listenPort: 0 - name: My new host - networkID: network-KAOWMXZHZWCVMGGFKM22XEGYLE - organizationID: org-F63A24JGCLJV3ZEUTLCBISGETA - roleID: role-PZEDBXHQEXKACJPZ6XOQTIAJA4 - staticAddresses: - - 84.123.10.1:4242 - metadata: - lastSeenAt: '2023-01-25T18:15:27Z' - platform: dnclient - updateAvailable: false - version: 0.1.9 - metadata: {} - '400': - description: Validation error - content: - application/json: - schema: - type: object - properties: - errors: - $ref: '#/components/schemas/Errors' - examples: - existingHostName: - summary: A host already exists with the name. - value: - errors: - - code: ERR_DUPLICATE_VALUE - message: value already exists - path: name - cannotFindNetwork: - summary: Cannot find the supplied networkID. - value: - errors: - - code: ERR_INVALID_REFERENCE - message: referenced value is invalid (perhaps it does not exist?) - path: networkID - duplicateIpAddress: - summary: A host with the ipAddress supplied already exists. - value: - errors: - - code: ERR_DUPLICATE_VALUE - message: value already exists - path: ipAddress - cannotFindRole: - summary: Cannot find the supplied roleID. - value: - errors: - - code: ERR_INVALID_REFERENCE - message: referenced value is invalid (perhaps it does not exist?) - path: roleID - lighthouseXorRelay: - summary: A host may be a lighthouse OR a relay, but not both. - value: - errors: - - code: ERR_INVALID_VALUE - message: lighthouse hosts must not also be relay hosts - lighthouseNeedsStaticIP: - summary: A lighthouse requires at least one static IP address. - value: - errors: - - code: ERR_INVALID_VALUE - message: lighthouse hosts must have at least one static ip address - path: staticAddresses - lighthouseNeedsStaticPort: - summary: A lighthouse requires a static listen port, like `4242`. - value: - errors: - - code: ERR_INVALID_VALUE - message: lighthouse hosts must specify a static listen port - path: listenPort - relayNeedsStaticPort: - summary: A relay requires a static listen port, like `4242`. - value: - errors: - - code: ERR_INVALID_VALUE - message: relay hosts must specify a static listen port - path: listenPort - get: - summary: List hosts - description: | - Get a paginated list of hosts, lighthouses, and relays. - - Token scope required: `hosts:list` - - ### Request - operationId: hostsList - tags: - - hosts - parameters: - - $ref: '#/components/parameters/includeCounts' - - $ref: '#/components/parameters/cursor' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/filter-isBlocked' - - $ref: '#/components/parameters/filter-isLighthouse' - - $ref: '#/components/parameters/filter-isRelay' - - $ref: '#/components/parameters/filter-metadata-lastSeenAt' - - $ref: '#/components/parameters/filter-metadata-platform' - - $ref: '#/components/parameters/filter-metadata-updateAvailable' - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - type: array - items: - $ref: '#/components/schemas/Host' - metadata: - $ref: '#/components/schemas/PaginationMetadata' - examples: - noParams: - summary: When includeCounts parameter is not set to true - value: - data: - - createdAt: '2023-01-25T18:15:27Z' - id: host-24NVITKMNU3CYCEDNFWKAOBX7I - ipAddress: 100.100.0.29 - isBlocked: false - isLighthouse: false - isRelay: false - listenPort: 0 - name: Host 1 - networkID: network-KAOWMXZHZWCVMGGFKM22XEGYLE - organizationID: org-F63A24JGCLJV3ZEUTLCBISGETA - roleID: role-PZEDBXHCEXKAKJPZ6XOQTIAJA4 - staticAddresses: [] - metadata: - lastSeenAt: '2023-04-05T17:19:42Z' - platform: dnclient - updateAvailable: false - version: 0.1.9 - metadata: - hasNextPage: true - hasPrevPage: true - nextCursor: bmV4dA.bHVlIjoieGJVS0UvYkRjQmZsY1pUbGJCc - prevCursor: cHJldg.SI6ImIiLCJfdmFsdWUiOiI0dDVuREQreU - includeCounts: - summary: Metadata returned when including request params for includeCounts=true, pageSize=1, and cursor="somevalue". - value: - data: - - createdAt: '2023-01-25T18:15:27Z' - id: host-24NVITKMNU3CYCEDNFWKAOBX7I - ipAddress: 100.100.0.29 - isBlocked: false - isLighthouse: false - isRelay: false - listenPort: 0 - name: Host 1 - networkID: network-KAOWMXZHZWCVMGGFKM22XEGYLE - organizationID: org-F63A24JGCLJV3ZEUTLCBISGETA - roleID: role-PZEDBXHCEXKAKJPZ6XOQTIAJA4 - staticAddresses: [] - metadata: - lastSeenAt: '2023-04-05T17:19:42Z' - platform: mobile - updateAvailable: true - version: 0.1.9 - metadata: - totalCount: 500 - hasNextPage: true - hasPrevPage: true - prevCursor: cHJldg.SI6ImIiLCJfdmFsdWUiOiI0dDVuREQreU - nextCursor: bmV4dA.bHVlIjoieGJVS0UvYkRjQmZsY1pUbGJCc - page: - count: 1 - start: 5 - /v1/hosts/{hostID}: - get: - summary: Get host - description: | - Fetch information about a particular host, lighthouse, or relay. - - Token scope required: `hosts:read` - - ### Request - operationId: hostGet - tags: - - hosts - parameters: - - name: hostID - in: path - required: true - schema: - type: string - example: host-24NVITKMNU3CYCEDNFWKAOBX7I - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - $ref: '#/components/schemas/Host' - metadata: - type: object - examples: - Example: - value: - data: - createdAt: '2023-01-25T18:15:27Z' - id: host-24NVITKMNU3CYCEDNFWKAOBX7I - ipAddress: 100.100.0.29 - isBlocked: false - isLighthouse: false - isRelay: false - listenPort: 0 - name: Host 1 - networkID: network-KAOWMXZHZWCVMGGFKM22XEGYLE - organizationID: org-F63A24JGCLJV3ZEUTLCBISGETA - roleID: role-PZEDBXHCEXKAKJPZ6XOQTIAJA4 - staticAddresses: [] - metadata: - lastSeenAt: '2023-04-05T17:19:42Z' - platform: dnclient - updateAvailable: false - version: 0.1.9 - metadata: {} - noMetadata: - summary: If the host has not been enrolled, its metadata will be unknown (null values). - value: - data: - createdAt: '2023-01-25T18:15:27Z' - id: host-24NVITKMNU3CYCEDNFWKAOBX7I - ipAddress: 100.100.0.29 - isBlocked: false - isLighthouse: false - isRelay: false - listenPort: 0 - name: Host 1 - networkID: network-KAOWMXZHZWCVMGGFKM22XEGYLE - organizationID: org-F63A24JGCLJV3ZEUTLCBISGETA - roleID: role-PZEDBXHCEXKAKJPZ6XOQTIAJA4 - staticAddresses: [] - metadata: - lastSeenAt: null - platform: null - updateAvailable: null - version: null - metadata: {} - put: - summary: Edit host - description: | - Token scope required: `hosts:update` - - :::caution - - Any properties not provided in the request will be reset to their default values. - - ::: - - ### Request - operationId: hostEdit - tags: - - hosts - parameters: - - name: hostID - in: path - required: true - schema: - type: string - example: host-24NVITKMNU3CYCEDNFWKAOBX7I - requestBody: - required: true - content: - application/json: - schema: - type: object - properties: - staticAddresses: - description: List of static IPv4:port addresses. At least one is required if `isLighthouse` is `true`. - type: string - format: ipv4:port - example: - - 84.123.10.1:4242 - default: [] - listenPort: - description: The UDP port nebula should use on the host. An available port will be automatically selected if `0` is specified. Required for lighthouses and relays. - format: integer - minimum: 0 - maximum: 65535 - default: 0 - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - $ref: '#/components/schemas/Host' - metadata: - type: object - example: - data: - createdAt: '2023-01-25T18:15:27Z' - id: host-24NVITKMNU3CYCEDNFWKAOBX7I - ipAddress: 100.100.0.29 - isBlocked: false - isLighthouse: false - isRelay: false - listenPort: 0 - name: Host 1 - networkID: network-KAOWMXZHZWCVMGGFKM22XEGYLE - organizationID: org-F63A24JGCLJV3ZEUTLCBISGETA - roleID: role-PZEDBXHCEXKAKJPZ6XOQTIAJA4 - staticAddresses: [] - metadata: - lastSeenAt: '2023-04-05T17:19:42Z' - platform: dnclient - updateAvailable: false - version: 0.1.9 - metadata: {} - delete: - summary: Delete host - description: | - Token scope required: `hosts:delete` - - ### Request - operationId: hostDelete - tags: - - hosts - parameters: - - name: hostID - in: path - required: true - schema: - type: string - example: host-24NVITKMNU3CYCEDNFWKAOBX7I - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - type: object - metadata: - type: object - /v1/hosts/{hostID}/block: - post: - summary: Block host - description: | - Prevent a host from being able to interact with other nodes on your network. See https://www.defined.net/blog/blocklisting/ for more details. - - To unblock, re-enroll the host. - - Token scope required: `hosts:block` - - ### Request - operationId: hostBlock - tags: - - hosts - parameters: - - name: hostID - in: path - required: true - schema: - type: string - example: host-24NVITKMNU3CYCEDNFWKAOBX7I - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - type: object - properties: - host: - $ref: '#/components/schemas/Host' - metadata: - type: object - example: - data: - host: - createdAt: '2023-01-25T18:15:27Z' - id: host-24NVITKMNU3CYCEDNFWKAOBX7I - ipAddress: 100.100.0.29 - isBlocked: true - isLighthouse: false - isRelay: false - listenPort: 0 - name: Host 1 - networkID: network-KAOWMXZHZWCVMGGFKM22XEGYLE - organizationID: org-F63A24JGCLJV3ZEUTLCBISGETA - roleID: role-PZEDBXHCEXKAKJPZ6XOQTIAJA4 - staticAddresses: [] - metadata: - lastSeenAt: '2023-04-05T17:19:42Z' - platform: dnclient - updateAvailable: false - version: 0.1.9 - metadata: {} - /v1/hosts/{hostID}/enrollment-code: - post: - summary: Create enrollment code - description: | - Obtain a code that can be used with the `dnclient enroll` command on a host, lighthouse, or relay to enroll it into your Managed Nebula network. - - Token scope required: `hosts:enroll` - - ### Request - operationId: hostEnrollCodeCreate - tags: - - hosts - parameters: - - name: hostID - in: path - required: true - schema: - type: string - example: host-24NVITKMNU3CYCEDNFWKAOBX7I - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - type: object - properties: - enrollmentCode: - type: object - properties: - code: - type: string - description: Secret code to be used in `dnclient enroll` to allow the host/lighthouse/relay to join your Managed Nebula network. - lifetimeSeconds: - type: integer - format: int64 - description: The number of seconds the code is valid after being issued. - metadata: - type: object - example: - data: - code: H8NEbm99QvupjqW1PsdVR9DNSiFmoQtJXyGTQxerlSU - lifetimeSeconds: 86400 - metadata: {} - /v1/host-and-enrollment-code: - post: - summary: Create host & enrollment code - description: | - Token scopes required: `hosts:create`, `hosts:enroll` - - ### Request - operationId: hostAndEnrollCodeCreate - tags: - - hosts - requestBody: - required: true - content: - application/json: - schema: - type: object - required: - - name - - networkID - properties: - name: - description: Name of the new host - type: string - minLength: 1 - maxLength: 255 - example: My new host - networkID: - description: ID of your network - type: string - example: network-KAOWMXZHZWCVMGGFKM22XEGYLE - roleID: - description: ID of the role you want to assign - type: string - nullable: true - example: role-PZEDBXHQEXKACJPZ6XOQTIAJA4 - ipAddress: - description: Assign an IP address to be used within the Managed Nebula network. Must be within the network's CIDR range. Will be chosen automatically if not provided. - type: string - format: ipv4 - example: 100.100.0.29 - staticAddresses: - description: List of static IPv4:port addresses. At least one is required if `isLighthouse` is `true`. - type: array - items: - type: string - format: ipv4:port - example: - - 84.123.10.1:4242 - default: [] - listenPort: - description: The UDP port nebula should use on the host. An available port will be automatically selected if `0` is specified. Required for lighthouses and relays. - format: integer - minimum: 0 - maximum: 65535 - default: 0 - isLighthouse: - description: Set to true to create a new lighthouse. A Lighthouse cannot also be relay. - format: boolean - isRelay: - description: Set to true to create a new relay. A relay cannot also be a lighthouse. - format: boolean - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - type: object - required: - - host - properties: - host: - $ref: '#/components/schemas/Host' - enrollmentCode: - type: object - properties: - code: - type: string - lifetimeSeconds: - type: integer - format: int64 - metadata: - type: object - example: - data: - host: - createdAt: '2023-01-25T18:15:27Z' - id: host-24NVITKMNU3CYCEDNFWKAOBX7I - ipAddress: 100.100.0.29 - isBlocked: false - isLighthouse: false - isRelay: false - listenPort: 0 - name: Host 1 - networkID: network-KAOWMXZHZWCVMGGFKM22XEGYLE - organizationID: org-F63A24JGCLJV3ZEUTLCBISGETA - roleID: role-PZEDBXHCEXKAKJPZ6XOQTIAJA4 - staticAddresses: [] - metadata: - lastSeenAt: '2023-04-05T17:19:42Z' - platform: dnclient - updateAvailable: false - version: 0.1.9 - enrollmentCode: - code: H8NEbm99QvupjqW1PsdVR9DNSiFmoQtJXyGTQxerlSU - lifetimeSeconds: 86400 - metadata: {} - '400': - description: Validation error - content: - application/json: - schema: - type: object - required: - - errors - properties: - errors: - $ref: '#/components/schemas/Errors' - examples: - existingHostName: - summary: A host already exists with the name. - value: - errors: - - code: ERR_DUPLICATE_VALUE - message: value already exists - path: name - cannotFindNetwork: - summary: Cannot find the supplied networkID. - value: - errors: - - code: ERR_INVALID_REFERENCE - message: referenced value is invalid (perhaps it does not exist?) - path: networkID - duplicateIpAddress: - summary: A host with the ipAddress supplied already exists. - value: - errors: - - code: ERR_DUPLICATE_VALUE - message: value already exists - path: ipAddress - cannotFindRole: - summary: Cannot find the supplied roleID. - value: - errors: - - code: ERR_INVALID_REFERENCE - message: referenced value is invalid (perhaps it does not exist?) - path: roleID - lighthouseXorRelay: - summary: A host may be a lighthouse OR a relay, but not both. - value: - errors: - - code: ERR_INVALID_VALUE - message: lighthouse hosts must not also be relay hosts - lighthouseNeedsStaticIP: - summary: A lighthouse requires at least one static IP address. - value: - errors: - - code: ERR_INVALID_VALUE - message: lighthouse hosts must have at least one static ip address - path: staticAddresses - lighthouseNeedsStaticPort: - summary: A lighthouse requires a static listen port, like `4242`. - value: - errors: - - code: ERR_INVALID_VALUE - message: lighthouse hosts must specify a static listen port - path: listenPort - relayNeedsStaticPort: - summary: A relay requires a static listen port, like `4242`. - value: - errors: - - code: ERR_INVALID_VALUE - message: relay hosts must specify a static listen port - path: listenPort - /v1/roles: - post: - summary: Create role - description: | - Create a new role. - - Token scope required: `roles:create` - - ### Request - operationId: roleCreate - tags: - - roles - requestBody: - required: true - content: - application/json: - schema: - type: object - required: - - name - properties: - name: - description: Name of the new role - type: string - minLength: 1 - maxLength: 50 - example: My new role - description: - description: Optional description - type: string - maxLength: 255 - firewallRules: - description: Incoming firewall rules - type: array - items: - $ref: '#/components/schemas/FirewallRule' - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - $ref: '#/components/schemas/Role' - metadata: - type: object - example: - data: - id: role-LO4SPDSWTZNJC676WFCZKUB3ZQ - name: My new role - description: '' - createdAt: '2023-02-15T13:59:09Z' - modifiedAt: '2023-02-15T13:59:09Z' - firewallRules: - - protocol: TCP - description: allow SSH access - allowedRoleID: role-G3TWUQ4FASQEF44MGMTSRBTYKM - portRange: - from: 22 - to: 22 - metadata: {} - '400': - description: Validation error - content: - application/json: - schema: - type: object - required: - - errors - properties: - errors: - $ref: '#/components/schemas/Errors' - examples: - missingName: - summary: name not specified. - value: - errors: - - code: ERR_INVALID_VALUE_LENGTH - message: must have a length between 1 and 50 - path: name - duplicateName: - summary: A role with the name already exists. - value: - errors: - - code: ERR_DUPLICATE_VALUE - message: value already exists - path: name - protocol: - summary: Invalid protocol value. - value: - errors: - - code: ERR_INVALID_VALUE - message: 'must be a valid protocol: ANY, TCP, UDP, ICMP' - path: firewallRules[0].protocol - portRangeMissing: - summary: Invalid/missing from and to values. - value: - errors: - - code: ERR_INVALID_VALUE - message: must be between 1 and 65535 - path: firewallRules[0].portRange.from - - code: ERR_INVALID_VALUE - message: must be between 1 and 65535 - path: firewallRules[0].portRange.to - portRangeOrder: - summary: From cannot be greater than to - value: - errors: - - code: ERR_INVALID_VALUE - message: from must be less than or equal to to - path: firewallRules[0].portRange - get: - summary: List roles - description: | - Get a paginated list of roles. - - Token scope required: `roles:list` - - ### Request - operationId: rolesList - tags: - - roles - parameters: - - $ref: '#/components/parameters/includeCounts' - - $ref: '#/components/parameters/cursor' - - $ref: '#/components/parameters/pageSize' - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - type: array - items: - $ref: '#/components/schemas/Role' - metadata: - $ref: '#/components/schemas/PaginationMetadata' - examples: - noParams: - summary: When includeCounts parameter is not set to true - value: - data: - - id: role-LO4SPDSWTZNJC676WFCZKUB3ZQ - name: My new role - description: '' - createdAt: '2023-02-15T13:59:09Z' - modifiedAt: '2023-02-15T13:59:09Z' - firewallRules: - - protocol: TCP - description: allow SSH access - allowedRoleID: role-G3TWUQ4FASQEF44MGMTSRBTYKM - portRange: - from: 22 - to: 22 - metadata: - hasNextPage: true - hasPrevPage: true - nextCursor: bmV4dA.bHVlIjoieGJVS0UvYkRjQmZsY1pUbGJCc - prevCursor: cHJldg.SI6ImIiLCJfdmFsdWUiOiI0dDVuREQreU - includeCounts: - summary: Metadata returned when including request params for includeCounts=true, pageSize=1, and cursor="somevalue". - value: - data: - - id: role-LO4SPDSWTZNJC676WFCZKUB3ZQ - name: My new role - description: '' - createdAt: '2023-02-15T13:59:09Z' - modifiedAt: '2023-02-15T13:59:09Z' - firewallRules: - - protocol: TCP - description: allow SSH access - allowedRoleID: role-G3TWUQ4FASQEF44MGMTSRBTYKM - portRange: - from: 22 - to: 22 - metadata: - totalCount: 500 - hasNextPage: true - hasPrevPage: true - prevCursor: cHJldg.SI6ImIiLCJfdmFsdWUiOiI0dDVuREQreU - nextCursor: bmV4dA.bHVlIjoieGJVS0UvYkRjQmZsY1pUbGJCc - page: - count: 1 - start: 5 - /v1/roles/{roleID}: - get: - summary: Get role - description: | - Fetch information about a particular role. - - Token scope required: `roles:read` - - ### Request - operationId: roleGet - tags: - - roles - parameters: - - name: roleID - in: path - required: true - schema: - type: string - example: role-LO4SPDSWTZNJC676WFCZKUB3ZQ - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - $ref: '#/components/schemas/Role' - metadata: - type: object - example: - data: - id: role-LO4SPDSWTZNJC676WFCZKUB3ZQ - name: My new role - description: '' - createdAt: '2023-02-15T13:59:09Z' - modifiedAt: '2023-02-15T13:59:09Z' - firewallRules: - - protocol: TCP - description: allow SSH access - allowedRoleID: role-G3TWUQ4FASQEF44MGMTSRBTYKM - portRange: - from: 22 - to: 22 - metadata: {} - put: - summary: Edit role - description: | - Token scope required: `roles:update` - - :::caution - - Any properties not provided in the request will be reset to their default values. If only changing one firewall rule, be sure to include the others as well, otherwise they will be removed. - - ::: - - ### Request - operationId: roleEdit - tags: - - roles - parameters: - - name: roleID - in: path - required: true - schema: - type: string - example: role-LO4SPDSWTZNJC676WFCZKUB3ZQ - requestBody: - required: true - content: - application/json: - schema: - type: object - properties: - description: - type: string - maxLength: 255 - firewallRules: - description: Incoming firewall rules. Will replace existing list of rules. - type: array - items: - $ref: '#/components/schemas/FirewallRule' - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - $ref: '#/components/schemas/Role' - metadata: - type: object - example: - data: - id: role-LO4SPDSWTZNJC676WFCZKUB3ZQ - name: My new role - description: '' - createdAt: '2023-02-15T13:59:09Z' - modifiedAt: '2023-02-15T13:59:09Z' - firewallRules: - - protocol: TCP - description: allow SSH access - allowedRoleID: role-G3TWUQ4FASQEF44MGMTSRBTYKM - portRange: - from: 22 - to: 22 - metadata: {} - delete: - summary: Delete role - description: | - Token scope required: `roles:delete` - - ### Request - operationId: roleDelete - tags: - - roles - parameters: - - name: roleID - in: path - required: true - schema: - type: string - example: role-LO4SPDSWTZNJC676WFCZKUB3ZQ - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - type: object - metadata: - type: object - /v1/networks: - get: - summary: List networks - description: | - Get a paginated list of networks. - - :::note - - Currently, there is a limit of one network per Defined Networking account. - - ::: - - Token scope required: `networks:list` - - ### Request - operationId: networksList - tags: - - networks - parameters: - - $ref: '#/components/parameters/includeCounts' - - $ref: '#/components/parameters/cursor' - - $ref: '#/components/parameters/pageSize' - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - type: array - items: - $ref: '#/components/schemas/Network' - metadata: - $ref: '#/components/schemas/PaginationMetadata' - examples: - noParams: - summary: When includeCounts parameter is not set to true - value: - data: - - cidr: 100.100.0.0/22 - id: network-ZJOW3QUQUX5ZAVPVYRHDQUAEIY - organizationID: org-F63A24JGCLJV3ZEUTLCBISGETA - signingCAID: ca-TRJSVAAAPJXTOICJMG2KZBKQEE - name: Network1 - lighthousesAsRelays: false - createdAt: '2023-02-14T20:34:59Z' - metadata: - hasNextPage: true - hasPrevPage: true - nextCursor: bmV4dA.bHVlIjoieGJVS0UvYkRjQmZsY1pUbGJCc - prevCursor: cHJldg.SI6ImIiLCJfdmFsdWUiOiI0dDVuREQreU - includeCounts: - summary: Metadata returned when including request params for includeCounts=true, pageSize=1, and cursor="somevalue". - value: - data: - - cidr: 100.100.0.0/22 - id: network-ZJOW3QUQUX5ZAVPVYRHDQUAEIY - organizationID: org-F63A24JGCLJV3ZEUTLCBISGETA - signingCAID: ca-TRJSVAAAPJXTOICJMG2KZBKQEE - name: Network1 - lighthousesAsRelays: false - createdAt: '2023-02-14T20:34:59Z' - metadata: - totalCount: 500 - hasNextPage: true - hasPrevPage: true - nextCursor: bmV4dA.bHVlIjoieGJVS0UvYkRjQmZsY1pUbGJCc - prevCursor: cHJldg.SI6ImIiLCJfdmFsdWUiOiI0dDVuREQreU - page: - count: 1 - start: 5 - /v1/networks/{networkID}: - get: - summary: Get network - description: | - Fetch information about a particular network. - - Token scope required: `networks:read` - - ### Request - operationId: networkGet - tags: - - networks - parameters: - - name: networkID - in: path - required: true - schema: - type: string - example: network-ZJOW3QUQUX5ZAVPVYRHDQUAEIY - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - $ref: '#/components/schemas/Network' - metadata: - type: object - example: - data: - cidr: 100.100.0.0/22 - id: network-ZJOW3QUQUX5ZAVPVYRHDQUAEIY - organizationID: org-F63A24JGCLJV3ZEUTLCBISGETA - signingCAID: ca-TRJSVAAAPJXTOICJMG2KZBKQEE - name: Network1 - lighthousesAsRelays: false - createdAt: '2023-02-14T20:34:59Z' - metadata: {} - /v1/audit-logs: - get: - summary: List audit logs - description: | - Get a paginated list of audit logs. - - Token scope required: `audit-logs:list` - - ### Request - operationId: auditLogsList - tags: - - auditLogs - parameters: - - $ref: '#/components/parameters/includeCounts' - - $ref: '#/components/parameters/cursor' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/filter-targetID' - - $ref: '#/components/parameters/filter-targetType' - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - type: array - items: - $ref: '#/components/schemas/AuditLog' - metadata: - $ref: '#/components/schemas/PaginationMetadata' - examples: - noParams: - summary: When includeCounts parameter is not set to true - value: - data: - - id: log-F3TTIDMKZH5XFH37RTRLIP3TOA - organizationID: org-F63A24JGCLJV3ZEUTLCBISGETA - timestamp: '2023-02-15T13:59:09.828868Z' - actor: - id: dnkey-DXALSPQONG7H45QZAVTPRDMAPU - name: example api key - type: apiKey - target: - id: role-LO4SPDSWTZNJC676WFCZKUB3ZQ - type: role - event: - type: CREATED - before: null - after: - name: My New Role - description: '' - firewallRules: null - metadata: - hasNextPage: true - hasPrevPage: true - nextCursor: bmV4dA.bHVlIjoieGJVS0UvYkRjQmZsY1pUbGJCc - prevCursor: cHJldg.SI6ImIiLCJfdmFsdWUiOiI0dDVuREQreU - includeCounts: - summary: Metadata returned when including request params for includeCounts=true, pageSize=1, and cursor="somevalue". - value: - data: - - id: log-F3TTIDMKZH5XFH37RTRLIP3TOA - organizationID: org-F63A24JGCLJV3ZEUTLCBISGETA - timestamp: '2023-02-15T13:59:09.828868Z' - actor: - id: dnkey-DXALSPQONG7H45QZAVTPRDMAPU - name: example api key - type: apiKey - target: - id: role-LO4SPDSWTZNJC676WFCZKUB3ZQ - type: role - event: - type: CREATED - before: null - after: - name: My New Role - description: '' - firewallRules: null - metadata: - totalCount: 500 - hasNextPage: true - hasPrevPage: true - prevCursor: cHJldg.SI6ImIiLCJfdmFsdWUiOiI0dDVuREQreU - nextCursor: bmV4dA.bHVlIjoieGJVS0UvYkRjQmZsY1pUbGJCc - page: - count: 1 - start: 5 - /v1/downloads: - get: - summary: List software downloads - description: | - Get a list of recently released software download links and basic info. - - This endpoint is unauthenticated. - - ### Request - operationId: downloadsList - tags: - - downloads - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - data: - $ref: '#/components/schemas/Downloads' - examples: - Listing: - summary: An example downloads listing - value: - data: - dnclient: - 0.1.5: - linux-amd64: https://dl.defined.net/aa96f50d/v0.1.5/linux/amd64/dnclient - linux-arm64: https://dl.defined.net/aa96f50d/v0.1.5/linux/arm64/dnclient - linux-armv7: https://dl.defined.net/aa96f50d/v0.1.5/linux/arm-7/dnclient - linux-mips-softfloat: https://dl.defined.net/aa96f50d/v0.1.5/linux/mips-softfloat/dnclient - macos-universal: https://dl.defined.net/aa96f50d/v0.1.5/macos/dnclient - macos-universal-dmg: https://dl.defined.net/aa96f50d/v0.1.5/macos/dnclient.dmg - windows-amd64: https://dl.defined.net/aa96f50d/v0.1.5/windows/amd64/DNClient.msi - windows-arm64: https://dl.defined.net/aa96f50d/v0.1.5/windows/arm64/DNClient.msi - 0.1.6: - linux-amd64: https://dl.defined.net/02c6d0f9/v0.1.6/linux/amd64/dnclient - linux-arm64: https://dl.defined.net/02c6d0f9/v0.1.6/linux/arm64/dnclient - linux-armv7: https://dl.defined.net/02c6d0f9/v0.1.6/linux/arm-7/dnclient - linux-mips-softfloat: https://dl.defined.net/02c6d0f9/v0.1.6/linux/mips-softfloat/dnclient - macos-universal: https://dl.defined.net/02c6d0f9/v0.1.6/macos/dnclient - macos-universal-dmg: https://dl.defined.net/02c6d0f9/v0.1.6/macos/dnclient.dmg - windows-amd64: https://dl.defined.net/02c6d0f9/v0.1.6/windows/amd64/DNClient.msi - windows-arm64: https://dl.defined.net/02c6d0f9/v0.1.6/windows/arm64/DNClient.msi - 0.1.7: - linux-amd64: https://dl.defined.net/0ef94adc/v0.1.7/linux/amd64/dnclient - linux-arm64: https://dl.defined.net/0ef94adc/v0.1.7/linux/arm64/dnclient - linux-armv7: https://dl.defined.net/0ef94adc/v0.1.7/linux/arm-7/dnclient - linux-mips-softfloat: https://dl.defined.net/0ef94adc/v0.1.7/linux/mips-softfloat/dnclient - macos-universal: https://dl.defined.net/0ef94adc/v0.1.7/macos/dnclient - macos-universal-dmg: https://dl.defined.net/0ef94adc/v0.1.7/macos/dnclient.dmg - windows-amd64: https://dl.defined.net/0ef94adc/v0.1.7/windows/amd64/DNClient.msi - windows-arm64: https://dl.defined.net/0ef94adc/v0.1.7/windows/arm64/DNClient.msi - 0.1.8: - freebsd-amd64: https://dl.defined.net/e16d2e9f/v0.1.8/freebsd/amd64/dnclient - freebsd-arm64: https://dl.defined.net/e16d2e9f/v0.1.8/freebsd/arm64/dnclient - linux-386: https://dl.defined.net/e16d2e9f/v0.1.8/linux/386/dnclient - linux-amd64: https://dl.defined.net/e16d2e9f/v0.1.8/linux/amd64/dnclient - linux-arm64: https://dl.defined.net/e16d2e9f/v0.1.8/linux/arm64/dnclient - linux-armv5: https://dl.defined.net/e16d2e9f/v0.1.8/linux/arm-5/dnclient - linux-armv6: https://dl.defined.net/e16d2e9f/v0.1.8/linux/arm-6/dnclient - linux-armv7: https://dl.defined.net/e16d2e9f/v0.1.8/linux/arm-7/dnclient - linux-mips: https://dl.defined.net/e16d2e9f/v0.1.8/linux/mips/dnclient - linux-mips-softfloat: https://dl.defined.net/e16d2e9f/v0.1.8/linux/mips-softfloat/dnclient - linux-mips64: https://dl.defined.net/e16d2e9f/v0.1.8/linux/mips64/dnclient - linux-mips64le: https://dl.defined.net/e16d2e9f/v0.1.8/linux/mips64le/dnclient - linux-mipsle: https://dl.defined.net/e16d2e9f/v0.1.8/linux/mipsle/dnclient - linux-ppc64le: https://dl.defined.net/e16d2e9f/v0.1.8/linux/ppc64le/dnclient - linux-riscv64: https://dl.defined.net/e16d2e9f/v0.1.8/linux/riscv64/dnclient - macos-universal: https://dl.defined.net/e16d2e9f/v0.1.8/macos/dnclient - macos-universal-dmg: https://dl.defined.net/e16d2e9f/v0.1.8/macos/dnclient.dmg - windows-amd64: https://dl.defined.net/e16d2e9f/v0.1.8/windows/amd64/DNClient.msi - windows-arm64: https://dl.defined.net/e16d2e9f/v0.1.8/windows/arm64/DNClient.msi - 0.1.9: - freebsd-amd64: https://dl.defined.net/02c6d0f9/v0.1.9/freebsd/amd64/dnclient, - freebsd-arm64: https://dl.defined.net/02c6d0f9/v0.1.9/freebsd/arm64/dnclient, - linux-386: https://dl.defined.net/02c6d0f9/v0.1.9/linux/386/dnclient, - linux-amd64: https://dl.defined.net/02c6d0f9/v0.1.9/linux/amd64/dnclient, - linux-arm64: https://dl.defined.net/02c6d0f9/v0.1.9/linux/arm64/dnclient, - linux-armv5: https://dl.defined.net/02c6d0f9/v0.1.9/linux/arm-5/dnclient, - linux-armv6: https://dl.defined.net/02c6d0f9/v0.1.9/linux/arm-6/dnclient, - linux-armv7: https://dl.defined.net/02c6d0f9/v0.1.9/linux/arm-7/dnclient, - linux-mips: https://dl.defined.net/02c6d0f9/v0.1.9/linux/mips/dnclient, - linux-mips-softfloat: https://dl.defined.net/02c6d0f9/v0.1.9/linux/mips-softfloat/dnclient, - linux-mips64: https://dl.defined.net/02c6d0f9/v0.1.9/linux/mips64/dnclient, - linux-mips64le: https://dl.defined.net/02c6d0f9/v0.1.9/linux/mips64le/dnclient, - linux-mipsle: https://dl.defined.net/02c6d0f9/v0.1.9/linux/mipsle/dnclient, - linux-ppc64le: https://dl.defined.net/02c6d0f9/v0.1.9/linux/ppc64le/dnclient, - linux-riscv64: https://dl.defined.net/02c6d0f9/v0.1.9/linux/riscv64/dnclient, - macos-universal: https://dl.defined.net/02c6d0f9/v0.1.9/macos/dnclient, - macos-universal-dmg: https://dl.defined.net/02c6d0f9/v0.1.9/macos/dnclient.dmg, - windows-amd64: https://dl.defined.net/02c6d0f9/v0.1.9/windows/amd64/DNClient.msi, - windows-arm64: https://dl.defined.net/02c6d0f9/v0.1.9/windows/arm64/DNClient.msi - latest: - freebsd-amd64: https://dl.defined.net/02c6d0f9/v0.1.9/freebsd/amd64/dnclient, - freebsd-arm64: https://dl.defined.net/02c6d0f9/v0.1.9/freebsd/arm64/dnclient, - linux-386: https://dl.defined.net/02c6d0f9/v0.1.9/linux/386/dnclient, - linux-amd64: https://dl.defined.net/02c6d0f9/v0.1.9/linux/amd64/dnclient, - linux-arm64: https://dl.defined.net/02c6d0f9/v0.1.9/linux/arm64/dnclient, - linux-armv5: https://dl.defined.net/02c6d0f9/v0.1.9/linux/arm-5/dnclient, - linux-armv6: https://dl.defined.net/02c6d0f9/v0.1.9/linux/arm-6/dnclient, - linux-armv7: https://dl.defined.net/02c6d0f9/v0.1.9/linux/arm-7/dnclient, - linux-mips: https://dl.defined.net/02c6d0f9/v0.1.9/linux/mips/dnclient, - linux-mips-softfloat: https://dl.defined.net/02c6d0f9/v0.1.9/linux/mips-softfloat/dnclient, - linux-mips64: https://dl.defined.net/02c6d0f9/v0.1.9/linux/mips64/dnclient, - linux-mips64le: https://dl.defined.net/02c6d0f9/v0.1.9/linux/mips64le/dnclient, - linux-mipsle: https://dl.defined.net/02c6d0f9/v0.1.9/linux/mipsle/dnclient, - linux-ppc64le: https://dl.defined.net/02c6d0f9/v0.1.9/linux/ppc64le/dnclient, - linux-riscv64: https://dl.defined.net/02c6d0f9/v0.1.9/linux/riscv64/dnclient, - macos-universal: https://dl.defined.net/02c6d0f9/v0.1.9/macos/dnclient, - macos-universal-dmg: https://dl.defined.net/02c6d0f9/v0.1.9/macos/dnclient.dmg, - windows-amd64: https://dl.defined.net/02c6d0f9/v0.1.9/windows/amd64/DNClient.msi, - windows-arm64: https://dl.defined.net/02c6d0f9/v0.1.9/windows/arm64/DNClient.msi - mobile: - android: https://play.google.com/store/apps/details?id=net.defined.mobile_nebula - ios: https://apps.apple.com/us/app/mobile-nebula/id1509587936 - versionInfo: - dnclient: - 0.1.5: - latest: false - releaseDate: '2022-07-13' - 0.1.6: - latest: false - releaseDate: '2022-12-15' - 0.1.7: - latest: false - releaseDate: '2022-12-16' - 0.1.8: - latest: false - releaseDate: '2022-12-20' - 0.1.9: - latest: true - releaseDate: '2023-03-15' - latest: - dnclient: 0.1.9 - mobile: 0.2.0 -components: - securitySchemes: - ApiToken: - description: | - Get an api key from https://admin.defined.net/settings/api-keys with the permission scopes required. - type: http - scheme: bearer - bearerFormat: dnkey - parameters: - includeCounts: - name: includeCounts - in: query - description: If true, return count of total records and current page start and count in metadata - required: false - schema: - type: boolean - default: false - cursor: - name: cursor - in: query - description: Cursor value at which to start the results, provided in `nextCursor` or `prevCursor` of a prior request - example: bmV4dA.eyJsb2dzLmNyZQ5iIiwiX3ZhbHVlIjo9In19 - schema: - type: string - pageSize: - name: pageSize - in: query - description: Number of records to return in each page - required: false - schema: - type: integer - default: 25 - maximum: 500 - filter-isBlocked: - name: filter.isBlocked - in: query - description: Return only hosts that are blocked if true, unblocked if false - required: false - schema: - type: boolean - filter-isLighthouse: - name: filter.isLighthouse - in: query - description: Return only lighthouses if true, non-lighthouses if false - required: false - schema: - type: boolean - filter-isRelay: - name: filter.isRelay - in: query - description: Return only relays if true, non-relays if false - required: false - schema: - type: boolean - filter-metadata-lastSeenAt: - name: filter.metadata.lastSeenAt - in: query - description: When "null", returns hosts that have never communicated with the Defined Networking service. - required: false - schema: - type: string - enum: - - 'null' - filter-metadata-platform: - name: filter.metadata.platform - in: query - description: Return only hosts matching the specified client platform - required: false - schema: - type: string - enum: - - mobile - - dnclient - - 'null' - filter-metadata-updateAvailable: - name: filter.metadata.updateAvailable - in: query - description: Return only hosts that have updates available when true, or up-to-date hosts when false - required: false - schema: - type: boolean - filter-targetID: - name: filter.targetID - in: query - description: Return only audit logs for the specified target - required: false - schema: - type: string - filter-targetType: - name: filter.targetType - in: query - description: Return only audit logs matching the specified target type - required: false - schema: - type: string - enum: - - apiKey - - host - - network - - role - - user - - ca - - oidcProvider - schemas: - Host: - type: object - properties: - id: - type: string - organizationID: - type: string - networkID: - type: string - roleID: - type: string - nullable: true - name: - type: string - ipAddress: - type: string - format: ipv4 - staticAddresses: - type: array - items: - type: string - format: ipv4:port - listenPort: - type: integer - format: int64 - description: Will be zero if a regular host - isLighthouse: - type: boolean - default: false - isRelay: - type: boolean - default: false - createdAt: - type: string - format: date-time - isBlocked: - type: boolean - default: false - metadata: - type: object - properties: - lastSeenAt: - type: string - nullable: true - version: - type: string - nullable: true - platform: - type: string - nullable: true - enum: - - dnclient - - mobile - - null - updateAvailable: - type: boolean - nullable: true - PaginationMetadata: - type: object - properties: - totalCount: - type: integer - description: The total number of resources existing in the account - hasNextPage: - type: boolean - description: Is there a page of data that can be fetched using the `nextCursor`? - hasPrevPage: - type: boolean - description: Is there a page of data that can be fetched using the `prevCursor`? - nextCursor: - type: string - description: An opaque string that can be used to fetch the next page of results. Not provided if result set is empty. - prevCursor: - type: string - description: An opaque string that can be used to fetch the next page of results. Not provided if result set is empty. - page: - type: object - required: - - count - - start - properties: - count: - type: integer - description: The number of results returned in the response. - start: - type: integer - description: The zero-based index of the first result within the overall list. For example, the first page will have a `start` of `0`. If 25 results are fetched, and the `nextCursor` used to fetch a new page of results, the second request's `start` will be `25`. - Error: - type: object - required: - - code - - message - properties: - code: - type: string - description: A static name for the error type - message: - type: string - description: A short human readable description of the error - path: - type: string - nullable: true - description: Describes the variable missing or malformed - Errors: - type: array - items: - $ref: '#/components/schemas/Error' - FirewallRule: - type: object - required: - - protocol - properties: - protocol: - type: string - enum: - - ANY - - TCP - - UDP - - ICMP - description: - type: string - maxLength: 255 - allowedRoleID: - type: string - description: Role ID to allow with this firewall rule. If not specified, all roles are included. - portRange: - type: object - required: - - from - - to - description: Range of ports for this firewall rule. If not provided or set to null, all ports are allowed. - properties: - from: - type: integer - description: First port number included in range. - minimum: 1 - maximum: 65535 - to: - type: integer - description: Last port number included in range. Must be greater than `from` port. - minimum: 1 - maximum: 65535 - Role: - type: object - properties: - id: - type: string - name: - type: string - description: - type: string - firewallRules: - type: array - items: - $ref: '#/components/schemas/FirewallRule' - createdAt: - type: string - format: date-time - modifiedAt: - type: string - format: date-time - Network: - type: object - properties: - id: - type: string - cidr: - type: string - format: ipv4/cidr - organizationID: - type: string - signingCAID: - description: The ID of the Certificate Authority being used. - type: string - createdAt: - type: string - format: date-time - name: - type: string - default: Network1 - lighthousesAsRelays: - type: boolean - Actor-APIKey: - title: apiKey - type: object - properties: - type: - type: string - description: An API key which used to perform the action. - enum: - - apiKey - id: - type: string - name: - type: string - nullable: true - Actor-Host: - title: host - type: object - properties: - type: - type: string - description: A host. Used for example when hosts are enrolled. - enum: - - host - id: - type: string - name: - type: string - nullable: true - Actor-OIDCUser: - title: oidcUser - type: object - properties: - type: - type: string - description: A user who logged in using SSO. - enum: - - oidcUser - email: - type: string - format: email - issuer: - type: string - subject: - type: string - Actor-Support: - title: support - type: object - properties: - type: - type: string - description: A member of Defined Networking support staff. - enum: - - support - Actor-System: - title: system - type: object - properties: - type: - type: string - description: System actor, used for events such as creation or rotation of Certificate Authorities. - enum: - - system - Actor-User: - title: user - type: object - properties: - type: - type: string - description: A logged-in user. - enum: - - user - id: - type: string - email: - type: string - format: email - Actor: - description: The entity performing the action which caused a change. - oneOf: - - $ref: '#/components/schemas/Actor-APIKey' - - $ref: '#/components/schemas/Actor-Host' - - $ref: '#/components/schemas/Actor-OIDCUser' - - $ref: '#/components/schemas/Actor-Support' - - $ref: '#/components/schemas/Actor-System' - - $ref: '#/components/schemas/Actor-User' - Target: - type: object - description: The entity being acted upon. - properties: - id: - type: string - type: - type: string - enum: - - apiKey - - ca - - host - - network - - oidcProvider - - role - - user - Event: - type: object - description: Information about what happened, including relevant values before & after the change. - properties: - type: - type: string - description: The type of event that occurred. - enum: - - CREATED - - UPDATED - - DELETED - - DELETED_TOTP - - CREATED_TOTP - - SUCCEEDED_AUTH - - FAILED_AUTH - - ENROLLED - - RENEWED - - CREATED_ENROLL_CODE - - SET_NETWORK_CA - - BLOCKED_HOST - - UNBLOCKED_HOST - - SET_OVERRIDES - before: - description: The state of the target before the change was made. The shape depends on the target and event type. Can also be a string or null (e.g. target was created). - type: object - nullable: true - additionalProperties: {} - after: - description: The state of the target before the change was made. The shape depends on the target and event type. Can also be a string or null (e.g. target was deleted). - type: object - nullable: true - additionalProperties: {} - AuditLog: - type: object - properties: - id: - type: string - organizationID: - type: string - timestamp: - type: string - format: date-time - actor: - $ref: '#/components/schemas/Actor' - target: - $ref: '#/components/schemas/Target' - event: - $ref: '#/components/schemas/Event' - DownloadsDNClientLinks: - type: object - description: Download links for a given DNClient version - properties: - linux-amd64: - type: string - linux-arm64: - type: string - macos-universal: - type: string - macos-universal-dmg: - type: string - windows-amd64: - type: string - windows-arm64: - type: string - additionalProperties: - x-additionalPropertiesName: os-platform - type: string - Downloads: - type: object - properties: - dnclient: - type: object - properties: - latest: - description: Download links for the latest DNClient version - $ref: '#/components/schemas/DownloadsDNClientLinks' - additionalProperties: - $ref: '#/components/schemas/DownloadsDNClientLinks' - mobile: - type: object - properties: - android: - description: Mobile Nebula download URL for Android devices. - type: string - ios: - description: Mobile Nebula download URL for iOS devices. - type: string - versionInfo: - type: object - properties: - dnclient: - description: Information about available DNClient releases - type: object - additionalProperties: - description: Information about a given DNClient release - type: object - properties: - releaseDate: - type: string - latest: - type: boolean - latest: - description: The latest version for each software download. - type: object - properties: - dnclient: - description: The latest version of DNClient. - type: string - mobile: - description: The latest version of Mobile Nebula. - type: string diff --git a/tfweb/openapitools.json b/tfweb/openapitools.json deleted file mode 100644 index cd53ff4..0000000 --- a/tfweb/openapitools.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", - "spaces": 2, - "generator-cli": { - "version": "6.6.0" - } -} diff --git a/tfweb/package.json b/tfweb/package.json index 4cad20e..7bb9685 100644 --- a/tfweb/package.json +++ b/tfweb/package.json @@ -8,30 +8,41 @@ "preview": "vite preview", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", - "lint": "eslint ." + "lint": "prettier --check . && eslint .", + "format": "prettier --write ." }, "devDependencies": { - "@sveltejs/adapter-auto": "^2.0.0", - "@sveltejs/adapter-node": "^1.3.1", - "@sveltejs/kit": "^1.5.0", - "@typescript-eslint/eslint-plugin": "^5.45.0", - "@typescript-eslint/parser": "^5.45.0", + "@sveltejs/adapter-auto": "^3.0.0", + "@sveltejs/kit": "^2.0.0", + "@sveltejs/vite-plugin-svelte": "^3.0.0", + "@typescript-eslint/eslint-plugin": "^6.0.0", + "@typescript-eslint/parser": "^6.0.0", + "autoprefixer": "^10.4.16", "eslint": "^8.28.0", - "eslint-plugin-svelte": "^2.26.0", - "svelte": "^3.54.0", - "svelte-check": "^3.0.1", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-svelte": "^2.30.0", + "postcss": "^8.4.32", + "postcss-load-config": "^5.0.2", + "prettier": "^3.1.1", + "prettier-plugin-svelte": "^3.1.2", + "prettier-plugin-tailwindcss": "^0.5.9", + "svelte": "^4.2.7", + "svelte-check": "^3.6.0", + "tailwindcss": "^3.3.6", "tslib": "^2.4.1", "typescript": "^5.0.0", - "vite": "^4.3.0" + "vite": "^5.0.3" }, "type": "module", "dependencies": { - "@fortawesome/fontawesome-free": "^6.4.2", - "@popperjs/core": "^2.11.8", - "@types/qrcode": "^1.5.0", - "bootstrap": "^5.3.2", - "bootswatch": "^5.3.2", - "qrcode": "^1.5.3", - "sveltekit-i18n": "^2.4.2" + "bits-ui": "^0.11.8", + "clsx": "^2.0.0", + "formsnap": "^0.4.1", + "lucide-svelte": "^0.298.0", + "mode-watcher": "^0.1.2", + "sveltekit-superforms": "^1.12.0", + "tailwind-merge": "^2.1.0", + "tailwind-variants": "^0.1.19", + "zod": "^3.22.4" } -} +} \ No newline at end of file diff --git a/tfweb/pnpm-lock.yaml b/tfweb/pnpm-lock.yaml new file mode 100644 index 0000000..fa8bb8a --- /dev/null +++ b/tfweb/pnpm-lock.yaml @@ -0,0 +1,2468 @@ +lockfileVersion: '6.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +dependencies: + bits-ui: + specifier: ^0.11.8 + version: 0.11.8(svelte@4.2.8) + clsx: + specifier: ^2.0.0 + version: 2.0.0 + formsnap: + specifier: ^0.4.1 + version: 0.4.1(svelte@4.2.8)(sveltekit-superforms@1.12.0)(zod@3.22.4) + lucide-svelte: + specifier: ^0.298.0 + version: 0.298.0(svelte@4.2.8) + mode-watcher: + specifier: ^0.1.2 + version: 0.1.2(svelte@4.2.8) + sveltekit-superforms: + specifier: ^1.12.0 + version: 1.12.0(@sveltejs/kit@2.0.1)(svelte@4.2.8)(zod@3.22.4) + tailwind-merge: + specifier: ^2.1.0 + version: 2.1.0 + tailwind-variants: + specifier: ^0.1.19 + version: 0.1.19(tailwindcss@3.3.6) + zod: + specifier: ^3.22.4 + version: 3.22.4 + +devDependencies: + '@sveltejs/adapter-auto': + specifier: ^3.0.0 + version: 3.0.0(@sveltejs/kit@2.0.1) + '@sveltejs/kit': + specifier: ^2.0.0 + version: 2.0.1(@sveltejs/vite-plugin-svelte@3.0.1)(svelte@4.2.8)(vite@5.0.10) + '@sveltejs/vite-plugin-svelte': + specifier: ^3.0.0 + version: 3.0.1(svelte@4.2.8)(vite@5.0.10) + '@typescript-eslint/eslint-plugin': + specifier: ^6.0.0 + version: 6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/parser': + specifier: ^6.0.0 + version: 6.14.0(eslint@8.56.0)(typescript@5.3.3) + autoprefixer: + specifier: ^10.4.16 + version: 10.4.16(postcss@8.4.32) + eslint: + specifier: ^8.28.0 + version: 8.56.0 + eslint-config-prettier: + specifier: ^9.1.0 + version: 9.1.0(eslint@8.56.0) + eslint-plugin-svelte: + specifier: ^2.30.0 + version: 2.35.1(eslint@8.56.0)(svelte@4.2.8) + postcss: + specifier: ^8.4.32 + version: 8.4.32 + postcss-load-config: + specifier: ^5.0.2 + version: 5.0.2(postcss@8.4.32) + prettier: + specifier: ^3.1.1 + version: 3.1.1 + prettier-plugin-svelte: + specifier: ^3.1.2 + version: 3.1.2(prettier@3.1.1)(svelte@4.2.8) + prettier-plugin-tailwindcss: + specifier: ^0.5.9 + version: 0.5.9(prettier-plugin-svelte@3.1.2)(prettier@3.1.1) + svelte: + specifier: ^4.2.7 + version: 4.2.8 + svelte-check: + specifier: ^3.6.0 + version: 3.6.2(postcss-load-config@5.0.2)(postcss@8.4.32)(svelte@4.2.8) + tailwindcss: + specifier: ^3.3.6 + version: 3.3.6 + tslib: + specifier: ^2.4.1 + version: 2.6.2 + typescript: + specifier: ^5.0.0 + version: 5.3.3 + vite: + specifier: ^5.0.3 + version: 5.0.10 + +packages: + + /@aashutoshrathi/word-wrap@1.2.6: + resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==} + engines: {node: '>=0.10.0'} + dev: true + + /@alloc/quick-lru@5.2.0: + resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} + engines: {node: '>=10'} + + /@ampproject/remapping@2.2.1: + resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==} + engines: {node: '>=6.0.0'} + dependencies: + '@jridgewell/gen-mapping': 0.3.3 + '@jridgewell/trace-mapping': 0.3.20 + + /@babel/runtime@7.23.6: + resolution: {integrity: sha512-zHd0eUrf5GZoOWVCXp6koAKQTfZV07eit6bGPmJgnZdnSAvvZee6zniW2XMF7Cmc4ISOOnPy3QaSiIJGJkVEDQ==} + engines: {node: '>=6.9.0'} + dependencies: + regenerator-runtime: 0.14.1 + dev: false + + /@esbuild/android-arm64@0.19.9: + resolution: {integrity: sha512-q4cR+6ZD0938R19MyEW3jEsMzbb/1rulLXiNAJQADD/XYp7pT+rOS5JGxvpRW8dFDEfjW4wLgC/3FXIw4zYglQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + optional: true + + /@esbuild/android-arm@0.19.9: + resolution: {integrity: sha512-jkYjjq7SdsWuNI6b5quymW0oC83NN5FdRPuCbs9HZ02mfVdAP8B8eeqLSYU3gb6OJEaY5CQabtTFbqBf26H3GA==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true + optional: true + + /@esbuild/android-x64@0.19.9: + resolution: {integrity: sha512-KOqoPntWAH6ZxDwx1D6mRntIgZh9KodzgNOy5Ebt9ghzffOk9X2c1sPwtM9P+0eXbefnDhqYfkh5PLP5ULtWFA==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + optional: true + + /@esbuild/darwin-arm64@0.19.9: + resolution: {integrity: sha512-KBJ9S0AFyLVx2E5D8W0vExqRW01WqRtczUZ8NRu+Pi+87opZn5tL4Y0xT0mA4FtHctd0ZgwNoN639fUUGlNIWw==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + optional: true + + /@esbuild/darwin-x64@0.19.9: + resolution: {integrity: sha512-vE0VotmNTQaTdX0Q9dOHmMTao6ObjyPm58CHZr1UK7qpNleQyxlFlNCaHsHx6Uqv86VgPmR4o2wdNq3dP1qyDQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + optional: true + + /@esbuild/freebsd-arm64@0.19.9: + resolution: {integrity: sha512-uFQyd/o1IjiEk3rUHSwUKkqZwqdvuD8GevWF065eqgYfexcVkxh+IJgwTaGZVu59XczZGcN/YMh9uF1fWD8j1g==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + optional: true + + /@esbuild/freebsd-x64@0.19.9: + resolution: {integrity: sha512-WMLgWAtkdTbTu1AWacY7uoj/YtHthgqrqhf1OaEWnZb7PQgpt8eaA/F3LkV0E6K/Lc0cUr/uaVP/49iE4M4asA==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + optional: true + + /@esbuild/linux-arm64@0.19.9: + resolution: {integrity: sha512-PiPblfe1BjK7WDAKR1Cr9O7VVPqVNpwFcPWgfn4xu0eMemzRp442hXyzF/fSwgrufI66FpHOEJk0yYdPInsmyQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-arm@0.19.9: + resolution: {integrity: sha512-C/ChPohUYoyUaqn1h17m/6yt6OB14hbXvT8EgM1ZWaiiTYz7nWZR0SYmMnB5BzQA4GXl3BgBO1l8MYqL/He3qw==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-ia32@0.19.9: + resolution: {integrity: sha512-f37i/0zE0MjDxijkPSQw1CO/7C27Eojqb+r3BbHVxMLkj8GCa78TrBZzvPyA/FNLUMzP3eyHCVkAopkKVja+6Q==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-loong64@0.19.9: + resolution: {integrity: sha512-t6mN147pUIf3t6wUt3FeumoOTPfmv9Cc6DQlsVBpB7eCpLOqQDyWBP1ymXn1lDw4fNUSb/gBcKAmvTP49oIkaA==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-mips64el@0.19.9: + resolution: {integrity: sha512-jg9fujJTNTQBuDXdmAg1eeJUL4Jds7BklOTkkH80ZgQIoCTdQrDaHYgbFZyeTq8zbY+axgptncko3v9p5hLZtw==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-ppc64@0.19.9: + resolution: {integrity: sha512-tkV0xUX0pUUgY4ha7z5BbDS85uI7ABw3V1d0RNTii7E9lbmV8Z37Pup2tsLV46SQWzjOeyDi1Q7Wx2+QM8WaCQ==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-riscv64@0.19.9: + resolution: {integrity: sha512-DfLp8dj91cufgPZDXr9p3FoR++m3ZJ6uIXsXrIvJdOjXVREtXuQCjfMfvmc3LScAVmLjcfloyVtpn43D56JFHg==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-s390x@0.19.9: + resolution: {integrity: sha512-zHbglfEdC88KMgCWpOl/zc6dDYJvWGLiUtmPRsr1OgCViu3z5GncvNVdf+6/56O2Ca8jUU+t1BW261V6kp8qdw==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-x64@0.19.9: + resolution: {integrity: sha512-JUjpystGFFmNrEHQnIVG8hKwvA2DN5o7RqiO1CVX8EN/F/gkCjkUMgVn6hzScpwnJtl2mPR6I9XV1oW8k9O+0A==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/netbsd-x64@0.19.9: + resolution: {integrity: sha512-GThgZPAwOBOsheA2RUlW5UeroRfESwMq/guy8uEe3wJlAOjpOXuSevLRd70NZ37ZrpO6RHGHgEHvPg1h3S1Jug==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + optional: true + + /@esbuild/openbsd-x64@0.19.9: + resolution: {integrity: sha512-Ki6PlzppaFVbLnD8PtlVQfsYw4S9n3eQl87cqgeIw+O3sRr9IghpfSKY62mggdt1yCSZ8QWvTZ9jo9fjDSg9uw==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + optional: true + + /@esbuild/sunos-x64@0.19.9: + resolution: {integrity: sha512-MLHj7k9hWh4y1ddkBpvRj2b9NCBhfgBt3VpWbHQnXRedVun/hC7sIyTGDGTfsGuXo4ebik2+3ShjcPbhtFwWDw==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + optional: true + + /@esbuild/win32-arm64@0.19.9: + resolution: {integrity: sha512-GQoa6OrQ8G08guMFgeXPH7yE/8Dt0IfOGWJSfSH4uafwdC7rWwrfE6P9N8AtPGIjUzdo2+7bN8Xo3qC578olhg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + optional: true + + /@esbuild/win32-ia32@0.19.9: + resolution: {integrity: sha512-UOozV7Ntykvr5tSOlGCrqU3NBr3d8JqPes0QWN2WOXfvkWVGRajC+Ym0/Wj88fUgecUCLDdJPDF0Nna2UK3Qtg==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + optional: true + + /@esbuild/win32-x64@0.19.9: + resolution: {integrity: sha512-oxoQgglOP7RH6iasDrhY+R/3cHrfwIDvRlT4CGChflq6twk8iENeVvMJjmvBb94Ik1Z+93iGO27err7w6l54GQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + optional: true + + /@eslint-community/eslint-utils@4.4.0(eslint@8.56.0): + resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + dependencies: + eslint: 8.56.0 + eslint-visitor-keys: 3.4.3 + dev: true + + /@eslint-community/regexpp@4.10.0: + resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + dev: true + + /@eslint/eslintrc@2.1.4: + resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + ajv: 6.12.6 + debug: 4.3.4 + espree: 9.6.1 + globals: 13.24.0 + ignore: 5.3.0 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@eslint/js@8.56.0: + resolution: {integrity: sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + /@floating-ui/core@1.5.2: + resolution: {integrity: sha512-Ii3MrfY/GAIN3OhXNzpCKaLxHQfJF9qvwq/kEJYdqDxeIHa01K8sldugal6TmeeXl+WMvhv9cnVzUTaFFJF09A==} + dependencies: + '@floating-ui/utils': 0.1.6 + dev: false + + /@floating-ui/dom@1.5.3: + resolution: {integrity: sha512-ClAbQnEqJAKCJOEbbLo5IUlZHkNszqhuxS4fHAVxRPXPya6Ysf2G8KypnYcOTpx6I8xcgF9bbHb6g/2KpbV8qA==} + dependencies: + '@floating-ui/core': 1.5.2 + '@floating-ui/utils': 0.1.6 + dev: false + + /@floating-ui/utils@0.1.6: + resolution: {integrity: sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A==} + dev: false + + /@humanwhocodes/config-array@0.11.13: + resolution: {integrity: sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==} + engines: {node: '>=10.10.0'} + dependencies: + '@humanwhocodes/object-schema': 2.0.1 + debug: 4.3.4 + minimatch: 3.1.2 + transitivePeerDependencies: + - supports-color + dev: true + + /@humanwhocodes/module-importer@1.0.1: + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} + engines: {node: '>=12.22'} + dev: true + + /@humanwhocodes/object-schema@2.0.1: + resolution: {integrity: sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==} + dev: true + + /@internationalized/date@3.5.0: + resolution: {integrity: sha512-nw0Q+oRkizBWMioseI8+2TeUPEyopJVz5YxoYVzR0W1v+2YytiYah7s/ot35F149q/xAg4F1gT/6eTd+tsUpFQ==} + dependencies: + '@swc/helpers': 0.5.3 + dev: false + + /@jridgewell/gen-mapping@0.3.3: + resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} + engines: {node: '>=6.0.0'} + dependencies: + '@jridgewell/set-array': 1.1.2 + '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/trace-mapping': 0.3.20 + + /@jridgewell/resolve-uri@3.1.1: + resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==} + engines: {node: '>=6.0.0'} + + /@jridgewell/set-array@1.1.2: + resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} + engines: {node: '>=6.0.0'} + + /@jridgewell/sourcemap-codec@1.4.15: + resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} + + /@jridgewell/trace-mapping@0.3.20: + resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==} + dependencies: + '@jridgewell/resolve-uri': 3.1.1 + '@jridgewell/sourcemap-codec': 1.4.15 + + /@melt-ui/svelte@0.65.2(svelte@4.2.8): + resolution: {integrity: sha512-BpsSl9Bjp1++8U3+LaDOFUoX/PFQ9N7QWFhlFdUEZduhrbVyU70v9A459SKrQ+esFSjvh1AvqJYkMAUJXJlAmQ==} + peerDependencies: + svelte: '>=3 <5' + dependencies: + '@floating-ui/core': 1.5.2 + '@floating-ui/dom': 1.5.3 + '@internationalized/date': 3.5.0 + dequal: 2.0.3 + focus-trap: 7.5.4 + nanoid: 4.0.2 + svelte: 4.2.8 + dev: false + + /@nodelib/fs.scandir@2.1.5: + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + + /@nodelib/fs.stat@2.0.5: + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + + /@nodelib/fs.walk@1.2.8: + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.15.0 + + /@polka/url@1.0.0-next.24: + resolution: {integrity: sha512-2LuNTFBIO0m7kKIQvvPHN6UE63VjpmL9rnEEaOOaiSPbZK+zUOYIzBAWcED+3XYzhYsd/0mD57VdxAEqqV52CQ==} + + /@rollup/rollup-android-arm-eabi@4.9.0: + resolution: {integrity: sha512-+1ge/xmaJpm1KVBuIH38Z94zj9fBD+hp+/5WLaHgyY8XLq1ibxk/zj6dTXaqM2cAbYKq8jYlhHd6k05If1W5xA==} + cpu: [arm] + os: [android] + requiresBuild: true + optional: true + + /@rollup/rollup-android-arm64@4.9.0: + resolution: {integrity: sha512-im6hUEyQ7ZfoZdNvtwgEJvBWZYauC9KVKq1w58LG2Zfz6zMd8gRrbN+xCVoqA2hv/v6fm9lp5LFGJ3za8EQH3A==} + cpu: [arm64] + os: [android] + requiresBuild: true + optional: true + + /@rollup/rollup-darwin-arm64@4.9.0: + resolution: {integrity: sha512-u7aTMskN6Dmg1lCT0QJ+tINRt+ntUrvVkhbPfFz4bCwRZvjItx2nJtwJnJRlKMMaQCHRjrNqHRDYvE4mBm3DlQ==} + cpu: [arm64] + os: [darwin] + requiresBuild: true + optional: true + + /@rollup/rollup-darwin-x64@4.9.0: + resolution: {integrity: sha512-8FvEl3w2ExmpcOmX5RJD0yqXcVSOqAJJUJ29Lca29Ik+3zPS1yFimr2fr5JSZ4Z5gt8/d7WqycpgkX9nocijSw==} + cpu: [x64] + os: [darwin] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-arm-gnueabihf@4.9.0: + resolution: {integrity: sha512-lHoKYaRwd4gge+IpqJHCY+8Vc3hhdJfU6ukFnnrJasEBUvVlydP8PuwndbWfGkdgSvZhHfSEw6urrlBj0TSSfg==} + cpu: [arm] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-arm64-gnu@4.9.0: + resolution: {integrity: sha512-JbEPfhndYeWHfOSeh4DOFvNXrj7ls9S/2omijVsao+LBPTPayT1uKcK3dHW3MwDJ7KO11t9m2cVTqXnTKpeaiw==} + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-arm64-musl@4.9.0: + resolution: {integrity: sha512-ahqcSXLlcV2XUBM3/f/C6cRoh7NxYA/W7Yzuv4bDU1YscTFw7ay4LmD7l6OS8EMhTNvcrWGkEettL1Bhjf+B+w==} + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-riscv64-gnu@4.9.0: + resolution: {integrity: sha512-uwvOYNtLw8gVtrExKhdFsYHA/kotURUmZYlinH2VcQxNCQJeJXnkmWgw2hI9Xgzhgu7J9QvWiq9TtTVwWMDa+w==} + cpu: [riscv64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-x64-gnu@4.9.0: + resolution: {integrity: sha512-m6pkSwcZZD2LCFHZX/zW2aLIISyzWLU3hrLLzQKMI12+OLEzgruTovAxY5sCZJkipklaZqPy/2bEEBNjp+Y7xg==} + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-x64-musl@4.9.0: + resolution: {integrity: sha512-VFAC1RDRSbU3iOF98X42KaVicAfKf0m0OvIu8dbnqhTe26Kh6Ym9JrDulz7Hbk7/9zGc41JkV02g+p3BivOdAg==} + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-win32-arm64-msvc@4.9.0: + resolution: {integrity: sha512-9jPgMvTKXARz4inw6jezMLA2ihDBvgIU9Ml01hjdVpOcMKyxFBJrn83KVQINnbeqDv0+HdO1c09hgZ8N0s820Q==} + cpu: [arm64] + os: [win32] + requiresBuild: true + optional: true + + /@rollup/rollup-win32-ia32-msvc@4.9.0: + resolution: {integrity: sha512-WE4pT2kTXQN2bAv40Uog0AsV7/s9nT9HBWXAou8+++MBCnY51QS02KYtm6dQxxosKi1VIz/wZIrTQO5UP2EW+Q==} + cpu: [ia32] + os: [win32] + requiresBuild: true + optional: true + + /@rollup/rollup-win32-x64-msvc@4.9.0: + resolution: {integrity: sha512-aPP5Q5AqNGuT0tnuEkK/g4mnt3ZhheiXrDIiSVIHN9mcN21OyXDVbEMqmXPE7e2OplNLDkcvV+ZoGJa2ZImFgw==} + cpu: [x64] + os: [win32] + requiresBuild: true + optional: true + + /@sveltejs/adapter-auto@3.0.0(@sveltejs/kit@2.0.1): + resolution: {integrity: sha512-UNWSs/rOReBRfI/xFwSO2WYF1a7PT74SrWOHJmSNLY3Lq+zbH0uuvnlP+TmrTUBvOTkou3WJDjL6lK3n6aOUgQ==} + peerDependencies: + '@sveltejs/kit': ^2.0.0 + dependencies: + '@sveltejs/kit': 2.0.1(@sveltejs/vite-plugin-svelte@3.0.1)(svelte@4.2.8)(vite@5.0.10) + import-meta-resolve: 4.0.0 + dev: true + + /@sveltejs/kit@2.0.1(@sveltejs/vite-plugin-svelte@3.0.1)(svelte@4.2.8)(vite@5.0.10): + resolution: {integrity: sha512-Pu/YJ5pPy8UgC1LlrlGpL7UK25CKganlLqqO7oYdFGt7eSa+Y2ouJomwiGHatV3uHvVOPGEkcb4O4QtyZQDuGw==} + engines: {node: '>=18.13'} + hasBin: true + requiresBuild: true + peerDependencies: + '@sveltejs/vite-plugin-svelte': ^3.0.0 + svelte: ^4.0.0 || ^5.0.0-next.0 + vite: ^5.0.3 + dependencies: + '@sveltejs/vite-plugin-svelte': 3.0.1(svelte@4.2.8)(vite@5.0.10) + '@types/cookie': 0.6.0 + cookie: 0.6.0 + devalue: 4.3.2 + esm-env: 1.0.0 + kleur: 4.1.5 + magic-string: 0.30.5 + mrmime: 1.0.1 + sade: 1.8.1 + set-cookie-parser: 2.6.0 + sirv: 2.0.3 + svelte: 4.2.8 + tiny-glob: 0.2.9 + vite: 5.0.10 + + /@sveltejs/vite-plugin-svelte-inspector@2.0.0(@sveltejs/vite-plugin-svelte@3.0.1)(svelte@4.2.8)(vite@5.0.10): + resolution: {integrity: sha512-gjr9ZFg1BSlIpfZ4PRewigrvYmHWbDrq2uvvPB1AmTWKuM+dI1JXQSUu2pIrYLb/QncyiIGkFDFKTwJ0XqQZZg==} + engines: {node: ^18.0.0 || >=20} + peerDependencies: + '@sveltejs/vite-plugin-svelte': ^3.0.0 + svelte: ^4.0.0 || ^5.0.0-next.0 + vite: ^5.0.0 + dependencies: + '@sveltejs/vite-plugin-svelte': 3.0.1(svelte@4.2.8)(vite@5.0.10) + debug: 4.3.4 + svelte: 4.2.8 + vite: 5.0.10 + transitivePeerDependencies: + - supports-color + + /@sveltejs/vite-plugin-svelte@3.0.1(svelte@4.2.8)(vite@5.0.10): + resolution: {integrity: sha512-CGURX6Ps+TkOovK6xV+Y2rn8JKa8ZPUHPZ/NKgCxAmgBrXReavzFl8aOSCj3kQ1xqT7yGJj53hjcV/gqwDAaWA==} + engines: {node: ^18.0.0 || >=20} + peerDependencies: + svelte: ^4.0.0 || ^5.0.0-next.0 + vite: ^5.0.0 + dependencies: + '@sveltejs/vite-plugin-svelte-inspector': 2.0.0(@sveltejs/vite-plugin-svelte@3.0.1)(svelte@4.2.8)(vite@5.0.10) + debug: 4.3.4 + deepmerge: 4.3.1 + kleur: 4.1.5 + magic-string: 0.30.5 + svelte: 4.2.8 + svelte-hmr: 0.15.3(svelte@4.2.8) + vite: 5.0.10 + vitefu: 0.2.5(vite@5.0.10) + transitivePeerDependencies: + - supports-color + + /@swc/helpers@0.5.3: + resolution: {integrity: sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==} + dependencies: + tslib: 2.6.2 + dev: false + + /@types/cookie@0.6.0: + resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==} + + /@types/estree@1.0.5: + resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} + + /@types/json-schema@7.0.15: + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + dev: true + + /@types/pug@2.0.10: + resolution: {integrity: sha512-Sk/uYFOBAB7mb74XcpizmH0KOR2Pv3D2Hmrh1Dmy5BmK3MpdSa5kqZcg6EKBdklU0bFXX9gCfzvpnyUehrPIuA==} + dev: true + + /@types/semver@7.5.6: + resolution: {integrity: sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==} + dev: true + + /@typescript-eslint/eslint-plugin@6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.56.0)(typescript@5.3.3): + resolution: {integrity: sha512-1ZJBykBCXaSHG94vMMKmiHoL0MhNHKSVlcHVYZNw+BKxufhqQVTOawNpwwI1P5nIFZ/4jLVop0mcY6mJJDFNaw==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@eslint-community/regexpp': 4.10.0 + '@typescript-eslint/parser': 6.14.0(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/scope-manager': 6.14.0 + '@typescript-eslint/type-utils': 6.14.0(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/utils': 6.14.0(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/visitor-keys': 6.14.0 + debug: 4.3.4 + eslint: 8.56.0 + graphemer: 1.4.0 + ignore: 5.3.0 + natural-compare: 1.4.0 + semver: 7.5.4 + ts-api-utils: 1.0.3(typescript@5.3.3) + typescript: 5.3.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/parser@6.14.0(eslint@8.56.0)(typescript@5.3.3): + resolution: {integrity: sha512-QjToC14CKacd4Pa7JK4GeB/vHmWFJckec49FR4hmIRf97+KXole0T97xxu9IFiPxVQ1DBWrQ5wreLwAGwWAVQA==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/scope-manager': 6.14.0 + '@typescript-eslint/types': 6.14.0 + '@typescript-eslint/typescript-estree': 6.14.0(typescript@5.3.3) + '@typescript-eslint/visitor-keys': 6.14.0 + debug: 4.3.4 + eslint: 8.56.0 + typescript: 5.3.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/scope-manager@6.14.0: + resolution: {integrity: sha512-VT7CFWHbZipPncAZtuALr9y3EuzY1b1t1AEkIq2bTXUPKw+pHoXflGNG5L+Gv6nKul1cz1VH8fz16IThIU0tdg==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.14.0 + '@typescript-eslint/visitor-keys': 6.14.0 + dev: true + + /@typescript-eslint/type-utils@6.14.0(eslint@8.56.0)(typescript@5.3.3): + resolution: {integrity: sha512-x6OC9Q7HfYKqjnuNu5a7kffIYs3No30isapRBJl1iCHLitD8O0lFbRcVGiOcuyN837fqXzPZ1NS10maQzZMKqw==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/typescript-estree': 6.14.0(typescript@5.3.3) + '@typescript-eslint/utils': 6.14.0(eslint@8.56.0)(typescript@5.3.3) + debug: 4.3.4 + eslint: 8.56.0 + ts-api-utils: 1.0.3(typescript@5.3.3) + typescript: 5.3.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/types@6.14.0: + resolution: {integrity: sha512-uty9H2K4Xs8E47z3SnXEPRNDfsis8JO27amp2GNCnzGETEW3yTqEIVg5+AI7U276oGF/tw6ZA+UesxeQ104ceA==} + engines: {node: ^16.0.0 || >=18.0.0} + dev: true + + /@typescript-eslint/typescript-estree@6.14.0(typescript@5.3.3): + resolution: {integrity: sha512-yPkaLwK0yH2mZKFE/bXkPAkkFgOv15GJAUzgUVonAbv0Hr4PK/N2yaA/4XQbTZQdygiDkpt5DkxPELqHguNvyw==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 6.14.0 + '@typescript-eslint/visitor-keys': 6.14.0 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.5.4 + ts-api-utils: 1.0.3(typescript@5.3.3) + typescript: 5.3.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/utils@6.14.0(eslint@8.56.0)(typescript@5.3.3): + resolution: {integrity: sha512-XwRTnbvRr7Ey9a1NT6jqdKX8y/atWG+8fAIu3z73HSP8h06i3r/ClMhmaF/RGWGW1tHJEwij1uEg2GbEmPYvYg==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) + '@types/json-schema': 7.0.15 + '@types/semver': 7.5.6 + '@typescript-eslint/scope-manager': 6.14.0 + '@typescript-eslint/types': 6.14.0 + '@typescript-eslint/typescript-estree': 6.14.0(typescript@5.3.3) + eslint: 8.56.0 + semver: 7.5.4 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + + /@typescript-eslint/visitor-keys@6.14.0: + resolution: {integrity: sha512-fB5cw6GRhJUz03MrROVuj5Zm/Q+XWlVdIsFj+Zb1Hvqouc8t+XP2H5y53QYU/MGtd2dPg6/vJJlhoX3xc2ehfw==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.14.0 + eslint-visitor-keys: 3.4.3 + dev: true + + /@ungap/structured-clone@1.2.0: + resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} + dev: true + + /acorn-jsx@5.3.2(acorn@8.11.2): + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + acorn: 8.11.2 + dev: true + + /acorn@8.11.2: + resolution: {integrity: sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==} + engines: {node: '>=0.4.0'} + hasBin: true + + /ajv@6.12.6: + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + dev: true + + /ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + dev: true + + /ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + dependencies: + color-convert: 2.0.1 + dev: true + + /any-promise@1.3.0: + resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} + + /anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + + /arg@5.0.2: + resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==} + + /argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + dev: true + + /aria-query@5.3.0: + resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==} + dependencies: + dequal: 2.0.3 + + /array-union@2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} + engines: {node: '>=8'} + dev: true + + /autoprefixer@10.4.16(postcss@8.4.32): + resolution: {integrity: sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==} + engines: {node: ^10 || ^12 || >=14} + hasBin: true + peerDependencies: + postcss: ^8.1.0 + dependencies: + browserslist: 4.22.2 + caniuse-lite: 1.0.30001570 + fraction.js: 4.3.7 + normalize-range: 0.1.2 + picocolors: 1.0.0 + postcss: 8.4.32 + postcss-value-parser: 4.2.0 + dev: true + + /axobject-query@3.2.1: + resolution: {integrity: sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==} + dependencies: + dequal: 2.0.3 + + /balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + /binary-extensions@2.2.0: + resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} + engines: {node: '>=8'} + + /bits-ui@0.11.8(svelte@4.2.8): + resolution: {integrity: sha512-T3YaT88OJguBoUU/MSncf41fiIc+5/ka8Au2LUDo0nSECex+LFY40+hKWLJc5tRT56avkyHsI7x9daA2r9eS/g==} + peerDependencies: + svelte: ^4.0.0 + dependencies: + '@internationalized/date': 3.5.0 + '@melt-ui/svelte': 0.65.2(svelte@4.2.8) + nanoid: 5.0.4 + svelte: 4.2.8 + dev: false + + /brace-expansion@1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + + /braces@3.0.2: + resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} + engines: {node: '>=8'} + dependencies: + fill-range: 7.0.1 + + /browserslist@4.22.2: + resolution: {integrity: sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + dependencies: + caniuse-lite: 1.0.30001570 + electron-to-chromium: 1.4.614 + node-releases: 2.0.14 + update-browserslist-db: 1.0.13(browserslist@4.22.2) + dev: true + + /buffer-crc32@0.2.13: + resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} + dev: true + + /callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + dev: true + + /camelcase-css@2.0.1: + resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==} + engines: {node: '>= 6'} + + /caniuse-lite@1.0.30001570: + resolution: {integrity: sha512-+3e0ASu4sw1SWaoCtvPeyXp+5PsjigkSt8OXZbF9StH5pQWbxEjLAZE3n8Aup5udop1uRiKA7a4utUk/uoSpUw==} + dev: true + + /chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + dev: true + + /chokidar@3.5.3: + resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} + engines: {node: '>= 8.10.0'} + dependencies: + anymatch: 3.1.3 + braces: 3.0.2 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + + /clsx@2.0.0: + resolution: {integrity: sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==} + engines: {node: '>=6'} + dev: false + + /code-red@1.0.4: + resolution: {integrity: sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==} + dependencies: + '@jridgewell/sourcemap-codec': 1.4.15 + '@types/estree': 1.0.5 + acorn: 8.11.2 + estree-walker: 3.0.3 + periscopic: 3.1.0 + + /color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + dependencies: + color-name: 1.1.4 + dev: true + + /color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + dev: true + + /commander@4.1.1: + resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} + engines: {node: '>= 6'} + + /concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + + /cookie@0.6.0: + resolution: {integrity: sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==} + engines: {node: '>= 0.6'} + + /cross-spawn@7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + engines: {node: '>= 8'} + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + dev: true + + /css-tree@2.3.1: + resolution: {integrity: sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==} + engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0} + dependencies: + mdn-data: 2.0.30 + source-map-js: 1.0.2 + + /cssesc@3.0.0: + resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} + engines: {node: '>=4'} + hasBin: true + + /debug@4.3.4: + resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.2 + + /deep-is@0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + dev: true + + /deepmerge@4.3.1: + resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} + engines: {node: '>=0.10.0'} + + /dequal@2.0.3: + resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} + engines: {node: '>=6'} + + /detect-indent@6.1.0: + resolution: {integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==} + engines: {node: '>=8'} + dev: true + + /devalue@4.3.2: + resolution: {integrity: sha512-KqFl6pOgOW+Y6wJgu80rHpo2/3H07vr8ntR9rkkFIRETewbf5GaYYcakYfiKz89K+sLsuPkQIZaXDMjUObZwWg==} + + /didyoumean@1.2.2: + resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} + + /dir-glob@3.0.1: + resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} + engines: {node: '>=8'} + dependencies: + path-type: 4.0.0 + dev: true + + /dlv@1.1.3: + resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==} + + /doctrine@3.0.0: + resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} + engines: {node: '>=6.0.0'} + dependencies: + esutils: 2.0.3 + dev: true + + /electron-to-chromium@1.4.614: + resolution: {integrity: sha512-X4ze/9Sc3QWs6h92yerwqv7aB/uU8vCjZcrMjA8N9R1pjMFRe44dLsck5FzLilOYvcXuDn93B+bpGYyufc70gQ==} + dev: true + + /es6-promise@3.3.1: + resolution: {integrity: sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==} + dev: true + + /esbuild@0.19.9: + resolution: {integrity: sha512-U9CHtKSy+EpPsEBa+/A2gMs/h3ylBC0H0KSqIg7tpztHerLi6nrrcoUJAkNCEPumx8yJ+Byic4BVwHgRbN0TBg==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/android-arm': 0.19.9 + '@esbuild/android-arm64': 0.19.9 + '@esbuild/android-x64': 0.19.9 + '@esbuild/darwin-arm64': 0.19.9 + '@esbuild/darwin-x64': 0.19.9 + '@esbuild/freebsd-arm64': 0.19.9 + '@esbuild/freebsd-x64': 0.19.9 + '@esbuild/linux-arm': 0.19.9 + '@esbuild/linux-arm64': 0.19.9 + '@esbuild/linux-ia32': 0.19.9 + '@esbuild/linux-loong64': 0.19.9 + '@esbuild/linux-mips64el': 0.19.9 + '@esbuild/linux-ppc64': 0.19.9 + '@esbuild/linux-riscv64': 0.19.9 + '@esbuild/linux-s390x': 0.19.9 + '@esbuild/linux-x64': 0.19.9 + '@esbuild/netbsd-x64': 0.19.9 + '@esbuild/openbsd-x64': 0.19.9 + '@esbuild/sunos-x64': 0.19.9 + '@esbuild/win32-arm64': 0.19.9 + '@esbuild/win32-ia32': 0.19.9 + '@esbuild/win32-x64': 0.19.9 + + /escalade@3.1.1: + resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} + engines: {node: '>=6'} + dev: true + + /escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + dev: true + + /eslint-compat-utils@0.1.2(eslint@8.56.0): + resolution: {integrity: sha512-Jia4JDldWnFNIru1Ehx1H5s9/yxiRHY/TimCuUc0jNexew3cF1gI6CYZil1ociakfWO3rRqFjl1mskBblB3RYg==} + engines: {node: '>=12'} + peerDependencies: + eslint: '>=6.0.0' + dependencies: + eslint: 8.56.0 + dev: true + + /eslint-config-prettier@9.1.0(eslint@8.56.0): + resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} + hasBin: true + peerDependencies: + eslint: '>=7.0.0' + dependencies: + eslint: 8.56.0 + dev: true + + /eslint-plugin-svelte@2.35.1(eslint@8.56.0)(svelte@4.2.8): + resolution: {integrity: sha512-IF8TpLnROSGy98Z3NrsKXWDSCbNY2ReHDcrYTuXZMbfX7VmESISR78TWgO9zdg4Dht1X8coub5jKwHzP0ExRug==} + engines: {node: ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0-0 + svelte: ^3.37.0 || ^4.0.0 + peerDependenciesMeta: + svelte: + optional: true + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) + '@jridgewell/sourcemap-codec': 1.4.15 + debug: 4.3.4 + eslint: 8.56.0 + eslint-compat-utils: 0.1.2(eslint@8.56.0) + esutils: 2.0.3 + known-css-properties: 0.29.0 + postcss: 8.4.32 + postcss-load-config: 3.1.4(postcss@8.4.32) + postcss-safe-parser: 6.0.0(postcss@8.4.32) + postcss-selector-parser: 6.0.13 + semver: 7.5.4 + svelte: 4.2.8 + svelte-eslint-parser: 0.33.1(svelte@4.2.8) + transitivePeerDependencies: + - supports-color + - ts-node + dev: true + + /eslint-scope@7.2.2: + resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + esrecurse: 4.3.0 + estraverse: 5.3.0 + dev: true + + /eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + /eslint@8.56.0: + resolution: {integrity: sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + hasBin: true + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) + '@eslint-community/regexpp': 4.10.0 + '@eslint/eslintrc': 2.1.4 + '@eslint/js': 8.56.0 + '@humanwhocodes/config-array': 0.11.13 + '@humanwhocodes/module-importer': 1.0.1 + '@nodelib/fs.walk': 1.2.8 + '@ungap/structured-clone': 1.2.0 + ajv: 6.12.6 + chalk: 4.1.2 + cross-spawn: 7.0.3 + debug: 4.3.4 + doctrine: 3.0.0 + escape-string-regexp: 4.0.0 + eslint-scope: 7.2.2 + eslint-visitor-keys: 3.4.3 + espree: 9.6.1 + esquery: 1.5.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 6.0.1 + find-up: 5.0.0 + glob-parent: 6.0.2 + globals: 13.24.0 + graphemer: 1.4.0 + ignore: 5.3.0 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + is-path-inside: 3.0.3 + js-yaml: 4.1.0 + json-stable-stringify-without-jsonify: 1.0.1 + levn: 0.4.1 + lodash.merge: 4.6.2 + minimatch: 3.1.2 + natural-compare: 1.4.0 + optionator: 0.9.3 + strip-ansi: 6.0.1 + text-table: 0.2.0 + transitivePeerDependencies: + - supports-color + dev: true + + /esm-env@1.0.0: + resolution: {integrity: sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA==} + + /espree@9.6.1: + resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + acorn: 8.11.2 + acorn-jsx: 5.3.2(acorn@8.11.2) + eslint-visitor-keys: 3.4.3 + dev: true + + /esquery@1.5.0: + resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==} + engines: {node: '>=0.10'} + dependencies: + estraverse: 5.3.0 + dev: true + + /esrecurse@4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} + dependencies: + estraverse: 5.3.0 + dev: true + + /estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + dev: true + + /estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + dependencies: + '@types/estree': 1.0.5 + + /esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + dev: true + + /fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + dev: true + + /fast-glob@3.3.2: + resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} + engines: {node: '>=8.6.0'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.5 + + /fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + dev: true + + /fast-levenshtein@2.0.6: + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + dev: true + + /fastq@1.15.0: + resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==} + dependencies: + reusify: 1.0.4 + + /file-entry-cache@6.0.1: + resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} + engines: {node: ^10.12.0 || >=12.0.0} + dependencies: + flat-cache: 3.2.0 + dev: true + + /fill-range@7.0.1: + resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} + engines: {node: '>=8'} + dependencies: + to-regex-range: 5.0.1 + + /find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + dev: true + + /flat-cache@3.2.0: + resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} + engines: {node: ^10.12.0 || >=12.0.0} + dependencies: + flatted: 3.2.9 + keyv: 4.5.4 + rimraf: 3.0.2 + dev: true + + /flatted@3.2.9: + resolution: {integrity: sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==} + dev: true + + /focus-trap@7.5.4: + resolution: {integrity: sha512-N7kHdlgsO/v+iD/dMoJKtsSqs5Dz/dXZVebRgJw23LDk+jMi/974zyiOYDziY2JPp8xivq9BmUGwIJMiuSBi7w==} + dependencies: + tabbable: 6.2.0 + dev: false + + /formsnap@0.4.1(svelte@4.2.8)(sveltekit-superforms@1.12.0)(zod@3.22.4): + resolution: {integrity: sha512-hUOaDKb+KoBi4PamJRnxRqIQW3msp2BKPqohoqjHUuBb+vgBrhoaz0WYEFkXG4bzVQS3JngG55m/zX5ciZTyeA==} + peerDependencies: + svelte: ^4.0.0 + sveltekit-superforms: ^1.7.1 + zod: ^3.22.2 + dependencies: + svelte: 4.2.8 + sveltekit-superforms: 1.12.0(@sveltejs/kit@2.0.1)(svelte@4.2.8)(zod@3.22.4) + zod: 3.22.4 + dev: false + + /fraction.js@4.3.7: + resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==} + dev: true + + /fs.realpath@1.0.0: + resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} + + /fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + requiresBuild: true + optional: true + + /function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + /glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + dependencies: + is-glob: 4.0.3 + + /glob-parent@6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} + engines: {node: '>=10.13.0'} + dependencies: + is-glob: 4.0.3 + + /glob@7.1.6: + resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==} + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + + /glob@7.2.3: + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + dev: true + + /globals@13.24.0: + resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} + engines: {node: '>=8'} + dependencies: + type-fest: 0.20.2 + dev: true + + /globalyzer@0.1.0: + resolution: {integrity: sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==} + + /globby@11.1.0: + resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} + engines: {node: '>=10'} + dependencies: + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.3.2 + ignore: 5.3.0 + merge2: 1.4.1 + slash: 3.0.0 + dev: true + + /globrex@0.1.2: + resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==} + + /graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + dev: true + + /graphemer@1.4.0: + resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + dev: true + + /has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + dev: true + + /hasown@2.0.0: + resolution: {integrity: sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==} + engines: {node: '>= 0.4'} + dependencies: + function-bind: 1.1.2 + + /ignore@5.3.0: + resolution: {integrity: sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==} + engines: {node: '>= 4'} + dev: true + + /import-fresh@3.3.0: + resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} + engines: {node: '>=6'} + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + dev: true + + /import-meta-resolve@4.0.0: + resolution: {integrity: sha512-okYUR7ZQPH+efeuMJGlq4f8ubUgO50kByRPyt/Cy1Io4PSRsPjxME+YlVaCOx+NIToW7hCsZNFJyTPFFKepRSA==} + dev: true + + /imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} + dev: true + + /inflight@1.0.6: + resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + + /inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + /is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + dependencies: + binary-extensions: 2.2.0 + + /is-core-module@2.13.1: + resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} + dependencies: + hasown: 2.0.0 + + /is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + /is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + dependencies: + is-extglob: 2.1.1 + + /is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + /is-path-inside@3.0.3: + resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} + engines: {node: '>=8'} + dev: true + + /is-reference@3.0.2: + resolution: {integrity: sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==} + dependencies: + '@types/estree': 1.0.5 + + /isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + dev: true + + /jiti@1.21.0: + resolution: {integrity: sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==} + hasBin: true + + /js-yaml@4.1.0: + resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} + hasBin: true + dependencies: + argparse: 2.0.1 + dev: true + + /json-buffer@3.0.1: + resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} + dev: true + + /json-schema-traverse@0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + dev: true + + /json-stable-stringify-without-jsonify@1.0.1: + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} + dev: true + + /keyv@4.5.4: + resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + dependencies: + json-buffer: 3.0.1 + dev: true + + /kleur@4.1.5: + resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} + engines: {node: '>=6'} + + /known-css-properties@0.29.0: + resolution: {integrity: sha512-Ne7wqW7/9Cz54PDt4I3tcV+hAyat8ypyOGzYRJQfdxnnjeWsTxt1cy8pjvvKeI5kfXuyvULyeeAvwvvtAX3ayQ==} + dev: true + + /levn@0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + dev: true + + /lilconfig@2.1.0: + resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} + engines: {node: '>=10'} + + /lilconfig@3.0.0: + resolution: {integrity: sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g==} + engines: {node: '>=14'} + + /lines-and-columns@1.2.4: + resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + + /locate-character@3.0.0: + resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==} + + /locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + dependencies: + p-locate: 5.0.0 + dev: true + + /lodash.merge@4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + dev: true + + /lru-cache@6.0.0: + resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} + engines: {node: '>=10'} + dependencies: + yallist: 4.0.0 + dev: true + + /lucide-svelte@0.298.0(svelte@4.2.8): + resolution: {integrity: sha512-7xYNSMY1z1QMjLe8GWToFtFh0lvTsrxdgEAXMite/Urn9tPD16Xk3597ibpgt9Ff7IBb/ArMc3y3ZKofZhs8fQ==} + peerDependencies: + svelte: '>=3 <5' + dependencies: + svelte: 4.2.8 + dev: false + + /magic-string@0.27.0: + resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==} + engines: {node: '>=12'} + dependencies: + '@jridgewell/sourcemap-codec': 1.4.15 + dev: true + + /magic-string@0.30.5: + resolution: {integrity: sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==} + engines: {node: '>=12'} + dependencies: + '@jridgewell/sourcemap-codec': 1.4.15 + + /mdn-data@2.0.30: + resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==} + + /merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + + /micromatch@4.0.5: + resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} + engines: {node: '>=8.6'} + dependencies: + braces: 3.0.2 + picomatch: 2.3.1 + + /min-indent@1.0.1: + resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} + engines: {node: '>=4'} + dev: true + + /minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + dependencies: + brace-expansion: 1.1.11 + + /minimist@1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + dev: true + + /mkdirp@0.5.6: + resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} + hasBin: true + dependencies: + minimist: 1.2.8 + dev: true + + /mode-watcher@0.1.2(svelte@4.2.8): + resolution: {integrity: sha512-XTdPCdqC3kqSvB+Q262Kor983YJkkB2Z3vj9uqg5IqKQpOdiz+xB99Jihp8sWbyM67drC7KKp0Nt5FzCypZi2g==} + peerDependencies: + svelte: ^4.0.0 + dependencies: + svelte: 4.2.8 + dev: false + + /mri@1.2.0: + resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} + engines: {node: '>=4'} + + /mrmime@1.0.1: + resolution: {integrity: sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==} + engines: {node: '>=10'} + + /ms@2.1.2: + resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + + /mz@2.7.0: + resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} + dependencies: + any-promise: 1.3.0 + object-assign: 4.1.1 + thenify-all: 1.6.0 + + /nanoid@3.3.7: + resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + /nanoid@4.0.2: + resolution: {integrity: sha512-7ZtY5KTCNheRGfEFxnedV5zFiORN1+Y1N6zvPTnHQd8ENUvfaDBeuJDZb2bN/oXwXxu3qkTXDzy57W5vAmDTBw==} + engines: {node: ^14 || ^16 || >=18} + hasBin: true + dev: false + + /nanoid@5.0.4: + resolution: {integrity: sha512-vAjmBf13gsmhXSgBrtIclinISzFFy22WwCYoyilZlsrRXNIHSwgFQ1bEdjRwMT3aoadeIF6HMuDRlOxzfXV8ig==} + engines: {node: ^18 || >=20} + hasBin: true + dev: false + + /natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + dev: true + + /node-releases@2.0.14: + resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==} + dev: true + + /normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + + /normalize-range@0.1.2: + resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==} + engines: {node: '>=0.10.0'} + dev: true + + /object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} + + /object-hash@3.0.0: + resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==} + engines: {node: '>= 6'} + + /once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + dependencies: + wrappy: 1.0.2 + + /optionator@0.9.3: + resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==} + engines: {node: '>= 0.8.0'} + dependencies: + '@aashutoshrathi/word-wrap': 1.2.6 + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + dev: true + + /p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + dependencies: + yocto-queue: 0.1.0 + dev: true + + /p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + dependencies: + p-limit: 3.1.0 + dev: true + + /parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + dependencies: + callsites: 3.1.0 + dev: true + + /path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + dev: true + + /path-is-absolute@1.0.1: + resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} + engines: {node: '>=0.10.0'} + + /path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + dev: true + + /path-parse@1.0.7: + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + + /path-type@4.0.0: + resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} + engines: {node: '>=8'} + dev: true + + /periscopic@3.1.0: + resolution: {integrity: sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==} + dependencies: + '@types/estree': 1.0.5 + estree-walker: 3.0.3 + is-reference: 3.0.2 + + /picocolors@1.0.0: + resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} + + /picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + + /pify@2.3.0: + resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==} + engines: {node: '>=0.10.0'} + + /pirates@4.0.6: + resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} + engines: {node: '>= 6'} + + /postcss-import@15.1.0(postcss@8.4.32): + resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==} + engines: {node: '>=14.0.0'} + peerDependencies: + postcss: ^8.0.0 + dependencies: + postcss: 8.4.32 + postcss-value-parser: 4.2.0 + read-cache: 1.0.0 + resolve: 1.22.8 + + /postcss-js@4.0.1(postcss@8.4.32): + resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==} + engines: {node: ^12 || ^14 || >= 16} + peerDependencies: + postcss: ^8.4.21 + dependencies: + camelcase-css: 2.0.1 + postcss: 8.4.32 + + /postcss-load-config@3.1.4(postcss@8.4.32): + resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==} + engines: {node: '>= 10'} + peerDependencies: + postcss: '>=8.0.9' + ts-node: '>=9.0.0' + peerDependenciesMeta: + postcss: + optional: true + ts-node: + optional: true + dependencies: + lilconfig: 2.1.0 + postcss: 8.4.32 + yaml: 1.10.2 + dev: true + + /postcss-load-config@4.0.2(postcss@8.4.32): + resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==} + engines: {node: '>= 14'} + peerDependencies: + postcss: '>=8.0.9' + ts-node: '>=9.0.0' + peerDependenciesMeta: + postcss: + optional: true + ts-node: + optional: true + dependencies: + lilconfig: 3.0.0 + postcss: 8.4.32 + yaml: 2.3.4 + + /postcss-load-config@5.0.2(postcss@8.4.32): + resolution: {integrity: sha512-Q8QR3FYbqOKa0bnC1UQ2bFq9/ulHX5Bi34muzitMr8aDtUelO5xKeJEYC/5smE0jNE9zdB/NBnOwXKexELbRlw==} + engines: {node: '>= 18'} + peerDependencies: + jiti: '>=1.21.0' + postcss: '>=8.0.9' + peerDependenciesMeta: + jiti: + optional: true + postcss: + optional: true + dependencies: + lilconfig: 3.0.0 + postcss: 8.4.32 + yaml: 2.3.4 + dev: true + + /postcss-nested@6.0.1(postcss@8.4.32): + resolution: {integrity: sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==} + engines: {node: '>=12.0'} + peerDependencies: + postcss: ^8.2.14 + dependencies: + postcss: 8.4.32 + postcss-selector-parser: 6.0.13 + + /postcss-safe-parser@6.0.0(postcss@8.4.32): + resolution: {integrity: sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==} + engines: {node: '>=12.0'} + peerDependencies: + postcss: ^8.3.3 + dependencies: + postcss: 8.4.32 + dev: true + + /postcss-scss@4.0.9(postcss@8.4.32): + resolution: {integrity: sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==} + engines: {node: '>=12.0'} + peerDependencies: + postcss: ^8.4.29 + dependencies: + postcss: 8.4.32 + dev: true + + /postcss-selector-parser@6.0.13: + resolution: {integrity: sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==} + engines: {node: '>=4'} + dependencies: + cssesc: 3.0.0 + util-deprecate: 1.0.2 + + /postcss-value-parser@4.2.0: + resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} + + /postcss@8.4.32: + resolution: {integrity: sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.7 + picocolors: 1.0.0 + source-map-js: 1.0.2 + + /prelude-ls@1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} + dev: true + + /prettier-plugin-svelte@3.1.2(prettier@3.1.1)(svelte@4.2.8): + resolution: {integrity: sha512-7xfMZtwgAWHMT0iZc8jN4o65zgbAQ3+O32V6W7pXrqNvKnHnkoyQCGCbKeUyXKZLbYE0YhFRnamfxfkEGxm8qA==} + peerDependencies: + prettier: ^3.0.0 + svelte: ^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0 + dependencies: + prettier: 3.1.1 + svelte: 4.2.8 + dev: true + + /prettier-plugin-tailwindcss@0.5.9(prettier-plugin-svelte@3.1.2)(prettier@3.1.1): + resolution: {integrity: sha512-9x3t1s2Cjbut2QiP+O0mDqV3gLXTe2CgRlQDgucopVkUdw26sQi53p/q4qvGxMLBDfk/dcTV57Aa/zYwz9l8Ew==} + engines: {node: '>=14.21.3'} + peerDependencies: + '@ianvs/prettier-plugin-sort-imports': '*' + '@prettier/plugin-pug': '*' + '@shopify/prettier-plugin-liquid': '*' + '@trivago/prettier-plugin-sort-imports': '*' + prettier: ^3.0 + prettier-plugin-astro: '*' + prettier-plugin-css-order: '*' + prettier-plugin-import-sort: '*' + prettier-plugin-jsdoc: '*' + prettier-plugin-marko: '*' + prettier-plugin-organize-attributes: '*' + prettier-plugin-organize-imports: '*' + prettier-plugin-style-order: '*' + prettier-plugin-svelte: '*' + prettier-plugin-twig-melody: '*' + peerDependenciesMeta: + '@ianvs/prettier-plugin-sort-imports': + optional: true + '@prettier/plugin-pug': + optional: true + '@shopify/prettier-plugin-liquid': + optional: true + '@trivago/prettier-plugin-sort-imports': + optional: true + prettier-plugin-astro: + optional: true + prettier-plugin-css-order: + optional: true + prettier-plugin-import-sort: + optional: true + prettier-plugin-jsdoc: + optional: true + prettier-plugin-marko: + optional: true + prettier-plugin-organize-attributes: + optional: true + prettier-plugin-organize-imports: + optional: true + prettier-plugin-style-order: + optional: true + prettier-plugin-svelte: + optional: true + prettier-plugin-twig-melody: + optional: true + dependencies: + prettier: 3.1.1 + prettier-plugin-svelte: 3.1.2(prettier@3.1.1)(svelte@4.2.8) + dev: true + + /prettier@3.1.1: + resolution: {integrity: sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==} + engines: {node: '>=14'} + hasBin: true + dev: true + + /punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + dev: true + + /queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + + /read-cache@1.0.0: + resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==} + dependencies: + pify: 2.3.0 + + /readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + dependencies: + picomatch: 2.3.1 + + /regenerator-runtime@0.14.1: + resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} + dev: false + + /resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + dev: true + + /resolve@1.22.8: + resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} + hasBin: true + dependencies: + is-core-module: 2.13.1 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + + /reusify@1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + + /rimraf@2.7.1: + resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} + hasBin: true + dependencies: + glob: 7.2.3 + dev: true + + /rimraf@3.0.2: + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + hasBin: true + dependencies: + glob: 7.2.3 + dev: true + + /rollup@4.9.0: + resolution: {integrity: sha512-bUHW/9N21z64gw8s6tP4c88P382Bq/L5uZDowHlHx6s/QWpjJXivIAbEw6LZthgSvlEizZBfLC4OAvWe7aoF7A==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.9.0 + '@rollup/rollup-android-arm64': 4.9.0 + '@rollup/rollup-darwin-arm64': 4.9.0 + '@rollup/rollup-darwin-x64': 4.9.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.9.0 + '@rollup/rollup-linux-arm64-gnu': 4.9.0 + '@rollup/rollup-linux-arm64-musl': 4.9.0 + '@rollup/rollup-linux-riscv64-gnu': 4.9.0 + '@rollup/rollup-linux-x64-gnu': 4.9.0 + '@rollup/rollup-linux-x64-musl': 4.9.0 + '@rollup/rollup-win32-arm64-msvc': 4.9.0 + '@rollup/rollup-win32-ia32-msvc': 4.9.0 + '@rollup/rollup-win32-x64-msvc': 4.9.0 + fsevents: 2.3.3 + + /run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + dependencies: + queue-microtask: 1.2.3 + + /sade@1.8.1: + resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==} + engines: {node: '>=6'} + dependencies: + mri: 1.2.0 + + /sander@0.5.1: + resolution: {integrity: sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA==} + dependencies: + es6-promise: 3.3.1 + graceful-fs: 4.2.11 + mkdirp: 0.5.6 + rimraf: 2.7.1 + dev: true + + /semver@7.5.4: + resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + dev: true + + /set-cookie-parser@2.6.0: + resolution: {integrity: sha512-RVnVQxTXuerk653XfuliOxBP81Sf0+qfQE73LIYKcyMYHG94AuH0kgrQpRDuTZnSmjpysHmzxJXKNfa6PjFhyQ==} + + /shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + dependencies: + shebang-regex: 3.0.0 + dev: true + + /shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + dev: true + + /sirv@2.0.3: + resolution: {integrity: sha512-O9jm9BsID1P+0HOi81VpXPoDxYP374pkOLzACAoyUQ/3OUVndNpsz6wMnY2z+yOxzbllCKZrM+9QrWsv4THnyA==} + engines: {node: '>= 10'} + dependencies: + '@polka/url': 1.0.0-next.24 + mrmime: 1.0.1 + totalist: 3.0.1 + + /slash@3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} + dev: true + + /sorcery@0.11.0: + resolution: {integrity: sha512-J69LQ22xrQB1cIFJhPfgtLuI6BpWRiWu1Y3vSsIwK/eAScqJxd/+CJlUuHQRdX2C9NGFamq+KqNywGgaThwfHw==} + hasBin: true + dependencies: + '@jridgewell/sourcemap-codec': 1.4.15 + buffer-crc32: 0.2.13 + minimist: 1.2.8 + sander: 0.5.1 + dev: true + + /source-map-js@1.0.2: + resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} + engines: {node: '>=0.10.0'} + + /strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + dependencies: + ansi-regex: 5.0.1 + dev: true + + /strip-indent@3.0.0: + resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} + engines: {node: '>=8'} + dependencies: + min-indent: 1.0.1 + dev: true + + /strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + dev: true + + /sucrase@3.34.0: + resolution: {integrity: sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==} + engines: {node: '>=8'} + hasBin: true + dependencies: + '@jridgewell/gen-mapping': 0.3.3 + commander: 4.1.1 + glob: 7.1.6 + lines-and-columns: 1.2.4 + mz: 2.7.0 + pirates: 4.0.6 + ts-interface-checker: 0.1.13 + + /supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + dependencies: + has-flag: 4.0.0 + dev: true + + /supports-preserve-symlinks-flag@1.0.0: + resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} + engines: {node: '>= 0.4'} + + /svelte-check@3.6.2(postcss-load-config@5.0.2)(postcss@8.4.32)(svelte@4.2.8): + resolution: {integrity: sha512-E6iFh4aUCGJLRz6QZXH3gcN/VFfkzwtruWSRmlKrLWQTiO6VzLsivR6q02WYLGNAGecV3EocqZuCDrC2uttZ0g==} + hasBin: true + peerDependencies: + svelte: ^3.55.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0 + dependencies: + '@jridgewell/trace-mapping': 0.3.20 + chokidar: 3.5.3 + fast-glob: 3.3.2 + import-fresh: 3.3.0 + picocolors: 1.0.0 + sade: 1.8.1 + svelte: 4.2.8 + svelte-preprocess: 5.1.2(postcss-load-config@5.0.2)(postcss@8.4.32)(svelte@4.2.8)(typescript@5.3.3) + typescript: 5.3.3 + transitivePeerDependencies: + - '@babel/core' + - coffeescript + - less + - postcss + - postcss-load-config + - pug + - sass + - stylus + - sugarss + dev: true + + /svelte-eslint-parser@0.33.1(svelte@4.2.8): + resolution: {integrity: sha512-vo7xPGTlKBGdLH8T5L64FipvTrqv3OQRx9d2z5X05KKZDlF4rQk8KViZO4flKERY+5BiVdOh7zZ7JGJWo5P0uA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + svelte: ^3.37.0 || ^4.0.0 + peerDependenciesMeta: + svelte: + optional: true + dependencies: + eslint-scope: 7.2.2 + eslint-visitor-keys: 3.4.3 + espree: 9.6.1 + postcss: 8.4.32 + postcss-scss: 4.0.9(postcss@8.4.32) + svelte: 4.2.8 + dev: true + + /svelte-hmr@0.15.3(svelte@4.2.8): + resolution: {integrity: sha512-41snaPswvSf8TJUhlkoJBekRrABDXDMdpNpT2tfHIv4JuhgvHqLMhEPGtaQn0BmbNSTkuz2Ed20DF2eHw0SmBQ==} + engines: {node: ^12.20 || ^14.13.1 || >= 16} + peerDependencies: + svelte: ^3.19.0 || ^4.0.0 + dependencies: + svelte: 4.2.8 + + /svelte-preprocess@5.1.2(postcss-load-config@5.0.2)(postcss@8.4.32)(svelte@4.2.8)(typescript@5.3.3): + resolution: {integrity: sha512-XF0aliMAcYnP4hLETvB6HRAMnaL09ASYT1Z2I1Gwu0nz6xbdg/dSgAEthtFZJA4AKrNhFDFdmUDO+H9d/6xg5g==} + engines: {node: '>= 14.10.0'} + requiresBuild: true + peerDependencies: + '@babel/core': ^7.10.2 + coffeescript: ^2.5.1 + less: ^3.11.3 || ^4.0.0 + postcss: ^7 || ^8 + postcss-load-config: ^2.1.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 + pug: ^3.0.0 + sass: ^1.26.8 + stylus: ^0.55.0 + sugarss: ^2.0.0 || ^3.0.0 || ^4.0.0 + svelte: ^3.23.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0 + typescript: '>=3.9.5 || ^4.0.0 || ^5.0.0' + peerDependenciesMeta: + '@babel/core': + optional: true + coffeescript: + optional: true + less: + optional: true + postcss: + optional: true + postcss-load-config: + optional: true + pug: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + typescript: + optional: true + dependencies: + '@types/pug': 2.0.10 + detect-indent: 6.1.0 + magic-string: 0.27.0 + postcss: 8.4.32 + postcss-load-config: 5.0.2(postcss@8.4.32) + sorcery: 0.11.0 + strip-indent: 3.0.0 + svelte: 4.2.8 + typescript: 5.3.3 + dev: true + + /svelte@4.2.8: + resolution: {integrity: sha512-hU6dh1MPl8gh6klQZwK/n73GiAHiR95IkFsesLPbMeEZi36ydaXL/ZAb4g9sayT0MXzpxyZjR28yderJHxcmYA==} + engines: {node: '>=16'} + dependencies: + '@ampproject/remapping': 2.2.1 + '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/trace-mapping': 0.3.20 + acorn: 8.11.2 + aria-query: 5.3.0 + axobject-query: 3.2.1 + code-red: 1.0.4 + css-tree: 2.3.1 + estree-walker: 3.0.3 + is-reference: 3.0.2 + locate-character: 3.0.0 + magic-string: 0.30.5 + periscopic: 3.1.0 + + /sveltekit-superforms@1.12.0(@sveltejs/kit@2.0.1)(svelte@4.2.8)(zod@3.22.4): + resolution: {integrity: sha512-yer9YKhfWsKsDIxXahFLuGuUel32gyi96qIdxTVFAOWXZM9ZaMEP7+FL2cMYRDg6Xqlrh5SQ9oQdkVYeLNG0eA==} + peerDependencies: + '@sveltejs/kit': 1.x || 2.x + svelte: 3.x || 4.x + zod: 3.x + dependencies: + '@sveltejs/kit': 2.0.1(@sveltejs/vite-plugin-svelte@3.0.1)(svelte@4.2.8)(vite@5.0.10) + svelte: 4.2.8 + zod: 3.22.4 + dev: false + + /tabbable@6.2.0: + resolution: {integrity: sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==} + dev: false + + /tailwind-merge@1.14.0: + resolution: {integrity: sha512-3mFKyCo/MBcgyOTlrY8T7odzZFx+w+qKSMAmdFzRvqBfLlSigU6TZnlFHK0lkMwj9Bj8OYU+9yW9lmGuS0QEnQ==} + dev: false + + /tailwind-merge@2.1.0: + resolution: {integrity: sha512-l11VvI4nSwW7MtLSLYT4ldidDEUwQAMWuSHk7l4zcXZDgnCRa0V3OdCwFfM7DCzakVXMNRwAeje9maFFXT71dQ==} + dependencies: + '@babel/runtime': 7.23.6 + dev: false + + /tailwind-variants@0.1.19(tailwindcss@3.3.6): + resolution: {integrity: sha512-D9Yf5WqsxodnCtjZt6KifEoKwW8rTURXQV03KRKlojITQM5gV1vPVWufWNiIvd/ptC3QybYFpwmHK9cs4Ei08Q==} + engines: {node: '>=16.x', pnpm: '>=7.x'} + peerDependencies: + tailwindcss: '*' + dependencies: + tailwind-merge: 1.14.0 + tailwindcss: 3.3.6 + dev: false + + /tailwindcss@3.3.6: + resolution: {integrity: sha512-AKjF7qbbLvLaPieoKeTjG1+FyNZT6KaJMJPFeQyLfIp7l82ggH1fbHJSsYIvnbTFQOlkh+gBYpyby5GT1LIdLw==} + engines: {node: '>=14.0.0'} + hasBin: true + dependencies: + '@alloc/quick-lru': 5.2.0 + arg: 5.0.2 + chokidar: 3.5.3 + didyoumean: 1.2.2 + dlv: 1.1.3 + fast-glob: 3.3.2 + glob-parent: 6.0.2 + is-glob: 4.0.3 + jiti: 1.21.0 + lilconfig: 2.1.0 + micromatch: 4.0.5 + normalize-path: 3.0.0 + object-hash: 3.0.0 + picocolors: 1.0.0 + postcss: 8.4.32 + postcss-import: 15.1.0(postcss@8.4.32) + postcss-js: 4.0.1(postcss@8.4.32) + postcss-load-config: 4.0.2(postcss@8.4.32) + postcss-nested: 6.0.1(postcss@8.4.32) + postcss-selector-parser: 6.0.13 + resolve: 1.22.8 + sucrase: 3.34.0 + transitivePeerDependencies: + - ts-node + + /text-table@0.2.0: + resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} + dev: true + + /thenify-all@1.6.0: + resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} + engines: {node: '>=0.8'} + dependencies: + thenify: 3.3.1 + + /thenify@3.3.1: + resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} + dependencies: + any-promise: 1.3.0 + + /tiny-glob@0.2.9: + resolution: {integrity: sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==} + dependencies: + globalyzer: 0.1.0 + globrex: 0.1.2 + + /to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + dependencies: + is-number: 7.0.0 + + /totalist@3.0.1: + resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} + engines: {node: '>=6'} + + /ts-api-utils@1.0.3(typescript@5.3.3): + resolution: {integrity: sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==} + engines: {node: '>=16.13.0'} + peerDependencies: + typescript: '>=4.2.0' + dependencies: + typescript: 5.3.3 + dev: true + + /ts-interface-checker@0.1.13: + resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} + + /tslib@2.6.2: + resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} + + /type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: 1.2.1 + dev: true + + /type-fest@0.20.2: + resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} + engines: {node: '>=10'} + dev: true + + /typescript@5.3.3: + resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==} + engines: {node: '>=14.17'} + hasBin: true + dev: true + + /update-browserslist-db@1.0.13(browserslist@4.22.2): + resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + dependencies: + browserslist: 4.22.2 + escalade: 3.1.1 + picocolors: 1.0.0 + dev: true + + /uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + dependencies: + punycode: 2.3.1 + dev: true + + /util-deprecate@1.0.2: + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + + /vite@5.0.10: + resolution: {integrity: sha512-2P8J7WWgmc355HUMlFrwofacvr98DAjoE52BfdbwQtyLH06XKwaL/FMnmKM2crF0iX4MpmMKoDlNCB1ok7zHCw==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + esbuild: 0.19.9 + postcss: 8.4.32 + rollup: 4.9.0 + optionalDependencies: + fsevents: 2.3.3 + + /vitefu@0.2.5(vite@5.0.10): + resolution: {integrity: sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q==} + peerDependencies: + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 + peerDependenciesMeta: + vite: + optional: true + dependencies: + vite: 5.0.10 + + /which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: true + + /wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + + /yallist@4.0.0: + resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} + dev: true + + /yaml@1.10.2: + resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} + engines: {node: '>= 6'} + dev: true + + /yaml@2.3.4: + resolution: {integrity: sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==} + engines: {node: '>= 14'} + + /yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + dev: true + + /zod@3.22.4: + resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} + dev: false diff --git a/tfweb/postcss.config.cjs b/tfweb/postcss.config.cjs new file mode 100644 index 0000000..65e0bb1 --- /dev/null +++ b/tfweb/postcss.config.cjs @@ -0,0 +1,13 @@ +const tailwindcss = require("tailwindcss"); +const autoprefixer = require("autoprefixer"); + +const config = { + plugins: [ + //Some plugins, like tailwindcss/nesting, need to run before Tailwind, + tailwindcss(), + //But others, like autoprefixer, need to run after, + autoprefixer + ] +}; + +module.exports = config; \ No newline at end of file diff --git a/tfweb/src/app.d.ts b/tfweb/src/app.d.ts index f59b884..743f07b 100644 --- a/tfweb/src/app.d.ts +++ b/tfweb/src/app.d.ts @@ -5,6 +5,7 @@ declare global { // interface Error {} // interface Locals {} // interface PageData {} + // interface PageState {} // interface Platform {} } } diff --git a/tfweb/src/app.html b/tfweb/src/app.html index b0cc593..77a5ff5 100644 --- a/tfweb/src/app.html +++ b/tfweb/src/app.html @@ -1,12 +1,12 @@ - - + + - + %sveltekit.head% - - %sveltekit.body% + +
%sveltekit.body%
diff --git a/tfweb/src/app.pcss b/tfweb/src/app.pcss new file mode 100644 index 0000000..6662813 --- /dev/null +++ b/tfweb/src/app.pcss @@ -0,0 +1,78 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +@layer base { + :root { + --background: 0 0% 100%; + --foreground: 240 10% 3.9%; + + --muted: 240 4.8% 95.9%; + --muted-foreground: 240 3.8% 46.1%; + + --popover: 0 0% 100%; + --popover-foreground: 240 10% 3.9%; + + --card: 0 0% 100%; + --card-foreground: 240 10% 3.9%; + + --border: 240 5.9% 90%; + --input: 240 5.9% 90%; + + --primary: 240 5.9% 10%; + --primary-foreground: 0 0% 98%; + + --secondary: 240 4.8% 95.9%; + --secondary-foreground: 240 5.9% 10%; + + --accent: 240 4.8% 95.9%; + --accent-foreground: 240 5.9% 10%; + + --destructive: 0 72.2% 50.6%; + --destructive-foreground: 0 0% 98%; + + --ring: 240 10% 3.9%; + + --radius: 0.5rem; + } + + .dark { + --background: 240 10% 3.9%; + --foreground: 0 0% 98%; + + --muted: 240 3.7% 15.9%; + --muted-foreground: 240 5% 64.9%; + + --popover: 240 10% 3.9%; + --popover-foreground: 0 0% 98%; + + --card: 240 10% 3.9%; + --card-foreground: 0 0% 98%; + + --border: 240 3.7% 15.9%; + --input: 240 3.7% 15.9%; + + --primary: 0 0% 98%; + --primary-foreground: 240 5.9% 10%; + + --secondary: 240 3.7% 15.9%; + --secondary-foreground: 0 0% 98%; + + --accent: 240 3.7% 15.9%; + --accent-foreground: 0 0% 98%; + + --destructive: 0 62.8% 30.6%; + --destructive-foreground: 0 0% 98%; + + --ring: 240 4.9% 83.9%; + } +} + +@layer base { + * { + @apply border-border; + } + body { + @apply bg-background text-foreground; + } +} \ No newline at end of file diff --git a/tfweb/src/components/AdminLayout.svelte b/tfweb/src/components/AdminLayout.svelte deleted file mode 100644 index 00f10db..0000000 --- a/tfweb/src/components/AdminLayout.svelte +++ /dev/null @@ -1,16 +0,0 @@ - - -
-
-
- -
-
- -
-
-
diff --git a/tfweb/src/components/LoadingWrapper.svelte b/tfweb/src/components/LoadingWrapper.svelte deleted file mode 100644 index 9b51662..0000000 --- a/tfweb/src/components/LoadingWrapper.svelte +++ /dev/null @@ -1,42 +0,0 @@ - - -{#if isLoading} -
-
-
-

{$t("common.loading")}

-
-
-
-{:else} - {#if isError} -
-
-
-

{error}

-
-
-
- {:else} - - {/if} -{/if} diff --git a/tfweb/src/components/QrCode.svelte b/tfweb/src/components/QrCode.svelte deleted file mode 100644 index 4db4f08..0000000 --- a/tfweb/src/components/QrCode.svelte +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git a/tfweb/src/components/Sidebar.svelte b/tfweb/src/components/Sidebar.svelte deleted file mode 100644 index 21d5a23..0000000 --- a/tfweb/src/components/Sidebar.svelte +++ /dev/null @@ -1,48 +0,0 @@ - - -
-

- - Trifid -

-
- - -
- - -
diff --git a/tfweb/src/lib/PersistentStore.js b/tfweb/src/lib/PersistentStore.js deleted file mode 100644 index 2d04875..0000000 --- a/tfweb/src/lib/PersistentStore.js +++ /dev/null @@ -1,11 +0,0 @@ -import { writable } from "svelte/store"; -import { browser } from "$app/environment"; -export function persist(name, def_val = "") { - const store = writable(browser && localStorage.getItem(name) || def_val); - store.subscribe((value) => { - if (browser) - return (localStorage.setItem(name, value)); - }); - return store; -} -//# sourceMappingURL=PersistentStore.js.map \ No newline at end of file diff --git a/tfweb/src/lib/PersistentStore.js.map b/tfweb/src/lib/PersistentStore.js.map deleted file mode 100644 index 5dd00dc..0000000 --- a/tfweb/src/lib/PersistentStore.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PersistentStore.js","sourceRoot":"","sources":["PersistentStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC;AACtC,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAEzC,MAAM,UAAU,OAAO,CAAC,IAAY,EAAE,OAAO,GAAG,EAAE;IAC9C,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC;IACzE,KAAK,CAAC,SAAS,CAAC,CAAC,KAAU,EAAE,EAAE;QAC3B,IAAI,OAAO;YAAE,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/PersistentStore.ts b/tfweb/src/lib/PersistentStore.ts deleted file mode 100644 index 984ff06..0000000 --- a/tfweb/src/lib/PersistentStore.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { Writable } from "svelte/store"; -import {writable} from "svelte/store"; -import {browser} from "$app/environment"; - -export function persist(name: string, def_val = ""): Writable { - const store = writable(browser && localStorage.getItem(name) || def_val); - store.subscribe((value: any) => { - if (browser) return (localStorage.setItem(name, value)); - }); - return store; -} diff --git a/tfweb/src/lib/Tooltips.js b/tfweb/src/lib/Tooltips.js deleted file mode 100644 index 1501f7d..0000000 --- a/tfweb/src/lib/Tooltips.js +++ /dev/null @@ -1,17 +0,0 @@ -import {browser} from "$app/environment"; - -export function updateTooltips() { - if (browser) { - setTimeout(() => { - const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]') - const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => { - let tooltip = new document.B.Tooltip(tooltipTriggerEl, {trigger: 'hover'}) - tooltipTriggerEl.addEventListener('click', () => { - tooltip.hide(); - tooltip.dispose(); - }) - }); - console.log(tooltipList); - }); - } -} diff --git a/tfweb/src/lib/api/.openapi-generator-ignore b/tfweb/src/lib/api/.openapi-generator-ignore deleted file mode 100644 index 7484ee5..0000000 --- a/tfweb/src/lib/api/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/tfweb/src/lib/api/.openapi-generator/FILES b/tfweb/src/lib/api/.openapi-generator/FILES deleted file mode 100644 index 13e85ad..0000000 --- a/tfweb/src/lib/api/.openapi-generator/FILES +++ /dev/null @@ -1,61 +0,0 @@ -.openapi-generator-ignore -apis/AuditLogsApi.ts -apis/DownloadsApi.ts -apis/HostsApi.ts -apis/NetworksApi.ts -apis/RolesApi.ts -apis/index.ts -index.ts -models/Actor.ts -models/ActorAPIKey.ts -models/ActorHost.ts -models/ActorOIDCUser.ts -models/ActorSupport.ts -models/ActorSystem.ts -models/ActorUser.ts -models/AuditLog.ts -models/AuditLogsList200Response.ts -models/Downloads.ts -models/DownloadsDNClientLinks.ts -models/DownloadsDnclient.ts -models/DownloadsList200Response.ts -models/DownloadsMobile.ts -models/DownloadsVersionInfo.ts -models/DownloadsVersionInfoDnclientValue.ts -models/DownloadsVersionInfoLatest.ts -models/Event.ts -models/FirewallRule.ts -models/FirewallRulePortRange.ts -models/Host.ts -models/HostAndEnrollCodeCreate200Response.ts -models/HostAndEnrollCodeCreate200ResponseData.ts -models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.ts -models/HostAndEnrollCodeCreate400Response.ts -models/HostBlock200Response.ts -models/HostBlock200ResponseData.ts -models/HostCreate200Response.ts -models/HostCreate400Response.ts -models/HostCreateRequest.ts -models/HostDelete200Response.ts -models/HostEdit200Response.ts -models/HostEditRequest.ts -models/HostEnrollCodeCreate200Response.ts -models/HostEnrollCodeCreate200ResponseData.ts -models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.ts -models/HostGet200Response.ts -models/HostMetadata.ts -models/HostsList200Response.ts -models/ModelError.ts -models/Network.ts -models/NetworkGet200Response.ts -models/NetworksList200Response.ts -models/PaginationMetadata.ts -models/PaginationMetadataPage.ts -models/Role.ts -models/RoleCreate200Response.ts -models/RoleCreateRequest.ts -models/RoleEditRequest.ts -models/RolesList200Response.ts -models/Target.ts -models/index.ts -runtime.ts diff --git a/tfweb/src/lib/api/.openapi-generator/VERSION b/tfweb/src/lib/api/.openapi-generator/VERSION deleted file mode 100644 index cd802a1..0000000 --- a/tfweb/src/lib/api/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -6.6.0 \ No newline at end of file diff --git a/tfweb/src/lib/api/apis/AuditLogsApi.js b/tfweb/src/lib/api/apis/AuditLogsApi.js deleted file mode 100644 index a88162a..0000000 --- a/tfweb/src/lib/api/apis/AuditLogsApi.js +++ /dev/null @@ -1,78 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import { AuditLogsList200ResponseFromJSON, AuditLogsList200ResponseToJSON, } from '../models'; -/** - * - */ -export class AuditLogsApi extends runtime.BaseAPI { - /** - * Get a paginated list of audit logs. Token scope required: `audit-logs:list` ### Request - * List audit logs - */ - async auditLogsListRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters.includeCounts !== undefined) { - queryParameters['includeCounts'] = requestParameters.includeCounts; - } - if (requestParameters.cursor !== undefined) { - queryParameters['cursor'] = requestParameters.cursor; - } - if (requestParameters.pageSize !== undefined) { - queryParameters['pageSize'] = requestParameters.pageSize; - } - if (requestParameters.filterTargetID !== undefined) { - queryParameters['filter.targetID'] = requestParameters.filterTargetID; - } - if (requestParameters.filterTargetType !== undefined) { - queryParameters['filter.targetType'] = requestParameters.filterTargetType; - } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/audit-logs`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => AuditLogsList200ResponseFromJSON(jsonValue)); - } - /** - * Get a paginated list of audit logs. Token scope required: `audit-logs:list` ### Request - * List audit logs - */ - async auditLogsList(requestParameters = {}, initOverrides) { - const response = await this.auditLogsListRaw(requestParameters, initOverrides); - return await response.value(); - } -} -/** - * @export - */ -export const AuditLogsListFilterTargetTypeEnum = { - ApiKey: 'apiKey', - Host: 'host', - Network: 'network', - Role: 'role', - User: 'user', - Ca: 'ca', - OidcProvider: 'oidcProvider' -}; -//# sourceMappingURL=AuditLogsApi.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/apis/AuditLogsApi.js.map b/tfweb/src/lib/api/apis/AuditLogsApi.js.map deleted file mode 100644 index 8f73ae3..0000000 --- a/tfweb/src/lib/api/apis/AuditLogsApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AuditLogsApi.js","sourceRoot":"","sources":["AuditLogsApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAItC,OAAO,EACH,gCAAgC,EAChC,8BAA8B,GACjC,MAAM,WAAW,CAAC;AAUnB;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,OAAO,CAAC,OAAO;IAE7C;;;OAGG;IACH,KAAK,CAAC,gBAAgB,CAAC,iBAAuC,EAAE,aAA0D;QACtH,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,aAAa,KAAK,SAAS,EAAE;YAC/C,eAAe,CAAC,eAAe,CAAC,GAAG,iBAAiB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EAAE,EAAE,aAA0D;QACxH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC/E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC7C,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IAAI;IACR,YAAY,EAAE,cAAc;CACtB,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/apis/AuditLogsApi.ts b/tfweb/src/lib/api/apis/AuditLogsApi.ts deleted file mode 100644 index d46b8a0..0000000 --- a/tfweb/src/lib/api/apis/AuditLogsApi.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - AuditLogsList200Response, -} from '../models'; -import { - AuditLogsList200ResponseFromJSON, - AuditLogsList200ResponseToJSON, -} from '../models'; - -export interface AuditLogsListRequest { - includeCounts?: boolean; - cursor?: string; - pageSize?: number; - filterTargetID?: string; - filterTargetType?: AuditLogsListFilterTargetTypeEnum; -} - -/** - * - */ -export class AuditLogsApi extends runtime.BaseAPI { - - /** - * Get a paginated list of audit logs. Token scope required: `audit-logs:list` ### Request - * List audit logs - */ - async auditLogsListRaw(requestParameters: AuditLogsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters.includeCounts !== undefined) { - queryParameters['includeCounts'] = requestParameters.includeCounts; - } - - if (requestParameters.cursor !== undefined) { - queryParameters['cursor'] = requestParameters.cursor; - } - - if (requestParameters.pageSize !== undefined) { - queryParameters['pageSize'] = requestParameters.pageSize; - } - - if (requestParameters.filterTargetID !== undefined) { - queryParameters['filter.targetID'] = requestParameters.filterTargetID; - } - - if (requestParameters.filterTargetType !== undefined) { - queryParameters['filter.targetType'] = requestParameters.filterTargetType; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/audit-logs`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => AuditLogsList200ResponseFromJSON(jsonValue)); - } - - /** - * Get a paginated list of audit logs. Token scope required: `audit-logs:list` ### Request - * List audit logs - */ - async auditLogsList(requestParameters: AuditLogsListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.auditLogsListRaw(requestParameters, initOverrides); - return await response.value(); - } - -} - -/** - * @export - */ -export const AuditLogsListFilterTargetTypeEnum = { - ApiKey: 'apiKey', - Host: 'host', - Network: 'network', - Role: 'role', - User: 'user', - Ca: 'ca', - OidcProvider: 'oidcProvider' -} as const; -export type AuditLogsListFilterTargetTypeEnum = typeof AuditLogsListFilterTargetTypeEnum[keyof typeof AuditLogsListFilterTargetTypeEnum]; diff --git a/tfweb/src/lib/api/apis/DownloadsApi.js b/tfweb/src/lib/api/apis/DownloadsApi.js deleted file mode 100644 index bb19611..0000000 --- a/tfweb/src/lib/api/apis/DownloadsApi.js +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import { DownloadsList200ResponseFromJSON, DownloadsList200ResponseToJSON, } from '../models'; -/** - * - */ -export class DownloadsApi extends runtime.BaseAPI { - /** - * Get a list of recently released software download links and basic info. This endpoint is unauthenticated. ### Request - * List software downloads - */ - async downloadsListRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/downloads`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => DownloadsList200ResponseFromJSON(jsonValue)); - } - /** - * Get a list of recently released software download links and basic info. This endpoint is unauthenticated. ### Request - * List software downloads - */ - async downloadsList(initOverrides) { - const response = await this.downloadsListRaw(initOverrides); - return await response.value(); - } -} -//# sourceMappingURL=DownloadsApi.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/apis/DownloadsApi.js.map b/tfweb/src/lib/api/apis/DownloadsApi.js.map deleted file mode 100644 index 8e0414f..0000000 --- a/tfweb/src/lib/api/apis/DownloadsApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DownloadsApi.js","source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git a/tfweb/src/lib/api/apis/DownloadsApi.ts b/tfweb/src/lib/api/apis/DownloadsApi.ts deleted file mode 100644 index 78cfb8b..0000000 --- a/tfweb/src/lib/api/apis/DownloadsApi.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - DownloadsList200Response, -} from '../models'; -import { - DownloadsList200ResponseFromJSON, - DownloadsList200ResponseToJSON, -} from '../models'; - -/** - * - */ -export class DownloadsApi extends runtime.BaseAPI { - - /** - * Get a list of recently released software download links and basic info. This endpoint is unauthenticated. ### Request - * List software downloads - */ - async downloadsListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/downloads`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DownloadsList200ResponseFromJSON(jsonValue)); - } - - /** - * Get a list of recently released software download links and basic info. This endpoint is unauthenticated. ### Request - * List software downloads - */ - async downloadsList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.downloadsListRaw(initOverrides); - return await response.value(); - } - -} diff --git a/tfweb/src/lib/api/apis/HostsApi.js b/tfweb/src/lib/api/apis/HostsApi.js deleted file mode 100644 index e431303..0000000 --- a/tfweb/src/lib/api/apis/HostsApi.js +++ /dev/null @@ -1,332 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import { HostAndEnrollCodeCreate200ResponseFromJSON, HostAndEnrollCodeCreate200ResponseToJSON, HostAndEnrollCodeCreate400ResponseFromJSON, HostAndEnrollCodeCreate400ResponseToJSON, HostBlock200ResponseFromJSON, HostBlock200ResponseToJSON, HostCreate200ResponseFromJSON, HostCreate200ResponseToJSON, HostCreate400ResponseFromJSON, HostCreate400ResponseToJSON, HostCreateRequestFromJSON, HostCreateRequestToJSON, HostDelete200ResponseFromJSON, HostDelete200ResponseToJSON, HostEdit200ResponseFromJSON, HostEdit200ResponseToJSON, HostEditRequestFromJSON, HostEditRequestToJSON, HostEnrollCodeCreate200ResponseFromJSON, HostEnrollCodeCreate200ResponseToJSON, HostGet200ResponseFromJSON, HostGet200ResponseToJSON, HostsList200ResponseFromJSON, HostsList200ResponseToJSON, } from '../models'; -/** - * - */ -export class HostsApi extends runtime.BaseAPI { - /** - * Token scopes required: `hosts:create`, `hosts:enroll` ### Request - * Create host & enrollment code - */ - async hostAndEnrollCodeCreateRaw(requestParameters, initOverrides) { - if (requestParameters.hostCreateRequest === null || requestParameters.hostCreateRequest === undefined) { - throw new runtime.RequiredError('hostCreateRequest', 'Required parameter requestParameters.hostCreateRequest was null or undefined when calling hostAndEnrollCodeCreate.'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/host-and-enrollment-code`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: HostCreateRequestToJSON(requestParameters.hostCreateRequest), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => HostAndEnrollCodeCreate200ResponseFromJSON(jsonValue)); - } - /** - * Token scopes required: `hosts:create`, `hosts:enroll` ### Request - * Create host & enrollment code - */ - async hostAndEnrollCodeCreate(requestParameters, initOverrides) { - const response = await this.hostAndEnrollCodeCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Prevent a host from being able to interact with other nodes on your network. See https://www.defined.net/blog/blocklisting/ for more details. To unblock, re-enroll the host. Token scope required: `hosts:block` ### Request - * Block host - */ - async hostBlockRaw(requestParameters, initOverrides) { - if (requestParameters.hostID === null || requestParameters.hostID === undefined) { - throw new runtime.RequiredError('hostID', 'Required parameter requestParameters.hostID was null or undefined when calling hostBlock.'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/hosts/{hostID}/block`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => HostBlock200ResponseFromJSON(jsonValue)); - } - /** - * Prevent a host from being able to interact with other nodes on your network. See https://www.defined.net/blog/blocklisting/ for more details. To unblock, re-enroll the host. Token scope required: `hosts:block` ### Request - * Block host - */ - async hostBlock(requestParameters, initOverrides) { - const response = await this.hostBlockRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Create a new host, lighthouse, or relay. Token scope required: `hosts:create` ### Request - * Create host - */ - async hostCreateRaw(requestParameters, initOverrides) { - if (requestParameters.hostCreateRequest === null || requestParameters.hostCreateRequest === undefined) { - throw new runtime.RequiredError('hostCreateRequest', 'Required parameter requestParameters.hostCreateRequest was null or undefined when calling hostCreate.'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/hosts`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: HostCreateRequestToJSON(requestParameters.hostCreateRequest), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => HostCreate200ResponseFromJSON(jsonValue)); - } - /** - * Create a new host, lighthouse, or relay. Token scope required: `hosts:create` ### Request - * Create host - */ - async hostCreate(requestParameters, initOverrides) { - const response = await this.hostCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Token scope required: `hosts:delete` ### Request - * Delete host - */ - async hostDeleteRaw(requestParameters, initOverrides) { - if (requestParameters.hostID === null || requestParameters.hostID === undefined) { - throw new runtime.RequiredError('hostID', 'Required parameter requestParameters.hostID was null or undefined when calling hostDelete.'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/hosts/{hostID}`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => HostDelete200ResponseFromJSON(jsonValue)); - } - /** - * Token scope required: `hosts:delete` ### Request - * Delete host - */ - async hostDelete(requestParameters, initOverrides) { - const response = await this.hostDeleteRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Token scope required: `hosts:update` :::caution Any properties not provided in the request will be reset to their default values. ::: ### Request - * Edit host - */ - async hostEditRaw(requestParameters, initOverrides) { - if (requestParameters.hostID === null || requestParameters.hostID === undefined) { - throw new runtime.RequiredError('hostID', 'Required parameter requestParameters.hostID was null or undefined when calling hostEdit.'); - } - if (requestParameters.hostEditRequest === null || requestParameters.hostEditRequest === undefined) { - throw new runtime.RequiredError('hostEditRequest', 'Required parameter requestParameters.hostEditRequest was null or undefined when calling hostEdit.'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/hosts/{hostID}`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: HostEditRequestToJSON(requestParameters.hostEditRequest), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => HostEdit200ResponseFromJSON(jsonValue)); - } - /** - * Token scope required: `hosts:update` :::caution Any properties not provided in the request will be reset to their default values. ::: ### Request - * Edit host - */ - async hostEdit(requestParameters, initOverrides) { - const response = await this.hostEditRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Obtain a code that can be used with the `dnclient enroll` command on a host, lighthouse, or relay to enroll it into your Managed Nebula network. Token scope required: `hosts:enroll` ### Request - * Create enrollment code - */ - async hostEnrollCodeCreateRaw(requestParameters, initOverrides) { - if (requestParameters.hostID === null || requestParameters.hostID === undefined) { - throw new runtime.RequiredError('hostID', 'Required parameter requestParameters.hostID was null or undefined when calling hostEnrollCodeCreate.'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/hosts/{hostID}/enrollment-code`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => HostEnrollCodeCreate200ResponseFromJSON(jsonValue)); - } - /** - * Obtain a code that can be used with the `dnclient enroll` command on a host, lighthouse, or relay to enroll it into your Managed Nebula network. Token scope required: `hosts:enroll` ### Request - * Create enrollment code - */ - async hostEnrollCodeCreate(requestParameters, initOverrides) { - const response = await this.hostEnrollCodeCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Fetch information about a particular host, lighthouse, or relay. Token scope required: `hosts:read` ### Request - * Get host - */ - async hostGetRaw(requestParameters, initOverrides) { - if (requestParameters.hostID === null || requestParameters.hostID === undefined) { - throw new runtime.RequiredError('hostID', 'Required parameter requestParameters.hostID was null or undefined when calling hostGet.'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/hosts/{hostID}`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => HostGet200ResponseFromJSON(jsonValue)); - } - /** - * Fetch information about a particular host, lighthouse, or relay. Token scope required: `hosts:read` ### Request - * Get host - */ - async hostGet(requestParameters, initOverrides) { - const response = await this.hostGetRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get a paginated list of hosts, lighthouses, and relays. Token scope required: `hosts:list` ### Request - * List hosts - */ - async hostsListRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters.includeCounts !== undefined) { - queryParameters['includeCounts'] = requestParameters.includeCounts; - } - if (requestParameters.cursor !== undefined) { - queryParameters['cursor'] = requestParameters.cursor; - } - if (requestParameters.pageSize !== undefined) { - queryParameters['pageSize'] = requestParameters.pageSize; - } - if (requestParameters.filterIsBlocked !== undefined) { - queryParameters['filter.isBlocked'] = requestParameters.filterIsBlocked; - } - if (requestParameters.filterIsLighthouse !== undefined) { - queryParameters['filter.isLighthouse'] = requestParameters.filterIsLighthouse; - } - if (requestParameters.filterIsRelay !== undefined) { - queryParameters['filter.isRelay'] = requestParameters.filterIsRelay; - } - if (requestParameters.filterMetadataLastSeenAt !== undefined) { - queryParameters['filter.metadata.lastSeenAt'] = requestParameters.filterMetadataLastSeenAt; - } - if (requestParameters.filterMetadataPlatform !== undefined) { - queryParameters['filter.metadata.platform'] = requestParameters.filterMetadataPlatform; - } - if (requestParameters.filterMetadataUpdateAvailable !== undefined) { - queryParameters['filter.metadata.updateAvailable'] = requestParameters.filterMetadataUpdateAvailable; - } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/hosts`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => HostsList200ResponseFromJSON(jsonValue)); - } - /** - * Get a paginated list of hosts, lighthouses, and relays. Token scope required: `hosts:list` ### Request - * List hosts - */ - async hostsList(requestParameters = {}, initOverrides) { - const response = await this.hostsListRaw(requestParameters, initOverrides); - return await response.value(); - } -} -/** - * @export - */ -export const HostsListFilterMetadataLastSeenAtEnum = { - Null: 'null' -}; -/** - * @export - */ -export const HostsListFilterMetadataPlatformEnum = { - Mobile: 'mobile', - Dnclient: 'dnclient', - Null: 'null' -}; -//# sourceMappingURL=HostsApi.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/apis/HostsApi.js.map b/tfweb/src/lib/api/apis/HostsApi.js.map deleted file mode 100644 index e7d4e5b..0000000 --- a/tfweb/src/lib/api/apis/HostsApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostsApi.js","sourceRoot":"","sources":["HostsApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAetC,OAAO,EACH,0CAA0C,EAC1C,wCAAwC,EACxC,0CAA0C,EAC1C,wCAAwC,EACxC,4BAA4B,EAC5B,0BAA0B,EAC1B,6BAA6B,EAC7B,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAC7B,2BAA2B,EAC3B,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,EACvB,qBAAqB,EACrB,uCAAuC,EACvC,qCAAqC,EACrC,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,0BAA0B,GAC7B,MAAM,WAAW,CAAC;AA2CnB;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,OAAO,CAAC,OAAO;IAEzC;;;OAGG;IACH,KAAK,CAAC,0BAA0B,CAAC,iBAAiD,EAAE,aAA0D;QAC1I,IAAI,iBAAiB,CAAC,iBAAiB,KAAK,IAAI,IAAI,iBAAiB,CAAC,iBAAiB,KAAK,SAAS,EAAE;YACnG,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,mBAAmB,EAAC,oHAAoH,CAAC,CAAC;SAC7K;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CA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newline at end of file diff --git a/tfweb/src/lib/api/apis/HostsApi.ts b/tfweb/src/lib/api/apis/HostsApi.ts deleted file mode 100644 index ed245fd..0000000 --- a/tfweb/src/lib/api/apis/HostsApi.ts +++ /dev/null @@ -1,486 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - HostAndEnrollCodeCreate200Response, - HostAndEnrollCodeCreate400Response, - HostBlock200Response, - HostCreate200Response, - HostCreate400Response, - HostCreateRequest, - HostDelete200Response, - HostEdit200Response, - HostEditRequest, - HostEnrollCodeCreate200Response, - HostGet200Response, - HostsList200Response, -} from '../models'; -import { - HostAndEnrollCodeCreate200ResponseFromJSON, - HostAndEnrollCodeCreate200ResponseToJSON, - HostAndEnrollCodeCreate400ResponseFromJSON, - HostAndEnrollCodeCreate400ResponseToJSON, - HostBlock200ResponseFromJSON, - HostBlock200ResponseToJSON, - HostCreate200ResponseFromJSON, - HostCreate200ResponseToJSON, - HostCreate400ResponseFromJSON, - HostCreate400ResponseToJSON, - HostCreateRequestFromJSON, - HostCreateRequestToJSON, - HostDelete200ResponseFromJSON, - HostDelete200ResponseToJSON, - HostEdit200ResponseFromJSON, - HostEdit200ResponseToJSON, - HostEditRequestFromJSON, - HostEditRequestToJSON, - HostEnrollCodeCreate200ResponseFromJSON, - HostEnrollCodeCreate200ResponseToJSON, - HostGet200ResponseFromJSON, - HostGet200ResponseToJSON, - HostsList200ResponseFromJSON, - HostsList200ResponseToJSON, -} from '../models'; - -export interface HostAndEnrollCodeCreateRequest { - hostCreateRequest: HostCreateRequest; -} - -export interface HostBlockRequest { - hostID: string; -} - -export interface HostCreateOperationRequest { - hostCreateRequest: HostCreateRequest; -} - -export interface HostDeleteRequest { - hostID: string; -} - -export interface HostEditOperationRequest { - hostID: string; - hostEditRequest: HostEditRequest; -} - -export interface HostEnrollCodeCreateRequest { - hostID: string; -} - -export interface HostGetRequest { - hostID: string; -} - -export interface HostsListRequest { - includeCounts?: boolean; - cursor?: string; - pageSize?: number; - filterIsBlocked?: boolean; - filterIsLighthouse?: boolean; - filterIsRelay?: boolean; - filterMetadataLastSeenAt?: HostsListFilterMetadataLastSeenAtEnum; - filterMetadataPlatform?: HostsListFilterMetadataPlatformEnum; - filterMetadataUpdateAvailable?: boolean; -} - -/** - * - */ -export class HostsApi extends runtime.BaseAPI { - - /** - * Token scopes required: `hosts:create`, `hosts:enroll` ### Request - * Create host & enrollment code - */ - async hostAndEnrollCodeCreateRaw(requestParameters: HostAndEnrollCodeCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.hostCreateRequest === null || requestParameters.hostCreateRequest === undefined) { - throw new runtime.RequiredError('hostCreateRequest','Required parameter requestParameters.hostCreateRequest was null or undefined when calling hostAndEnrollCodeCreate.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/host-and-enrollment-code`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: HostCreateRequestToJSON(requestParameters.hostCreateRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HostAndEnrollCodeCreate200ResponseFromJSON(jsonValue)); - } - - /** - * Token scopes required: `hosts:create`, `hosts:enroll` ### Request - * Create host & enrollment code - */ - async hostAndEnrollCodeCreate(requestParameters: HostAndEnrollCodeCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.hostAndEnrollCodeCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Prevent a host from being able to interact with other nodes on your network. See https://www.defined.net/blog/blocklisting/ for more details. To unblock, re-enroll the host. Token scope required: `hosts:block` ### Request - * Block host - */ - async hostBlockRaw(requestParameters: HostBlockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.hostID === null || requestParameters.hostID === undefined) { - throw new runtime.RequiredError('hostID','Required parameter requestParameters.hostID was null or undefined when calling hostBlock.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/hosts/{hostID}/block`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HostBlock200ResponseFromJSON(jsonValue)); - } - - /** - * Prevent a host from being able to interact with other nodes on your network. See https://www.defined.net/blog/blocklisting/ for more details. To unblock, re-enroll the host. Token scope required: `hosts:block` ### Request - * Block host - */ - async hostBlock(requestParameters: HostBlockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.hostBlockRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Create a new host, lighthouse, or relay. Token scope required: `hosts:create` ### Request - * Create host - */ - async hostCreateRaw(requestParameters: HostCreateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.hostCreateRequest === null || requestParameters.hostCreateRequest === undefined) { - throw new runtime.RequiredError('hostCreateRequest','Required parameter requestParameters.hostCreateRequest was null or undefined when calling hostCreate.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/hosts`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: HostCreateRequestToJSON(requestParameters.hostCreateRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HostCreate200ResponseFromJSON(jsonValue)); - } - - /** - * Create a new host, lighthouse, or relay. Token scope required: `hosts:create` ### Request - * Create host - */ - async hostCreate(requestParameters: HostCreateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.hostCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Token scope required: `hosts:delete` ### Request - * Delete host - */ - async hostDeleteRaw(requestParameters: HostDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.hostID === null || requestParameters.hostID === undefined) { - throw new runtime.RequiredError('hostID','Required parameter requestParameters.hostID was null or undefined when calling hostDelete.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/hosts/{hostID}`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HostDelete200ResponseFromJSON(jsonValue)); - } - - /** - * Token scope required: `hosts:delete` ### Request - * Delete host - */ - async hostDelete(requestParameters: HostDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.hostDeleteRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Token scope required: `hosts:update` :::caution Any properties not provided in the request will be reset to their default values. ::: ### Request - * Edit host - */ - async hostEditRaw(requestParameters: HostEditOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.hostID === null || requestParameters.hostID === undefined) { - throw new runtime.RequiredError('hostID','Required parameter requestParameters.hostID was null or undefined when calling hostEdit.'); - } - - if (requestParameters.hostEditRequest === null || requestParameters.hostEditRequest === undefined) { - throw new runtime.RequiredError('hostEditRequest','Required parameter requestParameters.hostEditRequest was null or undefined when calling hostEdit.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/hosts/{hostID}`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: HostEditRequestToJSON(requestParameters.hostEditRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HostEdit200ResponseFromJSON(jsonValue)); - } - - /** - * Token scope required: `hosts:update` :::caution Any properties not provided in the request will be reset to their default values. ::: ### Request - * Edit host - */ - async hostEdit(requestParameters: HostEditOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.hostEditRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Obtain a code that can be used with the `dnclient enroll` command on a host, lighthouse, or relay to enroll it into your Managed Nebula network. Token scope required: `hosts:enroll` ### Request - * Create enrollment code - */ - async hostEnrollCodeCreateRaw(requestParameters: HostEnrollCodeCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.hostID === null || requestParameters.hostID === undefined) { - throw new runtime.RequiredError('hostID','Required parameter requestParameters.hostID was null or undefined when calling hostEnrollCodeCreate.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/hosts/{hostID}/enrollment-code`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HostEnrollCodeCreate200ResponseFromJSON(jsonValue)); - } - - /** - * Obtain a code that can be used with the `dnclient enroll` command on a host, lighthouse, or relay to enroll it into your Managed Nebula network. Token scope required: `hosts:enroll` ### Request - * Create enrollment code - */ - async hostEnrollCodeCreate(requestParameters: HostEnrollCodeCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.hostEnrollCodeCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Fetch information about a particular host, lighthouse, or relay. Token scope required: `hosts:read` ### Request - * Get host - */ - async hostGetRaw(requestParameters: HostGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.hostID === null || requestParameters.hostID === undefined) { - throw new runtime.RequiredError('hostID','Required parameter requestParameters.hostID was null or undefined when calling hostGet.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/hosts/{hostID}`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HostGet200ResponseFromJSON(jsonValue)); - } - - /** - * Fetch information about a particular host, lighthouse, or relay. Token scope required: `hosts:read` ### Request - * Get host - */ - async hostGet(requestParameters: HostGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.hostGetRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get a paginated list of hosts, lighthouses, and relays. Token scope required: `hosts:list` ### Request - * List hosts - */ - async hostsListRaw(requestParameters: HostsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters.includeCounts !== undefined) { - queryParameters['includeCounts'] = requestParameters.includeCounts; - } - - if (requestParameters.cursor !== undefined) { - queryParameters['cursor'] = requestParameters.cursor; - } - - if (requestParameters.pageSize !== undefined) { - queryParameters['pageSize'] = requestParameters.pageSize; - } - - if (requestParameters.filterIsBlocked !== undefined) { - queryParameters['filter.isBlocked'] = requestParameters.filterIsBlocked; - } - - if (requestParameters.filterIsLighthouse !== undefined) { - queryParameters['filter.isLighthouse'] = requestParameters.filterIsLighthouse; - } - - if (requestParameters.filterIsRelay !== undefined) { - queryParameters['filter.isRelay'] = requestParameters.filterIsRelay; - } - - if (requestParameters.filterMetadataLastSeenAt !== undefined) { - queryParameters['filter.metadata.lastSeenAt'] = requestParameters.filterMetadataLastSeenAt; - } - - if (requestParameters.filterMetadataPlatform !== undefined) { - queryParameters['filter.metadata.platform'] = requestParameters.filterMetadataPlatform; - } - - if (requestParameters.filterMetadataUpdateAvailable !== undefined) { - queryParameters['filter.metadata.updateAvailable'] = requestParameters.filterMetadataUpdateAvailable; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/hosts`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HostsList200ResponseFromJSON(jsonValue)); - } - - /** - * Get a paginated list of hosts, lighthouses, and relays. Token scope required: `hosts:list` ### Request - * List hosts - */ - async hostsList(requestParameters: HostsListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.hostsListRaw(requestParameters, initOverrides); - return await response.value(); - } - -} - -/** - * @export - */ -export const HostsListFilterMetadataLastSeenAtEnum = { - Null: 'null' -} as const; -export type HostsListFilterMetadataLastSeenAtEnum = typeof HostsListFilterMetadataLastSeenAtEnum[keyof typeof HostsListFilterMetadataLastSeenAtEnum]; -/** - * @export - */ -export const HostsListFilterMetadataPlatformEnum = { - Mobile: 'mobile', - Dnclient: 'dnclient', - Null: 'null' -} as const; -export type HostsListFilterMetadataPlatformEnum = typeof HostsListFilterMetadataPlatformEnum[keyof typeof HostsListFilterMetadataPlatformEnum]; diff --git a/tfweb/src/lib/api/apis/NetworksApi.js b/tfweb/src/lib/api/apis/NetworksApi.js deleted file mode 100644 index 3c7bfdd..0000000 --- a/tfweb/src/lib/api/apis/NetworksApi.js +++ /dev/null @@ -1,93 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import { NetworkGet200ResponseFromJSON, NetworkGet200ResponseToJSON, NetworksList200ResponseFromJSON, NetworksList200ResponseToJSON, } from '../models'; -/** - * - */ -export class NetworksApi extends runtime.BaseAPI { - /** - * Fetch information about a particular network. Token scope required: `networks:read` ### Request - * Get network - */ - async networkGetRaw(requestParameters, initOverrides) { - if (requestParameters.networkID === null || requestParameters.networkID === undefined) { - throw new runtime.RequiredError('networkID', 'Required parameter requestParameters.networkID was null or undefined when calling networkGet.'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/networks/{networkID}`.replace(`{${"networkID"}}`, encodeURIComponent(String(requestParameters.networkID))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => NetworkGet200ResponseFromJSON(jsonValue)); - } - /** - * Fetch information about a particular network. Token scope required: `networks:read` ### Request - * Get network - */ - async networkGet(requestParameters, initOverrides) { - const response = await this.networkGetRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get a paginated list of networks. :::note Currently, there is a limit of one network per Defined Networking account. ::: Token scope required: `networks:list` ### Request - * List networks - */ - async networksListRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters.includeCounts !== undefined) { - queryParameters['includeCounts'] = requestParameters.includeCounts; - } - if (requestParameters.cursor !== undefined) { - queryParameters['cursor'] = requestParameters.cursor; - } - if (requestParameters.pageSize !== undefined) { - queryParameters['pageSize'] = requestParameters.pageSize; - } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/networks`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => NetworksList200ResponseFromJSON(jsonValue)); - } - /** - * Get a paginated list of networks. :::note Currently, there is a limit of one network per Defined Networking account. ::: Token scope required: `networks:list` ### Request - * List networks - */ - async networksList(requestParameters = {}, initOverrides) { - const response = await this.networksListRaw(requestParameters, initOverrides); - return await response.value(); - } -} -//# sourceMappingURL=NetworksApi.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/apis/NetworksApi.js.map b/tfweb/src/lib/api/apis/NetworksApi.js.map deleted file mode 100644 index dc5b4a0..0000000 --- a/tfweb/src/lib/api/apis/NetworksApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NetworksApi.js","sourceRoot":"","sources":["NetworksApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAKtC,OAAO,EACH,6BAA6B,EAC7B,2BAA2B,EAC3B,+BAA+B,EAC/B,6BAA6B,GAChC,MAAM,WAAW,CAAC;AAYnB;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO;IAE5C;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,iBAAoC,EAAE,aAA0D;QAChH,IAAI,iBAAiB,CAAC,SAAS,KAAK,IAAI,IAAI,iBAAiB,CAAC,SAAS,KAAK,SAAS,EAAE;YACnF,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,WAAW,EAAC,+FAA+F,CAAC,CAAC;SAChJ;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE;YACtD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;YAEhD,IAAI,WAAW,EAAE;gBACb,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;aAC/D;SACJ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M,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;YAEhD,IAAI,WAAW,EAAE;gBACb,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;aAC/D;SACJ;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,cAAc;YACpB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,+BAA+B,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5G,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,oBAAyC,EAAE,EAAE,aAA0D;QACtH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC9E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ"} \ No newline at end of file diff --git a/tfweb/src/lib/api/apis/NetworksApi.ts b/tfweb/src/lib/api/apis/NetworksApi.ts deleted file mode 100644 index ffb3e14..0000000 --- a/tfweb/src/lib/api/apis/NetworksApi.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - NetworkGet200Response, - NetworksList200Response, -} from '../models'; -import { - NetworkGet200ResponseFromJSON, - NetworkGet200ResponseToJSON, - NetworksList200ResponseFromJSON, - NetworksList200ResponseToJSON, -} from '../models'; - -export interface NetworkGetRequest { - networkID: string; -} - -export interface NetworksListRequest { - includeCounts?: boolean; - cursor?: string; - pageSize?: number; -} - -/** - * - */ -export class NetworksApi extends runtime.BaseAPI { - - /** - * Fetch information about a particular network. Token scope required: `networks:read` ### Request - * Get network - */ - async networkGetRaw(requestParameters: NetworkGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.networkID === null || requestParameters.networkID === undefined) { - throw new runtime.RequiredError('networkID','Required parameter requestParameters.networkID was null or undefined when calling networkGet.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/networks/{networkID}`.replace(`{${"networkID"}}`, encodeURIComponent(String(requestParameters.networkID))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => NetworkGet200ResponseFromJSON(jsonValue)); - } - - /** - * Fetch information about a particular network. Token scope required: `networks:read` ### Request - * Get network - */ - async networkGet(requestParameters: NetworkGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.networkGetRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get a paginated list of networks. :::note Currently, there is a limit of one network per Defined Networking account. ::: Token scope required: `networks:list` ### Request - * List networks - */ - async networksListRaw(requestParameters: NetworksListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters.includeCounts !== undefined) { - queryParameters['includeCounts'] = requestParameters.includeCounts; - } - - if (requestParameters.cursor !== undefined) { - queryParameters['cursor'] = requestParameters.cursor; - } - - if (requestParameters.pageSize !== undefined) { - queryParameters['pageSize'] = requestParameters.pageSize; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/networks`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => NetworksList200ResponseFromJSON(jsonValue)); - } - - /** - * Get a paginated list of networks. :::note Currently, there is a limit of one network per Defined Networking account. ::: Token scope required: `networks:list` ### Request - * List networks - */ - async networksList(requestParameters: NetworksListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.networksListRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/tfweb/src/lib/api/apis/RolesApi.js b/tfweb/src/lib/api/apis/RolesApi.js deleted file mode 100644 index 882f8d5..0000000 --- a/tfweb/src/lib/api/apis/RolesApi.js +++ /dev/null @@ -1,199 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import { HostAndEnrollCodeCreate400ResponseFromJSON, HostAndEnrollCodeCreate400ResponseToJSON, HostDelete200ResponseFromJSON, HostDelete200ResponseToJSON, RoleCreate200ResponseFromJSON, RoleCreate200ResponseToJSON, RoleCreateRequestFromJSON, RoleCreateRequestToJSON, RoleEditRequestFromJSON, RoleEditRequestToJSON, RolesList200ResponseFromJSON, RolesList200ResponseToJSON, } from '../models'; -/** - * - */ -export class RolesApi extends runtime.BaseAPI { - /** - * Create a new role. Token scope required: `roles:create` ### Request - * Create role - */ - async roleCreateRaw(requestParameters, initOverrides) { - if (requestParameters.roleCreateRequest === null || requestParameters.roleCreateRequest === undefined) { - throw new runtime.RequiredError('roleCreateRequest', 'Required parameter requestParameters.roleCreateRequest was null or undefined when calling roleCreate.'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/roles`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: RoleCreateRequestToJSON(requestParameters.roleCreateRequest), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => RoleCreate200ResponseFromJSON(jsonValue)); - } - /** - * Create a new role. Token scope required: `roles:create` ### Request - * Create role - */ - async roleCreate(requestParameters, initOverrides) { - const response = await this.roleCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Token scope required: `roles:delete` ### Request - * Delete role - */ - async roleDeleteRaw(requestParameters, initOverrides) { - if (requestParameters.roleID === null || requestParameters.roleID === undefined) { - throw new runtime.RequiredError('roleID', 'Required parameter requestParameters.roleID was null or undefined when calling roleDelete.'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/roles/{roleID}`.replace(`{${"roleID"}}`, encodeURIComponent(String(requestParameters.roleID))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => HostDelete200ResponseFromJSON(jsonValue)); - } - /** - * Token scope required: `roles:delete` ### Request - * Delete role - */ - async roleDelete(requestParameters, initOverrides) { - const response = await this.roleDeleteRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Token scope required: `roles:update` :::caution Any properties not provided in the request will be reset to their default values. If only changing one firewall rule, be sure to include the others as well, otherwise they will be removed. ::: ### Request - * Edit role - */ - async roleEditRaw(requestParameters, initOverrides) { - if (requestParameters.roleID === null || requestParameters.roleID === undefined) { - throw new runtime.RequiredError('roleID', 'Required parameter requestParameters.roleID was null or undefined when calling roleEdit.'); - } - if (requestParameters.roleEditRequest === null || requestParameters.roleEditRequest === undefined) { - throw new runtime.RequiredError('roleEditRequest', 'Required parameter requestParameters.roleEditRequest was null or undefined when calling roleEdit.'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/roles/{roleID}`.replace(`{${"roleID"}}`, encodeURIComponent(String(requestParameters.roleID))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: RoleEditRequestToJSON(requestParameters.roleEditRequest), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => RoleCreate200ResponseFromJSON(jsonValue)); - } - /** - * Token scope required: `roles:update` :::caution Any properties not provided in the request will be reset to their default values. If only changing one firewall rule, be sure to include the others as well, otherwise they will be removed. ::: ### Request - * Edit role - */ - async roleEdit(requestParameters, initOverrides) { - const response = await this.roleEditRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Fetch information about a particular role. Token scope required: `roles:read` ### Request - * Get role - */ - async roleGetRaw(requestParameters, initOverrides) { - if (requestParameters.roleID === null || requestParameters.roleID === undefined) { - throw new runtime.RequiredError('roleID', 'Required parameter requestParameters.roleID was null or undefined when calling roleGet.'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/roles/{roleID}`.replace(`{${"roleID"}}`, encodeURIComponent(String(requestParameters.roleID))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => RoleCreate200ResponseFromJSON(jsonValue)); - } - /** - * Fetch information about a particular role. Token scope required: `roles:read` ### Request - * Get role - */ - async roleGet(requestParameters, initOverrides) { - const response = await this.roleGetRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get a paginated list of roles. Token scope required: `roles:list` ### Request - * List roles - */ - async rolesListRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters.includeCounts !== undefined) { - queryParameters['includeCounts'] = requestParameters.includeCounts; - } - if (requestParameters.cursor !== undefined) { - queryParameters['cursor'] = requestParameters.cursor; - } - if (requestParameters.pageSize !== undefined) { - queryParameters['pageSize'] = requestParameters.pageSize; - } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/roles`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => RolesList200ResponseFromJSON(jsonValue)); - } - /** - * Get a paginated list of roles. Token scope required: `roles:list` ### Request - * List roles - */ - async rolesList(requestParameters = {}, initOverrides) { - const response = await this.rolesListRaw(requestParameters, initOverrides); - return await response.value(); - } -} -//# sourceMappingURL=RolesApi.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/apis/RolesApi.js.map b/tfweb/src/lib/api/apis/RolesApi.js.map deleted file mode 100644 index 1bae180..0000000 --- a/tfweb/src/lib/api/apis/RolesApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RolesApi.js","sourceRoot":"","sources":["RolesApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAStC,OAAO,EACH,0CAA0C,EAC1C,wCAAwC,EACxC,6BAA6B,EAC7B,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,4BAA4B,EAC5B,0BAA0B,GAC7B,MAAM,WAAW,CAAC;AAyBnB;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,OAAO,CAAC,OAAO;IAEzC;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,iBAA6C,EAAE,aAA0D;QACzH,IAAI,iBAAiB,CAAC,iBAAiB,KAAK,IAAI,IAAI,iBAAiB,CAAC,iBAAiB,KAAK,SAAS,EAAE;YACnG,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,mBAAmB,EAAC,uGAAuG,CAAC,CAAC;SAChK;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE;YACtD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;YAEhD,IAAI,WAAW,EAAE;gBACb,gBA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/lib/api/apis/RolesApi.ts deleted file mode 100644 index 92f491f..0000000 --- a/tfweb/src/lib/api/apis/RolesApi.ts +++ /dev/null @@ -1,286 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - HostAndEnrollCodeCreate400Response, - HostDelete200Response, - RoleCreate200Response, - RoleCreateRequest, - RoleEditRequest, - RolesList200Response, -} from '../models'; -import { - HostAndEnrollCodeCreate400ResponseFromJSON, - HostAndEnrollCodeCreate400ResponseToJSON, - HostDelete200ResponseFromJSON, - HostDelete200ResponseToJSON, - RoleCreate200ResponseFromJSON, - RoleCreate200ResponseToJSON, - RoleCreateRequestFromJSON, - RoleCreateRequestToJSON, - RoleEditRequestFromJSON, - RoleEditRequestToJSON, - RolesList200ResponseFromJSON, - RolesList200ResponseToJSON, -} from '../models'; - -export interface RoleCreateOperationRequest { - roleCreateRequest: RoleCreateRequest; -} - -export interface RoleDeleteRequest { - roleID: string; -} - -export interface RoleEditOperationRequest { - roleID: string; - roleEditRequest: RoleEditRequest; -} - -export interface RoleGetRequest { - roleID: string; -} - -export interface RolesListRequest { - includeCounts?: boolean; - cursor?: string; - pageSize?: number; -} - -/** - * - */ -export class RolesApi extends runtime.BaseAPI { - - /** - * Create a new role. Token scope required: `roles:create` ### Request - * Create role - */ - async roleCreateRaw(requestParameters: RoleCreateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.roleCreateRequest === null || requestParameters.roleCreateRequest === undefined) { - throw new runtime.RequiredError('roleCreateRequest','Required parameter requestParameters.roleCreateRequest was null or undefined when calling roleCreate.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/roles`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: RoleCreateRequestToJSON(requestParameters.roleCreateRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => RoleCreate200ResponseFromJSON(jsonValue)); - } - - /** - * Create a new role. Token scope required: `roles:create` ### Request - * Create role - */ - async roleCreate(requestParameters: RoleCreateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.roleCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Token scope required: `roles:delete` ### Request - * Delete role - */ - async roleDeleteRaw(requestParameters: RoleDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.roleID === null || requestParameters.roleID === undefined) { - throw new runtime.RequiredError('roleID','Required parameter requestParameters.roleID was null or undefined when calling roleDelete.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/roles/{roleID}`.replace(`{${"roleID"}}`, encodeURIComponent(String(requestParameters.roleID))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HostDelete200ResponseFromJSON(jsonValue)); - } - - /** - * Token scope required: `roles:delete` ### Request - * Delete role - */ - async roleDelete(requestParameters: RoleDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.roleDeleteRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Token scope required: `roles:update` :::caution Any properties not provided in the request will be reset to their default values. If only changing one firewall rule, be sure to include the others as well, otherwise they will be removed. ::: ### Request - * Edit role - */ - async roleEditRaw(requestParameters: RoleEditOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.roleID === null || requestParameters.roleID === undefined) { - throw new runtime.RequiredError('roleID','Required parameter requestParameters.roleID was null or undefined when calling roleEdit.'); - } - - if (requestParameters.roleEditRequest === null || requestParameters.roleEditRequest === undefined) { - throw new runtime.RequiredError('roleEditRequest','Required parameter requestParameters.roleEditRequest was null or undefined when calling roleEdit.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/roles/{roleID}`.replace(`{${"roleID"}}`, encodeURIComponent(String(requestParameters.roleID))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: RoleEditRequestToJSON(requestParameters.roleEditRequest), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => RoleCreate200ResponseFromJSON(jsonValue)); - } - - /** - * Token scope required: `roles:update` :::caution Any properties not provided in the request will be reset to their default values. If only changing one firewall rule, be sure to include the others as well, otherwise they will be removed. ::: ### Request - * Edit role - */ - async roleEdit(requestParameters: RoleEditOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.roleEditRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Fetch information about a particular role. Token scope required: `roles:read` ### Request - * Get role - */ - async roleGetRaw(requestParameters: RoleGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.roleID === null || requestParameters.roleID === undefined) { - throw new runtime.RequiredError('roleID','Required parameter requestParameters.roleID was null or undefined when calling roleGet.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/roles/{roleID}`.replace(`{${"roleID"}}`, encodeURIComponent(String(requestParameters.roleID))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => RoleCreate200ResponseFromJSON(jsonValue)); - } - - /** - * Fetch information about a particular role. Token scope required: `roles:read` ### Request - * Get role - */ - async roleGet(requestParameters: RoleGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.roleGetRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get a paginated list of roles. Token scope required: `roles:list` ### Request - * List roles - */ - async rolesListRaw(requestParameters: RolesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters.includeCounts !== undefined) { - queryParameters['includeCounts'] = requestParameters.includeCounts; - } - - if (requestParameters.cursor !== undefined) { - queryParameters['cursor'] = requestParameters.cursor; - } - - if (requestParameters.pageSize !== undefined) { - queryParameters['pageSize'] = requestParameters.pageSize; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("ApiToken", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/v1/roles`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => RolesList200ResponseFromJSON(jsonValue)); - } - - /** - * Get a paginated list of roles. Token scope required: `roles:list` ### Request - * List roles - */ - async rolesList(requestParameters: RolesListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.rolesListRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/tfweb/src/lib/api/apis/index.js b/tfweb/src/lib/api/apis/index.js deleted file mode 100644 index eaef1cc..0000000 --- a/tfweb/src/lib/api/apis/index.js +++ /dev/null @@ -1,8 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './AuditLogsApi'; -export * from './DownloadsApi'; -export * from './HostsApi'; -export * from './NetworksApi'; -export * from './RolesApi'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/apis/index.js.map b/tfweb/src/lib/api/apis/index.js.map deleted file mode 100644 index a1ff3bf..0000000 --- a/tfweb/src/lib/api/apis/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/apis/index.ts b/tfweb/src/lib/api/apis/index.ts deleted file mode 100644 index 8bb005c..0000000 --- a/tfweb/src/lib/api/apis/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './AuditLogsApi'; -export * from './DownloadsApi'; -export * from './HostsApi'; -export * from './NetworksApi'; -export * from './RolesApi'; diff --git a/tfweb/src/lib/api/index.js b/tfweb/src/lib/api/index.js deleted file mode 100644 index 505ce4b..0000000 --- a/tfweb/src/lib/api/index.js +++ /dev/null @@ -1,6 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './runtime'; -export * from './apis'; -export * from './models'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/index.js.map b/tfweb/src/lib/api/index.js.map deleted file mode 100644 index 319333d..0000000 --- a/tfweb/src/lib/api/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/index.ts b/tfweb/src/lib/api/index.ts deleted file mode 100644 index be9d1ed..0000000 --- a/tfweb/src/lib/api/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './runtime'; -export * from './apis'; -export * from './models'; diff --git a/tfweb/src/lib/api/models/Actor.js b/tfweb/src/lib/api/models/Actor.js deleted file mode 100644 index 6bbaaef..0000000 --- a/tfweb/src/lib/api/models/Actor.js +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { instanceOfActorAPIKey, ActorAPIKeyFromJSON, ActorAPIKeyFromJSONTyped, ActorAPIKeyToJSON, } from './ActorAPIKey'; -import { instanceOfActorHost, ActorHostFromJSON, ActorHostFromJSONTyped, ActorHostToJSON, } from './ActorHost'; -import { instanceOfActorOIDCUser, ActorOIDCUserFromJSON, ActorOIDCUserFromJSONTyped, ActorOIDCUserToJSON, } from './ActorOIDCUser'; -import { instanceOfActorSupport, ActorSupportFromJSON, ActorSupportFromJSONTyped, ActorSupportToJSON, } from './ActorSupport'; -import { instanceOfActorSystem, ActorSystemFromJSON, ActorSystemFromJSONTyped, ActorSystemToJSON, } from './ActorSystem'; -import { instanceOfActorUser, ActorUserFromJSON, ActorUserFromJSONTyped, ActorUserToJSON, } from './ActorUser'; -export function ActorFromJSON(json) { - return ActorFromJSONTyped(json, false); -} -export function ActorFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { ...ActorAPIKeyFromJSONTyped(json, true), ...ActorHostFromJSONTyped(json, true), ...ActorOIDCUserFromJSONTyped(json, true), ...ActorSupportFromJSONTyped(json, true), ...ActorSystemFromJSONTyped(json, true), ...ActorUserFromJSONTyped(json, true) }; -} -export function ActorToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - if (instanceOfActorAPIKey(value)) { - return ActorAPIKeyToJSON(value); - } - if (instanceOfActorHost(value)) { - return ActorHostToJSON(value); - } - if (instanceOfActorOIDCUser(value)) { - return ActorOIDCUserToJSON(value); - } - if (instanceOfActorSupport(value)) { - return ActorSupportToJSON(value); - } - if (instanceOfActorSystem(value)) { - return ActorSystemToJSON(value); - } - if (instanceOfActorUser(value)) { - return ActorUserToJSON(value); - } - return {}; -} -//# sourceMappingURL=Actor.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Actor.js.map b/tfweb/src/lib/api/models/Actor.js.map deleted file mode 100644 index 98b0745..0000000 --- a/tfweb/src/lib/api/models/Actor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Actor.js","sourceRoot":"","sources":["Actor.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,OAAO,EACH,qBAAqB,EACrB,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,GACpB,MAAM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ChB,OAAO,IAAI,CAAC;KACf;IAED,IAAI,qBAAqB,CAAC,KAAK,CAAC,EAAE;QAC9B,OAAO,iBAAiB,CAAC,KAAoB,CAAC,CAAC;KAClD;IACD,IAAI,mBAAmB,CAAC,KAAK,CAAC,EAAE;QAC5B,OAAO,eAAe,CAAC,KAAkB,CAAC,CAAC;KAC9C;IACD,IAAI,uBAAuB,CAAC,KAAK,CAAC,EAAE;QAChC,OAAO,mBAAmB,CAAC,KAAsB,CAAC,CAAC;KACtD;IACD,IAAI,sBAAsB,CAAC,KAAK,CAAC,EAAE;QAC/B,OAAO,kBAAkB,CAAC,KAAqB,CAAC,CAAC;KACpD;IACD,IAAI,qBAAqB,CAAC,KAAK,CAAC,EAAE;QAC9B,OAAO,iBAAiB,CAAC,KAAoB,CAAC,CAAC;KAClD;IACD,IAAI,mBAAmB,CAAC,KAAK,CAAC,EAAE;QAC5B,OAAO,eAAe,CAAC,KAAkB,CAAC,CAAC;KAC9C;IAED,OAAO,EAAE,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Actor.ts b/tfweb/src/lib/api/models/Actor.ts deleted file mode 100644 index 4f901aa..0000000 --- a/tfweb/src/lib/api/models/Actor.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import type {ActorAPIKey} from './ActorAPIKey'; -import { - instanceOfActorAPIKey, - ActorAPIKeyFromJSON, - ActorAPIKeyFromJSONTyped, - ActorAPIKeyToJSON, -} from './ActorAPIKey'; -import type {ActorHost} from './ActorHost'; -import { - instanceOfActorHost, - ActorHostFromJSON, - ActorHostFromJSONTyped, - ActorHostToJSON, -} from './ActorHost'; -import type {ActorOIDCUser} from './ActorOIDCUser'; -import { - instanceOfActorOIDCUser, - ActorOIDCUserFromJSON, - ActorOIDCUserFromJSONTyped, - ActorOIDCUserToJSON, -} from './ActorOIDCUser'; -import type {ActorSupport} from './ActorSupport'; -import { - instanceOfActorSupport, - ActorSupportFromJSON, - ActorSupportFromJSONTyped, - ActorSupportToJSON, -} from './ActorSupport'; -import type {ActorSystem} from './ActorSystem'; -import { - instanceOfActorSystem, - ActorSystemFromJSON, - ActorSystemFromJSONTyped, - ActorSystemToJSON, -} from './ActorSystem'; -import type {ActorUser} from './ActorUser'; -import { - instanceOfActorUser, - ActorUserFromJSON, - ActorUserFromJSONTyped, - ActorUserToJSON, -} from './ActorUser'; - -/** - * @type Actor - * The entity performing the action which caused a change. - * @export - */ -export type Actor = ActorAPIKey | ActorHost | ActorOIDCUser | ActorSupport | ActorSystem | ActorUser; - -export function ActorFromJSON(json: any): Actor { - return ActorFromJSONTyped(json, false); -} - -export function ActorFromJSONTyped(json: any, ignoreDiscriminator: boolean): Actor { - if ((json === undefined) || (json === null)) { - return json; - } - return { ...ActorAPIKeyFromJSONTyped(json, true), ...ActorHostFromJSONTyped(json, true), ...ActorOIDCUserFromJSONTyped(json, true), ...ActorSupportFromJSONTyped(json, true), ...ActorSystemFromJSONTyped(json, true), ...ActorUserFromJSONTyped(json, true) }; -} - -export function ActorToJSON(value?: Actor | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - - if (instanceOfActorAPIKey(value)) { - return ActorAPIKeyToJSON(value as ActorAPIKey); - } - if (instanceOfActorHost(value)) { - return ActorHostToJSON(value as ActorHost); - } - if (instanceOfActorOIDCUser(value)) { - return ActorOIDCUserToJSON(value as ActorOIDCUser); - } - if (instanceOfActorSupport(value)) { - return ActorSupportToJSON(value as ActorSupport); - } - if (instanceOfActorSystem(value)) { - return ActorSystemToJSON(value as ActorSystem); - } - if (instanceOfActorUser(value)) { - return ActorUserToJSON(value as ActorUser); - } - - return {}; -} - diff --git a/tfweb/src/lib/api/models/ActorAPIKey.js b/tfweb/src/lib/api/models/ActorAPIKey.js deleted file mode 100644 index 3f38aac..0000000 --- a/tfweb/src/lib/api/models/ActorAPIKey.js +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * @export - */ -export const ActorAPIKeyTypeEnum = { - ApiKey: 'apiKey' -}; -/** - * Check if a given object implements the ActorAPIKey interface. - */ -export function instanceOfActorAPIKey(value) { - let isInstance = true; - return isInstance; -} -export function ActorAPIKeyFromJSON(json) { - return ActorAPIKeyFromJSONTyped(json, false); -} -export function ActorAPIKeyFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'type': !exists(json, 'type') ? undefined : json['type'], - 'id': !exists(json, 'id') ? undefined : json['id'], - 'name': !exists(json, 'name') ? undefined : json['name'], - }; -} -export function ActorAPIKeyToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'type': value.type, - 'id': value.id, - 'name': value.name, - }; -} -//# sourceMappingURL=ActorAPIKey.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ActorAPIKey.js.map b/tfweb/src/lib/api/models/ActorAPIKey.js.map deleted file mode 100644 index ea8146e..0000000 --- a/tfweb/src/lib/api/models/ActorAPIKey.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActorAPIKey.js","sourceRoot":"","sources":["ActorAPIKey.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA4B/C;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,MAAM,EAAE,QAAQ;CACV,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAa;IAC/C,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,IAAI,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAClD,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAA0B;IACxD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,MAAM,EAAE,KAAK,CAAC,IAAI;KACrB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ActorAPIKey.ts b/tfweb/src/lib/api/models/ActorAPIKey.ts deleted file mode 100644 index 55b9952..0000000 --- a/tfweb/src/lib/api/models/ActorAPIKey.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ActorAPIKey - */ -export interface ActorAPIKey { - /** - * An API key which used to perform the action. - * @type {string} - * @memberof ActorAPIKey - */ - type?: ActorAPIKeyTypeEnum; - /** - * - * @type {string} - * @memberof ActorAPIKey - */ - id?: string; - /** - * - * @type {string} - * @memberof ActorAPIKey - */ - name?: string | null; -} - - -/** - * @export - */ -export const ActorAPIKeyTypeEnum = { - ApiKey: 'apiKey' -} as const; -export type ActorAPIKeyTypeEnum = typeof ActorAPIKeyTypeEnum[keyof typeof ActorAPIKeyTypeEnum]; - - -/** - * Check if a given object implements the ActorAPIKey interface. - */ -export function instanceOfActorAPIKey(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function ActorAPIKeyFromJSON(json: any): ActorAPIKey { - return ActorAPIKeyFromJSONTyped(json, false); -} - -export function ActorAPIKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActorAPIKey { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'type': !exists(json, 'type') ? undefined : json['type'], - 'id': !exists(json, 'id') ? undefined : json['id'], - 'name': !exists(json, 'name') ? undefined : json['name'], - }; -} - -export function ActorAPIKeyToJSON(value?: ActorAPIKey | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'type': value.type, - 'id': value.id, - 'name': value.name, - }; -} - diff --git a/tfweb/src/lib/api/models/ActorHost.js b/tfweb/src/lib/api/models/ActorHost.js deleted file mode 100644 index ee12a92..0000000 --- a/tfweb/src/lib/api/models/ActorHost.js +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * @export - */ -export const ActorHostTypeEnum = { - Host: 'host' -}; -/** - * Check if a given object implements the ActorHost interface. - */ -export function instanceOfActorHost(value) { - let isInstance = true; - return isInstance; -} -export function ActorHostFromJSON(json) { - return ActorHostFromJSONTyped(json, false); -} -export function ActorHostFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'type': !exists(json, 'type') ? undefined : json['type'], - 'id': !exists(json, 'id') ? undefined : json['id'], - 'name': !exists(json, 'name') ? undefined : json['name'], - }; -} -export function ActorHostToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'type': value.type, - 'id': value.id, - 'name': value.name, - }; -} -//# sourceMappingURL=ActorHost.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ActorHost.js.map b/tfweb/src/lib/api/models/ActorHost.js.map deleted file mode 100644 index 941e5e2..0000000 --- a/tfweb/src/lib/api/models/ActorHost.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActorHost.js","sourceRoot":"","sources":["ActorHost.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA4B/C;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,MAAM;CACN,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC7C,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,IAAI,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAClD,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAwB;IACpD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,MAAM,EAAE,KAAK,CAAC,IAAI;KACrB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ActorHost.ts b/tfweb/src/lib/api/models/ActorHost.ts deleted file mode 100644 index a753f78..0000000 --- a/tfweb/src/lib/api/models/ActorHost.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ActorHost - */ -export interface ActorHost { - /** - * A host. Used for example when hosts are enrolled. - * @type {string} - * @memberof ActorHost - */ - type?: ActorHostTypeEnum; - /** - * - * @type {string} - * @memberof ActorHost - */ - id?: string; - /** - * - * @type {string} - * @memberof ActorHost - */ - name?: string | null; -} - - -/** - * @export - */ -export const ActorHostTypeEnum = { - Host: 'host' -} as const; -export type ActorHostTypeEnum = typeof ActorHostTypeEnum[keyof typeof ActorHostTypeEnum]; - - -/** - * Check if a given object implements the ActorHost interface. - */ -export function instanceOfActorHost(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function ActorHostFromJSON(json: any): ActorHost { - return ActorHostFromJSONTyped(json, false); -} - -export function ActorHostFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActorHost { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'type': !exists(json, 'type') ? undefined : json['type'], - 'id': !exists(json, 'id') ? undefined : json['id'], - 'name': !exists(json, 'name') ? undefined : json['name'], - }; -} - -export function ActorHostToJSON(value?: ActorHost | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'type': value.type, - 'id': value.id, - 'name': value.name, - }; -} - diff --git a/tfweb/src/lib/api/models/ActorOIDCUser.js b/tfweb/src/lib/api/models/ActorOIDCUser.js deleted file mode 100644 index 8062b8c..0000000 --- a/tfweb/src/lib/api/models/ActorOIDCUser.js +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * @export - */ -export const ActorOIDCUserTypeEnum = { - OidcUser: 'oidcUser' -}; -/** - * Check if a given object implements the ActorOIDCUser interface. - */ -export function instanceOfActorOIDCUser(value) { - let isInstance = true; - return isInstance; -} -export function ActorOIDCUserFromJSON(json) { - return ActorOIDCUserFromJSONTyped(json, false); -} -export function ActorOIDCUserFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'type': !exists(json, 'type') ? undefined : json['type'], - 'email': !exists(json, 'email') ? undefined : json['email'], - 'issuer': !exists(json, 'issuer') ? undefined : json['issuer'], - 'subject': !exists(json, 'subject') ? undefined : json['subject'], - }; -} -export function ActorOIDCUserToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'type': value.type, - 'email': value.email, - 'issuer': value.issuer, - 'subject': value.subject, - }; -} -//# sourceMappingURL=ActorOIDCUser.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ActorOIDCUser.js.map b/tfweb/src/lib/api/models/ActorOIDCUser.js.map deleted file mode 100644 index 3098c8b..0000000 --- a/tfweb/src/lib/api/models/ActorOIDCUser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActorOIDCUser.js","sourceRoot":"","sources":["ActorOIDCUser.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAkC/C;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,QAAQ,EAAE,UAAU;CACd,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAa;IACjD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3D,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9D,SAAS,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;KACpE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAA4B;IAC5D,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,SAAS,EAAE,KAAK,CAAC,OAAO;KAC3B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ActorOIDCUser.ts b/tfweb/src/lib/api/models/ActorOIDCUser.ts deleted file mode 100644 index 91a716c..0000000 --- a/tfweb/src/lib/api/models/ActorOIDCUser.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ActorOIDCUser - */ -export interface ActorOIDCUser { - /** - * A user who logged in using SSO. - * @type {string} - * @memberof ActorOIDCUser - */ - type?: ActorOIDCUserTypeEnum; - /** - * - * @type {string} - * @memberof ActorOIDCUser - */ - email?: string; - /** - * - * @type {string} - * @memberof ActorOIDCUser - */ - issuer?: string; - /** - * - * @type {string} - * @memberof ActorOIDCUser - */ - subject?: string; -} - - -/** - * @export - */ -export const ActorOIDCUserTypeEnum = { - OidcUser: 'oidcUser' -} as const; -export type ActorOIDCUserTypeEnum = typeof ActorOIDCUserTypeEnum[keyof typeof ActorOIDCUserTypeEnum]; - - -/** - * Check if a given object implements the ActorOIDCUser interface. - */ -export function instanceOfActorOIDCUser(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function ActorOIDCUserFromJSON(json: any): ActorOIDCUser { - return ActorOIDCUserFromJSONTyped(json, false); -} - -export function ActorOIDCUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActorOIDCUser { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'type': !exists(json, 'type') ? undefined : json['type'], - 'email': !exists(json, 'email') ? undefined : json['email'], - 'issuer': !exists(json, 'issuer') ? undefined : json['issuer'], - 'subject': !exists(json, 'subject') ? undefined : json['subject'], - }; -} - -export function ActorOIDCUserToJSON(value?: ActorOIDCUser | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'type': value.type, - 'email': value.email, - 'issuer': value.issuer, - 'subject': value.subject, - }; -} - diff --git a/tfweb/src/lib/api/models/ActorSupport.js b/tfweb/src/lib/api/models/ActorSupport.js deleted file mode 100644 index 68b78c4..0000000 --- a/tfweb/src/lib/api/models/ActorSupport.js +++ /dev/null @@ -1,50 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * @export - */ -export const ActorSupportTypeEnum = { - Support: 'support' -}; -/** - * Check if a given object implements the ActorSupport interface. - */ -export function instanceOfActorSupport(value) { - let isInstance = true; - return isInstance; -} -export function ActorSupportFromJSON(json) { - return ActorSupportFromJSONTyped(json, false); -} -export function ActorSupportFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'type': !exists(json, 'type') ? undefined : json['type'], - }; -} -export function ActorSupportToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'type': value.type, - }; -} -//# sourceMappingURL=ActorSupport.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ActorSupport.js.map b/tfweb/src/lib/api/models/ActorSupport.js.map deleted file mode 100644 index f253871..0000000 --- a/tfweb/src/lib/api/models/ActorSupport.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActorSupport.js","sourceRoot":"","sources":["ActorSupport.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAgB/C;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,OAAO,EAAE,SAAS;CACZ,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAa;IAChD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,KAA2B;IAC1D,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;KACrB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ActorSupport.ts b/tfweb/src/lib/api/models/ActorSupport.ts deleted file mode 100644 index 2c00ac2..0000000 --- a/tfweb/src/lib/api/models/ActorSupport.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ActorSupport - */ -export interface ActorSupport { - /** - * A member of Defined Networking support staff. - * @type {string} - * @memberof ActorSupport - */ - type?: ActorSupportTypeEnum; -} - - -/** - * @export - */ -export const ActorSupportTypeEnum = { - Support: 'support' -} as const; -export type ActorSupportTypeEnum = typeof ActorSupportTypeEnum[keyof typeof ActorSupportTypeEnum]; - - -/** - * Check if a given object implements the ActorSupport interface. - */ -export function instanceOfActorSupport(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function ActorSupportFromJSON(json: any): ActorSupport { - return ActorSupportFromJSONTyped(json, false); -} - -export function ActorSupportFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActorSupport { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'type': !exists(json, 'type') ? undefined : json['type'], - }; -} - -export function ActorSupportToJSON(value?: ActorSupport | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'type': value.type, - }; -} - diff --git a/tfweb/src/lib/api/models/ActorSystem.js b/tfweb/src/lib/api/models/ActorSystem.js deleted file mode 100644 index 35eaeb2..0000000 --- a/tfweb/src/lib/api/models/ActorSystem.js +++ /dev/null @@ -1,50 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * @export - */ -export const ActorSystemTypeEnum = { - System: 'system' -}; -/** - * Check if a given object implements the ActorSystem interface. - */ -export function instanceOfActorSystem(value) { - let isInstance = true; - return isInstance; -} -export function ActorSystemFromJSON(json) { - return ActorSystemFromJSONTyped(json, false); -} -export function ActorSystemFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'type': !exists(json, 'type') ? undefined : json['type'], - }; -} -export function ActorSystemToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'type': value.type, - }; -} -//# sourceMappingURL=ActorSystem.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ActorSystem.js.map b/tfweb/src/lib/api/models/ActorSystem.js.map deleted file mode 100644 index 0793a90..0000000 --- a/tfweb/src/lib/api/models/ActorSystem.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActorSystem.js","sourceRoot":"","sources":["ActorSystem.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAgB/C;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,MAAM,EAAE,QAAQ;CACV,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAa;IAC/C,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAA0B;IACxD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;KACrB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ActorSystem.ts b/tfweb/src/lib/api/models/ActorSystem.ts deleted file mode 100644 index 8a50f90..0000000 --- a/tfweb/src/lib/api/models/ActorSystem.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ActorSystem - */ -export interface ActorSystem { - /** - * System actor, used for events such as creation or rotation of Certificate Authorities. - * @type {string} - * @memberof ActorSystem - */ - type?: ActorSystemTypeEnum; -} - - -/** - * @export - */ -export const ActorSystemTypeEnum = { - System: 'system' -} as const; -export type ActorSystemTypeEnum = typeof ActorSystemTypeEnum[keyof typeof ActorSystemTypeEnum]; - - -/** - * Check if a given object implements the ActorSystem interface. - */ -export function instanceOfActorSystem(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function ActorSystemFromJSON(json: any): ActorSystem { - return ActorSystemFromJSONTyped(json, false); -} - -export function ActorSystemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActorSystem { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'type': !exists(json, 'type') ? undefined : json['type'], - }; -} - -export function ActorSystemToJSON(value?: ActorSystem | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'type': value.type, - }; -} - diff --git a/tfweb/src/lib/api/models/ActorUser.js b/tfweb/src/lib/api/models/ActorUser.js deleted file mode 100644 index 4334731..0000000 --- a/tfweb/src/lib/api/models/ActorUser.js +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * @export - */ -export const ActorUserTypeEnum = { - User: 'user' -}; -/** - * Check if a given object implements the ActorUser interface. - */ -export function instanceOfActorUser(value) { - let isInstance = true; - return isInstance; -} -export function ActorUserFromJSON(json) { - return ActorUserFromJSONTyped(json, false); -} -export function ActorUserFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'type': !exists(json, 'type') ? undefined : json['type'], - 'id': !exists(json, 'id') ? undefined : json['id'], - 'email': !exists(json, 'email') ? undefined : json['email'], - }; -} -export function ActorUserToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'type': value.type, - 'id': value.id, - 'email': value.email, - }; -} -//# sourceMappingURL=ActorUser.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ActorUser.js.map b/tfweb/src/lib/api/models/ActorUser.js.map deleted file mode 100644 index 2eb9ec5..0000000 --- a/tfweb/src/lib/api/models/ActorUser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActorUser.js","sourceRoot":"","sources":["ActorUser.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA4B/C;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,MAAM;CACN,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC7C,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,IAAI,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAClD,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;KAC9D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAwB;IACpD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,OAAO,EAAE,KAAK,CAAC,KAAK;KACvB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ActorUser.ts b/tfweb/src/lib/api/models/ActorUser.ts deleted file mode 100644 index b9d43b3..0000000 --- a/tfweb/src/lib/api/models/ActorUser.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ActorUser - */ -export interface ActorUser { - /** - * A logged-in user. - * @type {string} - * @memberof ActorUser - */ - type?: ActorUserTypeEnum; - /** - * - * @type {string} - * @memberof ActorUser - */ - id?: string; - /** - * - * @type {string} - * @memberof ActorUser - */ - email?: string; -} - - -/** - * @export - */ -export const ActorUserTypeEnum = { - User: 'user' -} as const; -export type ActorUserTypeEnum = typeof ActorUserTypeEnum[keyof typeof ActorUserTypeEnum]; - - -/** - * Check if a given object implements the ActorUser interface. - */ -export function instanceOfActorUser(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function ActorUserFromJSON(json: any): ActorUser { - return ActorUserFromJSONTyped(json, false); -} - -export function ActorUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActorUser { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'type': !exists(json, 'type') ? undefined : json['type'], - 'id': !exists(json, 'id') ? undefined : json['id'], - 'email': !exists(json, 'email') ? undefined : json['email'], - }; -} - -export function ActorUserToJSON(value?: ActorUser | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'type': value.type, - 'id': value.id, - 'email': value.email, - }; -} - diff --git a/tfweb/src/lib/api/models/AuditLog.js b/tfweb/src/lib/api/models/AuditLog.js deleted file mode 100644 index 67c7f4f..0000000 --- a/tfweb/src/lib/api/models/AuditLog.js +++ /dev/null @@ -1,57 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { ActorFromJSON, ActorFromJSONTyped, ActorToJSON, } from './Actor'; -import { EventFromJSON, EventFromJSONTyped, EventToJSON, } from './Event'; -import { TargetFromJSON, TargetFromJSONTyped, TargetToJSON, } from './Target'; -/** - * Check if a given object implements the AuditLog interface. - */ -export function instanceOfAuditLog(value) { - let isInstance = true; - return isInstance; -} -export function AuditLogFromJSON(json) { - return AuditLogFromJSONTyped(json, false); -} -export function AuditLogFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'id': !exists(json, 'id') ? undefined : json['id'], - 'organizationID': !exists(json, 'organizationID') ? undefined : json['organizationID'], - 'timestamp': !exists(json, 'timestamp') ? undefined : (new Date(json['timestamp'])), - 'actor': !exists(json, 'actor') ? undefined : ActorFromJSON(json['actor']), - 'target': !exists(json, 'target') ? undefined : TargetFromJSON(json['target']), - 'event': !exists(json, 'event') ? undefined : EventFromJSON(json['event']), - }; -} -export function AuditLogToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'id': value.id, - 'organizationID': value.organizationID, - 'timestamp': value.timestamp === undefined ? undefined : (value.timestamp.toISOString()), - 'actor': ActorToJSON(value.actor), - 'target': TargetToJSON(value.target), - 'event': EventToJSON(value.event), - }; -} -//# sourceMappingURL=AuditLog.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/AuditLog.js.map b/tfweb/src/lib/api/models/AuditLog.js.map deleted file mode 100644 index e002422..0000000 --- a/tfweb/src/lib/api/models/AuditLog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AuditLog.js","sourceRoot":"","sources":["AuditLog.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,aAAa,EACb,kBAAkB,EA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AC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9E,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC7E,CAAC;AACN,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAuB;IAClD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,gBAAgB,EAAE,KAAK,CAAC,cAAc;QACtC,WAAW,EAAE,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QACxF,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC;QACjC,QAAQ,EAAE,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC;QACpC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC;KACpC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/AuditLog.ts b/tfweb/src/lib/api/models/AuditLog.ts deleted file mode 100644 index bb05ee8..0000000 --- a/tfweb/src/lib/api/models/AuditLog.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { Actor } from './Actor'; -import { - ActorFromJSON, - ActorFromJSONTyped, - ActorToJSON, -} from './Actor'; -import type { Event } from './Event'; -import { - EventFromJSON, - EventFromJSONTyped, - EventToJSON, -} from './Event'; -import type { Target } from './Target'; -import { - TargetFromJSON, - TargetFromJSONTyped, - TargetToJSON, -} from './Target'; - -/** - * - * @export - * @interface AuditLog - */ -export interface AuditLog { - /** - * - * @type {string} - * @memberof AuditLog - */ - id?: string; - /** - * - * @type {string} - * @memberof AuditLog - */ - organizationID?: string; - /** - * - * @type {Date} - * @memberof AuditLog - */ - timestamp?: Date; - /** - * - * @type {Actor} - * @memberof AuditLog - */ - actor?: Actor; - /** - * - * @type {Target} - * @memberof AuditLog - */ - target?: Target; - /** - * - * @type {Event} - * @memberof AuditLog - */ - event?: Event; -} - -/** - * Check if a given object implements the AuditLog interface. - */ -export function instanceOfAuditLog(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function AuditLogFromJSON(json: any): AuditLog { - return AuditLogFromJSONTyped(json, false); -} - -export function AuditLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLog { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'id': !exists(json, 'id') ? undefined : json['id'], - 'organizationID': !exists(json, 'organizationID') ? undefined : json['organizationID'], - 'timestamp': !exists(json, 'timestamp') ? undefined : (new Date(json['timestamp'])), - 'actor': !exists(json, 'actor') ? undefined : ActorFromJSON(json['actor']), - 'target': !exists(json, 'target') ? undefined : TargetFromJSON(json['target']), - 'event': !exists(json, 'event') ? undefined : EventFromJSON(json['event']), - }; -} - -export function AuditLogToJSON(value?: AuditLog | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'id': value.id, - 'organizationID': value.organizationID, - 'timestamp': value.timestamp === undefined ? undefined : (value.timestamp.toISOString()), - 'actor': ActorToJSON(value.actor), - 'target': TargetToJSON(value.target), - 'event': EventToJSON(value.event), - }; -} - diff --git a/tfweb/src/lib/api/models/AuditLogsList200Response.js b/tfweb/src/lib/api/models/AuditLogsList200Response.js deleted file mode 100644 index 4ad6264..0000000 --- a/tfweb/src/lib/api/models/AuditLogsList200Response.js +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { AuditLogFromJSON, AuditLogFromJSONTyped, AuditLogToJSON, } from './AuditLog'; -import { PaginationMetadataFromJSON, PaginationMetadataFromJSONTyped, PaginationMetadataToJSON, } from './PaginationMetadata'; -/** - * Check if a given object implements the AuditLogsList200Response interface. - */ -export function instanceOfAuditLogsList200Response(value) { - let isInstance = true; - return isInstance; -} -export function AuditLogsList200ResponseFromJSON(json) { - return AuditLogsList200ResponseFromJSONTyped(json, false); -} -export function AuditLogsList200ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'data': !exists(json, 'data') ? undefined : (json['data'].map(AuditLogFromJSON)), - 'metadata': !exists(json, 'metadata') ? undefined : PaginationMetadataFromJSON(json['metadata']), - }; -} -export function AuditLogsList200ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'data': value.data === undefined ? undefined : (value.data.map(AuditLogToJSON)), - 'metadata': PaginationMetadataToJSON(value.metadata), - }; -} -//# sourceMappingURL=AuditLogsList200Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/AuditLogsList200Response.js.map b/tfweb/src/lib/api/models/AuditLogsList200Response.js.map deleted file mode 100644 index 22b8c88..0000000 --- a/tfweb/src/lib/api/models/AuditLogsList200Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AuditLogsList200Response.js","sourceRoot":"","sources":["AuditLogsList200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,GACjB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACH,0BAA0B,EAC1B,+BAA+B,EAC/B,wBAAwB,GAC3B,MAAM,sBAAsB,CAAC;AAsB9B;;GAEG;AACH,MAAM,UAAU,kCAAkC,CAAC,KAAa;IAC5D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,qCAAqC,CAAC,IAAS,EAAE,mBAA4B;IACzF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAChG,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACnG,CAAC;AACN,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,KAAuC;IAClF,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,IAAmB,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAC/F,UAAU,EAAE,wBAAwB,CAAC,KAAK,CAAC,QAAQ,CAAC;KACvD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/AuditLogsList200Response.ts b/tfweb/src/lib/api/models/AuditLogsList200Response.ts deleted file mode 100644 index 27359d3..0000000 --- a/tfweb/src/lib/api/models/AuditLogsList200Response.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { AuditLog } from './AuditLog'; -import { - AuditLogFromJSON, - AuditLogFromJSONTyped, - AuditLogToJSON, -} from './AuditLog'; -import type { PaginationMetadata } from './PaginationMetadata'; -import { - PaginationMetadataFromJSON, - PaginationMetadataFromJSONTyped, - PaginationMetadataToJSON, -} from './PaginationMetadata'; - -/** - * - * @export - * @interface AuditLogsList200Response - */ -export interface AuditLogsList200Response { - /** - * - * @type {Array} - * @memberof AuditLogsList200Response - */ - data?: Array; - /** - * - * @type {PaginationMetadata} - * @memberof AuditLogsList200Response - */ - metadata?: PaginationMetadata; -} - -/** - * Check if a given object implements the AuditLogsList200Response interface. - */ -export function instanceOfAuditLogsList200Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function AuditLogsList200ResponseFromJSON(json: any): AuditLogsList200Response { - return AuditLogsList200ResponseFromJSONTyped(json, false); -} - -export function AuditLogsList200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsList200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': !exists(json, 'data') ? undefined : ((json['data'] as Array).map(AuditLogFromJSON)), - 'metadata': !exists(json, 'metadata') ? undefined : PaginationMetadataFromJSON(json['metadata']), - }; -} - -export function AuditLogsList200ResponseToJSON(value?: AuditLogsList200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': value.data === undefined ? undefined : ((value.data as Array).map(AuditLogToJSON)), - 'metadata': PaginationMetadataToJSON(value.metadata), - }; -} - diff --git a/tfweb/src/lib/api/models/Downloads.js b/tfweb/src/lib/api/models/Downloads.js deleted file mode 100644 index ced883f..0000000 --- a/tfweb/src/lib/api/models/Downloads.js +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { DownloadsDnclientFromJSON, DownloadsDnclientFromJSONTyped, DownloadsDnclientToJSON, } from './DownloadsDnclient'; -import { DownloadsMobileFromJSON, DownloadsMobileFromJSONTyped, DownloadsMobileToJSON, } from './DownloadsMobile'; -import { DownloadsVersionInfoFromJSON, DownloadsVersionInfoFromJSONTyped, DownloadsVersionInfoToJSON, } from './DownloadsVersionInfo'; -/** - * Check if a given object implements the Downloads interface. - */ -export function instanceOfDownloads(value) { - let isInstance = true; - return isInstance; -} -export function DownloadsFromJSON(json) { - return DownloadsFromJSONTyped(json, false); -} -export function DownloadsFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'dnclient': !exists(json, 'dnclient') ? undefined : DownloadsDnclientFromJSON(json['dnclient']), - 'mobile': !exists(json, 'mobile') ? undefined : DownloadsMobileFromJSON(json['mobile']), - 'versionInfo': !exists(json, 'versionInfo') ? undefined : DownloadsVersionInfoFromJSON(json['versionInfo']), - }; -} -export function DownloadsToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'dnclient': DownloadsDnclientToJSON(value.dnclient), - 'mobile': DownloadsMobileToJSON(value.mobile), - 'versionInfo': DownloadsVersionInfoToJSON(value.versionInfo), - }; -} -//# sourceMappingURL=Downloads.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Downloads.js.map b/tfweb/src/lib/api/models/Downloads.js.map deleted file mode 100644 index 0d28cfa..0000000 --- a/tfweb/src/lib/api/models/Downloads.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Downloads.js","sourceRoot":"","sources":["Downloads.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO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AK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,UAAU,EAAE,uBAAuB,CAAC,KAAK,CAAC,QAAQ,CAAC;QACnD,QAAQ,EAAE,qBAAqB,CAAC,KAAK,CAAC,MAAM,CAAC;QAC7C,aAAa,EAAE,0BAA0B,CAAC,KAAK,CAAC,WAAW,CAAC;KAC/D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Downloads.ts b/tfweb/src/lib/api/models/Downloads.ts deleted file mode 100644 index 5d34405..0000000 --- a/tfweb/src/lib/api/models/Downloads.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { DownloadsDnclient } from './DownloadsDnclient'; -import { - DownloadsDnclientFromJSON, - DownloadsDnclientFromJSONTyped, - DownloadsDnclientToJSON, -} from './DownloadsDnclient'; -import type { DownloadsMobile } from './DownloadsMobile'; -import { - DownloadsMobileFromJSON, - DownloadsMobileFromJSONTyped, - DownloadsMobileToJSON, -} from './DownloadsMobile'; -import type { DownloadsVersionInfo } from './DownloadsVersionInfo'; -import { - DownloadsVersionInfoFromJSON, - DownloadsVersionInfoFromJSONTyped, - DownloadsVersionInfoToJSON, -} from './DownloadsVersionInfo'; - -/** - * - * @export - * @interface Downloads - */ -export interface Downloads { - /** - * - * @type {DownloadsDnclient} - * @memberof Downloads - */ - dnclient?: DownloadsDnclient; - /** - * - * @type {DownloadsMobile} - * @memberof Downloads - */ - mobile?: DownloadsMobile; - /** - * - * @type {DownloadsVersionInfo} - * @memberof Downloads - */ - versionInfo?: DownloadsVersionInfo; -} - -/** - * Check if a given object implements the Downloads interface. - */ -export function instanceOfDownloads(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function DownloadsFromJSON(json: any): Downloads { - return DownloadsFromJSONTyped(json, false); -} - -export function DownloadsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Downloads { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'dnclient': !exists(json, 'dnclient') ? undefined : DownloadsDnclientFromJSON(json['dnclient']), - 'mobile': !exists(json, 'mobile') ? undefined : DownloadsMobileFromJSON(json['mobile']), - 'versionInfo': !exists(json, 'versionInfo') ? undefined : DownloadsVersionInfoFromJSON(json['versionInfo']), - }; -} - -export function DownloadsToJSON(value?: Downloads | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'dnclient': DownloadsDnclientToJSON(value.dnclient), - 'mobile': DownloadsMobileToJSON(value.mobile), - 'versionInfo': DownloadsVersionInfoToJSON(value.versionInfo), - }; -} - diff --git a/tfweb/src/lib/api/models/DownloadsDNClientLinks.js b/tfweb/src/lib/api/models/DownloadsDNClientLinks.js deleted file mode 100644 index 2939b83..0000000 --- a/tfweb/src/lib/api/models/DownloadsDNClientLinks.js +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the DownloadsDNClientLinks interface. - */ -export function instanceOfDownloadsDNClientLinks(value) { - let isInstance = true; - return isInstance; -} -export function DownloadsDNClientLinksFromJSON(json) { - return DownloadsDNClientLinksFromJSONTyped(json, false); -} -export function DownloadsDNClientLinksFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - ...json, - 'linuxAmd64': !exists(json, 'linux-amd64') ? undefined : json['linux-amd64'], - 'linuxArm64': !exists(json, 'linux-arm64') ? undefined : json['linux-arm64'], - 'macosUniversal': !exists(json, 'macos-universal') ? undefined : json['macos-universal'], - 'macosUniversalDmg': !exists(json, 'macos-universal-dmg') ? undefined : json['macos-universal-dmg'], - 'windowsAmd64': !exists(json, 'windows-amd64') ? undefined : json['windows-amd64'], - 'windowsArm64': !exists(json, 'windows-arm64') ? undefined : json['windows-arm64'], - }; -} -export function DownloadsDNClientLinksToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - ...value, - 'linux-amd64': value.linuxAmd64, - 'linux-arm64': value.linuxArm64, - 'macos-universal': value.macosUniversal, - 'macos-universal-dmg': value.macosUniversalDmg, - 'windows-amd64': value.windowsAmd64, - 'windows-arm64': value.windowsArm64, - }; -} -//# sourceMappingURL=DownloadsDNClientLinks.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsDNClientLinks.js.map b/tfweb/src/lib/api/models/DownloadsDNClientLinks.js.map deleted file mode 100644 index 7c9cc11..0000000 --- a/tfweb/src/lib/api/models/DownloadsDNClientLinks.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DownloadsDNClientLinks.js","sourceRoot":"","sources":["DownloadsDNClientLinks.ts"],"names":[],"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AI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;KACrF,CAAC;AACN,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,KAAqC;IAC9E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEC,GAAG,KAAK;QACZ,aAAa,EAAE,KAAK,CAAC,UAAU;QAC/B,aAAa,EAAE,KAAK,CAAC,UAAU;QAC/B,iBAAiB,EAAE,KAAK,CAAC,cAAc;QACvC,qBAAqB,EAAE,KAAK,CAAC,iBAAiB;QAC9C,eAAe,EAAE,KAAK,CAAC,YAAY;QACnC,eAAe,EAAE,KAAK,CAAC,YAAY;KACtC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsDNClientLinks.ts b/tfweb/src/lib/api/models/DownloadsDNClientLinks.ts deleted file mode 100644 index 1844dbc..0000000 --- a/tfweb/src/lib/api/models/DownloadsDNClientLinks.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * Download links for a given DNClient version - * @export - * @interface DownloadsDNClientLinks - */ -export interface DownloadsDNClientLinks { - [key: string]: string | any; - /** - * - * @type {string} - * @memberof DownloadsDNClientLinks - */ - linuxAmd64?: string; - /** - * - * @type {string} - * @memberof DownloadsDNClientLinks - */ - linuxArm64?: string; - /** - * - * @type {string} - * @memberof DownloadsDNClientLinks - */ - macosUniversal?: string; - /** - * - * @type {string} - * @memberof DownloadsDNClientLinks - */ - macosUniversalDmg?: string; - /** - * - * @type {string} - * @memberof DownloadsDNClientLinks - */ - windowsAmd64?: string; - /** - * - * @type {string} - * @memberof DownloadsDNClientLinks - */ - windowsArm64?: string; -} - -/** - * Check if a given object implements the DownloadsDNClientLinks interface. - */ -export function instanceOfDownloadsDNClientLinks(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function DownloadsDNClientLinksFromJSON(json: any): DownloadsDNClientLinks { - return DownloadsDNClientLinksFromJSONTyped(json, false); -} - -export function DownloadsDNClientLinksFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadsDNClientLinks { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - ...json, - 'linuxAmd64': !exists(json, 'linux-amd64') ? undefined : json['linux-amd64'], - 'linuxArm64': !exists(json, 'linux-arm64') ? undefined : json['linux-arm64'], - 'macosUniversal': !exists(json, 'macos-universal') ? undefined : json['macos-universal'], - 'macosUniversalDmg': !exists(json, 'macos-universal-dmg') ? undefined : json['macos-universal-dmg'], - 'windowsAmd64': !exists(json, 'windows-amd64') ? undefined : json['windows-amd64'], - 'windowsArm64': !exists(json, 'windows-arm64') ? undefined : json['windows-arm64'], - }; -} - -export function DownloadsDNClientLinksToJSON(value?: DownloadsDNClientLinks | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - ...value, - 'linux-amd64': value.linuxAmd64, - 'linux-arm64': value.linuxArm64, - 'macos-universal': value.macosUniversal, - 'macos-universal-dmg': value.macosUniversalDmg, - 'windows-amd64': value.windowsAmd64, - 'windows-arm64': value.windowsArm64, - }; -} - diff --git a/tfweb/src/lib/api/models/DownloadsDnclient.js b/tfweb/src/lib/api/models/DownloadsDnclient.js deleted file mode 100644 index 522853c..0000000 --- a/tfweb/src/lib/api/models/DownloadsDnclient.js +++ /dev/null @@ -1,47 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { DownloadsDNClientLinksFromJSON, DownloadsDNClientLinksFromJSONTyped, DownloadsDNClientLinksToJSON, } from './DownloadsDNClientLinks'; -/** - * Check if a given object implements the DownloadsDnclient interface. - */ -export function instanceOfDownloadsDnclient(value) { - let isInstance = true; - return isInstance; -} -export function DownloadsDnclientFromJSON(json) { - return DownloadsDnclientFromJSONTyped(json, false); -} -export function DownloadsDnclientFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - ...json, - 'latest': !exists(json, 'latest') ? undefined : DownloadsDNClientLinksFromJSON(json['latest']), - }; -} -export function DownloadsDnclientToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - ...value, - 'latest': DownloadsDNClientLinksToJSON(value.latest), - }; -} -//# sourceMappingURL=DownloadsDnclient.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsDnclient.js.map b/tfweb/src/lib/api/models/DownloadsDnclient.js.map deleted file mode 100644 index 988b03e..0000000 --- a/tfweb/src/lib/api/models/DownloadsDnclient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DownloadsDnclient.js","sourceRoot":"","sources":["DownloadsDnclient.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,8BAA8B,EAC9B,mCAAmC,EACnC,4BAA4B,GAC/B,MAAM,0BAA0B,CAAC;AAiBlC;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACrD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEC,GAAG,IAAI;QACX,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,8BAA8B,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACjG,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,KAAgC;IACpE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEC,GAAG,KAAK;QACZ,QAAQ,EAAE,4BAA4B,CAAC,KAAK,CAAC,MAAM,CAAC;KACvD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsDnclient.ts b/tfweb/src/lib/api/models/DownloadsDnclient.ts deleted file mode 100644 index f1cd831..0000000 --- a/tfweb/src/lib/api/models/DownloadsDnclient.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { DownloadsDNClientLinks } from './DownloadsDNClientLinks'; -import { - DownloadsDNClientLinksFromJSON, - DownloadsDNClientLinksFromJSONTyped, - DownloadsDNClientLinksToJSON, -} from './DownloadsDNClientLinks'; - -/** - * - * @export - * @interface DownloadsDnclient - */ -export interface DownloadsDnclient { - [key: string]: DownloadsDNClientLinks | any; - /** - * - * @type {DownloadsDNClientLinks} - * @memberof DownloadsDnclient - */ - latest?: DownloadsDNClientLinks; -} - -/** - * Check if a given object implements the DownloadsDnclient interface. - */ -export function instanceOfDownloadsDnclient(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function DownloadsDnclientFromJSON(json: any): DownloadsDnclient { - return DownloadsDnclientFromJSONTyped(json, false); -} - -export function DownloadsDnclientFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadsDnclient { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - ...json, - 'latest': !exists(json, 'latest') ? undefined : DownloadsDNClientLinksFromJSON(json['latest']), - }; -} - -export function DownloadsDnclientToJSON(value?: DownloadsDnclient | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - ...value, - 'latest': DownloadsDNClientLinksToJSON(value.latest), - }; -} - diff --git a/tfweb/src/lib/api/models/DownloadsList200Response.js b/tfweb/src/lib/api/models/DownloadsList200Response.js deleted file mode 100644 index 74447c9..0000000 --- a/tfweb/src/lib/api/models/DownloadsList200Response.js +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { DownloadsFromJSON, DownloadsFromJSONTyped, DownloadsToJSON, } from './Downloads'; -/** - * Check if a given object implements the DownloadsList200Response interface. - */ -export function instanceOfDownloadsList200Response(value) { - let isInstance = true; - return isInstance; -} -export function DownloadsList200ResponseFromJSON(json) { - return DownloadsList200ResponseFromJSONTyped(json, false); -} -export function DownloadsList200ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'data': !exists(json, 'data') ? undefined : DownloadsFromJSON(json['data']), - }; -} -export function DownloadsList200ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'data': DownloadsToJSON(value.data), - }; -} -//# sourceMappingURL=DownloadsList200Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsList200Response.js.map b/tfweb/src/lib/api/models/DownloadsList200Response.js.map deleted file mode 100644 index 13b033e..0000000 --- a/tfweb/src/lib/api/models/DownloadsList200Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DownloadsList200Response.js","sourceRoot":"","sources":["DownloadsList200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,GAClB,MAAM,aAAa,CAAC;AAgBrB;;GAEG;AACH,MAAM,UAAU,kCAAkC,CAAC,KAAa;IAC5D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,qCAAqC,CAAC,IAAS,EAAE,mBAA4B;IACzF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAC9E,CAAC;AACN,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,KAAuC;IAClF,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC;KACtC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsList200Response.ts b/tfweb/src/lib/api/models/DownloadsList200Response.ts deleted file mode 100644 index 0ff466a..0000000 --- a/tfweb/src/lib/api/models/DownloadsList200Response.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { Downloads } from './Downloads'; -import { - DownloadsFromJSON, - DownloadsFromJSONTyped, - DownloadsToJSON, -} from './Downloads'; - -/** - * - * @export - * @interface DownloadsList200Response - */ -export interface DownloadsList200Response { - /** - * - * @type {Downloads} - * @memberof DownloadsList200Response - */ - data?: Downloads; -} - -/** - * Check if a given object implements the DownloadsList200Response interface. - */ -export function instanceOfDownloadsList200Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function DownloadsList200ResponseFromJSON(json: any): DownloadsList200Response { - return DownloadsList200ResponseFromJSONTyped(json, false); -} - -export function DownloadsList200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadsList200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': !exists(json, 'data') ? undefined : DownloadsFromJSON(json['data']), - }; -} - -export function DownloadsList200ResponseToJSON(value?: DownloadsList200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': DownloadsToJSON(value.data), - }; -} - diff --git a/tfweb/src/lib/api/models/DownloadsMobile.js b/tfweb/src/lib/api/models/DownloadsMobile.js deleted file mode 100644 index 4796d63..0000000 --- a/tfweb/src/lib/api/models/DownloadsMobile.js +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the DownloadsMobile interface. - */ -export function instanceOfDownloadsMobile(value) { - let isInstance = true; - return isInstance; -} -export function DownloadsMobileFromJSON(json) { - return DownloadsMobileFromJSONTyped(json, false); -} -export function DownloadsMobileFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'android': !exists(json, 'android') ? undefined : json['android'], - 'ios': !exists(json, 'ios') ? undefined : json['ios'], - }; -} -export function DownloadsMobileToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'android': value.android, - 'ios': value.ios, - }; -} -//# sourceMappingURL=DownloadsMobile.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsMobile.js.map b/tfweb/src/lib/api/models/DownloadsMobile.js.map deleted file mode 100644 index c507a86..0000000 --- a/tfweb/src/lib/api/models/DownloadsMobile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DownloadsMobile.js","sourceRoot":"","sources":["DownloadsMobile.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAAa;IACnD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,SAAS,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;QACjE,KAAK,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;KACxD,CAAC;AACN,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,KAA8B;IAChE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,KAAK,EAAE,KAAK,CAAC,GAAG;KACnB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsMobile.ts b/tfweb/src/lib/api/models/DownloadsMobile.ts deleted file mode 100644 index e8d810a..0000000 --- a/tfweb/src/lib/api/models/DownloadsMobile.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface DownloadsMobile - */ -export interface DownloadsMobile { - /** - * Mobile Nebula download URL for Android devices. - * @type {string} - * @memberof DownloadsMobile - */ - android?: string; - /** - * Mobile Nebula download URL for iOS devices. - * @type {string} - * @memberof DownloadsMobile - */ - ios?: string; -} - -/** - * Check if a given object implements the DownloadsMobile interface. - */ -export function instanceOfDownloadsMobile(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function DownloadsMobileFromJSON(json: any): DownloadsMobile { - return DownloadsMobileFromJSONTyped(json, false); -} - -export function DownloadsMobileFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadsMobile { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'android': !exists(json, 'android') ? undefined : json['android'], - 'ios': !exists(json, 'ios') ? undefined : json['ios'], - }; -} - -export function DownloadsMobileToJSON(value?: DownloadsMobile | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'android': value.android, - 'ios': value.ios, - }; -} - diff --git a/tfweb/src/lib/api/models/DownloadsVersionInfo.js b/tfweb/src/lib/api/models/DownloadsVersionInfo.js deleted file mode 100644 index 898caaf..0000000 --- a/tfweb/src/lib/api/models/DownloadsVersionInfo.js +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { DownloadsVersionInfoDnclientValueFromJSON, DownloadsVersionInfoDnclientValueFromJSONTyped, DownloadsVersionInfoDnclientValueToJSON, } from './DownloadsVersionInfoDnclientValue'; -import { DownloadsVersionInfoLatestFromJSON, DownloadsVersionInfoLatestFromJSONTyped, DownloadsVersionInfoLatestToJSON, } from './DownloadsVersionInfoLatest'; -/** - * Check if a given object implements the DownloadsVersionInfo interface. - */ -export function instanceOfDownloadsVersionInfo(value) { - let isInstance = true; - return isInstance; -} -export function DownloadsVersionInfoFromJSON(json) { - return DownloadsVersionInfoFromJSONTyped(json, false); -} -export function DownloadsVersionInfoFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'dnclient': !exists(json, 'dnclient') ? undefined : (mapValues(json['dnclient'], DownloadsVersionInfoDnclientValueFromJSON)), - 'latest': !exists(json, 'latest') ? undefined : DownloadsVersionInfoLatestFromJSON(json['latest']), - }; -} -export function DownloadsVersionInfoToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'dnclient': value.dnclient === undefined ? undefined : (mapValues(value.dnclient, DownloadsVersionInfoDnclientValueToJSON)), - 'latest': DownloadsVersionInfoLatestToJSON(value.latest), - }; -} -//# sourceMappingURL=DownloadsVersionInfo.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsVersionInfo.js.map b/tfweb/src/lib/api/models/DownloadsVersionInfo.js.map deleted file mode 100644 index fe82d83..0000000 --- a/tfweb/src/lib/api/models/DownloadsVersionInfo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DownloadsVersionInfo.js","sourceRoot":"","sources":["DownloadsVersionInfo.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,S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,CAAC,KAAK,CAAC,QAAQ,EAAE,uCAAuC,CAAC,CAAC;QAC3H,QAAQ,EAAE,gCAAgC,CAAC,KAAK,CAAC,MAAM,CAAC;KAC3D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsVersionInfo.ts b/tfweb/src/lib/api/models/DownloadsVersionInfo.ts deleted file mode 100644 index 64c0541..0000000 --- a/tfweb/src/lib/api/models/DownloadsVersionInfo.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { DownloadsVersionInfoDnclientValue } from './DownloadsVersionInfoDnclientValue'; -import { - DownloadsVersionInfoDnclientValueFromJSON, - DownloadsVersionInfoDnclientValueFromJSONTyped, - DownloadsVersionInfoDnclientValueToJSON, -} from './DownloadsVersionInfoDnclientValue'; -import type { DownloadsVersionInfoLatest } from './DownloadsVersionInfoLatest'; -import { - DownloadsVersionInfoLatestFromJSON, - DownloadsVersionInfoLatestFromJSONTyped, - DownloadsVersionInfoLatestToJSON, -} from './DownloadsVersionInfoLatest'; - -/** - * - * @export - * @interface DownloadsVersionInfo - */ -export interface DownloadsVersionInfo { - /** - * Information about available DNClient releases - * @type {{ [key: string]: DownloadsVersionInfoDnclientValue; }} - * @memberof DownloadsVersionInfo - */ - dnclient?: { [key: string]: DownloadsVersionInfoDnclientValue; }; - /** - * - * @type {DownloadsVersionInfoLatest} - * @memberof DownloadsVersionInfo - */ - latest?: DownloadsVersionInfoLatest; -} - -/** - * Check if a given object implements the DownloadsVersionInfo interface. - */ -export function instanceOfDownloadsVersionInfo(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function DownloadsVersionInfoFromJSON(json: any): DownloadsVersionInfo { - return DownloadsVersionInfoFromJSONTyped(json, false); -} - -export function DownloadsVersionInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadsVersionInfo { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'dnclient': !exists(json, 'dnclient') ? undefined : (mapValues(json['dnclient'], DownloadsVersionInfoDnclientValueFromJSON)), - 'latest': !exists(json, 'latest') ? undefined : DownloadsVersionInfoLatestFromJSON(json['latest']), - }; -} - -export function DownloadsVersionInfoToJSON(value?: DownloadsVersionInfo | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'dnclient': value.dnclient === undefined ? undefined : (mapValues(value.dnclient, DownloadsVersionInfoDnclientValueToJSON)), - 'latest': DownloadsVersionInfoLatestToJSON(value.latest), - }; -} - diff --git a/tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.js b/tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.js deleted file mode 100644 index 8bfd054..0000000 --- a/tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.js +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the DownloadsVersionInfoDnclientValue interface. - */ -export function instanceOfDownloadsVersionInfoDnclientValue(value) { - let isInstance = true; - return isInstance; -} -export function DownloadsVersionInfoDnclientValueFromJSON(json) { - return DownloadsVersionInfoDnclientValueFromJSONTyped(json, false); -} -export function DownloadsVersionInfoDnclientValueFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'releaseDate': !exists(json, 'releaseDate') ? undefined : json['releaseDate'], - 'latest': !exists(json, 'latest') ? undefined : json['latest'], - }; -} -export function DownloadsVersionInfoDnclientValueToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'releaseDate': value.releaseDate, - 'latest': value.latest, - }; -} -//# sourceMappingURL=DownloadsVersionInfoDnclientValue.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.js.map b/tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.js.map deleted file mode 100644 index 2bf5e1f..0000000 --- a/tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DownloadsVersionInfoDnclientValue.js","sourceRoot":"","sources":["DownloadsVersionInfoDnclientValue.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,2CAA2C,CAAC,KAAa;IACrE,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yCAAyC,CAAC,IAAS;IAC/D,OAAO,8CAA8C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,8CAA8C,CAAC,IAAS,EAAE,mBAA4B;IAClG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;QAC7E,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KACjE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uCAAuC,CAAC,KAAgD;IACpG,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,QAAQ,EAAE,KAAK,CAAC,MAAM;KACzB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.ts b/tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.ts deleted file mode 100644 index 8e108c2..0000000 --- a/tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * Information about a given DNClient release - * @export - * @interface DownloadsVersionInfoDnclientValue - */ -export interface DownloadsVersionInfoDnclientValue { - /** - * - * @type {string} - * @memberof DownloadsVersionInfoDnclientValue - */ - releaseDate?: string; - /** - * - * @type {boolean} - * @memberof DownloadsVersionInfoDnclientValue - */ - latest?: boolean; -} - -/** - * Check if a given object implements the DownloadsVersionInfoDnclientValue interface. - */ -export function instanceOfDownloadsVersionInfoDnclientValue(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function DownloadsVersionInfoDnclientValueFromJSON(json: any): DownloadsVersionInfoDnclientValue { - return DownloadsVersionInfoDnclientValueFromJSONTyped(json, false); -} - -export function DownloadsVersionInfoDnclientValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadsVersionInfoDnclientValue { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'releaseDate': !exists(json, 'releaseDate') ? undefined : json['releaseDate'], - 'latest': !exists(json, 'latest') ? undefined : json['latest'], - }; -} - -export function DownloadsVersionInfoDnclientValueToJSON(value?: DownloadsVersionInfoDnclientValue | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'releaseDate': value.releaseDate, - 'latest': value.latest, - }; -} - diff --git a/tfweb/src/lib/api/models/DownloadsVersionInfoLatest.js b/tfweb/src/lib/api/models/DownloadsVersionInfoLatest.js deleted file mode 100644 index 22ee2ca..0000000 --- a/tfweb/src/lib/api/models/DownloadsVersionInfoLatest.js +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the DownloadsVersionInfoLatest interface. - */ -export function instanceOfDownloadsVersionInfoLatest(value) { - let isInstance = true; - return isInstance; -} -export function DownloadsVersionInfoLatestFromJSON(json) { - return DownloadsVersionInfoLatestFromJSONTyped(json, false); -} -export function DownloadsVersionInfoLatestFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'dnclient': !exists(json, 'dnclient') ? undefined : json['dnclient'], - 'mobile': !exists(json, 'mobile') ? undefined : json['mobile'], - }; -} -export function DownloadsVersionInfoLatestToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'dnclient': value.dnclient, - 'mobile': value.mobile, - }; -} -//# sourceMappingURL=DownloadsVersionInfoLatest.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsVersionInfoLatest.js.map b/tfweb/src/lib/api/models/DownloadsVersionInfoLatest.js.map deleted file mode 100644 index 98a1c00..0000000 --- a/tfweb/src/lib/api/models/DownloadsVersionInfoLatest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DownloadsVersionInfoLatest.js","sourceRoot":"","sources":["DownloadsVersionInfoLatest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,oCAAoC,CAAC,KAAa;IAC9D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,uCAAuC,CAAC,IAAS,EAAE,mBAA4B;IAC3F,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACpE,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KACjE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,KAAyC;IACtF,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,QAAQ,EAAE,KAAK,CAAC,MAAM;KACzB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsVersionInfoLatest.ts b/tfweb/src/lib/api/models/DownloadsVersionInfoLatest.ts deleted file mode 100644 index b4e9f8e..0000000 --- a/tfweb/src/lib/api/models/DownloadsVersionInfoLatest.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * The latest version for each software download. - * @export - * @interface DownloadsVersionInfoLatest - */ -export interface DownloadsVersionInfoLatest { - /** - * The latest version of DNClient. - * @type {string} - * @memberof DownloadsVersionInfoLatest - */ - dnclient?: string; - /** - * The latest version of Mobile Nebula. - * @type {string} - * @memberof DownloadsVersionInfoLatest - */ - mobile?: string; -} - -/** - * Check if a given object implements the DownloadsVersionInfoLatest interface. - */ -export function instanceOfDownloadsVersionInfoLatest(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function DownloadsVersionInfoLatestFromJSON(json: any): DownloadsVersionInfoLatest { - return DownloadsVersionInfoLatestFromJSONTyped(json, false); -} - -export function DownloadsVersionInfoLatestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadsVersionInfoLatest { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'dnclient': !exists(json, 'dnclient') ? undefined : json['dnclient'], - 'mobile': !exists(json, 'mobile') ? undefined : json['mobile'], - }; -} - -export function DownloadsVersionInfoLatestToJSON(value?: DownloadsVersionInfoLatest | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'dnclient': value.dnclient, - 'mobile': value.mobile, - }; -} - diff --git a/tfweb/src/lib/api/models/Event.js b/tfweb/src/lib/api/models/Event.js deleted file mode 100644 index a323bd3..0000000 --- a/tfweb/src/lib/api/models/Event.js +++ /dev/null @@ -1,67 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * @export - */ -export const EventTypeEnum = { - Created: 'CREATED', - Updated: 'UPDATED', - Deleted: 'DELETED', - DeletedTotp: 'DELETED_TOTP', - CreatedTotp: 'CREATED_TOTP', - SucceededAuth: 'SUCCEEDED_AUTH', - FailedAuth: 'FAILED_AUTH', - Enrolled: 'ENROLLED', - Renewed: 'RENEWED', - CreatedEnrollCode: 'CREATED_ENROLL_CODE', - SetNetworkCa: 'SET_NETWORK_CA', - BlockedHost: 'BLOCKED_HOST', - UnblockedHost: 'UNBLOCKED_HOST', - SetOverrides: 'SET_OVERRIDES' -}; -/** - * Check if a given object implements the Event interface. - */ -export function instanceOfEvent(value) { - let isInstance = true; - return isInstance; -} -export function EventFromJSON(json) { - return EventFromJSONTyped(json, false); -} -export function EventFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'type': !exists(json, 'type') ? undefined : json['type'], - 'before': !exists(json, 'before') ? undefined : json['before'], - 'after': !exists(json, 'after') ? undefined : json['after'], - }; -} -export function EventToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'type': value.type, - 'before': value.before, - 'after': value.after, - }; -} -//# sourceMappingURL=Event.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Event.js.map b/tfweb/src/lib/api/models/Event.js.map deleted file mode 100644 index 82eb3c8..0000000 --- a/tfweb/src/lib/api/models/Event.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Event.js","sourceRoot":"","sources":["Event.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,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C9D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAoB;IAC5C,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,OAAO,EAAE,KAAK,CAAC,KAAK;KACvB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Event.ts b/tfweb/src/lib/api/models/Event.ts deleted file mode 100644 index 064215f..0000000 --- a/tfweb/src/lib/api/models/Event.ts +++ /dev/null @@ -1,104 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * Information about what happened, including relevant values before & after the change. - * @export - * @interface Event - */ -export interface Event { - /** - * The type of event that occurred. - * @type {string} - * @memberof Event - */ - type?: EventTypeEnum; - /** - * The state of the target before the change was made. The shape depends on the target and event type. Can also be a string or null (e.g. target was created). - * @type {{ [key: string]: any; }} - * @memberof Event - */ - before?: { [key: string]: any; } | null; - /** - * The state of the target before the change was made. The shape depends on the target and event type. Can also be a string or null (e.g. target was deleted). - * @type {{ [key: string]: any; }} - * @memberof Event - */ - after?: { [key: string]: any; } | null; -} - - -/** - * @export - */ -export const EventTypeEnum = { - Created: 'CREATED', - Updated: 'UPDATED', - Deleted: 'DELETED', - DeletedTotp: 'DELETED_TOTP', - CreatedTotp: 'CREATED_TOTP', - SucceededAuth: 'SUCCEEDED_AUTH', - FailedAuth: 'FAILED_AUTH', - Enrolled: 'ENROLLED', - Renewed: 'RENEWED', - CreatedEnrollCode: 'CREATED_ENROLL_CODE', - SetNetworkCa: 'SET_NETWORK_CA', - BlockedHost: 'BLOCKED_HOST', - UnblockedHost: 'UNBLOCKED_HOST', - SetOverrides: 'SET_OVERRIDES' -} as const; -export type EventTypeEnum = typeof EventTypeEnum[keyof typeof EventTypeEnum]; - - -/** - * Check if a given object implements the Event interface. - */ -export function instanceOfEvent(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function EventFromJSON(json: any): Event { - return EventFromJSONTyped(json, false); -} - -export function EventFromJSONTyped(json: any, ignoreDiscriminator: boolean): Event { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'type': !exists(json, 'type') ? undefined : json['type'], - 'before': !exists(json, 'before') ? undefined : json['before'], - 'after': !exists(json, 'after') ? undefined : json['after'], - }; -} - -export function EventToJSON(value?: Event | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'type': value.type, - 'before': value.before, - 'after': value.after, - }; -} - diff --git a/tfweb/src/lib/api/models/FirewallRule.js b/tfweb/src/lib/api/models/FirewallRule.js deleted file mode 100644 index 7ebf312..0000000 --- a/tfweb/src/lib/api/models/FirewallRule.js +++ /dev/null @@ -1,61 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { FirewallRulePortRangeFromJSON, FirewallRulePortRangeFromJSONTyped, FirewallRulePortRangeToJSON, } from './FirewallRulePortRange'; -/** - * @export - */ -export const FirewallRuleProtocolEnum = { - Any: 'ANY', - Tcp: 'TCP', - Udp: 'UDP', - Icmp: 'ICMP' -}; -/** - * Check if a given object implements the FirewallRule interface. - */ -export function instanceOfFirewallRule(value) { - let isInstance = true; - isInstance = isInstance && "protocol" in value; - return isInstance; -} -export function FirewallRuleFromJSON(json) { - return FirewallRuleFromJSONTyped(json, false); -} -export function FirewallRuleFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'protocol': json['protocol'], - 'description': !exists(json, 'description') ? undefined : json['description'], - 'allowedRoleID': !exists(json, 'allowedRoleID') ? undefined : json['allowedRoleID'], - 'portRange': !exists(json, 'portRange') ? undefined : FirewallRulePortRangeFromJSON(json['portRange']), - }; -} -export function FirewallRuleToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'protocol': value.protocol, - 'description': value.description, - 'allowedRoleID': value.allowedRoleID, - 'portRange': FirewallRulePortRangeToJSON(value.portRange), - }; -} -//# sourceMappingURL=FirewallRule.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/FirewallRule.js.map b/tfweb/src/lib/api/models/FirewallRule.js.map deleted file mode 100644 index 426a6fd..0000000 --- a/tfweb/src/lib/api/models/FirewallRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FirewallRule.js","sourceRoot":"","sources":["FirewallRule.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,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,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,eAAe,EAAE,KAAK,CAAC,aAAa;QACpC,WAAW,EAAE,2BAA2B,CAAC,KAAK,CAAC,SAAS,CAAC;KAC5D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/FirewallRule.ts b/tfweb/src/lib/api/models/FirewallRule.ts deleted file mode 100644 index 4f272da..0000000 --- a/tfweb/src/lib/api/models/FirewallRule.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { FirewallRulePortRange } from './FirewallRulePortRange'; -import { - FirewallRulePortRangeFromJSON, - FirewallRulePortRangeFromJSONTyped, - FirewallRulePortRangeToJSON, -} from './FirewallRulePortRange'; - -/** - * - * @export - * @interface FirewallRule - */ -export interface FirewallRule { - /** - * - * @type {string} - * @memberof FirewallRule - */ - protocol: FirewallRuleProtocolEnum; - /** - * - * @type {string} - * @memberof FirewallRule - */ - description?: string; - /** - * Role ID to allow with this firewall rule. If not specified, all roles are included. - * @type {string} - * @memberof FirewallRule - */ - allowedRoleID?: string; - /** - * - * @type {FirewallRulePortRange} - * @memberof FirewallRule - */ - portRange?: FirewallRulePortRange; -} - - -/** - * @export - */ -export const FirewallRuleProtocolEnum = { - Any: 'ANY', - Tcp: 'TCP', - Udp: 'UDP', - Icmp: 'ICMP' -} as const; -export type FirewallRuleProtocolEnum = typeof FirewallRuleProtocolEnum[keyof typeof FirewallRuleProtocolEnum]; - - -/** - * Check if a given object implements the FirewallRule interface. - */ -export function instanceOfFirewallRule(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "protocol" in value; - - return isInstance; -} - -export function FirewallRuleFromJSON(json: any): FirewallRule { - return FirewallRuleFromJSONTyped(json, false); -} - -export function FirewallRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): FirewallRule { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'protocol': json['protocol'], - 'description': !exists(json, 'description') ? undefined : json['description'], - 'allowedRoleID': !exists(json, 'allowedRoleID') ? undefined : json['allowedRoleID'], - 'portRange': !exists(json, 'portRange') ? undefined : FirewallRulePortRangeFromJSON(json['portRange']), - }; -} - -export function FirewallRuleToJSON(value?: FirewallRule | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'protocol': value.protocol, - 'description': value.description, - 'allowedRoleID': value.allowedRoleID, - 'portRange': FirewallRulePortRangeToJSON(value.portRange), - }; -} - diff --git a/tfweb/src/lib/api/models/FirewallRulePortRange.js b/tfweb/src/lib/api/models/FirewallRulePortRange.js deleted file mode 100644 index ec4f0da..0000000 --- a/tfweb/src/lib/api/models/FirewallRulePortRange.js +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the FirewallRulePortRange interface. - */ -export function instanceOfFirewallRulePortRange(value) { - let isInstance = true; - isInstance = isInstance && "from" in value; - isInstance = isInstance && "to" in value; - return isInstance; -} -export function FirewallRulePortRangeFromJSON(json) { - return FirewallRulePortRangeFromJSONTyped(json, false); -} -export function FirewallRulePortRangeFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'from': json['from'], - 'to': json['to'], - }; -} -export function FirewallRulePortRangeToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'from': value.from, - 'to': value.to, - }; -} -//# sourceMappingURL=FirewallRulePortRange.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/FirewallRulePortRange.js.map b/tfweb/src/lib/api/models/FirewallRulePortRange.js.map deleted file mode 100644 index 8e27516..0000000 --- a/tfweb/src/lib/api/models/FirewallRulePortRange.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FirewallRulePortRange.js","sourceRoot":"","sources":["FirewallRulePortRange.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAAC,KAAa;IACzD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,MAAM,IAAI,KAAK,CAAC;IAC3C,UAAU,GAAG,UAAU,IAAI,IAAI,IAAI,KAAK,CAAC;IAEzC,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;KACnB,CAAC;AACN,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,KAAoC;IAC5E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,IAAI,EAAE,KAAK,CAAC,EAAE;KACjB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/FirewallRulePortRange.ts b/tfweb/src/lib/api/models/FirewallRulePortRange.ts deleted file mode 100644 index 28c045b..0000000 --- a/tfweb/src/lib/api/models/FirewallRulePortRange.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * Range of ports for this firewall rule. If not provided or set to null, all ports are allowed. - * @export - * @interface FirewallRulePortRange - */ -export interface FirewallRulePortRange { - /** - * First port number included in range. - * @type {number} - * @memberof FirewallRulePortRange - */ - from: number; - /** - * Last port number included in range. Must be greater than `from` port. - * @type {number} - * @memberof FirewallRulePortRange - */ - to: number; -} - -/** - * Check if a given object implements the FirewallRulePortRange interface. - */ -export function instanceOfFirewallRulePortRange(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "from" in value; - isInstance = isInstance && "to" in value; - - return isInstance; -} - -export function FirewallRulePortRangeFromJSON(json: any): FirewallRulePortRange { - return FirewallRulePortRangeFromJSONTyped(json, false); -} - -export function FirewallRulePortRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FirewallRulePortRange { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'from': json['from'], - 'to': json['to'], - }; -} - -export function FirewallRulePortRangeToJSON(value?: FirewallRulePortRange | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'from': value.from, - 'to': value.to, - }; -} - diff --git a/tfweb/src/lib/api/models/Host.js b/tfweb/src/lib/api/models/Host.js deleted file mode 100644 index 2ad86d5..0000000 --- a/tfweb/src/lib/api/models/Host.js +++ /dev/null @@ -1,69 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { HostMetadataFromJSON, HostMetadataFromJSONTyped, HostMetadataToJSON, } from './HostMetadata'; -/** - * Check if a given object implements the Host interface. - */ -export function instanceOfHost(value) { - let isInstance = true; - return isInstance; -} -export function HostFromJSON(json) { - return HostFromJSONTyped(json, false); -} -export function HostFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'id': !exists(json, 'id') ? undefined : json['id'], - 'organizationID': !exists(json, 'organizationID') ? undefined : json['organizationID'], - 'networkID': !exists(json, 'networkID') ? undefined : json['networkID'], - 'roleID': !exists(json, 'roleID') ? undefined : json['roleID'], - 'name': !exists(json, 'name') ? undefined : json['name'], - 'ipAddress': !exists(json, 'ipAddress') ? undefined : json['ipAddress'], - 'staticAddresses': !exists(json, 'staticAddresses') ? undefined : json['staticAddresses'], - 'listenPort': !exists(json, 'listenPort') ? undefined : json['listenPort'], - 'isLighthouse': !exists(json, 'isLighthouse') ? undefined : json['isLighthouse'], - 'isRelay': !exists(json, 'isRelay') ? undefined : json['isRelay'], - 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])), - 'isBlocked': !exists(json, 'isBlocked') ? undefined : json['isBlocked'], - 'metadata': !exists(json, 'metadata') ? undefined : HostMetadataFromJSON(json['metadata']), - }; -} -export function HostToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'id': value.id, - 'organizationID': value.organizationID, - 'networkID': value.networkID, - 'roleID': value.roleID, - 'name': value.name, - 'ipAddress': value.ipAddress, - 'staticAddresses': value.staticAddresses, - 'listenPort': value.listenPort, - 'isLighthouse': value.isLighthouse, - 'isRelay': value.isRelay, - 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()), - 'isBlocked': value.isBlocked, - 'metadata': HostMetadataToJSON(value.metadata), - }; -} -//# sourceMappingURL=Host.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Host.js.map b/tfweb/src/lib/api/models/Host.js.map deleted file mode 100644 index 65422f0..0000000 --- a/tfweb/src/lib/api/models/Host.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Host.js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,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,gBAAgB,EAAE,KAAK,CAAC,cAAc;QACtC,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,iBAAiB,EAAE,KAAK,CAAC,eAAe;QACxC,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,cAAc,EAAE,KAAK,CAAC,YAAY;QAClC,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,WAAW,EAAE,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QACxF,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,UAAU,EAAE,kBAAkB,CAAC,KAAK,CAAC,QAAQ,CAAC;KACjD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Host.ts b/tfweb/src/lib/api/models/Host.ts deleted file mode 100644 index c397257..0000000 --- a/tfweb/src/lib/api/models/Host.ts +++ /dev/null @@ -1,168 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { HostMetadata } from './HostMetadata'; -import { - HostMetadataFromJSON, - HostMetadataFromJSONTyped, - HostMetadataToJSON, -} from './HostMetadata'; - -/** - * - * @export - * @interface Host - */ -export interface Host { - /** - * - * @type {string} - * @memberof Host - */ - id?: string; - /** - * - * @type {string} - * @memberof Host - */ - organizationID?: string; - /** - * - * @type {string} - * @memberof Host - */ - networkID?: string; - /** - * - * @type {string} - * @memberof Host - */ - roleID?: string | null; - /** - * - * @type {string} - * @memberof Host - */ - name?: string; - /** - * - * @type {string} - * @memberof Host - */ - ipAddress?: string; - /** - * - * @type {Array} - * @memberof Host - */ - staticAddresses?: Array; - /** - * Will be zero if a regular host - * @type {number} - * @memberof Host - */ - listenPort?: number; - /** - * - * @type {boolean} - * @memberof Host - */ - isLighthouse?: boolean; - /** - * - * @type {boolean} - * @memberof Host - */ - isRelay?: boolean; - /** - * - * @type {Date} - * @memberof Host - */ - createdAt?: Date; - /** - * - * @type {boolean} - * @memberof Host - */ - isBlocked?: boolean; - /** - * - * @type {HostMetadata} - * @memberof Host - */ - metadata?: HostMetadata; -} - -/** - * Check if a given object implements the Host interface. - */ -export function instanceOfHost(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostFromJSON(json: any): Host { - return HostFromJSONTyped(json, false); -} - -export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'id': !exists(json, 'id') ? undefined : json['id'], - 'organizationID': !exists(json, 'organizationID') ? undefined : json['organizationID'], - 'networkID': !exists(json, 'networkID') ? undefined : json['networkID'], - 'roleID': !exists(json, 'roleID') ? undefined : json['roleID'], - 'name': !exists(json, 'name') ? undefined : json['name'], - 'ipAddress': !exists(json, 'ipAddress') ? undefined : json['ipAddress'], - 'staticAddresses': !exists(json, 'staticAddresses') ? undefined : json['staticAddresses'], - 'listenPort': !exists(json, 'listenPort') ? undefined : json['listenPort'], - 'isLighthouse': !exists(json, 'isLighthouse') ? undefined : json['isLighthouse'], - 'isRelay': !exists(json, 'isRelay') ? undefined : json['isRelay'], - 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])), - 'isBlocked': !exists(json, 'isBlocked') ? undefined : json['isBlocked'], - 'metadata': !exists(json, 'metadata') ? undefined : HostMetadataFromJSON(json['metadata']), - }; -} - -export function HostToJSON(value?: Host | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'id': value.id, - 'organizationID': value.organizationID, - 'networkID': value.networkID, - 'roleID': value.roleID, - 'name': value.name, - 'ipAddress': value.ipAddress, - 'staticAddresses': value.staticAddresses, - 'listenPort': value.listenPort, - 'isLighthouse': value.isLighthouse, - 'isRelay': value.isRelay, - 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()), - 'isBlocked': value.isBlocked, - 'metadata': HostMetadataToJSON(value.metadata), - }; -} - diff --git a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.js b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.js deleted file mode 100644 index b9bdbda..0000000 --- a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.js +++ /dev/null @@ -1,47 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { HostAndEnrollCodeCreate200ResponseDataFromJSON, HostAndEnrollCodeCreate200ResponseDataFromJSONTyped, HostAndEnrollCodeCreate200ResponseDataToJSON, } from './HostAndEnrollCodeCreate200ResponseData'; -/** - * Check if a given object implements the HostAndEnrollCodeCreate200Response interface. - */ -export function instanceOfHostAndEnrollCodeCreate200Response(value) { - let isInstance = true; - return isInstance; -} -export function HostAndEnrollCodeCreate200ResponseFromJSON(json) { - return HostAndEnrollCodeCreate200ResponseFromJSONTyped(json, false); -} -export function HostAndEnrollCodeCreate200ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'data': !exists(json, 'data') ? undefined : HostAndEnrollCodeCreate200ResponseDataFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} -export function HostAndEnrollCodeCreate200ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'data': HostAndEnrollCodeCreate200ResponseDataToJSON(value.data), - 'metadata': value.metadata, - }; -} -//# sourceMappingURL=HostAndEnrollCodeCreate200Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.js.map b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.js.map deleted file mode 100644 index 8fd259a..0000000 --- a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostAndEnrollCodeCreate200Response.js","sourceRoot":"","sources":["HostAndEnrollCodeCreate200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,8CAA8C,EAC9C,mDAAmD,EACnD,4CAA4C,GAC/C,MAAM,0CAA0C,CAAC;AAsBlD;;GAEG;AACH,MAAM,UAAU,4CAA4C,CAAC,KAAa;IACtE,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,0CAA0C,CAAC,IAAS;IAChE,OAAO,+CAA+C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,+CAA+C,CAAC,IAAS,EAAE,mBAA4B;IACnG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,8CAA8C,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxG,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,wCAAwC,CAAC,KAAiD;IACtG,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,4CAA4C,CAAC,KAAK,CAAC,IAAI,CAAC;QAChE,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.ts b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.ts deleted file mode 100644 index 02b861e..0000000 --- a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { HostAndEnrollCodeCreate200ResponseData } from './HostAndEnrollCodeCreate200ResponseData'; -import { - HostAndEnrollCodeCreate200ResponseDataFromJSON, - HostAndEnrollCodeCreate200ResponseDataFromJSONTyped, - HostAndEnrollCodeCreate200ResponseDataToJSON, -} from './HostAndEnrollCodeCreate200ResponseData'; - -/** - * - * @export - * @interface HostAndEnrollCodeCreate200Response - */ -export interface HostAndEnrollCodeCreate200Response { - /** - * - * @type {HostAndEnrollCodeCreate200ResponseData} - * @memberof HostAndEnrollCodeCreate200Response - */ - data?: HostAndEnrollCodeCreate200ResponseData; - /** - * - * @type {object} - * @memberof HostAndEnrollCodeCreate200Response - */ - metadata?: object; -} - -/** - * Check if a given object implements the HostAndEnrollCodeCreate200Response interface. - */ -export function instanceOfHostAndEnrollCodeCreate200Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostAndEnrollCodeCreate200ResponseFromJSON(json: any): HostAndEnrollCodeCreate200Response { - return HostAndEnrollCodeCreate200ResponseFromJSONTyped(json, false); -} - -export function HostAndEnrollCodeCreate200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostAndEnrollCodeCreate200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': !exists(json, 'data') ? undefined : HostAndEnrollCodeCreate200ResponseDataFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} - -export function HostAndEnrollCodeCreate200ResponseToJSON(value?: HostAndEnrollCodeCreate200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': HostAndEnrollCodeCreate200ResponseDataToJSON(value.data), - 'metadata': value.metadata, - }; -} - diff --git a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.js b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.js deleted file mode 100644 index 0f7cfe7..0000000 --- a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.js +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { HostFromJSON, HostFromJSONTyped, HostToJSON, } from './Host'; -import { HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON, HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped, HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON, } from './HostAndEnrollCodeCreate200ResponseDataEnrollmentCode'; -/** - * Check if a given object implements the HostAndEnrollCodeCreate200ResponseData interface. - */ -export function instanceOfHostAndEnrollCodeCreate200ResponseData(value) { - let isInstance = true; - isInstance = isInstance && "host" in value; - return isInstance; -} -export function HostAndEnrollCodeCreate200ResponseDataFromJSON(json) { - return HostAndEnrollCodeCreate200ResponseDataFromJSONTyped(json, false); -} -export function HostAndEnrollCodeCreate200ResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'host': HostFromJSON(json['host']), - 'enrollmentCode': !exists(json, 'enrollmentCode') ? undefined : HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON(json['enrollmentCode']), - }; -} -export function HostAndEnrollCodeCreate200ResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'host': HostToJSON(value.host), - 'enrollmentCode': HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON(value.enrollmentCode), - }; -} -//# sourceMappingURL=HostAndEnrollCodeCreate200ResponseData.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.js.map b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.js.map deleted file mode 100644 index df08f78..0000000 --- a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostAndEnrollCodeCreate200ResponseData.js","sourceRoot":"","sources":["HostAndEnrollCodeCreate200ResponseData.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACb,MAAM,QAAQ,CAAC;AAEhB,OAAO,EACH,4DAA4D,EAC5D,iEAAiE,EACjE,0DAA0D,GAC7D,MAAM,wDAAwD,CAAC;AAsBhE;;GAEG;AACH,MAAM,UAAU,gDAAgD,CAAC,KAAa;IAC1E,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,MAAM,IAAI,KAAK,CAAC;IAE3C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,8CAA8C,CAAC,IAAS;IACpE,OAAO,mDAAmD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,mDAAmD,CAAC,IAAS,EAAE,mBAA4B;IACvG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAClC,gBAAgB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,4DAA4D,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;KACvJ,CAAC;AACN,CAAC;AAED,MAAM,UAAU,4CAA4C,CAAC,KAAqD;IAC9G,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;QAC9B,gBAAgB,EAAE,0DAA0D,CAAC,KAAK,CAAC,cAAc,CAAC;KACrG,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.ts b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.ts deleted file mode 100644 index 4b7fb3e..0000000 --- a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.ts +++ /dev/null @@ -1,87 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { Host } from './Host'; -import { - HostFromJSON, - HostFromJSONTyped, - HostToJSON, -} from './Host'; -import type { HostAndEnrollCodeCreate200ResponseDataEnrollmentCode } from './HostAndEnrollCodeCreate200ResponseDataEnrollmentCode'; -import { - HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON, - HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped, - HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON, -} from './HostAndEnrollCodeCreate200ResponseDataEnrollmentCode'; - -/** - * - * @export - * @interface HostAndEnrollCodeCreate200ResponseData - */ -export interface HostAndEnrollCodeCreate200ResponseData { - /** - * - * @type {Host} - * @memberof HostAndEnrollCodeCreate200ResponseData - */ - host: Host; - /** - * - * @type {HostAndEnrollCodeCreate200ResponseDataEnrollmentCode} - * @memberof HostAndEnrollCodeCreate200ResponseData - */ - enrollmentCode?: HostAndEnrollCodeCreate200ResponseDataEnrollmentCode; -} - -/** - * Check if a given object implements the HostAndEnrollCodeCreate200ResponseData interface. - */ -export function instanceOfHostAndEnrollCodeCreate200ResponseData(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "host" in value; - - return isInstance; -} - -export function HostAndEnrollCodeCreate200ResponseDataFromJSON(json: any): HostAndEnrollCodeCreate200ResponseData { - return HostAndEnrollCodeCreate200ResponseDataFromJSONTyped(json, false); -} - -export function HostAndEnrollCodeCreate200ResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostAndEnrollCodeCreate200ResponseData { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'host': HostFromJSON(json['host']), - 'enrollmentCode': !exists(json, 'enrollmentCode') ? undefined : HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON(json['enrollmentCode']), - }; -} - -export function HostAndEnrollCodeCreate200ResponseDataToJSON(value?: HostAndEnrollCodeCreate200ResponseData | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'host': HostToJSON(value.host), - 'enrollmentCode': HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON(value.enrollmentCode), - }; -} - diff --git a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js deleted file mode 100644 index d99039a..0000000 --- a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the HostAndEnrollCodeCreate200ResponseDataEnrollmentCode interface. - */ -export function instanceOfHostAndEnrollCodeCreate200ResponseDataEnrollmentCode(value) { - let isInstance = true; - return isInstance; -} -export function HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON(json) { - return HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped(json, false); -} -export function HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'code': !exists(json, 'code') ? undefined : json['code'], - 'lifetimeSeconds': !exists(json, 'lifetimeSeconds') ? undefined : json['lifetimeSeconds'], - }; -} -export function HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'code': value.code, - 'lifetimeSeconds': value.lifetimeSeconds, - }; -} -//# sourceMappingURL=HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js.map b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js.map deleted file mode 100644 index 0860936..0000000 --- a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js","sourceRoot":"","sources":["HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,8DAA8D,CAAC,KAAa;IACxF,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,4DAA4D,CAAC,IAAS;IAClF,OAAO,iEAAiE,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1F,CAAC;AAED,MAAM,UAAU,iEAAiE,CAAC,IAAS,EAAE,mBAA4B;IACrH,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,iBAAiB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;KAC5F,CAAC;AACN,CAAC;AAED,MAAM,UAAU,0DAA0D,CAAC,KAAmE;IAC1I,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,iBAAiB,EAAE,KAAK,CAAC,eAAe;KAC3C,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.ts b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.ts deleted file mode 100644 index 763e616..0000000 --- a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface HostAndEnrollCodeCreate200ResponseDataEnrollmentCode - */ -export interface HostAndEnrollCodeCreate200ResponseDataEnrollmentCode { - /** - * - * @type {string} - * @memberof HostAndEnrollCodeCreate200ResponseDataEnrollmentCode - */ - code?: string; - /** - * - * @type {number} - * @memberof HostAndEnrollCodeCreate200ResponseDataEnrollmentCode - */ - lifetimeSeconds?: number; -} - -/** - * Check if a given object implements the HostAndEnrollCodeCreate200ResponseDataEnrollmentCode interface. - */ -export function instanceOfHostAndEnrollCodeCreate200ResponseDataEnrollmentCode(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON(json: any): HostAndEnrollCodeCreate200ResponseDataEnrollmentCode { - return HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped(json, false); -} - -export function HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostAndEnrollCodeCreate200ResponseDataEnrollmentCode { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'code': !exists(json, 'code') ? undefined : json['code'], - 'lifetimeSeconds': !exists(json, 'lifetimeSeconds') ? undefined : json['lifetimeSeconds'], - }; -} - -export function HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON(value?: HostAndEnrollCodeCreate200ResponseDataEnrollmentCode | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'code': value.code, - 'lifetimeSeconds': value.lifetimeSeconds, - }; -} - diff --git a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.js b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.js deleted file mode 100644 index e6c5ddf..0000000 --- a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.js +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the HostAndEnrollCodeCreate400Response interface. - */ -export function instanceOfHostAndEnrollCodeCreate400Response(value) { - let isInstance = true; - isInstance = isInstance && "errors" in value; - return isInstance; -} -export function HostAndEnrollCodeCreate400ResponseFromJSON(json) { - return HostAndEnrollCodeCreate400ResponseFromJSONTyped(json, false); -} -export function HostAndEnrollCodeCreate400ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'errors': json['errors'], - }; -} -export function HostAndEnrollCodeCreate400ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'errors': value.errors, - }; -} -//# sourceMappingURL=HostAndEnrollCodeCreate400Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.js.map b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.js.map deleted file mode 100644 index e92eb94..0000000 --- a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostAndEnrollCodeCreate400Response.js","sourceRoot":"","sources":["HostAndEnrollCodeCreate400Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAe/C;;GAEG;AACH,MAAM,UAAU,4CAA4C,CAAC,KAAa;IACtE,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,QAAQ,IAAI,KAAK,CAAC;IAE7C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,0CAA0C,CAAC,IAAS;IAChE,OAAO,+CAA+C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,+CAA+C,CAAC,IAAS,EAAE,mBAA4B;IACnG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,MAAM,UAAU,wCAAwC,CAAC,KAAiD;IACtG,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,MAAM;KACzB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.ts b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.ts deleted file mode 100644 index 648489f..0000000 --- a/tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface HostAndEnrollCodeCreate400Response - */ -export interface HostAndEnrollCodeCreate400Response { - /** - * - * @type {Array} - * @memberof HostAndEnrollCodeCreate400Response - */ - errors: Array; -} - -/** - * Check if a given object implements the HostAndEnrollCodeCreate400Response interface. - */ -export function instanceOfHostAndEnrollCodeCreate400Response(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "errors" in value; - - return isInstance; -} - -export function HostAndEnrollCodeCreate400ResponseFromJSON(json: any): HostAndEnrollCodeCreate400Response { - return HostAndEnrollCodeCreate400ResponseFromJSONTyped(json, false); -} - -export function HostAndEnrollCodeCreate400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostAndEnrollCodeCreate400Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'errors': json['errors'], - }; -} - -export function HostAndEnrollCodeCreate400ResponseToJSON(value?: HostAndEnrollCodeCreate400Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'errors': value.errors, - }; -} - diff --git a/tfweb/src/lib/api/models/HostBlock200Response.js b/tfweb/src/lib/api/models/HostBlock200Response.js deleted file mode 100644 index 9937450..0000000 --- a/tfweb/src/lib/api/models/HostBlock200Response.js +++ /dev/null @@ -1,47 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { HostBlock200ResponseDataFromJSON, HostBlock200ResponseDataFromJSONTyped, HostBlock200ResponseDataToJSON, } from './HostBlock200ResponseData'; -/** - * Check if a given object implements the HostBlock200Response interface. - */ -export function instanceOfHostBlock200Response(value) { - let isInstance = true; - return isInstance; -} -export function HostBlock200ResponseFromJSON(json) { - return HostBlock200ResponseFromJSONTyped(json, false); -} -export function HostBlock200ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'data': !exists(json, 'data') ? undefined : HostBlock200ResponseDataFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} -export function HostBlock200ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'data': HostBlock200ResponseDataToJSON(value.data), - 'metadata': value.metadata, - }; -} -//# sourceMappingURL=HostBlock200Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostBlock200Response.js.map b/tfweb/src/lib/api/models/HostBlock200Response.js.map deleted file mode 100644 index c9dd222..0000000 --- a/tfweb/src/lib/api/models/HostBlock200Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostBlock200Response.js","sourceRoot":"","sources":["HostBlock200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,gCAAgC,EAChC,qCAAqC,EACrC,8BAA8B,GACjC,MAAM,4BAA4B,CAAC;AAsBpC;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAAC,KAAa;IACxD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,gCAAgC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1F,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,KAAmC;IAC1E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC;QAClD,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostBlock200Response.ts b/tfweb/src/lib/api/models/HostBlock200Response.ts deleted file mode 100644 index f550ea2..0000000 --- a/tfweb/src/lib/api/models/HostBlock200Response.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { HostBlock200ResponseData } from './HostBlock200ResponseData'; -import { - HostBlock200ResponseDataFromJSON, - HostBlock200ResponseDataFromJSONTyped, - HostBlock200ResponseDataToJSON, -} from './HostBlock200ResponseData'; - -/** - * - * @export - * @interface HostBlock200Response - */ -export interface HostBlock200Response { - /** - * - * @type {HostBlock200ResponseData} - * @memberof HostBlock200Response - */ - data?: HostBlock200ResponseData; - /** - * - * @type {object} - * @memberof HostBlock200Response - */ - metadata?: object; -} - -/** - * Check if a given object implements the HostBlock200Response interface. - */ -export function instanceOfHostBlock200Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostBlock200ResponseFromJSON(json: any): HostBlock200Response { - return HostBlock200ResponseFromJSONTyped(json, false); -} - -export function HostBlock200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostBlock200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': !exists(json, 'data') ? undefined : HostBlock200ResponseDataFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} - -export function HostBlock200ResponseToJSON(value?: HostBlock200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': HostBlock200ResponseDataToJSON(value.data), - 'metadata': value.metadata, - }; -} - diff --git a/tfweb/src/lib/api/models/HostBlock200ResponseData.js b/tfweb/src/lib/api/models/HostBlock200ResponseData.js deleted file mode 100644 index 5061cde..0000000 --- a/tfweb/src/lib/api/models/HostBlock200ResponseData.js +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { HostFromJSON, HostFromJSONTyped, HostToJSON, } from './Host'; -/** - * Check if a given object implements the HostBlock200ResponseData interface. - */ -export function instanceOfHostBlock200ResponseData(value) { - let isInstance = true; - return isInstance; -} -export function HostBlock200ResponseDataFromJSON(json) { - return HostBlock200ResponseDataFromJSONTyped(json, false); -} -export function HostBlock200ResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'host': !exists(json, 'host') ? undefined : HostFromJSON(json['host']), - }; -} -export function HostBlock200ResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'host': HostToJSON(value.host), - }; -} -//# sourceMappingURL=HostBlock200ResponseData.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostBlock200ResponseData.js.map b/tfweb/src/lib/api/models/HostBlock200ResponseData.js.map deleted file mode 100644 index f14d1d1..0000000 --- a/tfweb/src/lib/api/models/HostBlock200ResponseData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostBlock200ResponseData.js","sourceRoot":"","sources":["HostBlock200ResponseData.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACb,MAAM,QAAQ,CAAC;AAgBhB;;GAEG;AACH,MAAM,UAAU,kCAAkC,CAAC,KAAa;IAC5D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,qCAAqC,CAAC,IAAS,EAAE,mBAA4B;IACzF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KACzE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,KAAuC;IAClF,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;KACjC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostBlock200ResponseData.ts b/tfweb/src/lib/api/models/HostBlock200ResponseData.ts deleted file mode 100644 index 4c617de..0000000 --- a/tfweb/src/lib/api/models/HostBlock200ResponseData.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { Host } from './Host'; -import { - HostFromJSON, - HostFromJSONTyped, - HostToJSON, -} from './Host'; - -/** - * - * @export - * @interface HostBlock200ResponseData - */ -export interface HostBlock200ResponseData { - /** - * - * @type {Host} - * @memberof HostBlock200ResponseData - */ - host?: Host; -} - -/** - * Check if a given object implements the HostBlock200ResponseData interface. - */ -export function instanceOfHostBlock200ResponseData(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostBlock200ResponseDataFromJSON(json: any): HostBlock200ResponseData { - return HostBlock200ResponseDataFromJSONTyped(json, false); -} - -export function HostBlock200ResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostBlock200ResponseData { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'host': !exists(json, 'host') ? undefined : HostFromJSON(json['host']), - }; -} - -export function HostBlock200ResponseDataToJSON(value?: HostBlock200ResponseData | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'host': HostToJSON(value.host), - }; -} - diff --git a/tfweb/src/lib/api/models/HostCreate200Response.js b/tfweb/src/lib/api/models/HostCreate200Response.js deleted file mode 100644 index a2e0b44..0000000 --- a/tfweb/src/lib/api/models/HostCreate200Response.js +++ /dev/null @@ -1,47 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { HostFromJSON, HostFromJSONTyped, HostToJSON, } from './Host'; -/** - * Check if a given object implements the HostCreate200Response interface. - */ -export function instanceOfHostCreate200Response(value) { - let isInstance = true; - return isInstance; -} -export function HostCreate200ResponseFromJSON(json) { - return HostCreate200ResponseFromJSONTyped(json, false); -} -export function HostCreate200ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'data': !exists(json, 'data') ? undefined : HostFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} -export function HostCreate200ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'data': HostToJSON(value.data), - 'metadata': value.metadata, - }; -} -//# sourceMappingURL=HostCreate200Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostCreate200Response.js.map b/tfweb/src/lib/api/models/HostCreate200Response.js.map deleted file mode 100644 index bdd52b9..0000000 --- a/tfweb/src/lib/api/models/HostCreate200Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostCreate200Response.js","sourceRoot":"","sources":["HostCreate200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACb,MAAM,QAAQ,CAAC;AAsBhB;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAAC,KAAa;IACzD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtE,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,KAAoC;IAC5E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;QAC9B,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostCreate200Response.ts b/tfweb/src/lib/api/models/HostCreate200Response.ts deleted file mode 100644 index 33a68d3..0000000 --- a/tfweb/src/lib/api/models/HostCreate200Response.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { Host } from './Host'; -import { - HostFromJSON, - HostFromJSONTyped, - HostToJSON, -} from './Host'; - -/** - * - * @export - * @interface HostCreate200Response - */ -export interface HostCreate200Response { - /** - * - * @type {Host} - * @memberof HostCreate200Response - */ - data?: Host; - /** - * - * @type {object} - * @memberof HostCreate200Response - */ - metadata?: object; -} - -/** - * Check if a given object implements the HostCreate200Response interface. - */ -export function instanceOfHostCreate200Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostCreate200ResponseFromJSON(json: any): HostCreate200Response { - return HostCreate200ResponseFromJSONTyped(json, false); -} - -export function HostCreate200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostCreate200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': !exists(json, 'data') ? undefined : HostFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} - -export function HostCreate200ResponseToJSON(value?: HostCreate200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': HostToJSON(value.data), - 'metadata': value.metadata, - }; -} - diff --git a/tfweb/src/lib/api/models/HostCreate400Response.js b/tfweb/src/lib/api/models/HostCreate400Response.js deleted file mode 100644 index 32edabe..0000000 --- a/tfweb/src/lib/api/models/HostCreate400Response.js +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the HostCreate400Response interface. - */ -export function instanceOfHostCreate400Response(value) { - let isInstance = true; - return isInstance; -} -export function HostCreate400ResponseFromJSON(json) { - return HostCreate400ResponseFromJSONTyped(json, false); -} -export function HostCreate400ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'errors': !exists(json, 'errors') ? undefined : json['errors'], - }; -} -export function HostCreate400ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'errors': value.errors, - }; -} -//# sourceMappingURL=HostCreate400Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostCreate400Response.js.map b/tfweb/src/lib/api/models/HostCreate400Response.js.map deleted file mode 100644 index 1e4e29b..0000000 --- a/tfweb/src/lib/api/models/HostCreate400Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostCreate400Response.js","sourceRoot":"","sources":["HostCreate400Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAe/C;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAAC,KAAa;IACzD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KACjE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,KAAoC;IAC5E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,MAAM;KACzB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostCreate400Response.ts b/tfweb/src/lib/api/models/HostCreate400Response.ts deleted file mode 100644 index a2f355c..0000000 --- a/tfweb/src/lib/api/models/HostCreate400Response.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface HostCreate400Response - */ -export interface HostCreate400Response { - /** - * - * @type {Array} - * @memberof HostCreate400Response - */ - errors?: Array; -} - -/** - * Check if a given object implements the HostCreate400Response interface. - */ -export function instanceOfHostCreate400Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostCreate400ResponseFromJSON(json: any): HostCreate400Response { - return HostCreate400ResponseFromJSONTyped(json, false); -} - -export function HostCreate400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostCreate400Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'errors': !exists(json, 'errors') ? undefined : json['errors'], - }; -} - -export function HostCreate400ResponseToJSON(value?: HostCreate400Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'errors': value.errors, - }; -} - diff --git a/tfweb/src/lib/api/models/HostCreateRequest.js b/tfweb/src/lib/api/models/HostCreateRequest.js deleted file mode 100644 index bbe879d..0000000 --- a/tfweb/src/lib/api/models/HostCreateRequest.js +++ /dev/null @@ -1,60 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the HostCreateRequest interface. - */ -export function instanceOfHostCreateRequest(value) { - let isInstance = true; - isInstance = isInstance && "name" in value; - isInstance = isInstance && "networkID" in value; - return isInstance; -} -export function HostCreateRequestFromJSON(json) { - return HostCreateRequestFromJSONTyped(json, false); -} -export function HostCreateRequestFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'name': json['name'], - 'networkID': json['networkID'], - 'roleID': !exists(json, 'roleID') ? undefined : json['roleID'], - 'ipAddress': !exists(json, 'ipAddress') ? undefined : json['ipAddress'], - 'staticAddresses': !exists(json, 'staticAddresses') ? undefined : json['staticAddresses'], - 'listenPort': !exists(json, 'listenPort') ? undefined : json['listenPort'], - 'isLighthouse': !exists(json, 'isLighthouse') ? undefined : json['isLighthouse'], - 'isRelay': !exists(json, 'isRelay') ? undefined : json['isRelay'], - }; -} -export function HostCreateRequestToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'name': value.name, - 'networkID': value.networkID, - 'roleID': value.roleID, - 'ipAddress': value.ipAddress, - 'staticAddresses': value.staticAddresses, - 'listenPort': value.listenPort, - 'isLighthouse': value.isLighthouse, - 'isRelay': value.isRelay, - }; -} -//# sourceMappingURL=HostCreateRequest.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostCreateRequest.js.map b/tfweb/src/lib/api/models/HostCreateRequest.js.map deleted file mode 100644 index 36388a3..0000000 --- a/tfweb/src/lib/api/models/HostCreateRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostCreateRequest.js","sourceRoot":"","sources":["HostCreateRequest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAyD/C;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACrD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,MAAM,IAAI,KAAK,CAAC;IAC3C,UAAU,GAAG,UAAU,IAAI,WAAW,IAAI,KAAK,CAAC;IAEhD,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9D,WAAW,EAAE,CAAC,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index 2975619..0000000 --- a/tfweb/src/lib/api/models/HostCreateRequest.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface HostCreateRequest - */ -export interface HostCreateRequest { - /** - * Name of the new host - * @type {string} - * @memberof HostCreateRequest - */ - name: string; - /** - * ID of your network - * @type {string} - * @memberof HostCreateRequest - */ - networkID: string; - /** - * ID of the role you want to assign - * @type {string} - * @memberof HostCreateRequest - */ - roleID?: string | null; - /** - * Assign an IP address to be used within the Managed Nebula network. Must be within the network's CIDR range. Will be chosen automatically if not provided. - * @type {string} - * @memberof HostCreateRequest - */ - ipAddress?: string; - /** - * List of static IPv4:port addresses. At least one is required if `isLighthouse` is `true`. - * @type {Array} - * @memberof HostCreateRequest - */ - staticAddresses?: Array; - /** - * The UDP port nebula should use on the host. An available port will be automatically selected if `0` is specified. Required for lighthouses and relays. - * @type {any} - * @memberof HostCreateRequest - */ - listenPort?: any | null; - /** - * Set to true to create a new lighthouse. A Lighthouse cannot also be relay. - * @type {any} - * @memberof HostCreateRequest - */ - isLighthouse?: any | null; - /** - * Set to true to create a new relay. A relay cannot also be a lighthouse. - * @type {any} - * @memberof HostCreateRequest - */ - isRelay?: any | null; -} - -/** - * Check if a given object implements the HostCreateRequest interface. - */ -export function instanceOfHostCreateRequest(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "name" in value; - isInstance = isInstance && "networkID" in value; - - return isInstance; -} - -export function HostCreateRequestFromJSON(json: any): HostCreateRequest { - return HostCreateRequestFromJSONTyped(json, false); -} - -export function HostCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostCreateRequest { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'name': json['name'], - 'networkID': json['networkID'], - 'roleID': !exists(json, 'roleID') ? undefined : json['roleID'], - 'ipAddress': !exists(json, 'ipAddress') ? undefined : json['ipAddress'], - 'staticAddresses': !exists(json, 'staticAddresses') ? undefined : json['staticAddresses'], - 'listenPort': !exists(json, 'listenPort') ? undefined : json['listenPort'], - 'isLighthouse': !exists(json, 'isLighthouse') ? undefined : json['isLighthouse'], - 'isRelay': !exists(json, 'isRelay') ? undefined : json['isRelay'], - }; -} - -export function HostCreateRequestToJSON(value?: HostCreateRequest | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'name': value.name, - 'networkID': value.networkID, - 'roleID': value.roleID, - 'ipAddress': value.ipAddress, - 'staticAddresses': value.staticAddresses, - 'listenPort': value.listenPort, - 'isLighthouse': value.isLighthouse, - 'isRelay': value.isRelay, - }; -} - diff --git a/tfweb/src/lib/api/models/HostDelete200Response.js b/tfweb/src/lib/api/models/HostDelete200Response.js deleted file mode 100644 index 90c3754..0000000 --- a/tfweb/src/lib/api/models/HostDelete200Response.js +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the HostDelete200Response interface. - */ -export function instanceOfHostDelete200Response(value) { - let isInstance = true; - return isInstance; -} -export function HostDelete200ResponseFromJSON(json) { - return HostDelete200ResponseFromJSONTyped(json, false); -} -export function HostDelete200ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'data': !exists(json, 'data') ? undefined : json['data'], - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} -export function HostDelete200ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'data': value.data, - 'metadata': value.metadata, - }; -} -//# sourceMappingURL=HostDelete200Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostDelete200Response.js.map b/tfweb/src/lib/api/models/HostDelete200Response.js.map deleted file mode 100644 index ac98b5f..0000000 --- a/tfweb/src/lib/api/models/HostDelete200Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostDelete200Response.js","sourceRoot":"","sources":["HostDelete200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAAC,KAAa;IACzD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,KAAoC;IAC5E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostDelete200Response.ts b/tfweb/src/lib/api/models/HostDelete200Response.ts deleted file mode 100644 index 38aad6a..0000000 --- a/tfweb/src/lib/api/models/HostDelete200Response.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface HostDelete200Response - */ -export interface HostDelete200Response { - /** - * - * @type {object} - * @memberof HostDelete200Response - */ - data?: object; - /** - * - * @type {object} - * @memberof HostDelete200Response - */ - metadata?: object; -} - -/** - * Check if a given object implements the HostDelete200Response interface. - */ -export function instanceOfHostDelete200Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostDelete200ResponseFromJSON(json: any): HostDelete200Response { - return HostDelete200ResponseFromJSONTyped(json, false); -} - -export function HostDelete200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostDelete200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': !exists(json, 'data') ? undefined : json['data'], - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} - -export function HostDelete200ResponseToJSON(value?: HostDelete200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': value.data, - 'metadata': value.metadata, - }; -} - diff --git a/tfweb/src/lib/api/models/HostEdit200Response.js b/tfweb/src/lib/api/models/HostEdit200Response.js deleted file mode 100644 index 8c6ac94..0000000 --- a/tfweb/src/lib/api/models/HostEdit200Response.js +++ /dev/null @@ -1,47 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { HostFromJSON, HostFromJSONTyped, HostToJSON, } from './Host'; -/** - * Check if a given object implements the HostEdit200Response interface. - */ -export function instanceOfHostEdit200Response(value) { - let isInstance = true; - return isInstance; -} -export function HostEdit200ResponseFromJSON(json) { - return HostEdit200ResponseFromJSONTyped(json, false); -} -export function HostEdit200ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'data': !exists(json, 'data') ? undefined : HostFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} -export function HostEdit200ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'data': HostToJSON(value.data), - 'metadata': value.metadata, - }; -} -//# sourceMappingURL=HostEdit200Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostEdit200Response.js.map b/tfweb/src/lib/api/models/HostEdit200Response.js.map deleted file mode 100644 index 7e32d56..0000000 --- a/tfweb/src/lib/api/models/HostEdit200Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostEdit200Response.js","sourceRoot":"","sources":["HostEdit200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACb,MAAM,QAAQ,CAAC;AAsBhB;;GAEG;AACH,MAAM,UAAU,6BAA6B,CAAC,KAAa;IACvD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtE,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,KAAkC;IACxE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;QAC9B,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostEdit200Response.ts b/tfweb/src/lib/api/models/HostEdit200Response.ts deleted file mode 100644 index d38bf9a..0000000 --- a/tfweb/src/lib/api/models/HostEdit200Response.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { Host } from './Host'; -import { - HostFromJSON, - HostFromJSONTyped, - HostToJSON, -} from './Host'; - -/** - * - * @export - * @interface HostEdit200Response - */ -export interface HostEdit200Response { - /** - * - * @type {Host} - * @memberof HostEdit200Response - */ - data?: Host; - /** - * - * @type {object} - * @memberof HostEdit200Response - */ - metadata?: object; -} - -/** - * Check if a given object implements the HostEdit200Response interface. - */ -export function instanceOfHostEdit200Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostEdit200ResponseFromJSON(json: any): HostEdit200Response { - return HostEdit200ResponseFromJSONTyped(json, false); -} - -export function HostEdit200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostEdit200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': !exists(json, 'data') ? undefined : HostFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} - -export function HostEdit200ResponseToJSON(value?: HostEdit200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': HostToJSON(value.data), - 'metadata': value.metadata, - }; -} - diff --git a/tfweb/src/lib/api/models/HostEditRequest.js b/tfweb/src/lib/api/models/HostEditRequest.js deleted file mode 100644 index 2ae1541..0000000 --- a/tfweb/src/lib/api/models/HostEditRequest.js +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the HostEditRequest interface. - */ -export function instanceOfHostEditRequest(value) { - let isInstance = true; - return isInstance; -} -export function HostEditRequestFromJSON(json) { - return HostEditRequestFromJSONTyped(json, false); -} -export function HostEditRequestFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'staticAddresses': !exists(json, 'staticAddresses') ? undefined : json['staticAddresses'], - 'listenPort': !exists(json, 'listenPort') ? undefined : json['listenPort'], - }; -} -export function HostEditRequestToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'staticAddresses': value.staticAddresses, - 'listenPort': value.listenPort, - }; -} -//# sourceMappingURL=HostEditRequest.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostEditRequest.js.map b/tfweb/src/lib/api/models/HostEditRequest.js.map deleted file mode 100644 index 25e575b..0000000 --- a/tfweb/src/lib/api/models/HostEditRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostEditRequest.js","sourceRoot":"","sources":["HostEditRequest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAAa;IACnD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,iBAAiB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;QACzF,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;KAC7E,CAAC;AACN,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,KAA8B;IAChE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,iBAAiB,EAAE,KAAK,CAAC,eAAe;QACxC,YAAY,EAAE,KAAK,CAAC,UAAU;KACjC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostEditRequest.ts b/tfweb/src/lib/api/models/HostEditRequest.ts deleted file mode 100644 index 13ea809..0000000 --- a/tfweb/src/lib/api/models/HostEditRequest.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface HostEditRequest - */ -export interface HostEditRequest { - /** - * List of static IPv4:port addresses. At least one is required if `isLighthouse` is `true`. - * @type {string} - * @memberof HostEditRequest - */ - staticAddresses?: string; - /** - * The UDP port nebula should use on the host. An available port will be automatically selected if `0` is specified. Required for lighthouses and relays. - * @type {any} - * @memberof HostEditRequest - */ - listenPort?: any | null; -} - -/** - * Check if a given object implements the HostEditRequest interface. - */ -export function instanceOfHostEditRequest(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostEditRequestFromJSON(json: any): HostEditRequest { - return HostEditRequestFromJSONTyped(json, false); -} - -export function HostEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostEditRequest { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'staticAddresses': !exists(json, 'staticAddresses') ? undefined : json['staticAddresses'], - 'listenPort': !exists(json, 'listenPort') ? undefined : json['listenPort'], - }; -} - -export function HostEditRequestToJSON(value?: HostEditRequest | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'staticAddresses': value.staticAddresses, - 'listenPort': value.listenPort, - }; -} - diff --git a/tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.js b/tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.js deleted file mode 100644 index bc2a41e..0000000 --- a/tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.js +++ /dev/null @@ -1,47 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { HostEnrollCodeCreate200ResponseDataFromJSON, HostEnrollCodeCreate200ResponseDataFromJSONTyped, HostEnrollCodeCreate200ResponseDataToJSON, } from './HostEnrollCodeCreate200ResponseData'; -/** - * Check if a given object implements the HostEnrollCodeCreate200Response interface. - */ -export function instanceOfHostEnrollCodeCreate200Response(value) { - let isInstance = true; - return isInstance; -} -export function HostEnrollCodeCreate200ResponseFromJSON(json) { - return HostEnrollCodeCreate200ResponseFromJSONTyped(json, false); -} -export function HostEnrollCodeCreate200ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'data': !exists(json, 'data') ? undefined : HostEnrollCodeCreate200ResponseDataFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} -export function HostEnrollCodeCreate200ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'data': HostEnrollCodeCreate200ResponseDataToJSON(value.data), - 'metadata': value.metadata, - }; -} -//# sourceMappingURL=HostEnrollCodeCreate200Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.js.map b/tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.js.map deleted file mode 100644 index 8c87e43..0000000 --- a/tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostEnrollCodeCreate200Response.js","sourceRoot":"","sources":["HostEnrollCodeCreate200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,2CAA2C,EAC3C,gDAAgD,EAChD,yCAAyC,GAC5C,MAAM,uCAAuC,CAAC;AAsB/C;;GAEG;AACH,MAAM,UAAU,yCAAyC,CAAC,KAAa;IACnE,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,uCAAuC,CAAC,IAAS;IAC7D,OAAO,4CAA4C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrE,CAAC;AAED,MAAM,UAAU,4CAA4C,CAAC,IAAS,EAAE,mBAA4B;IAChG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,2CAA2C,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACrG,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,qCAAqC,CAAC,KAA8C;IAChG,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,yCAAyC,CAAC,KAAK,CAAC,IAAI,CAAC;QAC7D,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.ts b/tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.ts deleted file mode 100644 index d0101dd..0000000 --- a/tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { HostEnrollCodeCreate200ResponseData } from './HostEnrollCodeCreate200ResponseData'; -import { - HostEnrollCodeCreate200ResponseDataFromJSON, - HostEnrollCodeCreate200ResponseDataFromJSONTyped, - HostEnrollCodeCreate200ResponseDataToJSON, -} from './HostEnrollCodeCreate200ResponseData'; - -/** - * - * @export - * @interface HostEnrollCodeCreate200Response - */ -export interface HostEnrollCodeCreate200Response { - /** - * - * @type {HostEnrollCodeCreate200ResponseData} - * @memberof HostEnrollCodeCreate200Response - */ - data?: HostEnrollCodeCreate200ResponseData; - /** - * - * @type {object} - * @memberof HostEnrollCodeCreate200Response - */ - metadata?: object; -} - -/** - * Check if a given object implements the HostEnrollCodeCreate200Response interface. - */ -export function instanceOfHostEnrollCodeCreate200Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostEnrollCodeCreate200ResponseFromJSON(json: any): HostEnrollCodeCreate200Response { - return HostEnrollCodeCreate200ResponseFromJSONTyped(json, false); -} - -export function HostEnrollCodeCreate200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostEnrollCodeCreate200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': !exists(json, 'data') ? undefined : HostEnrollCodeCreate200ResponseDataFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} - -export function HostEnrollCodeCreate200ResponseToJSON(value?: HostEnrollCodeCreate200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': HostEnrollCodeCreate200ResponseDataToJSON(value.data), - 'metadata': value.metadata, - }; -} - diff --git a/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.js b/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.js deleted file mode 100644 index fe0a879..0000000 --- a/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.js +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON, HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped, HostEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON, } from './HostEnrollCodeCreate200ResponseDataEnrollmentCode'; -/** - * Check if a given object implements the HostEnrollCodeCreate200ResponseData interface. - */ -export function instanceOfHostEnrollCodeCreate200ResponseData(value) { - let isInstance = true; - return isInstance; -} -export function HostEnrollCodeCreate200ResponseDataFromJSON(json) { - return HostEnrollCodeCreate200ResponseDataFromJSONTyped(json, false); -} -export function HostEnrollCodeCreate200ResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'enrollmentCode': !exists(json, 'enrollmentCode') ? undefined : HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON(json['enrollmentCode']), - }; -} -export function HostEnrollCodeCreate200ResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'enrollmentCode': HostEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON(value.enrollmentCode), - }; -} -//# sourceMappingURL=HostEnrollCodeCreate200ResponseData.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.js.map b/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.js.map deleted file mode 100644 index 8191144..0000000 --- a/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostEnrollCodeCreate200ResponseData.js","sourceRoot":"","sources":["HostEnrollCodeCreate200ResponseData.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,yDAAyD,EACzD,8DAA8D,EAC9D,uDAAuD,GAC1D,MAAM,qDAAqD,CAAC;AAgB7D;;GAEG;AACH,MAAM,UAAU,6CAA6C,CAAC,KAAa;IACvE,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,2CAA2C,CAAC,IAAS;IACjE,OAAO,gDAAgD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,UAAU,gDAAgD,CAAC,IAAS,EAAE,mBAA4B;IACpG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,gBAAgB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,yDAAyD,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;KACpJ,CAAC;AACN,CAAC;AAED,MAAM,UAAU,yCAAyC,CAAC,KAAkD;IACxG,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,gBAAgB,EAAE,uDAAuD,CAAC,KAAK,CAAC,cAAc,CAAC;KAClG,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.ts b/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.ts deleted file mode 100644 index 6008ad4..0000000 --- a/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { HostEnrollCodeCreate200ResponseDataEnrollmentCode } from './HostEnrollCodeCreate200ResponseDataEnrollmentCode'; -import { - HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON, - HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped, - HostEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON, -} from './HostEnrollCodeCreate200ResponseDataEnrollmentCode'; - -/** - * - * @export - * @interface HostEnrollCodeCreate200ResponseData - */ -export interface HostEnrollCodeCreate200ResponseData { - /** - * - * @type {HostEnrollCodeCreate200ResponseDataEnrollmentCode} - * @memberof HostEnrollCodeCreate200ResponseData - */ - enrollmentCode?: HostEnrollCodeCreate200ResponseDataEnrollmentCode; -} - -/** - * Check if a given object implements the HostEnrollCodeCreate200ResponseData interface. - */ -export function instanceOfHostEnrollCodeCreate200ResponseData(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostEnrollCodeCreate200ResponseDataFromJSON(json: any): HostEnrollCodeCreate200ResponseData { - return HostEnrollCodeCreate200ResponseDataFromJSONTyped(json, false); -} - -export function HostEnrollCodeCreate200ResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostEnrollCodeCreate200ResponseData { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'enrollmentCode': !exists(json, 'enrollmentCode') ? undefined : HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON(json['enrollmentCode']), - }; -} - -export function HostEnrollCodeCreate200ResponseDataToJSON(value?: HostEnrollCodeCreate200ResponseData | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'enrollmentCode': HostEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON(value.enrollmentCode), - }; -} - diff --git a/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.js b/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.js deleted file mode 100644 index c7ca25b..0000000 --- a/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.js +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the HostEnrollCodeCreate200ResponseDataEnrollmentCode interface. - */ -export function instanceOfHostEnrollCodeCreate200ResponseDataEnrollmentCode(value) { - let isInstance = true; - return isInstance; -} -export function HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON(json) { - return HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped(json, false); -} -export function HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'code': !exists(json, 'code') ? undefined : json['code'], - 'lifetimeSeconds': !exists(json, 'lifetimeSeconds') ? undefined : json['lifetimeSeconds'], - }; -} -export function HostEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'code': value.code, - 'lifetimeSeconds': value.lifetimeSeconds, - }; -} -//# sourceMappingURL=HostEnrollCodeCreate200ResponseDataEnrollmentCode.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.js.map b/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.js.map deleted file mode 100644 index d94dab1..0000000 --- a/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostEnrollCodeCreate200ResponseDataEnrollmentCode.js","sourceRoot":"","sources":["HostEnrollCodeCreate200ResponseDataEnrollmentCode.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,2DAA2D,CAAC,KAAa;IACrF,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yDAAyD,CAAC,IAAS;IAC/E,OAAO,8DAA8D,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvF,CAAC;AAED,MAAM,UAAU,8DAA8D,CAAC,IAAS,EAAE,mBAA4B;IAClH,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,iBAAiB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;KAC5F,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uDAAuD,CAAC,KAAgE;IACpI,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,iBAAiB,EAAE,KAAK,CAAC,eAAe;KAC3C,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.ts b/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.ts deleted file mode 100644 index 56cf94b..0000000 --- a/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface HostEnrollCodeCreate200ResponseDataEnrollmentCode - */ -export interface HostEnrollCodeCreate200ResponseDataEnrollmentCode { - /** - * Secret code to be used in `dnclient enroll` to allow the host/lighthouse/relay to join your Managed Nebula network. - * @type {string} - * @memberof HostEnrollCodeCreate200ResponseDataEnrollmentCode - */ - code?: string; - /** - * The number of seconds the code is valid after being issued. - * @type {number} - * @memberof HostEnrollCodeCreate200ResponseDataEnrollmentCode - */ - lifetimeSeconds?: number; -} - -/** - * Check if a given object implements the HostEnrollCodeCreate200ResponseDataEnrollmentCode interface. - */ -export function instanceOfHostEnrollCodeCreate200ResponseDataEnrollmentCode(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON(json: any): HostEnrollCodeCreate200ResponseDataEnrollmentCode { - return HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped(json, false); -} - -export function HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostEnrollCodeCreate200ResponseDataEnrollmentCode { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'code': !exists(json, 'code') ? undefined : json['code'], - 'lifetimeSeconds': !exists(json, 'lifetimeSeconds') ? undefined : json['lifetimeSeconds'], - }; -} - -export function HostEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON(value?: HostEnrollCodeCreate200ResponseDataEnrollmentCode | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'code': value.code, - 'lifetimeSeconds': value.lifetimeSeconds, - }; -} - diff --git a/tfweb/src/lib/api/models/HostGet200Response.js b/tfweb/src/lib/api/models/HostGet200Response.js deleted file mode 100644 index 2caa607..0000000 --- a/tfweb/src/lib/api/models/HostGet200Response.js +++ /dev/null @@ -1,47 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { HostFromJSON, HostFromJSONTyped, HostToJSON, } from './Host'; -/** - * Check if a given object implements the HostGet200Response interface. - */ -export function instanceOfHostGet200Response(value) { - let isInstance = true; - return isInstance; -} -export function HostGet200ResponseFromJSON(json) { - return HostGet200ResponseFromJSONTyped(json, false); -} -export function HostGet200ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'data': !exists(json, 'data') ? undefined : HostFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} -export function HostGet200ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'data': HostToJSON(value.data), - 'metadata': value.metadata, - }; -} -//# sourceMappingURL=HostGet200Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostGet200Response.js.map b/tfweb/src/lib/api/models/HostGet200Response.js.map deleted file mode 100644 index 01a2f23..0000000 --- a/tfweb/src/lib/api/models/HostGet200Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostGet200Response.js","sourceRoot":"","sources":["HostGet200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACb,MAAM,QAAQ,CAAC;AAsBhB;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,KAAa;IACtD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtE,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,KAAiC;IACtE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;QAC9B,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostGet200Response.ts b/tfweb/src/lib/api/models/HostGet200Response.ts deleted file mode 100644 index e56bcd3..0000000 --- a/tfweb/src/lib/api/models/HostGet200Response.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { Host } from './Host'; -import { - HostFromJSON, - HostFromJSONTyped, - HostToJSON, -} from './Host'; - -/** - * - * @export - * @interface HostGet200Response - */ -export interface HostGet200Response { - /** - * - * @type {Host} - * @memberof HostGet200Response - */ - data?: Host; - /** - * - * @type {object} - * @memberof HostGet200Response - */ - metadata?: object; -} - -/** - * Check if a given object implements the HostGet200Response interface. - */ -export function instanceOfHostGet200Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostGet200ResponseFromJSON(json: any): HostGet200Response { - return HostGet200ResponseFromJSONTyped(json, false); -} - -export function HostGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostGet200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': !exists(json, 'data') ? undefined : HostFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} - -export function HostGet200ResponseToJSON(value?: HostGet200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': HostToJSON(value.data), - 'metadata': value.metadata, - }; -} - diff --git a/tfweb/src/lib/api/models/HostMetadata.js b/tfweb/src/lib/api/models/HostMetadata.js deleted file mode 100644 index 9eefaf3..0000000 --- a/tfweb/src/lib/api/models/HostMetadata.js +++ /dev/null @@ -1,58 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * @export - */ -export const HostMetadataPlatformEnum = { - Dnclient: 'dnclient', - Mobile: 'mobile', - Null: 'null' -}; -/** - * Check if a given object implements the HostMetadata interface. - */ -export function instanceOfHostMetadata(value) { - let isInstance = true; - return isInstance; -} -export function HostMetadataFromJSON(json) { - return HostMetadataFromJSONTyped(json, false); -} -export function HostMetadataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'lastSeenAt': !exists(json, 'lastSeenAt') ? undefined : json['lastSeenAt'], - 'version': !exists(json, 'version') ? undefined : json['version'], - 'platform': !exists(json, 'platform') ? undefined : json['platform'], - 'updateAvailable': !exists(json, 'updateAvailable') ? undefined : json['updateAvailable'], - }; -} -export function HostMetadataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'lastSeenAt': value.lastSeenAt, - 'version': value.version, - 'platform': value.platform, - 'updateAvailable': value.updateAvailable, - }; -} -//# sourceMappingURL=HostMetadata.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostMetadata.js.map b/tfweb/src/lib/api/models/HostMetadata.js.map deleted file mode 100644 index 33d6a98..0000000 --- a/tfweb/src/lib/api/models/HostMetadata.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostMetadata.js","sourceRoot":"","sources":["HostMetadata.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;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OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,iBAAiB,EAAE,KAAK,CAAC,eAAe;KAC3C,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostMetadata.ts b/tfweb/src/lib/api/models/HostMetadata.ts deleted file mode 100644 index 38178f2..0000000 --- a/tfweb/src/lib/api/models/HostMetadata.ts +++ /dev/null @@ -1,101 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface HostMetadata - */ -export interface HostMetadata { - /** - * - * @type {string} - * @memberof HostMetadata - */ - lastSeenAt?: string | null; - /** - * - * @type {string} - * @memberof HostMetadata - */ - version?: string | null; - /** - * - * @type {string} - * @memberof HostMetadata - */ - platform?: HostMetadataPlatformEnum; - /** - * - * @type {boolean} - * @memberof HostMetadata - */ - updateAvailable?: boolean | null; -} - - -/** - * @export - */ -export const HostMetadataPlatformEnum = { - Dnclient: 'dnclient', - Mobile: 'mobile', - Null: 'null' -} as const; -export type HostMetadataPlatformEnum = typeof HostMetadataPlatformEnum[keyof typeof HostMetadataPlatformEnum]; - - -/** - * Check if a given object implements the HostMetadata interface. - */ -export function instanceOfHostMetadata(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostMetadataFromJSON(json: any): HostMetadata { - return HostMetadataFromJSONTyped(json, false); -} - -export function HostMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostMetadata { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'lastSeenAt': !exists(json, 'lastSeenAt') ? undefined : json['lastSeenAt'], - 'version': !exists(json, 'version') ? undefined : json['version'], - 'platform': !exists(json, 'platform') ? undefined : json['platform'], - 'updateAvailable': !exists(json, 'updateAvailable') ? undefined : json['updateAvailable'], - }; -} - -export function HostMetadataToJSON(value?: HostMetadata | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'lastSeenAt': value.lastSeenAt, - 'version': value.version, - 'platform': value.platform, - 'updateAvailable': value.updateAvailable, - }; -} - diff --git a/tfweb/src/lib/api/models/HostsList200Response.js b/tfweb/src/lib/api/models/HostsList200Response.js deleted file mode 100644 index dee8cd3..0000000 --- a/tfweb/src/lib/api/models/HostsList200Response.js +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { HostFromJSON, HostFromJSONTyped, HostToJSON, } from './Host'; -import { PaginationMetadataFromJSON, PaginationMetadataFromJSONTyped, PaginationMetadataToJSON, } from './PaginationMetadata'; -/** - * Check if a given object implements the HostsList200Response interface. - */ -export function instanceOfHostsList200Response(value) { - let isInstance = true; - return isInstance; -} -export function HostsList200ResponseFromJSON(json) { - return HostsList200ResponseFromJSONTyped(json, false); -} -export function HostsList200ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'data': !exists(json, 'data') ? undefined : (json['data'].map(HostFromJSON)), - 'metadata': !exists(json, 'metadata') ? undefined : PaginationMetadataFromJSON(json['metadata']), - }; -} -export function HostsList200ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'data': value.data === undefined ? undefined : (value.data.map(HostToJSON)), - 'metadata': PaginationMetadataToJSON(value.metadata), - }; -} -//# sourceMappingURL=HostsList200Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostsList200Response.js.map b/tfweb/src/lib/api/models/HostsList200Response.js.map deleted file mode 100644 index 36586d0..0000000 --- a/tfweb/src/lib/api/models/HostsList200Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HostsList200Response.js","sourceRoot":"","sources":["HostsList200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACb,MAAM,QAAQ,CAAC;AAEhB,OAAO,EACH,0BAA0B,EAC1B,+BAA+B,EAC/B,wBAAwB,GAC3B,MAAM,sBAAsB,CAAC;AAsB9B;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAAC,KAAa;IACxD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAC5F,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACnG,CAAC;AACN,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,KAAmC;IAC1E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,IAAmB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC3F,UAAU,EAAE,wBAAwB,CAAC,KAAK,CAAC,QAAQ,CAAC;KACvD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostsList200Response.ts b/tfweb/src/lib/api/models/HostsList200Response.ts deleted file mode 100644 index f81b419..0000000 --- a/tfweb/src/lib/api/models/HostsList200Response.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { Host } from './Host'; -import { - HostFromJSON, - HostFromJSONTyped, - HostToJSON, -} from './Host'; -import type { PaginationMetadata } from './PaginationMetadata'; -import { - PaginationMetadataFromJSON, - PaginationMetadataFromJSONTyped, - PaginationMetadataToJSON, -} from './PaginationMetadata'; - -/** - * - * @export - * @interface HostsList200Response - */ -export interface HostsList200Response { - /** - * - * @type {Array} - * @memberof HostsList200Response - */ - data?: Array; - /** - * - * @type {PaginationMetadata} - * @memberof HostsList200Response - */ - metadata?: PaginationMetadata; -} - -/** - * Check if a given object implements the HostsList200Response interface. - */ -export function instanceOfHostsList200Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function HostsList200ResponseFromJSON(json: any): HostsList200Response { - return HostsList200ResponseFromJSONTyped(json, false); -} - -export function HostsList200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostsList200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': !exists(json, 'data') ? undefined : ((json['data'] as Array).map(HostFromJSON)), - 'metadata': !exists(json, 'metadata') ? undefined : PaginationMetadataFromJSON(json['metadata']), - }; -} - -export function HostsList200ResponseToJSON(value?: HostsList200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': value.data === undefined ? undefined : ((value.data as Array).map(HostToJSON)), - 'metadata': PaginationMetadataToJSON(value.metadata), - }; -} - diff --git a/tfweb/src/lib/api/models/ModelError.js b/tfweb/src/lib/api/models/ModelError.js deleted file mode 100644 index aaee1ac..0000000 --- a/tfweb/src/lib/api/models/ModelError.js +++ /dev/null @@ -1,50 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the ModelError interface. - */ -export function instanceOfModelError(value) { - let isInstance = true; - isInstance = isInstance && "code" in value; - isInstance = isInstance && "message" in value; - return isInstance; -} -export function ModelErrorFromJSON(json) { - return ModelErrorFromJSONTyped(json, false); -} -export function ModelErrorFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'code': json['code'], - 'message': json['message'], - 'path': !exists(json, 'path') ? undefined : json['path'], - }; -} -export function ModelErrorToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'code': value.code, - 'message': value.message, - 'path': value.path, - }; -} -//# sourceMappingURL=ModelError.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ModelError.js.map b/tfweb/src/lib/api/models/ModelError.js.map deleted file mode 100644 index 982d5cd..0000000 --- a/tfweb/src/lib/api/models/ModelError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ModelError.js","sourceRoot":"","sources":["ModelError.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA2B/C;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAa;IAC9C,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,MAAM,IAAI,KAAK,CAAC;IAC3C,UAAU,GAAG,UAAU,IAAI,SAAS,IAAI,KAAK,CAAC;IAE9C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAyB;IACtD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,MAAM,EAAE,KAAK,CAAC,IAAI;KACrB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ModelError.ts b/tfweb/src/lib/api/models/ModelError.ts deleted file mode 100644 index e42dee2..0000000 --- a/tfweb/src/lib/api/models/ModelError.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ModelError - */ -export interface ModelError { - /** - * A static name for the error type - * @type {string} - * @memberof ModelError - */ - code: string; - /** - * A short human readable description of the error - * @type {string} - * @memberof ModelError - */ - message: string; - /** - * Describes the variable missing or malformed - * @type {string} - * @memberof ModelError - */ - path?: string | null; -} - -/** - * Check if a given object implements the ModelError interface. - */ -export function instanceOfModelError(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "code" in value; - isInstance = isInstance && "message" in value; - - return isInstance; -} - -export function ModelErrorFromJSON(json: any): ModelError { - return ModelErrorFromJSONTyped(json, false); -} - -export function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'code': json['code'], - 'message': json['message'], - 'path': !exists(json, 'path') ? undefined : json['path'], - }; -} - -export function ModelErrorToJSON(value?: ModelError | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'code': value.code, - 'message': value.message, - 'path': value.path, - }; -} - diff --git a/tfweb/src/lib/api/models/Network.js b/tfweb/src/lib/api/models/Network.js deleted file mode 100644 index 697d111..0000000 --- a/tfweb/src/lib/api/models/Network.js +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the Network interface. - */ -export function instanceOfNetwork(value) { - let isInstance = true; - return isInstance; -} -export function NetworkFromJSON(json) { - return NetworkFromJSONTyped(json, false); -} -export function NetworkFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'id': !exists(json, 'id') ? undefined : json['id'], - 'cidr': !exists(json, 'cidr') ? undefined : json['cidr'], - 'organizationID': !exists(json, 'organizationID') ? undefined : json['organizationID'], - 'signingCAID': !exists(json, 'signingCAID') ? undefined : json['signingCAID'], - 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])), - 'name': !exists(json, 'name') ? undefined : json['name'], - 'lighthousesAsRelays': !exists(json, 'lighthousesAsRelays') ? undefined : json['lighthousesAsRelays'], - }; -} -export function NetworkToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'id': value.id, - 'cidr': value.cidr, - 'organizationID': value.organizationID, - 'signingCAID': value.signingCAID, - 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()), - 'name': value.name, - 'lighthousesAsRelays': value.lighthousesAsRelays, - }; -} -//# sourceMappingURL=Network.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Network.js.map b/tfweb/src/lib/api/models/Network.js.map deleted file mode 100644 index 9855c6e..0000000 --- a/tfweb/src/lib/api/models/Network.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Network.js","sourceRoot":"","sources":["Network.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AAC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AAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,qBAAqB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC;KACxG,CAAC;AACN,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAsB;IAChD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,gBAAgB,EAAE,KAAK,CAAC,cAAc;QACtC,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,WAAW,EAAE,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QACxF,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,qBAAqB,EAAE,KAAK,CAAC,mBAAmB;KACnD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Network.ts b/tfweb/src/lib/api/models/Network.ts deleted file mode 100644 index af7a555..0000000 --- a/tfweb/src/lib/api/models/Network.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface Network - */ -export interface Network { - /** - * - * @type {string} - * @memberof Network - */ - id?: string; - /** - * - * @type {string} - * @memberof Network - */ - cidr?: string; - /** - * - * @type {string} - * @memberof Network - */ - organizationID?: string; - /** - * The ID of the Certificate Authority being used. - * @type {string} - * @memberof Network - */ - signingCAID?: string; - /** - * - * @type {Date} - * @memberof Network - */ - createdAt?: Date; - /** - * - * @type {string} - * @memberof Network - */ - name?: string; - /** - * - * @type {boolean} - * @memberof Network - */ - lighthousesAsRelays?: boolean; -} - -/** - * Check if a given object implements the Network interface. - */ -export function instanceOfNetwork(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function NetworkFromJSON(json: any): Network { - return NetworkFromJSONTyped(json, false); -} - -export function NetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Network { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'id': !exists(json, 'id') ? undefined : json['id'], - 'cidr': !exists(json, 'cidr') ? undefined : json['cidr'], - 'organizationID': !exists(json, 'organizationID') ? undefined : json['organizationID'], - 'signingCAID': !exists(json, 'signingCAID') ? undefined : json['signingCAID'], - 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])), - 'name': !exists(json, 'name') ? undefined : json['name'], - 'lighthousesAsRelays': !exists(json, 'lighthousesAsRelays') ? undefined : json['lighthousesAsRelays'], - }; -} - -export function NetworkToJSON(value?: Network | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'id': value.id, - 'cidr': value.cidr, - 'organizationID': value.organizationID, - 'signingCAID': value.signingCAID, - 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()), - 'name': value.name, - 'lighthousesAsRelays': value.lighthousesAsRelays, - }; -} - diff --git a/tfweb/src/lib/api/models/NetworkGet200Response.js b/tfweb/src/lib/api/models/NetworkGet200Response.js deleted file mode 100644 index 98007a5..0000000 --- a/tfweb/src/lib/api/models/NetworkGet200Response.js +++ /dev/null @@ -1,47 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { NetworkFromJSON, NetworkFromJSONTyped, NetworkToJSON, } from './Network'; -/** - * Check if a given object implements the NetworkGet200Response interface. - */ -export function instanceOfNetworkGet200Response(value) { - let isInstance = true; - return isInstance; -} -export function NetworkGet200ResponseFromJSON(json) { - return NetworkGet200ResponseFromJSONTyped(json, false); -} -export function NetworkGet200ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'data': !exists(json, 'data') ? undefined : NetworkFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} -export function NetworkGet200ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'data': NetworkToJSON(value.data), - 'metadata': value.metadata, - }; -} -//# sourceMappingURL=NetworkGet200Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/NetworkGet200Response.js.map b/tfweb/src/lib/api/models/NetworkGet200Response.js.map deleted file mode 100644 index 2fa047d..0000000 --- a/tfweb/src/lib/api/models/NetworkGet200Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NetworkGet200Response.js","sourceRoot":"","sources":["NetworkGet200Response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ib/api/models/NetworkGet200Response.ts b/tfweb/src/lib/api/models/NetworkGet200Response.ts deleted file mode 100644 index 3e102de..0000000 --- a/tfweb/src/lib/api/models/NetworkGet200Response.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { Network } from './Network'; -import { - NetworkFromJSON, - NetworkFromJSONTyped, - NetworkToJSON, -} from './Network'; - -/** - * - * @export - * @interface NetworkGet200Response - */ -export interface NetworkGet200Response { - /** - * - * @type {Network} - * @memberof NetworkGet200Response - */ - data?: Network; - /** - * - * @type {object} - * @memberof NetworkGet200Response - */ - metadata?: object; -} - -/** - * Check if a given object implements the NetworkGet200Response interface. - */ -export function instanceOfNetworkGet200Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function NetworkGet200ResponseFromJSON(json: any): NetworkGet200Response { - return NetworkGet200ResponseFromJSONTyped(json, false); -} - -export function NetworkGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetworkGet200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': !exists(json, 'data') ? undefined : NetworkFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} - -export function NetworkGet200ResponseToJSON(value?: NetworkGet200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': NetworkToJSON(value.data), - 'metadata': value.metadata, - }; -} - diff --git a/tfweb/src/lib/api/models/NetworksList200Response.js b/tfweb/src/lib/api/models/NetworksList200Response.js deleted file mode 100644 index 45c14a6..0000000 --- a/tfweb/src/lib/api/models/NetworksList200Response.js +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { NetworkFromJSON, NetworkFromJSONTyped, NetworkToJSON, } from './Network'; -import { PaginationMetadataFromJSON, PaginationMetadataFromJSONTyped, PaginationMetadataToJSON, } from './PaginationMetadata'; -/** - * Check if a given object implements the NetworksList200Response interface. - */ -export function instanceOfNetworksList200Response(value) { - let isInstance = true; - return isInstance; -} -export function NetworksList200ResponseFromJSON(json) { - return NetworksList200ResponseFromJSONTyped(json, false); -} -export function NetworksList200ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'data': !exists(json, 'data') ? undefined : (json['data'].map(NetworkFromJSON)), - 'metadata': !exists(json, 'metadata') ? undefined : PaginationMetadataFromJSON(json['metadata']), - }; -} -export function NetworksList200ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'data': value.data === undefined ? undefined : (value.data.map(NetworkToJSON)), - 'metadata': PaginationMetadataToJSON(value.metadata), - }; -} -//# sourceMappingURL=NetworksList200Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/NetworksList200Response.js.map b/tfweb/src/lib/api/models/NetworksList200Response.js.map deleted file mode 100644 index 96c4ca5..0000000 --- a/tfweb/src/lib/api/models/NetworksList200Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NetworksList200Response.js","sourceRoot":"","sources":["NetworksList200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,eAAe,EACf,oBAAoB,EACpB,aAAa,GAChB,MAAM,WAAW,CAAC;AAEnB,OAAO,EACH,0BAA0B,EAC1B,+BAA+B,EAC/B,wBAAwB,GAC3B,MAAM,sBAAsB,CAAC;AAsB9B;;GAEG;AACH,MAAM,UAAU,iCAAiC,CAAC,KAAa;IAC3D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,IAAS;IACrD,OAAO,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC;AAED,MAAM,UAAU,oCAAoC,CAAC,IAAS,EAAE,mBAA4B;IACxF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QAC/F,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACnG,CAAC;AACN,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,KAAsC;IAChF,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,IAAmB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAC9F,UAAU,EAAE,wBAAwB,CAAC,KAAK,CAAC,QAAQ,CAAC;KACvD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/NetworksList200Response.ts b/tfweb/src/lib/api/models/NetworksList200Response.ts deleted file mode 100644 index d0f8e61..0000000 --- a/tfweb/src/lib/api/models/NetworksList200Response.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { Network } from './Network'; -import { - NetworkFromJSON, - NetworkFromJSONTyped, - NetworkToJSON, -} from './Network'; -import type { PaginationMetadata } from './PaginationMetadata'; -import { - PaginationMetadataFromJSON, - PaginationMetadataFromJSONTyped, - PaginationMetadataToJSON, -} from './PaginationMetadata'; - -/** - * - * @export - * @interface NetworksList200Response - */ -export interface NetworksList200Response { - /** - * - * @type {Array} - * @memberof NetworksList200Response - */ - data?: Array; - /** - * - * @type {PaginationMetadata} - * @memberof NetworksList200Response - */ - metadata?: PaginationMetadata; -} - -/** - * Check if a given object implements the NetworksList200Response interface. - */ -export function instanceOfNetworksList200Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function NetworksList200ResponseFromJSON(json: any): NetworksList200Response { - return NetworksList200ResponseFromJSONTyped(json, false); -} - -export function NetworksList200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetworksList200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': !exists(json, 'data') ? undefined : ((json['data'] as Array).map(NetworkFromJSON)), - 'metadata': !exists(json, 'metadata') ? undefined : PaginationMetadataFromJSON(json['metadata']), - }; -} - -export function NetworksList200ResponseToJSON(value?: NetworksList200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': value.data === undefined ? undefined : ((value.data as Array).map(NetworkToJSON)), - 'metadata': PaginationMetadataToJSON(value.metadata), - }; -} - diff --git a/tfweb/src/lib/api/models/PaginationMetadata.js b/tfweb/src/lib/api/models/PaginationMetadata.js deleted file mode 100644 index 49400a0..0000000 --- a/tfweb/src/lib/api/models/PaginationMetadata.js +++ /dev/null @@ -1,55 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { PaginationMetadataPageFromJSON, PaginationMetadataPageFromJSONTyped, PaginationMetadataPageToJSON, } from './PaginationMetadataPage'; -/** - * Check if a given object implements the PaginationMetadata interface. - */ -export function instanceOfPaginationMetadata(value) { - let isInstance = true; - return isInstance; -} -export function PaginationMetadataFromJSON(json) { - return PaginationMetadataFromJSONTyped(json, false); -} -export function PaginationMetadataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'totalCount': !exists(json, 'totalCount') ? undefined : json['totalCount'], - 'hasNextPage': !exists(json, 'hasNextPage') ? undefined : json['hasNextPage'], - 'hasPrevPage': !exists(json, 'hasPrevPage') ? undefined : json['hasPrevPage'], - 'nextCursor': !exists(json, 'nextCursor') ? undefined : json['nextCursor'], - 'prevCursor': !exists(json, 'prevCursor') ? undefined : json['prevCursor'], - 'page': !exists(json, 'page') ? undefined : PaginationMetadataPageFromJSON(json['page']), - }; -} -export function PaginationMetadataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'totalCount': value.totalCount, - 'hasNextPage': value.hasNextPage, - 'hasPrevPage': value.hasPrevPage, - 'nextCursor': value.nextCursor, - 'prevCursor': value.prevCursor, - 'page': PaginationMetadataPageToJSON(value.page), - }; -} -//# sourceMappingURL=PaginationMetadata.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/PaginationMetadata.js.map b/tfweb/src/lib/api/models/PaginationMetadata.js.map deleted file mode 100644 index 9cc1354..0000000 --- a/tfweb/src/lib/api/models/PaginationMetadata.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PaginationMetadata.js","sourceRoot":"","sources":["PaginationMetadata.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,8BAA8B,EAC9B,mCAAmC,EACnC,4BAA4B,GAC/B,MAAM,0BAA0B,CAAC;AA8ClC;;GAEG;AACH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iC;IACtE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,MAAM,EAAE,4BAA4B,CAAC,KAAK,CAAC,IAAI,CAAC;KACnD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/PaginationMetadata.ts b/tfweb/src/lib/api/models/PaginationMetadata.ts deleted file mode 100644 index ce9f957..0000000 --- a/tfweb/src/lib/api/models/PaginationMetadata.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { PaginationMetadataPage } from './PaginationMetadataPage'; -import { - PaginationMetadataPageFromJSON, - PaginationMetadataPageFromJSONTyped, - PaginationMetadataPageToJSON, -} from './PaginationMetadataPage'; - -/** - * - * @export - * @interface PaginationMetadata - */ -export interface PaginationMetadata { - /** - * The total number of resources existing in the account - * @type {number} - * @memberof PaginationMetadata - */ - totalCount?: number; - /** - * Is there a page of data that can be fetched using the `nextCursor`? - * @type {boolean} - * @memberof PaginationMetadata - */ - hasNextPage?: boolean; - /** - * Is there a page of data that can be fetched using the `prevCursor`? - * @type {boolean} - * @memberof PaginationMetadata - */ - hasPrevPage?: boolean; - /** - * An opaque string that can be used to fetch the next page of results. Not provided if result set is empty. - * @type {string} - * @memberof PaginationMetadata - */ - nextCursor?: string; - /** - * An opaque string that can be used to fetch the next page of results. Not provided if result set is empty. - * @type {string} - * @memberof PaginationMetadata - */ - prevCursor?: string; - /** - * - * @type {PaginationMetadataPage} - * @memberof PaginationMetadata - */ - page?: PaginationMetadataPage; -} - -/** - * Check if a given object implements the PaginationMetadata interface. - */ -export function instanceOfPaginationMetadata(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function PaginationMetadataFromJSON(json: any): PaginationMetadata { - return PaginationMetadataFromJSONTyped(json, false); -} - -export function PaginationMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginationMetadata { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'totalCount': !exists(json, 'totalCount') ? undefined : json['totalCount'], - 'hasNextPage': !exists(json, 'hasNextPage') ? undefined : json['hasNextPage'], - 'hasPrevPage': !exists(json, 'hasPrevPage') ? undefined : json['hasPrevPage'], - 'nextCursor': !exists(json, 'nextCursor') ? undefined : json['nextCursor'], - 'prevCursor': !exists(json, 'prevCursor') ? undefined : json['prevCursor'], - 'page': !exists(json, 'page') ? undefined : PaginationMetadataPageFromJSON(json['page']), - }; -} - -export function PaginationMetadataToJSON(value?: PaginationMetadata | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'totalCount': value.totalCount, - 'hasNextPage': value.hasNextPage, - 'hasPrevPage': value.hasPrevPage, - 'nextCursor': value.nextCursor, - 'prevCursor': value.prevCursor, - 'page': PaginationMetadataPageToJSON(value.page), - }; -} - diff --git a/tfweb/src/lib/api/models/PaginationMetadataPage.js b/tfweb/src/lib/api/models/PaginationMetadataPage.js deleted file mode 100644 index 4cb24eb..0000000 --- a/tfweb/src/lib/api/models/PaginationMetadataPage.js +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * Check if a given object implements the PaginationMetadataPage interface. - */ -export function instanceOfPaginationMetadataPage(value) { - let isInstance = true; - isInstance = isInstance && "count" in value; - isInstance = isInstance && "start" in value; - return isInstance; -} -export function PaginationMetadataPageFromJSON(json) { - return PaginationMetadataPageFromJSONTyped(json, false); -} -export function PaginationMetadataPageFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'count': json['count'], - 'start': json['start'], - }; -} -export function PaginationMetadataPageToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'count': value.count, - 'start': value.start, - }; -} -//# sourceMappingURL=PaginationMetadataPage.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/PaginationMetadataPage.js.map b/tfweb/src/lib/api/models/PaginationMetadataPage.js.map deleted file mode 100644 index 6808c02..0000000 --- a/tfweb/src/lib/api/models/PaginationMetadataPage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PaginationMetadataPage.js","sourceRoot":"","sources":["PaginationMetadataPage.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,gCAAgC,CAAC,KAAa;IAC1D,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,OAAO,IAAI,KAAK,CAAC;IAC5C,UAAU,GAAG,UAAU,IAAI,OAAO,IAAI,KAAK,CAAC;IAE5C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS;IACpD,OAAO,mCAAmC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,mCAAmC,CAAC,IAAS,EAAE,mBAA4B;IACvF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;KACzB,CAAC;AACN,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,KAAqC;IAC9E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,OAAO,EAAE,KAAK,CAAC,KAAK;KACvB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/PaginationMetadataPage.ts b/tfweb/src/lib/api/models/PaginationMetadataPage.ts deleted file mode 100644 index 92de2c1..0000000 --- a/tfweb/src/lib/api/models/PaginationMetadataPage.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface PaginationMetadataPage - */ -export interface PaginationMetadataPage { - /** - * The number of results returned in the response. - * @type {number} - * @memberof PaginationMetadataPage - */ - count: number; - /** - * The zero-based index of the first result within the overall list. For example, the first page will have a `start` of `0`. If 25 results are fetched, and the `nextCursor` used to fetch a new page of results, the second request's `start` will be `25`. - * @type {number} - * @memberof PaginationMetadataPage - */ - start: number; -} - -/** - * Check if a given object implements the PaginationMetadataPage interface. - */ -export function instanceOfPaginationMetadataPage(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "count" in value; - isInstance = isInstance && "start" in value; - - return isInstance; -} - -export function PaginationMetadataPageFromJSON(json: any): PaginationMetadataPage { - return PaginationMetadataPageFromJSONTyped(json, false); -} - -export function PaginationMetadataPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginationMetadataPage { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'count': json['count'], - 'start': json['start'], - }; -} - -export function PaginationMetadataPageToJSON(value?: PaginationMetadataPage | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'count': value.count, - 'start': value.start, - }; -} - diff --git a/tfweb/src/lib/api/models/Role.js b/tfweb/src/lib/api/models/Role.js deleted file mode 100644 index 98cb58d..0000000 --- a/tfweb/src/lib/api/models/Role.js +++ /dev/null @@ -1,55 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { FirewallRuleFromJSON, FirewallRuleFromJSONTyped, FirewallRuleToJSON, } from './FirewallRule'; -/** - * Check if a given object implements the Role interface. - */ -export function instanceOfRole(value) { - let isInstance = true; - return isInstance; -} -export function RoleFromJSON(json) { - return RoleFromJSONTyped(json, false); -} -export function RoleFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'id': !exists(json, 'id') ? undefined : json['id'], - 'name': !exists(json, 'name') ? undefined : json['name'], - 'description': !exists(json, 'description') ? undefined : json['description'], - 'firewallRules': !exists(json, 'firewallRules') ? undefined : (json['firewallRules'].map(FirewallRuleFromJSON)), - 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])), - 'modifiedAt': !exists(json, 'modifiedAt') ? undefined : (new Date(json['modifiedAt'])), - }; -} -export function RoleToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'id': value.id, - 'name': value.name, - 'description': value.description, - 'firewallRules': value.firewallRules === undefined ? undefined : (value.firewallRules.map(FirewallRuleToJSON)), - 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()), - 'modifiedAt': value.modifiedAt === undefined ? undefined : (value.modifiedAt.toISOString()), - }; -} -//# sourceMappingURL=Role.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Role.js.map b/tfweb/src/lib/api/models/Role.js.map deleted file mode 100644 index 5a91813..0000000 --- a/tfweb/src/lib/api/models/Role.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":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IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QACnF,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;KACzF,CAAC;AACN,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAmB;IAC1C,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,eAAe,EAAE,KAAK,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,aAA4B,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;QAC9H,WAAW,EAAE,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QACxF,YAAY,EAAE,KAAK,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;KAC9F,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Role.ts b/tfweb/src/lib/api/models/Role.ts deleted file mode 100644 index f0f6c01..0000000 --- a/tfweb/src/lib/api/models/Role.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { FirewallRule } from './FirewallRule'; -import { - FirewallRuleFromJSON, - FirewallRuleFromJSONTyped, - FirewallRuleToJSON, -} from './FirewallRule'; - -/** - * - * @export - * @interface Role - */ -export interface Role { - /** - * - * @type {string} - * @memberof Role - */ - id?: string; - /** - * - * @type {string} - * @memberof Role - */ - name?: string; - /** - * - * @type {string} - * @memberof Role - */ - description?: string; - /** - * - * @type {Array} - * @memberof Role - */ - firewallRules?: Array; - /** - * - * @type {Date} - * @memberof Role - */ - createdAt?: Date; - /** - * - * @type {Date} - * @memberof Role - */ - modifiedAt?: Date; -} - -/** - * Check if a given object implements the Role interface. - */ -export function instanceOfRole(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function RoleFromJSON(json: any): Role { - return RoleFromJSONTyped(json, false); -} - -export function RoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Role { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'id': !exists(json, 'id') ? undefined : json['id'], - 'name': !exists(json, 'name') ? undefined : json['name'], - 'description': !exists(json, 'description') ? undefined : json['description'], - 'firewallRules': !exists(json, 'firewallRules') ? undefined : ((json['firewallRules'] as Array).map(FirewallRuleFromJSON)), - 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])), - 'modifiedAt': !exists(json, 'modifiedAt') ? undefined : (new Date(json['modifiedAt'])), - }; -} - -export function RoleToJSON(value?: Role | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'id': value.id, - 'name': value.name, - 'description': value.description, - 'firewallRules': value.firewallRules === undefined ? undefined : ((value.firewallRules as Array).map(FirewallRuleToJSON)), - 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()), - 'modifiedAt': value.modifiedAt === undefined ? undefined : (value.modifiedAt.toISOString()), - }; -} - diff --git a/tfweb/src/lib/api/models/RoleCreate200Response.js b/tfweb/src/lib/api/models/RoleCreate200Response.js deleted file mode 100644 index ba607e3..0000000 --- a/tfweb/src/lib/api/models/RoleCreate200Response.js +++ /dev/null @@ -1,47 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { RoleFromJSON, RoleFromJSONTyped, RoleToJSON, } from './Role'; -/** - * Check if a given object implements the RoleCreate200Response interface. - */ -export function instanceOfRoleCreate200Response(value) { - let isInstance = true; - return isInstance; -} -export function RoleCreate200ResponseFromJSON(json) { - return RoleCreate200ResponseFromJSONTyped(json, false); -} -export function RoleCreate200ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'data': !exists(json, 'data') ? undefined : RoleFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} -export function RoleCreate200ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'data': RoleToJSON(value.data), - 'metadata': value.metadata, - }; -} -//# sourceMappingURL=RoleCreate200Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/RoleCreate200Response.js.map b/tfweb/src/lib/api/models/RoleCreate200Response.js.map deleted file mode 100644 index 47c0c00..0000000 --- a/tfweb/src/lib/api/models/RoleCreate200Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RoleCreate200Response.js","sourceRoot":"","sources":["RoleCreate200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACb,MAAM,QAAQ,CAAC;AAsBhB;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAAC,KAAa;IACzD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtE,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,KAAoC;IAC5E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;QAC9B,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/RoleCreate200Response.ts b/tfweb/src/lib/api/models/RoleCreate200Response.ts deleted file mode 100644 index 38bada8..0000000 --- a/tfweb/src/lib/api/models/RoleCreate200Response.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { Role } from './Role'; -import { - RoleFromJSON, - RoleFromJSONTyped, - RoleToJSON, -} from './Role'; - -/** - * - * @export - * @interface RoleCreate200Response - */ -export interface RoleCreate200Response { - /** - * - * @type {Role} - * @memberof RoleCreate200Response - */ - data?: Role; - /** - * - * @type {object} - * @memberof RoleCreate200Response - */ - metadata?: object; -} - -/** - * Check if a given object implements the RoleCreate200Response interface. - */ -export function instanceOfRoleCreate200Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function RoleCreate200ResponseFromJSON(json: any): RoleCreate200Response { - return RoleCreate200ResponseFromJSONTyped(json, false); -} - -export function RoleCreate200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleCreate200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': !exists(json, 'data') ? undefined : RoleFromJSON(json['data']), - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], - }; -} - -export function RoleCreate200ResponseToJSON(value?: RoleCreate200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': RoleToJSON(value.data), - 'metadata': value.metadata, - }; -} - diff --git a/tfweb/src/lib/api/models/RoleCreateRequest.js b/tfweb/src/lib/api/models/RoleCreateRequest.js deleted file mode 100644 index 04518bb..0000000 --- a/tfweb/src/lib/api/models/RoleCreateRequest.js +++ /dev/null @@ -1,50 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { FirewallRuleFromJSON, FirewallRuleFromJSONTyped, FirewallRuleToJSON, } from './FirewallRule'; -/** - * Check if a given object implements the RoleCreateRequest interface. - */ -export function instanceOfRoleCreateRequest(value) { - let isInstance = true; - isInstance = isInstance && "name" in value; - return isInstance; -} -export function RoleCreateRequestFromJSON(json) { - return RoleCreateRequestFromJSONTyped(json, false); -} -export function RoleCreateRequestFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'name': json['name'], - 'description': !exists(json, 'description') ? undefined : json['description'], - 'firewallRules': !exists(json, 'firewallRules') ? undefined : (json['firewallRules'].map(FirewallRuleFromJSON)), - }; -} -export function RoleCreateRequestToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'name': value.name, - 'description': value.description, - 'firewallRules': value.firewallRules === undefined ? undefined : (value.firewallRules.map(FirewallRuleToJSON)), - }; -} -//# sourceMappingURL=RoleCreateRequest.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/RoleCreateRequest.js.map b/tfweb/src/lib/api/models/RoleCreateRequest.js.map deleted file mode 100644 index d9ceced..0000000 --- a/tfweb/src/lib/api/models/RoleCreateRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RoleCreateRequest.js","sourceRoot":"","sources":["RoleCreateRequest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,GACrB,MAAM,gBAAgB,CAAC;AA4BxB;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACrD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,MAAM,IAAI,KAAK,CAAC;IAE3C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;QAC7E,eAAe,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,eAAe,CAAgB,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;KAClI,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,KAAgC;IACpE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,eAAe,EAAE,KAAK,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,aAA4B,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;KACjI,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/RoleCreateRequest.ts b/tfweb/src/lib/api/models/RoleCreateRequest.ts deleted file mode 100644 index 80e760d..0000000 --- a/tfweb/src/lib/api/models/RoleCreateRequest.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { FirewallRule } from './FirewallRule'; -import { - FirewallRuleFromJSON, - FirewallRuleFromJSONTyped, - FirewallRuleToJSON, -} from './FirewallRule'; - -/** - * - * @export - * @interface RoleCreateRequest - */ -export interface RoleCreateRequest { - /** - * Name of the new role - * @type {string} - * @memberof RoleCreateRequest - */ - name: string; - /** - * Optional description - * @type {string} - * @memberof RoleCreateRequest - */ - description?: string; - /** - * Incoming firewall rules - * @type {Array} - * @memberof RoleCreateRequest - */ - firewallRules?: Array; -} - -/** - * Check if a given object implements the RoleCreateRequest interface. - */ -export function instanceOfRoleCreateRequest(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "name" in value; - - return isInstance; -} - -export function RoleCreateRequestFromJSON(json: any): RoleCreateRequest { - return RoleCreateRequestFromJSONTyped(json, false); -} - -export function RoleCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleCreateRequest { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'name': json['name'], - 'description': !exists(json, 'description') ? undefined : json['description'], - 'firewallRules': !exists(json, 'firewallRules') ? undefined : ((json['firewallRules'] as Array).map(FirewallRuleFromJSON)), - }; -} - -export function RoleCreateRequestToJSON(value?: RoleCreateRequest | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'name': value.name, - 'description': value.description, - 'firewallRules': value.firewallRules === undefined ? undefined : ((value.firewallRules as Array).map(FirewallRuleToJSON)), - }; -} - diff --git a/tfweb/src/lib/api/models/RoleEditRequest.js b/tfweb/src/lib/api/models/RoleEditRequest.js deleted file mode 100644 index 09dbe04..0000000 --- a/tfweb/src/lib/api/models/RoleEditRequest.js +++ /dev/null @@ -1,47 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { FirewallRuleFromJSON, FirewallRuleFromJSONTyped, FirewallRuleToJSON, } from './FirewallRule'; -/** - * Check if a given object implements the RoleEditRequest interface. - */ -export function instanceOfRoleEditRequest(value) { - let isInstance = true; - return isInstance; -} -export function RoleEditRequestFromJSON(json) { - return RoleEditRequestFromJSONTyped(json, false); -} -export function RoleEditRequestFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'description': !exists(json, 'description') ? undefined : json['description'], - 'firewallRules': !exists(json, 'firewallRules') ? undefined : (json['firewallRules'].map(FirewallRuleFromJSON)), - }; -} -export function RoleEditRequestToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'description': value.description, - 'firewallRules': value.firewallRules === undefined ? undefined : (value.firewallRules.map(FirewallRuleToJSON)), - }; -} -//# sourceMappingURL=RoleEditRequest.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/RoleEditRequest.js.map b/tfweb/src/lib/api/models/RoleEditRequest.js.map deleted file mode 100644 index 2f4b5f8..0000000 --- a/tfweb/src/lib/api/models/RoleEditRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RoleEditRequest.js","sourceRoot":"","sources":["RoleEditRequest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,oBAAoB,EACpB,yBAAyB,EACzB,kBA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est.ts deleted file mode 100644 index 3ab0f78..0000000 --- a/tfweb/src/lib/api/models/RoleEditRequest.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { FirewallRule } from './FirewallRule'; -import { - FirewallRuleFromJSON, - FirewallRuleFromJSONTyped, - FirewallRuleToJSON, -} from './FirewallRule'; - -/** - * - * @export - * @interface RoleEditRequest - */ -export interface RoleEditRequest { - /** - * - * @type {string} - * @memberof RoleEditRequest - */ - description?: string; - /** - * Incoming firewall rules. Will replace existing list of rules. - * @type {Array} - * @memberof RoleEditRequest - */ - firewallRules?: Array; -} - -/** - * Check if a given object implements the RoleEditRequest interface. - */ -export function instanceOfRoleEditRequest(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function RoleEditRequestFromJSON(json: any): RoleEditRequest { - return RoleEditRequestFromJSONTyped(json, false); -} - -export function RoleEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleEditRequest { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'description': !exists(json, 'description') ? undefined : json['description'], - 'firewallRules': !exists(json, 'firewallRules') ? undefined : ((json['firewallRules'] as Array).map(FirewallRuleFromJSON)), - }; -} - -export function RoleEditRequestToJSON(value?: RoleEditRequest | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'description': value.description, - 'firewallRules': value.firewallRules === undefined ? undefined : ((value.firewallRules as Array).map(FirewallRuleToJSON)), - }; -} - diff --git a/tfweb/src/lib/api/models/RolesList200Response.js b/tfweb/src/lib/api/models/RolesList200Response.js deleted file mode 100644 index cd9569e..0000000 --- a/tfweb/src/lib/api/models/RolesList200Response.js +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -import { PaginationMetadataFromJSON, PaginationMetadataFromJSONTyped, PaginationMetadataToJSON, } from './PaginationMetadata'; -import { RoleFromJSON, RoleFromJSONTyped, RoleToJSON, } from './Role'; -/** - * Check if a given object implements the RolesList200Response interface. - */ -export function instanceOfRolesList200Response(value) { - let isInstance = true; - return isInstance; -} -export function RolesList200ResponseFromJSON(json) { - return RolesList200ResponseFromJSONTyped(json, false); -} -export function RolesList200ResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'data': !exists(json, 'data') ? undefined : (json['data'].map(RoleFromJSON)), - 'metadata': !exists(json, 'metadata') ? undefined : PaginationMetadataFromJSON(json['metadata']), - }; -} -export function RolesList200ResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'data': value.data === undefined ? undefined : (value.data.map(RoleToJSON)), - 'metadata': PaginationMetadataToJSON(value.metadata), - }; -} -//# sourceMappingURL=RolesList200Response.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/RolesList200Response.js.map b/tfweb/src/lib/api/models/RolesList200Response.js.map deleted file mode 100644 index 6bf1136..0000000 --- a/tfweb/src/lib/api/models/RolesList200Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RolesList200Response.js","sourceRoot":"","sources":["RolesList200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,0BAA0B,EAC1B,+BAA+B,EAC/B,wBAAwB,GAC3B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACb,MAAM,QAAQ,CAAC;AAsBhB;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAAC,KAAa;IACxD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAC5F,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACnG,CAAC;AACN,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,KAAmC;IAC1E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,IAAmB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC3F,UAAU,EAAE,wBAAwB,CAAC,KAAK,CAAC,QAAQ,CAAC;KACvD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/RolesList200Response.ts b/tfweb/src/lib/api/models/RolesList200Response.ts deleted file mode 100644 index 016624f..0000000 --- a/tfweb/src/lib/api/models/RolesList200Response.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { PaginationMetadata } from './PaginationMetadata'; -import { - PaginationMetadataFromJSON, - PaginationMetadataFromJSONTyped, - PaginationMetadataToJSON, -} from './PaginationMetadata'; -import type { Role } from './Role'; -import { - RoleFromJSON, - RoleFromJSONTyped, - RoleToJSON, -} from './Role'; - -/** - * - * @export - * @interface RolesList200Response - */ -export interface RolesList200Response { - /** - * - * @type {Array} - * @memberof RolesList200Response - */ - data?: Array; - /** - * - * @type {PaginationMetadata} - * @memberof RolesList200Response - */ - metadata?: PaginationMetadata; -} - -/** - * Check if a given object implements the RolesList200Response interface. - */ -export function instanceOfRolesList200Response(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function RolesList200ResponseFromJSON(json: any): RolesList200Response { - return RolesList200ResponseFromJSONTyped(json, false); -} - -export function RolesList200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RolesList200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': !exists(json, 'data') ? undefined : ((json['data'] as Array).map(RoleFromJSON)), - 'metadata': !exists(json, 'metadata') ? undefined : PaginationMetadataFromJSON(json['metadata']), - }; -} - -export function RolesList200ResponseToJSON(value?: RolesList200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': value.data === undefined ? undefined : ((value.data as Array).map(RoleToJSON)), - 'metadata': PaginationMetadataToJSON(value.metadata), - }; -} - diff --git a/tfweb/src/lib/api/models/Target.js b/tfweb/src/lib/api/models/Target.js deleted file mode 100644 index f853144..0000000 --- a/tfweb/src/lib/api/models/Target.js +++ /dev/null @@ -1,58 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { exists, mapValues } from '../runtime'; -/** - * @export - */ -export const TargetTypeEnum = { - ApiKey: 'apiKey', - Ca: 'ca', - Host: 'host', - Network: 'network', - OidcProvider: 'oidcProvider', - Role: 'role', - User: 'user' -}; -/** - * Check if a given object implements the Target interface. - */ -export function instanceOfTarget(value) { - let isInstance = true; - return isInstance; -} -export function TargetFromJSON(json) { - return TargetFromJSONTyped(json, false); -} -export function TargetFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { - return json; - } - return { - 'id': !exists(json, 'id') ? undefined : json['id'], - 'type': !exists(json, 'type') ? undefined : json['type'], - }; -} -export function TargetToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - 'id': value.id, - 'type': value.type, - }; -} -//# sourceMappingURL=Target.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Target.js.map b/tfweb/src/lib/api/models/Target.js.map deleted file mode 100644 index 92eade7..0000000 --- a/tfweb/src/lib/api/models/Target.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Target.js","sourceRoot":"","sources":["Target.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAsB/C;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,MAAM,EAAE,QAAQ;IAChB,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,cAAc;IAC5B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACN,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC1C,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,IAAS;IACpC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAS,EAAE,mBAA4B;IACvE,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,IAAI,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAClD,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAqB;IAC9C,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,MAAM,EAAE,KAAK,CAAC,IAAI;KACrB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Target.ts b/tfweb/src/lib/api/models/Target.ts deleted file mode 100644 index 687c3ac..0000000 --- a/tfweb/src/lib/api/models/Target.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * The entity being acted upon. - * @export - * @interface Target - */ -export interface Target { - /** - * - * @type {string} - * @memberof Target - */ - id?: string; - /** - * - * @type {string} - * @memberof Target - */ - type?: TargetTypeEnum; -} - - -/** - * @export - */ -export const TargetTypeEnum = { - ApiKey: 'apiKey', - Ca: 'ca', - Host: 'host', - Network: 'network', - OidcProvider: 'oidcProvider', - Role: 'role', - User: 'user' -} as const; -export type TargetTypeEnum = typeof TargetTypeEnum[keyof typeof TargetTypeEnum]; - - -/** - * Check if a given object implements the Target interface. - */ -export function instanceOfTarget(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function TargetFromJSON(json: any): Target { - return TargetFromJSONTyped(json, false); -} - -export function TargetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Target { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'id': !exists(json, 'id') ? undefined : json['id'], - 'type': !exists(json, 'type') ? undefined : json['type'], - }; -} - -export function TargetToJSON(value?: Target | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'id': value.id, - 'type': value.type, - }; -} - diff --git a/tfweb/src/lib/api/models/index.js b/tfweb/src/lib/api/models/index.js deleted file mode 100644 index bb20abe..0000000 --- a/tfweb/src/lib/api/models/index.js +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './Actor'; -export * from './ActorAPIKey'; -export * from './ActorHost'; -export * from './ActorOIDCUser'; -export * from './ActorSupport'; -export * from './ActorSystem'; -export * from './ActorUser'; -export * from './AuditLog'; -export * from './AuditLogsList200Response'; -export * from './Downloads'; -export * from './DownloadsDNClientLinks'; -export * from './DownloadsDnclient'; -export * from './DownloadsList200Response'; -export * from './DownloadsMobile'; -export * from './DownloadsVersionInfo'; -export * from './DownloadsVersionInfoDnclientValue'; -export * from './DownloadsVersionInfoLatest'; -export * from './Event'; -export * from './FirewallRule'; -export * from './FirewallRulePortRange'; -export * from './Host'; -export * from './HostAndEnrollCodeCreate200Response'; -export * from './HostAndEnrollCodeCreate200ResponseData'; -export * from './HostAndEnrollCodeCreate200ResponseDataEnrollmentCode'; -export * from './HostAndEnrollCodeCreate400Response'; -export * from './HostBlock200Response'; -export * from './HostBlock200ResponseData'; -export * from './HostCreate200Response'; -export * from './HostCreate400Response'; -export * from './HostCreateRequest'; -export * from './HostDelete200Response'; -export * from './HostEdit200Response'; -export * from './HostEditRequest'; -export * from './HostEnrollCodeCreate200Response'; -export * from './HostEnrollCodeCreate200ResponseData'; -export * from './HostEnrollCodeCreate200ResponseDataEnrollmentCode'; -export * from './HostGet200Response'; -export * from './HostMetadata'; -export * from './HostsList200Response'; -export * from './ModelError'; -export * from './Network'; -export * from './NetworkGet200Response'; -export * from './NetworksList200Response'; -export * from './PaginationMetadata'; -export * from './PaginationMetadataPage'; -export * from './Role'; -export * from './RoleCreate200Response'; -export * from './RoleCreateRequest'; -export * from './RoleEditRequest'; -export * from './RolesList200Response'; -export * from './Target'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/models/index.js.map b/tfweb/src/lib/api/models/index.js.map deleted file mode 100644 index 30304d4..0000000 --- a/tfweb/src/lib/api/models/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,QAAQ,CAAC;AACvB,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wDAAwD,CAAC;AACvE,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qDAAqD,CAAC;AACpE,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,QAAQ,CAAC;AACvB,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/index.ts b/tfweb/src/lib/api/models/index.ts deleted file mode 100644 index d3e4829..0000000 --- a/tfweb/src/lib/api/models/index.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './Actor'; -export * from './ActorAPIKey'; -export * from './ActorHost'; -export * from './ActorOIDCUser'; -export * from './ActorSupport'; -export * from './ActorSystem'; -export * from './ActorUser'; -export * from './AuditLog'; -export * from './AuditLogsList200Response'; -export * from './Downloads'; -export * from './DownloadsDNClientLinks'; -export * from './DownloadsDnclient'; -export * from './DownloadsList200Response'; -export * from './DownloadsMobile'; -export * from './DownloadsVersionInfo'; -export * from './DownloadsVersionInfoDnclientValue'; -export * from './DownloadsVersionInfoLatest'; -export * from './Event'; -export * from './FirewallRule'; -export * from './FirewallRulePortRange'; -export * from './Host'; -export * from './HostAndEnrollCodeCreate200Response'; -export * from './HostAndEnrollCodeCreate200ResponseData'; -export * from './HostAndEnrollCodeCreate200ResponseDataEnrollmentCode'; -export * from './HostAndEnrollCodeCreate400Response'; -export * from './HostBlock200Response'; -export * from './HostBlock200ResponseData'; -export * from './HostCreate200Response'; -export * from './HostCreate400Response'; -export * from './HostCreateRequest'; -export * from './HostDelete200Response'; -export * from './HostEdit200Response'; -export * from './HostEditRequest'; -export * from './HostEnrollCodeCreate200Response'; -export * from './HostEnrollCodeCreate200ResponseData'; -export * from './HostEnrollCodeCreate200ResponseDataEnrollmentCode'; -export * from './HostGet200Response'; -export * from './HostMetadata'; -export * from './HostsList200Response'; -export * from './ModelError'; -export * from './Network'; -export * from './NetworkGet200Response'; -export * from './NetworksList200Response'; -export * from './PaginationMetadata'; -export * from './PaginationMetadataPage'; -export * from './Role'; -export * from './RoleCreate200Response'; -export * from './RoleCreateRequest'; -export * from './RoleEditRequest'; -export * from './RolesList200Response'; -export * from './Target'; diff --git a/tfweb/src/lib/api/runtime.js b/tfweb/src/lib/api/runtime.js deleted file mode 100644 index 883258a..0000000 --- a/tfweb/src/lib/api/runtime.js +++ /dev/null @@ -1,323 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -export const BASE_PATH = "https://api.defined.net".replace(/\/+$/, ""); -export class Configuration { - configuration; - constructor(configuration = {}) { - this.configuration = configuration; - } - set config(configuration) { - this.configuration = configuration; - } - get basePath() { - return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; - } - get fetchApi() { - return this.configuration.fetchApi; - } - get middleware() { - return this.configuration.middleware || []; - } - get queryParamsStringify() { - return this.configuration.queryParamsStringify || querystring; - } - get username() { - return this.configuration.username; - } - get password() { - return this.configuration.password; - } - get apiKey() { - const apiKey = this.configuration.apiKey; - if (apiKey) { - return typeof apiKey === 'function' ? apiKey : () => apiKey; - } - return undefined; - } - get accessToken() { - const accessToken = this.configuration.accessToken; - if (accessToken) { - return typeof accessToken === 'function' ? accessToken : async () => accessToken; - } - return undefined; - } - get headers() { - return this.configuration.headers; - } - get credentials() { - return this.configuration.credentials; - } -} -export const DefaultConfig = new Configuration(); -/** - * This is the base class for all generated API classes. - */ -class BaseAPI { - configuration; - static jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); - middleware; - constructor(configuration = DefaultConfig) { - this.configuration = configuration; - this.middleware = configuration.middleware; - } - withMiddleware(...middlewares) { - const next = this.clone(); - next.middleware = next.middleware.concat(...middlewares); - return next; - } - withPreMiddleware(...preMiddlewares) { - const middlewares = preMiddlewares.map((pre) => ({ pre })); - return this.withMiddleware(...middlewares); - } - withPostMiddleware(...postMiddlewares) { - const middlewares = postMiddlewares.map((post) => ({ post })); - return this.withMiddleware(...middlewares); - } - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - isJsonMime(mime) { - if (!mime) { - return false; - } - return BaseAPI.jsonRegex.test(mime); - } - async request(context, initOverrides) { - const { url, init } = await this.createFetchParams(context, initOverrides); - const response = await this.fetchApi(url, init); - if (response && (response.status >= 200 && response.status < 300)) { - return response; - } - throw new ResponseError(response, 'Response returned an error code'); - } - async createFetchParams(context, initOverrides) { - let url = this.configuration.basePath + context.path; - if (context.query !== undefined && Object.keys(context.query).length !== 0) { - // only add the querystring to the URL if there are query parameters. - // this is done to avoid urls ending with a "?" character which buggy webservers - // do not handle correctly sometimes. - url += '?' + this.configuration.queryParamsStringify(context.query); - } - const headers = Object.assign({}, this.configuration.headers, context.headers); - Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); - const initOverrideFn = typeof initOverrides === "function" - ? initOverrides - : async () => initOverrides; - const initParams = { - method: context.method, - headers, - body: context.body, - credentials: this.configuration.credentials, - }; - const overriddenInit = { - ...initParams, - ...(await initOverrideFn({ - init: initParams, - context, - })) - }; - const init = { - ...overriddenInit, - body: isFormData(overriddenInit.body) || - overriddenInit.body instanceof URLSearchParams || - isBlob(overriddenInit.body) - ? overriddenInit.body - : JSON.stringify(overriddenInit.body), - }; - return { url, init }; - } - fetchApi = async (url, init) => { - let fetchParams = { url, init }; - for (const middleware of this.middleware) { - if (middleware.pre) { - fetchParams = await middleware.pre({ - fetch: this.fetchApi, - ...fetchParams, - }) || fetchParams; - } - } - let response = undefined; - try { - response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); - } - catch (e) { - for (const middleware of this.middleware) { - if (middleware.onError) { - response = await middleware.onError({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - error: e, - response: response ? response.clone() : undefined, - }) || response; - } - } - if (response === undefined) { - if (e instanceof Error) { - throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); - } - else { - throw e; - } - } - } - for (const middleware of this.middleware) { - if (middleware.post) { - response = await middleware.post({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - response: response.clone(), - }) || response; - } - } - return response; - }; - /** - * Create a shallow clone of `this` by constructing a new instance - * and then shallow cloning data members. - */ - clone() { - const constructor = this.constructor; - const next = new constructor(this.configuration); - next.middleware = this.middleware.slice(); - return next; - } -} -export { BaseAPI }; -; -function isBlob(value) { - return typeof Blob !== 'undefined' && value instanceof Blob; -} -function isFormData(value) { - return typeof FormData !== "undefined" && value instanceof FormData; -} -export class ResponseError extends Error { - response; - name = "ResponseError"; - constructor(response, msg) { - super(msg); - this.response = response; - } -} -export class FetchError extends Error { - cause; - name = "FetchError"; - constructor(cause, msg) { - super(msg); - this.cause = cause; - } -} -export class RequiredError extends Error { - field; - name = "RequiredError"; - constructor(field, msg) { - super(msg); - this.field = field; - } -} -export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; -export function exists(json, key) { - const value = json[key]; - return value !== null && value !== undefined; -} -export function querystring(params, prefix = '') { - return Object.keys(params) - .map(key => querystringSingleKey(key, params[key], prefix)) - .filter(part => part.length > 0) - .join('&'); -} -function querystringSingleKey(key, value, keyPrefix = '') { - const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); - if (value instanceof Array) { - const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) - .join(`&${encodeURIComponent(fullKey)}=`); - return `${encodeURIComponent(fullKey)}=${multiValue}`; - } - if (value instanceof Set) { - const valueAsArray = Array.from(value); - return querystringSingleKey(key, valueAsArray, keyPrefix); - } - if (value instanceof Date) { - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; - } - if (value instanceof Object) { - return querystring(value, fullKey); - } - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; -} -export function mapValues(data, fn) { - return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {}); -} -export function canConsumeForm(consumes) { - for (const consume of consumes) { - if ('multipart/form-data' === consume.contentType) { - return true; - } - } - return false; -} -export class JSONApiResponse { - raw; - transformer; - constructor(raw, transformer = (jsonValue) => jsonValue) { - this.raw = raw; - this.transformer = transformer; - } - async value() { - return this.transformer(await this.raw.json()); - } -} -export class VoidApiResponse { - raw; - constructor(raw) { - this.raw = raw; - } - async value() { - return undefined; - } -} -export class BlobApiResponse { - raw; - constructor(raw) { - this.raw = raw; - } - async value() { - return await this.raw.blob(); - } - ; -} -export class TextApiResponse { - raw; - constructor(raw) { - this.raw = raw; - } - async value() { - return await this.raw.text(); - } - ; -} -//# sourceMappingURL=runtime.js.map \ No newline at end of file diff --git a/tfweb/src/lib/api/runtime.js.map b/tfweb/src/lib/api/runtime.js.map deleted file mode 100644 index a842d8a..0000000 --- a/tfweb/src/lib/api/runtime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"runtime.js","sourceRoot":"","sources":["runtime.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,MAAM,CAAC,MAAM,SAAS,GAAG,yBAAyB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAevE,MAAM,OAAO,aAAa;IACF;IAApB,YAAoB,gBAAyC,EAAE;QAA3C,kBAAa,GAAb,aAAa,CAA8B;IAAG,CAAC;IAEnE,IAAI,MAAM,CAAC,aAA4B;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IACzF,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,IAAI,EAAE,CAAC;IAC/C,CAAC;IAED,IAAI,o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/tfweb/src/lib/api/runtime.ts b/tfweb/src/lib/api/runtime.ts deleted file mode 100644 index 5e98cae..0000000 --- a/tfweb/src/lib/api/runtime.ts +++ /dev/null @@ -1,425 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Defined Networking API - *

This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys).
- * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export const BASE_PATH = "https://api.defined.net".replace(/\/+$/, ""); - -export interface ConfigurationParameters { - basePath?: string; // override base path - fetchApi?: FetchAPI; // override for fetch implementation - middleware?: Middleware[]; // middleware to apply before/after fetch requests - queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings - username?: string; // parameter for basic security - password?: string; // parameter for basic security - apiKey?: string | ((name: string) => string); // parameter for apiKey security - accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security - headers?: HTTPHeaders; //header params we want to use on every request - credentials?: RequestCredentials; //value for the credentials param we want to use on each request -} - -export class Configuration { - constructor(private configuration: ConfigurationParameters = {}) {} - - set config(configuration: Configuration) { - this.configuration = configuration; - } - - get basePath(): string { - return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; - } - - get fetchApi(): FetchAPI | undefined { - return this.configuration.fetchApi; - } - - get middleware(): Middleware[] { - return this.configuration.middleware || []; - } - - get queryParamsStringify(): (params: HTTPQuery) => string { - return this.configuration.queryParamsStringify || querystring; - } - - get username(): string | undefined { - return this.configuration.username; - } - - get password(): string | undefined { - return this.configuration.password; - } - - get apiKey(): ((name: string) => string) | undefined { - const apiKey = this.configuration.apiKey; - if (apiKey) { - return typeof apiKey === 'function' ? apiKey : () => apiKey; - } - return undefined; - } - - get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { - const accessToken = this.configuration.accessToken; - if (accessToken) { - return typeof accessToken === 'function' ? accessToken : async () => accessToken; - } - return undefined; - } - - get headers(): HTTPHeaders | undefined { - return this.configuration.headers; - } - - get credentials(): RequestCredentials | undefined { - return this.configuration.credentials; - } -} - -export const DefaultConfig = new Configuration(); - -/** - * This is the base class for all generated API classes. - */ -export class BaseAPI { - - private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); - private middleware: Middleware[]; - - constructor(protected configuration = DefaultConfig) { - this.middleware = configuration.middleware; - } - - withMiddleware(this: T, ...middlewares: Middleware[]) { - const next = this.clone(); - next.middleware = next.middleware.concat(...middlewares); - return next; - } - - withPreMiddleware(this: T, ...preMiddlewares: Array) { - const middlewares = preMiddlewares.map((pre) => ({ pre })); - return this.withMiddleware(...middlewares); - } - - withPostMiddleware(this: T, ...postMiddlewares: Array) { - const middlewares = postMiddlewares.map((post) => ({ post })); - return this.withMiddleware(...middlewares); - } - - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - protected isJsonMime(mime: string | null | undefined): boolean { - if (!mime) { - return false; - } - return BaseAPI.jsonRegex.test(mime); - } - - protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise { - const { url, init } = await this.createFetchParams(context, initOverrides); - const response = await this.fetchApi(url, init); - if (response && (response.status >= 200 && response.status < 300)) { - return response; - } - throw new ResponseError(response, 'Response returned an error code'); - } - - private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) { - let url = this.configuration.basePath + context.path; - if (context.query !== undefined && Object.keys(context.query).length !== 0) { - // only add the querystring to the URL if there are query parameters. - // this is done to avoid urls ending with a "?" character which buggy webservers - // do not handle correctly sometimes. - url += '?' + this.configuration.queryParamsStringify(context.query); - } - - const headers = Object.assign({}, this.configuration.headers, context.headers); - Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); - - const initOverrideFn = - typeof initOverrides === "function" - ? initOverrides - : async () => initOverrides; - - const initParams = { - method: context.method, - headers, - body: context.body, - credentials: this.configuration.credentials, - }; - - const overriddenInit: RequestInit = { - ...initParams, - ...(await initOverrideFn({ - init: initParams, - context, - })) - }; - - const init: RequestInit = { - ...overriddenInit, - body: - isFormData(overriddenInit.body) || - overriddenInit.body instanceof URLSearchParams || - isBlob(overriddenInit.body) - ? overriddenInit.body - : JSON.stringify(overriddenInit.body), - }; - - return { url, init }; - } - - private fetchApi = async (url: string, init: RequestInit) => { - let fetchParams = { url, init }; - for (const middleware of this.middleware) { - if (middleware.pre) { - fetchParams = await middleware.pre({ - fetch: this.fetchApi, - ...fetchParams, - }) || fetchParams; - } - } - let response: Response | undefined = undefined; - try { - response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); - } catch (e) { - for (const middleware of this.middleware) { - if (middleware.onError) { - response = await middleware.onError({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - error: e, - response: response ? response.clone() : undefined, - }) || response; - } - } - if (response === undefined) { - if (e instanceof Error) { - throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); - } else { - throw e; - } - } - } - for (const middleware of this.middleware) { - if (middleware.post) { - response = await middleware.post({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - response: response.clone(), - }) || response; - } - } - return response; - } - - /** - * Create a shallow clone of `this` by constructing a new instance - * and then shallow cloning data members. - */ - private clone(this: T): T { - const constructor = this.constructor as any; - const next = new constructor(this.configuration); - next.middleware = this.middleware.slice(); - return next; - } -}; - -function isBlob(value: any): value is Blob { - return typeof Blob !== 'undefined' && value instanceof Blob; -} - -function isFormData(value: any): value is FormData { - return typeof FormData !== "undefined" && value instanceof FormData; -} - -export class ResponseError extends Error { - override name: "ResponseError" = "ResponseError"; - constructor(public response: Response, msg?: string) { - super(msg); - } -} - -export class FetchError extends Error { - override name: "FetchError" = "FetchError"; - constructor(public cause: Error, msg?: string) { - super(msg); - } -} - -export class RequiredError extends Error { - override name: "RequiredError" = "RequiredError"; - constructor(public field: string, msg?: string) { - super(msg); - } -} - -export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; - -export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; - -export type Json = any; -export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; -export type HTTPHeaders = { [key: string]: string }; -export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery }; -export type HTTPBody = Json | FormData | URLSearchParams; -export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }; -export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; - -export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise - -export interface FetchParams { - url: string; - init: RequestInit; -} - -export interface RequestOpts { - path: string; - method: HTTPMethod; - headers: HTTPHeaders; - query?: HTTPQuery; - body?: HTTPBody; -} - -export function exists(json: any, key: string) { - const value = json[key]; - return value !== null && value !== undefined; -} - -export function querystring(params: HTTPQuery, prefix: string = ''): string { - return Object.keys(params) - .map(key => querystringSingleKey(key, params[key], prefix)) - .filter(part => part.length > 0) - .join('&'); -} - -function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array | Set | HTTPQuery, keyPrefix: string = ''): string { - const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); - if (value instanceof Array) { - const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) - .join(`&${encodeURIComponent(fullKey)}=`); - return `${encodeURIComponent(fullKey)}=${multiValue}`; - } - if (value instanceof Set) { - const valueAsArray = Array.from(value); - return querystringSingleKey(key, valueAsArray, keyPrefix); - } - if (value instanceof Date) { - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; - } - if (value instanceof Object) { - return querystring(value as HTTPQuery, fullKey); - } - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; -} - -export function mapValues(data: any, fn: (item: any) => any) { - return Object.keys(data).reduce( - (acc, key) => ({ ...acc, [key]: fn(data[key]) }), - {} - ); -} - -export function canConsumeForm(consumes: Consume[]): boolean { - for (const consume of consumes) { - if ('multipart/form-data' === consume.contentType) { - return true; - } - } - return false; -} - -export interface Consume { - contentType: string; -} - -export interface RequestContext { - fetch: FetchAPI; - url: string; - init: RequestInit; -} - -export interface ResponseContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - response: Response; -} - -export interface ErrorContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - error: unknown; - response?: Response; -} - -export interface Middleware { - pre?(context: RequestContext): Promise; - post?(context: ResponseContext): Promise; - onError?(context: ErrorContext): Promise; -} - -export interface ApiResponse { - raw: Response; - value(): Promise; -} - -export interface ResponseTransformer { - (json: any): T; -} - -export class JSONApiResponse { - constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} - - async value(): Promise { - return this.transformer(await this.raw.json()); - } -} - -export class VoidApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return undefined; - } -} - -export class BlobApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return await this.raw.blob(); - }; -} - -export class TextApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return await this.raw.text(); - }; -} diff --git a/tfweb/src/lib/auth.js b/tfweb/src/lib/auth.js deleted file mode 100644 index cdf8a73..0000000 --- a/tfweb/src/lib/auth.js +++ /dev/null @@ -1,225 +0,0 @@ -import { Logger, logSetup } from "$lib/logger"; -import { PUBLIC_BASE_URL } from "$env/static/public"; -export var APIResult; -(function (APIResult) { - APIResult[APIResult["Failed"] = 0] = "Failed"; - APIResult[APIResult["Successful"] = 1] = "Successful"; -})(APIResult || (APIResult = {})); -logSetup(); -const logger = new Logger("auth.ts"); -export async function isAuthedSession() { - logger.info('Checking for session authentication'); - if (window.localStorage.getItem("session") === null) { - logger.error('unable to check session: session token not set'); - return [APIResult.Failed, { code: "missing_token", message: "not logged in" }]; - } - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v2/whoami`, { - 'method': 'GET', - 'headers': { - 'Authorization': `Bearer ${window.localStorage.getItem("session")}` - } - }); - if (!resp.ok) { - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error fetching user information: ${rawerror.message}`); - return [APIResult.Failed, { code: rawerror.code, message: rawerror.message }]; - } - return [APIResult.Successful, JSON.parse(await resp.text()).data.actor]; - } - catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, { code: "api_call_failed", message: `${e}` }]; - } -} -export async function isAuthedMFA() { - logger.info('Checking for MFA authentication'); - if (window.localStorage.getItem("mfa") === null) { - logger.error('unable to check mfa: mfa token not set'); - return [APIResult.Failed, { code: "missing_token", message: "not logged in" }]; - } - const sess = await isAuthedSession(); - if (sess[0] !== APIResult.Successful) { - logger.error('unable to check mfa: session token invalid'); - return [APIResult.Failed, sess[1]]; - } - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v2/whoami`, { - 'method': 'GET', - 'headers': { - 'Authorization': `Bearer ${window.localStorage.getItem("session")} ${window.localStorage.getItem("mfa")}` - } - }); - if (!resp.ok) { - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error fetching user information: ${rawerror.message}`); - return [APIResult.Failed, { code: rawerror.code, message: rawerror.message }]; - } - return [APIResult.Successful, JSON.parse(await resp.text()).data.actor]; - } - catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, { code: "api_call_failed", message: `${e}` }]; - } -} -export async function authSession(email) { - logger.info('Sending new session authentication'); - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v1/auth/magic-link`, { - 'method': 'POST', - 'body': JSON.stringify({ - email: email - }), - 'headers': { - 'Content-Type': 'application/json' - } - }); - if (!resp.ok) { - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error sending authentication: ${rawerror.message}`); - return [APIResult.Failed, { code: rawerror.code, message: rawerror.message }]; - } - return [APIResult.Successful, null]; - } - catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, { code: "api_call_failed", message: `${e}` }]; - } -} -export async function signup(email) { - logger.info('sending signup'); - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v1/signup`, { - 'method': 'POST', - 'body': JSON.stringify({ - email: email - }), - 'headers': { - 'Content-Type': 'application/json' - } - }); - if (!resp.ok) { - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error sending authentication: ${rawerror.message}`); - return [APIResult.Failed, { code: rawerror.code, message: rawerror.message }]; - } - return [APIResult.Successful, null]; - } - catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, { code: "api_call_failed", message: `${e}` }]; - } -} -export async function verifyLink(ml) { - logger.info('checking magic link authentication'); - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v1/auth/verify-magic-link`, { - 'method': 'POST', - 'body': JSON.stringify({ - magicLinkToken: ml - }), - 'headers': { - 'Content-Type': 'application/json' - } - }); - if (!resp.ok) { - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error sending authentication: ${rawerror.message}`); - return [APIResult.Failed, { code: rawerror.code, message: rawerror.message }]; - } - window.localStorage.setItem("session", JSON.parse(await resp.text()).data.sessionToken); - return [APIResult.Successful, null]; - } - catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, { code: "api_call_failed", message: `${e}` }]; - } -} -export async function createTotp(token) { - logger.info('creating totp authenticator'); - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v1/totp-authenticators`, { - 'method': 'POST', - 'body': JSON.stringify({}), - 'headers': { - 'Content-Type': 'application/json', - 'Authorization': `Bearer ${token}` - } - }); - if (!resp.ok) { - logger.error('call returned error code'); - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error sending totp create: ${rawerror.message}`); - return [APIResult.Failed, { code: rawerror.code, message: rawerror.message }]; - } - return [APIResult.Successful, JSON.parse(await resp.text()).data]; - } - catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, { code: "api_call_failed", message: `${e}` }]; - } -} -export async function verifyTotp(token, totpToken, totpCode) { - logger.info('verifying totp authenticator'); - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v1/verify-totp-authenticators`, { - 'method': 'POST', - 'body': JSON.stringify({ - totpToken: totpToken, - code: totpCode - }), - 'headers': { - 'Content-Type': 'application/json', - 'Authorization': `Bearer ${token}` - } - }); - if (!resp.ok) { - logger.error('call returned error code'); - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error sending totp create: ${rawerror.message}`); - return [APIResult.Failed, { code: rawerror.code, message: rawerror.message }]; - } - window.localStorage.setItem("mfa", JSON.parse(await resp.text()).data.authToken); - return [APIResult.Successful, undefined]; - } - catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, { code: "api_call_failed", message: `${e}` }]; - } -} -export async function authTotp(token, totpCode) { - logger.info('authorizing totp authenticator'); - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v1/auth/totp`, { - 'method': 'POST', - 'body': JSON.stringify({ - code: `${totpCode}` - }), - 'headers': { - 'Content-Type': 'application/json', - 'Authorization': `Bearer ${token}` - } - }); - if (!resp.ok) { - logger.error('call returned error code'); - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error sending totp create: ${rawerror.message}`); - return [APIResult.Failed, { code: rawerror.code, message: rawerror.message }]; - } - window.localStorage.setItem("mfa", JSON.parse(await resp.text()).data.authToken); - return [APIResult.Successful, undefined]; - } - catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, { code: "api_call_failed", message: `${e}` }]; - } -} -//# sourceMappingURL=auth.js.map \ No newline at end of file diff --git a/tfweb/src/lib/auth.js.map b/tfweb/src/lib/auth.js.map deleted file mode 100644 index 2f724b8..0000000 --- a/tfweb/src/lib/auth.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth.js","sourceRoot":"","sources":["auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAC,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAEnD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,6CAAU,CAAA;IACV,qDAAc,CAAA;AAClB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAeD,QAAQ,EAAE,CAAC;AACX,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,SAAS,CAAC,CAAC;AAErC,MAAM,CAAC,KAAK,UAAU,eAAe;IACjC,MAAM,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;IAEnD,IAAI,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACjD,MAAM,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC;QAC/D,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,EAAC,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,eAAe,EAAC,CAAC,CAAC;KAChF;IA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AAK,CAAC,6BAA6B,CAAC,EAAE,CAAC,CAAC;QAC/C,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,EAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAC,CAAC,CAAA;KACxE;AACL,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/auth.ts b/tfweb/src/lib/auth.ts deleted file mode 100644 index dd28ef3..0000000 --- a/tfweb/src/lib/auth.ts +++ /dev/null @@ -1,261 +0,0 @@ -import {Logger, logSetup} from "$lib/logger"; -import {PUBLIC_BASE_URL} from "$env/static/public"; - -export enum APIResult { - Failed = 0, - Successful = 1 -} - -export interface SessionInfo { - id: string, - org_id: string, - email: string, - createdAt: string, - hasTOTPAuthenticator: boolean -} - -export interface APIError { - code: string, - message: string -} - -logSetup(); -const logger = new Logger("auth.ts"); - -export async function isAuthedSession(): Promise<[APIResult, SessionInfo | APIError]> { - logger.info('Checking for session authentication'); - - if (window.localStorage.getItem("session") === null) { - logger.error('unable to check session: session token not set'); - return [APIResult.Failed, {code: "missing_token", message: "not logged in"}]; - } - - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v2/whoami`, { - 'method': 'GET', - 'headers': { - 'Authorization': `Bearer ${window.localStorage.getItem("session")}` - } - }); - if (!resp.ok) { - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error fetching user information: ${rawerror.message}`); - return [APIResult.Failed, {code: rawerror.code, message: rawerror.message}]; - } - return [APIResult.Successful, JSON.parse(await resp.text()).data.actor] - } catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, {code: "api_call_failed", message: `${e}`}] - } -} - -export async function isAuthedMFA(): Promise<[APIResult, SessionInfo | APIError]> { - logger.info('Checking for MFA authentication'); - - if (window.localStorage.getItem("mfa") === null) { - logger.error('unable to check mfa: mfa token not set'); - return [APIResult.Failed, {code: "missing_token", message: "not logged in"}]; - } - - const sess = await isAuthedSession(); - if (sess[0] !== APIResult.Successful) { - logger.error('unable to check mfa: session token invalid'); - return [APIResult.Failed, sess[1]]; - } - - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v2/whoami`, { - 'method': 'GET', - 'headers': { - 'Authorization': `Bearer ${window.localStorage.getItem("session")} ${window.localStorage.getItem("mfa")}` - } - }); - if (!resp.ok) { - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error fetching user information: ${rawerror.message}`); - return [APIResult.Failed, {code: rawerror.code, message: rawerror.message}]; - } - return [APIResult.Successful, JSON.parse(await resp.text()).data.actor] - } catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, {code: "api_call_failed", message: `${e}`}] - } -} - -export async function authSession(email: string): Promise<[APIResult, null | APIError]> { - logger.info('Sending new session authentication'); - - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v1/auth/magic-link`, { - 'method': 'POST', - 'body': JSON.stringify({ - email: email - }), - 'headers': { - 'Content-Type': 'application/json' - } - }); - if (!resp.ok) { - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error sending authentication: ${rawerror.message}`); - return [APIResult.Failed, {code: rawerror.code, message: rawerror.message}]; - } - return [APIResult.Successful, null] - } catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, {code: "api_call_failed", message: `${e}`}] - } -} - -export async function signup(email: string): Promise<[APIResult, null | APIError]> { - logger.info('sending signup'); - - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v1/signup`, { - 'method': 'POST', - 'body': JSON.stringify({ - email: email - }), - 'headers': { - 'Content-Type': 'application/json' - } - }); - if (!resp.ok) { - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error sending authentication: ${rawerror.message}`); - return [APIResult.Failed, {code: rawerror.code, message: rawerror.message}]; - } - return [APIResult.Successful, null] - } catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, {code: "api_call_failed", message: `${e}`}] - } -} - -export async function verifyLink(ml: string): Promise<[APIResult, null | APIError]> { - logger.info('checking magic link authentication'); - - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v1/auth/verify-magic-link`, { - 'method': 'POST', - 'body': JSON.stringify({ - magicLinkToken: ml - }), - 'headers': { - 'Content-Type': 'application/json' - } - }); - if (!resp.ok) { - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error sending authentication: ${rawerror.message}`); - return [APIResult.Failed, {code: rawerror.code, message: rawerror.message}]; - } - - window.localStorage.setItem("session", JSON.parse(await resp.text()).data.sessionToken); - - return [APIResult.Successful, null] - } catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, {code: "api_call_failed", message: `${e}`}] - } -} - -export interface TOTPCreateInfo { - totpToken: string, - secret: string, - url: string -} - -export async function createTotp(token: string): Promise<[APIResult, TOTPCreateInfo | APIError]> { - logger.info('creating totp authenticator'); - - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v1/totp-authenticators`, { - 'method': 'POST', - 'body': JSON.stringify({}), - 'headers': { - 'Content-Type': 'application/json', - 'Authorization': `Bearer ${token}` - } - }); - if (!resp.ok) { - logger.error('call returned error code'); - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error sending totp create: ${rawerror.message}`); - return [APIResult.Failed, {code: rawerror.code, message: rawerror.message}]; - } - return [APIResult.Successful, JSON.parse(await resp.text()).data] - } catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, {code: "api_call_failed", message: `${e}`}] - } -} - -export async function verifyTotp(token: string, totpToken: string, totpCode: string): Promise<[APIResult, undefined | APIError]> { - logger.info('verifying totp authenticator'); - - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v1/verify-totp-authenticators`, { - 'method': 'POST', - 'body': JSON.stringify({ - totpToken: totpToken, - code: totpCode - }), - 'headers': { - 'Content-Type': 'application/json', - 'Authorization': `Bearer ${token}` - } - }); - if (!resp.ok) { - logger.error('call returned error code'); - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error sending totp create: ${rawerror.message}`); - return [APIResult.Failed, {code: rawerror.code, message: rawerror.message}]; - } - - window.localStorage.setItem("mfa", JSON.parse(await resp.text()).data.authToken); - - return [APIResult.Successful, undefined] - } catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, {code: "api_call_failed", message: `${e}`}] - } -} - -export async function authTotp(token: string, totpCode: string): Promise<[APIResult, undefined | APIError]> { - logger.info('authorizing totp authenticator'); - - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v1/auth/totp`, { - 'method': 'POST', - 'body': JSON.stringify({ - code: `${totpCode}` - }), - 'headers': { - 'Content-Type': 'application/json', - 'Authorization': `Bearer ${token}` - } - }); - if (!resp.ok) { - logger.error('call returned error code'); - const rawerror = JSON.parse(await resp.text()).errors[0]; - logger.error(`error sending totp create: ${rawerror.message}`); - return [APIResult.Failed, {code: rawerror.code, message: rawerror.message}]; - } - - window.localStorage.setItem("mfa", JSON.parse(await resp.text()).data.authToken); - - return [APIResult.Successful, undefined] - } catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, {code: "api_call_failed", message: `${e}`}] - } -} diff --git a/tfweb/src/lib/components/ui/button/button.svelte b/tfweb/src/lib/components/ui/button/button.svelte new file mode 100644 index 0000000..a128f14 --- /dev/null +++ b/tfweb/src/lib/components/ui/button/button.svelte @@ -0,0 +1,25 @@ + + + + + diff --git a/tfweb/src/lib/components/ui/button/index.ts b/tfweb/src/lib/components/ui/button/index.ts new file mode 100644 index 0000000..927556e --- /dev/null +++ b/tfweb/src/lib/components/ui/button/index.ts @@ -0,0 +1,51 @@ +import Root from "./button.svelte"; +import { tv, type VariantProps } from "tailwind-variants"; +import type { Button as ButtonPrimitive } from "bits-ui"; + +const buttonVariants = tv({ + base: "inline-flex items-center justify-center rounded-md text-sm font-medium whitespace-nowrap ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", + variants: { + variant: { + default: "bg-primary text-primary-foreground hover:bg-primary/90", + destructive: + "bg-destructive text-destructive-foreground hover:bg-destructive/90", + outline: + "border border-input bg-background hover:bg-accent hover:text-accent-foreground", + secondary: + "bg-secondary text-secondary-foreground hover:bg-secondary/80", + ghost: "hover:bg-accent hover:text-accent-foreground", + link: "text-primary underline-offset-4 hover:underline" + }, + size: { + default: "h-10 px-4 py-2", + sm: "h-9 rounded-md px-3", + lg: "h-11 rounded-md px-8", + icon: "h-10 w-10" + } + }, + defaultVariants: { + variant: "default", + size: "default" + } +}); + +type Variant = VariantProps["variant"]; +type Size = VariantProps["size"]; + +type Props = ButtonPrimitive.Props & { + variant?: Variant; + size?: Size; +}; + +type Events = ButtonPrimitive.Events; + +export { + Root, + type Props, + type Events, + // + Root as Button, + type Props as ButtonProps, + type Events as ButtonEvents, + buttonVariants +}; diff --git a/tfweb/src/lib/components/ui/card/card-content.svelte b/tfweb/src/lib/components/ui/card/card-content.svelte new file mode 100644 index 0000000..2388f2b --- /dev/null +++ b/tfweb/src/lib/components/ui/card/card-content.svelte @@ -0,0 +1,13 @@ + + +
+ +
diff --git a/tfweb/src/lib/components/ui/card/card-description.svelte b/tfweb/src/lib/components/ui/card/card-description.svelte new file mode 100644 index 0000000..906782a --- /dev/null +++ b/tfweb/src/lib/components/ui/card/card-description.svelte @@ -0,0 +1,13 @@ + + +

+ +

diff --git a/tfweb/src/lib/components/ui/card/card-footer.svelte b/tfweb/src/lib/components/ui/card/card-footer.svelte new file mode 100644 index 0000000..dab6252 --- /dev/null +++ b/tfweb/src/lib/components/ui/card/card-footer.svelte @@ -0,0 +1,13 @@ + + +
+ +
diff --git a/tfweb/src/lib/components/ui/card/card-header.svelte b/tfweb/src/lib/components/ui/card/card-header.svelte new file mode 100644 index 0000000..d7412d7 --- /dev/null +++ b/tfweb/src/lib/components/ui/card/card-header.svelte @@ -0,0 +1,13 @@ + + +
+ +
diff --git a/tfweb/src/lib/components/ui/card/card-title.svelte b/tfweb/src/lib/components/ui/card/card-title.svelte new file mode 100644 index 0000000..e544dab --- /dev/null +++ b/tfweb/src/lib/components/ui/card/card-title.svelte @@ -0,0 +1,21 @@ + + + + + diff --git a/tfweb/src/lib/components/ui/card/card.svelte b/tfweb/src/lib/components/ui/card/card.svelte new file mode 100644 index 0000000..5869a7a --- /dev/null +++ b/tfweb/src/lib/components/ui/card/card.svelte @@ -0,0 +1,19 @@ + + +
+ +
diff --git a/tfweb/src/lib/components/ui/card/index.ts b/tfweb/src/lib/components/ui/card/index.ts new file mode 100644 index 0000000..14a7f72 --- /dev/null +++ b/tfweb/src/lib/components/ui/card/index.ts @@ -0,0 +1,24 @@ +import Root from "./card.svelte"; +import Content from "./card-content.svelte"; +import Description from "./card-description.svelte"; +import Footer from "./card-footer.svelte"; +import Header from "./card-header.svelte"; +import Title from "./card-title.svelte"; + +export { + Root, + Content, + Description, + Footer, + Header, + Title, + // + Root as Card, + Content as CardContent, + Description as CardDescription, + Footer as CardFooter, + Header as CardHeader, + Title as CardTitle +}; + +export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; diff --git a/tfweb/src/lib/components/ui/checkbox/checkbox.svelte b/tfweb/src/lib/components/ui/checkbox/checkbox.svelte new file mode 100644 index 0000000..ac9d767 --- /dev/null +++ b/tfweb/src/lib/components/ui/checkbox/checkbox.svelte @@ -0,0 +1,34 @@ + + + + + {#if isChecked} + + {:else if isIndeterminate} + + {/if} + + diff --git a/tfweb/src/lib/components/ui/checkbox/index.ts b/tfweb/src/lib/components/ui/checkbox/index.ts new file mode 100644 index 0000000..5fba5a4 --- /dev/null +++ b/tfweb/src/lib/components/ui/checkbox/index.ts @@ -0,0 +1,6 @@ +import Root from "./checkbox.svelte"; +export { + Root, + // + Root as Checkbox +}; diff --git a/tfweb/src/lib/components/ui/form/form-button.svelte b/tfweb/src/lib/components/ui/form/form-button.svelte new file mode 100644 index 0000000..024f9dc --- /dev/null +++ b/tfweb/src/lib/components/ui/form/form-button.svelte @@ -0,0 +1,9 @@ + + + + + diff --git a/tfweb/src/lib/components/ui/form/form-checkbox.svelte b/tfweb/src/lib/components/ui/form/form-checkbox.svelte new file mode 100644 index 0000000..46b9151 --- /dev/null +++ b/tfweb/src/lib/components/ui/form/form-checkbox.svelte @@ -0,0 +1,26 @@ + + + { + onCheckedChange?.(v); + setValue(v); + }} + {...$$restProps} + on:click + on:keydown +/> + diff --git a/tfweb/src/lib/components/ui/form/form-description.svelte b/tfweb/src/lib/components/ui/form/form-description.svelte new file mode 100644 index 0000000..6efa0e5 --- /dev/null +++ b/tfweb/src/lib/components/ui/form/form-description.svelte @@ -0,0 +1,16 @@ + + + + + diff --git a/tfweb/src/lib/components/ui/form/form-input.svelte b/tfweb/src/lib/components/ui/form/form-input.svelte new file mode 100644 index 0000000..224f44a --- /dev/null +++ b/tfweb/src/lib/components/ui/form/form-input.svelte @@ -0,0 +1,28 @@ + + + diff --git a/tfweb/src/lib/components/ui/form/form-item.svelte b/tfweb/src/lib/components/ui/form/form-item.svelte new file mode 100644 index 0000000..0e5daa4 --- /dev/null +++ b/tfweb/src/lib/components/ui/form/form-item.svelte @@ -0,0 +1,12 @@ + + +
+ +
diff --git a/tfweb/src/lib/components/ui/form/form-label.svelte b/tfweb/src/lib/components/ui/form/form-label.svelte new file mode 100644 index 0000000..96083e5 --- /dev/null +++ b/tfweb/src/lib/components/ui/form/form-label.svelte @@ -0,0 +1,21 @@ + + + diff --git a/tfweb/src/lib/components/ui/form/form-native-select.svelte b/tfweb/src/lib/components/ui/form/form-native-select.svelte new file mode 100644 index 0000000..0443efb --- /dev/null +++ b/tfweb/src/lib/components/ui/form/form-native-select.svelte @@ -0,0 +1,26 @@ + + +
+ + + + +
diff --git a/tfweb/src/lib/components/ui/form/form-radio-group.svelte b/tfweb/src/lib/components/ui/form/form-radio-group.svelte new file mode 100644 index 0000000..91f6b80 --- /dev/null +++ b/tfweb/src/lib/components/ui/form/form-radio-group.svelte @@ -0,0 +1,22 @@ + + + { + onValueChange?.(v); + setValue(v); + }} + {...$$restProps} +> + + + diff --git a/tfweb/src/lib/components/ui/form/form-select-trigger.svelte b/tfweb/src/lib/components/ui/form/form-select-trigger.svelte new file mode 100644 index 0000000..de71fbf --- /dev/null +++ b/tfweb/src/lib/components/ui/form/form-select-trigger.svelte @@ -0,0 +1,23 @@ + + + + + + diff --git a/tfweb/src/lib/components/ui/form/form-select.svelte b/tfweb/src/lib/components/ui/form/form-select.svelte new file mode 100644 index 0000000..ff022bb --- /dev/null +++ b/tfweb/src/lib/components/ui/form/form-select.svelte @@ -0,0 +1,20 @@ + + + { + onSelectedChange?.(v); + setValue(v ? v.value : undefined); + }} + {...$$restProps} +> + + + diff --git a/tfweb/src/lib/components/ui/form/form-switch.svelte b/tfweb/src/lib/components/ui/form/form-switch.svelte new file mode 100644 index 0000000..8b909dc --- /dev/null +++ b/tfweb/src/lib/components/ui/form/form-switch.svelte @@ -0,0 +1,24 @@ + + + { + onCheckedChange?.(v); + setValue(v); + }} + {...$$restProps} + on:click + on:keydown +/> + diff --git a/tfweb/src/lib/components/ui/form/form-textarea.svelte b/tfweb/src/lib/components/ui/form/form-textarea.svelte new file mode 100644 index 0000000..149d88f --- /dev/null +++ b/tfweb/src/lib/components/ui/form/form-textarea.svelte @@ -0,0 +1,32 @@ + + +