@archastro/sdk 0.17.0 → 0.19.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.
Files changed (89) hide show
  1. package/dist/auth.d.ts +42 -18
  2. package/dist/auth.d.ts.map +1 -1
  3. package/dist/auth.js +53 -19
  4. package/dist/auth.js.map +1 -1
  5. package/dist/channels/api_chat_channel.d.ts +11 -1
  6. package/dist/channels/api_chat_channel.d.ts.map +1 -1
  7. package/dist/channels/api_chat_channel.js +14 -2
  8. package/dist/channels/api_chat_channel.js.map +1 -1
  9. package/dist/effective-access.d.ts +1 -1
  10. package/dist/effective-access.d.ts.map +1 -1
  11. package/dist/effective-access.js +2 -5
  12. package/dist/effective-access.js.map +1 -1
  13. package/dist/types/ai.d.ts +310 -0
  14. package/dist/types/ai.d.ts.map +1 -1
  15. package/dist/types/ai.js +51 -1
  16. package/dist/types/ai.js.map +1 -1
  17. package/dist/types/artifacts.d.ts +14 -2
  18. package/dist/types/artifacts.d.ts.map +1 -1
  19. package/dist/types/artifacts.js +5 -1
  20. package/dist/types/artifacts.js.map +1 -1
  21. package/dist/types/chat.d.ts +192 -168
  22. package/dist/types/chat.d.ts.map +1 -1
  23. package/dist/types/chat.js +10 -3
  24. package/dist/types/chat.js.map +1 -1
  25. package/dist/types/common.d.ts +347 -128
  26. package/dist/types/common.d.ts.map +1 -1
  27. package/dist/types/common.js +39 -20
  28. package/dist/types/common.js.map +1 -1
  29. package/dist/types/config.d.ts +2 -2
  30. package/dist/types/events.d.ts +32 -32
  31. package/dist/types/extractions.d.ts +12 -12
  32. package/dist/types/tasks.d.ts +34 -8
  33. package/dist/types/tasks.d.ts.map +1 -1
  34. package/dist/types/tasks.js +12 -3
  35. package/dist/types/tasks.js.map +1 -1
  36. package/dist/types/teams.d.ts +10 -10
  37. package/dist/types/threads.d.ts +18 -18
  38. package/dist/types/threads.d.ts.map +1 -1
  39. package/dist/types/threads.js +3 -3
  40. package/dist/types/threads.js.map +1 -1
  41. package/dist/v1/resources/agents.d.ts +8 -2
  42. package/dist/v1/resources/agents.d.ts.map +1 -1
  43. package/dist/v1/resources/agents.js +7 -2
  44. package/dist/v1/resources/agents.js.map +1 -1
  45. package/dist/v1/resources/ai.d.ts +72 -1
  46. package/dist/v1/resources/ai.d.ts.map +1 -1
  47. package/dist/v1/resources/ai.js +44 -1
  48. package/dist/v1/resources/ai.js.map +1 -1
  49. package/dist/v1/resources/artifacts.d.ts +52 -0
  50. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  51. package/dist/v1/resources/artifacts.js +35 -1
  52. package/dist/v1/resources/artifacts.js.map +1 -1
  53. package/dist/v1/resources/files.d.ts +7 -0
  54. package/dist/v1/resources/files.d.ts.map +1 -1
  55. package/dist/v1/resources/files.js +8 -1
  56. package/dist/v1/resources/files.js.map +1 -1
  57. package/dist/v1/resources/knowledge_sources.d.ts +41 -0
  58. package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
  59. package/dist/v1/resources/knowledge_sources.js +31 -1
  60. package/dist/v1/resources/knowledge_sources.js.map +1 -1
  61. package/dist/v1/resources/orgs.d.ts +506 -0
  62. package/dist/v1/resources/orgs.d.ts.map +1 -1
  63. package/dist/v1/resources/orgs.js +71 -1
  64. package/dist/v1/resources/orgs.js.map +1 -1
  65. package/dist/v1/resources/sandboxes.d.ts +3 -2
  66. package/dist/v1/resources/sandboxes.d.ts.map +1 -1
  67. package/dist/v1/resources/sandboxes.js +4 -3
  68. package/dist/v1/resources/sandboxes.js.map +1 -1
  69. package/dist/v1/resources/scripts.d.ts +6 -2
  70. package/dist/v1/resources/scripts.d.ts.map +1 -1
  71. package/dist/v1/resources/scripts.js +5 -3
  72. package/dist/v1/resources/scripts.js.map +1 -1
  73. package/dist/v1/resources/tasks.d.ts +58 -3
  74. package/dist/v1/resources/tasks.d.ts.map +1 -1
  75. package/dist/v1/resources/tasks.js +61 -2
  76. package/dist/v1/resources/tasks.js.map +1 -1
  77. package/dist/v1/resources/teams.d.ts +46 -14
  78. package/dist/v1/resources/teams.d.ts.map +1 -1
  79. package/dist/v1/resources/teams.js +54 -16
  80. package/dist/v1/resources/teams.js.map +1 -1
  81. package/dist/v1/resources/threads.d.ts +16 -6
  82. package/dist/v1/resources/threads.d.ts.map +1 -1
  83. package/dist/v1/resources/threads.js +19 -8
  84. package/dist/v1/resources/threads.js.map +1 -1
  85. package/dist/v1/resources/users.d.ts +13 -3
  86. package/dist/v1/resources/users.d.ts.map +1 -1
  87. package/dist/v1/resources/users.js +13 -3
  88. package/dist/v1/resources/users.js.map +1 -1
  89. package/package.json +1 -1
