@gravity-rail/sdk 0.13.0 → 0.14.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 (35) hide show
  1. package/dist/{chunk-FSSXKQR5.js → chunk-GP6ICMWF.js} +2 -1
  2. package/dist/chunk-GP6ICMWF.js.map +1 -0
  3. package/dist/{chunk-MUEM2BLY.js → chunk-K4MDFGMO.js} +325 -26
  4. package/dist/chunk-K4MDFGMO.js.map +1 -0
  5. package/dist/{client-BGs2ArRW.d.ts → client-CKudWmUT.d.cts} +745 -50
  6. package/dist/{client-DlndHSuK.d.cts → client-EAvh7w0y.d.ts} +745 -50
  7. package/dist/helpers.cjs.map +1 -1
  8. package/dist/helpers.d.cts +2 -2
  9. package/dist/helpers.d.ts +2 -2
  10. package/dist/helpers.js +1 -1
  11. package/dist/index.cjs +334 -31
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +6 -7
  14. package/dist/index.d.ts +6 -7
  15. package/dist/index.js +17 -10
  16. package/dist/index.js.map +1 -1
  17. package/dist/internal.cjs +319 -24
  18. package/dist/internal.cjs.map +1 -1
  19. package/dist/internal.d.cts +411 -142
  20. package/dist/internal.d.ts +411 -142
  21. package/dist/internal.js +9 -3
  22. package/dist/internal.js.map +1 -1
  23. package/dist/{revision-state-DV77AxSI.d.ts → revision-state-BUBt9Rir.d.ts} +9 -4
  24. package/dist/{revision-state-Dz5sHCgJ.d.cts → revision-state-CY4LBdfa.d.cts} +9 -4
  25. package/dist/schemas.cjs +38 -1
  26. package/dist/schemas.cjs.map +1 -1
  27. package/dist/schemas.d.cts +68 -3
  28. package/dist/schemas.d.ts +68 -3
  29. package/dist/schemas.js +36 -1
  30. package/dist/schemas.js.map +1 -1
  31. package/dist/{tasks-Bz1JR0r0.d.cts → tasks-iRrM4SaF.d.cts} +43 -3
  32. package/dist/{tasks-Bz1JR0r0.d.ts → tasks-iRrM4SaF.d.ts} +43 -3
  33. package/package.json +2 -2
  34. package/dist/chunk-FSSXKQR5.js.map +0 -1
  35. package/dist/chunk-MUEM2BLY.js.map +0 -1
@@ -692,6 +692,7 @@ interface BusinessProfileResponse {
692
692
  authorizedReps?: AuthorizedRep[];
693
693
  address?: Address | null;
694
694
  failureReasons?: string[];
695
+ profileRecoveryFailed?: boolean;
695
696
  }
696
697
  type BusinessProfileResponseEvaluationStatus = typeof BusinessProfileResponseEvaluationStatus[keyof typeof BusinessProfileResponseEvaluationStatus] | null;
