@agentrix/shared 1.0.1 → 1.0.2

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
@@ -666,6 +666,7 @@ const OAuthServerSchema = zod.z.object({
666
666
  id: IdSchema,
667
667
  provider: zod.z.string(),
668
668
  displayName: zod.z.string(),
669
+ avatar: zod.z.string().optional(),
669
670
  authorizeUrl: zod.z.string().url(),
670
671
  tokenUrl: zod.z.string().url(),
671
672
  userInfoUrl: zod.z.string().url(),
@@ -678,12 +679,19 @@ const OAuthServerSchema = zod.z.object({
678
679
  createdAt: zod.z.union([DateSchema, zod.z.date().transform((d) => d.toISOString())]),
679
680
  updatedAt: zod.z.union([DateSchema, zod.z.date().transform((d) => d.toISOString())])
680
681
  });
681
- const OAuthServerPublicSchema = OAuthServerSchema.omit({
682
- clientSecret: true
682
+ const OAuthServerPublicSchema = zod.z.object({
683
+ id: IdSchema,
684
+ provider: zod.z.string(),
685
+ displayName: zod.z.string(),
686
+ avatar: zod.z.string().optional(),
687
+ enabled: zod.z.boolean(),
688
+ createdAt: zod.z.union([DateSchema, zod.z.date().transform((d) => d.toISOString())]),
689
+ updatedAt: zod.z.union([DateSchema, zod.z.date().transform((d) => d.toISOString())])
683
690
  });
684
691
  const CreateOAuthServerRequestSchema = zod.z.object({
685
692
  provider: zod.z.string().min(1).regex(/^[a-z0-9-]+$/),
686
693
  displayName: zod.z.string().min(1),
694
+ avatar: zod.z.string().optional(),
687
695
  authorizeUrl: zod.z.string().url(),
688
696
  tokenUrl: zod.z.string().url(),
689
697
  userInfoUrl: zod.z.string().url(),
@@ -708,6 +716,7 @@ const ToggleOAuthServerRequestSchema = zod.z.object({
708
716
  enabled: zod.z.boolean()
709
717
  });
710
718
  const ToggleOAuthServerResponseSchema = OAuthServerSchema;
719
+ const ListOAuthServersPublicResponseSchema = zod.z.array(OAuthServerPublicSchema);
711
720
 
712
721
  const RechargeResponseSchema = zod.z.object({
713
722
  success: zod.z.literal(true),
@@ -801,6 +810,21 @@ const BillingStatsResponseSchema = zod.z.object({
801
810
  transactionCount: zod.z.number().int().nonnegative()
802
811
  });
803
812
 
813
+ const GitServerSchema = zod.z.object({
814
+ id: IdSchema,
815
+ // id = slug (e.g., "github", "gitlab")
816
+ type: zod.z.string(),
817
+ name: zod.z.string(),
818
+ baseUrl: zod.z.string().url(),
819
+ apiUrl: zod.z.string().url(),
820
+ oauthServerId: zod.z.string().nullable(),
821
+ enabled: zod.z.boolean(),
822
+ createdAt: zod.z.union([DateSchema, zod.z.date().transform((d) => d.toISOString())]),
823
+ updatedAt: zod.z.union([DateSchema, zod.z.date().transform((d) => d.toISOString())])
824
+ });
825
+ const ListGitServersResponseSchema = zod.z.array(GitServerSchema);
826
+ const GetGitServerResponseSchema = GitServerSchema;
827
+
804
828
  const EventBaseSchema = zod.z.object({
805
829
  eventId: zod.z.string()
806
830
  });
@@ -1811,6 +1835,7 @@ exports.FileVisibilitySchema = FileVisibilitySchema;
1811
1835
  exports.FrameworkNotSupportedError = FrameworkNotSupportedError;
1812
1836
  exports.GetAgentResponseSchema = GetAgentResponseSchema;
1813
1837
  exports.GetChatResponseSchema = GetChatResponseSchema;
1838
+ exports.GetGitServerResponseSchema = GetGitServerResponseSchema;
1814
1839
  exports.GetGitUrlQuerySchema = GetGitUrlQuerySchema;
1815
1840
  exports.GetGitUrlResponseSchema = GetGitUrlResponseSchema;
1816
1841
  exports.GetInstallUrlResponseSchema = GetInstallUrlResponseSchema;
@@ -1820,6 +1845,7 @@ exports.GetUploadUrlsRequestSchema = GetUploadUrlsRequestSchema;
1820
1845
  exports.GetUploadUrlsResponseSchema = GetUploadUrlsResponseSchema;
1821
1846
  exports.GitHubIssueListItemSchema = GitHubIssueListItemSchema;
1822
1847
  exports.GitHubIssueSchema = GitHubIssueSchema;
1848
+ exports.GitServerSchema = GitServerSchema;
1823
1849
  exports.IdSchema = IdSchema;
1824
1850
  exports.ListAgentsResponseSchema = ListAgentsResponseSchema;
1825
1851
  exports.ListBranchesResponseSchema = ListBranchesResponseSchema;
@@ -1828,9 +1854,11 @@ exports.ListChatTasksResponseSchema = ListChatTasksResponseSchema;
1828
1854
  exports.ListChatsResponseSchema = ListChatsResponseSchema;
1829
1855
  exports.ListFilesQuerySchema = ListFilesQuerySchema;
1830
1856
  exports.ListFilesResponseSchema = ListFilesResponseSchema;
1857
+ exports.ListGitServersResponseSchema = ListGitServersResponseSchema;
1831
1858
  exports.ListIssuesQuerySchema = ListIssuesQuerySchema;
1832
1859
  exports.ListIssuesResponseSchema = ListIssuesResponseSchema;
1833
1860
  exports.ListMachinesResponseSchema = ListMachinesResponseSchema;
1861
+ exports.ListOAuthServersPublicResponseSchema = ListOAuthServersPublicResponseSchema;
1834
1862
  exports.ListOAuthServersQuerySchema = ListOAuthServersQuerySchema;
1835
1863
  exports.ListOAuthServersResponseSchema = ListOAuthServersResponseSchema;
1836
1864
  exports.ListPackagesQuerySchema = ListPackagesQuerySchema;
package/dist/index.d.cts CHANGED
@@ -277,11 +277,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
277
277
  avatarUrl: string;
278
278
  }>, "many">>;
279
279
  }, "strip", z.ZodTypeAny, {
280
- encryptedSecret: string;
281
280
  id: string;
282
281
  username: string;
283
282
  email: string | null;
284
283
  avatar: string | null;
284
+ encryptedSecret: string;
285
285
  secretSalt: string;
286
286
  createdAt: string;
287
287
  oauthAccounts?: {
@@ -291,11 +291,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
291
291
  avatarUrl: string;
292
292
  }[] | undefined;
293
293
  }, {
294
- encryptedSecret: string;
295
294
  id: string;
296
295
  username: string;
297
296
  email: string | null;
298
297
  avatar: string | null;
298
+ encryptedSecret: string;
299
299
  secretSalt: string;
300
300
  createdAt: string;
301
301
  oauthAccounts?: {
@@ -307,11 +307,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
307
307
  }>;
308
308
  }, "strip", z.ZodTypeAny, {
309
309
  user: {
310
- encryptedSecret: string;
311
310
  id: string;
312
311
  username: string;
313
312
  email: string | null;
314
313
  avatar: string | null;
314
+ encryptedSecret: string;
315
315
  secretSalt: string;
316
316
  createdAt: string;
317
317
  oauthAccounts?: {
@@ -323,11 +323,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
323
323
  };
324
324
  }, {
325
325
  user: {
326
- encryptedSecret: string;
327
326
  id: string;
328
327
  username: string;
329
328
  email: string | null;
330
329
  avatar: string | null;
330
+ encryptedSecret: string;
331
331
  secretSalt: string;
332
332
  createdAt: string;
333
333
  oauthAccounts?: {
@@ -599,13 +599,13 @@ declare const MachineAuthAuthorizedResponseSchema: z.ZodObject<{
599
599
  token: z.ZodString;
600
600
  content: z.ZodString;
601
601
  }, "strip", z.ZodTypeAny, {
602
- token: string;
603
602
  id: string;
603
+ token: string;
604
604
  state: "authorized";
605
605
  content: string;
606
606
  }, {
607
- token: string;
608
607
  id: string;
608
+ token: string;
609
609
  state: "authorized";
610
610
  content: string;
611
611
  }>;
@@ -2311,9 +2311,9 @@ declare const AgentSchema: z.ZodObject<{
2311
2311
  enable: z.ZodBoolean;
2312
2312
  }, "strip", z.ZodTypeAny, {
2313
2313
  type: "claude" | "codex";
2314
- signature: string | null;
2315
2314
  id: string;
2316
2315
  avatar: string | null;
2316
+ signature: string | null;
2317
2317
  userId: string;
2318
2318
  name: string;
2319
2319
  description: string | null;
@@ -2326,9 +2326,9 @@ declare const AgentSchema: z.ZodObject<{
2326
2326
  enable: boolean;
2327
2327
  }, {
2328
2328
  type: "claude" | "codex";
2329
- signature: string | null;
2330
2329
  id: string;
2331
2330
  avatar: string | null;
2331
+ signature: string | null;
2332
2332
  userId: string;
2333
2333
  name: string;
2334
2334
  description: string | null;
@@ -2362,9 +2362,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2362
2362
  enable: z.ZodBoolean;
2363
2363
  }, "strip", z.ZodTypeAny, {
2364
2364
  type: "claude" | "codex";
2365
- signature: string | null;
2366
2365
  id: string;
2367
2366
  avatar: string | null;
2367
+ signature: string | null;
2368
2368
  userId: string;
2369
2369
  name: string;
2370
2370
  description: string | null;
@@ -2377,9 +2377,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2377
2377
  enable: boolean;
2378
2378
  }, {
2379
2379
  type: "claude" | "codex";
2380
- signature: string | null;
2381
2380
  id: string;
2382
2381
  avatar: string | null;
2382
+ signature: string | null;
2383
2383
  userId: string;
2384
2384
  name: string;
2385
2385
  description: string | null;
@@ -2394,9 +2394,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2394
2394
  }, "strip", z.ZodTypeAny, {
2395
2395
  agents: {
2396
2396
  type: "claude" | "codex";
2397
- signature: string | null;
2398
2397
  id: string;
2399
2398
  avatar: string | null;
2399
+ signature: string | null;
2400
2400
  userId: string;
2401
2401
  name: string;
2402
2402
  description: string | null;
@@ -2411,9 +2411,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2411
2411
  }, {
2412
2412
  agents: {
2413
2413
  type: "claude" | "codex";
2414
- signature: string | null;
2415
2414
  id: string;
2416
2415
  avatar: string | null;
2416
+ signature: string | null;
2417
2417
  userId: string;
2418
2418
  name: string;
2419
2419
  description: string | null;
@@ -2447,9 +2447,9 @@ declare const GetAgentResponseSchema: z.ZodObject<{
2447
2447
  enable: z.ZodBoolean;
2448
2448
  }, "strip", z.ZodTypeAny, {
2449
2449
  type: "claude" | "codex";
2450
- signature: string | null;
2451
2450
  id: string;
2452
2451
  avatar: string | null;
2452
+ signature: string | null;
2453
2453
  userId: string;
2454
2454
  name: string;
2455
2455
  description: string | null;
@@ -2462,9 +2462,9 @@ declare const GetAgentResponseSchema: z.ZodObject<{
2462
2462
  enable: boolean;
2463
2463
  }, {
2464
2464
  type: "claude" | "codex";
2465
- signature: string | null;
2466
2465
  id: string;
2467
2466
  avatar: string | null;
2467
+ signature: string | null;
2468
2468
  userId: string;
2469
2469
  name: string;
2470
2470
  description: string | null;
@@ -2496,15 +2496,15 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
2496
2496
  guildMsg: string;
2497
2497
  placeholderMsg: string;
2498
2498
  supportLocal: boolean;
2499
- signature?: string | undefined;
2500
2499
  avatar?: string | undefined;
2500
+ signature?: string | undefined;
2501
2501
  description?: string | undefined;
2502
2502
  gitRepoId?: string | undefined;
2503
2503
  }, {
2504
2504
  type: "claude" | "codex";
2505
2505
  name: string;
2506
- signature?: string | undefined;
2507
2506
  avatar?: string | undefined;
2507
+ signature?: string | undefined;
2508
2508
  description?: string | undefined;
2509
2509
  guildMsg?: string | undefined;
2510
2510
  placeholderMsg?: string | undefined;
@@ -2532,9 +2532,9 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
2532
2532
  enable: z.ZodBoolean;
2533
2533
  }, "strip", z.ZodTypeAny, {
2534
2534
  type: "claude" | "codex";
2535
- signature: string | null;
2536
2535
  id: string;
2537
2536
  avatar: string | null;
2537
+ signature: string | null;
2538
2538
  userId: string;
2539
2539
  name: string;
2540
2540
  description: string | null;
@@ -2547,9 +2547,9 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
2547
2547
  enable: boolean;
2548
2548
  }, {
2549
2549
  type: "claude" | "codex";
2550
- signature: string | null;
2551
2550
  id: string;
2552
2551
  avatar: string | null;
2552
+ signature: string | null;
2553
2553
  userId: string;
2554
2554
  name: string;
2555
2555
  description: string | null;
@@ -2577,8 +2577,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
2577
2577
  supportLocal: z.ZodOptional<z.ZodBoolean>;
2578
2578
  }, "strip", z.ZodTypeAny, {
2579
2579
  type?: "claude" | "codex" | undefined;
2580
- signature?: string | null | undefined;
2581
2580
  avatar?: string | null | undefined;
2581
+ signature?: string | null | undefined;
2582
2582
  name?: string | undefined;
2583
2583
  description?: string | null | undefined;
2584
2584
  guildMsg?: string | undefined;
@@ -2587,8 +2587,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
2587
2587
  supportLocal?: boolean | undefined;
2588
2588
  }, {
2589
2589
  type?: "claude" | "codex" | undefined;
2590
- signature?: string | null | undefined;
2591
2590
  avatar?: string | null | undefined;
2591
+ signature?: string | null | undefined;
2592
2592
  name?: string | undefined;
2593
2593
  description?: string | null | undefined;
2594
2594
  guildMsg?: string | undefined;
@@ -2617,9 +2617,9 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
2617
2617
  enable: z.ZodBoolean;
2618
2618
  }, "strip", z.ZodTypeAny, {
2619
2619
  type: "claude" | "codex";
2620
- signature: string | null;
2621
2620
  id: string;
2622
2621
  avatar: string | null;
2622
+ signature: string | null;
2623
2623
  userId: string;
2624
2624
  name: string;
2625
2625
  description: string | null;
@@ -2632,9 +2632,9 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
2632
2632
  enable: boolean;
2633
2633
  }, {
2634
2634
  type: "claude" | "codex";
2635
- signature: string | null;
2636
2635
  id: string;
2637
2636
  avatar: string | null;
2637
+ signature: string | null;
2638
2638
  userId: string;
2639
2639
  name: string;
2640
2640
  description: string | null;
@@ -3277,10 +3277,10 @@ declare const RepositorySchema: z.ZodObject<{
3277
3277
  name: string;
3278
3278
  description: string | null;
3279
3279
  owner: string;
3280
+ url: string;
3280
3281
  fullName: string;
3281
3282
  defaultBranch: string;
3282
3283
  isPrivate: boolean;
3283
- url: string;
3284
3284
  }, {
3285
3285
  id: string;
3286
3286
  createdAt: string;
@@ -3288,10 +3288,10 @@ declare const RepositorySchema: z.ZodObject<{
3288
3288
  name: string;
3289
3289
  description: string | null;
3290
3290
  owner: string;
3291
+ url: string;
3291
3292
  fullName: string;
3292
3293
  defaultBranch: string;
3293
3294
  isPrivate: boolean;
3294
- url: string;
3295
3295
  }>;
3296
3296
  type Repository = z.infer<typeof RepositorySchema>;
3297
3297
  /**
@@ -3316,10 +3316,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3316
3316
  name: string;
3317
3317
  description: string | null;
3318
3318
  owner: string;
3319
+ url: string;
3319
3320
  fullName: string;
3320
3321
  defaultBranch: string;
3321
3322
  isPrivate: boolean;
3322
- url: string;
3323
3323
  }, {
3324
3324
  id: string;
3325
3325
  createdAt: string;
@@ -3327,10 +3327,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3327
3327
  name: string;
3328
3328
  description: string | null;
3329
3329
  owner: string;
3330
+ url: string;
3330
3331
  fullName: string;
3331
3332
  defaultBranch: string;
3332
3333
  isPrivate: boolean;
3333
- url: string;
3334
3334
  }>, "many">;
3335
3335
  }, "strip", z.ZodTypeAny, {
3336
3336
  repositories: {
@@ -3340,10 +3340,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3340
3340
  name: string;
3341
3341
  description: string | null;
3342
3342
  owner: string;
3343
+ url: string;
3343
3344
  fullName: string;
3344
3345
  defaultBranch: string;
3345
3346
  isPrivate: boolean;
3346
- url: string;
3347
3347
  }[];
3348
3348
  }, {
3349
3349
  repositories: {
@@ -3353,10 +3353,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3353
3353
  name: string;
3354
3354
  description: string | null;
3355
3355
  owner: string;
3356
+ url: string;
3356
3357
  fullName: string;
3357
3358
  defaultBranch: string;
3358
3359
  isPrivate: boolean;
3359
- url: string;
3360
3360
  }[];
3361
3361
  }>;
3362
3362
  type ListRepositoriesResponse = z.infer<typeof ListRepositoriesResponseSchema>;
@@ -3382,10 +3382,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3382
3382
  name: string;
3383
3383
  description: string | null;
3384
3384
  owner: string;
3385
+ url: string;
3385
3386
  fullName: string;
3386
3387
  defaultBranch: string;
3387
3388
  isPrivate: boolean;
3388
- url: string;
3389
3389
  }, {
3390
3390
  id: string;
3391
3391
  createdAt: string;
@@ -3393,10 +3393,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3393
3393
  name: string;
3394
3394
  description: string | null;
3395
3395
  owner: string;
3396
+ url: string;
3396
3397
  fullName: string;
3397
3398
  defaultBranch: string;
3398
3399
  isPrivate: boolean;
3399
- url: string;
3400
3400
  }>;
3401
3401
  }, "strip", z.ZodTypeAny, {
3402
3402
  repository: {
@@ -3406,10 +3406,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3406
3406
  name: string;
3407
3407
  description: string | null;
3408
3408
  owner: string;
3409
+ url: string;
3409
3410
  fullName: string;
3410
3411
  defaultBranch: string;
3411
3412
  isPrivate: boolean;
3412
- url: string;
3413
3413
  };
3414
3414
  }, {
3415
3415
  repository: {
@@ -3419,10 +3419,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3419
3419
  name: string;
3420
3420
  description: string | null;
3421
3421
  owner: string;
3422
+ url: string;
3422
3423
  fullName: string;
3423
3424
  defaultBranch: string;
3424
3425
  isPrivate: boolean;
3425
- url: string;
3426
3426
  };
3427
3427
  }>;
3428
3428
  type GetRepositoryResponse = z.infer<typeof GetRepositoryResponseSchema>;
@@ -3720,6 +3720,7 @@ declare const OAuthServerSchema: z.ZodObject<{
3720
3720
  id: z.ZodString;
3721
3721
  provider: z.ZodString;
3722
3722
  displayName: z.ZodString;
3723
+ avatar: z.ZodOptional<z.ZodString>;
3723
3724
  authorizeUrl: z.ZodString;
3724
3725
  tokenUrl: z.ZodString;
3725
3726
  userInfoUrl: z.ZodString;
@@ -3733,8 +3734,8 @@ declare const OAuthServerSchema: z.ZodObject<{
3733
3734
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3734
3735
  }, "strip", z.ZodTypeAny, {
3735
3736
  id: string;
3736
- createdAt: string;
3737
3737
  provider: string;
3738
+ createdAt: string;
3738
3739
  updatedAt: string;
3739
3740
  displayName: string;
3740
3741
  authorizeUrl: string;
@@ -3746,10 +3747,11 @@ declare const OAuthServerSchema: z.ZodObject<{
3746
3747
  scopes: string[];
3747
3748
  userInfoMapping: Record<string, string>;
3748
3749
  enabled: boolean;
3750
+ avatar?: string | undefined;
3749
3751
  }, {
3750
3752
  id: string;
3751
- createdAt: string | Date;
3752
3753
  provider: string;
3754
+ createdAt: string | Date;
3753
3755
  updatedAt: string | Date;
3754
3756
  displayName: string;
3755
3757
  authorizeUrl: string;
@@ -3760,55 +3762,38 @@ declare const OAuthServerSchema: z.ZodObject<{
3760
3762
  callbackUrl: string;
3761
3763
  userInfoMapping: Record<string, string>;
3762
3764
  enabled: boolean;
3765
+ avatar?: string | undefined;
3763
3766
  scopes?: string[] | undefined;
3764
3767
  }>;
3765
3768
  type OAuthServer = z.infer<typeof OAuthServerSchema>;
3766
3769
  /**
3767
3770
  * OAuth Server public schema (without sensitive data)
3771
+ * Only includes basic display information, no technical or sensitive fields
3768
3772
  */
3769
- declare const OAuthServerPublicSchema: z.ZodObject<Omit<{
3773
+ declare const OAuthServerPublicSchema: z.ZodObject<{
3770
3774
  id: z.ZodString;
3771
3775
  provider: z.ZodString;
3772
3776
  displayName: z.ZodString;
3773
- authorizeUrl: z.ZodString;
3774
- tokenUrl: z.ZodString;
3775
- userInfoUrl: z.ZodString;
3776
- clientId: z.ZodString;
3777
- clientSecret: z.ZodString;
3778
- callbackUrl: z.ZodString;
3779
- scopes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3780
- userInfoMapping: z.ZodRecord<z.ZodString, z.ZodString>;
3777
+ avatar: z.ZodOptional<z.ZodString>;
3781
3778
  enabled: z.ZodBoolean;
3782
3779
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3783
3780
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3784
- }, "clientSecret">, "strip", z.ZodTypeAny, {
3781
+ }, "strip", z.ZodTypeAny, {
3785
3782
  id: string;
3786
- createdAt: string;
3787
3783
  provider: string;
3784
+ createdAt: string;
3788
3785
  updatedAt: string;
3789
3786
  displayName: string;
3790
- authorizeUrl: string;
3791
- tokenUrl: string;
3792
- userInfoUrl: string;
3793
- clientId: string;
3794
- callbackUrl: string;
3795
- scopes: string[];
3796
- userInfoMapping: Record<string, string>;
3797
3787
  enabled: boolean;
3788
+ avatar?: string | undefined;
3798
3789
  }, {
3799
3790
  id: string;
3800
- createdAt: string | Date;
3801
3791
  provider: string;
3792
+ createdAt: string | Date;
3802
3793
  updatedAt: string | Date;
3803
3794
  displayName: string;
3804
- authorizeUrl: string;
3805
- tokenUrl: string;
3806
- userInfoUrl: string;
3807
- clientId: string;
3808
- callbackUrl: string;
3809
- userInfoMapping: Record<string, string>;
3810
3795
  enabled: boolean;
3811
- scopes?: string[] | undefined;
3796
+ avatar?: string | undefined;
3812
3797
  }>;
3813
3798
  type OAuthServerPublic = z.infer<typeof OAuthServerPublicSchema>;
3814
3799
  /**
@@ -3817,6 +3802,7 @@ type OAuthServerPublic = z.infer<typeof OAuthServerPublicSchema>;
3817
3802
  declare const CreateOAuthServerRequestSchema: z.ZodObject<{
3818
3803
  provider: z.ZodString;
3819
3804
  displayName: z.ZodString;
3805
+ avatar: z.ZodOptional<z.ZodString>;
3820
3806
  authorizeUrl: z.ZodString;
3821
3807
  tokenUrl: z.ZodString;
3822
3808
  userInfoUrl: z.ZodString;
@@ -3835,6 +3821,7 @@ declare const CreateOAuthServerRequestSchema: z.ZodObject<{
3835
3821
  clientSecret: string;
3836
3822
  scopes: string[];
3837
3823
  enabled: boolean;
3824
+ avatar?: string | undefined;
3838
3825
  userInfoMapping?: Record<string, string> | undefined;
3839
3826
  }, {
3840
3827
  provider: string;
@@ -3844,6 +3831,7 @@ declare const CreateOAuthServerRequestSchema: z.ZodObject<{
3844
3831
  userInfoUrl: string;
3845
3832
  clientId: string;
3846
3833
  clientSecret: string;
3834
+ avatar?: string | undefined;
3847
3835
  scopes?: string[] | undefined;
3848
3836
  userInfoMapping?: Record<string, string> | undefined;
3849
3837
  enabled?: boolean | undefined;
@@ -3853,6 +3841,7 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
3853
3841
  id: z.ZodString;
3854
3842
  provider: z.ZodString;
3855
3843
  displayName: z.ZodString;
3844
+ avatar: z.ZodOptional<z.ZodString>;
3856
3845
  authorizeUrl: z.ZodString;
3857
3846
  tokenUrl: z.ZodString;
3858
3847
  userInfoUrl: z.ZodString;
@@ -3866,8 +3855,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
3866
3855
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3867
3856
  }, "strip", z.ZodTypeAny, {
3868
3857
  id: string;
3869
- createdAt: string;
3870
3858
  provider: string;
3859
+ createdAt: string;
3871
3860
  updatedAt: string;
3872
3861
  displayName: string;
3873
3862
  authorizeUrl: string;
@@ -3879,10 +3868,11 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
3879
3868
  scopes: string[];
3880
3869
  userInfoMapping: Record<string, string>;
3881
3870
  enabled: boolean;
3871
+ avatar?: string | undefined;
3882
3872
  }, {
3883
3873
  id: string;
3884
- createdAt: string | Date;
3885
3874
  provider: string;
3875
+ createdAt: string | Date;
3886
3876
  updatedAt: string | Date;
3887
3877
  displayName: string;
3888
3878
  authorizeUrl: string;
@@ -3893,6 +3883,7 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
3893
3883
  callbackUrl: string;
3894
3884
  userInfoMapping: Record<string, string>;
3895
3885
  enabled: boolean;
3886
+ avatar?: string | undefined;
3896
3887
  scopes?: string[] | undefined;
3897
3888
  }>;
3898
3889
  type CreateOAuthServerResponse = z.infer<typeof CreateOAuthServerResponseSchema>;
@@ -3911,6 +3902,7 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
3911
3902
  id: z.ZodString;
3912
3903
  provider: z.ZodString;
3913
3904
  displayName: z.ZodString;
3905
+ avatar: z.ZodOptional<z.ZodString>;
3914
3906
  authorizeUrl: z.ZodString;
3915
3907
  tokenUrl: z.ZodString;
3916
3908
  userInfoUrl: z.ZodString;
@@ -3924,8 +3916,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
3924
3916
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3925
3917
  }, "strip", z.ZodTypeAny, {
3926
3918
  id: string;
3927
- createdAt: string;
3928
3919
  provider: string;
3920
+ createdAt: string;
3929
3921
  updatedAt: string;
3930
3922
  displayName: string;
3931
3923
  authorizeUrl: string;
@@ -3937,10 +3929,11 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
3937
3929
  scopes: string[];
3938
3930
  userInfoMapping: Record<string, string>;
3939
3931
  enabled: boolean;
3932
+ avatar?: string | undefined;
3940
3933
  }, {
3941
3934
  id: string;
3942
- createdAt: string | Date;
3943
3935
  provider: string;
3936
+ createdAt: string | Date;
3944
3937
  updatedAt: string | Date;
3945
3938
  displayName: string;
3946
3939
  authorizeUrl: string;
@@ -3951,6 +3944,7 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
3951
3944
  callbackUrl: string;
3952
3945
  userInfoMapping: Record<string, string>;
3953
3946
  enabled: boolean;
3947
+ avatar?: string | undefined;
3954
3948
  scopes?: string[] | undefined;
3955
3949
  }>, "many">;
3956
3950
  type ListOAuthServersResponse = z.infer<typeof ListOAuthServersResponseSchema>;
@@ -3961,6 +3955,7 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
3961
3955
  id: z.ZodString;
3962
3956
  provider: z.ZodString;
3963
3957
  displayName: z.ZodString;
3958
+ avatar: z.ZodOptional<z.ZodString>;
3964
3959
  authorizeUrl: z.ZodString;
3965
3960
  tokenUrl: z.ZodString;
3966
3961
  userInfoUrl: z.ZodString;
@@ -3974,8 +3969,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
3974
3969
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3975
3970
  }, "strip", z.ZodTypeAny, {
3976
3971
  id: string;
3977
- createdAt: string;
3978
3972
  provider: string;
3973
+ createdAt: string;
3979
3974
  updatedAt: string;
3980
3975
  displayName: string;
3981
3976
  authorizeUrl: string;
@@ -3987,10 +3982,11 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
3987
3982
  scopes: string[];
3988
3983
  userInfoMapping: Record<string, string>;
3989
3984
  enabled: boolean;
3985
+ avatar?: string | undefined;
3990
3986
  }, {
3991
3987
  id: string;
3992
- createdAt: string | Date;
3993
3988
  provider: string;
3989
+ createdAt: string | Date;
3994
3990
  updatedAt: string | Date;
3995
3991
  displayName: string;
3996
3992
  authorizeUrl: string;
@@ -4001,6 +3997,7 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
4001
3997
  callbackUrl: string;
4002
3998
  userInfoMapping: Record<string, string>;
4003
3999
  enabled: boolean;
4000
+ avatar?: string | undefined;
4004
4001
  scopes?: string[] | undefined;
4005
4002
  }>;
4006
4003
  type GetOAuthServerResponse = z.infer<typeof GetOAuthServerResponseSchema>;
@@ -4010,6 +4007,7 @@ type GetOAuthServerResponse = z.infer<typeof GetOAuthServerResponseSchema>;
4010
4007
  declare const UpdateOAuthServerRequestSchema: z.ZodObject<{
4011
4008
  provider: z.ZodOptional<z.ZodString>;
4012
4009
  displayName: z.ZodOptional<z.ZodString>;
4010
+ avatar: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4013
4011
  authorizeUrl: z.ZodOptional<z.ZodString>;
4014
4012
  tokenUrl: z.ZodOptional<z.ZodString>;
4015
4013
  userInfoUrl: z.ZodOptional<z.ZodString>;
@@ -4019,6 +4017,7 @@ declare const UpdateOAuthServerRequestSchema: z.ZodObject<{
4019
4017
  userInfoMapping: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
4020
4018
  enabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4021
4019
  }, "strip", z.ZodTypeAny, {
4020
+ avatar?: string | undefined;
4022
4021
  provider?: string | undefined;
4023
4022
  displayName?: string | undefined;
4024
4023
  authorizeUrl?: string | undefined;
@@ -4030,6 +4029,7 @@ declare const UpdateOAuthServerRequestSchema: z.ZodObject<{
4030
4029
  userInfoMapping?: Record<string, string> | undefined;
4031
4030
  enabled?: boolean | undefined;
4032
4031
  }, {
4032
+ avatar?: string | undefined;
4033
4033
  provider?: string | undefined;
4034
4034
  displayName?: string | undefined;
4035
4035
  authorizeUrl?: string | undefined;
@@ -4046,6 +4046,7 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
4046
4046
  id: z.ZodString;
4047
4047
  provider: z.ZodString;
4048
4048
  displayName: z.ZodString;
4049
+ avatar: z.ZodOptional<z.ZodString>;
4049
4050
  authorizeUrl: z.ZodString;
4050
4051
  tokenUrl: z.ZodString;
4051
4052
  userInfoUrl: z.ZodString;
@@ -4059,8 +4060,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
4059
4060
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4060
4061
  }, "strip", z.ZodTypeAny, {
4061
4062
  id: string;
4062
- createdAt: string;
4063
4063
  provider: string;
4064
+ createdAt: string;
4064
4065
  updatedAt: string;
4065
4066
  displayName: string;
4066
4067
  authorizeUrl: string;
@@ -4072,10 +4073,11 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
4072
4073
  scopes: string[];
4073
4074
  userInfoMapping: Record<string, string>;
4074
4075
  enabled: boolean;
4076
+ avatar?: string | undefined;
4075
4077
  }, {
4076
4078
  id: string;
4077
- createdAt: string | Date;
4078
4079
  provider: string;
4080
+ createdAt: string | Date;
4079
4081
  updatedAt: string | Date;
4080
4082
  displayName: string;
4081
4083
  authorizeUrl: string;
@@ -4086,6 +4088,7 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
4086
4088
  callbackUrl: string;
4087
4089
  userInfoMapping: Record<string, string>;
4088
4090
  enabled: boolean;
4091
+ avatar?: string | undefined;
4089
4092
  scopes?: string[] | undefined;
4090
4093
  }>;
4091
4094
  type UpdateOAuthServerResponse = z.infer<typeof UpdateOAuthServerResponseSchema>;
@@ -4115,6 +4118,7 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
4115
4118
  id: z.ZodString;
4116
4119
  provider: z.ZodString;
4117
4120
  displayName: z.ZodString;
4121
+ avatar: z.ZodOptional<z.ZodString>;
4118
4122
  authorizeUrl: z.ZodString;
4119
4123
  tokenUrl: z.ZodString;
4120
4124
  userInfoUrl: z.ZodString;
@@ -4128,8 +4132,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
4128
4132
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4129
4133
  }, "strip", z.ZodTypeAny, {
4130
4134
  id: string;
4131
- createdAt: string;
4132
4135
  provider: string;
4136
+ createdAt: string;
4133
4137
  updatedAt: string;
4134
4138
  displayName: string;
4135
4139
  authorizeUrl: string;
@@ -4141,10 +4145,11 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
4141
4145
  scopes: string[];
4142
4146
  userInfoMapping: Record<string, string>;
4143
4147
  enabled: boolean;
4148
+ avatar?: string | undefined;
4144
4149
  }, {
4145
4150
  id: string;
4146
- createdAt: string | Date;
4147
4151
  provider: string;
4152
+ createdAt: string | Date;
4148
4153
  updatedAt: string | Date;
4149
4154
  displayName: string;
4150
4155
  authorizeUrl: string;
@@ -4155,9 +4160,39 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
4155
4160
  callbackUrl: string;
4156
4161
  userInfoMapping: Record<string, string>;
4157
4162
  enabled: boolean;
4163
+ avatar?: string | undefined;
4158
4164
  scopes?: string[] | undefined;
4159
4165
  }>;
4160
4166
  type ToggleOAuthServerResponse = z.infer<typeof ToggleOAuthServerResponseSchema>;
4167
+ /**
4168
+ * GET /v1/oauth-servers - List all OAuth servers (public view)
4169
+ */
4170
+ declare const ListOAuthServersPublicResponseSchema: z.ZodArray<z.ZodObject<{
4171
+ id: z.ZodString;
4172
+ provider: z.ZodString;
4173
+ displayName: z.ZodString;
4174
+ avatar: z.ZodOptional<z.ZodString>;
4175
+ enabled: z.ZodBoolean;
4176
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4177
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4178
+ }, "strip", z.ZodTypeAny, {
4179
+ id: string;
4180
+ provider: string;
4181
+ createdAt: string;
4182
+ updatedAt: string;
4183
+ displayName: string;
4184
+ enabled: boolean;
4185
+ avatar?: string | undefined;
4186
+ }, {
4187
+ id: string;
4188
+ provider: string;
4189
+ createdAt: string | Date;
4190
+ updatedAt: string | Date;
4191
+ displayName: string;
4192
+ enabled: boolean;
4193
+ avatar?: string | undefined;
4194
+ }>, "many">;
4195
+ type ListOAuthServersPublicResponse = z.infer<typeof ListOAuthServersPublicResponseSchema>;
4161
4196
 
4162
4197
  /**
4163
4198
  * Billing HTTP request/response schemas
@@ -4786,6 +4821,117 @@ declare const BillingStatsResponseSchema: z.ZodObject<{
4786
4821
  }>;
4787
4822
  type BillingStatsResponse = z.infer<typeof BillingStatsResponseSchema>;
4788
4823
 
4824
+ /**
4825
+ * Git Server API schemas
4826
+ * For user-facing Git server endpoints
4827
+ */
4828
+
4829
+ /**
4830
+ * Git Server schema (user view)
4831
+ */
4832
+ declare const GitServerSchema: z.ZodObject<{
4833
+ id: z.ZodString;
4834
+ type: z.ZodString;
4835
+ name: z.ZodString;
4836
+ baseUrl: z.ZodString;
4837
+ apiUrl: z.ZodString;
4838
+ oauthServerId: z.ZodNullable<z.ZodString>;
4839
+ enabled: z.ZodBoolean;
4840
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4841
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4842
+ }, "strip", z.ZodTypeAny, {
4843
+ type: string;
4844
+ id: string;
4845
+ createdAt: string;
4846
+ updatedAt: string;
4847
+ name: string;
4848
+ enabled: boolean;
4849
+ baseUrl: string;
4850
+ apiUrl: string;
4851
+ oauthServerId: string | null;
4852
+ }, {
4853
+ type: string;
4854
+ id: string;
4855
+ createdAt: string | Date;
4856
+ updatedAt: string | Date;
4857
+ name: string;
4858
+ enabled: boolean;
4859
+ baseUrl: string;
4860
+ apiUrl: string;
4861
+ oauthServerId: string | null;
4862
+ }>;
4863
+ type GitServer = z.infer<typeof GitServerSchema>;
4864
+ /**
4865
+ * GET /v1/git-servers - List all Git servers
4866
+ */
4867
+ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
4868
+ id: z.ZodString;
4869
+ type: z.ZodString;
4870
+ name: z.ZodString;
4871
+ baseUrl: z.ZodString;
4872
+ apiUrl: z.ZodString;
4873
+ oauthServerId: z.ZodNullable<z.ZodString>;
4874
+ enabled: z.ZodBoolean;
4875
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4876
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4877
+ }, "strip", z.ZodTypeAny, {
4878
+ type: string;
4879
+ id: string;
4880
+ createdAt: string;
4881
+ updatedAt: string;
4882
+ name: string;
4883
+ enabled: boolean;
4884
+ baseUrl: string;
4885
+ apiUrl: string;
4886
+ oauthServerId: string | null;
4887
+ }, {
4888
+ type: string;
4889
+ id: string;
4890
+ createdAt: string | Date;
4891
+ updatedAt: string | Date;
4892
+ name: string;
4893
+ enabled: boolean;
4894
+ baseUrl: string;
4895
+ apiUrl: string;
4896
+ oauthServerId: string | null;
4897
+ }>, "many">;
4898
+ type ListGitServersResponse = z.infer<typeof ListGitServersResponseSchema>;
4899
+ /**
4900
+ * GET /v1/git-servers/:gitServerId - Get Git server by ID
4901
+ */
4902
+ declare const GetGitServerResponseSchema: z.ZodObject<{
4903
+ id: z.ZodString;
4904
+ type: z.ZodString;
4905
+ name: z.ZodString;
4906
+ baseUrl: z.ZodString;
4907
+ apiUrl: z.ZodString;
4908
+ oauthServerId: z.ZodNullable<z.ZodString>;
4909
+ enabled: z.ZodBoolean;
4910
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4911
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4912
+ }, "strip", z.ZodTypeAny, {
4913
+ type: string;
4914
+ id: string;
4915
+ createdAt: string;
4916
+ updatedAt: string;
4917
+ name: string;
4918
+ enabled: boolean;
4919
+ baseUrl: string;
4920
+ apiUrl: string;
4921
+ oauthServerId: string | null;
4922
+ }, {
4923
+ type: string;
4924
+ id: string;
4925
+ createdAt: string | Date;
4926
+ updatedAt: string | Date;
4927
+ name: string;
4928
+ enabled: boolean;
4929
+ baseUrl: string;
4930
+ apiUrl: string;
4931
+ oauthServerId: string | null;
4932
+ }>;
4933
+ type GetGitServerResponse = z.infer<typeof GetGitServerResponseSchema>;
4934
+
4789
4935
  /**
4790
4936
  * Generate a unique event ID
4791
4937
  * Uses crypto.randomUUID() if available (Node.js), otherwise falls back to a custom implementation
@@ -5704,10 +5850,10 @@ declare const SystemMessageSchema: z.ZodObject<{
5704
5850
  name: string;
5705
5851
  description: string | null;
5706
5852
  owner: string;
5853
+ url: string;
5707
5854
  fullName: string;
5708
5855
  defaultBranch: string;
5709
5856
  isPrivate: boolean;
5710
- url: string;
5711
5857
  }, {
5712
5858
  id: string;
5713
5859
  createdAt: string;
@@ -5715,10 +5861,10 @@ declare const SystemMessageSchema: z.ZodObject<{
5715
5861
  name: string;
5716
5862
  description: string | null;
5717
5863
  owner: string;
5864
+ url: string;
5718
5865
  fullName: string;
5719
5866
  defaultBranch: string;
5720
5867
  isPrivate: boolean;
5721
- url: string;
5722
5868
  }>, z.ZodObject<{
5723
5869
  taskId: z.ZodString;
5724
5870
  pullRequestNumber: z.ZodNumber;
@@ -5765,10 +5911,10 @@ declare const SystemMessageSchema: z.ZodObject<{
5765
5911
  name: string;
5766
5912
  description: string | null;
5767
5913
  owner: string;
5914
+ url: string;
5768
5915
  fullName: string;
5769
5916
  defaultBranch: string;
5770
5917
  isPrivate: boolean;
5771
- url: string;
5772
5918
  } | {
5773
5919
  id: string;
5774
5920
  } | {
@@ -5806,10 +5952,10 @@ declare const SystemMessageSchema: z.ZodObject<{
5806
5952
  name: string;
5807
5953
  description: string | null;
5808
5954
  owner: string;
5955
+ url: string;
5809
5956
  fullName: string;
5810
5957
  defaultBranch: string;
5811
5958
  isPrivate: boolean;
5812
- url: string;
5813
5959
  } | {
5814
5960
  id: string;
5815
5961
  } | {
@@ -6317,5 +6463,5 @@ declare function encryptFileContent(fileContentBase64: string, dataKey: Uint8Arr
6317
6463
  */
6318
6464
  declare function decryptFileContent(encryptedContent: string, dataKey: Uint8Array): string | null;
6319
6465
 
6320
- export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MCPServerConfigSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, RequirePermissionResponseSchema, RequirePermissionSchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, SkillConfigSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskItemSchema, TaskMessageSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, encodeBase64, encodeBase64Url, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, loadAgentConfig, loadMcpServers, machineAuth, permissionResponseRequestSchema, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
6321
- export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentMetadata, AgentType, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GitHubIssue, GitHubIssueListItem, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LoadedMCPServer, LocalMachine, LogoutResponse, MCPServerConfig, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, RequirePermissionData, RequirePermissionResponseData, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, SkillConfig, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskItem, TaskMessageEventData, TaskState, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
6466
+ export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MCPServerConfigSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, RequirePermissionResponseSchema, RequirePermissionSchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, SkillConfigSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskItemSchema, TaskMessageSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, encodeBase64, encodeBase64Url, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, loadAgentConfig, loadMcpServers, machineAuth, permissionResponseRequestSchema, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
6467
+ export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentMetadata, AgentType, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LoadedMCPServer, LocalMachine, LogoutResponse, MCPServerConfig, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, RequirePermissionData, RequirePermissionResponseData, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, SkillConfig, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskItem, TaskMessageEventData, TaskState, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentrix/shared",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Shared types and schemas for Agentrix projects",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",