From 908e1b845c6f3436bfec89bd3940e9906d6bcf20 Mon Sep 17 00:00:00 2001 From: core Date: Sat, 16 Dec 2023 21:14:12 -0500 Subject: [PATCH] network create request, remove old tfweb pending rewrite --- Cargo.lock | 1 + nebula-ffi/build.rs | 49 +- tfcli/src/host.rs | 53 +- tfcli/src/main.rs | 24 +- tfcli/src/network.rs | 36 +- tfcli/src/role.rs | 56 +- tfweb/.eslintignore | 13 - tfweb/.eslintrc.cjs | 29 - tfweb/.gitignore | 11 - tfweb/.npmrc | 2 - tfweb/README.md | 38 - tfweb/openapi.yaml | 1928 ---------------- tfweb/openapitools.json | 7 - tfweb/package.json | 37 - tfweb/src/app.d.ts | 12 - tfweb/src/app.html | 12 - tfweb/src/components/AdminLayout.svelte | 16 - tfweb/src/components/LoadingWrapper.svelte | 42 - tfweb/src/components/QrCode.svelte | 35 - tfweb/src/components/Sidebar.svelte | 48 - tfweb/src/lib/PersistentStore.js | 11 - tfweb/src/lib/PersistentStore.js.map | 1 - tfweb/src/lib/PersistentStore.ts | 11 - tfweb/src/lib/Tooltips.js | 17 - tfweb/src/lib/api/.openapi-generator-ignore | 23 - tfweb/src/lib/api/.openapi-generator/FILES | 61 - tfweb/src/lib/api/.openapi-generator/VERSION | 1 - tfweb/src/lib/api/apis/AuditLogsApi.js | 78 - tfweb/src/lib/api/apis/AuditLogsApi.js.map | 1 - tfweb/src/lib/api/apis/AuditLogsApi.ts | 108 - tfweb/src/lib/api/apis/DownloadsApi.js | 51 - tfweb/src/lib/api/apis/DownloadsApi.js.map | 1 - tfweb/src/lib/api/apis/DownloadsApi.ts | 66 - tfweb/src/lib/api/apis/HostsApi.js | 332 --- tfweb/src/lib/api/apis/HostsApi.js.map | 1 - tfweb/src/lib/api/apis/HostsApi.ts | 486 ---- tfweb/src/lib/api/apis/NetworksApi.js | 93 - tfweb/src/lib/api/apis/NetworksApi.js.map | 1 - tfweb/src/lib/api/apis/NetworksApi.ts | 131 -- tfweb/src/lib/api/apis/RolesApi.js | 199 -- tfweb/src/lib/api/apis/RolesApi.js.map | 1 - tfweb/src/lib/api/apis/RolesApi.ts | 286 --- tfweb/src/lib/api/apis/index.js | 8 - tfweb/src/lib/api/apis/index.js.map | 1 - tfweb/src/lib/api/apis/index.ts | 7 - tfweb/src/lib/api/index.js | 6 - tfweb/src/lib/api/index.js.map | 1 - tfweb/src/lib/api/index.ts | 5 - tfweb/src/lib/api/models/Actor.js | 56 - tfweb/src/lib/api/models/Actor.js.map | 1 - tfweb/src/lib/api/models/Actor.ts | 105 - tfweb/src/lib/api/models/ActorAPIKey.js | 54 - tfweb/src/lib/api/models/ActorAPIKey.js.map | 1 - tfweb/src/lib/api/models/ActorAPIKey.ts | 91 - tfweb/src/lib/api/models/ActorHost.js | 54 - tfweb/src/lib/api/models/ActorHost.js.map | 1 - tfweb/src/lib/api/models/ActorHost.ts | 91 - tfweb/src/lib/api/models/ActorOIDCUser.js | 56 - tfweb/src/lib/api/models/ActorOIDCUser.js.map | 1 - tfweb/src/lib/api/models/ActorOIDCUser.ts | 99 - tfweb/src/lib/api/models/ActorSupport.js | 50 - tfweb/src/lib/api/models/ActorSupport.js.map | 1 - tfweb/src/lib/api/models/ActorSupport.ts | 75 - tfweb/src/lib/api/models/ActorSystem.js | 50 - tfweb/src/lib/api/models/ActorSystem.js.map | 1 - tfweb/src/lib/api/models/ActorSystem.ts | 75 - tfweb/src/lib/api/models/ActorUser.js | 54 - tfweb/src/lib/api/models/ActorUser.js.map | 1 - tfweb/src/lib/api/models/ActorUser.ts | 91 - tfweb/src/lib/api/models/AuditLog.js | 57 - tfweb/src/lib/api/models/AuditLog.js.map | 1 - tfweb/src/lib/api/models/AuditLog.ts | 124 -- .../api/models/AuditLogsList200Response.js | 48 - .../models/AuditLogsList200Response.js.map | 1 - .../api/models/AuditLogsList200Response.ts | 86 - tfweb/src/lib/api/models/Downloads.js | 51 - tfweb/src/lib/api/models/Downloads.js.map | 1 - tfweb/src/lib/api/models/Downloads.ts | 100 - .../lib/api/models/DownloadsDNClientLinks.js | 56 - .../api/models/DownloadsDNClientLinks.js.map | 1 - .../lib/api/models/DownloadsDNClientLinks.ts | 108 - tfweb/src/lib/api/models/DownloadsDnclient.js | 47 - .../lib/api/models/DownloadsDnclient.js.map | 1 - tfweb/src/lib/api/models/DownloadsDnclient.ts | 75 - .../api/models/DownloadsList200Response.js | 45 - .../models/DownloadsList200Response.js.map | 1 - .../api/models/DownloadsList200Response.ts | 72 - tfweb/src/lib/api/models/DownloadsMobile.js | 46 - .../src/lib/api/models/DownloadsMobile.js.map | 1 - tfweb/src/lib/api/models/DownloadsMobile.ts | 73 - .../lib/api/models/DownloadsVersionInfo.js | 48 - .../api/models/DownloadsVersionInfo.js.map | 1 - .../lib/api/models/DownloadsVersionInfo.ts | 86 - .../DownloadsVersionInfoDnclientValue.js | 46 - .../DownloadsVersionInfoDnclientValue.js.map | 1 - .../DownloadsVersionInfoDnclientValue.ts | 73 - .../api/models/DownloadsVersionInfoLatest.js | 46 - .../models/DownloadsVersionInfoLatest.js.map | 1 - .../api/models/DownloadsVersionInfoLatest.ts | 73 - tfweb/src/lib/api/models/Event.js | 67 - tfweb/src/lib/api/models/Event.js.map | 1 - tfweb/src/lib/api/models/Event.ts | 104 - tfweb/src/lib/api/models/FirewallRule.js | 61 - tfweb/src/lib/api/models/FirewallRule.js.map | 1 - tfweb/src/lib/api/models/FirewallRule.ts | 110 - .../lib/api/models/FirewallRulePortRange.js | 48 - .../api/models/FirewallRulePortRange.js.map | 1 - .../lib/api/models/FirewallRulePortRange.ts | 75 - tfweb/src/lib/api/models/Host.js | 69 - tfweb/src/lib/api/models/Host.js.map | 1 - tfweb/src/lib/api/models/Host.ts | 168 -- .../HostAndEnrollCodeCreate200Response.js | 47 - .../HostAndEnrollCodeCreate200Response.js.map | 1 - .../HostAndEnrollCodeCreate200Response.ts | 80 - .../HostAndEnrollCodeCreate200ResponseData.js | 49 - ...tAndEnrollCodeCreate200ResponseData.js.map | 1 - .../HostAndEnrollCodeCreate200ResponseData.ts | 87 - ...CodeCreate200ResponseDataEnrollmentCode.js | 46 - ...Create200ResponseDataEnrollmentCode.js.map | 1 - ...CodeCreate200ResponseDataEnrollmentCode.ts | 73 - .../HostAndEnrollCodeCreate400Response.js | 45 - .../HostAndEnrollCodeCreate400Response.js.map | 1 - .../HostAndEnrollCodeCreate400Response.ts | 66 - .../lib/api/models/HostBlock200Response.js | 47 - .../api/models/HostBlock200Response.js.map | 1 - .../lib/api/models/HostBlock200Response.ts | 80 - .../api/models/HostBlock200ResponseData.js | 45 - .../models/HostBlock200ResponseData.js.map | 1 - .../api/models/HostBlock200ResponseData.ts | 72 - .../lib/api/models/HostCreate200Response.js | 47 - .../api/models/HostCreate200Response.js.map | 1 - .../lib/api/models/HostCreate200Response.ts | 80 - .../lib/api/models/HostCreate400Response.js | 44 - .../api/models/HostCreate400Response.js.map | 1 - .../lib/api/models/HostCreate400Response.ts | 65 - tfweb/src/lib/api/models/HostCreateRequest.js | 60 - .../lib/api/models/HostCreateRequest.js.map | 1 - tfweb/src/lib/api/models/HostCreateRequest.ts | 123 -- .../lib/api/models/HostDelete200Response.js | 46 - .../api/models/HostDelete200Response.js.map | 1 - .../lib/api/models/HostDelete200Response.ts | 73 - .../src/lib/api/models/HostEdit200Response.js | 47 - .../lib/api/models/HostEdit200Response.js.map | 1 - .../src/lib/api/models/HostEdit200Response.ts | 80 - tfweb/src/lib/api/models/HostEditRequest.js | 46 - .../src/lib/api/models/HostEditRequest.js.map | 1 - tfweb/src/lib/api/models/HostEditRequest.ts | 73 - .../models/HostEnrollCodeCreate200Response.js | 47 - .../HostEnrollCodeCreate200Response.js.map | 1 - .../models/HostEnrollCodeCreate200Response.ts | 80 - .../HostEnrollCodeCreate200ResponseData.js | 45 - ...HostEnrollCodeCreate200ResponseData.js.map | 1 - .../HostEnrollCodeCreate200ResponseData.ts | 72 - ...CodeCreate200ResponseDataEnrollmentCode.js | 46 - ...Create200ResponseDataEnrollmentCode.js.map | 1 - ...CodeCreate200ResponseDataEnrollmentCode.ts | 73 - .../src/lib/api/models/HostGet200Response.js | 47 - .../lib/api/models/HostGet200Response.js.map | 1 - .../src/lib/api/models/HostGet200Response.ts | 80 - tfweb/src/lib/api/models/HostMetadata.js | 58 - tfweb/src/lib/api/models/HostMetadata.js.map | 1 - tfweb/src/lib/api/models/HostMetadata.ts | 101 - .../lib/api/models/HostsList200Response.js | 48 - .../api/models/HostsList200Response.js.map | 1 - .../lib/api/models/HostsList200Response.ts | 86 - tfweb/src/lib/api/models/ModelError.js | 50 - tfweb/src/lib/api/models/ModelError.js.map | 1 - tfweb/src/lib/api/models/ModelError.ts | 83 - tfweb/src/lib/api/models/Network.js | 56 - tfweb/src/lib/api/models/Network.js.map | 1 - tfweb/src/lib/api/models/Network.ts | 113 - .../lib/api/models/NetworkGet200Response.js | 47 - .../api/models/NetworkGet200Response.js.map | 1 - .../lib/api/models/NetworkGet200Response.ts | 80 - .../lib/api/models/NetworksList200Response.js | 48 - .../api/models/NetworksList200Response.js.map | 1 - .../lib/api/models/NetworksList200Response.ts | 86 - .../src/lib/api/models/PaginationMetadata.js | 55 - .../lib/api/models/PaginationMetadata.js.map | 1 - .../src/lib/api/models/PaginationMetadata.ts | 112 - .../lib/api/models/PaginationMetadataPage.js | 48 - .../api/models/PaginationMetadataPage.js.map | 1 - .../lib/api/models/PaginationMetadataPage.ts | 75 - tfweb/src/lib/api/models/Role.js | 55 - tfweb/src/lib/api/models/Role.js.map | 1 - tfweb/src/lib/api/models/Role.ts | 112 - .../lib/api/models/RoleCreate200Response.js | 47 - .../api/models/RoleCreate200Response.js.map | 1 - .../lib/api/models/RoleCreate200Response.ts | 80 - tfweb/src/lib/api/models/RoleCreateRequest.js | 50 - .../lib/api/models/RoleCreateRequest.js.map | 1 - tfweb/src/lib/api/models/RoleCreateRequest.ts | 89 - tfweb/src/lib/api/models/RoleEditRequest.js | 47 - .../src/lib/api/models/RoleEditRequest.js.map | 1 - tfweb/src/lib/api/models/RoleEditRequest.ts | 80 - .../lib/api/models/RolesList200Response.js | 48 - .../api/models/RolesList200Response.js.map | 1 - .../lib/api/models/RolesList200Response.ts | 86 - tfweb/src/lib/api/models/Target.js | 58 - tfweb/src/lib/api/models/Target.js.map | 1 - tfweb/src/lib/api/models/Target.ts | 89 - tfweb/src/lib/api/models/index.js | 54 - tfweb/src/lib/api/models/index.js.map | 1 - tfweb/src/lib/api/models/index.ts | 53 - tfweb/src/lib/api/runtime.js | 323 --- tfweb/src/lib/api/runtime.js.map | 1 - tfweb/src/lib/api/runtime.ts | 425 ---- tfweb/src/lib/auth.js | 225 -- tfweb/src/lib/auth.js.map | 1 - tfweb/src/lib/auth.ts | 261 --- tfweb/src/lib/i18n/locales/en/2fa.json | 9 - tfweb/src/lib/i18n/locales/en/2fasetup.json | 13 - tfweb/src/lib/i18n/locales/en/common.json | 19 - tfweb/src/lib/i18n/locales/en/hosts.json | 51 - tfweb/src/lib/i18n/locales/en/itworks.json | 7 - tfweb/src/lib/i18n/locales/en/login.json | 17 - tfweb/src/lib/i18n/locales/en/ml.json | 8 - .../lib/i18n/locales/en/networkcreate.json | 12 - tfweb/src/lib/i18n/locales/en/roles.json | 79 - tfweb/src/lib/i18n/locales/en/signup.json | 18 - tfweb/src/lib/i18n/translations.ts | 61 - tfweb/src/lib/logger.js | 101 - tfweb/src/lib/logger.js.map | 1 - tfweb/src/lib/logger.ts | 124 -- tfweb/src/lib/netcreate.js | 33 - tfweb/src/lib/netcreate.js.map | 1 - tfweb/src/lib/netcreate.ts | 42 - tfweb/src/lib/stores/devmode.js | 3 - tfweb/src/lib/stores/devmode.js.map | 1 - tfweb/src/lib/stores/devmode.ts | 3 - tfweb/src/routes/+layout.svelte | 19 - tfweb/src/routes/+layout.ts | 21 - tfweb/src/routes/+page.svelte | 25 - tfweb/src/routes/2fa/+page.svelte | 101 - tfweb/src/routes/2fasetup/+page.svelte | 140 -- tfweb/src/routes/admin/+page.svelte | 76 - tfweb/src/routes/hosts/+page.svelte | 147 -- .../routes/hosts/[host_id]/block/+page.svelte | 136 -- .../hosts/[host_id]/delete/+page.svelte | 136 -- .../hosts/[host_id]/enroll/+page.svelte | 122 -- tfweb/src/routes/hosts/add/+page.svelte | 199 -- tfweb/src/routes/lighthouses/+page.svelte | 78 - tfweb/src/routes/login/+page.svelte | 107 - tfweb/src/routes/magic-link/+page.svelte | 54 - tfweb/src/routes/networkcreate/+page.svelte | 204 -- tfweb/src/routes/relays/+page.svelte | 78 - tfweb/src/routes/roles/+page.svelte | 131 -- .../roles/[role_id]/delete/+page.svelte | 137 -- .../routes/roles/[role_id]/edit/+page.svelte | 455 ---- tfweb/src/routes/roles/add/+page.svelte | 417 ---- tfweb/src/routes/signup/+page.svelte | 109 - tfweb/static/favicon.png | Bin 1571 -> 0 bytes tfweb/svelte.config.js | 21 - tfweb/tsconfig.json | 17 - tfweb/vite.config.js | 6 - tfweb/vite.config.js.map | 1 - tfweb/vite.config.ts | 6 - tfweb/yarn-error.log | 1951 ----------------- tfweb/yarn.lock | 1871 ---------------- trifid-api-derive/src/lib.rs | 1 + trifid-api/Cargo.toml | 3 +- trifid-api/src/ca.rs | 100 +- trifid-api/src/config.rs | 2 +- trifid-api/src/macros.rs | 1 + trifid-api/src/main.rs | 1 - trifid-api/src/models.rs | 86 +- trifid-api/src/routes/v1/mod.rs | 2 +- trifid-api/src/routes/v1/networks.rs | 95 +- trifid-pki/src/ca.rs | 4 +- trifid-pki/src/cert.rs | 4 +- 270 files changed, 389 insertions(+), 20171 deletions(-) delete mode 100644 tfweb/.eslintignore delete mode 100644 tfweb/.eslintrc.cjs delete mode 100644 tfweb/.gitignore delete mode 100644 tfweb/.npmrc delete mode 100644 tfweb/README.md delete mode 100644 tfweb/openapi.yaml delete mode 100644 tfweb/openapitools.json delete mode 100644 tfweb/package.json delete mode 100644 tfweb/src/app.d.ts delete mode 100644 tfweb/src/app.html delete mode 100644 tfweb/src/components/AdminLayout.svelte delete mode 100644 tfweb/src/components/LoadingWrapper.svelte delete mode 100644 tfweb/src/components/QrCode.svelte delete mode 100644 tfweb/src/components/Sidebar.svelte delete mode 100644 tfweb/src/lib/PersistentStore.js delete mode 100644 tfweb/src/lib/PersistentStore.js.map delete mode 100644 tfweb/src/lib/PersistentStore.ts delete mode 100644 tfweb/src/lib/Tooltips.js delete mode 100644 tfweb/src/lib/api/.openapi-generator-ignore delete mode 100644 tfweb/src/lib/api/.openapi-generator/FILES delete mode 100644 tfweb/src/lib/api/.openapi-generator/VERSION delete mode 100644 tfweb/src/lib/api/apis/AuditLogsApi.js delete mode 100644 tfweb/src/lib/api/apis/AuditLogsApi.js.map delete mode 100644 tfweb/src/lib/api/apis/AuditLogsApi.ts delete mode 100644 tfweb/src/lib/api/apis/DownloadsApi.js delete mode 100644 tfweb/src/lib/api/apis/DownloadsApi.js.map delete mode 100644 tfweb/src/lib/api/apis/DownloadsApi.ts delete mode 100644 tfweb/src/lib/api/apis/HostsApi.js delete mode 100644 tfweb/src/lib/api/apis/HostsApi.js.map delete mode 100644 tfweb/src/lib/api/apis/HostsApi.ts delete mode 100644 tfweb/src/lib/api/apis/NetworksApi.js delete mode 100644 tfweb/src/lib/api/apis/NetworksApi.js.map delete mode 100644 tfweb/src/lib/api/apis/NetworksApi.ts delete mode 100644 tfweb/src/lib/api/apis/RolesApi.js delete mode 100644 tfweb/src/lib/api/apis/RolesApi.js.map delete mode 100644 tfweb/src/lib/api/apis/RolesApi.ts delete mode 100644 tfweb/src/lib/api/apis/index.js delete mode 100644 tfweb/src/lib/api/apis/index.js.map delete mode 100644 tfweb/src/lib/api/apis/index.ts delete mode 100644 tfweb/src/lib/api/index.js delete mode 100644 tfweb/src/lib/api/index.js.map delete mode 100644 tfweb/src/lib/api/index.ts delete mode 100644 tfweb/src/lib/api/models/Actor.js delete mode 100644 tfweb/src/lib/api/models/Actor.js.map delete mode 100644 tfweb/src/lib/api/models/Actor.ts delete mode 100644 tfweb/src/lib/api/models/ActorAPIKey.js delete mode 100644 tfweb/src/lib/api/models/ActorAPIKey.js.map delete mode 100644 tfweb/src/lib/api/models/ActorAPIKey.ts delete mode 100644 tfweb/src/lib/api/models/ActorHost.js delete mode 100644 tfweb/src/lib/api/models/ActorHost.js.map delete mode 100644 tfweb/src/lib/api/models/ActorHost.ts delete mode 100644 tfweb/src/lib/api/models/ActorOIDCUser.js delete mode 100644 tfweb/src/lib/api/models/ActorOIDCUser.js.map delete mode 100644 tfweb/src/lib/api/models/ActorOIDCUser.ts delete mode 100644 tfweb/src/lib/api/models/ActorSupport.js delete mode 100644 tfweb/src/lib/api/models/ActorSupport.js.map delete mode 100644 tfweb/src/lib/api/models/ActorSupport.ts delete mode 100644 tfweb/src/lib/api/models/ActorSystem.js delete mode 100644 tfweb/src/lib/api/models/ActorSystem.js.map delete mode 100644 tfweb/src/lib/api/models/ActorSystem.ts delete mode 100644 tfweb/src/lib/api/models/ActorUser.js delete mode 100644 tfweb/src/lib/api/models/ActorUser.js.map delete mode 100644 tfweb/src/lib/api/models/ActorUser.ts delete mode 100644 tfweb/src/lib/api/models/AuditLog.js delete mode 100644 tfweb/src/lib/api/models/AuditLog.js.map delete mode 100644 tfweb/src/lib/api/models/AuditLog.ts delete mode 100644 tfweb/src/lib/api/models/AuditLogsList200Response.js delete mode 100644 tfweb/src/lib/api/models/AuditLogsList200Response.js.map delete mode 100644 tfweb/src/lib/api/models/AuditLogsList200Response.ts delete mode 100644 tfweb/src/lib/api/models/Downloads.js delete mode 100644 tfweb/src/lib/api/models/Downloads.js.map delete mode 100644 tfweb/src/lib/api/models/Downloads.ts delete mode 100644 tfweb/src/lib/api/models/DownloadsDNClientLinks.js delete mode 100644 tfweb/src/lib/api/models/DownloadsDNClientLinks.js.map delete mode 100644 tfweb/src/lib/api/models/DownloadsDNClientLinks.ts delete mode 100644 tfweb/src/lib/api/models/DownloadsDnclient.js delete mode 100644 tfweb/src/lib/api/models/DownloadsDnclient.js.map delete mode 100644 tfweb/src/lib/api/models/DownloadsDnclient.ts delete mode 100644 tfweb/src/lib/api/models/DownloadsList200Response.js delete mode 100644 tfweb/src/lib/api/models/DownloadsList200Response.js.map delete mode 100644 tfweb/src/lib/api/models/DownloadsList200Response.ts delete mode 100644 tfweb/src/lib/api/models/DownloadsMobile.js delete mode 100644 tfweb/src/lib/api/models/DownloadsMobile.js.map delete mode 100644 tfweb/src/lib/api/models/DownloadsMobile.ts delete mode 100644 tfweb/src/lib/api/models/DownloadsVersionInfo.js delete mode 100644 tfweb/src/lib/api/models/DownloadsVersionInfo.js.map delete mode 100644 tfweb/src/lib/api/models/DownloadsVersionInfo.ts delete mode 100644 tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.js delete mode 100644 tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.js.map delete mode 100644 tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.ts delete mode 100644 tfweb/src/lib/api/models/DownloadsVersionInfoLatest.js delete mode 100644 tfweb/src/lib/api/models/DownloadsVersionInfoLatest.js.map delete mode 100644 tfweb/src/lib/api/models/DownloadsVersionInfoLatest.ts delete mode 100644 tfweb/src/lib/api/models/Event.js delete mode 100644 tfweb/src/lib/api/models/Event.js.map delete mode 100644 tfweb/src/lib/api/models/Event.ts delete mode 100644 tfweb/src/lib/api/models/FirewallRule.js delete mode 100644 tfweb/src/lib/api/models/FirewallRule.js.map delete mode 100644 tfweb/src/lib/api/models/FirewallRule.ts delete mode 100644 tfweb/src/lib/api/models/FirewallRulePortRange.js delete mode 100644 tfweb/src/lib/api/models/FirewallRulePortRange.js.map delete mode 100644 tfweb/src/lib/api/models/FirewallRulePortRange.ts delete mode 100644 tfweb/src/lib/api/models/Host.js delete mode 100644 tfweb/src/lib/api/models/Host.js.map delete mode 100644 tfweb/src/lib/api/models/Host.ts delete mode 100644 tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.js delete mode 100644 tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.js.map delete mode 100644 tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.ts delete mode 100644 tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.js delete mode 100644 tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.js.map delete mode 100644 tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.ts delete mode 100644 tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js delete mode 100644 tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js.map delete mode 100644 tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.ts delete mode 100644 tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.js delete mode 100644 tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.js.map delete mode 100644 tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.ts delete mode 100644 tfweb/src/lib/api/models/HostBlock200Response.js delete mode 100644 tfweb/src/lib/api/models/HostBlock200Response.js.map delete mode 100644 tfweb/src/lib/api/models/HostBlock200Response.ts delete mode 100644 tfweb/src/lib/api/models/HostBlock200ResponseData.js delete mode 100644 tfweb/src/lib/api/models/HostBlock200ResponseData.js.map delete mode 100644 tfweb/src/lib/api/models/HostBlock200ResponseData.ts delete mode 100644 tfweb/src/lib/api/models/HostCreate200Response.js delete mode 100644 tfweb/src/lib/api/models/HostCreate200Response.js.map delete mode 100644 tfweb/src/lib/api/models/HostCreate200Response.ts delete mode 100644 tfweb/src/lib/api/models/HostCreate400Response.js delete mode 100644 tfweb/src/lib/api/models/HostCreate400Response.js.map delete mode 100644 tfweb/src/lib/api/models/HostCreate400Response.ts delete mode 100644 tfweb/src/lib/api/models/HostCreateRequest.js delete mode 100644 tfweb/src/lib/api/models/HostCreateRequest.js.map delete mode 100644 tfweb/src/lib/api/models/HostCreateRequest.ts delete mode 100644 tfweb/src/lib/api/models/HostDelete200Response.js delete mode 100644 tfweb/src/lib/api/models/HostDelete200Response.js.map delete mode 100644 tfweb/src/lib/api/models/HostDelete200Response.ts delete mode 100644 tfweb/src/lib/api/models/HostEdit200Response.js delete mode 100644 tfweb/src/lib/api/models/HostEdit200Response.js.map delete mode 100644 tfweb/src/lib/api/models/HostEdit200Response.ts delete mode 100644 tfweb/src/lib/api/models/HostEditRequest.js delete mode 100644 tfweb/src/lib/api/models/HostEditRequest.js.map delete mode 100644 tfweb/src/lib/api/models/HostEditRequest.ts delete mode 100644 tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.js delete mode 100644 tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.js.map delete mode 100644 tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.ts delete mode 100644 tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.js delete mode 100644 tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.js.map delete mode 100644 tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.ts delete mode 100644 tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.js delete mode 100644 tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.js.map delete mode 100644 tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.ts delete mode 100644 tfweb/src/lib/api/models/HostGet200Response.js delete mode 100644 tfweb/src/lib/api/models/HostGet200Response.js.map delete mode 100644 tfweb/src/lib/api/models/HostGet200Response.ts delete mode 100644 tfweb/src/lib/api/models/HostMetadata.js delete mode 100644 tfweb/src/lib/api/models/HostMetadata.js.map delete mode 100644 tfweb/src/lib/api/models/HostMetadata.ts delete mode 100644 tfweb/src/lib/api/models/HostsList200Response.js delete mode 100644 tfweb/src/lib/api/models/HostsList200Response.js.map delete mode 100644 tfweb/src/lib/api/models/HostsList200Response.ts delete mode 100644 tfweb/src/lib/api/models/ModelError.js delete mode 100644 tfweb/src/lib/api/models/ModelError.js.map delete mode 100644 tfweb/src/lib/api/models/ModelError.ts delete mode 100644 tfweb/src/lib/api/models/Network.js delete mode 100644 tfweb/src/lib/api/models/Network.js.map delete mode 100644 tfweb/src/lib/api/models/Network.ts delete mode 100644 tfweb/src/lib/api/models/NetworkGet200Response.js delete mode 100644 tfweb/src/lib/api/models/NetworkGet200Response.js.map delete mode 100644 tfweb/src/lib/api/models/NetworkGet200Response.ts delete mode 100644 tfweb/src/lib/api/models/NetworksList200Response.js delete mode 100644 tfweb/src/lib/api/models/NetworksList200Response.js.map delete mode 100644 tfweb/src/lib/api/models/NetworksList200Response.ts delete mode 100644 tfweb/src/lib/api/models/PaginationMetadata.js delete mode 100644 tfweb/src/lib/api/models/PaginationMetadata.js.map delete mode 100644 tfweb/src/lib/api/models/PaginationMetadata.ts delete mode 100644 tfweb/src/lib/api/models/PaginationMetadataPage.js delete mode 100644 tfweb/src/lib/api/models/PaginationMetadataPage.js.map delete mode 100644 tfweb/src/lib/api/models/PaginationMetadataPage.ts delete mode 100644 tfweb/src/lib/api/models/Role.js delete mode 100644 tfweb/src/lib/api/models/Role.js.map delete mode 100644 tfweb/src/lib/api/models/Role.ts delete mode 100644 tfweb/src/lib/api/models/RoleCreate200Response.js delete mode 100644 tfweb/src/lib/api/models/RoleCreate200Response.js.map delete mode 100644 tfweb/src/lib/api/models/RoleCreate200Response.ts delete mode 100644 tfweb/src/lib/api/models/RoleCreateRequest.js delete mode 100644 tfweb/src/lib/api/models/RoleCreateRequest.js.map delete mode 100644 tfweb/src/lib/api/models/RoleCreateRequest.ts delete mode 100644 tfweb/src/lib/api/models/RoleEditRequest.js delete mode 100644 tfweb/src/lib/api/models/RoleEditRequest.js.map delete mode 100644 tfweb/src/lib/api/models/RoleEditRequest.ts delete mode 100644 tfweb/src/lib/api/models/RolesList200Response.js delete mode 100644 tfweb/src/lib/api/models/RolesList200Response.js.map delete mode 100644 tfweb/src/lib/api/models/RolesList200Response.ts delete mode 100644 tfweb/src/lib/api/models/Target.js delete mode 100644 tfweb/src/lib/api/models/Target.js.map delete mode 100644 tfweb/src/lib/api/models/Target.ts delete mode 100644 tfweb/src/lib/api/models/index.js delete mode 100644 tfweb/src/lib/api/models/index.js.map delete mode 100644 tfweb/src/lib/api/models/index.ts delete mode 100644 tfweb/src/lib/api/runtime.js delete mode 100644 tfweb/src/lib/api/runtime.js.map delete mode 100644 tfweb/src/lib/api/runtime.ts delete mode 100644 tfweb/src/lib/auth.js delete mode 100644 tfweb/src/lib/auth.js.map delete mode 100644 tfweb/src/lib/auth.ts delete mode 100644 tfweb/src/lib/i18n/locales/en/2fa.json delete mode 100644 tfweb/src/lib/i18n/locales/en/2fasetup.json delete mode 100644 tfweb/src/lib/i18n/locales/en/common.json delete mode 100644 tfweb/src/lib/i18n/locales/en/hosts.json delete mode 100644 tfweb/src/lib/i18n/locales/en/itworks.json delete mode 100644 tfweb/src/lib/i18n/locales/en/login.json delete mode 100644 tfweb/src/lib/i18n/locales/en/ml.json delete mode 100644 tfweb/src/lib/i18n/locales/en/networkcreate.json delete mode 100644 tfweb/src/lib/i18n/locales/en/roles.json delete mode 100644 tfweb/src/lib/i18n/locales/en/signup.json delete mode 100644 tfweb/src/lib/i18n/translations.ts delete mode 100644 tfweb/src/lib/logger.js delete mode 100644 tfweb/src/lib/logger.js.map delete mode 100644 tfweb/src/lib/logger.ts delete mode 100644 tfweb/src/lib/netcreate.js delete mode 100644 tfweb/src/lib/netcreate.js.map delete mode 100644 tfweb/src/lib/netcreate.ts delete mode 100644 tfweb/src/lib/stores/devmode.js delete mode 100644 tfweb/src/lib/stores/devmode.js.map delete mode 100644 tfweb/src/lib/stores/devmode.ts delete mode 100644 tfweb/src/routes/+layout.svelte delete mode 100644 tfweb/src/routes/+layout.ts delete mode 100644 tfweb/src/routes/+page.svelte delete mode 100644 tfweb/src/routes/2fa/+page.svelte delete mode 100644 tfweb/src/routes/2fasetup/+page.svelte delete mode 100644 tfweb/src/routes/admin/+page.svelte delete mode 100644 tfweb/src/routes/hosts/+page.svelte delete mode 100644 tfweb/src/routes/hosts/[host_id]/block/+page.svelte delete mode 100644 tfweb/src/routes/hosts/[host_id]/delete/+page.svelte delete mode 100644 tfweb/src/routes/hosts/[host_id]/enroll/+page.svelte delete mode 100644 tfweb/src/routes/hosts/add/+page.svelte delete mode 100644 tfweb/src/routes/lighthouses/+page.svelte delete mode 100644 tfweb/src/routes/login/+page.svelte delete mode 100644 tfweb/src/routes/magic-link/+page.svelte delete mode 100644 tfweb/src/routes/networkcreate/+page.svelte delete mode 100644 tfweb/src/routes/relays/+page.svelte delete mode 100644 tfweb/src/routes/roles/+page.svelte delete mode 100644 tfweb/src/routes/roles/[role_id]/delete/+page.svelte delete mode 100644 tfweb/src/routes/roles/[role_id]/edit/+page.svelte delete mode 100644 tfweb/src/routes/roles/add/+page.svelte delete mode 100644 tfweb/src/routes/signup/+page.svelte delete mode 100644 tfweb/static/favicon.png delete mode 100644 tfweb/svelte.config.js delete mode 100644 tfweb/tsconfig.json delete mode 100644 tfweb/vite.config.js delete mode 100644 tfweb/vite.config.js.map delete mode 100644 tfweb/vite.config.ts delete mode 100644 tfweb/yarn-error.log delete mode 100644 tfweb/yarn.lock diff --git a/Cargo.lock b/Cargo.lock index 79cdf22..ca9393c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3081,6 +3081,7 @@ dependencies = [ "actix-web", "bb8", "chacha20poly1305", + "chrono", "diesel", "diesel-async", "diesel_migrations", 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/tfweb/.eslintignore b/tfweb/.eslintignore deleted file mode 100644 index 3897265..0000000 --- a/tfweb/.eslintignore +++ /dev/null @@ -1,13 +0,0 @@ -.DS_Store -node_modules -/build -/.svelte-kit -/package -.env -.env.* -!.env.example - -# Ignore files for PNPM, NPM and YARN -pnpm-lock.yaml -package-lock.json -yarn.lock diff --git a/tfweb/.eslintrc.cjs b/tfweb/.eslintrc.cjs deleted file mode 100644 index 9586e74..0000000 --- a/tfweb/.eslintrc.cjs +++ /dev/null @@ -1,29 +0,0 @@ -module.exports = { - root: true, - extends: [ - 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:svelte/recommended' - ], - parser: '@typescript-eslint/parser', - plugins: ['@typescript-eslint'], - parserOptions: { - sourceType: 'module', - ecmaVersion: 2020, - extraFileExtensions: ['.svelte'] - }, - env: { - browser: true, - es2017: true, - node: true - }, - overrides: [ - { - files: ['*.svelte'], - parser: 'svelte-eslint-parser', - parserOptions: { - parser: '@typescript-eslint/parser' - } - } - ] -}; diff --git a/tfweb/.gitignore b/tfweb/.gitignore deleted file mode 100644 index f4a1c10..0000000 --- a/tfweb/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -.DS_Store -node_modules -/build -/.svelte-kit -/package -.env -.env.* -!.env.example -vite.config.js.timestamp-* -vite.config.ts.timestamp-* -.idea diff --git a/tfweb/.npmrc b/tfweb/.npmrc deleted file mode 100644 index 0c05da4..0000000 --- a/tfweb/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -engine-strict=true -resolution-mode=highest diff --git a/tfweb/README.md b/tfweb/README.md deleted file mode 100644 index 5c91169..0000000 --- a/tfweb/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# create-svelte - -Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte). - -## Creating a project - -If you're seeing this, you've probably already done this step. Congrats! - -```bash -# create a new project in the current directory -npm create svelte@latest - -# create a new project in my-app -npm create svelte@latest my-app -``` - -## Developing - -Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: - -```bash -npm run dev - -# or start the server and open the app in a new browser tab -npm run dev -- --open -``` - -## Building - -To create a production version of your app: - -```bash -npm run build -``` - -You can preview the production build with `npm run preview`. - -> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. 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 deleted file mode 100644 index 4cad20e..0000000 --- a/tfweb/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "tfweb", - "version": "0.0.1", - "private": true, - "scripts": { - "dev": "vite dev", - "build": "vite build", - "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 ." - }, - "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", - "eslint": "^8.28.0", - "eslint-plugin-svelte": "^2.26.0", - "svelte": "^3.54.0", - "svelte-check": "^3.0.1", - "tslib": "^2.4.1", - "typescript": "^5.0.0", - "vite": "^4.3.0" - }, - "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" - } -} diff --git a/tfweb/src/app.d.ts b/tfweb/src/app.d.ts deleted file mode 100644 index f59b884..0000000 --- a/tfweb/src/app.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// See https://kit.svelte.dev/docs/types#app -// for information about these interfaces -declare global { - namespace App { - // interface Error {} - // interface Locals {} - // interface PageData {} - // interface Platform {} - } -} - -export {}; diff --git a/tfweb/src/app.html b/tfweb/src/app.html deleted file mode 100644 index b0cc593..0000000 --- a/tfweb/src/app.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - %sveltekit.head% - - - %sveltekit.body% - - 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,CAAC,aAAa,CAAC;SACtE;QAED,IAAI,iBAAiB,CAAC,MAAM,KAAK,SAAS,EAAE;YACxC,eAAe,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC;SACxD;QAED,IAAI,iBAAiB,CAAC,QAAQ,KAAK,SAAS,EAAE;YAC1C,eAAe,CAAC,UAAU,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC;SAC5D;QAED,IAAI,iBAAiB,CAAC,cAAc,KAAK,SAAS,EAAE;YAChD,eAAe,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,CAAC,cAAc,CAAC;SACzE;QAED,IAAI,iBAAiB,CAAC,gBAAgB,KAAK,SAAS,EAAE;YAClD,eAAe,CAAC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i.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","sourceRoot":"","sources":["DownloadsApi.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;AAEnB;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,OAAO,CAAC,OAAO;IAE7C;;;OAGG;IACH,KAAK,CAAC,gBAAgB,CAAC,aAA0D;QAC7E,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;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,eAAe;YACrB,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,gCAAgC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC7G,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,aAA0D;QAC1E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC5D,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ"} \ No newline at end of file diff --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,6B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ACJ;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,WAAW;YACjB,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,4BAA4B,CAAC,SAAS,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,SAAS,CAAC,oBAAsC,EAAE,EAAE,aAA0D;QAChH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC3E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACjD,IAAI,EAAE,MAAM;CACN,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG;IAC/C,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACN,CAAC"} \ No 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;AAK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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,EAC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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,WAAW;YACjB,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,4BAA4B,CAAC,SAAS,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,SAAS,CAAC,oBAAsC,EAAE,EAAE,aAA0D;QAChH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC3E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ"} \ No newline at end of file diff --git a/tfweb/src/lib/api/apis/RolesApi.ts b/tfweb/src/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,eAAe,CAAC;AAEvB,OAAO,EACH,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,GAClB,MAAM,aAAa,CAAC;AAErB,OAAO,EACH,uBAAuB,EACvB,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACH,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,GACrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACH,qBAAqB,EACrB,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,GACpB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACH,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe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9B,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":["Act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AAK,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..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AAC;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,EAClB,WAAW,GACd,MAAM,SAAS,CAAC;AAEjB,OAAO,EACH,aAAa,EACb,kBAAkB,EAClB,WAAW,GACd,MAAM,SAAS,CAAC;AAEjB,OAAO,EACH,cAAc,EACd,mBAAmB,EACnB,YAAY,GACf,MAAM,UAAU,CAAC;AA8ClB;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAa;IAC5C,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,IAAS,EAAE,m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d,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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C,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,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,yBAAyB,EACzB,8BAA8B,EAC9B,uBAAuB,GAC1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,uBAAuB,EACvB,4BAA4B,EAC5B,qBAAqB,GACxB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACH,4BAA4B,EAC5B,iCAAiC,EACjC,0BAA0B,GAC7B,MAAM,wBAAwB,CAAC;AA4BhC;;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,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,yBAAyB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC/F,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvF,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,4BAA4B,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KAC9G,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,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":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA8C/C;;GAEG;AACH,MAAM,UAAU,gCAAgC,CAAC,KAAa;IAC1D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,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,CAA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BAAiB;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,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,yCAAyC,EACzC,8CAA8C,EAC9C,uCAAuC,GAC1C,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACH,kCAAkC,EAClC,uCAAuC,EACvC,gCAAgC,GACnC,MAAM,8BAA8B,CAAC;AAsBtC;;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,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,yCAAyC,CAAC,CAAC;QAC5H,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,kCAAkC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACrG,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,UAAU,EAAE,KAAK,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,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,EAAE,MAAM,YAAY,CAAC;AA4B/C;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,gBAAgB;IAC/B,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,iBAAiB,EAAE,qBAAqB;IACxC,YAAY,EAAE,gBAAgB;IAC9B,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,gBAAgB;IAC/B,YAAY,EAAE,eAAe;CACvB,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,KAAa;IACzC,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAS,EAAE,mBAA4B;IACtE,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,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9D,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,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,6BAA6B,EAC7B,kCAAkC,EAClC,2BAA2B,GAC9B,MAAM,yBAAyB,CAAC;AAmCjC;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACN,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAa;IAChD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,UAAU,IAAI,KAAK,CAAC;IAE/C,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,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAC5B,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,IAAI,CAAC,eAAe,CAAC;QACnF,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,6BAA6B,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;KACzG,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,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","sourceRoot":"","sources":["Host.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;AAwFxB;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,KAAa;IACxC,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAS;IAClC,OAAO,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1C,C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,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,M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AC,CAAC,IAAI,CAAC,cAAc,CAAC;QAChF,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,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,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,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;KAC3B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostCreateRequest.ts b/tfweb/src/lib/api/models/HostCreateRequest.ts deleted file mode 100644 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 +++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AE,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;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAkC/C;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,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,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;QAC1E,SAAS,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;QACjE,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACpE,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,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,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;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAmD/C;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAa;IAC3C,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAS,EAAE,mBAA4B;IACxE,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,O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,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.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;AAsBnB;;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,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzE,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,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC;QACjC,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/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,GAC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response.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,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,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,C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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":"Role.js","sourceRoot":"","sources":["Role.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;AA8CxB;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,KAAa;IACxC,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAS;IAClC,OAAO,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AA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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","s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f;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,kBAAkB,GACrB,MAAM,gBAAgB,CAAC;AAsBxB;;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,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,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,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/RoleEditRequest.ts b/tfweb/src/lib/api/models/RoleEditRequest.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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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/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GAAH,GAAG,CAAU;QAAU,gBAAW,GAAX,WAAW,CAAwD;IAAG,CAAC;IAEjH,KAAK,CAAC,KAAK;QACP,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IACnD,CAAC;CACJ;AAED,MAAM,OAAO,eAAe;IACL;IAAnB,YAAmB,GAAa;QAAb,QAAG,GAAH,GAAG,CAAU;IAAG,CAAC;IAEpC,KAAK,CAAC,KAAK;QACP,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AAED,MAAM,OAAO,eAAe;IACL;IAAnB,YAAmB,GAAa;QAAb,QAAG,GAAH,GAAG,CAAU;IAAG,CAAC;IAEpC,KAAK,CAAC,KAAK;QACP,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACjC,CAAC;IAAA,CAAC;CACL;AAED,MAAM,OAAO,eAAe;IACL;IAAnB,YAAmB,GAAa;QAAb,QAAG,GAAH,GAAG,CAAU;IAAG,CAAC;IAEpC,KAAK,CAAC,KAAK;QACP,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACjC,CAAC;IAAA,CAAC;CACL"} \ No newline at end of file diff --git a/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 2f724b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ACP,cAAc,EAAE,kBAAkB;gBAClC,eAAe,EAAE,UAAU,KAAK,EAAE;aACrC;SACJ,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;YACzC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACzD,MAAM,CAAC,KAAK,CAAC,8BAA8B,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;YAC/D,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,EAAC,CAAC,CAAC;SAC/E;QAED,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAEjF,OAAO,CAAC,SAAS,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;KAC3C;IAAC,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,KAAK,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/i18n/locales/en/2fa.json b/tfweb/src/lib/i18n/locales/en/2fa.json deleted file mode 100644 index 26da737..0000000 --- a/tfweb/src/lib/i18n/locales/en/2fa.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "title": "Authenticate with TOTP", - "subtitle": "Enter the 6-digit code displayed in your authenticator app", - "label": "TOTP Code", - "button": "Verify", - "error": { - "ERR_UNAUTHORIZED": "Invalid 2FA code" - } -} \ No newline at end of file diff --git a/tfweb/src/lib/i18n/locales/en/2fasetup.json b/tfweb/src/lib/i18n/locales/en/2fasetup.json deleted file mode 100644 index 941f1c5..0000000 --- a/tfweb/src/lib/i18n/locales/en/2fasetup.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "title": "Configure two-factor authentication", - "body": "Trifid requires all accounts to use TOTP two-factor authentication to help ensure the security of your network.", - "scan": "Scan this QR code with an authenticator app, like Authy or Google Authenticator.", - "code": "Or, enter the TOTP secret below into an authenticator app.", - "verify": "Verify by entering the 6-digit code shown in your authenticator into the box below.", - "button": "Enable 2FA", - "error": { - "generic": "Unable to enable 2fa: {{err}}", - "api": "Unable to contact the server. Try again later.", - "ERR_UNAUTHORIZED": "Incorrect 2FA code" - } -} diff --git a/tfweb/src/lib/i18n/locales/en/common.json b/tfweb/src/lib/i18n/locales/en/common.json deleted file mode 100644 index 1d4c724..0000000 --- a/tfweb/src/lib/i18n/locales/en/common.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "{{title}} | Trifid Web UI", - "page": { - "itworks": "It Works!", - "admin": "Admin Panel", - "login": "Login", - "ml": "Verify Magic Link", - "2fasetup": "Configure TOTP", - "2fa": "2-Factor Authentication", - "networkcreate": "Create Network", - "hosts": "Hosts", - "roles": "Roles", - "lighthouses": "Lighthouses", - "relays": "Relays", - "addhost": "Add Host" - }, - "logout": "Log out", - "loading": "Dashboard is loading" -} diff --git a/tfweb/src/lib/i18n/locales/en/hosts.json b/tfweb/src/lib/i18n/locales/en/hosts.json deleted file mode 100644 index 8897e3e..0000000 --- a/tfweb/src/lib/i18n/locales/en/hosts.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "Name", - "role": "Role", - "lastseen": "Last Seen", - "actions": "Actions", - "ipaddr": "IP Address", - "edit": "Edit", - "enrollbtn": "Enroll", - "deletehost": "Delete", - "blockhost": "Block", - "config": "Configuration", - "add": "Add", - "create": { - "name": "Host name", - "btn": "Add host", - "cancel": "Cancel", - "role": "Role", - "ip": "IP Address", - "error": { - "needsname": "Host name is required.", - "needsrole": "Role is required.", - "invalidip": "Invalid IP address", - "ERR_DUPLICATE_VALUE": "IP address already in use" - } - }, - "enroll": { - "title": "Enrolling host {{host}}", - "explainer": "Enrolling this host will allow it to communicate on your network. You'll need to have compatible client software installed first.", - "done": "Done, return me to the hosts page", - "cancel": "Nevermind", - "code": "Input {code} as your enrollment code into any trifid-compatible client software to enroll. It will expire in {{expires}} minutes." - }, - "delete": { - "title": "Are you sure you want to delete the host {{host}}?", - "explainer": "This action cannot be undone. This host will still be able to connect to the network unless you block it first.", - "confirm": "I'm sure", - "cancel": "Nevermind", - "error": { - "ERR_DB_ERROR": "Removal failed" - } - }, - "block": { - "title": "Are you sure you want to block the host {{host}}?", - "explainer": "The host will not be able to connect to the network once it is blocked. Re-enroll this host to unblock it.", - "confirm": "I'm sure", - "cancel": "Nevermind", - "error": { - "ERR_DB_ERROR": "Block failed" - } - } -} diff --git a/tfweb/src/lib/i18n/locales/en/itworks.json b/tfweb/src/lib/i18n/locales/en/itworks.json deleted file mode 100644 index 0f288e9..0000000 --- a/tfweb/src/lib/i18n/locales/en/itworks.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "header": "It works!", - "body": "If you're seeing this page, tfweb is installed and (probably) correctly configured.", - "linkbody": "Perhaps you meant to visit the {{link0}} or {{link1}}?", - "linkbody.link0": "admin panel", - "linkbody.link1": "create an account" -} diff --git a/tfweb/src/lib/i18n/locales/en/login.json b/tfweb/src/lib/i18n/locales/en/login.json deleted file mode 100644 index b3d8c01..0000000 --- a/tfweb/src/lib/i18n/locales/en/login.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "title": "Log in to your account", - "subtitle": "We'll send you an email with a \"magic link\".", - "label": "What is your email?", - "button": "Log in", - "email": "Check your email", - "emailbody": "We sent you an email with a link to complete logging in.", - "emailbody2": "Didn't work? Check your junk inbox or click {{link0}} to try again.", - "emailbody2.link0": "here", - "error": { - "invalidEmail": "That email address isn't valid. Try again.", - "generic": "There was an error logging you in. Try again or contact support with the error code {{err}}", - "usermissing": "That user does not exist." - }, - "need": "Don't have an account? {{link0}}", - "need.link0": "Signup" -} diff --git a/tfweb/src/lib/i18n/locales/en/ml.json b/tfweb/src/lib/i18n/locales/en/ml.json deleted file mode 100644 index 915384b..0000000 --- a/tfweb/src/lib/i18n/locales/en/ml.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "header": "Authenticated!", - "body": "Redirecting to admin page...", - "error": { - "notoken": "magic link token missing", - "badtoken": "token is invalid or has expired" - } -} \ No newline at end of file diff --git a/tfweb/src/lib/i18n/locales/en/networkcreate.json b/tfweb/src/lib/i18n/locales/en/networkcreate.json deleted file mode 100644 index 5268d80..0000000 --- a/tfweb/src/lib/i18n/locales/en/networkcreate.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Create your network", - "explain": "This defines what IP addresses will be assigned to your devices. The range you enter below must fall within either the RFC 1918 Private Address Space or the RFC 6598 Shared Address Space. Enter your network via CIDR notation.", - "label": "Network range", - "button": "Create network", - "valid": "Valid - {{numIps:number}} addresses ({{start}} to {{end}})", - "invalid": "Invalid", - "error": { - "generic": "Unable to create network: {{err}}", - "api": "Unable to contact the server. Try again later." - } -} diff --git a/tfweb/src/lib/i18n/locales/en/roles.json b/tfweb/src/lib/i18n/locales/en/roles.json deleted file mode 100644 index 4096c34..0000000 --- a/tfweb/src/lib/i18n/locales/en/roles.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "delete": { - "title": "Are you sure you want to delete the role {{rule}}?", - "explainer": "This action cannot be undone. This role must be removed from all hosts, lighthouses, and relays prior to deleting it.", - "confirm": "I'm sure", - "cancel": "Nevermind", - "error": { - "ERR_DB_ERROR": "Removal failed (role was probably still attached to a host)" - } - }, - "create": "Add", - "explain": "Roles control how hosts, lighthouses, and relays communicate through firewall rules.", - "noroles": "You don't have any roles. You'll need to add at least one before you can add any hosts.", - "name": "Name", - "rules": "Rule count", - "description": "Description", - "actions": "Actions", - "editrole": "Edit", - "deleterole": "Delete", - "add": { - "title": "Create Role", - "any": "Any", - "name": "Role name", - "desc": "Role description", - "button": "Create role", - "cancel": "Cancel", - "rules": "Inbound firewall rules", - "rulesexplainer": "Inbound traffic is denied by default. Add rules to allow traffic from hosts belonging to specific roles.", - "rulescols": { - "description": "Description", - "protocol": "Protocol", - "portrange": "Port range", - "allowedrole": "Allowed role", - "actions": "Actions" - }, - "rulesadd": "Add rule", - "editrule": { - "protocol": "Protocol", - "range": "Port or port range", - "role": "Allowed role", - "desc": "Description", - "add": "Add rule", - "edit": "Save edit", - "cancel": "Cancel" - }, - "error": { - "needsname": "Role Name is required" - } - }, - "edit": { - "title": "Editing role {{rule}}", - "any": "Any", - "name": "Role name", - "desc": "Role description", - "button": "Save", - "cancel": "Cancel", - "rules": "Inbound firewall rules", - "rulesexplainer": "Inbound traffic is denied by default. Add rules to allow traffic from hosts belonging to specific roles.", - "rulescols": { - "description": "Description", - "protocol": "Protocol", - "portrange": "Port range", - "allowedrole": "Allowed role", - "actions": "Actions" - }, - "ruleremove": "Remove rule", - "ruleedit": "Edit rule", - "rulesadd": "Add rule", - "editrule": { - "protocol": "Protocol", - "range": "Port or port range", - "role": "Allowed role", - "desc": "Description", - "add": "Add rule", - "edit": "Save edit", - "cancel": "Cancel" - } - } -} diff --git a/tfweb/src/lib/i18n/locales/en/signup.json b/tfweb/src/lib/i18n/locales/en/signup.json deleted file mode 100644 index bc60369..0000000 --- a/tfweb/src/lib/i18n/locales/en/signup.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "Create an account", - "subtitle": "We'll send you an email with a \"magic link\"", - "label": "What is your email?", - "button": "Create account", - "email": "Check your email", - "emailbody": "We sent you an email with a link to complete signing up.", - "emailbody2": "Didn't work? Check your junk inbox or click {{link0}} to try again.", - "emailbody2.link0": "here", - "error": { - "invalidEmail": "That email address isn't valid. Try again.", - "generic": "There was an error logging you in. Try again or contact support with the error code {{err}}", - "userexists": "That user already exists. Try {{link0}}?", - "userexists.link0": "logging in" - }, - "already": "Already have an account? {{link0}}", - "already.link0": "Login" -} diff --git a/tfweb/src/lib/i18n/translations.ts b/tfweb/src/lib/i18n/translations.ts deleted file mode 100644 index 5ebf6aa..0000000 --- a/tfweb/src/lib/i18n/translations.ts +++ /dev/null @@ -1,61 +0,0 @@ -import i18n from 'sveltekit-i18n'; -import type {Config} from 'sveltekit-i18n' - -const config: Config = ({ - loaders: [ - // ENGLISH // - { - locale: 'en', - key: '2fa', - loader: async () => (await import('./locales/en/2fa.json')).default - }, - { - locale: 'en', - key: '2fasetup', - loader: async () => (await import('./locales/en/2fasetup.json')).default - }, - { - locale: 'en', - key: 'common', - loader: async () => (await import('./locales/en/common.json')).default - }, - { - locale: 'en', - key: 'hosts', - loader: async () => (await import('./locales/en/hosts.json')).default - }, - { - locale: 'en', - key: 'itworks', - loader: async () => (await import('./locales/en/itworks.json')).default - }, - { - locale: 'en', - key: 'login', - loader: async () => (await import('./locales/en/login.json')).default - }, - { - locale: 'en', - key: 'ml', - loader: async () => (await import('./locales/en/ml.json')).default - }, - { - locale: 'en', - key: 'networkcreate', - loader: async () => (await import('./locales/en/networkcreate.json')).default - }, - { - locale: 'en', - key: 'roles', - loader: async () => (await import('./locales/en/roles.json')).default - }, - { - locale: 'en', - key: 'signup', - loader: async () => (await import('./locales/en/signup.json')).default - }, - // END ENGLISH // - ] -}) - -export const { t, locale, locales, loading, loadTranslations } = new i18n(config); diff --git a/tfweb/src/lib/logger.js b/tfweb/src/lib/logger.js deleted file mode 100644 index d906cfc..0000000 --- a/tfweb/src/lib/logger.js +++ /dev/null @@ -1,101 +0,0 @@ -// LOG LEVELS: -// 0: Fatal -// 1: Error -// 2: Warn -// 3: Info -// 4: Debug -// Logs are written in-memory and logged to console if logLevel > showLogLevel -let loglevel = 0; -export const LEVEL_FATAL = 0; -export const LEVEL_ERROR = 1; -export const LEVEL_WARN = 2; -export const LEVEL_INFO = 3; -export const LEVEL_DEBUG = 4; -const debugLog = []; -let timestampStart; -let deltaTimestamp; -let logger; -let loggerSetup = false; -export function logSetup() { - if (loggerSetup) - return; - loggerSetup = true; - timestampStart = Date.now(); - deltaTimestamp = Date.now(); - logger = new Logger("Logger.ts"); - consoleLogLevel(LEVEL_INFO); - logger.info("Logger setup complete"); -} -export function logDeltaReset() { - timestampStart = Date.now(); - deltaTimestamp = Date.now(); - logger.info("delta reset"); -} -function log(level, module, message) { - const log = { - level: level, - module: module, - message: message, - timestamp: Date.now(), - deltaStart: Date.now() - timestampStart, - deltaLast: Date.now() - deltaTimestamp - }; - deltaTimestamp = Date.now(); - debugLog.push(log); - consoleLogHandler(log); -} -function consoleLogHandler(log) { - if (import.meta.env.SSR) - return; // no logging in ssr - if (log.level <= loglevel) { - let textstyle = ""; - switch (log.level) { - case 0: - textstyle = "color:red;font-weight:bold;"; - break; - case 1: - textstyle = "color:red;"; - break; - case 2: - textstyle = "color:yellow;"; - break; - case 3: - textstyle = ""; - break; - case 4: - textstyle = "color:gray;"; - break; - } - console.log(`%c${new Date(log.timestamp).toISOString()} ${(log.deltaStart / 1000).toFixed(3)}Σ ${(log.deltaLast / 1000).toFixed(3)}Δ\n%c[${log.module}]%c ${log.message}`, "color:gray", "color:#8c188c", textstyle); - } -} -export function consoleLogLevel(level) { - loglevel = level; -} -export function consoleLogDump() { - for (let i = 0; i < debugLog.length; i++) { - consoleLogHandler(debugLog[i]); - } -} -export class Logger { - name; - constructor(name) { - this.name = name; - } - fatal(message) { - log(LEVEL_FATAL, this.name, message); - } - error(message) { - log(LEVEL_ERROR, this.name, message); - } - warn(message) { - log(LEVEL_WARN, this.name, message); - } - info(message) { - log(LEVEL_INFO, this.name, message); - } - debug(message) { - log(LEVEL_DEBUG, this.name, message); - } -} -//# sourceMappingURL=logger.js.map \ No newline at end of file diff --git a/tfweb/src/lib/logger.js.map b/tfweb/src/lib/logger.js.map deleted file mode 100644 index 2e3a620..0000000 --- a/tfweb/src/lib/logger.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logger.js","sourceRoot":"","sources":["logger.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,WAAW;AACX,WAAW;AACX,UAAU;AACV,UAAU;AACV,WAAW;AACX,8EAA8E;AAC9E,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC;AAC7B,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC;AAC7B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC;AAC5B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC;AAC5B,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAA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d,GAAG,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACxC,CAAC;IAED,KAAK,CAAC,OAAY;QACd,GAAG,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,CAAC,OAAY;QACb,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACvC,CAAC;IAED,IAAI,CAAC,OAAY;QACb,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACvC,CAAC;IAED,KAAK,CAAC,OAAY;QACd,GAAG,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACxC,CAAC;CACJ"} \ No newline at end of file diff --git a/tfweb/src/lib/logger.ts b/tfweb/src/lib/logger.ts deleted file mode 100644 index a5f1987..0000000 --- a/tfweb/src/lib/logger.ts +++ /dev/null @@ -1,124 +0,0 @@ -// LOG LEVELS: -// 0: Fatal -// 1: Error -// 2: Warn -// 3: Info -// 4: Debug -// Logs are written in-memory and logged to console if logLevel > showLogLevel -let loglevel = 0; - -export const LEVEL_FATAL = 0; -export const LEVEL_ERROR = 1; -export const LEVEL_WARN = 2; -export const LEVEL_INFO = 3; -export const LEVEL_DEBUG = 4; - -interface LogLine { - level: number, - module: string, - message: string, - timestamp: number, - deltaStart: number, - deltaLast: number -} - -const debugLog: Array = []; -let timestampStart: number; -let deltaTimestamp: number; -let logger: Logger; -let loggerSetup = false; - -export function logSetup() { - if (loggerSetup) return; - loggerSetup = true; - timestampStart = Date.now(); - deltaTimestamp = Date.now(); - logger = new Logger("Logger.ts"); - consoleLogLevel(LEVEL_INFO); - logger.info("Logger setup complete"); -} - -export function logDeltaReset() { - timestampStart = Date.now(); - deltaTimestamp = Date.now(); - logger.info("delta reset"); -} - -function log(level: number, module: string, message: string) { - const log = { - level: level, - module: module, - message: message, - timestamp: Date.now(), - deltaStart: Date.now() - timestampStart, - deltaLast: Date.now() - deltaTimestamp - }; - deltaTimestamp = Date.now(); - - debugLog.push(log); - - consoleLogHandler(log); -} - -function consoleLogHandler(log: LogLine) { - if (import.meta.env.SSR) return; // no logging in ssr - if (log.level <= loglevel) { - let textstyle = ""; - switch (log.level) { - case 0: - textstyle = "color:red;font-weight:bold;"; - break; - case 1: - textstyle = "color:red;"; - break; - case 2: - textstyle = "color:yellow;"; - break; - case 3: - textstyle = ""; - break; - case 4: - textstyle = "color:gray;"; - break; - } - console.log(`%c${new Date(log.timestamp).toISOString()} ${(log.deltaStart / 1000).toFixed(3)}Σ ${(log.deltaLast / 1000).toFixed(3)}Δ\n%c[${log.module}]%c ${log.message}`, "color:gray", "color:#8c188c", textstyle); - } -} - -export function consoleLogLevel(level: number) { - loglevel = level; -} - -export function consoleLogDump() { - for (let i = 0; i < debugLog.length; i++) { - consoleLogHandler(debugLog[i]); - } -} - -export class Logger { - private readonly name: string; - - constructor(name: string) { - this.name = name; - } - - fatal(message: any) { - log(LEVEL_FATAL, this.name, message) - } - - error(message: any) { - log(LEVEL_ERROR, this.name, message) - } - - warn(message: any) { - log(LEVEL_WARN, this.name, message) - } - - info(message: any) { - log(LEVEL_INFO, this.name, message) - } - - debug(message: any) { - log(LEVEL_DEBUG, this.name, message) - } -} diff --git a/tfweb/src/lib/netcreate.js b/tfweb/src/lib/netcreate.js deleted file mode 100644 index 8aa6c3f..0000000 --- a/tfweb/src/lib/netcreate.js +++ /dev/null @@ -1,33 +0,0 @@ -import { APIResult } from "$lib/auth"; -import { Logger, logSetup } from "$lib/logger"; -import { PUBLIC_BASE_URL } from "$env/static/public"; -logSetup(); -const logger = new Logger("netcreate.ts"); -export async function createNetwork(token, cidr) { - logger.info('creating network'); - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v1/organization`, { - 'method': 'POST', - 'body': JSON.stringify({ - cidr: `${cidr}` - }), - '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 org create: ${rawerror.message}`); - return [APIResult.Failed, { code: rawerror.code, message: rawerror.message }]; - } - return [APIResult.Successful, await resp.json()]; - } - catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, { code: "api_call_failed", message: `${e}` }]; - } -} -//# sourceMappingURL=netcreate.js.map \ No newline at end of file diff --git a/tfweb/src/lib/netcreate.js.map b/tfweb/src/lib/netcreate.js.map deleted file mode 100644 index 6838fcf..0000000 --- a/tfweb/src/lib/netcreate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"netcreate.js","sourceRoot":"","sources":["netcreate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAC,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAEnD,QAAQ,EAAE,CAAC;AACX,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,cAAc,CAAC,CAAC;AAQ1C,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,KAAa,EAAE,IAAY;IAC3D,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAEhC,IAAI;QACA,MAAM,CAAC,KAAK,CAAC,qBAAqB,eAAe,EAAE,CAAC,CAAC;QACrD,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,GAAG,eAAe,kBAAkB,EAAE;YAC3D,QAAQ,EAAE,MAAM;YAChB,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC;gBACnB,IAAI,EAAE,GAAG,IAAI,EAAE;aAClB,CAAC;YACF,SAAS,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,eAAe,EAAE,UAAU,KAAK,EAAE;aACrC;SACJ,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;YACzC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACzD,MAAM,CAAC,KAAK,CAAC,6BAA6B,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;YAC9D,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,EAAC,CAAC,CAAC;SAC/E;QAED,OAAO,CAAC,SAAS,CAAC,UAAU,EAAE,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;KACnD;IAAC,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,KAAK,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/netcreate.ts b/tfweb/src/lib/netcreate.ts deleted file mode 100644 index 974751f..0000000 --- a/tfweb/src/lib/netcreate.ts +++ /dev/null @@ -1,42 +0,0 @@ -import {APIResult} from "$lib/auth"; -import type {APIError} from "$lib/auth"; -import {Logger, logSetup} from "$lib/logger"; -import {PUBLIC_BASE_URL} from "$env/static/public"; - -logSetup(); -const logger = new Logger("netcreate.ts"); - -export interface OrgCreateInfo { - organization: string, - ca: string, - network: string -} - -export async function createNetwork(token: string, cidr: string): Promise<[APIResult, OrgCreateInfo | APIError]> { - logger.info('creating network'); - - try { - logger.debug(`api call: baseurl ${PUBLIC_BASE_URL}`); - const resp = await fetch(`${PUBLIC_BASE_URL}/v1/organization`, { - 'method': 'POST', - 'body': JSON.stringify({ - cidr: `${cidr}` - }), - '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 org create: ${rawerror.message}`); - return [APIResult.Failed, {code: rawerror.code, message: rawerror.message}]; - } - - return [APIResult.Successful, await resp.json()] - } catch (e) { - logger.error(`error making API request: ${e}`); - return [APIResult.Failed, {code: "api_call_failed", message: `${e}`}] - } -} diff --git a/tfweb/src/lib/stores/devmode.js b/tfweb/src/lib/stores/devmode.js deleted file mode 100644 index ee2be8b..0000000 --- a/tfweb/src/lib/stores/devmode.js +++ /dev/null @@ -1,3 +0,0 @@ -import { persist } from "$lib/PersistentStore"; -export const devmode = persist("dev", "false"); -//# sourceMappingURL=devmode.js.map \ No newline at end of file diff --git a/tfweb/src/lib/stores/devmode.js.map b/tfweb/src/lib/stores/devmode.js.map deleted file mode 100644 index e54f403..0000000 --- a/tfweb/src/lib/stores/devmode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"devmode.js","sourceRoot":"","sources":["devmode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/stores/devmode.ts b/tfweb/src/lib/stores/devmode.ts deleted file mode 100644 index d6d0a47..0000000 --- a/tfweb/src/lib/stores/devmode.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { persist } from "$lib/PersistentStore"; - -export const devmode = persist("dev", "false"); diff --git a/tfweb/src/routes/+layout.svelte b/tfweb/src/routes/+layout.svelte deleted file mode 100644 index c6b794d..0000000 --- a/tfweb/src/routes/+layout.svelte +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/tfweb/src/routes/+layout.ts b/tfweb/src/routes/+layout.ts deleted file mode 100644 index e675e5a..0000000 --- a/tfweb/src/routes/+layout.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { LayoutLoad } from './$types' -import {loadTranslations} from "$lib/i18n/translations"; -import {browser} from "$app/environment"; - -export const load: LayoutLoad = async ({url}) => { - const { pathname } = url; - - let locale = 'en'; - - // determine locale - if (browser) { - if (window.localStorage.getItem("locale") != null) { - locale = window.localStorage.getItem("locale"); - } - window.localStorage.setItem("locale", locale); - } - - const initLocale = locale; - await loadTranslations(initLocale, pathname); - return {}; -} diff --git a/tfweb/src/routes/+page.svelte b/tfweb/src/routes/+page.svelte deleted file mode 100644 index 390adaa..0000000 --- a/tfweb/src/routes/+page.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.admin")})} - - - -

{$t('itworks.header')}

-

{$t('itworks.body')}

- -

{@html $t('itworks.linkbody', {link0:''+$t('itworks.linkbody.link0')+'',link1:''+$t('itworks.linkbody.link1')+''})}

-
diff --git a/tfweb/src/routes/2fa/+page.svelte b/tfweb/src/routes/2fa/+page.svelte deleted file mode 100644 index 1383d17..0000000 --- a/tfweb/src/routes/2fa/+page.svelte +++ /dev/null @@ -1,101 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.2fa")})} - - - - -
-
-
-

{$t('2fa.title')}

-

{$t('2fa.subtitle')}

- -
- - - - {#if loading} - - {:else} - - {/if} - - {#if hasErrForm} -

{errForm}

- {/if} -
-
-
-
- - - -
diff --git a/tfweb/src/routes/2fasetup/+page.svelte b/tfweb/src/routes/2fasetup/+page.svelte deleted file mode 100644 index 6b3e8dd..0000000 --- a/tfweb/src/routes/2fasetup/+page.svelte +++ /dev/null @@ -1,140 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.2fasetup")})} - - - - -
-
-
-

{$t('2fasetup.title')}

-

{$t('2fasetup.body')}

-
-
{$t('2fasetup.scan')}
-
- -
-
-
{$t('2fasetup.code')}
-

{totp_secret}

-
-
- - - - {#if loading} - - {:else} - - {/if} -
- {#if has_error} -

{form_err}

- {/if} -
-
-
-
diff --git a/tfweb/src/routes/admin/+page.svelte b/tfweb/src/routes/admin/+page.svelte deleted file mode 100644 index 28ff1a5..0000000 --- a/tfweb/src/routes/admin/+page.svelte +++ /dev/null @@ -1,76 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.admin")})} - - - -

its not loading anymore

-
diff --git a/tfweb/src/routes/hosts/+page.svelte b/tfweb/src/routes/hosts/+page.svelte deleted file mode 100644 index 89fa2d3..0000000 --- a/tfweb/src/routes/hosts/+page.svelte +++ /dev/null @@ -1,147 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.hosts")})} - - - - - -

{$t("common.page.hosts")} {$t("hosts.add")}

- - - - - - - - - - - - - {#each hosts as host} - {#if !(host.isLighthouse || host.isRelay)} - - - - - - - - {/if} - {/each} - -
{$t("hosts.name")}{$t("hosts.lastseen")}{$t("hosts.ipaddr")}{$t("hosts.role")}{$t("hosts.actions")}
- {host.name} - {#if host.isBlocked} - Blocked - {/if} - {host.metadata?.lastSeenAt}{host.ipAddress}{getRoleName(host.roleID)} -
- - - - - -
-
-
-
diff --git a/tfweb/src/routes/hosts/[host_id]/block/+page.svelte b/tfweb/src/routes/hosts/[host_id]/block/+page.svelte deleted file mode 100644 index 8c0c776..0000000 --- a/tfweb/src/routes/hosts/[host_id]/block/+page.svelte +++ /dev/null @@ -1,136 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.hosts")})} - - - - -

{$t("hosts.block.title", {host: host.data.name})}

-

{$t("hosts.block.explainer")}

- {#if loading} - - {:else} - - {/if} - - {#if hasFormErr} -

{formErr}

- {/if} -
-
diff --git a/tfweb/src/routes/hosts/[host_id]/delete/+page.svelte b/tfweb/src/routes/hosts/[host_id]/delete/+page.svelte deleted file mode 100644 index 59f1f08..0000000 --- a/tfweb/src/routes/hosts/[host_id]/delete/+page.svelte +++ /dev/null @@ -1,136 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.hosts")})} - - - - -

{$t("hosts.delete.title", {host: host.data.name})}

-

{$t("hosts.delete.explainer")}

- {#if loading} - - {:else} - - {/if} - - {#if hasFormErr} -

{formErr}

- {/if} -
-
diff --git a/tfweb/src/routes/hosts/[host_id]/enroll/+page.svelte b/tfweb/src/routes/hosts/[host_id]/enroll/+page.svelte deleted file mode 100644 index 2e26504..0000000 --- a/tfweb/src/routes/hosts/[host_id]/enroll/+page.svelte +++ /dev/null @@ -1,122 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.hosts")})} - - - - -

{$t("hosts.enroll.title", {host: host.data.name})}

-

{$t("hosts.enroll.explainer")}

- {#if loading} - - {:else} -

{$t("hosts.enroll.code", {code: code.code, expires: code.lifetimeSeconds / 60})}

- - - {/if} - - {#if hasFormErr} -

{formErr}

- {/if} -
-
diff --git a/tfweb/src/routes/hosts/add/+page.svelte b/tfweb/src/routes/hosts/add/+page.svelte deleted file mode 100644 index f820d10..0000000 --- a/tfweb/src/routes/hosts/add/+page.svelte +++ /dev/null @@ -1,199 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.hosts")})} - - - - -

{$t("common.page.addhost")}

- -
- - - - - - - - - - {#if loading} - - {:else} - - {/if} - - {#if hasFormErr} -

{formErr}

- {/if} -
-
-
diff --git a/tfweb/src/routes/lighthouses/+page.svelte b/tfweb/src/routes/lighthouses/+page.svelte deleted file mode 100644 index f2f84cd..0000000 --- a/tfweb/src/routes/lighthouses/+page.svelte +++ /dev/null @@ -1,78 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.lighthouses")})} - - - - -

{$t("common.page.lighthouses")}

-
-
diff --git a/tfweb/src/routes/login/+page.svelte b/tfweb/src/routes/login/+page.svelte deleted file mode 100644 index 7f602bb..0000000 --- a/tfweb/src/routes/login/+page.svelte +++ /dev/null @@ -1,107 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.login")})} - - - -
-
-
- {#if isDone} -

{$t('login.email')}

- -

{$t('login.emailbody')}

- -

{@html $t('login.emailbody2', {link0:''+$t('login.emailbody2.link0')+''})}

- {:else} -

{$t('login.title')}

-
{$t('login.subtitle')}
- -
- - - - {#if !loading} - - {:else} - - {/if} - {#if hasErrForm} - {errForm} - {/if} -
- -

{@html $t('login.need', {link0:''+$t('login.need.link0')+''})}

- {/if} -
-
-
-
diff --git a/tfweb/src/routes/magic-link/+page.svelte b/tfweb/src/routes/magic-link/+page.svelte deleted file mode 100644 index 01b73fc..0000000 --- a/tfweb/src/routes/magic-link/+page.svelte +++ /dev/null @@ -1,54 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.login")})} - - - -

{$t('ml.header')}

-

{$t('ml.body')}

-
diff --git a/tfweb/src/routes/networkcreate/+page.svelte b/tfweb/src/routes/networkcreate/+page.svelte deleted file mode 100644 index b403fe7..0000000 --- a/tfweb/src/routes/networkcreate/+page.svelte +++ /dev/null @@ -1,204 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.networkcreate")})} - - - -
-
-
-

{$t("networkcreate.title")}

-

{$t("networkcreate.explain")}

-
- - - - {#if valid} - {sub} - {:else} - {sub} - {/if} - - {#if loading} - - {:else} - - {/if} -
-
-
-
-
diff --git a/tfweb/src/routes/relays/+page.svelte b/tfweb/src/routes/relays/+page.svelte deleted file mode 100644 index 444f3af..0000000 --- a/tfweb/src/routes/relays/+page.svelte +++ /dev/null @@ -1,78 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.relays")})} - - - - -

{$t("common.page.relays")}

-
-
diff --git a/tfweb/src/routes/roles/+page.svelte b/tfweb/src/routes/roles/+page.svelte deleted file mode 100644 index d7e2cb5..0000000 --- a/tfweb/src/routes/roles/+page.svelte +++ /dev/null @@ -1,131 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.roles")})} - - - - -
-

{$t("common.page.roles")}

-
- -

{$t("roles.explain")}

- - {#if (roles.data.length === 0)} -

{$t("roles.noroles")}

- {:else} - - - - - - - - - - - {#each roles.data as role} - - - - - - - {/each} - -
{$t("roles.name")}{$t("roles.rules")}{$t("roles.description")}{$t("roles.actions")}
- - {role.name} - - {role.firewallRules.length}{role.description} -
- - -
- -
- {/if} -
-
diff --git a/tfweb/src/routes/roles/[role_id]/delete/+page.svelte b/tfweb/src/routes/roles/[role_id]/delete/+page.svelte deleted file mode 100644 index 5d13428..0000000 --- a/tfweb/src/routes/roles/[role_id]/delete/+page.svelte +++ /dev/null @@ -1,137 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.roles")})} - - - - -

{$t("roles.delete.title", {rule: role.data.name})}

-

{$t("roles.delete.explainer")}

- {#if loading} - - {:else} - - {/if} - - {#if hasFormErr} -

{formErr}

- {/if} -
-
diff --git a/tfweb/src/routes/roles/[role_id]/edit/+page.svelte b/tfweb/src/routes/roles/[role_id]/edit/+page.svelte deleted file mode 100644 index d96f4c9..0000000 --- a/tfweb/src/routes/roles/[role_id]/edit/+page.svelte +++ /dev/null @@ -1,455 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.roles")})} - - - - -

{$t("roles.edit.title", {rule: roleName})}

-
- - -
-
{$t("roles.edit.rules")}
-

{$t("roles.edit.rulesexplainer")}

- - - - - - - - - - - - - - {#each rules as rule} - - - - - - - - {/each} - - -
{$t("roles.edit.rulescols.description")}{$t("roles.edit.rulescols.protocol")}{$t("roles.edit.rulescols.portrange")}{$t("roles.edit.rulescols.allowedrole")}{$t("roles.edit.rulescols.actions")}
{rule.description}{protoToStringName(rule.protocol)}{prettyPortRange(rule.portRange)}{findRole(rule.allowedRole)} -
- - -
-
- - {#if isEditingRule} - -
-
-
- - -
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- {/if} - -
- - - -
- - {#if loading} - - {:else} - - {/if} - - - {#if hasFormErr} -

{formErr}

- {/if} - -
-
diff --git a/tfweb/src/routes/roles/add/+page.svelte b/tfweb/src/routes/roles/add/+page.svelte deleted file mode 100644 index 5a28983..0000000 --- a/tfweb/src/routes/roles/add/+page.svelte +++ /dev/null @@ -1,417 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.roles")})} - - - - -

{$t("roles.add.title")}

-
- - - - -
-
{$t("roles.add.rules")}
-

{$t("roles.add.rulesexplainer")}

- - - - - - - - - - - - - - {#each rules as rule} - - - - - - - - {/each} - - -
{$t("roles.add.rulescols.description")}{$t("roles.add.rulescols.protocol")}{$t("roles.add.rulescols.portrange")}{$t("roles.add.rulescols.allowedrole")}{$t("roles.add.rulescols.actions")}
{rule.description}{protoToStringName(rule.protocol)}{prettyPortRange(rule.portRange)}{findRole(rule.allowedRole)} -
- - -
-
- - {#if isEditingRule} - -
-
-
- - -
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- {/if} - -
- - - -
- - {#if loading} - - {:else} - - {/if} - - - {#if hasFormErr} -

{formErr}

- {/if} - -
-
diff --git a/tfweb/src/routes/signup/+page.svelte b/tfweb/src/routes/signup/+page.svelte deleted file mode 100644 index c425d71..0000000 --- a/tfweb/src/routes/signup/+page.svelte +++ /dev/null @@ -1,109 +0,0 @@ - - - - {$t("common.title", {title: $t("common.page.signup")})} - - - -
-
-
- {#if isDone} -

{$t('signup.email')}

- -

{$t('signup.emailbody')}

- -

{@html $t('signup.emailbody2', {link0:''+$t('signup.emailbody2.link0')+''})}

- {:else} -

{$t('signup.title')}

-
{$t('signup.subtitle')}
- -
- - - - {#if !loading} - - {:else} - - {/if} - {#if hasErrForm} - - {@html errForm} - {/if} -
- -

{@html $t('signup.already', {link0:''+$t('signup.already.link0')+''})}

- {/if} - -
-
-
-
diff --git a/tfweb/static/favicon.png b/tfweb/static/favicon.png deleted file mode 100644 index 825b9e65af7c104cfb07089bb28659393b4f2097..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1571 zcmV+;2Hg3HP)Px)-AP12RCwC$UE6KzI1p6{F2N z1VK2vi|pOpn{~#djwYcWXTI_im_u^TJgMZ4JMOsSj!0ma>B?-(Hr@X&W@|R-$}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WWw|21b4NB=LfsYp0Aeh{Ov)yztQi;eL4y5 zMi>8^SzKqk8~k?UiQK^^-5d8c%bV?$F8%X~czyiaKCI2=UH (/usr/lib/node_modules/yarn/lib/cli.js:141862:10) - at Request.emit (node:events:514:28) - at IncomingMessage. (/usr/lib/node_modules/yarn/lib/cli.js:141784:12) - at Object.onceWrapper (node:events:628:28) - at IncomingMessage.emit (node:events:526:35) - at endReadableNT (node:internal/streams/readable:1376:12) - at process.processTicksAndRejections (node:internal/process/task_queues:82:21) - -npm manifest: - { - "name": "tfweb", - "version": "0.0.1", - "private": true, - "scripts": { - "dev": "vite dev", - "build": "vite build", - "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 ." - }, - "devDependencies": { - "@sveltejs/adapter-auto": "^2.0.0", - "@sveltejs/kit": "^1.5.0", - "@typescript-eslint/eslint-plugin": "^5.45.0", - "@typescript-eslint/parser": "^5.45.0", - "eslint": "^8.28.0", - "eslint-plugin-svelte": "^2.26.0", - "svelte": "^3.54.0", - "svelte-check": "^3.0.1", - "tslib": "^2.4.1", - "typescript": "^5.0.0", - "vite": "^4.3.0" - }, - "type": "module", - "dependencies": { - "@popperjs/core": "^2.11.8", - "@types/qrcode": "^1.5.0", - "bootstrap": "^5.3.2", - "bootswatch": "^5.3.2", - "fontawesome-free": "^1.0.4", - "qrcode": "^1.5.3", - "svelte-i18n": "^3.6.0" - } - } - -yarn manifest: - No manifest - -Lockfile: - # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. - # yarn lockfile v1 - - - "@esbuild/android-arm64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz#bafb75234a5d3d1b690e7c2956a599345e84a2fd" - integrity sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA== - - "@esbuild/android-arm@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.17.19.tgz#5898f7832c2298bc7d0ab53701c57beb74d78b4d" - integrity sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A== - - "@esbuild/android-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.17.19.tgz#658368ef92067866d95fb268719f98f363d13ae1" - integrity sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww== - - "@esbuild/darwin-arm64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz#584c34c5991b95d4d48d333300b1a4e2ff7be276" - integrity sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg== - - "@esbuild/darwin-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz#7751d236dfe6ce136cce343dce69f52d76b7f6cb" - integrity sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw== - - "@esbuild/freebsd-arm64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz#cacd171665dd1d500f45c167d50c6b7e539d5fd2" - integrity sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ== - - "@esbuild/freebsd-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz#0769456eee2a08b8d925d7c00b79e861cb3162e4" - integrity sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ== - - "@esbuild/linux-arm64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz#38e162ecb723862c6be1c27d6389f48960b68edb" - integrity sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg== - - "@esbuild/linux-arm@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz#1a2cd399c50040184a805174a6d89097d9d1559a" - integrity sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA== - - "@esbuild/linux-ia32@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz#e28c25266b036ce1cabca3c30155222841dc035a" - integrity sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ== - - "@esbuild/linux-loong64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz#0f887b8bb3f90658d1a0117283e55dbd4c9dcf72" - integrity sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ== - - "@esbuild/linux-mips64el@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz#f5d2a0b8047ea9a5d9f592a178ea054053a70289" - integrity sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A== - - "@esbuild/linux-ppc64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz#876590e3acbd9fa7f57a2c7d86f83717dbbac8c7" - integrity sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg== - - "@esbuild/linux-riscv64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz#7f49373df463cd9f41dc34f9b2262d771688bf09" - integrity sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA== - - "@esbuild/linux-s390x@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz#e2afd1afcaf63afe2c7d9ceacd28ec57c77f8829" - integrity sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q== - - "@esbuild/linux-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz#8a0e9738b1635f0c53389e515ae83826dec22aa4" - integrity sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw== - - "@esbuild/netbsd-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz#c29fb2453c6b7ddef9a35e2c18b37bda1ae5c462" - integrity sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q== - - "@esbuild/openbsd-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz#95e75a391403cb10297280d524d66ce04c920691" - integrity sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g== - - "@esbuild/sunos-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz#722eaf057b83c2575937d3ffe5aeb16540da7273" - integrity sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg== - - "@esbuild/win32-arm64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz#9aa9dc074399288bdcdd283443e9aeb6b9552b6f" - integrity sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag== - - "@esbuild/win32-ia32@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz#95ad43c62ad62485e210f6299c7b2571e48d2b03" - integrity sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw== - - "@esbuild/win32-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz#8cfaf2ff603e9aabb910e9c0558c26cf32744061" - integrity sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA== - - "@eslint-community/eslint-utils@^4.2.0": - version "4.4.0" - resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" - integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== - dependencies: - eslint-visitor-keys "^3.3.0" - - "@eslint-community/regexpp@^4.4.0": - version "4.5.1" - resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.5.1.tgz#cdd35dce4fa1a89a4fd42b1599eb35b3af408884" - integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ== - - "@eslint/eslintrc@^2.0.3": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.0.3.tgz#4910db5505f4d503f27774bf356e3704818a0331" - integrity sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ== - dependencies: - ajv "^6.12.4" - debug "^4.3.2" - espree "^9.5.2" - globals "^13.19.0" - ignore "^5.2.0" - import-fresh "^3.2.1" - js-yaml "^4.1.0" - minimatch "^3.1.2" - strip-json-comments "^3.1.1" - - "@eslint/js@8.41.0": - version "8.41.0" - resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.41.0.tgz#080321c3b68253522f7646b55b577dd99d2950b3" - integrity sha512-LxcyMGxwmTh2lY9FwHPGWOHmYFCZvbrFCBZL4FzSSsxsRPuhrYUg/49/0KDfW8tnIEaEHtfmn6+NPN+1DqaNmA== - - "@formatjs/ecma402-abstract@1.11.4": - version "1.11.4" - resolved "https://registry.yarnpkg.com/@formatjs/ecma402-abstract/-/ecma402-abstract-1.11.4.tgz#b962dfc4ae84361f9f08fbce411b4e4340930eda" - integrity sha512-EBikYFp2JCdIfGEb5G9dyCkTGDmC57KSHhRQOC3aYxoPWVZvfWCDjZwkGYHN7Lis/fmuWl906bnNTJifDQ3sXw== - dependencies: - "@formatjs/intl-localematcher" "0.2.25" - tslib "^2.1.0" - - "@formatjs/fast-memoize@1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@formatjs/fast-memoize/-/fast-memoize-1.2.1.tgz#e6f5aee2e4fd0ca5edba6eba7668e2d855e0fc21" - integrity sha512-Rg0e76nomkz3vF9IPlKeV+Qynok0r7YZjL6syLz4/urSg0IbjPZCB/iYUMNsYA643gh4mgrX3T7KEIFIxJBQeg== - dependencies: - tslib "^2.1.0" - - "@formatjs/icu-messageformat-parser@2.1.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.1.0.tgz#a54293dd7f098d6a6f6a084ab08b6d54a3e8c12d" - integrity sha512-Qxv/lmCN6hKpBSss2uQ8IROVnta2r9jd3ymUEIjm2UyIkUCHVcbUVRGL/KS/wv7876edvsPe+hjHVJ4z8YuVaw== - dependencies: - "@formatjs/ecma402-abstract" "1.11.4" - "@formatjs/icu-skeleton-parser" "1.3.6" - tslib "^2.1.0" - - "@formatjs/icu-skeleton-parser@1.3.6": - version "1.3.6" - resolved "https://registry.yarnpkg.com/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.3.6.tgz#4ce8c0737d6f07b735288177049e97acbf2e8964" - integrity sha512-I96mOxvml/YLrwU2Txnd4klA7V8fRhb6JG/4hm3VMNmeJo1F03IpV2L3wWt7EweqNLES59SZ4d6hVOPCSf80Bg== - dependencies: - "@formatjs/ecma402-abstract" "1.11.4" - tslib "^2.1.0" - - "@formatjs/intl-localematcher@0.2.25": - version "0.2.25" - resolved "https://registry.yarnpkg.com/@formatjs/intl-localematcher/-/intl-localematcher-0.2.25.tgz#60892fe1b271ec35ba07a2eb018a2dd7bca6ea3a" - integrity sha512-YmLcX70BxoSopLFdLr1Ds99NdlTI2oWoLbaUW2M406lxOIPzE1KQhRz2fPUkq34xVZQaihCoU29h0KK7An3bhA== - dependencies: - tslib "^2.1.0" - - "@humanwhocodes/config-array@^0.11.8": - version "0.11.8" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz#03595ac2075a4dc0f191cc2131de14fbd7d410b9" - integrity sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g== - dependencies: - "@humanwhocodes/object-schema" "^1.2.1" - debug "^4.1.1" - minimatch "^3.0.5" - - "@humanwhocodes/module-importer@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" - integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== - - "@humanwhocodes/object-schema@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" - integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== - - "@jridgewell/resolve-uri@3.1.0": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" - integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== - - "@jridgewell/sourcemap-codec@1.4.14": - version "1.4.14" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" - integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== - - "@jridgewell/sourcemap-codec@^1.4.13", "@jridgewell/sourcemap-codec@^1.4.14": - version "1.4.15" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" - integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== - - "@jridgewell/trace-mapping@^0.3.17": - version "0.3.18" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz#25783b2086daf6ff1dcb53c9249ae480e4dd4cd6" - integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA== - dependencies: - "@jridgewell/resolve-uri" "3.1.0" - "@jridgewell/sourcemap-codec" "1.4.14" - - "@nodelib/fs.scandir@2.1.5": - version "2.1.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" - integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== - dependencies: - "@nodelib/fs.stat" "2.0.5" - run-parallel "^1.1.9" - - "@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" - integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== - - "@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": - version "1.2.8" - resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" - integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== - dependencies: - "@nodelib/fs.scandir" "2.1.5" - fastq "^1.6.0" - - "@polka/url@^1.0.0-next.20": - version "1.0.0-next.21" - resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.21.tgz#5de5a2385a35309427f6011992b544514d559aa1" - integrity sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g== - - "@popperjs/core@^2.11.8": - version "2.11.8" - resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.8.tgz#6b79032e760a0899cd4204710beede972a3a185f" - integrity sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A== - - "@sveltejs/adapter-auto@^2.0.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@sveltejs/adapter-auto/-/adapter-auto-2.1.0.tgz#cb36fd7081e3c4b1c9a9192b1a23c8c82dce8a1b" - integrity sha512-o2pZCfATFtA/Gw/BB0Xm7k4EYaekXxaPGER3xGSY3FvzFJGTlJlZjBseaXwYSM94lZ0HniOjTokN3cWaLX6fow== - dependencies: - import-meta-resolve "^3.0.0" - - "@sveltejs/kit@^1.5.0": - version "1.20.0" - resolved "https://registry.yarnpkg.com/@sveltejs/kit/-/kit-1.20.0.tgz#5deed969badda2cd9d4c68c580362c492425be75" - integrity sha512-2ZW14afgcCQBk3BN8+FWUUCIZg+TKeDFuOMUpDNllTa6sKZ+YQNpxhsrt9abaZohPGsGGOYmk5fzy8D8MHVNBw== - dependencies: - "@sveltejs/vite-plugin-svelte" "^2.4.1" - "@types/cookie" "^0.5.1" - cookie "^0.5.0" - devalue "^4.3.1" - esm-env "^1.0.0" - kleur "^4.1.5" - magic-string "^0.30.0" - mime "^3.0.0" - sade "^1.8.1" - set-cookie-parser "^2.6.0" - sirv "^2.0.2" - tiny-glob "^0.2.9" - undici "~5.22.0" - - "@sveltejs/vite-plugin-svelte-inspector@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@sveltejs/vite-plugin-svelte-inspector/-/vite-plugin-svelte-inspector-1.0.2.tgz#da51dd8da54e69a706ad4793103f90aedae2c481" - integrity sha512-Cy1dUMcYCnDVV/hPLXa43YZJ2jGKVW5rA0xuNL9dlmYhT0yoS1g7+FOFSRlgk0BXKk/Oc7grs+8BVA5Iz2fr8A== - dependencies: - debug "^4.3.4" - - "@sveltejs/vite-plugin-svelte@^2.4.1": - version "2.4.1" - resolved "https://registry.yarnpkg.com/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.4.1.tgz#bab9d97a83fee641562f2657ce6ea755808bc149" - integrity sha512-bNNKvoRY89ptY7udeBSCmTdCVwkjmMcZ0j/z9J5MuedT8jPjq0zrknAo/jF1sToAza4NVaAgR9AkZoD9oJJmnA== - dependencies: - "@sveltejs/vite-plugin-svelte-inspector" "^1.0.2" - debug "^4.3.4" - deepmerge "^4.3.1" - kleur "^4.1.5" - magic-string "^0.30.0" - svelte-hmr "^0.15.1" - vitefu "^0.2.4" - - "@types/cookie@^0.5.1": - version "0.5.1" - resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.5.1.tgz#b29aa1f91a59f35e29ff8f7cb24faf1a3a750554" - integrity sha512-COUnqfB2+ckwXXSFInsFdOAWQzCCx+a5hq2ruyj+Vjund94RJQd4LG2u9hnvJrTgunKAaax7ancBYlDrNYxA0g== - - "@types/json-schema@^7.0.9": - version "7.0.12" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.12.tgz#d70faba7039d5fca54c83c7dbab41051d2b6f6cb" - integrity sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA== - - "@types/node@*": - version "20.2.5" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.2.5.tgz#26d295f3570323b2837d322180dfbf1ba156fefb" - integrity sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ== - - "@types/pug@^2.0.6": - version "2.0.6" - resolved "https://registry.yarnpkg.com/@types/pug/-/pug-2.0.6.tgz#f830323c88172e66826d0bde413498b61054b5a6" - integrity sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg== - - "@types/qrcode@^1.5.0": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@types/qrcode/-/qrcode-1.5.0.tgz#6a98fe9a9a7b2a9a3167b6dde17eff999eabe40b" - integrity sha512-x5ilHXRxUPIMfjtM+1vf/GPTRWZ81nqscursm5gMznJeK9M0YnZ1c3bEvRLQ0zSSgedLx1J6MGL231ObQGGhaA== - dependencies: - "@types/node" "*" - - "@types/semver@^7.3.12": - version "7.5.0" - resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.0.tgz#591c1ce3a702c45ee15f47a42ade72c2fd78978a" - integrity sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw== - - "@typescript-eslint/eslint-plugin@^5.45.0": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.8.tgz#1e7a3e5318ece22251dfbc5c9c6feeb4793cc509" - integrity sha512-JDMOmhXteJ4WVKOiHXGCoB96ADWg9q7efPWHRViT/f09bA8XOMLAVHHju3l0MkZnG1izaWXYmgvQcUjTRcpShQ== - dependencies: - "@eslint-community/regexpp" "^4.4.0" - "@typescript-eslint/scope-manager" "5.59.8" - "@typescript-eslint/type-utils" "5.59.8" - "@typescript-eslint/utils" "5.59.8" - debug "^4.3.4" - grapheme-splitter "^1.0.4" - ignore "^5.2.0" - natural-compare-lite "^1.4.0" - semver "^7.3.7" - tsutils "^3.21.0" - - "@typescript-eslint/parser@^5.45.0": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.59.8.tgz#60cbb00671d86cf746044ab797900b1448188567" - integrity sha512-AnR19RjJcpjoeGojmwZtCwBX/RidqDZtzcbG3xHrmz0aHHoOcbWnpDllenRDmDvsV0RQ6+tbb09/kyc+UT9Orw== - dependencies: - "@typescript-eslint/scope-manager" "5.59.8" - "@typescript-eslint/types" "5.59.8" - "@typescript-eslint/typescript-estree" "5.59.8" - debug "^4.3.4" - - "@typescript-eslint/scope-manager@5.59.8": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.59.8.tgz#ff4ad4fec6433647b817c4a7d4b4165d18ea2fa8" - integrity sha512-/w08ndCYI8gxGf+9zKf1vtx/16y8MHrZs5/tnjHhMLNSixuNcJavSX4wAiPf4aS5x41Es9YPCn44MIe4cxIlig== - dependencies: - "@typescript-eslint/types" "5.59.8" - "@typescript-eslint/visitor-keys" "5.59.8" - - "@typescript-eslint/type-utils@5.59.8": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.59.8.tgz#aa6c029a9d7706d26bbd25eb4666398781df6ea2" - integrity sha512-+5M518uEIHFBy3FnyqZUF3BMP+AXnYn4oyH8RF012+e7/msMY98FhGL5SrN29NQ9xDgvqCgYnsOiKp1VjZ/fpA== - dependencies: - "@typescript-eslint/typescript-estree" "5.59.8" - "@typescript-eslint/utils" "5.59.8" - debug "^4.3.4" - tsutils "^3.21.0" - - "@typescript-eslint/types@5.59.8": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.59.8.tgz#212e54414733618f5d0fd50b2da2717f630aebf8" - integrity sha512-+uWuOhBTj/L6awoWIg0BlWy0u9TyFpCHrAuQ5bNfxDaZ1Ppb3mx6tUigc74LHcbHpOHuOTOJrBoAnhdHdaea1w== - - "@typescript-eslint/typescript-estree@5.59.8": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.8.tgz#801a7b1766481629481b3b0878148bd7a1f345d7" - integrity sha512-Jy/lPSDJGNow14vYu6IrW790p7HIf/SOV1Bb6lZ7NUkLc2iB2Z9elESmsaUtLw8kVqogSbtLH9tut5GCX1RLDg== - dependencies: - "@typescript-eslint/types" "5.59.8" - "@typescript-eslint/visitor-keys" "5.59.8" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" - - "@typescript-eslint/utils@5.59.8": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.59.8.tgz#34d129f35a2134c67fdaf024941e8f96050dca2b" - integrity sha512-Tr65630KysnNn9f9G7ROF3w1b5/7f6QVCJ+WK9nhIocWmx9F+TmCAcglF26Vm7z8KCTwoKcNEBZrhlklla3CKg== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@types/json-schema" "^7.0.9" - "@types/semver" "^7.3.12" - "@typescript-eslint/scope-manager" "5.59.8" - "@typescript-eslint/types" "5.59.8" - "@typescript-eslint/typescript-estree" "5.59.8" - eslint-scope "^5.1.1" - semver "^7.3.7" - - "@typescript-eslint/visitor-keys@5.59.8": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.8.tgz#aa6a7ef862add919401470c09e1609392ef3cc40" - integrity sha512-pJhi2ms0x0xgloT7xYabil3SGGlojNNKjK/q6dB3Ey0uJLMjK2UDGJvHieiyJVW/7C3KI+Z4Q3pEHkm4ejA+xQ== - dependencies: - "@typescript-eslint/types" "5.59.8" - eslint-visitor-keys "^3.3.0" - - acorn-jsx@^5.3.2: - version "5.3.2" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" - integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== - - acorn@^8.8.0: - version "8.8.2" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.2.tgz#1b2f25db02af965399b9776b0c2c391276d37c4a" - integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw== - - ajv@^6.10.0, ajv@^6.12.4: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - - ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - - ansi-styles@^4.0.0, ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - - anymatch@~3.1.2: - version "3.1.3" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" - integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - - argparse@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" - integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== - - array-union@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" - integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== - - balanced-match@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" - integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== - - binary-extensions@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" - integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== - - bootstrap@^5.3.2: - version "5.3.2" - resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-5.3.2.tgz#97226583f27aae93b2b28ab23f4c114757ff16ae" - integrity sha512-D32nmNWiQHo94BKHLmOrdjlL05q1c8oxbtBphQFb9Z5to6eGRDCm0QgeaZ4zFBHzfg2++rqa2JkqCcxDy0sH0g== - - bootswatch@^5.3.2: - version "5.3.2" - resolved "https://registry.yarnpkg.com/bootswatch/-/bootswatch-5.3.2.tgz#b59aa9d37671cb25dd781e4a6d6773008d6c9356" - integrity sha512-r05xOSLSx7MJvjpk/uoU8wPYgkPHWLV+uenLaRsS7yBsqSUcWYPjeUkz+tmrRv6s1eFxkF08NvQfBSSPCTyYaA== - - brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - - braces@^3.0.2, braces@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== - dependencies: - fill-range "^7.0.1" - - buffer-crc32@^0.2.5: - version "0.2.13" - resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" - integrity sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ== - - busboy@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893" - integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA== - dependencies: - streamsearch "^1.1.0" - - callsites@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" - integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== - - camelcase@^5.0.0: - version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - - chalk@^4.0.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - - chokidar@^3.4.1: - version "3.5.3" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" - integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== - dependencies: - anymatch "~3.1.2" - braces "~3.0.2" - glob-parent "~5.1.2" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.6.0" - optionalDependencies: - fsevents "~2.3.2" - - cli-color@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/cli-color/-/cli-color-2.0.3.tgz#73769ba969080629670f3f2ef69a4bf4e7cc1879" - integrity sha512-OkoZnxyC4ERN3zLzZaY9Emb7f/MhBOIpePv0Ycok0fJYT+Ouo00UBEIwsVsr0yoow++n5YWlSUgST9GKhNHiRQ== - dependencies: - d "^1.0.1" - es5-ext "^0.10.61" - es6-iterator "^2.0.3" - memoizee "^0.4.15" - timers-ext "^0.1.7" - - cliui@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" - integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^6.2.0" - - color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - - color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - - concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== - - cookie@^0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b" - integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw== - - cross-spawn@^7.0.2: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - - d@1, d@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" - integrity sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA== - dependencies: - es5-ext "^0.10.50" - type "^1.0.1" - - debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4: - version "4.3.4" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" - integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== - dependencies: - ms "2.1.2" - - decamelize@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== - - deep-is@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" - integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== - - deepmerge@^4.2.2, deepmerge@^4.3.1: - version "4.3.1" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" - integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== - - detect-indent@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.1.0.tgz#592485ebbbf6b3b1ab2be175c8393d04ca0d57e6" - integrity sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA== - - devalue@^4.3.1: - version "4.3.2" - resolved "https://registry.yarnpkg.com/devalue/-/devalue-4.3.2.tgz#cc44e4cf3872ac5a78229fbce3b77e57032727b5" - integrity sha512-KqFl6pOgOW+Y6wJgu80rHpo2/3H07vr8ntR9rkkFIRETewbf5GaYYcakYfiKz89K+sLsuPkQIZaXDMjUObZwWg== - - dijkstrajs@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/dijkstrajs/-/dijkstrajs-1.0.3.tgz#4c8dbdea1f0f6478bff94d9c49c784d623e4fc23" - integrity sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA== - - dir-glob@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" - integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== - dependencies: - path-type "^4.0.0" - - doctrine@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" - integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== - dependencies: - esutils "^2.0.2" - - emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - - encode-utf8@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/encode-utf8/-/encode-utf8-1.0.3.tgz#f30fdd31da07fb596f281beb2f6b027851994cda" - integrity sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw== - - es5-ext@^0.10.35, es5-ext@^0.10.46, es5-ext@^0.10.50, es5-ext@^0.10.53, es5-ext@^0.10.61, es5-ext@~0.10.14, es5-ext@~0.10.2, es5-ext@~0.10.46: - version "0.10.62" - resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.62.tgz#5e6adc19a6da524bf3d1e02bbc8960e5eb49a9a5" - integrity sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA== - dependencies: - es6-iterator "^2.0.3" - es6-symbol "^3.1.3" - next-tick "^1.1.0" - - es6-iterator@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" - integrity sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g== - dependencies: - d "1" - es5-ext "^0.10.35" - es6-symbol "^3.1.1" - - es6-promise@^3.1.2: - version "3.3.1" - resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-3.3.1.tgz#a08cdde84ccdbf34d027a1451bc91d4bcd28a613" - integrity sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg== - - es6-symbol@^3.1.1, es6-symbol@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" - integrity sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA== - dependencies: - d "^1.0.1" - ext "^1.1.2" - - es6-weak-map@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.3.tgz#b6da1f16cc2cc0d9be43e6bdbfc5e7dfcdf31d53" - integrity sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA== - dependencies: - d "1" - es5-ext "^0.10.46" - es6-iterator "^2.0.3" - es6-symbol "^3.1.1" - - esbuild@^0.17.5: - version "0.17.19" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.17.19.tgz#087a727e98299f0462a3d0bcdd9cd7ff100bd955" - integrity sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw== - optionalDependencies: - "@esbuild/android-arm" "0.17.19" - "@esbuild/android-arm64" "0.17.19" - "@esbuild/android-x64" "0.17.19" - "@esbuild/darwin-arm64" "0.17.19" - "@esbuild/darwin-x64" "0.17.19" - "@esbuild/freebsd-arm64" "0.17.19" - "@esbuild/freebsd-x64" "0.17.19" - "@esbuild/linux-arm" "0.17.19" - "@esbuild/linux-arm64" "0.17.19" - "@esbuild/linux-ia32" "0.17.19" - "@esbuild/linux-loong64" "0.17.19" - "@esbuild/linux-mips64el" "0.17.19" - "@esbuild/linux-ppc64" "0.17.19" - "@esbuild/linux-riscv64" "0.17.19" - "@esbuild/linux-s390x" "0.17.19" - "@esbuild/linux-x64" "0.17.19" - "@esbuild/netbsd-x64" "0.17.19" - "@esbuild/openbsd-x64" "0.17.19" - "@esbuild/sunos-x64" "0.17.19" - "@esbuild/win32-arm64" "0.17.19" - "@esbuild/win32-ia32" "0.17.19" - "@esbuild/win32-x64" "0.17.19" - - escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - - eslint-plugin-svelte@^2.26.0: - version "2.29.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-svelte/-/eslint-plugin-svelte-2.29.0.tgz#f35adc8fc67b659f5253b16bd8c2875ceab6de6d" - integrity sha512-ukEC5z9ZXwDtwD8L12ei9doF9P/mQVeiLZiUxExWN9ZNTLNwZgfmEKx+s0tNio0YnYHzKz6qELxFei4SqVbLkQ== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@jridgewell/sourcemap-codec" "^1.4.14" - debug "^4.3.1" - esutils "^2.0.3" - known-css-properties "^0.27.0" - postcss "^8.4.5" - postcss-load-config "^3.1.4" - postcss-safe-parser "^6.0.0" - svelte-eslint-parser "^0.29.0" - - eslint-scope@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" - integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== - dependencies: - esrecurse "^4.3.0" - estraverse "^4.1.1" - - eslint-scope@^7.0.0, eslint-scope@^7.2.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.0.tgz#f21ebdafda02352f103634b96dd47d9f81ca117b" - integrity sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw== - dependencies: - esrecurse "^4.3.0" - estraverse "^5.2.0" - - eslint-visitor-keys@^3.0.0, eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1: - version "3.4.1" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz#c22c48f48942d08ca824cc526211ae400478a994" - integrity sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA== - - eslint@^8.28.0: - version "8.41.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.41.0.tgz#3062ca73363b4714b16dbc1e60f035e6134b6f1c" - integrity sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@eslint-community/regexpp" "^4.4.0" - "@eslint/eslintrc" "^2.0.3" - "@eslint/js" "8.41.0" - "@humanwhocodes/config-array" "^0.11.8" - "@humanwhocodes/module-importer" "^1.0.1" - "@nodelib/fs.walk" "^1.2.8" - ajv "^6.10.0" - chalk "^4.0.0" - cross-spawn "^7.0.2" - debug "^4.3.2" - doctrine "^3.0.0" - escape-string-regexp "^4.0.0" - eslint-scope "^7.2.0" - eslint-visitor-keys "^3.4.1" - espree "^9.5.2" - esquery "^1.4.2" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" - find-up "^5.0.0" - glob-parent "^6.0.2" - globals "^13.19.0" - graphemer "^1.4.0" - ignore "^5.2.0" - import-fresh "^3.0.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - 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.1" - strip-ansi "^6.0.1" - strip-json-comments "^3.1.0" - text-table "^0.2.0" - - esm-env@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/esm-env/-/esm-env-1.0.0.tgz#b124b40b180711690a4cb9b00d16573391950413" - integrity sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA== - - espree@^9.0.0, espree@^9.5.2: - version "9.5.2" - resolved "https://registry.yarnpkg.com/espree/-/espree-9.5.2.tgz#e994e7dc33a082a7a82dceaf12883a829353215b" - integrity sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw== - dependencies: - acorn "^8.8.0" - acorn-jsx "^5.3.2" - eslint-visitor-keys "^3.4.1" - - esquery@^1.4.2: - version "1.5.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b" - integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== - dependencies: - estraverse "^5.1.0" - - esrecurse@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" - integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== - dependencies: - estraverse "^5.2.0" - - estraverse@^4.1.1: - version "4.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" - integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== - - estraverse@^5.1.0, estraverse@^5.2.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - - estree-walker@^2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" - integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== - - esutils@^2.0.2, esutils@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - - event-emitter@^0.3.5: - version "0.3.5" - resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39" - integrity sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA== - dependencies: - d "1" - es5-ext "~0.10.14" - - ext@^1.1.2: - version "1.7.0" - resolved "https://registry.yarnpkg.com/ext/-/ext-1.7.0.tgz#0ea4383c0103d60e70be99e9a7f11027a33c4f5f" - integrity sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw== - dependencies: - type "^2.7.2" - - fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - - fast-glob@^3.2.7, fast-glob@^3.2.9: - version "3.2.12" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80" - integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w== - dependencies: - "@nodelib/fs.stat" "^2.0.2" - "@nodelib/fs.walk" "^1.2.3" - glob-parent "^5.1.2" - merge2 "^1.3.0" - micromatch "^4.0.4" - - fast-json-stable-stringify@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" - integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== - - fast-levenshtein@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== - - fastq@^1.6.0: - version "1.15.0" - resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.15.0.tgz#d04d07c6a2a68fe4599fea8d2e103a937fae6b3a" - integrity sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw== - dependencies: - reusify "^1.0.4" - - file-entry-cache@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" - integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== - dependencies: - flat-cache "^3.0.4" - - fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - - find-up@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" - integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" - - find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - - flat-cache@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" - integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== - dependencies: - flatted "^3.1.0" - rimraf "^3.0.2" - - flatted@^3.1.0: - version "3.2.7" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787" - integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== - - fontawesome-free@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/fontawesome-free/-/fontawesome-free-1.0.4.tgz#c7c499708dabd59eb5dedf232b590a862e05957b" - integrity sha512-7sX6Lbg2oQiClFFFFitJlKg20h3YTBON6rdmq3uGjNwDo8G6EjF2bfj2OjjcCUmf4OvZCgyHaXfW2JseqissLw== - - fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== - - fsevents@~2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== - - get-caller-file@^2.0.1: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - - glob-parent@^5.1.2, glob-parent@~5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" - integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== - dependencies: - is-glob "^4.0.1" - - glob-parent@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" - integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== - dependencies: - is-glob "^4.0.3" - - glob@^7.1.3: - version "7.2.3" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" - integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.1.1" - once "^1.3.0" - path-is-absolute "^1.0.0" - - globals@^13.19.0: - version "13.20.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.20.0.tgz#ea276a1e508ffd4f1612888f9d1bad1e2717bf82" - integrity sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ== - dependencies: - type-fest "^0.20.2" - - globalyzer@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/globalyzer/-/globalyzer-0.1.0.tgz#cb76da79555669a1519d5a8edf093afaa0bf1465" - integrity sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q== - - globby@^11.1.0: - version "11.1.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" - integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== - dependencies: - array-union "^2.1.0" - dir-glob "^3.0.1" - fast-glob "^3.2.9" - ignore "^5.2.0" - merge2 "^1.4.1" - slash "^3.0.0" - - globrex@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/globrex/-/globrex-0.1.2.tgz#dd5d9ec826232730cd6793a5e33a9302985e6098" - integrity sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg== - - graceful-fs@^4.1.3: - version "4.2.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" - integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== - - grapheme-splitter@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e" - integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== - - graphemer@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" - integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== - - has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - - ignore@^5.2.0: - version "5.2.4" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324" - integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== - - import-fresh@^3.0.0, import-fresh@^3.2.1: - version "3.3.0" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" - integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== - dependencies: - parent-module "^1.0.0" - resolve-from "^4.0.0" - - import-meta-resolve@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/import-meta-resolve/-/import-meta-resolve-3.0.0.tgz#94a6aabc623874fbc2f3525ec1300db71c6cbc11" - integrity sha512-4IwhLhNNA8yy445rPjD/lWh++7hMDOml2eHtd58eG7h+qK3EryMuuRbsHGPikCoAgIkkDnckKfWSk2iDla/ejg== - - imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== - - inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== - dependencies: - once "^1.3.0" - wrappy "1" - - inherits@2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - - intl-messageformat@^9.13.0: - version "9.13.0" - resolved "https://registry.yarnpkg.com/intl-messageformat/-/intl-messageformat-9.13.0.tgz#97360b73bd82212e4f6005c712a4a16053165468" - integrity sha512-7sGC7QnSQGa5LZP7bXLDhVDtQOeKGeBFGHF2Y8LVBwYZoQZCgWeKoPGTa5GMG8g/TzDgeXuYJQis7Ggiw2xTOw== - dependencies: - "@formatjs/ecma402-abstract" "1.11.4" - "@formatjs/fast-memoize" "1.2.1" - "@formatjs/icu-messageformat-parser" "2.1.0" - tslib "^2.1.0" - - is-binary-path@~2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" - - is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== - - is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - - is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" - integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== - dependencies: - is-extglob "^2.1.1" - - is-number@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" - integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== - - is-path-inside@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" - integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== - - is-promise@^2.2.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.2.2.tgz#39ab959ccbf9a774cf079f7b40c7a26f763135f1" - integrity sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ== - - isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== - - js-yaml@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" - integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== - dependencies: - argparse "^2.0.1" - - json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - - json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" - integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== - - kleur@^4.1.5: - version "4.1.5" - resolved "https://registry.yarnpkg.com/kleur/-/kleur-4.1.5.tgz#95106101795f7050c6c650f350c683febddb1780" - integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ== - - known-css-properties@^0.27.0: - version "0.27.0" - resolved "https://registry.yarnpkg.com/known-css-properties/-/known-css-properties-0.27.0.tgz#82a9358dda5fe7f7bd12b5e7142c0a205393c0c5" - integrity sha512-uMCj6+hZYDoffuvAJjFAPz56E9uoowFHmTkqRtRq5WyC5Q6Cu/fTZKNQpX/RbzChBYLLl3lo8CjFZBAZXq9qFg== - - levn@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" - integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== - dependencies: - prelude-ls "^1.2.1" - type-check "~0.4.0" - - lilconfig@^2.0.5: - version "2.1.0" - resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52" - integrity sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ== - - locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" - integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== - dependencies: - p-locate "^4.1.0" - - locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - - lodash.merge@^4.6.2: - version "4.6.2" - resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" - integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== - - lru-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" - integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== - dependencies: - yallist "^4.0.0" - - lru-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/lru-queue/-/lru-queue-0.1.0.tgz#2738bd9f0d3cf4f84490c5736c48699ac632cda3" - integrity sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ== - dependencies: - es5-ext "~0.10.2" - - magic-string@^0.27.0: - version "0.27.0" - resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.27.0.tgz#e4a3413b4bab6d98d2becffd48b4a257effdbbf3" - integrity sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA== - dependencies: - "@jridgewell/sourcemap-codec" "^1.4.13" - - magic-string@^0.30.0: - version "0.30.0" - resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.0.tgz#fd58a4748c5c4547338a424e90fa5dd17f4de529" - integrity sha512-LA+31JYDJLs82r2ScLrlz1GjSgu66ZV518eyWT+S8VhyQn/JL0u9MeBOvQMGYiPk1DBiSN9DDMOcXvigJZaViQ== - dependencies: - "@jridgewell/sourcemap-codec" "^1.4.13" - - memoizee@^0.4.15: - version "0.4.15" - resolved "https://registry.yarnpkg.com/memoizee/-/memoizee-0.4.15.tgz#e6f3d2da863f318d02225391829a6c5956555b72" - integrity sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ== - dependencies: - d "^1.0.1" - es5-ext "^0.10.53" - es6-weak-map "^2.0.3" - event-emitter "^0.3.5" - is-promise "^2.2.2" - lru-queue "^0.1.0" - next-tick "^1.1.0" - timers-ext "^0.1.7" - - merge2@^1.3.0, merge2@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" - integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== - - micromatch@^4.0.4: - version "4.0.5" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" - integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== - dependencies: - braces "^3.0.2" - picomatch "^2.3.1" - - mime@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-3.0.0.tgz#b374550dca3a0c18443b0c950a6a58f1931cf7a7" - integrity sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A== - - min-indent@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" - integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== - - minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== - dependencies: - brace-expansion "^1.1.7" - - minimist@^1.2.0, minimist@^1.2.6: - version "1.2.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" - integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== - - mkdirp@^0.5.1: - version "0.5.6" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" - integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== - dependencies: - minimist "^1.2.6" - - mri@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b" - integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA== - - mrmime@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/mrmime/-/mrmime-1.0.1.tgz#5f90c825fad4bdd41dc914eff5d1a8cfdaf24f27" - integrity sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw== - - ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - - nanoid@^3.3.6: - version "3.3.6" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.6.tgz#443380c856d6e9f9824267d960b4236ad583ea4c" - integrity sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA== - - natural-compare-lite@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" - integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== - - natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== - - next-tick@1, next-tick@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb" - integrity sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ== - - normalize-path@^3.0.0, normalize-path@~3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - - once@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== - dependencies: - wrappy "1" - - optionator@^0.9.1: - version "0.9.1" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" - integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== - dependencies: - deep-is "^0.1.3" - fast-levenshtein "^2.0.6" - levn "^0.4.1" - prelude-ls "^1.2.1" - type-check "^0.4.0" - word-wrap "^1.2.3" - - p-limit@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - - p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - - p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" - integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== - dependencies: - p-limit "^2.2.0" - - p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - - p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - - parent-module@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" - integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== - dependencies: - callsites "^3.0.0" - - path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - - path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== - - path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - - path-type@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" - integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== - - picocolors@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" - integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== - - picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" - integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== - - pngjs@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-5.0.0.tgz#e79dd2b215767fd9c04561c01236df960bce7fbb" - integrity sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw== - - postcss-load-config@^3.1.4: - version "3.1.4" - resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-3.1.4.tgz#1ab2571faf84bb078877e1d07905eabe9ebda855" - integrity sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg== - dependencies: - lilconfig "^2.0.5" - yaml "^1.10.2" - - postcss-safe-parser@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz#bb4c29894171a94bc5c996b9a30317ef402adaa1" - integrity sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ== - - postcss@^8.4.23, postcss@^8.4.5: - version "8.4.24" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.24.tgz#f714dba9b2284be3cc07dbd2fc57ee4dc972d2df" - integrity sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg== - dependencies: - nanoid "^3.3.6" - picocolors "^1.0.0" - source-map-js "^1.0.2" - - prelude-ls@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" - integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== - - punycode@^2.1.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.0.tgz#f67fa67c94da8f4d0cfff981aee4118064199b8f" - integrity sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA== - - qrcode@^1.5.3: - version "1.5.3" - resolved "https://registry.yarnpkg.com/qrcode/-/qrcode-1.5.3.tgz#03afa80912c0dccf12bc93f615a535aad1066170" - integrity sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg== - dependencies: - dijkstrajs "^1.0.1" - encode-utf8 "^1.0.3" - pngjs "^5.0.0" - yargs "^15.3.1" - - queue-microtask@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" - integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== - - readdirp@~3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" - integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== - dependencies: - picomatch "^2.2.1" - - require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== - - require-main-filename@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" - integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== - - resolve-from@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" - integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== - - reusify@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" - integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== - - rimraf@^2.5.2: - version "2.7.1" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" - integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== - dependencies: - glob "^7.1.3" - - rimraf@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - - rollup@^3.21.0: - version "3.23.0" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.23.0.tgz#b8d6146dac4bf058ee817f92820988e9b358b564" - integrity sha512-h31UlwEi7FHihLe1zbk+3Q7z1k/84rb9BSwmBSr/XjOCEaBJ2YyedQDuM0t/kfOS0IxM+vk1/zI9XxYj9V+NJQ== - optionalDependencies: - fsevents "~2.3.2" - - run-parallel@^1.1.9: - version "1.2.0" - resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" - integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== - dependencies: - queue-microtask "^1.2.2" - - sade@^1.7.4, sade@^1.8.1: - version "1.8.1" - resolved "https://registry.yarnpkg.com/sade/-/sade-1.8.1.tgz#0a78e81d658d394887be57d2a409bf703a3b2701" - integrity sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A== - dependencies: - mri "^1.1.0" - - sander@^0.5.0: - version "0.5.1" - resolved "https://registry.yarnpkg.com/sander/-/sander-0.5.1.tgz#741e245e231f07cafb6fdf0f133adfa216a502ad" - integrity sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA== - dependencies: - es6-promise "^3.1.2" - graceful-fs "^4.1.3" - mkdirp "^0.5.1" - rimraf "^2.5.2" - - semver@^7.3.7: - version "7.5.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.1.tgz#c90c4d631cf74720e46b21c1d37ea07edfab91ec" - integrity sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw== - dependencies: - lru-cache "^6.0.0" - - set-blocking@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== - - set-cookie-parser@^2.6.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/set-cookie-parser/-/set-cookie-parser-2.6.0.tgz#131921e50f62ff1a66a461d7d62d7b21d5d15a51" - integrity sha512-RVnVQxTXuerk653XfuliOxBP81Sf0+qfQE73LIYKcyMYHG94AuH0kgrQpRDuTZnSmjpysHmzxJXKNfa6PjFhyQ== - - shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - - shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - - sirv@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/sirv/-/sirv-2.0.3.tgz#ca5868b87205a74bef62a469ed0296abceccd446" - integrity sha512-O9jm9BsID1P+0HOi81VpXPoDxYP374pkOLzACAoyUQ/3OUVndNpsz6wMnY2z+yOxzbllCKZrM+9QrWsv4THnyA== - dependencies: - "@polka/url" "^1.0.0-next.20" - mrmime "^1.0.0" - totalist "^3.0.0" - - slash@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" - integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== - - sorcery@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/sorcery/-/sorcery-0.11.0.tgz#310c80ee993433854bb55bb9aa4003acd147fca8" - integrity sha512-J69LQ22xrQB1cIFJhPfgtLuI6BpWRiWu1Y3vSsIwK/eAScqJxd/+CJlUuHQRdX2C9NGFamq+KqNywGgaThwfHw== - dependencies: - "@jridgewell/sourcemap-codec" "^1.4.14" - buffer-crc32 "^0.2.5" - minimist "^1.2.0" - sander "^0.5.0" - - source-map-js@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" - integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== - - streamsearch@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" - integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== - - string-width@^4.1.0, string-width@^4.2.0: - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - - strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - - strip-indent@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" - integrity sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ== - dependencies: - min-indent "^1.0.0" - - strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" - integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== - - supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - - svelte-check@^3.0.1: - version "3.4.3" - resolved "https://registry.yarnpkg.com/svelte-check/-/svelte-check-3.4.3.tgz#591c66568d227b22e6dab21de1dfc250ce2109d2" - integrity sha512-O07soQFY3X0VDt+bcGc6D5naz0cLtjwnmNP9JsEBPVyMemFEqUhL2OdLqvkl5H/u8Jwm50EiAU4BPRn5iin/kg== - dependencies: - "@jridgewell/trace-mapping" "^0.3.17" - chokidar "^3.4.1" - fast-glob "^3.2.7" - import-fresh "^3.2.1" - picocolors "^1.0.0" - sade "^1.7.4" - svelte-preprocess "^5.0.3" - typescript "^5.0.3" - - svelte-eslint-parser@^0.29.0: - version "0.29.0" - resolved "https://registry.yarnpkg.com/svelte-eslint-parser/-/svelte-eslint-parser-0.29.0.tgz#609fada00f2beb46894d632bd84f978bbf6a79c7" - integrity sha512-2uzOw9vRpSO3fo6NkbH7UynfCopQbMz/7LO9KT05YPvkB0uuFvFHex8+Ccv3gSrxHRvKS7FwJmV4H8WNWIzgWQ== - dependencies: - eslint-scope "^7.0.0" - eslint-visitor-keys "^3.0.0" - espree "^9.0.0" - - svelte-hmr@^0.15.1: - version "0.15.2" - resolved "https://registry.yarnpkg.com/svelte-hmr/-/svelte-hmr-0.15.2.tgz#d2f6fc82e040f2734abd54cea5cbef46828f2538" - integrity sha512-q/bAruCvFLwvNbeE1x3n37TYFb3mTBJ6TrCq6p2CoFbSTNhDE9oAtEfpy+wmc9So8AG0Tja+X0/mJzX9tSfvIg== - - svelte-i18n@^3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/svelte-i18n/-/svelte-i18n-3.6.0.tgz#0f345d066662dd8f46efefc0e867fb05b71c9dbd" - integrity sha512-qvvcMqHVCXJ5pHoQR5uGzWAW5vS3qB9mBq+W6veLZ6jkrzZGOziR+wyOUJsc59BupMh+Ae30qjOndFrRU6v5jA== - dependencies: - cli-color "^2.0.3" - deepmerge "^4.2.2" - estree-walker "^2" - intl-messageformat "^9.13.0" - sade "^1.8.1" - tiny-glob "^0.2.9" - - svelte-preprocess@^5.0.3: - version "5.0.4" - resolved "https://registry.yarnpkg.com/svelte-preprocess/-/svelte-preprocess-5.0.4.tgz#2123898e079a074f7f4ef1799e10e037f5bcc55b" - integrity sha512-ABia2QegosxOGsVlsSBJvoWeXy1wUKSfF7SWJdTjLAbx/Y3SrVevvvbFNQqrSJw89+lNSsM58SipmZJ5SRi5iw== - dependencies: - "@types/pug" "^2.0.6" - detect-indent "^6.1.0" - magic-string "^0.27.0" - sorcery "^0.11.0" - strip-indent "^3.0.0" - - svelte@^3.54.0: - version "3.59.1" - resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.59.1.tgz#3de3d56b9165748f32f3131589b8d183cabe7449" - integrity sha512-pKj8fEBmqf6mq3/NfrB9SLtcJcUvjYSWyePlfCqN9gujLB25RitWK8PvFzlwim6hD/We35KbPlRteuA6rnPGcQ== - - text-table@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== - - timers-ext@^0.1.7: - version "0.1.7" - resolved "https://registry.yarnpkg.com/timers-ext/-/timers-ext-0.1.7.tgz#6f57ad8578e07a3fb9f91d9387d65647555e25c6" - integrity sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ== - dependencies: - es5-ext "~0.10.46" - next-tick "1" - - tiny-glob@^0.2.9: - version "0.2.9" - resolved "https://registry.yarnpkg.com/tiny-glob/-/tiny-glob-0.2.9.tgz#2212d441ac17928033b110f8b3640683129d31e2" - integrity sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg== - dependencies: - globalyzer "0.1.0" - globrex "^0.1.2" - - to-regex-range@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" - integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== - dependencies: - is-number "^7.0.0" - - totalist@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/totalist/-/totalist-3.0.1.tgz#ba3a3d600c915b1a97872348f79c127475f6acf8" - integrity sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ== - - tslib@^1.8.1: - version "1.14.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== - - tslib@^2.1.0, tslib@^2.4.1: - version "2.5.2" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.2.tgz#1b6f07185c881557b0ffa84b111a0106989e8338" - integrity sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA== - - tsutils@^3.21.0: - version "3.21.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" - integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== - dependencies: - tslib "^1.8.1" - - type-check@^0.4.0, type-check@~0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" - integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== - dependencies: - prelude-ls "^1.2.1" - - type-fest@^0.20.2: - version "0.20.2" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" - integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== - - type@^1.0.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/type/-/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" - integrity sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg== - - type@^2.7.2: - version "2.7.2" - resolved "https://registry.yarnpkg.com/type/-/type-2.7.2.tgz#2376a15a3a28b1efa0f5350dcf72d24df6ef98d0" - integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw== - - typescript@^5.0.0, typescript@^5.0.3: - version "5.0.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b" - integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw== - - undici@~5.22.0: - version "5.22.1" - resolved "https://registry.yarnpkg.com/undici/-/undici-5.22.1.tgz#877d512effef2ac8be65e695f3586922e1a57d7b" - integrity sha512-Ji2IJhFXZY0x/0tVBXeQwgPlLWw13GVzpsWPQ3rV50IFMMof2I55PZZxtm4P6iNq+L5znYN9nSTAq0ZyE6lSJw== - dependencies: - busboy "^1.6.0" - - uri-js@^4.2.2: - version "4.4.1" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" - - vite@^4.3.0: - version "4.3.9" - resolved "https://registry.yarnpkg.com/vite/-/vite-4.3.9.tgz#db896200c0b1aa13b37cdc35c9e99ee2fdd5f96d" - integrity sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg== - dependencies: - esbuild "^0.17.5" - postcss "^8.4.23" - rollup "^3.21.0" - optionalDependencies: - fsevents "~2.3.2" - - vitefu@^0.2.4: - version "0.2.4" - resolved "https://registry.yarnpkg.com/vitefu/-/vitefu-0.2.4.tgz#212dc1a9d0254afe65e579351bed4e25d81e0b35" - integrity sha512-fanAXjSaf9xXtOOeno8wZXIhgia+CZury481LsDaV++lSvcU2R9Ch2bPh3PYFyoHW+w9LqAeYRISVQjUIew14g== - - which-module@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.1.tgz#776b1fe35d90aebe99e8ac15eb24093389a4a409" - integrity sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ== - - which@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - - word-wrap@^1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" - integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== - - wrap-ansi@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" - integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - - wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== - - y18n@^4.0.0: - version "4.0.3" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" - integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== - - yallist@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" - integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== - - yaml@^1.10.2: - version "1.10.2" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" - integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== - - yargs-parser@^18.1.2: - version "18.1.3" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" - integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - - yargs@^15.3.1: - version "15.4.1" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" - integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== - dependencies: - cliui "^6.0.0" - decamelize "^1.2.0" - find-up "^4.1.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^4.2.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^18.1.2" - - yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== diff --git a/tfweb/yarn.lock b/tfweb/yarn.lock deleted file mode 100644 index 310af27..0000000 --- a/tfweb/yarn.lock +++ /dev/null @@ -1,1871 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@esbuild/android-arm64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz#bafb75234a5d3d1b690e7c2956a599345e84a2fd" - integrity sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA== - -"@esbuild/android-arm@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.17.19.tgz#5898f7832c2298bc7d0ab53701c57beb74d78b4d" - integrity sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A== - -"@esbuild/android-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.17.19.tgz#658368ef92067866d95fb268719f98f363d13ae1" - integrity sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww== - -"@esbuild/darwin-arm64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz#584c34c5991b95d4d48d333300b1a4e2ff7be276" - integrity sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg== - -"@esbuild/darwin-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz#7751d236dfe6ce136cce343dce69f52d76b7f6cb" - integrity sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw== - -"@esbuild/freebsd-arm64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz#cacd171665dd1d500f45c167d50c6b7e539d5fd2" - integrity sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ== - -"@esbuild/freebsd-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz#0769456eee2a08b8d925d7c00b79e861cb3162e4" - integrity sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ== - -"@esbuild/linux-arm64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz#38e162ecb723862c6be1c27d6389f48960b68edb" - integrity sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg== - -"@esbuild/linux-arm@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz#1a2cd399c50040184a805174a6d89097d9d1559a" - integrity sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA== - -"@esbuild/linux-ia32@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz#e28c25266b036ce1cabca3c30155222841dc035a" - integrity sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ== - -"@esbuild/linux-loong64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz#0f887b8bb3f90658d1a0117283e55dbd4c9dcf72" - integrity sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ== - -"@esbuild/linux-mips64el@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz#f5d2a0b8047ea9a5d9f592a178ea054053a70289" - integrity sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A== - -"@esbuild/linux-ppc64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz#876590e3acbd9fa7f57a2c7d86f83717dbbac8c7" - integrity sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg== - -"@esbuild/linux-riscv64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz#7f49373df463cd9f41dc34f9b2262d771688bf09" - integrity sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA== - -"@esbuild/linux-s390x@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz#e2afd1afcaf63afe2c7d9ceacd28ec57c77f8829" - integrity sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q== - -"@esbuild/linux-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz#8a0e9738b1635f0c53389e515ae83826dec22aa4" - integrity sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw== - -"@esbuild/netbsd-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz#c29fb2453c6b7ddef9a35e2c18b37bda1ae5c462" - integrity sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q== - -"@esbuild/openbsd-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz#95e75a391403cb10297280d524d66ce04c920691" - integrity sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g== - -"@esbuild/sunos-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz#722eaf057b83c2575937d3ffe5aeb16540da7273" - integrity sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg== - -"@esbuild/win32-arm64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz#9aa9dc074399288bdcdd283443e9aeb6b9552b6f" - integrity sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag== - -"@esbuild/win32-ia32@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz#95ad43c62ad62485e210f6299c7b2571e48d2b03" - integrity sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw== - -"@esbuild/win32-x64@0.17.19": - version "0.17.19" - resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz#8cfaf2ff603e9aabb910e9c0558c26cf32744061" - integrity sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA== - -"@eslint-community/eslint-utils@^4.2.0": - version "4.4.0" - resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" - integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== - dependencies: - eslint-visitor-keys "^3.3.0" - -"@eslint-community/regexpp@^4.4.0": - version "4.5.1" - resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.5.1.tgz#cdd35dce4fa1a89a4fd42b1599eb35b3af408884" - integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ== - -"@eslint/eslintrc@^2.0.3": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.0.3.tgz#4910db5505f4d503f27774bf356e3704818a0331" - integrity sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ== - dependencies: - ajv "^6.12.4" - debug "^4.3.2" - espree "^9.5.2" - globals "^13.19.0" - ignore "^5.2.0" - import-fresh "^3.2.1" - js-yaml "^4.1.0" - minimatch "^3.1.2" - strip-json-comments "^3.1.1" - -"@eslint/js@8.41.0": - version "8.41.0" - resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.41.0.tgz#080321c3b68253522f7646b55b577dd99d2950b3" - integrity sha512-LxcyMGxwmTh2lY9FwHPGWOHmYFCZvbrFCBZL4FzSSsxsRPuhrYUg/49/0KDfW8tnIEaEHtfmn6+NPN+1DqaNmA== - -"@fortawesome/fontawesome-free@^6.4.2": - version "6.4.2" - resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-6.4.2.tgz#36b6a9cb5ffbecdf89815c94d0c0ffa489ac5ecb" - integrity sha512-m5cPn3e2+FDCOgi1mz0RexTUvvQibBebOUlUlW0+YrMjDTPkiJ6VTKukA1GRsvRw+12KyJndNjj0O4AgTxm2Pg== - -"@humanwhocodes/config-array@^0.11.8": - version "0.11.8" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz#03595ac2075a4dc0f191cc2131de14fbd7d410b9" - integrity sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g== - dependencies: - "@humanwhocodes/object-schema" "^1.2.1" - debug "^4.1.1" - minimatch "^3.0.5" - -"@humanwhocodes/module-importer@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" - integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== - -"@humanwhocodes/object-schema@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" - integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== - -"@jridgewell/resolve-uri@3.1.0": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" - integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== - -"@jridgewell/sourcemap-codec@1.4.14": - version "1.4.14" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" - integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== - -"@jridgewell/sourcemap-codec@^1.4.13", "@jridgewell/sourcemap-codec@^1.4.14": - version "1.4.15" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" - integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== - -"@jridgewell/trace-mapping@^0.3.17": - version "0.3.18" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz#25783b2086daf6ff1dcb53c9249ae480e4dd4cd6" - integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA== - dependencies: - "@jridgewell/resolve-uri" "3.1.0" - "@jridgewell/sourcemap-codec" "1.4.14" - -"@nodelib/fs.scandir@2.1.5": - version "2.1.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" - integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== - dependencies: - "@nodelib/fs.stat" "2.0.5" - run-parallel "^1.1.9" - -"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" - integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== - -"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": - version "1.2.8" - resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" - integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== - dependencies: - "@nodelib/fs.scandir" "2.1.5" - fastq "^1.6.0" - -"@polka/url@^1.0.0-next.20": - version "1.0.0-next.21" - resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.21.tgz#5de5a2385a35309427f6011992b544514d559aa1" - integrity sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g== - -"@popperjs/core@^2.11.8": - version "2.11.8" - resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.8.tgz#6b79032e760a0899cd4204710beede972a3a185f" - integrity sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A== - -"@rollup/plugin-commonjs@^25.0.0": - version "25.0.5" - resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-25.0.5.tgz#0bac8f985a5de151b4b09338847f8c7f20a28a29" - integrity sha512-xY8r/A9oisSeSuLCTfhssyDjo9Vp/eDiRLXkg1MXCcEEgEjPmLU+ZyDB20OOD0NlyDa/8SGbK5uIggF5XTx77w== - dependencies: - "@rollup/pluginutils" "^5.0.1" - commondir "^1.0.1" - estree-walker "^2.0.2" - glob "^8.0.3" - is-reference "1.2.1" - magic-string "^0.27.0" - -"@rollup/plugin-json@^6.0.0": - version "6.0.1" - resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-6.0.1.tgz#7e2efcf5ed549963f1444e010611d22f463931c0" - integrity sha512-RgVfl5hWMkxN1h/uZj8FVESvPuBJ/uf6ly6GTj0GONnkfoBN5KC0MSz+PN2OLDgYXMhtG0mWpTrkiOjoxAIevw== - dependencies: - "@rollup/pluginutils" "^5.0.1" - -"@rollup/plugin-node-resolve@^15.0.1": - version "15.2.3" - resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.3.tgz#e5e0b059bd85ca57489492f295ce88c2d4b0daf9" - integrity sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ== - dependencies: - "@rollup/pluginutils" "^5.0.1" - "@types/resolve" "1.20.2" - deepmerge "^4.2.2" - is-builtin-module "^3.2.1" - is-module "^1.0.0" - resolve "^1.22.1" - -"@rollup/pluginutils@^5.0.1": - version "5.0.5" - resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.0.5.tgz#bbb4c175e19ebfeeb8c132c2eea0ecb89941a66c" - integrity sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q== - dependencies: - "@types/estree" "^1.0.0" - estree-walker "^2.0.2" - picomatch "^2.3.1" - -"@sveltejs/adapter-auto@^2.0.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@sveltejs/adapter-auto/-/adapter-auto-2.1.0.tgz#cb36fd7081e3c4b1c9a9192b1a23c8c82dce8a1b" - integrity sha512-o2pZCfATFtA/Gw/BB0Xm7k4EYaekXxaPGER3xGSY3FvzFJGTlJlZjBseaXwYSM94lZ0HniOjTokN3cWaLX6fow== - dependencies: - import-meta-resolve "^3.0.0" - -"@sveltejs/adapter-node@^1.3.1": - version "1.3.1" - resolved "https://registry.yarnpkg.com/@sveltejs/adapter-node/-/adapter-node-1.3.1.tgz#b3d8dee1ae09d008b2add093e84cf085f3333bbc" - integrity sha512-A0VgRQDCDPzdLNoiAbcOxGw4zT1Mc+n1LwT1OmO350R7WxrEqdMUChPPOd1iMfIDWlP4ie6E2d/WQf5es2d4Zw== - dependencies: - "@rollup/plugin-commonjs" "^25.0.0" - "@rollup/plugin-json" "^6.0.0" - "@rollup/plugin-node-resolve" "^15.0.1" - rollup "^3.7.0" - -"@sveltejs/kit@^1.5.0": - version "1.20.0" - resolved "https://registry.yarnpkg.com/@sveltejs/kit/-/kit-1.20.0.tgz#5deed969badda2cd9d4c68c580362c492425be75" - integrity sha512-2ZW14afgcCQBk3BN8+FWUUCIZg+TKeDFuOMUpDNllTa6sKZ+YQNpxhsrt9abaZohPGsGGOYmk5fzy8D8MHVNBw== - dependencies: - "@sveltejs/vite-plugin-svelte" "^2.4.1" - "@types/cookie" "^0.5.1" - cookie "^0.5.0" - devalue "^4.3.1" - esm-env "^1.0.0" - kleur "^4.1.5" - magic-string "^0.30.0" - mime "^3.0.0" - sade "^1.8.1" - set-cookie-parser "^2.6.0" - sirv "^2.0.2" - tiny-glob "^0.2.9" - undici "~5.22.0" - -"@sveltejs/vite-plugin-svelte-inspector@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@sveltejs/vite-plugin-svelte-inspector/-/vite-plugin-svelte-inspector-1.0.2.tgz#da51dd8da54e69a706ad4793103f90aedae2c481" - integrity sha512-Cy1dUMcYCnDVV/hPLXa43YZJ2jGKVW5rA0xuNL9dlmYhT0yoS1g7+FOFSRlgk0BXKk/Oc7grs+8BVA5Iz2fr8A== - dependencies: - debug "^4.3.4" - -"@sveltejs/vite-plugin-svelte@^2.4.1": - version "2.4.1" - resolved "https://registry.yarnpkg.com/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.4.1.tgz#bab9d97a83fee641562f2657ce6ea755808bc149" - integrity sha512-bNNKvoRY89ptY7udeBSCmTdCVwkjmMcZ0j/z9J5MuedT8jPjq0zrknAo/jF1sToAza4NVaAgR9AkZoD9oJJmnA== - dependencies: - "@sveltejs/vite-plugin-svelte-inspector" "^1.0.2" - debug "^4.3.4" - deepmerge "^4.3.1" - kleur "^4.1.5" - magic-string "^0.30.0" - svelte-hmr "^0.15.1" - vitefu "^0.2.4" - -"@sveltekit-i18n/base@~1.3.0": - version "1.3.6" - resolved "https://registry.yarnpkg.com/@sveltekit-i18n/base/-/base-1.3.6.tgz#5e6cc199d2df6ec4cbda74bfe76f153c1f38cf47" - integrity sha512-zg0VBny0RIMuNcsNV4ESuXvMNIGlUvD+3b9ZCHRZHnzxwuIY+7wWVCyhTPsHvIQeXStLVVxaxPbNZ3LJUPE2EA== - -"@sveltekit-i18n/parser-default@~1.1.0": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@sveltekit-i18n/parser-default/-/parser-default-1.1.1.tgz#9443f5546bfea4c6d201ab07e98b66f76e5b4fe6" - integrity sha512-/gtzLlqm/sox7EoPKD56BxGZktK/syGc79EbJAPWY5KVitQD9SM0TP8yJCqDxTVPk7Lk0WJhrBGUE2Nn0f5M1w== - -"@types/cookie@^0.5.1": - version "0.5.1" - resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.5.1.tgz#b29aa1f91a59f35e29ff8f7cb24faf1a3a750554" - integrity sha512-COUnqfB2+ckwXXSFInsFdOAWQzCCx+a5hq2ruyj+Vjund94RJQd4LG2u9hnvJrTgunKAaax7ancBYlDrNYxA0g== - -"@types/estree@*", "@types/estree@^1.0.0": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.2.tgz#ff02bc3dc8317cd668dfec247b750ba1f1d62453" - integrity sha512-VeiPZ9MMwXjO32/Xu7+OwflfmeoRwkE/qzndw42gGtgJwZopBnzy2gD//NN1+go1mADzkDcqf/KnFRSjTJ8xJA== - -"@types/json-schema@^7.0.9": - version "7.0.12" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.12.tgz#d70faba7039d5fca54c83c7dbab41051d2b6f6cb" - integrity sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA== - -"@types/node@*": - version "20.2.5" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.2.5.tgz#26d295f3570323b2837d322180dfbf1ba156fefb" - integrity sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ== - -"@types/pug@^2.0.6": - version "2.0.6" - resolved "https://registry.yarnpkg.com/@types/pug/-/pug-2.0.6.tgz#f830323c88172e66826d0bde413498b61054b5a6" - integrity sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg== - -"@types/qrcode@^1.5.0": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@types/qrcode/-/qrcode-1.5.0.tgz#6a98fe9a9a7b2a9a3167b6dde17eff999eabe40b" - integrity sha512-x5ilHXRxUPIMfjtM+1vf/GPTRWZ81nqscursm5gMznJeK9M0YnZ1c3bEvRLQ0zSSgedLx1J6MGL231ObQGGhaA== - dependencies: - "@types/node" "*" - -"@types/resolve@1.20.2": - version "1.20.2" - resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.20.2.tgz#97d26e00cd4a0423b4af620abecf3e6f442b7975" - integrity sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q== - -"@types/semver@^7.3.12": - version "7.5.0" - resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.0.tgz#591c1ce3a702c45ee15f47a42ade72c2fd78978a" - integrity sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw== - -"@typescript-eslint/eslint-plugin@^5.45.0": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.8.tgz#1e7a3e5318ece22251dfbc5c9c6feeb4793cc509" - integrity sha512-JDMOmhXteJ4WVKOiHXGCoB96ADWg9q7efPWHRViT/f09bA8XOMLAVHHju3l0MkZnG1izaWXYmgvQcUjTRcpShQ== - dependencies: - "@eslint-community/regexpp" "^4.4.0" - "@typescript-eslint/scope-manager" "5.59.8" - "@typescript-eslint/type-utils" "5.59.8" - "@typescript-eslint/utils" "5.59.8" - debug "^4.3.4" - grapheme-splitter "^1.0.4" - ignore "^5.2.0" - natural-compare-lite "^1.4.0" - semver "^7.3.7" - tsutils "^3.21.0" - -"@typescript-eslint/parser@^5.45.0": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.59.8.tgz#60cbb00671d86cf746044ab797900b1448188567" - integrity sha512-AnR19RjJcpjoeGojmwZtCwBX/RidqDZtzcbG3xHrmz0aHHoOcbWnpDllenRDmDvsV0RQ6+tbb09/kyc+UT9Orw== - dependencies: - "@typescript-eslint/scope-manager" "5.59.8" - "@typescript-eslint/types" "5.59.8" - "@typescript-eslint/typescript-estree" "5.59.8" - debug "^4.3.4" - -"@typescript-eslint/scope-manager@5.59.8": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.59.8.tgz#ff4ad4fec6433647b817c4a7d4b4165d18ea2fa8" - integrity sha512-/w08ndCYI8gxGf+9zKf1vtx/16y8MHrZs5/tnjHhMLNSixuNcJavSX4wAiPf4aS5x41Es9YPCn44MIe4cxIlig== - dependencies: - "@typescript-eslint/types" "5.59.8" - "@typescript-eslint/visitor-keys" "5.59.8" - -"@typescript-eslint/type-utils@5.59.8": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.59.8.tgz#aa6c029a9d7706d26bbd25eb4666398781df6ea2" - integrity sha512-+5M518uEIHFBy3FnyqZUF3BMP+AXnYn4oyH8RF012+e7/msMY98FhGL5SrN29NQ9xDgvqCgYnsOiKp1VjZ/fpA== - dependencies: - "@typescript-eslint/typescript-estree" "5.59.8" - "@typescript-eslint/utils" "5.59.8" - debug "^4.3.4" - tsutils "^3.21.0" - -"@typescript-eslint/types@5.59.8": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.59.8.tgz#212e54414733618f5d0fd50b2da2717f630aebf8" - integrity sha512-+uWuOhBTj/L6awoWIg0BlWy0u9TyFpCHrAuQ5bNfxDaZ1Ppb3mx6tUigc74LHcbHpOHuOTOJrBoAnhdHdaea1w== - -"@typescript-eslint/typescript-estree@5.59.8": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.8.tgz#801a7b1766481629481b3b0878148bd7a1f345d7" - integrity sha512-Jy/lPSDJGNow14vYu6IrW790p7HIf/SOV1Bb6lZ7NUkLc2iB2Z9elESmsaUtLw8kVqogSbtLH9tut5GCX1RLDg== - dependencies: - "@typescript-eslint/types" "5.59.8" - "@typescript-eslint/visitor-keys" "5.59.8" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" - -"@typescript-eslint/utils@5.59.8": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.59.8.tgz#34d129f35a2134c67fdaf024941e8f96050dca2b" - integrity sha512-Tr65630KysnNn9f9G7ROF3w1b5/7f6QVCJ+WK9nhIocWmx9F+TmCAcglF26Vm7z8KCTwoKcNEBZrhlklla3CKg== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@types/json-schema" "^7.0.9" - "@types/semver" "^7.3.12" - "@typescript-eslint/scope-manager" "5.59.8" - "@typescript-eslint/types" "5.59.8" - "@typescript-eslint/typescript-estree" "5.59.8" - eslint-scope "^5.1.1" - semver "^7.3.7" - -"@typescript-eslint/visitor-keys@5.59.8": - version "5.59.8" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.8.tgz#aa6a7ef862add919401470c09e1609392ef3cc40" - integrity sha512-pJhi2ms0x0xgloT7xYabil3SGGlojNNKjK/q6dB3Ey0uJLMjK2UDGJvHieiyJVW/7C3KI+Z4Q3pEHkm4ejA+xQ== - dependencies: - "@typescript-eslint/types" "5.59.8" - eslint-visitor-keys "^3.3.0" - -acorn-jsx@^5.3.2: - version "5.3.2" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" - integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== - -acorn@^8.8.0: - version "8.8.2" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.2.tgz#1b2f25db02af965399b9776b0c2c391276d37c4a" - integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw== - -ajv@^6.10.0, ajv@^6.12.4: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - -ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - -ansi-styles@^4.0.0, ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -anymatch@~3.1.2: - version "3.1.3" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" - integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - -argparse@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" - integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== - -array-union@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" - integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== - -balanced-match@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" - integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== - -binary-extensions@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" - integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== - -bootstrap@^5.3.2: - version "5.3.2" - resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-5.3.2.tgz#97226583f27aae93b2b28ab23f4c114757ff16ae" - integrity sha512-D32nmNWiQHo94BKHLmOrdjlL05q1c8oxbtBphQFb9Z5to6eGRDCm0QgeaZ4zFBHzfg2++rqa2JkqCcxDy0sH0g== - -bootswatch@^5.3.2: - version "5.3.2" - resolved "https://registry.yarnpkg.com/bootswatch/-/bootswatch-5.3.2.tgz#b59aa9d37671cb25dd781e4a6d6773008d6c9356" - integrity sha512-r05xOSLSx7MJvjpk/uoU8wPYgkPHWLV+uenLaRsS7yBsqSUcWYPjeUkz+tmrRv6s1eFxkF08NvQfBSSPCTyYaA== - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -brace-expansion@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" - integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== - dependencies: - balanced-match "^1.0.0" - -braces@^3.0.2, braces@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== - dependencies: - fill-range "^7.0.1" - -buffer-crc32@^0.2.5: - version "0.2.13" - resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" - integrity sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ== - -builtin-modules@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6" - integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw== - -busboy@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893" - integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA== - dependencies: - streamsearch "^1.1.0" - -callsites@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" - integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== - -camelcase@^5.0.0: - version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - -chalk@^4.0.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -chokidar@^3.4.1: - version "3.5.3" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" - integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== - dependencies: - anymatch "~3.1.2" - braces "~3.0.2" - glob-parent "~5.1.2" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.6.0" - optionalDependencies: - fsevents "~2.3.2" - -cliui@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" - integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^6.2.0" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -commondir@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" - integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== - -cookie@^0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b" - integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw== - -cross-spawn@^7.0.2: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4: - version "4.3.4" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" - integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== - dependencies: - ms "2.1.2" - -decamelize@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== - -deep-is@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" - integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== - -deepmerge@^4.2.2, deepmerge@^4.3.1: - version "4.3.1" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" - integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== - -detect-indent@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.1.0.tgz#592485ebbbf6b3b1ab2be175c8393d04ca0d57e6" - integrity sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA== - -devalue@^4.3.1: - version "4.3.2" - resolved "https://registry.yarnpkg.com/devalue/-/devalue-4.3.2.tgz#cc44e4cf3872ac5a78229fbce3b77e57032727b5" - integrity sha512-KqFl6pOgOW+Y6wJgu80rHpo2/3H07vr8ntR9rkkFIRETewbf5GaYYcakYfiKz89K+sLsuPkQIZaXDMjUObZwWg== - -dijkstrajs@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/dijkstrajs/-/dijkstrajs-1.0.3.tgz#4c8dbdea1f0f6478bff94d9c49c784d623e4fc23" - integrity sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA== - -dir-glob@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" - integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== - dependencies: - path-type "^4.0.0" - -doctrine@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" - integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== - dependencies: - esutils "^2.0.2" - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -encode-utf8@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/encode-utf8/-/encode-utf8-1.0.3.tgz#f30fdd31da07fb596f281beb2f6b027851994cda" - integrity sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw== - -es6-promise@^3.1.2: - version "3.3.1" - resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-3.3.1.tgz#a08cdde84ccdbf34d027a1451bc91d4bcd28a613" - integrity sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg== - -esbuild@^0.17.5: - version "0.17.19" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.17.19.tgz#087a727e98299f0462a3d0bcdd9cd7ff100bd955" - integrity sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw== - optionalDependencies: - "@esbuild/android-arm" "0.17.19" - "@esbuild/android-arm64" "0.17.19" - "@esbuild/android-x64" "0.17.19" - "@esbuild/darwin-arm64" "0.17.19" - "@esbuild/darwin-x64" "0.17.19" - "@esbuild/freebsd-arm64" "0.17.19" - "@esbuild/freebsd-x64" "0.17.19" - "@esbuild/linux-arm" "0.17.19" - "@esbuild/linux-arm64" "0.17.19" - "@esbuild/linux-ia32" "0.17.19" - "@esbuild/linux-loong64" "0.17.19" - "@esbuild/linux-mips64el" "0.17.19" - "@esbuild/linux-ppc64" "0.17.19" - "@esbuild/linux-riscv64" "0.17.19" - "@esbuild/linux-s390x" "0.17.19" - "@esbuild/linux-x64" "0.17.19" - "@esbuild/netbsd-x64" "0.17.19" - "@esbuild/openbsd-x64" "0.17.19" - "@esbuild/sunos-x64" "0.17.19" - "@esbuild/win32-arm64" "0.17.19" - "@esbuild/win32-ia32" "0.17.19" - "@esbuild/win32-x64" "0.17.19" - -escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -eslint-plugin-svelte@^2.26.0: - version "2.29.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-svelte/-/eslint-plugin-svelte-2.29.0.tgz#f35adc8fc67b659f5253b16bd8c2875ceab6de6d" - integrity sha512-ukEC5z9ZXwDtwD8L12ei9doF9P/mQVeiLZiUxExWN9ZNTLNwZgfmEKx+s0tNio0YnYHzKz6qELxFei4SqVbLkQ== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@jridgewell/sourcemap-codec" "^1.4.14" - debug "^4.3.1" - esutils "^2.0.3" - known-css-properties "^0.27.0" - postcss "^8.4.5" - postcss-load-config "^3.1.4" - postcss-safe-parser "^6.0.0" - svelte-eslint-parser "^0.29.0" - -eslint-scope@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" - integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== - dependencies: - esrecurse "^4.3.0" - estraverse "^4.1.1" - -eslint-scope@^7.0.0, eslint-scope@^7.2.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.0.tgz#f21ebdafda02352f103634b96dd47d9f81ca117b" - integrity sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw== - dependencies: - esrecurse "^4.3.0" - estraverse "^5.2.0" - -eslint-visitor-keys@^3.0.0, eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1: - version "3.4.1" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz#c22c48f48942d08ca824cc526211ae400478a994" - integrity sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA== - -eslint@^8.28.0: - version "8.41.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.41.0.tgz#3062ca73363b4714b16dbc1e60f035e6134b6f1c" - integrity sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@eslint-community/regexpp" "^4.4.0" - "@eslint/eslintrc" "^2.0.3" - "@eslint/js" "8.41.0" - "@humanwhocodes/config-array" "^0.11.8" - "@humanwhocodes/module-importer" "^1.0.1" - "@nodelib/fs.walk" "^1.2.8" - ajv "^6.10.0" - chalk "^4.0.0" - cross-spawn "^7.0.2" - debug "^4.3.2" - doctrine "^3.0.0" - escape-string-regexp "^4.0.0" - eslint-scope "^7.2.0" - eslint-visitor-keys "^3.4.1" - espree "^9.5.2" - esquery "^1.4.2" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" - find-up "^5.0.0" - glob-parent "^6.0.2" - globals "^13.19.0" - graphemer "^1.4.0" - ignore "^5.2.0" - import-fresh "^3.0.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - 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.1" - strip-ansi "^6.0.1" - strip-json-comments "^3.1.0" - text-table "^0.2.0" - -esm-env@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/esm-env/-/esm-env-1.0.0.tgz#b124b40b180711690a4cb9b00d16573391950413" - integrity sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA== - -espree@^9.0.0, espree@^9.5.2: - version "9.5.2" - resolved "https://registry.yarnpkg.com/espree/-/espree-9.5.2.tgz#e994e7dc33a082a7a82dceaf12883a829353215b" - integrity sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw== - dependencies: - acorn "^8.8.0" - acorn-jsx "^5.3.2" - eslint-visitor-keys "^3.4.1" - -esquery@^1.4.2: - version "1.5.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b" - integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== - dependencies: - estraverse "^5.1.0" - -esrecurse@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" - integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== - dependencies: - estraverse "^5.2.0" - -estraverse@^4.1.1: - version "4.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" - integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== - -estraverse@^5.1.0, estraverse@^5.2.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - -estree-walker@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" - integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== - -esutils@^2.0.2, esutils@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - -fast-glob@^3.2.7, fast-glob@^3.2.9: - version "3.2.12" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80" - integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w== - dependencies: - "@nodelib/fs.stat" "^2.0.2" - "@nodelib/fs.walk" "^1.2.3" - glob-parent "^5.1.2" - merge2 "^1.3.0" - micromatch "^4.0.4" - -fast-json-stable-stringify@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" - integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== - -fast-levenshtein@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== - -fastq@^1.6.0: - version "1.15.0" - resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.15.0.tgz#d04d07c6a2a68fe4599fea8d2e103a937fae6b3a" - integrity sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw== - dependencies: - reusify "^1.0.4" - -file-entry-cache@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" - integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== - dependencies: - flat-cache "^3.0.4" - -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - -find-up@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" - integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" - -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -flat-cache@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" - integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== - dependencies: - flatted "^3.1.0" - rimraf "^3.0.2" - -flatted@^3.1.0: - version "3.2.7" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787" - integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== - -fsevents@~2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== - -get-caller-file@^2.0.1: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -glob-parent@^5.1.2, glob-parent@~5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" - integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== - dependencies: - is-glob "^4.0.1" - -glob-parent@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" - integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== - dependencies: - is-glob "^4.0.3" - -glob@^7.1.3: - version "7.2.3" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" - integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.1.1" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^8.0.3: - version "8.1.0" - resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e" - integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^5.0.1" - once "^1.3.0" - -globals@^13.19.0: - version "13.20.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.20.0.tgz#ea276a1e508ffd4f1612888f9d1bad1e2717bf82" - integrity sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ== - dependencies: - type-fest "^0.20.2" - -globalyzer@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/globalyzer/-/globalyzer-0.1.0.tgz#cb76da79555669a1519d5a8edf093afaa0bf1465" - integrity sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q== - -globby@^11.1.0: - version "11.1.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" - integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== - dependencies: - array-union "^2.1.0" - dir-glob "^3.0.1" - fast-glob "^3.2.9" - ignore "^5.2.0" - merge2 "^1.4.1" - slash "^3.0.0" - -globrex@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/globrex/-/globrex-0.1.2.tgz#dd5d9ec826232730cd6793a5e33a9302985e6098" - integrity sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg== - -graceful-fs@^4.1.3: - version "4.2.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" - integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== - -grapheme-splitter@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e" - integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== - -graphemer@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" - integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/has/-/has-1.0.4.tgz#2eb2860e000011dae4f1406a86fe80e530fb2ec6" - integrity sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ== - -ignore@^5.2.0: - version "5.2.4" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324" - integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== - -import-fresh@^3.0.0, import-fresh@^3.2.1: - version "3.3.0" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" - integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== - dependencies: - parent-module "^1.0.0" - resolve-from "^4.0.0" - -import-meta-resolve@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/import-meta-resolve/-/import-meta-resolve-3.0.0.tgz#94a6aabc623874fbc2f3525ec1300db71c6cbc11" - integrity sha512-4IwhLhNNA8yy445rPjD/lWh++7hMDOml2eHtd58eG7h+qK3EryMuuRbsHGPikCoAgIkkDnckKfWSk2iDla/ejg== - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -is-binary-path@~2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" - -is-builtin-module@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-3.2.1.tgz#f03271717d8654cfcaf07ab0463faa3571581169" - integrity sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A== - dependencies: - builtin-modules "^3.3.0" - -is-core-module@^2.13.0: - version "2.13.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.0.tgz#bb52aa6e2cbd49a30c2ba68c42bf3435ba6072db" - integrity sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ== - dependencies: - has "^1.0.3" - -is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" - integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== - dependencies: - is-extglob "^2.1.1" - -is-module@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591" - integrity sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g== - -is-number@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" - integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== - -is-path-inside@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" - integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== - -is-reference@1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/is-reference/-/is-reference-1.2.1.tgz#8b2dac0b371f4bc994fdeaba9eb542d03002d0b7" - integrity sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ== - dependencies: - "@types/estree" "*" - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== - -js-yaml@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" - integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== - dependencies: - argparse "^2.0.1" - -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - -json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" - integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== - -kleur@^4.1.5: - version "4.1.5" - resolved "https://registry.yarnpkg.com/kleur/-/kleur-4.1.5.tgz#95106101795f7050c6c650f350c683febddb1780" - integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ== - -known-css-properties@^0.27.0: - version "0.27.0" - resolved "https://registry.yarnpkg.com/known-css-properties/-/known-css-properties-0.27.0.tgz#82a9358dda5fe7f7bd12b5e7142c0a205393c0c5" - integrity sha512-uMCj6+hZYDoffuvAJjFAPz56E9uoowFHmTkqRtRq5WyC5Q6Cu/fTZKNQpX/RbzChBYLLl3lo8CjFZBAZXq9qFg== - -levn@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" - integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== - dependencies: - prelude-ls "^1.2.1" - type-check "~0.4.0" - -lilconfig@^2.0.5: - version "2.1.0" - resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52" - integrity sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ== - -locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" - integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== - dependencies: - p-locate "^4.1.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -lodash.merge@^4.6.2: - version "4.6.2" - resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" - integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== - -lru-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" - integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== - dependencies: - yallist "^4.0.0" - -magic-string@^0.27.0: - version "0.27.0" - resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.27.0.tgz#e4a3413b4bab6d98d2becffd48b4a257effdbbf3" - integrity sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA== - dependencies: - "@jridgewell/sourcemap-codec" "^1.4.13" - -magic-string@^0.30.0: - version "0.30.0" - resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.0.tgz#fd58a4748c5c4547338a424e90fa5dd17f4de529" - integrity sha512-LA+31JYDJLs82r2ScLrlz1GjSgu66ZV518eyWT+S8VhyQn/JL0u9MeBOvQMGYiPk1DBiSN9DDMOcXvigJZaViQ== - dependencies: - "@jridgewell/sourcemap-codec" "^1.4.13" - -merge2@^1.3.0, merge2@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" - integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== - -micromatch@^4.0.4: - version "4.0.5" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" - integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== - dependencies: - braces "^3.0.2" - picomatch "^2.3.1" - -mime@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-3.0.0.tgz#b374550dca3a0c18443b0c950a6a58f1931cf7a7" - integrity sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A== - -min-indent@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" - integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== - -minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== - dependencies: - brace-expansion "^1.1.7" - -minimatch@^5.0.1: - version "5.1.6" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96" - integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== - dependencies: - brace-expansion "^2.0.1" - -minimist@^1.2.0, minimist@^1.2.6: - version "1.2.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" - integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== - -mkdirp@^0.5.1: - version "0.5.6" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" - integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== - dependencies: - minimist "^1.2.6" - -mri@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b" - integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA== - -mrmime@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/mrmime/-/mrmime-1.0.1.tgz#5f90c825fad4bdd41dc914eff5d1a8cfdaf24f27" - integrity sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw== - -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -nanoid@^3.3.6: - version "3.3.6" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.6.tgz#443380c856d6e9f9824267d960b4236ad583ea4c" - integrity sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA== - -natural-compare-lite@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" - integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== - -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== - -normalize-path@^3.0.0, normalize-path@~3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - -once@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== - dependencies: - wrappy "1" - -optionator@^0.9.1: - version "0.9.1" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" - integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== - dependencies: - deep-is "^0.1.3" - fast-levenshtein "^2.0.6" - levn "^0.4.1" - prelude-ls "^1.2.1" - type-check "^0.4.0" - word-wrap "^1.2.3" - -p-limit@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" - integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== - dependencies: - p-limit "^2.2.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - -parent-module@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" - integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== - dependencies: - callsites "^3.0.0" - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== - -path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -path-parse@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" - integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== - -path-type@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" - integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== - -picocolors@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" - integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== - -picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" - integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== - -pngjs@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-5.0.0.tgz#e79dd2b215767fd9c04561c01236df960bce7fbb" - integrity sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw== - -postcss-load-config@^3.1.4: - version "3.1.4" - resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-3.1.4.tgz#1ab2571faf84bb078877e1d07905eabe9ebda855" - integrity sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg== - dependencies: - lilconfig "^2.0.5" - yaml "^1.10.2" - -postcss-safe-parser@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz#bb4c29894171a94bc5c996b9a30317ef402adaa1" - integrity sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ== - -postcss@^8.4.23, postcss@^8.4.5: - version "8.4.24" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.24.tgz#f714dba9b2284be3cc07dbd2fc57ee4dc972d2df" - integrity sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg== - dependencies: - nanoid "^3.3.6" - picocolors "^1.0.0" - source-map-js "^1.0.2" - -prelude-ls@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" - integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== - -punycode@^2.1.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.0.tgz#f67fa67c94da8f4d0cfff981aee4118064199b8f" - integrity sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA== - -qrcode@^1.5.3: - version "1.5.3" - resolved "https://registry.yarnpkg.com/qrcode/-/qrcode-1.5.3.tgz#03afa80912c0dccf12bc93f615a535aad1066170" - integrity sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg== - dependencies: - dijkstrajs "^1.0.1" - encode-utf8 "^1.0.3" - pngjs "^5.0.0" - yargs "^15.3.1" - -queue-microtask@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" - integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== - -readdirp@~3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" - integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== - dependencies: - picomatch "^2.2.1" - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== - -require-main-filename@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" - integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== - -resolve-from@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" - integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== - -resolve@^1.22.1: - version "1.22.6" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.6.tgz#dd209739eca3aef739c626fea1b4f3c506195362" - integrity sha512-njhxM7mV12JfufShqGy3Rz8j11RPdLy4xi15UurGJeoHLfJpVXKdh3ueuOqbYUcDZnffr6X739JBo5LzyahEsw== - dependencies: - is-core-module "^2.13.0" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - -reusify@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" - integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== - -rimraf@^2.5.2: - version "2.7.1" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" - integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== - dependencies: - glob "^7.1.3" - -rimraf@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -rollup@^3.21.0: - version "3.23.0" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.23.0.tgz#b8d6146dac4bf058ee817f92820988e9b358b564" - integrity sha512-h31UlwEi7FHihLe1zbk+3Q7z1k/84rb9BSwmBSr/XjOCEaBJ2YyedQDuM0t/kfOS0IxM+vk1/zI9XxYj9V+NJQ== - optionalDependencies: - fsevents "~2.3.2" - -rollup@^3.7.0: - version "3.29.4" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.4.tgz#4d70c0f9834146df8705bfb69a9a19c9e1109981" - integrity sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw== - optionalDependencies: - fsevents "~2.3.2" - -run-parallel@^1.1.9: - version "1.2.0" - resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" - integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== - dependencies: - queue-microtask "^1.2.2" - -sade@^1.7.4, sade@^1.8.1: - version "1.8.1" - resolved "https://registry.yarnpkg.com/sade/-/sade-1.8.1.tgz#0a78e81d658d394887be57d2a409bf703a3b2701" - integrity sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A== - dependencies: - mri "^1.1.0" - -sander@^0.5.0: - version "0.5.1" - resolved "https://registry.yarnpkg.com/sander/-/sander-0.5.1.tgz#741e245e231f07cafb6fdf0f133adfa216a502ad" - integrity sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA== - dependencies: - es6-promise "^3.1.2" - graceful-fs "^4.1.3" - mkdirp "^0.5.1" - rimraf "^2.5.2" - -semver@^7.3.7: - version "7.5.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.1.tgz#c90c4d631cf74720e46b21c1d37ea07edfab91ec" - integrity sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw== - dependencies: - lru-cache "^6.0.0" - -set-blocking@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== - -set-cookie-parser@^2.6.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/set-cookie-parser/-/set-cookie-parser-2.6.0.tgz#131921e50f62ff1a66a461d7d62d7b21d5d15a51" - integrity sha512-RVnVQxTXuerk653XfuliOxBP81Sf0+qfQE73LIYKcyMYHG94AuH0kgrQpRDuTZnSmjpysHmzxJXKNfa6PjFhyQ== - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -sirv@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/sirv/-/sirv-2.0.3.tgz#ca5868b87205a74bef62a469ed0296abceccd446" - integrity sha512-O9jm9BsID1P+0HOi81VpXPoDxYP374pkOLzACAoyUQ/3OUVndNpsz6wMnY2z+yOxzbllCKZrM+9QrWsv4THnyA== - dependencies: - "@polka/url" "^1.0.0-next.20" - mrmime "^1.0.0" - totalist "^3.0.0" - -slash@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" - integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== - -sorcery@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/sorcery/-/sorcery-0.11.0.tgz#310c80ee993433854bb55bb9aa4003acd147fca8" - integrity sha512-J69LQ22xrQB1cIFJhPfgtLuI6BpWRiWu1Y3vSsIwK/eAScqJxd/+CJlUuHQRdX2C9NGFamq+KqNywGgaThwfHw== - dependencies: - "@jridgewell/sourcemap-codec" "^1.4.14" - buffer-crc32 "^0.2.5" - minimist "^1.2.0" - sander "^0.5.0" - -source-map-js@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" - integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== - -streamsearch@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" - integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== - -string-width@^4.1.0, string-width@^4.2.0: - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-indent@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" - integrity sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ== - dependencies: - min-indent "^1.0.0" - -strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" - integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== - -supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -supports-preserve-symlinks-flag@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" - integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== - -svelte-check@^3.0.1: - version "3.4.3" - resolved "https://registry.yarnpkg.com/svelte-check/-/svelte-check-3.4.3.tgz#591c66568d227b22e6dab21de1dfc250ce2109d2" - integrity sha512-O07soQFY3X0VDt+bcGc6D5naz0cLtjwnmNP9JsEBPVyMemFEqUhL2OdLqvkl5H/u8Jwm50EiAU4BPRn5iin/kg== - dependencies: - "@jridgewell/trace-mapping" "^0.3.17" - chokidar "^3.4.1" - fast-glob "^3.2.7" - import-fresh "^3.2.1" - picocolors "^1.0.0" - sade "^1.7.4" - svelte-preprocess "^5.0.3" - typescript "^5.0.3" - -svelte-eslint-parser@^0.29.0: - version "0.29.0" - resolved "https://registry.yarnpkg.com/svelte-eslint-parser/-/svelte-eslint-parser-0.29.0.tgz#609fada00f2beb46894d632bd84f978bbf6a79c7" - integrity sha512-2uzOw9vRpSO3fo6NkbH7UynfCopQbMz/7LO9KT05YPvkB0uuFvFHex8+Ccv3gSrxHRvKS7FwJmV4H8WNWIzgWQ== - dependencies: - eslint-scope "^7.0.0" - eslint-visitor-keys "^3.0.0" - espree "^9.0.0" - -svelte-hmr@^0.15.1: - version "0.15.2" - resolved "https://registry.yarnpkg.com/svelte-hmr/-/svelte-hmr-0.15.2.tgz#d2f6fc82e040f2734abd54cea5cbef46828f2538" - integrity sha512-q/bAruCvFLwvNbeE1x3n37TYFb3mTBJ6TrCq6p2CoFbSTNhDE9oAtEfpy+wmc9So8AG0Tja+X0/mJzX9tSfvIg== - -svelte-preprocess@^5.0.3: - version "5.0.4" - resolved "https://registry.yarnpkg.com/svelte-preprocess/-/svelte-preprocess-5.0.4.tgz#2123898e079a074f7f4ef1799e10e037f5bcc55b" - integrity sha512-ABia2QegosxOGsVlsSBJvoWeXy1wUKSfF7SWJdTjLAbx/Y3SrVevvvbFNQqrSJw89+lNSsM58SipmZJ5SRi5iw== - dependencies: - "@types/pug" "^2.0.6" - detect-indent "^6.1.0" - magic-string "^0.27.0" - sorcery "^0.11.0" - strip-indent "^3.0.0" - -svelte@^3.54.0: - version "3.59.1" - resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.59.1.tgz#3de3d56b9165748f32f3131589b8d183cabe7449" - integrity sha512-pKj8fEBmqf6mq3/NfrB9SLtcJcUvjYSWyePlfCqN9gujLB25RitWK8PvFzlwim6hD/We35KbPlRteuA6rnPGcQ== - -sveltekit-i18n@^2.4.2: - version "2.4.2" - resolved "https://registry.yarnpkg.com/sveltekit-i18n/-/sveltekit-i18n-2.4.2.tgz#9bba204630b098425d5b87838c13213596d75a6d" - integrity sha512-hjRWn4V4DBL8JQKJoJa3MRvn6d32Zo+rWkoSP5bsQ/XIAguPdQUZJ8LMe6Nc1rST8WEVdu9+vZI3aFdKYGR3+Q== - dependencies: - "@sveltekit-i18n/base" "~1.3.0" - "@sveltekit-i18n/parser-default" "~1.1.0" - -text-table@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== - -tiny-glob@^0.2.9: - version "0.2.9" - resolved "https://registry.yarnpkg.com/tiny-glob/-/tiny-glob-0.2.9.tgz#2212d441ac17928033b110f8b3640683129d31e2" - integrity sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg== - dependencies: - globalyzer "0.1.0" - globrex "^0.1.2" - -to-regex-range@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" - integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== - dependencies: - is-number "^7.0.0" - -totalist@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/totalist/-/totalist-3.0.1.tgz#ba3a3d600c915b1a97872348f79c127475f6acf8" - integrity sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ== - -tslib@^1.8.1: - version "1.14.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== - -tslib@^2.4.1: - version "2.5.2" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.2.tgz#1b6f07185c881557b0ffa84b111a0106989e8338" - integrity sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA== - -tsutils@^3.21.0: - version "3.21.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" - integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== - dependencies: - tslib "^1.8.1" - -type-check@^0.4.0, type-check@~0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" - integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== - dependencies: - prelude-ls "^1.2.1" - -type-fest@^0.20.2: - version "0.20.2" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" - integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== - -typescript@^5.0.0, typescript@^5.0.3: - version "5.0.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b" - integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw== - -undici@~5.22.0: - version "5.22.1" - resolved "https://registry.yarnpkg.com/undici/-/undici-5.22.1.tgz#877d512effef2ac8be65e695f3586922e1a57d7b" - integrity sha512-Ji2IJhFXZY0x/0tVBXeQwgPlLWw13GVzpsWPQ3rV50IFMMof2I55PZZxtm4P6iNq+L5znYN9nSTAq0ZyE6lSJw== - dependencies: - busboy "^1.6.0" - -uri-js@^4.2.2: - version "4.4.1" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" - -vite@^4.3.0: - version "4.3.9" - resolved "https://registry.yarnpkg.com/vite/-/vite-4.3.9.tgz#db896200c0b1aa13b37cdc35c9e99ee2fdd5f96d" - integrity sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg== - dependencies: - esbuild "^0.17.5" - postcss "^8.4.23" - rollup "^3.21.0" - optionalDependencies: - fsevents "~2.3.2" - -vitefu@^0.2.4: - version "0.2.4" - resolved "https://registry.yarnpkg.com/vitefu/-/vitefu-0.2.4.tgz#212dc1a9d0254afe65e579351bed4e25d81e0b35" - integrity sha512-fanAXjSaf9xXtOOeno8wZXIhgia+CZury481LsDaV++lSvcU2R9Ch2bPh3PYFyoHW+w9LqAeYRISVQjUIew14g== - -which-module@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.1.tgz#776b1fe35d90aebe99e8ac15eb24093389a4a409" - integrity sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ== - -which@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -word-wrap@^1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" - integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== - -wrap-ansi@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" - integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== - -y18n@^4.0.0: - version "4.0.3" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" - integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== - -yallist@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" - integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== - -yaml@^1.10.2: - version "1.10.2" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" - integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== - -yargs-parser@^18.1.2: - version "18.1.3" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" - integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - -yargs@^15.3.1: - version "15.4.1" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" - integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== - dependencies: - cliui "^6.0.0" - decamelize "^1.2.0" - find-up "^4.1.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^4.2.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^18.1.2" - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== diff --git a/trifid-api-derive/src/lib.rs b/trifid-api-derive/src/lib.rs index e69de29..8b13789 100644 --- a/trifid-api-derive/src/lib.rs +++ b/trifid-api-derive/src/lib.rs @@ -0,0 +1 @@ + diff --git a/trifid-api/Cargo.toml b/trifid-api/Cargo.toml index 0138a65..06d7598 100644 --- a/trifid-api/Cargo.toml +++ b/trifid-api/Cargo.toml @@ -29,4 +29,5 @@ totp-rs = { version = "5.4", features = ["gen_secret", "otpauth"] } trifid-pki = { version = "0.1", path = "../trifid-pki", features = ["serde_derive"] } chacha20poly1305 = "0.10" hex = "0.4" -thiserror = "1" \ No newline at end of file +thiserror = "1" +chrono = "0.4" \ No newline at end of file diff --git a/trifid-api/src/ca.rs b/trifid-api/src/ca.rs index 79d7c18..79f9f72 100644 --- a/trifid-api/src/ca.rs +++ b/trifid-api/src/ca.rs @@ -1,16 +1,16 @@ +use crate::config::Config; +use crate::models::SigningCA; +use actix_web::cookie::time::Duration; +use chacha20poly1305::aead::{Aead, Payload}; +use chacha20poly1305::{AeadCore, KeyInit, Nonce, XChaCha20Poly1305, XNonce}; +use log::error; +use rand::rngs::OsRng; +use rand::Rng; use std::error::Error; use std::time::SystemTime; -use actix_web::cookie::time::Duration; -use chacha20poly1305::{AeadCore, KeyInit, Nonce, XChaCha20Poly1305, XNonce}; -use chacha20poly1305::aead::{Aead, Payload}; -use log::error; -use rand::Rng; -use rand::rngs::OsRng; use thiserror::Error; -use crate::models::SigningCA; use trifid_pki::cert::{NebulaCertificate, NebulaCertificateDetails}; use trifid_pki::ed25519_dalek::{SignatureError, SigningKey}; -use crate::config::Config; #[derive(Error, Debug)] pub enum CryptographyError { @@ -33,10 +33,15 @@ pub enum CryptographyError { #[error("Invalid signing key length after lockbox unlock")] InvalidSigningKeyLength, #[error("Signature error {0}")] - SignatureError(SignatureError) + SignatureError(SignatureError), } -pub fn create_signing_ca(expires: SystemTime, org_id: String, user_email: String, config: &Config) -> Result { +pub fn create_signing_ca( + expires: SystemTime, + org_id: String, + user_email: String, + config: &Config, +) -> Result { let key = SigningKey::generate(&mut OsRng); let mut cert = NebulaCertificate { @@ -53,22 +58,35 @@ pub fn create_signing_ca(expires: SystemTime, org_id: String, user_email: String }, signature: vec![], }; - cert.sign(&key).map_err(|e| CryptographyError::CertificateSigningError(e))?; + cert.sign(&key) + .map_err(|e| CryptographyError::CertificateSigningError(e))?; - let pem = cert.serialize_to_pem().map_err(|e| CryptographyError::PemSerializeError(e))?; - - let cert_value = serde_json::to_value(cert).map_err(|e| CryptographyError::JsonSerializeError(e))?; - - let lockbox_key = XChaCha20Poly1305::new_from_slice(&hex::decode(&config.tokens.data_encryption_key).map_err(|e| CryptographyError::InvalidKey(e))?).map_err(|_| CryptographyError::InvalidKeyLength)?; + let pem = cert + .serialize_to_pem() + .map_err(|e| CryptographyError::PemSerializeError(e))?; + + let cert_value = + serde_json::to_value(cert).map_err(|e| CryptographyError::JsonSerializeError(e))?; + + let lockbox_key = XChaCha20Poly1305::new_from_slice( + &hex::decode(&config.tokens.data_encryption_key) + .map_err(|e| CryptographyError::InvalidKey(e))?, + ) + .map_err(|_| CryptographyError::InvalidKeyLength)?; let salt = XChaCha20Poly1305::generate_nonce(&mut OsRng); let aad: [u8; 16] = OsRng.gen(); - let lockbox = lockbox_key.encrypt(&salt, Payload { - msg: &key.to_keypair_bytes(), - aad: &aad, - }).map_err(|e| CryptographyError::LockingError)?; + let lockbox = lockbox_key + .encrypt( + &salt, + Payload { + msg: &key.to_keypair_bytes(), + aad: &aad, + }, + ) + .map_err(|e| CryptographyError::LockingError)?; Ok(SigningCA { id: randid!(id "ca"), @@ -82,19 +100,41 @@ pub fn create_signing_ca(expires: SystemTime, org_id: String, user_email: String }) } -pub fn sign_cert_with_ca(ca: &SigningCA, cert: &mut NebulaCertificate, config: &Config) -> Result<(), CryptographyError> { - let lockbox_key = XChaCha20Poly1305::new_from_slice(&hex::decode(&config.tokens.data_encryption_key).map_err(|e| CryptographyError::InvalidKey(e))?).map_err(|_| CryptographyError::InvalidKeyLength)?; +pub fn sign_cert_with_ca( + ca: &SigningCA, + cert: &mut NebulaCertificate, + config: &Config, +) -> Result<(), CryptographyError> { + let lockbox_key = XChaCha20Poly1305::new_from_slice( + &hex::decode(&config.tokens.data_encryption_key) + .map_err(|e| CryptographyError::InvalidKey(e))?, + ) + .map_err(|_| CryptographyError::InvalidKeyLength)?; - let salt_u24: [u8; 24] = ca.salt.try_into().map_err(|_| CryptographyError::InvalidSaltLength)?; + let salt_u24: [u8; 24] = ca + .salt + .try_into() + .map_err(|_| CryptographyError::InvalidSaltLength)?; let salt = XNonce::from(salt_u24); - let plaintext = lockbox_key.decrypt(&salt, Payload { - msg: &ca.private_key, - aad: &ca.info, - }).map_err(|_| CryptographyError::DecryptFailed)?; + let plaintext = lockbox_key + .decrypt( + &salt, + Payload { + msg: &ca.private_key, + aad: &ca.info, + }, + ) + .map_err(|_| CryptographyError::DecryptFailed)?; - let key = SigningKey::from_keypair_bytes(&plaintext.try_into().map_err(|_| CryptographyError::InvalidSigningKeyLength)?).map_err(|e| CryptographyError::SignatureError(e))?; + let key = SigningKey::from_keypair_bytes( + &plaintext + .try_into() + .map_err(|_| CryptographyError::InvalidSigningKeyLength)?, + ) + .map_err(|e| CryptographyError::SignatureError(e))?; - cert.sign(&key).map_err(|e| CryptographyError::CertificateSigningError(e)) -} \ No newline at end of file + cert.sign(&key) + .map_err(|e| CryptographyError::CertificateSigningError(e)) +} diff --git a/trifid-api/src/config.rs b/trifid-api/src/config.rs index 667fd14..ddd0efc 100644 --- a/trifid-api/src/config.rs +++ b/trifid-api/src/config.rs @@ -43,5 +43,5 @@ pub struct ConfigTokens { pub magic_link_expiry_seconds: u64, pub session_token_expiry_seconds: u64, pub auth_token_expiry_seconds: u64, - pub data_encryption_key: String + pub data_encryption_key: String, } diff --git a/trifid-api/src/macros.rs b/trifid-api/src/macros.rs index e69de29..8b13789 100644 --- a/trifid-api/src/macros.rs +++ b/trifid-api/src/macros.rs @@ -0,0 +1 @@ + diff --git a/trifid-api/src/main.rs b/trifid-api/src/main.rs index 12127dc..886bf7f 100644 --- a/trifid-api/src/main.rs +++ b/trifid-api/src/main.rs @@ -27,7 +27,6 @@ pub mod email; #[macro_use] pub mod macros; pub mod ca; -pub mod crypt; #[derive(Clone)] pub struct AppState { diff --git a/trifid-api/src/models.rs b/trifid-api/src/models.rs index 3fe7945..02043a0 100644 --- a/trifid-api/src/models.rs +++ b/trifid-api/src/models.rs @@ -1,9 +1,11 @@ use diesel::{Associations, Identifiable, Insertable, Queryable, Selectable}; use serde::{Deserialize, Serialize}; -use std::time::SystemTime; use serde_json::Value; +use std::time::SystemTime; -#[derive(Queryable, Selectable, Insertable, Identifiable, Debug, PartialEq, Clone, Serialize, Deserialize)] +#[derive( + Queryable, Selectable, Insertable, Identifiable, Debug, PartialEq, Clone, Serialize, Deserialize, +)] #[diesel(table_name = crate::schema::users)] #[diesel(check_for_backend(diesel::pg::Pg))] pub struct User { @@ -12,7 +14,16 @@ pub struct User { } #[derive( - Queryable, Selectable, Insertable, Identifiable, Associations, Debug, PartialEq, Clone, Serialize, Deserialize + Queryable, + Selectable, + Insertable, + Identifiable, + Associations, + Debug, + PartialEq, + Clone, + Serialize, + Deserialize, )] #[diesel(belongs_to(User))] #[diesel(table_name = crate::schema::magic_links)] @@ -24,7 +35,16 @@ pub struct MagicLink { } #[derive( - Queryable, Selectable, Insertable, Identifiable, Associations, Debug, PartialEq, Clone, Serialize, Deserialize + Queryable, + Selectable, + Insertable, + Identifiable, + Associations, + Debug, + PartialEq, + Clone, + Serialize, + Deserialize, )] #[diesel(belongs_to(User))] #[diesel(table_name = crate::schema::session_tokens)] @@ -36,7 +56,16 @@ pub struct SessionToken { } #[derive( - Queryable, Selectable, Insertable, Identifiable, Associations, Debug, PartialEq, Clone, Serialize, Deserialize + Queryable, + Selectable, + Insertable, + Identifiable, + Associations, + Debug, + PartialEq, + Clone, + Serialize, + Deserialize, )] #[diesel(belongs_to(User))] #[diesel(table_name = crate::schema::totp_authenticators)] @@ -52,7 +81,16 @@ pub struct TotpAuthenticator { } #[derive( - Queryable, Selectable, Insertable, Identifiable, Associations, Debug, PartialEq, Clone, Serialize, Deserialize + Queryable, + Selectable, + Insertable, + Identifiable, + Associations, + Debug, + PartialEq, + Clone, + Serialize, + Deserialize, )] #[diesel(belongs_to(User))] #[diesel(table_name = crate::schema::auth_tokens)] @@ -64,7 +102,16 @@ pub struct AuthToken { } #[derive( -Queryable, Selectable, Insertable, Identifiable, Associations, Debug, PartialEq, Clone, Serialize, Deserialize + Queryable, + Selectable, + Insertable, + Identifiable, + Associations, + Debug, + PartialEq, + Clone, + Serialize, + Deserialize, )] #[diesel(belongs_to(User, foreign_key = owner_id))] #[diesel(table_name = crate::schema::organizations)] @@ -72,7 +119,7 @@ Queryable, Selectable, Insertable, Identifiable, Associations, Debug, PartialEq, pub struct Organization { pub id: String, pub owner_id: String, - pub name: String + pub name: String, } /* @@ -87,7 +134,16 @@ id -> Varchar, */ #[derive( -Queryable, Selectable, Insertable, Identifiable, Associations, Debug, PartialEq, Clone, Serialize, Deserialize + Queryable, + Selectable, + Insertable, + Identifiable, + Associations, + Debug, + PartialEq, + Clone, + Serialize, + Deserialize, )] #[diesel(belongs_to(Organization))] #[diesel(table_name = crate::schema::signing_cas)] @@ -100,7 +156,7 @@ pub struct SigningCA { pub organization_id: String, pub salt: Vec, pub info: Vec, - pub private_key: Vec + pub private_key: Vec, } #[derive(Serialize, Deserialize, PartialEq, Clone, Debug)] pub struct SigningCANormalized { @@ -111,7 +167,7 @@ pub struct SigningCANormalized { pub organization_id: String, pub salt: Vec, pub info: Vec, - pub private_key: Vec + pub private_key: Vec, } /* @@ -125,7 +181,7 @@ id VARCHAR NOT NULL PRIMARY KEY, */ #[derive( -Queryable, Selectable, Insertable, Identifiable, Associations, Debug, PartialEq, Clone + Queryable, Selectable, Insertable, Identifiable, Associations, Debug, PartialEq, Clone, )] #[diesel(belongs_to(Organization))] #[diesel(belongs_to(SigningCA, foreign_key = signing_ca_id))] @@ -138,7 +194,7 @@ pub struct Network { pub signing_ca_id: String, pub created_at: SystemTime, pub name: String, - pub lighthouses_as_relays: bool + pub lighthouses_as_relays: bool, } #[derive(Serialize, Deserialize, Debug, PartialEq, Clone)] pub struct NetworkNormalized { @@ -148,5 +204,5 @@ pub struct NetworkNormalized { pub signing_ca_id: String, pub created_at: String, pub name: String, - pub lighthouses_as_relays: bool -} \ No newline at end of file + pub lighthouses_as_relays: bool, +} diff --git a/trifid-api/src/routes/v1/mod.rs b/trifid-api/src/routes/v1/mod.rs index 8a4c1cc..3f7c374 100644 --- a/trifid-api/src/routes/v1/mod.rs +++ b/trifid-api/src/routes/v1/mod.rs @@ -1,5 +1,5 @@ pub mod auth; +pub mod networks; pub mod signup; pub mod totp_authenticators; pub mod verify_totp_authenticator; -pub mod networks; diff --git a/trifid-api/src/routes/v1/networks.rs b/trifid-api/src/routes/v1/networks.rs index 1444d70..592b4af 100644 --- a/trifid-api/src/routes/v1/networks.rs +++ b/trifid-api/src/routes/v1/networks.rs @@ -1,27 +1,35 @@ -use std::time::{Duration, SystemTime}; -use actix_web::HttpRequest; -use actix_web::web::{Data, Json}; -use serde::{Deserialize, Serialize}; -use crate::{AppState, auth, enforce, randid}; +use crate::ca::create_signing_ca; use crate::models::{Network, NetworkNormalized, Organization, SigningCA, User}; use crate::response::JsonAPIResponse; -use diesel::{SelectableHelper, ExpressionMethods, QueryDsl}; +use crate::schema::{users}; +use crate::{auth, enforce, randid, AppState}; +use actix_web::web::{Data, Json}; +use actix_web::HttpRequest; +use diesel::{ExpressionMethods, QueryDsl, SelectableHelper}; use diesel_async::RunQueryDsl; -use crate::ca::create_signing_ca; -use crate::schema::users; +use serde::{Deserialize, Serialize}; +use std::time::{Duration, SystemTime}; +use chrono::{DateTime, SecondsFormat, Utc}; +use crate::schema::networks::dsl::networks; +use crate::schema::organizations::dsl::organizations; +use crate::schema::signing_cas::dsl::signing_cas; #[derive(Deserialize, Debug)] pub struct CreateNetworkReq { pub cidr: String, - pub name: String + pub name: String, } #[derive(Serialize, Debug)] pub struct CreateNetworkResp { - pub data: NetworkNormalized + pub data: NetworkNormalized, } -pub async fn create_network_req(req: Json, state: Data, req_info: HttpRequest) -> JsonAPIResponse { +pub async fn create_network_req( + req: Json, + state: Data, + req_info: HttpRequest, +) -> JsonAPIResponse { let mut conn = handle_error!(state.pool.get().await); let auth_info = auth!(req_info, conn); @@ -33,28 +41,71 @@ pub async fn create_network_req(req: Json, state: Data(&mut conn) .await ); - + let new_org = Organization { id: randid!(id "org"), owner_id: user.id.clone(), name: format!("{}'s Organization", user.email), }; - + // create 3 signing CAs, to mimic upstream DN functionality - - let ca_oneyear = handle_error!(create_signing_ca(SystemTime::now() + Duration::from_secs(86400 * 365), new_org.id.clone(), user.email.clone(), &state.config)); - let ca_twoyears = handle_error!(create_signing_ca(SystemTime::now() + Duration::from_secs(86400 * 365 * 2), new_org.id.clone(), user.email.clone(), &state.config)); - let ca_threeyears = handle_error!(create_signing_ca(SystemTime::now() + Duration::from_secs(86400 * 365 * 3), new_org.id.clone(), user.email.clone(), &state.config)); + + let ca_oneyear = handle_error!(create_signing_ca( + SystemTime::now() + Duration::from_secs(86400 * 365), + new_org.id.clone(), + user.email.clone(), + &state.config + )); + let ca_twoyears = handle_error!(create_signing_ca( + SystemTime::now() + Duration::from_secs(86400 * 365 * 2), + new_org.id.clone(), + user.email.clone(), + &state.config + )); + let ca_threeyears = handle_error!(create_signing_ca( + SystemTime::now() + Duration::from_secs(86400 * 365 * 3), + new_org.id.clone(), + user.email.clone(), + &state.config + )); let new_network = Network { id: randid!(id "net"), cidr: req.0.cidr.clone(), organization_id: new_org.id.clone(), - signing_ca_id: "".to_string(), + signing_ca_id: ca_oneyear.id.clone(), created_at: SystemTime::now(), - name: "".to_string(), - lighthouses_as_relays: false, + name: "Network1".to_string(), + lighthouses_as_relays: true, }; - todo!() -} \ No newline at end of file + handle_error!(diesel::insert_into(organizations) + .values(&new_org) + .execute(&mut conn).await); + handle_error!(diesel::insert_into(signing_cas) + .values(&ca_oneyear) + .execute(&mut conn).await); + handle_error!(diesel::insert_into(signing_cas) + .values(&ca_twoyears) + .execute(&mut conn).await); + handle_error!(diesel::insert_into(signing_cas) + .values(&ca_threeyears) + .execute(&mut conn).await); + handle_error!(diesel::insert_into(networks) + .values(&new_network) + .execute(&mut conn).await); + + let cdt: DateTime = DateTime::from(new_network.created_at); + + ok!(CreateNetworkResp { + data: NetworkNormalized { + id: new_network.id, + cidr: new_network.cidr, + organization_id: new_network.organization_id, + signing_ca_id: new_network.signing_ca_id, + created_at: cdt.to_rfc3339_opts(SecondsFormat::Secs, true), + name: new_network.name, + lighthouses_as_relays: new_network.lighthouses_as_relays + } + }) +} diff --git a/trifid-pki/src/ca.rs b/trifid-pki/src/ca.rs index d4441d6..13fa0aa 100644 --- a/trifid-pki/src/ca.rs +++ b/trifid-pki/src/ca.rs @@ -91,7 +91,9 @@ impl NebulaCAPool { /// Checks if the given certificate is blocklisted pub fn is_blocklisted(&self, cert: &NebulaCertificate) -> bool { - let Ok(h) = cert.sha256sum() else { return false }; + let Ok(h) = cert.sha256sum() else { + return false; + }; self.cert_blocklist.contains(&h) } diff --git a/trifid-pki/src/cert.rs b/trifid-pki/src/cert.rs index 1ed09d4..1e1f9c9 100644 --- a/trifid-pki/src/cert.rs +++ b/trifid-pki/src/cert.rs @@ -419,7 +419,9 @@ impl NebulaCertificate { return Ok(CertificateValidity::Blocklisted); } - let Some(signer) = ca_pool.get_ca_for_cert(self)? else { return Ok(CertificateValidity::NotSignedByThisCAPool) }; + let Some(signer) = ca_pool.get_ca_for_cert(self)? else { + return Ok(CertificateValidity::NotSignedByThisCAPool); + }; if signer.expired(time) { return Ok(CertificateValidity::RootCertExpired);