terse-types 0.0.27 → 0.0.28

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.d.ts CHANGED
@@ -1859,12 +1859,12 @@ export declare const agentUpdateSchema: z.ZodObject<{
1859
1859
  export type AgentUpdate = z.infer<typeof agentUpdateSchema>;
1860
1860
  export declare const agentCreateSchema: z.ZodObject<{
1861
1861
  isActive: z.ZodBoolean;
1862
+ name: z.ZodString;
1862
1863
  metadata: z.ZodNullable<z.ZodObject<{
1863
1864
  remoteServerUrl: z.ZodNullable<z.ZodString>;
1864
1865
  projectId: z.ZodNullable<z.ZodString>;
1865
1866
  projectName: z.ZodNullable<z.ZodString>;
1866
1867
  }, z.core.$strip>>;
1867
- name: z.ZodString;
1868
1868
  prompt: z.ZodObject<{
1869
1869
  text: z.ZodString;
1870
1870
  }, z.core.$strip>;
@@ -2224,12 +2224,12 @@ export declare const agentCreateSchema: z.ZodObject<{
2224
2224
  export type AgentCreate = z.infer<typeof agentCreateSchema>;
2225
2225
  export declare const agentDraftSchema: z.ZodObject<{
2226
2226
  isActive: z.ZodBoolean;
2227
+ name: z.ZodString;
2227
2228
  metadata: z.ZodNullable<z.ZodObject<{
2228
2229
  remoteServerUrl: z.ZodNullable<z.ZodString>;
2229
2230
  projectId: z.ZodNullable<z.ZodString>;
2230
2231
  projectName: z.ZodNullable<z.ZodString>;
2231
2232
  }, z.core.$strip>>;
2232
- name: z.ZodString;
2233
2233
  prompt: z.ZodObject<{
2234
2234
  text: z.ZodString;
2235
2235
  }, z.core.$strip>;
@@ -5517,6 +5517,18 @@ export declare const sdkCreateProjectResponseBodySchema: z.ZodObject<{
5517
5517
  name: z.ZodString;
5518
5518
  }, z.core.$strip>;
5519
5519
  export type SdkCreateProjectResponseBody = z.infer<typeof sdkCreateProjectResponseBodySchema>;
5520
+ export declare const projectListItemSchema: z.ZodObject<{
5521
+ id: z.ZodString;
5522
+ name: z.ZodString;
5523
+ }, z.core.$strip>;
5524
+ export type ProjectListItem = z.infer<typeof projectListItemSchema>;
5525
+ export declare const projectsListResponseSchema: z.ZodObject<{
5526
+ projects: z.ZodArray<z.ZodObject<{
5527
+ id: z.ZodString;
5528
+ name: z.ZodString;
5529
+ }, z.core.$strip>>;
5530
+ }, z.core.$strip>;
5531
+ export type ProjectsListResponse = z.infer<typeof projectsListResponseSchema>;
5520
5532
  export declare const projectDetailResponseSchema: z.ZodObject<{
5521
5533
  id: z.ZodString;
5522
5534
  name: z.ZodString;
@@ -6587,7 +6599,7 @@ export declare const toggleImprovementsEnabledRequestSchema: z.ZodObject<{
6587
6599
  }, z.core.$strip>;
6588
6600
  export type ToggleImprovementsEnabledRequest = z.infer<typeof toggleImprovementsEnabledRequestSchema>;
6589
6601
  export declare const workosWebhookSecretUpdateRequestSchema: z.ZodObject<{
6590
- webhookSecret: z.ZodString;
6602
+ webhookSecret: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
6591
6603
  state: z.ZodOptional<z.ZodString>;
6592
6604
  }, z.core.$strip>;
6593
6605
  export type WorkosWebhookSecretUpdateRequest = z.infer<typeof workosWebhookSecretUpdateRequestSchema>;
package/dist/types.js CHANGED
@@ -480,6 +480,13 @@ export const sdkCreateProjectResponseBodySchema = z.object({
480
480
  projectId: z.string(),
481
481
  name: z.string()
482
482
  });
483
+ export const projectListItemSchema = z.object({
484
+ id: z.string(),
485
+ name: z.string()
486
+ });
487
+ export const projectsListResponseSchema = z.object({
488
+ projects: z.array(projectListItemSchema)
489
+ });
483
490
  export const projectDetailResponseSchema = z.object({
484
491
  id: z.string(),
485
492
  name: z.string(),
@@ -621,7 +628,10 @@ export const toggleImprovementsEnabledRequestSchema = z.object({
621
628
  enabled: z.boolean()
622
629
  });
623
630
  export const workosWebhookSecretUpdateRequestSchema = z.object({
624
- webhookSecret: z.string(),
631
+ webhookSecret: z
632
+ .string()
633
+ .transform(s => s.trim())
634
+ .pipe(z.string().min(1, "Webhook signing secret is required")),
625
635
  state: z.string().optional()
626
636
  });
627
637
  export const sdkSampleEventsRequestSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "type": "module",
5
5
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
6
  "main": "./dist/index.js",