@archastro/sdk 0.21.0 → 0.22.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 (114) hide show
  1. package/dist/channels/api_chat_channel.d.ts +3 -1
  2. package/dist/channels/api_chat_channel.d.ts.map +1 -1
  3. package/dist/channels/api_chat_channel.js +6 -2
  4. package/dist/channels/api_chat_channel.js.map +1 -1
  5. package/dist/client.d.ts +4 -0
  6. package/dist/client.d.ts.map +1 -1
  7. package/dist/client.js +5 -1
  8. package/dist/client.js.map +1 -1
  9. package/dist/types/artifacts.d.ts +97 -0
  10. package/dist/types/artifacts.d.ts.map +1 -1
  11. package/dist/types/automations.d.ts +4 -4
  12. package/dist/types/automations.d.ts.map +1 -1
  13. package/dist/types/automations.js +5 -5
  14. package/dist/types/automations.js.map +1 -1
  15. package/dist/types/chat.d.ts +3762 -0
  16. package/dist/types/chat.d.ts.map +1 -1
  17. package/dist/types/common.d.ts +2585 -152
  18. package/dist/types/common.d.ts.map +1 -1
  19. package/dist/types/common.js +48 -12
  20. package/dist/types/common.js.map +1 -1
  21. package/dist/types/computers.d.ts +20 -0
  22. package/dist/types/computers.d.ts.map +1 -1
  23. package/dist/types/computers.js +8 -1
  24. package/dist/types/computers.js.map +1 -1
  25. package/dist/types/tasks.d.ts +244 -3
  26. package/dist/types/tasks.d.ts.map +1 -1
  27. package/dist/types/tasks.js +46 -4
  28. package/dist/types/tasks.js.map +1 -1
  29. package/dist/types/teams.d.ts +381 -0
  30. package/dist/types/teams.d.ts.map +1 -1
  31. package/dist/types/threads.d.ts +357 -0
  32. package/dist/types/threads.d.ts.map +1 -1
  33. package/dist/types/threads.js +3 -1
  34. package/dist/types/threads.js.map +1 -1
  35. package/dist/v1/resources/activity_feed.d.ts +15 -0
  36. package/dist/v1/resources/activity_feed.d.ts.map +1 -1
  37. package/dist/v1/resources/activity_feed.js +1 -1
  38. package/dist/v1/resources/agent_computers.d.ts +15 -0
  39. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  40. package/dist/v1/resources/agent_computers.js +1 -1
  41. package/dist/v1/resources/agent_computers.js.map +1 -1
  42. package/dist/v1/resources/agent_requests.d.ts +8 -0
  43. package/dist/v1/resources/agent_requests.d.ts.map +1 -1
  44. package/dist/v1/resources/agent_requests.js +9 -1
  45. package/dist/v1/resources/agent_requests.js.map +1 -1
  46. package/dist/v1/resources/agent_routines.d.ts +15 -0
  47. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  48. package/dist/v1/resources/agent_routines.js +1 -1
  49. package/dist/v1/resources/agent_routines.js.map +1 -1
  50. package/dist/v1/resources/agents.d.ts +65 -0
  51. package/dist/v1/resources/agents.d.ts.map +1 -1
  52. package/dist/v1/resources/agents.js +2 -1
  53. package/dist/v1/resources/agents.js.map +1 -1
  54. package/dist/v1/resources/artifacts.d.ts +30 -0
  55. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  56. package/dist/v1/resources/artifacts.js +1 -1
  57. package/dist/v1/resources/artifacts.js.map +1 -1
  58. package/dist/v1/resources/automation_runs.d.ts +6 -2
  59. package/dist/v1/resources/automation_runs.d.ts.map +1 -1
  60. package/dist/v1/resources/automation_runs.js +10 -4
  61. package/dist/v1/resources/automation_runs.js.map +1 -1
  62. package/dist/v1/resources/computers.d.ts +113 -0
  63. package/dist/v1/resources/computers.d.ts.map +1 -0
  64. package/dist/v1/resources/computers.js +113 -0
  65. package/dist/v1/resources/computers.js.map +1 -0
  66. package/dist/v1/resources/custom_objects.d.ts +60 -0
  67. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  68. package/dist/v1/resources/custom_objects.js +1 -1
  69. package/dist/v1/resources/custom_objects.js.map +1 -1
  70. package/dist/v1/resources/files.d.ts +24 -0
  71. package/dist/v1/resources/files.d.ts.map +1 -1
  72. package/dist/v1/resources/files.js +8 -1
  73. package/dist/v1/resources/files.js.map +1 -1
  74. package/dist/v1/resources/index.d.ts +2 -0
  75. package/dist/v1/resources/index.d.ts.map +1 -1
  76. package/dist/v1/resources/index.js +3 -1
  77. package/dist/v1/resources/index.js.map +1 -1
  78. package/dist/v1/resources/orgs.d.ts +317 -40
  79. package/dist/v1/resources/orgs.d.ts.map +1 -1
  80. package/dist/v1/resources/orgs.js +151 -31
  81. package/dist/v1/resources/orgs.js.map +1 -1
  82. package/dist/v1/resources/solutions.d.ts +15 -0
  83. package/dist/v1/resources/solutions.d.ts.map +1 -1
  84. package/dist/v1/resources/solutions.js +1 -1
  85. package/dist/v1/resources/solutions.js.map +1 -1
  86. package/dist/v1/resources/task_epics.d.ts +85 -0
  87. package/dist/v1/resources/task_epics.d.ts.map +1 -0
  88. package/dist/v1/resources/task_epics.js +71 -0
  89. package/dist/v1/resources/task_epics.js.map +1 -0
  90. package/dist/v1/resources/tasks.d.ts +61 -1
  91. package/dist/v1/resources/tasks.d.ts.map +1 -1
  92. package/dist/v1/resources/tasks.js +40 -2
  93. package/dist/v1/resources/tasks.js.map +1 -1
  94. package/dist/v1/resources/teams.d.ts +337 -51
  95. package/dist/v1/resources/teams.d.ts.map +1 -1
  96. package/dist/v1/resources/teams.js +111 -45
  97. package/dist/v1/resources/teams.js.map +1 -1
  98. package/dist/v1/resources/thread_messages.d.ts +15 -0
  99. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  100. package/dist/v1/resources/thread_messages.js +1 -1
  101. package/dist/v1/resources/thread_messages.js.map +1 -1
  102. package/dist/v1/resources/threads.d.ts +53 -3
  103. package/dist/v1/resources/threads.d.ts.map +1 -1
  104. package/dist/v1/resources/threads.js +5 -4
  105. package/dist/v1/resources/threads.js.map +1 -1
  106. package/dist/v1/resources/users.d.ts +294 -51
  107. package/dist/v1/resources/users.d.ts.map +1 -1
  108. package/dist/v1/resources/users.js +139 -45
  109. package/dist/v1/resources/users.js.map +1 -1
  110. package/dist/v1.d.ts +4 -0
  111. package/dist/v1.d.ts.map +1 -1
  112. package/dist/v1.js +7 -1
  113. package/dist/v1.js.map +1 -1
  114. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import type { AutomationParticipantSlot, AutomationPrefills } from "./automations.js";
3
+ import type { ComputerRepository } from "./computers.js";
3
4
  import type { Config } from "./config.js";
4
5
  import type { ImageSource } from "./image.js";
5
6
  import type { User } from "./users.js";
@@ -70,10 +71,18 @@ export declare const aclRemoveTargetSchema: z.ZodObject<{
70
71
  export interface Acl {
71
72
  /** Patch mode: grants to add or merge into the existing list. Cannot be combined with `grants`. */
72
73
  add?: AclGrant[] | undefined;
74
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
75
+ add_denies?: AclGrant[] | undefined;
76
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
77
+ denies?: AclGrant[] | undefined;
73
78
  /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
74
79
  grants?: AclGrant[] | undefined;
80
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
81
+ preserve_denies?: boolean | undefined;
75
82
  /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
76
83
  remove?: AclRemoveTarget[] | undefined;
84
+ /** Patch mode: principals whose denies should be removed. */
85
+ remove_denies?: AclRemoveTarget[] | undefined;
77
86
  }
78
87
  /** Runtime validator for {@link Acl}. */
79
88
  export declare const aclSchema: z.ZodObject<{
@@ -94,6 +103,40 @@ export declare const aclSchema: z.ZodObject<{
94
103
  principal_type: string;
95
104
  principal?: string | undefined;
96
105
  }>, "many">>;
106
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
107
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
108
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
109
+ actions: z.ZodArray<z.ZodString, "many">;
110
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
111
+ principal: z.ZodOptional<z.ZodString>;
112
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
113
+ principal_type: z.ZodString;
114
+ }, "strip", z.ZodTypeAny, {
115
+ actions: string[];
116
+ principal_type: string;
117
+ principal?: string | undefined;
118
+ }, {
119
+ actions: string[];
120
+ principal_type: string;
121
+ principal?: string | undefined;
122
+ }>, "many">>;
123
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
124
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
125
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
126
+ actions: z.ZodArray<z.ZodString, "many">;
127
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
128
+ principal: z.ZodOptional<z.ZodString>;
129
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
130
+ principal_type: z.ZodString;
131
+ }, "strip", z.ZodTypeAny, {
132
+ actions: string[];
133
+ principal_type: string;
134
+ principal?: string | undefined;
135
+ }, {
136
+ actions: string[];
137
+ principal_type: string;
138
+ principal?: string | undefined;
139
+ }>, "many">>;
97
140
  /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
98
141
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
99
142
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
@@ -111,6 +154,8 @@ export declare const aclSchema: z.ZodObject<{
111
154
  principal_type: string;
112
155
  principal?: string | undefined;
113
156
  }>, "many">>;
157
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
158
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
114
159
  /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
115
160
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
116
161
  /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
@@ -124,36 +169,79 @@ export declare const aclSchema: z.ZodObject<{
124
169
  principal_type: string;
125
170
  principal?: string | undefined;
126
171
  }>, "many">>;
172
+ /** Patch mode: principals whose denies should be removed. */
173
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
174
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
175
+ principal: z.ZodOptional<z.ZodString>;
176
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
177
+ principal_type: z.ZodString;
178
+ }, "strip", z.ZodTypeAny, {
179
+ principal_type: string;
180
+ principal?: string | undefined;
181
+ }, {
182
+ principal_type: string;
183
+ principal?: string | undefined;
184
+ }>, "many">>;
127
185
  }, "strip", z.ZodTypeAny, {
128
186
  add?: {
129
187
  actions: string[];
130
188
  principal_type: string;
131
189
  principal?: string | undefined;
132
190
  }[] | undefined;
191
+ add_denies?: {
192
+ actions: string[];
193
+ principal_type: string;
194
+ principal?: string | undefined;
195
+ }[] | undefined;
196
+ denies?: {
197
+ actions: string[];
198
+ principal_type: string;
199
+ principal?: string | undefined;
200
+ }[] | undefined;
133
201
  grants?: {
134
202
  actions: string[];
135
203
  principal_type: string;
136
204
  principal?: string | undefined;
137
205
  }[] | undefined;
206
+ preserve_denies?: boolean | undefined;
138
207
  remove?: {
139
208
  principal_type: string;
140
209
  principal?: string | undefined;
141
210
  }[] | undefined;
211
+ remove_denies?: {
212
+ principal_type: string;
213
+ principal?: string | undefined;
214
+ }[] | undefined;
142
215
  }, {
143
216
  add?: {
144
217
  actions: string[];
145
218
  principal_type: string;
146
219
  principal?: string | undefined;
147
220
  }[] | undefined;
221
+ add_denies?: {
222
+ actions: string[];
223
+ principal_type: string;
224
+ principal?: string | undefined;
225
+ }[] | undefined;
226
+ denies?: {
227
+ actions: string[];
228
+ principal_type: string;
229
+ principal?: string | undefined;
230
+ }[] | undefined;
148
231
  grants?: {
149
232
  actions: string[];
150
233
  principal_type: string;
151
234
  principal?: string | undefined;
152
235
  }[] | undefined;
236
+ preserve_denies?: boolean | undefined;
153
237
  remove?: {
154
238
  principal_type: string;
155
239
  principal?: string | undefined;
156
240
  }[] | undefined;
241
+ remove_denies?: {
242
+ principal_type: string;
243
+ principal?: string | undefined;
244
+ }[] | undefined;
157
245
  }>;
158
246
  /** A single event record in an activity feed, capturing what happened, who caused it, and which resources were involved. */
159
247
  export interface ActivityFeedEntry {
@@ -165,15 +253,30 @@ export interface ActivityFeedEntry {
165
253
  principal?: string | undefined;
166
254
  principal_type: string;
167
255
  }[] | undefined;
256
+ add_denies?: {
257
+ actions: string[];
258
+ principal?: string | undefined;
259
+ principal_type: string;
260
+ }[] | undefined;
261
+ denies?: {
262
+ actions: string[];
263
+ principal?: string | undefined;
264
+ principal_type: string;
265
+ }[] | undefined;
168
266
  grants?: {
169
267
  actions: string[];
170
268
  principal?: string | undefined;
171
269
  principal_type: string;
172
270
  }[] | undefined;
271
+ preserve_denies?: boolean | undefined;
173
272
  remove?: {
174
273
  principal?: string | undefined;
175
274
  principal_type: string;
176
275
  }[] | undefined;
276
+ remove_denies?: {
277
+ principal?: string | undefined;
278
+ principal_type: string;
279
+ }[] | undefined;
177
280
  } | null | undefined;
178
281
  app?: string | undefined;
179
282
  created_at?: string | undefined;
@@ -414,6 +517,32 @@ export declare const activityFeedEntrySchema: z.ZodObject<{
414
517
  principal_type: string;
415
518
  principal?: string | undefined;
416
519
  }>, "many">>;
520
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
521
+ actions: z.ZodArray<z.ZodString, "many">;
522
+ principal: z.ZodOptional<z.ZodString>;
523
+ principal_type: z.ZodString;
524
+ }, "strip", z.ZodTypeAny, {
525
+ actions: string[];
526
+ principal_type: string;
527
+ principal?: string | undefined;
528
+ }, {
529
+ actions: string[];
530
+ principal_type: string;
531
+ principal?: string | undefined;
532
+ }>, "many">>;
533
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
534
+ actions: z.ZodArray<z.ZodString, "many">;
535
+ principal: z.ZodOptional<z.ZodString>;
536
+ principal_type: z.ZodString;
537
+ }, "strip", z.ZodTypeAny, {
538
+ actions: string[];
539
+ principal_type: string;
540
+ principal?: string | undefined;
541
+ }, {
542
+ actions: string[];
543
+ principal_type: string;
544
+ principal?: string | undefined;
545
+ }>, "many">>;
417
546
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
418
547
  actions: z.ZodArray<z.ZodString, "many">;
419
548
  principal: z.ZodOptional<z.ZodString>;
@@ -427,6 +556,7 @@ export declare const activityFeedEntrySchema: z.ZodObject<{
427
556
  principal_type: string;
428
557
  principal?: string | undefined;
429
558
  }>, "many">>;
559
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
430
560
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
431
561
  principal: z.ZodOptional<z.ZodString>;
432
562
  principal_type: z.ZodString;
@@ -437,36 +567,76 @@ export declare const activityFeedEntrySchema: z.ZodObject<{
437
567
  principal_type: string;
438
568
  principal?: string | undefined;
439
569
  }>, "many">>;
570
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
571
+ principal: z.ZodOptional<z.ZodString>;
572
+ principal_type: z.ZodString;
573
+ }, "strip", z.ZodTypeAny, {
574
+ principal_type: string;
575
+ principal?: string | undefined;
576
+ }, {
577
+ principal_type: string;
578
+ principal?: string | undefined;
579
+ }>, "many">>;
440
580
  }, "strip", z.ZodTypeAny, {
441
581
  add?: {
442
582
  actions: string[];
443
583
  principal_type: string;
444
584
  principal?: string | undefined;
445
585
  }[] | undefined;
586
+ add_denies?: {
587
+ actions: string[];
588
+ principal_type: string;
589
+ principal?: string | undefined;
590
+ }[] | undefined;
591
+ denies?: {
592
+ actions: string[];
593
+ principal_type: string;
594
+ principal?: string | undefined;
595
+ }[] | undefined;
446
596
  grants?: {
447
597
  actions: string[];
448
598
  principal_type: string;
449
599
  principal?: string | undefined;
450
600
  }[] | undefined;
601
+ preserve_denies?: boolean | undefined;
451
602
  remove?: {
452
603
  principal_type: string;
453
604
  principal?: string | undefined;
454
605
  }[] | undefined;
606
+ remove_denies?: {
607
+ principal_type: string;
608
+ principal?: string | undefined;
609
+ }[] | undefined;
455
610
  }, {
456
611
  add?: {
457
612
  actions: string[];
458
613
  principal_type: string;
459
614
  principal?: string | undefined;
460
615
  }[] | undefined;
616
+ add_denies?: {
617
+ actions: string[];
618
+ principal_type: string;
619
+ principal?: string | undefined;
620
+ }[] | undefined;
621
+ denies?: {
622
+ actions: string[];
623
+ principal_type: string;
624
+ principal?: string | undefined;
625
+ }[] | undefined;
461
626
  grants?: {
462
627
  actions: string[];
463
628
  principal_type: string;
464
629
  principal?: string | undefined;
465
630
  }[] | undefined;
631
+ preserve_denies?: boolean | undefined;
466
632
  remove?: {
467
633
  principal_type: string;
468
634
  principal?: string | undefined;
469
635
  }[] | undefined;
636
+ remove_denies?: {
637
+ principal_type: string;
638
+ principal?: string | undefined;
639
+ }[] | undefined;
470
640
  }>>>;
471
641
  app: z.ZodOptional<z.ZodString>;
472
642
  created_at: z.ZodOptional<z.ZodString>;
@@ -1482,15 +1652,30 @@ export declare const activityFeedEntrySchema: z.ZodObject<{
1482
1652
  principal_type: string;
1483
1653
  principal?: string | undefined;
1484
1654
  }[] | undefined;
1655
+ add_denies?: {
1656
+ actions: string[];
1657
+ principal_type: string;
1658
+ principal?: string | undefined;
1659
+ }[] | undefined;
1660
+ denies?: {
1661
+ actions: string[];
1662
+ principal_type: string;
1663
+ principal?: string | undefined;
1664
+ }[] | undefined;
1485
1665
  grants?: {
1486
1666
  actions: string[];
1487
1667
  principal_type: string;
1488
1668
  principal?: string | undefined;
1489
1669
  }[] | undefined;
1670
+ preserve_denies?: boolean | undefined;
1490
1671
  remove?: {
1491
1672
  principal_type: string;
1492
1673
  principal?: string | undefined;
1493
1674
  }[] | undefined;
1675
+ remove_denies?: {
1676
+ principal_type: string;
1677
+ principal?: string | undefined;
1678
+ }[] | undefined;
1494
1679
  } | null | undefined;
1495
1680
  default_model?: string | null | undefined;
1496
1681
  identity?: string | null | undefined;
@@ -1660,15 +1845,30 @@ export declare const activityFeedEntrySchema: z.ZodObject<{
1660
1845
  principal_type: string;
1661
1846
  principal?: string | undefined;
1662
1847
  }[] | undefined;
1848
+ add_denies?: {
1849
+ actions: string[];
1850
+ principal_type: string;
1851
+ principal?: string | undefined;
1852
+ }[] | undefined;
1853
+ denies?: {
1854
+ actions: string[];
1855
+ principal_type: string;
1856
+ principal?: string | undefined;
1857
+ }[] | undefined;
1663
1858
  grants?: {
1664
1859
  actions: string[];
1665
1860
  principal_type: string;
1666
1861
  principal?: string | undefined;
1667
1862
  }[] | undefined;
1863
+ preserve_denies?: boolean | undefined;
1668
1864
  remove?: {
1669
1865
  principal_type: string;
1670
1866
  principal?: string | undefined;
1671
1867
  }[] | undefined;
1868
+ remove_denies?: {
1869
+ principal_type: string;
1870
+ principal?: string | undefined;
1871
+ }[] | undefined;
1672
1872
  } | null | undefined;
1673
1873
  default_model?: string | null | undefined;
1674
1874
  identity?: string | null | undefined;
@@ -1964,15 +2164,30 @@ export declare const activityFeedEntrySchema: z.ZodObject<{
1964
2164
  principal_type: string;
1965
2165
  principal?: string | undefined;
1966
2166
  }[] | undefined;
2167
+ add_denies?: {
2168
+ actions: string[];
2169
+ principal_type: string;
2170
+ principal?: string | undefined;
2171
+ }[] | undefined;
2172
+ denies?: {
2173
+ actions: string[];
2174
+ principal_type: string;
2175
+ principal?: string | undefined;
2176
+ }[] | undefined;
1967
2177
  grants?: {
1968
2178
  actions: string[];
1969
2179
  principal_type: string;
1970
2180
  principal?: string | undefined;
1971
2181
  }[] | undefined;
2182
+ preserve_denies?: boolean | undefined;
1972
2183
  remove?: {
1973
2184
  principal_type: string;
1974
2185
  principal?: string | undefined;
1975
2186
  }[] | undefined;
2187
+ remove_denies?: {
2188
+ principal_type: string;
2189
+ principal?: string | undefined;
2190
+ }[] | undefined;
1976
2191
  } | null | undefined;
1977
2192
  default_model?: string | null | undefined;
1978
2193
  identity?: string | null | undefined;
@@ -2183,15 +2398,30 @@ export declare const activityFeedEntrySchema: z.ZodObject<{
2183
2398
  principal_type: string;
2184
2399
  principal?: string | undefined;
2185
2400
  }[] | undefined;
2401
+ add_denies?: {
2402
+ actions: string[];
2403
+ principal_type: string;
2404
+ principal?: string | undefined;
2405
+ }[] | undefined;
2406
+ denies?: {
2407
+ actions: string[];
2408
+ principal_type: string;
2409
+ principal?: string | undefined;
2410
+ }[] | undefined;
2186
2411
  grants?: {
2187
2412
  actions: string[];
2188
2413
  principal_type: string;
2189
2414
  principal?: string | undefined;
2190
2415
  }[] | undefined;
2416
+ preserve_denies?: boolean | undefined;
2191
2417
  remove?: {
2192
2418
  principal_type: string;
2193
2419
  principal?: string | undefined;
2194
2420
  }[] | undefined;
2421
+ remove_denies?: {
2422
+ principal_type: string;
2423
+ principal?: string | undefined;
2424
+ }[] | undefined;
2195
2425
  } | null | undefined;
2196
2426
  default_model?: string | null | undefined;
2197
2427
  identity?: string | null | undefined;
@@ -2390,6 +2620,32 @@ export declare const activityFeedEntryListResponseSchema: z.ZodObject<{
2390
2620
  principal_type: string;
2391
2621
  principal?: string | undefined;
2392
2622
  }>, "many">>;
2623
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
2624
+ actions: z.ZodArray<z.ZodString, "many">;
2625
+ principal: z.ZodOptional<z.ZodString>;
2626
+ principal_type: z.ZodString;
2627
+ }, "strip", z.ZodTypeAny, {
2628
+ actions: string[];
2629
+ principal_type: string;
2630
+ principal?: string | undefined;
2631
+ }, {
2632
+ actions: string[];
2633
+ principal_type: string;
2634
+ principal?: string | undefined;
2635
+ }>, "many">>;
2636
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
2637
+ actions: z.ZodArray<z.ZodString, "many">;
2638
+ principal: z.ZodOptional<z.ZodString>;
2639
+ principal_type: z.ZodString;
2640
+ }, "strip", z.ZodTypeAny, {
2641
+ actions: string[];
2642
+ principal_type: string;
2643
+ principal?: string | undefined;
2644
+ }, {
2645
+ actions: string[];
2646
+ principal_type: string;
2647
+ principal?: string | undefined;
2648
+ }>, "many">>;
2393
2649
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
2394
2650
  actions: z.ZodArray<z.ZodString, "many">;
2395
2651
  principal: z.ZodOptional<z.ZodString>;
@@ -2403,6 +2659,7 @@ export declare const activityFeedEntryListResponseSchema: z.ZodObject<{
2403
2659
  principal_type: string;
2404
2660
  principal?: string | undefined;
2405
2661
  }>, "many">>;
2662
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
2406
2663
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
2407
2664
  principal: z.ZodOptional<z.ZodString>;
2408
2665
  principal_type: z.ZodString;
@@ -2413,36 +2670,76 @@ export declare const activityFeedEntryListResponseSchema: z.ZodObject<{
2413
2670
  principal_type: string;
2414
2671
  principal?: string | undefined;
2415
2672
  }>, "many">>;
