windmill-client 1.823.0 → 1.824.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ const OpenAPI = {
29
29
  PASSWORD: void 0,
30
30
  TOKEN: getEnv("WM_TOKEN"),
31
31
  USERNAME: void 0,
32
- VERSION: "1.823.0",
32
+ VERSION: "1.824.0",
33
33
  WITH_CREDENTIALS: !getEnv("WM_RAW_APP"),
34
34
  interceptors: {
35
35
  request: new Interceptors(),
package/dist/index.js CHANGED
@@ -126,7 +126,7 @@ const OpenAPI = {
126
126
  PASSWORD: void 0,
127
127
  TOKEN: getEnv$1("WM_TOKEN"),
128
128
  USERNAME: void 0,
129
- VERSION: "1.823.0",
129
+ VERSION: "1.824.0",
130
130
  WITH_CREDENTIALS: !getEnv$1("WM_RAW_APP"),
131
131
  interceptors: {
132
132
  request: new Interceptors(),
@@ -636,7 +636,7 @@ export type ProviderConfig = {
636
636
  /**
637
637
  * Supported AI provider types
638
638
  */
639
- kind: 'openai' | 'azure_openai' | 'azure_foundry' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'customai' | 'aws_bedrock';
639
+ kind: 'openai' | 'azure_openai' | 'azure_foundry' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'customai' | 'aws_bedrock' | 'typesafe' | 'cloudflare';
640
640
  /**
641
641
  * Resource reference in format '$res:{resource_path}' pointing to provider credentials
642
642
  */
@@ -650,6 +650,13 @@ export type ProviderConfig = {
650
650
  */
651
651
  reasoning_effort?: string;
652
652
  };
653
+ /**
654
+ * Provider configuration - can be static (ProviderConfig), JavaScript expression, or AI-determined
655
+ */
656
+ export type ProviderTransform = {
657
+ value: ProviderConfig;
658
+ type: 'static';
659
+ } | JavascriptTransform | AiTransform;
653
660
  /**
654
661
  * Managed memory, stored by Windmill and replayed with each request. The memory is named by a memory id, see `memory_id`. While it is off, a step can supply its history in `previous_messages`.
655
662
  */
@@ -689,7 +696,7 @@ export type MemoryConfig = {
689
696
  /**
690
697
  * The actual implementation of a flow step. Can be a script (inline or referenced), subflow, loop, branch, or special module type
691
698
  */
692
- export type FlowModuleValue = RawScript | PathScript | PathFlow | ForloopFlow | WhileloopFlow | BranchOne | BranchAll | Identity | AiAgent;
699
+ export type FlowModuleValue = RawScript | PathScript | PathFlow | ForloopFlow | WhileloopFlow | BranchOne | BranchAll | Identity | AiAgent | AiDecision;
693
700
  /**
694
701
  * Inline script with code defined directly in the flow. Use 'bun' as default language if unspecified. The script receives arguments from input_transforms
695
702
  */
@@ -915,13 +922,7 @@ export type AiAgent = {
915
922
  * Input parameters for the AI agent mapped to their values
916
923
  */
917
924
  input_transforms: {
918
- /**
919
- * Provider configuration - can be static (ProviderConfig), JavaScript expression, or AI-determined
920
- */
921
- provider?: {
922
- value: ProviderConfig;
923
- type: 'static';
924
- } | JavascriptTransform | AiTransform;
925
+ provider?: ProviderTransform;
925
926
  /**
926
927
  * Output format type.
927
928
  * Valid values: 'text' (default) - plain text response, 'image' - image generation
@@ -1096,6 +1097,51 @@ export type AiAgent = {
1096
1097
  */
1097
1098
  parallel?: boolean;
1098
1099
  };
1100
+ /**
1101
+ * AI decision step: one call to a decision model (TypeSafe's Jev, or Cloudflare's
1102
+ * Jev-compatible Clef) that answers typed questions about a state with calibrated
1103
+ * probabilities, instead of generating text.
1104
+ * Prefer it over an AI agent to classify, route, score or check something: it is fast,
1105
+ * cheap and its answers are structured. Its result is { output: { <question name>: answer },
1106
+ * model, usage }, so a later step reads e.g. results.<id>.output.intent.choice. To route on
1107
+ * the answers, follow it with a branchone whose branch exprs read
1108
+ * results.<id>.output.<question>.choice. Usable as an AI agent tool, where the calling agent
1109
+ * supplies the state.
1110
+ *
1111
+ */
1112
+ export type AiDecision = {
1113
+ /**
1114
+ * Input parameters for the decision mapped to their values
1115
+ */
1116
+ input_transforms: {
1117
+ provider: ProviderTransform;
1118
+ /**
1119
+ * What the questions are asked about: a string, an object or an array of strings.
1120
+ * An object with descriptive keys holding only what the questions need works best.
1121
+ * Example: { message: flow_input.message, plan: results.a.plan }
1122
+ *
1123
+ */
1124
+ state: InputTransform;
1125
+ /**
1126
+ * Object mapping each question name to { type, instructions, criteria }, where type is:
1127
+ * - 'choice': criteria maps each option to its description (up to 255); the answer
1128
+ * has choice, probabilities and confidence
1129
+ * - 'score': criteria is an ordered array of 2 to 10 level descriptions; the answer
1130
+ * has score, legend, probabilities and confidence
1131
+ * - 'noul': yes/no, criteria optionally { true, false } descriptions; the answer has
1132
+ * noul, the probability of yes (0 to 1)
1133
+ * Example: { intent: { type: 'choice', instructions: 'What does the customer want?',
1134
+ * criteria: { refund: 'Money back', bug: 'Something is broken' } } }
1135
+ *
1136
+ */
1137
+ questions: InputTransform;
1138
+ };
1139
+ type: 'aidecision';
1140
+ /**
1141
+ * Worker group tag for execution routing. If not set, the step runs on the flow's tag (default `flow`)
1142
+ */
1143
+ tag?: string;
1144
+ };
1099
1145
  /**
1100
1146
  * Pass-through module that returns its input unchanged. Useful for flow structure or as a placeholder
1101
1147
  */
@@ -1973,7 +2019,7 @@ export type EndpointTool = {
1973
2019
  [key: string]: unknown;
1974
2020
  } | null;
1975
2021
  };
1976
- export type AIProvider = 'openai' | 'azure_openai' | 'azure_foundry' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'aws_bedrock' | 'customai';
2022
+ export type AIProvider = 'openai' | 'azure_openai' | 'azure_foundry' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'aws_bedrock' | 'customai' | 'typesafe' | 'cloudflare';
1977
2023
  export type GitSyncObjectType = 'script' | 'flow' | 'app' | 'folder' | 'resource' | 'variable' | 'secret' | 'resourcetype' | 'schedule' | 'user' | 'group' | 'trigger' | 'settings' | 'key' | 'workspacedependencies' | 'datatablemigration';
1978
2024
  export type AIProviderModel = {
1979
2025
  model: string;
@@ -9047,6 +9093,10 @@ export type GetBillableSeatsResponse = {
9047
9093
  * Omitted when the seats counted are another workspace's, as they are for a fork resolving to its billing root.
9048
9094
  */
9049
9095
  operators?: number;
9096
+ /**
9097
+ * Enabled service accounts, half a seat each like operators. Omitted when the seats counted are another workspace's, as they are for a fork resolving to its billing root.
9098
+ */
9099
+ service_accounts?: number;
9050
9100
  seats: number;
9051
9101
  };
9052
9102
  export type GetPremiumInfoData = {
@@ -21633,6 +21683,10 @@ export type $OpenApiTs = {
21633
21683
  * Omitted when the seats counted are another workspace's, as they are for a fork resolving to its billing root.
21634
21684
  */
21635
21685
  operators?: number;
21686
+ /**
21687
+ * Enabled service accounts, half a seat each like operators. Omitted when the seats counted are another workspace's, as they are for a fork resolving to its billing root.
21688
+ */
21689
+ service_accounts?: number;
21636
21690
  seats: number;
21637
21691
  };
21638
21692
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "windmill-client",
3
3
  "description": "Windmill SDK client for browsers and Node.js",
4
- "version": "1.823.0",
4
+ "version": "1.824.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "homepage": "https://github.com/windmill-labs/windmill/tree/main/typescript-client#readme",