@automate.ax/api-contract 0.153.1 → 0.154.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.
@@ -114,6 +114,12 @@ export declare const deploymentOutputSchema: z.ZodObject<{
114
114
  description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
115
115
  label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
116
116
  name: import("zod/mini").ZodMiniString<string>;
117
+ }, z.core.$strip>, import("zod/mini").ZodMiniObject<{
118
+ required: import("zod/mini").ZodMiniPrefault<import("zod/mini").ZodMiniBoolean<boolean>>;
119
+ type: import("zod/mini").ZodMiniLiteral<"file">;
120
+ description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
121
+ label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
122
+ name: import("zod/mini").ZodMiniString<string>;
117
123
  }, z.core.$strip>], "type">, import("zod/mini").ZodMiniTransform<{
118
124
  label: string;
119
125
  required: boolean;
@@ -198,6 +204,12 @@ export declare const deploymentOutputSchema: z.ZodObject<{
198
204
  type: "checkbox";
199
205
  name: string;
200
206
  description?: string | undefined;
207
+ } | {
208
+ label: string;
209
+ required: boolean;
210
+ type: "file";
211
+ name: string;
212
+ description?: string | undefined;
201
213
  }, {
202
214
  required: boolean;
203
215
  type: "email" | "text" | "url" | "phone" | "textarea";
@@ -282,6 +294,12 @@ export declare const deploymentOutputSchema: z.ZodObject<{
282
294
  name: string;
283
295
  description?: string | undefined;
284
296
  label?: string | undefined;
297
+ } | {
298
+ required: boolean;
299
+ type: "file";
300
+ name: string;
301
+ description?: string | undefined;
302
+ label?: string | undefined;
285
303
  }>>>>;
286
304
  parameterValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBase64>>;
287
305
  scopes: z.ZodArray<z.ZodObject<{
@@ -496,6 +514,12 @@ export declare const deploymentContract: {
496
514
  description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
497
515
  label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
498
516
  name: import("zod/mini").ZodMiniString<string>;
517
+ }, z.core.$strip>, import("zod/mini").ZodMiniObject<{
518
+ required: import("zod/mini").ZodMiniPrefault<import("zod/mini").ZodMiniBoolean<boolean>>;
519
+ type: import("zod/mini").ZodMiniLiteral<"file">;
520
+ description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
521
+ label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
522
+ name: import("zod/mini").ZodMiniString<string>;
499
523
  }, z.core.$strip>], "type">, import("zod/mini").ZodMiniTransform<{
500
524
  label: string;
501
525
  required: boolean;
@@ -580,6 +604,12 @@ export declare const deploymentContract: {
580
604
  type: "checkbox";
581
605
  name: string;
582
606
  description?: string | undefined;
607
+ } | {
608
+ label: string;
609
+ required: boolean;
610
+ type: "file";
611
+ name: string;
612
+ description?: string | undefined;
583
613
  }, {
584
614
  required: boolean;
585
615
  type: "email" | "text" | "url" | "phone" | "textarea";
@@ -664,6 +694,12 @@ export declare const deploymentContract: {
664
694
  name: string;
665
695
  description?: string | undefined;
666
696
  label?: string | undefined;
697
+ } | {
698
+ required: boolean;
699
+ type: "file";
700
+ name: string;
701
+ description?: string | undefined;
702
+ label?: string | undefined;
667
703
  }>>>>;
668
704
  parameterValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBase64>>;
669
705
  scopes: z.ZodArray<z.ZodObject<{
@@ -832,6 +868,12 @@ export declare const deploymentContract: {
832
868
  description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
833
869
  label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
834
870
  name: import("zod/mini").ZodMiniString<string>;
871
+ }, z.core.$strip>, import("zod/mini").ZodMiniObject<{
872
+ required: import("zod/mini").ZodMiniPrefault<import("zod/mini").ZodMiniBoolean<boolean>>;
873
+ type: import("zod/mini").ZodMiniLiteral<"file">;
874
+ description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
875
+ label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
876
+ name: import("zod/mini").ZodMiniString<string>;
835
877
  }, z.core.$strip>], "type">, import("zod/mini").ZodMiniTransform<{
836
878
  label: string;
837
879
  required: boolean;
@@ -916,6 +958,12 @@ export declare const deploymentContract: {
916
958
  type: "checkbox";
917
959
  name: string;
918
960
  description?: string | undefined;
961
+ } | {
962
+ label: string;
963
+ required: boolean;
964
+ type: "file";
965
+ name: string;
966
+ description?: string | undefined;
919
967
  }, {
920
968
  required: boolean;
921
969
  type: "email" | "text" | "url" | "phone" | "textarea";
@@ -1000,6 +1048,12 @@ export declare const deploymentContract: {
1000
1048
  name: string;
1001
1049
  description?: string | undefined;
1002
1050
  label?: string | undefined;
1051
+ } | {
1052
+ required: boolean;
1053
+ type: "file";
1054
+ name: string;
1055
+ description?: string | undefined;
1056
+ label?: string | undefined;
1003
1057
  }>>>>;
1004
1058
  parameterValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBase64>>;
1005
1059
  scopes: z.ZodArray<z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { DASHBOARD_RUN_FIELDS_SCHEMA } from "@automate.ax/catalog";
2
+ import { FORM_FIELDS_SCHEMA } from "@automate.ax/catalog";
3
3
  import * as z from "zod";
4
4
  import { AUTOMATION_RUNTIME_PROTOCOL_VERSION } from "./runtime-protocol.js";
5
5
  import { cursorPageOutputSchema, cursorPaginationInputSchema } from "./schemas.js";
@@ -73,7 +73,7 @@ export const deploymentOutputSchema = z.object({
73
73
  id: z.string(),
74
74
  identityKey: z.string(),
75
75
  parameterIssues: z.string().array().optional(),
76
- parameters: z.optional(DASHBOARD_RUN_FIELDS_SCHEMA),
76
+ parameters: z.optional(FORM_FIELDS_SCHEMA),
77
77
  parameterValues: z.record(z.string(), z.base64()).optional(),
78
78
  scopes: z
79
79
  .object({
package/dist/index.d.ts CHANGED
@@ -700,6 +700,12 @@ export declare const publicContract: {
700
700
  description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
701
701
  label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
702
702
  name: import("zod/mini").ZodMiniString<string>;
703
+ }, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
704
+ required: import("zod/mini").ZodMiniPrefault<import("zod/mini").ZodMiniBoolean<boolean>>;
705
+ type: import("zod/mini").ZodMiniLiteral<"file">;
706
+ description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
707
+ label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
708
+ name: import("zod/mini").ZodMiniString<string>;
703
709
  }, import("zod/v4/core").$strip>], "type">, import("zod/mini").ZodMiniTransform<{
704
710
  label: string;
705
711
  required: boolean;
@@ -784,6 +790,12 @@ export declare const publicContract: {
784
790
  type: "checkbox";
785
791
  name: string;
786
792
  description?: string | undefined;
793
+ } | {
794
+ label: string;
795
+ required: boolean;
796
+ type: "file";
797
+ name: string;
798
+ description?: string | undefined;
787
799
  }, {
788
800
  required: boolean;
789
801
  type: "email" | "text" | "url" | "phone" | "textarea";
@@ -868,6 +880,12 @@ export declare const publicContract: {
868
880
  name: string;
869
881
  description?: string | undefined;
870
882
  label?: string | undefined;
883
+ } | {
884
+ required: boolean;
885
+ type: "file";
886
+ name: string;
887
+ description?: string | undefined;
888
+ label?: string | undefined;
871
889
  }>>>>;
872
890
  parameterValues: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBase64>>;
873
891
  scopes: import("zod").ZodArray<import("zod").ZodObject<{
@@ -1036,6 +1054,12 @@ export declare const publicContract: {
1036
1054
  description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
1037
1055
  label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
1038
1056
  name: import("zod/mini").ZodMiniString<string>;
1057
+ }, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
1058
+ required: import("zod/mini").ZodMiniPrefault<import("zod/mini").ZodMiniBoolean<boolean>>;
1059
+ type: import("zod/mini").ZodMiniLiteral<"file">;
1060
+ description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
1061
+ label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
1062
+ name: import("zod/mini").ZodMiniString<string>;
1039
1063
  }, import("zod/v4/core").$strip>], "type">, import("zod/mini").ZodMiniTransform<{
1040
1064
  label: string;
1041
1065
  required: boolean;
@@ -1120,6 +1144,12 @@ export declare const publicContract: {
1120
1144
  type: "checkbox";
1121
1145
  name: string;
1122
1146
  description?: string | undefined;
1147
+ } | {
1148
+ label: string;
1149
+ required: boolean;
1150
+ type: "file";
1151
+ name: string;
1152
+ description?: string | undefined;
1123
1153
  }, {
1124
1154
  required: boolean;
1125
1155
  type: "email" | "text" | "url" | "phone" | "textarea";
@@ -1204,6 +1234,12 @@ export declare const publicContract: {
1204
1234
  name: string;
1205
1235
  description?: string | undefined;
1206
1236
  label?: string | undefined;
1237
+ } | {
1238
+ required: boolean;
1239
+ type: "file";
1240
+ name: string;
1241
+ description?: string | undefined;
1242
+ label?: string | undefined;
1207
1243
  }>>>>;
1208
1244
  parameterValues: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBase64>>;
1209
1245
  scopes: import("zod").ZodArray<import("zod").ZodObject<{
@@ -1826,6 +1862,12 @@ export declare const firstPartyContract: {
1826
1862
  description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
1827
1863
  label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
1828
1864
  name: import("zod/mini").ZodMiniString<string>;
1865
+ }, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
1866
+ required: import("zod/mini").ZodMiniPrefault<import("zod/mini").ZodMiniBoolean<boolean>>;
1867
+ type: import("zod/mini").ZodMiniLiteral<"file">;
1868
+ description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
1869
+ label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
1870
+ name: import("zod/mini").ZodMiniString<string>;
1829
1871
  }, import("zod/v4/core").$strip>], "type">, import("zod/mini").ZodMiniTransform<{
1830
1872
  label: string;
1831
1873
  required: boolean;
@@ -1910,6 +1952,12 @@ export declare const firstPartyContract: {
1910
1952
  type: "checkbox";
1911
1953
  name: string;
1912
1954
  description?: string | undefined;
1955
+ } | {
1956
+ label: string;
1957
+ required: boolean;
1958
+ type: "file";
1959
+ name: string;
1960
+ description?: string | undefined;
1913
1961
  }, {
1914
1962
  required: boolean;
1915
1963
  type: "email" | "text" | "url" | "phone" | "textarea";
@@ -1994,6 +2042,12 @@ export declare const firstPartyContract: {
1994
2042
  name: string;
1995
2043
  description?: string | undefined;
1996
2044
  label?: string | undefined;
2045
+ } | {
2046
+ required: boolean;
2047
+ type: "file";
2048
+ name: string;
2049
+ description?: string | undefined;
2050
+ label?: string | undefined;
1997
2051
  }>>>>;
1998
2052
  parameterValues: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBase64>>;
1999
2053
  scopes: import("zod").ZodArray<import("zod").ZodObject<{
@@ -2162,6 +2216,12 @@ export declare const firstPartyContract: {
2162
2216
  description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
2163
2217
  label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
2164
2218
  name: import("zod/mini").ZodMiniString<string>;
2219
+ }, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
2220
+ required: import("zod/mini").ZodMiniPrefault<import("zod/mini").ZodMiniBoolean<boolean>>;
2221
+ type: import("zod/mini").ZodMiniLiteral<"file">;
2222
+ description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
2223
+ label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
2224
+ name: import("zod/mini").ZodMiniString<string>;
2165
2225
  }, import("zod/v4/core").$strip>], "type">, import("zod/mini").ZodMiniTransform<{
2166
2226
  label: string;
2167
2227
  required: boolean;
@@ -2246,6 +2306,12 @@ export declare const firstPartyContract: {
2246
2306
  type: "checkbox";
2247
2307
  name: string;
2248
2308
  description?: string | undefined;
2309
+ } | {
2310
+ label: string;
2311
+ required: boolean;
2312
+ type: "file";
2313
+ name: string;
2314
+ description?: string | undefined;
2249
2315
  }, {
2250
2316
  required: boolean;
2251
2317
  type: "email" | "text" | "url" | "phone" | "textarea";
@@ -2330,6 +2396,12 @@ export declare const firstPartyContract: {
2330
2396
  name: string;
2331
2397
  description?: string | undefined;
2332
2398
  label?: string | undefined;
2399
+ } | {
2400
+ required: boolean;
2401
+ type: "file";
2402
+ name: string;
2403
+ description?: string | undefined;
2404
+ label?: string | undefined;
2333
2405
  }>>>>;
2334
2406
  parameterValues: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBase64>>;
2335
2407
  scopes: import("zod").ZodArray<import("zod").ZodObject<{
@@ -9263,6 +9335,12 @@ export declare const contract: {
9263
9335
  description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
9264
9336
  label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
9265
9337
  name: import("zod/mini").ZodMiniString<string>;
9338
+ }, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
9339
+ required: import("zod/mini").ZodMiniPrefault<import("zod/mini").ZodMiniBoolean<boolean>>;
9340
+ type: import("zod/mini").ZodMiniLiteral<"file">;
9341
+ description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
9342
+ label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
9343
+ name: import("zod/mini").ZodMiniString<string>;
9266
9344
  }, import("zod/v4/core").$strip>], "type">, import("zod/mini").ZodMiniTransform<{
9267
9345
  label: string;
9268
9346
  required: boolean;
@@ -9347,6 +9425,12 @@ export declare const contract: {
9347
9425
  type: "checkbox";
9348
9426
  name: string;
9349
9427
  description?: string | undefined;
9428
+ } | {
9429
+ label: string;
9430
+ required: boolean;
9431
+ type: "file";
9432
+ name: string;
9433
+ description?: string | undefined;
9350
9434
  }, {
9351
9435
  required: boolean;
9352
9436
  type: "email" | "text" | "url" | "phone" | "textarea";
@@ -9431,6 +9515,12 @@ export declare const contract: {
9431
9515
  name: string;
9432
9516
  description?: string | undefined;
9433
9517
  label?: string | undefined;
9518
+ } | {
9519
+ required: boolean;
9520
+ type: "file";
9521
+ name: string;
9522
+ description?: string | undefined;
9523
+ label?: string | undefined;
9434
9524
  }>>>>;
9435
9525
  parameterValues: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBase64>>;
9436
9526
  scopes: import("zod").ZodArray<import("zod").ZodObject<{
@@ -9599,6 +9689,12 @@ export declare const contract: {
9599
9689
  description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
9600
9690
  label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
9601
9691
  name: import("zod/mini").ZodMiniString<string>;
9692
+ }, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
9693
+ required: import("zod/mini").ZodMiniPrefault<import("zod/mini").ZodMiniBoolean<boolean>>;
9694
+ type: import("zod/mini").ZodMiniLiteral<"file">;
9695
+ description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
9696
+ label: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
9697
+ name: import("zod/mini").ZodMiniString<string>;
9602
9698
  }, import("zod/v4/core").$strip>], "type">, import("zod/mini").ZodMiniTransform<{
9603
9699
  label: string;
9604
9700
  required: boolean;
@@ -9683,6 +9779,12 @@ export declare const contract: {
9683
9779
  type: "checkbox";
9684
9780
  name: string;
9685
9781
  description?: string | undefined;
9782
+ } | {
9783
+ label: string;
9784
+ required: boolean;
9785
+ type: "file";
9786
+ name: string;
9787
+ description?: string | undefined;
9686
9788
  }, {
9687
9789
  required: boolean;
9688
9790
  type: "email" | "text" | "url" | "phone" | "textarea";
@@ -9767,6 +9869,12 @@ export declare const contract: {
9767
9869
  name: string;
9768
9870
  description?: string | undefined;
9769
9871
  label?: string | undefined;
9872
+ } | {
9873
+ required: boolean;
9874
+ type: "file";
9875
+ name: string;
9876
+ description?: string | undefined;
9877
+ label?: string | undefined;
9770
9878
  }>>>>;
9771
9879
  parameterValues: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBase64>>;
9772
9880
  scopes: import("zod").ZodArray<import("zod").ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.153.1",
3
+ "version": "0.154.0",
4
4
  "description": "Public oRPC contract for the Automate.ax API.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@ai-sdk/gateway": "4.0.46",
34
- "@automate.ax/catalog": "0.153.1",
35
- "@automate.ax/codec": "0.153.1",
36
- "@automate.ax/integration-contracts": "0.153.1",
34
+ "@automate.ax/catalog": "0.154.0",
35
+ "@automate.ax/codec": "0.154.0",
36
+ "@automate.ax/integration-contracts": "0.154.0",
37
37
  "@orpc/contract": "1.15.0",
38
38
  "fast-json-stable-stringify": "^2.1.0",
39
39
  "zod": "^4.3.6"
package/src/deployment.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { DASHBOARD_RUN_FIELDS_SCHEMA } from "@automate.ax/catalog"
2
+ import { FORM_FIELDS_SCHEMA } from "@automate.ax/catalog"
3
3
  import * as z from "zod"
4
4
  import { AUTOMATION_RUNTIME_PROTOCOL_VERSION } from "./runtime-protocol"
5
5
  import { cursorPageOutputSchema, cursorPaginationInputSchema } from "./schemas"
@@ -86,7 +86,7 @@ export const deploymentOutputSchema = z.object({
86
86
  id: z.string(),
87
87
  identityKey: z.string(),
88
88
  parameterIssues: z.string().array().optional(),
89
- parameters: z.optional(DASHBOARD_RUN_FIELDS_SCHEMA),
89
+ parameters: z.optional(FORM_FIELDS_SCHEMA),
90
90
  parameterValues: z.record(z.string(), z.base64()).optional(),
91
91
  scopes: z
92
92
  .object({