@automate.ax/api-contract 0.81.0 → 0.83.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.
package/dist/index.js CHANGED
@@ -12,6 +12,7 @@ import { runtimeContract } from "./runtime.js";
12
12
  export { automationExecutionStatusSchema, automationOutputSchema, } from "./automation.js";
13
13
  export { EXECUTION_DATASET_VERSION, executionDatasetManifestSchema, executionDatasetResourceSchema, executionDatasetScopeSchema, executionDataContract, } from "./execution-data.js";
14
14
  export { AUTOMATION_SDK_VERSION, deploymentOutputSchema, deploymentStatusSchema, } from "./deployment.js";
15
+ export { AUTOMATION_RUNTIME_PROTOCOL_VERSION } from "./runtime-protocol.js";
15
16
  export { AUTOMATION_ERROR_CAUSE_DEPTH, automationErrorSchema, } from "./errors.js";
16
17
  export { integrationAccountOutputSchema, integrationAccountRevocationImpactOutputSchema, integrationAccountRevocationOutputSchema, integrationServiceOutputSchema, } from "./account.js";
17
18
  export { AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT, AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX, AUTOMATION_LOG_MAX_ENTRIES, AUTOMATION_LOG_MAX_MESSAGE_LENGTH, AUTOMATION_OBSERVABILITY_MAX_ENCODED_BYTES, AUTOMATION_OBSERVABILITY_MAX_FIELDS, AUTOMATION_TRACE_MAX_NAME_LENGTH, AUTOMATION_TRACE_MAX_SPANS, DEFAULT_GATEWAY_MODEL_ID, automationInvocationInputSchema, automationInvocationOutputSchema, automationInvocationScheduleSchema, generationInputSchema, generationResultSchema, hashSignalCoordinatorConfiguration, runtimeContract, } from "./runtime.js";
package/dist/org.d.ts CHANGED
@@ -36,6 +36,7 @@ export declare const organizationSummaryOutputSchema: z.ZodObject<{
36
36
  periodEnd: z.ZodNullable<z.ZodDate>;
37
37
  cancelAtPeriodEnd: z.ZodBoolean;
38
38
  }, z.core.$strip>>;
39
+ executionRetentionDays: z.ZodNumber;
39
40
  plan: z.ZodEnum<{
40
41
  free: "free";
41
42
  pro: "pro";
@@ -44,6 +45,7 @@ export declare const organizationSummaryOutputSchema: z.ZodObject<{
44
45
  limits: z.ZodObject<{
45
46
  aiSpendUsd: z.ZodNumber;
46
47
  emailSends: z.ZodNumber;
48
+ executionRetentionDays: z.ZodNumber;
47
49
  projects: z.ZodNumber;
48
50
  seats: z.ZodNumber;
49
51
  }, z.core.$strip>;
@@ -103,6 +105,7 @@ export declare const organizationDetailsOutputSchema: z.ZodObject<{
103
105
  periodEnd: z.ZodNullable<z.ZodDate>;
104
106
  cancelAtPeriodEnd: z.ZodBoolean;
105
107
  }, z.core.$strip>>;
108
+ executionRetentionDays: z.ZodNumber;
106
109
  plan: z.ZodEnum<{
107
110
  free: "free";
108
111
  pro: "pro";
@@ -111,6 +114,7 @@ export declare const organizationDetailsOutputSchema: z.ZodObject<{
111
114
  limits: z.ZodObject<{
112
115
  aiSpendUsd: z.ZodNumber;
113
116
  emailSends: z.ZodNumber;
117
+ executionRetentionDays: z.ZodNumber;
114
118
  projects: z.ZodNumber;
115
119
  seats: z.ZodNumber;
116
120
  }, z.core.$strip>;
@@ -214,6 +218,7 @@ export declare const orgContract: {
214
218
  periodEnd: z.ZodNullable<z.ZodDate>;
215
219
  cancelAtPeriodEnd: z.ZodBoolean;
216
220
  }, z.core.$strip>>;
221
+ executionRetentionDays: z.ZodNumber;
217
222
  plan: z.ZodEnum<{
218
223
  free: "free";
219
224
  pro: "pro";
@@ -222,6 +227,7 @@ export declare const orgContract: {
222
227
  limits: z.ZodObject<{
223
228
  aiSpendUsd: z.ZodNumber;
224
229
  emailSends: z.ZodNumber;
230
+ executionRetentionDays: z.ZodNumber;
225
231
  projects: z.ZodNumber;
226
232
  seats: z.ZodNumber;
227
233
  }, z.core.$strip>;
@@ -308,6 +314,7 @@ export declare const orgContract: {
308
314
  periodEnd: z.ZodNullable<z.ZodDate>;
309
315
  cancelAtPeriodEnd: z.ZodBoolean;
310
316
  }, z.core.$strip>>;
317
+ executionRetentionDays: z.ZodNumber;
311
318
  plan: z.ZodEnum<{
312
319
  free: "free";
313
320
  pro: "pro";
@@ -316,6 +323,7 @@ export declare const orgContract: {
316
323
  limits: z.ZodObject<{
317
324
  aiSpendUsd: z.ZodNumber;
318
325
  emailSends: z.ZodNumber;
326
+ executionRetentionDays: z.ZodNumber;
319
327
  projects: z.ZodNumber;
320
328
  seats: z.ZodNumber;
321
329
  }, z.core.$strip>;
@@ -334,7 +342,8 @@ export declare const orgContract: {
334
342
  memberIdOrEmail: z.ZodString;
335
343
  }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
336
344
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
345
+ executionRetentionDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
337
346
  organizationId: z.ZodString;
338
- name: z.ZodString;
347
+ name: z.ZodOptional<z.ZodString>;
339
348
  }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
340
349
  };
package/dist/org.js CHANGED
@@ -24,10 +24,12 @@ export const organizationSummaryOutputSchema = z.object({
24
24
  pendingInvitationCount: z.number(),
25
25
  projectCount: z.number(),
26
26
  activeSubscription: activeSubscriptionOutputSchema.nullable(),
27
+ executionRetentionDays: z.number().int().positive(),
27
28
  plan: z.enum(["free", "pro", "enterprise"]),
28
29
  limits: z.object({
29
30
  aiSpendUsd: z.number(),
30
31
  emailSends: z.number(),
32
+ executionRetentionDays: z.number().int().positive(),
31
33
  projects: z.number(),
32
34
  seats: z.number(),
33
35
  }),
@@ -193,9 +195,18 @@ export const orgContract = {
193
195
  successStatus: 204,
194
196
  tags: ["Organizations"],
195
197
  })
196
- .input(z.object({
198
+ .input(z
199
+ .object({
200
+ executionRetentionDays: z
201
+ .number()
202
+ .int()
203
+ .positive()
204
+ .nullable()
205
+ .optional(),
197
206
  organizationId: z.string(),
198
- name: reasonableNameSchema,
199
- }))
207
+ name: reasonableNameSchema.optional(),
208
+ })
209
+ .refine((input) => input.executionRetentionDays !== undefined ||
210
+ input.name !== undefined, "Provide an organization setting to update."))
200
211
  .output(z.void()),
201
212
  };
@@ -0,0 +1,2 @@
1
+ /** Runtime protocol required by newly built automation bundles. */
2
+ export declare const AUTOMATION_RUNTIME_PROTOCOL_VERSION = 1;
@@ -0,0 +1,2 @@
1
+ /** Runtime protocol required by newly built automation bundles. */
2
+ export const AUTOMATION_RUNTIME_PROTOCOL_VERSION = 1;