@gpt-platform/client 0.2.1 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1970 -262
- package/dist/index.d.ts +1970 -262
- package/dist/index.js +2511 -193
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2511 -193
- package/dist/index.mjs.map +1 -1
- package/llms.txt +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1285,7 +1285,7 @@ function buildUserAgent(sdkVersion, appInfo) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
|
|
1287
1287
|
// src/version.ts
|
|
1288
|
-
var SDK_VERSION = "0.
|
|
1288
|
+
var SDK_VERSION = "0.3.1";
|
|
1289
1289
|
var DEFAULT_API_VERSION = "2026-02-25";
|
|
1290
1290
|
|
|
1291
1291
|
// src/base-client.ts
|
|
@@ -1607,6 +1607,15 @@ var getVoiceSessionsWorkspaceByWorkspaceId = (options) => (options.client ?? cli
|
|
|
1607
1607
|
url: "/voice/sessions/workspace/{workspace_id}",
|
|
1608
1608
|
...options
|
|
1609
1609
|
});
|
|
1610
|
+
var postEmailMarketingSequences = (options) => (options.client ?? client).post({
|
|
1611
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1612
|
+
url: "/email-marketing/sequences",
|
|
1613
|
+
...options,
|
|
1614
|
+
headers: {
|
|
1615
|
+
"Content-Type": "application/vnd.api+json",
|
|
1616
|
+
...options.headers
|
|
1617
|
+
}
|
|
1618
|
+
});
|
|
1610
1619
|
var patchExtractionDocumentsByIdCancel = (options) => (options.client ?? client).patch({
|
|
1611
1620
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1612
1621
|
url: "/extraction/documents/{id}/cancel",
|
|
@@ -1616,6 +1625,24 @@ var patchExtractionDocumentsByIdCancel = (options) => (options.client ?? client)
|
|
|
1616
1625
|
...options.headers
|
|
1617
1626
|
}
|
|
1618
1627
|
});
|
|
1628
|
+
var postCatalogProductVariants = (options) => (options.client ?? client).post({
|
|
1629
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1630
|
+
url: "/catalog/product-variants",
|
|
1631
|
+
...options,
|
|
1632
|
+
headers: {
|
|
1633
|
+
"Content-Type": "application/vnd.api+json",
|
|
1634
|
+
...options.headers
|
|
1635
|
+
}
|
|
1636
|
+
});
|
|
1637
|
+
var postCrmRelationships = (options) => (options.client ?? client).post({
|
|
1638
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1639
|
+
url: "/crm/relationships",
|
|
1640
|
+
...options,
|
|
1641
|
+
headers: {
|
|
1642
|
+
"Content-Type": "application/vnd.api+json",
|
|
1643
|
+
...options.headers
|
|
1644
|
+
}
|
|
1645
|
+
});
|
|
1619
1646
|
var deleteAgentVersionsById = (options) => (options.client ?? client).delete({
|
|
1620
1647
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1621
1648
|
url: "/agent-versions/{id}",
|
|
@@ -1626,6 +1653,25 @@ var getAgentVersionsById = (options) => (options.client ?? client).get({
|
|
|
1626
1653
|
url: "/agent-versions/{id}",
|
|
1627
1654
|
...options
|
|
1628
1655
|
});
|
|
1656
|
+
var postCatalogTaxonomyNodes = (options) => (options.client ?? client).post({
|
|
1657
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1658
|
+
url: "/catalog/taxonomy-nodes",
|
|
1659
|
+
...options,
|
|
1660
|
+
headers: {
|
|
1661
|
+
"Content-Type": "application/vnd.api+json",
|
|
1662
|
+
...options.headers
|
|
1663
|
+
}
|
|
1664
|
+
});
|
|
1665
|
+
var deleteCrmRelationshipsById = (options) => (options.client ?? client).delete({
|
|
1666
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1667
|
+
url: "/crm/relationships/{id}",
|
|
1668
|
+
...options
|
|
1669
|
+
});
|
|
1670
|
+
var getCrmRelationshipsById = (options) => (options.client ?? client).get({
|
|
1671
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1672
|
+
url: "/crm/relationships/{id}",
|
|
1673
|
+
...options
|
|
1674
|
+
});
|
|
1629
1675
|
var getWatcherEventsById = (options) => (options.client ?? client).get({
|
|
1630
1676
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1631
1677
|
url: "/watcher/events/{id}",
|
|
@@ -1640,6 +1686,21 @@ var patchApiKeysByIdRevoke = (options) => (options.client ?? client).patch({
|
|
|
1640
1686
|
...options.headers
|
|
1641
1687
|
}
|
|
1642
1688
|
});
|
|
1689
|
+
var getCrmCustomEntitiesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1690
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1691
|
+
url: "/crm/custom-entities/workspace/{workspace_id}",
|
|
1692
|
+
...options
|
|
1693
|
+
});
|
|
1694
|
+
var getEmailMarketingSequencesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1695
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1696
|
+
url: "/email-marketing/sequences/workspace/{workspace_id}",
|
|
1697
|
+
...options
|
|
1698
|
+
});
|
|
1699
|
+
var getCatalogTaxonomyNodesTaxonomyByTaxonomyId = (options) => (options.client ?? client).get({
|
|
1700
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1701
|
+
url: "/catalog/taxonomy-nodes/taxonomy/{taxonomy_id}",
|
|
1702
|
+
...options
|
|
1703
|
+
});
|
|
1643
1704
|
var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
1644
1705
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1645
1706
|
url: "/api-keys/{id}/rotate",
|
|
@@ -1649,6 +1710,15 @@ var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
|
1649
1710
|
...options.headers
|
|
1650
1711
|
}
|
|
1651
1712
|
});
|
|
1713
|
+
var patchWorkspaceMembershipsByWorkspaceIdByUserIdProfile = (options) => (options.client ?? client).patch({
|
|
1714
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1715
|
+
url: "/workspace-memberships/{workspace_id}/{user_id}/profile",
|
|
1716
|
+
...options,
|
|
1717
|
+
headers: {
|
|
1718
|
+
"Content-Type": "application/vnd.api+json",
|
|
1719
|
+
...options.headers
|
|
1720
|
+
}
|
|
1721
|
+
});
|
|
1652
1722
|
var getWorkspaces = (options) => (options.client ?? client).get({
|
|
1653
1723
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1654
1724
|
url: "/workspaces",
|
|
@@ -1696,6 +1766,35 @@ var patchExtractionDocumentsByIdDismiss = (options) => (options.client ?? client
|
|
|
1696
1766
|
...options.headers
|
|
1697
1767
|
}
|
|
1698
1768
|
});
|
|
1769
|
+
var getCrawlerResults = (options) => (options.client ?? client).get({
|
|
1770
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1771
|
+
url: "/crawler/results",
|
|
1772
|
+
...options
|
|
1773
|
+
});
|
|
1774
|
+
var getCrmExportsById = (options) => (options.client ?? client).get({
|
|
1775
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1776
|
+
url: "/crm/exports/{id}",
|
|
1777
|
+
...options
|
|
1778
|
+
});
|
|
1779
|
+
var deleteCrmDealsById = (options) => (options.client ?? client).delete({
|
|
1780
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1781
|
+
url: "/crm/deals/{id}",
|
|
1782
|
+
...options
|
|
1783
|
+
});
|
|
1784
|
+
var getCrmDealsById = (options) => (options.client ?? client).get({
|
|
1785
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1786
|
+
url: "/crm/deals/{id}",
|
|
1787
|
+
...options
|
|
1788
|
+
});
|
|
1789
|
+
var patchCrmDealsById = (options) => (options.client ?? client).patch({
|
|
1790
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1791
|
+
url: "/crm/deals/{id}",
|
|
1792
|
+
...options,
|
|
1793
|
+
headers: {
|
|
1794
|
+
"Content-Type": "application/vnd.api+json",
|
|
1795
|
+
...options.headers
|
|
1796
|
+
}
|
|
1797
|
+
});
|
|
1699
1798
|
var postUsersAuthResetPasswordRequest = (options) => (options.client ?? client).post({
|
|
1700
1799
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1701
1800
|
url: "/users/auth/reset-password/request",
|
|
@@ -1705,6 +1804,11 @@ var postUsersAuthResetPasswordRequest = (options) => (options.client ?? client).
|
|
|
1705
1804
|
...options.headers
|
|
1706
1805
|
}
|
|
1707
1806
|
});
|
|
1807
|
+
var getSupportTagsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1808
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1809
|
+
url: "/support/tags/workspace/{workspace_id}",
|
|
1810
|
+
...options
|
|
1811
|
+
});
|
|
1708
1812
|
var getSearchIndexes = (options) => (options.client ?? client).get({
|
|
1709
1813
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1710
1814
|
url: "/search/indexes",
|
|
@@ -1725,6 +1829,25 @@ var postAgentsByIdAnalyzeTraining = (options) => (options.client ?? client).post
|
|
|
1725
1829
|
url: "/agents/{id}/analyze-training",
|
|
1726
1830
|
...options
|
|
1727
1831
|
});
|
|
1832
|
+
var getCrmContactsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1833
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1834
|
+
url: "/crm/contacts/workspace/{workspace_id}",
|
|
1835
|
+
...options
|
|
1836
|
+
});
|
|
1837
|
+
var getEmailMarketingTemplatesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1838
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1839
|
+
url: "/email-marketing/templates/workspace/{workspace_id}",
|
|
1840
|
+
...options
|
|
1841
|
+
});
|
|
1842
|
+
var postEmailMarketingCampaignsByIdAnalyze = (options) => (options.client ?? client).post({
|
|
1843
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1844
|
+
url: "/email-marketing/campaigns/{id}/analyze",
|
|
1845
|
+
...options,
|
|
1846
|
+
headers: {
|
|
1847
|
+
"Content-Type": "application/vnd.api+json",
|
|
1848
|
+
...options.headers
|
|
1849
|
+
}
|
|
1850
|
+
});
|
|
1728
1851
|
var postWebhookConfigsByIdTest = (options) => (options.client ?? client).post({
|
|
1729
1852
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1730
1853
|
url: "/webhook-configs/{id}/test",
|
|
@@ -1757,11 +1880,89 @@ var getExtractionBatchesWorkspaceByWorkspaceId = (options) => (options.client ??
|
|
|
1757
1880
|
url: "/extraction/batches/workspace/{workspace_id}",
|
|
1758
1881
|
...options
|
|
1759
1882
|
});
|
|
1883
|
+
var postConnectorsFullscriptCreatePatient = (options) => (options.client ?? client).post({
|
|
1884
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1885
|
+
url: "/connectors/fullscript/create-patient",
|
|
1886
|
+
...options,
|
|
1887
|
+
headers: {
|
|
1888
|
+
"Content-Type": "application/vnd.api+json",
|
|
1889
|
+
...options.headers
|
|
1890
|
+
}
|
|
1891
|
+
});
|
|
1892
|
+
var postEmailMarketingCampaignsByIdOptimizeSendTimes = (options) => (options.client ?? client).post({
|
|
1893
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1894
|
+
url: "/email-marketing/campaigns/{id}/optimize-send-times",
|
|
1895
|
+
...options,
|
|
1896
|
+
headers: {
|
|
1897
|
+
"Content-Type": "application/vnd.api+json",
|
|
1898
|
+
...options.headers
|
|
1899
|
+
}
|
|
1900
|
+
});
|
|
1760
1901
|
var getExtractionDocumentsByIdStatus = (options) => (options.client ?? client).get({
|
|
1761
1902
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1762
1903
|
url: "/extraction/documents/{id}/status",
|
|
1763
1904
|
...options
|
|
1764
1905
|
});
|
|
1906
|
+
var postConnectorsFullscriptSessionGrant = (options) => (options.client ?? client).post({
|
|
1907
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1908
|
+
url: "/connectors/fullscript/session-grant",
|
|
1909
|
+
...options,
|
|
1910
|
+
headers: {
|
|
1911
|
+
"Content-Type": "application/vnd.api+json",
|
|
1912
|
+
...options.headers
|
|
1913
|
+
}
|
|
1914
|
+
});
|
|
1915
|
+
var deleteCatalogTaxonomyNodesById = (options) => (options.client ?? client).delete({
|
|
1916
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1917
|
+
url: "/catalog/taxonomy-nodes/{id}",
|
|
1918
|
+
...options
|
|
1919
|
+
});
|
|
1920
|
+
var getCatalogTaxonomyNodesById = (options) => (options.client ?? client).get({
|
|
1921
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1922
|
+
url: "/catalog/taxonomy-nodes/{id}",
|
|
1923
|
+
...options
|
|
1924
|
+
});
|
|
1925
|
+
var patchCatalogTaxonomyNodesById = (options) => (options.client ?? client).patch({
|
|
1926
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1927
|
+
url: "/catalog/taxonomy-nodes/{id}",
|
|
1928
|
+
...options,
|
|
1929
|
+
headers: {
|
|
1930
|
+
"Content-Type": "application/vnd.api+json",
|
|
1931
|
+
...options.headers
|
|
1932
|
+
}
|
|
1933
|
+
});
|
|
1934
|
+
var getCatalogTaxonomiesApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
1935
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1936
|
+
url: "/catalog/taxonomies/application/{application_id}",
|
|
1937
|
+
...options
|
|
1938
|
+
});
|
|
1939
|
+
var postEmailMarketingCampaignsByIdSend = (options) => (options.client ?? client).post({
|
|
1940
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1941
|
+
url: "/email-marketing/campaigns/{id}/send",
|
|
1942
|
+
...options,
|
|
1943
|
+
headers: {
|
|
1944
|
+
"Content-Type": "application/vnd.api+json",
|
|
1945
|
+
...options.headers
|
|
1946
|
+
}
|
|
1947
|
+
});
|
|
1948
|
+
var postEmailMarketingCampaignsByIdCreateFollowup = (options) => (options.client ?? client).post({
|
|
1949
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1950
|
+
url: "/email-marketing/campaigns/{id}/create-followup",
|
|
1951
|
+
...options,
|
|
1952
|
+
headers: {
|
|
1953
|
+
"Content-Type": "application/vnd.api+json",
|
|
1954
|
+
...options.headers
|
|
1955
|
+
}
|
|
1956
|
+
});
|
|
1957
|
+
var postCrmContacts = (options) => (options.client ?? client).post({
|
|
1958
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1959
|
+
url: "/crm/contacts",
|
|
1960
|
+
...options,
|
|
1961
|
+
headers: {
|
|
1962
|
+
"Content-Type": "application/vnd.api+json",
|
|
1963
|
+
...options.headers
|
|
1964
|
+
}
|
|
1965
|
+
});
|
|
1765
1966
|
var deleteWebhookConfigsById = (options) => (options.client ?? client).delete({
|
|
1766
1967
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1767
1968
|
url: "/webhook-configs/{id}",
|
|
@@ -1781,6 +1982,15 @@ var patchWebhookConfigsById = (options) => (options.client ?? client).patch({
|
|
|
1781
1982
|
...options.headers
|
|
1782
1983
|
}
|
|
1783
1984
|
});
|
|
1985
|
+
var postConnectorsCredentialsByIdRefresh = (options) => (options.client ?? client).post({
|
|
1986
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1987
|
+
url: "/connectors/credentials/{id}/refresh",
|
|
1988
|
+
...options,
|
|
1989
|
+
headers: {
|
|
1990
|
+
"Content-Type": "application/vnd.api+json",
|
|
1991
|
+
...options.headers
|
|
1992
|
+
}
|
|
1993
|
+
});
|
|
1784
1994
|
var postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained = (options) => (options.client ?? client).post({
|
|
1785
1995
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1786
1996
|
url: "/workspaces/{workspace_id}/extraction/documents/dismiss-all-trained",
|
|
@@ -1799,6 +2009,34 @@ var postExtractionDocumentsFindOrBeginUpload = (options) => (options.client ?? c
|
|
|
1799
2009
|
...options.headers
|
|
1800
2010
|
}
|
|
1801
2011
|
});
|
|
2012
|
+
var postEmailMarketingCampaigns = (options) => (options.client ?? client).post({
|
|
2013
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2014
|
+
url: "/email-marketing/campaigns",
|
|
2015
|
+
...options,
|
|
2016
|
+
headers: {
|
|
2017
|
+
"Content-Type": "application/vnd.api+json",
|
|
2018
|
+
...options.headers
|
|
2019
|
+
}
|
|
2020
|
+
});
|
|
2021
|
+
var deleteCrmCustomEntitiesById = (options) => (options.client ?? client).delete({
|
|
2022
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2023
|
+
url: "/crm/custom-entities/{id}",
|
|
2024
|
+
...options
|
|
2025
|
+
});
|
|
2026
|
+
var getCrmCustomEntitiesById = (options) => (options.client ?? client).get({
|
|
2027
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2028
|
+
url: "/crm/custom-entities/{id}",
|
|
2029
|
+
...options
|
|
2030
|
+
});
|
|
2031
|
+
var patchCrmCustomEntitiesById = (options) => (options.client ?? client).patch({
|
|
2032
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2033
|
+
url: "/crm/custom-entities/{id}",
|
|
2034
|
+
...options,
|
|
2035
|
+
headers: {
|
|
2036
|
+
"Content-Type": "application/vnd.api+json",
|
|
2037
|
+
...options.headers
|
|
2038
|
+
}
|
|
2039
|
+
});
|
|
1802
2040
|
var postAgentsByIdRestoreVersion = (options) => (options.client ?? client).post({
|
|
1803
2041
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1804
2042
|
url: "/agents/{id}/restore-version",
|
|
@@ -1826,6 +2064,29 @@ var postAgentsByIdPublishVersion = (options) => (options.client ?? client).post(
|
|
|
1826
2064
|
...options.headers
|
|
1827
2065
|
}
|
|
1828
2066
|
});
|
|
2067
|
+
var patchEmailMarketingSenderProfilesByIdValidateDns = (options) => (options.client ?? client).patch({
|
|
2068
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2069
|
+
url: "/email-marketing/sender-profiles/{id}/validate-dns",
|
|
2070
|
+
...options,
|
|
2071
|
+
headers: {
|
|
2072
|
+
"Content-Type": "application/vnd.api+json",
|
|
2073
|
+
...options.headers
|
|
2074
|
+
}
|
|
2075
|
+
});
|
|
2076
|
+
var getConnectorsCredentialsById = (options) => (options.client ?? client).get({
|
|
2077
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2078
|
+
url: "/connectors/credentials/{id}",
|
|
2079
|
+
...options
|
|
2080
|
+
});
|
|
2081
|
+
var postCrmCompanies = (options) => (options.client ?? client).post({
|
|
2082
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2083
|
+
url: "/crm/companies",
|
|
2084
|
+
...options,
|
|
2085
|
+
headers: {
|
|
2086
|
+
"Content-Type": "application/vnd.api+json",
|
|
2087
|
+
...options.headers
|
|
2088
|
+
}
|
|
2089
|
+
});
|
|
1829
2090
|
var getVoiceSessionsMine = (options) => (options.client ?? client).get({
|
|
1830
2091
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1831
2092
|
url: "/voice/sessions/mine",
|
|
@@ -1868,11 +2129,53 @@ var patchUsersAuthResetPassword = (options) => (options.client ?? client).patch(
|
|
|
1868
2129
|
...options.headers
|
|
1869
2130
|
}
|
|
1870
2131
|
});
|
|
2132
|
+
var deleteEmailMarketingSenderProfilesById = (options) => (options.client ?? client).delete({
|
|
2133
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2134
|
+
url: "/email-marketing/sender-profiles/{id}",
|
|
2135
|
+
...options
|
|
2136
|
+
});
|
|
2137
|
+
var getEmailMarketingSenderProfilesById = (options) => (options.client ?? client).get({
|
|
2138
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2139
|
+
url: "/email-marketing/sender-profiles/{id}",
|
|
2140
|
+
...options
|
|
2141
|
+
});
|
|
2142
|
+
var patchEmailMarketingSenderProfilesById = (options) => (options.client ?? client).patch({
|
|
2143
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2144
|
+
url: "/email-marketing/sender-profiles/{id}",
|
|
2145
|
+
...options,
|
|
2146
|
+
headers: {
|
|
2147
|
+
"Content-Type": "application/vnd.api+json",
|
|
2148
|
+
...options.headers
|
|
2149
|
+
}
|
|
2150
|
+
});
|
|
2151
|
+
var getCrmRelationshipTypes = (options) => (options.client ?? client).get({
|
|
2152
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2153
|
+
url: "/crm/relationship-types",
|
|
2154
|
+
...options
|
|
2155
|
+
});
|
|
2156
|
+
var postCrmRelationshipTypes = (options) => (options.client ?? client).post({
|
|
2157
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2158
|
+
url: "/crm/relationship-types",
|
|
2159
|
+
...options,
|
|
2160
|
+
headers: {
|
|
2161
|
+
"Content-Type": "application/vnd.api+json",
|
|
2162
|
+
...options.headers
|
|
2163
|
+
}
|
|
2164
|
+
});
|
|
1871
2165
|
var getSchedulingCalendarSyncsById = (options) => (options.client ?? client).get({
|
|
1872
2166
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1873
2167
|
url: "/scheduling/calendar-syncs/{id}",
|
|
1874
2168
|
...options
|
|
1875
2169
|
});
|
|
2170
|
+
var postCrmCustomEntities = (options) => (options.client ?? client).post({
|
|
2171
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2172
|
+
url: "/crm/custom-entities",
|
|
2173
|
+
...options,
|
|
2174
|
+
headers: {
|
|
2175
|
+
"Content-Type": "application/vnd.api+json",
|
|
2176
|
+
...options.headers
|
|
2177
|
+
}
|
|
2178
|
+
});
|
|
1876
2179
|
var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client).post({
|
|
1877
2180
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1878
2181
|
url: "/extraction/documents/begin-upload",
|
|
@@ -1896,6 +2199,11 @@ var postSearchSaved = (options) => (options.client ?? client).post({
|
|
|
1896
2199
|
...options.headers
|
|
1897
2200
|
}
|
|
1898
2201
|
});
|
|
2202
|
+
var getEmailMarketingCampaignsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2203
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2204
|
+
url: "/email-marketing/campaigns/workspace/{workspace_id}",
|
|
2205
|
+
...options
|
|
2206
|
+
});
|
|
1899
2207
|
var deleteNotificationMethodsById = (options) => (options.client ?? client).delete({
|
|
1900
2208
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1901
2209
|
url: "/notification-methods/{id}",
|
|
@@ -1934,79 +2242,196 @@ var patchTrainingExamplesById = (options) => (options.client ?? client).patch({
|
|
|
1934
2242
|
...options.headers
|
|
1935
2243
|
}
|
|
1936
2244
|
});
|
|
1937
|
-
var
|
|
2245
|
+
var getEmailMarketingGeneratedEmailsById = (options) => (options.client ?? client).get({
|
|
1938
2246
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1939
|
-
url: "/
|
|
2247
|
+
url: "/email-marketing/generated-emails/{id}",
|
|
1940
2248
|
...options
|
|
1941
2249
|
});
|
|
1942
|
-
var
|
|
2250
|
+
var patchEmailMarketingGeneratedEmailsById = (options) => (options.client ?? client).patch({
|
|
1943
2251
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1944
|
-
url: "/
|
|
2252
|
+
url: "/email-marketing/generated-emails/{id}",
|
|
1945
2253
|
...options,
|
|
1946
2254
|
headers: {
|
|
1947
2255
|
"Content-Type": "application/vnd.api+json",
|
|
1948
2256
|
...options.headers
|
|
1949
2257
|
}
|
|
1950
2258
|
});
|
|
1951
|
-
var
|
|
2259
|
+
var deleteEmailMarketingCampaignsById = (options) => (options.client ?? client).delete({
|
|
1952
2260
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1953
|
-
url: "/
|
|
2261
|
+
url: "/email-marketing/campaigns/{id}",
|
|
1954
2262
|
...options
|
|
1955
2263
|
});
|
|
1956
|
-
var
|
|
2264
|
+
var getEmailMarketingCampaignsById = (options) => (options.client ?? client).get({
|
|
1957
2265
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1958
|
-
url: "/
|
|
2266
|
+
url: "/email-marketing/campaigns/{id}",
|
|
2267
|
+
...options
|
|
2268
|
+
});
|
|
2269
|
+
var patchEmailMarketingCampaignsById = (options) => (options.client ?? client).patch({
|
|
2270
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2271
|
+
url: "/email-marketing/campaigns/{id}",
|
|
1959
2272
|
...options,
|
|
1960
2273
|
headers: {
|
|
1961
2274
|
"Content-Type": "application/vnd.api+json",
|
|
1962
2275
|
...options.headers
|
|
1963
2276
|
}
|
|
1964
2277
|
});
|
|
1965
|
-
var
|
|
2278
|
+
var getSearchSuggest = (options) => (options.client ?? client).get({
|
|
1966
2279
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1967
|
-
url: "/
|
|
2280
|
+
url: "/search/suggest",
|
|
1968
2281
|
...options
|
|
1969
2282
|
});
|
|
1970
|
-
var
|
|
2283
|
+
var deleteCatalogTaxonomiesById = (options) => (options.client ?? client).delete({
|
|
1971
2284
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1972
|
-
url: "/
|
|
2285
|
+
url: "/catalog/taxonomies/{id}",
|
|
1973
2286
|
...options
|
|
1974
2287
|
});
|
|
1975
|
-
var
|
|
2288
|
+
var getCatalogTaxonomiesById = (options) => (options.client ?? client).get({
|
|
1976
2289
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1977
|
-
url: "/
|
|
2290
|
+
url: "/catalog/taxonomies/{id}",
|
|
1978
2291
|
...options
|
|
1979
2292
|
});
|
|
1980
|
-
var
|
|
2293
|
+
var patchCatalogTaxonomiesById = (options) => (options.client ?? client).patch({
|
|
1981
2294
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1982
|
-
url: "/
|
|
2295
|
+
url: "/catalog/taxonomies/{id}",
|
|
1983
2296
|
...options,
|
|
1984
2297
|
headers: {
|
|
1985
2298
|
"Content-Type": "application/vnd.api+json",
|
|
1986
2299
|
...options.headers
|
|
1987
2300
|
}
|
|
1988
2301
|
});
|
|
1989
|
-
var
|
|
2302
|
+
var deleteCrmRelationshipTypesById = (options) => (options.client ?? client).delete({
|
|
1990
2303
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1991
|
-
url: "/
|
|
2304
|
+
url: "/crm/relationship-types/{id}",
|
|
1992
2305
|
...options
|
|
1993
2306
|
});
|
|
1994
|
-
var
|
|
2307
|
+
var getCrmRelationshipTypesById = (options) => (options.client ?? client).get({
|
|
1995
2308
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1996
|
-
url: "/
|
|
2309
|
+
url: "/crm/relationship-types/{id}",
|
|
1997
2310
|
...options
|
|
1998
2311
|
});
|
|
1999
|
-
var
|
|
2312
|
+
var patchCrmRelationshipTypesById = (options) => (options.client ?? client).patch({
|
|
2000
2313
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2001
|
-
url: "/
|
|
2002
|
-
...options
|
|
2314
|
+
url: "/crm/relationship-types/{id}",
|
|
2315
|
+
...options,
|
|
2316
|
+
headers: {
|
|
2317
|
+
"Content-Type": "application/vnd.api+json",
|
|
2318
|
+
...options.headers
|
|
2319
|
+
}
|
|
2003
2320
|
});
|
|
2004
|
-
var
|
|
2321
|
+
var deleteCrmContactsById = (options) => (options.client ?? client).delete({
|
|
2005
2322
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2006
|
-
url: "/
|
|
2323
|
+
url: "/crm/contacts/{id}",
|
|
2007
2324
|
...options
|
|
2008
2325
|
});
|
|
2009
|
-
var
|
|
2326
|
+
var getCrmContactsById = (options) => (options.client ?? client).get({
|
|
2327
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2328
|
+
url: "/crm/contacts/{id}",
|
|
2329
|
+
...options
|
|
2330
|
+
});
|
|
2331
|
+
var patchCrmContactsById = (options) => (options.client ?? client).patch({
|
|
2332
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2333
|
+
url: "/crm/contacts/{id}",
|
|
2334
|
+
...options,
|
|
2335
|
+
headers: {
|
|
2336
|
+
"Content-Type": "application/vnd.api+json",
|
|
2337
|
+
...options.headers
|
|
2338
|
+
}
|
|
2339
|
+
});
|
|
2340
|
+
var patchCrawlerJobsByIdCancel = (options) => (options.client ?? client).patch({
|
|
2341
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2342
|
+
url: "/crawler/jobs/{id}/cancel",
|
|
2343
|
+
...options,
|
|
2344
|
+
headers: {
|
|
2345
|
+
"Content-Type": "application/vnd.api+json",
|
|
2346
|
+
...options.headers
|
|
2347
|
+
}
|
|
2348
|
+
});
|
|
2349
|
+
var postAgentVersionsByIdAddSystemField = (options) => (options.client ?? client).post({
|
|
2350
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2351
|
+
url: "/agent-versions/{id}/add-system-field",
|
|
2352
|
+
...options,
|
|
2353
|
+
headers: {
|
|
2354
|
+
"Content-Type": "application/vnd.api+json",
|
|
2355
|
+
...options.headers
|
|
2356
|
+
}
|
|
2357
|
+
});
|
|
2358
|
+
var getThreadsByIdMessages = (options) => (options.client ?? client).get({
|
|
2359
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2360
|
+
url: "/threads/{id}/messages",
|
|
2361
|
+
...options
|
|
2362
|
+
});
|
|
2363
|
+
var postThreadsByIdMessages = (options) => (options.client ?? client).post({
|
|
2364
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2365
|
+
url: "/threads/{id}/messages",
|
|
2366
|
+
...options,
|
|
2367
|
+
headers: {
|
|
2368
|
+
"Content-Type": "application/vnd.api+json",
|
|
2369
|
+
...options.headers
|
|
2370
|
+
}
|
|
2371
|
+
});
|
|
2372
|
+
var patchEmailMarketingGeneratedEmailsByIdApprove = (options) => (options.client ?? client).patch({
|
|
2373
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2374
|
+
url: "/email-marketing/generated-emails/{id}/approve",
|
|
2375
|
+
...options,
|
|
2376
|
+
headers: {
|
|
2377
|
+
"Content-Type": "application/vnd.api+json",
|
|
2378
|
+
...options.headers
|
|
2379
|
+
}
|
|
2380
|
+
});
|
|
2381
|
+
var postSupportTickets = (options) => (options.client ?? client).post({
|
|
2382
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2383
|
+
url: "/support/tickets",
|
|
2384
|
+
...options,
|
|
2385
|
+
headers: {
|
|
2386
|
+
"Content-Type": "application/vnd.api+json",
|
|
2387
|
+
...options.headers
|
|
2388
|
+
}
|
|
2389
|
+
});
|
|
2390
|
+
var getCreditPackagesById = (options) => (options.client ?? client).get({
|
|
2391
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2392
|
+
url: "/credit-packages/{id}",
|
|
2393
|
+
...options
|
|
2394
|
+
});
|
|
2395
|
+
var getWebhookDeliveries = (options) => (options.client ?? client).get({
|
|
2396
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2397
|
+
url: "/webhook-deliveries",
|
|
2398
|
+
...options
|
|
2399
|
+
});
|
|
2400
|
+
var getAgentVersions = (options) => (options.client ?? client).get({
|
|
2401
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2402
|
+
url: "/agent-versions",
|
|
2403
|
+
...options
|
|
2404
|
+
});
|
|
2405
|
+
var postAgentVersions = (options) => (options.client ?? client).post({
|
|
2406
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2407
|
+
url: "/agent-versions",
|
|
2408
|
+
...options,
|
|
2409
|
+
headers: {
|
|
2410
|
+
"Content-Type": "application/vnd.api+json",
|
|
2411
|
+
...options.headers
|
|
2412
|
+
}
|
|
2413
|
+
});
|
|
2414
|
+
var deleteUsersById = (options) => (options.client ?? client).delete({
|
|
2415
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2416
|
+
url: "/users/{id}",
|
|
2417
|
+
...options
|
|
2418
|
+
});
|
|
2419
|
+
var getUsersById = (options) => (options.client ?? client).get({
|
|
2420
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2421
|
+
url: "/users/{id}",
|
|
2422
|
+
...options
|
|
2423
|
+
});
|
|
2424
|
+
var deleteExtractionResultsById = (options) => (options.client ?? client).delete({
|
|
2425
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2426
|
+
url: "/extraction/results/{id}",
|
|
2427
|
+
...options
|
|
2428
|
+
});
|
|
2429
|
+
var getExtractionResultsById = (options) => (options.client ?? client).get({
|
|
2430
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2431
|
+
url: "/extraction/results/{id}",
|
|
2432
|
+
...options
|
|
2433
|
+
});
|
|
2434
|
+
var patchExtractionResultsById = (options) => (options.client ?? client).patch({
|
|
2010
2435
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2011
2436
|
url: "/extraction/results/{id}",
|
|
2012
2437
|
...options,
|
|
@@ -2024,6 +2449,11 @@ var postAgentsByIdValidate = (options) => (options.client ?? client).post({
|
|
|
2024
2449
|
...options.headers
|
|
2025
2450
|
}
|
|
2026
2451
|
});
|
|
2452
|
+
var getConnectorsCredentials = (options) => (options.client ?? client).get({
|
|
2453
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2454
|
+
url: "/connectors/credentials",
|
|
2455
|
+
...options
|
|
2456
|
+
});
|
|
2027
2457
|
var getUsersMe = (options) => (options.client ?? client).get({
|
|
2028
2458
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2029
2459
|
url: "/users/me",
|
|
@@ -2052,6 +2482,15 @@ var patchSchedulingParticipantsById = (options) => (options.client ?? client).pa
|
|
|
2052
2482
|
...options.headers
|
|
2053
2483
|
}
|
|
2054
2484
|
});
|
|
2485
|
+
var patchEmailMarketingSequencesByIdResume = (options) => (options.client ?? client).patch({
|
|
2486
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2487
|
+
url: "/email-marketing/sequences/{id}/resume",
|
|
2488
|
+
...options,
|
|
2489
|
+
headers: {
|
|
2490
|
+
"Content-Type": "application/vnd.api+json",
|
|
2491
|
+
...options.headers
|
|
2492
|
+
}
|
|
2493
|
+
});
|
|
2055
2494
|
var postTenantsByIdCredit = (options) => (options.client ?? client).post({
|
|
2056
2495
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2057
2496
|
url: "/tenants/{id}/credit",
|
|
@@ -2061,6 +2500,15 @@ var postTenantsByIdCredit = (options) => (options.client ?? client).post({
|
|
|
2061
2500
|
...options.headers
|
|
2062
2501
|
}
|
|
2063
2502
|
});
|
|
2503
|
+
var postCatalogProducts = (options) => (options.client ?? client).post({
|
|
2504
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2505
|
+
url: "/catalog/products",
|
|
2506
|
+
...options,
|
|
2507
|
+
headers: {
|
|
2508
|
+
"Content-Type": "application/vnd.api+json",
|
|
2509
|
+
...options.headers
|
|
2510
|
+
}
|
|
2511
|
+
});
|
|
2064
2512
|
var patchSchedulingBookingsSchedulingBookingsByIdCancel = (options) => (options.client ?? client).patch({
|
|
2065
2513
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2066
2514
|
url: "/scheduling/bookings/scheduling/bookings/{id}/cancel",
|
|
@@ -2136,6 +2584,26 @@ var patchExtractionDocumentsByIdFinishUpload = (options) => (options.client ?? c
|
|
|
2136
2584
|
...options.headers
|
|
2137
2585
|
}
|
|
2138
2586
|
});
|
|
2587
|
+
var getSupportTicketMessagesTicketByTicketId = (options) => (options.client ?? client).get({
|
|
2588
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2589
|
+
url: "/support/ticket-messages/ticket/{ticket_id}",
|
|
2590
|
+
...options
|
|
2591
|
+
});
|
|
2592
|
+
var deleteCrawlerJobsById = (options) => (options.client ?? client).delete({
|
|
2593
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2594
|
+
url: "/crawler/jobs/{id}",
|
|
2595
|
+
...options
|
|
2596
|
+
});
|
|
2597
|
+
var getCrawlerJobsById = (options) => (options.client ?? client).get({
|
|
2598
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2599
|
+
url: "/crawler/jobs/{id}",
|
|
2600
|
+
...options
|
|
2601
|
+
});
|
|
2602
|
+
var getCrmExportsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2603
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2604
|
+
url: "/crm/exports/workspace/{workspace_id}",
|
|
2605
|
+
...options
|
|
2606
|
+
});
|
|
2139
2607
|
var getTrainingSessionsAgentsByAgentIdSessions = (options) => (options.client ?? client).get({
|
|
2140
2608
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2141
2609
|
url: "/training-sessions/agents/{agent_id}/sessions",
|
|
@@ -2146,6 +2614,11 @@ var getSearch = (options) => (options.client ?? client).get({
|
|
|
2146
2614
|
url: "/search",
|
|
2147
2615
|
...options
|
|
2148
2616
|
});
|
|
2617
|
+
var getCatalogProductsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2618
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2619
|
+
url: "/catalog/products/workspace/{workspace_id}",
|
|
2620
|
+
...options
|
|
2621
|
+
});
|
|
2149
2622
|
var getVoiceSessionsById = (options) => (options.client ?? client).get({
|
|
2150
2623
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2151
2624
|
url: "/voice/sessions/{id}",
|
|
@@ -2216,6 +2689,30 @@ var postNotificationPreferences = (options) => (options.client ?? client).post({
|
|
|
2216
2689
|
...options.headers
|
|
2217
2690
|
}
|
|
2218
2691
|
});
|
|
2692
|
+
var deleteCrmPipelineStagesById = (options) => (options.client ?? client).delete({
|
|
2693
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2694
|
+
url: "/crm/pipeline-stages/{id}",
|
|
2695
|
+
...options
|
|
2696
|
+
});
|
|
2697
|
+
var getCrmPipelineStagesById = (options) => (options.client ?? client).get({
|
|
2698
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2699
|
+
url: "/crm/pipeline-stages/{id}",
|
|
2700
|
+
...options
|
|
2701
|
+
});
|
|
2702
|
+
var patchCrmPipelineStagesById = (options) => (options.client ?? client).patch({
|
|
2703
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2704
|
+
url: "/crm/pipeline-stages/{id}",
|
|
2705
|
+
...options,
|
|
2706
|
+
headers: {
|
|
2707
|
+
"Content-Type": "application/vnd.api+json",
|
|
2708
|
+
...options.headers
|
|
2709
|
+
}
|
|
2710
|
+
});
|
|
2711
|
+
var getCrmPipelinesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2712
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2713
|
+
url: "/crm/pipelines/workspace/{workspace_id}",
|
|
2714
|
+
...options
|
|
2715
|
+
});
|
|
2219
2716
|
var patchSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPause = (options) => (options.client ?? client).patch({
|
|
2220
2717
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2221
2718
|
url: "/scheduling/calendar-syncs/scheduling/calendar-syncs/{id}/pause",
|
|
@@ -2253,6 +2750,11 @@ var patchThreadsById = (options) => (options.client ?? client).patch({
|
|
|
2253
2750
|
...options.headers
|
|
2254
2751
|
}
|
|
2255
2752
|
});
|
|
2753
|
+
var getSupportTicketsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2754
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2755
|
+
url: "/support/tickets/workspace/{workspace_id}",
|
|
2756
|
+
...options
|
|
2757
|
+
});
|
|
2256
2758
|
var deleteNotificationPreferencesById = (options) => (options.client ?? client).delete({
|
|
2257
2759
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2258
2760
|
url: "/notification-preferences/{id}",
|
|
@@ -2286,6 +2788,39 @@ var postWatcherClaims = (options) => (options.client ?? client).post({
|
|
|
2286
2788
|
...options.headers
|
|
2287
2789
|
}
|
|
2288
2790
|
});
|
|
2791
|
+
var getCrawlerJobs = (options) => (options.client ?? client).get({
|
|
2792
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2793
|
+
url: "/crawler/jobs",
|
|
2794
|
+
...options
|
|
2795
|
+
});
|
|
2796
|
+
var postCrawlerJobs = (options) => (options.client ?? client).post({
|
|
2797
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2798
|
+
url: "/crawler/jobs",
|
|
2799
|
+
...options,
|
|
2800
|
+
headers: {
|
|
2801
|
+
"Content-Type": "application/vnd.api+json",
|
|
2802
|
+
...options.headers
|
|
2803
|
+
}
|
|
2804
|
+
});
|
|
2805
|
+
var deleteCrmCompaniesById = (options) => (options.client ?? client).delete({
|
|
2806
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2807
|
+
url: "/crm/companies/{id}",
|
|
2808
|
+
...options
|
|
2809
|
+
});
|
|
2810
|
+
var getCrmCompaniesById = (options) => (options.client ?? client).get({
|
|
2811
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2812
|
+
url: "/crm/companies/{id}",
|
|
2813
|
+
...options
|
|
2814
|
+
});
|
|
2815
|
+
var patchCrmCompaniesById = (options) => (options.client ?? client).patch({
|
|
2816
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2817
|
+
url: "/crm/companies/{id}",
|
|
2818
|
+
...options,
|
|
2819
|
+
headers: {
|
|
2820
|
+
"Content-Type": "application/vnd.api+json",
|
|
2821
|
+
...options.headers
|
|
2822
|
+
}
|
|
2823
|
+
});
|
|
2289
2824
|
var patchSchedulingBookingsSchedulingBookingsByIdReschedule = (options) => (options.client ?? client).patch({
|
|
2290
2825
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2291
2826
|
url: "/scheduling/bookings/scheduling/bookings/{id}/reschedule",
|
|
@@ -2358,6 +2893,15 @@ var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
|
2358
2893
|
...options.headers
|
|
2359
2894
|
}
|
|
2360
2895
|
});
|
|
2896
|
+
var postCrmPipelines = (options) => (options.client ?? client).post({
|
|
2897
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2898
|
+
url: "/crm/pipelines",
|
|
2899
|
+
...options,
|
|
2900
|
+
headers: {
|
|
2901
|
+
"Content-Type": "application/vnd.api+json",
|
|
2902
|
+
...options.headers
|
|
2903
|
+
}
|
|
2904
|
+
});
|
|
2361
2905
|
var getExtractionResultsDocumentByDocumentId = (options) => (options.client ?? client).get({
|
|
2362
2906
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2363
2907
|
url: "/extraction/results/document/{document_id}",
|
|
@@ -2382,6 +2926,20 @@ var getWorkspacesById = (options) => (options.client ?? client).get({
|
|
|
2382
2926
|
url: "/workspaces/{id}",
|
|
2383
2927
|
...options
|
|
2384
2928
|
});
|
|
2929
|
+
var getCrawlerSchedules = (options) => (options.client ?? client).get({
|
|
2930
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2931
|
+
url: "/crawler/schedules",
|
|
2932
|
+
...options
|
|
2933
|
+
});
|
|
2934
|
+
var postCrawlerSchedules = (options) => (options.client ?? client).post({
|
|
2935
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2936
|
+
url: "/crawler/schedules",
|
|
2937
|
+
...options,
|
|
2938
|
+
headers: {
|
|
2939
|
+
"Content-Type": "application/vnd.api+json",
|
|
2940
|
+
...options.headers
|
|
2941
|
+
}
|
|
2942
|
+
});
|
|
2385
2943
|
var postWebhookConfigsBulkDisable = (options) => (options.client ?? client).post({
|
|
2386
2944
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2387
2945
|
url: "/webhook-configs/bulk-disable",
|
|
@@ -2484,6 +3042,15 @@ var postWorkspacesByWorkspaceIdExtractionByDocumentIdMapping = (options) => (opt
|
|
|
2484
3042
|
...options.headers
|
|
2485
3043
|
}
|
|
2486
3044
|
});
|
|
3045
|
+
var postConnectorsFullscriptCheckPatient = (options) => (options.client ?? client).post({
|
|
3046
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3047
|
+
url: "/connectors/fullscript/check-patient",
|
|
3048
|
+
...options,
|
|
3049
|
+
headers: {
|
|
3050
|
+
"Content-Type": "application/vnd.api+json",
|
|
3051
|
+
...options.headers
|
|
3052
|
+
}
|
|
3053
|
+
});
|
|
2487
3054
|
var getSchedulingEventTypes = (options) => (options.client ?? client).get({
|
|
2488
3055
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2489
3056
|
url: "/scheduling/event-types",
|
|
@@ -2498,6 +3065,25 @@ var postSchedulingEventTypes = (options) => (options.client ?? client).post({
|
|
|
2498
3065
|
...options.headers
|
|
2499
3066
|
}
|
|
2500
3067
|
});
|
|
3068
|
+
var deleteCrmPipelinesById = (options) => (options.client ?? client).delete({
|
|
3069
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3070
|
+
url: "/crm/pipelines/{id}",
|
|
3071
|
+
...options
|
|
3072
|
+
});
|
|
3073
|
+
var getCrmPipelinesById = (options) => (options.client ?? client).get({
|
|
3074
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3075
|
+
url: "/crm/pipelines/{id}",
|
|
3076
|
+
...options
|
|
3077
|
+
});
|
|
3078
|
+
var patchCrmPipelinesById = (options) => (options.client ?? client).patch({
|
|
3079
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3080
|
+
url: "/crm/pipelines/{id}",
|
|
3081
|
+
...options,
|
|
3082
|
+
headers: {
|
|
3083
|
+
"Content-Type": "application/vnd.api+json",
|
|
3084
|
+
...options.headers
|
|
3085
|
+
}
|
|
3086
|
+
});
|
|
2501
3087
|
var getPlansById = (options) => (options.client ?? client).get({
|
|
2502
3088
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2503
3089
|
url: "/plans/{id}",
|
|
@@ -2540,6 +3126,16 @@ var postTenantsByIdSchedulePurge = (options) => (options.client ?? client).post(
|
|
|
2540
3126
|
...options.headers
|
|
2541
3127
|
}
|
|
2542
3128
|
});
|
|
3129
|
+
var deleteCrmActivitiesById = (options) => (options.client ?? client).delete({
|
|
3130
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3131
|
+
url: "/crm/activities/{id}",
|
|
3132
|
+
...options
|
|
3133
|
+
});
|
|
3134
|
+
var getCrmActivitiesById = (options) => (options.client ?? client).get({
|
|
3135
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3136
|
+
url: "/crm/activities/{id}",
|
|
3137
|
+
...options
|
|
3138
|
+
});
|
|
2543
3139
|
var getUserProfiles = (options) => (options.client ?? client).get({
|
|
2544
3140
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2545
3141
|
url: "/user-profiles",
|
|
@@ -2661,6 +3257,24 @@ var getTransactions = (options) => (options.client ?? client).get({
|
|
|
2661
3257
|
url: "/transactions",
|
|
2662
3258
|
...options
|
|
2663
3259
|
});
|
|
3260
|
+
var postCatalogTaxonomies = (options) => (options.client ?? client).post({
|
|
3261
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3262
|
+
url: "/catalog/taxonomies",
|
|
3263
|
+
...options,
|
|
3264
|
+
headers: {
|
|
3265
|
+
"Content-Type": "application/vnd.api+json",
|
|
3266
|
+
...options.headers
|
|
3267
|
+
}
|
|
3268
|
+
});
|
|
3269
|
+
var postConnectorsOauthInitiate = (options) => (options.client ?? client).post({
|
|
3270
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3271
|
+
url: "/connectors/oauth/initiate",
|
|
3272
|
+
...options,
|
|
3273
|
+
headers: {
|
|
3274
|
+
"Content-Type": "application/vnd.api+json",
|
|
3275
|
+
...options.headers
|
|
3276
|
+
}
|
|
3277
|
+
});
|
|
2664
3278
|
var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
|
|
2665
3279
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2666
3280
|
url: "/search/saved/{id}/run",
|
|
@@ -2670,6 +3284,25 @@ var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
|
|
|
2670
3284
|
...options.headers
|
|
2671
3285
|
}
|
|
2672
3286
|
});
|
|
3287
|
+
var deleteCatalogProductsById = (options) => (options.client ?? client).delete({
|
|
3288
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3289
|
+
url: "/catalog/products/{id}",
|
|
3290
|
+
...options
|
|
3291
|
+
});
|
|
3292
|
+
var getCatalogProductsById = (options) => (options.client ?? client).get({
|
|
3293
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3294
|
+
url: "/catalog/products/{id}",
|
|
3295
|
+
...options
|
|
3296
|
+
});
|
|
3297
|
+
var patchCatalogProductsById = (options) => (options.client ?? client).patch({
|
|
3298
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3299
|
+
url: "/catalog/products/{id}",
|
|
3300
|
+
...options,
|
|
3301
|
+
headers: {
|
|
3302
|
+
"Content-Type": "application/vnd.api+json",
|
|
3303
|
+
...options.headers
|
|
3304
|
+
}
|
|
3305
|
+
});
|
|
2673
3306
|
var postWebhookConfigsBulkEnable = (options) => (options.client ?? client).post({
|
|
2674
3307
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2675
3308
|
url: "/webhook-configs/bulk-enable",
|
|
@@ -2688,6 +3321,25 @@ var postWebhookConfigsByIdReplay = (options) => (options.client ?? client).post(
|
|
|
2688
3321
|
...options.headers
|
|
2689
3322
|
}
|
|
2690
3323
|
});
|
|
3324
|
+
var deleteCatalogProductVariantsById = (options) => (options.client ?? client).delete({
|
|
3325
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3326
|
+
url: "/catalog/product-variants/{id}",
|
|
3327
|
+
...options
|
|
3328
|
+
});
|
|
3329
|
+
var getCatalogProductVariantsById = (options) => (options.client ?? client).get({
|
|
3330
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3331
|
+
url: "/catalog/product-variants/{id}",
|
|
3332
|
+
...options
|
|
3333
|
+
});
|
|
3334
|
+
var patchCatalogProductVariantsById = (options) => (options.client ?? client).patch({
|
|
3335
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3336
|
+
url: "/catalog/product-variants/{id}",
|
|
3337
|
+
...options,
|
|
3338
|
+
headers: {
|
|
3339
|
+
"Content-Type": "application/vnd.api+json",
|
|
3340
|
+
...options.headers
|
|
3341
|
+
}
|
|
3342
|
+
});
|
|
2691
3343
|
var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).post({
|
|
2692
3344
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2693
3345
|
url: "/webhook-deliveries/bulk-retry",
|
|
@@ -2803,6 +3455,25 @@ var patchSchedulingEventsById = (options) => (options.client ?? client).patch({
|
|
|
2803
3455
|
...options.headers
|
|
2804
3456
|
}
|
|
2805
3457
|
});
|
|
3458
|
+
var deleteConnectorsById = (options) => (options.client ?? client).delete({
|
|
3459
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3460
|
+
url: "/connectors/{id}",
|
|
3461
|
+
...options
|
|
3462
|
+
});
|
|
3463
|
+
var getConnectorsById = (options) => (options.client ?? client).get({
|
|
3464
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3465
|
+
url: "/connectors/{id}",
|
|
3466
|
+
...options
|
|
3467
|
+
});
|
|
3468
|
+
var patchConnectorsById = (options) => (options.client ?? client).patch({
|
|
3469
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3470
|
+
url: "/connectors/{id}",
|
|
3471
|
+
...options,
|
|
3472
|
+
headers: {
|
|
3473
|
+
"Content-Type": "application/vnd.api+json",
|
|
3474
|
+
...options.headers
|
|
3475
|
+
}
|
|
3476
|
+
});
|
|
2806
3477
|
var getWorkspaceMemberships = (options) => (options.client ?? client).get({
|
|
2807
3478
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2808
3479
|
url: "/workspace-memberships",
|
|
@@ -2945,6 +3616,15 @@ var getPlans = (options) => (options.client ?? client).get({
|
|
|
2945
3616
|
url: "/plans",
|
|
2946
3617
|
...options
|
|
2947
3618
|
});
|
|
3619
|
+
var postCrmActivities = (options) => (options.client ?? client).post({
|
|
3620
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3621
|
+
url: "/crm/activities",
|
|
3622
|
+
...options,
|
|
3623
|
+
headers: {
|
|
3624
|
+
"Content-Type": "application/vnd.api+json",
|
|
3625
|
+
...options.headers
|
|
3626
|
+
}
|
|
3627
|
+
});
|
|
2948
3628
|
var getSchedulingEvents = (options) => (options.client ?? client).get({
|
|
2949
3629
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2950
3630
|
url: "/scheduling/events",
|
|
@@ -2987,6 +3667,11 @@ var getExtractionDocuments = (options) => (options.client ?? client).get({
|
|
|
2987
3667
|
url: "/extraction/documents",
|
|
2988
3668
|
...options
|
|
2989
3669
|
});
|
|
3670
|
+
var getCrmDealsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3671
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3672
|
+
url: "/crm/deals/workspace/{workspace_id}",
|
|
3673
|
+
...options
|
|
3674
|
+
});
|
|
2990
3675
|
var patchExtractionResultsByIdSaveCorrections = (options) => (options.client ?? client).patch({
|
|
2991
3676
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2992
3677
|
url: "/extraction/results/{id}/save-corrections",
|
|
@@ -3005,6 +3690,11 @@ var postUsersAuthResendConfirmation = (options) => (options.client ?? client).po
|
|
|
3005
3690
|
...options.headers
|
|
3006
3691
|
}
|
|
3007
3692
|
});
|
|
3693
|
+
var getCrawlerResultsById = (options) => (options.client ?? client).get({
|
|
3694
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3695
|
+
url: "/crawler/results/{id}",
|
|
3696
|
+
...options
|
|
3697
|
+
});
|
|
3008
3698
|
var getAiMessages = (options) => (options.client ?? client).get({
|
|
3009
3699
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3010
3700
|
url: "/ai/messages",
|
|
@@ -3033,6 +3723,33 @@ var postWatcherEvents = (options) => (options.client ?? client).post({
|
|
|
3033
3723
|
...options.headers
|
|
3034
3724
|
}
|
|
3035
3725
|
});
|
|
3726
|
+
var postSupportTicketMessages = (options) => (options.client ?? client).post({
|
|
3727
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3728
|
+
url: "/support/ticket-messages",
|
|
3729
|
+
...options,
|
|
3730
|
+
headers: {
|
|
3731
|
+
"Content-Type": "application/vnd.api+json",
|
|
3732
|
+
...options.headers
|
|
3733
|
+
}
|
|
3734
|
+
});
|
|
3735
|
+
var postConnectorsOauthCallback = (options) => (options.client ?? client).post({
|
|
3736
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3737
|
+
url: "/connectors/oauth/callback",
|
|
3738
|
+
...options,
|
|
3739
|
+
headers: {
|
|
3740
|
+
"Content-Type": "application/vnd.api+json",
|
|
3741
|
+
...options.headers
|
|
3742
|
+
}
|
|
3743
|
+
});
|
|
3744
|
+
var postSupportTags = (options) => (options.client ?? client).post({
|
|
3745
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3746
|
+
url: "/support/tags",
|
|
3747
|
+
...options,
|
|
3748
|
+
headers: {
|
|
3749
|
+
"Content-Type": "application/vnd.api+json",
|
|
3750
|
+
...options.headers
|
|
3751
|
+
}
|
|
3752
|
+
});
|
|
3036
3753
|
var postAgentVersionsByIdSetSystemFields = (options) => (options.client ?? client).post({
|
|
3037
3754
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3038
3755
|
url: "/agent-versions/{id}/set-system-fields",
|
|
@@ -3084,6 +3801,11 @@ var postApiKeys = (options) => (options.client ?? client).post({
|
|
|
3084
3801
|
...options.headers
|
|
3085
3802
|
}
|
|
3086
3803
|
});
|
|
3804
|
+
var deleteSupportTagsById = (options) => (options.client ?? client).delete({
|
|
3805
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3806
|
+
url: "/support/tags/{id}",
|
|
3807
|
+
...options
|
|
3808
|
+
});
|
|
3087
3809
|
var postExtractionDocumentsBulkReprocess = (options) => (options.client ?? client).post({
|
|
3088
3810
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3089
3811
|
url: "/extraction/documents/bulk-reprocess",
|
|
@@ -3112,6 +3834,39 @@ var getWallet = (options) => (options.client ?? client).get({
|
|
|
3112
3834
|
url: "/wallet",
|
|
3113
3835
|
...options
|
|
3114
3836
|
});
|
|
3837
|
+
var deleteCrawlerSchedulesById = (options) => (options.client ?? client).delete({
|
|
3838
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3839
|
+
url: "/crawler/schedules/{id}",
|
|
3840
|
+
...options
|
|
3841
|
+
});
|
|
3842
|
+
var getCrawlerSchedulesById = (options) => (options.client ?? client).get({
|
|
3843
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3844
|
+
url: "/crawler/schedules/{id}",
|
|
3845
|
+
...options
|
|
3846
|
+
});
|
|
3847
|
+
var patchCrawlerSchedulesById = (options) => (options.client ?? client).patch({
|
|
3848
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3849
|
+
url: "/crawler/schedules/{id}",
|
|
3850
|
+
...options,
|
|
3851
|
+
headers: {
|
|
3852
|
+
"Content-Type": "application/vnd.api+json",
|
|
3853
|
+
...options.headers
|
|
3854
|
+
}
|
|
3855
|
+
});
|
|
3856
|
+
var postCrmDeals = (options) => (options.client ?? client).post({
|
|
3857
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3858
|
+
url: "/crm/deals",
|
|
3859
|
+
...options,
|
|
3860
|
+
headers: {
|
|
3861
|
+
"Content-Type": "application/vnd.api+json",
|
|
3862
|
+
...options.headers
|
|
3863
|
+
}
|
|
3864
|
+
});
|
|
3865
|
+
var getCrmActivitiesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3866
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3867
|
+
url: "/crm/activities/workspace/{workspace_id}",
|
|
3868
|
+
...options
|
|
3869
|
+
});
|
|
3115
3870
|
var getAgents = (options) => (options.client ?? client).get({
|
|
3116
3871
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3117
3872
|
url: "/agents",
|
|
@@ -3131,6 +3886,29 @@ var getApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options.c
|
|
|
3131
3886
|
url: "/applications/{application_id}/email-templates/{slug}",
|
|
3132
3887
|
...options
|
|
3133
3888
|
});
|
|
3889
|
+
var postSupportTicketRatings = (options) => (options.client ?? client).post({
|
|
3890
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3891
|
+
url: "/support/ticket-ratings",
|
|
3892
|
+
...options,
|
|
3893
|
+
headers: {
|
|
3894
|
+
"Content-Type": "application/vnd.api+json",
|
|
3895
|
+
...options.headers
|
|
3896
|
+
}
|
|
3897
|
+
});
|
|
3898
|
+
var getConnectors = (options) => (options.client ?? client).get({
|
|
3899
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3900
|
+
url: "/connectors",
|
|
3901
|
+
...options
|
|
3902
|
+
});
|
|
3903
|
+
var postConnectors = (options) => (options.client ?? client).post({
|
|
3904
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3905
|
+
url: "/connectors",
|
|
3906
|
+
...options,
|
|
3907
|
+
headers: {
|
|
3908
|
+
"Content-Type": "application/vnd.api+json",
|
|
3909
|
+
...options.headers
|
|
3910
|
+
}
|
|
3911
|
+
});
|
|
3134
3912
|
var postAgentsByIdExport = (options) => (options.client ?? client).post({
|
|
3135
3913
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3136
3914
|
url: "/agents/{id}/export",
|
|
@@ -3183,16 +3961,68 @@ var postTrainingExamplesBulkDelete = (options) => (options.client ?? client).pos
|
|
|
3183
3961
|
...options.headers
|
|
3184
3962
|
}
|
|
3185
3963
|
});
|
|
3964
|
+
var getCrmRelationshipsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3965
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3966
|
+
url: "/crm/relationships/workspace/{workspace_id}",
|
|
3967
|
+
...options
|
|
3968
|
+
});
|
|
3969
|
+
var getCrmCompaniesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3970
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3971
|
+
url: "/crm/companies/workspace/{workspace_id}",
|
|
3972
|
+
...options
|
|
3973
|
+
});
|
|
3186
3974
|
var getCreditPackages = (options) => (options.client ?? client).get({
|
|
3187
3975
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3188
3976
|
url: "/credit-packages",
|
|
3189
3977
|
...options
|
|
3190
3978
|
});
|
|
3979
|
+
var postCrmPipelineStages = (options) => (options.client ?? client).post({
|
|
3980
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3981
|
+
url: "/crm/pipeline-stages",
|
|
3982
|
+
...options,
|
|
3983
|
+
headers: {
|
|
3984
|
+
"Content-Type": "application/vnd.api+json",
|
|
3985
|
+
...options.headers
|
|
3986
|
+
}
|
|
3987
|
+
});
|
|
3988
|
+
var getCatalogProductVariantsProductByProductId = (options) => (options.client ?? client).get({
|
|
3989
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3990
|
+
url: "/catalog/product-variants/product/{product_id}",
|
|
3991
|
+
...options
|
|
3992
|
+
});
|
|
3191
3993
|
var getUsers = (options) => (options.client ?? client).get({
|
|
3192
3994
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3193
3995
|
url: "/users",
|
|
3194
3996
|
...options
|
|
3195
3997
|
});
|
|
3998
|
+
var deleteSupportTicketsById = (options) => (options.client ?? client).delete({
|
|
3999
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4000
|
+
url: "/support/tickets/{id}",
|
|
4001
|
+
...options
|
|
4002
|
+
});
|
|
4003
|
+
var getSupportTicketsById = (options) => (options.client ?? client).get({
|
|
4004
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4005
|
+
url: "/support/tickets/{id}",
|
|
4006
|
+
...options
|
|
4007
|
+
});
|
|
4008
|
+
var patchSupportTicketsById = (options) => (options.client ?? client).patch({
|
|
4009
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4010
|
+
url: "/support/tickets/{id}",
|
|
4011
|
+
...options,
|
|
4012
|
+
headers: {
|
|
4013
|
+
"Content-Type": "application/vnd.api+json",
|
|
4014
|
+
...options.headers
|
|
4015
|
+
}
|
|
4016
|
+
});
|
|
4017
|
+
var postCrmExports = (options) => (options.client ?? client).post({
|
|
4018
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4019
|
+
url: "/crm/exports",
|
|
4020
|
+
...options,
|
|
4021
|
+
headers: {
|
|
4022
|
+
"Content-Type": "application/vnd.api+json",
|
|
4023
|
+
...options.headers
|
|
4024
|
+
}
|
|
4025
|
+
});
|
|
3196
4026
|
|
|
3197
4027
|
// src/pagination.ts
|
|
3198
4028
|
var DEFAULT_MAX_PAGES = 500;
|
|
@@ -3564,12 +4394,15 @@ function createAiNamespace(rb) {
|
|
|
3564
4394
|
);
|
|
3565
4395
|
},
|
|
3566
4396
|
/** Send a message to an AI conversation (non-streaming) */
|
|
3567
|
-
send: async (
|
|
4397
|
+
send: async (conversationId, body, options) => {
|
|
3568
4398
|
return rb.execute(
|
|
3569
4399
|
postAiMessages,
|
|
3570
4400
|
{
|
|
3571
4401
|
body: {
|
|
3572
|
-
data: {
|
|
4402
|
+
data: {
|
|
4403
|
+
type: "message",
|
|
4404
|
+
attributes: { ...body, conversation_id: conversationId }
|
|
4405
|
+
}
|
|
3573
4406
|
}
|
|
3574
4407
|
},
|
|
3575
4408
|
options
|
|
@@ -3657,208 +4490,1670 @@ function createBillingNamespace(rb) {
|
|
|
3657
4490
|
)
|
|
3658
4491
|
);
|
|
3659
4492
|
},
|
|
3660
|
-
get: async (id, options) => {
|
|
4493
|
+
get: async (id, options) => {
|
|
4494
|
+
return rb.execute(
|
|
4495
|
+
getCreditPackagesById,
|
|
4496
|
+
{ path: { id } },
|
|
4497
|
+
options
|
|
4498
|
+
);
|
|
4499
|
+
}
|
|
4500
|
+
},
|
|
4501
|
+
paymentMethods: {
|
|
4502
|
+
delete: async (id, options) => {
|
|
4503
|
+
return rb.executeDelete(
|
|
4504
|
+
deletePaymentMethodsById,
|
|
4505
|
+
{ path: { id } },
|
|
4506
|
+
options
|
|
4507
|
+
);
|
|
4508
|
+
},
|
|
4509
|
+
list: async (options) => {
|
|
4510
|
+
return rb.execute(
|
|
4511
|
+
getPaymentMethods,
|
|
4512
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
4513
|
+
options
|
|
4514
|
+
);
|
|
4515
|
+
},
|
|
4516
|
+
listAll: async (options) => {
|
|
4517
|
+
return paginateToArray(
|
|
4518
|
+
rb.createPaginatedFetcher(
|
|
4519
|
+
getPaymentMethods,
|
|
4520
|
+
(page, pageSize) => ({
|
|
4521
|
+
query: { page: { number: page, size: pageSize } }
|
|
4522
|
+
}),
|
|
4523
|
+
options
|
|
4524
|
+
)
|
|
4525
|
+
);
|
|
4526
|
+
},
|
|
4527
|
+
create: async (attributes, options) => {
|
|
4528
|
+
return rb.execute(
|
|
4529
|
+
postPaymentMethods,
|
|
4530
|
+
{ body: { data: { type: "payment_method", attributes } } },
|
|
4531
|
+
options
|
|
4532
|
+
);
|
|
4533
|
+
},
|
|
4534
|
+
update: async (id, attributes, options) => {
|
|
4535
|
+
return rb.execute(
|
|
4536
|
+
patchPaymentMethodsById,
|
|
4537
|
+
{
|
|
4538
|
+
path: { id },
|
|
4539
|
+
body: { data: { id, type: "payment_method", attributes } }
|
|
4540
|
+
},
|
|
4541
|
+
options
|
|
4542
|
+
);
|
|
4543
|
+
},
|
|
4544
|
+
get: async (id, options) => {
|
|
4545
|
+
return rb.execute(
|
|
4546
|
+
getPaymentMethodsById,
|
|
4547
|
+
{ path: { id } },
|
|
4548
|
+
options
|
|
4549
|
+
);
|
|
4550
|
+
}
|
|
4551
|
+
}
|
|
4552
|
+
};
|
|
4553
|
+
}
|
|
4554
|
+
|
|
4555
|
+
// src/namespaces/catalog.ts
|
|
4556
|
+
function createCatalogNamespace(rb) {
|
|
4557
|
+
return {
|
|
4558
|
+
/**
|
|
4559
|
+
* Products — product catalog management
|
|
4560
|
+
*/
|
|
4561
|
+
products: {
|
|
4562
|
+
/** List products for a workspace */
|
|
4563
|
+
list: async (workspaceId, options) => {
|
|
4564
|
+
return rb.execute(
|
|
4565
|
+
getCatalogProductsWorkspaceByWorkspaceId,
|
|
4566
|
+
{
|
|
4567
|
+
path: { workspace_id: workspaceId },
|
|
4568
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
4569
|
+
},
|
|
4570
|
+
options
|
|
4571
|
+
);
|
|
4572
|
+
},
|
|
4573
|
+
/** Get a product by ID */
|
|
4574
|
+
get: async (id, options) => {
|
|
4575
|
+
return rb.execute(
|
|
4576
|
+
getCatalogProductsById,
|
|
4577
|
+
{ path: { id } },
|
|
4578
|
+
options
|
|
4579
|
+
);
|
|
4580
|
+
},
|
|
4581
|
+
/** Create a new product */
|
|
4582
|
+
create: async (attributes, options) => {
|
|
4583
|
+
return rb.execute(
|
|
4584
|
+
postCatalogProducts,
|
|
4585
|
+
{
|
|
4586
|
+
body: {
|
|
4587
|
+
data: { type: "catalog_product", attributes }
|
|
4588
|
+
}
|
|
4589
|
+
},
|
|
4590
|
+
options
|
|
4591
|
+
);
|
|
4592
|
+
},
|
|
4593
|
+
/** Update a product */
|
|
4594
|
+
update: async (id, attributes, options) => {
|
|
4595
|
+
return rb.execute(
|
|
4596
|
+
patchCatalogProductsById,
|
|
4597
|
+
{
|
|
4598
|
+
path: { id },
|
|
4599
|
+
body: {
|
|
4600
|
+
data: { type: "catalog_product", id, attributes }
|
|
4601
|
+
}
|
|
4602
|
+
},
|
|
4603
|
+
options
|
|
4604
|
+
);
|
|
4605
|
+
},
|
|
4606
|
+
/** Delete a product */
|
|
4607
|
+
delete: async (id, options) => {
|
|
4608
|
+
return rb.executeDelete(
|
|
4609
|
+
deleteCatalogProductsById,
|
|
4610
|
+
{ path: { id } },
|
|
4611
|
+
options
|
|
4612
|
+
);
|
|
4613
|
+
}
|
|
4614
|
+
},
|
|
4615
|
+
/**
|
|
4616
|
+
* Variants — product variants (SKUs)
|
|
4617
|
+
*/
|
|
4618
|
+
variants: {
|
|
4619
|
+
/** Get a variant by ID */
|
|
4620
|
+
get: async (id, options) => {
|
|
4621
|
+
return rb.execute(
|
|
4622
|
+
getCatalogProductVariantsById,
|
|
4623
|
+
{ path: { id } },
|
|
4624
|
+
options
|
|
4625
|
+
);
|
|
4626
|
+
},
|
|
4627
|
+
/** List variants for a product */
|
|
4628
|
+
listByProduct: async (productId, options) => {
|
|
4629
|
+
return rb.execute(
|
|
4630
|
+
getCatalogProductVariantsProductByProductId,
|
|
4631
|
+
{ path: { product_id: productId } },
|
|
4632
|
+
options
|
|
4633
|
+
);
|
|
4634
|
+
},
|
|
4635
|
+
/** Create a product variant */
|
|
4636
|
+
create: async (attributes, options) => {
|
|
4637
|
+
return rb.execute(
|
|
4638
|
+
postCatalogProductVariants,
|
|
4639
|
+
{
|
|
4640
|
+
body: {
|
|
4641
|
+
data: { type: "catalog_product_variant", attributes }
|
|
4642
|
+
}
|
|
4643
|
+
},
|
|
4644
|
+
options
|
|
4645
|
+
);
|
|
4646
|
+
},
|
|
4647
|
+
/** Update a product variant */
|
|
4648
|
+
update: async (id, attributes, options) => {
|
|
4649
|
+
return rb.execute(
|
|
4650
|
+
patchCatalogProductVariantsById,
|
|
4651
|
+
{
|
|
4652
|
+
path: { id },
|
|
4653
|
+
body: {
|
|
4654
|
+
data: { type: "catalog_product_variant", id, attributes }
|
|
4655
|
+
}
|
|
4656
|
+
},
|
|
4657
|
+
options
|
|
4658
|
+
);
|
|
4659
|
+
},
|
|
4660
|
+
/** Delete a product variant */
|
|
4661
|
+
delete: async (id, options) => {
|
|
4662
|
+
return rb.executeDelete(
|
|
4663
|
+
deleteCatalogProductVariantsById,
|
|
4664
|
+
{ path: { id } },
|
|
4665
|
+
options
|
|
4666
|
+
);
|
|
4667
|
+
}
|
|
4668
|
+
},
|
|
4669
|
+
/**
|
|
4670
|
+
* Taxonomies — product classification trees
|
|
4671
|
+
*/
|
|
4672
|
+
taxonomies: {
|
|
4673
|
+
/** List taxonomies for an application */
|
|
4674
|
+
listByApplication: async (applicationId, options) => {
|
|
4675
|
+
return rb.execute(
|
|
4676
|
+
getCatalogTaxonomiesApplicationByApplicationId,
|
|
4677
|
+
{ path: { application_id: applicationId } },
|
|
4678
|
+
options
|
|
4679
|
+
);
|
|
4680
|
+
},
|
|
4681
|
+
/** Get a taxonomy by ID */
|
|
4682
|
+
get: async (id, options) => {
|
|
4683
|
+
return rb.execute(
|
|
4684
|
+
getCatalogTaxonomiesById,
|
|
4685
|
+
{ path: { id } },
|
|
4686
|
+
options
|
|
4687
|
+
);
|
|
4688
|
+
},
|
|
4689
|
+
/** Create a taxonomy */
|
|
4690
|
+
create: async (attributes, options) => {
|
|
4691
|
+
return rb.execute(
|
|
4692
|
+
postCatalogTaxonomies,
|
|
4693
|
+
{
|
|
4694
|
+
body: {
|
|
4695
|
+
data: { type: "catalog_taxonomy", attributes }
|
|
4696
|
+
}
|
|
4697
|
+
},
|
|
4698
|
+
options
|
|
4699
|
+
);
|
|
4700
|
+
},
|
|
4701
|
+
/** Update a taxonomy */
|
|
4702
|
+
update: async (id, attributes, options) => {
|
|
4703
|
+
return rb.execute(
|
|
4704
|
+
patchCatalogTaxonomiesById,
|
|
4705
|
+
{
|
|
4706
|
+
path: { id },
|
|
4707
|
+
body: {
|
|
4708
|
+
data: { type: "catalog_taxonomy", id, attributes }
|
|
4709
|
+
}
|
|
4710
|
+
},
|
|
4711
|
+
options
|
|
4712
|
+
);
|
|
4713
|
+
},
|
|
4714
|
+
/** Delete a taxonomy */
|
|
4715
|
+
delete: async (id, options) => {
|
|
4716
|
+
return rb.executeDelete(
|
|
4717
|
+
deleteCatalogTaxonomiesById,
|
|
4718
|
+
{ path: { id } },
|
|
4719
|
+
options
|
|
4720
|
+
);
|
|
4721
|
+
}
|
|
4722
|
+
},
|
|
4723
|
+
/**
|
|
4724
|
+
* Taxonomy nodes — nodes within a taxonomy tree
|
|
4725
|
+
*/
|
|
4726
|
+
taxonomyNodes: {
|
|
4727
|
+
/** List nodes for a taxonomy */
|
|
4728
|
+
listByTaxonomy: async (taxonomyId, options) => {
|
|
4729
|
+
return rb.execute(
|
|
4730
|
+
getCatalogTaxonomyNodesTaxonomyByTaxonomyId,
|
|
4731
|
+
{ path: { taxonomy_id: taxonomyId } },
|
|
4732
|
+
options
|
|
4733
|
+
);
|
|
4734
|
+
},
|
|
4735
|
+
/** Get a taxonomy node by ID */
|
|
4736
|
+
get: async (id, options) => {
|
|
4737
|
+
return rb.execute(
|
|
4738
|
+
getCatalogTaxonomyNodesById,
|
|
4739
|
+
{ path: { id } },
|
|
4740
|
+
options
|
|
4741
|
+
);
|
|
4742
|
+
},
|
|
4743
|
+
/** Create a taxonomy node */
|
|
4744
|
+
create: async (attributes, options) => {
|
|
4745
|
+
return rb.execute(
|
|
4746
|
+
postCatalogTaxonomyNodes,
|
|
4747
|
+
{
|
|
4748
|
+
body: {
|
|
4749
|
+
data: { type: "catalog_taxonomy_node", attributes }
|
|
4750
|
+
}
|
|
4751
|
+
},
|
|
4752
|
+
options
|
|
4753
|
+
);
|
|
4754
|
+
},
|
|
4755
|
+
/** Update a taxonomy node */
|
|
4756
|
+
update: async (id, attributes, options) => {
|
|
4757
|
+
return rb.execute(
|
|
4758
|
+
patchCatalogTaxonomyNodesById,
|
|
4759
|
+
{
|
|
4760
|
+
path: { id },
|
|
4761
|
+
body: {
|
|
4762
|
+
data: { type: "catalog_taxonomy_node", id, attributes }
|
|
4763
|
+
}
|
|
4764
|
+
},
|
|
4765
|
+
options
|
|
4766
|
+
);
|
|
4767
|
+
},
|
|
4768
|
+
/** Delete a taxonomy node */
|
|
4769
|
+
delete: async (id, options) => {
|
|
4770
|
+
return rb.executeDelete(
|
|
4771
|
+
deleteCatalogTaxonomyNodesById,
|
|
4772
|
+
{ path: { id } },
|
|
4773
|
+
options
|
|
4774
|
+
);
|
|
4775
|
+
}
|
|
4776
|
+
}
|
|
4777
|
+
};
|
|
4778
|
+
}
|
|
4779
|
+
|
|
4780
|
+
// src/namespaces/communication.ts
|
|
4781
|
+
function createCommunicationNamespace(rb) {
|
|
4782
|
+
return {
|
|
4783
|
+
notifications: {
|
|
4784
|
+
/** List notification logs (alias for list) */
|
|
4785
|
+
logs: async (options) => {
|
|
4786
|
+
return rb.execute(
|
|
4787
|
+
getNotificationLogs,
|
|
4788
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
4789
|
+
options
|
|
4790
|
+
);
|
|
4791
|
+
},
|
|
4792
|
+
list: async (options) => {
|
|
4793
|
+
return rb.execute(
|
|
4794
|
+
getNotificationLogs,
|
|
4795
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
4796
|
+
options
|
|
4797
|
+
);
|
|
4798
|
+
},
|
|
4799
|
+
listAll: async (options) => {
|
|
4800
|
+
return paginateToArray(
|
|
4801
|
+
rb.createPaginatedFetcher(
|
|
4802
|
+
getNotificationLogs,
|
|
4803
|
+
(page, pageSize) => ({
|
|
4804
|
+
query: { page: { number: page, size: pageSize } }
|
|
4805
|
+
}),
|
|
4806
|
+
options
|
|
4807
|
+
)
|
|
4808
|
+
);
|
|
4809
|
+
},
|
|
4810
|
+
get: async (id, options) => {
|
|
4811
|
+
return rb.execute(
|
|
4812
|
+
getNotificationLogsById,
|
|
4813
|
+
{ path: { id } },
|
|
4814
|
+
options
|
|
4815
|
+
);
|
|
4816
|
+
},
|
|
4817
|
+
methods: {
|
|
4818
|
+
delete: async (id, options) => {
|
|
4819
|
+
return rb.executeDelete(
|
|
4820
|
+
deleteNotificationMethodsById,
|
|
4821
|
+
{ path: { id } },
|
|
4822
|
+
options
|
|
4823
|
+
);
|
|
4824
|
+
},
|
|
4825
|
+
list: async (options) => {
|
|
4826
|
+
return rb.execute(
|
|
4827
|
+
getNotificationMethods,
|
|
4828
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
4829
|
+
options
|
|
4830
|
+
);
|
|
4831
|
+
},
|
|
4832
|
+
listAll: async (options) => {
|
|
4833
|
+
return paginateToArray(
|
|
4834
|
+
rb.createPaginatedFetcher(
|
|
4835
|
+
getNotificationMethods,
|
|
4836
|
+
(page, pageSize) => ({
|
|
4837
|
+
query: { page: { number: page, size: pageSize } }
|
|
4838
|
+
}),
|
|
4839
|
+
options
|
|
4840
|
+
)
|
|
4841
|
+
);
|
|
4842
|
+
},
|
|
4843
|
+
create: async (attributes, options) => {
|
|
4844
|
+
return rb.execute(
|
|
4845
|
+
postNotificationMethods,
|
|
4846
|
+
{ body: { data: { type: "notification_method", attributes } } },
|
|
4847
|
+
options
|
|
4848
|
+
);
|
|
4849
|
+
},
|
|
4850
|
+
update: async (id, attributes, options) => {
|
|
4851
|
+
return rb.execute(
|
|
4852
|
+
patchNotificationMethodsById,
|
|
4853
|
+
{
|
|
4854
|
+
path: { id },
|
|
4855
|
+
body: { data: { id, type: "notification_method", attributes } }
|
|
4856
|
+
},
|
|
4857
|
+
options
|
|
4858
|
+
);
|
|
4859
|
+
},
|
|
4860
|
+
get: async (id, options) => {
|
|
4861
|
+
return rb.execute(
|
|
4862
|
+
getNotificationMethodsById,
|
|
4863
|
+
{ path: { id } },
|
|
4864
|
+
options
|
|
4865
|
+
);
|
|
4866
|
+
}
|
|
4867
|
+
},
|
|
4868
|
+
preferences: {
|
|
4869
|
+
delete: async (id, options) => {
|
|
4870
|
+
return rb.executeDelete(
|
|
4871
|
+
deleteNotificationPreferencesById,
|
|
4872
|
+
{ path: { id } },
|
|
4873
|
+
options
|
|
4874
|
+
);
|
|
4875
|
+
},
|
|
4876
|
+
list: async (options) => {
|
|
4877
|
+
return rb.execute(
|
|
4878
|
+
getNotificationPreferences,
|
|
4879
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
4880
|
+
options
|
|
4881
|
+
);
|
|
4882
|
+
},
|
|
4883
|
+
listAll: async (options) => {
|
|
4884
|
+
return paginateToArray(
|
|
4885
|
+
rb.createPaginatedFetcher(
|
|
4886
|
+
getNotificationPreferences,
|
|
4887
|
+
(page, pageSize) => ({
|
|
4888
|
+
query: { page: { number: page, size: pageSize } }
|
|
4889
|
+
}),
|
|
4890
|
+
options
|
|
4891
|
+
)
|
|
4892
|
+
);
|
|
4893
|
+
},
|
|
4894
|
+
create: async (attributes, options) => {
|
|
4895
|
+
return rb.execute(
|
|
4896
|
+
postNotificationPreferences,
|
|
4897
|
+
{ body: { data: { type: "notification_preference", attributes } } },
|
|
4898
|
+
options
|
|
4899
|
+
);
|
|
4900
|
+
},
|
|
4901
|
+
update: async (id, attributes, options) => {
|
|
4902
|
+
return rb.execute(
|
|
4903
|
+
patchNotificationPreferencesById,
|
|
4904
|
+
{
|
|
4905
|
+
path: { id },
|
|
4906
|
+
body: {
|
|
4907
|
+
data: { id, type: "notification_preference", attributes }
|
|
4908
|
+
}
|
|
4909
|
+
},
|
|
4910
|
+
options
|
|
4911
|
+
);
|
|
4912
|
+
},
|
|
4913
|
+
get: async (id, options) => {
|
|
4914
|
+
return rb.execute(
|
|
4915
|
+
getNotificationPreferencesById,
|
|
4916
|
+
{ path: { id } },
|
|
4917
|
+
options
|
|
4918
|
+
);
|
|
4919
|
+
}
|
|
4920
|
+
}
|
|
4921
|
+
}
|
|
4922
|
+
};
|
|
4923
|
+
}
|
|
4924
|
+
|
|
4925
|
+
// src/namespaces/connectors.ts
|
|
4926
|
+
function createConnectorsNamespace(rb) {
|
|
4927
|
+
return {
|
|
4928
|
+
/**
|
|
4929
|
+
* Connector Instances — configured external system connections
|
|
4930
|
+
*/
|
|
4931
|
+
instances: {
|
|
4932
|
+
/** List connector instances for the current workspace */
|
|
4933
|
+
list: async (options) => rb.execute(getConnectors, {}, options),
|
|
4934
|
+
/** Get a connector instance by ID */
|
|
4935
|
+
get: async (id, options) => rb.execute(
|
|
4936
|
+
getConnectorsById,
|
|
4937
|
+
{ path: { id } },
|
|
4938
|
+
options
|
|
4939
|
+
),
|
|
4940
|
+
/** Create a new connector instance */
|
|
4941
|
+
create: async (attributes, options) => rb.execute(
|
|
4942
|
+
postConnectors,
|
|
4943
|
+
{ body: { data: { type: "connector_instance", attributes } } },
|
|
4944
|
+
options
|
|
4945
|
+
),
|
|
4946
|
+
/** Update a connector instance */
|
|
4947
|
+
update: async (id, attributes, options) => rb.execute(
|
|
4948
|
+
patchConnectorsById,
|
|
4949
|
+
{
|
|
4950
|
+
path: { id },
|
|
4951
|
+
body: { data: { type: "connector_instance", id, attributes } }
|
|
4952
|
+
},
|
|
4953
|
+
options
|
|
4954
|
+
),
|
|
4955
|
+
/** Delete a connector instance */
|
|
4956
|
+
delete: async (id, options) => rb.executeDelete(deleteConnectorsById, { path: { id } }, options)
|
|
4957
|
+
},
|
|
4958
|
+
/**
|
|
4959
|
+
* Credentials — OAuth tokens and API keys for external systems
|
|
4960
|
+
*/
|
|
4961
|
+
credentials: {
|
|
4962
|
+
/** List credentials for the current workspace */
|
|
4963
|
+
list: async (options) => rb.execute(getConnectorsCredentials, {}, options),
|
|
4964
|
+
/** Get a credential by ID */
|
|
4965
|
+
get: async (id, options) => rb.execute(
|
|
4966
|
+
getConnectorsCredentialsById,
|
|
4967
|
+
{ path: { id } },
|
|
4968
|
+
options
|
|
4969
|
+
),
|
|
4970
|
+
/** Refresh an OAuth credential */
|
|
4971
|
+
refresh: async (id, options) => rb.execute(
|
|
4972
|
+
postConnectorsCredentialsByIdRefresh,
|
|
4973
|
+
{ path: { id }, body: { data: {} } },
|
|
4974
|
+
options
|
|
4975
|
+
)
|
|
4976
|
+
},
|
|
4977
|
+
/**
|
|
4978
|
+
* OAuth — initiate and complete connector OAuth flows
|
|
4979
|
+
*/
|
|
4980
|
+
oauth: {
|
|
4981
|
+
/**
|
|
4982
|
+
* Get the OAuth authorization URL for a connector type.
|
|
4983
|
+
* Returns the URL to redirect the user to for authorization.
|
|
4984
|
+
*/
|
|
4985
|
+
connect: async (connectorType, workspaceId, options) => rb.execute(
|
|
4986
|
+
postConnectorsOauthInitiate,
|
|
4987
|
+
{
|
|
4988
|
+
body: {
|
|
4989
|
+
data: {
|
|
4990
|
+
type: "connector_instance",
|
|
4991
|
+
attributes: {
|
|
4992
|
+
connector_type: connectorType,
|
|
4993
|
+
workspace_id: workspaceId
|
|
4994
|
+
}
|
|
4995
|
+
}
|
|
4996
|
+
}
|
|
4997
|
+
},
|
|
4998
|
+
options
|
|
4999
|
+
),
|
|
5000
|
+
/**
|
|
5001
|
+
* Exchange OAuth authorization code for a credential.
|
|
5002
|
+
* Called from the redirect handler after the user authorizes in the provider.
|
|
5003
|
+
*/
|
|
5004
|
+
callback: async (connectorType, code, state, workspaceId, options) => rb.execute(
|
|
5005
|
+
postConnectorsOauthCallback,
|
|
5006
|
+
{
|
|
5007
|
+
body: {
|
|
5008
|
+
data: {
|
|
5009
|
+
type: "connector_instance",
|
|
5010
|
+
attributes: {
|
|
5011
|
+
connector_type: connectorType,
|
|
5012
|
+
code,
|
|
5013
|
+
state,
|
|
5014
|
+
workspace_id: workspaceId
|
|
5015
|
+
}
|
|
5016
|
+
}
|
|
5017
|
+
}
|
|
5018
|
+
},
|
|
5019
|
+
options
|
|
5020
|
+
)
|
|
5021
|
+
},
|
|
5022
|
+
/**
|
|
5023
|
+
* Supported Connectors — discover available integrations
|
|
5024
|
+
*/
|
|
5025
|
+
available: {
|
|
5026
|
+
/** List all supported connector types */
|
|
5027
|
+
list: () => [
|
|
5028
|
+
"salesforce",
|
|
5029
|
+
"sharepoint",
|
|
5030
|
+
"microsoft_365",
|
|
5031
|
+
"outlook",
|
|
5032
|
+
"gmail",
|
|
5033
|
+
"slack",
|
|
5034
|
+
"hubspot",
|
|
5035
|
+
"notion",
|
|
5036
|
+
"jira",
|
|
5037
|
+
"confluence",
|
|
5038
|
+
"fullscript",
|
|
5039
|
+
"github",
|
|
5040
|
+
"gitlab",
|
|
5041
|
+
"google_calendar",
|
|
5042
|
+
"google_chat",
|
|
5043
|
+
"custom"
|
|
5044
|
+
]
|
|
5045
|
+
},
|
|
5046
|
+
/**
|
|
5047
|
+
* Fullscript — supplement prescribing platform integration.
|
|
5048
|
+
*
|
|
5049
|
+
* Requires a Fullscript connector instance and OAuth credential.
|
|
5050
|
+
* Use `connectors.oauth.connect("fullscript", workspaceId)` to authorize.
|
|
5051
|
+
*/
|
|
5052
|
+
fullscript: {
|
|
5053
|
+
/**
|
|
5054
|
+
* Check if a patient exists in Fullscript by email address.
|
|
5055
|
+
* Returns the patient if found, or null if not found.
|
|
5056
|
+
*/
|
|
5057
|
+
checkPatient: async (connectorId, workspaceId, email, options) => rb.execute(
|
|
5058
|
+
postConnectorsFullscriptCheckPatient,
|
|
5059
|
+
{
|
|
5060
|
+
body: {
|
|
5061
|
+
data: {
|
|
5062
|
+
type: "connector_instance",
|
|
5063
|
+
attributes: {
|
|
5064
|
+
connector_id: connectorId,
|
|
5065
|
+
workspace_id: workspaceId,
|
|
5066
|
+
email
|
|
5067
|
+
}
|
|
5068
|
+
}
|
|
5069
|
+
}
|
|
5070
|
+
},
|
|
5071
|
+
options
|
|
5072
|
+
),
|
|
5073
|
+
/**
|
|
5074
|
+
* Create a patient record in Fullscript.
|
|
5075
|
+
*/
|
|
5076
|
+
createPatient: async (connectorId, workspaceId, attrs, options) => rb.execute(
|
|
5077
|
+
postConnectorsFullscriptCreatePatient,
|
|
5078
|
+
{
|
|
5079
|
+
body: {
|
|
5080
|
+
data: {
|
|
5081
|
+
type: "connector_instance",
|
|
5082
|
+
attributes: {
|
|
5083
|
+
connector_id: connectorId,
|
|
5084
|
+
workspace_id: workspaceId,
|
|
5085
|
+
...attrs
|
|
5086
|
+
}
|
|
5087
|
+
}
|
|
5088
|
+
}
|
|
5089
|
+
},
|
|
5090
|
+
options
|
|
5091
|
+
),
|
|
5092
|
+
/**
|
|
5093
|
+
* Get an embed session grant token for the Fullscript prescribing widget.
|
|
5094
|
+
* Token is short-lived (5-15 minutes). Cached server-side for 2 minutes.
|
|
5095
|
+
*/
|
|
5096
|
+
sessionGrant: async (connectorId, workspaceId, patientId, options) => rb.execute(
|
|
5097
|
+
postConnectorsFullscriptSessionGrant,
|
|
5098
|
+
{
|
|
5099
|
+
body: {
|
|
5100
|
+
data: {
|
|
5101
|
+
type: "connector_instance",
|
|
5102
|
+
attributes: {
|
|
5103
|
+
connector_id: connectorId,
|
|
5104
|
+
workspace_id: workspaceId,
|
|
5105
|
+
patient_id: patientId
|
|
5106
|
+
}
|
|
5107
|
+
}
|
|
5108
|
+
}
|
|
5109
|
+
},
|
|
5110
|
+
options
|
|
5111
|
+
),
|
|
5112
|
+
oauth: {
|
|
5113
|
+
/** Get the Fullscript OAuth authorization URL */
|
|
5114
|
+
connect: async (workspaceId, options) => rb.execute(
|
|
5115
|
+
postConnectorsOauthInitiate,
|
|
5116
|
+
{
|
|
5117
|
+
body: {
|
|
5118
|
+
data: {
|
|
5119
|
+
type: "connector_instance",
|
|
5120
|
+
attributes: {
|
|
5121
|
+
connector_type: "fullscript",
|
|
5122
|
+
workspace_id: workspaceId
|
|
5123
|
+
}
|
|
5124
|
+
}
|
|
5125
|
+
}
|
|
5126
|
+
},
|
|
5127
|
+
options
|
|
5128
|
+
),
|
|
5129
|
+
/** Exchange OAuth authorization code for Fullscript credential */
|
|
5130
|
+
callback: async (code, state, workspaceId, options) => rb.execute(
|
|
5131
|
+
postConnectorsOauthCallback,
|
|
5132
|
+
{
|
|
5133
|
+
body: {
|
|
5134
|
+
data: {
|
|
5135
|
+
type: "connector_instance",
|
|
5136
|
+
attributes: {
|
|
5137
|
+
connector_type: "fullscript",
|
|
5138
|
+
code,
|
|
5139
|
+
state,
|
|
5140
|
+
workspace_id: workspaceId
|
|
5141
|
+
}
|
|
5142
|
+
}
|
|
5143
|
+
}
|
|
5144
|
+
},
|
|
5145
|
+
options
|
|
5146
|
+
)
|
|
5147
|
+
}
|
|
5148
|
+
}
|
|
5149
|
+
};
|
|
5150
|
+
}
|
|
5151
|
+
|
|
5152
|
+
// src/namespaces/crawler.ts
|
|
5153
|
+
function createCrawlerNamespace(rb) {
|
|
5154
|
+
return {
|
|
5155
|
+
/**
|
|
5156
|
+
* Jobs — crawl job management
|
|
5157
|
+
*/
|
|
5158
|
+
jobs: {
|
|
5159
|
+
/** List crawl jobs with pagination */
|
|
5160
|
+
list: async (options) => {
|
|
5161
|
+
return rb.execute(
|
|
5162
|
+
getCrawlerJobs,
|
|
5163
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5164
|
+
options
|
|
5165
|
+
);
|
|
5166
|
+
},
|
|
5167
|
+
/** Get a crawl job by ID */
|
|
5168
|
+
get: async (id, options) => {
|
|
5169
|
+
return rb.execute(
|
|
5170
|
+
getCrawlerJobsById,
|
|
5171
|
+
{ path: { id } },
|
|
5172
|
+
options
|
|
5173
|
+
);
|
|
5174
|
+
},
|
|
5175
|
+
/** Start a new crawl job */
|
|
5176
|
+
create: async (attributes, options) => {
|
|
5177
|
+
return rb.execute(
|
|
5178
|
+
postCrawlerJobs,
|
|
5179
|
+
{
|
|
5180
|
+
body: { data: { type: "crawler_crawl_job", attributes } }
|
|
5181
|
+
},
|
|
5182
|
+
options
|
|
5183
|
+
);
|
|
5184
|
+
},
|
|
5185
|
+
/** Cancel a crawl job */
|
|
5186
|
+
cancel: async (id, options) => {
|
|
5187
|
+
return rb.execute(
|
|
5188
|
+
patchCrawlerJobsByIdCancel,
|
|
5189
|
+
{ path: { id }, body: {} },
|
|
5190
|
+
options
|
|
5191
|
+
);
|
|
5192
|
+
},
|
|
5193
|
+
/** Delete a crawl job */
|
|
5194
|
+
delete: async (id, options) => {
|
|
5195
|
+
return rb.executeDelete(
|
|
5196
|
+
deleteCrawlerJobsById,
|
|
5197
|
+
{ path: { id } },
|
|
5198
|
+
options
|
|
5199
|
+
);
|
|
5200
|
+
}
|
|
5201
|
+
},
|
|
5202
|
+
/**
|
|
5203
|
+
* Schedules — recurring crawl configurations
|
|
5204
|
+
*/
|
|
5205
|
+
schedules: {
|
|
5206
|
+
/** List crawl schedules */
|
|
5207
|
+
list: async (options) => {
|
|
5208
|
+
return rb.execute(getCrawlerSchedules, {}, options);
|
|
5209
|
+
},
|
|
5210
|
+
/** Get a schedule by ID */
|
|
5211
|
+
get: async (id, options) => {
|
|
5212
|
+
return rb.execute(
|
|
5213
|
+
getCrawlerSchedulesById,
|
|
5214
|
+
{ path: { id } },
|
|
5215
|
+
options
|
|
5216
|
+
);
|
|
5217
|
+
},
|
|
5218
|
+
/** Create a new crawl schedule */
|
|
5219
|
+
create: async (attributes, options) => {
|
|
5220
|
+
return rb.execute(
|
|
5221
|
+
postCrawlerSchedules,
|
|
5222
|
+
{
|
|
5223
|
+
body: { data: { type: "crawler_crawl_schedule", attributes } }
|
|
5224
|
+
},
|
|
5225
|
+
options
|
|
5226
|
+
);
|
|
5227
|
+
},
|
|
5228
|
+
/** Update a schedule */
|
|
5229
|
+
update: async (id, attributes, options) => {
|
|
5230
|
+
return rb.execute(
|
|
5231
|
+
patchCrawlerSchedulesById,
|
|
5232
|
+
{
|
|
5233
|
+
path: { id },
|
|
5234
|
+
body: { data: { id, type: "crawler_crawl_schedule", attributes } }
|
|
5235
|
+
},
|
|
5236
|
+
options
|
|
5237
|
+
);
|
|
5238
|
+
},
|
|
5239
|
+
/** Delete a schedule */
|
|
5240
|
+
delete: async (id, options) => {
|
|
5241
|
+
return rb.executeDelete(
|
|
5242
|
+
deleteCrawlerSchedulesById,
|
|
5243
|
+
{ path: { id } },
|
|
5244
|
+
options
|
|
5245
|
+
);
|
|
5246
|
+
}
|
|
5247
|
+
},
|
|
5248
|
+
/**
|
|
5249
|
+
* Results — crawl results and extracted content
|
|
5250
|
+
*/
|
|
5251
|
+
results: {
|
|
5252
|
+
/** List crawl results */
|
|
5253
|
+
list: async (options) => {
|
|
5254
|
+
return rb.execute(
|
|
5255
|
+
getCrawlerResults,
|
|
5256
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5257
|
+
options
|
|
5258
|
+
);
|
|
5259
|
+
},
|
|
5260
|
+
/** Get a crawl result by ID */
|
|
5261
|
+
get: async (id, options) => {
|
|
5262
|
+
return rb.execute(
|
|
5263
|
+
getCrawlerResultsById,
|
|
5264
|
+
{ path: { id } },
|
|
5265
|
+
options
|
|
5266
|
+
);
|
|
5267
|
+
}
|
|
5268
|
+
}
|
|
5269
|
+
};
|
|
5270
|
+
}
|
|
5271
|
+
|
|
5272
|
+
// src/namespaces/crm.ts
|
|
5273
|
+
function createCrmNamespace(rb) {
|
|
5274
|
+
return {
|
|
5275
|
+
/**
|
|
5276
|
+
* Contacts — people and leads
|
|
5277
|
+
*/
|
|
5278
|
+
contacts: {
|
|
5279
|
+
/** Get a contact by ID */
|
|
5280
|
+
get: async (id, options) => {
|
|
5281
|
+
return rb.execute(
|
|
5282
|
+
getCrmContactsById,
|
|
5283
|
+
{ path: { id } },
|
|
5284
|
+
options
|
|
5285
|
+
);
|
|
5286
|
+
},
|
|
5287
|
+
/** Create a new contact */
|
|
5288
|
+
create: async (attributes, options) => {
|
|
5289
|
+
return rb.execute(
|
|
5290
|
+
postCrmContacts,
|
|
5291
|
+
{
|
|
5292
|
+
body: { data: { type: "crm_contact", attributes } }
|
|
5293
|
+
},
|
|
5294
|
+
options
|
|
5295
|
+
);
|
|
5296
|
+
},
|
|
5297
|
+
/** Update a contact */
|
|
5298
|
+
update: async (id, attributes, options) => {
|
|
5299
|
+
return rb.execute(
|
|
5300
|
+
patchCrmContactsById,
|
|
5301
|
+
{
|
|
5302
|
+
path: { id },
|
|
5303
|
+
body: { data: { id, type: "crm_contact", attributes } }
|
|
5304
|
+
},
|
|
5305
|
+
options
|
|
5306
|
+
);
|
|
5307
|
+
},
|
|
5308
|
+
/** Delete a contact (soft delete) */
|
|
5309
|
+
delete: async (id, options) => {
|
|
5310
|
+
return rb.executeDelete(
|
|
5311
|
+
deleteCrmContactsById,
|
|
5312
|
+
{ path: { id } },
|
|
5313
|
+
options
|
|
5314
|
+
);
|
|
5315
|
+
},
|
|
5316
|
+
/** List contacts by workspace */
|
|
5317
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5318
|
+
return rb.execute(
|
|
5319
|
+
getCrmContactsWorkspaceByWorkspaceId,
|
|
5320
|
+
{
|
|
5321
|
+
path: { workspace_id: workspaceId },
|
|
5322
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
5323
|
+
},
|
|
5324
|
+
options
|
|
5325
|
+
);
|
|
5326
|
+
}
|
|
5327
|
+
},
|
|
5328
|
+
/**
|
|
5329
|
+
* Companies — organizations
|
|
5330
|
+
*/
|
|
5331
|
+
companies: {
|
|
5332
|
+
/** Get a company by ID */
|
|
5333
|
+
get: async (id, options) => {
|
|
5334
|
+
return rb.execute(
|
|
5335
|
+
getCrmCompaniesById,
|
|
5336
|
+
{ path: { id } },
|
|
5337
|
+
options
|
|
5338
|
+
);
|
|
5339
|
+
},
|
|
5340
|
+
/** Create a new company */
|
|
5341
|
+
create: async (attributes, options) => {
|
|
5342
|
+
return rb.execute(
|
|
5343
|
+
postCrmCompanies,
|
|
5344
|
+
{
|
|
5345
|
+
body: { data: { type: "crm_company", attributes } }
|
|
5346
|
+
},
|
|
5347
|
+
options
|
|
5348
|
+
);
|
|
5349
|
+
},
|
|
5350
|
+
/** Update a company */
|
|
5351
|
+
update: async (id, attributes, options) => {
|
|
5352
|
+
return rb.execute(
|
|
5353
|
+
patchCrmCompaniesById,
|
|
5354
|
+
{
|
|
5355
|
+
path: { id },
|
|
5356
|
+
body: { data: { id, type: "crm_company", attributes } }
|
|
5357
|
+
},
|
|
5358
|
+
options
|
|
5359
|
+
);
|
|
5360
|
+
},
|
|
5361
|
+
/** Delete a company (soft delete) */
|
|
5362
|
+
delete: async (id, options) => {
|
|
5363
|
+
return rb.executeDelete(
|
|
5364
|
+
deleteCrmCompaniesById,
|
|
5365
|
+
{ path: { id } },
|
|
5366
|
+
options
|
|
5367
|
+
);
|
|
5368
|
+
},
|
|
5369
|
+
/** List companies by workspace */
|
|
5370
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5371
|
+
return rb.execute(
|
|
5372
|
+
getCrmCompaniesWorkspaceByWorkspaceId,
|
|
5373
|
+
{
|
|
5374
|
+
path: { workspace_id: workspaceId },
|
|
5375
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
5376
|
+
},
|
|
5377
|
+
options
|
|
5378
|
+
);
|
|
5379
|
+
}
|
|
5380
|
+
},
|
|
5381
|
+
/**
|
|
5382
|
+
* Deals — opportunities and pipeline stages
|
|
5383
|
+
*/
|
|
5384
|
+
deals: {
|
|
5385
|
+
/** Get a deal by ID */
|
|
5386
|
+
get: async (id, options) => {
|
|
5387
|
+
return rb.execute(getCrmDealsById, { path: { id } }, options);
|
|
5388
|
+
},
|
|
5389
|
+
/** Create a new deal */
|
|
5390
|
+
create: async (attributes, options) => {
|
|
5391
|
+
return rb.execute(
|
|
5392
|
+
postCrmDeals,
|
|
5393
|
+
{
|
|
5394
|
+
body: { data: { type: "crm_deal", attributes } }
|
|
5395
|
+
},
|
|
5396
|
+
options
|
|
5397
|
+
);
|
|
5398
|
+
},
|
|
5399
|
+
/** Update a deal */
|
|
5400
|
+
update: async (id, attributes, options) => {
|
|
5401
|
+
return rb.execute(
|
|
5402
|
+
patchCrmDealsById,
|
|
5403
|
+
{
|
|
5404
|
+
path: { id },
|
|
5405
|
+
body: { data: { id, type: "crm_deal", attributes } }
|
|
5406
|
+
},
|
|
5407
|
+
options
|
|
5408
|
+
);
|
|
5409
|
+
},
|
|
5410
|
+
/** Delete a deal (soft delete) */
|
|
5411
|
+
delete: async (id, options) => {
|
|
5412
|
+
return rb.executeDelete(deleteCrmDealsById, { path: { id } }, options);
|
|
5413
|
+
},
|
|
5414
|
+
/** List deals by workspace */
|
|
5415
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5416
|
+
return rb.execute(
|
|
5417
|
+
getCrmDealsWorkspaceByWorkspaceId,
|
|
5418
|
+
{
|
|
5419
|
+
path: { workspace_id: workspaceId },
|
|
5420
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
5421
|
+
},
|
|
5422
|
+
options
|
|
5423
|
+
);
|
|
5424
|
+
}
|
|
5425
|
+
},
|
|
5426
|
+
/**
|
|
5427
|
+
* Activities — interactions and notes
|
|
5428
|
+
*/
|
|
5429
|
+
activities: {
|
|
5430
|
+
/** Get an activity by ID */
|
|
5431
|
+
get: async (id, options) => {
|
|
5432
|
+
return rb.execute(
|
|
5433
|
+
getCrmActivitiesById,
|
|
5434
|
+
{ path: { id } },
|
|
5435
|
+
options
|
|
5436
|
+
);
|
|
5437
|
+
},
|
|
5438
|
+
/** Create a new activity */
|
|
5439
|
+
create: async (attributes, options) => {
|
|
5440
|
+
return rb.execute(
|
|
5441
|
+
postCrmActivities,
|
|
5442
|
+
{
|
|
5443
|
+
body: { data: { type: "crm_activity", attributes } }
|
|
5444
|
+
},
|
|
5445
|
+
options
|
|
5446
|
+
);
|
|
5447
|
+
},
|
|
5448
|
+
/** Delete an activity (soft delete) */
|
|
5449
|
+
delete: async (id, options) => {
|
|
5450
|
+
return rb.executeDelete(
|
|
5451
|
+
deleteCrmActivitiesById,
|
|
5452
|
+
{ path: { id } },
|
|
5453
|
+
options
|
|
5454
|
+
);
|
|
5455
|
+
},
|
|
5456
|
+
/** List activities by workspace */
|
|
5457
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5458
|
+
return rb.execute(
|
|
5459
|
+
getCrmActivitiesWorkspaceByWorkspaceId,
|
|
5460
|
+
{
|
|
5461
|
+
path: { workspace_id: workspaceId },
|
|
5462
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
5463
|
+
},
|
|
5464
|
+
options
|
|
5465
|
+
);
|
|
5466
|
+
}
|
|
5467
|
+
},
|
|
5468
|
+
/**
|
|
5469
|
+
* Pipelines — deal workflow stages
|
|
5470
|
+
*/
|
|
5471
|
+
pipelines: {
|
|
5472
|
+
/** Get a pipeline by ID */
|
|
5473
|
+
get: async (id, options) => {
|
|
5474
|
+
return rb.execute(
|
|
5475
|
+
getCrmPipelinesById,
|
|
5476
|
+
{ path: { id } },
|
|
5477
|
+
options
|
|
5478
|
+
);
|
|
5479
|
+
},
|
|
5480
|
+
/** Create a new pipeline */
|
|
5481
|
+
create: async (attributes, options) => {
|
|
5482
|
+
return rb.execute(
|
|
5483
|
+
postCrmPipelines,
|
|
5484
|
+
{
|
|
5485
|
+
body: { data: { type: "crm_pipeline", attributes } }
|
|
5486
|
+
},
|
|
5487
|
+
options
|
|
5488
|
+
);
|
|
5489
|
+
},
|
|
5490
|
+
/** Update a pipeline */
|
|
5491
|
+
update: async (id, attributes, options) => {
|
|
5492
|
+
return rb.execute(
|
|
5493
|
+
patchCrmPipelinesById,
|
|
5494
|
+
{
|
|
5495
|
+
path: { id },
|
|
5496
|
+
body: { data: { id, type: "crm_pipeline", attributes } }
|
|
5497
|
+
},
|
|
5498
|
+
options
|
|
5499
|
+
);
|
|
5500
|
+
},
|
|
5501
|
+
/** Delete a pipeline */
|
|
5502
|
+
delete: async (id, options) => {
|
|
5503
|
+
return rb.executeDelete(
|
|
5504
|
+
deleteCrmPipelinesById,
|
|
5505
|
+
{ path: { id } },
|
|
5506
|
+
options
|
|
5507
|
+
);
|
|
5508
|
+
},
|
|
5509
|
+
/** List pipelines by workspace */
|
|
5510
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5511
|
+
return rb.execute(
|
|
5512
|
+
getCrmPipelinesWorkspaceByWorkspaceId,
|
|
5513
|
+
{
|
|
5514
|
+
path: { workspace_id: workspaceId }
|
|
5515
|
+
},
|
|
5516
|
+
options
|
|
5517
|
+
);
|
|
5518
|
+
}
|
|
5519
|
+
},
|
|
5520
|
+
/**
|
|
5521
|
+
* Pipeline Stages — stages within a pipeline
|
|
5522
|
+
*/
|
|
5523
|
+
pipelineStages: {
|
|
5524
|
+
/** Get a pipeline stage by ID */
|
|
5525
|
+
get: async (id, options) => {
|
|
5526
|
+
return rb.execute(
|
|
5527
|
+
getCrmPipelineStagesById,
|
|
5528
|
+
{ path: { id } },
|
|
5529
|
+
options
|
|
5530
|
+
);
|
|
5531
|
+
},
|
|
5532
|
+
/** Create a new pipeline stage */
|
|
5533
|
+
create: async (attributes, options) => {
|
|
5534
|
+
return rb.execute(
|
|
5535
|
+
postCrmPipelineStages,
|
|
5536
|
+
{
|
|
5537
|
+
body: { data: { type: "crm_pipeline_stage", attributes } }
|
|
5538
|
+
},
|
|
5539
|
+
options
|
|
5540
|
+
);
|
|
5541
|
+
},
|
|
5542
|
+
/** Update a pipeline stage */
|
|
5543
|
+
update: async (id, attributes, options) => {
|
|
5544
|
+
return rb.execute(
|
|
5545
|
+
patchCrmPipelineStagesById,
|
|
5546
|
+
{
|
|
5547
|
+
path: { id },
|
|
5548
|
+
body: { data: { id, type: "crm_pipeline_stage", attributes } }
|
|
5549
|
+
},
|
|
5550
|
+
options
|
|
5551
|
+
);
|
|
5552
|
+
},
|
|
5553
|
+
/** Delete a pipeline stage */
|
|
5554
|
+
delete: async (id, options) => {
|
|
5555
|
+
return rb.executeDelete(
|
|
5556
|
+
deleteCrmPipelineStagesById,
|
|
5557
|
+
{ path: { id } },
|
|
5558
|
+
options
|
|
5559
|
+
);
|
|
5560
|
+
}
|
|
5561
|
+
},
|
|
5562
|
+
/**
|
|
5563
|
+
* Relationship Types — custom relationship templates
|
|
5564
|
+
*/
|
|
5565
|
+
relationshipTypes: {
|
|
5566
|
+
/** Get a relationship type by ID */
|
|
5567
|
+
get: async (id, options) => {
|
|
5568
|
+
return rb.execute(
|
|
5569
|
+
getCrmRelationshipTypesById,
|
|
5570
|
+
{ path: { id } },
|
|
5571
|
+
options
|
|
5572
|
+
);
|
|
5573
|
+
},
|
|
5574
|
+
/** Create a new relationship type */
|
|
5575
|
+
create: async (attributes, options) => {
|
|
5576
|
+
return rb.execute(
|
|
5577
|
+
postCrmRelationshipTypes,
|
|
5578
|
+
{
|
|
5579
|
+
body: { data: { type: "crm_relationship_type", attributes } }
|
|
5580
|
+
},
|
|
5581
|
+
options
|
|
5582
|
+
);
|
|
5583
|
+
},
|
|
5584
|
+
/** Update a relationship type */
|
|
5585
|
+
update: async (id, attributes, options) => {
|
|
5586
|
+
return rb.execute(
|
|
5587
|
+
patchCrmRelationshipTypesById,
|
|
5588
|
+
{
|
|
5589
|
+
path: { id },
|
|
5590
|
+
body: { data: { id, type: "crm_relationship_type", attributes } }
|
|
5591
|
+
},
|
|
5592
|
+
options
|
|
5593
|
+
);
|
|
5594
|
+
},
|
|
5595
|
+
/** Delete a relationship type */
|
|
5596
|
+
delete: async (id, options) => {
|
|
5597
|
+
return rb.executeDelete(
|
|
5598
|
+
deleteCrmRelationshipTypesById,
|
|
5599
|
+
{ path: { id } },
|
|
5600
|
+
options
|
|
5601
|
+
);
|
|
5602
|
+
},
|
|
5603
|
+
/** List all relationship types */
|
|
5604
|
+
list: async (options) => {
|
|
5605
|
+
return rb.execute(
|
|
5606
|
+
getCrmRelationshipTypes,
|
|
5607
|
+
{},
|
|
5608
|
+
options
|
|
5609
|
+
);
|
|
5610
|
+
}
|
|
5611
|
+
},
|
|
5612
|
+
/**
|
|
5613
|
+
* Relationships — connections between entities
|
|
5614
|
+
*/
|
|
5615
|
+
relationships: {
|
|
5616
|
+
/** Get a relationship by ID */
|
|
5617
|
+
get: async (id, options) => {
|
|
5618
|
+
return rb.execute(
|
|
5619
|
+
getCrmRelationshipsById,
|
|
5620
|
+
{ path: { id } },
|
|
5621
|
+
options
|
|
5622
|
+
);
|
|
5623
|
+
},
|
|
5624
|
+
/** Create a new relationship */
|
|
5625
|
+
create: async (attributes, options) => {
|
|
5626
|
+
return rb.execute(
|
|
5627
|
+
postCrmRelationships,
|
|
5628
|
+
{
|
|
5629
|
+
body: { data: { type: "crm_relationship", attributes } }
|
|
5630
|
+
},
|
|
5631
|
+
options
|
|
5632
|
+
);
|
|
5633
|
+
},
|
|
5634
|
+
/** Delete a relationship */
|
|
5635
|
+
delete: async (id, options) => {
|
|
5636
|
+
return rb.executeDelete(
|
|
5637
|
+
deleteCrmRelationshipsById,
|
|
5638
|
+
{ path: { id } },
|
|
5639
|
+
options
|
|
5640
|
+
);
|
|
5641
|
+
},
|
|
5642
|
+
/** List relationships by workspace */
|
|
5643
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5644
|
+
return rb.execute(
|
|
5645
|
+
getCrmRelationshipsWorkspaceByWorkspaceId,
|
|
5646
|
+
{
|
|
5647
|
+
path: { workspace_id: workspaceId }
|
|
5648
|
+
},
|
|
5649
|
+
options
|
|
5650
|
+
);
|
|
5651
|
+
}
|
|
5652
|
+
},
|
|
5653
|
+
/**
|
|
5654
|
+
* Custom Entities — ISV-defined entity types
|
|
5655
|
+
*/
|
|
5656
|
+
customEntities: {
|
|
5657
|
+
/** Get a custom entity by ID */
|
|
5658
|
+
get: async (id, options) => {
|
|
5659
|
+
return rb.execute(
|
|
5660
|
+
getCrmCustomEntitiesById,
|
|
5661
|
+
{ path: { id } },
|
|
5662
|
+
options
|
|
5663
|
+
);
|
|
5664
|
+
},
|
|
5665
|
+
/** Create a new custom entity */
|
|
5666
|
+
create: async (attributes, options) => {
|
|
5667
|
+
return rb.execute(
|
|
5668
|
+
postCrmCustomEntities,
|
|
5669
|
+
{
|
|
5670
|
+
body: { data: { type: "crm_custom_entity", attributes } }
|
|
5671
|
+
},
|
|
5672
|
+
options
|
|
5673
|
+
);
|
|
5674
|
+
},
|
|
5675
|
+
/** Update a custom entity */
|
|
5676
|
+
update: async (id, attributes, options) => {
|
|
5677
|
+
return rb.execute(
|
|
5678
|
+
patchCrmCustomEntitiesById,
|
|
5679
|
+
{
|
|
5680
|
+
path: { id },
|
|
5681
|
+
body: { data: { id, type: "crm_custom_entity", attributes } }
|
|
5682
|
+
},
|
|
5683
|
+
options
|
|
5684
|
+
);
|
|
5685
|
+
},
|
|
5686
|
+
/** Delete a custom entity (soft delete) */
|
|
5687
|
+
delete: async (id, options) => {
|
|
5688
|
+
return rb.executeDelete(
|
|
5689
|
+
deleteCrmCustomEntitiesById,
|
|
5690
|
+
{ path: { id } },
|
|
5691
|
+
options
|
|
5692
|
+
);
|
|
5693
|
+
},
|
|
5694
|
+
/** List custom entities by workspace with optional type and attribute filters */
|
|
5695
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5696
|
+
const pageQuery = buildPageQuery(options?.page, options?.pageSize);
|
|
5697
|
+
return rb.execute(
|
|
5698
|
+
getCrmCustomEntitiesWorkspaceByWorkspaceId,
|
|
5699
|
+
{
|
|
5700
|
+
path: { workspace_id: workspaceId },
|
|
5701
|
+
query: {
|
|
5702
|
+
...options?.type ? { "filter[type]": options.type } : {},
|
|
5703
|
+
...options?.filters ? {
|
|
5704
|
+
"filter[filters]": JSON.stringify(options.filters)
|
|
5705
|
+
} : {},
|
|
5706
|
+
...pageQuery?.query
|
|
5707
|
+
}
|
|
5708
|
+
},
|
|
5709
|
+
options
|
|
5710
|
+
);
|
|
5711
|
+
},
|
|
5712
|
+
/** Batch update multiple custom entities in a single transaction */
|
|
5713
|
+
batchUpdate: async (workspaceId, updates, options) => {
|
|
5714
|
+
return rb.rawPost(
|
|
5715
|
+
"/crm/custom-entities/batch",
|
|
5716
|
+
{ workspace_id: workspaceId, updates },
|
|
5717
|
+
options
|
|
5718
|
+
);
|
|
5719
|
+
},
|
|
5720
|
+
/** Run aggregate queries (count/avg/sum) on custom entity properties */
|
|
5721
|
+
aggregate: async (workspaceId, params, options) => {
|
|
5722
|
+
return rb.rawPost(
|
|
5723
|
+
"/crm/custom-entities/aggregate",
|
|
5724
|
+
{ workspace_id: workspaceId, ...params },
|
|
5725
|
+
options
|
|
5726
|
+
);
|
|
5727
|
+
},
|
|
5728
|
+
/** Version history for this custom entity */
|
|
5729
|
+
versions: {
|
|
5730
|
+
/** List all versions of a custom entity (ordered by version_number desc) */
|
|
5731
|
+
list: async (entityId, options) => {
|
|
5732
|
+
const pageQuery = buildPageQuery(options?.page, options?.pageSize);
|
|
5733
|
+
const qs = pageQuery?.query && Object.keys(pageQuery.query).length > 0 ? "?" + new URLSearchParams(
|
|
5734
|
+
Object.entries(pageQuery.query).map(([k, v]) => [
|
|
5735
|
+
k,
|
|
5736
|
+
String(v)
|
|
5737
|
+
])
|
|
5738
|
+
).toString() : "";
|
|
5739
|
+
return rb.rawGet(
|
|
5740
|
+
`/crm/custom-entities/${entityId}/versions${qs}`,
|
|
5741
|
+
options
|
|
5742
|
+
);
|
|
5743
|
+
},
|
|
5744
|
+
/** Get a single version snapshot by ID */
|
|
5745
|
+
get: async (entityId, versionId, options) => rb.rawGet(
|
|
5746
|
+
`/crm/custom-entities/${entityId}/versions/${versionId}`,
|
|
5747
|
+
options
|
|
5748
|
+
),
|
|
5749
|
+
/** Restore a custom entity to a prior version */
|
|
5750
|
+
restore: async (entityId, versionId, options) => {
|
|
5751
|
+
return rb.rawPost(
|
|
5752
|
+
`/crm/custom-entities/${entityId}/versions/${versionId}/restore`,
|
|
5753
|
+
{},
|
|
5754
|
+
options
|
|
5755
|
+
);
|
|
5756
|
+
}
|
|
5757
|
+
}
|
|
5758
|
+
},
|
|
5759
|
+
/** CRM data export — create async export jobs and poll for completion. */
|
|
5760
|
+
export: {
|
|
5761
|
+
/**
|
|
5762
|
+
* Create a data export job. Returns immediately with a pending job.
|
|
5763
|
+
* Poll `get()` until `status === 'complete'`, then download from `file_url`.
|
|
5764
|
+
*/
|
|
5765
|
+
create: async (workspaceId, params, options) => {
|
|
5766
|
+
return rb.execute(
|
|
5767
|
+
postCrmExports,
|
|
5768
|
+
{
|
|
5769
|
+
body: {
|
|
5770
|
+
data: {
|
|
5771
|
+
type: "crm_data_export_job",
|
|
5772
|
+
attributes: {
|
|
5773
|
+
workspace_id: workspaceId,
|
|
5774
|
+
entity_type: params.entityType,
|
|
5775
|
+
entity_subtype: params.entitySubtype,
|
|
5776
|
+
format: params.format,
|
|
5777
|
+
include: params.include ?? [],
|
|
5778
|
+
filters: params.filters ?? []
|
|
5779
|
+
}
|
|
5780
|
+
}
|
|
5781
|
+
}
|
|
5782
|
+
},
|
|
5783
|
+
options
|
|
5784
|
+
);
|
|
5785
|
+
},
|
|
5786
|
+
/**
|
|
5787
|
+
* Get an export job by ID. When `status === 'complete'`, `file_url` is
|
|
5788
|
+
* populated and valid for 1 hour.
|
|
5789
|
+
*/
|
|
5790
|
+
get: async (jobId, options) => {
|
|
5791
|
+
return rb.execute(
|
|
5792
|
+
getCrmExportsById,
|
|
5793
|
+
{ path: { id: jobId } },
|
|
5794
|
+
options
|
|
5795
|
+
);
|
|
5796
|
+
},
|
|
5797
|
+
/** List all export jobs for a workspace, most recent first. */
|
|
5798
|
+
list: async (workspaceId, options) => {
|
|
5799
|
+
return rb.execute(
|
|
5800
|
+
getCrmExportsWorkspaceByWorkspaceId,
|
|
5801
|
+
{ path: { workspace_id: workspaceId } },
|
|
5802
|
+
options
|
|
5803
|
+
);
|
|
5804
|
+
}
|
|
5805
|
+
}
|
|
5806
|
+
};
|
|
5807
|
+
}
|
|
5808
|
+
|
|
5809
|
+
// src/namespaces/emailMarketing.ts
|
|
5810
|
+
function createEmailMarketingNamespace(rb) {
|
|
5811
|
+
return {
|
|
5812
|
+
/**
|
|
5813
|
+
* Campaigns — email campaign orchestration
|
|
5814
|
+
*/
|
|
5815
|
+
campaigns: {
|
|
5816
|
+
/** Get a campaign by ID */
|
|
5817
|
+
get: async (id, options) => {
|
|
5818
|
+
return rb.execute(
|
|
5819
|
+
getEmailMarketingCampaignsById,
|
|
5820
|
+
{ path: { id } },
|
|
5821
|
+
options
|
|
5822
|
+
);
|
|
5823
|
+
},
|
|
5824
|
+
/** Create a new campaign */
|
|
5825
|
+
create: async (attributes, options) => {
|
|
5826
|
+
return rb.execute(
|
|
5827
|
+
postEmailMarketingCampaigns,
|
|
5828
|
+
{
|
|
5829
|
+
body: { data: { type: "email_marketing_campaign", attributes } }
|
|
5830
|
+
},
|
|
5831
|
+
options
|
|
5832
|
+
);
|
|
5833
|
+
},
|
|
5834
|
+
/** Update a campaign */
|
|
5835
|
+
update: async (id, attributes, options) => {
|
|
5836
|
+
return rb.execute(
|
|
5837
|
+
patchEmailMarketingCampaignsById,
|
|
5838
|
+
{
|
|
5839
|
+
path: { id },
|
|
5840
|
+
body: {
|
|
5841
|
+
data: { id, type: "email_marketing_campaign", attributes }
|
|
5842
|
+
}
|
|
5843
|
+
},
|
|
5844
|
+
options
|
|
5845
|
+
);
|
|
5846
|
+
},
|
|
5847
|
+
/** Delete a campaign */
|
|
5848
|
+
delete: async (id, options) => {
|
|
5849
|
+
return rb.executeDelete(
|
|
5850
|
+
deleteEmailMarketingCampaignsById,
|
|
5851
|
+
{ path: { id } },
|
|
5852
|
+
options
|
|
5853
|
+
);
|
|
5854
|
+
},
|
|
5855
|
+
/** List campaigns by workspace */
|
|
5856
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5857
|
+
return rb.execute(
|
|
5858
|
+
getEmailMarketingCampaignsWorkspaceByWorkspaceId,
|
|
5859
|
+
{
|
|
5860
|
+
path: { workspace_id: workspaceId },
|
|
5861
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
5862
|
+
},
|
|
5863
|
+
options
|
|
5864
|
+
);
|
|
5865
|
+
},
|
|
5866
|
+
/** Send the campaign */
|
|
5867
|
+
send: async (id, options) => {
|
|
5868
|
+
return rb.execute(
|
|
5869
|
+
postEmailMarketingCampaignsByIdSend,
|
|
5870
|
+
{ path: { id }, body: {} },
|
|
5871
|
+
options
|
|
5872
|
+
);
|
|
5873
|
+
},
|
|
5874
|
+
/** Analyze campaign performance with AI */
|
|
5875
|
+
analyze: async (id, options) => {
|
|
5876
|
+
return rb.execute(
|
|
5877
|
+
postEmailMarketingCampaignsByIdAnalyze,
|
|
5878
|
+
{ path: { id }, body: {} },
|
|
5879
|
+
options
|
|
5880
|
+
);
|
|
5881
|
+
},
|
|
5882
|
+
/** Optimize send times using AI */
|
|
5883
|
+
optimizeSendTimes: async (id, options) => {
|
|
5884
|
+
return rb.execute(
|
|
5885
|
+
postEmailMarketingCampaignsByIdOptimizeSendTimes,
|
|
5886
|
+
{ path: { id }, body: {} },
|
|
5887
|
+
options
|
|
5888
|
+
);
|
|
5889
|
+
},
|
|
5890
|
+
/** Create a follow-up campaign */
|
|
5891
|
+
createFollowup: async (id, attributes, options) => {
|
|
5892
|
+
return rb.execute(
|
|
5893
|
+
postEmailMarketingCampaignsByIdCreateFollowup,
|
|
5894
|
+
{
|
|
5895
|
+
path: { id },
|
|
5896
|
+
body: { data: { type: "email_marketing_campaign", attributes } }
|
|
5897
|
+
},
|
|
5898
|
+
options
|
|
5899
|
+
);
|
|
5900
|
+
}
|
|
5901
|
+
},
|
|
5902
|
+
/**
|
|
5903
|
+
* Templates — email template management
|
|
5904
|
+
*/
|
|
5905
|
+
templates: {
|
|
5906
|
+
/** List templates by workspace */
|
|
5907
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5908
|
+
return rb.execute(
|
|
5909
|
+
getEmailMarketingTemplatesWorkspaceByWorkspaceId,
|
|
5910
|
+
{
|
|
5911
|
+
path: { workspace_id: workspaceId },
|
|
5912
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
5913
|
+
},
|
|
5914
|
+
options
|
|
5915
|
+
);
|
|
5916
|
+
}
|
|
5917
|
+
},
|
|
5918
|
+
/**
|
|
5919
|
+
* Generated Emails — AI-personalized emails awaiting review
|
|
5920
|
+
*/
|
|
5921
|
+
generatedEmails: {
|
|
5922
|
+
/** Get a generated email by ID */
|
|
5923
|
+
get: async (id, options) => {
|
|
5924
|
+
return rb.execute(
|
|
5925
|
+
getEmailMarketingGeneratedEmailsById,
|
|
5926
|
+
{ path: { id } },
|
|
5927
|
+
options
|
|
5928
|
+
);
|
|
5929
|
+
},
|
|
5930
|
+
/** Update a generated email */
|
|
5931
|
+
update: async (id, attributes, options) => {
|
|
5932
|
+
return rb.execute(
|
|
5933
|
+
patchEmailMarketingGeneratedEmailsById,
|
|
5934
|
+
{
|
|
5935
|
+
path: { id },
|
|
5936
|
+
body: {
|
|
5937
|
+
data: { id, type: "email_marketing_generated_email", attributes }
|
|
5938
|
+
}
|
|
5939
|
+
},
|
|
5940
|
+
options
|
|
5941
|
+
);
|
|
5942
|
+
},
|
|
5943
|
+
/** Approve a generated email for sending */
|
|
5944
|
+
approve: async (id, options) => {
|
|
5945
|
+
return rb.execute(
|
|
5946
|
+
patchEmailMarketingGeneratedEmailsByIdApprove,
|
|
5947
|
+
{ path: { id }, body: {} },
|
|
5948
|
+
options
|
|
5949
|
+
);
|
|
5950
|
+
}
|
|
5951
|
+
},
|
|
5952
|
+
/**
|
|
5953
|
+
* Sender Profiles — sender identities with DNS validation
|
|
5954
|
+
*/
|
|
5955
|
+
senderProfiles: {
|
|
5956
|
+
/** Get a sender profile by ID */
|
|
5957
|
+
get: async (id, options) => {
|
|
5958
|
+
return rb.execute(
|
|
5959
|
+
getEmailMarketingSenderProfilesById,
|
|
5960
|
+
{ path: { id } },
|
|
5961
|
+
options
|
|
5962
|
+
);
|
|
5963
|
+
},
|
|
5964
|
+
/** Update a sender profile */
|
|
5965
|
+
update: async (id, attributes, options) => {
|
|
5966
|
+
return rb.execute(
|
|
5967
|
+
patchEmailMarketingSenderProfilesById,
|
|
5968
|
+
{
|
|
5969
|
+
path: { id },
|
|
5970
|
+
body: {
|
|
5971
|
+
data: { id, type: "email_marketing_sender_profile", attributes }
|
|
5972
|
+
}
|
|
5973
|
+
},
|
|
5974
|
+
options
|
|
5975
|
+
);
|
|
5976
|
+
},
|
|
5977
|
+
/** Validate DNS records for sender profile */
|
|
5978
|
+
validateDns: async (id, options) => {
|
|
3661
5979
|
return rb.execute(
|
|
3662
|
-
|
|
3663
|
-
{ path: { id } },
|
|
5980
|
+
patchEmailMarketingSenderProfilesByIdValidateDns,
|
|
5981
|
+
{ path: { id }, body: {} },
|
|
3664
5982
|
options
|
|
3665
5983
|
);
|
|
3666
|
-
}
|
|
3667
|
-
|
|
3668
|
-
paymentMethods: {
|
|
5984
|
+
},
|
|
5985
|
+
/** Delete a sender profile */
|
|
3669
5986
|
delete: async (id, options) => {
|
|
3670
5987
|
return rb.executeDelete(
|
|
3671
|
-
|
|
5988
|
+
deleteEmailMarketingSenderProfilesById,
|
|
3672
5989
|
{ path: { id } },
|
|
3673
5990
|
options
|
|
3674
5991
|
);
|
|
5992
|
+
}
|
|
5993
|
+
},
|
|
5994
|
+
/**
|
|
5995
|
+
* Sequences — drip campaign automation
|
|
5996
|
+
*/
|
|
5997
|
+
sequences: {
|
|
5998
|
+
/** Create a new sequence */
|
|
5999
|
+
create: async (attributes, options) => {
|
|
6000
|
+
return rb.execute(
|
|
6001
|
+
postEmailMarketingSequences,
|
|
6002
|
+
{
|
|
6003
|
+
body: { data: { type: "email_marketing_sequence", attributes } }
|
|
6004
|
+
},
|
|
6005
|
+
options
|
|
6006
|
+
);
|
|
3675
6007
|
},
|
|
3676
|
-
|
|
6008
|
+
/** List sequences by workspace */
|
|
6009
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
3677
6010
|
return rb.execute(
|
|
3678
|
-
|
|
3679
|
-
|
|
6011
|
+
getEmailMarketingSequencesWorkspaceByWorkspaceId,
|
|
6012
|
+
{
|
|
6013
|
+
path: { workspace_id: workspaceId },
|
|
6014
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
6015
|
+
},
|
|
3680
6016
|
options
|
|
3681
6017
|
);
|
|
3682
6018
|
},
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
6019
|
+
/** Resume a paused sequence */
|
|
6020
|
+
resume: async (id, options) => {
|
|
6021
|
+
return rb.execute(
|
|
6022
|
+
patchEmailMarketingSequencesByIdResume,
|
|
6023
|
+
{ path: { id }, body: {} },
|
|
6024
|
+
options
|
|
6025
|
+
);
|
|
6026
|
+
}
|
|
6027
|
+
}
|
|
6028
|
+
};
|
|
6029
|
+
}
|
|
6030
|
+
|
|
6031
|
+
// src/namespaces/support.ts
|
|
6032
|
+
function createSupportNamespace(rb) {
|
|
6033
|
+
return {
|
|
6034
|
+
/**
|
|
6035
|
+
* Tickets — customer support tickets
|
|
6036
|
+
*/
|
|
6037
|
+
tickets: {
|
|
6038
|
+
/** List tickets for a workspace */
|
|
6039
|
+
list: async (workspaceId, options) => {
|
|
6040
|
+
return rb.execute(
|
|
6041
|
+
getSupportTicketsWorkspaceByWorkspaceId,
|
|
6042
|
+
{
|
|
6043
|
+
path: { workspace_id: workspaceId },
|
|
6044
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
6045
|
+
},
|
|
6046
|
+
options
|
|
6047
|
+
);
|
|
6048
|
+
},
|
|
6049
|
+
/** Get a ticket by ID */
|
|
6050
|
+
get: async (id, options) => {
|
|
6051
|
+
return rb.execute(
|
|
6052
|
+
getSupportTicketsById,
|
|
6053
|
+
{ path: { id } },
|
|
6054
|
+
options
|
|
3692
6055
|
);
|
|
3693
6056
|
},
|
|
6057
|
+
/** Create a new ticket */
|
|
3694
6058
|
create: async (attributes, options) => {
|
|
3695
6059
|
return rb.execute(
|
|
3696
|
-
|
|
3697
|
-
{
|
|
6060
|
+
postSupportTickets,
|
|
6061
|
+
{
|
|
6062
|
+
body: {
|
|
6063
|
+
data: { type: "support_ticket", attributes }
|
|
6064
|
+
}
|
|
6065
|
+
},
|
|
3698
6066
|
options
|
|
3699
6067
|
);
|
|
3700
6068
|
},
|
|
6069
|
+
/** Update a ticket */
|
|
3701
6070
|
update: async (id, attributes, options) => {
|
|
3702
6071
|
return rb.execute(
|
|
3703
|
-
|
|
6072
|
+
patchSupportTicketsById,
|
|
3704
6073
|
{
|
|
3705
6074
|
path: { id },
|
|
3706
|
-
body: {
|
|
6075
|
+
body: {
|
|
6076
|
+
data: { type: "support_ticket", id, attributes }
|
|
6077
|
+
}
|
|
3707
6078
|
},
|
|
3708
6079
|
options
|
|
3709
6080
|
);
|
|
3710
6081
|
},
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
6082
|
+
/** Delete a ticket */
|
|
6083
|
+
delete: async (id, options) => {
|
|
6084
|
+
return rb.executeDelete(
|
|
6085
|
+
deleteSupportTicketsById,
|
|
3714
6086
|
{ path: { id } },
|
|
3715
6087
|
options
|
|
3716
6088
|
);
|
|
3717
|
-
}
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
}
|
|
3721
|
-
|
|
3722
|
-
// src/namespaces/communication.ts
|
|
3723
|
-
function createCommunicationNamespace(rb) {
|
|
3724
|
-
return {
|
|
3725
|
-
notifications: {
|
|
3726
|
-
/** List notification logs (alias for list) */
|
|
3727
|
-
logs: async (options) => {
|
|
6089
|
+
},
|
|
6090
|
+
/** Add a message to a ticket */
|
|
6091
|
+
addMessage: async (ticketId, attributes, options) => {
|
|
3728
6092
|
return rb.execute(
|
|
3729
|
-
|
|
3730
|
-
|
|
6093
|
+
postSupportTicketMessages,
|
|
6094
|
+
{
|
|
6095
|
+
body: {
|
|
6096
|
+
data: {
|
|
6097
|
+
type: "support_ticket_message",
|
|
6098
|
+
attributes: { ...attributes, ticket_id: ticketId }
|
|
6099
|
+
}
|
|
6100
|
+
}
|
|
6101
|
+
},
|
|
3731
6102
|
options
|
|
3732
6103
|
);
|
|
3733
6104
|
},
|
|
3734
|
-
|
|
6105
|
+
/** List messages for a ticket */
|
|
6106
|
+
listMessages: async (ticketId, options) => {
|
|
3735
6107
|
return rb.execute(
|
|
3736
|
-
|
|
3737
|
-
|
|
6108
|
+
getSupportTicketMessagesTicketByTicketId,
|
|
6109
|
+
{ path: { ticket_id: ticketId } },
|
|
3738
6110
|
options
|
|
3739
6111
|
);
|
|
3740
6112
|
},
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
6113
|
+
/** Rate a ticket (CSAT) */
|
|
6114
|
+
rate: async (attributes, options) => {
|
|
6115
|
+
return rb.execute(
|
|
6116
|
+
postSupportTicketRatings,
|
|
6117
|
+
{
|
|
6118
|
+
body: {
|
|
6119
|
+
data: { type: "support_ticket_rating", attributes }
|
|
6120
|
+
}
|
|
6121
|
+
},
|
|
6122
|
+
options
|
|
3750
6123
|
);
|
|
3751
|
-
}
|
|
3752
|
-
|
|
6124
|
+
}
|
|
6125
|
+
},
|
|
6126
|
+
/**
|
|
6127
|
+
* Tags — ticket labels for categorization
|
|
6128
|
+
*/
|
|
6129
|
+
tags: {
|
|
6130
|
+
/** List tags for a workspace */
|
|
6131
|
+
list: async (workspaceId, options) => {
|
|
3753
6132
|
return rb.execute(
|
|
3754
|
-
|
|
3755
|
-
{ path: {
|
|
6133
|
+
getSupportTagsWorkspaceByWorkspaceId,
|
|
6134
|
+
{ path: { workspace_id: workspaceId } },
|
|
3756
6135
|
options
|
|
3757
6136
|
);
|
|
3758
6137
|
},
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
buildPageQuery(options?.page, options?.pageSize),
|
|
3771
|
-
options
|
|
3772
|
-
);
|
|
3773
|
-
},
|
|
3774
|
-
listAll: async (options) => {
|
|
3775
|
-
return paginateToArray(
|
|
3776
|
-
rb.createPaginatedFetcher(
|
|
3777
|
-
getNotificationMethods,
|
|
3778
|
-
(page, pageSize) => ({
|
|
3779
|
-
query: { page: { number: page, size: pageSize } }
|
|
3780
|
-
}),
|
|
3781
|
-
options
|
|
3782
|
-
)
|
|
3783
|
-
);
|
|
3784
|
-
},
|
|
3785
|
-
create: async (attributes, options) => {
|
|
3786
|
-
return rb.execute(
|
|
3787
|
-
postNotificationMethods,
|
|
3788
|
-
{ body: { data: { type: "notification_method", attributes } } },
|
|
3789
|
-
options
|
|
3790
|
-
);
|
|
3791
|
-
},
|
|
3792
|
-
update: async (id, attributes, options) => {
|
|
3793
|
-
return rb.execute(
|
|
3794
|
-
patchNotificationMethodsById,
|
|
3795
|
-
{
|
|
3796
|
-
path: { id },
|
|
3797
|
-
body: { data: { id, type: "notification_method", attributes } }
|
|
3798
|
-
},
|
|
3799
|
-
options
|
|
3800
|
-
);
|
|
3801
|
-
},
|
|
3802
|
-
get: async (id, options) => {
|
|
3803
|
-
return rb.execute(
|
|
3804
|
-
getNotificationMethodsById,
|
|
3805
|
-
{ path: { id } },
|
|
3806
|
-
options
|
|
3807
|
-
);
|
|
3808
|
-
}
|
|
6138
|
+
/** Create a tag */
|
|
6139
|
+
create: async (attributes, options) => {
|
|
6140
|
+
return rb.execute(
|
|
6141
|
+
postSupportTags,
|
|
6142
|
+
{
|
|
6143
|
+
body: {
|
|
6144
|
+
data: { type: "support_tag", attributes }
|
|
6145
|
+
}
|
|
6146
|
+
},
|
|
6147
|
+
options
|
|
6148
|
+
);
|
|
3809
6149
|
},
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
},
|
|
3818
|
-
list: async (options) => {
|
|
3819
|
-
return rb.execute(
|
|
3820
|
-
getNotificationPreferences,
|
|
3821
|
-
buildPageQuery(options?.page, options?.pageSize),
|
|
3822
|
-
options
|
|
3823
|
-
);
|
|
3824
|
-
},
|
|
3825
|
-
listAll: async (options) => {
|
|
3826
|
-
return paginateToArray(
|
|
3827
|
-
rb.createPaginatedFetcher(
|
|
3828
|
-
getNotificationPreferences,
|
|
3829
|
-
(page, pageSize) => ({
|
|
3830
|
-
query: { page: { number: page, size: pageSize } }
|
|
3831
|
-
}),
|
|
3832
|
-
options
|
|
3833
|
-
)
|
|
3834
|
-
);
|
|
3835
|
-
},
|
|
3836
|
-
create: async (attributes, options) => {
|
|
3837
|
-
return rb.execute(
|
|
3838
|
-
postNotificationPreferences,
|
|
3839
|
-
{ body: { data: { type: "notification_preference", attributes } } },
|
|
3840
|
-
options
|
|
3841
|
-
);
|
|
3842
|
-
},
|
|
3843
|
-
update: async (id, attributes, options) => {
|
|
3844
|
-
return rb.execute(
|
|
3845
|
-
patchNotificationPreferencesById,
|
|
3846
|
-
{
|
|
3847
|
-
path: { id },
|
|
3848
|
-
body: {
|
|
3849
|
-
data: { id, type: "notification_preference", attributes }
|
|
3850
|
-
}
|
|
3851
|
-
},
|
|
3852
|
-
options
|
|
3853
|
-
);
|
|
3854
|
-
},
|
|
3855
|
-
get: async (id, options) => {
|
|
3856
|
-
return rb.execute(
|
|
3857
|
-
getNotificationPreferencesById,
|
|
3858
|
-
{ path: { id } },
|
|
3859
|
-
options
|
|
3860
|
-
);
|
|
3861
|
-
}
|
|
6150
|
+
/** Delete a tag */
|
|
6151
|
+
delete: async (id, options) => {
|
|
6152
|
+
return rb.executeDelete(
|
|
6153
|
+
deleteSupportTagsById,
|
|
6154
|
+
{ path: { id } },
|
|
6155
|
+
options
|
|
6156
|
+
);
|
|
3862
6157
|
}
|
|
3863
6158
|
}
|
|
3864
6159
|
};
|
|
@@ -4157,11 +6452,11 @@ function createExtractionNamespace(rb) {
|
|
|
4157
6452
|
* });
|
|
4158
6453
|
* console.log(`${result.filtered} of ${result.total} rows match`);
|
|
4159
6454
|
*/
|
|
4160
|
-
query: async (resultId, params, options) => {
|
|
6455
|
+
query: async (resultId, params = {}, options) => {
|
|
4161
6456
|
return rb.rawPost(
|
|
4162
6457
|
`/extraction/results/${resultId}/query`,
|
|
4163
6458
|
{
|
|
4164
|
-
filters: params.filters,
|
|
6459
|
+
filters: params.filters ?? [],
|
|
4165
6460
|
limit: params.limit,
|
|
4166
6461
|
offset: params.offset
|
|
4167
6462
|
},
|
|
@@ -5037,9 +7332,17 @@ function createPlatformNamespace(rb) {
|
|
|
5037
7332
|
},
|
|
5038
7333
|
/** Update workspace member profile attributes (G9) */
|
|
5039
7334
|
updateProfile: async (workspaceId, memberId, profileAttrs, options) => {
|
|
5040
|
-
return rb.
|
|
5041
|
-
|
|
5042
|
-
{
|
|
7335
|
+
return rb.execute(
|
|
7336
|
+
patchWorkspaceMembershipsByWorkspaceIdByUserIdProfile,
|
|
7337
|
+
{
|
|
7338
|
+
path: { workspace_id: workspaceId, user_id: memberId },
|
|
7339
|
+
body: {
|
|
7340
|
+
data: {
|
|
7341
|
+
type: "workspace-membership",
|
|
7342
|
+
attributes: { profile_attributes: profileAttrs }
|
|
7343
|
+
}
|
|
7344
|
+
}
|
|
7345
|
+
},
|
|
5043
7346
|
options
|
|
5044
7347
|
);
|
|
5045
7348
|
},
|
|
@@ -5879,7 +8182,16 @@ function createVoiceNamespace(rb) {
|
|
|
5879
8182
|
options
|
|
5880
8183
|
);
|
|
5881
8184
|
},
|
|
5882
|
-
/**
|
|
8185
|
+
/**
|
|
8186
|
+
* End a voice session and release the LiveKit room.
|
|
8187
|
+
*
|
|
8188
|
+
* @param id - Voice session ID to end
|
|
8189
|
+
* @param options - Request options
|
|
8190
|
+
*
|
|
8191
|
+
* @note Session stop is fully server-controlled. No attributes are accepted
|
|
8192
|
+
* in the request body — `status` is set to `"ended"` and `ended_at` is set
|
|
8193
|
+
* automatically. Passing extra attributes will result in a 422 error.
|
|
8194
|
+
*/
|
|
5883
8195
|
stop: async (id, options) => {
|
|
5884
8196
|
return rb.execute(
|
|
5885
8197
|
patchVoiceSessionsByIdStop,
|
|
@@ -6402,7 +8714,7 @@ var RequestBuilder = class {
|
|
|
6402
8714
|
() => this.clientInstance.post({
|
|
6403
8715
|
url,
|
|
6404
8716
|
headers,
|
|
6405
|
-
...body !== void 0 && { body
|
|
8717
|
+
...body !== void 0 && { body },
|
|
6406
8718
|
...options?.signal && { signal: options.signal }
|
|
6407
8719
|
})
|
|
6408
8720
|
);
|
|
@@ -6546,7 +8858,13 @@ var GptClient = class extends BaseClient {
|
|
|
6546
8858
|
this.agents = createAgentsNamespace(rb);
|
|
6547
8859
|
this.ai = createAiNamespace(rb);
|
|
6548
8860
|
this.billing = createBillingNamespace(rb);
|
|
8861
|
+
this.catalog = createCatalogNamespace(rb);
|
|
6549
8862
|
this.communication = createCommunicationNamespace(rb);
|
|
8863
|
+
this.connectors = createConnectorsNamespace(rb);
|
|
8864
|
+
this.crawler = createCrawlerNamespace(rb);
|
|
8865
|
+
this.crm = createCrmNamespace(rb);
|
|
8866
|
+
this.emailMarketing = createEmailMarketingNamespace(rb);
|
|
8867
|
+
this.support = createSupportNamespace(rb);
|
|
6550
8868
|
this.extraction = createExtractionNamespace(rb);
|
|
6551
8869
|
this.identity = createIdentityNamespace(rb, this.config?.baseUrl);
|
|
6552
8870
|
this.platform = createPlatformNamespace(rb);
|