@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.mjs
CHANGED
|
@@ -1224,7 +1224,7 @@ function buildUserAgent(sdkVersion, appInfo) {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
|
|
1226
1226
|
// src/version.ts
|
|
1227
|
-
var SDK_VERSION = "0.
|
|
1227
|
+
var SDK_VERSION = "0.3.1";
|
|
1228
1228
|
var DEFAULT_API_VERSION = "2026-02-25";
|
|
1229
1229
|
|
|
1230
1230
|
// src/base-client.ts
|
|
@@ -1546,6 +1546,15 @@ var getVoiceSessionsWorkspaceByWorkspaceId = (options) => (options.client ?? cli
|
|
|
1546
1546
|
url: "/voice/sessions/workspace/{workspace_id}",
|
|
1547
1547
|
...options
|
|
1548
1548
|
});
|
|
1549
|
+
var postEmailMarketingSequences = (options) => (options.client ?? client).post({
|
|
1550
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1551
|
+
url: "/email-marketing/sequences",
|
|
1552
|
+
...options,
|
|
1553
|
+
headers: {
|
|
1554
|
+
"Content-Type": "application/vnd.api+json",
|
|
1555
|
+
...options.headers
|
|
1556
|
+
}
|
|
1557
|
+
});
|
|
1549
1558
|
var patchExtractionDocumentsByIdCancel = (options) => (options.client ?? client).patch({
|
|
1550
1559
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1551
1560
|
url: "/extraction/documents/{id}/cancel",
|
|
@@ -1555,6 +1564,24 @@ var patchExtractionDocumentsByIdCancel = (options) => (options.client ?? client)
|
|
|
1555
1564
|
...options.headers
|
|
1556
1565
|
}
|
|
1557
1566
|
});
|
|
1567
|
+
var postCatalogProductVariants = (options) => (options.client ?? client).post({
|
|
1568
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1569
|
+
url: "/catalog/product-variants",
|
|
1570
|
+
...options,
|
|
1571
|
+
headers: {
|
|
1572
|
+
"Content-Type": "application/vnd.api+json",
|
|
1573
|
+
...options.headers
|
|
1574
|
+
}
|
|
1575
|
+
});
|
|
1576
|
+
var postCrmRelationships = (options) => (options.client ?? client).post({
|
|
1577
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1578
|
+
url: "/crm/relationships",
|
|
1579
|
+
...options,
|
|
1580
|
+
headers: {
|
|
1581
|
+
"Content-Type": "application/vnd.api+json",
|
|
1582
|
+
...options.headers
|
|
1583
|
+
}
|
|
1584
|
+
});
|
|
1558
1585
|
var deleteAgentVersionsById = (options) => (options.client ?? client).delete({
|
|
1559
1586
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1560
1587
|
url: "/agent-versions/{id}",
|
|
@@ -1565,6 +1592,25 @@ var getAgentVersionsById = (options) => (options.client ?? client).get({
|
|
|
1565
1592
|
url: "/agent-versions/{id}",
|
|
1566
1593
|
...options
|
|
1567
1594
|
});
|
|
1595
|
+
var postCatalogTaxonomyNodes = (options) => (options.client ?? client).post({
|
|
1596
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1597
|
+
url: "/catalog/taxonomy-nodes",
|
|
1598
|
+
...options,
|
|
1599
|
+
headers: {
|
|
1600
|
+
"Content-Type": "application/vnd.api+json",
|
|
1601
|
+
...options.headers
|
|
1602
|
+
}
|
|
1603
|
+
});
|
|
1604
|
+
var deleteCrmRelationshipsById = (options) => (options.client ?? client).delete({
|
|
1605
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1606
|
+
url: "/crm/relationships/{id}",
|
|
1607
|
+
...options
|
|
1608
|
+
});
|
|
1609
|
+
var getCrmRelationshipsById = (options) => (options.client ?? client).get({
|
|
1610
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1611
|
+
url: "/crm/relationships/{id}",
|
|
1612
|
+
...options
|
|
1613
|
+
});
|
|
1568
1614
|
var getWatcherEventsById = (options) => (options.client ?? client).get({
|
|
1569
1615
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1570
1616
|
url: "/watcher/events/{id}",
|
|
@@ -1579,6 +1625,21 @@ var patchApiKeysByIdRevoke = (options) => (options.client ?? client).patch({
|
|
|
1579
1625
|
...options.headers
|
|
1580
1626
|
}
|
|
1581
1627
|
});
|
|
1628
|
+
var getCrmCustomEntitiesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1629
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1630
|
+
url: "/crm/custom-entities/workspace/{workspace_id}",
|
|
1631
|
+
...options
|
|
1632
|
+
});
|
|
1633
|
+
var getEmailMarketingSequencesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1634
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1635
|
+
url: "/email-marketing/sequences/workspace/{workspace_id}",
|
|
1636
|
+
...options
|
|
1637
|
+
});
|
|
1638
|
+
var getCatalogTaxonomyNodesTaxonomyByTaxonomyId = (options) => (options.client ?? client).get({
|
|
1639
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1640
|
+
url: "/catalog/taxonomy-nodes/taxonomy/{taxonomy_id}",
|
|
1641
|
+
...options
|
|
1642
|
+
});
|
|
1582
1643
|
var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
1583
1644
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1584
1645
|
url: "/api-keys/{id}/rotate",
|
|
@@ -1588,6 +1649,15 @@ var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
|
1588
1649
|
...options.headers
|
|
1589
1650
|
}
|
|
1590
1651
|
});
|
|
1652
|
+
var patchWorkspaceMembershipsByWorkspaceIdByUserIdProfile = (options) => (options.client ?? client).patch({
|
|
1653
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1654
|
+
url: "/workspace-memberships/{workspace_id}/{user_id}/profile",
|
|
1655
|
+
...options,
|
|
1656
|
+
headers: {
|
|
1657
|
+
"Content-Type": "application/vnd.api+json",
|
|
1658
|
+
...options.headers
|
|
1659
|
+
}
|
|
1660
|
+
});
|
|
1591
1661
|
var getWorkspaces = (options) => (options.client ?? client).get({
|
|
1592
1662
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1593
1663
|
url: "/workspaces",
|
|
@@ -1635,6 +1705,35 @@ var patchExtractionDocumentsByIdDismiss = (options) => (options.client ?? client
|
|
|
1635
1705
|
...options.headers
|
|
1636
1706
|
}
|
|
1637
1707
|
});
|
|
1708
|
+
var getCrawlerResults = (options) => (options.client ?? client).get({
|
|
1709
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1710
|
+
url: "/crawler/results",
|
|
1711
|
+
...options
|
|
1712
|
+
});
|
|
1713
|
+
var getCrmExportsById = (options) => (options.client ?? client).get({
|
|
1714
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1715
|
+
url: "/crm/exports/{id}",
|
|
1716
|
+
...options
|
|
1717
|
+
});
|
|
1718
|
+
var deleteCrmDealsById = (options) => (options.client ?? client).delete({
|
|
1719
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1720
|
+
url: "/crm/deals/{id}",
|
|
1721
|
+
...options
|
|
1722
|
+
});
|
|
1723
|
+
var getCrmDealsById = (options) => (options.client ?? client).get({
|
|
1724
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1725
|
+
url: "/crm/deals/{id}",
|
|
1726
|
+
...options
|
|
1727
|
+
});
|
|
1728
|
+
var patchCrmDealsById = (options) => (options.client ?? client).patch({
|
|
1729
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1730
|
+
url: "/crm/deals/{id}",
|
|
1731
|
+
...options,
|
|
1732
|
+
headers: {
|
|
1733
|
+
"Content-Type": "application/vnd.api+json",
|
|
1734
|
+
...options.headers
|
|
1735
|
+
}
|
|
1736
|
+
});
|
|
1638
1737
|
var postUsersAuthResetPasswordRequest = (options) => (options.client ?? client).post({
|
|
1639
1738
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1640
1739
|
url: "/users/auth/reset-password/request",
|
|
@@ -1644,6 +1743,11 @@ var postUsersAuthResetPasswordRequest = (options) => (options.client ?? client).
|
|
|
1644
1743
|
...options.headers
|
|
1645
1744
|
}
|
|
1646
1745
|
});
|
|
1746
|
+
var getSupportTagsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1747
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1748
|
+
url: "/support/tags/workspace/{workspace_id}",
|
|
1749
|
+
...options
|
|
1750
|
+
});
|
|
1647
1751
|
var getSearchIndexes = (options) => (options.client ?? client).get({
|
|
1648
1752
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1649
1753
|
url: "/search/indexes",
|
|
@@ -1664,6 +1768,25 @@ var postAgentsByIdAnalyzeTraining = (options) => (options.client ?? client).post
|
|
|
1664
1768
|
url: "/agents/{id}/analyze-training",
|
|
1665
1769
|
...options
|
|
1666
1770
|
});
|
|
1771
|
+
var getCrmContactsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1772
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1773
|
+
url: "/crm/contacts/workspace/{workspace_id}",
|
|
1774
|
+
...options
|
|
1775
|
+
});
|
|
1776
|
+
var getEmailMarketingTemplatesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1777
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1778
|
+
url: "/email-marketing/templates/workspace/{workspace_id}",
|
|
1779
|
+
...options
|
|
1780
|
+
});
|
|
1781
|
+
var postEmailMarketingCampaignsByIdAnalyze = (options) => (options.client ?? client).post({
|
|
1782
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1783
|
+
url: "/email-marketing/campaigns/{id}/analyze",
|
|
1784
|
+
...options,
|
|
1785
|
+
headers: {
|
|
1786
|
+
"Content-Type": "application/vnd.api+json",
|
|
1787
|
+
...options.headers
|
|
1788
|
+
}
|
|
1789
|
+
});
|
|
1667
1790
|
var postWebhookConfigsByIdTest = (options) => (options.client ?? client).post({
|
|
1668
1791
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1669
1792
|
url: "/webhook-configs/{id}/test",
|
|
@@ -1696,11 +1819,89 @@ var getExtractionBatchesWorkspaceByWorkspaceId = (options) => (options.client ??
|
|
|
1696
1819
|
url: "/extraction/batches/workspace/{workspace_id}",
|
|
1697
1820
|
...options
|
|
1698
1821
|
});
|
|
1822
|
+
var postConnectorsFullscriptCreatePatient = (options) => (options.client ?? client).post({
|
|
1823
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1824
|
+
url: "/connectors/fullscript/create-patient",
|
|
1825
|
+
...options,
|
|
1826
|
+
headers: {
|
|
1827
|
+
"Content-Type": "application/vnd.api+json",
|
|
1828
|
+
...options.headers
|
|
1829
|
+
}
|
|
1830
|
+
});
|
|
1831
|
+
var postEmailMarketingCampaignsByIdOptimizeSendTimes = (options) => (options.client ?? client).post({
|
|
1832
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1833
|
+
url: "/email-marketing/campaigns/{id}/optimize-send-times",
|
|
1834
|
+
...options,
|
|
1835
|
+
headers: {
|
|
1836
|
+
"Content-Type": "application/vnd.api+json",
|
|
1837
|
+
...options.headers
|
|
1838
|
+
}
|
|
1839
|
+
});
|
|
1699
1840
|
var getExtractionDocumentsByIdStatus = (options) => (options.client ?? client).get({
|
|
1700
1841
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1701
1842
|
url: "/extraction/documents/{id}/status",
|
|
1702
1843
|
...options
|
|
1703
1844
|
});
|
|
1845
|
+
var postConnectorsFullscriptSessionGrant = (options) => (options.client ?? client).post({
|
|
1846
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1847
|
+
url: "/connectors/fullscript/session-grant",
|
|
1848
|
+
...options,
|
|
1849
|
+
headers: {
|
|
1850
|
+
"Content-Type": "application/vnd.api+json",
|
|
1851
|
+
...options.headers
|
|
1852
|
+
}
|
|
1853
|
+
});
|
|
1854
|
+
var deleteCatalogTaxonomyNodesById = (options) => (options.client ?? client).delete({
|
|
1855
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1856
|
+
url: "/catalog/taxonomy-nodes/{id}",
|
|
1857
|
+
...options
|
|
1858
|
+
});
|
|
1859
|
+
var getCatalogTaxonomyNodesById = (options) => (options.client ?? client).get({
|
|
1860
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1861
|
+
url: "/catalog/taxonomy-nodes/{id}",
|
|
1862
|
+
...options
|
|
1863
|
+
});
|
|
1864
|
+
var patchCatalogTaxonomyNodesById = (options) => (options.client ?? client).patch({
|
|
1865
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1866
|
+
url: "/catalog/taxonomy-nodes/{id}",
|
|
1867
|
+
...options,
|
|
1868
|
+
headers: {
|
|
1869
|
+
"Content-Type": "application/vnd.api+json",
|
|
1870
|
+
...options.headers
|
|
1871
|
+
}
|
|
1872
|
+
});
|
|
1873
|
+
var getCatalogTaxonomiesApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
1874
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1875
|
+
url: "/catalog/taxonomies/application/{application_id}",
|
|
1876
|
+
...options
|
|
1877
|
+
});
|
|
1878
|
+
var postEmailMarketingCampaignsByIdSend = (options) => (options.client ?? client).post({
|
|
1879
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1880
|
+
url: "/email-marketing/campaigns/{id}/send",
|
|
1881
|
+
...options,
|
|
1882
|
+
headers: {
|
|
1883
|
+
"Content-Type": "application/vnd.api+json",
|
|
1884
|
+
...options.headers
|
|
1885
|
+
}
|
|
1886
|
+
});
|
|
1887
|
+
var postEmailMarketingCampaignsByIdCreateFollowup = (options) => (options.client ?? client).post({
|
|
1888
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1889
|
+
url: "/email-marketing/campaigns/{id}/create-followup",
|
|
1890
|
+
...options,
|
|
1891
|
+
headers: {
|
|
1892
|
+
"Content-Type": "application/vnd.api+json",
|
|
1893
|
+
...options.headers
|
|
1894
|
+
}
|
|
1895
|
+
});
|
|
1896
|
+
var postCrmContacts = (options) => (options.client ?? client).post({
|
|
1897
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1898
|
+
url: "/crm/contacts",
|
|
1899
|
+
...options,
|
|
1900
|
+
headers: {
|
|
1901
|
+
"Content-Type": "application/vnd.api+json",
|
|
1902
|
+
...options.headers
|
|
1903
|
+
}
|
|
1904
|
+
});
|
|
1704
1905
|
var deleteWebhookConfigsById = (options) => (options.client ?? client).delete({
|
|
1705
1906
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1706
1907
|
url: "/webhook-configs/{id}",
|
|
@@ -1720,6 +1921,15 @@ var patchWebhookConfigsById = (options) => (options.client ?? client).patch({
|
|
|
1720
1921
|
...options.headers
|
|
1721
1922
|
}
|
|
1722
1923
|
});
|
|
1924
|
+
var postConnectorsCredentialsByIdRefresh = (options) => (options.client ?? client).post({
|
|
1925
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1926
|
+
url: "/connectors/credentials/{id}/refresh",
|
|
1927
|
+
...options,
|
|
1928
|
+
headers: {
|
|
1929
|
+
"Content-Type": "application/vnd.api+json",
|
|
1930
|
+
...options.headers
|
|
1931
|
+
}
|
|
1932
|
+
});
|
|
1723
1933
|
var postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained = (options) => (options.client ?? client).post({
|
|
1724
1934
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1725
1935
|
url: "/workspaces/{workspace_id}/extraction/documents/dismiss-all-trained",
|
|
@@ -1738,6 +1948,34 @@ var postExtractionDocumentsFindOrBeginUpload = (options) => (options.client ?? c
|
|
|
1738
1948
|
...options.headers
|
|
1739
1949
|
}
|
|
1740
1950
|
});
|
|
1951
|
+
var postEmailMarketingCampaigns = (options) => (options.client ?? client).post({
|
|
1952
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1953
|
+
url: "/email-marketing/campaigns",
|
|
1954
|
+
...options,
|
|
1955
|
+
headers: {
|
|
1956
|
+
"Content-Type": "application/vnd.api+json",
|
|
1957
|
+
...options.headers
|
|
1958
|
+
}
|
|
1959
|
+
});
|
|
1960
|
+
var deleteCrmCustomEntitiesById = (options) => (options.client ?? client).delete({
|
|
1961
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1962
|
+
url: "/crm/custom-entities/{id}",
|
|
1963
|
+
...options
|
|
1964
|
+
});
|
|
1965
|
+
var getCrmCustomEntitiesById = (options) => (options.client ?? client).get({
|
|
1966
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1967
|
+
url: "/crm/custom-entities/{id}",
|
|
1968
|
+
...options
|
|
1969
|
+
});
|
|
1970
|
+
var patchCrmCustomEntitiesById = (options) => (options.client ?? client).patch({
|
|
1971
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1972
|
+
url: "/crm/custom-entities/{id}",
|
|
1973
|
+
...options,
|
|
1974
|
+
headers: {
|
|
1975
|
+
"Content-Type": "application/vnd.api+json",
|
|
1976
|
+
...options.headers
|
|
1977
|
+
}
|
|
1978
|
+
});
|
|
1741
1979
|
var postAgentsByIdRestoreVersion = (options) => (options.client ?? client).post({
|
|
1742
1980
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1743
1981
|
url: "/agents/{id}/restore-version",
|
|
@@ -1765,6 +2003,29 @@ var postAgentsByIdPublishVersion = (options) => (options.client ?? client).post(
|
|
|
1765
2003
|
...options.headers
|
|
1766
2004
|
}
|
|
1767
2005
|
});
|
|
2006
|
+
var patchEmailMarketingSenderProfilesByIdValidateDns = (options) => (options.client ?? client).patch({
|
|
2007
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2008
|
+
url: "/email-marketing/sender-profiles/{id}/validate-dns",
|
|
2009
|
+
...options,
|
|
2010
|
+
headers: {
|
|
2011
|
+
"Content-Type": "application/vnd.api+json",
|
|
2012
|
+
...options.headers
|
|
2013
|
+
}
|
|
2014
|
+
});
|
|
2015
|
+
var getConnectorsCredentialsById = (options) => (options.client ?? client).get({
|
|
2016
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2017
|
+
url: "/connectors/credentials/{id}",
|
|
2018
|
+
...options
|
|
2019
|
+
});
|
|
2020
|
+
var postCrmCompanies = (options) => (options.client ?? client).post({
|
|
2021
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2022
|
+
url: "/crm/companies",
|
|
2023
|
+
...options,
|
|
2024
|
+
headers: {
|
|
2025
|
+
"Content-Type": "application/vnd.api+json",
|
|
2026
|
+
...options.headers
|
|
2027
|
+
}
|
|
2028
|
+
});
|
|
1768
2029
|
var getVoiceSessionsMine = (options) => (options.client ?? client).get({
|
|
1769
2030
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1770
2031
|
url: "/voice/sessions/mine",
|
|
@@ -1807,11 +2068,53 @@ var patchUsersAuthResetPassword = (options) => (options.client ?? client).patch(
|
|
|
1807
2068
|
...options.headers
|
|
1808
2069
|
}
|
|
1809
2070
|
});
|
|
2071
|
+
var deleteEmailMarketingSenderProfilesById = (options) => (options.client ?? client).delete({
|
|
2072
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2073
|
+
url: "/email-marketing/sender-profiles/{id}",
|
|
2074
|
+
...options
|
|
2075
|
+
});
|
|
2076
|
+
var getEmailMarketingSenderProfilesById = (options) => (options.client ?? client).get({
|
|
2077
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2078
|
+
url: "/email-marketing/sender-profiles/{id}",
|
|
2079
|
+
...options
|
|
2080
|
+
});
|
|
2081
|
+
var patchEmailMarketingSenderProfilesById = (options) => (options.client ?? client).patch({
|
|
2082
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2083
|
+
url: "/email-marketing/sender-profiles/{id}",
|
|
2084
|
+
...options,
|
|
2085
|
+
headers: {
|
|
2086
|
+
"Content-Type": "application/vnd.api+json",
|
|
2087
|
+
...options.headers
|
|
2088
|
+
}
|
|
2089
|
+
});
|
|
2090
|
+
var getCrmRelationshipTypes = (options) => (options.client ?? client).get({
|
|
2091
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2092
|
+
url: "/crm/relationship-types",
|
|
2093
|
+
...options
|
|
2094
|
+
});
|
|
2095
|
+
var postCrmRelationshipTypes = (options) => (options.client ?? client).post({
|
|
2096
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2097
|
+
url: "/crm/relationship-types",
|
|
2098
|
+
...options,
|
|
2099
|
+
headers: {
|
|
2100
|
+
"Content-Type": "application/vnd.api+json",
|
|
2101
|
+
...options.headers
|
|
2102
|
+
}
|
|
2103
|
+
});
|
|
1810
2104
|
var getSchedulingCalendarSyncsById = (options) => (options.client ?? client).get({
|
|
1811
2105
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1812
2106
|
url: "/scheduling/calendar-syncs/{id}",
|
|
1813
2107
|
...options
|
|
1814
2108
|
});
|
|
2109
|
+
var postCrmCustomEntities = (options) => (options.client ?? client).post({
|
|
2110
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2111
|
+
url: "/crm/custom-entities",
|
|
2112
|
+
...options,
|
|
2113
|
+
headers: {
|
|
2114
|
+
"Content-Type": "application/vnd.api+json",
|
|
2115
|
+
...options.headers
|
|
2116
|
+
}
|
|
2117
|
+
});
|
|
1815
2118
|
var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client).post({
|
|
1816
2119
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1817
2120
|
url: "/extraction/documents/begin-upload",
|
|
@@ -1835,6 +2138,11 @@ var postSearchSaved = (options) => (options.client ?? client).post({
|
|
|
1835
2138
|
...options.headers
|
|
1836
2139
|
}
|
|
1837
2140
|
});
|
|
2141
|
+
var getEmailMarketingCampaignsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2142
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2143
|
+
url: "/email-marketing/campaigns/workspace/{workspace_id}",
|
|
2144
|
+
...options
|
|
2145
|
+
});
|
|
1838
2146
|
var deleteNotificationMethodsById = (options) => (options.client ?? client).delete({
|
|
1839
2147
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1840
2148
|
url: "/notification-methods/{id}",
|
|
@@ -1873,79 +2181,196 @@ var patchTrainingExamplesById = (options) => (options.client ?? client).patch({
|
|
|
1873
2181
|
...options.headers
|
|
1874
2182
|
}
|
|
1875
2183
|
});
|
|
1876
|
-
var
|
|
2184
|
+
var getEmailMarketingGeneratedEmailsById = (options) => (options.client ?? client).get({
|
|
1877
2185
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1878
|
-
url: "/
|
|
2186
|
+
url: "/email-marketing/generated-emails/{id}",
|
|
1879
2187
|
...options
|
|
1880
2188
|
});
|
|
1881
|
-
var
|
|
2189
|
+
var patchEmailMarketingGeneratedEmailsById = (options) => (options.client ?? client).patch({
|
|
1882
2190
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1883
|
-
url: "/
|
|
2191
|
+
url: "/email-marketing/generated-emails/{id}",
|
|
1884
2192
|
...options,
|
|
1885
2193
|
headers: {
|
|
1886
2194
|
"Content-Type": "application/vnd.api+json",
|
|
1887
2195
|
...options.headers
|
|
1888
2196
|
}
|
|
1889
2197
|
});
|
|
1890
|
-
var
|
|
2198
|
+
var deleteEmailMarketingCampaignsById = (options) => (options.client ?? client).delete({
|
|
1891
2199
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1892
|
-
url: "/
|
|
2200
|
+
url: "/email-marketing/campaigns/{id}",
|
|
1893
2201
|
...options
|
|
1894
2202
|
});
|
|
1895
|
-
var
|
|
2203
|
+
var getEmailMarketingCampaignsById = (options) => (options.client ?? client).get({
|
|
1896
2204
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1897
|
-
url: "/
|
|
2205
|
+
url: "/email-marketing/campaigns/{id}",
|
|
2206
|
+
...options
|
|
2207
|
+
});
|
|
2208
|
+
var patchEmailMarketingCampaignsById = (options) => (options.client ?? client).patch({
|
|
2209
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2210
|
+
url: "/email-marketing/campaigns/{id}",
|
|
1898
2211
|
...options,
|
|
1899
2212
|
headers: {
|
|
1900
2213
|
"Content-Type": "application/vnd.api+json",
|
|
1901
2214
|
...options.headers
|
|
1902
2215
|
}
|
|
1903
2216
|
});
|
|
1904
|
-
var
|
|
2217
|
+
var getSearchSuggest = (options) => (options.client ?? client).get({
|
|
1905
2218
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1906
|
-
url: "/
|
|
2219
|
+
url: "/search/suggest",
|
|
1907
2220
|
...options
|
|
1908
2221
|
});
|
|
1909
|
-
var
|
|
2222
|
+
var deleteCatalogTaxonomiesById = (options) => (options.client ?? client).delete({
|
|
1910
2223
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1911
|
-
url: "/
|
|
2224
|
+
url: "/catalog/taxonomies/{id}",
|
|
1912
2225
|
...options
|
|
1913
2226
|
});
|
|
1914
|
-
var
|
|
2227
|
+
var getCatalogTaxonomiesById = (options) => (options.client ?? client).get({
|
|
1915
2228
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1916
|
-
url: "/
|
|
2229
|
+
url: "/catalog/taxonomies/{id}",
|
|
1917
2230
|
...options
|
|
1918
2231
|
});
|
|
1919
|
-
var
|
|
2232
|
+
var patchCatalogTaxonomiesById = (options) => (options.client ?? client).patch({
|
|
1920
2233
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1921
|
-
url: "/
|
|
2234
|
+
url: "/catalog/taxonomies/{id}",
|
|
1922
2235
|
...options,
|
|
1923
2236
|
headers: {
|
|
1924
2237
|
"Content-Type": "application/vnd.api+json",
|
|
1925
2238
|
...options.headers
|
|
1926
2239
|
}
|
|
1927
2240
|
});
|
|
1928
|
-
var
|
|
2241
|
+
var deleteCrmRelationshipTypesById = (options) => (options.client ?? client).delete({
|
|
1929
2242
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1930
|
-
url: "/
|
|
2243
|
+
url: "/crm/relationship-types/{id}",
|
|
1931
2244
|
...options
|
|
1932
2245
|
});
|
|
1933
|
-
var
|
|
2246
|
+
var getCrmRelationshipTypesById = (options) => (options.client ?? client).get({
|
|
1934
2247
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1935
|
-
url: "/
|
|
2248
|
+
url: "/crm/relationship-types/{id}",
|
|
1936
2249
|
...options
|
|
1937
2250
|
});
|
|
1938
|
-
var
|
|
2251
|
+
var patchCrmRelationshipTypesById = (options) => (options.client ?? client).patch({
|
|
1939
2252
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1940
|
-
url: "/
|
|
1941
|
-
...options
|
|
2253
|
+
url: "/crm/relationship-types/{id}",
|
|
2254
|
+
...options,
|
|
2255
|
+
headers: {
|
|
2256
|
+
"Content-Type": "application/vnd.api+json",
|
|
2257
|
+
...options.headers
|
|
2258
|
+
}
|
|
1942
2259
|
});
|
|
1943
|
-
var
|
|
2260
|
+
var deleteCrmContactsById = (options) => (options.client ?? client).delete({
|
|
1944
2261
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1945
|
-
url: "/
|
|
2262
|
+
url: "/crm/contacts/{id}",
|
|
1946
2263
|
...options
|
|
1947
2264
|
});
|
|
1948
|
-
var
|
|
2265
|
+
var getCrmContactsById = (options) => (options.client ?? client).get({
|
|
2266
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2267
|
+
url: "/crm/contacts/{id}",
|
|
2268
|
+
...options
|
|
2269
|
+
});
|
|
2270
|
+
var patchCrmContactsById = (options) => (options.client ?? client).patch({
|
|
2271
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2272
|
+
url: "/crm/contacts/{id}",
|
|
2273
|
+
...options,
|
|
2274
|
+
headers: {
|
|
2275
|
+
"Content-Type": "application/vnd.api+json",
|
|
2276
|
+
...options.headers
|
|
2277
|
+
}
|
|
2278
|
+
});
|
|
2279
|
+
var patchCrawlerJobsByIdCancel = (options) => (options.client ?? client).patch({
|
|
2280
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2281
|
+
url: "/crawler/jobs/{id}/cancel",
|
|
2282
|
+
...options,
|
|
2283
|
+
headers: {
|
|
2284
|
+
"Content-Type": "application/vnd.api+json",
|
|
2285
|
+
...options.headers
|
|
2286
|
+
}
|
|
2287
|
+
});
|
|
2288
|
+
var postAgentVersionsByIdAddSystemField = (options) => (options.client ?? client).post({
|
|
2289
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2290
|
+
url: "/agent-versions/{id}/add-system-field",
|
|
2291
|
+
...options,
|
|
2292
|
+
headers: {
|
|
2293
|
+
"Content-Type": "application/vnd.api+json",
|
|
2294
|
+
...options.headers
|
|
2295
|
+
}
|
|
2296
|
+
});
|
|
2297
|
+
var getThreadsByIdMessages = (options) => (options.client ?? client).get({
|
|
2298
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2299
|
+
url: "/threads/{id}/messages",
|
|
2300
|
+
...options
|
|
2301
|
+
});
|
|
2302
|
+
var postThreadsByIdMessages = (options) => (options.client ?? client).post({
|
|
2303
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2304
|
+
url: "/threads/{id}/messages",
|
|
2305
|
+
...options,
|
|
2306
|
+
headers: {
|
|
2307
|
+
"Content-Type": "application/vnd.api+json",
|
|
2308
|
+
...options.headers
|
|
2309
|
+
}
|
|
2310
|
+
});
|
|
2311
|
+
var patchEmailMarketingGeneratedEmailsByIdApprove = (options) => (options.client ?? client).patch({
|
|
2312
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2313
|
+
url: "/email-marketing/generated-emails/{id}/approve",
|
|
2314
|
+
...options,
|
|
2315
|
+
headers: {
|
|
2316
|
+
"Content-Type": "application/vnd.api+json",
|
|
2317
|
+
...options.headers
|
|
2318
|
+
}
|
|
2319
|
+
});
|
|
2320
|
+
var postSupportTickets = (options) => (options.client ?? client).post({
|
|
2321
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2322
|
+
url: "/support/tickets",
|
|
2323
|
+
...options,
|
|
2324
|
+
headers: {
|
|
2325
|
+
"Content-Type": "application/vnd.api+json",
|
|
2326
|
+
...options.headers
|
|
2327
|
+
}
|
|
2328
|
+
});
|
|
2329
|
+
var getCreditPackagesById = (options) => (options.client ?? client).get({
|
|
2330
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2331
|
+
url: "/credit-packages/{id}",
|
|
2332
|
+
...options
|
|
2333
|
+
});
|
|
2334
|
+
var getWebhookDeliveries = (options) => (options.client ?? client).get({
|
|
2335
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2336
|
+
url: "/webhook-deliveries",
|
|
2337
|
+
...options
|
|
2338
|
+
});
|
|
2339
|
+
var getAgentVersions = (options) => (options.client ?? client).get({
|
|
2340
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2341
|
+
url: "/agent-versions",
|
|
2342
|
+
...options
|
|
2343
|
+
});
|
|
2344
|
+
var postAgentVersions = (options) => (options.client ?? client).post({
|
|
2345
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2346
|
+
url: "/agent-versions",
|
|
2347
|
+
...options,
|
|
2348
|
+
headers: {
|
|
2349
|
+
"Content-Type": "application/vnd.api+json",
|
|
2350
|
+
...options.headers
|
|
2351
|
+
}
|
|
2352
|
+
});
|
|
2353
|
+
var deleteUsersById = (options) => (options.client ?? client).delete({
|
|
2354
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2355
|
+
url: "/users/{id}",
|
|
2356
|
+
...options
|
|
2357
|
+
});
|
|
2358
|
+
var getUsersById = (options) => (options.client ?? client).get({
|
|
2359
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2360
|
+
url: "/users/{id}",
|
|
2361
|
+
...options
|
|
2362
|
+
});
|
|
2363
|
+
var deleteExtractionResultsById = (options) => (options.client ?? client).delete({
|
|
2364
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2365
|
+
url: "/extraction/results/{id}",
|
|
2366
|
+
...options
|
|
2367
|
+
});
|
|
2368
|
+
var getExtractionResultsById = (options) => (options.client ?? client).get({
|
|
2369
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2370
|
+
url: "/extraction/results/{id}",
|
|
2371
|
+
...options
|
|
2372
|
+
});
|
|
2373
|
+
var patchExtractionResultsById = (options) => (options.client ?? client).patch({
|
|
1949
2374
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1950
2375
|
url: "/extraction/results/{id}",
|
|
1951
2376
|
...options,
|
|
@@ -1963,6 +2388,11 @@ var postAgentsByIdValidate = (options) => (options.client ?? client).post({
|
|
|
1963
2388
|
...options.headers
|
|
1964
2389
|
}
|
|
1965
2390
|
});
|
|
2391
|
+
var getConnectorsCredentials = (options) => (options.client ?? client).get({
|
|
2392
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2393
|
+
url: "/connectors/credentials",
|
|
2394
|
+
...options
|
|
2395
|
+
});
|
|
1966
2396
|
var getUsersMe = (options) => (options.client ?? client).get({
|
|
1967
2397
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1968
2398
|
url: "/users/me",
|
|
@@ -1991,6 +2421,15 @@ var patchSchedulingParticipantsById = (options) => (options.client ?? client).pa
|
|
|
1991
2421
|
...options.headers
|
|
1992
2422
|
}
|
|
1993
2423
|
});
|
|
2424
|
+
var patchEmailMarketingSequencesByIdResume = (options) => (options.client ?? client).patch({
|
|
2425
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2426
|
+
url: "/email-marketing/sequences/{id}/resume",
|
|
2427
|
+
...options,
|
|
2428
|
+
headers: {
|
|
2429
|
+
"Content-Type": "application/vnd.api+json",
|
|
2430
|
+
...options.headers
|
|
2431
|
+
}
|
|
2432
|
+
});
|
|
1994
2433
|
var postTenantsByIdCredit = (options) => (options.client ?? client).post({
|
|
1995
2434
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1996
2435
|
url: "/tenants/{id}/credit",
|
|
@@ -2000,6 +2439,15 @@ var postTenantsByIdCredit = (options) => (options.client ?? client).post({
|
|
|
2000
2439
|
...options.headers
|
|
2001
2440
|
}
|
|
2002
2441
|
});
|
|
2442
|
+
var postCatalogProducts = (options) => (options.client ?? client).post({
|
|
2443
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2444
|
+
url: "/catalog/products",
|
|
2445
|
+
...options,
|
|
2446
|
+
headers: {
|
|
2447
|
+
"Content-Type": "application/vnd.api+json",
|
|
2448
|
+
...options.headers
|
|
2449
|
+
}
|
|
2450
|
+
});
|
|
2003
2451
|
var patchSchedulingBookingsSchedulingBookingsByIdCancel = (options) => (options.client ?? client).patch({
|
|
2004
2452
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2005
2453
|
url: "/scheduling/bookings/scheduling/bookings/{id}/cancel",
|
|
@@ -2075,6 +2523,26 @@ var patchExtractionDocumentsByIdFinishUpload = (options) => (options.client ?? c
|
|
|
2075
2523
|
...options.headers
|
|
2076
2524
|
}
|
|
2077
2525
|
});
|
|
2526
|
+
var getSupportTicketMessagesTicketByTicketId = (options) => (options.client ?? client).get({
|
|
2527
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2528
|
+
url: "/support/ticket-messages/ticket/{ticket_id}",
|
|
2529
|
+
...options
|
|
2530
|
+
});
|
|
2531
|
+
var deleteCrawlerJobsById = (options) => (options.client ?? client).delete({
|
|
2532
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2533
|
+
url: "/crawler/jobs/{id}",
|
|
2534
|
+
...options
|
|
2535
|
+
});
|
|
2536
|
+
var getCrawlerJobsById = (options) => (options.client ?? client).get({
|
|
2537
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2538
|
+
url: "/crawler/jobs/{id}",
|
|
2539
|
+
...options
|
|
2540
|
+
});
|
|
2541
|
+
var getCrmExportsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2542
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2543
|
+
url: "/crm/exports/workspace/{workspace_id}",
|
|
2544
|
+
...options
|
|
2545
|
+
});
|
|
2078
2546
|
var getTrainingSessionsAgentsByAgentIdSessions = (options) => (options.client ?? client).get({
|
|
2079
2547
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2080
2548
|
url: "/training-sessions/agents/{agent_id}/sessions",
|
|
@@ -2085,6 +2553,11 @@ var getSearch = (options) => (options.client ?? client).get({
|
|
|
2085
2553
|
url: "/search",
|
|
2086
2554
|
...options
|
|
2087
2555
|
});
|
|
2556
|
+
var getCatalogProductsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2557
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2558
|
+
url: "/catalog/products/workspace/{workspace_id}",
|
|
2559
|
+
...options
|
|
2560
|
+
});
|
|
2088
2561
|
var getVoiceSessionsById = (options) => (options.client ?? client).get({
|
|
2089
2562
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2090
2563
|
url: "/voice/sessions/{id}",
|
|
@@ -2155,6 +2628,30 @@ var postNotificationPreferences = (options) => (options.client ?? client).post({
|
|
|
2155
2628
|
...options.headers
|
|
2156
2629
|
}
|
|
2157
2630
|
});
|
|
2631
|
+
var deleteCrmPipelineStagesById = (options) => (options.client ?? client).delete({
|
|
2632
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2633
|
+
url: "/crm/pipeline-stages/{id}",
|
|
2634
|
+
...options
|
|
2635
|
+
});
|
|
2636
|
+
var getCrmPipelineStagesById = (options) => (options.client ?? client).get({
|
|
2637
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2638
|
+
url: "/crm/pipeline-stages/{id}",
|
|
2639
|
+
...options
|
|
2640
|
+
});
|
|
2641
|
+
var patchCrmPipelineStagesById = (options) => (options.client ?? client).patch({
|
|
2642
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2643
|
+
url: "/crm/pipeline-stages/{id}",
|
|
2644
|
+
...options,
|
|
2645
|
+
headers: {
|
|
2646
|
+
"Content-Type": "application/vnd.api+json",
|
|
2647
|
+
...options.headers
|
|
2648
|
+
}
|
|
2649
|
+
});
|
|
2650
|
+
var getCrmPipelinesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2651
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2652
|
+
url: "/crm/pipelines/workspace/{workspace_id}",
|
|
2653
|
+
...options
|
|
2654
|
+
});
|
|
2158
2655
|
var patchSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPause = (options) => (options.client ?? client).patch({
|
|
2159
2656
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2160
2657
|
url: "/scheduling/calendar-syncs/scheduling/calendar-syncs/{id}/pause",
|
|
@@ -2192,6 +2689,11 @@ var patchThreadsById = (options) => (options.client ?? client).patch({
|
|
|
2192
2689
|
...options.headers
|
|
2193
2690
|
}
|
|
2194
2691
|
});
|
|
2692
|
+
var getSupportTicketsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2693
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2694
|
+
url: "/support/tickets/workspace/{workspace_id}",
|
|
2695
|
+
...options
|
|
2696
|
+
});
|
|
2195
2697
|
var deleteNotificationPreferencesById = (options) => (options.client ?? client).delete({
|
|
2196
2698
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2197
2699
|
url: "/notification-preferences/{id}",
|
|
@@ -2225,6 +2727,39 @@ var postWatcherClaims = (options) => (options.client ?? client).post({
|
|
|
2225
2727
|
...options.headers
|
|
2226
2728
|
}
|
|
2227
2729
|
});
|
|
2730
|
+
var getCrawlerJobs = (options) => (options.client ?? client).get({
|
|
2731
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2732
|
+
url: "/crawler/jobs",
|
|
2733
|
+
...options
|
|
2734
|
+
});
|
|
2735
|
+
var postCrawlerJobs = (options) => (options.client ?? client).post({
|
|
2736
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2737
|
+
url: "/crawler/jobs",
|
|
2738
|
+
...options,
|
|
2739
|
+
headers: {
|
|
2740
|
+
"Content-Type": "application/vnd.api+json",
|
|
2741
|
+
...options.headers
|
|
2742
|
+
}
|
|
2743
|
+
});
|
|
2744
|
+
var deleteCrmCompaniesById = (options) => (options.client ?? client).delete({
|
|
2745
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2746
|
+
url: "/crm/companies/{id}",
|
|
2747
|
+
...options
|
|
2748
|
+
});
|
|
2749
|
+
var getCrmCompaniesById = (options) => (options.client ?? client).get({
|
|
2750
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2751
|
+
url: "/crm/companies/{id}",
|
|
2752
|
+
...options
|
|
2753
|
+
});
|
|
2754
|
+
var patchCrmCompaniesById = (options) => (options.client ?? client).patch({
|
|
2755
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2756
|
+
url: "/crm/companies/{id}",
|
|
2757
|
+
...options,
|
|
2758
|
+
headers: {
|
|
2759
|
+
"Content-Type": "application/vnd.api+json",
|
|
2760
|
+
...options.headers
|
|
2761
|
+
}
|
|
2762
|
+
});
|
|
2228
2763
|
var patchSchedulingBookingsSchedulingBookingsByIdReschedule = (options) => (options.client ?? client).patch({
|
|
2229
2764
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2230
2765
|
url: "/scheduling/bookings/scheduling/bookings/{id}/reschedule",
|
|
@@ -2297,6 +2832,15 @@ var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
|
2297
2832
|
...options.headers
|
|
2298
2833
|
}
|
|
2299
2834
|
});
|
|
2835
|
+
var postCrmPipelines = (options) => (options.client ?? client).post({
|
|
2836
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2837
|
+
url: "/crm/pipelines",
|
|
2838
|
+
...options,
|
|
2839
|
+
headers: {
|
|
2840
|
+
"Content-Type": "application/vnd.api+json",
|
|
2841
|
+
...options.headers
|
|
2842
|
+
}
|
|
2843
|
+
});
|
|
2300
2844
|
var getExtractionResultsDocumentByDocumentId = (options) => (options.client ?? client).get({
|
|
2301
2845
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2302
2846
|
url: "/extraction/results/document/{document_id}",
|
|
@@ -2321,6 +2865,20 @@ var getWorkspacesById = (options) => (options.client ?? client).get({
|
|
|
2321
2865
|
url: "/workspaces/{id}",
|
|
2322
2866
|
...options
|
|
2323
2867
|
});
|
|
2868
|
+
var getCrawlerSchedules = (options) => (options.client ?? client).get({
|
|
2869
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2870
|
+
url: "/crawler/schedules",
|
|
2871
|
+
...options
|
|
2872
|
+
});
|
|
2873
|
+
var postCrawlerSchedules = (options) => (options.client ?? client).post({
|
|
2874
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2875
|
+
url: "/crawler/schedules",
|
|
2876
|
+
...options,
|
|
2877
|
+
headers: {
|
|
2878
|
+
"Content-Type": "application/vnd.api+json",
|
|
2879
|
+
...options.headers
|
|
2880
|
+
}
|
|
2881
|
+
});
|
|
2324
2882
|
var postWebhookConfigsBulkDisable = (options) => (options.client ?? client).post({
|
|
2325
2883
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2326
2884
|
url: "/webhook-configs/bulk-disable",
|
|
@@ -2423,6 +2981,15 @@ var postWorkspacesByWorkspaceIdExtractionByDocumentIdMapping = (options) => (opt
|
|
|
2423
2981
|
...options.headers
|
|
2424
2982
|
}
|
|
2425
2983
|
});
|
|
2984
|
+
var postConnectorsFullscriptCheckPatient = (options) => (options.client ?? client).post({
|
|
2985
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2986
|
+
url: "/connectors/fullscript/check-patient",
|
|
2987
|
+
...options,
|
|
2988
|
+
headers: {
|
|
2989
|
+
"Content-Type": "application/vnd.api+json",
|
|
2990
|
+
...options.headers
|
|
2991
|
+
}
|
|
2992
|
+
});
|
|
2426
2993
|
var getSchedulingEventTypes = (options) => (options.client ?? client).get({
|
|
2427
2994
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2428
2995
|
url: "/scheduling/event-types",
|
|
@@ -2437,6 +3004,25 @@ var postSchedulingEventTypes = (options) => (options.client ?? client).post({
|
|
|
2437
3004
|
...options.headers
|
|
2438
3005
|
}
|
|
2439
3006
|
});
|
|
3007
|
+
var deleteCrmPipelinesById = (options) => (options.client ?? client).delete({
|
|
3008
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3009
|
+
url: "/crm/pipelines/{id}",
|
|
3010
|
+
...options
|
|
3011
|
+
});
|
|
3012
|
+
var getCrmPipelinesById = (options) => (options.client ?? client).get({
|
|
3013
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3014
|
+
url: "/crm/pipelines/{id}",
|
|
3015
|
+
...options
|
|
3016
|
+
});
|
|
3017
|
+
var patchCrmPipelinesById = (options) => (options.client ?? client).patch({
|
|
3018
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3019
|
+
url: "/crm/pipelines/{id}",
|
|
3020
|
+
...options,
|
|
3021
|
+
headers: {
|
|
3022
|
+
"Content-Type": "application/vnd.api+json",
|
|
3023
|
+
...options.headers
|
|
3024
|
+
}
|
|
3025
|
+
});
|
|
2440
3026
|
var getPlansById = (options) => (options.client ?? client).get({
|
|
2441
3027
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2442
3028
|
url: "/plans/{id}",
|
|
@@ -2479,6 +3065,16 @@ var postTenantsByIdSchedulePurge = (options) => (options.client ?? client).post(
|
|
|
2479
3065
|
...options.headers
|
|
2480
3066
|
}
|
|
2481
3067
|
});
|
|
3068
|
+
var deleteCrmActivitiesById = (options) => (options.client ?? client).delete({
|
|
3069
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3070
|
+
url: "/crm/activities/{id}",
|
|
3071
|
+
...options
|
|
3072
|
+
});
|
|
3073
|
+
var getCrmActivitiesById = (options) => (options.client ?? client).get({
|
|
3074
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3075
|
+
url: "/crm/activities/{id}",
|
|
3076
|
+
...options
|
|
3077
|
+
});
|
|
2482
3078
|
var getUserProfiles = (options) => (options.client ?? client).get({
|
|
2483
3079
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2484
3080
|
url: "/user-profiles",
|
|
@@ -2600,6 +3196,24 @@ var getTransactions = (options) => (options.client ?? client).get({
|
|
|
2600
3196
|
url: "/transactions",
|
|
2601
3197
|
...options
|
|
2602
3198
|
});
|
|
3199
|
+
var postCatalogTaxonomies = (options) => (options.client ?? client).post({
|
|
3200
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3201
|
+
url: "/catalog/taxonomies",
|
|
3202
|
+
...options,
|
|
3203
|
+
headers: {
|
|
3204
|
+
"Content-Type": "application/vnd.api+json",
|
|
3205
|
+
...options.headers
|
|
3206
|
+
}
|
|
3207
|
+
});
|
|
3208
|
+
var postConnectorsOauthInitiate = (options) => (options.client ?? client).post({
|
|
3209
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3210
|
+
url: "/connectors/oauth/initiate",
|
|
3211
|
+
...options,
|
|
3212
|
+
headers: {
|
|
3213
|
+
"Content-Type": "application/vnd.api+json",
|
|
3214
|
+
...options.headers
|
|
3215
|
+
}
|
|
3216
|
+
});
|
|
2603
3217
|
var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
|
|
2604
3218
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2605
3219
|
url: "/search/saved/{id}/run",
|
|
@@ -2609,6 +3223,25 @@ var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
|
|
|
2609
3223
|
...options.headers
|
|
2610
3224
|
}
|
|
2611
3225
|
});
|
|
3226
|
+
var deleteCatalogProductsById = (options) => (options.client ?? client).delete({
|
|
3227
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3228
|
+
url: "/catalog/products/{id}",
|
|
3229
|
+
...options
|
|
3230
|
+
});
|
|
3231
|
+
var getCatalogProductsById = (options) => (options.client ?? client).get({
|
|
3232
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3233
|
+
url: "/catalog/products/{id}",
|
|
3234
|
+
...options
|
|
3235
|
+
});
|
|
3236
|
+
var patchCatalogProductsById = (options) => (options.client ?? client).patch({
|
|
3237
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3238
|
+
url: "/catalog/products/{id}",
|
|
3239
|
+
...options,
|
|
3240
|
+
headers: {
|
|
3241
|
+
"Content-Type": "application/vnd.api+json",
|
|
3242
|
+
...options.headers
|
|
3243
|
+
}
|
|
3244
|
+
});
|
|
2612
3245
|
var postWebhookConfigsBulkEnable = (options) => (options.client ?? client).post({
|
|
2613
3246
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2614
3247
|
url: "/webhook-configs/bulk-enable",
|
|
@@ -2627,6 +3260,25 @@ var postWebhookConfigsByIdReplay = (options) => (options.client ?? client).post(
|
|
|
2627
3260
|
...options.headers
|
|
2628
3261
|
}
|
|
2629
3262
|
});
|
|
3263
|
+
var deleteCatalogProductVariantsById = (options) => (options.client ?? client).delete({
|
|
3264
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3265
|
+
url: "/catalog/product-variants/{id}",
|
|
3266
|
+
...options
|
|
3267
|
+
});
|
|
3268
|
+
var getCatalogProductVariantsById = (options) => (options.client ?? client).get({
|
|
3269
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3270
|
+
url: "/catalog/product-variants/{id}",
|
|
3271
|
+
...options
|
|
3272
|
+
});
|
|
3273
|
+
var patchCatalogProductVariantsById = (options) => (options.client ?? client).patch({
|
|
3274
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3275
|
+
url: "/catalog/product-variants/{id}",
|
|
3276
|
+
...options,
|
|
3277
|
+
headers: {
|
|
3278
|
+
"Content-Type": "application/vnd.api+json",
|
|
3279
|
+
...options.headers
|
|
3280
|
+
}
|
|
3281
|
+
});
|
|
2630
3282
|
var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).post({
|
|
2631
3283
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2632
3284
|
url: "/webhook-deliveries/bulk-retry",
|
|
@@ -2742,6 +3394,25 @@ var patchSchedulingEventsById = (options) => (options.client ?? client).patch({
|
|
|
2742
3394
|
...options.headers
|
|
2743
3395
|
}
|
|
2744
3396
|
});
|
|
3397
|
+
var deleteConnectorsById = (options) => (options.client ?? client).delete({
|
|
3398
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3399
|
+
url: "/connectors/{id}",
|
|
3400
|
+
...options
|
|
3401
|
+
});
|
|
3402
|
+
var getConnectorsById = (options) => (options.client ?? client).get({
|
|
3403
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3404
|
+
url: "/connectors/{id}",
|
|
3405
|
+
...options
|
|
3406
|
+
});
|
|
3407
|
+
var patchConnectorsById = (options) => (options.client ?? client).patch({
|
|
3408
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3409
|
+
url: "/connectors/{id}",
|
|
3410
|
+
...options,
|
|
3411
|
+
headers: {
|
|
3412
|
+
"Content-Type": "application/vnd.api+json",
|
|
3413
|
+
...options.headers
|
|
3414
|
+
}
|
|
3415
|
+
});
|
|
2745
3416
|
var getWorkspaceMemberships = (options) => (options.client ?? client).get({
|
|
2746
3417
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2747
3418
|
url: "/workspace-memberships",
|
|
@@ -2884,6 +3555,15 @@ var getPlans = (options) => (options.client ?? client).get({
|
|
|
2884
3555
|
url: "/plans",
|
|
2885
3556
|
...options
|
|
2886
3557
|
});
|
|
3558
|
+
var postCrmActivities = (options) => (options.client ?? client).post({
|
|
3559
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3560
|
+
url: "/crm/activities",
|
|
3561
|
+
...options,
|
|
3562
|
+
headers: {
|
|
3563
|
+
"Content-Type": "application/vnd.api+json",
|
|
3564
|
+
...options.headers
|
|
3565
|
+
}
|
|
3566
|
+
});
|
|
2887
3567
|
var getSchedulingEvents = (options) => (options.client ?? client).get({
|
|
2888
3568
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2889
3569
|
url: "/scheduling/events",
|
|
@@ -2926,6 +3606,11 @@ var getExtractionDocuments = (options) => (options.client ?? client).get({
|
|
|
2926
3606
|
url: "/extraction/documents",
|
|
2927
3607
|
...options
|
|
2928
3608
|
});
|
|
3609
|
+
var getCrmDealsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3610
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3611
|
+
url: "/crm/deals/workspace/{workspace_id}",
|
|
3612
|
+
...options
|
|
3613
|
+
});
|
|
2929
3614
|
var patchExtractionResultsByIdSaveCorrections = (options) => (options.client ?? client).patch({
|
|
2930
3615
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2931
3616
|
url: "/extraction/results/{id}/save-corrections",
|
|
@@ -2944,6 +3629,11 @@ var postUsersAuthResendConfirmation = (options) => (options.client ?? client).po
|
|
|
2944
3629
|
...options.headers
|
|
2945
3630
|
}
|
|
2946
3631
|
});
|
|
3632
|
+
var getCrawlerResultsById = (options) => (options.client ?? client).get({
|
|
3633
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3634
|
+
url: "/crawler/results/{id}",
|
|
3635
|
+
...options
|
|
3636
|
+
});
|
|
2947
3637
|
var getAiMessages = (options) => (options.client ?? client).get({
|
|
2948
3638
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2949
3639
|
url: "/ai/messages",
|
|
@@ -2972,6 +3662,33 @@ var postWatcherEvents = (options) => (options.client ?? client).post({
|
|
|
2972
3662
|
...options.headers
|
|
2973
3663
|
}
|
|
2974
3664
|
});
|
|
3665
|
+
var postSupportTicketMessages = (options) => (options.client ?? client).post({
|
|
3666
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3667
|
+
url: "/support/ticket-messages",
|
|
3668
|
+
...options,
|
|
3669
|
+
headers: {
|
|
3670
|
+
"Content-Type": "application/vnd.api+json",
|
|
3671
|
+
...options.headers
|
|
3672
|
+
}
|
|
3673
|
+
});
|
|
3674
|
+
var postConnectorsOauthCallback = (options) => (options.client ?? client).post({
|
|
3675
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3676
|
+
url: "/connectors/oauth/callback",
|
|
3677
|
+
...options,
|
|
3678
|
+
headers: {
|
|
3679
|
+
"Content-Type": "application/vnd.api+json",
|
|
3680
|
+
...options.headers
|
|
3681
|
+
}
|
|
3682
|
+
});
|
|
3683
|
+
var postSupportTags = (options) => (options.client ?? client).post({
|
|
3684
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3685
|
+
url: "/support/tags",
|
|
3686
|
+
...options,
|
|
3687
|
+
headers: {
|
|
3688
|
+
"Content-Type": "application/vnd.api+json",
|
|
3689
|
+
...options.headers
|
|
3690
|
+
}
|
|
3691
|
+
});
|
|
2975
3692
|
var postAgentVersionsByIdSetSystemFields = (options) => (options.client ?? client).post({
|
|
2976
3693
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2977
3694
|
url: "/agent-versions/{id}/set-system-fields",
|
|
@@ -3023,6 +3740,11 @@ var postApiKeys = (options) => (options.client ?? client).post({
|
|
|
3023
3740
|
...options.headers
|
|
3024
3741
|
}
|
|
3025
3742
|
});
|
|
3743
|
+
var deleteSupportTagsById = (options) => (options.client ?? client).delete({
|
|
3744
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3745
|
+
url: "/support/tags/{id}",
|
|
3746
|
+
...options
|
|
3747
|
+
});
|
|
3026
3748
|
var postExtractionDocumentsBulkReprocess = (options) => (options.client ?? client).post({
|
|
3027
3749
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3028
3750
|
url: "/extraction/documents/bulk-reprocess",
|
|
@@ -3051,6 +3773,39 @@ var getWallet = (options) => (options.client ?? client).get({
|
|
|
3051
3773
|
url: "/wallet",
|
|
3052
3774
|
...options
|
|
3053
3775
|
});
|
|
3776
|
+
var deleteCrawlerSchedulesById = (options) => (options.client ?? client).delete({
|
|
3777
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3778
|
+
url: "/crawler/schedules/{id}",
|
|
3779
|
+
...options
|
|
3780
|
+
});
|
|
3781
|
+
var getCrawlerSchedulesById = (options) => (options.client ?? client).get({
|
|
3782
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3783
|
+
url: "/crawler/schedules/{id}",
|
|
3784
|
+
...options
|
|
3785
|
+
});
|
|
3786
|
+
var patchCrawlerSchedulesById = (options) => (options.client ?? client).patch({
|
|
3787
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3788
|
+
url: "/crawler/schedules/{id}",
|
|
3789
|
+
...options,
|
|
3790
|
+
headers: {
|
|
3791
|
+
"Content-Type": "application/vnd.api+json",
|
|
3792
|
+
...options.headers
|
|
3793
|
+
}
|
|
3794
|
+
});
|
|
3795
|
+
var postCrmDeals = (options) => (options.client ?? client).post({
|
|
3796
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3797
|
+
url: "/crm/deals",
|
|
3798
|
+
...options,
|
|
3799
|
+
headers: {
|
|
3800
|
+
"Content-Type": "application/vnd.api+json",
|
|
3801
|
+
...options.headers
|
|
3802
|
+
}
|
|
3803
|
+
});
|
|
3804
|
+
var getCrmActivitiesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3805
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3806
|
+
url: "/crm/activities/workspace/{workspace_id}",
|
|
3807
|
+
...options
|
|
3808
|
+
});
|
|
3054
3809
|
var getAgents = (options) => (options.client ?? client).get({
|
|
3055
3810
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3056
3811
|
url: "/agents",
|
|
@@ -3070,6 +3825,29 @@ var getApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options.c
|
|
|
3070
3825
|
url: "/applications/{application_id}/email-templates/{slug}",
|
|
3071
3826
|
...options
|
|
3072
3827
|
});
|
|
3828
|
+
var postSupportTicketRatings = (options) => (options.client ?? client).post({
|
|
3829
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3830
|
+
url: "/support/ticket-ratings",
|
|
3831
|
+
...options,
|
|
3832
|
+
headers: {
|
|
3833
|
+
"Content-Type": "application/vnd.api+json",
|
|
3834
|
+
...options.headers
|
|
3835
|
+
}
|
|
3836
|
+
});
|
|
3837
|
+
var getConnectors = (options) => (options.client ?? client).get({
|
|
3838
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3839
|
+
url: "/connectors",
|
|
3840
|
+
...options
|
|
3841
|
+
});
|
|
3842
|
+
var postConnectors = (options) => (options.client ?? client).post({
|
|
3843
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3844
|
+
url: "/connectors",
|
|
3845
|
+
...options,
|
|
3846
|
+
headers: {
|
|
3847
|
+
"Content-Type": "application/vnd.api+json",
|
|
3848
|
+
...options.headers
|
|
3849
|
+
}
|
|
3850
|
+
});
|
|
3073
3851
|
var postAgentsByIdExport = (options) => (options.client ?? client).post({
|
|
3074
3852
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3075
3853
|
url: "/agents/{id}/export",
|
|
@@ -3122,16 +3900,68 @@ var postTrainingExamplesBulkDelete = (options) => (options.client ?? client).pos
|
|
|
3122
3900
|
...options.headers
|
|
3123
3901
|
}
|
|
3124
3902
|
});
|
|
3903
|
+
var getCrmRelationshipsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3904
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3905
|
+
url: "/crm/relationships/workspace/{workspace_id}",
|
|
3906
|
+
...options
|
|
3907
|
+
});
|
|
3908
|
+
var getCrmCompaniesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3909
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3910
|
+
url: "/crm/companies/workspace/{workspace_id}",
|
|
3911
|
+
...options
|
|
3912
|
+
});
|
|
3125
3913
|
var getCreditPackages = (options) => (options.client ?? client).get({
|
|
3126
3914
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3127
3915
|
url: "/credit-packages",
|
|
3128
3916
|
...options
|
|
3129
3917
|
});
|
|
3918
|
+
var postCrmPipelineStages = (options) => (options.client ?? client).post({
|
|
3919
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3920
|
+
url: "/crm/pipeline-stages",
|
|
3921
|
+
...options,
|
|
3922
|
+
headers: {
|
|
3923
|
+
"Content-Type": "application/vnd.api+json",
|
|
3924
|
+
...options.headers
|
|
3925
|
+
}
|
|
3926
|
+
});
|
|
3927
|
+
var getCatalogProductVariantsProductByProductId = (options) => (options.client ?? client).get({
|
|
3928
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3929
|
+
url: "/catalog/product-variants/product/{product_id}",
|
|
3930
|
+
...options
|
|
3931
|
+
});
|
|
3130
3932
|
var getUsers = (options) => (options.client ?? client).get({
|
|
3131
3933
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3132
3934
|
url: "/users",
|
|
3133
3935
|
...options
|
|
3134
3936
|
});
|
|
3937
|
+
var deleteSupportTicketsById = (options) => (options.client ?? client).delete({
|
|
3938
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3939
|
+
url: "/support/tickets/{id}",
|
|
3940
|
+
...options
|
|
3941
|
+
});
|
|
3942
|
+
var getSupportTicketsById = (options) => (options.client ?? client).get({
|
|
3943
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3944
|
+
url: "/support/tickets/{id}",
|
|
3945
|
+
...options
|
|
3946
|
+
});
|
|
3947
|
+
var patchSupportTicketsById = (options) => (options.client ?? client).patch({
|
|
3948
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3949
|
+
url: "/support/tickets/{id}",
|
|
3950
|
+
...options,
|
|
3951
|
+
headers: {
|
|
3952
|
+
"Content-Type": "application/vnd.api+json",
|
|
3953
|
+
...options.headers
|
|
3954
|
+
}
|
|
3955
|
+
});
|
|
3956
|
+
var postCrmExports = (options) => (options.client ?? client).post({
|
|
3957
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3958
|
+
url: "/crm/exports",
|
|
3959
|
+
...options,
|
|
3960
|
+
headers: {
|
|
3961
|
+
"Content-Type": "application/vnd.api+json",
|
|
3962
|
+
...options.headers
|
|
3963
|
+
}
|
|
3964
|
+
});
|
|
3135
3965
|
|
|
3136
3966
|
// src/pagination.ts
|
|
3137
3967
|
var DEFAULT_MAX_PAGES = 500;
|
|
@@ -3503,12 +4333,15 @@ function createAiNamespace(rb) {
|
|
|
3503
4333
|
);
|
|
3504
4334
|
},
|
|
3505
4335
|
/** Send a message to an AI conversation (non-streaming) */
|
|
3506
|
-
send: async (
|
|
4336
|
+
send: async (conversationId, body, options) => {
|
|
3507
4337
|
return rb.execute(
|
|
3508
4338
|
postAiMessages,
|
|
3509
4339
|
{
|
|
3510
4340
|
body: {
|
|
3511
|
-
data: {
|
|
4341
|
+
data: {
|
|
4342
|
+
type: "message",
|
|
4343
|
+
attributes: { ...body, conversation_id: conversationId }
|
|
4344
|
+
}
|
|
3512
4345
|
}
|
|
3513
4346
|
},
|
|
3514
4347
|
options
|
|
@@ -3596,208 +4429,1670 @@ function createBillingNamespace(rb) {
|
|
|
3596
4429
|
)
|
|
3597
4430
|
);
|
|
3598
4431
|
},
|
|
3599
|
-
get: async (id, options) => {
|
|
4432
|
+
get: async (id, options) => {
|
|
4433
|
+
return rb.execute(
|
|
4434
|
+
getCreditPackagesById,
|
|
4435
|
+
{ path: { id } },
|
|
4436
|
+
options
|
|
4437
|
+
);
|
|
4438
|
+
}
|
|
4439
|
+
},
|
|
4440
|
+
paymentMethods: {
|
|
4441
|
+
delete: async (id, options) => {
|
|
4442
|
+
return rb.executeDelete(
|
|
4443
|
+
deletePaymentMethodsById,
|
|
4444
|
+
{ path: { id } },
|
|
4445
|
+
options
|
|
4446
|
+
);
|
|
4447
|
+
},
|
|
4448
|
+
list: async (options) => {
|
|
4449
|
+
return rb.execute(
|
|
4450
|
+
getPaymentMethods,
|
|
4451
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
4452
|
+
options
|
|
4453
|
+
);
|
|
4454
|
+
},
|
|
4455
|
+
listAll: async (options) => {
|
|
4456
|
+
return paginateToArray(
|
|
4457
|
+
rb.createPaginatedFetcher(
|
|
4458
|
+
getPaymentMethods,
|
|
4459
|
+
(page, pageSize) => ({
|
|
4460
|
+
query: { page: { number: page, size: pageSize } }
|
|
4461
|
+
}),
|
|
4462
|
+
options
|
|
4463
|
+
)
|
|
4464
|
+
);
|
|
4465
|
+
},
|
|
4466
|
+
create: async (attributes, options) => {
|
|
4467
|
+
return rb.execute(
|
|
4468
|
+
postPaymentMethods,
|
|
4469
|
+
{ body: { data: { type: "payment_method", attributes } } },
|
|
4470
|
+
options
|
|
4471
|
+
);
|
|
4472
|
+
},
|
|
4473
|
+
update: async (id, attributes, options) => {
|
|
4474
|
+
return rb.execute(
|
|
4475
|
+
patchPaymentMethodsById,
|
|
4476
|
+
{
|
|
4477
|
+
path: { id },
|
|
4478
|
+
body: { data: { id, type: "payment_method", attributes } }
|
|
4479
|
+
},
|
|
4480
|
+
options
|
|
4481
|
+
);
|
|
4482
|
+
},
|
|
4483
|
+
get: async (id, options) => {
|
|
4484
|
+
return rb.execute(
|
|
4485
|
+
getPaymentMethodsById,
|
|
4486
|
+
{ path: { id } },
|
|
4487
|
+
options
|
|
4488
|
+
);
|
|
4489
|
+
}
|
|
4490
|
+
}
|
|
4491
|
+
};
|
|
4492
|
+
}
|
|
4493
|
+
|
|
4494
|
+
// src/namespaces/catalog.ts
|
|
4495
|
+
function createCatalogNamespace(rb) {
|
|
4496
|
+
return {
|
|
4497
|
+
/**
|
|
4498
|
+
* Products — product catalog management
|
|
4499
|
+
*/
|
|
4500
|
+
products: {
|
|
4501
|
+
/** List products for a workspace */
|
|
4502
|
+
list: async (workspaceId, options) => {
|
|
4503
|
+
return rb.execute(
|
|
4504
|
+
getCatalogProductsWorkspaceByWorkspaceId,
|
|
4505
|
+
{
|
|
4506
|
+
path: { workspace_id: workspaceId },
|
|
4507
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
4508
|
+
},
|
|
4509
|
+
options
|
|
4510
|
+
);
|
|
4511
|
+
},
|
|
4512
|
+
/** Get a product by ID */
|
|
4513
|
+
get: async (id, options) => {
|
|
4514
|
+
return rb.execute(
|
|
4515
|
+
getCatalogProductsById,
|
|
4516
|
+
{ path: { id } },
|
|
4517
|
+
options
|
|
4518
|
+
);
|
|
4519
|
+
},
|
|
4520
|
+
/** Create a new product */
|
|
4521
|
+
create: async (attributes, options) => {
|
|
4522
|
+
return rb.execute(
|
|
4523
|
+
postCatalogProducts,
|
|
4524
|
+
{
|
|
4525
|
+
body: {
|
|
4526
|
+
data: { type: "catalog_product", attributes }
|
|
4527
|
+
}
|
|
4528
|
+
},
|
|
4529
|
+
options
|
|
4530
|
+
);
|
|
4531
|
+
},
|
|
4532
|
+
/** Update a product */
|
|
4533
|
+
update: async (id, attributes, options) => {
|
|
4534
|
+
return rb.execute(
|
|
4535
|
+
patchCatalogProductsById,
|
|
4536
|
+
{
|
|
4537
|
+
path: { id },
|
|
4538
|
+
body: {
|
|
4539
|
+
data: { type: "catalog_product", id, attributes }
|
|
4540
|
+
}
|
|
4541
|
+
},
|
|
4542
|
+
options
|
|
4543
|
+
);
|
|
4544
|
+
},
|
|
4545
|
+
/** Delete a product */
|
|
4546
|
+
delete: async (id, options) => {
|
|
4547
|
+
return rb.executeDelete(
|
|
4548
|
+
deleteCatalogProductsById,
|
|
4549
|
+
{ path: { id } },
|
|
4550
|
+
options
|
|
4551
|
+
);
|
|
4552
|
+
}
|
|
4553
|
+
},
|
|
4554
|
+
/**
|
|
4555
|
+
* Variants — product variants (SKUs)
|
|
4556
|
+
*/
|
|
4557
|
+
variants: {
|
|
4558
|
+
/** Get a variant by ID */
|
|
4559
|
+
get: async (id, options) => {
|
|
4560
|
+
return rb.execute(
|
|
4561
|
+
getCatalogProductVariantsById,
|
|
4562
|
+
{ path: { id } },
|
|
4563
|
+
options
|
|
4564
|
+
);
|
|
4565
|
+
},
|
|
4566
|
+
/** List variants for a product */
|
|
4567
|
+
listByProduct: async (productId, options) => {
|
|
4568
|
+
return rb.execute(
|
|
4569
|
+
getCatalogProductVariantsProductByProductId,
|
|
4570
|
+
{ path: { product_id: productId } },
|
|
4571
|
+
options
|
|
4572
|
+
);
|
|
4573
|
+
},
|
|
4574
|
+
/** Create a product variant */
|
|
4575
|
+
create: async (attributes, options) => {
|
|
4576
|
+
return rb.execute(
|
|
4577
|
+
postCatalogProductVariants,
|
|
4578
|
+
{
|
|
4579
|
+
body: {
|
|
4580
|
+
data: { type: "catalog_product_variant", attributes }
|
|
4581
|
+
}
|
|
4582
|
+
},
|
|
4583
|
+
options
|
|
4584
|
+
);
|
|
4585
|
+
},
|
|
4586
|
+
/** Update a product variant */
|
|
4587
|
+
update: async (id, attributes, options) => {
|
|
4588
|
+
return rb.execute(
|
|
4589
|
+
patchCatalogProductVariantsById,
|
|
4590
|
+
{
|
|
4591
|
+
path: { id },
|
|
4592
|
+
body: {
|
|
4593
|
+
data: { type: "catalog_product_variant", id, attributes }
|
|
4594
|
+
}
|
|
4595
|
+
},
|
|
4596
|
+
options
|
|
4597
|
+
);
|
|
4598
|
+
},
|
|
4599
|
+
/** Delete a product variant */
|
|
4600
|
+
delete: async (id, options) => {
|
|
4601
|
+
return rb.executeDelete(
|
|
4602
|
+
deleteCatalogProductVariantsById,
|
|
4603
|
+
{ path: { id } },
|
|
4604
|
+
options
|
|
4605
|
+
);
|
|
4606
|
+
}
|
|
4607
|
+
},
|
|
4608
|
+
/**
|
|
4609
|
+
* Taxonomies — product classification trees
|
|
4610
|
+
*/
|
|
4611
|
+
taxonomies: {
|
|
4612
|
+
/** List taxonomies for an application */
|
|
4613
|
+
listByApplication: async (applicationId, options) => {
|
|
4614
|
+
return rb.execute(
|
|
4615
|
+
getCatalogTaxonomiesApplicationByApplicationId,
|
|
4616
|
+
{ path: { application_id: applicationId } },
|
|
4617
|
+
options
|
|
4618
|
+
);
|
|
4619
|
+
},
|
|
4620
|
+
/** Get a taxonomy by ID */
|
|
4621
|
+
get: async (id, options) => {
|
|
4622
|
+
return rb.execute(
|
|
4623
|
+
getCatalogTaxonomiesById,
|
|
4624
|
+
{ path: { id } },
|
|
4625
|
+
options
|
|
4626
|
+
);
|
|
4627
|
+
},
|
|
4628
|
+
/** Create a taxonomy */
|
|
4629
|
+
create: async (attributes, options) => {
|
|
4630
|
+
return rb.execute(
|
|
4631
|
+
postCatalogTaxonomies,
|
|
4632
|
+
{
|
|
4633
|
+
body: {
|
|
4634
|
+
data: { type: "catalog_taxonomy", attributes }
|
|
4635
|
+
}
|
|
4636
|
+
},
|
|
4637
|
+
options
|
|
4638
|
+
);
|
|
4639
|
+
},
|
|
4640
|
+
/** Update a taxonomy */
|
|
4641
|
+
update: async (id, attributes, options) => {
|
|
4642
|
+
return rb.execute(
|
|
4643
|
+
patchCatalogTaxonomiesById,
|
|
4644
|
+
{
|
|
4645
|
+
path: { id },
|
|
4646
|
+
body: {
|
|
4647
|
+
data: { type: "catalog_taxonomy", id, attributes }
|
|
4648
|
+
}
|
|
4649
|
+
},
|
|
4650
|
+
options
|
|
4651
|
+
);
|
|
4652
|
+
},
|
|
4653
|
+
/** Delete a taxonomy */
|
|
4654
|
+
delete: async (id, options) => {
|
|
4655
|
+
return rb.executeDelete(
|
|
4656
|
+
deleteCatalogTaxonomiesById,
|
|
4657
|
+
{ path: { id } },
|
|
4658
|
+
options
|
|
4659
|
+
);
|
|
4660
|
+
}
|
|
4661
|
+
},
|
|
4662
|
+
/**
|
|
4663
|
+
* Taxonomy nodes — nodes within a taxonomy tree
|
|
4664
|
+
*/
|
|
4665
|
+
taxonomyNodes: {
|
|
4666
|
+
/** List nodes for a taxonomy */
|
|
4667
|
+
listByTaxonomy: async (taxonomyId, options) => {
|
|
4668
|
+
return rb.execute(
|
|
4669
|
+
getCatalogTaxonomyNodesTaxonomyByTaxonomyId,
|
|
4670
|
+
{ path: { taxonomy_id: taxonomyId } },
|
|
4671
|
+
options
|
|
4672
|
+
);
|
|
4673
|
+
},
|
|
4674
|
+
/** Get a taxonomy node by ID */
|
|
4675
|
+
get: async (id, options) => {
|
|
4676
|
+
return rb.execute(
|
|
4677
|
+
getCatalogTaxonomyNodesById,
|
|
4678
|
+
{ path: { id } },
|
|
4679
|
+
options
|
|
4680
|
+
);
|
|
4681
|
+
},
|
|
4682
|
+
/** Create a taxonomy node */
|
|
4683
|
+
create: async (attributes, options) => {
|
|
4684
|
+
return rb.execute(
|
|
4685
|
+
postCatalogTaxonomyNodes,
|
|
4686
|
+
{
|
|
4687
|
+
body: {
|
|
4688
|
+
data: { type: "catalog_taxonomy_node", attributes }
|
|
4689
|
+
}
|
|
4690
|
+
},
|
|
4691
|
+
options
|
|
4692
|
+
);
|
|
4693
|
+
},
|
|
4694
|
+
/** Update a taxonomy node */
|
|
4695
|
+
update: async (id, attributes, options) => {
|
|
4696
|
+
return rb.execute(
|
|
4697
|
+
patchCatalogTaxonomyNodesById,
|
|
4698
|
+
{
|
|
4699
|
+
path: { id },
|
|
4700
|
+
body: {
|
|
4701
|
+
data: { type: "catalog_taxonomy_node", id, attributes }
|
|
4702
|
+
}
|
|
4703
|
+
},
|
|
4704
|
+
options
|
|
4705
|
+
);
|
|
4706
|
+
},
|
|
4707
|
+
/** Delete a taxonomy node */
|
|
4708
|
+
delete: async (id, options) => {
|
|
4709
|
+
return rb.executeDelete(
|
|
4710
|
+
deleteCatalogTaxonomyNodesById,
|
|
4711
|
+
{ path: { id } },
|
|
4712
|
+
options
|
|
4713
|
+
);
|
|
4714
|
+
}
|
|
4715
|
+
}
|
|
4716
|
+
};
|
|
4717
|
+
}
|
|
4718
|
+
|
|
4719
|
+
// src/namespaces/communication.ts
|
|
4720
|
+
function createCommunicationNamespace(rb) {
|
|
4721
|
+
return {
|
|
4722
|
+
notifications: {
|
|
4723
|
+
/** List notification logs (alias for list) */
|
|
4724
|
+
logs: async (options) => {
|
|
4725
|
+
return rb.execute(
|
|
4726
|
+
getNotificationLogs,
|
|
4727
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
4728
|
+
options
|
|
4729
|
+
);
|
|
4730
|
+
},
|
|
4731
|
+
list: async (options) => {
|
|
4732
|
+
return rb.execute(
|
|
4733
|
+
getNotificationLogs,
|
|
4734
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
4735
|
+
options
|
|
4736
|
+
);
|
|
4737
|
+
},
|
|
4738
|
+
listAll: async (options) => {
|
|
4739
|
+
return paginateToArray(
|
|
4740
|
+
rb.createPaginatedFetcher(
|
|
4741
|
+
getNotificationLogs,
|
|
4742
|
+
(page, pageSize) => ({
|
|
4743
|
+
query: { page: { number: page, size: pageSize } }
|
|
4744
|
+
}),
|
|
4745
|
+
options
|
|
4746
|
+
)
|
|
4747
|
+
);
|
|
4748
|
+
},
|
|
4749
|
+
get: async (id, options) => {
|
|
4750
|
+
return rb.execute(
|
|
4751
|
+
getNotificationLogsById,
|
|
4752
|
+
{ path: { id } },
|
|
4753
|
+
options
|
|
4754
|
+
);
|
|
4755
|
+
},
|
|
4756
|
+
methods: {
|
|
4757
|
+
delete: async (id, options) => {
|
|
4758
|
+
return rb.executeDelete(
|
|
4759
|
+
deleteNotificationMethodsById,
|
|
4760
|
+
{ path: { id } },
|
|
4761
|
+
options
|
|
4762
|
+
);
|
|
4763
|
+
},
|
|
4764
|
+
list: async (options) => {
|
|
4765
|
+
return rb.execute(
|
|
4766
|
+
getNotificationMethods,
|
|
4767
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
4768
|
+
options
|
|
4769
|
+
);
|
|
4770
|
+
},
|
|
4771
|
+
listAll: async (options) => {
|
|
4772
|
+
return paginateToArray(
|
|
4773
|
+
rb.createPaginatedFetcher(
|
|
4774
|
+
getNotificationMethods,
|
|
4775
|
+
(page, pageSize) => ({
|
|
4776
|
+
query: { page: { number: page, size: pageSize } }
|
|
4777
|
+
}),
|
|
4778
|
+
options
|
|
4779
|
+
)
|
|
4780
|
+
);
|
|
4781
|
+
},
|
|
4782
|
+
create: async (attributes, options) => {
|
|
4783
|
+
return rb.execute(
|
|
4784
|
+
postNotificationMethods,
|
|
4785
|
+
{ body: { data: { type: "notification_method", attributes } } },
|
|
4786
|
+
options
|
|
4787
|
+
);
|
|
4788
|
+
},
|
|
4789
|
+
update: async (id, attributes, options) => {
|
|
4790
|
+
return rb.execute(
|
|
4791
|
+
patchNotificationMethodsById,
|
|
4792
|
+
{
|
|
4793
|
+
path: { id },
|
|
4794
|
+
body: { data: { id, type: "notification_method", attributes } }
|
|
4795
|
+
},
|
|
4796
|
+
options
|
|
4797
|
+
);
|
|
4798
|
+
},
|
|
4799
|
+
get: async (id, options) => {
|
|
4800
|
+
return rb.execute(
|
|
4801
|
+
getNotificationMethodsById,
|
|
4802
|
+
{ path: { id } },
|
|
4803
|
+
options
|
|
4804
|
+
);
|
|
4805
|
+
}
|
|
4806
|
+
},
|
|
4807
|
+
preferences: {
|
|
4808
|
+
delete: async (id, options) => {
|
|
4809
|
+
return rb.executeDelete(
|
|
4810
|
+
deleteNotificationPreferencesById,
|
|
4811
|
+
{ path: { id } },
|
|
4812
|
+
options
|
|
4813
|
+
);
|
|
4814
|
+
},
|
|
4815
|
+
list: async (options) => {
|
|
4816
|
+
return rb.execute(
|
|
4817
|
+
getNotificationPreferences,
|
|
4818
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
4819
|
+
options
|
|
4820
|
+
);
|
|
4821
|
+
},
|
|
4822
|
+
listAll: async (options) => {
|
|
4823
|
+
return paginateToArray(
|
|
4824
|
+
rb.createPaginatedFetcher(
|
|
4825
|
+
getNotificationPreferences,
|
|
4826
|
+
(page, pageSize) => ({
|
|
4827
|
+
query: { page: { number: page, size: pageSize } }
|
|
4828
|
+
}),
|
|
4829
|
+
options
|
|
4830
|
+
)
|
|
4831
|
+
);
|
|
4832
|
+
},
|
|
4833
|
+
create: async (attributes, options) => {
|
|
4834
|
+
return rb.execute(
|
|
4835
|
+
postNotificationPreferences,
|
|
4836
|
+
{ body: { data: { type: "notification_preference", attributes } } },
|
|
4837
|
+
options
|
|
4838
|
+
);
|
|
4839
|
+
},
|
|
4840
|
+
update: async (id, attributes, options) => {
|
|
4841
|
+
return rb.execute(
|
|
4842
|
+
patchNotificationPreferencesById,
|
|
4843
|
+
{
|
|
4844
|
+
path: { id },
|
|
4845
|
+
body: {
|
|
4846
|
+
data: { id, type: "notification_preference", attributes }
|
|
4847
|
+
}
|
|
4848
|
+
},
|
|
4849
|
+
options
|
|
4850
|
+
);
|
|
4851
|
+
},
|
|
4852
|
+
get: async (id, options) => {
|
|
4853
|
+
return rb.execute(
|
|
4854
|
+
getNotificationPreferencesById,
|
|
4855
|
+
{ path: { id } },
|
|
4856
|
+
options
|
|
4857
|
+
);
|
|
4858
|
+
}
|
|
4859
|
+
}
|
|
4860
|
+
}
|
|
4861
|
+
};
|
|
4862
|
+
}
|
|
4863
|
+
|
|
4864
|
+
// src/namespaces/connectors.ts
|
|
4865
|
+
function createConnectorsNamespace(rb) {
|
|
4866
|
+
return {
|
|
4867
|
+
/**
|
|
4868
|
+
* Connector Instances — configured external system connections
|
|
4869
|
+
*/
|
|
4870
|
+
instances: {
|
|
4871
|
+
/** List connector instances for the current workspace */
|
|
4872
|
+
list: async (options) => rb.execute(getConnectors, {}, options),
|
|
4873
|
+
/** Get a connector instance by ID */
|
|
4874
|
+
get: async (id, options) => rb.execute(
|
|
4875
|
+
getConnectorsById,
|
|
4876
|
+
{ path: { id } },
|
|
4877
|
+
options
|
|
4878
|
+
),
|
|
4879
|
+
/** Create a new connector instance */
|
|
4880
|
+
create: async (attributes, options) => rb.execute(
|
|
4881
|
+
postConnectors,
|
|
4882
|
+
{ body: { data: { type: "connector_instance", attributes } } },
|
|
4883
|
+
options
|
|
4884
|
+
),
|
|
4885
|
+
/** Update a connector instance */
|
|
4886
|
+
update: async (id, attributes, options) => rb.execute(
|
|
4887
|
+
patchConnectorsById,
|
|
4888
|
+
{
|
|
4889
|
+
path: { id },
|
|
4890
|
+
body: { data: { type: "connector_instance", id, attributes } }
|
|
4891
|
+
},
|
|
4892
|
+
options
|
|
4893
|
+
),
|
|
4894
|
+
/** Delete a connector instance */
|
|
4895
|
+
delete: async (id, options) => rb.executeDelete(deleteConnectorsById, { path: { id } }, options)
|
|
4896
|
+
},
|
|
4897
|
+
/**
|
|
4898
|
+
* Credentials — OAuth tokens and API keys for external systems
|
|
4899
|
+
*/
|
|
4900
|
+
credentials: {
|
|
4901
|
+
/** List credentials for the current workspace */
|
|
4902
|
+
list: async (options) => rb.execute(getConnectorsCredentials, {}, options),
|
|
4903
|
+
/** Get a credential by ID */
|
|
4904
|
+
get: async (id, options) => rb.execute(
|
|
4905
|
+
getConnectorsCredentialsById,
|
|
4906
|
+
{ path: { id } },
|
|
4907
|
+
options
|
|
4908
|
+
),
|
|
4909
|
+
/** Refresh an OAuth credential */
|
|
4910
|
+
refresh: async (id, options) => rb.execute(
|
|
4911
|
+
postConnectorsCredentialsByIdRefresh,
|
|
4912
|
+
{ path: { id }, body: { data: {} } },
|
|
4913
|
+
options
|
|
4914
|
+
)
|
|
4915
|
+
},
|
|
4916
|
+
/**
|
|
4917
|
+
* OAuth — initiate and complete connector OAuth flows
|
|
4918
|
+
*/
|
|
4919
|
+
oauth: {
|
|
4920
|
+
/**
|
|
4921
|
+
* Get the OAuth authorization URL for a connector type.
|
|
4922
|
+
* Returns the URL to redirect the user to for authorization.
|
|
4923
|
+
*/
|
|
4924
|
+
connect: async (connectorType, workspaceId, options) => rb.execute(
|
|
4925
|
+
postConnectorsOauthInitiate,
|
|
4926
|
+
{
|
|
4927
|
+
body: {
|
|
4928
|
+
data: {
|
|
4929
|
+
type: "connector_instance",
|
|
4930
|
+
attributes: {
|
|
4931
|
+
connector_type: connectorType,
|
|
4932
|
+
workspace_id: workspaceId
|
|
4933
|
+
}
|
|
4934
|
+
}
|
|
4935
|
+
}
|
|
4936
|
+
},
|
|
4937
|
+
options
|
|
4938
|
+
),
|
|
4939
|
+
/**
|
|
4940
|
+
* Exchange OAuth authorization code for a credential.
|
|
4941
|
+
* Called from the redirect handler after the user authorizes in the provider.
|
|
4942
|
+
*/
|
|
4943
|
+
callback: async (connectorType, code, state, workspaceId, options) => rb.execute(
|
|
4944
|
+
postConnectorsOauthCallback,
|
|
4945
|
+
{
|
|
4946
|
+
body: {
|
|
4947
|
+
data: {
|
|
4948
|
+
type: "connector_instance",
|
|
4949
|
+
attributes: {
|
|
4950
|
+
connector_type: connectorType,
|
|
4951
|
+
code,
|
|
4952
|
+
state,
|
|
4953
|
+
workspace_id: workspaceId
|
|
4954
|
+
}
|
|
4955
|
+
}
|
|
4956
|
+
}
|
|
4957
|
+
},
|
|
4958
|
+
options
|
|
4959
|
+
)
|
|
4960
|
+
},
|
|
4961
|
+
/**
|
|
4962
|
+
* Supported Connectors — discover available integrations
|
|
4963
|
+
*/
|
|
4964
|
+
available: {
|
|
4965
|
+
/** List all supported connector types */
|
|
4966
|
+
list: () => [
|
|
4967
|
+
"salesforce",
|
|
4968
|
+
"sharepoint",
|
|
4969
|
+
"microsoft_365",
|
|
4970
|
+
"outlook",
|
|
4971
|
+
"gmail",
|
|
4972
|
+
"slack",
|
|
4973
|
+
"hubspot",
|
|
4974
|
+
"notion",
|
|
4975
|
+
"jira",
|
|
4976
|
+
"confluence",
|
|
4977
|
+
"fullscript",
|
|
4978
|
+
"github",
|
|
4979
|
+
"gitlab",
|
|
4980
|
+
"google_calendar",
|
|
4981
|
+
"google_chat",
|
|
4982
|
+
"custom"
|
|
4983
|
+
]
|
|
4984
|
+
},
|
|
4985
|
+
/**
|
|
4986
|
+
* Fullscript — supplement prescribing platform integration.
|
|
4987
|
+
*
|
|
4988
|
+
* Requires a Fullscript connector instance and OAuth credential.
|
|
4989
|
+
* Use `connectors.oauth.connect("fullscript", workspaceId)` to authorize.
|
|
4990
|
+
*/
|
|
4991
|
+
fullscript: {
|
|
4992
|
+
/**
|
|
4993
|
+
* Check if a patient exists in Fullscript by email address.
|
|
4994
|
+
* Returns the patient if found, or null if not found.
|
|
4995
|
+
*/
|
|
4996
|
+
checkPatient: async (connectorId, workspaceId, email, options) => rb.execute(
|
|
4997
|
+
postConnectorsFullscriptCheckPatient,
|
|
4998
|
+
{
|
|
4999
|
+
body: {
|
|
5000
|
+
data: {
|
|
5001
|
+
type: "connector_instance",
|
|
5002
|
+
attributes: {
|
|
5003
|
+
connector_id: connectorId,
|
|
5004
|
+
workspace_id: workspaceId,
|
|
5005
|
+
email
|
|
5006
|
+
}
|
|
5007
|
+
}
|
|
5008
|
+
}
|
|
5009
|
+
},
|
|
5010
|
+
options
|
|
5011
|
+
),
|
|
5012
|
+
/**
|
|
5013
|
+
* Create a patient record in Fullscript.
|
|
5014
|
+
*/
|
|
5015
|
+
createPatient: async (connectorId, workspaceId, attrs, options) => rb.execute(
|
|
5016
|
+
postConnectorsFullscriptCreatePatient,
|
|
5017
|
+
{
|
|
5018
|
+
body: {
|
|
5019
|
+
data: {
|
|
5020
|
+
type: "connector_instance",
|
|
5021
|
+
attributes: {
|
|
5022
|
+
connector_id: connectorId,
|
|
5023
|
+
workspace_id: workspaceId,
|
|
5024
|
+
...attrs
|
|
5025
|
+
}
|
|
5026
|
+
}
|
|
5027
|
+
}
|
|
5028
|
+
},
|
|
5029
|
+
options
|
|
5030
|
+
),
|
|
5031
|
+
/**
|
|
5032
|
+
* Get an embed session grant token for the Fullscript prescribing widget.
|
|
5033
|
+
* Token is short-lived (5-15 minutes). Cached server-side for 2 minutes.
|
|
5034
|
+
*/
|
|
5035
|
+
sessionGrant: async (connectorId, workspaceId, patientId, options) => rb.execute(
|
|
5036
|
+
postConnectorsFullscriptSessionGrant,
|
|
5037
|
+
{
|
|
5038
|
+
body: {
|
|
5039
|
+
data: {
|
|
5040
|
+
type: "connector_instance",
|
|
5041
|
+
attributes: {
|
|
5042
|
+
connector_id: connectorId,
|
|
5043
|
+
workspace_id: workspaceId,
|
|
5044
|
+
patient_id: patientId
|
|
5045
|
+
}
|
|
5046
|
+
}
|
|
5047
|
+
}
|
|
5048
|
+
},
|
|
5049
|
+
options
|
|
5050
|
+
),
|
|
5051
|
+
oauth: {
|
|
5052
|
+
/** Get the Fullscript OAuth authorization URL */
|
|
5053
|
+
connect: async (workspaceId, options) => rb.execute(
|
|
5054
|
+
postConnectorsOauthInitiate,
|
|
5055
|
+
{
|
|
5056
|
+
body: {
|
|
5057
|
+
data: {
|
|
5058
|
+
type: "connector_instance",
|
|
5059
|
+
attributes: {
|
|
5060
|
+
connector_type: "fullscript",
|
|
5061
|
+
workspace_id: workspaceId
|
|
5062
|
+
}
|
|
5063
|
+
}
|
|
5064
|
+
}
|
|
5065
|
+
},
|
|
5066
|
+
options
|
|
5067
|
+
),
|
|
5068
|
+
/** Exchange OAuth authorization code for Fullscript credential */
|
|
5069
|
+
callback: async (code, state, workspaceId, options) => rb.execute(
|
|
5070
|
+
postConnectorsOauthCallback,
|
|
5071
|
+
{
|
|
5072
|
+
body: {
|
|
5073
|
+
data: {
|
|
5074
|
+
type: "connector_instance",
|
|
5075
|
+
attributes: {
|
|
5076
|
+
connector_type: "fullscript",
|
|
5077
|
+
code,
|
|
5078
|
+
state,
|
|
5079
|
+
workspace_id: workspaceId
|
|
5080
|
+
}
|
|
5081
|
+
}
|
|
5082
|
+
}
|
|
5083
|
+
},
|
|
5084
|
+
options
|
|
5085
|
+
)
|
|
5086
|
+
}
|
|
5087
|
+
}
|
|
5088
|
+
};
|
|
5089
|
+
}
|
|
5090
|
+
|
|
5091
|
+
// src/namespaces/crawler.ts
|
|
5092
|
+
function createCrawlerNamespace(rb) {
|
|
5093
|
+
return {
|
|
5094
|
+
/**
|
|
5095
|
+
* Jobs — crawl job management
|
|
5096
|
+
*/
|
|
5097
|
+
jobs: {
|
|
5098
|
+
/** List crawl jobs with pagination */
|
|
5099
|
+
list: async (options) => {
|
|
5100
|
+
return rb.execute(
|
|
5101
|
+
getCrawlerJobs,
|
|
5102
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5103
|
+
options
|
|
5104
|
+
);
|
|
5105
|
+
},
|
|
5106
|
+
/** Get a crawl job by ID */
|
|
5107
|
+
get: async (id, options) => {
|
|
5108
|
+
return rb.execute(
|
|
5109
|
+
getCrawlerJobsById,
|
|
5110
|
+
{ path: { id } },
|
|
5111
|
+
options
|
|
5112
|
+
);
|
|
5113
|
+
},
|
|
5114
|
+
/** Start a new crawl job */
|
|
5115
|
+
create: async (attributes, options) => {
|
|
5116
|
+
return rb.execute(
|
|
5117
|
+
postCrawlerJobs,
|
|
5118
|
+
{
|
|
5119
|
+
body: { data: { type: "crawler_crawl_job", attributes } }
|
|
5120
|
+
},
|
|
5121
|
+
options
|
|
5122
|
+
);
|
|
5123
|
+
},
|
|
5124
|
+
/** Cancel a crawl job */
|
|
5125
|
+
cancel: async (id, options) => {
|
|
5126
|
+
return rb.execute(
|
|
5127
|
+
patchCrawlerJobsByIdCancel,
|
|
5128
|
+
{ path: { id }, body: {} },
|
|
5129
|
+
options
|
|
5130
|
+
);
|
|
5131
|
+
},
|
|
5132
|
+
/** Delete a crawl job */
|
|
5133
|
+
delete: async (id, options) => {
|
|
5134
|
+
return rb.executeDelete(
|
|
5135
|
+
deleteCrawlerJobsById,
|
|
5136
|
+
{ path: { id } },
|
|
5137
|
+
options
|
|
5138
|
+
);
|
|
5139
|
+
}
|
|
5140
|
+
},
|
|
5141
|
+
/**
|
|
5142
|
+
* Schedules — recurring crawl configurations
|
|
5143
|
+
*/
|
|
5144
|
+
schedules: {
|
|
5145
|
+
/** List crawl schedules */
|
|
5146
|
+
list: async (options) => {
|
|
5147
|
+
return rb.execute(getCrawlerSchedules, {}, options);
|
|
5148
|
+
},
|
|
5149
|
+
/** Get a schedule by ID */
|
|
5150
|
+
get: async (id, options) => {
|
|
5151
|
+
return rb.execute(
|
|
5152
|
+
getCrawlerSchedulesById,
|
|
5153
|
+
{ path: { id } },
|
|
5154
|
+
options
|
|
5155
|
+
);
|
|
5156
|
+
},
|
|
5157
|
+
/** Create a new crawl schedule */
|
|
5158
|
+
create: async (attributes, options) => {
|
|
5159
|
+
return rb.execute(
|
|
5160
|
+
postCrawlerSchedules,
|
|
5161
|
+
{
|
|
5162
|
+
body: { data: { type: "crawler_crawl_schedule", attributes } }
|
|
5163
|
+
},
|
|
5164
|
+
options
|
|
5165
|
+
);
|
|
5166
|
+
},
|
|
5167
|
+
/** Update a schedule */
|
|
5168
|
+
update: async (id, attributes, options) => {
|
|
5169
|
+
return rb.execute(
|
|
5170
|
+
patchCrawlerSchedulesById,
|
|
5171
|
+
{
|
|
5172
|
+
path: { id },
|
|
5173
|
+
body: { data: { id, type: "crawler_crawl_schedule", attributes } }
|
|
5174
|
+
},
|
|
5175
|
+
options
|
|
5176
|
+
);
|
|
5177
|
+
},
|
|
5178
|
+
/** Delete a schedule */
|
|
5179
|
+
delete: async (id, options) => {
|
|
5180
|
+
return rb.executeDelete(
|
|
5181
|
+
deleteCrawlerSchedulesById,
|
|
5182
|
+
{ path: { id } },
|
|
5183
|
+
options
|
|
5184
|
+
);
|
|
5185
|
+
}
|
|
5186
|
+
},
|
|
5187
|
+
/**
|
|
5188
|
+
* Results — crawl results and extracted content
|
|
5189
|
+
*/
|
|
5190
|
+
results: {
|
|
5191
|
+
/** List crawl results */
|
|
5192
|
+
list: async (options) => {
|
|
5193
|
+
return rb.execute(
|
|
5194
|
+
getCrawlerResults,
|
|
5195
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5196
|
+
options
|
|
5197
|
+
);
|
|
5198
|
+
},
|
|
5199
|
+
/** Get a crawl result by ID */
|
|
5200
|
+
get: async (id, options) => {
|
|
5201
|
+
return rb.execute(
|
|
5202
|
+
getCrawlerResultsById,
|
|
5203
|
+
{ path: { id } },
|
|
5204
|
+
options
|
|
5205
|
+
);
|
|
5206
|
+
}
|
|
5207
|
+
}
|
|
5208
|
+
};
|
|
5209
|
+
}
|
|
5210
|
+
|
|
5211
|
+
// src/namespaces/crm.ts
|
|
5212
|
+
function createCrmNamespace(rb) {
|
|
5213
|
+
return {
|
|
5214
|
+
/**
|
|
5215
|
+
* Contacts — people and leads
|
|
5216
|
+
*/
|
|
5217
|
+
contacts: {
|
|
5218
|
+
/** Get a contact by ID */
|
|
5219
|
+
get: async (id, options) => {
|
|
5220
|
+
return rb.execute(
|
|
5221
|
+
getCrmContactsById,
|
|
5222
|
+
{ path: { id } },
|
|
5223
|
+
options
|
|
5224
|
+
);
|
|
5225
|
+
},
|
|
5226
|
+
/** Create a new contact */
|
|
5227
|
+
create: async (attributes, options) => {
|
|
5228
|
+
return rb.execute(
|
|
5229
|
+
postCrmContacts,
|
|
5230
|
+
{
|
|
5231
|
+
body: { data: { type: "crm_contact", attributes } }
|
|
5232
|
+
},
|
|
5233
|
+
options
|
|
5234
|
+
);
|
|
5235
|
+
},
|
|
5236
|
+
/** Update a contact */
|
|
5237
|
+
update: async (id, attributes, options) => {
|
|
5238
|
+
return rb.execute(
|
|
5239
|
+
patchCrmContactsById,
|
|
5240
|
+
{
|
|
5241
|
+
path: { id },
|
|
5242
|
+
body: { data: { id, type: "crm_contact", attributes } }
|
|
5243
|
+
},
|
|
5244
|
+
options
|
|
5245
|
+
);
|
|
5246
|
+
},
|
|
5247
|
+
/** Delete a contact (soft delete) */
|
|
5248
|
+
delete: async (id, options) => {
|
|
5249
|
+
return rb.executeDelete(
|
|
5250
|
+
deleteCrmContactsById,
|
|
5251
|
+
{ path: { id } },
|
|
5252
|
+
options
|
|
5253
|
+
);
|
|
5254
|
+
},
|
|
5255
|
+
/** List contacts by workspace */
|
|
5256
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5257
|
+
return rb.execute(
|
|
5258
|
+
getCrmContactsWorkspaceByWorkspaceId,
|
|
5259
|
+
{
|
|
5260
|
+
path: { workspace_id: workspaceId },
|
|
5261
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
5262
|
+
},
|
|
5263
|
+
options
|
|
5264
|
+
);
|
|
5265
|
+
}
|
|
5266
|
+
},
|
|
5267
|
+
/**
|
|
5268
|
+
* Companies — organizations
|
|
5269
|
+
*/
|
|
5270
|
+
companies: {
|
|
5271
|
+
/** Get a company by ID */
|
|
5272
|
+
get: async (id, options) => {
|
|
5273
|
+
return rb.execute(
|
|
5274
|
+
getCrmCompaniesById,
|
|
5275
|
+
{ path: { id } },
|
|
5276
|
+
options
|
|
5277
|
+
);
|
|
5278
|
+
},
|
|
5279
|
+
/** Create a new company */
|
|
5280
|
+
create: async (attributes, options) => {
|
|
5281
|
+
return rb.execute(
|
|
5282
|
+
postCrmCompanies,
|
|
5283
|
+
{
|
|
5284
|
+
body: { data: { type: "crm_company", attributes } }
|
|
5285
|
+
},
|
|
5286
|
+
options
|
|
5287
|
+
);
|
|
5288
|
+
},
|
|
5289
|
+
/** Update a company */
|
|
5290
|
+
update: async (id, attributes, options) => {
|
|
5291
|
+
return rb.execute(
|
|
5292
|
+
patchCrmCompaniesById,
|
|
5293
|
+
{
|
|
5294
|
+
path: { id },
|
|
5295
|
+
body: { data: { id, type: "crm_company", attributes } }
|
|
5296
|
+
},
|
|
5297
|
+
options
|
|
5298
|
+
);
|
|
5299
|
+
},
|
|
5300
|
+
/** Delete a company (soft delete) */
|
|
5301
|
+
delete: async (id, options) => {
|
|
5302
|
+
return rb.executeDelete(
|
|
5303
|
+
deleteCrmCompaniesById,
|
|
5304
|
+
{ path: { id } },
|
|
5305
|
+
options
|
|
5306
|
+
);
|
|
5307
|
+
},
|
|
5308
|
+
/** List companies by workspace */
|
|
5309
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5310
|
+
return rb.execute(
|
|
5311
|
+
getCrmCompaniesWorkspaceByWorkspaceId,
|
|
5312
|
+
{
|
|
5313
|
+
path: { workspace_id: workspaceId },
|
|
5314
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
5315
|
+
},
|
|
5316
|
+
options
|
|
5317
|
+
);
|
|
5318
|
+
}
|
|
5319
|
+
},
|
|
5320
|
+
/**
|
|
5321
|
+
* Deals — opportunities and pipeline stages
|
|
5322
|
+
*/
|
|
5323
|
+
deals: {
|
|
5324
|
+
/** Get a deal by ID */
|
|
5325
|
+
get: async (id, options) => {
|
|
5326
|
+
return rb.execute(getCrmDealsById, { path: { id } }, options);
|
|
5327
|
+
},
|
|
5328
|
+
/** Create a new deal */
|
|
5329
|
+
create: async (attributes, options) => {
|
|
5330
|
+
return rb.execute(
|
|
5331
|
+
postCrmDeals,
|
|
5332
|
+
{
|
|
5333
|
+
body: { data: { type: "crm_deal", attributes } }
|
|
5334
|
+
},
|
|
5335
|
+
options
|
|
5336
|
+
);
|
|
5337
|
+
},
|
|
5338
|
+
/** Update a deal */
|
|
5339
|
+
update: async (id, attributes, options) => {
|
|
5340
|
+
return rb.execute(
|
|
5341
|
+
patchCrmDealsById,
|
|
5342
|
+
{
|
|
5343
|
+
path: { id },
|
|
5344
|
+
body: { data: { id, type: "crm_deal", attributes } }
|
|
5345
|
+
},
|
|
5346
|
+
options
|
|
5347
|
+
);
|
|
5348
|
+
},
|
|
5349
|
+
/** Delete a deal (soft delete) */
|
|
5350
|
+
delete: async (id, options) => {
|
|
5351
|
+
return rb.executeDelete(deleteCrmDealsById, { path: { id } }, options);
|
|
5352
|
+
},
|
|
5353
|
+
/** List deals by workspace */
|
|
5354
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5355
|
+
return rb.execute(
|
|
5356
|
+
getCrmDealsWorkspaceByWorkspaceId,
|
|
5357
|
+
{
|
|
5358
|
+
path: { workspace_id: workspaceId },
|
|
5359
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
5360
|
+
},
|
|
5361
|
+
options
|
|
5362
|
+
);
|
|
5363
|
+
}
|
|
5364
|
+
},
|
|
5365
|
+
/**
|
|
5366
|
+
* Activities — interactions and notes
|
|
5367
|
+
*/
|
|
5368
|
+
activities: {
|
|
5369
|
+
/** Get an activity by ID */
|
|
5370
|
+
get: async (id, options) => {
|
|
5371
|
+
return rb.execute(
|
|
5372
|
+
getCrmActivitiesById,
|
|
5373
|
+
{ path: { id } },
|
|
5374
|
+
options
|
|
5375
|
+
);
|
|
5376
|
+
},
|
|
5377
|
+
/** Create a new activity */
|
|
5378
|
+
create: async (attributes, options) => {
|
|
5379
|
+
return rb.execute(
|
|
5380
|
+
postCrmActivities,
|
|
5381
|
+
{
|
|
5382
|
+
body: { data: { type: "crm_activity", attributes } }
|
|
5383
|
+
},
|
|
5384
|
+
options
|
|
5385
|
+
);
|
|
5386
|
+
},
|
|
5387
|
+
/** Delete an activity (soft delete) */
|
|
5388
|
+
delete: async (id, options) => {
|
|
5389
|
+
return rb.executeDelete(
|
|
5390
|
+
deleteCrmActivitiesById,
|
|
5391
|
+
{ path: { id } },
|
|
5392
|
+
options
|
|
5393
|
+
);
|
|
5394
|
+
},
|
|
5395
|
+
/** List activities by workspace */
|
|
5396
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5397
|
+
return rb.execute(
|
|
5398
|
+
getCrmActivitiesWorkspaceByWorkspaceId,
|
|
5399
|
+
{
|
|
5400
|
+
path: { workspace_id: workspaceId },
|
|
5401
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
5402
|
+
},
|
|
5403
|
+
options
|
|
5404
|
+
);
|
|
5405
|
+
}
|
|
5406
|
+
},
|
|
5407
|
+
/**
|
|
5408
|
+
* Pipelines — deal workflow stages
|
|
5409
|
+
*/
|
|
5410
|
+
pipelines: {
|
|
5411
|
+
/** Get a pipeline by ID */
|
|
5412
|
+
get: async (id, options) => {
|
|
5413
|
+
return rb.execute(
|
|
5414
|
+
getCrmPipelinesById,
|
|
5415
|
+
{ path: { id } },
|
|
5416
|
+
options
|
|
5417
|
+
);
|
|
5418
|
+
},
|
|
5419
|
+
/** Create a new pipeline */
|
|
5420
|
+
create: async (attributes, options) => {
|
|
5421
|
+
return rb.execute(
|
|
5422
|
+
postCrmPipelines,
|
|
5423
|
+
{
|
|
5424
|
+
body: { data: { type: "crm_pipeline", attributes } }
|
|
5425
|
+
},
|
|
5426
|
+
options
|
|
5427
|
+
);
|
|
5428
|
+
},
|
|
5429
|
+
/** Update a pipeline */
|
|
5430
|
+
update: async (id, attributes, options) => {
|
|
5431
|
+
return rb.execute(
|
|
5432
|
+
patchCrmPipelinesById,
|
|
5433
|
+
{
|
|
5434
|
+
path: { id },
|
|
5435
|
+
body: { data: { id, type: "crm_pipeline", attributes } }
|
|
5436
|
+
},
|
|
5437
|
+
options
|
|
5438
|
+
);
|
|
5439
|
+
},
|
|
5440
|
+
/** Delete a pipeline */
|
|
5441
|
+
delete: async (id, options) => {
|
|
5442
|
+
return rb.executeDelete(
|
|
5443
|
+
deleteCrmPipelinesById,
|
|
5444
|
+
{ path: { id } },
|
|
5445
|
+
options
|
|
5446
|
+
);
|
|
5447
|
+
},
|
|
5448
|
+
/** List pipelines by workspace */
|
|
5449
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5450
|
+
return rb.execute(
|
|
5451
|
+
getCrmPipelinesWorkspaceByWorkspaceId,
|
|
5452
|
+
{
|
|
5453
|
+
path: { workspace_id: workspaceId }
|
|
5454
|
+
},
|
|
5455
|
+
options
|
|
5456
|
+
);
|
|
5457
|
+
}
|
|
5458
|
+
},
|
|
5459
|
+
/**
|
|
5460
|
+
* Pipeline Stages — stages within a pipeline
|
|
5461
|
+
*/
|
|
5462
|
+
pipelineStages: {
|
|
5463
|
+
/** Get a pipeline stage by ID */
|
|
5464
|
+
get: async (id, options) => {
|
|
5465
|
+
return rb.execute(
|
|
5466
|
+
getCrmPipelineStagesById,
|
|
5467
|
+
{ path: { id } },
|
|
5468
|
+
options
|
|
5469
|
+
);
|
|
5470
|
+
},
|
|
5471
|
+
/** Create a new pipeline stage */
|
|
5472
|
+
create: async (attributes, options) => {
|
|
5473
|
+
return rb.execute(
|
|
5474
|
+
postCrmPipelineStages,
|
|
5475
|
+
{
|
|
5476
|
+
body: { data: { type: "crm_pipeline_stage", attributes } }
|
|
5477
|
+
},
|
|
5478
|
+
options
|
|
5479
|
+
);
|
|
5480
|
+
},
|
|
5481
|
+
/** Update a pipeline stage */
|
|
5482
|
+
update: async (id, attributes, options) => {
|
|
5483
|
+
return rb.execute(
|
|
5484
|
+
patchCrmPipelineStagesById,
|
|
5485
|
+
{
|
|
5486
|
+
path: { id },
|
|
5487
|
+
body: { data: { id, type: "crm_pipeline_stage", attributes } }
|
|
5488
|
+
},
|
|
5489
|
+
options
|
|
5490
|
+
);
|
|
5491
|
+
},
|
|
5492
|
+
/** Delete a pipeline stage */
|
|
5493
|
+
delete: async (id, options) => {
|
|
5494
|
+
return rb.executeDelete(
|
|
5495
|
+
deleteCrmPipelineStagesById,
|
|
5496
|
+
{ path: { id } },
|
|
5497
|
+
options
|
|
5498
|
+
);
|
|
5499
|
+
}
|
|
5500
|
+
},
|
|
5501
|
+
/**
|
|
5502
|
+
* Relationship Types — custom relationship templates
|
|
5503
|
+
*/
|
|
5504
|
+
relationshipTypes: {
|
|
5505
|
+
/** Get a relationship type by ID */
|
|
5506
|
+
get: async (id, options) => {
|
|
5507
|
+
return rb.execute(
|
|
5508
|
+
getCrmRelationshipTypesById,
|
|
5509
|
+
{ path: { id } },
|
|
5510
|
+
options
|
|
5511
|
+
);
|
|
5512
|
+
},
|
|
5513
|
+
/** Create a new relationship type */
|
|
5514
|
+
create: async (attributes, options) => {
|
|
5515
|
+
return rb.execute(
|
|
5516
|
+
postCrmRelationshipTypes,
|
|
5517
|
+
{
|
|
5518
|
+
body: { data: { type: "crm_relationship_type", attributes } }
|
|
5519
|
+
},
|
|
5520
|
+
options
|
|
5521
|
+
);
|
|
5522
|
+
},
|
|
5523
|
+
/** Update a relationship type */
|
|
5524
|
+
update: async (id, attributes, options) => {
|
|
5525
|
+
return rb.execute(
|
|
5526
|
+
patchCrmRelationshipTypesById,
|
|
5527
|
+
{
|
|
5528
|
+
path: { id },
|
|
5529
|
+
body: { data: { id, type: "crm_relationship_type", attributes } }
|
|
5530
|
+
},
|
|
5531
|
+
options
|
|
5532
|
+
);
|
|
5533
|
+
},
|
|
5534
|
+
/** Delete a relationship type */
|
|
5535
|
+
delete: async (id, options) => {
|
|
5536
|
+
return rb.executeDelete(
|
|
5537
|
+
deleteCrmRelationshipTypesById,
|
|
5538
|
+
{ path: { id } },
|
|
5539
|
+
options
|
|
5540
|
+
);
|
|
5541
|
+
},
|
|
5542
|
+
/** List all relationship types */
|
|
5543
|
+
list: async (options) => {
|
|
5544
|
+
return rb.execute(
|
|
5545
|
+
getCrmRelationshipTypes,
|
|
5546
|
+
{},
|
|
5547
|
+
options
|
|
5548
|
+
);
|
|
5549
|
+
}
|
|
5550
|
+
},
|
|
5551
|
+
/**
|
|
5552
|
+
* Relationships — connections between entities
|
|
5553
|
+
*/
|
|
5554
|
+
relationships: {
|
|
5555
|
+
/** Get a relationship by ID */
|
|
5556
|
+
get: async (id, options) => {
|
|
5557
|
+
return rb.execute(
|
|
5558
|
+
getCrmRelationshipsById,
|
|
5559
|
+
{ path: { id } },
|
|
5560
|
+
options
|
|
5561
|
+
);
|
|
5562
|
+
},
|
|
5563
|
+
/** Create a new relationship */
|
|
5564
|
+
create: async (attributes, options) => {
|
|
5565
|
+
return rb.execute(
|
|
5566
|
+
postCrmRelationships,
|
|
5567
|
+
{
|
|
5568
|
+
body: { data: { type: "crm_relationship", attributes } }
|
|
5569
|
+
},
|
|
5570
|
+
options
|
|
5571
|
+
);
|
|
5572
|
+
},
|
|
5573
|
+
/** Delete a relationship */
|
|
5574
|
+
delete: async (id, options) => {
|
|
5575
|
+
return rb.executeDelete(
|
|
5576
|
+
deleteCrmRelationshipsById,
|
|
5577
|
+
{ path: { id } },
|
|
5578
|
+
options
|
|
5579
|
+
);
|
|
5580
|
+
},
|
|
5581
|
+
/** List relationships by workspace */
|
|
5582
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5583
|
+
return rb.execute(
|
|
5584
|
+
getCrmRelationshipsWorkspaceByWorkspaceId,
|
|
5585
|
+
{
|
|
5586
|
+
path: { workspace_id: workspaceId }
|
|
5587
|
+
},
|
|
5588
|
+
options
|
|
5589
|
+
);
|
|
5590
|
+
}
|
|
5591
|
+
},
|
|
5592
|
+
/**
|
|
5593
|
+
* Custom Entities — ISV-defined entity types
|
|
5594
|
+
*/
|
|
5595
|
+
customEntities: {
|
|
5596
|
+
/** Get a custom entity by ID */
|
|
5597
|
+
get: async (id, options) => {
|
|
5598
|
+
return rb.execute(
|
|
5599
|
+
getCrmCustomEntitiesById,
|
|
5600
|
+
{ path: { id } },
|
|
5601
|
+
options
|
|
5602
|
+
);
|
|
5603
|
+
},
|
|
5604
|
+
/** Create a new custom entity */
|
|
5605
|
+
create: async (attributes, options) => {
|
|
5606
|
+
return rb.execute(
|
|
5607
|
+
postCrmCustomEntities,
|
|
5608
|
+
{
|
|
5609
|
+
body: { data: { type: "crm_custom_entity", attributes } }
|
|
5610
|
+
},
|
|
5611
|
+
options
|
|
5612
|
+
);
|
|
5613
|
+
},
|
|
5614
|
+
/** Update a custom entity */
|
|
5615
|
+
update: async (id, attributes, options) => {
|
|
5616
|
+
return rb.execute(
|
|
5617
|
+
patchCrmCustomEntitiesById,
|
|
5618
|
+
{
|
|
5619
|
+
path: { id },
|
|
5620
|
+
body: { data: { id, type: "crm_custom_entity", attributes } }
|
|
5621
|
+
},
|
|
5622
|
+
options
|
|
5623
|
+
);
|
|
5624
|
+
},
|
|
5625
|
+
/** Delete a custom entity (soft delete) */
|
|
5626
|
+
delete: async (id, options) => {
|
|
5627
|
+
return rb.executeDelete(
|
|
5628
|
+
deleteCrmCustomEntitiesById,
|
|
5629
|
+
{ path: { id } },
|
|
5630
|
+
options
|
|
5631
|
+
);
|
|
5632
|
+
},
|
|
5633
|
+
/** List custom entities by workspace with optional type and attribute filters */
|
|
5634
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5635
|
+
const pageQuery = buildPageQuery(options?.page, options?.pageSize);
|
|
5636
|
+
return rb.execute(
|
|
5637
|
+
getCrmCustomEntitiesWorkspaceByWorkspaceId,
|
|
5638
|
+
{
|
|
5639
|
+
path: { workspace_id: workspaceId },
|
|
5640
|
+
query: {
|
|
5641
|
+
...options?.type ? { "filter[type]": options.type } : {},
|
|
5642
|
+
...options?.filters ? {
|
|
5643
|
+
"filter[filters]": JSON.stringify(options.filters)
|
|
5644
|
+
} : {},
|
|
5645
|
+
...pageQuery?.query
|
|
5646
|
+
}
|
|
5647
|
+
},
|
|
5648
|
+
options
|
|
5649
|
+
);
|
|
5650
|
+
},
|
|
5651
|
+
/** Batch update multiple custom entities in a single transaction */
|
|
5652
|
+
batchUpdate: async (workspaceId, updates, options) => {
|
|
5653
|
+
return rb.rawPost(
|
|
5654
|
+
"/crm/custom-entities/batch",
|
|
5655
|
+
{ workspace_id: workspaceId, updates },
|
|
5656
|
+
options
|
|
5657
|
+
);
|
|
5658
|
+
},
|
|
5659
|
+
/** Run aggregate queries (count/avg/sum) on custom entity properties */
|
|
5660
|
+
aggregate: async (workspaceId, params, options) => {
|
|
5661
|
+
return rb.rawPost(
|
|
5662
|
+
"/crm/custom-entities/aggregate",
|
|
5663
|
+
{ workspace_id: workspaceId, ...params },
|
|
5664
|
+
options
|
|
5665
|
+
);
|
|
5666
|
+
},
|
|
5667
|
+
/** Version history for this custom entity */
|
|
5668
|
+
versions: {
|
|
5669
|
+
/** List all versions of a custom entity (ordered by version_number desc) */
|
|
5670
|
+
list: async (entityId, options) => {
|
|
5671
|
+
const pageQuery = buildPageQuery(options?.page, options?.pageSize);
|
|
5672
|
+
const qs = pageQuery?.query && Object.keys(pageQuery.query).length > 0 ? "?" + new URLSearchParams(
|
|
5673
|
+
Object.entries(pageQuery.query).map(([k, v]) => [
|
|
5674
|
+
k,
|
|
5675
|
+
String(v)
|
|
5676
|
+
])
|
|
5677
|
+
).toString() : "";
|
|
5678
|
+
return rb.rawGet(
|
|
5679
|
+
`/crm/custom-entities/${entityId}/versions${qs}`,
|
|
5680
|
+
options
|
|
5681
|
+
);
|
|
5682
|
+
},
|
|
5683
|
+
/** Get a single version snapshot by ID */
|
|
5684
|
+
get: async (entityId, versionId, options) => rb.rawGet(
|
|
5685
|
+
`/crm/custom-entities/${entityId}/versions/${versionId}`,
|
|
5686
|
+
options
|
|
5687
|
+
),
|
|
5688
|
+
/** Restore a custom entity to a prior version */
|
|
5689
|
+
restore: async (entityId, versionId, options) => {
|
|
5690
|
+
return rb.rawPost(
|
|
5691
|
+
`/crm/custom-entities/${entityId}/versions/${versionId}/restore`,
|
|
5692
|
+
{},
|
|
5693
|
+
options
|
|
5694
|
+
);
|
|
5695
|
+
}
|
|
5696
|
+
}
|
|
5697
|
+
},
|
|
5698
|
+
/** CRM data export — create async export jobs and poll for completion. */
|
|
5699
|
+
export: {
|
|
5700
|
+
/**
|
|
5701
|
+
* Create a data export job. Returns immediately with a pending job.
|
|
5702
|
+
* Poll `get()` until `status === 'complete'`, then download from `file_url`.
|
|
5703
|
+
*/
|
|
5704
|
+
create: async (workspaceId, params, options) => {
|
|
5705
|
+
return rb.execute(
|
|
5706
|
+
postCrmExports,
|
|
5707
|
+
{
|
|
5708
|
+
body: {
|
|
5709
|
+
data: {
|
|
5710
|
+
type: "crm_data_export_job",
|
|
5711
|
+
attributes: {
|
|
5712
|
+
workspace_id: workspaceId,
|
|
5713
|
+
entity_type: params.entityType,
|
|
5714
|
+
entity_subtype: params.entitySubtype,
|
|
5715
|
+
format: params.format,
|
|
5716
|
+
include: params.include ?? [],
|
|
5717
|
+
filters: params.filters ?? []
|
|
5718
|
+
}
|
|
5719
|
+
}
|
|
5720
|
+
}
|
|
5721
|
+
},
|
|
5722
|
+
options
|
|
5723
|
+
);
|
|
5724
|
+
},
|
|
5725
|
+
/**
|
|
5726
|
+
* Get an export job by ID. When `status === 'complete'`, `file_url` is
|
|
5727
|
+
* populated and valid for 1 hour.
|
|
5728
|
+
*/
|
|
5729
|
+
get: async (jobId, options) => {
|
|
5730
|
+
return rb.execute(
|
|
5731
|
+
getCrmExportsById,
|
|
5732
|
+
{ path: { id: jobId } },
|
|
5733
|
+
options
|
|
5734
|
+
);
|
|
5735
|
+
},
|
|
5736
|
+
/** List all export jobs for a workspace, most recent first. */
|
|
5737
|
+
list: async (workspaceId, options) => {
|
|
5738
|
+
return rb.execute(
|
|
5739
|
+
getCrmExportsWorkspaceByWorkspaceId,
|
|
5740
|
+
{ path: { workspace_id: workspaceId } },
|
|
5741
|
+
options
|
|
5742
|
+
);
|
|
5743
|
+
}
|
|
5744
|
+
}
|
|
5745
|
+
};
|
|
5746
|
+
}
|
|
5747
|
+
|
|
5748
|
+
// src/namespaces/emailMarketing.ts
|
|
5749
|
+
function createEmailMarketingNamespace(rb) {
|
|
5750
|
+
return {
|
|
5751
|
+
/**
|
|
5752
|
+
* Campaigns — email campaign orchestration
|
|
5753
|
+
*/
|
|
5754
|
+
campaigns: {
|
|
5755
|
+
/** Get a campaign by ID */
|
|
5756
|
+
get: async (id, options) => {
|
|
5757
|
+
return rb.execute(
|
|
5758
|
+
getEmailMarketingCampaignsById,
|
|
5759
|
+
{ path: { id } },
|
|
5760
|
+
options
|
|
5761
|
+
);
|
|
5762
|
+
},
|
|
5763
|
+
/** Create a new campaign */
|
|
5764
|
+
create: async (attributes, options) => {
|
|
5765
|
+
return rb.execute(
|
|
5766
|
+
postEmailMarketingCampaigns,
|
|
5767
|
+
{
|
|
5768
|
+
body: { data: { type: "email_marketing_campaign", attributes } }
|
|
5769
|
+
},
|
|
5770
|
+
options
|
|
5771
|
+
);
|
|
5772
|
+
},
|
|
5773
|
+
/** Update a campaign */
|
|
5774
|
+
update: async (id, attributes, options) => {
|
|
5775
|
+
return rb.execute(
|
|
5776
|
+
patchEmailMarketingCampaignsById,
|
|
5777
|
+
{
|
|
5778
|
+
path: { id },
|
|
5779
|
+
body: {
|
|
5780
|
+
data: { id, type: "email_marketing_campaign", attributes }
|
|
5781
|
+
}
|
|
5782
|
+
},
|
|
5783
|
+
options
|
|
5784
|
+
);
|
|
5785
|
+
},
|
|
5786
|
+
/** Delete a campaign */
|
|
5787
|
+
delete: async (id, options) => {
|
|
5788
|
+
return rb.executeDelete(
|
|
5789
|
+
deleteEmailMarketingCampaignsById,
|
|
5790
|
+
{ path: { id } },
|
|
5791
|
+
options
|
|
5792
|
+
);
|
|
5793
|
+
},
|
|
5794
|
+
/** List campaigns by workspace */
|
|
5795
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5796
|
+
return rb.execute(
|
|
5797
|
+
getEmailMarketingCampaignsWorkspaceByWorkspaceId,
|
|
5798
|
+
{
|
|
5799
|
+
path: { workspace_id: workspaceId },
|
|
5800
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
5801
|
+
},
|
|
5802
|
+
options
|
|
5803
|
+
);
|
|
5804
|
+
},
|
|
5805
|
+
/** Send the campaign */
|
|
5806
|
+
send: async (id, options) => {
|
|
5807
|
+
return rb.execute(
|
|
5808
|
+
postEmailMarketingCampaignsByIdSend,
|
|
5809
|
+
{ path: { id }, body: {} },
|
|
5810
|
+
options
|
|
5811
|
+
);
|
|
5812
|
+
},
|
|
5813
|
+
/** Analyze campaign performance with AI */
|
|
5814
|
+
analyze: async (id, options) => {
|
|
5815
|
+
return rb.execute(
|
|
5816
|
+
postEmailMarketingCampaignsByIdAnalyze,
|
|
5817
|
+
{ path: { id }, body: {} },
|
|
5818
|
+
options
|
|
5819
|
+
);
|
|
5820
|
+
},
|
|
5821
|
+
/** Optimize send times using AI */
|
|
5822
|
+
optimizeSendTimes: async (id, options) => {
|
|
5823
|
+
return rb.execute(
|
|
5824
|
+
postEmailMarketingCampaignsByIdOptimizeSendTimes,
|
|
5825
|
+
{ path: { id }, body: {} },
|
|
5826
|
+
options
|
|
5827
|
+
);
|
|
5828
|
+
},
|
|
5829
|
+
/** Create a follow-up campaign */
|
|
5830
|
+
createFollowup: async (id, attributes, options) => {
|
|
5831
|
+
return rb.execute(
|
|
5832
|
+
postEmailMarketingCampaignsByIdCreateFollowup,
|
|
5833
|
+
{
|
|
5834
|
+
path: { id },
|
|
5835
|
+
body: { data: { type: "email_marketing_campaign", attributes } }
|
|
5836
|
+
},
|
|
5837
|
+
options
|
|
5838
|
+
);
|
|
5839
|
+
}
|
|
5840
|
+
},
|
|
5841
|
+
/**
|
|
5842
|
+
* Templates — email template management
|
|
5843
|
+
*/
|
|
5844
|
+
templates: {
|
|
5845
|
+
/** List templates by workspace */
|
|
5846
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
5847
|
+
return rb.execute(
|
|
5848
|
+
getEmailMarketingTemplatesWorkspaceByWorkspaceId,
|
|
5849
|
+
{
|
|
5850
|
+
path: { workspace_id: workspaceId },
|
|
5851
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
5852
|
+
},
|
|
5853
|
+
options
|
|
5854
|
+
);
|
|
5855
|
+
}
|
|
5856
|
+
},
|
|
5857
|
+
/**
|
|
5858
|
+
* Generated Emails — AI-personalized emails awaiting review
|
|
5859
|
+
*/
|
|
5860
|
+
generatedEmails: {
|
|
5861
|
+
/** Get a generated email by ID */
|
|
5862
|
+
get: async (id, options) => {
|
|
5863
|
+
return rb.execute(
|
|
5864
|
+
getEmailMarketingGeneratedEmailsById,
|
|
5865
|
+
{ path: { id } },
|
|
5866
|
+
options
|
|
5867
|
+
);
|
|
5868
|
+
},
|
|
5869
|
+
/** Update a generated email */
|
|
5870
|
+
update: async (id, attributes, options) => {
|
|
5871
|
+
return rb.execute(
|
|
5872
|
+
patchEmailMarketingGeneratedEmailsById,
|
|
5873
|
+
{
|
|
5874
|
+
path: { id },
|
|
5875
|
+
body: {
|
|
5876
|
+
data: { id, type: "email_marketing_generated_email", attributes }
|
|
5877
|
+
}
|
|
5878
|
+
},
|
|
5879
|
+
options
|
|
5880
|
+
);
|
|
5881
|
+
},
|
|
5882
|
+
/** Approve a generated email for sending */
|
|
5883
|
+
approve: async (id, options) => {
|
|
5884
|
+
return rb.execute(
|
|
5885
|
+
patchEmailMarketingGeneratedEmailsByIdApprove,
|
|
5886
|
+
{ path: { id }, body: {} },
|
|
5887
|
+
options
|
|
5888
|
+
);
|
|
5889
|
+
}
|
|
5890
|
+
},
|
|
5891
|
+
/**
|
|
5892
|
+
* Sender Profiles — sender identities with DNS validation
|
|
5893
|
+
*/
|
|
5894
|
+
senderProfiles: {
|
|
5895
|
+
/** Get a sender profile by ID */
|
|
5896
|
+
get: async (id, options) => {
|
|
5897
|
+
return rb.execute(
|
|
5898
|
+
getEmailMarketingSenderProfilesById,
|
|
5899
|
+
{ path: { id } },
|
|
5900
|
+
options
|
|
5901
|
+
);
|
|
5902
|
+
},
|
|
5903
|
+
/** Update a sender profile */
|
|
5904
|
+
update: async (id, attributes, options) => {
|
|
5905
|
+
return rb.execute(
|
|
5906
|
+
patchEmailMarketingSenderProfilesById,
|
|
5907
|
+
{
|
|
5908
|
+
path: { id },
|
|
5909
|
+
body: {
|
|
5910
|
+
data: { id, type: "email_marketing_sender_profile", attributes }
|
|
5911
|
+
}
|
|
5912
|
+
},
|
|
5913
|
+
options
|
|
5914
|
+
);
|
|
5915
|
+
},
|
|
5916
|
+
/** Validate DNS records for sender profile */
|
|
5917
|
+
validateDns: async (id, options) => {
|
|
3600
5918
|
return rb.execute(
|
|
3601
|
-
|
|
3602
|
-
{ path: { id } },
|
|
5919
|
+
patchEmailMarketingSenderProfilesByIdValidateDns,
|
|
5920
|
+
{ path: { id }, body: {} },
|
|
3603
5921
|
options
|
|
3604
5922
|
);
|
|
3605
|
-
}
|
|
3606
|
-
|
|
3607
|
-
paymentMethods: {
|
|
5923
|
+
},
|
|
5924
|
+
/** Delete a sender profile */
|
|
3608
5925
|
delete: async (id, options) => {
|
|
3609
5926
|
return rb.executeDelete(
|
|
3610
|
-
|
|
5927
|
+
deleteEmailMarketingSenderProfilesById,
|
|
3611
5928
|
{ path: { id } },
|
|
3612
5929
|
options
|
|
3613
5930
|
);
|
|
5931
|
+
}
|
|
5932
|
+
},
|
|
5933
|
+
/**
|
|
5934
|
+
* Sequences — drip campaign automation
|
|
5935
|
+
*/
|
|
5936
|
+
sequences: {
|
|
5937
|
+
/** Create a new sequence */
|
|
5938
|
+
create: async (attributes, options) => {
|
|
5939
|
+
return rb.execute(
|
|
5940
|
+
postEmailMarketingSequences,
|
|
5941
|
+
{
|
|
5942
|
+
body: { data: { type: "email_marketing_sequence", attributes } }
|
|
5943
|
+
},
|
|
5944
|
+
options
|
|
5945
|
+
);
|
|
3614
5946
|
},
|
|
3615
|
-
|
|
5947
|
+
/** List sequences by workspace */
|
|
5948
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
3616
5949
|
return rb.execute(
|
|
3617
|
-
|
|
3618
|
-
|
|
5950
|
+
getEmailMarketingSequencesWorkspaceByWorkspaceId,
|
|
5951
|
+
{
|
|
5952
|
+
path: { workspace_id: workspaceId },
|
|
5953
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
5954
|
+
},
|
|
3619
5955
|
options
|
|
3620
5956
|
);
|
|
3621
5957
|
},
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
5958
|
+
/** Resume a paused sequence */
|
|
5959
|
+
resume: async (id, options) => {
|
|
5960
|
+
return rb.execute(
|
|
5961
|
+
patchEmailMarketingSequencesByIdResume,
|
|
5962
|
+
{ path: { id }, body: {} },
|
|
5963
|
+
options
|
|
5964
|
+
);
|
|
5965
|
+
}
|
|
5966
|
+
}
|
|
5967
|
+
};
|
|
5968
|
+
}
|
|
5969
|
+
|
|
5970
|
+
// src/namespaces/support.ts
|
|
5971
|
+
function createSupportNamespace(rb) {
|
|
5972
|
+
return {
|
|
5973
|
+
/**
|
|
5974
|
+
* Tickets — customer support tickets
|
|
5975
|
+
*/
|
|
5976
|
+
tickets: {
|
|
5977
|
+
/** List tickets for a workspace */
|
|
5978
|
+
list: async (workspaceId, options) => {
|
|
5979
|
+
return rb.execute(
|
|
5980
|
+
getSupportTicketsWorkspaceByWorkspaceId,
|
|
5981
|
+
{
|
|
5982
|
+
path: { workspace_id: workspaceId },
|
|
5983
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
5984
|
+
},
|
|
5985
|
+
options
|
|
5986
|
+
);
|
|
5987
|
+
},
|
|
5988
|
+
/** Get a ticket by ID */
|
|
5989
|
+
get: async (id, options) => {
|
|
5990
|
+
return rb.execute(
|
|
5991
|
+
getSupportTicketsById,
|
|
5992
|
+
{ path: { id } },
|
|
5993
|
+
options
|
|
3631
5994
|
);
|
|
3632
5995
|
},
|
|
5996
|
+
/** Create a new ticket */
|
|
3633
5997
|
create: async (attributes, options) => {
|
|
3634
5998
|
return rb.execute(
|
|
3635
|
-
|
|
3636
|
-
{
|
|
5999
|
+
postSupportTickets,
|
|
6000
|
+
{
|
|
6001
|
+
body: {
|
|
6002
|
+
data: { type: "support_ticket", attributes }
|
|
6003
|
+
}
|
|
6004
|
+
},
|
|
3637
6005
|
options
|
|
3638
6006
|
);
|
|
3639
6007
|
},
|
|
6008
|
+
/** Update a ticket */
|
|
3640
6009
|
update: async (id, attributes, options) => {
|
|
3641
6010
|
return rb.execute(
|
|
3642
|
-
|
|
6011
|
+
patchSupportTicketsById,
|
|
3643
6012
|
{
|
|
3644
6013
|
path: { id },
|
|
3645
|
-
body: {
|
|
6014
|
+
body: {
|
|
6015
|
+
data: { type: "support_ticket", id, attributes }
|
|
6016
|
+
}
|
|
3646
6017
|
},
|
|
3647
6018
|
options
|
|
3648
6019
|
);
|
|
3649
6020
|
},
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
6021
|
+
/** Delete a ticket */
|
|
6022
|
+
delete: async (id, options) => {
|
|
6023
|
+
return rb.executeDelete(
|
|
6024
|
+
deleteSupportTicketsById,
|
|
3653
6025
|
{ path: { id } },
|
|
3654
6026
|
options
|
|
3655
6027
|
);
|
|
3656
|
-
}
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
}
|
|
3660
|
-
|
|
3661
|
-
// src/namespaces/communication.ts
|
|
3662
|
-
function createCommunicationNamespace(rb) {
|
|
3663
|
-
return {
|
|
3664
|
-
notifications: {
|
|
3665
|
-
/** List notification logs (alias for list) */
|
|
3666
|
-
logs: async (options) => {
|
|
6028
|
+
},
|
|
6029
|
+
/** Add a message to a ticket */
|
|
6030
|
+
addMessage: async (ticketId, attributes, options) => {
|
|
3667
6031
|
return rb.execute(
|
|
3668
|
-
|
|
3669
|
-
|
|
6032
|
+
postSupportTicketMessages,
|
|
6033
|
+
{
|
|
6034
|
+
body: {
|
|
6035
|
+
data: {
|
|
6036
|
+
type: "support_ticket_message",
|
|
6037
|
+
attributes: { ...attributes, ticket_id: ticketId }
|
|
6038
|
+
}
|
|
6039
|
+
}
|
|
6040
|
+
},
|
|
3670
6041
|
options
|
|
3671
6042
|
);
|
|
3672
6043
|
},
|
|
3673
|
-
|
|
6044
|
+
/** List messages for a ticket */
|
|
6045
|
+
listMessages: async (ticketId, options) => {
|
|
3674
6046
|
return rb.execute(
|
|
3675
|
-
|
|
3676
|
-
|
|
6047
|
+
getSupportTicketMessagesTicketByTicketId,
|
|
6048
|
+
{ path: { ticket_id: ticketId } },
|
|
3677
6049
|
options
|
|
3678
6050
|
);
|
|
3679
6051
|
},
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
6052
|
+
/** Rate a ticket (CSAT) */
|
|
6053
|
+
rate: async (attributes, options) => {
|
|
6054
|
+
return rb.execute(
|
|
6055
|
+
postSupportTicketRatings,
|
|
6056
|
+
{
|
|
6057
|
+
body: {
|
|
6058
|
+
data: { type: "support_ticket_rating", attributes }
|
|
6059
|
+
}
|
|
6060
|
+
},
|
|
6061
|
+
options
|
|
3689
6062
|
);
|
|
3690
|
-
}
|
|
3691
|
-
|
|
6063
|
+
}
|
|
6064
|
+
},
|
|
6065
|
+
/**
|
|
6066
|
+
* Tags — ticket labels for categorization
|
|
6067
|
+
*/
|
|
6068
|
+
tags: {
|
|
6069
|
+
/** List tags for a workspace */
|
|
6070
|
+
list: async (workspaceId, options) => {
|
|
3692
6071
|
return rb.execute(
|
|
3693
|
-
|
|
3694
|
-
{ path: {
|
|
6072
|
+
getSupportTagsWorkspaceByWorkspaceId,
|
|
6073
|
+
{ path: { workspace_id: workspaceId } },
|
|
3695
6074
|
options
|
|
3696
6075
|
);
|
|
3697
6076
|
},
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
buildPageQuery(options?.page, options?.pageSize),
|
|
3710
|
-
options
|
|
3711
|
-
);
|
|
3712
|
-
},
|
|
3713
|
-
listAll: async (options) => {
|
|
3714
|
-
return paginateToArray(
|
|
3715
|
-
rb.createPaginatedFetcher(
|
|
3716
|
-
getNotificationMethods,
|
|
3717
|
-
(page, pageSize) => ({
|
|
3718
|
-
query: { page: { number: page, size: pageSize } }
|
|
3719
|
-
}),
|
|
3720
|
-
options
|
|
3721
|
-
)
|
|
3722
|
-
);
|
|
3723
|
-
},
|
|
3724
|
-
create: async (attributes, options) => {
|
|
3725
|
-
return rb.execute(
|
|
3726
|
-
postNotificationMethods,
|
|
3727
|
-
{ body: { data: { type: "notification_method", attributes } } },
|
|
3728
|
-
options
|
|
3729
|
-
);
|
|
3730
|
-
},
|
|
3731
|
-
update: async (id, attributes, options) => {
|
|
3732
|
-
return rb.execute(
|
|
3733
|
-
patchNotificationMethodsById,
|
|
3734
|
-
{
|
|
3735
|
-
path: { id },
|
|
3736
|
-
body: { data: { id, type: "notification_method", attributes } }
|
|
3737
|
-
},
|
|
3738
|
-
options
|
|
3739
|
-
);
|
|
3740
|
-
},
|
|
3741
|
-
get: async (id, options) => {
|
|
3742
|
-
return rb.execute(
|
|
3743
|
-
getNotificationMethodsById,
|
|
3744
|
-
{ path: { id } },
|
|
3745
|
-
options
|
|
3746
|
-
);
|
|
3747
|
-
}
|
|
6077
|
+
/** Create a tag */
|
|
6078
|
+
create: async (attributes, options) => {
|
|
6079
|
+
return rb.execute(
|
|
6080
|
+
postSupportTags,
|
|
6081
|
+
{
|
|
6082
|
+
body: {
|
|
6083
|
+
data: { type: "support_tag", attributes }
|
|
6084
|
+
}
|
|
6085
|
+
},
|
|
6086
|
+
options
|
|
6087
|
+
);
|
|
3748
6088
|
},
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
},
|
|
3757
|
-
list: async (options) => {
|
|
3758
|
-
return rb.execute(
|
|
3759
|
-
getNotificationPreferences,
|
|
3760
|
-
buildPageQuery(options?.page, options?.pageSize),
|
|
3761
|
-
options
|
|
3762
|
-
);
|
|
3763
|
-
},
|
|
3764
|
-
listAll: async (options) => {
|
|
3765
|
-
return paginateToArray(
|
|
3766
|
-
rb.createPaginatedFetcher(
|
|
3767
|
-
getNotificationPreferences,
|
|
3768
|
-
(page, pageSize) => ({
|
|
3769
|
-
query: { page: { number: page, size: pageSize } }
|
|
3770
|
-
}),
|
|
3771
|
-
options
|
|
3772
|
-
)
|
|
3773
|
-
);
|
|
3774
|
-
},
|
|
3775
|
-
create: async (attributes, options) => {
|
|
3776
|
-
return rb.execute(
|
|
3777
|
-
postNotificationPreferences,
|
|
3778
|
-
{ body: { data: { type: "notification_preference", attributes } } },
|
|
3779
|
-
options
|
|
3780
|
-
);
|
|
3781
|
-
},
|
|
3782
|
-
update: async (id, attributes, options) => {
|
|
3783
|
-
return rb.execute(
|
|
3784
|
-
patchNotificationPreferencesById,
|
|
3785
|
-
{
|
|
3786
|
-
path: { id },
|
|
3787
|
-
body: {
|
|
3788
|
-
data: { id, type: "notification_preference", attributes }
|
|
3789
|
-
}
|
|
3790
|
-
},
|
|
3791
|
-
options
|
|
3792
|
-
);
|
|
3793
|
-
},
|
|
3794
|
-
get: async (id, options) => {
|
|
3795
|
-
return rb.execute(
|
|
3796
|
-
getNotificationPreferencesById,
|
|
3797
|
-
{ path: { id } },
|
|
3798
|
-
options
|
|
3799
|
-
);
|
|
3800
|
-
}
|
|
6089
|
+
/** Delete a tag */
|
|
6090
|
+
delete: async (id, options) => {
|
|
6091
|
+
return rb.executeDelete(
|
|
6092
|
+
deleteSupportTagsById,
|
|
6093
|
+
{ path: { id } },
|
|
6094
|
+
options
|
|
6095
|
+
);
|
|
3801
6096
|
}
|
|
3802
6097
|
}
|
|
3803
6098
|
};
|
|
@@ -4096,11 +6391,11 @@ function createExtractionNamespace(rb) {
|
|
|
4096
6391
|
* });
|
|
4097
6392
|
* console.log(`${result.filtered} of ${result.total} rows match`);
|
|
4098
6393
|
*/
|
|
4099
|
-
query: async (resultId, params, options) => {
|
|
6394
|
+
query: async (resultId, params = {}, options) => {
|
|
4100
6395
|
return rb.rawPost(
|
|
4101
6396
|
`/extraction/results/${resultId}/query`,
|
|
4102
6397
|
{
|
|
4103
|
-
filters: params.filters,
|
|
6398
|
+
filters: params.filters ?? [],
|
|
4104
6399
|
limit: params.limit,
|
|
4105
6400
|
offset: params.offset
|
|
4106
6401
|
},
|
|
@@ -4976,9 +7271,17 @@ function createPlatformNamespace(rb) {
|
|
|
4976
7271
|
},
|
|
4977
7272
|
/** Update workspace member profile attributes (G9) */
|
|
4978
7273
|
updateProfile: async (workspaceId, memberId, profileAttrs, options) => {
|
|
4979
|
-
return rb.
|
|
4980
|
-
|
|
4981
|
-
{
|
|
7274
|
+
return rb.execute(
|
|
7275
|
+
patchWorkspaceMembershipsByWorkspaceIdByUserIdProfile,
|
|
7276
|
+
{
|
|
7277
|
+
path: { workspace_id: workspaceId, user_id: memberId },
|
|
7278
|
+
body: {
|
|
7279
|
+
data: {
|
|
7280
|
+
type: "workspace-membership",
|
|
7281
|
+
attributes: { profile_attributes: profileAttrs }
|
|
7282
|
+
}
|
|
7283
|
+
}
|
|
7284
|
+
},
|
|
4982
7285
|
options
|
|
4983
7286
|
);
|
|
4984
7287
|
},
|
|
@@ -5818,7 +8121,16 @@ function createVoiceNamespace(rb) {
|
|
|
5818
8121
|
options
|
|
5819
8122
|
);
|
|
5820
8123
|
},
|
|
5821
|
-
/**
|
|
8124
|
+
/**
|
|
8125
|
+
* End a voice session and release the LiveKit room.
|
|
8126
|
+
*
|
|
8127
|
+
* @param id - Voice session ID to end
|
|
8128
|
+
* @param options - Request options
|
|
8129
|
+
*
|
|
8130
|
+
* @note Session stop is fully server-controlled. No attributes are accepted
|
|
8131
|
+
* in the request body — `status` is set to `"ended"` and `ended_at` is set
|
|
8132
|
+
* automatically. Passing extra attributes will result in a 422 error.
|
|
8133
|
+
*/
|
|
5822
8134
|
stop: async (id, options) => {
|
|
5823
8135
|
return rb.execute(
|
|
5824
8136
|
patchVoiceSessionsByIdStop,
|
|
@@ -6341,7 +8653,7 @@ var RequestBuilder = class {
|
|
|
6341
8653
|
() => this.clientInstance.post({
|
|
6342
8654
|
url,
|
|
6343
8655
|
headers,
|
|
6344
|
-
...body !== void 0 && { body
|
|
8656
|
+
...body !== void 0 && { body },
|
|
6345
8657
|
...options?.signal && { signal: options.signal }
|
|
6346
8658
|
})
|
|
6347
8659
|
);
|
|
@@ -6485,7 +8797,13 @@ var GptClient = class extends BaseClient {
|
|
|
6485
8797
|
this.agents = createAgentsNamespace(rb);
|
|
6486
8798
|
this.ai = createAiNamespace(rb);
|
|
6487
8799
|
this.billing = createBillingNamespace(rb);
|
|
8800
|
+
this.catalog = createCatalogNamespace(rb);
|
|
6488
8801
|
this.communication = createCommunicationNamespace(rb);
|
|
8802
|
+
this.connectors = createConnectorsNamespace(rb);
|
|
8803
|
+
this.crawler = createCrawlerNamespace(rb);
|
|
8804
|
+
this.crm = createCrmNamespace(rb);
|
|
8805
|
+
this.emailMarketing = createEmailMarketingNamespace(rb);
|
|
8806
|
+
this.support = createSupportNamespace(rb);
|
|
6489
8807
|
this.extraction = createExtractionNamespace(rb);
|
|
6490
8808
|
this.identity = createIdentityNamespace(rb, this.config?.baseUrl);
|
|
6491
8809
|
this.platform = createPlatformNamespace(rb);
|