@gpt-platform/client 0.3.1 → 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 +674 -12
- package/dist/index.d.ts +674 -12
- package/dist/index.js +1014 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1014 -18
- 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
|
|
@@ -1592,6 +1592,11 @@ var getAgentVersionsById = (options) => (options.client ?? client).get({
|
|
|
1592
1592
|
url: "/agent-versions/{id}",
|
|
1593
1593
|
...options
|
|
1594
1594
|
});
|
|
1595
|
+
var getLlmAnalyticsCosts = (options) => (options.client ?? client).get({
|
|
1596
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1597
|
+
url: "/llm_analytics/costs",
|
|
1598
|
+
...options
|
|
1599
|
+
});
|
|
1595
1600
|
var postCatalogTaxonomyNodes = (options) => (options.client ?? client).post({
|
|
1596
1601
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1597
1602
|
url: "/catalog/taxonomy-nodes",
|
|
@@ -1630,6 +1635,11 @@ var getCrmCustomEntitiesWorkspaceByWorkspaceId = (options) => (options.client ??
|
|
|
1630
1635
|
url: "/crm/custom-entities/workspace/{workspace_id}",
|
|
1631
1636
|
...options
|
|
1632
1637
|
});
|
|
1638
|
+
var getBreachIncidentsById = (options) => (options.client ?? client).get({
|
|
1639
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1640
|
+
url: "/breach-incidents/{id}",
|
|
1641
|
+
...options
|
|
1642
|
+
});
|
|
1633
1643
|
var getEmailMarketingSequencesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1634
1644
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1635
1645
|
url: "/email-marketing/sequences/workspace/{workspace_id}",
|
|
@@ -1640,6 +1650,20 @@ var getCatalogTaxonomyNodesTaxonomyByTaxonomyId = (options) => (options.client ?
|
|
|
1640
1650
|
url: "/catalog/taxonomy-nodes/taxonomy/{taxonomy_id}",
|
|
1641
1651
|
...options
|
|
1642
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
|
+
});
|
|
1643
1667
|
var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
1644
1668
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1645
1669
|
url: "/api-keys/{id}/rotate",
|
|
@@ -1715,6 +1739,11 @@ var getCrmExportsById = (options) => (options.client ?? client).get({
|
|
|
1715
1739
|
url: "/crm/exports/{id}",
|
|
1716
1740
|
...options
|
|
1717
1741
|
});
|
|
1742
|
+
var getLlmAnalyticsWorkspace = (options) => (options.client ?? client).get({
|
|
1743
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1744
|
+
url: "/llm_analytics/workspace",
|
|
1745
|
+
...options
|
|
1746
|
+
});
|
|
1718
1747
|
var deleteCrmDealsById = (options) => (options.client ?? client).delete({
|
|
1719
1748
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1720
1749
|
url: "/crm/deals/{id}",
|
|
@@ -1870,6 +1899,25 @@ var patchCatalogTaxonomyNodesById = (options) => (options.client ?? client).patc
|
|
|
1870
1899
|
...options.headers
|
|
1871
1900
|
}
|
|
1872
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
|
+
});
|
|
1873
1921
|
var getCatalogTaxonomiesApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
1874
1922
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1875
1923
|
url: "/catalog/taxonomies/application/{application_id}",
|
|
@@ -1957,6 +2005,20 @@ var postEmailMarketingCampaigns = (options) => (options.client ?? client).post({
|
|
|
1957
2005
|
...options.headers
|
|
1958
2006
|
}
|
|
1959
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
|
+
});
|
|
1960
2022
|
var deleteCrmCustomEntitiesById = (options) => (options.client ?? client).delete({
|
|
1961
2023
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1962
2024
|
url: "/crm/custom-entities/{id}",
|
|
@@ -2026,6 +2088,15 @@ var postCrmCompanies = (options) => (options.client ?? client).post({
|
|
|
2026
2088
|
...options.headers
|
|
2027
2089
|
}
|
|
2028
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
|
+
});
|
|
2029
2100
|
var getVoiceSessionsMine = (options) => (options.client ?? client).get({
|
|
2030
2101
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2031
2102
|
url: "/voice/sessions/mine",
|
|
@@ -2219,6 +2290,11 @@ var getSearchSuggest = (options) => (options.client ?? client).get({
|
|
|
2219
2290
|
url: "/search/suggest",
|
|
2220
2291
|
...options
|
|
2221
2292
|
});
|
|
2293
|
+
var getAuditChainEntries = (options) => (options.client ?? client).get({
|
|
2294
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2295
|
+
url: "/audit-chain-entries",
|
|
2296
|
+
...options
|
|
2297
|
+
});
|
|
2222
2298
|
var deleteCatalogTaxonomiesById = (options) => (options.client ?? client).delete({
|
|
2223
2299
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2224
2300
|
url: "/catalog/taxonomies/{id}",
|
|
@@ -2238,6 +2314,11 @@ var patchCatalogTaxonomiesById = (options) => (options.client ?? client).patch({
|
|
|
2238
2314
|
...options.headers
|
|
2239
2315
|
}
|
|
2240
2316
|
});
|
|
2317
|
+
var getLegalAcceptancesById = (options) => (options.client ?? client).get({
|
|
2318
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2319
|
+
url: "/legal-acceptances/{id}",
|
|
2320
|
+
...options
|
|
2321
|
+
});
|
|
2241
2322
|
var deleteCrmRelationshipTypesById = (options) => (options.client ?? client).delete({
|
|
2242
2323
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2243
2324
|
url: "/crm/relationship-types/{id}",
|
|
@@ -2495,6 +2576,11 @@ var patchVoiceSessionsByIdStop = (options) => (options.client ?? client).patch({
|
|
|
2495
2576
|
...options.headers
|
|
2496
2577
|
}
|
|
2497
2578
|
});
|
|
2579
|
+
var getLlmAnalyticsSummary = (options) => (options.client ?? client).get({
|
|
2580
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2581
|
+
url: "/llm_analytics/summary",
|
|
2582
|
+
...options
|
|
2583
|
+
});
|
|
2498
2584
|
var getSchedulingParticipants = (options) => (options.client ?? client).get({
|
|
2499
2585
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2500
2586
|
url: "/scheduling/participants",
|
|
@@ -2538,6 +2624,11 @@ var getCrawlerJobsById = (options) => (options.client ?? client).get({
|
|
|
2538
2624
|
url: "/crawler/jobs/{id}",
|
|
2539
2625
|
...options
|
|
2540
2626
|
});
|
|
2627
|
+
var getConsentRecordsById = (options) => (options.client ?? client).get({
|
|
2628
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2629
|
+
url: "/consent-records/{id}",
|
|
2630
|
+
...options
|
|
2631
|
+
});
|
|
2541
2632
|
var getCrmExportsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2542
2633
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2543
2634
|
url: "/crm/exports/workspace/{workspace_id}",
|
|
@@ -2548,6 +2639,20 @@ var getTrainingSessionsAgentsByAgentIdSessions = (options) => (options.client ??
|
|
|
2548
2639
|
url: "/training-sessions/agents/{agent_id}/sessions",
|
|
2549
2640
|
...options
|
|
2550
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
|
+
});
|
|
2551
2656
|
var getSearch = (options) => (options.client ?? client).get({
|
|
2552
2657
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2553
2658
|
url: "/search",
|
|
@@ -2647,6 +2752,11 @@ var patchCrmPipelineStagesById = (options) => (options.client ?? client).patch({
|
|
|
2647
2752
|
...options.headers
|
|
2648
2753
|
}
|
|
2649
2754
|
});
|
|
2755
|
+
var getLegalAcceptances = (options) => (options.client ?? client).get({
|
|
2756
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2757
|
+
url: "/legal-acceptances",
|
|
2758
|
+
...options
|
|
2759
|
+
});
|
|
2650
2760
|
var getCrmPipelinesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2651
2761
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2652
2762
|
url: "/crm/pipelines/workspace/{workspace_id}",
|
|
@@ -2689,6 +2799,15 @@ var patchThreadsById = (options) => (options.client ?? client).patch({
|
|
|
2689
2799
|
...options.headers
|
|
2690
2800
|
}
|
|
2691
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
|
+
});
|
|
2692
2811
|
var getSupportTicketsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
2693
2812
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2694
2813
|
url: "/support/tickets/workspace/{workspace_id}",
|
|
@@ -2727,6 +2846,11 @@ var postWatcherClaims = (options) => (options.client ?? client).post({
|
|
|
2727
2846
|
...options.headers
|
|
2728
2847
|
}
|
|
2729
2848
|
});
|
|
2849
|
+
var getLlmAnalytics = (options) => (options.client ?? client).get({
|
|
2850
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2851
|
+
url: "/llm_analytics",
|
|
2852
|
+
...options
|
|
2853
|
+
});
|
|
2730
2854
|
var getCrawlerJobs = (options) => (options.client ?? client).get({
|
|
2731
2855
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2732
2856
|
url: "/crawler/jobs",
|
|
@@ -2778,6 +2902,16 @@ var patchVoiceSessionsByIdFinalize = (options) => (options.client ?? client).pat
|
|
|
2778
2902
|
...options.headers
|
|
2779
2903
|
}
|
|
2780
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
|
+
});
|
|
2781
2915
|
var postThreadsByIdExport = (options) => (options.client ?? client).post({
|
|
2782
2916
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2783
2917
|
url: "/threads/{id}/export",
|
|
@@ -2787,6 +2921,34 @@ var postThreadsByIdExport = (options) => (options.client ?? client).post({
|
|
|
2787
2921
|
...options.headers
|
|
2788
2922
|
}
|
|
2789
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
|
+
});
|
|
2790
2952
|
var postAgentsByIdTeach = (options) => (options.client ?? client).post({
|
|
2791
2953
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2792
2954
|
url: "/agents/{id}/teach",
|
|
@@ -2823,6 +2985,11 @@ var postExtractionSchemaDiscoveries = (options) => (options.client ?? client).po
|
|
|
2823
2985
|
...options.headers
|
|
2824
2986
|
}
|
|
2825
2987
|
});
|
|
2988
|
+
var getDataSubjectRequestsById = (options) => (options.client ?? client).get({
|
|
2989
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2990
|
+
url: "/data-subject-requests/{id}",
|
|
2991
|
+
...options
|
|
2992
|
+
});
|
|
2826
2993
|
var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
2827
2994
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2828
2995
|
url: "/users/register-isv",
|
|
@@ -2935,6 +3102,11 @@ var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get
|
|
|
2935
3102
|
url: "/extraction/documents/{id}/view",
|
|
2936
3103
|
...options
|
|
2937
3104
|
});
|
|
3105
|
+
var getAuditLogs = (options) => (options.client ?? client).get({
|
|
3106
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3107
|
+
url: "/audit-logs",
|
|
3108
|
+
...options
|
|
3109
|
+
});
|
|
2938
3110
|
var getBuckets = (options) => (options.client ?? client).get({
|
|
2939
3111
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2940
3112
|
url: "/buckets",
|
|
@@ -3056,6 +3228,11 @@ var patchWebhookConfigsByIdRotateSecret = (options) => (options.client ?? client
|
|
|
3056
3228
|
...options.headers
|
|
3057
3229
|
}
|
|
3058
3230
|
});
|
|
3231
|
+
var getBreachNotificationsById = (options) => (options.client ?? client).get({
|
|
3232
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3233
|
+
url: "/breach-notifications/{id}",
|
|
3234
|
+
...options
|
|
3235
|
+
});
|
|
3059
3236
|
var postTenantsByIdSchedulePurge = (options) => (options.client ?? client).post({
|
|
3060
3237
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3061
3238
|
url: "/tenants/{id}/schedule-purge",
|
|
@@ -3117,6 +3294,11 @@ var patchAgentsById = (options) => (options.client ?? client).patch({
|
|
|
3117
3294
|
...options.headers
|
|
3118
3295
|
}
|
|
3119
3296
|
});
|
|
3297
|
+
var getAuditChainEntriesById = (options) => (options.client ?? client).get({
|
|
3298
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3299
|
+
url: "/audit-chain-entries/{id}",
|
|
3300
|
+
...options
|
|
3301
|
+
});
|
|
3120
3302
|
var patchThreadsByIdUnarchive = (options) => (options.client ?? client).patch({
|
|
3121
3303
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3122
3304
|
url: "/threads/{id}/unarchive",
|
|
@@ -3149,6 +3331,30 @@ var postAiSearch = (options) => (options.client ?? client).post({
|
|
|
3149
3331
|
...options.headers
|
|
3150
3332
|
}
|
|
3151
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
|
+
});
|
|
3152
3358
|
var getWorkspacesShared = (options) => (options.client ?? client).get({
|
|
3153
3359
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3154
3360
|
url: "/workspaces/shared",
|
|
@@ -3214,6 +3420,11 @@ var postConnectorsOauthInitiate = (options) => (options.client ?? client).post({
|
|
|
3214
3420
|
...options.headers
|
|
3215
3421
|
}
|
|
3216
3422
|
});
|
|
3423
|
+
var getConsentRecordsActive = (options) => (options.client ?? client).get({
|
|
3424
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3425
|
+
url: "/consent-records/active",
|
|
3426
|
+
...options
|
|
3427
|
+
});
|
|
3217
3428
|
var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
|
|
3218
3429
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3219
3430
|
url: "/search/saved/{id}/run",
|
|
@@ -3279,6 +3490,15 @@ var patchCatalogProductVariantsById = (options) => (options.client ?? client).pa
|
|
|
3279
3490
|
...options.headers
|
|
3280
3491
|
}
|
|
3281
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
|
+
});
|
|
3282
3502
|
var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).post({
|
|
3283
3503
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3284
3504
|
url: "/webhook-deliveries/bulk-retry",
|
|
@@ -3288,6 +3508,11 @@ var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).pos
|
|
|
3288
3508
|
...options.headers
|
|
3289
3509
|
}
|
|
3290
3510
|
});
|
|
3511
|
+
var getLegalDocumentsByLocale = (options) => (options.client ?? client).get({
|
|
3512
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3513
|
+
url: "/legal-documents/by-locale",
|
|
3514
|
+
...options
|
|
3515
|
+
});
|
|
3291
3516
|
var getWatcherClaimsById = (options) => (options.client ?? client).get({
|
|
3292
3517
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3293
3518
|
url: "/watcher/claims/{id}",
|
|
@@ -3320,6 +3545,15 @@ var postAiEmbed = (options) => (options.client ?? client).post({
|
|
|
3320
3545
|
...options.headers
|
|
3321
3546
|
}
|
|
3322
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
|
+
});
|
|
3323
3557
|
var getSchedulingBookings = (options) => (options.client ?? client).get({
|
|
3324
3558
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3325
3559
|
url: "/scheduling/bookings",
|
|
@@ -3362,6 +3596,11 @@ var postTenantsIsv = (options) => (options.client ?? client).post({
|
|
|
3362
3596
|
...options.headers
|
|
3363
3597
|
}
|
|
3364
3598
|
});
|
|
3599
|
+
var getScanResultsById = (options) => (options.client ?? client).get({
|
|
3600
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3601
|
+
url: "/scan-results/{id}",
|
|
3602
|
+
...options
|
|
3603
|
+
});
|
|
3365
3604
|
var patchExtractionResultsByIdRegenerate = (options) => (options.client ?? client).patch({
|
|
3366
3605
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3367
3606
|
url: "/extraction/results/{id}/regenerate",
|
|
@@ -3620,6 +3859,20 @@ var patchExtractionResultsByIdSaveCorrections = (options) => (options.client ??
|
|
|
3620
3859
|
...options.headers
|
|
3621
3860
|
}
|
|
3622
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
|
+
});
|
|
3623
3876
|
var postUsersAuthResendConfirmation = (options) => (options.client ?? client).post({
|
|
3624
3877
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3625
3878
|
url: "/users/auth/resend-confirmation",
|
|
@@ -3707,6 +3960,34 @@ var postThreadsByIdSummarize = (options) => (options.client ?? client).post({
|
|
|
3707
3960
|
...options.headers
|
|
3708
3961
|
}
|
|
3709
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
|
+
});
|
|
3710
3991
|
var getExtractionResults = (options) => (options.client ?? client).get({
|
|
3711
3992
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3712
3993
|
url: "/extraction/results",
|
|
@@ -3721,11 +4002,30 @@ var postAgentsByIdClone = (options) => (options.client ?? client).post({
|
|
|
3721
4002
|
...options.headers
|
|
3722
4003
|
}
|
|
3723
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
|
+
});
|
|
3724
4019
|
var getInvitationsMe = (options) => (options.client ?? client).get({
|
|
3725
4020
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3726
4021
|
url: "/invitations/me",
|
|
3727
4022
|
...options
|
|
3728
4023
|
});
|
|
4024
|
+
var getLegalDocumentsForApplication = (options) => (options.client ?? client).get({
|
|
4025
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4026
|
+
url: "/legal-documents/for-application",
|
|
4027
|
+
...options
|
|
4028
|
+
});
|
|
3729
4029
|
var getApiKeys = (options) => (options.client ?? client).get({
|
|
3730
4030
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3731
4031
|
url: "/api-keys",
|
|
@@ -3801,11 +4101,39 @@ var postCrmDeals = (options) => (options.client ?? client).post({
|
|
|
3801
4101
|
...options.headers
|
|
3802
4102
|
}
|
|
3803
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
|
+
});
|
|
3804
4118
|
var getCrmActivitiesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3805
4119
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3806
4120
|
url: "/crm/activities/workspace/{workspace_id}",
|
|
3807
4121
|
...options
|
|
3808
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
|
+
});
|
|
3809
4137
|
var getAgents = (options) => (options.client ?? client).get({
|
|
3810
4138
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3811
4139
|
url: "/agents",
|
|
@@ -3834,6 +4162,39 @@ var postSupportTicketRatings = (options) => (options.client ?? client).post({
|
|
|
3834
4162
|
...options.headers
|
|
3835
4163
|
}
|
|
3836
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
|
+
});
|
|
3837
4198
|
var getConnectors = (options) => (options.client ?? client).get({
|
|
3838
4199
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3839
4200
|
url: "/connectors",
|
|
@@ -4347,15 +4708,89 @@ function createAiNamespace(rb) {
|
|
|
4347
4708
|
options
|
|
4348
4709
|
);
|
|
4349
4710
|
}
|
|
4350
|
-
}
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
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 }
|
|
4772
|
+
}
|
|
4773
|
+
},
|
|
4774
|
+
options
|
|
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
|
+
);
|
|
4784
|
+
}
|
|
4785
|
+
}
|
|
4786
|
+
};
|
|
4787
|
+
}
|
|
4788
|
+
|
|
4789
|
+
// src/namespaces/billing.ts
|
|
4790
|
+
function createBillingNamespace(rb) {
|
|
4791
|
+
return {
|
|
4792
|
+
wallet: {
|
|
4793
|
+
/** Get the current workspace wallet balance and details */
|
|
4359
4794
|
get: async (options) => {
|
|
4360
4795
|
return rb.execute(getWallet, {}, options);
|
|
4361
4796
|
}
|
|
@@ -4716,6 +5151,518 @@ function createCatalogNamespace(rb) {
|
|
|
4716
5151
|
};
|
|
4717
5152
|
}
|
|
4718
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 */
|
|
5532
|
+
list: async (options) => {
|
|
5533
|
+
return rb.execute(
|
|
5534
|
+
getLegalDocuments,
|
|
5535
|
+
buildPageQuery(options?.page, options?.pageSize),
|
|
5536
|
+
options
|
|
5537
|
+
);
|
|
5538
|
+
},
|
|
5539
|
+
/** Get a legal document by ID */
|
|
5540
|
+
get: async (id, options) => {
|
|
5541
|
+
return rb.execute(
|
|
5542
|
+
getLegalDocumentsById,
|
|
5543
|
+
{ path: { id } },
|
|
5544
|
+
options
|
|
5545
|
+
);
|
|
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 */
|
|
5567
|
+
delete: async (id, options) => {
|
|
5568
|
+
return rb.executeDelete(
|
|
5569
|
+
deleteLegalDocumentsById,
|
|
5570
|
+
{ path: { id } },
|
|
5571
|
+
options
|
|
5572
|
+
);
|
|
5573
|
+
},
|
|
5574
|
+
/** Get documents by locale */
|
|
5575
|
+
byLocale: async (locale, options) => {
|
|
5576
|
+
return rb.execute(
|
|
5577
|
+
getLegalDocumentsByLocale,
|
|
5578
|
+
{ query: { locale } },
|
|
5579
|
+
options
|
|
5580
|
+
);
|
|
5581
|
+
},
|
|
5582
|
+
/** Get documents for the current application */
|
|
5583
|
+
forApplication: async (options) => {
|
|
5584
|
+
return rb.execute(
|
|
5585
|
+
getLegalDocumentsForApplication,
|
|
5586
|
+
{},
|
|
5587
|
+
options
|
|
5588
|
+
);
|
|
5589
|
+
},
|
|
5590
|
+
/** Publish a legal document */
|
|
5591
|
+
publish: async (id, options) => {
|
|
5592
|
+
return rb.execute(
|
|
5593
|
+
patchLegalDocumentsByIdPublish,
|
|
5594
|
+
{
|
|
5595
|
+
path: { id },
|
|
5596
|
+
body: { data: { type: "legal_document", id, attributes: {} } }
|
|
5597
|
+
},
|
|
5598
|
+
options
|
|
5599
|
+
);
|
|
5600
|
+
},
|
|
5601
|
+
/** Unpublish a legal document */
|
|
5602
|
+
unpublish: async (id, options) => {
|
|
5603
|
+
return rb.execute(
|
|
5604
|
+
patchLegalDocumentsByIdUnpublish,
|
|
5605
|
+
{
|
|
5606
|
+
path: { id },
|
|
5607
|
+
body: { data: { type: "legal_document", id, attributes: {} } }
|
|
5608
|
+
},
|
|
5609
|
+
options
|
|
5610
|
+
);
|
|
5611
|
+
}
|
|
5612
|
+
},
|
|
5613
|
+
/**
|
|
5614
|
+
* Legal acceptances — user acceptance records for legal documents
|
|
5615
|
+
*/
|
|
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
|
+
);
|
|
5624
|
+
},
|
|
5625
|
+
/** Get a legal acceptance by ID */
|
|
5626
|
+
get: async (id, options) => {
|
|
5627
|
+
return rb.execute(
|
|
5628
|
+
getLegalAcceptancesById,
|
|
5629
|
+
{ path: { id } },
|
|
5630
|
+
options
|
|
5631
|
+
);
|
|
5632
|
+
},
|
|
5633
|
+
/** Get the latest acceptance record for the current user */
|
|
5634
|
+
latest: async (options) => {
|
|
5635
|
+
return rb.execute(
|
|
5636
|
+
getLegalAcceptancesLatest,
|
|
5637
|
+
{},
|
|
5638
|
+
options
|
|
5639
|
+
);
|
|
5640
|
+
}
|
|
5641
|
+
},
|
|
5642
|
+
/**
|
|
5643
|
+
* Scan results — PII and security scan findings
|
|
5644
|
+
*/
|
|
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
|
+
);
|
|
5653
|
+
},
|
|
5654
|
+
/** Get a scan result by ID */
|
|
5655
|
+
get: async (id, options) => {
|
|
5656
|
+
return rb.execute(
|
|
5657
|
+
getScanResultsById,
|
|
5658
|
+
{ path: { id } },
|
|
5659
|
+
options
|
|
5660
|
+
);
|
|
5661
|
+
}
|
|
5662
|
+
}
|
|
5663
|
+
};
|
|
5664
|
+
}
|
|
5665
|
+
|
|
4719
5666
|
// src/namespaces/communication.ts
|
|
4720
5667
|
function createCommunicationNamespace(rb) {
|
|
4721
5668
|
return {
|
|
@@ -4906,10 +5853,21 @@ function createConnectorsNamespace(rb) {
|
|
|
4906
5853
|
{ path: { id } },
|
|
4907
5854
|
options
|
|
4908
5855
|
),
|
|
4909
|
-
/**
|
|
4910
|
-
|
|
5856
|
+
/**
|
|
5857
|
+
* Refresh an OAuth credential.
|
|
5858
|
+
* @param workspaceId - The workspace that owns the credential.
|
|
5859
|
+
*/
|
|
5860
|
+
refresh: async (id, workspaceId, options) => rb.execute(
|
|
4911
5861
|
postConnectorsCredentialsByIdRefresh,
|
|
4912
|
-
{
|
|
5862
|
+
{
|
|
5863
|
+
path: { id },
|
|
5864
|
+
body: {
|
|
5865
|
+
data: {
|
|
5866
|
+
type: "credential",
|
|
5867
|
+
attributes: { workspace_id: workspaceId }
|
|
5868
|
+
}
|
|
5869
|
+
}
|
|
5870
|
+
},
|
|
4913
5871
|
options
|
|
4914
5872
|
)
|
|
4915
5873
|
},
|
|
@@ -4939,8 +5897,10 @@ function createConnectorsNamespace(rb) {
|
|
|
4939
5897
|
/**
|
|
4940
5898
|
* Exchange OAuth authorization code for a credential.
|
|
4941
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.
|
|
4942
5902
|
*/
|
|
4943
|
-
callback: async (connectorType, code, state, workspaceId, options) => rb.execute(
|
|
5903
|
+
callback: async (connectorType, code, state, workspaceId, redirectUri, options) => rb.execute(
|
|
4944
5904
|
postConnectorsOauthCallback,
|
|
4945
5905
|
{
|
|
4946
5906
|
body: {
|
|
@@ -4950,7 +5910,8 @@ function createConnectorsNamespace(rb) {
|
|
|
4950
5910
|
connector_type: connectorType,
|
|
4951
5911
|
code,
|
|
4952
5912
|
state,
|
|
4953
|
-
workspace_id: workspaceId
|
|
5913
|
+
workspace_id: workspaceId,
|
|
5914
|
+
...redirectUri !== void 0 && { redirect_uri: redirectUri }
|
|
4954
5915
|
}
|
|
4955
5916
|
}
|
|
4956
5917
|
}
|
|
@@ -5065,8 +6026,12 @@ function createConnectorsNamespace(rb) {
|
|
|
5065
6026
|
},
|
|
5066
6027
|
options
|
|
5067
6028
|
),
|
|
5068
|
-
/**
|
|
5069
|
-
|
|
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(
|
|
5070
6035
|
postConnectorsOauthCallback,
|
|
5071
6036
|
{
|
|
5072
6037
|
body: {
|
|
@@ -5076,7 +6041,8 @@ function createConnectorsNamespace(rb) {
|
|
|
5076
6041
|
connector_type: "fullscript",
|
|
5077
6042
|
code,
|
|
5078
6043
|
state,
|
|
5079
|
-
workspace_id: workspaceId
|
|
6044
|
+
workspace_id: workspaceId,
|
|
6045
|
+
...redirectUri !== void 0 && { redirect_uri: redirectUri }
|
|
5080
6046
|
}
|
|
5081
6047
|
}
|
|
5082
6048
|
}
|
|
@@ -7293,6 +8259,35 @@ function createPlatformNamespace(rb) {
|
|
|
7293
8259
|
options
|
|
7294
8260
|
);
|
|
7295
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
|
+
}
|
|
7296
8291
|
}
|
|
7297
8292
|
};
|
|
7298
8293
|
}
|
|
@@ -8798,6 +9793,7 @@ var GptClient = class extends BaseClient {
|
|
|
8798
9793
|
this.ai = createAiNamespace(rb);
|
|
8799
9794
|
this.billing = createBillingNamespace(rb);
|
|
8800
9795
|
this.catalog = createCatalogNamespace(rb);
|
|
9796
|
+
this.compliance = createComplianceNamespace(rb);
|
|
8801
9797
|
this.communication = createCommunicationNamespace(rb);
|
|
8802
9798
|
this.connectors = createConnectorsNamespace(rb);
|
|
8803
9799
|
this.crawler = createCrawlerNamespace(rb);
|