@automate.ax/integration-contracts 0.130.0 → 0.130.2

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.
@@ -104,8 +104,8 @@ declare const APIFY_BUILD_EVENT_SCHEMA: z.ZodObject<{
104
104
  startedAt: z.ZodISODateTime;
105
105
  stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
106
106
  computeUnits: z.ZodNumber;
107
- durationMillis: z.ZodNumber;
108
- runTimeSecs: z.ZodNumber;
107
+ durationMillis: z.ZodOptional<z.ZodNumber>;
108
+ runTimeSecs: z.ZodOptional<z.ZodNumber>;
109
109
  }, z.core.$strip>>>;
110
110
  status: z.ZodEnum<{
111
111
  READY: "READY";
@@ -212,8 +212,8 @@ export declare const APIFY_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
212
212
  startedAt: z.ZodISODateTime;
213
213
  stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
214
214
  computeUnits: z.ZodNumber;
215
- durationMillis: z.ZodNumber;
216
- runTimeSecs: z.ZodNumber;
215
+ durationMillis: z.ZodOptional<z.ZodNumber>;
216
+ runTimeSecs: z.ZodOptional<z.ZodNumber>;
217
217
  }, z.core.$strip>>>;
218
218
  status: z.ZodEnum<{
219
219
  READY: "READY";
@@ -308,8 +308,8 @@ export declare const apifyTriggerContracts: {
308
308
  startedAt: z.ZodISODateTime;
309
309
  stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
310
310
  computeUnits: z.ZodNumber;
311
- durationMillis: z.ZodNumber;
312
- runTimeSecs: z.ZodNumber;
311
+ durationMillis: z.ZodOptional<z.ZodNumber>;
312
+ runTimeSecs: z.ZodOptional<z.ZodNumber>;
313
313
  }, z.core.$strip>>>;
314
314
  status: z.ZodEnum<{
315
315
  READY: "READY";
@@ -361,8 +361,8 @@ export declare const apifyTriggerContracts: {
361
361
  startedAt: z.ZodISODateTime;
362
362
  stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
363
363
  computeUnits: z.ZodNumber;
364
- durationMillis: z.ZodNumber;
365
- runTimeSecs: z.ZodNumber;
364
+ durationMillis: z.ZodOptional<z.ZodNumber>;
365
+ runTimeSecs: z.ZodOptional<z.ZodNumber>;
366
366
  }, z.core.$strip>>>;
367
367
  status: z.ZodEnum<{
368
368
  READY: "READY";
@@ -414,8 +414,8 @@ export declare const apifyTriggerContracts: {
414
414
  startedAt: z.ZodISODateTime;
415
415
  stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
416
416
  computeUnits: z.ZodNumber;
417
- durationMillis: z.ZodNumber;
418
- runTimeSecs: z.ZodNumber;
417
+ durationMillis: z.ZodOptional<z.ZodNumber>;
418
+ runTimeSecs: z.ZodOptional<z.ZodNumber>;
419
419
  }, z.core.$strip>>>;
420
420
  status: z.ZodEnum<{
421
421
  READY: "READY";
@@ -467,8 +467,8 @@ export declare const apifyTriggerContracts: {
467
467
  startedAt: z.ZodISODateTime;
468
468
  stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
469
469
  computeUnits: z.ZodNumber;
470
- durationMillis: z.ZodNumber;
471
- runTimeSecs: z.ZodNumber;
470
+ durationMillis: z.ZodOptional<z.ZodNumber>;
471
+ runTimeSecs: z.ZodOptional<z.ZodNumber>;
472
472
  }, z.core.$strip>>>;
473
473
  status: z.ZodEnum<{
474
474
  READY: "READY";
@@ -520,8 +520,8 @@ export declare const apifyTriggerContracts: {
520
520
  startedAt: z.ZodISODateTime;
521
521
  stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
522
522
  computeUnits: z.ZodNumber;
523
- durationMillis: z.ZodNumber;
524
- runTimeSecs: z.ZodNumber;
523
+ durationMillis: z.ZodOptional<z.ZodNumber>;
524
+ runTimeSecs: z.ZodOptional<z.ZodNumber>;
525
525
  }, z.core.$strip>>>;
526
526
  status: z.ZodEnum<{
527
527
  READY: "READY";
@@ -573,8 +573,8 @@ export declare const apifyTriggerContracts: {
573
573
  startedAt: z.ZodISODateTime;
574
574
  stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
575
575
  computeUnits: z.ZodNumber;
576
- durationMillis: z.ZodNumber;
577
- runTimeSecs: z.ZodNumber;
576
+ durationMillis: z.ZodOptional<z.ZodNumber>;
577
+ runTimeSecs: z.ZodOptional<z.ZodNumber>;
578
578
  }, z.core.$strip>>>;
579
579
  status: z.ZodEnum<{
580
580
  READY: "READY";
@@ -70,8 +70,8 @@ export declare const APIFY_BUILD_SCHEMA: z.ZodObject<{
70
70
  startedAt: z.ZodISODateTime;
71
71
  stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
72
72
  computeUnits: z.ZodNumber;
73
- durationMillis: z.ZodNumber;
74
- runTimeSecs: z.ZodNumber;
73
+ durationMillis: z.ZodOptional<z.ZodNumber>;
74
+ runTimeSecs: z.ZodOptional<z.ZodNumber>;
75
75
  }, z.core.$strip>>>;
76
76
  status: z.ZodEnum<{
77
77
  READY: "READY";
@@ -37,8 +37,8 @@ const APIFY_BUILD_OPTIONS_SCHEMA = z.looseObject({
37
37
  });
38
38
  const APIFY_BUILD_STATS_SCHEMA = z.looseObject({
39
39
  computeUnits: z.number().nonnegative(),
40
- durationMillis: z.number().int().nonnegative(),
41
- runTimeSecs: z.number().nonnegative(),
40
+ durationMillis: z.number().int().nonnegative().optional(),
41
+ runTimeSecs: z.number().nonnegative().optional(),
42
42
  });
43
43
  const APIFY_RUN_WIRE_SCHEMA = z.looseObject({
44
44
  actId: z.string(),
@@ -131,8 +131,8 @@ export const APIFY_BUILD_SCHEMA = z.object({
131
131
  stats: z
132
132
  .object({
133
133
  computeUnits: z.number().nonnegative(),
134
- durationMillis: z.number().int().nonnegative(),
135
- runTimeSecs: z.number().nonnegative(),
134
+ durationMillis: z.number().int().nonnegative().optional(),
135
+ runTimeSecs: z.number().nonnegative().optional(),
136
136
  })
137
137
  .nullable()
138
138
  .optional(),
@@ -190,28 +190,28 @@ export declare const AXIOM_METRICS_INFO_SCHEMA: z.ZodRecord<z.ZodString, z.ZodOb
190
190
  export declare const AXIOM_METRIC_DISCOVERY_SCHEMA: z.ZodObject<{
191
191
  datasetName: z.ZodString;
192
192
  edgeUrl: z.ZodPrefault<z.ZodURL>;
193
- endTime: z.ZodPrefault<z.ZodString>;
194
- startTime: z.ZodPrefault<z.ZodString>;
193
+ endTime: z.ZodOptional<z.ZodISODateTime>;
194
+ startTime: z.ZodOptional<z.ZodISODateTime>;
195
195
  }, z.core.$strip>;
196
196
  export declare const AXIOM_METRIC_TAG_DISCOVERY_SCHEMA: z.ZodObject<{
197
197
  datasetName: z.ZodString;
198
198
  edgeUrl: z.ZodPrefault<z.ZodURL>;
199
- endTime: z.ZodPrefault<z.ZodString>;
200
- startTime: z.ZodPrefault<z.ZodString>;
199
+ endTime: z.ZodOptional<z.ZodISODateTime>;
200
+ startTime: z.ZodOptional<z.ZodISODateTime>;
201
201
  metric: z.ZodString;
202
202
  }, z.core.$strip>;
203
203
  export declare const AXIOM_DATASET_TAG_VALUE_DISCOVERY_SCHEMA: z.ZodObject<{
204
204
  datasetName: z.ZodString;
205
205
  edgeUrl: z.ZodPrefault<z.ZodURL>;
206
- endTime: z.ZodPrefault<z.ZodString>;
207
- startTime: z.ZodPrefault<z.ZodString>;
206
+ endTime: z.ZodOptional<z.ZodISODateTime>;
207
+ startTime: z.ZodOptional<z.ZodISODateTime>;
208
208
  tag: z.ZodString;
209
209
  }, z.core.$strip>;
210
210
  export declare const AXIOM_METRIC_TAG_VALUE_DISCOVERY_SCHEMA: z.ZodObject<{
211
211
  datasetName: z.ZodString;
212
212
  edgeUrl: z.ZodPrefault<z.ZodURL>;
213
- endTime: z.ZodPrefault<z.ZodString>;
214
- startTime: z.ZodPrefault<z.ZodString>;
213
+ endTime: z.ZodOptional<z.ZodISODateTime>;
214
+ startTime: z.ZodOptional<z.ZodISODateTime>;
215
215
  metric: z.ZodString;
216
216
  tag: z.ZodString;
217
217
  }, z.core.$strip>;
@@ -163,8 +163,8 @@ export const AXIOM_METRICS_INFO_SCHEMA = z.record(z.string(), AXIOM_METRIC_INFO_
163
163
  export const AXIOM_METRIC_DISCOVERY_SCHEMA = z.object({
164
164
  datasetName: AXIOM_ID_SCHEMA,
165
165
  edgeUrl: AXIOM_EDGE_URL_SCHEMA,
166
- endTime: AXIOM_TIME_SCHEMA.prefault("now"),
167
- startTime: AXIOM_TIME_SCHEMA.prefault("now-30m"),
166
+ endTime: z.iso.datetime({ offset: true }).optional(),
167
+ startTime: z.iso.datetime({ offset: true }).optional(),
168
168
  });
169
169
  export const AXIOM_METRIC_TAG_DISCOVERY_SCHEMA = AXIOM_METRIC_DISCOVERY_SCHEMA.extend({
170
170
  metric: AXIOM_ID_SCHEMA,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/integration-contracts",
3
- "version": "0.130.0",
3
+ "version": "0.130.2",
4
4
  "description": "Shared integration payload contracts and provider primitives for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -59,7 +59,7 @@
59
59
  }
60
60
  },
61
61
  "dependencies": {
62
- "@automate.ax/codec": "0.130.0",
62
+ "@automate.ax/codec": "0.130.2",
63
63
  "@cfworker/json-schema": "^4.1.1",
64
64
  "@googleapis/calendar": "^15.0.0",
65
65
  "@googleapis/forms": "^6.0.1",
@@ -39,8 +39,8 @@ const APIFY_BUILD_OPTIONS_SCHEMA = z.looseObject({
39
39
  })
40
40
  const APIFY_BUILD_STATS_SCHEMA = z.looseObject({
41
41
  computeUnits: z.number().nonnegative(),
42
- durationMillis: z.number().int().nonnegative(),
43
- runTimeSecs: z.number().nonnegative(),
42
+ durationMillis: z.number().int().nonnegative().optional(),
43
+ runTimeSecs: z.number().nonnegative().optional(),
44
44
  })
45
45
 
46
46
  const APIFY_RUN_WIRE_SCHEMA = z.looseObject({
@@ -137,8 +137,8 @@ export const APIFY_BUILD_SCHEMA = z.object({
137
137
  stats: z
138
138
  .object({
139
139
  computeUnits: z.number().nonnegative(),
140
- durationMillis: z.number().int().nonnegative(),
141
- runTimeSecs: z.number().nonnegative(),
140
+ durationMillis: z.number().int().nonnegative().optional(),
141
+ runTimeSecs: z.number().nonnegative().optional(),
142
142
  })
143
143
  .nullable()
144
144
  .optional(),
@@ -178,8 +178,8 @@ export const AXIOM_METRICS_INFO_SCHEMA = z.record(
178
178
  export const AXIOM_METRIC_DISCOVERY_SCHEMA = z.object({
179
179
  datasetName: AXIOM_ID_SCHEMA,
180
180
  edgeUrl: AXIOM_EDGE_URL_SCHEMA,
181
- endTime: AXIOM_TIME_SCHEMA.prefault("now"),
182
- startTime: AXIOM_TIME_SCHEMA.prefault("now-30m"),
181
+ endTime: z.iso.datetime({ offset: true }).optional(),
182
+ startTime: z.iso.datetime({ offset: true }).optional(),
183
183
  })
184
184
  export const AXIOM_METRIC_TAG_DISCOVERY_SCHEMA =
185
185
  AXIOM_METRIC_DISCOVERY_SCHEMA.extend({