This commit is contained in:
Ruben Fiszel
2025-03-12 07:24:31 +01:00
parent 6d7f6b99a0
commit 46c4e39b80
4 changed files with 194 additions and 29 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ async function generateLocks(
const ignore = await ignoreF(opts);
const elems = Object.keys(
await elementsToMap(
await FSFSElement(Deno.cwd(), []),
await FSFSElement(Deno.cwd(), [], true),
(p, isD) => {
return (
ignore(p, isD) ||
+1 -1
View File
@@ -54,7 +54,7 @@ export const OpenAPI: OpenAPIConfig = {
PASSWORD: undefined,
TOKEN: getEnv("WM_TOKEN"),
USERNAME: undefined,
VERSION: '1.465.0',
VERSION: '1.476.0',
WITH_CREDENTIALS: true,
interceptors: {
request: new Interceptors(),
+114 -4
View File
File diff suppressed because one or more lines are too long
+78 -23
View File
@@ -578,6 +578,7 @@ export type HttpTrigger = TriggerExtraProperty & {
is_async: boolean;
requires_auth: boolean;
is_static_website: boolean;
workspaced_route?: boolean;
};
export type http_method = 'get' | 'post' | 'put' | 'delete' | 'patch';
@@ -586,6 +587,7 @@ export type NewHttpTrigger = {
path: string;
script_path: string;
route_path: string;
workspaced_route?: boolean;
static_asset_config?: {
s3: string;
storage?: string;
@@ -602,6 +604,7 @@ export type EditHttpTrigger = {
path: string;
script_path: string;
route_path?: string;
workspaced_route?: boolean;
static_asset_config?: {
s3: string;
storage?: string;
@@ -684,31 +687,20 @@ export type WebsocketTriggerInitialMessage = {
};
};
export type QoS = 0 | 1 | 2;
export type MqttQoS = 'qos0' | 'qos1' | 'qos2';
export type CommonMqttConfig = {
will?: {
topic?: string;
message?: Array<(number)>;
qos?: QoS;
retain?: boolean;
};
};
export type MqttV3Config = CommonMqttConfig & {
export type MqttV3Config = {
clean_session?: boolean;
};
export type MqttV5Config = CommonMqttConfig & {
export type MqttV5Config = {
clean_start?: boolean;
keep_alive?: number;
session_expiration?: number;
receive_maximum?: number;
maximum_packet_size?: number;
topic_alias?: number;
session_expiry_interval?: number;
};
export type SubscribeTopic = {
qos: QoS;
export type MqttSubscribeTopic = {
qos: MqttQoS;
topic: string;
};
@@ -716,7 +708,7 @@ export type MqttClientVersion = 'v3' | 'v5';
export type MqttTrigger = TriggerExtraProperty & {
mqtt_resource_path: string;
subscribe_topics: Array<SubscribeTopic>;
subscribe_topics: Array<MqttSubscribeTopic>;
v3_config?: MqttV3Config;
v5_config?: MqttV5Config;
client_id?: string;
@@ -729,7 +721,7 @@ export type MqttTrigger = TriggerExtraProperty & {
export type NewMqttTrigger = {
mqtt_resource_path: string;
subscribe_topics: Array<SubscribeTopic>;
subscribe_topics: Array<MqttSubscribeTopic>;
client_id?: string;
v3_config?: MqttV3Config;
v5_config?: MqttV5Config;
@@ -742,7 +734,7 @@ export type NewMqttTrigger = {
export type EditMqttTrigger = {
mqtt_resource_path: string;
subscribe_topics: Array<SubscribeTopic>;
subscribe_topics: Array<MqttSubscribeTopic>;
client_id?: string;
v3_config?: MqttV3Config;
v5_config?: MqttV5Config;
@@ -1007,7 +999,9 @@ export type GlobalUserInfo = {
export type login_type = 'password' | 'github';
export type Flow = OpenFlow & FlowMetadata;
export type Flow = OpenFlow & FlowMetadata & {
lock_error_logs?: string;
};
export type ExtraPerms = {
[key: string]: (boolean);
@@ -1070,6 +1064,10 @@ export type Policy = {
s3_inputs?: Array<{
[key: string]: unknown;
}>;
allowed_s3_keys?: Array<{
s3_path?: string;
resource?: string;
}>;
execution_mode?: 'viewer' | 'publisher' | 'anonymous';
on_behalf_of?: string;
on_behalf_of_email?: string;
@@ -1215,7 +1213,7 @@ export type WorkspaceGitSyncSettings = {
export type WorkspaceDeployUISettings = {
include_path?: Array<(string)>;
include_type?: Array<('script' | 'flow' | 'app' | 'resource' | 'variable' | 'secret')>;
include_type?: Array<('script' | 'flow' | 'app' | 'resource' | 'variable' | 'secret' | 'trigger')>;
};
export type WorkspaceDefaultScripts = {
@@ -1923,6 +1921,10 @@ export type ListAuditLogsData = {
* filter on created after (exclusive) timestamp
*/
after?: string;
/**
* get audit logs for all workspaces
*/
allWorkspaces?: boolean;
/**
* filter on started before (inclusive) timestamp
*/
@@ -4180,6 +4182,14 @@ export type GetFlowLatestVersionData = {
export type GetFlowLatestVersionResponse = (FlowVersion);
export type ListFlowPathsFromWorkspaceRunnableData = {
path: string;
runnableKind: 'script' | 'flow';
workspace: string;
};
export type ListFlowPathsFromWorkspaceRunnableResponse = (Array<(string)>);
export type GetFlowVersionData = {
path: string;
version: number;
@@ -4210,6 +4220,15 @@ export type GetFlowByPathData = {
export type GetFlowByPathResponse = (Flow);
export type GetFlowDeploymentStatusData = {
path: string;
workspace: string;
};
export type GetFlowDeploymentStatusResponse = ({
lock_error_logs?: string;
});
export type GetTriggersCountOfFlowData = {
path: string;
workspace: string;
@@ -4609,6 +4628,34 @@ export type ExecuteComponentData = {
export type ExecuteComponentResponse = (string);
export type UploadS3FileFromAppData = {
contentDisposition?: string;
contentType?: string;
fileExtension?: string;
fileKey?: string;
path: string;
/**
* File content
*/
requestBody: (Blob | File);
resourceType?: string;
s3ResourcePath?: string;
storage?: string;
workspace: string;
};
export type UploadS3FileFromAppResponse = ({
file_key: string;
delete_token: string;
});
export type DeleteS3FileFromAppData = {
deleteToken: string;
workspace: string;
};
export type DeleteS3FileFromAppResponse = (string);
export type RunFlowByPathData = {
/**
* List of headers's keys (separated with ',') whove value are added to the args
@@ -5749,6 +5796,7 @@ export type ExistsRouteData = {
route_path: string;
http_method: 'get' | 'post' | 'put' | 'delete' | 'patch';
trigger_path?: string;
workspaced_route?: boolean;
};
workspace: string;
};
@@ -6622,6 +6670,13 @@ export type GetFolderData = {
export type GetFolderResponse = (Folder);
export type ExistsFolderData = {
name: string;
workspace: string;
};
export type ExistsFolderResponse = (boolean);
export type GetFolderUsageData = {
name: string;
workspace: string;