2673
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
2674
+ principal: z.ZodOptional<z.ZodString>;
2675
+ principal_type: z.ZodString;
2676
+ }, "strip", z.ZodTypeAny, {
2677
+ principal_type: string;
2678
+ principal?: string | undefined;
2679
+ }, {
2680
+ principal_type: string;
2681
+ principal?: string | undefined;
2682
+ }>, "many">>;
2416
2683
  }, "strip", z.ZodTypeAny, {
2417
2684
  add?: {
2418
2685
  actions: string[];
2419
2686
  principal_type: string;
2420
2687
  principal?: string | undefined;
2421
2688
  }[] | undefined;
2689
+ add_denies?: {
2690
+ actions: string[];
2691
+ principal_type: string;
2692
+ principal?: string | undefined;
2693
+ }[] | undefined;
2694
+ denies?: {
2695
+ actions: string[];
2696
+ principal_type: string;
2697
+ principal?: string | undefined;
2698
+ }[] | undefined;
2422
2699
  grants?: {
2423
2700
  actions: string[];
2424
2701
  principal_type: string;
2425
2702
  principal?: string | undefined;
2426
2703
  }[] | undefined;
2704
+ preserve_denies?: boolean | undefined;
2427
2705
  remove?: {
2428
2706
  principal_type: string;
2429
2707
  principal?: string | undefined;
2430
2708
  }[] | undefined;
2709
+ remove_denies?: {
2710
+ principal_type: string;
2711
+ principal?: string | undefined;
2712
+ }[] | undefined;
2431
2713
  }, {
2432
2714
  add?: {
2433
2715
  actions: string[];
2434
2716
  principal_type: string;
2435
2717
  principal?: string | undefined;
2436
2718
  }[] | undefined;
2719
+ add_denies?: {
2720
+ actions: string[];
2721
+ principal_type: string;
2722
+ principal?: string | undefined;
2723
+ }[] | undefined;
2724
+ denies?: {
2725
+ actions: string[];
2726
+ principal_type: string;
2727
+ principal?: string | undefined;
2728
+ }[] | undefined;
2437
2729
  grants?: {
2438
2730
  actions: string[];
2439
2731
  principal_type: string;
2440
2732
  principal?: string | undefined;
2441
2733
  }[] | undefined;
2734
+ preserve_denies?: boolean | undefined;
2442
2735
  remove?: {
2443
2736
  principal_type: string;
2444
2737
  principal?: string | undefined;
2445
2738
  }[] | undefined;
2739
+ remove_denies?: {
2740
+ principal_type: string;
2741
+ principal?: string | undefined;
2742
+ }[] | undefined;
2446
2743
  }>>>;
2447
2744
  app: z.ZodOptional<z.ZodString>;
2448
2745
  created_at: z.ZodOptional<z.ZodString>;
@@ -3458,15 +3755,30 @@ export declare const activityFeedEntryListResponseSchema: z.ZodObject<{
3458
3755
  principal_type: string;
3459
3756
  principal?: string | undefined;
3460
3757
  }[] | undefined;
3758
+ add_denies?: {
3759
+ actions: string[];
3760
+ principal_type: string;
3761
+ principal?: string | undefined;
3762
+ }[] | undefined;
3763
+ denies?: {
3764
+ actions: string[];
3765
+ principal_type: string;
3766
+ principal?: string | undefined;
3767
+ }[] | undefined;
3461
3768
  grants?: {
3462
3769
  actions: string[];
3463
3770
  principal_type: string;
3464
3771
  principal?: string | undefined;
3465
3772
  }[] | undefined;
3773
+ preserve_denies?: boolean | undefined;
3466
3774
  remove?: {
3467
3775
  principal_type: string;
3468
3776
  principal?: string | undefined;
3469
3777
  }[] | undefined;
3778
+ remove_denies?: {
3779
+ principal_type: string;
3780
+ principal?: string | undefined;
3781
+ }[] | undefined;
3470
3782
  } | null | undefined;
3471
3783
  default_model?: string | null | undefined;
3472
3784
  identity?: string | null | undefined;
@@ -3636,15 +3948,30 @@ export declare const activityFeedEntryListResponseSchema: z.ZodObject<{
3636
3948
  principal_type: string;
3637
3949
  principal?: string | undefined;
3638
3950
  }[] | undefined;
3951
+ add_denies?: {
3952
+ actions: string[];
3953
+ principal_type: string;
3954
+ principal?: string | undefined;
3955
+ }[] | undefined;
3956
+ denies?: {
3957
+ actions: string[];
3958
+ principal_type: string;
3959
+ principal?: string | undefined;
3960
+ }[] | undefined;
3639
3961
  grants?: {
3640
3962
  actions: string[];
3641
3963
  principal_type: string;
3642
3964
  principal?: string | undefined;
3643
3965
  }[] | undefined;
3966
+ preserve_denies?: boolean | undefined;
3644
3967
  remove?: {
3645
3968
  principal_type: string;
3646
3969
  principal?: string | undefined;
3647
3970
  }[] | undefined;
3971
+ remove_denies?: {
3972
+ principal_type: string;
3973
+ principal?: string | undefined;
3974
+ }[] | undefined;
3648
3975
  } | null | undefined;
3649
3976
  default_model?: string | null | undefined;
3650
3977
  identity?: string | null | undefined;
@@ -3940,18 +4267,33 @@ export declare const activityFeedEntryListResponseSchema: z.ZodObject<{
3940
4267
  principal_type: string;
3941
4268
  principal?: string | undefined;
3942
4269
  }[] | undefined;
3943
- grants?: {
4270
+ add_denies?: {
3944
4271
  actions: string[];
3945
4272
  principal_type: string;
3946
4273
  principal?: string | undefined;
3947
4274
  }[] | undefined;
3948
- remove?: {
4275
+ denies?: {
4276
+ actions: string[];
3949
4277
  principal_type: string;
3950
4278
  principal?: string | undefined;
3951
4279
  }[] | undefined;
3952
- } | null | undefined;
3953
- default_model?: string | null | undefined;
3954
- identity?: string | null | undefined;
4280
+ grants?: {
4281
+ actions: string[];
4282
+ principal_type: string;
4283
+ principal?: string | undefined;
4284
+ }[] | undefined;
4285
+ preserve_denies?: boolean | undefined;
4286
+ remove?: {
4287
+ principal_type: string;
4288
+ principal?: string | undefined;
4289
+ }[] | undefined;
4290
+ remove_denies?: {
4291
+ principal_type: string;
4292
+ principal?: string | undefined;
4293
+ }[] | undefined;
4294
+ } | null | undefined;
4295
+ default_model?: string | null | undefined;
4296
+ identity?: string | null | undefined;
3955
4297
  last_applied_template_config?: string | null | undefined;
3956
4298
  originator?: string | null | undefined;
3957
4299
  phone_number?: string | null | undefined;
@@ -4159,15 +4501,30 @@ export declare const activityFeedEntryListResponseSchema: z.ZodObject<{
4159
4501
  principal_type: string;
4160
4502
  principal?: string | undefined;
4161
4503
  }[] | undefined;
4504
+ add_denies?: {
4505
+ actions: string[];
4506
+ principal_type: string;
4507
+ principal?: string | undefined;
4508
+ }[] | undefined;
4509
+ denies?: {
4510
+ actions: string[];
4511
+ principal_type: string;
4512
+ principal?: string | undefined;
4513
+ }[] | undefined;
4162
4514
  grants?: {
4163
4515
  actions: string[];
4164
4516
  principal_type: string;
4165
4517
  principal?: string | undefined;
4166
4518
  }[] | undefined;
4519
+ preserve_denies?: boolean | undefined;
4167
4520
  remove?: {
4168
4521
  principal_type: string;
4169
4522
  principal?: string | undefined;
4170
4523
  }[] | undefined;
4524
+ remove_denies?: {
4525
+ principal_type: string;
4526
+ principal?: string | undefined;
4527
+ }[] | undefined;
4171
4528
  } | null | undefined;
4172
4529
  default_model?: string | null | undefined;
4173
4530
  identity?: string | null | undefined;
@@ -4382,15 +4739,30 @@ export declare const activityFeedEntryListResponseSchema: z.ZodObject<{
4382
4739
  principal_type: string;
4383
4740
  principal?: string | undefined;
4384
4741
  }[] | undefined;
4742
+ add_denies?: {
4743
+ actions: string[];
4744
+ principal_type: string;
4745
+ principal?: string | undefined;
4746
+ }[] | undefined;
4747
+ denies?: {
4748
+ actions: string[];
4749
+ principal_type: string;
4750
+ principal?: string | undefined;
4751
+ }[] | undefined;
4385
4752
  grants?: {
4386
4753
  actions: string[];
4387
4754
  principal_type: string;
4388
4755
  principal?: string | undefined;
4389
4756
  }[] | undefined;
4757
+ preserve_denies?: boolean | undefined;
4390
4758
  remove?: {
4391
4759
  principal_type: string;
4392
4760
  principal?: string | undefined;
4393
4761
  }[] | undefined;
4762
+ remove_denies?: {
4763
+ principal_type: string;
4764
+ principal?: string | undefined;
4765
+ }[] | undefined;
4394
4766
  } | null | undefined;
4395
4767
  default_model?: string | null | undefined;
4396
4768
  identity?: string | null | undefined;
@@ -4606,15 +4978,30 @@ export declare const activityFeedEntryListResponseSchema: z.ZodObject<{
4606
4978
  principal_type: string;
4607
4979
  principal?: string | undefined;
4608
4980
  }[] | undefined;
4981
+ add_denies?: {
4982
+ actions: string[];
4983
+ principal_type: string;
4984
+ principal?: string | undefined;
4985
+ }[] | undefined;
4986
+ denies?: {
4987
+ actions: string[];
4988
+ principal_type: string;
4989
+ principal?: string | undefined;
4990
+ }[] | undefined;
4609
4991
  grants?: {
4610
4992
  actions: string[];
4611
4993
  principal_type: string;
4612
4994
  principal?: string | undefined;
4613
4995
  }[] | undefined;
4996
+ preserve_denies?: boolean | undefined;
4614
4997
  remove?: {
4615
4998
  principal_type: string;
4616
4999
  principal?: string | undefined;
4617
5000
  }[] | undefined;
5001
+ remove_denies?: {
5002
+ principal_type: string;
5003
+ principal?: string | undefined;
5004
+ }[] | undefined;
4618
5005
  } | null | undefined;
4619
5006
  default_model?: string | null | undefined;
4620
5007
  identity?: string | null | undefined;
@@ -4980,31 +5367,136 @@ export declare const originSchema: z.ZodObject<{
4980
5367
  session_id?: string | null | undefined;
4981
5368
  thread_id?: string | null | undefined;
4982
5369
  }>;
4983
- /** Question request payload. */
5370
+ /** Public review fields for one proposed self-update change. */
5371
+ export interface SelfUpdateChange {
5372
+ action?: string | undefined;
5373
+ class?: string | undefined;
5374
+ path?: string | undefined;
5375
+ tier?: string | undefined;
5376
+ }
5377
+ /** Runtime validator for {@link SelfUpdateChange}. */
5378
+ export declare const selfUpdateChangeSchema: z.ZodObject<{
5379
+ action: z.ZodOptional<z.ZodString>;
5380
+ class: z.ZodOptional<z.ZodString>;
5381
+ path: z.ZodOptional<z.ZodString>;
5382
+ tier: z.ZodOptional<z.ZodString>;
5383
+ }, "strip", z.ZodTypeAny, {
5384
+ path?: string | undefined;
5385
+ action?: string | undefined;
5386
+ class?: string | undefined;
5387
+ tier?: string | undefined;
5388
+ }, {
5389
+ path?: string | undefined;
5390
+ action?: string | undefined;
5391
+ class?: string | undefined;
5392
+ tier?: string | undefined;
5393
+ }>;
5394
+ /** Kind-safe request payload. */
4984
5395
  export interface Payload {
4985
- question: string;
5396
+ changes?: SelfUpdateChange[] | undefined;
5397
+ from_version?: string | undefined;
5398
+ instructions_md?: string | undefined;
5399
+ key?: string | undefined;
5400
+ overwrite?: boolean | undefined;
5401
+ prompt?: string | undefined;
5402
+ proposal_id?: string | undefined;
5403
+ question?: string | undefined;
5404
+ rationale?: string | undefined;
5405
+ to_version?: string | undefined;
5406
+ validate_script?: string | undefined;
4986
5407
  }
4987
5408
  /** Runtime validator for {@link Payload}. */
4988
5409
  export declare const payloadSchema: z.ZodObject<{
4989
- question: z.ZodString;
5410
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
5411
+ action: z.ZodOptional<z.ZodString>;
5412
+ class: z.ZodOptional<z.ZodString>;
5413
+ path: z.ZodOptional<z.ZodString>;
5414
+ tier: z.ZodOptional<z.ZodString>;
5415
+ }, "strip", z.ZodTypeAny, {
5416
+ path?: string | undefined;
5417
+ action?: string | undefined;
5418
+ class?: string | undefined;
5419
+ tier?: string | undefined;
5420
+ }, {
5421
+ path?: string | undefined;
5422
+ action?: string | undefined;
5423
+ class?: string | undefined;
5424
+ tier?: string | undefined;
5425
+ }>, "many">>;
5426
+ from_version: z.ZodOptional<z.ZodString>;
5427
+ instructions_md: z.ZodOptional<z.ZodString>;
5428
+ key: z.ZodOptional<z.ZodString>;
5429
+ overwrite: z.ZodOptional<z.ZodBoolean>;
5430
+ prompt: z.ZodOptional<z.ZodString>;
5431
+ proposal_id: z.ZodOptional<z.ZodString>;
5432
+ question: z.ZodOptional<z.ZodString>;
5433
+ rationale: z.ZodOptional<z.ZodString>;
5434
+ to_version: z.ZodOptional<z.ZodString>;
5435
+ validate_script: z.ZodOptional<z.ZodString>;
4990
5436
  }, "strip", z.ZodTypeAny, {
4991
- question: string;
5437
+ key?: string | undefined;
5438
+ changes?: {
5439
+ path?: string | undefined;
5440
+ action?: string | undefined;
5441
+ class?: string | undefined;
5442
+ tier?: string | undefined;
5443
+ }[] | undefined;
5444
+ from_version?: string | undefined;
5445
+ instructions_md?: string | undefined;
5446
+ overwrite?: boolean | undefined;
5447
+ prompt?: string | undefined;
5448
+ proposal_id?: string | undefined;
5449
+ question?: string | undefined;
5450
+ rationale?: string | undefined;
5451
+ to_version?: string | undefined;
5452
+ validate_script?: string | undefined;
4992
5453
  }, {
4993
- question: string;
5454
+ key?: string | undefined;
5455
+ changes?: {
5456
+ path?: string | undefined;
5457
+ action?: string | undefined;
5458
+ class?: string | undefined;
5459
+ tier?: string | undefined;
5460
+ }[] | undefined;
5461
+ from_version?: string | undefined;
5462
+ instructions_md?: string | undefined;
5463
+ overwrite?: boolean | undefined;
5464
+ prompt?: string | undefined;
5465
+ proposal_id?: string | undefined;
5466
+ question?: string | undefined;
5467
+ rationale?: string | undefined;
5468
+ to_version?: string | undefined;
5469
+ validate_script?: string | undefined;
4994
5470
  }>;
4995
5471
  /** Answer or rejection reason; null before resolution. */
4996
5472
  export interface Resolution {
4997
5473
  answer?: string | undefined;
5474
+ key?: string | undefined;
4998
5475
  reason?: string | undefined;
5476
+ set?: boolean | undefined;
5477
+ status?: string | undefined;
5478
+ to_version?: string | undefined;
4999
5479
  }
5000
5480
  /** Runtime validator for {@link Resolution}. */
5001
5481
  export declare const resolutionSchema: z.ZodObject<{
5002
5482
  answer: z.ZodOptional<z.ZodString>;
5483
+ key: z.ZodOptional<z.ZodString>;
5003
5484
  reason: z.ZodOptional<z.ZodString>;
5485
+ set: z.ZodOptional<z.ZodBoolean>;
5486
+ status: z.ZodOptional<z.ZodString>;
5487
+ to_version: z.ZodOptional<z.ZodString>;
5004
5488
  }, "strip", z.ZodTypeAny, {
5489
+ key?: string | undefined;
5490
+ status?: string | undefined;
5491
+ set?: boolean | undefined;
5492
+ to_version?: string | undefined;
5005
5493
  answer?: string | undefined;
5006
5494
  reason?: string | undefined;
5007
5495
  }, {
5496
+ key?: string | undefined;
5497
+ status?: string | undefined;
5498
+ set?: boolean | undefined;
5499
+ to_version?: string | undefined;
5008
5500
  answer?: string | undefined;
5009
5501
  reason?: string | undefined;
5010
5502
  }>;
@@ -6127,6 +6619,40 @@ export declare const messageSchema: z.ZodObject<{
6127
6619
  principal_type: string;
6128
6620
  principal?: string | undefined;
6129
6621
  }>, "many">>;
6622
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
6623
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
6624
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
6625
+ actions: z.ZodArray<z.ZodString, "many">;
6626
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
6627
+ principal: z.ZodOptional<z.ZodString>;
6628
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
6629
+ principal_type: z.ZodString;
6630
+ }, "strip", z.ZodTypeAny, {
6631
+ actions: string[];
6632
+ principal_type: string;
6633
+ principal?: string | undefined;
6634
+ }, {
6635
+ actions: string[];
6636
+ principal_type: string;
6637
+ principal?: string | undefined;
6638
+ }>, "many">>;
6639
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
6640
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
6641
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
6642
+ actions: z.ZodArray<z.ZodString, "many">;
6643
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
6644
+ principal: z.ZodOptional<z.ZodString>;
6645
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
6646
+ principal_type: z.ZodString;
6647
+ }, "strip", z.ZodTypeAny, {
6648
+ actions: string[];
6649
+ principal_type: string;
6650
+ principal?: string | undefined;
6651
+ }, {
6652
+ actions: string[];
6653
+ principal_type: string;
6654
+ principal?: string | undefined;
6655
+ }>, "many">>;
6130
6656
  /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
6131
6657
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
6132
6658
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
@@ -6144,6 +6670,8 @@ export declare const messageSchema: z.ZodObject<{
6144
6670
  principal_type: string;
6145
6671
  principal?: string | undefined;
6146
6672
  }>, "many">>;
6673
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
6674
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
6147
6675
  /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
6148
6676
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
6149
6677
  /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
@@ -6157,36 +6685,79 @@ export declare const messageSchema: z.ZodObject<{
6157
6685
  principal_type: string;
6158
6686
  principal?: string | undefined;
6159
6687
  }>, "many">>;
6688
+ /** Patch mode: principals whose denies should be removed. */
6689
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
6690
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
6691
+ principal: z.ZodOptional<z.ZodString>;
6692
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
6693
+ principal_type: z.ZodString;
6694
+ }, "strip", z.ZodTypeAny, {
6695
+ principal_type: string;
6696
+ principal?: string | undefined;
6697
+ }, {
6698
+ principal_type: string;
6699
+ principal?: string | undefined;
6700
+ }>, "many">>;
6160
6701
  }, "strip", z.ZodTypeAny, {
6161
6702
  add?: {
6162
6703
  actions: string[];
6163
6704
  principal_type: string;
6164
6705
  principal?: string | undefined;
6165
6706
  }[] | undefined;
6707
+ add_denies?: {
6708
+ actions: string[];
6709
+ principal_type: string;
6710
+ principal?: string | undefined;
6711
+ }[] | undefined;
6712
+ denies?: {
6713
+ actions: string[];
6714
+ principal_type: string;
6715
+ principal?: string | undefined;
6716
+ }[] | undefined;
6166
6717
  grants?: {
6167
6718
  actions: string[];
6168
6719
  principal_type: string;
6169
6720
  principal?: string | undefined;
6170
6721
  }[] | undefined;
6722
+ preserve_denies?: boolean | undefined;
6171
6723
  remove?: {
6172
6724
  principal_type: string;
6173
6725
  principal?: string | undefined;
6174
6726
  }[] | undefined;
6727
+ remove_denies?: {
6728
+ principal_type: string;
6729
+ principal?: string | undefined;
6730
+ }[] | undefined;
6175
6731
  }, {
6176
6732
  add?: {
6177
6733
  actions: string[];
6178
6734
  principal_type: string;
6179
6735
  principal?: string | undefined;
6180
6736
  }[] | undefined;
6737
+ add_denies?: {
6738
+ actions: string[];
6739
+ principal_type: string;
6740
+ principal?: string | undefined;
6741
+ }[] | undefined;
6742
+ denies?: {
6743
+ actions: string[];
6744
+ principal_type: string;
6745
+ principal?: string | undefined;
6746
+ }[] | undefined;
6181
6747
  grants?: {
6182
6748
  actions: string[];
6183
6749
  principal_type: string;
6184
6750
  principal?: string | undefined;
6185
6751
  }[] | undefined;
6752
+ preserve_denies?: boolean | undefined;
6186
6753
  remove?: {
6187
6754
  principal_type: string;
6188
6755
  principal?: string | undefined;
6189
6756
  }[] | undefined;
6757
+ remove_denies?: {
6758
+ principal_type: string;
6759
+ principal?: string | undefined;
6760
+ }[] | undefined;
6190
6761
  }>>>;
6191
6762
  /** Resolved actor descriptors for the message sender, combining identity and display metadata. Always contains exactly one entry. */
6192
6763
  actors: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -6707,15 +7278,30 @@ export declare const messageSchema: z.ZodObject<{
6707
7278
  principal_type: string;
6708
7279
  principal?: string | undefined;
6709
7280
  }[] | undefined;
7281
+ add_denies?: {
7282
+ actions: string[];
7283
+ principal_type: string;
7284
+ principal?: string | undefined;
7285
+ }[] | undefined;
7286
+ denies?: {
7287
+ actions: string[];
7288
+ principal_type: string;
7289
+ principal?: string | undefined;
7290
+ }[] | undefined;
6710
7291
  grants?: {
6711
7292
  actions: string[];
6712
7293
  principal_type: string;
6713
7294
  principal?: string | undefined;
6714
7295
  }[] | undefined;
7296
+ preserve_denies?: boolean | undefined;
6715
7297
  remove?: {
6716
7298
  principal_type: string;
6717
7299
  principal?: string | undefined;
6718
7300
  }[] | undefined;
7301
+ remove_denies?: {
7302
+ principal_type: string;
7303
+ principal?: string | undefined;
7304
+ }[] | undefined;
6719
7305
  } | null | undefined;
6720
7306
  attachments?: {
6721
7307
  type: string;
@@ -6847,15 +7433,30 @@ export declare const messageSchema: z.ZodObject<{
6847
7433
  principal_type: string;
6848
7434
  principal?: string | undefined;
6849
7435
  }[] | undefined;
7436
+ add_denies?: {
7437
+ actions: string[];
7438
+ principal_type: string;
7439
+ principal?: string | undefined;
7440
+ }[] | undefined;
7441
+ denies?: {
7442
+ actions: string[];
7443
+ principal_type: string;
7444
+ principal?: string | undefined;
7445
+ }[] | undefined;
6850
7446
  grants?: {
6851
7447
  actions: string[];
6852
7448
  principal_type: string;
6853
7449
  principal?: string | undefined;
6854
7450
  }[] | undefined;
7451
+ preserve_denies?: boolean | undefined;
6855
7452
  remove?: {
6856
7453
  principal_type: string;
6857
7454
  principal?: string | undefined;
6858
7455
  }[] | undefined;
7456
+ remove_denies?: {
7457
+ principal_type: string;
7458
+ principal?: string | undefined;
7459
+ }[] | undefined;
6859
7460
  } | null | undefined;
