terse-types 0.0.19 → 0.0.21

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/types.js CHANGED
@@ -337,6 +337,11 @@ export const formFieldDefinitionSchema = z.object({
337
337
  required: z.boolean().optional(),
338
338
  hint: z.string().optional()
339
339
  });
340
+ export const formIntegrationSetupSchema = z.object({
341
+ title: z.string(),
342
+ url: z.string(),
343
+ instructions: z.array(z.string())
344
+ });
340
345
  export const configurationFieldTypeSchema = z.enum(["radio", "select"]);
341
346
  export const configurationOptionSchema = z.object({
342
347
  label: z.string(),
@@ -352,7 +357,8 @@ export const configurationFieldDefinitionSchema = z.object({
352
357
  });
353
358
  export const integrationFieldsResponseSchema = z.object({
354
359
  installationType: z.enum(["form", "oauth"]),
355
- fields: z.union([z.array(formFieldDefinitionSchema), z.array(configurationFieldDefinitionSchema)])
360
+ fields: z.union([z.array(formFieldDefinitionSchema), z.array(configurationFieldDefinitionSchema)]),
361
+ setup: formIntegrationSetupSchema.optional()
356
362
  });
357
363
  export const statsIntervalSchema = z.enum(["1h", "24h", "7d", "1mo", "3mo", "1y"]);
358
364
  export const dailyEventCountSchema = z.object({
@@ -404,7 +410,8 @@ export const sdkAgentRunRequestBodySchema = z.object({
404
410
  message: z.string(),
405
411
  skills: z.array(skillConfigDataSchema).optional(),
406
412
  options: sdkAgentRunOptionsPayloadSchema.optional(),
407
- toolApprovals: z.array(z.string()).optional()
413
+ toolApprovals: z.array(z.string()).optional(),
414
+ outputSchema: z.record(z.string(), z.unknown()).optional()
408
415
  });
409
416
  export const sdkAgentRunResponseContractSchema = z.object({
410
417
  responseMode: z.literal("streaming"),
@@ -616,6 +623,25 @@ export const sdkSampleEventsRequestSchema = z.object({
616
623
  }))
617
624
  .min(1)
618
625
  });
626
+ export const hydratorTypeEnum = z.enum(["run_history_raw_event", "slack_message_event", "github_event", "linear_event", "gmail_event", "workos_event", "webmonitor_event"]);
627
+ export const identifiableSchema = z.object({
628
+ entityType: hydratorTypeEnum,
629
+ entityId: z.string()
630
+ });
631
+ export const sdkSampleEventRefSchema = z.object({
632
+ entity: identifiableSchema,
633
+ serializedEvent: serializedEventSchema
634
+ });
635
+ export const sdkSampleEventsResponseSchema = z.object({
636
+ events: z.array(sdkSampleEventRefSchema)
637
+ });
638
+ export const sdkHydrateSampleEventRequestSchema = z.object({
639
+ entityType: z.string(),
640
+ entityId: z.string()
641
+ });
642
+ export const sdkHydrateSampleEventResponseSchema = z.object({
643
+ event: serializedEventSchema
644
+ });
619
645
  export const triggerWithEventRequestSchema = z.union([
620
646
  z.object({
621
647
  event: TriggerSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "type": "module",
5
5
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
6
  "main": "./dist/index.js",