terse-types 0.15.0 → 0.16.0

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.
@@ -15,6 +15,7 @@ export declare const ApiRoutes: {
15
15
  LIST: string;
16
16
  SWITCH: string;
17
17
  UPDATE: string;
18
+ SUGGESTION: string;
18
19
  LOGO_UPLOAD_URL: string;
19
20
  LOGO: string;
20
21
  };
@@ -15,6 +15,7 @@
15
15
  "LIST": "/organizations",
16
16
  "SWITCH": "/organizations/switch",
17
17
  "UPDATE": "/organizations",
18
+ "SUGGESTION": "/organizations/suggestion",
18
19
  "LOGO_UPLOAD_URL": "/organizations/logo/upload-url",
19
20
  "LOGO": "/organizations/:organizationId/logo"
20
21
  },
package/dist/types.d.ts CHANGED
@@ -15479,6 +15479,7 @@ export declare const organizationCreateRequestSchema: z.ZodObject<{
15479
15479
  name: z.ZodString;
15480
15480
  firstName: z.ZodOptional<z.ZodString>;
15481
15481
  lastName: z.ZodOptional<z.ZodString>;
15482
+ logoUrl: z.ZodOptional<z.ZodString>;
15482
15483
  }, z.core.$strip>;
15483
15484
  export type OrganizationCreateRequest = z.infer<typeof organizationCreateRequestSchema>;
15484
15485
  export declare const organizationSwitchRequestSchema: z.ZodObject<{
@@ -15487,6 +15488,7 @@ export declare const organizationSwitchRequestSchema: z.ZodObject<{
15487
15488
  export type OrganizationSwitchRequest = z.infer<typeof organizationSwitchRequestSchema>;
15488
15489
  export declare const organizationUpdateRequestSchema: z.ZodObject<{
15489
15490
  name: z.ZodString;
15491
+ logoUrl: z.ZodOptional<z.ZodString>;
15490
15492
  }, z.core.$strip>;
15491
15493
  export type OrganizationUpdateRequest = z.infer<typeof organizationUpdateRequestSchema>;
15492
15494
  export declare const apiTokenCreateRequestSchema: z.ZodObject<{
package/dist/types.js CHANGED
@@ -761,13 +761,17 @@ export const webhookWorkOSTriggerParamsSchema = z.object({
761
761
  export const organizationCreateRequestSchema = z.object({
762
762
  name: z.string(),
763
763
  firstName: z.string().optional(),
764
- lastName: z.string().optional()
764
+ lastName: z.string().optional(),
765
+ // A context.dev logo URL from GET /organizations/suggestion, copied into the new org's logo storage.
766
+ logoUrl: z.string().url().optional()
765
767
  });
766
768
  export const organizationSwitchRequestSchema = z.object({
767
769
  organizationId: z.string()
768
770
  });
769
771
  export const organizationUpdateRequestSchema = z.object({
770
- name: z.string()
772
+ name: z.string(),
773
+ // A refreshed context.dev logo URL from GET /organizations/suggestion?refresh=true, copied into the org's logo storage.
774
+ logoUrl: z.string().url().optional()
771
775
  });
772
776
  export const apiTokenCreateRequestSchema = z.object({
773
777
  name: z.string().max(100)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",