6860
7461
  attachments?: {
6861
7462
  type: string;
@@ -7576,6 +8177,8 @@ export interface CurrentUser {
7576
8177
  app?: string | null | undefined;
7577
8178
  /** Display name of the token-scoped app. */
7578
8179
  app_name?: string | null | undefined;
8180
+ /** Stable public URL of the profile picture. Unlike `profile_picture.url` it does not expire, so clients can store it; it stops resolving when the picture is replaced. `null` when the user has no profile picture. */
8181
+ avatar_url?: string | null | undefined;
7579
8182
  /** Present only when the request supplies one or more `entitlement[]` values. */
7580
8183
  effective_access?: EffectiveAccess | undefined;
7581
8184
  /** Email address of the user. */
@@ -7619,6 +8222,8 @@ export declare const currentUserSchema: z.ZodObject<{
7619
8222
  app: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7620
8223
  /** Display name of the token-scoped app. */
7621
8224
  app_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8225
+ /** Stable public URL of the profile picture. Unlike `profile_picture.url` it does not expire, so clients can store it; it stops resolving when the picture is replaced. `null` when the user has no profile picture. */
8226
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7622
8227
  /** Present only when the request supplies one or more `entitlement[]` values. */
7623
8228
  effective_access: z.ZodOptional<z.ZodObject<{
7624
8229
  /** Administration authority and requested-entitlement-relevant trials for the personal and current-organization principals. */
@@ -7826,6 +8431,7 @@ export declare const currentUserSchema: z.ZodObject<{
7826
8431
  org_role?: string | null | undefined;
7827
8432
  org_slug?: string | null | undefined;
7828
8433
  sandbox_name?: string | null | undefined;
8434
+ avatar_url?: string | null | undefined;
7829
8435
  effective_access?: {
7830
8436
  billing: {
7831
8437
  principal_type: "user" | "org";
@@ -7876,6 +8482,7 @@ export declare const currentUserSchema: z.ZodObject<{
7876
8482
  org_role?: string | null | undefined;
7877
8483
  org_slug?: string | null | undefined;
7878
8484
  sandbox_name?: string | null | undefined;
8485
+ avatar_url?: string | null | undefined;
7879
8486
  effective_access?: {
7880
8487
  billing: {
7881
8488
  principal_type: "user" | "org";
@@ -7953,6 +8560,40 @@ export declare const customObjectSchema: z.ZodObject<{
7953
8560
  principal_type: string;
7954
8561
  principal?: string | undefined;
7955
8562
  }>, "many">>;
8563
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
8564
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
8565
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
8566
+ actions: z.ZodArray<z.ZodString, "many">;
8567
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
8568
+ principal: z.ZodOptional<z.ZodString>;
8569
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
8570
+ principal_type: z.ZodString;
8571
+ }, "strip", z.ZodTypeAny, {
8572
+ actions: string[];
8573
+ principal_type: string;
8574
+ principal?: string | undefined;
8575
+ }, {
8576
+ actions: string[];
8577
+ principal_type: string;
8578
+ principal?: string | undefined;
8579
+ }>, "many">>;
8580
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
8581
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
8582
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
8583
+ actions: z.ZodArray<z.ZodString, "many">;
8584
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
8585
+ principal: z.ZodOptional<z.ZodString>;
8586
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
8587
+ principal_type: z.ZodString;
8588
+ }, "strip", z.ZodTypeAny, {
8589
+ actions: string[];
8590
+ principal_type: string;
8591
+ principal?: string | undefined;
8592
+ }, {
8593
+ actions: string[];
8594
+ principal_type: string;
8595
+ principal?: string | undefined;
8596
+ }>, "many">>;
7956
8597
  /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
7957
8598
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
7958
8599
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
@@ -7970,6 +8611,8 @@ export declare const customObjectSchema: z.ZodObject<{
7970
8611
  principal_type: string;
7971
8612
  principal?: string | undefined;
7972
8613
  }>, "many">>;
8614
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
8615
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
7973
8616
  /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
7974
8617
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
7975
8618
  /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
@@ -7983,36 +8626,79 @@ export declare const customObjectSchema: z.ZodObject<{
7983
8626
  principal_type: string;
7984
8627
  principal?: string | undefined;
7985
8628
  }>, "many">>;
8629
+ /** Patch mode: principals whose denies should be removed. */
8630
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
8631
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
8632
+ principal: z.ZodOptional<z.ZodString>;
8633
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
8634
+ principal_type: z.ZodString;
8635
+ }, "strip", z.ZodTypeAny, {
8636
+ principal_type: string;
8637
+ principal?: string | undefined;
8638
+ }, {
8639
+ principal_type: string;
8640
+ principal?: string | undefined;
8641
+ }>, "many">>;
7986
8642
  }, "strip", z.ZodTypeAny, {
7987
8643
  add?: {
7988
8644
  actions: string[];
7989
8645
  principal_type: string;
7990
8646
  principal?: string | undefined;
7991
8647
  }[] | undefined;
8648
+ add_denies?: {
8649
+ actions: string[];
8650
+ principal_type: string;
8651
+ principal?: string | undefined;
8652
+ }[] | undefined;
8653
+ denies?: {
8654
+ actions: string[];
8655
+ principal_type: string;
8656
+ principal?: string | undefined;
8657
+ }[] | undefined;
7992
8658
  grants?: {
7993
8659
  actions: string[];
7994
8660
  principal_type: string;
7995
8661
  principal?: string | undefined;
7996
8662
  }[] | undefined;
8663
+ preserve_denies?: boolean | undefined;
7997
8664
  remove?: {
7998
8665
  principal_type: string;
7999
8666
  principal?: string | undefined;
8000
8667
  }[] | undefined;
8668
+ remove_denies?: {
8669
+ principal_type: string;
8670
+ principal?: string | undefined;
8671
+ }[] | undefined;
8001
8672
  }, {
8002
8673
  add?: {
8003
8674
  actions: string[];
8004
8675
  principal_type: string;
8005
8676
  principal?: string | undefined;
8006
8677
  }[] | undefined;
8678
+ add_denies?: {
8679
+ actions: string[];
8680
+ principal_type: string;
8681
+ principal?: string | undefined;
8682
+ }[] | undefined;
8683
+ denies?: {
8684
+ actions: string[];
8685
+ principal_type: string;
8686
+ principal?: string | undefined;
8687
+ }[] | undefined;
8007
8688
  grants?: {
8008
8689
  actions: string[];
8009
8690
  principal_type: string;
8010
8691
  principal?: string | undefined;
8011
8692
  }[] | undefined;
8693
+ preserve_denies?: boolean | undefined;
8012
8694
  remove?: {
8013
8695
  principal_type: string;
8014
8696
  principal?: string | undefined;
8015
8697
  }[] | undefined;
8698
+ remove_denies?: {
8699
+ principal_type: string;
8700
+ principal?: string | undefined;
8701
+ }[] | undefined;
8016
8702
  }>>;
8017
8703
  /** ID of the agent that owns this object (`agt_...`). `null` for other ownership types. */
8018
8704
  agent: z.ZodOptional<z.ZodString>;
@@ -8055,15 +8741,30 @@ export declare const customObjectSchema: z.ZodObject<{
8055
8741
  principal_type: string;
8056
8742
  principal?: string | undefined;
8057
8743
  }[] | undefined;
8744
+ add_denies?: {
8745
+ actions: string[];
8746
+ principal_type: string;
8747
+ principal?: string | undefined;
8748
+ }[] | undefined;
8749
+ denies?: {
8750
+ actions: string[];
8751
+ principal_type: string;
8752
+ principal?: string | undefined;
8753
+ }[] | undefined;
8058
8754
  grants?: {
8059
8755
  actions: string[];
8060
8756
  principal_type: string;
8061
8757
  principal?: string | undefined;
8062
8758
  }[] | undefined;
8759
+ preserve_denies?: boolean | undefined;
8063
8760
  remove?: {
8064
8761
  principal_type: string;
8065
8762
  principal?: string | undefined;
8066
8763
  }[] | undefined;
8764
+ remove_denies?: {
8765
+ principal_type: string;
8766
+ principal?: string | undefined;
8767
+ }[] | undefined;
8067
8768
  } | undefined;
8068
8769
  version?: number | undefined;
8069
8770
  expires_at?: string | null | undefined;
@@ -8085,15 +8786,30 @@ export declare const customObjectSchema: z.ZodObject<{
8085
8786
  principal_type: string;
8086
8787
  principal?: string | undefined;
8087
8788
  }[] | undefined;
8789
+ add_denies?: {
8790
+ actions: string[];
8791
+ principal_type: string;
8792
+ principal?: string | undefined;
8793
+ }[] | undefined;
8794
+ denies?: {
8795
+ actions: string[];
8796
+ principal_type: string;
8797
+ principal?: string | undefined;
8798
+ }[] | undefined;
8088
8799
  grants?: {
8089
8800
  actions: string[];
8090
8801
  principal_type: string;
8091
8802
  principal?: string | undefined;
8092
8803
  }[] | undefined;
8804
+ preserve_denies?: boolean | undefined;
8093
8805
  remove?: {
8094
8806
  principal_type: string;
8095
8807
  principal?: string | undefined;
8096
8808
  }[] | undefined;
8809
+ remove_denies?: {
8810
+ principal_type: string;
8811
+ principal?: string | undefined;
8812
+ }[] | undefined;
8097
8813
  } | undefined;
8098
8814
  version?: number | undefined;
8099
8815
  expires_at?: string | null | undefined;
@@ -8179,8 +8895,8 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8179
8895
  principal_type: string;
8180
8896
  principal?: string | undefined;
8181
8897
  }>, "many">>;
8182
- /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
8183
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
8898
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
8899
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
8184
8900
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
8185
8901
  actions: z.ZodArray<z.ZodString, "many">;
8186
8902
  /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
@@ -8196,49 +8912,128 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8196
8912
  principal_type: string;
8197
8913
  principal?: string | undefined;
8198
8914
  }>, "many">>;
8199
- /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
8200
- remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
8201
- /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
8915
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
8916
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
8917
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
8918
+ actions: z.ZodArray<z.ZodString, "many">;
8919
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
8202
8920
  principal: z.ZodOptional<z.ZodString>;
8203
- /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
8921
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
8204
8922
  principal_type: z.ZodString;
8205
8923
  }, "strip", z.ZodTypeAny, {
8924
+ actions: string[];
8206
8925
  principal_type: string;
8207
8926
  principal?: string | undefined;
8208
8927
  }, {
8209
- principal_type: string;
8210
- principal?: string | undefined;
8211
- }>, "many">>;
8212
- }, "strip", z.ZodTypeAny, {
8213
- add?: {
8214
8928
  actions: string[];
8215
8929
  principal_type: string;
8216
8930
  principal?: string | undefined;
8217
- }[] | undefined;
8931
+ }>, "many">>;
8932
+ /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
8933
+ grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
8934
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
8935
+ actions: z.ZodArray<z.ZodString, "many">;
8936
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
8937
+ principal: z.ZodOptional<z.ZodString>;
8938
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
8939
+ principal_type: z.ZodString;
8940
+ }, "strip", z.ZodTypeAny, {
8941
+ actions: string[];
8942
+ principal_type: string;
8943
+ principal?: string | undefined;
8944
+ }, {
8945
+ actions: string[];
8946
+ principal_type: string;
8947
+ principal?: string | undefined;
8948
+ }>, "many">>;
8949
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
8950
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
8951
+ /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
8952
+ remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
8953
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
8954
+ principal: z.ZodOptional<z.ZodString>;
8955
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
8956
+ principal_type: z.ZodString;
8957
+ }, "strip", z.ZodTypeAny, {
8958
+ principal_type: string;
8959
+ principal?: string | undefined;
8960
+ }, {
8961
+ principal_type: string;
8962
+ principal?: string | undefined;
8963
+ }>, "many">>;
8964
+ /** Patch mode: principals whose denies should be removed. */
8965
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
8966
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
8967
+ principal: z.ZodOptional<z.ZodString>;
8968
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
8969
+ principal_type: z.ZodString;
8970
+ }, "strip", z.ZodTypeAny, {
8971
+ principal_type: string;
8972
+ principal?: string | undefined;
8973
+ }, {
8974
+ principal_type: string;
8975
+ principal?: string | undefined;
8976
+ }>, "many">>;
8977
+ }, "strip", z.ZodTypeAny, {
8978
+ add?: {
8979
+ actions: string[];
8980
+ principal_type: string;
8981
+ principal?: string | undefined;
8982
+ }[] | undefined;
8983
+ add_denies?: {
8984
+ actions: string[];
8985
+ principal_type: string;
8986
+ principal?: string | undefined;
8987
+ }[] | undefined;
8988
+ denies?: {
8989
+ actions: string[];
8990
+ principal_type: string;
8991
+ principal?: string | undefined;
8992
+ }[] | undefined;
8218
8993
  grants?: {
8219
8994
  actions: string[];
8220
8995
  principal_type: string;
8221
8996
  principal?: string | undefined;
8222
8997
  }[] | undefined;
8998
+ preserve_denies?: boolean | undefined;
8223
8999
  remove?: {
8224
9000
  principal_type: string;
8225
9001
  principal?: string | undefined;
8226
9002
  }[] | undefined;
9003
+ remove_denies?: {
9004
+ principal_type: string;
9005
+ principal?: string | undefined;
9006
+ }[] | undefined;
8227
9007
  }, {
8228
9008
  add?: {
8229
9009
  actions: string[];
8230
9010
  principal_type: string;
8231
9011
  principal?: string | undefined;
8232
9012
  }[] | undefined;
9013
+ add_denies?: {
9014
+ actions: string[];
9015
+ principal_type: string;
9016
+ principal?: string | undefined;
9017
+ }[] | undefined;
9018
+ denies?: {
9019
+ actions: string[];
9020
+ principal_type: string;
9021
+ principal?: string | undefined;
9022
+ }[] | undefined;
8233
9023
  grants?: {
8234
9024
  actions: string[];
8235
9025
  principal_type: string;
8236
9026
  principal?: string | undefined;
8237
9027
  }[] | undefined;
9028
+ preserve_denies?: boolean | undefined;
8238
9029
  remove?: {
8239
9030
  principal_type: string;
8240
9031
  principal?: string | undefined;
8241
9032
  }[] | undefined;
9033
+ remove_denies?: {
9034
+ principal_type: string;
9035
+ principal?: string | undefined;
9036
+ }[] | undefined;
8242
9037
  }>>;
8243
9038
  /** ID of the agent that owns this object (`agt_...`). `null` for other ownership types. */
8244
9039
  agent: z.ZodOptional<z.ZodString>;
@@ -8281,15 +9076,30 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8281
9076
  principal_type: string;
8282
9077
  principal?: string | undefined;
8283
9078
  }[] | undefined;
9079
+ add_denies?: {
9080
+ actions: string[];
9081
+ principal_type: string;
9082
+ principal?: string | undefined;
9083
+ }[] | undefined;
9084
+ denies?: {
9085
+ actions: string[];
9086
+ principal_type: string;
9087
+ principal?: string | undefined;
9088
+ }[] | undefined;
8284
9089
  grants?: {
8285
9090
  actions: string[];
8286
9091
  principal_type: string;
8287
9092
  principal?: string | undefined;
8288
9093
  }[] | undefined;
9094
+ preserve_denies?: boolean | undefined;
8289
9095
  remove?: {
8290
9096
  principal_type: string;
8291
9097
  principal?: string | undefined;
8292
9098
  }[] | undefined;
9099
+ remove_denies?: {
9100
+ principal_type: string;
9101
+ principal?: string | undefined;
9102
+ }[] | undefined;
8293
9103
  } | undefined;
8294
9104
  version?: number | undefined;
8295
9105
  expires_at?: string | null | undefined;
@@ -8311,15 +9121,30 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8311
9121
  principal_type: string;
8312
9122
  principal?: string | undefined;
8313
9123
  }[] | undefined;
9124
+ add_denies?: {
9125
+ actions: string[];
9126
+ principal_type: string;
9127
+ principal?: string | undefined;
9128
+ }[] | undefined;
9129
+ denies?: {
9130
+ actions: string[];
9131
+ principal_type: string;
9132
+ principal?: string | undefined;
9133
+ }[] | undefined;
8314
9134
  grants?: {
8315
9135
  actions: string[];
8316
9136
  principal_type: string;
8317
9137
  principal?: string | undefined;
8318
9138
  }[] | undefined;
9139
+ preserve_denies?: boolean | undefined;
8319
9140
  remove?: {
8320
9141
  principal_type: string;
8321
9142
  principal?: string | undefined;
8322
9143
  }[] | undefined;
9144
+ remove_denies?: {
9145
+ principal_type: string;
9146
+ principal?: string | undefined;
9147
+ }[] | undefined;
8323
9148
  } | undefined;
8324
9149
  version?: number | undefined;
8325
9150
  expires_at?: string | null | undefined;
@@ -8355,15 +9180,30 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8355
9180
  principal_type: string;
8356
9181
  principal?: string | undefined;
8357
9182
  }[] | undefined;
9183
+ add_denies?: {
9184
+ actions: string[];
9185
+ principal_type: string;
9186
+ principal?: string | undefined;
9187
+ }[] | undefined;
9188
+ denies?: {
9189
+ actions: string[];
9190
+ principal_type: string;
9191
+ principal?: string | undefined;
9192
+ }[] | undefined;
8358
9193
  grants?: {
8359
9194
  actions: string[];
8360
9195
  principal_type: string;
8361
9196
  principal?: string | undefined;
8362
9197
  }[] | undefined;
9198
+ preserve_denies?: boolean | undefined;
8363
9199
  remove?: {
8364
9200
  principal_type: string;
8365
9201
  principal?: string | undefined;
8366
9202
  }[] | undefined;
9203
+ remove_denies?: {
9204
+ principal_type: string;
9205
+ principal?: string | undefined;
9206
+ }[] | undefined;
8367
9207
  } | undefined;
8368
9208
  version?: number | undefined;
8369
9209
  expires_at?: string | null | undefined;
@@ -8393,15 +9233,30 @@ export declare const customObjectListResponseSchema: z.ZodObject<{
8393
9233
  principal_type: string;
8394
9234
  principal?: string | undefined;
8395
9235
  }[] | undefined;
9236
+ add_denies?: {
9237
+ actions: string[];
9238
+ principal_type: string;
9239
+ principal?: string | undefined;
9240
+ }[] | undefined;
9241
+ denies?: {
9242
+ actions: string[];
9243
+ principal_type: string;
9244
+ principal?: string | undefined;
9245
+ }[] | undefined;
8396
9246
  grants?: {
8397
9247
  actions: string[];
8398
9248
  principal_type: string;
8399
9249
  principal?: string | undefined;
8400
9250
  }[] | undefined;
9251
+ preserve_denies?: boolean | undefined;
8401
9252
  remove?: {
8402
9253
  principal_type: string;
8403
9254
  principal?: string | undefined;
8404
9255
  }[] | undefined;
9256
+ remove_denies?: {
9257
+ principal_type: string;
9258
+ principal?: string | undefined;
9259
+ }[] | undefined;
8405
9260
  } | undefined;
8406
9261
  version?: number | undefined;
8407
9262
  expires_at?: string | null | undefined;
@@ -10211,6 +11066,40 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10211
11066
  principal_type: string;
10212
11067
  principal?: string | undefined;
10213
11068
  }>, "many">>;
11069
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
11070
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
11071
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
11072
+ actions: z.ZodArray<z.ZodString, "many">;
11073
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
11074
+ principal: z.ZodOptional<z.ZodString>;
11075
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
11076
+ principal_type: z.ZodString;
11077
+ }, "strip", z.ZodTypeAny, {
11078
+ actions: string[];
11079
+ principal_type: string;
11080
+ principal?: string | undefined;
11081
+ }, {
11082
+ actions: string[];
11083
+ principal_type: string;
11084
+ principal?: string | undefined;
11085
+ }>, "many">>;
11086
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
11087
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
11088
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
11089
+ actions: z.ZodArray<z.ZodString, "many">;
11090
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
11091
+ principal: z.ZodOptional<z.ZodString>;
11092
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
11093
+ principal_type: z.ZodString;
11094
+ }, "strip", z.ZodTypeAny, {
11095
+ actions: string[];
11096
+ principal_type: string;
11097
+ principal?: string | undefined;
11098
+ }, {
11099
+ actions: string[];
11100
+ principal_type: string;
11101
+ principal?: string | undefined;
11102
+ }>, "many">>;
10214
11103
  /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
10215
11104
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
10216
11105
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
@@ -10228,6 +11117,8 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10228
11117
  principal_type: string;
10229
11118
  principal?: string | undefined;
10230
11119
  }>, "many">>;
11120
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
11121
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
10231
11122
  /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
10232
11123
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
10233
11124
  /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
@@ -10241,36 +11132,79 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10241
11132
  principal_type: string;
10242
11133
  principal?: string | undefined;
10243
11134
  }>, "many">>;
11135
+ /** Patch mode: principals whose denies should be removed. */
11136
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
11137
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
11138
+ principal: z.ZodOptional<z.ZodString>;
11139
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
11140
+ principal_type: z.ZodString;
11141
+ }, "strip", z.ZodTypeAny, {
11142
+ principal_type: string;
11143
+ principal?: string | undefined;
11144
+ }, {
11145
+ principal_type: string;
11146
+ principal?: string | undefined;
11147
+ }>, "many">>;
10244
11148
  }, "strip", z.ZodTypeAny, {
10245
11149
  add?: {
10246
11150
  actions: string[];
10247
11151
  principal_type: string;
10248
11152
  principal?: string | undefined;
10249
11153
  }[] | undefined;
11154
+ add_denies?: {
11155
+ actions: string[];
11156
+ principal_type: string;
11157
+ principal?: string | undefined;
11158
+ }[] | undefined;
11159
+ denies?: {
11160
+ actions: string[];
11161
+ principal_type: string;
11162
+ principal?: string | undefined;
11163
+ }[] | undefined;
10250
11164
  grants?: {
10251
11165
  actions: string[];
10252
11166
  principal_type: string;
10253
11167
  principal?: string | undefined;
10254
11168
  }[] | undefined;
11169
+ preserve_denies?: boolean | undefined;
10255
11170
  remove?: {
10256
11171
  principal_type: string;
10257
11172
  principal?: string | undefined;
10258
11173
  }[] | undefined;
11174
+ remove_denies?: {
11175
+ principal_type: string;
11176
+ principal?: string | undefined;
11177
+ }[] | undefined;
10259
11178
  }, {
10260
11179
  add?: {
10261
11180
  actions: string[];
10262
11181
  principal_type: string;
10263
11182
  principal?: string | undefined;
10264
11183
  }[] | undefined;
11184
+ add_denies?: {
11185
+ actions: string[];
11186
+ principal_type: string;
11187
+ principal?: string | undefined;
11188
+ }[] | undefined;
11189
+ denies?: {
11190
+ actions: string[];
11191
+ principal_type: string;
11192
+ principal?: string | undefined;
11193
+ }[] | undefined;
10265
11194
  grants?: {
10266
11195
  actions: string[];
10267
11196
  principal_type: string;
10268
11197
  principal?: string | undefined;
10269
11198
  }[] | undefined;
11199
+ preserve_denies?: boolean | undefined;
10270
11200
  remove?: {
10271
11201
  principal_type: string;
10272
11202
  principal?: string | undefined;
10273
11203
  }[] | undefined;
11204
+ remove_denies?: {
11205
+ principal_type: string;
11206
+ principal?: string | undefined;
11207
+ }[] | undefined;
10274
11208
  }>>>;
10275
11209
  /** Resolved actor descriptors for the message sender, combining identity and display metadata. Always contains exactly one entry. */
10276
11210
  actors: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -10791,15 +11725,30 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10791
11725
  principal_type: string;
10792
11726
  principal?: string | undefined;
10793
11727
  }[] | undefined;
11728
+ add_denies?: {
11729
+ actions: string[];
11730
+ principal_type: string;
11731
+ principal?: string | undefined;
11732
+ }[] | undefined;
11733
+ denies?: {
11734
+ actions: string[];
11735
+ principal_type: string;
11736
+ principal?: string | undefined;
11737
+ }[] | undefined;
10794
11738
  grants?: {
10795
11739
  actions: string[];
10796
11740
  principal_type: string;
10797
11741
  principal?: string | undefined;
10798
11742
  }[] | undefined;
11743
+ preserve_denies?: boolean | undefined;
10799
11744
  remove?: {
10800
11745
  principal_type: string;
10801
11746
  principal?: string | undefined;
10802
11747
  }[] | undefined;
11748
+ remove_denies?: {
11749
+ principal_type: string;
11750
+ principal?: string | undefined;
11751
+ }[] | undefined;
10803
11752
  } | null | undefined;
10804
11753
  attachments?: {
10805
11754
  type: string;
@@ -10931,15 +11880,30 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
10931
11880
  principal_type: string;
10932
11881
  principal?: string | undefined;
10933
11882
  }[] | undefined;
11883
+ add_denies?: {
11884
+ actions: string[];
11885
+ principal_type: string;
11886
+ principal?: string | undefined;
11887
+ }[] | undefined;
11888
+ denies?: {
11889
+ actions: string[];
11890
+ principal_type: string;
11891
+ principal?: string | undefined;
11892
+ }[] | undefined;
10934
11893
  grants?: {
10935
11894
  actions: string[];
10936
11895
  principal_type: string;
10937
11896
  principal?: string | undefined;
10938
11897
  }[] | undefined;
11898
+ preserve_denies?: boolean | undefined;
10939
11899
  remove?: {
10940
11900
  principal_type: string;
10941
11901
  principal?: string | undefined;
10942
11902
  }[] | undefined;
11903
+ remove_denies?: {
11904
+ principal_type: string;
11905
+ principal?: string | undefined;
11906
+ }[] | undefined;
10943
11907
  } | null | undefined;
10944
11908
  attachments?: {
10945
11909
  type: string;
@@ -11075,15 +12039,30 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
11075
12039
  principal_type: string;
11076
12040
  principal?: string | undefined;
11077
12041
  }[] | undefined;