697
698
  declare const BusinessProfileResponseEvaluationStatus: {
@@ -1325,6 +1326,34 @@ interface AccountLookupResponse {
1325
1326
  accountUuid?: string;
1326
1327
  name?: string | null;
1327
1328
  }
1329
+ interface AccountExternalIdentityResponse {
1330
+ id: number;
1331
+ accountId: number;
1332
+ providerType: string;
1333
+ tenantPresent: boolean;
1334
+ externalIdHash: string;
1335
+ createdAt: string;
1336
+ }
1337
+ interface UnlinkExternalIdentityResponse {
1338
+ id: number;
1339
+ accountId: number;
1340
+ providerType: string;
1341
+ status: string;
1342
+ }
1343
+ interface OrgScopedIdentityResponse {
1344
+ orgExternalIdentityId: number;
1345
+ organizationId: number;
1346
+ orgAccountId: number;
1347
+ providerType: string;
1348
+ subjectHash: string;
1349
+ linksToThisAccount: boolean;
1350
+ }
1351
+ interface AccountIdentityResolutionResponse {
1352
+ accountId: number;
1353
+ hasEmailFallback: boolean;
1354
+ orgScoped: OrgScopedIdentityResponse[];
1355
+ accountScoped: AccountExternalIdentityResponse[];
1356
+ }
1328
1357
  interface CreateAccountOrgMembershipRequest {
1329
1358
  organizationId: number;
1330
1359
  role: OrgMemberRole;
@@ -1846,6 +1875,7 @@ interface MemberRoleResponse {
1846
1875
  folderAccess?: MemberRoleFolderAccessResponse[];
1847
1876
  calendarAccess?: MemberRoleCalendarAccessResponse[];
1848
1877
  memberCount?: number;
1878
+ isDefaultForNewMembers?: boolean;
1849
1879
  createdAt: string;
1850
1880
  updatedAt: string;
1851
1881
  }
@@ -2654,6 +2684,9 @@ declare const EventRuleActionType$1: {
2654
2684
  readonly 'assistant:message': "assistant:message";
2655
2685
  readonly 'form:update_field': "form:update_field";
2656
2686
  readonly 'record:cel_mutate': "record:cel_mutate";
2687
+ readonly 'record:copy_fields': "record:copy_fields";
2688
+ readonly 'record:upsert_linked': "record:upsert_linked";
2689
+ readonly 'record:verify_fields': "record:verify_fields";
2657
2690
  readonly 'message:validation': "message:validation";
2658
2691
  readonly 'chat:create': "chat:create";
2659
2692
  readonly 'chat:continue': "chat:continue";
@@ -2704,6 +2737,7 @@ declare const EventRuleEventType$1: {
2704
2737
  readonly 'call:completed': "call:completed";
2705
2738
  readonly 'call:summary': "call:summary";
2706
2739
  readonly 'voicemail:received': "voicemail:received";
2740
+ readonly 'fax:received': "fax:received";
2707
2741
  };
2708
2742
  type EventRuleObjectType$1 = typeof EventRuleObjectType$1[keyof typeof EventRuleObjectType$1];
2709
2743
  declare const EventRuleObjectType$1: {
@@ -2719,6 +2753,7 @@ declare const EventRuleObjectType$1: {
2719
2753
  readonly journey: "journey";
2720
2754
  readonly call: "call";
2721
2755
  readonly voicemail: "voicemail";
2756
+ readonly fax: "fax";
2722
2757
  };
2723
2758
  interface EventRuleResponse$1 {
2724
2759
  id: number;
@@ -3120,7 +3155,8 @@ declare enum EventRuleObjectType {
3120
3155
  CALENDAR_EVENT_TYPE = "calendar_event_type",
3121
3156
  JOURNEY = "journey",
3122
3157
  CALL = "call",
3123
- VOICEMAIL = "voicemail"
3158
+ VOICEMAIL = "voicemail",
3159
+ FAX = "fax"
3124
3160
  }
3125
3161
  declare enum EventRuleEventType {
3126
3162
  TASK_EXECUTE = "task:execute",
@@ -3151,7 +3187,8 @@ declare enum EventRuleEventType {
3151
3187
  CALL_STARTED = "call:started",
3152
3188
  CALL_COMPLETED = "call:completed",
3153
3189
  CALL_SUMMARY = "call:summary",
3154
- VOICEMAIL_RECEIVED = "voicemail:received"
3190
+ VOICEMAIL_RECEIVED = "voicemail:received",
3191
+ FAX_RECEIVED = "fax:received"
3155
3192
  }
3156
3193
  declare enum EventRuleActionType {
3157
3194
  MEMBER_NOTIFY_ACTION = "member:notify",
@@ -3162,6 +3199,9 @@ declare enum EventRuleActionType {
3162
3199
  ASSISTANT_MESSAGE = "assistant:message",
3163
3200
  FORM_FIELD_UPDATE = "form:update_field",
3164
3201
  CEL_MUTATE = "record:cel_mutate",
3202
+ RECORD_COPY_FIELDS = "record:copy_fields",
3203
+ RECORD_UPSERT_LINKED = "record:upsert_linked",
3204
+ RECORD_VERIFY_FIELDS = "record:verify_fields",
3165
3205
  MESSAGE_VALIDATION = "message:validation",
3166
3206
  CHAT_CREATE = "chat:create",
3167
3207
  CHAT_CONTINUE = "chat:continue",
@@ -4399,4 +4439,4 @@ type DeleteTaskInput = z.infer<typeof DeleteTaskSchema>;
4399
4439
  type ArchiveTaskInput = z.infer<typeof ArchiveTaskSchema>;
4400
4440
  type UnarchiveTaskInput = z.infer<typeof UnarchiveTaskSchema>;
4401
4441
 
4402
- export { type CalendarEventFormData as $, AccessLevel as A, AttendeeStatus as B, type AuthorizedRep as C, DataFieldType as D, EventRuleEventType as E, type AvailabilityCheck as F, type AvailabilityResponse as G, type AvailableSlotsRequest as H, type AvailableSlotsResponse as I, type BotSortField as J, type BulkCreateDataRecordRequest as K, type BulkCreateDataRecordResponse as L, type BulkCreateMembersRequest as M, type BulkCreateMembersResponse as N, type BulkMemberItem as O, type BulkMemberResult as P, type QueryPredicate as Q, BulkMemberResultStatus as R, type SchemaField as S, type BulkRecordResult as T, BusinessIndustry as U, type BusinessInfo as V, type BusinessProfileCancelResponse as W, type BusinessProfileSubmitResponse as X, BusinessType as Y, type Calendar as Z, type EventResponse as _, EventRuleActionType as a, type DataTypeMemberRoleAccessInput as a$, type CalendarEventSortField as a0, CalendarEventStatus as a1, type EventTypeResponse as a2, type CalendarEventTypeFormData as a3, type CalendarEventsQueryParams as a4, type CalendarFormData as a5, CalendarPermissionType as a6, type CalendarResponse as a7, type CalendarSchedule as a8, CalendarScheduleAvailabilityType as a9, type CredentialChangeInviteResponse as aA, type CredentialChangeRequestResponse as aB, type CredentialChangeVerifyResponse as aC, type CredentialType as aD, type CurrentMemberResponse as aE, type CurrentOrgMember as aF, type CursorPaginatedResponse as aG, DataCategory as aH, type DataField as aI, type DataIntegrityReportItem as aJ, type DataRecordResponse as aK, type DataRecordAssociationFormData as aL, type DataRecordFieldWarning as aM, type DataRecordFilterResponse as aN, type DataRecordFilterFormData as aO, type DataRecordFilterWithQuery as aP, type DataRecordFormData as aQ, type DataRecordReportItem as aR, type DataRecordRetirementResponse as aS, DataRecordRetirementResponseReason as aT, type DataRecordUpdateResponse as aU, type DataRecordWithAccessMode as aV, type DataRecordsPaginatedResponse as aW, DataSensitivity as aX, type DataTypeResponse as aY, type DataTypeExportItem as aZ, type DataTypeFormData as a_, type CalendarScheduleFormData as aa, CalendarScheduleRecurrence as ab, type CalendarScheduleResponse as ac, CalendarSource as ad, type CancelCredentialChangeInviteResponse as ae, type CancelCredentialChangeResponse as af, type CapabilityRequirementFinding as ag, type CapabilityStatus as ah, type ChatContinueActionParams as ai, type ChatCreateActionParams as aj, type ChatPauseActionParams as ak, type ChatSortField as al, type ChatSummarizeActionParams as am, type ConcludeAssignmentActionParams as an, type CreateAccountOrgMembershipRequest as ao, type CreateAccountOrgMembershipResponse as ap, type CreateAgentRequest as aq, type CreateAnonymousMemberRequest as ar, type CreateCredentialChangeInviteRequest as as, type CreateDataRecordFilterRequest as at, type CreateOrganizationRequest as au, type CreateRoutineRequest as av, type CreateSignupResponse as aw, type CreateWorkspaceMemberRequest as ax, type CredentialChangeInviteConfirmResponse as ay, type CredentialChangeInviteDetailsResponse as az, type AccountResponse as b, type MemberFilterFormData as b$, type DataTypeMemberRoleAccessResponse as b0, DataTypeRecordScope as b1, type DataTypeSortField as b2, type DeleteAccountOrgMembershipResponse as b3, type DetailedAccount as b4, type DuplicateAccountInfo as b5, type EcwRefreshMemberEncountersActionParams as b6, type EmailDisableImpactResponse as b7, EmailDnsRecordType as b8, type EmailDomainConfigResponse as b9, type GoogleCalendarInsufficientScopesResponse as bA, type GoogleCalendarStatusResponse as bB, type ICalFeedTokenResponse as bC, type ICalFeedUrlResponse as bD, type IdentityConflictPolicy as bE, IndexStatus as bF, type IndexStatusResponse as bG, type InvokeCustomToolActionParams as bH, JobPosition as bI, type JourneyEnrollActionParams as bJ, type JourneySortField as bK, type LibModelsGlbResponsesOrganizationResponsesSSOConfigResponse as bL, type LinkCalendarRequest as bM, type LinkCalendarResponse as bN, type LoginRequest as bO, type LoginResponse as bP, type LogoUploadRequest as bQ, type LogoUploadResponse as bR, MASKED_SECRET_SENTINEL as bS, type McpServerSortField as bT, type WorkspaceMemberResponse as bU, type MemberCredentialResponse as bV, type MemberFieldResponse as bW, type MemberFieldDefinitionResponse as bX, type MemberFieldDefinitionListResponse as bY, type MemberFieldListResponse as bZ, type MemberFilterResponse as b_, type EmailSendActionParams as ba, type EmailVerificationResponse as bb, type EnumOption as bc, type ErrorResponse as bd, type EventActionMapping as be, type EventActionMappingsResponse as bf, type EventRule as bg, type EventRuleExportItem as bh, type EventRuleFormData as bi, type EventRuleInput as bj, EventRuleObjectType as bk, type EventRuleResponse as bl, type EventRunSortField as bm, type ExpireAnonymousMemberRequest as bn, type ExternalAttendeeData as bo, type FileSortField as bp, type FormFieldUpdateActionParams as bq, type GenerateRecoveryCodesRequest as br, type BusinessProfileResponse as bs, type CalendarResponse$1 as bt, type CalendarScheduleResponse$1 as bu, type MemoryListResponse as bv, type MemoryResponse$1 as bw, type OrgDomainResponse as bx, type OwnershipDnsRecord as by, type GoogleCalendarInfo as bz, type AccountFormData as c, PERMISSION_ADMIN as c$, type MemberFilterWithQuery as c0, type MemberFormData as c1, type MemberImportConflictInfo as c2, type MemberImportIdentitySnapshot as c3, type MemberImportMatchInfo as c4, MemberImportMatchInfoMatchType as c5, type MemberImportPreviewResponse as c6, type MemberImportPreviewRow as c7, MemberImportPreviewRowAction as c8, type MemberImportPreviewSummary as c9, type MembersQueryParams as cA, type MemoryItem as cB, type MemoryResponse as cC, type MemoryType as cD, type MergeMembersRequest as cE, type MergeMembersResponse as cF, type MessageValidationActionParams as cG, type MilestoneSortField as cH, type MissingMembershipItem as cI, type MondayColumnMapping as cJ, type MondayLookupType as cK, type MondayRefreshActionParams as cL, type MondayRefreshColumnMapping as cM, type MondayUpsertItemActionParams as cN, type MondayUpsertMode as cO, type MultiMatchBehavior as cP, type NormalizeMemberRequest as cQ, type NormalizeMemberResponse as cR, type OIDCAdminConfigView as cS, OIDCAdminConfigViewProviderType as cT, type ObjectPermission as cU, type ObjectPermissionFlags as cV, type OrgMember as cW, type OrgMemberListResponse as cX, type OrgMemberRole as cY, type OrganizationResponse as cZ, type OwnershipVerificationResponse as c_, type MemberImportStreamConflict as ca, type MemberImportStreamEvent as cb, type MemberLabelResponse as cc, type MemberLabelActionParams as cd, type MemberLabelFormData as ce, type MemberMemoriesResponse as cf, type MemberMessageActivity as cg, type MemberOrgView as ch, type MemberReportItem as ci, type MemberRoleResponse as cj, type MemberRoleCalendarAccessResponse as ck, type MemberRoleDataTypeAccessResponse as cl, type MemberRoleFileAccessResponse as cm, type MemberRoleFolderAccessResponse as cn, type MemberRoleFormData as co, type MemberRoleInboxAccessResponse as cp, type MemberRoleSiteAccessResponse as cq, type MemberRoleTaskAccess as cr, type MemberRoleWorkflowAccessResponse as cs, type MemberSortField as ct, type MemberSummary as cu, type MemberSyncLink as cv, MemberType as cw, type MemberUpsertActionParams as cx, type MemberUpsertBehavior as cy, type MemberWorkspaceInfo as cz, type AccountLookupResponse as d, type RoutineRunResponse as d$, PERMISSION_CREATE as d0, PERMISSION_DELETE as d1, PERMISSION_EDIT as d2, PERMISSION_GEOLOCATE as d3, PERMISSION_LIST as d4, PERMISSION_LIST_ALL as d5, PERMISSION_NONE as d6, PERMISSION_USE as d7, PERMISSION_VERIFY as d8, type PageSortField as d9, type QueryMatchAll as dA, type QueryMetric as dB, type QueryNot as dC, type QueryNowValue as dD, type QueryOr as dE, type QueryRangeBound as dF, type QueryRangeValue as dG, type QueryRecordFieldInfo as dH, type QueryRecordMatch as dI, type QueryRecordSelection as dJ, type QueryRelationMatch as dK, type QueryRunMode as dL, type QuerySavedFilterRef as dM, type QueryScalar as dN, type QuerySortKey as dO, type QuerySubQueryRef as dP, type QueryTemporalValue as dQ, type QueryValue as dR, type RecoveryCodeResponse as dS, Region as dT, RegistrationIdentifier as dU, type RequestCredentialChangeRequest as dV, type RequestMagicLinkRequest as dW, type RequestMagicLinkResponse as dX, type ResolveAnonymousMemberRequest as dY, type Routine as dZ, type RoutineResponse as d_, type PaginatedResponse as da, type PendingAnonymousMembersResponse as db, type PendingCredentialChangeResponse as dc, type PendingCredentialChangeInviteResponse as dd, type PhoneCallActionParams as de, type PlayAudioActionParams as df, QUERY_VALUELESS_OPS as dg, type QualificationSortField as dh, type QueryAggregateOp as di, type QueryAggregatePredicate as dj, type QueryAggregateSpec as dk, type QueryAnd as dl, type QueryCompare as dm, type QueryComparisonOp as dn, type QueryCostInfo as dp, type QueryDataTypeInfo as dq, type QueryDayBoundaryValue as dr, type QueryDaysAgoValue as ds, type QueryDaysFromNowValue as dt, type QueryEntityType as du, type QueryEnumOption as dv, type QueryFieldInfo as dw, type QueryFieldsResponse as dx, type QueryGroupBy as dy, type QueryIR as dz, type AccountReportItem as e, type VerifyWebAuthnSetupRequest as e$, type RoutineRunStatus as e0, type RoutineRunsQueryParams as e1, type RoutineScheduleMode as e2, type RoutineSortField as e3, type RoutineVisibility as e4, type RoutineWorkflowAccessMissingRoleResponse as e5, type RoutineWorkflowAccessPreviewRequest as e6, type RoutineWorkflowAccessPreviewResponse as e7, type RoutineWorkflowAccessWarningResponse as e8, type RoutinesQueryParams as e9, type TaskExportDataTypeRelation as eA, type TaskExportEventRuleRelation as eB, type TaskSortField as eC, type TestWebhookRequest as eD, type TestWebhookResponse as eE, type TimeSlot as eF, type TwoFactorMethod as eG, type TwoFactorOperationResponse as eH, type TwoFactorStatus as eI, type UnlinkCalendarResponse as eJ, type UpdateAgentRequest as eK, type UpdateAttendeeRequest as eL, type UpdateDataRecordFilterRequest as eM, type UpdateEventRuleFormData as eN, type UpdateOrgMemberRequest as eO, type UpdateOrganizationRequest as eP, type UpdateRoutineRequest as eQ, type UpdateTwoFactorMethodRequest as eR, type UpdateWorkspaceMemberRequest as eS, type ValidateMagicLinkRequest as eT, type ValidateMagicLinkResponse as eU, type ValidateQueryResponse as eV, type VerifyCodeRequest as eW, type VerifyCodeResponse as eX, type VerifyCredentialChangeRequest as eY, type VerifyEmailRequest as eZ, type VerifyTOTPSetupRequest as e_, type RuleExecutionSortField as ea, type RuleExecutionsQueryParams as eb, type RunQueryRequest as ec, type RunQueryResponse as ed, type SendLoginCodeResponse as ee, type SSOConfigData as ef, type SchedulePreviewRequest as eg, type SchedulePreviewResponse as eh, Scope as ei, type SendEmailVerificationRequest as ej, type SessionExchangeRequest as ek, type SessionExchangeResponse as el, type SetupTOTPRequest as em, type SetupWebAuthnRequest as en, type SignupAccountResponse as eo, type SignupMemberResponse as ep, type SiteDisableImpactResponse as eq, SiteDnsRecordType as er, type SiteDomainConfigResponse as es, type SiteSortField as et, type SiteVerificationResponse as eu, type SmsSendActionParams as ev, type SortOrder as ew, type SwitchTaskActionParams as ex, type SyncCalendarResponse as ey, type TOTPSetupResponse as ez, type AccountSortField as f, type AdminAccountOrgMembershipResponse as f$, type WebhookActionParams as f0, type WebhookLogSortField as f1, type WebhookLogsQueryParams as f2, type WorkflowSortField as f3, type WorkspaceMemberCountResponse as f4, type WorkspaceMemberCountResponseActiveByType as f5, type WorkspaceSortField as f6, decodePermissions as f7, encodePermissions as f8, eventRuleActionParams as f9, GetTaskSchema as fA, type ListInquiriesInput as fB, ListInquiriesSchema as fC, type ListMilestonesInput as fD, ListMilestonesSchema as fE, type ListTasksInput as fF, ListTasksSchema as fG, type MilestoneFormData as fH, MilestoneFormDataSchema as fI, MilestoneGoalFormDataSchema as fJ, type TaskFormData as fK, TaskFormDataSchema as fL, type UnarchiveTaskInput as fM, UnarchiveTaskSchema as fN, type UpdateInquiryInput as fO, UpdateInquiryRequestSchema as fP, UpdateInquirySchema as fQ, type UpdateMilestoneInput as fR, UpdateMilestoneSchema as fS, type UpdateTaskInput as fT, UpdateTaskSchema as fU, DeclaredDataUse as fV, type AccountDataExport as fW, type AdminAccountResponse as fX, type AdminAccountFormData as fY, type AdminAccountMembership as fZ, type AdminAccountMembershipResponse as f_, type AbilityData as fa, AbilityDataSchema as fb, AnonymousInquiryFormSchema as fc, type ArchiveTaskInput as fd, ArchiveTaskSchema as fe, type ChildTaskFormData as ff, ChildTaskFormDataSchema as fg, type CreateInquiryInput as fh, CreateInquirySchema as fi, type CreateMilestoneInput as fj, CreateMilestoneSchema as fk, type CreateTaskInput as fl, CreateTaskSchema as fm, type DeleteInquiryInput as fn, DeleteInquirySchema as fo, type DeleteMilestoneInput as fp, DeleteMilestoneSchema as fq, type DeleteTaskInput as fr, DeleteTaskSchema as fs, type EnrichInquiryInput as ft, EnrichInquirySchema as fu, type GetInquiryInput as fv, GetInquirySchema as fw, type GetMilestoneInput as fx, GetMilestoneSchema as fy, type GetTaskInput as fz, type AccountState as g, type AdminOrganization as g0, type AdminOrganizationResponse as g1, type AdminWorkspaceMemberFormData as g2, type ConsentRecordExport as g3, type DataExportResponse as g4, type DeletionCancelResponse as g5, type DeletionRequestResponse as g6, type TwoFactorMethodResponse$1 as g7, type TwoFactorStatusResponse$1 as g8, type OIDCAdminConfigInput as g9, type OrgMembershipExport as ga, type TwoFactorMethodResponse as gb, type TwoFactorMethodType as gc, type TwoFactorStatusResponse as gd, type WebAuthnRegistrationResponse as ge, type WorkspaceMembershipExport as gf, type EnumOption$1 as gg, type EventRuleResponse$1 as gh, type OrgDomainListResponse as gi, type EmailDnsRecord as gj, type EmailDomainConfigGetResponse as gk, type SiteDnsRecord as gl, type SiteDomainConfigGetResponse as gm, type Address as h, type AdminWorkspaceSortField as i, type AgentResponse as j, type AgentConfigResponse as k, type AgentConfigFormData as l, type AgentMemoryConfig as m, type AgentSortField as n, type AnonymousInteractionResponse as o, type AnonymousMemberResolutionResponse as p, type AnonymousMemberResolutionStatus as q, type ApiKeyResponse as r, type ApiKeyCreatedResponse as s, type ApiKeyFormData as t, type ApiKeyScope as u, type ApiKeyScopesResponse as v, type AssignmentSortField as w, type AssistantMessageActionParams as x, type AttendeeResponse as y, AttendeeResponseStatus as z };
4442
+ export { type CalendarEventFormData as $, AccessLevel as A, AttendeeStatus as B, type AuthorizedRep as C, DataFieldType as D, EventRuleEventType as E, type AvailabilityCheck as F, type AvailabilityResponse as G, type AvailableSlotsRequest as H, type AvailableSlotsResponse as I, type BotSortField as J, type BulkCreateDataRecordRequest as K, type BulkCreateDataRecordResponse as L, type BulkCreateMembersRequest as M, type BulkCreateMembersResponse as N, type BulkMemberItem as O, type BulkMemberResult as P, type QueryPredicate as Q, BulkMemberResultStatus as R, type SchemaField as S, type BulkRecordResult as T, BusinessIndustry as U, type BusinessInfo as V, type BusinessProfileCancelResponse as W, type BusinessProfileSubmitResponse as X, BusinessType as Y, type Calendar as Z, type EventResponse as _, EventRuleActionType as a, type DataTypeMemberRoleAccessInput as a$, type CalendarEventSortField as a0, CalendarEventStatus as a1, type EventTypeResponse as a2, type CalendarEventTypeFormData as a3, type CalendarEventsQueryParams as a4, type CalendarFormData as a5, CalendarPermissionType as a6, type CalendarResponse as a7, type CalendarSchedule as a8, CalendarScheduleAvailabilityType as a9, type CredentialChangeInviteResponse as aA, type CredentialChangeRequestResponse as aB, type CredentialChangeVerifyResponse as aC, type CredentialType as aD, type CurrentMemberResponse as aE, type CurrentOrgMember as aF, type CursorPaginatedResponse as aG, DataCategory as aH, type DataField as aI, type DataIntegrityReportItem as aJ, type DataRecordResponse as aK, type DataRecordAssociationFormData as aL, type DataRecordFieldWarning as aM, type DataRecordFilterResponse as aN, type DataRecordFilterFormData as aO, type DataRecordFilterWithQuery as aP, type DataRecordFormData as aQ, type DataRecordReportItem as aR, type DataRecordRetirementResponse as aS, DataRecordRetirementResponseReason as aT, type DataRecordUpdateResponse as aU, type DataRecordWithAccessMode as aV, type DataRecordsPaginatedResponse as aW, DataSensitivity as aX, type DataTypeResponse as aY, type DataTypeExportItem as aZ, type DataTypeFormData as a_, type CalendarScheduleFormData as aa, CalendarScheduleRecurrence as ab, type CalendarScheduleResponse as ac, CalendarSource as ad, type CancelCredentialChangeInviteResponse as ae, type CancelCredentialChangeResponse as af, type CapabilityRequirementFinding as ag, type CapabilityStatus as ah, type ChatContinueActionParams as ai, type ChatCreateActionParams as aj, type ChatPauseActionParams as ak, type ChatSortField as al, type ChatSummarizeActionParams as am, type ConcludeAssignmentActionParams as an, type CreateAccountOrgMembershipRequest as ao, type CreateAccountOrgMembershipResponse as ap, type CreateAgentRequest as aq, type CreateAnonymousMemberRequest as ar, type CreateCredentialChangeInviteRequest as as, type CreateDataRecordFilterRequest as at, type CreateOrganizationRequest as au, type CreateRoutineRequest as av, type CreateSignupResponse as aw, type CreateWorkspaceMemberRequest as ax, type CredentialChangeInviteConfirmResponse as ay, type CredentialChangeInviteDetailsResponse as az, type AccountResponse as b, type MemberFilterFormData as b$, type DataTypeMemberRoleAccessResponse as b0, DataTypeRecordScope as b1, type DataTypeSortField as b2, type DeleteAccountOrgMembershipResponse as b3, type DetailedAccount as b4, type DuplicateAccountInfo as b5, type EcwRefreshMemberEncountersActionParams as b6, type EmailDisableImpactResponse as b7, EmailDnsRecordType as b8, type EmailDomainConfigResponse as b9, type GoogleCalendarInsufficientScopesResponse as bA, type GoogleCalendarStatusResponse as bB, type ICalFeedTokenResponse as bC, type ICalFeedUrlResponse as bD, type IdentityConflictPolicy as bE, IndexStatus as bF, type IndexStatusResponse as bG, type InvokeCustomToolActionParams as bH, JobPosition as bI, type JourneyEnrollActionParams as bJ, type JourneySortField as bK, type LibModelsGlbResponsesOrganizationResponsesSSOConfigResponse as bL, type LinkCalendarRequest as bM, type LinkCalendarResponse as bN, type LoginRequest as bO, type LoginResponse as bP, type LogoUploadRequest as bQ, type LogoUploadResponse as bR, MASKED_SECRET_SENTINEL as bS, type McpServerSortField as bT, type WorkspaceMemberResponse as bU, type MemberCredentialResponse as bV, type MemberFieldResponse as bW, type MemberFieldDefinitionResponse as bX, type MemberFieldDefinitionListResponse as bY, type MemberFieldListResponse as bZ, type MemberFilterResponse as b_, type EmailSendActionParams as ba, type EmailVerificationResponse as bb, type EnumOption as bc, type ErrorResponse as bd, type EventActionMapping as be, type EventActionMappingsResponse as bf, type EventRule as bg, type EventRuleExportItem as bh, type EventRuleFormData as bi, type EventRuleInput as bj, EventRuleObjectType as bk, type EventRuleResponse as bl, type EventRunSortField as bm, type ExpireAnonymousMemberRequest as bn, type ExternalAttendeeData as bo, type FileSortField as bp, type FormFieldUpdateActionParams as bq, type GenerateRecoveryCodesRequest as br, type BusinessProfileResponse as bs, type CalendarResponse$1 as bt, type CalendarScheduleResponse$1 as bu, type MemoryListResponse as bv, type MemoryResponse$1 as bw, type OrgDomainResponse as bx, type OwnershipDnsRecord as by, type GoogleCalendarInfo as bz, type AccountFormData as c, PERMISSION_ADMIN as c$, type MemberFilterWithQuery as c0, type MemberFormData as c1, type MemberImportConflictInfo as c2, type MemberImportIdentitySnapshot as c3, type MemberImportMatchInfo as c4, MemberImportMatchInfoMatchType as c5, type MemberImportPreviewResponse as c6, type MemberImportPreviewRow as c7, MemberImportPreviewRowAction as c8, type MemberImportPreviewSummary as c9, type MembersQueryParams as cA, type MemoryItem as cB, type MemoryResponse as cC, type MemoryType as cD, type MergeMembersRequest as cE, type MergeMembersResponse as cF, type MessageValidationActionParams as cG, type MilestoneSortField as cH, type MissingMembershipItem as cI, type MondayColumnMapping as cJ, type MondayLookupType as cK, type MondayRefreshActionParams as cL, type MondayRefreshColumnMapping as cM, type MondayUpsertItemActionParams as cN, type MondayUpsertMode as cO, type MultiMatchBehavior as cP, type NormalizeMemberRequest as cQ, type NormalizeMemberResponse as cR, type OIDCAdminConfigView as cS, OIDCAdminConfigViewProviderType as cT, type ObjectPermission as cU, type ObjectPermissionFlags as cV, type OrgMember as cW, type OrgMemberListResponse as cX, type OrgMemberRole as cY, type OrganizationResponse as cZ, type OwnershipVerificationResponse as c_, type MemberImportStreamConflict as ca, type MemberImportStreamEvent as cb, type MemberLabelResponse as cc, type MemberLabelActionParams as cd, type MemberLabelFormData as ce, type MemberMemoriesResponse as cf, type MemberMessageActivity as cg, type MemberOrgView as ch, type MemberReportItem as ci, type MemberRoleResponse as cj, type MemberRoleCalendarAccessResponse as ck, type MemberRoleDataTypeAccessResponse as cl, type MemberRoleFileAccessResponse as cm, type MemberRoleFolderAccessResponse as cn, type MemberRoleFormData as co, type MemberRoleInboxAccessResponse as cp, type MemberRoleSiteAccessResponse as cq, type MemberRoleTaskAccess as cr, type MemberRoleWorkflowAccessResponse as cs, type MemberSortField as ct, type MemberSummary as cu, type MemberSyncLink as cv, MemberType as cw, type MemberUpsertActionParams as cx, type MemberUpsertBehavior as cy, type MemberWorkspaceInfo as cz, type AccountLookupResponse as d, type RoutineRunResponse as d$, PERMISSION_CREATE as d0, PERMISSION_DELETE as d1, PERMISSION_EDIT as d2, PERMISSION_GEOLOCATE as d3, PERMISSION_LIST as d4, PERMISSION_LIST_ALL as d5, PERMISSION_NONE as d6, PERMISSION_USE as d7, PERMISSION_VERIFY as d8, type PageSortField as d9, type QueryMatchAll as dA, type QueryMetric as dB, type QueryNot as dC, type QueryNowValue as dD, type QueryOr as dE, type QueryRangeBound as dF, type QueryRangeValue as dG, type QueryRecordFieldInfo as dH, type QueryRecordMatch as dI, type QueryRecordSelection as dJ, type QueryRelationMatch as dK, type QueryRunMode as dL, type QuerySavedFilterRef as dM, type QueryScalar as dN, type QuerySortKey as dO, type QuerySubQueryRef as dP, type QueryTemporalValue as dQ, type QueryValue as dR, type RecoveryCodeResponse as dS, Region as dT, RegistrationIdentifier as dU, type RequestCredentialChangeRequest as dV, type RequestMagicLinkRequest as dW, type RequestMagicLinkResponse as dX, type ResolveAnonymousMemberRequest as dY, type Routine as dZ, type RoutineResponse as d_, type PaginatedResponse as da, type PendingAnonymousMembersResponse as db, type PendingCredentialChangeResponse as dc, type PendingCredentialChangeInviteResponse as dd, type PhoneCallActionParams as de, type PlayAudioActionParams as df, QUERY_VALUELESS_OPS as dg, type QualificationSortField as dh, type QueryAggregateOp as di, type QueryAggregatePredicate as dj, type QueryAggregateSpec as dk, type QueryAnd as dl, type QueryCompare as dm, type QueryComparisonOp as dn, type QueryCostInfo as dp, type QueryDataTypeInfo as dq, type QueryDayBoundaryValue as dr, type QueryDaysAgoValue as ds, type QueryDaysFromNowValue as dt, type QueryEntityType as du, type QueryEnumOption as dv, type QueryFieldInfo as dw, type QueryFieldsResponse as dx, type QueryGroupBy as dy, type QueryIR as dz, type AccountReportItem as e, type VerifyWebAuthnSetupRequest as e$, type RoutineRunStatus as e0, type RoutineRunsQueryParams as e1, type RoutineScheduleMode as e2, type RoutineSortField as e3, type RoutineVisibility as e4, type RoutineWorkflowAccessMissingRoleResponse as e5, type RoutineWorkflowAccessPreviewRequest as e6, type RoutineWorkflowAccessPreviewResponse as e7, type RoutineWorkflowAccessWarningResponse as e8, type RoutinesQueryParams as e9, type TaskExportDataTypeRelation as eA, type TaskExportEventRuleRelation as eB, type TaskSortField as eC, type TestWebhookRequest as eD, type TestWebhookResponse as eE, type TimeSlot as eF, type TwoFactorMethod as eG, type TwoFactorOperationResponse as eH, type TwoFactorStatus as eI, type UnlinkCalendarResponse as eJ, type UpdateAgentRequest as eK, type UpdateAttendeeRequest as eL, type UpdateDataRecordFilterRequest as eM, type UpdateEventRuleFormData as eN, type UpdateOrgMemberRequest as eO, type UpdateOrganizationRequest as eP, type UpdateRoutineRequest as eQ, type UpdateTwoFactorMethodRequest as eR, type UpdateWorkspaceMemberRequest as eS, type ValidateMagicLinkRequest as eT, type ValidateMagicLinkResponse as eU, type ValidateQueryResponse as eV, type VerifyCodeRequest as eW, type VerifyCodeResponse as eX, type VerifyCredentialChangeRequest as eY, type VerifyEmailRequest as eZ, type VerifyTOTPSetupRequest as e_, type RuleExecutionSortField as ea, type RuleExecutionsQueryParams as eb, type RunQueryRequest as ec, type RunQueryResponse as ed, type SendLoginCodeResponse as ee, type SSOConfigData as ef, type SchedulePreviewRequest as eg, type SchedulePreviewResponse as eh, Scope as ei, type SendEmailVerificationRequest as ej, type SessionExchangeRequest as ek, type SessionExchangeResponse as el, type SetupTOTPRequest as em, type SetupWebAuthnRequest as en, type SignupAccountResponse as eo, type SignupMemberResponse as ep, type SiteDisableImpactResponse as eq, SiteDnsRecordType as er, type SiteDomainConfigResponse as es, type SiteSortField as et, type SiteVerificationResponse as eu, type SmsSendActionParams as ev, type SortOrder as ew, type SwitchTaskActionParams as ex, type SyncCalendarResponse as ey, type TOTPSetupResponse as ez, type AccountSortField as f, type AdminAccountMembership as f$, type WebhookActionParams as f0, type WebhookLogSortField as f1, type WebhookLogsQueryParams as f2, type WorkflowSortField as f3, type WorkspaceMemberCountResponse as f4, type WorkspaceMemberCountResponseActiveByType as f5, type WorkspaceSortField as f6, decodePermissions as f7, encodePermissions as f8, eventRuleActionParams as f9, GetTaskSchema as fA, type ListInquiriesInput as fB, ListInquiriesSchema as fC, type ListMilestonesInput as fD, ListMilestonesSchema as fE, type ListTasksInput as fF, ListTasksSchema as fG, type MilestoneFormData as fH, MilestoneFormDataSchema as fI, MilestoneGoalFormDataSchema as fJ, type TaskFormData as fK, TaskFormDataSchema as fL, type UnarchiveTaskInput as fM, UnarchiveTaskSchema as fN, type UpdateInquiryInput as fO, UpdateInquiryRequestSchema as fP, UpdateInquirySchema as fQ, type UpdateMilestoneInput as fR, UpdateMilestoneSchema as fS, type UpdateTaskInput as fT, UpdateTaskSchema as fU, DeclaredDataUse as fV, type AccountDataExport as fW, type AccountExternalIdentityResponse as fX, type AccountIdentityResolutionResponse as fY, type AdminAccountResponse as fZ, type AdminAccountFormData as f_, type AbilityData as fa, AbilityDataSchema as fb, AnonymousInquiryFormSchema as fc, type ArchiveTaskInput as fd, ArchiveTaskSchema as fe, type ChildTaskFormData as ff, ChildTaskFormDataSchema as fg, type CreateInquiryInput as fh, CreateInquirySchema as fi, type CreateMilestoneInput as fj, CreateMilestoneSchema as fk, type CreateTaskInput as fl, CreateTaskSchema as fm, type DeleteInquiryInput as fn, DeleteInquirySchema as fo, type DeleteMilestoneInput as fp, DeleteMilestoneSchema as fq, type DeleteTaskInput as fr, DeleteTaskSchema as fs, type EnrichInquiryInput as ft, EnrichInquirySchema as fu, type GetInquiryInput as fv, GetInquirySchema as fw, type GetMilestoneInput as fx, GetMilestoneSchema as fy, type GetTaskInput as fz, type AccountState as g, type AdminAccountMembershipResponse as g0, type AdminAccountOrgMembershipResponse as g1, type AdminOrganization as g2, type AdminOrganizationResponse as g3, type AdminWorkspaceMemberFormData as g4, type ConsentRecordExport as g5, type DataExportResponse as g6, type DeletionCancelResponse as g7, type DeletionRequestResponse as g8, type TwoFactorMethodResponse$1 as g9, type TwoFactorStatusResponse$1 as ga, type OIDCAdminConfigInput as gb, type OrgMembershipExport as gc, type OrgScopedIdentityResponse as gd, type TwoFactorMethodResponse as ge, type TwoFactorMethodType as gf, type TwoFactorStatusResponse as gg, type UnlinkExternalIdentityResponse as gh, type WebAuthnRegistrationResponse as gi, type WorkspaceMembershipExport as gj, type EnumOption$1 as gk, type EventRuleResponse$1 as gl, type OrgDomainListResponse as gm, type EmailDnsRecord as gn, type EmailDomainConfigGetResponse as go, type SiteDnsRecord as gp, type SiteDomainConfigGetResponse as gq, type Address as h, type AdminWorkspaceSortField as i, type AgentResponse as j, type AgentConfigResponse as k, type AgentConfigFormData as l, type AgentMemoryConfig as m, type AgentSortField as n, type AnonymousInteractionResponse as o, type AnonymousMemberResolutionResponse as p, type AnonymousMemberResolutionStatus as q, type ApiKeyResponse as r, type ApiKeyCreatedResponse as s, type ApiKeyFormData as t, type ApiKeyScope as u, type ApiKeyScopesResponse as v, type AssignmentSortField as w, type AssistantMessageActionParams as x, type AttendeeResponse as y, AttendeeResponseStatus as z };
@@ -692,6 +692,7 @@ interface BusinessProfileResponse {
692
692
  authorizedReps?: AuthorizedRep[];
693
693
  address?: Address | null;
694
694
  failureReasons?: string[];
695
+ profileRecoveryFailed?: boolean;
695
696
  }
696
697
  type BusinessProfileResponseEvaluationStatus = typeof BusinessProfileResponseEvaluationStatus[keyof typeof BusinessProfileResponseEvaluationStatus] | null;
697
698
  declare const BusinessProfileResponseEvaluationStatus: {
@@ -1325,6 +1326,34 @@ interface AccountLookupResponse {
1325
1326
  accountUuid?: string;
1326
1327
  name?: string | null;
1327
1328
  }
1329
+ interface AccountExternalIdentityResponse {
1330
+ id: number;
1331
+ accountId: number;
1332
+ providerType: string;
1333
+ tenantPresent: boolean;
1334
+ externalIdHash: string;
1335
+ createdAt: string;
1336
+ }
1337
+ interface UnlinkExternalIdentityResponse {
1338
+ id: number;
1339
+ accountId: number;
1340
+ providerType: string;
1341
+ status: string;
1342
+ }
1343
+ interface OrgScopedIdentityResponse {
1344
+ orgExternalIdentityId: number;
1345
+ organizationId: number;
1346
+ orgAccountId: number;
1347
+ providerType: string;
1348
+ subjectHash: string;
1349
+ linksToThisAccount: boolean;
1350
+ }
1351
+ interface AccountIdentityResolutionResponse {
1352
+ accountId: number;
1353
+ hasEmailFallback: boolean;
1354
+ orgScoped: OrgScopedIdentityResponse[];
1355
+ accountScoped: AccountExternalIdentityResponse[];
1356
+ }
1328
1357
  interface CreateAccountOrgMembershipRequest {
1329
1358
  organizationId: number;
1330
1359
  role: OrgMemberRole;
@@ -1846,6 +1875,7 @@ interface MemberRoleResponse {
1846
1875
  folderAccess?: MemberRoleFolderAccessResponse[];
1847
1876
  calendarAccess?: MemberRoleCalendarAccessResponse[];
1848
1877
  memberCount?: number;
1878
+ isDefaultForNewMembers?: boolean;
1849
1879
  createdAt: string;
1850
1880
  updatedAt: string;
1851
1881
  }
@@ -2654,6 +2684,9 @@ declare const EventRuleActionType$1: {
2654
2684
  readonly 'assistant:message': "assistant:message";
2655
2685
  readonly 'form:update_field': "form:update_field";
2656
2686
  readonly 'record:cel_mutate': "record:cel_mutate";
2687
+ readonly 'record:copy_fields': "record:copy_fields";
2688
+ readonly 'record:upsert_linked': "record:upsert_linked";
2689
+ readonly 'record:verify_fields': "record:verify_fields";
2657
2690
  readonly 'message:validation': "message:validation";
2658
2691
  readonly 'chat:create': "chat:create";
2659
2692
  readonly 'chat:continue': "chat:continue";
@@ -2704,6 +2737,7 @@ declare const EventRuleEventType$1: {
2704
2737
  readonly 'call:completed': "call:completed";
2705
2738
  readonly 'call:summary': "call:summary";
2706
2739
  readonly 'voicemail:received': "voicemail:received";
2740
+ readonly 'fax:received': "fax:received";
2707
2741
  };
2708
2742
  type EventRuleObjectType$1 = typeof EventRuleObjectType$1[keyof typeof EventRuleObjectType$1];
2709
2743
  declare const EventRuleObjectType$1: {
@@ -2719,6 +2753,7 @@ declare const EventRuleObjectType$1: {
2719
2753
  readonly journey: "journey";
2720
2754
  readonly call: "call";
2721
2755
  readonly voicemail: "voicemail";
2756
+ readonly fax: "fax";
2722
2757
  };
2723
2758
  interface EventRuleResponse$1 {
2724
2759
  id: number;
@@ -3120,7 +3155,8 @@ declare enum EventRuleObjectType {
3120
3155
  CALENDAR_EVENT_TYPE = "calendar_event_type",
3121
3156
  JOURNEY = "journey",
3122
3157
  CALL = "call",
3123
- VOICEMAIL = "voicemail"
3158
+ VOICEMAIL = "voicemail",
3159
+ FAX = "fax"
3124
3160
  }
3125
3161
  declare enum EventRuleEventType {
3126
3162
  TASK_EXECUTE = "task:execute",
@@ -3151,7 +3187,8 @@ declare enum EventRuleEventType {
3151
3187
  CALL_STARTED = "call:started",
3152
3188
  CALL_COMPLETED = "call:completed",
3153
3189
  CALL_SUMMARY = "call:summary",
3154
- VOICEMAIL_RECEIVED = "voicemail:received"
3190
+ VOICEMAIL_RECEIVED = "voicemail:received",
3191
+ FAX_RECEIVED = "fax:received"
3155
3192
  }
3156
3193
  declare enum EventRuleActionType {
3157
3194
  MEMBER_NOTIFY_ACTION = "member:notify",
@@ -3162,6 +3199,9 @@ declare enum EventRuleActionType {
3162
3199
  ASSISTANT_MESSAGE = "assistant:message",
3163
3200
  FORM_FIELD_UPDATE = "form:update_field",
3164
3201
  CEL_MUTATE = "record:cel_mutate",
3202
+ RECORD_COPY_FIELDS = "record:copy_fields",
3203
+ RECORD_UPSERT_LINKED = "record:upsert_linked",
3204
+ RECORD_VERIFY_FIELDS = "record:verify_fields",
3165
3205
  MESSAGE_VALIDATION = "message:validation",
3166
3206
  CHAT_CREATE = "chat:create",
3167
3207
  CHAT_CONTINUE = "chat:continue",
@@ -4399,4 +4439,4 @@ type DeleteTaskInput = z.infer<typeof DeleteTaskSchema>;
4399
4439
  type ArchiveTaskInput = z.infer<typeof ArchiveTaskSchema>;
4400
4440
  type UnarchiveTaskInput = z.infer<typeof UnarchiveTaskSchema>;
4401
4441
 
4402
- export { type CalendarEventFormData as $, AccessLevel as A, AttendeeStatus as B, type AuthorizedRep as C, DataFieldType as D, EventRuleEventType as E, type AvailabilityCheck as F, type AvailabilityResponse as G, type AvailableSlotsRequest as H, type AvailableSlotsResponse as I, type BotSortField as J, type BulkCreateDataRecordRequest as K, type BulkCreateDataRecordResponse as L, type BulkCreateMembersRequest as M, type BulkCreateMembersResponse as N, type BulkMemberItem as O, type BulkMemberResult as P, type QueryPredicate as Q, BulkMemberResultStatus as R, type SchemaField as S, type BulkRecordResult as T, BusinessIndustry as U, type BusinessInfo as V, type BusinessProfileCancelResponse as W, type BusinessProfileSubmitResponse as X, BusinessType as Y, type Calendar as Z, type EventResponse as _, EventRuleActionType as a, type DataTypeMemberRoleAccessInput as a$, type CalendarEventSortField as a0, CalendarEventStatus as a1, type EventTypeResponse as a2, type CalendarEventTypeFormData as a3, type CalendarEventsQueryParams as a4, type CalendarFormData as a5, CalendarPermissionType as a6, type CalendarResponse as a7, type CalendarSchedule as a8, CalendarScheduleAvailabilityType as a9, type CredentialChangeInviteResponse as aA, type CredentialChangeRequestResponse as aB, type CredentialChangeVerifyResponse as aC, type CredentialType as aD, type CurrentMemberResponse as aE, type CurrentOrgMember as aF, type CursorPaginatedResponse as aG, DataCategory as aH, type DataField as aI, type DataIntegrityReportItem as aJ, type DataRecordResponse as aK, type DataRecordAssociationFormData as aL, type DataRecordFieldWarning as aM, type DataRecordFilterResponse as aN, type DataRecordFilterFormData as aO, type DataRecordFilterWithQuery as aP, type DataRecordFormData as aQ, type DataRecordReportItem as aR, type DataRecordRetirementResponse as aS, DataRecordRetirementResponseReason as aT, type DataRecordUpdateResponse as aU, type DataRecordWithAccessMode as aV, type DataRecordsPaginatedResponse as aW, DataSensitivity as aX, type DataTypeResponse as aY, type DataTypeExportItem as aZ, type DataTypeFormData as a_, type CalendarScheduleFormData as aa, CalendarScheduleRecurrence as ab, type CalendarScheduleResponse as ac, CalendarSource as ad, type CancelCredentialChangeInviteResponse as ae, type CancelCredentialChangeResponse as af, type CapabilityRequirementFinding as ag, type CapabilityStatus as ah, type ChatContinueActionParams as ai, type ChatCreateActionParams as aj, type ChatPauseActionParams as ak, type ChatSortField as al, type ChatSummarizeActionParams as am, type ConcludeAssignmentActionParams as an, type CreateAccountOrgMembershipRequest as ao, type CreateAccountOrgMembershipResponse as ap, type CreateAgentRequest as aq, type CreateAnonymousMemberRequest as ar, type CreateCredentialChangeInviteRequest as as, type CreateDataRecordFilterRequest as at, type CreateOrganizationRequest as au, type CreateRoutineRequest as av, type CreateSignupResponse as aw, type CreateWorkspaceMemberRequest as ax, type CredentialChangeInviteConfirmResponse as ay, type CredentialChangeInviteDetailsResponse as az, type AccountResponse as b, type MemberFilterFormData as b$, type DataTypeMemberRoleAccessResponse as b0, DataTypeRecordScope as b1, type DataTypeSortField as b2, type DeleteAccountOrgMembershipResponse as b3, type DetailedAccount as b4, type DuplicateAccountInfo as b5, type EcwRefreshMemberEncountersActionParams as b6, type EmailDisableImpactResponse as b7, EmailDnsRecordType as b8, type EmailDomainConfigResponse as b9, type GoogleCalendarInsufficientScopesResponse as bA, type GoogleCalendarStatusResponse as bB, type ICalFeedTokenResponse as bC, type ICalFeedUrlResponse as bD, type IdentityConflictPolicy as bE, IndexStatus as bF, type IndexStatusResponse as bG, type InvokeCustomToolActionParams as bH, JobPosition as bI, type JourneyEnrollActionParams as bJ, type JourneySortField as bK, type LibModelsGlbResponsesOrganizationResponsesSSOConfigResponse as bL, type LinkCalendarRequest as bM, type LinkCalendarResponse as bN, type LoginRequest as bO, type LoginResponse as bP, type LogoUploadRequest as bQ, type LogoUploadResponse as bR, MASKED_SECRET_SENTINEL as bS, type McpServerSortField as bT, type WorkspaceMemberResponse as bU, type MemberCredentialResponse as bV, type MemberFieldResponse as bW, type MemberFieldDefinitionResponse as bX, type MemberFieldDefinitionListResponse as bY, type MemberFieldListResponse as bZ, type MemberFilterResponse as b_, type EmailSendActionParams as ba, type EmailVerificationResponse as bb, type EnumOption as bc, type ErrorResponse as bd, type EventActionMapping as be, type EventActionMappingsResponse as bf, type EventRule as bg, type EventRuleExportItem as bh, type EventRuleFormData as bi, type EventRuleInput as bj, EventRuleObjectType as bk, type EventRuleResponse as bl, type EventRunSortField as bm, type ExpireAnonymousMemberRequest as bn, type ExternalAttendeeData as bo, type FileSortField as bp, type FormFieldUpdateActionParams as bq, type GenerateRecoveryCodesRequest as br, type BusinessProfileResponse as bs, type CalendarResponse$1 as bt, type CalendarScheduleResponse$1 as bu, type MemoryListResponse as bv, type MemoryResponse$1 as bw, type OrgDomainResponse as bx, type OwnershipDnsRecord as by, type GoogleCalendarInfo as bz, type AccountFormData as c, PERMISSION_ADMIN as c$, type MemberFilterWithQuery as c0, type MemberFormData as c1, type MemberImportConflictInfo as c2, type MemberImportIdentitySnapshot as c3, type MemberImportMatchInfo as c4, MemberImportMatchInfoMatchType as c5, type MemberImportPreviewResponse as c6, type MemberImportPreviewRow as c7, MemberImportPreviewRowAction as c8, type MemberImportPreviewSummary as c9, type MembersQueryParams as cA, type MemoryItem as cB, type MemoryResponse as cC, type MemoryType as cD, type MergeMembersRequest as cE, type MergeMembersResponse as cF, type MessageValidationActionParams as cG, type MilestoneSortField as cH, type MissingMembershipItem as cI, type MondayColumnMapping as cJ, type MondayLookupType as cK, type MondayRefreshActionParams as cL, type MondayRefreshColumnMapping as cM, type MondayUpsertItemActionParams as cN, type MondayUpsertMode as cO, type MultiMatchBehavior as cP, type NormalizeMemberRequest as cQ, type NormalizeMemberResponse as cR, type OIDCAdminConfigView as cS, OIDCAdminConfigViewProviderType as cT, type ObjectPermission as cU, type ObjectPermissionFlags as cV, type OrgMember as cW, type OrgMemberListResponse as cX, type OrgMemberRole as cY, type OrganizationResponse as cZ, type OwnershipVerificationResponse as c_, type MemberImportStreamConflict as ca, type MemberImportStreamEvent as cb, type MemberLabelResponse as cc, type MemberLabelActionParams as cd, type MemberLabelFormData as ce, type MemberMemoriesResponse as cf, type MemberMessageActivity as cg, type MemberOrgView as ch, type MemberReportItem as ci, type MemberRoleResponse as cj, type MemberRoleCalendarAccessResponse as ck, type MemberRoleDataTypeAccessResponse as cl, type MemberRoleFileAccessResponse as cm, type MemberRoleFolderAccessResponse as cn, type MemberRoleFormData as co, type MemberRoleInboxAccessResponse as cp, type MemberRoleSiteAccessResponse as cq, type MemberRoleTaskAccess as cr, type MemberRoleWorkflowAccessResponse as cs, type MemberSortField as ct, type MemberSummary as cu, type MemberSyncLink as cv, MemberType as cw, type MemberUpsertActionParams as cx, type MemberUpsertBehavior as cy, type MemberWorkspaceInfo as cz, type AccountLookupResponse as d, type RoutineRunResponse as d$, PERMISSION_CREATE as d0, PERMISSION_DELETE as d1, PERMISSION_EDIT as d2, PERMISSION_GEOLOCATE as d3, PERMISSION_LIST as d4, PERMISSION_LIST_ALL as d5, PERMISSION_NONE as d6, PERMISSION_USE as d7, PERMISSION_VERIFY as d8, type PageSortField as d9, type QueryMatchAll as dA, type QueryMetric as dB, type QueryNot as dC, type QueryNowValue as dD, type QueryOr as dE, type QueryRangeBound as dF, type QueryRangeValue as dG, type QueryRecordFieldInfo as dH, type QueryRecordMatch as dI, type QueryRecordSelection as dJ, type QueryRelationMatch as dK, type QueryRunMode as dL, type QuerySavedFilterRef as dM, type QueryScalar as dN, type QuerySortKey as dO, type QuerySubQueryRef as dP, type QueryTemporalValue as dQ, type QueryValue as dR, type RecoveryCodeResponse as dS, Region as dT, RegistrationIdentifier as dU, type RequestCredentialChangeRequest as dV, type RequestMagicLinkRequest as dW, type RequestMagicLinkResponse as dX, type ResolveAnonymousMemberRequest as dY, type Routine as dZ, type RoutineResponse as d_, type PaginatedResponse as da, type PendingAnonymousMembersResponse as db, type PendingCredentialChangeResponse as dc, type PendingCredentialChangeInviteResponse as dd, type PhoneCallActionParams as de, type PlayAudioActionParams as df, QUERY_VALUELESS_OPS as dg, type QualificationSortField as dh, type QueryAggregateOp as di, type QueryAggregatePredicate as dj, type QueryAggregateSpec as dk, type QueryAnd as dl, type QueryCompare as dm, type QueryComparisonOp as dn, type QueryCostInfo as dp, type QueryDataTypeInfo as dq, type QueryDayBoundaryValue as dr, type QueryDaysAgoValue as ds, type QueryDaysFromNowValue as dt, type QueryEntityType as du, type QueryEnumOption as dv, type QueryFieldInfo as dw, type QueryFieldsResponse as dx, type QueryGroupBy as dy, type QueryIR as dz, type AccountReportItem as e, type VerifyWebAuthnSetupRequest as e$, type RoutineRunStatus as e0, type RoutineRunsQueryParams as e1, type RoutineScheduleMode as e2, type RoutineSortField as e3, type RoutineVisibility as e4, type RoutineWorkflowAccessMissingRoleResponse as e5, type RoutineWorkflowAccessPreviewRequest as e6, type RoutineWorkflowAccessPreviewResponse as e7, type RoutineWorkflowAccessWarningResponse as e8, type RoutinesQueryParams as e9, type TaskExportDataTypeRelation as eA, type TaskExportEventRuleRelation as eB, type TaskSortField as eC, type TestWebhookRequest as eD, type TestWebhookResponse as eE, type TimeSlot as eF, type TwoFactorMethod as eG, type TwoFactorOperationResponse as eH, type TwoFactorStatus as eI, type UnlinkCalendarResponse as eJ, type UpdateAgentRequest as eK, type UpdateAttendeeRequest as eL, type UpdateDataRecordFilterRequest as eM, type UpdateEventRuleFormData as eN, type UpdateOrgMemberRequest as eO, type UpdateOrganizationRequest as eP, type UpdateRoutineRequest as eQ, type UpdateTwoFactorMethodRequest as eR, type UpdateWorkspaceMemberRequest as eS, type ValidateMagicLinkRequest as eT, type ValidateMagicLinkResponse as eU, type ValidateQueryResponse as eV, type VerifyCodeRequest as eW, type VerifyCodeResponse as eX, type VerifyCredentialChangeRequest as eY, type VerifyEmailRequest as eZ, type VerifyTOTPSetupRequest as e_, type RuleExecutionSortField as ea, type RuleExecutionsQueryParams as eb, type RunQueryRequest as ec, type RunQueryResponse as ed, type SendLoginCodeResponse as ee, type SSOConfigData as ef, type SchedulePreviewRequest as eg, type SchedulePreviewResponse as eh, Scope as ei, type SendEmailVerificationRequest as ej, type SessionExchangeRequest as ek, type SessionExchangeResponse as el, type SetupTOTPRequest as em, type SetupWebAuthnRequest as en, type SignupAccountResponse as eo, type SignupMemberResponse as ep, type SiteDisableImpactResponse as eq, SiteDnsRecordType as er, type SiteDomainConfigResponse as es, type SiteSortField as et, type SiteVerificationResponse as eu, type SmsSendActionParams as ev, type SortOrder as ew, type SwitchTaskActionParams as ex, type SyncCalendarResponse as ey, type TOTPSetupResponse as ez, type AccountSortField as f, type AdminAccountOrgMembershipResponse as f$, type WebhookActionParams as f0, type WebhookLogSortField as f1, type WebhookLogsQueryParams as f2, type WorkflowSortField as f3, type WorkspaceMemberCountResponse as f4, type WorkspaceMemberCountResponseActiveByType as f5, type WorkspaceSortField as f6, decodePermissions as f7, encodePermissions as f8, eventRuleActionParams as f9, GetTaskSchema as fA, type ListInquiriesInput as fB, ListInquiriesSchema as fC, type ListMilestonesInput as fD, ListMilestonesSchema as fE, type ListTasksInput as fF, ListTasksSchema as fG, type MilestoneFormData as fH, MilestoneFormDataSchema as fI, MilestoneGoalFormDataSchema as fJ, type TaskFormData as fK, TaskFormDataSchema as fL, type UnarchiveTaskInput as fM, UnarchiveTaskSchema as fN, type UpdateInquiryInput as fO, UpdateInquiryRequestSchema as fP, UpdateInquirySchema as fQ, type UpdateMilestoneInput as fR, UpdateMilestoneSchema as fS, type UpdateTaskInput as fT, UpdateTaskSchema as fU, DeclaredDataUse as fV, type AccountDataExport as fW, type AdminAccountResponse as fX, type AdminAccountFormData as fY, type AdminAccountMembership as fZ, type AdminAccountMembershipResponse as f_, type AbilityData as fa, AbilityDataSchema as fb, AnonymousInquiryFormSchema as fc, type ArchiveTaskInput as fd, ArchiveTaskSchema as fe, type ChildTaskFormData as ff, ChildTaskFormDataSchema as fg, type CreateInquiryInput as fh, CreateInquirySchema as fi, type CreateMilestoneInput as fj, CreateMilestoneSchema as fk, type CreateTaskInput as fl, CreateTaskSchema as fm, type DeleteInquiryInput as fn, DeleteInquirySchema as fo, type DeleteMilestoneInput as fp, DeleteMilestoneSchema as fq, type DeleteTaskInput as fr, DeleteTaskSchema as fs, type EnrichInquiryInput as ft, EnrichInquirySchema as fu, type GetInquiryInput as fv, GetInquirySchema as fw, type GetMilestoneInput as fx, GetMilestoneSchema as fy, type GetTaskInput as fz, type AccountState as g, type AdminOrganization as g0, type AdminOrganizationResponse as g1, type AdminWorkspaceMemberFormData as g2, type ConsentRecordExport as g3, type DataExportResponse as g4, type DeletionCancelResponse as g5, type DeletionRequestResponse as g6, type TwoFactorMethodResponse$1 as g7, type TwoFactorStatusResponse$1 as g8, type OIDCAdminConfigInput as g9, type OrgMembershipExport as ga, type TwoFactorMethodResponse as gb, type TwoFactorMethodType as gc, type TwoFactorStatusResponse as gd, type WebAuthnRegistrationResponse as ge, type WorkspaceMembershipExport as gf, type EnumOption$1 as gg, type EventRuleResponse$1 as gh, type OrgDomainListResponse as gi, type EmailDnsRecord as gj, type EmailDomainConfigGetResponse as gk, type SiteDnsRecord as gl, type SiteDomainConfigGetResponse as gm, type Address as h, type AdminWorkspaceSortField as i, type AgentResponse as j, type AgentConfigResponse as k, type AgentConfigFormData as l, type AgentMemoryConfig as m, type AgentSortField as n, type AnonymousInteractionResponse as o, type AnonymousMemberResolutionResponse as p, type AnonymousMemberResolutionStatus as q, type ApiKeyResponse as r, type ApiKeyCreatedResponse as s, type ApiKeyFormData as t, type ApiKeyScope as u, type ApiKeyScopesResponse as v, type AssignmentSortField as w, type AssistantMessageActionParams as x, type AttendeeResponse as y, AttendeeResponseStatus as z };
4442
+ export { type CalendarEventFormData as $, AccessLevel as A, AttendeeStatus as B, type AuthorizedRep as C, DataFieldType as D, EventRuleEventType as E, type AvailabilityCheck as F, type AvailabilityResponse as G, type AvailableSlotsRequest as H, type AvailableSlotsResponse as I, type BotSortField as J, type BulkCreateDataRecordRequest as K, type BulkCreateDataRecordResponse as L, type BulkCreateMembersRequest as M, type BulkCreateMembersResponse as N, type BulkMemberItem as O, type BulkMemberResult as P, type QueryPredicate as Q, BulkMemberResultStatus as R, type SchemaField as S, type BulkRecordResult as T, BusinessIndustry as U, type BusinessInfo as V, type BusinessProfileCancelResponse as W, type BusinessProfileSubmitResponse as X, BusinessType as Y, type Calendar as Z, type EventResponse as _, EventRuleActionType as a, type DataTypeMemberRoleAccessInput as a$, type CalendarEventSortField as a0, CalendarEventStatus as a1, type EventTypeResponse as a2, type CalendarEventTypeFormData as a3, type CalendarEventsQueryParams as a4, type CalendarFormData as a5, CalendarPermissionType as a6, type CalendarResponse as a7, type CalendarSchedule as a8, CalendarScheduleAvailabilityType as a9, type CredentialChangeInviteResponse as aA, type CredentialChangeRequestResponse as aB, type CredentialChangeVerifyResponse as aC, type CredentialType as aD, type CurrentMemberResponse as aE, type CurrentOrgMember as aF, type CursorPaginatedResponse as aG, DataCategory as aH, type DataField as aI, type DataIntegrityReportItem as aJ, type DataRecordResponse as aK, type DataRecordAssociationFormData as aL, type DataRecordFieldWarning as aM, type DataRecordFilterResponse as aN, type DataRecordFilterFormData as aO, type DataRecordFilterWithQuery as aP, type DataRecordFormData as aQ, type DataRecordReportItem as aR, type DataRecordRetirementResponse as aS, DataRecordRetirementResponseReason as aT, type DataRecordUpdateResponse as aU, type DataRecordWithAccessMode as aV, type DataRecordsPaginatedResponse as aW, DataSensitivity as aX, type DataTypeResponse as aY, type DataTypeExportItem as aZ, type DataTypeFormData as a_, type CalendarScheduleFormData as aa, CalendarScheduleRecurrence as ab, type CalendarScheduleResponse as ac, CalendarSource as ad, type CancelCredentialChangeInviteResponse as ae, type CancelCredentialChangeResponse as af, type CapabilityRequirementFinding as ag, type CapabilityStatus as ah, type ChatContinueActionParams as ai, type ChatCreateActionParams as aj, type ChatPauseActionParams as ak, type ChatSortField as al, type ChatSummarizeActionParams as am, type ConcludeAssignmentActionParams as an, type CreateAccountOrgMembershipRequest as ao, type CreateAccountOrgMembershipResponse as ap, type CreateAgentRequest as aq, type CreateAnonymousMemberRequest as ar, type CreateCredentialChangeInviteRequest as as, type CreateDataRecordFilterRequest as at, type CreateOrganizationRequest as au, type CreateRoutineRequest as av, type CreateSignupResponse as aw, type CreateWorkspaceMemberRequest as ax, type CredentialChangeInviteConfirmResponse as ay, type CredentialChangeInviteDetailsResponse as az, type AccountResponse as b, type MemberFilterFormData as b$, type DataTypeMemberRoleAccessResponse as b0, DataTypeRecordScope as b1, type DataTypeSortField as b2, type DeleteAccountOrgMembershipResponse as b3, type DetailedAccount as b4, type DuplicateAccountInfo as b5, type EcwRefreshMemberEncountersActionParams as b6, type EmailDisableImpactResponse as b7, EmailDnsRecordType as b8, type EmailDomainConfigResponse as b9, type GoogleCalendarInsufficientScopesResponse as bA, type GoogleCalendarStatusResponse as bB, type ICalFeedTokenResponse as bC, type ICalFeedUrlResponse as bD, type IdentityConflictPolicy as bE, IndexStatus as bF, type IndexStatusResponse as bG, type InvokeCustomToolActionParams as bH, JobPosition as bI, type JourneyEnrollActionParams as bJ, type JourneySortField as bK, type LibModelsGlbResponsesOrganizationResponsesSSOConfigResponse as bL, type LinkCalendarRequest as bM, type LinkCalendarResponse as bN, type LoginRequest as bO, type LoginResponse as bP, type LogoUploadRequest as bQ, type LogoUploadResponse as bR, MASKED_SECRET_SENTINEL as bS, type McpServerSortField as bT, type WorkspaceMemberResponse as bU, type MemberCredentialResponse as bV, type MemberFieldResponse as bW, type MemberFieldDefinitionResponse as bX, type MemberFieldDefinitionListResponse as bY, type MemberFieldListResponse as bZ, type MemberFilterResponse as b_, type EmailSendActionParams as ba, type EmailVerificationResponse as bb, type EnumOption as bc, type ErrorResponse as bd, type EventActionMapping as be, type EventActionMappingsResponse as bf, type EventRule as bg, type EventRuleExportItem as bh, type EventRuleFormData as bi, type EventRuleInput as bj, EventRuleObjectType as bk, type EventRuleResponse as bl, type EventRunSortField as bm, type ExpireAnonymousMemberRequest as bn, type ExternalAttendeeData as bo, type FileSortField as bp, type FormFieldUpdateActionParams as bq, type GenerateRecoveryCodesRequest as br, type BusinessProfileResponse as bs, type CalendarResponse$1 as bt, type CalendarScheduleResponse$1 as bu, type MemoryListResponse as bv, type MemoryResponse$1 as bw, type OrgDomainResponse as bx, type OwnershipDnsRecord as by, type GoogleCalendarInfo as bz, type AccountFormData as c, PERMISSION_ADMIN as c$, type MemberFilterWithQuery as c0, type MemberFormData as c1, type MemberImportConflictInfo as c2, type MemberImportIdentitySnapshot as c3, type MemberImportMatchInfo as c4, MemberImportMatchInfoMatchType as c5, type MemberImportPreviewResponse as c6, type MemberImportPreviewRow as c7, MemberImportPreviewRowAction as c8, type MemberImportPreviewSummary as c9, type MembersQueryParams as cA, type MemoryItem as cB, type MemoryResponse as cC, type MemoryType as cD, type MergeMembersRequest as cE, type MergeMembersResponse as cF, type MessageValidationActionParams as cG, type MilestoneSortField as cH, type MissingMembershipItem as cI, type MondayColumnMapping as cJ, type MondayLookupType as cK, type MondayRefreshActionParams as cL, type MondayRefreshColumnMapping as cM, type MondayUpsertItemActionParams as cN, type MondayUpsertMode as cO, type MultiMatchBehavior as cP, type NormalizeMemberRequest as cQ, type NormalizeMemberResponse as cR, type OIDCAdminConfigView as cS, OIDCAdminConfigViewProviderType as cT, type ObjectPermission as cU, type ObjectPermissionFlags as cV, type OrgMember as cW, type OrgMemberListResponse as cX, type OrgMemberRole as cY, type OrganizationResponse as cZ, type OwnershipVerificationResponse as c_, type MemberImportStreamConflict as ca, type MemberImportStreamEvent as cb, type MemberLabelResponse as cc, type MemberLabelActionParams as cd, type MemberLabelFormData as ce, type MemberMemoriesResponse as cf, type MemberMessageActivity as cg, type MemberOrgView as ch, type MemberReportItem as ci, type MemberRoleResponse as cj, type MemberRoleCalendarAccessResponse as ck, type MemberRoleDataTypeAccessResponse as cl, type MemberRoleFileAccessResponse as cm, type MemberRoleFolderAccessResponse as cn, type MemberRoleFormData as co, type MemberRoleInboxAccessResponse as cp, type MemberRoleSiteAccessResponse as cq, type MemberRoleTaskAccess as cr, type MemberRoleWorkflowAccessResponse as cs, type MemberSortField as ct, type MemberSummary as cu, type MemberSyncLink as cv, MemberType as cw, type MemberUpsertActionParams as cx, type MemberUpsertBehavior as cy, type MemberWorkspaceInfo as cz, type AccountLookupResponse as d, type RoutineRunResponse as d$, PERMISSION_CREATE as d0, PERMISSION_DELETE as d1, PERMISSION_EDIT as d2, PERMISSION_GEOLOCATE as d3, PERMISSION_LIST as d4, PERMISSION_LIST_ALL as d5, PERMISSION_NONE as d6, PERMISSION_USE as d7, PERMISSION_VERIFY as d8, type PageSortField as d9, type QueryMatchAll as dA, type QueryMetric as dB, type QueryNot as dC, type QueryNowValue as dD, type QueryOr as dE, type QueryRangeBound as dF, type QueryRangeValue as dG, type QueryRecordFieldInfo as dH, type QueryRecordMatch as dI, type QueryRecordSelection as dJ, type QueryRelationMatch as dK, type QueryRunMode as dL, type QuerySavedFilterRef as dM, type QueryScalar as dN, type QuerySortKey as dO, type QuerySubQueryRef as dP, type QueryTemporalValue as dQ, type QueryValue as dR, type RecoveryCodeResponse as dS, Region as dT, RegistrationIdentifier as dU, type RequestCredentialChangeRequest as dV, type RequestMagicLinkRequest as dW, type RequestMagicLinkResponse as dX, type ResolveAnonymousMemberRequest as dY, type Routine as dZ, type RoutineResponse as d_, type PaginatedResponse as da, type PendingAnonymousMembersResponse as db, type PendingCredentialChangeResponse as dc, type PendingCredentialChangeInviteResponse as dd, type PhoneCallActionParams as de, type PlayAudioActionParams as df, QUERY_VALUELESS_OPS as dg, type QualificationSortField as dh, type QueryAggregateOp as di, type QueryAggregatePredicate as dj, type QueryAggregateSpec as dk, type QueryAnd as dl, type QueryCompare as dm, type QueryComparisonOp as dn, type QueryCostInfo as dp, type QueryDataTypeInfo as dq, type QueryDayBoundaryValue as dr, type QueryDaysAgoValue as ds, type QueryDaysFromNowValue as dt, type QueryEntityType as du, type QueryEnumOption as dv, type QueryFieldInfo as dw, type QueryFieldsResponse as dx, type QueryGroupBy as dy, type QueryIR as dz, type AccountReportItem as e, type VerifyWebAuthnSetupRequest as e$, type RoutineRunStatus as e0, type RoutineRunsQueryParams as e1, type RoutineScheduleMode as e2, type RoutineSortField as e3, type RoutineVisibility as e4, type RoutineWorkflowAccessMissingRoleResponse as e5, type RoutineWorkflowAccessPreviewRequest as e6, type RoutineWorkflowAccessPreviewResponse as e7, type RoutineWorkflowAccessWarningResponse as e8, type RoutinesQueryParams as e9, type TaskExportDataTypeRelation as eA, type TaskExportEventRuleRelation as eB, type TaskSortField as eC, type TestWebhookRequest as eD, type TestWebhookResponse as eE, type TimeSlot as eF, type TwoFactorMethod as eG, type TwoFactorOperationResponse as eH, type TwoFactorStatus as eI, type UnlinkCalendarResponse as eJ, type UpdateAgentRequest as eK, type UpdateAttendeeRequest as eL, type UpdateDataRecordFilterRequest as eM, type UpdateEventRuleFormData as eN, type UpdateOrgMemberRequest as eO, type UpdateOrganizationRequest as eP, type UpdateRoutineRequest as eQ, type UpdateTwoFactorMethodRequest as eR, type UpdateWorkspaceMemberRequest as eS, type ValidateMagicLinkRequest as eT, type ValidateMagicLinkResponse as eU, type ValidateQueryResponse as eV, type VerifyCodeRequest as eW, type VerifyCodeResponse as eX, type VerifyCredentialChangeRequest as eY, type VerifyEmailRequest as eZ, type VerifyTOTPSetupRequest as e_, type RuleExecutionSortField as ea, type RuleExecutionsQueryParams as eb, type RunQueryRequest as ec, type RunQueryResponse as ed, type SendLoginCodeResponse as ee, type SSOConfigData as ef, type SchedulePreviewRequest as eg, type SchedulePreviewResponse as eh, Scope as ei, type SendEmailVerificationRequest as ej, type SessionExchangeRequest as ek, type SessionExchangeResponse as el, type SetupTOTPRequest as em, type SetupWebAuthnRequest as en, type SignupAccountResponse as eo, type SignupMemberResponse as ep, type SiteDisableImpactResponse as eq, SiteDnsRecordType as er, type SiteDomainConfigResponse as es, type SiteSortField as et, type SiteVerificationResponse as eu, type SmsSendActionParams as ev, type SortOrder as ew, type SwitchTaskActionParams as ex, type SyncCalendarResponse as ey, type TOTPSetupResponse as ez, type AccountSortField as f, type AdminAccountMembership as f$, type WebhookActionParams as f0, type WebhookLogSortField as f1, type WebhookLogsQueryParams as f2, type WorkflowSortField as f3, type WorkspaceMemberCountResponse as f4, type WorkspaceMemberCountResponseActiveByType as f5, type WorkspaceSortField as f6, decodePermissions as f7, encodePermissions as f8, eventRuleActionParams as f9, GetTaskSchema as fA, type ListInquiriesInput as fB, ListInquiriesSchema as fC, type ListMilestonesInput as fD, ListMilestonesSchema as fE, type ListTasksInput as fF, ListTasksSchema as fG, type MilestoneFormData as fH, MilestoneFormDataSchema as fI, MilestoneGoalFormDataSchema as fJ, type TaskFormData as fK, TaskFormDataSchema as fL, type UnarchiveTaskInput as fM, UnarchiveTaskSchema as fN, type UpdateInquiryInput as fO, UpdateInquiryRequestSchema as fP, UpdateInquirySchema as fQ, type UpdateMilestoneInput as fR, UpdateMilestoneSchema as fS, type UpdateTaskInput as fT, UpdateTaskSchema as fU, DeclaredDataUse as fV, type AccountDataExport as fW, type AccountExternalIdentityResponse as fX, type AccountIdentityResolutionResponse as fY, type AdminAccountResponse as fZ, type AdminAccountFormData as f_, type AbilityData as fa, AbilityDataSchema as fb, AnonymousInquiryFormSchema as fc, type ArchiveTaskInput as fd, ArchiveTaskSchema as fe, type ChildTaskFormData as ff, ChildTaskFormDataSchema as fg, type CreateInquiryInput as fh, CreateInquirySchema as fi, type CreateMilestoneInput as fj, CreateMilestoneSchema as fk, type CreateTaskInput as fl, CreateTaskSchema as fm, type DeleteInquiryInput as fn, DeleteInquirySchema as fo, type DeleteMilestoneInput as fp, DeleteMilestoneSchema as fq, type DeleteTaskInput as fr, DeleteTaskSchema as fs, type EnrichInquiryInput as ft, EnrichInquirySchema as fu, type GetInquiryInput as fv, GetInquirySchema as fw, type GetMilestoneInput as fx, GetMilestoneSchema as fy, type GetTaskInput as fz, type AccountState as g, type AdminAccountMembershipResponse as g0, type AdminAccountOrgMembershipResponse as g1, type AdminOrganization as g2, type AdminOrganizationResponse as g3, type AdminWorkspaceMemberFormData as g4, type ConsentRecordExport as g5, type DataExportResponse as g6, type DeletionCancelResponse as g7, type DeletionRequestResponse as g8, type TwoFactorMethodResponse$1 as g9, type TwoFactorStatusResponse$1 as ga, type OIDCAdminConfigInput as gb, type OrgMembershipExport as gc, type OrgScopedIdentityResponse as gd, type TwoFactorMethodResponse as ge, type TwoFactorMethodType as gf, type TwoFactorStatusResponse as gg, type UnlinkExternalIdentityResponse as gh, type WebAuthnRegistrationResponse as gi, type WorkspaceMembershipExport as gj, type EnumOption$1 as gk, type EventRuleResponse$1 as gl, type OrgDomainListResponse as gm, type EmailDnsRecord as gn, type EmailDomainConfigGetResponse as go, type SiteDnsRecord as gp, type SiteDomainConfigGetResponse as gq, type Address as h, type AdminWorkspaceSortField as i, type AgentResponse as j, type AgentConfigResponse as k, type AgentConfigFormData as l, type AgentMemoryConfig as m, type AgentSortField as n, type AnonymousInteractionResponse as o, type AnonymousMemberResolutionResponse as p, type AnonymousMemberResolutionStatus as q, type ApiKeyResponse as r, type ApiKeyCreatedResponse as s, type ApiKeyFormData as t, type ApiKeyScope as u, type ApiKeyScopesResponse as v, type AssignmentSortField as w, type AssistantMessageActionParams as x, type AttendeeResponse as y, AttendeeResponseStatus as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-rail/sdk",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Gravity Rail TypeScript SDK — API client for workspace management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -95,7 +95,7 @@
95
95
  "devDependencies": {
96
96
  "@modelcontextprotocol/sdk": "^1.26.0",
97
97
  "@types/jest": "^30.0.0",
98
- "@types/node": "^25.9.1",
98
+ "@types/node": "^24.13.3",
99
99
  "@types/react": "^19.2.17",
100
100
  "jest": "^30.4.2",
101
101
  "react": "^19.2.7",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/api/base.ts"],"sourcesContent":["// Utility function to read a specific cookie value\nexport function getCookieValue(name: string): string | undefined {\n if (typeof document === 'undefined') return undefined;\n\n const cookies = document.cookie.split(';');\n for (const cookie of cookies) {\n const trimmedCookie = cookie.trim();\n const eqIndex = trimmedCookie.indexOf('=');\n if (eqIndex === -1) continue;\n\n const cookieName = trimmedCookie.substring(0, eqIndex);\n const cookieValue = trimmedCookie.substring(eqIndex + 1);\n\n if (cookieName === name) {\n return cookieValue;\n }\n }\n\n return undefined;\n}\n\n/**\n * Structured validation error returned by the backend's workflow-expression\n * validator (CEL / Jinja schema checks). See WorkflowValidationErrorResponse\n * in workflowValidationTypes.ts for the public-facing shape.\n */\nexport interface ApiValidationError {\n field: string;\n kind: 'cel_syntax' | 'cel_schema' | 'jinja_syntax' | 'jinja_schema';\n message: string;\n offendingPath: string | null;\n location: {\n start: number;\n end: number;\n line: number;\n column: number;\n length: number;\n } | null;\n suggestion: string | null;\n}\n\nfunction isApiValidationError(value: unknown): value is ApiValidationError {\n if (!value || typeof value !== 'object') return false;\n const v = value as Record<string, unknown>;\n return (\n typeof v.field === 'string' && typeof v.kind === 'string' && typeof v.message === 'string'\n );\n}\n\nexport class ApiError extends Error {\n statusCode: number;\n /** Legacy string-array errors — kept for non-validation callers. */\n errors?: string[];\n /**\n * Structured workflow-expression validation errors (CEL/Jinja).\n * Populated when the backend returns a WorkflowValidationErrorResponse.\n */\n validationErrors?: ApiValidationError[];\n\n constructor(\n message: string,\n statusCode: number,\n errors?: string[],\n validationErrors?: ApiValidationError[]\n ) {\n super(message);\n this.statusCode = statusCode;\n this.errors = errors;\n this.validationErrors = validationErrors;\n }\n}\n\n/**\n * Handler for enhanced authentication requirement (RFC 9470 Step-Up Authentication).\n * Called when a 401 response includes WWW-Authenticate header with\n * error=\"insufficient_user_authentication\".\n * Should return a promise that resolves with the new auth token after re-auth.\n */\nexport type EnhancedAuthHandler = () => Promise<string>;\n\n/**\n * Info parsed from WWW-Authenticate header for org auth requirement.\n */\nexport interface OrgAuthInfo {\n orgUuid: string;\n cookieName: string;\n authUrl: string;\n}\n\n/**\n * Handler for organization authentication requirement.\n * Called when a 401 response includes WWW-Authenticate header with realm=\"org\".\n * The handler should redirect the user to the auth URL for consent/SSO.\n * Returns a promise that resolves when the user should retry (after page reload with cookie).\n */\nexport type OrgAuthHandler = (info: OrgAuthInfo) => Promise<void>;\n\n/**\n * Check if a WWW-Authenticate header indicates step-up authentication is required.\n * Per RFC 9470, this is indicated by error=\"insufficient_user_authentication\".\n */\nfunction requiresStepUpAuth(wwwAuthenticate: string | null): boolean {\n if (!wwwAuthenticate) return false;\n return wwwAuthenticate.includes('error=\"insufficient_user_authentication\"');\n}\n\n/**\n * Parse org auth info from WWW-Authenticate header.\n * Returns null if this is not an org auth challenge.\n * Expected format: Bearer realm=\"org\", org_uuid=\"...\", cookie_name=\"...\", auth_url=\"...\"\n */\nfunction parseOrgAuthChallenge(wwwAuthenticate: string | null): OrgAuthInfo | null {\n if (!wwwAuthenticate) return null;\n if (!wwwAuthenticate.includes('realm=\"org\"')) return null;\n\n // Parse the key-value pairs from the header\n const orgUuidMatch = wwwAuthenticate.match(/org_uuid=\"([^\"]+)\"/);\n const cookieNameMatch = wwwAuthenticate.match(/cookie_name=\"([^\"]+)\"/);\n const authUrlMatch = wwwAuthenticate.match(/auth_url=\"([^\"]+)\"/);\n\n if (!orgUuidMatch?.[1] || !cookieNameMatch?.[1] || !authUrlMatch?.[1]) {\n // Don't log the raw header value — it embeds org_uuid + auth_url.\n console.warn('Invalid org auth challenge header: missing required fields');\n return null;\n }\n\n return {\n orgUuid: orgUuidMatch[1],\n cookieName: cookieNameMatch[1],\n authUrl: authUrlMatch[1],\n };\n}\n\nfunction getRequestOrgCookieName(cookieName: string): string | null {\n if (cookieName.startsWith('orgToken')) {\n return cookieName.replace(/^orgToken/, 'requestOrgToken');\n }\n if (cookieName.startsWith('orgSession')) {\n return cookieName.replace(/^orgSession/, 'requestOrgSession');\n }\n return null;\n}\n\nfunction orgAuthHeaderName(token: string): 'X-Org-Token' | 'X-Org-Session' {\n return token.startsWith('gr_sess_') ? 'X-Org-Session' : 'X-Org-Token';\n}\n\nfunction setOrgAuthHeader(headers: Headers, token: string | undefined): void {\n if (!token) return;\n headers.set(orgAuthHeaderName(token), token);\n}\n\nexport class BaseApiClient {\n protected baseUrl: string;\n protected apiKey: string | undefined;\n protected isCrossDomain: boolean;\n protected fetchFunction: typeof fetch;\n private enhancedAuthHandler?: EnhancedAuthHandler;\n private enhancedAuthInProgress: Promise<string> | null = null;\n private orgAuthHandler?: OrgAuthHandler;\n private orgAuthInProgress: Promise<void> | null = null;\n private actingMemberUuid?: string;\n private orgSession?: string;\n /**\n * The org_uuid that issued the current org auth credential. Tracked so we can detect\n * a 401 challenge from a *different* org and re-fire the handler — the\n * credential is opaque to the client, so without this the original guard\n * `!this.orgSession` would prevent re-auth across orgs and surface as a silent\n * 401 in multi-org CLI workflows.\n */\n private orgSessionOrgUuid?: string;\n\n constructor(apiKey: string | undefined, baseUrl: string, customFetch?: typeof fetch) {\n this.baseUrl = baseUrl;\n this.apiKey = apiKey;\n // console.log('[BaseApiClient] constructor - baseUrl:', baseUrl);\n // Bind fetch to its proper context (window in browser, global in Node)\n this.fetchFunction =\n customFetch || (typeof window !== 'undefined' ? fetch.bind(window) : fetch);\n\n // Determine if we're making cross-domain requests by comparing current origin to API origin\n const apiUrlParsed = new URL(baseUrl);\n const currentOrigin = typeof window !== 'undefined' ? window.location.origin : '';\n this.isCrossDomain = currentOrigin !== '' && currentOrigin !== apiUrlParsed.origin;\n // console.log('[BaseApiClient] isCrossDomain:', this.isCrossDomain, 'currentOrigin:', currentOrigin, 'apiOrigin:', apiUrlParsed.origin);\n }\n\n /**\n * Set the handler for enhanced authentication requirements (RFC 9470 Step-Up Auth).\n * This handler is called when a 401 response includes WWW-Authenticate header\n * with error=\"insufficient_user_authentication\".\n */\n setEnhancedAuthHandler(handler: EnhancedAuthHandler | undefined) {\n this.enhancedAuthHandler = handler;\n }\n\n /**\n * Set the handler for organization authentication requirements.\n * This handler is called when a 401 response includes WWW-Authenticate header\n * with realm=\"org\". The handler should redirect the user to complete org auth.\n */\n setOrgAuthHandler(handler: OrgAuthHandler | undefined) {\n this.orgAuthHandler = handler;\n }\n\n /**\n * Update the API key (used after successful re-authentication).\n */\n updateApiKey(newApiKey: string) {\n this.apiKey = newApiKey;\n }\n\n /**\n * Set the acting member UUID for member identity switching.\n * When set, all API requests will include the X-Acting-Member header.\n * The backend will validate that the authenticated account owns this member\n * and use it as the effective identity for the request.\n */\n setActingMember(memberUuid: string | undefined) {\n this.actingMemberUuid = memberUuid;\n }\n\n /**\n * Get the current acting member UUID.\n */\n getActingMember(): string | undefined {\n return this.actingMemberUuid;\n }\n\n /**\n * Set the opaque org session credential for cross-domain requests.\n * Opaque gr_sess_ values use X-Org-Session. Legacy orgToken JWE values still\n * use X-Org-Token through setOrgToken() during the migration window.\n *\n * `orgUuid` is the org that issued the credential; passing it lets the 401\n * handler detect a stale session when a subsequent request targets a\n * different org and re-fire the org-auth handler instead of silently\n * 401-ing. Callers without that context (legacy / unknown) may omit it.\n */\n setOrgSession(session: string | undefined, orgUuid?: string) {\n this.orgSession = session;\n this.orgSessionOrgUuid = session ? orgUuid : undefined;\n }\n\n /**\n * @deprecated Legacy compatibility for stateless orgToken JWE credentials.\n * Prefer setOrgSession() for opaque org browser sessions.\n */\n setOrgToken(token: string | undefined, orgUuid?: string) {\n this.setOrgSession(token, orgUuid);\n }\n\n protected async fetch<T>(endpoint: string, options?: RequestInit): Promise<T> {\n try {\n const headers = new Headers({\n // Don't set Content-Type for FormData — the browser must set it\n // with the multipart boundary automatically.\n ...(options?.body instanceof FormData ? {} : { 'Content-Type': 'application/json' }),\n ...((options?.headers as Record<string, string>) || {}),\n });\n\n if (this.apiKey) {\n headers.set('Authorization', `Bearer ${this.apiKey}`);\n } else if (this.isCrossDomain) {\n // For cross-domain requests, try to use the requestToken cookie\n const requestToken = getCookieValue('requestToken');\n if (requestToken) {\n headers.set('Authorization', `Bearer ${requestToken}`);\n }\n }\n\n // Include X-Acting-Member header for member identity switching\n if (this.actingMemberUuid) {\n headers.set('X-Acting-Member', this.actingMemberUuid);\n }\n\n setOrgAuthHeader(headers, this.orgSession);\n\n // console.warn(\"Calling with apiKey:\", this.apiKey)\n const fullUrl = `${this.baseUrl}/api/v2/${endpoint}`;\n // console.log('[BaseApiClient] fetch - URL:', fullUrl, 'baseUrl:', this.baseUrl, 'endpoint:', endpoint);\n\n const response = await this.fetchFunction(fullUrl, {\n ...options,\n ...(this.apiKey ? {} : { credentials: 'include' }),\n ...(this.isCrossDomain ? { mode: 'cors' } : {}),\n headers,\n });\n\n if (!response.ok) {\n // Check for step-up auth requirement per RFC 9470 (superuser 2FA re-auth needed)\n if (\n response.status === 401 &&\n requiresStepUpAuth(response.headers.get('WWW-Authenticate')) &&\n this.enhancedAuthHandler\n ) {\n // If re-auth is already in progress, wait for it\n if (this.enhancedAuthInProgress) {\n await this.enhancedAuthInProgress;\n } else {\n // Trigger re-auth and wait for completion\n this.enhancedAuthInProgress = this.enhancedAuthHandler();\n try {\n const newToken = await this.enhancedAuthInProgress;\n this.apiKey = newToken;\n } finally {\n this.enhancedAuthInProgress = null;\n }\n }\n // Retry the request with the new token\n try {\n return await this.fetch<T>(endpoint, options);\n } catch (retryError) {\n this.orgSession = undefined;\n this.orgSessionOrgUuid = undefined;\n throw retryError;\n }\n }\n\n if (response.status === 401) {\n const orgAuthInfo = parseOrgAuthChallenge(response.headers.get('WWW-Authenticate'));\n // If the challenge targets a different org than our current\n // token, the token is stale (e.g. switching from Org A to Org\n // B mid-session). Clear it so the handler re-fires below.\n if (\n orgAuthInfo &&\n this.orgSession &&\n this.orgSessionOrgUuid &&\n this.orgSessionOrgUuid !== orgAuthInfo.orgUuid\n ) {\n this.orgSession = undefined;\n this.orgSessionOrgUuid = undefined;\n }\n if (orgAuthInfo && !this.orgSession) {\n const requestCookieName = getRequestOrgCookieName(orgAuthInfo.cookieName);\n const cachedOrgSession = requestCookieName\n ? getCookieValue(requestCookieName)\n : undefined;\n if (cachedOrgSession) {\n this.orgSession = cachedOrgSession;\n this.orgSessionOrgUuid = orgAuthInfo.orgUuid;\n try {\n return await this.fetch<T>(endpoint, options);\n } catch (retryError) {\n this.orgSession = undefined;\n this.orgSessionOrgUuid = undefined;\n throw retryError;\n }\n }\n\n if (this.orgAuthHandler) {\n if (!this.orgAuthInProgress) {\n const handler = this.orgAuthHandler;\n this.orgAuthInProgress = (async () => {\n try {\n await handler(orgAuthInfo);\n } finally {\n this.orgAuthInProgress = null;\n }\n })();\n }\n await this.orgAuthInProgress;\n // Prefer cookie (browser). Fall back to this.orgSession which\n // non-browser handlers (e.g. CLI) set directly via setOrgSession().\n const postHandlerSession =\n (requestCookieName ? getCookieValue(requestCookieName) : undefined) ??\n this.orgSession;\n if (!postHandlerSession) {\n throw new ApiError(\n 'Organization authentication did not issue a session',\n 401\n );\n }\n this.orgSession = postHandlerSession;\n this.orgSessionOrgUuid = orgAuthInfo.orgUuid;\n try {\n return await this.fetch<T>(endpoint, options);\n } catch (retryError) {\n this.orgSession = undefined;\n this.orgSessionOrgUuid = undefined;\n throw retryError;\n }\n }\n }\n }\n\n const errorData = await response.json().catch(() => ({}));\n\n // Handle unauthorized errors for account endpoint\n if (response.status === 401 && endpoint === 'account') {\n throw new Error('unauthorized');\n }\n\n // Handle structured validation errors (Pydantic array format)\n if (Array.isArray(errorData.detail)) {\n const formattedErrors = errorData.detail\n .map((error: any) => {\n const location = error.loc.join(' > ');\n return `${location}: ${error.msg}`;\n })\n .join('\\n');\n throw new ApiError(`Validation Error:\\n${formattedErrors}`, response.status);\n }\n\n // Handle validation errors with errors array (new format)\n if (errorData.errors && Array.isArray(errorData.errors)) {\n // Structured workflow-expression validation errors — objects with\n // { field, kind, message, offendingPath, location }. Build a\n // readable message and preserve the structured payload.\n if (errorData.errors.length > 0 && isApiValidationError(errorData.errors[0])) {\n const validationErrors: ApiValidationError[] =\n errorData.errors.filter(isApiValidationError);\n const [first] = validationErrors;\n if (first) {\n const extra =\n validationErrors.length > 1\n ? ` (+${validationErrors.length - 1} more)`\n : '';\n const readable = `${first.field}: ${first.message}${extra}`;\n throw new ApiError(\n readable,\n response.status,\n validationErrors.map((e) => `${e.field}: ${e.message}`),\n validationErrors\n );\n }\n }\n\n // Legacy string-array errors.\n const stringErrors: string[] = errorData.errors.filter(\n (e: unknown): e is string => typeof e === 'string'\n );\n const details = stringErrors.join('; ');\n const message = errorData.detail\n ? `${errorData.detail}: ${details}`\n : `Validation failed: ${details}`;\n throw new ApiError(message, response.status, stringErrors);\n }\n\n // Handle structured errors (with error: true or with code property)\n const structuredError = errorData.detail || errorData;\n if (\n structuredError &&\n typeof structuredError === 'object' &&\n (structuredError.error === true || structuredError.code)\n ) {\n const message = structuredError.message || structuredError.code || 'Unknown error';\n const error = new ApiError(message, response.status);\n // Attach the full error data for frontend handling\n (error as any).errorData = structuredError;\n throw error;\n }\n\n // Handle simple error messages\n const errorMessage =\n typeof errorData.detail === 'string'\n ? errorData.detail\n : errorData.message || response.statusText;\n throw new ApiError(errorMessage, response.status);\n }\n\n // Handle 204 No Content - no JSON body to parse\n if (response.status === 204) {\n return undefined as any;\n }\n\n return response.json();\n } catch (error) {\n console.warn(error);\n throw error;\n }\n }\n\n protected async fetchRaw(\n endpoint: string,\n options?: RequestInit,\n allowedErrorStatuses: number[] = []\n ): Promise<Response> {\n try {\n const headers = new Headers({\n ...((options?.headers as Record<string, string>) || {}),\n });\n\n if (this.apiKey) {\n headers.set('Authorization', `Bearer ${this.apiKey}`);\n } else if (this.isCrossDomain) {\n // For cross-domain requests, try to use the requestToken cookie\n const requestToken = getCookieValue('requestToken');\n if (requestToken) {\n headers.set('Authorization', `Bearer ${requestToken}`);\n }\n }\n\n // Include X-Acting-Member header for member identity switching\n if (this.actingMemberUuid) {\n headers.set('X-Acting-Member', this.actingMemberUuid);\n }\n\n setOrgAuthHeader(headers, this.orgSession);\n\n const response = await this.fetchFunction(`${this.baseUrl}/api/v2/${endpoint}`, {\n ...options,\n ...(this.apiKey ? {} : { credentials: 'include' }),\n ...(this.isCrossDomain ? { mode: 'cors' } : {}),\n headers,\n });\n\n if (!response.ok) {\n // Check for step-up auth requirement per RFC 9470 (superuser 2FA re-auth needed)\n if (\n response.status === 401 &&\n requiresStepUpAuth(response.headers.get('WWW-Authenticate')) &&\n this.enhancedAuthHandler\n ) {\n // If re-auth is already in progress, wait for it\n if (this.enhancedAuthInProgress) {\n await this.enhancedAuthInProgress;\n } else {\n // Trigger re-auth and wait for completion\n this.enhancedAuthInProgress = this.enhancedAuthHandler();\n try {\n const newToken = await this.enhancedAuthInProgress;\n this.apiKey = newToken;\n } finally {\n this.enhancedAuthInProgress = null;\n }\n }\n // Retry the request with the new token\n try {\n return await this.fetchRaw(endpoint, options, allowedErrorStatuses);\n } catch (retryError) {\n this.orgSession = undefined;\n this.orgSessionOrgUuid = undefined;\n throw retryError;\n }\n }\n\n // Mirror of the org-auth branch in fetch() above; see comments there.\n if (response.status === 401) {\n const orgAuthInfo = parseOrgAuthChallenge(response.headers.get('WWW-Authenticate'));\n if (\n orgAuthInfo &&\n this.orgSession &&\n this.orgSessionOrgUuid &&\n this.orgSessionOrgUuid !== orgAuthInfo.orgUuid\n ) {\n this.orgSession = undefined;\n this.orgSessionOrgUuid = undefined;\n }\n if (orgAuthInfo && !this.orgSession) {\n const requestCookieName = getRequestOrgCookieName(orgAuthInfo.cookieName);\n const cachedOrgSession = requestCookieName\n ? getCookieValue(requestCookieName)\n : undefined;\n if (cachedOrgSession) {\n this.orgSession = cachedOrgSession;\n this.orgSessionOrgUuid = orgAuthInfo.orgUuid;\n try {\n return await this.fetchRaw(endpoint, options, allowedErrorStatuses);\n } catch (retryError) {\n this.orgSession = undefined;\n this.orgSessionOrgUuid = undefined;\n throw retryError;\n }\n }\n\n if (this.orgAuthHandler) {\n if (!this.orgAuthInProgress) {\n const handler = this.orgAuthHandler;\n this.orgAuthInProgress = (async () => {\n try {\n await handler(orgAuthInfo);\n } finally {\n this.orgAuthInProgress = null;\n }\n })();\n }\n await this.orgAuthInProgress;\n // Prefer cookie (browser). Fall back to this.orgSession which\n // non-browser handlers (e.g. CLI) set directly via setOrgSession().\n const postHandlerSession =\n (requestCookieName ? getCookieValue(requestCookieName) : undefined) ??\n this.orgSession;\n if (!postHandlerSession) {\n throw new ApiError(\n 'Organization authentication did not issue a session',\n 401\n );\n }\n this.orgSession = postHandlerSession;\n this.orgSessionOrgUuid = orgAuthInfo.orgUuid;\n try {\n return await this.fetchRaw(endpoint, options, allowedErrorStatuses);\n } catch (retryError) {\n this.orgSession = undefined;\n this.orgSessionOrgUuid = undefined;\n throw retryError;\n }\n }\n }\n }\n\n if (allowedErrorStatuses.includes(response.status)) {\n return response;\n }\n\n const errorText = await response.text().catch(() => '');\n throw new ApiError(errorText || response.statusText, response.status);\n }\n\n return response;\n } catch (error) {\n console.warn(error);\n throw error;\n }\n }\n\n /**\n * Fetch from root path (not prefixed with /api/v2/)\n * Used for OAuth and other non-API endpoints\n */\n protected async fetchRoot<T>(path: string, options?: RequestInit): Promise<T> {\n try {\n const headers = new Headers({\n ...(options?.body instanceof FormData ? {} : { 'Content-Type': 'application/json' }),\n ...((options?.headers as Record<string, string>) || {}),\n });\n\n if (this.apiKey) {\n headers.set('Authorization', `Bearer ${this.apiKey}`);\n } else if (this.isCrossDomain) {\n const requestToken = getCookieValue('requestToken');\n if (requestToken) {\n headers.set('Authorization', `Bearer ${requestToken}`);\n }\n }\n\n // Include X-Acting-Member header for member identity switching\n if (this.actingMemberUuid) {\n headers.set('X-Acting-Member', this.actingMemberUuid);\n }\n\n setOrgAuthHeader(headers, this.orgSession);\n\n const fullUrl = `${this.baseUrl}/${path}`;\n\n const response = await this.fetchFunction(fullUrl, {\n ...options,\n ...(this.apiKey ? {} : { credentials: 'include' }),\n ...(this.isCrossDomain ? { mode: 'cors' } : {}),\n headers,\n });\n\n if (!response.ok) {\n if (response.status === 404) {\n return null as T;\n }\n const errorData = await response.json().catch(() => ({}));\n const errorMessage = errorData.detail || errorData.message || response.statusText;\n throw new ApiError(errorMessage, response.status);\n }\n\n if (response.status === 204) {\n return undefined as T;\n }\n\n return response.json();\n } catch (error) {\n console.warn(error);\n throw error;\n }\n }\n}\n"],"mappings":";AACO,SAAS,eAAe,MAAkC;AAC9D,MAAI,OAAO,aAAa,YAAa,QAAO;AAE5C,QAAM,UAAU,SAAS,OAAO,MAAM,GAAG;AACzC,aAAW,UAAU,SAAS;AAC3B,UAAM,gBAAgB,OAAO,KAAK;AAClC,UAAM,UAAU,cAAc,QAAQ,GAAG;AACzC,QAAI,YAAY,GAAI;AAEpB,UAAM,aAAa,cAAc,UAAU,GAAG,OAAO;AACrD,UAAM,cAAc,cAAc,UAAU,UAAU,CAAC;AAEvD,QAAI,eAAe,MAAM;AACtB,aAAO;AAAA,IACV;AAAA,EACH;AAEA,SAAO;AACV;AAsBA,SAAS,qBAAqB,OAA6C;AACxE,MAAI,CAAC,SAAS,OAAO,UAAU,SAAU,QAAO;AAChD,QAAM,IAAI;AACV,SACG,OAAO,EAAE,UAAU,YAAY,OAAO,EAAE,SAAS,YAAY,OAAO,EAAE,YAAY;AAExF;AAEO,IAAM,WAAN,cAAuB,MAAM;AAAA,EACjC;AAAA;AAAA,EAEA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA;AAAA,EAEA,YACG,SACA,YACA,QACA,kBACD;AACC,UAAM,OAA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