@gravity-rail/sdk 0.5.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agui.cjs +78 -0
- package/dist/agui.cjs.map +1 -0
- package/dist/agui.d.cts +13 -0
- package/dist/agui.d.ts +13 -0
- package/dist/agui.js +48 -0
- package/dist/agui.js.map +1 -0
- package/dist/audio.cjs +223 -0
- package/dist/audio.cjs.map +1 -0
- package/dist/audio.d.cts +25 -0
- package/dist/audio.d.ts +25 -0
- package/dist/audio.js +147 -0
- package/dist/audio.js.map +1 -0
- package/dist/chunk-BSOOMHW6.js +62 -0
- package/dist/chunk-BSOOMHW6.js.map +1 -0
- package/dist/{chunk-XRKRVY46.js → chunk-PEWFZXNK.js} +194 -31
- package/dist/chunk-PEWFZXNK.js.map +1 -0
- package/dist/{index-BhUZfOAG.d.cts → client-CLxHFOeB.d.cts} +310 -1632
- package/dist/{index-fPswHAIF.d.ts → client-Dft3Kmkn.d.ts} +310 -1632
- package/dist/helpers.cjs +123 -0
- package/dist/helpers.cjs.map +1 -0
- package/dist/helpers.d.cts +28 -0
- package/dist/helpers.d.ts +28 -0
- package/dist/helpers.js +92 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index-CeVDRf6l.d.cts +1607 -0
- package/dist/index-D1G8EKz2.d.ts +1607 -0
- package/dist/index.cjs +186 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/{inquiries-DiTDrTG2.d.cts → inquiries-BIlL6Obb.d.cts} +28 -3
- package/dist/{inquiries-DiTDrTG2.d.ts → inquiries-BIlL6Obb.d.ts} +28 -3
- package/dist/internal.cjs +195 -30
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +4 -3
- package/dist/internal.d.ts +4 -3
- package/dist/internal.js +5 -1
- package/dist/oauth-client.cjs +78 -0
- package/dist/oauth-client.cjs.map +1 -0
- package/dist/oauth-client.d.cts +15 -0
- package/dist/oauth-client.d.ts +15 -0
- package/dist/oauth-client.js +48 -0
- package/dist/oauth-client.js.map +1 -0
- package/dist/realtime.cjs +637 -0
- package/dist/realtime.cjs.map +1 -0
- package/dist/realtime.d.cts +94 -0
- package/dist/realtime.d.ts +94 -0
- package/dist/realtime.js +580 -0
- package/dist/realtime.js.map +1 -0
- package/dist/schemas.cjs +7 -3
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +28 -6
- package/dist/schemas.d.ts +28 -6
- package/dist/schemas.js +6 -3
- package/dist/schemas.js.map +1 -1
- package/dist/types-DkYyrvoC.d.cts +19 -0
- package/dist/types-DkYyrvoC.d.ts +19 -0
- package/package.json +26 -1
- package/dist/chunk-XRKRVY46.js.map +0 -1
|
@@ -68,6 +68,9 @@ declare enum Scope {
|
|
|
68
68
|
JOURNEYS_READ = "journeys:read",
|
|
69
69
|
JOURNEYS_WRITE = "journeys:write",
|
|
70
70
|
JOURNEYS_ADMIN = "journeys:admin",
|
|
71
|
+
EXPERIMENTS_READ = "experiments:read",
|
|
72
|
+
EXPERIMENTS_WRITE = "experiments:write",
|
|
73
|
+
EXPERIMENTS_ADMIN = "experiments:admin",
|
|
71
74
|
WORKFLOWS_READ = "workflows:read",
|
|
72
75
|
WORKFLOWS_WRITE = "workflows:write",
|
|
73
76
|
WORKFLOWS_ADMIN = "workflows:admin",
|
|
@@ -1529,6 +1532,7 @@ interface CurrentMemberResponse {
|
|
|
1529
1532
|
ownerId?: number | null;
|
|
1530
1533
|
ownerName?: string | null;
|
|
1531
1534
|
canLogin?: boolean;
|
|
1535
|
+
experimentGroup?: MemberExperimentGroupSummary | null;
|
|
1532
1536
|
scopes?: string[];
|
|
1533
1537
|
}
|
|
1534
1538
|
/**
|
|
@@ -1566,6 +1570,15 @@ interface MemberCredentialResponse {
|
|
|
1566
1570
|
icon?: string | null;
|
|
1567
1571
|
iconUrl?: string | null;
|
|
1568
1572
|
}
|
|
1573
|
+
/**
|
|
1574
|
+
* Experiment group assignment included on member list rows when filtered by experiment.
|
|
1575
|
+
*/
|
|
1576
|
+
interface MemberExperimentGroupSummary {
|
|
1577
|
+
groupId: number;
|
|
1578
|
+
groupName: string;
|
|
1579
|
+
groupSlug: string;
|
|
1580
|
+
isControl: boolean;
|
|
1581
|
+
}
|
|
1569
1582
|
/**
|
|
1570
1583
|
* Response model for list of field definitions available in a workspace.
|
|
1571
1584
|
*/
|
|
@@ -1801,6 +1814,7 @@ interface WorkspaceMemberResponse {
|
|
|
1801
1814
|
ownerId?: number | null;
|
|
1802
1815
|
ownerName?: string | null;
|
|
1803
1816
|
canLogin?: boolean;
|
|
1817
|
+
experimentGroup?: MemberExperimentGroupSummary | null;
|
|
1804
1818
|
}
|
|
1805
1819
|
|
|
1806
1820
|
declare const MilestoneGoalFormDataSchema: z.ZodObject<{
|
|
@@ -1932,8 +1946,8 @@ interface AgentConfigFormData {
|
|
|
1932
1946
|
codeInterpreterEnabled?: boolean;
|
|
1933
1947
|
memoryConfig?: AgentMemoryConfig;
|
|
1934
1948
|
}
|
|
1935
|
-
type MemberFilterObjectType = 'label' | 'dataType' | 'member' | 'memberRole' | 'name' | 'email' | 'phone' | 'phoneType' | 'age' | 'dateOfBirth' | 'workflow' | 'tosAccepted' | 'notifySms' | 'notifyEmail' | 'notifyVoice' | 'smsDeliveryStatus' | 'callForwarded' | 'calendarEvent' | 'chatEngagement' | 'lastMessageActivity' | 'memberCreated' | 'isDefault' | 'memberType' | 'memberField' | 'journey';
|
|
1936
|
-
type MemberFilterFilterType = 'any' | 'all' | 'none' | 'partial' | 'notPartial' | 'exact' | 'equals' | 'notEquals' | 'notContains' | 'atLeast' | 'atMost' | 'field' | 'dateFilter' | 'greaterThan' | 'greaterThanOrEqual' | 'lessThan' | 'lessThanOrEqual' | 'within' | 'olderThan' | 'never' | 'isEmpty' | 'notEmpty' | 'before' | 'after' | 'between' | 'daysAgo' | 'lessThanDaysAgo' | 'daysUntil' | 'hasKey' | 'hasKeyValue' | 'smsDeliveryStatusNeedsAttention' | 'callForwardedAny';
|
|
1949
|
+
type MemberFilterObjectType = 'label' | 'dataType' | 'member' | 'memberRole' | 'name' | 'email' | 'phone' | 'phoneType' | 'age' | 'dateOfBirth' | 'workflow' | 'tosAccepted' | 'notifySms' | 'notifyEmail' | 'notifyVoice' | 'smsDeliveryStatus' | 'callForwarded' | 'calendarEvent' | 'chatEngagement' | 'lastMessageActivity' | 'memberCreated' | 'isDefault' | 'memberType' | 'memberField' | 'journey' | 'experiment';
|
|
1950
|
+
type MemberFilterFilterType = 'any' | 'all' | 'none' | 'partial' | 'notPartial' | 'exact' | 'equals' | 'notEquals' | 'notContains' | 'atLeast' | 'atMost' | 'field' | 'dateFilter' | 'greaterThan' | 'greaterThanOrEqual' | 'lessThan' | 'lessThanOrEqual' | 'within' | 'olderThan' | 'never' | 'isEmpty' | 'notEmpty' | 'before' | 'after' | 'between' | 'daysAgo' | 'lessThanDaysAgo' | 'daysUntil' | 'hasKey' | 'hasKeyValue' | 'smsDeliveryStatusNeedsAttention' | 'callForwardedAny' | 'inGroup';
|
|
1937
1951
|
interface MemberFilterRuleFormData {
|
|
1938
1952
|
objectType: MemberFilterObjectType;
|
|
1939
1953
|
filterType: MemberFilterFilterType;
|
|
@@ -2419,6 +2433,7 @@ interface RoutineResponse$1 {
|
|
|
2419
2433
|
intervalSeconds?: number | null;
|
|
2420
2434
|
repeatCount?: number | null;
|
|
2421
2435
|
cronString?: string | null;
|
|
2436
|
+
timezone?: string | null;
|
|
2422
2437
|
startDate?: string | null;
|
|
2423
2438
|
memberFilterId?: number | null;
|
|
2424
2439
|
memberFilterName?: string | null;
|
|
@@ -2855,6 +2870,10 @@ interface CreateRoutineRequest {
|
|
|
2855
2870
|
intervalSeconds?: number;
|
|
2856
2871
|
repeatCount?: number;
|
|
2857
2872
|
cronString?: string;
|
|
2873
|
+
/** IANA timezone the cronString is interpreted in (e.g.
|
|
2874
|
+
* "America/Los_Angeles"). Omit to default to the workspace timezone,
|
|
2875
|
+
* else UTC. Only meaningful for CRON mode. */
|
|
2876
|
+
timezone?: string;
|
|
2858
2877
|
startDate?: string;
|
|
2859
2878
|
memberFilterId?: number | null;
|
|
2860
2879
|
targetMemberId?: number | null;
|
|
@@ -2877,6 +2896,9 @@ interface UpdateRoutineRequest {
|
|
|
2877
2896
|
intervalSeconds?: number;
|
|
2878
2897
|
repeatCount?: number;
|
|
2879
2898
|
cronString?: string;
|
|
2899
|
+
/** IANA timezone the cronString is interpreted in. Pass empty string ""
|
|
2900
|
+
* to clear the override (revert to UTC). Omit to leave unchanged. */
|
|
2901
|
+
timezone?: string;
|
|
2880
2902
|
/** ISO 8601 datetime string for deferred start. Pass empty string "" to clear the start date. */
|
|
2881
2903
|
startDate?: string;
|
|
2882
2904
|
memberFilterId?: number | null;
|
|
@@ -2917,6 +2939,9 @@ interface RoutineRunsQueryParams {
|
|
|
2917
2939
|
interface SchedulePreviewRequest {
|
|
2918
2940
|
cronString: string;
|
|
2919
2941
|
count?: number;
|
|
2942
|
+
/** IANA timezone the cronString is interpreted in (default UTC) so the
|
|
2943
|
+
* previewed run times match what the dispatcher will fire. */
|
|
2944
|
+
timezone?: string;
|
|
2920
2945
|
}
|
|
2921
2946
|
interface TaskExportEventRuleRelation {
|
|
2922
2947
|
taskUuid: string;
|
|
@@ -3533,4 +3558,4 @@ type UpdateInquiryInput = z.infer<typeof UpdateInquirySchema>;
|
|
|
3533
3558
|
type EnrichInquiryInput = z.infer<typeof EnrichInquirySchema>;
|
|
3534
3559
|
type DeleteInquiryInput = z.infer<typeof DeleteInquirySchema>;
|
|
3535
3560
|
|
|
3536
|
-
export { type BusinessProfileSubmitResponse as $, AccessLevel as A, type ApiKeyCreatedResponse as B, type ApiKeyFormData as C, type ApiKeyScope as D, type ApiKeyScopesResponse as E, type AssignmentSortField as F, type AssistantMessageActionParams as G, type AttendeeResponse as H, AttendeeResponseStatus as I, AttendeeStatus as J, type AuthorizedRep as K, type AvailabilityCheck as L, type AvailabilityResponse as M, type AvailableSlotsRequest as N, type AvailableSlotsResponse as O, type BotSortField as P, type BulkCreateDataRecordRequest as Q, type BulkCreateDataRecordResponse as R, type BulkCreateMembersRequest as S, type BulkCreateMembersResponse as T, type BulkMemberItem as U, type BulkMemberResult as V, BulkMemberResultStatus as W, type BulkRecordResult as X, BusinessIndustry as Y, type BusinessInfo as Z, type BusinessProfileCancelResponse as _, type AccountResponse as a, type DataTypeMemberRoleAccessInput as a$, BusinessType as a0, type Calendar as a1, type EventResponse as a2, type CalendarEventFormData as a3, type CalendarEventSortField as a4, CalendarEventStatus as a5, type EventTypeResponse as a6, type CalendarEventTypeFormData as a7, type CalendarEventsQueryParams as a8, type CalendarFormData as a9, type CredentialChangeInviteConfirmResponse as aA, type CredentialChangeInviteDetailsResponse as aB, type CredentialChangeInviteResponse as aC, type CredentialChangeRequestResponse as aD, type CredentialChangeVerifyResponse as aE, type CredentialType as aF, type CurrentMemberResponse as aG, type CurrentOrgMember as aH, type CursorPaginatedResponse as aI, DataCategory as aJ, type DataExportResponse as aK, type DataField as aL, type DataFieldFormData as aM, DataFieldType as aN, type DataIntegrityReportItem as aO, type DataRecordResponse as aP, type DataRecordAssociationFormData as aQ, type DataRecordFieldWarning as aR, type DataRecordFormData as aS, type DataRecordReportItem 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_, CalendarPermissionType as aa, type CalendarResponse as ab, type CalendarSchedule as ac, CalendarScheduleAvailabilityType as ad, type CalendarScheduleFormData as ae, CalendarScheduleRecurrence as af, type CalendarScheduleResponse as ag, CalendarSource as ah, type CancelCredentialChangeInviteResponse as ai, type CancelCredentialChangeResponse as aj, type ChatContinueActionParams as ak, type ChatCreateActionParams as al, type ChatPauseActionParams as am, type ChatSortField as an, type ChatSummarizeActionParams as ao, type ConcludeAssignmentActionParams as ap, type ConsentRecordExport as aq, type CreateAccountOrgMembershipRequest as ar, type CreateAccountOrgMembershipResponse as as, type CreateAgentRequest as at, type CreateAnonymousMemberRequest as au, type CreateCredentialChangeInviteRequest as av, type CreateOrganizationRequest as aw, type CreateRoutineRequest as ax, type CreateSignupResponse as ay, type CreateWorkspaceMemberRequest as az, type AccountDataExport as b, type MemberFieldDefinitionResponse as b$, type DataTypeMemberRoleAccessResponse as b0, DataTypeRecordScope as b1, type DataTypeSortField as b2, type DeleteAccountOrgMembershipResponse as b3, type DeletionCancelResponse as b4, type DeletionRequestResponse as b5, type DetailedAccount as b6, type DuplicateAccountInfo as b7, type EcwRefreshMemberEncountersActionParams as b8, type EmailDisableImpactResponse as b9, type OrgDomainResponse as bA, type OwnershipDnsRecord as bB, type TwoFactorMethodResponse$1 as bC, type TwoFactorStatusResponse$1 as bD, type GoogleCalendarInfo as bE, type GoogleCalendarInsufficientScopesResponse as bF, type GoogleCalendarStatusResponse as bG, type ICalFeedTokenResponse as bH, type ICalFeedUrlResponse as bI, IndexStatus as bJ, type IndexStatusResponse as bK, type InvokeCustomToolActionParams as bL, JobPosition as bM, type JourneyEnrollActionParams as bN, type JourneySortField as bO, type LibModelsGlbResponsesOrganizationResponsesSSOConfigResponse as bP, type LinkCalendarRequest as bQ, type LinkCalendarResponse as bR, type LoginRequest as bS, type LoginResponse as bT, type LogoUploadRequest as bU, type LogoUploadResponse as bV, MASKED_SECRET_SENTINEL as bW, type McpServerSortField as bX, type WorkspaceMemberResponse as bY, type MemberCredentialResponse as bZ, type MemberFieldResponse as b_, EmailDnsRecordType as ba, type EmailDomainConfigResponse as bb, type EmailSendActionParams as bc, type EmailVerificationResponse as bd, type EnumOption as be, type ErrorResponse as bf, type EventActionMapping as bg, type EventActionMappingsResponse as bh, type EventRule as bi, EventRuleActionType as bj, EventRuleEventType as bk, type EventRuleExportItem as bl, type EventRuleFormData as bm, type EventRuleInput as bn, EventRuleObjectType as bo, type EventRuleResponse as bp, type EventRunSortField as bq, type ExpireAnonymousMemberRequest as br, type FileSortField as bs, type FormFieldUpdateActionParams as bt, type GenerateRecoveryCodesRequest as bu, type BusinessProfileResponse as bv, type CalendarResponse$1 as bw, type CalendarScheduleResponse$1 as bx, type MemoryListResponse as by, type MemoryResponse$1 as bz, type AccountFormData as c, PERMISSION_DELETE as c$, type MemberFieldDefinitionListResponse as c0, type MemberFieldListResponse as c1, type MemberFilterResponse as c2, type MemberFilterFilterType as c3, type MemberFilterFormData as c4, type MemberFilterObjectType as c5, type MemberFilterRuleResponse as c6, type MemberFilterRuleFormData as c7, type MemberFormData as c8, type MemberLabelResponse as c9, type MergeMembersRequest as cA, type MergeMembersResponse as cB, type MessageValidationActionParams as cC, type MilestoneSortField as cD, type MissingMembershipItem as cE, type MondayColumnMapping as cF, type MondayLookupType as cG, type MondayRefreshActionParams as cH, type MondayRefreshColumnMapping as cI, type MondayUpsertItemActionParams as cJ, type MondayUpsertMode as cK, type MultiMatchBehavior as cL, type NormalizeMemberRequest as cM, type NormalizeMemberResponse as cN, type OIDCAdminConfigInput as cO, type OIDCAdminConfigView as cP, OIDCAdminConfigViewProviderType as cQ, type ObjectPermission as cR, type ObjectPermissionFlags as cS, type OrgMember as cT, type OrgMemberListResponse as cU, type OrgMemberRole as cV, type OrgMembershipExport as cW, type OrganizationResponse as cX, type OwnershipVerificationResponse as cY, PERMISSION_ADMIN as cZ, PERMISSION_CREATE as c_, type MemberLabelActionParams as ca, type MemberLabelFormData as cb, type MemberMemoriesResponse as cc, type MemberMessageActivity as cd, type MemberOrgView as ce, type MemberReportItem as cf, type MemberRoleResponse as cg, type MemberRoleCalendarAccessResponse as ch, type MemberRoleDataTypeAccessResponse as ci, type MemberRoleFileAccessResponse as cj, type MemberRoleFolderAccessResponse as ck, type MemberRoleFormData as cl, type MemberRoleInboxAccessResponse as cm, type MemberRoleSiteAccessResponse as cn, type MemberRoleTaskAccess as co, type MemberRoleWorkflowAccessResponse as cp, type MemberSortField as cq, type MemberSummary as cr, MemberType as cs, type MemberUpsertActionParams as ct, type MemberUpsertBehavior as cu, type MemberWorkspaceInfo as cv, type MembersQueryParams as cw, type MemoryItem as cx, type MemoryResponse as cy, type MemoryType as cz, type AccountLookupResponse as d, type TwoFactorMethodType as d$, PERMISSION_EDIT as d0, PERMISSION_GEOLOCATE as d1, PERMISSION_LIST as d2, PERMISSION_LIST_ALL as d3, PERMISSION_NONE as d4, PERMISSION_USE as d5, PERMISSION_VERIFY as d6, type PageSortField as d7, type PaginatedResponse as d8, type PendingAnonymousMembersResponse as d9, type SchedulePreviewRequest as dA, type SchedulePreviewResponse as dB, type SchemaField as dC, Scope as dD, type SendEmailVerificationRequest as dE, type SessionExchangeRequest as dF, type SessionExchangeResponse as dG, type SetupTOTPRequest as dH, type SetupWebAuthnRequest as dI, type SignupAccountResponse as dJ, type SignupMemberResponse as dK, type SiteDisableImpactResponse as dL, SiteDnsRecordType as dM, type SiteDomainConfigResponse as dN, type SiteSortField as dO, type SiteVerificationResponse as dP, type SmsSendActionParams as dQ, type SortOrder as dR, type SwitchTaskActionParams as dS, type SyncCalendarResponse as dT, type TOTPSetupResponse as dU, type TaskExportDataTypeRelation as dV, type TaskExportEventRuleRelation as dW, type TaskSortField as dX, type TimeSlot as dY, type TwoFactorMethod as dZ, type TwoFactorMethodResponse as d_, type PendingCredentialChangeResponse as da, type PendingCredentialChangeInviteResponse as db, type PhoneCallActionParams as dc, type PlayAudioActionParams as dd, type QualificationSortField as de, type RecoveryCodeResponse as df, Region as dg, RegistrationIdentifier as dh, type RequestCredentialChangeRequest as di, type RequestMagicLinkRequest as dj, type RequestMagicLinkResponse as dk, type ResolveAnonymousMemberRequest as dl, type Routine as dm, type RoutineResponse as dn, type RoutineRunResponse as dp, type RoutineRunStatus as dq, type RoutineRunsQueryParams as dr, type RoutineScheduleMode as ds, type RoutineSortField as dt, type RoutineVisibility as du, type RoutinesQueryParams as dv, type RuleExecutionSortField as dw, type RuleExecutionsQueryParams as dx, type SendLoginCodeResponse as dy, type SSOConfigData as dz, type AccountReportItem as e, type TwoFactorOperationResponse as e0, type TwoFactorStatus as e1, type TwoFactorStatusResponse as e2, type UnlinkCalendarResponse as e3, type UpdateAgentRequest as e4, type UpdateAttendeeRequest as e5, type UpdateEventRuleFormData as e6, type UpdateOrgMemberRequest as e7, type UpdateOrganizationRequest as e8, type UpdateRoutineRequest as e9, type DeleteMilestoneInput as eA, DeleteMilestoneSchema as eB, type EnrichInquiryInput as eC, EnrichInquirySchema as eD, type GetInquiryInput as eE, GetInquirySchema as eF, type GetMilestoneInput as eG, GetMilestoneSchema as eH, type ListInquiriesInput as eI, ListInquiriesSchema as eJ, type ListMilestonesInput as eK, ListMilestonesSchema as eL, type MilestoneFormData as eM, MilestoneFormDataSchema as eN, MilestoneGoalFormDataSchema as eO, type UpdateInquiryInput as eP, UpdateInquiryRequestSchema as eQ, UpdateInquirySchema as eR, type UpdateMilestoneInput as eS, UpdateMilestoneSchema as eT, type EventRuleResponse$1 as eU, type EmailDnsRecord as eV, type EmailDomainConfigGetResponse as eW, type OrgDomainListResponse as eX, type SiteDnsRecord as eY, type SiteDomainConfigGetResponse as eZ, type UpdateTwoFactorMethodRequest as ea, type UpdateWorkspaceMemberRequest as eb, type ValidateMagicLinkRequest as ec, type ValidateMagicLinkResponse as ed, type VerifyCodeRequest as ee, type VerifyCodeResponse as ef, type VerifyCredentialChangeRequest as eg, type VerifyEmailRequest as eh, type VerifyTOTPSetupRequest as ei, type VerifyWebAuthnSetupRequest as ej, type WebAuthnRegistrationResponse as ek, type WebhookActionParams as el, type WebhookLogSortField as em, type WebhookLogsQueryParams as en, type WorkflowSortField as eo, type WorkspaceMembershipExport as ep, type WorkspaceSortField as eq, decodePermissions as er, encodePermissions as es, eventRuleActionParams as et, type CreateInquiryInput as eu, CreateInquirySchema as ev, type CreateMilestoneInput as ew, CreateMilestoneSchema as ex, type DeleteInquiryInput as ey, DeleteInquirySchema as ez, type AccountSortField as f, type AccountState as g, type Address as h, type AdminAccountResponse as i, type AdminAccountFormData as j, type AdminAccountMembership as k, type AdminAccountMembershipResponse as l, type AdminAccountOrgMembershipResponse as m, type AdminOrganization as n, type AdminOrganizationResponse as o, type AdminWorkspaceMemberFormData as p, type AdminWorkspaceSortField as q, type AgentResponse as r, type AgentConfigResponse as s, type AgentConfigFormData as t, type AgentMemoryConfig as u, type AgentSortField as v, type AnonymousInteractionResponse as w, type AnonymousMemberResolutionResponse as x, type AnonymousMemberResolutionStatus as y, type ApiKeyResponse as z };
|
|
3561
|
+
export { type BusinessProfileCancelResponse as $, AccessLevel as A, type ApiKeyCreatedResponse as B, type ApiKeyFormData as C, type ApiKeyScope as D, type ApiKeyScopesResponse as E, type AssignmentSortField as F, type AssistantMessageActionParams as G, type AttendeeResponse as H, AttendeeResponseStatus as I, AttendeeStatus as J, type AuthorizedRep as K, type AvailabilityCheck as L, type AvailabilityResponse as M, type AvailableSlotsRequest as N, type AvailableSlotsResponse as O, type BotSortField as P, type BulkCreateDataRecordRequest as Q, type BulkCreateDataRecordResponse as R, type BulkCreateMembersRequest as S, type BulkCreateMembersResponse as T, type BulkMemberItem as U, type BulkMemberResult as V, type WorkspaceMemberResponse as W, BulkMemberResultStatus as X, type BulkRecordResult as Y, BusinessIndustry as Z, type BusinessInfo as _, type AccountResponse as a, type DataTypeFormData as a$, type BusinessProfileSubmitResponse as a0, BusinessType as a1, type Calendar as a2, type EventResponse as a3, type CalendarEventFormData as a4, type CalendarEventSortField as a5, CalendarEventStatus as a6, type EventTypeResponse as a7, type CalendarEventTypeFormData as a8, type CalendarEventsQueryParams as a9, type CreateWorkspaceMemberRequest as aA, type CredentialChangeInviteConfirmResponse as aB, type CredentialChangeInviteDetailsResponse as aC, type CredentialChangeInviteResponse as aD, type CredentialChangeRequestResponse as aE, type CredentialChangeVerifyResponse as aF, type CredentialType as aG, type CurrentMemberResponse as aH, type CurrentOrgMember as aI, type CursorPaginatedResponse as aJ, DataCategory as aK, type DataExportResponse as aL, type DataField as aM, type DataFieldFormData as aN, DataFieldType as aO, type DataIntegrityReportItem as aP, type DataRecordResponse as aQ, type DataRecordAssociationFormData as aR, type DataRecordFieldWarning as aS, type DataRecordFormData as aT, type DataRecordReportItem as aU, type DataRecordUpdateResponse as aV, type DataRecordWithAccessMode as aW, type DataRecordsPaginatedResponse as aX, DataSensitivity as aY, type DataTypeResponse as aZ, type DataTypeExportItem as a_, type CalendarFormData as aa, CalendarPermissionType as ab, type CalendarResponse as ac, type CalendarSchedule as ad, CalendarScheduleAvailabilityType as ae, type CalendarScheduleFormData as af, CalendarScheduleRecurrence as ag, type CalendarScheduleResponse as ah, CalendarSource as ai, type CancelCredentialChangeInviteResponse as aj, type CancelCredentialChangeResponse as ak, type ChatContinueActionParams as al, type ChatCreateActionParams as am, type ChatPauseActionParams as an, type ChatSortField as ao, type ChatSummarizeActionParams as ap, type ConcludeAssignmentActionParams as aq, type ConsentRecordExport as ar, type CreateAccountOrgMembershipRequest as as, type CreateAccountOrgMembershipResponse as at, type CreateAgentRequest as au, type CreateAnonymousMemberRequest as av, type CreateCredentialChangeInviteRequest as aw, type CreateOrganizationRequest as ax, type CreateRoutineRequest as ay, type CreateSignupResponse as az, type AccountDataExport as b, type MemberFieldDefinitionResponse as b$, type DataTypeMemberRoleAccessInput as b0, type DataTypeMemberRoleAccessResponse as b1, DataTypeRecordScope as b2, type DataTypeSortField as b3, type DeleteAccountOrgMembershipResponse as b4, type DeletionCancelResponse as b5, type DeletionRequestResponse as b6, type DetailedAccount as b7, type DuplicateAccountInfo as b8, type EcwRefreshMemberEncountersActionParams as b9, type MemoryResponse$1 as bA, type OrgDomainResponse as bB, type OwnershipDnsRecord as bC, type TwoFactorMethodResponse$1 as bD, type TwoFactorStatusResponse$1 as bE, type GoogleCalendarInfo as bF, type GoogleCalendarInsufficientScopesResponse as bG, type GoogleCalendarStatusResponse as bH, type ICalFeedTokenResponse as bI, type ICalFeedUrlResponse as bJ, IndexStatus as bK, type IndexStatusResponse as bL, type InvokeCustomToolActionParams as bM, JobPosition as bN, type JourneyEnrollActionParams as bO, type JourneySortField as bP, type LibModelsGlbResponsesOrganizationResponsesSSOConfigResponse as bQ, type LinkCalendarRequest as bR, type LinkCalendarResponse as bS, type LoginRequest as bT, type LoginResponse as bU, type LogoUploadRequest as bV, type LogoUploadResponse as bW, MASKED_SECRET_SENTINEL as bX, type McpServerSortField as bY, type MemberCredentialResponse as bZ, type MemberFieldResponse as b_, type EmailDisableImpactResponse as ba, EmailDnsRecordType as bb, type EmailDomainConfigResponse as bc, type EmailSendActionParams as bd, type EmailVerificationResponse as be, type EnumOption as bf, type ErrorResponse as bg, type EventActionMapping as bh, type EventActionMappingsResponse as bi, type EventRule as bj, EventRuleActionType as bk, EventRuleEventType as bl, type EventRuleExportItem as bm, type EventRuleFormData as bn, type EventRuleInput as bo, EventRuleObjectType as bp, type EventRuleResponse as bq, type EventRunSortField as br, type ExpireAnonymousMemberRequest as bs, type FileSortField as bt, type FormFieldUpdateActionParams as bu, type GenerateRecoveryCodesRequest as bv, type BusinessProfileResponse as bw, type CalendarResponse$1 as bx, type CalendarScheduleResponse$1 as by, type MemoryListResponse as bz, type AccountFormData as c, PERMISSION_DELETE as c$, type MemberFieldDefinitionListResponse as c0, type MemberFieldListResponse as c1, type MemberFilterResponse as c2, type MemberFilterFilterType as c3, type MemberFilterFormData as c4, type MemberFilterObjectType as c5, type MemberFilterRuleResponse as c6, type MemberFilterRuleFormData as c7, type MemberFormData as c8, type MemberLabelResponse as c9, type MergeMembersRequest as cA, type MergeMembersResponse as cB, type MessageValidationActionParams as cC, type MilestoneSortField as cD, type MissingMembershipItem as cE, type MondayColumnMapping as cF, type MondayLookupType as cG, type MondayRefreshActionParams as cH, type MondayRefreshColumnMapping as cI, type MondayUpsertItemActionParams as cJ, type MondayUpsertMode as cK, type MultiMatchBehavior as cL, type NormalizeMemberRequest as cM, type NormalizeMemberResponse as cN, type OIDCAdminConfigInput as cO, type OIDCAdminConfigView as cP, OIDCAdminConfigViewProviderType as cQ, type ObjectPermission as cR, type ObjectPermissionFlags as cS, type OrgMember as cT, type OrgMemberListResponse as cU, type OrgMemberRole as cV, type OrgMembershipExport as cW, type OrganizationResponse as cX, type OwnershipVerificationResponse as cY, PERMISSION_ADMIN as cZ, PERMISSION_CREATE as c_, type MemberLabelActionParams as ca, type MemberLabelFormData as cb, type MemberMemoriesResponse as cc, type MemberMessageActivity as cd, type MemberOrgView as ce, type MemberReportItem as cf, type MemberRoleResponse as cg, type MemberRoleCalendarAccessResponse as ch, type MemberRoleDataTypeAccessResponse as ci, type MemberRoleFileAccessResponse as cj, type MemberRoleFolderAccessResponse as ck, type MemberRoleFormData as cl, type MemberRoleInboxAccessResponse as cm, type MemberRoleSiteAccessResponse as cn, type MemberRoleTaskAccess as co, type MemberRoleWorkflowAccessResponse as cp, type MemberSortField as cq, type MemberSummary as cr, MemberType as cs, type MemberUpsertActionParams as ct, type MemberUpsertBehavior as cu, type MemberWorkspaceInfo as cv, type MembersQueryParams as cw, type MemoryItem as cx, type MemoryResponse as cy, type MemoryType as cz, type AccountLookupResponse as d, type TwoFactorMethodType as d$, PERMISSION_EDIT as d0, PERMISSION_GEOLOCATE as d1, PERMISSION_LIST as d2, PERMISSION_LIST_ALL as d3, PERMISSION_NONE as d4, PERMISSION_USE as d5, PERMISSION_VERIFY as d6, type PageSortField as d7, type PaginatedResponse as d8, type PendingAnonymousMembersResponse as d9, type SchedulePreviewRequest as dA, type SchedulePreviewResponse as dB, type SchemaField as dC, Scope as dD, type SendEmailVerificationRequest as dE, type SessionExchangeRequest as dF, type SessionExchangeResponse as dG, type SetupTOTPRequest as dH, type SetupWebAuthnRequest as dI, type SignupAccountResponse as dJ, type SignupMemberResponse as dK, type SiteDisableImpactResponse as dL, SiteDnsRecordType as dM, type SiteDomainConfigResponse as dN, type SiteSortField as dO, type SiteVerificationResponse as dP, type SmsSendActionParams as dQ, type SortOrder as dR, type SwitchTaskActionParams as dS, type SyncCalendarResponse as dT, type TOTPSetupResponse as dU, type TaskExportDataTypeRelation as dV, type TaskExportEventRuleRelation as dW, type TaskSortField as dX, type TimeSlot as dY, type TwoFactorMethod as dZ, type TwoFactorMethodResponse as d_, type PendingCredentialChangeResponse as da, type PendingCredentialChangeInviteResponse as db, type PhoneCallActionParams as dc, type PlayAudioActionParams as dd, type QualificationSortField as de, type RecoveryCodeResponse as df, Region as dg, RegistrationIdentifier as dh, type RequestCredentialChangeRequest as di, type RequestMagicLinkRequest as dj, type RequestMagicLinkResponse as dk, type ResolveAnonymousMemberRequest as dl, type Routine as dm, type RoutineResponse as dn, type RoutineRunResponse as dp, type RoutineRunStatus as dq, type RoutineRunsQueryParams as dr, type RoutineScheduleMode as ds, type RoutineSortField as dt, type RoutineVisibility as du, type RoutinesQueryParams as dv, type RuleExecutionSortField as dw, type RuleExecutionsQueryParams as dx, type SendLoginCodeResponse as dy, type SSOConfigData as dz, type AccountReportItem as e, type TwoFactorOperationResponse as e0, type TwoFactorStatus as e1, type TwoFactorStatusResponse as e2, type UnlinkCalendarResponse as e3, type UpdateAgentRequest as e4, type UpdateAttendeeRequest as e5, type UpdateEventRuleFormData as e6, type UpdateOrgMemberRequest as e7, type UpdateOrganizationRequest as e8, type UpdateRoutineRequest as e9, type DeleteMilestoneInput as eA, DeleteMilestoneSchema as eB, type EnrichInquiryInput as eC, EnrichInquirySchema as eD, type GetInquiryInput as eE, GetInquirySchema as eF, type GetMilestoneInput as eG, GetMilestoneSchema as eH, type ListInquiriesInput as eI, ListInquiriesSchema as eJ, type ListMilestonesInput as eK, ListMilestonesSchema as eL, type MilestoneFormData as eM, MilestoneFormDataSchema as eN, MilestoneGoalFormDataSchema as eO, type UpdateInquiryInput as eP, UpdateInquiryRequestSchema as eQ, UpdateInquirySchema as eR, type UpdateMilestoneInput as eS, UpdateMilestoneSchema as eT, type EventRuleResponse$1 as eU, type EmailDnsRecord as eV, type EmailDomainConfigGetResponse as eW, type OrgDomainListResponse as eX, type SiteDnsRecord as eY, type SiteDomainConfigGetResponse as eZ, type UpdateTwoFactorMethodRequest as ea, type UpdateWorkspaceMemberRequest as eb, type ValidateMagicLinkRequest as ec, type ValidateMagicLinkResponse as ed, type VerifyCodeRequest as ee, type VerifyCodeResponse as ef, type VerifyCredentialChangeRequest as eg, type VerifyEmailRequest as eh, type VerifyTOTPSetupRequest as ei, type VerifyWebAuthnSetupRequest as ej, type WebAuthnRegistrationResponse as ek, type WebhookActionParams as el, type WebhookLogSortField as em, type WebhookLogsQueryParams as en, type WorkflowSortField as eo, type WorkspaceMembershipExport as ep, type WorkspaceSortField as eq, decodePermissions as er, encodePermissions as es, eventRuleActionParams as et, type CreateInquiryInput as eu, CreateInquirySchema as ev, type CreateMilestoneInput as ew, CreateMilestoneSchema as ex, type DeleteInquiryInput as ey, DeleteInquirySchema as ez, type AccountSortField as f, type AccountState as g, type Address as h, type AdminAccountResponse as i, type AdminAccountFormData as j, type AdminAccountMembership as k, type AdminAccountMembershipResponse as l, type AdminAccountOrgMembershipResponse as m, type AdminOrganization as n, type AdminOrganizationResponse as o, type AdminWorkspaceMemberFormData as p, type AdminWorkspaceSortField as q, type AgentResponse as r, type AgentConfigResponse as s, type AgentConfigFormData as t, type AgentMemoryConfig as u, type AgentSortField as v, type AnonymousInteractionResponse as w, type AnonymousMemberResolutionResponse as x, type AnonymousMemberResolutionStatus as y, type ApiKeyResponse as z };
|
package/dist/internal.cjs
CHANGED
|
@@ -198,6 +198,7 @@ __export(internal_exports, {
|
|
|
198
198
|
bindCustomersMethods: () => bindCustomersMethods,
|
|
199
199
|
bindDataTypesMethods: () => bindDataTypesMethods,
|
|
200
200
|
bindEventsMethods: () => bindEventsMethods,
|
|
201
|
+
bindExperimentsMethods: () => bindExperimentsMethods,
|
|
201
202
|
bindFilesMethods: () => bindFilesMethods,
|
|
202
203
|
bindIntegrationsMethods: () => bindIntegrationsMethods,
|
|
203
204
|
bindJourneysMethods: () => bindJourneysMethods,
|
|
@@ -241,6 +242,7 @@ __export(internal_exports, {
|
|
|
241
242
|
isFeatureAvailable: () => isFeatureAvailable,
|
|
242
243
|
isRegistryInitialized: () => isRegistryInitialized,
|
|
243
244
|
isSMSDeliveryFailureStatus: () => isSMSDeliveryFailureStatus,
|
|
245
|
+
parseExperimentStatCount: () => parseExperimentStatCount,
|
|
244
246
|
requiresAssistantParticipant: () => requiresAssistantParticipant,
|
|
245
247
|
usesBuiltinAssistant: () => usesBuiltinAssistant,
|
|
246
248
|
validateFeatureDependencies: () => validateFeatureDependencies
|
|
@@ -307,6 +309,9 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
|
307
309
|
Scope2["JOURNEYS_READ"] = "journeys:read";
|
|
308
310
|
Scope2["JOURNEYS_WRITE"] = "journeys:write";
|
|
309
311
|
Scope2["JOURNEYS_ADMIN"] = "journeys:admin";
|
|
312
|
+
Scope2["EXPERIMENTS_READ"] = "experiments:read";
|
|
313
|
+
Scope2["EXPERIMENTS_WRITE"] = "experiments:write";
|
|
314
|
+
Scope2["EXPERIMENTS_ADMIN"] = "experiments:admin";
|
|
310
315
|
Scope2["WORKFLOWS_READ"] = "workflows:read";
|
|
311
316
|
Scope2["WORKFLOWS_WRITE"] = "workflows:write";
|
|
312
317
|
Scope2["WORKFLOWS_ADMIN"] = "workflows:admin";
|
|
@@ -484,6 +489,7 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
484
489
|
WorkspaceFeature2["CALENDAR"] = "calendar";
|
|
485
490
|
WorkspaceFeature2["DIRECT_MESSAGES"] = "direct_messages";
|
|
486
491
|
WorkspaceFeature2["JOURNEYS"] = "journeys";
|
|
492
|
+
WorkspaceFeature2["EXPERIMENTS"] = "experiments";
|
|
487
493
|
WorkspaceFeature2["OPERATOR"] = "operator";
|
|
488
494
|
WorkspaceFeature2["PRESENCE"] = "presence";
|
|
489
495
|
WorkspaceFeature2["GMAIL"] = "gmail";
|
|
@@ -795,6 +801,11 @@ var ConsentMethod = /* @__PURE__ */ ((ConsentMethod2) => {
|
|
|
795
801
|
return ConsentMethod2;
|
|
796
802
|
})(ConsentMethod || {});
|
|
797
803
|
|
|
804
|
+
// src/types/experiment-types.ts
|
|
805
|
+
function parseExperimentStatCount(value) {
|
|
806
|
+
return typeof value === "number" ? value : null;
|
|
807
|
+
}
|
|
808
|
+
|
|
798
809
|
// src/types/agent-task-types.ts
|
|
799
810
|
var TERMINAL_TASK_STATES = [
|
|
800
811
|
"TASK_STATE_COMPLETED",
|
|
@@ -1338,6 +1349,7 @@ var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
|
|
|
1338
1349
|
ScopeCategory2["RECORDS"] = "records";
|
|
1339
1350
|
ScopeCategory2["FILES"] = "files";
|
|
1340
1351
|
ScopeCategory2["JOURNEYS"] = "journeys";
|
|
1352
|
+
ScopeCategory2["EXPERIMENTS"] = "experiments";
|
|
1341
1353
|
ScopeCategory2["SITES"] = "sites";
|
|
1342
1354
|
ScopeCategory2["AGENTS"] = "agents";
|
|
1343
1355
|
ScopeCategory2["CALENDARS"] = "calendars";
|
|
@@ -1597,6 +1609,26 @@ var SCOPES = {
|
|
|
1597
1609
|
implies: ["journeys:write"]
|
|
1598
1610
|
},
|
|
1599
1611
|
// =========================================================================
|
|
1612
|
+
// EXPERIMENTS
|
|
1613
|
+
// =========================================================================
|
|
1614
|
+
"experiments:read": {
|
|
1615
|
+
name: "experiments:read",
|
|
1616
|
+
category: "experiments" /* EXPERIMENTS */,
|
|
1617
|
+
description: "View experiments and assignments"
|
|
1618
|
+
},
|
|
1619
|
+
"experiments:write": {
|
|
1620
|
+
name: "experiments:write",
|
|
1621
|
+
category: "experiments" /* EXPERIMENTS */,
|
|
1622
|
+
description: "Create and edit experiments",
|
|
1623
|
+
implies: ["experiments:read"]
|
|
1624
|
+
},
|
|
1625
|
+
"experiments:admin": {
|
|
1626
|
+
name: "experiments:admin",
|
|
1627
|
+
category: "experiments" /* EXPERIMENTS */,
|
|
1628
|
+
description: "Delete draft experiments and archive experiments",
|
|
1629
|
+
implies: ["experiments:write"]
|
|
1630
|
+
},
|
|
1631
|
+
// =========================================================================
|
|
1600
1632
|
// SITES
|
|
1601
1633
|
// =========================================================================
|
|
1602
1634
|
"sites:read": {
|
|
@@ -3635,6 +3667,22 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
3635
3667
|
body: JSON.stringify(chat)
|
|
3636
3668
|
});
|
|
3637
3669
|
}
|
|
3670
|
+
/**
|
|
3671
|
+
* Create a workflow assignment chat on `phone-voice` and initiate an outbound call
|
|
3672
|
+
* to the member (same as POST /chats with channel phone-voice + send_initial_message).
|
|
3673
|
+
*/
|
|
3674
|
+
async createWorkflowOutboundVoiceChat(wid, input) {
|
|
3675
|
+
const { memberId, workflowId, phoneNumberId, title, chatType } = input;
|
|
3676
|
+
return this.createChat(wid, {
|
|
3677
|
+
channel: "phone-voice",
|
|
3678
|
+
chatType: chatType ?? "assignment",
|
|
3679
|
+
workflowId,
|
|
3680
|
+
phoneNumberId,
|
|
3681
|
+
memberId,
|
|
3682
|
+
title: title ?? `Outbound voice \u2192 member ${memberId}`,
|
|
3683
|
+
participants: [{ memberId, role: "user" }]
|
|
3684
|
+
});
|
|
3685
|
+
}
|
|
3638
3686
|
/** Delete a chat, optionally providing a reason. */
|
|
3639
3687
|
async deleteChat(wid, id, reason) {
|
|
3640
3688
|
return this.fetch(`w/${wid}/chats/${id}`, {
|
|
@@ -4566,6 +4614,99 @@ var EventsApi = class extends BaseApiClient {
|
|
|
4566
4614
|
}
|
|
4567
4615
|
};
|
|
4568
4616
|
|
|
4617
|
+
// src/api/experiments.ts
|
|
4618
|
+
var ExperimentsApi = class extends BaseApiClient {
|
|
4619
|
+
/** List experiments with group summaries and assignment counts. */
|
|
4620
|
+
async getExperiments(wid, params) {
|
|
4621
|
+
const query = new URLSearchParams();
|
|
4622
|
+
if (params?.page !== void 0) query.set("page", String(params.page));
|
|
4623
|
+
if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
|
|
4624
|
+
if (params?.includeArchived) query.set("includeArchived", "true");
|
|
4625
|
+
const qs = query.toString() ? `?${query.toString()}` : "";
|
|
4626
|
+
return this.fetch(`w/${wid}/experiments${qs}`);
|
|
4627
|
+
}
|
|
4628
|
+
/** Get a single experiment by ID (includes groups). */
|
|
4629
|
+
async getExperiment(wid, experimentId) {
|
|
4630
|
+
return this.fetch(`w/${wid}/experiments/${experimentId}`);
|
|
4631
|
+
}
|
|
4632
|
+
/** Create a draft experiment. */
|
|
4633
|
+
async createExperiment(wid, data) {
|
|
4634
|
+
return this.fetch(`w/${wid}/experiments`, {
|
|
4635
|
+
method: "POST",
|
|
4636
|
+
body: JSON.stringify(data)
|
|
4637
|
+
});
|
|
4638
|
+
}
|
|
4639
|
+
/** Update experiment metadata or lifecycle status. */
|
|
4640
|
+
async updateExperiment(wid, experimentId, data) {
|
|
4641
|
+
return this.fetch(`w/${wid}/experiments/${experimentId}`, {
|
|
4642
|
+
method: "PATCH",
|
|
4643
|
+
body: JSON.stringify(data)
|
|
4644
|
+
});
|
|
4645
|
+
}
|
|
4646
|
+
/** Hard-delete a draft experiment, or archive otherwise. */
|
|
4647
|
+
async deleteExperiment(wid, experimentId) {
|
|
4648
|
+
return this.fetch(`w/${wid}/experiments/${experimentId}`, {
|
|
4649
|
+
method: "DELETE"
|
|
4650
|
+
});
|
|
4651
|
+
}
|
|
4652
|
+
/** Create a group within an experiment. */
|
|
4653
|
+
async createExperimentGroup(wid, experimentId, data) {
|
|
4654
|
+
return this.fetch(`w/${wid}/experiments/${experimentId}/groups`, {
|
|
4655
|
+
method: "POST",
|
|
4656
|
+
body: JSON.stringify(data)
|
|
4657
|
+
});
|
|
4658
|
+
}
|
|
4659
|
+
/** Update a group within an experiment. */
|
|
4660
|
+
async updateExperimentGroup(wid, experimentId, groupId, data) {
|
|
4661
|
+
return this.fetch(`w/${wid}/experiments/${experimentId}/groups/${groupId}`, {
|
|
4662
|
+
method: "PATCH",
|
|
4663
|
+
body: JSON.stringify(data)
|
|
4664
|
+
});
|
|
4665
|
+
}
|
|
4666
|
+
/** Delete a group that has no member assignments. */
|
|
4667
|
+
async deleteExperimentGroup(wid, experimentId, groupId) {
|
|
4668
|
+
return this.fetch(
|
|
4669
|
+
`w/${wid}/experiments/${experimentId}/groups/${groupId}`,
|
|
4670
|
+
{ method: "DELETE" }
|
|
4671
|
+
);
|
|
4672
|
+
}
|
|
4673
|
+
/** Aggregate assignment and exposure counts by group. */
|
|
4674
|
+
async getExperimentStats(wid, experimentId) {
|
|
4675
|
+
return this.fetch(`w/${wid}/experiments/${experimentId}/stats`);
|
|
4676
|
+
}
|
|
4677
|
+
/** List experiment assignments for a member (member profile panel). */
|
|
4678
|
+
async getMemberExperiments(wid, memberId) {
|
|
4679
|
+
return this.fetch(`w/${wid}/members/${memberId}/experiments`);
|
|
4680
|
+
}
|
|
4681
|
+
/** Manually assign a member to an experiment (optional group, or weighted random). */
|
|
4682
|
+
async createExperimentAssignment(wid, experimentId, data) {
|
|
4683
|
+
return this.fetch(
|
|
4684
|
+
`w/${wid}/experiments/${experimentId}/assignments`,
|
|
4685
|
+
{
|
|
4686
|
+
method: "POST",
|
|
4687
|
+
body: JSON.stringify(data)
|
|
4688
|
+
}
|
|
4689
|
+
);
|
|
4690
|
+
}
|
|
4691
|
+
/** Move an assigned member to a different experiment group. */
|
|
4692
|
+
async updateExperimentAssignment(wid, experimentId, memberId, data) {
|
|
4693
|
+
return this.fetch(
|
|
4694
|
+
`w/${wid}/experiments/${experimentId}/assignments/${memberId}`,
|
|
4695
|
+
{
|
|
4696
|
+
method: "PATCH",
|
|
4697
|
+
body: JSON.stringify(data)
|
|
4698
|
+
}
|
|
4699
|
+
);
|
|
4700
|
+
}
|
|
4701
|
+
/** Remove a member's assignment from an experiment. */
|
|
4702
|
+
async deleteExperimentAssignment(wid, experimentId, memberId) {
|
|
4703
|
+
return this.fetch(
|
|
4704
|
+
`w/${wid}/experiments/${experimentId}/assignments/${memberId}`,
|
|
4705
|
+
{ method: "DELETE" }
|
|
4706
|
+
);
|
|
4707
|
+
}
|
|
4708
|
+
};
|
|
4709
|
+
|
|
4569
4710
|
// src/api/features.ts
|
|
4570
4711
|
var FeaturesApi = class extends BaseApiClient {
|
|
4571
4712
|
/**
|
|
@@ -6469,7 +6610,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6469
6610
|
);
|
|
6470
6611
|
}
|
|
6471
6612
|
/**
|
|
6472
|
-
* Purchase a phone number from Twilio for this org.
|
|
6613
|
+
* Purchase a phone number from Twilio for this org inventory (org admin only).
|
|
6473
6614
|
*/
|
|
6474
6615
|
async purchasePhoneNumber(orgUuid, phoneNumber, numberType) {
|
|
6475
6616
|
return this.fetch(`o/${orgUuid}/phone-numbers/purchase`, {
|
|
@@ -6896,31 +7037,6 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
6896
7037
|
body: JSON.stringify({ providerPhoneUuid })
|
|
6897
7038
|
});
|
|
6898
7039
|
}
|
|
6899
|
-
async searchAvailablePhoneNumbers(wid, params) {
|
|
6900
|
-
const searchParams = new URLSearchParams();
|
|
6901
|
-
if (params.country) searchParams.set("country", params.country);
|
|
6902
|
-
if (params.numberType) searchParams.set("number_type", params.numberType);
|
|
6903
|
-
if (params.areaCode) searchParams.set("area_code", params.areaCode);
|
|
6904
|
-
if (params.contains) searchParams.set("contains", params.contains);
|
|
6905
|
-
if (params.city) searchParams.set("city", params.city);
|
|
6906
|
-
if (params.state) searchParams.set("state", params.state);
|
|
6907
|
-
if (params.limit) searchParams.set("limit", String(params.limit));
|
|
6908
|
-
const qs = searchParams.toString();
|
|
6909
|
-
return this.fetch(
|
|
6910
|
-
`w/${wid}/phone-numbers/search${qs ? `?${qs}` : ""}`
|
|
6911
|
-
);
|
|
6912
|
-
}
|
|
6913
|
-
async purchasePhoneNumber(wid, request, idempotencyKey) {
|
|
6914
|
-
const headers = {};
|
|
6915
|
-
if (idempotencyKey) {
|
|
6916
|
-
headers["Idempotency-Key"] = idempotencyKey;
|
|
6917
|
-
}
|
|
6918
|
-
return this.fetch(`w/${wid}/phone-numbers/purchase`, {
|
|
6919
|
-
method: "POST",
|
|
6920
|
-
body: JSON.stringify(request),
|
|
6921
|
-
headers
|
|
6922
|
-
});
|
|
6923
|
-
}
|
|
6924
7040
|
async releasePhoneNumber(wid, id) {
|
|
6925
7041
|
return this.fetch(`w/${wid}/phone-numbers/${id}/release`, {
|
|
6926
7042
|
method: "POST"
|
|
@@ -7917,6 +8033,20 @@ var SupportRequestsApi = class extends BaseApiClient {
|
|
|
7917
8033
|
body: JSON.stringify(data)
|
|
7918
8034
|
});
|
|
7919
8035
|
}
|
|
8036
|
+
/**
|
|
8037
|
+
* Record a click on a pushed resource (Proactive Support). For a
|
|
8038
|
+
* manager_prompt, pass the Manager Chat UUID it opened so the
|
|
8039
|
+
* resource→chat linkage is preserved.
|
|
8040
|
+
*/
|
|
8041
|
+
async clickWorkspaceSupportRequestResource(workspaceUuid, uuid, resourceUuid, data = {}) {
|
|
8042
|
+
return this.fetch(
|
|
8043
|
+
`w/${workspaceUuid}/support-requests/${uuid}/resources/${resourceUuid}/click`,
|
|
8044
|
+
{
|
|
8045
|
+
method: "POST",
|
|
8046
|
+
body: JSON.stringify(data)
|
|
8047
|
+
}
|
|
8048
|
+
);
|
|
8049
|
+
}
|
|
7920
8050
|
};
|
|
7921
8051
|
|
|
7922
8052
|
// src/api/customers.ts
|
|
@@ -9153,6 +9283,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
9153
9283
|
slackApps: new SlackAppsApi(apiKey, baseUrl, customFetch),
|
|
9154
9284
|
teamsApps: new TeamsAppsApi(apiKey, baseUrl, customFetch),
|
|
9155
9285
|
events: new EventsApi(apiKey, baseUrl, customFetch),
|
|
9286
|
+
experiments: new ExperimentsApi(apiKey, baseUrl, customFetch),
|
|
9156
9287
|
fhirConnections: new FhirConnectionsApi(apiKey, baseUrl, customFetch),
|
|
9157
9288
|
healthie: new HealthieApi(apiKey, baseUrl, customFetch),
|
|
9158
9289
|
hubspot: new HubspotApi(apiKey, baseUrl, customFetch),
|
|
@@ -9252,6 +9383,7 @@ function bindChatsMethods(target, chats) {
|
|
|
9252
9383
|
target.archiveChat = chats.archiveChat.bind(chats);
|
|
9253
9384
|
target.unarchiveChat = chats.unarchiveChat.bind(chats);
|
|
9254
9385
|
target.createChat = chats.createChat.bind(chats);
|
|
9386
|
+
target.createWorkflowOutboundVoiceChat = chats.createWorkflowOutboundVoiceChat.bind(chats);
|
|
9255
9387
|
target.deleteChat = chats.deleteChat.bind(chats);
|
|
9256
9388
|
target.updateChat = chats.updateChat.bind(chats);
|
|
9257
9389
|
target.updateChatMute = chats.updateChatMute.bind(chats);
|
|
@@ -9586,6 +9718,23 @@ function bindEventsMethods(target, events) {
|
|
|
9586
9718
|
target.previewSchedule = events.previewSchedule.bind(events);
|
|
9587
9719
|
}
|
|
9588
9720
|
|
|
9721
|
+
// src/client/bindings/experiments.ts
|
|
9722
|
+
function bindExperimentsMethods(target, experiments) {
|
|
9723
|
+
target.getExperiments = experiments.getExperiments.bind(experiments);
|
|
9724
|
+
target.getExperiment = experiments.getExperiment.bind(experiments);
|
|
9725
|
+
target.createExperiment = experiments.createExperiment.bind(experiments);
|
|
9726
|
+
target.updateExperiment = experiments.updateExperiment.bind(experiments);
|
|
9727
|
+
target.deleteExperiment = experiments.deleteExperiment.bind(experiments);
|
|
9728
|
+
target.createExperimentGroup = experiments.createExperimentGroup.bind(experiments);
|
|
9729
|
+
target.updateExperimentGroup = experiments.updateExperimentGroup.bind(experiments);
|
|
9730
|
+
target.deleteExperimentGroup = experiments.deleteExperimentGroup.bind(experiments);
|
|
9731
|
+
target.getExperimentStats = experiments.getExperimentStats.bind(experiments);
|
|
9732
|
+
target.getMemberExperiments = experiments.getMemberExperiments.bind(experiments);
|
|
9733
|
+
target.createExperimentAssignment = experiments.createExperimentAssignment.bind(experiments);
|
|
9734
|
+
target.updateExperimentAssignment = experiments.updateExperimentAssignment.bind(experiments);
|
|
9735
|
+
target.deleteExperimentAssignment = experiments.deleteExperimentAssignment.bind(experiments);
|
|
9736
|
+
}
|
|
9737
|
+
|
|
9589
9738
|
// src/client/bindings/workflows.ts
|
|
9590
9739
|
function bindWorkflowsMethods(target, workflows, workflowNotes, voice, supervisors) {
|
|
9591
9740
|
target.getWorkflows = workflows.getWorkflows.bind(workflows);
|
|
@@ -9691,8 +9840,6 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
9691
9840
|
target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
|
|
9692
9841
|
target.fetchVoicemailAudio = phoneNumbers.fetchVoicemailAudio.bind(phoneNumbers);
|
|
9693
9842
|
target.updateVoicemailStatus = phoneNumbers.updateVoicemailStatus.bind(phoneNumbers);
|
|
9694
|
-
target.searchAvailablePhoneNumbers = phoneNumbers.searchAvailablePhoneNumbers.bind(phoneNumbers);
|
|
9695
|
-
target.purchasePhoneNumber = phoneNumbers.purchasePhoneNumber.bind(phoneNumbers);
|
|
9696
9843
|
target.releasePhoneNumber = phoneNumbers.releasePhoneNumber.bind(phoneNumbers);
|
|
9697
9844
|
target.getLinkablePhones = phoneNumbers.getLinkablePhones.bind(phoneNumbers);
|
|
9698
9845
|
target.linkPhoneNumber = phoneNumbers.linkPhoneNumber.bind(phoneNumbers);
|
|
@@ -10127,6 +10274,7 @@ function bindSupportRequestMethods(target, supportRequests) {
|
|
|
10127
10274
|
target.createWorkspaceSupportRequest = supportRequests.createWorkspaceSupportRequest.bind(supportRequests);
|
|
10128
10275
|
target.commentOnWorkspaceSupportRequest = supportRequests.commentOnWorkspaceSupportRequest.bind(supportRequests);
|
|
10129
10276
|
target.closeWorkspaceSupportRequest = supportRequests.closeWorkspaceSupportRequest.bind(supportRequests);
|
|
10277
|
+
target.clickWorkspaceSupportRequestResource = supportRequests.clickWorkspaceSupportRequestResource.bind(supportRequests);
|
|
10130
10278
|
}
|
|
10131
10279
|
|
|
10132
10280
|
// src/client/client.ts
|
|
@@ -10157,6 +10305,7 @@ var GravityRailClient = class {
|
|
|
10157
10305
|
archiveChat;
|
|
10158
10306
|
unarchiveChat;
|
|
10159
10307
|
createChat;
|
|
10308
|
+
createWorkflowOutboundVoiceChat;
|
|
10160
10309
|
deleteChat;
|
|
10161
10310
|
updateChat;
|
|
10162
10311
|
updateChatMute;
|
|
@@ -10327,6 +10476,20 @@ var GravityRailClient = class {
|
|
|
10327
10476
|
createJourneyNote;
|
|
10328
10477
|
updateJourneyNote;
|
|
10329
10478
|
deleteJourneyNote;
|
|
10479
|
+
// Experiments API
|
|
10480
|
+
getExperiments;
|
|
10481
|
+
getExperiment;
|
|
10482
|
+
createExperiment;
|
|
10483
|
+
updateExperiment;
|
|
10484
|
+
deleteExperiment;
|
|
10485
|
+
createExperimentGroup;
|
|
10486
|
+
updateExperimentGroup;
|
|
10487
|
+
deleteExperimentGroup;
|
|
10488
|
+
getExperimentStats;
|
|
10489
|
+
getMemberExperiments;
|
|
10490
|
+
createExperimentAssignment;
|
|
10491
|
+
updateExperimentAssignment;
|
|
10492
|
+
deleteExperimentAssignment;
|
|
10330
10493
|
// Operator Groups API
|
|
10331
10494
|
getOperatorGroups;
|
|
10332
10495
|
getOperatorGroup;
|
|
@@ -10670,8 +10833,6 @@ var GravityRailClient = class {
|
|
|
10670
10833
|
getPhoneNumberVoicemails;
|
|
10671
10834
|
fetchVoicemailAudio;
|
|
10672
10835
|
updateVoicemailStatus;
|
|
10673
|
-
searchAvailablePhoneNumbers;
|
|
10674
|
-
purchasePhoneNumber;
|
|
10675
10836
|
releasePhoneNumber;
|
|
10676
10837
|
getLinkablePhones;
|
|
10677
10838
|
linkPhoneNumber;
|
|
@@ -10995,6 +11156,7 @@ var GravityRailClient = class {
|
|
|
10995
11156
|
createWorkspaceSupportRequest;
|
|
10996
11157
|
commentOnWorkspaceSupportRequest;
|
|
10997
11158
|
closeWorkspaceSupportRequest;
|
|
11159
|
+
clickWorkspaceSupportRequestResource;
|
|
10998
11160
|
constructor(apiKey, baseUrl, customFetch) {
|
|
10999
11161
|
const apis = createApiModules(apiKey, baseUrl, customFetch);
|
|
11000
11162
|
this.apis = apis;
|
|
@@ -11009,6 +11171,7 @@ var GravityRailClient = class {
|
|
|
11009
11171
|
bindQualificationsMethods(this, apis.qualifications);
|
|
11010
11172
|
bindPersonasMethods(this, apis.personas);
|
|
11011
11173
|
bindJourneysMethods(this, apis.journeys);
|
|
11174
|
+
bindExperimentsMethods(this, apis.experiments);
|
|
11012
11175
|
bindOperatorMethods(this, apis.operatorGroups);
|
|
11013
11176
|
bindOrgMethods(this, apis.org);
|
|
11014
11177
|
bindAccessGrantsMethods(this, apis.accessGrants);
|
|
@@ -11320,6 +11483,7 @@ var GravityRailClient = class {
|
|
|
11320
11483
|
bindCustomersMethods,
|
|
11321
11484
|
bindDataTypesMethods,
|
|
11322
11485
|
bindEventsMethods,
|
|
11486
|
+
bindExperimentsMethods,
|
|
11323
11487
|
bindFilesMethods,
|
|
11324
11488
|
bindIntegrationsMethods,
|
|
11325
11489
|
bindJourneysMethods,
|
|
@@ -11363,6 +11527,7 @@ var GravityRailClient = class {
|
|
|
11363
11527
|
isFeatureAvailable,
|
|
11364
11528
|
isRegistryInitialized,
|
|
11365
11529
|
isSMSDeliveryFailureStatus,
|
|
11530
|
+
parseExperimentStatCount,
|
|
11366
11531
|
requiresAssistantParticipant,
|
|
11367
11532
|
usesBuiltinAssistant,
|
|
11368
11533
|
validateFeatureDependencies
|