@gravity-rail/sdk 4.0.0 → 6.0.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 (51) hide show
  1. package/README.md +4 -2
  2. package/dist/account-CSJJbLIj.d.cts +459 -0
  3. package/dist/account-CSJJbLIj.d.ts +459 -0
  4. package/dist/{path-CUY-Iw70.d.ts → agent_standing_job-CqKpMoHO.d.cts} +1068 -140
  5. package/dist/{path-B3b3_El9.d.cts → agent_standing_job-yehTe972.d.ts} +1068 -140
  6. package/dist/{chat-interaction-DXgKjFqZ.d.cts → chat-interaction-BtUtVszg.d.ts} +13512 -9340
  7. package/dist/{chat-interaction-a7U-tHfQ.d.ts → chat-interaction-CAfwlYvv.d.cts} +13512 -9340
  8. package/dist/{chunk-WHRIIBJ4.js → chunk-L4XC6KDG.js} +1773 -475
  9. package/dist/chunk-L4XC6KDG.js.map +1 -0
  10. package/dist/{chunk-D5VNVTUQ.js → chunk-P2MSMMMJ.js} +120 -2
  11. package/dist/chunk-P2MSMMMJ.js.map +1 -0
  12. package/dist/{chunk-ZLF3N3ZD.js → chunk-P2X5TOYY.js} +31 -5
  13. package/dist/chunk-P2X5TOYY.js.map +1 -0
  14. package/dist/helpers.cjs.map +1 -1
  15. package/dist/helpers.d.cts +3 -2
  16. package/dist/helpers.d.ts +3 -2
  17. package/dist/helpers.js +1 -1
  18. package/dist/index.cjs +1961 -917
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +87 -249
  21. package/dist/index.d.ts +87 -249
  22. package/dist/index.js +171 -458
  23. package/dist/index.js.map +1 -1
  24. package/dist/internal.cjs +1928 -448
  25. package/dist/internal.cjs.map +1 -1
  26. package/dist/internal.d.cts +2428 -263
  27. package/dist/internal.d.ts +2428 -263
  28. package/dist/internal.js +146 -27
  29. package/dist/internal.js.map +1 -1
  30. package/dist/{member-import-VOLKR5dY.d.ts → member-import-C5nnoGvW.d.ts} +1 -1
  31. package/dist/{member-import-BHtOru8g.d.cts → member-import-DhaNVT7s.d.cts} +1 -1
  32. package/dist/realtime.cjs +250 -3
  33. package/dist/realtime.cjs.map +1 -1
  34. package/dist/realtime.d.cts +87 -4
  35. package/dist/realtime.d.ts +87 -4
  36. package/dist/realtime.js +245 -3
  37. package/dist/realtime.js.map +1 -1
  38. package/dist/schemas.cjs +154 -19
  39. package/dist/schemas.cjs.map +1 -1
  40. package/dist/schemas.d.cts +624 -72
  41. package/dist/schemas.d.ts +624 -72
  42. package/dist/schemas.js +72 -21
  43. package/dist/schemas.js.map +1 -1
  44. package/dist/{tasks-CgptqCsN.d.cts → tasks-A12E_RLa.d.cts} +2243 -1979
  45. package/dist/{tasks-CgptqCsN.d.ts → tasks-DrmyOlRh.d.ts} +2243 -1979
  46. package/dist/{types-BXaWYGHj.d.cts → types-Bv6GtLZ2.d.cts} +25 -2
  47. package/dist/{types-BXaWYGHj.d.ts → types-Bv6GtLZ2.d.ts} +25 -2
  48. package/package.json +4 -4
  49. package/dist/chunk-D5VNVTUQ.js.map +0 -1
  50. package/dist/chunk-WHRIIBJ4.js.map +0 -1
  51. package/dist/chunk-ZLF3N3ZD.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { cd as ChannelMessagesUnavailableReason, oB as Resource$1, a1 as ActivityEventLine, R as ActivityAggregateResponse, a3 as ActivityEventsResponse, m3 as PathDefinition } from './chat-interaction-a7U-tHfQ.js';
2
- import { eV as SortOrder } from './tasks-CgptqCsN.js';
1
+ import { cz as ChannelMessagesUnavailableReason, ux as UiPromptProposedMessage, pT as Resource$1, a2 as ActivityEventLine, S as ActivityAggregateResponse, a4 as ActivityEventsResponse, nf as PathDefinition } from './chat-interaction-CAfwlYvv.cjs';
2
+ import { eU as SortOrder } from './tasks-A12E_RLa.cjs';
3
3
 
