@bubblelab/shared-schemas 0.1.49 → 0.1.51

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.
@@ -34,10 +34,10 @@ export declare const MilkTeaRequestSchema: z.ZodObject<{
34
34
  }, "strip", z.ZodTypeAny, {
35
35
  bubbleName: string;
36
36
  model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
37
- userName: string;
38
37
  userRequest: string;
39
38
  bubbleSchema: Record<string, unknown>;
40
39
  availableCredentials: string[];
40
+ userName: string;
41
41
  conversationHistory: {
42
42
  role: "user" | "assistant" | "tool";
43
43
  content: string;
@@ -48,9 +48,9 @@ export declare const MilkTeaRequestSchema: z.ZodObject<{
48
48
  insertLocation?: string | undefined;
49
49
  }, {
50
50
  bubbleName: string;
51
- userName: string;
52
51
  userRequest: string;
53
52
  bubbleSchema: Record<string, unknown>;
53
+ userName: string;
54
54
  model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | undefined;
55
55
  currentCode?: string | undefined;
56
56
  availableCredentials?: string[] | undefined;
package/dist/pearl.d.ts CHANGED
@@ -44,8 +44,8 @@ export declare const PearlRequestSchema: z.ZodObject<{
44
44
  }>, "many">>>;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
47
- userName: string;
48
47
  userRequest: string;
48
+ userName: string;
49
49
  conversationHistory: {
50
50
  role: "user" | "assistant" | "tool";
51
51
  content: string;
@@ -61,8 +61,8 @@ export declare const PearlRequestSchema: z.ZodObject<{
61
61
  currentCode?: string | undefined;
62
62
  additionalContext?: string | undefined;
63
63
  }, {
64
- userName: string;
65
64
  userRequest: string;
65
+ userName: string;
66
66
  availableVariables: any[];
67
67
  model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | undefined;
68
68
  currentCode?: string | undefined;
@@ -106,6 +106,7 @@ export declare const billingOrganizationSchema: z.ZodObject<{
106
106
  id: z.ZodNumber;
107
107
  name: z.ZodString;
108
108
  slug: z.ZodString;
109
+ type: z.ZodOptional<z.ZodEnum<["personal", "organization"]>>;
109
110
  role: z.ZodEnum<["owner", "admin", "member"]>;
110
111
  memberCount: z.ZodNumber;
111
112
  }, "strip", z.ZodTypeAny, {
@@ -114,12 +115,14 @@ export declare const billingOrganizationSchema: z.ZodObject<{
114
115
  id: number;
115
116
  slug: string;
116
117
  memberCount: number;
118
+ type?: "personal" | "organization" | undefined;
117
119
  }, {
118
120
  role: "owner" | "admin" | "member";
119
121
  name: string;
120
122
  id: number;
121
123
  slug: string;
122
124
  memberCount: number;
125
+ type?: "personal" | "organization" | undefined;
123
126
  }>;
124
127
  export type BillingOrganization = z.infer<typeof billingOrganizationSchema>;
125
128
  export declare const hackathonOfferSchema: z.ZodObject<{
@@ -181,6 +184,7 @@ export declare const subscriptionStatusResponseSchema: z.ZodObject<{
181
184
  id: z.ZodNumber;
182
185
  name: z.ZodString;
183
186
  slug: z.ZodString;
187
+ type: z.ZodOptional<z.ZodEnum<["personal", "organization"]>>;
184
188
  role: z.ZodEnum<["owner", "admin", "member"]>;
185
189
  memberCount: z.ZodNumber;
186
190
  }, "strip", z.ZodTypeAny, {
@@ -189,12 +193,14 @@ export declare const subscriptionStatusResponseSchema: z.ZodObject<{
189
193
  id: number;
190
194
  slug: string;
191
195
  memberCount: number;
196
+ type?: "personal" | "organization" | undefined;
192
197
  }, {
193
198
  role: "owner" | "admin" | "member";
194
199
  name: string;
195
200
  id: number;
196
201
  slug: string;
197
202
  memberCount: number;
203
+ type?: "personal" | "organization" | undefined;
198
204
  }>>;
199
205
  usage: z.ZodObject<{
200
206
  executionCount: z.ZodNumber;
@@ -421,6 +427,7 @@ export declare const subscriptionStatusResponseSchema: z.ZodObject<{
421
427
  id: number;
422
428
  slug: string;
423
429
  memberCount: number;
430
+ type?: "personal" | "organization" | undefined;
424
431
  } | undefined;
425
432
  personalUsage?: {
426
433
  serviceUsage: {
@@ -484,6 +491,7 @@ export declare const subscriptionStatusResponseSchema: z.ZodObject<{
484
491
  id: number;
485
492
  slug: string;
486
493
  memberCount: number;
494
+ type?: "personal" | "organization" | undefined;
487
495
  } | undefined;
488
496
  personalUsage?: {
489
497
  serviceUsage: {
@@ -520,9 +528,9 @@ export type SubscriptionStatusResponse = z.infer<typeof subscriptionStatusRespon
520
528
  */
521
529
  export declare const userUsageItemSchema: z.ZodObject<{
522
530
  userId: z.ZodString;
523
- userName: z.ZodOptional<z.ZodString>;
531
+ firstName: z.ZodOptional<z.ZodString>;
532
+ lastName: z.ZodOptional<z.ZodString>;
524
533
  userEmail: z.ZodOptional<z.ZodString>;
525
- userImageUrl: z.ZodOptional<z.ZodString>;
526
534
  role: z.ZodEnum<["owner", "admin", "member"]>;
527
535
  executionCount: z.ZodNumber;
528
536
  totalCost: z.ZodNumber;
@@ -531,17 +539,17 @@ export declare const userUsageItemSchema: z.ZodObject<{
531
539
  totalCost: number;
532
540
  userId: string;
533
541
  executionCount: number;
534
- userName?: string | undefined;
542
+ firstName?: string | undefined;
543
+ lastName?: string | undefined;
535
544
  userEmail?: string | undefined;
536
- userImageUrl?: string | undefined;
537
545
  }, {
538
546
  role: "owner" | "admin" | "member";
539
547
  totalCost: number;
540
548
  userId: string;
541
549
  executionCount: number;
542
- userName?: string | undefined;
550
+ firstName?: string | undefined;
551
+ lastName?: string | undefined;
543
552
  userEmail?: string | undefined;
544
- userImageUrl?: string | undefined;
545
553
  }>;
546
554
  export type UserUsageItem = z.infer<typeof userUsageItemSchema>;
547
555
  /**
@@ -556,9 +564,9 @@ export declare const orgUsageBreakdownResponseSchema: z.ZodObject<{
556
564
  totalOrgExecutions: z.ZodNumber;
557
565
  users: z.ZodArray<z.ZodObject<{
558
566
  userId: z.ZodString;
559
- userName: z.ZodOptional<z.ZodString>;
567
+ firstName: z.ZodOptional<z.ZodString>;
568
+ lastName: z.ZodOptional<z.ZodString>;
560
569
  userEmail: z.ZodOptional<z.ZodString>;
561
- userImageUrl: z.ZodOptional<z.ZodString>;
562
570
  role: z.ZodEnum<["owner", "admin", "member"]>;
563
571
  executionCount: z.ZodNumber;
564
572
  totalCost: z.ZodNumber;
@@ -567,17 +575,17 @@ export declare const orgUsageBreakdownResponseSchema: z.ZodObject<{
567
575
  totalCost: number;
568
576
  userId: string;
569
577
  executionCount: number;
570
- userName?: string | undefined;
578
+ firstName?: string | undefined;
579
+ lastName?: string | undefined;
571
580
  userEmail?: string | undefined;
572
- userImageUrl?: string | undefined;
573
581
  }, {
574
582
  role: "owner" | "admin" | "member";
575
583
  totalCost: number;
576
584
  userId: string;
577
585
  executionCount: number;
578
- userName?: string | undefined;
586
+ firstName?: string | undefined;
587
+ lastName?: string | undefined;
579
588
  userEmail?: string | undefined;
580
- userImageUrl?: string | undefined;
581
589
  }>, "many">;
582
590
  }, "strip", z.ZodTypeAny, {
583
591
  organizationId: number;
@@ -586,9 +594,9 @@ export declare const orgUsageBreakdownResponseSchema: z.ZodObject<{
586
594
  totalCost: number;
587
595
  userId: string;
588
596
  executionCount: number;
589
- userName?: string | undefined;
597
+ firstName?: string | undefined;
598
+ lastName?: string | undefined;
590
599
  userEmail?: string | undefined;
591
- userImageUrl?: string | undefined;
592
600
  }[];
593
601
  monthYear: string;
594
602
  totalOrgCost: number;
@@ -601,9 +609,9 @@ export declare const orgUsageBreakdownResponseSchema: z.ZodObject<{
601
609
  totalCost: number;
602
610
  userId: string;
603
611
  executionCount: number;
604
- userName?: string | undefined;
612
+ firstName?: string | undefined;
613
+ lastName?: string | undefined;
605
614
  userEmail?: string | undefined;
606
- userImageUrl?: string | undefined;
607
615
  }[];
608
616
  monthYear: string;
609
617
  totalOrgCost: number;
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-status-schema.d.ts","sourceRoot":"","sources":["../src/subscription-status-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAQtC;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAmBL,CAAC;AAEzB,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBL,CAAC;AAEpB,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;EAsBL,CAAC;AAElC,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAO5E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAeL,CAAC;AAE7B,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGlE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAgBL,CAAC;AAE3B,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAG9D,eAAO,MAAM,yBAAyB;;;;;;EAOL,CAAC;AAElC,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAG5E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAeL,CAAC;AAEnC,MAAM,MAAM,oBAAo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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyEL,CAAC;AAEzC,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;EA8BL,CAAC;AAE5B,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BL,CAAC;AAExC,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AAMF;;GAEG;AACH,wBAAgB,cAAc,CAC5B,YAAY,EAAE,0BAA0B,GACvC,OAAO,CAGT;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,YAAY,EAAE,0BAA0B,GAAG,OAAO,CAG1E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bubblelab/shared-schemas",
3
- "version": "0.1.49",
3
+ "version": "0.1.51",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",