12042
+ add_denies?: {
12043
+ actions: string[];
12044
+ principal_type: string;
12045
+ principal?: string | undefined;
12046
+ }[] | undefined;
12047
+ denies?: {
12048
+ actions: string[];
12049
+ principal_type: string;
12050
+ principal?: string | undefined;
12051
+ }[] | undefined;
11078
12052
  grants?: {
11079
12053
  actions: string[];
11080
12054
  principal_type: string;
11081
12055
  principal?: string | undefined;
11082
12056
  }[] | undefined;
12057
+ preserve_denies?: boolean | undefined;
11083
12058
  remove?: {
11084
12059
  principal_type: string;
11085
12060
  principal?: string | undefined;
11086
12061
  }[] | undefined;
12062
+ remove_denies?: {
12063
+ principal_type: string;
12064
+ principal?: string | undefined;
12065
+ }[] | undefined;
11087
12066
  } | null | undefined;
11088
12067
  attachments?: {
11089
12068
  type: string;
@@ -11221,15 +12200,30 @@ export declare const paginatedRepliesSchema: z.ZodObject<{
11221
12200
  principal_type: string;
11222
12201
  principal?: string | undefined;
11223
12202
  }[] | undefined;
12203
+ add_denies?: {
12204
+ actions: string[];
12205
+ principal_type: string;
12206
+ principal?: string | undefined;
12207
+ }[] | undefined;
12208
+ denies?: {
12209
+ actions: string[];
12210
+ principal_type: string;
12211
+ principal?: string | undefined;
12212
+ }[] | undefined;
11224
12213
  grants?: {
11225
12214
  actions: string[];
11226
12215
  principal_type: string;
11227
12216
  principal?: string | undefined;
11228
12217
  }[] | undefined;
12218
+ preserve_denies?: boolean | undefined;
11229
12219
  remove?: {
11230
12220
  principal_type: string;
11231
12221
  principal?: string | undefined;
11232
12222
  }[] | undefined;
12223
+ remove_denies?: {
12224
+ principal_type: string;
12225
+ principal?: string | undefined;
12226
+ }[] | undefined;
11233
12227
  } | null | undefined;
11234
12228
  attachments?: {
11235
12229
  type: string;
@@ -14901,8 +15895,8 @@ export declare const agentSchema: z.ZodObject<{
14901
15895
  principal_type: string;
14902
15896
  principal?: string | undefined;
14903
15897
  }>, "many">>;
14904
- /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
14905
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
15898
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
15899
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
14906
15900
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
14907
15901
  actions: z.ZodArray<z.ZodString, "many">;
14908
15902
  /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
@@ -14918,38 +15912,112 @@ export declare const agentSchema: z.ZodObject<{
14918
15912
  principal_type: string;
14919
15913
  principal?: string | undefined;
14920
15914
  }>, "many">>;
14921
- /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
14922
- remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
14923
- /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
15915
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
15916
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
15917
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
15918
+ actions: z.ZodArray<z.ZodString, "many">;
15919
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
14924
15920
  principal: z.ZodOptional<z.ZodString>;
14925
- /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
15921
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
14926
15922
  principal_type: z.ZodString;
14927
15923
  }, "strip", z.ZodTypeAny, {
15924
+ actions: string[];
14928
15925
  principal_type: string;
14929
15926
  principal?: string | undefined;
14930
15927
  }, {
15928
+ actions: string[];
14931
15929
  principal_type: string;
14932
15930
  principal?: string | undefined;
14933
15931
  }>, "many">>;
14934
- }, "strip", z.ZodTypeAny, {
14935
- add?: {
15932
+ /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
15933
+ grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
15934
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
15935
+ actions: z.ZodArray<z.ZodString, "many">;
15936
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
15937
+ principal: z.ZodOptional<z.ZodString>;
15938
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
15939
+ principal_type: z.ZodString;
15940
+ }, "strip", z.ZodTypeAny, {
14936
15941
  actions: string[];
14937
15942
  principal_type: string;
14938
15943
  principal?: string | undefined;
14939
- }[] | undefined;
14940
- grants?: {
15944
+ }, {
14941
15945
  actions: string[];
14942
15946
  principal_type: string;
14943
15947
  principal?: string | undefined;
14944
- }[] | undefined;
14945
- remove?: {
14946
- principal_type: string;
14947
- principal?: string | undefined;
14948
- }[] | undefined;
14949
- }, {
14950
- add?: {
14951
- actions: string[];
14952
- principal_type: string;
15948
+ }>, "many">>;
15949
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
15950
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
15951
+ /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
15952
+ remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
15953
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
15954
+ principal: z.ZodOptional<z.ZodString>;
15955
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
15956
+ principal_type: z.ZodString;
15957
+ }, "strip", z.ZodTypeAny, {
15958
+ principal_type: string;
15959
+ principal?: string | undefined;
15960
+ }, {
15961
+ principal_type: string;
15962
+ principal?: string | undefined;
15963
+ }>, "many">>;
15964
+ /** Patch mode: principals whose denies should be removed. */
15965
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
15966
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
15967
+ principal: z.ZodOptional<z.ZodString>;
15968
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
15969
+ principal_type: z.ZodString;
15970
+ }, "strip", z.ZodTypeAny, {
15971
+ principal_type: string;
15972
+ principal?: string | undefined;
15973
+ }, {
15974
+ principal_type: string;
15975
+ principal?: string | undefined;
15976
+ }>, "many">>;
15977
+ }, "strip", z.ZodTypeAny, {
15978
+ add?: {
15979
+ actions: string[];
15980
+ principal_type: string;
15981
+ principal?: string | undefined;
15982
+ }[] | undefined;
15983
+ add_denies?: {
15984
+ actions: string[];
15985
+ principal_type: string;
15986
+ principal?: string | undefined;
15987
+ }[] | undefined;
15988
+ denies?: {
15989
+ actions: string[];
15990
+ principal_type: string;
15991
+ principal?: string | undefined;
15992
+ }[] | undefined;
15993
+ grants?: {
15994
+ actions: string[];
15995
+ principal_type: string;
15996
+ principal?: string | undefined;
15997
+ }[] | undefined;
15998
+ preserve_denies?: boolean | undefined;
15999
+ remove?: {
16000
+ principal_type: string;
16001
+ principal?: string | undefined;
16002
+ }[] | undefined;
16003
+ remove_denies?: {
16004
+ principal_type: string;
16005
+ principal?: string | undefined;
16006
+ }[] | undefined;
16007
+ }, {
16008
+ add?: {
16009
+ actions: string[];
16010
+ principal_type: string;
16011
+ principal?: string | undefined;
16012
+ }[] | undefined;
16013
+ add_denies?: {
16014
+ actions: string[];
16015
+ principal_type: string;
16016
+ principal?: string | undefined;
16017
+ }[] | undefined;
16018
+ denies?: {
16019
+ actions: string[];
16020
+ principal_type: string;
14953
16021
  principal?: string | undefined;
14954
16022
  }[] | undefined;
14955
16023
  grants?: {
@@ -14957,10 +16025,15 @@ export declare const agentSchema: z.ZodObject<{
14957
16025
  principal_type: string;
14958
16026
  principal?: string | undefined;
14959
16027
  }[] | undefined;
16028
+ preserve_denies?: boolean | undefined;
14960
16029
  remove?: {
14961
16030
  principal_type: string;
14962
16031
  principal?: string | undefined;
14963
16032
  }[] | undefined;
16033
+ remove_denies?: {
16034
+ principal_type: string;
16035
+ principal?: string | undefined;
16036
+ }[] | undefined;
14964
16037
  }>>>;
14965
16038
  /** ID of the application that owns this agent (`dap_...`). */
14966
16039
  app: z.ZodOptional<z.ZodString>;
@@ -16095,15 +17168,30 @@ export declare const agentSchema: z.ZodObject<{
16095
17168
  principal_type: string;
16096
17169
  principal?: string | undefined;
16097
17170
  }[] | undefined;
17171
+ add_denies?: {
17172
+ actions: string[];
17173
+ principal_type: string;
17174
+ principal?: string | undefined;
17175
+ }[] | undefined;
17176
+ denies?: {
17177
+ actions: string[];
17178
+ principal_type: string;
17179
+ principal?: string | undefined;
17180
+ }[] | undefined;
16098
17181
  grants?: {
16099
17182
  actions: string[];
16100
17183
  principal_type: string;
16101
17184
  principal?: string | undefined;
16102
17185
  }[] | undefined;
17186
+ preserve_denies?: boolean | undefined;
16103
17187
  remove?: {
16104
17188
  principal_type: string;
16105
17189
  principal?: string | undefined;
16106
17190
  }[] | undefined;
17191
+ remove_denies?: {
17192
+ principal_type: string;
17193
+ principal?: string | undefined;
17194
+ }[] | undefined;
16107
17195
  } | null | undefined;
16108
17196
  default_model?: string | null | undefined;
16109
17197
  identity?: string | null | undefined;
@@ -16273,15 +17361,30 @@ export declare const agentSchema: z.ZodObject<{
16273
17361
  principal_type: string;
16274
17362
  principal?: string | undefined;
16275
17363
  }[] | undefined;
17364
+ add_denies?: {
17365
+ actions: string[];
17366
+ principal_type: string;
17367
+ principal?: string | undefined;
17368
+ }[] | undefined;
17369
+ denies?: {
17370
+ actions: string[];
17371
+ principal_type: string;
17372
+ principal?: string | undefined;
17373
+ }[] | undefined;
16276
17374
  grants?: {
16277
17375
  actions: string[];
16278
17376
  principal_type: string;
16279
17377
  principal?: string | undefined;
16280
17378
  }[] | undefined;
17379
+ preserve_denies?: boolean | undefined;
16281
17380
  remove?: {
16282
17381
  principal_type: string;
16283
17382
  principal?: string | undefined;
16284
17383
  }[] | undefined;
17384
+ remove_denies?: {
17385
+ principal_type: string;
17386
+ principal?: string | undefined;
17387
+ }[] | undefined;
16285
17388
  } | null | undefined;
16286
17389
  default_model?: string | null | undefined;
16287
17390
  identity?: string | null | undefined;
@@ -16437,6 +17540,8 @@ export interface AgentComputer {
16437
17540
  agent?: string | null | undefined;
16438
17541
  /** ID of the app this computer belongs to (`dap_...`). */
16439
17542
  app?: string | undefined;
17543
+ /** Bootstrap results, including each repository's status, commit and error. */
17544
+ bootstrap?: Record<string, unknown> | undefined;
16440
17545
  /** Provider-specific configuration key-value pairs for the computer. Structure depends on the underlying compute provider. */
16441
17546
  config?: Record<string, unknown> | undefined;
16442
17547
  /** When the computer was created (ISO 8601). */
@@ -16455,13 +17560,15 @@ export interface AgentComputer {
16455
17560
  metadata?: Record<string, unknown> | undefined;
16456
17561
  /** Human-readable display name for the computer. `null` if not set. */
16457
17562
  name?: string | undefined;
16458
- /** Compute backend powering this computer: `"sprites"` (Fly Sprites), `"vercel"` (Vercel Sandbox) or `"e2b"` (E2B). */
17563
+ /** Compute backend powering this computer: `"sprites"` (Fly Sprites), `"vercel"` (Vercel Sandbox), `"e2b"` (E2B) or `"devbox"` (an ArchAstro devbox owned by the computer's user). */
16459
17564
  provider?: string | undefined;
16460
17565
  /** Cloud region where the computer is hosted, e.g. `"us-east-1"`. `null` if not yet assigned or when the provider has no region concept (e.g. `"vercel"`, `"e2b"`). */
16461
17566
  region?: string | null | undefined;
17567
+ /** Ordered GitHub checkouts with repository and nullable ref; the first checkout is primary. */
17568
+ repositories?: ComputerRepository[] | undefined;
16462
17569
  /** URL of the live screenshot sprite used to render a real-time preview of the computer's screen. `null` when no sprite is available. */
16463
17570
  sprite_url?: string | null | undefined;
16464
- /** Current lifecycle state of the computer. Common values include `"provisioning"`, `"ready"`, `"error"`, and `"terminated"`. */
17571
+ /** Current lifecycle state of the computer. Common values include `"provisioning"`, `"ready"`, `"paused"` (resumes on use), `"error"`, and `"destroyed"`. */
16465
17572
  status?: string | null | undefined;
16466
17573
  /** Thread this computer belongs to, or null for a non-thread computer. */
16467
17574
  thread_id?: string | null | undefined;
@@ -16474,6 +17581,8 @@ export declare const agentComputerSchema: z.ZodObject<{
16474
17581
  agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16475
17582
  /** ID of the app this computer belongs to (`dap_...`). */
16476
17583
  app: z.ZodOptional<z.ZodString>;
17584
+ /** Bootstrap results, including each repository's status, commit and error. */
17585
+ bootstrap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
16477
17586
  /** Provider-specific configuration key-value pairs for the computer. Structure depends on the underlying compute provider. */
16478
17587
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
16479
17588
  /** When the computer was created (ISO 8601). */
@@ -16492,13 +17601,24 @@ export declare const agentComputerSchema: z.ZodObject<{
16492
17601
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
16493
17602
  /** Human-readable display name for the computer. `null` if not set. */
16494
17603
  name: z.ZodOptional<z.ZodString>;
16495
- /** Compute backend powering this computer: `"sprites"` (Fly Sprites), `"vercel"` (Vercel Sandbox) or `"e2b"` (E2B). */
17604
+ /** Compute backend powering this computer: `"sprites"` (Fly Sprites), `"vercel"` (Vercel Sandbox), `"e2b"` (E2B) or `"devbox"` (an ArchAstro devbox owned by the computer's user). */
16496
17605
  provider: z.ZodOptional<z.ZodString>;
16497
17606
  /** Cloud region where the computer is hosted, e.g. `"us-east-1"`. `null` if not yet assigned or when the provider has no region concept (e.g. `"vercel"`, `"e2b"`). */
16498
17607
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17608
+ /** Ordered GitHub checkouts with repository and nullable ref; the first checkout is primary. */
17609
+ repositories: z.ZodOptional<z.ZodArray<z.ZodObject<{
17610
+ ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17611
+ repository: z.ZodString;
17612
+ }, "strip", z.ZodTypeAny, {
17613
+ repository: string;
17614
+ ref?: string | null | undefined;
17615
+ }, {
17616
+ repository: string;
17617
+ ref?: string | null | undefined;
17618
+ }>, "many">>;
16499
17619
  /** URL of the live screenshot sprite used to render a real-time preview of the computer's screen. `null` when no sprite is available. */
16500
17620
  sprite_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16501
- /** Current lifecycle state of the computer. Common values include `"provisioning"`, `"ready"`, `"error"`, and `"terminated"`. */
17621
+ /** Current lifecycle state of the computer. Common values include `"provisioning"`, `"ready"`, `"paused"` (resumes on use), `"error"`, and `"destroyed"`. */
16502
17622
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16503
17623
  /** Thread this computer belongs to, or null for a non-thread computer. */
16504
17624
  thread_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -16518,9 +17638,14 @@ export declare const agentComputerSchema: z.ZodObject<{
16518
17638
  thread_id?: string | null | undefined;
16519
17639
  config?: Record<string, {} | null> | undefined;
16520
17640
  provider?: string | undefined;
17641
+ bootstrap?: Record<string, {} | null> | undefined;
16521
17642
  error_message?: string | null | undefined;
16522
17643
  last_active_at?: string | null | undefined;
16523
17644
  region?: string | null | undefined;
17645
+ repositories?: {
17646
+ repository: string;
17647
+ ref?: string | null | undefined;
17648
+ }[] | undefined;
16524
17649
  sprite_url?: string | null | undefined;
16525
17650
  }, {
16526
17651
  id: string;
@@ -16536,9 +17661,14 @@ export declare const agentComputerSchema: z.ZodObject<{
16536
17661
  thread_id?: string | null | undefined;
16537
17662
  config?: Record<string, {} | null> | undefined;
16538
17663
  provider?: string | undefined;
17664
+ bootstrap?: Record<string, {} | null> | undefined;
16539
17665
  error_message?: string | null | undefined;
16540
17666
  last_active_at?: string | null | undefined;
16541
17667
  region?: string | null | undefined;
17668
+ repositories?: {
17669
+ repository: string;
17670
+ ref?: string | null | undefined;
17671
+ }[] | undefined;
16542
17672
  sprite_url?: string | null | undefined;
16543
17673
  }>;
16544
17674
  /** A list of agent computers returned by a list query. */
@@ -16554,6 +17684,8 @@ export declare const agentComputerListResponseSchema: z.ZodObject<{
16554
17684
  agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16555
17685
  /** ID of the app this computer belongs to (`dap_...`). */
16556
17686
  app: z.ZodOptional<z.ZodString>;
17687
+ /** Bootstrap results, including each repository's status, commit and error. */
17688
+ bootstrap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
16557
17689
  /** Provider-specific configuration key-value pairs for the computer. Structure depends on the underlying compute provider. */
16558
17690
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
16559
17691
  /** When the computer was created (ISO 8601). */
@@ -16572,13 +17704,24 @@ export declare const agentComputerListResponseSchema: z.ZodObject<{
16572
17704
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
16573
17705
  /** Human-readable display name for the computer. `null` if not set. */
16574
17706
  name: z.ZodOptional<z.ZodString>;
16575
- /** Compute backend powering this computer: `"sprites"` (Fly Sprites), `"vercel"` (Vercel Sandbox) or `"e2b"` (E2B). */
17707
+ /** Compute backend powering this computer: `"sprites"` (Fly Sprites), `"vercel"` (Vercel Sandbox), `"e2b"` (E2B) or `"devbox"` (an ArchAstro devbox owned by the computer's user). */
16576
17708
  provider: z.ZodOptional<z.ZodString>;
16577
17709
  /** Cloud region where the computer is hosted, e.g. `"us-east-1"`. `null` if not yet assigned or when the provider has no region concept (e.g. `"vercel"`, `"e2b"`). */
16578
17710
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17711
+ /** Ordered GitHub checkouts with repository and nullable ref; the first checkout is primary. */
17712
+ repositories: z.ZodOptional<z.ZodArray<z.ZodObject<{
17713
+ ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17714
+ repository: z.ZodString;
17715
+ }, "strip", z.ZodTypeAny, {
17716
+ repository: string;
17717
+ ref?: string | null | undefined;
17718
+ }, {
17719
+ repository: string;
17720
+ ref?: string | null | undefined;
17721
+ }>, "many">>;
16579
17722
  /** URL of the live screenshot sprite used to render a real-time preview of the computer's screen. `null` when no sprite is available. */
16580
17723
  sprite_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16581
- /** Current lifecycle state of the computer. Common values include `"provisioning"`, `"ready"`, `"error"`, and `"terminated"`. */
17724
+ /** Current lifecycle state of the computer. Common values include `"provisioning"`, `"ready"`, `"paused"` (resumes on use), `"error"`, and `"destroyed"`. */
16582
17725
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16583
17726
  /** Thread this computer belongs to, or null for a non-thread computer. */
16584
17727
  thread_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -16598,9 +17741,14 @@ export declare const agentComputerListResponseSchema: z.ZodObject<{
16598
17741
  thread_id?: string | null | undefined;
16599
17742
  config?: Record<string, {} | null> | undefined;
16600
17743
  provider?: string | undefined;
17744
+ bootstrap?: Record<string, {} | null> | undefined;
16601
17745
  error_message?: string | null | undefined;
16602
17746
  last_active_at?: string | null | undefined;
16603
17747
  region?: string | null | undefined;
17748
+ repositories?: {
17749
+ repository: string;
17750
+ ref?: string | null | undefined;
17751
+ }[] | undefined;
16604
17752
  sprite_url?: string | null | undefined;
16605
17753
  }, {
16606
17754
  id: string;
@@ -16616,9 +17764,14 @@ export declare const agentComputerListResponseSchema: z.ZodObject<{
16616
17764
  thread_id?: string | null | undefined;
16617
17765
  config?: Record<string, {} | null> | undefined;
16618
17766
  provider?: string | undefined;
17767
+ bootstrap?: Record<string, {} | null> | undefined;
16619
17768
  error_message?: string | null | undefined;
16620
17769
  last_active_at?: string | null | undefined;
16621
17770
  region?: string | null | undefined;
17771
+ repositories?: {
17772
+ repository: string;
17773
+ ref?: string | null | undefined;
17774
+ }[] | undefined;
16622
17775
  sprite_url?: string | null | undefined;
16623
17776
  }>, "many">;
16624
17777
  }, "strip", z.ZodTypeAny, {
@@ -16636,9 +17789,14 @@ export declare const agentComputerListResponseSchema: z.ZodObject<{
16636
17789
  thread_id?: string | null | undefined;
16637
17790
  config?: Record<string, {} | null> | undefined;
16638
17791
  provider?: string | undefined;
17792
+ bootstrap?: Record<string, {} | null> | undefined;
16639
17793
  error_message?: string | null | undefined;
16640
17794
  last_active_at?: string | null | undefined;
16641
17795
  region?: string | null | undefined;
17796
+ repositories?: {
17797
+ repository: string;
17798
+ ref?: string | null | undefined;
17799
+ }[] | undefined;
16642
17800
  sprite_url?: string | null | undefined;
16643
17801
  }[];
16644
17802
  }, {
@@ -16656,9 +17814,14 @@ export declare const agentComputerListResponseSchema: z.ZodObject<{
16656
17814
  thread_id?: string | null | undefined;
16657
17815
  config?: Record<string, {} | null> | undefined;
16658
17816
  provider?: string | undefined;
17817
+ bootstrap?: Record<string, {} | null> | undefined;
16659
17818
  error_message?: string | null | undefined;
16660
17819
  last_active_at?: string | null | undefined;
16661
17820
  region?: string | null | undefined;
17821
+ repositories?: {
17822
+ repository: string;
17823
+ ref?: string | null | undefined;
17824
+ }[] | undefined;
16662
17825
  sprite_url?: string | null | undefined;
16663
17826
  }[];
16664
17827
  }>;
@@ -16722,6 +17885,40 @@ export declare const agentCreateResponseSchema: z.ZodObject<{
16722
17885
  principal_type: string;
16723
17886
  principal?: string | undefined;
16724
17887
  }>, "many">>;
17888
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
17889
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
17890
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
17891
+ actions: z.ZodArray<z.ZodString, "many">;
17892
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
17893
+ principal: z.ZodOptional<z.ZodString>;
17894
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
17895
+ principal_type: z.ZodString;
17896
+ }, "strip", z.ZodTypeAny, {
17897
+ actions: string[];
17898
+ principal_type: string;
17899
+ principal?: string | undefined;
17900
+ }, {
17901
+ actions: string[];
17902
+ principal_type: string;
17903
+ principal?: string | undefined;
17904
+ }>, "many">>;
17905
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
17906
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
17907
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
17908
+ actions: z.ZodArray<z.ZodString, "many">;
17909
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
17910
+ principal: z.ZodOptional<z.ZodString>;
17911
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
17912
+ principal_type: z.ZodString;
17913
+ }, "strip", z.ZodTypeAny, {
17914
+ actions: string[];
17915
+ principal_type: string;
17916
+ principal?: string | undefined;
17917
+ }, {
17918
+ actions: string[];
17919
+ principal_type: string;
17920
+ principal?: string | undefined;
17921
+ }>, "many">>;
16725
17922
  /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
16726
17923
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
16727
17924
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
@@ -16739,6 +17936,8 @@ export declare const agentCreateResponseSchema: z.ZodObject<{
16739
17936
  principal_type: string;
16740
17937
  principal?: string | undefined;
16741
17938
  }>, "many">>;
17939
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
17940
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
16742
17941
  /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
16743
17942
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
16744
17943
  /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
@@ -16752,36 +17951,79 @@ export declare const agentCreateResponseSchema: z.ZodObject<{
16752
17951
  principal_type: string;
16753
17952
  principal?: string | undefined;
16754
17953
  }>, "many">>;
17954
+ /** Patch mode: principals whose denies should be removed. */
17955
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
17956
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
17957
+ principal: z.ZodOptional<z.ZodString>;
17958
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
17959
+ principal_type: z.ZodString;
17960
+ }, "strip", z.ZodTypeAny, {
17961
+ principal_type: string;
17962
+ principal?: string | undefined;
17963
+ }, {
17964
+ principal_type: string;
17965
+ principal?: string | undefined;
17966
+ }>, "many">>;
16755
17967
  }, "strip", z.ZodTypeAny, {
16756
17968
  add?: {
16757
17969
  actions: string[];
16758
17970
  principal_type: string;
16759
17971
  principal?: string | undefined;
16760
17972
  }[] | undefined;
17973
+ add_denies?: {
17974
+ actions: string[];
17975
+ principal_type: string;
17976
+ principal?: string | undefined;
17977
+ }[] | undefined;
17978
+ denies?: {
17979
+ actions: string[];
17980
+ principal_type: string;
17981
+ principal?: string | undefined;
17982
+ }[] | undefined;
16761
17983
  grants?: {
16762
17984
  actions: string[];
16763
17985
  principal_type: string;
16764
17986
  principal?: string | undefined;
16765
17987
  }[] | undefined;
17988
+ preserve_denies?: boolean | undefined;
16766
17989
  remove?: {
16767
17990
  principal_type: string;
16768
17991
  principal?: string | undefined;
16769
17992
  }[] | undefined;
17993
+ remove_denies?: {
17994
+ principal_type: string;
17995
+ principal?: string | undefined;
17996
+ }[] | undefined;
16770
17997
  }, {
16771
17998
  add?: {
16772
17999
  actions: string[];
16773
18000
  principal_type: string;
16774
18001
  principal?: string | undefined;
16775
18002
  }[] | undefined;
18003
+ add_denies?: {
18004
+ actions: string[];
18005
+ principal_type: string;
18006
+ principal?: string | undefined;
18007
+ }[] | undefined;
18008
+ denies?: {
18009
+ actions: string[];
18010
+ principal_type: string;
18011
+ principal?: string | undefined;
18012
+ }[] | undefined;
16776
18013
  grants?: {
16777
18014
  actions: string[];
16778
18015
  principal_type: string;
16779
18016
  principal?: string | undefined;
16780
18017
  }[] | undefined;
18018
+ preserve_denies?: boolean | undefined;
16781
18019
  remove?: {
16782
18020
  principal_type: string;
16783
18021
  principal?: string | undefined;
16784
18022
  }[] | undefined;
18023
+ remove_denies?: {
18024
+ principal_type: string;
18025
+ principal?: string | undefined;
18026
+ }[] | undefined;
16785
18027
  }>>>;
16786
18028
  /** ID of the app this agent belongs to (`dap_...`). */
16787
18029
  app: z.ZodOptional<z.ZodString>;
@@ -16855,15 +18097,30 @@ export declare const agentCreateResponseSchema: z.ZodObject<{
16855
18097
  principal_type: string;
16856
18098
  principal?: string | undefined;
16857
18099
  }[] | undefined;
18100
+ add_denies?: {
18101
+ actions: string[];
18102
+ principal_type: string;
18103
+ principal?: string | undefined;
18104
+ }[] | undefined;
18105
+ denies?: {
18106
+ actions: string[];
18107
+ principal_type: string;
18108
+ principal?: string | undefined;
18109
+ }[] | undefined;
16858
18110
  grants?: {
16859
18111
  actions: string[];
16860
18112
  principal_type: string;
16861
18113
  principal?: string | undefined;
16862
18114
  }[] | undefined;
18115
+ preserve_denies?: boolean | undefined;
16863
18116
  remove?: {
16864
18117
  principal_type: string;
16865
18118
  principal?: string | undefined;
16866
18119
  }[] | undefined;
18120
+ remove_denies?: {
18121
+ principal_type: string;
18122
+ principal?: string | undefined;
18123
+ }[] | undefined;
16867
18124
  } | null | undefined;
16868
18125
  default_model?: string | null | undefined;
16869
18126
  identity?: string | null | undefined;
@@ -16894,15 +18151,30 @@ export declare const agentCreateResponseSchema: z.ZodObject<{
16894
18151
  principal_type: string;
16895
18152
  principal?: string | undefined;
16896
18153
  }[] | undefined;
18154
+ add_denies?: {
18155
+ actions: string[];
18156
+ principal_type: string;
18157
+ principal?: string | undefined;
18158
+ }[] | undefined;
18159
+ denies?: {
18160
+ actions: string[];
18161
+ principal_type: string;
18162
+ principal?: string | undefined;
18163
+ }[] | undefined;
16897
18164
  grants?: {
16898
18165
  actions: string[];
16899
18166
  principal_type: string;
16900
18167
  principal?: string | undefined;
16901
18168
  }[] | undefined;
18169
+ preserve_denies?: boolean | undefined;
16902
18170
  remove?: {
16903
18171
  principal_type: string;
16904
18172
  principal?: string | undefined;
16905
18173
  }[] | undefined;
18174
+ remove_denies?: {
18175
+ principal_type: string;
18176
+ principal?: string | undefined;
18177
+ }[] | undefined;
16906
18178
  } | null | undefined;
16907
18179
  default_model?: string | null | undefined;
16908
18180
  identity?: string | null | undefined;
@@ -17257,6 +18529,40 @@ export declare const agentHealthSchema: z.ZodObject<{
17257
18529
  principal_type: string;
17258
18530
  principal?: string | undefined;
17259
18531
  }>, "many">>;
18532
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
18533
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
18534
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
18535
+ actions: z.ZodArray<z.ZodString, "many">;
18536
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
18537
+ principal: z.ZodOptional<z.ZodString>;
18538
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
18539
+ principal_type: z.ZodString;
18540
+ }, "strip", z.ZodTypeAny, {
18541
+ actions: string[];
18542
+ principal_type: string;
18543
+ principal?: string | undefined;
18544
+ }, {
18545
+ actions: string[];
18546
+ principal_type: string;
18547
+ principal?: string | undefined;
18548
+ }>, "many">>;
18549
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
18550
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
18551
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
18552
+ actions: z.ZodArray<z.ZodString, "many">;
18553
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
18554
+ principal: z.ZodOptional<z.ZodString>;
18555
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
18556
+ principal_type: z.ZodString;
18557
+ }, "strip", z.ZodTypeAny, {
18558
+ actions: string[];
18559
+ principal_type: string;
18560
+ principal?: string | undefined;
18561
+ }, {
18562
+ actions: string[];
18563
+ principal_type: string;
18564
+ principal?: string | undefined;
18565
+ }>, "many">>;
17260
18566
  /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
