terse-types 0.21.5 → 0.21.7

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.
@@ -150,6 +150,7 @@ export declare const ApiRoutes: {
150
150
  ENABLE_SELF_HOSTED: string;
151
151
  ROTATE_SIGNING_SECRET: string;
152
152
  ROTATE_API_KEY: string;
153
+ ALERTS: string;
153
154
  };
154
155
  PROJECT_SECRETS: {
155
156
  LIST: string;
@@ -207,6 +208,7 @@ export declare const ApiRoutes: {
207
208
  };
208
209
  WEBHOOKS: {
209
210
  GMAIL: string;
211
+ ACTOR_EVENTS: string;
210
212
  WORKOS: string;
211
213
  LINEAR_BY_USER_ID: string;
212
214
  WEBMONITOR_BY_INPUT_ID: string;
@@ -149,7 +149,8 @@
149
149
  "DEPLOYS": "/projects/:id/deploys",
150
150
  "ENABLE_SELF_HOSTED": "/projects/:id/enable-self-hosted",
151
151
  "ROTATE_SIGNING_SECRET": "/projects/:id/rotate-signing-secret",
152
- "ROTATE_API_KEY": "/projects/:id/rotate-api-key"
152
+ "ROTATE_API_KEY": "/projects/:id/rotate-api-key",
153
+ "ALERTS": "/projects/:id/alerts"
153
154
  },
154
155
  "PROJECT_SECRETS": {
155
156
  "LIST": "/projects/:id/secrets",
@@ -207,6 +208,7 @@
207
208
  },
208
209
  "WEBHOOKS": {
209
210
  "GMAIL": "/webhooks/gmail",
211
+ "ACTOR_EVENTS": "/webhooks/actor-events",
210
212
  "WORKOS": "/webhooks/workos",
211
213
  "LINEAR_BY_USER_ID": "/webhooks/linear/:userId",
212
214
  "WEBMONITOR_BY_INPUT_ID": "/webhooks/webmonitor/:inputId",
package/dist/types.d.ts CHANGED
@@ -14101,6 +14101,11 @@ export declare const projectsListResponseSchema: z.ZodObject<{
14101
14101
  }, z.core.$strip>>;
14102
14102
  }, z.core.$strip>;
14103
14103
  export type ProjectsListResponse = z.infer<typeof projectsListResponseSchema>;
14104
+ /** The emails a project sends its organization's members about its actors. */
14105
+ export declare const projectAlertsSchema: z.ZodObject<{
14106
+ actorLimits: z.ZodBoolean;
14107
+ }, z.core.$strip>;
14108
+ export type ProjectAlerts = z.infer<typeof projectAlertsSchema>;
14104
14109
  export declare const projectDetailResponseSchema: z.ZodObject<{
14105
14110
  id: z.ZodString;
14106
14111
  name: z.ZodString;
@@ -14110,6 +14115,9 @@ export declare const projectDetailResponseSchema: z.ZodObject<{
14110
14115
  hasSigningSecret: z.ZodBoolean;
14111
14116
  hasProjectApiKey: z.ZodBoolean;
14112
14117
  actorTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
14118
+ alerts: z.ZodOptional<z.ZodObject<{
14119
+ actorLimits: z.ZodBoolean;
14120
+ }, z.core.$strip>>;
14113
14121
  jobs: z.ZodArray<z.ZodObject<{
14114
14122
  id: z.ZodString;
14115
14123
  name: z.ZodString;
package/dist/types.js CHANGED
@@ -574,6 +574,11 @@ export const projectListItemSchema = z.object({
574
574
  export const projectsListResponseSchema = z.object({
575
575
  projects: z.array(projectListItemSchema)
576
576
  });
577
+ /** The emails a project sends its organization's members about its actors. */
578
+ export const projectAlertsSchema = z.object({
579
+ /** An actor ran out of memory or disk. */
580
+ actorLimits: z.boolean()
581
+ });
577
582
  export const projectDetailResponseSchema = z.object({
578
583
  id: z.string(),
579
584
  name: z.string(),
@@ -583,6 +588,8 @@ export const projectDetailResponseSchema = z.object({
583
588
  hasSigningSecret: z.boolean(),
584
589
  hasProjectApiKey: z.boolean(),
585
590
  actorTypes: z.array(z.string()).optional(),
591
+ /** Absent where this deployment does not receive actor events, so alerts cannot be sent. */
592
+ alerts: projectAlertsSchema.optional(),
586
593
  jobs: z.array(z.object({
587
594
  id: z.string(),
588
595
  name: z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.21.5",
3
+ "version": "0.21.7",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",