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/ApiRouteBuilder.d.ts +3 -0
- package/dist/ApiRoutes.json +4 -1
- package/dist/Billing.d.ts +403 -0
- package/dist/Billing.js +227 -0
- package/dist/BillingRoutes.json +13 -0
- package/dist/FrontendRoutes.json +2 -1
- package/dist/FrontendRoutesBuilder.d.ts +1 -0
- package/dist/ModelEvents.d.ts +102 -0
- package/dist/ModelEvents.js +19 -2
- package/dist/ModelRegistry.d.ts +16 -0
- package/dist/ModelRegistry.js +18 -0
- package/dist/OrganizationMetadata.d.ts +10 -0
- package/dist/OrganizationMetadata.js +6 -0
- package/dist/types.d.ts +1500 -1
- package/dist/types.js +39 -2
- package/package.json +1 -1
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:
|
|
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]);
|