4
4
  /**
5
5
  * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
@@ -43,6 +43,221 @@ interface AdminDomainWidgetMapping {
43
43
  port?: number | null;
44
44
  }
45
45
 
46
+ /**
47
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
48
+ * (group map from emit_openapi.py). Do not edit manually.
49
+ * Group: agent_policy
50
+ */
51
+ interface AgentBehaviorPolicy {
52
+ verbosity?: AgentBehaviorPolicyVerbosity;
53
+ acknowledgements?: AgentBehaviorPolicyAcknowledgements;
54
+ approvalPresentation?: AgentBehaviorPolicyApprovalPresentation;
55
+ quietHours?: AgentTimeWindow | null;
56
+ }
57
+ type AgentBehaviorPolicyAcknowledgements = typeof AgentBehaviorPolicyAcknowledgements[keyof typeof AgentBehaviorPolicyAcknowledgements];
58
+ declare const AgentBehaviorPolicyAcknowledgements: {
59
+ readonly none: "none";
60
+ readonly status: "status";
61
+ };
62
+ type AgentBehaviorPolicyApprovalPresentation = typeof AgentBehaviorPolicyApprovalPresentation[keyof typeof AgentBehaviorPolicyApprovalPresentation];
63
+ declare const AgentBehaviorPolicyApprovalPresentation: {
64
+ readonly concise: "concise";
65
+ readonly detailed: "detailed";
66
+ };
67
+ type AgentBehaviorPolicyVerbosity = typeof AgentBehaviorPolicyVerbosity[keyof typeof AgentBehaviorPolicyVerbosity];
68
+ declare const AgentBehaviorPolicyVerbosity: {
69
+ readonly concise: "concise";
70
+ readonly balanced: "balanced";
71
+ readonly detailed: "detailed";
72
+ };
73
+ interface AgentMemoryPolicy {
74
+ writes?: AgentMemoryPolicyWrites;
75
+ }
76
+ type AgentMemoryPolicyWrites = typeof AgentMemoryPolicyWrites[keyof typeof AgentMemoryPolicyWrites];
77
+ declare const AgentMemoryPolicyWrites: {
78
+ readonly disabled: "disabled";
79
+ readonly requester_private: "requester_private";
80
+ };
81
+ interface AgentTimeWindow {
82
+ /**
83
+ * @minLength 1
84
+ * @maxLength 64
85
+ */
86
+ timezone?: string;
87
+ /**
88
+ * @minimum 0
89
+ * @exclusiveMaximum 1440
90
+ */
91
+ startMinute: number;
92
+ /**
93
+ * @minimum 0
94
+ * @exclusiveMaximum 1440
95
+ */
96
+ endMinute: number;
97
+ /**
98
+ * @minItems 1
99
+ * @maxItems 7
100
+ */
101
+ weekdays?: number[];
102
+ }
103
+
104
+ /**
105
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
106
+ * (group map from emit_openapi.py). Do not edit manually.
107
+ * Group: org_colleague
108
+ */
109
+
110
+ /**
111
+ * Configuration fields consumed by the organization Agent runtime.
112
+ *
113
+ * These mirror the corresponding workspace Agent fields while keeping
114
+ * workspace role and contact fields out of an organization identity.
115
+ */
116
+ interface AgentConfiguration {
117
+ /** @maxLength 100000 */
118
+ systemPrompt?: string;
119
+ chatModelId?: string | null;
120
+ chatModelConfig?: AgentConfigurationChatModelConfig;
121
+ realtimeModelId?: string | null;
122
+ realtimeModelConfig?: AgentConfigurationRealtimeModelConfig;
123
+ /** @maxItems 128 */
124
+ tools?: string[];
125
+ codeInterpreterEnabled?: boolean;
126
+ webBrowserEnabled?: boolean;
127
+ maxDailyActions?: number | null;
128
+ maxJobCredits?: number | null;
129
+ maxDailyCredits?: number | null;
130
+ behaviorPolicy?: AgentBehaviorPolicy;
131
+ memoryPolicy?: AgentMemoryPolicy;
132
+ }
133
+ type AgentConfigurationChatModelConfig = {
134
+ [key: string]: unknown;
135
+ } | null;
136
+ type AgentConfigurationRealtimeModelConfig = {
137
+ [key: string]: unknown;
138
+ } | null;
139
+ /**
140
+ * An Agent's picture: presentation only, never part of its configuration.
141
+ */
142
+ interface OrgAgentAvatar {
143
+ avatarShape: OrgAgentAvatarAvatarShape;
144
+ avatarColor: OrgAgentAvatarAvatarColor;
145
+ }
146
+ type OrgAgentAvatarAvatarColor = typeof OrgAgentAvatarAvatarColor[keyof typeof OrgAgentAvatarAvatarColor];
147
+ declare const OrgAgentAvatarAvatarColor: {
148
+ readonly teal: "teal";
149
+ readonly sky: "sky";
150
+ readonly blue: "blue";
151
+ readonly indigo: "indigo";
152
+ readonly violet: "violet";
153
+ readonly fuchsia: "fuchsia";
154
+ readonly slate: "slate";
155
+ };
156
+ type OrgAgentAvatarAvatarShape = typeof OrgAgentAvatarAvatarShape[keyof typeof OrgAgentAvatarAvatarShape];
157
+ declare const OrgAgentAvatarAvatarShape: {
158
+ readonly round: "round";
159
+ readonly square: "square";
160
+ readonly tall: "tall";
161
+ readonly antenna: "antenna";
162
+ readonly ears: "ears";
163
+ };
164
+ /**
165
+ * Administrative view, including the Agent's editable configuration.
166
+ */
167
+ interface OrgAgentColleagueDetail {
168
+ id: number;
169
+ uuid: string;
170
+ name: string;
171
+ description: string | null;
172
+ ownerOrgMemberId: number | null;
173
+ status: OrgAgentColleagueDetailStatus;
174
+ configRevision: number;
175
+ avatarShape: OrgAgentColleagueDetailAvatarShape;
176
+ avatarColor: OrgAgentColleagueDetailAvatarColor;
177
+ isPrimary: boolean;
178
+ canManageOrganization: boolean;
179
+ emailAddress: string;
180
+ configuration: AgentConfiguration;
181
+ }
182
+ type OrgAgentColleagueDetailAvatarColor = typeof OrgAgentColleagueDetailAvatarColor[keyof typeof OrgAgentColleagueDetailAvatarColor];
183
+ declare const OrgAgentColleagueDetailAvatarColor: {
184
+ readonly teal: "teal";
185
+ readonly sky: "sky";
186
+ readonly blue: "blue";
187
+ readonly indigo: "indigo";
188
+ readonly violet: "violet";
189
+ readonly fuchsia: "fuchsia";
190
+ readonly slate: "slate";
191
+ };
192
+ type OrgAgentColleagueDetailAvatarShape = typeof OrgAgentColleagueDetailAvatarShape[keyof typeof OrgAgentColleagueDetailAvatarShape];
193
+ declare const OrgAgentColleagueDetailAvatarShape: {
194
+ readonly round: "round";
195
+ readonly square: "square";
196
+ readonly tall: "tall";
197
+ readonly antenna: "antenna";
198
+ readonly ears: "ears";
199
+ };
200
+ type OrgAgentColleagueDetailStatus = typeof OrgAgentColleagueDetailStatus[keyof typeof OrgAgentColleagueDetailStatus];
201
+ declare const OrgAgentColleagueDetailStatus: {
202
+ readonly active: "active";
203
+ readonly paused: "paused";
204
+ };
205
+ /**
206
+ * Fields active organization teammates may use to discover an Agent.
207
+ */
208
+ interface OrgAgentColleagueSummary {
209
+ id: number;
210
+ uuid: string;
211
+ name: string;
212
+ description: string | null;
213
+ ownerOrgMemberId: number | null;
214
+ status: OrgAgentColleagueSummaryStatus;
215
+ configRevision: number;
216
+ avatarShape: OrgAgentColleagueSummaryAvatarShape;
217
+ avatarColor: OrgAgentColleagueSummaryAvatarColor;
218
+ isPrimary: boolean;
219
+ canManageOrganization: boolean;
220
+ emailAddress: string;
221
+ }
222
+ type OrgAgentColleagueSummaryAvatarColor = typeof OrgAgentColleagueSummaryAvatarColor[keyof typeof OrgAgentColleagueSummaryAvatarColor];
223
+ declare const OrgAgentColleagueSummaryAvatarColor: {
224
+ readonly teal: "teal";
225
+ readonly sky: "sky";
226
+ readonly blue: "blue";
227
+ readonly indigo: "indigo";
228
+ readonly violet: "violet";
229
+ readonly fuchsia: "fuchsia";
230
+ readonly slate: "slate";
231
+ };
232
+ type OrgAgentColleagueSummaryAvatarShape = typeof OrgAgentColleagueSummaryAvatarShape[keyof typeof OrgAgentColleagueSummaryAvatarShape];
233
+ declare const OrgAgentColleagueSummaryAvatarShape: {
234
+ readonly round: "round";
235
+ readonly square: "square";
236
+ readonly tall: "tall";
237
+ readonly antenna: "antenna";
238
+ readonly ears: "ears";
239
+ };
240
+ type OrgAgentColleagueSummaryStatus = typeof OrgAgentColleagueSummaryStatus[keyof typeof OrgAgentColleagueSummaryStatus];
241
+ declare const OrgAgentColleagueSummaryStatus: {
242
+ readonly active: "active";
243
+ readonly paused: "paused";
244
+ };
245
+ interface UpdateColleague {
246
+ /** @minimum 1 */
247
+ expectedConfigRevision: number;
248
+ name?: string | null;
249
+ description?: string | null;
250
+ ownerOrgMemberId?: number | null;
251
+ status?: UpdateColleagueStatus;
252
+ configuration?: AgentConfiguration | null;
253
+ canManageOrganization?: boolean | null;
254
+ }
255
+ type UpdateColleagueStatus = typeof UpdateColleagueStatus[keyof typeof UpdateColleagueStatus] | null;
256
+ declare const UpdateColleagueStatus: {
257
+ readonly active: "active";
258
+ readonly paused: "paused";
259
+ };
260
+
46
261
  /**
47
262
  * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
48
263
  * (group map from emit_openapi.py). Do not edit manually.
@@ -82,6 +297,78 @@ declare const ScenarioDependencyAssessmentRefusalCodesItem: {
82
297
  readonly dependency_choice_mismatch: "dependency_choice_mismatch";
83
298
  };
84
299
 
300
+ /**
301
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
302
+ * (group map from emit_openapi.py). Do not edit manually.
303
+ * Group: say_task
304
+ */
305
+ /**
306
+ * A Say template for one supported locale.
307
+ */
308
+ interface SayMessageTranslation {
309
+ locale: string;
310
+ /** @maxLength 4000 */
311
+ text: string;
312
+ }
313
+ /**
314
+ * What the agent says, verbatim, when the conversation reaches this Task.
315
+ *
316
+ * ``message`` is a Jinja2 template rendered with the same variables as a
317
+ * Task prompt. Optional ``translations`` override it by exact locale or
318
+ * same-language match. Every script is optional: without an applicable
319
+ * nonblank script the Task completes silently. Every authored variant must
320
+ * parse (checked by the runtime's ``validate``).
321
+ */
322
+ interface SayTaskConfiguration {
323
+ /** @maxLength 4000 */
324
+ message?: string;
325
+ waitForResponse?: boolean;
326
+ /** @maxItems 100 */
327
+ translations?: SayMessageTranslation[];
328
+ }
329
+
330
+ /**
331
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
332
+ * (group map from emit_openapi.py). Do not edit manually.
333
+ * Group: data_record_import
334
+ */
335
+ /**
336
+ * How each data row of the upload ended.
337
+ *
338
+ * ``created + updated + unchanged + failed`` is the response's
339
+ * ``total_rows``. ``created`` and ``updated`` are committed record writes;
340
+ * ``unchanged`` rows were accepted but wrote nothing; ``failed`` rows were
341
+ * not imported.
342
+ */
343
+ interface DataRecordImportOutcomes {
344
+ /** Rows that created a new record. */
345
+ created: number;
346
+ /** Rows that changed an existing record's stored values. */
347
+ updated: number;
348
+ /** Rows that matched an existing record, passed authorization and validation, and changed nothing (no field history, no EventRule). */
349
+ unchanged: number;
350
+ /** Rows that were not imported. A row is counted once however many errors it has. */
351
+ failed: number;
352
+ }
353
+ /**
354
+ * Result of a synchronous Forms CSV import.
355
+ *
356
+ * ``imported_count`` counts accepted rows (``created + updated +
357
+ * unchanged``), not database writes. ``success`` is ``failed == 0``.
358
+ * ``errors`` lists at most the first ten row errors; ``error_count`` and
359
+ * ``message`` appear only when there are more. ``error_count`` counts
360
+ * errors, not failed rows — use ``outcomes.failed`` for that.
361
+ */
362
+ interface RawDataRecordImportResponse {
363
+ imported_count: number;
364
+ total_rows: number;
365
+ success: boolean;
366
+ outcomes: DataRecordImportOutcomes;
367
+ errors?: string[] | null;
368
+ error_count?: number | null;
369
+ message?: string | null;
370
+ }
371
+
85
372
  interface MemberNotificationPreferences {
86
373
  notifySms?: boolean;
87
374
  notifyEmail?: boolean;
@@ -92,13 +379,18 @@ interface MemberNotificationPreferences {
92
379
  * Who a `member:notify` rule notifies.
93
380
  * - `target_member`: the Member the event is about (its target Member, else its Member).
94
381
  * - `specific_member`: the Member named by `memberId`.
382
+ * - `shared_destination`: the approved shared destination (a Teams channel)
383
+ * named by `destinationId`. It takes no `messageTemplate` or
384
+ * `subjectTemplate`: the channel gets a fixed card.
95
385
  */
96
- type MemberNotifyRecipientMode = 'target_member' | 'specific_member';
386
+ type MemberNotifyRecipientMode = 'target_member' | 'specific_member' | 'shared_destination';
97
387
  interface MemberNotifyActionParams {
98
388
  /** Workspace-local notification audience. Recipient intent lives in subscriptions. */
99
389
  subscriptionId?: number;
100
390
  recipientMode?: MemberNotifyRecipientMode;
101
391
  memberId?: number | null;
392
+ /** The approved shared destination, for `recipientMode: 'shared_destination'`. */
393
+ destinationId?: number | null;
102
394
  /**
103
395
  * @deprecated Legacy. Sends to the Member the event's execution runs as
104
396
  * (the session Member), which is not an owner lookup. Still honoured on
@@ -106,6 +398,12 @@ interface MemberNotifyActionParams {
106
398
  */
107
399
  sendToOwner?: boolean;
108
400
  messageTemplate?: string | null;
401
+ /**
402
+ * Email Subject line. Supports the same `{{variable}}` syntax and permission
403
+ * rules as `messageTemplate`. Omitted or blank keeps
404
+ * `Notification from <workspace>`.
405
+ */
406
+ subjectTemplate?: string | null;
109
407
  }
110
408
 
111
409
  /**
@@ -273,6 +571,86 @@ declare const UpdateMemberContactPointRequestSharing: {
273
571
  readonly unknown: "unknown";
274
572
  };
275
573
 
574
+ /**
575
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
576
+ * (group map from emit_openapi.py). Do not edit manually.
577
+ * Group: athena_outreach_state
578
+ */
579
+ /**
580
+ * A closed-code refusal; ``detail`` is the code's fixed sentence.
581
+ */
582
+ interface ReconcileAthenaBookingRefusalResponse {
583
+ code: string;
584
+ detail: string;
585
+ }
586
+ /**
587
+ * The operator's reconciliation of one uncertain booking attempt.
588
+ */
589
+ interface ReconcileAthenaBookingRequest {
590
+ attemptId: string;
591
+ appointmentId?: string | null;
592
+ clear?: true | null;
593
+ vendorOutcomeConfirmed?: boolean;
594
+ executionTerminated?: boolean;
595
+ }
596
+ /**
597
+ * ``200``: the attempt was finalized as booked, or cleared.
598
+ */
599
+ interface ReconcileAthenaBookingResponse {
600
+ connectionId: number;
601
+ memberId: number;
602
+ attemptId: string;
603
+ mode: ReconcileAthenaBookingResponseMode;
604
+ bookingState: ReconcileAthenaBookingResponseBookingState;
605
+ appointmentId?: string | null;
606
+ }
607
+ type ReconcileAthenaBookingResponseBookingState = typeof ReconcileAthenaBookingResponseBookingState[keyof typeof ReconcileAthenaBookingResponseBookingState];
608
+ declare const ReconcileAthenaBookingResponseBookingState: {
609
+ readonly booked: "booked";
610
+ readonly none: "none";
611
+ };
612
+ type ReconcileAthenaBookingResponseMode = typeof ReconcileAthenaBookingResponseMode[keyof typeof ReconcileAthenaBookingResponseMode];
613
+ declare const ReconcileAthenaBookingResponseMode: {
614
+ readonly finalize: "finalize";
615
+ readonly clear: "clear";
616
+ };
617
+
618
+ /**
619
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
620
+ * (group map from emit_openapi.py). Do not edit manually.
621
+ * Group: error
622
+ */
623
+ /**
624
+ * Closed vocabulary of adapter-side sync failure codes.
625
+ *
626
+ * Values are stable snake_case strings safe for telemetry labels,
627
+ * audit fields, and SSE payloads. Never include dynamic data in a
628
+ * code — pick (or add) the right enum member instead.
629
+ */
630
+ type SyncErrorCode = typeof SyncErrorCode[keyof typeof SyncErrorCode];
631
+ declare const SyncErrorCode: {
632
+ readonly missing_required_field: "missing_required_field";
633
+ readonly missing_target_datatype: "missing_target_datatype";
634
+ readonly missing_file_owner: "missing_file_owner";
635
+ readonly missing_space_mapping: "missing_space_mapping";
636
+ readonly unsupported_direction: "unsupported_direction";
637
+ readonly missing_enum_option: "missing_enum_option";
638
+ readonly missing_remote_label: "missing_remote_label";
639
+ readonly outbound_field_format_error: "outbound_field_format_error";
640
+ readonly local_entity_not_found: "local_entity_not_found";
641
+ readonly missing_local_link: "missing_local_link";
642
+ readonly missing_remote_mapping: "missing_remote_mapping";
643
+ readonly remote_api_error: "remote_api_error";
644
+ readonly remote_fetch_failed: "remote_fetch_failed";
645
+ readonly remote_missing_id: "remote_missing_id";
646
+ readonly remote_partial_failure: "remote_partial_failure";
647
+ readonly remote_inactive_record: "remote_inactive_record";
648
+ readonly remote_write_rejected: "remote_write_rejected";
649
+ readonly remote_write_uncertain: "remote_write_uncertain";
650
+ readonly side_effects_not_permitted: "side_effects_not_permitted";
651
+ readonly sync_operation_failed: "sync_operation_failed";
652
+ };
653
+
276
654
  /**
277
655
  * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
278
656
  * (group map from emit_openapi.py). Do not edit manually.
@@ -334,78 +712,6 @@ interface ChannelMessagesResponse {
334
712
  reason?: ChannelMessagesUnavailableReason | null;
335
713
  }
336
714
 
337
- /**
338
- * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
339
- * (group map from emit_openapi.py). Do not edit manually.
340
- * Group: say_task
341
- */
342
- /**
343
- * A Say template for one supported locale.
344
- */
345
- interface SayMessageTranslation {
346
- locale: string;
347
- /** @maxLength 4000 */
348
- text: string;
349
- }
350
- /**
351
- * What the agent says, verbatim, when the conversation reaches this Task.
352
- *
353
- * ``message`` is a Jinja2 template rendered with the same variables as a
354
- * Task prompt. Optional ``translations`` override it by exact locale or
355
- * same-language match. Every script is optional: without an applicable
356
- * nonblank script the Task completes silently. Every authored variant must
357
- * parse (checked by the runtime's ``validate``).
358
- */
359
- interface SayTaskConfiguration {
360
- /** @maxLength 4000 */
361
- message?: string;
362
- waitForResponse?: boolean;
363
- /** @maxItems 100 */
364
- translations?: SayMessageTranslation[];
365
- }
366
-
367
- /**
368
- * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
369
- * (group map from emit_openapi.py). Do not edit manually.
370
- * Group: data_record_import
371
- */
372
- /**
373
- * How each data row of the upload ended.
374
- *
375
- * ``created + updated + unchanged + failed`` is the response's
376
- * ``total_rows``. ``created`` and ``updated`` are committed record writes;
377
- * ``unchanged`` rows were accepted but wrote nothing; ``failed`` rows were
378
- * not imported.
379
- */
380
- interface DataRecordImportOutcomes {
381
- /** Rows that created a new record. */
382
- created: number;
383
- /** Rows that changed an existing record's stored values. */
384
- updated: number;
385
- /** Rows that matched an existing record, passed authorization and validation, and changed nothing (no field history, no EventRule). */
386
- unchanged: number;
387
- /** Rows that were not imported. A row is counted once however many errors it has. */
388
- failed: number;
389
- }
390
- /**
391
- * Result of a synchronous Forms CSV import.
392
- *
393
- * ``imported_count`` counts accepted rows (``created + updated +
394
- * unchanged``), not database writes. ``success`` is ``failed == 0``.
395
- * ``errors`` lists at most the first ten row errors; ``error_count`` and
396
- * ``message`` appear only when there are more. ``error_count`` counts
397
- * errors, not failed rows — use ``outcomes.failed`` for that.
398
- */
399
- interface RawDataRecordImportResponse {
400
- imported_count: number;
401
- total_rows: number;
402
- success: boolean;
403
- outcomes: DataRecordImportOutcomes;
404
- errors?: string[] | null;
405
- error_count?: number | null;
406
- message?: string | null;
407
- }
408
-
409
715
  /** Legacy enum kept for callers using UPPER_SNAKE member names (e.g. ToolkitState.ENABLED). */
410
716
  declare enum ToolkitState {
411
717
  DISABLED = "disabled",
@@ -486,15 +792,6 @@ type StripeSubscriptionCreateMetadata = {
486
792
  * (group map from emit_openapi.py). Do not edit manually.
487
793
  * Group: workspace_health
488
794
  */
489
- /**
490
- * Information about an attached addon product.
491
- */
492
- interface AttachedAddonInfo {
493
- subscriptionId: number;
494
- productId: number;
495
- productName: string;
496
- providesFeatures: string[];
497
- }
498
795
  /**
499
796
  * Information about the org plan this workspace's features come from.
500
797
  */
@@ -531,21 +828,17 @@ interface ProvisionPlanResponse {
531
828
  /**
532
829
  * Response model for workspace health check.
533
830
  */
534
- interface WorkspaceHealthResponse$1 {
831
+ interface WorkspaceHealthResponse {
535
832
  workspaceUuid: string;
536
833
  workspaceName: string;
537
834
  dbStatus: string;
538
835
  dbStatusCode: number;
539
836
  currentPlan?: CurrentPlanInfo | null;
540
- attachedAddons?: AttachedAddonInfo[];
541
837
  featureSync: FeatureSyncStatus;
542
838
  expectedFeatures: string[];
543
839
  currentFeatures: string[];
544
840
  }
545
841
 
546
- type WorkspaceHealthResponse = Omit<WorkspaceHealthResponse$1, 'attachedAddons'> & {
547
- attachedAddons: AttachedAddonInfo[];
548
- };
549
842
  interface ProvisionPlanRequest {
550
843
  subscriptionId?: number;
551
844
  }
@@ -709,7 +1002,8 @@ interface AIModelUsageResponse {
709
1002
  */
710
1003
  interface AIUsageDetailsResponse {
711
1004
  total: number;
712
- creditBasis?: 'usage_estimate';
1005
+ /** How the whole ``total`` was sourced, including non-AI services. Settled AI debits with non-AI credits reconstructed at current rates are ``mixed``; non-AI-only windows are ``legacy_estimated``; a total with an unmeasured service term is ``unavailable``. */
1006
+ creditBasis?: AIUsageDetailsResponseCreditBasis;
713
1007
  creditCoverageComplete?: boolean;
714
1008
  creditCoverageIssues?: string[];
715
1009
  creditCoverageNote?: string;
@@ -725,6 +1019,18 @@ interface AIUsageDetailsResponse {
725
1019
  email?: number;
726
1020
  models: AIModelUsageResponse[];
727
1021
  }
1022
+ /**
1023
+ * How the whole ``total`` was sourced, including non-AI services. Settled AI debits with non-AI credits reconstructed at current rates are ``mixed``; non-AI-only windows are ``legacy_estimated``; a total with an unmeasured service term is ``unavailable``.
1024
+ */
1025
+ type AIUsageDetailsResponseCreditBasis = typeof AIUsageDetailsResponseCreditBasis[keyof typeof AIUsageDetailsResponseCreditBasis];
1026
+ declare const AIUsageDetailsResponseCreditBasis: {
1027
+ readonly legacy_estimated: "legacy_estimated";
1028
+ readonly mixed: "mixed";
1029
+ readonly posted_debits: "posted_debits";
1030
+ readonly pending_only: "pending_only";
1031
+ readonly no_consumption: "no_consumption";
1032
+ readonly unavailable: "unavailable";
1033
+ };
728
1034
  /**
729
1035
  * Communication details including phone numbers and daily breakdowns.
730
1036
  */
@@ -864,10 +1170,14 @@ interface ResourceUsageResponse {
864
1170
  storageMb?: number | null;
865
1171
  /** Per-origin storage measurement backing `storageMb`. */
866
1172
  storage?: StorageUsageResponse | null;
867
- member: number;
868
- phoneNumber: number;
869
- site: number;
870
- inbox: number;
1173
+ /** Billable member seats, or null when the count could not be measured. Null is unknown, never zero. */
1174
+ member: number | null;
1175
+ /** Phone numbers held, or null when the count could not be measured. */
1176
+ phoneNumber: number | null;
1177
+ /** Sites held, or null when the count could not be measured. */
1178
+ site: number | null;
1179
+ /** Inboxes held, or null when the count could not be measured. */
1180
+ inbox: number | null;
871
1181
  }
872
1182
  /**
873
1183
  * Detailed SMS communication data.
@@ -1192,50 +1502,6 @@ type PidsDisposition = (typeof PIDS_DISPOSITIONS)[number];
1192
1502
  declare const PIDS_SOURCES: readonly ["scheduled", "backfill", "pre_llm"];
1193
1503
  type PidsSource = (typeof PIDS_SOURCES)[number];
1194
1504
 
1195
- /**
1196
- * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
1197
- * (group map from emit_openapi.py). Do not edit manually.
1198
- * Group: athena_outreach_state
1199
- */
1200
- /**
1201
- * A closed-code refusal; ``detail`` is the code's fixed sentence.
1202
- */
1203
- interface ReconcileAthenaBookingRefusalResponse {
1204
- code: string;
1205
- detail: string;
1206
- }
1207
- /**
1208
- * The operator's reconciliation of one uncertain booking attempt.
1209
- */
1210
- interface ReconcileAthenaBookingRequest {
1211
- attemptId: string;
1212
- appointmentId?: string | null;
1213
- clear?: true | null;
1214
- vendorOutcomeConfirmed?: boolean;
1215
- executionTerminated?: boolean;
1216
- }
1217
- /**
1218
- * ``200``: the attempt was finalized as booked, or cleared.
1219
- */
1220
- interface ReconcileAthenaBookingResponse {
1221
- connectionId: number;
1222
- memberId: number;
1223
- attemptId: string;
1224
- mode: ReconcileAthenaBookingResponseMode;
1225
- bookingState: ReconcileAthenaBookingResponseBookingState;
1226
- appointmentId?: string | null;
1227
- }
1228
- type ReconcileAthenaBookingResponseBookingState = typeof ReconcileAthenaBookingResponseBookingState[keyof typeof ReconcileAthenaBookingResponseBookingState];
1229
- declare const ReconcileAthenaBookingResponseBookingState: {
1230
- readonly booked: "booked";
1231
- readonly none: "none";
1232
- };
1233
- type ReconcileAthenaBookingResponseMode = typeof ReconcileAthenaBookingResponseMode[keyof typeof ReconcileAthenaBookingResponseMode];
1234
- declare const ReconcileAthenaBookingResponseMode: {
1235
- readonly finalize: "finalize";
1236
- readonly clear: "clear";
1237
- };
1238
-
1239
1505
  declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1240
1506
  readonly kind: "parent_of";
1241
1507
  readonly cardinality: "many_to_many";
@@ -1246,11 +1512,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1246
1512
  readonly label: "Parent";
1247
1513
  readonly inverseLabel: "Child";
1248
1514
  readonly description: "This person is a parent of the member. For a minor, also add Legal guardian if they should read the chart.";
1515
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1516
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1249
1517
  }, {
1250
1518
  readonly role: "child";
1251
1519
  readonly label: "Child";
1252
1520
  readonly inverseLabel: "Parent";
1253
1521
  readonly description: "This person is a child of the member.";
1522
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1523
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1254
1524
  }];
1255
1525
  }, {
1256
1526
  readonly kind: "sibling_of";
@@ -1262,6 +1532,8 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1262
1532
  readonly label: "Sibling";
1263
1533
  readonly inverseLabel: "Sibling";
1264
1534
  readonly description: "These members are siblings.";
1535
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1536
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1265
1537
  }];
1266
1538
  }, {
1267
1539
  readonly kind: "spouse_of";
@@ -1273,6 +1545,8 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1273
1545
  readonly label: "Spouse";
1274
1546
  readonly inverseLabel: "Spouse";
1275
1547
  readonly description: "These members are spouses or partners.";
1548
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1549
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1276
1550
  }];
1277
1551
  }, {
1278
1552
  readonly kind: "caregiver_of";
@@ -1284,11 +1558,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1284
1558
  readonly label: "Caregiver";
1285
1559
  readonly inverseLabel: "Care recipient";
1286
1560
  readonly description: "This person provides care for the member at home.";
1561
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1562
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1287
1563
  }, {
1288
1564
  readonly role: "care_recipient";
1289
1565
  readonly label: "Care recipient";
1290
1566
  readonly inverseLabel: "Caregiver";
1291
1567
  readonly description: "This person receives care from the member.";
1568
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1569
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1292
1570
  }];
