@nopaque/sdk 0.7.0 → 0.8.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/CHANGELOG.md +35 -1
- package/README.md +25 -0
- package/dist/index.cjs +174 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +271 -1
- package/dist/index.d.ts +271 -1
- package/dist/index.mjs +174 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1702,6 +1702,275 @@ declare class SchedulerResource extends Resource {
|
|
|
1702
1702
|
resume(scheduleId: string, requestOptions?: RequestOptions): Promise<Schedule>;
|
|
1703
1703
|
}
|
|
1704
1704
|
|
|
1705
|
+
/**
|
|
1706
|
+
* How the respondent behaves once the survey is under way. A closed set: each
|
|
1707
|
+
* value maps to wording nopaque maintains, so an unknown one is a 400.
|
|
1708
|
+
*/
|
|
1709
|
+
type SurveyScenario = 'happy-path' | 'out-of-range' | 'changes-mind' | 'abandons' | 'asks-question-back';
|
|
1710
|
+
/** Observed when the survey arrives; absent until then. */
|
|
1711
|
+
type SurveyChannel = 'sms_chat' | 'phone_call';
|
|
1712
|
+
type SurveyRunState = 'waiting' | 'in_progress' | 'complete' | 'timed_out';
|
|
1713
|
+
/**
|
|
1714
|
+
* What HAPPENED, not whether the survey passed. `completed` means every
|
|
1715
|
+
* expected question was asked and answered, and nothing more.
|
|
1716
|
+
*/
|
|
1717
|
+
type SurveyOutcome = 'completed' | 'partial' | 'ended' | 'no_survey_arrived' | 'stopped' | 'start_failed';
|
|
1718
|
+
type SurveyEndReason = 'survey_over' | 'window_lapsed' | 'stopped' | 'start_failed';
|
|
1719
|
+
/**
|
|
1720
|
+
* `provisional` may still grow; `final` will not change; `failed` means the
|
|
1721
|
+
* conversation could not be retrieved, with `error` saying why.
|
|
1722
|
+
*/
|
|
1723
|
+
type SurveyCaptureStatus = 'pending' | 'provisional' | 'final' | 'failed';
|
|
1724
|
+
/**
|
|
1725
|
+
* Arguments to `surveys.start()`. `sender` is the number your survey platform
|
|
1726
|
+
* sends FROM; it goes on the wire as `endUserE164`.
|
|
1727
|
+
*/
|
|
1728
|
+
interface StartSurveyTestParams {
|
|
1729
|
+
configId: string;
|
|
1730
|
+
/** E.164. Must not be a number inside this nopaque account - that is a 400. */
|
|
1731
|
+
sender: string;
|
|
1732
|
+
/** 60-43200. Server default 300. The window holds one of your numbers, so keep it short. */
|
|
1733
|
+
windowSecs?: number;
|
|
1734
|
+
/**
|
|
1735
|
+
* 1-50. Overrides the config's question count for this test. The only limit
|
|
1736
|
+
* that is actually enforced.
|
|
1737
|
+
*/
|
|
1738
|
+
expectedTurns?: number;
|
|
1739
|
+
/** 1-200. Server default 40. A loop-safety cap in the respondent's instructions, not enforced. */
|
|
1740
|
+
maxMessages?: number;
|
|
1741
|
+
}
|
|
1742
|
+
/** Body for `POST /testing/survey-runs`, as sent. */
|
|
1743
|
+
interface StartSurveyTestRequest {
|
|
1744
|
+
configId: string;
|
|
1745
|
+
endUserE164: string;
|
|
1746
|
+
windowSecs?: number;
|
|
1747
|
+
expectedTurns?: number;
|
|
1748
|
+
maxMessages?: number;
|
|
1749
|
+
}
|
|
1750
|
+
interface StartSurveyTestResponse {
|
|
1751
|
+
runId: string;
|
|
1752
|
+
configId: string;
|
|
1753
|
+
/** Point the survey at this number. Nothing can reach the test until it is aimed here. */
|
|
1754
|
+
agentE164: string;
|
|
1755
|
+
endUserE164: string;
|
|
1756
|
+
state: 'waiting';
|
|
1757
|
+
startedAt: string;
|
|
1758
|
+
/** Epoch SECONDS. */
|
|
1759
|
+
expiresAt: number;
|
|
1760
|
+
maxMessages: number;
|
|
1761
|
+
}
|
|
1762
|
+
/** A survey test while it holds a number. */
|
|
1763
|
+
interface SurveyRun {
|
|
1764
|
+
runId: string;
|
|
1765
|
+
configId: string;
|
|
1766
|
+
agentE164: string;
|
|
1767
|
+
endUserE164: string;
|
|
1768
|
+
state: SurveyRunState;
|
|
1769
|
+
startedAt: string;
|
|
1770
|
+
engagedAt?: string;
|
|
1771
|
+
channel?: SurveyChannel;
|
|
1772
|
+
/** Epoch SECONDS. Expiry sweeps are lazy - judge liveness by `live`. */
|
|
1773
|
+
expiresAt: number;
|
|
1774
|
+
live: boolean;
|
|
1775
|
+
expectedTurns?: number;
|
|
1776
|
+
answersGiven?: number;
|
|
1777
|
+
/** `false` means no question count is set, so the respondent answers until stopped. */
|
|
1778
|
+
enforcementActive?: boolean;
|
|
1779
|
+
}
|
|
1780
|
+
/** Concurrency, made visible. Check `free` before starting another test. */
|
|
1781
|
+
interface SurveyNumbers {
|
|
1782
|
+
total: number;
|
|
1783
|
+
busy: number;
|
|
1784
|
+
free: number;
|
|
1785
|
+
}
|
|
1786
|
+
interface ListSurveyRunsResponse {
|
|
1787
|
+
runs: SurveyRun[];
|
|
1788
|
+
numbers: SurveyNumbers;
|
|
1789
|
+
}
|
|
1790
|
+
interface SurveyCapture {
|
|
1791
|
+
status: SurveyCaptureStatus;
|
|
1792
|
+
capturedAt?: string;
|
|
1793
|
+
error?: string;
|
|
1794
|
+
}
|
|
1795
|
+
/** What happened in one survey test, kept after the test has ended however it ended. */
|
|
1796
|
+
interface SurveyResultSummary {
|
|
1797
|
+
runId: string;
|
|
1798
|
+
configId: string;
|
|
1799
|
+
/** The respondent's name when the test started. */
|
|
1800
|
+
configName?: string;
|
|
1801
|
+
scenario?: SurveyScenario;
|
|
1802
|
+
profileName?: string;
|
|
1803
|
+
agentE164: string;
|
|
1804
|
+
endUserE164: string;
|
|
1805
|
+
channel?: SurveyChannel;
|
|
1806
|
+
startedAt: string;
|
|
1807
|
+
/** Epoch SECONDS - the close of the test window. */
|
|
1808
|
+
expiresAt: number;
|
|
1809
|
+
expectedTurns?: number;
|
|
1810
|
+
answersGiven: number;
|
|
1811
|
+
engagedAt?: string;
|
|
1812
|
+
endedAt?: string;
|
|
1813
|
+
state: 'live' | 'ended';
|
|
1814
|
+
/** Set when the test ends. */
|
|
1815
|
+
outcome?: SurveyOutcome;
|
|
1816
|
+
endReason?: SurveyEndReason;
|
|
1817
|
+
/** More than 500 messages were exchanged; only the first 500 are kept. */
|
|
1818
|
+
turnsTruncated: boolean;
|
|
1819
|
+
capture: SurveyCapture;
|
|
1820
|
+
}
|
|
1821
|
+
/** One message. `survey` is your platform; `respondent` is nopaque answering it. */
|
|
1822
|
+
interface SurveyTurn {
|
|
1823
|
+
at: string;
|
|
1824
|
+
from: 'survey' | 'respondent';
|
|
1825
|
+
text: string;
|
|
1826
|
+
}
|
|
1827
|
+
interface SurveyResult extends SurveyResultSummary {
|
|
1828
|
+
/**
|
|
1829
|
+
* Oldest first. An empty list never means "could not be retrieved" - that is
|
|
1830
|
+
* `capture.status === 'failed'`.
|
|
1831
|
+
*/
|
|
1832
|
+
turns: SurveyTurn[];
|
|
1833
|
+
}
|
|
1834
|
+
interface SurveyResultListParams {
|
|
1835
|
+
/** 1-100. Server default 50. */
|
|
1836
|
+
limit?: number;
|
|
1837
|
+
cursor?: string;
|
|
1838
|
+
nextToken?: string | null;
|
|
1839
|
+
}
|
|
1840
|
+
/**
|
|
1841
|
+
* One page of results, newest first. `nextCursor` is OMITTED (not null) on
|
|
1842
|
+
* the last page.
|
|
1843
|
+
*/
|
|
1844
|
+
interface ListSurveyResultsResponse {
|
|
1845
|
+
results: SurveyResultSummary[];
|
|
1846
|
+
nextCursor?: string;
|
|
1847
|
+
}
|
|
1848
|
+
/** A saved survey respondent. Carries no phone number - the customer's platform originates. */
|
|
1849
|
+
interface SurveyTestConfig {
|
|
1850
|
+
id: string;
|
|
1851
|
+
workspaceId: string;
|
|
1852
|
+
name: string;
|
|
1853
|
+
description?: string;
|
|
1854
|
+
sector: string;
|
|
1855
|
+
mission: string;
|
|
1856
|
+
acceptance: string;
|
|
1857
|
+
profileId?: string;
|
|
1858
|
+
expectedTurns?: number;
|
|
1859
|
+
scenario: SurveyScenario;
|
|
1860
|
+
tags?: string[];
|
|
1861
|
+
/** Voice surveys only; ignored on an SMS conversation. */
|
|
1862
|
+
voiceId?: string;
|
|
1863
|
+
createdAt: string;
|
|
1864
|
+
updatedAt: string;
|
|
1865
|
+
}
|
|
1866
|
+
/** Slim list projection: `mission` and `acceptance` are omitted. */
|
|
1867
|
+
type SurveyTestConfigListItem = Omit<SurveyTestConfig, 'mission' | 'acceptance'>;
|
|
1868
|
+
interface ListSurveyTestConfigsResponse {
|
|
1869
|
+
configs: SurveyTestConfigListItem[];
|
|
1870
|
+
}
|
|
1871
|
+
/** `required: [name, sector, mission, acceptance, scenario]`. Unknown properties are a 400. */
|
|
1872
|
+
interface CreateSurveyTestConfigRequest {
|
|
1873
|
+
name: string;
|
|
1874
|
+
description?: string;
|
|
1875
|
+
sector: string;
|
|
1876
|
+
mission: string;
|
|
1877
|
+
acceptance: string;
|
|
1878
|
+
profileId?: string;
|
|
1879
|
+
/** 1-50. Without it nothing is enforced. */
|
|
1880
|
+
expectedTurns?: number;
|
|
1881
|
+
scenario: SurveyScenario;
|
|
1882
|
+
tags?: string[];
|
|
1883
|
+
voiceId?: string;
|
|
1884
|
+
}
|
|
1885
|
+
/**
|
|
1886
|
+
* Partial update. At least one field is required - an empty body is a 400.
|
|
1887
|
+
* `null` clears `description`, `tags` or `voiceId`.
|
|
1888
|
+
*/
|
|
1889
|
+
interface UpdateSurveyTestConfigRequest {
|
|
1890
|
+
name?: string;
|
|
1891
|
+
description?: string | null;
|
|
1892
|
+
sector?: string;
|
|
1893
|
+
mission?: string;
|
|
1894
|
+
acceptance?: string;
|
|
1895
|
+
profileId?: string;
|
|
1896
|
+
expectedTurns?: number;
|
|
1897
|
+
scenario?: SurveyScenario;
|
|
1898
|
+
tags?: string[] | null;
|
|
1899
|
+
voiceId?: string | null;
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
/** All durations in ms, like every other wait helper in this SDK. */
|
|
1903
|
+
interface SurveysWaitForResultOptions {
|
|
1904
|
+
/**
|
|
1905
|
+
* Overall deadline. Defaults to the test's `expiresAt` plus 10 minutes, read
|
|
1906
|
+
* from the first successful fetch.
|
|
1907
|
+
*/
|
|
1908
|
+
timeout?: number;
|
|
1909
|
+
pollInterval?: number;
|
|
1910
|
+
intervalCap?: number;
|
|
1911
|
+
/** How long a 404 counts as "not written yet". Defaults to 60 s. */
|
|
1912
|
+
notFoundGrace?: number;
|
|
1913
|
+
onUpdate?: (result: SurveyResult) => void;
|
|
1914
|
+
requestOptions?: RequestOptions;
|
|
1915
|
+
}
|
|
1916
|
+
/** Results of survey tests, kept after a test ends however it ended. */
|
|
1917
|
+
declare class SurveyResultsResource extends Resource {
|
|
1918
|
+
/** Paginated list of result summaries, newest first. Transcripts are omitted. */
|
|
1919
|
+
list(params?: SurveyResultListParams, requestOptions?: RequestOptions): Paginator<SurveyResultSummary>;
|
|
1920
|
+
/** One page of result summaries. */
|
|
1921
|
+
listPage(params?: SurveyResultListParams, requestOptions?: RequestOptions): Promise<Page<SurveyResultSummary>>;
|
|
1922
|
+
/**
|
|
1923
|
+
* One result with its conversation. While the test is live the capture may be
|
|
1924
|
+
* `provisional` and still grow.
|
|
1925
|
+
*/
|
|
1926
|
+
get(runId: string, requestOptions?: RequestOptions): Promise<SurveyResult>;
|
|
1927
|
+
}
|
|
1928
|
+
/** Saved survey respondents. */
|
|
1929
|
+
declare class SurveyConfigsResource extends Resource {
|
|
1930
|
+
create(body: CreateSurveyTestConfigRequest, requestOptions?: RequestOptions): Promise<SurveyTestConfig>;
|
|
1931
|
+
/** Every config in the workspace. Not paginated; `mission` and `acceptance` are omitted. */
|
|
1932
|
+
list(requestOptions?: RequestOptions): Promise<SurveyTestConfigListItem[]>;
|
|
1933
|
+
get(configId: string, requestOptions?: RequestOptions): Promise<SurveyTestConfig>;
|
|
1934
|
+
/** PATCH - only the fields passed are sent. `null` clears `description`, `tags` or `voiceId`. */
|
|
1935
|
+
update(configId: string, body: UpdateSurveyTestConfigRequest, requestOptions?: RequestOptions): Promise<SurveyTestConfig>;
|
|
1936
|
+
/** Tests already started from the config are unaffected. */
|
|
1937
|
+
delete(configId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
1938
|
+
}
|
|
1939
|
+
/**
|
|
1940
|
+
* Survey tests. The direction is REVERSED from every other test: your platform
|
|
1941
|
+
* sends the survey and nopaque answers as the respondent.
|
|
1942
|
+
*/
|
|
1943
|
+
declare class SurveysResource extends Resource {
|
|
1944
|
+
readonly results: SurveyResultsResource;
|
|
1945
|
+
readonly configs: SurveyConfigsResource;
|
|
1946
|
+
constructor(transport: Transport);
|
|
1947
|
+
/**
|
|
1948
|
+
* Start a survey test. Nothing runs yet: nopaque begins WAITING for a survey
|
|
1949
|
+
* sent from `sender` to the returned `agentE164`, until `expiresAt`.
|
|
1950
|
+
*
|
|
1951
|
+
* Throws `ConflictError` (409) when the workspace has no live survey numbers,
|
|
1952
|
+
* or when every one of them is already running a test against this sender -
|
|
1953
|
+
* the message tells the two apart. `NotFoundError` (404) for an unknown
|
|
1954
|
+
* config. A 503 means the number could not be put into service and nothing
|
|
1955
|
+
* was reserved; it is safe to try again, but this method does not.
|
|
1956
|
+
*/
|
|
1957
|
+
start(params: StartSurveyTestParams, requestOptions?: RequestOptions): Promise<StartSurveyTestResponse>;
|
|
1958
|
+
/** Stop a test before its window closes, freeing its number. */
|
|
1959
|
+
stop(runId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
1960
|
+
/** Every survey test holding a number, plus how many numbers are free. Not paginated. */
|
|
1961
|
+
list(requestOptions?: RequestOptions): Promise<ListSurveyRunsResponse>;
|
|
1962
|
+
/**
|
|
1963
|
+
* Poll `results.get(runId)` until the capture is `final` or `failed`, and
|
|
1964
|
+
* return the result either way. A `failed` capture is a RESULT, not an error -
|
|
1965
|
+
* inspect `capture.error`.
|
|
1966
|
+
*
|
|
1967
|
+
* The result row is written asynchronously after `start()`, so a 404 is
|
|
1968
|
+
* treated as "not yet" for `notFoundGrace` and rethrown after that. Throws
|
|
1969
|
+
* `NopaqueTimeoutError` on the deadline; the test itself is NOT stopped.
|
|
1970
|
+
*/
|
|
1971
|
+
waitForResult(runId: string, opts?: SurveysWaitForResultOptions): Promise<SurveyResult>;
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1705
1974
|
type SweepStatus = 'created' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
1706
1975
|
interface Sweep {
|
|
1707
1976
|
id: string;
|
|
@@ -2081,6 +2350,7 @@ declare class Nopaque {
|
|
|
2081
2350
|
readonly digitalTesting: DigitalTestingResource;
|
|
2082
2351
|
readonly digitalTestConfigs: DigitalTestConfigsResource;
|
|
2083
2352
|
readonly digitalCompliance: DigitalComplianceResource;
|
|
2353
|
+
readonly surveys: SurveysResource;
|
|
2084
2354
|
private readonly transport;
|
|
2085
2355
|
constructor(options?: NopaqueOptions);
|
|
2086
2356
|
close(): void;
|
|
@@ -2088,4 +2358,4 @@ declare class Nopaque {
|
|
|
2088
2358
|
|
|
2089
2359
|
declare const VERSION: string;
|
|
2090
2360
|
|
|
2091
|
-
export { APIConnectionError, APITimeoutError, type AddProfileItemRequest, type AggregateGroup, type AggregateGroupBy, type AggregateTimeBucket, type AudioCategory, type AudioDownloadURL, type AudioFile, type AudioListParams, type AudioUploadURL, AuthenticationError, type Batch, type BatchRun, type BatchRunStatus, type BatchStatus, type BatchesListParams, type CallTelemetry, type ChatMatcher, type ChatStep, type ChatStepBase, type ComplianceCatalogue, type ComplianceCatalogueResponse, type ComplianceRegulation, type ComplianceRegulationSection, type ComplianceReport, type ComplianceReportListItem, type ComplianceReportListParams, type ComplianceReportSummary, type ComplianceTest, type ComplianceTestEvidence, type ComplianceTestVerdict, ConflictError, type ConnectChatTarget, type CreateBatchRequest, type CreateComplianceBatchRequest, type CreateComplianceBatchResponse, type CreateDatasetRequest, type CreateDigitalTestConfigRequest, type CreateDigitalTestRunRequest, type CreateDigitalTestRunResponse, type CreateLoadTestRequest, type CreateMappingJobRequest, type CreateMissionTestConfigRequest, type CreateMissionTestRequest, type CreateProfileRequest, type CreateScheduleRequest, type CreateSweepRequest, type CreateTestConfigRequest, type CreateTestJobRequest, type CreateTestRunRequest, type CreateUploadUrlRequest, type CurrentRun, type DTMFOption, type Dataset, type DatasetsListParams, type DigitalComplianceAuditSummary, type DigitalComplianceReportParams, type DigitalEvidence, type DigitalOutcome, type DigitalProfile, type DigitalProfileItem, type DigitalRunStatus, type DigitalSample, type DigitalStepResult, type DigitalTarget, type DigitalTestConfig, type DigitalTestConfigBase, type DigitalTestConfigListParams, type DigitalTestKind, type DigitalTestRun, type DigitalTestRunListParams, type DigitalTranscriptTurn, type DownloadOptions, type EndChatStep, type EnrichRequest, type EnrichResponse, type Enrichment, type EnrichmentConfig, type EnrichmentDimensions, type EnrichmentStatus, type ExpectChatStep, type FlatTreeNode, type GeneratePdfRequest, type GeneratePdfResponse, type HttpJsonTarget, type JobStatus, type LaunchDigitalTestConfigRequest, type ListDigitalComplianceAuditsResponse, type ListDigitalTestConfigsResponse, type ListDigitalTestRunsResponse, type ListVoicesResponse, type LoadTest, type LoadTestEstimate, type LoadTestEstimateRequest, type LoadTestProgress, type LoadTestRun, type LoadTestStatus, type LoadTestStatusResponse, type LoadTestingListParams, type MappingJob, type MappingJobConfig, type MappingJobListItem, type MappingJobStats, type MappingListParams, type MappingMode, type MappingPath, type MappingRun, type MappingRunStatus, type MappingStep, type MappingTree, type MappingTreeEmptyState, type MissionTestConfig, type MissionTestConfigListItem, type MissionTestConfigListParams, type MissionTestDefaults, type MissionTestKind, type MissionTestListParams, type MissionTestProfile, type MissionTestRun, type MissionTestRunResponse, type MissionTestStatus, Nopaque, NopaqueAPIError, NopaqueConfigError, NopaqueError, type NopaqueOptions, NopaqueTimeoutError, NotFoundError, Page, Paginator, PermissionError, type ProbeResult, type Profile, type ProfileDataItem, type ProfileItem, type ProfileParametersResponse, type ProfileVoiceItem, type ProfileVoiceItemBase, type ProfilesByParametersParams, type ProfilesByParametersResponse, type ProfilesListParams, type QualityScoringResults, RateLimitError, type RepeatBehavior, type RepeatConfig, type RequestOptions, type ResolvedDataset, type ResolvedDatasetEntry, type RetryConfig, type Schedule, type ScheduleListParams, type ScheduleTargetType, type ScheduleType, type SendChatStep, ServerError, type StepResult, type StepStatus, type Sweep, type SweepRun, type SweepRunStatus, type SweepStatus, type SweepVariationResult, type SweepsListParams, type TestConfig, type TestJob, type TestJobStatus, type TestRun, type TestRunAggregateParams, type TestRunAggregateResponse, type TestRunDetails, type TestRunListItem, type TestRunListParams, type TestRunOutcome, type TestRunStatus, type TestRunType, type TestStep, type TestStepResult, type TestingListParams, type TokenUsageDetails, type TokenUsageResponse, type TreeFormat, type TreeInputRequired, type TreeNode, type TreeNodeEnrichment, type TurnTelemetry, type UpdateBatchRequest, type UpdateDatasetRequest, type UpdateDigitalTestConfigRequest, type UpdateLoadTestRequest, type UpdateMappingJobRequest, type UpdateMissionTestConfigRequest, type UpdateProfileItemRequest, type UpdateProfileRequest, type UpdateScheduleRequest, type UpdateSweepRequest, type UpdateTestConfigRequest, type UploadInput, VERSION, ValidationError, type Vertical, type Voice, type WaitChatStep, type WebWidgetTarget };
|
|
2361
|
+
export { APIConnectionError, APITimeoutError, type AddProfileItemRequest, type AggregateGroup, type AggregateGroupBy, type AggregateTimeBucket, type AudioCategory, type AudioDownloadURL, type AudioFile, type AudioListParams, type AudioUploadURL, AuthenticationError, type Batch, type BatchRun, type BatchRunStatus, type BatchStatus, type BatchesListParams, type CallTelemetry, type ChatMatcher, type ChatStep, type ChatStepBase, type ComplianceCatalogue, type ComplianceCatalogueResponse, type ComplianceRegulation, type ComplianceRegulationSection, type ComplianceReport, type ComplianceReportListItem, type ComplianceReportListParams, type ComplianceReportSummary, type ComplianceTest, type ComplianceTestEvidence, type ComplianceTestVerdict, ConflictError, type ConnectChatTarget, type CreateBatchRequest, type CreateComplianceBatchRequest, type CreateComplianceBatchResponse, type CreateDatasetRequest, type CreateDigitalTestConfigRequest, type CreateDigitalTestRunRequest, type CreateDigitalTestRunResponse, type CreateLoadTestRequest, type CreateMappingJobRequest, type CreateMissionTestConfigRequest, type CreateMissionTestRequest, type CreateProfileRequest, type CreateScheduleRequest, type CreateSurveyTestConfigRequest, type CreateSweepRequest, type CreateTestConfigRequest, type CreateTestJobRequest, type CreateTestRunRequest, type CreateUploadUrlRequest, type CurrentRun, type DTMFOption, type Dataset, type DatasetsListParams, type DigitalComplianceAuditSummary, type DigitalComplianceReportParams, type DigitalEvidence, type DigitalOutcome, type DigitalProfile, type DigitalProfileItem, type DigitalRunStatus, type DigitalSample, type DigitalStepResult, type DigitalTarget, type DigitalTestConfig, type DigitalTestConfigBase, type DigitalTestConfigListParams, type DigitalTestKind, type DigitalTestRun, type DigitalTestRunListParams, type DigitalTranscriptTurn, type DownloadOptions, type EndChatStep, type EnrichRequest, type EnrichResponse, type Enrichment, type EnrichmentConfig, type EnrichmentDimensions, type EnrichmentStatus, type ExpectChatStep, type FlatTreeNode, type GeneratePdfRequest, type GeneratePdfResponse, type HttpJsonTarget, type JobStatus, type LaunchDigitalTestConfigRequest, type ListDigitalComplianceAuditsResponse, type ListDigitalTestConfigsResponse, type ListDigitalTestRunsResponse, type ListSurveyResultsResponse, type ListSurveyRunsResponse, type ListSurveyTestConfigsResponse, type ListVoicesResponse, type LoadTest, type LoadTestEstimate, type LoadTestEstimateRequest, type LoadTestProgress, type LoadTestRun, type LoadTestStatus, type LoadTestStatusResponse, type LoadTestingListParams, type MappingJob, type MappingJobConfig, type MappingJobListItem, type MappingJobStats, type MappingListParams, type MappingMode, type MappingPath, type MappingRun, type MappingRunStatus, type MappingStep, type MappingTree, type MappingTreeEmptyState, type MissionTestConfig, type MissionTestConfigListItem, type MissionTestConfigListParams, type MissionTestDefaults, type MissionTestKind, type MissionTestListParams, type MissionTestProfile, type MissionTestRun, type MissionTestRunResponse, type MissionTestStatus, Nopaque, NopaqueAPIError, NopaqueConfigError, NopaqueError, type NopaqueOptions, NopaqueTimeoutError, NotFoundError, Page, Paginator, PermissionError, type ProbeResult, type Profile, type ProfileDataItem, type ProfileItem, type ProfileParametersResponse, type ProfileVoiceItem, type ProfileVoiceItemBase, type ProfilesByParametersParams, type ProfilesByParametersResponse, type ProfilesListParams, type QualityScoringResults, RateLimitError, type RepeatBehavior, type RepeatConfig, type RequestOptions, type ResolvedDataset, type ResolvedDatasetEntry, type RetryConfig, type Schedule, type ScheduleListParams, type ScheduleTargetType, type ScheduleType, type SendChatStep, ServerError, type StartSurveyTestParams, type StartSurveyTestRequest, type StartSurveyTestResponse, type StepResult, type StepStatus, type SurveyCapture, type SurveyCaptureStatus, type SurveyChannel, type SurveyEndReason, type SurveyNumbers, type SurveyOutcome, type SurveyResult, type SurveyResultListParams, type SurveyResultSummary, type SurveyRun, type SurveyRunState, type SurveyScenario, type SurveyTestConfig, type SurveyTestConfigListItem, type SurveyTurn, type SurveysWaitForResultOptions, type Sweep, type SweepRun, type SweepRunStatus, type SweepStatus, type SweepVariationResult, type SweepsListParams, type TestConfig, type TestJob, type TestJobStatus, type TestRun, type TestRunAggregateParams, type TestRunAggregateResponse, type TestRunDetails, type TestRunListItem, type TestRunListParams, type TestRunOutcome, type TestRunStatus, type TestRunType, type TestStep, type TestStepResult, type TestingListParams, type TokenUsageDetails, type TokenUsageResponse, type TreeFormat, type TreeInputRequired, type TreeNode, type TreeNodeEnrichment, type TurnTelemetry, type UpdateBatchRequest, type UpdateDatasetRequest, type UpdateDigitalTestConfigRequest, type UpdateLoadTestRequest, type UpdateMappingJobRequest, type UpdateMissionTestConfigRequest, type UpdateProfileItemRequest, type UpdateProfileRequest, type UpdateScheduleRequest, type UpdateSurveyTestConfigRequest, type UpdateSweepRequest, type UpdateTestConfigRequest, type UploadInput, VERSION, ValidationError, type Vertical, type Voice, type WaitChatStep, type WebWidgetTarget };
|
package/dist/index.d.ts
CHANGED
|
@@ -1702,6 +1702,275 @@ declare class SchedulerResource extends Resource {
|
|
|
1702
1702
|
resume(scheduleId: string, requestOptions?: RequestOptions): Promise<Schedule>;
|
|
1703
1703
|
}
|
|
1704
1704
|
|
|
1705
|
+
/**
|
|
1706
|
+
* How the respondent behaves once the survey is under way. A closed set: each
|
|
1707
|
+
* value maps to wording nopaque maintains, so an unknown one is a 400.
|
|
1708
|
+
*/
|
|
1709
|
+
type SurveyScenario = 'happy-path' | 'out-of-range' | 'changes-mind' | 'abandons' | 'asks-question-back';
|
|
1710
|
+
/** Observed when the survey arrives; absent until then. */
|
|
1711
|
+
type SurveyChannel = 'sms_chat' | 'phone_call';
|
|
1712
|
+
type SurveyRunState = 'waiting' | 'in_progress' | 'complete' | 'timed_out';
|
|
1713
|
+
/**
|
|
1714
|
+
* What HAPPENED, not whether the survey passed. `completed` means every
|
|
1715
|
+
* expected question was asked and answered, and nothing more.
|
|
1716
|
+
*/
|
|
1717
|
+
type SurveyOutcome = 'completed' | 'partial' | 'ended' | 'no_survey_arrived' | 'stopped' | 'start_failed';
|
|
1718
|
+
type SurveyEndReason = 'survey_over' | 'window_lapsed' | 'stopped' | 'start_failed';
|
|
1719
|
+
/**
|
|
1720
|
+
* `provisional` may still grow; `final` will not change; `failed` means the
|
|
1721
|
+
* conversation could not be retrieved, with `error` saying why.
|
|
1722
|
+
*/
|
|
1723
|
+
type SurveyCaptureStatus = 'pending' | 'provisional' | 'final' | 'failed';
|
|
1724
|
+
/**
|
|
1725
|
+
* Arguments to `surveys.start()`. `sender` is the number your survey platform
|
|
1726
|
+
* sends FROM; it goes on the wire as `endUserE164`.
|
|
1727
|
+
*/
|
|
1728
|
+
interface StartSurveyTestParams {
|
|
1729
|
+
configId: string;
|
|
1730
|
+
/** E.164. Must not be a number inside this nopaque account - that is a 400. */
|
|
1731
|
+
sender: string;
|
|
1732
|
+
/** 60-43200. Server default 300. The window holds one of your numbers, so keep it short. */
|
|
1733
|
+
windowSecs?: number;
|
|
1734
|
+
/**
|
|
1735
|
+
* 1-50. Overrides the config's question count for this test. The only limit
|
|
1736
|
+
* that is actually enforced.
|
|
1737
|
+
*/
|
|
1738
|
+
expectedTurns?: number;
|
|
1739
|
+
/** 1-200. Server default 40. A loop-safety cap in the respondent's instructions, not enforced. */
|
|
1740
|
+
maxMessages?: number;
|
|
1741
|
+
}
|
|
1742
|
+
/** Body for `POST /testing/survey-runs`, as sent. */
|
|
1743
|
+
interface StartSurveyTestRequest {
|
|
1744
|
+
configId: string;
|
|
1745
|
+
endUserE164: string;
|
|
1746
|
+
windowSecs?: number;
|
|
1747
|
+
expectedTurns?: number;
|
|
1748
|
+
maxMessages?: number;
|
|
1749
|
+
}
|
|
1750
|
+
interface StartSurveyTestResponse {
|
|
1751
|
+
runId: string;
|
|
1752
|
+
configId: string;
|
|
1753
|
+
/** Point the survey at this number. Nothing can reach the test until it is aimed here. */
|
|
1754
|
+
agentE164: string;
|
|
1755
|
+
endUserE164: string;
|
|
1756
|
+
state: 'waiting';
|
|
1757
|
+
startedAt: string;
|
|
1758
|
+
/** Epoch SECONDS. */
|
|
1759
|
+
expiresAt: number;
|
|
1760
|
+
maxMessages: number;
|
|
1761
|
+
}
|
|
1762
|
+
/** A survey test while it holds a number. */
|
|
1763
|
+
interface SurveyRun {
|
|
1764
|
+
runId: string;
|
|
1765
|
+
configId: string;
|
|
1766
|
+
agentE164: string;
|
|
1767
|
+
endUserE164: string;
|
|
1768
|
+
state: SurveyRunState;
|
|
1769
|
+
startedAt: string;
|
|
1770
|
+
engagedAt?: string;
|
|
1771
|
+
channel?: SurveyChannel;
|
|
1772
|
+
/** Epoch SECONDS. Expiry sweeps are lazy - judge liveness by `live`. */
|
|
1773
|
+
expiresAt: number;
|
|
1774
|
+
live: boolean;
|
|
1775
|
+
expectedTurns?: number;
|
|
1776
|
+
answersGiven?: number;
|
|
1777
|
+
/** `false` means no question count is set, so the respondent answers until stopped. */
|
|
1778
|
+
enforcementActive?: boolean;
|
|
1779
|
+
}
|
|
1780
|
+
/** Concurrency, made visible. Check `free` before starting another test. */
|
|
1781
|
+
interface SurveyNumbers {
|
|
1782
|
+
total: number;
|
|
1783
|
+
busy: number;
|
|
1784
|
+
free: number;
|
|
1785
|
+
}
|
|
1786
|
+
interface ListSurveyRunsResponse {
|
|
1787
|
+
runs: SurveyRun[];
|
|
1788
|
+
numbers: SurveyNumbers;
|
|
1789
|
+
}
|
|
1790
|
+
interface SurveyCapture {
|
|
1791
|
+
status: SurveyCaptureStatus;
|
|
1792
|
+
capturedAt?: string;
|
|
1793
|
+
error?: string;
|
|
1794
|
+
}
|
|
1795
|
+
/** What happened in one survey test, kept after the test has ended however it ended. */
|
|
1796
|
+
interface SurveyResultSummary {
|
|
1797
|
+
runId: string;
|
|
1798
|
+
configId: string;
|
|
1799
|
+
/** The respondent's name when the test started. */
|
|
1800
|
+
configName?: string;
|
|
1801
|
+
scenario?: SurveyScenario;
|
|
1802
|
+
profileName?: string;
|
|
1803
|
+
agentE164: string;
|
|
1804
|
+
endUserE164: string;
|
|
1805
|
+
channel?: SurveyChannel;
|
|
1806
|
+
startedAt: string;
|
|
1807
|
+
/** Epoch SECONDS - the close of the test window. */
|
|
1808
|
+
expiresAt: number;
|
|
1809
|
+
expectedTurns?: number;
|
|
1810
|
+
answersGiven: number;
|
|
1811
|
+
engagedAt?: string;
|
|
1812
|
+
endedAt?: string;
|
|
1813
|
+
state: 'live' | 'ended';
|
|
1814
|
+
/** Set when the test ends. */
|
|
1815
|
+
outcome?: SurveyOutcome;
|
|
1816
|
+
endReason?: SurveyEndReason;
|
|
1817
|
+
/** More than 500 messages were exchanged; only the first 500 are kept. */
|
|
1818
|
+
turnsTruncated: boolean;
|
|
1819
|
+
capture: SurveyCapture;
|
|
1820
|
+
}
|
|
1821
|
+
/** One message. `survey` is your platform; `respondent` is nopaque answering it. */
|
|
1822
|
+
interface SurveyTurn {
|
|
1823
|
+
at: string;
|
|
1824
|
+
from: 'survey' | 'respondent';
|
|
1825
|
+
text: string;
|
|
1826
|
+
}
|
|
1827
|
+
interface SurveyResult extends SurveyResultSummary {
|
|
1828
|
+
/**
|
|
1829
|
+
* Oldest first. An empty list never means "could not be retrieved" - that is
|
|
1830
|
+
* `capture.status === 'failed'`.
|
|
1831
|
+
*/
|
|
1832
|
+
turns: SurveyTurn[];
|
|
1833
|
+
}
|
|
1834
|
+
interface SurveyResultListParams {
|
|
1835
|
+
/** 1-100. Server default 50. */
|
|
1836
|
+
limit?: number;
|
|
1837
|
+
cursor?: string;
|
|
1838
|
+
nextToken?: string | null;
|
|
1839
|
+
}
|
|
1840
|
+
/**
|
|
1841
|
+
* One page of results, newest first. `nextCursor` is OMITTED (not null) on
|
|
1842
|
+
* the last page.
|
|
1843
|
+
*/
|
|
1844
|
+
interface ListSurveyResultsResponse {
|
|
1845
|
+
results: SurveyResultSummary[];
|
|
1846
|
+
nextCursor?: string;
|
|
1847
|
+
}
|
|
1848
|
+
/** A saved survey respondent. Carries no phone number - the customer's platform originates. */
|
|
1849
|
+
interface SurveyTestConfig {
|
|
1850
|
+
id: string;
|
|
1851
|
+
workspaceId: string;
|
|
1852
|
+
name: string;
|
|
1853
|
+
description?: string;
|
|
1854
|
+
sector: string;
|
|
1855
|
+
mission: string;
|
|
1856
|
+
acceptance: string;
|
|
1857
|
+
profileId?: string;
|
|
1858
|
+
expectedTurns?: number;
|
|
1859
|
+
scenario: SurveyScenario;
|
|
1860
|
+
tags?: string[];
|
|
1861
|
+
/** Voice surveys only; ignored on an SMS conversation. */
|
|
1862
|
+
voiceId?: string;
|
|
1863
|
+
createdAt: string;
|
|
1864
|
+
updatedAt: string;
|
|
1865
|
+
}
|
|
1866
|
+
/** Slim list projection: `mission` and `acceptance` are omitted. */
|
|
1867
|
+
type SurveyTestConfigListItem = Omit<SurveyTestConfig, 'mission' | 'acceptance'>;
|
|
1868
|
+
interface ListSurveyTestConfigsResponse {
|
|
1869
|
+
configs: SurveyTestConfigListItem[];
|
|
1870
|
+
}
|
|
1871
|
+
/** `required: [name, sector, mission, acceptance, scenario]`. Unknown properties are a 400. */
|
|
1872
|
+
interface CreateSurveyTestConfigRequest {
|
|
1873
|
+
name: string;
|
|
1874
|
+
description?: string;
|
|
1875
|
+
sector: string;
|
|
1876
|
+
mission: string;
|
|
1877
|
+
acceptance: string;
|
|
1878
|
+
profileId?: string;
|
|
1879
|
+
/** 1-50. Without it nothing is enforced. */
|
|
1880
|
+
expectedTurns?: number;
|
|
1881
|
+
scenario: SurveyScenario;
|
|
1882
|
+
tags?: string[];
|
|
1883
|
+
voiceId?: string;
|
|
1884
|
+
}
|
|
1885
|
+
/**
|
|
1886
|
+
* Partial update. At least one field is required - an empty body is a 400.
|
|
1887
|
+
* `null` clears `description`, `tags` or `voiceId`.
|
|
1888
|
+
*/
|
|
1889
|
+
interface UpdateSurveyTestConfigRequest {
|
|
1890
|
+
name?: string;
|
|
1891
|
+
description?: string | null;
|
|
1892
|
+
sector?: string;
|
|
1893
|
+
mission?: string;
|
|
1894
|
+
acceptance?: string;
|
|
1895
|
+
profileId?: string;
|
|
1896
|
+
expectedTurns?: number;
|
|
1897
|
+
scenario?: SurveyScenario;
|
|
1898
|
+
tags?: string[] | null;
|
|
1899
|
+
voiceId?: string | null;
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
/** All durations in ms, like every other wait helper in this SDK. */
|
|
1903
|
+
interface SurveysWaitForResultOptions {
|
|
1904
|
+
/**
|
|
1905
|
+
* Overall deadline. Defaults to the test's `expiresAt` plus 10 minutes, read
|
|
1906
|
+
* from the first successful fetch.
|
|
1907
|
+
*/
|
|
1908
|
+
timeout?: number;
|
|
1909
|
+
pollInterval?: number;
|
|
1910
|
+
intervalCap?: number;
|
|
1911
|
+
/** How long a 404 counts as "not written yet". Defaults to 60 s. */
|
|
1912
|
+
notFoundGrace?: number;
|
|
1913
|
+
onUpdate?: (result: SurveyResult) => void;
|
|
1914
|
+
requestOptions?: RequestOptions;
|
|
1915
|
+
}
|
|
1916
|
+
/** Results of survey tests, kept after a test ends however it ended. */
|
|
1917
|
+
declare class SurveyResultsResource extends Resource {
|
|
1918
|
+
/** Paginated list of result summaries, newest first. Transcripts are omitted. */
|
|
1919
|
+
list(params?: SurveyResultListParams, requestOptions?: RequestOptions): Paginator<SurveyResultSummary>;
|
|
1920
|
+
/** One page of result summaries. */
|
|
1921
|
+
listPage(params?: SurveyResultListParams, requestOptions?: RequestOptions): Promise<Page<SurveyResultSummary>>;
|
|
1922
|
+
/**
|
|
1923
|
+
* One result with its conversation. While the test is live the capture may be
|
|
1924
|
+
* `provisional` and still grow.
|
|
1925
|
+
*/
|
|
1926
|
+
get(runId: string, requestOptions?: RequestOptions): Promise<SurveyResult>;
|
|
1927
|
+
}
|
|
1928
|
+
/** Saved survey respondents. */
|
|
1929
|
+
declare class SurveyConfigsResource extends Resource {
|
|
1930
|
+
create(body: CreateSurveyTestConfigRequest, requestOptions?: RequestOptions): Promise<SurveyTestConfig>;
|
|
1931
|
+
/** Every config in the workspace. Not paginated; `mission` and `acceptance` are omitted. */
|
|
1932
|
+
list(requestOptions?: RequestOptions): Promise<SurveyTestConfigListItem[]>;
|
|
1933
|
+
get(configId: string, requestOptions?: RequestOptions): Promise<SurveyTestConfig>;
|
|
1934
|
+
/** PATCH - only the fields passed are sent. `null` clears `description`, `tags` or `voiceId`. */
|
|
1935
|
+
update(configId: string, body: UpdateSurveyTestConfigRequest, requestOptions?: RequestOptions): Promise<SurveyTestConfig>;
|
|
1936
|
+
/** Tests already started from the config are unaffected. */
|
|
1937
|
+
delete(configId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
1938
|
+
}
|
|
1939
|
+
/**
|
|
1940
|
+
* Survey tests. The direction is REVERSED from every other test: your platform
|
|
1941
|
+
* sends the survey and nopaque answers as the respondent.
|
|
1942
|
+
*/
|
|
1943
|
+
declare class SurveysResource extends Resource {
|
|
1944
|
+
readonly results: SurveyResultsResource;
|
|
1945
|
+
readonly configs: SurveyConfigsResource;
|
|
1946
|
+
constructor(transport: Transport);
|
|
1947
|
+
/**
|
|
1948
|
+
* Start a survey test. Nothing runs yet: nopaque begins WAITING for a survey
|
|
1949
|
+
* sent from `sender` to the returned `agentE164`, until `expiresAt`.
|
|
1950
|
+
*
|
|
1951
|
+
* Throws `ConflictError` (409) when the workspace has no live survey numbers,
|
|
1952
|
+
* or when every one of them is already running a test against this sender -
|
|
1953
|
+
* the message tells the two apart. `NotFoundError` (404) for an unknown
|
|
1954
|
+
* config. A 503 means the number could not be put into service and nothing
|
|
1955
|
+
* was reserved; it is safe to try again, but this method does not.
|
|
1956
|
+
*/
|
|
1957
|
+
start(params: StartSurveyTestParams, requestOptions?: RequestOptions): Promise<StartSurveyTestResponse>;
|
|
1958
|
+
/** Stop a test before its window closes, freeing its number. */
|
|
1959
|
+
stop(runId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
1960
|
+
/** Every survey test holding a number, plus how many numbers are free. Not paginated. */
|
|
1961
|
+
list(requestOptions?: RequestOptions): Promise<ListSurveyRunsResponse>;
|
|
1962
|
+
/**
|
|
1963
|
+
* Poll `results.get(runId)` until the capture is `final` or `failed`, and
|
|
1964
|
+
* return the result either way. A `failed` capture is a RESULT, not an error -
|
|
1965
|
+
* inspect `capture.error`.
|
|
1966
|
+
*
|
|
1967
|
+
* The result row is written asynchronously after `start()`, so a 404 is
|
|
1968
|
+
* treated as "not yet" for `notFoundGrace` and rethrown after that. Throws
|
|
1969
|
+
* `NopaqueTimeoutError` on the deadline; the test itself is NOT stopped.
|
|
1970
|
+
*/
|
|
1971
|
+
waitForResult(runId: string, opts?: SurveysWaitForResultOptions): Promise<SurveyResult>;
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1705
1974
|
type SweepStatus = 'created' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
1706
1975
|
interface Sweep {
|
|
1707
1976
|
id: string;
|
|
@@ -2081,6 +2350,7 @@ declare class Nopaque {
|
|
|
2081
2350
|
readonly digitalTesting: DigitalTestingResource;
|
|
2082
2351
|
readonly digitalTestConfigs: DigitalTestConfigsResource;
|
|
2083
2352
|
readonly digitalCompliance: DigitalComplianceResource;
|
|
2353
|
+
readonly surveys: SurveysResource;
|
|
2084
2354
|
private readonly transport;
|
|
2085
2355
|
constructor(options?: NopaqueOptions);
|
|
2086
2356
|
close(): void;
|
|
@@ -2088,4 +2358,4 @@ declare class Nopaque {
|
|
|
2088
2358
|
|
|
2089
2359
|
declare const VERSION: string;
|
|
2090
2360
|
|
|
2091
|
-
export { APIConnectionError, APITimeoutError, type AddProfileItemRequest, type AggregateGroup, type AggregateGroupBy, type AggregateTimeBucket, type AudioCategory, type AudioDownloadURL, type AudioFile, type AudioListParams, type AudioUploadURL, AuthenticationError, type Batch, type BatchRun, type BatchRunStatus, type BatchStatus, type BatchesListParams, type CallTelemetry, type ChatMatcher, type ChatStep, type ChatStepBase, type ComplianceCatalogue, type ComplianceCatalogueResponse, type ComplianceRegulation, type ComplianceRegulationSection, type ComplianceReport, type ComplianceReportListItem, type ComplianceReportListParams, type ComplianceReportSummary, type ComplianceTest, type ComplianceTestEvidence, type ComplianceTestVerdict, ConflictError, type ConnectChatTarget, type CreateBatchRequest, type CreateComplianceBatchRequest, type CreateComplianceBatchResponse, type CreateDatasetRequest, type CreateDigitalTestConfigRequest, type CreateDigitalTestRunRequest, type CreateDigitalTestRunResponse, type CreateLoadTestRequest, type CreateMappingJobRequest, type CreateMissionTestConfigRequest, type CreateMissionTestRequest, type CreateProfileRequest, type CreateScheduleRequest, type CreateSweepRequest, type CreateTestConfigRequest, type CreateTestJobRequest, type CreateTestRunRequest, type CreateUploadUrlRequest, type CurrentRun, type DTMFOption, type Dataset, type DatasetsListParams, type DigitalComplianceAuditSummary, type DigitalComplianceReportParams, type DigitalEvidence, type DigitalOutcome, type DigitalProfile, type DigitalProfileItem, type DigitalRunStatus, type DigitalSample, type DigitalStepResult, type DigitalTarget, type DigitalTestConfig, type DigitalTestConfigBase, type DigitalTestConfigListParams, type DigitalTestKind, type DigitalTestRun, type DigitalTestRunListParams, type DigitalTranscriptTurn, type DownloadOptions, type EndChatStep, type EnrichRequest, type EnrichResponse, type Enrichment, type EnrichmentConfig, type EnrichmentDimensions, type EnrichmentStatus, type ExpectChatStep, type FlatTreeNode, type GeneratePdfRequest, type GeneratePdfResponse, type HttpJsonTarget, type JobStatus, type LaunchDigitalTestConfigRequest, type ListDigitalComplianceAuditsResponse, type ListDigitalTestConfigsResponse, type ListDigitalTestRunsResponse, type ListVoicesResponse, type LoadTest, type LoadTestEstimate, type LoadTestEstimateRequest, type LoadTestProgress, type LoadTestRun, type LoadTestStatus, type LoadTestStatusResponse, type LoadTestingListParams, type MappingJob, type MappingJobConfig, type MappingJobListItem, type MappingJobStats, type MappingListParams, type MappingMode, type MappingPath, type MappingRun, type MappingRunStatus, type MappingStep, type MappingTree, type MappingTreeEmptyState, type MissionTestConfig, type MissionTestConfigListItem, type MissionTestConfigListParams, type MissionTestDefaults, type MissionTestKind, type MissionTestListParams, type MissionTestProfile, type MissionTestRun, type MissionTestRunResponse, type MissionTestStatus, Nopaque, NopaqueAPIError, NopaqueConfigError, NopaqueError, type NopaqueOptions, NopaqueTimeoutError, NotFoundError, Page, Paginator, PermissionError, type ProbeResult, type Profile, type ProfileDataItem, type ProfileItem, type ProfileParametersResponse, type ProfileVoiceItem, type ProfileVoiceItemBase, type ProfilesByParametersParams, type ProfilesByParametersResponse, type ProfilesListParams, type QualityScoringResults, RateLimitError, type RepeatBehavior, type RepeatConfig, type RequestOptions, type ResolvedDataset, type ResolvedDatasetEntry, type RetryConfig, type Schedule, type ScheduleListParams, type ScheduleTargetType, type ScheduleType, type SendChatStep, ServerError, type StepResult, type StepStatus, type Sweep, type SweepRun, type SweepRunStatus, type SweepStatus, type SweepVariationResult, type SweepsListParams, type TestConfig, type TestJob, type TestJobStatus, type TestRun, type TestRunAggregateParams, type TestRunAggregateResponse, type TestRunDetails, type TestRunListItem, type TestRunListParams, type TestRunOutcome, type TestRunStatus, type TestRunType, type TestStep, type TestStepResult, type TestingListParams, type TokenUsageDetails, type TokenUsageResponse, type TreeFormat, type TreeInputRequired, type TreeNode, type TreeNodeEnrichment, type TurnTelemetry, type UpdateBatchRequest, type UpdateDatasetRequest, type UpdateDigitalTestConfigRequest, type UpdateLoadTestRequest, type UpdateMappingJobRequest, type UpdateMissionTestConfigRequest, type UpdateProfileItemRequest, type UpdateProfileRequest, type UpdateScheduleRequest, type UpdateSweepRequest, type UpdateTestConfigRequest, type UploadInput, VERSION, ValidationError, type Vertical, type Voice, type WaitChatStep, type WebWidgetTarget };
|
|
2361
|
+
export { APIConnectionError, APITimeoutError, type AddProfileItemRequest, type AggregateGroup, type AggregateGroupBy, type AggregateTimeBucket, type AudioCategory, type AudioDownloadURL, type AudioFile, type AudioListParams, type AudioUploadURL, AuthenticationError, type Batch, type BatchRun, type BatchRunStatus, type BatchStatus, type BatchesListParams, type CallTelemetry, type ChatMatcher, type ChatStep, type ChatStepBase, type ComplianceCatalogue, type ComplianceCatalogueResponse, type ComplianceRegulation, type ComplianceRegulationSection, type ComplianceReport, type ComplianceReportListItem, type ComplianceReportListParams, type ComplianceReportSummary, type ComplianceTest, type ComplianceTestEvidence, type ComplianceTestVerdict, ConflictError, type ConnectChatTarget, type CreateBatchRequest, type CreateComplianceBatchRequest, type CreateComplianceBatchResponse, type CreateDatasetRequest, type CreateDigitalTestConfigRequest, type CreateDigitalTestRunRequest, type CreateDigitalTestRunResponse, type CreateLoadTestRequest, type CreateMappingJobRequest, type CreateMissionTestConfigRequest, type CreateMissionTestRequest, type CreateProfileRequest, type CreateScheduleRequest, type CreateSurveyTestConfigRequest, type CreateSweepRequest, type CreateTestConfigRequest, type CreateTestJobRequest, type CreateTestRunRequest, type CreateUploadUrlRequest, type CurrentRun, type DTMFOption, type Dataset, type DatasetsListParams, type DigitalComplianceAuditSummary, type DigitalComplianceReportParams, type DigitalEvidence, type DigitalOutcome, type DigitalProfile, type DigitalProfileItem, type DigitalRunStatus, type DigitalSample, type DigitalStepResult, type DigitalTarget, type DigitalTestConfig, type DigitalTestConfigBase, type DigitalTestConfigListParams, type DigitalTestKind, type DigitalTestRun, type DigitalTestRunListParams, type DigitalTranscriptTurn, type DownloadOptions, type EndChatStep, type EnrichRequest, type EnrichResponse, type Enrichment, type EnrichmentConfig, type EnrichmentDimensions, type EnrichmentStatus, type ExpectChatStep, type FlatTreeNode, type GeneratePdfRequest, type GeneratePdfResponse, type HttpJsonTarget, type JobStatus, type LaunchDigitalTestConfigRequest, type ListDigitalComplianceAuditsResponse, type ListDigitalTestConfigsResponse, type ListDigitalTestRunsResponse, type ListSurveyResultsResponse, type ListSurveyRunsResponse, type ListSurveyTestConfigsResponse, type ListVoicesResponse, type LoadTest, type LoadTestEstimate, type LoadTestEstimateRequest, type LoadTestProgress, type LoadTestRun, type LoadTestStatus, type LoadTestStatusResponse, type LoadTestingListParams, type MappingJob, type MappingJobConfig, type MappingJobListItem, type MappingJobStats, type MappingListParams, type MappingMode, type MappingPath, type MappingRun, type MappingRunStatus, type MappingStep, type MappingTree, type MappingTreeEmptyState, type MissionTestConfig, type MissionTestConfigListItem, type MissionTestConfigListParams, type MissionTestDefaults, type MissionTestKind, type MissionTestListParams, type MissionTestProfile, type MissionTestRun, type MissionTestRunResponse, type MissionTestStatus, Nopaque, NopaqueAPIError, NopaqueConfigError, NopaqueError, type NopaqueOptions, NopaqueTimeoutError, NotFoundError, Page, Paginator, PermissionError, type ProbeResult, type Profile, type ProfileDataItem, type ProfileItem, type ProfileParametersResponse, type ProfileVoiceItem, type ProfileVoiceItemBase, type ProfilesByParametersParams, type ProfilesByParametersResponse, type ProfilesListParams, type QualityScoringResults, RateLimitError, type RepeatBehavior, type RepeatConfig, type RequestOptions, type ResolvedDataset, type ResolvedDatasetEntry, type RetryConfig, type Schedule, type ScheduleListParams, type ScheduleTargetType, type ScheduleType, type SendChatStep, ServerError, type StartSurveyTestParams, type StartSurveyTestRequest, type StartSurveyTestResponse, type StepResult, type StepStatus, type SurveyCapture, type SurveyCaptureStatus, type SurveyChannel, type SurveyEndReason, type SurveyNumbers, type SurveyOutcome, type SurveyResult, type SurveyResultListParams, type SurveyResultSummary, type SurveyRun, type SurveyRunState, type SurveyScenario, type SurveyTestConfig, type SurveyTestConfigListItem, type SurveyTurn, type SurveysWaitForResultOptions, type Sweep, type SweepRun, type SweepRunStatus, type SweepStatus, type SweepVariationResult, type SweepsListParams, type TestConfig, type TestJob, type TestJobStatus, type TestRun, type TestRunAggregateParams, type TestRunAggregateResponse, type TestRunDetails, type TestRunListItem, type TestRunListParams, type TestRunOutcome, type TestRunStatus, type TestRunType, type TestStep, type TestStepResult, type TestingListParams, type TokenUsageDetails, type TokenUsageResponse, type TreeFormat, type TreeInputRequired, type TreeNode, type TreeNodeEnrichment, type TurnTelemetry, type UpdateBatchRequest, type UpdateDatasetRequest, type UpdateDigitalTestConfigRequest, type UpdateLoadTestRequest, type UpdateMappingJobRequest, type UpdateMissionTestConfigRequest, type UpdateProfileItemRequest, type UpdateProfileRequest, type UpdateScheduleRequest, type UpdateSurveyTestConfigRequest, type UpdateSweepRequest, type UpdateTestConfigRequest, type UploadInput, VERSION, ValidationError, type Vertical, type Voice, type WaitChatStep, type WebWidgetTarget };
|