@@ -1084,8 +1084,8 @@ export declare const chatMemberSchema: z.ZodObject<{
1084
1084
  user?: string | null | undefined;
1085
1085
  name?: string | undefined;
1086
1086
  email?: string | null | undefined;
1087
- team?: string | null | undefined;
1088
1087
  org?: string | null | undefined;
1088
+ team?: string | null | undefined;
1089
1089
  description?: string | null | undefined;
1090
1090
  app?: string | undefined;
1091
1091
  created_at?: string | undefined;
@@ -1262,8 +1262,8 @@ export declare const chatMemberSchema: z.ZodObject<{
1262
1262
  user?: string | null | undefined;
1263
1263
  name?: string | undefined;
1264
1264
  email?: string | null | undefined;
1265
- team?: string | null | undefined;
1266
1265
  org?: string | null | undefined;
1266
+ team?: string | null | undefined;
1267
1267
  description?: string | null | undefined;
1268
1268
  app?: string | undefined;
1269
1269
  created_at?: string | undefined;
@@ -1530,8 +1530,8 @@ export declare const chatMemberSchema: z.ZodObject<{
1530
1530
  user?: string | null | undefined;
1531
1531
  name?: string | undefined;
1532
1532
  email?: string | null | undefined;
1533
- team?: string | null | undefined;
1534
1533
  org?: string | null | undefined;
1534
+ team?: string | null | undefined;
1535
1535
  description?: string | null | undefined;
1536
1536
  app?: string | undefined;
1537
1537
  created_at?: string | undefined;
@@ -1733,8 +1733,8 @@ export declare const chatMemberSchema: z.ZodObject<{
1733
1733
  user?: string | null | undefined;
1734
1734
  name?: string | undefined;
1735
1735
  email?: string | null | undefined;
1736
- team?: string | null | undefined;
1737
1736
  org?: string | null | undefined;
1737
+ team?: string | null | undefined;
1738
1738
  description?: string | null | undefined;
1739
1739
  app?: string | undefined;
1740
1740
  created_at?: string | undefined;
@@ -3002,8 +3002,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
3002
3002
  user?: string | null | undefined;
3003
3003
  name?: string | undefined;
3004
3004
  email?: string | null | undefined;
3005
- team?: string | null | undefined;
3006
3005
  org?: string | null | undefined;
3006
+ team?: string | null | undefined;
3007
3007
  description?: string | null | undefined;
3008
3008
  app?: string | undefined;
3009
3009
  created_at?: string | undefined;
@@ -3180,8 +3180,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
3180
3180
  user?: string | null | undefined;
3181
3181
  name?: string | undefined;
3182
3182
  email?: string | null | undefined;
3183
- team?: string | null | undefined;
3184
3183
  org?: string | null | undefined;
3184
+ team?: string | null | undefined;
3185
3185
  description?: string | null | undefined;
3186
3186
  app?: string | undefined;
3187
3187
  created_at?: string | undefined;
@@ -4428,8 +4428,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
4428
4428
  user?: string | null | undefined;
4429
4429
  name?: string | undefined;
4430
4430
  email?: string | null | undefined;
4431
- team?: string | null | undefined;
4432
4431
  org?: string | null | undefined;
4432
+ team?: string | null | undefined;
4433
4433
  description?: string | null | undefined;
4434
4434
  app?: string | undefined;
4435
4435
  created_at?: string | undefined;
@@ -4606,8 +4606,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
4606
4606
  user?: string | null | undefined;
4607
4607
  name?: string | undefined;
4608
4608
  email?: string | null | undefined;
4609
- team?: string | null | undefined;
4610
4609
  org?: string | null | undefined;
4610
+ team?: string | null | undefined;
4611
4611
  description?: string | null | undefined;
4612
4612
  app?: string | undefined;
4613
4613
  created_at?: string | undefined;
@@ -4874,8 +4874,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
4874
4874
  user?: string | null | undefined;
4875
4875
  name?: string | undefined;
4876
4876
  email?: string | null | undefined;
4877
- team?: string | null | undefined;
4878
4877
  org?: string | null | undefined;
4878
+ team?: string | null | undefined;
4879
4879
  description?: string | null | undefined;
4880
4880
  app?: string | undefined;
4881
4881
  created_at?: string | undefined;
@@ -5077,8 +5077,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
5077
5077
  user?: string | null | undefined;
5078
5078
  name?: string | undefined;
5079
5079
  email?: string | null | undefined;
5080
- team?: string | null | undefined;
5081
5080
  org?: string | null | undefined;
5081
+ team?: string | null | undefined;
5082
5082
  description?: string | null | undefined;
5083
5083
  app?: string | undefined;
5084
5084
  created_at?: string | undefined;
@@ -5731,10 +5731,10 @@ export declare const chatRoomModelSchema: z.ZodObject<{
5731
5731
  org_slug?: string | null | undefined;
5732
5732
  sandbox_name?: string | null | undefined;
5733
5733
  } | null | undefined;
5734
+ org?: string | null | undefined;
5734
5735
  agent?: string | null | undefined;
5735
5736
  thread?: string | undefined;
5736
5737
  team?: string | null | undefined;
5737
- org?: string | null | undefined;
5738
5738
  type?: string | null | undefined;
5739
5739
  created_at?: string | undefined;
5740
5740
  sandbox?: string | null | undefined;
@@ -5866,10 +5866,10 @@ export declare const chatRoomModelSchema: z.ZodObject<{
5866
5866
  org_slug?: string | null | undefined;
5867
5867
  sandbox_name?: string | null | undefined;
5868
5868
  } | null | undefined;
5869
+ org?: string | null | undefined;
5869
5870
  agent?: string | null | undefined;
5870
5871
  thread?: string | undefined;
5871
5872
  team?: string | null | undefined;
5872
- org?: string | null | undefined;
5873
5873
  type?: string | null | undefined;
5874
5874
  created_at?: string | undefined;
5875
5875
  sandbox?: string | null | undefined;
@@ -6677,10 +6677,10 @@ export declare const chatRoomModelSchema: z.ZodObject<{
6677
6677
  org_slug?: string | null | undefined;
6678
6678
  sandbox_name?: string | null | undefined;
6679
6679
  } | null | undefined;
6680
+ org?: string | null | undefined;
6680
6681
  agent?: string | null | undefined;
6681
6682
  thread?: string | undefined;
6682
6683
  team?: string | null | undefined;
6683
- org?: string | null | undefined;
6684
6684
  type?: string | null | undefined;
6685
6685
  created_at?: string | undefined;
6686
6686
  sandbox?: string | null | undefined;
@@ -6812,10 +6812,10 @@ export declare const chatRoomModelSchema: z.ZodObject<{
6812
6812
  org_slug?: string | null | undefined;
6813
6813
  sandbox_name?: string | null | undefined;
6814
6814
  } | null | undefined;
6815
+ org?: string | null | undefined;
6815
6816
  agent?: string | null | undefined;
6816
6817
  thread?: string | undefined;
6817
6818
  team?: string | null | undefined;
6818
- org?: string | null | undefined;
6819
6819
  type?: string | null | undefined;
6820
6820
  created_at?: string | undefined;
6821
6821
  sandbox?: string | null | undefined;
@@ -8054,8 +8054,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
8054
8054
  user?: string | null | undefined;
8055
8055
  name?: string | undefined;
8056
8056
  email?: string | null | undefined;
8057
- team?: string | null | undefined;
8058
8057
  org?: string | null | undefined;
8058
+ team?: string | null | undefined;
8059
8059
  description?: string | null | undefined;
8060
8060
  app?: string | undefined;
8061
8061
  created_at?: string | undefined;
@@ -8232,8 +8232,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
8232
8232
  user?: string | null | undefined;
8233
8233
  name?: string | undefined;
8234
8234
  email?: string | null | undefined;
8235
- team?: string | null | undefined;
8236
8235
  org?: string | null | undefined;
8236
+ team?: string | null | undefined;
8237
8237
  description?: string | null | undefined;
8238
8238
  app?: string | undefined;
8239
8239
  created_at?: string | undefined;
@@ -8424,15 +8424,15 @@ export declare const chatRoomModelSchema: z.ZodObject<{
8424
8424
  unread_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8425
8425
  updated_at: z.ZodOptional<z.ZodString>;
8426
8426
  user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8427
- visibility: z.ZodEnum<["team", "restricted", "private"]>;
8427
+ visibility: z.ZodEnum<["team", "restricted", "private", "org"]>;
8428
8428
  }, "strip", z.ZodTypeAny, {
8429
8429
  id: string;
8430
- visibility: "team" | "private" | "restricted";
8430
+ visibility: "org" | "team" | "private" | "restricted";
8431
8431
  key?: string | null | undefined;
8432
8432
  user?: string | null | undefined;
8433
+ org?: string | null | undefined;
8433
8434
  kind?: string | null | undefined;
8434
8435
  team?: string | null | undefined;
8435
- org?: string | null | undefined;
8436
8436
  description?: string | null | undefined;
8437
8437
  participants?: {
8438
8438
  id: string;
@@ -8516,10 +8516,10 @@ export declare const chatRoomModelSchema: z.ZodObject<{
8516
8516
  org_slug?: string | null | undefined;
8517
8517
  sandbox_name?: string | null | undefined;
8518
8518
  } | null | undefined;
8519
+ org?: string | null | undefined;
8519
8520
  agent?: string | null | undefined;
8520
8521
  thread?: string | undefined;
8521
8522
  team?: string | null | undefined;
8522
- org?: string | null | undefined;
8523
8523
  type?: string | null | undefined;
8524
8524
  created_at?: string | undefined;
8525
8525
  sandbox?: string | null | undefined;
@@ -8635,8 +8635,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
8635
8635
  user?: string | null | undefined;
8636
8636
  name?: string | undefined;
8637
8637
  email?: string | null | undefined;
8638
- team?: string | null | undefined;
8639
8638
  org?: string | null | undefined;
8639
+ team?: string | null | undefined;
8640
8640
  description?: string | null | undefined;
8641
8641
  app?: string | undefined;
8642
8642
  created_at?: string | undefined;
@@ -8818,12 +8818,12 @@ export declare const chatRoomModelSchema: z.ZodObject<{
8818
8818
  unread_count?: number | null | undefined;
8819
8819
  }, {
8820
8820
  id: string;
8821
- visibility: "team" | "private" | "restricted";
8821
+ visibility: "org" | "team" | "private" | "restricted";
8822
8822
  key?: string | null | undefined;
8823
8823
  user?: string | null | undefined;
8824
+ org?: string | null | undefined;
8824
8825
  kind?: string | null | undefined;
8825
8826
  team?: string | null | undefined;
8826
- org?: string | null | undefined;
8827
8827
  description?: string | null | undefined;
8828
8828
  participants?: {
8829
8829
  id: string;
@@ -8907,10 +8907,10 @@ export declare const chatRoomModelSchema: z.ZodObject<{
8907
8907
  org_slug?: string | null | undefined;
8908
8908
  sandbox_name?: string | null | undefined;
8909
8909
  } | null | undefined;
8910
+ org?: string | null | undefined;
8910
8911
  agent?: string | null | undefined;
8911
8912
  thread?: string | undefined;
8912
8913
  team?: string | null | undefined;
8913
- org?: string | null | undefined;
8914
8914
  type?: string | null | undefined;
8915
8915
  created_at?: string | undefined;
8916
8916
  sandbox?: string | null | undefined;
@@ -9026,8 +9026,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
9026
9026
  user?: string | null | undefined;
9027
9027
  name?: string | undefined;
9028
9028
  email?: string | null | undefined;
9029
- team?: string | null | undefined;
9030
9029
  org?: string | null | undefined;
9030
+ team?: string | null | undefined;
9031
9031
  description?: string | null | undefined;
9032
9032
  app?: string | undefined;
9033
9033
  created_at?: string | undefined;
@@ -9211,12 +9211,12 @@ export declare const chatRoomModelSchema: z.ZodObject<{
9211
9211
  }, "strip", z.ZodTypeAny, {
9212
9212
  thread: {
9213
9213
  id: string;
9214
- visibility: "team" | "private" | "restricted";
9214
+ visibility: "org" | "team" | "private" | "restricted";
9215
9215
  key?: string | null | undefined;
9216
9216
  user?: string | null | undefined;
9217
+ org?: string | null | undefined;
9217
9218
  kind?: string | null | undefined;
9218
9219
  team?: string | null | undefined;
9219
- org?: string | null | undefined;
9220
9220
  description?: string | null | undefined;
9221
9221
  participants?: {
9222
9222
  id: string;
@@ -9300,10 +9300,10 @@ export declare const chatRoomModelSchema: z.ZodObject<{
9300
9300
  org_slug?: string | null | undefined;
9301
9301
  sandbox_name?: string | null | undefined;
9302
9302
  } | null | undefined;
9303
+ org?: string | null | undefined;
9303
9304
  agent?: string | null | undefined;
9304
9305
  thread?: string | undefined;
9305
9306
  team?: string | null | undefined;
9306
- org?: string | null | undefined;
9307
9307
  type?: string | null | undefined;
9308
9308
  created_at?: string | undefined;
9309
9309
  sandbox?: string | null | undefined;
@@ -9419,8 +9419,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
9419
9419
  user?: string | null | undefined;
9420
9420
  name?: string | undefined;
9421
9421
  email?: string | null | undefined;
9422
- team?: string | null | undefined;
9423
9422
  org?: string | null | undefined;
9423
+ team?: string | null | undefined;
9424
9424
  description?: string | null | undefined;
9425
9425
  app?: string | undefined;
9426
9426
  created_at?: string | undefined;
@@ -9625,10 +9625,10 @@ export declare const chatRoomModelSchema: z.ZodObject<{
9625
9625
  org_slug?: string | null | undefined;
9626
9626
  sandbox_name?: string | null | undefined;
9627
9627
  } | null | undefined;
9628
+ org?: string | null | undefined;
9628
9629
  agent?: string | null | undefined;
9629
9630
  thread?: string | undefined;
9630
9631
  team?: string | null | undefined;
9631
- org?: string | null | undefined;
9632
9632
  type?: string | null | undefined;
9633
9633
  created_at?: string | undefined;
9634
9634
  sandbox?: string | null | undefined;
@@ -9766,8 +9766,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
9766
9766
  user?: string | null | undefined;
9767
9767
  name?: string | undefined;
9768
9768
  email?: string | null | undefined;
9769
- team?: string | null | undefined;
9770
9769
  org?: string | null | undefined;
9770
+ team?: string | null | undefined;
9771
9771
  description?: string | null | undefined;
9772
9772
  app?: string | undefined;
9773
9773
  created_at?: string | undefined;
@@ -9947,8 +9947,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
9947
9947
  user?: string | null | undefined;
9948
9948
  name?: string | undefined;
9949
9949
  email?: string | null | undefined;
9950
- team?: string | null | undefined;
9951
9950
  org?: string | null | undefined;
9951
+ team?: string | null | undefined;
9952
9952
  description?: string | null | undefined;
9953
9953
  app?: string | undefined;
9954
9954
  created_at?: string | undefined;
@@ -10157,12 +10157,12 @@ export declare const chatRoomModelSchema: z.ZodObject<{
10157
10157
  }, {
10158
10158
  thread: {
10159
10159
  id: string;
10160
- visibility: "team" | "private" | "restricted";
10160
+ visibility: "org" | "team" | "private" | "restricted";
10161
10161
  key?: string | null | undefined;
10162
10162
  user?: string | null | undefined;
10163
+ org?: string | null | undefined;
10163
10164
  kind?: string | null | undefined;
10164
10165
  team?: string | null | undefined;
10165
- org?: string | null | undefined;
10166
10166
  description?: string | null | undefined;
10167
10167
  participants?: {
10168
10168
  id: string;
@@ -10246,10 +10246,10 @@ export declare const chatRoomModelSchema: z.ZodObject<{
10246
10246
  org_slug?: string | null | undefined;
10247
10247
  sandbox_name?: string | null | undefined;
10248
10248
  } | null | undefined;
10249
+ org?: string | null | undefined;
10249
10250
  agent?: string | null | undefined;
10250
10251
  thread?: string | undefined;
10251
10252
  team?: string | null | undefined;
10252
- org?: string | null | undefined;
10253
10253
  type?: string | null | undefined;
10254
10254
  created_at?: string | undefined;
10255
10255
  sandbox?: string | null | undefined;
@@ -10365,8 +10365,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
10365
10365
  user?: string | null | undefined;
10366
10366
  name?: string | undefined;
10367
10367
  email?: string | null | undefined;
10368
- team?: string | null | undefined;
10369
10368
  org?: string | null | undefined;
10369
+ team?: string | null | undefined;
10370
10370
  description?: string | null | undefined;
10371
10371
  app?: string | undefined;
10372
10372
  created_at?: string | undefined;
@@ -10571,10 +10571,10 @@ export declare const chatRoomModelSchema: z.ZodObject<{
10571
10571
  org_slug?: string | null | undefined;
10572
10572
  sandbox_name?: string | null | undefined;
10573
10573
  } | null | undefined;
10574
+ org?: string | null | undefined;
10574
10575
  agent?: string | null | undefined;
10575
10576
  thread?: string | undefined;
10576
10577
  team?: string | null | undefined;
10577
- org?: string | null | undefined;
10578
10578
  type?: string | null | undefined;
10579
10579
  created_at?: string | undefined;
10580
10580
  sandbox?: string | null | undefined;
@@ -10712,8 +10712,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
10712
10712
  user?: string | null | undefined;
10713
10713
  name?: string | undefined;
10714
10714
  email?: string | null | undefined;
10715
- team?: string | null | undefined;
10716
10715
  org?: string | null | undefined;
10716
+ team?: string | null | undefined;
10717
10717
  description?: string | null | undefined;
10718
10718
  app?: string | undefined;
10719
10719
  created_at?: string | undefined;
@@ -10893,8 +10893,8 @@ export declare const chatRoomModelSchema: z.ZodObject<{
10893
10893
  user?: string | null | undefined;
10894
10894
  name?: string | undefined;
10895
10895
  email?: string | null | undefined;
10896
- team?: string | null | undefined;
10897
10896
  org?: string | null | undefined;
10897
+ team?: string | null | undefined;
10898
10898
  description?: string | null | undefined;
10899
10899
  app?: string | undefined;
10900
10900
  created_at?: string | undefined;
@@ -12184,8 +12184,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
12184
12184
  user?: string | null | undefined;
12185
12185
  name?: string | undefined;
12186
12186
  email?: string | null | undefined;
12187
- team?: string | null | undefined;
12188
12187
  org?: string | null | undefined;
12188
+ team?: string | null | undefined;
12189
12189
  description?: string | null | undefined;
12190
12190
  app?: string | undefined;
12191
12191
  created_at?: string | undefined;
@@ -12362,8 +12362,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
12362
12362
  user?: string | null | undefined;
12363
12363
  name?: string | undefined;
12364
12364
  email?: string | null | undefined;
12365
- team?: string | null | undefined;
12366
12365
  org?: string | null | undefined;
12366
+ team?: string | null | undefined;
12367
12367
  description?: string | null | undefined;
12368
12368
  app?: string | undefined;
12369
12369
  created_at?: string | undefined;
@@ -13610,8 +13610,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
13610
13610
  user?: string | null | undefined;
13611
13611
  name?: string | undefined;
13612
13612
  email?: string | null | undefined;
13613
- team?: string | null | undefined;
13614
13613
  org?: string | null | undefined;
13614
+ team?: string | null | undefined;
13615
13615
  description?: string | null | undefined;
13616
13616
  app?: string | undefined;
13617
13617
  created_at?: string | undefined;
@@ -13788,8 +13788,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
13788
13788
  user?: string | null | undefined;
13789
13789
  name?: string | undefined;
13790
13790
  email?: string | null | undefined;
13791
- team?: string | null | undefined;
13792
13791
  org?: string | null | undefined;
13792
+ team?: string | null | undefined;
13793
13793
  description?: string | null | undefined;
13794
13794
  app?: string | undefined;
13795
13795
  created_at?: string | undefined;
@@ -14056,8 +14056,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
14056
14056
  user?: string | null | undefined;
14057
14057
  name?: string | undefined;
14058
14058
  email?: string | null | undefined;
14059
- team?: string | null | undefined;
14060
14059
  org?: string | null | undefined;
14060
+ team?: string | null | undefined;
14061
14061
  description?: string | null | undefined;
14062
14062
  app?: string | undefined;
14063
14063
  created_at?: string | undefined;
@@ -14259,8 +14259,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
14259
14259
  user?: string | null | undefined;
14260
14260
  name?: string | undefined;
14261
14261
  email?: string | null | undefined;
14262
- team?: string | null | undefined;
14263
14262
  org?: string | null | undefined;
14263
+ team?: string | null | undefined;
14264
14264
  description?: string | null | undefined;
14265
14265
  app?: string | undefined;
14266
14266
  created_at?: string | undefined;
@@ -14913,10 +14913,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
14913
14913
  org_slug?: string | null | undefined;
14914
14914
  sandbox_name?: string | null | undefined;
14915
14915
  } | null | undefined;
14916
+ org?: string | null | undefined;
14916
14917
  agent?: string | null | undefined;
14917
14918
  thread?: string | undefined;
14918
14919
  team?: string | null | undefined;
14919
- org?: string | null | undefined;
14920
14920
  type?: string | null | undefined;
14921
14921
  created_at?: string | undefined;
14922
14922
  sandbox?: string | null | undefined;
@@ -15048,10 +15048,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
15048
15048
  org_slug?: string | null | undefined;
15049
15049
  sandbox_name?: string | null | undefined;
15050
15050
  } | null | undefined;
15051
+ org?: string | null | undefined;
15051
15052
  agent?: string | null | undefined;
15052
15053
  thread?: string | undefined;
15053
15054
  team?: string | null | undefined;
15054
- org?: string | null | undefined;
15055
15055
  type?: string | null | undefined;
15056
15056
  created_at?: string | undefined;
15057
15057
  sandbox?: string | null | undefined;
@@ -15859,10 +15859,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
15859
15859
  org_slug?: string | null | undefined;
15860
15860
  sandbox_name?: string | null | undefined;
15861
15861
  } | null | undefined;
15862
+ org?: string | null | undefined;
15862
15863
  agent?: string | null | undefined;
15863
15864
  thread?: string | undefined;
15864
15865
  team?: string | null | undefined;
15865
- org?: string | null | undefined;
15866
15866
  type?: string | null | undefined;
15867
15867
  created_at?: string | undefined;
15868
15868
  sandbox?: string | null | undefined;
@@ -15994,10 +15994,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
15994
15994
  org_slug?: string | null | undefined;
15995
15995
  sandbox_name?: string | null | undefined;
15996
15996
  } | null | undefined;
15997
+ org?: string | null | undefined;
15997
15998
  agent?: string | null | undefined;
15998
15999
  thread?: string | undefined;
15999
16000
  team?: string | null | undefined;
16000
- org?: string | null | undefined;
16001
16001
  type?: string | null | undefined;
16002
16002
  created_at?: string | undefined;
16003
16003
  sandbox?: string | null | undefined;
@@ -17236,8 +17236,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
17236
17236
  user?: string | null | undefined;
17237
17237
  name?: string | undefined;
17238
17238
  email?: string | null | undefined;
17239
- team?: string | null | undefined;
17240
17239
  org?: string | null | undefined;
17240
+ team?: string | null | undefined;
17241
17241
  description?: string | null | undefined;
17242
17242
  app?: string | undefined;
17243
17243
  created_at?: string | undefined;
@@ -17414,8 +17414,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
17414
17414
  user?: string | null | undefined;
17415
17415
  name?: string | undefined;
17416
17416
  email?: string | null | undefined;
17417
- team?: string | null | undefined;
17418
17417
  org?: string | null | undefined;
17418
+ team?: string | null | undefined;
17419
17419
  description?: string | null | undefined;
17420
17420
  app?: string | undefined;
17421
17421
  created_at?: string | undefined;
@@ -17606,15 +17606,15 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
17606
17606
  unread_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17607
17607
  updated_at: z.ZodOptional<z.ZodString>;
17608
17608
  user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17609
- visibility: z.ZodEnum<["team", "restricted", "private"]>;
17609
+ visibility: z.ZodEnum<["team", "restricted", "private", "org"]>;
17610
17610
  }, "strip", z.ZodTypeAny, {
17611
17611
  id: string;
17612
- visibility: "team" | "private" | "restricted";
17612
+ visibility: "org" | "team" | "private" | "restricted";
17613
17613
  key?: string | null | undefined;
17614
17614
  user?: string | null | undefined;
17615
+ org?: string | null | undefined;
17615
17616
  kind?: string | null | undefined;
17616
17617
  team?: string | null | undefined;
17617
- org?: string | null | undefined;
17618
17618
  description?: string | null | undefined;
17619
17619
  participants?: {
17620
17620
  id: string;
@@ -17698,10 +17698,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
17698
17698
  org_slug?: string | null | undefined;
17699
17699
  sandbox_name?: string | null | undefined;
17700
17700
  } | null | undefined;
17701
+ org?: string | null | undefined;
17701
17702
  agent?: string | null | undefined;
17702
17703
  thread?: string | undefined;
17703
17704
  team?: string | null | undefined;
17704
- org?: string | null | undefined;
17705
17705
  type?: string | null | undefined;
17706
17706
  created_at?: string | undefined;
17707
17707
  sandbox?: string | null | undefined;
@@ -17817,8 +17817,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
17817
17817
  user?: string | null | undefined;
17818
17818
  name?: string | undefined;
17819
17819
  email?: string | null | undefined;
17820
- team?: string | null | undefined;
17821
17820
  org?: string | null | undefined;
17821
+ team?: string | null | undefined;
17822
17822
  description?: string | null | undefined;
17823
17823
  app?: string | undefined;
17824
17824
  created_at?: string | undefined;
@@ -18000,12 +18000,12 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
18000
18000
  unread_count?: number | null | undefined;
18001
18001
  }, {
18002
18002
  id: string;
18003
- visibility: "team" | "private" | "restricted";
18003
+ visibility: "org" | "team" | "private" | "restricted";
18004
18004
  key?: string | null | undefined;
18005
18005
  user?: string | null | undefined;
18006
+ org?: string | null | undefined;
18006
18007
  kind?: string | null | undefined;
18007
18008
  team?: string | null | undefined;
18008
- org?: string | null | undefined;
18009
18009
  description?: string | null | undefined;
18010
18010
  participants?: {
18011
18011
  id: string;
@@ -18089,10 +18089,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
18089
18089
  org_slug?: string | null | undefined;
18090
18090
  sandbox_name?: string | null | undefined;
18091
18091
  } | null | undefined;
18092
+ org?: string | null | undefined;
18092
18093
  agent?: string | null | undefined;
18093
18094
  thread?: string | undefined;
18094
18095
  team?: string | null | undefined;
18095
- org?: string | null | undefined;
18096
18096
  type?: string | null | undefined;
18097
18097
  created_at?: string | undefined;
18098
18098
  sandbox?: string | null | undefined;
@@ -18208,8 +18208,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
18208
18208
  user?: string | null | undefined;
18209
18209
  name?: string | undefined;
18210
18210
  email?: string | null | undefined;
18211
- team?: string | null | undefined;
18212
18211
  org?: string | null | undefined;
18212
+ team?: string | null | undefined;
18213
18213
  description?: string | null | undefined;
18214
18214
  app?: string | undefined;
18215
18215
  created_at?: string | undefined;
@@ -18393,12 +18393,12 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
18393
18393
  }, "strip", z.ZodTypeAny, {
18394
18394
  thread: {
18395
18395
  id: string;
18396
- visibility: "team" | "private" | "restricted";
18396
+ visibility: "org" | "team" | "private" | "restricted";
18397
18397
  key?: string | null | undefined;
18398
18398
  user?: string | null | undefined;
18399
+ org?: string | null | undefined;
18399
18400
  kind?: string | null | undefined;
18400
18401
  team?: string | null | undefined;
18401
- org?: string | null | undefined;
18402
18402
  description?: string | null | undefined;
18403
18403
  participants?: {
18404
18404
  id: string;
@@ -18482,10 +18482,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
18482
18482
  org_slug?: string | null | undefined;
18483
18483
  sandbox_name?: string | null | undefined;
18484
18484
  } | null | undefined;
18485
+ org?: string | null | undefined;
18485
18486
  agent?: string | null | undefined;
18486
18487
  thread?: string | undefined;
18487
18488
  team?: string | null | undefined;
18488
- org?: string | null | undefined;
18489
18489
  type?: string | null | undefined;
18490
18490
  created_at?: string | undefined;
18491
18491
  sandbox?: string | null | undefined;
@@ -18601,8 +18601,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
18601
18601
  user?: string | null | undefined;
18602
18602
  name?: string | undefined;
18603
18603
  email?: string | null | undefined;
18604
- team?: string | null | undefined;
18605
18604
  org?: string | null | undefined;
18605
+ team?: string | null | undefined;
18606
18606
  description?: string | null | undefined;
18607
18607
  app?: string | undefined;
18608
18608
  created_at?: string | undefined;
@@ -18807,10 +18807,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
18807
18807
  org_slug?: string | null | undefined;
18808
18808
  sandbox_name?: string | null | undefined;
18809
18809
  } | null | undefined;
18810
+ org?: string | null | undefined;
18810
18811
  agent?: string | null | undefined;
18811
18812
  thread?: string | undefined;
18812
18813
  team?: string | null | undefined;
18813
- org?: string | null | undefined;
18814
18814
  type?: string | null | undefined;
18815
18815
  created_at?: string | undefined;
18816
18816
  sandbox?: string | null | undefined;
@@ -18948,8 +18948,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
18948
18948
  user?: string | null | undefined;
18949
18949
  name?: string | undefined;
18950
18950
  email?: string | null | undefined;
18951
- team?: string | null | undefined;
18952
18951
  org?: string | null | undefined;
18952
+ team?: string | null | undefined;
18953
18953
  description?: string | null | undefined;
18954
18954
  app?: string | undefined;
18955
18955
  created_at?: string | undefined;
@@ -19129,8 +19129,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
19129
19129
  user?: string | null | undefined;
19130
19130
  name?: string | undefined;
19131
19131
  email?: string | null | undefined;
19132
- team?: string | null | undefined;
19133
19132
  org?: string | null | undefined;
19133
+ team?: string | null | undefined;
19134
19134
  description?: string | null | undefined;
19135
19135
  app?: string | undefined;
19136
19136
  created_at?: string | undefined;
@@ -19339,12 +19339,12 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
19339
19339
  }, {
19340
19340
  thread: {
19341
19341
  id: string;
19342
- visibility: "team" | "private" | "restricted";
19342
+ visibility: "org" | "team" | "private" | "restricted";
19343
19343
  key?: string | null | undefined;
19344
19344
  user?: string | null | undefined;
19345
+ org?: string | null | undefined;
19345
19346
  kind?: string | null | undefined;
19346
19347
  team?: string | null | undefined;
19347
- org?: string | null | undefined;
19348
19348
  description?: string | null | undefined;
19349
19349
  participants?: {
19350
19350
  id: string;
@@ -19428,10 +19428,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
19428
19428
  org_slug?: string | null | undefined;
19429
19429
  sandbox_name?: string | null | undefined;
19430
19430
  } | null | undefined;
19431
+ org?: string | null | undefined;
19431
19432
  agent?: string | null | undefined;
19432
19433
  thread?: string | undefined;
19433
19434
  team?: string | null | undefined;
19434
- org?: string | null | undefined;
19435
19435
  type?: string | null | undefined;
19436
19436
  created_at?: string | undefined;
19437
19437
  sandbox?: string | null | undefined;
@@ -19547,8 +19547,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
19547
19547
  user?: string | null | undefined;
19548
19548
  name?: string | undefined;
19549
19549
  email?: string | null | undefined;
19550
- team?: string | null | undefined;
19551
19550
  org?: string | null | undefined;
19551
+ team?: string | null | undefined;
19552
19552
  description?: string | null | undefined;
19553
19553
  app?: string | undefined;
19554
19554
  created_at?: string | undefined;
@@ -19753,10 +19753,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
19753
19753
  org_slug?: string | null | undefined;
19754
19754
  sandbox_name?: string | null | undefined;
19755
19755
  } | null | undefined;
19756
+ org?: string | null | undefined;
19756
19757
  agent?: string | null | undefined;
19757
19758
  thread?: string | undefined;
19758
19759
  team?: string | null | undefined;
19759
- org?: string | null | undefined;
19760
19760
  type?: string | null | undefined;
19761
19761
  created_at?: string | undefined;
19762
19762
  sandbox?: string | null | undefined;
@@ -19894,8 +19894,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
19894
19894
  user?: string | null | undefined;
19895
19895
  name?: string | undefined;
19896
19896
  email?: string | null | undefined;
19897
- team?: string | null | undefined;
19898
19897
  org?: string | null | undefined;
19898
+ team?: string | null | undefined;
19899
19899
  description?: string | null | undefined;
19900
19900
  app?: string | undefined;
19901
19901
  created_at?: string | undefined;
@@ -20075,8 +20075,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
20075
20075
  user?: string | null | undefined;
20076
20076
  name?: string | undefined;
20077
20077
  email?: string | null | undefined;
20078
- team?: string | null | undefined;
20079
20078
  org?: string | null | undefined;
20079
+ team?: string | null | undefined;
20080
20080
  description?: string | null | undefined;
20081
20081
  app?: string | undefined;
20082
20082
  created_at?: string | undefined;
@@ -20980,10 +20980,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
20980
20980
  org_slug?: string | null | undefined;
20981
20981
  sandbox_name?: string | null | undefined;
20982
20982
  } | null | undefined;
20983
+ org?: string | null | undefined;
20983
20984
  agent?: string | null | undefined;
20984
20985
  thread?: string | undefined;
20985
20986
  team?: string | null | undefined;
20986
- org?: string | null | undefined;
20987
20987
  type?: string | null | undefined;
20988
20988
  created_at?: string | undefined;
20989
20989
  sandbox?: string | null | undefined;
@@ -21115,10 +21115,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
21115
21115
  org_slug?: string | null | undefined;
21116
21116
  sandbox_name?: string | null | undefined;
21117
21117
  } | null | undefined;
21118
+ org?: string | null | undefined;
21118
21119
  agent?: string | null | undefined;
21119
21120
  thread?: string | undefined;
21120
21121
  team?: string | null | undefined;
21121
- org?: string | null | undefined;
21122
21122
  type?: string | null | undefined;
21123
21123
  created_at?: string | undefined;
21124
21124
  sandbox?: string | null | undefined;
@@ -22357,8 +22357,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
22357
22357
  user?: string | null | undefined;
22358
22358
  name?: string | undefined;
22359
22359
  email?: string | null | undefined;
22360
- team?: string | null | undefined;
22361
22360
  org?: string | null | undefined;
22361
+ team?: string | null | undefined;
22362
22362
  description?: string | null | undefined;
22363
22363
  app?: string | undefined;
22364
22364
  created_at?: string | undefined;
@@ -22535,8 +22535,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
22535
22535
  user?: string | null | undefined;
22536
22536
  name?: string | undefined;
22537
22537
  email?: string | null | undefined;
22538
- team?: string | null | undefined;
22539
22538
  org?: string | null | undefined;
22539
+ team?: string | null | undefined;
22540
22540
  description?: string | null | undefined;
22541
22541
  app?: string | undefined;
22542
22542
  created_at?: string | undefined;
@@ -22727,15 +22727,15 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
22727
22727
  unread_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22728
22728
  updated_at: z.ZodOptional<z.ZodString>;
22729
22729
  user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22730
- visibility: z.ZodEnum<["team", "restricted", "private"]>;
22730
+ visibility: z.ZodEnum<["team", "restricted", "private", "org"]>;
22731
22731
  }, "strip", z.ZodTypeAny, {
22732
22732
  id: string;
22733
- visibility: "team" | "private" | "restricted";
22733
+ visibility: "org" | "team" | "private" | "restricted";
22734
22734
  key?: string | null | undefined;
22735
22735
  user?: string | null | undefined;
22736
+ org?: string | null | undefined;
22736
22737
  kind?: string | null | undefined;
22737
22738
  team?: string | null | undefined;
22738
- org?: string | null | undefined;
22739
22739
  description?: string | null | undefined;
22740
22740
  participants?: {
22741
22741
  id: string;
@@ -22819,10 +22819,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
22819
22819
  org_slug?: string | null | undefined;
22820
22820
  sandbox_name?: string | null | undefined;
22821
22821
  } | null | undefined;
22822
+ org?: string | null | undefined;
22822
22823
  agent?: string | null | undefined;
22823
22824
  thread?: string | undefined;
22824
22825
  team?: string | null | undefined;
22825
- org?: string | null | undefined;
22826
22826
  type?: string | null | undefined;
22827
22827
  created_at?: string | undefined;
22828
22828
  sandbox?: string | null | undefined;
@@ -22938,8 +22938,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
22938
22938
  user?: string | null | undefined;
22939
22939
  name?: string | undefined;
22940
22940
  email?: string | null | undefined;
22941
- team?: string | null | undefined;
22942
22941
  org?: string | null | undefined;
22942
+ team?: string | null | undefined;
22943
22943
  description?: string | null | undefined;
22944
22944
  app?: string | undefined;
22945
22945
  created_at?: string | undefined;
@@ -23121,12 +23121,12 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
23121
23121
  unread_count?: number | null | undefined;
23122
23122
  }, {
23123
23123
  id: string;
23124
- visibility: "team" | "private" | "restricted";
23124
+ visibility: "org" | "team" | "private" | "restricted";
23125
23125
  key?: string | null | undefined;
23126
23126
  user?: string | null | undefined;
23127
+ org?: string | null | undefined;
23127
23128
  kind?: string | null | undefined;
23128
23129
  team?: string | null | undefined;
23129
- org?: string | null | undefined;
23130
23130
  description?: string | null | undefined;
23131
23131
  participants?: {
23132
23132
  id: string;
@@ -23210,10 +23210,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
23210
23210
  org_slug?: string | null | undefined;
23211
23211
  sandbox_name?: string | null | undefined;
23212
23212
  } | null | undefined;
23213
+ org?: string | null | undefined;
23213
23214
  agent?: string | null | undefined;
23214
23215
  thread?: string | undefined;
23215
23216
  team?: string | null | undefined;
23216
- org?: string | null | undefined;
23217
23217
  type?: string | null | undefined;
23218
23218
  created_at?: string | undefined;
23219
23219
  sandbox?: string | null | undefined;
@@ -23329,8 +23329,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
23329
23329
  user?: string | null | undefined;
23330
23330
  name?: string | undefined;
23331
23331
  email?: string | null | undefined;
23332
- team?: string | null | undefined;
23333
23332
  org?: string | null | undefined;
23333
+ team?: string | null | undefined;
23334
23334
  description?: string | null | undefined;
23335
23335
  app?: string | undefined;
23336
23336
  created_at?: string | undefined;
@@ -23514,12 +23514,12 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
23514
23514
  }, "strip", z.ZodTypeAny, {
23515
23515
  thread: {
23516
23516
  id: string;
23517
- visibility: "team" | "private" | "restricted";
23517
+ visibility: "org" | "team" | "private" | "restricted";
23518
23518
  key?: string | null | undefined;
23519
23519
  user?: string | null | undefined;
23520
+ org?: string | null | undefined;
23520
23521
  kind?: string | null | undefined;
23521
23522
  team?: string | null | undefined;
23522
- org?: string | null | undefined;
23523
23523
  description?: string | null | undefined;
23524
23524
  participants?: {
23525
23525
  id: string;
@@ -23603,10 +23603,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
23603
23603
  org_slug?: string | null | undefined;
23604
23604
  sandbox_name?: string | null | undefined;
23605
23605
  } | null | undefined;
23606
+ org?: string | null | undefined;
23606
23607
  agent?: string | null | undefined;
23607
23608
  thread?: string | undefined;
23608
23609
  team?: string | null | undefined;
23609
- org?: string | null | undefined;
23610
23610
  type?: string | null | undefined;
23611
23611
  created_at?: string | undefined;
23612
23612
  sandbox?: string | null | undefined;
@@ -23722,8 +23722,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
23722
23722
  user?: string | null | undefined;
23723
23723
  name?: string | undefined;
23724
23724
  email?: string | null | undefined;
23725
- team?: string | null | undefined;
23726
23725
  org?: string | null | undefined;
23726
+ team?: string | null | undefined;
23727
23727
  description?: string | null | undefined;
23728
23728
  app?: string | undefined;
23729
23729
  created_at?: string | undefined;
@@ -23937,12 +23937,12 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
23937
23937
  chat_model?: {
23938
23938
  thread: {
23939
23939
  id: string;
23940
- visibility: "team" | "private" | "restricted";
23940
+ visibility: "org" | "team" | "private" | "restricted";
23941
23941
  key?: string | null | undefined;
23942
23942
  user?: string | null | undefined;
23943
+ org?: string | null | undefined;
23943
23944
  kind?: string | null | undefined;
23944
23945
  team?: string | null | undefined;
23945
- org?: string | null | undefined;
23946
23946
  description?: string | null | undefined;
23947
23947
  participants?: {
23948
23948
  id: string;
@@ -24026,10 +24026,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
24026
24026
  org_slug?: string | null | undefined;
24027
24027
  sandbox_name?: string | null | undefined;
24028
24028
  } | null | undefined;
24029
+ org?: string | null | undefined;
24029
24030
  agent?: string | null | undefined;
24030
24031
  thread?: string | undefined;
24031
24032
  team?: string | null | undefined;
24032
- org?: string | null | undefined;
24033
24033
  type?: string | null | undefined;
24034
24034
  created_at?: string | undefined;
24035
24035
  sandbox?: string | null | undefined;
@@ -24145,8 +24145,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
24145
24145
  user?: string | null | undefined;
24146
24146
  name?: string | undefined;
24147
24147
  email?: string | null | undefined;
24148
- team?: string | null | undefined;
24149
24148
  org?: string | null | undefined;
24149
+ team?: string | null | undefined;
24150
24150
  description?: string | null | undefined;
24151
24151
  app?: string | undefined;
24152
24152
  created_at?: string | undefined;
@@ -24351,10 +24351,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
24351
24351
  org_slug?: string | null | undefined;
24352
24352
  sandbox_name?: string | null | undefined;
24353
24353
  } | null | undefined;
24354
+ org?: string | null | undefined;
24354
24355
  agent?: string | null | undefined;
24355
24356
  thread?: string | undefined;
24356
24357
  team?: string | null | undefined;
24357
- org?: string | null | undefined;
24358
24358
  type?: string | null | undefined;
24359
24359
  created_at?: string | undefined;
24360
24360
  sandbox?: string | null | undefined;
@@ -24492,8 +24492,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
24492
24492
  user?: string | null | undefined;
24493
24493
  name?: string | undefined;
24494
24494
  email?: string | null | undefined;
24495
- team?: string | null | undefined;
24496
24495
  org?: string | null | undefined;
24496
+ team?: string | null | undefined;
24497
24497
  description?: string | null | undefined;
24498
24498
  app?: string | undefined;
24499
24499
  created_at?: string | undefined;
@@ -24673,8 +24673,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
24673
24673
  user?: string | null | undefined;
24674
24674
  name?: string | undefined;
24675
24675
  email?: string | null | undefined;
24676
- team?: string | null | undefined;
24677
24676
  org?: string | null | undefined;
24677
+ team?: string | null | undefined;
24678
24678
  description?: string | null | undefined;
24679
24679
  app?: string | undefined;
24680
24680
  created_at?: string | undefined;
@@ -24884,12 +24884,12 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
24884
24884
  }, {
24885
24885
  thread: {
24886
24886
  id: string;
24887
- visibility: "team" | "private" | "restricted";
24887
+ visibility: "org" | "team" | "private" | "restricted";
24888
24888
  key?: string | null | undefined;
24889
24889
  user?: string | null | undefined;
24890
+ org?: string | null | undefined;
24890
24891
  kind?: string | null | undefined;
24891
24892
  team?: string | null | undefined;
24892
- org?: string | null | undefined;
24893
24893
  description?: string | null | undefined;
24894
24894
  participants?: {
24895
24895
  id: string;
@@ -24973,10 +24973,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
24973
24973
  org_slug?: string | null | undefined;
24974
24974
  sandbox_name?: string | null | undefined;
24975
24975
  } | null | undefined;
24976
+ org?: string | null | undefined;
24976
24977
  agent?: string | null | undefined;
24977
24978
  thread?: string | undefined;
24978
24979
  team?: string | null | undefined;
24979
- org?: string | null | undefined;
24980
24980
  type?: string | null | undefined;
24981
24981
  created_at?: string | undefined;
24982
24982
  sandbox?: string | null | undefined;
@@ -25092,8 +25092,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
25092
25092
  user?: string | null | undefined;
25093
25093
  name?: string | undefined;
25094
25094
  email?: string | null | undefined;
25095
- team?: string | null | undefined;
25096
25095
  org?: string | null | undefined;
25096
+ team?: string | null | undefined;
25097
25097
  description?: string | null | undefined;
25098
25098
  app?: string | undefined;
25099
25099
  created_at?: string | undefined;
@@ -25307,12 +25307,12 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
25307
25307
  chat_model?: {
25308
25308
  thread: {
25309
25309
  id: string;
25310
- visibility: "team" | "private" | "restricted";
25310
+ visibility: "org" | "team" | "private" | "restricted";
25311
25311
  key?: string | null | undefined;
25312
25312
  user?: string | null | undefined;
25313
+ org?: string | null | undefined;
25313
25314
  kind?: string | null | undefined;
25314
25315
  team?: string | null | undefined;
25315
- org?: string | null | undefined;
25316
25316
  description?: string | null | undefined;
25317
25317
  participants?: {
25318
25318
  id: string;
@@ -25396,10 +25396,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
25396
25396
  org_slug?: string | null | undefined;
25397
25397
  sandbox_name?: string | null | undefined;
25398
25398
  } | null | undefined;
25399
+ org?: string | null | undefined;
25399
25400
  agent?: string | null | undefined;
25400
25401
  thread?: string | undefined;
25401
25402
  team?: string | null | undefined;
25402
- org?: string | null | undefined;
25403
25403
  type?: string | null | undefined;
25404
25404
  created_at?: string | undefined;
25405
25405
  sandbox?: string | null | undefined;
@@ -25515,8 +25515,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
25515
25515
  user?: string | null | undefined;
25516
25516
  name?: string | undefined;
25517
25517
  email?: string | null | undefined;
25518
- team?: string | null | undefined;
25519
25518
  org?: string | null | undefined;
25519
+ team?: string | null | undefined;
25520
25520
  description?: string | null | undefined;
25521
25521
  app?: string | undefined;
25522
25522
  created_at?: string | undefined;
@@ -25721,10 +25721,10 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
25721
25721
  org_slug?: string | null | undefined;
25722
25722
  sandbox_name?: string | null | undefined;
25723
25723
  } | null | undefined;
25724
+ org?: string | null | undefined;
25724
25725
  agent?: string | null | undefined;
25725
25726
  thread?: string | undefined;
25726
25727
  team?: string | null | undefined;
25727
- org?: string | null | undefined;
25728
25728
  type?: string | null | undefined;
25729
25729
  created_at?: string | undefined;
25730
25730
  sandbox?: string | null | undefined;
@@ -25862,8 +25862,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
25862
25862
  user?: string | null | undefined;
25863
25863
  name?: string | undefined;
25864
25864
  email?: string | null | undefined;
25865
- team?: string | null | undefined;
25866
25865
  org?: string | null | undefined;
25866
+ team?: string | null | undefined;
25867
25867
  description?: string | null | undefined;
25868
25868
  app?: string | undefined;
25869
25869
  created_at?: string | undefined;
@@ -26043,8 +26043,8 @@ export declare const chatForkThreadResponseSchema: z.ZodObject<{
26043
26043
  user?: string | null | undefined;
26044
26044
  name?: string | undefined;
26045
26045
  email?: string | null | undefined;
26046
- team?: string | null | undefined;
26047
26046
  org?: string | null | undefined;
26047
+ team?: string | null | undefined;
26048
26048
  description?: string | null | undefined;
26049
26049
  app?: string | undefined;
26050
26050
  created_at?: string | undefined;
@@ -27331,8 +27331,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
27331
27331
  user?: string | null | undefined;
27332
27332
  name?: string | undefined;
27333
27333
  email?: string | null | undefined;
27334
- team?: string | null | undefined;
27335
27334
  org?: string | null | undefined;
27335
+ team?: string | null | undefined;
27336
27336
  description?: string | null | undefined;
27337
27337
  app?: string | undefined;
27338
27338
  created_at?: string | undefined;
@@ -27509,8 +27509,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
27509
27509
  user?: string | null | undefined;
27510
27510
  name?: string | undefined;
27511
27511
  email?: string | null | undefined;
27512
- team?: string | null | undefined;
27513
27512
  org?: string | null | undefined;
27513
+ team?: string | null | undefined;
27514
27514
  description?: string | null | undefined;
27515
27515
  app?: string | undefined;
27516
27516
  created_at?: string | undefined;
@@ -28757,8 +28757,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
28757
28757
  user?: string | null | undefined;
28758
28758
  name?: string | undefined;
28759
28759
  email?: string | null | undefined;
28760
- team?: string | null | undefined;
28761
28760
  org?: string | null | undefined;
28761
+ team?: string | null | undefined;
28762
28762
  description?: string | null | undefined;
28763
28763
  app?: string | undefined;
28764
28764
  created_at?: string | undefined;
@@ -28935,8 +28935,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
28935
28935
  user?: string | null | undefined;
28936
28936
  name?: string | undefined;
28937
28937
  email?: string | null | undefined;
28938
- team?: string | null | undefined;
28939
28938
  org?: string | null | undefined;
28939
+ team?: string | null | undefined;
28940
28940
  description?: string | null | undefined;
28941
28941
  app?: string | undefined;
28942
28942
  created_at?: string | undefined;
@@ -29203,8 +29203,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
29203
29203
  user?: string | null | undefined;
29204
29204
  name?: string | undefined;
29205
29205
  email?: string | null | undefined;
29206
- team?: string | null | undefined;
29207
29206
  org?: string | null | undefined;
29207
+ team?: string | null | undefined;
29208
29208
  description?: string | null | undefined;
29209
29209
  app?: string | undefined;
29210
29210
  created_at?: string | undefined;
@@ -29406,8 +29406,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
29406
29406
  user?: string | null | undefined;
29407
29407
  name?: string | undefined;
29408
29408
  email?: string | null | undefined;
29409
- team?: string | null | undefined;
29410
29409
  org?: string | null | undefined;
29410
+ team?: string | null | undefined;
29411
29411
  description?: string | null | undefined;
29412
29412
  app?: string | undefined;
29413
29413
  created_at?: string | undefined;
@@ -30060,10 +30060,10 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
30060
30060
  org_slug?: string | null | undefined;
30061
30061
  sandbox_name?: string | null | undefined;
30062
30062
  } | null | undefined;
30063
+ org?: string | null | undefined;
30063
30064
  agent?: string | null | undefined;
30064
30065
  thread?: string | undefined;
30065
30066
  team?: string | null | undefined;
30066
- org?: string | null | undefined;
30067
30067
  type?: string | null | undefined;
30068
30068
  created_at?: string | undefined;
30069
30069
  sandbox?: string | null | undefined;
@@ -30195,10 +30195,10 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
30195
30195
  org_slug?: string | null | undefined;
30196
30196
  sandbox_name?: string | null | undefined;
30197
30197
  } | null | undefined;
30198
+ org?: string | null | undefined;
30198
30199
  agent?: string | null | undefined;
30199
30200
  thread?: string | undefined;
30200
30201
  team?: string | null | undefined;
30201
- org?: string | null | undefined;
30202
30202
  type?: string | null | undefined;
30203
30203
  created_at?: string | undefined;
30204
30204
  sandbox?: string | null | undefined;
@@ -31006,10 +31006,10 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
31006
31006
  org_slug?: string | null | undefined;
31007
31007
  sandbox_name?: string | null | undefined;
31008
31008
  } | null | undefined;
31009
+ org?: string | null | undefined;
31009
31010
  agent?: string | null | undefined;
31010
31011
  thread?: string | undefined;
31011
31012
  team?: string | null | undefined;
31012
- org?: string | null | undefined;
31013
31013
  type?: string | null | undefined;
31014
31014
  created_at?: string | undefined;
31015
31015
  sandbox?: string | null | undefined;
@@ -31141,10 +31141,10 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
31141
31141
  org_slug?: string | null | undefined;
31142
31142
  sandbox_name?: string | null | undefined;
31143
31143
  } | null | undefined;
31144
+ org?: string | null | undefined;
31144
31145
  agent?: string | null | undefined;
31145
31146
  thread?: string | undefined;
31146
31147
  team?: string | null | undefined;
31147
- org?: string | null | undefined;
31148
31148
  type?: string | null | undefined;
31149
31149
  created_at?: string | undefined;
31150
31150
  sandbox?: string | null | undefined;
@@ -32383,8 +32383,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
32383
32383
  user?: string | null | undefined;
32384
32384
  name?: string | undefined;
32385
32385
  email?: string | null | undefined;
32386
- team?: string | null | undefined;
32387
32386
  org?: string | null | undefined;
32387
+ team?: string | null | undefined;
32388
32388
  description?: string | null | undefined;
32389
32389
  app?: string | undefined;
32390
32390
  created_at?: string | undefined;
@@ -32561,8 +32561,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
32561
32561
  user?: string | null | undefined;
32562
32562
  name?: string | undefined;
32563
32563
  email?: string | null | undefined;
32564
- team?: string | null | undefined;
32565
32564
  org?: string | null | undefined;
32565
+ team?: string | null | undefined;
32566
32566
  description?: string | null | undefined;
32567
32567
  app?: string | undefined;
32568
32568
  created_at?: string | undefined;
@@ -32753,15 +32753,15 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
32753
32753
  unread_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32754
32754
  updated_at: z.ZodOptional<z.ZodString>;
32755
32755
  user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32756
- visibility: z.ZodEnum<["team", "restricted", "private"]>;
32756
+ visibility: z.ZodEnum<["team", "restricted", "private", "org"]>;
32757
32757
  }, "strip", z.ZodTypeAny, {
32758
32758
  id: string;
32759
- visibility: "team" | "private" | "restricted";
32759
+ visibility: "org" | "team" | "private" | "restricted";
32760
32760
  key?: string | null | undefined;
32761
32761
  user?: string | null | undefined;
32762
+ org?: string | null | undefined;
32762
32763
  kind?: string | null | undefined;
32763
32764
  team?: string | null | undefined;
32764
- org?: string | null | undefined;
32765
32765
  description?: string | null | undefined;
32766
32766
  participants?: {
32767
32767
  id: string;
@@ -32845,10 +32845,10 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
32845
32845
  org_slug?: string | null | undefined;
32846
32846
  sandbox_name?: string | null | undefined;
32847
32847
  } | null | undefined;
32848
+ org?: string | null | undefined;
32848
32849
  agent?: string | null | undefined;
32849
32850
  thread?: string | undefined;
32850
32851
  team?: string | null | undefined;
32851
- org?: string | null | undefined;
32852
32852
  type?: string | null | undefined;
32853
32853
  created_at?: string | undefined;
32854
32854
  sandbox?: string | null | undefined;
@@ -32964,8 +32964,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
32964
32964
  user?: string | null | undefined;
32965
32965
  name?: string | undefined;
32966
32966
  email?: string | null | undefined;
32967
- team?: string | null | undefined;
32968
32967
  org?: string | null | undefined;
32968
+ team?: string | null | undefined;
32969
32969
  description?: string | null | undefined;
32970
32970
  app?: string | undefined;
32971
32971
  created_at?: string | undefined;
@@ -33147,12 +33147,12 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
33147
33147
  unread_count?: number | null | undefined;
33148
33148
  }, {
33149
33149
  id: string;
33150
- visibility: "team" | "private" | "restricted";
33150
+ visibility: "org" | "team" | "private" | "restricted";
33151
33151
  key?: string | null | undefined;
33152
33152
  user?: string | null | undefined;
33153
+ org?: string | null | undefined;
33153
33154
  kind?: string | null | undefined;
33154
33155
  team?: string | null | undefined;
33155
- org?: string | null | undefined;
33156
33156
  description?: string | null | undefined;
33157
33157
  participants?: {
33158
33158
  id: string;
@@ -33236,10 +33236,10 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
33236
33236
  org_slug?: string | null | undefined;
33237
33237
  sandbox_name?: string | null | undefined;
33238
33238
  } | null | undefined;
33239
+ org?: string | null | undefined;
33239
33240
  agent?: string | null | undefined;
33240
33241
  thread?: string | undefined;
33241
33242
  team?: string | null | undefined;
33242
- org?: string | null | undefined;
33243
33243
  type?: string | null | undefined;
33244
33244
  created_at?: string | undefined;
33245
33245
  sandbox?: string | null | undefined;
@@ -33355,8 +33355,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
33355
33355
  user?: string | null | undefined;
33356
33356
  name?: string | undefined;
33357
33357
  email?: string | null | undefined;
33358
- team?: string | null | undefined;
33359
33358
  org?: string | null | undefined;
33359
+ team?: string | null | undefined;
33360
33360
  description?: string | null | undefined;
33361
33361
  app?: string | undefined;
33362
33362
  created_at?: string | undefined;
@@ -33540,12 +33540,12 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
33540
33540
  }, "strip", z.ZodTypeAny, {
33541
33541
  thread: {
33542
33542
  id: string;
33543
- visibility: "team" | "private" | "restricted";
33543
+ visibility: "org" | "team" | "private" | "restricted";
33544
33544
  key?: string | null | undefined;
33545
33545
  user?: string | null | undefined;
33546
+ org?: string | null | undefined;
33546
33547
  kind?: string | null | undefined;
33547
33548
  team?: string | null | undefined;
33548
- org?: string | null | undefined;
33549
33549
  description?: string | null | undefined;
33550
33550
  participants?: {
33551
33551
  id: string;
@@ -33629,10 +33629,10 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
33629
33629
  org_slug?: string | null | undefined;
33630
33630
  sandbox_name?: string | null | undefined;
33631
33631
  } | null | undefined;
33632
+ org?: string | null | undefined;
33632
33633
  agent?: string | null | undefined;
33633
33634
  thread?: string | undefined;
33634
33635
  team?: string | null | undefined;
33635
- org?: string | null | undefined;
33636
33636
  type?: string | null | undefined;
33637
33637
  created_at?: string | undefined;
33638
33638
  sandbox?: string | null | undefined;
@@ -33748,8 +33748,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
33748
33748
  user?: string | null | undefined;
33749
33749
  name?: string | undefined;
33750
33750
  email?: string | null | undefined;
33751
- team?: string | null | undefined;
33752
33751
  org?: string | null | undefined;
33752
+ team?: string | null | undefined;
33753
33753
  description?: string | null | undefined;
33754
33754
  app?: string | undefined;
33755
33755
  created_at?: string | undefined;
@@ -33954,10 +33954,10 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
33954
33954
  org_slug?: string | null | undefined;
33955
33955
  sandbox_name?: string | null | undefined;
33956
33956
  } | null | undefined;
33957
+ org?: string | null | undefined;
33957
33958
  agent?: string | null | undefined;
33958
33959
  thread?: string | undefined;
33959
33960
  team?: string | null | undefined;
33960
- org?: string | null | undefined;
33961
33961
  type?: string | null | undefined;
33962
33962
  created_at?: string | undefined;
33963
33963
  sandbox?: string | null | undefined;
@@ -34095,8 +34095,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
34095
34095
  user?: string | null | undefined;
34096
34096
  name?: string | undefined;
34097
34097
  email?: string | null | undefined;
34098
- team?: string | null | undefined;
34099
34098
  org?: string | null | undefined;
34099
+ team?: string | null | undefined;
34100
34100
  description?: string | null | undefined;
34101
34101
  app?: string | undefined;
34102
34102
  created_at?: string | undefined;
@@ -34276,8 +34276,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
34276
34276
  user?: string | null | undefined;
34277
34277
  name?: string | undefined;
34278
34278
  email?: string | null | undefined;
34279
- team?: string | null | undefined;
34280
34279
  org?: string | null | undefined;
34280
+ team?: string | null | undefined;
34281
34281
  description?: string | null | undefined;
34282
34282
  app?: string | undefined;
34283
34283
  created_at?: string | undefined;
@@ -34486,12 +34486,12 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
34486
34486
  }, {
34487
34487
  thread: {
34488
34488
  id: string;
34489
- visibility: "team" | "private" | "restricted";
34489
+ visibility: "org" | "team" | "private" | "restricted";
34490
34490
  key?: string | null | undefined;
34491
34491
  user?: string | null | undefined;
34492
+ org?: string | null | undefined;
34492
34493
  kind?: string | null | undefined;
34493
34494
  team?: string | null | undefined;
34494
- org?: string | null | undefined;
34495
34495
  description?: string | null | undefined;
34496
34496
  participants?: {
34497
34497
  id: string;
@@ -34575,10 +34575,10 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
34575
34575
  org_slug?: string | null | undefined;
34576
34576
  sandbox_name?: string | null | undefined;
34577
34577
  } | null | undefined;
34578
+ org?: string | null | undefined;
34578
34579
  agent?: string | null | undefined;
34579
34580
  thread?: string | undefined;
34580
34581
  team?: string | null | undefined;
34581
- org?: string | null | undefined;
34582
34582
  type?: string | null | undefined;
34583
34583
  created_at?: string | undefined;
34584
34584
  sandbox?: string | null | undefined;
@@ -34694,8 +34694,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
34694
34694
  user?: string | null | undefined;
34695
34695
  name?: string | undefined;
34696
34696
  email?: string | null | undefined;
34697
- team?: string | null | undefined;
34698
34697
  org?: string | null | undefined;
34698
+ team?: string | null | undefined;
34699
34699
  description?: string | null | undefined;
34700
34700
  app?: string | undefined;
34701
34701
  created_at?: string | undefined;
@@ -34900,10 +34900,10 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
34900
34900
  org_slug?: string | null | undefined;
34901
34901
  sandbox_name?: string | null | undefined;
34902
34902
  } | null | undefined;
34903
+ org?: string | null | undefined;
34903
34904
  agent?: string | null | undefined;
34904
34905
  thread?: string | undefined;
34905
34906
  team?: string | null | undefined;
34906
- org?: string | null | undefined;
34907
34907
  type?: string | null | undefined;
34908
34908
  created_at?: string | undefined;
34909
34909
  sandbox?: string | null | undefined;
@@ -35041,8 +35041,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
35041
35041
  user?: string | null | undefined;
35042
35042
  name?: string | undefined;
35043
35043
  email?: string | null | undefined;
35044
- team?: string | null | undefined;
35045
35044
  org?: string | null | undefined;
35045
+ team?: string | null | undefined;
35046
35046
  description?: string | null | undefined;
35047
35047
  app?: string | undefined;
35048
35048
  created_at?: string | undefined;
@@ -35222,8 +35222,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
35222
35222
  user?: string | null | undefined;
35223
35223
  name?: string | undefined;
35224
35224
  email?: string | null | undefined;
35225
- team?: string | null | undefined;
35226
35225
  org?: string | null | undefined;
35226
+ team?: string | null | undefined;
35227
35227
  description?: string | null | undefined;
35228
35228
  app?: string | undefined;
35229
35229
  created_at?: string | undefined;
@@ -35434,12 +35434,12 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
35434
35434
  data: {
35435
35435
  thread: {
35436
35436
  id: string;
35437
- visibility: "team" | "private" | "restricted";
35437
+ visibility: "org" | "team" | "private" | "restricted";
35438
35438
  key?: string | null | undefined;
35439
35439
  user?: string | null | undefined;
35440
+ org?: string | null | undefined;
35440
35441
  kind?: string | null | undefined;
35441
35442
  team?: string | null | undefined;
35442
- org?: string | null | undefined;
35443
35443
  description?: string | null | undefined;
35444
35444
  participants?: {
35445
35445
  id: string;
@@ -35523,10 +35523,10 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
35523
35523
  org_slug?: string | null | undefined;
35524
35524
  sandbox_name?: string | null | undefined;
35525
35525
  } | null | undefined;
35526
+ org?: string | null | undefined;
35526
35527
  agent?: string | null | undefined;
35527
35528
  thread?: string | undefined;
35528
35529
  team?: string | null | undefined;
35529
- org?: string | null | undefined;
35530
35530
  type?: string | null | undefined;
35531
35531
  created_at?: string | undefined;
35532
35532
  sandbox?: string | null | undefined;
@@ -35642,8 +35642,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
35642
35642
  user?: string | null | undefined;
35643
35643
  name?: string | undefined;
35644
35644
  email?: string | null | undefined;
35645
- team?: string | null | undefined;
35646
35645
  org?: string | null | undefined;
35646
+ team?: string | null | undefined;
35647
35647
  description?: string | null | undefined;
35648
35648
  app?: string | undefined;
35649
35649
  created_at?: string | undefined;
@@ -35848,10 +35848,10 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
35848
35848
  org_slug?: string | null | undefined;
35849
35849
  sandbox_name?: string | null | undefined;
35850
35850
  } | null | undefined;
35851
+ org?: string | null | undefined;
35851
35852
  agent?: string | null | undefined;
35852
35853
  thread?: string | undefined;
35853
35854
  team?: string | null | undefined;
35854
- org?: string | null | undefined;
35855
35855
  type?: string | null | undefined;
35856
35856
  created_at?: string | undefined;
35857
35857
  sandbox?: string | null | undefined;
@@ -35989,8 +35989,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
35989
35989
  user?: string | null | undefined;
35990
35990
  name?: string | undefined;
35991
35991
  email?: string | null | undefined;
35992
- team?: string | null | undefined;
35993
35992
  org?: string | null | undefined;
35993
+ team?: string | null | undefined;
35994
35994
  description?: string | null | undefined;
35995
35995
  app?: string | undefined;
35996
35996
  created_at?: string | undefined;
@@ -36170,8 +36170,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
36170
36170
  user?: string | null | undefined;
36171
36171
  name?: string | undefined;
36172
36172
  email?: string | null | undefined;
36173
- team?: string | null | undefined;
36174
36173
  org?: string | null | undefined;
36174
+ team?: string | null | undefined;
36175
36175
  description?: string | null | undefined;
36176
36176
  app?: string | undefined;
36177
36177
  created_at?: string | undefined;
@@ -36382,12 +36382,12 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
36382
36382
  data: {
36383
36383
  thread: {
36384
36384
  id: string;
36385
- visibility: "team" | "private" | "restricted";
36385
+ visibility: "org" | "team" | "private" | "restricted";
36386
36386
  key?: string | null | undefined;
36387
36387
  user?: string | null | undefined;
36388
+ org?: string | null | undefined;
36388
36389
  kind?: string | null | undefined;
36389
36390
  team?: string | null | undefined;
36390
- org?: string | null | undefined;
36391
36391
  description?: string | null | undefined;
36392
36392
  participants?: {
36393
36393
  id: string;
@@ -36471,10 +36471,10 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
36471
36471
  org_slug?: string | null | undefined;
36472
36472
  sandbox_name?: string | null | undefined;
36473
36473
  } | null | undefined;
36474
+ org?: string | null | undefined;
36474
36475
  agent?: string | null | undefined;
36475
36476
  thread?: string | undefined;
36476
36477
  team?: string | null | undefined;
36477
- org?: string | null | undefined;
36478
36478
  type?: string | null | undefined;
36479
36479
  created_at?: string | undefined;
36480
36480
  sandbox?: string | null | undefined;
@@ -36590,8 +36590,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
36590
36590
  user?: string | null | undefined;
36591
36591
  name?: string | undefined;
36592
36592
  email?: string | null | undefined;
36593
- team?: string | null | undefined;
36594
36593
  org?: string | null | undefined;
36594
+ team?: string | null | undefined;
36595
36595
  description?: string | null | undefined;
36596
36596
  app?: string | undefined;
36597
36597
  created_at?: string | undefined;
@@ -36796,10 +36796,10 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
36796
36796
  org_slug?: string | null | undefined;
36797
36797
  sandbox_name?: string | null | undefined;
36798
36798
  } | null | undefined;
36799
+ org?: string | null | undefined;
36799
36800
  agent?: string | null | undefined;
36800
36801
  thread?: string | undefined;
36801
36802
  team?: string | null | undefined;
36802
- org?: string | null | undefined;
36803
36803
  type?: string | null | undefined;
36804
36804
  created_at?: string | undefined;
36805
36805
  sandbox?: string | null | undefined;
@@ -36937,8 +36937,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
36937
36937
  user?: string | null | undefined;
36938
36938
  name?: string | undefined;
36939
36939
  email?: string | null | undefined;
36940
- team?: string | null | undefined;
36941
36940
  org?: string | null | undefined;
36941
+ team?: string | null | undefined;
36942
36942
  description?: string | null | undefined;
36943
36943
  app?: string | undefined;
36944
36944
  created_at?: string | undefined;
@@ -37118,8 +37118,8 @@ export declare const chatLoadMoreMessagesResponseSchema: z.ZodObject<{
37118
37118
  user?: string | null | undefined;
37119
37119
  name?: string | undefined;
37120
37120
  email?: string | null | undefined;
37121
- team?: string | null | undefined;
37122
37121
  org?: string | null | undefined;
37122
+ team?: string | null | undefined;
37123
37123
  description?: string | null | undefined;
37124
37124
  app?: string | undefined;
37125
37125
  created_at?: string | undefined;
@@ -37455,6 +37455,30 @@ export declare const chatLocalToolRequestSchema: z.ZodObject<{
37455
37455
  id: string;
37456
37456
  }[];
37457
37457
  }>;
37458
+ /** A failed local-tool outcome. */
37459
+ export interface ChatLocalToolResultError {
37460
+ call_id: string;
37461
+ code: string;
37462
+ message: string;
37463
+ status: "error";
37464
+ }
37465
+ /** Runtime validator for {@link ChatLocalToolResultError}. */
37466
+ export declare const chatLocalToolResultErrorSchema: z.ZodObject<{
37467
+ call_id: z.ZodString;
37468
+ code: z.ZodString;
37469
+ message: z.ZodString;
37470
+ status: z.ZodLiteral<"error">;
37471
+ }, "strip", z.ZodTypeAny, {
37472
+ message: string;
37473
+ code: string;
37474
+ status: "error";
37475
+ call_id: string;
37476
+ }, {
37477
+ message: string;
37478
+ code: string;
37479
+ status: "error";
37480
+ call_id: string;
37481
+ }>;
37458
37482
  /** One terminal local-tool outcome returned by the owning client connection. */
37459
37483
  export declare const chatLocalToolResultSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
37460
37484
  call_id: z.ZodString;
@@ -37489,12 +37513,12 @@ export declare const chatLocalToolResultSchema: z.ZodDiscriminatedUnion<"status"
37489
37513
  status: z.ZodLiteral<"cancelled">;
37490
37514
  }, "strip", z.ZodTypeAny, {
37491
37515
  status: "cancelled";
37492
- call_id: string;
37493
37516
  reason: string;
37517
+ call_id: string;
37494
37518
  }, {
37495
37519
  status: "cancelled";
37496
- call_id: string;
37497
37520
  reason: string;
37521
+ call_id: string;
37498
37522
  }>]>;
37499
37523
  /** One terminal local-tool outcome returned by the owning client connection. */
37500
37524
  export type ChatLocalToolResult = z.infer<typeof chatLocalToolResultSchema>;
@@ -37997,10 +38021,10 @@ export declare const chatMessageListResponseSchema: z.ZodObject<{
37997
38021
  org_slug?: string | null | undefined;
37998
38022
  sandbox_name?: string | null | undefined;
37999
38023
  } | null | undefined;
38024
+ org?: string | null | undefined;
38000
38025
  agent?: string | null | undefined;
38001
38026
  thread?: string | undefined;
38002
38027
  team?: string | null | undefined;
38003
- org?: string | null | undefined;
38004
38028
  type?: string | null | undefined;
38005
38029
  created_at?: string | undefined;
38006
38030
  sandbox?: string | null | undefined;
@@ -38132,10 +38156,10 @@ export declare const chatMessageListResponseSchema: z.ZodObject<{
38132
38156
  org_slug?: string | null | undefined;
38133
38157
  sandbox_name?: string | null | undefined;
38134
38158
  } | null | undefined;
38159
+ org?: string | null | undefined;
38135
38160
  agent?: string | null | undefined;
38136
38161
  thread?: string | undefined;
38137
38162
  team?: string | null | undefined;
38138
- org?: string | null | undefined;
38139
38163
  type?: string | null | undefined;
38140
38164
  created_at?: string | undefined;
38141
38165
  sandbox?: string | null | undefined;
@@ -38269,10 +38293,10 @@ export declare const chatMessageListResponseSchema: z.ZodObject<{
38269
38293
  org_slug?: string | null | undefined;
38270
38294
  sandbox_name?: string | null | undefined;
38271
38295
  } | null | undefined;
38296
+ org?: string | null | undefined;
38272
38297
  agent?: string | null | undefined;
38273
38298
  thread?: string | undefined;
38274
38299
  team?: string | null | undefined;
38275
- org?: string | null | undefined;
38276
38300
  type?: string | null | undefined;
38277
38301
  created_at?: string | undefined;
38278
38302
  sandbox?: string | null | undefined;
@@ -38406,10 +38430,10 @@ export declare const chatMessageListResponseSchema: z.ZodObject<{
38406
38430
  org_slug?: string | null | undefined;
38407
38431
  sandbox_name?: string | null | undefined;
38408
38432
  } | null | undefined;
38433
+ org?: string | null | undefined;
38409
38434
  agent?: string | null | undefined;
38410
38435
  thread?: string | undefined;
38411
38436
  team?: string | null | undefined;
38412
- org?: string | null | undefined;
38413
38437
  type?: string | null | undefined;
38414
38438
  created_at?: string | undefined;
38415
38439
  sandbox?: string | null | undefined;
@@ -39004,10 +39028,10 @@ export declare const chatPostMessageResponseSchema: z.ZodObject<{
39004
39028
  org_slug?: string | null | undefined;
39005
39029
  sandbox_name?: string | null | undefined;
39006
39030
  } | null | undefined;
39031
+ org?: string | null | undefined;
39007
39032
  agent?: string | null | undefined;
39008
39033
  thread?: string | undefined;
39009
39034
  team?: string | null | undefined;
39010
- org?: string | null | undefined;
39011
39035
  type?: string | null | undefined;
39012
39036
  created_at?: string | undefined;
39013
39037
  sandbox?: string | null | undefined;
@@ -39139,10 +39163,10 @@ export declare const chatPostMessageResponseSchema: z.ZodObject<{
39139
39163
  org_slug?: string | null | undefined;
39140
39164
  sandbox_name?: string | null | undefined;
39141
39165
  } | null | undefined;
39166
+ org?: string | null | undefined;
39142
39167
  agent?: string | null | undefined;
39143
39168
  thread?: string | undefined;
39144
39169
  team?: string | null | undefined;
39145
- org?: string | null | undefined;
39146
39170
  type?: string | null | undefined;
39147
39171
  created_at?: string | undefined;
39148
39172
  sandbox?: string | null | undefined;
@@ -39276,10 +39300,10 @@ export declare const chatPostMessageResponseSchema: z.ZodObject<{
39276
39300
  org_slug?: string | null | undefined;
39277
39301
  sandbox_name?: string | null | undefined;
39278
39302
  } | null | undefined;
39303
+ org?: string | null | undefined;
39279
39304
  agent?: string | null | undefined;
39280
39305
  thread?: string | undefined;
39281
39306
  team?: string | null | undefined;
39282
- org?: string | null | undefined;
39283
39307
  type?: string | null | undefined;
39284
39308
  created_at?: string | undefined;
39285
39309
  sandbox?: string | null | undefined;
@@ -39413,10 +39437,10 @@ export declare const chatPostMessageResponseSchema: z.ZodObject<{
39413
39437
  org_slug?: string | null | undefined;
39414
39438
  sandbox_name?: string | null | undefined;
39415
39439
  } | null | undefined;
39440
+ org?: string | null | undefined;
39416
39441
  agent?: string | null | undefined;
39417
39442
  thread?: string | undefined;
39418
39443
  team?: string | null | undefined;
39419
- org?: string | null | undefined;
39420
39444
  type?: string | null | undefined;
39421
39445
  created_at?: string | undefined;
39422
39446
  sandbox?: string | null | undefined;