17261
18567
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
17262
18568
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
@@ -17274,6 +18580,8 @@ export declare const agentHealthSchema: z.ZodObject<{
17274
18580
  principal_type: string;
17275
18581
  principal?: string | undefined;
17276
18582
  }>, "many">>;
18583
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
18584
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
17277
18585
  /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
17278
18586
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
17279
18587
  /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
@@ -17287,36 +18595,79 @@ export declare const agentHealthSchema: z.ZodObject<{
17287
18595
  principal_type: string;
17288
18596
  principal?: string | undefined;
17289
18597
  }>, "many">>;
18598
+ /** Patch mode: principals whose denies should be removed. */
18599
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
18600
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
18601
+ principal: z.ZodOptional<z.ZodString>;
18602
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
18603
+ principal_type: z.ZodString;
18604
+ }, "strip", z.ZodTypeAny, {
18605
+ principal_type: string;
18606
+ principal?: string | undefined;
18607
+ }, {
18608
+ principal_type: string;
18609
+ principal?: string | undefined;
18610
+ }>, "many">>;
17290
18611
  }, "strip", z.ZodTypeAny, {
17291
18612
  add?: {
17292
18613
  actions: string[];
17293
18614
  principal_type: string;
17294
18615
  principal?: string | undefined;
17295
18616
  }[] | undefined;
18617
+ add_denies?: {
18618
+ actions: string[];
18619
+ principal_type: string;
18620
+ principal?: string | undefined;
18621
+ }[] | undefined;
18622
+ denies?: {
18623
+ actions: string[];
18624
+ principal_type: string;
18625
+ principal?: string | undefined;
18626
+ }[] | undefined;
17296
18627
  grants?: {
17297
18628
  actions: string[];
17298
18629
  principal_type: string;
17299
18630
  principal?: string | undefined;
17300
18631
  }[] | undefined;
18632
+ preserve_denies?: boolean | undefined;
17301
18633
  remove?: {
17302
18634
  principal_type: string;
17303
18635
  principal?: string | undefined;
17304
18636
  }[] | undefined;
18637
+ remove_denies?: {
18638
+ principal_type: string;
18639
+ principal?: string | undefined;
18640
+ }[] | undefined;
17305
18641
  }, {
17306
18642
  add?: {
17307
18643
  actions: string[];
17308
18644
  principal_type: string;
17309
18645
  principal?: string | undefined;
17310
18646
  }[] | undefined;
18647
+ add_denies?: {
18648
+ actions: string[];
18649
+ principal_type: string;
18650
+ principal?: string | undefined;
18651
+ }[] | undefined;
18652
+ denies?: {
18653
+ actions: string[];
18654
+ principal_type: string;
18655
+ principal?: string | undefined;
18656
+ }[] | undefined;
17311
18657
  grants?: {
17312
18658
  actions: string[];
17313
18659
  principal_type: string;
17314
18660
  principal?: string | undefined;
17315
18661
  }[] | undefined;
18662
+ preserve_denies?: boolean | undefined;
17316
18663
  remove?: {
17317
18664
  principal_type: string;
17318
18665
  principal?: string | undefined;
17319
18666
  }[] | undefined;
18667
+ remove_denies?: {
18668
+ principal_type: string;
18669
+ principal?: string | undefined;
18670
+ }[] | undefined;
17320
18671
  }>>>;
17321
18672
  /** ID of the application that owns this agent (`dap_...`). */
17322
18673
  app: z.ZodOptional<z.ZodString>;
@@ -18451,15 +19802,30 @@ export declare const agentHealthSchema: z.ZodObject<{
18451
19802
  principal_type: string;
18452
19803
  principal?: string | undefined;
18453
19804
  }[] | undefined;
19805
+ add_denies?: {
19806
+ actions: string[];
19807
+ principal_type: string;
19808
+ principal?: string | undefined;
19809
+ }[] | undefined;
19810
+ denies?: {
19811
+ actions: string[];
19812
+ principal_type: string;
19813
+ principal?: string | undefined;
19814
+ }[] | undefined;
18454
19815
  grants?: {
18455
19816
  actions: string[];
18456
19817
  principal_type: string;
18457
19818
  principal?: string | undefined;
18458
19819
  }[] | undefined;
19820
+ preserve_denies?: boolean | undefined;
18459
19821
  remove?: {
18460
19822
  principal_type: string;
18461
19823
  principal?: string | undefined;
18462
19824
  }[] | undefined;
19825
+ remove_denies?: {
19826
+ principal_type: string;
19827
+ principal?: string | undefined;
19828
+ }[] | undefined;
18463
19829
  } | null | undefined;
18464
19830
  default_model?: string | null | undefined;
18465
19831
  identity?: string | null | undefined;
@@ -18629,15 +19995,30 @@ export declare const agentHealthSchema: z.ZodObject<{
18629
19995
  principal_type: string;
18630
19996
  principal?: string | undefined;
18631
19997
  }[] | undefined;
19998
+ add_denies?: {
19999
+ actions: string[];
20000
+ principal_type: string;
20001
+ principal?: string | undefined;
20002
+ }[] | undefined;
20003
+ denies?: {
20004
+ actions: string[];
20005
+ principal_type: string;
20006
+ principal?: string | undefined;
20007
+ }[] | undefined;
18632
20008
  grants?: {
18633
20009
  actions: string[];
18634
20010
  principal_type: string;
18635
20011
  principal?: string | undefined;
18636
20012
  }[] | undefined;
20013
+ preserve_denies?: boolean | undefined;
18637
20014
  remove?: {
18638
20015
  principal_type: string;
18639
20016
  principal?: string | undefined;
18640
20017
  }[] | undefined;
20018
+ remove_denies?: {
20019
+ principal_type: string;
20020
+ principal?: string | undefined;
20021
+ }[] | undefined;
18641
20022
  } | null | undefined;
18642
20023
  default_model?: string | null | undefined;
18643
20024
  identity?: string | null | undefined;
@@ -18898,15 +20279,30 @@ export declare const agentHealthSchema: z.ZodObject<{
18898
20279
  principal_type: string;
18899
20280
  principal?: string | undefined;
18900
20281
  }[] | undefined;
20282
+ add_denies?: {
20283
+ actions: string[];
20284
+ principal_type: string;
20285
+ principal?: string | undefined;
20286
+ }[] | undefined;
20287
+ denies?: {
20288
+ actions: string[];
20289
+ principal_type: string;
20290
+ principal?: string | undefined;
20291
+ }[] | undefined;
18901
20292
  grants?: {
18902
20293
  actions: string[];
18903
20294
  principal_type: string;
18904
20295
  principal?: string | undefined;
18905
20296
  }[] | undefined;
20297
+ preserve_denies?: boolean | undefined;
18906
20298
  remove?: {
18907
20299
  principal_type: string;
18908
20300
  principal?: string | undefined;
18909
20301
  }[] | undefined;
20302
+ remove_denies?: {
20303
+ principal_type: string;
20304
+ principal?: string | undefined;
20305
+ }[] | undefined;
18910
20306
  } | null | undefined;
18911
20307
  default_model?: string | null | undefined;
18912
20308
  identity?: string | null | undefined;
@@ -19105,15 +20501,30 @@ export declare const agentHealthSchema: z.ZodObject<{
19105
20501
  principal_type: string;
19106
20502
  principal?: string | undefined;
19107
20503
  }[] | undefined;
20504
+ add_denies?: {
20505
+ actions: string[];
20506
+ principal_type: string;
20507
+ principal?: string | undefined;
20508
+ }[] | undefined;
20509
+ denies?: {
20510
+ actions: string[];
20511
+ principal_type: string;
20512
+ principal?: string | undefined;
20513
+ }[] | undefined;
19108
20514
  grants?: {
19109
20515
  actions: string[];
19110
20516
  principal_type: string;
19111
20517
  principal?: string | undefined;
19112
20518
  }[] | undefined;
20519
+ preserve_denies?: boolean | undefined;
19113
20520
  remove?: {
19114
20521
  principal_type: string;
19115
20522
  principal?: string | undefined;
19116
20523
  }[] | undefined;
20524
+ remove_denies?: {
20525
+ principal_type: string;
20526
+ principal?: string | undefined;
20527
+ }[] | undefined;
19117
20528
  } | null | undefined;
19118
20529
  default_model?: string | null | undefined;
19119
20530
  identity?: string | null | undefined;
@@ -19331,6 +20742,40 @@ export declare const agentListResponseSchema: z.ZodObject<{
19331
20742
  principal_type: string;
19332
20743
  principal?: string | undefined;
19333
20744
  }>, "many">>;
20745
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
20746
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
20747
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
20748
+ actions: z.ZodArray<z.ZodString, "many">;
20749
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
20750
+ principal: z.ZodOptional<z.ZodString>;
20751
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
20752
+ principal_type: z.ZodString;
20753
+ }, "strip", z.ZodTypeAny, {
20754
+ actions: string[];
20755
+ principal_type: string;
20756
+ principal?: string | undefined;
20757
+ }, {
20758
+ actions: string[];
20759
+ principal_type: string;
20760
+ principal?: string | undefined;
20761
+ }>, "many">>;
20762
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
20763
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
20764
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
20765
+ actions: z.ZodArray<z.ZodString, "many">;
20766
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
20767
+ principal: z.ZodOptional<z.ZodString>;
20768
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
20769
+ principal_type: z.ZodString;
20770
+ }, "strip", z.ZodTypeAny, {
20771
+ actions: string[];
20772
+ principal_type: string;
20773
+ principal?: string | undefined;
20774
+ }, {
20775
+ actions: string[];
20776
+ principal_type: string;
20777
+ principal?: string | undefined;
20778
+ }>, "many">>;
19334
20779
  /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
19335
20780
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
19336
20781
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
@@ -19348,6 +20793,8 @@ export declare const agentListResponseSchema: z.ZodObject<{
19348
20793
  principal_type: string;
19349
20794
  principal?: string | undefined;
19350
20795
  }>, "many">>;
20796
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
20797
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
19351
20798
  /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
19352
20799
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
19353
20800
  /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
@@ -19361,36 +20808,79 @@ export declare const agentListResponseSchema: z.ZodObject<{
19361
20808
  principal_type: string;
19362
20809
  principal?: string | undefined;
19363
20810
  }>, "many">>;
20811
+ /** Patch mode: principals whose denies should be removed. */
20812
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
20813
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
20814
+ principal: z.ZodOptional<z.ZodString>;
20815
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
20816
+ principal_type: z.ZodString;
20817
+ }, "strip", z.ZodTypeAny, {
20818
+ principal_type: string;
20819
+ principal?: string | undefined;
20820
+ }, {
20821
+ principal_type: string;
20822
+ principal?: string | undefined;
20823
+ }>, "many">>;
19364
20824
  }, "strip", z.ZodTypeAny, {
19365
20825
  add?: {
19366
20826
  actions: string[];
19367
20827
  principal_type: string;
19368
20828
  principal?: string | undefined;
19369
20829
  }[] | undefined;
20830
+ add_denies?: {
20831
+ actions: string[];
20832
+ principal_type: string;
20833
+ principal?: string | undefined;
20834
+ }[] | undefined;
20835
+ denies?: {
20836
+ actions: string[];
20837
+ principal_type: string;
20838
+ principal?: string | undefined;
20839
+ }[] | undefined;
19370
20840
  grants?: {
19371
20841
  actions: string[];
19372
20842
  principal_type: string;
19373
20843
  principal?: string | undefined;
19374
20844
  }[] | undefined;
20845
+ preserve_denies?: boolean | undefined;
19375
20846
  remove?: {
19376
20847
  principal_type: string;
19377
20848
  principal?: string | undefined;
19378
20849
  }[] | undefined;
20850
+ remove_denies?: {
20851
+ principal_type: string;
20852
+ principal?: string | undefined;
20853
+ }[] | undefined;
19379
20854
  }, {
19380
20855
  add?: {
19381
20856
  actions: string[];
19382
20857
  principal_type: string;
19383
20858
  principal?: string | undefined;
19384
20859
  }[] | undefined;
20860
+ add_denies?: {
20861
+ actions: string[];
20862
+ principal_type: string;
20863
+ principal?: string | undefined;
20864
+ }[] | undefined;
20865
+ denies?: {
20866
+ actions: string[];
20867
+ principal_type: string;
20868
+ principal?: string | undefined;
20869
+ }[] | undefined;
19385
20870
  grants?: {
19386
20871
  actions: string[];
19387
20872
  principal_type: string;
19388
20873
  principal?: string | undefined;
19389
20874
  }[] | undefined;
20875
+ preserve_denies?: boolean | undefined;
19390
20876
  remove?: {
19391
20877
  principal_type: string;
19392
20878
  principal?: string | undefined;
19393
20879
  }[] | undefined;
20880
+ remove_denies?: {
20881
+ principal_type: string;
20882
+ principal?: string | undefined;
20883
+ }[] | undefined;
19394
20884
  }>>>;
19395
20885
  /** ID of the application that owns this agent (`dap_...`). */
19396
20886
  app: z.ZodOptional<z.ZodString>;
@@ -20525,15 +22015,30 @@ export declare const agentListResponseSchema: z.ZodObject<{
20525
22015
  principal_type: string;
20526
22016
  principal?: string | undefined;
20527
22017
  }[] | undefined;
22018
+ add_denies?: {
22019
+ actions: string[];
22020
+ principal_type: string;
22021
+ principal?: string | undefined;
22022
+ }[] | undefined;
22023
+ denies?: {
22024
+ actions: string[];
22025
+ principal_type: string;
22026
+ principal?: string | undefined;
22027
+ }[] | undefined;
20528
22028
  grants?: {
20529
22029
  actions: string[];
20530
22030
  principal_type: string;
20531
22031
  principal?: string | undefined;
20532
22032
  }[] | undefined;
22033
+ preserve_denies?: boolean | undefined;
20533
22034
  remove?: {
20534
22035
  principal_type: string;
20535
22036
  principal?: string | undefined;
20536
22037
  }[] | undefined;
22038
+ remove_denies?: {
22039
+ principal_type: string;
22040
+ principal?: string | undefined;
22041
+ }[] | undefined;
20537
22042
  } | null | undefined;
20538
22043
  default_model?: string | null | undefined;
20539
22044
  identity?: string | null | undefined;
@@ -20703,15 +22208,30 @@ export declare const agentListResponseSchema: z.ZodObject<{
20703
22208
  principal_type: string;
20704
22209
  principal?: string | undefined;
20705
22210
  }[] | undefined;
22211
+ add_denies?: {
22212
+ actions: string[];
22213
+ principal_type: string;
22214
+ principal?: string | undefined;
22215
+ }[] | undefined;
22216
+ denies?: {
22217
+ actions: string[];
22218
+ principal_type: string;
22219
+ principal?: string | undefined;
22220
+ }[] | undefined;
20706
22221
  grants?: {
20707
22222
  actions: string[];
20708
22223
  principal_type: string;
20709
22224
  principal?: string | undefined;
20710
22225
  }[] | undefined;
22226
+ preserve_denies?: boolean | undefined;
20711
22227
  remove?: {
20712
22228
  principal_type: string;
20713
22229
  principal?: string | undefined;
20714
22230
  }[] | undefined;
22231
+ remove_denies?: {
22232
+ principal_type: string;
22233
+ principal?: string | undefined;
22234
+ }[] | undefined;
20715
22235
  } | null | undefined;
20716
22236
  default_model?: string | null | undefined;
20717
22237
  identity?: string | null | undefined;
@@ -20895,15 +22415,30 @@ export declare const agentListResponseSchema: z.ZodObject<{
20895
22415
  principal_type: string;
20896
22416
  principal?: string | undefined;
20897
22417
  }[] | undefined;
22418
+ add_denies?: {
22419
+ actions: string[];
22420
+ principal_type: string;
22421
+ principal?: string | undefined;
22422
+ }[] | undefined;
22423
+ denies?: {
22424
+ actions: string[];
22425
+ principal_type: string;
22426
+ principal?: string | undefined;
22427
+ }[] | undefined;
20898
22428
  grants?: {
20899
22429
  actions: string[];
20900
22430
  principal_type: string;
20901
22431
  principal?: string | undefined;
20902
22432
  }[] | undefined;
22433
+ preserve_denies?: boolean | undefined;
20903
22434
  remove?: {
20904
22435
  principal_type: string;
20905
22436
  principal?: string | undefined;
20906
22437
  }[] | undefined;
22438
+ remove_denies?: {
22439
+ principal_type: string;
22440
+ principal?: string | undefined;
22441
+ }[] | undefined;
20907
22442
  } | null | undefined;
20908
22443
  default_model?: string | null | undefined;
20909
22444
  identity?: string | null | undefined;
@@ -21081,15 +22616,30 @@ export declare const agentListResponseSchema: z.ZodObject<{
21081
22616
  principal_type: string;
21082
22617
  principal?: string | undefined;
21083
22618
  }[] | undefined;
22619
+ add_denies?: {
22620
+ actions: string[];
22621
+ principal_type: string;
22622
+ principal?: string | undefined;
22623
+ }[] | undefined;
22624
+ denies?: {
22625
+ actions: string[];
22626
+ principal_type: string;
22627
+ principal?: string | undefined;
22628
+ }[] | undefined;
21084
22629
  grants?: {
21085
22630
  actions: string[];
21086
22631
  principal_type: string;
21087
22632
  principal?: string | undefined;
21088
22633
  }[] | undefined;
22634
+ preserve_denies?: boolean | undefined;
21089
22635
  remove?: {
21090
22636
  principal_type: string;
21091
22637
  principal?: string | undefined;
21092
22638
  }[] | undefined;
22639
+ remove_denies?: {
22640
+ principal_type: string;
22641
+ principal?: string | undefined;
22642
+ }[] | undefined;
21093
22643
  } | null | undefined;
21094
22644
  default_model?: string | null | undefined;
21095
22645
  identity?: string | null | undefined;
