terse-types 0.0.23 → 0.0.25

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
@@ -494,6 +494,17 @@ export const projectDetailResponseSchema = z.object({
494
494
  isActive: z.boolean()
495
495
  }))
496
496
  });
497
+ /**
498
+ * Rotation responses for self-hosted project credentials. Both endpoints
499
+ * regenerate the underlying secret immediately (replacing the old value) and
500
+ * return the freshly generated material exactly once.
501
+ */
502
+ export const projectRotateSigningSecretResponseSchema = z.object({
503
+ signingSecret: z.string()
504
+ });
505
+ export const projectRotateApiKeyResponseSchema = z.object({
506
+ projectApiKey: z.string()
507
+ });
497
508
  export const terseProjectConfigSchema = z.object({
498
509
  projectId: z.string().min(1),
499
510
  name: z.string().min(1),
@@ -636,7 +647,7 @@ export const sdkSampleEventsResponseSchema = z.object({
636
647
  events: z.array(sdkSampleEventRefSchema)
637
648
  });
638
649
  export const sdkHydrateSampleEventRequestSchema = z.object({
639
- entityType: z.string(),
650
+ entityType: hydratorTypeEnum,
640
651
  entityId: z.string()
641
652
  });
642
653
  export const sdkHydrateSampleEventResponseSchema = z.object({
@@ -700,12 +711,19 @@ export const projectDeployUserSchema = z.object({
700
711
  email: z.string().nullable(),
701
712
  avatarUrl: z.string().nullable()
702
713
  });
714
+ export const projectDeployJobsDeltaSchema = z.object({
715
+ added: z.number().int().nonnegative(),
716
+ removed: z.number().int().nonnegative()
717
+ });
703
718
  export const projectDeploySchema = z.object({
704
719
  id: z.string(),
705
720
  status: projectDeployStatusSchema,
706
721
  createdAt: z.string(),
707
722
  isActive: z.boolean(),
708
- deployedBy: projectDeployUserSchema.nullable()
723
+ deployedBy: projectDeployUserSchema.nullable(),
724
+ durationMs: z.number().int().nonnegative().nullable(),
725
+ failureReason: z.string().nullable(),
726
+ jobsDelta: projectDeployJobsDeltaSchema.nullable()
709
727
  });
710
728
  export const projectDeploysResponseSchema = z.object({
711
729
  projectId: z.string(),
@@ -717,3 +735,22 @@ export const projectSourceFilesResponseSchema = z.object({
717
735
  deployedAt: z.string().nullable(),
718
736
  files: z.array(fileSchema)
719
737
  });
738
+ export const sdkListenQuerySchema = z.object({
739
+ jobName: z.string().min(1),
740
+ projectId: z.string().min(1)
741
+ });
742
+ export const sdkListenStartedSchema = z.object({
743
+ type: z.literal("listen_started"),
744
+ listenerId: z.string(),
745
+ organizationId: z.string(),
746
+ projectId: z.string(),
747
+ jobName: z.string()
748
+ });
749
+ export const sdkListenForwardedEventSchema = z.object({
750
+ type: z.literal("forwarded_event"),
751
+ agentId: z.string(),
752
+ agentName: z.string(),
753
+ projectId: z.string().nullable(),
754
+ event: serializedEventSchema
755
+ });
756
+ export const sdkListenStreamEventSchema = z.discriminatedUnion("type", [sdkListenStartedSchema, sdkListenForwardedEventSchema]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "type": "module",
5
5
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
6
  "main": "./dist/index.js",