@elqnt/types 2.0.7 → 2.0.9
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +149 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +111 -1
- package/dist/index.mjs.map +1 -1
- package/dist/models/index.d.mts +532 -11
- package/dist/models/index.d.ts +532 -11
- package/dist/models/index.js +149 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/index.mjs +111 -1
- package/dist/models/index.mjs.map +1 -1
- package/package.json +8 -8
package/dist/models/index.d.mts
CHANGED
|
@@ -253,6 +253,7 @@ interface ChartSettings {
|
|
|
253
253
|
compareFilterFieldName: string;
|
|
254
254
|
compareFilterFieldValue: string;
|
|
255
255
|
}
|
|
256
|
+
|
|
256
257
|
interface Address {
|
|
257
258
|
line1: string;
|
|
258
259
|
line2: string;
|
|
@@ -456,7 +457,6 @@ interface OrgProvisioning {
|
|
|
456
457
|
error?: string;
|
|
457
458
|
}
|
|
458
459
|
interface OrgSubscription {
|
|
459
|
-
id: string;
|
|
460
460
|
plan: string;
|
|
461
461
|
platform: SubscriptionPlatform;
|
|
462
462
|
status: OrgSubscriptionStatus;
|
|
@@ -465,6 +465,9 @@ interface OrgSubscription {
|
|
|
465
465
|
seats?: number;
|
|
466
466
|
stripeCustomerId?: string;
|
|
467
467
|
stripeSubscriptionId?: string;
|
|
468
|
+
cancelledAt?: number;
|
|
469
|
+
cancelReason?: string;
|
|
470
|
+
gracePeriodEndsAt?: number;
|
|
468
471
|
}
|
|
469
472
|
type OrgSubscriptionStatus = string;
|
|
470
473
|
declare const OrgSubscriptionStatusTrialing: OrgSubscriptionStatus;
|
|
@@ -496,6 +499,10 @@ declare const OrgSubscriptionStatuses: {
|
|
|
496
499
|
};
|
|
497
500
|
type OrgSubscriptionStatusTS = keyof typeof OrgSubscriptionStatuses;
|
|
498
501
|
type OrgSubscriptionStatusOptionTS = typeof OrgSubscriptionStatuses[OrgSubscriptionStatusTS];
|
|
502
|
+
interface OrgResponse {
|
|
503
|
+
org: Org;
|
|
504
|
+
metadata: ResponseMetadata;
|
|
505
|
+
}
|
|
499
506
|
interface OrgInfoResponse {
|
|
500
507
|
orgInfo: OrgInfo;
|
|
501
508
|
metadata: ResponseMetadata;
|
|
@@ -871,9 +878,13 @@ interface OrgResult {
|
|
|
871
878
|
nextStep: string;
|
|
872
879
|
metadata: ResponseMetadata;
|
|
873
880
|
}
|
|
874
|
-
/**
|
|
881
|
+
/**
|
|
882
|
+
* WorkspaceInput is an alias for OrgInput (deprecated)
|
|
883
|
+
*/
|
|
875
884
|
type WorkspaceInput = OrgInput;
|
|
876
|
-
/**
|
|
885
|
+
/**
|
|
886
|
+
* WorkspaceResult is an alias for OrgResult (deprecated)
|
|
887
|
+
*/
|
|
877
888
|
type WorkspaceResult = OrgResult;
|
|
878
889
|
/**
|
|
879
890
|
* InviteInput contains the input for sending invites
|
|
@@ -979,13 +990,32 @@ interface PaymentSessionResult {
|
|
|
979
990
|
customerId: string;
|
|
980
991
|
metadata: ResponseMetadata;
|
|
981
992
|
}
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
993
|
+
declare const AdminOrgCreate = "admin.orgs.create";
|
|
994
|
+
declare const AdminOrgList = "admin.orgs.list";
|
|
995
|
+
declare const AdminOrgListByMetadata = "admin.orgs.listByMetadata";
|
|
996
|
+
declare const AdminOrgGet = "admin.orgs.get";
|
|
997
|
+
declare const AdminOrgGetInfo = "admin.orgs.getInfo";
|
|
998
|
+
declare const AdminOrgGetByDomain = "admin.orgs.getByDomain";
|
|
999
|
+
declare const AdminOrgUpdate = "admin.orgs.update";
|
|
1000
|
+
declare const AdminOrgDelete = "admin.orgs.delete";
|
|
1001
|
+
declare const AdminOrgCreated = "system.admin.org.created";
|
|
1002
|
+
declare const AdminOrgRolesGet = "admin.orgRoles.get";
|
|
1003
|
+
declare const AdminOrgRolesCreate = "admin.orgRoles.create";
|
|
1004
|
+
declare const AdminOrgRolesUpdate = "admin.orgRoles.update";
|
|
1005
|
+
declare const AdminOrgRolesDelete = "admin.orgRoles.delete";
|
|
1006
|
+
declare const AdminUsersGet = "admin.users.get";
|
|
1007
|
+
declare const AdminUsersGetForOrg = "admin.users.getUsersForOrg";
|
|
1008
|
+
declare const AdminUsersGetOne = "admin.users.getOne";
|
|
1009
|
+
declare const AdminUsersGetOneByEmail = "admin.users.getOneByEmail";
|
|
1010
|
+
declare const AdminUsersCreate = "admin.users.create";
|
|
1011
|
+
declare const AdminUsersUpdate = "admin.users.update";
|
|
1012
|
+
declare const AdminUsersDelete = "admin.users.delete";
|
|
1013
|
+
declare const AdminUsersUpdateSettings = "admin.users.updateSettings";
|
|
1014
|
+
declare const AdminUsersGetSettings = "admin.users.getSettings";
|
|
1015
|
+
declare const AdminTeamsCreate = "admin.teams.create";
|
|
1016
|
+
declare const AdminTeamsGetOne = "admin.teams.getOne";
|
|
1017
|
+
declare const AdminTeamsGetForOrg = "admin.teams.getTeamsForOrg";
|
|
1018
|
+
declare const AdminTeamsUpdateOnboarding = "admin.teams.updateOnboardingData";
|
|
989
1019
|
|
|
990
1020
|
interface KGNode {
|
|
991
1021
|
id: string;
|
|
@@ -1032,4 +1062,495 @@ interface DocumentAnalysisResult {
|
|
|
1032
1062
|
status: string;
|
|
1033
1063
|
}
|
|
1034
1064
|
|
|
1035
|
-
|
|
1065
|
+
type IntegrationProvider = string;
|
|
1066
|
+
declare const IntegrationProviderGoogle: IntegrationProvider;
|
|
1067
|
+
declare const IntegrationProviderMicrosoft: IntegrationProvider;
|
|
1068
|
+
type IntegrationProviderTS = "google" | "microsoft";
|
|
1069
|
+
type IntegrationType = string;
|
|
1070
|
+
declare const IntegrationTypeEmail: IntegrationType;
|
|
1071
|
+
declare const IntegrationTypeCalendar: IntegrationType;
|
|
1072
|
+
declare const IntegrationTypeDrive: IntegrationType;
|
|
1073
|
+
type IntegrationTypeTS = "email" | "calendar" | "drive";
|
|
1074
|
+
type IntegrationStatus = string;
|
|
1075
|
+
declare const IntegrationStatusActive: IntegrationStatus;
|
|
1076
|
+
declare const IntegrationStatusExpired: IntegrationStatus;
|
|
1077
|
+
declare const IntegrationStatusRevoked: IntegrationStatus;
|
|
1078
|
+
declare const IntegrationStatusError: IntegrationStatus;
|
|
1079
|
+
type IntegrationStatusTS = "active" | "expired" | "revoked" | "error";
|
|
1080
|
+
type IntegrationMode = string;
|
|
1081
|
+
declare const IntegrationModeServicePrincipal: IntegrationMode;
|
|
1082
|
+
declare const IntegrationModeDomainDelegation: IntegrationMode;
|
|
1083
|
+
interface UserIntegration {
|
|
1084
|
+
id: string;
|
|
1085
|
+
org_id: string;
|
|
1086
|
+
user_id: string;
|
|
1087
|
+
provider: IntegrationProvider;
|
|
1088
|
+
integration_type: IntegrationType;
|
|
1089
|
+
account_email: string;
|
|
1090
|
+
account_name?: string;
|
|
1091
|
+
status: IntegrationStatus;
|
|
1092
|
+
scopes: string[];
|
|
1093
|
+
triage_enabled: boolean;
|
|
1094
|
+
last_used_at?: string;
|
|
1095
|
+
last_error?: string;
|
|
1096
|
+
created_at: string;
|
|
1097
|
+
updated_at: string;
|
|
1098
|
+
expires_at?: string;
|
|
1099
|
+
}
|
|
1100
|
+
interface TokenData {
|
|
1101
|
+
access_token: string;
|
|
1102
|
+
refresh_token: string;
|
|
1103
|
+
token_type: string;
|
|
1104
|
+
expires_at: string;
|
|
1105
|
+
scopes: string[];
|
|
1106
|
+
}
|
|
1107
|
+
interface OrgIntegration {
|
|
1108
|
+
id: string;
|
|
1109
|
+
org_id: string;
|
|
1110
|
+
provider: IntegrationProvider;
|
|
1111
|
+
integration_type: IntegrationType;
|
|
1112
|
+
mode: IntegrationMode;
|
|
1113
|
+
domain?: string;
|
|
1114
|
+
enabled: boolean;
|
|
1115
|
+
config?: Record<string, unknown>;
|
|
1116
|
+
scopes: string[];
|
|
1117
|
+
created_by: string;
|
|
1118
|
+
created_at: string;
|
|
1119
|
+
updated_at: string;
|
|
1120
|
+
}
|
|
1121
|
+
interface ListUserIntegrationsRequest {
|
|
1122
|
+
org_id: string;
|
|
1123
|
+
user_id: string;
|
|
1124
|
+
}
|
|
1125
|
+
interface ListUserIntegrationsResponse {
|
|
1126
|
+
integrations: UserIntegration[];
|
|
1127
|
+
total: number;
|
|
1128
|
+
metadata: ResponseMetadata;
|
|
1129
|
+
}
|
|
1130
|
+
interface GetUserIntegrationRequest {
|
|
1131
|
+
org_id: string;
|
|
1132
|
+
user_id: string;
|
|
1133
|
+
provider: IntegrationProvider;
|
|
1134
|
+
integration_type: IntegrationType;
|
|
1135
|
+
}
|
|
1136
|
+
interface GetUserIntegrationResponse {
|
|
1137
|
+
integration?: UserIntegration;
|
|
1138
|
+
metadata: ResponseMetadata;
|
|
1139
|
+
}
|
|
1140
|
+
interface ConnectIntegrationRequest {
|
|
1141
|
+
org_id: string;
|
|
1142
|
+
user_id: string;
|
|
1143
|
+
provider: IntegrationProvider;
|
|
1144
|
+
integration_type: IntegrationType;
|
|
1145
|
+
redirect_uri: string;
|
|
1146
|
+
}
|
|
1147
|
+
interface ConnectIntegrationResponse {
|
|
1148
|
+
auth_url: string;
|
|
1149
|
+
state: string;
|
|
1150
|
+
metadata: ResponseMetadata;
|
|
1151
|
+
}
|
|
1152
|
+
interface IntegrationCallbackRequest {
|
|
1153
|
+
org_id: string;
|
|
1154
|
+
user_id: string;
|
|
1155
|
+
state: string;
|
|
1156
|
+
code: string;
|
|
1157
|
+
error?: string;
|
|
1158
|
+
}
|
|
1159
|
+
interface IntegrationCallbackResponse {
|
|
1160
|
+
integration?: UserIntegration;
|
|
1161
|
+
metadata: ResponseMetadata;
|
|
1162
|
+
}
|
|
1163
|
+
interface DisconnectIntegrationRequest {
|
|
1164
|
+
org_id: string;
|
|
1165
|
+
user_id: string;
|
|
1166
|
+
provider: IntegrationProvider;
|
|
1167
|
+
integration_type: IntegrationType;
|
|
1168
|
+
}
|
|
1169
|
+
interface DisconnectIntegrationResponse {
|
|
1170
|
+
metadata: ResponseMetadata;
|
|
1171
|
+
}
|
|
1172
|
+
interface RefreshIntegrationRequest {
|
|
1173
|
+
org_id: string;
|
|
1174
|
+
user_id: string;
|
|
1175
|
+
provider: IntegrationProvider;
|
|
1176
|
+
integration_type: IntegrationType;
|
|
1177
|
+
}
|
|
1178
|
+
interface RefreshIntegrationResponse {
|
|
1179
|
+
integration?: UserIntegration;
|
|
1180
|
+
metadata: ResponseMetadata;
|
|
1181
|
+
}
|
|
1182
|
+
interface UpdateTriageEnabledRequest {
|
|
1183
|
+
org_id: string;
|
|
1184
|
+
user_id: string;
|
|
1185
|
+
provider: IntegrationProvider;
|
|
1186
|
+
integration_type: IntegrationType;
|
|
1187
|
+
triage_enabled: boolean;
|
|
1188
|
+
}
|
|
1189
|
+
interface UpdateTriageEnabledResponse {
|
|
1190
|
+
integration?: UserIntegration;
|
|
1191
|
+
metadata: ResponseMetadata;
|
|
1192
|
+
}
|
|
1193
|
+
interface ListOrgIntegrationsRequest {
|
|
1194
|
+
org_id: string;
|
|
1195
|
+
}
|
|
1196
|
+
interface ListOrgIntegrationsResponse {
|
|
1197
|
+
integrations: OrgIntegration[];
|
|
1198
|
+
total: number;
|
|
1199
|
+
metadata: ResponseMetadata;
|
|
1200
|
+
}
|
|
1201
|
+
interface SearchEmailsRequest {
|
|
1202
|
+
org_id: string;
|
|
1203
|
+
user_id: string;
|
|
1204
|
+
query: string;
|
|
1205
|
+
from?: string;
|
|
1206
|
+
to?: string;
|
|
1207
|
+
subject?: string;
|
|
1208
|
+
date_range?: string;
|
|
1209
|
+
limit?: number;
|
|
1210
|
+
}
|
|
1211
|
+
interface SearchEmailsResponse {
|
|
1212
|
+
emails: EmailSummary[];
|
|
1213
|
+
total: number;
|
|
1214
|
+
metadata: ResponseMetadata;
|
|
1215
|
+
}
|
|
1216
|
+
interface EmailSummary {
|
|
1217
|
+
id: string;
|
|
1218
|
+
thread_id?: string;
|
|
1219
|
+
from: string;
|
|
1220
|
+
from_name?: string;
|
|
1221
|
+
to: string[];
|
|
1222
|
+
cc?: string[];
|
|
1223
|
+
subject: string;
|
|
1224
|
+
snippet: string;
|
|
1225
|
+
date: string;
|
|
1226
|
+
has_attachments: boolean;
|
|
1227
|
+
is_read: boolean;
|
|
1228
|
+
labels?: string[];
|
|
1229
|
+
web_link?: string;
|
|
1230
|
+
provider?: IntegrationProviderTS;
|
|
1231
|
+
}
|
|
1232
|
+
interface GetEmailRequest {
|
|
1233
|
+
org_id: string;
|
|
1234
|
+
user_id: string;
|
|
1235
|
+
email_id: string;
|
|
1236
|
+
include_attachments?: boolean;
|
|
1237
|
+
}
|
|
1238
|
+
interface GetEmailResponse {
|
|
1239
|
+
email?: EmailDetails;
|
|
1240
|
+
metadata: ResponseMetadata;
|
|
1241
|
+
}
|
|
1242
|
+
interface EmailDetails {
|
|
1243
|
+
id: string;
|
|
1244
|
+
thread_id?: string;
|
|
1245
|
+
from: string;
|
|
1246
|
+
from_name?: string;
|
|
1247
|
+
to: string[];
|
|
1248
|
+
cc?: string[];
|
|
1249
|
+
bcc?: string[];
|
|
1250
|
+
subject: string;
|
|
1251
|
+
body: string;
|
|
1252
|
+
body_html?: string;
|
|
1253
|
+
date: string;
|
|
1254
|
+
attachments?: EmailAttachment[];
|
|
1255
|
+
labels?: string[];
|
|
1256
|
+
is_read: boolean;
|
|
1257
|
+
web_link?: string;
|
|
1258
|
+
provider?: IntegrationProviderTS;
|
|
1259
|
+
}
|
|
1260
|
+
interface EmailAttachment {
|
|
1261
|
+
id: string;
|
|
1262
|
+
filename: string;
|
|
1263
|
+
mime_type: string;
|
|
1264
|
+
size: number;
|
|
1265
|
+
}
|
|
1266
|
+
interface GetEmailThreadRequest {
|
|
1267
|
+
org_id: string;
|
|
1268
|
+
user_id: string;
|
|
1269
|
+
thread_id: string;
|
|
1270
|
+
}
|
|
1271
|
+
interface GetEmailThreadResponse {
|
|
1272
|
+
thread: EmailDetails[];
|
|
1273
|
+
metadata: ResponseMetadata;
|
|
1274
|
+
}
|
|
1275
|
+
interface ListCalendarEventsRequest {
|
|
1276
|
+
org_id: string;
|
|
1277
|
+
user_id: string;
|
|
1278
|
+
query?: string;
|
|
1279
|
+
date_range?: string;
|
|
1280
|
+
start_date?: string;
|
|
1281
|
+
end_date?: string;
|
|
1282
|
+
limit?: number;
|
|
1283
|
+
}
|
|
1284
|
+
interface ListCalendarEventsResponse {
|
|
1285
|
+
events: CalendarEvent[];
|
|
1286
|
+
total: number;
|
|
1287
|
+
metadata: ResponseMetadata;
|
|
1288
|
+
}
|
|
1289
|
+
interface CalendarEvent {
|
|
1290
|
+
id: string;
|
|
1291
|
+
title: string;
|
|
1292
|
+
description?: string;
|
|
1293
|
+
location?: string;
|
|
1294
|
+
start: string;
|
|
1295
|
+
end: string;
|
|
1296
|
+
is_all_day: boolean;
|
|
1297
|
+
organizer?: string;
|
|
1298
|
+
organizer_name?: string;
|
|
1299
|
+
attendees?: EventAttendee[];
|
|
1300
|
+
status?: string;
|
|
1301
|
+
response_status?: string;
|
|
1302
|
+
recurrence_rule?: string;
|
|
1303
|
+
conference_url?: string;
|
|
1304
|
+
calendar_id?: string;
|
|
1305
|
+
}
|
|
1306
|
+
interface EventAttendee {
|
|
1307
|
+
email: string;
|
|
1308
|
+
name?: string;
|
|
1309
|
+
response_status?: string;
|
|
1310
|
+
is_organizer?: boolean;
|
|
1311
|
+
}
|
|
1312
|
+
interface GetCalendarEventRequest {
|
|
1313
|
+
org_id: string;
|
|
1314
|
+
user_id: string;
|
|
1315
|
+
event_id: string;
|
|
1316
|
+
}
|
|
1317
|
+
interface GetCalendarEventResponse {
|
|
1318
|
+
event?: CalendarEvent;
|
|
1319
|
+
metadata: ResponseMetadata;
|
|
1320
|
+
}
|
|
1321
|
+
interface FileSummary {
|
|
1322
|
+
id: string;
|
|
1323
|
+
name: string;
|
|
1324
|
+
mime_type: string;
|
|
1325
|
+
size: number;
|
|
1326
|
+
modified_time: string;
|
|
1327
|
+
created_time?: string;
|
|
1328
|
+
owner?: string;
|
|
1329
|
+
owner_email?: string;
|
|
1330
|
+
web_link?: string;
|
|
1331
|
+
icon_link?: string;
|
|
1332
|
+
thumbnail_link?: string;
|
|
1333
|
+
is_folder: boolean;
|
|
1334
|
+
parent_id?: string;
|
|
1335
|
+
provider?: IntegrationProviderTS;
|
|
1336
|
+
}
|
|
1337
|
+
interface FileDetails {
|
|
1338
|
+
id: string;
|
|
1339
|
+
name: string;
|
|
1340
|
+
mime_type: string;
|
|
1341
|
+
size: number;
|
|
1342
|
+
modified_time: string;
|
|
1343
|
+
created_time?: string;
|
|
1344
|
+
owner?: string;
|
|
1345
|
+
owner_email?: string;
|
|
1346
|
+
description?: string;
|
|
1347
|
+
web_link?: string;
|
|
1348
|
+
download_link?: string;
|
|
1349
|
+
icon_link?: string;
|
|
1350
|
+
thumbnail_link?: string;
|
|
1351
|
+
is_folder: boolean;
|
|
1352
|
+
parent_id?: string;
|
|
1353
|
+
parent_name?: string;
|
|
1354
|
+
shared_with?: FilePermission[];
|
|
1355
|
+
provider?: IntegrationProviderTS;
|
|
1356
|
+
}
|
|
1357
|
+
interface FilePermission {
|
|
1358
|
+
email: string;
|
|
1359
|
+
name?: string;
|
|
1360
|
+
role: string;
|
|
1361
|
+
}
|
|
1362
|
+
interface DateFilter {
|
|
1363
|
+
from?: string;
|
|
1364
|
+
to?: string;
|
|
1365
|
+
}
|
|
1366
|
+
interface TaskMetrics {
|
|
1367
|
+
total_tasks: number;
|
|
1368
|
+
ai_used_count: number;
|
|
1369
|
+
autonomy_assist: number;
|
|
1370
|
+
autonomy_coedit: number;
|
|
1371
|
+
autonomy_autonomous: number;
|
|
1372
|
+
contained_count: number;
|
|
1373
|
+
escalated_count: number;
|
|
1374
|
+
reopened_count: number;
|
|
1375
|
+
avg_duration_s: number;
|
|
1376
|
+
total_input_tokens: number;
|
|
1377
|
+
total_output_tokens: number;
|
|
1378
|
+
total_tool_calls: number;
|
|
1379
|
+
total_cost_usd: number;
|
|
1380
|
+
avg_quality_score?: number;
|
|
1381
|
+
avg_csat_score?: number;
|
|
1382
|
+
}
|
|
1383
|
+
interface EmployeeExperienceChat {
|
|
1384
|
+
chat_id: string;
|
|
1385
|
+
chat_title: string;
|
|
1386
|
+
employee_id: string;
|
|
1387
|
+
start_time: string;
|
|
1388
|
+
end_time: string;
|
|
1389
|
+
status: string;
|
|
1390
|
+
category: string;
|
|
1391
|
+
department: string;
|
|
1392
|
+
summary: string;
|
|
1393
|
+
satisfaction_score: number;
|
|
1394
|
+
device: Record<string, unknown>;
|
|
1395
|
+
employee: Record<string, unknown>;
|
|
1396
|
+
message_count: number;
|
|
1397
|
+
total_tokens: number;
|
|
1398
|
+
avg_response_time: number;
|
|
1399
|
+
input_tokens: number;
|
|
1400
|
+
output_tokens: number;
|
|
1401
|
+
ticket_created: boolean;
|
|
1402
|
+
ticket_id?: string;
|
|
1403
|
+
resolution_type: string;
|
|
1404
|
+
}
|
|
1405
|
+
interface ChatMetricsResponse {
|
|
1406
|
+
success: boolean;
|
|
1407
|
+
data?: EmployeeExperienceChat[];
|
|
1408
|
+
error?: string;
|
|
1409
|
+
}
|
|
1410
|
+
interface AnalyticsRequest {
|
|
1411
|
+
org_id: string;
|
|
1412
|
+
date_filter: DateFilter;
|
|
1413
|
+
chat_id?: string;
|
|
1414
|
+
department?: string;
|
|
1415
|
+
employee_id?: string;
|
|
1416
|
+
ticket_id?: string;
|
|
1417
|
+
}
|
|
1418
|
+
interface AnalyticsResponse {
|
|
1419
|
+
success: boolean;
|
|
1420
|
+
data?: unknown;
|
|
1421
|
+
error?: string;
|
|
1422
|
+
}
|
|
1423
|
+
interface OrgSettings {
|
|
1424
|
+
id: string;
|
|
1425
|
+
org_id: string;
|
|
1426
|
+
title: string;
|
|
1427
|
+
description: string;
|
|
1428
|
+
logo_url: string;
|
|
1429
|
+
default_lang: string;
|
|
1430
|
+
timezone: string;
|
|
1431
|
+
additional_settings: Record<string, unknown>;
|
|
1432
|
+
created_at: string;
|
|
1433
|
+
updated_at: string;
|
|
1434
|
+
created_by: string;
|
|
1435
|
+
updated_by: string;
|
|
1436
|
+
}
|
|
1437
|
+
interface OrgSettingsRequest {
|
|
1438
|
+
org_id: string;
|
|
1439
|
+
settings?: OrgSettings;
|
|
1440
|
+
}
|
|
1441
|
+
interface OrgSettingsResponse {
|
|
1442
|
+
success: boolean;
|
|
1443
|
+
settings?: OrgSettings;
|
|
1444
|
+
error?: string;
|
|
1445
|
+
}
|
|
1446
|
+
interface ServiceDeskAdmin {
|
|
1447
|
+
id: string;
|
|
1448
|
+
name: string;
|
|
1449
|
+
email: string;
|
|
1450
|
+
department: string;
|
|
1451
|
+
role: string;
|
|
1452
|
+
assignedBy: string;
|
|
1453
|
+
assignedAt: string;
|
|
1454
|
+
customFields?: Record<string, unknown>;
|
|
1455
|
+
}
|
|
1456
|
+
interface ListServiceDeskAdminsRequest {
|
|
1457
|
+
orgId: string;
|
|
1458
|
+
department?: string;
|
|
1459
|
+
}
|
|
1460
|
+
interface ListServiceDeskAdminsResponse {
|
|
1461
|
+
admins: ServiceDeskAdmin[];
|
|
1462
|
+
metadata: ResponseMetadata;
|
|
1463
|
+
}
|
|
1464
|
+
interface RunEmailTriageRequest {
|
|
1465
|
+
org_id: string;
|
|
1466
|
+
user_id: string;
|
|
1467
|
+
}
|
|
1468
|
+
interface RunEmailTriageResponse {
|
|
1469
|
+
success: boolean;
|
|
1470
|
+
emails_found: number;
|
|
1471
|
+
instances_created: number;
|
|
1472
|
+
message: string;
|
|
1473
|
+
metadata: {
|
|
1474
|
+
success: boolean;
|
|
1475
|
+
error?: string;
|
|
1476
|
+
};
|
|
1477
|
+
}
|
|
1478
|
+
declare const HubSubjects: {
|
|
1479
|
+
readonly userList: "hub.integrations.user.list";
|
|
1480
|
+
readonly userGet: "hub.integrations.user.get";
|
|
1481
|
+
readonly userConnect: "hub.integrations.user.connect";
|
|
1482
|
+
readonly userCallback: "hub.integrations.user.callback";
|
|
1483
|
+
readonly userDisconnect: "hub.integrations.user.disconnect";
|
|
1484
|
+
readonly userRefresh: "hub.integrations.user.refresh";
|
|
1485
|
+
readonly userUpdateTriage: "hub.integrations.user.triage.update";
|
|
1486
|
+
readonly emailTriageRun: "hub.email.triage.run";
|
|
1487
|
+
readonly orgList: "hub.integrations.org.list";
|
|
1488
|
+
readonly orgConfigure: "hub.integrations.org.configure";
|
|
1489
|
+
readonly orgDisable: "hub.integrations.org.disable";
|
|
1490
|
+
readonly emailSearch: "hub.integrations.email.search";
|
|
1491
|
+
readonly emailGet: "hub.integrations.email.get";
|
|
1492
|
+
readonly emailThread: "hub.integrations.email.thread";
|
|
1493
|
+
readonly calendarList: "hub.integrations.calendar.list";
|
|
1494
|
+
readonly calendarGet: "hub.integrations.calendar.get";
|
|
1495
|
+
readonly driveSearch: "hub.integrations.drive.search";
|
|
1496
|
+
readonly driveGet: "hub.integrations.drive.get";
|
|
1497
|
+
readonly orgSettingsGet: "hub.org-settings.get";
|
|
1498
|
+
readonly orgSettingsCreate: "hub.org-settings.create";
|
|
1499
|
+
readonly orgSettingsUpdate: "hub.org-settings.update";
|
|
1500
|
+
readonly featureFlagsCheck: "hub.feature-flags.check";
|
|
1501
|
+
};
|
|
1502
|
+
interface OnboardingGuideStep {
|
|
1503
|
+
id: string;
|
|
1504
|
+
title: string;
|
|
1505
|
+
subtitle: string;
|
|
1506
|
+
description: string;
|
|
1507
|
+
instructions: string;
|
|
1508
|
+
user_action: string;
|
|
1509
|
+
details: unknown;
|
|
1510
|
+
}
|
|
1511
|
+
interface BoardSummary {
|
|
1512
|
+
id: string;
|
|
1513
|
+
title: string;
|
|
1514
|
+
boardType: string;
|
|
1515
|
+
createdAt: string;
|
|
1516
|
+
updatedAt?: string;
|
|
1517
|
+
description?: string;
|
|
1518
|
+
}
|
|
1519
|
+
interface BoardDetails extends BoardSummary {
|
|
1520
|
+
content?: unknown;
|
|
1521
|
+
contentRef?: string;
|
|
1522
|
+
elementCount?: number;
|
|
1523
|
+
}
|
|
1524
|
+
interface MarkdownDocumentSummary {
|
|
1525
|
+
id: string;
|
|
1526
|
+
filename: string;
|
|
1527
|
+
title: string;
|
|
1528
|
+
createdAt: string;
|
|
1529
|
+
}
|
|
1530
|
+
interface MarkdownDocumentDetails extends MarkdownDocumentSummary {
|
|
1531
|
+
content: string;
|
|
1532
|
+
size?: number;
|
|
1533
|
+
}
|
|
1534
|
+
interface AddFieldRequest {
|
|
1535
|
+
orgId: string;
|
|
1536
|
+
department: string;
|
|
1537
|
+
fieldName: string;
|
|
1538
|
+
displayName: string;
|
|
1539
|
+
fieldType: string;
|
|
1540
|
+
required?: boolean;
|
|
1541
|
+
description?: string;
|
|
1542
|
+
}
|
|
1543
|
+
interface AddFieldResponse {
|
|
1544
|
+
fieldName: string;
|
|
1545
|
+
metadata: ResponseMetadata;
|
|
1546
|
+
}
|
|
1547
|
+
interface DeleteFieldRequest {
|
|
1548
|
+
orgId: string;
|
|
1549
|
+
fieldName: string;
|
|
1550
|
+
}
|
|
1551
|
+
interface DeleteFieldResponse {
|
|
1552
|
+
fieldName: string;
|
|
1553
|
+
metadata: ResponseMetadata;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
export { type APIError, type APIResponse, type AddFieldRequest, type AddFieldResponse, type Address, AdminOrgCreate, AdminOrgCreated, AdminOrgDelete, AdminOrgGet, AdminOrgGetByDomain, AdminOrgGetInfo, AdminOrgList, AdminOrgListByMetadata, AdminOrgRolesCreate, AdminOrgRolesDelete, AdminOrgRolesGet, AdminOrgRolesUpdate, AdminOrgUpdate, AdminTeamsCreate, AdminTeamsGetForOrg, AdminTeamsGetOne, AdminTeamsUpdateOnboarding, AdminUsersCreate, AdminUsersDelete, AdminUsersGet, AdminUsersGetForOrg, AdminUsersGetOne, AdminUsersGetOneByEmail, AdminUsersGetSettings, AdminUsersUpdate, AdminUsersUpdateSettings, type AgentInfo, type AgentInput, type AgentResult, type AggregateType, AggregateTypeAverage, AggregateTypeCount, AggregateTypeDistinct, AggregateTypeMax, AggregateTypeMin, AggregateTypeSum, type AnalyticsRequest, type AnalyticsResponse, type AzureSettings, type BoardDetails, type BoardSummary, type CalendarEvent, type ChartSettings, type ChartType, ChartTypeBar, ChartTypeDoughnut, ChartTypeLine, ChartTypeMetic, ChartTypePie, type ChatMetricsResponse, type ConnectIntegrationRequest, type ConnectIntegrationResponse, type DataType, DataTypeArray, DataTypeBoolean, DataTypeDate, DataTypeFile, DataTypeFloat, DataTypeInputFields, DataTypeInt, DataTypeJSON, DataTypeObjectList, DataTypeString, type DateFilter, type DateValue, type DeleteFieldRequest, type DeleteFieldResponse, type DisconnectIntegrationRequest, type DisconnectIntegrationResponse, type DocumentAnalysisResult, type DocumentMetadata, type EmailAttachment, type EmailDetails, type EmailSummary, type EmployeeExperienceChat, type EventAttendee, type FileDetails, type FilePermission, type FileSummary, type GetCalendarEventRequest, type GetCalendarEventResponse, type GetEmailRequest, type GetEmailResponse, type GetEmailThreadRequest, type GetEmailThreadResponse, type GetUserIntegrationRequest, type GetUserIntegrationResponse, HubSubjects, type IntegrationCallbackRequest, type IntegrationCallbackResponse, type IntegrationMode, IntegrationModeDomainDelegation, IntegrationModeServicePrincipal, type IntegrationProvider, IntegrationProviderGoogle, IntegrationProviderMicrosoft, type IntegrationProviderTS, type IntegrationStatus, IntegrationStatusActive, IntegrationStatusError, IntegrationStatusExpired, IntegrationStatusRevoked, type IntegrationStatusTS, type IntegrationType, IntegrationTypeCalendar, IntegrationTypeDrive, IntegrationTypeEmail, type IntegrationTypeTS, type Invite, type InviteInput, type InviteResponse, type InviteSentStatus, type InviteStatus, InviteStatusAccepted, InviteStatusExpired, type InviteStatusOptionTS, InviteStatusPending, InviteStatusRevoked, type InviteStatusTS, InviteStatuses, type InvitesResult, type JSONSchema, type KGEdge, type KGNode, type KnowledgeGraphInfo, type KnowledgeInput, type KnowledgeResult, type ListCalendarEventsRequest, type ListCalendarEventsResponse, type ListInvitesResponse, type ListOrgIntegrationsRequest, type ListOrgIntegrationsResponse, type ListOrgRolesResponse, type ListOrgsResponse, type ListServiceDeskAdminsRequest, type ListServiceDeskAdminsResponse, type ListUserIntegrationsRequest, type ListUserIntegrationsResponse, type ListUsersResponse, type MarkdownDocumentDetails, type MarkdownDocumentSummary, type MetricResult, type NotificationPreferences, type OnboardingCompleteResult, type OnboardingGuideStep, type OnboardingState, type OnboardingStateResponse, type OnboardingStatus, OnboardingStatusCompleted, OnboardingStatusInProgress, OnboardingStatusLegacy, type OnboardingStatusOptionTS, OnboardingStatusPending, OnboardingStatusSkipped, type OnboardingStatusTS, OnboardingStatuses, type OnboardingStep, type Org, type OrgInfo, type OrgInfoResponse, type OrgInput, type OrgIntegration, type OrgOnboarding, type OrgProvisioning, type OrgResponse, type OrgResult, type OrgRole, type OrgRoleResponse, type OrgSettings, type OrgSettingsRequest, type OrgSettingsResponse, type OrgSize, OrgSizeEnterprise, OrgSizeLarge, OrgSizeMedium, type OrgSizeOptionTS, OrgSizeSmall, OrgSizeSolo, type OrgSizeTS, OrgSizes, type OrgStatus, OrgStatusActive, type OrgStatusOptionTS, OrgStatusSuspended, type OrgStatusTS, OrgStatuses, type OrgSubscription, type OrgSubscriptionStatus, OrgSubscriptionStatusActive, OrgSubscriptionStatusCancelled, type OrgSubscriptionStatusOptionTS, OrgSubscriptionStatusPastDue, type OrgSubscriptionStatusTS, OrgSubscriptionStatusTrialing, OrgSubscriptionStatusUnpaid, OrgSubscriptionStatuses, type OrgTemplate, type OrgType, OrgTypeEnterprise, type OrgTypeOptionTS, OrgTypeSelfServe, type OrgTypeTS, OrgTypes, type PaymentSessionInput, type PaymentSessionResult, type Permission, type ProductName, ProductNameDocBrain, ProductNameDoneProjects, ProductNameFinance, ProductNameHub, ProductNameLegal, type ProductNameOptionTS, ProductNamePublicSector, ProductNameQuickMind, ProductNameRealEstate, ProductNameShopAssist, type ProductNameTS, ProductNames, type ProvisioningStatus, ProvisioningStatusCompleted, ProvisioningStatusFailed, type ProvisioningStatusOptionTS, ProvisioningStatusPending, ProvisioningStatusRunning, type ProvisioningStatusTS, ProvisioningStatuses, type RefreshIntegrationRequest, type RefreshIntegrationResponse, type ResponseMetadata, type RunEmailTriageRequest, type RunEmailTriageResponse, type SearchEmailsRequest, type SearchEmailsResponse, type ServiceDeskAdmin, type ServiceEvent, type ServiceEventMetadata, type SubscriptionPlatform, SubscriptionPlatformCustom, SubscriptionPlatformStripe, type SystemApp, SystemAppAdmin, SystemAppAnalytics, SystemAppCRM, SystemAppDocumentProcessor, SystemAppHelpdesk, SystemAppKnowledgeGraph, SystemAppMarketing, type SystemAppOptionTS, type SystemAppTS, SystemAppWorkflow, SystemApps, type TaskMetrics, type Team, type ThemeOptionTS, ThemeOptions, type TokenData, type UpdateTriageEnabledRequest, type UpdateTriageEnabledResponse, type UpdateUserSettingsRequest, type UpdateUserStatusRequest, type UpdateUserStatusResponse, UpdateUserStatusSubject, type User, type UserIntegration, type UserOnboarding, type UserOrgAccess, type UserResponse, type UserSettings, type UserSettingsResponse, type UserSource, UserSourceAPI, UserSourceInvite, type UserSourceOptionTS, UserSourceSSO, UserSourceSignup, type UserSourceTS, UserSources, type UserStatusTS, type Variable, type VariableReference, type VariableScope, VariableScopeEdge, VariableScopeGlobal, VariableScopeNode, type VariableValidation, type Widget, type WidgetType, WidgetTypeAccounts, WidgetTypeActivities, WidgetTypeCalendar, WidgetTypeChart, WidgetTypeContacts, WidgetTypeEmail, WidgetTypeFiles, WidgetTypeLeads, WidgetTypeNotes, WidgetTypeOpportunities, WidgetTypeOrders, WidgetTypeTasks, type WorkspaceInput, type WorkspaceResult };
|