@agentrix/shared 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/dist/index.d.cts +81 -81
  2. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -16,12 +16,12 @@ declare const ApiErrorSchema: z.ZodObject<{
16
16
  message: z.ZodString;
17
17
  details: z.ZodOptional<z.ZodAny>;
18
18
  }, "strip", z.ZodTypeAny, {
19
- message: string;
20
19
  error: string;
20
+ message: string;
21
21
  details?: any;
22
22
  }, {
23
- message: string;
24
23
  error: string;
24
+ message: string;
25
25
  details?: any;
26
26
  }>;
27
27
  type ApiError = z.infer<typeof ApiErrorSchema>;
@@ -35,14 +35,14 @@ declare const PaginatedResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) =
35
35
  limit: z.ZodNumber;
36
36
  items: z.ZodArray<T, "many">;
37
37
  }, "strip", z.ZodTypeAny, {
38
- limit: number;
39
38
  total: number;
40
39
  page: number;
40
+ limit: number;
41
41
  items: T["_output"][];
42
42
  }, {
43
- limit: number;
44
43
  total: number;
45
44
  page: number;
45
+ limit: number;
46
46
  items: T["_input"][];
47
47
  }>;
48
48
  /**
@@ -277,11 +277,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
277
277
  avatarUrl: string;
278
278
  }>, "many">>;
279
279
  }, "strip", z.ZodTypeAny, {
280
- encryptedSecret: string | null;
281
280
  id: string;
282
281
  username: string;
283
282
  email: string | null;
284
283
  avatar: string | null;
284
+ encryptedSecret: string | null;
285
285
  secretSalt: string | null;
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 | null;
295
294
  id: string;
296
295
  username: string;
297
296
  email: string | null;
298
297
  avatar: string | null;
298
+ encryptedSecret: string | null;
299
299
  secretSalt: string | null;
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 | null;
311
310
  id: string;
312
311
  username: string;
313
312
  email: string | null;
314
313
  avatar: string | null;
314
+ encryptedSecret: string | null;
315
315
  secretSalt: string | null;
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 | null;
327
326
  id: string;
328
327
  username: string;
329
328
  email: string | null;
330
329
  avatar: string | null;
330
+ encryptedSecret: string | null;
331
331
  secretSalt: string | null;
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
  }>;
@@ -1037,15 +1037,15 @@ declare const ListTasksRequestSchema: z.ZodObject<{
1037
1037
  cursor: z.ZodOptional<z.ZodString>;
1038
1038
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1039
1039
  }, "strip", z.ZodTypeAny, {
1040
+ limit: number;
1040
1041
  chatId: string;
1041
1042
  archived: boolean;
1042
- limit: number;
1043
1043
  cursor?: string | undefined;
1044
1044
  }, {
1045
1045
  chatId: string;
1046
+ limit?: number | undefined;
1046
1047
  archived?: unknown;
1047
1048
  cursor?: string | undefined;
1048
- limit?: number | undefined;
1049
1049
  }>;
1050
1050
  type ListTasksRequest = z.infer<typeof ListTasksRequestSchema>;
1051
1051
  /**
@@ -2785,10 +2785,10 @@ declare const AgentSchema: z.ZodObject<{
2785
2785
  supportLocal: z.ZodBoolean;
2786
2786
  enable: z.ZodBoolean;
2787
2787
  }, "strip", z.ZodTypeAny, {
2788
- signature: string | null;
2789
2788
  type: "claude" | "codex";
2790
2789
  id: string;
2791
2790
  avatar: string | null;
2791
+ signature: string | null;
2792
2792
  userId: string;
2793
2793
  name: string;
2794
2794
  description: string | null;
@@ -2800,10 +2800,10 @@ declare const AgentSchema: z.ZodObject<{
2800
2800
  supportLocal: boolean;
2801
2801
  enable: boolean;
2802
2802
  }, {
2803
- signature: string | null;
2804
2803
  type: "claude" | "codex";
2805
2804
  id: string;
2806
2805
  avatar: string | null;
2806
+ signature: string | null;
2807
2807
  userId: string;
2808
2808
  name: string;
2809
2809
  description: string | null;
@@ -2836,10 +2836,10 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2836
2836
  supportLocal: z.ZodBoolean;
2837
2837
  enable: z.ZodBoolean;
2838
2838
  }, "strip", z.ZodTypeAny, {
2839
- signature: string | null;
2840
2839
  type: "claude" | "codex";
2841
2840
  id: string;
2842
2841
  avatar: string | null;
2842
+ signature: string | null;
2843
2843
  userId: string;
2844
2844
  name: string;
2845
2845
  description: string | null;
@@ -2851,10 +2851,10 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2851
2851
  supportLocal: boolean;
2852
2852
  enable: boolean;
2853
2853
  }, {
2854
- signature: string | null;
2855
2854
  type: "claude" | "codex";
2856
2855
  id: string;
2857
2856
  avatar: string | null;
2857
+ signature: string | null;
2858
2858
  userId: string;
2859
2859
  name: string;
2860
2860
  description: string | null;
@@ -2868,10 +2868,10 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2868
2868
  }>, "many">;
2869
2869
  }, "strip", z.ZodTypeAny, {
2870
2870
  agents: {
2871
- signature: string | null;
2872
2871
  type: "claude" | "codex";
2873
2872
  id: string;
2874
2873
  avatar: string | null;
2874
+ signature: string | null;
2875
2875
  userId: string;
2876
2876
  name: string;
2877
2877
  description: string | null;
@@ -2885,10 +2885,10 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2885
2885
  }[];
2886
2886
  }, {
2887
2887
  agents: {
2888
- signature: string | null;
2889
2888
  type: "claude" | "codex";
2890
2889
  id: string;
2891
2890
  avatar: string | null;
2891
+ signature: string | null;
2892
2892
  userId: string;
2893
2893
  name: string;
2894
2894
  description: string | null;
@@ -2921,10 +2921,10 @@ declare const GetAgentResponseSchema: z.ZodObject<{
2921
2921
  supportLocal: z.ZodBoolean;
2922
2922
  enable: z.ZodBoolean;
2923
2923
  }, "strip", z.ZodTypeAny, {
2924
- signature: string | null;
2925
2924
  type: "claude" | "codex";
2926
2925
  id: string;
2927
2926
  avatar: string | null;
2927
+ signature: string | null;
2928
2928
  userId: string;
2929
2929
  name: string;
2930
2930
  description: string | null;
@@ -2936,10 +2936,10 @@ declare const GetAgentResponseSchema: z.ZodObject<{
2936
2936
  supportLocal: boolean;
2937
2937
  enable: boolean;
2938
2938
  }, {
2939
- signature: string | null;
2940
2939
  type: "claude" | "codex";
2941
2940
  id: string;
2942
2941
  avatar: string | null;
2942
+ signature: string | null;
2943
2943
  userId: string;
2944
2944
  name: string;
2945
2945
  description: string | null;
@@ -2971,15 +2971,15 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
2971
2971
  guildMsg: string;
2972
2972
  placeholderMsg: string;
2973
2973
  supportLocal: boolean;
2974
- signature?: string | undefined;
2975
2974
  avatar?: string | undefined;
2975
+ signature?: string | undefined;
2976
2976
  description?: string | undefined;
2977
2977
  gitRepoId?: string | undefined;
2978
2978
  }, {
2979
2979
  type: "claude" | "codex";
2980
2980
  name: string;
2981
- signature?: string | undefined;
2982
2981
  avatar?: string | undefined;
2982
+ signature?: string | undefined;
2983
2983
  description?: string | undefined;
2984
2984
  guildMsg?: string | undefined;
2985
2985
  placeholderMsg?: string | undefined;
@@ -3006,10 +3006,10 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
3006
3006
  supportLocal: z.ZodBoolean;
3007
3007
  enable: z.ZodBoolean;
3008
3008
  }, "strip", z.ZodTypeAny, {
3009
- signature: string | null;
3010
3009
  type: "claude" | "codex";
3011
3010
  id: string;
3012
3011
  avatar: string | null;
3012
+ signature: string | null;
3013
3013
  userId: string;
3014
3014
  name: string;
3015
3015
  description: string | null;
@@ -3021,10 +3021,10 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
3021
3021
  supportLocal: boolean;
3022
3022
  enable: boolean;
3023
3023
  }, {
3024
- signature: string | null;
3025
3024
  type: "claude" | "codex";
3026
3025
  id: string;
3027
3026
  avatar: string | null;
3027
+ signature: string | null;
3028
3028
  userId: string;
3029
3029
  name: string;
3030
3030
  description: string | null;
@@ -3051,9 +3051,9 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
3051
3051
  gitRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3052
3052
  supportLocal: z.ZodOptional<z.ZodBoolean>;
3053
3053
  }, "strip", z.ZodTypeAny, {
3054
- signature?: string | null | undefined;
3055
3054
  type?: "claude" | "codex" | undefined;
3056
3055
  avatar?: string | null | undefined;
3056
+ signature?: string | null | undefined;
3057
3057
  name?: string | undefined;
3058
3058
  description?: string | null | undefined;
3059
3059
  guildMsg?: string | undefined;
@@ -3061,9 +3061,9 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
3061
3061
  gitRepoId?: string | null | undefined;
3062
3062
  supportLocal?: boolean | undefined;
3063
3063
  }, {
3064
- signature?: string | null | undefined;
3065
3064
  type?: "claude" | "codex" | undefined;
3066
3065
  avatar?: string | null | undefined;
3066
+ signature?: string | null | undefined;
3067
3067
  name?: string | undefined;
3068
3068
  description?: string | null | undefined;
3069
3069
  guildMsg?: string | undefined;
@@ -3091,10 +3091,10 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
3091
3091
  supportLocal: z.ZodBoolean;
3092
3092
  enable: z.ZodBoolean;
3093
3093
  }, "strip", z.ZodTypeAny, {
3094
- signature: string | null;
3095
3094
  type: "claude" | "codex";
3096
3095
  id: string;
3097
3096
  avatar: string | null;
3097
+ signature: string | null;
3098
3098
  userId: string;
3099
3099
  name: string;
3100
3100
  description: string | null;
@@ -3106,10 +3106,10 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
3106
3106
  supportLocal: boolean;
3107
3107
  enable: boolean;
3108
3108
  }, {
3109
- signature: string | null;
3110
3109
  type: "claude" | "codex";
3111
3110
  id: string;
3112
3111
  avatar: string | null;
3112
+ signature: string | null;
3113
3113
  userId: string;
3114
3114
  name: string;
3115
3115
  description: string | null;
@@ -3674,12 +3674,12 @@ declare const ListFilesQuerySchema: z.ZodObject<{
3674
3674
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3675
3675
  fileIds: z.ZodOptional<z.ZodString>;
3676
3676
  }, "strip", z.ZodTypeAny, {
3677
- limit: number;
3678
3677
  page: number;
3678
+ limit: number;
3679
3679
  fileIds?: string | undefined;
3680
3680
  }, {
3681
- limit?: number | undefined;
3682
3681
  page?: number | undefined;
3682
+ limit?: number | undefined;
3683
3683
  fileIds?: string | undefined;
3684
3684
  }>;
3685
3685
  type ListFilesQuery = z.infer<typeof ListFilesQuerySchema>;
@@ -3710,6 +3710,9 @@ declare const ListFilesResponseSchema: z.ZodObject<{
3710
3710
  contentType: string;
3711
3711
  }>, "many">;
3712
3712
  }, "strip", z.ZodTypeAny, {
3713
+ total: number;
3714
+ page: number;
3715
+ limit: number;
3713
3716
  files: {
3714
3717
  createdAt: string;
3715
3718
  name: string;
@@ -3717,10 +3720,10 @@ declare const ListFilesResponseSchema: z.ZodObject<{
3717
3720
  fileId: string;
3718
3721
  contentType: string;
3719
3722
  }[];
3720
- limit: number;
3723
+ }, {
3721
3724
  total: number;
3722
3725
  page: number;
3723
- }, {
3726
+ limit: number;
3724
3727
  files: {
3725
3728
  createdAt: string;
3726
3729
  name: string;
@@ -3728,9 +3731,6 @@ declare const ListFilesResponseSchema: z.ZodObject<{
3728
3731
  fileId: string;
3729
3732
  contentType: string;
3730
3733
  }[];
3731
- limit: number;
3732
- total: number;
3733
- page: number;
3734
3734
  }>;
3735
3735
  type ListFilesResponse = z.infer<typeof ListFilesResponseSchema>;
3736
3736
 
@@ -4230,8 +4230,8 @@ declare const OAuthServerSchema: z.ZodObject<{
4230
4230
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4231
4231
  }, "strip", z.ZodTypeAny, {
4232
4232
  id: string;
4233
- createdAt: string;
4234
4233
  provider: string;
4234
+ createdAt: string;
4235
4235
  updatedAt: string;
4236
4236
  displayName: string;
4237
4237
  authorizeUrl: string;
@@ -4246,8 +4246,8 @@ declare const OAuthServerSchema: z.ZodObject<{
4246
4246
  avatar?: string | undefined;
4247
4247
  }, {
4248
4248
  id: string;
4249
- createdAt: string | Date;
4250
4249
  provider: string;
4250
+ createdAt: string | Date;
4251
4251
  updatedAt: string | Date;
4252
4252
  displayName: string;
4253
4253
  authorizeUrl: string;
@@ -4276,16 +4276,16 @@ declare const OAuthServerPublicSchema: z.ZodObject<{
4276
4276
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4277
4277
  }, "strip", z.ZodTypeAny, {
4278
4278
  id: string;
4279
- createdAt: string;
4280
4279
  provider: string;
4280
+ createdAt: string;
4281
4281
  updatedAt: string;
4282
4282
  displayName: string;
4283
4283
  enabled: boolean;
4284
4284
  avatar?: string | undefined;
4285
4285
  }, {
4286
4286
  id: string;
4287
- createdAt: string | Date;
4288
4287
  provider: string;
4288
+ createdAt: string | Date;
4289
4289
  updatedAt: string | Date;
4290
4290
  displayName: string;
4291
4291
  enabled: boolean;
@@ -4351,8 +4351,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
4351
4351
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4352
4352
  }, "strip", z.ZodTypeAny, {
4353
4353
  id: string;
4354
- createdAt: string;
4355
4354
  provider: string;
4355
+ createdAt: string;
4356
4356
  updatedAt: string;
4357
4357
  displayName: string;
4358
4358
  authorizeUrl: string;
@@ -4367,8 +4367,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
4367
4367
  avatar?: string | undefined;
4368
4368
  }, {
4369
4369
  id: string;
4370
- createdAt: string | Date;
4371
4370
  provider: string;
4371
+ createdAt: string | Date;
4372
4372
  updatedAt: string | Date;
4373
4373
  displayName: string;
4374
4374
  authorizeUrl: string;
@@ -4412,8 +4412,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
4412
4412
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4413
4413
  }, "strip", z.ZodTypeAny, {
4414
4414
  id: string;
4415
- createdAt: string;
4416
4415
  provider: string;
4416
+ createdAt: string;
4417
4417
  updatedAt: string;
4418
4418
  displayName: string;
4419
4419
  authorizeUrl: string;
@@ -4428,8 +4428,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
4428
4428
  avatar?: string | undefined;
4429
4429
  }, {
4430
4430
  id: string;
4431
- createdAt: string | Date;
4432
4431
  provider: string;
4432
+ createdAt: string | Date;
4433
4433
  updatedAt: string | Date;
4434
4434
  displayName: string;
4435
4435
  authorizeUrl: string;
@@ -4465,8 +4465,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
4465
4465
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4466
4466
  }, "strip", z.ZodTypeAny, {
4467
4467
  id: string;
4468
- createdAt: string;
4469
4468
  provider: string;
4469
+ createdAt: string;
4470
4470
  updatedAt: string;
4471
4471
  displayName: string;
4472
4472
  authorizeUrl: string;
@@ -4481,8 +4481,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
4481
4481
  avatar?: string | undefined;
4482
4482
  }, {
4483
4483
  id: string;
4484
- createdAt: string | Date;
4485
4484
  provider: string;
4485
+ createdAt: string | Date;
4486
4486
  updatedAt: string | Date;
4487
4487
  displayName: string;
4488
4488
  authorizeUrl: string;
@@ -4556,8 +4556,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
4556
4556
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4557
4557
  }, "strip", z.ZodTypeAny, {
4558
4558
  id: string;
4559
- createdAt: string;
4560
4559
  provider: string;
4560
+ createdAt: string;
4561
4561
  updatedAt: string;
4562
4562
  displayName: string;
4563
4563
  authorizeUrl: string;
@@ -4572,8 +4572,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
4572
4572
  avatar?: string | undefined;
4573
4573
  }, {
4574
4574
  id: string;
4575
- createdAt: string | Date;
4576
4575
  provider: string;
4576
+ createdAt: string | Date;
4577
4577
  updatedAt: string | Date;
4578
4578
  displayName: string;
4579
4579
  authorizeUrl: string;
@@ -4628,8 +4628,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
4628
4628
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4629
4629
  }, "strip", z.ZodTypeAny, {
4630
4630
  id: string;
4631
- createdAt: string;
4632
4631
  provider: string;
4632
+ createdAt: string;
4633
4633
  updatedAt: string;
4634
4634
  displayName: string;
4635
4635
  authorizeUrl: string;
@@ -4644,8 +4644,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
4644
4644
  avatar?: string | undefined;
4645
4645
  }, {
4646
4646
  id: string;
4647
- createdAt: string | Date;
4648
4647
  provider: string;
4648
+ createdAt: string | Date;
4649
4649
  updatedAt: string | Date;
4650
4650
  displayName: string;
4651
4651
  authorizeUrl: string;
@@ -4673,16 +4673,16 @@ declare const ListOAuthServersPublicResponseSchema: z.ZodArray<z.ZodObject<{
4673
4673
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4674
4674
  }, "strip", z.ZodTypeAny, {
4675
4675
  id: string;
4676
- createdAt: string;
4677
4676
  provider: string;
4677
+ createdAt: string;
4678
4678
  updatedAt: string;
4679
4679
  displayName: string;
4680
4680
  enabled: boolean;
4681
4681
  avatar?: string | undefined;
4682
4682
  }, {
4683
4683
  id: string;
4684
- createdAt: string | Date;
4685
4684
  provider: string;
4685
+ createdAt: string | Date;
4686
4686
  updatedAt: string | Date;
4687
4687
  displayName: string;
4688
4688
  enabled: boolean;
@@ -4880,8 +4880,8 @@ declare const ChargeTransactionSchema: z.ZodObject<{
4880
4880
  paymentMethod: string | null;
4881
4881
  paymentId: string | null;
4882
4882
  transactionType: "charge";
4883
- packageName?: string | undefined;
4884
4883
  metadata?: any;
4884
+ packageName?: string | undefined;
4885
4885
  }, {
4886
4886
  type: "user_recharge" | "system_bonus" | "refund";
4887
4887
  id: string;
@@ -4894,8 +4894,8 @@ declare const ChargeTransactionSchema: z.ZodObject<{
4894
4894
  paymentMethod: string | null;
4895
4895
  paymentId: string | null;
4896
4896
  transactionType: "charge";
4897
- packageName?: string | undefined;
4898
4897
  metadata?: any;
4898
+ packageName?: string | undefined;
4899
4899
  }>;
4900
4900
  type ChargeTransaction = z.infer<typeof ChargeTransactionSchema>;
4901
4901
  /**
@@ -4925,8 +4925,8 @@ declare const ConsumeTransactionSchema: z.ZodObject<{
4925
4925
  balanceBefore: number;
4926
4926
  balanceAfter: number;
4927
4927
  transactionType: "consume";
4928
- packageName?: string | undefined;
4929
4928
  metadata?: any;
4929
+ packageName?: string | undefined;
4930
4930
  }, {
4931
4931
  id: string;
4932
4932
  createdAt: string;
@@ -4938,8 +4938,8 @@ declare const ConsumeTransactionSchema: z.ZodObject<{
4938
4938
  balanceBefore: number;
4939
4939
  balanceAfter: number;
4940
4940
  transactionType: "consume";
4941
- packageName?: string | undefined;
4942
4941
  metadata?: any;
4942
+ packageName?: string | undefined;
4943
4943
  }>;
4944
4944
  type ConsumeTransaction = z.infer<typeof ConsumeTransactionSchema>;
4945
4945
  /**
@@ -4971,8 +4971,8 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
4971
4971
  paymentMethod: string | null;
4972
4972
  paymentId: string | null;
4973
4973
  transactionType: "charge";
4974
- packageName?: string | undefined;
4975
4974
  metadata?: any;
4975
+ packageName?: string | undefined;
4976
4976
  }, {
4977
4977
  type: "user_recharge" | "system_bonus" | "refund";
4978
4978
  id: string;
@@ -4985,8 +4985,8 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
4985
4985
  paymentMethod: string | null;
4986
4986
  paymentId: string | null;
4987
4987
  transactionType: "charge";
4988
- packageName?: string | undefined;
4989
4988
  metadata?: any;
4989
+ packageName?: string | undefined;
4990
4990
  }>, z.ZodObject<{
4991
4991
  id: z.ZodString;
4992
4992
  userId: z.ZodString;
@@ -5011,8 +5011,8 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
5011
5011
  balanceBefore: number;
5012
5012
  balanceAfter: number;
5013
5013
  transactionType: "consume";
5014
- packageName?: string | undefined;
5015
5014
  metadata?: any;
5015
+ packageName?: string | undefined;
5016
5016
  }, {
5017
5017
  id: string;
5018
5018
  createdAt: string;
@@ -5024,8 +5024,8 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
5024
5024
  balanceBefore: number;
5025
5025
  balanceAfter: number;
5026
5026
  transactionType: "consume";
5027
- packageName?: string | undefined;
5028
5027
  metadata?: any;
5028
+ packageName?: string | undefined;
5029
5029
  }>]>;
5030
5030
  type Transaction = z.infer<typeof TransactionSchema>;
5031
5031
  /**
@@ -5081,8 +5081,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5081
5081
  paymentMethod: string | null;
5082
5082
  paymentId: string | null;
5083
5083
  transactionType: "charge";
5084
- packageName?: string | undefined;
5085
5084
  metadata?: any;
5085
+ packageName?: string | undefined;
5086
5086
  }, {
5087
5087
  type: "user_recharge" | "system_bonus" | "refund";
5088
5088
  id: string;
@@ -5095,8 +5095,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5095
5095
  paymentMethod: string | null;
5096
5096
  paymentId: string | null;
5097
5097
  transactionType: "charge";
5098
- packageName?: string | undefined;
5099
5098
  metadata?: any;
5099
+ packageName?: string | undefined;
5100
5100
  }>, z.ZodObject<{
5101
5101
  id: z.ZodString;
5102
5102
  userId: z.ZodString;
@@ -5121,8 +5121,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5121
5121
  balanceBefore: number;
5122
5122
  balanceAfter: number;
5123
5123
  transactionType: "consume";
5124
- packageName?: string | undefined;
5125
5124
  metadata?: any;
5125
+ packageName?: string | undefined;
5126
5126
  }, {
5127
5127
  id: string;
5128
5128
  createdAt: string;
@@ -5134,8 +5134,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5134
5134
  balanceBefore: number;
5135
5135
  balanceAfter: number;
5136
5136
  transactionType: "consume";
5137
- packageName?: string | undefined;
5138
5137
  metadata?: any;
5138
+ packageName?: string | undefined;
5139
5139
  }>]>, "many">;
5140
5140
  total: z.ZodNumber;
5141
5141
  }, "strip", z.ZodTypeAny, {
@@ -5152,8 +5152,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5152
5152
  paymentMethod: string | null;
5153
5153
  paymentId: string | null;
5154
5154
  transactionType: "charge";
5155
- packageName?: string | undefined;
5156
5155
  metadata?: any;
5156
+ packageName?: string | undefined;
5157
5157
  } | {
5158
5158
  id: string;
5159
5159
  createdAt: string;
@@ -5165,8 +5165,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5165
5165
  balanceBefore: number;
5166
5166
  balanceAfter: number;
5167
5167
  transactionType: "consume";
5168
- packageName?: string | undefined;
5169
5168
  metadata?: any;
5169
+ packageName?: string | undefined;
5170
5170
  })[];
5171
5171
  }, {
5172
5172
  total: number;
@@ -5182,8 +5182,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5182
5182
  paymentMethod: string | null;
5183
5183
  paymentId: string | null;
5184
5184
  transactionType: "charge";
5185
- packageName?: string | undefined;
5186
5185
  metadata?: any;
5186
+ packageName?: string | undefined;
5187
5187
  } | {
5188
5188
  id: string;
5189
5189
  createdAt: string;
@@ -5195,8 +5195,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5195
5195
  balanceBefore: number;
5196
5196
  balanceAfter: number;
5197
5197
  transactionType: "consume";
5198
- packageName?: string | undefined;
5199
5198
  metadata?: any;
5199
+ packageName?: string | undefined;
5200
5200
  })[];
5201
5201
  }>;
5202
5202
  type ListTransactionsResponse = z.infer<typeof ListTransactionsResponseSchema>;
@@ -5228,8 +5228,8 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
5228
5228
  balanceBefore: number;
5229
5229
  balanceAfter: number;
5230
5230
  transactionType: "consume";
5231
- packageName?: string | undefined;
5232
5231
  metadata?: any;
5232
+ packageName?: string | undefined;
5233
5233
  }, {
5234
5234
  id: string;
5235
5235
  createdAt: string;
@@ -5241,8 +5241,8 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
5241
5241
  balanceBefore: number;
5242
5242
  balanceAfter: number;
5243
5243
  transactionType: "consume";
5244
- packageName?: string | undefined;
5245
5244
  metadata?: any;
5245
+ packageName?: string | undefined;
5246
5246
  }>, "many">;
5247
5247
  total: z.ZodNumber;
5248
5248
  }, "strip", z.ZodTypeAny, {
@@ -5258,8 +5258,8 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
5258
5258
  balanceBefore: number;
5259
5259
  balanceAfter: number;
5260
5260
  transactionType: "consume";
5261
- packageName?: string | undefined;
5262
5261
  metadata?: any;
5262
+ packageName?: string | undefined;
5263
5263
  }[];
5264
5264
  }, {
5265
5265
  total: number;
@@ -5274,8 +5274,8 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
5274
5274
  balanceBefore: number;
5275
5275
  balanceAfter: number;
5276
5276
  transactionType: "consume";
5277
- packageName?: string | undefined;
5278
5277
  metadata?: any;
5278
+ packageName?: string | undefined;
5279
5279
  }[];
5280
5280
  }>;
5281
5281
  type TaskTransactionsResponse = z.infer<typeof TaskTransactionsResponseSchema>;
@@ -6275,17 +6275,21 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
6275
6275
  code: z.ZodString;
6276
6276
  message: z.ZodString;
6277
6277
  }, "strip", z.ZodTypeAny, {
6278
- code: string;
6279
6278
  message: string;
6280
- }, {
6281
6279
  code: string;
6280
+ }, {
6282
6281
  message: string;
6282
+ code: string;
6283
6283
  }>>;
6284
6284
  }, "strip", z.ZodTypeAny, {
6285
6285
  success: boolean;
6286
6286
  taskId: string;
6287
6287
  eventId: string;
6288
6288
  requestId: string;
6289
+ error?: {
6290
+ message: string;
6291
+ code: string;
6292
+ } | undefined;
6289
6293
  data?: {
6290
6294
  type: "directory" | "file";
6291
6295
  metadata: {
@@ -6304,16 +6308,16 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
6304
6308
  content?: string | undefined;
6305
6309
  encryptedContent?: string | undefined;
6306
6310
  } | undefined;
6307
- error?: {
6308
- code: string;
6309
- message: string;
6310
- } | undefined;
6311
6311
  notModified?: boolean | undefined;
6312
6312
  }, {
6313
6313
  success: boolean;
6314
6314
  taskId: string;
6315
6315
  eventId: string;
6316
6316
  requestId: string;
6317
+ error?: {
6318
+ message: string;
6319
+ code: string;
6320
+ } | undefined;
6317
6321
  data?: {
6318
6322
  type: "directory" | "file";
6319
6323
  metadata: {
@@ -6332,10 +6336,6 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
6332
6336
  content?: string | undefined;
6333
6337
  encryptedContent?: string | undefined;
6334
6338
  } | undefined;
6335
- error?: {
6336
- code: string;
6337
- message: string;
6338
- } | undefined;
6339
6339
  notModified?: boolean | undefined;
6340
6340
  }>;
6341
6341
  type WorkspaceFileResponseEventData = z.infer<typeof WorkspaceFileResponseSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentrix/shared",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Shared types and schemas for Agentrix projects",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",