diff --git a/tfweb/package.json b/tfweb/package.json index 2859065..a05dbf3 100644 --- a/tfweb/package.json +++ b/tfweb/package.json @@ -25,7 +25,11 @@ }, "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", "svelte-i18n": "^3.6.0" } diff --git a/tfweb/src/app.html b/tfweb/src/app.html index effe0d0..b0cc593 100644 --- a/tfweb/src/app.html +++ b/tfweb/src/app.html @@ -1,12 +1,12 @@ - + %sveltekit.head% - -
%sveltekit.body%
+ + %sveltekit.body% diff --git a/tfweb/src/hooks.server.js b/tfweb/src/hooks.server.js new file mode 100644 index 0000000..ea37905 --- /dev/null +++ b/tfweb/src/hooks.server.js @@ -0,0 +1,9 @@ +import { locale } from 'svelte-i18n'; +export const handle = async ({ event, resolve }) => { + const lang = event.request.headers.get('accept-language')?.split(',')[0]; + if (lang) { + locale.set(lang); + } + return resolve(event); +}; +//# sourceMappingURL=hooks.server.js.map \ No newline at end of file diff --git a/tfweb/src/hooks.server.js.map b/tfweb/src/hooks.server.js.map new file mode 100644 index 0000000..432d123 --- /dev/null +++ b/tfweb/src/hooks.server.js.map @@ -0,0 +1 @@ +{"version":3,"file":"hooks.server.js","sourceRoot":"","sources":["hooks.server.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,MAAM,CAAC,MAAM,MAAM,GAAW,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IACvD,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IACxE,IAAI,IAAI,EAAE;QACN,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;KACnB;IACD,OAAO,OAAO,CAAC,KAAK,CAAC,CAAA;AACzB,CAAC,CAAA"} \ No newline at end of file diff --git a/tfweb/src/lib/PersistentStore.js b/tfweb/src/lib/PersistentStore.js new file mode 100644 index 0000000..2d04875 --- /dev/null +++ b/tfweb/src/lib/PersistentStore.js @@ -0,0 +1,11 @@ +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 new file mode 100644 index 0000000..5dd00dc --- /dev/null +++ b/tfweb/src/lib/PersistentStore.js.map @@ -0,0 +1 @@ +{"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/api/apis/AuditLogsApi.js b/tfweb/src/lib/api/apis/AuditLogsApi.js new file mode 100644 index 0000000..a88162a --- /dev/null +++ b/tfweb/src/lib/api/apis/AuditLogsApi.js @@ -0,0 +1,78 @@ +/* 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 new file mode 100644 index 0000000..8f73ae3 --- /dev/null +++ b/tfweb/src/lib/api/apis/AuditLogsApi.js.map @@ -0,0 +1 @@ +{"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,iB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EAAE,EAAE,IAAI;IACR,YAAY,EAAE,cAAc;CACtB,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/apis/DownloadsApi.js b/tfweb/src/lib/api/apis/DownloadsApi.js new file mode 100644 index 0000000..bb19611 --- /dev/null +++ b/tfweb/src/lib/api/apis/DownloadsApi.js @@ -0,0 +1,51 @@ +/* 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 new file mode 100644 index 0000000..8e0414f --- /dev/null +++ b/tfweb/src/lib/api/apis/DownloadsApi.js.map @@ -0,0 +1 @@ +{"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/HostsApi.js b/tfweb/src/lib/api/apis/HostsApi.js new file mode 100644 index 0000000..e431303 --- /dev/null +++ b/tfweb/src/lib/api/apis/HostsApi.js @@ -0,0 +1,332 @@ +/* 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 new file mode 100644 index 0000000..e7d4e5b --- /dev/null +++ b/tfweb/src/lib/api/apis/HostsApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"HostsApi.js","sourceRoot":"","sources":["HostsApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAetC,OAAO,EACH,0CAA0C,EAC1C,wCAAwC,EACxC,0CAA0C,EAC1C,wCAAwC,EACxC,4BAA4B,EAC5B,0BAA0B,EAC1B,6BAA6B,EAC7B,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAC7B,2BAA2B,EAC3B,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,EACvB,qBAAqB,EACrB,uCAAuC,EACvC,qCAAqC,EACrC,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,0BAA0B,GAC7B,MAAM,WAAW,CAAC;AA2CnB;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,OAAO,CAAC,OAAO;IAEzC;;;OAGG;IACH,KAAK,CAAC,0BAA0B,CAAC,iBAAiD,EAAE,aAA0D;QAC1I,IAAI,iBAAiB,CAAC,iBAAiB,KAAK,IAAI,IAAI,iBAAiB,CAAC,iBAAiB,KAAK,SAAS,EAAE;YACnG,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,mBAAmB,EAAC,oHAAoH,CAAC,CAAC;SAC7K;QAED,MAAM,eAAe,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,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/NetworksApi.js b/tfweb/src/lib/api/apis/NetworksApi.js new file mode 100644 index 0000000..3c7bfdd --- /dev/null +++ b/tfweb/src/lib/api/apis/NetworksApi.js @@ -0,0 +1,93 @@ +/* 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 new file mode 100644 index 0000000..dc5b4a0 --- /dev/null +++ b/tfweb/src/lib/api/apis/NetworksApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"NetworksApi.js","sourceRoot":"","sources":["NetworksApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;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CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,+BAA+B,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5G,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,oBAAyC,EAAE,EAAE,aAA0D;QACtH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC9E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ"} \ No newline at end of file diff --git a/tfweb/src/lib/api/apis/RolesApi.js b/tfweb/src/lib/api/apis/RolesApi.js new file mode 100644 index 0000000..882f8d5 --- /dev/null +++ b/tfweb/src/lib/api/apis/RolesApi.js @@ -0,0 +1,199 @@ +/* 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 new file mode 100644 index 0000000..1bae180 --- /dev/null +++ b/tfweb/src/lib/api/apis/RolesApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RolesApi.js","sourceRoot":"","sources":["RolesApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;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,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,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/index.js b/tfweb/src/lib/api/apis/index.js new file mode 100644 index 0000000..eaef1cc --- /dev/null +++ b/tfweb/src/lib/api/apis/index.js @@ -0,0 +1,8 @@ +/* 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 new file mode 100644 index 0000000..a1ff3bf --- /dev/null +++ b/tfweb/src/lib/api/apis/index.js.map @@ -0,0 +1 @@ +{"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/index.js b/tfweb/src/lib/api/index.js new file mode 100644 index 0000000..505ce4b --- /dev/null +++ b/tfweb/src/lib/api/index.js @@ -0,0 +1,6 @@ +/* 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 new file mode 100644 index 0000000..319333d --- /dev/null +++ b/tfweb/src/lib/api/index.js.map @@ -0,0 +1 @@ +{"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/models/Actor.js b/tfweb/src/lib/api/models/Actor.js new file mode 100644 index 0000000..6bbaaef --- /dev/null +++ b/tfweb/src/lib/api/models/Actor.js @@ -0,0 +1,56 @@ +/* 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 new file mode 100644 index 0000000..98b0745 --- /dev/null +++ b/tfweb/src/lib/api/models/Actor.js.map @@ -0,0 +1 @@ +{"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,GAClB,MAAM,aAAa,CAAC;AASrB,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,EAAE,GAAG,wBAAwB,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,GAAG,sBAAsB,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,GAAG,0BAA0B,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,GAAG,yBAAyB,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,GAAG,wBAAwB,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,GAAG,sBAAsB,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC;AACnQ,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;IAED,IAAI,qBAAqB,CAAC,KAAK,CAAC,EAAE;QAC9B,OAAO,iBAAiB,CAAC,KAAoB,CAAC,CAAC;KAClD;IACD,IAAI,mBAAmB,CAAC,KAAK,CAAC,EAAE;QAC5B,OAAO,eAAe,CAAC,KAAkB,CAAC,CAAC;KAC9C;IACD,IAAI,uBAAuB,CAAC,KAAK,CAAC,EAAE;QAChC,OAAO,mBAAmB,CAAC,KAAsB,CAAC,CAAC;KACtD;IACD,IAAI,sBAAsB,CAAC,KAAK,CAAC,EAAE;QAC/B,OAAO,kBAAkB,CAAC,KAAqB,CAAC,CAAC;KACpD;IACD,IAAI,qBAAqB,CAAC,KAAK,CAAC,EAAE;QAC9B,OAAO,iBAAiB,CAAC,KAAoB,CAAC,CAAC;KAClD;IACD,IAAI,mBAAmB,CAAC,KAAK,CAAC,EAAE;QAC5B,OAAO,eAAe,CAAC,KAAkB,CAAC,CAAC;KAC9C;IAED,OAAO,EAAE,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/ActorAPIKey.js b/tfweb/src/lib/api/models/ActorAPIKey.js new file mode 100644 index 0000000..3f38aac --- /dev/null +++ b/tfweb/src/lib/api/models/ActorAPIKey.js @@ -0,0 +1,54 @@ +/* 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 new file mode 100644 index 0000000..ea8146e --- /dev/null +++ b/tfweb/src/lib/api/models/ActorAPIKey.js.map @@ -0,0 +1 @@ +{"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/ActorHost.js b/tfweb/src/lib/api/models/ActorHost.js new file mode 100644 index 0000000..ee12a92 --- /dev/null +++ b/tfweb/src/lib/api/models/ActorHost.js @@ -0,0 +1,54 @@ +/* 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 new file mode 100644 index 0000000..941e5e2 --- /dev/null +++ b/tfweb/src/lib/api/models/ActorHost.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ActorHost.js","sourceRoot":"","sources":["ActorHost.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA4B/C;;GAEG;AACH,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User.js b/tfweb/src/lib/api/models/ActorOIDCUser.js new file mode 100644 index 0000000..8062b8c --- /dev/null +++ b/tfweb/src/lib/api/models/ActorOIDCUser.js @@ -0,0 +1,56 @@ +/* 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 new file mode 100644 index 0000000..3098c8b --- /dev/null +++ b/tfweb/src/lib/api/models/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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/ActorSupport.js b/tfweb/src/lib/api/models/ActorSupport.js new file mode 100644 index 0000000..68b78c4 --- /dev/null +++ b/tfweb/src/lib/api/models/ActorSupport.js @@ -0,0 +1,50 @@ +/* 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 new file mode 100644 index 0000000..f253871 --- /dev/null +++ b/tfweb/src/lib/api/models/ActorSupport.js.map @@ -0,0 +1 @@ +{"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/ActorSystem.js b/tfweb/src/lib/api/models/ActorSystem.js new file mode 100644 index 0000000..35eaeb2 --- /dev/null +++ b/tfweb/src/lib/api/models/ActorSystem.js @@ -0,0 +1,50 @@ +/* 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 new file mode 100644 index 0000000..0793a90 --- /dev/null +++ b/tfweb/src/lib/api/models/ActorSystem.js.map @@ -0,0 +1 @@ +{"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/ActorUser.js b/tfweb/src/lib/api/models/ActorUser.js new file mode 100644 index 0000000..4334731 --- /dev/null +++ b/tfweb/src/lib/api/models/ActorUser.js @@ -0,0 +1,54 @@ +/* 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 new file mode 100644 index 0000000..2eb9ec5 --- /dev/null +++ b/tfweb/src/lib/api/models/ActorUser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ActorUser.js","sourceRoot":"","sources":["ActorUser.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA4B/C;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,MAAM;CACN,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC7C,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,IAAI,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAClD,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;KAC9D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAwB;IACpD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,OAAO,EAAE,KAAK,CAAC,KAAK;KACvB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/AuditLog.js b/tfweb/src/lib/api/models/AuditLog.js new file mode 100644 index 0000000..67c7f4f --- /dev/null +++ b/tfweb/src/lib/api/models/AuditLog.js @@ -0,0 +1,57 @@ +/* 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 new file mode 100644 index 0000000..e002422 --- /dev/null +++ b/tfweb/src/lib/api/models/AuditLog.js.map @@ -0,0 +1 @@ +{"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,mBAA4B;IACzE,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,gBAAgB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CA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lib/api/models/AuditLogsList200Response.js b/tfweb/src/lib/api/models/AuditLogsList200Response.js new file mode 100644 index 0000000..4ad6264 --- /dev/null +++ b/tfweb/src/lib/api/models/AuditLogsList200Response.js @@ -0,0 +1,48 @@ +/* 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 new file mode 100644 index 0000000..22b8c88 --- /dev/null +++ b/tfweb/src/lib/api/models/AuditLogsList200Response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AuditLogsList200Response.js","sourceRoot":"","sources":["AuditLogsList200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,GACjB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACH,0BAA0B,EAC1B,+BAA+B,EAC/B,wBAAwB,GAC3B,MAAM,sBAAsB,CAAC;AAsB9B;;GAEG;AACH,MAAM,UAAU,kCAAkC,CAAC,KAAa;IAC5D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,qCAAqC,CAAC,IAAS,EAAE,mBAA4B;IACzF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAChG,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACnG,CAAC;AACN,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,KAAuC;IAClF,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,IAAmB,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAC/F,UAAU,EAAE,wBAAwB,CAAC,KAAK,CAAC,QAAQ,CAAC;KACvD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/Downloads.js b/tfweb/src/lib/api/models/Downloads.js new file mode 100644 index 0000000..ced883f --- /dev/null +++ b/tfweb/src/lib/api/models/Downloads.js @@ -0,0 +1,51 @@ +/* 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 new file mode 100644 index 0000000..0d28cfa --- /dev/null +++ b/tfweb/src/lib/api/models/Downloads.js.map @@ -0,0 +1 @@ +{"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,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loadsDNClientLinks.js new file mode 100644 index 0000000..2939b83 --- /dev/null +++ b/tfweb/src/lib/api/models/DownloadsDNClientLinks.js @@ -0,0 +1,56 @@ +/* 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 new file mode 100644 index 0000000..7c9cc11 --- /dev/null +++ b/tfweb/src/lib/api/models/DownloadsDNClientLinks.js.map @@ -0,0 +1 @@ +{"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,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEC,GAAG,IAAI;QACX,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;QAC5E,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;QAC5E,gBAAgB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;QACxF,mBAAmB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC;QACnG,cAAc,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;QAClF,cAAc,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;KACrF,CAAC;AACN,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,KAAqC;IAC9E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEC,GAAG,KAAK;QACZ,aAAa,EAAE,KAAK,CAAC,UAAU;QAC/B,aAAa,EAAE,KAAK,CAAC,UAAU;QAC/B,iBAAiB,EAAE,KAAK,CAAC,cAAc;QACvC,qBAAqB,EAAE,KAAK,CAAC,iBAAiB;QAC9C,eAAe,EAAE,KAAK,CAAC,YAAY;QACnC,eAAe,EAAE,KAAK,CAAC,YAAY;KACtC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/DownloadsDnclient.js b/tfweb/src/lib/api/models/DownloadsDnclient.js new file mode 100644 index 0000000..522853c --- /dev/null +++ b/tfweb/src/lib/api/models/DownloadsDnclient.js @@ -0,0 +1,47 @@ +/* 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 new file mode 100644 index 0000000..988b03e --- /dev/null +++ b/tfweb/src/lib/api/models/DownloadsDnclient.js.map @@ -0,0 +1 @@ +{"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/DownloadsList200Response.js b/tfweb/src/lib/api/models/DownloadsList200Response.js new file mode 100644 index 0000000..74447c9 --- /dev/null +++ b/tfweb/src/lib/api/models/DownloadsList200Response.js @@ -0,0 +1,45 @@ +/* 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 new file mode 100644 index 0000000..13b033e --- /dev/null +++ b/tfweb/src/lib/api/models/DownloadsList200Response.js.map @@ -0,0 +1 @@ +{"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/DownloadsMobile.js b/tfweb/src/lib/api/models/DownloadsMobile.js new file mode 100644 index 0000000..4796d63 --- /dev/null +++ b/tfweb/src/lib/api/models/DownloadsMobile.js @@ -0,0 +1,46 @@ +/* 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 new file mode 100644 index 0000000..c507a86 --- /dev/null +++ b/tfweb/src/lib/api/models/DownloadsMobile.js.map @@ -0,0 +1 @@ +{"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/DownloadsVersionInfo.js b/tfweb/src/lib/api/models/DownloadsVersionInfo.js new file mode 100644 index 0000000..898caaf --- /dev/null +++ b/tfweb/src/lib/api/models/DownloadsVersionInfo.js @@ -0,0 +1,48 @@ +/* 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 new file mode 100644 index 0000000..fe82d83 --- /dev/null +++ b/tfweb/src/lib/api/models/DownloadsVersionInfo.js.map @@ -0,0 +1 @@ +{"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/DownloadsVersionInfoDnclientValue.js b/tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.js new file mode 100644 index 0000000..8bfd054 --- /dev/null +++ b/tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.js @@ -0,0 +1,46 @@ +/* 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 new file mode 100644 index 0000000..2bf5e1f --- /dev/null +++ b/tfweb/src/lib/api/models/DownloadsVersionInfoDnclientValue.js.map @@ -0,0 +1 @@ +{"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/DownloadsVersionInfoLatest.js b/tfweb/src/lib/api/models/DownloadsVersionInfoLatest.js new file mode 100644 index 0000000..22ee2ca --- /dev/null +++ b/tfweb/src/lib/api/models/DownloadsVersionInfoLatest.js @@ -0,0 +1,46 @@ +/* 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 new file mode 100644 index 0000000..98a1c00 --- /dev/null +++ b/tfweb/src/lib/api/models/DownloadsVersionInfoLatest.js.map @@ -0,0 +1 @@ +{"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/Event.js b/tfweb/src/lib/api/models/Event.js new file mode 100644 index 0000000..a323bd3 --- /dev/null +++ b/tfweb/src/lib/api/models/Event.js @@ -0,0 +1,67 @@ +/* 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 new file mode 100644 index 0000000..82eb3c8 --- /dev/null +++ b/tfweb/src/lib/api/models/Event.js.map @@ -0,0 +1 @@ +{"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/FirewallRule.js b/tfweb/src/lib/api/models/FirewallRule.js new file mode 100644 index 0000000..7ebf312 --- /dev/null +++ b/tfweb/src/lib/api/models/FirewallRule.js @@ -0,0 +1,61 @@ +/* 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 new file mode 100644 index 0000000..426a6fd --- /dev/null +++ b/tfweb/src/lib/api/models/FirewallRule.js.map @@ -0,0 +1 @@ +{"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;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,CAAC,KAAK,CAAC,SAAS,CAAC;KAC5D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/FirewallRulePortRange.js b/tfweb/src/lib/api/models/FirewallRulePortRange.js new file mode 100644 index 0000000..ec4f0da --- /dev/null +++ b/tfweb/src/lib/api/models/FirewallRulePortRange.js @@ -0,0 +1,48 @@ +/* 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 new file mode 100644 index 0000000..8e27516 --- /dev/null +++ b/tfweb/src/lib/api/models/FirewallRulePortRange.js.map @@ -0,0 +1 @@ +{"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/Host.js b/tfweb/src/lib/api/models/Host.js new file mode 100644 index 0000000..2ad86d5 --- /dev/null +++ b/tfweb/src/lib/api/models/Host.js @@ -0,0 +1,69 @@ +/* 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 new file mode 100644 index 0000000..65422f0 --- /dev/null +++ b/tfweb/src/lib/api/models/Host.js.map @@ -0,0 +1 @@ +{"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,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAS,EAAE,mBAA4B;IACrE,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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/src/lib/api/models/HostAndEnrollCodeCreate200Response.js b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.js new file mode 100644 index 0000000..b9bdbda --- /dev/null +++ b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.js @@ -0,0 +1,47 @@ +/* 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 new file mode 100644 index 0000000..8fd259a --- /dev/null +++ b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200Response.js.map @@ -0,0 +1 @@ +{"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/HostAndEnrollCodeCreate200ResponseData.js b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.js new file mode 100644 index 0000000..0f7cfe7 --- /dev/null +++ b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.js @@ -0,0 +1,49 @@ +/* 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 new file mode 100644 index 0000000..df08f78 --- /dev/null +++ b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseData.js.map @@ -0,0 +1 @@ +{"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/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js new file mode 100644 index 0000000..d99039a --- /dev/null +++ b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js @@ -0,0 +1,46 @@ +/* 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 new file mode 100644 index 0000000..0860936 --- /dev/null +++ b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js.map @@ -0,0 +1 @@ +{"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/HostAndEnrollCodeCreate400Response.js b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.js new file mode 100644 index 0000000..e6c5ddf --- /dev/null +++ b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.js @@ -0,0 +1,45 @@ +/* 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 new file mode 100644 index 0000000..e92eb94 --- /dev/null +++ b/tfweb/src/lib/api/models/HostAndEnrollCodeCreate400Response.js.map @@ -0,0 +1 @@ +{"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/HostBlock200Response.js b/tfweb/src/lib/api/models/HostBlock200Response.js new file mode 100644 index 0000000..9937450 --- /dev/null +++ b/tfweb/src/lib/api/models/HostBlock200Response.js @@ -0,0 +1,47 @@ +/* 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 new file mode 100644 index 0000000..c9dd222 --- /dev/null +++ b/tfweb/src/lib/api/models/HostBlock200Response.js.map @@ -0,0 +1 @@ +{"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/HostBlock200ResponseData.js b/tfweb/src/lib/api/models/HostBlock200ResponseData.js new file mode 100644 index 0000000..5061cde --- /dev/null +++ b/tfweb/src/lib/api/models/HostBlock200ResponseData.js @@ -0,0 +1,45 @@ +/* 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 new file mode 100644 index 0000000..f14d1d1 --- /dev/null +++ b/tfweb/src/lib/api/models/HostBlock200ResponseData.js.map @@ -0,0 +1 @@ +{"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/HostCreate200Response.js b/tfweb/src/lib/api/models/HostCreate200Response.js new file mode 100644 index 0000000..a2e0b44 --- /dev/null +++ b/tfweb/src/lib/api/models/HostCreate200Response.js @@ -0,0 +1,47 @@ +/* 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 new file mode 100644 index 0000000..bdd52b9 --- /dev/null +++ b/tfweb/src/lib/api/models/HostCreate200Response.js.map @@ -0,0 +1 @@ +{"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/HostCreate400Response.js b/tfweb/src/lib/api/models/HostCreate400Response.js new file mode 100644 index 0000000..32edabe --- /dev/null +++ b/tfweb/src/lib/api/models/HostCreate400Response.js @@ -0,0 +1,44 @@ +/* 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 new file mode 100644 index 0000000..1e4e29b --- /dev/null +++ b/tfweb/src/lib/api/models/HostCreate400Response.js.map @@ -0,0 +1 @@ +{"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/HostCreateRequest.js b/tfweb/src/lib/api/models/HostCreateRequest.js new file mode 100644 index 0000000..bbe879d --- /dev/null +++ b/tfweb/src/lib/api/models/HostCreateRequest.js @@ -0,0 +1,60 @@ +/* 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 new file mode 100644 index 0000000..36388a3 --- /dev/null +++ b/tfweb/src/lib/api/models/HostCreateRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"HostCreateRequest.js","sourceRoot":"","sources":["HostCreateRequest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAyD/C;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACrD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,MAAM,IAAI,KAAK,CAAC;IAC3C,UAAU,GAAG,UAAU,IAAI,WAAW,IAAI,KAAK,CAAC;IAEhD,OAAO,UAAU,CAAC;AACtB,CAA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,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/HostDelete200Response.js b/tfweb/src/lib/api/models/HostDelete200Response.js new file mode 100644 index 0000000..90c3754 --- /dev/null +++ b/tfweb/src/lib/api/models/HostDelete200Response.js @@ -0,0 +1,46 @@ +/* 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 new file mode 100644 index 0000000..ac98b5f --- /dev/null +++ b/tfweb/src/lib/api/models/HostDelete200Response.js.map @@ -0,0 +1 @@ +{"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/HostEdit200Response.js b/tfweb/src/lib/api/models/HostEdit200Response.js new file mode 100644 index 0000000..8c6ac94 --- /dev/null +++ b/tfweb/src/lib/api/models/HostEdit200Response.js @@ -0,0 +1,47 @@ +/* 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 new file mode 100644 index 0000000..7e32d56 --- /dev/null +++ b/tfweb/src/lib/api/models/HostEdit200Response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"HostEdit200Response.js","sourceRoot":"","sources":["HostEdit200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACb,MAAM,QAAQ,CAAC;AAsBhB;;GAEG;AACH,MAAM,UAAU,6BAA6B,CAAC,KAAa;IACvD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtE,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,KAAkC;IACxE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;QAC9B,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/HostEditRequest.js b/tfweb/src/lib/api/models/HostEditRequest.js new file mode 100644 index 0000000..2ae1541 --- /dev/null +++ b/tfweb/src/lib/api/models/HostEditRequest.js @@ -0,0 +1,46 @@ +/* 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 new file mode 100644 index 0000000..25e575b --- /dev/null +++ b/tfweb/src/lib/api/models/HostEditRequest.js.map @@ -0,0 +1 @@ +{"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/HostEnrollCodeCreate200Response.js b/tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.js new file mode 100644 index 0000000..bc2a41e --- /dev/null +++ b/tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.js @@ -0,0 +1,47 @@ +/* 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 new file mode 100644 index 0000000..8c87e43 --- /dev/null +++ b/tfweb/src/lib/api/models/HostEnrollCodeCreate200Response.js.map @@ -0,0 +1 @@ +{"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/HostEnrollCodeCreate200ResponseData.js b/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.js new file mode 100644 index 0000000..fe0a879 --- /dev/null +++ b/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.js @@ -0,0 +1,45 @@ +/* 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 new file mode 100644 index 0000000..8191144 --- /dev/null +++ b/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseData.js.map @@ -0,0 +1 @@ +{"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/HostEnrollCodeCreate200ResponseDataEnrollmentCode.js b/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.js new file mode 100644 index 0000000..c7ca25b --- /dev/null +++ b/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.js @@ -0,0 +1,46 @@ +/* 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 new file mode 100644 index 0000000..d94dab1 --- /dev/null +++ b/tfweb/src/lib/api/models/HostEnrollCodeCreate200ResponseDataEnrollmentCode.js.map @@ -0,0 +1 @@ +{"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/HostGet200Response.js b/tfweb/src/lib/api/models/HostGet200Response.js new file mode 100644 index 0000000..2caa607 --- /dev/null +++ b/tfweb/src/lib/api/models/HostGet200Response.js @@ -0,0 +1,47 @@ +/* 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 new file mode 100644 index 0000000..01a2f23 --- /dev/null +++ b/tfweb/src/lib/api/models/HostGet200Response.js.map @@ -0,0 +1 @@ +{"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/HostMetadata.js b/tfweb/src/lib/api/models/HostMetadata.js new file mode 100644 index 0000000..9eefaf3 --- /dev/null +++ b/tfweb/src/lib/api/models/HostMetadata.js @@ -0,0 +1,58 @@ +/* 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 new file mode 100644 index 0000000..33d6a98 --- /dev/null +++ b/tfweb/src/lib/api/models/HostMetadata.js.map @@ -0,0 +1 @@ +{"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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xB,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/HostsList200Response.js b/tfweb/src/lib/api/models/HostsList200Response.js new file mode 100644 index 0000000..dee8cd3 --- /dev/null +++ b/tfweb/src/lib/api/models/HostsList200Response.js @@ -0,0 +1,48 @@ +/* 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 new file mode 100644 index 0000000..36586d0 --- /dev/null +++ b/tfweb/src/lib/api/models/HostsList200Response.js.map @@ -0,0 +1 @@ +{"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/ModelError.js b/tfweb/src/lib/api/models/ModelError.js new file mode 100644 index 0000000..aaee1ac --- /dev/null +++ b/tfweb/src/lib/api/models/ModelError.js @@ -0,0 +1,50 @@ +/* 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 new file mode 100644 index 0000000..982d5cd --- /dev/null +++ b/tfweb/src/lib/api/models/ModelError.js.map @@ -0,0 +1 @@ +{"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/Network.js b/tfweb/src/lib/api/models/Network.js new file mode 100644 index 0000000..697d111 --- /dev/null +++ b/tfweb/src/lib/api/models/Network.js @@ -0,0 +1,56 @@ +/* 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 new file mode 100644 index 0000000..9855c6e --- /dev/null +++ b/tfweb/src/lib/api/models/Network.js.map @@ -0,0 +1 @@ +{"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,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,IAAI,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,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,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/NetworkGet200Response.js b/tfweb/src/lib/api/models/NetworkGet200Response.js new file mode 100644 index 0000000..98007a5 --- /dev/null +++ b/tfweb/src/lib/api/models/NetworkGet200Response.js @@ -0,0 +1,47 @@ +/* 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 new file mode 100644 index 0000000..2fa047d --- /dev/null +++ b/tfweb/src/lib/api/models/NetworkGet200Response.js.map @@ -0,0 +1 @@ +{"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/NetworksList200Response.js b/tfweb/src/lib/api/models/NetworksList200Response.js new file mode 100644 index 0000000..45c14a6 --- /dev/null +++ b/tfweb/src/lib/api/models/NetworksList200Response.js @@ -0,0 +1,48 @@ +/* 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 new file mode 100644 index 0000000..96c4ca5 --- /dev/null +++ b/tfweb/src/lib/api/models/NetworksList200Response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"NetworksList200Response.js","sourceRoot":"","sources":["NetworksList200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,eAAe,EACf,oBAAoB,EACpB,aAAa,GAChB,MAAM,WAAW,CAAC;AAEnB,OAAO,EACH,0BAA0B,EAC1B,+BAA+B,EAC/B,wBAAwB,GAC3B,MAAM,sBAAsB,CAAC;AAsB9B;;GAEG;AACH,MAAM,UAAU,iCAAiC,CAAC,KAAa;IAC3D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,IAAS;IACrD,OAAO,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC;AAED,MAAM,UAAU,oCAAoC,CAAC,IAAS,EAAE,mBAA4B;IACxF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QAC/F,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACnG,CAAC;AACN,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,KAAsC;IAChF,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,IAAmB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAC9F,UAAU,EAAE,wBAAwB,CAAC,KAAK,CAAC,QAAQ,CAAC;KACvD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/PaginationMetadata.js b/tfweb/src/lib/api/models/PaginationMetadata.js new file mode 100644 index 0000000..49400a0 --- /dev/null +++ b/tfweb/src/lib/api/models/PaginationMetadata.js @@ -0,0 +1,55 @@ +/* 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 new file mode 100644 index 0000000..9cc1354 --- /dev/null +++ b/tfweb/src/lib/api/models/PaginationMetadata.js.map @@ -0,0 +1 @@ +{"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;A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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,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,MAAM,EAAE,4BAA4B,CAAC,KAAK,CAAC,IAAI,CAAC;KACnD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/PaginationMetadataPage.js b/tfweb/src/lib/api/models/PaginationMetadataPage.js new file mode 100644 index 0000000..4cb24eb --- /dev/null +++ b/tfweb/src/lib/api/models/PaginationMetadataPage.js @@ -0,0 +1,48 @@ +/* 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 new file mode 100644 index 0000000..6808c02 --- /dev/null +++ b/tfweb/src/lib/api/models/PaginationMetadataPage.js.map @@ -0,0 +1 @@ +{"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/Role.js b/tfweb/src/lib/api/models/Role.js new file mode 100644 index 0000000..98cb58d --- /dev/null +++ b/tfweb/src/lib/api/models/Role.js @@ -0,0 +1,55 @@ +/* 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 new file mode 100644 index 0000000..5a91813 --- /dev/null +++ b/tfweb/src/lib/api/models/Role.js.map @@ -0,0 +1 @@ +{"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;AAC1C,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAS,EAAE,mBAA4B;IACrE,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,I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AAC;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/RoleCreate200Response.js b/tfweb/src/lib/api/models/RoleCreate200Response.js new file mode 100644 index 0000000..ba607e3 --- /dev/null +++ b/tfweb/src/lib/api/models/RoleCreate200Response.js @@ -0,0 +1,47 @@ +/* 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 new file mode 100644 index 0000000..47c0c00 --- /dev/null +++ b/tfweb/src/lib/api/models/RoleCreate200Response.js.map @@ -0,0 +1 @@ +{"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/RoleCreateRequest.js b/tfweb/src/lib/api/models/RoleCreateRequest.js new file mode 100644 index 0000000..04518bb --- /dev/null +++ b/tfweb/src/lib/api/models/RoleCreateRequest.js @@ -0,0 +1,50 @@ +/* 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 new file mode 100644 index 0000000..d9ceced --- /dev/null +++ b/tfweb/src/lib/api/models/RoleCreateRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RoleCreateRequest.js","sourceRoot":"","sources":["RoleCreateRequest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,GACrB,MAAM,gBAAgB,CAAC;AA4BxB;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACrD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,MAAM,IAAI,KAAK,CAAC;IAE3C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;QAC7E,eAAe,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,eAAe,CAAgB,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;KAClI,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,KAAgC;IACpE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,eAAe,EAAE,KAAK,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,aAA4B,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;KACjI,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/tfweb/src/lib/api/models/RoleEditRequest.js b/tfweb/src/lib/api/models/RoleEditRequest.js new file mode 100644 index 0000000..09dbe04 --- /dev/null +++ b/tfweb/src/lib/api/models/RoleEditRequest.js @@ -0,0 +1,47 @@ +/* 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 new file mode 100644 index 0000000..2f4b5f8 --- /dev/null +++ b/tfweb/src/lib/api/models/RoleEditRequest.js.map @@ -0,0 +1 @@ +{"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/RolesList200Response.js b/tfweb/src/lib/api/models/RolesList200Response.js new file mode 100644 index 0000000..cd9569e --- /dev/null +++ b/tfweb/src/lib/api/models/RolesList200Response.js @@ -0,0 +1,48 @@ +/* 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 new file mode 100644 index 0000000..6bf1136 --- /dev/null +++ b/tfweb/src/lib/api/models/RolesList200Response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RolesList200Response.js","sourceRoot":"","sources":["RolesList200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MA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,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/Target.js b/tfweb/src/lib/api/models/Target.js new file mode 100644 index 0000000..f853144 --- /dev/null +++ b/tfweb/src/lib/api/models/Target.js @@ -0,0 +1,58 @@ +/* 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 new file mode 100644 index 0000000..92eade7 --- /dev/null +++ b/t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AAI,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/index.js b/tfweb/src/lib/api/models/index.js new file mode 100644 index 0000000..bb20abe --- /dev/null +++ b/tfweb/src/lib/api/models/index.js @@ -0,0 +1,54 @@ +/* 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 new file mode 100644 index 0000000..30304d4 --- /dev/null +++ b/tfweb/src/lib/api/models/index.js.map @@ -0,0 +1 @@ +{"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/runtime.js b/tfweb/src/lib/api/runtime.js new file mode 100644 index 0000000..883258a --- /dev/null +++ b/tfweb/src/lib/api/runtime.js @@ -0,0 +1,323 @@ +/* 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 new file mode 100644 index 0000000..a842d8a --- /dev/null +++ b/tfweb/src/lib/api/runtime.js.map @@ -0,0 +1 @@ +{"version":3,"file":"runtime.js","sourceRoot":"","sources":["runtime.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,MAAM,CAAC,MAAM,SAAS,GAAG,yBAAyB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAevE,MAAM,OAAO,aAAa;IACF;IAApB,YAAoB,gBAAyC,EAAE;QAA3C,kBAAa,GAAb,aAAa,CAA8B;IAAG,CAAC;IAEnE,IAAI,MAAM,CAAC,aAA4B;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IACzF,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,IAAI,EAAE,CAAC;IAC/C,CAAC;IAED,IAAI,oBAAoB;QACpB,OAAO,IAAI,CAAC,aAAa,CAAC,oBAAoB,IAAI,WAAW,CAAC;IAClE,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED,IAAI,MAAM;QACN,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;QACzC,IAAI,MAAM,EAAE;YACR,OAAO,OAAO,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,C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C,SAAc,EAAE,EAAE,CAAC,SAAS;QAA1F,QAAG,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/auth.js b/tfweb/src/lib/auth.js new file mode 100644 index 0000000..cdf8a73 --- /dev/null +++ b/tfweb/src/lib/auth.js @@ -0,0 +1,225 @@ +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 new file mode 100644 index 0000000..2f724b8 --- /dev/null +++ b/tfweb/src/lib/auth.js.map @@ -0,0 +1 @@ +{"version":3,"file":"auth.js","sourceRoot":"","sources":["auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAC,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAEnD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,6CAAU,CAAA;IACV,qDAAc,CAAA;AAClB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAeD,QAAQ,EAAE,CAAC;AACX,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,SAAS,CAAC,CAAC;AAErC,MAAM,CAAC,KAAK,UAAU,eAAe;IACjC,MAAM,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;IAEnD,IAAI,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACjD,MAAM,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC;QAC/D,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,EAAC,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,eAAe,EAAC,CAAC,CAAC;KAChF;IAED,IAAI;QACA,MAAM,CAAC,KAAK,CAAC,qBAAqB,eAAe,EAAE,CAAC,CAAC;QACrD,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,GAAG,eAAe,YAAY,EAAE;YACrD,QAAQ,EAAE,KAAK;YACf,SAAS,EAAE;gBACP,eAAe,EAAE,UAAU,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;aACtE;SACJ,C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c --- /dev/null +++ b/tfweb/src/lib/i18n/index.js @@ -0,0 +1,10 @@ +import { browser } from '$app/environment'; +import { init, register } from 'svelte-i18n'; +const defaultLocale = 'en'; +register('en', () => import('./locales/en.json')); +//register('de', () => import('./locales/de.json')) +init({ + fallbackLocale: defaultLocale, + initialLocale: browser ? window.navigator.language : defaultLocale, +}); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tfweb/src/lib/i18n/index.js.map b/tfweb/src/lib/i18n/index.js.map new file mode 100644 index 0000000..405d765 --- /dev/null +++ b/tfweb/src/lib/i18n/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,aAAa,GAAG,IAAI,CAAA;AAE1B,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAA;AACjD,mDAAmD;AAEnD,IAAI,CAAC;IACD,cAAc,EAAE,aAAa;IAC7B,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa;CACrE,CAAC,CAAA"} \ No newline at end of file diff --git a/tfweb/src/lib/i18n/locales/en.json b/tfweb/src/lib/i18n/locales/en.json index 66d155a..f41b168 100644 --- a/tfweb/src/lib/i18n/locales/en.json +++ b/tfweb/src/lib/i18n/locales/en.json @@ -8,7 +8,7 @@ }, "login": { "title": "Log in to your account", - "subtitle": "We'll send you an email with a \"magic link\"", + "subtitle": "We'll send you an email with a \"magic link\".", "label": "What is your email?", "button": "Log in", "email": "Check your email", @@ -19,7 +19,9 @@ "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" }, "signup": { "title": "Create an account", @@ -35,7 +37,9 @@ "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" }, "ml": { "header": "Authenticated!", diff --git a/tfweb/src/lib/logger.js b/tfweb/src/lib/logger.js new file mode 100644 index 0000000..d906cfc --- /dev/null +++ b/tfweb/src/lib/logger.js @@ -0,0 +1,101 @@ +// 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 new file mode 100644 index 0000000..2e3a620 --- /dev/null +++ b/tfweb/src/lib/logger.js.map @@ -0,0 +1 @@ +{"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,CAAC;AAW7B,MAAM,QAAQ,GAAmB,EAAE,CAAC;AACpC,IAAI,cAAsB,CAAC;AAC3B,IAAI,cAAsB,CAAC;AAC3B,IAAI,MAAc,CAAC;AACnB,IAAI,WAAW,GAAG,KAAK,CAAC;AAExB,MAAM,UAAU,QAAQ;IACpB,IAAI,WAAW;QAAE,OAAO;IACxB,WAAW,GAAG,IAAI,CAAC;IACnB,cAAc,GAAG,IAAI,CAAC,GAAG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AAA;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/netcreate.js b/tfweb/src/lib/netcreate.js new file mode 100644 index 0000000..8aa6c3f --- /dev/null +++ b/tfweb/src/lib/netcreate.js @@ -0,0 +1,33 @@ +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 new file mode 100644 index 0000000..6838fcf --- /dev/null +++ b/tfweb/src/lib/netcreate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"netcreate.js","sourceRoot":"","sources":["netcreate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAC,M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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/stores/devmode.js b/tfweb/src/lib/stores/devmode.js new file mode 100644 index 0000000..ee2be8b --- /dev/null +++ b/tfweb/src/lib/stores/devmode.js @@ -0,0 +1,3 @@ +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 new file mode 100644 index 0000000..e54f403 --- /dev/null +++ b/tfweb/src/lib/stores/devmode.js.map @@ -0,0 +1 @@ +{"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/routes/+layout.svelte b/tfweb/src/routes/+layout.svelte index 4fa864c..16632dd 100644 --- a/tfweb/src/routes/+layout.svelte +++ b/tfweb/src/routes/+layout.svelte @@ -1 +1,12 @@ + + diff --git a/tfweb/src/routes/login/+page.svelte b/tfweb/src/routes/login/+page.svelte index e0c1225..2b368b1 100644 --- a/tfweb/src/routes/login/+page.svelte +++ b/tfweb/src/routes/login/+page.svelte @@ -9,7 +9,7 @@ let loading = true; let isError = false; let error = ''; - $: currentlyLoading = $isLoading || loading; + $: currentlyLoading = $isLoading; logSetup(); let logger = new Logger("login/+page.svelte"); @@ -72,21 +72,36 @@ - {#if isDone} -

