@agentrix/shared 2.22.0 → 2.24.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.
package/dist/index.cjs CHANGED
@@ -1467,12 +1467,13 @@ const GitServerSchema = zod.z.object({
1467
1467
  const ListGitServersResponseSchema = zod.z.array(GitServerSchema);
1468
1468
  const GetGitServerResponseSchema = GitServerSchema;
1469
1469
 
1470
+ const CurrentSubscriptionPlanTypeSchema = zod.z.enum(["free", "plus", "pro", "enterprise"]);
1471
+ const SubscriptionPlanTypeSchema = zod.z.enum(["free", "plus", "pro", "enterprise", "lite", "max"]);
1470
1472
  const SubscriptionPlanSchema = zod.z.object({
1471
1473
  id: IdSchema,
1472
1474
  name: zod.z.string(),
1473
- type: zod.z.string(),
1474
- // "lite", "pro", "max", "enterprise"
1475
- stripePriceId: zod.z.string(),
1475
+ type: SubscriptionPlanTypeSchema,
1476
+ stripePriceId: zod.z.string().nullable(),
1476
1477
  price: zod.z.number(),
1477
1478
  credits: zod.z.number(),
1478
1479
  features: zod.z.array(zod.z.string()),
@@ -1482,6 +1483,18 @@ const SubscriptionPlanSchema = zod.z.object({
1482
1483
  maxPrivateClouds: zod.z.number().int().nonnegative(),
1483
1484
  maxMachinesPerPrivateCloud: zod.z.number().int().nonnegative(),
1484
1485
  maxPrivateCloudMembers: zod.z.number().int().nonnegative(),
1486
+ maxOnlineLocalMachines: zod.z.number().int().nonnegative(),
1487
+ createdAt: DateSchema,
1488
+ updatedAt: DateSchema
1489
+ });
1490
+ const UserEntitlementSourceSchema = zod.z.enum(["free_plan", "subscription", "manual"]);
1491
+ const UserEntitlementSchema = zod.z.object({
1492
+ id: IdSchema,
1493
+ userId: IdSchema,
1494
+ source: UserEntitlementSourceSchema,
1495
+ subscriptionId: IdSchema.nullable(),
1496
+ planId: IdSchema.nullable(),
1497
+ maxOnlineLocalMachines: zod.z.number().int().nonnegative(),
1485
1498
  createdAt: DateSchema,
1486
1499
  updatedAt: DateSchema
1487
1500
  });
@@ -1503,7 +1516,9 @@ const SubscriptionSchema = zod.z.object({
1503
1516
  // Associated plan info
1504
1517
  });
1505
1518
  const GetSubscriptionResponseSchema = zod.z.object({
1506
- subscription: SubscriptionSchema.nullable()
1519
+ subscription: SubscriptionSchema.nullable(),
1520
+ effectivePlan: SubscriptionPlanSchema.nullable().optional(),
1521
+ effectiveEntitlement: UserEntitlementSchema.nullable().optional()
1507
1522
  });
1508
1523
  const CreateCheckoutRequestSchema = zod.z.object({
1509
1524
  priceId: zod.z.string(),
@@ -1520,8 +1535,8 @@ const CreatePortalRequestSchema = zod.z.object({
1520
1535
  const CreatePortalResponseSchema = zod.z.object({
1521
1536
  url: zod.z.string().url()
1522
1537
  });
1523
- const CancelSubscriptionResponseSchema = zod.z.object({
1524
- success: zod.z.literal(true)
1538
+ const StopSubscriptionResponseSchema = zod.z.object({
1539
+ subscription: SubscriptionSchema.nullable()
1525
1540
  });
1526
1541
  const UpdateSubscriptionRequestSchema = zod.z.object({
1527
1542
  priceId: zod.z.string()
@@ -1532,7 +1547,7 @@ const UpdateSubscriptionResponseSchema = zod.z.object({
1532
1547
  const SubscriptionTierSchema = zod.z.object({
1533
1548
  id: zod.z.string(),
1534
1549
  name: zod.z.string(),
1535
- priceId: zod.z.string(),
1550
+ priceId: zod.z.string().nullable(),
1536
1551
  price: zod.z.number(),
1537
1552
  credits: zod.z.number(),
1538
1553
  popular: zod.z.boolean().optional(),
@@ -1544,15 +1559,34 @@ const GetSubscriptionTiersResponseSchema = zod.z.object({
1544
1559
  });
1545
1560
  const CreateSubscriptionPlanRequestSchema = zod.z.object({
1546
1561
  name: zod.z.string(),
1547
- type: zod.z.enum(["lite", "pro", "max", "enterprise"]),
1548
- price: zod.z.number().positive(),
1549
- credits: zod.z.number().positive(),
1562
+ type: CurrentSubscriptionPlanTypeSchema,
1563
+ price: zod.z.number().nonnegative(),
1564
+ credits: zod.z.number().nonnegative(),
1550
1565
  features: zod.z.array(zod.z.string()),
1551
1566
  popular: zod.z.boolean().optional(),
1552
1567
  privateCloudEnabled: zod.z.boolean().optional(),
1553
1568
  maxPrivateClouds: zod.z.number().int().nonnegative().optional(),
1554
1569
  maxMachinesPerPrivateCloud: zod.z.number().int().nonnegative().optional(),
1555
- maxPrivateCloudMembers: zod.z.number().int().nonnegative().optional()
1570
+ maxPrivateCloudMembers: zod.z.number().int().nonnegative().optional(),
1571
+ maxOnlineLocalMachines: zod.z.number().int().nonnegative().optional()
1572
+ }).superRefine((data, ctx) => {
1573
+ if (data.type === "free") {
1574
+ if (data.price !== 0) {
1575
+ ctx.addIssue({
1576
+ code: "custom",
1577
+ path: ["price"],
1578
+ message: "Free plans must have a price of 0"
1579
+ });
1580
+ }
1581
+ return;
1582
+ }
1583
+ if (data.price <= 0) {
1584
+ ctx.addIssue({
1585
+ code: "custom",
1586
+ path: ["price"],
1587
+ message: "Paid plans must have a price greater than 0"
1588
+ });
1589
+ }
1556
1590
  });
1557
1591
  const UpdateSubscriptionPlanRequestSchema = zod.z.object({
1558
1592
  name: zod.z.string().optional(),
@@ -1562,7 +1596,8 @@ const UpdateSubscriptionPlanRequestSchema = zod.z.object({
1562
1596
  privateCloudEnabled: zod.z.boolean().optional(),
1563
1597
  maxPrivateClouds: zod.z.number().int().nonnegative().optional(),
1564
1598
  maxMachinesPerPrivateCloud: zod.z.number().int().nonnegative().optional(),
1565
- maxPrivateCloudMembers: zod.z.number().int().nonnegative().optional()
1599
+ maxPrivateCloudMembers: zod.z.number().int().nonnegative().optional(),
1600
+ maxOnlineLocalMachines: zod.z.number().int().nonnegative().optional()
1566
1601
  });
1567
1602
  const ListSubscriptionPlansResponseSchema = zod.z.object({
1568
1603
  plans: zod.z.array(SubscriptionPlanSchema)
@@ -3736,7 +3771,6 @@ exports.BillingStatsResponseSchema = BillingStatsResponseSchema;
3736
3771
  exports.BranchSchema = BranchSchema;
3737
3772
  exports.CONFIG_FILES = CONFIG_FILES;
3738
3773
  exports.CancelCiRunResponseSchema = CancelCiRunResponseSchema;
3739
- exports.CancelSubscriptionResponseSchema = CancelSubscriptionResponseSchema;
3740
3774
  exports.CancelTaskRequestSchema = CancelTaskRequestSchema;
3741
3775
  exports.CancelTaskResponseSchema = CancelTaskResponseSchema;
3742
3776
  exports.ChangeTaskTitleEventSchema = ChangeTaskTitleEventSchema;
@@ -3809,6 +3843,7 @@ exports.CreateTaskShareSchema = CreateTaskShareSchema;
3809
3843
  exports.CreditExhaustedEventSchema = CreditExhaustedEventSchema;
3810
3844
  exports.CreditsBucketSchema = CreditsBucketSchema;
3811
3845
  exports.CreditsPackageSchema = CreditsPackageSchema;
3846
+ exports.CurrentSubscriptionPlanTypeSchema = CurrentSubscriptionPlanTypeSchema;
3812
3847
  exports.DEFAULT_WORKER_EXECUTION_MODE = DEFAULT_WORKER_EXECUTION_MODE;
3813
3848
  exports.DaemonGitlabOperationSchema = DaemonGitlabOperationSchema;
3814
3849
  exports.DaemonGitlabRequestSchema = DaemonGitlabRequestSchema;
@@ -4030,6 +4065,7 @@ exports.SimpleSuccessSchema = SimpleSuccessSchema;
4030
4065
  exports.StartTaskRequestSchema = StartTaskRequestSchema;
4031
4066
  exports.StartTaskResponseSchema = StartTaskResponseSchema;
4032
4067
  exports.StatsQuerySchema = StatsQuerySchema;
4068
+ exports.StopSubscriptionResponseSchema = StopSubscriptionResponseSchema;
4033
4069
  exports.StopTaskRequestSchema = StopTaskRequestSchema;
4034
4070
  exports.StopTaskResponseSchema = StopTaskResponseSchema;
4035
4071
  exports.StopTaskSchema = StopTaskSchema;
@@ -4038,6 +4074,7 @@ exports.SubTaskAskUserEventSchema = SubTaskAskUserEventSchema;
4038
4074
  exports.SubTaskResultUpdatedEventSchema = SubTaskResultUpdatedEventSchema;
4039
4075
  exports.SubTaskSummarySchema = SubTaskSummarySchema;
4040
4076
  exports.SubscriptionPlanSchema = SubscriptionPlanSchema;
4077
+ exports.SubscriptionPlanTypeSchema = SubscriptionPlanTypeSchema;
4041
4078
  exports.SubscriptionSchema = SubscriptionSchema;
4042
4079
  exports.SubscriptionTierSchema = SubscriptionTierSchema;
4043
4080
  exports.SyncCloudMachineResponseSchema = SyncCloudMachineResponseSchema;
@@ -4094,6 +4131,8 @@ exports.UpdateUserProfileResponseSchema = UpdateUserProfileResponseSchema;
4094
4131
  exports.UploadUrlResultSchema = UploadUrlResultSchema;
4095
4132
  exports.UserBalanceResponseSchema = UserBalanceResponseSchema;
4096
4133
  exports.UserBasicInfoSchema = UserBasicInfoSchema;
4134
+ exports.UserEntitlementSchema = UserEntitlementSchema;
4135
+ exports.UserEntitlementSourceSchema = UserEntitlementSourceSchema;
4097
4136
  exports.UserInboxItemSchema = UserInboxItemSchema;
4098
4137
  exports.UserInboxStatusSchema = UserInboxStatusSchema;
4099
4138
  exports.UserInboxSubjectTypeSchema = UserInboxSubjectTypeSchema;
package/dist/index.d.cts CHANGED
@@ -3154,11 +3154,34 @@ type GetGitServerResponse = z.infer<typeof GetGitServerResponseSchema>;
3154
3154
  /**
3155
3155
  * Subscription Plan schema (defined first, used by SubscriptionSchema)
3156
3156
  */
3157
+ declare const CurrentSubscriptionPlanTypeSchema: z.ZodEnum<{
3158
+ free: "free";
3159
+ plus: "plus";
3160
+ pro: "pro";
3161
+ enterprise: "enterprise";
3162
+ }>;
3163
+ declare const SubscriptionPlanTypeSchema: z.ZodEnum<{
3164
+ free: "free";
3165
+ plus: "plus";
3166
+ pro: "pro";
3167
+ enterprise: "enterprise";
3168
+ lite: "lite";
3169
+ max: "max";
3170
+ }>;
3171
+ type CurrentSubscriptionPlanType = z.infer<typeof CurrentSubscriptionPlanTypeSchema>;
3172
+ type SubscriptionPlanType = z.infer<typeof SubscriptionPlanTypeSchema>;
3157
3173
  declare const SubscriptionPlanSchema: z.ZodObject<{
3158
3174
  id: z.ZodString;
3159
3175
  name: z.ZodString;
3160
- type: z.ZodString;
3161
- stripePriceId: z.ZodString;
3176
+ type: z.ZodEnum<{
3177
+ free: "free";
3178
+ plus: "plus";
3179
+ pro: "pro";
3180
+ enterprise: "enterprise";
3181
+ lite: "lite";
3182
+ max: "max";
3183
+ }>;
3184
+ stripePriceId: z.ZodNullable<z.ZodString>;
3162
3185
  price: z.ZodNumber;
3163
3186
  credits: z.ZodNumber;
3164
3187
  features: z.ZodArray<z.ZodString>;
@@ -3168,10 +3191,31 @@ declare const SubscriptionPlanSchema: z.ZodObject<{
3168
3191
  maxPrivateClouds: z.ZodNumber;
3169
3192
  maxMachinesPerPrivateCloud: z.ZodNumber;
3170
3193
  maxPrivateCloudMembers: z.ZodNumber;
3194
+ maxOnlineLocalMachines: z.ZodNumber;
3171
3195
  createdAt: z.ZodString;
3172
3196
  updatedAt: z.ZodString;
3173
3197
  }, z.core.$strip>;
3174
3198
  type SubscriptionPlan = z.infer<typeof SubscriptionPlanSchema>;
3199
+ declare const UserEntitlementSourceSchema: z.ZodEnum<{
3200
+ free_plan: "free_plan";
3201
+ subscription: "subscription";
3202
+ manual: "manual";
3203
+ }>;
3204
+ declare const UserEntitlementSchema: z.ZodObject<{
3205
+ id: z.ZodString;
3206
+ userId: z.ZodString;
3207
+ source: z.ZodEnum<{
3208
+ free_plan: "free_plan";
3209
+ subscription: "subscription";
3210
+ manual: "manual";
3211
+ }>;
3212
+ subscriptionId: z.ZodNullable<z.ZodString>;
3213
+ planId: z.ZodNullable<z.ZodString>;
3214
+ maxOnlineLocalMachines: z.ZodNumber;
3215
+ createdAt: z.ZodString;
3216
+ updatedAt: z.ZodString;
3217
+ }, z.core.$strip>;
3218
+ type UserEntitlement = z.infer<typeof UserEntitlementSchema>;
3175
3219
  /**
3176
3220
  * Subscription model schema
3177
3221
  */
@@ -3191,8 +3235,15 @@ declare const SubscriptionSchema: z.ZodObject<{
3191
3235
  plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3192
3236
  id: z.ZodString;
3193
3237
  name: z.ZodString;
3194
- type: z.ZodString;
3195
- stripePriceId: z.ZodString;
3238
+ type: z.ZodEnum<{
3239
+ free: "free";
3240
+ plus: "plus";
3241
+ pro: "pro";
3242
+ enterprise: "enterprise";
3243
+ lite: "lite";
3244
+ max: "max";
3245
+ }>;
3246
+ stripePriceId: z.ZodNullable<z.ZodString>;
3196
3247
  price: z.ZodNumber;
3197
3248
  credits: z.ZodNumber;
3198
3249
  features: z.ZodArray<z.ZodString>;
@@ -3202,6 +3253,7 @@ declare const SubscriptionSchema: z.ZodObject<{
3202
3253
  maxPrivateClouds: z.ZodNumber;
3203
3254
  maxMachinesPerPrivateCloud: z.ZodNumber;
3204
3255
  maxPrivateCloudMembers: z.ZodNumber;
3256
+ maxOnlineLocalMachines: z.ZodNumber;
3205
3257
  createdAt: z.ZodString;
3206
3258
  updatedAt: z.ZodString;
3207
3259
  }, z.core.$strip>>>;
@@ -3227,8 +3279,15 @@ declare const GetSubscriptionResponseSchema: z.ZodObject<{
3227
3279
  plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3228
3280
  id: z.ZodString;
3229
3281
  name: z.ZodString;
3230
- type: z.ZodString;
3231
- stripePriceId: z.ZodString;
3282
+ type: z.ZodEnum<{
3283
+ free: "free";
3284
+ plus: "plus";
3285
+ pro: "pro";
3286
+ enterprise: "enterprise";
3287
+ lite: "lite";
3288
+ max: "max";
3289
+ }>;
3290
+ stripePriceId: z.ZodNullable<z.ZodString>;
3232
3291
  price: z.ZodNumber;
3233
3292
  credits: z.ZodNumber;
3234
3293
  features: z.ZodArray<z.ZodString>;
@@ -3238,10 +3297,50 @@ declare const GetSubscriptionResponseSchema: z.ZodObject<{
3238
3297
  maxPrivateClouds: z.ZodNumber;
3239
3298
  maxMachinesPerPrivateCloud: z.ZodNumber;
3240
3299
  maxPrivateCloudMembers: z.ZodNumber;
3300
+ maxOnlineLocalMachines: z.ZodNumber;
3241
3301
  createdAt: z.ZodString;
3242
3302
  updatedAt: z.ZodString;
3243
3303
  }, z.core.$strip>>>;
3244
3304
  }, z.core.$strip>>;
3305
+ effectivePlan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3306
+ id: z.ZodString;
3307
+ name: z.ZodString;
3308
+ type: z.ZodEnum<{
3309
+ free: "free";
3310
+ plus: "plus";
3311
+ pro: "pro";
3312
+ enterprise: "enterprise";
3313
+ lite: "lite";
3314
+ max: "max";
3315
+ }>;
3316
+ stripePriceId: z.ZodNullable<z.ZodString>;
3317
+ price: z.ZodNumber;
3318
+ credits: z.ZodNumber;
3319
+ features: z.ZodArray<z.ZodString>;
3320
+ popular: z.ZodBoolean;
3321
+ enabled: z.ZodBoolean;
3322
+ privateCloudEnabled: z.ZodBoolean;
3323
+ maxPrivateClouds: z.ZodNumber;
3324
+ maxMachinesPerPrivateCloud: z.ZodNumber;
3325
+ maxPrivateCloudMembers: z.ZodNumber;
3326
+ maxOnlineLocalMachines: z.ZodNumber;
3327
+ createdAt: z.ZodString;
3328
+ updatedAt: z.ZodString;
3329
+ }, z.core.$strip>>>;
3330
+ effectiveEntitlement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3331
+ id: z.ZodString;
3332
+ userId: z.ZodString;
3333
+ source: z.ZodEnum<{
3334
+ free_plan: "free_plan";
3335
+ subscription: "subscription";
3336
+ manual: "manual";
3337
+ }>;
3338
+ subscriptionId: z.ZodNullable<z.ZodString>;
3339
+ planId: z.ZodNullable<z.ZodString>;
3340
+ maxOnlineLocalMachines: z.ZodNumber;
3341
+ createdAt: z.ZodString;
3342
+ updatedAt: z.ZodString;
3343
+ }, z.core.$strip>>>;
3245
3344
  }, z.core.$strip>;
3246
3345
  type GetSubscriptionResponse = z.infer<typeof GetSubscriptionResponseSchema>;
3247
3346
  /**
@@ -3280,12 +3379,50 @@ declare const CreatePortalResponseSchema: z.ZodObject<{
3280
3379
  }, z.core.$strip>;
3281
3380
  type CreatePortalResponse = z.infer<typeof CreatePortalResponseSchema>;
3282
3381
  /**
3283
- * POST /v1/subscription/cancel - Response schema
3382
+ * POST /v1/subscription/stop - Response schema
3284
3383
  */
3285
- declare const CancelSubscriptionResponseSchema: z.ZodObject<{
3286
- success: z.ZodLiteral<true>;
3384
+ declare const StopSubscriptionResponseSchema: z.ZodObject<{
3385
+ subscription: z.ZodNullable<z.ZodObject<{
3386
+ id: z.ZodString;
3387
+ userId: z.ZodString;
3388
+ stripeSubscriptionId: z.ZodString;
3389
+ stripeCustomerId: z.ZodString;
3390
+ stripePriceId: z.ZodString;
3391
+ status: z.ZodString;
3392
+ currentPeriodStart: z.ZodString;
3393
+ currentPeriodEnd: z.ZodString;
3394
+ cancelAtPeriodEnd: z.ZodBoolean;
3395
+ canceledAt: z.ZodNullable<z.ZodString>;
3396
+ createdAt: z.ZodString;
3397
+ updatedAt: z.ZodString;
3398
+ plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3399
+ id: z.ZodString;
3400
+ name: z.ZodString;
3401
+ type: z.ZodEnum<{
3402
+ free: "free";
3403
+ plus: "plus";
3404
+ pro: "pro";
3405
+ enterprise: "enterprise";
3406
+ lite: "lite";
3407
+ max: "max";
3408
+ }>;
3409
+ stripePriceId: z.ZodNullable<z.ZodString>;
3410
+ price: z.ZodNumber;
3411
+ credits: z.ZodNumber;
3412
+ features: z.ZodArray<z.ZodString>;
3413
+ popular: z.ZodBoolean;
3414
+ enabled: z.ZodBoolean;
3415
+ privateCloudEnabled: z.ZodBoolean;
3416
+ maxPrivateClouds: z.ZodNumber;
3417
+ maxMachinesPerPrivateCloud: z.ZodNumber;
3418
+ maxPrivateCloudMembers: z.ZodNumber;
3419
+ maxOnlineLocalMachines: z.ZodNumber;
3420
+ createdAt: z.ZodString;
3421
+ updatedAt: z.ZodString;
3422
+ }, z.core.$strip>>>;
3423
+ }, z.core.$strip>>;
3287
3424
  }, z.core.$strip>;
3288
- type CancelSubscriptionResponse = z.infer<typeof CancelSubscriptionResponseSchema>;
3425
+ type StopSubscriptionResponse = z.infer<typeof StopSubscriptionResponseSchema>;
3289
3426
  /**
3290
3427
  * POST /v1/subscription/update - Request schema
3291
3428
  */
@@ -3306,7 +3443,7 @@ type UpdateSubscriptionResponse = z.infer<typeof UpdateSubscriptionResponseSchem
3306
3443
  declare const SubscriptionTierSchema: z.ZodObject<{
3307
3444
  id: z.ZodString;
3308
3445
  name: z.ZodString;
3309
- priceId: z.ZodString;
3446
+ priceId: z.ZodNullable<z.ZodString>;
3310
3447
  price: z.ZodNumber;
3311
3448
  credits: z.ZodNumber;
3312
3449
  popular: z.ZodOptional<z.ZodBoolean>;
@@ -3321,7 +3458,7 @@ declare const GetSubscriptionTiersResponseSchema: z.ZodObject<{
3321
3458
  tiers: z.ZodArray<z.ZodObject<{
3322
3459
  id: z.ZodString;
3323
3460
  name: z.ZodString;
3324
- priceId: z.ZodString;
3461
+ priceId: z.ZodNullable<z.ZodString>;
3325
3462
  price: z.ZodNumber;
3326
3463
  credits: z.ZodNumber;
3327
3464
  popular: z.ZodOptional<z.ZodBoolean>;
@@ -3335,9 +3472,9 @@ type GetSubscriptionTiersResponse = z.infer<typeof GetSubscriptionTiersResponseS
3335
3472
  declare const CreateSubscriptionPlanRequestSchema: z.ZodObject<{
3336
3473
  name: z.ZodString;
3337
3474
  type: z.ZodEnum<{
3338
- lite: "lite";
3475
+ free: "free";
3476
+ plus: "plus";
3339
3477
  pro: "pro";
3340
- max: "max";
3341
3478
  enterprise: "enterprise";
3342
3479
  }>;
3343
3480
  price: z.ZodNumber;
@@ -3348,6 +3485,7 @@ declare const CreateSubscriptionPlanRequestSchema: z.ZodObject<{
3348
3485
  maxPrivateClouds: z.ZodOptional<z.ZodNumber>;
3349
3486
  maxMachinesPerPrivateCloud: z.ZodOptional<z.ZodNumber>;
3350
3487
  maxPrivateCloudMembers: z.ZodOptional<z.ZodNumber>;
3488
+ maxOnlineLocalMachines: z.ZodOptional<z.ZodNumber>;
3351
3489
  }, z.core.$strip>;
3352
3490
  type CreateSubscriptionPlanRequest = z.infer<typeof CreateSubscriptionPlanRequestSchema>;
3353
3491
  /**
@@ -3362,6 +3500,7 @@ declare const UpdateSubscriptionPlanRequestSchema: z.ZodObject<{
3362
3500
  maxPrivateClouds: z.ZodOptional<z.ZodNumber>;
3363
3501
  maxMachinesPerPrivateCloud: z.ZodOptional<z.ZodNumber>;
3364
3502
  maxPrivateCloudMembers: z.ZodOptional<z.ZodNumber>;
3503
+ maxOnlineLocalMachines: z.ZodOptional<z.ZodNumber>;
3365
3504
  }, z.core.$strip>;
3366
3505
  type UpdateSubscriptionPlanRequest = z.infer<typeof UpdateSubscriptionPlanRequestSchema>;
3367
3506
  /**
@@ -3371,8 +3510,15 @@ declare const ListSubscriptionPlansResponseSchema: z.ZodObject<{
3371
3510
  plans: z.ZodArray<z.ZodObject<{
3372
3511
  id: z.ZodString;
3373
3512
  name: z.ZodString;
3374
- type: z.ZodString;
3375
- stripePriceId: z.ZodString;
3513
+ type: z.ZodEnum<{
3514
+ free: "free";
3515
+ plus: "plus";
3516
+ pro: "pro";
3517
+ enterprise: "enterprise";
3518
+ lite: "lite";
3519
+ max: "max";
3520
+ }>;
3521
+ stripePriceId: z.ZodNullable<z.ZodString>;
3376
3522
  price: z.ZodNumber;
3377
3523
  credits: z.ZodNumber;
3378
3524
  features: z.ZodArray<z.ZodString>;
@@ -3382,6 +3528,7 @@ declare const ListSubscriptionPlansResponseSchema: z.ZodObject<{
3382
3528
  maxPrivateClouds: z.ZodNumber;
3383
3529
  maxMachinesPerPrivateCloud: z.ZodNumber;
3384
3530
  maxPrivateCloudMembers: z.ZodNumber;
3531
+ maxOnlineLocalMachines: z.ZodNumber;
3385
3532
  createdAt: z.ZodString;
3386
3533
  updatedAt: z.ZodString;
3387
3534
  }, z.core.$strip>>;
@@ -4495,5 +4642,5 @@ declare function detectPreview(fs: FileSystemAdapter): Promise<PreviewMetadata |
4495
4642
  */
4496
4643
  declare function decodeGitPath(rawPath: string): string;
4497
4644
 
4498
- export { AcceptPrivateCloudInviteRequestSchema, AcceptPrivateCloudInviteResponseSchema, AddChatMemberRequestSchema, AddChatMemberResponseSchema, AdminResourceItemSchema, AgentCustomConfigSchema, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiKeySchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelCiRunResponseSchema, CancelSubscriptionResponseSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, CiProviderSchema, CiRunContextSchema, CiRunExecutionSchema, CiRunGitSchema, CiRunRepoSchema, CiRunStatusResponseSchema, CiRunStatusSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, CompanionEnsureResponseSchema, CompanionWorkspaceFileSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, ContactCandidateSchema, ContactSchema, ContactTargetTypeSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateApiKeyRequestSchema, CreateApiKeyResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCheckoutRequestSchema, CreateCheckoutResponseSchema, CreateCiRunRequestSchema, CreateCiRunResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateContactRequestSchema, CreateContactResponseSchema, CreateDirectRechargeCheckoutRequestSchema, CreateDirectRechargeCheckoutResponseSchema, CreateDraftAgentRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreatePortalRequestSchema, CreatePortalResponseSchema, CreatePrivateCloudInviteRequestSchema, CreatePrivateCloudInviteResponseSchema, CreatePrivateCloudRequestSchema, CreatePrivateCloudResponseSchema, CreateResourceRequestSchema, CreateSubscriptionPlanRequestSchema, CreditsBucketSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteApiKeyResponseSchema, DeleteContactResponseSchema, DeleteOAuthServerResponseSchema, DevCreateUserRequestSchema, DevCreateUserResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EmailLoginCodeRequestSchema, EmailLoginCodeResponseSchema, EmailLoginVerifyRequestSchema, EmailLoginVerifyResponseSchema, EmailPasswordLoginRequestSchema, EmailPasswordLoginResponseSchema, EnsureRepoChatRequestSchema, EnsureRepoChatResponseSchema, EnvironmentVariableSchema, FileItemSchema, FileStatsSchema, FileVisibilitySchema, GetAgentGitUrlResponseSchema, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetPrivateCloudRunnerSecretResponseSchema, GetReferenceQuerySchema, GetRepositoryResponseSchema, GetSubscriptionResponseSchema, GetSubscriptionTiersResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerAccountInfoSchema, GitServerSchema, IGNORED_DIRECTORIES, IdSchema, JsonSchemaDocumentSchema, ListAdminResourcesResponseSchema, ListAgentsResponseSchema, ListApiKeysQuerySchema, ListApiKeysResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListContactsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachineModelsResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListPrivateCloudMembersResponseSchema, ListPrivateCloudsResponseSchema, ListPublicResourcesQuerySchema, ListPublicResourcesResponseSchema, ListReferencesQuerySchema, ListReferencesResponseSchema, ListRepositoriesResponseSchema, ListSubscriptionPlansResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, ListUserInboxResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineUnbindRequestSchema, MachineUnbindResponseSchema, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PreviewMetadata, PrivateCloudEntitlementSchema, PrivateCloudInviteSchema, PrivateCloudMemberSchema, PrivateCloudSummarySchema, ProfileEmailCodeRequestSchema, ProfileEmailCodeResponseSchema, PublicResourceItemSchema, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RegisterCompanionRequestSchema, RegisterCompanionResponseSchema, RemoveChatMemberRequestSchema, RemovePrivateCloudMemberResponseSchema, RepositoryActorIdentitySchema, RepositoryReferenceCommentSchema, RepositoryReferenceCommentsResponseSchema, RepositoryReferenceDiffSchema, RepositoryReferenceKindSchema, RepositoryReferenceListItemSchema, RepositoryReferenceSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResolveUserInboxItemResponseSchema, ResourceMetadataSchema, RtcChunkFlags, STATIC_FILE_EXTENSIONS, SearchContactCandidatesQuerySchema, SearchContactCandidatesResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, SimpleSuccessSchema, StatsQuerySchema, StripeCheckoutClientSchema, SubscriptionPlanSchema, SubscriptionSchema, SubscriptionTierSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineModelsRequestSchema, SyncMachineModelsResponseSchema, SyncMachineRequestSchema, TaskSharePermissionsSchema, TaskTransactionsResponseSchema, ToggleApiKeyRequestSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateApiKeyRequestSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateResourceRequestSchema, UpdateSecretRequestSchema, UpdateSecretResponseSchema, UpdateSubscriptionPlanRequestSchema, UpdateSubscriptionRequestSchema, UpdateSubscriptionResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserInboxItemSchema, UserInboxStatusSchema, UserInboxSubjectTypeSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, ValidateMachineResponseSchema, buildRtcChunkFrame, createKeyPair, createKeyPairWithUit8Array, createTaskEncryptionPayload, decodeBase64, decodeGitPath, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getRandomBytes, machineAuth, splitRtcChunkFrame, userAuth, workerAuth };
4499
- export type { AcceptPrivateCloudInviteRequest, AcceptPrivateCloudInviteResponse, AddChatMemberRequest, AddChatMemberResponse, AdminResourceItem, Agent, AgentCustomConfig, AgentPermissions, AgentType, ApiError, ApiKey, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelCiRunResponse, CancelSubscriptionResponse, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, CiProvider, CiRunContext, CiRunExecution, CiRunGit, CiRunRepo, CiRunStatus, CiRunStatusResponse, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, CompanionEnsureResponse, CompanionWorkspaceFile, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, Contact, ContactCandidate, ContactTargetType, CreateAgentRequest, CreateAgentResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateChatRequest, CreateChatResponse, CreateCheckoutRequest, CreateCheckoutResponse, CreateCiRunRequest, CreateCiRunResponse, CreateCloudRequest, CreateCloudResponse, CreateContactRequest, CreateContactResponse, CreateDirectRechargeCheckoutRequest, CreateDirectRechargeCheckoutResponse, CreateDraftAgentRequest, CreateOAuthServerRequest, CreateOAuthServerResponse, CreatePortalRequest, CreatePortalResponse, CreatePrivateCloudInviteRequest, CreatePrivateCloudInviteResponse, CreatePrivateCloudRequest, CreatePrivateCloudResponse, CreateResourceRequest, CreateSubscriptionPlanRequest, CreditsBucket, CreditsPackage, DeleteAgentResponse, DeleteApiKeyResponse, DeleteContactResponse, DeleteOAuthServerResponse, DevCreateUserRequest, DevCreateUserResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EmailLoginCodeRequest, EmailLoginCodeResponse, EmailLoginVerifyRequest, EmailLoginVerifyResponse, EmailPasswordLoginRequest, EmailPasswordLoginResponse, EnsureRepoChatRequest, EnsureRepoChatResponse, EnvironmentVariable, FileItem, FileStats, FileSystemAdapter, FileVisibility, GetAgentGitUrlResponse, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetPrivateCloudRunnerSecretResponse, GetReferenceQuery, GetRepositoryResponse, GetSubscriptionResponse, GetSubscriptionTiersResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, GitServerAccountInfo, JsonSchemaDocument, ListAdminResourcesResponse, ListAgentsResponse, ListApiKeysQuery, ListApiKeysResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListContactsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachineModelsResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListPrivateCloudMembersResponse, ListPrivateCloudsResponse, ListPublicResourcesQuery, ListPublicResourcesResponse, ListReferencesQuery, ListReferencesResponse, ListRepositoriesResponse, ListSubscriptionPlansResponse, ListTransactionsQuery, ListTransactionsResponse, ListUserInboxResponse, LocalMachine, LogoutResponse, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineUnbindRequest, MachineUnbindResponse, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PrivateCloudEntitlement, PrivateCloudInvite, PrivateCloudMember, PrivateCloudSummary, ProfileEmailCodeRequest, ProfileEmailCodeResponse, PublicResourceItem, PublishDraftAgentRequest, PublishDraftAgentResponse, RechargeResponse, RegisterCompanionRequest, RegisterCompanionResponse, RemoveChatMemberRequest, RemovePrivateCloudMemberResponse, Repository, RepositoryActorIdentity, RepositoryReference, RepositoryReferenceComment, RepositoryReferenceCommentsResponse, RepositoryReferenceDiff, RepositoryReferenceKind, RepositoryReferenceListItem, ResetSecretRequest, ResetSecretResponse, ResolveUserInboxItemResponse, ResourceMetadata, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, SearchContactCandidatesQuery, SearchContactCandidatesResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, SimpleSuccess, StatsQuery, StripeCheckoutClient, Subscription, SubscriptionPlan, SubscriptionTier, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineModelsRequest, SyncMachineModelsResponse, SyncMachineRequest, TaskEncryptionPayload, TaskSharePermissions, TaskTransactionsResponse, ToggleApiKeyRequest, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateApiKeyRequest, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateResourceRequest, UpdateSecretRequest, UpdateSecretResponse, UpdateSubscriptionPlanRequest, UpdateSubscriptionRequest, UpdateSubscriptionResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserInboxItem, UserInboxStatus, UserInboxSubjectType, UserProfileResponse, UserWithOAuthAccounts, ValidateMachineResponse };
4645
+ export { AcceptPrivateCloudInviteRequestSchema, AcceptPrivateCloudInviteResponseSchema, AddChatMemberRequestSchema, AddChatMemberResponseSchema, AdminResourceItemSchema, AgentCustomConfigSchema, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiKeySchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelCiRunResponseSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, CiProviderSchema, CiRunContextSchema, CiRunExecutionSchema, CiRunGitSchema, CiRunRepoSchema, CiRunStatusResponseSchema, CiRunStatusSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, CompanionEnsureResponseSchema, CompanionWorkspaceFileSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, ContactCandidateSchema, ContactSchema, ContactTargetTypeSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateApiKeyRequestSchema, CreateApiKeyResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCheckoutRequestSchema, CreateCheckoutResponseSchema, CreateCiRunRequestSchema, CreateCiRunResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateContactRequestSchema, CreateContactResponseSchema, CreateDirectRechargeCheckoutRequestSchema, CreateDirectRechargeCheckoutResponseSchema, CreateDraftAgentRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreatePortalRequestSchema, CreatePortalResponseSchema, CreatePrivateCloudInviteRequestSchema, CreatePrivateCloudInviteResponseSchema, CreatePrivateCloudRequestSchema, CreatePrivateCloudResponseSchema, CreateResourceRequestSchema, CreateSubscriptionPlanRequestSchema, CreditsBucketSchema, CreditsPackageSchema, CurrentSubscriptionPlanTypeSchema, DateSchema, DeleteAgentResponseSchema, DeleteApiKeyResponseSchema, DeleteContactResponseSchema, DeleteOAuthServerResponseSchema, DevCreateUserRequestSchema, DevCreateUserResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EmailLoginCodeRequestSchema, EmailLoginCodeResponseSchema, EmailLoginVerifyRequestSchema, EmailLoginVerifyResponseSchema, EmailPasswordLoginRequestSchema, EmailPasswordLoginResponseSchema, EnsureRepoChatRequestSchema, EnsureRepoChatResponseSchema, EnvironmentVariableSchema, FileItemSchema, FileStatsSchema, FileVisibilitySchema, GetAgentGitUrlResponseSchema, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetPrivateCloudRunnerSecretResponseSchema, GetReferenceQuerySchema, GetRepositoryResponseSchema, GetSubscriptionResponseSchema, GetSubscriptionTiersResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerAccountInfoSchema, GitServerSchema, IGNORED_DIRECTORIES, IdSchema, JsonSchemaDocumentSchema, ListAdminResourcesResponseSchema, ListAgentsResponseSchema, ListApiKeysQuerySchema, ListApiKeysResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListContactsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachineModelsResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListPrivateCloudMembersResponseSchema, ListPrivateCloudsResponseSchema, ListPublicResourcesQuerySchema, ListPublicResourcesResponseSchema, ListReferencesQuerySchema, ListReferencesResponseSchema, ListRepositoriesResponseSchema, ListSubscriptionPlansResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, ListUserInboxResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineUnbindRequestSchema, MachineUnbindResponseSchema, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PreviewMetadata, PrivateCloudEntitlementSchema, PrivateCloudInviteSchema, PrivateCloudMemberSchema, PrivateCloudSummarySchema, ProfileEmailCodeRequestSchema, ProfileEmailCodeResponseSchema, PublicResourceItemSchema, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RegisterCompanionRequestSchema, RegisterCompanionResponseSchema, RemoveChatMemberRequestSchema, RemovePrivateCloudMemberResponseSchema, RepositoryActorIdentitySchema, RepositoryReferenceCommentSchema, RepositoryReferenceCommentsResponseSchema, RepositoryReferenceDiffSchema, RepositoryReferenceKindSchema, RepositoryReferenceListItemSchema, RepositoryReferenceSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResolveUserInboxItemResponseSchema, ResourceMetadataSchema, RtcChunkFlags, STATIC_FILE_EXTENSIONS, SearchContactCandidatesQuerySchema, SearchContactCandidatesResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, SimpleSuccessSchema, StatsQuerySchema, StopSubscriptionResponseSchema, StripeCheckoutClientSchema, SubscriptionPlanSchema, SubscriptionPlanTypeSchema, SubscriptionSchema, SubscriptionTierSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineModelsRequestSchema, SyncMachineModelsResponseSchema, SyncMachineRequestSchema, TaskSharePermissionsSchema, TaskTransactionsResponseSchema, ToggleApiKeyRequestSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateApiKeyRequestSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateResourceRequestSchema, UpdateSecretRequestSchema, UpdateSecretResponseSchema, UpdateSubscriptionPlanRequestSchema, UpdateSubscriptionRequestSchema, UpdateSubscriptionResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserEntitlementSchema, UserEntitlementSourceSchema, UserInboxItemSchema, UserInboxStatusSchema, UserInboxSubjectTypeSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, ValidateMachineResponseSchema, buildRtcChunkFrame, createKeyPair, createKeyPairWithUit8Array, createTaskEncryptionPayload, decodeBase64, decodeGitPath, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getRandomBytes, machineAuth, splitRtcChunkFrame, userAuth, workerAuth };
4646
+ export type { AcceptPrivateCloudInviteRequest, AcceptPrivateCloudInviteResponse, AddChatMemberRequest, AddChatMemberResponse, AdminResourceItem, Agent, AgentCustomConfig, AgentPermissions, AgentType, ApiError, ApiKey, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelCiRunResponse, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, CiProvider, CiRunContext, CiRunExecution, CiRunGit, CiRunRepo, CiRunStatus, CiRunStatusResponse, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, CompanionEnsureResponse, CompanionWorkspaceFile, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, Contact, ContactCandidate, ContactTargetType, CreateAgentRequest, CreateAgentResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateChatRequest, CreateChatResponse, CreateCheckoutRequest, CreateCheckoutResponse, CreateCiRunRequest, CreateCiRunResponse, CreateCloudRequest, CreateCloudResponse, CreateContactRequest, CreateContactResponse, CreateDirectRechargeCheckoutRequest, CreateDirectRechargeCheckoutResponse, CreateDraftAgentRequest, CreateOAuthServerRequest, CreateOAuthServerResponse, CreatePortalRequest, CreatePortalResponse, CreatePrivateCloudInviteRequest, CreatePrivateCloudInviteResponse, CreatePrivateCloudRequest, CreatePrivateCloudResponse, CreateResourceRequest, CreateSubscriptionPlanRequest, CreditsBucket, CreditsPackage, CurrentSubscriptionPlanType, DeleteAgentResponse, DeleteApiKeyResponse, DeleteContactResponse, DeleteOAuthServerResponse, DevCreateUserRequest, DevCreateUserResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EmailLoginCodeRequest, EmailLoginCodeResponse, EmailLoginVerifyRequest, EmailLoginVerifyResponse, EmailPasswordLoginRequest, EmailPasswordLoginResponse, EnsureRepoChatRequest, EnsureRepoChatResponse, EnvironmentVariable, FileItem, FileStats, FileSystemAdapter, FileVisibility, GetAgentGitUrlResponse, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetPrivateCloudRunnerSecretResponse, GetReferenceQuery, GetRepositoryResponse, GetSubscriptionResponse, GetSubscriptionTiersResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, GitServerAccountInfo, JsonSchemaDocument, ListAdminResourcesResponse, ListAgentsResponse, ListApiKeysQuery, ListApiKeysResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListContactsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachineModelsResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListPrivateCloudMembersResponse, ListPrivateCloudsResponse, ListPublicResourcesQuery, ListPublicResourcesResponse, ListReferencesQuery, ListReferencesResponse, ListRepositoriesResponse, ListSubscriptionPlansResponse, ListTransactionsQuery, ListTransactionsResponse, ListUserInboxResponse, LocalMachine, LogoutResponse, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineUnbindRequest, MachineUnbindResponse, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PrivateCloudEntitlement, PrivateCloudInvite, PrivateCloudMember, PrivateCloudSummary, ProfileEmailCodeRequest, ProfileEmailCodeResponse, PublicResourceItem, PublishDraftAgentRequest, PublishDraftAgentResponse, RechargeResponse, RegisterCompanionRequest, RegisterCompanionResponse, RemoveChatMemberRequest, RemovePrivateCloudMemberResponse, Repository, RepositoryActorIdentity, RepositoryReference, RepositoryReferenceComment, RepositoryReferenceCommentsResponse, RepositoryReferenceDiff, RepositoryReferenceKind, RepositoryReferenceListItem, ResetSecretRequest, ResetSecretResponse, ResolveUserInboxItemResponse, ResourceMetadata, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, SearchContactCandidatesQuery, SearchContactCandidatesResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, SimpleSuccess, StatsQuery, StopSubscriptionResponse, StripeCheckoutClient, Subscription, SubscriptionPlan, SubscriptionPlanType, SubscriptionTier, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineModelsRequest, SyncMachineModelsResponse, SyncMachineRequest, TaskEncryptionPayload, TaskSharePermissions, TaskTransactionsResponse, ToggleApiKeyRequest, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateApiKeyRequest, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateResourceRequest, UpdateSecretRequest, UpdateSecretResponse, UpdateSubscriptionPlanRequest, UpdateSubscriptionRequest, UpdateSubscriptionResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserEntitlement, UserInboxItem, UserInboxStatus, UserInboxSubjectType, UserProfileResponse, UserWithOAuthAccounts, ValidateMachineResponse };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentrix/shared",
3
- "version": "2.22.0",
3
+ "version": "2.24.0",
4
4
  "description": "Shared types and schemas for Agentrix projects",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",