@gravity-rail/sdk 0.36.0 → 0.40.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.
- package/README.md +44 -21
- package/dist/agui.d.cts +1 -1
- package/dist/agui.d.ts +1 -1
- package/dist/audio.d.cts +1 -1
- package/dist/audio.d.ts +1 -1
- package/dist/{chat-interaction-Ck1oMOr5.d.ts → chat-interaction-BB3ap8_u.d.ts} +8920 -6212
- package/dist/{chat-interaction-DqQu8Ad1.d.cts → chat-interaction-Bj1pciwo.d.cts} +8920 -6212
- package/dist/{chunk-P2E6LU7I.js → chunk-67QXTQVL.js} +1 -26
- package/dist/chunk-67QXTQVL.js.map +1 -0
- package/dist/chunk-6KPGCPGW.js +48 -0
- package/dist/chunk-6KPGCPGW.js.map +1 -0
- package/dist/{chunk-HRUMZ46V.js → chunk-72SWNLVD.js} +2 -1
- package/dist/chunk-72SWNLVD.js.map +1 -0
- package/dist/{chunk-R3C63RZJ.js → chunk-ZTUOB4V2.js} +1278 -218
- package/dist/chunk-ZTUOB4V2.js.map +1 -0
- package/dist/helpers.cjs +47 -0
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +4 -3
- package/dist/helpers.d.ts +4 -3
- package/dist/helpers.js +7 -1
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +1389 -350
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -35
- package/dist/index.d.ts +13 -35
- package/dist/index.js +112 -122
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +1303 -252
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +338 -55
- package/dist/internal.d.ts +338 -55
- package/dist/internal.js +68 -21
- package/dist/internal.js.map +1 -1
- package/dist/member-import-D8fZr2Pd.d.cts +46 -0
- package/dist/member-import-YNk9MlEl.d.ts +46 -0
- package/dist/realtime.cjs +91 -20
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +34 -9
- package/dist/realtime.d.ts +34 -9
- package/dist/realtime.js +90 -20
- package/dist/realtime.js.map +1 -1
- package/dist/{revision-state-Tn2V0-zt.d.cts → revision-state-BaJTq3Or.d.ts} +271 -55
- package/dist/{revision-state-V5RIhte0.d.ts → revision-state-CL11FA-T.d.cts} +271 -55
- package/dist/schemas.cjs +58 -81
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +88 -225
- package/dist/schemas.d.ts +88 -225
- package/dist/schemas.js +58 -76
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-BH_i_pVb.d.cts → tasks-ByJCQ5BI.d.cts} +3003 -2508
- package/dist/{tasks-BH_i_pVb.d.ts → tasks-ByJCQ5BI.d.ts} +3003 -2508
- package/dist/{types-0c6_NGU4.d.cts → types-DlfADjPR.d.cts} +17 -2
- package/dist/{types-0c6_NGU4.d.ts → types-DlfADjPR.d.ts} +17 -2
- package/package.json +9 -7
- package/dist/chunk-HRUMZ46V.js.map +0 -1
- package/dist/chunk-P2E6LU7I.js.map +0 -1
- package/dist/chunk-R3C63RZJ.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { bO as ChannelMessagesUnavailableReason, lh as Resource$1, Z as ActivityEventLine, L as ActivityAggregateResponse, $ as ActivityEventsResponse } from './chat-interaction-Bj1pciwo.cjs';
|
|
2
|
+
import { eV as SortOrder } from './tasks-ByJCQ5BI.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
|
|
@@ -43,18 +43,200 @@ 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: bundle_scenario_preflight
|
|
50
|
+
*/
|
|
51
|
+
interface BundleScenarioPreflightResponse {
|
|
52
|
+
/**
|
|
53
|
+
* @minLength 1
|
|
54
|
+
* @maxLength 100
|
|
55
|
+
* @pattern ^[a-z][a-z0-9_]*$
|
|
56
|
+
*/
|
|
57
|
+
workflowItemKey: string;
|
|
58
|
+
selectionComplete: boolean;
|
|
59
|
+
publicationEnabled?: false;
|
|
60
|
+
scenarios: ScenarioDependencyAssessment[];
|
|
61
|
+
}
|
|
62
|
+
interface ScenarioDependencyAssessment {
|
|
63
|
+
scenarioUuid: string;
|
|
64
|
+
personaUuid?: string | null;
|
|
65
|
+
personaBindingRequired?: boolean;
|
|
66
|
+
memberRoleBindingRequired?: boolean;
|
|
67
|
+
fixtureDataTypeSlugs?: string[];
|
|
68
|
+
fixtureBindingSlugs?: string[];
|
|
69
|
+
criteriaSelected?: boolean;
|
|
70
|
+
activeCriterionCount?: number;
|
|
71
|
+
refusalCodes?: ScenarioDependencyAssessmentRefusalCodesItem[];
|
|
72
|
+
}
|
|
73
|
+
type ScenarioDependencyAssessmentRefusalCodesItem = typeof ScenarioDependencyAssessmentRefusalCodesItem[keyof typeof ScenarioDependencyAssessmentRefusalCodesItem];
|
|
74
|
+
declare const ScenarioDependencyAssessmentRefusalCodesItem: {
|
|
75
|
+
readonly scenario_unavailable: "scenario_unavailable";
|
|
76
|
+
readonly persona_unavailable: "persona_unavailable";
|
|
77
|
+
readonly source_review_required: "source_review_required";
|
|
78
|
+
readonly synthetic_attestation_required: "synthetic_attestation_required";
|
|
79
|
+
readonly fixture_form_missing: "fixture_form_missing";
|
|
80
|
+
readonly invalid_fixture_definition: "invalid_fixture_definition";
|
|
81
|
+
readonly anonymous_fixture_conflict: "anonymous_fixture_conflict";
|
|
82
|
+
readonly dependency_choice_mismatch: "dependency_choice_mismatch";
|
|
83
|
+
};
|
|
84
|
+
|
|
46
85
|
interface MemberNotificationPreferences {
|
|
47
86
|
notifySms?: boolean;
|
|
48
87
|
notifyEmail?: boolean;
|
|
49
88
|
notifyVoice?: boolean;
|
|
50
89
|
notifyWhatsapp?: boolean;
|
|
51
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* Who a `member:notify` rule notifies.
|
|
93
|
+
* - `target_member`: the Member the event is about (its target Member, else its Member).
|
|
94
|
+
* - `specific_member`: the Member named by `memberId`.
|
|
95
|
+
*/
|
|
96
|
+
type MemberNotifyRecipientMode = 'target_member' | 'specific_member';
|
|
52
97
|
interface MemberNotifyActionParams {
|
|
98
|
+
recipientMode?: MemberNotifyRecipientMode;
|
|
53
99
|
memberId?: number | null;
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated Legacy. Sends to the Member the event's execution runs as
|
|
102
|
+
* (the session Member), which is not an owner lookup. Still honoured on
|
|
103
|
+
* stored rules; new rules set `recipientMode` and never this flag.
|
|
104
|
+
*/
|
|
54
105
|
sendToOwner?: boolean;
|
|
55
106
|
messageTemplate?: string | null;
|
|
56
107
|
}
|
|
57
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
|
|
111
|
+
* (group map from emit_openapi.py). Do not edit manually.
|
|
112
|
+
* Group: member_contact_point
|
|
113
|
+
*/
|
|
114
|
+
/**
|
|
115
|
+
* Add one workspace-local contact point to a Member.
|
|
116
|
+
*
|
|
117
|
+
* Schema-only: the scope gate is **not** an unconditional ``ScopedRequest``
|
|
118
|
+
* scope, because a Member may always manage their own contacts without
|
|
119
|
+
* ``members:write``. The self-or-scope decision lives in
|
|
120
|
+
* ``MemberContactPointService._require_write`` so both paths are enforced in
|
|
121
|
+
* one place.
|
|
122
|
+
*/
|
|
123
|
+
interface CreateMemberContactPointRequest {
|
|
124
|
+
contactType: CreateMemberContactPointRequestContactType;
|
|
125
|
+
/**
|
|
126
|
+
* Phone or email value. Normalized server-side; PHI, never logged.
|
|
127
|
+
* @minLength 1
|
|
128
|
+
* @maxLength 320
|
|
129
|
+
*/
|
|
130
|
+
value: string;
|
|
131
|
+
label?: string | null;
|
|
132
|
+
purpose?: CreateMemberContactPointRequestPurpose;
|
|
133
|
+
/**
|
|
134
|
+
* @minimum -10000
|
|
135
|
+
* @maximum 10000
|
|
136
|
+
*/
|
|
137
|
+
priority?: number;
|
|
138
|
+
sharing?: CreateMemberContactPointRequestSharing;
|
|
139
|
+
capabilities?: string[];
|
|
140
|
+
observedAt?: string | null;
|
|
141
|
+
}
|
|
142
|
+
type CreateMemberContactPointRequestContactType = typeof CreateMemberContactPointRequestContactType[keyof typeof CreateMemberContactPointRequestContactType];
|
|
143
|
+
declare const CreateMemberContactPointRequestContactType: {
|
|
144
|
+
readonly phone: "phone";
|
|
145
|
+
readonly email: "email";
|
|
146
|
+
};
|
|
147
|
+
type CreateMemberContactPointRequestPurpose = typeof CreateMemberContactPointRequestPurpose[keyof typeof CreateMemberContactPointRequestPurpose];
|
|
148
|
+
declare const CreateMemberContactPointRequestPurpose: {
|
|
149
|
+
readonly general: "general";
|
|
150
|
+
readonly notification: "notification";
|
|
151
|
+
readonly billing: "billing";
|
|
152
|
+
};
|
|
153
|
+
type CreateMemberContactPointRequestSharing = typeof CreateMemberContactPointRequestSharing[keyof typeof CreateMemberContactPointRequestSharing];
|
|
154
|
+
declare const CreateMemberContactPointRequestSharing: {
|
|
155
|
+
readonly shared: "shared";
|
|
156
|
+
readonly individual: "individual";
|
|
157
|
+
readonly unknown: "unknown";
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Whether a *ceremony* confirmed this exact contact point.
|
|
161
|
+
*
|
|
162
|
+
* Bound to the point's normalized value (matched through the binding's
|
|
163
|
+
* ``identifier_hash``), to a real ceremony source, and to the server-owned
|
|
164
|
+
* **value generation** started when the current value was written
|
|
165
|
+
* (``value_generation_at``, the database write-time clock): the ceremony must
|
|
166
|
+
* have happened at or after that generation and, for a retired point, before
|
|
167
|
+
* its retirement. A value retired and readded under a new row, or edited away
|
|
168
|
+
* and back on one live row, therefore does not inherit an older proof. An
|
|
169
|
+
* importer or admin assertion that merely recorded "the practice said so" has
|
|
170
|
+
* a non-ceremony ``source`` and reads ``confirmed=False`` — the historical
|
|
171
|
+
* confirmation display never inherits an importer's claim.
|
|
172
|
+
*/
|
|
173
|
+
interface MemberContactPointConfirmationResponse {
|
|
174
|
+
confirmed: boolean;
|
|
175
|
+
source?: string | null;
|
|
176
|
+
method?: string | null;
|
|
177
|
+
bindingUuid?: string | null;
|
|
178
|
+
confirmedAt?: string | null;
|
|
179
|
+
}
|
|
180
|
+
interface MemberContactPointListResponse {
|
|
181
|
+
memberId: number;
|
|
182
|
+
contacts: MemberContactPointResponse[];
|
|
183
|
+
}
|
|
184
|
+
interface MemberContactPointResponse {
|
|
185
|
+
uuid: string;
|
|
186
|
+
memberId: number;
|
|
187
|
+
contactType: string;
|
|
188
|
+
value: string;
|
|
189
|
+
label: string | null;
|
|
190
|
+
purpose: string;
|
|
191
|
+
priority: number;
|
|
192
|
+
sharing: string;
|
|
193
|
+
capabilities: string[];
|
|
194
|
+
sourceSystem: string | null;
|
|
195
|
+
sourceRecordId: string | null;
|
|
196
|
+
observedAt: string | null;
|
|
197
|
+
retiredAt: string | null;
|
|
198
|
+
createdAt: string;
|
|
199
|
+
updatedAt: string;
|
|
200
|
+
isPrimary?: boolean;
|
|
201
|
+
confirmation?: MemberContactPointConfirmationResponse | null;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Retire a contact point (a state change, never a hard delete).
|
|
205
|
+
*/
|
|
206
|
+
interface RetireMemberContactPointRequest {
|
|
207
|
+
[key: string]: unknown;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Change a workspace-local contact point's value and/or annotations.
|
|
211
|
+
*/
|
|
212
|
+
interface UpdateMemberContactPointRequest {
|
|
213
|
+
contactType?: UpdateMemberContactPointRequestContactType;
|
|
214
|
+
value?: string | null;
|
|
215
|
+
label?: string | null;
|
|
216
|
+
purpose?: UpdateMemberContactPointRequestPurpose;
|
|
217
|
+
priority?: number | null;
|
|
218
|
+
sharing?: UpdateMemberContactPointRequestSharing;
|
|
219
|
+
capabilities?: string[] | null;
|
|
220
|
+
observedAt?: string | null;
|
|
221
|
+
}
|
|
222
|
+
type UpdateMemberContactPointRequestContactType = typeof UpdateMemberContactPointRequestContactType[keyof typeof UpdateMemberContactPointRequestContactType] | null;
|
|
223
|
+
declare const UpdateMemberContactPointRequestContactType: {
|
|
224
|
+
readonly phone: "phone";
|
|
225
|
+
readonly email: "email";
|
|
226
|
+
};
|
|
227
|
+
type UpdateMemberContactPointRequestPurpose = typeof UpdateMemberContactPointRequestPurpose[keyof typeof UpdateMemberContactPointRequestPurpose] | null;
|
|
228
|
+
declare const UpdateMemberContactPointRequestPurpose: {
|
|
229
|
+
readonly general: "general";
|
|
230
|
+
readonly notification: "notification";
|
|
231
|
+
readonly billing: "billing";
|
|
232
|
+
};
|
|
233
|
+
type UpdateMemberContactPointRequestSharing = typeof UpdateMemberContactPointRequestSharing[keyof typeof UpdateMemberContactPointRequestSharing] | null;
|
|
234
|
+
declare const UpdateMemberContactPointRequestSharing: {
|
|
235
|
+
readonly shared: "shared";
|
|
236
|
+
readonly individual: "individual";
|
|
237
|
+
readonly unknown: "unknown";
|
|
238
|
+
};
|
|
239
|
+
|
|
58
240
|
/**
|
|
59
241
|
* Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
|
|
60
242
|
* (group map from emit_openapi.py). Do not edit manually.
|
|
@@ -116,6 +298,48 @@ interface ChannelMessagesResponse {
|
|
|
116
298
|
reason?: ChannelMessagesUnavailableReason | null;
|
|
117
299
|
}
|
|
118
300
|
|
|
301
|
+
/**
|
|
302
|
+
* Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
|
|
303
|
+
* (group map from emit_openapi.py). Do not edit manually.
|
|
304
|
+
* Group: data_record_import
|
|
305
|
+
*/
|
|
306
|
+
/**
|
|
307
|
+
* How each data row of the upload ended.
|
|
308
|
+
*
|
|
309
|
+
* ``created + updated + unchanged + failed`` is the response's
|
|
310
|
+
* ``total_rows``. ``created`` and ``updated`` are committed record writes;
|
|
311
|
+
* ``unchanged`` rows were accepted but wrote nothing; ``failed`` rows were
|
|
312
|
+
* not imported.
|
|
313
|
+
*/
|
|
314
|
+
interface DataRecordImportOutcomes {
|
|
315
|
+
/** Rows that created a new record. */
|
|
316
|
+
created: number;
|
|
317
|
+
/** Rows that changed an existing record's stored values. */
|
|
318
|
+
updated: number;
|
|
319
|
+
/** Rows that matched an existing record, passed authorization and validation, and changed nothing (no field history, no EventRule). */
|
|
320
|
+
unchanged: number;
|
|
321
|
+
/** Rows that were not imported. A row is counted once however many errors it has. */
|
|
322
|
+
failed: number;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Result of a synchronous Forms CSV import.
|
|
326
|
+
*
|
|
327
|
+
* ``imported_count`` counts accepted rows (``created + updated +
|
|
328
|
+
* unchanged``), not database writes. ``success`` is ``failed == 0``.
|
|
329
|
+
* ``errors`` lists at most the first ten row errors; ``error_count`` and
|
|
330
|
+
* ``message`` appear only when there are more. ``error_count`` counts
|
|
331
|
+
* errors, not failed rows — use ``outcomes.failed`` for that.
|
|
332
|
+
*/
|
|
333
|
+
interface RawDataRecordImportResponse {
|
|
334
|
+
imported_count: number;
|
|
335
|
+
total_rows: number;
|
|
336
|
+
success: boolean;
|
|
337
|
+
outcomes: DataRecordImportOutcomes;
|
|
338
|
+
errors?: string[] | null;
|
|
339
|
+
error_count?: number | null;
|
|
340
|
+
message?: string | null;
|
|
341
|
+
}
|
|
342
|
+
|
|
119
343
|
/** Legacy enum kept for callers using UPPER_SNAKE member names (e.g. ToolkitState.ENABLED). */
|
|
120
344
|
declare enum ToolkitState {
|
|
121
345
|
DISABLED = "disabled",
|
|
@@ -372,7 +596,18 @@ interface AIModelUsageResponse {
|
|
|
372
596
|
messageCount: number;
|
|
373
597
|
}
|
|
374
598
|
/**
|
|
375
|
-
*
|
|
599
|
+
* Credit usage details for one workspace.
|
|
600
|
+
*
|
|
601
|
+
* **``total`` is every metered service, not just AI** (GRA-9099). SMS
|
|
602
|
+
* segments, telephony voice minutes and sent emails debit the same
|
|
603
|
+
* subscription balance as AI usage, and the overage invoice is computed from
|
|
604
|
+
* ``total`` — so a ``total`` that counted only the four AI families invoiced
|
|
605
|
+
* SMS, voice and email at zero while the balance really lost those credits.
|
|
606
|
+
*
|
|
607
|
+
* ``chat + realtime + image + video`` is therefore the AI subtotal, and
|
|
608
|
+
* ``models`` decomposes that subtotal only: SMS, voice and email are metered
|
|
609
|
+
* by the rate card, not by a model. The class name is retained for API
|
|
610
|
+
* stability; the billing question it answers is "what consumed credits".
|
|
376
611
|
*/
|
|
377
612
|
interface AIUsageDetailsResponse {
|
|
378
613
|
total: number;
|
|
@@ -380,6 +615,12 @@ interface AIUsageDetailsResponse {
|
|
|
380
615
|
realtime: number;
|
|
381
616
|
image: number;
|
|
382
617
|
video: number;
|
|
618
|
+
/** Credits for billed SMS segments in BOTH directions x the organization's effective per-segment rate (GRA-9099). Fractional: the effective rate is. */
|
|
619
|
+
sms?: number;
|
|
620
|
+
/** Credits for BILLED telephony minutes (each call rounded up to the minute) x the organization's effective per-minute rate. Telephony minutes; voice AI is metered by tokens and sits in ``realtime``. */
|
|
621
|
+
voice?: number;
|
|
622
|
+
/** Credits for successfully sent emails x the organization's effective per-message rate. */
|
|
623
|
+
email?: number;
|
|
383
624
|
models: AIModelUsageResponse[];
|
|
384
625
|
}
|
|
385
626
|
/**
|
|
@@ -1061,8 +1302,6 @@ interface HealthSummary {
|
|
|
1061
1302
|
totalSmsResponded?: number;
|
|
1062
1303
|
totalSmsOutboundChats?: number;
|
|
1063
1304
|
totalNeedsResponse?: number;
|
|
1064
|
-
totalAccessGapWarnings?: number;
|
|
1065
|
-
totalRoutineWorkflowAccessWarnings?: number;
|
|
1066
1305
|
totalOpenCriticalActionIncidents?: number;
|
|
1067
1306
|
}
|
|
1068
1307
|
/**
|
|
@@ -1070,9 +1309,7 @@ interface HealthSummary {
|
|
|
1070
1309
|
*
|
|
1071
1310
|
* OPERATIONAL HISTORY, not configuration health: these are realized
|
|
1072
1311
|
* ``RoutineRun`` outcomes for automated (SCHEDULED / ONCE) parent runs in the
|
|
1073
|
-
* dashboard's time window.
|
|
1074
|
-
* ``routineWorkflowAccessWarnings``, which is current *structural* risk with
|
|
1075
|
-
* no evidence that a delivery was actually missed. See
|
|
1312
|
+
* dashboard's time window. See
|
|
1076
1313
|
* ``lib/db/reports/health_report.get_routine_run_metrics`` for the exact
|
|
1077
1314
|
* parent/trigger/window predicate.
|
|
1078
1315
|
*/
|
|
@@ -1111,50 +1348,9 @@ interface WorkspaceHealthRow {
|
|
|
1111
1348
|
routineRuns?: RoutineRunMetrics;
|
|
1112
1349
|
memberChats?: number;
|
|
1113
1350
|
needsResponse?: number;
|
|
1114
|
-
accessGapWarnings?: number;
|
|
1115
|
-
routineWorkflowAccessWarnings?: number;
|
|
1116
1351
|
openCriticalActionIncidents?: number;
|
|
1117
1352
|
}
|
|
1118
1353
|
|
|
1119
|
-
/**
|
|
1120
|
-
* A role in a Routine's audience that lacks Workflow USE.
|
|
1121
|
-
*
|
|
1122
|
-
* IDs + names are safe for admins (who already see role names); logs/breadcrumbs
|
|
1123
|
-
* must use IDs only.
|
|
1124
|
-
*/
|
|
1125
|
-
interface RoutineWorkflowAccessMissingRole {
|
|
1126
|
-
id: number;
|
|
1127
|
-
name: string;
|
|
1128
|
-
}
|
|
1129
|
-
/**
|
|
1130
|
-
* One Routine → Workflow reference whose audience is missing Workflow USE.
|
|
1131
|
-
*
|
|
1132
|
-
* PHI-safe: Routine / EventRule / Workflow / role IDs and names only — no
|
|
1133
|
-
* Member-level data (names, phones, emails). ``actionType`` is either an
|
|
1134
|
-
* EventRule action type (e.g. ``"sms:send"``) or ``"routine:workflow"`` for
|
|
1135
|
-
* the ``Routine.workflow_id`` background-run path.
|
|
1136
|
-
*/
|
|
1137
|
-
interface RoutineWorkflowAccessWarning {
|
|
1138
|
-
routineId: number;
|
|
1139
|
-
routineName?: string | null;
|
|
1140
|
-
eventRuleId?: number | null;
|
|
1141
|
-
actionType: string;
|
|
1142
|
-
workflowId: number;
|
|
1143
|
-
workflowUuid: string;
|
|
1144
|
-
workflowName: string;
|
|
1145
|
-
targetKind: string;
|
|
1146
|
-
missingRoles: RoutineWorkflowAccessMissingRole[];
|
|
1147
|
-
audienceRoleCount: number;
|
|
1148
|
-
}
|
|
1149
|
-
/**
|
|
1150
|
-
* Routine Workflow-access warning detail for a single workspace.
|
|
1151
|
-
*/
|
|
1152
|
-
interface WorkspaceRoutineWorkflowAccessResponse {
|
|
1153
|
-
workspaceUuid: string;
|
|
1154
|
-
warnings: RoutineWorkflowAccessWarning[];
|
|
1155
|
-
totalWarnings: number;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
1354
|
interface HealthMetricsRequest {
|
|
1159
1355
|
workspaceUuids?: string[];
|
|
1160
1356
|
organizationIds?: number[];
|
|
@@ -1327,6 +1523,17 @@ interface AppContext {
|
|
|
1327
1523
|
autoApprove?: boolean;
|
|
1328
1524
|
/** Enable deep thinking mode for the current session */
|
|
1329
1525
|
deepThink?: boolean;
|
|
1526
|
+
/**
|
|
1527
|
+
* Workspace Manager chats only: the member's model pick from
|
|
1528
|
+
* `getManagerModels()`. A pick outside that catalog falls back to the
|
|
1529
|
+
* Manager's default model server-side. Takes precedence over `deepThink`.
|
|
1530
|
+
*/
|
|
1531
|
+
managerModel?: string;
|
|
1532
|
+
/**
|
|
1533
|
+
* Workspace Manager chats only: reasoning effort for `managerModel`. An
|
|
1534
|
+
* effort the model does not offer falls back to its default server-side.
|
|
1535
|
+
*/
|
|
1536
|
+
managerReasoningEffort?: string;
|
|
1330
1537
|
/**
|
|
1331
1538
|
* Client has a local browser the agent can drive (the Gravity Rail desktop
|
|
1332
1539
|
* app is running and its core is reachable). The server loads the
|
|
@@ -1376,10 +1583,13 @@ declare function formatAppContextAsMarkdown(context: AppContext | undefined): st
|
|
|
1376
1583
|
* These are used as fallback defaults when creating new agents, assistants,
|
|
1377
1584
|
* and other entities that require a model selection.
|
|
1378
1585
|
*/
|
|
1379
|
-
/**
|
|
1380
|
-
|
|
1586
|
+
/**
|
|
1587
|
+
* Shared chat/inference fallback for Workflow and action settings. Mirrors
|
|
1588
|
+
* DEFAULT_CHAT_MODEL_ID in lib/constants.py.
|
|
1589
|
+
*/
|
|
1590
|
+
declare const DEFAULT_CHAT_MODEL = "openai:chat:gpt-6-luna";
|
|
1381
1591
|
/** Chat model selected when creating an Agent. */
|
|
1382
|
-
declare const DEFAULT_AGENT_CHAT_MODEL = "openai:chat:gpt-
|
|
1592
|
+
declare const DEFAULT_AGENT_CHAT_MODEL = "openai:chat:gpt-6-luna";
|
|
1383
1593
|
/** Default native realtime model and voice for newly created agents. */
|
|
1384
1594
|
declare const DEFAULT_AGENT_REALTIME_MODEL = "xai:realtime:voice-agent-2";
|
|
1385
1595
|
declare const DEFAULT_AGENT_REALTIME_MODEL_CONFIG: {
|
|
@@ -1387,9 +1597,9 @@ declare const DEFAULT_AGENT_REALTIME_MODEL_CONFIG: {
|
|
|
1387
1597
|
voiceModel: string;
|
|
1388
1598
|
};
|
|
1389
1599
|
/** Default inference model for custom voice stack. */
|
|
1390
|
-
declare const DEFAULT_VOICE_INFERENCE_MODEL = "openai:chat:gpt-
|
|
1600
|
+
declare const DEFAULT_VOICE_INFERENCE_MODEL = "openai:chat:gpt-6-luna";
|
|
1391
1601
|
/** Default voice model for custom realtime configurations. */
|
|
1392
|
-
declare const DEFAULT_CUSTOM_VOICE_MODEL = "
|
|
1602
|
+
declare const DEFAULT_CUSTOM_VOICE_MODEL = "xai:voice:lux";
|
|
1393
1603
|
|
|
1394
1604
|
/**
|
|
1395
1605
|
* Resource metadata for products
|
|
@@ -1466,6 +1676,7 @@ declare enum ScopeCategory {
|
|
|
1466
1676
|
APPS = "apps",
|
|
1467
1677
|
LABELS = "labels",
|
|
1468
1678
|
ANALYTICS = "analytics",
|
|
1679
|
+
ANONYMOUS_SUBMISSIONS = "anonymous_submissions",
|
|
1469
1680
|
OPERATOR = "operator",
|
|
1470
1681
|
EXPORT = "export",
|
|
1471
1682
|
ORG = "org"
|
|
@@ -1871,6 +2082,11 @@ declare const SCOPES: {
|
|
|
1871
2082
|
readonly category: ScopeCategory.ANALYTICS;
|
|
1872
2083
|
readonly description: "View analytics and reports";
|
|
1873
2084
|
};
|
|
2085
|
+
readonly 'anonymous_submissions:read': {
|
|
2086
|
+
readonly name: "anonymous_submissions:read";
|
|
2087
|
+
readonly category: ScopeCategory.ANONYMOUS_SUBMISSIONS;
|
|
2088
|
+
readonly description: "View what anonymous visitors submitted on anonymous Forms";
|
|
2089
|
+
};
|
|
1874
2090
|
readonly 'export:read': {
|
|
1875
2091
|
readonly name: "export:read";
|
|
1876
2092
|
readonly category: ScopeCategory.EXPORT;
|
|
@@ -2047,4 +2263,4 @@ interface RevisionState {
|
|
|
2047
2263
|
*/
|
|
2048
2264
|
declare function getRevisionState(workflow: RevisionStateWorkflow, revision?: RevisionStateRevision): RevisionState;
|
|
2049
2265
|
|
|
2050
|
-
export { type
|
|
2266
|
+
export { type VoiceMetricsResponse$1 as $, type AIModelUsageResponse as A, type BillingStatistics as B, type CallEndSection as C, CreateMemberContactPointRequestSharing as D, type CurrentPlanInfo as E, 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, type DailyPhoneRowResponse as L, type DailySMSRowResponse as M, type DashboardMetrics as N, type DataRecordContext as O, type DataRecordImportOutcomes as P, type DeviceCacheFileEntry as Q, type DeviceCacheManifestResponse as R, type EfficiencyMetricsResponse as S, type EmailCountsResponse as T, type EmailUsageResponse as U, type EngineTimeSeries as V, type ErrorCodeBucket as W, type EventRuleMetrics as X, type ExportStatistics as Y, type FeatureSyncStatus as Z, type MetricSummary$1 as _, type AIUsageDetailsResponse as a, type TopOffender as a$, type WorkspaceHealthResponse$1 as a0, type HealthCheckStatistics as a1, type HealthDetailRequest as a2, type HealthMetricsRequest as a3, type HealthMetricsResponse as a4, type HealthSummary as a5, type ImportStatistics as a6, MEMBER_RELATIONSHIP_KINDS as a7, type MemberContactPointResponse as a8, type MemberContactPointConfirmationResponse as a9, type ResourceOverageResponse as aA, type ResourceUsageResponse as aB, type RetireMemberContactPointRequest as aC, type RevisionState as aD, type RevisionStateRevision as aE, type RevisionStateWorkflow as aF, type RoutineRunMetrics as aG, SCOPES as aH, SCOPE_PRESETS as aI, type SMSCommunicationDetailsResponse as aJ, type SMSMessageUsageResponse as aK, type SMSPhoneNumberUsageResponse as aL, type ScenarioDependencyAssessment as aM, ScopeCategory as aN, ScopeManager as aO, type ScopeName as aP, type SiteContext as aQ, type SkippedWorkspace as aR, type StatisticsSummary as aS, type SystemStatistics as aT, type TaskContext as aU, type TaskCountResponse as aV, type TimeSeriesData as aW, type TimeSeriesDataPoint as aX, type ToolParameter as aY, type ToolkitContext as aZ, ToolkitState as a_, type MemberContactPointListResponse as aa, type MemberNotificationPreferences as ab, type MemberNotifyActionParams as ac, type MemberNotifyRecipientMode as ad, type MemberUsageReport as ae, type MetricDataPoint as af, type MetricSection as ag, type MetricSummary as ah, type MetricValue as ai, PIDS_DISPOSITIONS as aj, PIDS_SOURCES as ak, type PageContext as al, type PerformanceMetrics as am, type PhoneCallPhoneNumberUsageResponse as an, type PhoneCallUsageResponse as ao, type PhoneCommunicationDetailsResponse as ap, type PhoneNumberUsage as aq, type PidsDisposition as ar, type PidsSource as as, type ProductOverageConfigResponse as at, type ProvisionPlanRequest as au, type ProvisionPlanResponse as av, type RawDataRecordImportResponse as aw, type RequestsSection as ax, type RequestsStatusEntry as ay, type ResourceMetadata as az, type AcquisitionFunnelChannel as b, type TopResourceOverageResponse as b0, type TtsReconnectOutcomeEntry as b1, type TtsReconnectSection as b2, type UpdateMemberContactPointRequest as b3, UpdateMemberContactPointRequestContactType as b4, UpdateMemberContactPointRequestPurpose as b5, UpdateMemberContactPointRequestSharing as b6, type UsageProductSummaryResponse as b7, type UsageReportResponse as b8, type UsageReportRequest as b9, type UsageStatistics as ba, type VoiceMetricsResponse as bb, type VoiceMetricsTimeRange as bc, WIDGET_SLUGS as bd, type WebhookMetrics as be, type WidgetSlug as bf, type WorkflowContext as bg, type WorkspaceHealthDetail as bh, type WorkspaceHealthResponse as bi, type WorkspaceHealthRow as bj, type WorkspaceUsageReportResponse as bk, formatAppContextAsMarkdown as bl, getAllResourceSlugs as bm, getResourceMetadata as bn, getRevisionState as bo, ScenarioDependencyAssessmentRefusalCodesItem as bp, type ScopeDefinition as bq, type AcquisitionFunnelRecentSignup as c, type AcquisitionFunnelResponse as d, type ActivityDetail as e, type ActivityFeedResponse as f, type AdminDomainResponse as g, type AdminDomainSiteMapping as h, type AdminDomainWidgetMapping as i, type AdminPidsFindingResponse as j, type AnalyticsFilter as k, type AnalyticsQuery as l, type AppContext as m, type AttachedAddonInfo as n, type BundleScenarioPreflightResponse as o, type CallEndStatusEntry as p, type ChannelErrorBreakdown as q, type ChannelFailures as r, type ChannelMessageResponse as s, ChannelMessageDirection as t, ChannelMessageSource as u, type ChannelMessagesResponse as v, type CommunicationDetailsResponse as w, type CreateMemberContactPointRequest as x, CreateMemberContactPointRequestContactType as y, CreateMemberContactPointRequestPurpose as z };
|