1293
1571
  }, {
1294
1572
  readonly kind: "emergency_contact_of";
@@ -1300,11 +1578,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1300
1578
  readonly label: "Emergency contact";
1301
1579
  readonly inverseLabel: "Emergency contact for";
1302
1580
  readonly description: "This person is the member's emergency contact.";
1581
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1582
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1303
1583
  }, {
1304
1584
  readonly role: "emergency_contact_for";
1305
1585
  readonly label: "Emergency contact for";
1306
1586
  readonly inverseLabel: "Emergency contact";
1307
1587
  readonly description: "The member is listed as this person's emergency contact.";
1588
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1589
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1308
1590
  }];
1309
1591
  }, {
1310
1592
  readonly kind: "next_of_kin_of";
@@ -1316,11 +1598,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1316
1598
  readonly label: "Next of kin";
1317
1599
  readonly inverseLabel: "Next of kin for";
1318
1600
  readonly description: "This person is the member's designated next of kin. A member has at most one.";
1601
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1602
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1319
1603
  }, {
1320
1604
  readonly role: "next_of_kin_for";
1321
1605
  readonly label: "Next of kin for";
1322
1606
  readonly inverseLabel: "Next of kin";
1323
1607
  readonly description: "The member is this person's designated next of kin.";
1608
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1609
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1324
1610
  }];
