Regen types

This commit is contained in:
Gregory Schier
2026-05-07 15:17:40 -07:00
parent e504a2e83c
commit 65a345448e
3 changed files with 134 additions and 90 deletions
+27 -5
View File
@@ -2,22 +2,44 @@
export type DnsOverride = { hostname: string, ipv4: Array<string>, ipv6: Array<string>, enabled?: boolean, }; export type DnsOverride = { hostname: string, ipv4: Array<string>, ipv6: Array<string>, enabled?: boolean, };
export type Environment = { model: "environment", id: string, workspaceId: string, createdAt: string, updatedAt: string, name: string, public: boolean, parentModel: string, parentId: string | null, variables: Array<EnvironmentVariable>, color: string | null, sortPriority: number, }; export type Environment = { model: "environment", id: string, workspaceId: string, createdAt: string, updatedAt: string, name: string, public: boolean, parentModel: string, parentId: string | null,
/**
* Variables defined in this environment scope.
* Child environments override parent variables by name.
*/
variables: Array<EnvironmentVariable>, color: string | null, sortPriority: number, };
export type EnvironmentVariable = { enabled?: boolean, name: string, value: string, id?: string, }; export type EnvironmentVariable = { enabled?: boolean, name: string, value: string, id?: string, };
export type Folder = { model: "folder", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authentication: Record<string, any>, authenticationType: string | null, description: string, headers: Array<HttpRequestHeader>, name: string, sortPriority: number, }; export type Folder = { model: "folder", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authentication: Record<string, any>, authenticationType: string | null, description: string, headers: Array<HttpRequestHeader>, name: string, sortPriority: number, };
export type GrpcRequest = { model: "grpc_request", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authenticationType: string | null, authentication: Record<string, any>, description: string, message: string, metadata: Array<HttpRequestHeader>, method: string | null, name: string, service: string | null, sortPriority: number, url: string, }; export type GrpcRequest = { model: "grpc_request", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authenticationType: string | null, authentication: Record<string, any>, description: string, message: string, metadata: Array<HttpRequestHeader>, method: string | null, name: string, service: string | null, sortPriority: number,
/**
* Server URL (http for plaintext or https for secure)
*/
url: string, };
export type HttpRequest = { model: "http_request", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authentication: Record<string, any>, authenticationType: string | null, body: Record<string, any>, bodyType: string | null, description: string, headers: Array<HttpRequestHeader>, method: string, name: string, sortPriority: number, url: string, urlParameters: Array<HttpUrlParameter>, }; export type HttpRequest = { model: "http_request", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authentication: Record<string, any>, authenticationType: string | null, body: Record<string, any>, bodyType: string | null, description: string, headers: Array<HttpRequestHeader>, method: string, name: string, sortPriority: number, url: string,
/**
* URL parameters used for both path placeholders (`:id`) and query string entries.
*/
urlParameters: Array<HttpUrlParameter>, };
export type HttpRequestHeader = { enabled?: boolean, name: string, value: string, id?: string, }; export type HttpRequestHeader = { enabled?: boolean, name: string, value: string, id?: string, };
export type HttpUrlParameter = { enabled?: boolean, name: string, value: string, id?: string, }; export type HttpUrlParameter = { enabled?: boolean,
/**
* Colon-prefixed parameters are treated as path parameters if they match, like `/users/:id`
* Other entries are appended as query parameters
*/
name: string, value: string, id?: string, };
export type SyncModel = { "type": "workspace" } & Workspace | { "type": "environment" } & Environment | { "type": "folder" } & Folder | { "type": "http_request" } & HttpRequest | { "type": "grpc_request" } & GrpcRequest | { "type": "websocket_request" } & WebsocketRequest; export type SyncModel = { "type": "workspace" } & Workspace | { "type": "environment" } & Environment | { "type": "folder" } & Folder | { "type": "http_request" } & HttpRequest | { "type": "grpc_request" } & GrpcRequest | { "type": "websocket_request" } & WebsocketRequest;
export type WebsocketRequest = { model: "websocket_request", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authentication: Record<string, any>, authenticationType: string | null, description: string, headers: Array<HttpRequestHeader>, message: string, name: string, sortPriority: number, url: string, urlParameters: Array<HttpUrlParameter>, }; export type WebsocketRequest = { model: "websocket_request", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authentication: Record<string, any>, authenticationType: string | null, description: string, headers: Array<HttpRequestHeader>, message: string, name: string, sortPriority: number, url: string,
/**
* URL parameters used for both path placeholders (`:id`) and query string entries.
*/
urlParameters: Array<HttpUrlParameter>, };
export type Workspace = { model: "workspace", id: string, createdAt: string, updatedAt: string, authentication: Record<string, any>, authenticationType: string | null, description: string, headers: Array<HttpRequestHeader>, name: string, encryptionKeyChallenge: string | null, settingValidateCertificates: boolean, settingFollowRedirects: boolean, settingRequestTimeout: number, settingDnsOverrides: Array<DnsOverride>, }; export type Workspace = { model: "workspace", id: string, createdAt: string, updatedAt: string, authentication: Record<string, any>, authenticationType: string | null, description: string, headers: Array<HttpRequestHeader>, name: string, encryptionKeyChallenge: string | null, settingValidateCertificates: boolean, settingFollowRedirects: boolean, settingRequestTimeout: number, settingDnsOverrides: Array<DnsOverride>, };
+80 -80
View File
@@ -18,12 +18,12 @@ export type CallHttpAuthenticationActionRequest = { index: number, pluginRefId:
export type CallHttpAuthenticationRequest = { contextId: string, values: { [key in string]?: JsonPrimitive }, method: string, url: string, headers: Array<HttpHeader>, }; export type CallHttpAuthenticationRequest = { contextId: string, values: { [key in string]?: JsonPrimitive }, method: string, url: string, headers: Array<HttpHeader>, };
export type CallHttpAuthenticationResponse = { export type CallHttpAuthenticationResponse = {
/** /**
* HTTP headers to add to the request. Existing headers will be replaced, while * HTTP headers to add to the request. Existing headers will be replaced, while
* new headers will be added. * new headers will be added.
*/ */
setHeaders?: Array<HttpHeader>, setHeaders?: Array<HttpHeader>,
/** /**
* Query parameters to add to the request. Existing params will be replaced, while * Query parameters to add to the request. Existing params will be replaced, while
* new params will be added. * new params will be added.
@@ -78,7 +78,7 @@ export type ExportHttpRequestRequest = { httpRequest: HttpRequest, };
export type ExportHttpRequestResponse = { content: string, }; export type ExportHttpRequestResponse = { content: string, };
export type FileFilter = { name: string, export type FileFilter = { name: string,
/** /**
* File extensions to require * File extensions to require
*/ */
@@ -100,149 +100,149 @@ export type FormInputAccordion = { label: string, inputs?: Array<FormInput>, hid
export type FormInputBanner = { inputs?: Array<FormInput>, hidden?: boolean, color?: Color, }; export type FormInputBanner = { inputs?: Array<FormInput>, hidden?: boolean, color?: Color, };
export type FormInputBase = { export type FormInputBase = {
/** /**
* The name of the input. The value will be stored at this object attribute in the resulting data * The name of the input. The value will be stored at this object attribute in the resulting data
*/ */
name: string, name: string,
/** /**
* Whether this input is visible for the given configuration. Use this to * Whether this input is visible for the given configuration. Use this to
* make branching forms. * make branching forms.
*/ */
hidden?: boolean, hidden?: boolean,
/** /**
* Whether the user must fill in the argument * Whether the user must fill in the argument
*/ */
optional?: boolean, optional?: boolean,
/** /**
* The label of the input * The label of the input
*/ */
label?: string, label?: string,
/** /**
* Visually hide the label of the input * Visually hide the label of the input
*/ */
hideLabel?: boolean, hideLabel?: boolean,
/** /**
* The default value * The default value
*/ */
defaultValue?: string, disabled?: boolean, defaultValue?: string, disabled?: boolean,
/** /**
* Longer description of the input, likely shown in a tooltip * Longer description of the input, likely shown in a tooltip
*/ */
description?: string, }; description?: string, };
export type FormInputCheckbox = { export type FormInputCheckbox = {
/** /**
* The name of the input. The value will be stored at this object attribute in the resulting data * The name of the input. The value will be stored at this object attribute in the resulting data
*/ */
name: string, name: string,
/** /**
* Whether this input is visible for the given configuration. Use this to * Whether this input is visible for the given configuration. Use this to
* make branching forms. * make branching forms.
*/ */
hidden?: boolean, hidden?: boolean,
/** /**
* Whether the user must fill in the argument * Whether the user must fill in the argument
*/ */
optional?: boolean, optional?: boolean,
/** /**
* The label of the input * The label of the input
*/ */
label?: string, label?: string,
/** /**
* Visually hide the label of the input * Visually hide the label of the input
*/ */
hideLabel?: boolean, hideLabel?: boolean,
/** /**
* The default value * The default value
*/ */
defaultValue?: string, disabled?: boolean, defaultValue?: string, disabled?: boolean,
/** /**
* Longer description of the input, likely shown in a tooltip * Longer description of the input, likely shown in a tooltip
*/ */
description?: string, }; description?: string, };
export type FormInputEditor = { export type FormInputEditor = {
/** /**
* Placeholder for the text input * Placeholder for the text input
*/ */
placeholder?: string | null, placeholder?: string | null,
/** /**
* Don't show the editor gutter (line numbers, folds, etc.) * Don't show the editor gutter (line numbers, folds, etc.)
*/ */
hideGutter?: boolean, hideGutter?: boolean,
/** /**
* Language for syntax highlighting * Language for syntax highlighting
*/ */
language?: EditorLanguage, readOnly?: boolean, language?: EditorLanguage, readOnly?: boolean,
/** /**
* Fixed number of visible rows * Fixed number of visible rows
*/ */
rows?: number, completionOptions?: Array<GenericCompletionOption>, rows?: number, completionOptions?: Array<GenericCompletionOption>,
/** /**
* The name of the input. The value will be stored at this object attribute in the resulting data * The name of the input. The value will be stored at this object attribute in the resulting data
*/ */
name: string, name: string,
/** /**
* Whether this input is visible for the given configuration. Use this to * Whether this input is visible for the given configuration. Use this to
* make branching forms. * make branching forms.
*/ */
hidden?: boolean, hidden?: boolean,
/** /**
* Whether the user must fill in the argument * Whether the user must fill in the argument
*/ */
optional?: boolean, optional?: boolean,
/** /**
* The label of the input * The label of the input
*/ */
label?: string, label?: string,
/** /**
* Visually hide the label of the input * Visually hide the label of the input
*/ */
hideLabel?: boolean, hideLabel?: boolean,
/** /**
* The default value * The default value
*/ */
defaultValue?: string, disabled?: boolean, defaultValue?: string, disabled?: boolean,
/** /**
* Longer description of the input, likely shown in a tooltip * Longer description of the input, likely shown in a tooltip
*/ */
description?: string, }; description?: string, };
export type FormInputFile = { export type FormInputFile = {
/** /**
* The title of the file selection window * The title of the file selection window
*/ */
title: string, title: string,
/** /**
* Allow selecting multiple files * Allow selecting multiple files
*/ */
multiple?: boolean, directory?: boolean, defaultPath?: string, filters?: Array<FileFilter>, multiple?: boolean, directory?: boolean, defaultPath?: string, filters?: Array<FileFilter>,
/** /**
* The name of the input. The value will be stored at this object attribute in the resulting data * The name of the input. The value will be stored at this object attribute in the resulting data
*/ */
name: string, name: string,
/** /**
* Whether this input is visible for the given configuration. Use this to * Whether this input is visible for the given configuration. Use this to
* make branching forms. * make branching forms.
*/ */
hidden?: boolean, hidden?: boolean,
/** /**
* Whether the user must fill in the argument * Whether the user must fill in the argument
*/ */
optional?: boolean, optional?: boolean,
/** /**
* The label of the input * The label of the input
*/ */
label?: string, label?: string,
/** /**
* Visually hide the label of the input * Visually hide the label of the input
*/ */
hideLabel?: boolean, hideLabel?: boolean,
/** /**
* The default value * The default value
*/ */
defaultValue?: string, disabled?: boolean, defaultValue?: string, disabled?: boolean,
/** /**
* Longer description of the input, likely shown in a tooltip * Longer description of the input, likely shown in a tooltip
*/ */
@@ -250,63 +250,63 @@ description?: string, };
export type FormInputHStack = { inputs?: Array<FormInput>, hidden?: boolean, }; export type FormInputHStack = { inputs?: Array<FormInput>, hidden?: boolean, };
export type FormInputHttpRequest = { export type FormInputHttpRequest = {
/** /**
* The name of the input. The value will be stored at this object attribute in the resulting data * The name of the input. The value will be stored at this object attribute in the resulting data
*/ */
name: string, name: string,
/** /**
* Whether this input is visible for the given configuration. Use this to * Whether this input is visible for the given configuration. Use this to
* make branching forms. * make branching forms.
*/ */
hidden?: boolean, hidden?: boolean,
/** /**
* Whether the user must fill in the argument * Whether the user must fill in the argument
*/ */
optional?: boolean, optional?: boolean,
/** /**
* The label of the input * The label of the input
*/ */
label?: string, label?: string,
/** /**
* Visually hide the label of the input * Visually hide the label of the input
*/ */
hideLabel?: boolean, hideLabel?: boolean,
/** /**
* The default value * The default value
*/ */
defaultValue?: string, disabled?: boolean, defaultValue?: string, disabled?: boolean,
/** /**
* Longer description of the input, likely shown in a tooltip * Longer description of the input, likely shown in a tooltip
*/ */
description?: string, }; description?: string, };
export type FormInputKeyValue = { export type FormInputKeyValue = {
/** /**
* The name of the input. The value will be stored at this object attribute in the resulting data * The name of the input. The value will be stored at this object attribute in the resulting data
*/ */
name: string, name: string,
/** /**
* Whether this input is visible for the given configuration. Use this to * Whether this input is visible for the given configuration. Use this to
* make branching forms. * make branching forms.
*/ */
hidden?: boolean, hidden?: boolean,
/** /**
* Whether the user must fill in the argument * Whether the user must fill in the argument
*/ */
optional?: boolean, optional?: boolean,
/** /**
* The label of the input * The label of the input
*/ */
label?: string, label?: string,
/** /**
* Visually hide the label of the input * Visually hide the label of the input
*/ */
hideLabel?: boolean, hideLabel?: boolean,
/** /**
* The default value * The default value
*/ */
defaultValue?: string, disabled?: boolean, defaultValue?: string, disabled?: boolean,
/** /**
* Longer description of the input, likely shown in a tooltip * Longer description of the input, likely shown in a tooltip
*/ */
@@ -314,36 +314,36 @@ description?: string, };
export type FormInputMarkdown = { content: string, hidden?: boolean, }; export type FormInputMarkdown = { content: string, hidden?: boolean, };
export type FormInputSelect = { export type FormInputSelect = {
/** /**
* The options that will be available in the select input * The options that will be available in the select input
*/ */
options: Array<FormInputSelectOption>, options: Array<FormInputSelectOption>,
/** /**
* The name of the input. The value will be stored at this object attribute in the resulting data * The name of the input. The value will be stored at this object attribute in the resulting data
*/ */
name: string, name: string,
/** /**
* Whether this input is visible for the given configuration. Use this to * Whether this input is visible for the given configuration. Use this to
* make branching forms. * make branching forms.
*/ */
hidden?: boolean, hidden?: boolean,
/** /**
* Whether the user must fill in the argument * Whether the user must fill in the argument
*/ */
optional?: boolean, optional?: boolean,
/** /**
* The label of the input * The label of the input
*/ */
label?: string, label?: string,
/** /**
* Visually hide the label of the input * Visually hide the label of the input
*/ */
hideLabel?: boolean, hideLabel?: boolean,
/** /**
* The default value * The default value
*/ */
defaultValue?: string, disabled?: boolean, defaultValue?: string, disabled?: boolean,
/** /**
* Longer description of the input, likely shown in a tooltip * Longer description of the input, likely shown in a tooltip
*/ */
@@ -351,44 +351,44 @@ description?: string, };
export type FormInputSelectOption = { label: string, value: string, }; export type FormInputSelectOption = { label: string, value: string, };
export type FormInputText = { export type FormInputText = {
/** /**
* Placeholder for the text input * Placeholder for the text input
*/ */
placeholder?: string | null, placeholder?: string | null,
/** /**
* Placeholder for the text input * Placeholder for the text input
*/ */
password?: boolean, password?: boolean,
/** /**
* Whether to allow newlines in the input, like a <textarea/> * Whether to allow newlines in the input, like a <textarea/>
*/ */
multiLine?: boolean, completionOptions?: Array<GenericCompletionOption>, multiLine?: boolean, completionOptions?: Array<GenericCompletionOption>,
/** /**
* The name of the input. The value will be stored at this object attribute in the resulting data * The name of the input. The value will be stored at this object attribute in the resulting data
*/ */
name: string, name: string,
/** /**
* Whether this input is visible for the given configuration. Use this to * Whether this input is visible for the given configuration. Use this to
* make branching forms. * make branching forms.
*/ */
hidden?: boolean, hidden?: boolean,
/** /**
* Whether the user must fill in the argument * Whether the user must fill in the argument
*/ */
optional?: boolean, optional?: boolean,
/** /**
* The label of the input * The label of the input
*/ */
label?: string, label?: string,
/** /**
* Visually hide the label of the input * Visually hide the label of the input
*/ */
hideLabel?: boolean, hideLabel?: boolean,
/** /**
* The default value * The default value
*/ */
defaultValue?: string, disabled?: boolean, defaultValue?: string, disabled?: boolean,
/** /**
* Longer description of the input, likely shown in a tooltip * Longer description of the input, likely shown in a tooltip
*/ */
@@ -474,7 +474,7 @@ export type ListOpenWorkspacesResponse = { workspaces: Array<WorkspaceInfo>, };
export type OpenExternalUrlRequest = { url: string, }; export type OpenExternalUrlRequest = { url: string, };
export type OpenWindowRequest = { url: string, export type OpenWindowRequest = { url: string,
/** /**
* Label for the window. If not provided, a random one will be generated. * Label for the window. If not provided, a random one will be generated.
*/ */
@@ -486,15 +486,15 @@ export type PromptFormRequest = { id: string, title: string, description?: strin
export type PromptFormResponse = { values: { [key in string]?: JsonPrimitive } | null, done?: boolean, }; export type PromptFormResponse = { values: { [key in string]?: JsonPrimitive } | null, done?: boolean, };
export type PromptTextRequest = { id: string, title: string, label: string, description?: string, defaultValue?: string, placeholder?: string, export type PromptTextRequest = { id: string, title: string, label: string, description?: string, defaultValue?: string, placeholder?: string,
/** /**
* Text to add to the confirmation button * Text to add to the confirmation button
*/ */
confirmText?: string, password?: boolean, confirmText?: string, password?: boolean,
/** /**
* Text to add to the cancel button * Text to add to the cancel button
*/ */
cancelText?: string, cancelText?: string,
/** /**
* Require the user to enter a non-empty value * Require the user to enter a non-empty value
*/ */
@@ -524,12 +524,12 @@ export type SetKeyValueResponse = {};
export type ShowToastRequest = { message: string, color?: Color, icon?: Icon, timeout?: number, }; export type ShowToastRequest = { message: string, color?: Color, icon?: Icon, timeout?: number, };
export type TemplateFunction = { name: string, previewType?: TemplateFunctionPreviewType, description?: string, export type TemplateFunction = { name: string, previewType?: TemplateFunctionPreviewType, description?: string,
/** /**
* Also support alternative names. This is useful for not breaking existing * Also support alternative names. This is useful for not breaking existing
* tags when changing the `name` property * tags when changing the `name` property
*/ */
aliases?: Array<string>, args: Array<TemplateFunctionArg>, aliases?: Array<string>, args: Array<TemplateFunctionArg>,
/** /**
* A list of arg names to show in the inline preview. If not provided, none will be shown (for privacy reasons). * A list of arg names to show in the inline preview. If not provided, none will be shown (for privacy reasons).
*/ */
@@ -546,23 +546,23 @@ export type TemplateRenderRequest = { data: JsonValue, purpose: RenderPurpose, }
export type TemplateRenderResponse = { data: JsonValue, }; export type TemplateRenderResponse = { data: JsonValue, };
export type Theme = { export type Theme = {
/** /**
* How the theme is identified. This should never be changed * How the theme is identified. This should never be changed
*/ */
id: string, id: string,
/** /**
* The friendly name of the theme to be displayed to the user * The friendly name of the theme to be displayed to the user
*/ */
label: string, label: string,
/** /**
* Whether the theme will be used for dark or light appearance * Whether the theme will be used for dark or light appearance
*/ */
dark: boolean, dark: boolean,
/** /**
* The default top-level colors for the theme * The default top-level colors for the theme
*/ */
base: ThemeComponentColors, base: ThemeComponentColors,
/** /**
* Optionally override theme for individual UI components for more control * Optionally override theme for individual UI components for more control
*/ */
+27 -5
View File
@@ -2,24 +2,46 @@
export type DnsOverride = { hostname: string, ipv4: Array<string>, ipv6: Array<string>, enabled?: boolean, }; export type DnsOverride = { hostname: string, ipv4: Array<string>, ipv6: Array<string>, enabled?: boolean, };
export type Environment = { model: "environment", id: string, workspaceId: string, createdAt: string, updatedAt: string, name: string, public: boolean, parentModel: string, parentId: string | null, variables: Array<EnvironmentVariable>, color: string | null, sortPriority: number, }; export type Environment = { model: "environment", id: string, workspaceId: string, createdAt: string, updatedAt: string, name: string, public: boolean, parentModel: string, parentId: string | null,
/**
* Variables defined in this environment scope.
* Child environments override parent variables by name.
*/
variables: Array<EnvironmentVariable>, color: string | null, sortPriority: number, };
export type EnvironmentVariable = { enabled?: boolean, name: string, value: string, id?: string, }; export type EnvironmentVariable = { enabled?: boolean, name: string, value: string, id?: string, };
export type Folder = { model: "folder", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authentication: Record<string, any>, authenticationType: string | null, description: string, headers: Array<HttpRequestHeader>, name: string, sortPriority: number, }; export type Folder = { model: "folder", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authentication: Record<string, any>, authenticationType: string | null, description: string, headers: Array<HttpRequestHeader>, name: string, sortPriority: number, };
export type GrpcRequest = { model: "grpc_request", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authenticationType: string | null, authentication: Record<string, any>, description: string, message: string, metadata: Array<HttpRequestHeader>, method: string | null, name: string, service: string | null, sortPriority: number, url: string, }; export type GrpcRequest = { model: "grpc_request", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authenticationType: string | null, authentication: Record<string, any>, description: string, message: string, metadata: Array<HttpRequestHeader>, method: string | null, name: string, service: string | null, sortPriority: number,
/**
* Server URL (http for plaintext or https for secure)
*/
url: string, };
export type HttpRequest = { model: "http_request", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authentication: Record<string, any>, authenticationType: string | null, body: Record<string, any>, bodyType: string | null, description: string, headers: Array<HttpRequestHeader>, method: string, name: string, sortPriority: number, url: string, urlParameters: Array<HttpUrlParameter>, }; export type HttpRequest = { model: "http_request", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authentication: Record<string, any>, authenticationType: string | null, body: Record<string, any>, bodyType: string | null, description: string, headers: Array<HttpRequestHeader>, method: string, name: string, sortPriority: number, url: string,
/**
* URL parameters used for both path placeholders (`:id`) and query string entries.
*/
urlParameters: Array<HttpUrlParameter>, };
export type HttpRequestHeader = { enabled?: boolean, name: string, value: string, id?: string, }; export type HttpRequestHeader = { enabled?: boolean, name: string, value: string, id?: string, };
export type HttpUrlParameter = { enabled?: boolean, name: string, value: string, id?: string, }; export type HttpUrlParameter = { enabled?: boolean,
/**
* Colon-prefixed parameters are treated as path parameters if they match, like `/users/:id`
* Other entries are appended as query parameters
*/
name: string, value: string, id?: string, };
export type SyncModel = { "type": "workspace" } & Workspace | { "type": "environment" } & Environment | { "type": "folder" } & Folder | { "type": "http_request" } & HttpRequest | { "type": "grpc_request" } & GrpcRequest | { "type": "websocket_request" } & WebsocketRequest; export type SyncModel = { "type": "workspace" } & Workspace | { "type": "environment" } & Environment | { "type": "folder" } & Folder | { "type": "http_request" } & HttpRequest | { "type": "grpc_request" } & GrpcRequest | { "type": "websocket_request" } & WebsocketRequest;
export type SyncState = { model: "sync_state", id: string, workspaceId: string, createdAt: string, updatedAt: string, flushedAt: string, modelId: string, checksum: string, relPath: string, syncDir: string, }; export type SyncState = { model: "sync_state", id: string, workspaceId: string, createdAt: string, updatedAt: string, flushedAt: string, modelId: string, checksum: string, relPath: string, syncDir: string, };
export type WebsocketRequest = { model: "websocket_request", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authentication: Record<string, any>, authenticationType: string | null, description: string, headers: Array<HttpRequestHeader>, message: string, name: string, sortPriority: number, url: string, urlParameters: Array<HttpUrlParameter>, }; export type WebsocketRequest = { model: "websocket_request", id: string, createdAt: string, updatedAt: string, workspaceId: string, folderId: string | null, authentication: Record<string, any>, authenticationType: string | null, description: string, headers: Array<HttpRequestHeader>, message: string, name: string, sortPriority: number, url: string,
/**
* URL parameters used for both path placeholders (`:id`) and query string entries.
*/
urlParameters: Array<HttpUrlParameter>, };
export type Workspace = { model: "workspace", id: string, createdAt: string, updatedAt: string, authentication: Record<string, any>, authenticationType: string | null, description: string, headers: Array<HttpRequestHeader>, name: string, encryptionKeyChallenge: string | null, settingValidateCertificates: boolean, settingFollowRedirects: boolean, settingRequestTimeout: number, settingDnsOverrides: Array<DnsOverride>, }; export type Workspace = { model: "workspace", id: string, createdAt: string, updatedAt: string, authentication: Record<string, any>, authenticationType: string | null, description: string, headers: Array<HttpRequestHeader>, name: string, encryptionKeyChallenge: string | null, settingValidateCertificates: boolean, settingFollowRedirects: boolean, settingRequestTimeout: number, settingDnsOverrides: Array<DnsOverride>, };