@@ -21278,7 +22828,7 @@ export interface AgentRequest {
21278
22828
  kind?: string | undefined;
21279
22829
  /** Origin references. */
21280
22830
  origin?: Origin | undefined;
21281
- /** Question request payload. */
22831
+ /** Kind-safe request payload. */
21282
22832
  payload?: Payload | undefined;
21283
22833
  /** Answer or rejection reason; null before resolution. */
21284
22834
  resolution?: Resolution | null | undefined;
@@ -21334,22 +22884,89 @@ export declare const agentRequestSchema: z.ZodObject<{
21334
22884
  session_id?: string | null | undefined;
21335
22885
  thread_id?: string | null | undefined;
21336
22886
  }>>;
21337
- /** Question request payload. */
22887
+ /** Kind-safe request payload. */
21338
22888
  payload: z.ZodOptional<z.ZodObject<{
21339
- question: z.ZodString;
22889
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
22890
+ action: z.ZodOptional<z.ZodString>;
22891
+ class: z.ZodOptional<z.ZodString>;
22892
+ path: z.ZodOptional<z.ZodString>;
22893
+ tier: z.ZodOptional<z.ZodString>;
22894
+ }, "strip", z.ZodTypeAny, {
22895
+ path?: string | undefined;
22896
+ action?: string | undefined;
22897
+ class?: string | undefined;
22898
+ tier?: string | undefined;
22899
+ }, {
22900
+ path?: string | undefined;
22901
+ action?: string | undefined;
22902
+ class?: string | undefined;
22903
+ tier?: string | undefined;
22904
+ }>, "many">>;
22905
+ from_version: z.ZodOptional<z.ZodString>;
22906
+ instructions_md: z.ZodOptional<z.ZodString>;
22907
+ key: z.ZodOptional<z.ZodString>;
22908
+ overwrite: z.ZodOptional<z.ZodBoolean>;
22909
+ prompt: z.ZodOptional<z.ZodString>;
22910
+ proposal_id: z.ZodOptional<z.ZodString>;
22911
+ question: z.ZodOptional<z.ZodString>;
22912
+ rationale: z.ZodOptional<z.ZodString>;
22913
+ to_version: z.ZodOptional<z.ZodString>;
22914
+ validate_script: z.ZodOptional<z.ZodString>;
21340
22915
  }, "strip", z.ZodTypeAny, {
21341
- question: string;
22916
+ key?: string | undefined;
22917
+ changes?: {
22918
+ path?: string | undefined;
22919
+ action?: string | undefined;
22920
+ class?: string | undefined;
22921
+ tier?: string | undefined;
22922
+ }[] | undefined;
22923
+ from_version?: string | undefined;
22924
+ instructions_md?: string | undefined;
22925
+ overwrite?: boolean | undefined;
22926
+ prompt?: string | undefined;
22927
+ proposal_id?: string | undefined;
22928
+ question?: string | undefined;
22929
+ rationale?: string | undefined;
22930
+ to_version?: string | undefined;
22931
+ validate_script?: string | undefined;
21342
22932
  }, {
21343
- question: string;
22933
+ key?: string | undefined;
22934
+ changes?: {
22935
+ path?: string | undefined;
22936
+ action?: string | undefined;
22937
+ class?: string | undefined;
22938
+ tier?: string | undefined;
22939
+ }[] | undefined;
22940
+ from_version?: string | undefined;
22941
+ instructions_md?: string | undefined;
22942
+ overwrite?: boolean | undefined;
22943
+ prompt?: string | undefined;
22944
+ proposal_id?: string | undefined;
22945
+ question?: string | undefined;
22946
+ rationale?: string | undefined;
22947
+ to_version?: string | undefined;
22948
+ validate_script?: string | undefined;
21344
22949
  }>>;
21345
22950
  /** Answer or rejection reason; null before resolution. */
21346
22951
  resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21347
22952
  answer: z.ZodOptional<z.ZodString>;
22953
+ key: z.ZodOptional<z.ZodString>;
21348
22954
  reason: z.ZodOptional<z.ZodString>;
22955
+ set: z.ZodOptional<z.ZodBoolean>;
22956
+ status: z.ZodOptional<z.ZodString>;
22957
+ to_version: z.ZodOptional<z.ZodString>;
21349
22958
  }, "strip", z.ZodTypeAny, {
22959
+ key?: string | undefined;
22960
+ status?: string | undefined;
22961
+ set?: boolean | undefined;
22962
+ to_version?: string | undefined;
21350
22963
  answer?: string | undefined;
21351
22964
  reason?: string | undefined;
21352
22965
  }, {
22966
+ key?: string | undefined;
22967
+ status?: string | undefined;
22968
+ set?: boolean | undefined;
22969
+ to_version?: string | undefined;
21353
22970
  answer?: string | undefined;
21354
22971
  reason?: string | undefined;
21355
22972
  }>>>;
@@ -21379,7 +22996,22 @@ export declare const agentRequestSchema: z.ZodObject<{
21379
22996
  } | undefined;
21380
22997
  status?: string | undefined;
21381
22998
  payload?: {
21382
- question: string;
22999
+ key?: string | undefined;
23000
+ changes?: {
23001
+ path?: string | undefined;
23002
+ action?: string | undefined;
23003
+ class?: string | undefined;
23004
+ tier?: string | undefined;
23005
+ }[] | undefined;
23006
+ from_version?: string | undefined;
23007
+ instructions_md?: string | undefined;
23008
+ overwrite?: boolean | undefined;
23009
+ prompt?: string | undefined;
23010
+ proposal_id?: string | undefined;
23011
+ question?: string | undefined;
23012
+ rationale?: string | undefined;
23013
+ to_version?: string | undefined;
23014
+ validate_script?: string | undefined;
21383
23015
  } | undefined;
21384
23016
  expires_at?: string | undefined;
21385
23017
  approvers?: {
@@ -21392,6 +23024,10 @@ export declare const agentRequestSchema: z.ZodObject<{
21392
23024
  thread_id?: string | null | undefined;
21393
23025
  } | undefined;
21394
23026
  resolution?: {
23027
+ key?: string | undefined;
23028
+ status?: string | undefined;
23029
+ set?: boolean | undefined;
23030
+ to_version?: string | undefined;
21395
23031
  answer?: string | undefined;
21396
23032
  reason?: string | undefined;
21397
23033
  } | null | undefined;
@@ -21410,7 +23046,22 @@ export declare const agentRequestSchema: z.ZodObject<{
21410
23046
  } | undefined;
21411
23047
  status?: string | undefined;
21412
23048
  payload?: {
21413
- question: string;
23049
+ key?: string | undefined;
23050
+ changes?: {
23051
+ path?: string | undefined;
23052
+ action?: string | undefined;
23053
+ class?: string | undefined;
23054
+ tier?: string | undefined;
23055
+ }[] | undefined;
23056
+ from_version?: string | undefined;
23057
+ instructions_md?: string | undefined;
23058
+ overwrite?: boolean | undefined;
23059
+ prompt?: string | undefined;
23060
+ proposal_id?: string | undefined;
23061
+ question?: string | undefined;
23062
+ rationale?: string | undefined;
23063
+ to_version?: string | undefined;
23064
+ validate_script?: string | undefined;
21414
23065
  } | undefined;
21415
23066
  expires_at?: string | undefined;
21416
23067
  approvers?: {
@@ -21423,6 +23074,10 @@ export declare const agentRequestSchema: z.ZodObject<{
21423
23074
  thread_id?: string | null | undefined;
21424
23075
  } | undefined;
21425
23076
  resolution?: {
23077
+ key?: string | undefined;
23078
+ status?: string | undefined;
23079
+ set?: boolean | undefined;
23080
+ to_version?: string | undefined;
21426
23081
  answer?: string | undefined;
21427
23082
  reason?: string | undefined;
21428
23083
  } | null | undefined;
@@ -21485,22 +23140,89 @@ export declare const agentRequestListResponseSchema: z.ZodObject<{
21485
23140
  session_id?: string | null | undefined;
21486
23141
  thread_id?: string | null | undefined;
21487
23142
  }>>;
21488
- /** Question request payload. */
23143
+ /** Kind-safe request payload. */
21489
23144
  payload: z.ZodOptional<z.ZodObject<{
21490
- question: z.ZodString;
23145
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
23146
+ action: z.ZodOptional<z.ZodString>;
23147
+ class: z.ZodOptional<z.ZodString>;
23148
+ path: z.ZodOptional<z.ZodString>;
23149
+ tier: z.ZodOptional<z.ZodString>;
23150
+ }, "strip", z.ZodTypeAny, {
23151
+ path?: string | undefined;
23152
+ action?: string | undefined;
23153
+ class?: string | undefined;
23154
+ tier?: string | undefined;
23155
+ }, {
23156
+ path?: string | undefined;
23157
+ action?: string | undefined;
23158
+ class?: string | undefined;
23159
+ tier?: string | undefined;
23160
+ }>, "many">>;
23161
+ from_version: z.ZodOptional<z.ZodString>;
23162
+ instructions_md: z.ZodOptional<z.ZodString>;
23163
+ key: z.ZodOptional<z.ZodString>;
23164
+ overwrite: z.ZodOptional<z.ZodBoolean>;
23165
+ prompt: z.ZodOptional<z.ZodString>;
23166
+ proposal_id: z.ZodOptional<z.ZodString>;
23167
+ question: z.ZodOptional<z.ZodString>;
23168
+ rationale: z.ZodOptional<z.ZodString>;
23169
+ to_version: z.ZodOptional<z.ZodString>;
23170
+ validate_script: z.ZodOptional<z.ZodString>;
21491
23171
  }, "strip", z.ZodTypeAny, {
21492
- question: string;
23172
+ key?: string | undefined;
23173
+ changes?: {
23174
+ path?: string | undefined;
23175
+ action?: string | undefined;
23176
+ class?: string | undefined;
23177
+ tier?: string | undefined;
23178
+ }[] | undefined;
23179
+ from_version?: string | undefined;
23180
+ instructions_md?: string | undefined;
23181
+ overwrite?: boolean | undefined;
23182
+ prompt?: string | undefined;
23183
+ proposal_id?: string | undefined;
23184
+ question?: string | undefined;
23185
+ rationale?: string | undefined;
23186
+ to_version?: string | undefined;
23187
+ validate_script?: string | undefined;
21493
23188
  }, {
21494
- question: string;
23189
+ key?: string | undefined;
23190
+ changes?: {
23191
+ path?: string | undefined;
23192
+ action?: string | undefined;
23193
+ class?: string | undefined;
23194
+ tier?: string | undefined;
23195
+ }[] | undefined;
23196
+ from_version?: string | undefined;
23197
+ instructions_md?: string | undefined;
23198
+ overwrite?: boolean | undefined;
23199
+ prompt?: string | undefined;
23200
+ proposal_id?: string | undefined;
23201
+ question?: string | undefined;
23202
+ rationale?: string | undefined;
23203
+ to_version?: string | undefined;
23204
+ validate_script?: string | undefined;
21495
23205
  }>>;
21496
23206
  /** Answer or rejection reason; null before resolution. */
21497
23207
  resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21498
23208
  answer: z.ZodOptional<z.ZodString>;
23209
+ key: z.ZodOptional<z.ZodString>;
21499
23210
  reason: z.ZodOptional<z.ZodString>;
23211
+ set: z.ZodOptional<z.ZodBoolean>;
23212
+ status: z.ZodOptional<z.ZodString>;
23213
+ to_version: z.ZodOptional<z.ZodString>;
21500
23214
  }, "strip", z.ZodTypeAny, {
23215
+ key?: string | undefined;
23216
+ status?: string | undefined;
23217
+ set?: boolean | undefined;
23218
+ to_version?: string | undefined;
21501
23219
  answer?: string | undefined;
21502
23220
  reason?: string | undefined;
21503
23221
  }, {
23222
+ key?: string | undefined;
23223
+ status?: string | undefined;
23224
+ set?: boolean | undefined;
23225
+ to_version?: string | undefined;
21504
23226
  answer?: string | undefined;
21505
23227
  reason?: string | undefined;
21506
23228
  }>>>;
@@ -21530,7 +23252,22 @@ export declare const agentRequestListResponseSchema: z.ZodObject<{
21530
23252
  } | undefined;
21531
23253
  status?: string | undefined;
21532
23254
  payload?: {
21533
- question: string;
23255
+ key?: string | undefined;
23256
+ changes?: {
23257
+ path?: string | undefined;
23258
+ action?: string | undefined;
23259
+ class?: string | undefined;
23260
+ tier?: string | undefined;
23261
+ }[] | undefined;
23262
+ from_version?: string | undefined;
23263
+ instructions_md?: string | undefined;
23264
+ overwrite?: boolean | undefined;
23265
+ prompt?: string | undefined;
23266
+ proposal_id?: string | undefined;
23267
+ question?: string | undefined;
23268
+ rationale?: string | undefined;
23269
+ to_version?: string | undefined;
23270
+ validate_script?: string | undefined;
21534
23271
  } | undefined;
21535
23272
  expires_at?: string | undefined;
21536
23273
  approvers?: {
@@ -21543,6 +23280,10 @@ export declare const agentRequestListResponseSchema: z.ZodObject<{
21543
23280
  thread_id?: string | null | undefined;
21544
23281
  } | undefined;
21545
23282
  resolution?: {
23283
+ key?: string | undefined;
23284
+ status?: string | undefined;
23285
+ set?: boolean | undefined;
23286
+ to_version?: string | undefined;
21546
23287
  answer?: string | undefined;
21547
23288
  reason?: string | undefined;
21548
23289
  } | null | undefined;
@@ -21561,7 +23302,22 @@ export declare const agentRequestListResponseSchema: z.ZodObject<{
21561
23302
  } | undefined;
21562
23303
  status?: string | undefined;
21563
23304
  payload?: {
21564
- question: string;
23305
+ key?: string | undefined;
23306
+ changes?: {
23307
+ path?: string | undefined;
23308
+ action?: string | undefined;
23309
+ class?: string | undefined;
23310
+ tier?: string | undefined;
23311
+ }[] | undefined;
23312
+ from_version?: string | undefined;
23313
+ instructions_md?: string | undefined;
23314
+ overwrite?: boolean | undefined;
23315
+ prompt?: string | undefined;
23316
+ proposal_id?: string | undefined;
23317
+ question?: string | undefined;
23318
+ rationale?: string | undefined;
23319
+ to_version?: string | undefined;
23320
+ validate_script?: string | undefined;
21565
23321
  } | undefined;
21566
23322
  expires_at?: string | undefined;
21567
23323
  approvers?: {
@@ -21574,6 +23330,10 @@ export declare const agentRequestListResponseSchema: z.ZodObject<{
21574
23330
  thread_id?: string | null | undefined;
21575
23331
  } | undefined;
21576
23332
  resolution?: {
23333
+ key?: string | undefined;
23334
+ status?: string | undefined;
23335
+ set?: boolean | undefined;
23336
+ to_version?: string | undefined;
21577
23337
  answer?: string | undefined;
21578
23338
  reason?: string | undefined;
21579
23339
  } | null | undefined;
@@ -21596,7 +23356,22 @@ export declare const agentRequestListResponseSchema: z.ZodObject<{
21596
23356
  } | undefined;
21597
23357
  status?: string | undefined;
21598
23358
  payload?: {
21599
- question: string;
23359
+ key?: string | undefined;
23360
+ changes?: {
23361
+ path?: string | undefined;
23362
+ action?: string | undefined;
23363
+ class?: string | undefined;
23364
+ tier?: string | undefined;
23365
+ }[] | undefined;
23366
+ from_version?: string | undefined;
23367
+ instructions_md?: string | undefined;
23368
+ overwrite?: boolean | undefined;
23369
+ prompt?: string | undefined;
23370
+ proposal_id?: string | undefined;
23371
+ question?: string | undefined;
23372
+ rationale?: string | undefined;
23373
+ to_version?: string | undefined;
23374
+ validate_script?: string | undefined;
21600
23375
  } | undefined;
21601
23376
  expires_at?: string | undefined;
21602
23377
  approvers?: {
@@ -21609,6 +23384,10 @@ export declare const agentRequestListResponseSchema: z.ZodObject<{
21609
23384
  thread_id?: string | null | undefined;
21610
23385
  } | undefined;
21611
23386
  resolution?: {
23387
+ key?: string | undefined;
23388
+ status?: string | undefined;
23389
+ set?: boolean | undefined;
23390
+ to_version?: string | undefined;
21612
23391
  answer?: string | undefined;
21613
23392
  reason?: string | undefined;
21614
23393
  } | null | undefined;
@@ -21630,7 +23409,22 @@ export declare const agentRequestListResponseSchema: z.ZodObject<{
21630
23409
  } | undefined;
21631
23410
  status?: string | undefined;
21632
23411
  payload?: {
21633
- question: string;
23412
+ key?: string | undefined;
23413
+ changes?: {
23414
+ path?: string | undefined;
23415
+ action?: string | undefined;
23416
+ class?: string | undefined;
23417
+ tier?: string | undefined;
23418
+ }[] | undefined;
23419
+ from_version?: string | undefined;
23420
+ instructions_md?: string | undefined;
23421
+ overwrite?: boolean | undefined;
23422
+ prompt?: string | undefined;
23423
+ proposal_id?: string | undefined;
23424
+ question?: string | undefined;
23425
+ rationale?: string | undefined;
23426
+ to_version?: string | undefined;
23427
+ validate_script?: string | undefined;
21634
23428
  } | undefined;
21635
23429
  expires_at?: string | undefined;
21636
23430
  approvers?: {
@@ -21643,6 +23437,10 @@ export declare const agentRequestListResponseSchema: z.ZodObject<{
21643
23437
  thread_id?: string | null | undefined;
21644
23438
  } | undefined;
21645
23439
  resolution?: {
23440
+ key?: string | undefined;
23441
+ status?: string | undefined;
23442
+ set?: boolean | undefined;
23443
+ to_version?: string | undefined;
21646
23444
  answer?: string | undefined;
21647
23445
  reason?: string | undefined;
21648
23446
  } | null | undefined;
@@ -21727,6 +23525,40 @@ export declare const agentRoutineSchema: z.ZodObject<{
21727
23525
  principal_type: string;
21728
23526
  principal?: string | undefined;
21729
23527
  }>, "many">>;
23528
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
23529
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
23530
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
23531
+ actions: z.ZodArray<z.ZodString, "many">;
23532
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
23533
+ principal: z.ZodOptional<z.ZodString>;
23534
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
23535
+ principal_type: z.ZodString;
23536
+ }, "strip", z.ZodTypeAny, {
23537
+ actions: string[];
23538
+ principal_type: string;
23539
+ principal?: string | undefined;
23540
+ }, {
23541
+ actions: string[];
23542
+ principal_type: string;
23543
+ principal?: string | undefined;
23544
+ }>, "many">>;
23545
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
23546
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
23547
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
23548
+ actions: z.ZodArray<z.ZodString, "many">;
23549
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
23550
+ principal: z.ZodOptional<z.ZodString>;
23551
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
23552
+ principal_type: z.ZodString;
23553
+ }, "strip", z.ZodTypeAny, {
23554
+ actions: string[];
23555
+ principal_type: string;
23556
+ principal?: string | undefined;
23557
+ }, {
23558
+ actions: string[];
23559
+ principal_type: string;
23560
+ principal?: string | undefined;
23561
+ }>, "many">>;
21730
23562
  /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
21731
23563
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
21732
23564
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
@@ -21744,6 +23576,8 @@ export declare const agentRoutineSchema: z.ZodObject<{
21744
23576
  principal_type: string;
21745
23577
  principal?: string | undefined;
21746
23578
  }>, "many">>;
23579
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
23580
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
21747
23581
  /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
21748
23582
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
21749
23583
  /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
@@ -21757,36 +23591,79 @@ export declare const agentRoutineSchema: z.ZodObject<{
21757
23591
  principal_type: string;
21758
23592
  principal?: string | undefined;
21759
23593
  }>, "many">>;
23594
+ /** Patch mode: principals whose denies should be removed. */
23595
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
23596
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
23597
+ principal: z.ZodOptional<z.ZodString>;
23598
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
23599
+ principal_type: z.ZodString;
23600
+ }, "strip", z.ZodTypeAny, {
23601
+ principal_type: string;
23602
+ principal?: string | undefined;
23603
+ }, {
23604
+ principal_type: string;
23605
+ principal?: string | undefined;
23606
+ }>, "many">>;
21760
23607
  }, "strip", z.ZodTypeAny, {
21761
23608
  add?: {
21762
23609
  actions: string[];
21763
23610
  principal_type: string;
21764
23611
  principal?: string | undefined;
21765
23612
  }[] | undefined;
23613
+ add_denies?: {
23614
+ actions: string[];
23615
+ principal_type: string;
23616
+ principal?: string | undefined;
23617
+ }[] | undefined;
23618
+ denies?: {
23619
+ actions: string[];
23620
+ principal_type: string;
23621
+ principal?: string | undefined;
23622
+ }[] | undefined;
21766
23623
  grants?: {
21767
23624
  actions: string[];
21768
23625
  principal_type: string;
21769
23626
  principal?: string | undefined;
21770
23627
  }[] | undefined;
23628
+ preserve_denies?: boolean | undefined;
21771
23629
  remove?: {
21772
23630
  principal_type: string;
21773
23631
  principal?: string | undefined;
21774
23632
  }[] | undefined;
23633
+ remove_denies?: {
23634
+ principal_type: string;
23635
+ principal?: string | undefined;
23636
+ }[] | undefined;
21775
23637
  }, {
21776
23638
  add?: {
21777
23639
  actions: string[];
21778
23640
  principal_type: string;
21779
23641
  principal?: string | undefined;
21780
23642
  }[] | undefined;
23643
+ add_denies?: {
23644
+ actions: string[];
23645
+ principal_type: string;
23646
+ principal?: string | undefined;
23647
+ }[] | undefined;
23648
+ denies?: {
23649
+ actions: string[];
23650
+ principal_type: string;
23651
+ principal?: string | undefined;
23652
+ }[] | undefined;
21781
23653
  grants?: {
21782
23654
  actions: string[];
21783
23655
  principal_type: string;
21784
23656
  principal?: string | undefined;
21785
23657
  }[] | undefined;
23658
+ preserve_denies?: boolean | undefined;
21786
23659
  remove?: {
21787
23660
  principal_type: string;
21788
23661
  principal?: string | undefined;
21789
23662
  }[] | undefined;
23663
+ remove_denies?: {
23664
+ principal_type: string;
23665
+ principal?: string | undefined;
23666
+ }[] | undefined;
21790
23667
  }>>;
21791
23668
  /** ID of the agent that owns this routine (`agi_...`). */
21792
23669
  agent: z.ZodOptional<z.ZodString>;
@@ -21897,17 +23774,32 @@ export declare const agentRoutineSchema: z.ZodObject<{
21897
23774
  principal_type: string;
21898
23775
  principal?: string | undefined;
21899
23776
  }[] | undefined;
21900
- grants?: {
23777
+ add_denies?: {
21901
23778
  actions: string[];
21902
23779
  principal_type: string;
21903
23780
  principal?: string | undefined;
21904
23781
  }[] | undefined;
21905
- remove?: {
23782
+ denies?: {
23783
+ actions: string[];
21906
23784
  principal_type: string;
21907
23785
  principal?: string | undefined;
21908
23786
  }[] | undefined;
21909
- } | undefined;
21910
- last_applied_template_config?: string | undefined;
23787
+ grants?: {
23788
+ actions: string[];
23789
+ principal_type: string;
23790
+ principal?: string | undefined;
23791
+ }[] | undefined;
23792
+ preserve_denies?: boolean | undefined;
23793
+ remove?: {
23794
+ principal_type: string;
23795
+ principal?: string | undefined;
23796
+ }[] | undefined;
23797
+ remove_denies?: {
23798
+ principal_type: string;
23799
+ principal?: string | undefined;
23800
+ }[] | undefined;
23801
+ } | undefined;
23802
+ last_applied_template_config?: string | undefined;
21911
23803
  config?: string | undefined;
21912
23804
  event_config?: Record<string, {} | null> | undefined;
21913
23805
  event_type?: string | undefined;
@@ -21948,15 +23840,30 @@ export declare const agentRoutineSchema: z.ZodObject<{
21948
23840
  principal_type: string;
21949
23841
  principal?: string | undefined;
21950
23842
  }[] | undefined;
23843
+ add_denies?: {
23844
+ actions: string[];
23845
+ principal_type: string;
23846
+ principal?: string | undefined;
23847
+ }[] | undefined;
23848
+ denies?: {
23849
+ actions: string[];
23850
+ principal_type: string;
23851
+ principal?: string | undefined;
23852
+ }[] | undefined;
21951
23853
  grants?: {
21952
23854
  actions: string[];
21953
23855
  principal_type: string;
21954
23856
  principal?: string | undefined;
21955
23857
  }[] | undefined;
23858
+ preserve_denies?: boolean | undefined;
21956
23859
  remove?: {
21957
23860
  principal_type: string;
21958
23861
  principal?: string | undefined;
21959
23862
  }[] | undefined;
23863
+ remove_denies?: {
23864
+ principal_type: string;
23865
+ principal?: string | undefined;
23866
+ }[] | undefined;
21960
23867
  } | undefined;
21961
23868
  last_applied_template_config?: string | undefined;
21962
23869
  config?: string | undefined;
@@ -22010,6 +23917,40 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
22010
23917
  principal_type: string;
22011
23918
  principal?: string | undefined;
22012
23919
  }>, "many">>;
23920
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
23921
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
23922
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
23923
+ actions: z.ZodArray<z.ZodString, "many">;
23924
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
23925
+ principal: z.ZodOptional<z.ZodString>;
23926
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
23927
+ principal_type: z.ZodString;
23928
+ }, "strip", z.ZodTypeAny, {
23929
+ actions: string[];
23930
+ principal_type: string;
23931
+ principal?: string | undefined;
23932
+ }, {
23933
+ actions: string[];
23934
+ principal_type: string;
23935
+ principal?: string | undefined;
23936
+ }>, "many">>;
23937
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
23938
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
23939
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
23940
+ actions: z.ZodArray<z.ZodString, "many">;
23941
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
23942
+ principal: z.ZodOptional<z.ZodString>;
23943
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
23944
+ principal_type: z.ZodString;
23945
+ }, "strip", z.ZodTypeAny, {
23946
+ actions: string[];
23947
+ principal_type: string;
23948
+ principal?: string | undefined;
23949
+ }, {
23950
+ actions: string[];
23951
+ principal_type: string;
23952
+ principal?: string | undefined;
23953
+ }>, "many">>;
22013
23954
  /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