1325
1611
  }, {
1326
1612
  readonly kind: "legal_guardian_of";
@@ -1332,11 +1618,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1332
1618
  readonly label: "Legal guardian";
1333
1619
  readonly inverseLabel: "Legal guardian for";
1334
1620
  readonly description: "Court-appointed guardian, or parent/person with parental responsibility for a minor.";
1621
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1622
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1335
1623
  }, {
1336
1624
  readonly role: "legal_guardian_for";
1337
1625
  readonly label: "Legal guardian for";
1338
1626
  readonly inverseLabel: "Legal guardian";
1339
1627
  readonly description: "The member is this person's legal guardian.";
1628
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1629
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1340
1630
  }];
1341
1631
  }, {
1342
1632
  readonly kind: "healthcare_agent_of";
@@ -1348,11 +1638,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1348
1638
  readonly label: "Healthcare agent";
1349
1639
  readonly inverseLabel: "Healthcare agent for";
1350
1640
  readonly description: "Healthcare power of attorney or health proxy.";
1641
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1642
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1351
1643
  }, {
1352
1644
  readonly role: "healthcare_agent_for";
1353
1645
  readonly label: "Healthcare agent for";
1354
1646
  readonly inverseLabel: "Healthcare agent";
1355
1647
  readonly description: "The member is this person's healthcare agent (healthcare power of attorney or health proxy).";
1648
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1649
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1356
1650
  }];
1357
1651
  }, {
1358
1652
  readonly kind: "doctor_of";
@@ -1364,11 +1658,15 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1364
1658
  readonly label: "Doctor";
1365
1659
  readonly inverseLabel: "Patient";
1366
1660
  readonly description: "This person is a treating clinician for the member.";
1661
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1662
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1367
1663
  }, {
1368
1664
  readonly role: "patient";
1369
1665
  readonly label: "Patient";
1370
1666
  readonly inverseLabel: "Doctor";
1371
1667
  readonly description: "This person is a patient of the member.";
1668
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1669
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1372
1670
  }];
1373
1671
  }, {
1374
1672
  readonly kind: "primary_contact_of";
@@ -1380,11 +1678,55 @@ declare const MEMBER_RELATIONSHIP_KINDS: readonly [{
1380
1678
  readonly label: "Primary contact";
1381
1679
  readonly inverseLabel: "Primary contact for";
1382
1680
  readonly description: "This person is the organization's primary contact for the member. A member has at most one.";
1681
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1682
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1383
1683
  }, {
1384
1684
  readonly role: "primary_contact_for";
1385
1685
  readonly label: "Primary contact for";
1386
1686
  readonly inverseLabel: "Primary contact";
1387
1687
  readonly description: "The member is this person's assigned primary contact inside the organization.";
1688
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1689
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1690
+ }];
1691
+ }, {
1692
+ readonly kind: "contact_owner_of";
1693
+ readonly cardinality: "one_per_target";
1694
+ readonly symmetric: false;
1695
+ readonly grantsChartAccess: false;
1696
+ readonly roles: [{
1697
+ readonly role: "contact_owner";
1698
+ readonly label: "Contact owner";
1699
+ readonly inverseLabel: "Owns contact";
1700
+ readonly description: "This person owns the member's record in the CRM. A member has at most one. Grants no chart access.";
1701
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1702
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1703
+ }, {
1704
+ readonly role: "owns_contact";
1705
+ readonly label: "Owns contact";
1706
+ readonly inverseLabel: "Contact owner";
1707
+ readonly description: "The member owns this person's record in the CRM.";
1708
+ readonly viewedMemberTypes: ["anonymous", "test", "member", "agent"];
1709
+ readonly relatedMemberTypes: ["anonymous", "test", "member", "agent"];
1710
+ }];
1711
+ }, {
1712
+ readonly kind: "employee_of";
1713
+ readonly cardinality: "many_to_many";
1714
+ readonly symmetric: false;
1715
+ readonly grantsChartAccess: false;
1716
+ readonly roles: [{
1717
+ readonly role: "employee";
1718
+ readonly label: "Employee";
1719
+ readonly inverseLabel: "Employer";
1720
+ readonly description: "This person works at the business. Grants no chart access.";
1721
+ readonly viewedMemberTypes: ["business"];
1722
+ readonly relatedMemberTypes: ["member"];
1723
+ }, {
1724
+ readonly role: "employer";
1725
+ readonly label: "Employer";
1726
+ readonly inverseLabel: "Employee";
1727
+ readonly description: "The member works at this business. Grants no chart access.";
1728
+ readonly viewedMemberTypes: ["member"];
1729
+ readonly relatedMemberTypes: ["business"];
1388
1730
  }];
1389
1731
  }];
1390
1732
 
@@ -1518,6 +1860,30 @@ interface HealthDetailRequest {
1518
1860
  hours?: number;
1519
1861
  }
1520
1862
 
