@gpt-platform/client 0.3.0 → 0.3.3
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 +908 -96
- package/dist/index.d.ts +908 -96
- package/dist/index.js +1580 -195
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1580 -195
- package/dist/index.mjs.map +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.3.
|
|
1227
|
+
var SDK_VERSION = "0.3.3";
|
|
1228
1228
|
var DEFAULT_API_VERSION = "2026-02-25";
|
|
1229
1229
|
|
|
1230
1230
|
// src/base-client.ts
|
|
@@ -1564,6 +1564,15 @@ var patchExtractionDocumentsByIdCancel = (options) => (options.client ?? client)
|
|
|
1564
1564
|
...options.headers
|
|
1565
1565
|
}
|
|
1566
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
|
+
});
|
|
1567
1576
|
var postCrmRelationships = (options) => (options.client ?? client).post({
|
|
1568
1577
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1569
1578
|
url: "/crm/relationships",
|
|
@@ -1583,6 +1592,20 @@ var getAgentVersionsById = (options) => (options.client ?? client).get({
|
|
|
1583
1592
|
url: "/agent-versions/{id}",
|
|
1584
1593
|
...options
|
|
1585
1594
|
});
|
|
1595
|
+
var getLlmAnalyticsCosts = (options) => (options.client ?? client).get({
|
|
1596
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1597
|
+
url: "/llm_analytics/costs",
|
|
1598
|
+
...options
|
|
1599
|
+
});
|
|
1600
|
+
var postCatalogTaxonomyNodes = (options) => (options.client ?? client).post({
|
|
1601
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1602
|
+
url: "/catalog/taxonomy-nodes",
|
|
1603
|
+
...options,
|
|
1604
|
+
headers: {
|
|
1605
|
+
"Content-Type": "application/vnd.api+json",
|
|
1606
|
+
...options.headers
|
|
1607
|
+
}
|
|
1608
|
+
});
|
|
1586
1609
|
var deleteCrmRelationshipsById = (options) => (options.client ?? client).delete({
|
|
1587
1610
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1588
1611
|
url: "/crm/relationships/{id}",
|
|
@@ -1612,11 +1635,35 @@ var getCrmCustomEntitiesWorkspaceByWorkspaceId = (options) => (options.client ??
|
|
|
1612
1635
|
url: "/crm/custom-entities/workspace/{workspace_id}",
|
|
1613
1636
|
...options
|
|
1614
1637
|
});
|
|
1638
|
+
var getBreachIncidentsById = (options) => (options.client ?? client).get({
|
|
1639
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1640
|
+
url: "/breach-incidents/{id}",
|
|
1641
|
+
...options
|
|
1642
|
+
});
|
|
1615
1643
|
var getEmailMarketingSequencesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1616
1644
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1617
1645
|
url: "/email-marketing/sequences/workspace/{workspace_id}",
|
|
1618
1646
|
...options
|
|
1619
1647
|
});
|
|
1648
|
+
var getCatalogTaxonomyNodesTaxonomyByTaxonomyId = (options) => (options.client ?? client).get({
|
|
1649
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1650
|
+
url: "/catalog/taxonomy-nodes/taxonomy/{taxonomy_id}",
|
|
1651
|
+
...options
|
|
1652
|
+
});
|
|
1653
|
+
var getBreachIncidents = (options) => (options.client ?? client).get({
|
|
1654
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1655
|
+
url: "/breach-incidents",
|
|
1656
|
+
...options
|
|
1657
|
+
});
|
|
1658
|
+
var postBreachIncidents = (options) => (options.client ?? client).post({
|
|
1659
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1660
|
+
url: "/breach-incidents",
|
|
1661
|
+
...options,
|
|
1662
|
+
headers: {
|
|
1663
|
+
"Content-Type": "application/vnd.api+json",
|
|
1664
|
+
...options.headers
|
|
1665
|
+
}
|
|
1666
|
+
});
|
|
1620
1667
|
var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
1621
1668
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1622
1669
|
url: "/api-keys/{id}/rotate",
|
|
@@ -1692,6 +1739,11 @@ var getCrmExportsById = (options) => (options.client ?? client).get({
|
|
|
1692
1739
|
url: "/crm/exports/{id}",
|
|
1693
1740
|
...options
|
|
1694
1741
|
});
|
|
1742
|
+
var getLlmAnalyticsWorkspace = (options) => (options.client ?? client).get({
|
|
1743
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1744
|
+
url: "/llm_analytics/workspace",
|
|
1745
|
+
...options
|
|
1746
|
+
});
|
|
1695
1747
|
var deleteCrmDealsById = (options) => (options.client ?? client).delete({
|
|
1696
1748
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1697
1749
|
url: "/crm/deals/{id}",
|
|
@@ -1720,6 +1772,11 @@ var postUsersAuthResetPasswordRequest = (options) => (options.client ?? client).
|
|
|
1720
1772
|
...options.headers
|
|
1721
1773
|
}
|
|
1722
1774
|
});
|
|
1775
|
+
var getSupportTagsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1776
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1777
|
+
url: "/support/tags/workspace/{workspace_id}",
|
|
1778
|
+
...options
|
|
1779
|
+
});
|
|
1723
1780
|
var getSearchIndexes = (options) => (options.client ?? client).get({
|
|
1724
1781
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1725
1782
|
url: "/search/indexes",
|
|
@@ -1823,6 +1880,49 @@ var postConnectorsFullscriptSessionGrant = (options) => (options.client ?? clien
|
|
|
1823
1880
|
...options.headers
|
|
1824
1881
|
}
|
|
1825
1882
|
});
|
|
1883
|
+
var deleteCatalogTaxonomyNodesById = (options) => (options.client ?? client).delete({
|
|
1884
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1885
|
+
url: "/catalog/taxonomy-nodes/{id}",
|
|
1886
|
+
...options
|
|
1887
|
+
});
|
|
1888
|
+
var getCatalogTaxonomyNodesById = (options) => (options.client ?? client).get({
|
|
1889
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1890
|
+
url: "/catalog/taxonomy-nodes/{id}",
|
|
1891
|
+
...options
|
|
1892
|
+
});
|
|
1893
|
+
var patchCatalogTaxonomyNodesById = (options) => (options.client ?? client).patch({
|
|
1894
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1895
|
+
url: "/catalog/taxonomy-nodes/{id}",
|
|
1896
|
+
...options,
|
|
1897
|
+
headers: {
|
|
1898
|
+
"Content-Type": "application/vnd.api+json",
|
|
1899
|
+
...options.headers
|
|
1900
|
+
}
|
|
1901
|
+
});
|
|
1902
|
+
var deleteRetentionPoliciesById = (options) => (options.client ?? client).delete({
|
|
1903
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1904
|
+
url: "/retention-policies/{id}",
|
|
1905
|
+
...options
|
|
1906
|
+
});
|
|
1907
|
+
var getRetentionPoliciesById = (options) => (options.client ?? client).get({
|
|
1908
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1909
|
+
url: "/retention-policies/{id}",
|
|
1910
|
+
...options
|
|
1911
|
+
});
|
|
1912
|
+
var patchRetentionPoliciesById = (options) => (options.client ?? client).patch({
|
|
1913
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1914
|
+
url: "/retention-policies/{id}",
|
|
1915
|
+
...options,
|
|
1916
|
+
headers: {
|
|
1917
|
+
"Content-Type": "application/vnd.api+json",
|
|
1918
|
+
...options.headers
|
|
1919
|
+
}
|
|
1920
|
+
});
|
|
1921
|
+
var getCatalogTaxonomiesApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
1922
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1923
|
+
url: "/catalog/taxonomies/application/{application_id}",
|
|
1924
|
+
...options
|
|
1925
|
+
});
|
|
1826
1926
|
var postEmailMarketingCampaignsByIdSend = (options) => (options.client ?? client).post({
|
|
1827
1927
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1828
1928
|
url: "/email-marketing/campaigns/{id}/send",
|
|
@@ -1905,6 +2005,20 @@ var postEmailMarketingCampaigns = (options) => (options.client ?? client).post({
|
|
|
1905
2005
|
...options.headers
|
|
1906
2006
|
}
|
|
1907
2007
|
});
|
|
2008
|
+
var getConfigs = (options) => (options.client ?? client).get({
|
|
2009
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2010
|
+
url: "/configs",
|
|
2011
|
+
...options
|
|
2012
|
+
});
|
|
2013
|
+
var postConfigs = (options) => (options.client ?? client).post({
|
|
2014
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2015
|
+
url: "/configs",
|
|
2016
|
+
...options,
|
|
2017
|
+
headers: {
|
|
2018
|
+
"Content-Type": "application/vnd.api+json",
|
|
2019
|
+
...options.headers
|
|
2020
|
+
}
|
|
2021
|
+
});
|
|
1908
2022
|
var deleteCrmCustomEntitiesById = (options) => (options.client ?? client).delete({
|
|
1909
2023
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1910
2024
|
url: "/crm/custom-entities/{id}",
|
|
@@ -1974,6 +2088,15 @@ var postCrmCompanies = (options) => (options.client ?? client).post({
|
|
|
1974
2088
|
...options.headers
|
|
1975
2089
|
}
|
|
1976
2090
|
});
|
|
2091
|
+
var patchLegalDocumentsByIdUnpublish = (options) => (options.client ?? client).patch({
|
|
2092
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2093
|
+
url: "/legal-documents/{id}/unpublish",
|
|
2094
|
+
...options,
|
|
2095
|
+
headers: {
|
|
2096
|
+
"Content-Type": "application/vnd.api+json",
|
|
2097
|
+
...options.headers
|
|
2098
|
+
}
|
|
2099
|
+
});
|
|
1977
2100
|
var getVoiceSessionsMine = (options) => (options.client ?? client).get({
|
|
1978
2101
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1979
2102
|
url: "/voice/sessions/mine",
|
|
@@ -2167,6 +2290,35 @@ var getSearchSuggest = (options) => (options.client ?? client).get({
|
|
|
2167
2290
|
url: "/search/suggest",
|
|
2168
2291
|
...options
|
|
2169
2292
|
});
|
|
2293
|
+
var getAuditChainEntries = (options) => (options.client ?? client).get({
|
|
2294
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2295
|
+
url: "/audit-chain-entries",
|
|
2296
|
+
...options
|
|
2297
|
+
});
|
|
2298
|
+
var deleteCatalogTaxonomiesById = (options) => (options.client ?? client).delete({
|
|
2299
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2300
|
+
url: "/catalog/taxonomies/{id}",
|
|
2301
|
+
...options
|
|
2302
|
+
});
|
|
2303
|
+
var getCatalogTaxonomiesById = (options) => (options.client ?? client).get({
|
|
2304
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2305
|
+
url: "/catalog/taxonomies/{id}",
|
|
2306
|
+
...options
|
|
2307
|
+
});
|
|
2308
|
+
var patchCatalogTaxonomiesById = (options) => (options.client ?? client).patch({
|
|
2309
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2310
|
+
url: "/catalog/taxonomies/{id}",
|
|
2311
|
+
...options,
|
|
2312
|
+
headers: {
|
|
2313
|
+
"Content-Type": "application/vnd.api+json",
|
|
2314
|
+
...options.headers
|
|
2315
|
+
}
|
|
2316
|
+
});
|
|
2317
|
+
var getLegalAcceptancesById = (options) => (options.client ?? client).get({
|
|
2318
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2319
|
+
url: "/legal-acceptances/{id}",
|
|
2320
|
+
...options
|
|
2321
|
+
});
|
|
2170
2322
|
var deleteCrmRelationshipTypesById = (options) => (options.client ?? client).delete({
|
|
2171
2323
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2172
2324
|
url: "/crm/relationship-types/{id}",
|
|
@@ -2246,6 +2398,15 @@ var patchEmailMarketingGeneratedEmailsByIdApprove = (options) => (options.client
|
|
|
2246
2398
|
...options.headers
|
|
2247
2399
|
}
|
|
2248
2400
|
});
|
|
2401
|
+
var postSupportTickets = (options) => (options.client ?? client).post({
|
|
2402
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2403
|
+
url: "/support/tickets",
|
|
2404
|
+
...options,
|
|
2405
|
+
headers: {
|
|
2406
|
+
"Content-Type": "application/vnd.api+json",
|
|
2407
|
+
...options.headers
|
|
2408
|
+
}
|
|
2409
|
+
});
|
|
2249
2410
|
var getCreditPackagesById = (options) => (options.client ?? client).get({
|
|
2250
2411
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2251
2412
|
url: "/credit-packages/{id}",
|
|
@@ -2359,6 +2520,15 @@ var postTenantsByIdCredit = (options) => (options.client ?? client).post({
|
|
|
2359
2520
|
...options.headers
|
|
2360
2521
|
}
|
|
2361
2522
|
});
|
|
2523
|
+
var postCatalogProducts = (options) => (options.client ?? client).post({
|
|
2524
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2525
|
+
url: "/catalog/products",
|
|
2526
|
+
...options,
|
|
2527
|
+
headers: {
|
|
2528
|
+
"Content-Type": "application/vnd.api+json",
|
|
2529
|
+
...options.headers
|
|
2530
|
+
}
|
|
2531
|
+
});
|
|
2362
2532
|
var patchSchedulingBookingsSchedulingBookingsByIdCancel = (options) => (options.client ?? client).patch({
|
|
2363
2533
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2364
2534
|
url: "/scheduling/bookings/scheduling/bookings/{id}/cancel",
|
|
@@ -2406,6 +2576,11 @@ var patchVoiceSessionsByIdStop = (options) => (options.client ?? client).patch({
|
|
|
2406
2576
|
...options.headers
|
|
2407
2577
|
}
|
|
2408
2578
|
});
|
|
2579
|
+
var getLlmAnalyticsSummary = (options) => (options.client ?? client).get({
|
|
2580
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2581
|
+
url: "/llm_analytics/summary",
|
|
2582
|
+
...options
|
|
2583
|
+
});
|
|
2409
2584
|
var getSchedulingParticipants = (options) => (options.client ?? client).get({
|
|
2410
2585
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2411
2586
|
url: "/scheduling/participants",
|
|
@@ -2434,6 +2609,11 @@ var patchExtractionDocumentsByIdFinishUpload = (options) => (options.client ?? c
|
|
|
2434
2609
|
...options.headers
|
|
2435
2610
|
}
|
|
2436
2611
|
});
|
|
2612
|
+
var getSupportTicketMessagesTicketByTicketId = (options) => (options.client ?? client).get({
|
|
2613
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2614
|
+
url: "/support/ticket-messages/ticket/{ticket_id}",
|
|
2615
|
+
...options
|
|
2616
|
+
});
|
|
2437
2617
|
var deleteCrawlerJobsById = (options) => (options.client ?? client).delete({
|
|
2438
2618
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2439
2619
|
url: "/crawler/jobs/{id}",
|
|
@@ -2444,6 +2624,11 @@ var getCrawlerJobsById = (options) => (options.client ?? client).get({
|
|
|
2444
2624
|
url: "/crawler/jobs/{id}",
|
|
2445
2625
|
...options
|
|
2446
2626
|
});
|
|
2627
|
+
var getConsentRecordsById = (options) => (options.client ?? client).get({
|
|
2628
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2629
|
+
url: "/consent-records/{id}",
|
|
2630
|
+
...options
|
|
2631
|
+
});
|
|
2447
2632
|
var getCrmExportsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2448
2633
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2449
2634
|
url: "/crm/exports/workspace/{workspace_id}",
|
|
@@ -2454,11 +2639,30 @@ var getTrainingSessionsAgentsByAgentIdSessions = (options) => (options.client ??
|
|
|
2454
2639
|
url: "/training-sessions/agents/{agent_id}/sessions",
|
|
2455
2640
|
...options
|
|
2456
2641
|
});
|
|
2642
|
+
var patchLegalDocumentsByIdPublish = (options) => (options.client ?? client).patch({
|
|
2643
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2644
|
+
url: "/legal-documents/{id}/publish",
|
|
2645
|
+
...options,
|
|
2646
|
+
headers: {
|
|
2647
|
+
"Content-Type": "application/vnd.api+json",
|
|
2648
|
+
...options.headers
|
|
2649
|
+
}
|
|
2650
|
+
});
|
|
2651
|
+
var getScanResults = (options) => (options.client ?? client).get({
|
|
2652
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2653
|
+
url: "/scan-results",
|
|
2654
|
+
...options
|
|
2655
|
+
});
|
|
2457
2656
|
var getSearch = (options) => (options.client ?? client).get({
|
|
2458
2657
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2459
2658
|
url: "/search",
|
|
2460
2659
|
...options
|
|
2461
2660
|
});
|
|
2661
|
+
var getCatalogProductsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2662
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2663
|
+
url: "/catalog/products/workspace/{workspace_id}",
|
|
2664
|
+
...options
|
|
2665
|
+
});
|
|
2462
2666
|
var getVoiceSessionsById = (options) => (options.client ?? client).get({
|
|
2463
2667
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2464
2668
|
url: "/voice/sessions/{id}",
|
|
@@ -2548,6 +2752,11 @@ var patchCrmPipelineStagesById = (options) => (options.client ?? client).patch({
|
|
|
2548
2752
|
...options.headers
|
|
2549
2753
|
}
|
|
2550
2754
|
});
|
|
2755
|
+
var getLegalAcceptances = (options) => (options.client ?? client).get({
|
|
2756
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2757
|
+
url: "/legal-acceptances",
|
|
2758
|
+
...options
|
|
2759
|
+
});
|
|
2551
2760
|
var getCrmPipelinesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2552
2761
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2553
2762
|
url: "/crm/pipelines/workspace/{workspace_id}",
|
|
@@ -2590,6 +2799,20 @@ var patchThreadsById = (options) => (options.client ?? client).patch({
|
|
|
2590
2799
|
...options.headers
|
|
2591
2800
|
}
|
|
2592
2801
|
});
|
|
2802
|
+
var patchImpactAssessmentsByIdApprove = (options) => (options.client ?? client).patch({
|
|
2803
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2804
|
+
url: "/impact-assessments/{id}/approve",
|
|
2805
|
+
...options,
|
|
2806
|
+
headers: {
|
|
2807
|
+
"Content-Type": "application/vnd.api+json",
|
|
2808
|
+
...options.headers
|
|
2809
|
+
}
|
|
2810
|
+
});
|
|
2811
|
+
var getSupportTicketsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2812
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2813
|
+
url: "/support/tickets/workspace/{workspace_id}",
|
|
2814
|
+
...options
|
|
2815
|
+
});
|
|
2593
2816
|
var deleteNotificationPreferencesById = (options) => (options.client ?? client).delete({
|
|
2594
2817
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2595
2818
|
url: "/notification-preferences/{id}",
|
|
@@ -2623,6 +2846,11 @@ var postWatcherClaims = (options) => (options.client ?? client).post({
|
|
|
2623
2846
|
...options.headers
|
|
2624
2847
|
}
|
|
2625
2848
|
});
|
|
2849
|
+
var getLlmAnalytics = (options) => (options.client ?? client).get({
|
|
2850
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2851
|
+
url: "/llm_analytics",
|
|
2852
|
+
...options
|
|
2853
|
+
});
|
|
2626
2854
|
var getCrawlerJobs = (options) => (options.client ?? client).get({
|
|
2627
2855
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2628
2856
|
url: "/crawler/jobs",
|
|
@@ -2674,6 +2902,16 @@ var patchVoiceSessionsByIdFinalize = (options) => (options.client ?? client).pat
|
|
|
2674
2902
|
...options.headers
|
|
2675
2903
|
}
|
|
2676
2904
|
});
|
|
2905
|
+
var deleteProcessingActivitiesById = (options) => (options.client ?? client).delete({
|
|
2906
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2907
|
+
url: "/processing-activities/{id}",
|
|
2908
|
+
...options
|
|
2909
|
+
});
|
|
2910
|
+
var getProcessingActivitiesById = (options) => (options.client ?? client).get({
|
|
2911
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2912
|
+
url: "/processing-activities/{id}",
|
|
2913
|
+
...options
|
|
2914
|
+
});
|
|
2677
2915
|
var postThreadsByIdExport = (options) => (options.client ?? client).post({
|
|
2678
2916
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2679
2917
|
url: "/threads/{id}/export",
|
|
@@ -2683,6 +2921,34 @@ var postThreadsByIdExport = (options) => (options.client ?? client).post({
|
|
|
2683
2921
|
...options.headers
|
|
2684
2922
|
}
|
|
2685
2923
|
});
|
|
2924
|
+
var getDataSubjectRequests = (options) => (options.client ?? client).get({
|
|
2925
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2926
|
+
url: "/data-subject-requests",
|
|
2927
|
+
...options
|
|
2928
|
+
});
|
|
2929
|
+
var postDataSubjectRequests = (options) => (options.client ?? client).post({
|
|
2930
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2931
|
+
url: "/data-subject-requests",
|
|
2932
|
+
...options,
|
|
2933
|
+
headers: {
|
|
2934
|
+
"Content-Type": "application/vnd.api+json",
|
|
2935
|
+
...options.headers
|
|
2936
|
+
}
|
|
2937
|
+
});
|
|
2938
|
+
var getImpactAssessmentsById = (options) => (options.client ?? client).get({
|
|
2939
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2940
|
+
url: "/impact-assessments/{id}",
|
|
2941
|
+
...options
|
|
2942
|
+
});
|
|
2943
|
+
var patchImpactAssessmentsById = (options) => (options.client ?? client).patch({
|
|
2944
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2945
|
+
url: "/impact-assessments/{id}",
|
|
2946
|
+
...options,
|
|
2947
|
+
headers: {
|
|
2948
|
+
"Content-Type": "application/vnd.api+json",
|
|
2949
|
+
...options.headers
|
|
2950
|
+
}
|
|
2951
|
+
});
|
|
2686
2952
|
var postAgentsByIdTeach = (options) => (options.client ?? client).post({
|
|
2687
2953
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2688
2954
|
url: "/agents/{id}/teach",
|
|
@@ -2719,6 +2985,11 @@ var postExtractionSchemaDiscoveries = (options) => (options.client ?? client).po
|
|
|
2719
2985
|
...options.headers
|
|
2720
2986
|
}
|
|
2721
2987
|
});
|
|
2988
|
+
var getDataSubjectRequestsById = (options) => (options.client ?? client).get({
|
|
2989
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2990
|
+
url: "/data-subject-requests/{id}",
|
|
2991
|
+
...options
|
|
2992
|
+
});
|
|
2722
2993
|
var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
2723
2994
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2724
2995
|
url: "/users/register-isv",
|
|
@@ -2831,6 +3102,11 @@ var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get
|
|
|
2831
3102
|
url: "/extraction/documents/{id}/view",
|
|
2832
3103
|
...options
|
|
2833
3104
|
});
|
|
3105
|
+
var getAuditLogs = (options) => (options.client ?? client).get({
|
|
3106
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3107
|
+
url: "/audit-logs",
|
|
3108
|
+
...options
|
|
3109
|
+
});
|
|
2834
3110
|
var getBuckets = (options) => (options.client ?? client).get({
|
|
2835
3111
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2836
3112
|
url: "/buckets",
|
|
@@ -2952,6 +3228,11 @@ var patchWebhookConfigsByIdRotateSecret = (options) => (options.client ?? client
|
|
|
2952
3228
|
...options.headers
|
|
2953
3229
|
}
|
|
2954
3230
|
});
|
|
3231
|
+
var getBreachNotificationsById = (options) => (options.client ?? client).get({
|
|
3232
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3233
|
+
url: "/breach-notifications/{id}",
|
|
3234
|
+
...options
|
|
3235
|
+
});
|
|
2955
3236
|
var postTenantsByIdSchedulePurge = (options) => (options.client ?? client).post({
|
|
2956
3237
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2957
3238
|
url: "/tenants/{id}/schedule-purge",
|
|
@@ -3013,6 +3294,11 @@ var patchAgentsById = (options) => (options.client ?? client).patch({
|
|
|
3013
3294
|
...options.headers
|
|
3014
3295
|
}
|
|
3015
3296
|
});
|
|
3297
|
+
var getAuditChainEntriesById = (options) => (options.client ?? client).get({
|
|
3298
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3299
|
+
url: "/audit-chain-entries/{id}",
|
|
3300
|
+
...options
|
|
3301
|
+
});
|
|
3016
3302
|
var patchThreadsByIdUnarchive = (options) => (options.client ?? client).patch({
|
|
3017
3303
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3018
3304
|
url: "/threads/{id}/unarchive",
|
|
@@ -3045,6 +3331,30 @@ var postAiSearch = (options) => (options.client ?? client).post({
|
|
|
3045
3331
|
...options.headers
|
|
3046
3332
|
}
|
|
3047
3333
|
});
|
|
3334
|
+
var deleteAiGraphNodesById = (options) => (options.client ?? client).delete({
|
|
3335
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3336
|
+
url: "/ai/graph/nodes/{id}",
|
|
3337
|
+
...options
|
|
3338
|
+
});
|
|
3339
|
+
var getImpactAssessments = (options) => (options.client ?? client).get({
|
|
3340
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3341
|
+
url: "/impact-assessments",
|
|
3342
|
+
...options
|
|
3343
|
+
});
|
|
3344
|
+
var postImpactAssessments = (options) => (options.client ?? client).post({
|
|
3345
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3346
|
+
url: "/impact-assessments",
|
|
3347
|
+
...options,
|
|
3348
|
+
headers: {
|
|
3349
|
+
"Content-Type": "application/vnd.api+json",
|
|
3350
|
+
...options.headers
|
|
3351
|
+
}
|
|
3352
|
+
});
|
|
3353
|
+
var getLegalAcceptancesLatest = (options) => (options.client ?? client).get({
|
|
3354
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3355
|
+
url: "/legal-acceptances/latest",
|
|
3356
|
+
...options
|
|
3357
|
+
});
|
|
3048
3358
|
var getWorkspacesShared = (options) => (options.client ?? client).get({
|
|
3049
3359
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3050
3360
|
url: "/workspaces/shared",
|
|
@@ -3092,6 +3402,15 @@ var getTransactions = (options) => (options.client ?? client).get({
|
|
|
3092
3402
|
url: "/transactions",
|
|
3093
3403
|
...options
|
|
3094
3404
|
});
|
|
3405
|
+
var postCatalogTaxonomies = (options) => (options.client ?? client).post({
|
|
3406
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3407
|
+
url: "/catalog/taxonomies",
|
|
3408
|
+
...options,
|
|
3409
|
+
headers: {
|
|
3410
|
+
"Content-Type": "application/vnd.api+json",
|
|
3411
|
+
...options.headers
|
|
3412
|
+
}
|
|
3413
|
+
});
|
|
3095
3414
|
var postConnectorsOauthInitiate = (options) => (options.client ?? client).post({
|
|
3096
3415
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3097
3416
|
url: "/connectors/oauth/initiate",
|
|
@@ -3101,6 +3420,11 @@ var postConnectorsOauthInitiate = (options) => (options.client ?? client).post({
|
|
|
3101
3420
|
...options.headers
|
|
3102
3421
|
}
|
|
3103
3422
|
});
|
|
3423
|
+
var getConsentRecordsActive = (options) => (options.client ?? client).get({
|
|
3424
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3425
|
+
url: "/consent-records/active",
|
|
3426
|
+
...options
|
|
3427
|
+
});
|
|
3104
3428
|
var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
|
|
3105
3429
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3106
3430
|
url: "/search/saved/{id}/run",
|
|
@@ -3110,6 +3434,25 @@ var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
|
|
|
3110
3434
|
...options.headers
|
|
3111
3435
|
}
|
|
3112
3436
|
});
|
|
3437
|
+
var deleteCatalogProductsById = (options) => (options.client ?? client).delete({
|
|
3438
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3439
|
+
url: "/catalog/products/{id}",
|
|
3440
|
+
...options
|
|
3441
|
+
});
|
|
3442
|
+
var getCatalogProductsById = (options) => (options.client ?? client).get({
|
|
3443
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3444
|
+
url: "/catalog/products/{id}",
|
|
3445
|
+
...options
|
|
3446
|
+
});
|
|
3447
|
+
var patchCatalogProductsById = (options) => (options.client ?? client).patch({
|
|
3448
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3449
|
+
url: "/catalog/products/{id}",
|
|
3450
|
+
...options,
|
|
3451
|
+
headers: {
|
|
3452
|
+
"Content-Type": "application/vnd.api+json",
|
|
3453
|
+
...options.headers
|
|
3454
|
+
}
|
|
3455
|
+
});
|
|
3113
3456
|
var postWebhookConfigsBulkEnable = (options) => (options.client ?? client).post({
|
|
3114
3457
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3115
3458
|
url: "/webhook-configs/bulk-enable",
|
|
@@ -3128,6 +3471,34 @@ var postWebhookConfigsByIdReplay = (options) => (options.client ?? client).post(
|
|
|
3128
3471
|
...options.headers
|
|
3129
3472
|
}
|
|
3130
3473
|
});
|
|
3474
|
+
var deleteCatalogProductVariantsById = (options) => (options.client ?? client).delete({
|
|
3475
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3476
|
+
url: "/catalog/product-variants/{id}",
|
|
3477
|
+
...options
|
|
3478
|
+
});
|
|
3479
|
+
var getCatalogProductVariantsById = (options) => (options.client ?? client).get({
|
|
3480
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3481
|
+
url: "/catalog/product-variants/{id}",
|
|
3482
|
+
...options
|
|
3483
|
+
});
|
|
3484
|
+
var patchCatalogProductVariantsById = (options) => (options.client ?? client).patch({
|
|
3485
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3486
|
+
url: "/catalog/product-variants/{id}",
|
|
3487
|
+
...options,
|
|
3488
|
+
headers: {
|
|
3489
|
+
"Content-Type": "application/vnd.api+json",
|
|
3490
|
+
...options.headers
|
|
3491
|
+
}
|
|
3492
|
+
});
|
|
3493
|
+
var patchBreachIncidentsByIdStatus = (options) => (options.client ?? client).patch({
|
|
3494
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3495
|
+
url: "/breach-incidents/{id}/status",
|
|
3496
|
+
...options,
|
|
3497
|
+
headers: {
|
|
3498
|
+
"Content-Type": "application/vnd.api+json",
|
|
3499
|
+
...options.headers
|
|
3500
|
+
}
|
|
3501
|
+
});
|
|
3131
3502
|
var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).post({
|
|
3132
3503
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3133
3504
|
url: "/webhook-deliveries/bulk-retry",
|
|
@@ -3137,6 +3508,11 @@ var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).pos
|
|
|
3137
3508
|
...options.headers
|
|
3138
3509
|
}
|
|
3139
3510
|
});
|
|
3511
|
+
var getLegalDocumentsByLocale = (options) => (options.client ?? client).get({
|
|
3512
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3513
|
+
url: "/legal-documents/by-locale",
|
|
3514
|
+
...options
|
|
3515
|
+
});
|
|
3140
3516
|
var getWatcherClaimsById = (options) => (options.client ?? client).get({
|
|
3141
3517
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3142
3518
|
url: "/watcher/claims/{id}",
|
|
@@ -3169,6 +3545,15 @@ var postAiEmbed = (options) => (options.client ?? client).post({
|
|
|
3169
3545
|
...options.headers
|
|
3170
3546
|
}
|
|
3171
3547
|
});
|
|
3548
|
+
var patchConsentRecordsByIdWithdraw = (options) => (options.client ?? client).patch({
|
|
3549
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3550
|
+
url: "/consent-records/{id}/withdraw",
|
|
3551
|
+
...options,
|
|
3552
|
+
headers: {
|
|
3553
|
+
"Content-Type": "application/vnd.api+json",
|
|
3554
|
+
...options.headers
|
|
3555
|
+
}
|
|
3556
|
+
});
|
|
3172
3557
|
var getSchedulingBookings = (options) => (options.client ?? client).get({
|
|
3173
3558
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3174
3559
|
url: "/scheduling/bookings",
|
|
@@ -3211,6 +3596,11 @@ var postTenantsIsv = (options) => (options.client ?? client).post({
|
|
|
3211
3596
|
...options.headers
|
|
3212
3597
|
}
|
|
3213
3598
|
});
|
|
3599
|
+
var getScanResultsById = (options) => (options.client ?? client).get({
|
|
3600
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3601
|
+
url: "/scan-results/{id}",
|
|
3602
|
+
...options
|
|
3603
|
+
});
|
|
3214
3604
|
var patchExtractionResultsByIdRegenerate = (options) => (options.client ?? client).patch({
|
|
3215
3605
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3216
3606
|
url: "/extraction/results/{id}/regenerate",
|
|
@@ -3469,6 +3859,20 @@ var patchExtractionResultsByIdSaveCorrections = (options) => (options.client ??
|
|
|
3469
3859
|
...options.headers
|
|
3470
3860
|
}
|
|
3471
3861
|
});
|
|
3862
|
+
var getConsentRecords = (options) => (options.client ?? client).get({
|
|
3863
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3864
|
+
url: "/consent-records",
|
|
3865
|
+
...options
|
|
3866
|
+
});
|
|
3867
|
+
var postConsentRecords = (options) => (options.client ?? client).post({
|
|
3868
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3869
|
+
url: "/consent-records",
|
|
3870
|
+
...options,
|
|
3871
|
+
headers: {
|
|
3872
|
+
"Content-Type": "application/vnd.api+json",
|
|
3873
|
+
...options.headers
|
|
3874
|
+
}
|
|
3875
|
+
});
|
|
3472
3876
|
var postUsersAuthResendConfirmation = (options) => (options.client ?? client).post({
|
|
3473
3877
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3474
3878
|
url: "/users/auth/resend-confirmation",
|
|
@@ -3511,6 +3915,15 @@ var postWatcherEvents = (options) => (options.client ?? client).post({
|
|
|
3511
3915
|
...options.headers
|
|
3512
3916
|
}
|
|
3513
3917
|
});
|
|
3918
|
+
var postSupportTicketMessages = (options) => (options.client ?? client).post({
|
|
3919
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3920
|
+
url: "/support/ticket-messages",
|
|
3921
|
+
...options,
|
|
3922
|
+
headers: {
|
|
3923
|
+
"Content-Type": "application/vnd.api+json",
|
|
3924
|
+
...options.headers
|
|
3925
|
+
}
|
|
3926
|
+
});
|
|
3514
3927
|
var postConnectorsOauthCallback = (options) => (options.client ?? client).post({
|
|
3515
3928
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3516
3929
|
url: "/connectors/oauth/callback",
|
|
@@ -3520,6 +3933,15 @@ var postConnectorsOauthCallback = (options) => (options.client ?? client).post({
|
|
|
3520
3933
|
...options.headers
|
|
3521
3934
|
}
|
|
3522
3935
|
});
|
|
3936
|
+
var postSupportTags = (options) => (options.client ?? client).post({
|
|
3937
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3938
|
+
url: "/support/tags",
|
|
3939
|
+
...options,
|
|
3940
|
+
headers: {
|
|
3941
|
+
"Content-Type": "application/vnd.api+json",
|
|
3942
|
+
...options.headers
|
|
3943
|
+
}
|
|
3944
|
+
});
|
|
3523
3945
|
var postAgentVersionsByIdSetSystemFields = (options) => (options.client ?? client).post({
|
|
3524
3946
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3525
3947
|
url: "/agent-versions/{id}/set-system-fields",
|
|
@@ -3538,6 +3960,34 @@ var postThreadsByIdSummarize = (options) => (options.client ?? client).post({
|
|
|
3538
3960
|
...options.headers
|
|
3539
3961
|
}
|
|
3540
3962
|
});
|
|
3963
|
+
var patchConfigsByKey = (options) => (options.client ?? client).patch({
|
|
3964
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3965
|
+
url: "/configs/{key}",
|
|
3966
|
+
...options,
|
|
3967
|
+
headers: {
|
|
3968
|
+
"Content-Type": "application/vnd.api+json",
|
|
3969
|
+
...options.headers
|
|
3970
|
+
}
|
|
3971
|
+
});
|
|
3972
|
+
var deleteLegalDocumentsById = (options) => (options.client ?? client).delete({
|
|
3973
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3974
|
+
url: "/legal-documents/{id}",
|
|
3975
|
+
...options
|
|
3976
|
+
});
|
|
3977
|
+
var getLegalDocumentsById = (options) => (options.client ?? client).get({
|
|
3978
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3979
|
+
url: "/legal-documents/{id}",
|
|
3980
|
+
...options
|
|
3981
|
+
});
|
|
3982
|
+
var patchLegalDocumentsById = (options) => (options.client ?? client).patch({
|
|
3983
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3984
|
+
url: "/legal-documents/{id}",
|
|
3985
|
+
...options,
|
|
3986
|
+
headers: {
|
|
3987
|
+
"Content-Type": "application/vnd.api+json",
|
|
3988
|
+
...options.headers
|
|
3989
|
+
}
|
|
3990
|
+
});
|
|
3541
3991
|
var getExtractionResults = (options) => (options.client ?? client).get({
|
|
3542
3992
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3543
3993
|
url: "/extraction/results",
|
|
@@ -3552,11 +4002,30 @@ var postAgentsByIdClone = (options) => (options.client ?? client).post({
|
|
|
3552
4002
|
...options.headers
|
|
3553
4003
|
}
|
|
3554
4004
|
});
|
|
4005
|
+
var getLegalDocuments = (options) => (options.client ?? client).get({
|
|
4006
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4007
|
+
url: "/legal-documents",
|
|
4008
|
+
...options
|
|
4009
|
+
});
|
|
4010
|
+
var postLegalDocuments = (options) => (options.client ?? client).post({
|
|
4011
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4012
|
+
url: "/legal-documents",
|
|
4013
|
+
...options,
|
|
4014
|
+
headers: {
|
|
4015
|
+
"Content-Type": "application/vnd.api+json",
|
|
4016
|
+
...options.headers
|
|
4017
|
+
}
|
|
4018
|
+
});
|
|
3555
4019
|
var getInvitationsMe = (options) => (options.client ?? client).get({
|
|
3556
4020
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3557
4021
|
url: "/invitations/me",
|
|
3558
4022
|
...options
|
|
3559
4023
|
});
|
|
4024
|
+
var getLegalDocumentsForApplication = (options) => (options.client ?? client).get({
|
|
4025
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4026
|
+
url: "/legal-documents/for-application",
|
|
4027
|
+
...options
|
|
4028
|
+
});
|
|
3560
4029
|
var getApiKeys = (options) => (options.client ?? client).get({
|
|
3561
4030
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3562
4031
|
url: "/api-keys",
|
|
@@ -3571,6 +4040,11 @@ var postApiKeys = (options) => (options.client ?? client).post({
|
|
|
3571
4040
|
...options.headers
|
|
3572
4041
|
}
|
|
3573
4042
|
});
|
|
4043
|
+
var deleteSupportTagsById = (options) => (options.client ?? client).delete({
|
|
4044
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4045
|
+
url: "/support/tags/{id}",
|
|
4046
|
+
...options
|
|
4047
|
+
});
|
|
3574
4048
|
var postExtractionDocumentsBulkReprocess = (options) => (options.client ?? client).post({
|
|
3575
4049
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3576
4050
|
url: "/extraction/documents/bulk-reprocess",
|
|
@@ -3627,11 +4101,39 @@ var postCrmDeals = (options) => (options.client ?? client).post({
|
|
|
3627
4101
|
...options.headers
|
|
3628
4102
|
}
|
|
3629
4103
|
});
|
|
4104
|
+
var patchDataSubjectRequestsByIdStatus = (options) => (options.client ?? client).patch({
|
|
4105
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4106
|
+
url: "/data-subject-requests/{id}/status",
|
|
4107
|
+
...options,
|
|
4108
|
+
headers: {
|
|
4109
|
+
"Content-Type": "application/vnd.api+json",
|
|
4110
|
+
...options.headers
|
|
4111
|
+
}
|
|
4112
|
+
});
|
|
4113
|
+
var getLlmAnalyticsUsage = (options) => (options.client ?? client).get({
|
|
4114
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4115
|
+
url: "/llm_analytics/usage",
|
|
4116
|
+
...options
|
|
4117
|
+
});
|
|
3630
4118
|
var getCrmActivitiesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3631
4119
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3632
4120
|
url: "/crm/activities/workspace/{workspace_id}",
|
|
3633
4121
|
...options
|
|
3634
4122
|
});
|
|
4123
|
+
var getAiGraphNodes = (options) => (options.client ?? client).get({
|
|
4124
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4125
|
+
url: "/ai/graph/nodes",
|
|
4126
|
+
...options
|
|
4127
|
+
});
|
|
4128
|
+
var postAiGraphNodes = (options) => (options.client ?? client).post({
|
|
4129
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4130
|
+
url: "/ai/graph/nodes",
|
|
4131
|
+
...options,
|
|
4132
|
+
headers: {
|
|
4133
|
+
"Content-Type": "application/vnd.api+json",
|
|
4134
|
+
...options.headers
|
|
4135
|
+
}
|
|
4136
|
+
});
|
|
3635
4137
|
var getAgents = (options) => (options.client ?? client).get({
|
|
3636
4138
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3637
4139
|
url: "/agents",
|
|
@@ -3651,6 +4153,48 @@ var getApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options.c
|
|
|
3651
4153
|
url: "/applications/{application_id}/email-templates/{slug}",
|
|
3652
4154
|
...options
|
|
3653
4155
|
});
|
|
4156
|
+
var postSupportTicketRatings = (options) => (options.client ?? client).post({
|
|
4157
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4158
|
+
url: "/support/ticket-ratings",
|
|
4159
|
+
...options,
|
|
4160
|
+
headers: {
|
|
4161
|
+
"Content-Type": "application/vnd.api+json",
|
|
4162
|
+
...options.headers
|
|
4163
|
+
}
|
|
4164
|
+
});
|
|
4165
|
+
var getBreachNotifications = (options) => (options.client ?? client).get({
|
|
4166
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4167
|
+
url: "/breach-notifications",
|
|
4168
|
+
...options
|
|
4169
|
+
});
|
|
4170
|
+
var getRetentionPolicies = (options) => (options.client ?? client).get({
|
|
4171
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4172
|
+
url: "/retention-policies",
|
|
4173
|
+
...options
|
|
4174
|
+
});
|
|
4175
|
+
var postRetentionPolicies = (options) => (options.client ?? client).post({
|
|
4176
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4177
|
+
url: "/retention-policies",
|
|
4178
|
+
...options,
|
|
4179
|
+
headers: {
|
|
4180
|
+
"Content-Type": "application/vnd.api+json",
|
|
4181
|
+
...options.headers
|
|
4182
|
+
}
|
|
4183
|
+
});
|
|
4184
|
+
var getProcessingActivities = (options) => (options.client ?? client).get({
|
|
4185
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4186
|
+
url: "/processing-activities",
|
|
4187
|
+
...options
|
|
4188
|
+
});
|
|
4189
|
+
var postProcessingActivities = (options) => (options.client ?? client).post({
|
|
4190
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4191
|
+
url: "/processing-activities",
|
|
4192
|
+
...options,
|
|
4193
|
+
headers: {
|
|
4194
|
+
"Content-Type": "application/vnd.api+json",
|
|
4195
|
+
...options.headers
|
|
4196
|
+
}
|
|
4197
|
+
});
|
|
3654
4198
|
var getConnectors = (options) => (options.client ?? client).get({
|
|
3655
4199
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3656
4200
|
url: "/connectors",
|
|
@@ -3741,11 +4285,35 @@ var postCrmPipelineStages = (options) => (options.client ?? client).post({
|
|
|
3741
4285
|
...options.headers
|
|
3742
4286
|
}
|
|
3743
4287
|
});
|
|
4288
|
+
var getCatalogProductVariantsProductByProductId = (options) => (options.client ?? client).get({
|
|
4289
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4290
|
+
url: "/catalog/product-variants/product/{product_id}",
|
|
4291
|
+
...options
|
|
4292
|
+
});
|
|
3744
4293
|
var getUsers = (options) => (options.client ?? client).get({
|
|
3745
4294
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3746
4295
|
url: "/users",
|
|
3747
4296
|
...options
|
|
3748
4297
|
});
|
|
4298
|
+
var deleteSupportTicketsById = (options) => (options.client ?? client).delete({
|
|
4299
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4300
|
+
url: "/support/tickets/{id}",
|
|
4301
|
+
...options
|
|
4302
|
+
});
|
|
4303
|
+
var getSupportTicketsById = (options) => (options.client ?? client).get({
|
|
4304
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4305
|
+
url: "/support/tickets/{id}",
|
|
4306
|
+
...options
|
|
4307
|
+
});
|
|
4308
|
+
var patchSupportTicketsById = (options) => (options.client ?? client).patch({
|
|
4309
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4310
|
+
url: "/support/tickets/{id}",
|
|
4311
|
+
...options,
|
|
4312
|
+
headers: {
|
|
4313
|
+
"Content-Type": "application/vnd.api+json",
|
|
4314
|
+
...options.headers
|
|
4315
|
+
}
|
|
4316
|
+
});
|
|
3749
4317
|
var postCrmExports = (options) => (options.client ?? client).post({
|
|
3750
4318
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3751
4319
|
url: "/crm/exports",
|
|
@@ -4126,16 +4694,93 @@ function createAiNamespace(rb) {
|
|
|
4126
4694
|
);
|
|
4127
4695
|
},
|
|
4128
4696
|
/** Send a message to an AI conversation (non-streaming) */
|
|
4129
|
-
send: async (
|
|
4697
|
+
send: async (conversationId, body, options) => {
|
|
4130
4698
|
return rb.execute(
|
|
4131
4699
|
postAiMessages,
|
|
4132
4700
|
{
|
|
4133
4701
|
body: {
|
|
4134
|
-
data: {
|
|
4702
|
+
data: {
|
|
4703
|
+
type: "message",
|
|
4704
|
+
attributes: { ...body, conversation_id: conversationId }
|
|
4705
|
+
}
|
|
4706
|
+
}
|
|
4707
|
+
},
|
|
4708
|
+
options
|
|
4709
|
+
);
|
|
4710
|
+
}
|
|
4711
|
+
},
|
|
4712
|
+
/**
|
|
4713
|
+
* Analytics — LLM token usage, costs, and workspace metrics
|
|
4714
|
+
*/
|
|
4715
|
+
analytics: {
|
|
4716
|
+
/** List LLM analytics records */
|
|
4717
|
+
list: async (options) => {
|
|
4718
|
+
return rb.execute(getLlmAnalytics, {}, options);
|
|
4719
|
+
},
|
|
4720
|
+
/** Get LLM cost breakdown */
|
|
4721
|
+
costs: async (options) => {
|
|
4722
|
+
return rb.execute(
|
|
4723
|
+
getLlmAnalyticsCosts,
|
|
4724
|
+
{},
|
|
4725
|
+
options
|
|
4726
|
+
);
|
|
4727
|
+
},
|
|
4728
|
+
/** Get LLM usage summary */
|
|
4729
|
+
summary: async (options) => {
|
|
4730
|
+
return rb.execute(
|
|
4731
|
+
getLlmAnalyticsSummary,
|
|
4732
|
+
{},
|
|
4733
|
+
options
|
|
4734
|
+
);
|
|
4735
|
+
},
|
|
4736
|
+
/** Get raw LLM usage data */
|
|
4737
|
+
usage: async (options) => {
|
|
4738
|
+
return rb.execute(
|
|
4739
|
+
getLlmAnalyticsUsage,
|
|
4740
|
+
{},
|
|
4741
|
+
options
|
|
4742
|
+
);
|
|
4743
|
+
},
|
|
4744
|
+
/** Get workspace-scoped LLM metrics */
|
|
4745
|
+
workspace: async (options) => {
|
|
4746
|
+
return rb.execute(
|
|
4747
|
+
getLlmAnalyticsWorkspace,
|
|
4748
|
+
{},
|
|
4749
|
+
options
|
|
4750
|
+
);
|
|
4751
|
+
}
|
|
4752
|
+
},
|
|
4753
|
+
/**
|
|
4754
|
+
* Graph — knowledge graph node management
|
|
4755
|
+
*/
|
|
4756
|
+
graph: {
|
|
4757
|
+
/** List knowledge graph nodes */
|
|
4758
|
+
listNodes: async (options) => {
|
|
4759
|
+
return rb.execute(
|
|
4760
|
+
getAiGraphNodes,
|
|
4761
|
+
{},
|
|
4762
|
+
options
|
|
4763
|
+
);
|
|
4764
|
+
},
|
|
4765
|
+
/** Create a knowledge graph node */
|
|
4766
|
+
createNode: async (attributes, options) => {
|
|
4767
|
+
return rb.execute(
|
|
4768
|
+
postAiGraphNodes,
|
|
4769
|
+
{
|
|
4770
|
+
body: {
|
|
4771
|
+
data: { type: "graph_node", attributes }
|
|
4135
4772
|
}
|
|
4136
4773
|
},
|
|
4137
4774
|
options
|
|
4138
4775
|
);
|
|
4776
|
+
},
|
|
4777
|
+
/** Delete a knowledge graph node */
|
|
4778
|
+
deleteNode: async (id, options) => {
|
|
4779
|
+
return rb.executeDelete(
|
|
4780
|
+
deleteAiGraphNodesById,
|
|
4781
|
+
{ path: { id } },
|
|
4782
|
+
options
|
|
4783
|
+
);
|
|
4139
4784
|
}
|
|
4140
4785
|
}
|
|
4141
4786
|
};
|
|
@@ -4200,163 +4845,819 @@ function createBillingNamespace(rb) {
|
|
|
4200
4845
|
);
|
|
4201
4846
|
}
|
|
4202
4847
|
},
|
|
4203
|
-
creditPackages: {
|
|
4848
|
+
creditPackages: {
|
|
4849
|
+
list: async (options) => {
|
|
4850
|
+
return rb.execute(
|
|
4851
|
+
getCreditPackages,
|
|
4852
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
4853
|
+
options
|
|
4854
|
+
);
|
|
4855
|
+
},
|
|
4856
|
+
listAll: async (options) => {
|
|
4857
|
+
return paginateToArray(
|
|
4858
|
+
rb.createPaginatedFetcher(
|
|
4859
|
+
getCreditPackages,
|
|
4860
|
+
(page, pageSize) => ({
|
|
4861
|
+
query: { page: { number: page, size: pageSize } }
|
|
4862
|
+
}),
|
|
4863
|
+
options
|
|
4864
|
+
)
|
|
4865
|
+
);
|
|
4866
|
+
},
|
|
4867
|
+
get: async (id, options) => {
|
|
4868
|
+
return rb.execute(
|
|
4869
|
+
getCreditPackagesById,
|
|
4870
|
+
{ path: { id } },
|
|
4871
|
+
options
|
|
4872
|
+
);
|
|
4873
|
+
}
|
|
4874
|
+
},
|
|
4875
|
+
paymentMethods: {
|
|
4876
|
+
delete: async (id, options) => {
|
|
4877
|
+
return rb.executeDelete(
|
|
4878
|
+
deletePaymentMethodsById,
|
|
4879
|
+
{ path: { id } },
|
|
4880
|
+
options
|
|
4881
|
+
);
|
|
4882
|
+
},
|
|
4883
|
+
list: async (options) => {
|
|
4884
|
+
return rb.execute(
|
|
4885
|
+
getPaymentMethods,
|
|
4886
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
4887
|
+
options
|
|
4888
|
+
);
|
|
4889
|
+
},
|
|
4890
|
+
listAll: async (options) => {
|
|
4891
|
+
return paginateToArray(
|
|
4892
|
+
rb.createPaginatedFetcher(
|
|
4893
|
+
getPaymentMethods,
|
|
4894
|
+
(page, pageSize) => ({
|
|
4895
|
+
query: { page: { number: page, size: pageSize } }
|
|
4896
|
+
}),
|
|
4897
|
+
options
|
|
4898
|
+
)
|
|
4899
|
+
);
|
|
4900
|
+
},
|
|
4901
|
+
create: async (attributes, options) => {
|
|
4902
|
+
return rb.execute(
|
|
4903
|
+
postPaymentMethods,
|
|
4904
|
+
{ body: { data: { type: "payment_method", attributes } } },
|
|
4905
|
+
options
|
|
4906
|
+
);
|
|
4907
|
+
},
|
|
4908
|
+
update: async (id, attributes, options) => {
|
|
4909
|
+
return rb.execute(
|
|
4910
|
+
patchPaymentMethodsById,
|
|
4911
|
+
{
|
|
4912
|
+
path: { id },
|
|
4913
|
+
body: { data: { id, type: "payment_method", attributes } }
|
|
4914
|
+
},
|
|
4915
|
+
options
|
|
4916
|
+
);
|
|
4917
|
+
},
|
|
4918
|
+
get: async (id, options) => {
|
|
4919
|
+
return rb.execute(
|
|
4920
|
+
getPaymentMethodsById,
|
|
4921
|
+
{ path: { id } },
|
|
4922
|
+
options
|
|
4923
|
+
);
|
|
4924
|
+
}
|
|
4925
|
+
}
|
|
4926
|
+
};
|
|
4927
|
+
}
|
|
4928
|
+
|
|
4929
|
+
// src/namespaces/catalog.ts
|
|
4930
|
+
function createCatalogNamespace(rb) {
|
|
4931
|
+
return {
|
|
4932
|
+
/**
|
|
4933
|
+
* Products — product catalog management
|
|
4934
|
+
*/
|
|
4935
|
+
products: {
|
|
4936
|
+
/** List products for a workspace */
|
|
4937
|
+
list: async (workspaceId, options) => {
|
|
4938
|
+
return rb.execute(
|
|
4939
|
+
getCatalogProductsWorkspaceByWorkspaceId,
|
|
4940
|
+
{
|
|
4941
|
+
path: { workspace_id: workspaceId },
|
|
4942
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
4943
|
+
},
|
|
4944
|
+
options
|
|
4945
|
+
);
|
|
4946
|
+
},
|
|
4947
|
+
/** Get a product by ID */
|
|
4948
|
+
get: async (id, options) => {
|
|
4949
|
+
return rb.execute(
|
|
4950
|
+
getCatalogProductsById,
|
|
4951
|
+
{ path: { id } },
|
|
4952
|
+
options
|
|
4953
|
+
);
|
|
4954
|
+
},
|
|
4955
|
+
/** Create a new product */
|
|
4956
|
+
create: async (attributes, options) => {
|
|
4957
|
+
return rb.execute(
|
|
4958
|
+
postCatalogProducts,
|
|
4959
|
+
{
|
|
4960
|
+
body: {
|
|
4961
|
+
data: { type: "catalog_product", attributes }
|
|
4962
|
+
}
|
|
4963
|
+
},
|
|
4964
|
+
options
|
|
4965
|
+
);
|
|
4966
|
+
},
|
|
4967
|
+
/** Update a product */
|
|
4968
|
+
update: async (id, attributes, options) => {
|
|
4969
|
+
return rb.execute(
|
|
4970
|
+
patchCatalogProductsById,
|
|
4971
|
+
{
|
|
4972
|
+
path: { id },
|
|
4973
|
+
body: {
|
|
4974
|
+
data: { type: "catalog_product", id, attributes }
|
|
4975
|
+
}
|
|
4976
|
+
},
|
|
4977
|
+
options
|
|
4978
|
+
);
|
|
4979
|
+
},
|
|
4980
|
+
/** Delete a product */
|
|
4981
|
+
delete: async (id, options) => {
|
|
4982
|
+
return rb.executeDelete(
|
|
4983
|
+
deleteCatalogProductsById,
|
|
4984
|
+
{ path: { id } },
|
|
4985
|
+
options
|
|
4986
|
+
);
|
|
4987
|
+
}
|
|
4988
|
+
},
|
|
4989
|
+
/**
|
|
4990
|
+
* Variants — product variants (SKUs)
|
|
4991
|
+
*/
|
|
4992
|
+
variants: {
|
|
4993
|
+
/** Get a variant by ID */
|
|
4994
|
+
get: async (id, options) => {
|
|
4995
|
+
return rb.execute(
|
|
4996
|
+
getCatalogProductVariantsById,
|
|
4997
|
+
{ path: { id } },
|
|
4998
|
+
options
|
|
4999
|
+
);
|
|
5000
|
+
},
|
|
5001
|
+
/** List variants for a product */
|
|
5002
|
+
listByProduct: async (productId, options) => {
|
|
5003
|
+
return rb.execute(
|
|
5004
|
+
getCatalogProductVariantsProductByProductId,
|
|
5005
|
+
{ path: { product_id: productId } },
|
|
5006
|
+
options
|
|
5007
|
+
);
|
|
5008
|
+
},
|
|
5009
|
+
/** Create a product variant */
|
|
5010
|
+
create: async (attributes, options) => {
|
|
5011
|
+
return rb.execute(
|
|
5012
|
+
postCatalogProductVariants,
|
|
5013
|
+
{
|
|
5014
|
+
body: {
|
|
5015
|
+
data: { type: "catalog_product_variant", attributes }
|
|
5016
|
+
}
|
|
5017
|
+
},
|
|
5018
|
+
options
|
|
5019
|
+
);
|
|
5020
|
+
},
|
|
5021
|
+
/** Update a product variant */
|
|
5022
|
+
update: async (id, attributes, options) => {
|
|
5023
|
+
return rb.execute(
|
|
5024
|
+
patchCatalogProductVariantsById,
|
|
5025
|
+
{
|
|
5026
|
+
path: { id },
|
|
5027
|
+
body: {
|
|
5028
|
+
data: { type: "catalog_product_variant", id, attributes }
|
|
5029
|
+
}
|
|
5030
|
+
},
|
|
5031
|
+
options
|
|
5032
|
+
);
|
|
5033
|
+
},
|
|
5034
|
+
/** Delete a product variant */
|
|
5035
|
+
delete: async (id, options) => {
|
|
5036
|
+
return rb.executeDelete(
|
|
5037
|
+
deleteCatalogProductVariantsById,
|
|
5038
|
+
{ path: { id } },
|
|
5039
|
+
options
|
|
5040
|
+
);
|
|
5041
|
+
}
|
|
5042
|
+
},
|
|
5043
|
+
/**
|
|
5044
|
+
* Taxonomies — product classification trees
|
|
5045
|
+
*/
|
|
5046
|
+
taxonomies: {
|
|
5047
|
+
/** List taxonomies for an application */
|
|
5048
|
+
listByApplication: async (applicationId, options) => {
|
|
5049
|
+
return rb.execute(
|
|
5050
|
+
getCatalogTaxonomiesApplicationByApplicationId,
|
|
5051
|
+
{ path: { application_id: applicationId } },
|
|
5052
|
+
options
|
|
5053
|
+
);
|
|
5054
|
+
},
|
|
5055
|
+
/** Get a taxonomy by ID */
|
|
5056
|
+
get: async (id, options) => {
|
|
5057
|
+
return rb.execute(
|
|
5058
|
+
getCatalogTaxonomiesById,
|
|
5059
|
+
{ path: { id } },
|
|
5060
|
+
options
|
|
5061
|
+
);
|
|
5062
|
+
},
|
|
5063
|
+
/** Create a taxonomy */
|
|
5064
|
+
create: async (attributes, options) => {
|
|
5065
|
+
return rb.execute(
|
|
5066
|
+
postCatalogTaxonomies,
|
|
5067
|
+
{
|
|
5068
|
+
body: {
|
|
5069
|
+
data: { type: "catalog_taxonomy", attributes }
|
|
5070
|
+
}
|
|
5071
|
+
},
|
|
5072
|
+
options
|
|
5073
|
+
);
|
|
5074
|
+
},
|
|
5075
|
+
/** Update a taxonomy */
|
|
5076
|
+
update: async (id, attributes, options) => {
|
|
5077
|
+
return rb.execute(
|
|
5078
|
+
patchCatalogTaxonomiesById,
|
|
5079
|
+
{
|
|
5080
|
+
path: { id },
|
|
5081
|
+
body: {
|
|
5082
|
+
data: { type: "catalog_taxonomy", id, attributes }
|
|
5083
|
+
}
|
|
5084
|
+
},
|
|
5085
|
+
options
|
|
5086
|
+
);
|
|
5087
|
+
},
|
|
5088
|
+
/** Delete a taxonomy */
|
|
5089
|
+
delete: async (id, options) => {
|
|
5090
|
+
return rb.executeDelete(
|
|
5091
|
+
deleteCatalogTaxonomiesById,
|
|
5092
|
+
{ path: { id } },
|
|
5093
|
+
options
|
|
5094
|
+
);
|
|
5095
|
+
}
|
|
5096
|
+
},
|
|
5097
|
+
/**
|
|
5098
|
+
* Taxonomy nodes — nodes within a taxonomy tree
|
|
5099
|
+
*/
|
|
5100
|
+
taxonomyNodes: {
|
|
5101
|
+
/** List nodes for a taxonomy */
|
|
5102
|
+
listByTaxonomy: async (taxonomyId, options) => {
|
|
5103
|
+
return rb.execute(
|
|
5104
|
+
getCatalogTaxonomyNodesTaxonomyByTaxonomyId,
|
|
5105
|
+
{ path: { taxonomy_id: taxonomyId } },
|
|
5106
|
+
options
|
|
5107
|
+
);
|
|
5108
|
+
},
|
|
5109
|
+
/** Get a taxonomy node by ID */
|
|
5110
|
+
get: async (id, options) => {
|
|
5111
|
+
return rb.execute(
|
|
5112
|
+
getCatalogTaxonomyNodesById,
|
|
5113
|
+
{ path: { id } },
|
|
5114
|
+
options
|
|
5115
|
+
);
|
|
5116
|
+
},
|
|
5117
|
+
/** Create a taxonomy node */
|
|
5118
|
+
create: async (attributes, options) => {
|
|
5119
|
+
return rb.execute(
|
|
5120
|
+
postCatalogTaxonomyNodes,
|
|
5121
|
+
{
|
|
5122
|
+
body: {
|
|
5123
|
+
data: { type: "catalog_taxonomy_node", attributes }
|
|
5124
|
+
}
|
|
5125
|
+
},
|
|
5126
|
+
options
|
|
5127
|
+
);
|
|
5128
|
+
},
|
|
5129
|
+
/** Update a taxonomy node */
|
|
5130
|
+
update: async (id, attributes, options) => {
|
|
5131
|
+
return rb.execute(
|
|
5132
|
+
patchCatalogTaxonomyNodesById,
|
|
5133
|
+
{
|
|
5134
|
+
path: { id },
|
|
5135
|
+
body: {
|
|
5136
|
+
data: { type: "catalog_taxonomy_node", id, attributes }
|
|
5137
|
+
}
|
|
5138
|
+
},
|
|
5139
|
+
options
|
|
5140
|
+
);
|
|
5141
|
+
},
|
|
5142
|
+
/** Delete a taxonomy node */
|
|
5143
|
+
delete: async (id, options) => {
|
|
5144
|
+
return rb.executeDelete(
|
|
5145
|
+
deleteCatalogTaxonomyNodesById,
|
|
5146
|
+
{ path: { id } },
|
|
5147
|
+
options
|
|
5148
|
+
);
|
|
5149
|
+
}
|
|
5150
|
+
}
|
|
5151
|
+
};
|
|
5152
|
+
}
|
|
5153
|
+
|
|
5154
|
+
// src/namespaces/compliance.ts
|
|
5155
|
+
function createComplianceNamespace(rb) {
|
|
5156
|
+
return {
|
|
5157
|
+
/**
|
|
5158
|
+
* Audit logs — immutable event trail
|
|
5159
|
+
*/
|
|
5160
|
+
auditLogs: {
|
|
5161
|
+
/** List audit log entries */
|
|
5162
|
+
list: async (options) => {
|
|
5163
|
+
return rb.execute(
|
|
5164
|
+
getAuditLogs,
|
|
5165
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5166
|
+
options
|
|
5167
|
+
);
|
|
5168
|
+
}
|
|
5169
|
+
},
|
|
5170
|
+
/**
|
|
5171
|
+
* Audit chain entries — tamper-evident audit chain records
|
|
5172
|
+
*/
|
|
5173
|
+
auditChain: {
|
|
5174
|
+
/** List audit chain entries */
|
|
5175
|
+
list: async (options) => {
|
|
5176
|
+
return rb.execute(
|
|
5177
|
+
getAuditChainEntries,
|
|
5178
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5179
|
+
options
|
|
5180
|
+
);
|
|
5181
|
+
},
|
|
5182
|
+
/** Get an audit chain entry by ID */
|
|
5183
|
+
get: async (id, options) => {
|
|
5184
|
+
return rb.execute(
|
|
5185
|
+
getAuditChainEntriesById,
|
|
5186
|
+
{ path: { id } },
|
|
5187
|
+
options
|
|
5188
|
+
);
|
|
5189
|
+
}
|
|
5190
|
+
},
|
|
5191
|
+
/**
|
|
5192
|
+
* Breach incidents — data breach tracking and notifications
|
|
5193
|
+
*/
|
|
5194
|
+
breachIncidents: {
|
|
5195
|
+
/** List breach incidents */
|
|
5196
|
+
list: async (options) => {
|
|
5197
|
+
return rb.execute(
|
|
5198
|
+
getBreachIncidents,
|
|
5199
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5200
|
+
options
|
|
5201
|
+
);
|
|
5202
|
+
},
|
|
5203
|
+
/** Get a breach incident by ID */
|
|
5204
|
+
get: async (id, options) => {
|
|
5205
|
+
return rb.execute(
|
|
5206
|
+
getBreachIncidentsById,
|
|
5207
|
+
{ path: { id } },
|
|
5208
|
+
options
|
|
5209
|
+
);
|
|
5210
|
+
},
|
|
5211
|
+
/** Report a new breach incident */
|
|
5212
|
+
create: async (attributes, options) => {
|
|
5213
|
+
return rb.execute(
|
|
5214
|
+
postBreachIncidents,
|
|
5215
|
+
{
|
|
5216
|
+
body: {
|
|
5217
|
+
data: { type: "breach_incident", attributes }
|
|
5218
|
+
}
|
|
5219
|
+
},
|
|
5220
|
+
options
|
|
5221
|
+
);
|
|
5222
|
+
},
|
|
5223
|
+
/** Update breach incident status */
|
|
5224
|
+
updateStatus: async (id, status, options) => {
|
|
5225
|
+
return rb.execute(
|
|
5226
|
+
patchBreachIncidentsByIdStatus,
|
|
5227
|
+
{
|
|
5228
|
+
path: { id },
|
|
5229
|
+
body: {
|
|
5230
|
+
data: { type: "breach_incident", id, attributes: { status } }
|
|
5231
|
+
}
|
|
5232
|
+
},
|
|
5233
|
+
options
|
|
5234
|
+
);
|
|
5235
|
+
}
|
|
5236
|
+
},
|
|
5237
|
+
/**
|
|
5238
|
+
* Breach notifications — regulatory notifications for breach incidents
|
|
5239
|
+
*/
|
|
5240
|
+
breachNotifications: {
|
|
5241
|
+
/** List breach notifications */
|
|
5242
|
+
list: async (options) => {
|
|
5243
|
+
return rb.execute(
|
|
5244
|
+
getBreachNotifications,
|
|
5245
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5246
|
+
options
|
|
5247
|
+
);
|
|
5248
|
+
},
|
|
5249
|
+
/** Get a breach notification by ID */
|
|
5250
|
+
get: async (id, options) => {
|
|
5251
|
+
return rb.execute(
|
|
5252
|
+
getBreachNotificationsById,
|
|
5253
|
+
{ path: { id } },
|
|
5254
|
+
options
|
|
5255
|
+
);
|
|
5256
|
+
}
|
|
5257
|
+
},
|
|
5258
|
+
/**
|
|
5259
|
+
* Consent records — user consent tracking (GDPR Article 7)
|
|
5260
|
+
*/
|
|
5261
|
+
consentRecords: {
|
|
5262
|
+
/** List consent records */
|
|
5263
|
+
list: async (options) => {
|
|
5264
|
+
return rb.execute(
|
|
5265
|
+
getConsentRecords,
|
|
5266
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5267
|
+
options
|
|
5268
|
+
);
|
|
5269
|
+
},
|
|
5270
|
+
/** Get a consent record by ID */
|
|
5271
|
+
get: async (id, options) => {
|
|
5272
|
+
return rb.execute(
|
|
5273
|
+
getConsentRecordsById,
|
|
5274
|
+
{ path: { id } },
|
|
5275
|
+
options
|
|
5276
|
+
);
|
|
5277
|
+
},
|
|
5278
|
+
/** List active consent records */
|
|
5279
|
+
listActive: async (options) => {
|
|
5280
|
+
return rb.execute(
|
|
5281
|
+
getConsentRecordsActive,
|
|
5282
|
+
{},
|
|
5283
|
+
options
|
|
5284
|
+
);
|
|
5285
|
+
},
|
|
5286
|
+
/** Record new consent */
|
|
5287
|
+
create: async (attributes, options) => {
|
|
5288
|
+
return rb.execute(
|
|
5289
|
+
postConsentRecords,
|
|
5290
|
+
{
|
|
5291
|
+
body: {
|
|
5292
|
+
data: { type: "consent_record", attributes }
|
|
5293
|
+
}
|
|
5294
|
+
},
|
|
5295
|
+
options
|
|
5296
|
+
);
|
|
5297
|
+
},
|
|
5298
|
+
/** Withdraw consent */
|
|
5299
|
+
withdraw: async (id, options) => {
|
|
5300
|
+
return rb.execute(
|
|
5301
|
+
patchConsentRecordsByIdWithdraw,
|
|
5302
|
+
{
|
|
5303
|
+
path: { id },
|
|
5304
|
+
body: {
|
|
5305
|
+
data: { type: "consent_record", id, attributes: {} }
|
|
5306
|
+
}
|
|
5307
|
+
},
|
|
5308
|
+
options
|
|
5309
|
+
);
|
|
5310
|
+
}
|
|
5311
|
+
},
|
|
5312
|
+
/**
|
|
5313
|
+
* Impact assessments — Data Protection Impact Assessments (DPIA)
|
|
5314
|
+
*/
|
|
5315
|
+
impactAssessments: {
|
|
5316
|
+
/** List impact assessments */
|
|
5317
|
+
list: async (options) => {
|
|
5318
|
+
return rb.execute(
|
|
5319
|
+
getImpactAssessments,
|
|
5320
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5321
|
+
options
|
|
5322
|
+
);
|
|
5323
|
+
},
|
|
5324
|
+
/** Get an impact assessment by ID */
|
|
5325
|
+
get: async (id, options) => {
|
|
5326
|
+
return rb.execute(
|
|
5327
|
+
getImpactAssessmentsById,
|
|
5328
|
+
{ path: { id } },
|
|
5329
|
+
options
|
|
5330
|
+
);
|
|
5331
|
+
},
|
|
5332
|
+
/** Create an impact assessment */
|
|
5333
|
+
create: async (attributes, options) => {
|
|
5334
|
+
return rb.execute(
|
|
5335
|
+
postImpactAssessments,
|
|
5336
|
+
{
|
|
5337
|
+
body: {
|
|
5338
|
+
data: {
|
|
5339
|
+
type: "data_protection_impact_assessment",
|
|
5340
|
+
attributes
|
|
5341
|
+
}
|
|
5342
|
+
}
|
|
5343
|
+
},
|
|
5344
|
+
options
|
|
5345
|
+
);
|
|
5346
|
+
},
|
|
5347
|
+
/** Update an impact assessment */
|
|
5348
|
+
update: async (id, attributes, options) => {
|
|
5349
|
+
return rb.execute(
|
|
5350
|
+
patchImpactAssessmentsById,
|
|
5351
|
+
{
|
|
5352
|
+
path: { id },
|
|
5353
|
+
body: {
|
|
5354
|
+
data: {
|
|
5355
|
+
type: "data_protection_impact_assessment",
|
|
5356
|
+
id,
|
|
5357
|
+
attributes
|
|
5358
|
+
}
|
|
5359
|
+
}
|
|
5360
|
+
},
|
|
5361
|
+
options
|
|
5362
|
+
);
|
|
5363
|
+
},
|
|
5364
|
+
/** Approve an impact assessment */
|
|
5365
|
+
approve: async (id, options) => {
|
|
5366
|
+
return rb.execute(
|
|
5367
|
+
patchImpactAssessmentsByIdApprove,
|
|
5368
|
+
{
|
|
5369
|
+
path: { id },
|
|
5370
|
+
body: {
|
|
5371
|
+
data: {
|
|
5372
|
+
type: "data_protection_impact_assessment",
|
|
5373
|
+
id,
|
|
5374
|
+
attributes: {}
|
|
5375
|
+
}
|
|
5376
|
+
}
|
|
5377
|
+
},
|
|
5378
|
+
options
|
|
5379
|
+
);
|
|
5380
|
+
}
|
|
5381
|
+
},
|
|
5382
|
+
/**
|
|
5383
|
+
* Processing activities — GDPR Article 30 records of processing
|
|
5384
|
+
*/
|
|
5385
|
+
processingActivities: {
|
|
5386
|
+
/** List processing activities */
|
|
5387
|
+
list: async (options) => {
|
|
5388
|
+
return rb.execute(
|
|
5389
|
+
getProcessingActivities,
|
|
5390
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5391
|
+
options
|
|
5392
|
+
);
|
|
5393
|
+
},
|
|
5394
|
+
/** Get a processing activity by ID */
|
|
5395
|
+
get: async (id, options) => {
|
|
5396
|
+
return rb.execute(
|
|
5397
|
+
getProcessingActivitiesById,
|
|
5398
|
+
{ path: { id } },
|
|
5399
|
+
options
|
|
5400
|
+
);
|
|
5401
|
+
},
|
|
5402
|
+
/** Create a processing activity */
|
|
5403
|
+
create: async (attributes, options) => {
|
|
5404
|
+
return rb.execute(
|
|
5405
|
+
postProcessingActivities,
|
|
5406
|
+
{
|
|
5407
|
+
body: {
|
|
5408
|
+
data: { type: "processing_activity", attributes }
|
|
5409
|
+
}
|
|
5410
|
+
},
|
|
5411
|
+
options
|
|
5412
|
+
);
|
|
5413
|
+
},
|
|
5414
|
+
/** Delete a processing activity */
|
|
5415
|
+
delete: async (id, options) => {
|
|
5416
|
+
return rb.executeDelete(
|
|
5417
|
+
deleteProcessingActivitiesById,
|
|
5418
|
+
{ path: { id } },
|
|
5419
|
+
options
|
|
5420
|
+
);
|
|
5421
|
+
}
|
|
5422
|
+
},
|
|
5423
|
+
/**
|
|
5424
|
+
* Retention policies — data lifecycle and deletion rules
|
|
5425
|
+
*/
|
|
5426
|
+
retentionPolicies: {
|
|
5427
|
+
/** List retention policies */
|
|
5428
|
+
list: async (options) => {
|
|
5429
|
+
return rb.execute(
|
|
5430
|
+
getRetentionPolicies,
|
|
5431
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5432
|
+
options
|
|
5433
|
+
);
|
|
5434
|
+
},
|
|
5435
|
+
/** Get a retention policy by ID */
|
|
5436
|
+
get: async (id, options) => {
|
|
5437
|
+
return rb.execute(
|
|
5438
|
+
getRetentionPoliciesById,
|
|
5439
|
+
{ path: { id } },
|
|
5440
|
+
options
|
|
5441
|
+
);
|
|
5442
|
+
},
|
|
5443
|
+
/** Create a retention policy */
|
|
5444
|
+
create: async (attributes, options) => {
|
|
5445
|
+
return rb.execute(
|
|
5446
|
+
postRetentionPolicies,
|
|
5447
|
+
{
|
|
5448
|
+
body: {
|
|
5449
|
+
data: { type: "retention_policy", attributes }
|
|
5450
|
+
}
|
|
5451
|
+
},
|
|
5452
|
+
options
|
|
5453
|
+
);
|
|
5454
|
+
},
|
|
5455
|
+
/** Update a retention policy */
|
|
5456
|
+
update: async (id, attributes, options) => {
|
|
5457
|
+
return rb.execute(
|
|
5458
|
+
patchRetentionPoliciesById,
|
|
5459
|
+
{
|
|
5460
|
+
path: { id },
|
|
5461
|
+
body: {
|
|
5462
|
+
data: { type: "retention_policy", id, attributes }
|
|
5463
|
+
}
|
|
5464
|
+
},
|
|
5465
|
+
options
|
|
5466
|
+
);
|
|
5467
|
+
},
|
|
5468
|
+
/** Delete a retention policy */
|
|
5469
|
+
delete: async (id, options) => {
|
|
5470
|
+
return rb.executeDelete(
|
|
5471
|
+
deleteRetentionPoliciesById,
|
|
5472
|
+
{ path: { id } },
|
|
5473
|
+
options
|
|
5474
|
+
);
|
|
5475
|
+
}
|
|
5476
|
+
},
|
|
5477
|
+
/**
|
|
5478
|
+
* Data subject requests — GDPR rights (access, erasure, portability)
|
|
5479
|
+
*/
|
|
5480
|
+
dataSubjectRequests: {
|
|
5481
|
+
/** List data subject requests */
|
|
5482
|
+
list: async (options) => {
|
|
5483
|
+
return rb.execute(
|
|
5484
|
+
getDataSubjectRequests,
|
|
5485
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5486
|
+
options
|
|
5487
|
+
);
|
|
5488
|
+
},
|
|
5489
|
+
/** Get a data subject request by ID */
|
|
5490
|
+
get: async (id, options) => {
|
|
5491
|
+
return rb.execute(
|
|
5492
|
+
getDataSubjectRequestsById,
|
|
5493
|
+
{ path: { id } },
|
|
5494
|
+
options
|
|
5495
|
+
);
|
|
5496
|
+
},
|
|
5497
|
+
/** Submit a data subject request */
|
|
5498
|
+
create: async (attributes, options) => {
|
|
5499
|
+
return rb.execute(
|
|
5500
|
+
postDataSubjectRequests,
|
|
5501
|
+
{
|
|
5502
|
+
body: {
|
|
5503
|
+
data: { type: "data_subject_request", attributes }
|
|
5504
|
+
}
|
|
5505
|
+
},
|
|
5506
|
+
options
|
|
5507
|
+
);
|
|
5508
|
+
},
|
|
5509
|
+
/** Update data subject request status */
|
|
5510
|
+
updateStatus: async (id, status, options) => {
|
|
5511
|
+
return rb.execute(
|
|
5512
|
+
patchDataSubjectRequestsByIdStatus,
|
|
5513
|
+
{
|
|
5514
|
+
path: { id },
|
|
5515
|
+
body: {
|
|
5516
|
+
data: {
|
|
5517
|
+
type: "data_subject_request",
|
|
5518
|
+
id,
|
|
5519
|
+
attributes: { status }
|
|
5520
|
+
}
|
|
5521
|
+
}
|
|
5522
|
+
},
|
|
5523
|
+
options
|
|
5524
|
+
);
|
|
5525
|
+
}
|
|
5526
|
+
},
|
|
5527
|
+
/**
|
|
5528
|
+
* Legal documents — Terms of Service, Privacy Policy, etc.
|
|
5529
|
+
*/
|
|
5530
|
+
legalDocuments: {
|
|
5531
|
+
/** List legal documents */
|
|
4204
5532
|
list: async (options) => {
|
|
4205
5533
|
return rb.execute(
|
|
4206
|
-
|
|
5534
|
+
getLegalDocuments,
|
|
4207
5535
|
buildPageQuery(options?.page, options?.pageSize),
|
|
4208
5536
|
options
|
|
4209
5537
|
);
|
|
4210
5538
|
},
|
|
4211
|
-
|
|
4212
|
-
return paginateToArray(
|
|
4213
|
-
rb.createPaginatedFetcher(
|
|
4214
|
-
getCreditPackages,
|
|
4215
|
-
(page, pageSize) => ({
|
|
4216
|
-
query: { page: { number: page, size: pageSize } }
|
|
4217
|
-
}),
|
|
4218
|
-
options
|
|
4219
|
-
)
|
|
4220
|
-
);
|
|
4221
|
-
},
|
|
5539
|
+
/** Get a legal document by ID */
|
|
4222
5540
|
get: async (id, options) => {
|
|
4223
5541
|
return rb.execute(
|
|
4224
|
-
|
|
5542
|
+
getLegalDocumentsById,
|
|
4225
5543
|
{ path: { id } },
|
|
4226
5544
|
options
|
|
4227
5545
|
);
|
|
4228
|
-
}
|
|
4229
|
-
|
|
4230
|
-
|
|
5546
|
+
},
|
|
5547
|
+
/** Create a legal document */
|
|
5548
|
+
create: async (attributes, options) => {
|
|
5549
|
+
return rb.execute(
|
|
5550
|
+
postLegalDocuments,
|
|
5551
|
+
{ body: { data: { type: "legal_document", attributes } } },
|
|
5552
|
+
options
|
|
5553
|
+
);
|
|
5554
|
+
},
|
|
5555
|
+
/** Update a legal document */
|
|
5556
|
+
update: async (id, attributes, options) => {
|
|
5557
|
+
return rb.execute(
|
|
5558
|
+
patchLegalDocumentsById,
|
|
5559
|
+
{
|
|
5560
|
+
path: { id },
|
|
5561
|
+
body: { data: { type: "legal_document", id, attributes } }
|
|
5562
|
+
},
|
|
5563
|
+
options
|
|
5564
|
+
);
|
|
5565
|
+
},
|
|
5566
|
+
/** Delete a legal document */
|
|
4231
5567
|
delete: async (id, options) => {
|
|
4232
5568
|
return rb.executeDelete(
|
|
4233
|
-
|
|
5569
|
+
deleteLegalDocumentsById,
|
|
4234
5570
|
{ path: { id } },
|
|
4235
5571
|
options
|
|
4236
5572
|
);
|
|
4237
5573
|
},
|
|
4238
|
-
|
|
5574
|
+
/** Get documents by locale */
|
|
5575
|
+
byLocale: async (locale, options) => {
|
|
4239
5576
|
return rb.execute(
|
|
4240
|
-
|
|
4241
|
-
|
|
5577
|
+
getLegalDocumentsByLocale,
|
|
5578
|
+
{ query: { locale } },
|
|
4242
5579
|
options
|
|
4243
5580
|
);
|
|
4244
5581
|
},
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
rb.createPaginatedFetcher(
|
|
4248
|
-
getPaymentMethods,
|
|
4249
|
-
(page, pageSize) => ({
|
|
4250
|
-
query: { page: { number: page, size: pageSize } }
|
|
4251
|
-
}),
|
|
4252
|
-
options
|
|
4253
|
-
)
|
|
4254
|
-
);
|
|
4255
|
-
},
|
|
4256
|
-
create: async (attributes, options) => {
|
|
5582
|
+
/** Get documents for the current application */
|
|
5583
|
+
forApplication: async (options) => {
|
|
4257
5584
|
return rb.execute(
|
|
4258
|
-
|
|
4259
|
-
{
|
|
5585
|
+
getLegalDocumentsForApplication,
|
|
5586
|
+
{},
|
|
4260
5587
|
options
|
|
4261
5588
|
);
|
|
4262
5589
|
},
|
|
4263
|
-
|
|
5590
|
+
/** Publish a legal document */
|
|
5591
|
+
publish: async (id, options) => {
|
|
4264
5592
|
return rb.execute(
|
|
4265
|
-
|
|
5593
|
+
patchLegalDocumentsByIdPublish,
|
|
4266
5594
|
{
|
|
4267
5595
|
path: { id },
|
|
4268
|
-
body: { data: {
|
|
5596
|
+
body: { data: { type: "legal_document", id, attributes: {} } }
|
|
4269
5597
|
},
|
|
4270
5598
|
options
|
|
4271
5599
|
);
|
|
4272
5600
|
},
|
|
4273
|
-
|
|
5601
|
+
/** Unpublish a legal document */
|
|
5602
|
+
unpublish: async (id, options) => {
|
|
4274
5603
|
return rb.execute(
|
|
4275
|
-
|
|
4276
|
-
{
|
|
5604
|
+
patchLegalDocumentsByIdUnpublish,
|
|
5605
|
+
{
|
|
5606
|
+
path: { id },
|
|
5607
|
+
body: { data: { type: "legal_document", id, attributes: {} } }
|
|
5608
|
+
},
|
|
4277
5609
|
options
|
|
4278
5610
|
);
|
|
4279
5611
|
}
|
|
4280
|
-
}
|
|
4281
|
-
};
|
|
4282
|
-
}
|
|
4283
|
-
|
|
4284
|
-
// src/namespaces/catalog.ts
|
|
4285
|
-
function createCatalogNamespace(_rb) {
|
|
4286
|
-
return {
|
|
4287
|
-
/**
|
|
4288
|
-
* Products — product catalog management
|
|
4289
|
-
*/
|
|
4290
|
-
products: {
|
|
4291
|
-
/** List products with pagination */
|
|
4292
|
-
list: async (_options) => {
|
|
4293
|
-
throw new Error("Product list not yet implemented in SDK");
|
|
4294
|
-
},
|
|
4295
|
-
/** Get a product by ID */
|
|
4296
|
-
get: async (_id, _options) => {
|
|
4297
|
-
throw new Error("Product get not yet implemented in SDK");
|
|
4298
|
-
},
|
|
4299
|
-
/** Create a new product */
|
|
4300
|
-
create: async (_attributes, _options) => {
|
|
4301
|
-
throw new Error("Product create not yet implemented in SDK");
|
|
4302
|
-
},
|
|
4303
|
-
/** Update a product */
|
|
4304
|
-
update: async (_id, _attributes, _options) => {
|
|
4305
|
-
throw new Error("Product update not yet implemented in SDK");
|
|
4306
|
-
}
|
|
4307
|
-
},
|
|
4308
|
-
/**
|
|
4309
|
-
* Variants — product variants (SKUs)
|
|
4310
|
-
*/
|
|
4311
|
-
variants: {
|
|
4312
|
-
/** List variants for a product */
|
|
4313
|
-
listByProduct: async (_productId, _options) => {
|
|
4314
|
-
throw new Error("Variant list not yet implemented in SDK");
|
|
4315
|
-
}
|
|
4316
5612
|
},
|
|
4317
5613
|
/**
|
|
4318
|
-
*
|
|
5614
|
+
* Legal acceptances — user acceptance records for legal documents
|
|
4319
5615
|
*/
|
|
4320
|
-
|
|
4321
|
-
/** List
|
|
4322
|
-
list: async (
|
|
4323
|
-
|
|
5616
|
+
legalAcceptances: {
|
|
5617
|
+
/** List legal acceptances */
|
|
5618
|
+
list: async (options) => {
|
|
5619
|
+
return rb.execute(
|
|
5620
|
+
getLegalAcceptances,
|
|
5621
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5622
|
+
options
|
|
5623
|
+
);
|
|
4324
5624
|
},
|
|
4325
|
-
/** Get
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
// src/namespaces/channels.ts
|
|
4334
|
-
function createChannelsNamespace(_rb) {
|
|
4335
|
-
return {
|
|
4336
|
-
/**
|
|
4337
|
-
* Channel Config — configuration for messaging channels
|
|
4338
|
-
*/
|
|
4339
|
-
configs: {
|
|
4340
|
-
/** List channel configurations */
|
|
4341
|
-
list: async (_options) => {
|
|
4342
|
-
throw new Error("Channel configs list not yet implemented in SDK");
|
|
5625
|
+
/** Get a legal acceptance by ID */
|
|
5626
|
+
get: async (id, options) => {
|
|
5627
|
+
return rb.execute(
|
|
5628
|
+
getLegalAcceptancesById,
|
|
5629
|
+
{ path: { id } },
|
|
5630
|
+
options
|
|
5631
|
+
);
|
|
4343
5632
|
},
|
|
4344
|
-
/** Get
|
|
4345
|
-
|
|
4346
|
-
|
|
5633
|
+
/** Get the latest acceptance record for the current user */
|
|
5634
|
+
latest: async (options) => {
|
|
5635
|
+
return rb.execute(
|
|
5636
|
+
getLegalAcceptancesLatest,
|
|
5637
|
+
{},
|
|
5638
|
+
options
|
|
5639
|
+
);
|
|
4347
5640
|
}
|
|
4348
5641
|
},
|
|
4349
5642
|
/**
|
|
4350
|
-
*
|
|
5643
|
+
* Scan results — PII and security scan findings
|
|
4351
5644
|
*/
|
|
4352
|
-
|
|
4353
|
-
/**
|
|
4354
|
-
|
|
4355
|
-
|
|
5645
|
+
scanResults: {
|
|
5646
|
+
/** List scan results */
|
|
5647
|
+
list: async (options) => {
|
|
5648
|
+
return rb.execute(
|
|
5649
|
+
getScanResults,
|
|
5650
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5651
|
+
options
|
|
5652
|
+
);
|
|
4356
5653
|
},
|
|
4357
|
-
/**
|
|
4358
|
-
|
|
4359
|
-
|
|
5654
|
+
/** Get a scan result by ID */
|
|
5655
|
+
get: async (id, options) => {
|
|
5656
|
+
return rb.execute(
|
|
5657
|
+
getScanResultsById,
|
|
5658
|
+
{ path: { id } },
|
|
5659
|
+
options
|
|
5660
|
+
);
|
|
4360
5661
|
}
|
|
4361
5662
|
}
|
|
4362
5663
|
};
|
|
@@ -4552,10 +5853,21 @@ function createConnectorsNamespace(rb) {
|
|
|
4552
5853
|
{ path: { id } },
|
|
4553
5854
|
options
|
|
4554
5855
|
),
|
|
4555
|
-
/**
|
|
4556
|
-
|
|
5856
|
+
/**
|
|
5857
|
+
* Refresh an OAuth credential.
|
|
5858
|
+
* @param workspaceId - The workspace that owns the credential.
|
|
5859
|
+
*/
|
|
5860
|
+
refresh: async (id, workspaceId, options) => rb.execute(
|
|
4557
5861
|
postConnectorsCredentialsByIdRefresh,
|
|
4558
|
-
{
|
|
5862
|
+
{
|
|
5863
|
+
path: { id },
|
|
5864
|
+
body: {
|
|
5865
|
+
data: {
|
|
5866
|
+
type: "credential",
|
|
5867
|
+
attributes: { workspace_id: workspaceId }
|
|
5868
|
+
}
|
|
5869
|
+
}
|
|
5870
|
+
},
|
|
4559
5871
|
options
|
|
4560
5872
|
)
|
|
4561
5873
|
},
|
|
@@ -4585,8 +5897,10 @@ function createConnectorsNamespace(rb) {
|
|
|
4585
5897
|
/**
|
|
4586
5898
|
* Exchange OAuth authorization code for a credential.
|
|
4587
5899
|
* Called from the redirect handler after the user authorizes in the provider.
|
|
5900
|
+
* Pass `redirectUri` if a custom redirect URI was used in `connect` — it must
|
|
5901
|
+
* match the URI sent during authorization.
|
|
4588
5902
|
*/
|
|
4589
|
-
callback: async (connectorType, code, state, workspaceId, options) => rb.execute(
|
|
5903
|
+
callback: async (connectorType, code, state, workspaceId, redirectUri, options) => rb.execute(
|
|
4590
5904
|
postConnectorsOauthCallback,
|
|
4591
5905
|
{
|
|
4592
5906
|
body: {
|
|
@@ -4596,7 +5910,8 @@ function createConnectorsNamespace(rb) {
|
|
|
4596
5910
|
connector_type: connectorType,
|
|
4597
5911
|
code,
|
|
4598
5912
|
state,
|
|
4599
|
-
workspace_id: workspaceId
|
|
5913
|
+
workspace_id: workspaceId,
|
|
5914
|
+
...redirectUri !== void 0 && { redirect_uri: redirectUri }
|
|
4600
5915
|
}
|
|
4601
5916
|
}
|
|
4602
5917
|
}
|
|
@@ -4711,8 +6026,12 @@ function createConnectorsNamespace(rb) {
|
|
|
4711
6026
|
},
|
|
4712
6027
|
options
|
|
4713
6028
|
),
|
|
4714
|
-
/**
|
|
4715
|
-
|
|
6029
|
+
/**
|
|
6030
|
+
* Exchange OAuth authorization code for Fullscript credential.
|
|
6031
|
+
* Pass `redirectUri` if a custom redirect URI was used in `connect` — it must
|
|
6032
|
+
* match the URI sent during authorization.
|
|
6033
|
+
*/
|
|
6034
|
+
callback: async (code, state, workspaceId, redirectUri, options) => rb.execute(
|
|
4716
6035
|
postConnectorsOauthCallback,
|
|
4717
6036
|
{
|
|
4718
6037
|
body: {
|
|
@@ -4722,7 +6041,8 @@ function createConnectorsNamespace(rb) {
|
|
|
4722
6041
|
connector_type: "fullscript",
|
|
4723
6042
|
code,
|
|
4724
6043
|
state,
|
|
4725
|
-
workspace_id: workspaceId
|
|
6044
|
+
workspace_id: workspaceId,
|
|
6045
|
+
...redirectUri !== void 0 && { redirect_uri: redirectUri }
|
|
4726
6046
|
}
|
|
4727
6047
|
}
|
|
4728
6048
|
}
|
|
@@ -5030,12 +6350,6 @@ function createCrmNamespace(rb) {
|
|
|
5030
6350
|
options
|
|
5031
6351
|
);
|
|
5032
6352
|
},
|
|
5033
|
-
/** Update an activity (not available - activities are immutable after creation) */
|
|
5034
|
-
update: async (_id, _attributes, _options) => {
|
|
5035
|
-
throw new Error(
|
|
5036
|
-
"Activity update not available - activities are immutable"
|
|
5037
|
-
);
|
|
5038
|
-
},
|
|
5039
6353
|
/** Delete an activity (soft delete) */
|
|
5040
6354
|
delete: async (id, options) => {
|
|
5041
6355
|
return rb.executeDelete(
|
|
@@ -5397,54 +6711,6 @@ function createCrmNamespace(rb) {
|
|
|
5397
6711
|
};
|
|
5398
6712
|
}
|
|
5399
6713
|
|
|
5400
|
-
// src/namespaces/dataStore.ts
|
|
5401
|
-
function createDataStoreNamespace(_rb) {
|
|
5402
|
-
return {
|
|
5403
|
-
/**
|
|
5404
|
-
* Records — key-value storage with versioning
|
|
5405
|
-
*/
|
|
5406
|
-
records: {
|
|
5407
|
-
/** Get a value by namespace and key */
|
|
5408
|
-
get: async (_namespace, _key, _options) => {
|
|
5409
|
-
throw new Error("Record get not yet implemented in SDK");
|
|
5410
|
-
},
|
|
5411
|
-
/** Set a value (creates or updates) */
|
|
5412
|
-
set: async (_namespace, _key, _value, _options) => {
|
|
5413
|
-
throw new Error("Record set not yet implemented in SDK");
|
|
5414
|
-
},
|
|
5415
|
-
/** Delete a value */
|
|
5416
|
-
delete: async (_namespace, _key, _options) => {
|
|
5417
|
-
throw new Error("Record delete not yet implemented in SDK");
|
|
5418
|
-
},
|
|
5419
|
-
/** List all keys in a namespace */
|
|
5420
|
-
listKeys: async (_namespace, _options) => {
|
|
5421
|
-
throw new Error("List keys not yet implemented in SDK");
|
|
5422
|
-
},
|
|
5423
|
-
/** List all records in a namespace */
|
|
5424
|
-
list: async (_namespace, _options) => {
|
|
5425
|
-
throw new Error("List records not yet implemented in SDK");
|
|
5426
|
-
}
|
|
5427
|
-
},
|
|
5428
|
-
/**
|
|
5429
|
-
* Namespaces — namespace policies and access control
|
|
5430
|
-
*/
|
|
5431
|
-
namespaces: {
|
|
5432
|
-
/** Get namespace policy */
|
|
5433
|
-
getPolicy: async (_namespace, _options) => {
|
|
5434
|
-
throw new Error("Namespace policy get not yet implemented in SDK");
|
|
5435
|
-
},
|
|
5436
|
-
/** Create namespace policy */
|
|
5437
|
-
createPolicy: async (_attributes, _options) => {
|
|
5438
|
-
throw new Error("Namespace policy create not yet implemented in SDK");
|
|
5439
|
-
},
|
|
5440
|
-
/** Get namespace statistics */
|
|
5441
|
-
getStats: async (_namespace, _options) => {
|
|
5442
|
-
throw new Error("Namespace stats not yet implemented in SDK");
|
|
5443
|
-
}
|
|
5444
|
-
}
|
|
5445
|
-
};
|
|
5446
|
-
}
|
|
5447
|
-
|
|
5448
6714
|
// src/namespaces/emailMarketing.ts
|
|
5449
6715
|
function createEmailMarketingNamespace(rb) {
|
|
5450
6716
|
return {
|
|
@@ -5668,40 +6934,131 @@ function createEmailMarketingNamespace(rb) {
|
|
|
5668
6934
|
}
|
|
5669
6935
|
|
|
5670
6936
|
// src/namespaces/support.ts
|
|
5671
|
-
function createSupportNamespace(
|
|
6937
|
+
function createSupportNamespace(rb) {
|
|
5672
6938
|
return {
|
|
5673
6939
|
/**
|
|
5674
6940
|
* Tickets — customer support tickets
|
|
5675
6941
|
*/
|
|
5676
6942
|
tickets: {
|
|
5677
|
-
/** List tickets
|
|
5678
|
-
list: async (
|
|
5679
|
-
|
|
6943
|
+
/** List tickets for a workspace */
|
|
6944
|
+
list: async (workspaceId, options) => {
|
|
6945
|
+
return rb.execute(
|
|
6946
|
+
getSupportTicketsWorkspaceByWorkspaceId,
|
|
6947
|
+
{
|
|
6948
|
+
path: { workspace_id: workspaceId },
|
|
6949
|
+
...buildPageQuery(options?.page, options?.pageSize)
|
|
6950
|
+
},
|
|
6951
|
+
options
|
|
6952
|
+
);
|
|
5680
6953
|
},
|
|
5681
6954
|
/** Get a ticket by ID */
|
|
5682
|
-
get: async (
|
|
5683
|
-
|
|
6955
|
+
get: async (id, options) => {
|
|
6956
|
+
return rb.execute(
|
|
6957
|
+
getSupportTicketsById,
|
|
6958
|
+
{ path: { id } },
|
|
6959
|
+
options
|
|
6960
|
+
);
|
|
5684
6961
|
},
|
|
5685
6962
|
/** Create a new ticket */
|
|
5686
|
-
create: async (
|
|
5687
|
-
|
|
6963
|
+
create: async (attributes, options) => {
|
|
6964
|
+
return rb.execute(
|
|
6965
|
+
postSupportTickets,
|
|
6966
|
+
{
|
|
6967
|
+
body: {
|
|
6968
|
+
data: { type: "support_ticket", attributes }
|
|
6969
|
+
}
|
|
6970
|
+
},
|
|
6971
|
+
options
|
|
6972
|
+
);
|
|
5688
6973
|
},
|
|
5689
6974
|
/** Update a ticket */
|
|
5690
|
-
update: async (
|
|
5691
|
-
|
|
6975
|
+
update: async (id, attributes, options) => {
|
|
6976
|
+
return rb.execute(
|
|
6977
|
+
patchSupportTicketsById,
|
|
6978
|
+
{
|
|
6979
|
+
path: { id },
|
|
6980
|
+
body: {
|
|
6981
|
+
data: { type: "support_ticket", id, attributes }
|
|
6982
|
+
}
|
|
6983
|
+
},
|
|
6984
|
+
options
|
|
6985
|
+
);
|
|
6986
|
+
},
|
|
6987
|
+
/** Delete a ticket */
|
|
6988
|
+
delete: async (id, options) => {
|
|
6989
|
+
return rb.executeDelete(
|
|
6990
|
+
deleteSupportTicketsById,
|
|
6991
|
+
{ path: { id } },
|
|
6992
|
+
options
|
|
6993
|
+
);
|
|
5692
6994
|
},
|
|
5693
6995
|
/** Add a message to a ticket */
|
|
5694
|
-
addMessage: async (
|
|
5695
|
-
|
|
6996
|
+
addMessage: async (ticketId, attributes, options) => {
|
|
6997
|
+
return rb.execute(
|
|
6998
|
+
postSupportTicketMessages,
|
|
6999
|
+
{
|
|
7000
|
+
body: {
|
|
7001
|
+
data: {
|
|
7002
|
+
type: "support_ticket_message",
|
|
7003
|
+
attributes: { ...attributes, ticket_id: ticketId }
|
|
7004
|
+
}
|
|
7005
|
+
}
|
|
7006
|
+
},
|
|
7007
|
+
options
|
|
7008
|
+
);
|
|
7009
|
+
},
|
|
7010
|
+
/** List messages for a ticket */
|
|
7011
|
+
listMessages: async (ticketId, options) => {
|
|
7012
|
+
return rb.execute(
|
|
7013
|
+
getSupportTicketMessagesTicketByTicketId,
|
|
7014
|
+
{ path: { ticket_id: ticketId } },
|
|
7015
|
+
options
|
|
7016
|
+
);
|
|
7017
|
+
},
|
|
7018
|
+
/** Rate a ticket (CSAT) */
|
|
7019
|
+
rate: async (attributes, options) => {
|
|
7020
|
+
return rb.execute(
|
|
7021
|
+
postSupportTicketRatings,
|
|
7022
|
+
{
|
|
7023
|
+
body: {
|
|
7024
|
+
data: { type: "support_ticket_rating", attributes }
|
|
7025
|
+
}
|
|
7026
|
+
},
|
|
7027
|
+
options
|
|
7028
|
+
);
|
|
5696
7029
|
}
|
|
5697
7030
|
},
|
|
5698
7031
|
/**
|
|
5699
|
-
*
|
|
7032
|
+
* Tags — ticket labels for categorization
|
|
5700
7033
|
*/
|
|
5701
|
-
|
|
5702
|
-
/** List
|
|
5703
|
-
list: async (
|
|
5704
|
-
|
|
7034
|
+
tags: {
|
|
7035
|
+
/** List tags for a workspace */
|
|
7036
|
+
list: async (workspaceId, options) => {
|
|
7037
|
+
return rb.execute(
|
|
7038
|
+
getSupportTagsWorkspaceByWorkspaceId,
|
|
7039
|
+
{ path: { workspace_id: workspaceId } },
|
|
7040
|
+
options
|
|
7041
|
+
);
|
|
7042
|
+
},
|
|
7043
|
+
/** Create a tag */
|
|
7044
|
+
create: async (attributes, options) => {
|
|
7045
|
+
return rb.execute(
|
|
7046
|
+
postSupportTags,
|
|
7047
|
+
{
|
|
7048
|
+
body: {
|
|
7049
|
+
data: { type: "support_tag", attributes }
|
|
7050
|
+
}
|
|
7051
|
+
},
|
|
7052
|
+
options
|
|
7053
|
+
);
|
|
7054
|
+
},
|
|
7055
|
+
/** Delete a tag */
|
|
7056
|
+
delete: async (id, options) => {
|
|
7057
|
+
return rb.executeDelete(
|
|
7058
|
+
deleteSupportTagsById,
|
|
7059
|
+
{ path: { id } },
|
|
7060
|
+
options
|
|
7061
|
+
);
|
|
5705
7062
|
}
|
|
5706
7063
|
}
|
|
5707
7064
|
};
|
|
@@ -6902,6 +8259,35 @@ function createPlatformNamespace(rb) {
|
|
|
6902
8259
|
options
|
|
6903
8260
|
);
|
|
6904
8261
|
}
|
|
8262
|
+
},
|
|
8263
|
+
configs: {
|
|
8264
|
+
/** List application configuration entries */
|
|
8265
|
+
list: async (options) => {
|
|
8266
|
+
return rb.execute(
|
|
8267
|
+
getConfigs,
|
|
8268
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
8269
|
+
options
|
|
8270
|
+
);
|
|
8271
|
+
},
|
|
8272
|
+
/** Create a configuration entry */
|
|
8273
|
+
create: async (attributes, options) => {
|
|
8274
|
+
return rb.execute(
|
|
8275
|
+
postConfigs,
|
|
8276
|
+
{ body: { data: { type: "config", attributes } } },
|
|
8277
|
+
options
|
|
8278
|
+
);
|
|
8279
|
+
},
|
|
8280
|
+
/** Update a configuration entry by key */
|
|
8281
|
+
update: async (key, attributes, options) => {
|
|
8282
|
+
return rb.execute(
|
|
8283
|
+
patchConfigsByKey,
|
|
8284
|
+
{
|
|
8285
|
+
path: { key },
|
|
8286
|
+
body: { data: { type: "config", id: key, attributes } }
|
|
8287
|
+
},
|
|
8288
|
+
options
|
|
8289
|
+
);
|
|
8290
|
+
}
|
|
6905
8291
|
}
|
|
6906
8292
|
};
|
|
6907
8293
|
}
|
|
@@ -8407,12 +9793,11 @@ var GptClient = class extends BaseClient {
|
|
|
8407
9793
|
this.ai = createAiNamespace(rb);
|
|
8408
9794
|
this.billing = createBillingNamespace(rb);
|
|
8409
9795
|
this.catalog = createCatalogNamespace(rb);
|
|
8410
|
-
this.
|
|
9796
|
+
this.compliance = createComplianceNamespace(rb);
|
|
8411
9797
|
this.communication = createCommunicationNamespace(rb);
|
|
8412
9798
|
this.connectors = createConnectorsNamespace(rb);
|
|
8413
9799
|
this.crawler = createCrawlerNamespace(rb);
|
|
8414
9800
|
this.crm = createCrmNamespace(rb);
|
|
8415
|
-
this.dataStore = createDataStoreNamespace(rb);
|
|
8416
9801
|
this.emailMarketing = createEmailMarketingNamespace(rb);
|
|
8417
9802
|
this.support = createSupportNamespace(rb);
|
|
8418
9803
|
this.extraction = createExtractionNamespace(rb);
|