22014
23955
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
22015
23956
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
@@ -22027,6 +23968,8 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
22027
23968
  principal_type: string;
22028
23969
  principal?: string | undefined;
22029
23970
  }>, "many">>;
23971
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
23972
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
22030
23973
  /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
22031
23974
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
22032
23975
  /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
@@ -22040,36 +23983,79 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
22040
23983
  principal_type: string;
22041
23984
  principal?: string | undefined;
22042
23985
  }>, "many">>;
23986
+ /** Patch mode: principals whose denies should be removed. */
23987
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
23988
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
23989
+ principal: z.ZodOptional<z.ZodString>;
23990
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
23991
+ principal_type: z.ZodString;
23992
+ }, "strip", z.ZodTypeAny, {
23993
+ principal_type: string;
23994
+ principal?: string | undefined;
23995
+ }, {
23996
+ principal_type: string;
23997
+ principal?: string | undefined;
23998
+ }>, "many">>;
22043
23999
  }, "strip", z.ZodTypeAny, {
22044
24000
  add?: {
22045
24001
  actions: string[];
22046
24002
  principal_type: string;
22047
24003
  principal?: string | undefined;
22048
24004
  }[] | undefined;
24005
+ add_denies?: {
24006
+ actions: string[];
24007
+ principal_type: string;
24008
+ principal?: string | undefined;
24009
+ }[] | undefined;
24010
+ denies?: {
24011
+ actions: string[];
24012
+ principal_type: string;
24013
+ principal?: string | undefined;
24014
+ }[] | undefined;
22049
24015
  grants?: {
22050
24016
  actions: string[];
22051
24017
  principal_type: string;
22052
24018
  principal?: string | undefined;
22053
24019
  }[] | undefined;
24020
+ preserve_denies?: boolean | undefined;
22054
24021
  remove?: {
22055
24022
  principal_type: string;
22056
24023
  principal?: string | undefined;
22057
24024
  }[] | undefined;
24025
+ remove_denies?: {
24026
+ principal_type: string;
24027
+ principal?: string | undefined;
24028
+ }[] | undefined;
22058
24029
  }, {
22059
24030
  add?: {
22060
24031
  actions: string[];
22061
24032
  principal_type: string;
22062
24033
  principal?: string | undefined;
22063
24034
  }[] | undefined;
24035
+ add_denies?: {
24036
+ actions: string[];
24037
+ principal_type: string;
24038
+ principal?: string | undefined;
24039
+ }[] | undefined;
24040
+ denies?: {
24041
+ actions: string[];
24042
+ principal_type: string;
24043
+ principal?: string | undefined;
24044
+ }[] | undefined;
22064
24045
  grants?: {
22065
24046
  actions: string[];
22066
24047
  principal_type: string;
22067
24048
  principal?: string | undefined;
22068
24049
  }[] | undefined;
24050
+ preserve_denies?: boolean | undefined;
22069
24051
  remove?: {
22070
24052
  principal_type: string;
22071
24053
  principal?: string | undefined;
22072
24054
  }[] | undefined;
24055
+ remove_denies?: {
24056
+ principal_type: string;
24057
+ principal?: string | undefined;
24058
+ }[] | undefined;
22073
24059
  }>>;
22074
24060
  /** ID of the agent that owns this routine (`agi_...`). */
22075
24061
  agent: z.ZodOptional<z.ZodString>;
@@ -22180,15 +24166,30 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
22180
24166
  principal_type: string;
22181
24167
  principal?: string | undefined;
22182
24168
  }[] | undefined;
24169
+ add_denies?: {
24170
+ actions: string[];
24171
+ principal_type: string;
24172
+ principal?: string | undefined;
24173
+ }[] | undefined;
24174
+ denies?: {
24175
+ actions: string[];
24176
+ principal_type: string;
24177
+ principal?: string | undefined;
24178
+ }[] | undefined;
22183
24179
  grants?: {
22184
24180
  actions: string[];
22185
24181
  principal_type: string;
22186
24182
  principal?: string | undefined;
22187
24183
  }[] | undefined;
24184
+ preserve_denies?: boolean | undefined;
22188
24185
  remove?: {
22189
24186
  principal_type: string;
22190
24187
  principal?: string | undefined;
22191
24188
  }[] | undefined;
24189
+ remove_denies?: {
24190
+ principal_type: string;
24191
+ principal?: string | undefined;
24192
+ }[] | undefined;
22192
24193
  } | undefined;
22193
24194
  last_applied_template_config?: string | undefined;
22194
24195
  config?: string | undefined;
@@ -22231,15 +24232,30 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
22231
24232
  principal_type: string;
22232
24233
  principal?: string | undefined;
22233
24234
  }[] | undefined;
24235
+ add_denies?: {
24236
+ actions: string[];
24237
+ principal_type: string;
24238
+ principal?: string | undefined;
24239
+ }[] | undefined;
24240
+ denies?: {
24241
+ actions: string[];
24242
+ principal_type: string;
24243
+ principal?: string | undefined;
24244
+ }[] | undefined;
22234
24245
  grants?: {
22235
24246
  actions: string[];
22236
24247
  principal_type: string;
22237
24248
  principal?: string | undefined;
22238
24249
  }[] | undefined;
24250
+ preserve_denies?: boolean | undefined;
22239
24251
  remove?: {
22240
24252
  principal_type: string;
22241
24253
  principal?: string | undefined;
22242
24254
  }[] | undefined;
24255
+ remove_denies?: {
24256
+ principal_type: string;
24257
+ principal?: string | undefined;
24258
+ }[] | undefined;
22243
24259
  } | undefined;
22244
24260
  last_applied_template_config?: string | undefined;
22245
24261
  config?: string | undefined;
@@ -22284,15 +24300,30 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
22284
24300
  principal_type: string;
22285
24301
  principal?: string | undefined;
22286
24302
  }[] | undefined;
24303
+ add_denies?: {
24304
+ actions: string[];
24305
+ principal_type: string;
24306
+ principal?: string | undefined;
24307
+ }[] | undefined;
24308
+ denies?: {
24309
+ actions: string[];
24310
+ principal_type: string;
24311
+ principal?: string | undefined;
24312
+ }[] | undefined;
22287
24313
  grants?: {
22288
24314
  actions: string[];
22289
24315
  principal_type: string;
22290
24316
  principal?: string | undefined;
22291
24317
  }[] | undefined;
24318
+ preserve_denies?: boolean | undefined;
22292
24319
  remove?: {
22293
24320
  principal_type: string;
22294
24321
  principal?: string | undefined;
22295
24322
  }[] | undefined;
24323
+ remove_denies?: {
24324
+ principal_type: string;
24325
+ principal?: string | undefined;
24326
+ }[] | undefined;
22296
24327
  } | undefined;
22297
24328
  last_applied_template_config?: string | undefined;
22298
24329
  config?: string | undefined;
@@ -22337,15 +24368,30 @@ export declare const agentRoutineListResponseSchema: z.ZodObject<{
22337
24368
  principal_type: string;
22338
24369
  principal?: string | undefined;
22339
24370
  }[] | undefined;
24371
+ add_denies?: {
24372
+ actions: string[];
24373
+ principal_type: string;
24374
+ principal?: string | undefined;
24375
+ }[] | undefined;
24376
+ denies?: {
24377
+ actions: string[];
24378
+ principal_type: string;
24379
+ principal?: string | undefined;
24380
+ }[] | undefined;
22340
24381
  grants?: {
22341
24382
  actions: string[];
22342
24383
  principal_type: string;
22343
24384
  principal?: string | undefined;
22344
24385
  }[] | undefined;
24386
+ preserve_denies?: boolean | undefined;
22345
24387
  remove?: {
22346
24388
  principal_type: string;
22347
24389
  principal?: string | undefined;
22348
24390
  }[] | undefined;
24391
+ remove_denies?: {
24392
+ principal_type: string;
24393
+ principal?: string | undefined;
24394
+ }[] | undefined;
22349
24395
  } | undefined;
22350
24396
  last_applied_template_config?: string | undefined;
22351
24397
  config?: string | undefined;
@@ -22480,6 +24526,40 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
22480
24526
  principal_type: string;
22481
24527
  principal?: string | undefined;
22482
24528
  }>, "many">>;
24529
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
24530
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
24531
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
24532
+ actions: z.ZodArray<z.ZodString, "many">;
24533
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
24534
+ principal: z.ZodOptional<z.ZodString>;
24535
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
24536
+ principal_type: z.ZodString;
24537
+ }, "strip", z.ZodTypeAny, {
24538
+ actions: string[];
24539
+ principal_type: string;
24540
+ principal?: string | undefined;
24541
+ }, {
24542
+ actions: string[];
24543
+ principal_type: string;
24544
+ principal?: string | undefined;
24545
+ }>, "many">>;
24546
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
24547
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
24548
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
24549
+ actions: z.ZodArray<z.ZodString, "many">;
24550
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
24551
+ principal: z.ZodOptional<z.ZodString>;
24552
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
24553
+ principal_type: z.ZodString;
24554
+ }, "strip", z.ZodTypeAny, {
24555
+ actions: string[];
24556
+ principal_type: string;
24557
+ principal?: string | undefined;
24558
+ }, {
24559
+ actions: string[];
24560
+ principal_type: string;
24561
+ principal?: string | undefined;
24562
+ }>, "many">>;
22483
24563
  /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
22484
24564
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
22485
24565
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
@@ -22497,6 +24577,8 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
22497
24577
  principal_type: string;
22498
24578
  principal?: string | undefined;
22499
24579
  }>, "many">>;
24580
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
24581
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
22500
24582
  /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
22501
24583
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
22502
24584
  /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
@@ -22510,36 +24592,79 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
22510
24592
  principal_type: string;
22511
24593
  principal?: string | undefined;
22512
24594
  }>, "many">>;
24595
+ /** Patch mode: principals whose denies should be removed. */
24596
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
24597
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
24598
+ principal: z.ZodOptional<z.ZodString>;
24599
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
24600
+ principal_type: z.ZodString;
24601
+ }, "strip", z.ZodTypeAny, {
24602
+ principal_type: string;
24603
+ principal?: string | undefined;
24604
+ }, {
24605
+ principal_type: string;
24606
+ principal?: string | undefined;
24607
+ }>, "many">>;
22513
24608
  }, "strip", z.ZodTypeAny, {
22514
24609
  add?: {
22515
24610
  actions: string[];
22516
24611
  principal_type: string;
22517
24612
  principal?: string | undefined;
22518
24613
  }[] | undefined;
24614
+ add_denies?: {
24615
+ actions: string[];
24616
+ principal_type: string;
24617
+ principal?: string | undefined;
24618
+ }[] | undefined;
24619
+ denies?: {
24620
+ actions: string[];
24621
+ principal_type: string;
24622
+ principal?: string | undefined;
24623
+ }[] | undefined;
22519
24624
  grants?: {
22520
24625
  actions: string[];
22521
24626
  principal_type: string;
22522
24627
  principal?: string | undefined;
22523
24628
  }[] | undefined;
24629
+ preserve_denies?: boolean | undefined;
22524
24630
  remove?: {
22525
24631
  principal_type: string;
22526
24632
  principal?: string | undefined;
22527
24633
  }[] | undefined;
24634
+ remove_denies?: {
24635
+ principal_type: string;
24636
+ principal?: string | undefined;
24637
+ }[] | undefined;
22528
24638
  }, {
22529
24639
  add?: {
22530
24640
  actions: string[];
22531
24641
  principal_type: string;
22532
24642
  principal?: string | undefined;
22533
24643
  }[] | undefined;
24644
+ add_denies?: {
24645
+ actions: string[];
24646
+ principal_type: string;
24647
+ principal?: string | undefined;
24648
+ }[] | undefined;
24649
+ denies?: {
24650
+ actions: string[];
24651
+ principal_type: string;
24652
+ principal?: string | undefined;
24653
+ }[] | undefined;
22534
24654
  grants?: {
22535
24655
  actions: string[];
22536
24656
  principal_type: string;
22537
24657
  principal?: string | undefined;
22538
24658
  }[] | undefined;
24659
+ preserve_denies?: boolean | undefined;
22539
24660
  remove?: {
22540
24661
  principal_type: string;
22541
24662
  principal?: string | undefined;
22542
24663
  }[] | undefined;
24664
+ remove_denies?: {
24665
+ principal_type: string;
24666
+ principal?: string | undefined;
24667
+ }[] | undefined;
22543
24668
  }>>;
22544
24669
  /** ID of the agent that owns the parent routine (`agi_...`). */
22545
24670
  agent: z.ZodOptional<z.ZodString>;
@@ -22637,15 +24762,30 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
22637
24762
  principal_type: string;
22638
24763
  principal?: string | undefined;
22639
24764
  }[] | undefined;
24765
+ add_denies?: {
24766
+ actions: string[];
24767
+ principal_type: string;
24768
+ principal?: string | undefined;
24769
+ }[] | undefined;
24770
+ denies?: {
24771
+ actions: string[];
24772
+ principal_type: string;
24773
+ principal?: string | undefined;
24774
+ }[] | undefined;
22640
24775
  grants?: {
22641
24776
  actions: string[];
22642
24777
  principal_type: string;
22643
24778
  principal?: string | undefined;
22644
24779
  }[] | undefined;
24780
+ preserve_denies?: boolean | undefined;
22645
24781
  remove?: {
22646
24782
  principal_type: string;
22647
24783
  principal?: string | undefined;
22648
24784
  }[] | undefined;
24785
+ remove_denies?: {
24786
+ principal_type: string;
24787
+ principal?: string | undefined;
24788
+ }[] | undefined;
22649
24789
  } | undefined;
22650
24790
  duration_ms?: number | undefined;
22651
24791
  delivery?: {
@@ -22682,15 +24822,30 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
22682
24822
  principal_type: string;
22683
24823
  principal?: string | undefined;
22684
24824
  }[] | undefined;
24825
+ add_denies?: {
24826
+ actions: string[];
24827
+ principal_type: string;
24828
+ principal?: string | undefined;
24829
+ }[] | undefined;
24830
+ denies?: {
24831
+ actions: string[];
24832
+ principal_type: string;
24833
+ principal?: string | undefined;
24834
+ }[] | undefined;
22685
24835
  grants?: {
22686
24836
  actions: string[];
22687
24837
  principal_type: string;
22688
24838
  principal?: string | undefined;
22689
24839
  }[] | undefined;
24840
+ preserve_denies?: boolean | undefined;
22690
24841
  remove?: {
22691
24842
  principal_type: string;
22692
24843
  principal?: string | undefined;
22693
24844
  }[] | undefined;
24845
+ remove_denies?: {
24846
+ principal_type: string;
24847
+ principal?: string | undefined;
24848
+ }[] | undefined;
22694
24849
  } | undefined;
22695
24850
  duration_ms?: number | undefined;
22696
24851
  delivery?: {
@@ -22746,6 +24901,40 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
22746
24901
  principal_type: string;
22747
24902
  principal?: string | undefined;
22748
24903
  }>, "many">>;
24904
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
24905
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
24906
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
24907
+ actions: z.ZodArray<z.ZodString, "many">;
24908
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
24909
+ principal: z.ZodOptional<z.ZodString>;
24910
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
24911
+ principal_type: z.ZodString;
24912
+ }, "strip", z.ZodTypeAny, {
24913
+ actions: string[];
24914
+ principal_type: string;
24915
+ principal?: string | undefined;
24916
+ }, {
24917
+ actions: string[];
24918
+ principal_type: string;
24919
+ principal?: string | undefined;
24920
+ }>, "many">>;
24921
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
24922
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
24923
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
24924
+ actions: z.ZodArray<z.ZodString, "many">;
24925
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
24926
+ principal: z.ZodOptional<z.ZodString>;
24927
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
24928
+ principal_type: z.ZodString;
24929
+ }, "strip", z.ZodTypeAny, {
24930
+ actions: string[];
24931
+ principal_type: string;
24932
+ principal?: string | undefined;
24933
+ }, {
24934
+ actions: string[];
24935
+ principal_type: string;
24936
+ principal?: string | undefined;
24937
+ }>, "many">>;
22749
24938
  /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
22750
24939
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
22751
24940
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
@@ -22763,6 +24952,8 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
22763
24952
  principal_type: string;
22764
24953
  principal?: string | undefined;
22765
24954
  }>, "many">>;
24955
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
24956
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
22766
24957
  /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
22767
24958
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
22768
24959
  /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
@@ -22776,36 +24967,79 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
22776
24967
  principal_type: string;
22777
24968
  principal?: string | undefined;
22778
24969
  }>, "many">>;
24970
+ /** Patch mode: principals whose denies should be removed. */
24971
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
24972
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
24973
+ principal: z.ZodOptional<z.ZodString>;
24974
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
24975
+ principal_type: z.ZodString;
24976
+ }, "strip", z.ZodTypeAny, {
24977
+ principal_type: string;
24978
+ principal?: string | undefined;
24979
+ }, {
24980
+ principal_type: string;
24981
+ principal?: string | undefined;
24982
+ }>, "many">>;
22779
24983
  }, "strip", z.ZodTypeAny, {
22780
24984
  add?: {
22781
24985
  actions: string[];
22782
24986
  principal_type: string;
22783
24987
  principal?: string | undefined;
22784
24988
  }[] | undefined;
24989
+ add_denies?: {
24990
+ actions: string[];
24991
+ principal_type: string;
24992
+ principal?: string | undefined;
24993
+ }[] | undefined;
24994
+ denies?: {
24995
+ actions: string[];
24996
+ principal_type: string;
24997
+ principal?: string | undefined;
24998
+ }[] | undefined;
22785
24999
  grants?: {
22786
25000
  actions: string[];
22787
25001
  principal_type: string;
22788
25002
  principal?: string | undefined;
22789
25003
  }[] | undefined;
25004
+ preserve_denies?: boolean | undefined;
22790
25005
  remove?: {
22791
25006
  principal_type: string;
22792
25007
  principal?: string | undefined;
22793
25008
  }[] | undefined;
25009
+ remove_denies?: {
25010
+ principal_type: string;
25011
+ principal?: string | undefined;
25012
+ }[] | undefined;
22794
25013
  }, {
22795
25014
  add?: {
22796
25015
  actions: string[];
22797
25016
  principal_type: string;
22798
25017
  principal?: string | undefined;
22799
25018
  }[] | undefined;
25019
+ add_denies?: {
25020
+ actions: string[];
25021
+ principal_type: string;
25022
+ principal?: string | undefined;
25023
+ }[] | undefined;
25024
+ denies?: {
25025
+ actions: string[];
25026
+ principal_type: string;
25027
+ principal?: string | undefined;
25028
+ }[] | undefined;
22800
25029
  grants?: {
22801
25030
  actions: string[];
22802
25031
  principal_type: string;
22803
25032
  principal?: string | undefined;
22804
25033
  }[] | undefined;
25034
+ preserve_denies?: boolean | undefined;
22805
25035
  remove?: {
22806
25036
  principal_type: string;
22807
25037
  principal?: string | undefined;
22808
25038
  }[] | undefined;
25039
+ remove_denies?: {
25040
+ principal_type: string;
25041
+ principal?: string | undefined;
25042
+ }[] | undefined;
22809
25043
  }>>;
22810
25044
  /** ID of the agent that owns the parent routine (`agi_...`). */
22811
25045
  agent: z.ZodOptional<z.ZodString>;
@@ -22903,15 +25137,30 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
22903
25137
  principal_type: string;
22904
25138
  principal?: string | undefined;
22905
25139
  }[] | undefined;
25140
+ add_denies?: {
25141
+ actions: string[];
25142
+ principal_type: string;
25143
+ principal?: string | undefined;
25144
+ }[] | undefined;
25145
+ denies?: {
25146
+ actions: string[];
25147
+ principal_type: string;
25148
+ principal?: string | undefined;
25149
+ }[] | undefined;
22906
25150
  grants?: {
22907
25151
  actions: string[];
22908
25152
  principal_type: string;
22909
25153
  principal?: string | undefined;
22910
25154
  }[] | undefined;
25155
+ preserve_denies?: boolean | undefined;
22911
25156
  remove?: {
22912
25157
  principal_type: string;
22913
25158
  principal?: string | undefined;
22914
25159
  }[] | undefined;
25160
+ remove_denies?: {
25161
+ principal_type: string;
25162
+ principal?: string | undefined;
25163
+ }[] | undefined;
22915
25164
  } | undefined;
22916
25165
  duration_ms?: number | undefined;
22917
25166
  delivery?: {
@@ -22948,15 +25197,30 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
22948
25197
  principal_type: string;
22949
25198
  principal?: string | undefined;
22950
25199
  }[] | undefined;
25200
+ add_denies?: {
25201
+ actions: string[];
25202
+ principal_type: string;
25203
+ principal?: string | undefined;
25204
+ }[] | undefined;
25205
+ denies?: {
25206
+ actions: string[];
25207
+ principal_type: string;
25208
+ principal?: string | undefined;
25209
+ }[] | undefined;
22951
25210
  grants?: {
22952
25211
  actions: string[];
22953
25212
  principal_type: string;
22954
25213
  principal?: string | undefined;
22955
25214
  }[] | undefined;
25215
+ preserve_denies?: boolean | undefined;
22956
25216
  remove?: {
22957
25217
  principal_type: string;
22958
25218
  principal?: string | undefined;
22959
25219
  }[] | undefined;
25220
+ remove_denies?: {
25221
+ principal_type: string;
25222
+ principal?: string | undefined;
25223
+ }[] | undefined;
22960
25224
  } | undefined;
22961
25225
  duration_ms?: number | undefined;
22962
25226
  delivery?: {
@@ -22995,15 +25259,30 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
22995
25259
  principal_type: string;
22996
25260
  principal?: string | undefined;
22997
25261
  }[] | undefined;
25262
+ add_denies?: {
25263
+ actions: string[];
25264
+ principal_type: string;
25265
+ principal?: string | undefined;
25266
+ }[] | undefined;
25267
+ denies?: {
25268
+ actions: string[];
25269
+ principal_type: string;
25270
+ principal?: string | undefined;
25271
+ }[] | undefined;
22998
25272
  grants?: {
22999
25273
  actions: string[];
23000
25274
  principal_type: string;
23001
25275
  principal?: string | undefined;
23002
25276
  }[] | undefined;
25277
+ preserve_denies?: boolean | undefined;
23003
25278
  remove?: {
23004
25279
  principal_type: string;
23005
25280
  principal?: string | undefined;
23006
25281
  }[] | undefined;
25282
+ remove_denies?: {
25283
+ principal_type: string;
25284
+ principal?: string | undefined;
25285
+ }[] | undefined;
23007
25286
  } | undefined;
23008
25287
  duration_ms?: number | undefined;
23009
25288
  delivery?: {
@@ -23044,15 +25323,30 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
23044
25323
  principal_type: string;
23045
25324
  principal?: string | undefined;
23046
25325
  }[] | undefined;
25326
+ add_denies?: {
25327
+ actions: string[];
25328
+ principal_type: string;
25329
+ principal?: string | undefined;
25330
+ }[] | undefined;
25331
+ denies?: {
25332
+ actions: string[];
25333
+ principal_type: string;
25334
+ principal?: string | undefined;
25335
+ }[] | undefined;
23047
25336
  grants?: {
23048
25337
  actions: string[];
23049
25338
  principal_type: string;
23050
25339
  principal?: string | undefined;
23051
25340
  }[] | undefined;
25341
+ preserve_denies?: boolean | undefined;
23052
25342
  remove?: {
23053
25343
  principal_type: string;
23054
25344
  principal?: string | undefined;
23055
25345
  }[] | undefined;
25346
+ remove_denies?: {
25347
+ principal_type: string;
25348
+ principal?: string | undefined;
25349
+ }[] | undefined;
23056
25350
  } | undefined;
23057
25351
  duration_ms?: number | undefined;