1863
+ /**
1864
+ * The send tools whose prompted calls the Manager proposes as drafts. Their
1865
+ * result is a `proposed_message` prompt only when the gate proposed the call;
1866
+ * when it ran, the result is the tool's prose.
1867
+ */
1868
+ declare const PROPOSED_MESSAGE_TOOL_NAMES: ReadonlySet<string>;
1869
+ /** The synthetic tool call the server writes when a draft is settled. */
1870
+ declare const PROPOSED_MESSAGE_SETTLED_TOOL_NAME = "proposed_message_settled";
1871
+ /** How a draft can be settled, as the decision response and the bridge say it. */
1872
+ declare const PROPOSED_MESSAGE_SETTLEMENT_STATUSES: readonly ["sent", "failed", "discarded"];
1873
+ type ProposedMessageSettlementStatus = (typeof PROPOSED_MESSAGE_SETTLEMENT_STATUSES)[number];
1874
+ /** Whether `value` is one of the statuses a settlement can have. */
1875
+ declare function isProposedMessageSettlementStatus(value: unknown): value is ProposedMessageSettlementStatus;
1876
+ /** The server's bounds on an edited body and subject. */
1877
+ declare const PROPOSED_MESSAGE_BODY_MAX_LENGTH = 40000;
1878
+ declare const PROPOSED_MESSAGE_SUBJECT_MAX_LENGTH = 998;
1879
+ /**
1880
+ * The draft payload, read field by field rather than cast: the result is
1881
+ * persisted, so a transcript carries drafts written before a field existed.
1882
+ * The tool, the destination and the body are required: a draft missing any of
1883
+ * them is not one the member could review or send.
1884
+ */
1885
+ declare function parseProposedMessage(value: unknown): UiPromptProposedMessage | undefined;
1886
+
1521
1887
  /**
1522
1888
  * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
1523
1889
  * (group map from emit_openapi.py). Do not edit manually.
@@ -1643,6 +2009,14 @@ interface DataRecordContext {
1643
2009
  type?: string;
1644
2010
  name?: string;
1645
2011
  }
2012
+ /**
2013
+ * The Chat the member has open. Ids only, never message content.
2014
+ */
2015
+ interface ChatContext {
2016
+ id: number;
2017
+ /** Stable Workflow id the Chat ran, when it ran one */
2018
+ workflowId?: number | null;
2019
+ }
1646
2020
  /**
1647
2021
  * Information about a toolkit in the context
1648
2022
  */
@@ -1650,6 +2024,31 @@ interface ToolkitContext {
1650
2024
  id: string;
1651
2025
  name?: string;
1652
2026
  }
2027
+ /**
2028
+ * The Journey object selected in the editor
2029
+ */
2030
+ interface JourneySelectionContext {
2031
+ /** Object kind, e.g. touch, wait, action, route, ending, goal */
2032
+ kind: string;
2033
+ uuid: string;
2034
+ name?: string;
2035
+ }
2036
+ /**
2037
+ * The Journey open in the editor. Ids and names only, never Member data.
2038
+ */
2039
+ interface JourneyContext {
2040
+ id: number;
2041
+ uuid?: string;
2042
+ name?: string;
2043
+ status?: string;
2044
+ selected?: JourneySelectionContext;
2045
+ /** Open editor panel, e.g. test or settings */
2046
+ panel?: string;
2047
+ /** The Persona the Test panel is running */
2048
+ test?: {
2049
+ personaId?: number | string;
2050
+ };
2051
+ }
1653
2052
  /**
1654
2053
  * App context provided to AI assistants
1655
2054
  *
@@ -1709,10 +2108,14 @@ interface AppContext {
1709
2108
  page?: PageContext;
1710
2109
  /** Workflow being viewed/edited */
1711
2110
  workflow?: WorkflowContext;
2111
+ /** Chat the member has open */
2112
+ chat?: ChatContext;
1712
2113
  /** Data record being viewed/edited */
1713
2114
  dataRecord?: DataRecordContext;
1714
2115
  /** Toolkit being viewed */
1715
2116
  toolkit?: ToolkitContext;
2117
+ /** Journey open in the editor */
2118
+ journey?: JourneyContext;
1716
2119
  /** Open drawers/modals */
1717
2120
  openDrawers?: string[];
1718
2121
  /** Selected tabs */
@@ -2470,5 +2873,530 @@ declare function pathDraftFromStorage(path: StoredPath): PathDraft;
2470
2873
  /** Adapt only the edited Path. Preserve original blank/null values and inert markers on a no-op. */
2471
2874
  declare function pathDraftToStorage<T extends StoredPath>(draft: PathDraft, original: T): T;
2472
2875
 
