@gtmi/ramp-api-client 0.0.1 → 0.0.2

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/es/index.mjs CHANGED
@@ -819,7 +819,7 @@ const client = createClient(createConfig());
819
819
  * GET /sync/token
820
820
  *
821
821
  * Generates a Twilio Access Token with a SyncGrant so frontends
822
- * can subscribe to Sync Streams via the twilio-sync JS SDK.
822
+ * can subscribe to Sync Streams via the twilio-sync JS SDK
823
823
  */ const getSyncToken = (options)=>(options?.client ?? client).get({
824
824
  security: [
825
825
  {
@@ -834,7 +834,7 @@ const client = createClient(createConfig());
834
834
  * GET /voice/token
835
835
  *
836
836
  * Generates a Twilio Access Token with a VoiceGrant so browser clients
837
- * can place outbound calls via the Twilio Voice SDK (WebRTC).
837
+ * can place outbound calls via the Twilio Voice SDK (WebRTC)
838
838
  */ const getVoiceToken = (options)=>(options?.client ?? client).get({
839
839
  url: '/voice/token',
840
840
  ...options
@@ -1201,7 +1201,7 @@ const client = createClient(createConfig());
1201
1201
  /**
1202
1202
  * POST /intelligence-configuration
1203
1203
  *
1204
- * Twilio Conversational Intelligence Operators API endpoint.
1204
+ * POST handler for creating a Twilio Intelligence Configuration
1205
1205
  */ const postIntelligenceConfiguration = (options)=>(options.client ?? client).post({
1206
1206
  security: [
1207
1207
  {
@@ -1811,6 +1811,55 @@ const client = createClient(createConfig());
1811
1811
  });
1812
1812
 
1813
1813
  // This file is auto-generated by @hey-api/openapi-ts
1814
+ const zErrorResponse = z.object({
1815
+ error: z.string().optional(),
1816
+ details: z.string().optional()
1817
+ });
1818
+ const zConversation = z.object({
1819
+ accountId: z.string().optional(),
1820
+ configuration: z.string().optional(),
1821
+ configurationId: z.string().optional(),
1822
+ createdAt: z.string().optional(),
1823
+ id: z.string().optional(),
1824
+ name: z.string().optional(),
1825
+ status: z.string().optional(),
1826
+ updatedAt: z.string().optional()
1827
+ });
1828
+ const zParticipant = z.object({
1829
+ id: z.string().optional(),
1830
+ conversationId: z.string().optional(),
1831
+ accountId: z.string().optional(),
1832
+ name: z.string().optional(),
1833
+ type: z.string().optional(),
1834
+ addresses: z.string().optional(),
1835
+ createdAt: z.string().optional(),
1836
+ updatedAt: z.string().optional(),
1837
+ profileId: z.string().optional()
1838
+ });
1839
+ const zOperator = z.object({
1840
+ id: z.string().optional(),
1841
+ displayName: z.string().optional(),
1842
+ description: z.string().optional(),
1843
+ version: z.string().optional(),
1844
+ availability: z.string().optional(),
1845
+ author: z.string().optional(),
1846
+ prompt: z.string().optional(),
1847
+ outputFormat: z.string().optional(),
1848
+ outputSchema: z.string().optional(),
1849
+ trainingExamples: z.string().optional(),
1850
+ context: z.string().optional(),
1851
+ parameters: z.string().optional()
1852
+ });
1853
+ const zIntelligenceConfiguration = z.object({
1854
+ accountId: z.string().optional(),
1855
+ dateCreated: z.string().optional(),
1856
+ dateUpdated: z.string().optional(),
1857
+ description: z.string().optional(),
1858
+ displayName: z.string().optional(),
1859
+ id: z.string().optional(),
1860
+ rules: z.string().optional(),
1861
+ version: z.string().optional()
1862
+ });
1814
1863
  const zAutogenRequest = z.object({
1815
1864
  email: z.string().optional(),
1816
1865
  company: z.string().optional(),
@@ -1824,6 +1873,38 @@ const zAutogenRequest = z.object({
1824
1873
  logoFull: z.string().optional(),
1825
1874
  websiteUrl: z.string().optional()
1826
1875
  });
1876
+ const zTemplateData = z.object({
1877
+ objectID: z.string().optional(),
1878
+ title: z.string().optional(),
1879
+ img: z.string().optional(),
1880
+ associatedNumbers: z.string().optional(),
1881
+ author: z.string().optional(),
1882
+ createdAt: z.string().optional(),
1883
+ createdAtUnix: z.string().optional(),
1884
+ lastUpdatedAtUnix: z.string().optional(),
1885
+ lastUpdated: z.string().optional(),
1886
+ lastUpdatedBy: z.string().optional(),
1887
+ prompt: z.string().optional(),
1888
+ data: z.string().optional(),
1889
+ content: z.string().optional()
1890
+ });
1891
+ const zCalledByData = z.object({
1892
+ phoneNumber: z.string().optional(),
1893
+ timestamp: z.number().optional(),
1894
+ direction: z.string().optional(),
1895
+ objectId: z.string().optional()
1896
+ });
1897
+ const zCampaign = z.object({
1898
+ email: z.string().optional(),
1899
+ companyName: z.string().optional(),
1900
+ objectID: z.string().optional(),
1901
+ encryptedObjectId: z.string().optional(),
1902
+ agentNumber: z.string().optional(),
1903
+ tag: z.string().optional(),
1904
+ createdAt: z.string().optional(),
1905
+ numCalls: z.string().optional(),
1906
+ shortLink: z.string().optional()
1907
+ });
1827
1908
  const zSupportedRegion = z.object({
1828
1909
  isoCountry: z.string().optional(),
1829
1910
  numberType: z.string().optional(),
@@ -1833,76 +1914,196 @@ const zSupportedRegion = z.object({
1833
1914
  capabilities: z.string().optional()
1834
1915
  });
1835
1916
  const zShortenUrlInput = z.record(z.unknown());
1917
+ /**
1918
+ * Success
1919
+ */ const zGetHealthResponse = z.object({
1920
+ status: z.string()
1921
+ });
1836
1922
  const zPostConversationsTokenBody = z.record(z.unknown());
1923
+ /**
1924
+ * Success
1925
+ */ const zPostConversationsTokenResponse = z.object({
1926
+ identity: z.string(),
1927
+ token: z.string()
1928
+ });
1837
1929
  const zGetSyncTokenQuery = z.object({
1838
1930
  identity: z.string().optional()
1839
1931
  });
1932
+ /**
1933
+ * Success
1934
+ */ const zGetSyncTokenResponse = z.object({
1935
+ identity: z.string(),
1936
+ token: z.string()
1937
+ });
1840
1938
  const zGetVoiceTokenQuery = z.object({
1841
1939
  identity: z.string().optional()
1842
1940
  });
1941
+ /**
1942
+ * Success
1943
+ */ const zGetVoiceTokenResponse = z.object({
1944
+ identity: z.string(),
1945
+ token: z.string()
1946
+ });
1843
1947
  const zPostUiConfigBody = z.record(z.unknown());
1948
+ /**
1949
+ * Success
1950
+ */ const zPostUiConfigResponse = z.object({
1951
+ ui: z.record(z.unknown()),
1952
+ linkMap: z.record(z.unknown()),
1953
+ hideChatLink: z.boolean(),
1954
+ templateTitle: z.string(),
1955
+ dialogConfig: z.record(z.unknown()),
1956
+ templateObjectId: z.string(),
1957
+ resolvedCustomerNumber: z.string()
1958
+ });
1844
1959
  const zPostCreateExternalFlexConnectionBody = z.object({
1845
1960
  seAccountSid: z.string(),
1846
1961
  seApiKeySid: z.string(),
1847
1962
  seApiKeySecret: z.string()
1848
1963
  });
1964
+ /**
1965
+ * Studio Flow, TwiML App, and RAMP integration configuration
1966
+ */ const zPostCreateExternalFlexConnectionResponse = z.record(z.unknown());
1849
1967
  const zPostInstallFlexPluginBody = z.object({
1850
1968
  seAccountSid: z.string(),
1851
1969
  seApiKeySid: z.string(),
1852
1970
  seApiKeySecret: z.string(),
1853
1971
  pluginName: z.string()
1854
1972
  });
1973
+ /**
1974
+ * Success
1975
+ */ const zPostInstallFlexPluginResponse = z.object({
1976
+ success: z.boolean(),
1977
+ plugin: z.record(z.unknown()),
1978
+ deployedVersion: z.string(),
1979
+ release: z.record(z.unknown())
1980
+ });
1855
1981
  const zPostLiveAgentWebchatConnectBody = z.record(z.unknown());
1982
+ const zPostLiveAgentWebchatConnectResponse = z.union([
1983
+ z.unknown(),
1984
+ z.object({
1985
+ conversationSid: z.string(),
1986
+ interactionSid: z.string(),
1987
+ interactionChannelSid: z.string(),
1988
+ identity: z.string(),
1989
+ serviceSid: z.string()
1990
+ })
1991
+ ]);
1856
1992
  const zPostLiveAgentWebchatSendBody = z.object({
1857
1993
  conversationSid: z.string(),
1858
1994
  identity: z.string(),
1859
1995
  message: z.string()
1860
1996
  });
1997
+ const zPostLiveAgentWebchatSendResponse = z.union([
1998
+ z.unknown(),
1999
+ z.object({
2000
+ message: z.record(z.unknown())
2001
+ })
2002
+ ]);
1861
2003
  const zPostLiveAgentWebchatEndBody = z.record(z.unknown());
2004
+ /**
2005
+ * Success
2006
+ */ const zPostLiveAgentWebchatEndResponse = z.object({
2007
+ success: z.boolean()
2008
+ });
2009
+ /**
2010
+ * Success
2011
+ */ const zDeleteLeadGenResponse = z.object({
2012
+ message: z.string()
2013
+ });
1862
2014
  const zPatchLeadGenBody = z.record(z.unknown());
2015
+ /**
2016
+ * Success
2017
+ */ const zPatchLeadGenResponse = z.object({
2018
+ message: z.string(),
2019
+ data: z.record(z.unknown())
2020
+ });
1863
2021
  const zPostLeadGenBody = z.object({
1864
2022
  objectID: z.string(),
1865
2023
  userEmail: z.string()
1866
2024
  });
2025
+ /**
2026
+ * Success
2027
+ */ const zPostLeadGenResponse = z.object({
2028
+ agentNumber: z.string()
2029
+ });
2030
+ /**
2031
+ * Success
2032
+ */ const zPostLeadGenMonitorResponse = z.object({
2033
+ message: z.string(),
2034
+ data: z.record(z.unknown())
2035
+ });
1867
2036
  const zPostConversationsCommunicationsByConversationIdBody = z.object({
1868
- author: z.string(),
1869
- content: z.string(),
2037
+ author: z.record(z.unknown()),
2038
+ content: z.record(z.unknown()),
1870
2039
  recipients: z.string()
1871
2040
  });
1872
2041
  const zPostConversationsCommunicationsByConversationIdPath = z.object({
1873
2042
  conversationId: z.string()
1874
2043
  });
2044
+ const zPostConversationsCommunicationsByConversationIdResponse = z.union([
2045
+ z.unknown(),
2046
+ z.record(z.unknown())
2047
+ ]);
1875
2048
  const zGetConversationsFetchQuery = z.object({
1876
2049
  conversationId: z.string().optional(),
1877
2050
  status: z.string().optional()
1878
2051
  });
2052
+ /**
2053
+ * A single Conversation (when conversationId is provided) or a paginated conversations list
2054
+ */ const zGetConversationsFetchResponse = z.record(z.unknown());
1879
2055
  const zPostConversationsBody = z.object({
1880
2056
  configurationId: z.string()
1881
2057
  });
2058
+ /**
2059
+ * The created conversation
2060
+ */ const zPostConversationsResponse = zConversation;
1882
2061
  const zPutConversationsBody = z.object({
1883
2062
  conversationsId: z.string(),
1884
2063
  status: z.string()
1885
2064
  });
2065
+ /**
2066
+ * The updated conversation object
2067
+ */ const zPutConversationsResponse = zConversation;
1886
2068
  const zGetParticipantsQuery = z.object({
1887
2069
  conversationId: z.string().optional(),
1888
2070
  participantId: z.string().optional()
1889
2071
  });
2072
+ /**
2073
+ * Success
2074
+ */ const zGetParticipantsResponse = z.object({
2075
+ participants: z.array(zParticipant)
2076
+ });
1890
2077
  const zPostParticipantsBody = z.object({
1891
2078
  conversationId: z.string(),
1892
2079
  participantType: z.string(),
1893
2080
  addresses: z.string()
1894
2081
  });
2082
+ /**
2083
+ * The created participant object from Twilio
2084
+ */ const zPostParticipantsResponse = z.record(z.unknown());
1895
2085
  const zPutParticipantsBody = z.object({
1896
2086
  conversationId: z.string(),
1897
2087
  participantId: z.string()
1898
2088
  });
2089
+ /**
2090
+ * The updated participant object from Twilio
2091
+ */ const zPutParticipantsResponse = z.record(z.unknown());
1899
2092
  const zDeleteConversationalIntelligenceOperatorBody = z.object({
1900
2093
  intelligenceOperatorId: z.string()
1901
2094
  });
2095
+ /**
2096
+ * Success
2097
+ */ const zDeleteConversationalIntelligenceOperatorResponse = z.object({
2098
+ success: z.boolean()
2099
+ });
1902
2100
  const zGetConversationalIntelligenceOperatorQuery = z.object({
1903
2101
  intelligenceOperatorId: z.string().optional(),
1904
2102
  pageToken: z.string().optional()
1905
2103
  });
2104
+ /**
2105
+ * A single Operator (when intelligenceOperatorId is provided) or an OperatorList (paginated)
2106
+ */ const zGetConversationalIntelligenceOperatorResponse = z.record(z.unknown());
1906
2107
  const zPostConversationalIntelligenceOperatorBody = z.object({
1907
2108
  author: z.string(),
1908
2109
  displayName: z.string(),
@@ -1911,6 +2112,9 @@ const zPostConversationalIntelligenceOperatorBody = z.object({
1911
2112
  valueType: z.string(),
1912
2113
  uiType: z.string()
1913
2114
  });
2115
+ /**
2116
+ * The created operator object
2117
+ */ const zPostConversationalIntelligenceOperatorResponse = zOperator;
1914
2118
  const zPutConversationalIntelligenceOperatorBody = z.object({
1915
2119
  displayName: z.string(),
1916
2120
  description: z.string(),
@@ -1919,18 +2123,34 @@ const zPutConversationalIntelligenceOperatorBody = z.object({
1919
2123
  uiType: z.string(),
1920
2124
  intelligenceOperatorId: z.string()
1921
2125
  });
2126
+ /**
2127
+ * The updated operator object
2128
+ */ const zPutConversationalIntelligenceOperatorResponse = zOperator;
1922
2129
  const zGetIntelligenceConfigurationQuery = z.object({
1923
2130
  intelligenceConfigurationId: z.string().optional(),
1924
2131
  pageToken: z.string().optional()
1925
2132
  });
2133
+ /**
2134
+ * A single IntelligenceConfiguration (when intelligenceConfigurationId is provided) or an IntelligenceConfigurationList (paginated)
2135
+ */ const zGetIntelligenceConfigurationResponse = z.record(z.unknown());
1926
2136
  const zPostIntelligenceConfigurationBody = z.record(z.unknown());
2137
+ /**
2138
+ * The created configuration
2139
+ */ const zPostIntelligenceConfigurationResponse = zIntelligenceConfiguration;
1927
2140
  const zPutIntelligenceConfigurationBody = z.object({
1928
2141
  intelligenceConfigurationId: z.string()
1929
2142
  });
2143
+ /**
2144
+ * The updated configuration
2145
+ */ const zPutIntelligenceConfigurationResponse = zIntelligenceConfiguration;
1930
2146
  const zDeleteConversationMemoryProfilesQuery = z.object({
1931
2147
  storeId: z.string().optional(),
1932
2148
  profileId: z.string().optional()
1933
2149
  });
2150
+ const zDeleteConversationMemoryProfilesResponse = z.union([
2151
+ z.unknown(),
2152
+ z.record(z.unknown())
2153
+ ]);
1934
2154
  const zGetConversationMemoryProfilesQuery = z.object({
1935
2155
  storeId: z.string().optional(),
1936
2156
  profileId: z.string().optional(),
@@ -1939,35 +2159,59 @@ const zGetConversationMemoryProfilesQuery = z.object({
1939
2159
  pageToken: z.string().optional(),
1940
2160
  orderBy: z.string().optional()
1941
2161
  });
2162
+ /**
2163
+ * Upstream profile data (single profile or paginated list) from the Conversation Memory API
2164
+ */ const zGetConversationMemoryProfilesResponse = z.record(z.unknown());
1942
2165
  const zPatchConversationMemoryProfilesBody = z.object({
1943
2166
  storeId: z.string(),
1944
2167
  profileId: z.string(),
1945
- traits: z.string()
2168
+ traits: z.record(z.unknown())
1946
2169
  });
2170
+ const zPatchConversationMemoryProfilesResponse = z.union([
2171
+ z.unknown(),
2172
+ z.record(z.unknown())
2173
+ ]);
1947
2174
  const zPostConversationMemoryProfilesBody = z.object({
1948
2175
  storeId: z.string(),
1949
- traits: z.string()
2176
+ traits: z.record(z.unknown())
1950
2177
  });
2178
+ const zPostConversationMemoryProfilesResponse = z.union([
2179
+ z.unknown(),
2180
+ z.record(z.unknown())
2181
+ ]);
1951
2182
  const zPostConversationMemoryProfilesLookupBody = z.object({
1952
2183
  storeId: z.string(),
1953
2184
  idType: z.string(),
1954
2185
  value: z.string()
1955
2186
  });
2187
+ /**
2188
+ * Upstream matching profiles payload from the Conversation Memory API
2189
+ */ const zPostConversationMemoryProfilesLookupResponse = z.record(z.unknown());
1956
2190
  const zPostConversationMemoryRecallBody = z.object({
1957
2191
  storeId: z.string(),
1958
2192
  profileId: z.string()
1959
2193
  });
2194
+ /**
2195
+ * Upstream memory retrieval results from the Conversation Memory API
2196
+ */ const zPostConversationMemoryRecallResponse = z.record(z.unknown());
1960
2197
  const zDeleteConversationMemoryIdentifiersQuery = z.object({
1961
2198
  storeId: z.string().optional(),
1962
2199
  profileId: z.string().optional(),
1963
2200
  idType: z.string().optional(),
1964
2201
  removeAll: z.string().optional()
1965
2202
  });
2203
+ const zDeleteConversationMemoryIdentifiersResponse = z.union([
2204
+ z.unknown(),
2205
+ z.record(z.unknown())
2206
+ ]);
1966
2207
  const zGetConversationMemoryIdentifiersQuery = z.object({
1967
2208
  storeId: z.string().optional(),
1968
2209
  profileId: z.string().optional(),
1969
2210
  idType: z.string().optional()
1970
2211
  });
2212
+ /**
2213
+ * Upstream identifier data from the Conversation Memory API
2214
+ */ const zGetConversationMemoryIdentifiersResponse = z.record(z.unknown());
1971
2215
  const zPatchConversationMemoryIdentifiersBody = z.object({
1972
2216
  storeId: z.string(),
1973
2217
  profileId: z.string(),
@@ -1975,16 +2219,28 @@ const zPatchConversationMemoryIdentifiersBody = z.object({
1975
2219
  oldValue: z.string(),
1976
2220
  newValue: z.string()
1977
2221
  });
2222
+ const zPatchConversationMemoryIdentifiersResponse = z.union([
2223
+ z.unknown(),
2224
+ z.record(z.unknown())
2225
+ ]);
1978
2226
  const zPostConversationMemoryIdentifiersBody = z.object({
1979
2227
  storeId: z.string(),
1980
2228
  profileId: z.string(),
1981
2229
  idType: z.string(),
1982
2230
  value: z.string()
1983
2231
  });
2232
+ const zPostConversationMemoryIdentifiersResponse = z.union([
2233
+ z.unknown(),
2234
+ z.record(z.unknown())
2235
+ ]);
1984
2236
  const zDeleteConversationMemoryTraitGroupsQuery = z.object({
1985
2237
  storeId: z.string().optional(),
1986
2238
  traitGroupName: z.string().optional()
1987
2239
  });
2240
+ const zDeleteConversationMemoryTraitGroupsResponse = z.union([
2241
+ z.unknown(),
2242
+ z.record(z.unknown())
2243
+ ]);
1988
2244
  const zGetConversationMemoryTraitGroupsQuery = z.object({
1989
2245
  storeId: z.string().optional(),
1990
2246
  traitGroupName: z.string().optional(),
@@ -1993,14 +2249,25 @@ const zGetConversationMemoryTraitGroupsQuery = z.object({
1993
2249
  pageToken: z.string().optional(),
1994
2250
  orderBy: z.string().optional()
1995
2251
  });
2252
+ /**
2253
+ * Upstream Trait Group data (single group or paginated list) from the Conversation Memory API
2254
+ */ const zGetConversationMemoryTraitGroupsResponse = z.record(z.unknown());
1996
2255
  const zPatchConversationMemoryTraitGroupsBody = z.object({
1997
2256
  storeId: z.string(),
1998
2257
  traitGroupName: z.string()
1999
2258
  });
2259
+ const zPatchConversationMemoryTraitGroupsResponse = z.union([
2260
+ z.unknown(),
2261
+ z.record(z.unknown())
2262
+ ]);
2000
2263
  const zPostConversationMemoryTraitGroupsBody = z.object({
2001
2264
  storeId: z.string(),
2002
2265
  displayName: z.string()
2003
2266
  });
2267
+ const zPostConversationMemoryTraitGroupsResponse = z.union([
2268
+ z.unknown(),
2269
+ z.record(z.unknown())
2270
+ ]);
2004
2271
  const zGetConversationMemoryTraitsQuery = z.object({
2005
2272
  storeId: z.string().optional(),
2006
2273
  profileId: z.string().optional(),
@@ -2009,11 +2276,18 @@ const zGetConversationMemoryTraitsQuery = z.object({
2009
2276
  orderBy: z.string().optional(),
2010
2277
  traitGroups: z.string().optional()
2011
2278
  });
2279
+ /**
2280
+ * Upstream paginated traits list from the Conversation Memory API
2281
+ */ const zGetConversationMemoryTraitsResponse = z.record(z.unknown());
2012
2282
  const zDeleteConversationMemoryObservationsQuery = z.object({
2013
2283
  storeId: z.string().optional(),
2014
2284
  profileId: z.string().optional(),
2015
2285
  observationId: z.string().optional()
2016
2286
  });
2287
+ const zDeleteConversationMemoryObservationsResponse = z.union([
2288
+ z.unknown(),
2289
+ z.record(z.unknown())
2290
+ ]);
2017
2291
  const zGetConversationMemoryObservationsQuery = z.object({
2018
2292
  storeId: z.string().optional(),
2019
2293
  profileId: z.string().optional(),
@@ -2025,6 +2299,9 @@ const zGetConversationMemoryObservationsQuery = z.object({
2025
2299
  createdAfter: z.string().optional(),
2026
2300
  createdBefore: z.string().optional()
2027
2301
  });
2302
+ /**
2303
+ * Upstream observation data (single observation or paginated list) from the Conversation Memory API
2304
+ */ const zGetConversationMemoryObservationsResponse = z.record(z.unknown());
2028
2305
  const zPatchConversationMemoryObservationsBody = z.object({
2029
2306
  storeId: z.string(),
2030
2307
  profileId: z.string(),
@@ -2033,16 +2310,28 @@ const zPatchConversationMemoryObservationsBody = z.object({
2033
2310
  source: z.string(),
2034
2311
  occurredAt: z.string()
2035
2312
  });
2313
+ const zPatchConversationMemoryObservationsResponse = z.union([
2314
+ z.unknown(),
2315
+ z.record(z.unknown())
2316
+ ]);
2036
2317
  const zPostConversationMemoryObservationsBody = z.object({
2037
2318
  storeId: z.string(),
2038
2319
  profileId: z.string(),
2039
2320
  observations: z.string()
2040
2321
  });
2322
+ const zPostConversationMemoryObservationsResponse = z.union([
2323
+ z.unknown(),
2324
+ z.record(z.unknown())
2325
+ ]);
2041
2326
  const zDeleteConversationMemoryConversationSummariesQuery = z.object({
2042
2327
  storeId: z.string().optional(),
2043
2328
  profileId: z.string().optional(),
2044
2329
  summaryId: z.string().optional()
2045
2330
  });
2331
+ const zDeleteConversationMemoryConversationSummariesResponse = z.union([
2332
+ z.unknown(),
2333
+ z.record(z.unknown())
2334
+ ]);
2046
2335
  const zGetConversationMemoryConversationSummariesQuery = z.object({
2047
2336
  storeId: z.string().optional(),
2048
2337
  profileId: z.string().optional(),
@@ -2050,23 +2339,55 @@ const zGetConversationMemoryConversationSummariesQuery = z.object({
2050
2339
  pageSize: z.string().optional(),
2051
2340
  pageToken: z.string().optional()
2052
2341
  });
2342
+ /**
2343
+ * Upstream summary data (single summary or paginated list) from the Conversation Memory API
2344
+ */ const zGetConversationMemoryConversationSummariesResponse = z.record(z.unknown());
2053
2345
  const zPatchConversationMemoryConversationSummariesBody = z.object({
2054
2346
  storeId: z.string(),
2055
2347
  profileId: z.string(),
2056
2348
  summaryId: z.string()
2057
2349
  });
2350
+ const zPatchConversationMemoryConversationSummariesResponse = z.union([
2351
+ z.unknown(),
2352
+ z.record(z.unknown())
2353
+ ]);
2058
2354
  const zPostConversationMemoryConversationSummariesBody = z.object({
2059
2355
  storeId: z.string(),
2060
2356
  profileId: z.string(),
2061
2357
  summaries: z.string()
2062
2358
  });
2359
+ const zPostConversationMemoryConversationSummariesResponse = z.union([
2360
+ z.unknown(),
2361
+ z.record(z.unknown())
2362
+ ]);
2363
+ /**
2364
+ * Success
2365
+ */ const zDeleteConversationMemoryResetResponse = z.object({
2366
+ deletedObservations: z.number(),
2367
+ deletedSummaries: z.number()
2368
+ });
2063
2369
  const zPostAssignDemoBody = z.object({
2064
2370
  phoneNumber: z.string(),
2065
2371
  targetObjectID: z.string()
2066
2372
  });
2373
+ /**
2374
+ * Success
2375
+ */ const zPostAssignDemoResponse = z.object({
2376
+ addedToTarget: z.boolean(),
2377
+ message: z.string(),
2378
+ phoneNumber: z.string(),
2379
+ removedFrom: z.array(z.string()),
2380
+ targetObjectID: z.string()
2381
+ });
2067
2382
  const zGetLookupDemoQuery = z.object({
2068
2383
  phoneNumber: z.string().optional()
2069
2384
  });
2385
+ /**
2386
+ * Success
2387
+ */ const zGetLookupDemoResponse = z.object({
2388
+ phoneNumber: z.string(),
2389
+ templates: z.array(z.record(z.unknown()))
2390
+ });
2070
2391
  const zPostTemplateAutogenBody = z.object({
2071
2392
  requests: z.array(zAutogenRequest),
2072
2393
  tags: z.array(z.string()),
@@ -2075,10 +2396,25 @@ const zPostTemplateAutogenBody = z.object({
2075
2396
  countryCode: z.string(),
2076
2397
  tools: z.array(z.string())
2077
2398
  });
2399
+ /**
2400
+ * Success
2401
+ */ const zPostTemplateAutogenResponse = z.object({
2402
+ templates: z.array(zTemplateData)
2403
+ });
2078
2404
  const zDeleteTemplateQuery = z.object({
2079
2405
  campaign: z.string().optional()
2080
2406
  });
2407
+ /**
2408
+ * Success
2409
+ */ const zDeleteTemplateResponse = z.object({
2410
+ deleted: z.array(z.string())
2411
+ });
2081
2412
  const zPostTemplateBody = z.record(z.unknown());
2413
+ /**
2414
+ * Success
2415
+ */ const zPostTemplateResponse = z.object({
2416
+ message: z.string()
2417
+ });
2082
2418
  const zGetCampaignQuery = z.object({
2083
2419
  limit: z.string().optional(),
2084
2420
  offset: z.string().optional(),
@@ -2088,86 +2424,189 @@ const zGetCampaignQuery = z.object({
2088
2424
  company: z.string().optional(),
2089
2425
  includeCalledBy: z.string().optional()
2090
2426
  });
2427
+ /**
2428
+ * Success
2429
+ */ const zGetCampaignResponse = z.object({
2430
+ calledByData: z.array(zCalledByData),
2431
+ campaigns: z.array(zCampaign),
2432
+ total: z.number()
2433
+ });
2091
2434
  /**
2092
2435
  * Success
2093
2436
  */ const zGetSupportedRegionsResponse = z.object({
2094
2437
  regions: z.array(zSupportedRegion)
2095
2438
  });
2439
+ /**
2440
+ * Success
2441
+ */ const zGetLinkShortenerResponse = z.object({
2442
+ links: z.array(z.record(z.unknown()))
2443
+ });
2096
2444
  const zPatchLinkShortenerBody = z.object({
2097
2445
  objectID: z.string(),
2098
2446
  shortLink: z.string()
2099
2447
  });
2448
+ /**
2449
+ * Success
2450
+ */ const zPatchLinkShortenerResponse = z.object({
2451
+ ok: z.boolean()
2452
+ });
2100
2453
  const zPostLinkShortenerBody = z.object({
2101
2454
  urls: z.array(zShortenUrlInput)
2102
2455
  });
2456
+ const zPostLinkShortenerResponse = z.union([
2457
+ z.unknown(),
2458
+ z.object({
2459
+ results: z.array(z.record(z.unknown()))
2460
+ })
2461
+ ]);
2103
2462
  const zDeleteLinkShortenerByCodePath = z.object({
2104
2463
  code: z.string()
2105
2464
  });
2465
+ /**
2466
+ * Success
2467
+ */ const zDeleteLinkShortenerByCodeResponse = z.object({
2468
+ code: z.string(),
2469
+ ok: z.boolean()
2470
+ });
2471
+ /**
2472
+ * The raw OpenAPI 3.1 spec JSON document
2473
+ */ const zGetDocsOpenapiJsonResponse = z.record(z.unknown());
2106
2474
 
2107
2475
  var zod_gen = {
2108
2476
  __proto__: null,
2109
2477
  zAutogenRequest: zAutogenRequest,
2478
+ zCalledByData: zCalledByData,
2479
+ zCampaign: zCampaign,
2480
+ zConversation: zConversation,
2110
2481
  zDeleteConversationMemoryConversationSummariesQuery: zDeleteConversationMemoryConversationSummariesQuery,
2482
+ zDeleteConversationMemoryConversationSummariesResponse: zDeleteConversationMemoryConversationSummariesResponse,
2111
2483
  zDeleteConversationMemoryIdentifiersQuery: zDeleteConversationMemoryIdentifiersQuery,
2484
+ zDeleteConversationMemoryIdentifiersResponse: zDeleteConversationMemoryIdentifiersResponse,
2112
2485
  zDeleteConversationMemoryObservationsQuery: zDeleteConversationMemoryObservationsQuery,
2486
+ zDeleteConversationMemoryObservationsResponse: zDeleteConversationMemoryObservationsResponse,
2113
2487
  zDeleteConversationMemoryProfilesQuery: zDeleteConversationMemoryProfilesQuery,
2488
+ zDeleteConversationMemoryProfilesResponse: zDeleteConversationMemoryProfilesResponse,
2489
+ zDeleteConversationMemoryResetResponse: zDeleteConversationMemoryResetResponse,
2114
2490
  zDeleteConversationMemoryTraitGroupsQuery: zDeleteConversationMemoryTraitGroupsQuery,
2491
+ zDeleteConversationMemoryTraitGroupsResponse: zDeleteConversationMemoryTraitGroupsResponse,
2115
2492
  zDeleteConversationalIntelligenceOperatorBody: zDeleteConversationalIntelligenceOperatorBody,
2493
+ zDeleteConversationalIntelligenceOperatorResponse: zDeleteConversationalIntelligenceOperatorResponse,
2494
+ zDeleteLeadGenResponse: zDeleteLeadGenResponse,
2116
2495
  zDeleteLinkShortenerByCodePath: zDeleteLinkShortenerByCodePath,
2496
+ zDeleteLinkShortenerByCodeResponse: zDeleteLinkShortenerByCodeResponse,
2117
2497
  zDeleteTemplateQuery: zDeleteTemplateQuery,
2498
+ zDeleteTemplateResponse: zDeleteTemplateResponse,
2499
+ zErrorResponse: zErrorResponse,
2118
2500
  zGetCampaignQuery: zGetCampaignQuery,
2501
+ zGetCampaignResponse: zGetCampaignResponse,
2119
2502
  zGetConversationMemoryConversationSummariesQuery: zGetConversationMemoryConversationSummariesQuery,
2503
+ zGetConversationMemoryConversationSummariesResponse: zGetConversationMemoryConversationSummariesResponse,
2120
2504
  zGetConversationMemoryIdentifiersQuery: zGetConversationMemoryIdentifiersQuery,
2505
+ zGetConversationMemoryIdentifiersResponse: zGetConversationMemoryIdentifiersResponse,
2121
2506
  zGetConversationMemoryObservationsQuery: zGetConversationMemoryObservationsQuery,
2507
+ zGetConversationMemoryObservationsResponse: zGetConversationMemoryObservationsResponse,
2122
2508
  zGetConversationMemoryProfilesQuery: zGetConversationMemoryProfilesQuery,
2509
+ zGetConversationMemoryProfilesResponse: zGetConversationMemoryProfilesResponse,
2123
2510
  zGetConversationMemoryTraitGroupsQuery: zGetConversationMemoryTraitGroupsQuery,
2511
+ zGetConversationMemoryTraitGroupsResponse: zGetConversationMemoryTraitGroupsResponse,
2124
2512
  zGetConversationMemoryTraitsQuery: zGetConversationMemoryTraitsQuery,
2513
+ zGetConversationMemoryTraitsResponse: zGetConversationMemoryTraitsResponse,
2125
2514
  zGetConversationalIntelligenceOperatorQuery: zGetConversationalIntelligenceOperatorQuery,
2515
+ zGetConversationalIntelligenceOperatorResponse: zGetConversationalIntelligenceOperatorResponse,
2126
2516
  zGetConversationsFetchQuery: zGetConversationsFetchQuery,
2517
+ zGetConversationsFetchResponse: zGetConversationsFetchResponse,
2518
+ zGetDocsOpenapiJsonResponse: zGetDocsOpenapiJsonResponse,
2519
+ zGetHealthResponse: zGetHealthResponse,
2127
2520
  zGetIntelligenceConfigurationQuery: zGetIntelligenceConfigurationQuery,
2521
+ zGetIntelligenceConfigurationResponse: zGetIntelligenceConfigurationResponse,
2522
+ zGetLinkShortenerResponse: zGetLinkShortenerResponse,
2128
2523
  zGetLookupDemoQuery: zGetLookupDemoQuery,
2524
+ zGetLookupDemoResponse: zGetLookupDemoResponse,
2129
2525
  zGetParticipantsQuery: zGetParticipantsQuery,
2526
+ zGetParticipantsResponse: zGetParticipantsResponse,
2130
2527
  zGetSupportedRegionsResponse: zGetSupportedRegionsResponse,
2131
2528
  zGetSyncTokenQuery: zGetSyncTokenQuery,
2529
+ zGetSyncTokenResponse: zGetSyncTokenResponse,
2132
2530
  zGetVoiceTokenQuery: zGetVoiceTokenQuery,
2531
+ zGetVoiceTokenResponse: zGetVoiceTokenResponse,
2532
+ zIntelligenceConfiguration: zIntelligenceConfiguration,
2533
+ zOperator: zOperator,
2534
+ zParticipant: zParticipant,
2133
2535
  zPatchConversationMemoryConversationSummariesBody: zPatchConversationMemoryConversationSummariesBody,
2536
+ zPatchConversationMemoryConversationSummariesResponse: zPatchConversationMemoryConversationSummariesResponse,
2134
2537
  zPatchConversationMemoryIdentifiersBody: zPatchConversationMemoryIdentifiersBody,
2538
+ zPatchConversationMemoryIdentifiersResponse: zPatchConversationMemoryIdentifiersResponse,
2135
2539
  zPatchConversationMemoryObservationsBody: zPatchConversationMemoryObservationsBody,
2540
+ zPatchConversationMemoryObservationsResponse: zPatchConversationMemoryObservationsResponse,
2136
2541
  zPatchConversationMemoryProfilesBody: zPatchConversationMemoryProfilesBody,
2542
+ zPatchConversationMemoryProfilesResponse: zPatchConversationMemoryProfilesResponse,
2137
2543
  zPatchConversationMemoryTraitGroupsBody: zPatchConversationMemoryTraitGroupsBody,
2544
+ zPatchConversationMemoryTraitGroupsResponse: zPatchConversationMemoryTraitGroupsResponse,
2138
2545
  zPatchLeadGenBody: zPatchLeadGenBody,
2546
+ zPatchLeadGenResponse: zPatchLeadGenResponse,
2139
2547
  zPatchLinkShortenerBody: zPatchLinkShortenerBody,
2548
+ zPatchLinkShortenerResponse: zPatchLinkShortenerResponse,
2140
2549
  zPostAssignDemoBody: zPostAssignDemoBody,
2550
+ zPostAssignDemoResponse: zPostAssignDemoResponse,
2141
2551
  zPostConversationMemoryConversationSummariesBody: zPostConversationMemoryConversationSummariesBody,
2552
+ zPostConversationMemoryConversationSummariesResponse: zPostConversationMemoryConversationSummariesResponse,
2142
2553
  zPostConversationMemoryIdentifiersBody: zPostConversationMemoryIdentifiersBody,
2554
+ zPostConversationMemoryIdentifiersResponse: zPostConversationMemoryIdentifiersResponse,
2143
2555
  zPostConversationMemoryObservationsBody: zPostConversationMemoryObservationsBody,
2556
+ zPostConversationMemoryObservationsResponse: zPostConversationMemoryObservationsResponse,
2144
2557
  zPostConversationMemoryProfilesBody: zPostConversationMemoryProfilesBody,
2145
2558
  zPostConversationMemoryProfilesLookupBody: zPostConversationMemoryProfilesLookupBody,
2559
+ zPostConversationMemoryProfilesLookupResponse: zPostConversationMemoryProfilesLookupResponse,
2560
+ zPostConversationMemoryProfilesResponse: zPostConversationMemoryProfilesResponse,
2146
2561
  zPostConversationMemoryRecallBody: zPostConversationMemoryRecallBody,
2562
+ zPostConversationMemoryRecallResponse: zPostConversationMemoryRecallResponse,
2147
2563
  zPostConversationMemoryTraitGroupsBody: zPostConversationMemoryTraitGroupsBody,
2564
+ zPostConversationMemoryTraitGroupsResponse: zPostConversationMemoryTraitGroupsResponse,
2148
2565
  zPostConversationalIntelligenceOperatorBody: zPostConversationalIntelligenceOperatorBody,
2566
+ zPostConversationalIntelligenceOperatorResponse: zPostConversationalIntelligenceOperatorResponse,
2149
2567
  zPostConversationsBody: zPostConversationsBody,
2150
2568
  zPostConversationsCommunicationsByConversationIdBody: zPostConversationsCommunicationsByConversationIdBody,
2151
2569
  zPostConversationsCommunicationsByConversationIdPath: zPostConversationsCommunicationsByConversationIdPath,
2570
+ zPostConversationsCommunicationsByConversationIdResponse: zPostConversationsCommunicationsByConversationIdResponse,
2571
+ zPostConversationsResponse: zPostConversationsResponse,
2152
2572
  zPostConversationsTokenBody: zPostConversationsTokenBody,
2573
+ zPostConversationsTokenResponse: zPostConversationsTokenResponse,
2153
2574
  zPostCreateExternalFlexConnectionBody: zPostCreateExternalFlexConnectionBody,
2575
+ zPostCreateExternalFlexConnectionResponse: zPostCreateExternalFlexConnectionResponse,
2154
2576
  zPostInstallFlexPluginBody: zPostInstallFlexPluginBody,
2577
+ zPostInstallFlexPluginResponse: zPostInstallFlexPluginResponse,
2155
2578
  zPostIntelligenceConfigurationBody: zPostIntelligenceConfigurationBody,
2579
+ zPostIntelligenceConfigurationResponse: zPostIntelligenceConfigurationResponse,
2156
2580
  zPostLeadGenBody: zPostLeadGenBody,
2581
+ zPostLeadGenMonitorResponse: zPostLeadGenMonitorResponse,
2582
+ zPostLeadGenResponse: zPostLeadGenResponse,
2157
2583
  zPostLinkShortenerBody: zPostLinkShortenerBody,
2584
+ zPostLinkShortenerResponse: zPostLinkShortenerResponse,
2158
2585
  zPostLiveAgentWebchatConnectBody: zPostLiveAgentWebchatConnectBody,
2586
+ zPostLiveAgentWebchatConnectResponse: zPostLiveAgentWebchatConnectResponse,
2159
2587
  zPostLiveAgentWebchatEndBody: zPostLiveAgentWebchatEndBody,
2588
+ zPostLiveAgentWebchatEndResponse: zPostLiveAgentWebchatEndResponse,
2160
2589
  zPostLiveAgentWebchatSendBody: zPostLiveAgentWebchatSendBody,
2590
+ zPostLiveAgentWebchatSendResponse: zPostLiveAgentWebchatSendResponse,
2161
2591
  zPostParticipantsBody: zPostParticipantsBody,
2592
+ zPostParticipantsResponse: zPostParticipantsResponse,
2162
2593
  zPostTemplateAutogenBody: zPostTemplateAutogenBody,
2594
+ zPostTemplateAutogenResponse: zPostTemplateAutogenResponse,
2163
2595
  zPostTemplateBody: zPostTemplateBody,
2596
+ zPostTemplateResponse: zPostTemplateResponse,
2164
2597
  zPostUiConfigBody: zPostUiConfigBody,
2598
+ zPostUiConfigResponse: zPostUiConfigResponse,
2165
2599
  zPutConversationalIntelligenceOperatorBody: zPutConversationalIntelligenceOperatorBody,
2600
+ zPutConversationalIntelligenceOperatorResponse: zPutConversationalIntelligenceOperatorResponse,
2166
2601
  zPutConversationsBody: zPutConversationsBody,
2602
+ zPutConversationsResponse: zPutConversationsResponse,
2167
2603
  zPutIntelligenceConfigurationBody: zPutIntelligenceConfigurationBody,
2604
+ zPutIntelligenceConfigurationResponse: zPutIntelligenceConfigurationResponse,
2168
2605
  zPutParticipantsBody: zPutParticipantsBody,
2606
+ zPutParticipantsResponse: zPutParticipantsResponse,
2169
2607
  zShortenUrlInput: zShortenUrlInput,
2170
- zSupportedRegion: zSupportedRegion
2608
+ zSupportedRegion: zSupportedRegion,
2609
+ zTemplateData: zTemplateData
2171
2610
  };
2172
2611
 
2173
2612
  export { createRampApiClient, deleteConversationMemoryConversationSummaries, deleteConversationMemoryIdentifiers, deleteConversationMemoryObservations, deleteConversationMemoryProfiles, deleteConversationMemoryReset, deleteConversationMemoryTraitGroups, deleteConversationalIntelligenceOperator, deleteLeadGen, deleteLinkShortenerByCode, deleteTemplate, getCampaign, getConversationMemoryConversationSummaries, getConversationMemoryIdentifiers, getConversationMemoryObservations, getConversationMemoryProfiles, getConversationMemoryTraitGroups, getConversationMemoryTraits, getConversationalIntelligenceOperator, getConversationsFetch, getDocsOpenapiJson, getHealth, getIntelligenceConfiguration, getLinkShortener, getLookupDemo, getParticipants, getSupportedRegions, getSyncToken, getVoiceToken, patchConversationMemoryConversationSummaries, patchConversationMemoryIdentifiers, patchConversationMemoryObservations, patchConversationMemoryProfiles, patchConversationMemoryTraitGroups, patchLeadGen, patchLinkShortener, postAssignDemo, postConversationMemoryConversationSummaries, postConversationMemoryIdentifiers, postConversationMemoryObservations, postConversationMemoryProfiles, postConversationMemoryProfilesLookup, postConversationMemoryRecall, postConversationMemoryTraitGroups, postConversationalIntelligenceOperator, postConversations, postConversationsCommunicationsByConversationId, postConversationsToken, postCreateExternalFlexConnection, postInstallFlexPlugin, postIntelligenceConfiguration, postLeadGen, postLeadGenMonitor, postLinkShortener, postLiveAgentWebchatConnect, postLiveAgentWebchatEnd, postLiveAgentWebchatSend, postParticipants, postTemplate, postTemplateAutogen, postUiConfig, putConversationalIntelligenceOperator, putConversations, putIntelligenceConfiguration, putParticipants, zod_gen as schemas };