23058
25352
  delivery?: {
@@ -24005,7 +26299,7 @@ export interface AgentUpgradeChange {
24005
26299
  parent_template_config: UpgradeTemplateSummary;
24006
26300
  /** Resource-type-specific identity details. Tools: `tool_type`, `builtin_tool_key`, `name_prefix`, `handler_type`, `instruction`. Routines: `handler_type`, `preset_name`, `event_type`, `schedule`, `trigger_context`. Skills: `instruction`. Computers: `region`. Knowledge: `mode`, `knowledge_key`, `extraction_output_ref`. Only populated keys are present; `null` when nothing is known. */
24007
26301
  resource?: Record<string, unknown> | undefined;
24008
- /** Type of the resource being changed. One of `"agent"`, `"tool"`, `"routine"`, `"skill"`, `"computer"`, or `"knowledge"`. */
26302
+ /** Type of the resource being changed. One of `"agent"`, `"tool"`, `"routine"`, `"skill"`, `"computer"`, `"endpoint"`, or `"knowledge"`. */
24009
26303
  resource_type: string;
24010
26304
  /** Summary of the specific child template config (`cfg_...`) that defines this resource. `null` when no source template is resolvable. */
24011
26305
  source_template_config?: UpgradeTemplateSummary | undefined;
@@ -24090,7 +26384,7 @@ export declare const agentUpgradeChangeSchema: z.ZodObject<{
24090
26384
  }>;
24091
26385
  /** Resource-type-specific identity details. Tools: `tool_type`, `builtin_tool_key`, `name_prefix`, `handler_type`, `instruction`. Routines: `handler_type`, `preset_name`, `event_type`, `schedule`, `trigger_context`. Skills: `instruction`. Computers: `region`. Knowledge: `mode`, `knowledge_key`, `extraction_output_ref`. Only populated keys are present; `null` when nothing is known. */
24092
26386
  resource: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
24093
- /** Type of the resource being changed. One of `"agent"`, `"tool"`, `"routine"`, `"skill"`, `"computer"`, or `"knowledge"`. */
26387
+ /** Type of the resource being changed. One of `"agent"`, `"tool"`, `"routine"`, `"skill"`, `"computer"`, `"endpoint"`, or `"knowledge"`. */
24094
26388
  resource_type: z.ZodString;
24095
26389
  /** Summary of the specific child template config (`cfg_...`) that defines this resource. `null` when no source template is resolvable. */
24096
26390
  source_template_config: z.ZodOptional<z.ZodObject<{
@@ -24337,7 +26631,7 @@ export declare const agentUpgradeResultSchema: z.ZodObject<{
24337
26631
  }>;
24338
26632
  /** Resource-type-specific identity details. Tools: `tool_type`, `builtin_tool_key`, `name_prefix`, `handler_type`, `instruction`. Routines: `handler_type`, `preset_name`, `event_type`, `schedule`, `trigger_context`. Skills: `instruction`. Computers: `region`. Knowledge: `mode`, `knowledge_key`, `extraction_output_ref`. Only populated keys are present; `null` when nothing is known. */
24339
26633
  resource: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
24340
- /** Type of the resource being changed. One of `"agent"`, `"tool"`, `"routine"`, `"skill"`, `"computer"`, or `"knowledge"`. */
26634
+ /** Type of the resource being changed. One of `"agent"`, `"tool"`, `"routine"`, `"skill"`, `"computer"`, `"endpoint"`, or `"knowledge"`. */
24341
26635
  resource_type: z.ZodString;
24342
26636
  /** Summary of the specific child template config (`cfg_...`) that defines this resource. `null` when no source template is resolvable. */
24343
26637
  source_template_config: z.ZodOptional<z.ZodObject<{
@@ -24487,12 +26781,6 @@ export declare const agentUpgradeResultSchema: z.ZodObject<{
24487
26781
  }, "strip", z.ZodTypeAny, {
24488
26782
  status: string;
24489
26783
  mode: string;
24490
- summary: {
24491
- adds: number;
24492
- noops: number;
24493
- removes: number;
24494
- updates: number;
24495
- };
24496
26784
  changes: {
24497
26785
  action: string;
24498
26786
  parent_template_config: {
@@ -24531,17 +26819,17 @@ export declare const agentUpgradeResultSchema: z.ZodObject<{
24531
26819
  display_name?: string | null | undefined;
24532
26820
  } | undefined;
24533
26821
  }[];
24534
- dry_run: boolean;
24535
- review_fingerprint?: string | undefined;
24536
- }, {
24537
- status: string;
24538
- mode: string;
24539
26822
  summary: {
24540
26823
  adds: number;
24541
26824
  noops: number;
24542
26825
  removes: number;
24543
26826
  updates: number;
24544
26827
  };
26828
+ dry_run: boolean;
26829
+ review_fingerprint?: string | undefined;
26830
+ }, {
26831
+ status: string;
26832
+ mode: string;
24545
26833
  changes: {
24546
26834
  action: string;
24547
26835
  parent_template_config: {
@@ -24580,6 +26868,12 @@ export declare const agentUpgradeResultSchema: z.ZodObject<{
24580
26868
  display_name?: string | null | undefined;
24581
26869
  } | undefined;
24582
26870
  }[];
26871
+ summary: {
26872
+ adds: number;
26873
+ noops: number;
26874
+ removes: number;
26875
+ updates: number;
26876
+ };
24583
26877
  dry_run: boolean;
24584
26878
  review_fingerprint?: string | undefined;
24585
26879
  }>;
@@ -24617,6 +26911,40 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
24617
26911
  principal_type: string;
24618
26912
  principal?: string | undefined;
24619
26913
  }>, "many">>;
26914
+ /** Patch mode: denies to add or merge, replacing any grant for the same principal. */
26915
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
26916
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
26917
+ actions: z.ZodArray<z.ZodString, "many">;
26918
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
26919
+ principal: z.ZodOptional<z.ZodString>;
26920
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
26921
+ principal_type: z.ZodString;
26922
+ }, "strip", z.ZodTypeAny, {
26923
+ actions: string[];
26924
+ principal_type: string;
26925
+ principal?: string | undefined;
26926
+ }, {
26927
+ actions: string[];
26928
+ principal_type: string;
26929
+ principal?: string | undefined;
26930
+ }>, "many">>;
26931
+ /** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
26932
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
26933
+ /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
26934
+ actions: z.ZodArray<z.ZodString, "many">;
26935
+ /** The identifier of the principal. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`; omit entirely when `principal_type` is `"everyone"`. */
26936
+ principal: z.ZodOptional<z.ZodString>;
26937
+ /** The kind of principal receiving the grant. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
26938
+ principal_type: z.ZodString;
26939
+ }, "strip", z.ZodTypeAny, {
26940
+ actions: string[];
26941
+ principal_type: string;
26942
+ principal?: string | undefined;
26943
+ }, {
26944
+ actions: string[];
26945
+ principal_type: string;
26946
+ principal?: string | undefined;
26947
+ }>, "many">>;
24620
26948
  /** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
24621
26949
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
24622
26950
  /** Array of action strings the principal is permitted to perform, e.g. `["read", "write"]`. Must contain at least one entry. */
@@ -24634,6 +26962,8 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
24634
26962
  principal_type: string;
24635
26963
  principal?: string | undefined;
24636
26964
  }>, "many">>;
26965
+ /** Retain current server denies atomically in replacement or patch mode; current denies win. */
26966
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
24637
26967
  /** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
24638
26968
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
24639
26969
  /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
@@ -24647,36 +26977,79 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
24647
26977
  principal_type: string;
24648
26978
  principal?: string | undefined;
24649
26979
  }>, "many">>;
26980
+ /** Patch mode: principals whose denies should be removed. */
26981
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
26982
+ /** The identifier of the principal to remove. A string ID for `"user"`, `"team"`, `"org"`, and `"agent"` types; one of `"admin"`, `"member"`, or `"viewer"` for `"org_role"`. Omit when `principal_type` is `"everyone"`. */
26983
+ principal: z.ZodOptional<z.ZodString>;
26984
+ /** The kind of principal to remove. One of `"user"`, `"team"`, `"org"`, `"org_role"`, `"agent"`, or `"everyone"`. */
26985
+ principal_type: z.ZodString;
26986
+ }, "strip", z.ZodTypeAny, {
26987
+ principal_type: string;
26988
+ principal?: string | undefined;
26989
+ }, {
26990
+ principal_type: string;
26991
+ principal?: string | undefined;
26992
+ }>, "many">>;
24650
26993
  }, "strip", z.ZodTypeAny, {
24651
26994
  add?: {
24652
26995
  actions: string[];
24653
26996
  principal_type: string;
24654
26997
  principal?: string | undefined;
24655
26998
  }[] | undefined;
26999
+ add_denies?: {
27000
+ actions: string[];
27001
+ principal_type: string;
27002
+ principal?: string | undefined;
27003
+ }[] | undefined;
27004
+ denies?: {
27005
+ actions: string[];
27006
+ principal_type: string;
27007
+ principal?: string | undefined;
27008
+ }[] | undefined;
24656
27009
  grants?: {
24657
27010
  actions: string[];
24658
27011
  principal_type: string;
24659
27012
  principal?: string | undefined;
24660
27013
  }[] | undefined;
27014
+ preserve_denies?: boolean | undefined;
24661
27015
  remove?: {
24662
27016
  principal_type: string;
24663
27017
  principal?: string | undefined;
24664
27018
  }[] | undefined;
27019
+ remove_denies?: {
27020
+ principal_type: string;
27021
+ principal?: string | undefined;
27022
+ }[] | undefined;
24665
27023
  }, {
24666
27024
  add?: {
24667
27025
  actions: string[];
24668
27026
  principal_type: string;
24669
27027
  principal?: string | undefined;
24670
27028
  }[] | undefined;
27029
+ add_denies?: {
27030
+ actions: string[];
27031
+ principal_type: string;
27032
+ principal?: string | undefined;
27033
+ }[] | undefined;
27034
+ denies?: {
27035
+ actions: string[];
27036
+ principal_type: string;
27037
+ principal?: string | undefined;
27038
+ }[] | undefined;
24671
27039
  grants?: {
24672
27040
  actions: string[];
24673
27041
  principal_type: string;
24674
27042
  principal?: string | undefined;
24675
27043
  }[] | undefined;
27044
+ preserve_denies?: boolean | undefined;
24676
27045
  remove?: {
24677
27046
  principal_type: string;
24678
27047
  principal?: string | undefined;
24679
27048
  }[] | undefined;
27049
+ remove_denies?: {
27050
+ principal_type: string;
27051
+ principal?: string | undefined;
27052
+ }[] | undefined;
24680
27053
  }>>>;
24681
27054
  /** ID of the application that owns this agent (`dap_...`). */
24682
27055
  app: z.ZodOptional<z.ZodString>;
@@ -25811,15 +28184,30 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
25811
28184
  principal_type: string;
25812
28185
  principal?: string | undefined;
25813
28186
  }[] | undefined;
28187
+ add_denies?: {
28188
+ actions: string[];
28189
+ principal_type: string;
28190
+ principal?: string | undefined;
28191
+ }[] | undefined;
28192
+ denies?: {
28193
+ actions: string[];
28194
+ principal_type: string;
28195
+ principal?: string | undefined;
28196
+ }[] | undefined;
25814
28197
  grants?: {
25815
28198
  actions: string[];
25816
28199
  principal_type: string;
25817
28200
  principal?: string | undefined;
25818
28201
  }[] | undefined;
28202
+ preserve_denies?: boolean | undefined;
25819
28203
  remove?: {
25820
28204
  principal_type: string;
25821
28205
  principal?: string | undefined;
25822
28206
  }[] | undefined;
28207
+ remove_denies?: {
28208
+ principal_type: string;
28209
+ principal?: string | undefined;
28210
+ }[] | undefined;
25823
28211
  } | null | undefined;
25824
28212
  default_model?: string | null | undefined;
25825
28213
  identity?: string | null | undefined;
@@ -25989,15 +28377,30 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
25989
28377
  principal_type: string;
25990
28378
  principal?: string | undefined;
25991
28379
  }[] | undefined;
28380
+ add_denies?: {
28381
+ actions: string[];
28382
+ principal_type: string;
28383
+ principal?: string | undefined;
28384
+ }[] | undefined;
28385
+ denies?: {
28386
+ actions: string[];
28387
+ principal_type: string;
28388
+ principal?: string | undefined;
28389
+ }[] | undefined;
25992
28390
  grants?: {
25993
28391
  actions: string[];
25994
28392
  principal_type: string;
25995
28393
  principal?: string | undefined;
25996
28394
  }[] | undefined;
28395
+ preserve_denies?: boolean | undefined;
25997
28396
  remove?: {
25998
28397
  principal_type: string;
25999
28398
  principal?: string | undefined;
26000
28399
  }[] | undefined;
28400
+ remove_denies?: {
28401
+ principal_type: string;
28402
+ principal?: string | undefined;
28403
+ }[] | undefined;
26001
28404
  } | null | undefined;
26002
28405
  default_model?: string | null | undefined;
26003
28406
  identity?: string | null | undefined;
@@ -26644,7 +29047,7 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
26644
29047
  }>;
26645
29048
  /** Resource-type-specific identity details. Tools: `tool_type`, `builtin_tool_key`, `name_prefix`, `handler_type`, `instruction`. Routines: `handler_type`, `preset_name`, `event_type`, `schedule`, `trigger_context`. Skills: `instruction`. Computers: `region`. Knowledge: `mode`, `knowledge_key`, `extraction_output_ref`. Only populated keys are present; `null` when nothing is known. */
26646
29049
  resource: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
26647
- /** Type of the resource being changed. One of `"agent"`, `"tool"`, `"routine"`, `"skill"`, `"computer"`, or `"knowledge"`. */
29050
+ /** Type of the resource being changed. One of `"agent"`, `"tool"`, `"routine"`, `"skill"`, `"computer"`, `"endpoint"`, or `"knowledge"`. */
26648
29051
  resource_type: z.ZodString;
26649
29052
  /** Summary of the specific child template config (`cfg_...`) that defines this resource. `null` when no source template is resolvable. */
26650
29053
  source_template_config: z.ZodOptional<z.ZodObject<{
@@ -26794,12 +29197,6 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
26794
29197
  }, "strip", z.ZodTypeAny, {
26795
29198
  status: string;
26796
29199
  mode: string;
26797
- summary: {
26798
- adds: number;
26799
- noops: number;
26800
- removes: number;
26801
- updates: number;
26802
- };
26803
29200
  changes: {
26804
29201
  action: string;
26805
29202
  parent_template_config: {
@@ -26838,17 +29235,17 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
26838
29235
  display_name?: string | null | undefined;
26839
29236
  } | undefined;
26840
29237
  }[];
26841
- dry_run: boolean;
26842
- review_fingerprint?: string | undefined;
26843
- }, {
26844
- status: string;
26845
- mode: string;
26846
29238
  summary: {
26847
29239
  adds: number;
26848
29240
  noops: number;
26849
29241
  removes: number;
26850
29242
  updates: number;
26851
29243
  };
29244
+ dry_run: boolean;
29245
+ review_fingerprint?: string | undefined;
29246
+ }, {
29247
+ status: string;
29248
+ mode: string;
26852
29249
  changes: {
26853
29250
  action: string;
26854
29251
  parent_template_config: {
@@ -26887,6 +29284,12 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
26887
29284
  display_name?: string | null | undefined;
26888
29285
  } | undefined;
26889
29286
  }[];
29287
+ summary: {
29288
+ adds: number;
29289
+ noops: number;
29290
+ removes: number;
29291
+ updates: number;
29292
+ };
26890
29293
  dry_run: boolean;
26891
29294
  review_fingerprint?: string | undefined;
26892
29295
  }>;
@@ -26969,12 +29372,6 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
26969
29372
  upgrade_result: {
26970
29373
  status: string;
26971
29374
  mode: string;
26972
- summary: {
26973
- adds: number;
26974
- noops: number;
26975
- removes: number;
26976
- updates: number;
26977
- };
26978
29375
  changes: {
26979
29376
  action: string;
26980
29377
  parent_template_config: {
@@ -27013,6 +29410,12 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
27013
29410
  display_name?: string | null | undefined;
27014
29411
  } | undefined;
27015
29412
  }[];
29413
+ summary: {
29414
+ adds: number;
29415
+ noops: number;
29416
+ removes: number;
29417
+ updates: number;
29418
+ };
27016
29419
  dry_run: boolean;
27017
29420
  review_fingerprint?: string | undefined;
27018
29421
  };
@@ -27037,15 +29440,30 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
27037
29440
  principal_type: string;
27038
29441
  principal?: string | undefined;
27039
29442
  }[] | undefined;
29443
+ add_denies?: {
29444
+ actions: string[];
29445
+ principal_type: string;
29446
+ principal?: string | undefined;
29447
+ }[] | undefined;
29448
+ denies?: {
29449
+ actions: string[];
29450
+ principal_type: string;
29451
+ principal?: string | undefined;
29452
+ }[] | undefined;
27040
29453
  grants?: {
27041
29454
  actions: string[];
27042
29455
  principal_type: string;
27043
29456
  principal?: string | undefined;
27044
29457
  }[] | undefined;
29458
+ preserve_denies?: boolean | undefined;
27045
29459
  remove?: {
27046
29460
  principal_type: string;
27047
29461
  principal?: string | undefined;
27048
29462
  }[] | undefined;
29463
+ remove_denies?: {
29464
+ principal_type: string;
29465
+ principal?: string | undefined;
29466
+ }[] | undefined;
27049
29467
  } | null | undefined;
27050
29468
  default_model?: string | null | undefined;
27051
29469
  identity?: string | null | undefined;
@@ -27274,12 +29692,6 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
27274
29692
  upgrade_result: {
27275
29693
  status: string;
27276
29694
  mode: string;
27277
- summary: {
27278
- adds: number;
27279
- noops: number;
27280
- removes: number;
27281
- updates: number;
27282
- };
27283
29695
  changes: {
27284
29696
  action: string;
27285
29697
  parent_template_config: {
@@ -27318,6 +29730,12 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
27318
29730
  display_name?: string | null | undefined;
27319
29731
  } | undefined;
27320
29732
  }[];
29733
+ summary: {
29734
+ adds: number;
29735
+ noops: number;
29736
+ removes: number;
29737
+ updates: number;
29738
+ };
27321
29739
  dry_run: boolean;
27322
29740
  review_fingerprint?: string | undefined;
27323
29741
  };
@@ -27342,15 +29760,30 @@ export declare const agentUpgradeResponseSchema: z.ZodObject<{
27342
29760
  principal_type: string;
27343
29761
  principal?: string | undefined;
27344
29762
  }[] | undefined;
29763
+ add_denies?: {
29764
+ actions: string[];
29765
+ principal_type: string;
29766
+ principal?: string | undefined;
29767
+ }[] | undefined;
29768
+ denies?: {
29769
+ actions: string[];
29770
+ principal_type: string;
29771
+ principal?: string | undefined;
29772
+ }[] | undefined;
27345
29773
  grants?: {
27346
29774
  actions: string[];
27347
29775
  principal_type: string;
27348
29776
  principal?: string | undefined;
27349
29777
  }[] | undefined;
29778
+ preserve_denies?: boolean | undefined;
27350
29779
  remove?: {
27351
29780
  principal_type: string;
27352
29781
  principal?: string | undefined;
27353
29782
  }[] | undefined;
29783
+ remove_denies?: {
29784
+ principal_type: string;
29785
+ principal?: string | undefined;
29786
+ }[] | undefined;
27354
29787
  } | null | undefined;
27355
29788
  default_model?: string | null | undefined;
27356
29789
  identity?: string | null | undefined;
@@ -29939,14 +32372,6 @@ export declare const solutionUpgradeResultSchema: z.ZodObject<{
29939
32372
  version_change: z.ZodString;
29940
32373
  }, "strip", z.ZodTypeAny, {
29941
32374
  status: string;
29942
- summary: {
29943
- adds: number;
29944
- noops: number;
29945
- updates: number;
29946
- deletes: number;
29947
- orphans: number;
29948
- referenced_orphans: number;
29949
- };
29950
32375
  changes: {
29951
32376
  key: string;
29952
32377
  action: string;
@@ -29965,6 +32390,14 @@ export declare const solutionUpgradeResultSchema: z.ZodObject<{
29965
32390
  lookup_key?: string | undefined;
29966
32391
  }[] | undefined;
29967
32392
  }[];
32393
+ summary: {
32394
+ adds: number;
32395
+ noops: number;
32396
+ updates: number;
32397
+ deletes: number;
32398
+ orphans: number;
32399
+ referenced_orphans: number;
32400
+ };
29968
32401
  dry_run: boolean;
29969
32402
  version_change: string;
29970
32403
  message?: string | undefined;
@@ -29974,14 +32407,6 @@ export declare const solutionUpgradeResultSchema: z.ZodObject<{
29974
32407
  incoming_solution_version?: string | undefined;
29975
32408
  }, {
29976
32409
  status: string;
29977
- summary: {
29978
- adds: number;
29979
- noops: number;
29980
- updates: number;
29981
- deletes: number;
29982
- orphans: number;
29983
- referenced_orphans: number;
29984
- };
29985
32410
  changes: {
29986
32411
  key: string;
29987
32412
  action: string;
@@ -30000,6 +32425,14 @@ export declare const solutionUpgradeResultSchema: z.ZodObject<{
30000
32425
  lookup_key?: string | undefined;
30001
32426
  }[] | undefined;
30002
32427
  }[];
32428
+ summary: {
32429
+ adds: number;
32430
+ noops: number;
32431
+ updates: number;
32432
+ deletes: number;
32433
+ orphans: number;
32434
+ referenced_orphans: number;
32435
+ };
30003
32436
  dry_run: boolean;
30004
32437
  version_change: string;
30005
32438
  message?: string | undefined;
@@ -30563,14 +32996,6 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
30563
32996
  version_change: z.ZodString;
30564
32997
  }, "strip", z.ZodTypeAny, {
30565
32998
  status: string;
30566
- summary: {
30567
- adds: number;
30568
- noops: number;
30569
- updates: number;
30570
- deletes: number;
30571
- orphans: number;
30572
- referenced_orphans: number;
30573
- };
30574
32999
  changes: {
30575
33000
  key: string;
30576
33001
  action: string;
@@ -30589,6 +33014,14 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
30589
33014
  lookup_key?: string | undefined;
30590
33015
  }[] | undefined;
30591
33016
  }[];
33017
+ summary: {
33018
+ adds: number;
33019
+ noops: number;
33020
+ updates: number;
33021
+ deletes: number;
33022
+ orphans: number;
33023
+ referenced_orphans: number;
33024
+ };
30592
33025
  dry_run: boolean;
30593
33026
  version_change: string;
30594
33027
  message?: string | undefined;
@@ -30598,14 +33031,6 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
30598
33031
  incoming_solution_version?: string | undefined;
30599
33032
  }, {
30600
33033
  status: string;
30601
- summary: {
30602
- adds: number;
30603
- noops: number;
30604
- updates: number;
30605
- deletes: number;
30606
- orphans: number;
30607
- referenced_orphans: number;
30608
- };
30609
33034
  changes: {
30610
33035
  key: string;
30611
33036
  action: string;
@@ -30624,6 +33049,14 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
30624
33049
  lookup_key?: string | undefined;
30625
33050
  }[] | undefined;
30626
33051
  }[];
33052
+ summary: {
33053
+ adds: number;
33054
+ noops: number;
33055
+ updates: number;
33056
+ deletes: number;
33057
+ orphans: number;
33058
+ referenced_orphans: number;
33059
+ };
30627
33060
  dry_run: boolean;
30628
33061
  version_change: string;
30629
33062
  message?: string | undefined;
@@ -30703,14 +33136,6 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
30703
33136
  };
30704
33137
  upgrade_result: {
30705
33138
  status: string;
30706
- summary: {
30707
- adds: number;
30708
- noops: number;
30709
- updates: number;
30710
- deletes: number;
30711
- orphans: number;
30712
- referenced_orphans: number;
30713
- };
30714
33139
  changes: {
30715
33140
  key: string;
30716
33141
  action: string;
@@ -30729,6 +33154,14 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
30729
33154
  lookup_key?: string | undefined;
30730
33155
  }[] | undefined;
30731
33156
  }[];
33157
+ summary: {
33158
+ adds: number;
33159
+ noops: number;
33160
+ updates: number;
33161
+ deletes: number;
33162
+ orphans: number;
33163
+ referenced_orphans: number;
33164
+ };
30732
33165
  dry_run: boolean;
30733
33166
  version_change: string;
30734
33167
  message?: string | undefined;
@@ -30816,14 +33249,6 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
30816
33249
  };
30817
33250
  upgrade_result: {
30818
33251
  status: string;
30819
- summary: {
30820
- adds: number;
30821
- noops: number;
30822
- updates: number;
30823
- deletes: number;
30824
- orphans: number;
30825
- referenced_orphans: number;
30826
- };
30827
33252
  changes: {
30828
33253
  key: string;
30829
33254
  action: string;
@@ -30842,6 +33267,14 @@ export declare const solutionUpgradeResponseSchema: z.ZodObject<{
30842
33267
  lookup_key?: string | undefined;
30843
33268
  }[] | undefined;
30844
33269
  }[];
33270
+ summary: {
33271
+ adds: number;
33272
+ noops: number;
33273
+ updates: number;
33274
+ deletes: number;
33275
+ orphans: number;
33276
+ referenced_orphans: number;
33277
+ };
30845
33278
  dry_run: boolean;
30846
33279
  version_change: string;
30847
33280
  message?: string | undefined;