2473
- export { CreateMemberContactPointRequestSharing as D, DEFAULT_AGENT_CHAT_MODEL as F, DEFAULT_AGENT_REALTIME_MODEL as G, DEFAULT_AGENT_REALTIME_MODEL_CONFIG as H, DEFAULT_CHAT_MODEL as I, DEFAULT_CUSTOM_VOICE_MODEL as J, DEFAULT_VOICE_INFERENCE_MODEL as K, MAX_EMAIL_SEND_RECIPIENTS as a7, MEMBER_RELATIONSHIP_KINDS as a8, SCOPES as aN, SCOPE_PRESETS as aO, ScopeCategory as aV, ScopeManager as aW, PIDS_DISPOSITIONS as al, PIDS_SOURCES as am, ToolkitState as b8, pathDraftToStorage as bA, ScenarioDependencyAssessmentRefusalCodesItem as bC, UpdateMemberContactPointRequestContactType as be, UpdateMemberContactPointRequestPurpose as bf, UpdateMemberContactPointRequestSharing as bg, WIDGET_SLUGS as bn, formatAppContextAsMarkdown as bu, getAllResourceSlugs as bv, getPathDefinition as bw, getResourceMetadata as bx, getRevisionState as by, pathDraftFromStorage as bz, ChannelMessageDirection as t, ChannelMessageSource as u, CreateMemberContactPointRequestContactType as y, CreateMemberContactPointRequestPurpose as z };
2474
- export type { VoiceMetricsResponse$1 as $, AIModelUsageResponse as A, BillingStatistics as B, CallEndSection as C, CurrentPlanInfo as E, DailyPhoneRowResponse as L, DailySMSRowResponse as M, DashboardMetrics as N, DataRecordContext as O, DataRecordImportOutcomes as P, DeviceCacheFileEntry as Q, DeviceCacheManifestResponse as R, EfficiencyMetricsResponse as S, EmailCountsResponse as T, EmailUsageResponse as U, EngineTimeSeries as V, ErrorCodeBucket as W, EventRuleMetrics as X, ExportStatistics as Y, FeatureSyncStatus as Z, MetricSummary$1 as _, AIUsageDetailsResponse as a, StoredPath as a$, WorkspaceHealthResponse$1 as a0, HealthCheckStatistics as a1, HealthDetailRequest as a2, HealthMetricsRequest as a3, HealthMetricsResponse as a4, HealthSummary as a5, ImportStatistics as a6, MemberContactPointResponse as a9, ReconcileAthenaBookingRefusalResponse as aA, ReconcileAthenaBookingRequest as aB, ReconcileAthenaBookingResponse as aC, RequestsSection as aD, RequestsStatusEntry as aE, ResourceMetadata as aF, ResourceOverageResponse as aG, ResourceUsageResponse as aH, RetireMemberContactPointRequest as aI, RevisionState as aJ, RevisionStateRevision as aK, RevisionStateWorkflow as aL, RoutineRunMetrics as aM, SMSCommunicationDetailsResponse as aP, SMSMessageUsageResponse as aQ, SMSPhoneNumberUsageResponse as aR, SayMessageTranslation as aS, SayTaskConfiguration as aT, ScenarioDependencyAssessment as aU, ScopeName as aX, SiteContext as aY, SkippedWorkspace as aZ, StatisticsSummary as a_, MemberContactPointConfirmationResponse as aa, MemberContactPointListResponse as ab, MemberImportColumnResponse as ac, MemberNotificationPreferences as ad, MemberNotifyActionParams as ae, MemberNotifyRecipientMode as af, MemberUsageReport as ag, MetricDataPoint as ah, MetricSection as ai, MetricSummary as aj, MetricValue as ak, PageContext as an, PathDraft as ao, PerformanceMetrics as ap, PhoneCallPhoneNumberUsageResponse as aq, PhoneCallUsageResponse as ar, PhoneCommunicationDetailsResponse as as, PhoneNumberUsage as at, PidsDisposition as au, PidsSource as av, ProductOverageConfigResponse as aw, ProvisionPlanRequest as ax, ProvisionPlanResponse as ay, RawDataRecordImportResponse as az, AcquisitionFunnelChannel as b, StripeSubscriptionCreate as b0, SystemStatistics as b1, TaskContext as b2, TaskCountResponse as b3, TimeSeriesData as b4, TimeSeriesDataPoint as b5, ToolParameter as b6, ToolkitContext as b7, TopOffender as b9, DirectSubscriptionCreate as bB, ScopeDefinition as bD, TopResourceOverageResponse as ba, TtsReconnectOutcomeEntry as bb, TtsReconnectSection as bc, UpdateMemberContactPointRequest as bd, UsageProductSummaryResponse as bh, UsageReportResponse as bi, UsageReportRequest as bj, UsageStatistics as bk, VoiceMetricsResponse as bl, VoiceMetricsTimeRange as bm, WidgetSlug as bo, WorkflowContext as bp, WorkspaceHealthDetail as bq, WorkspaceHealthResponse as br, WorkspaceHealthRow as bs, WorkspaceUsageReportResponse as bt, AcquisitionFunnelRecentSignup as c, AcquisitionFunnelResponse as d, ActivityDetail as e, ActivityFeedResponse as f, AdminDomainResponse as g, AdminDomainSiteMapping as h, AdminDomainWidgetMapping as i, AdminPidsFindingResponse as j, AnalyticsFilter as k, AnalyticsQuery as l, AppContext as m, AttachedAddonInfo as n, BundleScenarioPreflightResponse as o, CallEndStatusEntry as p, ChannelErrorBreakdown as q, ChannelFailures as r, ChannelMessageResponse as s, ChannelMessagesResponse as v, CommunicationDetailsResponse as w, CreateMemberContactPointRequest as x };
2876
+ /**
2877
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
2878
+ * (group map from emit_openapi.py). Do not edit manually.
2879
+ * Group: agent_channel
2880
+ */
2881
+ interface AgentChannelTriggerResponse {
2882
+ triggerUuid: string;
2883
+ chatId: number;
2884
+ status: AgentChannelTriggerResponseStatus;
2885
+ statusReason: string | null;
2886
+ jobUuid: string | null;
2887
+ requestedAt: string;
2888
+ }
2889
+ type AgentChannelTriggerResponseStatus = typeof AgentChannelTriggerResponseStatus[keyof typeof AgentChannelTriggerResponseStatus];
2890
+ declare const AgentChannelTriggerResponseStatus: {
2891
+ readonly pending: "pending";
2892
+ readonly accepted: "accepted";
2893
+ readonly blocked: "blocked";
2894
+ readonly failed: "failed";
2895
+ };
2896
+ interface AgentChannelTriggersResponse {
2897
+ items: AgentChannelTriggerResponse[];
2898
+ nextBefore: string | null;
2899
+ }
2900
+
2901
+ /**
2902
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
2903
+ * (group map from emit_openapi.py). Do not edit manually.
2904
+ * Group: agent_slack
2905
+ */
2906
+ interface ConnectSlackRequest {
2907
+ chatId?: number | null;
2908
+ applicationUuid?: string | null;
2909
+ phiApproved?: boolean;
2910
+ workspaceUuid?: string | null;
2911
+ replaceConnectionUuid?: string | null;
2912
+ returnTo?: string | null;
2913
+ }
2914
+ interface OrgAgentSlackConnectionResponse {
2915
+ connectionUuid: string;
2916
+ teamId: string;
2917
+ appId: string;
2918
+ chatId: number;
2919
+ status: OrgAgentSlackConnectionResponseStatus;
2920
+ phiApproved: boolean;
2921
+ workspaceUuid: string | null;
2922
+ }
2923
+ type OrgAgentSlackConnectionResponseStatus = typeof OrgAgentSlackConnectionResponseStatus[keyof typeof OrgAgentSlackConnectionResponseStatus];
2924
+ declare const OrgAgentSlackConnectionResponseStatus: {
2925
+ readonly active: "active";
2926
+ readonly revoked: "revoked";
2927
+ };
2928
+ interface OrgAgentSlackConnectionsResponse {
2929
+ items: OrgAgentSlackConnectionResponse[];
2930
+ }
2931
+ declare const OrgAgentSlackDisconnectResponseValue: {
2932
+ readonly status: "revoked";
2933
+ };
2934
+ type OrgAgentSlackDisconnectResponse = typeof OrgAgentSlackDisconnectResponseValue;
2935
+ interface SlackAuthorizationResponse {
2936
+ authorizationUrl: string;
2937
+ }
2938
+
2939
+ /**
2940
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
2941
+ * (group map from emit_openapi.py). Do not edit manually.
2942
+ * Group: agent_watch
2943
+ */
2944
+ interface AgentActivityWatch {
2945
+ kind?: 'activity';
2946
+ workspaceUuid: string;
2947
+ resourceKind?: 'data_record';
2948
+ /** @exclusiveMinimum 0 */
2949
+ resourceId: number;
2950
+ resourceUuid: string;
2951
+ /**
2952
+ * @minItems 1
2953
+ * @maxItems 2
2954
+ */
2955
+ eventTypes: AgentActivityWatchEventTypesItem[];
2956
+ expiresAt: string;
2957
+ followJobUuid?: string | null;
2958
+ /**
2959
+ * @minimum 0
2960
+ * @maximum 1209600
2961
+ */
2962
+ followForSeconds?: number;
2963
+ }
2964
+ type AgentActivityWatchEventTypesItem = typeof AgentActivityWatchEventTypesItem[keyof typeof AgentActivityWatchEventTypesItem];
2965
+ declare const AgentActivityWatchEventTypesItem: {
2966
+ readonly data_recordcreated: "data_record.created";
2967
+ readonly data_recordupdated: "data_record.updated";
2968
+ };
2969
+
2970
+ /**
2971
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
2972
+ * (group map from emit_openapi.py). Do not edit manually.
2973
+ * Group: agent_routine
2974
+ */
2975
+
2976
+ interface AgentRoutineList {
2977
+ items: AgentRoutineResponse[];
2978
+ nextAfter: string | null;
2979
+ }
2980
+ interface AgentRoutineOccurrenceResponse {
2981
+ uuid: string;
2982
+ routineRevision: number;
2983
+ scheduledAt: string;
2984
+ status: AgentRoutineOccurrenceResponseStatus;
2985
+ reason: string | null;
2986
+ jobUuid: string | null;
2987
+ createdAt: string;
2988
+ }
2989
+ type AgentRoutineOccurrenceResponseStatus = typeof AgentRoutineOccurrenceResponseStatus[keyof typeof AgentRoutineOccurrenceResponseStatus];
2990
+ declare const AgentRoutineOccurrenceResponseStatus: {
2991
+ readonly pending: "pending";
2992
+ readonly observed: "observed";
2993
+ readonly accepted: "accepted";
2994
+ readonly blocked: "blocked";
2995
+ readonly skipped: "skipped";
2996
+ readonly cancelled: "cancelled";
2997
+ };
2998
+ interface AgentRoutineOccurrences {
2999
+ items: AgentRoutineOccurrenceResponse[];
3000
+ nextBefore: string | null;
3001
+ }
3002
+ interface AgentRoutineResponse {
3003
+ uuid: string;
3004
+ revision: number;
3005
+ spec: AgentRoutineSpec;
3006
+ mode: AgentRoutineResponseMode;
3007
+ isTest: boolean;
3008
+ nextDueAt: string | null;
3009
+ createdAt: string;
3010
+ updatedAt: string;
3011
+ }
3012
+ type AgentRoutineResponseMode = typeof AgentRoutineResponseMode[keyof typeof AgentRoutineResponseMode];
3013
+ declare const AgentRoutineResponseMode: {
3014
+ readonly off: "off";
3015
+ readonly observe: "observe";
3016
+ readonly auto: "auto";
3017
+ };
3018
+ interface AgentRoutineSchedule {
3019
+ mode?: AgentRoutineScheduleMode;
3020
+ /**
3021
+ * @minLength 1
3022
+ * @maxLength 64
3023
+ */
3024
+ timezone?: string;
3025
+ startsAt?: string | null;
3026
+ endsAt?: string | null;
3027
+ intervalSeconds?: number | null;
3028
+ cron?: string | null;
3029
+ repeatCount?: number | null;
3030
+ }
3031
+ type AgentRoutineScheduleMode = typeof AgentRoutineScheduleMode[keyof typeof AgentRoutineScheduleMode];
3032
+ declare const AgentRoutineScheduleMode: {
3033
+ readonly none: "none";
3034
+ readonly once: "once";
3035
+ readonly interval: "interval";
3036
+ readonly cron: "cron";
3037
+ };
3038
+ interface AgentRoutineSpec {
3039
+ /**
3040
+ * @minLength 1
3041
+ * @maxLength 200
3042
+ */
3043
+ name: string;
3044
+ /**
3045
+ * @minLength 1
3046
+ * @maxLength 8000
3047
+ */
3048
+ prompt: string;
3049
+ scopeKind?: AgentRoutineSpecScopeKind;
3050
+ /** @maxItems 64 */
3051
+ workspaceUuids?: string[];
3052
+ /**
3053
+ * @minItems 1
3054
+ * @maxItems 64
3055
+ */
3056
+ audienceOrgMemberIds: number[];
3057
+ schedule?: AgentRoutineSchedule;
3058
+ watch?: AgentActivityWatch | null;
3059
+ activeHours?: AgentTimeWindow | null;
3060
+ /**
3061
+ * @minimum 60
3062
+ * @maximum 86400
3063
+ */
3064
+ minimumIntervalSeconds?: number;
3065
+ silentNoChange?: boolean;
3066
+ /**
3067
+ * @minimum 1
3068
+ * @maximum 1000
3069
+ */
3070
+ maxActions?: number;
3071
+ /**
3072
+ * @minimum 1
3073
+ * @maximum 200
3074
+ */
3075
+ maxSteps?: number;
3076
+ /**
3077
+ * @minimum 1
3078
+ * @maximum 1000000
3079
+ */
3080
+ maxCredits?: number;
3081
+ }
3082
+ type AgentRoutineSpecScopeKind = typeof AgentRoutineSpecScopeKind[keyof typeof AgentRoutineSpecScopeKind];
3083
+ declare const AgentRoutineSpecScopeKind: {
3084
+ readonly organization: "organization";
3085
+ readonly workspace: "workspace";
3086
+ };
3087
+ interface CreateAgentRoutine {
3088
+ requestId: string;
3089
+ spec: AgentRoutineSpec;
3090
+ mode?: CreateAgentRoutineMode;
3091
+ }
3092
+ type CreateAgentRoutineMode = typeof CreateAgentRoutineMode[keyof typeof CreateAgentRoutineMode];
3093
+ declare const CreateAgentRoutineMode: {
3094
+ readonly off: "off";
3095
+ readonly observe: "observe";
3096
+ readonly auto: "auto";
3097
+ };
3098
+ interface RunAgentRoutine {
3099
+ /** @minimum 1 */
3100
+ expectedRevision: number;
3101
+ requestId: string;
3102
+ }
3103
+ interface UpdateAgentRoutine {
3104
+ /** @minimum 1 */
3105
+ expectedRevision: number;
3106
+ spec: AgentRoutineSpec;
3107
+ mode: UpdateAgentRoutineMode;
3108
+ }
3109
+ type UpdateAgentRoutineMode = typeof UpdateAgentRoutineMode[keyof typeof UpdateAgentRoutineMode];
3110
+ declare const UpdateAgentRoutineMode: {
3111
+ readonly off: "off";
3112
+ readonly observe: "observe";
3113
+ readonly auto: "auto";
3114
+ };
3115
+
3116
+ /**
3117
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
3118
+ * (group map from emit_openapi.py). Do not edit manually.
3119
+ * Group: agent_standing_authorization
3120
+ */
3121
+ interface StandingAuthorizationResponse {
3122
+ uuid: string;
3123
+ agentUuid: string;
3124
+ version: number;
3125
+ status: StandingAuthorizationResponseStatus;
3126
+ spec: StandingAuthorizationSpec;
3127
+ approvedByOrgMemberId: number;
3128
+ createdAt: string;
3129
+ revokedAt: string | null;
3130
+ }
3131
+ type StandingAuthorizationResponseStatus = typeof StandingAuthorizationResponseStatus[keyof typeof StandingAuthorizationResponseStatus];
3132
+ declare const StandingAuthorizationResponseStatus: {
3133
+ readonly active: "active";
3134
+ readonly revoked: "revoked";
3135
+ };
3136
+ interface StandingAuthorizationSpec {
3137
+ source: StandingSourceBinding;
3138
+ authPolicyVersion?: number | null;
3139
+ agentConfigRevision?: number | null;
3140
+ dataUseMode?: StandingAuthorizationSpecDataUseMode;
3141
+ scopeKind: StandingAuthorizationSpecScopeKind;
3142
+ /** @maxItems 64 */
3143
+ workspaces?: StandingWorkspaceCeiling[];
3144
+ /**
3145
+ * @minItems 1
3146
+ * @maxItems 64
3147
+ */
3148
+ actions: StandingAuthorizationSpecActionsItem[];
3149
+ /** @maxItems 32 */
3150
+ browserSeedUrls?: string[];
3151
+ /** @maxItems 128 */
3152
+ destinations?: StandingDestination[];
3153
+ /** @maxItems 64 */
3154
+ credentials?: StandingCredential[];
3155
+ /** @maxItems 64 */
3156
+ audienceOrgMemberIds?: number[];
3157
+ expiresAt: string;
3158
+ /**
3159
+ * @minimum 1
3160
+ * @maximum 1000
3161
+ */
3162
+ maxActions?: number;
3163
+ /**
3164
+ * @minimum 1
3165
+ * @maximum 200
3166
+ */
3167
+ maxSteps?: number;
3168
+ /**
3169
+ * @minimum 1
3170
+ * @maximum 1000000
3171
+ */
3172
+ maxCredits?: number;
3173
+ isTest?: boolean;
3174
+ }
3175
+ type StandingAuthorizationSpecActionsItem = typeof StandingAuthorizationSpecActionsItem[keyof typeof StandingAuthorizationSpecActionsItem];
3176
+ declare const StandingAuthorizationSpecActionsItem: {
3177
+ readonly read_workspace_record: "read_workspace_record";
3178
+ readonly read_workspace_file: "read_workspace_file";
3179
+ readonly read_workspace_workflow: "read_workspace_workflow";
3180
+ readonly list_workspace_resources: "list_workspace_resources";
3181
+ readonly write_workspace_record: "write_workspace_record";
3182
+ readonly write_workspace_file: "write_workspace_file";
3183
+ readonly read_record_delivery_status: "read_record_delivery_status";
3184
+ readonly list_agent_artifacts: "list_agent_artifacts";
3185
+ readonly read_agent_artifact: "read_agent_artifact";
3186
+ readonly write_agent_artifact: "write_agent_artifact";
3187
+ readonly delegate_workspace_job: "delegate_workspace_job";
3188
+ readonly send_email: "send_email";
3189
+ readonly send_sms: "send_sms";
3190
+ readonly make_phone_call: "make_phone_call";
3191
+ readonly start_workflow: "start_workflow";
3192
+ readonly exec: "exec";
3193
+ readonly browser_navigate: "browser_navigate";
3194
+ readonly browser_follow_link: "browser_follow_link";
3195
+ readonly browser_read: "browser_read";
3196
+ readonly browser_find: "browser_find";
3197
+ readonly browser_click: "browser_click";
3198
+ readonly browser_type: "browser_type";
3199
+ readonly browser_key: "browser_key";
3200
+ readonly browser_takeover: "browser_takeover";
3201
+ };
3202
+ type StandingAuthorizationSpecDataUseMode = typeof StandingAuthorizationSpecDataUseMode[keyof typeof StandingAuthorizationSpecDataUseMode];
3203
+ declare const StandingAuthorizationSpecDataUseMode: {
3204
+ readonly no_phi: "no_phi";
3205
+ readonly unrestricted: "unrestricted";
3206
+ };
3207
+ type StandingAuthorizationSpecScopeKind = typeof StandingAuthorizationSpecScopeKind[keyof typeof StandingAuthorizationSpecScopeKind];
3208
+ declare const StandingAuthorizationSpecScopeKind: {
3209
+ readonly organization: "organization";
3210
+ readonly workspace: "workspace";
3211
+ };
3212
+ interface StandingCredential {
3213
+ kind: StandingCredentialKind;
3214
+ referenceType: StandingCredentialReferenceType;
3215
+ /** @pattern ^[a-z][a-z0-9_-]{0,63}$ */
3216
+ providerSlug: string;
3217
+ connectionUuid: string;
3218
+ workspaceUuid?: string | null;
3219
+ }
3220
+ type StandingCredentialKind = typeof StandingCredentialKind[keyof typeof StandingCredentialKind];
3221
+ declare const StandingCredentialKind: {
3222
+ readonly agent_owned: "agent_owned";
3223
+ readonly workspace_owned: "workspace_owned";
3224
+ };
3225
+ type StandingCredentialReferenceType = typeof StandingCredentialReferenceType[keyof typeof StandingCredentialReferenceType];
3226
+ declare const StandingCredentialReferenceType: {
3227
+ readonly agent_profile: "agent_profile";
3228
+ readonly workspace_app: "workspace_app";
3229
+ readonly workspace_phone: "workspace_phone";
3230
+ readonly workspace_inbox: "workspace_inbox";
3231
+ };
3232
+ interface StandingDestination {
3233
+ kind: StandingDestinationKind;
3234
+ identifier: string | number;
3235
+ }
3236
+ type StandingDestinationKind = typeof StandingDestinationKind[keyof typeof StandingDestinationKind];
3237
+ declare const StandingDestinationKind: {
3238
+ readonly org_member: "org_member";
3239
+ readonly slack: "slack";
3240
+ readonly discord: "discord";
3241
+ readonly email: "email";
3242
+ readonly sms: "sms";
3243
+ readonly phone: "phone";
3244
+ readonly fax: "fax";
3245
+ };
3246
+ interface StandingResource {
3247
+ kind: StandingResourceKind;
3248
+ /** @exclusiveMinimum 0 */
3249
+ identifier: number;
3250
+ }
3251
+ type StandingResourceKind = typeof StandingResourceKind[keyof typeof StandingResourceKind];
3252
+ declare const StandingResourceKind: {
3253
+ readonly data_type: "data_type";
3254
+ readonly data_record: "data_record";
3255
+ readonly file: "file";
3256
+ readonly folder: "folder";
3257
+ readonly workflow: "workflow";
3258
+ };
3259
+ interface StandingSourceBinding {
3260
+ kind: 'routine';
3261
+ sourceUuid: string;
3262
+ /** @exclusiveMinimum 0 */
3263
+ sourceRevision: number;
3264
+ }
3265
+ interface StandingWorkspaceCeiling {
3266
+ workspaceUuid: string;
3267
+ /** @maxItems 128 */
3268
+ scopes: string[];
3269
+ /** @maxItems 512 */
3270
+ resources?: StandingResource[];
3271
+ }
3272
+
3273
+ /**
3274
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
3275
+ * (group map from emit_openapi.py). Do not edit manually.
3276
+ * Group: agent_standing_option
3277
+ */
3278
+ interface StandingAudienceOption {
3279
+ orgMemberId: number;
3280
+ name: string | null;
3281
+ }
3282
+ interface StandingAudienceOptions {
3283
+ items: StandingAudienceOption[];
3284
+ nextAfterId: number | null;
3285
+ }
3286
+ interface StandingAuthorizationOptions {
3287
+ workspaces: StandingWorkspaceOption[];
3288
+ actions: StandingAuthorizationOptionsActionsItem[];
3289
+ dataUseModes: StandingAuthorizationOptionsDataUseModesItem[];
3290
+ }
3291
+ type StandingAuthorizationOptionsActionsItem = typeof StandingAuthorizationOptionsActionsItem[keyof typeof StandingAuthorizationOptionsActionsItem];
3292
+ declare const StandingAuthorizationOptionsActionsItem: {
3293
+ readonly read_workspace_record: "read_workspace_record";
3294
+ readonly read_workspace_file: "read_workspace_file";
3295
+ readonly read_workspace_workflow: "read_workspace_workflow";
3296
+ readonly list_workspace_resources: "list_workspace_resources";
3297
+ readonly write_workspace_record: "write_workspace_record";
3298
+ readonly write_workspace_file: "write_workspace_file";
3299
+ readonly read_record_delivery_status: "read_record_delivery_status";
3300
+ readonly list_agent_artifacts: "list_agent_artifacts";
3301
+ readonly read_agent_artifact: "read_agent_artifact";
3302
+ readonly write_agent_artifact: "write_agent_artifact";
3303
+ readonly delegate_workspace_job: "delegate_workspace_job";
3304
+ readonly send_email: "send_email";
3305
+ readonly send_sms: "send_sms";
3306
+ readonly make_phone_call: "make_phone_call";
3307
+ readonly start_workflow: "start_workflow";
3308
+ readonly exec: "exec";
3309
+ readonly browser_navigate: "browser_navigate";
3310
+ readonly browser_follow_link: "browser_follow_link";
3311
+ readonly browser_read: "browser_read";
3312
+ readonly browser_find: "browser_find";
3313
+ readonly browser_click: "browser_click";
3314
+ readonly browser_type: "browser_type";
3315
+ readonly browser_key: "browser_key";
3316
+ readonly browser_takeover: "browser_takeover";
3317
+ };
3318
+ type StandingAuthorizationOptionsDataUseModesItem = typeof StandingAuthorizationOptionsDataUseModesItem[keyof typeof StandingAuthorizationOptionsDataUseModesItem];
3319
+ declare const StandingAuthorizationOptionsDataUseModesItem: {
3320
+ readonly no_phi: "no_phi";
3321
+ readonly unrestricted: "unrestricted";
3322
+ };
3323
+ interface StandingResourceOption {
3324
+ kind: StandingResourceOptionKind;
3325
+ /** @exclusiveMinimum 0 */
3326
+ identifier: number;
3327
+ label: string;
3328
+ resourceUuid: string;
3329
+ }
3330
+ type StandingResourceOptionKind = typeof StandingResourceOptionKind[keyof typeof StandingResourceOptionKind];
3331
+ declare const StandingResourceOptionKind: {
3332
+ readonly data_type: "data_type";
3333
+ readonly data_record: "data_record";
3334
+ readonly file: "file";
3335
+ readonly folder: "folder";
3336
+ readonly workflow: "workflow";
3337
+ };
3338
+ interface StandingResourceOptions {
3339
+ items: StandingResourceOption[];
3340
+ nextAfterId: number | null;
3341
+ }
3342
+ interface StandingWorkspaceOption {
3343
+ workspaceUuid: string;
3344
+ name: string;
3345
+ scopes: string[];
3346
+ }
3347
+
3348
+ /**
3349
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
3350
+ * (group map from emit_openapi.py). Do not edit manually.
3351
+ * Group: agent_standing_job
3352
+ */
3353
+ interface StandingJobOutput {
3354
+ jobUuid: string;
3355
+ chatId: number;
3356
+ outcome: StandingJobOutputOutcome;
3357
+ message: StandingJobOutputMessage;
3358
+ }
3359
+ type StandingJobOutputMessage = {
3360
+ [key: string]: unknown;
3361
+ } | null;
3362
+ type StandingJobOutputOutcome = typeof StandingJobOutputOutcome[keyof typeof StandingJobOutputOutcome];
3363
+ declare const StandingJobOutputOutcome: {
3364
+ readonly answer: "answer";
3365
+ readonly no_change: "no_change";
3366
+ };
3367
+ interface StandingJobStatus {
3368
+ jobUuid: string;
3369
+ chatId: number;
3370
+ status: StandingJobStatusStatus;
3371
+ statusReason: string | null;
3372
+ createdAt: string;
3373
+ completedAt: string | null;
3374
+ }
3375
+ type StandingJobStatusStatus = typeof StandingJobStatusStatus[keyof typeof StandingJobStatusStatus];
3376
+ declare const StandingJobStatusStatus: {
3377
+ readonly queued: "queued";
3378
+ readonly working: "working";
3379
+ readonly waiting: "waiting";
3380
+ readonly ready: "ready";
3381
+ readonly blocked: "blocked";
3382
+ readonly failed: "failed";
3383
+ readonly cancelled: "cancelled";
3384
+ };
3385
+ interface StopStandingJobResponse {
3386
+ jobUuid: string;
3387
+ status: StopStandingJobResponseStatus;
3388
+ cancelledChildCount: number;
3389
+ }
3390
+ type StopStandingJobResponseStatus = typeof StopStandingJobResponseStatus[keyof typeof StopStandingJobResponseStatus];
3391
+ declare const StopStandingJobResponseStatus: {
3392
+ readonly queued: "queued";
3393
+ readonly working: "working";
3394
+ readonly waiting: "waiting";
3395
+ readonly ready: "ready";
3396
+ readonly blocked: "blocked";
3397
+ readonly failed: "failed";
3398
+ readonly cancelled: "cancelled";
3399
+ };
3400
+
3401
+ export { CreateAgentRoutineMode as $, AgentRoutineOccurrenceResponseStatus as B, AgentRoutineResponseMode as E, AgentRoutineScheduleMode as G, AgentRoutineSpecScopeKind as I, ChannelMessageDirection as U, ChannelMessageSource as V, CreateMemberContactPointRequestContactType as a1, CreateMemberContactPointRequestPurpose as a2, CreateMemberContactPointRequestSharing as a3, DEFAULT_AGENT_CHAT_MODEL as a5, DEFAULT_AGENT_REALTIME_MODEL as a6, DEFAULT_AGENT_REALTIME_MODEL_CONFIG as a7, DEFAULT_CHAT_MODEL as a8, DEFAULT_CUSTOM_VOICE_MODEL as a9, MAX_EMAIL_SEND_RECIPIENTS as aA, MEMBER_RELATIONSHIP_KINDS as aB, OrgAgentAvatarAvatarColor as aP, OrgAgentAvatarAvatarShape as aQ, OrgAgentColleagueDetailAvatarColor as aS, OrgAgentColleagueDetailAvatarShape as aT, OrgAgentColleagueDetailStatus as aU, OrgAgentColleagueSummaryAvatarColor as aW, OrgAgentColleagueSummaryAvatarShape as aX, OrgAgentColleagueSummaryStatus as aY, OrgAgentSlackConnectionResponseStatus as a_, DEFAULT_VOICE_INFERENCE_MODEL as aa, StandingCredentialKind as b$, OrgAgentSlackDisconnectResponseValue as b1, PIDS_DISPOSITIONS as b2, PIDS_SOURCES as b3, PROPOSED_MESSAGE_BODY_MAX_LENGTH as b4, PROPOSED_MESSAGE_SETTLED_TOOL_NAME as b5, PROPOSED_MESSAGE_SETTLEMENT_STATUSES as b6, PROPOSED_MESSAGE_SUBJECT_MAX_LENGTH as b7, PROPOSED_MESSAGE_TOOL_NAMES as b8, SCOPES as bB, SCOPE_PRESETS as bC, ScopeCategory as bJ, ScopeManager as bK, StandingAuthorizationOptionsActionsItem as bS, StandingAuthorizationOptionsDataUseModesItem as bT, StandingAuthorizationResponseStatus as bV, StandingAuthorizationSpecActionsItem as bX, StandingAuthorizationSpecDataUseMode as bY, StandingAuthorizationSpecScopeKind as bZ, pathDraftToStorage as c$, StandingCredentialReferenceType as c0, StandingDestinationKind as c2, StandingJobOutputOutcome as c5, StandingJobStatusStatus as c7, StandingResourceKind as c9, UpdateColleagueStatus as cB, UpdateMemberContactPointRequestContactType as cD, UpdateMemberContactPointRequestPurpose as cE, UpdateMemberContactPointRequestSharing as cF, WIDGET_SLUGS as cM, formatAppContextAsMarkdown as cT, getAllResourceSlugs as cU, getPathDefinition as cV, getResourceMetadata as cW, getRevisionState as cX, isProposedMessageSettlementStatus as cY, parseProposedMessage as cZ, pathDraftFromStorage as c_, StandingResourceOptionKind as cb, StopStandingJobResponseStatus as ci, SyncErrorCode as cl, ToolkitState as ct, UpdateAgentRoutineMode as cz, ScenarioDependencyAssessmentRefusalCodesItem as d1, AgentActivityWatchEventTypesItem as l, AgentBehaviorPolicyAcknowledgements as n, AgentBehaviorPolicyApprovalPresentation as o, AgentBehaviorPolicyVerbosity as p, AgentChannelTriggerResponseStatus as r, AgentMemoryPolicyWrites as x };
3402
+ export type { AIModelUsageResponse as A, AgentRoutineOccurrences as C, AgentRoutineResponse as D, AgentRoutineSchedule as F, AgentRoutineSpec as H, AgentTimeWindow as J, AnalyticsFilter as K, AnalyticsQuery as L, AppContext as M, BillingStatistics as N, BundleScenarioPreflightResponse as O, CallEndSection as P, CallEndStatusEntry as Q, ChannelErrorBreakdown as R, ChannelFailures as S, ChannelMessageResponse as T, ChannelMessagesResponse as W, ChatContext as X, CommunicationDetailsResponse as Y, ConnectSlackRequest as Z, CreateAgentRoutine as _, AIUsageDetailsResponse as a, OrgAgentSlackConnectionsResponse as a$, CreateMemberContactPointRequest as a0, CurrentPlanInfo as a4, MemberContactPointResponse as aC, MemberContactPointConfirmationResponse as aD, MemberContactPointListResponse as aE, MemberImportColumnResponse as aF, MemberNotificationPreferences as aG, MemberNotifyActionParams as aH, MemberNotifyRecipientMode as aI, MemberUsageReport as aJ, MetricDataPoint as aK, MetricSection as aL, MetricSummary as aM, MetricValue as aN, OrgAgentAvatar as aO, OrgAgentColleagueDetail as aR, OrgAgentColleagueSummary as aV, OrgAgentSlackConnectionResponse as aZ, DailyPhoneRowResponse as ab, DailySMSRowResponse as ac, DashboardMetrics as ad, DataRecordContext as ae, DataRecordImportOutcomes as af, DeviceCacheFileEntry as ag, DeviceCacheManifestResponse as ah, EfficiencyMetricsResponse as ai, EmailCountsResponse as aj, EmailUsageResponse as ak, EngineTimeSeries as al, ErrorCodeBucket as am, EventRuleMetrics as an, ExportStatistics as ao, FeatureSyncStatus as ap, MetricSummary$1 as aq, VoiceMetricsResponse$1 as ar, HealthCheckStatistics as as, HealthDetailRequest as at, HealthMetricsRequest as au, HealthMetricsResponse as av, HealthSummary as aw, ImportStatistics as ax, JourneyContext as ay, JourneySelectionContext as az, AcquisitionFunnelChannel as b, OrgAgentSlackDisconnectResponse as b0, PageContext as b9, RunAgentRoutine as bA, SMSCommunicationDetailsResponse as bD, SMSMessageUsageResponse as bE, SMSPhoneNumberUsageResponse as bF, SayMessageTranslation as bG, SayTaskConfiguration as bH, ScenarioDependencyAssessment as bI, ScopeName as bL, SiteContext as bM, SkippedWorkspace as bN, SlackAuthorizationResponse as bO, StandingAudienceOption as bP, StandingAudienceOptions as bQ, StandingAuthorizationOptions as bR, StandingAuthorizationResponse as bU, StandingAuthorizationSpec as bW, StandingCredential as b_, PathDraft as ba, PerformanceMetrics as bb, PhoneCallPhoneNumberUsageResponse as bc, PhoneCallUsageResponse as bd, PhoneCommunicationDetailsResponse as be, PhoneNumberUsage as bf, PidsDisposition as bg, PidsSource as bh, ProductOverageConfigResponse as bi, ProposedMessageSettlementStatus as bj, ProvisionPlanRequest as bk, ProvisionPlanResponse as bl, RawDataRecordImportResponse as bm, ReconcileAthenaBookingRefusalResponse as bn, ReconcileAthenaBookingRequest as bo, ReconcileAthenaBookingResponse as bp, RequestsSection as bq, RequestsStatusEntry as br, ResourceMetadata as bs, ResourceOverageResponse as bt, ResourceUsageResponse as bu, RetireMemberContactPointRequest as bv, RevisionState as bw, RevisionStateRevision as bx, RevisionStateWorkflow as by, RoutineRunMetrics as bz, AcquisitionFunnelRecentSignup as c, StandingDestination as c1, StandingJobOutput as c3, StandingJobOutputMessage as c4, StandingJobStatus as c6, StandingResource as c8, UpdateColleague as cA, UpdateMemberContactPointRequest as cC, UsageProductSummaryResponse as cG, UsageReportResponse as cH, UsageReportRequest as cI, UsageStatistics as cJ, VoiceMetricsResponse as cK, VoiceMetricsTimeRange as cL, WidgetSlug as cN, WorkflowContext as cO, WorkspaceHealthDetail as cP, WorkspaceHealthResponse as cQ, WorkspaceHealthRow as cR, WorkspaceUsageReportResponse as cS, StandingResourceOption as ca, StandingResourceOptions as cc, StandingSourceBinding as cd, StandingWorkspaceCeiling as ce, StandingWorkspaceOption as cf, StatisticsSummary as cg, StopStandingJobResponse as ch, StoredPath as cj, StripeSubscriptionCreate as ck, SystemStatistics as cm, TaskContext as cn, TaskCountResponse as co, TimeSeriesData as cp, TimeSeriesDataPoint as cq, ToolParameter as cr, ToolkitContext as cs, TopOffender as cu, TopResourceOverageResponse as cv, TtsReconnectOutcomeEntry as cw, TtsReconnectSection as cx, UpdateAgentRoutine as cy, AcquisitionFunnelResponse as d, DirectSubscriptionCreate as d0, ScopeDefinition as d2, ActivityDetail as e, ActivityFeedResponse as f, AdminDomainResponse as g, AdminDomainSiteMapping as h, AdminDomainWidgetMapping as i, AdminPidsFindingResponse as j, AgentActivityWatch as k, AgentBehaviorPolicy as m, AgentChannelTriggerResponse as q, AgentChannelTriggersResponse as s, AgentConfiguration as t, AgentConfigurationChatModelConfig as u, AgentConfigurationRealtimeModelConfig as v, AgentMemoryPolicy as w, AgentRoutineList as y, AgentRoutineOccurrenceResponse as z };