{$t('login.email')}

-

{$t('login.emailbody')}

- -

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

- {:else} -

{$t('login.title')}

-

{$t('login.subtitle')}

-
- - - - {#if hasErrForm} -

{errForm}

- {/if} -
- {/if} +
+
+
+ {#if isDone} +

{$t('login.email')}

+ +

{$t('login.emailbody')}

+ +

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

+ {:else} +

{$t('login.title')}

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

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

+ {/if} +
+
+
diff --git a/tfweb/src/routes/signup/+page.svelte b/tfweb/src/routes/signup/+page.svelte index 1031dbc..e592a3d 100644 --- a/tfweb/src/routes/signup/+page.svelte +++ b/tfweb/src/routes/signup/+page.svelte @@ -9,7 +9,7 @@ let loading = true; let isError = false; let error = ''; - $: currentlyLoading = $isLoading || loading; + $: currentlyLoading = $isLoading; logSetup(); let logger = new Logger("signup/+page.svelte"); @@ -72,22 +72,38 @@ - {#if isDone} -

{$t('signup.email')}

-

{$t('signup.emailbody')}

- -

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

- {:else} -

{$t('signup.title')}

-

{$t('signup.subtitle')}

-
- - - - {#if hasErrForm} - -

{@html errForm}

- {/if} -
- {/if} +
+
+
+ {#if isDone} +

{$t('signup.email')}

+ +

{$t('signup.emailbody')}

+ +

{@html $t('signup.emailbody2', {values:{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', {values:{link0:''+$t('signup.already.link0')+''}})}

+ {/if} + +
+
+
diff --git a/tfweb/vite.config.js b/tfweb/vite.config.js new file mode 100644 index 0000000..6cca4b8 --- /dev/null +++ b/tfweb/vite.config.js @@ -0,0 +1,6 @@ +import { sveltekit } from '@sveltejs/kit/vite'; +import { defineConfig } from 'vite'; +export default defineConfig({ + plugins: [sveltekit()] +}); +//# sourceMappingURL=vite.config.js.map \ No newline at end of file diff --git a/tfweb/vite.config.js.map b/tfweb/vite.config.js.map new file mode 100644 index 0000000..b4ac7bf --- /dev/null +++ b/tfweb/vite.config.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vite.config.js","sourceRoot":"","sources":["vite.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,eAAe,YAAY,CAAC;IAC3B,OAAO,EAAE,CAAC,SAAS,EAAE,CAAC;CACtB,CAAC,CAAC"} \ No newline at end of file diff --git a/tfweb/yarn-error.log b/tfweb/yarn-error.log index 7b520b3..78cd680 100644 --- a/tfweb/yarn-error.log +++ b/tfweb/yarn-error.log @@ -1,29 +1,29 @@ Arguments: - /usr/bin/node /usr/bin/yarn add @types/svelte-qrcode --dev + /usr/bin/node /usr/bin/yarn add @fontawesome/fontawesome PATH: - /home/core/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl + /home/core/.cargo/bin/:/opt/flutter/bin:/home/core/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/local/writable_bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/core/prj/e3t/trifid/tfweb/node_modules/.bin Yarn version: 1.22.19 Node version: - 19.9.0 + 20.7.0 Platform: linux x64 Trace: - Error: https://registry.yarnpkg.com/@types%2fsvelte-qrcode: Not found + Error: https://registry.yarnpkg.com/@fontawesome%2ffontawesome: Not found at params.callback [as _callback] (/usr/lib/node_modules/yarn/lib/cli.js:66145:18) at self.callback (/usr/lib/node_modules/yarn/lib/cli.js:140890:22) - at Request.emit (node:events:513:28) + at Request.emit (node:events:514:28) at Request. (/usr/lib/node_modules/yarn/lib/cli.js:141862:10) - at Request.emit (node:events:513:28) + at Request.emit (node:events:514:28) at IncomingMessage. (/usr/lib/node_modules/yarn/lib/cli.js:141784:12) - at Object.onceWrapper (node:events:627:28) - at IncomingMessage.emit (node:events:525:35) - at endReadableNT (node:internal/streams/readable:1359: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: @@ -54,8 +54,13 @@ npm manifest: }, "type": "module", "dependencies": { - "svelte-i18n": "^3.6.0", - "svelte-qrcode": "^1.0.0" + "@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" } } @@ -316,6 +321,11 @@ Lockfile: 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" @@ -372,11 +382,23 @@ Lockfile: 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" @@ -491,7 +513,7 @@ Lockfile: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - ansi-styles@^4.1.0: + 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== @@ -526,6 +548,16 @@ Lockfile: 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" @@ -558,6 +590,11 @@ Lockfile: 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" @@ -592,6 +629,15 @@ Lockfile: 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" @@ -638,6 +684,11 @@ Lockfile: 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" @@ -658,6 +709,11 @@ Lockfile: 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" @@ -672,6 +728,16 @@ Lockfile: 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" @@ -937,6 +1003,14 @@ Lockfile: 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" @@ -958,6 +1032,11 @@ Lockfile: 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" @@ -968,6 +1047,11 @@ Lockfile: 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" @@ -1101,6 +1185,11 @@ Lockfile: 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" @@ -1168,6 +1257,13 @@ Lockfile: 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" @@ -1323,6 +1419,13 @@ Lockfile: 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" @@ -1330,6 +1433,13 @@ Lockfile: 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" @@ -1337,6 +1447,11 @@ Lockfile: 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" @@ -1374,6 +1489,11 @@ Lockfile: 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" @@ -1406,6 +1526,16 @@ Lockfile: 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" @@ -1418,6 +1548,16 @@ Lockfile: 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" @@ -1480,6 +1620,11 @@ Lockfile: 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" @@ -1531,7 +1676,16 @@ Lockfile: resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== - strip-ansi@^6.0.1: + 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== @@ -1608,11 +1762,6 @@ Lockfile: sorcery "^0.11.0" strip-indent "^3.0.0" - svelte-qrcode@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/svelte-qrcode/-/svelte-qrcode-1.0.0.tgz#4fd219ae20ccaecb91ba9727a2aaf3a0163b251d" - integrity sha512-WrOvyyxtUzu32gVIDxcFMy0A7uUpbl/8yHaTNOsUaI8W5V4wa7AmReCjffhNY2aS42CqCLJ6qdwUoj/KxmeZzA== - svelte@^3.54.0: version "3.59.1" resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.59.1.tgz#3de3d56b9165748f32f3131589b8d183cabe7449" @@ -1725,6 +1874,11 @@ Lockfile: 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" @@ -1737,11 +1891,25 @@ Lockfile: 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" @@ -1752,6 +1920,31 @@ Lockfile: 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" diff --git a/tfweb/yarn.lock b/tfweb/yarn.lock index 135c133..2a80e8e 100644 --- a/tfweb/yarn.lock +++ b/tfweb/yarn.lock @@ -183,6 +183,11 @@ dependencies: tslib "^2.1.0" +"@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" @@ -251,6 +256,11 @@ 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" @@ -473,6 +483,16 @@ binary-extensions@^2.0.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"